From 13efd0a7387aaa2c7b6b4a11a7cd5b67691dead8 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Thu, 14 Jul 2022 13:04:39 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20profectu?= =?UTF-8?q?s-engine/TMT-Demo@8adf634d2f36c9ed922f8faecdef423dcdc6f061=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/@ivanv.bf09ddfc.js | 1 + assets/@pixi.c5050cb0.js | 552 +++++++++++++++++++++ assets/@vue.861e8bf0.js | 4 + assets/earcut.17d42416.js | 1 + assets/eventemitter3.dc5195d7.js | 1 + assets/index.41d7c359.css | 1 - assets/index.4d68ca01.css | 1 + assets/index.c851429a.js | 17 + assets/index.d5d1e0a2.js | 593 ----------------------- assets/is-plain-object.906d88e8.js | 6 + assets/ismobilejs.5c6954b9.js | 1 + assets/lz-string.f2f3b7cf.js | 1 + assets/nanoevents.1080beb7.js | 1 + assets/querystring.776b9ab3.js | 1 + assets/sortablejs.bd686609.js | 7 + assets/url.b1bd21f4.js | 2 + assets/vue-next-select.9e6f4164.css | 1 + assets/vue-next-select.aa58f779.js | 3 + assets/vue-textarea-autosize.35804eaf.js | 5 + assets/vue-toastification.17ba848b.js | 1 + assets/vue-toastification.4b5f8ac8.css | 1 + assets/vue.67040123.js | 1 + assets/vuedraggable.502d3696.js | 4 + assets/workbox-window.60401ce8.js | 2 + index.html | 24 +- sw.js | 2 +- 26 files changed, 637 insertions(+), 597 deletions(-) create mode 100644 assets/@ivanv.bf09ddfc.js create mode 100644 assets/@pixi.c5050cb0.js create mode 100644 assets/@vue.861e8bf0.js create mode 100644 assets/earcut.17d42416.js create mode 100644 assets/eventemitter3.dc5195d7.js delete mode 100644 assets/index.41d7c359.css create mode 100644 assets/index.4d68ca01.css create mode 100644 assets/index.c851429a.js delete mode 100644 assets/index.d5d1e0a2.js create mode 100644 assets/is-plain-object.906d88e8.js create mode 100644 assets/ismobilejs.5c6954b9.js create mode 100644 assets/lz-string.f2f3b7cf.js create mode 100644 assets/nanoevents.1080beb7.js create mode 100644 assets/querystring.776b9ab3.js create mode 100644 assets/sortablejs.bd686609.js create mode 100644 assets/url.b1bd21f4.js create mode 100644 assets/vue-next-select.9e6f4164.css create mode 100644 assets/vue-next-select.aa58f779.js create mode 100644 assets/vue-textarea-autosize.35804eaf.js create mode 100644 assets/vue-toastification.17ba848b.js create mode 100644 assets/vue-toastification.4b5f8ac8.css create mode 100644 assets/vue.67040123.js create mode 100644 assets/vuedraggable.502d3696.js create mode 100644 assets/workbox-window.60401ce8.js diff --git a/assets/@ivanv.bf09ddfc.js b/assets/@ivanv.bf09ddfc.js new file mode 100644 index 0000000..0ee42d4 --- /dev/null +++ b/assets/@ivanv.bf09ddfc.js @@ -0,0 +1 @@ +import{o as r,c as o,w as d,r as h,T as l}from"./@vue.861e8bf0.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 m=c(p,[["render",f]]);export{m as C,c as _}; diff --git a/assets/@pixi.c5050cb0.js b/assets/@pixi.c5050cb0.js new file mode 100644 index 0000000..b956e10 --- /dev/null +++ b/assets/@pixi.c5050cb0.js @@ -0,0 +1,552 @@ +import{i as Ti}from"./ismobilejs.5c6954b9.js";import{E as Wt}from"./eventemitter3.dc5195d7.js";import"./earcut.17d42416.js";import{p as bi,f as Ii,r as Ri}from"./url.b1bd21f4.js";/*! + * @pixi/settings - v6.4.2 + * Compiled Thu, 02 Jun 2022 15:39:26 UTC + * + * @pixi/settings is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var ut=Ti(globalThis.navigator);function Ei(r){var t=!0;if(ut.tablet||ut.phone){if(ut.apple.device){var e=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(e){var i=parseInt(e[1],10);i<11&&(t=!1)}}if(ut.android.device){var e=navigator.userAgent.match(/Android\s([0-9.]*)/);if(e){var i=parseInt(e[1],10);i<7&&(t=!1)}}}return t?r:4}function wi(){return!ut.apple.device}/*! + * @pixi/constants - v6.4.2 + * Compiled Thu, 02 Jun 2022 15:39:26 UTC + * + * @pixi/constants is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var nr;(function(r){r[r.WEBGL_LEGACY=0]="WEBGL_LEGACY",r[r.WEBGL=1]="WEBGL",r[r.WEBGL2=2]="WEBGL2"})(nr||(nr={}));var sr;(function(r){r[r.UNKNOWN=0]="UNKNOWN",r[r.WEBGL=1]="WEBGL",r[r.CANVAS=2]="CANVAS"})(sr||(sr={}));var ar;(function(r){r[r.COLOR=16384]="COLOR",r[r.DEPTH=256]="DEPTH",r[r.STENCIL=1024]="STENCIL"})(ar||(ar={}));var or;(function(r){r[r.NORMAL=0]="NORMAL",r[r.ADD=1]="ADD",r[r.MULTIPLY=2]="MULTIPLY",r[r.SCREEN=3]="SCREEN",r[r.OVERLAY=4]="OVERLAY",r[r.DARKEN=5]="DARKEN",r[r.LIGHTEN=6]="LIGHTEN",r[r.COLOR_DODGE=7]="COLOR_DODGE",r[r.COLOR_BURN=8]="COLOR_BURN",r[r.HARD_LIGHT=9]="HARD_LIGHT",r[r.SOFT_LIGHT=10]="SOFT_LIGHT",r[r.DIFFERENCE=11]="DIFFERENCE",r[r.EXCLUSION=12]="EXCLUSION",r[r.HUE=13]="HUE",r[r.SATURATION=14]="SATURATION",r[r.COLOR=15]="COLOR",r[r.LUMINOSITY=16]="LUMINOSITY",r[r.NORMAL_NPM=17]="NORMAL_NPM",r[r.ADD_NPM=18]="ADD_NPM",r[r.SCREEN_NPM=19]="SCREEN_NPM",r[r.NONE=20]="NONE",r[r.SRC_OVER=0]="SRC_OVER",r[r.SRC_IN=21]="SRC_IN",r[r.SRC_OUT=22]="SRC_OUT",r[r.SRC_ATOP=23]="SRC_ATOP",r[r.DST_OVER=24]="DST_OVER",r[r.DST_IN=25]="DST_IN",r[r.DST_OUT=26]="DST_OUT",r[r.DST_ATOP=27]="DST_ATOP",r[r.ERASE=26]="ERASE",r[r.SUBTRACT=28]="SUBTRACT",r[r.XOR=29]="XOR"})(or||(or={}));var hr;(function(r){r[r.POINTS=0]="POINTS",r[r.LINES=1]="LINES",r[r.LINE_LOOP=2]="LINE_LOOP",r[r.LINE_STRIP=3]="LINE_STRIP",r[r.TRIANGLES=4]="TRIANGLES",r[r.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",r[r.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(hr||(hr={}));var ur;(function(r){r[r.RGBA=6408]="RGBA",r[r.RGB=6407]="RGB",r[r.RG=33319]="RG",r[r.RED=6403]="RED",r[r.RGBA_INTEGER=36249]="RGBA_INTEGER",r[r.RGB_INTEGER=36248]="RGB_INTEGER",r[r.RG_INTEGER=33320]="RG_INTEGER",r[r.RED_INTEGER=36244]="RED_INTEGER",r[r.ALPHA=6406]="ALPHA",r[r.LUMINANCE=6409]="LUMINANCE",r[r.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",r[r.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",r[r.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(ur||(ur={}));var lr;(function(r){r[r.TEXTURE_2D=3553]="TEXTURE_2D",r[r.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",r[r.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",r[r.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",r[r.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",r[r.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",r[r.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(lr||(lr={}));var fr;(function(r){r[r.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",r[r.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",r[r.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",r[r.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",r[r.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",r[r.UNSIGNED_INT=5125]="UNSIGNED_INT",r[r.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",r[r.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",r[r.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",r[r.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",r[r.BYTE=5120]="BYTE",r[r.SHORT=5122]="SHORT",r[r.INT=5124]="INT",r[r.FLOAT=5126]="FLOAT",r[r.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",r[r.HALF_FLOAT=36193]="HALF_FLOAT"})(fr||(fr={}));var cr;(function(r){r[r.FLOAT=0]="FLOAT",r[r.INT=1]="INT",r[r.UINT=2]="UINT"})(cr||(cr={}));var le;(function(r){r[r.NEAREST=0]="NEAREST",r[r.LINEAR=1]="LINEAR"})(le||(le={}));var fe;(function(r){r[r.CLAMP=33071]="CLAMP",r[r.REPEAT=10497]="REPEAT",r[r.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(fe||(fe={}));var ce;(function(r){r[r.OFF=0]="OFF",r[r.POW2=1]="POW2",r[r.ON=2]="ON",r[r.ON_MANUAL=3]="ON_MANUAL"})(ce||(ce={}));var dr;(function(r){r[r.NPM=0]="NPM",r[r.UNPACK=1]="UNPACK",r[r.PMA=2]="PMA",r[r.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",r[r.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",r[r.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",r[r.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(dr||(dr={}));var pr;(function(r){r[r.NO=0]="NO",r[r.YES=1]="YES",r[r.AUTO=2]="AUTO",r[r.BLEND=0]="BLEND",r[r.CLEAR=1]="CLEAR",r[r.BLIT=2]="BLIT"})(pr||(pr={}));var de;(function(r){r[r.AUTO=0]="AUTO",r[r.MANUAL=1]="MANUAL"})(de||(de={}));var xt;(function(r){r.LOW="lowp",r.MEDIUM="mediump",r.HIGH="highp"})(xt||(xt={}));var vr;(function(r){r[r.NONE=0]="NONE",r[r.SCISSOR=1]="SCISSOR",r[r.STENCIL=2]="STENCIL",r[r.SPRITE=3]="SPRITE"})(vr||(vr={}));var pe;(function(r){r[r.NONE=0]="NONE",r[r.LOW=2]="LOW",r[r.MEDIUM=4]="MEDIUM",r[r.HIGH=8]="HIGH"})(pe||(pe={}));var mr;(function(r){r[r.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",r[r.ARRAY_BUFFER=34962]="ARRAY_BUFFER",r[r.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(mr||(mr={}));var x={MIPMAP_TEXTURES:ce.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:pe.NONE,SPRITE_MAX_TEXTURES:Ei(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:de.AUTO,GC_MAX_IDLE:60*60,GC_MAX_CHECK_COUNT:60*10,WRAP_MODE:fe.CLAMP,SCALE_MODE:le.LINEAR,PRECISION_VERTEX:xt.HIGH,PRECISION_FRAGMENT:ut.apple.device?xt.HIGH:xt.MEDIUM,CAN_UPLOAD_SAME_BUFFER:wi(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};/*! + * @pixi/constants - v6.4.2 + * Compiled Thu, 02 Jun 2022 15:39:26 UTC + * + * @pixi/constants is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var Z;(function(r){r[r.WEBGL_LEGACY=0]="WEBGL_LEGACY",r[r.WEBGL=1]="WEBGL",r[r.WEBGL2=2]="WEBGL2"})(Z||(Z={}));var Tt;(function(r){r[r.UNKNOWN=0]="UNKNOWN",r[r.WEBGL=1]="WEBGL",r[r.CANVAS=2]="CANVAS"})(Tt||(Tt={}));var Xt;(function(r){r[r.COLOR=16384]="COLOR",r[r.DEPTH=256]="DEPTH",r[r.STENCIL=1024]="STENCIL"})(Xt||(Xt={}));var g;(function(r){r[r.NORMAL=0]="NORMAL",r[r.ADD=1]="ADD",r[r.MULTIPLY=2]="MULTIPLY",r[r.SCREEN=3]="SCREEN",r[r.OVERLAY=4]="OVERLAY",r[r.DARKEN=5]="DARKEN",r[r.LIGHTEN=6]="LIGHTEN",r[r.COLOR_DODGE=7]="COLOR_DODGE",r[r.COLOR_BURN=8]="COLOR_BURN",r[r.HARD_LIGHT=9]="HARD_LIGHT",r[r.SOFT_LIGHT=10]="SOFT_LIGHT",r[r.DIFFERENCE=11]="DIFFERENCE",r[r.EXCLUSION=12]="EXCLUSION",r[r.HUE=13]="HUE",r[r.SATURATION=14]="SATURATION",r[r.COLOR=15]="COLOR",r[r.LUMINOSITY=16]="LUMINOSITY",r[r.NORMAL_NPM=17]="NORMAL_NPM",r[r.ADD_NPM=18]="ADD_NPM",r[r.SCREEN_NPM=19]="SCREEN_NPM",r[r.NONE=20]="NONE",r[r.SRC_OVER=0]="SRC_OVER",r[r.SRC_IN=21]="SRC_IN",r[r.SRC_OUT=22]="SRC_OUT",r[r.SRC_ATOP=23]="SRC_ATOP",r[r.DST_OVER=24]="DST_OVER",r[r.DST_IN=25]="DST_IN",r[r.DST_OUT=26]="DST_OUT",r[r.DST_ATOP=27]="DST_ATOP",r[r.ERASE=26]="ERASE",r[r.SUBTRACT=28]="SUBTRACT",r[r.XOR=29]="XOR"})(g||(g={}));var bt;(function(r){r[r.POINTS=0]="POINTS",r[r.LINES=1]="LINES",r[r.LINE_LOOP=2]="LINE_LOOP",r[r.LINE_STRIP=3]="LINE_STRIP",r[r.TRIANGLES=4]="TRIANGLES",r[r.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",r[r.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(bt||(bt={}));var _;(function(r){r[r.RGBA=6408]="RGBA",r[r.RGB=6407]="RGB",r[r.RG=33319]="RG",r[r.RED=6403]="RED",r[r.RGBA_INTEGER=36249]="RGBA_INTEGER",r[r.RGB_INTEGER=36248]="RGB_INTEGER",r[r.RG_INTEGER=33320]="RG_INTEGER",r[r.RED_INTEGER=36244]="RED_INTEGER",r[r.ALPHA=6406]="ALPHA",r[r.LUMINANCE=6409]="LUMINANCE",r[r.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",r[r.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",r[r.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(_||(_={}));var lt;(function(r){r[r.TEXTURE_2D=3553]="TEXTURE_2D",r[r.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",r[r.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",r[r.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",r[r.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",r[r.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",r[r.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(lt||(lt={}));var I;(function(r){r[r.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",r[r.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",r[r.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",r[r.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",r[r.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",r[r.UNSIGNED_INT=5125]="UNSIGNED_INT",r[r.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",r[r.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",r[r.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",r[r.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",r[r.BYTE=5120]="BYTE",r[r.SHORT=5122]="SHORT",r[r.INT=5124]="INT",r[r.FLOAT=5126]="FLOAT",r[r.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",r[r.HALF_FLOAT=36193]="HALF_FLOAT"})(I||(I={}));var Ht;(function(r){r[r.FLOAT=0]="FLOAT",r[r.INT=1]="INT",r[r.UINT=2]="UINT"})(Ht||(Ht={}));var q;(function(r){r[r.NEAREST=0]="NEAREST",r[r.LINEAR=1]="LINEAR"})(q||(q={}));var ve;(function(r){r[r.CLAMP=33071]="CLAMP",r[r.REPEAT=10497]="REPEAT",r[r.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(ve||(ve={}));var ft;(function(r){r[r.OFF=0]="OFF",r[r.POW2=1]="POW2",r[r.ON=2]="ON",r[r.ON_MANUAL=3]="ON_MANUAL"})(ft||(ft={}));var Q;(function(r){r[r.NPM=0]="NPM",r[r.UNPACK=1]="UNPACK",r[r.PMA=2]="PMA",r[r.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",r[r.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",r[r.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",r[r.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(Q||(Q={}));var J;(function(r){r[r.NO=0]="NO",r[r.YES=1]="YES",r[r.AUTO=2]="AUTO",r[r.BLEND=0]="BLEND",r[r.CLEAR=1]="CLEAR",r[r.BLIT=2]="BLIT"})(J||(J={}));var me;(function(r){r[r.AUTO=0]="AUTO",r[r.MANUAL=1]="MANUAL"})(me||(me={}));var D;(function(r){r.LOW="lowp",r.MEDIUM="mediump",r.HIGH="highp"})(D||(D={}));var O;(function(r){r[r.NONE=0]="NONE",r[r.SCISSOR=1]="SCISSOR",r[r.STENCIL=2]="STENCIL",r[r.SPRITE=3]="SPRITE"})(O||(O={}));var F;(function(r){r[r.NONE=0]="NONE",r[r.LOW=2]="LOW",r[r.MEDIUM=4]="MEDIUM",r[r.HIGH=8]="HIGH"})(F||(F={}));var W;(function(r){r[r.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",r[r.ARRAY_BUFFER=34962]="ARRAY_BUFFER",r[r.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(W||(W={}));/*! + * @pixi/utils - v6.4.2 + * Compiled Thu, 02 Jun 2022 15:39:26 UTC + * + * @pixi/utils is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var Ni={parse:bi,format:Ii,resolve:Ri};x.RETINA_PREFIX=/@([0-9\.]+)x/;x.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var _r=!1,yr="6.4.2";function Ci(r){var t;if(!_r){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var e=[` + %c %c %c PixiJS `+yr+" - \u2730 "+r+` \u2730 %c %c http://www.pixijs.com/ %c %c \u2665%c\u2665%c\u2665 + +`,"background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(t=globalThis.console).log.apply(t,e)}else globalThis.console&&globalThis.console.log("PixiJS "+yr+" - "+r+" - http://www.pixijs.com/");_r=!0}}var Yt;function Ai(){return typeof Yt=="undefined"&&(Yt=function(){var t={stencil:!0,failIfMajorPerformanceCaveat:x.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!globalThis.WebGLRenderingContext)return!1;var e=document.createElement("canvas"),i=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),n=!!(i&&i.getContextAttributes().stencil);if(i){var s=i.getExtension("WEBGL_lose_context");s&&s.loseContext()}return i=null,n}catch{return!1}}()),Yt}function Pi(r,t){return t===void 0&&(t=[]),t[0]=(r>>16&255)/255,t[1]=(r>>8&255)/255,t[2]=(r&255)/255,t}function Ui(r){var t=r.toString(16);return t="000000".substring(0,6-t.length)+t,"#"+t}function Fi(){for(var r=[],t=[],e=0;e<32;e++)r[e]=e,t[e]=e;r[g.NORMAL_NPM]=g.NORMAL,r[g.ADD_NPM]=g.ADD,r[g.SCREEN_NPM]=g.SCREEN,t[g.NORMAL]=g.NORMAL_NPM,t[g.ADD]=g.ADD_NPM,t[g.SCREEN]=g.SCREEN_NPM;var i=[];return i.push(t),i.push(r),i}var Li=Fi();function Oi(r,t){if(t===1)return(t*255<<24)+r;if(t===0)return 0;var e=r>>16&255,i=r>>8&255,n=r&255;return e=e*t+.5|0,i=i*t+.5|0,n=n*t+.5|0,(t*255<<24)+(e<<16)+(i<<8)+n}function ti(r){if(r.BYTES_PER_ELEMENT===4)return r instanceof Float32Array?"Float32Array":r instanceof Uint32Array?"Uint32Array":"Int32Array";if(r.BYTES_PER_ELEMENT===2){if(r instanceof Uint16Array)return"Uint16Array"}else if(r.BYTES_PER_ELEMENT===1&&r instanceof Uint8Array)return"Uint8Array";return null}function Vt(r){return r+=r===0?1:0,--r,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r+1}function gr(r){return!(r&r-1)&&!!r}function xr(r){var t=(r>65535?1:0)<<4;r>>>=t;var e=(r>255?1:0)<<3;return r>>>=e,t|=e,e=(r>15?1:0)<<2,r>>>=e,t|=e,e=(r>3?1:0)<<1,r>>>=e,t|=e,t|r>>1}function kt(r,t,e){var i=r.length,n;if(!(t>=i||e===0)){e=t+e>i?i-t:e;var s=i-e;for(n=t;n8)throw new Error("max arguments reached");var u=this,l=u.name,f=u.items;this._aliasCount++;for(var c=0,d=f.length;c0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},r.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},r.prototype.remove=function(t){var e=this.items.indexOf(t);return e!==-1&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this},r.prototype.contains=function(t){return this.items.indexOf(t)!==-1},r.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},r.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(r.prototype,"empty",{get:function(){return this.items.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),r}();Object.defineProperties(S.prototype,{dispatch:{value:S.prototype.emit},run:{value:S.prototype.emit}});/*! + * @pixi/ticker - v6.4.2 + * Compiled Thu, 02 Jun 2022 15:39:26 UTC + * + * @pixi/ticker is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */x.TARGET_FPMS=.06;var jt;(function(r){r[r.INTERACTION=50]="INTERACTION",r[r.HIGH=25]="HIGH",r[r.NORMAL=0]="NORMAL",r[r.LOW=-25]="LOW",r[r.UTILITY=-50]="UTILITY"})(jt||(jt={}));var Kt=function(){function r(t,e,i,n){e===void 0&&(e=null),i===void 0&&(i=0),n===void 0&&(n=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=e,this.priority=i,this.once=n}return r.prototype.match=function(t,e){return e===void 0&&(e=null),this.fn===t&&this.context===e},r.prototype.emit=function(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));var e=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),e},r.prototype.connect=function(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this},r.prototype.destroy=function(t){t===void 0&&(t=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var e=this.next;return this.next=t?null:e,this.previous=null,e},r}(),nt=function(){function r(){var t=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new Kt(null,null,1/0),this.deltaMS=1/x.TARGET_FPMS,this.elapsedMS=1/x.TARGET_FPMS,this._tick=function(e){t._requestId=null,t.started&&(t.update(e),t.started&&t._requestId===null&&t._head.next&&(t._requestId=requestAnimationFrame(t._tick)))}}return r.prototype._requestIfNeeded=function(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},r.prototype._cancelIfNeeded=function(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)},r.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},r.prototype.add=function(t,e,i){return i===void 0&&(i=jt.NORMAL),this._addListener(new Kt(t,e,i))},r.prototype.addOnce=function(t,e,i){return i===void 0&&(i=jt.NORMAL),this._addListener(new Kt(t,e,i,!0))},r.prototype._addListener=function(t){var e=this._head.next,i=this._head;if(!e)t.connect(i);else{for(;e;){if(t.priority>e.priority){t.connect(i);break}i=e,e=e.next}t.previous||t.connect(i)}return this._startIfPossible(),this},r.prototype.remove=function(t,e){for(var i=this._head.next;i;)i.match(t,e)?i=i.destroy():i=i.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(r.prototype,"count",{get:function(){if(!this._head)return 0;for(var t=0,e=this._head;e=e.next;)t++;return t},enumerable:!1,configurable:!0}),r.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},r.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},r.prototype.destroy=function(){if(!this._protected){this.stop();for(var t=this._head.next;t;)t=t.destroy(!0);this._head.destroy(),this._head=null}},r.prototype.update=function(t){t===void 0&&(t=performance.now());var e;if(t>this.lastTime){if(e=this.elapsedMS=t-this.lastTime,e>this._maxElapsedMS&&(e=this._maxElapsedMS),e*=this.speed,this._minElapsedMS){var i=t-this._lastFrame|0;if(i=this.x&&t=this.y&&et.right?t.right:this.right;if(n<=i)return!1;var s=this.yt.bottom?t.bottom:this.bottom;return a>s}var o=this.left,h=this.right,u=this.top,l=this.bottom;if(h<=o||l<=u)return!1;var f=Pt[0].set(t.left,t.top),c=Pt[1].set(t.left,t.bottom),d=Pt[2].set(t.right,t.top),p=Pt[3].set(t.right,t.bottom);if(d.x<=f.x||c.y<=f.y)return!1;var m=Math.sign(e.a*e.d-e.b*e.c);if(m===0||(e.apply(f,f),e.apply(c,c),e.apply(d,d),e.apply(p,p),Math.max(f.x,c.x,d.x,p.x)<=o||Math.min(f.x,c.x,d.x,p.x)>=h||Math.max(f.y,c.y,d.y,p.y)<=u||Math.min(f.y,c.y,d.y,p.y)>=l))return!1;var v=m*(c.y-f.y),y=m*(f.x-c.x),R=v*o+y*u,C=v*h+y*u,M=v*o+y*l,k=v*h+y*l;if(Math.max(R,C,M,k)<=v*f.x+y*f.y||Math.min(R,C,M,k)>=v*p.x+y*p.y)return!1;var B=m*(f.y-d.y),T=m*(d.x-f.x),b=B*o+T*u,G=B*h+T*u,rr=B*o+T*l,ir=B*h+T*l;return!(Math.max(b,G,rr,ir)<=B*f.x+T*f.y||Math.min(b,G,rr,ir)>=B*p.x+T*p.y)},r.prototype.pad=function(t,e){return t===void 0&&(t=0),e===void 0&&(e=t),this.x-=t,this.y-=e,this.width+=t*2,this.height+=e*2,this},r.prototype.fit=function(t){var e=Math.max(this.x,t.x),i=Math.min(this.x+this.width,t.x+t.width),n=Math.max(this.y,t.y),s=Math.min(this.y+this.height,t.y+t.height);return this.x=e,this.width=Math.max(i-e,0),this.y=n,this.height=Math.max(s-n,0),this},r.prototype.ceil=function(t,e){t===void 0&&(t=1),e===void 0&&(e=.001);var i=Math.ceil((this.x+this.width-e)*t)/t,n=Math.ceil((this.y+this.height-e)*t)/t;return this.x=Math.floor((this.x+e)*t)/t,this.y=Math.floor((this.y+e)*t)/t,this.width=i-this.x,this.height=n-this.y,this},r.prototype.enlarge=function(t){var e=Math.min(this.x,t.x),i=Math.max(this.x+this.width,t.x+t.width),n=Math.min(this.y,t.y),s=Math.max(this.y+this.height,t.y+t.height);return this.x=e,this.width=i-e,this.y=n,this.height=s-n,this},r.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},r}(),gt=function(){function r(t,e,i,n){i===void 0&&(i=0),n===void 0&&(n=0),this._x=i,this._y=n,this.cb=t,this.scope=e}return r.prototype.clone=function(t,e){return t===void 0&&(t=this.cb),e===void 0&&(e=this.scope),new r(t,e,this._x,this._y)},r.prototype.set=function(t,e){return t===void 0&&(t=0),e===void 0&&(e=t),(this._x!==t||this._y!==e)&&(this._x=t,this._y=e,this.cb.call(this.scope)),this},r.prototype.copyFrom=function(t){return(this._x!==t.x||this._y!==t.y)&&(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this},r.prototype.copyTo=function(t){return t.set(this._x,this._y),t},r.prototype.equals=function(t){return t.x===this._x&&t.y===this._y},r.prototype.toString=function(){return"[@pixi/math:ObservablePoint x="+0+" y="+0+" scope="+this.scope+"]"},Object.defineProperty(r.prototype,"x",{get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"y",{get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),r}(),H=function(){function r(t,e,i,n,s,a){t===void 0&&(t=1),e===void 0&&(e=0),i===void 0&&(i=0),n===void 0&&(n=1),s===void 0&&(s=0),a===void 0&&(a=0),this.array=null,this.a=t,this.b=e,this.c=i,this.d=n,this.tx=s,this.ty=a}return r.prototype.fromArray=function(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]},r.prototype.set=function(t,e,i,n,s,a){return this.a=t,this.b=e,this.c=i,this.d=n,this.tx=s,this.ty=a,this},r.prototype.toArray=function(t,e){this.array||(this.array=new Float32Array(9));var i=e||this.array;return t?(i[0]=this.a,i[1]=this.b,i[2]=0,i[3]=this.c,i[4]=this.d,i[5]=0,i[6]=this.tx,i[7]=this.ty,i[8]=1):(i[0]=this.a,i[1]=this.c,i[2]=this.tx,i[3]=this.b,i[4]=this.d,i[5]=this.ty,i[6]=0,i[7]=0,i[8]=1),i},r.prototype.apply=function(t,e){e=e||new P;var i=t.x,n=t.y;return e.x=this.a*i+this.c*n+this.tx,e.y=this.b*i+this.d*n+this.ty,e},r.prototype.applyInverse=function(t,e){e=e||new P;var i=1/(this.a*this.d+this.c*-this.b),n=t.x,s=t.y;return e.x=this.d*i*n+-this.c*i*s+(this.ty*this.c-this.tx*this.d)*i,e.y=this.a*i*s+-this.b*i*n+(-this.ty*this.a+this.tx*this.b)*i,e},r.prototype.translate=function(t,e){return this.tx+=t,this.ty+=e,this},r.prototype.scale=function(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this},r.prototype.rotate=function(t){var e=Math.cos(t),i=Math.sin(t),n=this.a,s=this.c,a=this.tx;return this.a=n*e-this.b*i,this.b=n*i+this.b*e,this.c=s*e-this.d*i,this.d=s*i+this.d*e,this.tx=a*e-this.ty*i,this.ty=a*i+this.ty*e,this},r.prototype.append=function(t){var e=this.a,i=this.b,n=this.c,s=this.d;return this.a=t.a*e+t.b*n,this.b=t.a*i+t.b*s,this.c=t.c*e+t.d*n,this.d=t.c*i+t.d*s,this.tx=t.tx*e+t.ty*n+this.tx,this.ty=t.tx*i+t.ty*s+this.ty,this},r.prototype.setTransform=function(t,e,i,n,s,a,o,h,u){return this.a=Math.cos(o+u)*s,this.b=Math.sin(o+u)*s,this.c=-Math.sin(o-h)*a,this.d=Math.cos(o-h)*a,this.tx=t-(i*this.a+n*this.c),this.ty=e-(i*this.b+n*this.d),this},r.prototype.prepend=function(t){var e=this.tx;if(t.a!==1||t.b!==0||t.c!==0||t.d!==1){var i=this.a,n=this.c;this.a=i*t.a+this.b*t.c,this.b=i*t.b+this.b*t.d,this.c=n*t.a+this.d*t.c,this.d=n*t.b+this.d*t.d}return this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty,this},r.prototype.decompose=function(t){var e=this.a,i=this.b,n=this.c,s=this.d,a=t.pivot,o=-Math.atan2(-n,s),h=Math.atan2(i,e),u=Math.abs(o+h);return u<1e-5||Math.abs(Bi-u)<1e-5?(t.rotation=h,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=o,t.skew.y=h),t.scale.x=Math.sqrt(e*e+i*i),t.scale.y=Math.sqrt(n*n+s*s),t.position.x=this.tx+(a.x*e+a.y*n),t.position.y=this.ty+(a.x*i+a.y*s),t},r.prototype.invert=function(){var t=this.a,e=this.b,i=this.c,n=this.d,s=this.tx,a=t*n-e*i;return this.a=n/a,this.b=-e/a,this.c=-i/a,this.d=t/a,this.tx=(i*this.ty-n*s)/a,this.ty=-(t*this.ty-e*s)/a,this},r.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},r.prototype.clone=function(){var t=new r;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},r.prototype.copyTo=function(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},r.prototype.copyFrom=function(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this},r.prototype.toString=function(){return"[@pixi/math:Matrix a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+"]"},Object.defineProperty(r,"IDENTITY",{get:function(){return new r},enumerable:!1,configurable:!0}),Object.defineProperty(r,"TEMP_MATRIX",{get:function(){return new r},enumerable:!1,configurable:!0}),r}(),st=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],at=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],ot=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],ht=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],ye=[],ei=[],Ut=Math.sign;function Xi(){for(var r=0;r<16;r++){var t=[];ye.push(t);for(var e=0;e<16;e++)for(var i=Ut(st[r]*st[e]+ot[r]*at[e]),n=Ut(at[r]*st[e]+ht[r]*at[e]),s=Ut(st[r]*ot[e]+ot[r]*ht[e]),a=Ut(at[r]*ot[e]+ht[r]*ht[e]),o=0;o<16;o++)if(st[o]===i&&at[o]===n&&ot[o]===s&&ht[o]===a){t.push(o);break}}for(var r=0;r<16;r++){var h=new H;h.set(st[r],at[r],ot[r],ht[r],0,0),ei.push(h)}}Xi();var A={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(r){return st[r]},uY:function(r){return at[r]},vX:function(r){return ot[r]},vY:function(r){return ht[r]},inv:function(r){return r&8?r&15:-r&7},add:function(r,t){return ye[r][t]},sub:function(r,t){return ye[r][A.inv(t)]},rotate180:function(r){return r^4},isVertical:function(r){return(r&3)===2},byDirection:function(r,t){return Math.abs(r)*2<=Math.abs(t)?t>=0?A.S:A.N:Math.abs(t)*2<=Math.abs(r)?r>0?A.E:A.W:t>0?r>0?A.SE:A.SW:r>0?A.NE:A.NW},matrixAppendRotationInv:function(r,t,e,i){e===void 0&&(e=0),i===void 0&&(i=0);var n=ei[A.inv(t)];n.tx=e,n.ty=i,r.append(n)}},Hi=function(){function r(){this.worldTransform=new H,this.localTransform=new H,this.position=new gt(this.onChange,this,0,0),this.scale=new gt(this.onChange,this,1,1),this.pivot=new gt(this.onChange,this,0,0),this.skew=new gt(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}return r.prototype.onChange=function(){this._localID++},r.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++},r.prototype.toString=function(){return"[@pixi/math:Transform "+("position=("+this.position.x+", "+this.position.y+") ")+("rotation="+this.rotation+" ")+("scale=("+this.scale.x+", "+this.scale.y+") ")+("skew=("+this.skew.x+", "+this.skew.y+") ")+"]"},r.prototype.updateLocalTransform=function(){var t=this.localTransform;this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1)},r.prototype.updateTransform=function(t){var e=this.localTransform;if(this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){var i=t.worldTransform,n=this.worldTransform;n.a=e.a*i.a+e.b*i.c,n.b=e.a*i.b+e.b*i.d,n.c=e.c*i.a+e.d*i.c,n.d=e.c*i.b+e.d*i.d,n.tx=e.tx*i.a+e.ty*i.c+i.tx,n.ty=e.tx*i.b+e.ty*i.d+i.ty,this._parentID=t._worldID,this._worldID++}},r.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},Object.defineProperty(r.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())},enumerable:!1,configurable:!0}),r.IDENTITY=new r,r}();/*! + * @pixi/core - v6.4.2 + * Compiled Thu, 02 Jun 2022 15:39:26 UTC + * + * @pixi/core is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */x.PREFER_ENV=ut.any?Z.WEBGL:Z.WEBGL2;x.STRICT_TEXTURE_CACHE=!1;var ge=[];function ri(r,t){if(!r)return null;var e="";if(typeof r=="string"){var i=/\.(\w{3,4})(?:$|\?|#)/i.exec(r);i&&(e=i[1].toLowerCase())}for(var n=ge.length-1;n>=0;--n){var s=ge[n];if(s.test&&s.test(r,e))return new s(r,t)}throw new Error("Unrecognized source type to auto-detect Resource")}/*! ***************************************************************************** +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 et[this.cacheId],delete $[this.cacheId],this.cacheId=null),this.dispose(),t.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},t.prototype.dispose=function(){this.emit("dispose",this)},t.prototype.castToBaseTexture=function(){return this},t.from=function(e,i,n){n===void 0&&(n=x.STRICT_TEXTURE_CACHE);var s=typeof e=="string",a=null;if(s)a=e;else{if(!e._pixiId){var o=i&&i.pixiIdPrefix||"pixiid";e._pixiId=o+"_"+It()}a=e._pixiId}var h=et[a];if(s&&n&&!h)throw new Error('The cacheId "'+a+'" does not exist in BaseTextureCache.');return h||(h=new t(e,i),h.cacheId=a,t.addToCache(h,a)),h},t.fromBuffer=function(e,i,n,s){e=e||new Float32Array(i*n*4);var a=new Ne(e,{width:i,height:n}),o=e instanceof Float32Array?I.FLOAT:I.UNSIGNED_BYTE;return new t(a,Object.assign(ji,s||{width:i,height:n,type:o}))},t.addToCache=function(e,i){i&&(e.textureCacheIds.indexOf(i)===-1&&e.textureCacheIds.push(i),et[i]&&console.warn("BaseTexture added to the cache with an id ["+i+"] that already had an entry"),et[i]=e)},t.removeFromCache=function(e){if(typeof e=="string"){var i=et[e];if(i){var n=i.textureCacheIds.indexOf(e);return n>-1&&i.textureCacheIds.splice(n,1),delete et[e],i}}else if(e&&e.textureCacheIds){for(var s=0;s0)if(e.resource)this.addResourceAt(e.resource,i);else throw new Error("CubeResource does not support copying of renderTexture.");else e.target=lt.TEXTURE_CUBE_MAP_POSITIVE_X+i,e.parentTextureArray=this.baseTexture,this.items[i]=e;return e.valid&&!this.valid&&this.resize(e.realWidth,e.realHeight),this.items[i]=e,this},t.prototype.upload=function(e,i,n){for(var s=this.itemDirtyIds,a=0;a)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t}(tt),$i=function(r){N(t,r);function t(e,i){var n=this;if(i=i||{},!(e instanceof HTMLVideoElement)){var s=document.createElement("video");s.setAttribute("preload","auto"),s.setAttribute("webkit-playsinline",""),s.setAttribute("playsinline",""),typeof e=="string"&&(e=[e]);var a=e[0].src||e[0];tt.crossOrigin(s,a,i.crossorigin);for(var o=0;o0&&e.paused===!1&&e.ended===!1&&e.readyState>2},t.prototype._isSourceReady=function(){var e=this.source;return e.readyState===3||e.readyState===4},t.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(nt.shared.add(this.update,this),this._isConnectedToTicker=!0)},t.prototype._onPlayStop=function(){this._isConnectedToTicker&&(nt.shared.remove(this.update,this),this._isConnectedToTicker=!1)},t.prototype._onCanPlay=function(){var e=this.source;e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay);var i=this.valid;this.resize(e.videoWidth,e.videoHeight),!i&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&e.play()},t.prototype.dispose=function(){this._isConnectedToTicker&&(nt.shared.remove(this.update,this),this._isConnectedToTicker=!1);var e=this.source;e&&(e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),r.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(nt.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(nt.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(e){e!==this._updateFPS&&(this._updateFPS=e)},enumerable:!1,configurable:!0}),t.test=function(e,i){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||t.TYPES.indexOf(i)>-1},t.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],t.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},t}(tt),qi=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.test=function(e){return!!globalThis.createImageBitmap&&e instanceof ImageBitmap},t}(tt);ge.push(si,qi,ni,$i,Wi,Ne,zi,Di);var Yi=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.upload=function(e,i,n){var s=e.gl;s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.alphaMode===Q.UNPACK);var a=i.realWidth,o=i.realHeight;return n.width===a&&n.height===o?s.texSubImage2D(i.target,0,0,0,a,o,i.format,n.type,this.data):(n.width=a,n.height=o,s.texImage2D(i.target,0,n.internalFormat,a,o,0,i.format,n.type,this.data)),!0},t}(Ne),be=function(){function r(t,e){this.width=Math.round(t||100),this.height=Math.round(e||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new S("disposeFramebuffer"),this.multisample=F.NONE}return Object.defineProperty(r.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),r.prototype.addColorTexture=function(t,e){return t===void 0&&(t=0),this.colorTextures[t]=e||new L(null,{scaleMode:q.NEAREST,resolution:1,mipmap:ft.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},r.prototype.addDepthTexture=function(t){return this.depthTexture=t||new L(new Yi(null,{width:this.width,height:this.height}),{scaleMode:q.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:ft.OFF,format:_.DEPTH_COMPONENT,type:I.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},r.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},r.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},r.prototype.resize=function(t,e){if(t=Math.round(t),e=Math.round(e),!(t===this.width&&e===this.height)){this.width=t,this.height=e,this.dirtyId++,this.dirtySize++;for(var i=0;i-1&&i.textureCacheIds.splice(n,1),delete $[e],i}}else if(e&&e.textureCacheIds){for(var s=0;sthis.baseTexture.width,h=n+a>this.baseTexture.height;if(o||h){var u=o&&h?"and":"or",l="X: "+i+" + "+s+" = "+(i+s)+" > "+this.baseTexture.width,f="Y: "+n+" + "+a+" = "+(n+a)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(l+" "+u+" "+f))}this.valid=s&&a&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=e),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this._rotate},set:function(e){this._rotate=e,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),t.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(t,"EMPTY",{get:function(){return t._EMPTY||(t._EMPTY=new t(new L),Ft(t._EMPTY),Ft(t._EMPTY.baseTexture)),t._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(t,"WHITE",{get:function(){if(!t._WHITE){var e=document.createElement("canvas"),i=e.getContext("2d");e.width=16,e.height=16,i.fillStyle="white",i.fillRect(0,0,16,16),t._WHITE=new t(new L(new ni(e))),Ft(t._WHITE),Ft(t._WHITE.baseTexture)}return t._WHITE},enumerable:!1,configurable:!0}),t}(Wt),Ce=function(r){N(t,r);function t(e,i){var n=r.call(this,e,i)||this;return n.valid=!0,n.filterFrame=null,n.filterPoolKey=null,n.updateUvs(),n}return Object.defineProperty(t.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(e){this.framebuffer.multisample=e},enumerable:!1,configurable:!0}),t.prototype.resize=function(e,i,n){n===void 0&&(n=!0);var s=this.baseTexture.resolution,a=Math.round(e*s)/s,o=Math.round(i*s)/s;this.valid=a>0&&o>0,this._frame.width=this.orig.width=a,this._frame.height=this.orig.height=o,n&&this.baseTexture.resize(a,o),this.updateUvs()},t.prototype.setResolution=function(e){var i=this.baseTexture;i.resolution!==e&&(i.setResolution(e),this.resize(i.width,i.height,!1))},t.create=function(e){for(var i=arguments,n=[],s=1;s>>0,n>1&&(s+=n*4294967296)):s=n>1?-n:-1,this.texturePool[s]||(this.texturePool[s]=[]);var a=this.texturePool[s].pop();return a||(a=this.createTexture(t,e,n)),a.filterPoolKey=s,a.setResolution(i),a},r.prototype.getFilterTexture=function(t,e,i){var n=this.getOptimalTexture(t.width,t.height,e||t.resolution,i||F.NONE);return n.filterFrame=t.filterFrame,n},r.prototype.returnTexture=function(t){var e=t.filterPoolKey;t.filterFrame=null,this.texturePool[e].push(t)},r.prototype.returnFilterTexture=function(t){this.returnTexture(t)},r.prototype.clear=function(t){if(t=t!==!1,t)for(var e in this.texturePool){var i=this.texturePool[e];if(i)for(var n=0;n0&&t.height>0;for(var e in this.texturePool)if(Number(e)<0){var i=this.texturePool[e];if(i)for(var n=0;n1){for(var l=0;l1&&(f=this.getOptimalFilterTexture(l.width,l.height,e.resolution),f.filterFrame=l.filterFrame),i[c].apply(this,l,f,J.CLEAR,e);var d=l;l=f,f=d}i[c].apply(this,l,u.renderTexture,J.BLEND,e),c>1&&e.multisample>1&&this.returnFilterTexture(e.renderTexture),this.returnFilterTexture(l),this.returnFilterTexture(f)}e.clear(),this.statePool.push(e)},r.prototype.bindAndClear=function(t,e){e===void 0&&(e=J.CLEAR);var i=this.renderer,n=i.renderTexture,s=i.state;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame){var a=this.tempRect;a.x=0,a.y=0,a.width=t.filterFrame.width,a.height=t.filterFrame.height,n.bind(t,t.filterFrame,a)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?n.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var o=s.stateId&1||this.forceClear;(e===J.CLEAR||e===J.BLIT&&o)&&this.renderer.framebuffer.clear(0,0,0,0)},r.prototype.applyFilter=function(t,e,i,n){var s=this.renderer;s.state.set(t.state),this.bindAndClear(i,n),t.uniforms.uSampler=e,t.uniforms.filterGlobals=this.globalUniforms,s.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(e._frame,e.filterFrame),s.geometry.bind(this.quadUv),s.geometry.draw(bt.TRIANGLES)):(s.geometry.bind(this.quad),s.geometry.draw(bt.TRIANGLE_STRIP))},r.prototype.calculateSpriteMatrix=function(t,e){var i=this.activeState,n=i.sourceFrame,s=i.destinationFrame,a=e._texture.orig,o=t.set(s.width,0,0,s.height,n.x,n.y),h=e.worldTransform.copyTo(H.TEMP_MATRIX);return h.invert(),o.prepend(h),o.scale(1/a.width,1/a.height),o.translate(e.anchor.x,e.anchor.y),o},r.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},r.prototype.getOptimalFilterTexture=function(t,e,i,n){return i===void 0&&(i=1),n===void 0&&(n=F.NONE),this.texturePool.getOptimalTexture(t,e,i,n)},r.prototype.getFilterTexture=function(t,e,i){if(typeof t=="number"){var n=t;t=e,e=n}t=t||this.activeState.renderTexture;var s=this.texturePool.getOptimalTexture(t.width,t.height,e||t.resolution,i||F.NONE);return s.filterFrame=t.filterFrame,s},r.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},r.prototype.emptyPool=function(){this.texturePool.clear(!0)},r.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},r.prototype.transformAABB=function(t,e){var i=Lt[0],n=Lt[1],s=Lt[2],a=Lt[3];i.set(e.left,e.top),n.set(e.left,e.bottom),s.set(e.right,e.top),a.set(e.right,e.bottom),t.apply(i,i),t.apply(n,n),t.apply(s,s),t.apply(a,a);var o=Math.min(i.x,n.x,s.x,a.x),h=Math.min(i.y,n.y,s.y,a.y),u=Math.max(i.x,n.x,s.x,a.x),l=Math.max(i.y,n.y,s.y,a.y);e.x=o,e.y=h,e.width=u-o,e.height=l-h},r.prototype.roundFrame=function(t,e,i,n,s){if(!(t.width<=0||t.height<=0||i.width<=0||i.height<=0)){if(s){var a=s.a,o=s.b,h=s.c,u=s.d;if((Math.abs(o)>1e-4||Math.abs(h)>1e-4)&&(Math.abs(a)>1e-4||Math.abs(u)>1e-4))return}s=s?Zt.copyFrom(s):Zt.identity(),s.translate(-i.x,-i.y).scale(n.width/i.width,n.height/i.height).translate(n.x,n.y),this.transformAABB(s,t),t.ceil(e),this.transformAABB(s.invert(),t)}},r}(),hi=function(){function r(t){this.renderer=t}return r.prototype.flush=function(){},r.prototype.destroy=function(){this.renderer=null},r.prototype.start=function(){},r.prototype.stop=function(){this.flush()},r.prototype.render=function(t){},r}(),hn=function(){function r(t){this.renderer=t,this.emptyRenderer=new hi(t),this.currentRenderer=this.emptyRenderer}return r.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},r.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},r.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},r.prototype.copyBoundTextures=function(t,e){for(var i=this.renderer.texture.boundTextures,n=e-1;n>=0;--n)t[n]=i[n]||null,t[n]&&(t[n]._batchLocation=n)},r.prototype.boundArray=function(t,e,i,n){for(var s=t.elements,a=t.ids,o=t.count,h=0,u=0;u=0&&f=Z.WEBGL2&&(i=t.getContext("webgl2",e)),i)this.webGLVersion=2;else if(this.webGLVersion=1,i=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),!i)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=i,this.getExtensions(),this.gl},r.prototype.getExtensions=function(){var t=this.gl,e={anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,e,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),loseContext:t.getExtension("WEBGL_lose_context"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,e,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},r.prototype.handleContextLost=function(t){t.preventDefault()},r.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},r.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},r.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},r.prototype.validateContext=function(t){var e=t.getContextAttributes(),i="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;i&&(this.webGLVersion=2),e&&!e.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var n=i||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=n,n||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},r}(),ln=function(){function r(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=F.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return r}(),fn=new U,cn=function(){function r(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new be(10,10),this.msaaSamples=null}return r.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new U,this.hasMRT=!0,this.writeDepthTexture=!0,this.disposeAll(!0),this.renderer.context.webGLVersion===1){var e=this.renderer.context.extensions.drawBuffers,i=this.renderer.context.extensions.depthTexture;x.PREFER_ENV===Z.WEBGL_LEGACY&&(e=null,i=null),e?t.drawBuffers=function(n){return e.drawBuffersWEBGL(n)}:(this.hasMRT=!1,t.drawBuffers=function(){}),i||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},r.prototype.bind=function(t,e,i){i===void 0&&(i=0);var n=this.gl;if(t){var s=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,n.bindFramebuffer(n.FRAMEBUFFER,s.framebuffer)),s.mipLevel!==i&&(t.dirtyId++,t.dirtyFormat++,s.mipLevel=i),s.dirtyId!==t.dirtyId&&(s.dirtyId=t.dirtyId,s.dirtyFormat!==t.dirtyFormat?(s.dirtyFormat=t.dirtyFormat,s.dirtySize=t.dirtySize,this.updateFramebuffer(t,i)):s.dirtySize!==t.dirtySize&&(s.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var a=0;a>i,u=e.height>>i,l=h/e.width;this.setViewport(e.x*l,e.y*l,h,u)}else{var h=t.width>>i,u=t.height>>i;this.setViewport(0,0,h,u)}}else this.current&&(this.current=null,n.bindFramebuffer(n.FRAMEBUFFER,null)),e?this.setViewport(e.x,e.y,e.width,e.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},r.prototype.setViewport=function(t,e,i,n){var s=this.viewport;t=Math.round(t),e=Math.round(e),i=Math.round(i),n=Math.round(n),(s.width!==i||s.height!==n||s.x!==t||s.y!==e)&&(s.x=t,s.y=e,s.width=i,s.height=n,this.gl.viewport(t,e,i,n))},Object.defineProperty(r.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),r.prototype.clear=function(t,e,i,n,s){s===void 0&&(s=Xt.COLOR|Xt.DEPTH);var a=this.gl;a.clearColor(t,e,i,n),a.clear(s)},r.prototype.initFramebuffer=function(t){var e=this.gl,i=new ln(e.createFramebuffer());return i.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=i,this.managedFramebuffers.push(t),t.disposeRunner.add(this),i},r.prototype.resizeFramebuffer=function(t){var e=this.gl,i=t.glFramebuffers[this.CONTEXT_UID];i.msaaBuffer&&(e.bindRenderbuffer(e.RENDERBUFFER,i.msaaBuffer),e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,e.RGBA8,t.width,t.height)),i.stencil&&(e.bindRenderbuffer(e.RENDERBUFFER,i.stencil),i.msaaBuffer?e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,e.DEPTH24_STENCIL8,t.width,t.height):e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,t.width,t.height));var n=t.colorTextures,s=n.length;e.drawBuffers||(s=Math.min(s,1));for(var a=0;a1&&this.canMultisampleFramebuffer(t)?(n.msaaBuffer=n.msaaBuffer||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,n.msaaBuffer),i.renderbufferStorageMultisample(i.RENDERBUFFER,n.multisample,i.RGBA8,t.width,t.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.RENDERBUFFER,n.msaaBuffer)):n.msaaBuffer&&(i.deleteRenderbuffer(n.msaaBuffer),n.msaaBuffer=null,n.blitFramebuffer&&(n.blitFramebuffer.dispose(),n.blitFramebuffer=null));for(var o=[],h=0;h1&&i.drawBuffers(o),t.depthTexture){var f=this.writeDepthTexture;if(f){var c=t.depthTexture;this.renderer.texture.bind(c,0),i.framebufferTexture2D(i.FRAMEBUFFER,i.DEPTH_ATTACHMENT,i.TEXTURE_2D,c._glTextures[this.CONTEXT_UID].texture,e)}}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(n.stencil=n.stencil||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,n.stencil),n.msaaBuffer?i.renderbufferStorageMultisample(i.RENDERBUFFER,n.multisample,i.DEPTH24_STENCIL8,t.width,t.height):i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,t.width,t.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_STENCIL_ATTACHMENT,i.RENDERBUFFER,n.stencil)):n.stencil&&(i.deleteRenderbuffer(n.stencil),n.stencil=null)},r.prototype.canMultisampleFramebuffer=function(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture},r.prototype.detectSamples=function(t){var e=this.msaaSamples,i=F.NONE;if(t<=1||e===null)return i;for(var n=0;n=0&&this.managedFramebuffers.splice(s,1),t.disposeRunner.remove(this),e||(n.deleteFramebuffer(i.framebuffer),i.msaaBuffer&&n.deleteRenderbuffer(i.msaaBuffer),i.stencil&&n.deleteRenderbuffer(i.stencil)),i.blitFramebuffer&&i.blitFramebuffer.dispose()}},r.prototype.disposeAll=function(t){var e=this.managedFramebuffers;this.managedFramebuffers=[];for(var i=0;i=Z.WEBGL2&&(t=r.getContext("webgl2",{})),t||(t=r.getContext("webgl",{})||r.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),vt=t}return vt}var Ot;function _n(){if(!Ot){Ot=D.MEDIUM;var r=mn();if(r&&r.getShaderPrecisionFormat){var t=r.getShaderPrecisionFormat(r.FRAGMENT_SHADER,r.HIGH_FLOAT);Ot=t.precision?D.HIGH:D.MEDIUM}}return Ot}function Pr(r,t,e){if(r.substring(0,9)!=="precision"){var i=t;return t===D.HIGH&&e!==D.HIGH&&(i=D.MEDIUM),"precision "+i+` float; +`+r}else if(e!==D.HIGH&&r.substring(0,15)==="precision highp")return r.replace("precision highp","precision mediump");return r}var yn={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function fi(r){return yn[r]}var St=null,Ur={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function ci(r,t){if(!St){var e=Object.keys(Ur);St={};for(var i=0;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}(),rt=new U,_t=new U,Xn=function(){function r(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new U,this.destinationFrame=new U,this.viewportFrame=new U}return r.prototype.bind=function(t,e,i){t===void 0&&(t=null);var n=this.renderer;this.current=t;var s,a,o;t?(s=t.baseTexture,o=s.resolution,e||(rt.width=t.frame.width,rt.height=t.frame.height,e=rt),i||(_t.x=t.frame.x,_t.y=t.frame.y,_t.width=e.width,_t.height=e.height,i=_t),a=s.framebuffer):(o=n.resolution,e||(rt.width=n.screen.width,rt.height=n.screen.height,e=rt),i||(i=rt,i.width=e.width,i.height=e.height));var h=this.viewportFrame;h.x=i.x*o,h.y=i.y*o,h.width=i.width*o,h.height=i.height*o,t||(h.y=n.view.height-(h.y+h.height)),h.ceil(),this.renderer.framebuffer.bind(a,h),this.renderer.projection.update(i,e,o,!a),t?this.renderer.mask.setMaskStack(s.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(e),this.destinationFrame.copyFrom(i)},r.prototype.clear=function(t,e){this.current?t=t||this.current.baseTexture.clearColor:t=t||this.clearColor;var i=this.destinationFrame,n=this.current?this.current.baseTexture:this.renderer.screen,s=i.width!==n.width||i.height!==n.height;if(s){var a=this.viewportFrame,o=a.x,h=a.y,u=a.width,l=a.height;o=Math.round(o),h=Math.round(h),u=Math.round(u),l=Math.round(l),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(o,h,u,l)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],e),s&&this.renderer.scissor.pop()},r.prototype.resize=function(){this.bind(null)},r.prototype.reset=function(){this.bind(null)},r.prototype.destroy=function(){this.renderer=null},r}();function Hn(r,t,e,i,n){e.buffer.update(n)}var Vn={float:` + 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!==Ht.FLOAT&&this.renderer.texture.unbind(o)}}},r.prototype.initTexture=function(t){var e=new ae(this.gl.createTexture());return e.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=e,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),e},r.prototype.initTextureType=function(t,e){var i,n;e.internalFormat=(n=(i=this.internalFormats[t.type])===null||i===void 0?void 0:i[t.format])!==null&&n!==void 0?n:t.format,this.webGLVersion===2&&t.type===I.HALF_FLOAT?e.type=this.gl.HALF_FLOAT:e.type=t.type},r.prototype.updateTexture=function(t){var e=t._glTextures[this.CONTEXT_UID];if(!!e){var i=this.renderer;if(this.initTextureType(t,e),t.resource&&t.resource.upload(i,t,e))e.samplerType!==Ht.FLOAT&&(this.hasIntegerTextures=!0);else{var n=t.realWidth,s=t.realHeight,a=i.gl;(e.width!==n||e.height!==s||e.dirtyId<0)&&(e.width=n,e.height=s,a.texImage2D(t.target,0,e.internalFormat,n,s,0,t.format,e.type,null))}t.dirtyStyleId!==e.dirtyStyleId&&this.updateTextureStyle(t),e.dirtyId=t.dirtyId}},r.prototype.destroyTexture=function(t,e){var i=this.gl;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),i.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!e)){var n=this.managedTextures.indexOf(t);n!==-1&&kt(this.managedTextures,n,1)}},r.prototype.updateTextureStyle=function(t){var e=t._glTextures[this.CONTEXT_UID];!e||((t.mipmap===ft.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?e.mipmap=!1:e.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?e.wrapMode=ve.CLAMP:e.wrapMode=t.wrapMode,t.resource&&t.resource.style(this.renderer,t,e)||this.setStyle(t,e),e.dirtyStyleId=t.dirtyStyleId)},r.prototype.setStyle=function(t,e){var i=this.gl;if(e.mipmap&&t.mipmap!==ft.ON_MANUAL&&i.generateMipmap(t.target),i.texParameteri(t.target,i.TEXTURE_WRAP_S,e.wrapMode),i.texParameteri(t.target,i.TEXTURE_WRAP_T,e.wrapMode),e.mipmap){i.texParameteri(t.target,i.TEXTURE_MIN_FILTER,t.scaleMode===q.LINEAR?i.LINEAR_MIPMAP_LINEAR:i.NEAREST_MIPMAP_NEAREST);var n=this.renderer.context.extensions.anisotropicFiltering;if(n&&t.anisotropicLevel>0&&t.scaleMode===q.LINEAR){var s=Math.min(t.anisotropicLevel,i.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT));i.texParameterf(t.target,n.TEXTURE_MAX_ANISOTROPY_EXT,s)}}else i.texParameteri(t.target,i.TEXTURE_MIN_FILTER,t.scaleMode===q.LINEAR?i.LINEAR:i.NEAREST);i.texParameteri(t.target,i.TEXTURE_MAG_FILTER,t.scaleMode===q.LINEAR?i.LINEAR:i.NEAREST)},r.prototype.destroy=function(){this.renderer=null},r}(),oe=new H,us=function(r){N(t,r);function t(e,i){e===void 0&&(e=Tt.UNKNOWN);var n=r.call(this)||this;return i=Object.assign({},x.RENDER_OPTIONS,i),n.options=i,n.type=e,n.screen=new U(0,0,i.width,i.height),n.view=i.view||document.createElement("canvas"),n.resolution=i.resolution||x.RESOLUTION,n.useContextAlpha=i.useContextAlpha,n.autoDensity=!!i.autoDensity,n.preserveDrawingBuffer=i.preserveDrawingBuffer,n.clearBeforeRender=i.clearBeforeRender,n._backgroundColor=0,n._backgroundColorRgba=[0,0,0,1],n._backgroundColorString="#000000",n.backgroundColor=i.backgroundColor||n._backgroundColor,n.backgroundAlpha=i.backgroundAlpha,i.transparent!==void 0&&(Rt("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),n.useContextAlpha=i.transparent,n.backgroundAlpha=i.transparent?0:1),n._lastObjectRendered=null,n.plugins={},n}return t.prototype.initPlugins=function(e){for(var i in e)this.plugins[i]=new e[i](this)},Object.defineProperty(t.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),t.prototype.resize=function(e,i){this.view.width=Math.round(e*this.resolution),this.view.height=Math.round(i*this.resolution);var n=this.view.width/this.resolution,s=this.view.height/this.resolution;this.screen.width=n,this.screen.height=s,this.autoDensity&&(this.view.style.width=n+"px",this.view.style.height=s+"px"),this.emit("resize",n,s)},t.prototype.generateTexture=function(e,i,n,s){i===void 0&&(i={}),typeof i=="number"&&(Rt("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),i={scaleMode:i,resolution:n,region:s});var a=i.region,o=Vi(i,["region"]);s=a||e.getLocalBounds(null,!0),s.width===0&&(s.width=1),s.height===0&&(s.height=1);var h=Ce.create(Te({width:s.width,height:s.height},o));return oe.tx=-s.x,oe.ty=-s.y,this.render(e,{renderTexture:h,clear:!1,transform:oe,skipUpdateTransform:!!e.parent}),h},t.prototype.destroy=function(e){for(var i in this.plugins)this.plugins[i].destroy(),this.plugins[i]=null;e&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var n=this;n.plugins=null,n.type=Tt.UNKNOWN,n.view=null,n.screen=null,n._tempDisplayObjectParent=null,n.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(e){this._backgroundColor=e,this._backgroundColorString=Ui(e),Pi(e,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(e){this._backgroundColorRgba[3]=e},enumerable:!1,configurable:!0}),t}(Wt),ls=function(){function r(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return r}(),fs=function(){function r(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}return r.prototype.destroy=function(){this.renderer=null},r.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},r.prototype.bind=function(t){var e=this,i=e.gl,n=e.CONTEXT_UID,s=t._glBuffers[n]||this.createGLBuffer(t);i.bindBuffer(t.type,s.buffer)},r.prototype.bindBufferBase=function(t,e){var i=this,n=i.gl,s=i.CONTEXT_UID;if(this.boundBufferBases[e]!==t){var a=t._glBuffers[s]||this.createGLBuffer(t);this.boundBufferBases[e]=t,n.bindBufferBase(n.UNIFORM_BUFFER,e,a.buffer)}},r.prototype.bindBufferRange=function(t,e,i){var n=this,s=n.gl,a=n.CONTEXT_UID;i=i||0;var o=t._glBuffers[a]||this.createGLBuffer(t);s.bindBufferRange(s.UNIFORM_BUFFER,e||0,o.buffer,i*256,256)},r.prototype.update=function(t){var e=this,i=e.gl,n=e.CONTEXT_UID,s=t._glBuffers[n];if(t._updateID!==s.updateID)if(s.updateID=t._updateID,i.bindBuffer(t.type,s.buffer),s.byteLength>=t.data.byteLength)i.bufferSubData(t.type,0,t.data);else{var a=t.static?i.STATIC_DRAW:i.DYNAMIC_DRAW;s.byteLength=t.data.byteLength,i.bufferData(t.type,t.data,a)}},r.prototype.dispose=function(t,e){if(!!this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var i=t._glBuffers[this.CONTEXT_UID],n=this.gl;t.disposeRunner.remove(this),i&&(e||n.deleteBuffer(i.buffer),delete t._glBuffers[this.CONTEXT_UID])}},r.prototype.disposeAll=function(t){for(var e=Object.keys(this.managedBuffers),i=0;i=F.HIGH?this.multisample=F.HIGH:i>=F.MEDIUM?this.multisample=F.MEDIUM:i>=F.LOW?this.multisample=F.LOW:this.multisample=F.NONE},t.prototype.addSystem=function(e,i){var n=new e(this);if(this[i])throw new Error('Whoops! The name "'+i+'" is already in use');this[i]=n;for(var s in this.runners)this.runners[s].add(n);return this},t.prototype.render=function(e,i){var n,s,a,o;if(i&&(i instanceof Ce?(Rt("6.0.0","Renderer#render arguments changed, use options instead."),n=i,s=arguments[2],a=arguments[3],o=arguments[4]):(n=i.renderTexture,s=i.clear,a=i.transform,o=i.skipUpdateTransform)),this.renderingToScreen=!n,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=a,!this.context.isLost){if(n||(this._lastObjectRendered=e),!o){var h=e.enableTempParent();e.updateTransform(),e.disableTempParent(h)}this.renderTexture.bind(n),this.batch.currentRenderer.start(),(s!==void 0?s:this.clearBeforeRender)&&this.renderTexture.clear(),e.render(this),this.batch.currentRenderer.flush(),n&&n.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},t.prototype.generateTexture=function(e,i,n,s){i===void 0&&(i={});var a=r.prototype.generateTexture.call(this,e,i,n,s);return this.framebuffer.blit(),a},t.prototype.resize=function(e,i){r.prototype.resize.call(this,e,i),this.runners.resize.emit(this.screen.height,this.screen.width)},t.prototype.reset=function(){return this.runners.reset.emit(),this},t.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},t.prototype.destroy=function(e){this.runners.destroy.emit();for(var i in this.runners)this.runners[i].destroy();r.prototype.destroy.call(this,e),this.gl=null},Object.defineProperty(t.prototype,"extract",{get:function(){return Rt("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),t.registerPlugin=function(e,i){t.__plugins=t.__plugins||{},t.__plugins[e]=i},t}(us);function ds(r){return cs.create(r)}var ps=function(){function r(){this.texArray=null,this.blend=0,this.type=bt.TRIANGLES,this.start=0,this.size=0,this.data=null}return r}(),vs=function(){function r(){this.elements=[],this.ids=[],this.count=0}return r.prototype.clear=function(){for(var t=0;tthis.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)},t.prototype.buildTexturesAndDrawCalls=function(){var e=this,i=e._bufferedTextures,n=e.MAX_TEXTURES,s=t._textureArrayPool,a=this.renderer.batch,o=this._tempBoundTextures,h=this.renderer.textureGC.count,u=++L._globalBatch,l=0,f=s[0],c=0;a.copyBoundTextures(o,n);for(var d=0;d=n&&(a.boundArray(f,o,u,n),this.buildDrawCalls(f,c,d),c=d,f=s[++l],++u),p._batchEnabled=u,p.touched=h,f.elements[f.count++]=p)}f.count>0&&(a.boundArray(f,o,u,n),this.buildDrawCalls(f,c,this._bufferSize),++l,++u);for(var d=0;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);kt(this.children,n,1),this.children.splice(i,0,e),this.onChildrenChange(i)},t.prototype.getChildAt=function(e){if(e<0||e>=this.children.length)throw new Error("getChildAt: Index ("+e+") does not exist.");return this.children[e]},t.prototype.removeChild=function(){for(var e=arguments,i=[],n=0;n1)for(var s=0;s0&&a<=s){o=this.children.splice(n,a);for(var h=0;h1&&this.children.sort(bs),this.sortDirty=!1},t.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var e=0,i=this.children.length;e0&&i.height>0){var n,s;if(this.cullArea?(n=this.cullArea,s=this.worldTransform):this._render!==t.prototype._render&&(n=this.getBounds(!0)),n&&i.intersects(n,s))this._render(e);else if(this.cullArea)return;for(var a=0,o=this.children.length;a=s&&yt.x=a&&yt.y>16)+(e&65280)+((e&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(e){this._texture!==e&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=e||Y.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,e&&(e.baseTexture.valid?this._onTextureUpdate():e.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),t}(zt);/*! + * @pixi/particle-emitter - v5.0.7 + * Compiled Fri, 27 May 2022 02:00:12 UTC + * + * @pixi/particle-emitter is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */class z{constructor(t,e,i){this.value=t,this.time=e,this.next=null,this.isStepped=!1,i?this.ease=typeof i=="function"?i:yi(i):this.ease=null}static createList(t){if("list"in t){const i=t.list;let n;const{value:s,time:a}=i[0],o=n=new z(typeof s=="string"?Mt(s):s,a,t.ease);if(i.length>2||i.length===2&&i[1].value!==s)for(let h=1;h0?this._frequency=t:this._frequency=1}get parent(){return this._parent}set parent(t){this.cleanup(),this._parent=t}init(t){if(!t)return;this.cleanup(),this._origConfig=t,this.minLifetime=t.lifetime.min,this.maxLifetime=t.lifetime.max,t.ease?this.customEase=typeof t.ease=="function"?t.ease:yi(t.ease):this.customEase=null,this.particlesPerWave=1,t.particlesPerWave&&t.particlesPerWave>1&&(this.particlesPerWave=t.particlesPerWave),this.frequency=t.frequency,this.spawnChance=typeof t.spawnChance=="number"&&t.spawnChance>0?t.spawnChance:1,this.emitterLifetime=t.emitterLifetime||-1,this.maxParticles=t.maxParticles>0?t.maxParticles:1e3,this.addAtBack=!!t.addAtBack,this.rotation=0,this.ownerPos.set(0),t.pos?this.spawnPos.copyFrom(t.pos):this.spawnPos.set(0),this._prevEmitterPos.copyFrom(this.spawnPos),this._prevPosIsValid=!1,this._spawnTimer=0,this.emit=t.emit===void 0?!0:!!t.emit,this.autoUpdate=!!t.autoUpdate;const e=t.behaviors.map(i=>{const n=E.knownBehaviors[i.type];return n?new n(i.config):(console.error(`Unknown behavior: ${i.type}`),null)}).filter(i=>!!i);e.push(it),e.sort((i,n)=>i===it?n.order===w.Spawn?1:-1:n===it?i.order===w.Spawn?-1:1:i.order-n.order),this.initBehaviors=e.slice(),this.updateBehaviors=e.filter(i=>i!==it&&i.updateParticle),this.recycleBehaviors=e.filter(i=>i!==it&&i.recycleParticle)}getBehavior(t){return E.knownBehaviors[t]&&this.initBehaviors.find(e=>e instanceof E.knownBehaviors[t])||null}fillPool(t){for(;t>0;--t){const e=new he(this);e.next=this._poolFirst,this._poolFirst=e}}recycle(t,e=!1){for(let i=0;ia.maxLife||a.age<0)this.recycle(a);else{let h=a.age*a.oneOverLife;this.customEase&&(this.customEase.length===4?h=this.customEase(h,0,1,1):h=this.customEase(h)),a.agePercent=h;for(let u=0;u=0&&(this._emitterLife-=this._frequency,this._emitterLife<=0)){this._spawnTimer=0,this._emitterLife=0,this.emit=!1;break}if(this.particleCount>=this.maxParticles){this._spawnTimer+=this._frequency;continue}let a,o;if(this._prevPosIsValid&&this._posChanged){const l=1+this._spawnTimer/t;a=(n-e)*l+e,o=(s-i)*l+i}else a=n,o=s;let h=null,u=null;for(let l=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount),f=0;f=this.spawnChance)continue;let c;if(this.minLifetime===this.maxLifetime?c=this.minLifetime:c=Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,-this._spawnTimer>=c)continue;let d;this._poolFirst?(d=this._poolFirst,this._poolFirst=this._poolFirst.next,d.next=null):d=new he(this),d.init(c),this.addAtBack?this._parent.addChildAt(d,0):this._parent.addChild(d),h?(u.next=d,d.prev=u,u=d):u=h=d,++this.particleCount}if(h){this._activeParticlesLast?(this._activeParticlesLast.next=h,h.prev=this._activeParticlesLast,this._activeParticlesLast=u):(this._activeParticlesFirst=h,this._activeParticlesLast=u);for(let l=0;l=this.spawnChance)continue;let o;this._poolFirst?(o=this._poolFirst,this._poolFirst=this._poolFirst.next,o.next=null):o=new he(this);let h;this.minLifetime===this.maxLifetime?h=this.minLifetime:h=Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,o.init(h),this.addAtBack?this._parent.addChildAt(o,0):this._parent.addChild(o),i?(n.next=o,o.prev=n,n=o):n=i=o,++this.particleCount}if(i){this._activeParticlesLast?(this._activeParticlesLast.next=i,i.prev=this._activeParticlesLast,this._activeParticlesLast=n):(this._activeParticlesFirst=i,this._activeParticlesLast=n);for(let s=0;sthis.maxSpeed&&_i(i,this.maxSpeed/a)}t.x+=(n+i.x)/2*e,t.y+=(s+i.y)/2*e,this.rotate&&(t.rotation=Math.atan2(i.y,i.x))}}Se.type="moveAcceleration";Se.editorConfig=null;function Cs(r){return this.ease&&(r=this.ease(r)),(this.first.next.value-this.first.value)*r+this.first.value}function As(r){this.ease&&(r=this.ease(r));const t=this.first.value,e=this.first.next.value,i=(e.r-t.r)*r+t.r,n=(e.g-t.g)*r+t.g,s=(e.b-t.b)*r+t.b;return $t(i,n,s)}function Ps(r){this.ease&&(r=this.ease(r));let t=this.first,e=t.next;for(;r>e.time;)t=e,e=e.next;return r=(r-t.time)/(e.time-t.time),(e.value-t.value)*r+t.value}function Us(r){this.ease&&(r=this.ease(r));let t=this.first,e=t.next;for(;r>e.time;)t=e,e=e.next;r=(r-t.time)/(e.time-t.time);const i=t.value,n=e.value,s=(n.r-i.r)*r+i.r,a=(n.g-i.g)*r+i.g,o=(n.b-i.b)*r+i.b;return $t(s,a,o)}function Fs(r){this.ease&&(r=this.ease(r));let t=this.first;for(;t.next&&r>t.next.time;)t=t.next;return t.value}function Ls(r){this.ease&&(r=this.ease(r));let t=this.first;for(;t.next&&r>t.next.time;)t=t.next;const e=t.value;return $t(e.r,e.g,e.b)}class Nt{constructor(t=!1){this.first=null,this.isColor=!!t,this.interpolate=null,this.ease=null}reset(t){this.first=t,t.next&&t.next.time>=1?this.interpolate=this.isColor?As:Cs:t.isStepped?this.interpolate=this.isColor?Ls:Fs:this.interpolate=this.isColor?Us:Ps,this.ease=this.first.ease}}class Ge{constructor(t){this.order=w.Normal,this.list=new Nt(!1),this.list.reset(z.createList(t.alpha))}initParticles(t){let e=t;for(;e;)e.alpha=this.list.first.value,e=e.next}updateParticle(t){t.alpha=this.list.interpolate(t.agePercent)}}Ge.type="alpha";Ge.editorConfig=null;class Be{constructor(t){this.order=w.Normal,this.value=t.alpha}initParticles(t){let e=t;for(;e;)e.alpha=this.value,e=e.next}}Be.type="alphaStatic";Be.editorConfig=null;function gi(r){const t=[];for(let e=0;e0;--n)t.push(i)}}return t}class Me{constructor(t){this.order=w.Normal,this.anims=[];for(let e=0;e0?i.framerate:60,a={textures:n,duration:s>0?n.length/s:0,framerate:s,loop:s>0?!!i.loop:!1};this.anims.push(a)}}initParticles(t){let e=t;for(;e;){const i=Math.floor(Math.random()*this.anims.length),n=e.config.anim=this.anims[i];e.texture=n.textures[0],e.config.animElapsed=0,n.framerate===-1?(e.config.animDuration=e.maxLife,e.config.animFramerate=n.textures.length/e.maxLife):(e.config.animDuration=n.duration,e.config.animFramerate=n.framerate),e=e.next}}updateParticle(t,e){const i=t.config,n=i.anim;i.animElapsed+=e,i.animElapsed>=i.animDuration&&(i.anim.loop?i.animElapsed=i.animElapsed%i.animDuration:i.animElapsed=i.animDuration-1e-6);const s=i.animElapsed*i.animFramerate+1e-7|0;t.texture=n.textures[s]||n.textures[n.textures.length-1]||Y.EMPTY}}Me.type="animatedRandom";Me.editorConfig=null;class ke{constructor(t){this.order=w.Normal;const e=t.anim,i=gi(e.textures),n=e.framerate<0?-1:e.framerate>0?e.framerate:60;this.anim={textures:i,duration:n>0?i.length/n:0,framerate:n,loop:n>0?!!e.loop:!1}}initParticles(t){let e=t;const i=this.anim;for(;e;)e.texture=i.textures[0],e.config.animElapsed=0,i.framerate===-1?(e.config.animDuration=e.maxLife,e.config.animFramerate=i.textures.length/e.maxLife):(e.config.animDuration=i.duration,e.config.animFramerate=i.framerate),e=e.next}updateParticle(t,e){const i=this.anim,n=t.config;n.animElapsed+=e,n.animElapsed>=n.animDuration&&(i.loop?n.animElapsed=n.animElapsed%n.animDuration:n.animElapsed=n.animDuration-1e-6);const s=n.animElapsed*n.animFramerate+1e-7|0;t.texture=i.textures[s]||i.textures[i.textures.length-1]||Y.EMPTY}}ke.type="animatedSingle";ke.editorConfig=null;class Xe{constructor(t){this.order=w.Normal,this.value=t.blendMode}initParticles(t){let e=t;for(;e;)e.blendMode=Ns(this.value),e=e.next}}Xe.type="blendMode";Xe.editorConfig=null;class He{constructor(t){this.order=w.Spawn,this.spacing=t.spacing*j,this.start=t.start*j,this.distance=t.distance}initParticles(t){let e=0,i=t;for(;i;){let n;this.spacing?n=this.start+this.spacing*e:n=Math.random()*Math.PI*2,i.rotation=n,this.distance&&(i.position.x=this.distance,K(n,i.position)),i=i.next,++e}}}He.type="spawnBurst";He.editorConfig=null;class Ve{constructor(t){this.order=w.Normal,this.list=new Nt(!0),this.list.reset(z.createList(t.color))}initParticles(t){let e=t;const i=this.list.first.value,n=$t(i.r,i.g,i.b);for(;e;)e.tint=n,e=e.next}updateParticle(t){t.tint=this.list.interpolate(t.agePercent)}}Ve.type="color";Ve.editorConfig=null;class je{constructor(t){this.order=w.Normal;let e=t.color;e.charAt(0)==="#"?e=e.substr(1):e.indexOf("0x")===0&&(e=e.substr(2)),this.value=parseInt(e,16)}initParticles(t){let e=t;for(;e;)e.tint=this.value,e=e.next}}je.type="colorStatic";je.editorConfig=null;class De{constructor(t){this.order=w.Normal,this.index=0,this.textures=t.textures.map(e=>typeof e=="string"?wt(e):e)}initParticles(t){let e=t;for(;e;)e.texture=this.textures[this.index],++this.index>=this.textures.length&&(this.index=0),e=e.next}}De.type="textureOrdered";De.editorConfig=null;const ct=new P,xi=["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2","abs","acos","acosh","asin","asinh","atan","atanh","atan2","cbrt","ceil","cos","cosh","exp","expm1","floor","fround","hypot","log","log1p","log10","log2","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh"],Os=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(xi).join("|"),"g");function Ss(r){const t=r.match(Os);for(let e=t.length-1;e>=0;--e)xi.indexOf(t[e])>=0&&(t[e]=`Math.${t[e]}`);return r=t.join(""),new Function("x",`return ${r};`)}class ze{constructor(t){var e;if(this.order=w.Late,t.path)if(typeof t.path=="function")this.path=t.path;else try{this.path=Ss(t.path)}catch{this.path=null}else this.path=i=>i;this.list=new Nt(!1),this.list.reset(z.createList(t.speed)),this.minMult=(e=t.minMult)!==null&&e!==void 0?e:1}initParticles(t){let e=t;for(;e;){e.config.initRotation=e.rotation,e.config.initPosition?e.config.initPosition.copyFrom(e.position):e.config.initPosition=new P(e.x,e.y),e.config.movement=0;const i=Math.random()*(1-this.minMult)+this.minMult;e.config.speedMult=i,e=e.next}}updateParticle(t,e){const i=this.list.interpolate(t.agePercent)*t.config.speedMult;t.config.movement+=i*e,ct.x=t.config.movement,ct.y=this.path(ct.x),K(t.config.initRotation,ct),t.position.x=t.config.initPosition.x+ct.x,t.position.y=t.config.initPosition.y+ct.y}}ze.type="movePath";ze.editorConfig=null;class We{constructor(){this.order=w.Spawn}initParticles(t){}}We.type="spawnPoint";We.editorConfig=null;class $e{constructor(t){this.order=w.Normal,this.textures=t.textures.map(e=>typeof e=="string"?wt(e):e)}initParticles(t){let e=t;for(;e;){const i=Math.floor(Math.random()*this.textures.length);e.texture=this.textures[i],e=e.next}}}$e.type="textureRandom";$e.editorConfig=null;class qe{constructor(t){this.order=w.Normal,this.minStart=t.minStart*j,this.maxStart=t.maxStart*j,this.minSpeed=t.minSpeed*j,this.maxSpeed=t.maxSpeed*j,this.accel=t.accel*j}initParticles(t){let e=t;for(;e;)this.minStart===this.maxStart?e.rotation+=this.maxStart:e.rotation+=Math.random()*(this.maxStart-this.minStart)+this.minStart,e.config.rotSpeed=Math.random()*(this.maxSpeed-this.minSpeed)+this.minSpeed,e=e.next}updateParticle(t,e){if(this.accel){const i=t.config.rotSpeed;t.config.rotSpeed+=this.accel*e,t.rotation+=(t.config.rotSpeed+i)/2*e}else t.rotation+=t.config.rotSpeed*e}}qe.type="rotation";qe.editorConfig=null;class Ye{constructor(t){this.order=w.Normal,this.min=t.min*j,this.max=t.max*j}initParticles(t){let e=t;for(;e;)this.min===this.max?e.rotation+=this.max:e.rotation+=Math.random()*(this.max-this.min)+this.min,e=e.next}}Ye.type="rotationStatic";Ye.editorConfig=null;class Ke{constructor(t){this.order=w.Late+1,this.rotation=(t.rotation||0)*j}initParticles(t){let e=t;for(;e;)e.rotation=this.rotation,e=e.next}}Ke.type="noRotation";Ke.editorConfig=null;class Ze{constructor(t){var e;this.order=w.Normal,this.list=new Nt(!1),this.list.reset(z.createList(t.scale)),this.minMult=(e=t.minMult)!==null&&e!==void 0?e:1}initParticles(t){let e=t;for(;e;){const i=Math.random()*(1-this.minMult)+this.minMult;e.config.scaleMult=i,e.scale.x=e.scale.y=this.list.first.value*i,e=e.next}}updateParticle(t){t.scale.x=t.scale.y=this.list.interpolate(t.agePercent)*t.config.scaleMult}}Ze.type="scale";Ze.editorConfig=null;class Je{constructor(t){this.order=w.Normal,this.min=t.min,this.max=t.max}initParticles(t){let e=t;for(;e;){const i=Math.random()*(this.max-this.min)+this.min;e.scale.x=e.scale.y=i,e=e.next}}}Je.type="scaleStatic";Je.editorConfig=null;class V{constructor(t){this.order=w.Spawn;const e=V.shapes[t.type];if(!e)throw new Error(`No shape found with type '${t.type}'`);this.shape=new e(t.data)}static registerShape(t,e){V.shapes[e||t.type]=t}initParticles(t){let e=t;for(;e;)this.shape.getRandPos(e),e=e.next}}V.type="spawnShape";V.editorConfig=null;V.shapes={};V.registerShape(Oe);V.registerShape(Le);V.registerShape(qt);V.registerShape(qt,"circle");class Qe{constructor(t){this.order=w.Normal,this.texture=typeof t.texture=="string"?wt(t.texture):t.texture}initParticles(t){let e=t;for(;e;)e.texture=this.texture,e=e.next}}Qe.type="textureSingle";Qe.editorConfig=null;class tr{constructor(t){var e;this.order=w.Late,this.list=new Nt(!1),this.list.reset(z.createList(t.speed)),this.minMult=(e=t.minMult)!==null&&e!==void 0?e:1}initParticles(t){let e=t;for(;e;){const i=Math.random()*(1-this.minMult)+this.minMult;e.config.speedMult=i,e.config.velocity?e.config.velocity.set(this.list.first.value*i,0):e.config.velocity=new P(this.list.first.value*i,0),K(e.rotation,e.config.velocity),e=e.next}}updateParticle(t,e){const i=this.list.interpolate(t.agePercent)*t.config.speedMult,n=t.config.velocity;ws(n),_i(n,i),t.x+=n.x*e,t.y+=n.y*e}}tr.type="moveSpeed";tr.editorConfig=null;class er{constructor(t){this.order=w.Late,this.min=t.min,this.max=t.max}initParticles(t){let e=t;for(;e;){const i=Math.random()*(this.max-this.min)+this.min;e.config.velocity?e.config.velocity.set(i,0):e.config.velocity=new P(i,0),K(e.rotation,e.config.velocity),e=e.next}}updateParticle(t,e){const i=t.config.velocity;t.x+=i.x*e,t.y+=i.y*e}}er.type="moveSpeedStatic";er.editorConfig=null;function Vs(r,t){var e,i,n,s,a,o,h,u,l,f,c,d,p,m,v,y,R,C,M,k,B;if("behaviors"in r)return r;const T={lifetime:r.lifetime,ease:r.ease,particlesPerWave:r.particlesPerWave,frequency:r.frequency,spawnChance:r.spawnChance,emitterLifetime:r.emitterLifetime,maxParticles:r.maxParticles,addAtBack:r.addAtBack,pos:r.pos,emit:r.emit,autoUpdate:r.autoUpdate,behaviors:[]};if(r.alpha)if("start"in r.alpha)if(r.alpha.start===r.alpha.end)r.alpha.start!==1&&T.behaviors.push({type:"alphaStatic",config:{alpha:r.alpha.start}});else{const b={list:[{time:0,value:r.alpha.start},{time:1,value:r.alpha.end}]};T.behaviors.push({type:"alpha",config:{alpha:b}})}else r.alpha.list.length===1?r.alpha.list[0].value!==1&&T.behaviors.push({type:"alphaStatic",config:{alpha:r.alpha.list[0].value}}):T.behaviors.push({type:"alpha",config:{alpha:r.alpha}});if(r.acceleration&&(r.acceleration.x||r.acceleration.y)){let b,G;"start"in r.speed?(b=r.speed.start*((e=r.speed.minimumSpeedMultiplier)!==null&&e!==void 0?e:1),G=r.speed.start):(b=r.speed.list[0].value*((i=r.minimumSpeedMultiplier)!==null&&i!==void 0?i:1),G=r.speed.list[0].value),T.behaviors.push({type:"moveAcceleration",config:{accel:r.acceleration,minStart:b,maxStart:G,rotate:!r.noRotation,maxSpeed:r.maxSpeed}})}else if(!((n=r.extraData)===null||n===void 0)&&n.path){let b,G;"start"in r.speed?(G=(s=r.speed.minimumSpeedMultiplier)!==null&&s!==void 0?s:1,r.speed.start===r.speed.end?b={list:[{time:0,value:r.speed.start}]}:b={list:[{time:0,value:r.speed.start},{time:1,value:r.speed.end}]}):(b=r.speed,G=(a=r.minimumSpeedMultiplier)!==null&&a!==void 0?a:1),T.behaviors.push({type:"movePath",config:{path:r.extraData.path,speed:b,minMult:G}})}else if(r.speed)if("start"in r.speed)if(r.speed.start===r.speed.end)T.behaviors.push({type:"moveSpeedStatic",config:{min:r.speed.start*((o=r.speed.minimumSpeedMultiplier)!==null&&o!==void 0?o:1),max:r.speed.start}});else{const b={list:[{time:0,value:r.speed.start},{time:1,value:r.speed.end}]};T.behaviors.push({type:"moveSpeed",config:{speed:b,minMult:r.speed.minimumSpeedMultiplier}})}else r.speed.list.length===1?T.behaviors.push({type:"moveSpeedStatic",config:{min:r.speed.list[0].value*((h=r.minimumSpeedMultiplier)!==null&&h!==void 0?h:1),max:r.speed.list[0].value}}):T.behaviors.push({type:"moveSpeed",config:{speed:r.speed,minMult:(u=r.minimumSpeedMultiplier)!==null&&u!==void 0?u:1}});if(r.scale)if("start"in r.scale){const b=(l=r.scale.minimumScaleMultiplier)!==null&&l!==void 0?l:1;if(r.scale.start===r.scale.end)T.behaviors.push({type:"scaleStatic",config:{min:r.scale.start*b,max:r.scale.start}});else{const G={list:[{time:0,value:r.scale.start},{time:1,value:r.scale.end}]};T.behaviors.push({type:"scale",config:{scale:G,minMult:b}})}}else if(r.scale.list.length===1){const b=(f=r.minimumScaleMultiplier)!==null&&f!==void 0?f:1,G=r.scale.list[0].value;T.behaviors.push({type:"scaleStatic",config:{min:G*b,max:G}})}else T.behaviors.push({type:"scale",config:{scale:r.scale,minMult:(c=r.minimumScaleMultiplier)!==null&&c!==void 0?c:1}});if(r.color)if("start"in r.color)if(r.color.start===r.color.end)r.color.start!=="ffffff"&&T.behaviors.push({type:"colorStatic",config:{color:r.color.start}});else{const b={list:[{time:0,value:r.color.start},{time:1,value:r.color.end}]};T.behaviors.push({type:"color",config:{color:b}})}else r.color.list.length===1?r.color.list[0].value!=="ffffff"&&T.behaviors.push({type:"colorStatic",config:{color:r.color.list[0].value}}):T.behaviors.push({type:"color",config:{color:r.color}});if(r.rotationAcceleration||((d=r.rotationSpeed)===null||d===void 0?void 0:d.min)||((p=r.rotationSpeed)===null||p===void 0?void 0:p.max)?T.behaviors.push({type:"rotation",config:{accel:r.rotationAcceleration||0,minSpeed:((m=r.rotationSpeed)===null||m===void 0?void 0:m.min)||0,maxSpeed:((v=r.rotationSpeed)===null||v===void 0?void 0:v.max)||0,minStart:((y=r.startRotation)===null||y===void 0?void 0:y.min)||0,maxStart:((R=r.startRotation)===null||R===void 0?void 0:R.max)||0}}):(((C=r.startRotation)===null||C===void 0?void 0:C.min)||((M=r.startRotation)===null||M===void 0?void 0:M.max))&&T.behaviors.push({type:"rotationStatic",config:{min:((k=r.startRotation)===null||k===void 0?void 0:k.min)||0,max:((B=r.startRotation)===null||B===void 0?void 0:B.max)||0}}),r.noRotation&&T.behaviors.push({type:"noRotation",config:{}}),r.blendMode&&r.blendMode!=="normal"&&T.behaviors.push({type:"blendMode",config:{blendMode:r.blendMode}}),Array.isArray(t)&&typeof t[0]!="string"&&"framerate"in t[0]){for(let b=0;b!!n[r.toLowerCase()]:r=>!!n[r]}const ao="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",ho=Pn(ao),po="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",go=Pn(po);function kr(e){return!!e||e===""}function Mn(e){if(N(e)){const t={};for(let n=0;n{if(n){const s=n.split(_o);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Rn(e){let t="";if(se(e))t=e;else if(N(e))for(let n=0;nXe(n,t))}const af=e=>se(e)?e:e==null?"":N(e)||oe(e)&&(e.toString===Dr||!V(e.toString))?JSON.stringify(e,Hr,2):String(e),Hr=(e,t)=>t&&t.__v_isRef?Hr(e,t.value):Ct(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:ut(t)?{[`Set(${t.size})`]:[...t.values()]}:oe(t)&&!N(t)&&!Ur(t)?String(t):t,X={},yt=[],ve=()=>{},Co=()=>!1,xo=/^on[^a-z]/,Gt=e=>xo.test(e),Es=e=>e.startsWith("onUpdate:"),ie=Object.assign,ws=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Eo=Object.prototype.hasOwnProperty,J=(e,t)=>Eo.call(e,t),N=Array.isArray,Ct=e=>en(e)==="[object Map]",ut=e=>en(e)==="[object Set]",Zs=e=>en(e)==="[object Date]",V=e=>typeof e=="function",se=e=>typeof e=="string",Wt=e=>typeof e=="symbol",oe=e=>e!==null&&typeof e=="object",Ts=e=>oe(e)&&V(e.then)&&V(e.catch),Dr=Object.prototype.toString,en=e=>Dr.call(e),wo=e=>en(e).slice(8,-1),Ur=e=>en(e)==="[object Object]",As=e=>se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ht=Pn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),In=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},To=/-(\w)/g,Te=In(e=>e.replace(To,(t,n)=>n?n.toUpperCase():"")),Ao=/\B([A-Z])/g,Oe=In(e=>e.replace(Ao,"-$1").toLowerCase()),Sn=In(e=>e.charAt(0).toUpperCase()+e.slice(1)),gn=In(e=>e?`on${Sn(e)}`:""),At=(e,t)=>!Object.is(e,t),xt=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ze=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Qs;const Fo=()=>Qs||(Qs=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let be;class $r{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&be&&(this.parent=be,this.index=(be.scopes||(be.scopes=[])).push(this)-1)}run(t){if(this.active){const n=be;try{return be=this,t()}finally{be=n}}}on(){be=this}off(){be=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},Kr=e=>(e.w&Qe)>0,Vr=e=>(e.n&Qe)>0,vo=({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>=s)&&l.push(c)});else switch(n!==void 0&&l.push(o.get(n)),t){case"add":N(e)?As(n)&&l.push(o.get("length")):(l.push(o.get(ot)),Ct(e)&&l.push(o.get(is)));break;case"delete":N(e)||(l.push(o.get(ot)),Ct(e)&&l.push(o.get(is)));break;case"set":Ct(e)&&l.push(o.get(ot));break}if(l.length===1)l[0]&&os(l[0]);else{const c=[];for(const u of l)u&&c.push(...u);os(Fs(c))}}function os(e,t){const n=N(e)?e:[...e];for(const s of n)s.computed&&er(s);for(const s of n)s.computed||er(s)}function er(e,t){(e!==Fe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Mo=Pn("__proto__,__v_isRef,__isVue"),Jr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Wt)),Ro=Bn(),Oo=Bn(!1,!0),Io=Bn(!0),So=Bn(!0,!0),tr=No();function No(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Y(this);for(let i=0,o=this.length;i{e[t]=function(...n){at();const s=Y(this)[t].apply(this,n);return dt(),s}}),e}function Bn(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?ei:Gr:t?Qr:Zr).get(s))return s;const o=N(s);if(!e&&o&&J(tr,r))return Reflect.get(tr,r,i);const l=Reflect.get(s,r,i);return(Wt(r)?Jr.has(r):Mo(r))||(e||xe(s,"get",r),t)?l:ce(l)?o&&As(r)?l:l.value:oe(l)?e?ti(l):Ps(l):l}}const Bo=Yr(),Lo=Yr(!0);function Yr(e=!1){return function(n,s,r,i){let o=n[s];if(qt(o)&&ce(o)&&!ce(r))return!1;if(!e&&!qt(r)&&(ls(r)||(r=Y(r),o=Y(o)),!N(n)&&ce(o)&&!ce(r)))return o.value=r,!0;const l=N(n)&&As(s)?Number(s)e,Ln=e=>Reflect.getPrototypeOf(e);function rn(e,t,n=!1,s=!1){e=e.__v_raw;const r=Y(e),i=Y(t);n||(t!==i&&xe(r,"get",t),xe(r,"get",i));const{has:o}=Ln(r),l=s?vs:n?Ms:Jt;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 on(e,t=!1){const n=this.__v_raw,s=Y(n),r=Y(e);return t||(e!==r&&xe(s,"has",e),xe(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function ln(e,t=!1){return e=e.__v_raw,!t&&xe(Y(e),"iterate",ot),Reflect.get(e,"size",e)}function nr(e){e=Y(e);const t=Y(this);return Ln(t).has.call(t,e)||(t.add(e),He(t,"add",e,e)),this}function sr(e,t){t=Y(t);const n=Y(this),{has:s,get:r}=Ln(n);let i=s.call(n,e);i||(e=Y(e),i=s.call(n,e));const o=r.call(n,e);return n.set(e,t),i?At(t,o)&&He(n,"set",e,t):He(n,"add",e,t),this}function rr(e){const t=Y(this),{has:n,get:s}=Ln(t);let r=n.call(t,e);r||(e=Y(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&He(t,"delete",e,void 0),i}function ir(){const e=Y(this),t=e.size!==0,n=e.clear();return t&&He(e,"clear",void 0,void 0),n}function cn(e,t){return function(s,r){const i=this,o=i.__v_raw,l=Y(o),c=t?vs:e?Ms:Jt;return!e&&xe(l,"iterate",ot),o.forEach((u,p)=>s.call(r,c(u),c(p),i))}}function fn(e,t,n){return function(...s){const r=this.__v_raw,i=Y(r),o=Ct(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,u=r[e](...s),p=n?vs:t?Ms:Jt;return!t&&xe(i,"iterate",c?is:ot),{next(){const{value:h,done:g}=u.next();return g?{value:h,done:g}:{value:l?[p(h[0]),p(h[1])]:p(h),done:g}},[Symbol.iterator](){return this}}}}function je(e){return function(...t){return e==="delete"?!1:this}}function jo(){const e={get(i){return rn(this,i)},get size(){return ln(this)},has:on,add:nr,set:sr,delete:rr,clear:ir,forEach:cn(!1,!1)},t={get(i){return rn(this,i,!1,!0)},get size(){return ln(this)},has:on,add:nr,set:sr,delete:rr,clear:ir,forEach:cn(!1,!0)},n={get(i){return rn(this,i,!0)},get size(){return ln(this,!0)},has(i){return on.call(this,i,!0)},add:je("add"),set:je("set"),delete:je("delete"),clear:je("clear"),forEach:cn(!0,!1)},s={get(i){return rn(this,i,!0,!0)},get size(){return ln(this,!0)},has(i){return on.call(this,i,!0)},add:je("add"),set:je("set"),delete:je("delete"),clear:je("clear"),forEach:cn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=fn(i,!1,!1),n[i]=fn(i,!0,!1),t[i]=fn(i,!1,!0),s[i]=fn(i,!0,!0)}),[e,n,t,s]}const[Ko,Vo,Wo,qo]=jo();function kn(e,t){const n=t?e?qo:Wo:e?Vo:Ko;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(J(n,r)&&r in s?n:s,r,i)}const Jo={get:kn(!1,!1)},Yo={get:kn(!1,!0)},zo={get:kn(!0,!1)},Xo={get:kn(!0,!0)},Zr=new WeakMap,Qr=new WeakMap,Gr=new WeakMap,ei=new WeakMap;function Zo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Qo(e){return e.__v_skip||!Object.isExtensible(e)?0:Zo(wo(e))}function Ps(e){return qt(e)?e:Hn(e,!1,zr,Jo,Zr)}function Go(e){return Hn(e,!1,Uo,Yo,Qr)}function ti(e){return Hn(e,!0,Xr,zo,Gr)}function _f(e){return Hn(e,!0,$o,Xo,ei)}function Hn(e,t,n,s,r){if(!oe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=Qo(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function Et(e){return qt(e)?Et(e.__v_raw):!!(e&&e.__v_isReactive)}function qt(e){return!!(e&&e.__v_isReadonly)}function ls(e){return!!(e&&e.__v_isShallow)}function ni(e){return Et(e)||qt(e)}function Y(e){const t=e&&e.__v_raw;return t?Y(t):e}function si(e){return Cn(e,"__v_skip",!0),e}const Jt=e=>oe(e)?Ps(e):e,Ms=e=>oe(e)?ti(e):e;function Rs(e){Ye&&Fe&&(e=Y(e),qr(e.dep||(e.dep=Fs())))}function Dn(e,t){e=Y(e),e.dep&&os(e.dep)}function ce(e){return!!(e&&e.__v_isRef===!0)}function Xn(e){return ri(e,!1)}function bf(e){return ri(e,!0)}function ri(e,t){return ce(e)?e:new el(e,t)}class el{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Y(t),this._value=n?t:Jt(t)}get value(){return Rs(this),this._value}set value(t){t=this.__v_isShallow?t:Y(t),At(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Jt(t),Dn(this))}}function yf(e){Dn(e)}function tl(e){return ce(e)?e.value:e}const nl={get:(e,t,n)=>tl(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ce(r)&&!ce(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function ii(e){return Et(e)?e:new Proxy(e,nl)}class sl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>Rs(this),()=>Dn(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function Cf(e){return new sl(e)}function xf(e){const t=N(e)?new Array(e.length):{};for(const n in e)t[n]=il(e,n);return t}class rl{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}}function il(e,t,n){const s=e[t];return ce(s)?s:new rl(e,t,n)}class ol{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Nn(t,()=>{this._dirty||(this._dirty=!0,Dn(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=Y(this);return Rs(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function ll(e,t,n=!1){let s,r;const i=V(e);return i?(s=e,r=ve):(s=e.get,r=e.set),new ol(s,r,i||!r,n)}const Dt=[];function cl(e,...t){at();const n=Dt.length?Dt[Dt.length-1].component:null,s=n&&n.appContext.config.warnHandler,r=fl();if(s)ke(s,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${Wi(n,i.type)}>`).join(` +`),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(` +`,...ul(r)),console.warn(...i)}dt()}function fl(){let e=Dt[Dt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function ul(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[` +`],...al(n))}),t}function al({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,r=` at <${Wi(e.component,e.type,s)}`,i=">"+n;return e.props?[r,...dl(e.props),i]:[r+i]}function dl(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...oi(s,e[s]))}),n.length>3&&t.push(" ..."),t}function oi(e,t,n){return se(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:ce(t)?(t=oi(e,Y(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):V(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Y(t),n?t:[`${e}=`,t])}function ke(e,t,n,s){let r;try{r=s?e(...s):e()}catch(i){Mt(i,t,n)}return r}function we(e,t,n,s){if(V(e)){const i=ke(e,t,n,s);return i&&Ts(i)&&i.catch(o=>{Mt(o,t,n)}),i}const r=[];for(let i=0;i>>1;Yt(Ce[s])Be&&Ce.splice(t,1)}function ui(e,t,n,s){N(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?s+1:s))&&n.push(e),fi()}function ml(e){ui(e,Lt,Ut,_t)}function ai(e){ui(e,We,$t,bt)}function Un(e,t=null){if(Ut.length){for(fs=t,Lt=[...new Set(Ut)],Ut.length=0,_t=0;_tYt(n)-Yt(s)),bt=0;bte.id==null?1/0:e.id;function di(e){cs=!1,xn=!0,Un(e),Ce.sort((n,s)=>Yt(n)-Yt(s));const t=ve;try{for(Be=0;BeIt.emit(r,...i)),un=[]):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=>{_l(i,t)}),setTimeout(()=>{It||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,un=[])},3e3)):un=[]}function bl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||X;let r=n;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in s){const p=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:g}=s[p]||X;g&&(r=n.map(E=>E.trim())),h&&(r=n.map(Ze))}let l,c=s[l=gn(t)]||s[l=gn(Te(t))];!c&&i&&(c=s[l=gn(Oe(t))]),c&&we(c,e,6,r);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,we(u,e,6,r)}}function hi(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(!V(e)){const c=u=>{const p=hi(u,t,!0);p&&(l=!0,ie(o,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(s.set(e,null),null):(N(i)?i.forEach(c=>o[c]=null):ie(o,i),s.set(e,o),o)}function $n(e,t){return!e||!Gt(t)?!1:(t=t.slice(2).replace(/Once$/,""),J(e,t[0].toLowerCase()+t.slice(1))||J(e,Oe(t))||J(e,t))}let ae=null,jn=null;function zt(e){const t=ae;return ae=e,jn=e&&e.type.__scopeId||null,t}function Ef(e){jn=e}function wf(){jn=null}const Tf=e=>pi;function pi(e,t=ae,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&br(-1);const i=zt(t),o=e(...r);return zt(i),s._d&&br(1),o};return s._n=!0,s._c=!0,s._d=!0,s}function mn(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:i,propsOptions:[o],slots:l,attrs:c,emit:u,render:p,renderCache:h,data:g,setupState:E,ctx:v,inheritAttrs:H}=e;let I,_;const d=zt(e);try{if(n.shapeFlag&4){const w=r||s;I=ye(p.call(w,w,h,i,E,g,v)),_=c}else{const w=t;I=ye(w.length>1?w(i,{attrs:c,slots:l,emit:u}):w(i,null)),_=t.props?c:Cl(c)}}catch(w){Kt.length=0,Mt(w,e,1),I=ne(he)}let b=I;if(_&&H!==!1){const w=Object.keys(_),{shapeFlag:R}=b;w.length&&R&7&&(o&&w.some(Es)&&(_=xl(_,o)),b=De(b,_))}return n.dirs&&(b=De(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),I=b,zt(d),I}function yl(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||Gt(n))&&((t||(t={}))[n]=e[n]);return t},xl=(e,t)=>{const n={};for(const s in e)(!Es(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function El(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?or(s,o,u):!!o;if(c&8){const p=t.dynamicProps;for(let h=0;he.__isSuspense,wl={name:"Suspense",__isSuspense:!0,process(e,t,n,s,r,i,o,l,c,u){e==null?Tl(t,n,s,r,i,o,l,c,u):Al(e,t,n,s,r,o,l,c,u)},hydrate:Fl,create:Ns,normalize:vl},Af=wl;function Xt(e,t){const n=e.props&&e.props[t];V(n)&&n()}function Tl(e,t,n,s,r,i,o,l,c){const{p:u,o:{createElement:p}}=c,h=p("div"),g=e.suspense=Ns(e,r,s,t,h,n,i,o,l,c);u(null,g.pendingBranch=e.ssContent,h,null,s,g,i,o),g.deps>0?(Xt(e,"onPending"),Xt(e,"onFallback"),u(null,e.ssFallback,t,n,s,null,i,o),wt(g,e.ssFallback)):g.resolve()}function Al(e,t,n,s,r,i,o,l,{p:c,um:u,o:{createElement:p}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const g=t.ssContent,E=t.ssFallback,{activeBranch:v,pendingBranch:H,isInFallback:I,isHydrating:_}=h;if(H)h.pendingBranch=g,Re(g,H)?(c(H,g,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0?h.resolve():I&&(c(v,E,n,s,r,null,i,o,l),wt(h,E))):(h.pendingId++,_?(h.isHydrating=!1,h.activeBranch=H):u(H,r,h),h.deps=0,h.effects.length=0,h.hiddenContainer=p("div"),I?(c(null,g,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0?h.resolve():(c(v,E,n,s,r,null,i,o,l),wt(h,E))):v&&Re(g,v)?(c(v,g,n,s,r,h,i,o,l),h.resolve(!0)):(c(null,g,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0&&h.resolve()));else if(v&&Re(g,v))c(v,g,n,s,r,h,i,o,l),wt(h,g);else if(Xt(t,"onPending"),h.pendingBranch=g,h.pendingId++,c(null,g,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0)h.resolve();else{const{timeout:d,pendingId:b}=h;d>0?setTimeout(()=>{h.pendingId===b&&h.fallback(E)},d):d===0&&h.fallback(E)}}function Ns(e,t,n,s,r,i,o,l,c,u,p=!1){const{p:h,m:g,um:E,n:v,o:{parentNode:H,remove:I}}=u,_=Ze(e.props&&e.props.timeout),d={vnode:e,parent:t,parentComponent:n,isSVG:o,container:s,hiddenContainer:r,anchor:i,deps:0,pendingId:0,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(b=!1){const{vnode:w,activeBranch:R,pendingBranch:B,pendingId:D,effects:T,parentComponent:L,container:U}=d;if(d.isHydrating)d.isHydrating=!1;else if(!b){const q=R&&B.transition&&B.transition.mode==="out-in";q&&(R.transition.afterLeave=()=>{D===d.pendingId&&g(B,U,k,0)});let{anchor:k}=d;R&&(k=v(R),E(R,L,d,!0)),q||g(B,U,k,0)}wt(d,B),d.pendingBranch=null,d.isInFallback=!1;let K=d.parent,O=!1;for(;K;){if(K.pendingBranch){K.effects.push(...T),O=!0;break}K=K.parent}O||ai(T),d.effects=[],Xt(w,"onResolve")},fallback(b){if(!d.pendingBranch)return;const{vnode:w,activeBranch:R,parentComponent:B,container:D,isSVG:T}=d;Xt(w,"onFallback");const L=v(R),U=()=>{!d.isInFallback||(h(null,b,D,L,B,null,T,l,c),wt(d,b))},K=b.transition&&b.transition.mode==="out-in";K&&(R.transition.afterLeave=U),d.isInFallback=!0,E(R,B,null,!0),K||U()},move(b,w,R){d.activeBranch&&g(d.activeBranch,b,w,R),d.container=b},next(){return d.activeBranch&&v(d.activeBranch)},registerDep(b,w){const R=!!d.pendingBranch;R&&d.deps++;const B=b.vnode.el;b.asyncDep.catch(D=>{Mt(D,b,0)}).then(D=>{if(b.isUnmounted||d.isUnmounted||d.pendingId!==b.suspenseId)return;b.asyncResolved=!0;const{vnode:T}=b;ms(b,D,!1),B&&(T.el=B);const L=!B&&b.subTree.el;w(b,T,H(B||b.subTree.el),B?null:v(b.subTree),d,o,c),L&&I(L),Ss(b,T.el),R&&--d.deps===0&&d.resolve()})},unmount(b,w){d.isUnmounted=!0,d.activeBranch&&E(d.activeBranch,n,b,w),d.pendingBranch&&E(d.pendingBranch,n,b,w)}};return d}function Fl(e,t,n,s,r,i,o,l,c){const u=t.suspense=Ns(t,s,n,e.parentNode,document.createElement("div"),null,r,i,o,l,!0),p=c(e,u.pendingBranch=t.ssContent,n,u,i,o);return u.deps===0&&u.resolve(),p}function vl(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=lr(s?n.default:n),e.ssFallback=s?lr(n.fallback):ne(he)}function lr(e){let t;if(V(e)){const n=ct&&e._c;n&&(e._d=!1,Ks()),e=e(),n&&(e._d=!0,t=me,Ni())}return N(e)&&(e=yl(e)),e=ye(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function mi(e,t){t&&t.pendingBranch?N(e)?t.effects.push(...e):t.effects.push(e):ai(e)}function wt(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e,r=n.el=t.el;s&&s.subTree===n&&(s.vnode.el=r,Ss(s,r))}function Pl(e,t){if(le){let n=le.provides;const s=le.parent&&le.parent.provides;s===n&&(n=le.provides=Object.create(s)),n[e]=t}}function _n(e,t,n=!1){const s=le||ae;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&&V(t)?t.call(s.proxy):t}}function Ff(e,t){return tn(e,null,t)}function Ml(e,t){return tn(e,null,{flush:"post"})}function vf(e,t){return tn(e,null,{flush:"sync"})}const cr={};function bn(e,t,n){return tn(e,t,n)}function tn(e,t,{immediate:n,deep:s,flush:r,onTrack:i,onTrigger:o}=X){const l=le;let c,u=!1,p=!1;if(ce(e)?(c=()=>e.value,u=ls(e)):Et(e)?(c=()=>e,s=!0):N(e)?(p=!0,u=e.some(_=>Et(_)||ls(_)),c=()=>e.map(_=>{if(ce(_))return _.value;if(Et(_))return it(_);if(V(_))return ke(_,l,2)})):V(e)?t?c=()=>ke(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return h&&h(),we(e,l,3,[g])}:c=ve,t&&s){const _=c;c=()=>it(_())}let h,g=_=>{h=I.onStop=()=>{ke(_,l,4)}};if(vt)return g=ve,t?n&&we(t,l,3,[c(),p?[]:void 0,g]):c(),ve;let E=p?[]:cr;const v=()=>{if(!!I.active)if(t){const _=I.run();(s||u||(p?_.some((d,b)=>At(d,E[b])):At(_,E)))&&(h&&h(),we(t,l,3,[_,E===cr?void 0:E,g]),E=_)}else I.run()};v.allowRecurse=!!t;let H;r==="sync"?H=v:r==="post"?H=()=>fe(v,l&&l.suspense):H=()=>ml(v);const I=new Nn(c,H);return t?n?v():E=I.run():r==="post"?fe(I.run.bind(I),l&&l.suspense):I.run(),()=>{I.stop(),l&&l.scope&&ws(l.scope.effects,I)}}function Rl(e,t,n){const s=this.proxy,r=se(e)?e.includes(".")?_i(s,e):()=>s[e]:e.bind(s,s);let i;V(t)?i=t:(i=t.handler,n=t);const o=le;Ge(this);const l=tn(r,i.bind(s),n);return o?Ge(o):ze(),l}function _i(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{it(n,t)});else if(Ur(e))for(const n in e)it(e[n],t);return e}function bi(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Vn(()=>{e.isMounted=!0}),ks(()=>{e.isUnmounting=!0}),e}const Ee=[Function,Array],Ol={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ee,onEnter:Ee,onAfterEnter:Ee,onEnterCancelled:Ee,onBeforeLeave:Ee,onLeave:Ee,onAfterLeave:Ee,onLeaveCancelled:Ee,onBeforeAppear:Ee,onAppear:Ee,onAfterAppear:Ee,onAppearCancelled:Ee},setup(e,{slots:t}){const n=ht(),s=bi();let r;return()=>{const i=t.default&&Bs(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const H of i)if(H.type!==he){o=H;break}}const l=Y(e),{mode:c}=l;if(s.isLeaving)return Zn(o);const u=fr(o);if(!u)return Zn(o);const p=Zt(u,l,s,n);Ft(u,p);const h=n.subTree,g=h&&fr(h);let E=!1;const{getTransitionKey:v}=u.type;if(v){const H=v();r===void 0?r=H:H!==r&&(r=H,E=!0)}if(g&&g.type!==he&&(!Re(u,g)||E)){const H=Zt(g,l,s,n);if(Ft(g,H),c==="out-in")return s.isLeaving=!0,H.afterLeave=()=>{s.isLeaving=!1,n.update()},Zn(o);c==="in-out"&&u.type!==he&&(H.delayLeave=(I,_,d)=>{const b=Ci(s,g);b[String(g.key)]=g,I._leaveCb=()=>{_(),I._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=d})}return o}}},yi=Ol;function Ci(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 Zt(e,t,n,s){const{appear:r,mode:i,persisted:o=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:p,onBeforeLeave:h,onLeave:g,onAfterLeave:E,onLeaveCancelled:v,onBeforeAppear:H,onAppear:I,onAfterAppear:_,onAppearCancelled:d}=t,b=String(e.key),w=Ci(n,e),R=(T,L)=>{T&&we(T,s,9,L)},B=(T,L)=>{const U=L[1];R(T,L),N(T)?T.every(K=>K.length<=1)&&U():T.length<=1&&U()},D={mode:i,persisted:o,beforeEnter(T){let L=l;if(!n.isMounted)if(r)L=H||l;else return;T._leaveCb&&T._leaveCb(!0);const U=w[b];U&&Re(e,U)&&U.el._leaveCb&&U.el._leaveCb(),R(L,[T])},enter(T){let L=c,U=u,K=p;if(!n.isMounted)if(r)L=I||c,U=_||u,K=d||p;else return;let O=!1;const q=T._enterCb=k=>{O||(O=!0,k?R(K,[T]):R(U,[T]),D.delayedLeave&&D.delayedLeave(),T._enterCb=void 0)};L?B(L,[T,q]):q()},leave(T,L){const U=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return L();R(h,[T]);let K=!1;const O=T._leaveCb=q=>{K||(K=!0,L(),q?R(v,[T]):R(E,[T]),T._leaveCb=void 0,w[U]===e&&delete w[U])};w[U]=e,g?B(g,[T,O]):O()},clone(T){return Zt(T,t,n,s)}};return D}function Zn(e){if(nn(e))return e=De(e),e.children=null,e}function fr(e){return nn(e)?e.children?e.children[0]:void 0:e}function Ft(e,t){e.shapeFlag&6&&e.component?Ft(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 Bs(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;function Pf(e){V(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,u,p=0;const h=()=>(p++,c=null,g()),g=()=>{let E;return c||(E=c=t().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),l)return new Promise((H,I)=>{l(v,()=>H(h()),()=>I(v),p+1)});throw v}).then(v=>E!==c&&c?c:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),u=v,v)))};return xi({name:"AsyncComponentWrapper",__asyncLoader:g,get __asyncResolved(){return u},setup(){const E=le;if(u)return()=>Qn(u,E);const v=d=>{c=null,Mt(d,E,13,!s)};if(o&&E.suspense||vt)return g().then(d=>()=>Qn(d,E)).catch(d=>(v(d),()=>s?ne(s,{error:d}):null));const H=Xn(!1),I=Xn(),_=Xn(!!r);return r&&setTimeout(()=>{_.value=!1},r),i!=null&&setTimeout(()=>{if(!H.value&&!I.value){const d=new Error(`Async component timed out after ${i}ms.`);v(d),I.value=d}},i),g().then(()=>{H.value=!0,E.parent&&nn(E.parent.vnode)&&Is(E.parent.update)}).catch(d=>{v(d),I.value=d}),()=>{if(H.value&&u)return Qn(u,E);if(I.value&&s)return ne(s,{error:I.value});if(n&&!_.value)return ne(n)}}})}function Qn(e,{vnode:{ref:t,props:n,children:s,shapeFlag:r},parent:i}){const o=ne(e,n,s);return o.ref=t,o}const nn=e=>e.type.__isKeepAlive,Il={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ht(),s=n.ctx;if(!s.renderer)return()=>{const d=t.default&&t.default();return d&&d.length===1?d[0]:d};const r=new Map,i=new Set;let o=null;const l=n.suspense,{renderer:{p:c,m:u,um:p,o:{createElement:h}}}=s,g=h("div");s.activate=(d,b,w,R,B)=>{const D=d.component;u(d,b,w,0,l),c(D.vnode,d,b,w,D,l,R,d.slotScopeIds,B),fe(()=>{D.isDeactivated=!1,D.a&&xt(D.a);const T=d.props&&d.props.onVnodeMounted;T&&ge(T,D.parent,d)},l)},s.deactivate=d=>{const b=d.component;u(d,g,null,1,l),fe(()=>{b.da&&xt(b.da);const w=d.props&&d.props.onVnodeUnmounted;w&&ge(w,b.parent,d),b.isDeactivated=!0},l)};function E(d){Gn(d),p(d,n,l,!0)}function v(d){r.forEach((b,w)=>{const R=vn(b.type);R&&(!d||!d(R))&&H(w)})}function H(d){const b=r.get(d);!o||b.type!==o.type?E(b):o&&Gn(o),r.delete(d),i.delete(d)}bn(()=>[e.include,e.exclude],([d,b])=>{d&&v(w=>kt(d,w)),b&&v(w=>!kt(b,w))},{flush:"post",deep:!0});let I=null;const _=()=>{I!=null&&r.set(I,es(n.subTree))};return Vn(_),Ls(_),ks(()=>{r.forEach(d=>{const{subTree:b,suspense:w}=n,R=es(b);if(d.type===R.type){Gn(R);const B=R.component.da;B&&fe(B,w);return}E(d)})}),()=>{if(I=null,!t.default)return null;const d=t.default(),b=d[0];if(d.length>1)return o=null,d;if(!ft(b)||!(b.shapeFlag&4)&&!(b.shapeFlag&128))return o=null,b;let w=es(b);const R=w.type,B=vn(lt(w)?w.type.__asyncResolved||{}:R),{include:D,exclude:T,max:L}=e;if(D&&(!B||!kt(D,B))||T&&B&&kt(T,B))return o=w,b;const U=w.key==null?R:w.key,K=r.get(U);return w.el&&(w=De(w),b.shapeFlag&128&&(b.ssContent=w)),I=U,K?(w.el=K.el,w.component=K.component,w.transition&&Ft(w,w.transition),w.shapeFlag|=512,i.delete(U),i.add(U)):(i.add(U),L&&i.size>parseInt(L,10)&&H(i.values().next().value)),w.shapeFlag|=256,o=w,gi(b.type)?b:w}}},Mf=Il;function kt(e,t){return N(e)?e.some(n=>kt(n,t)):se(e)?e.split(",").includes(t):e.test?e.test(t):!1}function Sl(e,t){Ei(e,"a",t)}function Nl(e,t){Ei(e,"da",t)}function Ei(e,t,n=le){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Kn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)nn(r.parent.vnode)&&Bl(s,t,n,r),r=r.parent}}function Bl(e,t,n,s){const r=Kn(t,e,s,!0);Hs(()=>{ws(s[t],r)},n)}function Gn(e){let t=e.shapeFlag;t&256&&(t-=256),t&512&&(t-=512),e.shapeFlag=t}function es(e){return e.shapeFlag&128?e.ssContent:e}function Kn(e,t,n=le,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;at(),Ge(n);const l=we(t,n,e,o);return ze(),dt(),l});return s?r.unshift(i):r.push(i),i}}const Ue=e=>(t,n=le)=>(!vt||e==="sp")&&Kn(e,t,n),Ll=Ue("bm"),Vn=Ue("m"),kl=Ue("bu"),Ls=Ue("u"),ks=Ue("bum"),Hs=Ue("um"),Hl=Ue("sp"),Dl=Ue("rtg"),Ul=Ue("rtc");function $l(e,t=le){Kn("ec",e,t)}function Rf(e,t){const n=ae;if(n===null)return e;const s=qn(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;lft(t)?!(t.type===he||t.type===ue&&!Ti(t.children)):!0)?e:null}function kf(e){const t={};for(const n in e)t[gn(n)]=e[n];return t}const us=e=>e?$i(e)?qn(e)||e.proxy:us(e.parent):null,wn=ie(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=>us(e.parent),$root:e=>us(e.root),$emit:e=>e.emit,$options:e=>Fi(e),$forceUpdate:e=>e.f||(e.f=()=>Is(e.update)),$nextTick:e=>e.n||(e.n=ci.bind(e.proxy)),$watch:e=>Rl.bind(e)}),as={get({_:e},t){const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;let u;if(t[0]!=="$"){const E=o[t];if(E!==void 0)switch(E){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(s!==X&&J(s,t))return o[t]=1,s[t];if(r!==X&&J(r,t))return o[t]=2,r[t];if((u=e.propsOptions[0])&&J(u,t))return o[t]=3,i[t];if(n!==X&&J(n,t))return o[t]=4,n[t];ds&&(o[t]=0)}}const p=wn[t];let h,g;if(p)return t==="$attrs"&&xe(e,"get",t),p(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==X&&J(n,t))return o[t]=4,n[t];if(g=c.config.globalProperties,J(g,t))return g[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return r!==X&&J(r,t)?(r[t]=n,!0):s!==X&&J(s,t)?(s[t]=n,!0):J(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!==X&&J(e,o)||t!==X&&J(t,o)||(l=i[0])&&J(l,o)||J(s,o)||J(wn,o)||J(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:J(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Kl=ie({},as,{get(e,t){if(t!==Symbol.unscopables)return as.get(e,t,e)},has(e,t){return t[0]!=="_"&&!ho(t)}});let ds=!0;function Vl(e){const t=Fi(e),n=e.proxy,s=e.ctx;ds=!1,t.beforeCreate&&ar(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:u,created:p,beforeMount:h,mounted:g,beforeUpdate:E,updated:v,activated:H,deactivated:I,beforeDestroy:_,beforeUnmount:d,destroyed:b,unmounted:w,render:R,renderTracked:B,renderTriggered:D,errorCaptured:T,serverPrefetch:L,expose:U,inheritAttrs:K,components:O,directives:q,filters:k}=t;if(u&&Wl(u,s,null,e.appContext.config.unwrapInjectedRef),o)for(const re in o){const ee=o[re];V(ee)&&(s[re]=ee.bind(n))}if(r){const re=r.call(n,n);oe(re)&&(e.data=Ps(re))}if(ds=!0,i)for(const re in i){const ee=i[re],Ie=V(ee)?ee.bind(n,n):V(ee.get)?ee.get.bind(n,n):ve,Jn=!V(ee)&&V(ee.set)?ee.set.bind(n):ve,Rt=yc({get:Ie,set:Jn});Object.defineProperty(s,re,{enumerable:!0,configurable:!0,get:()=>Rt.value,set:pt=>Rt.value=pt})}if(l)for(const re in l)Ai(l[re],s,n,re);if(c){const re=V(c)?c.call(n):c;Reflect.ownKeys(re).forEach(ee=>{Pl(ee,re[ee])})}p&&ar(p,e,"c");function Z(re,ee){N(ee)?ee.forEach(Ie=>re(Ie.bind(n))):ee&&re(ee.bind(n))}if(Z(Ll,h),Z(Vn,g),Z(kl,E),Z(Ls,v),Z(Sl,H),Z(Nl,I),Z($l,T),Z(Ul,B),Z(Dl,D),Z(ks,d),Z(Hs,w),Z(Hl,L),N(U))if(U.length){const re=e.exposed||(e.exposed={});U.forEach(ee=>{Object.defineProperty(re,ee,{get:()=>n[ee],set:Ie=>n[ee]=Ie})})}else e.exposed||(e.exposed={});R&&e.render===ve&&(e.render=R),K!=null&&(e.inheritAttrs=K),O&&(e.components=O),q&&(e.directives=q)}function Wl(e,t,n=ve,s=!1){N(e)&&(e=hs(e));for(const r in e){const i=e[r];let o;oe(i)?"default"in i?o=_n(i.from||r,i.default,!0):o=_n(i.from||r):o=_n(i),ce(o)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[r]=o}}function ar(e,t,n){we(N(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ai(e,t,n,s){const r=s.includes(".")?_i(n,s):()=>n[s];if(se(e)){const i=t[e];V(i)&&bn(r,i)}else if(V(e))bn(r,e.bind(n));else if(oe(e))if(N(e))e.forEach(i=>Ai(i,t,n,s));else{const i=V(e.handler)?e.handler.bind(n):t[e.handler];V(i)&&bn(r,i,e)}}function Fi(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(u=>Tn(c,u,o,!0)),Tn(c,t,o)),i.set(t,c),c}function Tn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Tn(e,i,n,!0),r&&r.forEach(o=>Tn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=ql[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const ql={data:dr,props:st,emits:st,methods:st,computed:st,beforeCreate:de,created:de,beforeMount:de,mounted:de,beforeUpdate:de,updated:de,beforeDestroy:de,beforeUnmount:de,destroyed:de,unmounted:de,activated:de,deactivated:de,errorCaptured:de,serverPrefetch:de,components:st,directives:st,watch:Yl,provide:dr,inject:Jl};function dr(e,t){return t?e?function(){return ie(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Jl(e,t){return st(hs(e),hs(t))}function hs(e){if(N(e)){const t={};for(let n=0;n0)&&!(o&16)){if(o&8){const p=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[g,E]=Pi(h,t,!0);ie(o,g),E&&l.push(...E)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!i&&!c)return s.set(e,yt),yt;if(N(i))for(let p=0;p-1,E[1]=H<0||v-1||J(E,"default"))&&l.push(h)}}}const u=[o,l];return s.set(e,u),u}function hr(e){return e[0]!=="$"}function pr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function gr(e,t){return pr(e)===pr(t)}function mr(e,t){return N(t)?t.findIndex(n=>gr(n,e)):V(t)&&gr(t,e)?0:-1}const Mi=e=>e[0]==="_"||e==="$stable",$s=e=>N(e)?e.map(ye):[ye(e)],Zl=(e,t,n)=>{if(t._n)return t;const s=pi((...r)=>$s(t(...r)),n);return s._c=!1,s},Ri=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Mi(r))continue;const i=e[r];if(V(i))t[r]=Zl(r,i,s);else if(i!=null){const o=$s(i);t[r]=()=>o}}},Oi=(e,t)=>{const n=$s(t);e.slots.default=()=>n},Ql=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Y(t),Cn(t,"_",n)):Ri(t,e.slots={})}else e.slots={},t&&Oi(e,t);Cn(e.slots,Wn,1)},Gl=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=X;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(ie(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Ri(t,r)),o=t}else t&&(Oi(e,t),o={default:1});if(i)for(const l in r)!Mi(l)&&!(l in o)&&delete r[l]};function Ii(){return{app:null,config:{isNativeTag:Co,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 ec=0;function tc(e,t){return function(s,r=null){V(s)||(s=Object.assign({},s)),r!=null&&!oe(r)&&(r=null);const i=Ii(),o=new Set;let l=!1;const c=i.app={_uid:ec++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:wc,get config(){return i.config},set config(u){},use(u,...p){return o.has(u)||(u&&V(u.install)?(o.add(u),u.install(c,...p)):V(u)&&(o.add(u),u(c,...p))),c},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),c},component(u,p){return p?(i.components[u]=p,c):i.components[u]},directive(u,p){return p?(i.directives[u]=p,c):i.directives[u]},mount(u,p,h){if(!l){const g=ne(s,r);return g.appContext=i,p&&t?t(g,u):e(g,u,h),l=!0,c._container=u,u.__vue_app__=c,qn(g.component)||g.component.proxy}},unmount(){l&&(e(null,c._container),delete c._container.__vue_app__)},provide(u,p){return i.provides[u]=p,c}};return c}}function An(e,t,n,s,r=!1){if(N(e)){e.forEach((g,E)=>An(g,t&&(N(t)?t[E]:t),n,s,r));return}if(lt(s)&&!r)return;const i=s.shapeFlag&4?qn(s.component)||s.component.proxy:s.el,o=r?null:i,{i:l,r:c}=e,u=t&&t.r,p=l.refs===X?l.refs={}:l.refs,h=l.setupState;if(u!=null&&u!==c&&(se(u)?(p[u]=null,J(h,u)&&(h[u]=null)):ce(u)&&(u.value=null)),V(c))ke(c,l,12,[o,p]);else{const g=se(c),E=ce(c);if(g||E){const v=()=>{if(e.f){const H=g?p[c]:c.value;r?N(H)&&ws(H,i):N(H)?H.includes(i)||H.push(i):g?(p[c]=[i],J(h,c)&&(h[c]=p[c])):(c.value=[i],e.k&&(p[e.k]=c.value))}else g?(p[c]=o,J(h,c)&&(h[c]=o)):E&&(c.value=o,e.k&&(p[e.k]=o))};o?(v.id=-1,fe(v,n)):v()}}}let Ke=!1;const an=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",dn=e=>e.nodeType===8;function nc(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:i,parentNode:o,remove:l,insert:c,createComment:u}}=e,p=(_,d)=>{if(!d.hasChildNodes()){n(null,_,d),En(),d._vnode=_;return}Ke=!1,h(d.firstChild,_,null,null,null),En(),d._vnode=_,Ke&&console.error("Hydration completed but contains mismatches.")},h=(_,d,b,w,R,B=!1)=>{const D=dn(_)&&_.data==="[",T=()=>H(_,d,b,w,R,D),{type:L,ref:U,shapeFlag:K,patchFlag:O}=d,q=_.nodeType;d.el=_,O===-2&&(B=!1,d.dynamicChildren=null);let k=null;switch(L){case Qt:q!==3?d.children===""?(c(d.el=r(""),o(_),_),k=_):k=T():(_.data!==d.children&&(Ke=!0,_.data=d.children),k=i(_));break;case he:q!==8||D?k=T():k=i(_);break;case Tt:if(q!==1&&q!==3)k=T();else{k=_;const pe=!d.children.length;for(let Z=0;Z{B=B||!!d.dynamicChildren;const{type:D,props:T,patchFlag:L,shapeFlag:U,dirs:K}=d,O=D==="input"&&K||D==="option";if(O||L!==-1){if(K&&Me(d,null,b,"created"),T)if(O||!B||L&48)for(const k in T)(O&&k.endsWith("value")||Gt(k)&&!Ht(k))&&s(_,k,null,T[k],!1,void 0,b);else T.onClick&&s(_,"onClick",null,T.onClick,!1,void 0,b);let q;if((q=T&&T.onVnodeBeforeMount)&&ge(q,b,d),K&&Me(d,null,b,"beforeMount"),((q=T&&T.onVnodeMounted)||K)&&mi(()=>{q&&ge(q,b,d),K&&Me(d,null,b,"mounted")},w),U&16&&!(T&&(T.innerHTML||T.textContent))){let k=E(_.firstChild,d,_,b,w,R,B);for(;k;){Ke=!0;const pe=k;k=k.nextSibling,l(pe)}}else U&8&&_.textContent!==d.children&&(Ke=!0,_.textContent=d.children)}return _.nextSibling},E=(_,d,b,w,R,B,D)=>{D=D||!!d.dynamicChildren;const T=d.children,L=T.length;for(let U=0;U{const{slotScopeIds:D}=d;D&&(R=R?R.concat(D):D);const T=o(_),L=E(i(_),d,T,b,w,R,B);return L&&dn(L)&&L.data==="]"?i(d.anchor=L):(Ke=!0,c(d.anchor=u("]"),T,L),L)},H=(_,d,b,w,R,B)=>{if(Ke=!0,d.el=null,B){const L=I(_);for(;;){const U=i(_);if(U&&U!==L)l(U);else break}}const D=i(_),T=o(_);return l(_),n(null,d,T,D,b,w,an(T),R),D},I=_=>{let d=0;for(;_;)if(_=i(_),_&&dn(_)&&(_.data==="["&&d++,_.data==="]")){if(d===0)return i(_);d--}return _};return[p,h]}const fe=mi;function sc(e){return Si(e)}function rc(e){return Si(e,nc)}function Si(e,t){const n=Fo();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:u,setElementText:p,parentNode:h,nextSibling:g,setScopeId:E=ve,cloneNode:v,insertStaticContent:H}=e,I=(f,a,m,C=null,y=null,F=null,M=!1,A=null,P=!!a.dynamicChildren)=>{if(f===a)return;f&&!Re(f,a)&&(C=sn(f),$e(f,y,F,!0),f=null),a.patchFlag===-2&&(P=!1,a.dynamicChildren=null);const{type:x,ref:$,shapeFlag:S}=a;switch(x){case Qt:_(f,a,m,C);break;case he:d(f,a,m,C);break;case Tt:f==null&&b(a,m,C,M);break;case ue:q(f,a,m,C,y,F,M,A,P);break;default:S&1?B(f,a,m,C,y,F,M,A,P):S&6?k(f,a,m,C,y,F,M,A,P):(S&64||S&128)&&x.process(f,a,m,C,y,F,M,A,P,gt)}$!=null&&y&&An($,f&&f.ref,F,a||f,!a)},_=(f,a,m,C)=>{if(f==null)s(a.el=l(a.children),m,C);else{const y=a.el=f.el;a.children!==f.children&&u(y,a.children)}},d=(f,a,m,C)=>{f==null?s(a.el=c(a.children||""),m,C):a.el=f.el},b=(f,a,m,C)=>{[f.el,f.anchor]=H(f.children,a,m,C,f.el,f.anchor)},w=({el:f,anchor:a},m,C)=>{let y;for(;f&&f!==a;)y=g(f),s(f,m,C),f=y;s(a,m,C)},R=({el:f,anchor:a})=>{let m;for(;f&&f!==a;)m=g(f),r(f),f=m;r(a)},B=(f,a,m,C,y,F,M,A,P)=>{M=M||a.type==="svg",f==null?D(a,m,C,y,F,M,A,P):U(f,a,y,F,M,A,P)},D=(f,a,m,C,y,F,M,A)=>{let P,x;const{type:$,props:S,shapeFlag:j,transition:W,patchFlag:z,dirs:Q}=f;if(f.el&&v!==void 0&&z===-1)P=f.el=v(f.el);else{if(P=f.el=o(f.type,F,S&&S.is,S),j&8?p(P,f.children):j&16&&L(f.children,P,null,C,y,F&&$!=="foreignObject",M,A),Q&&Me(f,null,C,"created"),S){for(const te in S)te!=="value"&&!Ht(te)&&i(P,te,null,S[te],F,f.children,C,y,Se);"value"in S&&i(P,"value",null,S.value),(x=S.onVnodeBeforeMount)&&ge(x,C,f)}T(P,f,f.scopeId,M,C)}Q&&Me(f,null,C,"beforeMount");const G=(!y||y&&!y.pendingBranch)&&W&&!W.persisted;G&&W.beforeEnter(P),s(P,a,m),((x=S&&S.onVnodeMounted)||G||Q)&&fe(()=>{x&&ge(x,C,f),G&&W.enter(P),Q&&Me(f,null,C,"mounted")},y)},T=(f,a,m,C,y)=>{if(m&&E(f,m),C)for(let F=0;F{for(let x=P;x{const A=a.el=f.el;let{patchFlag:P,dynamicChildren:x,dirs:$}=a;P|=f.patchFlag&16;const S=f.props||X,j=a.props||X;let W;m&&tt(m,!1),(W=j.onVnodeBeforeUpdate)&&ge(W,m,a,f),$&&Me(a,f,m,"beforeUpdate"),m&&tt(m,!0);const z=y&&a.type!=="foreignObject";if(x?K(f.dynamicChildren,x,A,m,C,z,F):M||Ie(f,a,A,null,m,C,z,F,!1),P>0){if(P&16)O(A,a,S,j,m,C,y);else if(P&2&&S.class!==j.class&&i(A,"class",null,j.class,y),P&4&&i(A,"style",S.style,j.style,y),P&8){const Q=a.dynamicProps;for(let G=0;G{W&&ge(W,m,a,f),$&&Me(a,f,m,"updated")},C)},K=(f,a,m,C,y,F,M)=>{for(let A=0;A{if(m!==C){for(const A in C){if(Ht(A))continue;const P=C[A],x=m[A];P!==x&&A!=="value"&&i(f,A,x,P,M,a.children,y,F,Se)}if(m!==X)for(const A in m)!Ht(A)&&!(A in C)&&i(f,A,m[A],null,M,a.children,y,F,Se);"value"in C&&i(f,"value",m.value,C.value)}},q=(f,a,m,C,y,F,M,A,P)=>{const x=a.el=f?f.el:l(""),$=a.anchor=f?f.anchor:l("");let{patchFlag:S,dynamicChildren:j,slotScopeIds:W}=a;W&&(A=A?A.concat(W):W),f==null?(s(x,m,C),s($,m,C),L(a.children,m,$,y,F,M,A,P)):S>0&&S&64&&j&&f.dynamicChildren?(K(f.dynamicChildren,j,m,y,F,M,A),(a.key!=null||y&&a===y.subTree)&&js(f,a,!0)):Ie(f,a,m,$,y,F,M,A,P)},k=(f,a,m,C,y,F,M,A,P)=>{a.slotScopeIds=A,f==null?a.shapeFlag&512?y.ctx.activate(a,m,C,M,P):pe(a,m,C,y,F,M,P):Z(f,a,P)},pe=(f,a,m,C,y,F,M)=>{const A=f.component=Ui(f,C,y);if(nn(f)&&(A.ctx.renderer=gt),ji(A),A.asyncDep){if(y&&y.registerDep(A,re),!f.el){const P=A.subTree=ne(he);d(null,P,a,m)}return}re(A,f,a,m,y,F,M)},Z=(f,a,m)=>{const C=a.component=f.component;if(El(f,a,m))if(C.asyncDep&&!C.asyncResolved){ee(C,a,m);return}else C.next=a,gl(C.update),C.update();else a.el=f.el,C.vnode=a},re=(f,a,m,C,y,F,M)=>{const A=()=>{if(f.isMounted){let{next:$,bu:S,u:j,parent:W,vnode:z}=f,Q=$,G;tt(f,!1),$?($.el=z.el,ee(f,$,M)):$=z,S&&xt(S),(G=$.props&&$.props.onVnodeBeforeUpdate)&&ge(G,W,$,z),tt(f,!0);const te=mn(f),Ae=f.subTree;f.subTree=te,I(Ae,te,h(Ae.el),sn(Ae),f,y,F),$.el=te.el,Q===null&&Ss(f,te.el),j&&fe(j,y),(G=$.props&&$.props.onVnodeUpdated)&&fe(()=>ge(G,W,$,z),y)}else{let $;const{el:S,props:j}=a,{bm:W,m:z,parent:Q}=f,G=lt(a);if(tt(f,!1),W&&xt(W),!G&&($=j&&j.onVnodeBeforeMount)&&ge($,Q,a),tt(f,!0),S&&zn){const te=()=>{f.subTree=mn(f),zn(S,f.subTree,f,y,null)};G?a.type.__asyncLoader().then(()=>!f.isUnmounted&&te()):te()}else{const te=f.subTree=mn(f);I(null,te,m,C,f,y,F),a.el=te.el}if(z&&fe(z,y),!G&&($=j&&j.onVnodeMounted)){const te=a;fe(()=>ge($,Q,te),y)}(a.shapeFlag&256||Q&<(Q.vnode)&&Q.vnode.shapeFlag&256)&&f.a&&fe(f.a,y),f.isMounted=!0,a=m=C=null}},P=f.effect=new Nn(A,()=>Is(x),f.scope),x=f.update=()=>P.run();x.id=f.uid,tt(f,!0),x()},ee=(f,a,m)=>{a.component=f;const C=f.vnode.props;f.vnode=a,f.next=null,Xl(f,a.props,C,m),Gl(f,a.children,m),at(),Un(void 0,f.update),dt()},Ie=(f,a,m,C,y,F,M,A,P=!1)=>{const x=f&&f.children,$=f?f.shapeFlag:0,S=a.children,{patchFlag:j,shapeFlag:W}=a;if(j>0){if(j&128){Rt(x,S,m,C,y,F,M,A,P);return}else if(j&256){Jn(x,S,m,C,y,F,M,A,P);return}}W&8?($&16&&Se(x,y,F),S!==x&&p(m,S)):$&16?W&16?Rt(x,S,m,C,y,F,M,A,P):Se(x,y,F,!0):($&8&&p(m,""),W&16&&L(S,m,C,y,F,M,A,P))},Jn=(f,a,m,C,y,F,M,A,P)=>{f=f||yt,a=a||yt;const x=f.length,$=a.length,S=Math.min(x,$);let j;for(j=0;j$?Se(f,y,F,!0,!1,S):L(a,m,C,y,F,M,A,P,S)},Rt=(f,a,m,C,y,F,M,A,P)=>{let x=0;const $=a.length;let S=f.length-1,j=$-1;for(;x<=S&&x<=j;){const W=f[x],z=a[x]=P?Je(a[x]):ye(a[x]);if(Re(W,z))I(W,z,m,null,y,F,M,A,P);else break;x++}for(;x<=S&&x<=j;){const W=f[S],z=a[j]=P?Je(a[j]):ye(a[j]);if(Re(W,z))I(W,z,m,null,y,F,M,A,P);else break;S--,j--}if(x>S){if(x<=j){const W=j+1,z=W<$?a[W].el:C;for(;x<=j;)I(null,a[x]=P?Je(a[x]):ye(a[x]),m,z,y,F,M,A,P),x++}}else if(x>j)for(;x<=S;)$e(f[x],y,F,!0),x++;else{const W=x,z=x,Q=new Map;for(x=z;x<=j;x++){const _e=a[x]=P?Je(a[x]):ye(a[x]);_e.key!=null&&Q.set(_e.key,x)}let G,te=0;const Ae=j-z+1;let mt=!1,Ys=0;const Ot=new Array(Ae);for(x=0;x=Ae){$e(_e,y,F,!0);continue}let Pe;if(_e.key!=null)Pe=Q.get(_e.key);else for(G=z;G<=j;G++)if(Ot[G-z]===0&&Re(_e,a[G])){Pe=G;break}Pe===void 0?$e(_e,y,F,!0):(Ot[Pe-z]=x+1,Pe>=Ys?Ys=Pe:mt=!0,I(_e,a[Pe],m,null,y,F,M,A,P),te++)}const zs=mt?ic(Ot):yt;for(G=zs.length-1,x=Ae-1;x>=0;x--){const _e=z+x,Pe=a[_e],Xs=_e+1<$?a[_e+1].el:C;Ot[x]===0?I(null,Pe,m,Xs,y,F,M,A,P):mt&&(G<0||x!==zs[G]?pt(Pe,m,Xs,2):G--)}}},pt=(f,a,m,C,y=null)=>{const{el:F,type:M,transition:A,children:P,shapeFlag:x}=f;if(x&6){pt(f.component.subTree,a,m,C);return}if(x&128){f.suspense.move(a,m,C);return}if(x&64){M.move(f,a,m,gt);return}if(M===ue){s(F,a,m);for(let S=0;SA.enter(F),y);else{const{leave:S,delayLeave:j,afterLeave:W}=A,z=()=>s(F,a,m),Q=()=>{S(F,()=>{z(),W&&W()})};j?j(F,z,Q):Q()}else s(F,a,m)},$e=(f,a,m,C=!1,y=!1)=>{const{type:F,props:M,ref:A,children:P,dynamicChildren:x,shapeFlag:$,patchFlag:S,dirs:j}=f;if(A!=null&&An(A,null,m,f,!0),$&256){a.ctx.deactivate(f);return}const W=$&1&&j,z=!lt(f);let Q;if(z&&(Q=M&&M.onVnodeBeforeUnmount)&&ge(Q,a,f),$&6)uo(f.component,m,C);else{if($&128){f.suspense.unmount(m,C);return}W&&Me(f,null,a,"beforeUnmount"),$&64?f.type.remove(f,a,m,y,gt,C):x&&(F!==ue||S>0&&S&64)?Se(x,a,m,!1,!0):(F===ue&&S&384||!y&&$&16)&&Se(P,a,m),C&&qs(f)}(z&&(Q=M&&M.onVnodeUnmounted)||W)&&fe(()=>{Q&&ge(Q,a,f),W&&Me(f,null,a,"unmounted")},m)},qs=f=>{const{type:a,el:m,anchor:C,transition:y}=f;if(a===ue){fo(m,C);return}if(a===Tt){R(f);return}const F=()=>{r(m),y&&!y.persisted&&y.afterLeave&&y.afterLeave()};if(f.shapeFlag&1&&y&&!y.persisted){const{leave:M,delayLeave:A}=y,P=()=>M(m,F);A?A(f.el,F,P):P()}else F()},fo=(f,a)=>{let m;for(;f!==a;)m=g(f),r(f),f=m;r(a)},uo=(f,a,m)=>{const{bum:C,scope:y,update:F,subTree:M,um:A}=f;C&&xt(C),y.stop(),F&&(F.active=!1,$e(M,f,a,m)),A&&fe(A,a),fe(()=>{f.isUnmounted=!0},a),a&&a.pendingBranch&&!a.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===a.pendingId&&(a.deps--,a.deps===0&&a.resolve())},Se=(f,a,m,C=!1,y=!1,F=0)=>{for(let M=F;Mf.shapeFlag&6?sn(f.component.subTree):f.shapeFlag&128?f.suspense.next():g(f.anchor||f.el),Js=(f,a,m)=>{f==null?a._vnode&&$e(a._vnode,null,null,!0):I(a._vnode||null,f,a,null,null,null,m),En(),a._vnode=f},gt={p:I,um:$e,m:pt,r:qs,mt:pe,mc:L,pc:Ie,pbc:K,n:sn,o:e};let Yn,zn;return t&&([Yn,zn]=t(gt)),{render:Js,hydrate:Yn,createApp:tc(Js,Yn)}}function tt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function js(e,t,n=!1){const s=e.children,r=t.children;if(N(s)&&N(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 oc=e=>e.__isTeleport,jt=e=>e&&(e.disabled||e.disabled===""),_r=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,gs=(e,t)=>{const n=e&&e.to;return se(n)?t?t(n):null:n},lc={__isTeleport:!0,process(e,t,n,s,r,i,o,l,c,u){const{mc:p,pc:h,pbc:g,o:{insert:E,querySelector:v,createText:H,createComment:I}}=u,_=jt(t.props);let{shapeFlag:d,children:b,dynamicChildren:w}=t;if(e==null){const R=t.el=H(""),B=t.anchor=H("");E(R,n,s),E(B,n,s);const D=t.target=gs(t.props,v),T=t.targetAnchor=H("");D&&(E(T,D),o=o||_r(D));const L=(U,K)=>{d&16&&p(b,U,K,r,i,o,l,c)};_?L(n,B):D&&L(D,T)}else{t.el=e.el;const R=t.anchor=e.anchor,B=t.target=e.target,D=t.targetAnchor=e.targetAnchor,T=jt(e.props),L=T?n:B,U=T?R:D;if(o=o||_r(B),w?(g(e.dynamicChildren,w,L,r,i,o,l),js(e,t,!0)):c||h(e,t,L,U,r,i,o,l,!1),_)T||hn(t,n,R,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const K=t.target=gs(t.props,v);K&&hn(t,K,null,u,0)}else T&&hn(t,B,D,u,1)}},remove(e,t,n,s,{um:r,o:{remove:i}},o){const{shapeFlag:l,children:c,anchor:u,targetAnchor:p,target:h,props:g}=e;if(h&&i(p),(o||!jt(g))&&(i(u),l&16))for(let E=0;E0?me||yt:null,Ni(),ct>0&&me&&me.push(e),e}function Df(e,t,n,s,r,i){return Bi(Hi(e,t,n,s,r,i,!0))}function Li(e,t,n,s,r){return Bi(ne(e,t,n,s,r,!0))}function ft(e){return e?e.__v_isVNode===!0:!1}function Re(e,t){return e.type===t.type&&e.key===t.key}function Uf(e){}const Wn="__vInternal",ki=({key:e})=>e!=null?e:null,yn=({ref:e,ref_key:t,ref_for:n})=>e!=null?se(e)||ce(e)||V(e)?{i:ae,r:e,k:t,f:!!n}:e:null;function Hi(e,t=null,n=null,s=0,r=null,i=e===ue?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ki(t),ref:t&&yn(t),scopeId:jn,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};return l?(Vs(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=se(n)?8:16),ct>0&&!o&&me&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&me.push(c),c}const ne=fc;function fc(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===wi)&&(e=he),ft(e)){const l=De(e,t,!0);return n&&Vs(l,n),ct>0&&!i&&me&&(l.shapeFlag&6?me[me.indexOf(e)]=l:me.push(l)),l.patchFlag|=-2,l}if(bc(e)&&(e=e.__vccOpts),t){t=uc(t);let{class:l,style:c}=t;l&&!se(l)&&(t.class=Rn(l)),oe(c)&&(ni(c)&&!N(c)&&(c=ie({},c)),t.style=Mn(c))}const o=se(e)?1:gi(e)?128:oc(e)?64:oe(e)?4:V(e)?2:0;return Hi(e,t,n,s,r,o,i,!0)}function uc(e){return e?ni(e)||Wn in e?ie({},e):e:null}function De(e,t,n=!1){const{props:s,ref:r,patchFlag:i,children:o}=e,l=t?ac(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ki(l),ref:t&&t.ref?n&&r?N(r)?r.concat(yn(t)):[r,yn(t)]:yn(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!==ue?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&&De(e.ssContent),ssFallback:e.ssFallback&&De(e.ssFallback),el:e.el,anchor:e.anchor}}function Di(e=" ",t=0){return ne(Qt,null,e,t)}function $f(e,t){const n=ne(Tt,null,e);return n.staticCount=t,n}function jf(e="",t=!1){return t?(Ks(),Li(he,null,e)):ne(he,null,e)}function ye(e){return e==null||typeof e=="boolean"?ne(he):N(e)?ne(ue,null,e.slice()):typeof e=="object"?Je(e):ne(Qt,null,String(e))}function Je(e){return e.el===null||e.memo?e:De(e)}function Vs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(N(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Vs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Wn in t)?t._ctx=ae:r===3&&ae&&(ae.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:ae},n=32):(t=String(t),s&64?(n=16,t=[Di(t)]):n=8);e.children=t,e.shapeFlag|=n}function ac(...e){const t={};for(let n=0;nle||ae,Ge=e=>{le=e,e.scope.on()},ze=()=>{le&&le.scope.off(),le=null};function $i(e){return e.vnode.shapeFlag&4}let vt=!1;function ji(e,t=!1){vt=t;const{props:n,children:s}=e.vnode,r=$i(e);zl(e,n,r,t),Ql(e,s);const i=r?pc(e,t):void 0;return vt=!1,i}function pc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=si(new Proxy(e.ctx,as));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?Vi(e):null;Ge(e),at();const i=ke(s,e,0,[e.props,r]);if(dt(),ze(),Ts(i)){if(i.then(ze,ze),t)return i.then(o=>{ms(e,o,t)}).catch(o=>{Mt(o,e,0)});e.asyncDep=i}else ms(e,i,t)}else Ki(e,t)}function ms(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:oe(t)&&(e.setupState=ii(t)),Ki(e,n)}let Fn,_s;function Kf(e){Fn=e,_s=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Kl))}}const Vf=()=>!Fn;function Ki(e,t,n){const s=e.type;if(!e.render){if(!t&&Fn&&!s.render){const r=s.template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,u=ie(ie({isCustomElement:i,delimiters:l},o),c);s.render=Fn(r,u)}}e.render=s.render||ve,_s&&_s(e)}Ge(e),at(),Vl(e),dt(),ze()}function gc(e){return new Proxy(e.attrs,{get(t,n){return xe(e,"get","$attrs"),t[n]}})}function Vi(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=gc(e))},slots:e.slots,emit:e.emit,expose:t}}function qn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ii(si(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in wn)return wn[n](e)}}))}const mc=/(?:^|[-_])(\w)/g,_c=e=>e.replace(mc,t=>t.toUpperCase()).replace(/[-_]/g,"");function vn(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function Wi(e,t,n=!1){let s=vn(t);if(!s&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(s=r[1])}if(!s&&e&&e.parent){const r=i=>{for(const o in i)if(i[o]===t)return o};s=r(e.components||e.parent.type.components)||r(e.appContext.components)}return s?_c(s):n?"App":"Anonymous"}function bc(e){return V(e)&&"__vccOpts"in e}const yc=(e,t)=>ll(e,t,vt);function Wf(){return null}function qf(){return null}function Jf(e){}function Yf(e,t){return null}function zf(){return qi().slots}function Xf(){return qi().attrs}function qi(){const e=ht();return e.setupContext||(e.setupContext=Vi(e))}function Zf(e,t){const n=N(e)?e.reduce((s,r)=>(s[r]={},s),{}):e;for(const s in t){const r=n[s];r?N(r)||V(r)?n[s]={type:r,default:t[s]}:r.default=t[s]:r===null&&(n[s]={default:t[s]})}return n}function Qf(e,t){const n={};for(const s in e)t.includes(s)||Object.defineProperty(n,s,{enumerable:!0,get:()=>e[s]});return n}function Gf(e){const t=ht();let n=e();return ze(),Ts(n)&&(n=n.catch(s=>{throw Ge(t),s})),[n,()=>Ge(t)]}function Cc(e,t,n){const s=arguments.length;return s===2?oe(t)&&!N(t)?ft(t)?ne(e,null,[t]):ne(e,t):ne(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&ft(n)&&(n=[n]),ne(e,t,n))}const xc=Symbol(""),eu=()=>{{const e=_n(xc);return e||cl("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function tu(){}function nu(e,t,n,s){const r=n[s];if(r&&Ec(r,e))return r;const i=t();return i.memo=e.slice(),n[s]=i}function Ec(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let s=0;s0&&me&&me.push(e),!0}const wc="3.2.37",Tc={createComponentInstance:Ui,setupComponent:ji,renderComponentRoot:mn,setCurrentRenderingInstance:zt,isVNode:ft,normalizeVNode:ye},su=Tc,ru=null,iu=null,Ac="http://www.w3.org/2000/svg",rt=typeof document!="undefined"?document:null,yr=rt&&rt.createElement("template"),Fc={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?rt.createElementNS(Ac,e):rt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>rt.createTextNode(e),createComment:e=>rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),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{yr.innerHTML=s?`${e}`:e;const l=yr.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 vc(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 Pc(e,t,n){const s=e.style,r=se(n);if(n&&!r){for(const i in n)bs(s,i,n[i]);if(t&&!se(t))for(const i in t)n[i]==null&&bs(s,i,"")}else{const i=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=i)}}const Cr=/\s*!important$/;function bs(e,t,n){if(N(n))n.forEach(s=>bs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Mc(e,t);Cr.test(n)?e.setProperty(Oe(s),n.replace(Cr,""),"important"):e[s]=n}}const xr=["Webkit","Moz","ms"],ts={};function Mc(e,t){const n=ts[t];if(n)return n;let s=Te(t);if(s!=="filter"&&s in e)return ts[t]=s;s=Sn(s);for(let r=0;r{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let ys=0;const Sc=Promise.resolve(),Nc=()=>{ys=0},Bc=()=>ys||(Sc.then(Nc),ys=Ji());function Le(e,t,n,s){e.addEventListener(t,n,s)}function Lc(e,t,n,s){e.removeEventListener(t,n,s)}function kc(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]=Hc(t);if(s){const u=i[t]=Dc(s,r);Le(e,l,u,c)}else o&&(Lc(e,l,o,c),i[t]=void 0)}}const wr=/(?:Once|Passive|Capture)$/;function Hc(e){let t;if(wr.test(e)){t={};let n;for(;n=e.match(wr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[Oe(e.slice(2)),t]}function Dc(e,t){const n=s=>{const r=s.timeStamp||Ji();(Ic||r>=n.attached-1)&&we(Uc(s,n.value),t,5,[s])};return n.value=e,n.attached=Bc(),n}function Uc(e,t){if(N(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 Tr=/^on[a-z]/,$c=(e,t,n,s,r=!1,i,o,l,c)=>{t==="class"?vc(e,s,r):t==="style"?Pc(e,n,s):Gt(t)?Es(t)||kc(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jc(e,t,s,r))?Oc(e,t,s,i,o,l,c):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Rc(e,t,s,r))};function jc(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Tr.test(t)&&V(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Tr.test(t)&&se(n)?!1:t in e}function Kc(e,t){const n=xi(e);class s extends Ws{constructor(i){super(n,i,t)}}return s.def=n,s}const ou=e=>Kc(e,ff),Vc=typeof HTMLElement!="undefined"?HTMLElement:class{};class Ws extends Vc{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"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,ci(()=>{this._connected||(Br(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let s=0;s{for(const r of s)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=s=>{const{props:r,styles:i}=s,o=!N(r),l=r?o?Object.keys(r):r:[];let c;if(o)for(const u in this._props){const p=r[u];(p===Number||p&&p.type===Number)&&(this._props[u]=Ze(this._props[u]),(c||(c=Object.create(null)))[u]=!0)}this._numberProps=c;for(const u of Object.keys(this))u[0]!=="_"&&this._setProp(u,this[u],!0,!1);for(const u of l.map(Te))Object.defineProperty(this,u,{get(){return this._getProp(u)},set(p){this._setProp(u,p)}});this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(t):t(this._def)}_setAttr(t){let n=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(n=Ze(n)),this._setProp(Te(t),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(Oe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Oe(t),n+""):n||this.removeAttribute(Oe(t))))}_update(){Br(this._createVNode(),this.shadowRoot)}_createVNode(){const t=ne(this._def,ie({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0,n.emit=(r,...i)=>{this.dispatchEvent(new CustomEvent(r,{detail:i}))};let s=this;for(;s=s&&(s.parentNode||s.host);)if(s instanceof Ws){n.parent=s._instance;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const s=document.createElement("style");s.textContent=n,this.shadowRoot.appendChild(s)})}}function lu(e="$style"){{const t=ht();if(!t)return X;const n=t.type.__cssModules;if(!n)return X;const s=n[e];return s||X}}function cu(e){const t=ht();if(!t)return;const n=()=>Cs(t.subTree,e(t.proxy));Ml(n),Vn(()=>{const s=new MutationObserver(n);s.observe(t.subTree.el.parentNode,{childList:!0}),Hs(()=>s.disconnect())})}function Cs(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Cs(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Ar(e.el,t);else if(e.type===ue)e.children.forEach(n=>Cs(n,t));else if(e.type===Tt){let{el:n,anchor:s}=e;for(;n&&(Ar(n,t),n!==s);)n=n.nextSibling}}function Ar(e,t){if(e.nodeType===1){const n=e.style;for(const s in t)n.setProperty(`--${s}`,t[s])}}const Ve="transition",St="animation",Yi=(e,{slots:t})=>Cc(yi,Xi(e),t);Yi.displayName="Transition";const zi={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},Wc=Yi.props=ie({},yi.props,zi),nt=(e,t=[])=>{N(e)?e.forEach(n=>n(...t)):e&&e(...t)},Fr=e=>e?N(e)?e.some(t=>t.length>1):e.length>1:!1;function Xi(e){const t={};for(const O in e)O in zi||(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:u=o,appearToClass:p=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:E=`${n}-leave-to`}=e,v=qc(r),H=v&&v[0],I=v&&v[1],{onBeforeEnter:_,onEnter:d,onEnterCancelled:b,onLeave:w,onLeaveCancelled:R,onBeforeAppear:B=_,onAppear:D=d,onAppearCancelled:T=b}=t,L=(O,q,k)=>{qe(O,q?p:l),qe(O,q?u:o),k&&k()},U=(O,q)=>{O._isLeaving=!1,qe(O,h),qe(O,E),qe(O,g),q&&q()},K=O=>(q,k)=>{const pe=O?D:d,Z=()=>L(q,O,k);nt(pe,[q,Z]),vr(()=>{qe(q,O?c:i),Ne(q,O?p:l),Fr(pe)||Pr(q,s,H,Z)})};return ie(t,{onBeforeEnter(O){nt(_,[O]),Ne(O,i),Ne(O,o)},onBeforeAppear(O){nt(B,[O]),Ne(O,c),Ne(O,u)},onEnter:K(!1),onAppear:K(!0),onLeave(O,q){O._isLeaving=!0;const k=()=>U(O,q);Ne(O,h),Qi(),Ne(O,g),vr(()=>{!O._isLeaving||(qe(O,h),Ne(O,E),Fr(w)||Pr(O,s,I,k))}),nt(w,[O,k])},onEnterCancelled(O){L(O,!1),nt(b,[O])},onAppearCancelled(O){L(O,!0),nt(T,[O])},onLeaveCancelled(O){U(O),nt(R,[O])}})}function qc(e){if(e==null)return null;if(oe(e))return[ns(e.enter),ns(e.leave)];{const t=ns(e);return[t,t]}}function ns(e){return Ze(e)}function Ne(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function qe(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 vr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Jc=0;function Pr(e,t,n,s){const r=e._endId=++Jc,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=Zi(e,t);if(!o)return s();const u=o+"end";let p=0;const h=()=>{e.removeEventListener(u,g),i()},g=E=>{E.target===e&&++p>=c&&h()};setTimeout(()=>{p(n[v]||"").split(", "),r=s(Ve+"Delay"),i=s(Ve+"Duration"),o=Mr(r,i),l=s(St+"Delay"),c=s(St+"Duration"),u=Mr(l,c);let p=null,h=0,g=0;t===Ve?o>0&&(p=Ve,h=o,g=i.length):t===St?u>0&&(p=St,h=u,g=c.length):(h=Math.max(o,u),p=h>0?o>u?Ve:St:null,g=p?p===Ve?i.length:c.length:0);const E=p===Ve&&/\b(transform|all)(,|$)/.test(n[Ve+"Property"]);return{type:p,timeout:h,propCount:g,hasTransform:E}}function Mr(e,t){for(;e.lengthRr(n)+Rr(e[s])))}function Rr(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Qi(){return document.body.offsetHeight}const Gi=new WeakMap,eo=new WeakMap,Yc={name:"TransitionGroup",props:ie({},Wc,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ht(),s=bi();let r,i;return Ls(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Qc(r[0].el,n.vnode.el,o))return;r.forEach(zc),r.forEach(Xc);const l=r.filter(Zc);Qi(),l.forEach(c=>{const u=c.el,p=u.style;Ne(u,o),p.transform=p.webkitTransform=p.transitionDuration="";const h=u._moveCb=g=>{g&&g.target!==u||(!g||/transform$/.test(g.propertyName))&&(u.removeEventListener("transitionend",h),u._moveCb=null,qe(u,o))};u.addEventListener("transitionend",h)})}),()=>{const o=Y(e),l=Xi(o);let c=o.tag||ue;r=i,i=t.default?Bs(t.default()):[];for(let u=0;u{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}=Zi(s);return r.removeChild(s),i}const et=e=>{const t=e.props["onUpdate:modelValue"]||!1;return N(t)?n=>xt(t,n):t};function Gc(e){e.target.composing=!0}function Or(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const xs={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=et(r);const i=s||r.props&&r.props.type==="number";Le(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=Ze(l)),e._assign(l)}),n&&Le(e,"change",()=>{e.value=e.value.trim()}),t||(Le(e,"compositionstart",Gc),Le(e,"compositionend",Or),Le(e,"change",Or))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},i){if(e._assign=et(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&Ze(e.value)===t))return;const o=t==null?"":t;e.value!==o&&(e.value=o)}},to={deep:!0,created(e,t,n){e._assign=et(n),Le(e,"change",()=>{const s=e._modelValue,r=Pt(e),i=e.checked,o=e._assign;if(N(s)){const l=On(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const u=[...s];u.splice(l,1),o(u)}}else if(ut(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(so(e,i))})},mounted:Ir,beforeUpdate(e,t,n){e._assign=et(n),Ir(e,t,n)}};function Ir(e,{value:t,oldValue:n},s){e._modelValue=t,N(t)?e.checked=On(t,s.props.value)>-1:ut(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Xe(t,so(e,!0)))}const no={created(e,{value:t},n){e.checked=Xe(t,n.props.value),e._assign=et(n),Le(e,"change",()=>{e._assign(Pt(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e._assign=et(s),t!==n&&(e.checked=Xe(t,s.props.value))}},ef={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=ut(t);Le(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?Ze(Pt(o)):Pt(o));e._assign(e.multiple?r?new Set(i):i:i[0])}),e._assign=et(s)},mounted(e,{value:t}){Sr(e,t)},beforeUpdate(e,t,n){e._assign=et(n)},updated(e,{value:t}){Sr(e,t)}};function Sr(e,t){const n=e.multiple;if(!(n&&!N(t)&&!ut(t))){for(let s=0,r=e.options.length;s-1:i.selected=t.has(o);else if(Xe(Pt(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Pt(e){return"_value"in e?e._value:e.value}function so(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const tf={created(e,t,n){pn(e,t,n,null,"created")},mounted(e,t,n){pn(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){pn(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){pn(e,t,n,s,"updated")}};function ro(e,t){switch(e){case"SELECT":return ef;case"TEXTAREA":return xs;default:switch(t){case"checkbox":return to;case"radio":return no;default:return xs}}}function pn(e,t,n,s,r){const o=ro(e.tagName,n.props&&n.props.type)[r];o&&o(e,t,n,s)}function nf(){xs.getSSRProps=({value:e})=>({value:e}),no.getSSRProps=({value:e},t)=>{if(t.props&&Xe(t.props.value,e))return{checked:!0}},to.getSSRProps=({value:e},t)=>{if(N(e)){if(t.props&&On(e,t.props.value)>-1)return{checked:!0}}else if(ut(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},tf.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=ro(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const sf=["ctrl","shift","alt","meta"],rf={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)=>sf.some(n=>e[`${n}Key`]&&!t.includes(n))},uu=(e,t)=>(n,...s)=>{for(let r=0;rn=>{if(!("key"in n))return;const s=Oe(n.key);if(t.some(r=>r===s||of[r]===s))return e(n)},lf={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Nt(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),Nt(e,!0),s.enter(e)):s.leave(e,()=>{Nt(e,!1)}):Nt(e,t))},beforeUnmount(e,{value:t}){Nt(e,t)}};function Nt(e,t){e.style.display=t?e._vod:"none"}function cf(){lf.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const io=ie({patchProp:$c},Fc);let Vt,Nr=!1;function oo(){return Vt||(Vt=sc(io))}function lo(){return Vt=Nr?Vt:rc(io),Nr=!0,Vt}const Br=(...e)=>{oo().render(...e)},ff=(...e)=>{lo().hydrate(...e)},du=(...e)=>{const t=oo().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=co(s);if(!r)return;const i=t._component;!V(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},hu=(...e)=>{const t=lo().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=co(s);if(r)return n(r,!0,r instanceof SVGElement)},t};function co(e){return se(e)?document.querySelector(e):e}let Lr=!1;const pu=()=>{Lr||(Lr=!0,nf(),cf())};export{Hi as $,yf as A,tl as B,Te as C,Sn as D,$r as E,Rn as F,uf as G,Mn as H,af as I,gn as J,yi as K,he as L,ue as M,Mf as N,Af as O,Hf as P,Qt as Q,Nn as R,Tt as S,Yi as T,we as U,ke as V,De as W,iu as X,yc as Y,jf as Z,Df as _,Cf as a,Ff as a$,rc as a0,Qf as a1,sc as a2,Bf as a3,$f as a4,Di as a5,ne as a6,Pf as a7,xi as a8,qf as a9,Hs as aA,Ls as aB,wf as aC,Pl as aD,Ef as aE,ai as aF,Kf as aG,Nf as aH,Of as aI,Sf as aJ,If as aK,ru as aL,Zt as aM,br as aN,_l as aO,Ft as aP,xc as aQ,su as aR,kf as aS,Uf as aT,Xf as aU,eu as aV,zf as aW,bi as aX,wc as aY,cl as aZ,bn as a_,Jf as aa,Wf as ab,It as ac,ht as ad,Bs as ae,uc as af,Cc as ag,Mt as ah,tu as ai,_n as aj,Ec as ak,Vf as al,ft as am,Zf as an,ac as ao,ci as ap,Sl as aq,Ll as ar,ks as as,kl as at,Nl as au,$l as av,Vn as aw,Ul as ax,Dl as ay,Hl as az,df as b,Ml as b0,vf as b1,Gf as b2,Yf as b3,Rf as b4,nu as b5,Tf as b6,fu as b7,Ws as b8,du as b9,hu as ba,Kc as bb,ou as bc,ff as bd,pu as be,Br as bf,lu as bg,cu as bh,to as bi,tf as bj,no as bk,ef as bl,xs as bm,lf as bn,au as bo,uu as bp,N as bq,Li as c,Et as d,gf as e,qt as f,hf as g,ce as h,ni as i,ls as j,pf as k,Ps as l,si as m,ti as n,Ks as o,ii as p,Xn as q,Lf as r,Go as s,_f as t,bf as u,mf as v,pi as w,Y as x,il as y,xf as z}; diff --git a/assets/earcut.17d42416.js b/assets/earcut.17d42416.js new file mode 100644 index 0000000..1dcae13 --- /dev/null +++ b/assets/earcut.17d42416.js @@ -0,0 +1 @@ +var N=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var x=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,x.get?x:{enumerable:!0,get:function(){return e[n]}})}),t}var E={exports:{}};E.exports=P;E.exports.default=P;function P(e,t,n){n=n||2;var x=t&&t.length,r=x?t[0]*n:e.length,u=A(e,0,r,n,!0),f=[];if(!u||u.next===u.prev)return f;var i,l,y,c,h,p,v;if(x&&(u=V(e,t,u,n)),e.length>80*n){i=y=e[0],l=c=e[1];for(var o=n;oy&&(y=h),p>c&&(c=p);v=Math.max(y-i,c-l),v=v!==0?1/v:0}return w(u,f,n,i,l,v),f}function A(e,t,n,x,r){var u,f;if(r===k(e,t,n,x)>0)for(u=t;u=t;u-=x)f=z(u,e[u],e[u+1],f);return f&&T(f,f.next)&&(M(f),f=f.next),f}function g(e,t){if(!e)return e;t||(t=e);var n=e,x;do if(x=!1,!n.steiner&&(T(n,n.next)||s(n.prev,n,n.next)===0)){if(M(n),n=t=n.prev,n===n.next)break;x=!0}else n=n.next;while(x||n!==t);return t}function w(e,t,n,x,r,u,f){if(!!e){!f&&u&&U(e,x,r,u);for(var i=e,l,y;e.prev!==e.next;){if(l=e.prev,y=e.next,u?B(e,x,r,u):D(e)){t.push(l.i/n),t.push(e.i/n),t.push(y.i/n),M(e),e=y.next,i=y.next;continue}if(e=y,e===i){f?f===1?(e=G(g(e),t,n),w(e,t,n,x,r,u,2)):f===2&&R(e,t,n,x,r,u):w(g(e),t,n,x,r,u,1);break}}}}function D(e){var t=e.prev,n=e,x=e.next;if(s(t,n,x)>=0)return!1;for(var r=e.next.next;r!==e.prev;){if(Z(t.x,t.y,n.x,n.y,x.x,x.y,r.x,r.y)&&s(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function B(e,t,n,x){var r=e.prev,u=e,f=e.next;if(s(r,u,f)>=0)return!1;for(var i=r.xu.x?r.x>f.x?r.x:f.x:u.x>f.x?u.x:f.x,c=r.y>u.y?r.y>f.y?r.y:f.y:u.y>f.y?u.y:f.y,h=H(i,l,t,n,x),p=H(y,c,t,n,x),v=e.prevZ,o=e.nextZ;v&&v.z>=h&&o&&o.z<=p;){if(v!==e.prev&&v!==e.next&&Z(r.x,r.y,u.x,u.y,f.x,f.y,v.x,v.y)&&s(v.prev,v,v.next)>=0||(v=v.prevZ,o!==e.prev&&o!==e.next&&Z(r.x,r.y,u.x,u.y,f.x,f.y,o.x,o.y)&&s(o.prev,o,o.next)>=0))return!1;o=o.nextZ}for(;v&&v.z>=h;){if(v!==e.prev&&v!==e.next&&Z(r.x,r.y,u.x,u.y,f.x,f.y,v.x,v.y)&&s(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;o&&o.z<=p;){if(o!==e.prev&&o!==e.next&&Z(r.x,r.y,u.x,u.y,f.x,f.y,o.x,o.y)&&s(o.prev,o,o.next)>=0)return!1;o=o.nextZ}return!0}function G(e,t,n){var x=e;do{var r=x.prev,u=x.next.next;!T(r,u)&&j(r,x,x.next,u)&&F(r,u)&&F(u,r)&&(t.push(r.i/n),t.push(x.i/n),t.push(u.i/n),M(x),M(x.next),x=e=u),x=x.next}while(x!==e);return g(x)}function R(e,t,n,x,r,u){var f=e;do{for(var i=f.next.next;i!==f.prev;){if(f.i!==i.i&&Y(f,i)){var l=C(f,i);f=g(f,f.next),l=g(l,l.next),w(f,t,n,x,r,u),w(l,t,n,x,r,u);return}i=i.next}f=f.next}while(f!==e)}function V(e,t,n,x){var r=[],u,f,i,l,y;for(u=0,f=t.length;u=n.next.y&&n.next.y!==n.y){var i=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(i<=x&&i>u){if(u=i,i===x){if(r===n.y)return n;if(r===n.next.y)return n.next}f=n.x=n.x&&n.x>=y&&x!==n.x&&Z(rf.x||n.x===f.x&&Q(f,n)))&&(f=n,h=p)),n=n.next;while(n!==l);return f}function Q(e,t){return s(e.prev,e,t.prev)<0&&s(t.next,e,e.next)<0}function U(e,t,n,x){var r=e;do r.z===null&&(r.z=H(r.x,r.y,t,n,x)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next;while(r!==e);r.prevZ.nextZ=null,r.prevZ=null,W(r)}function W(e){var t,n,x,r,u,f,i,l,y=1;do{for(n=e,e=null,u=null,f=0;n;){for(f++,x=n,i=0,t=0;t0||l>0&&x;)i!==0&&(l===0||!x||n.z<=x.z)?(r=n,n=n.nextZ,i--):(r=x,x=x.nextZ,l--),u?u.nextZ=r:e=r,r.prevZ=u,u=r;n=x}u.nextZ=null,y*=2}while(f>1);return e}function H(e,t,n,x,r){return e=32767*(e-n)*r,t=32767*(t-x)*r,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function X(e){var t=e,n=e;do(t.x=0&&(e-f)*(x-i)-(n-f)*(t-i)>=0&&(n-f)*(u-i)-(r-f)*(x-i)>=0}function Y(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!I(e,t)&&(F(e,t)&&F(t,e)&&S(e,t)&&(s(e.prev,e,t.prev)||s(e,t.prev,t))||T(e,t)&&s(e.prev,e,e.next)>0&&s(t.prev,t,t.next)>0)}function s(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function T(e,t){return e.x===t.x&&e.y===t.y}function j(e,t,n,x){var r=L(s(e,t,n)),u=L(s(e,t,x)),f=L(s(n,x,e)),i=L(s(n,x,t));return!!(r!==u&&f!==i||r===0&&O(e,n,t)||u===0&&O(e,x,t)||f===0&&O(n,e,x)||i===0&&O(n,t,x))}function O(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function L(e){return e>0?1:e<0?-1:0}function I(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&j(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function F(e,t){return s(e.prev,e,e.next)<0?s(e,t,e.next)>=0&&s(e,e.prev,t)>=0:s(e,t,e.prev)<0||s(e,e.next,t)<0}function S(e,t){var n=e,x=!1,r=(e.x+t.x)/2,u=(e.y+t.y)/2;do n.y>u!=n.next.y>u&&n.next.y!==n.y&&r<(n.next.x-n.x)*(u-n.y)/(n.next.y-n.y)+n.x&&(x=!x),n=n.next;while(n!==e);return x}function C(e,t){var n=new _(e.i,e.x,e.y),x=new _(t.i,t.x,t.y),r=e.next,u=t.prev;return e.next=t,t.prev=e,n.next=r,r.prev=n,x.next=n,n.prev=x,u.next=x,x.prev=u,x}function z(e,t,n,x){var r=new _(e,t,n);return x?(r.next=x.next,r.prev=x,x.next.prev=r,x.next=r):(r.prev=r,r.next=r),r}function M(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function _(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}P.deviation=function(e,t,n,x){var r=t&&t.length,u=r?t[0]*n:e.length,f=Math.abs(k(e,0,u,n));if(r)for(var i=0,l=t.length;i0&&(x+=e[r-1].length,n.holes.push(x))}return n};export{m as a,N as c,a as g}; diff --git a/assets/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);l:not(.feature){margin:0;display:flex}.col{display:flex;flex-flow:column wrap;justify-content:center;align-items:center;height:100%;margin:10px 0}.row.mergeAdjacent>.feature:not(.dontMerge),.row.mergeAdjacent>.tooltip-container>.feature:not(.dontMerge){margin-left:0;margin-right:0;border-radius:0}.row.mergeAdjacent>.feature:not(.dontMerge):first-child,.row.mergeAdjacent>.tooltip-container:first-child>.feature:not(.dontMerge){border-radius:var(--border-radius) 0 0 var(--border-radius)}.row.mergeAdjacent>.feature:not(.dontMerge):last-child,.row.mergeAdjacent>.tooltip-container:last-child>.feature:not(.dontMerge){border-radius:0 var(--border-radius) var(--border-radius) 0}.row.mergeAdjacent>.feature:not(.dontMerge):first-child:last-child,.row.mergeAdjacent>.tooltip-container:first-child:last-child>.feature:not(.dontMerge){border-radius:var(--border-radius)}.col.mergeAdjacent .feature:not(.dontMerge){margin-top:0;margin-bottom:0;border-radius:0}.col.mergeAdjacent .feature:not(.dontMerge):first-child{border-radius:var(--border-radius) var(--border-radius) 0 0}.col.mergeAdjacent .feature:not(.dontMerge):last-child{border-radius:0 0 var(--border-radius) var(--border-radius)}.col.mergeAdjacent .feature:not(.dontMerge):first-child:last-child{border-radius:var(--border-radius)}.resize-listener[data-v-6a08ac80]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;z-index:-10;pointer-events:none}.modal-mask{position:fixed;z-index:9998;top:0;left:0;bottom:0;right:0;background-color:#00000080;transition:opacity .3s ease}.modal-wrapper{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.modal-container{width:640px;max-width:95vw;max-height:95vh;background-color:var(--background);padding:20px;border-radius:5px;transition:all .3s ease;text-align:left;border:var(--modal-border);box-sizing:border-box;display:flex;flex-direction:column}.modal-header{width:100%}.modal-body{margin:20px 0;width:100%;overflow-y:auto;overflow-x:hidden}.modal-footer{width:100%}.modal-default-footer{display:flex}.modal-default-flex-grow{flex-grow:1}.modal-enter-from,.modal-leave-active{opacity:0}.modal-enter-from .modal-container,.modal-leave-active .modal-container{-webkit-transform:scale(1.1);transform:scale(1.1)}.layer-container[data-v-34c9d881]{min-width:100%;min-height:100%;margin:0;flex-grow:1;display:flex;isolation:isolate}.layer-tab[data-v-34c9d881]:not(.minimized){padding-top:20px;padding-bottom:20px;min-height:100%;flex-grow:1;text-align:center;position:relative}.inner-tab>.layer-container>.layer-tab[data-v-34c9d881]:not(.minimized){padding-top:50px}.layer-tab.minimized[data-v-34c9d881]{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;padding:55px 0 0;margin:0;cursor:pointer;font-size:40px;color:var(--foreground);border:none;background-color:transparent}.layer-tab.minimized div[data-v-34c9d881]{margin:0;writing-mode:vertical-rl;padding-left:10px;width:50px}.inner-tab>.layer-container>.layer-tab[data-v-34c9d881]:not(.minimized){margin:-50px -10px;padding:50px 10px}.modal-body .layer-tab[data-v-34c9d881]{padding-bottom:0}.modal-body .layer-tab[data-v-34c9d881]:not(.hasSubtabs){padding-top:0}.minimize[data-v-34c9d881]{position:sticky;top:6px;right:9px;z-index:7;line-height:30px;border:none;background:var(--background);box-shadow:var(--background) 0 2px 3px 5px;border-radius:50%;color:var(--foreground);font-size:40px;cursor:pointer;margin-top:-44px;margin-right:-30px}.minimized+.minimize[data-v-34c9d881]{transform:rotate(-90deg);top:10px;right:18px;pointer-events:none}.goBack[data-v-34c9d881]{position:sticky;top:6px;left:20px;line-height:30px;margin-top:-50px;margin-left:-35px;border:none;background:var(--background);box-shadow:var(--background) 0 2px 3px 5px;border-radius:50%;color:var(--foreground);font-size:40px;cursor:pointer;z-index:7}.goBack[data-v-34c9d881]:hover{transform:scale(1.1);text-shadow:0 0 7px var(--foreground)}details[data-v-4b4bda40]{margin:10px 0;padding-left:18px}summary[data-v-4b4bda40]{cursor:pointer;margin-bottom:10px;margin-left:-18px}ul[data-v-4b4bda40]{margin:var(--feature-margin) 0;background:var(--raised-background);border:2px solid rgba(0,0,0,.125);padding:5px 5px 5px 15px;list-style:inside}li[data-v-4b4bda40]{margin:8px 0}li[data-v-4b4bda40]:before{padding:2px 8px;margin-right:8px;border-radius:var(--border-radius)}.feature[data-v-4b4bda40]:before{content:"Feature";background:var(--accent1)}.fix[data-v-4b4bda40]:before{content:"Fix";background:var(--accent2)}.balancing[data-v-4b4bda40]:before{content:"Balancing";background:var(--accent3)}.breaking[data-v-4b4bda40]:before{content:"Breaking";background:var(--danger)}.tooltip-container[data-v-6102fa3a]{position:relative;--xoffset: 0px;--yoffset: 0px;text-shadow:none!important}.tooltip[data-v-6102fa3a],.tooltip[data-v-6102fa3a]:after{pointer-events:none;position:absolute}.tooltip[data-v-6102fa3a]{text-align:center;width:150px;font-size:14px;line-height:1.2;bottom:calc(100% + var(--yoffset));left:calc(50% + var(--xoffset));margin-bottom:5px;transform:translate(-50%);padding:7px;border-radius:3px;background-color:var(--tooltip-background);color:var(--points);z-index:100!important;word-break:break-word}.tooltip[data-v-6102fa3a] hr{margin:var(--feature-margin) 0}.shown[data-v-6102fa3a]{z-index:10}.fade-enter-from[data-v-6102fa3a],.fade-leave-to[data-v-6102fa3a]{opacity:0}.tooltip[data-v-6102fa3a]:after{content:" ";position:absolute;top:100%;bottom:100%;left:calc(50% - var(--xoffset));width:0;margin-left:-5px;border-width:5px;border-style:solid;border-color:var(--tooltip-background) transparent transparent transparent}.tooltip.left[data-v-6102fa3a],.side-nodes .tooltip[data-v-6102fa3a]:not(.right):not(.bottom):not(.top){bottom:calc(50% + var(--yoffset));left:unset;right:calc(100% + var(--xoffset));margin-bottom:unset;margin-right:5px;transform:translateY(50%)}.tooltip.left[data-v-6102fa3a]:after,.side-nodes .tooltip[data-v-6102fa3a]:not(.right):not(.bottom):not(.top):after{top:calc(50% + var(--yoffset));bottom:unset;left:100%;right:100%;margin-left:unset;margin-top:-5px;border-color:transparent transparent transparent var(--tooltip-background)}.tooltip.right[data-v-6102fa3a]{bottom:calc(50% + var(--yoffset));left:calc(100% + var(--xoffset));margin-bottom:unset;margin-left:5px;transform:translateY(50%)}.tooltip.right[data-v-6102fa3a]:after{top:calc(50% + var(--yoffset));left:0;right:100%;margin-left:-10px;margin-top:-5px;border-color:transparent var(--tooltip-background) transparent transparent}.tooltip.bottom[data-v-6102fa3a]{top:calc(100% + var(--yoffset));bottom:unset;left:calc(50% + var(--xoffset));margin-bottom:unset;margin-top:5px;transform:translate(-50%)}.tooltip.bottom[data-v-6102fa3a]:after{top:0;margin-top:-10px;border-color:transparent transparent var(--tooltip-background) transparent}.pinned[data-v-6102fa3a]{position:absolute;right:-5px;top:-5px;transform:rotate(45deg)}.info-modal-header[data-v-7dec2dec]{display:flex;margin:-20px -20px 0;background:var(--raised-background);align-items:center}.info-modal-header *[data-v-7dec2dec]{margin:0}.info-modal-logo[data-v-7dec2dec]{height:4em;width:4em}.info-modal-title[data-v-7dec2dec]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.info-modal-discord-link[data-v-7dec2dec]{display:flex;align-items:center}.info-modal-discord[data-v-7dec2dec]{margin:0 4px 0 0}.field{display:flex;position:relative;min-height:2em;margin:10px 0;user-select:none;justify-content:space-between;align-items:center}.field>*{margin:0}.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}.vue-select{width:50%;border-radius:var(--border-radius)}.field-buttons .vue-select{width:unset}.vue-select,.vue-dropdown{border-color:var(--outline)}.vue-dropdown{background:var(--raised-background)}.vue-dropdown-item{color:var(--foreground)}.vue-dropdown-item,.vue-dropdown-item *{transition-duration:0s}.vue-dropdown-item.highlighted{background-color:var(--highlighted)}.vue-dropdown-item.selected,.vue-dropdown-item.highlighted.selected{background-color:var(--bought)}.vue-input input::placeholder{color:var(--link)}.field[data-v-2b109500]{cursor:pointer}input[data-v-2b109500]{appearance:none;pointer-events:none}span[data-v-2b109500]{width:100%;position:relative}input+span[data-v-2b109500]:before{content:"";float:right;margin:5px 0 5px 10px;border-radius:7px;width:36px;height:14px;background-color:var(--outline);opacity:.38;vertical-align:top;transition:background-color .2s,opacity .2s}input+span[data-v-2b109500]:after{content:"";position:absolute;top:2px;right:16px;border-radius:50%;width:20px;height:20px;background-color:var(--locked);box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;transition:background-color .2s,transform .2s}input:checked+span[data-v-2b109500]:before{background-color:var(--link);opacity:.6}input:checked+span[data-v-2b109500]:after{background-color:var(--link);transform:translate(16px)}input:active+span[data-v-2b109500]:before{background-color:var(--link);opacity:.6}input:checked:active+span[data-v-2b109500]:before{background-color:var(--outline);opacity:.38}input:disabled+span[data-v-2b109500]{color:#000;opacity:.38;cursor:default}input:disabled+span[data-v-2b109500]:before{background-color:var(--outline);opacity:.38}input:checked:disabled+span[data-v-2b109500]:before{background-color:var(--link);opacity:.6}.header[data-v-bc13791c]{margin-bottom:-10px}*[data-v-bc13791c] .tooltip-container{display:inline;margin-left:5px}form[data-v-d74adb0a]{margin:0;width:100%}.field>*[data-v-d74adb0a]{margin:0}input[data-v-d74adb0a]{width:50%;outline:none;border:solid 1px var(--outline);background-color:unset;border-radius:var(--border-radius)}.fullWidth[data-v-d74adb0a]{width:100%}.container[data-v-2f8ef34c]{display:flex;align-items:center;background:var(--raised-background);box-shadow:var(--raised-background) 0 2px 3px 5px}.container.confirming button[data-v-2f8ef34c]{font-size:1em}.container>*[data-v-2f8ef34c]{margin:0 4px}.danger,.button.danger{position:relative;border:solid 2px var(--danger);border-right-width:16px}.danger:after{position:absolute;content:"!";color:#fff;right:-13px}.feedback[data-v-01a1b95c]{position:relative}.feedback[data-v-01a1b95c]:after{position:absolute;left:calc(100% + 5px);top:50%;transform:translateY(-50%);content:"\2714";opacity:0;pointer-events:none;box-shadow:inset 0 0 0 35px #6f94b600;text-shadow:none}.feedback.left[data-v-01a1b95c]:after{left:unset;right:calc(100% + 5px)}.feedback.activated[data-v-01a1b95c]:after{animation:feedback-01a1b95c .5s ease-out forwards}@keyframes feedback-01a1b95c{0%{opacity:1;transform:scale3d(.4,.4,1),translateY(-50%)}80%{opacity:.1}to{opacity:0;transform:scale3d(1.2,1.2,1),translateY(-50%)}}.save[data-v-0136bef4]{position:relative;border:solid 4px var(--outline);padding:4px;background:var(--raised-background);margin:var(--feature-margin);display:flex;align-items:center;min-height:30px}.save.active[data-v-0136bef4]{border-color:var(--bought)}.open[data-v-0136bef4]{display:inline;margin:0;padding-left:0}.handle[data-v-0136bef4]{flex-grow:0;margin-right:8px;margin-left:0;cursor:pointer}.details[data-v-0136bef4]{margin:0 80px 0 0;flex-grow:1}.error[data-v-0136bef4]{font-size:.8em;color:var(--danger)}.save-version[data-v-0136bef4]{margin-left:4px;font-size:.7em;opacity:.7}.actions[data-v-0136bef4]{position:absolute;top:0;bottom:0;right:4px;display:flex;padding:4px;z-index:1}.editname[data-v-0136bef4]{margin:0}.save button{transition-duration:0s}.save .actions button{display:flex;font-size:1.2em}.save .actions button .material-icons{font-size:unset}.save .button.danger{display:flex;align-items:center;padding:4px}.save .field,.field form[data-v-3b9991aa],.field .field-title[data-v-3b9991aa],.field .field-buttons[data-v-3b9991aa]{margin:0}.field-buttons[data-v-3b9991aa]{display:flex}.field-buttons .field[data-v-3b9991aa]{margin:0 0 0 8px}.modal-footer[data-v-3b9991aa]{margin-top:-20px}.footer[data-v-3b9991aa]{display:flex;margin-top:20px}.importingFailed input{color:red}.field-buttons .v-select{width:220px}.presets .vue-select[aria-expanded=true] vue-dropdown{visibility:hidden}.nav[data-v-4a3f8425]{background-color:var(--raised-background);display:flex;left:0;right:0;top:0;height:46px;width:100%;border-bottom:4px solid var(--outline)}.nav>*[data-v-4a3f8425]{height:46px;width:46px;display:flex;cursor:pointer;flex-shrink:0}.nav>.banner[data-v-4a3f8425]{height:100%;width:unset}.overlay-nav[data-v-4a3f8425]{position:fixed;top:10px;left:10px;display:flex;flex-direction:column;z-index:2}.overlay-nav>*[data-v-4a3f8425]{height:50px;width:50px;display:flex;cursor:pointer;margin:0;align-items:center;justify-content:center}.title[data-v-4a3f8425]{font-size:36px;text-align:left;margin-left:12px;cursor:unset}.nav>.title[data-v-4a3f8425]{width:unset;flex-shrink:1;overflow:hidden;white-space:nowrap}.nav .saves[data-v-4a3f8425],.nav .info[data-v-4a3f8425]{display:flex}.tooltip-container[data-v-4a3f8425]{width:100%;height:100%;display:flex}.overlay-nav .discord[data-v-4a3f8425]{position:relative}.discord img[data-v-4a3f8425]{width:100%;height:100%}.discord-links[data-v-4a3f8425]{position:fixed;top:45px;padding:20px;right:-280px;width:200px;transition:right .25s ease;background:var(--raised-background);z-index:10}.overlay-nav .discord-links[data-v-4a3f8425]{position:absolute;left:-280px;right:unset;transition:left .25s ease}.overlay-nav .discord:hover .discord-links[data-v-4a3f8425]{left:-10px}.discord-links li[data-v-4a3f8425]{margin-bottom:4px}.discord-links li[data-v-4a3f8425]:first-child{font-size:1.2em}*:not(.overlay-nav) .discord:hover .discord-links[data-v-4a3f8425]{right:0}.material-icons[data-v-4a3f8425]{font-size:36px}.material-icons[data-v-4a3f8425]:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--foreground)}.nav .version-container[data-v-4a3f8425]{display:flex;height:25px;margin-bottom:0;margin-left:10px}.overlay-nav .version-container[data-v-4a3f8425]{width:unset;height:25px}.version[data-v-4a3f8425]{color:var(--points)}.version:hover span[data-v-4a3f8425]{text-shadow:5px 0 10px var(--points),-3px 0 12px var(--points)}.nav>div>a[data-v-4a3f8425],.overlay-nav>div>a[data-v-4a3f8425]{color:var(--foreground);text-shadow:none}.tabs-container[data-v-4cb9ce0f]{width:100vw;flex-grow:1;overflow-x:auto;overflow-y:hidden;display:flex}.tabs-container[data-v-4cb9ce0f]:not(.useHeader){width:calc(100vw - 50px);margin-left:50px}.tab[data-v-4cb9ce0f]{position:relative;height:100%;flex-grow:1;transition-duration:0s;overflow-y:auto;overflow-x:hidden}.inner-tab[data-v-4cb9ce0f]{padding:50px 10px;min-height:calc(100% - 100px);display:flex;flex-direction:column;margin:0;flex-grow:1}.tab+.tab>.inner-tab[data-v-4cb9ce0f]{border-left:solid 4px var(--outline)}.tab hr{height:4px;border:none;background:var(--outline);margin:var(--feature-margin) 0}.tab .modal-body hr{margin:7px 0}svg[data-v-89b4b00a]{background:#2e3440}svg .svg-elem-1[data-v-89b4b00a]{stroke-dashoffset:2648.758056640625px;stroke-dasharray:1324.3790283203125px;transition:stroke-dashoffset 1s cubic-bezier(.47,0,.745,.715) 0s}svg.v-enter-from .svg-elem-1[data-v-89b4b00a],svg.v-leave-to .svg-elem-1[data-v-89b4b00a]{stroke-dashoffset:1324.3790283203125px}svg .svg-elem-2[data-v-89b4b00a]{stroke-dashoffset:680.4000854492188px;stroke-dasharray:340.2000427246094px;transition:stroke-dashoffset 1s ease-out .4s}svg.v-enter-from .svg-elem-2[data-v-89b4b00a],svg.v-leave-to .svg-elem-2[data-v-89b4b00a]{stroke-dashoffset:340.2000427246094px}svg .svg-elem-3[data-v-89b4b00a]{stroke-dashoffset:76.21031951904297px;stroke-dasharray:38.105159759521484px;transition:stroke-dashoffset 1s ease-out .8s}svg.v-enter-from .svg-elem-3[data-v-89b4b00a],svg.v-leave-to .svg-elem-3[data-v-89b4b00a]{stroke-dashoffset:38.105159759521484px}svg .svg-elem-4[data-v-89b4b00a]{stroke-dashoffset:175.18072509765625px;stroke-dasharray:87.59036254882812px;transition:stroke-dashoffset 1s cubic-bezier(.47,0,.745,.715) .36s}svg.v-enter-from .svg-elem-4[data-v-89b4b00a],svg.v-leave-to .svg-elem-4[data-v-89b4b00a]{stroke-dashoffset:87.59036254882812px}svg .svg-elem-5[data-v-89b4b00a]{stroke-dashoffset:671.9447021484375px;stroke-dasharray:335.97235107421875px;transition:stroke-dashoffset 1s ease-out .8s}svg.v-enter-from .svg-elem-5[data-v-89b4b00a],svg.v-leave-to .svg-elem-5[data-v-89b4b00a]{stroke-dashoffset:335.97235107421875px}svg .svg-elem-6[data-v-89b4b00a]{stroke-dashoffset:173.96141052246094px;stroke-dasharray:86.98070526123047px;transition:stroke-dashoffset 1s ease-out 1s}svg.v-enter-from .svg-elem-6[data-v-89b4b00a],svg.v-leave-to .svg-elem-6[data-v-89b4b00a]{stroke-dashoffset:86.98070526123047px}svg .svg-elem-7[data-v-89b4b00a]{stroke-dashoffset:172.99151611328125px;stroke-dasharray:86.49575805664062px;transition:stroke-dashoffset 1s ease-out .85s}svg.v-enter-from .svg-elem-7[data-v-89b4b00a],svg.v-leave-to .svg-elem-7[data-v-89b4b00a]{stroke-dashoffset:86.49575805664062px}.resize-listener[data-v-c139d80e]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;z-index:-10;pointer-events:none}svg[data-v-c139d80e]{position:absolute;top:5px;left:5px;right:5px;bottom:5px;z-index:-10;pointer-events:none}.left-side-nodes[data-v-39ca96d0]{position:absolute;left:15px;top:65px}.side-nodes[data-v-39ca96d0]{position:absolute;right:15px;top:65px}.left-side-nodes[data-v-39ca96d0] .treeNode,.side-nodes[data-v-39ca96d0] .treeNode{margin:20px auto}.small[data-v-39ca96d0] .treeNode{height:60px;width:60px}.small[data-v-39ca96d0] .treeNode>*:first-child{font-size:30px}.mark[data-v-2207999f]{position:absolute;left:-25px;top:-10px;width:30px;height:30px;z-index:1;pointer-events:none;margin-left:.9em;margin-right:.9em;margin-bottom:1.2em;border-right:.3em solid transparent;border-bottom:.7em solid transparent;border-left:.3em solid transparent;font-size:10px}.star[data-v-2207999f]{left:-10px;width:0;height:0;margin-left:.9em;margin-right:.9em;margin-bottom:1.2em;border-right:.3em solid transparent;border-bottom:.7em solid #ffcc00;border-left:.3em solid transparent;font-size:10px;pointer-events:none}.star[data-v-2207999f]:before,.star[data-v-2207999f]:after{content:"";width:0;height:0;position:absolute;top:.6em;left:-1em;border-right:1em solid transparent;border-bottom:.7em solid #ffcc00;border-left:1em solid transparent;transform:rotate(-35deg)}.star[data-v-2207999f]:after{transform:rotate(35deg)}.node[data-v-2cb1bb79]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.treeNode[data-v-1c0c107d]{height:100px;width:100px;border-radius:50%;padding:0;margin:0 10px}.treeNode>*[data-v-1c0c107d]:first-child{width:100%;height:100%;border:2px solid rgba(0,0,0,.125);border-radius:inherit;font-size:40px;color:#00000080;text-shadow:2px 2px 4px rgba(0,0,0,.25);box-shadow:-4px -4px 4px #00000040 inset,0 0 20px var(--background);text-transform:capitalize;display:flex}.treeNode>*:first-child>*[data-v-1c0c107d]{pointer-events:none}.feature:not(li),.feature:not(li) button{position:relative;padding:5px;border-radius:var(--border-radius);border:2px solid rgba(0,0,0,.125);margin:var(--feature-margin);box-sizing:border-box;color:var(--feature-foreground);z-index:0;transition:all .5s,z-index 0s .5s}.can,.can button{background-color:var(--layer-color);cursor:pointer}.can:hover,.can:hover button{transform:scale(1.15);box-shadow:0 0 20px var(--points);z-index:1;transition:all .5s,z-index 0s}.locked,.locked button{background-color:var(--locked);cursor:not-allowed}.bought,.bought button{background-color:var(--bought);cursor:default}.achievement[data-v-58163dab]{height:90px;width:90px;font-size:10px;color:#fff;text-shadow:0 0 2px #000000}.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}.tile[data-v-26ac0e82]{min-height:80px;width:80px;font-size:10px;background-color:var(--layer-color)}.tile>*[data-v-26ac0e82]{pointer-events:none}.clickable[data-v-5e7c90cf]{min-height:120px;width:120px;font-size:10px}.clickable.small[data-v-5e7c90cf]{min-height:unset}.clickable>*[data-v-5e7c90cf]{pointer-events:none}.modifier-toggle{padding-right:10px;transform:translateY(-1px);display:inline-block}.modifier-toggle.collapsed{transform:translate(-5px,-5px) rotate(-90deg)}.infobox[data-v-338c9154]{position:relative;width:600px;max-width:95%;margin-top:0;text-align:left;border-style:solid;border-width:0px;box-sizing:border-box;border-radius:5px}.infobox.stacked[data-v-338c9154]{border-width:4px}.infobox:not(.stacked)+.infobox[data-v-338c9154]:not(.stacked){margin-top:20px}.infobox[data-v-338c9154]+:not(.infobox){margin-top:10px}.title[data-v-338c9154]{font-size:24px;color:#000;cursor:pointer;border:none;width:auto;text-align:left;padding:4px 4px 4px 30px}.infobox:not(.stacked) .title[data-v-338c9154]{border-top-left-radius:5px;border-top-right-radius:5px}.infobox.stacked+.infobox.stacked[data-v-338c9154]{border-top-left-radius:0;border-top-right-radius:0;margin-top:-5px}.stacked .title[data-v-338c9154]{width:100%}.collapsed:not(.stacked) .title[data-v-338c9154]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background-color:inherit}.toggle[data-v-338c9154]{position:absolute;left:10px}.collapsed .toggle[data-v-338c9154]{transform:rotate(-90deg)}.body[data-v-338c9154]{transition-duration:.5s;border-radius:0 5px 5px}.infobox:not(.stacked) .body[data-v-338c9154]{padding:4px}.body>*[data-v-338c9154]{padding:8px;width:100%;display:block;box-sizing:border-box;border-radius:0 5px 5px;background-color:var(--background)}.not-fullscreen[data-v-8adf21fa],.resize-listener[data-v-8adf21fa]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;pointer-events:none}.sticky[data-v-21495571]{position:sticky;background:var(--background);width:calc(100% - 2px);z-index:3}.main-display-container{vertical-align:middle;margin-bottom:20px;display:flex}.modifier-container{display:flex}.modifier-container:nth-child(2n){background:var(--raised-background)}.modifier-amount{flex-basis:100px;flex-shrink:0}.modifier-description{flex-grow:1}.fullWidth[data-v-1b053b9f]{width:100%}.vr[data-v-5e0a978a]{width:4px;background:var(--outline);height:100%;margin:auto var(--feature-margin)}.bar[data-v-02d0d7b2]{position:relative;display:table}.overlayTextContainer[data-v-02d0d7b2]{position:absolute;border-radius:10px;vertical-align:middle;display:flex;justify-content:center;z-index:3}.overlayText[data-v-02d0d7b2]{z-index:6}.border[data-v-02d0d7b2]{border:2px solid;border-radius:10px;border-color:var(--foreground);overflow:hidden;mask-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);margin:0}.fill[data-v-02d0d7b2]{position:absolute;background-color:var(--foreground);overflow:hidden;margin-left:-.5px;transition-duration:.2s;z-index:2}.challenge[data-v-4d2947df]{background-color:var(--locked);width:300px;min-height:300px;color:#000;font-size:15px;display:flex;flex-flow:column;align-items:center}.challenge.done[data-v-4d2947df]{background-color:var(--bought)}.challenge button[data-v-4d2947df]{min-height:50px;width:120px;border-radius:var(--border-radius);box-shadow:none!important;background:transparent}.challenge.canStart button[data-v-4d2947df]{cursor:pointer;background-color:var(--layer-color)}.milestone[data-v-f4e8794e]{width:calc(100% - 10px);min-width:120px;padding-left:5px;padding-right:5px;background-color:var(--locked);border-width:4px;border-radius:5px;color:#00000080}.milestone.done[data-v-f4e8794e]{background-color:var(--bought);cursor:default}.milestone[data-v-f4e8794e] .equal-spaced{display:flex;justify-content:center}.milestone[data-v-f4e8794e] .equal-spaced>*{margin:auto}.tabButton[data-v-610a2549]{background-color:transparent;color:var(--foreground);font-size:20px;cursor:pointer;padding:5px 20px;margin:5px;border-radius:5px;border:2px solid;flex-shrink:0;border-color:var(--layer-color)}.tabButton[data-v-610a2549]:hover{transform:scale(1.1);text-shadow:0 0 7px var(--foreground)}:not(.floating)>.tabButton[data-v-610a2549]{height:50px;margin:0;border-left:none;border-right:none;border-top:none;border-bottom-width:4px;border-radius:0;transform:unset}:not(.floating) .tabButton[data-v-610a2549]:not(.active){border-bottom-color:transparent}.tabButton>*[data-v-610a2549]{pointer-events:none}.tab-family-container[data-v-11575f45]{margin:calc(50px + var(--feature-margin)) 20px var(--feature-margin) 20px;position:relative;border:solid 4px;border-color:var(--outline)}.layer-tab>.tab-family-container[data-v-11575f45]:first-child{margin:-4px -11px var(--feature-margin) -11px}.layer-tab>.tab-family-container[data-v-11575f45]:first-child:nth-last-child(3){border-bottom-style:none;border-left-style:none;border-right-style:none;height:calc(100% + 50px)}.modal-body>.tab-family-container[data-v-11575f45]:first-child{margin:calc(10px + var(--feature-margin)) 10px 0 10px;border:none}.tab-family-container[data-v-11575f45]>:nth-child(2){margin-top:20px}.modal-body>.tab-family-container[data-v-11575f45]>:nth-child(2){margin-top:50px}.tab-family-container[data-v-f18896fc][data-v-11575f45]>:last-child{margin-bottom:20px}.tab-buttons-container[data-v-11575f45]{z-index:4}.tab-buttons-container[data-v-11575f45]:not(.floating){border-bottom:solid 4px;border-color:inherit}:not(.layer-tab):not(.modal-body)>.tab-family-container>.tab-buttons-container[data-v-11575f45]:not(.floating){width:calc(100% + 6px);margin-left:-3px}.tab-buttons-container:not(.floating) .tab-buttons[data-v-11575f45]{text-align:left;margin-bottom:-4px}.tab-buttons-container.floating .tab-buttons[data-v-11575f45]{justify-content:center;margin-top:-25px}.tab-buttons[data-v-11575f45]{margin-bottom:24px;display:flex;flex-flow:wrap;z-index:4}.layer-tab>.tab-family-container:first-child:nth-last-child(3)>.tab-buttons-container>.tab-buttons[data-v-11575f45]{padding-right:60px}.tab-buttons[data-v-11575f45]:not(.floating){text-align:left;border-bottom:inherit;border-width:4px;box-sizing:border-box;height:50px}.modal-body .tab-buttons[data-v-11575f45]{width:100%;margin-left:0;margin-right:0;padding-left:0}.showGoBack>.tab-family-container>.tab-buttons-container:not(.floating):first-child .tab-buttons[data-v-11575f45]{padding-left:70px}:not(.showGoBack)>.tab-family-container>.tab-buttons-container:not(.floating):first-child .tab-buttons[data-v-11575f45]{padding-left:0}.minimizable>.tab-buttons-container[data-v-11575f45]:not(.floating):first-child{padding-right:50px}.tab-buttons-container:not(.floating):first-child .tab-buttons[data-v-11575f45]{margin-top:-50px}.tab-buttons-container+*[data-v-11575f45]{margin-top:20px}.upgrade[data-v-7742f590]{min-height:120px;width:120px;font-size:10px}.upgrade>*[data-v-7742f590]{pointer-events:none}.game-over-modal-header[data-v-4a50ce42]{display:flex;margin:-20px -20px 0;background:var(--raised-background);align-items:center}.game-over-modal-header *[data-v-4a50ce42]{margin:0}.game-over-modal-logo[data-v-4a50ce42]{height:4em;width:4em}.game-over-modal-title[data-v-4a50ce42]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.game-over-footer[data-v-4a50ce42]{display:flex;justify-content:flex-end}.game-over-footer button[data-v-4a50ce42]{margin:0 10px}.game-over-modal-discord-link[data-v-4a50ce42]{display:flex;align-items:center}.game-over-modal-discord[data-v-4a50ce42]{margin:0 4px 0 0}.nan-modal-header[data-v-3de07c06]{padding:10px 0;margin-left:10px}.nan-footer[data-v-3de07c06]{display:flex;justify-content:flex-end}.nan-footer button[data-v-3de07c06]{margin:0 10px}.nan-modal-discord-link[data-v-3de07c06]{display:flex;align-items:center}.nan-modal-discord[data-v-3de07c06]{margin:0 4px 0 0}.tpsDisplay[data-v-46a3ed5b]{position:absolute;left:10px;bottom:10px;z-index:100}.low[data-v-46a3ed5b]{color:var(--danger)}.fade-leave-to[data-v-46a3ed5b]{opacity:0}:root{color-scheme:dark}*{transition-duration:.5s;font-family:Roboto Mono,monospace;font-weight:700;margin:auto;text-size-adjust:none}*:focus{outline:none}body{overflow:hidden;transition:none;text-align:center}html,body,#app{min-height:100%;height:100%}h1,h2,h3,b,input{display:inline}button{color:#000}a,.button,.link{display:block;color:var(--link);background:none;border:none;cursor:pointer;text-decoration:none}a:hover,.button:hover,.link:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--link)}.button:disabled{opacity:.5;cursor:not-allowed}.button:disabled:hover{text-shadow:none}ul{list-style-type:none}.Vue-Toastification__toast{margin:unset}.app[data-v-9417972e]{background-color:var(--background);color:var(--foreground);display:flex;flex-flow:column;min-height:100%;height:100%}#modal-root[data-v-9417972e]{position:absolute;min-height:100%;height:100%} diff --git a/assets/index.4d68ca01.css b/assets/index.4d68ca01.css new file mode 100644 index 0000000..0e3ed88 --- /dev/null +++ b/assets/index.4d68ca01.css @@ -0,0 +1 @@ +.table{display:flex;flex-flow:column wrap;justify-content:center;align-items:center;max-width:100%;margin:0 auto}.table+.table{margin-top:10px}.row{display:flex;flex-flow:row wrap;justify-content:center;align-items:stretch;max-width:100%;margin:0 10px}.row>:not(.feature){margin:0;display:flex}.col{display:flex;flex-flow:column wrap;justify-content:center;align-items:center;height:100%;margin:10px 0}.row.mergeAdjacent>.feature:not(.dontMerge),.row.mergeAdjacent>.tooltip-container>.feature:not(.dontMerge){margin-left:0;margin-right:0;border-radius:0}.row.mergeAdjacent>.feature:not(.dontMerge):first-child,.row.mergeAdjacent>.tooltip-container:first-child>.feature:not(.dontMerge){border-radius:var(--border-radius) 0 0 var(--border-radius)}.row.mergeAdjacent>.feature:not(.dontMerge):last-child,.row.mergeAdjacent>.tooltip-container:last-child>.feature:not(.dontMerge){border-radius:0 var(--border-radius) var(--border-radius) 0}.row.mergeAdjacent>.feature:not(.dontMerge):first-child:last-child,.row.mergeAdjacent>.tooltip-container:first-child:last-child>.feature:not(.dontMerge){border-radius:var(--border-radius)}.col.mergeAdjacent .feature:not(.dontMerge){margin-top:0;margin-bottom:0;border-radius:0}.col.mergeAdjacent .feature:not(.dontMerge):first-child{border-radius:var(--border-radius) var(--border-radius) 0 0}.col.mergeAdjacent .feature:not(.dontMerge):last-child{border-radius:0 0 var(--border-radius) var(--border-radius)}.col.mergeAdjacent .feature:not(.dontMerge):first-child:last-child{border-radius:var(--border-radius)}.resize-listener[data-v-6a08ac80]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;z-index:-10;pointer-events:none}.modal-mask{position:fixed;z-index:9998;top:0;left:0;bottom:0;right:0;background-color:#00000080;transition:opacity .3s ease}.modal-wrapper{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.modal-container{width:640px;max-width:95vw;max-height:95vh;background-color:var(--background);padding:20px;border-radius:5px;transition:all .3s ease;text-align:left;border:var(--modal-border);box-sizing:border-box;display:flex;flex-direction:column}.modal-header{width:100%}.modal-body{margin:20px 0;width:100%;overflow-y:auto;overflow-x:hidden}.modal-footer{width:100%}.modal-default-footer{display:flex}.modal-default-flex-grow{flex-grow:1}.modal-enter-from,.modal-leave-active{opacity:0}.modal-enter-from .modal-container,.modal-leave-active .modal-container{-webkit-transform:scale(1.1);transform:scale(1.1)}.layer-container[data-v-34c9d881]{min-width:100%;min-height:100%;margin:0;flex-grow:1;display:flex;isolation:isolate}.layer-tab[data-v-34c9d881]:not(.minimized){padding-top:20px;padding-bottom:20px;min-height:100%;flex-grow:1;text-align:center;position:relative}.inner-tab>.layer-container>.layer-tab[data-v-34c9d881]:not(.minimized){padding-top:50px}.layer-tab.minimized[data-v-34c9d881]{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;padding:55px 0 0;margin:0;cursor:pointer;font-size:40px;color:var(--foreground);border:none;background-color:transparent}.layer-tab.minimized div[data-v-34c9d881]{margin:0;writing-mode:vertical-rl;padding-left:10px;width:50px}.inner-tab>.layer-container>.layer-tab[data-v-34c9d881]:not(.minimized){margin:-50px -10px;padding:50px 10px}.modal-body .layer-tab[data-v-34c9d881]{padding-bottom:0}.modal-body .layer-tab[data-v-34c9d881]:not(.hasSubtabs){padding-top:0}.minimize[data-v-34c9d881]{position:sticky;top:6px;right:9px;z-index:7;line-height:30px;border:none;background:var(--background);box-shadow:var(--background) 0 2px 3px 5px;border-radius:50%;color:var(--foreground);font-size:40px;cursor:pointer;margin-top:-44px;margin-right:-30px}.minimized+.minimize[data-v-34c9d881]{transform:rotate(-90deg);top:10px;right:18px;pointer-events:none}.goBack[data-v-34c9d881]{position:sticky;top:6px;left:20px;line-height:30px;margin-top:-50px;margin-left:-35px;border:none;background:var(--background);box-shadow:var(--background) 0 2px 3px 5px;border-radius:50%;color:var(--foreground);font-size:40px;cursor:pointer;z-index:7}.goBack[data-v-34c9d881]:hover{transform:scale(1.1);text-shadow:0 0 7px var(--foreground)}details[data-v-4b4bda40]{margin:10px 0;padding-left:18px}summary[data-v-4b4bda40]{cursor:pointer;margin-bottom:10px;margin-left:-18px}ul[data-v-4b4bda40]{margin:var(--feature-margin) 0;background:var(--raised-background);border:2px solid rgba(0,0,0,.125);padding:5px 5px 5px 15px;list-style:inside}li[data-v-4b4bda40]{margin:8px 0}li[data-v-4b4bda40]:before{padding:2px 8px;margin-right:8px;border-radius:var(--border-radius)}.feature[data-v-4b4bda40]:before{content:"Feature";background:var(--accent1)}.fix[data-v-4b4bda40]:before{content:"Fix";background:var(--accent2)}.balancing[data-v-4b4bda40]:before{content:"Balancing";background:var(--accent3)}.breaking[data-v-4b4bda40]:before{content:"Breaking";background:var(--danger)}.tooltip-container[data-v-6102fa3a]{position:relative;--xoffset: 0px;--yoffset: 0px;text-shadow:none!important}.tooltip[data-v-6102fa3a],.tooltip[data-v-6102fa3a]:after{pointer-events:none;position:absolute}.tooltip[data-v-6102fa3a]{text-align:center;width:150px;font-size:14px;line-height:1.2;bottom:calc(100% + var(--yoffset));left:calc(50% + var(--xoffset));margin-bottom:5px;transform:translate(-50%);padding:7px;border-radius:3px;background-color:var(--tooltip-background);color:var(--points);z-index:100!important;word-break:break-word}.tooltip[data-v-6102fa3a] hr{margin:var(--feature-margin) 0}.shown[data-v-6102fa3a]{z-index:10}.fade-enter-from[data-v-6102fa3a],.fade-leave-to[data-v-6102fa3a]{opacity:0}.tooltip[data-v-6102fa3a]:after{content:" ";position:absolute;top:100%;bottom:100%;left:calc(50% - var(--xoffset));width:0;margin-left:-5px;border-width:5px;border-style:solid;border-color:var(--tooltip-background) transparent transparent transparent}.tooltip.left[data-v-6102fa3a],.side-nodes .tooltip[data-v-6102fa3a]:not(.right):not(.bottom):not(.top){bottom:calc(50% + var(--yoffset));left:unset;right:calc(100% + var(--xoffset));margin-bottom:unset;margin-right:5px;transform:translateY(50%)}.tooltip.left[data-v-6102fa3a]:after,.side-nodes .tooltip[data-v-6102fa3a]:not(.right):not(.bottom):not(.top):after{top:calc(50% + var(--yoffset));bottom:unset;left:100%;right:100%;margin-left:unset;margin-top:-5px;border-color:transparent transparent transparent var(--tooltip-background)}.tooltip.right[data-v-6102fa3a]{bottom:calc(50% + var(--yoffset));left:calc(100% + var(--xoffset));margin-bottom:unset;margin-left:5px;transform:translateY(50%)}.tooltip.right[data-v-6102fa3a]:after{top:calc(50% + var(--yoffset));left:0;right:100%;margin-left:-10px;margin-top:-5px;border-color:transparent var(--tooltip-background) transparent transparent}.tooltip.bottom[data-v-6102fa3a]{top:calc(100% + var(--yoffset));bottom:unset;left:calc(50% + var(--xoffset));margin-bottom:unset;margin-top:5px;transform:translate(-50%)}.tooltip.bottom[data-v-6102fa3a]:after{top:0;margin-top:-10px;border-color:transparent transparent var(--tooltip-background) transparent}.pinned[data-v-6102fa3a]{position:absolute;right:-5px;top:-5px;transform:rotate(45deg)}.info-modal-header[data-v-7dec2dec]{display:flex;margin:-20px -20px 0;background:var(--raised-background);align-items:center}.info-modal-header *[data-v-7dec2dec]{margin:0}.info-modal-logo[data-v-7dec2dec]{height:4em;width:4em}.info-modal-title[data-v-7dec2dec]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.info-modal-discord-link[data-v-7dec2dec]{display:flex;align-items:center}.info-modal-discord[data-v-7dec2dec]{margin:0 4px 0 0}.field{display:flex;position:relative;min-height:2em;margin:10px 0;user-select:none;justify-content:space-between;align-items:center}.field>*{margin:0}.vue-select{width:50%;border-radius:var(--border-radius)}.field-buttons .vue-select{width:unset}.vue-select,.vue-dropdown{border-color:var(--outline)}.vue-dropdown{background:var(--raised-background)}.vue-dropdown-item{color:var(--foreground)}.vue-dropdown-item,.vue-dropdown-item *{transition-duration:0s}.vue-dropdown-item.highlighted{background-color:var(--highlighted)}.vue-dropdown-item.selected,.vue-dropdown-item.highlighted.selected{background-color:var(--bought)}.vue-input input::placeholder{color:var(--link)}.field[data-v-2b109500]{cursor:pointer}input[data-v-2b109500]{appearance:none;pointer-events:none}span[data-v-2b109500]{width:100%;position:relative}input+span[data-v-2b109500]:before{content:"";float:right;margin:5px 0 5px 10px;border-radius:7px;width:36px;height:14px;background-color:var(--outline);opacity:.38;vertical-align:top;transition:background-color .2s,opacity .2s}input+span[data-v-2b109500]:after{content:"";position:absolute;top:2px;right:16px;border-radius:50%;width:20px;height:20px;background-color:var(--locked);box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;transition:background-color .2s,transform .2s}input:checked+span[data-v-2b109500]:before{background-color:var(--link);opacity:.6}input:checked+span[data-v-2b109500]:after{background-color:var(--link);transform:translate(16px)}input:active+span[data-v-2b109500]:before{background-color:var(--link);opacity:.6}input:checked:active+span[data-v-2b109500]:before{background-color:var(--outline);opacity:.38}input:disabled+span[data-v-2b109500]{color:#000;opacity:.38;cursor:default}input:disabled+span[data-v-2b109500]:before{background-color:var(--outline);opacity:.38}input:checked:disabled+span[data-v-2b109500]:before{background-color:var(--link);opacity:.6}.header[data-v-bc13791c]{margin-bottom:-10px}*[data-v-bc13791c] .tooltip-container{display:inline;margin-left:5px}form[data-v-d74adb0a]{margin:0;width:100%}.field>*[data-v-d74adb0a]{margin:0}input[data-v-d74adb0a]{width:50%;outline:none;border:solid 1px var(--outline);background-color:unset;border-radius:var(--border-radius)}.fullWidth[data-v-d74adb0a]{width:100%}.container[data-v-2f8ef34c]{display:flex;align-items:center;background:var(--raised-background);box-shadow:var(--raised-background) 0 2px 3px 5px}.container.confirming button[data-v-2f8ef34c]{font-size:1em}.container>*[data-v-2f8ef34c]{margin:0 4px}.danger,.button.danger{position:relative;border:solid 2px var(--danger);border-right-width:16px}.danger:after{position:absolute;content:"!";color:#fff;right:-13px}.feedback[data-v-01a1b95c]{position:relative}.feedback[data-v-01a1b95c]:after{position:absolute;left:calc(100% + 5px);top:50%;transform:translateY(-50%);content:"\2714";opacity:0;pointer-events:none;box-shadow:inset 0 0 0 35px #6f94b600;text-shadow:none}.feedback.left[data-v-01a1b95c]:after{left:unset;right:calc(100% + 5px)}.feedback.activated[data-v-01a1b95c]:after{animation:feedback-01a1b95c .5s ease-out forwards}@keyframes feedback-01a1b95c{0%{opacity:1;transform:scale3d(.4,.4,1),translateY(-50%)}80%{opacity:.1}to{opacity:0;transform:scale3d(1.2,1.2,1),translateY(-50%)}}.save[data-v-0136bef4]{position:relative;border:solid 4px var(--outline);padding:4px;background:var(--raised-background);margin:var(--feature-margin);display:flex;align-items:center;min-height:30px}.save.active[data-v-0136bef4]{border-color:var(--bought)}.open[data-v-0136bef4]{display:inline;margin:0;padding-left:0}.handle[data-v-0136bef4]{flex-grow:0;margin-right:8px;margin-left:0;cursor:pointer}.details[data-v-0136bef4]{margin:0 80px 0 0;flex-grow:1}.error[data-v-0136bef4]{font-size:.8em;color:var(--danger)}.save-version[data-v-0136bef4]{margin-left:4px;font-size:.7em;opacity:.7}.actions[data-v-0136bef4]{position:absolute;top:0;bottom:0;right:4px;display:flex;padding:4px;z-index:1}.editname[data-v-0136bef4]{margin:0}.save button{transition-duration:0s}.save .actions button{display:flex;font-size:1.2em}.save .actions button .material-icons{font-size:unset}.save .button.danger{display:flex;align-items:center;padding:4px}.save .field,.field form[data-v-3b9991aa],.field .field-title[data-v-3b9991aa],.field .field-buttons[data-v-3b9991aa]{margin:0}.field-buttons[data-v-3b9991aa]{display:flex}.field-buttons .field[data-v-3b9991aa]{margin:0 0 0 8px}.modal-footer[data-v-3b9991aa]{margin-top:-20px}.footer[data-v-3b9991aa]{display:flex;margin-top:20px}.importingFailed input{color:red}.field-buttons .v-select{width:220px}.presets .vue-select[aria-expanded=true] vue-dropdown{visibility:hidden}.nav[data-v-4a3f8425]{background-color:var(--raised-background);display:flex;left:0;right:0;top:0;height:46px;width:100%;border-bottom:4px solid var(--outline)}.nav>*[data-v-4a3f8425]{height:46px;width:46px;display:flex;cursor:pointer;flex-shrink:0}.nav>.banner[data-v-4a3f8425]{height:100%;width:unset}.overlay-nav[data-v-4a3f8425]{position:fixed;top:10px;left:10px;display:flex;flex-direction:column;z-index:2}.overlay-nav>*[data-v-4a3f8425]{height:50px;width:50px;display:flex;cursor:pointer;margin:0;align-items:center;justify-content:center}.title[data-v-4a3f8425]{font-size:36px;text-align:left;margin-left:12px;cursor:unset}.nav>.title[data-v-4a3f8425]{width:unset;flex-shrink:1;overflow:hidden;white-space:nowrap}.nav .saves[data-v-4a3f8425],.nav .info[data-v-4a3f8425]{display:flex}.tooltip-container[data-v-4a3f8425]{width:100%;height:100%;display:flex}.overlay-nav .discord[data-v-4a3f8425]{position:relative}.discord img[data-v-4a3f8425]{width:100%;height:100%}.discord-links[data-v-4a3f8425]{position:fixed;top:45px;padding:20px;right:-280px;width:200px;transition:right .25s ease;background:var(--raised-background);z-index:10}.overlay-nav .discord-links[data-v-4a3f8425]{position:absolute;left:-280px;right:unset;transition:left .25s ease}.overlay-nav .discord:hover .discord-links[data-v-4a3f8425]{left:-10px}.discord-links li[data-v-4a3f8425]{margin-bottom:4px}.discord-links li[data-v-4a3f8425]:first-child{font-size:1.2em}*:not(.overlay-nav) .discord:hover .discord-links[data-v-4a3f8425]{right:0}.material-icons[data-v-4a3f8425]{font-size:36px}.material-icons[data-v-4a3f8425]:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--foreground)}.nav .version-container[data-v-4a3f8425]{display:flex;height:25px;margin-bottom:0;margin-left:10px}.overlay-nav .version-container[data-v-4a3f8425]{width:unset;height:25px}.version[data-v-4a3f8425]{color:var(--points)}.version:hover span[data-v-4a3f8425]{text-shadow:5px 0 10px var(--points),-3px 0 12px var(--points)}.nav>div>a[data-v-4a3f8425],.overlay-nav>div>a[data-v-4a3f8425]{color:var(--foreground);text-shadow:none}.tabs-container[data-v-4cb9ce0f]{width:100vw;flex-grow:1;overflow-x:auto;overflow-y:hidden;display:flex}.tabs-container[data-v-4cb9ce0f]:not(.useHeader){width:calc(100vw - 50px);margin-left:50px}.tab[data-v-4cb9ce0f]{position:relative;height:100%;flex-grow:1;transition-duration:0s;overflow-y:auto;overflow-x:hidden}.inner-tab[data-v-4cb9ce0f]{padding:50px 10px;min-height:calc(100% - 100px);display:flex;flex-direction:column;margin:0;flex-grow:1}.tab+.tab>.inner-tab[data-v-4cb9ce0f]{border-left:solid 4px var(--outline)}.tab hr{height:4px;border:none;background:var(--outline);margin:var(--feature-margin) 0}.tab .modal-body hr{margin:7px 0}svg[data-v-89b4b00a]{background:#2e3440}svg .svg-elem-1[data-v-89b4b00a]{stroke-dashoffset:2648.758056640625px;stroke-dasharray:1324.3790283203125px;transition:stroke-dashoffset 1s cubic-bezier(.47,0,.745,.715) 0s}svg.v-enter-from .svg-elem-1[data-v-89b4b00a],svg.v-leave-to .svg-elem-1[data-v-89b4b00a]{stroke-dashoffset:1324.3790283203125px}svg .svg-elem-2[data-v-89b4b00a]{stroke-dashoffset:680.4000854492188px;stroke-dasharray:340.2000427246094px;transition:stroke-dashoffset 1s ease-out .4s}svg.v-enter-from .svg-elem-2[data-v-89b4b00a],svg.v-leave-to .svg-elem-2[data-v-89b4b00a]{stroke-dashoffset:340.2000427246094px}svg .svg-elem-3[data-v-89b4b00a]{stroke-dashoffset:76.21031951904297px;stroke-dasharray:38.105159759521484px;transition:stroke-dashoffset 1s ease-out .8s}svg.v-enter-from .svg-elem-3[data-v-89b4b00a],svg.v-leave-to .svg-elem-3[data-v-89b4b00a]{stroke-dashoffset:38.105159759521484px}svg .svg-elem-4[data-v-89b4b00a]{stroke-dashoffset:175.18072509765625px;stroke-dasharray:87.59036254882812px;transition:stroke-dashoffset 1s cubic-bezier(.47,0,.745,.715) .36s}svg.v-enter-from .svg-elem-4[data-v-89b4b00a],svg.v-leave-to .svg-elem-4[data-v-89b4b00a]{stroke-dashoffset:87.59036254882812px}svg .svg-elem-5[data-v-89b4b00a]{stroke-dashoffset:671.9447021484375px;stroke-dasharray:335.97235107421875px;transition:stroke-dashoffset 1s ease-out .8s}svg.v-enter-from .svg-elem-5[data-v-89b4b00a],svg.v-leave-to .svg-elem-5[data-v-89b4b00a]{stroke-dashoffset:335.97235107421875px}svg .svg-elem-6[data-v-89b4b00a]{stroke-dashoffset:173.96141052246094px;stroke-dasharray:86.98070526123047px;transition:stroke-dashoffset 1s ease-out 1s}svg.v-enter-from .svg-elem-6[data-v-89b4b00a],svg.v-leave-to .svg-elem-6[data-v-89b4b00a]{stroke-dashoffset:86.98070526123047px}svg .svg-elem-7[data-v-89b4b00a]{stroke-dashoffset:172.99151611328125px;stroke-dasharray:86.49575805664062px;transition:stroke-dashoffset 1s ease-out .85s}svg.v-enter-from .svg-elem-7[data-v-89b4b00a],svg.v-leave-to .svg-elem-7[data-v-89b4b00a]{stroke-dashoffset:86.49575805664062px}.resize-listener[data-v-c139d80e]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;z-index:-10;pointer-events:none}svg[data-v-c139d80e]{position:absolute;top:5px;left:5px;right:5px;bottom:5px;z-index:-10;pointer-events:none}.left-side-nodes[data-v-39ca96d0]{position:absolute;left:15px;top:65px}.side-nodes[data-v-39ca96d0]{position:absolute;right:15px;top:65px}.left-side-nodes[data-v-39ca96d0] .treeNode,.side-nodes[data-v-39ca96d0] .treeNode{margin:20px auto}.small[data-v-39ca96d0] .treeNode{height:60px;width:60px}.small[data-v-39ca96d0] .treeNode>*:first-child{font-size:30px}.mark[data-v-2207999f]{position:absolute;left:-25px;top:-10px;width:30px;height:30px;z-index:1;pointer-events:none;margin-left:.9em;margin-right:.9em;margin-bottom:1.2em;border-right:.3em solid transparent;border-bottom:.7em solid transparent;border-left:.3em solid transparent;font-size:10px}.star[data-v-2207999f]{left:-10px;width:0;height:0;margin-left:.9em;margin-right:.9em;margin-bottom:1.2em;border-right:.3em solid transparent;border-bottom:.7em solid #ffcc00;border-left:.3em solid transparent;font-size:10px;pointer-events:none}.star[data-v-2207999f]:before,.star[data-v-2207999f]:after{content:"";width:0;height:0;position:absolute;top:.6em;left:-1em;border-right:1em solid transparent;border-bottom:.7em solid #ffcc00;border-left:1em solid transparent;transform:rotate(-35deg)}.star[data-v-2207999f]:after{transform:rotate(35deg)}.node[data-v-2cb1bb79]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.treeNode[data-v-1c0c107d]{height:100px;width:100px;border-radius:50%;padding:0;margin:0 10px}.treeNode>*[data-v-1c0c107d]:first-child{width:100%;height:100%;border:2px solid rgba(0,0,0,.125);border-radius:inherit;font-size:40px;color:#00000080;text-shadow:2px 2px 4px rgba(0,0,0,.25);box-shadow:-4px -4px 4px #00000040 inset,0 0 20px var(--background);text-transform:capitalize;display:flex}.treeNode>*:first-child>*[data-v-1c0c107d]{pointer-events:none}.feature:not(li),.feature:not(li) button{position:relative;padding:5px;border-radius:var(--border-radius);border:2px solid rgba(0,0,0,.125);margin:var(--feature-margin);box-sizing:border-box;color:var(--feature-foreground);z-index:0;transition:all .5s,z-index 0s .5s}.can,.can button{background-color:var(--layer-color);cursor:pointer}.can:hover,.can:hover button{transform:scale(1.15);box-shadow:0 0 20px var(--points);z-index:1;transition:all .5s,z-index 0s}.locked,.locked button{background-color:var(--locked);cursor:not-allowed}.bought,.bought button{background-color:var(--bought);cursor:default}.achievement[data-v-58163dab]{height:90px;width:90px;font-size:10px;color:#fff;text-shadow:0 0 2px #000000}.tile[data-v-26ac0e82]{min-height:80px;width:80px;font-size:10px;background-color:var(--layer-color)}.tile>*[data-v-26ac0e82]{pointer-events:none}.clickable[data-v-5e7c90cf]{min-height:120px;width:120px;font-size:10px}.clickable.small[data-v-5e7c90cf]{min-height:unset}.clickable>*[data-v-5e7c90cf]{pointer-events:none}.modifier-toggle{padding-right:10px;transform:translateY(-1px);display:inline-block}.modifier-toggle.collapsed{transform:translate(-5px,-5px) rotate(-90deg)}.infobox[data-v-338c9154]{position:relative;width:600px;max-width:95%;margin-top:0;text-align:left;border-style:solid;border-width:0px;box-sizing:border-box;border-radius:5px}.infobox.stacked[data-v-338c9154]{border-width:4px}.infobox:not(.stacked)+.infobox[data-v-338c9154]:not(.stacked){margin-top:20px}.infobox[data-v-338c9154]+:not(.infobox){margin-top:10px}.title[data-v-338c9154]{font-size:24px;color:#000;cursor:pointer;border:none;width:auto;text-align:left;padding:4px 4px 4px 30px}.infobox:not(.stacked) .title[data-v-338c9154]{border-top-left-radius:5px;border-top-right-radius:5px}.infobox.stacked+.infobox.stacked[data-v-338c9154]{border-top-left-radius:0;border-top-right-radius:0;margin-top:-5px}.stacked .title[data-v-338c9154]{width:100%}.collapsed:not(.stacked) .title[data-v-338c9154]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background-color:inherit}.toggle[data-v-338c9154]{position:absolute;left:10px}.collapsed .toggle[data-v-338c9154]{transform:rotate(-90deg)}.body[data-v-338c9154]{transition-duration:.5s;border-radius:0 5px 5px}.infobox:not(.stacked) .body[data-v-338c9154]{padding:4px}.body>*[data-v-338c9154]{padding:8px;width:100%;display:block;box-sizing:border-box;border-radius:0 5px 5px;background-color:var(--background)}.not-fullscreen[data-v-8adf21fa],.resize-listener[data-v-8adf21fa]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;pointer-events:none}.sticky[data-v-21495571]{position:sticky;background:var(--background);width:calc(100% - 2px);z-index:3}.main-display-container{vertical-align:middle;margin-bottom:20px;display:flex}.modifier-container{display:flex}.modifier-container:nth-child(2n){background:var(--raised-background)}.modifier-amount{flex-basis:100px;flex-shrink:0}.modifier-description{flex-grow:1}.fullWidth[data-v-1b053b9f]{width:100%}.vr[data-v-5e0a978a]{width:4px;background:var(--outline);height:100%;margin:auto var(--feature-margin)}.bar[data-v-02d0d7b2]{position:relative;display:table}.overlayTextContainer[data-v-02d0d7b2]{position:absolute;border-radius:10px;vertical-align:middle;display:flex;justify-content:center;z-index:3}.overlayText[data-v-02d0d7b2]{z-index:6}.border[data-v-02d0d7b2]{border:2px solid;border-radius:10px;border-color:var(--foreground);overflow:hidden;mask-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);margin:0}.fill[data-v-02d0d7b2]{position:absolute;background-color:var(--foreground);overflow:hidden;margin-left:-.5px;transition-duration:.2s;z-index:2}.challenge[data-v-4d2947df]{background-color:var(--locked);width:300px;min-height:300px;color:#000;font-size:15px;display:flex;flex-flow:column;align-items:center}.challenge.done[data-v-4d2947df]{background-color:var(--bought)}.challenge button[data-v-4d2947df]{min-height:50px;width:120px;border-radius:var(--border-radius);box-shadow:none!important;background:transparent}.challenge.canStart button[data-v-4d2947df]{cursor:pointer;background-color:var(--layer-color)}.milestone[data-v-f4e8794e]{width:calc(100% - 10px);min-width:120px;padding-left:5px;padding-right:5px;background-color:var(--locked);border-width:4px;border-radius:5px;color:#00000080}.milestone.done[data-v-f4e8794e]{background-color:var(--bought);cursor:default}.milestone[data-v-f4e8794e] .equal-spaced{display:flex;justify-content:center}.milestone[data-v-f4e8794e] .equal-spaced>*{margin:auto}.tabButton[data-v-610a2549]{background-color:transparent;color:var(--foreground);font-size:20px;cursor:pointer;padding:5px 20px;margin:5px;border-radius:5px;border:2px solid;flex-shrink:0;border-color:var(--layer-color)}.tabButton[data-v-610a2549]:hover{transform:scale(1.1);text-shadow:0 0 7px var(--foreground)}:not(.floating)>.tabButton[data-v-610a2549]{height:50px;margin:0;border-left:none;border-right:none;border-top:none;border-bottom-width:4px;border-radius:0;transform:unset}:not(.floating) .tabButton[data-v-610a2549]:not(.active){border-bottom-color:transparent}.tabButton>*[data-v-610a2549]{pointer-events:none}.tab-family-container[data-v-11575f45]{margin:calc(50px + var(--feature-margin)) 20px var(--feature-margin) 20px;position:relative;border:solid 4px;border-color:var(--outline)}.layer-tab>.tab-family-container[data-v-11575f45]:first-child{margin:-4px -11px var(--feature-margin) -11px}.layer-tab>.tab-family-container[data-v-11575f45]:first-child:nth-last-child(3){border-bottom-style:none;border-left-style:none;border-right-style:none;height:calc(100% + 50px)}.modal-body>.tab-family-container[data-v-11575f45]:first-child{margin:calc(10px + var(--feature-margin)) 10px 0 10px;border:none}.tab-family-container[data-v-11575f45]>:nth-child(2){margin-top:20px}.modal-body>.tab-family-container[data-v-11575f45]>:nth-child(2){margin-top:50px}.tab-family-container[data-v-f18896fc][data-v-11575f45]>:last-child{margin-bottom:20px}.tab-buttons-container[data-v-11575f45]{z-index:4}.tab-buttons-container[data-v-11575f45]:not(.floating){border-bottom:solid 4px;border-color:inherit}:not(.layer-tab):not(.modal-body)>.tab-family-container>.tab-buttons-container[data-v-11575f45]:not(.floating){width:calc(100% + 6px);margin-left:-3px}.tab-buttons-container:not(.floating) .tab-buttons[data-v-11575f45]{text-align:left;margin-bottom:-4px}.tab-buttons-container.floating .tab-buttons[data-v-11575f45]{justify-content:center;margin-top:-25px}.tab-buttons[data-v-11575f45]{margin-bottom:24px;display:flex;flex-flow:wrap;z-index:4}.layer-tab>.tab-family-container:first-child:nth-last-child(3)>.tab-buttons-container>.tab-buttons[data-v-11575f45]{padding-right:60px}.tab-buttons[data-v-11575f45]:not(.floating){text-align:left;border-bottom:inherit;border-width:4px;box-sizing:border-box;height:50px}.modal-body .tab-buttons[data-v-11575f45]{width:100%;margin-left:0;margin-right:0;padding-left:0}.showGoBack>.tab-family-container>.tab-buttons-container:not(.floating):first-child .tab-buttons[data-v-11575f45]{padding-left:70px}:not(.showGoBack)>.tab-family-container>.tab-buttons-container:not(.floating):first-child .tab-buttons[data-v-11575f45]{padding-left:0}.minimizable>.tab-buttons-container[data-v-11575f45]:not(.floating):first-child{padding-right:50px}.tab-buttons-container:not(.floating):first-child .tab-buttons[data-v-11575f45]{margin-top:-50px}.tab-buttons-container+*[data-v-11575f45]{margin-top:20px}.upgrade[data-v-7742f590]{min-height:120px;width:120px;font-size:10px}.upgrade>*[data-v-7742f590]{pointer-events:none}.game-over-modal-header[data-v-4a50ce42]{display:flex;margin:-20px -20px 0;background:var(--raised-background);align-items:center}.game-over-modal-header *[data-v-4a50ce42]{margin:0}.game-over-modal-logo[data-v-4a50ce42]{height:4em;width:4em}.game-over-modal-title[data-v-4a50ce42]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.game-over-footer[data-v-4a50ce42]{display:flex;justify-content:flex-end}.game-over-footer button[data-v-4a50ce42]{margin:0 10px}.game-over-modal-discord-link[data-v-4a50ce42]{display:flex;align-items:center}.game-over-modal-discord[data-v-4a50ce42]{margin:0 4px 0 0}.nan-modal-header[data-v-3de07c06]{padding:10px 0;margin-left:10px}.nan-footer[data-v-3de07c06]{display:flex;justify-content:flex-end}.nan-footer button[data-v-3de07c06]{margin:0 10px}.nan-modal-discord-link[data-v-3de07c06]{display:flex;align-items:center}.nan-modal-discord[data-v-3de07c06]{margin:0 4px 0 0}.tpsDisplay[data-v-46a3ed5b]{position:absolute;left:10px;bottom:10px;z-index:100}.low[data-v-46a3ed5b]{color:var(--danger)}.fade-leave-to[data-v-46a3ed5b]{opacity:0}:root{color-scheme:dark}*{transition-duration:.5s;font-family:Roboto Mono,monospace;font-weight:700;margin:auto;text-size-adjust:none}*:focus{outline:none}body{overflow:hidden;transition:none;text-align:center}html,body,#app{min-height:100%;height:100%}h1,h2,h3,b,input{display:inline}button{color:#000}a,.button,.link{display:block;color:var(--link);background:none;border:none;cursor:pointer;text-decoration:none}a:hover,.button:hover,.link:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--link)}.button:disabled{opacity:.5;cursor:not-allowed}.button:disabled:hover{text-shadow:none}ul{list-style-type:none}.Vue-Toastification__toast{margin:unset}.app[data-v-9417972e]{background-color:var(--background);color:var(--foreground);display:flex;flex-flow:column;min-height:100%;height:100%}#modal-root[data-v-9417972e]{position:absolute;min-height:100%;height:100%} diff --git a/assets/index.c851429a.js b/assets/index.c851429a.js new file mode 100644 index 0000000..6fb6d02 --- /dev/null +++ b/assets/index.c851429a.js @@ -0,0 +1,17 @@ +import{Y as N,h as fe,s as Yt,l as Mt,B as l,a_ as Ie,a8 as E,o as g,_ as x,$ as p,r as De,F as Q,q as O,aA as Un,u as xe,a$ as Ne,a6 as d,am as cn,M as K,aw as Tt,ap as Ve,aD as Ft,z as ne,c as A,w as V,b4 as Kt,bn as Ri,ao as Be,bp as _t,T as Zt,P as Bi,a5 as C,d as qi,bq as An,aI as de,Z as P,I as G,aK as ee,H as W,aE as qe,aC as je,y as Ze,bi as ji,bm as Hn,aH as kt,aj as Lt,G as Li,as as zi,x as En,b9 as Gi}from"./@vue.861e8bf0.js";import{i as Ui}from"./is-plain-object.906d88e8.js";import{c as Wn}from"./nanoevents.1080beb7.js";import{L as Ye}from"./lz-string.f2f3b7cf.js";import{_ as q,C as Hi}from"./@ivanv.bf09ddfc.js";import{Y as Wi}from"./vue-next-select.aa58f779.js";import{D as Yi}from"./vuedraggable.502d3696.js";import{p as Ki}from"./vue-textarea-autosize.35804eaf.js";import{s as Zi,u as fn}from"./vue-toastification.17ba848b.js";import{A as Ji,u as Xi,E as Vn}from"./@pixi.c5050cb0.js";import{v as Qi,n as er}from"./workbox-window.60401ce8.js";import"./earcut.17d42416.js";import"./vue.67040123.js";import"./sortablejs.bd686609.js";import"./ismobilejs.5c6954b9.js";import"./eventemitter3.dc5195d7.js";import"./url.b1bd21f4.js";import"./querystring.776b9ab3.js";const tr=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerpolicy&&(a.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?a.credentials="include":r.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}};tr();const nr="modulepreload",Fn={},ir="./",zt=function(t,n){return!n||n.length===0?t():Promise.all(n.map(i=>{if(i=`${ir}${i}`,i in Fn)return;Fn[i]=!0;const r=i.endsWith(".css"),a=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${a}`))return;const o=document.createElement("link");if(o.rel=r?"stylesheet":nr,r||(o.as="script",o.crossOrigin=""),o.href=i,document.head.appendChild(o),r)return new Promise((s,u)=>{o.addEventListener("load",s),o.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},rr="Profectus Demo",ar="A demo project made in Profectus",or="profectus-demo",sr="",lr="",ur="",dr="0.0",cr="Initial Commit",fr=!0,pr=!1,mr=2,gr=!0,vr=null,hr="Logo.png",br=["main","c"],yr=3600,_r=1,kr=!0,wr="base64";var J={title:rr,description:ar,id:or,author:sr,discordName:lr,discordLink:ur,versionNumber:dr,versionTitle:cr,allowGoBack:fr,defaultShowSmall:pr,defaultDecimalsShown:mr,useHeader:gr,banner:vr,logo:hr,initialTabs:br,maxTickLength:yr,offlineLimit:_r,enablePausing:kr,exportEncoding:wr};const tn=17,xr=9e15,Nr=Math.log10(9e15),Sr=1/9e15,Cr=308,$r=-324,Dn=5,Mr=function(){const e=[];for(let n=$r+1;n<=Cr;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),Qe=[2,Math.E,3,4,5,6,7,8,9,10],Tr=[[1,1.0891168053867777,1.1789745164521264,1.2701428397304229,1.3632066654400328,1.4587804913784246,1.557523817412741,1.660158301473385,1.767487542936873,1.8804205225512542,2],[1,1.1121114330934,1.23103892493161,1.35838369631113,1.49605193039935,1.64635423375119,1.81213853570186,1.99697132461829,2.20538955455724,2.44325744833852,Math.E],[1,1.1187738849693603,1.2464963939368214,1.38527004705667,1.5376664685821402,1.7068895236551784,1.897001227148399,2.1132403089001035,2.362480153784171,2.6539010333870774,3],[1,1.1367350847096405,1.2889510672956703,1.4606478703324786,1.6570295196661111,1.8850062585672889,2.1539465047453485,2.476829779693097,2.872061932789197,3.3664204535587183,4],[1,1.1494592900767588,1.319708228183931,1.5166291280087583,1.748171114438024,2.0253263297298045,2.3636668498288547,2.7858359149579424,3.3257226212448145,4.035730287722532,5],[1,1.159225940787673,1.343712473580932,1.5611293155111927,1.8221199554561318,2.14183924486326,2.542468319282638,3.0574682501653316,3.7390572020926873,4.6719550537360774,6],[1,1.1670905356972596,1.3632807444991446,1.5979222279405536,1.8842640123816674,2.2416069644878687,2.69893426559423,3.3012632110403577,4.121250340630164,5.281493033448316,7],[1,1.1736630594087796,1.379783782386201,1.6292821855668218,1.9378971836180754,2.3289975651071977,2.8384347394720835,3.5232708454565906,4.478242031114584,5.868592169644505,8],[1,1.1793017514670474,1.394054150657457,1.65664127441059,1.985170999970283,2.4069682290577457,2.9647310119960752,3.7278665320924946,4.814462547283592,6.436522247411611,9],[1,1.18422737399915,1.4066113788546144,1.680911177655277,2.027492094355525,2.4775152854601967,3.080455730250329,3.918234505962507,5.1332705696484595,6.9878696918072905,10]],Ir=[[-1,-.9194161097107025,-.8335625019330468,-.7425599821143978,-.6466611521029437,-.5462617907227869,-.4419033816638769,-.3342645487554494,-.224140440909962,-.11241087890006762,0],[-1,-.90603157029014,-.80786507256596,-.7064666939634,-.60294836853664,-.49849837513117,-.39430303318768,-.29147201034755,-.19097820800866,-.09361896280296,0],[-1,-.9021579584316141,-.8005762598234203,-.6964780623319391,-.5911906810998454,-.486050182576545,-.3823089430815083,-.28106046722897615,-.1831906535795894,-.08935809204418144,0],[-1,-.8917227442365535,-.781258746326964,-.6705130326902455,-.5612813129406509,-.4551067709033134,-.35319256652135966,-.2563741554088552,-.1651412821106526,-.0796919581982668,0],[-1,-.8843387974366064,-.7678744063886243,-.6529563724510552,-.5415870994657841,-.4352842206588936,-.33504449124791424,-.24138853420685147,-.15445285440944467,-.07409659641336663,0],[-1,-.8786709358426346,-.7577735191184886,-.6399546189952064,-.527284921869926,-.4211627631006314,-.3223479611761232,-.23107655627789858,-.1472057700818259,-.07035171210706326,0],[-1,-.8740862815291583,-.7497032990976209,-.6297119746181752,-.5161838335958787,-.41036238255751956,-.31277212146489963,-.2233976621705518,-.1418697367979619,-.06762117662323441,0],[-1,-.8702632331800649,-.7430366914122081,-.6213373075161548,-.5072025698095242,-.40171437727184167,-.30517930701410456,-.21736343968190863,-.137710238299109,-.06550774483471955,0],[-1,-.8670016295947213,-.7373984232432306,-.6143173985094293,-.49973884395492807,-.394584953527678,-.2989649949848695,-.21245647317021688,-.13434688362382652,-.0638072667348083,0],[-1,-.8641642839543857,-.732534623168535,-.6083127477059322,-.4934049257184696,-.3885773075899922,-.29376029055315767,-.2083678561173622,-.13155653399373268,-.062401588652553186,0]],m=function(t){return f.fromValue_noAlloc(t)},F=function(e,t,n){return f.fromComponents(e,t,n)},L=function(t,n,i){return f.fromComponents_noNormalize(t,n,i)},We=function(t,n){const i=n+1,r=Math.ceil(Math.log10(Math.abs(t))),a=Math.round(t*Math.pow(10,i-r))*Math.pow(10,r-i);return parseFloat(a.toFixed(Math.max(i-r,0)))},nn=function(e){return Math.sign(e)*Math.log10(Math.abs(e))},Pr=function(e){if(!isFinite(e))return e;if(e<-50)return e===Math.trunc(e)?Number.NEGATIVE_INFINITY:0;let t=1;for(;e<10;)t=t*e,++e;e-=1;let n=.9189385332046727;n=n+(e+.5)*Math.log(e),n=n-e;const i=e*e;let r=e;return n=n+1/(12*r),r=r*i,n=n+1/(360*r),r=r*i,n=n+1/(1260*r),r=r*i,n=n+1/(1680*r),r=r*i,n=n+1/(1188*r),r=r*i,n=n+691/(360360*r),r=r*i,n=n+7/(1092*r),r=r*i,n=n+3617/(122400*r),Math.exp(n)/t},Yn=.5671432904097838,Rn=function(e,t=1e-10){let n,i;if(!Number.isFinite(e)||e===0)return e;if(e===1)return Yn;e<10?n=0:n=Math.log(e)-Math.log(Math.log(e));for(let r=0;r<100;++r){if(i=(e*Math.exp(-n)+n*n)/(n+1),Math.abs(i-n).5?1:-1;if(Math.random()*20<1)return L(t,0,1);const n=Math.floor(Math.random()*(e+1));let i=n===0?Math.random()*616-308:Math.random()*16;Math.random()>.9&&(i=Math.trunc(i));let r=Math.pow(10,i);return Math.random()>.9&&(r=Math.trunc(r)),F(t,n,r)}static affordGeometricSeries_core(e,t,n,i){const r=t.mul(n.pow(i));return _.floor(e.div(r).mul(n.sub(1)).add(1).log10().div(n.log10()))}static sumGeometricSeries_core(e,t,n,i){return t.mul(n.pow(i)).mul(_.sub(1,n.pow(e))).div(_.sub(1,n))}static affordArithmeticSeries_core(e,t,n,i){const a=t.add(i.mul(n)).sub(n.div(2)),o=a.pow(2);return a.neg().add(o.add(n.mul(e).mul(2)).sqrt()).div(n).floor()}static sumArithmeticSeries_core(e,t,n,i){const r=t.add(i.mul(n));return e.div(2).mul(r.mul(2).plus(e.sub(1).mul(n)))}static efficiencyOfPurchase_core(e,t,n){return e.div(t).add(e.div(n))}normalize(){if(this.sign===0||this.mag===0&&this.layer===0)return this.sign=0,this.mag=0,this.layer=0,this;if(this.layer===0&&this.mag<0&&(this.mag=-this.mag,this.sign=-this.sign),this.layer===0&&this.mag=xr)return this.layer+=1,this.mag=t*Math.log10(e),this;for(;e0;)this.layer-=1,this.layer===0?this.mag=Math.pow(10,this.mag):(this.mag=t*Math.pow(10,e),e=Math.abs(this.mag),t=Math.sign(this.mag));return this.layer===0&&(this.mag<0?(this.mag=-this.mag,this.sign=-this.sign):this.mag===0&&(this.sign=0)),this}fromComponents(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this.normalize(),this}fromComponents_noNormalize(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this}fromMantissaExponent(e,t){return this.layer=1,this.sign=Math.sign(e),e=Math.abs(e),this.mag=t+Math.log10(e),this.normalize(),this}fromMantissaExponent_noNormalize(e,t){return this.fromMantissaExponent(e,t),this}fromDecimal(e){return this.sign=e.sign,this.layer=e.layer,this.mag=e.mag,this}fromNumber(e){return this.mag=Math.abs(e),this.sign=Math.sign(e),this.layer=0,this.normalize(),this}fromString(e){e=e.replace(",","");const t=e.split("^^^");if(t.length===2){const b=parseFloat(t[0]),w=parseFloat(t[1]),S=t[1].split(";");let $=1;if(S.length===2&&($=parseFloat(S[1]),isFinite($)||($=1)),isFinite(b)&&isFinite(w)){const R=_.pentate(b,w,$);return this.sign=R.sign,this.layer=R.layer,this.mag=R.mag,this}}const n=e.split("^^");if(n.length===2){const b=parseFloat(n[0]),w=parseFloat(n[1]),S=n[1].split(";");let $=1;if(S.length===2&&($=parseFloat(S[1]),isFinite($)||($=1)),isFinite(b)&&isFinite(w)){const R=_.tetrate(b,w,$);return this.sign=R.sign,this.layer=R.layer,this.mag=R.mag,this}}const i=e.split("^");if(i.length===2){const b=parseFloat(i[0]),w=parseFloat(i[1]);if(isFinite(b)&&isFinite(w)){const S=_.pow(b,w);return this.sign=S.sign,this.layer=S.layer,this.mag=S.mag,this}}e=e.trim().toLowerCase();let r,a,o=e.split("pt");if(o.length===2){r=10,a=parseFloat(o[0]),o[1]=o[1].replace("(",""),o[1]=o[1].replace(")","");let b=parseFloat(o[1]);if(isFinite(b)||(b=1),isFinite(r)&&isFinite(a)){const w=_.tetrate(r,a,b);return this.sign=w.sign,this.layer=w.layer,this.mag=w.mag,this}}if(o=e.split("p"),o.length===2){r=10,a=parseFloat(o[0]),o[1]=o[1].replace("(",""),o[1]=o[1].replace(")","");let b=parseFloat(o[1]);if(isFinite(b)||(b=1),isFinite(r)&&isFinite(a)){const w=_.tetrate(r,a,b);return this.sign=w.sign,this.layer=w.layer,this.mag=w.mag,this}}const s=e.split("e"),u=s.length-1;if(u===0){const b=parseFloat(e);if(isFinite(b))return this.fromNumber(b)}else if(u===1){const b=parseFloat(e);if(isFinite(b)&&b!==0)return this.fromNumber(b)}const c=e.split("e^");if(c.length===2){this.sign=1,c[0].charAt(0)=="-"&&(this.sign=-1);let b="";for(let w=0;w=43&&S<=57||S===101)b+=c[1].charAt(w);else return this.layer=parseFloat(b),this.mag=parseFloat(c[1].substr(w+1)),this.normalize(),this}}if(u<1)return this.sign=0,this.layer=0,this.mag=0,this;const h=parseFloat(s[0]);if(h===0)return this.sign=0,this.layer=0,this.mag=0,this;let v=parseFloat(s[s.length-1]);if(u>=2){const b=parseFloat(s[s.length-2]);isFinite(b)&&(v*=Math.sign(b),v+=nn(b))}if(!isFinite(h))this.sign=s[0]==="-"?-1:1,this.layer=u,this.mag=v;else if(u===1)this.sign=Math.sign(h),this.layer=1,this.mag=v+Math.log10(Math.abs(h));else if(this.sign=Math.sign(h),this.layer=u,u===2){const b=_.mul(F(1,2,v),m(h));return this.sign=b.sign,this.layer=b.layer,this.mag=b.mag,this}else this.mag=v;return this.normalize(),this}fromValue(e){return e instanceof _||e!=null&&typeof e=="object"&&"sign"in e&&"mag"in e&&"layer"in e?this.fromDecimal(e):typeof e=="number"?this.fromNumber(e):typeof e=="string"?this.fromString(e):(this.sign=0,this.layer=0,this.mag=0,this)}toNumber(){return Number.isFinite(this.layer)?this.layer===0?this.sign*this.mag:this.layer===1?this.sign*Math.pow(10,this.mag):this.mag>0?this.sign>0?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:0:Number.NaN}mantissaWithDecimalPlaces(e){return isNaN(this.m)?Number.NaN:this.m===0?0:We(this.m,e)}magnitudeWithDecimalPlaces(e){return isNaN(this.mag)?Number.NaN:this.mag===0?0:We(this.mag,e)}toString(){return isNaN(this.layer)||isNaN(this.sign)||isNaN(this.mag)?"NaN":this.mag===Number.POSITIVE_INFINITY||this.layer===Number.POSITIVE_INFINITY?this.sign===1?"Infinity":"-Infinity":this.layer===0?this.mag<1e21&&this.mag>1e-7||this.mag===0?(this.sign*this.mag).toString():this.m+"e"+this.e:this.layer===1?this.m+"e"+this.e:this.layer<=Dn?(this.sign===-1?"-":"")+"e".repeat(this.layer)+this.mag:(this.sign===-1?"-":"")+"(e^"+this.layer+")"+this.mag}toExponential(e){return this.layer===0?(this.sign*this.mag).toExponential(e):this.toStringWithDecimalPlaces(e)}toFixed(e){return this.layer===0?(this.sign*this.mag).toFixed(e):this.toStringWithDecimalPlaces(e)}toPrecision(e){return this.e<=-7?this.toExponential(e-1):e>this.e?this.toFixed(e-this.exponent-1):this.toExponential(e-1)}valueOf(){return this.toString()}toJSON(){return this.toString()}toStringWithDecimalPlaces(e){return this.layer===0?this.mag<1e21&&this.mag>1e-7||this.mag===0?(this.sign*this.mag).toFixed(e):We(this.m,e)+"e"+We(this.e,e):this.layer===1?We(this.m,e)+"e"+We(this.e,e):this.layer<=Dn?(this.sign===-1?"-":"")+"e".repeat(this.layer)+We(this.mag,e):(this.sign===-1?"-":"")+"(e^"+this.layer+")"+We(this.mag,e)}abs(){return L(this.sign===0?0:1,this.layer,this.mag)}neg(){return L(-this.sign,this.layer,this.mag)}negate(){return this.neg()}negated(){return this.neg()}sgn(){return this.sign}round(){return this.mag<0?_.dZero:this.layer===0?F(this.sign,0,Math.round(this.mag)):this}floor(){return this.mag<0?_.dZero:this.layer===0?F(this.sign,0,Math.floor(this.mag)):this}ceil(){return this.mag<0?_.dZero:this.layer===0?F(this.sign,0,Math.ceil(this.mag)):this}trunc(){return this.mag<0?_.dZero:this.layer===0?F(this.sign,0,Math.trunc(this.mag)):this}add(e){const t=m(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer)||this.sign===0)return t;if(t.sign===0)return this;if(this.sign===-t.sign&&this.layer===t.layer&&this.mag===t.mag)return L(0,0,0);let n,i;if(this.layer>=2||t.layer>=2)return this.maxabs(t);if(_.cmpabs(this,t)>0?(n=this,i=t):(n=t,i=this),n.layer===0&&i.layer===0)return m(n.sign*n.mag+i.sign*i.mag);const r=n.layer*Math.sign(n.mag),a=i.layer*Math.sign(i.mag);if(r-a>=2)return n;if(r===0&&a===-1){if(Math.abs(i.mag-Math.log10(n.mag))>tn)return n;{const o=Math.pow(10,Math.log10(n.mag)-i.mag),s=i.sign+n.sign*o;return F(Math.sign(s),1,i.mag+Math.log10(Math.abs(s)))}}if(r===1&&a===0){if(Math.abs(n.mag-Math.log10(i.mag))>tn)return n;{const o=Math.pow(10,n.mag-Math.log10(i.mag)),s=i.sign+n.sign*o;return F(Math.sign(s),1,Math.log10(i.mag)+Math.log10(Math.abs(s)))}}if(Math.abs(n.mag-i.mag)>tn)return n;{const o=Math.pow(10,n.mag-i.mag),s=i.sign+n.sign*o;return F(Math.sign(s),1,i.mag+Math.log10(Math.abs(s)))}}plus(e){return this.add(e)}sub(e){return this.add(m(e).neg())}subtract(e){return this.sub(e)}minus(e){return this.sub(e)}mul(e){const t=m(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer))return t;if(this.sign===0||t.sign===0)return L(0,0,0);if(this.layer===t.layer&&this.mag===-t.mag)return L(this.sign*t.sign,0,1);let n,i;if(this.layer>t.layer||this.layer==t.layer&&Math.abs(this.mag)>Math.abs(t.mag)?(n=this,i=t):(n=t,i=this),n.layer===0&&i.layer===0)return m(n.sign*i.sign*n.mag*i.mag);if(n.layer>=3||n.layer-i.layer>=2)return F(n.sign*i.sign,n.layer,n.mag);if(n.layer===1&&i.layer===0)return F(n.sign*i.sign,1,n.mag+Math.log10(i.mag));if(n.layer===1&&i.layer===1)return F(n.sign*i.sign,1,n.mag+i.mag);if(n.layer===2&&i.layer===1){const r=F(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(F(Math.sign(i.mag),i.layer-1,Math.abs(i.mag)));return F(n.sign*i.sign,r.layer+1,r.sign*r.mag)}if(n.layer===2&&i.layer===2){const r=F(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(F(Math.sign(i.mag),i.layer-1,Math.abs(i.mag)));return F(n.sign*i.sign,r.layer+1,r.sign*r.mag)}throw Error("Bad arguments to mul: "+this+", "+e)}multiply(e){return this.mul(e)}times(e){return this.mul(e)}div(e){const t=m(e);return this.mul(t.recip())}divide(e){return this.div(e)}divideBy(e){return this.div(e)}dividedBy(e){return this.div(e)}recip(){return this.mag===0?_.dNaN:this.layer===0?F(this.sign,0,1/this.mag):F(this.sign,this.layer,-this.mag)}reciprocal(){return this.recip()}reciprocate(){return this.recip()}cmp(e){const t=m(e);return this.sign>t.sign?1:this.sign0?this.layer:-this.layer,i=t.mag>0?t.layer:-t.layer;return n>i?1:nt.mag?1:this.mag0?t:this}clamp(e,t){return this.max(e).min(t)}clampMin(e){return this.max(e)}clampMax(e){return this.min(e)}cmp_tolerance(e,t){const n=m(e);return this.eq_tolerance(n,t)?0:this.cmp(n)}compare_tolerance(e,t){return this.cmp_tolerance(e,t)}eq_tolerance(e,t){const n=m(e);if(t==null&&(t=1e-7),this.sign!==n.sign||Math.abs(this.layer-n.layer)>1)return!1;let i=this.mag,r=n.mag;return this.layer>n.layer&&(r=nn(r)),this.layer0?F(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):F(1,0,Math.log10(this.mag))}log10(){return this.sign<=0?_.dNaN:this.layer>0?F(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):F(this.sign,0,Math.log10(this.mag))}log(e){return e=m(e),this.sign<=0||e.sign<=0||e.sign===1&&e.layer===0&&e.mag===1?_.dNaN:this.layer===0&&e.layer===0?F(this.sign,0,Math.log(this.mag)/Math.log(e.mag)):_.div(this.log10(),e.log10())}log2(){return this.sign<=0?_.dNaN:this.layer===0?F(this.sign,0,Math.log2(this.mag)):this.layer===1?F(Math.sign(this.mag),0,Math.abs(this.mag)*3.321928094887362):this.layer===2?F(Math.sign(this.mag),1,Math.abs(this.mag)+.5213902276543247):F(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}ln(){return this.sign<=0?_.dNaN:this.layer===0?F(this.sign,0,Math.log(this.mag)):this.layer===1?F(Math.sign(this.mag),0,Math.abs(this.mag)*2.302585092994046):this.layer===2?F(Math.sign(this.mag),1,Math.abs(this.mag)+.36221568869946325):F(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}logarithm(e){return this.log(e)}pow(e){const t=m(e),n=this,i=t;if(n.sign===0)return i.eq(0)?L(1,0,1):n;if(n.sign===1&&n.layer===0&&n.mag===1)return n;if(i.sign===0)return L(1,0,1);if(i.sign===1&&i.layer===0&&i.mag===1)return n;const r=n.absLog10().mul(i).pow10();return this.sign===-1?Math.abs(i.toNumber()%2)%2===1?r.neg():Math.abs(i.toNumber()%2)%2===0?r:_.dNaN:r}pow10(){if(!Number.isFinite(this.layer)||!Number.isFinite(this.mag))return _.dNaN;let e=this;if(e.layer===0){const t=Math.pow(10,e.sign*e.mag);if(Number.isFinite(t)&&Math.abs(t)>=.1)return F(1,0,t);if(e.sign===0)return _.dOne;e=L(e.sign,e.layer+1,Math.log10(e.mag))}return e.sign>0&&e.mag>=0?F(e.sign,e.layer+1,e.mag):e.sign<0&&e.mag>=0?F(-e.sign,e.layer+1,-e.mag):_.dOne}pow_base(e){return m(e).pow(this)}root(e){const t=m(e);return this.pow(t.recip())}factorial(){return this.mag<0?this.add(1).gamma():this.layer===0?this.add(1).gamma():this.layer===1?_.exp(_.mul(this,_.ln(this).sub(1))):_.exp(this)}gamma(){if(this.mag<0)return this.recip();if(this.layer===0){if(this.lt(L(1,0,24)))return m(Pr(this.sign*this.mag));const e=this.mag-1;let t=.9189385332046727;t=t+(e+.5)*Math.log(e),t=t-e;const n=e*e;let i=e,r=12*i,a=1/r,o=t+a;if(o===t||(t=o,i=i*n,r=360*i,a=1/r,o=t-a,o===t))return _.exp(t);t=o,i=i*n,r=1260*i;let s=1/r;return t=t+s,i=i*n,r=1680*i,s=1/r,t=t-s,_.exp(t)}else return this.layer===1?_.exp(_.mul(this,_.ln(this).sub(1))):_.exp(this)}lngamma(){return this.gamma().ln()}exp(){return this.mag<0?_.dOne:this.layer===0&&this.mag<=709.7?m(Math.exp(this.sign*this.mag)):this.layer===0?F(1,1,this.sign*Math.log10(Math.E)*this.mag):this.layer===1?F(1,2,this.sign*(Math.log10(.4342944819032518)+this.mag)):F(1,this.layer+1,this.sign*this.mag)}sqr(){return this.pow(2)}sqrt(){if(this.layer===0)return m(Math.sqrt(this.sign*this.mag));if(this.layer===1)return F(1,2,Math.log10(this.mag)-.3010299956639812);{const e=_.div(L(this.sign,this.layer-1,this.mag),L(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=L(1,0,1)){if(e===1)return _.pow(this,t);if(e===0)return new _(t);if(this.eq(_.dOne))return _.dOne;if(this.eq(-1))return _.pow(this,t);if(e===Number.POSITIVE_INFINITY){const r=this.toNumber();if(r<=1.444667861009766&&r>=.06598803584531254){if(r>1.444667861009099)return new _(Math.E);const a=_.ln(this).neg();return a.lambertw().div(a)}else return r>1.444667861009766?new _(Number.POSITIVE_INFINITY):_.dNaN}if(this.eq(_.dZero)){let r=Math.abs((e+1)%2);return r>1&&(r=2-r),new _(r)}if(e<0)return _.iteratedlog(t,this,-e);t=m(t);const n=e;e=Math.trunc(e);const i=n-e;if(this.gt(_.dZero)&&this.lte(1.444667861009766)){e=Math.min(1e4,e);for(let r=0;r3)return L(t.sign,t.layer+(e-r-1),t.mag);if(r>1e4)return t}return t}iteratedexp(e=2,t=L(1,0,1)){return this.tetrate(e,t)}iteratedlog(e=10,t=1){if(t<0)return _.tetrate(e,-t,this);e=m(e);let n=m(this);const i=t;t=Math.trunc(t);const r=i-t;if(n.layer-e.layer>3){const a=Math.min(t,n.layer-e.layer-3);t-=a,n.layer-=a}for(let a=0;a1e4)return n}return r>0&&r<1&&(e.eq(10)?n=n.layeradd10(-r):n=n.layeradd(-r,e)),n}slog(e=10){if(e=m(e),e.lte(_.dZero)||e.eq(_.dOne))return _.dNaN;if(e.lt(_.dOne))return this.eq(_.dOne)?_.dZero:this.eq(_.dZero)?_.dNegOne:_.dNaN;if(this.mag<0||this.eq(_.dZero))return _.dNegOne;let t=0,n=m(this);if(n.layer-e.layer>3){const i=n.layer-e.layer-3;t+=i,n.layer-=i}for(let i=0;i<100;++i)if(n.lt(_.dZero))n=_.pow(e,n),t-=1;else{if(n.lte(_.dOne))return m(t+_.slog_critical(e.toNumber(),n.toNumber()));t+=1,n=_.log(n,e)}return m(t)}static slog_critical(e,t){return e>10?t-1:_.critical_section(e,t,Ir)}static tetrate_critical(e,t){return _.critical_section(e,t,Tr)}static critical_section(e,t,n){t*=10,t<0&&(t=0),t>10&&(t=10),e<2&&(e=2),e>10&&(e=10);let i=0,r=0;for(let s=0;se){const u=(e-Qe[s])/(Qe[s+1]-Qe[s]);i=n[s][Math.floor(t)]*(1-u)+n[s+1][Math.floor(t)]*u,r=n[s][Math.ceil(t)]*(1-u)+n[s+1][Math.ceil(t)]*u;break}const a=t-Math.floor(t);return i*(1-a)+r*a}layeradd10(e){e=_.fromValue_noAlloc(e).toNumber();const t=m(this);if(e>=1){t.mag<0&&t.layer>0?(t.sign=0,t.mag=0,t.layer=0):t.sign===-1&&t.layer==0&&(t.sign=1,t.mag=-t.mag);const n=Math.trunc(e);e-=n,t.layer+=n}if(e<=-1){const n=Math.trunc(e);if(e-=n,t.layer+=n,t.layer<0)for(let i=0;i<100;++i){if(t.layer++,t.mag=Math.log10(t.mag),!isFinite(t.mag))return t.sign===0&&(t.sign=1),t.layer<0&&(t.layer=0),t.normalize();if(t.layer>=0)break}}for(;t.layer<0;)t.layer++,t.mag=Math.log10(t.mag);return t.sign===0&&(t.sign=1,t.mag===0&&t.layer>=1&&(t.layer-=1,t.mag=1)),t.normalize(),e!==0?t.layeradd(e,10):t}layeradd(e,t){const i=this.slog(t).toNumber()+e;return i>=0?_.tetrate(t,i):Number.isFinite(i)?i>=-1?_.log(_.tetrate(t,i+1),t):_.log(_.log(_.tetrate(t,i+2),t),t):_.dNaN}lambertw(){if(this.lt(-.3678794411710499))throw Error("lambertw is unimplemented for results less than -1, sorry!");if(this.mag<0)return m(Rn(this.toNumber()));if(this.layer===0)return m(Rn(this.sign*this.mag));if(this.layer===1)return Bn(this);if(this.layer===2)return Bn(this);if(this.layer>=3)return L(this.sign,this.layer-1,this.mag);throw"Unhandled behavior in lambertw()"}ssqrt(){if(this.sign==1&&this.layer>=3)return L(this.sign,this.layer-1,this.mag);const e=this.ln();return e.div(e.lambertw())}pentate(e=2,t=L(1,0,1)){t=m(t);const n=e;e=Math.trunc(e);const i=n-e;i!==0&&(t.eq(_.dOne)?(++e,t=new _(i)):this.eq(10)?t=t.layeradd10(i):t=t.layeradd(i,this));for(let r=0;r10)return t}return t}sin(){return this.mag<0?this:this.layer===0?m(Math.sin(this.sign*this.mag)):L(0,0,0)}cos(){return this.mag<0?_.dOne:this.layer===0?m(Math.cos(this.sign*this.mag)):L(0,0,0)}tan(){return this.mag<0?this:this.layer===0?m(Math.tan(this.sign*this.mag)):L(0,0,0)}asin(){return this.mag<0?this:this.layer===0?m(Math.asin(this.sign*this.mag)):L(Number.NaN,Number.NaN,Number.NaN)}acos(){return this.mag<0?m(Math.acos(this.toNumber())):this.layer===0?m(Math.acos(this.sign*this.mag)):L(Number.NaN,Number.NaN,Number.NaN)}atan(){return this.mag<0?this:this.layer===0?m(Math.atan(this.sign*this.mag)):m(Math.atan(this.sign*(1/0)))}sinh(){return this.exp().sub(this.negate().exp()).div(2)}cosh(){return this.exp().add(this.negate().exp()).div(2)}tanh(){return this.sinh().div(this.cosh())}asinh(){return _.ln(this.add(this.sqr().add(1).sqrt()))}acosh(){return _.ln(this.add(this.sqr().sub(1).sqrt()))}atanh(){return this.abs().gte(1)?L(Number.NaN,Number.NaN,Number.NaN):_.ln(this.add(1).div(m(1).sub(this))).div(2)}ascensionPenalty(e){return e===0?this:this.root(_.pow(10,e))}egg(){return this.add(9)}lessThanOrEqualTo(e){return this.cmp(e)<1}lessThan(e){return this.cmp(e)<0}greaterThanOrEqualTo(e){return this.cmp(e)>-1}greaterThan(e){return this.cmp(e)>0}};let f=_;f.dZero=L(0,0,0);f.dOne=L(1,0,1);f.dNegOne=L(-1,0,1);f.dTwo=L(1,0,2);f.dTen=L(1,0,10);f.dNaN=L(Number.NaN,Number.NaN,Number.NaN);f.dInf=L(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY);f.dNegInf=L(-1,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);f.dNumberMax=F(1,0,Number.MAX_VALUE);f.dNumberMin=F(1,0,Number.MIN_VALUE);const Or=new f(1);function vt(e,t,n=!0){let i=f.log10(e).floor(),r=f.div(e,f.pow(10,i));r.toStringWithDecimalPlaces(t)==="10"&&(r=Or,i=i.add(1));const a=i.gte(1e9)?$e(i,Math.max(Math.max(t,3),J.defaultDecimalsShown)):i.gte(1e4)?Gt(i,0):i.toStringWithDecimalPlaces(0);return n?r.toStringWithDecimalPlaces(t)+"e"+a:"e"+a}function Gt(e,t){if(e==null)return"NaN";if(e=new f(e),e.mag<.001)return 0 .toFixed(t);const i=e.toStringWithDecimalPlaces(t).split(".");return i[0]=i[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"),i.length==1?i[0]:i[0]+"."+i[1]}function Kn(e,t){return e==null?"NaN":(e=new f(e),e.mag<1e-4?0 .toFixed(t):(e.mag<.1&&t!==0&&(t=Math.max(Math.max(t,e.log10().negate().ceil().toNumber()),J.defaultDecimalsShown)),e.toStringWithDecimalPlaces(t)))}const Ar=new f("eeee1000"),Er=new f("e100000"),qn=new f("e1000"),Zn=new f(1e9),Vr=new f(1e6),Fr=new f(1e3),Dr=new f(.98),Rr=new f(.001),Jn=new f(0);function $e(e,t,n){if(t==null&&(t=J.defaultDecimalsShown),n=n!=null?n:J.defaultShowSmall,e=new f(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag))return"NaN";if(e.sign<0)return"-"+$e(e.neg(),t);if(e.mag===Number.POSITIVE_INFINITY)return"Infinity";if(e.gte(Ar)){const i=e.slog();return i.gte(Vr)?"F"+$e(i.floor()):f.pow(10,i.sub(i.floor())).toStringWithDecimalPlaces(3)+"F"+Gt(i.floor(),0)}else{if(e.gte(Er))return vt(e,0,!1);if(e.gte(qn))return vt(e,0);if(e.gte(Zn))return vt(e,t);if(e.gte(Fr))return Gt(e,0);if(e.gte(Rr)||!n)return Kn(e,t);if(e.eq(Jn))return 0 .toFixed(t)}return e=Qn(e),e.lt(qn)?vt(e,t).replace(/([^(?:e|F)]*)$/,"-$1"):$e(e,t)+"\u207B\xB9"}function Ce(e){return e=new f(e),e.sign<0?"-"+Ce(e.neg()):e.gte(Zn)||e.lte(Dr)&&!e.eq(Jn)?$e(e):$e(e,0)}function Xn(e){return f.lt(e,0)?"-"+Xn(f.neg(e)):f.gt(e,2**51)?$e(f.div(e,31536e3))+"y":(e=new f(e).toNumber(),e<60?$e(e)+"s":e<3600?Ce(Math.floor(e/60))+"m "+$e(e%60)+"s":e<86400?Ce(Math.floor(e/3600))+"h "+Ce(Math.floor(e/60)%60)+"m "+Ce(e%60)+"s":e<31536e3?Ce(Math.floor(e/84600)%365)+"d "+Ce(Math.floor(e/3600)%24)+"h "+Ce(Math.floor(e/60)%60)+"m":Ce(Math.floor(e/31536e3))+"y "+Ce(Math.floor(e/84600)%365)+"d "+Ce(Math.floor(e/3600)%24)+"h")}function Br(e,t,n){e=new f(e);let i=e.toStringWithDecimalPlaces(t);return new f(i).gte(n)&&(i=f.sub(n,Math.pow(.1,t)).toStringWithDecimalPlaces(t)),i}function qr(e,t){return $e(e,t,!0)}function Qn(e){let t=f.log10(e).ceil();const n=f.div(e,f.pow(10,t));return t=t.neg(),e=new f(10).pow(t).times(n),e}var jr=Object.freeze(Object.defineProperty({__proto__:null,default:f,exponentialFormat:vt,commaFormat:Gt,regularFormat:Kn,format:$e,formatWhole:Ce,formatTime:Xn,toPlaces:Br,formatSmall:qr,invertOOM:Qn},Symbol.toStringTag,{value:"Module"}));const{exponentialFormat:Lr,commaFormat:zr,regularFormat:Gr,format:se,formatWhole:ve,formatTime:Jt,toPlaces:Ur,formatSmall:Hr,invertOOM:Wr}=jr;window.Decimal=f;window.exponentialFormat=Lr;window.commaFormat=zr;window.regularFormat=Gr;window.format=se;window.formatWhole=ve;window.formatTime=Jt;window.toPlaces=Ur;window.formatSmall=Hr;window.invertOOM=Wr;function ei(e){let t=e.replace(/([A-Z])/g," $1");return t=t.charAt(0).toUpperCase()+t.slice(1),t}function tt(e){return typeof e=="function"}var X=(e=>(e.Up="Up",e.Down="Down",e.Left="Left",e.Right="Right",e.Default="Up",e))(X||{});const wt=Symbol("DoNotCache");function y(e,t){const n=e[t];tt(n)&&n.length===0&&!n[wt]?e[t]=N(n.bind(e)):tt(n)&&(e[t]=n.bind(e),e[t][wt]=!0)}function Me(e){return tt(e)&&!e[wt]&&(e=N(e)),e}const ue=Symbol("Component"),pe=Symbol("GatherProps");let Yr=0;function he(e="feature-"){return e+Yr++}var B=(e=>(e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.None=2]="None",e))(B||{});function j(e){return e[wt]=!0,e}function gt(e,t=2){return e?0:t}function z(e,t,n){e[t]===void 0&&n!=null&&(e[t]=n)}function ti(e,...t){const n=[],i=r=>{Object.keys(r).forEach(a=>{const o=r[a];o&&typeof o=="object"&&(t.includes(o.type)?n.push(o):!(o instanceof f)&&!fe(o)&&i(o))})};return i(e),n}const et={variables:{"--foreground":"#dfdfdf","--background":"#0f0f0f","--feature-foreground":"#0f0f0f","--tooltip-background":"rgba(0, 0, 0, 0.75)","--raised-background":"#0f0f0f","--points":"#ffffff","--locked":"#bf8f8f","--highlighted":"#333","--bought":"#77bf5f","--danger":"rgb(220, 53, 69)","--link":"#02f2f2","--outline":"#dfdfdf","--accent1":"#627a82","--accent2":"#658262","--accent3":"#7c6282","--border-radius":"15px","--modal-border":"solid 2px var(--color)","--feature-margin":"0px"},floatingTabs:!0,mergeAdjacent:!0,showPin:!0};var pn=(e=>(e.Classic="classic",e.Paper="paper",e.Nordic="nordic",e.Aqua="aqua",e))(pn||{}),ze={classic:et,paper:{...et,variables:{...et.variables,"--background":"#2a323d","--feature-foreground":"#000","--raised-background":"#333c4a","--locked":"#3a3e45","--bought":"#5C8A58","--outline":"#333c4a","--border-radius":"4px","--modal-border":"","--feature-margin":"5px"},floatingTabs:!1},nordic:{...et,variables:{...et.variables,"--foreground":"#D8DEE9","--background":"#2E3440","--feature-foreground":"#000","--raised-background":"#3B4252","--points":"#E5E9F0","--locked":"#4c566a","--highlighted":"#434c5e","--bought":"#8FBCBB","--danger":"#D08770","--link":"#88C0D0","--outline":"#3B4252","--accent1":"#B48EAD","--accent2":"#A3BE8C","--accent3":"#EBCB8B","--border-radius":"4px","--modal-border":"solid 2px #3B4252","--feature-margin":"5px"},floatingTabs:!1},aqua:{...et,variables:{...et.variables,"--foreground":"#bfdfff","--background":"#001f3f","--tooltip-background":"rgba(0, 15, 31, 0.75)","--raised-background":"#001f3f","--points":"#dfefff","--locked":"#c4a7b3","--outline":"#bfdfff"}}};const ce=Symbol("ProxyState"),st=Symbol("ProxyPath");function me(e,t={}){const n=t;let i=!1;function r(){return i||(Object.assign(n,e(n)),i=!0),n}return new Proxy(n,{get(a,o){return o===ce?r():r()[o]},set(a,o,s){return r()[o]=s,!0},has(a,o){return o===ce?!0:Reflect.has(r(),o)},ownKeys(){return Reflect.ownKeys(r())},getOwnPropertyDescriptor(a,o){return i||(Object.assign(n,e(n)),i=!0),Object.getOwnPropertyDescriptor(a,o)}})}var ie=window.state=Yt({lastTenTicks:[],hasNaN:!1,NaNPath:[]});const ni=Mt({id:"",devSpeed:null,name:"",tabs:[],time:-1,autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:0,keepGoing:!1,modID:"",modVersion:"",layers:{}});function ii(e){return JSON.stringify(e,(t,n)=>l(n))}const ri={get(e,t){var i;if(t===ce||t===st)return e[t];const n=e[ce][t];if(t!=="value"&&(Ui(n)||Array.isArray(n))){if(n!==((i=e[t])==null?void 0:i[ce])){const r=[...e[st],t];e[t]=new Proxy({[ce]:n,[st]:r},ri)}return e[t]}return n},set(e,t,n,i){if(!ie.hasNaN&&(typeof n=="number"&&isNaN(n)||n instanceof f&&(isNaN(n.sign)||isNaN(n.layer)||isNaN(n.mag)))){const r=e[ce][t];if(!(typeof r=="number"&&isNaN(r)||r instanceof f&&(isNaN(r.sign)||isNaN(r.layer)||isNaN(r.mag))))throw ni.autosave=!1,ie.hasNaN=!0,ie.NaNPath=[...e[st],t],ie.NaNReceiver=i,console.error("Attempted to set NaN value",[...e[st],t],e[ce]),"Attempted to set NaN value. See above for details"}return e[ce][t]=n,!0},ownKeys(e){return Reflect.ownKeys(e[ce])},has(e,t){return Reflect.has(e[ce],t)},getOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e[ce],t)}};var T=window.player=new Proxy({[ce]:ni,[st]:["player"]},ri);const ge=Wn();let lt=null,ht=null;function Ut(){const e=Date.now();let t=(e-T.time)/1e3;T.time=e;const n=t;if(ie.lastTenTicks.push(n),ie.lastTenTicks.length>10&&(ie.lastTenTicks=ie.lastTenTicks.slice(1)),!((ht==null?void 0:ht.value)&&!T.keepGoing)&&!ie.hasNaN&&(t=Math.max(t,0),T.devSpeed!==0)){if(T.offlineTime!=null){if(f.gt(T.offlineTime,J.offlineLimit*3600)&&(T.offlineTime=J.offlineLimit*3600),f.gt(T.offlineTime,0)&&T.devSpeed!==0){const i=Math.max(T.offlineTime/10,t);T.offlineTime=T.offlineTime-i,t+=i}else T.devSpeed===0&&(T.offlineTime+=t);(!T.offlineProd||f.lt(T.offlineTime,0))&&(T.offlineTime=null)}t=Math.min(t,J.maxTickLength),T.devSpeed!=null&&(t*=T.devSpeed),Number.isFinite(t)||(t=1e308),!f.eq(t,0)&&(T.timePlayed+=t,Number.isFinite(T.timePlayed)||(T.timePlayed=1e308),ge.emit("update",t,n),Z.unthrottled?(requestAnimationFrame(Ut),lt!=null&&(clearInterval(lt),lt=null)):lt==null&&(lt=setInterval(Ut,50)))}}async function Kr(){ht=(await zt(()=>Promise.resolve().then(function(){return Ai}),void 0)).hasWon,Ie(ht,e=>{e&&ge.emit("gameWon")}),Z.unthrottled?requestAnimationFrame(Ut):lt=setInterval(Ut,50)}var Zr=Object.freeze(Object.defineProperty({__proto__:null,globalBus:ge,startGameLoop:Kr},Symbol.toStringTag,{value:"Module"}));function ai(e={}){return Object.assign({id:`${J.id}-0`,name:"Default Save",tabs:J.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:0,timePlayed:0,keepGoing:!1,modID:J.id,modVersion:J.versionNumber,layers:{}},e)}function Ae(e){const t=Ye.compressToUTF16(ii(e!=null?e:T[ce]));return localStorage.setItem((e!=null?e:T[ce]).id,t),t}async function Jr(){Qr();try{let e=localStorage.getItem(Z.active);if(e==null){await nt(ut());return}if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Ye.decompressFromUTF16(e);else throw"Unable to determine save encoding";const t=JSON.parse(e);if(t.modID!==J.id){await nt(ut());return}t.id=Z.active,await nt(t)}catch(e){console.error(`Failed to load save. Falling back to new save. +`,e),await nt(ut())}}function ut(){const e=qt(),t=ai({id:e});return Ae(t),Z.saves.push(e),t}function qt(){let e,t=0;do e=`${J.id}-${t++}`;while(localStorage.getItem(e));return e}async function nt(e){console.info("Loading save",e);const{layers:t,removeLayer:n,addLayer:i}=await zt(()=>Promise.resolve().then(function(){return ya}),void 0),{fixOldSave:r,getInitialLayers:a}=await zt(()=>Promise.resolve().then(function(){return Ai}),void 0);for(const o in t){const s=t[o];s&&n(s)}a(e).forEach(o=>i(o,e)),e=ai(e),e.offlineProd&&e.time&&(e.offlineTime==null&&(e.offlineTime=0),e.offlineTime+=(Date.now()-e.time)/1e3),e.time=Date.now(),e.modVersion!==J.versionNumber&&r(e.modVersion,e),Object.assign(T,e),Z.active=T.id}setInterval(()=>{T.autosave&&Ae()},1e3);window.onbeforeunload=()=>{T.autosave&&Ae()};window.save=Ae;const Xr=window.hardReset=async()=>{await nt(ut())},xt=Mt({active:"",saves:[],showTPS:!0,theme:pn.Nordic,unthrottled:!1});Ie(xt,e=>{const t=Ye.compressToUTF16(JSON.stringify(e));localStorage.setItem(J.id,t)},{deep:!0});var Z=window.settings=xt;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:pn.Nordic};ge.emit("loadSettings",e),Object.assign(xt,e),Xr()};function Qr(){try{let e=localStorage.getItem(J.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Ye.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(xt,t)}ge.emit("loadSettings",xt)}catch{}}const oi=Mt([]);function si(e){oi.push(e)}const li=Mt([]);function ea(e){li.push(e)}const ta=Mt([]),na={class:"table"},jt=E({__name:"Column",setup(e){const t=N(()=>ze[Z.theme].mergeAdjacent);return(n,i)=>(g(),x("div",na,[p("div",{class:Q(["col",{mergeAdjacent:l(t)}])},[De(n.$slots,"default")],2)]))}}),ia={class:"table"},bt=E({__name:"Row",setup(e){const t=N(()=>ze[Z.theme].mergeAdjacent);return(n,i)=>(g(),x("div",ia,[p("div",{class:Q(["row",{mergeAdjacent:l(t)}])},[De(n.$slots,"default")],2)]))}});function ui(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!cn(e)}function D(e,t="span"){return typeof e=="function"?E({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}`),E({template:e})):E({render:()=>({})}):e}function oe(e){if(Te(e))return typeof e=="function"?e():D(e);const t=e[ue];return d(t,e[pe](),null)}function Pe(...e){let t;return d(bt,null,ui(t=e.map(oe))?t:{default:()=>[t]})}function ra(...e){let t;return d(jt,null,ui(t=e.map(oe))?t:{default:()=>[t]})}function Re(e){if(Te(e))return typeof e=="function"?e():typeof e=="string"?d(K,null,[e]):d(e,null,null);const t=e[ue];return d(t,e[pe](),null)}function Te(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[wt]===!0}function mn(e,t){const n=O(null),i=O(void 0);function r(s){n.value||(n.value=setInterval(o,250)),i.value=s}function a(){n.value&&(clearInterval(n.value),n.value=null)}function o(){t&&t.value?t.value():e&&e.value&&e.value(i.value)}return Un(a),{start:r,stop:a,handleHolding:o}}function ct(e,t="div"){const n=xe();return Ne(()=>{n.value=D(ae(e),t)}),n}function it(e,t="div"){const n=xe(null);return Ne(()=>{const i=ae(e);n.value=i==null?null:D(i,t)}),n}function aa(e){return N(()=>ae(e))}function ae(e){return l(l(e))}function k(...e){return e.includes(Object)||e.push(Object),e}const oa=E({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var h;const n=O({}),i=new ResizeObserver(s),r=O(null);Tt(()=>{const v=r.value;v!=null&&i.observe(v)});let a=!0,o=O((h=r.value)==null?void 0:h.getBoundingClientRect());function s(){r.value!=null&&a&&(a=!1,Ve(()=>{var v;o.value=(v=r.value)==null?void 0:v.getBoundingClientRect(),Object.values(n.value).filter(b=>b).forEach(b=>b.rect=b.element.getBoundingClientRect()),t("updateNodes",n.value),a=!0}))}document.fonts.ready.then(s);const u={attributes:!1,childList:!0,subtree:!1};Ft(gn,(v,b)=>{const w=new MutationObserver(()=>c(v));w.observe(b,u),n.value[v]={element:b,observer:w,rect:b.getBoundingClientRect()},t("updateNodes",n.value),Ve(()=>c(v))}),Ft(vn,v=>{var b;(b=n.value[v])==null||b.observer.disconnect(),n.value[v]=void 0,t("updateNodes",n.value)}),Ft(hn,n),Ft(bn,o);function c(v){const b=n.value[v];b!=null&&(b.rect=b.element.getBoundingClientRect(),t("updateNodes",n.value))}return(v,b)=>(g(),x(K,null,[De(v.$slots,"default",{},void 0,!0),p("div",{ref_key:"resizeListener",ref:r,class:"resize-listener"},null,512)],64))}});var di=q(oa,[["__scopeId","data-v-6a08ac80"]]);const sa=["onPointerdown"],la={class:"modal-wrapper"},ua={class:"modal-container"},da={class:"modal-header"},ca=C(" default header "),fa={class:"modal-body"},pa=C(" default body "),ma={class:"modal-footer"},ga=p("div",{class:"modal-default-flex-grow"},null,-1),Je=E({__name:"Modal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const r=ne(e),a=N(()=>r.modelValue||s.value);function o(){n("update:modelValue",!1)}const s=O(!1),u=O(null),c=N(()=>{var h,v;return(v=(h=u.value)==null?void 0:h.nodes)!=null?v:null});return t({isOpen:a,nodes:c}),(h,v)=>(g(),A(Bi,{to:"#modal-root"},[d(Zt,{name:"modal",onBeforeEnter:v[0]||(v[0]=b=>s.value=!0),onAfterLeave:v[1]||(v[1]=b=>s.value=!1)},{default:V(()=>[Kt(p("div",Be({class:"modal-mask",onPointerdown:_t(o,["self"])},h.$attrs),[p("div",la,[p("div",ua,[p("div",da,[De(h.$slots,"header",{shown:l(a)},()=>[ca])]),p("div",fa,[d(di,{ref_key:"contextRef",ref:u},{default:V(()=>[De(h.$slots,"body",{shown:l(a)},()=>[pa])]),_:3},512)]),p("div",ma,[De(h.$slots,"footer",{shown:l(a)},()=>[p("div",{class:"modal-default-footer"},[ga,p("button",{class:"button modal-default-button",onClick:o}," Close ")])])])])])],16,sa),[[Ri,e.modelValue]])]),_:3})]))}}),Nt=Symbol("PersistentState"),St=Symbol("DefaultValue"),Ht=Symbol("StackTrace"),ci=Symbol("Deleted");function va(){var e;return((e=new Error().stack)==null?void 0:e.split(` +`).slice(3,5).map(t=>t.trim()).join(` +`))||""}function le(e){const t=fe(e)?e:O(e);return t[Nt]=t,t[St]=fe(e)?e.value:e,t[Ht]=va(),t[ci]=!1,Ee.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",t,` +Created at: +`+t[Ht]):dt[Ee[Ee.length-1]].add(t),t}ge.on("addLayer",(e,t)=>{const n=[],i=(r,a=[])=>{let o=!1;return Object.keys(r).forEach(s=>{const u=r[s];if(u&&typeof u=="object")if(Nt in u){if(o=!0,u[ci]){console.warn("Deleted persistent ref present in returned object. Ignoring...",u,` +Created at: +`+u[Ht]);return}dt[e.id].delete(ce in u?u[ce]:u);const c=a.reduce((v,b)=>(b in v||(v[b]={}),v[b]),t),h=c[s];c[s]=u[Nt],qi(c)?h!=null?c[s]=h:c[s]=u[St]:h!=null?c[s].value=h:c[s].value=u[St]}else!(u instanceof f)&&!fe(u)&&!n.includes(u)&&(typeof u.type=="symbol"&&n.push(u),i(u,[...a,s])&&(An(u)&&!An(r)?console.warn("Found array that contains persistent values when adding layer. Keep in mind changing the order of elements in the array will mess with existing player saves.",ce in r?r[ce]:r,s):o=!0))}),o};i(e),dt[e.id].forEach(r=>{console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,r,` +Created at: +`+r[Ht])}),dt[e.id].clear()});const gn=Symbol("RegisterNode"),vn=Symbol("UnregisterNode"),hn=Symbol("Nodes"),bn=Symbol("Bounds"),_e=Yt({});window.layers=_e;const dt={},Ee=[];function It(e,t){return me(()=>{const n={},i=n.emitter=Wn();if(n.on=i.on.bind(i),n.emit=i.emit.bind(i),n.nodes=O({}),n.id=e,Ee.push(e),dt[e]=new Set,n.minimized=le(!1),Object.assign(n,t.call(n)),Ee[Ee.length-1]==null||Ee[Ee.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen +Stack: ${Ee} +Trying to pop ${n.id}`;return Ee.pop(),y(n,"color"),y(n,"display"),y(n,"name"),z(n,"name",n.id),y(n,"minWidth"),z(n,"minWidth",600),y(n,"minimizable"),z(n,"minimizable",!0),n})}function fi(e,t){if(console.info("Adding layer",e.id),_e[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,_e[e.id]);return}z(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),_e[e.id]=e,ge.emit("addLayer",e,t.layers[e.id])}function ha(e){return _e[e]}function pi(e){console.info("Removing layer",e.id),ge.emit("removeLayer",e),_e[e.id]=void 0}function ba(e){pi(e),fi(e,T)}function mi(e){const t=O(!1);return{openModal:()=>t.value=!0,modal:j(()=>d(Je,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>d("h2",null,[l(e.name)]),body:l(e.display)}))}}ge.on("update",function(t){Object.values(_e).forEach(n=>{n==null||n.emit("preUpdate",t)}),Object.values(_e).forEach(n=>{n==null||n.emit("update",t)}),Object.values(_e).forEach(n=>{n==null||n.emit("postUpdate",t)})});var ya=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:gn,UnregisterNodeInjectionKey:vn,NodesInjectionKey:hn,BoundsInjectionKey:bn,layers:_e,persistentRefs:dt,addingLayers:Ee,createLayer:It,addLayer:fi,getLayer:ha,removeLayer:pi,reloadLayer:ba,setupLayerModal:mi},Symbol.toStringTag,{value:"Module"}));const _a=E({components:{Context:di},props:{index:{type:Number,required:!0},tab:{type:Function,required:!0},display:{type:k(Object,String,Function),required:!0},minimized:{type:Object,required:!0},minWidth:{type:k(Number,String),required:!0},name:{type:k(String),required:!0},color:k(String),minimizable:k(Boolean),nodes:{type:Object,required:!0}},setup(e){const{display:t,index:n,minimized:i,minWidth:r,tab:a}=ne(e),o=ct(t),s=N(()=>J.allowGoBack&&n.value>0&&!i.value);function u(){T.tabs.splice(l(e.index),1/0)}Ve(()=>h(i.value,l(r.value))),Ie([i,aa(r)],([v,b])=>h(v,b));function c(v){e.nodes.value=v}function h(v,b){const w=typeof b=="number"||Number.isNaN(parseInt(b))?b+"px":b,S=a.value();S!=null&&(v?(S.style.flexGrow="0",S.style.flexShrink="0",S.style.width="60px",S.style.minWidth=S.style.flexBasis="",S.style.margin="0"):(S.style.flexGrow="",S.style.flexShrink="",S.style.width="",S.style.minWidth=S.style.flexBasis=w,S.style.margin=""))}return{component:o,showGoBack:s,updateNodes:c,unref:l,goBack:u}}});function ka(e,t,n,i,r,a){const o=de("Context");return g(),x("div",{class:"layer-container",style:W({"--layer-color":e.unref(e.color)})},[e.showGoBack?(g(),x("button",{key:0,class:"goBack",onClick:t[0]||(t[0]=(...s)=>e.goBack&&e.goBack(...s))},"\u2190")):P("",!0),e.minimized.value?(g(),x("button",{key:1,class:"layer-tab minimized",onClick:t[1]||(t[1]=s=>e.minimized.value=!1)},[p("div",null,G(e.unref(e.name)),1)])):(g(),x("div",{key:2,class:Q(["layer-tab",{showGoBack:e.showGoBack}])},[d(o,{onUpdateNodes:e.updateNodes},{default:V(()=>[(g(),A(ee(e.component)))]),_:1},8,["onUpdateNodes"])],2)),e.unref(e.minimizable)?(g(),x("button",{key:3,class:"minimize",onClick:t[2]||(t[2]=s=>e.minimized.value=!0)}," \u25BC ")):P("",!0)],4)}var wa=q(_a,[["render",ka],["__scopeId","data-v-34c9d881"]]);const gi=e=>(qe("data-v-4b4bda40"),e=e(),je(),e),xa=gi(()=>p("h2",null,"Changelog",-1)),Na=gi(()=>p("details",{open:""},[p("summary",null,[C("v0.0 Initial Commit - "),p("time",null,"2021-09-04")]),C(" This is the first release :D "),p("ul",null,[p("li",{class:"feature"},"Did everything"),p("li",{class:"fix"},"Had some fun"),p("li",{class:"breaking"},"Removed everything"),p("li",{class:"balancing"},"Created some bugs to fix later")])],-1)),Sa=E({__name:"Changelog",setup(e,{expose:t}){const n=O(!1);return t({open(){n.value=!0}}),(i,r)=>(g(),A(Je,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=a=>n.value=a)},{header:V(()=>[xa]),body:V(()=>[Na]),_:1},8,["modelValue"]))}});var Ca=q(Sa,[["__scopeId","data-v-4b4bda40"]]),$a=E({props:{element:Object,display:{type:k(Object,String,Function),required:!0},style:k(Object,String,Array),classes:k(Object),direction:k(String),xoffset:k(String),yoffset:k(String),pinned:Object},setup(e){const{element:t,display:n,pinned:i}=ne(e),r=O(!1),a=N(()=>(ae(i)||r.value)&&o.value),o=it(n),s=xe(D(j(()=>{const h=ae(t);return h==null?"":Re(h)})));function u(h){const v=i;h.shiftKey&&v&&(v.value=!v.value,h.stopPropagation(),h.preventDefault())}const c=N(()=>ae(i)&&ze[Z.theme].showPin);return{Direction:X,isHovered:r,isShown:a,comp:o,elementComp:s,unref:l,togglePinned:u,showPin:c}}});const Ma={key:0,class:"material-icons pinned"};function Ta(e,t,n,i,r,a){return g(),x("div",{class:Q(["tooltip-container",{shown:e.isShown}]),onMouseenter:t[0]||(t[0]=o=>e.isHovered=!0),onMouseleave:t[1]||(t[1]=o=>e.isHovered=!1),onClickCapture:t[2]||(t[2]=(...o)=>e.togglePinned&&e.togglePinned(...o))},[De(e.$slots,"default",{},void 0,!0),e.elementComp?(g(),A(ee(e.elementComp),{key:0})):P("",!0),d(Zt,{name:"fade"},{default:V(()=>{var o;return[e.isShown?(g(),x("div",{key:0,class:Q(["tooltip",{top:e.unref(e.direction)===e.Direction.Up,left:e.unref(e.direction)===e.Direction.Left,right:e.unref(e.direction)===e.Direction.Right,bottom:e.unref(e.direction)===e.Direction.Down,...e.unref(e.classes)}]),style:W([{"--xoffset":e.unref(e.xoffset)||"0px","--yoffset":e.unref(e.yoffset)||"0px"},(o=e.unref(e.style))!=null?o:{}])},[e.showPin?(g(),x("span",Ma,"push_pin")):P("",!0),e.comp?(g(),A(ee(e.comp),{key:1})):P("",!0)],6)):P("",!0)]}),_:1})],34)}var re=q($a,[["render",Ta],["__scopeId","data-v-6102fa3a"]]);const rt=e=>(qe("data-v-7dec2dec"),e=e(),je(),e),Ia={class:"info-modal-header"},Pa=["src","alt"],Oa={class:"info-modal-title"},Aa={key:0},Ea={key:0},Va={key:0},Fa=rt(()=>p("div",null," Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb ",-1)),Da=rt(()=>p("br",null,null,-1)),Ra=rt(()=>p("br",null,null,-1)),Ba=["href"],qa=rt(()=>p("span",{class:"material-icons info-modal-discord"},"discord",-1)),ja=rt(()=>p("div",null,[p("a",{href:"https://discord.gg/WzejVAx",class:"info-modal-discord-link"},[p("span",{class:"material-icons info-modal-discord"},"discord"),C(" The Paper Pilot Community ")])],-1)),La=rt(()=>p("div",null,[p("a",{href:"https://discord.gg/F3xveHV",class:"info-modal-discord-link"},[p("span",{class:"material-icons info-modal-discord"},"discord"),C(" The Modding Tree ")])],-1)),za=rt(()=>p("br",null,null,-1));var Ga=E({__name:"Info",props:{changelog:null},setup(e,{expose:t}){const n=e,{title:i,logo:r,author:a,discordName:o,discordLink:s,versionNumber:u,versionTitle:c}=J,h=ne(n),v=O(!1),b=N(()=>Jt(T.timePlayed)),w=N(()=>D(j(()=>d(K,null,[li.map(oe)]))));t({open(){v.value=!0}});function S(){var $;($=l(h.changelog))==null||$.open()}return($,R)=>(g(),A(Je,{modelValue:v.value,"onUpdate:modelValue":R[0]||(R[0]=ke=>v.value=ke)},{header:V(()=>[p("div",Ia,[l(r)?(g(),x("img",{key:0,class:"info-modal-logo",src:l(r),alt:l(i)},null,8,Pa)):P("",!0),p("div",Oa,[p("h2",null,G(l(i)),1),p("h4",null,[C(" v"+G(l(u)),1),l(c)?(g(),x("span",Aa,": "+G(l(c)),1)):P("",!0)])])])]),body:V(({shown:ke})=>[ke?(g(),x("div",Ea,[l(a)?(g(),x("div",Va,"By "+G(l(a)),1)):P("",!0),Fa,Da,p("div",{class:"link",onClick:S},"Changelog"),Ra,p("div",null,[l(s)?(g(),x("a",{key:0,href:l(s),class:"info-modal-discord-link"},[qa,C(" "+G(l(o)),1)],8,Ba)):P("",!0)]),ja,La,za,p("div",null,"Time Played: "+G(l(b)),1),(g(),A(ee(l(w))))])):P("",!0)]),_:1},8,["modelValue"]))}});var Ua=q(Ga,[["__scopeId","data-v-7dec2dec"]]);const Ha={class:"field"},Wa={key:0,class:"field-title"},yn=E({__name:"Select",props:{title:null,modelValue:null,options:null,placeholder:null,closeOnSelect:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){var o;const n=e,i=it(Ze(n,"title"),"span"),r=O((o=n.options.find(s=>s.value===n.modelValue))!=null?o:null);Ie(Ze(n,"modelValue"),s=>{var u;ae(r)!==s&&(r.value=(u=n.options.find(c=>c.value===s))!=null?u:null)});function a(s){t("update:modelValue",s.value)}return(s,u)=>(g(),x("div",Ha,[l(i)?(g(),x("span",Wa,[(g(),A(ee(l(i))))])):P("",!0),d(l(Wi),{options:e.options,modelValue:r.value,"onUpdate:modelValue":[u[0]||(u[0]=c=>r.value=c),a],min:1,"label-by":"label",placeholder:e.placeholder,"close-on-select":e.closeOnSelect},null,8,["options","modelValue","placeholder","close-on-select"])]))}});const Ya={class:"field"},Ka=E({__name:"Toggle",props:{title:null,modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=N(()=>D(l(n.title)||"","span")),r=N({get(){return!!n.modelValue},set(a){t("update:modelValue",a)}});return(a,o)=>(g(),x("label",Ya,[Kt(p("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":o[0]||(o[0]=s=>fe(r)?r.value=s:null)},null,512),[[ji,l(r)]]),(g(),A(ee(l(i))))]))}});var we=q(Ka,[["__scopeId","data-v-2b109500"]]);const vi=e=>(qe("data-v-bc13791c"),e=e(),je(),e),Za=vi(()=>p("div",{class:"header"},[p("h2",null,"Options")],-1)),Ja=vi(()=>p("hr",null,null,-1));var Xa=E({__name:"Options",setup(e,{expose:t}){const n=O(!1);t({open(){n.value=!0}});const i=Object.keys(ze).map(S=>({label:ei(S),value:S})),r=N(()=>D(j(()=>d(K,null,[oi.map(oe)])))),{showTPS:a,theme:o,unthrottled:s}=ne(Z),{autosave:u,offlineProd:c}=ne(T),h=N({get(){return T.devSpeed===0},set(S){T.devSpeed=S?0:null}}),v=j(()=>d("span",null,[C("Offline Production"),d(re,{display:"Save-specific"},{default:()=>[C("*")]})])),b=j(()=>d("span",null,[C("Autosave"),d(re,{display:"Save-specific"},{default:()=>[C("*")]})])),w=j(()=>d("span",null,[C("Pause game"),d(re,{display:"Save-specific"},{default:()=>[C("*")]})]));return(S,$)=>(g(),A(Je,{modelValue:n.value,"onUpdate:modelValue":$[6]||($[6]=R=>n.value=R)},{header:V(()=>[Za]),body:V(()=>[d(yn,{title:"Theme",options:l(i),modelValue:l(o),"onUpdate:modelValue":$[0]||($[0]=R=>fe(o)?o.value=R:null)},null,8,["options","modelValue"]),(g(),A(ee(l(r)))),d(we,{title:"Show TPS",modelValue:l(a),"onUpdate:modelValue":$[1]||($[1]=R=>fe(a)?a.value=R:null)},null,8,["modelValue"]),Ja,d(we,{title:"Unthrottled",modelValue:l(s),"onUpdate:modelValue":$[2]||($[2]=R=>fe(s)?s.value=R:null)},null,8,["modelValue"]),d(we,{title:l(v),modelValue:l(c),"onUpdate:modelValue":$[3]||($[3]=R=>fe(c)?c.value=R:null)},null,8,["title","modelValue"]),d(we,{title:l(b),modelValue:l(u),"onUpdate:modelValue":$[4]||($[4]=R=>fe(u)?u.value=R:null)},null,8,["title","modelValue"]),l(J).enablePausing?(g(),A(we,{key:0,title:l(w),modelValue:l(h),"onUpdate:modelValue":$[5]||($[5]=R=>fe(h)?h.value=R:null)},null,8,["title","modelValue"])):P("",!0)]),_:1},8,["modelValue"]))}});var Qa=q(Xa,[["__scopeId","data-v-bc13791c"]]);const eo=["onSubmit"],to={class:"field"},no={key:0,class:"field-title"},io=["placeholder"],ro=E({__name:"Text",props:{title:null,modelValue:null,textArea:{type:Boolean},placeholder:null,maxHeight:null},emits:["update:modelValue","submit"],setup(e,{emit:t}){const i=ne(e),r=N(()=>{var u;return((u=i.title)==null?void 0:u.value)&&D(l(i.title.value),"span")}),a=O(null);Tt(()=>{var u;(u=a.value)==null||u.focus()});const o=N({get(){return l(i.modelValue)||""},set(u){t("update:modelValue",u)}});function s(){t("submit")}return(u,c)=>(g(),x("form",{onSubmit:_t(s,["prevent"])},[p("div",to,[l(r)?(g(),x("span",no,[(g(),A(ee(l(r))))])):P("",!0),e.textArea?(g(),A(l(Ki),{key:1,modelValue:l(o),"onUpdate:modelValue":c[0]||(c[0]=h=>fe(o)?o.value=h:null),placeholder:e.placeholder,maxHeight:e.maxHeight,onBlur:s,ref_key:"field",ref:a},null,8,["modelValue","placeholder","maxHeight"])):Kt((g(),x("input",{key:2,type:"text","onUpdate:modelValue":c[1]||(c[1]=h=>fe(o)?o.value=h:null),placeholder:e.placeholder,class:Q({fullWidth:!e.title}),onBlur:s,ref_key:"field",ref:a},null,42,io)),[[Hn,l(o)]])])],40,eo))}});var _n=q(ro,[["__scopeId","data-v-d74adb0a"]]);const ao={key:0},oo=["onClick","disabled"],so={key:0},lo=["onClick"],uo=E({__name:"DangerButton",props:{disabled:{type:Boolean},skipConfirm:{type:Boolean}},emits:["click","confirmingChanged"],setup(e,{emit:t}){const i=ne(e),r=O(!1);Ie(r,s=>{t("confirmingChanged",s)});function a(){if(l(i.skipConfirm)){t("click");return}r.value&&t("click"),r.value=!r.value}function o(){r.value=!1}return(s,u)=>(g(),x("span",{class:Q(["container",{confirming:r.value}])},[r.value?(g(),x("span",ao,"Are you sure?")):P("",!0),p("button",{onClick:_t(a,["stop"]),class:"button danger",disabled:e.disabled},[r.value?(g(),x("span",so,"Yes")):De(s.$slots,"default",{key:1},void 0,!0)],8,oo),r.value?(g(),x("button",{key:1,class:"button",onClick:_t(o,["stop"])},"No",8,lo)):P("",!0)],2))}});var co=q(uo,[["__scopeId","data-v-2f8ef34c"]]);const fo=["onClick"],po=E({__name:"FeedbackButton",props:{left:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=O(!1),i=O(null);function r(){t("click"),i.value&&clearTimeout(i.value),n.value=!1,Ve(()=>{n.value=!0,i.value=setTimeout(()=>n.value=!1,500)})}return(a,o)=>(g(),x("button",{onClick:_t(r,["stop"]),class:Q(["feedback",{activated:n.value,left:e.left}])},[De(a.$slots,"default",{},void 0,!0)],10,fo))}});var mo=q(po,[["__scopeId","data-v-01a1b95c"]]);const Ge=e=>(qe("data-v-0136bef4"),e=e(),je(),e),go=Ge(()=>p("div",{class:"handle material-icons"},"drag_handle",-1)),vo={key:0,class:"actions"},ho=Ge(()=>p("span",{class:"material-icons"},"content_paste",-1)),bo=Ge(()=>p("span",{class:"material-icons"},"content_copy",-1)),yo=Ge(()=>p("span",{class:"material-icons"},"edit",-1)),_o=Ge(()=>p("span",{class:"material-icons",style:{margin:"-2px"}},"delete",-1)),ko={key:1,class:"actions"},wo=Ge(()=>p("span",{class:"material-icons"},"check",-1)),xo=Ge(()=>p("span",{class:"material-icons"},"close",-1)),No={key:2,class:"details"},So={class:"save-version"},Co=Ge(()=>p("br",null,null,-1)),$o={key:0},Mo={key:3,class:"details"},To={key:4,class:"details error"},Io=Ge(()=>p("br",null,null,-1)),Po=E({__name:"Save",props:{save:null},emits:["export","open","duplicate","delete","editName"],setup(e,{emit:t}){const n=e,{save:i}=ne(n),r=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),a=O(!1),o=O(!1),s=O("");Ie(a,()=>s.value=i.value.name||"");const u=N(()=>i.value&&i.value.id===T.id),c=N(()=>u.value?T.time:i.value&&i.value.time||0);function h(){t("editName",s.value),a.value=!1}return(v,b)=>(g(),x("div",{class:Q(["save",{active:l(u)}])},[go,a.value?(g(),x("div",ko,[p("button",{onClick:h,class:"button"},[d(re,{display:"Save",direction:l(X).Left,class:"info"},{default:V(()=>[wo]),_:1},8,["direction"])]),p("button",{onClick:b[5]||(b[5]=w=>a.value=!a.value),class:"button"},[d(re,{display:"Cancel",direction:l(X).Left,class:"info"},{default:V(()=>[xo]),_:1},8,["direction"])])])):(g(),x("div",vo,[l(i).error==null&&!o.value?(g(),A(mo,{key:0,onClick:b[0]||(b[0]=w=>t("export")),class:"button",left:""},{default:V(()=>[d(re,{display:"Export",direction:l(X).Left,class:"info"},{default:V(()=>[ho]),_:1},8,["direction"])]),_:1})):P("",!0),l(i).error==null&&!o.value?(g(),x("button",{key:1,onClick:b[1]||(b[1]=w=>t("duplicate")),class:"button"},[d(re,{display:"Duplicate",direction:l(X).Left,class:"info"},{default:V(()=>[bo]),_:1},8,["direction"])])):P("",!0),l(i).error==null&&!o.value?(g(),x("button",{key:2,onClick:b[2]||(b[2]=w=>a.value=!a.value),class:"button"},[d(re,{display:"Edit Name",direction:l(X).Left,class:"info"},{default:V(()=>[yo]),_:1},8,["direction"])])):P("",!0),d(co,{disabled:l(u),onClick:b[3]||(b[3]=w=>t("delete")),onConfirmingChanged:b[4]||(b[4]=w=>o.value=w)},{default:V(()=>[d(re,{display:"Delete",direction:l(X).Left,class:"info"},{default:V(()=>[_o]),_:1},8,["direction"])]),_:1},8,["disabled"])])),l(i).error==null&&!a.value?(g(),x("div",No,[p("button",{class:"button open",onClick:b[6]||(b[6]=w=>t("open"))},[p("h3",null,G(l(i).name),1)]),p("span",So,"v"+G(l(i).modVersion),1),Co,l(c)?(g(),x("div",$o,"Last played "+G(l(r).format(l(c))),1)):P("",!0)])):l(i).error==null&&a.value?(g(),x("div",Mo,[d(_n,{modelValue:s.value,"onUpdate:modelValue":b[7]||(b[7]=w=>s.value=w),class:"editname",onSubmit:h},null,8,["modelValue"])])):(g(),x("div",To,[C(" Error: Failed to load save with id "+G(l(i).id),1),Io,C(G(l(i).error),1)]))],2))}});var Oo=q(Po,[["__scopeId","data-v-0136bef4"]]);const kn=e=>(qe("data-v-3b9991aa"),e=e(),je(),e),Ao=kn(()=>p("h2",null,"Saves Manager",-1)),Eo={class:"modal-footer"},Vo={class:"field"},Fo=kn(()=>p("span",{class:"field-title"},"Create Save",-1)),Do={class:"field-buttons"},Ro={class:"footer"},Bo=kn(()=>p("div",{style:{"flex-grow":"1"}},null,-1)),qo=E({__name:"SavesManager",setup(e,{expose:t}){const n=O(!1),i=O(null);t({open(){n.value=!0}});const r=O(!1),a=O(""),o=O(null);Ie(a,M=>{M?Ve(()=>{try{if(M[0]!=="{")if(M[0]==="e")M=decodeURIComponent(escape(atob(M)));else if(M[0]==="\u1BE1")M=Ye.decompressFromUTF16(M);else{console.warn("Unable to determine preset encoding",M),r.value=!0;return}const I=JSON.parse(M);if(typeof I!="object"){r.value=!0;return}const U=qt();I.id=U,Ae(I),a.value="",r.value=!1,Z.saves.push(U)}catch{r.value=!0}}):r.value=!1});let s={},u=O(Object.keys(s).reduce((M,I)=>(M.push({label:I.split("/").slice(-1)[0].slice(0,-4),value:s[I]}),M),[]));const c=Yt({});function h(M){if(c[M]==null){let I=localStorage.getItem(M);if(I==null)c[M]={error:"Save doesn't exist in localStorage",id:M};else if(I==="dW5kZWZpbmVk")c[M]={error:"Save is undefined",id:M};else try{if(I[0]!=="{")if(I[0]==="e")I=decodeURIComponent(escape(atob(I)));else if(I[0]==="\u1BE1")I=Ye.decompressFromUTF16(I);else return console.warn("Unable to determine preset encoding",I),r.value=!0,c[M]={error:"Unable to determine preset encoding",id:M},c[M];c[M]={...JSON.parse(I),id:M}}catch(U){c[M]={error:U,id:M},console.warn(`SavesManager: Failed to load info about save with id ${M}: +${U} +${I}`)}}return c[M]}Ie(n,M=>{M&&Object.keys(c).forEach(I=>delete c[I])});const v=N(()=>Z.saves.reduce((M,I)=>(M[I]=h(I),M),{}));function b(M){let I;switch(T.id===M?I=ii(T[ce]):I=JSON.stringify(v.value[M]),J.exportEncoding){default:console.warn(`Unknown save encoding: ${J.exportEncoding}. Defaulting to lz`);case"lz":I=Ye.compressToUTF16(I);break;case"base64":I=btoa(unescape(encodeURIComponent(I)));break;case"plain":break}const U=document.createElement("textarea");U.value=I,document.body.appendChild(U),U.select(),U.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(U)}function w(M){T.id===M&&Ae();const I={...v.value[M],id:qt()};Ae(I),Z.saves.push(I.id)}function S(M){Z.saves=Z.saves.filter(I=>I!==M),localStorage.removeItem(M),c[M]=void 0}function $(M){v.value[T.id].time=T.time,Ae(),c[T.id]=void 0,nt(v.value[M]),c[M]=void 0}function R(M){if(o.value=M,Ve(()=>{o.value=null}),M[0]!=="{")if(M[0]==="e")M=decodeURIComponent(escape(atob(M)));else if(M[0]==="\u1BE1")M=Ye.decompressFromUTF16(M);else{console.warn("Unable to determine preset encoding",M);return}const I=JSON.parse(M);I.id=qt(),Ae(I),Z.saves.push(I.id),$(I.id)}function ke(M,I){const U=v.value[M];U&&(U.name=I,T.id===M?(T.name=I,Ae()):(Ae(U),c[M]=void 0))}return(M,I)=>(g(),A(Je,{modelValue:n.value,"onUpdate:modelValue":I[4]||(I[4]=U=>n.value=U),ref_key:"modal",ref:i},{header:V(()=>[Ao]),body:V(({shown:U})=>[U?(g(),A(l(Yi),{key:0,list:l(Z).saves,handle:".handle",itemKey:be=>be},{item:V(({element:be})=>[d(Oo,{save:l(v)[be],onOpen:te=>$(be),onExport:te=>b(be),onEditName:te=>ke(be,te),onDuplicate:te=>w(be),onDelete:te=>S(be)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):P("",!0)]),footer:V(()=>[p("div",Eo,[d(_n,{modelValue:a.value,"onUpdate:modelValue":I[0]||(I[0]=U=>a.value=U),title:"Import Save",placeholder:"Paste your save here!",class:Q({importingFailed:r.value})},null,8,["modelValue","class"]),p("div",Vo,[Fo,p("div",Do,[p("button",{class:"button",onClick:I[1]||(I[1]=U=>$(l(ut)().id))},"New Game"),Object.keys(l(u)).length>0?(g(),A(yn,{key:0,options:l(u),modelValue:o.value,"onUpdate:modelValue":I[2]||(I[2]=U=>R(U)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):P("",!0)])]),p("div",Ro,[Bo,p("button",{class:"button modal-default-button",onClick:I[3]||(I[3]=U=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var hi=q(qo,[["__scopeId","data-v-3b9991aa"]]);const Se=e=>(qe("data-v-4a3f8425"),e=e(),je(),e),jo=["src","alt"],Lo={key:1,class:"title"},zo=Se(()=>p("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Go={class:"discord"},Uo={class:"discord-links"},Ho={key:0},Wo=["href"],Yo=Se(()=>p("li",null,[p("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Ko=Se(()=>p("li",null,[p("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Zo={href:"https://forums.moddingtree.com/",target:"_blank"},Jo=Se(()=>p("span",{class:"material-icons"},"forum",-1)),Xo=Se(()=>p("span",{class:"material-icons"},"info",-1)),Qo=Se(()=>p("span",{class:"material-icons"},"library_books",-1)),es=Se(()=>p("span",{class:"material-icons"},"settings",-1)),ts=Se(()=>p("span",{class:"material-icons"},"library_books",-1)),ns=Se(()=>p("span",{class:"material-icons"},"settings",-1)),is=Se(()=>p("span",{class:"material-icons"},"info",-1)),rs={href:"https://forums.moddingtree.com/",target:"_blank"},as=Se(()=>p("span",{class:"material-icons"},"forum",-1)),os={class:"discord"},ss={class:"discord-links"},ls={key:0},us=["href"],ds=Se(()=>p("li",null,[p("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),cs=Se(()=>p("li",null,[p("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),fs=E({__name:"Nav",setup(e){const t=O(null),n=O(null),i=O(null),r=O(null),{useHeader:a,banner:o,title:s,discordName:u,discordLink:c,versionNumber:h}=J;function v(){window.open(c,"mywindow")}return(b,w)=>(g(),x(K,null,[l(a)?(g(),x("div",Be({key:0,class:"nav"},b.$attrs),[l(o)?(g(),x("img",{key:0,src:l(o),class:"banner",alt:l(s)},null,8,jo)):(g(),x("div",Lo,G(l(s)),1)),p("div",{onClick:w[0]||(w[0]=S=>{var $;return($=r.value)==null?void 0:$.open()}),class:"version-container"},[d(re,{display:"Changelog",direction:l(X).Down,class:"version"},{default:V(()=>[p("span",null,"v"+G(l(h)),1)]),_:1},8,["direction"])]),zo,p("div",Go,[p("span",{onClick:v,class:"material-icons"},"discord"),p("ul",Uo,[l(c)?(g(),x("li",Ho,[p("a",{href:l(c),target:"_blank"},G(l(u)),9,Wo)])):P("",!0),Yo,Ko])]),p("div",null,[p("a",Zo,[d(re,{display:"Forums",direction:l(X).Down,yoffset:"5px"},{default:V(()=>[Jo]),_:1},8,["direction"])])]),p("div",{onClick:w[1]||(w[1]=S=>{var $;return($=t.value)==null?void 0:$.open()})},[d(re,{display:"Info",direction:l(X).Down,class:"info"},{default:V(()=>[Xo]),_:1},8,["direction"])]),p("div",{onClick:w[2]||(w[2]=S=>{var $;return($=n.value)==null?void 0:$.open()})},[d(re,{display:"Saves",direction:l(X).Down,xoffset:"-20px"},{default:V(()=>[Qo]),_:1},8,["direction"])]),p("div",{onClick:w[3]||(w[3]=S=>{var $;return($=i.value)==null?void 0:$.open()})},[d(re,{display:"Options",direction:l(X).Down,xoffset:"-66px"},{default:V(()=>[es]),_:1},8,["direction"])])],16)):(g(),x("div",Be({key:1,class:"overlay-nav"},b.$attrs),[p("div",{onClick:w[4]||(w[4]=S=>{var $;return($=r.value)==null?void 0:$.open()}),class:"version-container"},[d(re,{display:"Changelog",direction:l(X).Right,xoffset:"25%",class:"version"},{default:V(()=>[p("span",null,"v"+G(l(h)),1)]),_:1},8,["direction"])]),p("div",{onClick:w[5]||(w[5]=S=>{var $;return($=n.value)==null?void 0:$.open()})},[d(re,{display:"Saves",direction:l(X).Right},{default:V(()=>[ts]),_:1},8,["direction"])]),p("div",{onClick:w[6]||(w[6]=S=>{var $;return($=i.value)==null?void 0:$.open()})},[d(re,{display:"Options",direction:l(X).Right},{default:V(()=>[ns]),_:1},8,["direction"])]),p("div",{onClick:w[7]||(w[7]=S=>{var $;return($=t.value)==null?void 0:$.open()})},[d(re,{display:"Info",direction:l(X).Right},{default:V(()=>[is]),_:1},8,["direction"])]),p("div",null,[p("a",rs,[d(re,{display:"Forums",direction:l(X).Right,xoffset:"7px"},{default:V(()=>[as]),_:1},8,["direction"])])]),p("div",os,[p("span",{onClick:v,class:"material-icons"},"discord"),p("ul",ss,[l(c)?(g(),x("li",ls,[p("a",{href:l(c),target:"_blank"},G(l(u)),9,us)])):P("",!0),ds,cs])])],16)),d(Ua,{ref_key:"info",ref:t,changelog:r.value},null,8,["changelog"]),d(hi,{ref_key:"savesManager",ref:n},null,512),d(Qa,{ref_key:"options",ref:i},null,512),d(Ca,{ref_key:"changelog",ref:r},null,512)],64))}});var bi=q(fs,[["__scopeId","data-v-4a3f8425"]]);const ps={class:"inner-tab"},ms=E({__name:"Game",setup(e){const t=Ze(T,"tabs"),n=N(()=>Object.keys(_e)),i=J.useHeader;function r(a){const{display:o,minimized:s,minWidth:u,name:c,color:h,minimizable:v,nodes:b}=a;return{display:o,minimized:s,minWidth:u,name:c,color:h,minimizable:v,nodes:b}}return(a,o)=>(g(),x("div",{class:Q(["tabs-container",{useHeader:l(i)}])},[(g(!0),x(K,null,kt(l(t),(s,u)=>{var c,h;return g(),x("div",{key:u,class:Q(["tab",l((c=l(_e)[s])==null?void 0:c.classes)]),ref_for:!0,ref:`tab-${u}`,style:W(l((h=l(_e)[s])==null?void 0:h.style))},[u===0&&!l(i)?(g(),A(bi,{key:0})):P("",!0),p("div",ps,[l(n).includes(s)?(g(),A(wa,Be({key:0},r(l(_e)[s]),{index:u,tab:()=>{var v;return(v=a.$refs[`tab-${u}`])==null?void 0:v[0]}}),null,16,["index","tab"])):(g(),A(ee(s),{key:1,index:u},null,8,["index"]))])],6)}),128))],2))}});var gs=q(ms,[["__scopeId","data-v-4cb9ce0f"]]);const vs={},hs=e=>(qe("data-v-89b4b00a"),e=e(),je(),e),bs=hs(()=>p("svg",{id:"eaRe02fYmMp1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 228 521","shape-rendering":"geometricPrecision","text-rendering":"geometricPrecision"},[p("g",{id:"P"},[p("path",{d:"m 101,512.877 c -17.547386,-5.3519 -50.794681,-10.26296 -80,0 10.737201,-217.43031 5.7244,-300.999 0,-464.9995 0,0 46.6144,-37.1164 80,-42.00002 33.386,-4.883633 86.025,10.45942 120,50.00002 5,30 -4.353,106.6565 -44,156.0005 -34.149,42.5 -130,38.48 -130,92.999 0,102 54,208 54,208 z",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"10","stroke-linecap":"round","stroke-miterlimit":"16"},id:"trunk",class:"svg-elem-1"}),p("path",{d:"M 221,55.8775 C 209.023,126.453 185.39,166.835 158.997,191.5 93.783098,252.444 11.718998,217.436 46.999998,304.877",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"vine2",class:"svg-elem-2"}),p("path",{d:"m 194.5,188 c -11.225,4.447 -19.066,5.134 -35.503,3.5",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine4",class:"svg-elem-3"}),p("path",{d:"M 73.499996,246.5 C 111.145,245.626 127.011,238.775 156.5,228",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine3",class:"svg-elem-4"}),p("path",{d:"M 221,55.8775 C 169.5,17.8262 86.0943,44.9468 47,107 c -4.743,7.528 -7.1041,15.373 -8.326,24 -3.5282,24.91 2.4426,56.34 -12.0011,105.5",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"vine1",class:"svg-elem-5"}),p("path",{d:"M 21,47.8775 38.674,131",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine2",class:"svg-elem-6"}),p("path",{d:"m 3,326.5 c 13.1783,22.208 16.4863,42.834 21.6997,81",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine1",class:"svg-elem-7"})])],-1));function ys(e,t){return g(),A(Zt,{appear:""},{default:V(()=>[bs]),_:1})}var _s=q(vs,[["render",ys],["__scopeId","data-v-89b4b00a"]]);const ye=E({__name:"Spacer",props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(t,n)=>(g(),x("div",{style:W({width:e.width,height:e.height})},null,4))}});function Ct(e,t="points",n=0,i=void 0){const r=fe(e)?e:le(e);return r.displayName=t,r.precision=n,r.small=i,r}function yi(e){const t=le(e.value);return Ie(e,n=>{f.gt(n,t.value)&&(t.value=n)}),t}function ks(e){const t=le(e.value);return Ie(e,(n,i)=>{f.gt(n,i)&&(t.value=f.add(t.value,f.sub(n,i)))}),t}const ws=new f("10^^8"),xs=new f("1e100");function Ns(e,t){const n=O(0),i=O(0),r=O(0);return ge.on("update",o=>{if(i.value=0,f.lte(e.value,xs)){r.value=e.value;return}let s=e.value,u=r.value;if(r.value=s,f.gt(s,u))if(f.gte(s,ws))s=f.slog(s,1e10),u=f.slog(u,1e10),n.value=s.sub(u).div(o),i.value=-1;else for(;f.div(s,u).log(10).div(o).gte("100")&&i.value<=5&&f.gt(u,0);)s=f.log10(s),u=f.log10(u),n.value=s.sub(u).div(o),i.value++}),N(()=>i.value===0?t?se(t.value,e.precision,e.small)+" "+e.displayName+"/s":"":se(n.value)+" OOM"+(i.value<0?"^OOM":"^"+i.value)+"s/sec")}function Le(e,t){const n=t!=null?t:e.value;return f.eq(e.precision,0)?ve(n):se(n,e.precision,e.small)}const Ss=["x1","y1","x2","y2"],Cs=E({__name:"Link",props:{link:null,startNode:null,endNode:null,boundingRect:null},setup(e){const n=ne(e),i=N(()=>{const a=n.startNode.value.rect,o=n.boundingRect.value,s=o?{x:a.x+a.width/2-o.x,y:a.y+a.height/2-o.y}:{x:0,y:0};return n.link.value.offsetStart&&(s.x+=n.link.value.offsetStart.x,s.y+=n.link.value.offsetStart.y),s}),r=N(()=>{const a=n.endNode.value.rect,o=n.boundingRect.value,s=o?{x:a.x+a.width/2-o.x,y:a.y+a.height/2-o.y}:{x:0,y:0};return n.link.value.offsetEnd&&(s.x+=n.link.value.offsetEnd.x,s.y+=n.link.value.offsetEnd.y),s});return(a,o)=>(g(),x("line",Be({"stroke-width":"15px",stroke:"white"},e.link,{x1:l(i).x,y1:l(i).y,x2:l(r).x,y2:l(r).y}),null,16,Ss))}});const $s=E({__name:"Links",props:{links:null},setup(e){var u;const n=Ze(e,"links"),i=O(null),r=Lt(hn,O({})),a=Lt(bn,O(void 0)),o=O((u=i.value)==null?void 0:u.getBoundingClientRect());Ie(a,()=>{var c;return o.value=(c=i.value)==null?void 0:c.getBoundingClientRect()}),Tt(()=>{var c;return o.value=(c=i.value)==null?void 0:c.getBoundingClientRect()});const s=N(()=>{var h,v;const c=r.value;return(v=(h=n.value)==null?void 0:h.filter(b=>{var w,S;return((w=c[b.startNode.id])==null?void 0:w.rect)&&((S=c[b.startNode.id])==null?void 0:S.rect)}))!=null?v:[]});return(c,h)=>(g(),x(K,null,[l(s)?(g(),x("svg",Li(Be({key:0},c.$attrs)),[(g(!0),x(K,null,kt(l(s),(v,b)=>(g(),A(Cs,{key:b,link:v,boundingRect:o.value,startNode:l(r)[v.startNode.id],endNode:l(r)[v.endNode.id]},null,8,["link","boundingRect","startNode","endNode"]))),128))],16)):P("",!0),p("div",{ref_key:"resizeListener",ref:i,class:"resize-listener"},null,512)],64))}});var _i=q($s,[["__scopeId","data-v-c139d80e"]]),Ms=E({props:{nodes:{type:k(Array),required:!0},leftSideNodes:k(Array),rightSideNodes:k(Array),branches:k(Array)},components:{Links:_i},setup(e){const{nodes:t,leftSideNodes:n,rightSideNodes:i}=ne(e),r=xe();Ne(()=>{const s=ae(t);r.value=D(j(()=>d(K,null,[s.map(u=>d("span",{class:"row tree-row",style:"margin: 50px auto;"},[u.map(Re)]))])))});const a=xe();Ne(()=>{const s=ae(n);a.value=s?D(j(()=>d("span",{class:"left-side-nodes small"},[s.map(Re)]))):""});const o=xe();return Ne(()=>{const s=ae(i);o.value=s?D(j(()=>d("span",{class:"side-nodes small"},[s.map(Re)]))):""}),{unref:l,nodesComp:r,leftNodesComp:a,rightNodesComp:o}}});function Ts(e,t,n,i,r,a){const o=de("Links");return g(),x(K,null,[(g(),A(ee(e.nodesComp))),e.leftNodesComp?(g(),A(ee(e.leftNodesComp),{key:0})):P("",!0),e.rightNodesComp?(g(),A(ee(e.rightNodesComp),{key:1})):P("",!0),e.branches?(g(),A(o,{key:2,links:e.unref(e.branches)},null,8,["links"])):P("",!0)],64)}var Is=q(Ms,[["render",Ts],["__scopeId","data-v-39ca96d0"]]);const Ps={key:0},Os={key:0,class:"mark star"},As=["src"],Es=E({__name:"MarkNode",props:{mark:{type:[Boolean,String]}},setup(e){return(t,n)=>e.mark?(g(),x("div",Ps,[e.mark===!0?(g(),x("div",Os)):(g(),x("img",{key:1,class:"mark",src:e.mark},null,8,As))])):P("",!0)}});var ft=q(Es,[["__scopeId","data-v-2207999f"]]);const Vs=E({__name:"Node",props:{id:null},setup(e){const n=ne(e),i=Lt(gn,()=>{}),r=Lt(vn,()=>{}),a=O(null),o=N(()=>a.value&&a.value.parentElement);return Ie([o,n.id],([s,u],[c,h])=>{c&&r(l(h)),s&&i(u,s)}),Un(()=>r(l(n.id))),(s,u)=>(g(),x("div",{class:"node",ref_key:"node",ref:a},null,512))}});var Ue=q(Vs,[["__scopeId","data-v-2cb1bb79"]]);const Fs=E({props:{display:k(Object,String,Function),visibility:{type:k(Number),required:!0},style:k(String,Object,Array),classes:k(Object),onClick:Function,onHold:Function,color:k(String),glowColor:k(String),canClick:{type:k(Boolean),required:!0},mark:k(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:ft,Node:Ue},setup(e){const{onClick:t,onHold:n,display:i}=ne(e),r=it(i),{start:a,stop:o}=mn(t,n);return{start:a,stop:o,comp:r,unref:l,Visibility:B,isCoercableComponent:Te}}});function Ds(e,t,n,i,r,a){var u;const o=de("MarkNode"),s=de("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,style:W({visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0}),class:Q({treeNode:!0,can:e.unref(e.canClick),...e.unref(e.classes)}),onClick:t[0]||(t[0]=(...c)=>e.onClick&&e.onClick(...c)),onMousedown:t[1]||(t[1]=(...c)=>e.start&&e.start(...c)),onMouseleave:t[2]||(t[2]=(...c)=>e.stop&&e.stop(...c)),onMouseup:t[3]||(t[3]=(...c)=>e.stop&&e.stop(...c)),onTouchstartPassive:t[4]||(t[4]=(...c)=>e.start&&e.start(...c)),onTouchendPassive:t[5]||(t[5]=(...c)=>e.stop&&e.stop(...c)),onTouchcancelPassive:t[6]||(t[6]=(...c)=>e.stop&&e.stop(...c))},[p("div",{style:W([{backgroundColor:e.unref(e.color),boxShadow:`-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 20px ${e.unref(e.glowColor)}`},(u=e.unref(e.style))!=null?u:[]])},[(g(),A(ee(e.unref(e.comp))))],4),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(s,{id:e.id},null,8,["id"])],38)):P("",!0)}var Rs=q(Fs,[["render",Ds],["__scopeId","data-v-1c0c107d"]]);const Bs=Symbol("TreeNode"),qs=Symbol("Tree");function yt(e){return me(()=>{var n;const t=(n=e==null?void 0:e())!=null?n:{};if(t.id=he("treeNode-"),t.type=Bs,t[ue]=Rs,y(t,"visibility"),z(t,"visibility",B.Visible),y(t,"canClick"),z(t,"canClick",!0),y(t,"color"),y(t,"display"),y(t,"glowColor"),y(t,"classes"),y(t,"style"),y(t,"mark"),t.onClick){const i=t.onClick.bind(t);t.onClick=function(){l(t.canClick)&&i()}}if(t.onHold){const i=t.onHold.bind(t);t.onHold=function(){l(t.canClick)&&i()}}return t[pe]=function(){const{display:i,visibility:r,style:a,classes:o,onClick:s,onHold:u,color:c,glowColor:h,canClick:v,mark:b,id:w}=this;return{display:i,visibility:r,style:a,classes:o,onClick:s,onHold:u,color:c,glowColor:h,canClick:v,mark:b,id:w}},t})}function ki(e){return me(()=>{const t=e();return t.id=he("tree-"),t.type=qs,t[ue]=Is,t.isResetting=O(!1),t.resettingNode=xe(null),t.reset=function(n){var r,a;const i=t;i.isResetting.value=!0,i.resettingNode.value=n,(r=i.resetPropagation)==null||r.call(i,i,n),(a=i.onReset)==null||a.call(i,n),i.isResetting.value=!1,i.resettingNode.value=null},t.links=N(()=>{var i;return(i=l(t.branches))!=null?i:[]}),y(t,"visibility"),z(t,"visibility",B.Visible),y(t,"nodes"),y(t,"leftSideNodes"),y(t,"rightSideNodes"),y(t,"branches"),t[pe]=function(){const{nodes:n,leftSideNodes:i,rightSideNodes:r,branches:a}=this;return{nodes:n,leftSideNodes:i,rightSideNodes:r,branches:a}},t})}const js=function(e,t){const n=[t];let i=[t];if(e.branches!=null){const r=l(e.branches);for(;i.length>0;){const a=[];i.forEach(o=>{r.filter(s=>s.startNode===o||s.endNode===o).map(s=>s.startNode===o?s.endNode:s.startNode).filter(s=>!n.includes(s)).forEach(s=>{var u;a.includes(s)||(a.push(s),(u=s.reset)==null||u.reset())})}),i=a,n.push(...i)}}};function wi(e,t=null,n=0){const i=Me(n);return N(()=>t==null||f.gte(e.value,l(i))?Le(e)+" "+e.displayName:`Reach ${f.eq(t.precision,0)?ve(l(i)):se(l(i),t.precision)} ${t.displayName} to unlock (You have ${f.eq(t.precision,0)?ve(t.value):se(t.value,t.precision)})`)}const Ls=E({props:{visibility:{type:k(Number),required:!0},display:k(Object,String,Function),earned:{type:k(Boolean),required:!0},image:k(String),style:k(String,Object,Array),classes:k(Object),mark:k(Boolean,String),id:{type:String,required:!0}},components:{Node:Ue,MarkNode:ft},setup(e){const{display:t}=ne(e);return{component:it(t),unref:l,Visibility:B}}});function zs(e,t,n,i,r,a){var u;const o=de("MarkNode"),s=de("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0,backgroundImage:e.earned&&e.image&&`url(${e.image})`||""},(u=e.unref(e.style))!=null?u:[]]),class:Q({feature:!0,achievement:!0,locked:!e.unref(e.earned),bought:e.unref(e.earned),...e.unref(e.classes)})},[e.component?(g(),A(ee(e.component),{key:0})):P("",!0),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(s,{id:e.id},null,8,["id"])],6)):P("",!0)}var Gs=q(Ls,[["render",zs],["__scopeId","data-v-58163dab"]]);ge.on("setupVue",e=>e.use(Zi));function wn(e="white",t="8px"){return{transform:"scale(1.05, 1.05)",borderColor:"rgba(0, 0, 0, 0.125)",boxShadow:`-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 ${t} ${e}`,zIndex:1}}function Us(){return wn("red","20px")}const Hs=fn(),Ws=Symbol("Achievement");function rn(e){const t=le(!1);return me(()=>{var i;const n=(i=e==null?void 0:e())!=null?i:{};if(n.id=he("achievement-"),n.type=Ws,n[ue]=Gs,n.earned=t,n.complete=function(){t.value=!0},y(n,"visibility"),z(n,"visibility",B.Visible),y(n,"display"),y(n,"mark"),y(n,"image"),y(n,"style"),y(n,"classes"),n[pe]=function(){const{visibility:r,display:a,earned:o,image:s,style:u,classes:c,mark:h,id:v}=this;return{visibility:r,display:a,earned:o,image:s,style:l(u),classes:c,mark:h,id:v}},n.shouldEarn){const r=n;Ne(()=>{var a,o;if(Z.active===T.id&&!r.earned.value&&l(r.visibility)===B.Visible&&((a=r.shouldEarn)==null?void 0:a.call(r))&&(r.earned.value=!0,(o=r.onComplete)==null||o.call(r),r.display)){const s=D(l(r.display));Hs.info(d("div",null,[d("h3",null,[C("Achievement earned!")]),d("div",null,[d(s,null,null)])]))}})}return n})}const Ys=E({props:{visibility:{type:k(Number),required:!0},onClick:Function,onHold:Function,display:{type:k(Object,String,Function),required:!0},title:k(Object,String,Function),style:k(String,Object,Array),canClick:{type:k(Boolean),required:!0},id:{type:String,required:!0}},components:{Node:Ue},setup(e){const{onClick:t,onHold:n,title:i,display:r}=ne(e),{start:a,stop:o}=mn(t,n),s=it(i),u=ct(r);return{start:a,stop:o,titleComponent:s,component:u,Visibility:B,unref:l}}}),Ks={key:0};function Zs(e,t,n,i,r,a){var s;const o=de("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("button",{key:0,class:Q({feature:!0,tile:!0,can:e.unref(e.canClick),locked:!e.unref(e.canClick)}),style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(s=e.unref(e.style))!=null?s:{}]),onClick:t[0]||(t[0]=(...u)=>e.onClick&&e.onClick(...u)),onMousedown:t[1]||(t[1]=(...u)=>e.start&&e.start(...u)),onMouseleave:t[2]||(t[2]=(...u)=>e.stop&&e.stop(...u)),onMouseup:t[3]||(t[3]=(...u)=>e.stop&&e.stop(...u)),onTouchstartPassive:t[4]||(t[4]=(...u)=>e.start&&e.start(...u)),onTouchendPassive:t[5]||(t[5]=(...u)=>e.stop&&e.stop(...u)),onTouchcancelPassive:t[6]||(t[6]=(...u)=>e.stop&&e.stop(...u))},[e.title?(g(),x("div",Ks,[(g(),A(ee(e.titleComponent)))])):P("",!0),(g(),A(ee(e.component),{style:{"white-space":"pre-line"}})),d(o,{id:e.id},null,8,["id"])],38)):P("",!0)}var Js=q(Ys,[["render",Zs],["__scopeId","data-v-26ac0e82"]]);const Xs=E({props:{visibility:{type:k(Number),required:!0},rows:{type:k(Number),required:!0},cols:{type:k(Number),required:!0},cells:{type:k(Object),required:!0}},components:{GridCell:Js},setup(){const e=N(()=>ze[Z.theme].mergeAdjacent);function t(n){const{visibility:i,onClick:r,onHold:a,display:o,title:s,style:u,canClick:c,id:h}=n;return{visibility:i,onClick:r,onHold:a,display:o,title:s,style:u,canClick:c,id:h}}return{unref:l,gatherCellProps:t,Visibility:B,mergeAdjacent:e}}});function Qs(e,t,n,i,r,a){const o=de("GridCell");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,style:W({visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0}),class:"table"},[(g(!0),x(K,null,kt(e.unref(e.rows),s=>(g(),x("div",{class:Q(["row",{mergeAdjacent:e.mergeAdjacent}]),key:s},[(g(!0),x(K,null,kt(e.unref(e.cols),u=>(g(),A(o,Be({key:u},e.gatherCellProps(e.unref(e.cells)[s*100+u])),null,16))),128))],2))),128))],4)):P("",!0)}var el=q(Xs,[["render",Qs]]);function tl(e){return new Proxy({},nl(e))}function nl(e){const t=N(()=>{const n=[];for(let i=1;i<=l(e.rows);i++)for(let r=1;r<=l(e.cols);r++)n.push((i*100+r).toString());return n});return{get(n,i){if(i==="isProxy")return!0;if(typeof i=="symbol")return e[i];if(!!t.value.includes(i.toString()))return n[i]==null&&(n[i]=new Proxy(e,il(i.toString()))),n[i]},set(n,i,r){return console.warn("Cannot set grid cells",n,i,r),!1},ownKeys(){return t.value},has(n,i){return t.value.includes(i.toString())},getOwnPropertyDescriptor(n,i){if(t.value.includes(i.toString()))return{configurable:!0,enumerable:!0,writable:!1}}}}function il(e){const t=["id","visibility","canClick","startState","state","style","classes","title","display","onClick","onHold"],n={};return{get(i,r,a){if(r==="isProxy")return!0;let o=i[r];return tt(o)?()=>o.call(a,e,i.getState(e)):o!=null||typeof r=="symbol"?o:(r=r.slice(0,1).toUpperCase()+r.slice(1),r==="startState"?o.call(a,e):(o=i[`get${r}`],tt(o)?(r in n||(n[r]=N(()=>o.call(a,e,i.getState(e)))),n[r].value):o!=null?l(o):(o=i[`on${r}`],tt(o)?()=>o.call(a,e,i.getState(e)):o!=null?o:i[r])))},set(i,r,a,o){return r=`set${r.slice(0,1).toUpperCase()+r.slice(1)}`,r in i&&tt(i[r])&&i[r].length<3?(i[r].call(o,e,a),!0):(console.warn(`No setter for "${r}".`,i),!1)},ownKeys(){return t},has(i,r){return t.includes(r.toString())},getOwnPropertyDescriptor(i,r){if(t.includes(r.toString()))return{configurable:!0,enumerable:!0,writable:!1}}}}function rl(e){const t=le({});return me(()=>{const n=e();if(n.id=he("grid-"),n[ue]=el,n.cellState=t,n.getID=function(i){return n.id+"-"+i},n.getState=function(i){return this.cellState.value[i]!=null?t.value[i]:this.cells[i].startState},n.setState=function(i,r){t.value[i]=r},n.cells=tl(n),y(n,"visibility"),z(n,"visibility",B.Visible),y(n,"rows"),y(n,"cols"),y(n,"getVisibility"),z(n,"getVisibility",B.Visible),y(n,"getCanClick"),z(n,"getCanClick",!0),y(n,"getStartState"),y(n,"getStyle"),y(n,"getClasses"),y(n,"getTitle"),y(n,"getDisplay"),n.onClick){const i=n.onClick.bind(n);n.onClick=function(r,a){l(n.cells[r].canClick)&&i(r,a)}}if(n.onHold){const i=n.onHold.bind(n);n.onHold=function(r,a){l(n.cells[r].canClick)&&i(r,a)}}return n[pe]=function(){const{visibility:i,rows:r,cols:a,cells:o,id:s}=this;return{visibility:i,rows:r,cols:a,cells:o,id:s}},n})}var al=E({props:{display:{type:k(Object,String,Function),required:!0},visibility:{type:k(Number),required:!0},style:k(Object,String,Array),classes:k(Object),onClick:Function,onHold:Function,canClick:{type:k(Boolean),required:!0},small:Boolean,mark:k(Boolean,String),id:{type:String,required:!0}},components:{Node:Ue,MarkNode:ft},setup(e){const{display:t,onClick:n,onHold:i}=ne(e),r=xe("");Ne(()=>{const s=ae(t);if(s==null){r.value="";return}if(Te(s)){r.value=D(s);return}const u=D(s.title||"","h3"),c=D(s.description,"div");r.value=D(j(()=>d("span",null,[s.title?d("div",null,[d(u,null,null)]):null,d(c,null,null)])))});const{start:a,stop:o}=mn(n,i);return{start:a,stop:o,comp:r,Visibility:B,unref:l}}});function ol(e,t,n,i,r,a){var u;const o=de("MarkNode"),s=de("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("button",{key:0,style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(u=e.unref(e.style))!=null?u:[]]),onClick:t[0]||(t[0]=(...c)=>e.onClick&&e.onClick(...c)),onMousedown:t[1]||(t[1]=(...c)=>e.start&&e.start(...c)),onMouseleave:t[2]||(t[2]=(...c)=>e.stop&&e.stop(...c)),onMouseup:t[3]||(t[3]=(...c)=>e.stop&&e.stop(...c)),onTouchstartPassive:t[4]||(t[4]=(...c)=>e.start&&e.start(...c)),onTouchendPassive:t[5]||(t[5]=(...c)=>e.stop&&e.stop(...c)),onTouchcancelPassive:t[6]||(t[6]=(...c)=>e.stop&&e.stop(...c)),class:Q({feature:!0,clickable:!0,can:e.unref(e.canClick),locked:!e.unref(e.canClick),small:e.small,...e.unref(e.classes)})},[e.unref(e.comp)?(g(),A(ee(e.unref(e.comp)),{key:0})):P("",!0),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(s,{id:e.id},null,8,["id"])],38)):P("",!0)}var xi=q(al,[["render",ol],["__scopeId","data-v-5e7c90cf"]]);const sl=Symbol("Clickable");function $t(e){return me(()=>{var n;const t=(n=e==null?void 0:e())!=null?n:{};if(t.id=he("clickable-"),t.type=sl,t[ue]=xi,y(t,"visibility"),z(t,"visibility",B.Visible),y(t,"canClick"),z(t,"canClick",!0),y(t,"classes"),y(t,"style"),y(t,"mark"),y(t,"display"),t.onClick){const i=t.onClick.bind(t);t.onClick=function(r){l(t.canClick)&&i(r)}}if(t.onHold){const i=t.onHold.bind(t);t.onHold=function(){l(t.canClick)&&i()}}return t[pe]=function(){const{display:i,visibility:r,style:a,classes:o,onClick:s,onHold:u,canClick:c,small:h,mark:v,id:b}=this;return{display:i,visibility:r,style:l(a),classes:o,onClick:s,onHold:u,canClick:c,small:h,mark:v,id:b}},t})}function Ni(e){return $t(()=>{const t=e();y(t,"showNextAt"),z(t,"showNextAt",!0),z(t,"minimumGain",1),t.resetDescription==null?t.resetDescription=N(()=>f.lt(t.conversion.gainResource.value,1e3)?"Reset for ":""):y(t,"resetDescription"),t.display==null&&(t.display=j(()=>d("span",null,[l(t.resetDescription),d("b",null,[Le(t.conversion.gainResource,f.max(l(t.conversion.actualGain),l(t.minimumGain)))])," ",t.conversion.gainResource.displayName,l(t.showNextAt)?d("div",null,[d("br",null,null),l(t.conversion.buyMax)?"Next:":"Req:"," ",Le(t.conversion.baseResource,l(t.conversion.buyMax)||f.floor(l(t.conversion.actualGain)).neq(1)?l(t.conversion.nextAt):l(t.conversion.currentAt))," ",t.conversion.baseResource.displayName]):null]))),t.canClick==null&&(t.canClick=N(()=>f.gte(l(t.conversion.actualGain),l(t.minimumGain))));const n=t.onClick;return t.onClick=function(){!l(t.canClick)||(t.conversion.convert(),t.tree.reset(t.treeNode),t.resetTime&&(t.resetTime.value=t.resetTime[St]),n==null||n())},t})}function Si(e){return yt(()=>{const t=e();return y(t,"display"),z(t,"display",t.layerID),y(t,"append"),{...t,display:t.display,onClick:l(t.append)?function(){if(T.tabs.includes(t.layerID)){const n=T.tabs.lastIndexOf(t.layerID);T.tabs.splice(n,1)}else T.tabs.push(t.layerID)}:function(){T.tabs.splice(1,1,t.layerID)}}})}function Ci(e){return me(()=>{const t=e();return t.currentGain==null&&(t.currentGain=N(()=>{let n=t.gainModifier?t.gainModifier.apply(t.scaling.currentGain(t)):t.scaling.currentGain(t);return n=f.floor(n).max(0),l(t.buyMax)||(n=n.min(1)),n})),t.actualGain==null&&(t.actualGain=t.currentGain),t.currentAt==null&&(t.currentAt=N(()=>{let n=t.scaling.currentAt(t);return t.roundUpCost&&(n=f.ceil(n)),n})),t.nextAt==null&&(t.nextAt=N(()=>{let n=t.scaling.nextAt(t);return t.roundUpCost&&(n=f.ceil(n)),n})),t.convert==null&&(t.convert=function(){var i;const n=l(t.currentGain);t.gainResource.value=f.add(t.gainResource.value,n),t.spend(n),(i=t.onConvert)==null||i.call(t,n)}),t.spend==null&&(t.spend=function(){t.baseResource.value=0}),y(t,"currentGain"),y(t,"actualGain"),y(t,"currentAt"),y(t,"nextAt"),y(t,"buyMax"),z(t,"buyMax",!0),y(t,"roundUpCost"),z(t,"roundUpCost",!0),t})}function $i(e,t){const n=Me(e),i=Me(t);return{currentGain(r){let a=l(r.baseResource.value);if(r.costModifier&&(a=r.costModifier.apply(a)),f.lt(a,l(n)))return 0;const o=f.div(a,l(n)).pow(l(i));return o.isNan()?new f(0):o},currentAt(r){let a=l(r.currentGain);return r.gainModifier&&(a=r.gainModifier.revert(a)),a=f.max(0,a).root(l(i)).times(l(n)),r.costModifier&&(a=r.costModifier.revert(a)),a},nextAt(r){let a=f.add(l(r.currentGain),1).floor();return r.gainModifier&&(a=r.gainModifier.revert(a)),a=f.max(0,a).root(l(i)).times(l(n)).max(l(n)),r.costModifier&&(a=r.costModifier.revert(a)),a}}}function ll(e){return Ci(e)}function ul(e){return Ci(()=>{const t=e();return z(t,"buyMax",!1),t.currentGain==null&&(t.currentGain=N(()=>{let n=t.gainModifier?t.gainModifier.apply(t.scaling.currentGain(t)):t.scaling.currentGain(t);return n=f.floor(n).max(t.gainResource.value),l(t.buyMax)||(n=n.min(f.add(t.gainResource.value,1))),n})),t.actualGain==null&&(t.actualGain=N(()=>{let n=f.sub(f.floor(t.scaling.currentGain(t)),t.gainResource.value).max(0);return l(t.buyMax)||(n=n.min(1)),n})),z(t,"convert",function(){var i;const n=l(t.actualGain);t.gainResource.value=t.gainModifier?t.gainModifier.apply(l(t.currentGain)):l(t.currentGain),t.spend(n),(i=t.onConvert)==null||i.call(t,n)}),t})}function dl(e,t,n=.5){return f.lte(e,t)?e:f.pow(e,n).times(f.pow(t,f.sub(1,n)))}function cl(e,t,n=.5){return{...e,currentGain:i=>dl(e.currentGain(i),l(t),l(n))}}const fl=E({props:{visibility:{type:k(Number),required:!0},display:{type:k(Object,String,Function),required:!0},title:{type:k(Object,String,Function),required:!0},color:k(String),collapsed:{type:Object,required:!0},style:k(Object,String,Array),titleStyle:k(Object,String,Array),bodyStyle:k(Object,String,Array),classes:k(Object),id:{type:String,required:!0}},components:{Node:Ue,CollapseTransition:Hi},setup(e){const{title:t,display:n}=ne(e),i=ct(t),r=ct(n),a=N(()=>ze[Z.theme].mergeAdjacent);return{titleComponent:i,bodyComponent:r,stacked:a,unref:l,Visibility:B}}}),pl=e=>(qe("data-v-338c9154"),e=e(),je(),e),ml=pl(()=>p("span",{class:"toggle"},"\u25BC",-1));function gl(e,t,n,i,r,a){var u;const o=de("CollapseTransition"),s=de("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,class:Q(["infobox",{collapsed:e.unref(e.collapsed),stacked:e.stacked,...e.unref(e.classes)}]),style:W([{borderColor:e.unref(e.color),visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(u=e.unref(e.style))!=null?u:{}])},[p("button",{class:"title",style:W([{backgroundColor:e.unref(e.color)},e.unref(e.titleStyle)||[]]),onClick:t[0]||(t[0]=c=>e.collapsed.value=!e.unref(e.collapsed))},[ml,(g(),A(ee(e.titleComponent)))],4),d(o,null,{default:V(()=>[e.unref(e.collapsed)?P("",!0):(g(),x("div",{key:0,class:"body",style:W({backgroundColor:e.unref(e.color)})},[(g(),A(ee(e.bodyComponent),{style:W(e.unref(e.bodyStyle))},null,8,["style"]))],4))]),_:1}),d(s,{id:e.id},null,8,["id"])],6)):P("",!0)}var vl=q(fl,[["render",gl],["__scopeId","data-v-338c9154"]]);const hl=Symbol("Infobox");function Mi(e){const t=le(!1);return me(()=>{const n=e();return n.id=he("infobox-"),n.type=hl,n[ue]=vl,n.collapsed=t,y(n,"visibility"),z(n,"visibility",B.Visible),y(n,"color"),y(n,"style"),y(n,"titleStyle"),y(n,"bodyStyle"),y(n,"classes"),y(n,"title"),y(n,"display"),n[pe]=function(){const{visibility:i,display:r,title:a,color:o,collapsed:s,style:u,titleStyle:c,bodyStyle:h,classes:v,id:b}=this;return{visibility:i,display:r,title:a,color:o,collapsed:s,style:l(u),titleStyle:c,bodyStyle:h,classes:v,id:b}},n})}var bl=E({props:{style:k(String,Object,Array),classes:k(Object),onInit:{type:Function,required:!0},id:{type:String,required:!0},onContainerResized:Function,onHotReload:Function},setup(e){const t=O(null),n=new ResizeObserver(a),i=O(null);Tt(()=>{var s,u;const o=i.value;o!=null&&(n.observe(o),t.value=new Ji({resizeTo:o,backgroundAlpha:0}),(s=i.value)==null||s.appendChild(t.value.view),(u=e.onInit)==null||u.call(e,t.value)),a(),e.onHotReload&&Ve(e.onHotReload)}),zi(()=>{var o;(o=t.value)==null||o.destroy()});let r=!0;function a(){r&&(r=!1,Ve(()=>{var o;i.value!=null&&e.onContainerResized&&(e.onContainerResized(i.value.getBoundingClientRect()),(o=t.value)==null||o.resize()),r=!0}))}return document.fonts.ready.then(a),{unref:l,resizeListener:i}}});function yl(e,t,n,i,r,a){return g(),x("div",{ref:"resizeListener",class:Q(["resize-listener",e.unref(e.classes)]),style:W(e.unref(e.style))},null,6)}var _l=q(bl,[["render",yl],["__scopeId","data-v-8adf21fa"]]);const kl=Symbol("Particles");function wl(e){return me(()=>{var r,a;const t=(r=e==null?void 0:e())!=null?r:{};t.id=he("particles-"),t.type=kl,t[ue]=_l,t.app=xe(null),t.addEmitter=o=>{const s=t;return s.app.value?Promise.resolve(new Vn(s.app.value.stage,o)):new Promise(u=>{n.push({resolve:u,config:o})})};let n=[];function i(o){t.app.value=o,n.forEach(({resolve:s,config:u})=>s(new Vn(o.stage,u))),n=[]}return t.onContainerResized=(a=t.onContainerResized)==null?void 0:a.bind(t),t[pe]=function(){const{id:o,style:s,classes:u,onContainerResized:c,onHotReload:h}=this;return{id:o,style:l(s),classes:u,onContainerResized:c,onHotReload:h,onInit:i}},t})}window.upgradeConfig=Xi;const xl=Symbol("Reset");function Ti(e){return me(()=>{const t=e();return t.id=he("reset-"),t.type=xl,t.reset=function(){var i;const n=r=>{r&&typeof r=="object"&&(Nt in r?r[Nt].value=r[St]:!(r instanceof f)&&!fe(r)&&Object.values(r).forEach(a=>n(a)))};l(t.thingsToReset).forEach(n),ge.emit("reset",t),(i=t.onReset)==null||i.call(t)},y(t,"thingsToReset"),t})}const Dt={};ge.on("removeLayer",e=>{var t;(t=Dt[e.id])==null||t.call(Dt),Dt[e.id]=void 0});const Nl=E({__name:"Sticky",setup(e){const t=O("0"),n=new ResizeObserver(r),i=O(null);function r(){let a=i.value;if(a==null)return;let o=0;for(;a.previousSibling;){const s=a.previousSibling;s.dataset&&"vSticky"in s.dataset&&(o+=s.offsetHeight),a=s}t.value=o+"px"}return Ve(r),document.fonts.ready.then(r),Tt(()=>{var o;const a=(o=i.value)==null?void 0:o.parentElement;a&&n.observe(a)}),(a,o)=>(g(),x("div",{class:"sticky",style:W({top:t.value}),ref_key:"element",ref:i,"data-v-sticky":""},[De(a.$slots,"default",{},void 0,!0)],4))}});var Wt=q(Nl,[["__scopeId","data-v-21495571"]]);const Ii=E({__name:"Resource",props:{resource:null,color:null},setup(e){const t=e,n=N(()=>Le(t.resource));return(i,r)=>(g(),x("h2",{style:W({color:e.color,"text-shadow":"0px 0px 10px "+e.color})},G(l(n)),5))}});const Sl={class:"main-display"},Cl={key:0},$l={key:1},Ml=C(", "),Pi=E({__name:"MainDisplay",props:{resource:null,color:null,classes:null,style:null,effectDisplay:null},setup(e){const n=ne(e),i=O(null),r=it(n.effectDisplay),a=N(()=>f.lt(n.resource.value,"1e1000"));return(o,s)=>(g(),A(Wt,null,{default:V(()=>{var u,c;return[p("div",{class:"main-display-container",style:W({height:`${((c=(u=i.value)==null?void 0:u.$el.clientHeight)!=null?c:0)+50}px`})},[p("div",Sl,[l(a)?(g(),x("span",Cl,"You have ")):P("",!0),d(Ii,{resource:e.resource,color:e.color||"white"},null,8,["resource","color"]),C(" "+G(e.resource.displayName),1),l(r)?(g(),x("span",$l,[Ml,(g(),A(ee(l(r)),{ref_key:"effectRef",ref:i},null,512))])):P("",!0)])],4)]}),_:1}))}});function un(e,t){return y(t,"display"),y(t,"classes"),y(t,"style"),y(t,"direction"),z(t,"direction",X.Up),y(t,"xoffset"),y(t,"yoffset"),t.pinnable&&("pinned"in e?(console.error("Cannot add pinnable tooltip to element that already has a property called 'pinned'"),t.pinnable=!1):e.pinned=t.pinned=le(!1)),Ve(()=>{const n=e[ue];e[ue]=re;const i=e[pe].bind(e);e[pe]=function(){const{display:a,classes:o,style:s,direction:u,xoffset:c,yoffset:h,pinned:v}=this;return{element:{[ue]:n,[pe]:i},display:a,classes:o,style:l(s),direction:u,xoffset:c,yoffset:h,pinned:v}}.bind(t)}),t}function Tl(e,t,n){const i=Me(e),r=Me(t),a=n==null?void 0:Me(n);return{apply:o=>f.add(o,l(i)),revert:o=>f.sub(o,l(i)),enabled:a,description:t==null?void 0:j(()=>d("div",{class:"modifier-container"},[d("span",{class:"modifier-amount"},[f.gte(l(i),0)?"+":"",se(l(i))]),l(r)?d("span",{class:"modifier-description"},[Re(l(r))]):null]))}}function Il(e,t,n){const i=Me(e),r=Me(t),a=n==null?void 0:Me(n);return{apply:o=>f.times(o,l(i)),revert:o=>f.div(o,l(i)),enabled:a,description:t==null?void 0:j(()=>d("div",{class:"modifier-container"},[d("span",{class:"modifier-amount"},[C("x"),se(l(i))]),l(r)?d("span",{class:"modifier-description"},[Re(l(r))]):null]))}}function Pl(e,t,n){const i=Me(e),r=Me(t),a=n==null?void 0:Me(n);return{apply:o=>f.pow(o,l(i)),revert:o=>f.root(o,l(i)),enabled:a,description:t==null?void 0:j(()=>d("div",{class:"modifier-container"},[d("span",{class:"modifier-amount"},[C("^"),se(l(i))]),l(r)?d("span",{class:"modifier-description"},[Re(l(r))]):null]))}}function Ol(...e){return{apply:t=>e.filter(n=>l(n.enabled)!==!1).reduce((n,i)=>i.apply(n),t),revert:e.every(t=>t.revert!=null)?t=>e.filter(n=>l(n.enabled)!==!1).reduceRight((n,i)=>i.revert(n),t):void 0,enabled:N(()=>e.filter(t=>l(t.enabled)!==!1).length>0),description:j(()=>d(K,null,[e.filter(t=>l(t.enabled)!==!1).map(t=>l(t.description)).filter(t=>t).map(Re)]))}}function Al(e,t,n,i=1,r="",a="Base"){return d("div",null,[d("h3",null,[e,t?d("span",{class:"subtitle"},[C(" ("),t,C(")")]):null]),d("br",null,null),d("div",{class:"modifier-container"},[d("span",{class:"modifier-amount"},[se(i),r]),d("span",{class:"modifier-description"},[Re(a)])]),Re(l(n.description)),d("hr",null,null),C("Total: "),se(n.apply(i)),r])}const El={class:"field"},Vl={key:0,class:"field-title"},Fl=["min","max"],Dl=E({__name:"Slider",props:{title:null,modelValue:null,min:null,max:null},emits:["update:modelValue"],setup(e,{emit:t}){const i=ne(e),r=N({get(){return String(l(i.modelValue)||0)},set(a){t("update:modelValue",Number(a))}});return(a,o)=>(g(),x("div",El,[e.title?(g(),x("span",Vl,G(e.title),1)):P("",!0),d(re,{display:`${l(r)}`,class:Q({fullWidth:!e.title}),direction:l(X).Down},{default:V(()=>[Kt(p("input",{type:"range","onUpdate:modelValue":o[0]||(o[0]=s=>fe(r)?r.value=s:null),min:e.min,max:e.max},null,8,Fl),[[Hn,l(r)]])]),_:1},8,["display","class","direction"])]))}});var Rl=q(Dl,[["__scopeId","data-v-1b053b9f"]]);const Bl=E({__name:"VerticalRule",props:{height:null},setup(e){return(t,n)=>(g(),x("div",{class:"vr",style:W({height:e.height})},null,4))}});var ql=q(Bl,[["__scopeId","data-v-5e0a978a"]]);const jl=E({props:{progress:{type:k(String,Object,Number),required:!0},width:{type:k(Number),required:!0},height:{type:k(Number),required:!0},direction:{type:k(String),required:!0},display:k(Object,String,Function),visibility:{type:k(Number),required:!0},style:k(Object,String,Array),classes:k(Object),borderStyle:k(Object,String,Array),textStyle:k(Object,String,Array),baseStyle:k(Object,String,Array),fillStyle:k(Object,String,Array),mark:k(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:ft,Node:Ue},setup(e){const{progress:t,width:n,height:i,direction:r,display:a}=ne(e),o=N(()=>{let c=t.value instanceof f?t.value.toNumber():Number(t.value);return(1-Math.min(Math.max(c,0),1))*100}),s=N(()=>{const c={width:ae(n)+.5+"px",height:ae(i)+.5+"px"};switch(l(r)){case X.Up:c.clipPath=`inset(${o.value}% 0% 0% 0%)`,c.width=ae(n)+1+"px";break;case X.Down:c.clipPath=`inset(0% 0% ${o.value}% 0%)`,c.width=ae(n)+1+"px";break;case X.Right:c.clipPath=`inset(0% ${o.value}% 0% 0%)`;break;case X.Left:c.clipPath=`inset(0% 0% 0% ${o.value} + '%)`;break;case X.Default:c.clipPath="inset(0% 50% 0% 0%)";break}return c}),u=it(a);return{normalizedProgress:o,barStyle:s,component:u,unref:l,Visibility:B}}});function Ll(e,t,n,i,r,a){var u,c,h,v,b,w,S;const o=de("MarkNode"),s=de("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,style:W([{width:e.unref(e.width)+"px",height:e.unref(e.height)+"px",visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(u=e.unref(e.style))!=null?u:{}]),class:Q({bar:!0,...e.unref(e.classes)})},[p("div",{class:"overlayTextContainer border",style:W([{width:e.unref(e.width)+"px",height:e.unref(e.height)+"px"},(c=e.unref(e.borderStyle))!=null?c:{}])},[e.component?(g(),x("span",{key:0,class:"overlayText",style:W(e.unref(e.textStyle))},[(g(),A(ee(e.component)))],4)):P("",!0)],4),p("div",{class:"border",style:W([{width:e.unref(e.width)+"px",height:e.unref(e.height)+"px"},(h=e.unref(e.style))!=null?h:{},(v=e.unref(e.baseStyle))!=null?v:{},(b=e.unref(e.borderStyle))!=null?b:{}])},[p("div",{class:"fill",style:W([e.barStyle,(w=e.unref(e.style))!=null?w:{},(S=e.unref(e.fillStyle))!=null?S:{}])},null,4)],4),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(s,{id:e.id},null,8,["id"])],6)):P("",!0)}var zl=q(jl,[["render",Ll],["__scopeId","data-v-02d0d7b2"]]);const Gl=Symbol("Bar");function an(e){return me(()=>{const t=e();return t.id=he("bar-"),t.type=Gl,t[ue]=zl,y(t,"visibility"),z(t,"visibility",B.Visible),y(t,"width"),y(t,"height"),y(t,"direction"),y(t,"style"),y(t,"classes"),y(t,"borderStyle"),y(t,"baseStyle"),y(t,"textStyle"),y(t,"fillStyle"),y(t,"progress"),y(t,"display"),y(t,"mark"),t[pe]=function(){const{progress:n,width:i,height:r,direction:a,display:o,visibility:s,style:u,classes:c,borderStyle:h,textStyle:v,baseStyle:b,fillStyle:w,mark:S,id:$}=this;return{progress:n,width:i,height:r,direction:a,display:o,visibility:s,style:l(u),classes:c,borderStyle:h,textStyle:v,baseStyle:b,fillStyle:w,mark:S,id:$}},t})}const Ul=Symbol("Buyable");function Hl(e){const t=le(0);return me(()=>{var a,o;const n=e();if(n.canPurchase==null&&(n.resource==null||n.cost==null))throw console.warn("Cannot create buyable without a canPurchase property or a resource and cost property",n),"Cannot create buyable without a canPurchase property or a resource and cost property";n.id=he("buyable-"),n.type=Ul,n[ue]=xi,n.amount=t,n.canAfford=N(()=>{const s=n,u=l(s.cost);return s.resource!=null&&u!=null&&f.gte(s.resource.value,u)}),n.canPurchase==null&&(n.canPurchase=N(()=>l(n.visibility)===B.Visible&&l(n.canAfford)&&f.lt(n.amount.value,l(n.purchaseLimit)))),n.maxed=N(()=>f.gte(n.amount.value,l(n.purchaseLimit))),y(n,"classes");const i=n.classes;n.classes=N(()=>{const s=l(i)||{};return n.maxed.value&&(s.bought=!0),s}),y(n,"canPurchase"),n.canClick=n.canPurchase,n.onClick=n.purchase=(o=(a=n.onClick)!=null?a:n.purchase)!=null?o:function(){var c;const s=n;if(!l(s.canPurchase))return;const u=l(s.cost);s.cost!=null&&s.resource!=null&&(s.resource.value=f.sub(s.resource.value,u),s.amount.value=f.add(s.amount.value,1)),(c=s.onPurchase)==null||c.call(s,u)},y(n,"display");const r=n.display;return n.display=j(()=>{const s=l(r);if(Te(s)){const u=D(s);return d(u,null,null)}if(s!=null&&n.cost!=null&&n.resource!=null){const u=n,c=D(s.title||"","h3"),h=D(s.description||""),v=D(s.effectDisplay||"");return d("span",null,[s.title?d("div",null,[d(c,null,null)]):null,s.description?d(h,null,null):null,s.showAmount===!1?null:d("div",null,[d("br",null,null),l(u.purchaseLimit)===f.dInf?d(K,null,[C("Amount: "),ve(u.amount.value)]):d(K,null,[C("Amount: "),ve(u.amount.value),C(" /")," ",ve(l(u.purchaseLimit))])]),s.effectDisplay?d("div",null,[d("br",null,null),C("Currently: "),d(v,null,null)]):null,u.cost&&!u.maxed.value?d("div",null,[d("br",null,null),C("Cost: "),se(l(u.cost)||0)," ",n.resource.displayName]):null])}return""}),y(n,"visibility"),z(n,"visibility",B.Visible),y(n,"cost"),y(n,"resource"),y(n,"purchaseLimit"),z(n,"purchaseLimit",f.dInf),y(n,"style"),y(n,"mark"),y(n,"small"),n[pe]=function(){const{display:s,visibility:u,style:c,classes:h,onClick:v,canClick:b,small:w,mark:S,id:$}=this;return{display:s,visibility:u,style:l(c),classes:h,onClick:v,canClick:b,small:w,mark:S,id:$}},n})}var Wl=E({props:{active:{type:k(Boolean),required:!0},maxed:{type:k(Boolean),required:!0},canComplete:{type:k(Boolean),required:!0},display:k(String,Object,Function),visibility:{type:k(Number),required:!0},style:k(String,Object,Array),classes:k(Object),completed:{type:k(Boolean),required:!0},canStart:{type:k(Boolean),required:!0},mark:k(Boolean,String),id:{type:String,required:!0},toggle:{type:Function,required:!0}},components:{MarkNode:ft,Node:Ue},setup(e){const{active:t,maxed:n,canComplete:i,display:r}=ne(e),a=N(()=>t.value?i.value?"Finish":"Exit Early":n.value?"Completed":"Start"),o=xe(""),s=N(()=>{const u=ae(t),c=ae(i);return u?c?Us():wn():{}});return Ne(()=>{const u=ae(r);if(u==null){o.value="";return}if(Te(u)){o.value=D(u);return}const c=D(u.title||"","h3"),h=D(u.description,"div"),v=D(u.goal||""),b=D(u.reward||""),w=D(u.effectDisplay||"");o.value=D(j(()=>d("span",null,[u.title?d("div",null,[d(c,null,null)]):null,d(h,null,null),u.goal?d("div",null,[d("br",null,null),C("Goal: "),d(v,null,null)]):null,u.reward?d("div",null,[d("br",null,null),C("Reward: "),d(b,null,null)]):null,u.effectDisplay?d("div",null,[C("Currently: "),d(w,null,null)]):null])))}),{buttonText:a,notifyStyle:s,comp:o,Visibility:B,unref:l}}});const Yl=["disabled"];function Kl(e,t,n,i,r,a){var u;const o=de("MarkNode"),s=de("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.notifyStyle,(u=e.unref(e.style))!=null?u:{}]),class:Q({feature:!0,challenge:!0,done:e.unref(e.completed),canStart:e.unref(e.canStart)&&!e.unref(e.maxed),maxed:e.unref(e.maxed),...e.unref(e.classes)})},[p("button",{class:"toggleChallenge",onClick:t[0]||(t[0]=(...c)=>e.toggle&&e.toggle(...c)),disabled:!e.unref(e.canStart)||e.unref(e.maxed)},G(e.buttonText),9,Yl),e.unref(e.comp)?(g(),A(ee(e.unref(e.comp)),{key:0})):P("",!0),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(s,{id:e.id},null,8,["id"])],6)):P("",!0)}var Zl=q(Wl,[["render",Kl],["__scopeId","data-v-4d2947df"]]);const Jl=Symbol("ChallengeType");function Xl(e){const t=le(0),n=le(!1);return me(()=>{const i=e();if(i.canComplete==null&&(i.resource==null||i.goal==null))throw console.warn("Cannot create challenge without a canComplete property or a resource and goal property",i),"Cannot create challenge without a canComplete property or a resource and goal property";i.id=he("challenge-"),i.type=Jl,i[ue]=Zl,i.completions=t,i.active=n,i.completed=N(()=>f.gt(i.completions.value,0)),i.maxed=N(()=>f.gte(i.completions.value,l(i.completionLimit))),i.toggle=function(){var o,s,u,c,h;const a=i;if(a.active.value){if(l(a.canComplete)&&!a.maxed.value){let v=l(a.canComplete);typeof v=="boolean"&&(v=1),a.completions.value=f.min(f.add(a.completions.value,v),l(a.completionLimit)),(o=a.onComplete)==null||o.call(a)}a.active.value=!1,(s=a.onExit)==null||s.call(a),(u=a.reset)==null||u.reset()}else l(a.canStart)&&l(a.visibility)===B.Visible&&!a.maxed.value&&((c=a.reset)==null||c.reset(),a.active.value=!0,(h=a.onEnter)==null||h.call(a))},i.complete=function(a){var u,c,h;const o=i;let s=l(o.canComplete);o.active.value&&s!==!1&&(s===!0||f.neq(0,s))&&!o.maxed.value&&(typeof s=="boolean"&&(s=1),o.completions.value=f.min(f.add(o.completions.value,s),l(o.completionLimit)),(u=o.onComplete)==null||u.call(o),a!==!0&&(o.active.value=!1,(c=o.onExit)==null||c.call(o),(h=o.reset)==null||h.reset()))},y(i,"visibility"),z(i,"visibility",B.Visible);const r=i.visibility;return i.visibility=N(()=>Z.hideChallenges===!0&&l(i.maxed)?B.None:l(r)),i.canComplete==null&&(i.canComplete=N(()=>{const a=i;return!a.active.value||a.resource==null||a.goal==null?!1:f.gte(a.resource.value,l(a.goal))})),i.mark==null&&(i.mark=N(()=>f.gt(l(i.completionLimit),1)&&!!l(i.maxed))),y(i,"canStart"),z(i,"canStart",!0),y(i,"canComplete"),y(i,"completionLimit"),z(i,"completionLimit",1),y(i,"mark"),y(i,"goal"),y(i,"classes"),y(i,"style"),y(i,"display"),i.reset!=null&&ge.on("reset",a=>{a===i.reset&&i.active.value&&i.toggle()}),i[pe]=function(){const{active:a,maxed:o,canComplete:s,display:u,visibility:c,style:h,classes:v,completed:b,canStart:w,mark:S,id:$,toggle:R}=this;return{active:a,maxed:o,canComplete:s,display:u,visibility:c,style:l(h),classes:v,completed:b,canStart:w,mark:S,id:$,toggle:R}},i})}ge.on("loadSettings",e=>{z(e,"hideChallenges",!1)});si(j(()=>d(we,{title:"Hide Maxed Challenges","onUpdate:modelValue":e=>Z.hideChallenges=e,modelValue:Z.hideChallenges},null)));const Xt=Yt({}),xn=Symbol("Hotkey");function jn(e){return me(()=>{const t=e();return t.type=xn,y(t,"enabled"),z(t,"enabled",!0),y(t,"description"),t})}ge.on("addLayer",e=>{ti(e,xn).forEach(t=>{Xt[t.key]=t})});ge.on("removeLayer",e=>{ti(e,xn).forEach(t=>{Xt[t.key]=void 0})});document.onkeydown=function(e){var i;if(((i=e.target)==null?void 0:i.tagName)==="INPUT"||Nn.value&&!T.keepGoing)return;let t=e.key;e.shiftKey&&(t="shift+"+t),e.ctrlKey&&(t="ctrl+"+t);const n=Xt[t];n&&l(n.enabled)&&(e.preventDefault(),n.onPress())};ea(j(()=>{const e=Object.values(Xt).filter(t=>l(t==null?void 0:t.enabled));return e.length===0?"":d("div",null,[d("br",null,null),d("h4",null,[C("Hotkeys")]),e.map(t=>d("div",null,[t==null?void 0:t.key,C(": "),t==null?void 0:t.description]))])}));const Ql=Symbol("Links");function eu(e){return me(()=>{const t=e();return t.type=Ql,t[ue]=_i,y(t,"links"),t[pe]=function(){const{links:n}=this;return{links:n}},t})}var tu=E({props:{visibility:{type:k(Number),required:!0},display:{type:k(String,Object,Function),required:!0},style:k(String,Object,Array),classes:k(Object),earned:{type:k(Boolean),required:!0},id:{type:String,required:!0}},components:{Node:Ue},setup(e){const{display:t}=ne(e),n=xe("");return Ne(()=>{const i=ae(t);if(i==null){n.value="";return}if(Te(i)){n.value=D(i);return}const r=D(i.requirement,"h3"),a=D(i.effectDisplay||"","b"),o=D(i.optionsDisplay||"","span");n.value=D(j(()=>d("span",null,[d(r,null,null),i.effectDisplay?d("div",null,[d(a,null,null)]):null,i.optionsDisplay?d("div",{class:"equal-spaced"},[d(o,null,null)]):null])))}),{comp:n,unref:l,Visibility:B}}});function nu(e,t,n,i,r,a){var s;const o=de("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(s=e.unref(e.style))!=null?s:{}]),class:Q({feature:!0,milestone:!0,done:e.unref(e.earned),...e.unref(e.classes)})},[(g(),A(ee(e.unref(e.comp)))),d(o,{id:e.id},null,8,["id"])],6)):P("",!0)}var iu=q(tu,[["render",nu],["__scopeId","data-v-f4e8794e"]]);const ru=fn(),au=Symbol("Milestone");let Ke;(function(e){e.All="all",e.Configurable="configurable",e.Incomplete="incomplete",e.None="none"})(Ke||(Ke={}));function Ln(e){const t=le(!1);return me(()=>{var r;const n=(r=e==null?void 0:e())!=null?r:{};n.id=he("milestone-"),n.type=au,n[ue]=iu,n.earned=t,n.complete=function(){t.value=!0},y(n,"visibility"),z(n,"visibility",B.Visible);const i=n.visibility;if(n.visibility=N(()=>{const a=l(n.display);switch(Z.msDisplay){default:case Ke.All:return l(i);case Ke.Configurable:return l(n.earned)&&!(a!=null&&typeof a=="object"&&"optionsDisplay"in a)?B.None:l(i);case Ke.Incomplete:return l(n.earned)?B.None:l(i);case Ke.None:return B.None}}),y(n,"style"),y(n,"classes"),y(n,"display"),n[pe]=function(){const{visibility:a,display:o,style:s,classes:u,earned:c,id:h}=this;return{visibility:a,display:o,style:l(s),classes:u,earned:c,id:h}},n.shouldEarn){const a=n;Ne(()=>{var o,s;if(Z.active===T.id&&!a.earned.value&&l(a.visibility)===B.Visible&&((o=a.shouldEarn)==null?void 0:o.call(a))&&(a.earned.value=!0,(s=a.onComplete)==null||s.call(a),a.display)){const u=l(a.display),c=D(Te(u)?u:u.requirement);ru(d(K,null,[d("h3",null,[C("Milestone earned!")]),d("div",null,[d(c,null,null)])]))}})}return n})}ge.on("loadSettings",e=>{z(e,"msDisplay",Ke.All)});const ou=Object.values(Ke).map(e=>({label:ei(e),value:e}));si(j(()=>d(yn,{title:"Show Milestones",options:ou,"onUpdate:modelValue":e=>Z.msDisplay=e,modelValue:Z.msDisplay},null)));const su=E({__name:"Tab",props:{display:null},setup(e){const t=e,{display:n}=ne(t),i=ct(n);return(r,a)=>(g(),A(ee(l(i))))}}),lu=Symbol("Tab");function Rt(e){return me(()=>{const t=e();return t.id=he("tab-"),t.type=lu,t[ue]=su,t[pe]=function(){const{display:n}=this;return{display:n}},t})}const uu=E({props:{visibility:{type:k(Number),required:!0},display:{type:k(Object,String,Function),required:!0},style:k(String,Object,Array),classes:k(Object),glowColor:k(String),active:Boolean,floating:Boolean},emits:["selectTab"],setup(e,{emit:t}){const{display:n,glowColor:i,floating:r}=ne(e),a=ct(n),o=N(()=>{const u=ae(i);return u?l(r)?wn(u):{boxShadow:`0px 9px 5px -6px ${u}`}:{}});function s(){t("selectTab")}return{selectTab:s,component:a,glowColorStyle:o,unref:l,Visibility:B}}});function du(e,t,n,i,r,a){var o;return e.unref(e.visibility)!==e.Visibility.None?(g(),x("button",{key:0,onClick:t[0]||(t[0]=(...s)=>e.selectTab&&e.selectTab(...s)),class:Q(["tabButton",{active:e.active,...e.unref(e.classes)}]),style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.glowColorStyle,(o=e.unref(e.style))!=null?o:{}])},[(g(),A(ee(e.component)))],6)):P("",!0)}var Oi=q(uu,[["render",du],["__scopeId","data-v-610a2549"]]);const cu=E({props:{visibility:{type:k(Number),required:!0},activeTab:{type:k(Object),required:!0},selected:{type:Object,required:!0},tabs:{type:k(Object),required:!0},style:k(String,Object,Array),classes:k(Object),buttonContainerStyle:k(String,Object,Array),buttonContainerClasses:k(Object)},components:{Sticky:Wt,TabButton:Oi},setup(e){const{activeTab:t}=ne(e),n=N(()=>ze[Z.theme].floatingTabs),i=xe("");Ne(()=>{const s=ae(t);if(s==null){i.value="";return}if(Te(s)){i.value=D(s);return}i.value=D(l(s.display))});const r=N(()=>{const s=ae(t);return Te(s)||!s?void 0:l(s.classes)}),a=N(()=>{const s=ae(t);return Te(s)||!s?void 0:l(s.style)});function o(s){const{display:u,style:c,classes:h,glowColor:v,visibility:b}=s;return{display:u,style:l(c),classes:h,glowColor:v,visibility:b}}return{floating:n,tabClasses:r,tabStyle:a,Visibility:B,component:i,gatherButtonProps:o,unref:l}}});function fu(e,t,n,i,r,a){var u,c;const o=de("TabButton"),s=de("Sticky");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,class:Q(["tab-family-container",{...e.unref(e.classes),...e.tabClasses}]),style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(u=e.unref(e.style))!=null?u:[],(c=e.tabStyle)!=null?c:[]])},[d(s,{class:Q(["tab-buttons-container",e.unref(e.buttonContainerClasses)]),style:W(e.unref(e.buttonContainerStyle))},{default:V(()=>[p("div",{class:Q(["tab-buttons",{floating:e.floating}])},[(g(!0),x(K,null,kt(e.unref(e.tabs),(h,v)=>(g(),A(o,Be({onSelectTab:b=>e.selected.value=v,floating:e.floating,key:v,active:e.unref(h.tab)===e.unref(e.activeTab)},e.gatherButtonProps(h)),null,16,["onSelectTab","floating","active"]))),128))],2)]),_:1},8,["class","style"]),e.unref(e.activeTab)?(g(),A(ee(e.unref(e.component)),{key:0})):P("",!0)],6)):P("",!0)}var pu=q(cu,[["render",fu],["__scopeId","data-v-11575f45"]]);const mu=Symbol("TabButton"),gu=Symbol("TabFamily");function zn(e,t){if(Object.keys(e).length===0)throw console.warn("Cannot create tab family with 0 tabs"),"Cannot create tab family with 0 tabs";const n=le(Object.keys(e)[0]);return me(()=>{var a;const i=(a=t==null?void 0:t())!=null?a:{};i.id=he("tabFamily-"),i.type=gu,i[ue]=pu,i.tabs=Object.keys(e).reduce((o,s)=>{const u=e[s]();return u.type=mu,u[ue]=Oi,y(u,"visibility"),z(u,"visibility",B.Visible),y(u,"tab"),y(u,"display"),y(u,"classes"),y(u,"style"),y(u,"glowColor"),o[s]=u,o},{}),i.selected=n,i.activeTab=N(()=>{const o=l(r.tabs);if(n.value in o&&l(o[n.value].visibility)===B.Visible)return l(o[n.value].tab);const s=Object.values(o).find(u=>l(u.visibility)===B.Visible);return s?l(s.tab):null}),y(i,"visibility"),z(i,"visibility",B.Visible),y(i,"classes"),y(i,"style"),y(i,"buttonContainerClasses"),y(i,"buttonContainerStyle"),i[pe]=function(){const{visibility:o,activeTab:s,selected:u,tabs:c,style:h,classes:v,buttonContainerClasses:b,buttonContainerStyle:w}=this;return{visibility:o,activeTab:s,selected:u,tabs:c,style:l(h),classes:v,buttonContainerClasses:b,buttonContainerStyle:w}};const r=i;return r})}var vu=E({props:{display:{type:k(String,Object,Function),required:!0},visibility:{type:k(Number),required:!0},style:k(String,Object,Array),classes:k(Object),resource:Object,cost:k(String,Object,Number),canPurchase:{type:k(Boolean),required:!0},bought:{type:k(Boolean),required:!0},mark:k(Boolean,String),id:{type:String,required:!0},purchase:{type:Function,required:!0}},components:{Node:Ue,MarkNode:ft},setup(e){const{display:t,cost:n}=ne(e),i=xe("");return Ne(()=>{const r=ae(t);if(r==null){i.value="";return}if(Te(r)){i.value=D(r);return}const a=ae(n),o=D(r.title||"","h3"),s=D(r.description,"div"),u=D(r.effectDisplay||"");i.value=D(j(()=>{var c;return d("span",null,[r.title?d("div",null,[d(o,null,null)]):null,d(s,null,null),r.effectDisplay?d("div",null,[C("Currently: "),d(u,null,null)]):null,e.resource!=null?d(K,null,[d("br",null,null),C("Cost: "),e.resource&&Le(e.resource,a)," ",(c=e.resource)==null?void 0:c.displayName]):null])}))}),{component:i,unref:l,Visibility:B}}});const hu=["disabled"];function bu(e,t,n,i,r,a){var u;const o=de("MarkNode"),s=de("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("button",{key:0,style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(u=e.unref(e.style))!=null?u:{}]),onClick:t[0]||(t[0]=(...c)=>e.purchase&&e.purchase(...c)),class:Q({feature:!0,upgrade:!0,can:e.unref(e.canPurchase),locked:!e.unref(e.canPurchase),bought:e.unref(e.bought),...e.unref(e.classes)}),disabled:!e.unref(e.canPurchase)},[e.unref(e.component)?(g(),A(ee(e.unref(e.component)),{key:0})):P("",!0),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(s,{id:e.id},null,8,["id"])],14,hu)):P("",!0)}var yu=q(vu,[["render",bu],["__scopeId","data-v-7742f590"]]);const _u=Symbol("Upgrade");function Bt(e){const t=le(!1);return me(()=>{const n=e();return n.id=he("upgrade-"),n.type=_u,n[ue]=yu,n.canAfford==null&&(n.resource==null||n.cost==null)&&console.warn("Error: can't create upgrade without a canAfford property or a resource and cost property",n),n.bought=t,n.canAfford==null?n.canAfford=N(()=>{const i=n;return i.resource!=null&&i.cost!=null&&f.gte(i.resource.value,l(i.cost))}):y(n,"canAfford"),n.canPurchase=N(()=>l(n.visibility)===B.Visible&&l(n.canAfford)&&!l(n.bought)),n.purchase=function(){var r;const i=n;!l(i.canPurchase)||(i.resource!=null&&i.cost!=null&&(i.resource.value=f.sub(i.resource.value,l(i.cost))),t.value=!0,(r=i.onPurchase)==null||r.call(i))},y(n,"visibility"),z(n,"visibility",B.Visible),y(n,"classes"),y(n,"style"),y(n,"display"),y(n,"mark"),y(n,"cost"),y(n,"resource"),n[pe]=function(){const{display:i,visibility:r,style:a,classes:o,resource:s,cost:u,canPurchase:c,bought:h,mark:v,id:b,purchase:w}=this;return{display:i,visibility:r,style:l(a),classes:o,resource:s,cost:u,canPurchase:c,bought:h,mark:v,id:b,purchase:w}},n})}function ku(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!cn(e)}const on="c",Oe=It(on,()=>{const e="#4BDC13",t="Candies",n=Ct(0,"lollipops"),i=yi(n),r=le(!1),a=le("pointy"),o=le(10),s=le(new f(10)),u=N(()=>f.pow(n.value,.2)),c=N(()=>f.times(n.value,10)),h=Mi(()=>({title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"},color:"rgb(75, 220, 19)"})),v=Ln(()=>({shouldEarn(){return f.gte(i.value,3)},display:{requirement:"3 Lollipops",effectDisplay:"Unlock the next milestone"}})),b=Ln(()=>({visibility(){return gt(v.earned.value)},shouldEarn(){return f.gte(i.value,4)},display:{requirement:"4 Lollipops",effectDisplay:"You can toggle beep and boop (which do nothing)",optionsDisplay:j(()=>d(K,null,[d(we,{title:"beep","onUpdate:modelValue":H=>r.value=H,modelValue:r.value},null),d(we,{title:"boop","onUpdate:modelValue":H=>Fe.boop.value=H,modelValue:Fe.boop.value},null)]))},style(){return this.earned?{backgroundColor:"#1111DD"}:{}}})),w=[v,b],S=Xl(()=>({title:"Fun",completionLimit:3,display(){return{description:`Makes the game 0% harder
${ve(this.completions.value)}/${this.completionLimit} completions`,goal:"Have 20 points I guess",reward:"Says hi",effectDisplay:se($.value)+"x"}},visibility(){return gt(f.gt(i.value,0))},goal:20,resource:Y.points,onComplete(){console.log("hiii")},onEnter(){Y.points.value=0,Y.best.value=Y.points.value,Y.total.value=Y.points.value,console.log("So challenging")},onExit(){console.log("Sweet freedom!")},style:{height:"200px"}})),$=N(()=>f.add(n.value,1).tetrate(.02)),R=Bt(()=>({display:{title:"Generator of Genericness",description:"Gain 1 point every second"},cost:1,resource:n})),ke=Bt(()=>({display:()=>({description:"Point generation is faster based on your unspent Lollipops",effectDisplay:`${se(M.value)}x`}),cost:1,resource:n,visibility:()=>gt(R.bought.value)})),M=N(()=>{let H=f.add(n.value,1).pow(.5);return H.gte("1e20000000")&&(H=H.sqrt().times("1e10000000")),H}),I=Bt(()=>({visibility(){return gt(ke.bought.value)},canAfford(){return f.lt(Y.points.value,7)},onPurchase(){Y.points.value=f.add(Y.points.value,7)},display:"Only buyable with less than 7 points, and gives you 7 more. Unlocks a secret subtab.",style(){return this.bought?{backgroundColor:"#1111dd"}:this.canAfford?{}:{backgroundColor:"#dd1111"}}})),U=Bt(()=>({resource:Ct(te.amount,"Exhancers",0),cost:3,display:{title:"This upgrade doesn't exist",description:"Or does it?"}})),be=[R,ke,I],te=Hl(()=>({resource:n,cost(){let H=new f(this.amount.value);return H.gte(25)&&(H=H.pow(2).div(25)),f.pow(2,H.pow(1.5)).floor()},display(){return{title:"Exhancers",description:`Adds ${se(He.value)} things and multiplies stuff by ${se(en.value)}.`}},onPurchase(H){s.value=f.add(s.value,H!=null?H:0)},style:{height:"222px"},purchaseLimit:4})),He=N(()=>f.gte(te.amount.value,0)?f.pow(25,f.pow(te.amount.value,1.1)):f.pow(1/25,f.times(te.amount.value,-1).pow(1.1))),en=N(()=>f.gte(te.amount.value,0)?f.pow(25,f.pow(te.amount.value,1.1)):f.pow(1/25,f.times(te.amount.value,-1).pow(1.1))),at=le(!1),ot=O(!1),Ot=$t(()=>({small:!0,display:"Respec Thingies",onClick(){if(at.value&&!ot.value){ot.value=!0;return}n.value=f.add(n.value,s.value),te.amount.value=0,Y.tree.reset(Xe)}})),Sn=$t(()=>({small:!0,display:"Sell One",onClick(){f.lte(te.amount.value,0)||(te.amount.value=f.sub(te.amount.value,1),n.value=f.add(n.value,te.cost.value),s.value=f.sub(s.value,te.cost.value))}})),Ei=j(()=>d(jt,null,{default:()=>[d(bt,null,{default:()=>[d(we,{title:"Confirm","onUpdate:modelValue":H=>at.value=H,modelValue:at.value},null),Pe(Ot)]}),Pe(te),Pe(Sn),d(Je,{modelValue:ot.value,"onUpdate:modelValue":H=>ot.value=H},{header:()=>d("h2",null,[C("Confirm Respec")]),body:()=>d(K,null,[C("Are you sure? Respeccing these doesn't accomplish much")]),footer:()=>d("div",{class:"modal-default-footer"},[d("div",{class:"modal-default-flex-grow"},null),d("button",{class:"button modal-default-button",onClick:()=>ot.value=!1},[C("Cancel")]),d("button",{class:"button modal-default-button danger",onClick:()=>{Ot.onClick(),ot.value=!1}},[C("Respec")])])})]})),Cn=an(()=>({fillStyle:{backgroundColor:"#FFFFFF"},baseStyle:{backgroundColor:"#696969"},textStyle:{color:"#04e050"},direction:X.Right,width:300,height:30,progress(){return f.add(Y.points.value,1).log(10).div(10).toNumber()},display(){return se(Y.points.value)+" / 1e10 points"}})),$n=an(()=>({fillStyle:{backgroundColor:"#4BEC13"},baseStyle:{backgroundColor:"#000000"},textStyle:{textShadow:"0px 0px 2px #000000"},borderStyle:{borderWidth:"7px"},direction:X.Up,width:50,height:200,progress(){return f.div(Y.points.value,100)},display(){return ve(f.div(Y.points.value,1).min(100))+"%"}})),At=an(()=>({fillStyle:{backgroundColor:"#FE0102"},baseStyle:{backgroundColor:"#222222"},textStyle:{textShadow:"0px 0px 2px #000000"},direction:X.Up,width:100,height:30,progress(){return f.div(n.value,50)}})),pt=ll(()=>({scaling:cl($i(10,.5),1e100,.5),baseResource:Y.points,gainResource:n,roundUpCost:!0,gainModifier:Ol(Pl(2,"Because I felt like it"),Tl(1,"Nice modifier"))})),Mn=Ti(()=>({thingsToReset:()=>[Oe]})),Vi=[jn(()=>({key:"c",description:"reset for lollipops or whatever",onPress(){mt.canClick.value&&mt.onClick()}})),jn(()=>({key:"ctrl+c",description:"respec things",onPress(){Ot.onClick()}}))],Xe=Si(()=>({layerID:on,color:e,reset:Mn,mark:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",tooltip(){let H=Le(n);return f.gt(te.amount.value,0)&&(H+=`



${ve(te.amount.value)} Exhancers
`),H},style:{color:"#3325CC",textDecoration:"underline"}}));un(Xe,{display:wi(n),pinnable:!0});const mt=Ni(()=>({conversion:pt,tree:Y.tree,treeNode:Xe,style:{color:"#AA66AA"},resetDescription:"Melt your points into "}));un(mt,{display:j(()=>Al("Modifiers","",pt.gainModifier,pt.scaling.currentGain(pt))),pinnable:!0,direction:X.Down,style:"width: 400px; text-align: left"});const Et=yt(()=>({display:"TH",color:"#6d3678",canClick(){return f.gte(Y.points.value,10)},tooltip:"Thanos your points",onClick(){Y.points.value=f.div(Y.points.value,2),console.log("Thanos'd")},glowColor(){return f.eq(te.amount.value,1)?"orange":""}})),Vt=yt(()=>({display:"h",color(){return ze[Z.theme].variables["--locked"]},tooltip:{display:N(()=>`Restore your points to ${se(o.value)}`),right:!0},canClick(){return f.lt(Y.points.value,o.value)},onClick(){Y.points.value=o.value}})),Tn=yt(()=>({visibility:B.Hidden})),In=ki(()=>({nodes(){return[[Fe.treeNode,Xe],[Et,Tn,Vt]]},branches(){return[{startNode:Fe.treeNode,endNode:Xe,"stroke-width":"25px",stroke:"green",style:{filter:"blur(5px)"}},{startNode:Xe,endNode:Et},{startNode:Et,endNode:Vt}]}})),Fi=eu(()=>({links:[{startNode:Vt,endNode:At,"stroke-width":"5px",stroke:"red",offsetEnd:{x:-50+100*At.progress.value.toNumber(),y:0}}]})),Di=zn({first:()=>({tab:j(()=>d(K,null,[Pe(...be),Pe(U),d("div",null,[C("confirmed")])])),display:"first"}),second:()=>({tab:Fe.display,display:"second"})},()=>({style:{width:"660px",backgroundColor:"brown","--background":"brown",border:"solid white",marginLeft:"auto",marginRight:"auto"}})),Pn=zn({mainTab:()=>({tab:Rt(()=>({display:j(()=>{let H;return d(K,null,[d(Pi,{resource:n,color:e,effectDisplay:`which are boosting waffles by ${se(u.value)} and increasing the Ice Cream cap by ${se(c.value)}`},null),d(Wt,null,ku(H=oe(mt))?H:{default:()=>[H]}),d(Ii,{resource:n,color:e},null),d(ye,{height:"5px"},null),d("button",{onClick:()=>console.log("yeet")},[C("'HI'")]),d("div",null,[C("Name your points!")]),d(_n,{modelValue:a.value,"onUpdate:modelValue":On=>a.value=On},null),d(Wt,{style:"color: red; font-size: 32px; font-family: Comic Sans MS;"},{default:()=>[C("I have "),Le(Y.points),C(" "),a.value,C(" points!")]}),d("hr",null,null),ra(...w),d(ye,null,null),Pe(...be),Pe(U),Pe(S)])})})),display:"main tab",glowColor(){return R.canPurchase.value||ke.canPurchase.value||I.canPurchase.value||S.canComplete.value?"blue":""},style:{color:"orange"}}),thingies:()=>({tab:Rt(()=>({style(){return{backgroundColor:"#222222","--background":"#222222"}},display:j(()=>d(K,null,[oe(Ei),d(ye,null,null),d(bt,{style:"width: 600px; height: 350px; background-color: green; border-style: solid;"},{default:()=>[d(we,{"onUpdate:modelValue":H=>r.value=H,modelValue:r.value},null),d(ye,{width:"30px",height:"10px"},null),d("div",null,[d("span",null,[C("Beep")])]),d(ye,null,null),d(ql,{height:"200px"},null)]}),d(ye,null,null),d("img",{src:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png"},null)]))})),glowColor:"white",display:"thingies",style:{borderColor:"orange"}}),jail:()=>({tab:Rt(()=>({display:j(()=>d(K,null,[oe(h),oe(Cn),d(ye,null,null),d(bt,null,{default:()=>[d(jt,{style:"background-color: #555555; padding: 15px"},{default:()=>[d("div",{style:"color: teal"},[C("Sugar level:")]),d(ye,null,null),oe($n)]}),d(ye,null,null),d(jt,null,{default:()=>[d("div",null,[C("idk")]),d(ye,{width:"0",height:"50px"},null),oe(At)]})]}),d(ye,null,null),d("div",null,[C(`It's jail because "bars"! So funny! Ha ha!`)]),oe(In)]))})),display:"jail"}),illuminati:()=>({tab:Rt(()=>({display:j(()=>d("div",null,[d("h1",null,[C(" C O N F I R M E D ")]),d(ye,null,null),oe(Di),d("div",null,[C("Adjust how many points H gives you!")]),d(Rl,{"onUpdate:modelValue":H=>o.value=H,modelValue:o.value,min:1,max:30},null)])),style:{backgroundColor:"#3325CC"}})),visibility(){return gt(I.bought.value)},display:"illuminati"})});return{id:on,color:e,name:t,points:n,best:i,beep:r,thingy:a,otherThingy:o,spentOnBuyables:s,waffleBoost:u,icecreamCap:c,coolInfo:h,lollipopMilestones:w,funChallenge:S,funEffect:$,generatorUpgrade:R,lollipopMultiplierUpgrade:ke,lollipopMultiplierEffect:M,unlockIlluminatiUpgrade:I,quasiUpgrade:U,exhancers:te,respecBuyables:Ot,sellExhancer:Sn,bars:{tallBoi:$n,longBoi:Cn,flatBoi:At},tree:In,g:Et,h:Vt,spook:Tn,conversion:pt,reset:Mn,hotkeys:Vi,treeNode:Xe,resetButton:mt,confirmRespec:at,minWidth:800,tabs:Pn,display:j(()=>d(K,null,[oe(Pn),oe(Fi)]))}}),wu={min:.5,max:1},xu=[{s:0,cp:.329,e:.548},{s:.548,cp:.767,e:.876},{s:.876,cp:.985,e:1}],Nu=.001,Su=.1,Cu=100,$u=!0,Mu={x:0,y:0},Tu=!1,Iu=[{type:"alpha",config:{alpha:{list:[{time:0,value:.74},{time:1,value:0}]}}},{type:"moveSpeed",config:{speed:{list:[{time:0,value:300},{time:1,value:0}]},minMult:1}},{type:"scale",config:{scale:{list:[{time:0,value:1},{time:1,value:.25}]},minMult:1}},{type:"color",config:{color:{list:[{time:0,value:"#ffdfa0"},{time:1,value:"#100f0c"}]}}},{type:"rotation",config:{accel:0,minSpeed:0,maxSpeed:200,minStart:0,maxStart:360}},{type:"textureRandom",config:{textures:["/particle.png"]}},{type:"spawnShape",config:{type:"rect",data:{x:0,y:0,w:0,h:0}}}];var Pu={lifetime:wu,ease:xu,frequency:Nu,emitterLifetime:Su,maxParticles:Cu,addAtBack:$u,pos:Mu,emit:Tu,behaviors:Iu};const sn="f",Fe=It(sn,()=>{const e="#FE0102",t="Farms",n=Ct(0,"farm points"),i=le(!1),r=Mi(()=>({title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"}})),a=le("Start"),o=$t(()=>({display(){return{title:"Clicky clicky!",description:"Current state:
"+a.value}},initialState:"Start",canClick(){return a.value!=="Borkened..."},onClick(S){var $,R,ke,M,I,U,be,te;switch(a.value){case"Start":a.value="A new state!";break;case"A new state!":a.value="Keep going!";break;case"Keep going!":a.value="Maybe that's a bit too far...";break;case"Maybe that's a bit too far...":const He=S==null?void 0:"touches"in S?S.touches[0]:S,en=Object.assign({},Pu,{pos:{x:(($=He==null?void 0:He.clientX)!=null?$:0)-((M=(ke=(R=b.boundingRect)==null?void 0:R.value)==null?void 0:ke.left)!=null?M:0),y:((I=He==null?void 0:He.clientY)!=null?I:0)-((te=(be=(U=b.boundingRect)==null?void 0:U.value)==null?void 0:be.top)!=null?te:0)}});b.addEmitter(en).then(at=>at.playOnceAndDestroy()),a.value="Borkened...";break;default:a.value="Start";break}},onHold(){console.log("Clickkkkk...")},style(){switch(a.value){case"Start":return{"background-color":"green"};case"A new state!":return{"background-color":"yellow"};case"Keep going!":return{"background-color":"orange"};case"Maybe that's a bit too far...":return{"background-color":"red"};default:return{}}}})),s=$t(()=>({onClick(){a.value=="Borkened..."&&(a.value="Start")},display(){return a.value=="Borkened..."?"Fix the clickable!":"Does nothing"},small:!0})),u=Ti(()=>({thingsToReset:()=>[Fe]})),c=ul(()=>({scaling:$i(10,.5),baseResource:Y.points,gainResource:n,modifyGainAmount:Il(Oe.otherThingy)})),h=Si(()=>({layerID:sn,color:e,reset:u,tooltip(){return h.canClick.value?`${Le(n)} ${n.displayName}`:`This weird farmer dinosaur will only see you if you have at least 10 points. You only have ${Le(Y.points)}`},canClick(){return f.gte(Y.points.value,10)}}));un(h,{display:wi(n),pinnable:!0});const v=Ni(()=>({conversion:c,tree:Y.tree,treeNode:h,display:j(()=>v.conversion.buyMax?d("span",null,[C("Hi! I'm a "),d("u",null,[C("weird dinosaur")]),C(" and I'll give you")," ",d("b",null,[ve(v.conversion.currentGain.value)]),C(" Farm Points in exchange for all of your points and lollipops! (You'll get another one at")," ",ve(v.conversion.nextAt.value),C(" points)")]):d("span",null,[C("Hi! I'm a "),d("u",null,[C("weird dinosaur")]),C(" and I'll give you a Farm Point in exchange for all of your points and lollipops! (At least")," ",ve(v.conversion.nextAt.value),C(" points)")]))})),b=wl(()=>({boundingRect:O(null),onContainerResized(S){this.boundingRect.value=S},style:"z-index: 2"})),w=j(()=>d(K,null,[oe(r),d(Pi,{resource:n,color:e},null),oe(v),d("div",null,[C("You have "),ve(c.baseResource.value),C(" points")]),d("div",null,[d("br",null,null),d("img",{src:"https://images.beano.com/store/24ab3094eb95e5373bca1ccd6f330d4406db8d1f517fc4170b32e146f80d?auto=compress%2Cformat&dpr=1&w=390"},null),d("div",null,[C("Bork Bork!")])]),d(ye,null,null),Pe(s),Pe(o),oe(b)]));return{id:sn,color:e,name:t,points:n,boop:i,coolInfo:r,clickable:o,clickableState:a,reset:u,conversion:c,treeNode:h,resetButton:v,minWidth:650,display:w}});function ln(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!cn(e)}const Gn="a",dn=It(Gn,()=>{const e="yellow",t="Achievements",n=Ct(0,"achievement power"),i=yt(()=>({display:"A",color:e,tooltip:{display:"Achievements",right:!0},onClick(){Y.showAchievements()}})),r=rn(()=>({image:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",display:"Get me!",tooltip:N(()=>r.earned.value?"You did it!":"How did this happen?"),shouldEarn:()=>!0})),a=rn(()=>({display:"Impossible!",tooltip:N(()=>a.earned.value?"HOW????":"Mwahahaha!"),style:{color:"#04e050"}})),o=rn(()=>({display:"EIEIO",tooltip:`Get a farm point. + +Reward: The dinosaur is now your friend (you can max Farm Points).`,shouldEarn:function(){return f.gte(Fe.points.value,1)},onComplete(){console.log("Bork bork bork!")}})),s=[r,a,o],u=rl(()=>({rows:2,cols:2,getStartState(h){return h},getStyle(h,v){return{backgroundColor:`#${Number(v)*1234%999999}`}},getTitle(h){let v="";return h==="101"?v="top":h==="102"?v="bottom":h==="201"?v="left":h==="202"&&(v="right"),j(()=>d(re,Be({display:JSON.stringify(this.cells[h].style)},{[v]:!0}),{default:()=>[d("h3",null,[C("Gridable #"),h])]}))},getDisplay(h,v){return String(v)},getCanClick(){return f.eq(Y.points.value,10)},onClick(h,v){this.cells[h].state=Number(v)+1}})),c=j(()=>{let h,v,b;return d(K,null,[d(bt,null,{default:()=>[d(re,{display:r.tooltip,bottom:!0},ln(h=oe(r))?h:{default:()=>[h]}),d(re,{display:a.tooltip,bottom:!0},ln(v=oe(a))?v:{default:()=>[v]}),d(re,{display:o.tooltip,bottom:!0},ln(b=oe(o))?b:{default:()=>[b]})]}),Pe(u)])});return{id:Gn,color:e,name:t,points:n,achievements:s,grid:u,treeNode:i,display:c}}),Y=It("main",()=>{const e=Ct(10),t=yi(e),n=ks(e),i=N(()=>{if(!Oe.generatorUpgrade.bought.value)return new f(0);let u=new f(3.19);return Oe.lollipopMultiplierUpgrade.bought.value&&(u=u.times(Oe.lollipopMultiplierEffect.value)),u});ge.on("update",u=>{e.value=f.add(e.value,f.times(i.value,u))});const r=Ns(e,i),{openModal:a,modal:o}=mi(dn),s=ki(()=>({nodes:[[Oe.treeNode],[Fe.treeNode,Oe.spook]],leftSideNodes:[dn.treeNode,Oe.h],branches:[{startNode:Fe.treeNode,endNode:Oe.treeNode,stroke:"blue","stroke-width":"25px",style:{filter:"blur(5px)"}}],onReset(){e.value=En(this.resettingNode.value)===En(Oe.treeNode)?0:10,t.value=e.value,n.value=e.value},resetPropagation:js}));return{name:"Tree",display:j(()=>d(K,null,[T.devSpeed===0?d("div",null,[C("Game Paused")]):null,T.devSpeed&&T.devSpeed!==1?d("div",null,[C("Dev Speed: "),se(T.devSpeed),C("x")]):null,T.offlineTime?d("div",null,[C("Offline Time: "),Jt(T.offlineTime)]):null,d("div",null,[f.lt(e.value,"1e1000")?d("span",null,[C("You have ")]):null,d("h2",null,[se(e.value)]),f.lt(e.value,"1e1e6")?d("span",null,[C(" points")]):null]),f.gt(i.value,0)?d("div",null,[C("("),r.value,C(")")]):null,d(ye,null,null),d("button",{onClick:a},[C("open achievements")]),oe(o),oe(s),d(_s,{height:"200px",style:"margin: 10px auto; display: block"},null)])),points:e,best:t,total:n,oomps:r,tree:s,showAchievements:a}}),Ou=e=>[Y,Fe,Oe,dn],Nn=N(()=>f.gt(Y.points.value,25));function Au(e,t){}var Ai=Object.freeze(Object.defineProperty({__proto__:null,main:Y,getInitialLayers:Ou,hasWon:Nn,fixOldSave:Au},Symbol.toStringTag,{value:"Module"}));const Pt=e=>(qe("data-v-4a50ce42"),e=e(),je(),e),Eu={class:"game-over-modal-header"},Vu=["src","alt"],Fu={class:"game-over-modal-title"},Du=Pt(()=>p("h2",null,"Congratulations!",-1)),Ru={key:0},Bu=Pt(()=>p("br",null,null,-1)),qu=Pt(()=>p("div",null," Please check the Discord to discuss the game or to check for new content updates! ",-1)),ju=Pt(()=>p("br",null,null,-1)),Lu=["href"],zu=Pt(()=>p("span",{class:"material-icons game-over-modal-discord"},"discord",-1)),Gu=E({__name:"GameOverScreen",setup(e){const{title:t,logo:n,discordName:i,discordLink:r,versionNumber:a,versionTitle:o}=J,s=N(()=>Jt(T.timePlayed)),u=N(()=>Nn.value&&!T.keepGoing),c=Ze(T,"autosave");function h(){T.keepGoing=!0}function v(){nt(ut())}return(b,w)=>(g(),A(Je,{"model-value":l(u)},{header:V(()=>[p("div",Eu,[l(n)?(g(),x("img",{key:0,class:"game-over-modal-logo",src:l(n),alt:l(t)},null,8,Vu)):P("",!0),p("div",Fu,[Du,p("h4",null,"You've beaten "+G(l(t))+" v"+G(l(a))+": "+G(l(o)),1)])])]),body:V(({shown:S})=>[S?(g(),x("div",Ru,[p("div",null,"It took you "+G(l(s))+" to beat the game.",1),Bu,qu,ju,p("div",null,[p("a",{href:l(r),class:"game-over-modal-discord-link"},[zu,C(" "+G(l(i)),1)],8,Lu)]),d(we,{title:"Autosave",modelValue:l(c),"onUpdate:modelValue":w[0]||(w[0]=$=>fe(c)?c.value=$:null)},null,8,["modelValue"])])):P("",!0)]),footer:V(()=>[p("div",{class:"game-over-footer"},[p("button",{onClick:h,class:"button"},"Keep Going"),p("button",{onClick:v,class:"button danger"},"Play Again")])]),_:1},8,["model-value"]))}});var Uu=q(Gu,[["__scopeId","data-v-4a50ce42"]]);const Qt=e=>(qe("data-v-3de07c06"),e=e(),je(),e),Hu=Qt(()=>p("div",{class:"nan-modal-header"},[p("h2",null,"NaN value detected!")],-1)),Wu={key:0},Yu=Qt(()=>p("br",null,null,-1)),Ku=["href"],Zu=Qt(()=>p("span",{class:"material-icons nan-modal-discord"},"discord",-1)),Ju=Qt(()=>p("br",null,null,-1)),Xu={class:"nan-footer"},Qu=E({__name:"NaNScreen",setup(e){const{discordName:t,discordLink:n}=J,i=Ze(T,"autosave"),r=Ze(ie,"hasNaN"),a=O(null),o=N(()=>{var w;return(w=ie.NaNPath)==null?void 0:w.join(".")}),s=N(()=>{var w;return(w=ie.NaNPath)==null?void 0:w.slice(-1)[0]}),u=N(()=>ie.NaNReceiver&&s.value?ie.NaNReceiver[s.value]:null),c=N({get(){return T.devSpeed===0},set(w){T.devSpeed=w?null:0}});function h(){ie.NaNReceiver&&s.value&&(ie.NaNReceiver[s.value]=new f(0),ie.hasNaN=!1)}function v(){ie.NaNReceiver&&s.value&&(ie.NaNReceiver[s.value]=new f(1),ie.hasNaN=!1)}function b(){ie.NaNReceiver&&s.value&&(ie.NaNReceiver[s.value]=new f(NaN),ie.hasNaN=!1)}return(w,S)=>(g(),x(K,null,[d(Je,Be({modelValue:l(r),"onUpdate:modelValue":S[4]||(S[4]=$=>fe(r)?r.value=$:null)},w.$attrs),{header:V(()=>[Hu]),body:V(()=>[p("div",null,[C(' Attempted to assign "'+G(l(o))+'" to NaN',1),l(u)?(g(),x("span",Wu,G(" ")+"(previously "+G(l(se)(l(u)))+")",1)):P("",!0),C(". Auto-saving has been "+G(l(i)?"enabled":"disabled")+". Check the console for more details, and consider sharing it with the developers on discord. ",1)]),Yu,p("div",null,[p("a",{href:l(n),class:"nan-modal-discord-link"},[Zu,C(" "+G(l(t)),1)],8,Ku)]),Ju,d(we,{title:"Autosave",modelValue:l(i),"onUpdate:modelValue":S[0]||(S[0]=$=>fe(i)?i.value=$:null)},null,8,["modelValue"]),l(J).enablePausing?(g(),A(we,{key:0,title:"Pause game",modelValue:l(c),"onUpdate:modelValue":S[1]||(S[1]=$=>fe(c)?c.value=$:null)},null,8,["modelValue"])):P("",!0)]),footer:V(()=>[p("div",Xu,[p("button",{onClick:S[2]||(S[2]=$=>{var R;return(R=a.value)==null?void 0:R.open()}),class:"button"},"Open Saves Manager"),p("button",{onClick:h,class:"button"},"Set to 0"),p("button",{onClick:v,class:"button"},"Set to 1"),l(u)&&l(f).neq(l(u),0)&&l(f).neq(l(u),1)?(g(),x("button",{key:0,onClick:S[3]||(S[3]=$=>r.value=!1),class:"button"}," Set to previous ")):P("",!0),p("button",{onClick:b,class:"button danger"},"Ignore")])]),_:1},16,["modelValue"]),d(hi,{ref_key:"savesManager",ref:a},null,512)],64))}});var ed=q(Qu,[["__scopeId","data-v-3de07c06"]]);const td={key:0,class:"tpsDisplay"},nd={key:0,class:"low"},id=E({__name:"TPS",setup(e){const t=N(()=>f.div(ie.lastTenTicks.length,ie.lastTenTicks.reduce((a,o)=>a+o,0))),n=O([]);Ne(()=>{n.value.push(Math.round(t.value.toNumber())),n.value.length>10&&(n.value=n.value.slice(1))});const i=N(()=>n.value.reduce((a,o)=>f.max(a,o),0)),r=N(()=>f.sub(t.value,i.value).gt(1));return(a,o)=>l(t).isNan()?P("",!0):(g(),x("div",td,[C(" TPS: "+G(l(ve)(l(t)))+" ",1),d(Zt,{name:"fade"},{default:V(()=>[l(r)?(g(),x("span",nd,G(l(ve)(l(i))),1)):P("",!0)]),_:1})]))}});var rd=q(id,[["__scopeId","data-v-46a3ed5b"]]);var ad=E({__name:"App",setup(e){const t=J.useHeader,n=N(()=>ze[Z.theme].variables),i=Ze(Z,"showTPS"),r=N(()=>D(j(()=>d(K,null,[ta.map(oe)]))));return(a,o)=>(g(),x(K,null,[p("div",{id:"modal-root",style:W(l(n))},null,4),p("div",{class:Q(["app",{useHeader:l(t)}]),style:W(l(n))},[l(t)?(g(),A(bi,{key:0})):P("",!0),d(gs),l(l(i))?(g(),A(rd,{key:1})):P("",!0),d(Uu),d(ed),(g(),A(ee(l(r))))],6)],64))}});var od=q(ad,[["__scopeId","data-v-9417972e"]]);function sd(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:i,onRegistered:r,onRegisterError:a}=e;let o,s;const u=async(c=!0)=>{c&&(o==null||o.addEventListener("controlling",h=>{h.isUpdate&&window.location.reload()})),s&&s.waiting&&await er(s.waiting,{type:"SKIP_WAITING"})};if("serviceWorker"in navigator){o=new Qi("./sw.js",{scope:"./",type:"classic"}),o.addEventListener("activated",c=>{c.isUpdate||i==null||i()});{const c=()=>{n==null||n()};o.addEventListener("waiting",c),o.addEventListener("externalwaiting",c)}o.register({immediate:t}).then(c=>{s=c,r==null||r(c)}).catch(c=>{a==null||a(c)})}return u}function ld(e={}){const{immediate:t=!0,onNeedRefresh:n,onOfflineReady:i,onRegistered:r,onRegisterError:a}=e,o=O(!1),s=O(!1);return{updateServiceWorker:sd({immediate:t,onNeedRefresh(){o.value=!0,n==null||n()},onOfflineReady(){s.value=!0,i==null||i()},onRegistered:r,onRegisterError:a}),offlineReady:s,needRefresh:o}}document.title=J.title;window.projInfo=J;if(J.id==="")throw"Project ID is empty! Please select a unique ID for this project in /src/data/projInfo.json";requestAnimationFrame(async()=>{console.log(`%cMade in Profectus%c +Learn more at www.moddingtree.com`,"font-weight: bold; font-size: 24px; color: #A3BE8C; background: #2E3440; padding: 4px 8px; border-radius: 8px;","padding: 4px;"),await Jr();const{globalBus:e,startGameLoop:t}=await zt(()=>Promise.resolve().then(function(){return Zr}),void 0),n=window.vue=Gi(od);e.emit("setupVue",n),n.mount("#app"),Ve(()=>{const i=fn(),{updateServiceWorker:r}=ld({onNeedRefresh(){i.info("New content available, click or reload to update.",{timeout:!1,closeOnClick:!1,draggable:!1,icon:{iconClass:"material-icons",iconChildren:"refresh",iconTag:"i"},rtl:!1,onClick(){r()}})},onOfflineReady(){i.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(a){a&&setInterval(a.update,60*60*1e3)}})}),t()}); diff --git a/assets/index.d5d1e0a2.js b/assets/index.d5d1e0a2.js deleted file mode 100644 index 1a495d8..0000000 --- a/assets/index.d5d1e0a2.js +++ /dev/null @@ -1,593 +0,0 @@ -const Ay=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 a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}};Ay();const Oy="modulepreload",Sd={},Py="./",sl=function(t,n){return!n||n.length===0?t():Promise.all(n.map(r=>{if(r=`${Py}${r}`,r in Sd)return;Sd[r]=!0;const i=r.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${a}`))return;const o=document.createElement("link");if(o.rel=i?"stylesheet":Oy,i||(o.as="script",o.crossOrigin=""),o.href=r,document.head.appendChild(o),i)return new Promise((s,l)=>{o.addEventListener("load",s),o.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())};function Ml(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}const Fy="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",My=Ml(Fy),Ly="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Uy=Ml(Ly);function Qp(e){return!!e||e===""}function tt(e){if(Ce(e)){const t={};for(let n=0;n{if(n){const r=n.split(ky);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ze(e){let t="";if(Vt(e))t=e;else if(Ce(e))for(let n=0;npi(n,t))}const Je=e=>Vt(e)?e:e==null?"":Ce(e)||Wt(e)&&(e.toString===tv||!De(e.toString))?JSON.stringify(e,ev,2):String(e),ev=(e,t)=>t&&t.__v_isRef?ev(e,t.value):Io(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:io(t)?{[`Set(${t.size})`]:[...t.values()]}:Wt(t)&&!Ce(t)&&!nv(t)?String(t):t,xt={},Eo=[],ur=()=>{},Vy=()=>!1,$y=/^on[^a-z]/,qa=e=>$y.test(e),af=e=>e.startsWith("onUpdate:"),Xt=Object.assign,sf=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},jy=Object.prototype.hasOwnProperty,dt=(e,t)=>jy.call(e,t),Ce=Array.isArray,Io=e=>es(e)==="[object Map]",io=e=>es(e)==="[object Set]",Nd=e=>es(e)==="[object Date]",De=e=>typeof e=="function",Vt=e=>typeof e=="string",Oa=e=>typeof e=="symbol",Wt=e=>e!==null&&typeof e=="object",lf=e=>Wt(e)&&De(e.then)&&De(e.catch),tv=Object.prototype.toString,es=e=>tv.call(e),Hy=e=>es(e).slice(8,-1),nv=e=>es(e)==="[object Object]",uf=e=>Vt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,pa=Ml(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ul=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},zy=/-(\w)/g,Vn=Ul(e=>e.replace(zy,(t,n)=>n?n.toUpperCase():"")),Xy=/\B([A-Z])/g,wr=Ul(e=>e.replace(Xy,"-$1").toLowerCase()),ts=Ul(e=>e.charAt(0).toUpperCase()+e.slice(1)),va=Ul(e=>e?`on${ts(e)}`:""),Mo=(e,t)=>!Object.is(e,t),So=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},vi=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Rd;const Wy=()=>Rd||(Rd=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Fn;class cf{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Fn&&(this.parent=Fn,this.index=(Fn.scopes||(Fn.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Fn;try{return Fn=this,t()}finally{Fn=n}}}on(){Fn=this}off(){Fn=this.parent}stop(t){if(this.active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},iv=e=>(e.w&mi)>0,ov=e=>(e.n&mi)>0,Jy=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(u==="length"||u>=r)&&s.push(l)});else switch(n!==void 0&&s.push(o.get(n)),t){case"add":Ce(e)?uf(n)&&s.push(o.get("length")):(s.push(o.get(Zi)),Io(e)&&s.push(o.get(ic)));break;case"delete":Ce(e)||(s.push(o.get(Zi)),Io(e)&&s.push(o.get(ic)));break;case"set":Io(e)&&s.push(o.get(Zi));break}if(s.length===1)s[0]&&oc(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);oc(ff(l))}}function oc(e,t){const n=Ce(e)?e:[...e];for(const r of n)r.computed&&Od(r);for(const r of n)r.computed||Od(r)}function Od(e,t){(e!==sr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const t0=Ml("__proto__,__v_isRef,__isVue"),lv=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Oa)),n0=Bl(),r0=Bl(!1,!0),i0=Bl(!0),o0=Bl(!0,!0),Pd=a0();function a0(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ot(this);for(let a=0,o=this.length;a{e[t]=function(...n){oo();const r=ot(this)[t].apply(this,n);return ao(),r}}),e}function Bl(e=!1,t=!1){return function(r,i,a){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&a===(e?t?vv:pv:t?hv:dv).get(r))return r;const o=Ce(r);if(!e&&o&&dt(Pd,i))return Reflect.get(Pd,i,a);const s=Reflect.get(r,i,a);return(Oa(i)?lv.has(i):t0(i))||(e||$n(r,"get",i),t)?s:et(s)?o&&uf(i)?s:s.value:Wt(s)?e?hf(s):Pr(s):s}}const s0=uv(),l0=uv(!0);function uv(e=!1){return function(n,r,i,a){let o=n[r];if(Lo(o)&&et(o)&&!et(i))return!1;if(!e&&!Lo(i)&&(ul(i)||(i=ot(i),o=ot(o)),!Ce(n)&&et(o)&&!et(i)))return o.value=i,!0;const s=Ce(n)&&uf(r)?Number(r)e,kl=e=>Reflect.getPrototypeOf(e);function ps(e,t,n=!1,r=!1){e=e.__v_raw;const i=ot(e),a=ot(t);n||(t!==a&&$n(i,"get",t),$n(i,"get",a));const{has:o}=kl(i),s=r?df:n?mf:Pa;if(o.call(i,t))return s(e.get(t));if(o.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function vs(e,t=!1){const n=this.__v_raw,r=ot(n),i=ot(e);return t||(e!==i&&$n(r,"has",e),$n(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function ms(e,t=!1){return e=e.__v_raw,!t&&$n(ot(e),"iterate",Zi),Reflect.get(e,"size",e)}function Fd(e){e=ot(e);const t=ot(this);return kl(t).has.call(t,e)||(t.add(e),Hr(t,"add",e,e)),this}function Md(e,t){t=ot(t);const n=ot(this),{has:r,get:i}=kl(n);let a=r.call(n,e);a||(e=ot(e),a=r.call(n,e));const o=i.call(n,e);return n.set(e,t),a?Mo(t,o)&&Hr(n,"set",e,t):Hr(n,"add",e,t),this}function Ld(e){const t=ot(this),{has:n,get:r}=kl(t);let i=n.call(t,e);i||(e=ot(e),i=n.call(t,e)),r&&r.call(t,e);const a=t.delete(e);return i&&Hr(t,"delete",e,void 0),a}function Ud(){const e=ot(this),t=e.size!==0,n=e.clear();return t&&Hr(e,"clear",void 0,void 0),n}function gs(e,t){return function(r,i){const a=this,o=a.__v_raw,s=ot(o),l=t?df:e?mf:Pa;return!e&&$n(s,"iterate",Zi),o.forEach((u,c)=>r.call(i,l(u),l(c),a))}}function ys(e,t,n){return function(...r){const i=this.__v_raw,a=ot(i),o=Io(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...r),c=n?df:t?mf:Pa;return!t&&$n(a,"iterate",l?ic:Zi),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:s?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Qr(e){return function(...t){return e==="delete"?!1:this}}function p0(){const e={get(a){return ps(this,a)},get size(){return ms(this)},has:vs,add:Fd,set:Md,delete:Ld,clear:Ud,forEach:gs(!1,!1)},t={get(a){return ps(this,a,!1,!0)},get size(){return ms(this)},has:vs,add:Fd,set:Md,delete:Ld,clear:Ud,forEach:gs(!1,!0)},n={get(a){return ps(this,a,!0)},get size(){return ms(this,!0)},has(a){return vs.call(this,a,!0)},add:Qr("add"),set:Qr("set"),delete:Qr("delete"),clear:Qr("clear"),forEach:gs(!0,!1)},r={get(a){return ps(this,a,!0,!0)},get size(){return ms(this,!0)},has(a){return vs.call(this,a,!0)},add:Qr("add"),set:Qr("set"),delete:Qr("delete"),clear:Qr("clear"),forEach:gs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=ys(a,!1,!1),n[a]=ys(a,!0,!1),t[a]=ys(a,!1,!0),r[a]=ys(a,!0,!0)}),[e,n,t,r]}const[v0,m0,g0,y0]=p0();function Dl(e,t){const n=t?e?y0:g0:e?m0:v0;return(r,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(dt(n,i)&&i in r?n:r,i,a)}const b0={get:Dl(!1,!1)},x0={get:Dl(!1,!0)},_0={get:Dl(!0,!1)},T0={get:Dl(!0,!0)},dv=new WeakMap,hv=new WeakMap,pv=new WeakMap,vv=new WeakMap;function w0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function C0(e){return e.__v_skip||!Object.isExtensible(e)?0:w0(Hy(e))}function Pr(e){return Lo(e)?e:Gl(e,!1,cv,b0,dv)}function jo(e){return Gl(e,!1,d0,x0,hv)}function hf(e){return Gl(e,!0,fv,_0,pv)}function E0(e){return Gl(e,!0,h0,T0,vv)}function Gl(e,t,n,r,i){if(!Wt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=C0(e);if(o===0)return e;const s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function di(e){return Lo(e)?di(e.__v_raw):!!(e&&e.__v_isReactive)}function Lo(e){return!!(e&&e.__v_isReadonly)}function ul(e){return!!(e&&e.__v_isShallow)}function pf(e){return di(e)||Lo(e)}function ot(e){const t=e&&e.__v_raw;return t?ot(t):e}function vf(e){return ll(e,"__v_skip",!0),e}const Pa=e=>Wt(e)?Pr(e):e,mf=e=>Wt(e)?hf(e):e;function gf(e){fi&&sr&&(e=ot(e),sv(e.dep||(e.dep=ff())))}function Vl(e,t){e=ot(e),e.dep&&oc(e.dep)}function et(e){return!!(e&&e.__v_isRef===!0)}function Te(e){return mv(e,!1)}function An(e){return mv(e,!0)}function mv(e,t){return et(e)?e:new I0(e,t)}class I0{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ot(t),this._value=n?t:Pa(t)}get value(){return gf(this),this._value}set value(t){t=this.__v_isShallow?t:ot(t),Mo(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Pa(t),Vl(this))}}function S0(e){Vl(e)}function x(e){return et(e)?e.value:e}const N0={get:(e,t,n)=>x(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return et(i)&&!et(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function yf(e){return di(e)?e:new Proxy(e,N0)}class R0{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>gf(this),()=>Vl(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function A0(e){return new R0(e)}function Et(e){const t=Ce(e)?new Array(e.length):{};for(const n in e)t[n]=Sn(e,n);return t}class O0{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,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}}function Sn(e,t,n){const r=e[t];return et(r)?r:new O0(e,t,n)}class P0{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new ns(t,()=>{this._dirty||(this._dirty=!0,Vl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=ot(this);return gf(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function F0(e,t,n=!1){let r,i;const a=De(e);return a?(r=e,i=ur):(r=e.get,i=e.set),new P0(r,i,a||!i,n)}const ma=[];function gv(e,...t){oo();const n=ma.length?ma[ma.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=M0();if(r)Cr(r,n,11,[e+t.join(""),n&&n.proxy,i.map(({vnode:a})=>`at <${um(n,a.type)}>`).join(` -`),i]);else{const a=[`[Vue warn]: ${e}`,...t];i.length&&a.push(` -`,...L0(i)),console.warn(...a)}ao()}function M0(){let e=ma[ma.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function L0(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[` -`],...U0(n))}),t}function U0({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${um(e.component,e.type,r)}`,a=">"+n;return e.props?[i,...B0(e.props),a]:[i+a]}function B0(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...yv(r,e[r]))}),n.length>3&&t.push(" ..."),t}function yv(e,t,n){return Vt(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:et(t)?(t=yv(e,ot(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):De(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ot(t),n?t:[`${e}=`,t])}function Cr(e,t,n,r){let i;try{i=r?e(...r):e()}catch(a){so(a,t,n)}return i}function Gn(e,t,n,r){if(De(e)){const a=Cr(e,t,n,r);return a&&lf(a)&&a.catch(o=>{so(o,t,n)}),a}const i=[];for(let a=0;a>>1;Fa(Un[r])Br&&Un.splice(t,1)}function _v(e,t,n,r){Ce(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?r+1:r))&&n.push(e),xv()}function V0(e){_v(e,aa,ga,mo)}function _f(e){_v(e,ni,ya,go)}function $l(e,t=null){if(ga.length){for(sc=t,aa=[...new Set(ga)],ga.length=0,mo=0;moFa(n)-Fa(r)),go=0;goe.id==null?1/0:e.id;function Tv(e){ac=!1,cl=!0,$l(e),Un.sort((n,r)=>Fa(n)-Fa(r));const t=ur;try{for(Br=0;Bryo.emit(i,...a)),bs=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((r=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||r===void 0)&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{wv(a,t)}),setTimeout(()=>{yo||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,bs=[])},3e3)):bs=[]}function $0(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||xt;let i=n;const a=t.startsWith("update:"),o=a&&t.slice(7);if(o&&o in r){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:d}=r[c]||xt;d&&(i=n.map(h=>h.trim())),f&&(i=n.map(vi))}let s,l=r[s=va(t)]||r[s=va(Vn(t))];!l&&a&&(l=r[s=va(wr(t))]),l&&Gn(l,e,6,i);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Gn(u,e,6,i)}}function Cv(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const a=e.emits;let o={},s=!1;if(!De(e)){const l=u=>{const c=Cv(u,t,!0);c&&(s=!0,Xt(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(r.set(e,null),null):(Ce(a)?a.forEach(l=>o[l]=null):Xt(o,a),r.set(e,o),o)}function jl(e,t){return!e||!qa(t)?!1:(t=t.slice(2).replace(/Once$/,""),dt(e,t[0].toLowerCase()+t.slice(1))||dt(e,wr(t))||dt(e,t))}let mn=null,Hl=null;function Ma(e){const t=mn;return mn=e,Hl=e&&e.type.__scopeId||null,t}function hr(e){Hl=e}function pr(){Hl=null}const j0=e=>Pe;function Pe(e,t=mn,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&pc(-1);const a=Ma(t),o=e(...i);return Ma(a),r._d&&pc(1),o};return r._n=!0,r._c=!0,r._d=!0,r}function Ys(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:h,ctx:p,inheritAttrs:v}=e;let g,y;const m=Ma(e);try{if(n.shapeFlag&4){const T=i||r;g=Ln(c.call(T,T,f,a,h,d,p)),y=l}else{const T=t;g=Ln(T.length>1?T(a,{attrs:l,slots:s,emit:u}):T(a,null)),y=t.props?l:z0(l)}}catch(T){xa.length=0,so(T,e,1),g=C(yn)}let b=g;if(y&&v!==!1){const T=Object.keys(y),{shapeFlag:S}=b;T.length&&S&7&&(o&&T.some(af)&&(y=X0(y,o)),b=Ar(b,y))}return n.dirs&&(b=Ar(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),g=b,Ma(m),g}function H0(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||qa(n))&&((t||(t={}))[n]=e[n]);return t},X0=(e,t)=>{const n={};for(const r in e)(!af(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function W0(e,t,n){const{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Bd(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense,K0={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,a,o,s,l,u){e==null?Z0(t,n,r,i,a,o,s,l,u):J0(e,t,n,r,i,o,s,l,u)},hydrate:Q0,create:wf,normalize:q0},Y0=K0;function La(e,t){const n=e.props&&e.props[t];De(n)&&n()}function Z0(e,t,n,r,i,a,o,s,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=wf(e,i,r,t,f,n,a,o,s,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,a,o),d.deps>0?(La(e,"onPending"),La(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,a,o),No(d,e.ssFallback)):d.resolve()}function J0(e,t,n,r,i,a,o,s,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:v,isInFallback:g,isHydrating:y}=f;if(v)f.pendingBranch=d,yr(d,v)?(l(v,d,f.hiddenContainer,null,i,f,a,o,s),f.deps<=0?f.resolve():g&&(l(p,h,n,r,i,null,a,o,s),No(f,h))):(f.pendingId++,y?(f.isHydrating=!1,f.activeBranch=v):u(v,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),g?(l(null,d,f.hiddenContainer,null,i,f,a,o,s),f.deps<=0?f.resolve():(l(p,h,n,r,i,null,a,o,s),No(f,h))):p&&yr(d,p)?(l(p,d,n,r,i,f,a,o,s),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,i,f,a,o,s),f.deps<=0&&f.resolve()));else if(p&&yr(d,p))l(p,d,n,r,i,f,a,o,s),No(f,d);else if(La(t,"onPending"),f.pendingBranch=d,f.pendingId++,l(null,d,f.hiddenContainer,null,i,f,a,o,s),f.deps<=0)f.resolve();else{const{timeout:m,pendingId:b}=f;m>0?setTimeout(()=>{f.pendingId===b&&f.fallback(h)},m):m===0&&f.fallback(h)}}function wf(e,t,n,r,i,a,o,s,l,u,c=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:v,remove:g}}=u,y=vi(e.props&&e.props.timeout),m={vnode:e,parent:t,parentComponent:n,isSVG:o,container:r,hiddenContainer:i,anchor:a,deps:0,pendingId:0,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:c,isUnmounted:!1,effects:[],resolve(b=!1){const{vnode:T,activeBranch:S,pendingBranch:w,pendingId:N,effects:I,parentComponent:R,container:U}=m;if(m.isHydrating)m.isHydrating=!1;else if(!b){const j=S&&w.transition&&w.transition.mode==="out-in";j&&(S.transition.afterLeave=()=>{N===m.pendingId&&d(w,U,B,0)});let{anchor:B}=m;S&&(B=p(S),h(S,R,m,!0)),j||d(w,U,B,0)}No(m,w),m.pendingBranch=null,m.isInFallback=!1;let $=m.parent,z=!1;for(;$;){if($.pendingBranch){$.effects.push(...I),z=!0;break}$=$.parent}z||_f(I),m.effects=[],La(T,"onResolve")},fallback(b){if(!m.pendingBranch)return;const{vnode:T,activeBranch:S,parentComponent:w,container:N,isSVG:I}=m;La(T,"onFallback");const R=p(S),U=()=>{!m.isInFallback||(f(null,b,N,R,w,null,I,s,l),No(m,b))},$=b.transition&&b.transition.mode==="out-in";$&&(S.transition.afterLeave=U),m.isInFallback=!0,h(S,w,null,!0),$||U()},move(b,T,S){m.activeBranch&&d(m.activeBranch,b,T,S),m.container=b},next(){return m.activeBranch&&p(m.activeBranch)},registerDep(b,T){const S=!!m.pendingBranch;S&&m.deps++;const w=b.vnode.el;b.asyncDep.catch(N=>{so(N,b,0)}).then(N=>{if(b.isUnmounted||m.isUnmounted||m.pendingId!==b.suspenseId)return;b.asyncResolved=!0;const{vnode:I}=b;vc(b,N,!1),w&&(I.el=w);const R=!w&&b.subTree.el;T(b,I,v(w||b.subTree.el),w?null:p(b.subTree),m,o,l),R&&g(R),Tf(b,I.el),S&&--m.deps===0&&m.resolve()})},unmount(b,T){m.isUnmounted=!0,m.activeBranch&&h(m.activeBranch,n,b,T),m.pendingBranch&&h(m.pendingBranch,n,b,T)}};return m}function Q0(e,t,n,r,i,a,o,s,l){const u=t.suspense=wf(t,r,n,e.parentNode,document.createElement("div"),null,i,a,o,s,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,a,o);return u.deps===0&&u.resolve(),c}function q0(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=kd(r?n.default:n),e.ssFallback=r?kd(n.fallback):C(yn)}function kd(e){let t;if(De(e)){const n=no&&e._c;n&&(e._d=!1,M()),e=e(),n&&(e._d=!0,t=Nn,em())}return Ce(e)&&(e=H0(e)),e=Ln(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Iv(e,t){t&&t.pendingBranch?Ce(e)?t.effects.push(...e):t.effects.push(e):_f(e)}function No(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,i=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=i,Tf(r,i))}function Hi(e,t){if(on){let n=on.provides;const r=on.parent&&on.parent.provides;r===n&&(n=on.provides=Object.create(r)),n[e]=t}}function Kn(e,t,n=!1){const r=on||mn;if(r){const i=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&De(t)?t.call(r.proxy):t}}function zt(e,t){return rs(e,null,t)}function Sv(e,t){return rs(e,null,{flush:"post"})}function eb(e,t){return rs(e,null,{flush:"sync"})}const Dd={};function Dt(e,t,n){return rs(e,t,n)}function rs(e,t,{immediate:n,deep:r,flush:i,onTrack:a,onTrigger:o}=xt){const s=on;let l,u=!1,c=!1;if(et(e)?(l=()=>e.value,u=ul(e)):di(e)?(l=()=>e,r=!0):Ce(e)?(c=!0,u=e.some(y=>di(y)||ul(y)),l=()=>e.map(y=>{if(et(y))return y.value;if(di(y))return zi(y);if(De(y))return Cr(y,s,2)})):De(e)?t?l=()=>Cr(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return f&&f(),Gn(e,s,3,[d])}:l=ur,t&&r){const y=l;l=()=>zi(y())}let f,d=y=>{f=g.onStop=()=>{Cr(y,s,4)}};if(ko)return d=ur,t?n&&Gn(t,s,3,[l(),c?[]:void 0,d]):l(),ur;let h=c?[]:Dd;const p=()=>{if(!!g.active)if(t){const y=g.run();(r||u||(c?y.some((m,b)=>Mo(m,h[b])):Mo(y,h)))&&(f&&f(),Gn(t,s,3,[y,h===Dd?void 0:h,d]),h=y)}else g.run()};p.allowRecurse=!!t;let v;i==="sync"?v=p:i==="post"?v=()=>fn(p,s&&s.suspense):v=()=>V0(p);const g=new ns(l,v);return t?n?p():h=g.run():i==="post"?fn(g.run.bind(g),s&&s.suspense):g.run(),()=>{g.stop(),s&&s.scope&&sf(s.scope.effects,g)}}function tb(e,t,n){const r=this.proxy,i=Vt(e)?e.includes(".")?Nv(r,e):()=>r[e]:e.bind(r,r);let a;De(t)?a=t:(a=t.handler,n=t);const o=on;gi(this);const s=rs(i,a.bind(r),n);return o?gi(o):hi(),s}function Nv(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{zi(n,t)});else if(nv(e))for(const n in e)zi(e[n],t);return e}function Cf(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return vr(()=>{e.isMounted=!0}),as(()=>{e.isUnmounting=!0}),e}const zn=[Function,Array],nb={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:zn,onEnter:zn,onAfterEnter:zn,onEnterCancelled:zn,onBeforeLeave:zn,onLeave:zn,onAfterLeave:zn,onLeaveCancelled:zn,onBeforeAppear:zn,onAppear:zn,onAfterAppear:zn,onAppearCancelled:zn},setup(e,{slots:t}){const n=Fr(),r=Cf();let i;return()=>{const a=t.default&&zl(t.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const v of a)if(v.type!==yn){o=v;break}}const s=ot(e),{mode:l}=s;if(r.isLeaving)return fu(o);const u=Gd(o);if(!u)return fu(o);const c=Uo(u,s,r,n);to(u,c);const f=n.subTree,d=f&&Gd(f);let h=!1;const{getTransitionKey:p}=u.type;if(p){const v=p();i===void 0?i=v:v!==i&&(i=v,h=!0)}if(d&&d.type!==yn&&(!yr(u,d)||h)){const v=Uo(d,s,r,n);if(to(d,v),l==="out-in")return r.isLeaving=!0,v.afterLeave=()=>{r.isLeaving=!1,n.update()},fu(o);l==="in-out"&&u.type!==yn&&(v.delayLeave=(g,y,m)=>{const b=Rv(r,d);b[String(d.key)]=d,g._leaveCb=()=>{y(),g._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=m})}return o}}},Ef=nb;function Rv(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Uo(e,t,n,r){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:v,onAppear:g,onAfterAppear:y,onAppearCancelled:m}=t,b=String(e.key),T=Rv(n,e),S=(I,R)=>{I&&Gn(I,r,9,R)},w=(I,R)=>{const U=R[1];S(I,R),Ce(I)?I.every($=>$.length<=1)&&U():I.length<=1&&U()},N={mode:a,persisted:o,beforeEnter(I){let R=s;if(!n.isMounted)if(i)R=v||s;else return;I._leaveCb&&I._leaveCb(!0);const U=T[b];U&&yr(e,U)&&U.el._leaveCb&&U.el._leaveCb(),S(R,[I])},enter(I){let R=l,U=u,$=c;if(!n.isMounted)if(i)R=g||l,U=y||u,$=m||c;else return;let z=!1;const j=I._enterCb=B=>{z||(z=!0,B?S($,[I]):S(U,[I]),N.delayedLeave&&N.delayedLeave(),I._enterCb=void 0)};R?w(R,[I,j]):j()},leave(I,R){const U=String(e.key);if(I._enterCb&&I._enterCb(!0),n.isUnmounting)return R();S(f,[I]);let $=!1;const z=I._leaveCb=j=>{$||($=!0,R(),j?S(p,[I]):S(h,[I]),I._leaveCb=void 0,T[U]===e&&delete T[U])};T[U]=e,d?w(d,[I,z]):z()},clone(I){return Uo(I,t,n,r)}};return N}function fu(e){if(is(e))return e=Ar(e),e.children=null,e}function Gd(e){return is(e)?e.children?e.children[0]:void 0:e}function to(e,t){e.shapeFlag&6&&e.component?to(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 zl(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let a=0;a!!e.type.__asyncLoader;function rb(e){De(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,timeout:a,suspensible:o=!0,onError:s}=e;let l=null,u,c=0;const f=()=>(c++,l=null,d()),d=()=>{let h;return l||(h=l=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),s)return new Promise((v,g)=>{s(p,()=>v(f()),()=>g(p),c+1)});throw p}).then(p=>h!==l&&l?l:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),u=p,p)))};return Ie({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return u},setup(){const h=on;if(u)return()=>du(u,h);const p=m=>{l=null,so(m,h,13,!r)};if(o&&h.suspense||ko)return d().then(m=>()=>du(m,h)).catch(m=>(p(m),()=>r?C(r,{error:m}):null));const v=Te(!1),g=Te(),y=Te(!!i);return i&&setTimeout(()=>{y.value=!1},i),a!=null&&setTimeout(()=>{if(!v.value&&!g.value){const m=new Error(`Async component timed out after ${a}ms.`);p(m),g.value=m}},a),d().then(()=>{v.value=!0,h.parent&&is(h.parent.vnode)&&xf(h.parent.update)}).catch(m=>{p(m),g.value=m}),()=>{if(v.value&&u)return du(u,h);if(g.value&&r)return C(r,{error:g.value});if(n&&!y.value)return C(n)}}})}function du(e,{vnode:{ref:t,props:n,children:r,shapeFlag:i},parent:a}){const o=C(e,n,r);return o.ref=t,o}const is=e=>e.type.__isKeepAlive,ib={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Fr(),r=n.ctx;if(!r.renderer)return()=>{const m=t.default&&t.default();return m&&m.length===1?m[0]:m};const i=new Map,a=new Set;let o=null;const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,d=f("div");r.activate=(m,b,T,S,w)=>{const N=m.component;u(m,b,T,0,s),l(N.vnode,m,b,T,N,s,S,m.slotScopeIds,w),fn(()=>{N.isDeactivated=!1,N.a&&So(N.a);const I=m.props&&m.props.onVnodeMounted;I&&In(I,N.parent,m)},s)},r.deactivate=m=>{const b=m.component;u(m,d,null,1,s),fn(()=>{b.da&&So(b.da);const T=m.props&&m.props.onVnodeUnmounted;T&&In(T,b.parent,m),b.isDeactivated=!0},s)};function h(m){hu(m),c(m,n,s,!0)}function p(m){i.forEach((b,T)=>{const S=ml(b.type);S&&(!m||!m(S))&&v(T)})}function v(m){const b=i.get(m);!o||b.type!==o.type?h(b):o&&hu(o),i.delete(m),a.delete(m)}Dt(()=>[e.include,e.exclude],([m,b])=>{m&&p(T=>sa(m,T)),b&&p(T=>!sa(b,T))},{flush:"post",deep:!0});let g=null;const y=()=>{g!=null&&i.set(g,pu(n.subTree))};return vr(y),os(y),as(()=>{i.forEach(m=>{const{subTree:b,suspense:T}=n,S=pu(b);if(m.type===S.type){hu(S);const w=S.component.da;w&&fn(w,T);return}h(m)})}),()=>{if(g=null,!t.default)return null;const m=t.default(),b=m[0];if(m.length>1)return o=null,m;if(!fr(b)||!(b.shapeFlag&4)&&!(b.shapeFlag&128))return o=null,b;let T=pu(b);const S=T.type,w=ml(Ji(T)?T.type.__asyncResolved||{}:S),{include:N,exclude:I,max:R}=e;if(N&&(!w||!sa(N,w))||I&&w&&sa(I,w))return o=T,b;const U=T.key==null?S:T.key,$=i.get(U);return T.el&&(T=Ar(T),b.shapeFlag&128&&(b.ssContent=T)),g=U,$?(T.el=$.el,T.component=$.component,T.transition&&to(T,T.transition),T.shapeFlag|=512,a.delete(U),a.add(U)):(a.add(U),R&&a.size>parseInt(R,10)&&v(a.values().next().value)),T.shapeFlag|=256,o=T,Ev(b.type)?b:T}}},ob=ib;function sa(e,t){return Ce(e)?e.some(n=>sa(n,t)):Vt(e)?e.split(",").includes(t):e.test?e.test(t):!1}function Av(e,t){Pv(e,"a",t)}function Ov(e,t){Pv(e,"da",t)}function Pv(e,t,n=on){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Xl(t,r,n),n){let i=n.parent;for(;i&&i.parent;)is(i.parent.vnode)&&ab(r,t,n,i),i=i.parent}}function ab(e,t,n,r){const i=Xl(t,e,r,!0);Ho(()=>{sf(r[t],i)},n)}function hu(e){let t=e.shapeFlag;t&256&&(t-=256),t&512&&(t-=512),e.shapeFlag=t}function pu(e){return e.shapeFlag&128?e.ssContent:e}function Xl(e,t,n=on,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;oo(),gi(n);const s=Gn(t,n,e,o);return hi(),ao(),s});return r?i.unshift(a):i.push(a),a}}const Wr=e=>(t,n=on)=>(!ko||e==="sp")&&Xl(e,t,n),Fv=Wr("bm"),vr=Wr("m"),Mv=Wr("bu"),os=Wr("u"),as=Wr("bum"),Ho=Wr("um"),Lv=Wr("sp"),Uv=Wr("rtg"),Bv=Wr("rtc");function kv(e,t=on){Xl("ec",e,t)}function zo(e,t){const n=mn;if(n===null)return e;const r=Kl(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let a=0;at(o,s,void 0,a&&a[s]));else{const o=Object.keys(e);i=new Array(o.length);for(let s=0,l=o.length;sfr(t)?!(t.type===yn||t.type===Oe&&!Gv(t.children)):!0)?e:null}function Vv(e){const t={};for(const n in e)t[va(n)]=e[n];return t}const lc=e=>e?om(e)?Kl(e)||e.proxy:lc(e.parent):null,dl=Xt(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=>lc(e.parent),$root:e=>lc(e.root),$emit:e=>e.emit,$options:e=>jv(e),$forceUpdate:e=>e.f||(e.f=()=>xf(e.update)),$nextTick:e=>e.n||(e.n=tn.bind(e.proxy)),$watch:e=>tb.bind(e)}),uc={get({_:e},t){const{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else{if(r!==xt&&dt(r,t))return o[t]=1,r[t];if(i!==xt&&dt(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&dt(u,t))return o[t]=3,a[t];if(n!==xt&&dt(n,t))return o[t]=4,n[t];cc&&(o[t]=0)}}const c=dl[t];let f,d;if(c)return t==="$attrs"&&$n(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==xt&&dt(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,dt(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return i!==xt&&dt(i,t)?(i[t]=n,!0):r!==xt&&dt(r,t)?(r[t]=n,!0):dt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a}},o){let s;return!!n[o]||e!==xt&&dt(e,o)||t!==xt&&dt(t,o)||(s=a[0])&&dt(s,o)||dt(r,o)||dt(dl,o)||dt(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:dt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},cb=Xt({},uc,{get(e,t){if(t!==Symbol.unscopables)return uc.get(e,t,e)},has(e,t){return t[0]!=="_"&&!My(t)}});let cc=!0;function fb(e){const t=jv(e),n=e.proxy,r=e.ctx;cc=!1,t.beforeCreate&&$d(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:v,deactivated:g,beforeDestroy:y,beforeUnmount:m,destroyed:b,unmounted:T,render:S,renderTracked:w,renderTriggered:N,errorCaptured:I,serverPrefetch:R,expose:U,inheritAttrs:$,components:z,directives:j,filters:B}=t;if(u&&db(u,r,null,e.appContext.config.unwrapInjectedRef),o)for(const oe in o){const me=o[oe];De(me)&&(r[oe]=me.bind(n))}if(i){const oe=i.call(n,n);Wt(oe)&&(e.data=Pr(oe))}if(cc=!0,a)for(const oe in a){const me=a[oe],Ke=De(me)?me.bind(n,n):De(me.get)?me.get.bind(n,n):ur,re=!De(me)&&De(me.set)?me.set.bind(n):ur,de=J({get:Ke,set:re});Object.defineProperty(r,oe,{enumerable:!0,configurable:!0,get:()=>de.value,set:ye=>de.value=ye})}if(s)for(const oe in s)$v(s[oe],r,n,oe);if(l){const oe=De(l)?l.call(n):l;Reflect.ownKeys(oe).forEach(me=>{Hi(me,oe[me])})}c&&$d(c,e,"c");function Y(oe,me){Ce(me)?me.forEach(Ke=>oe(Ke.bind(n))):me&&oe(me.bind(n))}if(Y(Fv,f),Y(vr,d),Y(Mv,h),Y(os,p),Y(Av,v),Y(Ov,g),Y(kv,I),Y(Bv,w),Y(Uv,N),Y(as,m),Y(Ho,T),Y(Lv,R),Ce(U))if(U.length){const oe=e.exposed||(e.exposed={});U.forEach(me=>{Object.defineProperty(oe,me,{get:()=>n[me],set:Ke=>n[me]=Ke})})}else e.exposed||(e.exposed={});S&&e.render===ur&&(e.render=S),$!=null&&(e.inheritAttrs=$),z&&(e.components=z),j&&(e.directives=j)}function db(e,t,n=ur,r=!1){Ce(e)&&(e=fc(e));for(const i in e){const a=e[i];let o;Wt(a)?"default"in a?o=Kn(a.from||i,a.default,!0):o=Kn(a.from||i):o=Kn(a),et(o)&&r?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[i]=o}}function $d(e,t,n){Gn(Ce(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function $v(e,t,n,r){const i=r.includes(".")?Nv(n,r):()=>n[r];if(Vt(e)){const a=t[e];De(a)&&Dt(i,a)}else if(De(e))Dt(i,e.bind(n));else if(Wt(e))if(Ce(e))e.forEach(a=>$v(a,t,n,r));else{const a=De(e.handler)?e.handler.bind(n):t[e.handler];De(a)&&Dt(i,a,e)}}function jv(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>hl(l,u,o,!0)),hl(l,t,o)),a.set(t,l),l}function hl(e,t,n,r=!1){const{mixins:i,extends:a}=t;a&&hl(e,a,n,!0),i&&i.forEach(o=>hl(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const s=hb[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const hb={data:jd,props:Mi,emits:Mi,methods:Mi,computed:Mi,beforeCreate:bn,created:bn,beforeMount:bn,mounted:bn,beforeUpdate:bn,updated:bn,beforeDestroy:bn,beforeUnmount:bn,destroyed:bn,unmounted:bn,activated:bn,deactivated:bn,errorCaptured:bn,serverPrefetch:bn,components:Mi,directives:Mi,watch:vb,provide:jd,inject:pb};function jd(e,t){return t?e?function(){return Xt(De(e)?e.call(this,this):e,De(t)?t.call(this,this):t)}:t:e}function pb(e,t){return Mi(fc(e),fc(t))}function fc(e){if(Ce(e)){const t={};for(let n=0;n0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,h]=zv(f,t,!0);Xt(o,d),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return r.set(e,Eo),Eo;if(Ce(a))for(let c=0;c-1,h[1]=v<0||p-1||dt(h,"default"))&&s.push(f)}}}const u=[o,s];return r.set(e,u),u}function Hd(e){return e[0]!=="$"}function zd(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Xd(e,t){return zd(e)===zd(t)}function Wd(e,t){return Ce(t)?t.findIndex(n=>Xd(n,e)):De(t)&&Xd(t,e)?0:-1}const Xv=e=>e[0]==="_"||e==="$stable",Nf=e=>Ce(e)?e.map(Ln):[Ln(e)],yb=(e,t,n)=>{if(t._n)return t;const r=Pe((...i)=>Nf(t(...i)),n);return r._c=!1,r},Wv=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Xv(i))continue;const a=e[i];if(De(a))t[i]=yb(i,a,r);else if(a!=null){const o=Nf(a);t[i]=()=>o}}},Kv=(e,t)=>{const n=Nf(t);e.slots.default=()=>n},bb=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ot(t),ll(t,"_",n)):Wv(t,e.slots={})}else e.slots={},t&&Kv(e,t);ll(e.slots,Wl,1)},xb=(e,t,n)=>{const{vnode:r,slots:i}=e;let a=!0,o=xt;if(r.shapeFlag&32){const s=t._;s?n&&s===1?a=!1:(Xt(i,t),!n&&s===1&&delete i._):(a=!t.$stable,Wv(t,i)),o=t}else t&&(Kv(e,t),o={default:1});if(a)for(const s in i)!Xv(s)&&!(s in o)&&delete i[s]};function Yv(){return{app:null,config:{isNativeTag:Vy,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 _b=0;function Tb(e,t){return function(r,i=null){De(r)||(r=Object.assign({},r)),i!=null&&!Wt(i)&&(i=null);const a=Yv(),o=new Set;let s=!1;const l=a.app={_uid:_b++,_component:r,_props:i,_container:null,_context:a,_instance:null,version:pm,get config(){return a.config},set config(u){},use(u,...c){return o.has(u)||(u&&De(u.install)?(o.add(u),u.install(l,...c)):De(u)&&(o.add(u),u(l,...c))),l},mixin(u){return a.mixins.includes(u)||a.mixins.push(u),l},component(u,c){return c?(a.components[u]=c,l):a.components[u]},directive(u,c){return c?(a.directives[u]=c,l):a.directives[u]},mount(u,c,f){if(!s){const d=C(r,i);return d.appContext=a,c&&t?t(d,u):e(d,u,f),s=!0,l._container=u,u.__vue_app__=l,Kl(d.component)||d.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return a.provides[u]=c,l}};return l}}function pl(e,t,n,r,i=!1){if(Ce(e)){e.forEach((d,h)=>pl(d,t&&(Ce(t)?t[h]:t),n,r,i));return}if(Ji(r)&&!i)return;const a=r.shapeFlag&4?Kl(r.component)||r.component.proxy:r.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===xt?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(Vt(u)?(c[u]=null,dt(f,u)&&(f[u]=null)):et(u)&&(u.value=null)),De(l))Cr(l,s,12,[o,c]);else{const d=Vt(l),h=et(l);if(d||h){const p=()=>{if(e.f){const v=d?c[l]:l.value;i?Ce(v)&&sf(v,a):Ce(v)?v.includes(a)||v.push(a):d?(c[l]=[a],dt(f,l)&&(f[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else d?(c[l]=o,dt(f,l)&&(f[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(p.id=-1,fn(p,n)):p()}}}let qr=!1;const xs=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",_s=e=>e.nodeType===8;function wb(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:o,remove:s,insert:l,createComment:u}}=e,c=(y,m)=>{if(!m.hasChildNodes()){n(null,y,m),fl(),m._vnode=y;return}qr=!1,f(m.firstChild,y,null,null,null),fl(),m._vnode=y,qr&&console.error("Hydration completed but contains mismatches.")},f=(y,m,b,T,S,w=!1)=>{const N=_s(y)&&y.data==="[",I=()=>v(y,m,b,T,S,N),{type:R,ref:U,shapeFlag:$,patchFlag:z}=m,j=y.nodeType;m.el=y,z===-2&&(w=!1,m.dynamicChildren=null);let B=null;switch(R){case Bo:j!==3?m.children===""?(l(m.el=i(""),o(y),y),B=y):B=I():(y.data!==m.children&&(qr=!0,y.data=m.children),B=a(y));break;case yn:j!==8||N?B=I():B=a(y);break;case Qi:if(j!==1&&j!==3)B=I();else{B=y;const he=!m.children.length;for(let Y=0;Y{w=w||!!m.dynamicChildren;const{type:N,props:I,patchFlag:R,shapeFlag:U,dirs:$}=m,z=N==="input"&&$||N==="option";if(z||R!==-1){if($&&mr(m,null,b,"created"),I)if(z||!w||R&48)for(const B in I)(z&&B.endsWith("value")||qa(B)&&!pa(B))&&r(y,B,null,I[B],!1,void 0,b);else I.onClick&&r(y,"onClick",null,I.onClick,!1,void 0,b);let j;if((j=I&&I.onVnodeBeforeMount)&&In(j,b,m),$&&mr(m,null,b,"beforeMount"),((j=I&&I.onVnodeMounted)||$)&&Iv(()=>{j&&In(j,b,m),$&&mr(m,null,b,"mounted")},T),U&16&&!(I&&(I.innerHTML||I.textContent))){let B=h(y.firstChild,m,y,b,T,S,w);for(;B;){qr=!0;const he=B;B=B.nextSibling,s(he)}}else U&8&&y.textContent!==m.children&&(qr=!0,y.textContent=m.children)}return y.nextSibling},h=(y,m,b,T,S,w,N)=>{N=N||!!m.dynamicChildren;const I=m.children,R=I.length;for(let U=0;U{const{slotScopeIds:N}=m;N&&(S=S?S.concat(N):N);const I=o(y),R=h(a(y),m,I,b,T,S,w);return R&&_s(R)&&R.data==="]"?a(m.anchor=R):(qr=!0,l(m.anchor=u("]"),I,R),R)},v=(y,m,b,T,S,w)=>{if(qr=!0,m.el=null,w){const R=g(y);for(;;){const U=a(y);if(U&&U!==R)s(U);else break}}const N=a(y),I=o(y);return s(y),n(null,m,I,N,b,T,xs(I),S),N},g=y=>{let m=0;for(;y;)if(y=a(y),y&&_s(y)&&(y.data==="["&&m++,y.data==="]")){if(m===0)return a(y);m--}return y};return[c,f]}const fn=Iv;function Zv(e){return Qv(e)}function Jv(e){return Qv(e,wb)}function Qv(e,t){const n=Wy();n.__VUE__=!0;const{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=ur,cloneNode:p,insertStaticContent:v}=e,g=(E,A,V,K=null,Z=null,ae=null,pe=!1,ne=null,se=!!A.dynamicChildren)=>{if(E===A)return;E&&!yr(E,A)&&(K=Ve(E),Se(E,Z,ae,!0),E=null),A.patchFlag===-2&&(se=!1,A.dynamicChildren=null);const{type:ee,ref:Ne,shapeFlag:be}=A;switch(ee){case Bo:y(E,A,V,K);break;case yn:m(E,A,V,K);break;case Qi:E==null&&b(A,V,K,pe);break;case Oe:j(E,A,V,K,Z,ae,pe,ne,se);break;default:be&1?w(E,A,V,K,Z,ae,pe,ne,se):be&6?B(E,A,V,K,Z,ae,pe,ne,se):(be&64||be&128)&&ee.process(E,A,V,K,Z,ae,pe,ne,se,Ze)}Ne!=null&&Z&&pl(Ne,E&&E.ref,ae,A||E,!A)},y=(E,A,V,K)=>{if(E==null)r(A.el=s(A.children),V,K);else{const Z=A.el=E.el;A.children!==E.children&&u(Z,A.children)}},m=(E,A,V,K)=>{E==null?r(A.el=l(A.children||""),V,K):A.el=E.el},b=(E,A,V,K)=>{[E.el,E.anchor]=v(E.children,A,V,K,E.el,E.anchor)},T=({el:E,anchor:A},V,K)=>{let Z;for(;E&&E!==A;)Z=d(E),r(E,V,K),E=Z;r(A,V,K)},S=({el:E,anchor:A})=>{let V;for(;E&&E!==A;)V=d(E),i(E),E=V;i(A)},w=(E,A,V,K,Z,ae,pe,ne,se)=>{pe=pe||A.type==="svg",E==null?N(A,V,K,Z,ae,pe,ne,se):U(E,A,Z,ae,pe,ne,se)},N=(E,A,V,K,Z,ae,pe,ne)=>{let se,ee;const{type:Ne,props:be,shapeFlag:Re,transition:Le,patchFlag:qe,dirs:ht}=E;if(E.el&&p!==void 0&&qe===-1)se=E.el=p(E.el);else{if(se=E.el=o(E.type,ae,be&&be.is,be),Re&8?c(se,E.children):Re&16&&R(E.children,se,null,K,Z,ae&&Ne!=="foreignObject",pe,ne),ht&&mr(E,null,K,"created"),be){for(const L in be)L!=="value"&&!pa(L)&&a(se,L,null,be[L],ae,E.children,K,Z,ue);"value"in be&&a(se,"value",null,be.value),(ee=be.onVnodeBeforeMount)&&In(ee,K,E)}I(se,E,E.scopeId,pe,K)}ht&&mr(E,null,K,"beforeMount");const F=(!Z||Z&&!Z.pendingBranch)&&Le&&!Le.persisted;F&&Le.beforeEnter(se),r(se,A,V),((ee=be&&be.onVnodeMounted)||F||ht)&&fn(()=>{ee&&In(ee,K,E),F&&Le.enter(se),ht&&mr(E,null,K,"mounted")},Z)},I=(E,A,V,K,Z)=>{if(V&&h(E,V),K)for(let ae=0;ae{for(let ee=se;ee{const ne=A.el=E.el;let{patchFlag:se,dynamicChildren:ee,dirs:Ne}=A;se|=E.patchFlag&16;const be=E.props||xt,Re=A.props||xt;let Le;V&&Ci(V,!1),(Le=Re.onVnodeBeforeUpdate)&&In(Le,V,A,E),Ne&&mr(A,E,V,"beforeUpdate"),V&&Ci(V,!0);const qe=Z&&A.type!=="foreignObject";if(ee?$(E.dynamicChildren,ee,ne,V,K,qe,ae):pe||Ke(E,A,ne,null,V,K,qe,ae,!1),se>0){if(se&16)z(ne,A,be,Re,V,K,Z);else if(se&2&&be.class!==Re.class&&a(ne,"class",null,Re.class,Z),se&4&&a(ne,"style",be.style,Re.style,Z),se&8){const ht=A.dynamicProps;for(let F=0;F{Le&&In(Le,V,A,E),Ne&&mr(A,E,V,"updated")},K)},$=(E,A,V,K,Z,ae,pe)=>{for(let ne=0;ne{if(V!==K){for(const ne in K){if(pa(ne))continue;const se=K[ne],ee=V[ne];se!==ee&&ne!=="value"&&a(E,ne,ee,se,pe,A.children,Z,ae,ue)}if(V!==xt)for(const ne in V)!pa(ne)&&!(ne in K)&&a(E,ne,V[ne],null,pe,A.children,Z,ae,ue);"value"in K&&a(E,"value",V.value,K.value)}},j=(E,A,V,K,Z,ae,pe,ne,se)=>{const ee=A.el=E?E.el:s(""),Ne=A.anchor=E?E.anchor:s("");let{patchFlag:be,dynamicChildren:Re,slotScopeIds:Le}=A;Le&&(ne=ne?ne.concat(Le):Le),E==null?(r(ee,V,K),r(Ne,V,K),R(A.children,V,Ne,Z,ae,pe,ne,se)):be>0&&be&64&&Re&&E.dynamicChildren?($(E.dynamicChildren,Re,V,Z,ae,pe,ne),(A.key!=null||Z&&A===Z.subTree)&&Rf(E,A,!0)):Ke(E,A,V,Ne,Z,ae,pe,ne,se)},B=(E,A,V,K,Z,ae,pe,ne,se)=>{A.slotScopeIds=ne,E==null?A.shapeFlag&512?Z.ctx.activate(A,V,K,pe,se):he(A,V,K,Z,ae,pe,se):Y(E,A,se)},he=(E,A,V,K,Z,ae,pe)=>{const ne=E.component=im(E,K,Z);if(is(E)&&(ne.ctx.renderer=Ze),am(ne),ne.asyncDep){if(Z&&Z.registerDep(ne,oe),!E.el){const se=ne.subTree=C(yn);m(null,se,A,V)}return}oe(ne,E,A,V,Z,ae,pe)},Y=(E,A,V)=>{const K=A.component=E.component;if(W0(E,A,V))if(K.asyncDep&&!K.asyncResolved){me(K,A,V);return}else K.next=A,G0(K.update),K.update();else A.el=E.el,K.vnode=A},oe=(E,A,V,K,Z,ae,pe)=>{const ne=()=>{if(E.isMounted){let{next:Ne,bu:be,u:Re,parent:Le,vnode:qe}=E,ht=Ne,F;Ci(E,!1),Ne?(Ne.el=qe.el,me(E,Ne,pe)):Ne=qe,be&&So(be),(F=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&In(F,Le,Ne,qe),Ci(E,!0);const L=Ys(E),G=E.subTree;E.subTree=L,g(G,L,f(G.el),Ve(G),E,Z,ae),Ne.el=L.el,ht===null&&Tf(E,L.el),Re&&fn(Re,Z),(F=Ne.props&&Ne.props.onVnodeUpdated)&&fn(()=>In(F,Le,Ne,qe),Z)}else{let Ne;const{el:be,props:Re}=A,{bm:Le,m:qe,parent:ht}=E,F=Ji(A);if(Ci(E,!1),Le&&So(Le),!F&&(Ne=Re&&Re.onVnodeBeforeMount)&&In(Ne,ht,A),Ci(E,!0),be&&ut){const L=()=>{E.subTree=Ys(E),ut(be,E.subTree,E,Z,null)};F?A.type.__asyncLoader().then(()=>!E.isUnmounted&&L()):L()}else{const L=E.subTree=Ys(E);g(null,L,V,K,E,Z,ae),A.el=L.el}if(qe&&fn(qe,Z),!F&&(Ne=Re&&Re.onVnodeMounted)){const L=A;fn(()=>In(Ne,ht,L),Z)}(A.shapeFlag&256||ht&&Ji(ht.vnode)&&ht.vnode.shapeFlag&256)&&E.a&&fn(E.a,Z),E.isMounted=!0,A=V=K=null}},se=E.effect=new ns(ne,()=>xf(ee),E.scope),ee=E.update=()=>se.run();ee.id=E.uid,Ci(E,!0),ee()},me=(E,A,V)=>{A.component=E;const K=E.vnode.props;E.vnode=A,E.next=null,gb(E,A.props,K,V),xb(E,A.children,V),oo(),$l(void 0,E.update),ao()},Ke=(E,A,V,K,Z,ae,pe,ne,se=!1)=>{const ee=E&&E.children,Ne=E?E.shapeFlag:0,be=A.children,{patchFlag:Re,shapeFlag:Le}=A;if(Re>0){if(Re&128){de(ee,be,V,K,Z,ae,pe,ne,se);return}else if(Re&256){re(ee,be,V,K,Z,ae,pe,ne,se);return}}Le&8?(Ne&16&&ue(ee,Z,ae),be!==ee&&c(V,be)):Ne&16?Le&16?de(ee,be,V,K,Z,ae,pe,ne,se):ue(ee,Z,ae,!0):(Ne&8&&c(V,""),Le&16&&R(be,V,K,Z,ae,pe,ne,se))},re=(E,A,V,K,Z,ae,pe,ne,se)=>{E=E||Eo,A=A||Eo;const ee=E.length,Ne=A.length,be=Math.min(ee,Ne);let Re;for(Re=0;ReNe?ue(E,Z,ae,!0,!1,be):R(A,V,K,Z,ae,pe,ne,se,be)},de=(E,A,V,K,Z,ae,pe,ne,se)=>{let ee=0;const Ne=A.length;let be=E.length-1,Re=Ne-1;for(;ee<=be&&ee<=Re;){const Le=E[ee],qe=A[ee]=se?ii(A[ee]):Ln(A[ee]);if(yr(Le,qe))g(Le,qe,V,null,Z,ae,pe,ne,se);else break;ee++}for(;ee<=be&&ee<=Re;){const Le=E[be],qe=A[Re]=se?ii(A[Re]):Ln(A[Re]);if(yr(Le,qe))g(Le,qe,V,null,Z,ae,pe,ne,se);else break;be--,Re--}if(ee>be){if(ee<=Re){const Le=Re+1,qe=LeRe)for(;ee<=be;)Se(E[ee],Z,ae,!0),ee++;else{const Le=ee,qe=ee,ht=new Map;for(ee=qe;ee<=Re;ee++){const Ge=A[ee]=se?ii(A[ee]):Ln(A[ee]);Ge.key!=null&&ht.set(Ge.key,ee)}let F,L=0;const G=Re-qe+1;let te=!1,_e=0;const Fe=new Array(G);for(ee=0;ee=G){Se(Ge,Z,ae,!0);continue}let mt;if(Ge.key!=null)mt=ht.get(Ge.key);else for(F=qe;F<=Re;F++)if(Fe[F-qe]===0&&yr(Ge,A[F])){mt=F;break}mt===void 0?Se(Ge,Z,ae,!0):(Fe[mt-qe]=ee+1,mt>=_e?_e=mt:te=!0,g(Ge,A[mt],V,null,Z,ae,pe,ne,se),L++)}const $e=te?Cb(Fe):Eo;for(F=$e.length-1,ee=G-1;ee>=0;ee--){const Ge=qe+ee,mt=A[Ge],Be=Ge+1{const{el:ae,type:pe,transition:ne,children:se,shapeFlag:ee}=E;if(ee&6){ye(E.component.subTree,A,V,K);return}if(ee&128){E.suspense.move(A,V,K);return}if(ee&64){pe.move(E,A,V,Ze);return}if(pe===Oe){r(ae,A,V);for(let be=0;bene.enter(ae),Z);else{const{leave:be,delayLeave:Re,afterLeave:Le}=ne,qe=()=>r(ae,A,V),ht=()=>{be(ae,()=>{qe(),Le&&Le()})};Re?Re(ae,qe,ht):ht()}else r(ae,A,V)},Se=(E,A,V,K=!1,Z=!1)=>{const{type:ae,props:pe,ref:ne,children:se,dynamicChildren:ee,shapeFlag:Ne,patchFlag:be,dirs:Re}=E;if(ne!=null&&pl(ne,null,V,E,!0),Ne&256){A.ctx.deactivate(E);return}const Le=Ne&1&&Re,qe=!Ji(E);let ht;if(qe&&(ht=pe&&pe.onVnodeBeforeUnmount)&&In(ht,A,E),Ne&6)ce(E.component,V,K);else{if(Ne&128){E.suspense.unmount(V,K);return}Le&&mr(E,null,A,"beforeUnmount"),Ne&64?E.type.remove(E,A,V,Z,Ze,K):ee&&(ae!==Oe||be>0&&be&64)?ue(ee,A,V,!1,!0):(ae===Oe&&be&384||!Z&&Ne&16)&&ue(se,A,V),K&&k(E)}(qe&&(ht=pe&&pe.onVnodeUnmounted)||Le)&&fn(()=>{ht&&In(ht,A,E),Le&&mr(E,null,A,"unmounted")},V)},k=E=>{const{type:A,el:V,anchor:K,transition:Z}=E;if(A===Oe){X(V,K);return}if(A===Qi){S(E);return}const ae=()=>{i(V),Z&&!Z.persisted&&Z.afterLeave&&Z.afterLeave()};if(E.shapeFlag&1&&Z&&!Z.persisted){const{leave:pe,delayLeave:ne}=Z,se=()=>pe(V,ae);ne?ne(E.el,ae,se):se()}else ae()},X=(E,A)=>{let V;for(;E!==A;)V=d(E),i(E),E=V;i(A)},ce=(E,A,V)=>{const{bum:K,scope:Z,update:ae,subTree:pe,um:ne}=E;K&&So(K),Z.stop(),ae&&(ae.active=!1,Se(pe,E,A,V)),ne&&fn(ne,A),fn(()=>{E.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&E.asyncDep&&!E.asyncResolved&&E.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},ue=(E,A,V,K=!1,Z=!1,ae=0)=>{for(let pe=ae;peE.shapeFlag&6?Ve(E.component.subTree):E.shapeFlag&128?E.suspense.next():d(E.anchor||E.el),ie=(E,A,V)=>{E==null?A._vnode&&Se(A._vnode,null,null,!0):g(A._vnode||null,E,A,null,null,null,V),fl(),A._vnode=E},Ze={p:g,um:Se,m:ye,r:k,mt:he,mc:R,pc:Ke,pbc:$,n:Ve,o:e};let at,ut;return t&&([at,ut]=t(Ze)),{render:ie,hydrate:at,createApp:Tb(ie,at)}}function Ci({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Rf(e,t,n=!1){const r=e.children,i=t.children;if(Ce(r)&&Ce(i))for(let a=0;a>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}const Eb=e=>e.__isTeleport,ba=e=>e&&(e.disabled||e.disabled===""),Kd=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,hc=(e,t)=>{const n=e&&e.to;return Vt(n)?t?t(n):null:n},Ib={__isTeleport:!0,process(e,t,n,r,i,a,o,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:v,createComment:g}}=u,y=ba(t.props);let{shapeFlag:m,children:b,dynamicChildren:T}=t;if(e==null){const S=t.el=v(""),w=t.anchor=v("");h(S,n,r),h(w,n,r);const N=t.target=hc(t.props,p),I=t.targetAnchor=v("");N&&(h(I,N),o=o||Kd(N));const R=(U,$)=>{m&16&&c(b,U,$,i,a,o,s,l)};y?R(n,w):N&&R(N,I)}else{t.el=e.el;const S=t.anchor=e.anchor,w=t.target=e.target,N=t.targetAnchor=e.targetAnchor,I=ba(e.props),R=I?n:w,U=I?S:N;if(o=o||Kd(w),T?(d(e.dynamicChildren,T,R,i,a,o,s),Rf(e,t,!0)):l||f(e,t,R,U,i,a,o,s,!1),y)I||Ts(t,n,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const $=t.target=hc(t.props,p);$&&Ts(t,$,null,u,0)}else I&&Ts(t,w,N,u,1)}},remove(e,t,n,r,{um:i,o:{remove:a}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:f,props:d}=e;if(f&&a(c),(o||!ba(d))&&(a(u),s&16))for(let h=0;h0?Nn||Eo:null,em(),no>0&&Nn&&Nn.push(e),e}function W(e,t,n,r,i,a){return tm(P(e,t,n,r,i,a,!0))}function we(e,t,n,r,i){return tm(C(e,t,n,r,i,!0))}function fr(e){return e?e.__v_isVNode===!0:!1}function yr(e,t){return e.type===t.type&&e.key===t.key}function Nb(e){}const Wl="__vInternal",nm=({key:e})=>e!=null?e:null,Zs=({ref:e,ref_key:t,ref_for:n})=>e!=null?Vt(e)||et(e)||De(e)?{i:mn,r:e,k:t,f:!!n}:e:null;function P(e,t=null,n=null,r=0,i=null,a=e===Oe?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nm(t),ref:t&&Zs(t),scopeId:Hl,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:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return s?(Af(l,n),a&128&&e.normalize(l)):n&&(l.shapeFlag|=Vt(n)?8:16),no>0&&!o&&Nn&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Nn.push(l),l}const C=Rb;function Rb(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Dv)&&(e=yn),fr(e)){const s=Ar(e,t,!0);return n&&Af(s,n),no>0&&!a&&Nn&&(s.shapeFlag&6?Nn[Nn.indexOf(e)]=s:Nn.push(s)),s.patchFlag|=-2,s}if(Db(e)&&(e=e.__vccOpts),t){t=rm(t);let{class:s,style:l}=t;s&&!Vt(s)&&(t.class=ze(s)),Wt(l)&&(pf(l)&&!Ce(l)&&(l=Xt({},l)),t.style=tt(l))}const o=Vt(e)?1:Ev(e)?128:Eb(e)?64:Wt(e)?4:De(e)?2:0;return P(e,t,n,r,i,o,a,!0)}function rm(e){return e?pf(e)||Wl in e?Xt({},e):e:null}function Ar(e,t,n=!1){const{props:r,ref:i,patchFlag:a,children:o}=e,s=t?un(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&nm(s),ref:t&&t.ref?n&&i?Ce(i)?i.concat(Zs(t)):[i,Zs(t)]:Zs(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Oe?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ar(e.ssContent),ssFallback:e.ssFallback&&Ar(e.ssFallback),el:e.el,anchor:e.anchor}}function le(e=" ",t=0){return C(Bo,null,e,t)}function Ab(e,t){const n=C(Qi,null,e);return n.staticCount=t,n}function ve(e="",t=!1){return t?(M(),we(yn,null,e)):C(yn,null,e)}function Ln(e){return e==null||typeof e=="boolean"?C(yn):Ce(e)?C(Oe,null,e.slice()):typeof e=="object"?ii(e):C(Bo,null,String(e))}function ii(e){return e.el===null||e.memo?e:Ar(e)}function Af(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ce(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Af(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Wl in t)?t._ctx=mn:i===3&&mn&&(mn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else De(t)?(t={default:t,_ctx:mn},n=32):(t=String(t),r&64?(n=16,t=[le(t)]):n=8);e.children=t,e.shapeFlag|=n}function un(...e){const t={};for(let n=0;non||mn,gi=e=>{on=e,e.scope.on()},hi=()=>{on&&on.scope.off(),on=null};function om(e){return e.vnode.shapeFlag&4}let ko=!1;function am(e,t=!1){ko=t;const{props:n,children:r}=e.vnode,i=om(e);mb(e,n,i,t),bb(e,r);const a=i?Fb(e,t):void 0;return ko=!1,a}function Fb(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=vf(new Proxy(e.ctx,uc));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?lm(e):null;gi(e),oo();const a=Cr(r,e,0,[e.props,i]);if(ao(),hi(),lf(a)){if(a.then(hi,hi),t)return a.then(o=>{vc(e,o,t)}).catch(o=>{so(o,e,0)});e.asyncDep=a}else vc(e,a,t)}else sm(e,t)}function vc(e,t,n){De(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Wt(t)&&(e.setupState=yf(t)),sm(e,n)}let vl,mc;function Mb(e){vl=e,mc=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,cb))}}const Lb=()=>!vl;function sm(e,t,n){const r=e.type;if(!e.render){if(!t&&vl&&!r.render){const i=r.template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Xt(Xt({isCustomElement:a,delimiters:s},o),l);r.render=vl(i,u)}}e.render=r.render||ur,mc&&mc(e)}gi(e),oo(),fb(e),ao(),hi()}function Ub(e){return new Proxy(e.attrs,{get(t,n){return $n(e,"get","$attrs"),t[n]}})}function lm(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=Ub(e))},slots:e.slots,emit:e.emit,expose:t}}function Kl(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(yf(vf(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dl)return dl[n](e)}}))}const Bb=/(?:^|[-_])(\w)/g,kb=e=>e.replace(Bb,t=>t.toUpperCase()).replace(/[-_]/g,"");function ml(e,t=!0){return De(e)?e.displayName||e.name:e.name||t&&e.__name}function um(e,t,n=!1){let r=ml(t);if(!r&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&e&&e.parent){const i=a=>{for(const o in a)if(a[o]===t)return o};r=i(e.components||e.parent.type.components)||i(e.appContext.components)}return r?kb(r):n?"App":"Anonymous"}function Db(e){return De(e)&&"__vccOpts"in e}const J=(e,t)=>F0(e,t,ko);function Gb(){return null}function Vb(){return null}function $b(e){}function jb(e,t){return null}function Hb(){return cm().slots}function zb(){return cm().attrs}function cm(){const e=Fr();return e.setupContext||(e.setupContext=lm(e))}function Xb(e,t){const n=Ce(e)?e.reduce((r,i)=>(r[i]={},r),{}):e;for(const r in t){const i=n[r];i?Ce(i)||De(i)?n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(n[r]={default:t[r]})}return n}function Wb(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Kb(e){const t=Fr();let n=e();return hi(),lf(n)&&(n=n.catch(r=>{throw gi(t),r})),[n,()=>gi(t)]}function fm(e,t,n){const r=arguments.length;return r===2?Wt(t)&&!Ce(t)?fr(t)?C(e,null,[t]):C(e,t):C(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&fr(n)&&(n=[n]),C(e,t,n))}const dm=Symbol(""),Yb=()=>{{const e=Kn(dm);return e||gv("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Zb(){}function Jb(e,t,n,r){const i=n[r];if(i&&hm(i,e))return i;const a=t();return a.memo=e.slice(),n[r]=a}function hm(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&Nn&&Nn.push(e),!0}const pm="3.2.37",Qb={createComponentInstance:im,setupComponent:am,renderComponentRoot:Ys,setCurrentRenderingInstance:Ma,isVNode:fr,normalizeVNode:Ln},qb=Qb,e1=null,t1=null,n1="http://www.w3.org/2000/svg",Vi=typeof document!="undefined"?document:null,Yd=Vi&&Vi.createElement("template"),r1={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?Vi.createElementNS(n1,e):Vi.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Vi.createTextNode(e),createComment:e=>Vi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Vi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,i,a){const o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{Yd.innerHTML=r?`${e}`:e;const s=Yd.content;if(r){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function i1(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function o1(e,t,n){const r=e.style,i=Vt(n);if(n&&!i){for(const a in n)gc(r,a,n[a]);if(t&&!Vt(t))for(const a in t)n[a]==null&&gc(r,a,"")}else{const a=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=a)}}const Zd=/\s*!important$/;function gc(e,t,n){if(Ce(n))n.forEach(r=>gc(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=a1(e,t);Zd.test(n)?e.setProperty(wr(r),n.replace(Zd,""),"important"):e[r]=n}}const Jd=["Webkit","Moz","ms"],vu={};function a1(e,t){const n=vu[t];if(n)return n;let r=Vn(t);if(r!=="filter"&&r in e)return vu[t]=r;r=ts(r);for(let i=0;i{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let yc=0;const c1=Promise.resolve(),f1=()=>{yc=0},d1=()=>yc||(c1.then(f1),yc=vm());function kr(e,t,n,r){e.addEventListener(t,n,r)}function h1(e,t,n,r){e.removeEventListener(t,n,r)}function p1(e,t,n,r,i=null){const a=e._vei||(e._vei={}),o=a[t];if(r&&o)o.value=r;else{const[s,l]=v1(t);if(r){const u=a[t]=m1(r,i);kr(e,s,u,l)}else o&&(h1(e,s,o,l),a[t]=void 0)}}const qd=/(?:Once|Passive|Capture)$/;function v1(e){let t;if(qd.test(e)){t={};let n;for(;n=e.match(qd);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[wr(e.slice(2)),t]}function m1(e,t){const n=r=>{const i=r.timeStamp||vm();(u1||i>=n.attached-1)&&Gn(g1(r,n.value),t,5,[r])};return n.value=e,n.attached=d1(),n}function g1(e,t){if(Ce(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const eh=/^on[a-z]/,y1=(e,t,n,r,i=!1,a,o,s,l)=>{t==="class"?i1(e,r,i):t==="style"?o1(e,n,r):qa(t)?af(t)||p1(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):b1(e,t,r,i))?l1(e,t,r,a,o,s,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),s1(e,t,r,i))};function b1(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&eh.test(t)&&De(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||eh.test(t)&&Vt(n)?!1:t in e}function mm(e,t){const n=Ie(e);class r extends Yl{constructor(a){super(n,a,t)}}return r.def=n,r}const x1=e=>mm(e,Om),_1=typeof HTMLElement!="undefined"?HTMLElement:class{};class Yl extends _1{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,tn(()=>{this._connected||(xc(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let r=0;r{for(const i of r)this._setAttr(i.attributeName)}).observe(this,{attributes:!0});const t=r=>{const{props:i,styles:a}=r,o=!Ce(i),s=i?o?Object.keys(i):i:[];let l;if(o)for(const u in this._props){const c=i[u];(c===Number||c&&c.type===Number)&&(this._props[u]=vi(this._props[u]),(l||(l=Object.create(null)))[u]=!0)}this._numberProps=l;for(const u of Object.keys(this))u[0]!=="_"&&this._setProp(u,this[u],!0,!1);for(const u of s.map(Vn))Object.defineProperty(this,u,{get(){return this._getProp(u)},set(c){this._setProp(u,c)}});this._applyStyles(a),this._update()},n=this._def.__asyncLoader;n?n().then(t):t(this._def)}_setAttr(t){let n=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(n=vi(n)),this._setProp(Vn(t),n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(wr(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(wr(t),n+""):n||this.removeAttribute(wr(t))))}_update(){xc(this._createVNode(),this.shadowRoot)}_createVNode(){const t=C(this._def,Xt({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0,n.emit=(i,...a)=>{this.dispatchEvent(new CustomEvent(i,{detail:a}))};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Yl){n.parent=r._instance;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function T1(e="$style"){{const t=Fr();if(!t)return xt;const n=t.type.__cssModules;if(!n)return xt;const r=n[e];return r||xt}}function w1(e){const t=Fr();if(!t)return;const n=()=>bc(t.subTree,e(t.proxy));Sv(n),vr(()=>{const r=new MutationObserver(n);r.observe(t.subTree.el.parentNode,{childList:!0}),Ho(()=>r.disconnect())})}function bc(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{bc(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)th(e.el,t);else if(e.type===Oe)e.children.forEach(n=>bc(n,t));else if(e.type===Qi){let{el:n,anchor:r}=e;for(;n&&(th(n,t),n!==r);)n=n.nextSibling}}function th(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const ei="transition",Wo="animation",Ti=(e,{slots:t})=>fm(Ef,ym(e),t);Ti.displayName="Transition";const gm={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},C1=Ti.props=Xt({},Ef.props,gm),Ei=(e,t=[])=>{Ce(e)?e.forEach(n=>n(...t)):e&&e(...t)},nh=e=>e?Ce(e)?e.some(t=>t.length>1):e.length>1:!1;function ym(e){const t={};for(const z in e)z in gm||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=E1(i),v=p&&p[0],g=p&&p[1],{onBeforeEnter:y,onEnter:m,onEnterCancelled:b,onLeave:T,onLeaveCancelled:S,onBeforeAppear:w=y,onAppear:N=m,onAppearCancelled:I=b}=t,R=(z,j,B)=>{ri(z,j?c:s),ri(z,j?u:o),B&&B()},U=(z,j)=>{z._isLeaving=!1,ri(z,f),ri(z,h),ri(z,d),j&&j()},$=z=>(j,B)=>{const he=z?N:m,Y=()=>R(j,z,B);Ei(he,[j,Y]),rh(()=>{ri(j,z?l:a),Lr(j,z?c:s),nh(he)||ih(j,r,v,Y)})};return Xt(t,{onBeforeEnter(z){Ei(y,[z]),Lr(z,a),Lr(z,o)},onBeforeAppear(z){Ei(w,[z]),Lr(z,l),Lr(z,u)},onEnter:$(!1),onAppear:$(!0),onLeave(z,j){z._isLeaving=!0;const B=()=>U(z,j);Lr(z,f),xm(),Lr(z,d),rh(()=>{!z._isLeaving||(ri(z,f),Lr(z,h),nh(T)||ih(z,r,g,B))}),Ei(T,[z,B])},onEnterCancelled(z){R(z,!1),Ei(b,[z])},onAppearCancelled(z){R(z,!0),Ei(I,[z])},onLeaveCancelled(z){U(z),Ei(S,[z])}})}function E1(e){if(e==null)return null;if(Wt(e))return[mu(e.enter),mu(e.leave)];{const t=mu(e);return[t,t]}}function mu(e){return vi(e)}function Lr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ri(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function rh(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let I1=0;function ih(e,t,n,r){const i=e._endId=++I1,a=()=>{i===e._endId&&r()};if(n)return setTimeout(a,n);const{type:o,timeout:s,propCount:l}=bm(e,t);if(!o)return r();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,d),a()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c(n[p]||"").split(", "),i=r(ei+"Delay"),a=r(ei+"Duration"),o=oh(i,a),s=r(Wo+"Delay"),l=r(Wo+"Duration"),u=oh(s,l);let c=null,f=0,d=0;t===ei?o>0&&(c=ei,f=o,d=a.length):t===Wo?u>0&&(c=Wo,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?ei:Wo:null,d=c?c===ei?a.length:l.length:0);const h=c===ei&&/\b(transform|all)(,|$)/.test(n[ei+"Property"]);return{type:c,timeout:f,propCount:d,hasTransform:h}}function oh(e,t){for(;e.lengthah(n)+ah(e[r])))}function ah(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function xm(){return document.body.offsetHeight}const _m=new WeakMap,Tm=new WeakMap,S1={name:"TransitionGroup",props:Xt({},C1,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Fr(),r=Cf();let i,a;return os(()=>{if(!i.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!O1(i[0].el,n.vnode.el,o))return;i.forEach(N1),i.forEach(R1);const s=i.filter(A1);xm(),s.forEach(l=>{const u=l.el,c=u.style;Lr(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u._moveCb=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u._moveCb=null,ri(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=ot(e),s=ym(o);let l=o.tag||Oe;i=a,a=t.default?zl(t.default()):[];for(let u=0;u{o.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:a}=bm(r);return i.removeChild(r),a}const yi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ce(t)?n=>So(t,n):t};function P1(e){e.target.composing=!0}function sh(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Do={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=yi(i);const a=r||i.props&&i.props.type==="number";kr(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;n&&(s=s.trim()),a&&(s=vi(s)),e._assign(s)}),n&&kr(e,"change",()=>{e.value=e.value.trim()}),t||(kr(e,"compositionstart",P1),kr(e,"compositionend",sh),kr(e,"change",sh))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},a){if(e._assign=yi(a),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&vi(e.value)===t))return;const o=t==null?"":t;e.value!==o&&(e.value=o)}},Zl={deep:!0,created(e,t,n){e._assign=yi(n),kr(e,"change",()=>{const r=e._modelValue,i=Go(e),a=e.checked,o=e._assign;if(Ce(r)){const s=Ll(r,i),l=s!==-1;if(a&&!l)o(r.concat(i));else if(!a&&l){const u=[...r];u.splice(s,1),o(u)}}else if(io(r)){const s=new Set(r);a?s.add(i):s.delete(i),o(s)}else o(Em(e,a))})},mounted:lh,beforeUpdate(e,t,n){e._assign=yi(n),lh(e,t,n)}};function lh(e,{value:t,oldValue:n},r){e._modelValue=t,Ce(t)?e.checked=Ll(t,r.props.value)>-1:io(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=pi(t,Em(e,!0)))}const Of={created(e,{value:t},n){e.checked=pi(t,n.props.value),e._assign=yi(n),kr(e,"change",()=>{e._assign(Go(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=yi(r),t!==n&&(e.checked=pi(t,r.props.value))}},Cm={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=io(t);kr(e,"change",()=>{const a=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?vi(Go(o)):Go(o));e._assign(e.multiple?i?new Set(a):a:a[0])}),e._assign=yi(r)},mounted(e,{value:t}){uh(e,t)},beforeUpdate(e,t,n){e._assign=yi(n)},updated(e,{value:t}){uh(e,t)}};function uh(e,t){const n=e.multiple;if(!(n&&!Ce(t)&&!io(t))){for(let r=0,i=e.options.length;r-1:a.selected=t.has(o);else if(pi(Go(a),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Go(e){return"_value"in e?e._value:e.value}function Em(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Im={created(e,t,n){ws(e,t,n,null,"created")},mounted(e,t,n){ws(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){ws(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){ws(e,t,n,r,"updated")}};function Sm(e,t){switch(e){case"SELECT":return Cm;case"TEXTAREA":return Do;default:switch(t){case"checkbox":return Zl;case"radio":return Of;default:return Do}}}function ws(e,t,n,r,i){const o=Sm(e.tagName,n.props&&n.props.type)[i];o&&o(e,t,n,r)}function F1(){Do.getSSRProps=({value:e})=>({value:e}),Of.getSSRProps=({value:e},t)=>{if(t.props&&pi(t.props.value,e))return{checked:!0}},Zl.getSSRProps=({value:e},t)=>{if(Ce(e)){if(t.props&&Ll(e,t.props.value)>-1)return{checked:!0}}else if(io(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Im.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Sm(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const M1=["ctrl","shift","alt","meta"],L1={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)=>M1.some(n=>e[`${n}Key`]&&!t.includes(n))},ln=(e,t)=>(n,...r)=>{for(let i=0;in=>{if(!("key"in n))return;const r=wr(n.key);if(t.some(i=>i===r||U1[i]===r))return e(n)},Jl={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ko(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Ko(e,!0),r.enter(e)):r.leave(e,()=>{Ko(e,!1)}):Ko(e,t))},beforeUnmount(e,{value:t}){Ko(e,t)}};function Ko(e,t){e.style.display=t?e._vod:"none"}function B1(){Jl.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Nm=Xt({patchProp:y1},r1);let _a,ch=!1;function Rm(){return _a||(_a=Zv(Nm))}function Am(){return _a=ch?_a:Jv(Nm),ch=!0,_a}const xc=(...e)=>{Rm().render(...e)},Om=(...e)=>{Am().hydrate(...e)},Pf=(...e)=>{const t=Rm().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Pm(r);if(!i)return;const a=t._component;!De(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t},k1=(...e)=>{const t=Am().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Pm(r);if(i)return n(i,!0,i instanceof SVGElement)},t};function Pm(e){return Vt(e)?document.querySelector(e):e}let fh=!1;const D1=()=>{fh||(fh=!0,F1(),B1())},G1=()=>{};var V1=Object.freeze(Object.defineProperty({__proto__:null,compile:G1,EffectScope:cf,ReactiveEffect:ns,customRef:A0,effect:qy,effectScope:Ky,getCurrentScope:Yy,isProxy:pf,isReactive:di,isReadonly:Lo,isRef:et,isShallow:ul,markRaw:vf,onScopeDispose:Zy,proxyRefs:yf,reactive:Pr,readonly:hf,ref:Te,shallowReactive:jo,shallowReadonly:E0,shallowRef:An,stop:e0,toRaw:ot,toRef:Sn,toRefs:Et,triggerRef:S0,unref:x,camelize:Vn,capitalize:ts,normalizeClass:ze,normalizeProps:qp,normalizeStyle:tt,toDisplayString:Je,toHandlerKey:va,BaseTransition:Ef,Comment:yn,Fragment:Oe,KeepAlive:ob,Static:Qi,Suspense:Y0,Teleport:qv,Text:Bo,callWithAsyncErrorHandling:Gn,callWithErrorHandling:Cr,cloneVNode:Ar,compatUtils:t1,computed:J,createBlock:we,createCommentVNode:ve,createElementBlock:W,createElementVNode:P,createHydrationRenderer:Jv,createPropsRestProxy:Wb,createRenderer:Zv,createSlots:ub,createStaticVNode:Ab,createTextVNode:le,createVNode:C,defineAsyncComponent:rb,defineComponent:Ie,defineEmits:Vb,defineExpose:$b,defineProps:Gb,get devtools(){return yo},getCurrentInstance:Fr,getTransitionRawChildren:zl,guardReactiveProps:rm,h:fm,handleError:so,initCustomFormatter:Zb,inject:Kn,isMemoSame:hm,isRuntimeOnly:Lb,isVNode:fr,mergeDefaults:Xb,mergeProps:un,nextTick:tn,onActivated:Av,onBeforeMount:Fv,onBeforeUnmount:as,onBeforeUpdate:Mv,onDeactivated:Ov,onErrorCaptured:kv,onMounted:vr,onRenderTracked:Bv,onRenderTriggered:Uv,onServerPrefetch:Lv,onUnmounted:Ho,onUpdated:os,openBlock:M,popScopeId:pr,provide:Hi,pushScopeId:hr,queuePostFlushCb:_f,registerRuntimeCompiler:Mb,renderList:Rr,renderSlot:Mt,resolveComponent:wt,resolveDirective:lb,resolveDynamicComponent:gt,resolveFilter:e1,resolveTransitionHooks:Uo,setBlockTracking:pc,setDevtoolsHook:wv,setTransitionHooks:to,ssrContextKey:dm,ssrUtils:qb,toHandlers:Vv,transformVNodeArgs:Nb,useAttrs:zb,useSSRContext:Yb,useSlots:Hb,useTransitionState:Cf,version:pm,warn:gv,watch:Dt,watchEffect:zt,watchPostEffect:Sv,watchSyncEffect:eb,withAsyncContext:Kb,withCtx:Pe,withDefaults:jb,withDirectives:zo,withMemo:Jb,withScopeId:j0,Transition:Ti,TransitionGroup:wm,VueElement:Yl,createApp:Pf,createSSRApp:k1,defineCustomElement:mm,defineSSRCustomElement:x1,hydrate:Om,initDirectivesForSSR:D1,render:xc,useCssModule:T1,useCssVars:w1,vModelCheckbox:Zl,vModelDynamic:Im,vModelRadio:Of,vModelSelect:Cm,vModelText:Do,vShow:Jl,withKeys:$i,withModifiers:ln},Symbol.toStringTag,{value:"Module"}));const $1="Profectus Demo",j1="A demo project made in Profectus",H1="profectus-demo",z1="",X1="",W1="",K1="0.0",Y1="Initial Commit",Z1=!0,J1=!1,Q1=2,q1=!0,ex=null,tx="Logo.png",nx=["main","c"],rx=3600,ix=1,ox=!0,ax="base64";var _t={title:$1,description:j1,id:H1,author:z1,discordName:X1,discordLink:W1,versionNumber:K1,versionTitle:Y1,allowGoBack:Z1,defaultShowSmall:J1,defaultDecimalsShown:Q1,useHeader:q1,banner:ex,logo:tx,initialTabs:nx,maxTickLength:rx,offlineLimit:ix,enablePausing:ox,exportEncoding:ax};const gu=17,sx=9e15,lx=Math.log10(9e15),ux=1/9e15,cx=308,fx=-324,dh=5,dx=function(){const e=[];for(let n=fx+1;n<=cx;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),Ii=[2,Math.E,3,4,5,6,7,8,9,10],hx=[[1,1.0891168053867777,1.1789745164521264,1.2701428397304229,1.3632066654400328,1.4587804913784246,1.557523817412741,1.660158301473385,1.767487542936873,1.8804205225512542,2],[1,1.1121114330934,1.23103892493161,1.35838369631113,1.49605193039935,1.64635423375119,1.81213853570186,1.99697132461829,2.20538955455724,2.44325744833852,Math.E],[1,1.1187738849693603,1.2464963939368214,1.38527004705667,1.5376664685821402,1.7068895236551784,1.897001227148399,2.1132403089001035,2.362480153784171,2.6539010333870774,3],[1,1.1367350847096405,1.2889510672956703,1.4606478703324786,1.6570295196661111,1.8850062585672889,2.1539465047453485,2.476829779693097,2.872061932789197,3.3664204535587183,4],[1,1.1494592900767588,1.319708228183931,1.5166291280087583,1.748171114438024,2.0253263297298045,2.3636668498288547,2.7858359149579424,3.3257226212448145,4.035730287722532,5],[1,1.159225940787673,1.343712473580932,1.5611293155111927,1.8221199554561318,2.14183924486326,2.542468319282638,3.0574682501653316,3.7390572020926873,4.6719550537360774,6],[1,1.1670905356972596,1.3632807444991446,1.5979222279405536,1.8842640123816674,2.2416069644878687,2.69893426559423,3.3012632110403577,4.121250340630164,5.281493033448316,7],[1,1.1736630594087796,1.379783782386201,1.6292821855668218,1.9378971836180754,2.3289975651071977,2.8384347394720835,3.5232708454565906,4.478242031114584,5.868592169644505,8],[1,1.1793017514670474,1.394054150657457,1.65664127441059,1.985170999970283,2.4069682290577457,2.9647310119960752,3.7278665320924946,4.814462547283592,6.436522247411611,9],[1,1.18422737399915,1.4066113788546144,1.680911177655277,2.027492094355525,2.4775152854601967,3.080455730250329,3.918234505962507,5.1332705696484595,6.9878696918072905,10]],px=[[-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]],D=function(t){return O.fromValue_noAlloc(t)},Xe=function(e,t,n){return O.fromComponents(e,t,n)},st=function(t,n,r){return O.fromComponents_noNormalize(t,n,r)},ti=function(t,n){const r=n+1,i=Math.ceil(Math.log10(Math.abs(t))),a=Math.round(t*Math.pow(10,r-i))*Math.pow(10,i-r);return parseFloat(a.toFixed(Math.max(r-i,0)))},yu=function(e){return Math.sign(e)*Math.log10(Math.abs(e))},vx=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},Fm=.5671432904097838,hh=function(e,t=1e-10){let n,r;if(!Number.isFinite(e)||e===0)return e;if(e===1)return Fm;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 st(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)),Xe(t,n,i)}static affordGeometricSeries_core(e,t,n,r){const i=t.mul(n.pow(r));return Q.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(Q.sub(1,n.pow(e))).div(Q.sub(1,n))}static affordArithmeticSeries_core(e,t,n,r){const a=t.add(r.mul(n)).sub(n.div(2)),o=a.pow(2);return a.neg().add(o.add(n.mul(e).mul(2)).sqrt()).div(n).floor()}static sumArithmeticSeries_core(e,t,n,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=sx)return this.layer+=1,this.mag=t*Math.log10(e),this;for(;e0;)this.layer-=1,this.layer===0?this.mag=Math.pow(10,this.mag):(this.mag=t*Math.pow(10,e),e=Math.abs(this.mag),t=Math.sign(this.mag));return this.layer===0&&(this.mag<0?(this.mag=-this.mag,this.sign=-this.sign):this.mag===0&&(this.sign=0)),this}fromComponents(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this.normalize(),this}fromComponents_noNormalize(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this}fromMantissaExponent(e,t){return this.layer=1,this.sign=Math.sign(e),e=Math.abs(e),this.mag=t+Math.log10(e),this.normalize(),this}fromMantissaExponent_noNormalize(e,t){return this.fromMantissaExponent(e,t),this}fromDecimal(e){return this.sign=e.sign,this.layer=e.layer,this.mag=e.mag,this}fromNumber(e){return this.mag=Math.abs(e),this.sign=Math.sign(e),this.layer=0,this.normalize(),this}fromString(e){e=e.replace(",","");const t=e.split("^^^");if(t.length===2){const d=parseFloat(t[0]),h=parseFloat(t[1]),p=t[1].split(";");let v=1;if(p.length===2&&(v=parseFloat(p[1]),isFinite(v)||(v=1)),isFinite(d)&&isFinite(h)){const g=Q.pentate(d,h,v);return this.sign=g.sign,this.layer=g.layer,this.mag=g.mag,this}}const n=e.split("^^");if(n.length===2){const d=parseFloat(n[0]),h=parseFloat(n[1]),p=n[1].split(";");let v=1;if(p.length===2&&(v=parseFloat(p[1]),isFinite(v)||(v=1)),isFinite(d)&&isFinite(h)){const g=Q.tetrate(d,h,v);return this.sign=g.sign,this.layer=g.layer,this.mag=g.mag,this}}const r=e.split("^");if(r.length===2){const d=parseFloat(r[0]),h=parseFloat(r[1]);if(isFinite(d)&&isFinite(h)){const p=Q.pow(d,h);return this.sign=p.sign,this.layer=p.layer,this.mag=p.mag,this}}e=e.trim().toLowerCase();let i,a,o=e.split("pt");if(o.length===2){i=10,a=parseFloat(o[0]),o[1]=o[1].replace("(",""),o[1]=o[1].replace(")","");let d=parseFloat(o[1]);if(isFinite(d)||(d=1),isFinite(i)&&isFinite(a)){const h=Q.tetrate(i,a,d);return this.sign=h.sign,this.layer=h.layer,this.mag=h.mag,this}}if(o=e.split("p"),o.length===2){i=10,a=parseFloat(o[0]),o[1]=o[1].replace("(",""),o[1]=o[1].replace(")","");let d=parseFloat(o[1]);if(isFinite(d)||(d=1),isFinite(i)&&isFinite(a)){const h=Q.tetrate(i,a,d);return this.sign=h.sign,this.layer=h.layer,this.mag=h.mag,this}}const s=e.split("e"),l=s.length-1;if(l===0){const d=parseFloat(e);if(isFinite(d))return this.fromNumber(d)}else if(l===1){const d=parseFloat(e);if(isFinite(d)&&d!==0)return this.fromNumber(d)}const u=e.split("e^");if(u.length===2){this.sign=1,u[0].charAt(0)=="-"&&(this.sign=-1);let d="";for(let h=0;h=43&&p<=57||p===101)d+=u[1].charAt(h);else return this.layer=parseFloat(d),this.mag=parseFloat(u[1].substr(h+1)),this.normalize(),this}}if(l<1)return this.sign=0,this.layer=0,this.mag=0,this;const c=parseFloat(s[0]);if(c===0)return this.sign=0,this.layer=0,this.mag=0,this;let f=parseFloat(s[s.length-1]);if(l>=2){const d=parseFloat(s[s.length-2]);isFinite(d)&&(f*=Math.sign(d),f+=yu(d))}if(!isFinite(c))this.sign=s[0]==="-"?-1:1,this.layer=l,this.mag=f;else if(l===1)this.sign=Math.sign(c),this.layer=1,this.mag=f+Math.log10(Math.abs(c));else if(this.sign=Math.sign(c),this.layer=l,l===2){const d=Q.mul(Xe(1,2,f),D(c));return this.sign=d.sign,this.layer=d.layer,this.mag=d.mag,this}else this.mag=f;return this.normalize(),this}fromValue(e){return e instanceof Q||e!=null&&typeof e=="object"&&"sign"in e&&"mag"in e&&"layer"in e?this.fromDecimal(e):typeof e=="number"?this.fromNumber(e):typeof e=="string"?this.fromString(e):(this.sign=0,this.layer=0,this.mag=0,this)}toNumber(){return Number.isFinite(this.layer)?this.layer===0?this.sign*this.mag:this.layer===1?this.sign*Math.pow(10,this.mag):this.mag>0?this.sign>0?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:0:Number.NaN}mantissaWithDecimalPlaces(e){return isNaN(this.m)?Number.NaN:this.m===0?0:ti(this.m,e)}magnitudeWithDecimalPlaces(e){return isNaN(this.mag)?Number.NaN:this.mag===0?0:ti(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<=dh?(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):ti(this.m,e)+"e"+ti(this.e,e):this.layer===1?ti(this.m,e)+"e"+ti(this.e,e):this.layer<=dh?(this.sign===-1?"-":"")+"e".repeat(this.layer)+ti(this.mag,e):(this.sign===-1?"-":"")+"(e^"+this.layer+")"+ti(this.mag,e)}abs(){return st(this.sign===0?0:1,this.layer,this.mag)}neg(){return st(-this.sign,this.layer,this.mag)}negate(){return this.neg()}negated(){return this.neg()}sgn(){return this.sign}round(){return this.mag<0?Q.dZero:this.layer===0?Xe(this.sign,0,Math.round(this.mag)):this}floor(){return this.mag<0?Q.dZero:this.layer===0?Xe(this.sign,0,Math.floor(this.mag)):this}ceil(){return this.mag<0?Q.dZero:this.layer===0?Xe(this.sign,0,Math.ceil(this.mag)):this}trunc(){return this.mag<0?Q.dZero:this.layer===0?Xe(this.sign,0,Math.trunc(this.mag)):this}add(e){const t=D(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 st(0,0,0);let n,r;if(this.layer>=2||t.layer>=2)return this.maxabs(t);if(Q.cmpabs(this,t)>0?(n=this,r=t):(n=t,r=this),n.layer===0&&r.layer===0)return D(n.sign*n.mag+r.sign*r.mag);const i=n.layer*Math.sign(n.mag),a=r.layer*Math.sign(r.mag);if(i-a>=2)return n;if(i===0&&a===-1){if(Math.abs(r.mag-Math.log10(n.mag))>gu)return n;{const o=Math.pow(10,Math.log10(n.mag)-r.mag),s=r.sign+n.sign*o;return Xe(Math.sign(s),1,r.mag+Math.log10(Math.abs(s)))}}if(i===1&&a===0){if(Math.abs(n.mag-Math.log10(r.mag))>gu)return n;{const o=Math.pow(10,n.mag-Math.log10(r.mag)),s=r.sign+n.sign*o;return Xe(Math.sign(s),1,Math.log10(r.mag)+Math.log10(Math.abs(s)))}}if(Math.abs(n.mag-r.mag)>gu)return n;{const o=Math.pow(10,n.mag-r.mag),s=r.sign+n.sign*o;return Xe(Math.sign(s),1,r.mag+Math.log10(Math.abs(s)))}}plus(e){return this.add(e)}sub(e){return this.add(D(e).neg())}subtract(e){return this.sub(e)}minus(e){return this.sub(e)}mul(e){const t=D(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer))return t;if(this.sign===0||t.sign===0)return st(0,0,0);if(this.layer===t.layer&&this.mag===-t.mag)return st(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 D(n.sign*r.sign*n.mag*r.mag);if(n.layer>=3||n.layer-r.layer>=2)return Xe(n.sign*r.sign,n.layer,n.mag);if(n.layer===1&&r.layer===0)return Xe(n.sign*r.sign,1,n.mag+Math.log10(r.mag));if(n.layer===1&&r.layer===1)return Xe(n.sign*r.sign,1,n.mag+r.mag);if(n.layer===2&&r.layer===1){const i=Xe(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(Xe(Math.sign(r.mag),r.layer-1,Math.abs(r.mag)));return Xe(n.sign*r.sign,i.layer+1,i.sign*i.mag)}if(n.layer===2&&r.layer===2){const i=Xe(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(Xe(Math.sign(r.mag),r.layer-1,Math.abs(r.mag)));return Xe(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=D(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?Q.dNaN:this.layer===0?Xe(this.sign,0,1/this.mag):Xe(this.sign,this.layer,-this.mag)}reciprocal(){return this.recip()}reciprocate(){return this.recip()}cmp(e){const t=D(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=D(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=D(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=yu(i)),this.layer0?Xe(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):Xe(1,0,Math.log10(this.mag))}log10(){return this.sign<=0?Q.dNaN:this.layer>0?Xe(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):Xe(this.sign,0,Math.log10(this.mag))}log(e){return e=D(e),this.sign<=0||e.sign<=0||e.sign===1&&e.layer===0&&e.mag===1?Q.dNaN:this.layer===0&&e.layer===0?Xe(this.sign,0,Math.log(this.mag)/Math.log(e.mag)):Q.div(this.log10(),e.log10())}log2(){return this.sign<=0?Q.dNaN:this.layer===0?Xe(this.sign,0,Math.log2(this.mag)):this.layer===1?Xe(Math.sign(this.mag),0,Math.abs(this.mag)*3.321928094887362):this.layer===2?Xe(Math.sign(this.mag),1,Math.abs(this.mag)+.5213902276543247):Xe(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}ln(){return this.sign<=0?Q.dNaN:this.layer===0?Xe(this.sign,0,Math.log(this.mag)):this.layer===1?Xe(Math.sign(this.mag),0,Math.abs(this.mag)*2.302585092994046):this.layer===2?Xe(Math.sign(this.mag),1,Math.abs(this.mag)+.36221568869946325):Xe(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}logarithm(e){return this.log(e)}pow(e){const t=D(e),n=this,r=t;if(n.sign===0)return r.eq(0)?st(1,0,1):n;if(n.sign===1&&n.layer===0&&n.mag===1)return n;if(r.sign===0)return st(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:Q.dNaN:i}pow10(){if(!Number.isFinite(this.layer)||!Number.isFinite(this.mag))return Q.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 Xe(1,0,t);if(e.sign===0)return Q.dOne;e=st(e.sign,e.layer+1,Math.log10(e.mag))}return e.sign>0&&e.mag>=0?Xe(e.sign,e.layer+1,e.mag):e.sign<0&&e.mag>=0?Xe(-e.sign,e.layer+1,-e.mag):Q.dOne}pow_base(e){return D(e).pow(this)}root(e){const t=D(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?Q.exp(Q.mul(this,Q.ln(this).sub(1))):Q.exp(this)}gamma(){if(this.mag<0)return this.recip();if(this.layer===0){if(this.lt(st(1,0,24)))return D(vx(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,a=1/i,o=t+a;if(o===t||(t=o,r=r*n,i=360*r,a=1/i,o=t-a,o===t))return Q.exp(t);t=o,r=r*n,i=1260*r;let s=1/i;return t=t+s,r=r*n,i=1680*r,s=1/i,t=t-s,Q.exp(t)}else return this.layer===1?Q.exp(Q.mul(this,Q.ln(this).sub(1))):Q.exp(this)}lngamma(){return this.gamma().ln()}exp(){return this.mag<0?Q.dOne:this.layer===0&&this.mag<=709.7?D(Math.exp(this.sign*this.mag)):this.layer===0?Xe(1,1,this.sign*Math.log10(Math.E)*this.mag):this.layer===1?Xe(1,2,this.sign*(Math.log10(.4342944819032518)+this.mag)):Xe(1,this.layer+1,this.sign*this.mag)}sqr(){return this.pow(2)}sqrt(){if(this.layer===0)return D(Math.sqrt(this.sign*this.mag));if(this.layer===1)return Xe(1,2,Math.log10(this.mag)-.3010299956639812);{const e=Q.div(st(this.sign,this.layer-1,this.mag),st(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=st(1,0,1)){if(e===1)return Q.pow(this,t);if(e===0)return new Q(t);if(this.eq(Q.dOne))return Q.dOne;if(this.eq(-1))return Q.pow(this,t);if(e===Number.POSITIVE_INFINITY){const i=this.toNumber();if(i<=1.444667861009766&&i>=.06598803584531254){if(i>1.444667861009099)return new Q(Math.E);const a=Q.ln(this).neg();return a.lambertw().div(a)}else return i>1.444667861009766?new Q(Number.POSITIVE_INFINITY):Q.dNaN}if(this.eq(Q.dZero)){let i=Math.abs((e+1)%2);return i>1&&(i=2-i),new Q(i)}if(e<0)return Q.iteratedlog(t,this,-e);t=D(t);const n=e;e=Math.trunc(e);const r=n-e;if(this.gt(Q.dZero)&&this.lte(1.444667861009766)){e=Math.min(1e4,e);for(let i=0;i3)return st(t.sign,t.layer+(e-i-1),t.mag);if(i>1e4)return t}return t}iteratedexp(e=2,t=st(1,0,1)){return this.tetrate(e,t)}iteratedlog(e=10,t=1){if(t<0)return Q.tetrate(e,-t,this);e=D(e);let n=D(this);const r=t;t=Math.trunc(t);const i=r-t;if(n.layer-e.layer>3){const a=Math.min(t,n.layer-e.layer-3);t-=a,n.layer-=a}for(let a=0;a1e4)return n}return i>0&&i<1&&(e.eq(10)?n=n.layeradd10(-i):n=n.layeradd(-i,e)),n}slog(e=10){if(e=D(e),e.lte(Q.dZero)||e.eq(Q.dOne))return Q.dNaN;if(e.lt(Q.dOne))return this.eq(Q.dOne)?Q.dZero:this.eq(Q.dZero)?Q.dNegOne:Q.dNaN;if(this.mag<0||this.eq(Q.dZero))return Q.dNegOne;let t=0,n=D(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(Q.dZero))n=Q.pow(e,n),t-=1;else{if(n.lte(Q.dOne))return D(t+Q.slog_critical(e.toNumber(),n.toNumber()));t+=1,n=Q.log(n,e)}return D(t)}static slog_critical(e,t){return e>10?t-1:Q.critical_section(e,t,px)}static tetrate_critical(e,t){return Q.critical_section(e,t,hx)}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 s=0;se){const l=(e-Ii[s])/(Ii[s+1]-Ii[s]);r=n[s][Math.floor(t)]*(1-l)+n[s+1][Math.floor(t)]*l,i=n[s][Math.ceil(t)]*(1-l)+n[s+1][Math.ceil(t)]*l;break}const a=t-Math.floor(t);return r*(1-a)+i*a}layeradd10(e){e=Q.fromValue_noAlloc(e).toNumber();const t=D(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?Q.tetrate(t,r):Number.isFinite(r)?r>=-1?Q.log(Q.tetrate(t,r+1),t):Q.log(Q.log(Q.tetrate(t,r+2),t),t):Q.dNaN}lambertw(){if(this.lt(-.3678794411710499))throw Error("lambertw is unimplemented for results less than -1, sorry!");if(this.mag<0)return D(hh(this.toNumber()));if(this.layer===0)return D(hh(this.sign*this.mag));if(this.layer===1)return ph(this);if(this.layer===2)return ph(this);if(this.layer>=3)return st(this.sign,this.layer-1,this.mag);throw"Unhandled behavior in lambertw()"}ssqrt(){if(this.sign==1&&this.layer>=3)return st(this.sign,this.layer-1,this.mag);const e=this.ln();return e.div(e.lambertw())}pentate(e=2,t=st(1,0,1)){t=D(t);const n=e;e=Math.trunc(e);const r=n-e;r!==0&&(t.eq(Q.dOne)?(++e,t=new Q(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?D(Math.sin(this.sign*this.mag)):st(0,0,0)}cos(){return this.mag<0?Q.dOne:this.layer===0?D(Math.cos(this.sign*this.mag)):st(0,0,0)}tan(){return this.mag<0?this:this.layer===0?D(Math.tan(this.sign*this.mag)):st(0,0,0)}asin(){return this.mag<0?this:this.layer===0?D(Math.asin(this.sign*this.mag)):st(Number.NaN,Number.NaN,Number.NaN)}acos(){return this.mag<0?D(Math.acos(this.toNumber())):this.layer===0?D(Math.acos(this.sign*this.mag)):st(Number.NaN,Number.NaN,Number.NaN)}atan(){return this.mag<0?this:this.layer===0?D(Math.atan(this.sign*this.mag)):D(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 Q.ln(this.add(this.sqr().add(1).sqrt()))}acosh(){return Q.ln(this.add(this.sqr().sub(1).sqrt()))}atanh(){return this.abs().gte(1)?st(Number.NaN,Number.NaN,Number.NaN):Q.ln(this.add(1).div(D(1).sub(this))).div(2)}ascensionPenalty(e){return e===0?this:this.root(Q.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 O=Q;O.dZero=st(0,0,0);O.dOne=st(1,0,1);O.dNegOne=st(-1,0,1);O.dTwo=st(1,0,2);O.dTen=st(1,0,10);O.dNaN=st(Number.NaN,Number.NaN,Number.NaN);O.dInf=st(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY);O.dNegInf=st(-1,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);O.dNumberMax=Xe(1,0,Number.MAX_VALUE);O.dNumberMin=Xe(1,0,Number.MIN_VALUE);const mx=new O(1);function la(e,t,n=!0){let r=O.log10(e).floor(),i=O.div(e,O.pow(10,r));i.toStringWithDecimalPlaces(t)==="10"&&(i=mx,r=r.add(1));const a=r.gte(1e9)?Yn(r,Math.max(Math.max(t,3),_t.defaultDecimalsShown)):r.gte(1e4)?gl(r,0):r.toStringWithDecimalPlaces(0);return n?i.toStringWithDecimalPlaces(t)+"e"+a:"e"+a}function gl(e,t){if(e==null)return"NaN";if(e=new O(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 Mm(e,t){return e==null?"NaN":(e=new O(e),e.mag<1e-4?0 .toFixed(t):(e.mag<.1&&t!==0&&(t=Math.max(Math.max(t,e.log10().negate().ceil().toNumber()),_t.defaultDecimalsShown)),e.toStringWithDecimalPlaces(t)))}const gx=new O("eeee1000"),yx=new O("e100000"),vh=new O("e1000"),Lm=new O(1e9),bx=new O(1e6),xx=new O(1e3),_x=new O(.98),Tx=new O(.001),Um=new O(0);function Yn(e,t,n){if(t==null&&(t=_t.defaultDecimalsShown),n=n!=null?n:_t.defaultShowSmall,e=new O(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag))return"NaN";if(e.sign<0)return"-"+Yn(e.neg(),t);if(e.mag===Number.POSITIVE_INFINITY)return"Infinity";if(e.gte(gx)){const r=e.slog();return r.gte(bx)?"F"+Yn(r.floor()):O.pow(10,r.sub(r.floor())).toStringWithDecimalPlaces(3)+"F"+gl(r.floor(),0)}else{if(e.gte(yx))return la(e,0,!1);if(e.gte(vh))return la(e,0);if(e.gte(Lm))return la(e,t);if(e.gte(xx))return gl(e,0);if(e.gte(Tx)||!n)return Mm(e,t);if(e.eq(Um))return 0 .toFixed(t)}return e=km(e),e.lt(vh)?la(e,t).replace(/([^(?:e|F)]*)$/,"-$1"):Yn(e,t)+"\u207B\xB9"}function Wn(e){return e=new O(e),e.sign<0?"-"+Wn(e.neg()):e.gte(Lm)||e.lte(_x)&&!e.eq(Um)?Yn(e):Yn(e,0)}function Bm(e){return O.lt(e,0)?"-"+Bm(O.neg(e)):O.gt(e,2**51)?Yn(O.div(e,31536e3))+"y":(e=new O(e).toNumber(),e<60?Yn(e)+"s":e<3600?Wn(Math.floor(e/60))+"m "+Yn(e%60)+"s":e<86400?Wn(Math.floor(e/3600))+"h "+Wn(Math.floor(e/60)%60)+"m "+Wn(e%60)+"s":e<31536e3?Wn(Math.floor(e/84600)%365)+"d "+Wn(Math.floor(e/3600)%24)+"h "+Wn(Math.floor(e/60)%60)+"m":Wn(Math.floor(e/31536e3))+"y "+Wn(Math.floor(e/84600)%365)+"d "+Wn(Math.floor(e/3600)%24)+"h")}function wx(e,t,n){e=new O(e);let r=e.toStringWithDecimalPlaces(t);return new O(r).gte(n)&&(r=O.sub(n,Math.pow(.1,t)).toStringWithDecimalPlaces(t)),r}function Cx(e,t){return Yn(e,t,!0)}function km(e){let t=O.log10(e).ceil();const n=O.div(e,O.pow(10,t));return t=t.neg(),e=new O(10).pow(t).times(n),e}var Ex=Object.freeze(Object.defineProperty({__proto__:null,default:O,exponentialFormat:la,commaFormat:gl,regularFormat:Mm,format:Yn,formatWhole:Wn,formatTime:Bm,toPlaces:wx,formatSmall:Cx,invertOOM:km},Symbol.toStringTag,{value:"Module"}));const{exponentialFormat:Ix,commaFormat:Sx,regularFormat:Nx,format:kt,formatWhole:gn,formatTime:Ql,toPlaces:Rx,formatSmall:Ax,invertOOM:Ox}=Ex;window.Decimal=O;window.exponentialFormat=Ix;window.commaFormat=Sx;window.regularFormat=Nx;window.format=kt;window.formatWhole=gn;window.formatTime=Ql;window.toPlaces=Rx;window.formatSmall=Ax;window.invertOOM=Ox;function Dm(e){let t=e.replace(/([A-Z])/g," $1");return t=t.charAt(0).toUpperCase()+t.slice(1),t}function Xi(e){return typeof e=="function"}var Ct=(e=>(e.Up="Up",e.Down="Down",e.Left="Left",e.Right="Right",e.Default="Up",e))(Ct||{});const Ua=Symbol("DoNotCache");function H(e,t){const n=e[t];Xi(n)&&n.length===0&&!n[Ua]?e[t]=J(n.bind(e)):Xi(n)&&(e[t]=n.bind(e),e[t][Ua]=!0)}function Zn(e){return Xi(e)&&!e[Ua]&&(e=J(e)),e}const Jt=Symbol("Component"),nn=Symbol("GatherProps");let Px=0;function _n(e="feature-"){return e+Px++}var nt=(e=>(e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.None=2]="None",e))(nt||{});function it(e){return e[Ua]=!0,e}function Yo(e,t=2){return e?0:t}function ft(e,t,n){e[t]===void 0&&n!=null&&(e[t]=n)}function Gm(e,...t){const n=[],r=i=>{Object.keys(i).forEach(a=>{const o=i[a];o&&typeof o=="object"&&(t.includes(o.type)?n.push(o):!(o instanceof O)&&!et(o)&&r(o))})};return r(e),n}const Si={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 Ff=(e=>(e.Classic="classic",e.Paper="paper",e.Nordic="nordic",e.Aqua="aqua",e))(Ff||{}),Kr={classic:Si,paper:{...Si,variables:{...Si.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:{...Si,variables:{...Si.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:{...Si,variables:{...Si.variables,"--foreground":"#bfdfff","--background":"#001f3f","--tooltip-background":"rgba(0, 15, 31, 0.75)","--raised-background":"#001f3f","--points":"#dfefff","--locked":"#c4a7b3","--outline":"#bfdfff"}}};/*! - * is-plain-object - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */function mh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Fx(e){var t,n;return mh(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(mh(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}const qt=Symbol("ProxyState"),bo=Symbol("ProxyPath");function an(e,t={}){const n=t;let r=!1;function i(){return r||(Object.assign(n,e(n)),r=!0),n}return new Proxy(n,{get(a,o){return o===qt?i():i()[o]},set(a,o,s){return i()[o]=s,!0},has(a,o){return o===qt?!0:Reflect.has(i(),o)},ownKeys(){return Reflect.ownKeys(i())},getOwnPropertyDescriptor(a,o){return r||(Object.assign(n,e(n)),r=!0),Object.getOwnPropertyDescriptor(a,o)}})}var Rt=window.state=jo({lastTenTicks:[],hasNaN:!1,NaNPath:[]});const Vm=Pr({id:"",devSpeed:null,name:"",tabs:[],time:-1,autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:0,keepGoing:!1,modID:"",modVersion:"",layers:{}});function $m(e){return JSON.stringify(e,(t,n)=>x(n))}const jm={get(e,t){var r;if(t===qt||t===bo)return e[t];const n=e[qt][t];if(t!=="value"&&(Fx(n)||Array.isArray(n))){if(n!==((r=e[t])==null?void 0:r[qt])){const i=[...e[bo],t];e[t]=new Proxy({[qt]:n,[bo]:i},jm)}return e[t]}return n},set(e,t,n,r){if(!Rt.hasNaN&&(typeof n=="number"&&isNaN(n)||n instanceof O&&(isNaN(n.sign)||isNaN(n.layer)||isNaN(n.mag)))){const i=e[qt][t];if(!(typeof i=="number"&&isNaN(i)||i instanceof O&&(isNaN(i.sign)||isNaN(i.layer)||isNaN(i.mag))))throw Vm.autosave=!1,Rt.hasNaN=!0,Rt.NaNPath=[...e[bo],t],Rt.NaNReceiver=r,console.error("Attempted to set NaN value",[...e[bo],t],e[qt]),"Attempted to set NaN value. See above for details"}return e[qt][t]=n,!0},ownKeys(e){return Reflect.ownKeys(e[qt])},has(e,t){return Reflect.has(e[qt],t)},getOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e[qt],t)}};var xe=window.player=new Proxy({[qt]:Vm,[bo]:["player"]},jm);let Hm=()=>({events:{},emit(e,...t){(this.events[e]||[]).forEach(n=>n(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(n=>n!==t)}});const sn=Hm();let xo=null,Ta=null;function yl(){const e=Date.now();let t=(e-xe.time)/1e3;xe.time=e;const n=t;if(Rt.lastTenTicks.push(n),Rt.lastTenTicks.length>10&&(Rt.lastTenTicks=Rt.lastTenTicks.slice(1)),!((Ta==null?void 0:Ta.value)&&!xe.keepGoing)&&!Rt.hasNaN&&(t=Math.max(t,0),xe.devSpeed!==0)){if(xe.offlineTime!=null){if(O.gt(xe.offlineTime,_t.offlineLimit*3600)&&(xe.offlineTime=_t.offlineLimit*3600),O.gt(xe.offlineTime,0)&&xe.devSpeed!==0){const r=Math.max(xe.offlineTime/10,t);xe.offlineTime=xe.offlineTime-r,t+=r}else xe.devSpeed===0&&(xe.offlineTime+=t);(!xe.offlineProd||O.lt(xe.offlineTime,0))&&(xe.offlineTime=null)}t=Math.min(t,_t.maxTickLength),xe.devSpeed!=null&&(t*=xe.devSpeed),Number.isFinite(t)||(t=1e308),!O.eq(t,0)&&(xe.timePlayed+=t,Number.isFinite(xe.timePlayed)||(xe.timePlayed=1e308),sn.emit("update",t,n),bt.unthrottled?(requestAnimationFrame(yl),xo!=null&&(clearInterval(xo),xo=null)):xo==null&&(xo=setInterval(yl,50)))}}async function Mx(){Ta=(await sl(()=>Promise.resolve().then(function(){return Ny}),void 0)).hasWon,Dt(Ta,e=>{e&&sn.emit("gameWon")}),bt.unthrottled?requestAnimationFrame(yl):xo=setInterval(yl,50)}var Lx=Object.freeze(Object.defineProperty({__proto__:null,globalBus:sn,startGameLoop:Mx},Symbol.toStringTag,{value:"Module"})),Js=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ux(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zm(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var Xm={exports:{}};(function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function o(l,u){if(!a[l]){a[l]={};for(var c=0;c>>8,c[f*2+1]=h%256}return c},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var u=new Array(l.length/2),c=0,f=u.length;c>1}else{for(d=1,f=0;f>1}m--,m==0&&(m=Math.pow(2,T),T++),delete p[y]}else for(d=h[y],f=0;f>1;m--,m==0&&(m=Math.pow(2,T),T++),h[g]=b++,y=String(v)}if(y!==""){if(Object.prototype.hasOwnProperty.call(p,y)){if(y.charCodeAt(0)<256){for(f=0;f>1}else{for(d=1,f=0;f>1}m--,m==0&&(m=Math.pow(2,T),T++),delete p[y]}else for(d=h[y],f=0;f>1;m--,m==0&&(m=Math.pow(2,T),T++)}for(d=2,f=0;f>1;for(;;)if(w=w<<1,N==u-1){S.push(c(w));break}else N++;return S.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(u){return l.charCodeAt(u)})},_decompress:function(l,u,c){var f=[],d=4,h=4,p=3,v="",g=[],y,m,b,T,S,w,N,I={val:c(0),position:u,index:1};for(y=0;y<3;y+=1)f[y]=y;for(b=0,S=Math.pow(2,2),w=1;w!=S;)T=I.val&I.position,I.position>>=1,I.position==0&&(I.position=u,I.val=c(I.index++)),b|=(T>0?1:0)*w,w<<=1;switch(b){case 0:for(b=0,S=Math.pow(2,8),w=1;w!=S;)T=I.val&I.position,I.position>>=1,I.position==0&&(I.position=u,I.val=c(I.index++)),b|=(T>0?1:0)*w,w<<=1;N=n(b);break;case 1:for(b=0,S=Math.pow(2,16),w=1;w!=S;)T=I.val&I.position,I.position>>=1,I.position==0&&(I.position=u,I.val=c(I.index++)),b|=(T>0?1:0)*w,w<<=1;N=n(b);break;case 2:return""}for(f[3]=N,m=N,g.push(N);;){if(I.index>l)return"";for(b=0,S=Math.pow(2,p),w=1;w!=S;)T=I.val&I.position,I.position>>=1,I.position==0&&(I.position=u,I.val=c(I.index++)),b|=(T>0?1:0)*w,w<<=1;switch(N=b){case 0:for(b=0,S=Math.pow(2,8),w=1;w!=S;)T=I.val&I.position,I.position>>=1,I.position==0&&(I.position=u,I.val=c(I.index++)),b|=(T>0?1:0)*w,w<<=1;f[h++]=n(b),N=h-1,d--;break;case 1:for(b=0,S=Math.pow(2,16),w=1;w!=S;)T=I.val&I.position,I.position>>=1,I.position==0&&(I.position=u,I.val=c(I.index++)),b|=(T>0?1:0)*w,w<<=1;f[h++]=n(b),N=h-1,d--;break;case 2:return g.join("")}if(d==0&&(d=Math.pow(2,p),p++),f[N])v=f[N];else if(N===h)v=m+m.charAt(0);else return null;g.push(v),f[h++]=m+v.charAt(0),d--,m=v,d==0&&(d=Math.pow(2,p),p++)}}};return s}();e!=null&&(e.exports=t)})(Xm);var li=Xm.exports;function Wm(e={}){return Object.assign({id:`${_t.id}-0`,name:"Default Save",tabs:_t.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:0,timePlayed:0,keepGoing:!1,modID:_t.id,modVersion:_t.versionNumber,layers:{}},e)}function rr(e){const t=li.compressToUTF16($m(e!=null?e:xe[qt]));return localStorage.setItem((e!=null?e:xe[qt]).id,t),t}async function Bx(){Dx();try{let e=localStorage.getItem(bt.active);if(e==null){await Wi(Ro());return}if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=li.decompressFromUTF16(e);else throw"Unable to determine save encoding";const t=JSON.parse(e);if(t.modID!==_t.id){await Wi(Ro());return}t.id=bt.active,await Wi(t)}catch(e){console.error(`Failed to load save. Falling back to new save. -`,e),await Wi(Ro())}}function Ro(){const e=Qs(),t=Wm({id:e});return rr(t),bt.saves.push(e),t}function Qs(){let e,t=0;do e=`${_t.id}-${t++}`;while(localStorage.getItem(e));return e}async function Wi(e){console.info("Loading save",e);const{layers:t,removeLayer:n,addLayer:r}=await sl(()=>Promise.resolve().then(function(){return o_}),void 0),{fixOldSave:i,getInitialLayers:a}=await sl(()=>Promise.resolve().then(function(){return Ny}),void 0);for(const o in t){const s=t[o];s&&n(s)}a(e).forEach(o=>r(o,e)),e=Wm(e),e.offlineProd&&e.time&&(e.offlineTime==null&&(e.offlineTime=0),e.offlineTime+=(Date.now()-e.time)/1e3),e.time=Date.now(),e.modVersion!==_t.versionNumber&&i(e.modVersion,e),Object.assign(xe,e),bt.active=xe.id}setInterval(()=>{xe.autosave&&rr()},1e3);window.onbeforeunload=()=>{xe.autosave&&rr()};window.save=rr;const kx=window.hardReset=async()=>{await Wi(Ro())},Ba=Pr({active:"",saves:[],showTPS:!0,theme:Ff.Nordic,unthrottled:!1});Dt(Ba,e=>{const t=li.compressToUTF16(JSON.stringify(e));localStorage.setItem(_t.id,t)},{deep:!0});var bt=window.settings=Ba;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:Ff.Nordic};sn.emit("loadSettings",e),Object.assign(Ba,e),kx()};function Dx(){try{let e=localStorage.getItem(_t.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=li.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(Ba,t)}sn.emit("loadSettings",Ba)}catch{}}const Km=Pr([]);function Ym(e){Km.push(e)}const Zm=Pr([]);function Gx(e){Zm.push(e)}const Vx=Pr([]),$x={class:"table"},qs=Ie({__name:"Column",setup(e){const t=J(()=>Kr[bt.theme].mergeAdjacent);return(n,r)=>(M(),W("div",$x,[P("div",{class:ze(["col",{mergeAdjacent:x(t)}])},[Mt(n.$slots,"default")],2)]))}}),jx={class:"table"},wa=Ie({__name:"Row",setup(e){const t=J(()=>Kr[bt.theme].mergeAdjacent);return(n,r)=>(M(),W("div",jx,[P("div",{class:ze(["row",{mergeAdjacent:x(t)}])},[Mt(n.$slots,"default")],2)]))}});function Jm(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!fr(e)}function Ye(e,t="span"){return typeof e=="function"?Ie({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}`),Ie({template:e})):Ie({render:()=>({})}):e}function Bt(e){if(Jn(e))return typeof e=="function"?e():Ye(e);const t=e[Jt];return C(t,e[nn](),null)}function tr(...e){let t;return C(wa,null,Jm(t=e.map(Bt))?t:{default:()=>[t]})}function Hx(...e){let t;return C(qs,null,Jm(t=e.map(Bt))?t:{default:()=>[t]})}function Er(e){if(Jn(e))return typeof e=="function"?e():typeof e=="string"?C(Oe,null,[e]):C(e,null,null);const t=e[Jt];return C(t,e[nn](),null)}function Jn(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[Ua]===!0}function Mf(e,t){const n=Te(null),r=Te(void 0);function i(s){n.value||(n.value=setInterval(o,250)),r.value=s}function a(){n.value&&(clearInterval(n.value),n.value=null)}function o(){t&&t.value?t.value():e&&e.value&&e.value(r.value)}return Ho(a),{start:i,stop:a,handleHolding:o}}function Vo(e,t="div"){const n=An();return zt(()=>{n.value=Ye(Ot(e),t)}),n}function lo(e,t="div"){const n=An(null);return zt(()=>{const r=Ot(e);n.value=r==null?null:Ye(r,t)}),n}function zx(e){return J(()=>Ot(e))}function Ot(e){return x(x(e))}function q(...e){return e.includes(Object)||e.push(Object),e}var Qe=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const Xx=Ie({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var c;const n=Te({}),r=new ResizeObserver(s),i=Te(null);vr(()=>{const f=i.value;f!=null&&r.observe(f)});let a=!0,o=Te((c=i.value)==null?void 0:c.getBoundingClientRect());function s(){i.value!=null&&a&&(a=!1,tn(()=>{var f;o.value=(f=i.value)==null?void 0:f.getBoundingClientRect(),Object.values(n.value).filter(d=>d).forEach(d=>d.rect=d.element.getBoundingClientRect()),t("updateNodes",n.value),a=!0}))}document.fonts.ready.then(s);const l={attributes:!1,childList:!0,subtree:!1};Hi(Lf,(f,d)=>{const h=new MutationObserver(()=>u(f));h.observe(d,l),n.value[f]={element:d,observer:h,rect:d.getBoundingClientRect()},t("updateNodes",n.value),tn(()=>u(f))}),Hi(Uf,f=>{var d;(d=n.value[f])==null||d.observer.disconnect(),n.value[f]=void 0,t("updateNodes",n.value)}),Hi(Bf,n),Hi(kf,o);function u(f){const d=n.value[f];d!=null&&(d.rect=d.element.getBoundingClientRect(),t("updateNodes",n.value))}return(f,d)=>(M(),W(Oe,null,[Mt(f.$slots,"default",{},void 0,!0),P("div",{ref_key:"resizeListener",ref:i,class:"resize-listener"},null,512)],64))}});var Qm=Qe(Xx,[["__scopeId","data-v-6a08ac80"]]);const Wx=["onPointerdown"],Kx={class:"modal-wrapper"},Yx={class:"modal-container"},Zx={class:"modal-header"},Jx=le(" default header "),Qx={class:"modal-body"},qx=le(" default body "),e_={class:"modal-footer"},t_=P("div",{class:"modal-default-flex-grow"},null,-1),wi=Ie({__name:"Modal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const i=Et(e),a=J(()=>i.modelValue||s.value);function o(){n("update:modelValue",!1)}const s=Te(!1),l=Te(null),u=J(()=>{var c,f;return(f=(c=l.value)==null?void 0:c.nodes)!=null?f:null});return t({isOpen:a,nodes:u}),(c,f)=>(M(),we(qv,{to:"#modal-root"},[C(Ti,{name:"modal",onBeforeEnter:f[0]||(f[0]=d=>s.value=!0),onAfterLeave:f[1]||(f[1]=d=>s.value=!1)},{default:Pe(()=>[zo(P("div",un({class:"modal-mask",onPointerdown:ln(o,["self"])},c.$attrs),[P("div",Kx,[P("div",Yx,[P("div",Zx,[Mt(c.$slots,"header",{shown:x(a)},()=>[Jx])]),P("div",Qx,[C(Qm,{ref_key:"contextRef",ref:l},{default:Pe(()=>[Mt(c.$slots,"body",{shown:x(a)},()=>[qx])]),_:3},512)]),P("div",e_,[Mt(c.$slots,"footer",{shown:x(a)},()=>[P("div",{class:"modal-default-footer"},[t_,P("button",{class:"button modal-default-button",onClick:o}," Close ")])])])])])],16,Wx),[[Jl,e.modelValue]])]),_:3})]))}}),ka=Symbol("PersistentState"),Da=Symbol("DefaultValue"),bl=Symbol("StackTrace"),qm=Symbol("Deleted");function n_(){var e;return((e=new Error().stack)==null?void 0:e.split(` -`).slice(3,5).map(t=>t.trim()).join(` -`))||""}function Kt(e){const t=et(e)?e:Te(e);return t[ka]=t,t[Da]=et(e)?e.value:e,t[bl]=n_(),t[qm]=!1,ir.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",t,` -Created at: -`+t[bl]):Ao[ir[ir.length-1]].add(t),t}sn.on("addLayer",(e,t)=>{const n=[],r=(i,a=[])=>{let o=!1;return Object.keys(i).forEach(s=>{const l=i[s];if(l&&typeof l=="object")if(ka in l){if(o=!0,l[qm]){console.warn("Deleted persistent ref present in returned object. Ignoring...",l,` -Created at: -`+l[bl]);return}Ao[e.id].delete(qt in l?l[qt]:l);const u=a.reduce((f,d)=>(d in f||(f[d]={}),f[d]),t),c=u[s];u[s]=l[ka],di(u)?c!=null?u[s]=c:u[s]=l[Da]:c!=null?u[s].value=c:u[s].value=l[Da]}else!(l instanceof O)&&!et(l)&&!n.includes(l)&&(typeof l.type=="symbol"&&n.push(l),r(l,[...a,s])&&(Ce(l)&&!Ce(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.",qt in i?i[qt]:i,s):o=!0))}),o};r(e),Ao[e.id].forEach(i=>{console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,i,` -Created at: -`+i[bl])}),Ao[e.id].clear()});const Lf=Symbol("RegisterNode"),Uf=Symbol("UnregisterNode"),Bf=Symbol("Nodes"),kf=Symbol("Bounds"),Rn=jo({});window.layers=Rn;const Ao={},ir=[];function ss(e,t){return an(()=>{const n={},r=n.emitter=Hm();if(n.on=r.on.bind(r),n.emit=r.emit.bind(r),n.nodes=Te({}),n.id=e,ir.push(e),Ao[e]=new Set,n.minimized=Kt(!1),Object.assign(n,t.call(n)),ir[ir.length-1]==null||ir[ir.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen -Stack: ${ir} -Trying to pop ${n.id}`;return ir.pop(),H(n,"color"),H(n,"display"),H(n,"name"),ft(n,"name",n.id),H(n,"minWidth"),ft(n,"minWidth",600),H(n,"minimizable"),ft(n,"minimizable",!0),n})}function eg(e,t){if(console.info("Adding layer",e.id),Rn[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,Rn[e.id]);return}ft(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),Rn[e.id]=e,sn.emit("addLayer",e,t.layers[e.id])}function r_(e){return Rn[e]}function tg(e){console.info("Removing layer",e.id),sn.emit("removeLayer",e),Rn[e.id]=void 0}function i_(e){tg(e),eg(e,xe)}function ng(e){const t=Te(!1);return{openModal:()=>t.value=!0,modal:it(()=>C(wi,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>C("h2",null,[x(e.name)]),body:x(e.display)}))}}sn.on("update",function(t){Object.values(Rn).forEach(n=>{n==null||n.emit("preUpdate",t)}),Object.values(Rn).forEach(n=>{n==null||n.emit("update",t)}),Object.values(Rn).forEach(n=>{n==null||n.emit("postUpdate",t)})});var o_=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:Lf,UnregisterNodeInjectionKey:Uf,NodesInjectionKey:Bf,BoundsInjectionKey:kf,layers:Rn,persistentRefs:Ao,addingLayers:ir,createLayer:ss,addLayer:eg,getLayer:r_,removeLayer:tg,reloadLayer:i_,setupLayerModal:ng},Symbol.toStringTag,{value:"Module"}));const a_=Ie({components:{Context:Qm},props:{index:{type:Number,required:!0},tab:{type:Function,required:!0},display:{type:q(Object,String,Function),required:!0},minimized:{type:Object,required:!0},minWidth:{type:q(Number,String),required:!0},name:{type:q(String),required:!0},color:q(String),minimizable:q(Boolean),nodes:{type:Object,required:!0}},setup(e){const{display:t,index:n,minimized:r,minWidth:i,tab:a}=Et(e),o=Vo(t),s=J(()=>_t.allowGoBack&&n.value>0&&!r.value);function l(){xe.tabs.splice(x(e.index),1/0)}tn(()=>c(r.value,x(i.value))),Dt([r,zx(i)],([f,d])=>c(f,d));function u(f){e.nodes.value=f}function c(f,d){const h=typeof d=="number"||Number.isNaN(parseInt(d))?d+"px":d,p=a.value();p!=null&&(f?(p.style.flexGrow="0",p.style.flexShrink="0",p.style.width="60px",p.style.minWidth=p.style.flexBasis="",p.style.margin="0"):(p.style.flexGrow="",p.style.flexShrink="",p.style.width="",p.style.minWidth=p.style.flexBasis=h,p.style.margin=""))}return{component:o,showGoBack:s,updateNodes:u,unref:x,goBack:l}}});function s_(e,t,n,r,i,a){const o=wt("Context");return M(),W("div",{class:"layer-container",style:tt({"--layer-color":e.unref(e.color)})},[e.showGoBack?(M(),W("button",{key:0,class:"goBack",onClick:t[0]||(t[0]=(...s)=>e.goBack&&e.goBack(...s))},"\u2190")):ve("",!0),e.minimized.value?(M(),W("button",{key:1,class:"layer-tab minimized",onClick:t[1]||(t[1]=s=>e.minimized.value=!1)},[P("div",null,Je(e.unref(e.name)),1)])):(M(),W("div",{key:2,class:ze(["layer-tab",{showGoBack:e.showGoBack}])},[C(o,{onUpdateNodes:e.updateNodes},{default:Pe(()=>[(M(),we(gt(e.component)))]),_:1},8,["onUpdateNodes"])],2)),e.unref(e.minimizable)?(M(),W("button",{key:3,class:"minimize",onClick:t[2]||(t[2]=s=>e.minimized.value=!0)}," \u25BC ")):ve("",!0)],4)}var l_=Qe(a_,[["render",s_],["__scopeId","data-v-34c9d881"]]);const rg=e=>(hr("data-v-4b4bda40"),e=e(),pr(),e),u_=rg(()=>P("h2",null,"Changelog",-1)),c_=rg(()=>P("details",{open:""},[P("summary",null,[le("v0.0 Initial Commit - "),P("time",null,"2021-09-04")]),le(" This is the first release :D "),P("ul",null,[P("li",{class:"feature"},"Did everything"),P("li",{class:"fix"},"Had some fun"),P("li",{class:"breaking"},"Removed everything"),P("li",{class:"balancing"},"Created some bugs to fix later")])],-1)),f_=Ie({__name:"Changelog",setup(e,{expose:t}){const n=Te(!1);return t({open(){n.value=!0}}),(r,i)=>(M(),we(wi,{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=a=>n.value=a)},{header:Pe(()=>[u_]),body:Pe(()=>[c_]),_:1},8,["modelValue"]))}});var d_=Qe(f_,[["__scopeId","data-v-4b4bda40"]]),h_=Ie({props:{element:Object,display:{type:q(Object,String,Function),required:!0},style:q(Object,String,Array),classes:q(Object),direction:q(String),xoffset:q(String),yoffset:q(String),pinned:Object},setup(e){const{element:t,display:n,pinned:r}=Et(e),i=Te(!1),a=J(()=>(Ot(r)||i.value)&&o.value),o=lo(n),s=An(Ye(it(()=>{const c=Ot(t);return c==null?"":Er(c)})));function l(c){const f=r;c.shiftKey&&f&&(f.value=!f.value,c.stopPropagation(),c.preventDefault())}const u=J(()=>Ot(r)&&Kr[bt.theme].showPin);return{Direction:Ct,isHovered:i,isShown:a,comp:o,elementComp:s,unref:x,togglePinned:l,showPin:u}}});const p_={key:0,class:"material-icons pinned"};function v_(e,t,n,r,i,a){return M(),W("div",{class:ze(["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))},[Mt(e.$slots,"default",{},void 0,!0),e.elementComp?(M(),we(gt(e.elementComp),{key:0})):ve("",!0),C(Ti,{name:"fade"},{default:Pe(()=>{var o;return[e.isShown?(M(),W("div",{key:0,class:ze(["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:tt([{"--xoffset":e.unref(e.xoffset)||"0px","--yoffset":e.unref(e.yoffset)||"0px"},(o=e.unref(e.style))!=null?o:{}])},[e.showPin?(M(),W("span",p_,"push_pin")):ve("",!0),e.comp?(M(),we(gt(e.comp),{key:1})):ve("",!0)],6)):ve("",!0)]}),_:1})],34)}var At=Qe(h_,[["render",v_],["__scopeId","data-v-6102fa3a"]]);const uo=e=>(hr("data-v-7dec2dec"),e=e(),pr(),e),m_={class:"info-modal-header"},g_=["src","alt"],y_={class:"info-modal-title"},b_={key:0},x_={key:0},__={key:0},T_=uo(()=>P("div",null," Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb ",-1)),w_=uo(()=>P("br",null,null,-1)),C_=uo(()=>P("br",null,null,-1)),E_=["href"],I_=uo(()=>P("span",{class:"material-icons info-modal-discord"},"discord",-1)),S_=uo(()=>P("div",null,[P("a",{href:"https://discord.gg/WzejVAx",class:"info-modal-discord-link"},[P("span",{class:"material-icons info-modal-discord"},"discord"),le(" The Paper Pilot Community ")])],-1)),N_=uo(()=>P("div",null,[P("a",{href:"https://discord.gg/F3xveHV",class:"info-modal-discord-link"},[P("span",{class:"material-icons info-modal-discord"},"discord"),le(" The Modding Tree ")])],-1)),R_=uo(()=>P("br",null,null,-1));var A_=Ie({__name:"Info",props:{changelog:null},setup(e,{expose:t}){const n=e,{title:r,logo:i,author:a,discordName:o,discordLink:s,versionNumber:l,versionTitle:u}=_t,c=Et(n),f=Te(!1),d=J(()=>Ql(xe.timePlayed)),h=J(()=>Ye(it(()=>C(Oe,null,[Zm.map(Bt)]))));t({open(){f.value=!0}});function p(){var v;(v=x(c.changelog))==null||v.open()}return(v,g)=>(M(),we(wi,{modelValue:f.value,"onUpdate:modelValue":g[0]||(g[0]=y=>f.value=y)},{header:Pe(()=>[P("div",m_,[x(i)?(M(),W("img",{key:0,class:"info-modal-logo",src:x(i),alt:x(r)},null,8,g_)):ve("",!0),P("div",y_,[P("h2",null,Je(x(r)),1),P("h4",null,[le(" v"+Je(x(l)),1),x(u)?(M(),W("span",b_,": "+Je(x(u)),1)):ve("",!0)])])])]),body:Pe(({shown:y})=>[y?(M(),W("div",x_,[x(a)?(M(),W("div",__,"By "+Je(x(a)),1)):ve("",!0),T_,w_,P("div",{class:"link",onClick:p},"Changelog"),C_,P("div",null,[x(s)?(M(),W("a",{key:0,href:x(s),class:"info-modal-discord-link"},[I_,le(" "+Je(x(o)),1)],8,E_)):ve("",!0)]),S_,N_,R_,P("div",null,"Time Played: "+Je(x(d)),1),(M(),we(gt(x(h))))])):ve("",!0)]),_:1},8,["modelValue"]))}});var O_=Qe(A_,[["__scopeId","data-v-7dec2dec"]]);function Df(e){return(Df=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 gh(e){return function(t){if(Array.isArray(t))return _c(t)}(e)||function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||ig(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 ig(e,t){if(e){if(typeof e=="string")return _c(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)?_c(e,t):void 0}}function _c(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}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 a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return o=l.done,l},e:function(l){s=!0,a=l},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}var Tc={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=Te(null);return vr(function(){e.autofocus&&n.value.focus()}),os(function(){e.autofocus&&n.value.focus()}),{handleInput:function(r){t.emit("input",r),t.emit("update:modelValue",r.target.value)},handleChange:function(r){t.emit("change",r),t.emit("update:modelValue",r.target.value)},handleFocus:function(r){t.emit("focus",r)},handleBlur:function(r){t.emit("blur",r)},input:n,handleEscape:function(r){n.value.blur(),t.emit("escape",r)}}}},P_={class:"vue-input"},F_=["autocomplete","modelValue","placeholder","disabled","tabindex","autofocus","aria-controls","aria-labelledby"];Tc.render=function(e,t,n,r,i,a){return M(),W("div",P_,[Mt(e.$slots,"prepend"),P("input",{ref:"input",autocomplete:n.autocomplete,modelValue:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,onInput:t[0]||(t[0]=function(){return r.handleInput&&r.handleInput.apply(r,arguments)}),onChange:t[1]||(t[1]=function(){return r.handleChange&&r.handleChange.apply(r,arguments)}),onFocus:t[2]||(t[2]=function(){return r.handleFocus&&r.handleFocus.apply(r,arguments)}),onBlur:t[3]||(t[3]=function(){return r.handleBlur&&r.handleBlur.apply(r,arguments)}),onKeyup:t[4]||(t[4]=$i(ln(function(){return r.handleEscape&&r.handleEscape.apply(r,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,F_),Mt(e.$slots,"append")])},Tc.__file="src/components/input.vue";var wc={inheritAttrs:!1,name:"vue-tags",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every(function(t){return Df(t.key)!==void 0&&t.label!==void 0&&typeof t.selected=="boolean"})}},collapseTags:{type:Boolean}},emits:["click"],setup:function(e,t){return{dataAttrs:Kn("dataAttrs"),handleClick:function(n){t.emit("click",n)}}}};wc.render=function(e,t,n,r,i,a){return M(),W("ul",un({class:["vue-tags",{collapsed:n.collapseTags}],onMousedown:t[0]||(t[0]=ln(function(){},["prevent"])),tabindex:"-1",onClick:t[1]||(t[1]=function(){return r.handleClick&&r.handleClick.apply(r,arguments)})},r.dataAttrs),[(M(!0),W(Oe,null,Rr(n.modelValue,function(o){return M(),W(Oe,{key:o.key},[o.group?ve("v-if",!0):(M(),W("li",{key:0,class:ze(["vue-tag",{selected:o.selected}])},[Mt(e.$slots,"default",{option:o},function(){return[P("span",null,Je(o.label),1)]})],2))],64)}),128))],16)},wc.__file="src/components/tags.vue";var Cc={inheritAttrs:!1,name:"vue-dropdown",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every(function(t){return Df(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:Kn("dataAttrs"),handleClickItem:function(n,r){r.disabled||t.emit("click-item",n,r)},handleMouseenter:function(n,r){t.emit("mouseenter",n,r)}}}},M_=["id","aria-multiselectable","aria-busy","aria-disabled"],L_=["onClick","onMouseenter","id","aria-selected","aria-disabled"];Cc.render=function(e,t,n,r,i,a){return M(),W("ul",un({class:"vue-dropdown",style:{maxHeight:n.maxHeight+"px"},onMousedown:t[0]||(t[0]=ln(function(){},["prevent"]))},r.dataAttrs,{role:"listbox",id:"vs".concat(n.comboboxUid,"-listbox"),"aria-multiselectable":r.dataAttrs["data-multiple"],"aria-busy":r.dataAttrs["data-loading"],"aria-disabled":r.dataAttrs["data-disabled"]}),[(M(!0),W(Oe,null,Rr(n.modelValue,function(o,s){return M(),W(Oe,{key:o.key},[o.visible&&o.hidden===!1?(M(),W("li",{key:0,onClick:function(l){return r.handleClickItem(l,o)},class:ze(["vue-dropdown-item",{selected:o.selected,disabled:o.disabled,highlighted:o.originalIndex===n.highlightedOriginalIndex,group:o.group}]),onMouseenter:function(l){return r.handleMouseenter(l,o)},role:"option",id:"vs".concat(n.comboboxUid,"-option-").concat(s),"aria-selected":!!o.selected||!!o.disabled&&void 0,"aria-disabled":o.disabled},[Mt(e.$slots,"default",{option:o},function(){return[P("span",null,Je(o.label),1)]})],42,L_)):ve("v-if",!0)],64)}),128))],16,M_)},Cc.__file="src/components/dropdown.vue";var og=function(e,t,n){var r=n.valueBy;return r(e)===r(t)},To=function(e,t,n){var r=n.valueBy;return e.some(function(i){return og(i,t,{valueBy:r})})},Ni=function(e,t,n){var r=n.valueBy;return e.find(function(i){return r(i)===t})},bu=function(e,t,n){var r=n.max,i=n.valueBy;return To(e,t,{valueBy:i})||e.length>=r?e:e.concat(t)},xu=function(e,t,n){var r=n.min,i=n.valueBy;return To(e,t,{valueBy:i})===!1||e.length<=r?e:e.filter(function(a){return og(a,t,{valueBy:i})===!1})},Cs=function(e){return J(function(){return typeof e.value=="function"?e.value:typeof e.value=="string"?function(t){return e.value.split(".").reduce(function(n,r){return n[r]},t)}:function(t){return t}})},U_=function(e,t){var n=J(function(){return e.value.reduce(function(o,s){return Object.assign(o,(l={},u=s.originalIndex,c=s,u in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c,l));var l,u,c},{})}),r=function(o){var s=n.value[o];return s!==void 0&&i(s)!==!1&&(t.value=o,!0)},i=function(o){return!o.disabled&&!o.hidden&&o.visible},a=J(function(){return e.value.some(function(o){return i(o)})});return zt(function(){if(a.value===!1&&(t.value=null),t.value!==null&&e.value.length<=t.value){var o,s=ji(e.value.reverse());try{for(s.s();!(o=s.n()).done;){var l=o.value;if(r(l.originalIndex))break}}catch(d){s.e(d)}finally{s.f()}}if(t.value===null||i(e.value[t.value])===!1){var u,c=ji(e.value);try{for(c.s();!(u=c.n()).done;){var f=u.value;if(r(f.originalIndex))break}}catch(d){c.e(d)}finally{c.f()}}}),{pointerForward:function(){if(a.value!==!1&&t.value!==null)for(var o=t.value+1,s=0;o!==t.value&&s++o.value.$el.clientHeight+o.value.$el.scrollTop&&ce++n.min,"data-total-length":n.options.length,"data-multiple":e.multiple,"data-loading":e.loading,"data-disabled":e.disabled}});Hi("dataAttrs",Ke);var re=J(function(){return U.value.filter(function(k){return k.selected}).filter(function(k){return!k.group})}),de=J(function(){return e.multiple?re.value.length===0?e.placeholder:re.value.length===1?"1 option selected":re.value.length+" options selected":re.value.length===0?e.placeholder:re.value[0].label+""}),ye=J(function(){var k=re.value.map(function(X){return X.originalOption});return e.multiple?k:k[0]||r.value}),Se=Te();return Dt(function(){return[e.openDirection,u.value]},function(){var k,X;Se.value=(X=(k=e.openDirection)!==null&&k!==void 0?k:function(){if(a.value!==void 0&&window!==void 0)return window.innerHeight-a.value.getBoundingClientRect().bottom>=e.maxHeight?"bottom":"top"}())!==null&&X!==void 0?X:"bottom"},{immediate:!0}),{instance:i,isFocusing:u,wrapper:a,dropdown:o,input:s,focus:c,blur:f,toggle:function(){u.value?f():c()},searchingInputValue:d,handleInputForInput:function(k){t.emit("search:input",k)},handleChangeForInput:function(k){t.emit("search:change",k)},handleFocusForInput:function(k){c()},handleBlurForInput:function(k){f()},optionsWithInfo:U,addOrRemoveOption:function(k,X){e.disabled||(X.group&&e.multiple?T(k,X):S(k,X),w(),e.closeOnSelect===!0&&(u.value=!1),e.clearOnSelect===!0&&d.value&&N())},dataAttrs:Ke,innerPlaceholder:de,selected:ye,highlightedOriginalIndex:R,pointerForward:function(){z(),tn(me)},pointerBackward:function(){j(),tn(me)},pointerFirst:function(){var k,X=ji(n.options.keys());try{for(X.s();!(k=X.n()).done;){var ce=k.value;if(B(ce))break}}catch(ue){X.e(ue)}finally{X.f()}tn(me)},pointerLast:function(){var k,X=ji(gh(n.options.keys()).reverse());try{for(X.s();!(k=X.n()).done;){var ce=k.value;if(B(ce))break}}catch(ue){X.e(ue)}finally{X.f()}tn(me)},typeAhead:function(k){var X,ce;if(!e.searchable){var ue=!1;if(Y.test(k.key)?(he+=k.key.toLowerCase(),ue=!0):k.code==="Space"&&(he+=" "),ue){var Ve,ie=ji(oe.value);try{for(ie.s();!(Ve=ie.n()).done;){var Ze=Ve.value;if(((ce=(X=n.labelBy(n.options[Ze]))===null||X===void 0?void 0:X.toLowerCase())===null||ce===void 0?void 0:ce.startsWith(he))===!0&&B(Ze))break}}catch(at){ie.e(at)}finally{ie.f()}clearTimeout(b),b=setTimeout(function(){he=""},500)}}},pointerSet:B,direction:Se}},components:{VInput:Tc,VTags:wc,VDropdown:Cc}});xl.__VERSION__="2.10.4";var B_=["tabindex","id","role","aria-expanded","aria-owns","aria-activedescendant","aria-busy","aria-disabled"],k_={class:"vue-select-header"},D_={key:0,class:"vue-input"},G_=["placeholder","autocomplete"],V_=["onClick"],$_=P("span",{class:"icon loading"},[P("div"),P("div"),P("div")],-1),j_={key:0,class:"vue-select-input-wrapper"},H_=P("span",{class:"icon loading"},[P("div"),P("div"),P("div")],-1);xl.render=function(e,t,n,r,i,a){var o=wt("v-tags"),s=wt("v-input"),l=wt("v-dropdown");return M(),W("div",un({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(u){return!e.searchable&&e.blur(u)})},Object.assign({},e.dataAttrs,e.$attrs),{onKeypress:t[11]||(t[11]=$i(ln(function(){return e.highlightedOriginalIndex!==null&&e.addOrRemoveOption(e.$event,e.optionsWithInfo[e.highlightedOriginalIndex])},["prevent","exact"]),["enter"])),onKeydown:[t[12]||(t[12]=$i(ln(function(){return e.pointerForward&&e.pointerForward.apply(e,arguments)},["prevent","exact"]),["down"])),t[13]||(t[13]=$i(ln(function(){return e.pointerBackward&&e.pointerBackward.apply(e,arguments)},["prevent","exact"]),["up"])),t[14]||(t[14]=$i(ln(function(){return e.pointerFirst&&e.pointerFirst.apply(e,arguments)},["prevent","exact"]),["home"])),t[15]||(t[15]=$i(ln(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}),[P("div",k_,[e.multiple&&e.taggable&&e.modelValue.length===0||e.searchable===!1&&e.taggable===!1?(M(),W("div",D_,[Mt(e.$slots,"label",{selected:e.selected},function(){return[P("input",{placeholder:e.innerPlaceholder,autocomplete:e.autocomplete,readonly:"",onClick:t[0]||(t[0]=function(){return e.focus&&e.focus.apply(e,arguments)})},null,8,G_)]})])):ve("v-if",!0),e.multiple&&e.taggable?(M(),W(Oe,{key:1},[C(o,{modelValue:e.optionsWithInfo,"collapse-tags":e.collapseTags,tabindex:"-1",onClick:e.focus},{default:Pe(function(u){var c=u.option;return[Mt(e.$slots,"tag",{option:c.originalOption,remove:function(){return e.addOrRemoveOption(e.$event,c)}},function(){return[P("span",null,Je(c.label),1),P("img",{src:"data:image/svg+xml;base64,PHN2ZyBpZD0iZGVsZXRlIiBkYXRhLW5hbWU9ImRlbGV0ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHRpdGxlPmRlbGV0ZTwvdGl0bGU+PHBhdGggZD0iTTI1NiwyNEMzODMuOSwyNCw0ODgsMTI4LjEsNDg4LDI1NlMzODMuOSw0ODgsMjU2LDQ4OCwyNC4wNiwzODMuOSwyNC4wNiwyNTYsMTI4LjEsMjQsMjU2LDI0Wk0wLDI1NkMwLDM5Ny4xNiwxMTQuODQsNTEyLDI1Niw1MTJTNTEyLDM5Ny4xNiw1MTIsMjU2LDM5Ny4xNiwwLDI1NiwwLDAsMTE0Ljg0LDAsMjU2WiIgZmlsbD0iIzViNWI1ZiIvPjxwb2x5Z29uIHBvaW50cz0iMzgyIDE3Mi43MiAzMzkuMjkgMTMwLjAxIDI1NiAyMTMuMjkgMTcyLjcyIDEzMC4wMSAxMzAuMDEgMTcyLjcyIDIxMy4yOSAyNTYgMTMwLjAxIDMzOS4yOCAxNzIuNzIgMzgyIDI1NiAyOTguNzEgMzM5LjI5IDM4MS45OSAzODIgMzM5LjI4IDI5OC43MSAyNTYgMzgyIDE3Mi43MiIgZmlsbD0iIzViNWI1ZiIvPjwvc3ZnPg==",alt:"delete tag",class:"icon delete",onClick:ln(function(){return e.addOrRemoveOption(e.$event,c)},["prevent","stop"])},null,8,V_)]})]}),_:3},8,["modelValue","collapse-tags","onClick"]),Mt(e.$slots,"toggle",{isFocusing:e.isFocusing,toggle:e.toggle},function(){return[P("span",{class:ze(["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]=ln(function(){},["prevent","stop"]))},null,34)]})],64)):(M(),W(Oe,{key:2},[e.searchable?(M(),we(s,{key:0,ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[3]||(t[3]=function(u){return e.searchingInputValue=u}),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"])):ve("v-if",!0),e.loading?Mt(e.$slots,"loading",{key:1},function(){return[$_]}):Mt(e.$slots,"toggle",{key:2,isFocusing:e.isFocusing,toggle:e.toggle},function(){return[P("span",{class:ze(["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]=ln(function(){},["prevent","stop"]))},null,34)]})],64))]),e.multiple&&e.taggable&&e.searchable?(M(),W("div",j_,[zo(C(s,{ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[6]||(t[6]=function(u){return e.searchingInputValue=u}),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"]),[[Jl,e.isFocusing]]),e.loading?Mt(e.$slots,"loading",{key:0},function(){return[H_]}):ve("v-if",!0)])):ve("v-if",!0),C(l,{ref:"dropdown",modelValue:e.optionsWithInfo,"onUpdate:modelValue":t[7]||(t[7]=function(u){return e.optionsWithInfo=u}),onClickItem:e.addOrRemoveOption,onMouseenter:t[8]||(t[8]=function(u,c){return e.pointerSet(c.originalIndex)}),comboboxUid:e.instance.uid,maxHeight:e.maxHeight,highlightedOriginalIndex:e.highlightedOriginalIndex},{default:Pe(function(u){var c=u.option;return[Mt(e.$slots,"dropdown-item",{option:c.originalOption},function(){return[P("span",null,Je(c.label),1)]})]}),_:3},8,["modelValue","onClickItem","comboboxUid","maxHeight","highlightedOriginalIndex"])],16,B_)},xl.__file="src/index.vue";const z_={class:"field"},X_={key:0,class:"field-title"},Gf=Ie({__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=lo(Sn(n,"title"),"span"),i=Te((o=n.options.find(s=>s.value===n.modelValue))!=null?o:null);Dt(Sn(n,"modelValue"),s=>{var l;Ot(i)!==s&&(i.value=(l=n.options.find(u=>u.value===s))!=null?l:null)});function a(s){t("update:modelValue",s.value)}return(s,l)=>(M(),W("div",z_,[x(r)?(M(),W("span",X_,[(M(),we(gt(x(r))))])):ve("",!0),C(x(xl),{options:e.options,modelValue:i.value,"onUpdate:modelValue":[l[0]||(l[0]=u=>i.value=u),a],min:1,"label-by":"label",placeholder:e.placeholder,"close-on-select":e.closeOnSelect},null,8,["options","modelValue","placeholder","close-on-select"])]))}});const W_={class:"field"},K_=Ie({__name:"Toggle",props:{title:null,modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=J(()=>Ye(x(n.title)||"","span")),i=J({get(){return!!n.modelValue},set(a){t("update:modelValue",a)}});return(a,o)=>(M(),W("label",W_,[zo(P("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":o[0]||(o[0]=s=>et(i)?i.value=s:null)},null,512),[[Zl,x(i)]]),(M(),we(gt(x(r))))]))}});var Bn=Qe(K_,[["__scopeId","data-v-2b109500"]]);const ag=e=>(hr("data-v-bc13791c"),e=e(),pr(),e),Y_=ag(()=>P("div",{class:"header"},[P("h2",null,"Options")],-1)),Z_=ag(()=>P("hr",null,null,-1));var J_=Ie({__name:"Options",setup(e,{expose:t}){const n=Te(!1);t({open(){n.value=!0}});const r=Object.keys(Kr).map(p=>({label:Dm(p),value:p})),i=J(()=>Ye(it(()=>C(Oe,null,[Km.map(Bt)])))),{showTPS:a,theme:o,unthrottled:s}=Et(bt),{autosave:l,offlineProd:u}=Et(xe),c=J({get(){return xe.devSpeed===0},set(p){xe.devSpeed=p?0:null}}),f=it(()=>C("span",null,[le("Offline Production"),C(At,{display:"Save-specific"},{default:()=>[le("*")]})])),d=it(()=>C("span",null,[le("Autosave"),C(At,{display:"Save-specific"},{default:()=>[le("*")]})])),h=it(()=>C("span",null,[le("Pause game"),C(At,{display:"Save-specific"},{default:()=>[le("*")]})]));return(p,v)=>(M(),we(wi,{modelValue:n.value,"onUpdate:modelValue":v[6]||(v[6]=g=>n.value=g)},{header:Pe(()=>[Y_]),body:Pe(()=>[C(Gf,{title:"Theme",options:x(r),modelValue:x(o),"onUpdate:modelValue":v[0]||(v[0]=g=>et(o)?o.value=g:null)},null,8,["options","modelValue"]),(M(),we(gt(x(i)))),C(Bn,{title:"Show TPS",modelValue:x(a),"onUpdate:modelValue":v[1]||(v[1]=g=>et(a)?a.value=g:null)},null,8,["modelValue"]),Z_,C(Bn,{title:"Unthrottled",modelValue:x(s),"onUpdate:modelValue":v[2]||(v[2]=g=>et(s)?s.value=g:null)},null,8,["modelValue"]),C(Bn,{title:x(f),modelValue:x(u),"onUpdate:modelValue":v[3]||(v[3]=g=>et(u)?u.value=g:null)},null,8,["title","modelValue"]),C(Bn,{title:x(d),modelValue:x(l),"onUpdate:modelValue":v[4]||(v[4]=g=>et(l)?l.value=g:null)},null,8,["title","modelValue"]),x(_t).enablePausing?(M(),we(Bn,{key:0,title:x(h),modelValue:x(c),"onUpdate:modelValue":v[5]||(v[5]=g=>et(c)?c.value=g:null)},null,8,["title","modelValue"])):ve("",!0)]),_:1},8,["modelValue"]))}});var Q_=Qe(J_,[["__scopeId","data-v-bc13791c"]]),sg={exports:{}},q_=zm(V1);/**! - * Sortable 1.14.0 - * @author RubaXa - * @author owenm - * @license MIT - */function yh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Or(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function nT(e,t){if(e==null)return{};var n=tT(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function rT(e){return iT(e)||oT(e)||aT(e)||sT()}function iT(e){if(Array.isArray(e))return Ec(e)}function oT(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aT(e,t){if(!!e){if(typeof e=="string")return Ec(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ec(e,t)}}function Ec(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function cT(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function or(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&_l(e,t):_l(e,t))||r&&e===n)return e;if(e===n)break}while(e=cT(e))}return null}var xh=/\s+/g;function Ut(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(xh," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(xh," ")}}function Ee(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function qi(e,t){var n="";if(typeof e=="string")n=e;else do{var r=Ee(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function cg(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i=a:o=i<=a,!o)return r;if(r===Ir())break;r=ui(r,!1)}return!1}function $o(e,t,n,r){for(var i=0,a=0,o=e.children;a2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,a=nT(r,gT);us.pluginEvent.bind(ke)(t,n,Or({dragEl:fe,parentEl:$t,ghostEl:We,rootEl:Pt,nextEl:Li,lastDownEl:tl,cloneEl:jt,cloneHidden:si,dragStarted:ca,putSortable:cn,activeSortable:ke.active,originalEvent:i,oldIndex:wo,oldDraggableIndex:Ia,newIndex:Pn,newDraggableIndex:oi,hideGhostForTarget:mg,unhideGhostForTarget:gg,cloneNowHidden:function(){si=!0},cloneNowShown:function(){si=!1},dispatchSortableEvent:function(s){xn({sortable:n,name:s,originalEvent:i})}},a))};function xn(e){ua(Or({putSortable:cn,cloneEl:jt,targetEl:fe,rootEl:Pt,oldIndex:wo,oldDraggableIndex:Ia,newIndex:Pn,newDraggableIndex:oi},e))}var fe,$t,We,Pt,Li,tl,jt,si,wo,Pn,Ia,oi,Es,cn,_o=!1,Tl=!1,wl=[],Ri,qn,Cu,Eu,Ch,Eh,ca,fo,Sa,Na=!1,Is=!1,nl,dn,Iu=[],Ic=!1,Cl=[],ql=typeof document!="undefined",Ss=lg,Ih=ls||Yr?"cssFloat":"float",yT=ql&&!uT&&!lg&&"draggable"in document.createElement("div"),hg=function(){if(!!ql){if(Yr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),pg=function(t,n){var r=Ee(t),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),a=$o(t,0,n),o=$o(t,1,n),s=a&&Ee(a),l=o&&Ee(o),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Ft(a).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Ft(o).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&s.float&&s.float!=="none"){var f=s.float==="left"?"left":"right";return o&&(l.clear==="both"||l.clear===f)?"vertical":"horizontal"}return a&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||u>=i&&r[Ih]==="none"||o&&r[Ih]==="none"&&u+c>i)?"vertical":"horizontal"},bT=function(t,n,r){var i=r?t.left:t.top,a=r?t.right:t.bottom,o=r?t.width:t.height,s=r?n.left:n.top,l=r?n.right:n.bottom,u=r?n.width:n.height;return i===s||a===l||i+o/2===s+u/2},xT=function(t,n){var r;return wl.some(function(i){var a=i[vn].options.emptyInsertThreshold;if(!(!a||Vf(i))){var o=Ft(i),s=t>=o.left-a&&t<=o.right+a,l=n>=o.top-a&&n<=o.bottom+a;if(s&&l)return r=i}}),r},vg=function(t){function n(a,o){return function(s,l,u,c){var f=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(a==null&&(o||f))return!0;if(a==null||a===!1)return!1;if(o&&a==="clone")return a;if(typeof a=="function")return n(a(s,l,u,c),o)(s,l,u,c);var d=(o?s:l).options.group.name;return a===!0||typeof a=="string"&&a===d||a.join&&a.indexOf(d)>-1}}var r={},i=t.group;(!i||el(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=n(i.pull,!0),r.checkPut=n(i.put),r.revertClone=i.revertClone,t.group=r},mg=function(){!hg&&We&&Ee(We,"display","none")},gg=function(){!hg&&We&&Ee(We,"display","")};ql&&document.addEventListener("click",function(e){if(Tl)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Tl=!1,!1},!0);var Ai=function(t){if(fe){t=t.touches?t.touches[0]:t;var n=xT(t.clientX,t.clientY);if(n){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[vn]._onDragOver(r)}}},_T=function(t){fe&&fe.parentNode[vn]._isOutsideThisEl(t.target)};function ke(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Qn({},t),e[vn]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return pg(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,s){o.setData("Text",s.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:ke.supportPointer!==!1&&"PointerEvent"in window&&!Ca,emptyInsertThreshold:5};us.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);vg(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:yT,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?lt(e,"pointerdown",this._onTapStart):(lt(e,"mousedown",this._onTapStart),lt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(lt(e,"dragover",this),lt(e,"dragenter",this)),wl.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Qn(this,pT())}ke.prototype={constructor:ke,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(fo=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,fe):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var n=this,r=this.el,i=this.options,a=i.preventOnFilter,o=t.type,s=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(s||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=i.filter;if(RT(r),!fe&&!(/mousedown|pointerdown/.test(o)&&t.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Ca&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=or(l,i.draggable,r,!1),!(l&&l.animated)&&tl!==l)){if(wo=Ht(l),Ia=Ht(l,i.draggable),typeof c=="function"){if(c.call(this,t,l,this)){xn({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:r,fromEl:r}),wn("filter",n,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(f){if(f=or(u,f.trim(),r,!1),f)return xn({sortable:n,rootEl:f,name:"filter",targetEl:l,fromEl:r,toEl:r}),wn("filter",n,{evt:t}),!0}),c)){a&&t.cancelable&&t.preventDefault();return}i.handle&&!or(u,i.handle,r,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,n,r){var i=this,a=i.el,o=i.options,s=a.ownerDocument,l;if(r&&!fe&&r.parentNode===a){var u=Ft(r);if(Pt=a,fe=r,$t=fe.parentNode,Li=fe.nextSibling,tl=r,Es=o.group,ke.dragged=fe,Ri={target:fe,clientX:(n||t).clientX,clientY:(n||t).clientY},Ch=Ri.clientX-u.left,Eh=Ri.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,fe.style["will-change"]="all",l=function(){if(wn("delayEnded",i,{evt:t}),ke.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!bh&&i.nativeDraggable&&(fe.draggable=!0),i._triggerDragStart(t,n),xn({sortable:i,name:"choose",originalEvent:t}),Ut(fe,o.chosenClass,!0)},o.ignore.split(",").forEach(function(c){cg(fe,c.trim(),Su)}),lt(s,"dragover",Ai),lt(s,"mousemove",Ai),lt(s,"touchmove",Ai),lt(s,"mouseup",i._onDrop),lt(s,"touchend",i._onDrop),lt(s,"touchcancel",i._onDrop),bh&&this.nativeDraggable&&(this.options.touchStartThreshold=4,fe.draggable=!0),wn("delayStart",this,{evt:t}),o.delay&&(!o.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(ls||Yr))){if(ke.eventCanceled){this._onDrop();return}lt(s,"mouseup",i._disableDelayedDrag),lt(s,"touchend",i._disableDelayedDrag),lt(s,"touchcancel",i._disableDelayedDrag),lt(s,"mousemove",i._delayedDragTouchMoveHandler),lt(s,"touchmove",i._delayedDragTouchMoveHandler),o.supportPointer&<(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,o.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){fe&&Su(fe),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;rt(t,"mouseup",this._disableDelayedDrag),rt(t,"touchend",this._disableDelayedDrag),rt(t,"touchcancel",this._disableDelayedDrag),rt(t,"mousemove",this._delayedDragTouchMoveHandler),rt(t,"touchmove",this._delayedDragTouchMoveHandler),rt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?lt(document,"pointermove",this._onTouchMove):n?lt(document,"touchmove",this._onTouchMove):lt(document,"mousemove",this._onTouchMove):(lt(fe,"dragend",this),lt(Pt,"dragstart",this._onDragStart));try{document.selection?rl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(_o=!1,Pt&&fe){wn("dragStarted",this,{evt:n}),this.nativeDraggable&<(document,"dragover",_T);var r=this.options;!t&&Ut(fe,r.dragClass,!1),Ut(fe,r.ghostClass,!0),ke.active=this,t&&this._appendGhost(),xn({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(qn){this._lastX=qn.clientX,this._lastY=qn.clientY,mg();for(var t=document.elementFromPoint(qn.clientX,qn.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(qn.clientX,qn.clientY),t!==n);)n=t;if(fe.parentNode[vn]._isOutsideThisEl(t),n)do{if(n[vn]){var r=void 0;if(r=n[vn]._onDragOver({clientX:qn.clientX,clientY:qn.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);gg()}},_onTouchMove:function(t){if(Ri){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,a=t.touches?t.touches[0]:t,o=We&&qi(We,!0),s=We&&o&&o.a,l=We&&o&&o.d,u=Ss&&dn&&Th(dn),c=(a.clientX-Ri.clientX+i.x)/(s||1)+(u?u[0]-Iu[0]:0)/(s||1),f=(a.clientY-Ri.clientY+i.y)/(l||1)+(u?u[1]-Iu[1]:0)/(l||1);if(!ke.active&&!_o){if(r&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))=0&&(xn({rootEl:$t,name:"add",toEl:$t,fromEl:Pt,originalEvent:t}),xn({sortable:this,name:"remove",toEl:$t,originalEvent:t}),xn({rootEl:$t,name:"sort",toEl:$t,fromEl:Pt,originalEvent:t}),xn({sortable:this,name:"sort",toEl:$t,originalEvent:t})),cn&&cn.save()):Pn!==wo&&Pn>=0&&(xn({sortable:this,name:"update",toEl:$t,originalEvent:t}),xn({sortable:this,name:"sort",toEl:$t,originalEvent:t})),ke.active&&((Pn==null||Pn===-1)&&(Pn=wo,oi=Ia),xn({sortable:this,name:"end",toEl:$t,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){wn("nulling",this),Pt=fe=$t=We=Li=jt=tl=si=Ri=qn=ca=Pn=oi=wo=Ia=fo=Sa=cn=Es=ke.dragged=ke.ghost=ke.clone=ke.active=null,Cl.forEach(function(t){t.checked=!0}),Cl.length=Cu=Eu=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":fe&&(this._onDragOver(t),TT(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,i=0,a=r.length,o=this.options;ir.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function IT(e,t,n,r,i,a,o,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!o){if(s&&nlc+u*a/2:lf-nl)return-Sa}else if(l>c+u*(1-i)/2&&lf-u*a/2)?l>c+u/2?1:-1:0}function ST(e){return Ht(fe)1&&(je.forEach(function(s){a.addAnimationState({target:s,rect:Cn?Ft(s):o}),Tu(s),s.fromRect=o,r.removeAnimationState(s)}),Cn=!1,MT(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(n){var r=n.sortable,i=n.isOwner,a=n.insertion,o=n.activeSortable,s=n.parentEl,l=n.putSortable,u=this.options;if(a){if(i&&o._hideClone(),Jo=!1,u.animation&&je.length>1&&(Cn||!i&&!o.options.sort&&!l)){var c=Ft(It,!1,!0,!0);je.forEach(function(d){d!==It&&(wh(d,c),s.appendChild(d))}),Cn=!0}if(!i)if(Cn||As(),je.length>1){var f=Rs;o._showClone(r),o.options.animation&&!Rs&&f&&On.forEach(function(d){o.addAnimationState({target:d,rect:Qo}),d.fromRect=Qo,d.thisAnimationDuration=null})}else o._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,i=n.isOwner,a=n.activeSortable;if(je.forEach(function(s){s.thisAnimationDuration=null}),a.options.animation&&!i&&a.multiDrag.isMultiDrag){Qo=Qn({},r);var o=qi(It,!0);Qo.top-=o.f,Qo.left-=o.e}},dragOverAnimationComplete:function(){Cn&&(Cn=!1,As())},drop:function(n){var r=n.originalEvent,i=n.rootEl,a=n.parentEl,o=n.sortable,s=n.dispatchSortableEvent,l=n.oldIndex,u=n.putSortable,c=u||this.sortable;if(!!r){var f=this.options,d=a.children;if(!ho)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Ut(It,f.selectedClass,!~je.indexOf(It)),~je.indexOf(It))je.splice(je.indexOf(It),1),Zo=null,ua({sortable:o,rootEl:i,name:"deselect",targetEl:It,originalEvt:r});else{if(je.push(It),ua({sortable:o,rootEl:i,name:"select",targetEl:It,originalEvt:r}),r.shiftKey&&Zo&&o.el.contains(Zo)){var h=Ht(Zo),p=Ht(It);if(~h&&~p&&h!==p){var v,g;for(p>h?(g=h,v=p):(g=p,v=h+1);g1){var y=Ft(It),m=Ht(It,":not(."+this.options.selectedClass+")");if(!Jo&&f.animation&&(It.thisAnimationDuration=null),c.captureAnimationState(),!Jo&&(f.animation&&(It.fromRect=y,je.forEach(function(T){if(T.thisAnimationDuration=null,T!==It){var S=Cn?Ft(T):y;T.fromRect=S,c.addAnimationState({target:T,rect:S})}})),As(),je.forEach(function(T){d[m]?a.insertBefore(T,d[m]):a.appendChild(T),m++}),l===Ht(It))){var b=!1;je.forEach(function(T){if(T.sortableIndex!==Ht(T)){b=!0;return}}),b&&s("update")}je.forEach(function(T){Tu(T)}),c.animateAll()}er=c}(i===a||u&&u.lastPutMode!=="clone")&&On.forEach(function(T){T.parentNode&&T.parentNode.removeChild(T)})}},nullingGlobal:function(){this.isMultiDrag=ho=!1,On.length=0},destroyGlobal:function(){this._deselectMultiDrag(),rt(document,"pointerup",this._deselectMultiDrag),rt(document,"mouseup",this._deselectMultiDrag),rt(document,"touchend",this._deselectMultiDrag),rt(document,"keydown",this._checkKeyDown),rt(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof ho!="undefined"&&ho)&&er===this.sortable&&!(n&&or(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;je.length;){var r=je[0];Ut(r,this.options.selectedClass,!1),je.shift(),ua({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Qn(e,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[vn];!r||!r.options.multiDrag||~je.indexOf(n)||(er&&er!==r&&(er.multiDrag._deselectMultiDrag(),er=r),Ut(n,r.options.selectedClass,!0),je.push(n))},deselect:function(n){var r=n.parentNode[vn],i=je.indexOf(n);!r||!r.options.multiDrag||!~i||(Ut(n,r.options.selectedClass,!1),je.splice(i,1))}},eventProperties:function(){var n=this,r=[],i=[];return je.forEach(function(a){r.push({multiDragElement:a,index:a.sortableIndex});var o;Cn&&a!==It?o=-1:Cn?o=Ht(a,":not(."+n.options.selectedClass+")"):o=Ht(a),i.push({multiDragElement:a,index:o})}),{items:rT(je),clones:[].concat(On),oldIndicies:r,newIndicies:i}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function MT(e,t){je.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function Nh(e,t){On.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function As(){je.forEach(function(e){e!==It&&e.parentNode&&e.parentNode.removeChild(e)})}ke.mount(new AT);ke.mount(Hf,jf);var LT=Object.freeze(Object.defineProperty({__proto__:null,default:ke,MultiDrag:FT,Sortable:ke,Swap:OT},Symbol.toStringTag,{value:"Module"})),UT=zm(LT);(function(e,t){(function(r,i){e.exports=i(q_,UT)})(typeof self!="undefined"?self:Js,function(n,r){return function(i){var a={};function o(s){if(a[s])return a[s].exports;var l=a[s]={i:s,l:!1,exports:{}};return i[s].call(l.exports,l,l.exports,o),l.l=!0,l.exports}return o.m=i,o.c=a,o.d=function(s,l,u){o.o(s,l)||Object.defineProperty(s,l,{enumerable:!0,get:u})},o.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},o.t=function(s,l){if(l&1&&(s=o(s)),l&8||l&4&&typeof s=="object"&&s&&s.__esModule)return s;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:s}),l&2&&typeof s!="string")for(var c in s)o.d(u,c,function(f){return s[f]}.bind(null,c));return u},o.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(l,"a",l),l},o.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},o.p="",o(o.s="fb15")}({"00ee":function(i,a,o){var s=o("b622"),l=s("toStringTag"),u={};u[l]="z",i.exports=String(u)==="[object z]"},"0366":function(i,a,o){var s=o("1c0b");i.exports=function(l,u,c){if(s(l),u===void 0)return l;switch(c){case 0:return function(){return l.call(u)};case 1:return function(f){return l.call(u,f)};case 2:return function(f,d){return l.call(u,f,d)};case 3:return function(f,d,h){return l.call(u,f,d,h)}}return function(){return l.apply(u,arguments)}}},"057f":function(i,a,o){var s=o("fc6a"),l=o("241c").f,u={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(d){try{return l(d)}catch{return c.slice()}};i.exports.f=function(h){return c&&u.call(h)=="[object Window]"?f(h):l(s(h))}},"06cf":function(i,a,o){var s=o("83ab"),l=o("d1e7"),u=o("5c6c"),c=o("fc6a"),f=o("c04e"),d=o("5135"),h=o("0cfb"),p=Object.getOwnPropertyDescriptor;a.f=s?p:function(g,y){if(g=c(g),y=f(y,!0),h)try{return p(g,y)}catch{}if(d(g,y))return u(!l.f.call(g,y),g[y])}},"0cfb":function(i,a,o){var s=o("83ab"),l=o("d039"),u=o("cc12");i.exports=!s&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(i,a,o){var s=o("23e7"),l=o("d58f").left,u=o("a640"),c=o("ae40"),f=u("reduce"),d=c("reduce",{1:0});s({target:"Array",proto:!0,forced:!f||!d},{reduce:function(p){return l(this,p,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(i,a,o){var s=o("c6b6"),l=o("9263");i.exports=function(u,c){var f=u.exec;if(typeof f=="function"){var d=f.call(u,c);if(typeof d!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return d}if(s(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,c)}},"159b":function(i,a,o){var s=o("da84"),l=o("fdbc"),u=o("17c2"),c=o("9112");for(var f in l){var d=s[f],h=d&&d.prototype;if(h&&h.forEach!==u)try{c(h,"forEach",u)}catch{h.forEach=u}}},"17c2":function(i,a,o){var s=o("b727").forEach,l=o("a640"),u=o("ae40"),c=l("forEach"),f=u("forEach");i.exports=!c||!f?function(h){return s(this,h,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(i,a,o){var s=o("d066");i.exports=s("document","documentElement")},"1c0b":function(i,a){i.exports=function(o){if(typeof o!="function")throw TypeError(String(o)+" is not a function");return o}},"1c7e":function(i,a,o){var s=o("b622"),l=s("iterator"),u=!1;try{var c=0,f={next:function(){return{done:!!c++}},return:function(){u=!0}};f[l]=function(){return this},Array.from(f,function(){throw 2})}catch{}i.exports=function(d,h){if(!h&&!u)return!1;var p=!1;try{var v={};v[l]=function(){return{next:function(){return{done:p=!0}}}},d(v)}catch{}return p}},"1d80":function(i,a){i.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},"1dde":function(i,a,o){var s=o("d039"),l=o("b622"),u=o("2d00"),c=l("species");i.exports=function(f){return u>=51||!s(function(){var d=[],h=d.constructor={};return h[c]=function(){return{foo:1}},d[f](Boolean).foo!==1})}},"23cb":function(i,a,o){var s=o("a691"),l=Math.max,u=Math.min;i.exports=function(c,f){var d=s(c);return d<0?l(d+f,0):u(d,f)}},"23e7":function(i,a,o){var s=o("da84"),l=o("06cf").f,u=o("9112"),c=o("6eeb"),f=o("ce4e"),d=o("e893"),h=o("94ca");i.exports=function(p,v){var g=p.target,y=p.global,m=p.stat,b,T,S,w,N,I;if(y?T=s:m?T=s[g]||f(g,{}):T=(s[g]||{}).prototype,T)for(S in v){if(N=v[S],p.noTargetGet?(I=l(T,S),w=I&&I.value):w=T[S],b=h(y?S:g+(m?".":"#")+S,p.forced),!b&&w!==void 0){if(typeof N==typeof w)continue;d(N,w)}(p.sham||w&&w.sham)&&u(N,"sham",!0),c(T,S,N,p)}}},"241c":function(i,a,o){var s=o("ca84"),l=o("7839"),u=l.concat("length","prototype");a.f=Object.getOwnPropertyNames||function(f){return s(f,u)}},"25f0":function(i,a,o){var s=o("6eeb"),l=o("825a"),u=o("d039"),c=o("ad6d"),f="toString",d=RegExp.prototype,h=d[f],p=u(function(){return h.call({source:"a",flags:"b"})!="/a/b"}),v=h.name!=f;(p||v)&&s(RegExp.prototype,f,function(){var y=l(this),m=String(y.source),b=y.flags,T=String(b===void 0&&y instanceof RegExp&&!("flags"in d)?c.call(y):b);return"/"+m+"/"+T},{unsafe:!0})},"2ca0":function(i,a,o){var s=o("23e7"),l=o("06cf").f,u=o("50c4"),c=o("5a34"),f=o("1d80"),d=o("ab13"),h=o("c430"),p="".startsWith,v=Math.min,g=d("startsWith"),y=!h&&!g&&!!function(){var m=l(String.prototype,"startsWith");return m&&!m.writable}();s({target:"String",proto:!0,forced:!y&&!g},{startsWith:function(b){var T=String(f(this));c(b);var S=u(v(arguments.length>1?arguments[1]:void 0,T.length)),w=String(b);return p?p.call(T,w,S):T.slice(S,S+w.length)===w}})},"2d00":function(i,a,o){var s=o("da84"),l=o("342f"),u=s.process,c=u&&u.versions,f=c&&c.v8,d,h;f?(d=f.split("."),h=d[0]+d[1]):l&&(d=l.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=l.match(/Chrome\/(\d+)/),d&&(h=d[1]))),i.exports=h&&+h},"342f":function(i,a,o){var s=o("d066");i.exports=s("navigator","userAgent")||""},"35a1":function(i,a,o){var s=o("f5df"),l=o("3f8c"),u=o("b622"),c=u("iterator");i.exports=function(f){if(f!=null)return f[c]||f["@@iterator"]||l[s(f)]}},"37e8":function(i,a,o){var s=o("83ab"),l=o("9bf2"),u=o("825a"),c=o("df75");i.exports=s?Object.defineProperties:function(d,h){u(d);for(var p=c(h),v=p.length,g=0,y;v>g;)l.f(d,y=p[g++],h[y]);return d}},"3bbe":function(i,a,o){var s=o("861d");i.exports=function(l){if(!s(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(i,a,o){var s=o("6547").charAt,l=o("69f3"),u=o("7dd0"),c="String Iterator",f=l.set,d=l.getterFor(c);u(String,"String",function(h){f(this,{type:c,string:String(h),index:0})},function(){var p=d(this),v=p.string,g=p.index,y;return g>=v.length?{value:void 0,done:!0}:(y=s(v,g),p.index+=y.length,{value:y,done:!1})})},"3f8c":function(i,a){i.exports={}},4160:function(i,a,o){var s=o("23e7"),l=o("17c2");s({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(i,a,o){var s=o("da84");i.exports=s},"44ad":function(i,a,o){var s=o("d039"),l=o("c6b6"),u="".split;i.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return l(c)=="String"?u.call(c,""):Object(c)}:Object},"44d2":function(i,a,o){var s=o("b622"),l=o("7c73"),u=o("9bf2"),c=s("unscopables"),f=Array.prototype;f[c]==null&&u.f(f,c,{configurable:!0,value:l(null)}),i.exports=function(d){f[c][d]=!0}},"44e7":function(i,a,o){var s=o("861d"),l=o("c6b6"),u=o("b622"),c=u("match");i.exports=function(f){var d;return s(f)&&((d=f[c])!==void 0?!!d:l(f)=="RegExp")}},4930:function(i,a,o){var s=o("d039");i.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})},"4d64":function(i,a,o){var s=o("fc6a"),l=o("50c4"),u=o("23cb"),c=function(f){return function(d,h,p){var v=s(d),g=l(v.length),y=u(p,g),m;if(f&&h!=h){for(;g>y;)if(m=v[y++],m!=m)return!0}else for(;g>y;y++)if((f||y in v)&&v[y]===h)return f||y||0;return!f&&-1}};i.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(i,a,o){var s=o("23e7"),l=o("b727").filter,u=o("1dde"),c=o("ae40"),f=u("filter"),d=c("filter");s({target:"Array",proto:!0,forced:!f||!d},{filter:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(i,a,o){var s=o("0366"),l=o("7b0b"),u=o("9bdd"),c=o("e95a"),f=o("50c4"),d=o("8418"),h=o("35a1");i.exports=function(v){var g=l(v),y=typeof this=="function"?this:Array,m=arguments.length,b=m>1?arguments[1]:void 0,T=b!==void 0,S=h(g),w=0,N,I,R,U,$,z;if(T&&(b=s(b,m>2?arguments[2]:void 0,2)),S!=null&&!(y==Array&&c(S)))for(U=S.call(g),$=U.next,I=new y;!(R=$.call(U)).done;w++)z=T?u(U,b,[R.value,w],!0):R.value,d(I,w,z);else for(N=f(g.length),I=new y(N);N>w;w++)z=T?b(g[w],w):g[w],d(I,w,z);return I.length=w,I}},"4fad":function(i,a,o){var s=o("23e7"),l=o("6f53").entries;s({target:"Object",stat:!0},{entries:function(c){return l(c)}})},"50c4":function(i,a,o){var s=o("a691"),l=Math.min;i.exports=function(u){return u>0?l(s(u),9007199254740991):0}},5135:function(i,a){var o={}.hasOwnProperty;i.exports=function(s,l){return o.call(s,l)}},5319:function(i,a,o){var s=o("d784"),l=o("825a"),u=o("7b0b"),c=o("50c4"),f=o("a691"),d=o("1d80"),h=o("8aa5"),p=o("14c3"),v=Math.max,g=Math.min,y=Math.floor,m=/\$([$&'`]|\d\d?|<[^>]*>)/g,b=/\$([$&'`]|\d\d?)/g,T=function(S){return S===void 0?S:String(S)};s("replace",2,function(S,w,N,I){var R=I.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,U=I.REPLACE_KEEPS_$0,$=R?"$":"$0";return[function(B,he){var Y=d(this),oe=B==null?void 0:B[S];return oe!==void 0?oe.call(B,Y,he):w.call(String(Y),B,he)},function(j,B){if(!R&&U||typeof B=="string"&&B.indexOf($)===-1){var he=N(w,j,this,B);if(he.done)return he.value}var Y=l(j),oe=String(this),me=typeof B=="function";me||(B=String(B));var Ke=Y.global;if(Ke){var re=Y.unicode;Y.lastIndex=0}for(var de=[];;){var ye=p(Y,oe);if(ye===null||(de.push(ye),!Ke))break;var Se=String(ye[0]);Se===""&&(Y.lastIndex=h(oe,c(Y.lastIndex),re))}for(var k="",X=0,ce=0;ce=X&&(k+=oe.slice(X,Ve)+E,X=Ve+ue.length)}return k+oe.slice(X)}];function z(j,B,he,Y,oe,me){var Ke=he+j.length,re=Y.length,de=b;return oe!==void 0&&(oe=u(oe),de=m),w.call(me,de,function(ye,Se){var k;switch(Se.charAt(0)){case"$":return"$";case"&":return j;case"`":return B.slice(0,he);case"'":return B.slice(Ke);case"<":k=oe[Se.slice(1,-1)];break;default:var X=+Se;if(X===0)return ye;if(X>re){var ce=y(X/10);return ce===0?ye:ce<=re?Y[ce-1]===void 0?Se.charAt(1):Y[ce-1]+Se.charAt(1):ye}k=Y[X-1]}return k===void 0?"":k})}})},5692:function(i,a,o){var s=o("c430"),l=o("c6cd");(i.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(i,a,o){var s=o("d066"),l=o("241c"),u=o("7418"),c=o("825a");i.exports=s("Reflect","ownKeys")||function(d){var h=l.f(c(d)),p=u.f;return p?h.concat(p(d)):h}},"5a34":function(i,a,o){var s=o("44e7");i.exports=function(l){if(s(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(i,a){i.exports=function(o,s){return{enumerable:!(o&1),configurable:!(o&2),writable:!(o&4),value:s}}},"5db7":function(i,a,o){var s=o("23e7"),l=o("a2bf"),u=o("7b0b"),c=o("50c4"),f=o("1c0b"),d=o("65f0");s({target:"Array",proto:!0},{flatMap:function(p){var v=u(this),g=c(v.length),y;return f(p),y=d(v,0),y.length=l(y,v,v,g,0,1,p,arguments.length>1?arguments[1]:void 0),y}})},6547:function(i,a,o){var s=o("a691"),l=o("1d80"),u=function(c){return function(f,d){var h=String(l(f)),p=s(d),v=h.length,g,y;return p<0||p>=v?c?"":void 0:(g=h.charCodeAt(p),g<55296||g>56319||p+1===v||(y=h.charCodeAt(p+1))<56320||y>57343?c?h.charAt(p):g:c?h.slice(p,p+2):(g-55296<<10)+(y-56320)+65536)}};i.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(i,a,o){var s=o("861d"),l=o("e8b5"),u=o("b622"),c=u("species");i.exports=function(f,d){var h;return l(f)&&(h=f.constructor,typeof h=="function"&&(h===Array||l(h.prototype))?h=void 0:s(h)&&(h=h[c],h===null&&(h=void 0))),new(h===void 0?Array:h)(d===0?0:d)}},"69f3":function(i,a,o){var s=o("7f9a"),l=o("da84"),u=o("861d"),c=o("9112"),f=o("5135"),d=o("f772"),h=o("d012"),p=l.WeakMap,v,g,y,m=function(R){return y(R)?g(R):v(R,{})},b=function(R){return function(U){var $;if(!u(U)||($=g(U)).type!==R)throw TypeError("Incompatible receiver, "+R+" required");return $}};if(s){var T=new p,S=T.get,w=T.has,N=T.set;v=function(R,U){return N.call(T,R,U),U},g=function(R){return S.call(T,R)||{}},y=function(R){return w.call(T,R)}}else{var I=d("state");h[I]=!0,v=function(R,U){return c(R,I,U),U},g=function(R){return f(R,I)?R[I]:{}},y=function(R){return f(R,I)}}i.exports={set:v,get:g,has:y,enforce:m,getterFor:b}},"6eeb":function(i,a,o){var s=o("da84"),l=o("9112"),u=o("5135"),c=o("ce4e"),f=o("8925"),d=o("69f3"),h=d.get,p=d.enforce,v=String(String).split("String");(i.exports=function(g,y,m,b){var T=b?!!b.unsafe:!1,S=b?!!b.enumerable:!1,w=b?!!b.noTargetGet:!1;if(typeof m=="function"&&(typeof y=="string"&&!u(m,"name")&&l(m,"name",y),p(m).source=v.join(typeof y=="string"?y:"")),g===s){S?g[y]=m:c(y,m);return}else T?!w&&g[y]&&(S=!0):delete g[y];S?g[y]=m:l(g,y,m)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||f(this)})},"6f53":function(i,a,o){var s=o("83ab"),l=o("df75"),u=o("fc6a"),c=o("d1e7").f,f=function(d){return function(h){for(var p=u(h),v=l(p),g=v.length,y=0,m=[],b;g>y;)b=v[y++],(!s||c.call(p,b))&&m.push(d?[b,p[b]]:p[b]);return m}};i.exports={entries:f(!0),values:f(!1)}},"73d9":function(i,a,o){var s=o("44d2");s("flatMap")},7418:function(i,a){a.f=Object.getOwnPropertySymbols},"746f":function(i,a,o){var s=o("428f"),l=o("5135"),u=o("e538"),c=o("9bf2").f;i.exports=function(f){var d=s.Symbol||(s.Symbol={});l(d,f)||c(d,f,{value:u.f(f)})}},7839:function(i,a){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(i,a,o){var s=o("1d80");i.exports=function(l){return Object(s(l))}},"7c73":function(i,a,o){var s=o("825a"),l=o("37e8"),u=o("7839"),c=o("d012"),f=o("1be4"),d=o("cc12"),h=o("f772"),p=">",v="<",g="prototype",y="script",m=h("IE_PROTO"),b=function(){},T=function(R){return v+y+p+R+v+"/"+y+p},S=function(R){R.write(T("")),R.close();var U=R.parentWindow.Object;return R=null,U},w=function(){var R=d("iframe"),U="java"+y+":",$;return R.style.display="none",f.appendChild(R),R.src=String(U),$=R.contentWindow.document,$.open(),$.write(T("document.F=Object")),$.close(),$.F},N,I=function(){try{N=document.domain&&new ActiveXObject("htmlfile")}catch{}I=N?S(N):w();for(var R=u.length;R--;)delete I[g][u[R]];return I()};c[m]=!0,i.exports=Object.create||function(U,$){var z;return U!==null?(b[g]=s(U),z=new b,b[g]=null,z[m]=U):z=I(),$===void 0?z:l(z,$)}},"7dd0":function(i,a,o){var s=o("23e7"),l=o("9ed3"),u=o("e163"),c=o("d2bb"),f=o("d44e"),d=o("9112"),h=o("6eeb"),p=o("b622"),v=o("c430"),g=o("3f8c"),y=o("ae93"),m=y.IteratorPrototype,b=y.BUGGY_SAFARI_ITERATORS,T=p("iterator"),S="keys",w="values",N="entries",I=function(){return this};i.exports=function(R,U,$,z,j,B,he){l($,U,z);var Y=function(ce){if(ce===j&&de)return de;if(!b&&ce in Ke)return Ke[ce];switch(ce){case S:return function(){return new $(this,ce)};case w:return function(){return new $(this,ce)};case N:return function(){return new $(this,ce)}}return function(){return new $(this)}},oe=U+" Iterator",me=!1,Ke=R.prototype,re=Ke[T]||Ke["@@iterator"]||j&&Ke[j],de=!b&&re||Y(j),ye=U=="Array"&&Ke.entries||re,Se,k,X;if(ye&&(Se=u(ye.call(new R)),m!==Object.prototype&&Se.next&&(!v&&u(Se)!==m&&(c?c(Se,m):typeof Se[T]!="function"&&d(Se,T,I)),f(Se,oe,!0,!0),v&&(g[oe]=I))),j==w&&re&&re.name!==w&&(me=!0,de=function(){return re.call(this)}),(!v||he)&&Ke[T]!==de&&d(Ke,T,de),g[U]=de,j)if(k={values:Y(w),keys:B?de:Y(S),entries:Y(N)},he)for(X in k)(b||me||!(X in Ke))&&h(Ke,X,k[X]);else s({target:U,proto:!0,forced:b||me},k);return k}},"7f9a":function(i,a,o){var s=o("da84"),l=o("8925"),u=s.WeakMap;i.exports=typeof u=="function"&&/native code/.test(l(u))},"825a":function(i,a,o){var s=o("861d");i.exports=function(l){if(!s(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(i,a,o){var s=o("d039");i.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(i,a,o){var s=o("c04e"),l=o("9bf2"),u=o("5c6c");i.exports=function(c,f,d){var h=s(f);h in c?l.f(c,h,u(0,d)):c[h]=d}},"861d":function(i,a){i.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},8875:function(i,a,o){var s,l,u;(function(c,f){l=[],s=f,u=typeof s=="function"?s.apply(a,l):s,u!==void 0&&(i.exports=u)})(typeof self!="undefined"?self:this,function(){function c(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(N){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,p=d.exec(N.stack)||h.exec(N.stack),v=p&&p[1]||!1,g=p&&p[2]||!1,y=document.location.href.replace(document.location.hash,""),m,b,T,S=document.getElementsByTagName("script");v===y&&(m=document.documentElement.outerHTML,b=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]* - + + + + + + + + + + + + + + + + + + + + + +