From b5bc6458452c3f877415c64606517412d726893f Mon Sep 17 00:00:00 2001
From: thepaperpilot <thepaperpilot@gmail.com>
Date: Thu, 14 Jul 2022 05:27:24 +0000
Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20profectu?=
 =?UTF-8?q?s-engine/TMT-Demo@57f27ba7cad8905b77ddf0b161c0bac5d57606ad=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.b4dff018.js                 | 1569 ----------------------
 assets/@vue.861e8bf0.js                  |    4 -
 assets/earcut.89ec12e6.js                |    1 -
 assets/eventemitter3.dc5195d7.js         |    1 -
 assets/index.41d7c359.css                |    1 +
 assets/index.d5d1e0a2.js                 |  593 ++++++++
 assets/index.dd0f3e2c.js                 |   17 -
 assets/index.fa7b40bf.css                |    1 -
 assets/is-plain-object.906d88e8.js       |    6 -
 assets/ismobilejs.5c6954b9.js            |    1 -
 assets/lz-string.f2f3b7cf.js             |    1 -
 assets/nanoevents.1080beb7.js            |    1 -
 assets/object-assign.9840bf7d.js         |    5 -
 assets/pixi.js.540c9a76.js               |    7 -
 assets/promise-polyfill.7a7f9c83.js      |    1 -
 assets/querystring.776b9ab3.js           |    1 -
 assets/sortablejs.dd463b56.js            |    7 -
 assets/url.08d1c71e.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.bc20e238.js                   |    1 -
 assets/vuedraggable.e833ee6e.js          |    4 -
 assets/workbox-window.60401ce8.js        |    2 -
 index.html                               |   27 +-
 sw.js                                    |    2 +-
 29 files changed, 597 insertions(+), 1670 deletions(-)
 delete mode 100644 assets/@ivanv.bf09ddfc.js
 delete mode 100644 assets/@pixi.b4dff018.js
 delete mode 100644 assets/@vue.861e8bf0.js
 delete mode 100644 assets/earcut.89ec12e6.js
 delete mode 100644 assets/eventemitter3.dc5195d7.js
 create mode 100644 assets/index.41d7c359.css
 create mode 100644 assets/index.d5d1e0a2.js
 delete mode 100644 assets/index.dd0f3e2c.js
 delete mode 100644 assets/index.fa7b40bf.css
 delete mode 100644 assets/is-plain-object.906d88e8.js
 delete mode 100644 assets/ismobilejs.5c6954b9.js
 delete mode 100644 assets/lz-string.f2f3b7cf.js
 delete mode 100644 assets/nanoevents.1080beb7.js
 delete mode 100644 assets/object-assign.9840bf7d.js
 delete mode 100644 assets/pixi.js.540c9a76.js
 delete mode 100644 assets/promise-polyfill.7a7f9c83.js
 delete mode 100644 assets/querystring.776b9ab3.js
 delete mode 100644 assets/sortablejs.dd463b56.js
 delete mode 100644 assets/url.08d1c71e.js
 delete mode 100644 assets/vue-next-select.9e6f4164.css
 delete mode 100644 assets/vue-next-select.aa58f779.js
 delete mode 100644 assets/vue-textarea-autosize.35804eaf.js
 delete mode 100644 assets/vue-toastification.17ba848b.js
 delete mode 100644 assets/vue-toastification.4b5f8ac8.css
 delete mode 100644 assets/vue.bc20e238.js
 delete mode 100644 assets/vuedraggable.e833ee6e.js
 delete mode 100644 assets/workbox-window.60401ce8.js

diff --git a/assets/@ivanv.bf09ddfc.js b/assets/@ivanv.bf09ddfc.js
deleted file mode 100644
index 0ee42d4..0000000
--- a/assets/@ivanv.bf09ddfc.js
+++ /dev/null
@@ -1 +0,0 @@
-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<n;s++)e=e.replace(new RegExp(t[s]),"-"+t[s].toLowerCase());return e.slice(0,1)==="-"&&(e=e.slice(1)),e}}};function f(e,t,s,n,a,i){return r(),o(l,{name:s.name,onBeforeAppear:i.beforeAppear,onAppear:i.appear,onAfterAppear:i.afterAppear,onAppearCancelled:i.appearCancelled,onBeforeEnter:i.beforeEnter,onEnter:i.enter,onAfterEnter:i.afterEnter,onEnterCancelled:i.enterCancelled,onBeforeLeave:i.beforeLeave,onLeave:i.leave,onAfterLeave:i.afterLeave,onLeaveCancelled:i.leaveCancelled},{default:d(()=>[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.b4dff018.js b/assets/@pixi.b4dff018.js
deleted file mode 100644
index d4aea91..0000000
--- a/assets/@pixi.b4dff018.js
+++ /dev/null
@@ -1,1569 +0,0 @@
-import{P as Sh}from"./promise-polyfill.7a7f9c83.js";import{o as Lh}from"./object-assign.9840bf7d.js";import{E as we}from"./eventemitter3.dc5195d7.js";import{e as Do}from"./earcut.89ec12e6.js";import{i as Fh}from"./ismobilejs.5c6954b9.js";import{p as Gh,f as Bh,r as Mh}from"./url.08d1c71e.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 It=Fh(globalThis.navigator);function Xh(t){var r=!0;if(It.tablet||It.phone){if(It.apple.device){var e=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(e){var i=parseInt(e[1],10);i<11&&(r=!1)}}if(It.android.device){var e=navigator.userAgent.match(/Android\s([0-9.]*)/);if(e){var i=parseInt(e[1],10);i<7&&(r=!1)}}}return r?t:4}function kh(){return!It.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 $n;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})($n||($n={}));var qn;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(qn||(qn={}));var Kn;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(Kn||(Kn={}));var Zn;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(Zn||(Zn={}));var Jn;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(Jn||(Jn={}));var Qn;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(Qn||(Qn={}));var ta;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(ta||(ta={}));var ea;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(ea||(ea={}));var ra;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(ra||(ra={}));var bi;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(bi||(bi={}));var Ii;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(Ii||(Ii={}));var Ei;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(Ei||(Ei={}));var ia;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(ia||(ia={}));var na;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"})(na||(na={}));var Ri;(function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"})(Ri||(Ri={}));var Me;(function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"})(Me||(Me={}));var aa;(function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"})(aa||(aa={}));var Ci;(function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"})(Ci||(Ci={}));var sa;(function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(sa||(sa={}));var N={MIPMAP_TEXTURES:Ei.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:Ci.NONE,SPRITE_MAX_TEXTURES:Xh(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:Ri.AUTO,GC_MAX_IDLE:60*60,GC_MAX_CHECK_COUNT:60*10,WRAP_MODE:Ii.CLAMP,SCALE_MODE:bi.LINEAR,PRECISION_VERTEX:Me.HIGH,PRECISION_FRAGMENT:It.apple.device?Me.HIGH:Me.MEDIUM,CAN_UPLOAD_SAME_BUFFER:kh(),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 Mt;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})(Mt||(Mt={}));var ke;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(ke||(ke={}));var Pr;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(Pr||(Pr={}));var P;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(P||(P={}));var vt;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(vt||(vt={}));var R;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(R||(R={}));var ae;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(ae||(ae={}));var O;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(O||(O={}));var Nr;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(Nr||(Nr={}));var Lt;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(Lt||(Lt={}));var Ft;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(Ft||(Ft={}));var Xt;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(Xt||(Xt={}));var _t;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(_t||(_t={}));var Vt;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"})(Vt||(Vt={}));var wi;(function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"})(wi||(wi={}));var Et;(function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"})(Et||(Et={}));var st;(function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"})(st||(st={}));var et;(function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"})(et||(et={}));var Ct;(function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(Ct||(Ct={}));/*!
- * @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 Te={parse:Gh,format:Bh,resolve:Mh};N.RETINA_PREFIX=/@([0-9\.]+)x/;N.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var oa=!1,ha="6.4.2";function Hh(t){var r;if(!oa){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var e=[`
- %c %c %c PixiJS `+ha+" - \u2730 "+t+` \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;"];(r=globalThis.console).log.apply(r,e)}else globalThis.console&&globalThis.console.log("PixiJS "+ha+" - "+t+" - http://www.pixijs.com/");oa=!0}}var Hr;function Dh(){return typeof Hr=="undefined"&&(Hr=function(){var r={stencil:!0,failIfMajorPerformanceCaveat:N.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!globalThis.WebGLRenderingContext)return!1;var e=document.createElement("canvas"),i=e.getContext("webgl",r)||e.getContext("experimental-webgl",r),n=!!(i&&i.getContextAttributes().stencil);if(i){var a=i.getExtension("WEBGL_lose_context");a&&a.loseContext()}return i=null,n}catch{return!1}}()),Hr}var Vh="#f0f8ff",jh="#faebd7",zh="#00ffff",Wh="#7fffd4",Yh="#f0ffff",$h="#f5f5dc",qh="#ffe4c4",Kh="#000000",Zh="#ffebcd",Jh="#0000ff",Qh="#8a2be2",tu="#a52a2a",eu="#deb887",ru="#5f9ea0",iu="#7fff00",nu="#d2691e",au="#ff7f50",su="#6495ed",ou="#fff8dc",hu="#dc143c",uu="#00ffff",lu="#00008b",fu="#008b8b",cu="#b8860b",du="#a9a9a9",pu="#006400",vu="#a9a9a9",_u="#bdb76b",mu="#8b008b",yu="#556b2f",gu="#ff8c00",Tu="#9932cc",xu="#8b0000",bu="#e9967a",Iu="#8fbc8f",Eu="#483d8b",Ru="#2f4f4f",Cu="#2f4f4f",wu="#00ced1",Pu="#9400d3",Nu="#ff1493",Au="#00bfff",Uu="#696969",Ou="#696969",Su="#1e90ff",Lu="#b22222",Fu="#fffaf0",Gu="#228b22",Bu="#ff00ff",Mu="#dcdcdc",Xu="#f8f8ff",ku="#daa520",Hu="#ffd700",Du="#808080",Vu="#008000",ju="#adff2f",zu="#808080",Wu="#f0fff0",Yu="#ff69b4",$u="#cd5c5c",qu="#4b0082",Ku="#fffff0",Zu="#f0e68c",Ju="#fff0f5",Qu="#e6e6fa",tl="#7cfc00",el="#fffacd",rl="#add8e6",il="#f08080",nl="#e0ffff",al="#fafad2",sl="#d3d3d3",ol="#90ee90",hl="#d3d3d3",ul="#ffb6c1",ll="#ffa07a",fl="#20b2aa",cl="#87cefa",dl="#778899",pl="#778899",vl="#b0c4de",_l="#ffffe0",ml="#00ff00",yl="#32cd32",gl="#faf0e6",Tl="#ff00ff",xl="#800000",bl="#66cdaa",Il="#0000cd",El="#ba55d3",Rl="#9370db",Cl="#3cb371",wl="#7b68ee",Pl="#00fa9a",Nl="#48d1cc",Al="#c71585",Ul="#191970",Ol="#f5fffa",Sl="#ffe4e1",Ll="#ffe4b5",Fl="#ffdead",Gl="#000080",Bl="#fdf5e6",Ml="#808000",Xl="#6b8e23",kl="#ffa500",Hl="#ff4500",Dl="#da70d6",Vl="#eee8aa",jl="#98fb98",zl="#afeeee",Wl="#db7093",Yl="#ffefd5",$l="#ffdab9",ql="#cd853f",Kl="#ffc0cb",Zl="#dda0dd",Jl="#b0e0e6",Ql="#800080",tf="#663399",ef="#ff0000",rf="#bc8f8f",nf="#4169e1",af="#8b4513",sf="#fa8072",of="#f4a460",hf="#2e8b57",uf="#fff5ee",lf="#a0522d",ff="#c0c0c0",cf="#87ceeb",df="#6a5acd",pf="#708090",vf="#708090",_f="#fffafa",mf="#00ff7f",yf="#4682b4",gf="#d2b48c",Tf="#008080",xf="#d8bfd8",bf="#ff6347",If="#40e0d0",Ef="#ee82ee",Rf="#f5deb3",Cf="#ffffff",wf="#f5f5f5",Pf="#ffff00",Nf="#9acd32",Af={aliceblue:Vh,antiquewhite:jh,aqua:zh,aquamarine:Wh,azure:Yh,beige:$h,bisque:qh,black:Kh,blanchedalmond:Zh,blue:Jh,blueviolet:Qh,brown:tu,burlywood:eu,cadetblue:ru,chartreuse:iu,chocolate:nu,coral:au,cornflowerblue:su,cornsilk:ou,crimson:hu,cyan:uu,darkblue:lu,darkcyan:fu,darkgoldenrod:cu,darkgray:du,darkgreen:pu,darkgrey:vu,darkkhaki:_u,darkmagenta:mu,darkolivegreen:yu,darkorange:gu,darkorchid:Tu,darkred:xu,darksalmon:bu,darkseagreen:Iu,darkslateblue:Eu,darkslategray:Ru,darkslategrey:Cu,darkturquoise:wu,darkviolet:Pu,deeppink:Nu,deepskyblue:Au,dimgray:Uu,dimgrey:Ou,dodgerblue:Su,firebrick:Lu,floralwhite:Fu,forestgreen:Gu,fuchsia:Bu,gainsboro:Mu,ghostwhite:Xu,goldenrod:ku,gold:Hu,gray:Du,green:Vu,greenyellow:ju,grey:zu,honeydew:Wu,hotpink:Yu,indianred:$u,indigo:qu,ivory:Ku,khaki:Zu,lavenderblush:Ju,lavender:Qu,lawngreen:tl,lemonchiffon:el,lightblue:rl,lightcoral:il,lightcyan:nl,lightgoldenrodyellow:al,lightgray:sl,lightgreen:ol,lightgrey:hl,lightpink:ul,lightsalmon:ll,lightseagreen:fl,lightskyblue:cl,lightslategray:dl,lightslategrey:pl,lightsteelblue:vl,lightyellow:_l,lime:ml,limegreen:yl,linen:gl,magenta:Tl,maroon:xl,mediumaquamarine:bl,mediumblue:Il,mediumorchid:El,mediumpurple:Rl,mediumseagreen:Cl,mediumslateblue:wl,mediumspringgreen:Pl,mediumturquoise:Nl,mediumvioletred:Al,midnightblue:Ul,mintcream:Ol,mistyrose:Sl,moccasin:Ll,navajowhite:Fl,navy:Gl,oldlace:Bl,olive:Ml,olivedrab:Xl,orange:kl,orangered:Hl,orchid:Dl,palegoldenrod:Vl,palegreen:jl,paleturquoise:zl,palevioletred:Wl,papayawhip:Yl,peachpuff:$l,peru:ql,pink:Kl,plum:Zl,powderblue:Jl,purple:Ql,rebeccapurple:tf,red:ef,rosybrown:rf,royalblue:nf,saddlebrown:af,salmon:sf,sandybrown:of,seagreen:hf,seashell:uf,sienna:lf,silver:ff,skyblue:cf,slateblue:df,slategray:pf,slategrey:vf,snow:_f,springgreen:mf,steelblue:yf,tan:gf,teal:Tf,thistle:xf,tomato:bf,turquoise:If,violet:Ef,wheat:Rf,white:Cf,whitesmoke:wf,yellow:Pf,yellowgreen:Nf};function Re(t,r){return r===void 0&&(r=[]),r[0]=(t>>16&255)/255,r[1]=(t>>8&255)/255,r[2]=(t&255)/255,r}function Vo(t){var r=t.toString(16);return r="000000".substring(0,6-r.length)+r,"#"+r}function jo(t){return typeof t=="string"&&(t=Af[t.toLowerCase()]||t,t[0]==="#"&&(t=t.slice(1))),parseInt(t,16)}function Uf(){for(var t=[],r=[],e=0;e<32;e++)t[e]=e,r[e]=e;t[P.NORMAL_NPM]=P.NORMAL,t[P.ADD_NPM]=P.ADD,t[P.SCREEN_NPM]=P.SCREEN,r[P.NORMAL]=P.NORMAL_NPM,r[P.ADD]=P.ADD_NPM,r[P.SCREEN]=P.SCREEN_NPM;var i=[];return i.push(r),i.push(t),i}var zo=Uf();function Wo(t,r){return zo[r?1:0][t]}function Of(t,r,e,i){return e=e||new Float32Array(4),i||i===void 0?(e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r):(e[0]=t[0],e[1]=t[1],e[2]=t[2]),e[3]=r,e}function pn(t,r){if(r===1)return(r*255<<24)+t;if(r===0)return 0;var e=t>>16&255,i=t>>8&255,n=t&255;return e=e*r+.5|0,i=i*r+.5|0,n=n*r+.5|0,(r*255<<24)+(e<<16)+(i<<8)+n}function Yo(t,r,e,i){return e=e||new Float32Array(4),e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(t&255)/255,(i||i===void 0)&&(e[0]*=r,e[1]*=r,e[2]*=r),e[3]=r,e}function Sf(t,r){r===void 0&&(r=null);var e=t*6;if(r=r||new Uint16Array(e),r.length!==e)throw new Error("Out buffer length is incorrect, got "+r.length+" and expected "+e);for(var i=0,n=0;i<e;i+=6,n+=4)r[i+0]=n+0,r[i+1]=n+1,r[i+2]=n+2,r[i+3]=n+0,r[i+4]=n+2,r[i+5]=n+3;return r}function $o(t){if(t.BYTES_PER_ELEMENT===4)return t instanceof Float32Array?"Float32Array":t instanceof Uint32Array?"Uint32Array":"Int32Array";if(t.BYTES_PER_ELEMENT===2){if(t instanceof Uint16Array)return"Uint16Array"}else if(t.BYTES_PER_ELEMENT===1&&t instanceof Uint8Array)return"Uint8Array";return null}function Ar(t){return t+=t===0?1:0,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t+1}function ua(t){return!(t&t-1)&&!!t}function la(t){var r=(t>65535?1:0)<<4;t>>>=r;var e=(t>255?1:0)<<3;return t>>>=e,r|=e,e=(t>15?1:0)<<2,t>>>=e,r|=e,e=(t>3?1:0)<<1,t>>>=e,r|=e,r|t>>1}function Gt(t,r,e){var i=t.length,n;if(!(r>=i||e===0)){e=r+e>i?i-r:e;var a=i-e;for(n=r;n<a;++n)t[n]=t[n+e];t.length=a}}function xe(t){return t===0?0:t<0?-1:1}var Lf=0;function oe(){return++Lf}var fa={};function He(t,r,e){if(e===void 0&&(e=3),!fa[r]){var i=new Error().stack;typeof i=="undefined"?console.warn("PixiJS Deprecation Warning: ",r+`
-Deprecated since v`+t):(i=i.split(`
-`).splice(e).join(`
-`),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",r+`
-Deprecated since v`+t),console.warn(i),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",r+`
-Deprecated since v`+t),console.warn(i))),fa[r]=!0}}var ca={},Ot=Object.create(null),Kt=Object.create(null),da=function(){function t(r,e,i){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=i||N.RESOLUTION,this.resize(r,e)}return t.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},t.prototype.resize=function(r,e){this.canvas.width=Math.round(r*this.resolution),this.canvas.height=Math.round(e*this.resolution)},t.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(t.prototype,"width",{get:function(){return this.canvas.width},set:function(r){this.canvas.width=Math.round(r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.canvas.height},set:function(r){this.canvas.height=Math.round(r)},enumerable:!1,configurable:!0}),t}();function Ff(t){var r=t.width,e=t.height,i=t.getContext("2d"),n=i.getImageData(0,0,r,e),a=n.data,s=a.length,o={top:null,left:null,right:null,bottom:null},h=null,u,l,c;for(u=0;u<s;u+=4)a[u+3]!==0&&(l=u/4%r,c=~~(u/4/r),o.top===null&&(o.top=c),(o.left===null||l<o.left)&&(o.left=l),(o.right===null||o.right<l)&&(o.right=l+1),(o.bottom===null||o.bottom<c)&&(o.bottom=c));return o.top!==null&&(r=o.right-o.left,e=o.bottom-o.top+1,h=i.getImageData(o.left,o.top,r,e)),{height:e,width:r,data:h}}var ir;function Gf(t,r){if(r===void 0&&(r=globalThis.location),t.indexOf("data:")===0)return"";r=r||globalThis.location,ir||(ir=document.createElement("a")),ir.href=t;var e=Te.parse(ir.href),i=!e.port&&r.port===""||e.port===r.port;return e.hostname!==r.hostname||!i||e.protocol!==r.protocol?"anonymous":""}function Ur(t,r){var e=N.RETINA_PREFIX.exec(t);return e?parseFloat(e[1]):r!==void 0?r:1}/*!
- * @pixi/runner - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/runner is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- */var ot=function(){function t(r){this.items=[],this._name=r,this._aliasCount=0}return t.prototype.emit=function(r,e,i,n,a,s,o,h){if(arguments.length>8)throw new Error("max arguments reached");var u=this,l=u.name,c=u.items;this._aliasCount++;for(var f=0,d=c.length;f<d;f++)c[f][l](r,e,i,n,a,s,o,h);return c===this.items&&this._aliasCount--,this},t.prototype.ensureNonAliasedItems=function(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},t.prototype.add=function(r){return r[this._name]&&(this.ensureNonAliasedItems(),this.remove(r),this.items.push(r)),this},t.prototype.remove=function(r){var e=this.items.indexOf(r);return e!==-1&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this},t.prototype.contains=function(r){return this.items.indexOf(r)!==-1},t.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},t.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(t.prototype,"empty",{get:function(){return this.items.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),t}();Object.defineProperties(ot.prototype,{dispatch:{value:ot.prototype.emit},run:{value:ot.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
- */N.TARGET_FPMS=.06;var kt;(function(t){t[t.INTERACTION=50]="INTERACTION",t[t.HIGH=25]="HIGH",t[t.NORMAL=0]="NORMAL",t[t.LOW=-25]="LOW",t[t.UTILITY=-50]="UTILITY"})(kt||(kt={}));var Dr=function(){function t(r,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=r,this.context=e,this.priority=i,this.once=n}return t.prototype.match=function(r,e){return e===void 0&&(e=null),this.fn===r&&this.context===e},t.prototype.emit=function(r){this.fn&&(this.context?this.fn.call(this.context,r):this.fn(r));var e=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),e},t.prototype.connect=function(r){this.previous=r,r.next&&(r.next.previous=this),this.next=r.next,r.next=this},t.prototype.destroy=function(r){r===void 0&&(r=!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=r?null:e,this.previous=null,e},t}(),at=function(){function t(){var r=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 Dr(null,null,1/0),this.deltaMS=1/N.TARGET_FPMS,this.elapsedMS=1/N.TARGET_FPMS,this._tick=function(e){r._requestId=null,r.started&&(r.update(e),r.started&&r._requestId===null&&r._head.next&&(r._requestId=requestAnimationFrame(r._tick)))}}return t.prototype._requestIfNeeded=function(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},t.prototype._cancelIfNeeded=function(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)},t.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},t.prototype.add=function(r,e,i){return i===void 0&&(i=kt.NORMAL),this._addListener(new Dr(r,e,i))},t.prototype.addOnce=function(r,e,i){return i===void 0&&(i=kt.NORMAL),this._addListener(new Dr(r,e,i,!0))},t.prototype._addListener=function(r){var e=this._head.next,i=this._head;if(!e)r.connect(i);else{for(;e;){if(r.priority>e.priority){r.connect(i);break}i=e,e=e.next}r.previous||r.connect(i)}return this._startIfPossible(),this},t.prototype.remove=function(r,e){for(var i=this._head.next;i;)i.match(r,e)?i=i.destroy():i=i.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(t.prototype,"count",{get:function(){if(!this._head)return 0;for(var r=0,e=this._head;e=e.next;)r++;return r},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},t.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},t.prototype.destroy=function(){if(!this._protected){this.stop();for(var r=this._head.next;r;)r=r.destroy(!0);this._head.destroy(),this._head=null}},t.prototype.update=function(r){r===void 0&&(r=performance.now());var e;if(r>this.lastTime){if(e=this.elapsedMS=r-this.lastTime,e>this._maxElapsedMS&&(e=this._maxElapsedMS),e*=this.speed,this._minElapsedMS){var i=r-this._lastFrame|0;if(i<this._minElapsedMS)return;this._lastFrame=r-i%this._minElapsedMS}this.deltaMS=e,this.deltaTime=this.deltaMS*N.TARGET_FPMS;for(var n=this._head,a=n.next;a;)a=a.emit(this.deltaTime);n.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=r},Object.defineProperty(t.prototype,"FPS",{get:function(){return 1e3/this.elapsedMS},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minFPS",{get:function(){return 1e3/this._maxElapsedMS},set:function(r){var e=Math.min(this.maxFPS,r),i=Math.min(Math.max(0,e)/1e3,N.TARGET_FPMS);this._maxElapsedMS=1/i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxFPS",{get:function(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0},set:function(r){if(r===0)this._minElapsedMS=0;else{var e=Math.max(this.minFPS,r);this._minElapsedMS=1/(e/1e3)}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"shared",{get:function(){if(!t._shared){var r=t._shared=new t;r.autoStart=!0,r._protected=!0}return t._shared},enumerable:!1,configurable:!0}),Object.defineProperty(t,"system",{get:function(){if(!t._system){var r=t._system=new t;r.autoStart=!0,r._protected=!0}return t._system},enumerable:!1,configurable:!0}),t}(),qv=function(){function t(){}return t.init=function(r){var e=this;r=Object.assign({autoStart:!0,sharedTicker:!1},r),Object.defineProperty(this,"ticker",{set:function(i){this._ticker&&this._ticker.remove(this.render,this),this._ticker=i,i&&i.add(this.render,this,kt.LOW)},get:function(){return this._ticker}}),this.stop=function(){e._ticker.stop()},this.start=function(){e._ticker.start()},this._ticker=null,this.ticker=r.sharedTicker?at.shared:new at,r.autoStart&&this.start()},t.destroy=function(){if(this._ticker){var r=this._ticker;this.ticker=null,r.destroy()}},t}();/*!
- * @pixi/math - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/math is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- */var Or=Math.PI*2,qo=180/Math.PI,Ko=Math.PI/180,Z;(function(t){t[t.POLY=0]="POLY",t[t.RECT=1]="RECT",t[t.CIRC=2]="CIRC",t[t.ELIP=3]="ELIP",t[t.RREC=4]="RREC"})(Z||(Z={}));var D=function(){function t(r,e){r===void 0&&(r=0),e===void 0&&(e=0),this.x=0,this.y=0,this.x=r,this.y=e}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(r){return this.set(r.x,r.y),this},t.prototype.copyTo=function(r){return r.set(this.x,this.y),r},t.prototype.equals=function(r){return r.x===this.x&&r.y===this.y},t.prototype.set=function(r,e){return r===void 0&&(r=0),e===void 0&&(e=r),this.x=r,this.y=e,this},t.prototype.toString=function(){return"[@pixi/math:Point x="+this.x+" y="+this.y+"]"},t}(),nr=[new D,new D,new D,new D],M=function(){function t(r,e,i,n){r===void 0&&(r=0),e===void 0&&(e=0),i===void 0&&(i=0),n===void 0&&(n=0),this.x=Number(r),this.y=Number(e),this.width=Number(i),this.height=Number(n),this.type=Z.RECT}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t,"EMPTY",{get:function(){return new t(0,0,0,0)},enumerable:!1,configurable:!0}),t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copyFrom=function(r){return this.x=r.x,this.y=r.y,this.width=r.width,this.height=r.height,this},t.prototype.copyTo=function(r){return r.x=this.x,r.y=this.y,r.width=this.width,r.height=this.height,r},t.prototype.contains=function(r,e){return this.width<=0||this.height<=0?!1:r>=this.x&&r<this.x+this.width&&e>=this.y&&e<this.y+this.height},t.prototype.intersects=function(r,e){if(!e){var i=this.x<r.x?r.x:this.x,n=this.right>r.right?r.right:this.right;if(n<=i)return!1;var a=this.y<r.y?r.y:this.y,s=this.bottom>r.bottom?r.bottom:this.bottom;return s>a}var o=this.left,h=this.right,u=this.top,l=this.bottom;if(h<=o||l<=u)return!1;var c=nr[0].set(r.left,r.top),f=nr[1].set(r.left,r.bottom),d=nr[2].set(r.right,r.top),p=nr[3].set(r.right,r.bottom);if(d.x<=c.x||f.y<=c.y)return!1;var v=Math.sign(e.a*e.d-e.b*e.c);if(v===0||(e.apply(c,c),e.apply(f,f),e.apply(d,d),e.apply(p,p),Math.max(c.x,f.x,d.x,p.x)<=o||Math.min(c.x,f.x,d.x,p.x)>=h||Math.max(c.y,f.y,d.y,p.y)<=u||Math.min(c.y,f.y,d.y,p.y)>=l))return!1;var _=v*(f.y-c.y),m=v*(c.x-f.x),T=_*o+m*u,x=_*h+m*u,E=_*o+m*l,g=_*h+m*l;if(Math.max(T,x,E,g)<=_*c.x+m*c.y||Math.min(T,x,E,g)>=_*p.x+m*p.y)return!1;var y=v*(c.y-d.y),b=v*(d.x-c.x),C=y*o+b*u,I=y*h+b*u,w=y*o+b*l,S=y*h+b*l;return!(Math.max(C,I,w,S)<=y*c.x+b*c.y||Math.min(C,I,w,S)>=y*p.x+b*p.y)},t.prototype.pad=function(r,e){return r===void 0&&(r=0),e===void 0&&(e=r),this.x-=r,this.y-=e,this.width+=r*2,this.height+=e*2,this},t.prototype.fit=function(r){var e=Math.max(this.x,r.x),i=Math.min(this.x+this.width,r.x+r.width),n=Math.max(this.y,r.y),a=Math.min(this.y+this.height,r.y+r.height);return this.x=e,this.width=Math.max(i-e,0),this.y=n,this.height=Math.max(a-n,0),this},t.prototype.ceil=function(r,e){r===void 0&&(r=1),e===void 0&&(e=.001);var i=Math.ceil((this.x+this.width-e)*r)/r,n=Math.ceil((this.y+this.height-e)*r)/r;return this.x=Math.floor((this.x+e)*r)/r,this.y=Math.floor((this.y+e)*r)/r,this.width=i-this.x,this.height=n-this.y,this},t.prototype.enlarge=function(r){var e=Math.min(this.x,r.x),i=Math.max(this.x+this.width,r.x+r.width),n=Math.min(this.y,r.y),a=Math.max(this.y+this.height,r.y+r.height);return this.x=e,this.width=i-e,this.y=n,this.height=a-n,this},t.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},t}(),Bf=function(){function t(r,e,i){r===void 0&&(r=0),e===void 0&&(e=0),i===void 0&&(i=0),this.x=r,this.y=e,this.radius=i,this.type=Z.CIRC}return t.prototype.clone=function(){return new t(this.x,this.y,this.radius)},t.prototype.contains=function(r,e){if(this.radius<=0)return!1;var i=this.radius*this.radius,n=this.x-r,a=this.y-e;return n*=n,a*=a,n+a<=i},t.prototype.getBounds=function(){return new M(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)},t.prototype.toString=function(){return"[@pixi/math:Circle x="+this.x+" y="+this.y+" radius="+this.radius+"]"},t}(),Mf=function(){function t(r,e,i,n){r===void 0&&(r=0),e===void 0&&(e=0),i===void 0&&(i=0),n===void 0&&(n=0),this.x=r,this.y=e,this.width=i,this.height=n,this.type=Z.ELIP}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.contains=function(r,e){if(this.width<=0||this.height<=0)return!1;var i=(r-this.x)/this.width,n=(e-this.y)/this.height;return i*=i,n*=n,i+n<=1},t.prototype.getBounds=function(){return new M(this.x-this.width,this.y-this.height,this.width,this.height)},t.prototype.toString=function(){return"[@pixi/math:Ellipse x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},t}(),Cr=function(){function t(){for(var r=arguments,e=[],i=0;i<arguments.length;i++)e[i]=r[i];var n=Array.isArray(e[0])?e[0]:e;if(typeof n[0]!="number"){for(var a=[],s=0,o=n.length;s<o;s++)a.push(n[s].x,n[s].y);n=a}this.points=n,this.type=Z.POLY,this.closeStroke=!0}return t.prototype.clone=function(){var r=this.points.slice(),e=new t(r);return e.closeStroke=this.closeStroke,e},t.prototype.contains=function(r,e){for(var i=!1,n=this.points.length/2,a=0,s=n-1;a<n;s=a++){var o=this.points[a*2],h=this.points[a*2+1],u=this.points[s*2],l=this.points[s*2+1],c=h>e!=l>e&&r<(u-o)*((e-h)/(l-h))+o;c&&(i=!i)}return i},t.prototype.toString=function(){return"[@pixi/math:Polygon"+("closeStroke="+this.closeStroke)+("points="+this.points.reduce(function(r,e){return r+", "+e},"")+"]")},t}(),Xf=function(){function t(r,e,i,n,a){r===void 0&&(r=0),e===void 0&&(e=0),i===void 0&&(i=0),n===void 0&&(n=0),a===void 0&&(a=20),this.x=r,this.y=e,this.width=i,this.height=n,this.radius=a,this.type=Z.RREC}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height,this.radius)},t.prototype.contains=function(r,e){if(this.width<=0||this.height<=0)return!1;if(r>=this.x&&r<=this.x+this.width&&e>=this.y&&e<=this.y+this.height){var i=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(e>=this.y+i&&e<=this.y+this.height-i||r>=this.x+i&&r<=this.x+this.width-i)return!0;var n=r-(this.x+i),a=e-(this.y+i),s=i*i;if(n*n+a*a<=s||(n=r-(this.x+this.width-i),n*n+a*a<=s)||(a=e-(this.y+this.height-i),n*n+a*a<=s)||(n=r-(this.x+i),n*n+a*a<=s))return!0}return!1},t.prototype.toString=function(){return"[@pixi/math:RoundedRectangle x="+this.x+" y="+this.y+("width="+this.width+" height="+this.height+" radius="+this.radius+"]")},t}(),be=function(){function t(r,e,i,n){i===void 0&&(i=0),n===void 0&&(n=0),this._x=i,this._y=n,this.cb=r,this.scope=e}return t.prototype.clone=function(r,e){return r===void 0&&(r=this.cb),e===void 0&&(e=this.scope),new t(r,e,this._x,this._y)},t.prototype.set=function(r,e){return r===void 0&&(r=0),e===void 0&&(e=r),(this._x!==r||this._y!==e)&&(this._x=r,this._y=e,this.cb.call(this.scope)),this},t.prototype.copyFrom=function(r){return(this._x!==r.x||this._y!==r.y)&&(this._x=r.x,this._y=r.y,this.cb.call(this.scope)),this},t.prototype.copyTo=function(r){return r.set(this._x,this._y),r},t.prototype.equals=function(r){return r.x===this._x&&r.y===this._y},t.prototype.toString=function(){return"[@pixi/math:ObservablePoint x="+0+" y="+0+" scope="+this.scope+"]"},Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(r){this._x!==r&&(this._x=r,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(r){this._y!==r&&(this._y=r,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),t}(),Q=function(){function t(r,e,i,n,a,s){r===void 0&&(r=1),e===void 0&&(e=0),i===void 0&&(i=0),n===void 0&&(n=1),a===void 0&&(a=0),s===void 0&&(s=0),this.array=null,this.a=r,this.b=e,this.c=i,this.d=n,this.tx=a,this.ty=s}return t.prototype.fromArray=function(r){this.a=r[0],this.b=r[1],this.c=r[3],this.d=r[4],this.tx=r[2],this.ty=r[5]},t.prototype.set=function(r,e,i,n,a,s){return this.a=r,this.b=e,this.c=i,this.d=n,this.tx=a,this.ty=s,this},t.prototype.toArray=function(r,e){this.array||(this.array=new Float32Array(9));var i=e||this.array;return r?(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},t.prototype.apply=function(r,e){e=e||new D;var i=r.x,n=r.y;return e.x=this.a*i+this.c*n+this.tx,e.y=this.b*i+this.d*n+this.ty,e},t.prototype.applyInverse=function(r,e){e=e||new D;var i=1/(this.a*this.d+this.c*-this.b),n=r.x,a=r.y;return e.x=this.d*i*n+-this.c*i*a+(this.ty*this.c-this.tx*this.d)*i,e.y=this.a*i*a+-this.b*i*n+(-this.ty*this.a+this.tx*this.b)*i,e},t.prototype.translate=function(r,e){return this.tx+=r,this.ty+=e,this},t.prototype.scale=function(r,e){return this.a*=r,this.d*=e,this.c*=r,this.b*=e,this.tx*=r,this.ty*=e,this},t.prototype.rotate=function(r){var e=Math.cos(r),i=Math.sin(r),n=this.a,a=this.c,s=this.tx;return this.a=n*e-this.b*i,this.b=n*i+this.b*e,this.c=a*e-this.d*i,this.d=a*i+this.d*e,this.tx=s*e-this.ty*i,this.ty=s*i+this.ty*e,this},t.prototype.append=function(r){var e=this.a,i=this.b,n=this.c,a=this.d;return this.a=r.a*e+r.b*n,this.b=r.a*i+r.b*a,this.c=r.c*e+r.d*n,this.d=r.c*i+r.d*a,this.tx=r.tx*e+r.ty*n+this.tx,this.ty=r.tx*i+r.ty*a+this.ty,this},t.prototype.setTransform=function(r,e,i,n,a,s,o,h,u){return this.a=Math.cos(o+u)*a,this.b=Math.sin(o+u)*a,this.c=-Math.sin(o-h)*s,this.d=Math.cos(o-h)*s,this.tx=r-(i*this.a+n*this.c),this.ty=e-(i*this.b+n*this.d),this},t.prototype.prepend=function(r){var e=this.tx;if(r.a!==1||r.b!==0||r.c!==0||r.d!==1){var i=this.a,n=this.c;this.a=i*r.a+this.b*r.c,this.b=i*r.b+this.b*r.d,this.c=n*r.a+this.d*r.c,this.d=n*r.b+this.d*r.d}return this.tx=e*r.a+this.ty*r.c+r.tx,this.ty=e*r.b+this.ty*r.d+r.ty,this},t.prototype.decompose=function(r){var e=this.a,i=this.b,n=this.c,a=this.d,s=r.pivot,o=-Math.atan2(-n,a),h=Math.atan2(i,e),u=Math.abs(o+h);return u<1e-5||Math.abs(Or-u)<1e-5?(r.rotation=h,r.skew.x=r.skew.y=0):(r.rotation=0,r.skew.x=o,r.skew.y=h),r.scale.x=Math.sqrt(e*e+i*i),r.scale.y=Math.sqrt(n*n+a*a),r.position.x=this.tx+(s.x*e+s.y*n),r.position.y=this.ty+(s.x*i+s.y*a),r},t.prototype.invert=function(){var r=this.a,e=this.b,i=this.c,n=this.d,a=this.tx,s=r*n-e*i;return this.a=n/s,this.b=-e/s,this.c=-i/s,this.d=r/s,this.tx=(i*this.ty-n*a)/s,this.ty=-(r*this.ty-e*a)/s,this},t.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},t.prototype.clone=function(){var r=new t;return r.a=this.a,r.b=this.b,r.c=this.c,r.d=this.d,r.tx=this.tx,r.ty=this.ty,r},t.prototype.copyTo=function(r){return r.a=this.a,r.b=this.b,r.c=this.c,r.d=this.d,r.tx=this.tx,r.ty=this.ty,r},t.prototype.copyFrom=function(r){return this.a=r.a,this.b=r.b,this.c=r.c,this.d=r.d,this.tx=r.tx,this.ty=r.ty,this},t.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(t,"IDENTITY",{get:function(){return new t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"TEMP_MATRIX",{get:function(){return new t},enumerable:!1,configurable:!0}),t}(),ee=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],re=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],ie=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],ne=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],Pi=[],Zo=[],ar=Math.sign;function kf(){for(var t=0;t<16;t++){var r=[];Pi.push(r);for(var e=0;e<16;e++)for(var i=ar(ee[t]*ee[e]+ie[t]*re[e]),n=ar(re[t]*ee[e]+ne[t]*re[e]),a=ar(ee[t]*ie[e]+ie[t]*ne[e]),s=ar(re[t]*ie[e]+ne[t]*ne[e]),o=0;o<16;o++)if(ee[o]===i&&re[o]===n&&ie[o]===a&&ne[o]===s){r.push(o);break}}for(var t=0;t<16;t++){var h=new Q;h.set(ee[t],re[t],ie[t],ne[t],0,0),Zo.push(h)}}kf();var K={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(t){return ee[t]},uY:function(t){return re[t]},vX:function(t){return ie[t]},vY:function(t){return ne[t]},inv:function(t){return t&8?t&15:-t&7},add:function(t,r){return Pi[t][r]},sub:function(t,r){return Pi[t][K.inv(r)]},rotate180:function(t){return t^4},isVertical:function(t){return(t&3)===2},byDirection:function(t,r){return Math.abs(t)*2<=Math.abs(r)?r>=0?K.S:K.N:Math.abs(r)*2<=Math.abs(t)?t>0?K.E:K.W:r>0?t>0?K.SE:K.SW:t>0?K.NE:K.NW},matrixAppendRotationInv:function(t,r,e,i){e===void 0&&(e=0),i===void 0&&(i=0);var n=Zo[K.inv(r)];n.tx=e,n.ty=i,t.append(n)}},vn=function(){function t(){this.worldTransform=new Q,this.localTransform=new Q,this.position=new be(this.onChange,this,0,0),this.scale=new be(this.onChange,this,1,1),this.pivot=new be(this.onChange,this,0,0),this.skew=new be(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 t.prototype.onChange=function(){this._localID++},t.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++},t.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+") ")+"]"},t.prototype.updateLocalTransform=function(){var r=this.localTransform;this._localID!==this._currentLocalID&&(r.a=this._cx*this.scale.x,r.b=this._sx*this.scale.x,r.c=this._cy*this.scale.y,r.d=this._sy*this.scale.y,r.tx=this.position.x-(this.pivot.x*r.a+this.pivot.y*r.c),r.ty=this.position.y-(this.pivot.x*r.b+this.pivot.y*r.d),this._currentLocalID=this._localID,this._parentID=-1)},t.prototype.updateTransform=function(r){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!==r._worldID){var i=r.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=r._worldID,this._worldID++}},t.prototype.setFromMatrix=function(r){r.decompose(this),this._localID++},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(r){this._rotation!==r&&(this._rotation=r,this.updateSkew())},enumerable:!1,configurable:!0}),t.IDENTITY=new t,t}();/*!
- * @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
- */N.PREFER_ENV=It.any?Mt.WEBGL:Mt.WEBGL2;N.STRICT_TEXTURE_CACHE=!1;var Ni=[];function Jo(t,r){if(!t)return null;var e="";if(typeof t=="string"){var i=/\.(\w{3,4})(?:$|\?|#)/i.exec(t);i&&(e=i[1].toLowerCase())}for(var n=Ni.length-1;n>=0;--n){var a=Ni[n];if(a.test&&a.test(t,e))return new a(t,r)}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 Ai=function(t,r){return Ai=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])},Ai(t,r)};function $(t,r){Ai(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var Ui=function(){return Ui=Object.assign||function(r){for(var e=arguments,i,n=1,a=arguments.length;n<a;n++){i=e[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])}return r},Ui.apply(this,arguments)};function Hf(t,r){var e={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&r.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(t);n<i.length;n++)r.indexOf(i[n])<0&&(e[i[n]]=t[i[n]]);return e}var De=function(){function t(r,e){r===void 0&&(r=0),e===void 0&&(e=0),this._width=r,this._height=e,this.destroyed=!1,this.internal=!1,this.onResize=new ot("setRealSize"),this.onUpdate=new ot("update"),this.onError=new ot("onError")}return t.prototype.bind=function(r){this.onResize.add(r),this.onUpdate.add(r),this.onError.add(r),(this._width||this._height)&&this.onResize.emit(this._width,this._height)},t.prototype.unbind=function(r){this.onResize.remove(r),this.onUpdate.remove(r),this.onError.remove(r)},t.prototype.resize=function(r,e){(r!==this._width||e!==this._height)&&(this._width=r,this._height=e,this.onResize.emit(r,e))},Object.defineProperty(t.prototype,"valid",{get:function(){return!!this._width&&!!this._height},enumerable:!1,configurable:!0}),t.prototype.update=function(){this.destroyed||this.onUpdate.emit()},t.prototype.load=function(){return Promise.resolve(this)},Object.defineProperty(t.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),t.prototype.style=function(r,e,i){return!1},t.prototype.dispose=function(){},t.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)},t.test=function(r,e){return!1},t}(),Je=function(t){$(r,t);function r(e,i){var n=this,a=i||{},s=a.width,o=a.height;if(!s||!o)throw new Error("BufferResource width or height invalid");return n=t.call(this,s,o)||this,n.data=e,n}return r.prototype.upload=function(e,i,n){var a=e.gl;a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.alphaMode===_t.UNPACK);var s=i.realWidth,o=i.realHeight;return n.width===s&&n.height===o?a.texSubImage2D(i.target,0,0,0,s,o,i.format,n.type,this.data):(n.width=s,n.height=o,a.texImage2D(i.target,0,n.internalFormat,s,o,0,i.format,n.type,this.data)),!0},r.prototype.dispose=function(){this.data=null},r.test=function(e){return e instanceof Float32Array||e instanceof Uint8Array||e instanceof Uint32Array},r}(De),Df={scaleMode:Lt.NEAREST,format:R.RGBA,alphaMode:_t.NPM},H=function(t){$(r,t);function r(e,i){e===void 0&&(e=null),i===void 0&&(i=null);var n=t.call(this)||this;i=i||{};var a=i.alphaMode,s=i.mipmap,o=i.anisotropicLevel,h=i.scaleMode,u=i.width,l=i.height,c=i.wrapMode,f=i.format,d=i.type,p=i.target,v=i.resolution,_=i.resourceOptions;return e&&!(e instanceof De)&&(e=Jo(e,_),e.internal=!0),n.resolution=v||N.RESOLUTION,n.width=Math.round((u||0)*n.resolution)/n.resolution,n.height=Math.round((l||0)*n.resolution)/n.resolution,n._mipmap=s!==void 0?s:N.MIPMAP_TEXTURES,n.anisotropicLevel=o!==void 0?o:N.ANISOTROPIC_LEVEL,n._wrapMode=c||N.WRAP_MODE,n._scaleMode=h!==void 0?h:N.SCALE_MODE,n.format=f||R.RGBA,n.type=d||O.UNSIGNED_BYTE,n.target=p||ae.TEXTURE_2D,n.alphaMode=a!==void 0?a:_t.UNPACK,n.uid=oe(),n.touched=0,n.isPowerOfTwo=!1,n._refreshPOT(),n._glTextures={},n.dirtyId=0,n.dirtyStyleId=0,n.cacheId=null,n.valid=u>0&&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(r.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"mipmap",{get:function(){return this._mipmap},set:function(e){this._mipmap!==e&&(this._mipmap=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(e){this._scaleMode!==e&&(this._scaleMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(e){this._wrapMode!==e&&(this._wrapMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),r.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},r.prototype.setSize=function(e,i,n){return n=n||this.resolution,this.setRealSize(e*n,i*n,n)},r.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},r.prototype._refreshPOT=function(){this.isPowerOfTwo=ua(this.realWidth)&&ua(this.realHeight)},r.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)},r.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},r.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))},r.prototype.onError=function(e){this.emit("error",this,e)},r.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete Kt[this.cacheId],delete Ot[this.cacheId],this.cacheId=null),this.dispose(),r.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},r.prototype.dispose=function(){this.emit("dispose",this)},r.prototype.castToBaseTexture=function(){return this},r.from=function(e,i,n){n===void 0&&(n=N.STRICT_TEXTURE_CACHE);var a=typeof e=="string",s=null;if(a)s=e;else{if(!e._pixiId){var o=i&&i.pixiIdPrefix||"pixiid";e._pixiId=o+"_"+oe()}s=e._pixiId}var h=Kt[s];if(a&&n&&!h)throw new Error('The cacheId "'+s+'" does not exist in BaseTextureCache.');return h||(h=new r(e,i),h.cacheId=s,r.addToCache(h,s)),h},r.fromBuffer=function(e,i,n,a){e=e||new Float32Array(i*n*4);var s=new Je(e,{width:i,height:n}),o=e instanceof Float32Array?O.FLOAT:O.UNSIGNED_BYTE;return new r(s,Object.assign(Df,a||{width:i,height:n,type:o}))},r.addToCache=function(e,i){i&&(e.textureCacheIds.indexOf(i)===-1&&e.textureCacheIds.push(i),Kt[i]&&console.warn("BaseTexture added to the cache with an id ["+i+"] that already had an entry"),Kt[i]=e)},r.removeFromCache=function(e){if(typeof e=="string"){var i=Kt[e];if(i){var n=i.textureCacheIds.indexOf(e);return n>-1&&i.textureCacheIds.splice(n,1),delete Kt[e],i}}else if(e&&e.textureCacheIds){for(var a=0;a<e.textureCacheIds.length;++a)delete Kt[e.textureCacheIds[a]];return e.textureCacheIds.length=0,e}return null},r._globalBatch=0,r}(we),Qo=function(t){$(r,t);function r(e,i){var n=this,a=i||{},s=a.width,o=a.height;n=t.call(this,s,o)||this,n.items=[],n.itemDirtyIds=[];for(var h=0;h<e;h++){var u=new H;n.items.push(u),n.itemDirtyIds.push(-2)}return n.length=e,n._load=null,n.baseTexture=null,n}return r.prototype.initFromArray=function(e,i){for(var n=0;n<this.length;n++)!e[n]||(e[n].castToBaseTexture?this.addBaseTextureAt(e[n].castToBaseTexture(),n):e[n]instanceof De?this.addResourceAt(e[n],n):this.addResourceAt(Jo(e[n],i),n))},r.prototype.dispose=function(){for(var e=0,i=this.length;e<i;e++)this.items[e].destroy();this.items=null,this.itemDirtyIds=null,this._load=null},r.prototype.addResourceAt=function(e,i){if(!this.items[i])throw new Error("Index "+i+" is out of bounds");return e.valid&&!this.valid&&this.resize(e.width,e.height),this.items[i].setResource(e),this},r.prototype.bind=function(e){if(this.baseTexture!==null)throw new Error("Only one base texture per TextureArray is allowed");t.prototype.bind.call(this,e);for(var i=0;i<this.length;i++)this.items[i].parentTextureArray=e,this.items[i].on("update",e.update,e)},r.prototype.unbind=function(e){t.prototype.unbind.call(this,e);for(var i=0;i<this.length;i++)this.items[i].parentTextureArray=null,this.items[i].off("update",e.update,e)},r.prototype.load=function(){var e=this;if(this._load)return this._load;var i=this.items.map(function(a){return a.resource}).filter(function(a){return a}),n=i.map(function(a){return a.load()});return this._load=Promise.all(n).then(function(){var a=e.items[0],s=a.realWidth,o=a.realHeight;return e.resize(s,o),Promise.resolve(e)}),this._load},r}(De),Vf=function(t){$(r,t);function r(e,i){var n=this,a=i||{},s=a.width,o=a.height,h,u;return Array.isArray(e)?(h=e,u=e.length):u=e,n=t.call(this,u,{width:s,height:o})||this,h&&n.initFromArray(h,i),n}return r.prototype.addBaseTextureAt=function(e,i){if(e.resource)this.addResourceAt(e.resource,i);else throw new Error("ArrayResource does not support RenderTexture");return this},r.prototype.bind=function(e){t.prototype.bind.call(this,e),e.target=ae.TEXTURE_2D_ARRAY},r.prototype.upload=function(e,i,n){var a=this,s=a.length,o=a.itemDirtyIds,h=a.items,u=e.gl;n.dirtyId<0&&u.texImage3D(u.TEXTURE_2D_ARRAY,0,n.internalFormat,this._width,this._height,s,0,i.format,n.type,null);for(var l=0;l<s;l++){var c=h[l];o[l]<c.dirtyId&&(o[l]=c.dirtyId,c.valid&&u.texSubImage3D(u.TEXTURE_2D_ARRAY,0,0,0,l,c.resource.width,c.resource.height,1,i.format,n.type,c.resource.source))}return!0},r}(Qo),Yt=function(t){$(r,t);function r(e){var i=this,n=e,a=n.naturalWidth||n.videoWidth||n.width,s=n.naturalHeight||n.videoHeight||n.height;return i=t.call(this,a,s)||this,i.source=e,i.noSubImage=!1,i}return r.crossOrigin=function(e,i,n){n===void 0&&i.indexOf("data:")!==0?e.crossOrigin=Gf(i):n!==!1&&(e.crossOrigin=typeof n=="string"?n:"anonymous")},r.prototype.upload=function(e,i,n,a){var s=e.gl,o=i.realWidth,h=i.realHeight;if(a=a||this.source,a instanceof HTMLImageElement){if(!a.complete||a.naturalWidth===0)return!1}else if(a instanceof HTMLVideoElement&&a.readyState<=1)return!1;return s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.alphaMode===_t.UNPACK),!this.noSubImage&&i.target===s.TEXTURE_2D&&n.width===o&&n.height===h?s.texSubImage2D(s.TEXTURE_2D,0,0,0,i.format,n.type,a):(n.width=o,n.height=h,s.texImage2D(i.target,0,n.internalFormat,i.format,n.type,a)),!0},r.prototype.update=function(){if(!this.destroyed){var e=this.source,i=e.naturalWidth||e.videoWidth||e.width,n=e.naturalHeight||e.videoHeight||e.height;this.resize(i,n),t.prototype.update.call(this)}},r.prototype.dispose=function(){this.source=null},r}(De),th=function(t){$(r,t);function r(e){return t.call(this,e)||this}return r.test=function(e){var i=globalThis.OffscreenCanvas;return i&&e instanceof i?!0:globalThis.HTMLCanvasElement&&e instanceof HTMLCanvasElement},r}(Yt),jf=function(t){$(r,t);function r(e,i){var n=this,a=i||{},s=a.width,o=a.height,h=a.autoLoad,u=a.linkBaseTexture;if(e&&e.length!==r.SIDES)throw new Error("Invalid length. Got "+e.length+", expected 6");n=t.call(this,6,{width:s,height:o})||this;for(var l=0;l<r.SIDES;l++)n.items[l].target=ae.TEXTURE_CUBE_MAP_POSITIVE_X+l;return n.linkBaseTexture=u!==!1,e&&n.initFromArray(e,i),h!==!1&&n.load(),n}return r.prototype.bind=function(e){t.prototype.bind.call(this,e),e.target=ae.TEXTURE_CUBE_MAP},r.prototype.addBaseTextureAt=function(e,i,n){if(!this.items[i])throw new Error("Index "+i+" is out of bounds");if(!this.linkBaseTexture||e.parentTextureArray||Object.keys(e._glTextures).length>0)if(e.resource)this.addResourceAt(e.resource,i);else throw new Error("CubeResource does not support copying of renderTexture.");else e.target=ae.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},r.prototype.upload=function(e,i,n){for(var a=this.itemDirtyIds,s=0;s<r.SIDES;s++){var o=this.items[s];a[s]<o.dirtyId&&(o.valid&&o.resource?(o.resource.upload(e,o,n),a[s]=o.dirtyId):a[s]<-1&&(e.gl.texImage2D(o.target,0,n.internalFormat,i.realWidth,i.realHeight,0,i.format,n.type,null),a[s]=-1))}return!0},r.test=function(e){return Array.isArray(e)&&e.length===r.SIDES},r.SIDES=6,r}(Qo),eh=function(t){$(r,t);function r(e,i){var n=this;if(i=i||{},!(e instanceof HTMLImageElement)){var a=new Image;Yt.crossOrigin(a,e,i.crossorigin),a.src=e,e=a}return n=t.call(this,e)||this,!e.complete&&!!n._width&&!!n._height&&(n._width=0,n._height=0),n.url=e.src,n._process=null,n.preserveBitmap=!1,n.createBitmap=(i.createBitmap!==void 0?i.createBitmap:N.CREATE_IMAGE_BITMAP)&&!!globalThis.createImageBitmap,n.alphaMode=typeof i.alphaMode=="number"?i.alphaMode:null,n.bitmap=null,n._load=null,i.autoLoad!==!1&&n.load(),n}return r.prototype.load=function(e){var i=this;return this._load?this._load:(e!==void 0&&(this.createBitmap=e),this._load=new Promise(function(n,a){var s=i.source;i.url=s.src;var o=function(){i.destroyed||(s.onload=null,s.onerror=null,i.resize(s.width,s.height),i._load=null,i.createBitmap?n(i.process()):n(i))};s.complete&&s.src?o():(s.onload=o,s.onerror=function(h){a(h),i.onError.emit(h)})}),this._load)},r.prototype.process=function(){var e=this,i=this.source;if(this._process!==null)return this._process;if(this.bitmap!==null||!globalThis.createImageBitmap)return Promise.resolve(this);var n=globalThis.createImageBitmap,a=!i.crossOrigin||i.crossOrigin==="anonymous";return this._process=fetch(i.src,{mode:a?"cors":"no-cors"}).then(function(s){return s.blob()}).then(function(s){return n(s,0,0,i.width,i.height,{premultiplyAlpha:e.alphaMode===_t.UNPACK?"premultiply":"none"})}).then(function(s){return e.destroyed?Promise.reject():(e.bitmap=s,e.update(),e._process=null,Promise.resolve(e))}),this._process},r.prototype.upload=function(e,i,n){if(typeof this.alphaMode=="number"&&(i.alphaMode=this.alphaMode),!this.createBitmap)return t.prototype.upload.call(this,e,i,n);if(!this.bitmap&&(this.process(),!this.bitmap))return!1;if(t.prototype.upload.call(this,e,i,n,this.bitmap),!this.preserveBitmap){var a=!0,s=i._glTextures;for(var o in s){var h=s[o];if(h!==n&&h.dirtyId!==i.dirtyId){a=!1;break}}a&&(this.bitmap.close&&this.bitmap.close(),this.bitmap=null)}return!0},r.prototype.dispose=function(){this.source.onload=null,this.source.onerror=null,t.prototype.dispose.call(this),this.bitmap&&(this.bitmap.close(),this.bitmap=null),this._process=null,this._load=null},r.test=function(e){return typeof e=="string"||e instanceof HTMLImageElement},r}(Yt),zf=function(t){$(r,t);function r(e,i){var n=this;return i=i||{},n=t.call(this,document.createElement("canvas"))||this,n._width=0,n._height=0,n.svg=e,n.scale=i.scale||1,n._overrideWidth=i.width,n._overrideHeight=i.height,n._resolve=null,n._crossorigin=i.crossorigin,n._load=null,i.autoLoad!==!1&&n.load(),n}return r.prototype.load=function(){var e=this;return this._load?this._load:(this._load=new Promise(function(i){if(e._resolve=function(){e.resize(e.source.width,e.source.height),i(e)},r.SVG_XML.test(e.svg.trim())){if(!btoa)throw new Error("Your browser doesn't support base64 conversions.");e.svg="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e.svg)))}e._loadSvg()}),this._load)},r.prototype._loadSvg=function(){var e=this,i=new Image;Yt.crossOrigin(i,this.svg,this._crossorigin),i.src=this.svg,i.onerror=function(n){!e._resolve||(i.onerror=null,e.onError.emit(n))},i.onload=function(){if(!!e._resolve){var n=i.width,a=i.height;if(!n||!a)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");var s=n*e.scale,o=a*e.scale;(e._overrideWidth||e._overrideHeight)&&(s=e._overrideWidth||e._overrideHeight/a*n,o=e._overrideHeight||e._overrideWidth/n*a),s=Math.round(s),o=Math.round(o);var h=e.source;h.width=s,h.height=o,h._pixiId="canvas_"+oe(),h.getContext("2d").drawImage(i,0,0,n,a,0,0,s,o),e._resolve(),e._resolve=null}}},r.getSize=function(e){var i=r.SVG_SIZE.exec(e),n={};return i&&(n[i[1]]=Math.round(parseFloat(i[3])),n[i[5]]=Math.round(parseFloat(i[7]))),n},r.prototype.dispose=function(){t.prototype.dispose.call(this),this._resolve=null,this._crossorigin=null},r.test=function(e,i){return i==="svg"||typeof e=="string"&&/^data:image\/svg\+xml(;(charset=utf8|utf8))?;base64/.test(e)||typeof e=="string"&&r.SVG_XML.test(e)},r.SVG_XML=/^(<\?xml[^?]+\?>)?\s*(<!--[^(-->)]*-->)?\s*\<svg/m,r.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,r}(Yt),Wf=function(t){$(r,t);function r(e,i){var n=this;if(i=i||{},!(e instanceof HTMLVideoElement)){var a=document.createElement("video");a.setAttribute("preload","auto"),a.setAttribute("webkit-playsinline",""),a.setAttribute("playsinline",""),typeof e=="string"&&(e=[e]);var s=e[0].src||e[0];Yt.crossOrigin(a,s,i.crossorigin);for(var o=0;o<e.length;++o){var h=document.createElement("source"),u=e[o],l=u.src,c=u.mime;l=l||e[o];var f=l.split("?").shift().toLowerCase(),d=f.slice(f.lastIndexOf(".")+1);c=c||r.MIME_TYPES[d]||"video/"+d,h.src=l,h.type=c,a.appendChild(h)}e=a}return n=t.call(this,e)||this,n.noSubImage=!0,n._autoUpdate=!0,n._isConnectedToTicker=!1,n._updateFPS=i.updateFPS||0,n._msToNextUpdate=0,n.autoPlay=i.autoPlay!==!1,n._load=null,n._resolve=null,n._onCanPlay=n._onCanPlay.bind(n),n._onError=n._onError.bind(n),i.autoLoad!==!1&&n.load(),n}return r.prototype.update=function(e){if(!this.destroyed){var i=at.shared.elapsedMS*this.source.playbackRate;this._msToNextUpdate=Math.floor(this._msToNextUpdate-i),(!this._updateFPS||this._msToNextUpdate<=0)&&(t.prototype.update.call(this),this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0)}},r.prototype.load=function(){var e=this;if(this._load)return this._load;var i=this.source;return(i.readyState===i.HAVE_ENOUGH_DATA||i.readyState===i.HAVE_FUTURE_DATA)&&i.width&&i.height&&(i.complete=!0),i.addEventListener("play",this._onPlayStart.bind(this)),i.addEventListener("pause",this._onPlayStop.bind(this)),this._isSourceReady()?this._onCanPlay():(i.addEventListener("canplay",this._onCanPlay),i.addEventListener("canplaythrough",this._onCanPlay),i.addEventListener("error",this._onError,!0)),this._load=new Promise(function(n){e.valid?n(e):(e._resolve=n,i.load())}),this._load},r.prototype._onError=function(e){this.source.removeEventListener("error",this._onError,!0),this.onError.emit(e)},r.prototype._isSourcePlaying=function(){var e=this.source;return e.currentTime>0&&e.paused===!1&&e.ended===!1&&e.readyState>2},r.prototype._isSourceReady=function(){var e=this.source;return e.readyState===3||e.readyState===4},r.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(at.shared.add(this.update,this),this._isConnectedToTicker=!0)},r.prototype._onPlayStop=function(){this._isConnectedToTicker&&(at.shared.remove(this.update,this),this._isConnectedToTicker=!1)},r.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()},r.prototype.dispose=function(){this._isConnectedToTicker&&(at.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()),t.prototype.dispose.call(this)},Object.defineProperty(r.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(at.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(at.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(e){e!==this._updateFPS&&(this._updateFPS=e)},enumerable:!1,configurable:!0}),r.test=function(e,i){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||r.TYPES.indexOf(i)>-1},r.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],r.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},r}(Yt),Yf=function(t){$(r,t);function r(e){return t.call(this,e)||this}return r.test=function(e){return!!globalThis.createImageBitmap&&e instanceof ImageBitmap},r}(Yt);Ni.push(eh,Yf,th,Wf,zf,Je,jf,Vf);var $f=function(t){$(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.upload=function(e,i,n){var a=e.gl;a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.alphaMode===_t.UNPACK);var s=i.realWidth,o=i.realHeight;return n.width===s&&n.height===o?a.texSubImage2D(i.target,0,0,0,s,o,i.format,n.type,this.data):(n.width=s,n.height=o,a.texImage2D(i.target,0,n.internalFormat,s,o,0,i.format,n.type,this.data)),!0},r}(Je),Oi=function(){function t(r,e){this.width=Math.round(r||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 ot("disposeFramebuffer"),this.multisample=et.NONE}return Object.defineProperty(t.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),t.prototype.addColorTexture=function(r,e){return r===void 0&&(r=0),this.colorTextures[r]=e||new H(null,{scaleMode:Lt.NEAREST,resolution:1,mipmap:Xt.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},t.prototype.addDepthTexture=function(r){return this.depthTexture=r||new H(new $f(null,{width:this.width,height:this.height}),{scaleMode:Lt.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:Xt.OFF,format:R.DEPTH_COMPONENT,type:O.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},t.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},t.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},t.prototype.resize=function(r,e){if(r=Math.round(r),e=Math.round(e),!(r===this.width&&e===this.height)){this.width=r,this.height=e,this.dirtyId++,this.dirtySize++;for(var i=0;i<this.colorTextures.length;i++){var n=this.colorTextures[i],a=n.resolution;n.setSize(r/a,e/a)}if(this.depthTexture){var a=this.depthTexture.resolution;this.depthTexture.setSize(r/a,e/a)}}},t.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},t.prototype.destroyDepthTexture=function(){this.depthTexture&&(this.depthTexture.destroy(),this.depthTexture=null,++this.dirtyId,++this.dirtyFormat)},t}(),rh=function(t){$(r,t);function r(e){e===void 0&&(e={});var i=this;if(typeof e=="number"){var n=arguments[0],a=arguments[1],s=arguments[2],o=arguments[3];e={width:n,height:a,scaleMode:s,resolution:o}}return e.width=e.width||100,e.height=e.height||100,e.multisample=e.multisample!==void 0?e.multisample:et.NONE,i=t.call(this,null,e)||this,i.mipmap=Xt.OFF,i.valid=!0,i.clearColor=[0,0,0,0],i.framebuffer=new Oi(i.realWidth,i.realHeight).addColorTexture(0,i),i.framebuffer.multisample=e.multisample,i.maskStack=[],i.filterStack=[{}],i}return r.prototype.resize=function(e,i){this.framebuffer.resize(e*this.resolution,i*this.resolution),this.setRealSize(this.framebuffer.width,this.framebuffer.height)},r.prototype.dispose=function(){this.framebuffer.dispose(),t.prototype.dispose.call(this)},r.prototype.destroy=function(){t.prototype.destroy.call(this),this.framebuffer.destroyDepthTexture(),this.framebuffer=null},r}(H),ih=function(){function t(){this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsFloat32=new Float32Array(8)}return t.prototype.set=function(r,e,i){var n=e.width,a=e.height;if(i){var s=r.width/2/n,o=r.height/2/a,h=r.x/n+s,u=r.y/a+o;i=K.add(i,K.NW),this.x0=h+s*K.uX(i),this.y0=u+o*K.uY(i),i=K.add(i,2),this.x1=h+s*K.uX(i),this.y1=u+o*K.uY(i),i=K.add(i,2),this.x2=h+s*K.uX(i),this.y2=u+o*K.uY(i),i=K.add(i,2),this.x3=h+s*K.uX(i),this.y3=u+o*K.uY(i)}else this.x0=r.x/n,this.y0=r.y/a,this.x1=(r.x+r.width)/n,this.y1=r.y/a,this.x2=(r.x+r.width)/n,this.y2=(r.y+r.height)/a,this.x3=r.x/n,this.y3=(r.y+r.height)/a;this.uvsFloat32[0]=this.x0,this.uvsFloat32[1]=this.y0,this.uvsFloat32[2]=this.x1,this.uvsFloat32[3]=this.y1,this.uvsFloat32[4]=this.x2,this.uvsFloat32[5]=this.y2,this.uvsFloat32[6]=this.x3,this.uvsFloat32[7]=this.y3},t.prototype.toString=function(){return"[@pixi/core:TextureUvs "+("x0="+this.x0+" y0="+this.y0+" ")+("x1="+this.x1+" y1="+this.y1+" x2="+this.x2+" ")+("y2="+this.y2+" x3="+this.x3+" y3="+this.y3)+"]"},t}(),pa=new ih;function sr(t){t.destroy=function(){},t.on=function(){},t.once=function(){},t.emit=function(){}}var F=function(t){$(r,t);function r(e,i,n,a,s,o){var h=t.call(this)||this;if(h.noFrame=!1,i||(h.noFrame=!0,i=new M(0,0,1,1)),e instanceof r&&(e=e.baseTexture),h.baseTexture=e,h._frame=i,h.trim=a,h.valid=!1,h._uvs=pa,h.uvMatrix=null,h.orig=n||i,h._rotate=Number(s||0),s===!0)h._rotate=2;else if(h._rotate%2!==0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");return h.defaultAnchor=o?new D(o.x,o.y):new D(0,0),h._updateID=0,h.textureCacheIds=[],e.valid?h.noFrame?e.valid&&h.onBaseTextureUpdated(e):h.frame=i:e.once("loaded",h.onBaseTextureUpdated,h),h.noFrame&&e.on("update",h.onBaseTextureUpdated,h),h}return r.prototype.update=function(){this.baseTexture.resource&&this.baseTexture.resource.update()},r.prototype.onBaseTextureUpdated=function(e){if(this.noFrame){if(!this.baseTexture.valid)return;this._frame.width=e.width,this._frame.height=e.height,this.valid=!0,this.updateUvs()}else this.frame=this._frame;this.emit("update",this)},r.prototype.destroy=function(e){if(this.baseTexture){if(e){var i=this.baseTexture.resource;i&&i.url&&Ot[i.url]&&r.removeFromCache(i.url),this.baseTexture.destroy()}this.baseTexture.off("loaded",this.onBaseTextureUpdated,this),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture=null}this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,r.removeFromCache(this),this.textureCacheIds=null},r.prototype.clone=function(){var e=this._frame.clone(),i=this._frame===this.orig?e:this.orig.clone(),n=new r(this.baseTexture,!this.noFrame&&e,i,this.trim&&this.trim.clone(),this.rotate,this.defaultAnchor);return this.noFrame&&(n._frame=e),n},r.prototype.updateUvs=function(){this._uvs===pa&&(this._uvs=new ih),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++},r.from=function(e,i,n){i===void 0&&(i={}),n===void 0&&(n=N.STRICT_TEXTURE_CACHE);var a=typeof e=="string",s=null;if(a)s=e;else if(e instanceof H){if(!e.cacheId){var o=i&&i.pixiIdPrefix||"pixiid";e.cacheId=o+"-"+oe(),H.addToCache(e,e.cacheId)}s=e.cacheId}else{if(!e._pixiId){var o=i&&i.pixiIdPrefix||"pixiid";e._pixiId=o+"_"+oe()}s=e._pixiId}var h=Ot[s];if(a&&n&&!h)throw new Error('The cacheId "'+s+'" does not exist in TextureCache.');return!h&&!(e instanceof H)?(i.resolution||(i.resolution=Ur(e)),h=new r(new H(e,i)),h.baseTexture.cacheId=s,H.addToCache(h.baseTexture,s),r.addToCache(h,s)):!h&&e instanceof H&&(h=new r(e),r.addToCache(h,s)),h},r.fromURL=function(e,i){var n=Object.assign({autoLoad:!1},i==null?void 0:i.resourceOptions),a=r.from(e,Object.assign({resourceOptions:n},i),!1),s=a.baseTexture.resource;return a.baseTexture.valid?Promise.resolve(a):s.load().then(function(){return Promise.resolve(a)})},r.fromBuffer=function(e,i,n,a){return new r(H.fromBuffer(e,i,n,a))},r.fromLoader=function(e,i,n,a){var s=new H(e,Object.assign({scaleMode:N.SCALE_MODE,resolution:Ur(i)},a)),o=s.resource;o instanceof eh&&(o.url=i);var h=new r(s);return n||(n=i),H.addToCache(h.baseTexture,n),r.addToCache(h,n),n!==i&&(H.addToCache(h.baseTexture,i),r.addToCache(h,i)),h.baseTexture.valid?Promise.resolve(h):new Promise(function(u){h.baseTexture.once("loaded",function(){return u(h)})})},r.addToCache=function(e,i){i&&(e.textureCacheIds.indexOf(i)===-1&&e.textureCacheIds.push(i),Ot[i]&&console.warn("Texture added to the cache with an id ["+i+"] that already had an entry"),Ot[i]=e)},r.removeFromCache=function(e){if(typeof e=="string"){var i=Ot[e];if(i){var n=i.textureCacheIds.indexOf(e);return n>-1&&i.textureCacheIds.splice(n,1),delete Ot[e],i}}else if(e&&e.textureCacheIds){for(var a=0;a<e.textureCacheIds.length;++a)Ot[e.textureCacheIds[a]]===e&&delete Ot[e.textureCacheIds[a]];return e.textureCacheIds.length=0,e}return null},Object.defineProperty(r.prototype,"resolution",{get:function(){return this.baseTexture.resolution},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"frame",{get:function(){return this._frame},set:function(e){this._frame=e,this.noFrame=!1;var i=e.x,n=e.y,a=e.width,s=e.height,o=i+a>this.baseTexture.width,h=n+s>this.baseTexture.height;if(o||h){var u=o&&h?"and":"or",l="X: "+i+" + "+a+" = "+(i+a)+" > "+this.baseTexture.width,c="Y: "+n+" + "+s+" = "+(n+s)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(l+" "+u+" "+c))}this.valid=a&&s&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=e),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rotate",{get:function(){return this._rotate},set:function(e){this._rotate=e,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),r.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(r,"EMPTY",{get:function(){return r._EMPTY||(r._EMPTY=new r(new H),sr(r._EMPTY),sr(r._EMPTY.baseTexture)),r._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(r,"WHITE",{get:function(){if(!r._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),r._WHITE=new r(new H(new th(e))),sr(r._WHITE),sr(r._WHITE.baseTexture)}return r._WHITE},enumerable:!1,configurable:!0}),r}(we),he=function(t){$(r,t);function r(e,i){var n=t.call(this,e,i)||this;return n.valid=!0,n.filterFrame=null,n.filterPoolKey=null,n.updateUvs(),n}return Object.defineProperty(r.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(e){this.framebuffer.multisample=e},enumerable:!1,configurable:!0}),r.prototype.resize=function(e,i,n){n===void 0&&(n=!0);var a=this.baseTexture.resolution,s=Math.round(e*a)/a,o=Math.round(i*a)/a;this.valid=s>0&&o>0,this._frame.width=this.orig.width=s,this._frame.height=this.orig.height=o,n&&this.baseTexture.resize(s,o),this.updateUvs()},r.prototype.setResolution=function(e){var i=this.baseTexture;i.resolution!==e&&(i.setResolution(e),this.resize(i.width,i.height,!1))},r.create=function(e){for(var i=arguments,n=[],a=1;a<arguments.length;a++)n[a-1]=i[a];return typeof e=="number"&&(He("6.0.0","Arguments (width, height, scaleMode, resolution) have been deprecated."),e={width:e,height:n[0],scaleMode:n[1],resolution:n[2]}),new r(new rh(e))},r}(F),qf=function(){function t(r){this.texturePool={},this.textureOptions=r||{},this.enableFullScreen=!1,this._pixelsWidth=0,this._pixelsHeight=0}return t.prototype.createTexture=function(r,e,i){i===void 0&&(i=et.NONE);var n=new rh(Object.assign({width:r,height:e,resolution:1,multisample:i},this.textureOptions));return new he(n)},t.prototype.getOptimalTexture=function(r,e,i,n){i===void 0&&(i=1),n===void 0&&(n=et.NONE);var a;r=Math.ceil(r*i-1e-6),e=Math.ceil(e*i-1e-6),!this.enableFullScreen||r!==this._pixelsWidth||e!==this._pixelsHeight?(r=Ar(r),e=Ar(e),a=((r&65535)<<16|e&65535)>>>0,n>1&&(a+=n*4294967296)):a=n>1?-n:-1,this.texturePool[a]||(this.texturePool[a]=[]);var s=this.texturePool[a].pop();return s||(s=this.createTexture(r,e,n)),s.filterPoolKey=a,s.setResolution(i),s},t.prototype.getFilterTexture=function(r,e,i){var n=this.getOptimalTexture(r.width,r.height,e||r.resolution,i||et.NONE);return n.filterFrame=r.filterFrame,n},t.prototype.returnTexture=function(r){var e=r.filterPoolKey;r.filterFrame=null,this.texturePool[e].push(r)},t.prototype.returnFilterTexture=function(r){this.returnTexture(r)},t.prototype.clear=function(r){if(r=r!==!1,r)for(var e in this.texturePool){var i=this.texturePool[e];if(i)for(var n=0;n<i.length;n++)i[n].destroy(!0)}this.texturePool={}},t.prototype.setScreenSize=function(r){if(!(r.width===this._pixelsWidth&&r.height===this._pixelsHeight)){this.enableFullScreen=r.width>0&&r.height>0;for(var e in this.texturePool)if(Number(e)<0){var i=this.texturePool[e];if(i)for(var n=0;n<i.length;n++)i[n].destroy(!0);this.texturePool[e]=[]}this._pixelsWidth=r.width,this._pixelsHeight=r.height}},t.SCREEN_KEY=-1,t}(),va=function(){function t(r,e,i,n,a,s,o){e===void 0&&(e=0),i===void 0&&(i=!1),n===void 0&&(n=O.FLOAT),this.buffer=r,this.size=e,this.normalized=i,this.type=n,this.stride=a,this.start=s,this.instance=o}return t.prototype.destroy=function(){this.buffer=null},t.from=function(r,e,i,n,a){return new t(r,e,i,n,a)},t}(),Kf=0,it=function(){function t(r,e,i){e===void 0&&(e=!0),i===void 0&&(i=!1),this.data=r||new Float32Array(1),this._glBuffers={},this._updateID=0,this.index=i,this.static=e,this.id=Kf++,this.disposeRunner=new ot("disposeBuffer")}return t.prototype.update=function(r){r instanceof Array&&(r=new Float32Array(r)),this.data=r||this.data,this._updateID++},t.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},t.prototype.destroy=function(){this.dispose(),this.data=null},Object.defineProperty(t.prototype,"index",{get:function(){return this.type===Ct.ELEMENT_ARRAY_BUFFER},set:function(r){this.type=r?Ct.ELEMENT_ARRAY_BUFFER:Ct.ARRAY_BUFFER},enumerable:!1,configurable:!0}),t.from=function(r){return r instanceof Array&&(r=new Float32Array(r)),new t(r)},t}(),Zf={Float32Array,Uint32Array,Int32Array,Uint8Array};function Jf(t,r){for(var e=0,i=0,n={},a=0;a<t.length;a++)i+=r[a],e+=t[a].length;for(var s=new ArrayBuffer(e*4),o=null,h=0,a=0;a<t.length;a++){var u=r[a],l=t[a],c=$o(l);n[c]||(n[c]=new Zf[c](s)),o=n[c];for(var f=0;f<l.length;f++){var d=(f/u|0)*i+h,p=f%u;o[d+p]=l[f]}h+=u}return new Float32Array(s)}var _a={5126:4,5123:2,5121:1},Qf=0,tc={Float32Array,Uint32Array,Int32Array,Uint8Array,Uint16Array},Qe=function(){function t(r,e){r===void 0&&(r=[]),e===void 0&&(e={}),this.buffers=r,this.indexBuffer=null,this.attributes=e,this.glVertexArrayObjects={},this.id=Qf++,this.instanced=!1,this.instanceCount=1,this.disposeRunner=new ot("disposeGeometry"),this.refCount=0}return t.prototype.addAttribute=function(r,e,i,n,a,s,o,h){if(i===void 0&&(i=0),n===void 0&&(n=!1),h===void 0&&(h=!1),!e)throw new Error("You must pass a buffer when creating an attribute");e instanceof it||(e instanceof Array&&(e=new Float32Array(e)),e=new it(e));var u=r.split("|");if(u.length>1){for(var l=0;l<u.length;l++)this.addAttribute(u[l],e,i,n,a);return this}var c=this.buffers.indexOf(e);return c===-1&&(this.buffers.push(e),c=this.buffers.length-1),this.attributes[r]=new va(c,i,n,a,s,o,h),this.instanced=this.instanced||h,this},t.prototype.getAttribute=function(r){return this.attributes[r]},t.prototype.getBuffer=function(r){return this.buffers[this.getAttribute(r).buffer]},t.prototype.addIndex=function(r){return r instanceof it||(r instanceof Array&&(r=new Uint16Array(r)),r=new it(r)),r.type=Ct.ELEMENT_ARRAY_BUFFER,this.indexBuffer=r,this.buffers.indexOf(r)===-1&&this.buffers.push(r),this},t.prototype.getIndex=function(){return this.indexBuffer},t.prototype.interleave=function(){if(this.buffers.length===1||this.buffers.length===2&&this.indexBuffer)return this;var r=[],e=[],i=new it,n;for(n in this.attributes){var a=this.attributes[n],s=this.buffers[a.buffer];r.push(s.data),e.push(a.size*_a[a.type]/4),a.buffer=0}for(i.data=Jf(r,e),n=0;n<this.buffers.length;n++)this.buffers[n]!==this.indexBuffer&&this.buffers[n].destroy();return this.buffers=[i],this.indexBuffer&&this.buffers.push(this.indexBuffer),this},t.prototype.getSize=function(){for(var r in this.attributes){var e=this.attributes[r],i=this.buffers[e.buffer];return i.data.length/(e.stride/4||e.size)}return 0},t.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},t.prototype.destroy=function(){this.dispose(),this.buffers=null,this.indexBuffer=null,this.attributes=null},t.prototype.clone=function(){for(var r=new t,e=0;e<this.buffers.length;e++)r.buffers[e]=new it(this.buffers[e].data.slice(0));for(var e in this.attributes){var i=this.attributes[e];r.attributes[e]=new va(i.buffer,i.size,i.normalized,i.type,i.stride,i.start,i.instance)}return this.indexBuffer&&(r.indexBuffer=r.buffers[this.buffers.indexOf(this.indexBuffer)],r.indexBuffer.type=Ct.ELEMENT_ARRAY_BUFFER),r},t.merge=function(r){for(var e=new t,i=[],n=[],a=[],s,o=0;o<r.length;o++){s=r[o];for(var h=0;h<s.buffers.length;h++)n[h]=n[h]||0,n[h]+=s.buffers[h].data.length,a[h]=0}for(var o=0;o<s.buffers.length;o++)i[o]=new tc[$o(s.buffers[o].data)](n[o]),e.buffers[o]=new it(i[o]);for(var o=0;o<r.length;o++){s=r[o];for(var h=0;h<s.buffers.length;h++)i[h].set(s.buffers[h].data,a[h]),a[h]+=s.buffers[h].data.length}if(e.attributes=s.attributes,s.indexBuffer){e.indexBuffer=e.buffers[s.buffers.indexOf(s.indexBuffer)],e.indexBuffer.type=Ct.ELEMENT_ARRAY_BUFFER;for(var u=0,l=0,c=0,f=0,o=0;o<s.buffers.length;o++)if(s.buffers[o]!==s.indexBuffer){f=o;break}for(var o in s.attributes){var d=s.attributes[o];(d.buffer|0)===f&&(l+=d.size*_a[d.type]/4)}for(var o=0;o<r.length;o++){for(var p=r[o].indexBuffer.data,h=0;h<p.length;h++)e.indexBuffer.data[h+c]+=u;u+=r[o].buffers[f].data.length/l,c+=p.length}}return e},t}(),ec=function(t){$(r,t);function r(){var e=t.call(this)||this;return e.addAttribute("aVertexPosition",new Float32Array([0,0,1,0,1,1,0,1])).addIndex([0,1,3,2]),e}return r}(Qe),nh=function(t){$(r,t);function r(){var e=t.call(this)||this;return e.vertices=new Float32Array([-1,-1,1,-1,1,1,-1,1]),e.uvs=new Float32Array([0,0,1,0,1,1,0,1]),e.vertexBuffer=new it(e.vertices),e.uvBuffer=new it(e.uvs),e.addAttribute("aVertexPosition",e.vertexBuffer).addAttribute("aTextureCoord",e.uvBuffer).addIndex([0,1,2,0,2,3]),e}return r.prototype.map=function(e,i){var n=0,a=0;return this.uvs[0]=n,this.uvs[1]=a,this.uvs[2]=n+i.width/e.width,this.uvs[3]=a,this.uvs[4]=n+i.width/e.width,this.uvs[5]=a+i.height/e.height,this.uvs[6]=n,this.uvs[7]=a+i.height/e.height,n=i.x,a=i.y,this.vertices[0]=n,this.vertices[1]=a,this.vertices[2]=n+i.width,this.vertices[3]=a,this.vertices[4]=n+i.width,this.vertices[5]=a+i.height,this.vertices[6]=n,this.vertices[7]=a+i.height,this.invalidate(),this},r.prototype.invalidate=function(){return this.vertexBuffer._updateID++,this.uvBuffer._updateID++,this},r}(Qe),rc=0,se=function(){function t(r,e,i){this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=rc++,this.static=!!e,this.ubo=!!i,r instanceof it?(this.buffer=r,this.buffer.type=Ct.UNIFORM_BUFFER,this.autoManage=!1,this.ubo=!0):(this.uniforms=r,this.ubo&&(this.buffer=new it(new Float32Array(1)),this.buffer.type=Ct.UNIFORM_BUFFER,this.autoManage=!0))}return t.prototype.update=function(){this.dirtyId++,!this.autoManage&&this.buffer&&this.buffer.update()},t.prototype.add=function(r,e,i){if(!this.ubo)this.uniforms[r]=new t(e,i);else throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them")},t.from=function(r,e,i){return new t(r,e,i)},t.uboFrom=function(r,e){return new t(r,e!=null?e:!0,!0)},t}(),ic=function(){function t(){this.renderTexture=null,this.target=null,this.legacy=!1,this.resolution=1,this.multisample=et.NONE,this.sourceFrame=new M,this.destinationFrame=new M,this.bindingSourceFrame=new M,this.bindingDestinationFrame=new M,this.filters=[],this.transform=null}return t.prototype.clear=function(){this.target=null,this.filters=null,this.renderTexture=null},t}(),or=[new D,new D,new D,new D],Vr=new Q,nc=function(){function t(r){this.renderer=r,this.defaultFilterStack=[{}],this.texturePool=new qf,this.texturePool.setScreenSize(r.view),this.statePool=[],this.quad=new ec,this.quadUv=new nh,this.tempRect=new M,this.activeState={},this.globalUniforms=new se({outputFrame:new M,inputSize:new Float32Array(4),inputPixel:new Float32Array(4),inputClamp:new Float32Array(4),resolution:1,filterArea:new Float32Array(4),filterClamp:new Float32Array(4)},!0),this.forceClear=!1,this.useMaxPadding=!1}return t.prototype.push=function(r,e){for(var i,n,a=this.renderer,s=this.defaultFilterStack,o=this.statePool.pop()||new ic,h=this.renderer.renderTexture,u=e[0].resolution,l=e[0].multisample,c=e[0].padding,f=e[0].autoFit,d=(i=e[0].legacy)!==null&&i!==void 0?i:!0,p=1;p<e.length;p++){var v=e[p];u=Math.min(u,v.resolution),l=Math.min(l,v.multisample),c=this.useMaxPadding?Math.max(c,v.padding):c+v.padding,f=f&&v.autoFit,d=d||((n=v.legacy)!==null&&n!==void 0?n:!0)}s.length===1&&(this.defaultFilterStack[0].renderTexture=h.current),s.push(o),o.resolution=u,o.multisample=l,o.legacy=d,o.target=r,o.sourceFrame.copyFrom(r.filterArea||r.getBounds(!0)),o.sourceFrame.pad(c);var _=this.tempRect.copyFrom(h.sourceFrame);a.projection.transform&&this.transformAABB(Vr.copyFrom(a.projection.transform).invert(),_),f?(o.sourceFrame.fit(_),(o.sourceFrame.width<=0||o.sourceFrame.height<=0)&&(o.sourceFrame.width=0,o.sourceFrame.height=0)):o.sourceFrame.intersects(_)||(o.sourceFrame.width=0,o.sourceFrame.height=0),this.roundFrame(o.sourceFrame,h.current?h.current.resolution:a.resolution,h.sourceFrame,h.destinationFrame,a.projection.transform),o.renderTexture=this.getOptimalFilterTexture(o.sourceFrame.width,o.sourceFrame.height,u,l),o.filters=e,o.destinationFrame.width=o.renderTexture.width,o.destinationFrame.height=o.renderTexture.height;var m=this.tempRect;m.x=0,m.y=0,m.width=o.sourceFrame.width,m.height=o.sourceFrame.height,o.renderTexture.filterFrame=o.sourceFrame,o.bindingSourceFrame.copyFrom(h.sourceFrame),o.bindingDestinationFrame.copyFrom(h.destinationFrame),o.transform=a.projection.transform,a.projection.transform=null,h.bind(o.renderTexture,o.sourceFrame,m),a.framebuffer.clear(0,0,0,0)},t.prototype.pop=function(){var r=this.defaultFilterStack,e=r.pop(),i=e.filters;this.activeState=e;var n=this.globalUniforms.uniforms;n.outputFrame=e.sourceFrame,n.resolution=e.resolution;var a=n.inputSize,s=n.inputPixel,o=n.inputClamp;if(a[0]=e.destinationFrame.width,a[1]=e.destinationFrame.height,a[2]=1/a[0],a[3]=1/a[1],s[0]=Math.round(a[0]*e.resolution),s[1]=Math.round(a[1]*e.resolution),s[2]=1/s[0],s[3]=1/s[1],o[0]=.5*s[2],o[1]=.5*s[3],o[2]=e.sourceFrame.width*a[2]-.5*s[2],o[3]=e.sourceFrame.height*a[3]-.5*s[3],e.legacy){var h=n.filterArea;h[0]=e.destinationFrame.width,h[1]=e.destinationFrame.height,h[2]=e.sourceFrame.x,h[3]=e.sourceFrame.y,n.filterClamp=n.inputClamp}this.globalUniforms.update();var u=r[r.length-1];if(this.renderer.framebuffer.blit(),i.length===1)i[0].apply(this,e.renderTexture,u.renderTexture,Vt.BLEND,e),this.returnFilterTexture(e.renderTexture);else{var l=e.renderTexture,c=this.getOptimalFilterTexture(l.width,l.height,e.resolution);c.filterFrame=l.filterFrame;var f=0;for(f=0;f<i.length-1;++f){f===1&&e.multisample>1&&(c=this.getOptimalFilterTexture(l.width,l.height,e.resolution),c.filterFrame=l.filterFrame),i[f].apply(this,l,c,Vt.CLEAR,e);var d=l;l=c,c=d}i[f].apply(this,l,u.renderTexture,Vt.BLEND,e),f>1&&e.multisample>1&&this.returnFilterTexture(e.renderTexture),this.returnFilterTexture(l),this.returnFilterTexture(c)}e.clear(),this.statePool.push(e)},t.prototype.bindAndClear=function(r,e){e===void 0&&(e=Vt.CLEAR);var i=this.renderer,n=i.renderTexture,a=i.state;if(r===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,r&&r.filterFrame){var s=this.tempRect;s.x=0,s.y=0,s.width=r.filterFrame.width,s.height=r.filterFrame.height,n.bind(r,r.filterFrame,s)}else r!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?n.bind(r):this.renderer.renderTexture.bind(r,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var o=a.stateId&1||this.forceClear;(e===Vt.CLEAR||e===Vt.BLIT&&o)&&this.renderer.framebuffer.clear(0,0,0,0)},t.prototype.applyFilter=function(r,e,i,n){var a=this.renderer;a.state.set(r.state),this.bindAndClear(i,n),r.uniforms.uSampler=e,r.uniforms.filterGlobals=this.globalUniforms,a.shader.bind(r),r.legacy=!!r.program.attributeData.aTextureCoord,r.legacy?(this.quadUv.map(e._frame,e.filterFrame),a.geometry.bind(this.quadUv),a.geometry.draw(vt.TRIANGLES)):(a.geometry.bind(this.quad),a.geometry.draw(vt.TRIANGLE_STRIP))},t.prototype.calculateSpriteMatrix=function(r,e){var i=this.activeState,n=i.sourceFrame,a=i.destinationFrame,s=e._texture.orig,o=r.set(a.width,0,0,a.height,n.x,n.y),h=e.worldTransform.copyTo(Q.TEMP_MATRIX);return h.invert(),o.prepend(h),o.scale(1/s.width,1/s.height),o.translate(e.anchor.x,e.anchor.y),o},t.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},t.prototype.getOptimalFilterTexture=function(r,e,i,n){return i===void 0&&(i=1),n===void 0&&(n=et.NONE),this.texturePool.getOptimalTexture(r,e,i,n)},t.prototype.getFilterTexture=function(r,e,i){if(typeof r=="number"){var n=r;r=e,e=n}r=r||this.activeState.renderTexture;var a=this.texturePool.getOptimalTexture(r.width,r.height,e||r.resolution,i||et.NONE);return a.filterFrame=r.filterFrame,a},t.prototype.returnFilterTexture=function(r){this.texturePool.returnTexture(r)},t.prototype.emptyPool=function(){this.texturePool.clear(!0)},t.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},t.prototype.transformAABB=function(r,e){var i=or[0],n=or[1],a=or[2],s=or[3];i.set(e.left,e.top),n.set(e.left,e.bottom),a.set(e.right,e.top),s.set(e.right,e.bottom),r.apply(i,i),r.apply(n,n),r.apply(a,a),r.apply(s,s);var o=Math.min(i.x,n.x,a.x,s.x),h=Math.min(i.y,n.y,a.y,s.y),u=Math.max(i.x,n.x,a.x,s.x),l=Math.max(i.y,n.y,a.y,s.y);e.x=o,e.y=h,e.width=u-o,e.height=l-h},t.prototype.roundFrame=function(r,e,i,n,a){if(!(r.width<=0||r.height<=0||i.width<=0||i.height<=0)){if(a){var s=a.a,o=a.b,h=a.c,u=a.d;if((Math.abs(o)>1e-4||Math.abs(h)>1e-4)&&(Math.abs(s)>1e-4||Math.abs(u)>1e-4))return}a=a?Vr.copyFrom(a):Vr.identity(),a.translate(-i.x,-i.y).scale(n.width/i.width,n.height/i.height).translate(n.x,n.y),this.transformAABB(a,r),r.ceil(e),this.transformAABB(a.invert(),r)}},t}(),Br=function(){function t(r){this.renderer=r}return t.prototype.flush=function(){},t.prototype.destroy=function(){this.renderer=null},t.prototype.start=function(){},t.prototype.stop=function(){this.flush()},t.prototype.render=function(r){},t}(),ac=function(){function t(r){this.renderer=r,this.emptyRenderer=new Br(r),this.currentRenderer=this.emptyRenderer}return t.prototype.setObjectRenderer=function(r){this.currentRenderer!==r&&(this.currentRenderer.stop(),this.currentRenderer=r,this.currentRenderer.start())},t.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},t.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},t.prototype.copyBoundTextures=function(r,e){for(var i=this.renderer.texture.boundTextures,n=e-1;n>=0;--n)r[n]=i[n]||null,r[n]&&(r[n]._batchLocation=n)},t.prototype.boundArray=function(r,e,i,n){for(var a=r.elements,s=r.ids,o=r.count,h=0,u=0;u<o;u++){var l=a[u],c=l._batchLocation;if(c>=0&&c<n&&e[c]===l){s[u]=c;continue}for(;h<n;){var f=e[h];if(f&&f._batchEnabled===i&&f._batchLocation===h){h++;continue}s[u]=h,l._batchLocation=h,e[h]=l;break}}},t.prototype.destroy=function(){this.renderer=null},t}(),ma=0,sc=function(){function t(r){this.renderer=r,this.webGLVersion=1,this.extensions={},this.supports={uint32Indices:!1},this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this),r.view.addEventListener("webglcontextlost",this.handleContextLost,!1),r.view.addEventListener("webglcontextrestored",this.handleContextRestored,!1)}return Object.defineProperty(t.prototype,"isLost",{get:function(){return!this.gl||this.gl.isContextLost()},enumerable:!1,configurable:!0}),t.prototype.contextChange=function(r){this.gl=r,this.renderer.gl=r,this.renderer.CONTEXT_UID=ma++,r.isContextLost()&&r.getExtension("WEBGL_lose_context")&&r.getExtension("WEBGL_lose_context").restoreContext()},t.prototype.initFromContext=function(r){this.gl=r,this.validateContext(r),this.renderer.gl=r,this.renderer.CONTEXT_UID=ma++,this.renderer.runners.contextChange.emit(r)},t.prototype.initFromOptions=function(r){var e=this.createContext(this.renderer.view,r);this.initFromContext(e)},t.prototype.createContext=function(r,e){var i;if(N.PREFER_ENV>=Mt.WEBGL2&&(i=r.getContext("webgl2",e)),i)this.webGLVersion=2;else if(this.webGLVersion=1,i=r.getContext("webgl",e)||r.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},t.prototype.getExtensions=function(){var r=this.gl,e={anisotropicFiltering:r.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:r.getExtension("OES_texture_float_linear"),s3tc:r.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:r.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:r.getExtension("WEBGL_compressed_texture_etc"),etc1:r.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:r.getExtension("WEBGL_compressed_texture_pvrtc")||r.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:r.getExtension("WEBGL_compressed_texture_atc"),astc:r.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,e,{drawBuffers:r.getExtension("WEBGL_draw_buffers"),depthTexture:r.getExtension("WEBGL_depth_texture"),loseContext:r.getExtension("WEBGL_lose_context"),vertexArrayObject:r.getExtension("OES_vertex_array_object")||r.getExtension("MOZ_OES_vertex_array_object")||r.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:r.getExtension("OES_element_index_uint"),floatTexture:r.getExtension("OES_texture_float"),floatTextureLinear:r.getExtension("OES_texture_float_linear"),textureHalfFloat:r.getExtension("OES_texture_half_float"),textureHalfFloatLinear:r.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,e,{colorBufferFloat:r.getExtension("EXT_color_buffer_float")})},t.prototype.handleContextLost=function(r){r.preventDefault()},t.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},t.prototype.destroy=function(){var r=this.renderer.view;this.renderer=null,r.removeEventListener("webglcontextlost",this.handleContextLost),r.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},t.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},t.prototype.validateContext=function(r){var e=r.getContextAttributes(),i="WebGL2RenderingContext"in globalThis&&r 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||!!r.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")},t}(),oc=function(){function t(r){this.framebuffer=r,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=et.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return t}(),hc=new M,uc=function(){function t(r){this.renderer=r,this.managedFramebuffers=[],this.unknownFramebuffer=new Oi(10,10),this.msaaSamples=null}return t.prototype.contextChange=function(){var r=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new M,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;N.PREFER_ENV===Mt.WEBGL_LEGACY&&(e=null,i=null),e?r.drawBuffers=function(n){return e.drawBuffersWEBGL(n)}:(this.hasMRT=!1,r.drawBuffers=function(){}),i||(this.writeDepthTexture=!1)}else this.msaaSamples=r.getInternalformatParameter(r.RENDERBUFFER,r.RGBA8,r.SAMPLES)},t.prototype.bind=function(r,e,i){i===void 0&&(i=0);var n=this.gl;if(r){var a=r.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(r);this.current!==r&&(this.current=r,n.bindFramebuffer(n.FRAMEBUFFER,a.framebuffer)),a.mipLevel!==i&&(r.dirtyId++,r.dirtyFormat++,a.mipLevel=i),a.dirtyId!==r.dirtyId&&(a.dirtyId=r.dirtyId,a.dirtyFormat!==r.dirtyFormat?(a.dirtyFormat=r.dirtyFormat,a.dirtySize=r.dirtySize,this.updateFramebuffer(r,i)):a.dirtySize!==r.dirtySize&&(a.dirtySize=r.dirtySize,this.resizeFramebuffer(r)));for(var s=0;s<r.colorTextures.length;s++){var o=r.colorTextures[s];this.renderer.texture.unbind(o.parentTextureArray||o)}if(r.depthTexture&&this.renderer.texture.unbind(r.depthTexture),e){var h=e.width>>i,u=e.height>>i,l=h/e.width;this.setViewport(e.x*l,e.y*l,h,u)}else{var h=r.width>>i,u=r.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)},t.prototype.setViewport=function(r,e,i,n){var a=this.viewport;r=Math.round(r),e=Math.round(e),i=Math.round(i),n=Math.round(n),(a.width!==i||a.height!==n||a.x!==r||a.y!==e)&&(a.x=r,a.y=e,a.width=i,a.height=n,this.gl.viewport(r,e,i,n))},Object.defineProperty(t.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}),t.prototype.clear=function(r,e,i,n,a){a===void 0&&(a=Pr.COLOR|Pr.DEPTH);var s=this.gl;s.clearColor(r,e,i,n),s.clear(a)},t.prototype.initFramebuffer=function(r){var e=this.gl,i=new oc(e.createFramebuffer());return i.multisample=this.detectSamples(r.multisample),r.glFramebuffers[this.CONTEXT_UID]=i,this.managedFramebuffers.push(r),r.disposeRunner.add(this),i},t.prototype.resizeFramebuffer=function(r){var e=this.gl,i=r.glFramebuffers[this.CONTEXT_UID];i.msaaBuffer&&(e.bindRenderbuffer(e.RENDERBUFFER,i.msaaBuffer),e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,e.RGBA8,r.width,r.height)),i.stencil&&(e.bindRenderbuffer(e.RENDERBUFFER,i.stencil),i.msaaBuffer?e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,e.DEPTH24_STENCIL8,r.width,r.height):e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,r.width,r.height));var n=r.colorTextures,a=n.length;e.drawBuffers||(a=Math.min(a,1));for(var s=0;s<a;s++){var o=n[s],h=o.parentTextureArray||o;this.renderer.texture.bind(h,0)}r.depthTexture&&this.writeDepthTexture&&this.renderer.texture.bind(r.depthTexture,0)},t.prototype.updateFramebuffer=function(r,e){var i=this.gl,n=r.glFramebuffers[this.CONTEXT_UID],a=r.colorTextures,s=a.length;i.drawBuffers||(s=Math.min(s,1)),n.multisample>1&&this.canMultisampleFramebuffer(r)?(n.msaaBuffer=n.msaaBuffer||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,n.msaaBuffer),i.renderbufferStorageMultisample(i.RENDERBUFFER,n.multisample,i.RGBA8,r.width,r.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;h<s;h++){var u=a[h],l=u.parentTextureArray||u;this.renderer.texture.bind(l,0),!(h===0&&n.msaaBuffer)&&(i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0+h,u.target,l._glTextures[this.CONTEXT_UID].texture,e),o.push(i.COLOR_ATTACHMENT0+h))}if(o.length>1&&i.drawBuffers(o),r.depthTexture){var c=this.writeDepthTexture;if(c){var f=r.depthTexture;this.renderer.texture.bind(f,0),i.framebufferTexture2D(i.FRAMEBUFFER,i.DEPTH_ATTACHMENT,i.TEXTURE_2D,f._glTextures[this.CONTEXT_UID].texture,e)}}(r.stencil||r.depth)&&!(r.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,r.width,r.height):i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,r.width,r.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_STENCIL_ATTACHMENT,i.RENDERBUFFER,n.stencil)):n.stencil&&(i.deleteRenderbuffer(n.stencil),n.stencil=null)},t.prototype.canMultisampleFramebuffer=function(r){return this.renderer.context.webGLVersion!==1&&r.colorTextures.length<=1&&!r.depthTexture},t.prototype.detectSamples=function(r){var e=this.msaaSamples,i=et.NONE;if(r<=1||e===null)return i;for(var n=0;n<e.length;n++)if(e[n]<=r){i=e[n];break}return i===1&&(i=et.NONE),i},t.prototype.blit=function(r,e,i){var n=this,a=n.current,s=n.renderer,o=n.gl,h=n.CONTEXT_UID;if(s.context.webGLVersion===2&&!!a){var u=a.glFramebuffers[h];if(!!u){if(!r){if(!u.msaaBuffer)return;var l=a.colorTextures[0];if(!l)return;u.blitFramebuffer||(u.blitFramebuffer=new Oi(a.width,a.height),u.blitFramebuffer.addColorTexture(0,l)),r=u.blitFramebuffer,r.colorTextures[0]!==l&&(r.colorTextures[0]=l,r.dirtyId++,r.dirtyFormat++),(r.width!==a.width||r.height!==a.height)&&(r.width=a.width,r.height=a.height,r.dirtyId++,r.dirtySize++)}e||(e=hc,e.width=a.width,e.height=a.height),i||(i=e);var c=e.width===i.width&&e.height===i.height;this.bind(r),o.bindFramebuffer(o.READ_FRAMEBUFFER,u.framebuffer),o.blitFramebuffer(e.left,e.top,e.right,e.bottom,i.left,i.top,i.right,i.bottom,o.COLOR_BUFFER_BIT,c?o.NEAREST:o.LINEAR)}}},t.prototype.disposeFramebuffer=function(r,e){var i=r.glFramebuffers[this.CONTEXT_UID],n=this.gl;if(!!i){delete r.glFramebuffers[this.CONTEXT_UID];var a=this.managedFramebuffers.indexOf(r);a>=0&&this.managedFramebuffers.splice(a,1),r.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()}},t.prototype.disposeAll=function(r){var e=this.managedFramebuffers;this.managedFramebuffers=[];for(var i=0;i<e.length;i++)this.disposeFramebuffer(e[i],r)},t.prototype.forceStencil=function(){var r=this.current;if(!!r){var e=r.glFramebuffers[this.CONTEXT_UID];if(!(!e||e.stencil)){r.stencil=!0;var i=r.width,n=r.height,a=this.gl,s=a.createRenderbuffer();a.bindRenderbuffer(a.RENDERBUFFER,s),e.msaaBuffer?a.renderbufferStorageMultisample(a.RENDERBUFFER,e.multisample,a.DEPTH24_STENCIL8,i,n):a.renderbufferStorage(a.RENDERBUFFER,a.DEPTH_STENCIL,i,n),e.stencil=s,a.framebufferRenderbuffer(a.FRAMEBUFFER,a.DEPTH_STENCIL_ATTACHMENT,a.RENDERBUFFER,s)}}},t.prototype.reset=function(){this.current=this.unknownFramebuffer,this.viewport=new M},t.prototype.destroy=function(){this.renderer=null},t}(),jr={5126:4,5123:2,5121:1},lc=function(){function t(r){this.renderer=r,this._activeGeometry=null,this._activeVao=null,this.hasVao=!0,this.hasInstance=!0,this.canUseUInt32ElementIndex=!1,this.managedGeometries={}}return t.prototype.contextChange=function(){this.disposeAll(!0);var r=this.gl=this.renderer.gl,e=this.renderer.context;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,e.webGLVersion!==2){var i=this.renderer.context.extensions.vertexArrayObject;N.PREFER_ENV===Mt.WEBGL_LEGACY&&(i=null),i?(r.createVertexArray=function(){return i.createVertexArrayOES()},r.bindVertexArray=function(a){return i.bindVertexArrayOES(a)},r.deleteVertexArray=function(a){return i.deleteVertexArrayOES(a)}):(this.hasVao=!1,r.createVertexArray=function(){return null},r.bindVertexArray=function(){return null},r.deleteVertexArray=function(){return null})}if(e.webGLVersion!==2){var n=r.getExtension("ANGLE_instanced_arrays");n?(r.vertexAttribDivisor=function(a,s){return n.vertexAttribDivisorANGLE(a,s)},r.drawElementsInstanced=function(a,s,o,h,u){return n.drawElementsInstancedANGLE(a,s,o,h,u)},r.drawArraysInstanced=function(a,s,o,h){return n.drawArraysInstancedANGLE(a,s,o,h)}):this.hasInstance=!1}this.canUseUInt32ElementIndex=e.webGLVersion===2||!!e.extensions.uint32ElementIndex},t.prototype.bind=function(r,e){e=e||this.renderer.shader.shader;var i=this.gl,n=r.glVertexArrayObjects[this.CONTEXT_UID],a=!1;n||(this.managedGeometries[r.id]=r,r.disposeRunner.add(this),r.glVertexArrayObjects[this.CONTEXT_UID]=n={},a=!0);var s=n[e.program.id]||this.initGeometryVao(r,e,a);this._activeGeometry=r,this._activeVao!==s&&(this._activeVao=s,this.hasVao?i.bindVertexArray(s):this.activateVao(r,e.program)),this.updateBuffers()},t.prototype.reset=function(){this.unbind()},t.prototype.updateBuffers=function(){for(var r=this._activeGeometry,e=this.renderer.buffer,i=0;i<r.buffers.length;i++){var n=r.buffers[i];e.update(n)}},t.prototype.checkCompatibility=function(r,e){var i=r.attributes,n=e.attributeData;for(var a in n)if(!i[a])throw new Error('shader and geometry incompatible, geometry missing the "'+a+'" attribute')},t.prototype.getSignature=function(r,e){var i=r.attributes,n=e.attributeData,a=["g",r.id];for(var s in i)n[s]&&a.push(s,n[s].location);return a.join("-")},t.prototype.initGeometryVao=function(r,e,i){i===void 0&&(i=!0);var n=this.gl,a=this.CONTEXT_UID,s=this.renderer.buffer,o=e.program;o.glPrograms[a]||this.renderer.shader.generateProgram(e),this.checkCompatibility(r,o);var h=this.getSignature(r,o),u=r.glVertexArrayObjects[this.CONTEXT_UID],l=u[h];if(l)return u[o.id]=l,l;var c=r.buffers,f=r.attributes,d={},p={};for(var v in c)d[v]=0,p[v]=0;for(var v in f)!f[v].size&&o.attributeData[v]?f[v].size=o.attributeData[v].size:f[v].size||console.warn("PIXI Geometry attribute '"+v+"' size cannot be determined (likely the bound shader does not have the attribute)"),d[f[v].buffer]+=f[v].size*jr[f[v].type];for(var v in f){var _=f[v],m=_.size;_.stride===void 0&&(d[_.buffer]===m*jr[_.type]?_.stride=0:_.stride=d[_.buffer]),_.start===void 0&&(_.start=p[_.buffer],p[_.buffer]+=m*jr[_.type])}l=n.createVertexArray(),n.bindVertexArray(l);for(var T=0;T<c.length;T++){var x=c[T];s.bind(x),i&&x._glBuffers[a].refCount++}return this.activateVao(r,o),this._activeVao=l,u[o.id]=l,u[h]=l,l},t.prototype.disposeGeometry=function(r,e){var i;if(!!this.managedGeometries[r.id]){delete this.managedGeometries[r.id];var n=r.glVertexArrayObjects[this.CONTEXT_UID],a=this.gl,s=r.buffers,o=(i=this.renderer)===null||i===void 0?void 0:i.buffer;if(r.disposeRunner.remove(this),!!n){if(o)for(var h=0;h<s.length;h++){var u=s[h]._glBuffers[this.CONTEXT_UID];u&&(u.refCount--,u.refCount===0&&!e&&o.dispose(s[h],e))}if(!e){for(var l in n)if(l[0]==="g"){var c=n[l];this._activeVao===c&&this.unbind(),a.deleteVertexArray(c)}}delete r.glVertexArrayObjects[this.CONTEXT_UID]}}},t.prototype.disposeAll=function(r){for(var e=Object.keys(this.managedGeometries),i=0;i<e.length;i++)this.disposeGeometry(this.managedGeometries[e[i]],r)},t.prototype.activateVao=function(r,e){var i=this.gl,n=this.CONTEXT_UID,a=this.renderer.buffer,s=r.buffers,o=r.attributes;r.indexBuffer&&a.bind(r.indexBuffer);var h=null;for(var u in o){var l=o[u],c=s[l.buffer],f=c._glBuffers[n];if(e.attributeData[u]){h!==f&&(a.bind(c),h=f);var d=e.attributeData[u].location;if(i.enableVertexAttribArray(d),i.vertexAttribPointer(d,l.size,l.type||i.FLOAT,l.normalized,l.stride,l.start),l.instance)if(this.hasInstance)i.vertexAttribDivisor(d,1);else throw new Error("geometry error, GPU Instancing is not supported on this device")}}},t.prototype.draw=function(r,e,i,n){var a=this.gl,s=this._activeGeometry;if(s.indexBuffer){var o=s.indexBuffer.data.BYTES_PER_ELEMENT,h=o===2?a.UNSIGNED_SHORT:a.UNSIGNED_INT;o===2||o===4&&this.canUseUInt32ElementIndex?s.instanced?a.drawElementsInstanced(r,e||s.indexBuffer.data.length,h,(i||0)*o,n||1):a.drawElements(r,e||s.indexBuffer.data.length,h,(i||0)*o):console.warn("unsupported index buffer type: uint32")}else s.instanced?a.drawArraysInstanced(r,i,e||s.getSize(),n||1):a.drawArrays(r,i,e||s.getSize());return this},t.prototype.unbind=function(){this.gl.bindVertexArray(null),this._activeVao=null,this._activeGeometry=null},t.prototype.destroy=function(){this.renderer=null},t}(),fc=function(){function t(r){r===void 0&&(r=null),this.type=st.NONE,this.autoDetect=!0,this.maskObject=r||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=N.FILTER_MULTISAMPLE,this.enabled=!0,this._filters=null,this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null,this._scissorRectLocal=null,this._target=null}return Object.defineProperty(t.prototype,"filter",{get:function(){return this._filters?this._filters[0]:null},set:function(r){r?this._filters?this._filters[0]=r:this._filters=[r]:this._filters=null},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this.pooled&&(this.maskObject=null,this.type=st.NONE,this.autoDetect=!0),this._target=null,this._scissorRectLocal=null},t.prototype.copyCountersOrReset=function(r){r?(this._stencilCounter=r._stencilCounter,this._scissorCounter=r._scissorCounter,this._scissorRect=r._scissorRect):(this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null)},t}();function ya(t,r,e){var i=t.createShader(r);return t.shaderSource(i,e),t.compileShader(i),i}function ga(t,r){var e=t.getShaderSource(r).split(`
-`).map(function(u,l){return l+": "+u}),i=t.getShaderInfoLog(r),n=i.split(`
-`),a={},s=n.map(function(u){return parseFloat(u.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))}).filter(function(u){return u&&!a[u]?(a[u]=!0,!0):!1}),o=[""];s.forEach(function(u){e[u-1]="%c"+e[u-1]+"%c",o.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});var h=e.join(`
-`);o[0]=h,console.error(i),console.groupCollapsed("click to view full shader code"),console.warn.apply(console,o),console.groupEnd()}function cc(t,r,e,i){t.getProgramParameter(r,t.LINK_STATUS)||(t.getShaderParameter(e,t.COMPILE_STATUS)||ga(t,e),t.getShaderParameter(i,t.COMPILE_STATUS)||ga(t,i),console.error("PixiJS Error: Could not initialize shader."),t.getProgramInfoLog(r)!==""&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",t.getProgramInfoLog(r)))}function zr(t){for(var r=new Array(t),e=0;e<r.length;e++)r[e]=!1;return r}function ah(t,r){switch(t){case"float":return 0;case"vec2":return new Float32Array(2*r);case"vec3":return new Float32Array(3*r);case"vec4":return new Float32Array(4*r);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*r);case"ivec3":return new Int32Array(3*r);case"ivec4":return new Int32Array(4*r);case"uvec2":return new Uint32Array(2*r);case"uvec3":return new Uint32Array(3*r);case"uvec4":return new Uint32Array(4*r);case"bool":return!1;case"bvec2":return zr(2*r);case"bvec3":return zr(3*r);case"bvec4":return zr(4*r);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}var sh={},Ue=sh;function dc(){if(Ue===sh||Ue&&Ue.isContextLost()){var t=document.createElement("canvas"),r=void 0;N.PREFER_ENV>=Mt.WEBGL2&&(r=t.getContext("webgl2",{})),r||(r=t.getContext("webgl",{})||t.getContext("experimental-webgl",{}),r?r.getExtension("WEBGL_draw_buffers"):r=null),Ue=r}return Ue}var hr;function pc(){if(!hr){hr=Et.MEDIUM;var t=dc();if(t&&t.getShaderPrecisionFormat){var r=t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT);hr=r.precision?Et.HIGH:Et.MEDIUM}}return hr}function Ta(t,r,e){if(t.substring(0,9)!=="precision"){var i=r;return r===Et.HIGH&&e!==Et.HIGH&&(i=Et.MEDIUM),"precision "+i+` float;
-`+t}else if(e!==Et.HIGH&&t.substring(0,15)==="precision highp")return t.replace("precision highp","precision mediump");return t}var vc={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 oh(t){return vc[t]}var ur=null,xa={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 hh(t,r){if(!ur){var e=Object.keys(xa);ur={};for(var i=0;i<e.length;++i){var n=e[i];ur[t[n]]=xa[n]}}return ur[r]}var Ee=[{test:function(t){return t.type==="float"&&t.size===1},code:function(t){return`
-            if(uv["`+t+'"] !== ud["'+t+`"].value)
-            {
-                ud["`+t+'"].value = uv["'+t+`"]
-                gl.uniform1f(ud["`+t+'"].location, uv["'+t+`"])
-            }
-            `}},{test:function(t){return(t.type==="sampler2D"||t.type==="samplerCube"||t.type==="sampler2DArray")&&t.size===1&&!t.isArray},code:function(t){return`t = syncData.textureCount++;
-
-            renderer.texture.bind(uv["`+t+`"], t);
-
-            if(ud["`+t+`"].value !== t)
-            {
-                ud["`+t+`"].value = t;
-                gl.uniform1i(ud["`+t+`"].location, t);
-; // eslint-disable-line max-len
-            }`}},{test:function(t,r){return t.type==="mat3"&&t.size===1&&r.a!==void 0},code:function(t){return`
-            gl.uniformMatrix3fv(ud["`+t+'"].location, false, uv["'+t+`"].toArray(true));
-            `},codeUbo:function(t){return`
-                var `+t+"_matrix = uv."+t+`.toArray(true);
-
-                data[offset] = `+t+`_matrix[0];
-                data[offset+1] = `+t+`_matrix[1];
-                data[offset+2] = `+t+`_matrix[2];
-        
-                data[offset + 4] = `+t+`_matrix[3];
-                data[offset + 5] = `+t+`_matrix[4];
-                data[offset + 6] = `+t+`_matrix[5];
-        
-                data[offset + 8] = `+t+`_matrix[6];
-                data[offset + 9] = `+t+`_matrix[7];
-                data[offset + 10] = `+t+`_matrix[8];
-            `}},{test:function(t,r){return t.type==="vec2"&&t.size===1&&r.x!==void 0},code:function(t){return`
-                cv = ud["`+t+`"].value;
-                v = uv["`+t+`"];
-
-                if(cv[0] !== v.x || cv[1] !== v.y)
-                {
-                    cv[0] = v.x;
-                    cv[1] = v.y;
-                    gl.uniform2f(ud["`+t+`"].location, v.x, v.y);
-                }`},codeUbo:function(t){return`
-                v = uv.`+t+`;
-
-                data[offset] = v.x;
-                data[offset+1] = v.y;
-            `}},{test:function(t){return t.type==="vec2"&&t.size===1},code:function(t){return`
-                cv = ud["`+t+`"].value;
-                v = uv["`+t+`"];
-
-                if(cv[0] !== v[0] || cv[1] !== v[1])
-                {
-                    cv[0] = v[0];
-                    cv[1] = v[1];
-                    gl.uniform2f(ud["`+t+`"].location, v[0], v[1]);
-                }
-            `}},{test:function(t,r){return t.type==="vec4"&&t.size===1&&r.width!==void 0},code:function(t){return`
-                cv = ud["`+t+`"].value;
-                v = uv["`+t+`"];
-
-                if(cv[0] !== v.x || cv[1] !== v.y || cv[2] !== v.width || cv[3] !== v.height)
-                {
-                    cv[0] = v.x;
-                    cv[1] = v.y;
-                    cv[2] = v.width;
-                    cv[3] = v.height;
-                    gl.uniform4f(ud["`+t+`"].location, v.x, v.y, v.width, v.height)
-                }`},codeUbo:function(t){return`
-                    v = uv.`+t+`;
-
-                    data[offset] = v.x;
-                    data[offset+1] = v.y;
-                    data[offset+2] = v.width;
-                    data[offset+3] = v.height;
-                `}},{test:function(t){return t.type==="vec4"&&t.size===1},code:function(t){return`
-                cv = ud["`+t+`"].value;
-                v = uv["`+t+`"];
-
-                if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
-                {
-                    cv[0] = v[0];
-                    cv[1] = v[1];
-                    cv[2] = v[2];
-                    cv[3] = v[3];
-
-                    gl.uniform4f(ud["`+t+`"].location, v[0], v[1], v[2], v[3])
-                }`}}],_c={float:`
-    if (cv !== v)
-    {
-        cu.value = v;
-        gl.uniform1f(location, v);
-    }`,vec2:`
-    if (cv[0] !== v[0] || cv[1] !== v[1])
-    {
-        cv[0] = v[0];
-        cv[1] = v[1];
-
-        gl.uniform2f(location, v[0], v[1])
-    }`,vec3:`
-    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
-    {
-        cv[0] = v[0];
-        cv[1] = v[1];
-        cv[2] = v[2];
-
-        gl.uniform3f(location, v[0], v[1], v[2])
-    }`,vec4:`
-    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
-    {
-        cv[0] = v[0];
-        cv[1] = v[1];
-        cv[2] = v[2];
-        cv[3] = v[3];
-
-        gl.uniform4f(location, v[0], v[1], v[2], v[3]);
-    }`,int:`
-    if (cv !== v)
-    {
-        cu.value = v;
-
-        gl.uniform1i(location, v);
-    }`,ivec2:`
-    if (cv[0] !== v[0] || cv[1] !== v[1])
-    {
-        cv[0] = v[0];
-        cv[1] = v[1];
-
-        gl.uniform2i(location, v[0], v[1]);
-    }`,ivec3:`
-    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
-    {
-        cv[0] = v[0];
-        cv[1] = v[1];
-        cv[2] = v[2];
-
-        gl.uniform3i(location, v[0], v[1], v[2]);
-    }`,ivec4:`
-    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
-    {
-        cv[0] = v[0];
-        cv[1] = v[1];
-        cv[2] = v[2];
-        cv[3] = v[3];
-
-        gl.uniform4i(location, v[0], v[1], v[2], v[3]);
-    }`,uint:`
-    if (cv !== v)
-    {
-        cu.value = v;
-
-        gl.uniform1ui(location, v);
-    }`,uvec2:`
-    if (cv[0] !== v[0] || cv[1] !== v[1])
-    {
-        cv[0] = v[0];
-        cv[1] = v[1];
-
-        gl.uniform2ui(location, v[0], v[1]);
-    }`,uvec3:`
-    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
-    {
-        cv[0] = v[0];
-        cv[1] = v[1];
-        cv[2] = v[2];
-
-        gl.uniform3ui(location, v[0], v[1], v[2]);
-    }`,uvec4:`
-    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
-    {
-        cv[0] = v[0];
-        cv[1] = v[1];
-        cv[2] = v[2];
-        cv[3] = v[3];
-
-        gl.uniform4ui(location, v[0], v[1], v[2], v[3]);
-    }`,bool:`
-    if (cv !== v)
-    {
-        cu.value = v;
-        gl.uniform1i(location, v);
-    }`,bvec2:`
-    if (cv[0] != v[0] || cv[1] != v[1])
-    {
-        cv[0] = v[0];
-        cv[1] = v[1];
-
-        gl.uniform2i(location, v[0], v[1]);
-    }`,bvec3:`
-    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
-    {
-        cv[0] = v[0];
-        cv[1] = v[1];
-        cv[2] = v[2];
-
-        gl.uniform3i(location, v[0], v[1], v[2]);
-    }`,bvec4:`
-    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
-    {
-        cv[0] = v[0];
-        cv[1] = v[1];
-        cv[2] = v[2];
-        cv[3] = v[3];
-
-        gl.uniform4i(location, v[0], v[1], v[2], v[3]);
-    }`,mat2:"gl.uniformMatrix2fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",sampler2D:"gl.uniform1i(location, v)",samplerCube:"gl.uniform1i(location, v)",sampler2DArray:"gl.uniform1i(location, v)"},mc={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};function yc(t,r){var e,i=[`
-        var v = null;
-        var cv = null;
-        var cu = null;
-        var t = 0;
-        var gl = renderer.gl;
-    `];for(var n in t.uniforms){var a=r[n];if(!a){!((e=t.uniforms[n])===null||e===void 0)&&e.group&&(t.uniforms[n].ubo?i.push(`
-                        renderer.shader.syncUniformBufferGroup(uv.`+n+", '"+n+`');
-                    `):i.push(`
-                        renderer.shader.syncUniformGroup(uv.`+n+`, syncData);
-                    `));continue}for(var s=t.uniforms[n],o=!1,h=0;h<Ee.length;h++)if(Ee[h].test(a,s)){i.push(Ee[h].code(n,s)),o=!0;break}if(!o){var u=a.size===1?_c:mc,l=u[a.type].replace("location",'ud["'+n+'"].location');i.push(`
-            cu = ud["`+n+`"];
-            cv = cu.value;
-            v = uv["`+n+`"];
-            `+l+";")}}return new Function("ud","uv","renderer","syncData",i.join(`
-`))}var gc=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join(`
-`);function Tc(t){for(var r="",e=0;e<t;++e)e>0&&(r+=`
-else `),e<t-1&&(r+="if(test == "+e+".0){}");return r}function xc(t,r){if(t===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");for(var e=r.createShader(r.FRAGMENT_SHADER);;){var i=gc.replace(/%forloop%/gi,Tc(t));if(r.shaderSource(e,i),r.compileShader(e),!r.getShaderParameter(e,r.COMPILE_STATUS))t=t/2|0;else break}return t}var Oe;function bc(){if(typeof Oe=="boolean")return Oe;try{var t=new Function("param1","param2","param3","return param1[param2] === param3;");Oe=t({a:"b"},"a","b")===!0}catch{Oe=!1}return Oe}var Ic=`varying vec2 vTextureCoord;
-
-uniform sampler2D uSampler;
-
-void main(void){
-   gl_FragColor *= texture2D(uSampler, vTextureCoord);
-}`,Ec=`attribute vec2 aVertexPosition;
-attribute vec2 aTextureCoord;
-
-uniform mat3 projectionMatrix;
-
-varying vec2 vTextureCoord;
-
-void main(void){
-   gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
-   vTextureCoord = aTextureCoord;
-}
-`,Rc=0,lr={},tr=function(){function t(r,e,i){i===void 0&&(i="pixi-shader"),this.id=Rc++,this.vertexSrc=r||t.defaultVertexSrc,this.fragmentSrc=e||t.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),this.vertexSrc.substring(0,8)!=="#version"&&(i=i.replace(/\s+/g,"-"),lr[i]?(lr[i]++,i+="-"+lr[i]):lr[i]=1,this.vertexSrc="#define SHADER_NAME "+i+`
-`+this.vertexSrc,this.fragmentSrc="#define SHADER_NAME "+i+`
-`+this.fragmentSrc,this.vertexSrc=Ta(this.vertexSrc,N.PRECISION_VERTEX,Et.HIGH),this.fragmentSrc=Ta(this.fragmentSrc,N.PRECISION_FRAGMENT,pc())),this.glPrograms={},this.syncUniforms=null}return Object.defineProperty(t,"defaultVertexSrc",{get:function(){return Ec},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultFragmentSrc",{get:function(){return Ic},enumerable:!1,configurable:!0}),t.from=function(r,e,i){var n=r+e,a=ca[n];return a||(ca[n]=a=new t(r,e,i)),a},t}(),Wt=function(){function t(r,e){this.uniformBindCount=0,this.program=r,e?e instanceof se?this.uniformGroup=e:this.uniformGroup=new se(e):this.uniformGroup=new se({})}return t.prototype.checkUniformExists=function(r,e){if(e.uniforms[r])return!0;for(var i in e.uniforms){var n=e.uniforms[i];if(n.group&&this.checkUniformExists(r,n))return!0}return!1},t.prototype.destroy=function(){this.uniformGroup=null},Object.defineProperty(t.prototype,"uniforms",{get:function(){return this.uniformGroup.uniforms},enumerable:!1,configurable:!0}),t.from=function(r,e,i){var n=tr.from(r,e);return new t(n,i)},t}(),Wr=0,Yr=1,$r=2,qr=3,Kr=4,Zr=5,ue=function(){function t(){this.data=0,this.blendMode=P.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}return Object.defineProperty(t.prototype,"blend",{get:function(){return!!(this.data&1<<Wr)},set:function(r){!!(this.data&1<<Wr)!==r&&(this.data^=1<<Wr)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"offsets",{get:function(){return!!(this.data&1<<Yr)},set:function(r){!!(this.data&1<<Yr)!==r&&(this.data^=1<<Yr)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"culling",{get:function(){return!!(this.data&1<<$r)},set:function(r){!!(this.data&1<<$r)!==r&&(this.data^=1<<$r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depthTest",{get:function(){return!!(this.data&1<<qr)},set:function(r){!!(this.data&1<<qr)!==r&&(this.data^=1<<qr)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depthMask",{get:function(){return!!(this.data&1<<Zr)},set:function(r){!!(this.data&1<<Zr)!==r&&(this.data^=1<<Zr)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clockwiseFrontFace",{get:function(){return!!(this.data&1<<Kr)},set:function(r){!!(this.data&1<<Kr)!==r&&(this.data^=1<<Kr)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blendMode",{get:function(){return this._blendMode},set:function(r){this.blend=r!==P.NONE,this._blendMode=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"polygonOffset",{get:function(){return this._polygonOffset},set:function(r){this.offsets=!!r,this._polygonOffset=r},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[@pixi/core:State "+("blendMode="+this.blendMode+" ")+("clockwiseFrontFace="+this.clockwiseFrontFace+" ")+("culling="+this.culling+" ")+("depthMask="+this.depthMask+" ")+("polygonOffset="+this.polygonOffset)+"]"},t.for2d=function(){var r=new t;return r.depthTest=!1,r.blend=!0,r},t}(),Cc=`attribute vec2 aVertexPosition;
-
-uniform mat3 projectionMatrix;
-
-varying vec2 vTextureCoord;
-
-uniform vec4 inputSize;
-uniform vec4 outputFrame;
-
-vec4 filterVertexPosition( void )
-{
-    vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
-
-    return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
-}
-
-vec2 filterTextureCoord( void )
-{
-    return aVertexPosition * (outputFrame.zw * inputSize.zw);
-}
-
-void main(void)
-{
-    gl_Position = filterVertexPosition();
-    vTextureCoord = filterTextureCoord();
-}
-`,wc=`varying vec2 vTextureCoord;
-
-uniform sampler2D uSampler;
-
-void main(void){
-   gl_FragColor = texture2D(uSampler, vTextureCoord);
-}
-`,$t=function(t){$(r,t);function r(e,i,n){var a=this,s=tr.from(e||r.defaultVertexSrc,i||r.defaultFragmentSrc);return a=t.call(this,s,n)||this,a.padding=0,a.resolution=N.FILTER_RESOLUTION,a.multisample=N.FILTER_MULTISAMPLE,a.enabled=!0,a.autoFit=!0,a.state=new ue,a}return r.prototype.apply=function(e,i,n,a,s){e.applyFilter(this,i,n,a)},Object.defineProperty(r.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(e){this.state.blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"resolution",{get:function(){return this._resolution},set:function(e){this._resolution=e},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultVertexSrc",{get:function(){return Cc},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultFragmentSrc",{get:function(){return wc},enumerable:!1,configurable:!0}),r}(Wt),Pc=`attribute vec2 aVertexPosition;
-attribute vec2 aTextureCoord;
-
-uniform mat3 projectionMatrix;
-uniform mat3 otherMatrix;
-
-varying vec2 vMaskCoord;
-varying vec2 vTextureCoord;
-
-void main(void)
-{
-    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
-
-    vTextureCoord = aTextureCoord;
-    vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0)  ).xy;
-}
-`,Nc=`varying vec2 vMaskCoord;
-varying vec2 vTextureCoord;
-
-uniform sampler2D uSampler;
-uniform sampler2D mask;
-uniform float alpha;
-uniform float npmAlpha;
-uniform vec4 maskClamp;
-
-void main(void)
-{
-    float clip = step(3.5,
-        step(maskClamp.x, vMaskCoord.x) +
-        step(maskClamp.y, vMaskCoord.y) +
-        step(vMaskCoord.x, maskClamp.z) +
-        step(vMaskCoord.y, maskClamp.w));
-
-    vec4 original = texture2D(uSampler, vTextureCoord);
-    vec4 masky = texture2D(mask, vMaskCoord);
-    float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);
-
-    original *= (alphaMul * masky.r * alpha * clip);
-
-    gl_FragColor = original;
-}
-`,ba=new Q,_n=function(){function t(r,e){this._texture=r,this.mapCoord=new Q,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=typeof e=="undefined"?.5:e,this.isSimple=!1}return Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(r){this._texture=r,this._textureID=-1},enumerable:!1,configurable:!0}),t.prototype.multiplyUvs=function(r,e){e===void 0&&(e=r);for(var i=this.mapCoord,n=0;n<r.length;n+=2){var a=r[n],s=r[n+1];e[n]=a*i.a+s*i.c+i.tx,e[n+1]=a*i.b+s*i.d+i.ty}return e},t.prototype.update=function(r){var e=this._texture;if(!e||!e.valid||!r&&this._textureID===e._updateID)return!1;this._textureID=e._updateID,this._updateID++;var i=e._uvs;this.mapCoord.set(i.x1-i.x0,i.y1-i.y0,i.x3-i.x0,i.y3-i.y0,i.x0,i.y0);var n=e.orig,a=e.trim;a&&(ba.set(n.width/a.width,0,0,n.height/a.height,-a.x/a.width,-a.y/a.height),this.mapCoord.append(ba));var s=e.baseTexture,o=this.uClampFrame,h=this.clampMargin/s.resolution,u=this.clampOffset;return o[0]=(e._frame.x+h+u)/s.width,o[1]=(e._frame.y+h+u)/s.height,o[2]=(e._frame.x+e._frame.width-h+u)/s.width,o[3]=(e._frame.y+e._frame.height-h+u)/s.height,this.uClampOffset[0]=u/s.realWidth,this.uClampOffset[1]=u/s.realHeight,this.isSimple=e._frame.width===s.width&&e._frame.height===s.height&&e.rotate===0,!0},t}(),Ac=function(t){$(r,t);function r(e,i,n){var a=this,s=null;return typeof e!="string"&&i===void 0&&n===void 0&&(s=e,e=void 0,i=void 0,n=void 0),a=t.call(this,e||Pc,i||Nc,n)||this,a.maskSprite=s,a.maskMatrix=new Q,a}return Object.defineProperty(r.prototype,"maskSprite",{get:function(){return this._maskSprite},set:function(e){this._maskSprite=e,this._maskSprite&&(this._maskSprite.renderable=!1)},enumerable:!1,configurable:!0}),r.prototype.apply=function(e,i,n,a){var s=this._maskSprite,o=s._texture;!o.valid||(o.uvMatrix||(o.uvMatrix=new _n(o,0)),o.uvMatrix.update(),this.uniforms.npmAlpha=o.baseTexture.alphaMode?0:1,this.uniforms.mask=o,this.uniforms.otherMatrix=e.calculateSpriteMatrix(this.maskMatrix,s).prepend(o.uvMatrix.mapCoord),this.uniforms.alpha=s.worldAlpha,this.uniforms.maskClamp=o.uvMatrix.uClampFrame,e.applyFilter(this,i,n,a))},r}($t),Uc=function(){function t(r){this.renderer=r,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}return t.prototype.setMaskStack=function(r){this.maskStack=r,this.renderer.scissor.setMaskStack(r),this.renderer.stencil.setMaskStack(r)},t.prototype.push=function(r,e){var i=e;if(!i.isMaskData){var n=this.maskDataPool.pop()||new fc;n.pooled=!0,n.maskObject=e,i=n}var a=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null;if(i.copyCountersOrReset(a),i.autoDetect&&this.detect(i),i._target=r,i.type!==st.SPRITE&&this.maskStack.push(i),i.enabled)switch(i.type){case st.SCISSOR:this.renderer.scissor.push(i);break;case st.STENCIL:this.renderer.stencil.push(i);break;case st.SPRITE:i.copyCountersOrReset(null),this.pushSpriteMask(i);break}i.type===st.SPRITE&&this.maskStack.push(i)},t.prototype.pop=function(r){var e=this.maskStack.pop();if(!(!e||e._target!==r)){if(e.enabled)switch(e.type){case st.SCISSOR:this.renderer.scissor.pop();break;case st.STENCIL:this.renderer.stencil.pop(e.maskObject);break;case st.SPRITE:this.popSpriteMask(e);break}if(e.reset(),e.pooled&&this.maskDataPool.push(e),this.maskStack.length!==0){var i=this.maskStack[this.maskStack.length-1];i.type===st.SPRITE&&i._filters&&(i._filters[0].maskSprite=i.maskObject)}}},t.prototype.detect=function(r){var e=r.maskObject;e.isSprite?r.type=st.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(r)?r.type=st.SCISSOR:r.type=st.STENCIL},t.prototype.pushSpriteMask=function(r){var e,i,n=r.maskObject,a=r._target,s=r._filters;s||(s=this.alphaMaskPool[this.alphaMaskIndex],s||(s=this.alphaMaskPool[this.alphaMaskIndex]=[new Ac]));var o=this.renderer,h=o.renderTexture,u,l;if(h.current){var c=h.current;u=r.resolution||c.resolution,l=(e=r.multisample)!==null&&e!==void 0?e:c.multisample}else u=r.resolution||o.resolution,l=(i=r.multisample)!==null&&i!==void 0?i:o.multisample;s[0].resolution=u,s[0].multisample=l,s[0].maskSprite=n;var f=a.filterArea;a.filterArea=n.getBounds(!0),o.filter.push(a,s),a.filterArea=f,r._filters||this.alphaMaskIndex++},t.prototype.popSpriteMask=function(r){this.renderer.filter.pop(),r._filters?r._filters[0].maskSprite=null:(this.alphaMaskIndex--,this.alphaMaskPool[this.alphaMaskIndex][0].maskSprite=null)},t.prototype.destroy=function(){this.renderer=null},t}(),uh=function(){function t(r){this.renderer=r,this.maskStack=[],this.glConst=0}return t.prototype.getStackLength=function(){return this.maskStack.length},t.prototype.setMaskStack=function(r){var e=this.renderer.gl,i=this.getStackLength();this.maskStack=r;var n=this.getStackLength();n!==i&&(n===0?e.disable(this.glConst):(e.enable(this.glConst),this._useCurrent()))},t.prototype._useCurrent=function(){},t.prototype.destroy=function(){this.renderer=null,this.maskStack=null},t}(),Ia=new Q,Oc=function(t){$(r,t);function r(e){var i=t.call(this,e)||this;return i.glConst=WebGLRenderingContext.SCISSOR_TEST,i}return r.prototype.getStackLength=function(){var e=this.maskStack[this.maskStack.length-1];return e?e._scissorCounter:0},r.prototype.calcScissorRect=function(e){if(!e._scissorRectLocal){var i=e._scissorRect,n=e.maskObject,a=this.renderer,s=a.renderTexture;n.renderable=!0;var o=n.getBounds();this.roundFrameToPixels(o,s.current?s.current.resolution:a.resolution,s.sourceFrame,s.destinationFrame,a.projection.transform),n.renderable=!1,i&&o.fit(i),e._scissorRectLocal=o}},r.isMatrixRotated=function(e){if(!e)return!1;var i=e.a,n=e.b,a=e.c,s=e.d;return(Math.abs(n)>1e-4||Math.abs(a)>1e-4)&&(Math.abs(i)>1e-4||Math.abs(s)>1e-4)},r.prototype.testScissor=function(e){var i=e.maskObject;if(!i.isFastRect||!i.isFastRect()||r.isMatrixRotated(i.worldTransform)||r.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(e);var n=e._scissorRectLocal;return n.width>0&&n.height>0},r.prototype.roundFrameToPixels=function(e,i,n,a,s){r.isMatrixRotated(s)||(s=s?Ia.copyFrom(s):Ia.identity(),s.translate(-n.x,-n.y).scale(a.width/n.width,a.height/n.height).translate(a.x,a.y),this.renderer.filter.transformAABB(s,e),e.fit(a),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))},r.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()},r.prototype.pop=function(){var e=this.renderer.gl;this.getStackLength()>0?this._useCurrent():e.disable(e.SCISSOR_TEST)},r.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)},r}(uh),Sc=function(t){$(r,t);function r(e){var i=t.call(this,e)||this;return i.glConst=WebGLRenderingContext.STENCIL_TEST,i}return r.prototype.getStackLength=function(){var e=this.maskStack[this.maskStack.length-1];return e?e._stencilCounter:0},r.prototype.push=function(e){var i=e.maskObject,n=this.renderer.gl,a=e._stencilCounter;a===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,a,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()},r.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())},r.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)},r}(uh),Lc=function(){function t(r){this.renderer=r,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new Q,this.transform=null}return t.prototype.update=function(r,e,i,n){this.destinationFrame=r||this.destinationFrame||this.defaultFrame,this.sourceFrame=e||this.sourceFrame||r,this.calculateProjection(this.destinationFrame,this.sourceFrame,i,n),this.transform&&this.projectionMatrix.append(this.transform);var a=this.renderer;a.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,a.globalUniforms.update(),a.shader.shader&&a.shader.syncUniformGroup(a.shader.shader.uniforms.globals)},t.prototype.calculateProjection=function(r,e,i,n){var a=this.projectionMatrix,s=n?-1:1;a.identity(),a.a=1/e.width*2,a.d=s*(1/e.height*2),a.tx=-1-e.x*a.a,a.ty=-s-e.y*a.d},t.prototype.setTransform=function(r){},t.prototype.destroy=function(){this.renderer=null},t}(),Zt=new M,Se=new M,Fc=function(){function t(r){this.renderer=r,this.clearColor=r._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new M,this.destinationFrame=new M,this.viewportFrame=new M}return t.prototype.bind=function(r,e,i){r===void 0&&(r=null);var n=this.renderer;this.current=r;var a,s,o;r?(a=r.baseTexture,o=a.resolution,e||(Zt.width=r.frame.width,Zt.height=r.frame.height,e=Zt),i||(Se.x=r.frame.x,Se.y=r.frame.y,Se.width=e.width,Se.height=e.height,i=Se),s=a.framebuffer):(o=n.resolution,e||(Zt.width=n.screen.width,Zt.height=n.screen.height,e=Zt),i||(i=Zt,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,r||(h.y=n.view.height-(h.y+h.height)),h.ceil(),this.renderer.framebuffer.bind(s,h),this.renderer.projection.update(i,e,o,!s),r?this.renderer.mask.setMaskStack(a.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(e),this.destinationFrame.copyFrom(i)},t.prototype.clear=function(r,e){this.current?r=r||this.current.baseTexture.clearColor:r=r||this.clearColor;var i=this.destinationFrame,n=this.current?this.current.baseTexture:this.renderer.screen,a=i.width!==n.width||i.height!==n.height;if(a){var s=this.viewportFrame,o=s.x,h=s.y,u=s.width,l=s.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(r[0],r[1],r[2],r[3],e),a&&this.renderer.scissor.pop()},t.prototype.resize=function(){this.bind(null)},t.prototype.reset=function(){this.bind(null)},t.prototype.destroy=function(){this.renderer=null},t}();function Gc(t,r,e,i,n){e.buffer.update(n)}var Bc={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];
-        }
-    `},lh={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 Mc(t){for(var r=t.map(function(h){return{data:h,offset:0,dataLen:0,dirty:0}}),e=0,i=0,n=0,a=0;a<r.length;a++){var s=r[a];if(e=lh[s.data.type],s.data.size>1&&(e=Math.max(e,16)*s.data.size),s.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,s.offset=n,n+=e,i=e):(s.offset=n,i+=e,n+=e)}return n=Math.ceil(n/16)*16,{uboElements:r,size:n}}function Xc(t,r){var e=[];for(var i in t)r[i]&&e.push(r[i]);return e.sort(function(n,a){return n.index-a.index}),e}function kc(t,r){if(!t.autoManage)return{size:0,syncFunc:Gc};for(var e=Xc(t.uniforms,r),i=Mc(e),n=i.uboElements,a=i.size,s=[`
-    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;o<n.length;o++){for(var h=n[o],u=t.uniforms[h.data.name],l=h.data.name,c=!1,f=0;f<Ee.length;f++){var d=Ee[f];if(d.codeUbo&&d.test(h.data,u)){s.push("offset = "+h.offset/4+";",Ee[f].codeUbo(h.data.name,u)),c=!0;break}}if(!c)if(h.data.size>1){var p=oh(h.data.type),v=Math.max(lh[h.data.type]/16,1),_=p/v,m=(4-_%4)%4;s.push(`
-                cv = ud.`+l+`.value;
-                v = uv.`+l+`;
-                offset = `+h.offset/4+`;
-
-                t = 0;
-
-                for(var i=0; i < `+h.data.size*v+`; i++)
-                {
-                    for(var j = 0; j < `+_+`; j++)
-                    {
-                        data[offset++] = v[t++];
-                    }
-                    offset += `+m+`;
-                }
-
-                `)}else{var T=Bc[h.data.type];s.push(`
-                cv = ud.`+l+`.value;
-                v = uv.`+l+`;
-                offset = `+h.offset/4+`;
-                `+T+`;
-                `)}}return s.push(`
-       renderer.buffer.update(buffer);
-    `),{size:a,syncFunc:new Function("ud","uv","renderer","syncData","buffer",s.join(`
-`))}}var Hc=function(){function t(r,e){this.program=r,this.uniformData=e,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return t.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},t}();function Dc(t,r){for(var e={},i=r.getProgramParameter(t,r.ACTIVE_ATTRIBUTES),n=0;n<i;n++){var a=r.getActiveAttrib(t,n);if(a.name.indexOf("gl_")!==0){var s=hh(r,a.type),o={type:s,name:a.name,size:oh(s),location:r.getAttribLocation(t,a.name)};e[a.name]=o}}return e}function Vc(t,r){for(var e={},i=r.getProgramParameter(t,r.ACTIVE_UNIFORMS),n=0;n<i;n++){var a=r.getActiveUniform(t,n),s=a.name.replace(/\[.*?\]$/,""),o=!!a.name.match(/\[.*?\]$/),h=hh(r,a.type);e[s]={name:s,index:n,type:h,size:a.size,isArray:o,value:ah(h,a.size)}}return e}function jc(t,r){var e=ya(t,t.VERTEX_SHADER,r.vertexSrc),i=ya(t,t.FRAGMENT_SHADER,r.fragmentSrc),n=t.createProgram();if(t.attachShader(n,e),t.attachShader(n,i),t.linkProgram(n),t.getProgramParameter(n,t.LINK_STATUS)||cc(t,n,e,i),r.attributeData=Dc(n,t),r.uniformData=Vc(n,t),!/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(r.vertexSrc)){var a=Object.keys(r.attributeData);a.sort(function(l,c){return l>c?1:-1});for(var s=0;s<a.length;s++)r.attributeData[a[s]].location=s,t.bindAttribLocation(n,s,a[s]);t.linkProgram(n)}t.deleteShader(e),t.deleteShader(i);var o={};for(var s in r.uniformData){var h=r.uniformData[s];o[s]={location:t.getUniformLocation(n,s),value:ah(h.type,h.size)}}var u=new Hc(n,o);return u}var zc=0,fr={textureCount:0,uboCount:0},Wc=function(){function t(r){this.destroyed=!1,this.renderer=r,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=zc++}return t.prototype.systemCheck=function(){if(!bc())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")},t.prototype.contextChange=function(r){this.gl=r,this.reset()},t.prototype.bind=function(r,e){r.uniforms.globals=this.renderer.globalUniforms;var i=r.program,n=i.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(r);return this.shader=r,this.program!==i&&(this.program=i,this.gl.useProgram(n.program)),e||(fr.textureCount=0,fr.uboCount=0,this.syncUniformGroup(r.uniformGroup,fr)),n},t.prototype.setUniforms=function(r){var e=this.shader.program,i=e.glPrograms[this.renderer.CONTEXT_UID];e.syncUniforms(i.uniformData,r,this.renderer)},t.prototype.syncUniformGroup=function(r,e){var i=this.getGlProgram();(!r.static||r.dirtyId!==i.uniformDirtyGroups[r.id])&&(i.uniformDirtyGroups[r.id]=r.dirtyId,this.syncUniforms(r,i,e))},t.prototype.syncUniforms=function(r,e,i){var n=r.syncUniforms[this.shader.program.id]||this.createSyncGroups(r);n(e.uniformData,r.uniforms,this.renderer,i)},t.prototype.createSyncGroups=function(r){var e=this.getSignature(r,this.shader.program.uniformData,"u");return this.cache[e]||(this.cache[e]=yc(r,this.shader.program.uniformData)),r.syncUniforms[this.shader.program.id]=this.cache[e],r.syncUniforms[this.shader.program.id]},t.prototype.syncUniformBufferGroup=function(r,e){var i=this.getGlProgram();if(!r.static||r.dirtyId!==0||!i.uniformGroups[r.id]){r.dirtyId=0;var n=i.uniformGroups[r.id]||this.createSyncBufferGroup(r,i,e);r.buffer.update(),n(i.uniformData,r.uniforms,this.renderer,fr,r.buffer)}this.renderer.buffer.bindBufferBase(r.buffer,i.uniformBufferBindings[e])},t.prototype.createSyncBufferGroup=function(r,e,i){var n=this.renderer.gl;this.renderer.buffer.bind(r.buffer);var a=this.gl.getUniformBlockIndex(e.program,i);e.uniformBufferBindings[i]=this.shader.uniformBindCount,n.uniformBlockBinding(e.program,a,this.shader.uniformBindCount),this.shader.uniformBindCount++;var s=this.getSignature(r,this.shader.program.uniformData,"ubo"),o=this._uboCache[s];if(o||(o=this._uboCache[s]=kc(r,this.shader.program.uniformData)),r.autoManage){var h=new Float32Array(o.size/4);r.buffer.update(h)}return e.uniformGroups[r.id]=o.syncFunc,e.uniformGroups[r.id]},t.prototype.getSignature=function(r,e,i){var n=r.uniforms,a=[i+"-"];for(var s in n)a.push(s),e[s]&&a.push(e[s].type);return a.join("-")},t.prototype.getGlProgram=function(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null},t.prototype.generateProgram=function(r){var e=this.gl,i=r.program,n=jc(e,i);return i.glPrograms[this.renderer.CONTEXT_UID]=n,n},t.prototype.reset=function(){this.program=null,this.shader=null},t.prototype.destroy=function(){this.renderer=null,this.destroyed=!0},t}();function Yc(t,r){return r===void 0&&(r=[]),r[P.NORMAL]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],r[P.ADD]=[t.ONE,t.ONE],r[P.MULTIPLY]=[t.DST_COLOR,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA],r[P.SCREEN]=[t.ONE,t.ONE_MINUS_SRC_COLOR,t.ONE,t.ONE_MINUS_SRC_ALPHA],r[P.OVERLAY]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],r[P.DARKEN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],r[P.LIGHTEN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],r[P.COLOR_DODGE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],r[P.COLOR_BURN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],r[P.HARD_LIGHT]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],r[P.SOFT_LIGHT]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],r[P.DIFFERENCE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],r[P.EXCLUSION]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],r[P.HUE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],r[P.SATURATION]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],r[P.COLOR]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],r[P.LUMINOSITY]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],r[P.NONE]=[0,0],r[P.NORMAL_NPM]=[t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA],r[P.ADD_NPM]=[t.SRC_ALPHA,t.ONE,t.ONE,t.ONE],r[P.SCREEN_NPM]=[t.SRC_ALPHA,t.ONE_MINUS_SRC_COLOR,t.ONE,t.ONE_MINUS_SRC_ALPHA],r[P.SRC_IN]=[t.DST_ALPHA,t.ZERO],r[P.SRC_OUT]=[t.ONE_MINUS_DST_ALPHA,t.ZERO],r[P.SRC_ATOP]=[t.DST_ALPHA,t.ONE_MINUS_SRC_ALPHA],r[P.DST_OVER]=[t.ONE_MINUS_DST_ALPHA,t.ONE],r[P.DST_IN]=[t.ZERO,t.SRC_ALPHA],r[P.DST_OUT]=[t.ZERO,t.ONE_MINUS_SRC_ALPHA],r[P.DST_ATOP]=[t.ONE_MINUS_DST_ALPHA,t.SRC_ALPHA],r[P.XOR]=[t.ONE_MINUS_DST_ALPHA,t.ONE_MINUS_SRC_ALPHA],r[P.SUBTRACT]=[t.ONE,t.ONE,t.ONE,t.ONE,t.FUNC_REVERSE_SUBTRACT,t.FUNC_ADD],r}var $c=0,qc=1,Kc=2,Zc=3,Jc=4,Qc=5,td=function(){function t(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=P.NONE,this._blendEq=!1,this.map=[],this.map[$c]=this.setBlend,this.map[qc]=this.setOffset,this.map[Kc]=this.setCullFace,this.map[Zc]=this.setDepthTest,this.map[Jc]=this.setFrontFace,this.map[Qc]=this.setDepthMask,this.checks=[],this.defaultState=new ue,this.defaultState.blend=!0}return t.prototype.contextChange=function(r){this.gl=r,this.blendModes=Yc(r),this.set(this.defaultState),this.reset()},t.prototype.set=function(r){if(r=r||this.defaultState,this.stateId!==r.data){for(var e=this.stateId^r.data,i=0;e;)e&1&&this.map[i].call(this,!!(r.data&1<<i)),e=e>>1,i++;this.stateId=r.data}for(var i=0;i<this.checks.length;i++)this.checks[i](this,r)},t.prototype.forceState=function(r){r=r||this.defaultState;for(var e=0;e<this.map.length;e++)this.map[e].call(this,!!(r.data&1<<e));for(var e=0;e<this.checks.length;e++)this.checks[e](this,r);this.stateId=r.data},t.prototype.setBlend=function(r){this.updateCheck(t.checkBlendMode,r),this.gl[r?"enable":"disable"](this.gl.BLEND)},t.prototype.setOffset=function(r){this.updateCheck(t.checkPolygonOffset,r),this.gl[r?"enable":"disable"](this.gl.POLYGON_OFFSET_FILL)},t.prototype.setDepthTest=function(r){this.gl[r?"enable":"disable"](this.gl.DEPTH_TEST)},t.prototype.setDepthMask=function(r){this.gl.depthMask(r)},t.prototype.setCullFace=function(r){this.gl[r?"enable":"disable"](this.gl.CULL_FACE)},t.prototype.setFrontFace=function(r){this.gl.frontFace(this.gl[r?"CW":"CCW"])},t.prototype.setBlendMode=function(r){if(r!==this.blendMode){this.blendMode=r;var e=this.blendModes[r],i=this.gl;e.length===2?i.blendFunc(e[0],e[1]):i.blendFuncSeparate(e[0],e[1],e[2],e[3]),e.length===6?(this._blendEq=!0,i.blendEquationSeparate(e[4],e[5])):this._blendEq&&(this._blendEq=!1,i.blendEquationSeparate(i.FUNC_ADD,i.FUNC_ADD))}},t.prototype.setPolygonOffset=function(r,e){this.gl.polygonOffset(r,e)},t.prototype.reset=function(){this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1),this.forceState(this.defaultState),this._blendEq=!0,this.blendMode=-1,this.setBlendMode(0)},t.prototype.updateCheck=function(r,e){var i=this.checks.indexOf(r);e&&i===-1?this.checks.push(r):!e&&i!==-1&&this.checks.splice(i,1)},t.checkBlendMode=function(r,e){r.setBlendMode(e.blendMode)},t.checkPolygonOffset=function(r,e){r.setPolygonOffset(1,e.polygonOffset)},t.prototype.destroy=function(){this.gl=null},t}(),ed=function(){function t(r){this.renderer=r,this.count=0,this.checkCount=0,this.maxIdle=N.GC_MAX_IDLE,this.checkCountMax=N.GC_MAX_CHECK_COUNT,this.mode=N.GC_MODE}return t.prototype.postrender=function(){!this.renderer.renderingToScreen||(this.count++,this.mode!==wi.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())))},t.prototype.run=function(){for(var r=this.renderer.texture,e=r.managedTextures,i=!1,n=0;n<e.length;n++){var a=e[n];!a.framebuffer&&this.count-a.touched>this.maxIdle&&(r.destroyTexture(a,!0),e[n]=null,i=!0)}if(i){for(var s=0,n=0;n<e.length;n++)e[n]!==null&&(e[s++]=e[n]);e.length=s}},t.prototype.unload=function(r){var e=this.renderer.texture,i=r._texture;i&&!i.framebuffer&&e.destroyTexture(i);for(var n=r.children.length-1;n>=0;n--)this.unload(r.children[n])},t.prototype.destroy=function(){this.renderer=null},t}();function rd(t){var r,e,i,n,a,s,o,h,u,l,c,f,d,p,v,_,m,T,x,E,g,y,b;return"WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext?b=(r={},r[O.UNSIGNED_BYTE]=(e={},e[R.RGBA]=t.RGBA8,e[R.RGB]=t.RGB8,e[R.RG]=t.RG8,e[R.RED]=t.R8,e[R.RGBA_INTEGER]=t.RGBA8UI,e[R.RGB_INTEGER]=t.RGB8UI,e[R.RG_INTEGER]=t.RG8UI,e[R.RED_INTEGER]=t.R8UI,e[R.ALPHA]=t.ALPHA,e[R.LUMINANCE]=t.LUMINANCE,e[R.LUMINANCE_ALPHA]=t.LUMINANCE_ALPHA,e),r[O.BYTE]=(i={},i[R.RGBA]=t.RGBA8_SNORM,i[R.RGB]=t.RGB8_SNORM,i[R.RG]=t.RG8_SNORM,i[R.RED]=t.R8_SNORM,i[R.RGBA_INTEGER]=t.RGBA8I,i[R.RGB_INTEGER]=t.RGB8I,i[R.RG_INTEGER]=t.RG8I,i[R.RED_INTEGER]=t.R8I,i),r[O.UNSIGNED_SHORT]=(n={},n[R.RGBA_INTEGER]=t.RGBA16UI,n[R.RGB_INTEGER]=t.RGB16UI,n[R.RG_INTEGER]=t.RG16UI,n[R.RED_INTEGER]=t.R16UI,n[R.DEPTH_COMPONENT]=t.DEPTH_COMPONENT16,n),r[O.SHORT]=(a={},a[R.RGBA_INTEGER]=t.RGBA16I,a[R.RGB_INTEGER]=t.RGB16I,a[R.RG_INTEGER]=t.RG16I,a[R.RED_INTEGER]=t.R16I,a),r[O.UNSIGNED_INT]=(s={},s[R.RGBA_INTEGER]=t.RGBA32UI,s[R.RGB_INTEGER]=t.RGB32UI,s[R.RG_INTEGER]=t.RG32UI,s[R.RED_INTEGER]=t.R32UI,s[R.DEPTH_COMPONENT]=t.DEPTH_COMPONENT24,s),r[O.INT]=(o={},o[R.RGBA_INTEGER]=t.RGBA32I,o[R.RGB_INTEGER]=t.RGB32I,o[R.RG_INTEGER]=t.RG32I,o[R.RED_INTEGER]=t.R32I,o),r[O.FLOAT]=(h={},h[R.RGBA]=t.RGBA32F,h[R.RGB]=t.RGB32F,h[R.RG]=t.RG32F,h[R.RED]=t.R32F,h[R.DEPTH_COMPONENT]=t.DEPTH_COMPONENT32F,h),r[O.HALF_FLOAT]=(u={},u[R.RGBA]=t.RGBA16F,u[R.RGB]=t.RGB16F,u[R.RG]=t.RG16F,u[R.RED]=t.R16F,u),r[O.UNSIGNED_SHORT_5_6_5]=(l={},l[R.RGB]=t.RGB565,l),r[O.UNSIGNED_SHORT_4_4_4_4]=(c={},c[R.RGBA]=t.RGBA4,c),r[O.UNSIGNED_SHORT_5_5_5_1]=(f={},f[R.RGBA]=t.RGB5_A1,f),r[O.UNSIGNED_INT_2_10_10_10_REV]=(d={},d[R.RGBA]=t.RGB10_A2,d[R.RGBA_INTEGER]=t.RGB10_A2UI,d),r[O.UNSIGNED_INT_10F_11F_11F_REV]=(p={},p[R.RGB]=t.R11F_G11F_B10F,p),r[O.UNSIGNED_INT_5_9_9_9_REV]=(v={},v[R.RGB]=t.RGB9_E5,v),r[O.UNSIGNED_INT_24_8]=(_={},_[R.DEPTH_STENCIL]=t.DEPTH24_STENCIL8,_),r[O.FLOAT_32_UNSIGNED_INT_24_8_REV]=(m={},m[R.DEPTH_STENCIL]=t.DEPTH32F_STENCIL8,m),r):b=(T={},T[O.UNSIGNED_BYTE]=(x={},x[R.RGBA]=t.RGBA,x[R.RGB]=t.RGB,x[R.ALPHA]=t.ALPHA,x[R.LUMINANCE]=t.LUMINANCE,x[R.LUMINANCE_ALPHA]=t.LUMINANCE_ALPHA,x),T[O.UNSIGNED_SHORT_5_6_5]=(E={},E[R.RGB]=t.RGB,E),T[O.UNSIGNED_SHORT_4_4_4_4]=(g={},g[R.RGBA]=t.RGBA,g),T[O.UNSIGNED_SHORT_5_5_5_1]=(y={},y[R.RGBA]=t.RGBA,y),T),b}var Jr=function(){function t(r){this.texture=r,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=O.UNSIGNED_BYTE,this.internalFormat=R.RGBA,this.samplerType=0}return t}(),id=function(){function t(r){this.renderer=r,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new H,this.hasIntegerTextures=!1}return t.prototype.contextChange=function(){var r=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=rd(r);var e=r.getParameter(r.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=e;for(var i=0;i<e;i++)this.boundTextures[i]=null;this.emptyTextures={};var n=new Jr(r.createTexture());r.bindTexture(r.TEXTURE_2D,n.texture),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,1,1,0,r.RGBA,r.UNSIGNED_BYTE,new Uint8Array(4)),this.emptyTextures[r.TEXTURE_2D]=n,this.emptyTextures[r.TEXTURE_CUBE_MAP]=new Jr(r.createTexture()),r.bindTexture(r.TEXTURE_CUBE_MAP,this.emptyTextures[r.TEXTURE_CUBE_MAP].texture);for(var i=0;i<6;i++)r.texImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X+i,0,r.RGBA,1,1,0,r.RGBA,r.UNSIGNED_BYTE,null);r.texParameteri(r.TEXTURE_CUBE_MAP,r.TEXTURE_MAG_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_CUBE_MAP,r.TEXTURE_MIN_FILTER,r.LINEAR);for(var i=0;i<this.boundTextures.length;i++)this.bind(null,i)},t.prototype.bind=function(r,e){e===void 0&&(e=0);var i=this.gl;if(r=r==null?void 0:r.castToBaseTexture(),r&&r.valid&&!r.parentTextureArray){r.touched=this.renderer.textureGC.count;var n=r._glTextures[this.CONTEXT_UID]||this.initTexture(r);this.boundTextures[e]!==r&&(this.currentLocation!==e&&(this.currentLocation=e,i.activeTexture(i.TEXTURE0+e)),i.bindTexture(r.target,n.texture)),n.dirtyId!==r.dirtyId&&(this.currentLocation!==e&&(this.currentLocation=e,i.activeTexture(i.TEXTURE0+e)),this.updateTexture(r)),this.boundTextures[e]=r}else this.currentLocation!==e&&(this.currentLocation=e,i.activeTexture(i.TEXTURE0+e)),i.bindTexture(i.TEXTURE_2D,this.emptyTextures[i.TEXTURE_2D].texture),this.boundTextures[e]=null},t.prototype.reset=function(){this._unknownBoundTextures=!0,this.hasIntegerTextures=!1,this.currentLocation=-1;for(var r=0;r<this.boundTextures.length;r++)this.boundTextures[r]=this.unknownTexture},t.prototype.unbind=function(r){var e=this,i=e.gl,n=e.boundTextures;if(this._unknownBoundTextures){this._unknownBoundTextures=!1;for(var a=0;a<n.length;a++)n[a]===this.unknownTexture&&this.bind(null,a)}for(var a=0;a<n.length;a++)n[a]===r&&(this.currentLocation!==a&&(i.activeTexture(i.TEXTURE0+a),this.currentLocation=a),i.bindTexture(r.target,this.emptyTextures[r.target].texture),n[a]=null)},t.prototype.ensureSamplerType=function(r){var e=this,i=e.boundTextures,n=e.hasIntegerTextures,a=e.CONTEXT_UID;if(!!n)for(var s=r-1;s>=0;--s){var o=i[s];if(o){var h=o._glTextures[a];h.samplerType!==Nr.FLOAT&&this.renderer.texture.unbind(o)}}},t.prototype.initTexture=function(r){var e=new Jr(this.gl.createTexture());return e.dirtyId=-1,r._glTextures[this.CONTEXT_UID]=e,this.managedTextures.push(r),r.on("dispose",this.destroyTexture,this),e},t.prototype.initTextureType=function(r,e){var i,n;e.internalFormat=(n=(i=this.internalFormats[r.type])===null||i===void 0?void 0:i[r.format])!==null&&n!==void 0?n:r.format,this.webGLVersion===2&&r.type===O.HALF_FLOAT?e.type=this.gl.HALF_FLOAT:e.type=r.type},t.prototype.updateTexture=function(r){var e=r._glTextures[this.CONTEXT_UID];if(!!e){var i=this.renderer;if(this.initTextureType(r,e),r.resource&&r.resource.upload(i,r,e))e.samplerType!==Nr.FLOAT&&(this.hasIntegerTextures=!0);else{var n=r.realWidth,a=r.realHeight,s=i.gl;(e.width!==n||e.height!==a||e.dirtyId<0)&&(e.width=n,e.height=a,s.texImage2D(r.target,0,e.internalFormat,n,a,0,r.format,e.type,null))}r.dirtyStyleId!==e.dirtyStyleId&&this.updateTextureStyle(r),e.dirtyId=r.dirtyId}},t.prototype.destroyTexture=function(r,e){var i=this.gl;if(r=r.castToBaseTexture(),r._glTextures[this.CONTEXT_UID]&&(this.unbind(r),i.deleteTexture(r._glTextures[this.CONTEXT_UID].texture),r.off("dispose",this.destroyTexture,this),delete r._glTextures[this.CONTEXT_UID],!e)){var n=this.managedTextures.indexOf(r);n!==-1&&Gt(this.managedTextures,n,1)}},t.prototype.updateTextureStyle=function(r){var e=r._glTextures[this.CONTEXT_UID];!e||((r.mipmap===Xt.POW2||this.webGLVersion!==2)&&!r.isPowerOfTwo?e.mipmap=!1:e.mipmap=r.mipmap>=1,this.webGLVersion!==2&&!r.isPowerOfTwo?e.wrapMode=Ft.CLAMP:e.wrapMode=r.wrapMode,r.resource&&r.resource.style(this.renderer,r,e)||this.setStyle(r,e),e.dirtyStyleId=r.dirtyStyleId)},t.prototype.setStyle=function(r,e){var i=this.gl;if(e.mipmap&&r.mipmap!==Xt.ON_MANUAL&&i.generateMipmap(r.target),i.texParameteri(r.target,i.TEXTURE_WRAP_S,e.wrapMode),i.texParameteri(r.target,i.TEXTURE_WRAP_T,e.wrapMode),e.mipmap){i.texParameteri(r.target,i.TEXTURE_MIN_FILTER,r.scaleMode===Lt.LINEAR?i.LINEAR_MIPMAP_LINEAR:i.NEAREST_MIPMAP_NEAREST);var n=this.renderer.context.extensions.anisotropicFiltering;if(n&&r.anisotropicLevel>0&&r.scaleMode===Lt.LINEAR){var a=Math.min(r.anisotropicLevel,i.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT));i.texParameterf(r.target,n.TEXTURE_MAX_ANISOTROPY_EXT,a)}}else i.texParameteri(r.target,i.TEXTURE_MIN_FILTER,r.scaleMode===Lt.LINEAR?i.LINEAR:i.NEAREST);i.texParameteri(r.target,i.TEXTURE_MAG_FILTER,r.scaleMode===Lt.LINEAR?i.LINEAR:i.NEAREST)},t.prototype.destroy=function(){this.renderer=null},t}(),Qr=new Q,nd=function(t){$(r,t);function r(e,i){e===void 0&&(e=ke.UNKNOWN);var n=t.call(this)||this;return i=Object.assign({},N.RENDER_OPTIONS,i),n.options=i,n.type=e,n.screen=new M(0,0,i.width,i.height),n.view=i.view||document.createElement("canvas"),n.resolution=i.resolution||N.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&&(He("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 r.prototype.initPlugins=function(e){for(var i in e)this.plugins[i]=new e[i](this)},Object.defineProperty(r.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),r.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,a=this.view.height/this.resolution;this.screen.width=n,this.screen.height=a,this.autoDensity&&(this.view.style.width=n+"px",this.view.style.height=a+"px"),this.emit("resize",n,a)},r.prototype.generateTexture=function(e,i,n,a){i===void 0&&(i={}),typeof i=="number"&&(He("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),i={scaleMode:i,resolution:n,region:a});var s=i.region,o=Hf(i,["region"]);a=s||e.getLocalBounds(null,!0),a.width===0&&(a.width=1),a.height===0&&(a.height=1);var h=he.create(Ui({width:a.width,height:a.height},o));return Qr.tx=-a.x,Qr.ty=-a.y,this.render(e,{renderTexture:h,clear:!1,transform:Qr,skipUpdateTransform:!!e.parent}),h},r.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=ke.UNKNOWN,n.view=null,n.screen=null,n._tempDisplayObjectParent=null,n.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(r.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(e){this._backgroundColor=e,this._backgroundColorString=Vo(e),Re(e,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(e){this._backgroundColorRgba[3]=e},enumerable:!1,configurable:!0}),r}(we),ad=function(){function t(r){this.buffer=r||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return t}(),sd=function(){function t(r){this.renderer=r,this.managedBuffers={},this.boundBufferBases={}}return t.prototype.destroy=function(){this.renderer=null},t.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},t.prototype.bind=function(r){var e=this,i=e.gl,n=e.CONTEXT_UID,a=r._glBuffers[n]||this.createGLBuffer(r);i.bindBuffer(r.type,a.buffer)},t.prototype.bindBufferBase=function(r,e){var i=this,n=i.gl,a=i.CONTEXT_UID;if(this.boundBufferBases[e]!==r){var s=r._glBuffers[a]||this.createGLBuffer(r);this.boundBufferBases[e]=r,n.bindBufferBase(n.UNIFORM_BUFFER,e,s.buffer)}},t.prototype.bindBufferRange=function(r,e,i){var n=this,a=n.gl,s=n.CONTEXT_UID;i=i||0;var o=r._glBuffers[s]||this.createGLBuffer(r);a.bindBufferRange(a.UNIFORM_BUFFER,e||0,o.buffer,i*256,256)},t.prototype.update=function(r){var e=this,i=e.gl,n=e.CONTEXT_UID,a=r._glBuffers[n];if(r._updateID!==a.updateID)if(a.updateID=r._updateID,i.bindBuffer(r.type,a.buffer),a.byteLength>=r.data.byteLength)i.bufferSubData(r.type,0,r.data);else{var s=r.static?i.STATIC_DRAW:i.DYNAMIC_DRAW;a.byteLength=r.data.byteLength,i.bufferData(r.type,r.data,s)}},t.prototype.dispose=function(r,e){if(!!this.managedBuffers[r.id]){delete this.managedBuffers[r.id];var i=r._glBuffers[this.CONTEXT_UID],n=this.gl;r.disposeRunner.remove(this),i&&(e||n.deleteBuffer(i.buffer),delete r._glBuffers[this.CONTEXT_UID])}},t.prototype.disposeAll=function(r){for(var e=Object.keys(this.managedBuffers),i=0;i<e.length;i++)this.dispose(this.managedBuffers[e[i]],r)},t.prototype.createGLBuffer=function(r){var e=this,i=e.CONTEXT_UID,n=e.gl;return r._glBuffers[i]=new ad(n.createBuffer()),this.managedBuffers[r.id]=r,r.disposeRunner.add(this),r._glBuffers[i]},t}(),od=function(t){$(r,t);function r(e){var i=t.call(this,ke.WEBGL,e)||this;return e=i.options,i.gl=null,i.CONTEXT_UID=0,i.runners={destroy:new ot("destroy"),contextChange:new ot("contextChange"),reset:new ot("reset"),update:new ot("update"),postrender:new ot("postrender"),prerender:new ot("prerender"),resize:new ot("resize")},i.runners.contextChange.add(i),i.globalUniforms=new se({projectionMatrix:new Q},!0),i.addSystem(Uc,"mask").addSystem(sc,"context").addSystem(td,"state").addSystem(Wc,"shader").addSystem(id,"texture").addSystem(sd,"buffer").addSystem(lc,"geometry").addSystem(uc,"framebuffer").addSystem(Oc,"scissor").addSystem(Sc,"stencil").addSystem(Lc,"projection").addSystem(ed,"textureGC").addSystem(nc,"filter").addSystem(Fc,"renderTexture").addSystem(ac,"batch"),i.initPlugins(r.__plugins),i.multisample=void 0,e.context?i.context.initFromContext(e.context):i.context.initFromOptions({alpha:!!i.useContextAlpha,antialias:e.antialias,premultipliedAlpha:i.useContextAlpha&&i.useContextAlpha!=="notMultiplied",stencil:!0,preserveDrawingBuffer:e.preserveDrawingBuffer,powerPreference:i.options.powerPreference}),i.renderingToScreen=!0,Hh(i.context.webGLVersion===2?"WebGL 2":"WebGL 1"),i.resize(i.options.width,i.options.height),i}return r.create=function(e){if(Dh())return new r(e);throw new Error('WebGL unsupported in this browser, use "pixi.js-legacy" for fallback canvas2d support.')},r.prototype.contextChange=function(){var e=this.gl,i;if(this.context.webGLVersion===1){var n=e.getParameter(e.FRAMEBUFFER_BINDING);e.bindFramebuffer(e.FRAMEBUFFER,null),i=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.FRAMEBUFFER,n)}else{var n=e.getParameter(e.DRAW_FRAMEBUFFER_BINDING);e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),i=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,n)}i>=et.HIGH?this.multisample=et.HIGH:i>=et.MEDIUM?this.multisample=et.MEDIUM:i>=et.LOW?this.multisample=et.LOW:this.multisample=et.NONE},r.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 a in this.runners)this.runners[a].add(n);return this},r.prototype.render=function(e,i){var n,a,s,o;if(i&&(i instanceof he?(He("6.0.0","Renderer#render arguments changed, use options instead."),n=i,a=arguments[2],s=arguments[3],o=arguments[4]):(n=i.renderTexture,a=i.clear,s=i.transform,o=i.skipUpdateTransform)),this.renderingToScreen=!n,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=s,!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(),(a!==void 0?a: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")}},r.prototype.generateTexture=function(e,i,n,a){i===void 0&&(i={});var s=t.prototype.generateTexture.call(this,e,i,n,a);return this.framebuffer.blit(),s},r.prototype.resize=function(e,i){t.prototype.resize.call(this,e,i),this.runners.resize.emit(this.screen.height,this.screen.width)},r.prototype.reset=function(){return this.runners.reset.emit(),this},r.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},r.prototype.destroy=function(e){this.runners.destroy.emit();for(var i in this.runners)this.runners[i].destroy();t.prototype.destroy.call(this,e),this.gl=null},Object.defineProperty(r.prototype,"extract",{get:function(){return He("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),r.registerPlugin=function(e,i){r.__plugins=r.__plugins||{},r.__plugins[e]=i},r}(nd);function hd(t){return od.create(t)}var ud=`attribute vec2 aVertexPosition;
-attribute vec2 aTextureCoord;
-
-uniform mat3 projectionMatrix;
-
-varying vec2 vTextureCoord;
-
-void main(void)
-{
-    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
-    vTextureCoord = aTextureCoord;
-}`,ld=`attribute vec2 aVertexPosition;
-
-uniform mat3 projectionMatrix;
-
-varying vec2 vTextureCoord;
-
-uniform vec4 inputSize;
-uniform vec4 outputFrame;
-
-vec4 filterVertexPosition( void )
-{
-    vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
-
-    return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
-}
-
-vec2 filterTextureCoord( void )
-{
-    return aVertexPosition * (outputFrame.zw * inputSize.zw);
-}
-
-void main(void)
-{
-    gl_Position = filterVertexPosition();
-    vTextureCoord = filterTextureCoord();
-}
-`,fd=ud,fh=ld,Si=function(){function t(){this.texArray=null,this.blend=0,this.type=vt.TRIANGLES,this.start=0,this.size=0,this.data=null}return t}(),Li=function(){function t(){this.elements=[],this.ids=[],this.count=0}return t.prototype.clear=function(){for(var r=0;r<this.count;r++)this.elements[r]=null;this.count=0},t}(),Fi=function(){function t(r){typeof r=="number"?this.rawBinaryData=new ArrayBuffer(r):r instanceof Uint8Array?this.rawBinaryData=r.buffer:this.rawBinaryData=r,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}return Object.defineProperty(t.prototype,"int8View",{get:function(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uint8View",{get:function(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"int16View",{get:function(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uint16View",{get:function(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"int32View",{get:function(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View},enumerable:!1,configurable:!0}),t.prototype.view=function(r){return this[r+"View"]},t.prototype.destroy=function(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null},t.sizeOf=function(r){switch(r){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(r+" isn't a valid view type")}},t}(),cd=function(t){$(r,t);function r(e){var i=t.call(this,e)||this;return i.shaderGenerator=null,i.geometryClass=null,i.vertexSize=null,i.state=ue.for2d(),i.size=N.SPRITE_BATCH_SIZE*4,i._vertexCount=0,i._indexCount=0,i._bufferedElements=[],i._bufferedTextures=[],i._bufferSize=0,i._shader=null,i._packedGeometries=[],i._packedGeometryPoolSize=2,i._flushId=0,i._aBuffers={},i._iBuffers={},i.MAX_TEXTURES=1,i.renderer.on("prerender",i.onPrerender,i),e.runners.contextChange.add(i),i._dcIndex=0,i._aIndex=0,i._iIndex=0,i._attributeBuffer=null,i._indexBuffer=null,i._tempBoundTextures=[],i}return r.prototype.contextChange=function(){var e=this.renderer.gl;N.PREFER_ENV===Mt.WEBGL_LEGACY?this.MAX_TEXTURES=1:(this.MAX_TEXTURES=Math.min(e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),N.SPRITE_MAX_TEXTURES),this.MAX_TEXTURES=xc(this.MAX_TEXTURES,e)),this._shader=this.shaderGenerator.generateShader(this.MAX_TEXTURES);for(var i=0;i<this._packedGeometryPoolSize;i++)this._packedGeometries[i]=new this.geometryClass;this.initFlushBuffers()},r.prototype.initFlushBuffers=function(){for(var e=r._drawCallPool,i=r._textureArrayPool,n=this.size/4,a=Math.floor(n/this.MAX_TEXTURES)+1;e.length<n;)e.push(new Si);for(;i.length<a;)i.push(new Li);for(var s=0;s<this.MAX_TEXTURES;s++)this._tempBoundTextures[s]=null},r.prototype.onPrerender=function(){this._flushId=0},r.prototype.render=function(e){!e._texture.valid||(this._vertexCount+e.vertexData.length/2>this.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)},r.prototype.buildTexturesAndDrawCalls=function(){var e=this,i=e._bufferedTextures,n=e.MAX_TEXTURES,a=r._textureArrayPool,s=this.renderer.batch,o=this._tempBoundTextures,h=this.renderer.textureGC.count,u=++H._globalBatch,l=0,c=a[0],f=0;s.copyBoundTextures(o,n);for(var d=0;d<this._bufferSize;++d){var p=i[d];i[d]=null,p._batchEnabled!==u&&(c.count>=n&&(s.boundArray(c,o,u,n),this.buildDrawCalls(c,f,d),f=d,c=a[++l],++u),p._batchEnabled=u,p.touched=h,c.elements[c.count++]=p)}c.count>0&&(s.boundArray(c,o,u,n),this.buildDrawCalls(c,f,this._bufferSize),++l,++u);for(var d=0;d<o.length;d++)o[d]=null;H._globalBatch=u},r.prototype.buildDrawCalls=function(e,i,n){var a=this,s=a._bufferedElements,o=a._attributeBuffer,h=a._indexBuffer,u=a.vertexSize,l=r._drawCallPool,c=this._dcIndex,f=this._aIndex,d=this._iIndex,p=l[c];p.start=this._iIndex,p.texArray=e;for(var v=i;v<n;++v){var _=s[v],m=_._texture.baseTexture,T=zo[m.alphaMode?1:0][_.blendMode];s[v]=null,i<v&&p.blend!==T&&(p.size=d-p.start,i=v,p=l[++c],p.texArray=e,p.start=d),this.packInterleavedGeometry(_,o,h,f,d),f+=_.vertexData.length/2*u,d+=_.indices.length,p.blend=T}i<n&&(p.size=d-p.start,++c),this._dcIndex=c,this._aIndex=f,this._iIndex=d},r.prototype.bindAndClearTexArray=function(e){for(var i=this.renderer.texture,n=0;n<e.count;n++)i.bind(e.elements[n],e.ids[n]),e.elements[n]=null;e.count=0},r.prototype.updateGeometry=function(){var e=this,i=e._packedGeometries,n=e._attributeBuffer,a=e._indexBuffer;N.CAN_UPLOAD_SAME_BUFFER?(i[this._flushId]._buffer.update(n.rawBinaryData),i[this._flushId]._indexBuffer.update(a),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,i[this._flushId]=new this.geometryClass),i[this._flushId]._buffer.update(n.rawBinaryData),i[this._flushId]._indexBuffer.update(a),this.renderer.geometry.bind(i[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++)},r.prototype.drawBatches=function(){for(var e=this._dcIndex,i=this.renderer,n=i.gl,a=i.state,s=r._drawCallPool,o=null,h=0;h<e;h++){var u=s[h],l=u.texArray,c=u.type,f=u.size,d=u.start,p=u.blend;o!==l&&(o=l,this.bindAndClearTexArray(l)),this.state.blendMode=p,a.set(this.state),n.drawElements(c,f,n.UNSIGNED_SHORT,d*2)}},r.prototype.flush=function(){this._vertexCount!==0&&(this._attributeBuffer=this.getAttributeBuffer(this._vertexCount),this._indexBuffer=this.getIndexBuffer(this._indexCount),this._aIndex=0,this._iIndex=0,this._dcIndex=0,this.buildTexturesAndDrawCalls(),this.updateGeometry(),this.drawBatches(),this._bufferSize=0,this._vertexCount=0,this._indexCount=0)},r.prototype.start=function(){this.renderer.state.set(this.state),this.renderer.texture.ensureSamplerType(this.MAX_TEXTURES),this.renderer.shader.bind(this._shader),N.CAN_UPLOAD_SAME_BUFFER&&this.renderer.geometry.bind(this._packedGeometries[this._flushId])},r.prototype.stop=function(){this.flush()},r.prototype.destroy=function(){for(var e=0;e<this._packedGeometryPoolSize;e++)this._packedGeometries[e]&&this._packedGeometries[e].destroy();this.renderer.off("prerender",this.onPrerender,this),this._aBuffers=null,this._iBuffers=null,this._packedGeometries=null,this._attributeBuffer=null,this._indexBuffer=null,this._shader&&(this._shader.destroy(),this._shader=null),t.prototype.destroy.call(this)},r.prototype.getAttributeBuffer=function(e){var i=Ar(Math.ceil(e/8)),n=la(i),a=i*8;this._aBuffers.length<=n&&(this._iBuffers.length=n+1);var s=this._aBuffers[a];return s||(this._aBuffers[a]=s=new Fi(a*this.vertexSize*4)),s},r.prototype.getIndexBuffer=function(e){var i=Ar(Math.ceil(e/12)),n=la(i),a=i*12;this._iBuffers.length<=n&&(this._iBuffers.length=n+1);var s=this._iBuffers[n];return s||(this._iBuffers[n]=s=new Uint16Array(a)),s},r.prototype.packInterleavedGeometry=function(e,i,n,a,s){for(var o=i.uint32View,h=i.float32View,u=a/this.vertexSize,l=e.uvs,c=e.indices,f=e.vertexData,d=e._texture.baseTexture._batchLocation,p=Math.min(e.worldAlpha,1),v=p<1&&e._texture.baseTexture.alphaMode?pn(e._tintRGB,p):e._tintRGB+(p*255<<24),_=0;_<f.length;_+=2)h[a++]=f[_],h[a++]=f[_+1],h[a++]=l[_],h[a++]=l[_+1],o[a++]=v,h[a++]=d;for(var _=0;_<c.length;_++)n[s++]=u+c[_]},r._drawCallPool=[],r._textureArrayPool=[],r}(Br),dd=function(){function t(r,e){if(this.vertexSrc=r,this.fragTemplate=e,this.programCache={},this.defaultGroupCache={},e.indexOf("%count%")<0)throw new Error('Fragment template must contain "%count%".');if(e.indexOf("%forloop%")<0)throw new Error('Fragment template must contain "%forloop%".')}return t.prototype.generateShader=function(r){if(!this.programCache[r]){for(var e=new Int32Array(r),i=0;i<r;i++)e[i]=i;this.defaultGroupCache[r]=se.from({uSamplers:e},!0);var n=this.fragTemplate;n=n.replace(/%count%/gi,""+r),n=n.replace(/%forloop%/gi,this.generateSampleSrc(r)),this.programCache[r]=new tr(this.vertexSrc,n)}var a={tint:new Float32Array([1,1,1,1]),translationMatrix:new Q,default:this.defaultGroupCache[r]};return new Wt(this.programCache[r],a)},t.prototype.generateSampleSrc=function(r){var e="";e+=`
-`,e+=`
-`;for(var i=0;i<r;i++)i>0&&(e+=`
-else `),i<r-1&&(e+="if(vTextureId < "+i+".5)"),e+=`
-{`,e+=`
-	color = texture2D(uSamplers[`+i+"], vTextureCoord);",e+=`
-}`;return e+=`
-`,e+=`
-`,e},t}(),ch=function(t){$(r,t);function r(e){e===void 0&&(e=!1);var i=t.call(this)||this;return i._buffer=new it(null,e,!1),i._indexBuffer=new it(null,e,!0),i.addAttribute("aVertexPosition",i._buffer,2,!1,O.FLOAT).addAttribute("aTextureCoord",i._buffer,2,!1,O.FLOAT).addAttribute("aColor",i._buffer,4,!0,O.UNSIGNED_BYTE).addAttribute("aTextureId",i._buffer,1,!0,O.FLOAT).addIndex(i._indexBuffer),i}return r}(Qe),Ea=`precision highp float;
-attribute vec2 aVertexPosition;
-attribute vec2 aTextureCoord;
-attribute vec4 aColor;
-attribute float aTextureId;
-
-uniform mat3 projectionMatrix;
-uniform mat3 translationMatrix;
-uniform vec4 tint;
-
-varying vec2 vTextureCoord;
-varying vec4 vColor;
-varying float vTextureId;
-
-void main(void){
-    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
-
-    vTextureCoord = aTextureCoord;
-    vTextureId = aTextureId;
-    vColor = aColor * tint;
-}
-`,Ra=`varying vec2 vTextureCoord;
-varying vec4 vColor;
-varying float vTextureId;
-uniform sampler2D uSamplers[%count%];
-
-void main(void){
-    vec4 color;
-    %forloop%
-    gl_FragColor = color * vColor;
-}
-`,pd=function(){function t(){}return t.create=function(r){var e=Object.assign({vertex:Ea,fragment:Ra,geometryClass:ch,vertexSize:6},r),i=e.vertex,n=e.fragment,a=e.vertexSize,s=e.geometryClass;return function(o){$(h,o);function h(u){var l=o.call(this,u)||this;return l.shaderGenerator=new dd(i,n),l.geometryClass=s,l.vertexSize=a,l}return h}(cd)},Object.defineProperty(t,"defaultVertexSrc",{get:function(){return Ea},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultFragmentTemplate",{get:function(){return Ra},enumerable:!1,configurable:!0}),t}(),Kv=pd.create();/*!
- * @pixi/display - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/display is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- */N.SORTABLE_CHILDREN=!1;var Ve=function(){function t(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}return t.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},t.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},t.prototype.getRectangle=function(r){return this.minX>this.maxX||this.minY>this.maxY?M.EMPTY:(r=r||new M(0,0,1,1),r.x=this.minX,r.y=this.minY,r.width=this.maxX-this.minX,r.height=this.maxY-this.minY,r)},t.prototype.addPoint=function(r){this.minX=Math.min(this.minX,r.x),this.maxX=Math.max(this.maxX,r.x),this.minY=Math.min(this.minY,r.y),this.maxY=Math.max(this.maxY,r.y)},t.prototype.addPointMatrix=function(r,e){var i=r.a,n=r.b,a=r.c,s=r.d,o=r.tx,h=r.ty,u=i*e.x+a*e.y+o,l=n*e.x+s*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)},t.prototype.addQuad=function(r){var e=this.minX,i=this.minY,n=this.maxX,a=this.maxY,s=r[0],o=r[1];e=s<e?s:e,i=o<i?o:i,n=s>n?s:n,a=o>a?o:a,s=r[2],o=r[3],e=s<e?s:e,i=o<i?o:i,n=s>n?s:n,a=o>a?o:a,s=r[4],o=r[5],e=s<e?s:e,i=o<i?o:i,n=s>n?s:n,a=o>a?o:a,s=r[6],o=r[7],e=s<e?s:e,i=o<i?o:i,n=s>n?s:n,a=o>a?o:a,this.minX=e,this.minY=i,this.maxX=n,this.maxY=a},t.prototype.addFrame=function(r,e,i,n,a){this.addFrameMatrix(r.worldTransform,e,i,n,a)},t.prototype.addFrameMatrix=function(r,e,i,n,a){var s=r.a,o=r.b,h=r.c,u=r.d,l=r.tx,c=r.ty,f=this.minX,d=this.minY,p=this.maxX,v=this.maxY,_=s*e+h*i+l,m=o*e+u*i+c;f=_<f?_:f,d=m<d?m:d,p=_>p?_:p,v=m>v?m:v,_=s*n+h*i+l,m=o*n+u*i+c,f=_<f?_:f,d=m<d?m:d,p=_>p?_:p,v=m>v?m:v,_=s*e+h*a+l,m=o*e+u*a+c,f=_<f?_:f,d=m<d?m:d,p=_>p?_:p,v=m>v?m:v,_=s*n+h*a+l,m=o*n+u*a+c,f=_<f?_:f,d=m<d?m:d,p=_>p?_:p,v=m>v?m:v,this.minX=f,this.minY=d,this.maxX=p,this.maxY=v},t.prototype.addVertexData=function(r,e,i){for(var n=this.minX,a=this.minY,s=this.maxX,o=this.maxY,h=e;h<i;h+=2){var u=r[h],l=r[h+1];n=u<n?u:n,a=l<a?l:a,s=u>s?u:s,o=l>o?l:o}this.minX=n,this.minY=a,this.maxX=s,this.maxY=o},t.prototype.addVertices=function(r,e,i,n){this.addVerticesMatrix(r.worldTransform,e,i,n)},t.prototype.addVerticesMatrix=function(r,e,i,n,a,s){a===void 0&&(a=0),s===void 0&&(s=a);for(var o=r.a,h=r.b,u=r.c,l=r.d,c=r.tx,f=r.ty,d=this.minX,p=this.minY,v=this.maxX,_=this.maxY,m=i;m<n;m+=2){var T=e[m],x=e[m+1],E=o*T+u*x+c,g=l*x+h*T+f;d=Math.min(d,E-a),v=Math.max(v,E+a),p=Math.min(p,g-s),_=Math.max(_,g+s)}this.minX=d,this.minY=p,this.maxX=v,this.maxY=_},t.prototype.addBounds=function(r){var e=this.minX,i=this.minY,n=this.maxX,a=this.maxY;this.minX=r.minX<e?r.minX:e,this.minY=r.minY<i?r.minY:i,this.maxX=r.maxX>n?r.maxX:n,this.maxY=r.maxY>a?r.maxY:a},t.prototype.addBoundsMask=function(r,e){var i=r.minX>e.minX?r.minX:e.minX,n=r.minY>e.minY?r.minY:e.minY,a=r.maxX<e.maxX?r.maxX:e.maxX,s=r.maxY<e.maxY?r.maxY:e.maxY;if(i<=a&&n<=s){var o=this.minX,h=this.minY,u=this.maxX,l=this.maxY;this.minX=i<o?i:o,this.minY=n<h?n:h,this.maxX=a>u?a:u,this.maxY=s>l?s:l}},t.prototype.addBoundsMatrix=function(r,e){this.addFrameMatrix(e,r.minX,r.minY,r.maxX,r.maxY)},t.prototype.addBoundsArea=function(r,e){var i=r.minX>e.x?r.minX:e.x,n=r.minY>e.y?r.minY:e.y,a=r.maxX<e.x+e.width?r.maxX:e.x+e.width,s=r.maxY<e.y+e.height?r.maxY:e.y+e.height;if(i<=a&&n<=s){var o=this.minX,h=this.minY,u=this.maxX,l=this.maxY;this.minX=i<o?i:o,this.minY=n<h?n:h,this.maxX=a>u?a:u,this.maxY=s>l?s:l}},t.prototype.pad=function(r,e){r===void 0&&(r=0),e===void 0&&(e=r),this.isEmpty()||(this.minX-=r,this.maxX+=r,this.minY-=e,this.maxY+=e)},t.prototype.addFramePad=function(r,e,i,n,a,s){r-=a,e-=s,i+=a,n+=s,this.minX=this.minX<r?this.minX:r,this.maxX=this.maxX>i?this.maxX:i,this.minY=this.minY<e?this.minY:e,this.maxY=this.maxY>n?this.maxY:n},t}();/*! *****************************************************************************
-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 Gi=function(t,r){return Gi=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])},Gi(t,r)};function mn(t,r){Gi(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var tt=function(t){mn(r,t);function r(){var e=t.call(this)||this;return e.tempDisplayObjectParent=null,e.transform=new vn,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 Ve,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 r.mixin=function(e){for(var i=Object.keys(e),n=0;n<i.length;++n){var a=i[n];Object.defineProperty(r.prototype,a,Object.getOwnPropertyDescriptor(e,a))}},Object.defineProperty(r.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!1,configurable:!0}),r.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},r.prototype.updateTransform=function(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha},r.prototype.getBounds=function(e,i){return e||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),i||(this._boundsRect||(this._boundsRect=new M),i=this._boundsRect),this._bounds.getRectangle(i)},r.prototype.getLocalBounds=function(e){e||(this._localBoundsRect||(this._localBoundsRect=new M),e=this._localBoundsRect),this._localBounds||(this._localBounds=new Ve);var i=this.transform,n=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;var a=this._bounds,s=this._boundsID;this._bounds=this._localBounds;var o=this.getBounds(!1,e);return this.parent=n,this.transform=i,this._bounds=a,this._bounds.updateID+=this._boundsID-s,o},r.prototype.toGlobal=function(e,i,n){return n===void 0&&(n=!1),n||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(e,i)},r.prototype.toLocal=function(e,i,n,a){return i&&(e=i.toGlobal(e,n,a)),a||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(e,n)},r.prototype.setParent=function(e){if(!e||!e.addChild)throw new Error("setParent: Argument must be a Container");return e.addChild(this),e},r.prototype.setTransform=function(e,i,n,a,s,o,h,u,l){return e===void 0&&(e=0),i===void 0&&(i=0),n===void 0&&(n=1),a===void 0&&(a=1),s===void 0&&(s=0),o===void 0&&(o=0),h===void 0&&(h=0),u===void 0&&(u=0),l===void 0&&(l=0),this.position.x=e,this.position.y=i,this.scale.x=n||1,this.scale.y=a||1,this.rotation=s,this.skew.x=o,this.skew.y=h,this.pivot.x=u,this.pivot.y=l,this},r.prototype.destroy=function(e){this.parent&&this.parent.removeChild(this),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.interactive=!1,this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()},Object.defineProperty(r.prototype,"_tempDisplayObjectParent",{get:function(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new dh),this.tempDisplayObjectParent},enumerable:!1,configurable:!0}),r.prototype.enableTempParent=function(){var e=this.parent;return this.parent=this._tempDisplayObjectParent,e},r.prototype.disableTempParent=function(e){this.parent=e},Object.defineProperty(r.prototype,"x",{get:function(){return this.position.x},set:function(e){this.transform.position.x=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"y",{get:function(){return this.position.y},set:function(e){this.transform.position.y=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"worldTransform",{get:function(){return this.transform.worldTransform},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"localTransform",{get:function(){return this.transform.localTransform},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"position",{get:function(){return this.transform.position},set:function(e){this.transform.position.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"scale",{get:function(){return this.transform.scale},set:function(e){this.transform.scale.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"pivot",{get:function(){return this.transform.pivot},set:function(e){this.transform.pivot.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"skew",{get:function(){return this.transform.skew},set:function(e){this.transform.skew.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rotation",{get:function(){return this.transform.rotation},set:function(e){this.transform.rotation=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"angle",{get:function(){return this.transform.rotation*qo},set:function(e){this.transform.rotation=e*Ko},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"zIndex",{get:function(){return this._zIndex},set:function(e){this._zIndex=e,this.parent&&(this.parent.sortDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"worldVisible",{get:function(){var e=this;do{if(!e.visible)return!1;e=e.parent}while(e);return!0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"mask",{get:function(){return this._mask},set:function(e){if(this._mask!==e){if(this._mask){var i=this._mask.maskObject||this._mask;i._maskRefCount--,i._maskRefCount===0&&(i.renderable=!0,i.isMask=!1)}if(this._mask=e,this._mask){var i=this._mask.maskObject||this._mask;i._maskRefCount===0&&(i.renderable=!1,i.isMask=!0),i._maskRefCount++}}},enumerable:!1,configurable:!0}),r}(we),dh=function(t){mn(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;return e.sortDirty=null,e}return r}(tt);tt.prototype.displayObjectUpdateTransform=tt.prototype.updateTransform;/*!
- * @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 Ca;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})(Ca||(Ca={}));var wa;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(wa||(wa={}));var Pa;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(Pa||(Pa={}));var Na;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(Na||(Na={}));var Aa;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(Aa||(Aa={}));var Ua;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(Ua||(Ua={}));var Oa;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(Oa||(Oa={}));var Sa;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(Sa||(Sa={}));var La;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(La||(La={}));var Fa;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(Fa||(Fa={}));var Ga;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(Ga||(Ga={}));var Ba;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(Ba||(Ba={}));var Ma;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(Ma||(Ma={}));var Xa;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"})(Xa||(Xa={}));var ka;(function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"})(ka||(ka={}));var Ha;(function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"})(Ha||(Ha={}));var Bi;(function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"})(Bi||(Bi={}));var Da;(function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"})(Da||(Da={}));var Va;(function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(Va||(Va={}));function vd(t,r){return t.zIndex===r.zIndex?t._lastSortedIndex-r._lastSortedIndex:t.zIndex-r.zIndex}var wt=function(t){mn(r,t);function r(){var e=t.call(this)||this;return e.children=[],e.sortableChildren=N.SORTABLE_CHILDREN,e.sortDirty=!1,e}return r.prototype.onChildrenChange=function(e){},r.prototype.addChild=function(){for(var e=arguments,i=[],n=0;n<arguments.length;n++)i[n]=e[n];if(i.length>1)for(var a=0;a<i.length;a++)this.addChild(i[a]);else{var s=i[0];s.parent&&s.parent.removeChild(s),s.parent=this,this.sortDirty=!0,s.transform._parentID=-1,this.children.push(s),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",s,this,this.children.length-1),s.emit("added",this)}return i[0]},r.prototype.addChildAt=function(e,i){if(i<0||i>this.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},r.prototype.swapChildren=function(e,i){if(e!==i){var n=this.getChildIndex(e),a=this.getChildIndex(i);this.children[n]=i,this.children[a]=e,this.onChildrenChange(n<a?n:a)}},r.prototype.getChildIndex=function(e){var i=this.children.indexOf(e);if(i===-1)throw new Error("The supplied DisplayObject must be a child of the caller");return i},r.prototype.setChildIndex=function(e,i){if(i<0||i>=this.children.length)throw new Error("The index "+i+" supplied is out of bounds "+this.children.length);var n=this.getChildIndex(e);Gt(this.children,n,1),this.children.splice(i,0,e),this.onChildrenChange(i)},r.prototype.getChildAt=function(e){if(e<0||e>=this.children.length)throw new Error("getChildAt: Index ("+e+") does not exist.");return this.children[e]},r.prototype.removeChild=function(){for(var e=arguments,i=[],n=0;n<arguments.length;n++)i[n]=e[n];if(i.length>1)for(var a=0;a<i.length;a++)this.removeChild(i[a]);else{var s=i[0],o=this.children.indexOf(s);if(o===-1)return null;s.parent=null,s.transform._parentID=-1,Gt(this.children,o,1),this._boundsID++,this.onChildrenChange(o),s.emit("removed",this),this.emit("childRemoved",s,this,o)}return i[0]},r.prototype.removeChildAt=function(e){var i=this.getChildAt(e);return i.parent=null,i.transform._parentID=-1,Gt(this.children,e,1),this._boundsID++,this.onChildrenChange(e),i.emit("removed",this),this.emit("childRemoved",i,this,e),i},r.prototype.removeChildren=function(e,i){e===void 0&&(e=0),i===void 0&&(i=this.children.length);var n=e,a=i,s=a-n,o;if(s>0&&s<=a){o=this.children.splice(n,s);for(var h=0;h<o.length;++h)o[h].parent=null,o[h].transform&&(o[h].transform._parentID=-1);this._boundsID++,this.onChildrenChange(e);for(var h=0;h<o.length;++h)o[h].emit("removed",this),this.emit("childRemoved",o[h],this,h);return o}else if(s===0&&this.children.length===0)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},r.prototype.sortChildren=function(){for(var e=!1,i=0,n=this.children.length;i<n;++i){var a=this.children[i];a._lastSortedIndex=i,!e&&a.zIndex!==0&&(e=!0)}e&&this.children.length>1&&this.children.sort(vd),this.sortDirty=!1},r.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;e<i;++e){var n=this.children[e];n.visible&&n.updateTransform()}},r.prototype.calculateBounds=function(){this._bounds.clear(),this._calculateBounds();for(var e=0;e<this.children.length;e++){var i=this.children[e];if(!(!i.visible||!i.renderable))if(i.calculateBounds(),i._mask){var n=i._mask.maskObject||i._mask;n.calculateBounds(),this._bounds.addBoundsMask(i._bounds,n._bounds)}else i.filterArea?this._bounds.addBoundsArea(i._bounds,i.filterArea):this._bounds.addBounds(i._bounds)}this._bounds.updateID=this._boundsID},r.prototype.getLocalBounds=function(e,i){i===void 0&&(i=!1);var n=t.prototype.getLocalBounds.call(this,e);if(!i)for(var a=0,s=this.children.length;a<s;++a){var o=this.children[a];o.visible&&o.updateTransform()}return n},r.prototype._calculateBounds=function(){},r.prototype._renderWithCulling=function(e){var i=e.renderTexture.sourceFrame;if(i.width>0&&i.height>0){var n,a;if(this.cullArea?(n=this.cullArea,a=this.worldTransform):this._render!==r.prototype._render&&(n=this.getBounds(!0)),n&&i.intersects(n,a))this._render(e);else if(this.cullArea)return;for(var s=0,o=this.children.length;s<o;++s){var h=this.children[s],u=h.cullable;h.cullable=u||!this.cullArea,h.render(e),h.cullable=u}}},r.prototype.render=function(e){if(!(!this.visible||this.worldAlpha<=0||!this.renderable))if(this._mask||this.filters&&this.filters.length)this.renderAdvanced(e);else if(this.cullable)this._renderWithCulling(e);else{this._render(e);for(var i=0,n=this.children.length;i<n;++i)this.children[i].render(e)}},r.prototype.renderAdvanced=function(e){var i=this.filters,n=this._mask;if(i){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(var a=0;a<i.length;a++)i[a].enabled&&this._enabledFilters.push(i[a])}var s=i&&this._enabledFilters&&this._enabledFilters.length||n&&(!n.isMaskData||n.enabled&&(n.autoDetect||n.type!==Bi.NONE));if(s&&e.batch.flush(),i&&this._enabledFilters&&this._enabledFilters.length&&e.filter.push(this,this._enabledFilters),n&&e.mask.push(this,this._mask),this.cullable)this._renderWithCulling(e);else{this._render(e);for(var a=0,o=this.children.length;a<o;++a)this.children[a].render(e)}s&&e.batch.flush(),n&&e.mask.pop(this),i&&this._enabledFilters&&this._enabledFilters.length&&e.filter.pop()},r.prototype._render=function(e){},r.prototype.destroy=function(e){t.prototype.destroy.call(this),this.sortDirty=!1;var i=typeof e=="boolean"?e:e&&e.children,n=this.removeChildren(0,this.children.length);if(i)for(var a=0;a<n.length;++a)n[a].destroy(e)},Object.defineProperty(r.prototype,"width",{get:function(){return this.scale.x*this.getLocalBounds().width},set:function(e){var i=this.getLocalBounds().width;i!==0?this.scale.x=e/i:this.scale.x=1,this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this.scale.y*this.getLocalBounds().height},set:function(e){var i=this.getLocalBounds().height;i!==0?this.scale.y=e/i:this.scale.y=1,this._height=e},enumerable:!1,configurable:!0}),r}(tt);wt.prototype.containerUpdateTransform=wt.prototype.updateTransform;/*!
- * @pixi/sprite - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/sprite is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- *//*! *****************************************************************************
-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 Mi=function(t,r){return Mi=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])},Mi(t,r)};function _d(t,r){Mi(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var Le=new D,md=new Uint16Array([0,1,2,0,2,3]),Pe=function(t){_d(r,t);function r(e){var i=t.call(this)||this;return i._anchor=new be(i._onAnchorUpdate,i,e?e.defaultAnchor.x:0,e?e.defaultAnchor.y:0),i._texture=null,i._width=0,i._height=0,i._tint=null,i._tintRGB=null,i.tint=16777215,i.blendMode=P.NORMAL,i._cachedTint=16777215,i.uvs=null,i.texture=e||F.EMPTY,i.vertexData=new Float32Array(8),i.vertexTrimmedData=null,i._transformID=-1,i._textureID=-1,i._transformTrimmedID=-1,i._textureTrimmedID=-1,i.indices=md,i.pluginName="batch",i.isSprite=!0,i._roundPixels=N.ROUND_PIXELS,i}return r.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=xe(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=xe(this.scale.y)*this._height/this._texture.orig.height)},r.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},r.prototype.calculateVertices=function(){var e=this._texture;if(!(this._transformID===this.transform._worldID&&this._textureID===e._updateID)){this._textureID!==e._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=e._updateID;var i=this.transform.worldTransform,n=i.a,a=i.b,s=i.c,o=i.d,h=i.tx,u=i.ty,l=this.vertexData,c=e.trim,f=e.orig,d=this._anchor,p=0,v=0,_=0,m=0;if(c?(v=c.x-d._x*f.width,p=v+c.width,m=c.y-d._y*f.height,_=m+c.height):(v=-d._x*f.width,p=v+f.width,m=-d._y*f.height,_=m+f.height),l[0]=n*v+s*m+h,l[1]=o*m+a*v+u,l[2]=n*p+s*m+h,l[3]=o*m+a*p+u,l[4]=n*p+s*_+h,l[5]=o*_+a*p+u,l[6]=n*v+s*_+h,l[7]=o*_+a*v+u,this._roundPixels)for(var T=N.RESOLUTION,x=0;x<l.length;++x)l[x]=Math.round((l[x]*T|0)/T)}},r.prototype.calculateTrimmedVertices=function(){if(!this.vertexTrimmedData)this.vertexTrimmedData=new Float32Array(8);else if(this._transformTrimmedID===this.transform._worldID&&this._textureTrimmedID===this._texture._updateID)return;this._transformTrimmedID=this.transform._worldID,this._textureTrimmedID=this._texture._updateID;var e=this._texture,i=this.vertexTrimmedData,n=e.orig,a=this._anchor,s=this.transform.worldTransform,o=s.a,h=s.b,u=s.c,l=s.d,c=s.tx,f=s.ty,d=-a._x*n.width,p=d+n.width,v=-a._y*n.height,_=v+n.height;i[0]=o*d+u*v+c,i[1]=l*v+h*d+f,i[2]=o*p+u*v+c,i[3]=l*v+h*p+f,i[4]=o*p+u*_+c,i[5]=l*_+h*p+f,i[6]=o*d+u*_+c,i[7]=l*_+h*d+f},r.prototype._render=function(e){this.calculateVertices(),e.batch.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this)},r.prototype._calculateBounds=function(){var e=this._texture.trim,i=this._texture.orig;!e||e.width===i.width&&e.height===i.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))},r.prototype.getLocalBounds=function(e){return this.children.length===0?(this._localBounds||(this._localBounds=new Ve),this._localBounds.minX=this._texture.orig.width*-this._anchor._x,this._localBounds.minY=this._texture.orig.height*-this._anchor._y,this._localBounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._localBounds.maxY=this._texture.orig.height*(1-this._anchor._y),e||(this._localBoundsRect||(this._localBoundsRect=new M),e=this._localBoundsRect),this._localBounds.getRectangle(e)):t.prototype.getLocalBounds.call(this,e)},r.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,Le);var i=this._texture.orig.width,n=this._texture.orig.height,a=-i*this.anchor.x,s=0;return Le.x>=a&&Le.x<a+i&&(s=-n*this.anchor.y,Le.y>=s&&Le.y<s+n)},r.prototype.destroy=function(e){t.prototype.destroy.call(this,e),this._texture.off("update",this._onTextureUpdate,this),this._anchor=null;var i=typeof e=="boolean"?e:e&&e.texture;if(i){var n=typeof e=="boolean"?e:e&&e.baseTexture;this._texture.destroy(!!n)}this._texture=null},r.from=function(e,i){var n=e instanceof F?e:F.from(e,i);return new r(n)},Object.defineProperty(r.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(e){this._roundPixels!==e&&(this._transformID=-1),this._roundPixels=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"width",{get:function(){return Math.abs(this.scale.x)*this._texture.orig.width},set:function(e){var i=xe(this.scale.x)||1;this.scale.x=i*e/this._texture.orig.width,this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return Math.abs(this.scale.y)*this._texture.orig.height},set:function(e){var i=xe(this.scale.y)||1;this.scale.y=i*e/this._texture.orig.height,this._height=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"anchor",{get:function(){return this._anchor},set:function(e){this._anchor.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tint",{get:function(){return this._tint},set:function(e){this._tint=e,this._tintRGB=(e>>16)+(e&65280)+((e&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(r.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||F.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}),r}(wt);/*!
- * @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 Rt{constructor(r,e,i){this.value=r,this.time=e,this.next=null,this.isStepped=!1,i?this.ease=typeof i=="function"?i:_h(i):this.ease=null}static createList(r){if("list"in r){const i=r.list;let n;const{value:a,time:s}=i[0],o=n=new Rt(typeof a=="string"?cr(a):a,s,r.ease);if(i.length>2||i.length===2&&i[1].value!==a)for(let h=1;h<i.length;++h){const{value:u,time:l}=i[h];n.next=new Rt(typeof u=="string"?cr(u):u,l),n=n.next}return o.isStepped=!!r.isStepped,o}const e=new Rt(typeof r.start=="string"?cr(r.start):r.start,0);return r.end!==r.start&&(e.next=new Rt(typeof r.end=="string"?cr(r.end):r.end,1)),e}}let je=F.from;const bt=Math.PI/180;function Bt(t,r){if(!t)return;const e=Math.sin(t),i=Math.cos(t),n=r.x*i-r.y*e,a=r.x*e+r.y*i;r.x=n,r.y=a}function Mr(t,r,e){return t<<16|r<<8|e}function ph(t){return Math.sqrt(t.x*t.x+t.y*t.y)}function yd(t){const r=1/ph(t);t.x*=r,t.y*=r}function vh(t,r){t.x*=r,t.y*=r}function cr(t,r){r||(r={}),t.charAt(0)==="#"?t=t.substr(1):t.indexOf("0x")===0&&(t=t.substr(2));let e;return t.length===8&&(e=t.substr(0,2),t=t.substr(2)),r.r=parseInt(t.substr(0,2),16),r.g=parseInt(t.substr(2,2),16),r.b=parseInt(t.substr(4,2),16),e&&(r.a=parseInt(e,16)),r}function _h(t){const r=t.length,e=1/r;return function(i){const n=r*i|0,a=(i-n*e)*r,s=t[n]||t[r-1];return s.s+a*(2*(1-a)*(s.cp-s.s)+a*(s.e-s.s))}}function gd(t){return t?(t=t.toUpperCase().replace(/ /g,"_"),P[t]||P.NORMAL):P.NORMAL}class ti extends Pe{constructor(r){super(),this.prevChild=this.nextChild=null,this.emitter=r,this.config={},this.anchor.x=this.anchor.y=.5,this.maxLife=0,this.age=0,this.agePercent=0,this.oneOverLife=0,this.next=null,this.prev=null,this.init=this.init,this.kill=this.kill}init(r){this.maxLife=r,this.age=this.agePercent=0,this.rotation=0,this.position.x=this.position.y=0,this.scale.x=this.scale.y=1,this.tint=16777215,this.alpha=1,this.oneOverLife=1/this.maxLife,this.visible=!0}kill(){this.emitter.recycle(this)}destroy(){this.parent&&this.parent.removeChild(this),this.emitter=this.next=this.prev=null,super.destroy()}}var Y;(function(t){t[t.Spawn=0]="Spawn",t[t.Normal=2]="Normal",t[t.Late=5]="Late"})(Y||(Y={}));const ei=at.shared,Jt=Symbol("Position particle per emitter position");class W{constructor(r,e){this.initBehaviors=[],this.updateBehaviors=[],this.recycleBehaviors=[],this.minLifetime=0,this.maxLifetime=0,this.customEase=null,this._frequency=1,this.spawnChance=1,this.maxParticles=1e3,this.emitterLifetime=-1,this.spawnPos=new D,this.particlesPerWave=1,this.rotation=0,this.ownerPos=new D,this._prevEmitterPos=new D,this._prevPosIsValid=!1,this._posChanged=!1,this._parent=null,this.addAtBack=!1,this.particleCount=0,this._emit=!1,this._spawnTimer=0,this._emitterLife=-1,this._activeParticlesFirst=null,this._activeParticlesLast=null,this._poolFirst=null,this._origConfig=null,this._autoUpdate=!1,this._destroyWhenComplete=!1,this._completeCallback=null,this.parent=r,e&&this.init(e),this.recycle=this.recycle,this.update=this.update,this.rotate=this.rotate,this.updateSpawnPos=this.updateSpawnPos,this.updateOwnerPos=this.updateOwnerPos}static registerBehavior(r){W.knownBehaviors[r.type]=r}get frequency(){return this._frequency}set frequency(r){typeof r=="number"&&r>0?this._frequency=r:this._frequency=1}get parent(){return this._parent}set parent(r){this.cleanup(),this._parent=r}init(r){if(!r)return;this.cleanup(),this._origConfig=r,this.minLifetime=r.lifetime.min,this.maxLifetime=r.lifetime.max,r.ease?this.customEase=typeof r.ease=="function"?r.ease:_h(r.ease):this.customEase=null,this.particlesPerWave=1,r.particlesPerWave&&r.particlesPerWave>1&&(this.particlesPerWave=r.particlesPerWave),this.frequency=r.frequency,this.spawnChance=typeof r.spawnChance=="number"&&r.spawnChance>0?r.spawnChance:1,this.emitterLifetime=r.emitterLifetime||-1,this.maxParticles=r.maxParticles>0?r.maxParticles:1e3,this.addAtBack=!!r.addAtBack,this.rotation=0,this.ownerPos.set(0),r.pos?this.spawnPos.copyFrom(r.pos):this.spawnPos.set(0),this._prevEmitterPos.copyFrom(this.spawnPos),this._prevPosIsValid=!1,this._spawnTimer=0,this.emit=r.emit===void 0?!0:!!r.emit,this.autoUpdate=!!r.autoUpdate;const e=r.behaviors.map(i=>{const n=W.knownBehaviors[i.type];return n?new n(i.config):(console.error(`Unknown behavior: ${i.type}`),null)}).filter(i=>!!i);e.push(Jt),e.sort((i,n)=>i===Jt?n.order===Y.Spawn?1:-1:n===Jt?i.order===Y.Spawn?-1:1:i.order-n.order),this.initBehaviors=e.slice(),this.updateBehaviors=e.filter(i=>i!==Jt&&i.updateParticle),this.recycleBehaviors=e.filter(i=>i!==Jt&&i.recycleParticle)}getBehavior(r){return W.knownBehaviors[r]&&this.initBehaviors.find(e=>e instanceof W.knownBehaviors[r])||null}fillPool(r){for(;r>0;--r){const e=new ti(this);e.next=this._poolFirst,this._poolFirst=e}}recycle(r,e=!1){for(let i=0;i<this.recycleBehaviors.length;++i)this.recycleBehaviors[i].recycleParticle(r,!e);r.next&&(r.next.prev=r.prev),r.prev&&(r.prev.next=r.next),r===this._activeParticlesLast&&(this._activeParticlesLast=r.prev),r===this._activeParticlesFirst&&(this._activeParticlesFirst=r.next),r.prev=null,r.next=this._poolFirst,this._poolFirst=r,r.parent&&r.parent.removeChild(r),--this.particleCount}rotate(r){if(this.rotation===r)return;const e=r-this.rotation;this.rotation=r,Bt(e,this.spawnPos),this._posChanged=!0}updateSpawnPos(r,e){this._posChanged=!0,this.spawnPos.x=r,this.spawnPos.y=e}updateOwnerPos(r,e){this._posChanged=!0,this.ownerPos.x=r,this.ownerPos.y=e}resetPositionTracking(){this._prevPosIsValid=!1}get emit(){return this._emit}set emit(r){this._emit=!!r,this._emitterLife=this.emitterLifetime}get autoUpdate(){return this._autoUpdate}set autoUpdate(r){this._autoUpdate&&!r?ei.remove(this.update,this):!this._autoUpdate&&r&&ei.add(this.update,this),this._autoUpdate=!!r}playOnceAndDestroy(r){this.autoUpdate=!0,this.emit=!0,this._destroyWhenComplete=!0,this._completeCallback=r}playOnce(r){this.emit=!0,this._completeCallback=r}update(r){if(this._autoUpdate&&(r=ei.elapsedMS*.001),!this._parent)return;for(let s=this._activeParticlesFirst,o;s;s=o)if(o=s.next,s.age+=r,s.age>s.maxLife||s.age<0)this.recycle(s);else{let h=s.age*s.oneOverLife;this.customEase&&(this.customEase.length===4?h=this.customEase(h,0,1,1):h=this.customEase(h)),s.agePercent=h;for(let u=0;u<this.updateBehaviors.length;++u)if(this.updateBehaviors[u].updateParticle(s,r)){this.recycle(s);break}}let e,i;this._prevPosIsValid&&(e=this._prevEmitterPos.x,i=this._prevEmitterPos.y);const n=this.ownerPos.x+this.spawnPos.x,a=this.ownerPos.y+this.spawnPos.y;if(this._emit)for(this._spawnTimer-=r<0?0:r;this._spawnTimer<=0;){if(this._emitterLife>=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 s,o;if(this._prevPosIsValid&&this._posChanged){const l=1+this._spawnTimer/r;s=(n-e)*l+e,o=(a-i)*l+i}else s=n,o=a;let h=null,u=null;for(let l=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount),c=0;c<l;++c){if(this.spawnChance<1&&Math.random()>=this.spawnChance)continue;let f;if(this.minLifetime===this.maxLifetime?f=this.minLifetime:f=Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,-this._spawnTimer>=f)continue;let d;this._poolFirst?(d=this._poolFirst,this._poolFirst=this._poolFirst.next,d.next=null):d=new ti(this),d.init(f),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.initBehaviors.length;++l){const c=this.initBehaviors[l];if(c===Jt)for(let f=h,d;f;f=d){d=f.next,this.rotation!==0&&(Bt(this.rotation,f.position),f.rotation+=this.rotation),f.position.x+=s,f.position.y+=o,f.age+=-this._spawnTimer;let p=f.age*f.oneOverLife;this.customEase&&(this.customEase.length===4?p=this.customEase(p,0,1,1):p=this.customEase(p)),f.agePercent=p}else c.initParticles(h)}for(let l=h,c;l;l=c){c=l.next;for(let f=0;f<this.updateBehaviors.length;++f)if(this.updateBehaviors[f].updateParticle(l,-this._spawnTimer)){this.recycle(l);break}}}this._spawnTimer+=this._frequency}if(this._posChanged&&(this._prevEmitterPos.x=n,this._prevEmitterPos.y=a,this._prevPosIsValid=!0,this._posChanged=!1),!this._emit&&!this._activeParticlesFirst){if(this._completeCallback){const s=this._completeCallback;this._completeCallback=null,s()}this._destroyWhenComplete&&this.destroy()}}emitNow(){const r=this.ownerPos.x+this.spawnPos.x,e=this.ownerPos.y+this.spawnPos.y;let i=null,n=null;for(let a=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount),s=0;s<a;++s){if(this.spawnChance<1&&Math.random()>=this.spawnChance)continue;let o;this._poolFirst?(o=this._poolFirst,this._poolFirst=this._poolFirst.next,o.next=null):o=new ti(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 a=0;a<this.initBehaviors.length;++a){const s=this.initBehaviors[a];if(s===Jt)for(let o=i,h;o;o=h)h=o.next,this.rotation!==0&&(Bt(this.rotation,o.position),o.rotation+=this.rotation),o.position.x+=r,o.position.y+=e;else s.initParticles(i)}}}cleanup(){let r,e;for(r=this._activeParticlesFirst;r;r=e)e=r.next,this.recycle(r,!0);this._activeParticlesFirst=this._activeParticlesLast=null,this.particleCount=0}get destroyed(){return!(this._parent&&this.initBehaviors.length)}destroy(){this.autoUpdate=!1,this.cleanup();let r;for(let e=this._poolFirst;e;e=r)r=e.next,e.destroy();this._poolFirst=this._parent=this.spawnPos=this.ownerPos=this.customEase=this._completeCallback=null,this.initBehaviors.length=this.updateBehaviors.length=this.recycleBehaviors.length=0}}W.knownBehaviors={};class yn{constructor(r){this.x=r.x,this.y=r.y,this.w=r.w,this.h=r.h}getRandPos(r){r.x=Math.random()*this.w+this.x,r.y=Math.random()*this.h+this.y}}yn.type="rect";yn.editorConfig=null;class Xr{constructor(r){this.x=r.x||0,this.y=r.y||0,this.radius=r.radius,this.innerRadius=r.innerRadius||0,this.rotation=!!r.affectRotation}getRandPos(r){this.innerRadius!==this.radius?r.x=Math.random()*(this.radius-this.innerRadius)+this.innerRadius:r.x=this.radius,r.y=0;const e=Math.random()*Math.PI*2;this.rotation&&(r.rotation+=e),Bt(e,r.position),r.position.x+=this.x,r.position.y+=this.y}}Xr.type="torus";Xr.editorConfig=null;class gn{constructor(r){this.segments=[],this.countingLengths=[],this.totalLength=0,this.init(r)}init(r){if(!r||!r.length)this.segments.push({p1:{x:0,y:0},p2:{x:0,y:0},l:0});else if(Array.isArray(r[0]))for(let e=0;e<r.length;++e){const i=r[e];let n=i[0];for(let a=1;a<i.length;++a){const s=i[a];this.segments.push({p1:n,p2:s,l:0}),n=s}}else{let e=r[0];for(let i=1;i<r.length;++i){const n=r[i];this.segments.push({p1:e,p2:n,l:0}),e=n}}for(let e=0;e<this.segments.length;++e){const{p1:i,p2:n}=this.segments[e],a=Math.sqrt((n.x-i.x)*(n.x-i.x)+(n.y-i.y)*(n.y-i.y));this.segments[e].l=a,this.totalLength+=a,this.countingLengths.push(this.totalLength)}}getRandPos(r){const e=Math.random()*this.totalLength;let i,n;if(this.segments.length===1)i=this.segments[0],n=e;else for(let o=0;o<this.countingLengths.length;++o)if(e<this.countingLengths[o]){i=this.segments[o],n=o===0?e:e-this.countingLengths[o-1];break}n/=i.l||1;const{p1:a,p2:s}=i;r.x=a.x+n*(s.x-a.x),r.y=a.y+n*(s.y-a.y)}}gn.type="polygonalChain";gn.editorConfig=null;class Tn{constructor(r){var e;this.order=Y.Late,this.minStart=r.minStart,this.maxStart=r.maxStart,this.accel=r.accel,this.rotate=!!r.rotate,this.maxSpeed=(e=r.maxSpeed)!==null&&e!==void 0?e:0}initParticles(r){let e=r;for(;e;){const i=Math.random()*(this.maxStart-this.minStart)+this.minStart;e.config.velocity?e.config.velocity.set(i,0):e.config.velocity=new D(i,0),Bt(e.rotation,e.config.velocity),e=e.next}}updateParticle(r,e){const i=r.config.velocity,n=i.x,a=i.y;if(i.x+=this.accel.x*e,i.y+=this.accel.y*e,this.maxSpeed){const s=ph(i);s>this.maxSpeed&&vh(i,this.maxSpeed/s)}r.x+=(n+i.x)/2*e,r.y+=(a+i.y)/2*e,this.rotate&&(r.rotation=Math.atan2(i.y,i.x))}}Tn.type="moveAcceleration";Tn.editorConfig=null;function Td(t){return this.ease&&(t=this.ease(t)),(this.first.next.value-this.first.value)*t+this.first.value}function xd(t){this.ease&&(t=this.ease(t));const r=this.first.value,e=this.first.next.value,i=(e.r-r.r)*t+r.r,n=(e.g-r.g)*t+r.g,a=(e.b-r.b)*t+r.b;return Mr(i,n,a)}function bd(t){this.ease&&(t=this.ease(t));let r=this.first,e=r.next;for(;t>e.time;)r=e,e=e.next;return t=(t-r.time)/(e.time-r.time),(e.value-r.value)*t+r.value}function Id(t){this.ease&&(t=this.ease(t));let r=this.first,e=r.next;for(;t>e.time;)r=e,e=e.next;t=(t-r.time)/(e.time-r.time);const i=r.value,n=e.value,a=(n.r-i.r)*t+i.r,s=(n.g-i.g)*t+i.g,o=(n.b-i.b)*t+i.b;return Mr(a,s,o)}function Ed(t){this.ease&&(t=this.ease(t));let r=this.first;for(;r.next&&t>r.next.time;)r=r.next;return r.value}function Rd(t){this.ease&&(t=this.ease(t));let r=this.first;for(;r.next&&t>r.next.time;)r=r.next;const e=r.value;return Mr(e.r,e.g,e.b)}class er{constructor(r=!1){this.first=null,this.isColor=!!r,this.interpolate=null,this.ease=null}reset(r){this.first=r,r.next&&r.next.time>=1?this.interpolate=this.isColor?xd:Td:r.isStepped?this.interpolate=this.isColor?Rd:Ed:this.interpolate=this.isColor?Id:bd,this.ease=this.first.ease}}class xn{constructor(r){this.order=Y.Normal,this.list=new er(!1),this.list.reset(Rt.createList(r.alpha))}initParticles(r){let e=r;for(;e;)e.alpha=this.list.first.value,e=e.next}updateParticle(r){r.alpha=this.list.interpolate(r.agePercent)}}xn.type="alpha";xn.editorConfig=null;class bn{constructor(r){this.order=Y.Normal,this.value=r.alpha}initParticles(r){let e=r;for(;e;)e.alpha=this.value,e=e.next}}bn.type="alphaStatic";bn.editorConfig=null;function mh(t){const r=[];for(let e=0;e<t.length;++e){let i=t[e];if(typeof i=="string")r.push(je(i));else if(i instanceof F)r.push(i);else{let n=i.count||1;for(typeof i.texture=="string"?i=je(i.texture):i=i.texture;n>0;--n)r.push(i)}}return r}class In{constructor(r){this.order=Y.Normal,this.anims=[];for(let e=0;e<r.anims.length;++e){const i=r.anims[e],n=mh(i.textures),a=i.framerate<0?-1:i.framerate>0?i.framerate:60,s={textures:n,duration:a>0?n.length/a:0,framerate:a,loop:a>0?!!i.loop:!1};this.anims.push(s)}}initParticles(r){let e=r;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(r,e){const i=r.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 a=i.animElapsed*i.animFramerate+1e-7|0;r.texture=n.textures[a]||n.textures[n.textures.length-1]||F.EMPTY}}In.type="animatedRandom";In.editorConfig=null;class En{constructor(r){this.order=Y.Normal;const e=r.anim,i=mh(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(r){let e=r;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(r,e){const i=this.anim,n=r.config;n.animElapsed+=e,n.animElapsed>=n.animDuration&&(i.loop?n.animElapsed=n.animElapsed%n.animDuration:n.animElapsed=n.animDuration-1e-6);const a=n.animElapsed*n.animFramerate+1e-7|0;r.texture=i.textures[a]||i.textures[i.textures.length-1]||F.EMPTY}}En.type="animatedSingle";En.editorConfig=null;class Rn{constructor(r){this.order=Y.Normal,this.value=r.blendMode}initParticles(r){let e=r;for(;e;)e.blendMode=gd(this.value),e=e.next}}Rn.type="blendMode";Rn.editorConfig=null;class Cn{constructor(r){this.order=Y.Spawn,this.spacing=r.spacing*bt,this.start=r.start*bt,this.distance=r.distance}initParticles(r){let e=0,i=r;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,Bt(n,i.position)),i=i.next,++e}}}Cn.type="spawnBurst";Cn.editorConfig=null;class wn{constructor(r){this.order=Y.Normal,this.list=new er(!0),this.list.reset(Rt.createList(r.color))}initParticles(r){let e=r;const i=this.list.first.value,n=Mr(i.r,i.g,i.b);for(;e;)e.tint=n,e=e.next}updateParticle(r){r.tint=this.list.interpolate(r.agePercent)}}wn.type="color";wn.editorConfig=null;class Pn{constructor(r){this.order=Y.Normal;let e=r.color;e.charAt(0)==="#"?e=e.substr(1):e.indexOf("0x")===0&&(e=e.substr(2)),this.value=parseInt(e,16)}initParticles(r){let e=r;for(;e;)e.tint=this.value,e=e.next}}Pn.type="colorStatic";Pn.editorConfig=null;class Nn{constructor(r){this.order=Y.Normal,this.index=0,this.textures=r.textures.map(e=>typeof e=="string"?je(e):e)}initParticles(r){let e=r;for(;e;)e.texture=this.textures[this.index],++this.index>=this.textures.length&&(this.index=0),e=e.next}}Nn.type="textureOrdered";Nn.editorConfig=null;const pe=new D,yh=["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"],Cd=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(yh).join("|"),"g");function wd(t){const r=t.match(Cd);for(let e=r.length-1;e>=0;--e)yh.indexOf(r[e])>=0&&(r[e]=`Math.${r[e]}`);return t=r.join(""),new Function("x",`return ${t};`)}class An{constructor(r){var e;if(this.order=Y.Late,r.path)if(typeof r.path=="function")this.path=r.path;else try{this.path=wd(r.path)}catch{this.path=null}else this.path=i=>i;this.list=new er(!1),this.list.reset(Rt.createList(r.speed)),this.minMult=(e=r.minMult)!==null&&e!==void 0?e:1}initParticles(r){let e=r;for(;e;){e.config.initRotation=e.rotation,e.config.initPosition?e.config.initPosition.copyFrom(e.position):e.config.initPosition=new D(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(r,e){const i=this.list.interpolate(r.agePercent)*r.config.speedMult;r.config.movement+=i*e,pe.x=r.config.movement,pe.y=this.path(pe.x),Bt(r.config.initRotation,pe),r.position.x=r.config.initPosition.x+pe.x,r.position.y=r.config.initPosition.y+pe.y}}An.type="movePath";An.editorConfig=null;class Un{constructor(){this.order=Y.Spawn}initParticles(r){}}Un.type="spawnPoint";Un.editorConfig=null;class On{constructor(r){this.order=Y.Normal,this.textures=r.textures.map(e=>typeof e=="string"?je(e):e)}initParticles(r){let e=r;for(;e;){const i=Math.floor(Math.random()*this.textures.length);e.texture=this.textures[i],e=e.next}}}On.type="textureRandom";On.editorConfig=null;class Sn{constructor(r){this.order=Y.Normal,this.minStart=r.minStart*bt,this.maxStart=r.maxStart*bt,this.minSpeed=r.minSpeed*bt,this.maxSpeed=r.maxSpeed*bt,this.accel=r.accel*bt}initParticles(r){let e=r;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(r,e){if(this.accel){const i=r.config.rotSpeed;r.config.rotSpeed+=this.accel*e,r.rotation+=(r.config.rotSpeed+i)/2*e}else r.rotation+=r.config.rotSpeed*e}}Sn.type="rotation";Sn.editorConfig=null;class Ln{constructor(r){this.order=Y.Normal,this.min=r.min*bt,this.max=r.max*bt}initParticles(r){let e=r;for(;e;)this.min===this.max?e.rotation+=this.max:e.rotation+=Math.random()*(this.max-this.min)+this.min,e=e.next}}Ln.type="rotationStatic";Ln.editorConfig=null;class Fn{constructor(r){this.order=Y.Late+1,this.rotation=(r.rotation||0)*bt}initParticles(r){let e=r;for(;e;)e.rotation=this.rotation,e=e.next}}Fn.type="noRotation";Fn.editorConfig=null;class Gn{constructor(r){var e;this.order=Y.Normal,this.list=new er(!1),this.list.reset(Rt.createList(r.scale)),this.minMult=(e=r.minMult)!==null&&e!==void 0?e:1}initParticles(r){let e=r;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(r){r.scale.x=r.scale.y=this.list.interpolate(r.agePercent)*r.config.scaleMult}}Gn.type="scale";Gn.editorConfig=null;class Bn{constructor(r){this.order=Y.Normal,this.min=r.min,this.max=r.max}initParticles(r){let e=r;for(;e;){const i=Math.random()*(this.max-this.min)+this.min;e.scale.x=e.scale.y=i,e=e.next}}}Bn.type="scaleStatic";Bn.editorConfig=null;class mt{constructor(r){this.order=Y.Spawn;const e=mt.shapes[r.type];if(!e)throw new Error(`No shape found with type '${r.type}'`);this.shape=new e(r.data)}static registerShape(r,e){mt.shapes[e||r.type]=r}initParticles(r){let e=r;for(;e;)this.shape.getRandPos(e),e=e.next}}mt.type="spawnShape";mt.editorConfig=null;mt.shapes={};mt.registerShape(gn);mt.registerShape(yn);mt.registerShape(Xr);mt.registerShape(Xr,"circle");class Mn{constructor(r){this.order=Y.Normal,this.texture=typeof r.texture=="string"?je(r.texture):r.texture}initParticles(r){let e=r;for(;e;)e.texture=this.texture,e=e.next}}Mn.type="textureSingle";Mn.editorConfig=null;class Xn{constructor(r){var e;this.order=Y.Late,this.list=new er(!1),this.list.reset(Rt.createList(r.speed)),this.minMult=(e=r.minMult)!==null&&e!==void 0?e:1}initParticles(r){let e=r;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 D(this.list.first.value*i,0),Bt(e.rotation,e.config.velocity),e=e.next}}updateParticle(r,e){const i=this.list.interpolate(r.agePercent)*r.config.speedMult,n=r.config.velocity;yd(n),vh(n,i),r.x+=n.x*e,r.y+=n.y*e}}Xn.type="moveSpeed";Xn.editorConfig=null;class kn{constructor(r){this.order=Y.Late,this.min=r.min,this.max=r.max}initParticles(r){let e=r;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 D(i,0),Bt(e.rotation,e.config.velocity),e=e.next}}updateParticle(r,e){const i=r.config.velocity;r.x+=i.x*e,r.y+=i.y*e}}kn.type="moveSpeedStatic";kn.editorConfig=null;function Zv(t,r){var e,i,n,a,s,o,h,u,l,c,f,d,p,v,_,m,T,x,E,g,y;if("behaviors"in t)return t;const b={lifetime:t.lifetime,ease:t.ease,particlesPerWave:t.particlesPerWave,frequency:t.frequency,spawnChance:t.spawnChance,emitterLifetime:t.emitterLifetime,maxParticles:t.maxParticles,addAtBack:t.addAtBack,pos:t.pos,emit:t.emit,autoUpdate:t.autoUpdate,behaviors:[]};if(t.alpha)if("start"in t.alpha)if(t.alpha.start===t.alpha.end)t.alpha.start!==1&&b.behaviors.push({type:"alphaStatic",config:{alpha:t.alpha.start}});else{const C={list:[{time:0,value:t.alpha.start},{time:1,value:t.alpha.end}]};b.behaviors.push({type:"alpha",config:{alpha:C}})}else t.alpha.list.length===1?t.alpha.list[0].value!==1&&b.behaviors.push({type:"alphaStatic",config:{alpha:t.alpha.list[0].value}}):b.behaviors.push({type:"alpha",config:{alpha:t.alpha}});if(t.acceleration&&(t.acceleration.x||t.acceleration.y)){let C,I;"start"in t.speed?(C=t.speed.start*((e=t.speed.minimumSpeedMultiplier)!==null&&e!==void 0?e:1),I=t.speed.start):(C=t.speed.list[0].value*((i=t.minimumSpeedMultiplier)!==null&&i!==void 0?i:1),I=t.speed.list[0].value),b.behaviors.push({type:"moveAcceleration",config:{accel:t.acceleration,minStart:C,maxStart:I,rotate:!t.noRotation,maxSpeed:t.maxSpeed}})}else if(!((n=t.extraData)===null||n===void 0)&&n.path){let C,I;"start"in t.speed?(I=(a=t.speed.minimumSpeedMultiplier)!==null&&a!==void 0?a:1,t.speed.start===t.speed.end?C={list:[{time:0,value:t.speed.start}]}:C={list:[{time:0,value:t.speed.start},{time:1,value:t.speed.end}]}):(C=t.speed,I=(s=t.minimumSpeedMultiplier)!==null&&s!==void 0?s:1),b.behaviors.push({type:"movePath",config:{path:t.extraData.path,speed:C,minMult:I}})}else if(t.speed)if("start"in t.speed)if(t.speed.start===t.speed.end)b.behaviors.push({type:"moveSpeedStatic",config:{min:t.speed.start*((o=t.speed.minimumSpeedMultiplier)!==null&&o!==void 0?o:1),max:t.speed.start}});else{const C={list:[{time:0,value:t.speed.start},{time:1,value:t.speed.end}]};b.behaviors.push({type:"moveSpeed",config:{speed:C,minMult:t.speed.minimumSpeedMultiplier}})}else t.speed.list.length===1?b.behaviors.push({type:"moveSpeedStatic",config:{min:t.speed.list[0].value*((h=t.minimumSpeedMultiplier)!==null&&h!==void 0?h:1),max:t.speed.list[0].value}}):b.behaviors.push({type:"moveSpeed",config:{speed:t.speed,minMult:(u=t.minimumSpeedMultiplier)!==null&&u!==void 0?u:1}});if(t.scale)if("start"in t.scale){const C=(l=t.scale.minimumScaleMultiplier)!==null&&l!==void 0?l:1;if(t.scale.start===t.scale.end)b.behaviors.push({type:"scaleStatic",config:{min:t.scale.start*C,max:t.scale.start}});else{const I={list:[{time:0,value:t.scale.start},{time:1,value:t.scale.end}]};b.behaviors.push({type:"scale",config:{scale:I,minMult:C}})}}else if(t.scale.list.length===1){const C=(c=t.minimumScaleMultiplier)!==null&&c!==void 0?c:1,I=t.scale.list[0].value;b.behaviors.push({type:"scaleStatic",config:{min:I*C,max:I}})}else b.behaviors.push({type:"scale",config:{scale:t.scale,minMult:(f=t.minimumScaleMultiplier)!==null&&f!==void 0?f:1}});if(t.color)if("start"in t.color)if(t.color.start===t.color.end)t.color.start!=="ffffff"&&b.behaviors.push({type:"colorStatic",config:{color:t.color.start}});else{const C={list:[{time:0,value:t.color.start},{time:1,value:t.color.end}]};b.behaviors.push({type:"color",config:{color:C}})}else t.color.list.length===1?t.color.list[0].value!=="ffffff"&&b.behaviors.push({type:"colorStatic",config:{color:t.color.list[0].value}}):b.behaviors.push({type:"color",config:{color:t.color}});if(t.rotationAcceleration||((d=t.rotationSpeed)===null||d===void 0?void 0:d.min)||((p=t.rotationSpeed)===null||p===void 0?void 0:p.max)?b.behaviors.push({type:"rotation",config:{accel:t.rotationAcceleration||0,minSpeed:((v=t.rotationSpeed)===null||v===void 0?void 0:v.min)||0,maxSpeed:((_=t.rotationSpeed)===null||_===void 0?void 0:_.max)||0,minStart:((m=t.startRotation)===null||m===void 0?void 0:m.min)||0,maxStart:((T=t.startRotation)===null||T===void 0?void 0:T.max)||0}}):(((x=t.startRotation)===null||x===void 0?void 0:x.min)||((E=t.startRotation)===null||E===void 0?void 0:E.max))&&b.behaviors.push({type:"rotationStatic",config:{min:((g=t.startRotation)===null||g===void 0?void 0:g.min)||0,max:((y=t.startRotation)===null||y===void 0?void 0:y.max)||0}}),t.noRotation&&b.behaviors.push({type:"noRotation",config:{}}),t.blendMode&&t.blendMode!=="normal"&&b.behaviors.push({type:"blendMode",config:{blendMode:t.blendMode}}),Array.isArray(r)&&typeof r[0]!="string"&&"framerate"in r[0]){for(let C=0;C<r.length;++C)r[C].framerate==="matchLife"&&(r[C].framerate=-1);b.behaviors.push({type:"animatedRandom",config:{anims:r}})}else typeof r!="string"&&"framerate"in r?(r.framerate==="matchLife"&&(r.framerate=-1),b.behaviors.push({type:"animatedSingle",config:{anim:r}})):t.orderedArt&&Array.isArray(r)?b.behaviors.push({type:"textureOrdered",config:{textures:r}}):Array.isArray(r)?b.behaviors.push({type:"textureRandom",config:{textures:r}}):b.behaviors.push({type:"textureSingle",config:{texture:r}});if(t.spawnType==="burst")b.behaviors.push({type:"spawnBurst",config:{start:t.angleStart||0,spacing:t.particleSpacing,distance:0}});else if(t.spawnType==="point")b.behaviors.push({type:"spawnPoint",config:{}});else{let C;t.spawnType==="ring"?C={type:"torus",data:{x:t.spawnCircle.x,y:t.spawnCircle.y,radius:t.spawnCircle.r,innerRadius:t.spawnCircle.minR,affectRotation:!0}}:t.spawnType==="circle"?C={type:"torus",data:{x:t.spawnCircle.x,y:t.spawnCircle.y,radius:t.spawnCircle.r,innerRadius:0,affectRotation:!1}}:t.spawnType==="rect"?C={type:"rect",data:t.spawnRect}:t.spawnType==="polygonalChain"&&(C={type:"polygonalChain",data:t.spawnPolygon}),C&&b.behaviors.push({type:"spawnShape",config:C})}return b}W.registerBehavior(Tn);W.registerBehavior(xn);W.registerBehavior(bn);W.registerBehavior(In);W.registerBehavior(En);W.registerBehavior(Rn);W.registerBehavior(Cn);W.registerBehavior(wn);W.registerBehavior(Pn);W.registerBehavior(Nn);W.registerBehavior(An);W.registerBehavior(Un);W.registerBehavior(On);W.registerBehavior(Sn);W.registerBehavior(Ln);W.registerBehavior(Fn);W.registerBehavior(Gn);W.registerBehavior(Bn);W.registerBehavior(mt);W.registerBehavior(Mn);W.registerBehavior(Xn);W.registerBehavior(kn);/*!
- * @pixi/polyfill - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/polyfill is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- */typeof globalThis=="undefined"&&(typeof self!="undefined"?self.globalThis=self:typeof global!="undefined"&&(global.globalThis=global));globalThis.Promise||(globalThis.Promise=Sh);Object.assign||(Object.assign=Lh);var Pd=16;Date.now&&Date.prototype.getTime||(Date.now=function(){return new Date().getTime()});if(!(globalThis.performance&&globalThis.performance.now)){var Nd=Date.now();globalThis.performance||(globalThis.performance={}),globalThis.performance.now=function(){return Date.now()-Nd}}var ri=Date.now(),ja=["ms","moz","webkit","o"];for(var ii=0;ii<ja.length&&!globalThis.requestAnimationFrame;++ii){var ni=ja[ii];globalThis.requestAnimationFrame=globalThis[ni+"RequestAnimationFrame"],globalThis.cancelAnimationFrame=globalThis[ni+"CancelAnimationFrame"]||globalThis[ni+"CancelRequestAnimationFrame"]}globalThis.requestAnimationFrame||(globalThis.requestAnimationFrame=function(t){if(typeof t!="function")throw new TypeError(t+"is not a function");var r=Date.now(),e=Pd+ri-r;return e<0&&(e=0),ri=r,globalThis.self.setTimeout(function(){ri=Date.now(),t(performance.now())},e)});globalThis.cancelAnimationFrame||(globalThis.cancelAnimationFrame=function(t){return clearTimeout(t)});Math.sign||(Math.sign=function(r){return r=Number(r),r===0||isNaN(r)?r:r>0?1:-1});Number.isInteger||(Number.isInteger=function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r});globalThis.ArrayBuffer||(globalThis.ArrayBuffer=Array);globalThis.Float32Array||(globalThis.Float32Array=Array);globalThis.Uint32Array||(globalThis.Uint32Array=Array);globalThis.Uint16Array||(globalThis.Uint16Array=Array);globalThis.Uint8Array||(globalThis.Uint8Array=Array);globalThis.Int32Array||(globalThis.Int32Array=Array);/*!
- * @pixi/accessibility - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/accessibility is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- */var Ad={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1};tt.mixin(Ad);var Ud=9,dr=100,Od=0,Sd=0,za=2,Wa=1,Ld=-1e3,Fd=-1e3,Gd=2,Jv=function(){function t(r){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(It.tablet||It.phone)&&this.createTouchHook();var e=document.createElement("div");e.style.width=dr+"px",e.style.height=dr+"px",e.style.position="absolute",e.style.top=Od+"px",e.style.left=Sd+"px",e.style.zIndex=za.toString(),this.div=e,this.renderer=r,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this._isActive},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMobileAccessibility",{get:function(){return this._isMobileAccessibility},enumerable:!1,configurable:!0}),t.prototype.createTouchHook=function(){var r=this,e=document.createElement("button");e.style.width=Wa+"px",e.style.height=Wa+"px",e.style.position="absolute",e.style.top=Ld+"px",e.style.left=Fd+"px",e.style.zIndex=Gd.toString(),e.style.backgroundColor="#FF0000",e.title="select to enable accessibility for this content",e.addEventListener("focus",function(){r._isMobileAccessibility=!0,r.activate(),r.destroyTouchHook()}),document.body.appendChild(e),this._hookDiv=e},t.prototype.destroyTouchHook=function(){!this._hookDiv||(document.body.removeChild(this._hookDiv),this._hookDiv=null)},t.prototype.activate=function(){var r;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),(r=this.renderer.view.parentNode)===null||r===void 0||r.appendChild(this.div))},t.prototype.deactivate=function(){var r;!this._isActive||this._isMobileAccessibility||(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),(r=this.div.parentNode)===null||r===void 0||r.removeChild(this.div))},t.prototype.updateAccessibleObjects=function(r){if(!(!r.visible||!r.accessibleChildren)){r.accessible&&r.interactive&&(r._accessibleActive||this.addChild(r),r.renderId=this.renderId);var e=r.children;if(e)for(var i=0;i<e.length;i++)this.updateAccessibleObjects(e[i])}},t.prototype.update=function(){var r=performance.now();if(!(It.android.device&&r<this.androidUpdateCount)&&(this.androidUpdateCount=r+this.androidUpdateFrequency,!!this.renderer.renderingToScreen)){this.renderer._lastObjectRendered&&this.updateAccessibleObjects(this.renderer._lastObjectRendered);var e=this.renderer.view.getBoundingClientRect(),i=e.left,n=e.top,a=e.width,s=e.height,o=this.renderer,h=o.width,u=o.height,l=o.resolution,c=a/h*l,f=s/u*l,d=this.div;d.style.left=i+"px",d.style.top=n+"px",d.style.width=h+"px",d.style.height=u+"px";for(var p=0;p<this.children.length;p++){var v=this.children[p];if(v.renderId!==this.renderId)v._accessibleActive=!1,Gt(this.children,p,1),this.div.removeChild(v._accessibleDiv),this.pool.push(v._accessibleDiv),v._accessibleDiv=null,p--;else{d=v._accessibleDiv;var _=v.hitArea,m=v.worldTransform;v.hitArea?(d.style.left=(m.tx+_.x*m.a)*c+"px",d.style.top=(m.ty+_.y*m.d)*f+"px",d.style.width=_.width*m.a*c+"px",d.style.height=_.height*m.d*f+"px"):(_=v.getBounds(),this.capHitArea(_),d.style.left=_.x*c+"px",d.style.top=_.y*f+"px",d.style.width=_.width*c+"px",d.style.height=_.height*f+"px",d.title!==v.accessibleTitle&&v.accessibleTitle!==null&&(d.title=v.accessibleTitle),d.getAttribute("aria-label")!==v.accessibleHint&&v.accessibleHint!==null&&d.setAttribute("aria-label",v.accessibleHint)),(v.accessibleTitle!==d.title||v.tabIndex!==d.tabIndex)&&(d.title=v.accessibleTitle,d.tabIndex=v.tabIndex,this.debug&&this.updateDebugHTML(d))}}this.renderId++}},t.prototype.updateDebugHTML=function(r){r.innerHTML="type: "+r.type+"</br> title : "+r.title+"</br> tabIndex: "+r.tabIndex},t.prototype.capHitArea=function(r){r.x<0&&(r.width+=r.x,r.x=0),r.y<0&&(r.height+=r.y,r.y=0);var e=this.renderer,i=e.width,n=e.height;r.x+r.width>i&&(r.width=i-r.x),r.y+r.height>n&&(r.height=n-r.y)},t.prototype.addChild=function(r){var e=this.pool.pop();e||(e=document.createElement("button"),e.style.width=dr+"px",e.style.height=dr+"px",e.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",e.style.position="absolute",e.style.zIndex=za.toString(),e.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?e.setAttribute("aria-live","off"):e.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?e.setAttribute("aria-relevant","additions"):e.setAttribute("aria-relevant","text"),e.addEventListener("click",this._onClick.bind(this)),e.addEventListener("focus",this._onFocus.bind(this)),e.addEventListener("focusout",this._onFocusOut.bind(this))),e.style.pointerEvents=r.accessiblePointerEvents,e.type=r.accessibleType,r.accessibleTitle&&r.accessibleTitle!==null?e.title=r.accessibleTitle:(!r.accessibleHint||r.accessibleHint===null)&&(e.title="displayObject "+r.tabIndex),r.accessibleHint&&r.accessibleHint!==null&&e.setAttribute("aria-label",r.accessibleHint),this.debug&&this.updateDebugHTML(e),r._accessibleActive=!0,r._accessibleDiv=e,e.displayObject=r,this.children.push(r),this.div.appendChild(r._accessibleDiv),r._accessibleDiv.tabIndex=r.tabIndex},t.prototype._onClick=function(r){var e=this.renderer.plugins.interaction,i=r.target.displayObject,n=e.eventData;e.dispatchEvent(i,"click",n),e.dispatchEvent(i,"pointertap",n),e.dispatchEvent(i,"tap",n)},t.prototype._onFocus=function(r){r.target.getAttribute("aria-live")||r.target.setAttribute("aria-live","assertive");var e=this.renderer.plugins.interaction,i=r.target.displayObject,n=e.eventData;e.dispatchEvent(i,"mouseover",n)},t.prototype._onFocusOut=function(r){r.target.getAttribute("aria-live")||r.target.setAttribute("aria-live","polite");var e=this.renderer.plugins.interaction,i=r.target.displayObject,n=e.eventData;e.dispatchEvent(i,"mouseout",n)},t.prototype._onKeyDown=function(r){r.keyCode===Ud&&this.activate()},t.prototype._onMouseMove=function(r){r.movementX===0&&r.movementY===0||this.deactivate()},t.prototype.destroy=function(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},t}();/*!
- * @pixi/interaction - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/interaction is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- */var Ya=function(){function t(){this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0,this.global=new D,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return Object.defineProperty(t.prototype,"pointerId",{get:function(){return this.identifier},enumerable:!1,configurable:!0}),t.prototype.getLocalPosition=function(r,e,i){return r.worldTransform.applyInverse(i||this.global,e)},t.prototype.copyEvent=function(r){"isPrimary"in r&&r.isPrimary&&(this.isPrimary=!0),this.button="button"in r&&r.button;var e="buttons"in r&&r.buttons;this.buttons=Number.isInteger(e)?e:"which"in r&&r.which,this.width="width"in r&&r.width,this.height="height"in r&&r.height,this.tiltX="tiltX"in r&&r.tiltX,this.tiltY="tiltY"in r&&r.tiltY,this.pointerType="pointerType"in r&&r.pointerType,this.pressure="pressure"in r&&r.pressure,this.rotationAngle="rotationAngle"in r&&r.rotationAngle,this.twist="twist"in r&&r.twist||0,this.tangentialPressure="tangentialPressure"in r&&r.tangentialPressure||0},t.prototype.reset=function(){this.isPrimary=!1},t}();/*! *****************************************************************************
-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 Xi=function(t,r){return Xi=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])},Xi(t,r)};function Bd(t,r){Xi(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var Md=function(){function t(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return t.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},t.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null},t}(),ai=function(){function t(r){this._pointerId=r,this._flags=t.FLAGS.NONE}return t.prototype._doSet=function(r,e){e?this._flags=this._flags|r:this._flags=this._flags&~r},Object.defineProperty(t.prototype,"pointerId",{get:function(){return this._pointerId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"flags",{get:function(){return this._flags},set:function(r){this._flags=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"none",{get:function(){return this._flags===t.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"over",{get:function(){return(this._flags&t.FLAGS.OVER)!==0},set:function(r){this._doSet(t.FLAGS.OVER,r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightDown",{get:function(){return(this._flags&t.FLAGS.RIGHT_DOWN)!==0},set:function(r){this._doSet(t.FLAGS.RIGHT_DOWN,r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftDown",{get:function(){return(this._flags&t.FLAGS.LEFT_DOWN)!==0},set:function(r){this._doSet(t.FLAGS.LEFT_DOWN,r)},enumerable:!1,configurable:!0}),t.FLAGS=Object.freeze({NONE:0,OVER:1<<0,LEFT_DOWN:1<<1,RIGHT_DOWN:1<<2}),t}(),Xd=function(){function t(){this._tempPoint=new D}return t.prototype.recursiveFindHit=function(r,e,i,n,a){if(!e||!e.visible)return!1;var s=r.data.global;a=e.interactive||a;var o=!1,h=a,u=!0;if(e.hitArea?(n&&(e.worldTransform.applyInverse(s,this._tempPoint),e.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?o=!0:(n=!1,u=!1)),h=!1):e._mask&&n&&(e._mask.containsPoint&&e._mask.containsPoint(s)||(n=!1)),u&&e.interactiveChildren&&e.children)for(var l=e.children,c=l.length-1;c>=0;c--){var f=l[c],d=this.recursiveFindHit(r,f,i,n,h);if(d){if(!f.parent)continue;h=!1,d&&(r.target&&(n=!1),o=!0)}}return a&&(n&&!r.target&&!e.hitArea&&e.containsPoint&&e.containsPoint(s)&&(o=!0),e.interactive&&(o&&!r.target&&(r.target=e),i&&i(r,e,!!o))),o},t.prototype.findHit=function(r,e,i,n){this.recursiveFindHit(r,e,i,n,!1)},t}(),kd={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return this.cursor==="pointer"},set buttonMode(t){t?this.cursor="pointer":this.cursor==="pointer"&&(this.cursor=null)},cursor:null,get trackedPointers(){return this._trackedPointers===void 0&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};tt.mixin(kd);var pr=1,vr={target:null,data:{global:null}},Qv=function(t){Bd(r,t);function r(e,i){var n=t.call(this)||this;return i=i||{},n.renderer=e,n.autoPreventDefault=i.autoPreventDefault!==void 0?i.autoPreventDefault:!0,n.interactionFrequency=i.interactionFrequency||10,n.mouse=new Ya,n.mouse.identifier=pr,n.mouse.global.set(-999999),n.activeInteractionData={},n.activeInteractionData[pr]=n.mouse,n.interactionDataPool=[],n.eventData=new Md,n.interactionDOMElement=null,n.moveWhenInside=!1,n.eventsAdded=!1,n.tickerAdded=!1,n.mouseOverRenderer=!("PointerEvent"in globalThis),n.supportsTouchEvents="ontouchstart"in globalThis,n.supportsPointerEvents=!!globalThis.PointerEvent,n.onPointerUp=n.onPointerUp.bind(n),n.processPointerUp=n.processPointerUp.bind(n),n.onPointerCancel=n.onPointerCancel.bind(n),n.processPointerCancel=n.processPointerCancel.bind(n),n.onPointerDown=n.onPointerDown.bind(n),n.processPointerDown=n.processPointerDown.bind(n),n.onPointerMove=n.onPointerMove.bind(n),n.processPointerMove=n.processPointerMove.bind(n),n.onPointerOut=n.onPointerOut.bind(n),n.processPointerOverOut=n.processPointerOverOut.bind(n),n.onPointerOver=n.onPointerOver.bind(n),n.cursorStyles={default:"inherit",pointer:"pointer"},n.currentCursorMode=null,n.cursor=null,n.resolution=1,n.delayedEvents=[],n.search=new Xd,n._tempDisplayObject=new dh,n._eventListenerOptions={capture:!0,passive:!1},n._useSystemTicker=i.useSystemTicker!==void 0?i.useSystemTicker:!0,n.setTargetElement(n.renderer.view,n.renderer.resolution),n}return Object.defineProperty(r.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(e){this._useSystemTicker=e,e?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),r.prototype.hitTest=function(e,i){return vr.target=null,vr.data.global=e,i||(i=this.lastObjectRendered),this.processInteractive(vr,i,null,!0),vr.target},r.prototype.setTargetElement=function(e,i){i===void 0&&(i=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=e,this.resolution=i,this.addEvents(),this.addTickerListener()},r.prototype.addTickerListener=function(){this.tickerAdded||!this.interactionDOMElement||!this._useSystemTicker||(at.system.add(this.tickerUpdate,this,kt.INTERACTION),this.tickerAdded=!0)},r.prototype.removeTickerListener=function(){!this.tickerAdded||(at.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},r.prototype.addEvents=function(){if(!(this.eventsAdded||!this.interactionDOMElement)){var e=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(e.msContentZooming="none",e.msTouchAction="none"):this.supportsPointerEvents&&(e.touchAction="none"),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.addEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.eventsAdded=!0}},r.prototype.removeEvents=function(){if(!(!this.eventsAdded||!this.interactionDOMElement)){var e=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(e.msContentZooming="",e.msTouchAction=""):this.supportsPointerEvents&&(e.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.removeEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.interactionDOMElement=null,this.eventsAdded=!1}},r.prototype.tickerUpdate=function(e){this._deltaTime+=e,!(this._deltaTime<this.interactionFrequency)&&(this._deltaTime=0,this.update())},r.prototype.update=function(){if(!!this.interactionDOMElement){if(this._didMove){this._didMove=!1;return}this.cursor=null;for(var e in this.activeInteractionData)if(this.activeInteractionData.hasOwnProperty(e)){var i=this.activeInteractionData[e];if(i.originalEvent&&i.pointerType!=="touch"){var n=this.configureInteractionEventForDOMEvent(this.eventData,i.originalEvent,i);this.processInteractive(n,this.lastObjectRendered,this.processPointerOverOut,!0)}}this.setCursorMode(this.cursor)}},r.prototype.setCursorMode=function(e){e=e||"default";var i=!0;if(globalThis.OffscreenCanvas&&this.interactionDOMElement instanceof OffscreenCanvas&&(i=!1),this.currentCursorMode!==e){this.currentCursorMode=e;var n=this.cursorStyles[e];if(n)switch(typeof n){case"string":i&&(this.interactionDOMElement.style.cursor=n);break;case"function":n(e);break;case"object":i&&Object.assign(this.interactionDOMElement.style,n);break}else i&&typeof e=="string"&&!Object.prototype.hasOwnProperty.call(this.cursorStyles,e)&&(this.interactionDOMElement.style.cursor=e)}},r.prototype.dispatchEvent=function(e,i,n){(!n.stopPropagationHint||e===n.stopsPropagatingAt)&&(n.currentTarget=e,n.type=i,e.emit(i,n),e[i]&&e[i](n))},r.prototype.delayDispatchEvent=function(e,i,n){this.delayedEvents.push({displayObject:e,eventString:i,eventData:n})},r.prototype.mapPositionToPoint=function(e,i,n){var a;this.interactionDOMElement.parentElement?a=this.interactionDOMElement.getBoundingClientRect():a={x:0,y:0,width:this.interactionDOMElement.width,height:this.interactionDOMElement.height,left:0,top:0};var s=1/this.resolution;e.x=(i-a.left)*(this.interactionDOMElement.width/a.width)*s,e.y=(n-a.top)*(this.interactionDOMElement.height/a.height)*s},r.prototype.processInteractive=function(e,i,n,a){var s=this.search.findHit(e,i,n,a),o=this.delayedEvents;if(!o.length)return s;e.stopPropagationHint=!1;var h=o.length;this.delayedEvents=[];for(var u=0;u<h;u++){var l=o[u],c=l.displayObject,f=l.eventString,d=l.eventData;d.stopsPropagatingAt===c&&(d.stopPropagationHint=!0),this.dispatchEvent(c,f,d)}return s},r.prototype.onPointerDown=function(e){if(!(this.supportsTouchEvents&&e.pointerType==="touch")){var i=this.normalizeToPointerData(e);if(this.autoPreventDefault&&i[0].isNormalized){var n=e.cancelable||!("cancelable"in e);n&&e.preventDefault()}for(var a=i.length,s=0;s<a;s++){var o=i[s],h=this.getInteractionDataForPointerId(o),u=this.configureInteractionEventForDOMEvent(this.eventData,o,h);if(u.data.originalEvent=e,this.processInteractive(u,this.lastObjectRendered,this.processPointerDown,!0),this.emit("pointerdown",u),o.pointerType==="touch")this.emit("touchstart",u);else if(o.pointerType==="mouse"||o.pointerType==="pen"){var l=o.button===2;this.emit(l?"rightdown":"mousedown",this.eventData)}}}},r.prototype.processPointerDown=function(e,i,n){var a=e.data,s=e.data.identifier;if(n){if(i.trackedPointers[s]||(i.trackedPointers[s]=new ai(s)),this.dispatchEvent(i,"pointerdown",e),a.pointerType==="touch")this.dispatchEvent(i,"touchstart",e);else if(a.pointerType==="mouse"||a.pointerType==="pen"){var o=a.button===2;o?i.trackedPointers[s].rightDown=!0:i.trackedPointers[s].leftDown=!0,this.dispatchEvent(i,o?"rightdown":"mousedown",e)}}},r.prototype.onPointerComplete=function(e,i,n){for(var a=this.normalizeToPointerData(e),s=a.length,o=e.target!==this.interactionDOMElement?"outside":"",h=0;h<s;h++){var u=a[h],l=this.getInteractionDataForPointerId(u),c=this.configureInteractionEventForDOMEvent(this.eventData,u,l);if(c.data.originalEvent=e,this.processInteractive(c,this.lastObjectRendered,n,i||!o),this.emit(i?"pointercancel":"pointerup"+o,c),u.pointerType==="mouse"||u.pointerType==="pen"){var f=u.button===2;this.emit(f?"rightup"+o:"mouseup"+o,c)}else u.pointerType==="touch"&&(this.emit(i?"touchcancel":"touchend"+o,c),this.releaseInteractionDataForPointerId(u.pointerId))}},r.prototype.onPointerCancel=function(e){this.supportsTouchEvents&&e.pointerType==="touch"||this.onPointerComplete(e,!0,this.processPointerCancel)},r.prototype.processPointerCancel=function(e,i){var n=e.data,a=e.data.identifier;i.trackedPointers[a]!==void 0&&(delete i.trackedPointers[a],this.dispatchEvent(i,"pointercancel",e),n.pointerType==="touch"&&this.dispatchEvent(i,"touchcancel",e))},r.prototype.onPointerUp=function(e){this.supportsTouchEvents&&e.pointerType==="touch"||this.onPointerComplete(e,!1,this.processPointerUp)},r.prototype.processPointerUp=function(e,i,n){var a=e.data,s=e.data.identifier,o=i.trackedPointers[s],h=a.pointerType==="touch",u=a.pointerType==="mouse"||a.pointerType==="pen",l=!1;if(u){var c=a.button===2,f=ai.FLAGS,d=c?f.RIGHT_DOWN:f.LEFT_DOWN,p=o!==void 0&&o.flags&d;n?(this.dispatchEvent(i,c?"rightup":"mouseup",e),p&&(this.dispatchEvent(i,c?"rightclick":"click",e),l=!0)):p&&this.dispatchEvent(i,c?"rightupoutside":"mouseupoutside",e),o&&(c?o.rightDown=!1:o.leftDown=!1)}n?(this.dispatchEvent(i,"pointerup",e),h&&this.dispatchEvent(i,"touchend",e),o&&((!u||l)&&this.dispatchEvent(i,"pointertap",e),h&&(this.dispatchEvent(i,"tap",e),o.over=!1))):o&&(this.dispatchEvent(i,"pointerupoutside",e),h&&this.dispatchEvent(i,"touchendoutside",e)),o&&o.none&&delete i.trackedPointers[s]},r.prototype.onPointerMove=function(e){if(!(this.supportsTouchEvents&&e.pointerType==="touch")){var i=this.normalizeToPointerData(e);(i[0].pointerType==="mouse"||i[0].pointerType==="pen")&&(this._didMove=!0,this.cursor=null);for(var n=i.length,a=0;a<n;a++){var s=i[a],o=this.getInteractionDataForPointerId(s),h=this.configureInteractionEventForDOMEvent(this.eventData,s,o);h.data.originalEvent=e,this.processInteractive(h,this.lastObjectRendered,this.processPointerMove,!0),this.emit("pointermove",h),s.pointerType==="touch"&&this.emit("touchmove",h),(s.pointerType==="mouse"||s.pointerType==="pen")&&this.emit("mousemove",h)}i[0].pointerType==="mouse"&&this.setCursorMode(this.cursor)}},r.prototype.processPointerMove=function(e,i,n){var a=e.data,s=a.pointerType==="touch",o=a.pointerType==="mouse"||a.pointerType==="pen";o&&this.processPointerOverOut(e,i,n),(!this.moveWhenInside||n)&&(this.dispatchEvent(i,"pointermove",e),s&&this.dispatchEvent(i,"touchmove",e),o&&this.dispatchEvent(i,"mousemove",e))},r.prototype.onPointerOut=function(e){if(!(this.supportsTouchEvents&&e.pointerType==="touch")){var i=this.normalizeToPointerData(e),n=i[0];n.pointerType==="mouse"&&(this.mouseOverRenderer=!1,this.setCursorMode(null));var a=this.getInteractionDataForPointerId(n),s=this.configureInteractionEventForDOMEvent(this.eventData,n,a);s.data.originalEvent=n,this.processInteractive(s,this.lastObjectRendered,this.processPointerOverOut,!1),this.emit("pointerout",s),n.pointerType==="mouse"||n.pointerType==="pen"?this.emit("mouseout",s):this.releaseInteractionDataForPointerId(a.identifier)}},r.prototype.processPointerOverOut=function(e,i,n){var a=e.data,s=e.data.identifier,o=a.pointerType==="mouse"||a.pointerType==="pen",h=i.trackedPointers[s];n&&!h&&(h=i.trackedPointers[s]=new ai(s)),h!==void 0&&(n&&this.mouseOverRenderer?(h.over||(h.over=!0,this.delayDispatchEvent(i,"pointerover",e),o&&this.delayDispatchEvent(i,"mouseover",e)),o&&this.cursor===null&&(this.cursor=i.cursor)):h.over&&(h.over=!1,this.dispatchEvent(i,"pointerout",this.eventData),o&&this.dispatchEvent(i,"mouseout",e),h.none&&delete i.trackedPointers[s]))},r.prototype.onPointerOver=function(e){var i=this.normalizeToPointerData(e),n=i[0],a=this.getInteractionDataForPointerId(n),s=this.configureInteractionEventForDOMEvent(this.eventData,n,a);s.data.originalEvent=n,n.pointerType==="mouse"&&(this.mouseOverRenderer=!0),this.emit("pointerover",s),(n.pointerType==="mouse"||n.pointerType==="pen")&&this.emit("mouseover",s)},r.prototype.getInteractionDataForPointerId=function(e){var i=e.pointerId,n;return i===pr||e.pointerType==="mouse"?n=this.mouse:this.activeInteractionData[i]?n=this.activeInteractionData[i]:(n=this.interactionDataPool.pop()||new Ya,n.identifier=i,this.activeInteractionData[i]=n),n.copyEvent(e),n},r.prototype.releaseInteractionDataForPointerId=function(e){var i=this.activeInteractionData[e];i&&(delete this.activeInteractionData[e],i.reset(),this.interactionDataPool.push(i))},r.prototype.configureInteractionEventForDOMEvent=function(e,i,n){return e.data=n,this.mapPositionToPoint(n.global,i.clientX,i.clientY),i.pointerType==="touch"&&(i.globalX=n.global.x,i.globalY=n.global.y),n.originalEvent=i,e.reset(),e},r.prototype.normalizeToPointerData=function(e){var i=[];if(this.supportsTouchEvents&&e instanceof TouchEvent)for(var n=0,a=e.changedTouches.length;n<a;n++){var s=e.changedTouches[n];typeof s.button=="undefined"&&(s.button=e.touches.length?1:0),typeof s.buttons=="undefined"&&(s.buttons=e.touches.length?1:0),typeof s.isPrimary=="undefined"&&(s.isPrimary=e.touches.length===1&&e.type==="touchstart"),typeof s.width=="undefined"&&(s.width=s.radiusX||1),typeof s.height=="undefined"&&(s.height=s.radiusY||1),typeof s.tiltX=="undefined"&&(s.tiltX=0),typeof s.tiltY=="undefined"&&(s.tiltY=0),typeof s.pointerType=="undefined"&&(s.pointerType="touch"),typeof s.pointerId=="undefined"&&(s.pointerId=s.identifier||0),typeof s.pressure=="undefined"&&(s.pressure=s.force||.5),typeof s.twist=="undefined"&&(s.twist=0),typeof s.tangentialPressure=="undefined"&&(s.tangentialPressure=0),typeof s.layerX=="undefined"&&(s.layerX=s.offsetX=s.clientX),typeof s.layerY=="undefined"&&(s.layerY=s.offsetY=s.clientY),s.isNormalized=!0,i.push(s)}else if(!globalThis.MouseEvent||e instanceof MouseEvent&&(!this.supportsPointerEvents||!(e instanceof globalThis.PointerEvent))){var o=e;typeof o.isPrimary=="undefined"&&(o.isPrimary=!0),typeof o.width=="undefined"&&(o.width=1),typeof o.height=="undefined"&&(o.height=1),typeof o.tiltX=="undefined"&&(o.tiltX=0),typeof o.tiltY=="undefined"&&(o.tiltY=0),typeof o.pointerType=="undefined"&&(o.pointerType="mouse"),typeof o.pointerId=="undefined"&&(o.pointerId=pr),typeof o.pressure=="undefined"&&(o.pressure=.5),typeof o.twist=="undefined"&&(o.twist=0),typeof o.tangentialPressure=="undefined"&&(o.tangentialPressure=0),o.isNormalized=!0,i.push(o)}else i.push(e);return i},r.prototype.destroy=function(){this.removeEvents(),this.removeTickerListener(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactionDOMElement=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerCancel=null,this.processPointerCancel=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this.search=null},r}(we);/*!
- * @pixi/app - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/app is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- */var Hd=function(){function t(r){var e=this;this.stage=new wt,r=Object.assign({forceCanvas:!1},r),this.renderer=hd(r),t._plugins.forEach(function(i){i.init.call(e,r)})}return t.registerPlugin=function(r){t._plugins.push(r)},t.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(t.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),t.prototype.destroy=function(r,e){var i=this,n=t._plugins.slice(0);n.reverse(),n.forEach(function(a){a.destroy.call(i)}),this.stage.destroy(e),this.stage=null,this.renderer.destroy(r),this.renderer=null},t._plugins=[],t}(),Dd=function(){function t(){}return t.init=function(r){var e=this;Object.defineProperty(this,"resizeTo",{set:function(i){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=i,i&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){!e._resizeTo||(e.cancelResize(),e._resizeId=requestAnimationFrame(function(){return e.resize()}))},this.cancelResize=function(){e._resizeId&&(cancelAnimationFrame(e._resizeId),e._resizeId=null)},this.resize=function(){if(!!e._resizeTo){e.cancelResize();var i,n;if(e._resizeTo===globalThis.window)i=globalThis.innerWidth,n=globalThis.innerHeight;else{var a=e._resizeTo,s=a.clientWidth,o=a.clientHeight;i=s,n=o}e.renderer.resize(i,n)}},this._resizeId=null,this._resizeTo=null,this.resizeTo=r.resizeTo||null},t.destroy=function(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null},t}();Hd.registerPlugin(Dd);/*!
- * @pixi/extract - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/extract is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- */var si=/iPhone/i,$a=/iPod/i,qa=/iPad/i,Ka=/\biOS-universal(?:.+)Mac\b/i,oi=/\bAndroid(?:.+)Mobile\b/i,Za=/Android/i,ve=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,_r=/Silk/i,At=/Windows Phone/i,Ja=/\bWindows(?:.+)ARM\b/i,Qa=/BlackBerry/i,ts=/BB10/i,es=/Opera Mini/i,rs=/\b(CriOS|Chrome)(?:.+)Mobile/i,is=/Mobile(?:.+)Firefox\b/i,ns=function(t){return typeof t!="undefined"&&t.platform==="MacIntel"&&typeof t.maxTouchPoints=="number"&&t.maxTouchPoints>1&&typeof MSStream=="undefined"};function Vd(t){return function(r){return r.test(t)}}function jd(t){var r={userAgent:"",platform:"",maxTouchPoints:0};!t&&typeof navigator!="undefined"?r={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof t=="string"?r.userAgent=t:t&&t.userAgent&&(r={userAgent:t.userAgent,platform:t.platform,maxTouchPoints:t.maxTouchPoints||0});var e=r.userAgent,i=e.split("[FBAN");typeof i[1]!="undefined"&&(e=i[0]),i=e.split("Twitter"),typeof i[1]!="undefined"&&(e=i[0]);var n=Vd(e),a={apple:{phone:n(si)&&!n(At),ipod:n($a),tablet:!n(si)&&(n(qa)||ns(r))&&!n(At),universal:n(Ka),device:(n(si)||n($a)||n(qa)||n(Ka)||ns(r))&&!n(At)},amazon:{phone:n(ve),tablet:!n(ve)&&n(_r),device:n(ve)||n(_r)},android:{phone:!n(At)&&n(ve)||!n(At)&&n(oi),tablet:!n(At)&&!n(ve)&&!n(oi)&&(n(_r)||n(Za)),device:!n(At)&&(n(ve)||n(_r)||n(oi)||n(Za))||n(/\bokhttp\b/i)},windows:{phone:n(At),tablet:n(Ja),device:n(At)||n(Ja)},other:{blackberry:n(Qa),blackberry10:n(ts),opera:n(es),firefox:n(is),chrome:n(rs),device:n(Qa)||n(ts)||n(es)||n(is)||n(rs)},any:!1,phone:!1,tablet:!1};return a.any=a.apple.device||a.android.device||a.windows.device||a.other.device,a.phone=a.apple.phone||a.android.phone||a.windows.phone,a.tablet=a.apple.tablet||a.android.tablet||a.windows.tablet,a}/*!
- * @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 Ie=jd(globalThis.navigator);function zd(t){var r=!0;if(Ie.tablet||Ie.phone){if(Ie.apple.device){var e=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(e){var i=parseInt(e[1],10);i<11&&(r=!1)}}if(Ie.android.device){var e=navigator.userAgent.match(/Android\s([0-9.]*)/);if(e){var i=parseInt(e[1],10);i<7&&(r=!1)}}}return r?t:4}function Wd(){return!Ie.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 as;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})(as||(as={}));var ss;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(ss||(ss={}));var os;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(os||(os={}));var hs;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(hs||(hs={}));var us;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(us||(us={}));var ls;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(ls||(ls={}));var fs;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(fs||(fs={}));var cs;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(cs||(cs={}));var ds;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(ds||(ds={}));var ki;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(ki||(ki={}));var Hi;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(Hi||(Hi={}));var Di;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(Di||(Di={}));var ps;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(ps||(ps={}));var vs;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"})(vs||(vs={}));var Vi;(function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"})(Vi||(Vi={}));var Xe;(function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"})(Xe||(Xe={}));var _s;(function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"})(_s||(_s={}));var ji;(function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"})(ji||(ji={}));var ms;(function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(ms||(ms={}));var gh={MIPMAP_TEXTURES:Di.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:ji.NONE,SPRITE_MAX_TEXTURES:zd(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:Vi.AUTO,GC_MAX_IDLE:60*60,GC_MAX_CHECK_COUNT:60*10,WRAP_MODE:Hi.CLAMP,SCALE_MODE:ki.LINEAR,PRECISION_VERTEX:Xe.HIGH,PRECISION_FRAGMENT:Ie.apple.device?Xe.HIGH:Xe.MEDIUM,CAN_UPLOAD_SAME_BUFFER:Wd(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};/*!
- * @pixi/display - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/display is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- */gh.SORTABLE_CHILDREN=!1;var ys=function(){function t(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}return t.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},t.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},t.prototype.getRectangle=function(r){return this.minX>this.maxX||this.minY>this.maxY?M.EMPTY:(r=r||new M(0,0,1,1),r.x=this.minX,r.y=this.minY,r.width=this.maxX-this.minX,r.height=this.maxY-this.minY,r)},t.prototype.addPoint=function(r){this.minX=Math.min(this.minX,r.x),this.maxX=Math.max(this.maxX,r.x),this.minY=Math.min(this.minY,r.y),this.maxY=Math.max(this.maxY,r.y)},t.prototype.addPointMatrix=function(r,e){var i=r.a,n=r.b,a=r.c,s=r.d,o=r.tx,h=r.ty,u=i*e.x+a*e.y+o,l=n*e.x+s*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)},t.prototype.addQuad=function(r){var e=this.minX,i=this.minY,n=this.maxX,a=this.maxY,s=r[0],o=r[1];e=s<e?s:e,i=o<i?o:i,n=s>n?s:n,a=o>a?o:a,s=r[2],o=r[3],e=s<e?s:e,i=o<i?o:i,n=s>n?s:n,a=o>a?o:a,s=r[4],o=r[5],e=s<e?s:e,i=o<i?o:i,n=s>n?s:n,a=o>a?o:a,s=r[6],o=r[7],e=s<e?s:e,i=o<i?o:i,n=s>n?s:n,a=o>a?o:a,this.minX=e,this.minY=i,this.maxX=n,this.maxY=a},t.prototype.addFrame=function(r,e,i,n,a){this.addFrameMatrix(r.worldTransform,e,i,n,a)},t.prototype.addFrameMatrix=function(r,e,i,n,a){var s=r.a,o=r.b,h=r.c,u=r.d,l=r.tx,c=r.ty,f=this.minX,d=this.minY,p=this.maxX,v=this.maxY,_=s*e+h*i+l,m=o*e+u*i+c;f=_<f?_:f,d=m<d?m:d,p=_>p?_:p,v=m>v?m:v,_=s*n+h*i+l,m=o*n+u*i+c,f=_<f?_:f,d=m<d?m:d,p=_>p?_:p,v=m>v?m:v,_=s*e+h*a+l,m=o*e+u*a+c,f=_<f?_:f,d=m<d?m:d,p=_>p?_:p,v=m>v?m:v,_=s*n+h*a+l,m=o*n+u*a+c,f=_<f?_:f,d=m<d?m:d,p=_>p?_:p,v=m>v?m:v,this.minX=f,this.minY=d,this.maxX=p,this.maxY=v},t.prototype.addVertexData=function(r,e,i){for(var n=this.minX,a=this.minY,s=this.maxX,o=this.maxY,h=e;h<i;h+=2){var u=r[h],l=r[h+1];n=u<n?u:n,a=l<a?l:a,s=u>s?u:s,o=l>o?l:o}this.minX=n,this.minY=a,this.maxX=s,this.maxY=o},t.prototype.addVertices=function(r,e,i,n){this.addVerticesMatrix(r.worldTransform,e,i,n)},t.prototype.addVerticesMatrix=function(r,e,i,n,a,s){a===void 0&&(a=0),s===void 0&&(s=a);for(var o=r.a,h=r.b,u=r.c,l=r.d,c=r.tx,f=r.ty,d=this.minX,p=this.minY,v=this.maxX,_=this.maxY,m=i;m<n;m+=2){var T=e[m],x=e[m+1],E=o*T+u*x+c,g=l*x+h*T+f;d=Math.min(d,E-a),v=Math.max(v,E+a),p=Math.min(p,g-s),_=Math.max(_,g+s)}this.minX=d,this.minY=p,this.maxX=v,this.maxY=_},t.prototype.addBounds=function(r){var e=this.minX,i=this.minY,n=this.maxX,a=this.maxY;this.minX=r.minX<e?r.minX:e,this.minY=r.minY<i?r.minY:i,this.maxX=r.maxX>n?r.maxX:n,this.maxY=r.maxY>a?r.maxY:a},t.prototype.addBoundsMask=function(r,e){var i=r.minX>e.minX?r.minX:e.minX,n=r.minY>e.minY?r.minY:e.minY,a=r.maxX<e.maxX?r.maxX:e.maxX,s=r.maxY<e.maxY?r.maxY:e.maxY;if(i<=a&&n<=s){var o=this.minX,h=this.minY,u=this.maxX,l=this.maxY;this.minX=i<o?i:o,this.minY=n<h?n:h,this.maxX=a>u?a:u,this.maxY=s>l?s:l}},t.prototype.addBoundsMatrix=function(r,e){this.addFrameMatrix(e,r.minX,r.minY,r.maxX,r.maxY)},t.prototype.addBoundsArea=function(r,e){var i=r.minX>e.x?r.minX:e.x,n=r.minY>e.y?r.minY:e.y,a=r.maxX<e.x+e.width?r.maxX:e.x+e.width,s=r.maxY<e.y+e.height?r.maxY:e.y+e.height;if(i<=a&&n<=s){var o=this.minX,h=this.minY,u=this.maxX,l=this.maxY;this.minX=i<o?i:o,this.minY=n<h?n:h,this.maxX=a>u?a:u,this.maxY=s>l?s:l}},t.prototype.pad=function(r,e){r===void 0&&(r=0),e===void 0&&(e=r),this.isEmpty()||(this.minX-=r,this.maxX+=r,this.minY-=e,this.maxY+=e)},t.prototype.addFramePad=function(r,e,i,n,a,s){r-=a,e-=s,i+=a,n+=s,this.minX=this.minX<r?this.minX:r,this.maxX=this.maxX>i?this.maxX:i,this.minY=this.minY<e?this.minY:e,this.maxY=this.maxY>n?this.maxY:n},t}();/*! *****************************************************************************
-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 zi=function(t,r){return zi=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])},zi(t,r)};function Hn(t,r){zi(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var ze=function(t){Hn(r,t);function r(){var e=t.call(this)||this;return e.tempDisplayObjectParent=null,e.transform=new vn,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 ys,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 r.mixin=function(e){for(var i=Object.keys(e),n=0;n<i.length;++n){var a=i[n];Object.defineProperty(r.prototype,a,Object.getOwnPropertyDescriptor(e,a))}},Object.defineProperty(r.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!1,configurable:!0}),r.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},r.prototype.updateTransform=function(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha},r.prototype.getBounds=function(e,i){return e||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),i||(this._boundsRect||(this._boundsRect=new M),i=this._boundsRect),this._bounds.getRectangle(i)},r.prototype.getLocalBounds=function(e){e||(this._localBoundsRect||(this._localBoundsRect=new M),e=this._localBoundsRect),this._localBounds||(this._localBounds=new ys);var i=this.transform,n=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;var a=this._bounds,s=this._boundsID;this._bounds=this._localBounds;var o=this.getBounds(!1,e);return this.parent=n,this.transform=i,this._bounds=a,this._bounds.updateID+=this._boundsID-s,o},r.prototype.toGlobal=function(e,i,n){return n===void 0&&(n=!1),n||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(e,i)},r.prototype.toLocal=function(e,i,n,a){return i&&(e=i.toGlobal(e,n,a)),a||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(e,n)},r.prototype.setParent=function(e){if(!e||!e.addChild)throw new Error("setParent: Argument must be a Container");return e.addChild(this),e},r.prototype.setTransform=function(e,i,n,a,s,o,h,u,l){return e===void 0&&(e=0),i===void 0&&(i=0),n===void 0&&(n=1),a===void 0&&(a=1),s===void 0&&(s=0),o===void 0&&(o=0),h===void 0&&(h=0),u===void 0&&(u=0),l===void 0&&(l=0),this.position.x=e,this.position.y=i,this.scale.x=n||1,this.scale.y=a||1,this.rotation=s,this.skew.x=o,this.skew.y=h,this.pivot.x=u,this.pivot.y=l,this},r.prototype.destroy=function(e){this.parent&&this.parent.removeChild(this),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.interactive=!1,this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()},Object.defineProperty(r.prototype,"_tempDisplayObjectParent",{get:function(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new Yd),this.tempDisplayObjectParent},enumerable:!1,configurable:!0}),r.prototype.enableTempParent=function(){var e=this.parent;return this.parent=this._tempDisplayObjectParent,e},r.prototype.disableTempParent=function(e){this.parent=e},Object.defineProperty(r.prototype,"x",{get:function(){return this.position.x},set:function(e){this.transform.position.x=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"y",{get:function(){return this.position.y},set:function(e){this.transform.position.y=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"worldTransform",{get:function(){return this.transform.worldTransform},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"localTransform",{get:function(){return this.transform.localTransform},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"position",{get:function(){return this.transform.position},set:function(e){this.transform.position.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"scale",{get:function(){return this.transform.scale},set:function(e){this.transform.scale.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"pivot",{get:function(){return this.transform.pivot},set:function(e){this.transform.pivot.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"skew",{get:function(){return this.transform.skew},set:function(e){this.transform.skew.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rotation",{get:function(){return this.transform.rotation},set:function(e){this.transform.rotation=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"angle",{get:function(){return this.transform.rotation*qo},set:function(e){this.transform.rotation=e*Ko},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"zIndex",{get:function(){return this._zIndex},set:function(e){this._zIndex=e,this.parent&&(this.parent.sortDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"worldVisible",{get:function(){var e=this;do{if(!e.visible)return!1;e=e.parent}while(e);return!0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"mask",{get:function(){return this._mask},set:function(e){if(this._mask!==e){if(this._mask){var i=this._mask.maskObject||this._mask;i._maskRefCount--,i._maskRefCount===0&&(i.renderable=!0,i.isMask=!1)}if(this._mask=e,this._mask){var i=this._mask.maskObject||this._mask;i._maskRefCount===0&&(i.renderable=!1,i.isMask=!0),i._maskRefCount++}}},enumerable:!1,configurable:!0}),r}(we),Yd=function(t){Hn(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;return e.sortDirty=null,e}return r}(ze);ze.prototype.displayObjectUpdateTransform=ze.prototype.updateTransform;/*!
- * @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 gs;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})(gs||(gs={}));var Ts;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(Ts||(Ts={}));var xs;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(xs||(xs={}));var bs;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(bs||(bs={}));var Is;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(Is||(Is={}));var Es;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(Es||(Es={}));var Rs;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(Rs||(Rs={}));var Cs;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(Cs||(Cs={}));var ws;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(ws||(ws={}));var Ps;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(Ps||(Ps={}));var Ns;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(Ns||(Ns={}));var As;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(As||(As={}));var Us;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(Us||(Us={}));var Os;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"})(Os||(Os={}));var Ss;(function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"})(Ss||(Ss={}));var Ls;(function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"})(Ls||(Ls={}));var Wi;(function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"})(Wi||(Wi={}));var Fs;(function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"})(Fs||(Fs={}));var Gs;(function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(Gs||(Gs={}));function $d(t,r){return t.zIndex===r.zIndex?t._lastSortedIndex-r._lastSortedIndex:t.zIndex-r.zIndex}var Bs=function(t){Hn(r,t);function r(){var e=t.call(this)||this;return e.children=[],e.sortableChildren=gh.SORTABLE_CHILDREN,e.sortDirty=!1,e}return r.prototype.onChildrenChange=function(e){},r.prototype.addChild=function(){for(var e=arguments,i=[],n=0;n<arguments.length;n++)i[n]=e[n];if(i.length>1)for(var a=0;a<i.length;a++)this.addChild(i[a]);else{var s=i[0];s.parent&&s.parent.removeChild(s),s.parent=this,this.sortDirty=!0,s.transform._parentID=-1,this.children.push(s),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",s,this,this.children.length-1),s.emit("added",this)}return i[0]},r.prototype.addChildAt=function(e,i){if(i<0||i>this.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},r.prototype.swapChildren=function(e,i){if(e!==i){var n=this.getChildIndex(e),a=this.getChildIndex(i);this.children[n]=i,this.children[a]=e,this.onChildrenChange(n<a?n:a)}},r.prototype.getChildIndex=function(e){var i=this.children.indexOf(e);if(i===-1)throw new Error("The supplied DisplayObject must be a child of the caller");return i},r.prototype.setChildIndex=function(e,i){if(i<0||i>=this.children.length)throw new Error("The index "+i+" supplied is out of bounds "+this.children.length);var n=this.getChildIndex(e);Gt(this.children,n,1),this.children.splice(i,0,e),this.onChildrenChange(i)},r.prototype.getChildAt=function(e){if(e<0||e>=this.children.length)throw new Error("getChildAt: Index ("+e+") does not exist.");return this.children[e]},r.prototype.removeChild=function(){for(var e=arguments,i=[],n=0;n<arguments.length;n++)i[n]=e[n];if(i.length>1)for(var a=0;a<i.length;a++)this.removeChild(i[a]);else{var s=i[0],o=this.children.indexOf(s);if(o===-1)return null;s.parent=null,s.transform._parentID=-1,Gt(this.children,o,1),this._boundsID++,this.onChildrenChange(o),s.emit("removed",this),this.emit("childRemoved",s,this,o)}return i[0]},r.prototype.removeChildAt=function(e){var i=this.getChildAt(e);return i.parent=null,i.transform._parentID=-1,Gt(this.children,e,1),this._boundsID++,this.onChildrenChange(e),i.emit("removed",this),this.emit("childRemoved",i,this,e),i},r.prototype.removeChildren=function(e,i){e===void 0&&(e=0),i===void 0&&(i=this.children.length);var n=e,a=i,s=a-n,o;if(s>0&&s<=a){o=this.children.splice(n,s);for(var h=0;h<o.length;++h)o[h].parent=null,o[h].transform&&(o[h].transform._parentID=-1);this._boundsID++,this.onChildrenChange(e);for(var h=0;h<o.length;++h)o[h].emit("removed",this),this.emit("childRemoved",o[h],this,h);return o}else if(s===0&&this.children.length===0)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},r.prototype.sortChildren=function(){for(var e=!1,i=0,n=this.children.length;i<n;++i){var a=this.children[i];a._lastSortedIndex=i,!e&&a.zIndex!==0&&(e=!0)}e&&this.children.length>1&&this.children.sort($d),this.sortDirty=!1},r.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;e<i;++e){var n=this.children[e];n.visible&&n.updateTransform()}},r.prototype.calculateBounds=function(){this._bounds.clear(),this._calculateBounds();for(var e=0;e<this.children.length;e++){var i=this.children[e];if(!(!i.visible||!i.renderable))if(i.calculateBounds(),i._mask){var n=i._mask.maskObject||i._mask;n.calculateBounds(),this._bounds.addBoundsMask(i._bounds,n._bounds)}else i.filterArea?this._bounds.addBoundsArea(i._bounds,i.filterArea):this._bounds.addBounds(i._bounds)}this._bounds.updateID=this._boundsID},r.prototype.getLocalBounds=function(e,i){i===void 0&&(i=!1);var n=t.prototype.getLocalBounds.call(this,e);if(!i)for(var a=0,s=this.children.length;a<s;++a){var o=this.children[a];o.visible&&o.updateTransform()}return n},r.prototype._calculateBounds=function(){},r.prototype._renderWithCulling=function(e){var i=e.renderTexture.sourceFrame;if(i.width>0&&i.height>0){var n,a;if(this.cullArea?(n=this.cullArea,a=this.worldTransform):this._render!==r.prototype._render&&(n=this.getBounds(!0)),n&&i.intersects(n,a))this._render(e);else if(this.cullArea)return;for(var s=0,o=this.children.length;s<o;++s){var h=this.children[s],u=h.cullable;h.cullable=u||!this.cullArea,h.render(e),h.cullable=u}}},r.prototype.render=function(e){if(!(!this.visible||this.worldAlpha<=0||!this.renderable))if(this._mask||this.filters&&this.filters.length)this.renderAdvanced(e);else if(this.cullable)this._renderWithCulling(e);else{this._render(e);for(var i=0,n=this.children.length;i<n;++i)this.children[i].render(e)}},r.prototype.renderAdvanced=function(e){var i=this.filters,n=this._mask;if(i){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(var a=0;a<i.length;a++)i[a].enabled&&this._enabledFilters.push(i[a])}var s=i&&this._enabledFilters&&this._enabledFilters.length||n&&(!n.isMaskData||n.enabled&&(n.autoDetect||n.type!==Wi.NONE));if(s&&e.batch.flush(),i&&this._enabledFilters&&this._enabledFilters.length&&e.filter.push(this,this._enabledFilters),n&&e.mask.push(this,this._mask),this.cullable)this._renderWithCulling(e);else{this._render(e);for(var a=0,o=this.children.length;a<o;++a)this.children[a].render(e)}s&&e.batch.flush(),n&&e.mask.pop(this),i&&this._enabledFilters&&this._enabledFilters.length&&e.filter.pop()},r.prototype._render=function(e){},r.prototype.destroy=function(e){t.prototype.destroy.call(this),this.sortDirty=!1;var i=typeof e=="boolean"?e:e&&e.children,n=this.removeChildren(0,this.children.length);if(i)for(var a=0;a<n.length;++a)n[a].destroy(e)},Object.defineProperty(r.prototype,"width",{get:function(){return this.scale.x*this.getLocalBounds().width},set:function(e){var i=this.getLocalBounds().width;i!==0?this.scale.x=e/i:this.scale.x=1,this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this.scale.y*this.getLocalBounds().height},set:function(e){var i=this.getLocalBounds().height;i!==0?this.scale.y=e/i:this.scale.y=1,this._height=e},enumerable:!1,configurable:!0}),r}(ze);Bs.prototype.containerUpdateTransform=Bs.prototype.updateTransform;var hi=new M,Ms=4,t_=function(){function t(r){this.renderer=r}return t.prototype.image=function(r,e,i){var n=new Image;return n.src=this.base64(r,e,i),n},t.prototype.base64=function(r,e,i){return this.canvas(r).toDataURL(e,i)},t.prototype.canvas=function(r){var e=this.renderer,i,n,a=!1,s,o=!1;r&&(r instanceof he?s=r:(s=this.renderer.generateTexture(r),o=!0)),s?(i=s.baseTexture.resolution,n=s.frame,a=!1,e.renderTexture.bind(s)):(i=this.renderer.resolution,a=!0,n=hi,n.width=this.renderer.width,n.height=this.renderer.height,e.renderTexture.bind(null));var h=Math.floor(n.width*i+1e-4),u=Math.floor(n.height*i+1e-4),l=new da(h,u,1),c=new Uint8Array(Ms*h*u),f=e.gl;f.readPixels(n.x*i,n.y*i,h,u,f.RGBA,f.UNSIGNED_BYTE,c);var d=l.context.getImageData(0,0,h,u);if(t.arrayPostDivide(c,d.data),l.context.putImageData(d,0,0),a){var p=new da(l.width,l.height,1);p.context.scale(1,-1),p.context.drawImage(l.canvas,0,-u),l.destroy(),l=p}return o&&s.destroy(!0),l.canvas},t.prototype.pixels=function(r,e){var i=this.renderer,n,a,s,o=!1;r&&(r instanceof he?s=r:r instanceof ze&&(s=this.renderer.generateTexture(r),o=!0)),s?e?(n=e.resolution,a=s.frame,i.renderTexture.bind(s)):(n=s.baseTexture.resolution,a=s.frame,i.renderTexture.bind(s)):e?(n=e.resolution,a=hi,a.width=e.width,a.height=e.height,i.renderTexture.bind(null)):(n=i.resolution,a=hi,a.width=i.width,a.height=i.height,i.renderTexture.bind(null));var h=a.width*n,u=a.height*n,l=new Uint8Array(Ms*h*u),c=i.gl;return c.readPixels(a.x*n,a.y*n,h,u,c.RGBA,c.UNSIGNED_BYTE,l),o&&s.destroy(!0),t.arrayPostDivide(l,l),l},t.prototype.destroy=function(){this.renderer=null},t.arrayPostDivide=function(r,e){for(var i=0;i<r.length;i+=4){var n=e[i+3]=r[i+3];n!==0?(e[i]=Math.round(Math.min(r[i]*255/n,255)),e[i+1]=Math.round(Math.min(r[i+1]*255/n,255)),e[i+2]=Math.round(Math.min(r[i+2]*255/n,255))):(e[i]=r[i],e[i+1]=r[i+1],e[i+2]=r[i+2])}},t}();/*!
- * @pixi/loaders - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/loaders is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- */var mr=function(){function t(r,e,i){e===void 0&&(e=!1),this._fn=r,this._once=e,this._thisArg=i,this._next=this._prev=this._owner=null}return t.prototype.detach=function(){return this._owner===null?!1:(this._owner.detach(this),!0)},t}();function Xs(t,r){return t._head?(t._tail._next=r,r._prev=t._tail,t._tail=r):(t._head=r,t._tail=r),r._owner=t,r}var St=function(){function t(){this._head=this._tail=void 0}return t.prototype.handlers=function(r){r===void 0&&(r=!1);var e=this._head;if(r)return!!e;for(var i=[];e;)i.push(e),e=e._next;return i},t.prototype.has=function(r){if(!(r instanceof mr))throw new Error("MiniSignal#has(): First arg must be a SignalBinding object.");return r._owner===this},t.prototype.dispatch=function(){for(var r=arguments,e=[],i=0;i<arguments.length;i++)e[i]=r[i];var n=this._head;if(!n)return!1;for(;n;)n._once&&this.detach(n),n._fn.apply(n._thisArg,e),n=n._next;return!0},t.prototype.add=function(r,e){if(e===void 0&&(e=null),typeof r!="function")throw new Error("MiniSignal#add(): First arg must be a Function.");return Xs(this,new mr(r,!1,e))},t.prototype.once=function(r,e){if(e===void 0&&(e=null),typeof r!="function")throw new Error("MiniSignal#once(): First arg must be a Function.");return Xs(this,new mr(r,!0,e))},t.prototype.detach=function(r){if(!(r instanceof mr))throw new Error("MiniSignal#detach(): First arg must be a SignalBinding object.");return r._owner!==this?this:(r._prev&&(r._prev._next=r._next),r._next&&(r._next._prev=r._prev),r===this._head?(this._head=r._next,r._next===null&&(this._tail=null)):r===this._tail&&(this._tail=r._prev,this._tail._next=null),r._owner=null,this)},t.prototype.detachAll=function(){var r=this._head;if(!r)return this;for(this._head=this._tail=null;r;)r._owner=null,r=r._next;return this},t}();function Th(t,r){r=r||{};for(var e={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},i=e.parser[r.strictMode?"strict":"loose"].exec(t),n={},a=14;a--;)n[e.key[a]]=i[a]||"";return n[e.q.name]={},n[e.key[12]].replace(e.q.parser,function(s,o,h){o&&(n[e.q.name][o]=h)}),n}var ui,yr=null,qd=0,ks=200,Kd=204,Zd=1223,Jd=2;function Hs(){}function Ds(t,r,e){r&&r.indexOf(".")===0&&(r=r.substring(1)),r&&(t[r]=e)}function li(t){return t.toString().replace("object ","")}var J=function(){function t(r,e,i){if(this._dequeue=Hs,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=null,this._boundOnError=null,this._boundOnProgress=null,this._boundOnTimeout=null,this._boundXhrOnError=null,this._boundXhrOnTimeout=null,this._boundXhrOnAbort=null,this._boundXhrOnLoad=null,typeof r!="string"||typeof e!="string")throw new Error("Both name and url are required for constructing a resource.");i=i||{},this._flags=0,this._setFlag(t.STATUS_FLAGS.DATA_URL,e.indexOf("data:")===0),this.name=r,this.url=e,this.extension=this._getExtension(),this.data=null,this.crossOrigin=i.crossOrigin===!0?"anonymous":i.crossOrigin,this.timeout=i.timeout||0,this.loadType=i.loadType||this._determineLoadType(),this.xhrType=i.xhrType,this.metadata=i.metadata||{},this.error=null,this.xhr=null,this.children=[],this.type=t.TYPE.UNKNOWN,this.progressChunk=0,this._dequeue=Hs,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=this.complete.bind(this),this._boundOnError=this._onError.bind(this),this._boundOnProgress=this._onProgress.bind(this),this._boundOnTimeout=this._onTimeout.bind(this),this._boundXhrOnError=this._xhrOnError.bind(this),this._boundXhrOnTimeout=this._xhrOnTimeout.bind(this),this._boundXhrOnAbort=this._xhrOnAbort.bind(this),this._boundXhrOnLoad=this._xhrOnLoad.bind(this),this.onStart=new St,this.onProgress=new St,this.onComplete=new St,this.onAfterMiddleware=new St}return t.setExtensionLoadType=function(r,e){Ds(t._loadTypeMap,r,e)},t.setExtensionXhrType=function(r,e){Ds(t._xhrTypeMap,r,e)},Object.defineProperty(t.prototype,"isDataUrl",{get:function(){return this._hasFlag(t.STATUS_FLAGS.DATA_URL)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isComplete",{get:function(){return this._hasFlag(t.STATUS_FLAGS.COMPLETE)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this._hasFlag(t.STATUS_FLAGS.LOADING)},enumerable:!1,configurable:!0}),t.prototype.complete=function(){this._clearEvents(),this._finish()},t.prototype.abort=function(r){if(!this.error){if(this.error=new Error(r),this._clearEvents(),this.xhr)this.xhr.abort();else if(this.xdr)this.xdr.abort();else if(this.data)if(this.data.src)this.data.src=t.EMPTY_GIF;else for(;this.data.firstChild;)this.data.removeChild(this.data.firstChild);this._finish()}},t.prototype.load=function(r){var e=this;if(!this.isLoading){if(this.isComplete){r&&setTimeout(function(){return r(e)},1);return}else r&&this.onComplete.once(r);switch(this._setFlag(t.STATUS_FLAGS.LOADING,!0),this.onStart.dispatch(this),(this.crossOrigin===!1||typeof this.crossOrigin!="string")&&(this.crossOrigin=this._determineCrossOrigin(this.url)),this.loadType){case t.LOAD_TYPE.IMAGE:this.type=t.TYPE.IMAGE,this._loadElement("image");break;case t.LOAD_TYPE.AUDIO:this.type=t.TYPE.AUDIO,this._loadSourceElement("audio");break;case t.LOAD_TYPE.VIDEO:this.type=t.TYPE.VIDEO,this._loadSourceElement("video");break;case t.LOAD_TYPE.XHR:default:typeof ui=="undefined"&&(ui=!!(globalThis.XDomainRequest&&!("withCredentials"in new XMLHttpRequest))),ui&&this.crossOrigin?this._loadXdr():this._loadXhr();break}}},t.prototype._hasFlag=function(r){return(this._flags&r)!==0},t.prototype._setFlag=function(r,e){this._flags=e?this._flags|r:this._flags&~r},t.prototype._clearEvents=function(){clearTimeout(this._elementTimer),this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("timeout",this._boundXhrOnTimeout,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null))},t.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(t.STATUS_FLAGS.COMPLETE,!0),this._setFlag(t.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},t.prototype._loadElement=function(r){this.metadata.loadElement?this.data=this.metadata.loadElement:r==="image"&&typeof globalThis.Image!="undefined"?this.data=new Image:this.data=document.createElement(r),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},t.prototype._loadSourceElement=function(r){if(this.metadata.loadElement?this.data=this.metadata.loadElement:r==="audio"&&typeof globalThis.Audio!="undefined"?this.data=new Audio:this.data=document.createElement(r),this.data===null){this.abort("Unsupported element: "+r);return}if(this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var e=this.metadata.mimeType,i=0;i<this.url.length;++i)this.data.appendChild(this._createSource(r,this.url[i],Array.isArray(e)?e[i]:e));else{var e=this.metadata.mimeType;this.data.appendChild(this._createSource(r,this.url,Array.isArray(e)?e[0]:e))}this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.data.addEventListener("canplaythrough",this._boundComplete,!1),this.data.load(),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},t.prototype._loadXhr=function(){typeof this.xhrType!="string"&&(this.xhrType=this._determineXhrType());var r=this.xhr=new XMLHttpRequest;this.crossOrigin==="use-credentials"&&(r.withCredentials=!0),r.open("GET",this.url,!0),r.timeout=this.timeout,this.xhrType===t.XHR_RESPONSE_TYPE.JSON||this.xhrType===t.XHR_RESPONSE_TYPE.DOCUMENT?r.responseType=t.XHR_RESPONSE_TYPE.TEXT:r.responseType=this.xhrType,r.addEventListener("error",this._boundXhrOnError,!1),r.addEventListener("timeout",this._boundXhrOnTimeout,!1),r.addEventListener("abort",this._boundXhrOnAbort,!1),r.addEventListener("progress",this._boundOnProgress,!1),r.addEventListener("load",this._boundXhrOnLoad,!1),r.send()},t.prototype._loadXdr=function(){typeof this.xhrType!="string"&&(this.xhrType=this._determineXhrType());var r=this.xhr=new globalThis.XDomainRequest;r.timeout=this.timeout||5e3,r.onerror=this._boundXhrOnError,r.ontimeout=this._boundXhrOnTimeout,r.onprogress=this._boundOnProgress,r.onload=this._boundXhrOnLoad,r.open("GET",this.url,!0),setTimeout(function(){return r.send()},1)},t.prototype._createSource=function(r,e,i){i||(i=r+"/"+this._getExtension(e));var n=document.createElement("source");return n.src=e,n.type=i,n},t.prototype._onError=function(r){this.abort("Failed to load element using: "+r.target.nodeName)},t.prototype._onProgress=function(r){r&&r.lengthComputable&&this.onProgress.dispatch(this,r.loaded/r.total)},t.prototype._onTimeout=function(){this.abort("Load timed out.")},t.prototype._xhrOnError=function(){var r=this.xhr;this.abort(li(r)+" Request failed. Status: "+r.status+', text: "'+r.statusText+'"')},t.prototype._xhrOnTimeout=function(){var r=this.xhr;this.abort(li(r)+" Request timed out.")},t.prototype._xhrOnAbort=function(){var r=this.xhr;this.abort(li(r)+" Request was aborted by the user.")},t.prototype._xhrOnLoad=function(){var r=this.xhr,e="",i=typeof r.status=="undefined"?ks:r.status;(r.responseType===""||r.responseType==="text"||typeof r.responseType=="undefined")&&(e=r.responseText),i===qd&&(e.length>0||r.responseType===t.XHR_RESPONSE_TYPE.BUFFER)?i=ks:i===Zd&&(i=Kd);var n=i/100|0;if(n===Jd)if(this.xhrType===t.XHR_RESPONSE_TYPE.TEXT)this.data=e,this.type=t.TYPE.TEXT;else if(this.xhrType===t.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(e),this.type=t.TYPE.JSON}catch(o){this.abort("Error trying to parse loaded json: "+o);return}else if(this.xhrType===t.XHR_RESPONSE_TYPE.DOCUMENT)try{if(globalThis.DOMParser){var a=new DOMParser;this.data=a.parseFromString(e,"text/xml")}else{var s=document.createElement("div");s.innerHTML=e,this.data=s}this.type=t.TYPE.XML}catch(o){this.abort("Error trying to parse loaded xml: "+o);return}else this.data=r.response||e;else{this.abort("["+r.status+"] "+r.statusText+": "+r.responseURL);return}this.complete()},t.prototype._determineCrossOrigin=function(r,e){if(r.indexOf("data:")===0)return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";e=e||globalThis.location,yr||(yr=document.createElement("a")),yr.href=r;var i=Th(yr.href,{strictMode:!0}),n=!i.port&&e.port===""||i.port===e.port,a=i.protocol?i.protocol+":":"";return i.host!==e.hostname||!n||a!==e.protocol?"anonymous":""},t.prototype._determineXhrType=function(){return t._xhrTypeMap[this.extension]||t.XHR_RESPONSE_TYPE.TEXT},t.prototype._determineLoadType=function(){return t._loadTypeMap[this.extension]||t.LOAD_TYPE.XHR},t.prototype._getExtension=function(r){r===void 0&&(r=this.url);var e="";if(this.isDataUrl){var i=r.indexOf("/");e=r.substring(i+1,r.indexOf(";",i))}else{var n=r.indexOf("?"),a=r.indexOf("#"),s=Math.min(n>-1?n:r.length,a>-1?a:r.length);r=r.substring(0,s),e=r.substring(r.lastIndexOf(".")+1)}return e.toLowerCase()},t.prototype._getMimeFromXhrType=function(r){switch(r){case t.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case t.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case t.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case t.XHR_RESPONSE_TYPE.JSON:return"application/json";case t.XHR_RESPONSE_TYPE.DEFAULT:case t.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},t}();(function(t){(function(r){r[r.NONE=0]="NONE",r[r.DATA_URL=1]="DATA_URL",r[r.COMPLETE=2]="COMPLETE",r[r.LOADING=4]="LOADING"})(t.STATUS_FLAGS||(t.STATUS_FLAGS={})),function(r){r[r.UNKNOWN=0]="UNKNOWN",r[r.JSON=1]="JSON",r[r.XML=2]="XML",r[r.IMAGE=3]="IMAGE",r[r.AUDIO=4]="AUDIO",r[r.VIDEO=5]="VIDEO",r[r.TEXT=6]="TEXT"}(t.TYPE||(t.TYPE={})),function(r){r[r.XHR=1]="XHR",r[r.IMAGE=2]="IMAGE",r[r.AUDIO=3]="AUDIO",r[r.VIDEO=4]="VIDEO"}(t.LOAD_TYPE||(t.LOAD_TYPE={})),function(r){r.DEFAULT="text",r.BUFFER="arraybuffer",r.BLOB="blob",r.DOCUMENT="document",r.JSON="json",r.TEXT="text"}(t.XHR_RESPONSE_TYPE||(t.XHR_RESPONSE_TYPE={})),t._loadTypeMap={gif:t.LOAD_TYPE.IMAGE,png:t.LOAD_TYPE.IMAGE,bmp:t.LOAD_TYPE.IMAGE,jpg:t.LOAD_TYPE.IMAGE,jpeg:t.LOAD_TYPE.IMAGE,tif:t.LOAD_TYPE.IMAGE,tiff:t.LOAD_TYPE.IMAGE,webp:t.LOAD_TYPE.IMAGE,tga:t.LOAD_TYPE.IMAGE,svg:t.LOAD_TYPE.IMAGE,"svg+xml":t.LOAD_TYPE.IMAGE,mp3:t.LOAD_TYPE.AUDIO,ogg:t.LOAD_TYPE.AUDIO,wav:t.LOAD_TYPE.AUDIO,mp4:t.LOAD_TYPE.VIDEO,webm:t.LOAD_TYPE.VIDEO},t._xhrTypeMap={xhtml:t.XHR_RESPONSE_TYPE.DOCUMENT,html:t.XHR_RESPONSE_TYPE.DOCUMENT,htm:t.XHR_RESPONSE_TYPE.DOCUMENT,xml:t.XHR_RESPONSE_TYPE.DOCUMENT,tmx:t.XHR_RESPONSE_TYPE.DOCUMENT,svg:t.XHR_RESPONSE_TYPE.DOCUMENT,tsx:t.XHR_RESPONSE_TYPE.DOCUMENT,gif:t.XHR_RESPONSE_TYPE.BLOB,png:t.XHR_RESPONSE_TYPE.BLOB,bmp:t.XHR_RESPONSE_TYPE.BLOB,jpg:t.XHR_RESPONSE_TYPE.BLOB,jpeg:t.XHR_RESPONSE_TYPE.BLOB,tif:t.XHR_RESPONSE_TYPE.BLOB,tiff:t.XHR_RESPONSE_TYPE.BLOB,webp:t.XHR_RESPONSE_TYPE.BLOB,tga:t.XHR_RESPONSE_TYPE.BLOB,json:t.XHR_RESPONSE_TYPE.JSON,text:t.XHR_RESPONSE_TYPE.TEXT,txt:t.XHR_RESPONSE_TYPE.TEXT,ttf:t.XHR_RESPONSE_TYPE.BUFFER,otf:t.XHR_RESPONSE_TYPE.BUFFER},t.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="})(J||(J={}));function Qt(){}function Qd(t){return function(){for(var e=arguments,i=[],n=0;n<arguments.length;n++)i[n]=e[n];if(t===null)throw new Error("Callback was already called.");var a=t;t=null,a.apply(this,i)}}var tp=function(){function t(r,e){this.data=r,this.callback=e}return t}(),fi=function(){function t(r,e){var i=this;if(e===void 0&&(e=1),this.workers=0,this.saturated=Qt,this.unsaturated=Qt,this.empty=Qt,this.drain=Qt,this.error=Qt,this.started=!1,this.paused=!1,this._tasks=[],this._insert=function(n,a,s){if(s&&typeof s!="function")throw new Error("task callback must be a function");if(i.started=!0,n==null&&i.idle()){setTimeout(function(){return i.drain()},1);return}var o=new tp(n,typeof s=="function"?s:Qt);a?i._tasks.unshift(o):i._tasks.push(o),setTimeout(i.process,1)},this.process=function(){for(;!i.paused&&i.workers<i.concurrency&&i._tasks.length;){var n=i._tasks.shift();i._tasks.length===0&&i.empty(),i.workers+=1,i.workers===i.concurrency&&i.saturated(),i._worker(n.data,Qd(i._next(n)))}},this._worker=r,e===0)throw new Error("Concurrency must not be zero");this.concurrency=e,this.buffer=e/4}return t.prototype._next=function(r){var e=this;return function(){for(var i=arguments,n=[],a=0;a<arguments.length;a++)n[a]=i[a];e.workers-=1,r.callback.apply(r,n),n[0]!=null&&e.error(n[0],r.data),e.workers<=e.concurrency-e.buffer&&e.unsaturated(),e.idle()&&e.drain(),e.process()}},t.prototype.push=function(r,e){this._insert(r,!1,e)},t.prototype.kill=function(){this.workers=0,this.drain=Qt,this.started=!1,this._tasks=[]},t.prototype.unshift=function(r,e){this._insert(r,!0,e)},t.prototype.length=function(){return this._tasks.length},t.prototype.running=function(){return this.workers},t.prototype.idle=function(){return this._tasks.length+this.workers===0},t.prototype.pause=function(){this.paused!==!0&&(this.paused=!0)},t.prototype.resume=function(){if(this.paused!==!1){this.paused=!1;for(var r=1;r<=this.concurrency;r++)this.process()}},t.eachSeries=function(r,e,i,n){var a=0,s=r.length;function o(h){if(h||a===s){i&&i(h);return}n?setTimeout(function(){e(r[a++],o)},1):e(r[a++],o)}o()},t.queue=function(r,e){return new t(r,e)},t}(),ci=100,ep=/(#[\w-]+)?$/,We=function(){function t(r,e){var i=this;r===void 0&&(r=""),e===void 0&&(e=10),this.progress=0,this.loading=!1,this.defaultQueryString="",this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(h,u){return i._loadResource(h,u)},this.resources={},this.baseUrl=r,this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(h,u){return i._loadResource(h,u)},this._queue=fi.queue(this._boundLoadResource,e),this._queue.pause(),this.resources={},this.onProgress=new St,this.onError=new St,this.onLoad=new St,this.onStart=new St,this.onComplete=new St;for(var n=0;n<t._plugins.length;++n){var a=t._plugins[n],s=a.pre,o=a.use;s&&this.pre(s),o&&this.use(o)}this._protected=!1}return t.prototype._add=function(r,e,i,n){if(this.loading&&(!i||!i.parentResource))throw new Error("Cannot add resources while the loader is running.");if(this.resources[r])throw new Error('Resource named "'+r+'" already exists.');if(e=this._prepareUrl(e),this.resources[r]=new J(r,e,i),typeof n=="function"&&this.resources[r].onAfterMiddleware.once(n),this.loading){for(var a=i.parentResource,s=[],o=0;o<a.children.length;++o)a.children[o].isComplete||s.push(a.children[o]);var h=a.progressChunk*(s.length+1),u=h/(s.length+2);a.children.push(this.resources[r]),a.progressChunk=u;for(var o=0;o<s.length;++o)s[o].progressChunk=u;this.resources[r].progressChunk=u}return this._queue.push(this.resources[r]),this},t.prototype.pre=function(r){return this._beforeMiddleware.push(r),this},t.prototype.use=function(r){return this._afterMiddleware.push(r),this},t.prototype.reset=function(){this.progress=0,this.loading=!1,this._queue.kill(),this._queue.pause();for(var r in this.resources){var e=this.resources[r];e._onLoadBinding&&e._onLoadBinding.detach(),e.isLoading&&e.abort("loader reset")}return this.resources={},this},t.prototype.load=function(r){if(typeof r=="function"&&this.onComplete.once(r),this.loading)return this;if(this._queue.idle())this._onStart(),this._onComplete();else{for(var e=this._queue._tasks.length,i=ci/e,n=0;n<this._queue._tasks.length;++n)this._queue._tasks[n].data.progressChunk=i;this._onStart(),this._queue.resume()}return this},Object.defineProperty(t.prototype,"concurrency",{get:function(){return this._queue.concurrency},set:function(r){this._queue.concurrency=r},enumerable:!1,configurable:!0}),t.prototype._prepareUrl=function(r){var e=Th(r,{strictMode:!0}),i;if(e.protocol||!e.path||r.indexOf("//")===0?i=r:this.baseUrl.length&&this.baseUrl.lastIndexOf("/")!==this.baseUrl.length-1&&r.charAt(0)!=="/"?i=this.baseUrl+"/"+r:i=this.baseUrl+r,this.defaultQueryString){var n=ep.exec(i)[0];i=i.slice(0,i.length-n.length),i.indexOf("?")!==-1?i+="&"+this.defaultQueryString:i+="?"+this.defaultQueryString,i+=n}return i},t.prototype._loadResource=function(r,e){var i=this;r._dequeue=e,fi.eachSeries(this._beforeMiddleware,function(n,a){n.call(i,r,function(){a(r.isComplete?{}:null)})},function(){r.isComplete?i._onLoad(r):(r._onLoadBinding=r.onComplete.once(i._onLoad,i),r.load())},!0)},t.prototype._onStart=function(){this.progress=0,this.loading=!0,this.onStart.dispatch(this)},t.prototype._onComplete=function(){this.progress=ci,this.loading=!1,this.onComplete.dispatch(this,this.resources)},t.prototype._onLoad=function(r){var e=this;r._onLoadBinding=null,this._resourcesParsing.push(r),r._dequeue(),fi.eachSeries(this._afterMiddleware,function(i,n){i.call(e,r,n)},function(){r.onAfterMiddleware.dispatch(r),e.progress=Math.min(ci,e.progress+r.progressChunk),e.onProgress.dispatch(e,r),r.error?e.onError.dispatch(r.error,e,r):e.onLoad.dispatch(e,r),e._resourcesParsing.splice(e._resourcesParsing.indexOf(r),1),e._queue.idle()&&e._resourcesParsing.length===0&&e._onComplete()},!0)},t.prototype.destroy=function(){this._protected||this.reset()},Object.defineProperty(t,"shared",{get:function(){var r=t._shared;return r||(r=new t,r._protected=!0,t._shared=r),r},enumerable:!1,configurable:!0}),t.registerPlugin=function(r){return t._plugins.push(r),r.add&&r.add(),t},t._plugins=[],t}();We.prototype.add=function(r,e,i,n){if(Array.isArray(r)){for(var a=0;a<r.length;++a)this.add(r[a]);return this}if(typeof r=="object"&&(i=r,n=e||i.callback||i.onComplete,e=i.url,r=i.name||i.key||i.url),typeof e!="string"&&(n=i,i=e,e=r),typeof e!="string")throw new Error("No url passed to add resource to loader.");return typeof i=="function"&&(n=i,i=null),this._add(r,e,i,n)};var e_=function(){function t(){}return t.init=function(r){r=Object.assign({sharedLoader:!1},r),this.loader=r.sharedLoader?We.shared:new We},t.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},t}(),rp=function(){function t(){}return t.add=function(){J.setExtensionLoadType("svg",J.LOAD_TYPE.XHR),J.setExtensionXhrType("svg",J.XHR_RESPONSE_TYPE.TEXT)},t.use=function(r,e){if(r.data&&(r.type===J.TYPE.IMAGE||r.extension==="svg")){var i=r.data,n=r.url,a=r.name,s=r.metadata;F.fromLoader(i,n,a,s).then(function(o){r.texture=o,e()}).catch(e)}else e()},t}(),ip="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function np(t){for(var r="",e=0;e<t.length;){for(var i=[0,0,0],n=[0,0,0,0],a=0;a<i.length;++a)e<t.length?i[a]=t.charCodeAt(e++)&255:i[a]=0;n[0]=i[0]>>2,n[1]=(i[0]&3)<<4|i[1]>>4,n[2]=(i[1]&15)<<2|i[2]>>6,n[3]=i[2]&63;var s=e-(t.length-1);switch(s){case 2:n[3]=64,n[2]=64;break;case 1:n[3]=64;break}for(var a=0;a<n.length;++a)r+=ip.charAt(n[a])}return r}function ap(t,r){if(!t.data){r();return}if(t.xhr&&t.xhrType===J.XHR_RESPONSE_TYPE.BLOB){if(!self.Blob||typeof t.data=="string"){var e=t.xhr.getResponseHeader("content-type");if(e&&e.indexOf("image")===0){t.data=new Image,t.data.src="data:"+e+";base64,"+np(t.xhr.responseText),t.type=J.TYPE.IMAGE,t.data.onload=function(){t.data.onload=null,r()};return}}else if(t.data.type.indexOf("image")===0){var i=globalThis.URL||globalThis.webkitURL,n=i.createObjectURL(t.data);t.blob=t.data,t.data=new Image,t.data.src=n,t.type=J.TYPE.IMAGE,t.data.onload=function(){i.revokeObjectURL(n),t.data.onload=null,r()};return}}r()}We.registerPlugin({use:ap});We.registerPlugin(rp);/*!
- * @pixi/compressed-textures - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/compressed-textures is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- */var z,B;(function(t){t[t.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917]="COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918]="COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919]="COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT",t[t.COMPRESSED_SRGB_S3TC_DXT1_EXT=35916]="COMPRESSED_SRGB_S3TC_DXT1_EXT",t[t.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",t[t.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",t[t.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",t[t.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",t[t.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",t[t.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",t[t.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",t[t.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",t[t.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",t[t.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",t[t.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",t[t.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",t[t.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",t[t.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL"})(B||(B={}));var Sr=(z={},z[B.COMPRESSED_RGB_S3TC_DXT1_EXT]=.5,z[B.COMPRESSED_RGBA_S3TC_DXT1_EXT]=.5,z[B.COMPRESSED_RGBA_S3TC_DXT3_EXT]=1,z[B.COMPRESSED_RGBA_S3TC_DXT5_EXT]=1,z[B.COMPRESSED_SRGB_S3TC_DXT1_EXT]=.5,z[B.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT]=.5,z[B.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT]=1,z[B.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT]=1,z[B.COMPRESSED_R11_EAC]=.5,z[B.COMPRESSED_SIGNED_R11_EAC]=.5,z[B.COMPRESSED_RG11_EAC]=1,z[B.COMPRESSED_SIGNED_RG11_EAC]=1,z[B.COMPRESSED_RGB8_ETC2]=.5,z[B.COMPRESSED_RGBA8_ETC2_EAC]=1,z[B.COMPRESSED_SRGB8_ETC2]=.5,z[B.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC]=1,z[B.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2]=.5,z[B.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2]=.5,z[B.COMPRESSED_RGB_PVRTC_4BPPV1_IMG]=.5,z[B.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG]=.5,z[B.COMPRESSED_RGB_PVRTC_2BPPV1_IMG]=.25,z[B.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG]=.25,z[B.COMPRESSED_RGB_ETC1_WEBGL]=.5,z[B.COMPRESSED_RGB_ATC_WEBGL]=.5,z[B.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL]=1,z[B.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL]=1,z);/*! *****************************************************************************
-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 Yi=function(t,r){return Yi=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])},Yi(t,r)};function xh(t,r){Yi(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}function sp(t,r,e,i){return new(e||(e=Promise))(function(n,a){function s(u){try{h(i.next(u))}catch(l){a(l)}}function o(u){try{h(i.throw(u))}catch(l){a(l)}}function h(u){u.done?n(u.value):new e(function(l){l(u.value)}).then(s,o)}h((i=i.apply(t,r||[])).next())})}function op(t,r){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return h([u,l])}}function h(u){if(i)throw new TypeError("Generator is already executing.");for(;e;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,n=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){e.label=u[1];break}if(u[0]===6&&e.label<a[1]){e.label=a[1],a=u;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(u);break}a[2]&&e.ops.pop(),e.trys.pop();continue}u=r.call(t,e)}catch(l){u=[6,l],n=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var hp=function(t){xh(r,t);function r(e,i){i===void 0&&(i={width:1,height:1,autoLoad:!0});var n=this,a,s;return typeof e=="string"?(a=e,s=new Uint8Array):(a=null,s=e),n=t.call(this,s,i)||this,n.origin=a,n.buffer=s?new Fi(s):null,n.origin&&i.autoLoad!==!1&&n.load(),s&&s.length&&(n.loaded=!0,n.onBlobLoaded(n.buffer.rawBinaryData)),n}return r.prototype.onBlobLoaded=function(e){},r.prototype.load=function(){return sp(this,void 0,Promise,function(){var e,i,n;return op(this,function(a){switch(a.label){case 0:return[4,fetch(this.origin)];case 1:return e=a.sent(),[4,e.blob()];case 2:return i=a.sent(),[4,i.arrayBuffer()];case 3:return n=a.sent(),this.data=new Uint32Array(n),this.buffer=new Fi(n),this.loaded=!0,this.onBlobLoaded(n),this.update(),[2,this]}})})},r}(Je),$i=function(t){xh(r,t);function r(e,i){var n=t.call(this,e,i)||this;return n.format=i.format,n.levels=i.levels||1,n._width=i.width,n._height=i.height,n._extension=r._formatToExtension(n.format),(i.levelBuffers||n.buffer)&&(n._levelBuffers=i.levelBuffers||r._createLevelBuffers(e instanceof Uint8Array?e:n.buffer.uint8View,n.format,n.levels,4,4,n.width,n.height)),n}return r.prototype.upload=function(e,i,n){var a=e.gl,s=e.context.extensions[this._extension];if(!s)throw new Error(this._extension+" textures are not supported on the current machine");if(!this._levelBuffers)return!1;for(var o=0,h=this.levels;o<h;o++){var u=this._levelBuffers[o],l=u.levelID,c=u.levelWidth,f=u.levelHeight,d=u.levelBuffer;a.compressedTexImage2D(a.TEXTURE_2D,l,this.format,c,f,0,d)}return!0},r.prototype.onBlobLoaded=function(){this._levelBuffers=r._createLevelBuffers(this.buffer.uint8View,this.format,this.levels,4,4,this.width,this.height)},r._formatToExtension=function(e){if(e>=33776&&e<=33779)return"s3tc";if(e>=37488&&e<=37497)return"etc";if(e>=35840&&e<=35843)return"pvrtc";if(e>=36196)return"etc1";if(e>=35986&&e<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},r._createLevelBuffers=function(e,i,n,a,s,o,h){for(var u=new Array(n),l=e.byteOffset,c=o,f=h,d=c+a-1&~(a-1),p=f+s-1&~(s-1),v=d*p*Sr[i],_=0;_<n;_++)u[_]={levelID:_,levelWidth:n>1?c:d,levelHeight:n>1?f:p,levelBuffer:new Uint8Array(e.buffer,l,v)},l+=v,c=c>>1||1,f=f>>1||1,d=c+a-1&~(a-1),p=f+s-1&~(s-1),v=d*p*Sr[i];return u},r}(hp),r_=function(){function t(){}return t.use=function(r,e){var i=r.data,n=this;if(r.type===J.TYPE.JSON&&i&&i.cacheID&&i.textures){for(var a=i.textures,s=void 0,o=void 0,h=0,u=a.length;h<u;h++){var l=a[h],c=l.src,f=l.format;if(f||(o=c),t.textureFormats[f]){s=c;break}}if(s=s||o,!s){e(new Error("Cannot load compressed-textures in "+r.url+", make sure you provide a fallback"));return}if(s===r.url){e(new Error("URL of compressed texture cannot be the same as the manifest's URL"));return}var d={crossOrigin:r.crossOrigin,metadata:r.metadata.imageMetadata,parentResource:r},p=Te.resolve(r.url.replace(n.baseUrl,""),s),v=i.cacheID;n.add(v,p,d,function(_){if(_.error){e(_.error);return}var m=_.texture,T=m===void 0?null:m,x=_.textures,E=x===void 0?{}:x;Object.assign(r,{texture:T,textures:E}),e()})}else e()},Object.defineProperty(t,"textureExtensions",{get:function(){if(!t._textureExtensions){var r=document.createElement("canvas"),e=r.getContext("webgl");if(!e)return console.warn("WebGL not available for compressed textures. Silently failing."),{};var i={s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc")};t._textureExtensions=i}return t._textureExtensions},enumerable:!1,configurable:!0}),Object.defineProperty(t,"textureFormats",{get:function(){if(!t._textureFormats){var r=t.textureExtensions;t._textureFormats={};for(var e in r){var i=r[e];!i||Object.assign(t._textureFormats,Object.getPrototypeOf(i))}}return t._textureFormats},enumerable:!1,configurable:!0}),t}();function bh(t,r,e){var i={textures:{},texture:null};if(!r)return i;var n=r.map(function(a){return new F(new H(a,Object.assign({mipmap:Xt.OFF,alphaMode:_t.NO_PREMULTIPLIED_ALPHA},e)))});return n.forEach(function(a,s){var o=a.baseTexture,h=t+"-"+(s+1);H.addToCache(o,h),F.addToCache(a,h),s===0&&(H.addToCache(o,t),F.addToCache(a,t),i.texture=a),i.textures[h]=a}),i}var Fe,ct;J.setExtensionXhrType("dds",J.XHR_RESPONSE_TYPE.BUFFER);var di=4,gr=124,up=32,Vs=20,lp=542327876,Tr={SIZE:1,FLAGS:2,HEIGHT:3,WIDTH:4,MIPMAP_COUNT:7,PIXEL_FORMAT:19},fp={SIZE:0,FLAGS:1,FOURCC:2,RGB_BITCOUNT:3,R_BIT_MASK:4,G_BIT_MASK:5,B_BIT_MASK:6,A_BIT_MASK:7},xr={DXGI_FORMAT:0,RESOURCE_DIMENSION:1,MISC_FLAG:2,ARRAY_SIZE:3,MISC_FLAGS2:4},pt;(function(t){t[t.DXGI_FORMAT_UNKNOWN=0]="DXGI_FORMAT_UNKNOWN",t[t.DXGI_FORMAT_R32G32B32A32_TYPELESS=1]="DXGI_FORMAT_R32G32B32A32_TYPELESS",t[t.DXGI_FORMAT_R32G32B32A32_FLOAT=2]="DXGI_FORMAT_R32G32B32A32_FLOAT",t[t.DXGI_FORMAT_R32G32B32A32_UINT=3]="DXGI_FORMAT_R32G32B32A32_UINT",t[t.DXGI_FORMAT_R32G32B32A32_SINT=4]="DXGI_FORMAT_R32G32B32A32_SINT",t[t.DXGI_FORMAT_R32G32B32_TYPELESS=5]="DXGI_FORMAT_R32G32B32_TYPELESS",t[t.DXGI_FORMAT_R32G32B32_FLOAT=6]="DXGI_FORMAT_R32G32B32_FLOAT",t[t.DXGI_FORMAT_R32G32B32_UINT=7]="DXGI_FORMAT_R32G32B32_UINT",t[t.DXGI_FORMAT_R32G32B32_SINT=8]="DXGI_FORMAT_R32G32B32_SINT",t[t.DXGI_FORMAT_R16G16B16A16_TYPELESS=9]="DXGI_FORMAT_R16G16B16A16_TYPELESS",t[t.DXGI_FORMAT_R16G16B16A16_FLOAT=10]="DXGI_FORMAT_R16G16B16A16_FLOAT",t[t.DXGI_FORMAT_R16G16B16A16_UNORM=11]="DXGI_FORMAT_R16G16B16A16_UNORM",t[t.DXGI_FORMAT_R16G16B16A16_UINT=12]="DXGI_FORMAT_R16G16B16A16_UINT",t[t.DXGI_FORMAT_R16G16B16A16_SNORM=13]="DXGI_FORMAT_R16G16B16A16_SNORM",t[t.DXGI_FORMAT_R16G16B16A16_SINT=14]="DXGI_FORMAT_R16G16B16A16_SINT",t[t.DXGI_FORMAT_R32G32_TYPELESS=15]="DXGI_FORMAT_R32G32_TYPELESS",t[t.DXGI_FORMAT_R32G32_FLOAT=16]="DXGI_FORMAT_R32G32_FLOAT",t[t.DXGI_FORMAT_R32G32_UINT=17]="DXGI_FORMAT_R32G32_UINT",t[t.DXGI_FORMAT_R32G32_SINT=18]="DXGI_FORMAT_R32G32_SINT",t[t.DXGI_FORMAT_R32G8X24_TYPELESS=19]="DXGI_FORMAT_R32G8X24_TYPELESS",t[t.DXGI_FORMAT_D32_FLOAT_S8X24_UINT=20]="DXGI_FORMAT_D32_FLOAT_S8X24_UINT",t[t.DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS=21]="DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS",t[t.DXGI_FORMAT_X32_TYPELESS_G8X24_UINT=22]="DXGI_FORMAT_X32_TYPELESS_G8X24_UINT",t[t.DXGI_FORMAT_R10G10B10A2_TYPELESS=23]="DXGI_FORMAT_R10G10B10A2_TYPELESS",t[t.DXGI_FORMAT_R10G10B10A2_UNORM=24]="DXGI_FORMAT_R10G10B10A2_UNORM",t[t.DXGI_FORMAT_R10G10B10A2_UINT=25]="DXGI_FORMAT_R10G10B10A2_UINT",t[t.DXGI_FORMAT_R11G11B10_FLOAT=26]="DXGI_FORMAT_R11G11B10_FLOAT",t[t.DXGI_FORMAT_R8G8B8A8_TYPELESS=27]="DXGI_FORMAT_R8G8B8A8_TYPELESS",t[t.DXGI_FORMAT_R8G8B8A8_UNORM=28]="DXGI_FORMAT_R8G8B8A8_UNORM",t[t.DXGI_FORMAT_R8G8B8A8_UNORM_SRGB=29]="DXGI_FORMAT_R8G8B8A8_UNORM_SRGB",t[t.DXGI_FORMAT_R8G8B8A8_UINT=30]="DXGI_FORMAT_R8G8B8A8_UINT",t[t.DXGI_FORMAT_R8G8B8A8_SNORM=31]="DXGI_FORMAT_R8G8B8A8_SNORM",t[t.DXGI_FORMAT_R8G8B8A8_SINT=32]="DXGI_FORMAT_R8G8B8A8_SINT",t[t.DXGI_FORMAT_R16G16_TYPELESS=33]="DXGI_FORMAT_R16G16_TYPELESS",t[t.DXGI_FORMAT_R16G16_FLOAT=34]="DXGI_FORMAT_R16G16_FLOAT",t[t.DXGI_FORMAT_R16G16_UNORM=35]="DXGI_FORMAT_R16G16_UNORM",t[t.DXGI_FORMAT_R16G16_UINT=36]="DXGI_FORMAT_R16G16_UINT",t[t.DXGI_FORMAT_R16G16_SNORM=37]="DXGI_FORMAT_R16G16_SNORM",t[t.DXGI_FORMAT_R16G16_SINT=38]="DXGI_FORMAT_R16G16_SINT",t[t.DXGI_FORMAT_R32_TYPELESS=39]="DXGI_FORMAT_R32_TYPELESS",t[t.DXGI_FORMAT_D32_FLOAT=40]="DXGI_FORMAT_D32_FLOAT",t[t.DXGI_FORMAT_R32_FLOAT=41]="DXGI_FORMAT_R32_FLOAT",t[t.DXGI_FORMAT_R32_UINT=42]="DXGI_FORMAT_R32_UINT",t[t.DXGI_FORMAT_R32_SINT=43]="DXGI_FORMAT_R32_SINT",t[t.DXGI_FORMAT_R24G8_TYPELESS=44]="DXGI_FORMAT_R24G8_TYPELESS",t[t.DXGI_FORMAT_D24_UNORM_S8_UINT=45]="DXGI_FORMAT_D24_UNORM_S8_UINT",t[t.DXGI_FORMAT_R24_UNORM_X8_TYPELESS=46]="DXGI_FORMAT_R24_UNORM_X8_TYPELESS",t[t.DXGI_FORMAT_X24_TYPELESS_G8_UINT=47]="DXGI_FORMAT_X24_TYPELESS_G8_UINT",t[t.DXGI_FORMAT_R8G8_TYPELESS=48]="DXGI_FORMAT_R8G8_TYPELESS",t[t.DXGI_FORMAT_R8G8_UNORM=49]="DXGI_FORMAT_R8G8_UNORM",t[t.DXGI_FORMAT_R8G8_UINT=50]="DXGI_FORMAT_R8G8_UINT",t[t.DXGI_FORMAT_R8G8_SNORM=51]="DXGI_FORMAT_R8G8_SNORM",t[t.DXGI_FORMAT_R8G8_SINT=52]="DXGI_FORMAT_R8G8_SINT",t[t.DXGI_FORMAT_R16_TYPELESS=53]="DXGI_FORMAT_R16_TYPELESS",t[t.DXGI_FORMAT_R16_FLOAT=54]="DXGI_FORMAT_R16_FLOAT",t[t.DXGI_FORMAT_D16_UNORM=55]="DXGI_FORMAT_D16_UNORM",t[t.DXGI_FORMAT_R16_UNORM=56]="DXGI_FORMAT_R16_UNORM",t[t.DXGI_FORMAT_R16_UINT=57]="DXGI_FORMAT_R16_UINT",t[t.DXGI_FORMAT_R16_SNORM=58]="DXGI_FORMAT_R16_SNORM",t[t.DXGI_FORMAT_R16_SINT=59]="DXGI_FORMAT_R16_SINT",t[t.DXGI_FORMAT_R8_TYPELESS=60]="DXGI_FORMAT_R8_TYPELESS",t[t.DXGI_FORMAT_R8_UNORM=61]="DXGI_FORMAT_R8_UNORM",t[t.DXGI_FORMAT_R8_UINT=62]="DXGI_FORMAT_R8_UINT",t[t.DXGI_FORMAT_R8_SNORM=63]="DXGI_FORMAT_R8_SNORM",t[t.DXGI_FORMAT_R8_SINT=64]="DXGI_FORMAT_R8_SINT",t[t.DXGI_FORMAT_A8_UNORM=65]="DXGI_FORMAT_A8_UNORM",t[t.DXGI_FORMAT_R1_UNORM=66]="DXGI_FORMAT_R1_UNORM",t[t.DXGI_FORMAT_R9G9B9E5_SHAREDEXP=67]="DXGI_FORMAT_R9G9B9E5_SHAREDEXP",t[t.DXGI_FORMAT_R8G8_B8G8_UNORM=68]="DXGI_FORMAT_R8G8_B8G8_UNORM",t[t.DXGI_FORMAT_G8R8_G8B8_UNORM=69]="DXGI_FORMAT_G8R8_G8B8_UNORM",t[t.DXGI_FORMAT_BC1_TYPELESS=70]="DXGI_FORMAT_BC1_TYPELESS",t[t.DXGI_FORMAT_BC1_UNORM=71]="DXGI_FORMAT_BC1_UNORM",t[t.DXGI_FORMAT_BC1_UNORM_SRGB=72]="DXGI_FORMAT_BC1_UNORM_SRGB",t[t.DXGI_FORMAT_BC2_TYPELESS=73]="DXGI_FORMAT_BC2_TYPELESS",t[t.DXGI_FORMAT_BC2_UNORM=74]="DXGI_FORMAT_BC2_UNORM",t[t.DXGI_FORMAT_BC2_UNORM_SRGB=75]="DXGI_FORMAT_BC2_UNORM_SRGB",t[t.DXGI_FORMAT_BC3_TYPELESS=76]="DXGI_FORMAT_BC3_TYPELESS",t[t.DXGI_FORMAT_BC3_UNORM=77]="DXGI_FORMAT_BC3_UNORM",t[t.DXGI_FORMAT_BC3_UNORM_SRGB=78]="DXGI_FORMAT_BC3_UNORM_SRGB",t[t.DXGI_FORMAT_BC4_TYPELESS=79]="DXGI_FORMAT_BC4_TYPELESS",t[t.DXGI_FORMAT_BC4_UNORM=80]="DXGI_FORMAT_BC4_UNORM",t[t.DXGI_FORMAT_BC4_SNORM=81]="DXGI_FORMAT_BC4_SNORM",t[t.DXGI_FORMAT_BC5_TYPELESS=82]="DXGI_FORMAT_BC5_TYPELESS",t[t.DXGI_FORMAT_BC5_UNORM=83]="DXGI_FORMAT_BC5_UNORM",t[t.DXGI_FORMAT_BC5_SNORM=84]="DXGI_FORMAT_BC5_SNORM",t[t.DXGI_FORMAT_B5G6R5_UNORM=85]="DXGI_FORMAT_B5G6R5_UNORM",t[t.DXGI_FORMAT_B5G5R5A1_UNORM=86]="DXGI_FORMAT_B5G5R5A1_UNORM",t[t.DXGI_FORMAT_B8G8R8A8_UNORM=87]="DXGI_FORMAT_B8G8R8A8_UNORM",t[t.DXGI_FORMAT_B8G8R8X8_UNORM=88]="DXGI_FORMAT_B8G8R8X8_UNORM",t[t.DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM=89]="DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM",t[t.DXGI_FORMAT_B8G8R8A8_TYPELESS=90]="DXGI_FORMAT_B8G8R8A8_TYPELESS",t[t.DXGI_FORMAT_B8G8R8A8_UNORM_SRGB=91]="DXGI_FORMAT_B8G8R8A8_UNORM_SRGB",t[t.DXGI_FORMAT_B8G8R8X8_TYPELESS=92]="DXGI_FORMAT_B8G8R8X8_TYPELESS",t[t.DXGI_FORMAT_B8G8R8X8_UNORM_SRGB=93]="DXGI_FORMAT_B8G8R8X8_UNORM_SRGB",t[t.DXGI_FORMAT_BC6H_TYPELESS=94]="DXGI_FORMAT_BC6H_TYPELESS",t[t.DXGI_FORMAT_BC6H_UF16=95]="DXGI_FORMAT_BC6H_UF16",t[t.DXGI_FORMAT_BC6H_SF16=96]="DXGI_FORMAT_BC6H_SF16",t[t.DXGI_FORMAT_BC7_TYPELESS=97]="DXGI_FORMAT_BC7_TYPELESS",t[t.DXGI_FORMAT_BC7_UNORM=98]="DXGI_FORMAT_BC7_UNORM",t[t.DXGI_FORMAT_BC7_UNORM_SRGB=99]="DXGI_FORMAT_BC7_UNORM_SRGB",t[t.DXGI_FORMAT_AYUV=100]="DXGI_FORMAT_AYUV",t[t.DXGI_FORMAT_Y410=101]="DXGI_FORMAT_Y410",t[t.DXGI_FORMAT_Y416=102]="DXGI_FORMAT_Y416",t[t.DXGI_FORMAT_NV12=103]="DXGI_FORMAT_NV12",t[t.DXGI_FORMAT_P010=104]="DXGI_FORMAT_P010",t[t.DXGI_FORMAT_P016=105]="DXGI_FORMAT_P016",t[t.DXGI_FORMAT_420_OPAQUE=106]="DXGI_FORMAT_420_OPAQUE",t[t.DXGI_FORMAT_YUY2=107]="DXGI_FORMAT_YUY2",t[t.DXGI_FORMAT_Y210=108]="DXGI_FORMAT_Y210",t[t.DXGI_FORMAT_Y216=109]="DXGI_FORMAT_Y216",t[t.DXGI_FORMAT_NV11=110]="DXGI_FORMAT_NV11",t[t.DXGI_FORMAT_AI44=111]="DXGI_FORMAT_AI44",t[t.DXGI_FORMAT_IA44=112]="DXGI_FORMAT_IA44",t[t.DXGI_FORMAT_P8=113]="DXGI_FORMAT_P8",t[t.DXGI_FORMAT_A8P8=114]="DXGI_FORMAT_A8P8",t[t.DXGI_FORMAT_B4G4R4A4_UNORM=115]="DXGI_FORMAT_B4G4R4A4_UNORM",t[t.DXGI_FORMAT_P208=116]="DXGI_FORMAT_P208",t[t.DXGI_FORMAT_V208=117]="DXGI_FORMAT_V208",t[t.DXGI_FORMAT_V408=118]="DXGI_FORMAT_V408",t[t.DXGI_FORMAT_SAMPLER_FEEDBACK_MIN_MIP_OPAQUE=119]="DXGI_FORMAT_SAMPLER_FEEDBACK_MIN_MIP_OPAQUE",t[t.DXGI_FORMAT_SAMPLER_FEEDBACK_MIP_REGION_USED_OPAQUE=120]="DXGI_FORMAT_SAMPLER_FEEDBACK_MIP_REGION_USED_OPAQUE",t[t.DXGI_FORMAT_FORCE_UINT=121]="DXGI_FORMAT_FORCE_UINT"})(pt||(pt={}));var qi;(function(t){t[t.DDS_DIMENSION_TEXTURE1D=2]="DDS_DIMENSION_TEXTURE1D",t[t.DDS_DIMENSION_TEXTURE2D=3]="DDS_DIMENSION_TEXTURE2D",t[t.DDS_DIMENSION_TEXTURE3D=6]="DDS_DIMENSION_TEXTURE3D"})(qi||(qi={}));var cp=1,dp=2,pp=4,vp=64,_p=512,mp=131072,yp=827611204,gp=861165636,Tp=894720068,xp=808540228,bp=4,Ip=(Fe={},Fe[yp]=B.COMPRESSED_RGBA_S3TC_DXT1_EXT,Fe[gp]=B.COMPRESSED_RGBA_S3TC_DXT3_EXT,Fe[Tp]=B.COMPRESSED_RGBA_S3TC_DXT5_EXT,Fe),Ep=(ct={},ct[pt.DXGI_FORMAT_BC1_TYPELESS]=B.COMPRESSED_RGBA_S3TC_DXT1_EXT,ct[pt.DXGI_FORMAT_BC1_UNORM]=B.COMPRESSED_RGBA_S3TC_DXT1_EXT,ct[pt.DXGI_FORMAT_BC2_TYPELESS]=B.COMPRESSED_RGBA_S3TC_DXT3_EXT,ct[pt.DXGI_FORMAT_BC2_UNORM]=B.COMPRESSED_RGBA_S3TC_DXT3_EXT,ct[pt.DXGI_FORMAT_BC3_TYPELESS]=B.COMPRESSED_RGBA_S3TC_DXT5_EXT,ct[pt.DXGI_FORMAT_BC3_UNORM]=B.COMPRESSED_RGBA_S3TC_DXT5_EXT,ct[pt.DXGI_FORMAT_BC1_UNORM_SRGB]=B.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT,ct[pt.DXGI_FORMAT_BC2_UNORM_SRGB]=B.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT,ct[pt.DXGI_FORMAT_BC3_UNORM_SRGB]=B.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT,ct),i_=function(){function t(){}return t.use=function(r,e){if(r.extension==="dds"&&r.data)try{Object.assign(r,bh(r.name||r.url,t.parse(r.data),r.metadata))}catch(i){e(i);return}e()},t.parse=function(r){var e=new Uint32Array(r),i=e[0];if(i!==lp)throw new Error("Invalid DDS file magic word");var n=new Uint32Array(r,0,gr/Uint32Array.BYTES_PER_ELEMENT),a=n[Tr.HEIGHT],s=n[Tr.WIDTH],o=n[Tr.MIPMAP_COUNT],h=new Uint32Array(r,Tr.PIXEL_FORMAT*Uint32Array.BYTES_PER_ELEMENT,up/Uint32Array.BYTES_PER_ELEMENT),u=h[cp];if(u&pp){var l=h[fp.FOURCC];if(l!==xp){var c=Ip[l],f=di+gr,d=new Uint8Array(r,f),p=new $i(d,{format:c,width:s,height:a,levels:o});return[p]}var v=di+gr,_=new Uint32Array(e.buffer,v,Vs/Uint32Array.BYTES_PER_ELEMENT),m=_[xr.DXGI_FORMAT],T=_[xr.RESOURCE_DIMENSION],x=_[xr.MISC_FLAG],E=_[xr.ARRAY_SIZE],g=Ep[m];if(g===void 0)throw new Error("DDSLoader cannot parse texture data with DXGI format "+m);if(x===bp)throw new Error("DDSLoader does not support cubemap textures");if(T===qi.DDS_DIMENSION_TEXTURE3D)throw new Error("DDSLoader does not supported 3D texture data");var y=new Array,b=di+gr+Vs;if(E===1)y.push(new Uint8Array(r,b));else{for(var C=Sr[g],I=0,w=s,S=a,G=0;G<o;G++){var X=Math.max(1,w+3&-4),rt=Math.max(1,S+3&-4),A=X*rt*C;I+=A,w=w>>>1,S=S>>>1}for(var U=b,G=0;G<E;G++)y.push(new Uint8Array(r,U,I)),U+=I}return y.map(function(k){return new $i(k,{format:g,width:s,height:a,levels:o})})}throw u&vp?new Error("DDSLoader does not support uncompressed texture data."):u&_p?new Error("DDSLoader does not supported YUV uncompressed texture data."):u&mp?new Error("DDSLoader does not support single-channel (lumninance) texture data!"):u&dp?new Error("DDSLoader does not support single-channel (alpha) texture data!"):new Error("DDSLoader failed to load a texture file due to an unknown reason!")},t}(),Dt,Ut,Ge;J.setExtensionXhrType("ktx",J.XHR_RESPONSE_TYPE.BUFFER);var js=[171,75,84,88,32,49,49,187,13,10,26,10],Rp=67305985,dt={FILE_IDENTIFIER:0,ENDIANNESS:12,GL_TYPE:16,GL_TYPE_SIZE:20,GL_FORMAT:24,GL_INTERNAL_FORMAT:28,GL_BASE_INTERNAL_FORMAT:32,PIXEL_WIDTH:36,PIXEL_HEIGHT:40,PIXEL_DEPTH:44,NUMBER_OF_ARRAY_ELEMENTS:48,NUMBER_OF_FACES:52,NUMBER_OF_MIPMAP_LEVELS:56,BYTES_OF_KEY_VALUE_DATA:60},pi=64,zs=(Dt={},Dt[O.UNSIGNED_BYTE]=1,Dt[O.UNSIGNED_SHORT]=2,Dt[O.INT]=4,Dt[O.UNSIGNED_INT]=4,Dt[O.FLOAT]=4,Dt[O.HALF_FLOAT]=8,Dt),Cp=(Ut={},Ut[R.RGBA]=4,Ut[R.RGB]=3,Ut[R.RG]=2,Ut[R.RED]=1,Ut[R.LUMINANCE]=1,Ut[R.LUMINANCE_ALPHA]=2,Ut[R.ALPHA]=1,Ut),wp=(Ge={},Ge[O.UNSIGNED_SHORT_4_4_4_4]=2,Ge[O.UNSIGNED_SHORT_5_5_5_1]=2,Ge[O.UNSIGNED_SHORT_5_6_5]=2,Ge),n_=function(){function t(){}return t.use=function(r,e){if(r.extension==="ktx"&&r.data)try{var i=r.name||r.url,n=t.parse(i,r.data),a=n.compressed,s=n.uncompressed,o=n.kvData;if(a){var h=bh(i,a,r.metadata);if(o&&h.textures)for(var u in h.textures)h.textures[u].baseTexture.ktxKeyValueData=o;Object.assign(r,h)}else if(s){var l={};s.forEach(function(c,f){var d=new F(new H(c.resource,{mipmap:Xt.OFF,alphaMode:_t.NO_PREMULTIPLIED_ALPHA,type:c.type,format:c.format})),p=i+"-"+(f+1);o&&(d.baseTexture.ktxKeyValueData=o),H.addToCache(d.baseTexture,p),F.addToCache(d,p),f===0&&(l[i]=d,H.addToCache(d.baseTexture,i),F.addToCache(d,i)),l[p]=d}),Object.assign(r,{textures:l})}}catch(c){e(c);return}e()},t.parse=function(r,e){var i=new DataView(e);if(!t.validate(r,i))return null;var n=i.getUint32(dt.ENDIANNESS,!0)===Rp,a=i.getUint32(dt.GL_TYPE,n),s=i.getUint32(dt.GL_FORMAT,n),o=i.getUint32(dt.GL_INTERNAL_FORMAT,n),h=i.getUint32(dt.PIXEL_WIDTH,n),u=i.getUint32(dt.PIXEL_HEIGHT,n)||1,l=i.getUint32(dt.PIXEL_DEPTH,n)||1,c=i.getUint32(dt.NUMBER_OF_ARRAY_ELEMENTS,n)||1,f=i.getUint32(dt.NUMBER_OF_FACES,n),d=i.getUint32(dt.NUMBER_OF_MIPMAP_LEVELS,n),p=i.getUint32(dt.BYTES_OF_KEY_VALUE_DATA,n);if(u===0||l!==1)throw new Error("Only 2D textures are supported");if(f!==1)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(c!==1)throw new Error("WebGL does not support array textures");var v=4,_=4,m=h+3&-4,T=u+3&-4,x=new Array(c),E=h*u;a===0&&(E=m*T);var g;if(a!==0?zs[a]?g=zs[a]*Cp[s]:g=wp[a]:g=Sr[o],g===void 0)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");for(var y=t.loadKeyValueData?t.parseKvData(i,p,n):null,b=E*g,C=b,I=h,w=u,S=m,G=T,X=pi+p,rt=0;rt<d;rt++){for(var A=i.getUint32(X,n),U=X+4,k=0;k<c;k++){var nt=x[k];nt||(nt=x[k]=new Array(d)),nt[rt]={levelID:rt,levelWidth:d>1||a!==0?I:S,levelHeight:d>1||a!==0?w:G,levelBuffer:new Uint8Array(e,U,C)},U+=C}X+=A+4,X=X%4!==0?X+4-X%4:X,I=I>>1||1,w=w>>1||1,S=I+v-1&~(v-1),G=w+_-1&~(_-1),C=S*G*g}return a!==0?{uncompressed:x.map(function(j){var L=j[0].levelBuffer,yt=!1;return a===O.FLOAT?L=new Float32Array(j[0].levelBuffer.buffer,j[0].levelBuffer.byteOffset,j[0].levelBuffer.byteLength/4):a===O.UNSIGNED_INT?(yt=!0,L=new Uint32Array(j[0].levelBuffer.buffer,j[0].levelBuffer.byteOffset,j[0].levelBuffer.byteLength/4)):a===O.INT&&(yt=!0,L=new Int32Array(j[0].levelBuffer.buffer,j[0].levelBuffer.byteOffset,j[0].levelBuffer.byteLength/4)),{resource:new Je(L,{width:j[0].levelWidth,height:j[0].levelHeight}),type:a,format:yt?t.convertFormatToInteger(s):s}}),kvData:y}:{compressed:x.map(function(j){return new $i(null,{format:o,width:h,height:u,levels:d,levelBuffers:j})}),kvData:y}},t.validate=function(r,e){for(var i=0;i<js.length;i++)if(e.getUint8(i)!==js[i])return console.error(r+" is not a valid *.ktx file!"),!1;return!0},t.convertFormatToInteger=function(r){switch(r){case R.RGBA:return R.RGBA_INTEGER;case R.RGB:return R.RGB_INTEGER;case R.RG:return R.RG_INTEGER;case R.RED:return R.RED_INTEGER;default:return r}},t.parseKvData=function(r,e,i){for(var n=new Map,a=0;a<e;){var s=r.getUint32(pi+a,i),o=pi+a+4,h=3-(s+3)%4;if(s===0||s>e-a){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}for(var u=0;u<s&&r.getUint8(o+u)!==0;u++);if(u===-1){console.error("KTXLoader: Failed to find null byte terminating kvData key");break}var l=new TextDecoder().decode(new Uint8Array(r.buffer,o,u)),c=new DataView(r.buffer,o+u+1,s-u-1);n.set(l,c),a+=4+s+h}return n},t.loadKeyValueData=!1,t}();/*!
- * @pixi/particle-container - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/particle-container is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- *//*! *****************************************************************************
-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 Ki=function(t,r){return Ki=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])},Ki(t,r)};function Ih(t,r){Ki(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}(function(t){Ih(r,t);function r(e,i,n,a){e===void 0&&(e=1500),n===void 0&&(n=16384),a===void 0&&(a=!1);var s=t.call(this)||this,o=16384;return n>o&&(n=o),s._properties=[!1,!0,!1,!1,!1],s._maxSize=e,s._batchSize=n,s._buffers=null,s._bufferUpdateIDs=[],s._updateID=0,s.interactiveChildren=!1,s.blendMode=P.NORMAL,s.autoResize=a,s.roundPixels=!0,s.baseTexture=null,s.setProperties(i),s._tint=0,s.tintRgb=new Float32Array(4),s.tint=16777215,s}return r.prototype.setProperties=function(e){e&&(this._properties[0]="vertices"in e||"scale"in e?!!e.vertices||!!e.scale:this._properties[0],this._properties[1]="position"in e?!!e.position:this._properties[1],this._properties[2]="rotation"in e?!!e.rotation:this._properties[2],this._properties[3]="uvs"in e?!!e.uvs:this._properties[3],this._properties[4]="tint"in e||"alpha"in e?!!e.tint||!!e.alpha:this._properties[4])},r.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(r.prototype,"tint",{get:function(){return this._tint},set:function(e){this._tint=e,Re(e,this.tintRgb)},enumerable:!1,configurable:!0}),r.prototype.render=function(e){var i=this;!this.visible||this.worldAlpha<=0||!this.children.length||!this.renderable||(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",function(){return i.onChildrenChange(0)})),e.batch.setObjectRenderer(e.plugins.particle),e.plugins.particle.render(this))},r.prototype.onChildrenChange=function(e){for(var i=Math.floor(e/this._batchSize);this._bufferUpdateIDs.length<i;)this._bufferUpdateIDs.push(0);this._bufferUpdateIDs[i]=++this._updateID},r.prototype.dispose=function(){if(this._buffers){for(var e=0;e<this._buffers.length;++e)this._buffers[e].destroy();this._buffers=null}},r.prototype.destroy=function(e){t.prototype.destroy.call(this,e),this.dispose(),this._properties=null,this._buffers=null,this._bufferUpdateIDs=null},r})(wt);var Ws=function(){function t(r,e,i){this.geometry=new Qe,this.indexBuffer=null,this.size=i,this.dynamicProperties=[],this.staticProperties=[];for(var n=0;n<r.length;++n){var a=r[n];a={attributeName:a.attributeName,size:a.size,uploadFunction:a.uploadFunction,type:a.type||O.FLOAT,offset:a.offset},e[n]?this.dynamicProperties.push(a):this.staticProperties.push(a)}this.staticStride=0,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.dynamicStride=0,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this._updateID=0,this.initBuffers()}return t.prototype.initBuffers=function(){var r=this.geometry,e=0;this.indexBuffer=new it(Sf(this.size),!0,!0),r.addIndex(this.indexBuffer),this.dynamicStride=0;for(var i=0;i<this.dynamicProperties.length;++i){var n=this.dynamicProperties[i];n.offset=e,e+=n.size,this.dynamicStride+=n.size}var a=new ArrayBuffer(this.size*this.dynamicStride*4*4);this.dynamicData=new Float32Array(a),this.dynamicDataUint32=new Uint32Array(a),this.dynamicBuffer=new it(this.dynamicData,!1,!1);var s=0;this.staticStride=0;for(var i=0;i<this.staticProperties.length;++i){var n=this.staticProperties[i];n.offset=s,s+=n.size,this.staticStride+=n.size}var o=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(o),this.staticDataUint32=new Uint32Array(o),this.staticBuffer=new it(this.staticData,!0,!1);for(var i=0;i<this.dynamicProperties.length;++i){var n=this.dynamicProperties[i];r.addAttribute(n.attributeName,this.dynamicBuffer,0,n.type===O.UNSIGNED_BYTE,n.type,this.dynamicStride*4,n.offset*4)}for(var i=0;i<this.staticProperties.length;++i){var n=this.staticProperties[i];r.addAttribute(n.attributeName,this.staticBuffer,0,n.type===O.UNSIGNED_BYTE,n.type,this.staticStride*4,n.offset*4)}},t.prototype.uploadDynamic=function(r,e,i){for(var n=0;n<this.dynamicProperties.length;n++){var a=this.dynamicProperties[n];a.uploadFunction(r,e,i,a.type===O.UNSIGNED_BYTE?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,a.offset)}this.dynamicBuffer._updateID++},t.prototype.uploadStatic=function(r,e,i){for(var n=0;n<this.staticProperties.length;n++){var a=this.staticProperties[n];a.uploadFunction(r,e,i,a.type===O.UNSIGNED_BYTE?this.staticDataUint32:this.staticData,this.staticStride,a.offset)}this.staticBuffer._updateID++},t.prototype.destroy=function(){this.indexBuffer=null,this.dynamicProperties=null,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this.staticProperties=null,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.geometry.destroy()},t}(),Pp=`varying vec2 vTextureCoord;
-varying vec4 vColor;
-
-uniform sampler2D uSampler;
-
-void main(void){
-    vec4 color = texture2D(uSampler, vTextureCoord) * vColor;
-    gl_FragColor = color;
-}`,Np=`attribute vec2 aVertexPosition;
-attribute vec2 aTextureCoord;
-attribute vec4 aColor;
-
-attribute vec2 aPositionCoord;
-attribute float aRotation;
-
-uniform mat3 translationMatrix;
-uniform vec4 uColor;
-
-varying vec2 vTextureCoord;
-varying vec4 vColor;
-
-void main(void){
-    float x = (aVertexPosition.x) * cos(aRotation) - (aVertexPosition.y) * sin(aRotation);
-    float y = (aVertexPosition.x) * sin(aRotation) + (aVertexPosition.y) * cos(aRotation);
-
-    vec2 v = vec2(x, y);
-    v = v + aPositionCoord;
-
-    gl_Position = vec4((translationMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);
-
-    vTextureCoord = aTextureCoord;
-    vColor = aColor * uColor;
-}
-`,a_=function(t){Ih(r,t);function r(e){var i=t.call(this,e)||this;return i.shader=null,i.properties=null,i.tempMatrix=new Q,i.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:i.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:i.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:i.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:i.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:O.UNSIGNED_BYTE,uploadFunction:i.uploadTint,offset:0}],i.shader=Wt.from(Np,Pp,{}),i.state=ue.for2d(),i}return r.prototype.render=function(e){var i=e.children,n=e._maxSize,a=e._batchSize,s=this.renderer,o=i.length;if(o!==0){o>n&&!e.autoResize&&(o=n);var h=e._buffers;h||(h=e._buffers=this.generateBuffers(e));var u=i[0]._texture.baseTexture;this.state.blendMode=Wo(e.blendMode,u.alphaMode),s.state.set(this.state);var l=s.gl,c=e.worldTransform.copyTo(this.tempMatrix);c.prepend(s.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=c.toArray(!0),this.shader.uniforms.uColor=Of(e.tintRgb,e.worldAlpha,this.shader.uniforms.uColor,u.alphaMode),this.shader.uniforms.uSampler=u,this.renderer.shader.bind(this.shader);for(var f=!1,d=0,p=0;d<o;d+=a,p+=1){var v=o-d;v>a&&(v=a),p>=h.length&&h.push(this._generateOneMoreBuffer(e));var _=h[p];_.uploadDynamic(i,d,v);var m=e._bufferUpdateIDs[p]||0;f=f||_._updateID<m,f&&(_._updateID=e._updateID,_.uploadStatic(i,d,v)),s.geometry.bind(_.geometry),l.drawElements(l.TRIANGLES,v*6,l.UNSIGNED_SHORT,0)}}},r.prototype.generateBuffers=function(e){for(var i=[],n=e._maxSize,a=e._batchSize,s=e._properties,o=0;o<n;o+=a)i.push(new Ws(this.properties,s,a));return i},r.prototype._generateOneMoreBuffer=function(e){var i=e._batchSize,n=e._properties;return new Ws(this.properties,n,i)},r.prototype.uploadVertices=function(e,i,n,a,s,o){for(var h=0,u=0,l=0,c=0,f=0;f<n;++f){var d=e[i+f],p=d._texture,v=d.scale.x,_=d.scale.y,m=p.trim,T=p.orig;m?(u=m.x-d.anchor.x*T.width,h=u+m.width,c=m.y-d.anchor.y*T.height,l=c+m.height):(h=T.width*(1-d.anchor.x),u=T.width*-d.anchor.x,l=T.height*(1-d.anchor.y),c=T.height*-d.anchor.y),a[o]=u*v,a[o+1]=c*_,a[o+s]=h*v,a[o+s+1]=c*_,a[o+s*2]=h*v,a[o+s*2+1]=l*_,a[o+s*3]=u*v,a[o+s*3+1]=l*_,o+=s*4}},r.prototype.uploadPosition=function(e,i,n,a,s,o){for(var h=0;h<n;h++){var u=e[i+h].position;a[o]=u.x,a[o+1]=u.y,a[o+s]=u.x,a[o+s+1]=u.y,a[o+s*2]=u.x,a[o+s*2+1]=u.y,a[o+s*3]=u.x,a[o+s*3+1]=u.y,o+=s*4}},r.prototype.uploadRotation=function(e,i,n,a,s,o){for(var h=0;h<n;h++){var u=e[i+h].rotation;a[o]=u,a[o+s]=u,a[o+s*2]=u,a[o+s*3]=u,o+=s*4}},r.prototype.uploadUvs=function(e,i,n,a,s,o){for(var h=0;h<n;++h){var u=e[i+h]._texture._uvs;u?(a[o]=u.x0,a[o+1]=u.y0,a[o+s]=u.x1,a[o+s+1]=u.y1,a[o+s*2]=u.x2,a[o+s*2+1]=u.y2,a[o+s*3]=u.x3,a[o+s*3+1]=u.y3,o+=s*4):(a[o]=0,a[o+1]=0,a[o+s]=0,a[o+s+1]=0,a[o+s*2]=0,a[o+s*2+1]=0,a[o+s*3]=0,a[o+s*3+1]=0,o+=s*4)}},r.prototype.uploadTint=function(e,i,n,a,s,o){for(var h=0;h<n;++h){var u=e[i+h],l=u._texture.baseTexture.alphaMode>0,c=u.alpha,f=c<1&&l?pn(u._tintRGB,c):u._tintRGB+(c*255<<24);a[o]=f,a[o+s]=f,a[o+s*2]=f,a[o+s*3]=f,o+=s*4}},r.prototype.destroy=function(){t.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},r}(Br);/*!
- * @pixi/graphics - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/graphics is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- */var jt;(function(t){t.MITER="miter",t.BEVEL="bevel",t.ROUND="round"})(jt||(jt={}));var zt;(function(t){t.BUTT="butt",t.ROUND="round",t.SQUARE="square"})(zt||(zt={}));var Ye={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(t,r){if(r===void 0&&(r=20),!this.adaptive||!t||isNaN(t))return r;var e=Math.ceil(t/this.maxLength);return e<this.minSegments?e=this.minSegments:e>this.maxSegments&&(e=this.maxSegments),e}},Eh=function(){function t(){this.color=16777215,this.alpha=1,this.texture=F.WHITE,this.matrix=null,this.visible=!1,this.reset()}return t.prototype.clone=function(){var r=new t;return r.color=this.color,r.alpha=this.alpha,r.texture=this.texture,r.matrix=this.matrix,r.visible=this.visible,r},t.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=F.WHITE,this.matrix=null,this.visible=!1},t.prototype.destroy=function(){this.texture=null,this.matrix=null},t}();/*! *****************************************************************************
-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 Zi=function(t,r){return Zi=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])},Zi(t,r)};function Dn(t,r){Zi(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}function Ys(t,r){var e,i;r===void 0&&(r=!1);var n=t.length;if(!(n<6)){for(var a=0,s=0,o=t[n-2],h=t[n-1];s<n;s+=2){var u=t[s],l=t[s+1];a+=(u-o)*(l+h),o=u,h=l}if(!r&&a>0||r&&a<=0)for(var c=n/2,s=c+c%2;s<n;s+=2){var f=n-s-2,d=n-s-1,p=s,v=s+1;e=[t[p],t[f]],t[f]=e[0],t[p]=e[1],i=[t[v],t[d]],t[d]=i[0],t[v]=i[1]}}}var Rh={build:function(t){t.points=t.shape.points.slice()},triangulate:function(t,r){var e=t.points,i=t.holes,n=r.points,a=r.indices;if(e.length>=6){Ys(e,!1);for(var s=[],o=0;o<i.length;o++){var h=i[o];Ys(h.points,!0),s.push(e.length/2),e=e.concat(h.points)}var u=Do(e,s,2);if(!u)return;for(var l=n.length/2,o=0;o<u.length;o+=3)a.push(u[o]+l),a.push(u[o+1]+l),a.push(u[o+2]+l);for(var o=0;o<e.length;o++)n.push(e[o])}}},Lr={build:function(t){var r=t.points,e,i,n,a,s,o;if(t.type===Z.CIRC){var h=t.shape;e=h.x,i=h.y,s=o=h.radius,n=a=0}else if(t.type===Z.ELIP){var u=t.shape;e=u.x,i=u.y,s=u.width,o=u.height,n=a=0}else{var l=t.shape,c=l.width/2,f=l.height/2;e=l.x+c,i=l.y+f,s=o=Math.max(0,Math.min(l.radius,Math.min(c,f))),n=c-s,a=f-o}if(!(s>=0&&o>=0&&n>=0&&a>=0)){r.length=0;return}var d=Math.ceil(2.3*Math.sqrt(s+o)),p=d*8+(n?4:0)+(a?4:0);if(r.length=p,p!==0){if(d===0){r.length=8,r[0]=r[6]=e+n,r[1]=r[3]=i+a,r[2]=r[4]=e-n,r[5]=r[7]=i-a;return}var v=0,_=d*4+(n?2:0)+2,m=_,T=p;{var x=n+s,E=a,g=e+x,y=e-x,b=i+E;if(r[v++]=g,r[v++]=b,r[--_]=b,r[--_]=y,a){var C=i-E;r[m++]=y,r[m++]=C,r[--T]=C,r[--T]=g}}for(var I=1;I<d;I++){var w=Math.PI/2*(I/d),x=n+Math.cos(w)*s,E=a+Math.sin(w)*o,g=e+x,y=e-x,b=i+E,C=i-E;r[v++]=g,r[v++]=b,r[--_]=b,r[--_]=y,r[m++]=y,r[m++]=C,r[--T]=C,r[--T]=g}{var x=n,E=a+o,g=e+x,y=e-x,b=i+E,C=i-E;r[v++]=g,r[v++]=b,r[--T]=C,r[--T]=g,n&&(r[v++]=y,r[v++]=b,r[--T]=C,r[--T]=y)}}},triangulate:function(t,r){var e=t.points,i=r.points,n=r.indices,a=i.length/2,s=a,o,h;if(t.type!==Z.RREC){var u=t.shape;o=u.x,h=u.y}else{var l=t.shape;o=l.x+l.width/2,h=l.y+l.height/2}var c=t.matrix;i.push(t.matrix?c.a*o+c.c*h+c.tx:o,t.matrix?c.b*o+c.d*h+c.ty:h),a++,i.push(e[0],e[1]);for(var f=2;f<e.length;f+=2)i.push(e[f],e[f+1]),n.push(a++,s,a);n.push(s+1,s,a)}},Ap={build:function(t){var r=t.shape,e=r.x,i=r.y,n=r.width,a=r.height,s=t.points;s.length=0,s.push(e,i,e+n,i,e+n,i+a,e,i+a)},triangulate:function(t,r){var e=t.points,i=r.points,n=i.length/2;i.push(e[0],e[1],e[2],e[3],e[6],e[7],e[4],e[5]),r.indices.push(n,n+1,n+2,n+1,n+2,n+3)}};function _e(t,r,e){var i=r-t;return t+i*e}function br(t,r,e,i,n,a,s){s===void 0&&(s=[]);for(var o=20,h=s,u=0,l=0,c=0,f=0,d=0,p=0,v=0,_=0;v<=o;++v)_=v/o,u=_e(t,e,_),l=_e(r,i,_),c=_e(e,n,_),f=_e(i,a,_),d=_e(u,c,_),p=_e(l,f,_),!(v===0&&h[h.length-2]===d&&h[h.length-1]===p)&&h.push(d,p);return h}var Up={build:function(t){if(Fr.nextRoundedRectBehavior){Lr.build(t);return}var r=t.shape,e=t.points,i=r.x,n=r.y,a=r.width,s=r.height,o=Math.max(0,Math.min(r.radius,Math.min(a,s)/2));e.length=0,o?(br(i,n+o,i,n,i+o,n,e),br(i+a-o,n,i+a,n,i+a,n+o,e),br(i+a,n+s-o,i+a,n+s,i+a-o,n+s,e),br(i+o,n+s,i,n+s,i,n+s-o,e)):e.push(i,n,i+a,n,i+a,n+s,i,n+s)},triangulate:function(t,r){if(Fr.nextRoundedRectBehavior){Lr.triangulate(t,r);return}for(var e=t.points,i=r.points,n=r.indices,a=i.length/2,s=Do(e,null,2),o=0,h=s.length;o<h;o+=3)n.push(s[o]+a),n.push(s[o+1]+a),n.push(s[o+2]+a);for(var o=0,h=e.length;o<h;o++)i.push(e[o],e[++o])}};function $s(t,r,e,i,n,a,s,o){var h=t-e*n,u=r-i*n,l=t+e*a,c=r+i*a,f,d;s?(f=i,d=-e):(f=-i,d=e);var p=h+f,v=u+d,_=l+f,m=c+d;return o.push(p,v),o.push(_,m),2}function me(t,r,e,i,n,a,s,o){var h=e-t,u=i-r,l=Math.atan2(h,u),c=Math.atan2(n-t,a-r);o&&l<c?l+=Math.PI*2:!o&&l>c&&(c+=Math.PI*2);var f=l,d=c-l,p=Math.abs(d),v=Math.sqrt(h*h+u*u),_=(15*p*Math.sqrt(v)/Math.PI>>0)+1,m=d/_;if(f+=m,o){s.push(t,r),s.push(e,i);for(var T=1,x=f;T<_;T++,x+=m)s.push(t,r),s.push(t+Math.sin(x)*v,r+Math.cos(x)*v);s.push(t,r),s.push(n,a)}else{s.push(e,i),s.push(t,r);for(var T=1,x=f;T<_;T++,x+=m)s.push(t+Math.sin(x)*v,r+Math.cos(x)*v),s.push(t,r);s.push(n,a),s.push(t,r)}return _*2}function Op(t,r){var e=t.shape,i=t.points||e.points.slice(),n=r.closePointEps;if(i.length!==0){var a=t.lineStyle,s=new D(i[0],i[1]),o=new D(i[i.length-2],i[i.length-1]),h=e.type!==Z.POLY||e.closeStroke,u=Math.abs(s.x-o.x)<n&&Math.abs(s.y-o.y)<n;if(h){i=i.slice(),u&&(i.pop(),i.pop(),o.set(i[i.length-2],i[i.length-1]));var l=(s.x+o.x)*.5,c=(o.y+s.y)*.5;i.unshift(l,c),i.push(l,c)}var f=r.points,d=i.length/2,p=i.length,v=f.length/2,_=a.width/2,m=_*_,T=a.miterLimit*a.miterLimit,x=i[0],E=i[1],g=i[2],y=i[3],b=0,C=0,I=-(E-y),w=x-g,S=0,G=0,X=Math.sqrt(I*I+w*w);I/=X,w/=X,I*=_,w*=_;var rt=a.alignment,A=(1-rt)*2,U=rt*2;h||(a.cap===zt.ROUND?p+=me(x-I*(A-U)*.5,E-w*(A-U)*.5,x-I*A,E-w*A,x+I*U,E+w*U,f,!0)+2:a.cap===zt.SQUARE&&(p+=$s(x,E,I,w,A,U,!0,f))),f.push(x-I*A,E-w*A),f.push(x+I*U,E+w*U);for(var k=1;k<d-1;++k){x=i[(k-1)*2],E=i[(k-1)*2+1],g=i[k*2],y=i[k*2+1],b=i[(k+1)*2],C=i[(k+1)*2+1],I=-(E-y),w=x-g,X=Math.sqrt(I*I+w*w),I/=X,w/=X,I*=_,w*=_,S=-(y-C),G=g-b,X=Math.sqrt(S*S+G*G),S/=X,G/=X,S*=_,G*=_;var nt=g-x,j=E-y,L=g-b,yt=C-y,Ht=j*L-yt*nt,Nt=Ht<0;if(Math.abs(Ht)<.1){f.push(g-I*A,y-w*A),f.push(g+I*U,y+w*U);continue}var Ae=(-I+x)*(-w+y)-(-I+g)*(-w+E),le=(-S+b)*(-G+y)-(-S+g)*(-G+C),gt=(nt*le-L*Ae)/Ht,fe=(yt*Ae-j*le)/Ht,ce=(gt-g)*(gt-g)+(fe-y)*(fe-y),lt=g+(gt-g)*A,ft=y+(fe-y)*A,ht=g-(gt-g)*U,ut=y-(fe-y)*U,q=Math.min(nt*nt+j*j,L*L+yt*yt),qt=Nt?A:U,Tt=q+qt*qt*m,V=ce<=Tt;V?a.join===jt.BEVEL||ce/m>T?(Nt?(f.push(lt,ft),f.push(g+I*U,y+w*U),f.push(lt,ft),f.push(g+S*U,y+G*U)):(f.push(g-I*A,y-w*A),f.push(ht,ut),f.push(g-S*A,y-G*A),f.push(ht,ut)),p+=2):a.join===jt.ROUND?Nt?(f.push(lt,ft),f.push(g+I*U,y+w*U),p+=me(g,y,g+I*U,y+w*U,g+S*U,y+G*U,f,!0)+4,f.push(lt,ft),f.push(g+S*U,y+G*U)):(f.push(g-I*A,y-w*A),f.push(ht,ut),p+=me(g,y,g-I*A,y-w*A,g-S*A,y-G*A,f,!1)+4,f.push(g-S*A,y-G*A),f.push(ht,ut)):(f.push(lt,ft),f.push(ht,ut)):(f.push(g-I*A,y-w*A),f.push(g+I*U,y+w*U),a.join===jt.ROUND?Nt?p+=me(g,y,g+I*U,y+w*U,g+S*U,y+G*U,f,!0)+2:p+=me(g,y,g-I*A,y-w*A,g-S*A,y-G*A,f,!1)+2:a.join===jt.MITER&&ce/m<=T&&(Nt?(f.push(ht,ut),f.push(ht,ut)):(f.push(lt,ft),f.push(lt,ft)),p+=2),f.push(g-S*A,y-G*A),f.push(g+S*U,y+G*U),p+=2)}x=i[(d-2)*2],E=i[(d-2)*2+1],g=i[(d-1)*2],y=i[(d-1)*2+1],I=-(E-y),w=x-g,X=Math.sqrt(I*I+w*w),I/=X,w/=X,I*=_,w*=_,f.push(g-I*A,y-w*A),f.push(g+I*U,y+w*U),h||(a.cap===zt.ROUND?p+=me(g-I*(A-U)*.5,y-w*(A-U)*.5,g-I*A,y-w*A,g+I*U,y+w*U,f,!1)+2:a.cap===zt.SQUARE&&(p+=$s(g,y,I,w,A,U,!1,f)));for(var xt=r.indices,de=Ye.epsilon*Ye.epsilon,k=v;k<p+v-2;++k)x=f[k*2],E=f[k*2+1],g=f[(k+1)*2],y=f[(k+1)*2+1],b=f[(k+2)*2],C=f[(k+2)*2+1],!(Math.abs(x*(y-C)+g*(C-E)+b*(E-y))<de)&&xt.push(k,k+1,k+2)}}function Sp(t,r){var e=0,i=t.shape,n=t.points||i.points,a=i.type!==Z.POLY||i.closeStroke;if(n.length!==0){var s=r.points,o=r.indices,h=n.length/2,u=s.length/2,l=u;for(s.push(n[0],n[1]),e=1;e<h;e++)s.push(n[e*2],n[e*2+1]),o.push(l,l+1),l++;a&&o.push(l,u)}}function qs(t,r){t.lineStyle.native?Sp(t,r):Op(t,r)}var Ks=function(){function t(){}return t.curveTo=function(r,e,i,n,a,s){var o=s[s.length-2],h=s[s.length-1],u=h-e,l=o-r,c=n-e,f=i-r,d=Math.abs(u*f-l*c);if(d<1e-8||a===0)return(s[s.length-2]!==r||s[s.length-1]!==e)&&s.push(r,e),null;var p=u*u+l*l,v=c*c+f*f,_=u*c+l*f,m=a*Math.sqrt(p)/d,T=a*Math.sqrt(v)/d,x=m*_/p,E=T*_/v,g=m*f+T*l,y=m*c+T*u,b=l*(T+x),C=u*(T+x),I=f*(m+E),w=c*(m+E),S=Math.atan2(C-y,b-g),G=Math.atan2(w-y,I-g);return{cx:g+r,cy:y+e,radius:a,startAngle:S,endAngle:G,anticlockwise:l*c>f*u}},t.arc=function(r,e,i,n,a,s,o,h,u){for(var l=o-s,c=Ye._segmentsCount(Math.abs(l)*a,Math.ceil(Math.abs(l)/Or)*40),f=l/(c*2),d=f*2,p=Math.cos(f),v=Math.sin(f),_=c-1,m=_%1/_,T=0;T<=_;++T){var x=T+m*T,E=f+s+d*x,g=Math.cos(E),y=-Math.sin(E);u.push((p*g+v*y)*a+i,(p*-y+v*g)*a+n)}},t}(),Lp=function(){function t(){}return t.curveLength=function(r,e,i,n,a,s,o,h){for(var u=10,l=0,c=0,f=0,d=0,p=0,v=0,_=0,m=0,T=0,x=0,E=0,g=r,y=e,b=1;b<=u;++b)c=b/u,f=c*c,d=f*c,p=1-c,v=p*p,_=v*p,m=_*r+3*v*c*i+3*p*f*a+d*o,T=_*e+3*v*c*n+3*p*f*s+d*h,x=g-m,E=y-T,g=m,y=T,l+=Math.sqrt(x*x+E*E);return l},t.curveTo=function(r,e,i,n,a,s,o){var h=o[o.length-2],u=o[o.length-1];o.length-=2;var l=Ye._segmentsCount(t.curveLength(h,u,r,e,i,n,a,s)),c=0,f=0,d=0,p=0,v=0;o.push(h,u);for(var _=1,m=0;_<=l;++_)m=_/l,c=1-m,f=c*c,d=f*c,p=m*m,v=p*m,o.push(d*h+3*f*m*r+3*c*p*i+v*a,d*u+3*f*m*e+3*c*p*n+v*s)},t}(),Fp=function(){function t(){}return t.curveLength=function(r,e,i,n,a,s){var o=r-2*i+a,h=e-2*n+s,u=2*i-2*r,l=2*n-2*e,c=4*(o*o+h*h),f=4*(o*u+h*l),d=u*u+l*l,p=2*Math.sqrt(c+f+d),v=Math.sqrt(c),_=2*c*v,m=2*Math.sqrt(d),T=f/v;return(_*p+v*f*(p-m)+(4*d*c-f*f)*Math.log((2*v+T+p)/(T+m)))/(4*_)},t.curveTo=function(r,e,i,n,a){for(var s=a[a.length-2],o=a[a.length-1],h=Ye._segmentsCount(t.curveLength(s,o,r,e,i,n)),u=0,l=0,c=1;c<=h;++c){var f=c/h;u=s+(r-s)*f,l=o+(e-o)*f,a.push(u+(r+(i-r)*f-u)*f,l+(e+(n-e)*f-l)*f)}},t}(),Gp=function(){function t(){this.reset()}return t.prototype.begin=function(r,e,i){this.reset(),this.style=r,this.start=e,this.attribStart=i},t.prototype.end=function(r,e){this.attribSize=e-this.attribStart,this.size=r-this.start},t.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},t}(),te,vi=(te={},te[Z.POLY]=Rh,te[Z.CIRC]=Lr,te[Z.ELIP]=Lr,te[Z.RECT]=Ap,te[Z.RREC]=Up,te),Zs=[],Ir=[],Js=function(){function t(r,e,i,n){e===void 0&&(e=null),i===void 0&&(i=null),n===void 0&&(n=null),this.points=[],this.holes=[],this.shape=r,this.lineStyle=i,this.fillStyle=e,this.matrix=n,this.type=r.type}return t.prototype.clone=function(){return new t(this.shape,this.fillStyle,this.lineStyle,this.matrix)},t.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},t}(),ye=new D,Bp=new Ve,Mp=function(t){Dn(r,t);function r(){var e=t.call(this)||this;return e.closePointEps=1e-4,e.boundsPadding=0,e.uvsFloat32=null,e.indicesUint16=null,e.batchable=!1,e.points=[],e.colors=[],e.uvs=[],e.indices=[],e.textureIds=[],e.graphicsData=[],e.drawCalls=[],e.batchDirty=-1,e.batches=[],e.dirty=0,e.cacheDirty=-1,e.clearDirty=0,e.shapeIndex=0,e._bounds=new Ve,e.boundsDirty=-1,e}return Object.defineProperty(r.prototype,"bounds",{get:function(){return this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),r.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var e=0;e<this.drawCalls.length;e++)this.drawCalls[e].texArray.clear(),Ir.push(this.drawCalls[e]);this.drawCalls.length=0;for(var e=0;e<this.batches.length;e++){var i=this.batches[e];i.reset(),Zs.push(i)}this.batches.length=0},r.prototype.clear=function(){return this.graphicsData.length>0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},r.prototype.drawShape=function(e,i,n,a){i===void 0&&(i=null),n===void 0&&(n=null),a===void 0&&(a=null);var s=new Js(e,i,n,a);return this.graphicsData.push(s),this.dirty++,this},r.prototype.drawHole=function(e,i){if(i===void 0&&(i=null),!this.graphicsData.length)return null;var n=new Js(e,null,null,i),a=this.graphicsData[this.graphicsData.length-1];return n.lineStyle=a.lineStyle,a.holes.push(n),this.dirty++,this},r.prototype.destroy=function(){t.prototype.destroy.call(this);for(var e=0;e<this.graphicsData.length;++e)this.graphicsData[e].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null},r.prototype.containsPoint=function(e){for(var i=this.graphicsData,n=0;n<i.length;++n){var a=i[n];if(!!a.fillStyle.visible&&a.shape&&(a.matrix?a.matrix.applyInverse(e,ye):ye.copyFrom(e),a.shape.contains(ye.x,ye.y))){var s=!1;if(a.holes)for(var o=0;o<a.holes.length;o++){var h=a.holes[o];if(h.shape.contains(ye.x,ye.y)){s=!0;break}}if(!s)return!0}}return!1},r.prototype.updateBatches=function(e){if(!this.graphicsData.length){this.batchable=!0;return}if(!!this.validateBatching()){this.cacheDirty=this.dirty;var i=this.uvs,n=this.graphicsData,a=null,s=null;this.batches.length>0&&(a=this.batches[this.batches.length-1],s=a.style);for(var o=this.shapeIndex;o<n.length;o++){this.shapeIndex++;var h=n[o],u=h.fillStyle,l=h.lineStyle,c=vi[h.type];c.build(h),h.matrix&&this.transformPoints(h.points,h.matrix),(u.visible||l.visible)&&this.processHoles(h.holes);for(var f=0;f<2;f++){var d=f===0?u:l;if(!!d.visible){var p=d.texture.baseTexture,v=this.indices.length,_=this.points.length/2;p.wrapMode=Ft.REPEAT,f===0?this.processFill(h):this.processLine(h);var m=this.points.length/2-_;m!==0&&(a&&!this._compareStyles(s,d)&&(a.end(v,_),a=null),a||(a=Zs.pop()||new Gp,a.begin(d,v,_),this.batches.push(a),s=d),this.addUvs(this.points,i,d.texture,_,m,d.matrix))}}}var T=this.indices.length,x=this.points.length/2;if(a&&a.end(T,x),this.batches.length===0){this.batchable=!0;return}if(this.indicesUint16&&this.indices.length===this.indicesUint16.length)this.indicesUint16.set(this.indices);else{var E=x>65535&&e;this.indicesUint16=E?new Uint32Array(this.indices):new Uint16Array(this.indices)}this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}},r.prototype._compareStyles=function(e,i){return!(!e||!i||e.texture.baseTexture!==i.texture.baseTexture||e.color+e.alpha!==i.color+i.alpha||!!e.native!=!!i.native)},r.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var e=0,i=this.graphicsData.length;e<i;e++){var n=this.graphicsData[e],a=n.fillStyle,s=n.lineStyle;if(a&&!a.texture.baseTexture.valid||s&&!s.texture.baseTexture.valid)return!1}return!0},r.prototype.packBatches=function(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);for(var e=this.batches,i=0,n=e.length;i<n;i++)for(var a=e[i],s=0;s<a.size;s++){var o=a.start+s;this.indicesUint16[o]=this.indicesUint16[o]-a.attribStart}},r.prototype.isBatchable=function(){if(this.points.length>65535*2)return!1;for(var e=this.batches,i=0;i<e.length;i++)if(e[i].style.native)return!1;return this.points.length<r.BATCHABLE_SIZE*2},r.prototype.buildDrawCalls=function(){for(var e=++H._globalBatch,i=0;i<this.drawCalls.length;i++)this.drawCalls[i].texArray.clear(),Ir.push(this.drawCalls[i]);this.drawCalls.length=0;var n=this.colors,a=this.textureIds,s=Ir.pop();s||(s=new Si,s.texArray=new Li),s.texArray.count=0,s.start=0,s.size=0,s.type=vt.TRIANGLES;var o=0,h=null,u=0,l=!1,c=vt.TRIANGLES,f=0;this.drawCalls.push(s);for(var i=0;i<this.batches.length;i++){var d=this.batches[i],p=8,v=d.style,_=v.texture.baseTexture;l!==!!v.native&&(l=!!v.native,c=l?vt.LINES:vt.TRIANGLES,h=null,o=p,e++),h!==_&&(h=_,_._batchEnabled!==e&&(o===p&&(e++,o=0,s.size>0&&(s=Ir.pop(),s||(s=new Si,s.texArray=new Li),this.drawCalls.push(s)),s.start=f,s.size=0,s.texArray.count=0,s.type=c),_.touched=1,_._batchEnabled=e,_._batchLocation=o,_.wrapMode=Ft.REPEAT,s.texArray.elements[s.texArray.count++]=_,o++)),s.size+=d.size,f+=d.size,u=_._batchLocation,this.addColors(n,v.color,v.alpha,d.attribSize,d.attribStart),this.addTextureIds(a,u,d.attribSize,d.attribStart)}H._globalBatch=e,this.packAttributes()},r.prototype.packAttributes=function(){for(var e=this.points,i=this.uvs,n=this.colors,a=this.textureIds,s=new ArrayBuffer(e.length*3*4),o=new Float32Array(s),h=new Uint32Array(s),u=0,l=0;l<e.length/2;l++)o[u++]=e[l*2],o[u++]=e[l*2+1],o[u++]=i[l*2],o[u++]=i[l*2+1],h[u++]=n[l],o[u++]=a[l];this._buffer.update(s),this._indexBuffer.update(this.indicesUint16)},r.prototype.processFill=function(e){if(e.holes.length)Rh.triangulate(e,this);else{var i=vi[e.type];i.triangulate(e,this)}},r.prototype.processLine=function(e){qs(e,this);for(var i=0;i<e.holes.length;i++)qs(e.holes[i],this)},r.prototype.processHoles=function(e){for(var i=0;i<e.length;i++){var n=e[i],a=vi[n.type];a.build(n),n.matrix&&this.transformPoints(n.points,n.matrix)}},r.prototype.calculateBounds=function(){var e=this._bounds,i=Bp,n=Q.IDENTITY;this._bounds.clear(),i.clear();for(var a=0;a<this.graphicsData.length;a++){var s=this.graphicsData[a],o=s.shape,h=s.type,u=s.lineStyle,l=s.matrix||Q.IDENTITY,c=0;if(u&&u.visible&&(c=u.width,h!==Z.POLY||s.fillStyle.visible?c*=Math.max(0,u.alignment):c*=Math.max(u.alignment,1-u.alignment)),n!==l&&(i.isEmpty()||(e.addBoundsMatrix(i,n),i.clear()),n=l),h===Z.RECT||h===Z.RREC){var f=o;i.addFramePad(f.x,f.y,f.x+f.width,f.y+f.height,c,c)}else if(h===Z.CIRC){var d=o;i.addFramePad(d.x,d.y,d.x,d.y,d.radius+c,d.radius+c)}else if(h===Z.ELIP){var p=o;i.addFramePad(p.x,p.y,p.x,p.y,p.width+c,p.height+c)}else{var v=o;e.addVerticesMatrix(n,v.points,0,v.points.length,c,c)}}i.isEmpty()||e.addBoundsMatrix(i,n),e.pad(this.boundsPadding,this.boundsPadding)},r.prototype.transformPoints=function(e,i){for(var n=0;n<e.length/2;n++){var a=e[n*2],s=e[n*2+1];e[n*2]=i.a*a+i.c*s+i.tx,e[n*2+1]=i.b*a+i.d*s+i.ty}},r.prototype.addColors=function(e,i,n,a,s){s===void 0&&(s=0);var o=(i>>16)+(i&65280)+((i&255)<<16),h=pn(o,n);e.length=Math.max(e.length,s+a);for(var u=0;u<a;u++)e[s+u]=h},r.prototype.addTextureIds=function(e,i,n,a){a===void 0&&(a=0),e.length=Math.max(e.length,a+n);for(var s=0;s<n;s++)e[a+s]=i},r.prototype.addUvs=function(e,i,n,a,s,o){o===void 0&&(o=null);for(var h=0,u=i.length,l=n.frame;h<s;){var c=e[(a+h)*2],f=e[(a+h)*2+1];if(o){var d=o.a*c+o.c*f+o.tx;f=o.b*c+o.d*f+o.ty,c=d}h++,i.push(c/l.width,f/l.height)}var p=n.baseTexture;(l.width<p.width||l.height<p.height)&&this.adjustUvs(i,n,u,s)},r.prototype.adjustUvs=function(e,i,n,a){for(var s=i.baseTexture,o=1e-6,h=n+a*2,u=i.frame,l=u.width/s.width,c=u.height/s.height,f=u.x/u.width,d=u.y/u.height,p=Math.floor(e[n]+o),v=Math.floor(e[n+1]+o),_=n+2;_<h;_+=2)p=Math.min(p,Math.floor(e[_]+o)),v=Math.min(v,Math.floor(e[_+1]+o));f-=p,d-=v;for(var _=n;_<h;_+=2)e[_]=(e[_]+f)*l,e[_+1]=(e[_+1]+d)*c},r.BATCHABLE_SIZE=100,r}(ch),Xp=function(t){Dn(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;return e.width=0,e.alignment=.5,e.native=!1,e.cap=zt.BUTT,e.join=jt.MITER,e.miterLimit=10,e}return r.prototype.clone=function(){var e=new r;return e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.matrix=this.matrix,e.visible=this.visible,e.width=this.width,e.alignment=this.alignment,e.native=this.native,e.cap=this.cap,e.join=this.join,e.miterLimit=this.miterLimit,e},r.prototype.reset=function(){t.prototype.reset.call(this),this.color=0,this.alignment=.5,this.width=0,this.native=!1},r}(Eh),kp=new Float32Array(3),_i={},Fr=function(t){Dn(r,t);function r(e){e===void 0&&(e=null);var i=t.call(this)||this;return i.shader=null,i.pluginName="batch",i.currentPath=null,i.batches=[],i.batchTint=-1,i.batchDirty=-1,i.vertexData=null,i._fillStyle=new Eh,i._lineStyle=new Xp,i._matrix=null,i._holeMode=!1,i.state=ue.for2d(),i._geometry=e||new Mp,i._geometry.refCount++,i._transformID=-1,i.tint=16777215,i.blendMode=P.NORMAL,i}return Object.defineProperty(r.prototype,"geometry",{get:function(){return this._geometry},enumerable:!1,configurable:!0}),r.prototype.clone=function(){return this.finishPoly(),new r(this._geometry)},Object.defineProperty(r.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(e){this.state.blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tint",{get:function(){return this._tint},set:function(e){this._tint=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"fill",{get:function(){return this._fillStyle},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"line",{get:function(){return this._lineStyle},enumerable:!1,configurable:!0}),r.prototype.lineStyle=function(e,i,n,a,s){return e===void 0&&(e=null),i===void 0&&(i=0),n===void 0&&(n=1),a===void 0&&(a=.5),s===void 0&&(s=!1),typeof e=="number"&&(e={width:e,color:i,alpha:n,alignment:a,native:s}),this.lineTextureStyle(e)},r.prototype.lineTextureStyle=function(e){e=Object.assign({width:0,texture:F.WHITE,color:e&&e.texture?16777215:0,alpha:1,matrix:null,alignment:.5,native:!1,cap:zt.BUTT,join:jt.MITER,miterLimit:10},e),this.currentPath&&this.startPoly();var i=e.width>0&&e.alpha>0;return i?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:i},e)):this._lineStyle.reset(),this},r.prototype.startPoly=function(){if(this.currentPath){var e=this.currentPath.points,i=this.currentPath.points.length;i>2&&(this.drawShape(this.currentPath),this.currentPath=new Cr,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[i-2],e[i-1]))}else this.currentPath=new Cr,this.currentPath.closeStroke=!1},r.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},r.prototype.moveTo=function(e,i){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=i,this},r.prototype.lineTo=function(e,i){this.currentPath||this.moveTo(0,0);var n=this.currentPath.points,a=n[n.length-2],s=n[n.length-1];return(a!==e||s!==i)&&n.push(e,i),this},r.prototype._initCurve=function(e,i){e===void 0&&(e=0),i===void 0&&(i=0),this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[e,i]):this.moveTo(e,i)},r.prototype.quadraticCurveTo=function(e,i,n,a){this._initCurve();var s=this.currentPath.points;return s.length===0&&this.moveTo(0,0),Fp.curveTo(e,i,n,a,s),this},r.prototype.bezierCurveTo=function(e,i,n,a,s,o){return this._initCurve(),Lp.curveTo(e,i,n,a,s,o,this.currentPath.points),this},r.prototype.arcTo=function(e,i,n,a,s){this._initCurve(e,i);var o=this.currentPath.points,h=Ks.curveTo(e,i,n,a,s,o);if(h){var u=h.cx,l=h.cy,c=h.radius,f=h.startAngle,d=h.endAngle,p=h.anticlockwise;this.arc(u,l,c,f,d,p)}return this},r.prototype.arc=function(e,i,n,a,s,o){if(o===void 0&&(o=!1),a===s)return this;!o&&s<=a?s+=Or:o&&a<=s&&(a+=Or);var h=s-a;if(h===0)return this;var u=e+Math.cos(a)*n,l=i+Math.sin(a)*n,c=this._geometry.closePointEps,f=this.currentPath?this.currentPath.points:null;if(f){var d=Math.abs(f[f.length-2]-u),p=Math.abs(f[f.length-1]-l);d<c&&p<c||f.push(u,l)}else this.moveTo(u,l),f=this.currentPath.points;return Ks.arc(u,l,e,i,n,a,s,o,f),this},r.prototype.beginFill=function(e,i){return e===void 0&&(e=0),i===void 0&&(i=1),this.beginTextureFill({texture:F.WHITE,color:e,alpha:i})},r.prototype.beginTextureFill=function(e){e=Object.assign({texture:F.WHITE,color:16777215,alpha:1,matrix:null},e),this.currentPath&&this.startPoly();var i=e.alpha>0;return i?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:i},e)):this._fillStyle.reset(),this},r.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},r.prototype.drawRect=function(e,i,n,a){return this.drawShape(new M(e,i,n,a))},r.prototype.drawRoundedRect=function(e,i,n,a,s){return this.drawShape(new Xf(e,i,n,a,s))},r.prototype.drawCircle=function(e,i,n){return this.drawShape(new Bf(e,i,n))},r.prototype.drawEllipse=function(e,i,n,a){return this.drawShape(new Mf(e,i,n,a))},r.prototype.drawPolygon=function(){for(var e=arguments,i=[],n=0;n<arguments.length;n++)i[n]=e[n];var a,s=!0,o=i[0];o.points?(s=o.closeStroke,a=o.points):Array.isArray(i[0])?a=i[0]:a=i;var h=new Cr(a);return h.closeStroke=s,this.drawShape(h),this},r.prototype.drawShape=function(e){return this._holeMode?this._geometry.drawHole(e,this._matrix):this._geometry.drawShape(e,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this},r.prototype.clear=function(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this},r.prototype.isFastRect=function(){var e=this._geometry.graphicsData;return e.length===1&&e[0].shape.type===Z.RECT&&!e[0].matrix&&!e[0].holes.length&&!(e[0].lineStyle.visible&&e[0].lineStyle.width)},r.prototype._render=function(e){this.finishPoly();var i=this._geometry,n=e.context.supports.uint32Indices;i.updateBatches(n),i.batchable?(this.batchDirty!==i.batchDirty&&this._populateBatches(),this._renderBatched(e)):(e.batch.flush(),this._renderDirect(e))},r.prototype._populateBatches=function(){var e=this._geometry,i=this.blendMode,n=e.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=e.batchDirty,this.batches.length=n,this.vertexData=new Float32Array(e.points);for(var a=0;a<n;a++){var s=e.batches[a],o=s.style.color,h=new Float32Array(this.vertexData.buffer,s.attribStart*4*2,s.attribSize*2),u=new Float32Array(e.uvsFloat32.buffer,s.attribStart*4*2,s.attribSize*2),l=new Uint16Array(e.indicesUint16.buffer,s.start*2,s.size),c={vertexData:h,blendMode:i,indices:l,uvs:u,_batchRGB:Re(o),_tintRGB:o,_texture:s.style.texture,alpha:s.style.alpha,worldAlpha:1};this.batches[a]=c}},r.prototype._renderBatched=function(e){if(!!this.batches.length){e.batch.setObjectRenderer(e.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(var i=0,n=this.batches.length;i<n;i++){var a=this.batches[i];a.worldAlpha=this.worldAlpha*a.alpha,e.plugins[this.pluginName].render(a)}}},r.prototype._renderDirect=function(e){var i=this._resolveDirectShader(e),n=this._geometry,a=this.tint,s=this.worldAlpha,o=i.uniforms,h=n.drawCalls;o.translationMatrix=this.transform.worldTransform,o.tint[0]=(a>>16&255)/255*s,o.tint[1]=(a>>8&255)/255*s,o.tint[2]=(a&255)/255*s,o.tint[3]=s,e.shader.bind(i),e.geometry.bind(n,i),e.state.set(this.state);for(var u=0,l=h.length;u<l;u++)this._renderDrawCallDirect(e,n.drawCalls[u])},r.prototype._renderDrawCallDirect=function(e,i){for(var n=i.texArray,a=i.type,s=i.size,o=i.start,h=n.count,u=0;u<h;u++)e.texture.bind(n.elements[u],u);e.geometry.draw(a,s,o)},r.prototype._resolveDirectShader=function(e){var i=this.shader,n=this.pluginName;if(!i){if(!_i[n]){for(var a=e.plugins[n].MAX_TEXTURES,s=new Int32Array(a),o=0;o<a;o++)s[o]=o;var h={tint:new Float32Array([1,1,1,1]),translationMatrix:new Q,default:se.from({uSamplers:s},!0)},u=e.plugins[n]._shader.program;_i[n]=new Wt(u,h)}i=_i[n]}return i},r.prototype._calculateBounds=function(){this.finishPoly();var e=this._geometry;if(!!e.graphicsData.length){var i=e.bounds,n=i.minX,a=i.minY,s=i.maxX,o=i.maxY;this._bounds.addFrame(this.transform,n,a,s,o)}},r.prototype.containsPoint=function(e){return this.worldTransform.applyInverse(e,r._TEMP_POINT),this._geometry.containsPoint(r._TEMP_POINT)},r.prototype.calculateTints=function(){if(this.batchTint!==this.tint){this.batchTint=this.tint;for(var e=Re(this.tint,kp),i=0;i<this.batches.length;i++){var n=this.batches[i],a=n._batchRGB,s=e[0]*a[0]*255,o=e[1]*a[1]*255,h=e[2]*a[2]*255,u=(s<<16)+(o<<8)+(h|0);n._tintRGB=(u>>16)+(u&65280)+((u&255)<<16)}}},r.prototype.calculateVertices=function(){var e=this.transform._worldID;if(this._transformID!==e){this._transformID=e;for(var i=this.transform.worldTransform,n=i.a,a=i.b,s=i.c,o=i.d,h=i.tx,u=i.ty,l=this._geometry.points,c=this.vertexData,f=0,d=0;d<l.length;d+=2){var p=l[d],v=l[d+1];c[f++]=n*p+s*v+h,c[f++]=o*v+a*p+u}}},r.prototype.closePath=function(){var e=this.currentPath;return e&&(e.closeStroke=!0,this.finishPoly()),this},r.prototype.setMatrix=function(e){return this._matrix=e,this},r.prototype.beginHole=function(){return this.finishPoly(),this._holeMode=!0,this},r.prototype.endHole=function(){return this.finishPoly(),this._holeMode=!1,this},r.prototype.destroy=function(e){this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,t.prototype.destroy.call(this,e)},r.nextRoundedRectBehavior=!1,r._TEMP_POINT=new D,r}(wt);/*!
- * @pixi/text - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/text is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- *//*! *****************************************************************************
-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 Ji=function(t,r){return Ji=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])},Ji(t,r)};function Hp(t,r){Ji(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var $e;(function(t){t[t.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",t[t.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL"})($e||($e={}));var mi={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:$e.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100,leading:0},Dp=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],Ce=function(){function t(r){this.styleID=0,this.reset(),gi(this,r,r)}return t.prototype.clone=function(){var r={};return gi(r,this,mi),new t(r)},t.prototype.reset=function(){gi(this,mi,mi)},Object.defineProperty(t.prototype,"align",{get:function(){return this._align},set:function(r){this._align!==r&&(this._align=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"breakWords",{get:function(){return this._breakWords},set:function(r){this._breakWords!==r&&(this._breakWords=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadow",{get:function(){return this._dropShadow},set:function(r){this._dropShadow!==r&&(this._dropShadow=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowAlpha",{get:function(){return this._dropShadowAlpha},set:function(r){this._dropShadowAlpha!==r&&(this._dropShadowAlpha=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowAngle",{get:function(){return this._dropShadowAngle},set:function(r){this._dropShadowAngle!==r&&(this._dropShadowAngle=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowBlur",{get:function(){return this._dropShadowBlur},set:function(r){this._dropShadowBlur!==r&&(this._dropShadowBlur=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowColor",{get:function(){return this._dropShadowColor},set:function(r){var e=yi(r);this._dropShadowColor!==e&&(this._dropShadowColor=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowDistance",{get:function(){return this._dropShadowDistance},set:function(r){this._dropShadowDistance!==r&&(this._dropShadowDistance=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fill",{get:function(){return this._fill},set:function(r){var e=yi(r);this._fill!==e&&(this._fill=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fillGradientType",{get:function(){return this._fillGradientType},set:function(r){this._fillGradientType!==r&&(this._fillGradientType=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fillGradientStops",{get:function(){return this._fillGradientStops},set:function(r){Vp(this._fillGradientStops,r)||(this._fillGradientStops=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(r){this.fontFamily!==r&&(this._fontFamily=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function(){return this._fontSize},set:function(r){this._fontSize!==r&&(this._fontSize=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(r){this._fontStyle!==r&&(this._fontStyle=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontVariant",{get:function(){return this._fontVariant},set:function(r){this._fontVariant!==r&&(this._fontVariant=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(r){this._fontWeight!==r&&(this._fontWeight=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(r){this._letterSpacing!==r&&(this._letterSpacing=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(r){this._lineHeight!==r&&(this._lineHeight=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leading",{get:function(){return this._leading},set:function(r){this._leading!==r&&(this._leading=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(r){this._lineJoin!==r&&(this._lineJoin=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"miterLimit",{get:function(){return this._miterLimit},set:function(r){this._miterLimit!==r&&(this._miterLimit=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"padding",{get:function(){return this._padding},set:function(r){this._padding!==r&&(this._padding=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stroke",{get:function(){return this._stroke},set:function(r){var e=yi(r);this._stroke!==e&&(this._stroke=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"strokeThickness",{get:function(){return this._strokeThickness},set:function(r){this._strokeThickness!==r&&(this._strokeThickness=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(r){this._textBaseline!==r&&(this._textBaseline=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trim",{get:function(){return this._trim},set:function(r){this._trim!==r&&(this._trim=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"whiteSpace",{get:function(){return this._whiteSpace},set:function(r){this._whiteSpace!==r&&(this._whiteSpace=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(r){this._wordWrap!==r&&(this._wordWrap=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wordWrapWidth",{get:function(){return this._wordWrapWidth},set:function(r){this._wordWrapWidth!==r&&(this._wordWrapWidth=r,this.styleID++)},enumerable:!1,configurable:!0}),t.prototype.toFontString=function(){var r=typeof this.fontSize=="number"?this.fontSize+"px":this.fontSize,e=this.fontFamily;Array.isArray(this.fontFamily)||(e=this.fontFamily.split(","));for(var i=e.length-1;i>=0;i--){var n=e[i].trim();!/([\"\'])[^\'\"]+\1/.test(n)&&Dp.indexOf(n)<0&&(n='"'+n+'"'),e[i]=n}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+r+" "+e.join(",")},t}();function Qs(t){return typeof t=="number"?Vo(t):(typeof t=="string"&&t.indexOf("0x")===0&&(t=t.replace("0x","#")),t)}function yi(t){if(Array.isArray(t)){for(var r=0;r<t.length;++r)t[r]=Qs(t[r]);return t}else return Qs(t)}function Vp(t,r){if(!Array.isArray(t)||!Array.isArray(r)||t.length!==r.length)return!1;for(var e=0;e<t.length;++e)if(t[e]!==r[e])return!1;return!0}function gi(t,r,e){for(var i in e)Array.isArray(r[i])?t[i]=r[i].slice():t[i]=r[i]}var Pt=function(){function t(r,e,i,n,a,s,o,h,u){this.text=r,this.style=e,this.width=i,this.height=n,this.lines=a,this.lineWidths=s,this.lineHeight=o,this.maxLineWidth=h,this.fontProperties=u}return t.measureText=function(r,e,i,n){n===void 0&&(n=t._canvas),i=i==null?e.wordWrap:i;var a=e.toFontString(),s=t.measureFont(a);s.fontSize===0&&(s.fontSize=e.fontSize,s.ascent=e.fontSize);var o=n.getContext("2d");o.font=a;for(var h=i?t.wordWrap(r,e,n):r,u=h.split(/(?:\r\n|\r|\n)/),l=new Array(u.length),c=0,f=0;f<u.length;f++){var d=o.measureText(u[f]).width+(u[f].length-1)*e.letterSpacing;l[f]=d,c=Math.max(c,d)}var p=c+e.strokeThickness;e.dropShadow&&(p+=e.dropShadowDistance);var v=e.lineHeight||s.fontSize+e.strokeThickness,_=Math.max(v,s.fontSize+e.strokeThickness)+(u.length-1)*(v+e.leading);return e.dropShadow&&(_+=e.dropShadowDistance),new t(r,e,p,_,u,l,v+e.leading,c,s)},t.wordWrap=function(r,e,i){i===void 0&&(i=t._canvas);for(var n=i.getContext("2d"),a=0,s="",o="",h=Object.create(null),u=e.letterSpacing,l=e.whiteSpace,c=t.collapseSpaces(l),f=t.collapseNewlines(l),d=!c,p=e.wordWrapWidth+u,v=t.tokenize(r),_=0;_<v.length;_++){var m=v[_];if(t.isNewline(m)){if(!f){o+=t.addLine(s),d=!c,s="",a=0;continue}m=" "}if(c){var T=t.isBreakingSpace(m),x=t.isBreakingSpace(s[s.length-1]);if(T&&x)continue}var E=t.getFromCache(m,u,h,n);if(E>p)if(s!==""&&(o+=t.addLine(s),s="",a=0),t.canBreakWords(m,e.breakWords))for(var g=t.wordWrapSplit(m),y=0;y<g.length;y++){for(var b=g[y],C=1;g[y+C];){var I=g[y+C],w=b[b.length-1];if(!t.canBreakChars(w,I,m,y,e.breakWords))b+=I;else break;C++}y+=b.length-1;var S=t.getFromCache(b,u,h,n);S+a>p&&(o+=t.addLine(s),d=!1,s="",a=0),s+=b,a+=S}else{s.length>0&&(o+=t.addLine(s),s="",a=0);var G=_===v.length-1;o+=t.addLine(m,!G),d=!1,s="",a=0}else E+a>p&&(d=!1,o+=t.addLine(s),s="",a=0),(s.length>0||!t.isBreakingSpace(m)||d)&&(s+=m,a+=E)}return o+=t.addLine(s,!1),o},t.addLine=function(r,e){return e===void 0&&(e=!0),r=t.trimRight(r),r=e?r+`
-`:r,r},t.getFromCache=function(r,e,i,n){var a=i[r];if(typeof a!="number"){var s=r.length*e;a=n.measureText(r).width+s,i[r]=a}return a},t.collapseSpaces=function(r){return r==="normal"||r==="pre-line"},t.collapseNewlines=function(r){return r==="normal"},t.trimRight=function(r){if(typeof r!="string")return"";for(var e=r.length-1;e>=0;e--){var i=r[e];if(!t.isBreakingSpace(i))break;r=r.slice(0,-1)}return r},t.isNewline=function(r){return typeof r!="string"?!1:t._newlines.indexOf(r.charCodeAt(0))>=0},t.isBreakingSpace=function(r,e){return typeof r!="string"?!1:t._breakingSpaces.indexOf(r.charCodeAt(0))>=0},t.tokenize=function(r){var e=[],i="";if(typeof r!="string")return e;for(var n=0;n<r.length;n++){var a=r[n],s=r[n+1];if(t.isBreakingSpace(a,s)||t.isNewline(a)){i!==""&&(e.push(i),i=""),e.push(a);continue}i+=a}return i!==""&&e.push(i),e},t.canBreakWords=function(r,e){return e},t.canBreakChars=function(r,e,i,n,a){return!0},t.wordWrapSplit=function(r){return r.split("")},t.measureFont=function(r){if(t._fonts[r])return t._fonts[r];var e={ascent:0,descent:0,fontSize:0},i=t._canvas,n=t._context;n.font=r;var a=t.METRICS_STRING+t.BASELINE_SYMBOL,s=Math.ceil(n.measureText(a).width),o=Math.ceil(n.measureText(t.BASELINE_SYMBOL).width),h=Math.ceil(t.HEIGHT_MULTIPLIER*o);o=o*t.BASELINE_MULTIPLIER|0,i.width=s,i.height=h,n.fillStyle="#f00",n.fillRect(0,0,s,h),n.font=r,n.textBaseline="alphabetic",n.fillStyle="#000",n.fillText(a,0,o);var u=n.getImageData(0,0,s,h).data,l=u.length,c=s*4,f=0,d=0,p=!1;for(f=0;f<o;++f){for(var v=0;v<c;v+=4)if(u[d+v]!==255){p=!0;break}if(!p)d+=c;else break}for(e.ascent=o-f,d=l-c,p=!1,f=h;f>o;--f){for(var v=0;v<c;v+=4)if(u[d+v]!==255){p=!0;break}if(!p)d-=c;else break}return e.descent=f-o,e.fontSize=e.ascent+e.descent,t._fonts[r]=e,e},t.clearMetrics=function(r){r===void 0&&(r=""),r?delete t._fonts[r]:t._fonts={}},Object.defineProperty(t,"_canvas",{get:function(){if(!t.__canvas){var r=void 0;try{var e=new OffscreenCanvas(0,0),i=e.getContext("2d");if(i&&i.measureText)return t.__canvas=e,e;r=document.createElement("canvas")}catch{r=document.createElement("canvas")}r.width=r.height=10,t.__canvas=r}return t.__canvas},enumerable:!1,configurable:!0}),Object.defineProperty(t,"_context",{get:function(){return t.__context||(t.__context=t._canvas.getContext("2d")),t.__context},enumerable:!1,configurable:!0}),t}();Pt._fonts={};Pt.METRICS_STRING="|\xC9q\xC5";Pt.BASELINE_SYMBOL="M";Pt.BASELINE_MULTIPLIER=1.4;Pt.HEIGHT_MULTIPLIER=2;Pt._newlines=[10,13];Pt._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];var jp={texture:!0,children:!1,baseTexture:!0},Ch=function(t){Hp(r,t);function r(e,i,n){var a=this,s=!1;n||(n=document.createElement("canvas"),s=!0),n.width=3,n.height=3;var o=F.from(n);return o.orig=new M,o.trim=new M,a=t.call(this,o)||this,a._ownCanvas=s,a.canvas=n,a.context=a.canvas.getContext("2d"),a._resolution=N.RESOLUTION,a._autoResolution=!0,a._text=null,a._style=null,a._styleListener=null,a._font="",a.text=e,a.style=i,a.localStyleID=-1,a}return r.prototype.updateText=function(e){var i=this._style;if(this.localStyleID!==i.styleID&&(this.dirty=!0,this.localStyleID=i.styleID),!(!this.dirty&&e)){this._font=this._style.toFontString();var n=this.context,a=Pt.measureText(this._text||" ",this._style,this._style.wordWrap,this.canvas),s=a.width,o=a.height,h=a.lines,u=a.lineHeight,l=a.lineWidths,c=a.maxLineWidth,f=a.fontProperties;this.canvas.width=Math.ceil(Math.ceil(Math.max(1,s)+i.padding*2)*this._resolution),this.canvas.height=Math.ceil(Math.ceil(Math.max(1,o)+i.padding*2)*this._resolution),n.scale(this._resolution,this._resolution),n.clearRect(0,0,this.canvas.width,this.canvas.height),n.font=this._font,n.lineWidth=i.strokeThickness,n.textBaseline=i.textBaseline,n.lineJoin=i.lineJoin,n.miterLimit=i.miterLimit;for(var d,p,v=i.dropShadow?2:1,_=0;_<v;++_){var m=i.dropShadow&&_===0,T=m?Math.ceil(Math.max(1,o)+i.padding*2):0,x=T*this._resolution;if(m){n.fillStyle="black",n.strokeStyle="black";var E=i.dropShadowColor,g=Re(typeof E=="number"?E:jo(E)),y=i.dropShadowBlur*this._resolution,b=i.dropShadowDistance*this._resolution;n.shadowColor="rgba("+g[0]*255+","+g[1]*255+","+g[2]*255+","+i.dropShadowAlpha+")",n.shadowBlur=y,n.shadowOffsetX=Math.cos(i.dropShadowAngle)*b,n.shadowOffsetY=Math.sin(i.dropShadowAngle)*b+x}else n.fillStyle=this._generateFillStyle(i,h,a),n.strokeStyle=i.stroke,n.shadowColor="black",n.shadowBlur=0,n.shadowOffsetX=0,n.shadowOffsetY=0;var C=(u-f.fontSize)/2;(!r.nextLineHeightBehavior||u-f.fontSize<0)&&(C=0);for(var I=0;I<h.length;I++)d=i.strokeThickness/2,p=i.strokeThickness/2+I*u+f.ascent+C,i.align==="right"?d+=c-l[I]:i.align==="center"&&(d+=(c-l[I])/2),i.stroke&&i.strokeThickness&&this.drawLetterSpacing(h[I],d+i.padding,p+i.padding-T,!0),i.fill&&this.drawLetterSpacing(h[I],d+i.padding,p+i.padding-T)}this.updateTexture()}},r.prototype.drawLetterSpacing=function(e,i,n,a){a===void 0&&(a=!1);var s=this._style,o=s.letterSpacing,h=r.experimentalLetterSpacing&&("letterSpacing"in CanvasRenderingContext2D.prototype||"textLetterSpacing"in CanvasRenderingContext2D.prototype);if(o===0||h){h&&(this.context.letterSpacing=o,this.context.textLetterSpacing=o),a?this.context.strokeText(e,i,n):this.context.fillText(e,i,n);return}for(var u=i,l=Array.from?Array.from(e):e.split(""),c=this.context.measureText(e).width,f=0,d=0;d<l.length;++d){var p=l[d];a?this.context.strokeText(p,u,n):this.context.fillText(p,u,n);for(var v="",_=d+1;_<l.length;++_)v+=l[_];f=this.context.measureText(v).width,u+=c-f+o,c=f}},r.prototype.updateTexture=function(){var e=this.canvas;if(this._style.trim){var i=Ff(e);i.data&&(e.width=i.width,e.height=i.height,this.context.putImageData(i.data,0,0))}var n=this._texture,a=this._style,s=a.trim?0:a.padding,o=n.baseTexture;n.trim.width=n._frame.width=e.width/this._resolution,n.trim.height=n._frame.height=e.height/this._resolution,n.trim.x=-s,n.trim.y=-s,n.orig.width=n._frame.width-s*2,n.orig.height=n._frame.height-s*2,this._onTextureUpdate(),o.setRealSize(e.width,e.height,this._resolution),n.updateUvs(),this.dirty=!1},r.prototype._render=function(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0),this.updateText(!0),t.prototype._render.call(this,e)},r.prototype.updateTransform=function(){this.updateText(!0),t.prototype.updateTransform.call(this)},r.prototype.getBounds=function(e,i){return this.updateText(!0),this._textureID===-1&&(e=!1),t.prototype.getBounds.call(this,e,i)},r.prototype.getLocalBounds=function(e){return this.updateText(!0),t.prototype.getLocalBounds.call(this,e)},r.prototype._calculateBounds=function(){this.calculateVertices(),this._bounds.addQuad(this.vertexData)},r.prototype._generateFillStyle=function(e,i,n){var a=e.fill;if(Array.isArray(a)){if(a.length===1)return a[0]}else return a;var s,o=e.dropShadow?e.dropShadowDistance:0,h=e.padding||0,u=this.canvas.width/this._resolution-o-h*2,l=this.canvas.height/this._resolution-o-h*2,c=a.slice(),f=e.fillGradientStops.slice();if(!f.length)for(var d=c.length+1,p=1;p<d;++p)f.push(p/d);if(c.unshift(a[0]),f.unshift(0),c.push(a[a.length-1]),f.push(1),e.fillGradientType===$e.LINEAR_VERTICAL){s=this.context.createLinearGradient(u/2,h,u/2,l+h);for(var v=n.fontProperties.fontSize+e.strokeThickness,p=0;p<i.length;p++){var _=n.lineHeight*(p-1)+v,m=n.lineHeight*p,T=m;p>0&&_>m&&(T=(m+_)/2);var x=m+v,E=n.lineHeight*(p+1),g=x;p+1<i.length&&E<x&&(g=(x+E)/2);for(var y=(g-T)/l,b=0;b<c.length;b++){var C=0;typeof f[b]=="number"?C=f[b]:C=b/c.length;var I=Math.min(1,Math.max(0,T/l+C*y));I=Number(I.toFixed(5)),s.addColorStop(I,c[b])}}}else{s=this.context.createLinearGradient(h,l/2,u+h,l/2);for(var w=c.length+1,S=1,p=0;p<c.length;p++){var G=void 0;typeof f[p]=="number"?G=f[p]:G=S/w,s.addColorStop(G,c[p]),S++}}return s},r.prototype.destroy=function(e){typeof e=="boolean"&&(e={children:e}),e=Object.assign({},jp,e),t.prototype.destroy.call(this,e),this._ownCanvas&&(this.canvas.height=this.canvas.width=0),this.context=null,this.canvas=null,this._style=null},Object.defineProperty(r.prototype,"width",{get:function(){return this.updateText(!0),Math.abs(this.scale.x)*this._texture.orig.width},set:function(e){this.updateText(!0);var i=xe(this.scale.x)||1;this.scale.x=i*e/this._texture.orig.width,this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this.updateText(!0),Math.abs(this.scale.y)*this._texture.orig.height},set:function(e){this.updateText(!0);var i=xe(this.scale.y)||1;this.scale.y=i*e/this._texture.orig.height,this._height=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"style",{get:function(){return this._style},set:function(e){e=e||{},e instanceof Ce?this._style=e:this._style=new Ce(e),this.localStyleID=-1,this.dirty=!0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"text",{get:function(){return this._text},set:function(e){e=String(e==null?"":e),this._text!==e&&(this._text=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"resolution",{get:function(){return this._resolution},set:function(e){this._autoResolution=!1,this._resolution!==e&&(this._resolution=e,this.dirty=!0)},enumerable:!1,configurable:!0}),r.nextLineHeightBehavior=!1,r.experimentalLetterSpacing=!1,r}(Pe);/*!
- * @pixi/prepare - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/prepare is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- */N.UPLOADS_PER_FRAME=4;/*! *****************************************************************************
-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 Qi=function(t,r){return Qi=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])},Qi(t,r)};function zp(t,r){Qi(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var Wp=function(){function t(r){this.maxItemsPerFrame=r,this.itemsLeft=0}return t.prototype.beginFrame=function(){this.itemsLeft=this.maxItemsPerFrame},t.prototype.allowedToUpload=function(){return this.itemsLeft-- >0},t}();function Yp(t,r){var e=!1;if(t&&t._textures&&t._textures.length){for(var i=0;i<t._textures.length;i++)if(t._textures[i]instanceof F){var n=t._textures[i].baseTexture;r.indexOf(n)===-1&&(r.push(n),e=!0)}}return e}function $p(t,r){if(t.baseTexture instanceof H){var e=t.baseTexture;return r.indexOf(e)===-1&&r.push(e),!0}return!1}function qp(t,r){if(t._texture&&t._texture instanceof F){var e=t._texture.baseTexture;return r.indexOf(e)===-1&&r.push(e),!0}return!1}function Kp(t,r){return r instanceof Ch?(r.updateText(!0),!0):!1}function Zp(t,r){if(r instanceof Ce){var e=r.toFontString();return Pt.measureFont(e),!0}return!1}function Jp(t,r){if(t instanceof Ch){r.indexOf(t.style)===-1&&r.push(t.style),r.indexOf(t)===-1&&r.push(t);var e=t._texture.baseTexture;return r.indexOf(e)===-1&&r.push(e),!0}return!1}function Qp(t,r){return t instanceof Ce?(r.indexOf(t)===-1&&r.push(t),!0):!1}var tv=function(){function t(r){var e=this;this.limiter=new Wp(N.UPLOADS_PER_FRAME),this.renderer=r,this.uploadHookHelper=null,this.queue=[],this.addHooks=[],this.uploadHooks=[],this.completes=[],this.ticking=!1,this.delayedTick=function(){!e.queue||e.prepareItems()},this.registerFindHook(Jp),this.registerFindHook(Qp),this.registerFindHook(Yp),this.registerFindHook($p),this.registerFindHook(qp),this.registerUploadHook(Kp),this.registerUploadHook(Zp)}return t.prototype.upload=function(r,e){typeof r=="function"&&(e=r,r=null),r&&this.add(r),this.queue.length?(e&&this.completes.push(e),this.ticking||(this.ticking=!0,at.system.addOnce(this.tick,this,kt.UTILITY))):e&&e()},t.prototype.tick=function(){setTimeout(this.delayedTick,0)},t.prototype.prepareItems=function(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){var r=this.queue[0],e=!1;if(r&&!r._destroyed){for(var i=0,n=this.uploadHooks.length;i<n;i++)if(this.uploadHooks[i](this.uploadHookHelper,r)){this.queue.shift(),e=!0;break}}e||this.queue.shift()}if(this.queue.length)at.system.addOnce(this.tick,this,kt.UTILITY);else{this.ticking=!1;var a=this.completes.slice(0);this.completes.length=0;for(var i=0,n=a.length;i<n;i++)a[i]()}},t.prototype.registerFindHook=function(r){return r&&this.addHooks.push(r),this},t.prototype.registerUploadHook=function(r){return r&&this.uploadHooks.push(r),this},t.prototype.add=function(r){for(var e=0,i=this.addHooks.length;e<i&&!this.addHooks[e](r,this.queue);e++);if(r instanceof wt)for(var e=r.children.length-1;e>=0;e--)this.add(r.children[e]);return this},t.prototype.destroy=function(){this.ticking&&at.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},t}();function wh(t,r){return r instanceof H?(r._glTextures[t.CONTEXT_UID]||t.texture.bind(r),!0):!1}function ev(t,r){if(!(r instanceof Fr))return!1;var e=r.geometry;r.finishPoly(),e.updateBatches();for(var i=e.batches,n=0;n<i.length;n++){var a=i[n].style.texture;a&&wh(t,a.baseTexture)}return e.batchable||t.geometry.bind(e,r._resolveDirectShader(t)),!0}function rv(t,r){return t instanceof Fr?(r.push(t),!0):!1}var s_=function(t){zp(r,t);function r(e){var i=t.call(this,e)||this;return i.uploadHookHelper=i.renderer,i.registerFindHook(rv),i.registerUploadHook(wh),i.registerUploadHook(ev),i}return r}(tv);/*!
- * @pixi/spritesheet - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/spritesheet is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- */var iv=function(){function t(r,e,i){i===void 0&&(i=null),this._texture=r instanceof F?r:null,this.baseTexture=r instanceof H?r:this._texture.baseTexture,this.textures={},this.animations={},this.data=e;var n=this.baseTexture.resource;this.resolution=this._updateResolution(i||(n?n.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}return t.prototype._updateResolution=function(r){r===void 0&&(r=null);var e=this.data.meta.scale,i=Ur(r,null);return i===null&&(i=e!==void 0?parseFloat(e):1),i!==1&&this.baseTexture.setResolution(i),i},t.prototype.parse=function(r){this._batchIndex=0,this._callback=r,this._frameKeys.length<=t.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()},t.prototype._processFrames=function(r){for(var e=r,i=t.BATCH_SIZE;e-r<i&&e<this._frameKeys.length;){var n=this._frameKeys[e],a=this._frames[n],s=a.frame;if(s){var o=null,h=null,u=a.trimmed!==!1&&a.sourceSize?a.sourceSize:a.frame,l=new M(0,0,Math.floor(u.w)/this.resolution,Math.floor(u.h)/this.resolution);a.rotated?o=new M(Math.floor(s.x)/this.resolution,Math.floor(s.y)/this.resolution,Math.floor(s.h)/this.resolution,Math.floor(s.w)/this.resolution):o=new M(Math.floor(s.x)/this.resolution,Math.floor(s.y)/this.resolution,Math.floor(s.w)/this.resolution,Math.floor(s.h)/this.resolution),a.trimmed!==!1&&a.spriteSourceSize&&(h=new M(Math.floor(a.spriteSourceSize.x)/this.resolution,Math.floor(a.spriteSourceSize.y)/this.resolution,Math.floor(s.w)/this.resolution,Math.floor(s.h)/this.resolution)),this.textures[n]=new F(this.baseTexture,o,l,h,a.rotated?2:0,a.anchor),F.addToCache(this.textures[n],n)}e++}},t.prototype._processAnimations=function(){var r=this.data.animations||{};for(var e in r){this.animations[e]=[];for(var i=0;i<r[e].length;i++){var n=r[e][i];this.animations[e].push(this.textures[n])}}},t.prototype._parseComplete=function(){var r=this._callback;this._callback=null,this._batchIndex=0,r.call(this,this.textures)},t.prototype._nextBatch=function(){var r=this;this._processFrames(this._batchIndex*t.BATCH_SIZE),this._batchIndex++,setTimeout(function(){r._batchIndex*t.BATCH_SIZE<r._frameKeys.length?r._nextBatch():(r._processAnimations(),r._parseComplete())},0)},t.prototype.destroy=function(r){var e;r===void 0&&(r=!1);for(var i in this.textures)this.textures[i].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,r&&((e=this._texture)===null||e===void 0||e.destroy(),this.baseTexture.destroy()),this._texture=null,this.baseTexture=null},t.BATCH_SIZE=1e3,t}(),o_=function(){function t(){}return t.use=function(r,e){var i,n,a=this,s=r.name+"_image";if(!r.data||r.type!==J.TYPE.JSON||!r.data.frames||a.resources[s]){e();return}var o=(n=(i=r.data)===null||i===void 0?void 0:i.meta)===null||n===void 0?void 0:n.related_multi_packs;if(Array.isArray(o))for(var h=function(p){if(typeof p!="string")return"continue";var v=p.replace(".json",""),_=Te.resolve(r.url.replace(a.baseUrl,""),p);if(a.resources[v]||Object.values(a.resources).some(function(T){return Te.format(Te.parse(T.url))===_}))return"continue";var m={crossOrigin:r.crossOrigin,loadType:J.LOAD_TYPE.XHR,xhrType:J.XHR_RESPONSE_TYPE.JSON,parentResource:r,metadata:r.metadata};a.add(v,_,m)},u=0,l=o;u<l.length;u++){var c=l[u];h(c)}var f={crossOrigin:r.crossOrigin,metadata:r.metadata.imageMetadata,parentResource:r},d=t.getResourcePath(r,a.baseUrl);a.add(s,d,f,function(v){if(v.error){e(v.error);return}var _=new iv(v.texture,r.data,r.url);_.parse(function(){r.spritesheet=_,r.textures=_.textures,e()})})},t.getResourcePath=function(r,e){return r.isDataUrl?r.data.meta.image:Te.resolve(r.url.replace(e,""),r.data.meta.image)},t}();/*!
- * @pixi/sprite-tiling - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/sprite-tiling is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- *//*! *****************************************************************************
-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 tn=function(t,r){return tn=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])},tn(t,r)};function Ph(t,r){tn(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var Be=new D;(function(t){Ph(r,t);function r(e,i,n){i===void 0&&(i=100),n===void 0&&(n=100);var a=t.call(this,e)||this;return a.tileTransform=new vn,a._width=i,a._height=n,a.uvMatrix=a.texture.uvMatrix||new _n(e),a.pluginName="tilingSprite",a.uvRespectAnchor=!1,a}return Object.defineProperty(r.prototype,"clampMargin",{get:function(){return this.uvMatrix.clampMargin},set:function(e){this.uvMatrix.clampMargin=e,this.uvMatrix.update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tileScale",{get:function(){return this.tileTransform.scale},set:function(e){this.tileTransform.scale.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tilePosition",{get:function(){return this.tileTransform.position},set:function(e){this.tileTransform.position.copyFrom(e)},enumerable:!1,configurable:!0}),r.prototype._onTextureUpdate=function(){this.uvMatrix&&(this.uvMatrix.texture=this._texture),this._cachedTint=16777215},r.prototype._render=function(e){var i=this._texture;!i||!i.valid||(this.tileTransform.updateLocalTransform(),this.uvMatrix.update(),e.batch.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this))},r.prototype._calculateBounds=function(){var e=this._width*-this._anchor._x,i=this._height*-this._anchor._y,n=this._width*(1-this._anchor._x),a=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,e,i,n,a)},r.prototype.getLocalBounds=function(e){return this.children.length===0?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._y),e||(this._localBoundsRect||(this._localBoundsRect=new M),e=this._localBoundsRect),this._bounds.getRectangle(e)):t.prototype.getLocalBounds.call(this,e)},r.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,Be);var i=this._width,n=this._height,a=-i*this.anchor._x;if(Be.x>=a&&Be.x<a+i){var s=-n*this.anchor._y;if(Be.y>=s&&Be.y<s+n)return!0}return!1},r.prototype.destroy=function(e){t.prototype.destroy.call(this,e),this.tileTransform=null,this.uvMatrix=null},r.from=function(e,i){var n=e instanceof F?e:F.from(e,i);return new r(n,i.width,i.height)},Object.defineProperty(r.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e},enumerable:!1,configurable:!0}),r})(Pe);var nv=`#version 100
-#define SHADER_NAME Tiling-Sprite-Simple-100
-
-precision lowp float;
-
-varying vec2 vTextureCoord;
-
-uniform sampler2D uSampler;
-uniform vec4 uColor;
-
-void main(void)
-{
-    vec4 texSample = texture2D(uSampler, vTextureCoord);
-    gl_FragColor = texSample * uColor;
-}
-`,to=`#version 100
-#define SHADER_NAME Tiling-Sprite-100
-
-precision lowp float;
-
-attribute vec2 aVertexPosition;
-attribute vec2 aTextureCoord;
-
-uniform mat3 projectionMatrix;
-uniform mat3 translationMatrix;
-uniform mat3 uTransform;
-
-varying vec2 vTextureCoord;
-
-void main(void)
-{
-    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
-
-    vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
-}
-`,av=`#version 100
-#ifdef GL_EXT_shader_texture_lod
-    #extension GL_EXT_shader_texture_lod : enable
-#endif
-#define SHADER_NAME Tiling-Sprite-100
-
-precision lowp float;
-
-varying vec2 vTextureCoord;
-
-uniform sampler2D uSampler;
-uniform vec4 uColor;
-uniform mat3 uMapCoord;
-uniform vec4 uClampFrame;
-uniform vec2 uClampOffset;
-
-void main(void)
-{
-    vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);
-    coord = (uMapCoord * vec3(coord, 1.0)).xy;
-    vec2 unclamped = coord;
-    coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);
-
-    #ifdef GL_EXT_shader_texture_lod
-        vec4 texSample = unclamped == coord
-            ? texture2D(uSampler, coord) 
-            : texture2DLodEXT(uSampler, coord, 0);
-    #else
-        vec4 texSample = texture2D(uSampler, coord);
-    #endif
-
-    gl_FragColor = texSample * uColor;
-}
-`,sv=`#version 300 es
-#define SHADER_NAME Tiling-Sprite-300
-
-precision lowp float;
-
-in vec2 aVertexPosition;
-in vec2 aTextureCoord;
-
-uniform mat3 projectionMatrix;
-uniform mat3 translationMatrix;
-uniform mat3 uTransform;
-
-out vec2 vTextureCoord;
-
-void main(void)
-{
-    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
-
-    vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
-}
-`,ov=`#version 300 es
-#define SHADER_NAME Tiling-Sprite-100
-
-precision lowp float;
-
-in vec2 vTextureCoord;
-
-out vec4 fragmentColor;
-
-uniform sampler2D uSampler;
-uniform vec4 uColor;
-uniform mat3 uMapCoord;
-uniform vec4 uClampFrame;
-uniform vec2 uClampOffset;
-
-void main(void)
-{
-    vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);
-    coord = (uMapCoord * vec3(coord, 1.0)).xy;
-    vec2 unclamped = coord;
-    coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);
-
-    vec4 texSample = texture(uSampler, coord, unclamped == coord ? 0.0f : -32.0f);// lod-bias very negative to force lod 0
-
-    fragmentColor = texSample * uColor;
-}
-`,Er=new Q,h_=function(t){Ph(r,t);function r(e){var i=t.call(this,e)||this;return e.runners.contextChange.add(i),i.quad=new nh,i.state=ue.for2d(),i}return r.prototype.contextChange=function(){var e=this.renderer,i={globals:e.globalUniforms};this.simpleShader=Wt.from(to,nv,i),this.shader=e.context.webGLVersion>1?Wt.from(sv,ov,i):Wt.from(to,av,i)},r.prototype.render=function(e){var i=this.renderer,n=this.quad,a=n.vertices;a[0]=a[6]=e._width*-e.anchor.x,a[1]=a[3]=e._height*-e.anchor.y,a[2]=a[4]=e._width*(1-e.anchor.x),a[5]=a[7]=e._height*(1-e.anchor.y);var s=e.uvRespectAnchor?e.anchor.x:0,o=e.uvRespectAnchor?e.anchor.y:0;a=n.uvs,a[0]=a[6]=-s,a[1]=a[3]=-o,a[2]=a[4]=1-s,a[5]=a[7]=1-o,n.invalidate();var h=e._texture,u=h.baseTexture,l=e.tileTransform.localTransform,c=e.uvMatrix,f=u.isPowerOfTwo&&h.frame.width===u.width&&h.frame.height===u.height;f&&(u._glTextures[i.CONTEXT_UID]?f=u.wrapMode!==Ft.CLAMP:u.wrapMode===Ft.CLAMP&&(u.wrapMode=Ft.REPEAT));var d=f?this.simpleShader:this.shader,p=h.width,v=h.height,_=e._width,m=e._height;Er.set(l.a*p/_,l.b*p/m,l.c*v/_,l.d*v/m,l.tx/_,l.ty/m),Er.invert(),f?Er.prepend(c.mapCoord):(d.uniforms.uMapCoord=c.mapCoord.toArray(!0),d.uniforms.uClampFrame=c.uClampFrame,d.uniforms.uClampOffset=c.uClampOffset),d.uniforms.uTransform=Er.toArray(!0),d.uniforms.uColor=Yo(e.tint,e.worldAlpha,d.uniforms.uColor,u.alphaMode),d.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),d.uniforms.uSampler=h,i.shader.bind(d),i.geometry.bind(n),this.state.blendMode=Wo(e.blendMode,u.alphaMode),i.state.set(this.state),i.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},r}(Br);/*!
- * @pixi/mesh - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/mesh is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- *//*! *****************************************************************************
-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 en=function(t,r){return en=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])},en(t,r)};function Vn(t,r){en(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var hv=function(){function t(r,e){this.uvBuffer=r,this.uvMatrix=e,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}return t.prototype.update=function(r){if(!(!r&&this._bufferUpdateId===this.uvBuffer._updateID&&this._textureUpdateId===this.uvMatrix._updateID)){this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID;var e=this.uvBuffer.data;(!this.data||this.data.length!==e.length)&&(this.data=new Float32Array(e.length)),this.uvMatrix.multiplyUvs(e,this.data),this._updateID++}},t}(),Ti=new D,eo=new Cr,qe=function(t){Vn(r,t);function r(e,i,n,a){a===void 0&&(a=vt.TRIANGLES);var s=t.call(this)||this;return s.geometry=e,s.shader=i,s.state=n||ue.for2d(),s.drawMode=a,s.start=0,s.size=0,s.uvs=null,s.indices=null,s.vertexData=new Float32Array(1),s.vertexDirty=-1,s._transformID=-1,s._roundPixels=N.ROUND_PIXELS,s.batchUvs=null,s}return Object.defineProperty(r.prototype,"geometry",{get:function(){return this._geometry},set:function(e){this._geometry!==e&&(this._geometry&&(this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose()),this._geometry=e,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"uvBuffer",{get:function(){return this.geometry.buffers[1]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"verticesBuffer",{get:function(){return this.geometry.buffers[0]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"material",{get:function(){return this.shader},set:function(e){this.shader=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(e){this.state.blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(e){this._roundPixels!==e&&(this._transformID=-1),this._roundPixels=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tint",{get:function(){return"tint"in this.shader?this.shader.tint:null},set:function(e){this.shader.tint=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"texture",{get:function(){return"texture"in this.shader?this.shader.texture:null},set:function(e){this.shader.texture=e},enumerable:!1,configurable:!0}),r.prototype._render=function(e){var i=this.geometry.buffers[0].data,n=this.shader;n.batchable&&this.drawMode===vt.TRIANGLES&&i.length<r.BATCHABLE_SIZE*2?this._renderToBatch(e):this._renderDefault(e)},r.prototype._renderDefault=function(e){var i=this.shader;i.alpha=this.worldAlpha,i.update&&i.update(),e.batch.flush(),i.uniforms.translationMatrix=this.transform.worldTransform.toArray(!0),e.shader.bind(i),e.state.set(this.state),e.geometry.bind(this.geometry,i),e.geometry.draw(this.drawMode,this.size,this.start,this.geometry.instanceCount)},r.prototype._renderToBatch=function(e){var i=this.geometry,n=this.shader;n.uvMatrix&&(n.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=i.indexBuffer.data,this._tintRGB=n._tintRGB,this._texture=n.texture;var a=this.material.pluginName;e.batch.setObjectRenderer(e.plugins[a]),e.plugins[a].render(this)},r.prototype.calculateVertices=function(){var e=this.geometry,i=e.buffers[0],n=i.data,a=i._updateID;if(!(a===this.vertexDirty&&this._transformID===this.transform._worldID)){this._transformID=this.transform._worldID,this.vertexData.length!==n.length&&(this.vertexData=new Float32Array(n.length));for(var s=this.transform.worldTransform,o=s.a,h=s.b,u=s.c,l=s.d,c=s.tx,f=s.ty,d=this.vertexData,p=0;p<d.length/2;p++){var v=n[p*2],_=n[p*2+1];d[p*2]=o*v+u*_+c,d[p*2+1]=h*v+l*_+f}if(this._roundPixels)for(var m=N.RESOLUTION,p=0;p<d.length;++p)d[p]=Math.round((d[p]*m|0)/m);this.vertexDirty=a}},r.prototype.calculateUvs=function(){var e=this.geometry.buffers[1],i=this.shader;i.uvMatrix.isSimple?this.uvs=e.data:(this.batchUvs||(this.batchUvs=new hv(e,i.uvMatrix)),this.batchUvs.update(),this.uvs=this.batchUvs.data)},r.prototype._calculateBounds=function(){this.calculateVertices(),this._bounds.addVertexData(this.vertexData,0,this.vertexData.length)},r.prototype.containsPoint=function(e){if(!this.getBounds().contains(e.x,e.y))return!1;this.worldTransform.applyInverse(e,Ti);for(var i=this.geometry.getBuffer("aVertexPosition").data,n=eo.points,a=this.geometry.getIndex().data,s=a.length,o=this.drawMode===4?3:1,h=0;h+2<s;h+=o){var u=a[h]*2,l=a[h+1]*2,c=a[h+2]*2;if(n[0]=i[u],n[1]=i[u+1],n[2]=i[l],n[3]=i[l+1],n[4]=i[c],n[5]=i[c+1],eo.contains(Ti.x,Ti.y))return!0}return!1},r.prototype.destroy=function(e){t.prototype.destroy.call(this,e),this._cachedTexture&&(this._cachedTexture.destroy(),this._cachedTexture=null),this.geometry=null,this.shader=null,this.state=null,this.uvs=null,this.indices=null,this.vertexData=null},r.BATCHABLE_SIZE=100,r}(wt),uv=`varying vec2 vTextureCoord;
-uniform vec4 uColor;
-
-uniform sampler2D uSampler;
-
-void main(void)
-{
-    gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;
-}
-`,lv=`attribute vec2 aVertexPosition;
-attribute vec2 aTextureCoord;
-
-uniform mat3 projectionMatrix;
-uniform mat3 translationMatrix;
-uniform mat3 uTextureMatrix;
-
-varying vec2 vTextureCoord;
-
-void main(void)
-{
-    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
-
-    vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
-}
-`,Ke=function(t){Vn(r,t);function r(e,i){var n=this,a={uSampler:e,alpha:1,uTextureMatrix:Q.IDENTITY,uColor:new Float32Array([1,1,1,1])};return i=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},i),i.uniforms&&Object.assign(a,i.uniforms),n=t.call(this,i.program||tr.from(lv,uv),a)||this,n._colorDirty=!1,n.uvMatrix=new _n(e),n.batchable=i.program===void 0,n.pluginName=i.pluginName,n.tint=i.tint,n.alpha=i.alpha,n}return Object.defineProperty(r.prototype,"texture",{get:function(){return this.uniforms.uSampler},set:function(e){this.uniforms.uSampler!==e&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!e.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=e,this.uvMatrix.texture=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"alpha",{get:function(){return this._alpha},set:function(e){e!==this._alpha&&(this._alpha=e,this._colorDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tint",{get:function(){return this._tint},set:function(e){e!==this._tint&&(this._tint=e,this._tintRGB=(e>>16)+(e&65280)+((e&255)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),r.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var e=this.texture.baseTexture;Yo(this._tint,this._alpha,this.uniforms.uColor,e.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},r}(Wt),kr=function(t){Vn(r,t);function r(e,i,n){var a=t.call(this)||this,s=new it(e),o=new it(i,!0),h=new it(n,!0,!0);return a.addAttribute("aVertexPosition",s,2,!1,O.FLOAT).addAttribute("aTextureCoord",o,2,!1,O.FLOAT).addIndex(h),a._updateId=-1,a}return Object.defineProperty(r.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),r}(Qe);/*!
- * @pixi/text-bitmap - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/text-bitmap is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- *//*! *****************************************************************************
-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 rn=function(t,r){return rn=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])},rn(t,r)};function fv(t,r){rn(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var Gr=function(){function t(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}return t}(),cv=function(){function t(){}return t.test=function(r){return typeof r=="string"&&r.indexOf("info face=")===0},t.parse=function(r){var e=r.match(/^[a-z]+\s+.+$/gm),i={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(var n in e){var a=e[n].match(/^[a-z]+/gm)[0],s=e[n].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),o={};for(var h in s){var u=s[h].split("="),l=u[0],c=u[1].replace(/"/gm,""),f=parseFloat(c),d=isNaN(f)?c:f;o[l]=d}i[a].push(o)}var p=new Gr;return i.info.forEach(function(v){return p.info.push({face:v.face,size:parseInt(v.size,10)})}),i.common.forEach(function(v){return p.common.push({lineHeight:parseInt(v.lineHeight,10)})}),i.page.forEach(function(v){return p.page.push({id:parseInt(v.id,10),file:v.file})}),i.char.forEach(function(v){return p.char.push({id:parseInt(v.id,10),page:parseInt(v.page,10),x:parseInt(v.x,10),y:parseInt(v.y,10),width:parseInt(v.width,10),height:parseInt(v.height,10),xoffset:parseInt(v.xoffset,10),yoffset:parseInt(v.yoffset,10),xadvance:parseInt(v.xadvance,10)})}),i.kerning.forEach(function(v){return p.kerning.push({first:parseInt(v.first,10),second:parseInt(v.second,10),amount:parseInt(v.amount,10)})}),i.distanceField.forEach(function(v){return p.distanceField.push({distanceRange:parseInt(v.distanceRange,10),fieldType:v.fieldType})}),p},t}(),nn=function(){function t(){}return t.test=function(r){return r instanceof XMLDocument&&r.getElementsByTagName("page").length&&r.getElementsByTagName("info")[0].getAttribute("face")!==null},t.parse=function(r){for(var e=new Gr,i=r.getElementsByTagName("info"),n=r.getElementsByTagName("common"),a=r.getElementsByTagName("page"),s=r.getElementsByTagName("char"),o=r.getElementsByTagName("kerning"),h=r.getElementsByTagName("distanceField"),u=0;u<i.length;u++)e.info.push({face:i[u].getAttribute("face"),size:parseInt(i[u].getAttribute("size"),10)});for(var u=0;u<n.length;u++)e.common.push({lineHeight:parseInt(n[u].getAttribute("lineHeight"),10)});for(var u=0;u<a.length;u++)e.page.push({id:parseInt(a[u].getAttribute("id"),10)||0,file:a[u].getAttribute("file")});for(var u=0;u<s.length;u++){var l=s[u];e.char.push({id:parseInt(l.getAttribute("id"),10),page:parseInt(l.getAttribute("page"),10)||0,x:parseInt(l.getAttribute("x"),10),y:parseInt(l.getAttribute("y"),10),width:parseInt(l.getAttribute("width"),10),height:parseInt(l.getAttribute("height"),10),xoffset:parseInt(l.getAttribute("xoffset"),10),yoffset:parseInt(l.getAttribute("yoffset"),10),xadvance:parseInt(l.getAttribute("xadvance"),10)})}for(var u=0;u<o.length;u++)e.kerning.push({first:parseInt(o[u].getAttribute("first"),10),second:parseInt(o[u].getAttribute("second"),10),amount:parseInt(o[u].getAttribute("amount"),10)});for(var u=0;u<h.length;u++)e.distanceField.push({fieldType:h[u].getAttribute("fieldType"),distanceRange:parseInt(h[u].getAttribute("distanceRange"),10)});return e},t}(),dv=function(){function t(){}return t.test=function(r){if(typeof r=="string"&&r.indexOf("<font>")>-1){var e=new globalThis.DOMParser().parseFromString(r,"text/xml");return nn.test(e)}return!1},t.parse=function(r){var e=new globalThis.DOMParser().parseFromString(r,"text/xml");return nn.parse(e)},t}(),xi=[cv,nn,dv];function Nh(t){for(var r=0;r<xi.length;r++)if(xi[r].test(t))return xi[r];return null}function pv(t,r,e,i,n,a){var s=e.fill;if(Array.isArray(s)){if(s.length===1)return s[0]}else return s;var o,h=e.dropShadow?e.dropShadowDistance:0,u=e.padding||0,l=t.width/i-h-u*2,c=t.height/i-h-u*2,f=s.slice(),d=e.fillGradientStops.slice();if(!d.length)for(var p=f.length+1,v=1;v<p;++v)d.push(v/p);if(f.unshift(s[0]),d.unshift(0),f.push(s[s.length-1]),d.push(1),e.fillGradientType===$e.LINEAR_VERTICAL){o=r.createLinearGradient(l/2,u,l/2,c+u);for(var _=0,m=a.fontProperties.fontSize+e.strokeThickness,T=m/c,v=0;v<n.length;v++)for(var x=a.lineHeight*v,E=0;E<f.length;E++){var g=0;typeof d[E]=="number"?g=d[E]:g=E/f.length;var y=x/c+g*T,b=Math.max(_,y);b=Math.min(b,1),o.addColorStop(b,f[E]),_=b}}else{o=r.createLinearGradient(u,c/2,l+u,c/2);for(var C=f.length+1,I=1,v=0;v<f.length;v++){var w=void 0;typeof d[v]=="number"?w=d[v]:w=I/C,o.addColorStop(w,f[v]),I++}}return o}function vv(t,r,e,i,n,a,s){var o=e.text,h=e.fontProperties;r.translate(i,n),r.scale(a,a);var u=s.strokeThickness/2,l=-(s.strokeThickness/2);if(r.font=s.toFontString(),r.lineWidth=s.strokeThickness,r.textBaseline=s.textBaseline,r.lineJoin=s.lineJoin,r.miterLimit=s.miterLimit,r.fillStyle=pv(t,r,s,a,[o],e),r.strokeStyle=s.stroke,s.dropShadow){var c=s.dropShadowColor,f=Re(typeof c=="number"?c:jo(c)),d=s.dropShadowBlur*a,p=s.dropShadowDistance*a;r.shadowColor="rgba("+f[0]*255+","+f[1]*255+","+f[2]*255+","+s.dropShadowAlpha+")",r.shadowBlur=d,r.shadowOffsetX=Math.cos(s.dropShadowAngle)*p,r.shadowOffsetY=Math.sin(s.dropShadowAngle)*p}else r.shadowColor="black",r.shadowBlur=0,r.shadowOffsetX=0,r.shadowOffsetY=0;s.stroke&&s.strokeThickness&&r.strokeText(o,u,l+e.lineHeight-h.descent),s.fill&&r.fillText(o,u,l+e.lineHeight-h.descent),r.setTransform(1,0,0,1,0,0),r.fillStyle="rgba(0, 0, 0, 0)"}function Ah(t){return Array.from?Array.from(t):t.split("")}function _v(t){typeof t=="string"&&(t=[t]);for(var r=[],e=0,i=t.length;e<i;e++){var n=t[e];if(Array.isArray(n)){if(n.length!==2)throw new Error("[BitmapFont]: Invalid character range length, expecting 2 got "+n.length+".");var a=n[0].charCodeAt(0),s=n[1].charCodeAt(0);if(s<a)throw new Error("[BitmapFont]: Invalid character range.");for(var o=a,h=s;o<=h;o++)r.push(String.fromCharCode(o))}else r.push.apply(r,Ah(n))}if(r.length===0)throw new Error("[BitmapFont]: Empty set when resolving characters.");return r}function wr(t){return t.codePointAt?t.codePointAt(0):t.charCodeAt(0)}var ge=function(){function t(r,e,i){var n,a,s=r.info[0],o=r.common[0],h=r.page[0],u=r.distanceField[0],l=Ur(h.file),c={};this._ownsTextures=i,this.font=s.face,this.size=s.size,this.lineHeight=o.lineHeight/l,this.chars={},this.pageTextures=c;for(var f=0;f<r.page.length;f++){var d=r.page[f],p=d.id,v=d.file;c[p]=e instanceof Array?e[f]:e[v],(u==null?void 0:u.fieldType)&&u.fieldType!=="none"&&(c[p].baseTexture.alphaMode=_t.NO_PREMULTIPLIED_ALPHA)}for(var f=0;f<r.char.length;f++){var _=r.char[f],p=_.id,m=_.page,T=r.char[f],x=T.x,E=T.y,g=T.width,y=T.height,b=T.xoffset,C=T.yoffset,I=T.xadvance;x/=l,E/=l,g/=l,y/=l,b/=l,C/=l,I/=l;var w=new M(x+c[m].frame.x/l,E+c[m].frame.y/l,g,y);this.chars[p]={xOffset:b,yOffset:C,xAdvance:I,kerning:{},texture:new F(c[m].baseTexture,w),page:m}}for(var f=0;f<r.kerning.length;f++){var S=r.kerning[f],G=S.first,X=S.second,rt=S.amount;G/=l,X/=l,rt/=l,this.chars[X]&&(this.chars[X].kerning[G]=rt)}this.distanceFieldRange=u==null?void 0:u.distanceRange,this.distanceFieldType=(a=(n=u==null?void 0:u.fieldType)===null||n===void 0?void 0:n.toLowerCase())!==null&&a!==void 0?a:"none"}return t.prototype.destroy=function(){for(var r in this.chars)this.chars[r].texture.destroy(),this.chars[r].texture=null;for(var r in this.pageTextures)this._ownsTextures&&this.pageTextures[r].destroy(!0),this.pageTextures[r]=null;this.chars=null,this.pageTextures=null},t.install=function(r,e,i){var n;if(r instanceof Gr)n=r;else{var a=Nh(r);if(!a)throw new Error("Unrecognized data format for font.");n=a.parse(r)}e instanceof F&&(e=[e]);var s=new t(n,e,i);return t.available[s.font]=s,s},t.uninstall=function(r){var e=t.available[r];if(!e)throw new Error("No font found named '"+r+"'");e.destroy(),delete t.available[r]},t.from=function(r,e,i){if(!r)throw new Error("[BitmapFont] Property `name` is required.");var n=Object.assign({},t.defaultOptions,i),a=n.chars,s=n.padding,o=n.resolution,h=n.textureWidth,u=n.textureHeight,l=_v(a),c=e instanceof Ce?e:new Ce(e),f=h,d=new Gr;d.info[0]={face:c.fontFamily,size:c.fontSize},d.common[0]={lineHeight:c.fontSize};for(var p=0,v=0,_,m,T,x=0,E=[],g=0;g<l.length;g++){_||(_=document.createElement("canvas"),_.width=h,_.height=u,m=_.getContext("2d"),T=new H(_,{resolution:o}),E.push(new F(T)),d.page.push({id:E.length-1,file:""}));var y=Pt.measureText(l[g],c,!1,_),b=y.width,C=Math.ceil(y.height),I=Math.ceil((c.fontStyle==="italic"?2:1)*b);if(v>=u-C*o){if(v===0)throw new Error("[BitmapFont] textureHeight "+u+"px is "+("too small for "+c.fontSize+"px fonts"));--g,_=null,m=null,T=null,v=0,p=0,x=0;continue}if(x=Math.max(C+y.fontProperties.descent,x),I*o+p>=f){--g,v+=x*o,v=Math.ceil(v),p=0,x=0;continue}vv(_,m,y,p,v,o,c);var w=wr(y.text);d.char.push({id:w,page:E.length-1,x:p/o,y:v/o,width:I,height:C,xoffset:0,yoffset:0,xadvance:Math.ceil(b-(c.dropShadow?c.dropShadowDistance:0)-(c.stroke?c.strokeThickness:0))}),p+=(I+2*s)*o,p=Math.ceil(p)}for(var g=0,S=l.length;g<S;g++)for(var G=l[g],X=0;X<S;X++){var rt=l[X],A=m.measureText(G).width,U=m.measureText(rt).width,k=m.measureText(G+rt).width,nt=k-(A+U);nt&&d.kerning.push({first:wr(G),second:wr(rt),amount:nt})}var j=new t(d,E,!0);return t.available[r]!==void 0&&t.uninstall(r),t.available[r]=j,j},t.ALPHA=[["a","z"],["A","Z"]," "],t.NUMERIC=[["0","9"]],t.ALPHANUMERIC=[["a","z"],["A","Z"],["0","9"]," "],t.ASCII=[[" ","~"]],t.defaultOptions={resolution:1,textureWidth:512,textureHeight:512,padding:4,chars:t.ALPHANUMERIC},t.available={},t}(),mv=`// Pixi texture info\r
-varying vec2 vTextureCoord;\r
-uniform sampler2D uSampler;\r
-\r
-// Tint\r
-uniform vec4 uColor;\r
-\r
-// on 2D applications fwidth is screenScale / glyphAtlasScale * distanceFieldRange\r
-uniform float uFWidth;\r
-\r
-void main(void) {\r
-\r
-  // To stack MSDF and SDF we need a non-pre-multiplied-alpha texture.\r
-  vec4 texColor = texture2D(uSampler, vTextureCoord);\r
-\r
-  // MSDF\r
-  float median = texColor.r + texColor.g + texColor.b -\r
-                  min(texColor.r, min(texColor.g, texColor.b)) -\r
-                  max(texColor.r, max(texColor.g, texColor.b));\r
-  // SDF\r
-  median = min(median, texColor.a);\r
-\r
-  float screenPxDistance = uFWidth * (median - 0.5);\r
-  float alpha = clamp(screenPxDistance + 0.5, 0.0, 1.0);\r
-\r
-  // NPM Textures, NPM outputs\r
-  gl_FragColor = vec4(uColor.rgb, uColor.a * alpha);\r
-\r
-}\r
-`,yv=`// Mesh material default fragment\r
-attribute vec2 aVertexPosition;\r
-attribute vec2 aTextureCoord;\r
-\r
-uniform mat3 projectionMatrix;\r
-uniform mat3 translationMatrix;\r
-uniform mat3 uTextureMatrix;\r
-\r
-varying vec2 vTextureCoord;\r
-\r
-void main(void)\r
-{\r
-    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\r
-\r
-    vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\r
-}\r
-`,gv=[],Tv=[],ro=[];(function(t){fv(r,t);function r(e,i){i===void 0&&(i={});var n=t.call(this)||this;n._tint=16777215;var a=Object.assign({},r.styleDefaults,i),s=a.align,o=a.tint,h=a.maxWidth,u=a.letterSpacing,l=a.fontName,c=a.fontSize;if(!ge.available[l])throw new Error('Missing BitmapFont "'+l+'"');return n._activePagesMeshData=[],n._textWidth=0,n._textHeight=0,n._align=s,n._tint=o,n._fontName=l,n._fontSize=c||ge.available[l].size,n.text=e,n._maxWidth=h,n._maxLineHeight=0,n._letterSpacing=u,n._anchor=new be(function(){n.dirty=!0},n,0,0),n._roundPixels=N.ROUND_PIXELS,n.dirty=!0,n._resolution=N.RESOLUTION,n._autoResolution=!0,n._textureCache={},n}return r.prototype.updateText=function(){for(var e,i=ge.available[this._fontName],n=this._fontSize/i.size,a=new D,s=[],o=[],h=[],u=this._text.replace(/(?:\r\n|\r)/g,`
-`)||" ",l=Ah(u),c=this._maxWidth*i.size/this._fontSize,f=i.distanceFieldType==="none"?gv:Tv,d=null,p=0,v=0,_=0,m=-1,T=0,x=0,E=0,g=0,y=0;y<l.length;y++){var b=l[y],C=wr(b);if(/(?:\s)/.test(b)&&(m=y,T=p,g++),b==="\r"||b===`
-`){o.push(p),h.push(-1),v=Math.max(v,p),++_,++x,a.x=0,a.y+=i.lineHeight,d=null,g=0;continue}var I=i.chars[C];if(!!I){d&&I.kerning[d]&&(a.x+=I.kerning[d]);var w=ro.pop()||{texture:F.EMPTY,line:0,charCode:0,prevSpaces:0,position:new D};w.texture=I.texture,w.line=_,w.charCode=C,w.position.x=a.x+I.xOffset+this._letterSpacing/2,w.position.y=a.y+I.yOffset,w.prevSpaces=g,s.push(w),p=w.position.x+Math.max(I.xAdvance,I.texture.orig.width),a.x+=I.xAdvance+this._letterSpacing,E=Math.max(E,I.yOffset+I.texture.height),d=C,m!==-1&&c>0&&a.x>c&&(++x,Gt(s,1+m-x,1+y-m),y=m,m=-1,o.push(T),h.push(s.length>0?s[s.length-1].prevSpaces:0),v=Math.max(v,T),_++,a.x=0,a.y+=i.lineHeight,d=null,g=0)}}var S=l[l.length-1];S!=="\r"&&S!==`
-`&&(/(?:\s)/.test(S)&&(p=T),o.push(p),v=Math.max(v,p),h.push(-1));for(var G=[],y=0;y<=_;y++){var X=0;this._align==="right"?X=v-o[y]:this._align==="center"?X=(v-o[y])/2:this._align==="justify"&&(X=h[y]<0?0:(v-o[y])/h[y]),G.push(X)}for(var rt=s.length,A={},U=[],k=this._activePagesMeshData,y=0;y<k.length;y++)f.push(k[y]);for(var y=0;y<rt;y++){var nt=s[y].texture,j=nt.baseTexture.uid;if(!A[j]){var L=f.pop();if(!L){var yt=new kr,Ht=void 0,Nt=void 0;i.distanceFieldType==="none"?(Ht=new Ke(F.EMPTY),Nt=P.NORMAL):(Ht=new Ke(F.EMPTY,{program:tr.from(yv,mv),uniforms:{uFWidth:0}}),Nt=P.NORMAL_NPM);var Ae=new qe(yt,Ht);Ae.blendMode=Nt,L={index:0,indexCount:0,vertexCount:0,uvsCount:0,total:0,mesh:Ae,vertices:null,uvs:null,indices:null}}L.index=0,L.indexCount=0,L.vertexCount=0,L.uvsCount=0,L.total=0;var le=this._textureCache;le[j]=le[j]||new F(nt.baseTexture),L.mesh.texture=le[j],L.mesh.tint=this._tint,U.push(L),A[j]=L}A[j].total++}for(var y=0;y<k.length;y++)U.indexOf(k[y])===-1&&this.removeChild(k[y].mesh);for(var y=0;y<U.length;y++)U[y].mesh.parent!==this&&this.addChild(U[y].mesh);this._activePagesMeshData=U;for(var y in A){var L=A[y],gt=L.total;if(!(((e=L.indices)===null||e===void 0?void 0:e.length)>6*gt)||L.vertices.length<qe.BATCHABLE_SIZE*2)L.vertices=new Float32Array(4*2*gt),L.uvs=new Float32Array(4*2*gt),L.indices=new Uint16Array(6*gt);else for(var fe=L.total,ce=L.vertices,lt=fe*4*2;lt<ce.length;lt++)ce[lt]=0;L.mesh.size=6*gt}for(var y=0;y<rt;y++){var b=s[y],ft=b.position.x+G[b.line]*(this._align==="justify"?b.prevSpaces:1);this._roundPixels&&(ft=Math.round(ft));var ht=ft*n,ut=b.position.y*n,nt=b.texture,q=A[nt.baseTexture.uid],qt=nt.frame,Tt=nt._uvs,V=q.index++;q.indices[V*6+0]=0+V*4,q.indices[V*6+1]=1+V*4,q.indices[V*6+2]=2+V*4,q.indices[V*6+3]=0+V*4,q.indices[V*6+4]=2+V*4,q.indices[V*6+5]=3+V*4,q.vertices[V*8+0]=ht,q.vertices[V*8+1]=ut,q.vertices[V*8+2]=ht+qt.width*n,q.vertices[V*8+3]=ut,q.vertices[V*8+4]=ht+qt.width*n,q.vertices[V*8+5]=ut+qt.height*n,q.vertices[V*8+6]=ht,q.vertices[V*8+7]=ut+qt.height*n,q.uvs[V*8+0]=Tt.x0,q.uvs[V*8+1]=Tt.y0,q.uvs[V*8+2]=Tt.x1,q.uvs[V*8+3]=Tt.y1,q.uvs[V*8+4]=Tt.x2,q.uvs[V*8+5]=Tt.y2,q.uvs[V*8+6]=Tt.x3,q.uvs[V*8+7]=Tt.y3}this._textWidth=v*n,this._textHeight=(a.y+i.lineHeight)*n;for(var y in A){var L=A[y];if(this.anchor.x!==0||this.anchor.y!==0)for(var xt=0,de=this._textWidth*this.anchor.x,rr=this._textHeight*this.anchor.y,jn=0;jn<L.total;jn++)L.vertices[xt++]-=de,L.vertices[xt++]-=rr,L.vertices[xt++]-=de,L.vertices[xt++]-=rr,L.vertices[xt++]-=de,L.vertices[xt++]-=rr,L.vertices[xt++]-=de,L.vertices[xt++]-=rr;this._maxLineHeight=E*n;var zn=L.mesh.geometry.getBuffer("aVertexPosition"),Wn=L.mesh.geometry.getBuffer("aTextureCoord"),Yn=L.mesh.geometry.getIndex();zn.data=L.vertices,Wn.data=L.uvs,Yn.data=L.indices,zn.update(),Wn.update(),Yn.update()}for(var y=0;y<s.length;y++)ro.push(s[y])},r.prototype.updateTransform=function(){this.validate(),this.containerUpdateTransform()},r.prototype._render=function(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0);var i=ge.available[this._fontName],n=i.distanceFieldRange,a=i.distanceFieldType,s=i.size;if(a!=="none")for(var o=this.worldTransform,h=o.a,u=o.b,l=o.c,c=o.d,f=Math.sqrt(h*h+u*u),d=Math.sqrt(l*l+c*c),p=(Math.abs(f)+Math.abs(d))/2,v=this._fontSize/s,_=0,m=this._activePagesMeshData;_<m.length;_++){var T=m[_];T.mesh.shader.uniforms.uFWidth=p*n*v*this._resolution}t.prototype._render.call(this,e)},r.prototype.getLocalBounds=function(){return this.validate(),t.prototype.getLocalBounds.call(this)},r.prototype.validate=function(){this.dirty&&(this.updateText(),this.dirty=!1)},Object.defineProperty(r.prototype,"tint",{get:function(){return this._tint},set:function(e){if(this._tint!==e){this._tint=e;for(var i=0;i<this._activePagesMeshData.length;i++)this._activePagesMeshData[i].mesh.tint=e}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"align",{get:function(){return this._align},set:function(e){this._align!==e&&(this._align=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"fontName",{get:function(){return this._fontName},set:function(e){if(!ge.available[e])throw new Error('Missing BitmapFont "'+e+'"');this._fontName!==e&&(this._fontName=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"fontSize",{get:function(){return this._fontSize},set:function(e){this._fontSize!==e&&(this._fontSize=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"anchor",{get:function(){return this._anchor},set:function(e){typeof e=="number"?this._anchor.set(e):this._anchor.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"text",{get:function(){return this._text},set:function(e){e=String(e==null?"":e),this._text!==e&&(this._text=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"maxWidth",{get:function(){return this._maxWidth},set:function(e){this._maxWidth!==e&&(this._maxWidth=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"maxLineHeight",{get:function(){return this.validate(),this._maxLineHeight},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"textWidth",{get:function(){return this.validate(),this._textWidth},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(e){e!==this._roundPixels&&(this._roundPixels=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"textHeight",{get:function(){return this.validate(),this._textHeight},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"resolution",{get:function(){return this._resolution},set:function(e){this._autoResolution=!1,this._resolution!==e&&(this._resolution=e,this.dirty=!0)},enumerable:!1,configurable:!0}),r.prototype.destroy=function(e){var i=this._textureCache;for(var n in i){var a=i[n];a.destroy(),delete i[n]}this._textureCache=null,t.prototype.destroy.call(this,e)},r.styleDefaults={align:"left",tint:16777215,maxWidth:0,letterSpacing:0},r})(wt);var u_=function(){function t(){}return t.add=function(){J.setExtensionXhrType("fnt",J.XHR_RESPONSE_TYPE.TEXT)},t.use=function(r,e){var i=Nh(r.data);if(!i){e();return}for(var n=t.getBaseUrl(this,r),a=i.parse(r.data),s={},o=function(v){s[v.metadata.pageFile]=v.texture,Object.keys(s).length===a.page.length&&(r.bitmapFont=ge.install(a,s,!0),e())},h=0;h<a.page.length;++h){var u=a.page[h].file,l=n+u,c=!1;for(var f in this.resources){var d=this.resources[f];if(d.url===l){d.metadata.pageFile=u,d.texture?o(d):d.onAfterMiddleware.add(o),c=!0;break}}if(!c){var p={crossOrigin:r.crossOrigin,loadType:J.LOAD_TYPE.IMAGE,metadata:Object.assign({pageFile:u},r.metadata.imageMetadata),parentResource:r};this.add(l,p,o)}}},t.getBaseUrl=function(r,e){var i=e.isDataUrl?"":t.dirname(e.url);return e.isDataUrl&&(i==="."&&(i=""),r.baseUrl&&i&&r.baseUrl.charAt(r.baseUrl.length-1)==="/"&&(i+="/")),i=i.replace(r.baseUrl,""),i&&i.charAt(i.length-1)!=="/"&&(i+="/"),i},t.dirname=function(r){var e=r.replace(/\\/g,"/").replace(/\/$/,"").replace(/\/[^\/]*$/,"");return e===r?".":e===""?"/":e},t}();/*!
- * @pixi/filter-alpha - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/filter-alpha is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- *//*! *****************************************************************************
-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 an=function(t,r){return an=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])},an(t,r)};function xv(t,r){an(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var bv=`varying vec2 vTextureCoord;
-
-uniform sampler2D uSampler;
-uniform float uAlpha;
-
-void main(void)
-{
-   gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;
-}
-`;(function(t){xv(r,t);function r(e){e===void 0&&(e=1);var i=t.call(this,fd,bv,{uAlpha:1})||this;return i.alpha=e,i}return Object.defineProperty(r.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(e){this.uniforms.uAlpha=e},enumerable:!1,configurable:!0}),r})($t);/*!
- * @pixi/filter-blur - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/filter-blur is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- *//*! *****************************************************************************
-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 sn=function(t,r){return sn=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])},sn(t,r)};function Uh(t,r){sn(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var Iv=`
-    attribute vec2 aVertexPosition;
-
-    uniform mat3 projectionMatrix;
-
-    uniform float strength;
-
-    varying vec2 vBlurTexCoords[%size%];
-
-    uniform vec4 inputSize;
-    uniform vec4 outputFrame;
-
-    vec4 filterVertexPosition( void )
-    {
-        vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
-
-        return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
-    }
-
-    vec2 filterTextureCoord( void )
-    {
-        return aVertexPosition * (outputFrame.zw * inputSize.zw);
-    }
-
-    void main(void)
-    {
-        gl_Position = filterVertexPosition();
-
-        vec2 textureCoord = filterTextureCoord();
-        %blur%
-    }`;function Ev(t,r){var e=Math.ceil(t/2),i=Iv,n="",a;r?a="vBlurTexCoords[%index%] =  textureCoord + vec2(%sampleIndex% * strength, 0.0);":a="vBlurTexCoords[%index%] =  textureCoord + vec2(0.0, %sampleIndex% * strength);";for(var s=0;s<t;s++){var o=a.replace("%index%",s.toString());o=o.replace("%sampleIndex%",s-(e-1)+".0"),n+=o,n+=`
-`}return i=i.replace("%blur%",n),i=i.replace("%size%",t.toString()),i}var Rv={5:[.153388,.221461,.250301],7:[.071303,.131514,.189879,.214607],9:[.028532,.067234,.124009,.179044,.20236],11:[.0093,.028002,.065984,.121703,.175713,.198596],13:[.002406,.009255,.027867,.065666,.121117,.174868,.197641],15:[489e-6,.002403,.009246,.02784,.065602,.120999,.174697,.197448]},Cv=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{","    gl_FragColor = vec4(0.0);","    %blur%","}"].join(`
-`);function wv(t){for(var r=Rv[t],e=r.length,i=Cv,n="",a="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;",s,o=0;o<t;o++){var h=a.replace("%index%",o.toString());s=o,o>=e&&(s=t-o-1),h=h.replace("%value%",r[s].toString()),n+=h,n+=`
-`}return i=i.replace("%blur%",n),i=i.replace("%size%",t.toString()),i}/*!
- * @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 io;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})(io||(io={}));var no;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(no||(no={}));var ao;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(ao||(ao={}));var so;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(so||(so={}));var oo;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(oo||(oo={}));var ho;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(ho||(ho={}));var uo;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(uo||(uo={}));var lo;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(lo||(lo={}));var fo;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(fo||(fo={}));var co;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(co||(co={}));var po;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(po||(po={}));var vo;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(vo||(vo={}));var _o;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(_o||(_o={}));var Ze;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"})(Ze||(Ze={}));var mo;(function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"})(mo||(mo={}));var yo;(function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"})(yo||(yo={}));var go;(function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"})(go||(go={}));var To;(function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"})(To||(To={}));var xo;(function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(xo||(xo={}));var bo=function(t){Uh(r,t);function r(e,i,n,a,s){i===void 0&&(i=8),n===void 0&&(n=4),a===void 0&&(a=N.FILTER_RESOLUTION),s===void 0&&(s=5);var o=this,h=Ev(s,e),u=wv(s);return o=t.call(this,h,u)||this,o.horizontal=e,o.resolution=a,o._quality=0,o.quality=n,o.blur=i,o}return r.prototype.apply=function(e,i,n,a){if(n?this.horizontal?this.uniforms.strength=1/n.width*(n.width/i.width):this.uniforms.strength=1/n.height*(n.height/i.height):this.horizontal?this.uniforms.strength=1/e.renderer.width*(e.renderer.width/i.width):this.uniforms.strength=1/e.renderer.height*(e.renderer.height/i.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)e.applyFilter(this,i,n,a);else{var s=e.getFilterTexture(),o=e.renderer,h=i,u=s;this.state.blend=!1,e.applyFilter(this,h,u,Ze.CLEAR);for(var l=1;l<this.passes-1;l++){e.bindAndClear(h,Ze.BLIT),this.uniforms.uSampler=u;var c=u;u=h,h=c,o.shader.bind(this),o.geometry.draw(5)}this.state.blend=!0,e.applyFilter(this,u,n,a),e.returnFilterTexture(s)}},Object.defineProperty(r.prototype,"blur",{get:function(){return this.strength},set:function(e){this.padding=1+Math.abs(e)*2,this.strength=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"quality",{get:function(){return this._quality},set:function(e){this._quality=e,this.passes=e},enumerable:!1,configurable:!0}),r}($t);(function(t){Uh(r,t);function r(e,i,n,a){e===void 0&&(e=8),i===void 0&&(i=4),n===void 0&&(n=N.FILTER_RESOLUTION),a===void 0&&(a=5);var s=t.call(this)||this;return s.blurXFilter=new bo(!0,e,i,n,a),s.blurYFilter=new bo(!1,e,i,n,a),s.resolution=n,s.quality=i,s.blur=e,s.repeatEdgePixels=!1,s}return r.prototype.apply=function(e,i,n,a){var s=Math.abs(this.blurXFilter.strength),o=Math.abs(this.blurYFilter.strength);if(s&&o){var h=e.getFilterTexture();this.blurXFilter.apply(e,i,h,Ze.CLEAR),this.blurYFilter.apply(e,h,n,a),e.returnFilterTexture(h)}else o?this.blurYFilter.apply(e,i,n,a):this.blurXFilter.apply(e,i,n,a)},r.prototype.updatePadding=function(){this._repeatEdgePixels?this.padding=0:this.padding=Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))*2},Object.defineProperty(r.prototype,"blur",{get:function(){return this.blurXFilter.blur},set:function(e){this.blurXFilter.blur=this.blurYFilter.blur=e,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"quality",{get:function(){return this.blurXFilter.quality},set:function(e){this.blurXFilter.quality=this.blurYFilter.quality=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"blurX",{get:function(){return this.blurXFilter.blur},set:function(e){this.blurXFilter.blur=e,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"blurY",{get:function(){return this.blurYFilter.blur},set:function(e){this.blurYFilter.blur=e,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"blendMode",{get:function(){return this.blurYFilter.blendMode},set:function(e){this.blurYFilter.blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"repeatEdgePixels",{get:function(){return this._repeatEdgePixels},set:function(e){this._repeatEdgePixels=e,this.updatePadding()},enumerable:!1,configurable:!0}),r})($t);/*!
- * @pixi/filter-color-matrix - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/filter-color-matrix is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- *//*! *****************************************************************************
-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 on=function(t,r){return on=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])},on(t,r)};function Pv(t,r){on(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var Nv=`varying vec2 vTextureCoord;
-uniform sampler2D uSampler;
-uniform float m[20];
-uniform float uAlpha;
-
-void main(void)
-{
-    vec4 c = texture2D(uSampler, vTextureCoord);
-
-    if (uAlpha == 0.0) {
-        gl_FragColor = c;
-        return;
-    }
-
-    // Un-premultiply alpha before applying the color matrix. See issue #3539.
-    if (c.a > 0.0) {
-      c.rgb /= c.a;
-    }
-
-    vec4 result;
-
-    result.r = (m[0] * c.r);
-        result.r += (m[1] * c.g);
-        result.r += (m[2] * c.b);
-        result.r += (m[3] * c.a);
-        result.r += m[4];
-
-    result.g = (m[5] * c.r);
-        result.g += (m[6] * c.g);
-        result.g += (m[7] * c.b);
-        result.g += (m[8] * c.a);
-        result.g += m[9];
-
-    result.b = (m[10] * c.r);
-       result.b += (m[11] * c.g);
-       result.b += (m[12] * c.b);
-       result.b += (m[13] * c.a);
-       result.b += m[14];
-
-    result.a = (m[15] * c.r);
-       result.a += (m[16] * c.g);
-       result.a += (m[17] * c.b);
-       result.a += (m[18] * c.a);
-       result.a += m[19];
-
-    vec3 rgb = mix(c.rgb, result.rgb, uAlpha);
-
-    // Premultiply alpha again.
-    rgb *= result.a;
-
-    gl_FragColor = vec4(rgb, result.a);
-}
-`,Io=function(t){Pv(r,t);function r(){var e=this,i={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};return e=t.call(this,fh,Nv,i)||this,e.alpha=1,e}return r.prototype._loadMatrix=function(e,i){i===void 0&&(i=!1);var n=e;i&&(this._multiply(n,this.uniforms.m,e),n=this._colorMatrix(n)),this.uniforms.m=n},r.prototype._multiply=function(e,i,n){return e[0]=i[0]*n[0]+i[1]*n[5]+i[2]*n[10]+i[3]*n[15],e[1]=i[0]*n[1]+i[1]*n[6]+i[2]*n[11]+i[3]*n[16],e[2]=i[0]*n[2]+i[1]*n[7]+i[2]*n[12]+i[3]*n[17],e[3]=i[0]*n[3]+i[1]*n[8]+i[2]*n[13]+i[3]*n[18],e[4]=i[0]*n[4]+i[1]*n[9]+i[2]*n[14]+i[3]*n[19]+i[4],e[5]=i[5]*n[0]+i[6]*n[5]+i[7]*n[10]+i[8]*n[15],e[6]=i[5]*n[1]+i[6]*n[6]+i[7]*n[11]+i[8]*n[16],e[7]=i[5]*n[2]+i[6]*n[7]+i[7]*n[12]+i[8]*n[17],e[8]=i[5]*n[3]+i[6]*n[8]+i[7]*n[13]+i[8]*n[18],e[9]=i[5]*n[4]+i[6]*n[9]+i[7]*n[14]+i[8]*n[19]+i[9],e[10]=i[10]*n[0]+i[11]*n[5]+i[12]*n[10]+i[13]*n[15],e[11]=i[10]*n[1]+i[11]*n[6]+i[12]*n[11]+i[13]*n[16],e[12]=i[10]*n[2]+i[11]*n[7]+i[12]*n[12]+i[13]*n[17],e[13]=i[10]*n[3]+i[11]*n[8]+i[12]*n[13]+i[13]*n[18],e[14]=i[10]*n[4]+i[11]*n[9]+i[12]*n[14]+i[13]*n[19]+i[14],e[15]=i[15]*n[0]+i[16]*n[5]+i[17]*n[10]+i[18]*n[15],e[16]=i[15]*n[1]+i[16]*n[6]+i[17]*n[11]+i[18]*n[16],e[17]=i[15]*n[2]+i[16]*n[7]+i[17]*n[12]+i[18]*n[17],e[18]=i[15]*n[3]+i[16]*n[8]+i[17]*n[13]+i[18]*n[18],e[19]=i[15]*n[4]+i[16]*n[9]+i[17]*n[14]+i[18]*n[19]+i[19],e},r.prototype._colorMatrix=function(e){var i=new Float32Array(e);return i[4]/=255,i[9]/=255,i[14]/=255,i[19]/=255,i},r.prototype.brightness=function(e,i){var n=[e,0,0,0,0,0,e,0,0,0,0,0,e,0,0,0,0,0,1,0];this._loadMatrix(n,i)},r.prototype.tint=function(e,i){var n=e>>16&255,a=e>>8&255,s=e&255,o=[n/255,0,0,0,0,0,a/255,0,0,0,0,0,s/255,0,0,0,0,0,1,0];this._loadMatrix(o,i)},r.prototype.greyscale=function(e,i){var n=[e,e,e,0,0,e,e,e,0,0,e,e,e,0,0,0,0,0,1,0];this._loadMatrix(n,i)},r.prototype.blackAndWhite=function(e){var i=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.hue=function(e,i){e=(e||0)/180*Math.PI;var n=Math.cos(e),a=Math.sin(e),s=Math.sqrt,o=1/3,h=s(o),u=n+(1-n)*o,l=o*(1-n)-h*a,c=o*(1-n)+h*a,f=o*(1-n)+h*a,d=n+o*(1-n),p=o*(1-n)-h*a,v=o*(1-n)-h*a,_=o*(1-n)+h*a,m=n+o*(1-n),T=[u,l,c,0,0,f,d,p,0,0,v,_,m,0,0,0,0,0,1,0];this._loadMatrix(T,i)},r.prototype.contrast=function(e,i){var n=(e||0)+1,a=-.5*(n-1),s=[n,0,0,0,a,0,n,0,0,a,0,0,n,0,a,0,0,0,1,0];this._loadMatrix(s,i)},r.prototype.saturate=function(e,i){e===void 0&&(e=0);var n=e*2/3+1,a=(n-1)*-.5,s=[n,a,a,0,0,a,n,a,0,0,a,a,n,0,0,0,0,0,1,0];this._loadMatrix(s,i)},r.prototype.desaturate=function(){this.saturate(-1)},r.prototype.negative=function(e){var i=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.sepia=function(e){var i=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.technicolor=function(e){var i=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.polaroid=function(e){var i=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.toBGR=function(e){var i=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.kodachrome=function(e){var i=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.browni=function(e){var i=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.vintage=function(e){var i=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.colorTone=function(e,i,n,a,s){e=e||.2,i=i||.15,n=n||16770432,a=a||3375104;var o=(n>>16&255)/255,h=(n>>8&255)/255,u=(n&255)/255,l=(a>>16&255)/255,c=(a>>8&255)/255,f=(a&255)/255,d=[.3,.59,.11,0,0,o,h,u,e,0,l,c,f,i,0,o-l,h-c,u-f,0,0];this._loadMatrix(d,s)},r.prototype.night=function(e,i){e=e||.1;var n=[e*-2,-e,0,0,0,-e,0,e,0,0,0,e,e*2,0,0,0,0,0,1,0];this._loadMatrix(n,i)},r.prototype.predator=function(e,i){var n=[11.224130630493164*e,-4.794486999511719*e,-2.8746118545532227*e,0*e,.40342438220977783*e,-3.6330697536468506*e,9.193157196044922*e,-2.951810836791992*e,0*e,-1.316135048866272*e,-3.2184197902679443*e,-4.2375030517578125*e,7.476448059082031*e,0*e,.8044459223747253*e,0,0,0,1,0];this._loadMatrix(n,i)},r.prototype.lsd=function(e){var i=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.reset=function(){var e=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(e,!1)},Object.defineProperty(r.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(e){this.uniforms.m=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(e){this.uniforms.uAlpha=e},enumerable:!1,configurable:!0}),r}($t);Io.prototype.grayscale=Io.prototype.greyscale;/*!
- * @pixi/filter-displacement - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/filter-displacement is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- *//*! *****************************************************************************
-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 hn=function(t,r){return hn=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])},hn(t,r)};function Av(t,r){hn(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var Uv=`varying vec2 vFilterCoord;
-varying vec2 vTextureCoord;
-
-uniform vec2 scale;
-uniform mat2 rotation;
-uniform sampler2D uSampler;
-uniform sampler2D mapSampler;
-
-uniform highp vec4 inputSize;
-uniform vec4 inputClamp;
-
-void main(void)
-{
-  vec4 map =  texture2D(mapSampler, vFilterCoord);
-
-  map -= 0.5;
-  map.xy = scale * inputSize.zw * (rotation * map.xy);
-
-  gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));
-}
-`,Ov=`attribute vec2 aVertexPosition;
-
-uniform mat3 projectionMatrix;
-uniform mat3 filterMatrix;
-
-varying vec2 vTextureCoord;
-varying vec2 vFilterCoord;
-
-uniform vec4 inputSize;
-uniform vec4 outputFrame;
-
-vec4 filterVertexPosition( void )
-{
-    vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
-
-    return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
-}
-
-vec2 filterTextureCoord( void )
-{
-    return aVertexPosition * (outputFrame.zw * inputSize.zw);
-}
-
-void main(void)
-{
-	gl_Position = filterVertexPosition();
-	vTextureCoord = filterTextureCoord();
-	vFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0)  ).xy;
-}
-`;(function(t){Av(r,t);function r(e,i){var n=this,a=new Q;return e.renderable=!1,n=t.call(this,Ov,Uv,{mapSampler:e._texture,filterMatrix:a,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this,n.maskSprite=e,n.maskMatrix=a,i==null&&(i=20),n.scale=new D(i,i),n}return r.prototype.apply=function(e,i,n,a){this.uniforms.filterMatrix=e.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var s=this.maskSprite.worldTransform,o=Math.sqrt(s.a*s.a+s.b*s.b),h=Math.sqrt(s.c*s.c+s.d*s.d);o!==0&&h!==0&&(this.uniforms.rotation[0]=s.a/o,this.uniforms.rotation[1]=s.b/o,this.uniforms.rotation[2]=s.c/h,this.uniforms.rotation[3]=s.d/h),e.applyFilter(this,i,n,a)},Object.defineProperty(r.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(e){this.uniforms.mapSampler=e},enumerable:!1,configurable:!0}),r})($t);/*!
- * @pixi/filter-fxaa - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/filter-fxaa is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- *//*! *****************************************************************************
-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 un=function(t,r){return un=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])},un(t,r)};function Sv(t,r){un(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var Lv=`
-attribute vec2 aVertexPosition;
-
-uniform mat3 projectionMatrix;
-
-varying vec2 v_rgbNW;
-varying vec2 v_rgbNE;
-varying vec2 v_rgbSW;
-varying vec2 v_rgbSE;
-varying vec2 v_rgbM;
-
-varying vec2 vFragCoord;
-
-uniform vec4 inputSize;
-uniform vec4 outputFrame;
-
-vec4 filterVertexPosition( void )
-{
-    vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
-
-    return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
-}
-
-void texcoords(vec2 fragCoord, vec2 inverseVP,
-               out vec2 v_rgbNW, out vec2 v_rgbNE,
-               out vec2 v_rgbSW, out vec2 v_rgbSE,
-               out vec2 v_rgbM) {
-    v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;
-    v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;
-    v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;
-    v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;
-    v_rgbM = vec2(fragCoord * inverseVP);
-}
-
-void main(void) {
-
-   gl_Position = filterVertexPosition();
-
-   vFragCoord = aVertexPosition * outputFrame.zw;
-
-   texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);
-}
-`,Fv=`varying vec2 v_rgbNW;
-varying vec2 v_rgbNE;
-varying vec2 v_rgbSW;
-varying vec2 v_rgbSE;
-varying vec2 v_rgbM;
-
-varying vec2 vFragCoord;
-uniform sampler2D uSampler;
-uniform highp vec4 inputSize;
-
-
-/**
- Basic FXAA implementation based on the code on geeks3d.com with the
- modification that the texture2DLod stuff was removed since it's
- unsupported by WebGL.
-
- --
-
- From:
- https://github.com/mitsuhiko/webgl-meincraft
-
- Copyright (c) 2011 by Armin Ronacher.
-
- Some rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are
- met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
-
- * The names of the contributors may not be used to endorse or
- promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef FXAA_REDUCE_MIN
-#define FXAA_REDUCE_MIN   (1.0/ 128.0)
-#endif
-#ifndef FXAA_REDUCE_MUL
-#define FXAA_REDUCE_MUL   (1.0 / 8.0)
-#endif
-#ifndef FXAA_SPAN_MAX
-#define FXAA_SPAN_MAX     8.0
-#endif
-
-//optimized version for mobile, where dependent
-//texture reads can be a bottleneck
-vec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 inverseVP,
-          vec2 v_rgbNW, vec2 v_rgbNE,
-          vec2 v_rgbSW, vec2 v_rgbSE,
-          vec2 v_rgbM) {
-    vec4 color;
-    vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;
-    vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;
-    vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;
-    vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;
-    vec4 texColor = texture2D(tex, v_rgbM);
-    vec3 rgbM  = texColor.xyz;
-    vec3 luma = vec3(0.299, 0.587, 0.114);
-    float lumaNW = dot(rgbNW, luma);
-    float lumaNE = dot(rgbNE, luma);
-    float lumaSW = dot(rgbSW, luma);
-    float lumaSE = dot(rgbSE, luma);
-    float lumaM  = dot(rgbM,  luma);
-    float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));
-    float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));
-
-    mediump vec2 dir;
-    dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));
-    dir.y =  ((lumaNW + lumaSW) - (lumaNE + lumaSE));
-
-    float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *
-                          (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);
-
-    float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);
-    dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),
-              max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),
-                  dir * rcpDirMin)) * inverseVP;
-
-    vec3 rgbA = 0.5 * (
-                       texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +
-                       texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);
-    vec3 rgbB = rgbA * 0.5 + 0.25 * (
-                                     texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +
-                                     texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);
-
-    float lumaB = dot(rgbB, luma);
-    if ((lumaB < lumaMin) || (lumaB > lumaMax))
-        color = vec4(rgbA, texColor.a);
-    else
-        color = vec4(rgbB, texColor.a);
-    return color;
-}
-
-void main() {
-
-      vec4 color;
-
-      color = fxaa(uSampler, vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);
-
-      gl_FragColor = color;
-}
-`;(function(t){Sv(r,t);function r(){return t.call(this,Lv,Fv)||this}return r})($t);/*!
- * @pixi/filter-noise - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/filter-noise is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- *//*! *****************************************************************************
-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 ln=function(t,r){return ln=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])},ln(t,r)};function Gv(t,r){ln(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var Bv=`precision highp float;
-
-varying vec2 vTextureCoord;
-varying vec4 vColor;
-
-uniform float uNoise;
-uniform float uSeed;
-uniform sampler2D uSampler;
-
-float rand(vec2 co)
-{
-    return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);
-}
-
-void main()
-{
-    vec4 color = texture2D(uSampler, vTextureCoord);
-    float randomValue = rand(gl_FragCoord.xy * uSeed);
-    float diff = (randomValue - 0.5) * uNoise;
-
-    // Un-premultiply alpha before applying the color matrix. See issue #3539.
-    if (color.a > 0.0) {
-        color.rgb /= color.a;
-    }
-
-    color.r += diff;
-    color.g += diff;
-    color.b += diff;
-
-    // Premultiply alpha again.
-    color.rgb *= color.a;
-
-    gl_FragColor = color;
-}
-`;(function(t){Gv(r,t);function r(e,i){e===void 0&&(e=.5),i===void 0&&(i=Math.random());var n=t.call(this,fh,Bv,{uNoise:0,uSeed:0})||this;return n.noise=e,n.seed=i,n}return Object.defineProperty(r.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(e){this.uniforms.uNoise=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(e){this.uniforms.uSeed=e},enumerable:!1,configurable:!0}),r})($t);/*!
- * @pixi/mixin-cache-as-bitmap - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/mixin-cache-as-bitmap is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- *//*!
- * @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 Eo;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})(Eo||(Eo={}));var Ro;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(Ro||(Ro={}));var Co;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(Co||(Co={}));var wo;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(wo||(wo={}));var Po;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(Po||(Po={}));var No;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(No||(No={}));var Ao;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(Ao||(Ao={}));var Uo;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(Uo||(Uo={}));var Oo;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(Oo||(Oo={}));var So;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(So||(So={}));var Lo;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(Lo||(Lo={}));var Fo;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(Fo||(Fo={}));var Go;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(Go||(Go={}));var Bo;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"})(Bo||(Bo={}));var Mo;(function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"})(Mo||(Mo={}));var Xo;(function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"})(Xo||(Xo={}));var ko;(function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"})(ko||(ko={}));var fn;(function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"})(fn||(fn={}));var Ho;(function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(Ho||(Ho={}));var Oh=new Q;tt.prototype._cacheAsBitmap=!1;tt.prototype._cacheData=null;tt.prototype._cacheAsBitmapResolution=null;tt.prototype._cacheAsBitmapMultisample=fn.NONE;var Mv=function(){function t(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}return t}();Object.defineProperties(tt.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(t){t!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(t){t!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(t){if(this._cacheAsBitmap!==t){this._cacheAsBitmap=t;var r;t?(this._cacheData||(this._cacheData=new Mv),r=this._cacheData,r.originalRender=this.render,r.originalRenderCanvas=this.renderCanvas,r.originalUpdateTransform=this.updateTransform,r.originalCalculateBounds=this.calculateBounds,r.originalGetLocalBounds=this.getLocalBounds,r.originalDestroy=this.destroy,r.originalContainsPoint=this.containsPoint,r.originalMask=this._mask,r.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(r=this._cacheData,r.sprite&&this._destroyCachedDisplayObject(),this.render=r.originalRender,this.renderCanvas=r.originalRenderCanvas,this.calculateBounds=r.originalCalculateBounds,this.getLocalBounds=r.originalGetLocalBounds,this.destroy=r.originalDestroy,this.updateTransform=r.originalUpdateTransform,this.containsPoint=r.originalContainsPoint,this._mask=r.originalMask,this.filterArea=r.originalFilterArea)}}}});tt.prototype._renderCached=function(r){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(r),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(r))};tt.prototype._initCachedDisplayObject=function(r){var e;if(!(this._cacheData&&this._cacheData.sprite)){var i=this.alpha;this.alpha=1,r.batch.flush();var n=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var a=this.filters[0].padding;n.pad(a)}n.ceil(N.RESOLUTION);var s=r.renderTexture.current,o=r.renderTexture.sourceFrame.clone(),h=r.renderTexture.destinationFrame.clone(),u=r.projection.transform,l=he.create({width:n.width,height:n.height,resolution:this.cacheAsBitmapResolution||r.resolution,multisample:(e=this.cacheAsBitmapMultisample)!==null&&e!==void 0?e:r.multisample}),c="cacheAsBitmap_"+oe();this._cacheData.textureCacheId=c,H.addToCache(l.baseTexture,c),F.addToCache(l,c);var f=this.transform.localTransform.copyTo(Oh).invert().translate(-n.x,-n.y);this.render=this._cacheData.originalRender,r.render(this,{renderTexture:l,clear:!0,transform:f,skipUpdateTransform:!1}),r.framebuffer.blit(),r.projection.transform=u,r.renderTexture.bind(s,o,h),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=i;var d=new Pe(l);d.transform.worldTransform=this.transform.worldTransform,d.anchor.x=-(n.x/n.width),d.anchor.y=-(n.y/n.height),d.alpha=i,d._bounds=this._bounds,this._cacheData.sprite=d,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=d.containsPoint.bind(d)}};tt.prototype._renderCachedCanvas=function(r){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(r),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(r))};tt.prototype._initCachedDisplayObjectCanvas=function(r){if(!(this._cacheData&&this._cacheData.sprite)){var e=this.getLocalBounds(null,!0),i=this.alpha;this.alpha=1;var n=r.context,a=r._projTransform;e.ceil(N.RESOLUTION);var s=he.create({width:e.width,height:e.height}),o="cacheAsBitmap_"+oe();this._cacheData.textureCacheId=o,H.addToCache(s.baseTexture,o),F.addToCache(s,o);var h=Oh;this.transform.localTransform.copyTo(h),h.invert(),h.tx-=e.x,h.ty-=e.y,this.renderCanvas=this._cacheData.originalRenderCanvas,r.render(this,{renderTexture:s,clear:!0,transform:h,skipUpdateTransform:!1}),r.context=n,r._projTransform=a,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=i;var u=new Pe(s);u.transform.worldTransform=this.transform.worldTransform,u.anchor.x=-(e.x/e.width),u.anchor.y=-(e.y/e.height),u.alpha=i,u._bounds=this._bounds,this._cacheData.sprite=u,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=r._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=u.containsPoint.bind(u)}};tt.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID};tt.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)};tt.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,H.removeFromCache(this._cacheData.textureCacheId),F.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null};tt.prototype._cacheAsBitmapDestroy=function(r){this.cacheAsBitmap=!1,this.destroy(r)};/*!
- * @pixi/mixin-get-child-by-name - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/mixin-get-child-by-name is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- */tt.prototype.name=null;wt.prototype.getChildByName=function(r,e){for(var i=0,n=this.children.length;i<n;i++)if(this.children[i].name===r)return this.children[i];if(e)for(var i=0,n=this.children.length;i<n;i++){var a=this.children[i];if(!!a.getChildByName){var s=this.children[i].getChildByName(r,!0);if(s)return s}}return null};/*!
- * @pixi/mixin-get-global-position - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/mixin-get-global-position is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- */tt.prototype.getGlobalPosition=function(r,e){return r===void 0&&(r=new D),e===void 0&&(e=!1),this.parent?this.parent.toGlobal(this.position,r,e):(r.x=this.position.x,r.y=this.position.y),r};/*!
- * @pixi/mesh-extras - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/mesh-extras is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- *//*! *****************************************************************************
-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 cn=function(t,r){return cn=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])},cn(t,r)};function Ne(t,r){cn(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var Xv=function(t){Ne(r,t);function r(e,i,n,a){e===void 0&&(e=100),i===void 0&&(i=100),n===void 0&&(n=10),a===void 0&&(a=10);var s=t.call(this)||this;return s.segWidth=n,s.segHeight=a,s.width=e,s.height=i,s.build(),s}return r.prototype.build=function(){for(var e=this.segWidth*this.segHeight,i=[],n=[],a=[],s=this.segWidth-1,o=this.segHeight-1,h=this.width/s,u=this.height/o,l=0;l<e;l++){var c=l%this.segWidth,f=l/this.segWidth|0;i.push(c*h,f*u),n.push(c/s,f/o)}for(var d=s*o,l=0;l<d;l++){var p=l%s,v=l/s|0,_=v*this.segWidth+p,m=v*this.segWidth+p+1,T=(v+1)*this.segWidth+p,x=(v+1)*this.segWidth+p+1;a.push(_,m,T,m,x,T)}this.buffers[0].data=new Float32Array(i),this.buffers[1].data=new Float32Array(n),this.indexBuffer.data=new Uint16Array(a),this.buffers[0].update(),this.buffers[1].update(),this.indexBuffer.update()},r}(kr),kv=function(t){Ne(r,t);function r(e,i,n){e===void 0&&(e=200),n===void 0&&(n=0);var a=t.call(this,new Float32Array(i.length*4),new Float32Array(i.length*4),new Uint16Array((i.length-1)*6))||this;return a.points=i,a._width=e,a.textureScale=n,a.build(),a}return Object.defineProperty(r.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),r.prototype.build=function(){var e=this.points;if(!!e){var i=this.getBuffer("aVertexPosition"),n=this.getBuffer("aTextureCoord"),a=this.getIndex();if(!(e.length<1)){i.data.length/4!==e.length&&(i.data=new Float32Array(e.length*4),n.data=new Float32Array(e.length*4),a.data=new Uint16Array((e.length-1)*6));var s=n.data,o=a.data;s[0]=0,s[1]=0,s[2]=0,s[3]=1;for(var h=0,u=e[0],l=this._width*this.textureScale,c=e.length,f=0;f<c;f++){var d=f*4;if(this.textureScale>0){var p=u.x-e[f].x,v=u.y-e[f].y,_=Math.sqrt(p*p+v*v);u=e[f],h+=_/l}else h=f/(c-1);s[d]=h,s[d+1]=0,s[d+2]=h,s[d+3]=1}for(var m=0,f=0;f<c-1;f++){var d=f*2;o[m++]=d,o[m++]=d+1,o[m++]=d+2,o[m++]=d+2,o[m++]=d+1,o[m++]=d+3}n.update(),a.update(),this.updateVertices()}}},r.prototype.updateVertices=function(){var e=this.points;if(!(e.length<1)){for(var i=e[0],n,a=0,s=0,o=this.buffers[0].data,h=e.length,u=0;u<h;u++){var l=e[u],c=u*4;u<e.length-1?n=e[u+1]:n=l,s=-(n.x-i.x),a=n.y-i.y;var f=Math.sqrt(a*a+s*s),d=this.textureScale>0?this.textureScale*this._width/2:this._width/2;a/=f,s/=f,a*=d,s*=d,o[c]=l.x+a,o[c+1]=l.y+s,o[c+2]=l.x-a,o[c+3]=l.y-s,i=l}this.buffers[0].update()}},r.prototype.update=function(){this.textureScale>0?this.build():this.updateVertices()},r}(kr);(function(t){Ne(r,t);function r(e,i,n){n===void 0&&(n=0);var a=this,s=new kv(e.height,i,n),o=new Ke(e);return n>0&&(e.baseTexture.wrapMode=Ft.REPEAT),a=t.call(this,s,o)||this,a.autoUpdate=!0,a}return r.prototype._render=function(e){var i=this.geometry;(this.autoUpdate||i._width!==this.shader.texture.height)&&(i._width=this.shader.texture.height,i.update()),t.prototype._render.call(this,e)},r})(qe);var Hv=function(t){Ne(r,t);function r(e,i,n){var a=this,s=new Xv(e.width,e.height,i,n),o=new Ke(F.WHITE);return a=t.call(this,s,o)||this,a.texture=e,a.autoResize=!0,a}return r.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var e=this.geometry,i=this.shader.texture,n=i.width,a=i.height;this.autoResize&&(e.width!==n||e.height!==a)&&(e.width=this.shader.texture.width,e.height=this.shader.texture.height,e.build())},Object.defineProperty(r.prototype,"texture",{get:function(){return this.shader.texture},set:function(e){this.shader.texture!==e&&(this.shader.texture=e,this._textureID=-1,e.baseTexture.valid?this.textureUpdated():e.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),r.prototype._render=function(e){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),t.prototype._render.call(this,e)},r.prototype.destroy=function(e){this.shader.texture.off("update",this.textureUpdated,this),t.prototype.destroy.call(this,e)},r}(qe);(function(t){Ne(r,t);function r(e,i,n,a,s){e===void 0&&(e=F.EMPTY);var o=this,h=new kr(i,n,a);h.getBuffer("aVertexPosition").static=!1;var u=new Ke(e);return o=t.call(this,h,u,null,s)||this,o.autoUpdate=!0,o}return Object.defineProperty(r.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(e){this.geometry.getBuffer("aVertexPosition").data=e},enumerable:!1,configurable:!0}),r.prototype._render=function(e){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),t.prototype._render.call(this,e)},r})(qe);var Rr=10;(function(t){Ne(r,t);function r(e,i,n,a,s){i===void 0&&(i=Rr),n===void 0&&(n=Rr),a===void 0&&(a=Rr),s===void 0&&(s=Rr);var o=t.call(this,F.WHITE,4,4)||this;return o._origWidth=e.orig.width,o._origHeight=e.orig.height,o._width=o._origWidth,o._height=o._origHeight,o._leftWidth=i,o._rightWidth=a,o._topHeight=n,o._bottomHeight=s,o.texture=e,o}return r.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(r.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(e){this.geometry.getBuffer("aVertexPosition").data=e},enumerable:!1,configurable:!0}),r.prototype.updateHorizontalVertices=function(){var e=this.vertices,i=this._getMinScale();e[9]=e[11]=e[13]=e[15]=this._topHeight*i,e[17]=e[19]=e[21]=e[23]=this._height-this._bottomHeight*i,e[25]=e[27]=e[29]=e[31]=this._height},r.prototype.updateVerticalVertices=function(){var e=this.vertices,i=this._getMinScale();e[2]=e[10]=e[18]=e[26]=this._leftWidth*i,e[4]=e[12]=e[20]=e[28]=this._width-this._rightWidth*i,e[6]=e[14]=e[22]=e[30]=this._width},r.prototype._getMinScale=function(){var e=this._leftWidth+this._rightWidth,i=this._width>e?1:this._width/e,n=this._topHeight+this._bottomHeight,a=this._height>n?1:this._height/n,s=Math.min(i,a);return s},Object.defineProperty(r.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(e){this._leftWidth=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(e){this._rightWidth=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"topHeight",{get:function(){return this._topHeight},set:function(e){this._topHeight=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(e){this._bottomHeight=e,this._refresh()},enumerable:!1,configurable:!0}),r.prototype._refresh=function(){var e=this.texture,i=this.geometry.buffers[1].data;this._origWidth=e.orig.width,this._origHeight=e.orig.height;var n=1/this._origWidth,a=1/this._origHeight;i[0]=i[8]=i[16]=i[24]=0,i[1]=i[3]=i[5]=i[7]=0,i[6]=i[14]=i[22]=i[30]=1,i[25]=i[27]=i[29]=i[31]=1,i[2]=i[10]=i[18]=i[26]=n*this._leftWidth,i[4]=i[12]=i[20]=i[28]=1-n*this._rightWidth,i[9]=i[11]=i[13]=i[15]=a*this._topHeight,i[17]=i[19]=i[21]=i[23]=1-a*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()},r})(Hv);/*!
- * @pixi/sprite-animated - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * @pixi/sprite-animated is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- *//*! *****************************************************************************
-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 dn=function(t,r){return dn=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])},dn(t,r)};function Dv(t,r){dn(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}(function(t){Dv(r,t);function r(e,i){i===void 0&&(i=!0);var n=t.call(this,e[0]instanceof F?e[0]:e[0].texture)||this;return n._textures=null,n._durations=null,n._autoUpdate=i,n._isConnectedToTicker=!1,n.animationSpeed=1,n.loop=!0,n.updateAnchor=!1,n.onComplete=null,n.onFrameChange=null,n.onLoop=null,n._currentTime=0,n._playing=!1,n._previousFrame=null,n.textures=e,n}return r.prototype.stop=function(){!this._playing||(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(at.shared.remove(this.update,this),this._isConnectedToTicker=!1))},r.prototype.play=function(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(at.shared.add(this.update,this,kt.HIGH),this._isConnectedToTicker=!0))},r.prototype.gotoAndStop=function(e){this.stop();var i=this.currentFrame;this._currentTime=e,i!==this.currentFrame&&this.updateTexture()},r.prototype.gotoAndPlay=function(e){var i=this.currentFrame;this._currentTime=e,i!==this.currentFrame&&this.updateTexture(),this.play()},r.prototype.update=function(e){if(!!this._playing){var i=this.animationSpeed*e,n=this.currentFrame;if(this._durations!==null){var a=this._currentTime%1*this._durations[this.currentFrame];for(a+=i/60*1e3;a<0;)this._currentTime--,a+=this._durations[this.currentFrame];var s=Math.sign(this.animationSpeed*e);for(this._currentTime=Math.floor(this._currentTime);a>=this._durations[this.currentFrame];)a-=this._durations[this.currentFrame]*s,this._currentTime+=s;this._currentTime+=a/this._durations[this.currentFrame]}else this._currentTime+=i;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):n!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFrame<n?this.onLoop():this.animationSpeed<0&&this.currentFrame>n&&this.onLoop()),this.updateTexture())}},r.prototype.updateTexture=function(){var e=this.currentFrame;this._previousFrame!==e&&(this._previousFrame=e,this._texture=this._textures[e],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},r.prototype.destroy=function(e){this.stop(),t.prototype.destroy.call(this,e),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},r.fromFrames=function(e){for(var i=[],n=0;n<e.length;++n)i.push(F.from(e[n]));return new r(i)},r.fromImages=function(e){for(var i=[],n=0;n<e.length;++n)i.push(F.from(e[n]));return new r(i)},Object.defineProperty(r.prototype,"totalFrames",{get:function(){return this._textures.length},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"textures",{get:function(){return this._textures},set:function(e){if(e[0]instanceof F)this._textures=e,this._durations=null;else{this._textures=[],this._durations=[];for(var i=0;i<e.length;i++)this._textures.push(e[i].texture),this._durations.push(e[i].time)}this._previousFrame=null,this.gotoAndStop(0),this.updateTexture()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"currentFrame",{get:function(){var e=Math.floor(this._currentTime)%this._textures.length;return e<0&&(e+=this._textures.length),e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"playing",{get:function(){return this._playing},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(at.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._playing&&(at.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),r})(Pe);export{Jv as A,Kv as B,r_ as C,i_ as D,t_ as E,Qv as I,n_ as K,We as L,a_ as P,od as R,o_ as S,h_ as T,s_ as a,u_ as b,Hd as c,qv as d,e_ as e,W as f,Zv as u};
diff --git a/assets/@vue.861e8bf0.js b/assets/@vue.861e8bf0.js
deleted file mode 100644
index 25ec188..0000000
--- a/assets/@vue.861e8bf0.js
+++ /dev/null
@@ -1,4 +0,0 @@
-function Pn(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r<s.length;r++)n[s[r]]=!0;return t?r=>!!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<e.length;n++){const s=e[n],r=se(s)?bo(s):Mn(s);if(r)for(const i in r)t[i]=r[i]}return t}else{if(se(e))return e;if(oe(e))return e}}const mo=/;(?![^(]*\))/g,_o=/:(.+)/;function bo(e){const t={};return e.split(mo).forEach(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;n<e.length;n++){const s=Rn(e[n]);s&&(t+=s+" ")}else if(oe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function uf(e){if(!e)return null;let{class:t,style:n}=e;return t&&!se(t)&&(e.class=Rn(t)),n&&(e.style=Mn(n)),e}function yo(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Xe(e[s],t[s]);return n}function Xe(e,t){if(e===t)return!0;let n=Zs(e),s=Zs(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Wt(e),s=Wt(t),n||s)return e===t;if(n=N(e),s=N(t),n||s)return n&&s?yo(e,t):!1;if(n=oe(e),s=oe(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(l&&!c||!l&&c||!Xe(e[o],t[o]))return!1}}return String(e)===String(t)}function On(e,t){return e.findIndex(n=>Xe(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<e.length;n++)e[n](t)},Cn=(e,t,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<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.active=!1}}}function df(e){return new $r(e)}function jr(e,t=be){t&&t.active&&t.effects.push(e)}function hf(){return be}function pf(e){be&&be.cleanups.push(e)}const Fs=e=>{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<e.length;t++)e[t].w|=Qe},Po=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const r=t[s];Kr(r)&&!Vr(r)?r.delete(e):t[n++]=r,r.w&=~Qe,r.n&=~Qe}t.length=n}},ss=new WeakMap;let Bt=0,Qe=1;const rs=30;let Fe;const ot=Symbol(""),is=Symbol("");class Nn{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,jr(this,s)}run(){if(!this.active)return this.fn();let t=Fe,n=Ye;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Fe,Fe=this,Ye=!0,Qe=1<<++Bt,Bt<=rs?vo(this):Gs(this),this.fn()}finally{Bt<=rs&&Po(this),Qe=1<<--Bt,Fe=this.parent,Ye=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Fe===this?this.deferStop=!0:this.active&&(Gs(this),this.onStop&&this.onStop(),this.active=!1)}}function Gs(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function gf(e,t){e.effect&&(e=e.effect.fn);const n=new Nn(e);t&&(ie(n,t),t.scope&&jr(n,t.scope)),(!t||!t.lazy)&&n.run();const s=n.run.bind(n);return s.effect=n,s}function mf(e){e.effect.stop()}let Ye=!0;const Wr=[];function at(){Wr.push(Ye),Ye=!1}function dt(){const e=Wr.pop();Ye=e===void 0?!0:e}function xe(e,t,n){if(Ye&&Fe){let s=ss.get(e);s||ss.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=Fs()),qr(r)}}function qr(e,t){let n=!1;Bt<=rs?Vr(e)||(e.n|=Qe,n=!Kr(e)):n=!e.has(Fe),n&&(e.add(Fe),Fe.deps.push(e))}function He(e,t,n,s,r,i){const o=ss.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(n==="length"&&N(e))o.forEach((c,u)=>{(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<o;i++)xe(s,"get",i+"");const r=s[t](...n);return r===-1||r===!1?s[t](...n.map(Y)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{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)<n.length:J(n,s),c=Reflect.set(n,s,r,i);return n===Y(i)&&(l?At(r,o)&&He(n,"set",s,r):He(n,"add",s,r)),c}}function ko(e,t){const n=J(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&He(e,"delete",t,void 0),s}function Ho(e,t){const n=Reflect.has(e,t);return(!Wt(t)||!Jr.has(t))&&xe(e,"has",t),n}function Do(e){return xe(e,"iterate",N(e)?"length":ot),Reflect.ownKeys(e)}const zr={get:Ro,set:Bo,deleteProperty:ko,has:Ho,ownKeys:Do},Xr={get:Io,set(e,t){return!0},deleteProperty(e,t){return!0}},Uo=ie({},zr,{get:Oo,set:Lo}),$o=ie({},Xr,{get:So}),vs=e=>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<e.length;i++)r.push(we(e[i],t,n,s));return r}function Mt(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,l=n;for(;i;){const u=i.ec;if(u){for(let p=0;p<u.length;p++)if(u[p](e,o,l)===!1)return}i=i.parent}const c=t.appContext.config.errorHandler;if(c){ke(c,null,10,[e,o,l]);return}}hl(e,n,r,s)}function hl(e,t,n,s=!0){console.error(e)}let xn=!1,cs=!1;const Ce=[];let Be=0;const Ut=[];let Lt=null,_t=0;const $t=[];let We=null,bt=0;const li=Promise.resolve();let Os=null,fs=null;function ci(e){const t=Os||li;return e?t.then(this?e.bind(this):e):t}function pl(e){let t=Be+1,n=Ce.length;for(;t<n;){const s=t+n>>>1;Yt(Ce[s])<e?t=s+1:n=s}return t}function Is(e){(!Ce.length||!Ce.includes(e,xn&&e.allowRecurse?Be+1:Be))&&e!==fs&&(e.id==null?Ce.push(e):Ce.splice(pl(e.id),0,e),fi())}function fi(){!xn&&!cs&&(cs=!0,Os=li.then(di))}function gl(e){const t=Ce.indexOf(e);t>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;_t<Lt.length;_t++)Lt[_t]();Lt=null,_t=0,fs=null,Un(e,t)}}function En(e){if(Un(),$t.length){const t=[...new Set($t)];if($t.length=0,We){We.push(...t);return}for(We=t,We.sort((n,s)=>Yt(n)-Yt(s)),bt=0;bt<We.length;bt++)We[bt]();We=null,bt=0}}const Yt=e=>e.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;Be<Ce.length;Be++){const n=Ce[Be];n&&n.active!==!1&&ke(n,null,14)}}finally{Be=0,Ce.length=0,En(),xn=!1,Os=null,(Ce.length||Ut.length||$t.length)&&di(e)}}let It,un=[];function _l(e,t){var n,s;It=e,It?(It.enabled=!0,un.forEach(({event:r,args:i})=>It.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<e.length;n++){const s=e[n];if(ft(s)){if(s.type!==he||s.children==="v-if"){if(t)return;t=s}}else return}return t}const Cl=e=>{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;h<p.length;h++){const g=p[h];if(o[g]!==s[g]&&!$n(u,g))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?or(s,o,u):!0:!!o;return!1}function or(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(t[i]!==e[i]&&!$n(n,i))return!0}return!1}function Ss({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const gi=e=>e.__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<n.length&&s;r++)s=s[n[r]];return s}}function it(e,t){if(!oe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),ce(e))it(e.value,t);else if(N(e))for(let n=0;n<e.length;n++)it(e[n],t);else if(ut(e)||Ct(e))e.forEach(n=>{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;i<e.length;i++){let o=e[i];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===ue?(o.patchFlag&128&&r++,s=s.concat(Bs(o.children,t,l))):(t||o.type!==he)&&s.push(l!=null?De(o,{key:l}):o)}if(r>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}function xi(e){return V(e)?{setup:e,name:e.name}:e}const lt=e=>!!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;i<t.length;i++){let[o,l,c,u=X]=t[i];V(o)&&(o={mounted:o,updated:o}),o.deep&&it(l),r.push({dir:o,instance:s,value:l,oldValue:void 0,arg:c,modifiers:u})}return e}function Me(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let c=l.dir[s];c&&(at(),we(c,n,8,[e.el,l,e,t]),dt())}}const Ds="components",jl="directives";function Of(e,t){return Us(Ds,e,!0,t)||e}const wi=Symbol();function If(e){return se(e)?Us(Ds,e,!1)||e:e||wi}function Sf(e){return Us(jl,e)}function Us(e,t,n=!0,s=!1){const r=ae||le;if(r){const i=r.type;if(e===Ds){const l=vn(i,!1);if(l&&(l===t||l===Te(t)||l===Sn(Te(t))))return i}const o=ur(r[e]||i[e],t)||ur(r.appContext[e],t);return!o&&s?i:o}}function ur(e,t){return e&&(e[t]||e[Te(t)]||e[Sn(Te(t))])}function Nf(e,t,n,s){let r;const i=n&&n[s];if(N(e)||se(e)){r=new Array(e.length);for(let o=0,l=e.length;o<l;o++)r[o]=t(e[o],o,void 0,i&&i[o])}else if(typeof e=="number"){r=new Array(e);for(let o=0;o<e;o++)r[o]=t(o+1,o,void 0,i&&i[o])}else if(oe(e))if(e[Symbol.iterator])r=Array.from(e,(o,l)=>t(o,l,void 0,i&&i[l]));else{const o=Object.keys(e);r=new Array(o.length);for(let l=0,c=o.length;l<c;l++){const u=o[l];r[l]=t(e[u],u,l,i&&i[l])}}else r=[];return n&&(n[s]=r),r}function Bf(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(N(s))for(let r=0;r<s.length;r++)e[s[r].name]=s[r].fn;else s&&(e[s.name]=s.fn)}return e}function Lf(e,t,n={},s,r){if(ae.isCE||ae.parent&&lt(ae.parent)&&ae.parent.isCE)return ne("slot",t==="default"?null:{name:t},s&&s());let i=e[t];i&&i._c&&(i._d=!1),Ks();const o=i&&Ti(i(n)),l=Li(ue,{key:n.key||`_${t}`},o||(s?s():[]),o&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Ti(e){return e.some(t=>ft(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;n<e.length;n++)t[e[n]]=e[n];return t}return e}function de(e,t){return e?[...new Set([].concat(e,t))]:t}function st(e,t){return e?ie(ie(Object.create(null),e),t):t}function Yl(e,t){if(!e)return t;if(!t)return e;const n=ie(Object.create(null),e);for(const s in t)n[s]=de(e[s],t[s]);return n}function zl(e,t,n,s=!1){const r={},i={};Cn(i,Wn,1),e.propsDefaults=Object.create(null),vi(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:Go(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Xl(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=Y(r),[c]=e.propsOptions;let u=!1;if((s||o>0)&&!(o&16)){if(o&8){const p=e.vnode.dynamicProps;for(let h=0;h<p.length;h++){let g=p[h];if($n(e.emitsOptions,g))continue;const E=t[g];if(c)if(J(i,g))E!==i[g]&&(i[g]=E,u=!0);else{const v=Te(g);r[v]=ps(c,l,v,E,e,!1)}else E!==i[g]&&(i[g]=E,u=!0)}}}else{vi(e,t,r,i)&&(u=!0);let p;for(const h in l)(!t||!J(t,h)&&((p=Oe(h))===h||!J(t,p)))&&(c?n&&(n[h]!==void 0||n[p]!==void 0)&&(r[h]=ps(c,l,h,void 0,e,!0)):delete r[h]);if(i!==l)for(const h in i)(!t||!J(t,h)&&!0)&&(delete i[h],u=!0)}u&&He(e,"set","$attrs")}function vi(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let c in t){if(Ht(c))continue;const u=t[c];let p;r&&J(r,p=Te(c))?!i||!i.includes(p)?n[p]=u:(l||(l={}))[p]=u:$n(e.emitsOptions,c)||(!(c in s)||u!==s[c])&&(s[c]=u,o=!0)}if(i){const c=Y(n),u=l||X;for(let p=0;p<i.length;p++){const h=i[p];n[h]=ps(r,c,h,u[h],e,!J(u,h))}}return o}function ps(e,t,n,s,r,i){const o=e[n];if(o!=null){const l=J(o,"default");if(l&&s===void 0){const c=o.default;if(o.type!==Function&&V(c)){const{propsDefaults:u}=r;n in u?s=u[n]:(Ge(r),s=u[n]=c.call(null,t),ze())}else s=c}o[0]&&(i&&!l?s=!1:o[1]&&(s===""||s===Oe(n))&&(s=!0))}return s}function Pi(e,t,n=!1){const s=t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},l=[];let c=!1;if(!V(e)){const p=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<i.length;p++){const h=Te(i[p]);hr(h)&&(o[h]=X)}else if(i)for(const p in i){const h=Te(p);if(hr(h)){const g=i[p],E=o[h]=N(g)||V(g)?{type:g}:g;if(E){const v=mr(Boolean,E.type),H=mr(String,E.type);E[0]=v>-1,E[1]=H<0||v<H,(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<d.staticCount;Z++)pe&&(d.children+=k.nodeType===1?k.outerHTML:k.data),Z===d.staticCount-1&&(d.anchor=k),k=i(k);return k}break;case ue:D?k=v(_,d,b,w,R,B):k=T();break;default:if(K&1)q!==1||d.type.toLowerCase()!==_.tagName.toLowerCase()?k=T():k=g(_,d,b,w,R,B);else if(K&6){d.slotScopeIds=R;const pe=o(_);if(t(d,pe,null,b,w,an(pe),B),k=D?I(_):i(_),k&&dn(k)&&k.data==="teleport end"&&(k=i(k)),lt(d)){let Z;D?(Z=ne(ue),Z.anchor=k?k.previousSibling:pe.lastChild):Z=_.nodeType===3?Di(""):ne("div"),Z.el=_,d.component.subTree=Z}}else K&64?q!==8?k=T():k=d.type.hydrate(_,d,b,w,R,B,e,E):K&128&&(k=d.type.hydrate(_,d,b,w,an(o(_)),R,B,e,h))}return U!=null&&An(U,null,w,d),k},g=(_,d,b,w,R,B)=>{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<L;U++){const K=D?T[U]:T[U]=ye(T[U]);if(_)_=h(_,K,w,R,B,D);else{if(K.type===Qt&&!K.children)continue;Ke=!0,n(null,K,b,null,w,R,an(b),B)}}return _},v=(_,d,b,w,R,B)=>{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<C.length;F++)E(f,C[F]);if(y){let F=y.subTree;if(a===F){const M=y.vnode;T(f,M,M.scopeId,M.slotScopeIds,y.parent)}}},L=(f,a,m,C,y,F,M,A,P=0)=>{for(let x=P;x<f.length;x++){const $=f[x]=A?Je(f[x]):ye(f[x]);I(null,$,a,m,C,y,F,M,A)}},U=(f,a,m,C,y,F,M)=>{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<Q.length;G++){const te=Q[G],Ae=S[te],mt=j[te];(mt!==Ae||te==="value")&&i(A,te,Ae,mt,y,f.children,m,C,Se)}}P&1&&f.children!==a.children&&p(A,a.children)}else!M&&x==null&&O(A,a,S,j,m,C,y);((W=j.onVnodeUpdated)||$)&&fe(()=>{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<a.length;A++){const P=f[A],x=a[A],$=P.el&&(P.type===ue||!Re(P,x)||P.shapeFlag&70)?h(P.el):m;I(P,x,$,null,C,y,F,M,!0)}},O=(f,a,m,C,y,F,M)=>{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&&lt(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<S;j++){const W=a[j]=P?Je(a[j]):ye(a[j]);I(f[j],W,m,null,y,F,M,A,P)}x>$?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;x++)Ot[x]=0;for(x=W;x<=S;x++){const _e=f[x];if(te>=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;S<P.length;S++)pt(P[S],a,m,C);s(f.anchor,a,m);return}if(M===Tt){w(f,a,m);return}if(C!==2&&x&1&&A)if(C===0)A.beforeEnter(F),s(F,a,m),fe(()=>A.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;M<f.length;M++)$e(f[M],a,m,C,y)},sn=f=>f.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<s.length;i++){const o=s[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=Je(r[i]),l.el=o.el),n||js(o,l))}}function ic(e){const t=e.slice(),n=[0];let s,r,i,o,l;const c=e.length;for(s=0;s<c;s++){const u=e[s];if(u!==0){if(r=n[n.length-1],e[r]<u){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<u?i=l+1:o=l;u<e[n[i]]&&(i>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;E<c.length;E++){const v=c[E];r(v,t,n,!0,!!v.dynamicChildren)}},move:hn,hydrate:cc};function hn(e,t,n,{o:{insert:s},m:r},i=2){i===0&&s(e.targetAnchor,t,n);const{el:o,anchor:l,shapeFlag:c,children:u,props:p}=e,h=i===2;if(h&&s(o,t,n),(!h||jt(p))&&c&16)for(let g=0;g<u.length;g++)r(u[g],t,n,2);h&&s(l,t,n)}function cc(e,t,n,s,r,i,{o:{nextSibling:o,parentNode:l,querySelector:c}},u){const p=t.target=gs(t.props,c);if(p){const h=p._lpa||p.firstChild;if(t.shapeFlag&16)if(jt(t.props))t.anchor=u(o(e),t,l(e),n,s,r,i),t.targetAnchor=h;else{t.anchor=o(e);let g=h;for(;g;)if(g=o(g),g&&g.nodeType===8&&g.data==="teleport anchor"){t.targetAnchor=g,p._lpa=t.targetAnchor&&o(t.targetAnchor);break}u(h,t,p,n,s,r,i)}}return t.anchor&&o(t.anchor)}const Hf=lc,ue=Symbol(void 0),Qt=Symbol(void 0),he=Symbol(void 0),Tt=Symbol(void 0),Kt=[];let me=null;function Ks(e=!1){Kt.push(me=e?null:[])}function Ni(){Kt.pop(),me=Kt[Kt.length-1]||null}let ct=1;function br(e){ct+=e}function Bi(e){return e.dynamicChildren=ct>0?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;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=Rn([t.class,s.class]));else if(r==="style")t.style=Mn([t.style,s.style]);else if(Gt(r)){const i=t[r],o=s[r];o&&i!==o&&!(N(i)&&i.includes(o))&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=s[r])}return t}function ge(e,t,n,s=null){we(e,t,7,[n,s])}const dc=Ii();let hc=0;function Ui(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||dc,i={uid:hc++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new $r(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Pi(s,r),emitsOptions:hi(s,r),emit:null,emitted:null,propsDefaults:X,inheritAttrs:s.inheritAttrs,ctx:X,data:X,props:X,attrs:X,slots:X,refs:X,setupState:X,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=bl.bind(null,i),e.ce&&e.ce(i),i}let le=null;const ht=()=>le||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;s<n.length;s++)if(At(n[s],t[s]))return!1;return ct>0&&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?`<svg>${e}</svg>`: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<xr.length;r++){const i=xr[r]+s;if(i in e)return ts[t]=i}return t}const Er="http://www.w3.org/1999/xlink";function Rc(e,t,n,s,r){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Er,t.slice(6,t.length)):e.setAttributeNS(Er,t,n);else{const i=go(t);n==null||i&&!kr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Oc(e,t,n,s,r,i,o){if(t==="innerHTML"||t==="textContent"){s&&o(s,r,i),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const c=n==null?"":n;(e.value!==c||e.tagName==="OPTION")&&(e.value=c),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=kr(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}const[Ji,Ic]=(()=>{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<this.attributes.length;s++)this._setAttr(this.attributes[s].name);new MutationObserver(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<c&&h()},l+1),e.addEventListener(u,g)}function Zi(e,t){const n=window.getComputedStyle(e),s=v=>(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.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Rr(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<i.length;u++){const p=i[u];p.key!=null&&Ft(p,Zt(p,l,s,n))}if(r)for(let u=0;u<r.length;u++){const p=r[u];Ft(p,Zt(p,l,s,n)),Gi.set(p,p.el.getBoundingClientRect())}return ne(c,null,i)}}},fu=Yc;function zc(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function Xc(e){eo.set(e,e.el.getBoundingClientRect())}function Zc(e){const t=Gi.get(e),n=eo.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${s}px,${r}px)`,i.transitionDuration="0s",e}}function Qc(e,t,n){const s=e.cloneNode();e._vtc&&e._vtc.forEach(o=>{o.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(o=>o&&s.classList.add(o)),s.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:i}=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<r;s++){const i=e.options[s],o=Pt(i);if(n)N(t)?i.selected=On(t,o)>-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;r<t.length;r++){const i=rf[t[r]];if(i&&i(n,t))return}return e(n,...s)},of={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},au=(e,t)=>n=>{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.89ec12e6.js b/assets/earcut.89ec12e6.js
deleted file mode 100644
index 2466c21..0000000
--- a/assets/earcut.89ec12e6.js
+++ /dev/null
@@ -1 +0,0 @@
-var N=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function m(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 z={exports:{}};z.exports=P;z.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=R(e,t,u,n)),e.length>80*n){i=y=e[0],l=c=e[1];for(var o=n;o<r;o+=n)h=e[o],p=e[o+1],h<i&&(i=h),p<l&&(l=p),h>y&&(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<n;u+=x)f=E(u,e[u],e[u+1],f);else for(u=n-x;u>=t;u-=x)f=E(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(e),t,n),w(e,t,n,x,r,u,2)):f===2&&G(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.x<u.x?r.x<f.x?r.x:f.x:u.x<f.x?u.x:f.x,l=r.y<u.y?r.y<f.y?r.y:f.y:u.y<f.y?u.y:f.y,y=r.x>u.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 $(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 G(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 R(e,t,n,x){var r=[],u,f,i,l,y;for(u=0,f=t.length;u<f;u++)i=t[u]*x,l=u<f-1?t[u+1]*x:e.length,y=A(e,i,l,x,!1),y===y.next&&(y.steiner=!0),r.push(X(y));for(r.sort(V),u=0;u<r.length;u++)n=J(r[u],n),n=g(n,n.next);return n}function V(e,t){return e.x-t.x}function J(e,t){var n=K(e,t);if(!n)return t;var x=C(n,e),r=g(n,n.next);return g(x,x.next),t===n?r:t}function K(e,t){var n=t,x=e.x,r=e.y,u=-1/0,f;do{if(r<=n.y&&r>=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.next.x?n:n.next}}n=n.next}while(n!==t);if(!f)return null;if(x===u)return f;var l=f,y=f.x,c=f.y,h=1/0,p;n=f;do x>=n.x&&n.x>=y&&x!==n.x&&Z(r<c?x:u,r,y,c,r<c?u:x,r,n.x,n.y)&&(p=Math.abs(r-n.y)/(x-n.x),F(n,e)&&(p<h||p===h&&(n.x>f.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;t<y&&(i++,x=x.nextZ,!!x);t++);for(l=y;i>0||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<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next;while(t!==e);return n}function Z(e,t,n,x,r,u,f,i){return(r-f)*(t-i)-(e-f)*(u-i)>=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 E(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;i<l;i++){var y=t[i]*n,c=i<l-1?t[i+1]*n:e.length;f-=Math.abs(k(e,y,c,n))}var h=0;for(i=0;i<x.length;i+=3){var p=x[i]*n,v=x[i+1]*n,o=x[i+2]*n;h+=Math.abs((e[p]-e[o])*(e[v+1]-e[p+1])-(e[p]-e[v])*(e[o+1]-e[p+1]))}return f===0&&h===0?0:Math.abs((h-f)/f)};function k(e,t,n,x){for(var r=0,u=t,f=n-x;u<n;u+=x)r+=(e[f]-e[u])*(e[u+1]+e[f+1]),f=u;return r}P.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},x=0,r=0;r<e.length;r++){for(var u=0;u<e[r].length;u++)for(var f=0;f<t;f++)n.vertices.push(e[r][u][f]);r>0&&(x+=e[r-1].length,n.holes.push(x))}return n};var b=z.exports;export{a,N as c,b as e,m as g};
diff --git a/assets/eventemitter3.dc5195d7.js b/assets/eventemitter3.dc5195d7.js
deleted file mode 100644
index 036c893..0000000
--- a/assets/eventemitter3.dc5195d7.js
+++ /dev/null
@@ -1 +0,0 @@
-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<c;l++)o[l]=r[l].fn;return o},f.prototype.listenerCount=function(t){var n=u?u+t:t,r=this._events[n];return r?r.fn?1:r.length:0},f.prototype.emit=function(t,n,r,l,c,o){var a=u?u+t:t;if(!this._events[a])return!1;var e=this._events[a],v=arguments.length,p,i;if(e.fn){switch(e.once&&this.removeListener(t,e.fn,void 0,!0),v){case 1:return e.fn.call(e.context),!0;case 2:return e.fn.call(e.context,n),!0;case 3:return e.fn.call(e.context,n,r),!0;case 4:return e.fn.call(e.context,n,r,l),!0;case 5:return e.fn.call(e.context,n,r,l,c),!0;case 6:return e.fn.call(e.context,n,r,l,c,o),!0}for(i=1,p=new Array(v-1);i<v;i++)p[i-1]=arguments[i];e.fn.apply(e.context,p)}else{var d=e.length,_;for(i=0;i<d;i++)switch(e[i].once&&this.removeListener(t,e[i].fn,void 0,!0),v){case 1:e[i].fn.call(e[i].context);break;case 2:e[i].fn.call(e[i].context,n);break;case 3:e[i].fn.call(e[i].context,n,r);break;case 4:e[i].fn.call(e[i].context,n,r,l);break;default:if(!p)for(_=1,p=new Array(v-1);_<v;_++)p[_-1]=arguments[_];e[i].fn.apply(e[i].context,p)}}return!0},f.prototype.on=function(t,n,r){return x(this,t,n,r,!1)},f.prototype.once=function(t,n,r){return x(this,t,n,r,!0)},f.prototype.removeListener=function(t,n,r,l){var c=u?u+t:t;if(!this._events[c])return this;if(!n)return y(this,c),this;var o=this._events[c];if(o.fn)o.fn===n&&(!l||o.once)&&(!r||o.context===r)&&y(this,c);else{for(var a=0,e=[],v=o.length;a<v;a++)(o[a].fn!==n||l&&!o[a].once||r&&o[a].context!==r)&&e.push(o[a]);e.length?this._events[c]=e.length===1?e[0]:e:y(this,c)}return this},f.prototype.removeAllListeners=function(t){var n;return t?(n=u?u+t:t,this._events[n]&&y(this,n)):(this._events=new h,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=u,f.EventEmitter=f,g.exports=f})(w);var E=w.exports;export{E};
diff --git a/assets/index.41d7c359.css b/assets/index.41d7c359.css
new file mode 100644
index 0000000..07f16a2
--- /dev/null
+++ b/assets/index.41d7c359.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}.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.d5d1e0a2.js b/assets/index.d5d1e0a2.js
new file mode 100644
index 0000000..1a495d8
--- /dev/null
+++ b/assets/index.d5d1e0a2.js
@@ -0,0 +1,593 @@
+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<r.length;i++)n[r[i]]=!0;return t?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<e.length;n++){const r=e[n],i=Vt(r)?Dy(r):tt(r);if(i)for(const a in i)t[a]=i[a]}return t}else{if(Vt(e))return e;if(Wt(e))return e}}const By=/;(?![^(]*\))/g,ky=/:(.+)/;function Dy(e){const t={};return e.split(By).forEach(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;n<e.length;n++){const r=ze(e[n]);r&&(t+=r+" ")}else if(Wt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function qp(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Vt(t)&&(e.class=ze(t)),n&&(e.style=tt(n)),e}function Gy(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=pi(e[r],t[r]);return n}function pi(e,t){if(e===t)return!0;let n=Nd(e),r=Nd(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Oa(e),r=Oa(t),n||r)return e===t;if(n=Ce(e),r=Ce(t),n||r)return n&&r?Gy(e,t):!1;if(n=Wt(e),r=Wt(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,a=Object.keys(t).length;if(i!==a)return!1;for(const o in e){const s=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!pi(e[o],t[o]))return!1}}return String(e)===String(t)}function Ll(e,t){return e.findIndex(n=>pi(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<e.length;n++)e[n](t)},ll=(e,t,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<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.active=!1}}}function Ky(e){return new cf(e)}function rv(e,t=Fn){t&&t.active&&t.effects.push(e)}function Yy(){return Fn}function Zy(e){Fn&&Fn.cleanups.push(e)}const ff=e=>{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<e.length;t++)e[t].w|=mi},Qy=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];iv(i)&&!ov(i)?i.delete(e):t[n++]=i,i.w&=~mi,i.n&=~mi}t.length=n}},nc=new WeakMap;let oa=0,mi=1;const rc=30;let sr;const Zi=Symbol(""),ic=Symbol("");class ns{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,rv(this,r)}run(){if(!this.active)return this.fn();let t=sr,n=fi;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=sr,sr=this,fi=!0,mi=1<<++oa,oa<=rc?Jy(this):Ad(this),this.fn()}finally{oa<=rc&&Qy(this),mi=1<<--oa,sr=this.parent,fi=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){sr===this?this.deferStop=!0:this.active&&(Ad(this),this.onStop&&this.onStop(),this.active=!1)}}function Ad(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function qy(e,t){e.effect&&(e=e.effect.fn);const n=new ns(e);t&&(Xt(n,t),t.scope&&rv(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function e0(e){e.effect.stop()}let fi=!0;const av=[];function oo(){av.push(fi),fi=!1}function ao(){const e=av.pop();fi=e===void 0?!0:e}function $n(e,t,n){if(fi&&sr){let r=nc.get(e);r||nc.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=ff()),sv(i)}}function sv(e,t){let n=!1;oa<=rc?ov(e)||(e.n|=mi,n=!iv(e)):n=!e.has(sr),n&&(e.add(sr),sr.deps.push(e))}function Hr(e,t,n,r,i,a){const o=nc.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(n==="length"&&Ce(e))o.forEach((l,u)=>{(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<o;a++)$n(r,"get",a+"");const i=r[t](...n);return i===-1||i===!1?r[t](...n.map(ot)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{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)<n.length:dt(n,r),l=Reflect.set(n,r,i,a);return n===ot(a)&&(s?Mo(i,o)&&Hr(n,"set",r,i):Hr(n,"add",r,i)),l}}function u0(e,t){const n=dt(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Hr(e,"delete",t,void 0),r}function c0(e,t){const n=Reflect.has(e,t);return(!Oa(t)||!lv.has(t))&&$n(e,"has",t),n}function f0(e){return $n(e,"iterate",Ce(e)?"length":Zi),Reflect.ownKeys(e)}const cv={get:n0,set:s0,deleteProperty:u0,has:c0,ownKeys:f0},fv={get:i0,set(e,t){return!0},deleteProperty(e,t){return!0}},d0=Xt({},cv,{get:r0,set:l0}),h0=Xt({},fv,{get:o0}),df=e=>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<e.length;a++)i.push(Gn(e[a],t,n,r));return i}function so(e,t,n,r=!0){const i=t?t.vnode:null;if(t){let a=t.parent;const o=t.proxy,s=n;for(;a;){const u=a.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,o,s)===!1)return}a=a.parent}const l=t.appContext.config.errorHandler;if(l){Cr(l,null,10,[e,o,s]);return}}k0(e,n,i,r)}function k0(e,t,n,r=!0){console.error(e)}let cl=!1,ac=!1;const Un=[];let Br=0;const ga=[];let aa=null,mo=0;const ya=[];let ni=null,go=0;const bv=Promise.resolve();let bf=null,sc=null;function tn(e){const t=bf||bv;return e?t.then(this?e.bind(this):e):t}function D0(e){let t=Br+1,n=Un.length;for(;t<n;){const r=t+n>>>1;Fa(Un[r])<e?t=r+1:n=r}return t}function xf(e){(!Un.length||!Un.includes(e,cl&&e.allowRecurse?Br+1:Br))&&e!==sc&&(e.id==null?Un.push(e):Un.splice(D0(e.id),0,e),xv())}function xv(){!cl&&!ac&&(ac=!0,bf=bv.then(Tv))}function G0(e){const t=Un.indexOf(e);t>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;mo<aa.length;mo++)aa[mo]();aa=null,mo=0,sc=null,$l(e,t)}}function fl(e){if($l(),ya.length){const t=[...new Set(ya)];if(ya.length=0,ni){ni.push(...t);return}for(ni=t,ni.sort((n,r)=>Fa(n)-Fa(r)),go=0;go<ni.length;go++)ni[go]();ni=null,go=0}}const Fa=e=>e.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;Br<Un.length;Br++){const n=Un[Br];n&&n.active!==!1&&Cr(n,null,14)}}finally{Br=0,Un.length=0,fl(),cl=!1,bf=null,(Un.length||ga.length||ya.length)&&Tv(e)}}let yo,bs=[];function wv(e,t){var n,r;yo=e,yo?(yo.enabled=!0,bs.forEach(({event:i,args:a})=>yo.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<e.length;n++){const r=e[n];if(fr(r)){if(r.type!==yn||r.children==="v-if"){if(t)return;t=r}}else return}return t}const z0=e=>{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;f<c.length;f++){const d=c[f];if(o[d]!==r[d]&&!jl(u,d))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?Bd(r,o,u):!0:!!o;return!1}function Bd(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const a=r[i];if(t[a]!==e[a]&&!jl(n,a))return!0}return!1}function Tf({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Ev=e=>e.__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<n.length&&r;i++)r=r[n[i]];return r}}function zi(e,t){if(!Wt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),et(e))zi(e.value,t);else if(Ce(e))for(let n=0;n<e.length;n++)zi(e[n],t);else if(io(e)||Io(e))e.forEach(n=>{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;a<e.length;a++){let o=e[a];const s=n==null?o.key:String(n)+String(o.key!=null?o.key:a);o.type===Oe?(o.patchFlag&128&&i++,r=r.concat(zl(o.children,t,s))):(t||o.type!==yn)&&r.push(s!=null?Ar(o,{key:s}):o)}if(i>1)for(let a=0;a<r.length;a++)r[a].patchFlag=-2;return r}function Ie(e){return De(e)?{setup:e,name:e.name}:e}const Ji=e=>!!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;a<t.length;a++){let[o,s,l,u=xt]=t[a];De(o)&&(o={mounted:o,updated:o}),o.deep&&zi(s),i.push({dir:o,instance:r,value:s,oldValue:void 0,arg:l,modifiers:u})}return e}function mr(e,t,n,r){const i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){const s=i[o];a&&(s.oldValue=a[o].value);let l=s.dir[r];l&&(oo(),Gn(l,n,8,[e.el,s,e,t]),ao())}}const If="components",sb="directives";function wt(e,t){return Sf(If,e,!0,t)||e}const Dv=Symbol();function gt(e){return Vt(e)?Sf(If,e,!1)||e:e||Dv}function lb(e){return Sf(sb,e)}function Sf(e,t,n=!0,r=!1){const i=mn||on;if(i){const a=i.type;if(e===If){const s=ml(a,!1);if(s&&(s===t||s===Vn(t)||s===ts(Vn(t))))return a}const o=Vd(i[e]||a[e],t)||Vd(i.appContext[e],t);return!o&&r?a:o}}function Vd(e,t){return e&&(e[t]||e[Vn(t)]||e[ts(Vn(t))])}function Rr(e,t,n,r){let i;const a=n&&n[r];if(Ce(e)||Vt(e)){i=new Array(e.length);for(let o=0,s=e.length;o<s;o++)i[o]=t(e[o],o,void 0,a&&a[o])}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,a&&a[o])}else if(Wt(e))if(e[Symbol.iterator])i=Array.from(e,(o,s)=>t(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;s<l;s++){const u=o[s];i[s]=t(e[u],u,s,a&&a[s])}}else i=[];return n&&(n[r]=i),i}function ub(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Ce(r))for(let i=0;i<r.length;i++)e[r[i].name]=r[i].fn;else r&&(e[r.name]=r.fn)}return e}function Mt(e,t,n={},r,i){if(mn.isCE||mn.parent&&Ji(mn.parent)&&mn.parent.isCE)return C("slot",t==="default"?null:{name:t},r&&r());let a=e[t];a&&a._c&&(a._d=!1),M();const o=a&&Gv(a(n)),s=we(Oe,{key:n.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function Gv(e){return e.some(t=>fr(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;n<e.length;n++)t[e[n]]=e[n];return t}return e}function bn(e,t){return e?[...new Set([].concat(e,t))]:t}function Mi(e,t){return e?Xt(Xt(Object.create(null),e),t):t}function vb(e,t){if(!e)return t;if(!t)return e;const n=Xt(Object.create(null),e);for(const r in t)n[r]=bn(e[r],t[r]);return n}function mb(e,t,n,r=!1){const i={},a={};ll(a,Wl,1),e.propsDefaults=Object.create(null),Hv(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:jo(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function gb(e,t,n,r){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=ot(i),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(jl(e.emitsOptions,d))continue;const h=t[d];if(l)if(dt(a,d))h!==a[d]&&(a[d]=h,u=!0);else{const p=Vn(d);i[p]=dc(l,s,p,h,e,!1)}else h!==a[d]&&(a[d]=h,u=!0)}}}else{Hv(e,t,i,a)&&(u=!0);let c;for(const f in s)(!t||!dt(t,f)&&((c=wr(f))===f||!dt(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(i[f]=dc(l,s,f,void 0,e,!0)):delete i[f]);if(a!==s)for(const f in a)(!t||!dt(t,f)&&!0)&&(delete a[f],u=!0)}u&&Hr(e,"set","$attrs")}function Hv(e,t,n,r){const[i,a]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(pa(l))continue;const u=t[l];let c;i&&dt(i,c=Vn(l))?!a||!a.includes(c)?n[c]=u:(s||(s={}))[c]=u:jl(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(a){const l=ot(n),u=s||xt;for(let c=0;c<a.length;c++){const f=a[c];n[f]=dc(i,l,f,u[f],e,!dt(u,f))}}return o}function dc(e,t,n,r,i,a){const o=e[n];if(o!=null){const s=dt(o,"default");if(s&&r===void 0){const l=o.default;if(o.type!==Function&&De(l)){const{propsDefaults:u}=i;n in u?r=u[n]:(gi(i),r=u[n]=l.call(null,t),hi())}else r=l}o[0]&&(a&&!s?r=!1:o[1]&&(r===""||r===wr(n))&&(r=!0))}return r}function zv(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const a=e.props,o={},s=[];let l=!1;if(!De(e)){const c=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<a.length;c++){const f=Vn(a[c]);Hd(f)&&(o[f]=xt)}else if(a)for(const c in a){const f=Vn(c);if(Hd(f)){const d=a[c],h=o[f]=Ce(d)||De(d)?{type:d}:d;if(h){const p=Wd(Boolean,h.type),v=Wd(String,h.type);h[0]=p>-1,h[1]=v<0||p<v,(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<m.staticCount;Y++)he&&(m.children+=B.nodeType===1?B.outerHTML:B.data),Y===m.staticCount-1&&(m.anchor=B),B=a(B);return B}break;case Oe:N?B=p(y,m,b,T,S,w):B=I();break;default:if($&1)j!==1||m.type.toLowerCase()!==y.tagName.toLowerCase()?B=I():B=d(y,m,b,T,S,w);else if($&6){m.slotScopeIds=S;const he=o(y);if(t(m,he,null,b,T,xs(he),w),B=N?g(y):a(y),B&&_s(B)&&B.data==="teleport end"&&(B=a(B)),Ji(m)){let Y;N?(Y=C(Oe),Y.anchor=B?B.previousSibling:he.lastChild):Y=y.nodeType===3?le(""):C("div"),Y.el=y,m.component.subTree=Y}}else $&64?j!==8?B=I():B=m.type.hydrate(y,m,b,T,S,w,e,h):$&128&&(B=m.type.hydrate(y,m,b,T,xs(o(y)),S,w,e,f))}return U!=null&&pl(U,null,T,m),B},d=(y,m,b,T,S,w)=>{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<R;U++){const $=N?I[U]:I[U]=Ln(I[U]);if(y)y=f(y,$,T,S,w,N);else{if($.type===Bo&&!$.children)continue;qr=!0,n(null,$,b,null,T,S,xs(b),w)}}return y},p=(y,m,b,T,S,w)=>{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<K.length;ae++)h(E,K[ae]);if(Z){let ae=Z.subTree;if(A===ae){const pe=Z.vnode;I(E,pe,pe.scopeId,pe.slotScopeIds,Z.parent)}}},R=(E,A,V,K,Z,ae,pe,ne,se=0)=>{for(let ee=se;ee<E.length;ee++){const Ne=E[ee]=ne?ii(E[ee]):Ln(E[ee]);g(null,Ne,A,V,K,Z,ae,pe,ne)}},U=(E,A,V,K,Z,ae,pe)=>{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<ht.length;F++){const L=ht[F],G=be[L],te=Re[L];(te!==G||L==="value")&&a(ne,L,G,te,Z,E.children,V,K,ue)}}se&1&&E.children!==A.children&&c(ne,A.children)}else!pe&&ee==null&&z(ne,A,be,Re,V,K,Z);((Le=Re.onVnodeUpdated)||Ne)&&fn(()=>{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<A.length;ne++){const se=E[ne],ee=A[ne],Ne=se.el&&(se.type===Oe||!yr(se,ee)||se.shapeFlag&70)?f(se.el):V;g(se,ee,Ne,null,K,Z,ae,pe,!0)}},z=(E,A,V,K,Z,ae,pe)=>{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;Re<be;Re++){const Le=A[Re]=se?ii(A[Re]):Ln(A[Re]);g(E[Re],Le,V,null,Z,ae,pe,ne,se)}ee>Ne?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=Le<Ne?A[Le].el:K;for(;ee<=Re;)g(null,A[ee]=se?ii(A[ee]):Ln(A[ee]),V,qe,Z,ae,pe,ne,se),ee++}}else if(ee>Re)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;ee++)Fe[ee]=0;for(ee=Le;ee<=be;ee++){const Ge=E[ee];if(L>=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<Ne?A[Ge+1].el:K;Fe[ee]===0?g(null,mt,V,Be,Z,ae,pe,ne,se):te&&(F<0||ee!==$e[F]?ye(mt,V,Be,2):F--)}}},ye=(E,A,V,K,Z=null)=>{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;be<se.length;be++)ye(se[be],A,V,K);r(E.anchor,A,V);return}if(pe===Qi){T(E,A,V);return}if(K!==2&&ee&1&&ne)if(K===0)ne.beforeEnter(ae),r(ae,A,V),fn(()=>ne.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;pe<E.length;pe++)Se(E[pe],A,V,K,Z)},Ve=E=>E.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<r.length;a++){const o=r[a];let s=i[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[a]=ii(i[a]),s.el=o.el),n||Rf(o,s))}}function Cb(e){const t=e.slice(),n=[0];let r,i,a,o,s;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(i=n[n.length-1],e[i]<u){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<u?a=s+1:o=s;u<e[n[a]]&&(a>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;h<l.length;h++){const p=l[h];i(p,t,n,!0,!!p.dynamicChildren)}},move:Ts,hydrate:Sb};function Ts(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);const{el:o,anchor:s,shapeFlag:l,children:u,props:c}=e,f=a===2;if(f&&r(o,t,n),(!f||ba(c))&&l&16)for(let d=0;d<u.length;d++)i(u[d],t,n,2);f&&r(s,t,n)}function Sb(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const c=t.target=hc(t.props,l);if(c){const f=c._lpa||c.firstChild;if(t.shapeFlag&16)if(ba(t.props))t.anchor=u(o(e),t,s(e),n,r,i,a),t.targetAnchor=f;else{t.anchor=o(e);let d=f;for(;d;)if(d=o(d),d&&d.nodeType===8&&d.data==="teleport anchor"){t.targetAnchor=d,c._lpa=t.targetAnchor&&o(t.targetAnchor);break}u(f,t,c,n,r,i,a)}}return t.anchor&&o(t.anchor)}const qv=Ib,Oe=Symbol(void 0),Bo=Symbol(void 0),yn=Symbol(void 0),Qi=Symbol(void 0),xa=[];let Nn=null;function M(e=!1){xa.push(Nn=e?null:[])}function em(){xa.pop(),Nn=xa[xa.length-1]||null}let no=1;function pc(e){no+=e}function tm(e){return e.dynamicChildren=no>0?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;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=ze([t.class,r.class]));else if(i==="style")t.style=tt([t.style,r.style]);else if(qa(i)){const a=t[i],o=r[i];o&&a!==o&&!(Ce(a)&&a.includes(o))&&(t[i]=a?[].concat(a,o):o)}else i!==""&&(t[i]=r[i])}return t}function In(e,t,n,r=null){Gn(e,t,7,[n,r])}const Ob=Yv();let Pb=0;function im(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||Ob,a={uid:Pb++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new cf(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:zv(r,i),emitsOptions:Cv(r,i),emit:null,emitted:null,propsDefaults:xt,inheritAttrs:r.inheritAttrs,ctx:xt,data:xt,props:xt,attrs:xt,slots:xt,refs:xt,setupState:xt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=$0.bind(null,a),e.ce&&e.ce(a),a}let on=null;const Fr=()=>on||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;r<n.length;r++)if(Mo(n[r],t[r]))return!1;return no>0&&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?`<svg>${e}</svg>`: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<Jd.length;i++){const a=Jd[i]+r;if(a in e)return vu[t]=a}return t}const Qd="http://www.w3.org/1999/xlink";function s1(e,t,n,r,i){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Qd,t.slice(6,t.length)):e.setAttributeNS(Qd,t,n);else{const a=Uy(t);n==null||a&&!Qp(n)?e.removeAttribute(t):e.setAttribute(t,a?"":n)}}function l1(e,t,n,r,i,a,o){if(t==="innerHTML"||t==="textContent"){r&&o(r,i,a),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const l=n==null?"":n;(e.value!==l||e.tagName==="OPTION")&&(e.value=l),n==null&&e.removeAttribute(t);return}let s=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Qp(n):n==null&&l==="string"?(n="",s=!0):l==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(t)}const[vm,u1]=(()=>{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<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(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<l&&f()},s+1),e.addEventListener(u,d)}function bm(e,t){const n=window.getComputedStyle(e),r=p=>(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.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>ah(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<a.length;u++){const c=a[u];c.key!=null&&to(c,Uo(c,s,r,n))}if(i)for(let u=0;u<i.length;u++){const c=i[u];to(c,Uo(c,s,r,n)),_m.set(c,c.el.getBoundingClientRect())}return C(l,null,a)}}},wm=S1;function N1(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function R1(e){Tm.set(e,e.el.getBoundingClientRect())}function A1(e){const t=_m.get(e),n=Tm.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const a=e.el.style;return a.transform=a.webkitTransform=`translate(${r}px,${i}px)`,a.transitionDuration="0s",e}}function O1(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(o=>{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<i;r++){const a=e.options[r],o=Go(a);if(n)Ce(t)?a.selected=Ll(t,o)>-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;i<t.length;i++){const a=L1[t[i]];if(a&&a(n,t))return}return e(n,...r)},U1={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},$i=(e,t)=>n=>{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)<t*Math.abs(r))return r;n=r}throw Error(`Iteration failed to converge: ${e.toString()}`)};function ph(e,t=1e-10){let n,r,i,a;if(!Number.isFinite(e.mag)||e===O.dZero)return e;if(e===O.dOne)return D(Fm);O.abs(e),n=O.ln(e);for(let o=0;o<100;++o){if(r=O.exp(-n),i=n.sub(e.mul(r)),a=n.sub(i.div(n.add(1).sub(n.add(2).mul(i).div(O.mul(2,n).add(2))))),O.abs(a.sub(n)).lt(O.abs(a).mul(t)))return a;n=a}throw Error(`Iteration failed to converge: ${e.toString()}`)}const Q=class{constructor(e){this.sign=Number.NaN,this.mag=Number.NaN,this.layer=Number.NaN,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)}get m(){if(this.sign===0)return 0;if(this.layer===0){const e=Math.floor(Math.log10(this.mag));let t;return this.mag===5e-324?t=5:t=this.mag/dx(e),this.sign*t}else if(this.layer===1){const e=this.mag-Math.floor(this.mag);return this.sign*Math.pow(10,e)}else return this.sign}set m(e){this.layer<=2?this.fromMantissaExponent(e,this.e):(this.sign=Math.sign(e),this.sign===0&&(this.layer,this.exponent))}get e(){return this.sign===0?0:this.layer===0?Math.floor(Math.log10(this.mag)):this.layer===1?Math.floor(this.mag):this.layer===2?Math.floor(Math.sign(this.mag)*Math.pow(10,Math.abs(this.mag))):this.mag*Number.POSITIVE_INFINITY}set e(e){this.fromMantissaExponent(this.m,e)}get s(){return this.sign}set s(e){e===0?(this.sign=0,this.layer=0,this.mag=0):this.sign=e}get mantissa(){return this.m}set mantissa(e){this.m=e}get exponent(){return this.e}set exponent(e){this.e=e}static fromComponents(e,t,n){return new Q().fromComponents(e,t,n)}static fromComponents_noNormalize(e,t,n){return new Q().fromComponents_noNormalize(e,t,n)}static fromMantissaExponent(e,t){return new Q().fromMantissaExponent(e,t)}static fromMantissaExponent_noNormalize(e,t){return new Q().fromMantissaExponent_noNormalize(e,t)}static fromDecimal(e){return new Q().fromDecimal(e)}static fromNumber(e){return new Q().fromNumber(e)}static fromString(e){return new Q().fromString(e)}static fromValue(e){return new Q().fromValue(e)}static fromValue_noAlloc(e){return e instanceof Q?e:new Q(e)}static abs(e){return D(e).abs()}static neg(e){return D(e).neg()}static negate(e){return D(e).neg()}static negated(e){return D(e).neg()}static sign(e){return D(e).sign}static sgn(e){return D(e).sign}static round(e){return D(e).round()}static floor(e){return D(e).floor()}static ceil(e){return D(e).ceil()}static trunc(e){return D(e).trunc()}static add(e,t){return D(e).add(t)}static plus(e,t){return D(e).add(t)}static sub(e,t){return D(e).sub(t)}static subtract(e,t){return D(e).sub(t)}static minus(e,t){return D(e).sub(t)}static mul(e,t){return D(e).mul(t)}static multiply(e,t){return D(e).mul(t)}static times(e,t){return D(e).mul(t)}static div(e,t){return D(e).div(t)}static divide(e,t){return D(e).div(t)}static recip(e){return D(e).recip()}static reciprocal(e){return D(e).recip()}static reciprocate(e){return D(e).reciprocate()}static cmp(e,t){return D(e).cmp(t)}static cmpabs(e,t){return D(e).cmpabs(t)}static compare(e,t){return D(e).cmp(t)}static isNaN(e){return e=D(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag)}static isFinite(e){return e=D(e),isFinite(e.sign)&&isFinite(e.layer)&&isFinite(e.mag)}static eq(e,t){return D(e).eq(t)}static equals(e,t){return D(e).eq(t)}static neq(e,t){return D(e).neq(t)}static notEquals(e,t){return D(e).notEquals(t)}static lt(e,t){return D(e).lt(t)}static lte(e,t){return D(e).lte(t)}static gt(e,t){return D(e).gt(t)}static gte(e,t){return D(e).gte(t)}static max(e,t){return D(e).max(t)}static min(e,t){return D(e).min(t)}static minabs(e,t){return D(e).minabs(t)}static maxabs(e,t){return D(e).maxabs(t)}static clamp(e,t,n){return D(e).clamp(t,n)}static clampMin(e,t){return D(e).clampMin(t)}static clampMax(e,t){return D(e).clampMax(t)}static cmp_tolerance(e,t,n){return D(e).cmp_tolerance(t,n)}static compare_tolerance(e,t,n){return D(e).cmp_tolerance(t,n)}static eq_tolerance(e,t,n){return D(e).eq_tolerance(t,n)}static equals_tolerance(e,t,n){return D(e).eq_tolerance(t,n)}static neq_tolerance(e,t,n){return D(e).neq_tolerance(t,n)}static notEquals_tolerance(e,t,n){return D(e).notEquals_tolerance(t,n)}static lt_tolerance(e,t,n){return D(e).lt_tolerance(t,n)}static lte_tolerance(e,t,n){return D(e).lte_tolerance(t,n)}static gt_tolerance(e,t,n){return D(e).gt_tolerance(t,n)}static gte_tolerance(e,t,n){return D(e).gte_tolerance(t,n)}static pLog10(e){return D(e).pLog10()}static absLog10(e){return D(e).absLog10()}static log10(e){return D(e).log10()}static log(e,t){return D(e).log(t)}static log2(e){return D(e).log2()}static ln(e){return D(e).ln()}static logarithm(e,t){return D(e).logarithm(t)}static pow(e,t){return D(e).pow(t)}static pow10(e){return D(e).pow10()}static root(e,t){return D(e).root(t)}static factorial(e,t){return D(e).factorial()}static gamma(e,t){return D(e).gamma()}static lngamma(e,t){return D(e).lngamma()}static exp(e){return D(e).exp()}static sqr(e){return D(e).sqr()}static sqrt(e){return D(e).sqrt()}static cube(e){return D(e).cube()}static cbrt(e){return D(e).cbrt()}static tetrate(e,t=2,n=st(1,0,1)){return D(e).tetrate(t,n)}static iteratedexp(e,t=2,n=st(1,0,1)){return D(e).iteratedexp(t,n)}static iteratedlog(e,t=10,n=1){return D(e).iteratedlog(t,n)}static layeradd10(e,t){return D(e).layeradd10(t)}static layeradd(e,t,n=10){return D(e).layeradd(t,n)}static slog(e,t=10){return D(e).slog(t)}static lambertw(e){return D(e).lambertw()}static ssqrt(e){return D(e).ssqrt()}static pentate(e,t=2,n=st(1,0,1)){return D(e).pentate(t,n)}static affordGeometricSeries(e,t,n,r){return this.affordGeometricSeries_core(D(e),D(t),D(n),r)}static sumGeometricSeries(e,t,n,r){return this.sumGeometricSeries_core(e,D(t),D(n),r)}static affordArithmeticSeries(e,t,n,r){return this.affordArithmeticSeries_core(D(e),D(t),D(n),D(r))}static sumArithmeticSeries(e,t,n,r){return this.sumArithmeticSeries_core(D(e),D(t),D(n),D(r))}static efficiencyOfPurchase(e,t,n){return this.efficiencyOfPurchase_core(D(e),D(t),D(n))}static randomDecimalForTesting(e){if(Math.random()*20<1)return st(0,0,0);const t=Math.random()>.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<ux)return this.layer+=1,this.mag=Math.log10(this.mag),this;let e=Math.abs(this.mag),t=Math.sign(this.mag);if(e>=sx)return this.layer+=1,this.mag=t*Math.log10(e),this;for(;e<lx&&this.layer>0;)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<u[1].length;++h){const p=u[1].charCodeAt(h);if(p>=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.sign<t.sign?-1:this.sign*this.cmpabs(e)}cmpabs(e){const t=D(e),n=this.mag>0?this.layer:-this.layer,r=t.mag>0?t.layer:-t.layer;return n>r?1:n<r?-1:this.mag>t.mag?1:this.mag<t.mag?-1:0}compare(e){return this.cmp(e)}isNan(){return isNaN(this.sign)||isNaN(this.layer)||isNaN(this.mag)}isFinite(){return isFinite(this.sign)&&isFinite(this.layer)&&isFinite(this.mag)}eq(e){const t=D(e);return this.sign===t.sign&&this.layer===t.layer&&this.mag===t.mag}equals(e){return this.eq(e)}neq(e){return!this.eq(e)}notEquals(e){return this.neq(e)}lt(e){return this.cmp(e)===-1}lte(e){return!this.gt(e)}gt(e){return this.cmp(e)===1}gte(e){return!this.lt(e)}max(e){const t=D(e);return this.lt(t)?t:this}min(e){const t=D(e);return this.gt(t)?t:this}maxabs(e){const t=D(e);return this.cmpabs(t)<0?t:this}minabs(e){const t=D(e);return this.cmpabs(t)>0?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.layer<n.layer&&(r=yu(r)),Math.abs(r-i)<=t*Math.max(Math.abs(r),Math.abs(i))}equals_tolerance(e,t){return this.eq_tolerance(e,t)}neq_tolerance(e,t){return!this.eq_tolerance(e,t)}notEquals_tolerance(e,t){return this.neq_tolerance(e,t)}lt_tolerance(e,t){const n=D(e);return!this.eq_tolerance(n,t)&&this.lt(n)}lte_tolerance(e,t){const n=D(e);return this.eq_tolerance(n,t)||this.lt(n)}gt_tolerance(e,t){const n=D(e);return!this.eq_tolerance(n,t)&&this.gt(n)}gte_tolerance(e,t){const n=D(e);return this.eq_tolerance(n,t)||this.gt(n)}pLog10(){return this.lt(Q.dZero)?Q.dZero:this.log10()}absLog10(){return this.sign===0?Q.dNaN:this.layer>0?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;i<e;++i){const a=t;if(t=this.pow(t),a.eq(t))return t}if(r!=0){const i=this.pow(t);return t.mul(1-r).add(i.mul(r))}return t}r!==0&&(t.eq(Q.dOne)?this.gt(10)?t=this.pow(r):(t=D(Q.tetrate_critical(this.toNumber(),r)),this.lt(2)&&(t=t.sub(1).mul(this.minus(1)).plus(1))):this.eq(10)?t=t.layeradd10(r):t=t.layeradd(r,this));for(let i=0;i<e;++i){if(t=this.pow(t),!isFinite(t.layer)||!isFinite(t.mag))return t.normalize();if(t.layer-this.layer>3)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;a<t;++a){if(n=n.log(e),!isFinite(n.layer)||!isFinite(n.mag))return n.normalize();if(a>1e4)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;s<Ii.length;++s)if(Ii[s]==e){r=n[s][Math.floor(t)],i=n[s][Math.ceil(t)];break}else if(Ii[s]<e&&Ii[s+1]>e){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;i<e;++i){if(t=this.tetrate(t.toNumber()),!isFinite(t.layer)||!isFinite(t.mag))return t.normalize();if(i>10)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 <https://github.com/jonschlinkert/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<l.length;c++)a[l][l.charAt(c)]=c}return a[l][u]}var s={compressToBase64:function(l){if(l==null)return"";var u=s._compress(l,6,function(c){return r.charAt(c)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:s._decompress(l.length,32,function(u){return o(r,l.charAt(u))})},compressToUTF16:function(l){return l==null?"":s._compress(l,15,function(u){return n(u+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:s._decompress(l.length,16384,function(u){return l.charCodeAt(u)-32})},compressToUint8Array:function(l){for(var u=s.compress(l),c=new Uint8Array(u.length*2),f=0,d=u.length;f<d;f++){var h=u.charCodeAt(f);c[f*2]=h>>>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<f;c++)u[c]=l[c*2]*256+l[c*2+1];var d=[];return u.forEach(function(h){d.push(n(h))}),s.decompress(d.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":s._compress(l,6,function(u){return i.charAt(u)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),s._decompress(l.length,32,function(u){return o(i,l.charAt(u))}))},compress:function(l){return s._compress(l,16,function(u){return n(u)})},_compress:function(l,u,c){if(l==null)return"";var f,d,h={},p={},v="",g="",y="",m=2,b=3,T=2,S=[],w=0,N=0,I;for(I=0;I<l.length;I+=1)if(v=l.charAt(I),Object.prototype.hasOwnProperty.call(h,v)||(h[v]=b++,p[v]=!0),g=y+v,Object.prototype.hasOwnProperty.call(h,g))y=g;else{if(Object.prototype.hasOwnProperty.call(p,y)){if(y.charCodeAt(0)<256){for(f=0;f<T;f++)w=w<<1,N==u-1?(N=0,S.push(c(w)),w=0):N++;for(d=y.charCodeAt(0),f=0;f<8;f++)w=w<<1|d&1,N==u-1?(N=0,S.push(c(w)),w=0):N++,d=d>>1}else{for(d=1,f=0;f<T;f++)w=w<<1|d,N==u-1?(N=0,S.push(c(w)),w=0):N++,d=0;for(d=y.charCodeAt(0),f=0;f<16;f++)w=w<<1|d&1,N==u-1?(N=0,S.push(c(w)),w=0):N++,d=d>>1}m--,m==0&&(m=Math.pow(2,T),T++),delete p[y]}else for(d=h[y],f=0;f<T;f++)w=w<<1|d&1,N==u-1?(N=0,S.push(c(w)),w=0):N++,d=d>>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<T;f++)w=w<<1,N==u-1?(N=0,S.push(c(w)),w=0):N++;for(d=y.charCodeAt(0),f=0;f<8;f++)w=w<<1|d&1,N==u-1?(N=0,S.push(c(w)),w=0):N++,d=d>>1}else{for(d=1,f=0;f<T;f++)w=w<<1|d,N==u-1?(N=0,S.push(c(w)),w=0):N++,d=0;for(d=y.charCodeAt(0),f=0;f<16;f++)w=w<<1|d&1,N==u-1?(N=0,S.push(c(w)),w=0):N++,d=d>>1}m--,m==0&&(m=Math.pow(2,T),T++),delete p[y]}else for(d=h[y],f=0;f<T;f++)w=w<<1|d&1,N==u-1?(N=0,S.push(c(w)),w=0):N++,d=d>>1;m--,m==0&&(m=Math.pow(2,T),T++)}for(d=2,f=0;f<T;f++)w=w<<1|d&1,N==u-1?(N=0,S.push(c(w)),w=0):N++,d=d>>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}</${t}>`),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<t;n++)r[n]=e[n];return r}function ji(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ig(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=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++<e.value.length&&(e.value.length<=o&&(o=0),!r(o));)++o},pointerBackward:function(){if(a.value!==!1&&t.value!==null)for(var o=t.value-1,s=0;o!==t.value&&s++<e.value.length&&(o<0&&(o=e.value.length-1),!r(o));)--o},pointerSet:r}},xl=Ie({name:"vue-select",inheritAttrs:!1,props:{modelValue:{required:!0},emptyModelValue:{},options:{required:!0,type:Array},labelBy:{type:[String,Function]},valueBy:{type:[String,Function]},disabledBy:{default:"disabled",type:[String,Function]},groupBy:{default:"group",type:[String,Function]},visibleOptions:{type:Array,default:null},multiple:{default:!1,type:Boolean},min:{default:0,type:Number},max:{default:1/0,type:Number},searchable:{default:!1,type:Boolean},searchPlaceholder:{default:"Type to search",type:String},clearOnSelect:{default:!1,type:Boolean},clearOnClose:{default:!1,type:Boolean},taggable:{default:!1,type:Boolean},collapseTags:{default:!1,type:Boolean},autocomplete:{default:"off",type:String},disabled:{default:!1,type:Boolean},loading:{default:!1,type:Boolean},closeOnSelect:{default:!1,type:Boolean},hideSelected:{default:!1,type:Boolean},placeholder:{default:"Select option",type:String},tabindex:{default:0,type:Number},autofocus:{default:!1,type:Boolean},maxHeight:{default:300,type:Number},openDirection:{type:String,validator:function(e){return["top","bottom"].includes(e)}}},emits:["selected","removed","update:modelValue","focus","blur","toggle","opened","closed","search:input","search:change","search:focus","search:blur"],setup:function(e,t){var n=function(k){var X=Pr({}),ce=Cs(Sn(k,"labelBy"));zt(function(){return X.labelBy=ce.value});var ue=Cs(Sn(k,"valueBy"));zt(function(){return X.valueBy=ue.value});var Ve=Cs(Sn(k,"disabledBy"));zt(function(){return X.disabledBy=Ve.value});var ie=Cs(Sn(k,"groupBy"));zt(function(){return X.groupBy=ie.value});var Ze=J(function(){return k.multiple?k.min:Math.min(1,k.min)});zt(function(){return X.min=Ze.value});var at=J(function(){return k.multiple?k.max:1});return zt(function(){return X.max=at.value}),zt(function(){return X.options=k.options}),X}(e),r=J(function(){var k;return(k=e.emptyModelValue)!==null&&k!==void 0?k:null}),i=Fr(),a=Te(),o=Te(),s=Te(),l=J(function(){var k;return(k=s.value)===null||k===void 0?void 0:k._.refs.input}),u=Te(!1);Dt(function(){return u.value},function(){var k,X;u.value?(t.emit("opened"),t.emit("focus"),e.searchable?(l.value!==document.activeElement&&l.value.focus(),t.emit("search:focus")):(k=a.value)===null||k===void 0||k.focus()):(e.searchable?(l.value===document.activeElement&&l.value.blur(),e.clearOnClose&&N(),t.emit("search:blur")):(X=a.value)===null||X===void 0||X.blur(),t.emit("closed"),t.emit("blur")),t.emit("toggle")});var c=function(){e.disabled||(u.value=!0)},f=function(k){var X;!((X=a.value)===null||X===void 0)&&X.contains(k==null?void 0:k.relatedTarget)?setTimeout(function(){var ce;(ce=a.value)===null||ce===void 0||ce.focus()}):u.value=!1};Dt(function(){return e.disabled},function(){return f()});var d=Te(""),h=J(function(){return new RegExp(d.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}),p=J(function(){return d.value?n.options.filter(function(k){return h.value.test(n.labelBy(k))}):void 0}),v=Te([]),g=J(function(){return new Set(v.value.map(function(k){return n.valueBy(k)}))}),y=function(){if(e.multiple){if(Array.isArray(e.modelValue)===!1||v.value.length!==e.modelValue.length||Object.keys(v.value).some(function(k){return v.value[k]!==Ni(n.options,e.modelValue[k],{valueBy:n.valueBy})}))return!1}else if(v.value.length===0&&e.modelValue!==r.value||v.value.length===1&&e.modelValue===r.value||v.value[0]!==Ni(n.options,e.modelValue,{valueBy:n.valueBy}))return!1;return!0},m=function(){if(!y()){v.value=[];var k,X=ji(e.multiple?e.modelValue:e.modelValue===r.value?[]:[e.modelValue]);try{for(X.s();!(k=X.n()).done;){var ce=k.value,ue=Ni(n.options,ce,{valueBy:n.valueBy});To(n.options,ue,{valueBy:n.valueBy})!==!1&&(v.value=bu(v.value,ue,{max:1/0,valueBy:n.valueBy}))}}catch(Ve){X.e(Ve)}finally{X.f()}}};m(),Dt(function(){return e.modelValue},function(){return m()},{deep:!0}),Dt(function(){return n.options},function(){v.value=n.options.filter(function(k){return g.value.has(n.valueBy(k))})},{deep:!0});var b,T=function(k,X){(X=X.originalOption).value.every(function(ce){var ue=Ni(n.options,ce,{valueBy:n.valueBy});return To(v.value,ue,{valueBy:n.valueBy})})?X.value.forEach(function(ce){var ue=Ni(n.options,ce,{valueBy:n.valueBy});v.value=xu(v.value,ue,{min:n.min,valueBy:n.valueBy}),t.emit("removed",ue)}):X.value.forEach(function(ce){var ue=Ni(n.options,ce,{valueBy:n.valueBy});To(v.value,ue,{valueBy:n.valueBy})||(v.value=bu(v.value,ue,{max:n.max,valueBy:n.valueBy}),t.emit("selected",ue))})},S=function(k,X){if(X=X.originalOption,To(v.value,X,{valueBy:n.valueBy}))v.value=xu(v.value,X,{min:n.min,valueBy:n.valueBy}),t.emit("removed",X);else{if(!e.multiple&&v.value.length===1){var ce=v.value[0];v.value=xu(v.value,v.value[0],{min:0,valueBy:n.valueBy}),t.emit("removed",ce)}v.value=bu(v.value,X,{max:n.max,valueBy:n.valueBy}),t.emit("selected",X)}},w=function(){if(!y()){var k=v.value.map(function(X){return n.valueBy(X)});e.multiple?t.emit("update:modelValue",k):k.length?t.emit("update:modelValue",k[0]):t.emit("update:modelValue",r.value)}},N=function(){l.value.value="",l.value.dispatchEvent(new Event("input")),l.value.dispatchEvent(new Event("change"))},I=J(function(){var k,X;return(X=(k=e.visibleOptions)!==null&&k!==void 0?k:p.value)!==null&&X!==void 0?X:n.options}),R=Te(0),U=J(function(){var k,X=new Set(I.value.map(function(ie){return n.valueBy(ie)})),ce=n.options.map(function(ie,Ze){var at,ut={key:n.valueBy(ie),label:n.labelBy(ie),group:(at=n.groupBy(ie))!==null&&at!==void 0&&at,originalIndex:Ze,originalOption:ie};return ut.selected=ut.group?ie.value.every(function(E){return g.value.has(E)}):g.value.has(n.valueBy(ie)),ut.disabled=ut.group?n.disabledBy(ie)||ie.value.every(function(E){var A=Ni(n.options,E,{valueBy:n.valueBy});return n.disabledBy(A)}):n.disabledBy(ie),ut.visible=ut.group?ie.value.some(function(E){return X.has(E)}):X.has(n.valueBy(ie)),ut.hidden=!!e.hideSelected&&(ut.group?ie.value.every(function(E){return g.value.has(E)}):g.value.has(n.valueBy(ie))),ut}),ue=ji(ce);try{for(ue.s();!(k=ue.n()).done;){var Ve=k.value;Ve.group!==!1&&Ve.disabled&&function(){var ie=new Set(Ve.originalOption.value);ce.filter(function(Ze){return ie.has(n.valueBy(Ze.originalOption))}).forEach(function(Ze){return Ze.disabled=!0})}()}}catch(ie){ue.e(ie)}finally{ue.f()}return ce}),$=U_(U,R),z=$.pointerForward,j=$.pointerBackward,B=$.pointerSet,he="",Y=/^[\w]$/,oe=J(function(){var k=gh(n.options.keys());return k.slice(R.value).concat(k.slice(0,R.value))}),me=function(){var k,X=(k=a.value)===null||k===void 0?void 0:k.querySelector(".highlighted");if(X&&o.value){var ce,ue=getComputedStyle(X);for(ce=0;X.offsetTop+parseFloat(ue.height)+parseFloat(ue.paddingTop)+parseFloat(ue.paddingBottom)>o.value.$el.clientHeight+o.value.$el.scrollTop&&ce++<U.value.length;)o.value.$el.scrollTop=o.value.$el.scrollTop+parseFloat(ue.height)+parseFloat(ue.paddingTop)+parseFloat(ue.paddingBottom);for(ce=0;X.offsetTop<o.value.$el.scrollTop&&ce++<U.value.length;)o.value.$el.scrollTop=o.value.$el.scrollTop-parseFloat(ue.height)-parseFloat(ue.paddingTop)-parseFloat(ue.paddingBottom)}};Dt(function(){return[u.value,n.options,g.value]},function(k,X){(X==null?void 0:X[0])!==!0&&u.value!==!1&&v.value.length!==0&&(B(n.options.findIndex(function(ce){return g.value.has(n.valueBy(ce))})),tn(me))},{deep:!0,immediate:!0});var Ke=J(function(){return{"data-is-focusing":u.value,"data-visible-length":U.value.filter(function(k){return k.visible&&k.hidden===!1}).length,"data-not-selected-length":n.options.length-U.value.filter(function(k){return k.selected}).length,"data-selected-length":U.value.filter(function(k){return k.selected}).length,"data-addable":U.value.filter(function(k){return k.selected}).length<n.max,"data-removable":U.value.filter(function(k){return k.selected}).length>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></span>","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   <trash@rubaxa.org>
+ * @author	owenm    <owen23355@gmail.com>
+ * @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<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yh(Object(n),!0).forEach(function(r){eT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function el(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?el=function(t){return typeof t}:el=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},el(e)}function eT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qn(){return Qn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qn.apply(this,arguments)}function tT(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=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<a.length;i++)r=a[i],!(t.indexOf(r)>=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;n++)r[n]=e[n];return r}function sT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var lT="1.14.0";function Vr(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var Yr=Vr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ls=Vr(/Edge/i),bh=Vr(/firefox/i),Ca=Vr(/safari/i)&&!Vr(/chrome/i)&&!Vr(/android/i),lg=Vr(/iP(ad|od|hone)/i),uT=Vr(/chrome/i)&&Vr(/android/i),ug={capture:!1,passive:!1};function lt(e,t,n){e.addEventListener(t,n,!Yr&&ug)}function rt(e,t,n){e.removeEventListener(t,n,!Yr&&ug)}function _l(e,t){if(!!t){if(t[0]===">"&&(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;i++)n(r[i],i);return r}return[]}function Ir(){var e=document.scrollingElement;return e||document.documentElement}function Ft(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,o,s,l,u,c,f;if(e!==window&&e.parentNode&&e!==Ir()?(a=e.getBoundingClientRect(),o=a.top,s=a.left,l=a.bottom,u=a.right,c=a.height,f=a.width):(o=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!Yr))do if(i&&i.getBoundingClientRect&&(Ee(i,"transform")!=="none"||n&&Ee(i,"position")!=="static")){var d=i.getBoundingClientRect();o-=d.top+parseInt(Ee(i,"border-top-width")),s-=d.left+parseInt(Ee(i,"border-left-width")),l=o+a.height,u=s+a.width;break}while(i=i.parentNode);if(r&&e!==window){var h=qi(i||e),p=h&&h.a,v=h&&h.d;h&&(o/=v,s/=p,f/=p,c/=v,l=o+c,u=s+f)}return{top:o,left:s,bottom:l,right:u,width:f,height:c}}}function _h(e,t,n){for(var r=ui(e,!0),i=Ft(e)[t];r;){var a=Ft(r)[n],o=void 0;if(n==="top"||n==="left"?o=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;a<o.length;){if(o[a].style.display!=="none"&&o[a]!==ke.ghost&&(r||o[a]!==ke.dragged)&&or(o[a],n.draggable,e,!1)){if(i===t)return o[a];i++}a++}return null}function Vf(e,t){for(var n=e.lastElementChild;n&&(n===ke.ghost||Ee(n,"display")==="none"||t&&!_l(n,t));)n=n.previousElementSibling;return n||null}function Ht(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==ke.clone&&(!t||_l(e,t))&&n++;return n}function Th(e){var t=0,n=0,r=Ir();if(e)do{var i=qi(e),a=i.a,o=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*o}while(e!==r&&(e=e.parentNode));return[t,n]}function fT(e,t){for(var n in e)if(!!e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function ui(e,t){if(!e||!e.getBoundingClientRect)return Ir();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=Ee(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Ir();if(r||t)return n;r=!0}}while(n=n.parentNode);return Ir()}function dT(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function _u(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var Ea;function fg(e,t){return function(){if(!Ea){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),Ea=setTimeout(function(){Ea=void 0},t)}}}function hT(){clearTimeout(Ea),Ea=void 0}function dg(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function $f(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function wh(e,t){Ee(e,"position","absolute"),Ee(e,"top",t.top),Ee(e,"left",t.left),Ee(e,"width",t.width),Ee(e,"height",t.height)}function Tu(e){Ee(e,"position",""),Ee(e,"top",""),Ee(e,"left",""),Ee(e,"width",""),Ee(e,"height","")}var vn="Sortable"+new Date().getTime();function pT(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(Ee(i,"display")==="none"||i===ke.ghost)){e.push({target:i,rect:Ft(i)});var a=Or({},e[e.length-1].rect);if(i.thisAnimationDuration){var o=qi(i,!0);o&&(a.top-=o.f,a.left-=o.e)}i.fromRect=a}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(fT(e,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var a=!1,o=0;e.forEach(function(s){var l=0,u=s.target,c=u.fromRect,f=Ft(u),d=u.prevFromRect,h=u.prevToRect,p=s.rect,v=qi(u,!0);v&&(f.top-=v.f,f.left-=v.e),u.toRect=f,u.thisAnimationDuration&&_u(d,f)&&!_u(c,f)&&(p.top-f.top)/(p.left-f.left)===(c.top-f.top)/(c.left-f.left)&&(l=mT(p,d,h,i.options)),_u(f,c)||(u.prevFromRect=c,u.prevToRect=f,l||(l=i.options.animation),i.animate(u,p,f,l)),l&&(a=!0,o=Math.max(o,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(t),a?t=setTimeout(function(){typeof r=="function"&&r()},o):typeof r=="function"&&r(),e=[]},animate:function(r,i,a,o){if(o){Ee(r,"transition",""),Ee(r,"transform","");var s=qi(this.el),l=s&&s.a,u=s&&s.d,c=(i.left-a.left)/(l||1),f=(i.top-a.top)/(u||1);r.animatingX=!!c,r.animatingY=!!f,Ee(r,"transform","translate3d("+c+"px,"+f+"px,0)"),this.forRepaintDummy=vT(r),Ee(r,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),Ee(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){Ee(r,"transition",""),Ee(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},o)}}}}function vT(e){return e.offsetWidth}function mT(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var co=[],wu={initializeByDefault:!0},us={mount:function(t){for(var n in wu)wu.hasOwnProperty(n)&&!(n in t)&&(t[n]=wu[n]);co.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),co.push(t)},pluginEvent:function(t,n,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var a=t+"Global";co.forEach(function(o){!n[o.pluginName]||(n[o.pluginName][a]&&n[o.pluginName][a](Or({sortable:n},r)),n.options[o.pluginName]&&n[o.pluginName][t]&&n[o.pluginName][t](Or({sortable:n},r)))})},initializePlugins:function(t,n,r,i){co.forEach(function(s){var l=s.pluginName;if(!(!t.options[l]&&!s.initializeByDefault)){var u=new s(t,n,t.options);u.sortable=t,u.options=t.options,t[l]=u,Qn(r,u.defaults)}});for(var a in t.options)if(!!t.options.hasOwnProperty(a)){var o=this.modifyOption(t,a,t.options[a]);typeof o!="undefined"&&(t.options[a]=o)}},getEventProperties:function(t,n){var r={};return co.forEach(function(i){typeof i.eventProperties=="function"&&Qn(r,i.eventProperties.call(n[i.pluginName],t))}),r},modifyOption:function(t,n,r){var i;return co.forEach(function(a){!t[a.pluginName]||a.optionListeners&&typeof a.optionListeners[n]=="function"&&(i=a.optionListeners[n].call(t[a.pluginName],r))}),i}};function ua(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,a=e.cloneEl,o=e.toEl,s=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,f=e.newDraggableIndex,d=e.originalEvent,h=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[vn],!!t){var v,g=t.options,y="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Yr&&!ls?v=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(r,!0,!0)),v.to=o||n,v.from=s||n,v.item=i||n,v.clone=a,v.oldIndex=l,v.newIndex=u,v.oldDraggableIndex=c,v.newDraggableIndex=f,v.originalEvent=d,v.pullMode=h?h.lastPutMode:void 0;var m=Or(Or({},p),us.getEventProperties(r,t));for(var b in m)v[b]=m[b];n&&n.dispatchEvent(v),g[y]&&g[y].call(t,v)}}var gT=["evt"],wn=function(t,n){var r=arguments.length>2&&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&&lt(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&&lt(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))<r)return;this._onDragStart(t,!0)}if(We){o?(o.e+=c-(Cu||0),o.f+=f-(Eu||0)):o={a:1,b:0,c:0,d:1,e:c,f};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");Ee(We,"webkitTransform",d),Ee(We,"mozTransform",d),Ee(We,"msTransform",d),Ee(We,"transform",d),Cu=c,Eu=f,qn=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!We){var t=this.options.fallbackOnBody?document.body:Pt,n=Ft(fe,!0,Ss,!0,t),r=this.options;if(Ss){for(dn=t;Ee(dn,"position")==="static"&&Ee(dn,"transform")==="none"&&dn!==document;)dn=dn.parentNode;dn!==document.body&&dn!==document.documentElement?(dn===document&&(dn=Ir()),n.top+=dn.scrollTop,n.left+=dn.scrollLeft):dn=Ir(),Iu=Th(dn)}We=fe.cloneNode(!0),Ut(We,r.ghostClass,!1),Ut(We,r.fallbackClass,!0),Ut(We,r.dragClass,!0),Ee(We,"transition",""),Ee(We,"transform",""),Ee(We,"box-sizing","border-box"),Ee(We,"margin",0),Ee(We,"top",n.top),Ee(We,"left",n.left),Ee(We,"width",n.width),Ee(We,"height",n.height),Ee(We,"opacity","0.8"),Ee(We,"position",Ss?"absolute":"fixed"),Ee(We,"zIndex","100000"),Ee(We,"pointerEvents","none"),ke.ghost=We,t.appendChild(We),Ee(We,"transform-origin",Ch/parseInt(We.style.width)*100+"% "+Eh/parseInt(We.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,i=t.dataTransfer,a=r.options;if(wn("dragStart",this,{evt:t}),ke.eventCanceled){this._onDrop();return}wn("setupClone",this),ke.eventCanceled||(jt=$f(fe),jt.draggable=!1,jt.style["will-change"]="",this._hideClone(),Ut(jt,this.options.chosenClass,!1),ke.clone=jt),r.cloneId=rl(function(){wn("clone",r),!ke.eventCanceled&&(r.options.removeCloneOnHide||Pt.insertBefore(jt,fe),r._hideClone(),xn({sortable:r,name:"clone"}))}),!n&&Ut(fe,a.dragClass,!0),n?(Tl=!0,r._loopId=setInterval(r._emulateDragOver,50)):(rt(document,"mouseup",r._onDrop),rt(document,"touchend",r._onDrop),rt(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",a.setData&&a.setData.call(r,i,fe)),lt(document,"drop",r),Ee(fe,"transform","translateZ(0)")),_o=!0,r._dragStartId=rl(r._dragStarted.bind(r,n,t)),lt(document,"selectstart",r),ca=!0,Ca&&Ee(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,r=t.target,i,a,o,s=this.options,l=s.group,u=ke.active,c=Es===l,f=s.sort,d=cn||u,h,p=this,v=!1;if(Ic)return;function g(me,Ke){wn(me,p,Or({evt:t,isOwner:c,axis:h?"vertical":"horizontal",revert:o,dragRect:i,targetRect:a,canSort:f,fromSortable:d,target:r,completed:m,onMove:function(de,ye){return Ns(Pt,n,fe,i,de,Ft(de),t,ye)},changed:b},Ke))}function y(){g("dragOverAnimationCapture"),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function m(me){return g("dragOverCompleted",{insertion:me}),me&&(c?u._hideClone():u._showClone(p),p!==d&&(Ut(fe,cn?cn.options.ghostClass:u.options.ghostClass,!1),Ut(fe,s.ghostClass,!0)),cn!==p&&p!==ke.active?cn=p:p===ke.active&&cn&&(cn=null),d===p&&(p._ignoreWhileAnimating=r),p.animateAll(function(){g("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(r===fe&&!fe.animated||r===n&&!r.animated)&&(fo=null),!s.dragoverBubble&&!t.rootEl&&r!==document&&(fe.parentNode[vn]._isOutsideThisEl(t.target),!me&&Ai(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function b(){Pn=Ht(fe),oi=Ht(fe,s.draggable),xn({sortable:p,name:"change",toEl:n,newIndex:Pn,newDraggableIndex:oi,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=or(r,s.draggable,n,!0),g("dragOver"),ke.eventCanceled)return v;if(fe.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||p._ignoreWhileAnimating===r)return m(!1);if(Tl=!1,u&&!s.disabled&&(c?f||(o=$t!==Pt):cn===this||(this.lastPutMode=Es.checkPull(this,u,fe,t))&&l.checkPut(this,u,fe,t))){if(h=this._getDirection(t,r)==="vertical",i=Ft(fe),g("dragOverValid"),ke.eventCanceled)return v;if(o)return $t=Pt,y(),this._hideClone(),g("revert"),ke.eventCanceled||(Li?Pt.insertBefore(fe,Li):Pt.appendChild(fe)),m(!0);var T=Vf(n,s.draggable);if(!T||ET(t,h,this)&&!T.animated){if(T===fe)return m(!1);if(T&&n===t.target&&(r=T),r&&(a=Ft(r)),Ns(Pt,n,fe,i,r,a,t,!!r)!==!1)return y(),n.appendChild(fe),$t=n,b(),m(!0)}else if(T&&CT(t,h,this)){var S=$o(n,0,s,!0);if(S===fe)return m(!1);if(r=S,a=Ft(r),Ns(Pt,n,fe,i,r,a,t,!1)!==!1)return y(),n.insertBefore(fe,S),$t=n,b(),m(!0)}else if(r.parentNode===n){a=Ft(r);var w=0,N,I=fe.parentNode!==n,R=!bT(fe.animated&&fe.toRect||i,r.animated&&r.toRect||a,h),U=h?"top":"left",$=_h(r,"top","top")||_h(fe,"top","top"),z=$?$.scrollTop:void 0;fo!==r&&(N=a[U],Na=!1,Is=!R&&s.invertSwap||I),w=IT(t,r,a,h,R?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,Is,fo===r);var j;if(w!==0){var B=Ht(fe);do B-=w,j=$t.children[B];while(j&&(Ee(j,"display")==="none"||j===We))}if(w===0||j===r)return m(!1);fo=r,Sa=w;var he=r.nextElementSibling,Y=!1;Y=w===1;var oe=Ns(Pt,n,fe,i,r,a,t,Y);if(oe!==!1)return(oe===1||oe===-1)&&(Y=oe===1),Ic=!0,setTimeout(wT,30),y(),Y&&!he?n.appendChild(fe):r.parentNode.insertBefore(fe,Y?he:r),$&&dg($,0,z-$.scrollTop),$t=fe.parentNode,N!==void 0&&!Is&&(nl=Math.abs(N-Ft(r)[U])),b(),m(!0)}if(n.contains(fe))return m(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){rt(document,"mousemove",this._onTouchMove),rt(document,"touchmove",this._onTouchMove),rt(document,"pointermove",this._onTouchMove),rt(document,"dragover",Ai),rt(document,"mousemove",Ai),rt(document,"touchmove",Ai)},_offUpEvents:function(){var t=this.el.ownerDocument;rt(t,"mouseup",this._onDrop),rt(t,"touchend",this._onDrop),rt(t,"pointerup",this._onDrop),rt(t,"touchcancel",this._onDrop),rt(document,"selectstart",this)},_onDrop:function(t){var n=this.el,r=this.options;if(Pn=Ht(fe),oi=Ht(fe,r.draggable),wn("drop",this,{evt:t}),$t=fe&&fe.parentNode,Pn=Ht(fe),oi=Ht(fe,r.draggable),ke.eventCanceled){this._nulling();return}_o=!1,Is=!1,Na=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Sc(this.cloneId),Sc(this._dragStartId),this.nativeDraggable&&(rt(document,"drop",this),rt(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ca&&Ee(document.body,"user-select",""),Ee(fe,"transform",""),t&&(ca&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),We&&We.parentNode&&We.parentNode.removeChild(We),(Pt===$t||cn&&cn.lastPutMode!=="clone")&&jt&&jt.parentNode&&jt.parentNode.removeChild(jt),fe&&(this.nativeDraggable&&rt(fe,"dragend",this),Su(fe),fe.style["will-change"]="",ca&&!_o&&Ut(fe,cn?cn.options.ghostClass:this.options.ghostClass,!1),Ut(fe,this.options.chosenClass,!1),xn({sortable:this,name:"unchoose",toEl:$t,newIndex:null,newDraggableIndex:null,originalEvent:t}),Pt!==$t?(Pn>=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;i<a;i++)n=r[i],or(n,o.draggable,this.el,!1)&&t.push(n.getAttribute(o.dataIdAttr)||NT(n));return t},sort:function(t,n){var r={},i=this.el;this.toArray().forEach(function(a,o){var s=i.children[o];or(s,this.options.draggable,i,!1)&&(r[a]=s)},this),n&&this.captureAnimationState(),t.forEach(function(a){r[a]&&(i.removeChild(r[a]),i.appendChild(r[a]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return or(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var r=this.options;if(n===void 0)return r[t];var i=us.modifyOption(this,t,n);typeof i!="undefined"?r[t]=i:r[t]=n,t==="group"&&vg(r)},destroy:function(){wn("destroy",this);var t=this.el;t[vn]=null,rt(t,"mousedown",this._onTapStart),rt(t,"touchstart",this._onTapStart),rt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(rt(t,"dragover",this),rt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),wl.splice(wl.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!si){if(wn("hideClone",this),ke.eventCanceled)return;Ee(jt,"display","none"),this.options.removeCloneOnHide&&jt.parentNode&&jt.parentNode.removeChild(jt),si=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(si){if(wn("showClone",this),ke.eventCanceled)return;fe.parentNode==Pt&&!this.options.group.revertClone?Pt.insertBefore(jt,fe):Li?Pt.insertBefore(jt,Li):Pt.appendChild(jt),this.options.group.revertClone&&this.animate(fe,jt),Ee(jt,"display",""),si=!1}}};function TT(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Ns(e,t,n,r,i,a,o,s){var l,u=e[vn],c=u.options.onMove,f;return window.CustomEvent&&!Yr&&!ls?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=a||Ft(t),l.willInsertAfter=s,l.originalEvent=o,e.dispatchEvent(l),c&&(f=c.call(u,l,o)),f}function Su(e){e.draggable=!1}function wT(){Ic=!1}function CT(e,t,n){var r=Ft($o(n.el,0,n.options,!0)),i=10;return t?e.clientX<r.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-i||e.clientY<r.bottom&&e.clientX<r.left}function ET(e,t,n){var r=Ft(Vf(n.el,n.options.draggable)),i=10;return t?e.clientX>r.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&&nl<u*i){if(!Na&&(Sa===1?l>c+u*a/2:l<f-u*a/2)&&(Na=!0),Na)d=!0;else if(Sa===1?l<c+nl:l>f-nl)return-Sa}else if(l>c+u*(1-i)/2&&l<f-u*(1-i)/2)return ST(t)}return d=d||o,d&&(l<c+u*a/2||l>f-u*a/2)?l>c+u/2?1:-1:0}function ST(e){return Ht(fe)<Ht(e)?1:-1}function NT(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function RT(e){Cl.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&Cl.push(r)}}function rl(e){return setTimeout(e,0)}function Sc(e){return clearTimeout(e)}ql&&lt(document,"touchmove",function(e){(ke.active||_o)&&e.cancelable&&e.preventDefault()});ke.utils={on:lt,off:rt,css:Ee,find:cg,is:function(t,n){return!!or(t,n,t,!1)},extend:dT,throttle:fg,closest:or,toggleClass:Ut,clone:$f,index:Ht,nextTick:rl,cancelNextTick:Sc,detectDirection:pg,getChild:$o};ke.get=function(e){return e[vn]};ke.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(ke.utils=Or(Or({},ke.utils),r.utils)),us.mount(r)})};ke.create=function(e,t){return new ke(e,t)};ke.version=lT;var Qt=[],fa,Nc,Rc=!1,Nu,Ru,El,da;function AT(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?lt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?lt(document,"pointermove",this._handleFallbackAutoScroll):r.touches?lt(document,"touchmove",this._handleFallbackAutoScroll):lt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?rt(document,"dragover",this._handleAutoScroll):(rt(document,"pointermove",this._handleFallbackAutoScroll),rt(document,"touchmove",this._handleFallbackAutoScroll),rt(document,"mousemove",this._handleFallbackAutoScroll)),Sh(),il(),hT()},nulling:function(){El=Nc=fa=Rc=da=Nu=Ru=null,Qt.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var i=this,a=(n.touches?n.touches[0]:n).clientX,o=(n.touches?n.touches[0]:n).clientY,s=document.elementFromPoint(a,o);if(El=n,r||this.options.forceAutoScrollFallback||ls||Yr||Ca){Au(n,this.options,s,r);var l=ui(s,!0);Rc&&(!da||a!==Nu||o!==Ru)&&(da&&Sh(),da=setInterval(function(){var u=ui(document.elementFromPoint(a,o),!0);u!==l&&(l=u,il()),Au(n,i.options,u,r)},10),Nu=a,Ru=o)}else{if(!this.options.bubbleScroll||ui(s,!0)===Ir()){il();return}Au(n,this.options,ui(s,!1),!1)}}},Qn(e,{pluginName:"scroll",initializeByDefault:!0})}function il(){Qt.forEach(function(e){clearInterval(e.pid)}),Qt=[]}function Sh(){clearInterval(da)}var Au=fg(function(e,t,n,r){if(!!t.scroll){var i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,o=t.scrollSensitivity,s=t.scrollSpeed,l=Ir(),u=!1,c;Nc!==n&&(Nc=n,il(),fa=t.scroll,c=t.scrollFn,fa===!0&&(fa=ui(n,!0)));var f=0,d=fa;do{var h=d,p=Ft(h),v=p.top,g=p.bottom,y=p.left,m=p.right,b=p.width,T=p.height,S=void 0,w=void 0,N=h.scrollWidth,I=h.scrollHeight,R=Ee(h),U=h.scrollLeft,$=h.scrollTop;h===l?(S=b<N&&(R.overflowX==="auto"||R.overflowX==="scroll"||R.overflowX==="visible"),w=T<I&&(R.overflowY==="auto"||R.overflowY==="scroll"||R.overflowY==="visible")):(S=b<N&&(R.overflowX==="auto"||R.overflowX==="scroll"),w=T<I&&(R.overflowY==="auto"||R.overflowY==="scroll"));var z=S&&(Math.abs(m-i)<=o&&U+b<N)-(Math.abs(y-i)<=o&&!!U),j=w&&(Math.abs(g-a)<=o&&$+T<I)-(Math.abs(v-a)<=o&&!!$);if(!Qt[f])for(var B=0;B<=f;B++)Qt[B]||(Qt[B]={});(Qt[f].vx!=z||Qt[f].vy!=j||Qt[f].el!==h)&&(Qt[f].el=h,Qt[f].vx=z,Qt[f].vy=j,clearInterval(Qt[f].pid),(z!=0||j!=0)&&(u=!0,Qt[f].pid=setInterval(function(){r&&this.layer===0&&ke.active._onTouchMove(El);var he=Qt[this.layer].vy?Qt[this.layer].vy*s:0,Y=Qt[this.layer].vx?Qt[this.layer].vx*s:0;typeof c=="function"&&c.call(ke.dragged.parentNode[vn],Y,he,e,El,Qt[this.layer].el)!=="continue"||dg(Qt[this.layer].el,Y,he)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&d!==l&&(d=ui(d,!1)));Rc=u}},30),yg=function(t){var n=t.originalEvent,r=t.putSortable,i=t.dragEl,a=t.activeSortable,o=t.dispatchSortableEvent,s=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(!!n){var u=r||a;s();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(c.clientX,c.clientY);l(),u&&!u.el.contains(f)&&(o("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function jf(){}jf.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=$o(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:yg};Qn(jf,{pluginName:"revertOnSpill"});function Hf(){}Hf.prototype={onSpill:function(t){var n=t.dragEl,r=t.putSortable,i=r||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:yg};Qn(Hf,{pluginName:"removeOnSpill"});var Xn;function OT(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var r=n.dragEl;Xn=r},dragOverValid:function(n){var r=n.completed,i=n.target,a=n.onMove,o=n.activeSortable,s=n.changed,l=n.cancel;if(!!o.options.swap){var u=this.sortable.el,c=this.options;if(i&&i!==u){var f=Xn;a(i)!==!1?(Ut(i,c.swapClass,!0),Xn=i):Xn=null,f&&f!==Xn&&Ut(f,c.swapClass,!1)}s(),r(!0),l()}},drop:function(n){var r=n.activeSortable,i=n.putSortable,a=n.dragEl,o=i||this.sortable,s=this.options;Xn&&Ut(Xn,s.swapClass,!1),Xn&&(s.swap||i&&i.options.swap)&&a!==Xn&&(o.captureAnimationState(),o!==r&&r.captureAnimationState(),PT(a,Xn),o.animateAll(),o!==r&&r.animateAll())},nulling:function(){Xn=null}},Qn(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Xn}}})}function PT(e,t){var n=e.parentNode,r=t.parentNode,i,a;!n||!r||n.isEqualNode(t)||r.isEqualNode(e)||(i=Ht(e),a=Ht(t),n.isEqualNode(r)&&i<a&&a++,n.insertBefore(t,n.children[i]),r.insertBefore(e,r.children[a]))}var je=[],On=[],Zo,er,Jo=!1,Cn=!1,ho=!1,It,Qo,Rs;function FT(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?lt(document,"pointerup",this._deselectMultiDrag):(lt(document,"mouseup",this._deselectMultiDrag),lt(document,"touchend",this._deselectMultiDrag)),lt(document,"keydown",this._checkKeyDown),lt(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,a){var o="";je.length&&er===t?je.forEach(function(s,l){o+=(l?", ":"")+s.textContent}):o=a.textContent,i.setData("Text",o)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var r=n.dragEl;It=r},delayEnded:function(){this.isMultiDrag=~je.indexOf(It)},setupClone:function(n){var r=n.sortable,i=n.cancel;if(!!this.isMultiDrag){for(var a=0;a<je.length;a++)On.push($f(je[a])),On[a].sortableIndex=je[a].sortableIndex,On[a].draggable=!1,On[a].style["will-change"]="",Ut(On[a],this.options.selectedClass,!1),je[a]===It&&Ut(On[a],this.options.chosenClass,!1);r._hideClone(),i()}},clone:function(n){var r=n.sortable,i=n.rootEl,a=n.dispatchSortableEvent,o=n.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||je.length&&er===r&&(Nh(!0,i),a("clone"),o())},showClone:function(n){var r=n.cloneNowShown,i=n.rootEl,a=n.cancel;!this.isMultiDrag||(Nh(!1,i),On.forEach(function(o){Ee(o,"display","")}),r(),Rs=!1,a())},hideClone:function(n){var r=this;n.sortable;var i=n.cloneNowHidden,a=n.cancel;!this.isMultiDrag||(On.forEach(function(o){Ee(o,"display","none"),r.options.removeCloneOnHide&&o.parentNode&&o.parentNode.removeChild(o)}),i(),Rs=!0,a())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&er&&er.multiDrag._deselectMultiDrag(),je.forEach(function(r){r.sortableIndex=Ht(r)}),je=je.sort(function(r,i){return r.sortableIndex-i.sortableIndex}),ho=!0},dragStarted:function(n){var r=this,i=n.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){je.forEach(function(o){o!==It&&Ee(o,"position","absolute")});var a=Ft(It,!1,!0,!0);je.forEach(function(o){o!==It&&wh(o,a)}),Cn=!0,Jo=!0}i.animateAll(function(){Cn=!1,Jo=!1,r.options.animation&&je.forEach(function(o){Tu(o)}),r.options.sort&&As()})}},dragOver:function(n){var r=n.target,i=n.completed,a=n.cancel;Cn&&~je.indexOf(r)&&(i(!1),a())},revert:function(n){var r=n.fromSortable,i=n.rootEl,a=n.sortable,o=n.dragRect;je.length>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);g<v;g++)~je.indexOf(d[g])||(Ut(d[g],f.selectedClass,!0),je.push(d[g]),ua({sortable:o,rootEl:i,name:"select",targetEl:d[g],originalEvt:r}))}}else Zo=It;er=c}if(ho&&this.isMultiDrag){if(Cn=!1,(a[vn].options.sort||a!==i)&&je.length>1){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<de.length;ce++){ye=de[ce];for(var ue=String(ye[0]),Ve=v(g(f(ye.index),oe.length),0),ie=[],Ze=1;Ze<ye.length;Ze++)ie.push(T(ye[Ze]));var at=ye.groups;if(me){var ut=[ue].concat(ie,Ve,oe);at!==void 0&&ut.push(at);var E=String(B.apply(void 0,ut))}else E=z(ue,oe,Ve,ie,at,B);Ve>=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)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),T=m.replace(b,"$1").trim());for(var w=0;w<S.length;w++)if(S[w].readyState==="interactive"||S[w].src===v||v===y&&S[w].innerHTML&&S[w].innerHTML.trim()===T)return S[w];return null}}return c})},8925:function(i,a,o){var s=o("c6cd"),l=Function.toString;typeof s.inspectSource!="function"&&(s.inspectSource=function(u){return l.call(u)}),i.exports=s.inspectSource},"8aa5":function(i,a,o){var s=o("6547").charAt;i.exports=function(l,u,c){return u+(c?s(l,u).length:1)}},"8bbf":function(i,a){i.exports=n},"90e3":function(i,a){var o=0,s=Math.random();i.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++o+s).toString(36)}},9112:function(i,a,o){var s=o("83ab"),l=o("9bf2"),u=o("5c6c");i.exports=s?function(c,f,d){return l.f(c,f,u(1,d))}:function(c,f,d){return c[f]=d,c}},9263:function(i,a,o){var s=o("ad6d"),l=o("9f7f"),u=RegExp.prototype.exec,c=String.prototype.replace,f=u,d=function(){var g=/a/,y=/b*/g;return u.call(g,"a"),u.call(y,"a"),g.lastIndex!==0||y.lastIndex!==0}(),h=l.UNSUPPORTED_Y||l.BROKEN_CARET,p=/()??/.exec("")[1]!==void 0,v=d||p||h;v&&(f=function(y){var m=this,b,T,S,w,N=h&&m.sticky,I=s.call(m),R=m.source,U=0,$=y;return N&&(I=I.replace("y",""),I.indexOf("g")===-1&&(I+="g"),$=String(y).slice(m.lastIndex),m.lastIndex>0&&(!m.multiline||m.multiline&&y[m.lastIndex-1]!==`
+`)&&(R="(?: "+R+")",$=" "+$,U++),T=new RegExp("^(?:"+R+")",I)),p&&(T=new RegExp("^"+R+"$(?!\\s)",I)),d&&(b=m.lastIndex),S=u.call(N?T:m,$),N?S?(S.input=S.input.slice(U),S[0]=S[0].slice(U),S.index=m.lastIndex,m.lastIndex+=S[0].length):m.lastIndex=0:d&&S&&(m.lastIndex=m.global?S.index+S[0].length:b),p&&S&&S.length>1&&c.call(S[0],T,function(){for(w=1;w<arguments.length-2;w++)arguments[w]===void 0&&(S[w]=void 0)}),S}),i.exports=f},"94ca":function(i,a,o){var s=o("d039"),l=/#|\.prototype\./,u=function(p,v){var g=f[c(p)];return g==h?!0:g==d?!1:typeof v=="function"?s(v):!!v},c=u.normalize=function(p){return String(p).replace(l,".").toLowerCase()},f=u.data={},d=u.NATIVE="N",h=u.POLYFILL="P";i.exports=u},"99af":function(i,a,o){var s=o("23e7"),l=o("d039"),u=o("e8b5"),c=o("861d"),f=o("7b0b"),d=o("50c4"),h=o("8418"),p=o("65f0"),v=o("1dde"),g=o("b622"),y=o("2d00"),m=g("isConcatSpreadable"),b=9007199254740991,T="Maximum allowed index exceeded",S=y>=51||!l(function(){var R=[];return R[m]=!1,R.concat()[0]!==R}),w=v("concat"),N=function(R){if(!c(R))return!1;var U=R[m];return U!==void 0?!!U:u(R)},I=!S||!w;s({target:"Array",proto:!0,forced:I},{concat:function(U){var $=f(this),z=p($,0),j=0,B,he,Y,oe,me;for(B=-1,Y=arguments.length;B<Y;B++)if(me=B===-1?$:arguments[B],N(me)){if(oe=d(me.length),j+oe>b)throw TypeError(T);for(he=0;he<oe;he++,j++)he in me&&h(z,j,me[he])}else{if(j>=b)throw TypeError(T);h(z,j++,me)}return z.length=j,z}})},"9bdd":function(i,a,o){var s=o("825a");i.exports=function(l,u,c,f){try{return f?u(s(c)[0],c[1]):u(c)}catch(h){var d=l.return;throw d!==void 0&&s(d.call(l)),h}}},"9bf2":function(i,a,o){var s=o("83ab"),l=o("0cfb"),u=o("825a"),c=o("c04e"),f=Object.defineProperty;a.f=s?f:function(h,p,v){if(u(h),p=c(p,!0),u(v),l)try{return f(h,p,v)}catch{}if("get"in v||"set"in v)throw TypeError("Accessors not supported");return"value"in v&&(h[p]=v.value),h}},"9ed3":function(i,a,o){var s=o("ae93").IteratorPrototype,l=o("7c73"),u=o("5c6c"),c=o("d44e"),f=o("3f8c"),d=function(){return this};i.exports=function(h,p,v){var g=p+" Iterator";return h.prototype=l(s,{next:u(1,v)}),c(h,g,!1,!0),f[g]=d,h}},"9f7f":function(i,a,o){var s=o("d039");function l(u,c){return RegExp(u,c)}a.UNSUPPORTED_Y=s(function(){var u=l("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),a.BROKEN_CARET=s(function(){var u=l("^r","gy");return u.lastIndex=2,u.exec("str")!=null})},a2bf:function(i,a,o){var s=o("e8b5"),l=o("50c4"),u=o("0366"),c=function(f,d,h,p,v,g,y,m){for(var b=v,T=0,S=y?u(y,m,3):!1,w;T<p;){if(T in h){if(w=S?S(h[T],T,d):h[T],g>0&&s(w))b=c(f,d,w,l(w.length),b,g-1)-1;else{if(b>=9007199254740991)throw TypeError("Exceed the acceptable array length");f[b]=w}b++}T++}return b};i.exports=c},a352:function(i,a){i.exports=r},a434:function(i,a,o){var s=o("23e7"),l=o("23cb"),u=o("a691"),c=o("50c4"),f=o("7b0b"),d=o("65f0"),h=o("8418"),p=o("1dde"),v=o("ae40"),g=p("splice"),y=v("splice",{ACCESSORS:!0,0:0,1:2}),m=Math.max,b=Math.min,T=9007199254740991,S="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!g||!y},{splice:function(N,I){var R=f(this),U=c(R.length),$=l(N,U),z=arguments.length,j,B,he,Y,oe,me;if(z===0?j=B=0:z===1?(j=0,B=U-$):(j=z-2,B=b(m(u(I),0),U-$)),U+j-B>T)throw TypeError(S);for(he=d(R,B),Y=0;Y<B;Y++)oe=$+Y,oe in R&&h(he,Y,R[oe]);if(he.length=B,j<B){for(Y=$;Y<U-B;Y++)oe=Y+B,me=Y+j,oe in R?R[me]=R[oe]:delete R[me];for(Y=U;Y>U-B+j;Y--)delete R[Y-1]}else if(j>B)for(Y=U-B;Y>$;Y--)oe=Y+B-1,me=Y+j-1,oe in R?R[me]=R[oe]:delete R[me];for(Y=0;Y<j;Y++)R[Y+$]=arguments[Y+2];return R.length=U-B+j,he}})},a4d3:function(i,a,o){var s=o("23e7"),l=o("da84"),u=o("d066"),c=o("c430"),f=o("83ab"),d=o("4930"),h=o("fdbf"),p=o("d039"),v=o("5135"),g=o("e8b5"),y=o("861d"),m=o("825a"),b=o("7b0b"),T=o("fc6a"),S=o("c04e"),w=o("5c6c"),N=o("7c73"),I=o("df75"),R=o("241c"),U=o("057f"),$=o("7418"),z=o("06cf"),j=o("9bf2"),B=o("d1e7"),he=o("9112"),Y=o("6eeb"),oe=o("5692"),me=o("f772"),Ke=o("d012"),re=o("90e3"),de=o("b622"),ye=o("e538"),Se=o("746f"),k=o("d44e"),X=o("69f3"),ce=o("b727").forEach,ue=me("hidden"),Ve="Symbol",ie="prototype",Ze=de("toPrimitive"),at=X.set,ut=X.getterFor(Ve),E=Object[ie],A=l.Symbol,V=u("JSON","stringify"),K=z.f,Z=j.f,ae=U.f,pe=B.f,ne=oe("symbols"),se=oe("op-symbols"),ee=oe("string-to-symbol-registry"),Ne=oe("symbol-to-string-registry"),be=oe("wks"),Re=l.QObject,Le=!Re||!Re[ie]||!Re[ie].findChild,qe=f&&p(function(){return N(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a!=7})?function(Be,Ae,Ue){var ct=K(E,Ae);ct&&delete E[Ae],Z(Be,Ae,Ue),ct&&Be!==E&&Z(E,Ae,ct)}:Z,ht=function(Be,Ae){var Ue=ne[Be]=N(A[ie]);return at(Ue,{type:Ve,tag:Be,description:Ae}),f||(Ue.description=Ae),Ue},F=h?function(Be){return typeof Be=="symbol"}:function(Be){return Object(Be)instanceof A},L=function(Ae,Ue,ct){Ae===E&&L(se,Ue,ct),m(Ae);var pt=S(Ue,!0);return m(ct),v(ne,pt)?(ct.enumerable?(v(Ae,ue)&&Ae[ue][pt]&&(Ae[ue][pt]=!1),ct=N(ct,{enumerable:w(0,!1)})):(v(Ae,ue)||Z(Ae,ue,w(1,{})),Ae[ue][pt]=!0),qe(Ae,pt,ct)):Z(Ae,pt,ct)},G=function(Ae,Ue){m(Ae);var ct=T(Ue),pt=I(ct).concat(Ge(ct));return ce(pt,function(Tn){(!f||_e.call(ct,Tn))&&L(Ae,Tn,ct[Tn])}),Ae},te=function(Ae,Ue){return Ue===void 0?N(Ae):G(N(Ae),Ue)},_e=function(Ae){var Ue=S(Ae,!0),ct=pe.call(this,Ue);return this===E&&v(ne,Ue)&&!v(se,Ue)?!1:ct||!v(this,Ue)||!v(ne,Ue)||v(this,ue)&&this[ue][Ue]?ct:!0},Fe=function(Ae,Ue){var ct=T(Ae),pt=S(Ue,!0);if(!(ct===E&&v(ne,pt)&&!v(se,pt))){var Tn=K(ct,pt);return Tn&&v(ne,pt)&&!(v(ct,ue)&&ct[ue][pt])&&(Tn.enumerable=!0),Tn}},$e=function(Ae){var Ue=ae(T(Ae)),ct=[];return ce(Ue,function(pt){!v(ne,pt)&&!v(Ke,pt)&&ct.push(pt)}),ct},Ge=function(Ae){var Ue=Ae===E,ct=ae(Ue?se:T(Ae)),pt=[];return ce(ct,function(Tn){v(ne,Tn)&&(!Ue||v(E,Tn))&&pt.push(ne[Tn])}),pt};if(d||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor");var Ae=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Ue=re(Ae),ct=function(pt){this===E&&ct.call(se,pt),v(this,ue)&&v(this[ue],Ue)&&(this[ue][Ue]=!1),qe(this,Ue,w(1,pt))};return f&&Le&&qe(E,Ue,{configurable:!0,set:ct}),ht(Ue,Ae)},Y(A[ie],"toString",function(){return ut(this).tag}),Y(A,"withoutSetter",function(Be){return ht(re(Be),Be)}),B.f=_e,j.f=L,z.f=Fe,R.f=U.f=$e,$.f=Ge,ye.f=function(Be){return ht(de(Be),Be)},f&&(Z(A[ie],"description",{configurable:!0,get:function(){return ut(this).description}}),c||Y(E,"propertyIsEnumerable",_e,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:A}),ce(I(be),function(Be){Se(Be)}),s({target:Ve,stat:!0,forced:!d},{for:function(Be){var Ae=String(Be);if(v(ee,Ae))return ee[Ae];var Ue=A(Ae);return ee[Ae]=Ue,Ne[Ue]=Ae,Ue},keyFor:function(Ae){if(!F(Ae))throw TypeError(Ae+" is not a symbol");if(v(Ne,Ae))return Ne[Ae]},useSetter:function(){Le=!0},useSimple:function(){Le=!1}}),s({target:"Object",stat:!0,forced:!d,sham:!f},{create:te,defineProperty:L,defineProperties:G,getOwnPropertyDescriptor:Fe}),s({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:$e,getOwnPropertySymbols:Ge}),s({target:"Object",stat:!0,forced:p(function(){$.f(1)})},{getOwnPropertySymbols:function(Ae){return $.f(b(Ae))}}),V){var mt=!d||p(function(){var Be=A();return V([Be])!="[null]"||V({a:Be})!="{}"||V(Object(Be))!="{}"});s({target:"JSON",stat:!0,forced:mt},{stringify:function(Ae,Ue,ct){for(var pt=[Ae],Tn=1,cu;arguments.length>Tn;)pt.push(arguments[Tn++]);if(cu=Ue,!(!y(Ue)&&Ae===void 0||F(Ae)))return g(Ue)||(Ue=function(Ry,hs){if(typeof cu=="function"&&(hs=cu.call(this,Ry,hs)),!F(hs))return hs}),pt[1]=Ue,V.apply(null,pt)}})}A[ie][Ze]||he(A[ie],Ze,A[ie].valueOf),k(A,Ve),Ke[ue]=!0},a630:function(i,a,o){var s=o("23e7"),l=o("4df4"),u=o("1c7e"),c=!u(function(f){Array.from(f)});s({target:"Array",stat:!0,forced:c},{from:l})},a640:function(i,a,o){var s=o("d039");i.exports=function(l,u){var c=[][l];return!!c&&s(function(){c.call(null,u||function(){throw 1},1)})}},a691:function(i,a){var o=Math.ceil,s=Math.floor;i.exports=function(l){return isNaN(l=+l)?0:(l>0?s:o)(l)}},ab13:function(i,a,o){var s=o("b622"),l=s("match");i.exports=function(u){var c=/./;try{"/./"[u](c)}catch{try{return c[l]=!1,"/./"[u](c)}catch{}}return!1}},ac1f:function(i,a,o){var s=o("23e7"),l=o("9263");s({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(i,a,o){var s=o("825a");i.exports=function(){var l=s(this),u="";return l.global&&(u+="g"),l.ignoreCase&&(u+="i"),l.multiline&&(u+="m"),l.dotAll&&(u+="s"),l.unicode&&(u+="u"),l.sticky&&(u+="y"),u}},ae40:function(i,a,o){var s=o("83ab"),l=o("d039"),u=o("5135"),c=Object.defineProperty,f={},d=function(h){throw h};i.exports=function(h,p){if(u(f,h))return f[h];p||(p={});var v=[][h],g=u(p,"ACCESSORS")?p.ACCESSORS:!1,y=u(p,0)?p[0]:d,m=u(p,1)?p[1]:void 0;return f[h]=!!v&&!l(function(){if(g&&!s)return!0;var b={length:-1};g?c(b,1,{enumerable:!0,get:d}):b[1]=1,v.call(b,y,m)})}},ae93:function(i,a,o){var s=o("e163"),l=o("9112"),u=o("5135"),c=o("b622"),f=o("c430"),d=c("iterator"),h=!1,p=function(){return this},v,g,y;[].keys&&(y=[].keys(),"next"in y?(g=s(s(y)),g!==Object.prototype&&(v=g)):h=!0),v==null&&(v={}),!f&&!u(v,d)&&l(v,d,p),i.exports={IteratorPrototype:v,BUGGY_SAFARI_ITERATORS:h}},b041:function(i,a,o){var s=o("00ee"),l=o("f5df");i.exports=s?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(i,a,o){var s=o("83ab"),l=o("9bf2").f,u=Function.prototype,c=u.toString,f=/^\s*function ([^ (]*)/,d="name";s&&!(d in u)&&l(u,d,{configurable:!0,get:function(){try{return c.call(this).match(f)[1]}catch{return""}}})},b622:function(i,a,o){var s=o("da84"),l=o("5692"),u=o("5135"),c=o("90e3"),f=o("4930"),d=o("fdbf"),h=l("wks"),p=s.Symbol,v=d?p:p&&p.withoutSetter||c;i.exports=function(g){return u(h,g)||(f&&u(p,g)?h[g]=p[g]:h[g]=v("Symbol."+g)),h[g]}},b64b:function(i,a,o){var s=o("23e7"),l=o("7b0b"),u=o("df75"),c=o("d039"),f=c(function(){u(1)});s({target:"Object",stat:!0,forced:f},{keys:function(h){return u(l(h))}})},b727:function(i,a,o){var s=o("0366"),l=o("44ad"),u=o("7b0b"),c=o("50c4"),f=o("65f0"),d=[].push,h=function(p){var v=p==1,g=p==2,y=p==3,m=p==4,b=p==6,T=p==5||b;return function(S,w,N,I){for(var R=u(S),U=l(R),$=s(w,N,3),z=c(U.length),j=0,B=I||f,he=v?B(S,z):g?B(S,0):void 0,Y,oe;z>j;j++)if((T||j in U)&&(Y=U[j],oe=$(Y,j,R),p)){if(v)he[j]=oe;else if(oe)switch(p){case 3:return!0;case 5:return Y;case 6:return j;case 2:d.call(he,Y)}else if(m)return!1}return b?-1:y||m?m:he}};i.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6)}},c04e:function(i,a,o){var s=o("861d");i.exports=function(l,u){if(!s(l))return l;var c,f;if(u&&typeof(c=l.toString)=="function"&&!s(f=c.call(l))||typeof(c=l.valueOf)=="function"&&!s(f=c.call(l))||!u&&typeof(c=l.toString)=="function"&&!s(f=c.call(l)))return f;throw TypeError("Can't convert object to primitive value")}},c430:function(i,a){i.exports=!1},c6b6:function(i,a){var o={}.toString;i.exports=function(s){return o.call(s).slice(8,-1)}},c6cd:function(i,a,o){var s=o("da84"),l=o("ce4e"),u="__core-js_shared__",c=s[u]||l(u,{});i.exports=c},c740:function(i,a,o){var s=o("23e7"),l=o("b727").findIndex,u=o("44d2"),c=o("ae40"),f="findIndex",d=!0,h=c(f);f in[]&&Array(1)[f](function(){d=!1}),s({target:"Array",proto:!0,forced:d||!h},{findIndex:function(v){return l(this,v,arguments.length>1?arguments[1]:void 0)}}),u(f)},c8ba:function(i,a){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}i.exports=o},c975:function(i,a,o){var s=o("23e7"),l=o("4d64").indexOf,u=o("a640"),c=o("ae40"),f=[].indexOf,d=!!f&&1/[1].indexOf(1,-0)<0,h=u("indexOf"),p=c("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:d||!h||!p},{indexOf:function(g){return d?f.apply(this,arguments)||0:l(this,g,arguments.length>1?arguments[1]:void 0)}})},ca84:function(i,a,o){var s=o("5135"),l=o("fc6a"),u=o("4d64").indexOf,c=o("d012");i.exports=function(f,d){var h=l(f),p=0,v=[],g;for(g in h)!s(c,g)&&s(h,g)&&v.push(g);for(;d.length>p;)s(h,g=d[p++])&&(~u(v,g)||v.push(g));return v}},caad:function(i,a,o){var s=o("23e7"),l=o("4d64").includes,u=o("44d2"),c=o("ae40"),f=c("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:!f},{includes:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}}),u("includes")},cc12:function(i,a,o){var s=o("da84"),l=o("861d"),u=s.document,c=l(u)&&l(u.createElement);i.exports=function(f){return c?u.createElement(f):{}}},ce4e:function(i,a,o){var s=o("da84"),l=o("9112");i.exports=function(u,c){try{l(s,u,c)}catch{s[u]=c}return c}},d012:function(i,a){i.exports={}},d039:function(i,a){i.exports=function(o){try{return!!o()}catch{return!0}}},d066:function(i,a,o){var s=o("428f"),l=o("da84"),u=function(c){return typeof c=="function"?c:void 0};i.exports=function(c,f){return arguments.length<2?u(s[c])||u(l[c]):s[c]&&s[c][f]||l[c]&&l[c][f]}},d1e7:function(i,a,o){var s={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&&!s.call({1:2},1);a.f=u?function(f){var d=l(this,f);return!!d&&d.enumerable}:s},d28b:function(i,a,o){var s=o("746f");s("iterator")},d2bb:function(i,a,o){var s=o("825a"),l=o("3bbe");i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,c={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(c,[]),u=c instanceof Array}catch{}return function(h,p){return s(h),l(p),u?f.call(h,p):h.__proto__=p,h}}():void 0)},d3b7:function(i,a,o){var s=o("00ee"),l=o("6eeb"),u=o("b041");s||l(Object.prototype,"toString",u,{unsafe:!0})},d44e:function(i,a,o){var s=o("9bf2").f,l=o("5135"),u=o("b622"),c=u("toStringTag");i.exports=function(f,d,h){f&&!l(f=h?f:f.prototype,c)&&s(f,c,{configurable:!0,value:d})}},d58f:function(i,a,o){var s=o("1c0b"),l=o("7b0b"),u=o("44ad"),c=o("50c4"),f=function(d){return function(h,p,v,g){s(p);var y=l(h),m=u(y),b=c(y.length),T=d?b-1:0,S=d?-1:1;if(v<2)for(;;){if(T in m){g=m[T],T+=S;break}if(T+=S,d?T<0:b<=T)throw TypeError("Reduce of empty array with no initial value")}for(;d?T>=0:b>T;T+=S)T in m&&(g=p(g,m[T],T,y));return g}};i.exports={left:f(!1),right:f(!0)}},d784:function(i,a,o){o("ac1f");var s=o("6eeb"),l=o("d039"),u=o("b622"),c=o("9263"),f=o("9112"),d=u("species"),h=!l(function(){var m=/./;return m.exec=function(){var b=[];return b.groups={a:"7"},b},"".replace(m,"$<a>")!=="7"}),p=function(){return"a".replace(/./,"$0")==="$0"}(),v=u("replace"),g=function(){return/./[v]?/./[v]("a","$0")==="":!1}(),y=!l(function(){var m=/(?:)/,b=m.exec;m.exec=function(){return b.apply(this,arguments)};var T="ab".split(m);return T.length!==2||T[0]!=="a"||T[1]!=="b"});i.exports=function(m,b,T,S){var w=u(m),N=!l(function(){var j={};return j[w]=function(){return 7},""[m](j)!=7}),I=N&&!l(function(){var j=!1,B=/a/;return m==="split"&&(B={},B.constructor={},B.constructor[d]=function(){return B},B.flags="",B[w]=/./[w]),B.exec=function(){return j=!0,null},B[w](""),!j});if(!N||!I||m==="replace"&&!(h&&p&&!g)||m==="split"&&!y){var R=/./[w],U=T(w,""[m],function(j,B,he,Y,oe){return B.exec===c?N&&!oe?{done:!0,value:R.call(B,he,Y)}:{done:!0,value:j.call(he,B,Y)}:{done:!1}},{REPLACE_KEEPS_$0:p,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:g}),$=U[0],z=U[1];s(String.prototype,m,$),s(RegExp.prototype,w,b==2?function(j,B){return z.call(j,this,B)}:function(j){return z.call(j,this)})}S&&f(RegExp.prototype[w],"sham",!0)}},d81d:function(i,a,o){var s=o("23e7"),l=o("b727").map,u=o("1dde"),c=o("ae40"),f=u("map"),d=c("map");s({target:"Array",proto:!0,forced:!f||!d},{map:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}})},da84:function(i,a,o){(function(s){var l=function(u){return u&&u.Math==Math&&u};i.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof s=="object"&&s)||Function("return this")()}).call(this,o("c8ba"))},dbb4:function(i,a,o){var s=o("23e7"),l=o("83ab"),u=o("56ef"),c=o("fc6a"),f=o("06cf"),d=o("8418");s({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(p){for(var v=c(p),g=f.f,y=u(v),m={},b=0,T,S;y.length>b;)S=g(v,T=y[b++]),S!==void 0&&d(m,T,S);return m}})},dbf1:function(i,a,o){(function(s){o.d(a,"a",function(){return u});function l(){return typeof window!="undefined"?window.console:s.console}var u=l()}).call(this,o("c8ba"))},ddb0:function(i,a,o){var s=o("da84"),l=o("fdbc"),u=o("e260"),c=o("9112"),f=o("b622"),d=f("iterator"),h=f("toStringTag"),p=u.values;for(var v in l){var g=s[v],y=g&&g.prototype;if(y){if(y[d]!==p)try{c(y,d,p)}catch{y[d]=p}if(y[h]||c(y,h,v),l[v]){for(var m in u)if(y[m]!==u[m])try{c(y,m,u[m])}catch{y[m]=u[m]}}}}},df75:function(i,a,o){var s=o("ca84"),l=o("7839");i.exports=Object.keys||function(c){return s(c,l)}},e01a:function(i,a,o){var s=o("23e7"),l=o("83ab"),u=o("da84"),c=o("5135"),f=o("861d"),d=o("9bf2").f,h=o("e893"),p=u.Symbol;if(l&&typeof p=="function"&&(!("description"in p.prototype)||p().description!==void 0)){var v={},g=function(){var w=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),N=this instanceof g?new p(w):w===void 0?p():p(w);return w===""&&(v[N]=!0),N};h(g,p);var y=g.prototype=p.prototype;y.constructor=g;var m=y.toString,b=String(p("test"))=="Symbol(test)",T=/^Symbol\((.*)\)[^)]+$/;d(y,"description",{configurable:!0,get:function(){var w=f(this)?this.valueOf():this,N=m.call(w);if(c(v,w))return"";var I=b?N.slice(7,-1):N.replace(T,"$1");return I===""?void 0:I}}),s({global:!0,forced:!0},{Symbol:g})}},e163:function(i,a,o){var s=o("5135"),l=o("7b0b"),u=o("f772"),c=o("e177"),f=u("IE_PROTO"),d=Object.prototype;i.exports=c?Object.getPrototypeOf:function(h){return h=l(h),s(h,f)?h[f]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?d:null}},e177:function(i,a,o){var s=o("d039");i.exports=!s(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(i,a,o){var s=o("fc6a"),l=o("44d2"),u=o("3f8c"),c=o("69f3"),f=o("7dd0"),d="Array Iterator",h=c.set,p=c.getterFor(d);i.exports=f(Array,"Array",function(v,g){h(this,{type:d,target:s(v),index:0,kind:g})},function(){var v=p(this),g=v.target,y=v.kind,m=v.index++;return!g||m>=g.length?(v.target=void 0,{value:void 0,done:!0}):y=="keys"?{value:m,done:!1}:y=="values"?{value:g[m],done:!1}:{value:[m,g[m]],done:!1}},"values"),u.Arguments=u.Array,l("keys"),l("values"),l("entries")},e439:function(i,a,o){var s=o("23e7"),l=o("d039"),u=o("fc6a"),c=o("06cf").f,f=o("83ab"),d=l(function(){c(1)}),h=!f||d;s({target:"Object",stat:!0,forced:h,sham:!f},{getOwnPropertyDescriptor:function(v,g){return c(u(v),g)}})},e538:function(i,a,o){var s=o("b622");a.f=s},e893:function(i,a,o){var s=o("5135"),l=o("56ef"),u=o("06cf"),c=o("9bf2");i.exports=function(f,d){for(var h=l(d),p=c.f,v=u.f,g=0;g<h.length;g++){var y=h[g];s(f,y)||p(f,y,v(d,y))}}},e8b5:function(i,a,o){var s=o("c6b6");i.exports=Array.isArray||function(u){return s(u)=="Array"}},e95a:function(i,a,o){var s=o("b622"),l=o("3f8c"),u=s("iterator"),c=Array.prototype;i.exports=function(f){return f!==void 0&&(l.Array===f||c[u]===f)}},f5df:function(i,a,o){var s=o("00ee"),l=o("c6b6"),u=o("b622"),c=u("toStringTag"),f=l(function(){return arguments}())=="Arguments",d=function(h,p){try{return h[p]}catch{}};i.exports=s?l:function(h){var p,v,g;return h===void 0?"Undefined":h===null?"Null":typeof(v=d(p=Object(h),c))=="string"?v:f?l(p):(g=l(p))=="Object"&&typeof p.callee=="function"?"Arguments":g}},f772:function(i,a,o){var s=o("5692"),l=o("90e3"),u=s("keys");i.exports=function(c){return u[c]||(u[c]=l(c))}},fb15:function(i,a,o){if(o.r(a),typeof window!="undefined"){var s=window.document.currentScript;{var l=o("8875");s=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var u=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(o.p=u[1])}o("99af"),o("4de4"),o("4160"),o("c975"),o("d81d"),o("a434"),o("159b"),o("a4d3"),o("e439"),o("dbb4"),o("b64b");function c(F,L,G){return L in F?Object.defineProperty(F,L,{value:G,enumerable:!0,configurable:!0,writable:!0}):F[L]=G,F}function f(F,L){var G=Object.keys(F);if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(F);L&&(te=te.filter(function(_e){return Object.getOwnPropertyDescriptor(F,_e).enumerable})),G.push.apply(G,te)}return G}function d(F){for(var L=1;L<arguments.length;L++){var G=arguments[L]!=null?arguments[L]:{};L%2?f(Object(G),!0).forEach(function(te){c(F,te,G[te])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(G)):f(Object(G)).forEach(function(te){Object.defineProperty(F,te,Object.getOwnPropertyDescriptor(G,te))})}return F}function h(F){if(Array.isArray(F))return F}o("e01a"),o("d28b"),o("e260"),o("d3b7"),o("3ca3"),o("ddb0");function p(F,L){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(F)))){var G=[],te=!0,_e=!1,Fe=void 0;try{for(var $e=F[Symbol.iterator](),Ge;!(te=(Ge=$e.next()).done)&&(G.push(Ge.value),!(L&&G.length===L));te=!0);}catch(mt){_e=!0,Fe=mt}finally{try{!te&&$e.return!=null&&$e.return()}finally{if(_e)throw Fe}}return G}}o("a630"),o("fb6a"),o("b0c0"),o("25f0");function v(F,L){(L==null||L>F.length)&&(L=F.length);for(var G=0,te=new Array(L);G<L;G++)te[G]=F[G];return te}function g(F,L){if(!!F){if(typeof F=="string")return v(F,L);var G=Object.prototype.toString.call(F).slice(8,-1);if(G==="Object"&&F.constructor&&(G=F.constructor.name),G==="Map"||G==="Set")return Array.from(F);if(G==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return v(F,L)}}function y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(F,L){return h(F)||p(F,L)||g(F,L)||y()}function b(F){if(Array.isArray(F))return v(F)}function T(F){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(F))return Array.from(F)}function S(){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 w(F){return b(F)||T(F)||g(F)||S()}var N=o("a352"),I=o.n(N);function R(F){F.parentElement!==null&&F.parentElement.removeChild(F)}function U(F,L,G){var te=G===0?F.children[0]:F.children[G-1].nextSibling;F.insertBefore(L,te)}var $=o("dbf1");o("13d5"),o("4fad"),o("ac1f"),o("5319");function z(F){var L=Object.create(null);return function(te){var _e=L[te];return _e||(L[te]=F(te))}}var j=/-(\w)/g,B=z(function(F){return F.replace(j,function(L,G){return G.toUpperCase()})});o("5db7"),o("73d9");var he=["Start","Add","Remove","Update","End"],Y=["Choose","Unchoose","Sort","Filter","Clone"],oe=["Move"],me=[oe,he,Y].flatMap(function(F){return F}).map(function(F){return"on".concat(F)}),Ke={manage:oe,manageAndEmit:he,emit:Y};function re(F){return me.indexOf(F)!==-1}o("caad"),o("2ca0");var de=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function ye(F){return de.includes(F)}function Se(F){return["transition-group","TransitionGroup"].includes(F)}function k(F){return["id","class","role","style"].includes(F)||F.startsWith("data-")||F.startsWith("aria-")||F.startsWith("on")}function X(F){return F.reduce(function(L,G){var te=m(G,2),_e=te[0],Fe=te[1];return L[_e]=Fe,L},{})}function ce(F){var L=F.$attrs,G=F.componentData,te=G===void 0?{}:G,_e=X(Object.entries(L).filter(function(Fe){var $e=m(Fe,2),Ge=$e[0];return $e[1],k(Ge)}));return d(d({},_e),te)}function ue(F){var L=F.$attrs,G=F.callBackBuilder,te=X(Ve(L));Object.entries(G).forEach(function(Fe){var $e=m(Fe,2),Ge=$e[0],mt=$e[1];Ke[Ge].forEach(function(Be){te["on".concat(Be)]=mt(Be)})});var _e="[data-draggable]".concat(te.draggable||"");return d(d({},te),{},{draggable:_e})}function Ve(F){return Object.entries(F).filter(function(L){var G=m(L,2),te=G[0];return G[1],!k(te)}).map(function(L){var G=m(L,2),te=G[0],_e=G[1];return[B(te),_e]}).filter(function(L){var G=m(L,2),te=G[0];return G[1],!re(te)})}o("c740");function ie(F,L){if(!(F instanceof L))throw new TypeError("Cannot call a class as a function")}function Ze(F,L){for(var G=0;G<L.length;G++){var te=L[G];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(F,te.key,te)}}function at(F,L,G){return L&&Ze(F.prototype,L),G&&Ze(F,G),F}var ut=function(L){var G=L.el;return G},E=function(L,G){return L.__draggable_context=G},A=function(L){return L.__draggable_context},V=function(){function F(L){var G=L.nodes,te=G.header,_e=G.default,Fe=G.footer,$e=L.root,Ge=L.realList;ie(this,F),this.defaultNodes=_e,this.children=[].concat(w(te),w(_e),w(Fe)),this.externalComponent=$e.externalComponent,this.rootTransition=$e.transition,this.tag=$e.tag,this.realList=Ge}return at(F,[{key:"render",value:function(G,te){var _e=this.tag,Fe=this.children,$e=this._isRootComponent,Ge=$e?{default:function(){return Fe}}:Fe;return G(_e,te,Ge)}},{key:"updated",value:function(){var G=this.defaultNodes,te=this.realList;G.forEach(function(_e,Fe){E(ut(_e),{element:te[Fe],index:Fe})})}},{key:"getUnderlyingVm",value:function(G){return A(G)}},{key:"getVmIndexFromDomIndex",value:function(G,te){var _e=this.defaultNodes,Fe=_e.length,$e=te.children,Ge=$e.item(G);if(Ge===null)return Fe;var mt=A(Ge);if(mt)return mt.index;if(Fe===0)return 0;var Be=ut(_e[0]),Ae=w($e).findIndex(function(Ue){return Ue===Be});return G<Ae?0:Fe}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),F}(),K=o("8bbf");function Z(F,L){var G=F[L];return G?G():[]}function ae(F){var L=F.$slots,G=F.realList,te=F.getKey,_e=G||[],Fe=["header","footer"].map(function(Ue){return Z(L,Ue)}),$e=m(Fe,2),Ge=$e[0],mt=$e[1],Be=L.item;if(!Be)throw new Error("draggable element must have an item slot");var Ae=_e.flatMap(function(Ue,ct){return Be({element:Ue,index:ct}).map(function(pt){return pt.key=te(Ue),pt.props=d(d({},pt.props||{}),{},{"data-draggable":!0}),pt})});if(Ae.length!==_e.length)throw new Error("Item slot must have only one child");return{header:Ge,footer:mt,default:Ae}}function pe(F){var L=Se(F),G=!ye(F)&&!L;return{transition:L,externalComponent:G,tag:G?Object(K.resolveComponent)(F):L?K.TransitionGroup:F}}function ne(F){var L=F.$slots,G=F.tag,te=F.realList,_e=F.getKey,Fe=ae({$slots:L,realList:te,getKey:_e}),$e=pe(G);return new V({nodes:Fe,root:$e,realList:te})}function se(F,L){var G=this;Object(K.nextTick)(function(){return G.$emit(F.toLowerCase(),L)})}function ee(F){var L=this;return function(G,te){if(L.realList!==null)return L["onDrag".concat(F)](G,te)}}function Ne(F){var L=this,G=ee.call(this,F);return function(te,_e){G.call(L,te,_e),se.call(L,F,te)}}var be=null,Re={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(L){return L}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Le=["update:modelValue","change"].concat(w([].concat(w(Ke.manageAndEmit),w(Ke.emit)).map(function(F){return F.toLowerCase()}))),qe=Object(K.defineComponent)({name:"draggable",inheritAttrs:!1,props:Re,emits:Le,data:function(){return{error:!1}},render:function(){try{this.error=!1;var L=this.$slots,G=this.$attrs,te=this.tag,_e=this.componentData,Fe=this.realList,$e=this.getKey,Ge=ne({$slots:L,tag:te,realList:Fe,getKey:$e});this.componentStructure=Ge;var mt=ce({$attrs:G,componentData:_e});return Ge.render(K.h,mt)}catch(Be){return this.error=!0,Object(K.h)("pre",{style:{color:"red"}},Be.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&$.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var L=this;if(!this.error){var G=this.$attrs,te=this.$el,_e=this.componentStructure;_e.updated();var Fe=ue({$attrs:G,callBackBuilder:{manageAndEmit:function(mt){return Ne.call(L,mt)},emit:function(mt){return se.bind(L,mt)},manage:function(mt){return ee.call(L,mt)}}}),$e=te.nodeType===1?te:te.parentElement;this._sortable=new I.a($e,Fe),this.targetDomElement=$e,$e.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var L=this.list;return L||this.modelValue},getKey:function(){var L=this.itemKey;return typeof L=="function"?L:function(G){return G[L]}}},watch:{$attrs:{handler:function(L){var G=this._sortable;!G||Ve(L).forEach(function(te){var _e=m(te,2),Fe=_e[0],$e=_e[1];G.option(Fe,$e)})},deep:!0}},methods:{getUnderlyingVm:function(L){return this.componentStructure.getUnderlyingVm(L)||null},getUnderlyingPotencialDraggableComponent:function(L){return L.__draggable_component__},emitChanges:function(L){var G=this;Object(K.nextTick)(function(){return G.$emit("change",L)})},alterList:function(L){if(this.list){L(this.list);return}var G=w(this.modelValue);L(G),this.$emit("update:modelValue",G)},spliceList:function(){var L=arguments,G=function(_e){return _e.splice.apply(_e,w(L))};this.alterList(G)},updatePosition:function(L,G){var te=function(Fe){return Fe.splice(G,0,Fe.splice(L,1)[0])};this.alterList(te)},getRelatedContextFromMoveEvent:function(L){var G=L.to,te=L.related,_e=this.getUnderlyingPotencialDraggableComponent(G);if(!_e)return{component:_e};var Fe=_e.realList,$e={list:Fe,component:_e};if(G!==te&&Fe){var Ge=_e.getUnderlyingVm(te)||{};return d(d({},Ge),$e)}return $e},getVmIndexFromDomIndex:function(L){return this.componentStructure.getVmIndexFromDomIndex(L,this.targetDomElement)},onDragStart:function(L){this.context=this.getUnderlyingVm(L.item),L.item._underlying_vm_=this.clone(this.context.element),be=L.item},onDragAdd:function(L){var G=L.item._underlying_vm_;if(G!==void 0){R(L.item);var te=this.getVmIndexFromDomIndex(L.newIndex);this.spliceList(te,0,G);var _e={element:G,newIndex:te};this.emitChanges({added:_e})}},onDragRemove:function(L){if(U(this.$el,L.item,L.oldIndex),L.pullMode==="clone"){R(L.clone);return}var G=this.context,te=G.index,_e=G.element;this.spliceList(te,1);var Fe={element:_e,oldIndex:te};this.emitChanges({removed:Fe})},onDragUpdate:function(L){R(L.item),U(L.from,L.item,L.oldIndex);var G=this.context.index,te=this.getVmIndexFromDomIndex(L.newIndex);this.updatePosition(G,te);var _e={element:this.context.element,oldIndex:G,newIndex:te};this.emitChanges({moved:_e})},computeFutureIndex:function(L,G){if(!L.element)return 0;var te=w(G.to.children).filter(function(Ge){return Ge.style.display!=="none"}),_e=te.indexOf(G.related),Fe=L.component.getVmIndexFromDomIndex(_e),$e=te.indexOf(be)!==-1;return $e||!G.willInsertAfter?Fe:Fe+1},onDragMove:function(L,G){var te=this.move,_e=this.realList;if(!te||!_e)return!0;var Fe=this.getRelatedContextFromMoveEvent(L),$e=this.computeFutureIndex(Fe,L),Ge=d(d({},this.context),{},{futureIndex:$e}),mt=d(d({},L),{},{relatedContext:Fe,draggedContext:Ge});return te(mt,G)},onDragEnd:function(){be=null}}}),ht=qe;a.default=ht},fb6a:function(i,a,o){var s=o("23e7"),l=o("861d"),u=o("e8b5"),c=o("23cb"),f=o("50c4"),d=o("fc6a"),h=o("8418"),p=o("b622"),v=o("1dde"),g=o("ae40"),y=v("slice"),m=g("slice",{ACCESSORS:!0,0:0,1:2}),b=p("species"),T=[].slice,S=Math.max;s({target:"Array",proto:!0,forced:!y||!m},{slice:function(N,I){var R=d(this),U=f(R.length),$=c(N,U),z=c(I===void 0?U:I,U),j,B,he;if(u(R)&&(j=R.constructor,typeof j=="function"&&(j===Array||u(j.prototype))?j=void 0:l(j)&&(j=j[b],j===null&&(j=void 0)),j===Array||j===void 0))return T.call(R,$,z);for(B=new(j===void 0?Array:j)(S(z-$,0)),he=0;$<z;$++,he++)$ in R&&h(B,he,R[$]);return B.length=he,B}})},fc6a:function(i,a,o){var s=o("44ad"),l=o("1d80");i.exports=function(u){return s(l(u))}},fdbc:function(i,a){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(i,a,o){var s=o("4930");i.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(sg);var BT=Ux(sg.exports);/*!
+ * vue-textarea-autosize v1.1.1 
+ * (c) 2019 Saymon
+ * Released under the MIT License.
+ */var kT={name:"TextareaAutosize",props:{value:{type:[String,Number],default:""},autosize:{type:Boolean,default:!0},minHeight:{type:[Number],default:null},maxHeight:{type:[Number],default:null},important:{type:[Boolean,Array],default:!1}},data:function(){return{val:null,maxHeightScroll:!1,height:"auto"}},computed:{computedStyles:function(){return this.autosize?{resize:this.isResizeImportant?"none !important":"none",height:this.height,overflow:this.maxHeightScroll?"auto":this.isOverflowImportant?"hidden !important":"hidden"}:{}},isResizeImportant:function(){var t=this.important;return t===!0||Array.isArray(t)&&t.includes("resize")},isOverflowImportant:function(){var t=this.important;return t===!0||Array.isArray(t)&&t.includes("overflow")},isHeightImportant:function(){var t=this.important;return t===!0||Array.isArray(t)&&t.includes("height")}},watch:{value:function(t){this.val=t},val:function(t){this.$nextTick(this.resize),this.$emit("input",t)},minHeight:function(){this.$nextTick(this.resize)},maxHeight:function(){this.$nextTick(this.resize)},autosize:function(t){t&&this.resize()}},methods:{resize:function(){var t=this,n=this.isHeightImportant?"important":"";return this.height="auto".concat(n?" !important":""),this.$nextTick(function(){var r=t.$el.scrollHeight+1;t.minHeight&&(r=r<t.minHeight?t.minHeight:r),t.maxHeight&&(r>t.maxHeight?(r=t.maxHeight,t.maxHeightScroll=!0):t.maxHeightScroll=!1);var i=r+"px";t.height="".concat(i).concat(n?" !important":"")}),this}},created:function(){this.val=this.value},mounted:function(){this.resize()}};function DT(e,t,n,r,i,a,o,s,l,u){typeof o!="boolean"&&(l=s,s=o,o=!1);var c=typeof n=="function"?n.options:n;e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,i&&(c.functional=!0)),r&&(c._scopeId=r);var f;if(a?(f=function(v){v=v||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!v&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(v=__VUE_SSR_CONTEXT__),t&&t.call(this,l(v)),v&&v._registeredComponents&&v._registeredComponents.add(a)},c._ssrRegister=f):t&&(f=o?function(){t.call(this,u(this.$root.$options.shadowRoot))}:function(p){t.call(this,s(p))}),f)if(c.functional){var d=c.render;c.render=function(v,g){return f.call(g),d(v,g)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,f):[f]}return n}var GT=DT;const VT=kT;var $T=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.val,expression:"val"}],style:e.computedStyles,domProps:{value:e.val},on:{focus:e.resize,input:function(r){r.target.composing||(e.val=r.target.value)}}})},jT=[];const HT=void 0,zT=void 0,XT=void 0,WT=!1;var KT=GT({render:$T,staticRenderFns:jT},HT,VT,zT,WT,XT,void 0,void 0),YT="1.1.1",ZT=function(t){t.component("TextareaAutosize",KT)},bg={install:ZT,version:YT};typeof window!="undefined"&&window.Vue&&window.Vue.use(bg);const JT=["onSubmit"],QT={class:"field"},qT={key:0,class:"field-title"},ew=["placeholder"],tw=Ie({__name:"Text",props:{title:null,modelValue:null,textArea:{type:Boolean},placeholder:null,maxHeight:null},emits:["update:modelValue","submit"],setup(e,{emit:t}){const r=Et(e),i=J(()=>{var l;return((l=r.title)==null?void 0:l.value)&&Ye(x(r.title.value),"span")}),a=Te(null);vr(()=>{var l;(l=a.value)==null||l.focus()});const o=J({get(){return x(r.modelValue)||""},set(l){t("update:modelValue",l)}});function s(){t("submit")}return(l,u)=>(M(),W("form",{onSubmit:ln(s,["prevent"])},[P("div",QT,[x(i)?(M(),W("span",qT,[(M(),we(gt(x(i))))])):ve("",!0),e.textArea?(M(),we(x(bg),{key:1,modelValue:x(o),"onUpdate:modelValue":u[0]||(u[0]=c=>et(o)?o.value=c:null),placeholder:e.placeholder,maxHeight:e.maxHeight,onBlur:s,ref_key:"field",ref:a},null,8,["modelValue","placeholder","maxHeight"])):zo((M(),W("input",{key:2,type:"text","onUpdate:modelValue":u[1]||(u[1]=c=>et(o)?o.value=c:null),placeholder:e.placeholder,class:ze({fullWidth:!e.title}),onBlur:s,ref_key:"field",ref:a},null,42,ew)),[[Do,x(o)]])])],40,JT))}});var zf=Qe(tw,[["__scopeId","data-v-d74adb0a"]]);const nw={key:0},rw=["onClick","disabled"],iw={key:0},ow=["onClick"],aw=Ie({__name:"DangerButton",props:{disabled:{type:Boolean},skipConfirm:{type:Boolean}},emits:["click","confirmingChanged"],setup(e,{emit:t}){const r=Et(e),i=Te(!1);Dt(i,s=>{t("confirmingChanged",s)});function a(){if(x(r.skipConfirm)){t("click");return}i.value&&t("click"),i.value=!i.value}function o(){i.value=!1}return(s,l)=>(M(),W("span",{class:ze(["container",{confirming:i.value}])},[i.value?(M(),W("span",nw,"Are you sure?")):ve("",!0),P("button",{onClick:ln(a,["stop"]),class:"button danger",disabled:e.disabled},[i.value?(M(),W("span",iw,"Yes")):Mt(s.$slots,"default",{key:1},void 0,!0)],8,rw),i.value?(M(),W("button",{key:1,class:"button",onClick:ln(o,["stop"])},"No",8,ow)):ve("",!0)],2))}});var sw=Qe(aw,[["__scopeId","data-v-2f8ef34c"]]);const lw=["onClick"],uw=Ie({__name:"FeedbackButton",props:{left:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=Te(!1),r=Te(null);function i(){t("click"),r.value&&clearTimeout(r.value),n.value=!1,tn(()=>{n.value=!0,r.value=setTimeout(()=>n.value=!1,500)})}return(a,o)=>(M(),W("button",{onClick:ln(i,["stop"]),class:ze(["feedback",{activated:n.value,left:e.left}])},[Mt(a.$slots,"default",{},void 0,!0)],10,lw))}});var cw=Qe(uw,[["__scopeId","data-v-01a1b95c"]]);const Zr=e=>(hr("data-v-0136bef4"),e=e(),pr(),e),fw=Zr(()=>P("div",{class:"handle material-icons"},"drag_handle",-1)),dw={key:0,class:"actions"},hw=Zr(()=>P("span",{class:"material-icons"},"content_paste",-1)),pw=Zr(()=>P("span",{class:"material-icons"},"content_copy",-1)),vw=Zr(()=>P("span",{class:"material-icons"},"edit",-1)),mw=Zr(()=>P("span",{class:"material-icons",style:{margin:"-2px"}},"delete",-1)),gw={key:1,class:"actions"},yw=Zr(()=>P("span",{class:"material-icons"},"check",-1)),bw=Zr(()=>P("span",{class:"material-icons"},"close",-1)),xw={key:2,class:"details"},_w={class:"save-version"},Tw=Zr(()=>P("br",null,null,-1)),ww={key:0},Cw={key:3,class:"details"},Ew={key:4,class:"details error"},Iw=Zr(()=>P("br",null,null,-1)),Sw=Ie({__name:"Save",props:{save:null},emits:["export","open","duplicate","delete","editName"],setup(e,{emit:t}){const n=e,{save:r}=Et(n),i=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),a=Te(!1),o=Te(!1),s=Te("");Dt(a,()=>s.value=r.value.name||"");const l=J(()=>r.value&&r.value.id===xe.id),u=J(()=>l.value?xe.time:r.value&&r.value.time||0);function c(){t("editName",s.value),a.value=!1}return(f,d)=>(M(),W("div",{class:ze(["save",{active:x(l)}])},[fw,a.value?(M(),W("div",gw,[P("button",{onClick:c,class:"button"},[C(At,{display:"Save",direction:x(Ct).Left,class:"info"},{default:Pe(()=>[yw]),_:1},8,["direction"])]),P("button",{onClick:d[5]||(d[5]=h=>a.value=!a.value),class:"button"},[C(At,{display:"Cancel",direction:x(Ct).Left,class:"info"},{default:Pe(()=>[bw]),_:1},8,["direction"])])])):(M(),W("div",dw,[x(r).error==null&&!o.value?(M(),we(cw,{key:0,onClick:d[0]||(d[0]=h=>t("export")),class:"button",left:""},{default:Pe(()=>[C(At,{display:"Export",direction:x(Ct).Left,class:"info"},{default:Pe(()=>[hw]),_:1},8,["direction"])]),_:1})):ve("",!0),x(r).error==null&&!o.value?(M(),W("button",{key:1,onClick:d[1]||(d[1]=h=>t("duplicate")),class:"button"},[C(At,{display:"Duplicate",direction:x(Ct).Left,class:"info"},{default:Pe(()=>[pw]),_:1},8,["direction"])])):ve("",!0),x(r).error==null&&!o.value?(M(),W("button",{key:2,onClick:d[2]||(d[2]=h=>a.value=!a.value),class:"button"},[C(At,{display:"Edit Name",direction:x(Ct).Left,class:"info"},{default:Pe(()=>[vw]),_:1},8,["direction"])])):ve("",!0),C(sw,{disabled:x(l),onClick:d[3]||(d[3]=h=>t("delete")),onConfirmingChanged:d[4]||(d[4]=h=>o.value=h)},{default:Pe(()=>[C(At,{display:"Delete",direction:x(Ct).Left,class:"info"},{default:Pe(()=>[mw]),_:1},8,["direction"])]),_:1},8,["disabled"])])),x(r).error==null&&!a.value?(M(),W("div",xw,[P("button",{class:"button open",onClick:d[6]||(d[6]=h=>t("open"))},[P("h3",null,Je(x(r).name),1)]),P("span",_w,"v"+Je(x(r).modVersion),1),Tw,x(u)?(M(),W("div",ww,"Last played "+Je(x(i).format(x(u))),1)):ve("",!0)])):x(r).error==null&&a.value?(M(),W("div",Cw,[C(zf,{modelValue:s.value,"onUpdate:modelValue":d[7]||(d[7]=h=>s.value=h),class:"editname",onSubmit:c},null,8,["modelValue"])])):(M(),W("div",Ew,[le(" Error: Failed to load save with id "+Je(x(r).id),1),Iw,le(Je(x(r).error),1)]))],2))}});var Nw=Qe(Sw,[["__scopeId","data-v-0136bef4"]]);const Xf=e=>(hr("data-v-3b9991aa"),e=e(),pr(),e),Rw=Xf(()=>P("h2",null,"Saves Manager",-1)),Aw={class:"modal-footer"},Ow={class:"field"},Pw=Xf(()=>P("span",{class:"field-title"},"Create Save",-1)),Fw={class:"field-buttons"},Mw={class:"footer"},Lw=Xf(()=>P("div",{style:{"flex-grow":"1"}},null,-1)),Uw=Ie({__name:"SavesManager",setup(e,{expose:t}){const n=Te(!1),r=Te(null);t({open(){n.value=!0}});const i=Te(!1),a=Te(""),o=Te(null);Dt(a,m=>{m?tn(()=>{try{if(m[0]!=="{")if(m[0]==="e")m=decodeURIComponent(escape(atob(m)));else if(m[0]==="\u1BE1")m=li.decompressFromUTF16(m);else{console.warn("Unable to determine preset encoding",m),i.value=!0;return}const b=JSON.parse(m);if(typeof b!="object"){i.value=!0;return}const T=Qs();b.id=T,rr(b),a.value="",i.value=!1,bt.saves.push(T)}catch{i.value=!0}}):i.value=!1});let s={},l=Te(Object.keys(s).reduce((m,b)=>(m.push({label:b.split("/").slice(-1)[0].slice(0,-4),value:s[b]}),m),[]));const u=jo({});function c(m){if(u[m]==null){let b=localStorage.getItem(m);if(b==null)u[m]={error:"Save doesn't exist in localStorage",id:m};else if(b==="dW5kZWZpbmVk")u[m]={error:"Save is undefined",id:m};else try{if(b[0]!=="{")if(b[0]==="e")b=decodeURIComponent(escape(atob(b)));else if(b[0]==="\u1BE1")b=li.decompressFromUTF16(b);else return console.warn("Unable to determine preset encoding",b),i.value=!0,u[m]={error:"Unable to determine preset encoding",id:m},u[m];u[m]={...JSON.parse(b),id:m}}catch(T){u[m]={error:T,id:m},console.warn(`SavesManager: Failed to load info about save with id ${m}:
+${T}
+${b}`)}}return u[m]}Dt(n,m=>{m&&Object.keys(u).forEach(b=>delete u[b])});const f=J(()=>bt.saves.reduce((m,b)=>(m[b]=c(b),m),{}));function d(m){let b;switch(xe.id===m?b=$m(xe[qt]):b=JSON.stringify(f.value[m]),_t.exportEncoding){default:console.warn(`Unknown save encoding: ${_t.exportEncoding}. Defaulting to lz`);case"lz":b=li.compressToUTF16(b);break;case"base64":b=btoa(unescape(encodeURIComponent(b)));break;case"plain":break}const T=document.createElement("textarea");T.value=b,document.body.appendChild(T),T.select(),T.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(T)}function h(m){xe.id===m&&rr();const b={...f.value[m],id:Qs()};rr(b),bt.saves.push(b.id)}function p(m){bt.saves=bt.saves.filter(b=>b!==m),localStorage.removeItem(m),u[m]=void 0}function v(m){f.value[xe.id].time=xe.time,rr(),u[xe.id]=void 0,Wi(f.value[m]),u[m]=void 0}function g(m){if(o.value=m,tn(()=>{o.value=null}),m[0]!=="{")if(m[0]==="e")m=decodeURIComponent(escape(atob(m)));else if(m[0]==="\u1BE1")m=li.decompressFromUTF16(m);else{console.warn("Unable to determine preset encoding",m);return}const b=JSON.parse(m);b.id=Qs(),rr(b),bt.saves.push(b.id),v(b.id)}function y(m,b){const T=f.value[m];T&&(T.name=b,xe.id===m?(xe.name=b,rr()):(rr(T),u[m]=void 0))}return(m,b)=>(M(),we(wi,{modelValue:n.value,"onUpdate:modelValue":b[4]||(b[4]=T=>n.value=T),ref_key:"modal",ref:r},{header:Pe(()=>[Rw]),body:Pe(({shown:T})=>[T?(M(),we(x(BT),{key:0,list:x(bt).saves,handle:".handle",itemKey:S=>S},{item:Pe(({element:S})=>[C(Nw,{save:x(f)[S],onOpen:w=>v(S),onExport:w=>d(S),onEditName:w=>y(S,w),onDuplicate:w=>h(S),onDelete:w=>p(S)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):ve("",!0)]),footer:Pe(()=>[P("div",Aw,[C(zf,{modelValue:a.value,"onUpdate:modelValue":b[0]||(b[0]=T=>a.value=T),title:"Import Save",placeholder:"Paste your save here!",class:ze({importingFailed:i.value})},null,8,["modelValue","class"]),P("div",Ow,[Pw,P("div",Fw,[P("button",{class:"button",onClick:b[1]||(b[1]=T=>v(x(Ro)().id))},"New Game"),Object.keys(x(l)).length>0?(M(),we(Gf,{key:0,options:x(l),modelValue:o.value,"onUpdate:modelValue":b[2]||(b[2]=T=>g(T)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):ve("",!0)])]),P("div",Mw,[Lw,P("button",{class:"button modal-default-button",onClick:b[3]||(b[3]=T=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var xg=Qe(Uw,[["__scopeId","data-v-3b9991aa"]]);const Hn=e=>(hr("data-v-4a3f8425"),e=e(),pr(),e),Bw=["src","alt"],kw={key:1,class:"title"},Dw=Hn(()=>P("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Gw={class:"discord"},Vw={class:"discord-links"},$w={key:0},jw=["href"],Hw=Hn(()=>P("li",null,[P("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),zw=Hn(()=>P("li",null,[P("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Xw={href:"https://forums.moddingtree.com/",target:"_blank"},Ww=Hn(()=>P("span",{class:"material-icons"},"forum",-1)),Kw=Hn(()=>P("span",{class:"material-icons"},"info",-1)),Yw=Hn(()=>P("span",{class:"material-icons"},"library_books",-1)),Zw=Hn(()=>P("span",{class:"material-icons"},"settings",-1)),Jw=Hn(()=>P("span",{class:"material-icons"},"library_books",-1)),Qw=Hn(()=>P("span",{class:"material-icons"},"settings",-1)),qw=Hn(()=>P("span",{class:"material-icons"},"info",-1)),e2={href:"https://forums.moddingtree.com/",target:"_blank"},t2=Hn(()=>P("span",{class:"material-icons"},"forum",-1)),n2={class:"discord"},r2={class:"discord-links"},i2={key:0},o2=["href"],a2=Hn(()=>P("li",null,[P("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),s2=Hn(()=>P("li",null,[P("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),l2=Ie({__name:"Nav",setup(e){const t=Te(null),n=Te(null),r=Te(null),i=Te(null),{useHeader:a,banner:o,title:s,discordName:l,discordLink:u,versionNumber:c}=_t;function f(){window.open(u,"mywindow")}return(d,h)=>(M(),W(Oe,null,[x(a)?(M(),W("div",un({key:0,class:"nav"},d.$attrs),[x(o)?(M(),W("img",{key:0,src:x(o),class:"banner",alt:x(s)},null,8,Bw)):(M(),W("div",kw,Je(x(s)),1)),P("div",{onClick:h[0]||(h[0]=p=>{var v;return(v=i.value)==null?void 0:v.open()}),class:"version-container"},[C(At,{display:"Changelog",direction:x(Ct).Down,class:"version"},{default:Pe(()=>[P("span",null,"v"+Je(x(c)),1)]),_:1},8,["direction"])]),Dw,P("div",Gw,[P("span",{onClick:f,class:"material-icons"},"discord"),P("ul",Vw,[x(u)?(M(),W("li",$w,[P("a",{href:x(u),target:"_blank"},Je(x(l)),9,jw)])):ve("",!0),Hw,zw])]),P("div",null,[P("a",Xw,[C(At,{display:"Forums",direction:x(Ct).Down,yoffset:"5px"},{default:Pe(()=>[Ww]),_:1},8,["direction"])])]),P("div",{onClick:h[1]||(h[1]=p=>{var v;return(v=t.value)==null?void 0:v.open()})},[C(At,{display:"Info",direction:x(Ct).Down,class:"info"},{default:Pe(()=>[Kw]),_:1},8,["direction"])]),P("div",{onClick:h[2]||(h[2]=p=>{var v;return(v=n.value)==null?void 0:v.open()})},[C(At,{display:"Saves",direction:x(Ct).Down,xoffset:"-20px"},{default:Pe(()=>[Yw]),_:1},8,["direction"])]),P("div",{onClick:h[3]||(h[3]=p=>{var v;return(v=r.value)==null?void 0:v.open()})},[C(At,{display:"Options",direction:x(Ct).Down,xoffset:"-66px"},{default:Pe(()=>[Zw]),_:1},8,["direction"])])],16)):(M(),W("div",un({key:1,class:"overlay-nav"},d.$attrs),[P("div",{onClick:h[4]||(h[4]=p=>{var v;return(v=i.value)==null?void 0:v.open()}),class:"version-container"},[C(At,{display:"Changelog",direction:x(Ct).Right,xoffset:"25%",class:"version"},{default:Pe(()=>[P("span",null,"v"+Je(x(c)),1)]),_:1},8,["direction"])]),P("div",{onClick:h[5]||(h[5]=p=>{var v;return(v=n.value)==null?void 0:v.open()})},[C(At,{display:"Saves",direction:x(Ct).Right},{default:Pe(()=>[Jw]),_:1},8,["direction"])]),P("div",{onClick:h[6]||(h[6]=p=>{var v;return(v=r.value)==null?void 0:v.open()})},[C(At,{display:"Options",direction:x(Ct).Right},{default:Pe(()=>[Qw]),_:1},8,["direction"])]),P("div",{onClick:h[7]||(h[7]=p=>{var v;return(v=t.value)==null?void 0:v.open()})},[C(At,{display:"Info",direction:x(Ct).Right},{default:Pe(()=>[qw]),_:1},8,["direction"])]),P("div",null,[P("a",e2,[C(At,{display:"Forums",direction:x(Ct).Right,xoffset:"7px"},{default:Pe(()=>[t2]),_:1},8,["direction"])])]),P("div",n2,[P("span",{onClick:f,class:"material-icons"},"discord"),P("ul",r2,[x(u)?(M(),W("li",i2,[P("a",{href:x(u),target:"_blank"},Je(x(l)),9,o2)])):ve("",!0),a2,s2])])],16)),C(O_,{ref_key:"info",ref:t,changelog:i.value},null,8,["changelog"]),C(xg,{ref_key:"savesManager",ref:n},null,512),C(Q_,{ref_key:"options",ref:r},null,512),C(d_,{ref_key:"changelog",ref:i},null,512)],64))}});var _g=Qe(l2,[["__scopeId","data-v-4a3f8425"]]);const u2={class:"inner-tab"},c2=Ie({__name:"Game",setup(e){const t=Sn(xe,"tabs"),n=J(()=>Object.keys(Rn)),r=_t.useHeader;function i(a){const{display:o,minimized:s,minWidth:l,name:u,color:c,minimizable:f,nodes:d}=a;return{display:o,minimized:s,minWidth:l,name:u,color:c,minimizable:f,nodes:d}}return(a,o)=>(M(),W("div",{class:ze(["tabs-container",{useHeader:x(r)}])},[(M(!0),W(Oe,null,Rr(x(t),(s,l)=>{var u,c;return M(),W("div",{key:l,class:ze(["tab",x((u=x(Rn)[s])==null?void 0:u.classes)]),ref_for:!0,ref:`tab-${l}`,style:tt(x((c=x(Rn)[s])==null?void 0:c.style))},[l===0&&!x(r)?(M(),we(_g,{key:0})):ve("",!0),P("div",u2,[x(n).includes(s)?(M(),we(l_,un({key:0},i(x(Rn)[s]),{index:l,tab:()=>{var f;return(f=a.$refs[`tab-${l}`])==null?void 0:f[0]}}),null,16,["index","tab"])):(M(),we(gt(s),{key:1,index:l},null,8,["index"]))])],6)}),128))],2))}});var f2=Qe(c2,[["__scopeId","data-v-4cb9ce0f"]]);const d2={},h2=e=>(hr("data-v-89b4b00a"),e=e(),pr(),e),p2=h2(()=>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 v2(e,t){return M(),we(Ti,{appear:""},{default:Pe(()=>[p2]),_:1})}var m2=Qe(d2,[["render",v2],["__scopeId","data-v-89b4b00a"]]);const En=Ie({__name:"Spacer",props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(t,n)=>(M(),W("div",{style:tt({width:e.width,height:e.height})},null,4))}});function Ga(e,t="points",n=0,r=void 0){const i=et(e)?e:Kt(e);return i.displayName=t,i.precision=n,i.small=r,i}function Tg(e){const t=Kt(e.value);return Dt(e,n=>{O.gt(n,t.value)&&(t.value=n)}),t}function g2(e){const t=Kt(e.value);return Dt(e,(n,r)=>{O.gt(n,r)&&(t.value=O.add(t.value,O.sub(n,r)))}),t}const y2=new O("10^^8"),b2=new O("1e100");function x2(e,t){const n=Te(0),r=Te(0),i=Te(0);return sn.on("update",o=>{if(r.value=0,O.lte(e.value,b2)){i.value=e.value;return}let s=e.value,l=i.value;if(i.value=s,O.gt(s,l))if(O.gte(s,y2))s=O.slog(s,1e10),l=O.slog(l,1e10),n.value=s.sub(l).div(o),r.value=-1;else for(;O.div(s,l).log(10).div(o).gte("100")&&r.value<=5&&O.gt(l,0);)s=O.log10(s),l=O.log10(l),n.value=s.sub(l).div(o),r.value++}),J(()=>r.value===0?t?kt(t.value,e.precision,e.small)+" "+e.displayName+"/s":"":kt(n.value)+" OOM"+(r.value<0?"^OOM":"^"+r.value)+"s/sec")}function zr(e,t){const n=t!=null?t:e.value;return O.eq(e.precision,0)?gn(n):kt(n,e.precision,e.small)}const _2=["x1","y1","x2","y2"],T2=Ie({__name:"Link",props:{link:null,startNode:null,endNode:null,boundingRect:null},setup(e){const n=Et(e),r=J(()=>{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}),i=J(()=>{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)=>(M(),W("line",un({"stroke-width":"15px",stroke:"white"},e.link,{x1:x(r).x,y1:x(r).y,x2:x(i).x,y2:x(i).y}),null,16,_2))}});const w2=Ie({__name:"Links",props:{links:null},setup(e){var l;const n=Sn(e,"links"),r=Te(null),i=Kn(Bf,Te({})),a=Kn(kf,Te(void 0)),o=Te((l=r.value)==null?void 0:l.getBoundingClientRect());Dt(a,()=>{var u;return o.value=(u=r.value)==null?void 0:u.getBoundingClientRect()}),vr(()=>{var u;return o.value=(u=r.value)==null?void 0:u.getBoundingClientRect()});const s=J(()=>{var c,f;const u=i.value;return(f=(c=n.value)==null?void 0:c.filter(d=>{var h,p;return((h=u[d.startNode.id])==null?void 0:h.rect)&&((p=u[d.startNode.id])==null?void 0:p.rect)}))!=null?f:[]});return(u,c)=>(M(),W(Oe,null,[x(s)?(M(),W("svg",qp(un({key:0},u.$attrs)),[(M(!0),W(Oe,null,Rr(x(s),(f,d)=>(M(),we(T2,{key:d,link:f,boundingRect:o.value,startNode:x(i)[f.startNode.id],endNode:x(i)[f.endNode.id]},null,8,["link","boundingRect","startNode","endNode"]))),128))],16)):ve("",!0),P("div",{ref_key:"resizeListener",ref:r,class:"resize-listener"},null,512)],64))}});var wg=Qe(w2,[["__scopeId","data-v-c139d80e"]]),C2=Ie({props:{nodes:{type:q(Array),required:!0},leftSideNodes:q(Array),rightSideNodes:q(Array),branches:q(Array)},components:{Links:wg},setup(e){const{nodes:t,leftSideNodes:n,rightSideNodes:r}=Et(e),i=An();zt(()=>{const s=Ot(t);i.value=Ye(it(()=>C(Oe,null,[s.map(l=>C("span",{class:"row tree-row",style:"margin: 50px auto;"},[l.map(Er)]))])))});const a=An();zt(()=>{const s=Ot(n);a.value=s?Ye(it(()=>C("span",{class:"left-side-nodes small"},[s.map(Er)]))):""});const o=An();return zt(()=>{const s=Ot(r);o.value=s?Ye(it(()=>C("span",{class:"side-nodes small"},[s.map(Er)]))):""}),{unref:x,nodesComp:i,leftNodesComp:a,rightNodesComp:o}}});function E2(e,t,n,r,i,a){const o=wt("Links");return M(),W(Oe,null,[(M(),we(gt(e.nodesComp))),e.leftNodesComp?(M(),we(gt(e.leftNodesComp),{key:0})):ve("",!0),e.rightNodesComp?(M(),we(gt(e.rightNodesComp),{key:1})):ve("",!0),e.branches?(M(),we(o,{key:2,links:e.unref(e.branches)},null,8,["links"])):ve("",!0)],64)}var I2=Qe(C2,[["render",E2],["__scopeId","data-v-39ca96d0"]]);const S2={key:0},N2={key:0,class:"mark star"},R2=["src"],A2=Ie({__name:"MarkNode",props:{mark:{type:[Boolean,String]}},setup(e){return(t,n)=>e.mark?(M(),W("div",S2,[e.mark===!0?(M(),W("div",N2)):(M(),W("img",{key:1,class:"mark",src:e.mark},null,8,R2))])):ve("",!0)}});var Xo=Qe(A2,[["__scopeId","data-v-2207999f"]]);const O2=Ie({__name:"Node",props:{id:null},setup(e){const n=Et(e),r=Kn(Lf,()=>{}),i=Kn(Uf,()=>{}),a=Te(null),o=J(()=>a.value&&a.value.parentElement);return Dt([o,n.id],([s,l],[u,c])=>{u&&i(x(c)),s&&r(l,s)}),Ho(()=>i(x(n.id))),(s,l)=>(M(),W("div",{class:"node",ref_key:"node",ref:a},null,512))}});var Jr=Qe(O2,[["__scopeId","data-v-2cb1bb79"]]);const P2=Ie({props:{display:q(Object,String,Function),visibility:{type:q(Number),required:!0},style:q(String,Object,Array),classes:q(Object),onClick:Function,onHold:Function,color:q(String),glowColor:q(String),canClick:{type:q(Boolean),required:!0},mark:q(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:Xo,Node:Jr},setup(e){const{onClick:t,onHold:n,display:r}=Et(e),i=lo(r),{start:a,stop:o}=Mf(t,n);return{start:a,stop:o,comp:i,unref:x,Visibility:nt,isCoercableComponent:Jn}}});function F2(e,t,n,r,i,a){var l;const o=wt("MarkNode"),s=wt("Node");return e.unref(e.visibility)!==e.Visibility.None?(M(),W("div",{key:0,style:tt({visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0}),class:ze({treeNode:!0,can:e.unref(e.canClick),...e.unref(e.classes)}),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))},[P("div",{style:tt([{backgroundColor:e.unref(e.color),boxShadow:`-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 20px ${e.unref(e.glowColor)}`},(l=e.unref(e.style))!=null?l:[]])},[(M(),we(gt(e.unref(e.comp))))],4),C(o,{mark:e.unref(e.mark)},null,8,["mark"]),C(s,{id:e.id},null,8,["id"])],38)):ve("",!0)}var M2=Qe(P2,[["render",F2],["__scopeId","data-v-1c0c107d"]]);const L2=Symbol("TreeNode"),U2=Symbol("Tree");function Ra(e){return an(()=>{var n;const t=(n=e==null?void 0:e())!=null?n:{};if(t.id=_n("treeNode-"),t.type=L2,t[Jt]=M2,H(t,"visibility"),ft(t,"visibility",nt.Visible),H(t,"canClick"),ft(t,"canClick",!0),H(t,"color"),H(t,"display"),H(t,"glowColor"),H(t,"classes"),H(t,"style"),H(t,"mark"),t.onClick){const r=t.onClick.bind(t);t.onClick=function(){x(t.canClick)&&r()}}if(t.onHold){const r=t.onHold.bind(t);t.onHold=function(){x(t.canClick)&&r()}}return t[nn]=function(){const{display:r,visibility:i,style:a,classes:o,onClick:s,onHold:l,color:u,glowColor:c,canClick:f,mark:d,id:h}=this;return{display:r,visibility:i,style:a,classes:o,onClick:s,onHold:l,color:u,glowColor:c,canClick:f,mark:d,id:h}},t})}function Cg(e){return an(()=>{const t=e();return t.id=_n("tree-"),t.type=U2,t[Jt]=I2,t.isResetting=Te(!1),t.resettingNode=An(null),t.reset=function(n){var i,a;const r=t;r.isResetting.value=!0,r.resettingNode.value=n,(i=r.resetPropagation)==null||i.call(r,r,n),(a=r.onReset)==null||a.call(r,n),r.isResetting.value=!1,r.resettingNode.value=null},t.links=J(()=>{var r;return(r=x(t.branches))!=null?r:[]}),H(t,"visibility"),ft(t,"visibility",nt.Visible),H(t,"nodes"),H(t,"leftSideNodes"),H(t,"rightSideNodes"),H(t,"branches"),t[nn]=function(){const{nodes:n,leftSideNodes:r,rightSideNodes:i,branches:a}=this;return{nodes:n,leftSideNodes:r,rightSideNodes:i,branches:a}},t})}const B2=function(e,t){const n=[t];let r=[t];if(e.branches!=null){const i=x(e.branches);for(;r.length>0;){const a=[];r.forEach(o=>{i.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 l;a.includes(s)||(a.push(s),(l=s.reset)==null||l.reset())})}),r=a,n.push(...r)}}};function Eg(e,t=null,n=0){const r=Zn(n);return J(()=>t==null||O.gte(e.value,x(r))?zr(e)+" "+e.displayName:`Reach ${O.eq(t.precision,0)?gn(x(r)):kt(x(r),t.precision)} ${t.displayName} to unlock (You have ${O.eq(t.precision,0)?gn(t.value):kt(t.value,t.precision)})`)}const k2=Ie({props:{visibility:{type:q(Number),required:!0},display:q(Object,String,Function),earned:{type:q(Boolean),required:!0},image:q(String),style:q(String,Object,Array),classes:q(Object),mark:q(Boolean,String),id:{type:String,required:!0}},components:{Node:Jr,MarkNode:Xo},setup(e){const{display:t}=Et(e);return{component:lo(t),unref:x,Visibility:nt}}});function D2(e,t,n,r,i,a){var l;const o=wt("MarkNode"),s=wt("Node");return e.unref(e.visibility)!==e.Visibility.None?(M(),W("div",{key:0,style:tt([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0,backgroundImage:e.earned&&e.image&&`url(${e.image})`||""},(l=e.unref(e.style))!=null?l:[]]),class:ze({feature:!0,achievement:!0,locked:!e.unref(e.earned),bought:e.unref(e.earned),...e.unref(e.classes)})},[e.component?(M(),we(gt(e.component),{key:0})):ve("",!0),C(o,{mark:e.unref(e.mark)},null,8,["mark"]),C(s,{id:e.id},null,8,["id"])],6)):ve("",!0)}var G2=Qe(k2,[["render",D2],["__scopeId","data-v-58163dab"]]),V2=Object.defineProperty,Rh=Object.getOwnPropertySymbols,$2=Object.prototype.hasOwnProperty,j2=Object.prototype.propertyIsEnumerable,Ah=(e,t,n)=>t in e?V2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ig=(e,t)=>{for(var n in t||(t={}))$2.call(t,n)&&Ah(e,n,t[n]);if(Rh)for(var n of Rh(t))j2.call(t,n)&&Ah(e,n,t[n]);return e},eu=e=>typeof e=="function",tu=e=>typeof e=="string",Sg=e=>tu(e)&&e.trim().length>0,H2=e=>typeof e=="number",Ki=e=>typeof e=="undefined",Va=e=>typeof e=="object"&&e!==null,z2=e=>Sr(e,"tag")&&Sg(e.tag),Ng=e=>window.TouchEvent&&e instanceof TouchEvent,Rg=e=>Sr(e,"component")&&Ag(e.component),X2=e=>eu(e)||Va(e),Ag=e=>!Ki(e)&&(tu(e)||X2(e)||Rg(e)),Oh=e=>Va(e)&&["height","width","right","left","top","bottom"].every(t=>H2(e[t])),Sr=(e,t)=>(Va(e)||eu(e))&&t in e,W2=(e=>()=>e++)(0);function Ou(e){return Ng(e)?e.targetTouches[0].clientX:e.clientX}function Ph(e){return Ng(e)?e.targetTouches[0].clientY:e.clientY}var K2=e=>{Ki(e.remove)?e.parentNode&&e.parentNode.removeChild(e):e.remove()},cs=e=>Rg(e)?cs(e.component):z2(e)?Ie({render(){return e}}):typeof e=="string"?e:ot(x(e)),Y2=e=>{if(typeof e=="string")return e;const t=Sr(e,"props")&&Va(e.props)?e.props:{},n=Sr(e,"listeners")&&Va(e.listeners)?e.listeners:{};return{component:cs(e),props:t,listeners:n}},Z2=()=>typeof window!="undefined",Wf=class{constructor(){this.allHandlers={}}getHandlers(e){return this.allHandlers[e]||[]}on(e,t){const n=this.getHandlers(e);n.push(t),this.allHandlers[e]=n}off(e,t){const n=this.getHandlers(e);n.splice(n.indexOf(t)>>>0,1)}emit(e,t){this.getHandlers(e).forEach(r=>r(t))}},J2=e=>["on","off","emit"].every(t=>Sr(e,t)&&eu(e[t])),kn;(function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.DEFAULT="default"})(kn||(kn={}));var Il;(function(e){e.TOP_LEFT="top-left",e.TOP_CENTER="top-center",e.TOP_RIGHT="top-right",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_CENTER="bottom-center",e.BOTTOM_RIGHT="bottom-right"})(Il||(Il={}));var Dn;(function(e){e.ADD="add",e.DISMISS="dismiss",e.UPDATE="update",e.CLEAR="clear",e.UPDATE_DEFAULTS="update_defaults"})(Dn||(Dn={}));var lr="Vue-Toastification",ar={type:{type:String,default:kn.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},Og={type:ar.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},ol={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:ar.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},Ac={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},Pg={transition:{type:[Object,String],default:`${lr}__bounce`}},Q2={position:{type:String,default:Il.TOP_RIGHT},draggable:ar.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:ar.trueBoolean,pauseOnHover:ar.trueBoolean,closeOnClick:ar.trueBoolean,timeout:Ac.timeout,hideProgressBar:Ac.hideProgressBar,toastClassName:ar.classNames,bodyClassName:ar.classNames,icon:Og.customIcon,closeButton:ol.component,closeButtonClassName:ol.classNames,showCloseButtonOnHover:ol.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new Wf}},q2={id:{type:[String,Number],required:!0,default:0},type:ar.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},eC={container:{type:[Object,Function],default:()=>document.body},newestOnTop:ar.trueBoolean,maxToasts:{type:Number,default:20},transition:Pg.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:e=>e},filterToasts:{type:Function,default:e=>e},containerClassName:ar.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},$r={CORE_TOAST:Q2,TOAST:q2,CONTAINER:eC,PROGRESS_BAR:Ac,ICON:Og,TRANSITION:Pg,CLOSE_BUTTON:ol},Fg=Ie({name:"VtProgressBar",props:$r.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${lr}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function tC(e,t){return M(),W("div",{style:tt(e.style),class:ze(e.cpClass)},null,6)}Fg.render=tC;var nC=Fg,Mg=Ie({name:"VtCloseButton",props:$r.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?cs(this.component):"button"},classes(){const e=[`${lr}__close-button`];return this.showOnHover&&e.push("show-on-hover"),e.concat(this.classNames)}}}),rC=le(" \xD7 ");function iC(e,t){return M(),we(gt(e.buttonComponent),un({"aria-label":e.ariaLabel,class:e.classes},e.$attrs),{default:Pe(()=>[rC]),_:1},16,["aria-label","class"])}Mg.render=iC;var oC=Mg,Lg={},aC={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},sC=P("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1),lC=[sC];function uC(e,t){return M(),W("svg",aC,lC)}Lg.render=uC;var cC=Lg,Ug={},fC={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},dC=P("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1),hC=[dC];function pC(e,t){return M(),W("svg",fC,hC)}Ug.render=pC;var Fh=Ug,Bg={},vC={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},mC=P("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),gC=[mC];function yC(e,t){return M(),W("svg",vC,gC)}Bg.render=yC;var bC=Bg,kg={},xC={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},_C=P("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),TC=[_C];function wC(e,t){return M(),W("svg",xC,TC)}kg.render=wC;var CC=kg,Dg=Ie({name:"VtIcon",props:$r.ICON,computed:{customIconChildren(){return Sr(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return tu(this.customIcon)?this.trimValue(this.customIcon):Sr(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return Sr(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:Ag(this.customIcon)?cs(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[kn.DEFAULT]:Fh,[kn.INFO]:Fh,[kn.SUCCESS]:cC,[kn.ERROR]:CC,[kn.WARNING]:bC}[this.type]},iconClasses(){const e=[`${lr}__icon`];return this.hasCustomIcon?e.concat(this.customIconClass):e}},methods:{trimValue(e,t=""){return Sg(e)?e.trim():t}}});function EC(e,t){return M(),we(gt(e.component),{class:ze(e.iconClasses)},{default:Pe(()=>[le(Je(e.customIconChildren),1)]),_:1},8,["class"])}Dg.render=EC;var IC=Dg,Gg=Ie({name:"VtToast",components:{ProgressBar:nC,CloseButton:oC,Icon:IC},inheritAttrs:!1,props:Object.assign({},$r.CORE_TOAST,$r.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const e=[`${lr}__toast`,`${lr}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&e.push("disable-transition"),this.rtl&&e.push(`${lr}__toast--rtl`),e},bodyClasses(){return[`${lr}__toast-${tu(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return Oh(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:Sr,getVueComponentFromObj:cs,closeToast(){this.eventBus.emit(Dn.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const e=this.$el;e.addEventListener("touchstart",this.onDragStart,{passive:!0}),e.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const e=this.$el;e.removeEventListener("touchstart",this.onDragStart),e.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(e){this.beingDragged=!0,this.dragPos={x:Ou(e),y:Ph(e)},this.dragStart=Ou(e),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(e){this.beingDragged&&(e.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:Ou(e),y:Ph(e)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,Oh(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),SC=["role"];function NC(e,t){const n=wt("Icon"),r=wt("CloseButton"),i=wt("ProgressBar");return M(),W("div",{class:ze(e.classes),style:tt(e.draggableStyle),onClick:t[0]||(t[0]=(...a)=>e.clickHandler&&e.clickHandler(...a)),onMouseenter:t[1]||(t[1]=(...a)=>e.hoverPause&&e.hoverPause(...a)),onMouseleave:t[2]||(t[2]=(...a)=>e.hoverPlay&&e.hoverPlay(...a))},[e.icon?(M(),we(n,{key:0,"custom-icon":e.icon,type:e.type},null,8,["custom-icon","type"])):ve("v-if",!0),P("div",{role:e.accessibility.toastRole||"alert",class:ze(e.bodyClasses)},[typeof e.content=="string"?(M(),W(Oe,{key:0},[le(Je(e.content),1)],2112)):(M(),we(gt(e.getVueComponentFromObj(e.content)),un({key:1,"toast-id":e.id},e.hasProp(e.content,"props")?e.content.props:{},Vv(e.hasProp(e.content,"listeners")?e.content.listeners:{}),{onCloseToast:e.closeToast}),null,16,["toast-id","onCloseToast"]))],10,SC),e.closeButton?(M(),we(r,{key:1,component:e.closeButton,"class-names":e.closeButtonClassName,"show-on-hover":e.showCloseButtonOnHover,"aria-label":e.accessibility.closeButtonLabel,onClick:ln(e.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):ve("v-if",!0),e.timeout?(M(),we(i,{key:2,"is-running":e.isRunning,"hide-progress-bar":e.hideProgressBar,timeout:e.timeout,onCloseToast:e.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):ve("v-if",!0)],38)}Gg.render=NC;var RC=Gg,Vg=Ie({name:"VtTransition",props:$r.TRANSITION,emits:["leave"],methods:{hasProp:Sr,leave(e){e instanceof HTMLElement&&(e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px",e.style.width=getComputedStyle(e).width,e.style.position="absolute")}}});function AC(e,t){return M(),we(wm,{tag:"div","enter-active-class":e.transition.enter?e.transition.enter:`${e.transition}-enter-active`,"move-class":e.transition.move?e.transition.move:`${e.transition}-move`,"leave-active-class":e.transition.leave?e.transition.leave:`${e.transition}-leave-active`,onLeave:e.leave},{default:Pe(()=>[Mt(e.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}Vg.render=AC;var OC=Vg,$g=Ie({name:"VueToastification",devtools:{hide:!0},components:{Toast:RC,VtTransition:OC},props:Object.assign({},$r.CORE_TOAST,$r.CONTAINER,$r.TRANSITION),data(){return{count:0,positions:Object.values(Il),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const e=this.eventBus;e.on(Dn.ADD,this.addToast),e.on(Dn.CLEAR,this.clearToasts),e.on(Dn.DISMISS,this.dismissToast),e.on(Dn.UPDATE,this.updateToast),e.on(Dn.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(e){eu(e)&&(e=await e()),K2(this.$el),e.appendChild(this.$el)},setToast(e){Ki(e.id)||(this.toasts[e.id]=e)},addToast(e){e.content=Y2(e.content);const t=Object.assign({},this.defaults,e.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[e.type],e),n=this.defaults.filterBeforeCreate(t,this.toastArray);n&&this.setToast(n)},dismissToast(e){const t=this.toasts[e];!Ki(t)&&!Ki(t.onClose)&&t.onClose(),delete this.toasts[e]},clearToasts(){Object.keys(this.toasts).forEach(e=>{this.dismissToast(e)})},getPositionToasts(e){const t=this.filteredToasts.filter(n=>n.position===e).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?t.reverse():t},updateDefaults(e){Ki(e.container)||this.setup(e.container),this.defaults=Object.assign({},this.defaults,e)},updateToast({id:e,options:t,create:n}){this.toasts[e]?(t.timeout&&t.timeout===this.toasts[e].timeout&&t.timeout++,this.setToast(Object.assign({},this.toasts[e],t))):n&&this.addToast(Object.assign({},{id:e},t))},getClasses(e){return[`${lr}__container`,e].concat(this.defaults.containerClassName)}}});function PC(e,t){const n=wt("Toast"),r=wt("VtTransition");return M(),W("div",null,[(M(!0),W(Oe,null,Rr(e.positions,i=>(M(),W("div",{key:i},[C(r,{transition:e.defaults.transition,class:ze(e.getClasses(i))},{default:Pe(()=>[(M(!0),W(Oe,null,Rr(e.getPositionToasts(i),a=>(M(),we(n,un({key:a.id},a),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}$g.render=PC;var FC=$g,Mh=(e={},t=!0)=>{const n=e.eventBus=e.eventBus||new Wf;t&&tn(()=>{const a=Pf(FC,Ig({},e)),o=a.mount(document.createElement("div")),s=e.onMounted;if(Ki(s)||s(o,a),e.shareAppContext){const l=e.shareAppContext;l===!0?console.warn(`[${lr}] App to share context with was not provided.`):(a._context.components=l._context.components,a._context.directives=l._context.directives,a._context.mixins=l._context.mixins,a._context.provides=l._context.provides,a.config.globalProperties=l.config.globalProperties)}});const r=(a,o)=>{const s=Object.assign({},{id:W2(),type:kn.DEFAULT},o,{content:a});return n.emit(Dn.ADD,s),s.id};r.clear=()=>n.emit(Dn.CLEAR,void 0),r.updateDefaults=a=>{n.emit(Dn.UPDATE_DEFAULTS,a)},r.dismiss=a=>{n.emit(Dn.DISMISS,a)};function i(a,{content:o,options:s},l=!1){const u=Object.assign({},s,{content:o});n.emit(Dn.UPDATE,{id:a,options:u,create:l})}return r.update=i,r.success=(a,o)=>r(a,Object.assign({},o,{type:kn.SUCCESS})),r.info=(a,o)=>r(a,Object.assign({},o,{type:kn.INFO})),r.error=(a,o)=>r(a,Object.assign({},o,{type:kn.ERROR})),r.warning=(a,o)=>r(a,Object.assign({},o,{type:kn.WARNING})),r},MC=()=>{const e=()=>console.warn(`[${lr}] This plugin does not support SSR!`);return new Proxy(e,{get(){return e}})};function Oc(e){return Z2()?J2(e)?Mh({eventBus:e},!1):Mh(e,!0):MC()}var jg=Symbol("VueToastification"),Hg=new Wf,LC=(e,t)=>{(t==null?void 0:t.shareAppContext)===!0&&(t.shareAppContext=e);const n=Oc(Ig({eventBus:Hg},t));e.provide(jg,n)},Kf=e=>{if(e)return Oc(e);const t=Fr()?Kn(jg,void 0):void 0;return t||Oc(Hg)},UC=LC;sn.on("setupVue",e=>e.use(UC));function Yf(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 BC(){return Yf("red","20px")}const kC=Kf(),DC=Symbol("Achievement");function Pu(e){const t=Kt(!1);return an(()=>{var r;const n=(r=e==null?void 0:e())!=null?r:{};if(n.id=_n("achievement-"),n.type=DC,n[Jt]=G2,n.earned=t,n.complete=function(){t.value=!0},H(n,"visibility"),ft(n,"visibility",nt.Visible),H(n,"display"),H(n,"mark"),H(n,"image"),H(n,"style"),H(n,"classes"),n[nn]=function(){const{visibility:i,display:a,earned:o,image:s,style:l,classes:u,mark:c,id:f}=this;return{visibility:i,display:a,earned:o,image:s,style:x(l),classes:u,mark:c,id:f}},n.shouldEarn){const i=n;zt(()=>{var a,o;if(bt.active===xe.id&&!i.earned.value&&x(i.visibility)===nt.Visible&&((a=i.shouldEarn)==null?void 0:a.call(i))&&(i.earned.value=!0,(o=i.onComplete)==null||o.call(i),i.display)){const s=Ye(x(i.display));kC.info(C("div",null,[C("h3",null,[le("Achievement earned!")]),C("div",null,[C(s,null,null)])]))}})}return n})}const GC=Ie({props:{visibility:{type:q(Number),required:!0},onClick:Function,onHold:Function,display:{type:q(Object,String,Function),required:!0},title:q(Object,String,Function),style:q(String,Object,Array),canClick:{type:q(Boolean),required:!0},id:{type:String,required:!0}},components:{Node:Jr},setup(e){const{onClick:t,onHold:n,title:r,display:i}=Et(e),{start:a,stop:o}=Mf(t,n),s=lo(r),l=Vo(i);return{start:a,stop:o,titleComponent:s,component:l,Visibility:nt,unref:x}}}),VC={key:0};function $C(e,t,n,r,i,a){var s;const o=wt("Node");return e.unref(e.visibility)!==e.Visibility.None?(M(),W("button",{key:0,class:ze({feature:!0,tile:!0,can:e.unref(e.canClick),locked:!e.unref(e.canClick)}),style:tt([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(s=e.unref(e.style))!=null?s:{}]),onClick:t[0]||(t[0]=(...l)=>e.onClick&&e.onClick(...l)),onMousedown:t[1]||(t[1]=(...l)=>e.start&&e.start(...l)),onMouseleave:t[2]||(t[2]=(...l)=>e.stop&&e.stop(...l)),onMouseup:t[3]||(t[3]=(...l)=>e.stop&&e.stop(...l)),onTouchstartPassive:t[4]||(t[4]=(...l)=>e.start&&e.start(...l)),onTouchendPassive:t[5]||(t[5]=(...l)=>e.stop&&e.stop(...l)),onTouchcancelPassive:t[6]||(t[6]=(...l)=>e.stop&&e.stop(...l))},[e.title?(M(),W("div",VC,[(M(),we(gt(e.titleComponent)))])):ve("",!0),(M(),we(gt(e.component),{style:{"white-space":"pre-line"}})),C(o,{id:e.id},null,8,["id"])],38)):ve("",!0)}var jC=Qe(GC,[["render",$C],["__scopeId","data-v-26ac0e82"]]);const HC=Ie({props:{visibility:{type:q(Number),required:!0},rows:{type:q(Number),required:!0},cols:{type:q(Number),required:!0},cells:{type:q(Object),required:!0}},components:{GridCell:jC},setup(){const e=J(()=>Kr[bt.theme].mergeAdjacent);function t(n){const{visibility:r,onClick:i,onHold:a,display:o,title:s,style:l,canClick:u,id:c}=n;return{visibility:r,onClick:i,onHold:a,display:o,title:s,style:l,canClick:u,id:c}}return{unref:x,gatherCellProps:t,Visibility:nt,mergeAdjacent:e}}});function zC(e,t,n,r,i,a){const o=wt("GridCell");return e.unref(e.visibility)!==e.Visibility.None?(M(),W("div",{key:0,style:tt({visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0}),class:"table"},[(M(!0),W(Oe,null,Rr(e.unref(e.rows),s=>(M(),W("div",{class:ze(["row",{mergeAdjacent:e.mergeAdjacent}]),key:s},[(M(!0),W(Oe,null,Rr(e.unref(e.cols),l=>(M(),we(o,un({key:l},e.gatherCellProps(e.unref(e.cells)[s*100+l])),null,16))),128))],2))),128))],4)):ve("",!0)}var XC=Qe(HC,[["render",zC]]);function WC(e){return new Proxy({},KC(e))}function KC(e){const t=J(()=>{const n=[];for(let r=1;r<=x(e.rows);r++)for(let i=1;i<=x(e.cols);i++)n.push((r*100+i).toString());return n});return{get(n,r){if(r==="isProxy")return!0;if(typeof r=="symbol")return e[r];if(!!t.value.includes(r.toString()))return n[r]==null&&(n[r]=new Proxy(e,YC(r.toString()))),n[r]},set(n,r,i){return console.warn("Cannot set grid cells",n,r,i),!1},ownKeys(){return t.value},has(n,r){return t.value.includes(r.toString())},getOwnPropertyDescriptor(n,r){if(t.value.includes(r.toString()))return{configurable:!0,enumerable:!0,writable:!1}}}}function YC(e){const t=["id","visibility","canClick","startState","state","style","classes","title","display","onClick","onHold"],n={};return{get(r,i,a){if(i==="isProxy")return!0;let o=r[i];return Xi(o)?()=>o.call(a,e,r.getState(e)):o!=null||typeof i=="symbol"?o:(i=i.slice(0,1).toUpperCase()+i.slice(1),i==="startState"?o.call(a,e):(o=r[`get${i}`],Xi(o)?(i in n||(n[i]=J(()=>o.call(a,e,r.getState(e)))),n[i].value):o!=null?x(o):(o=r[`on${i}`],Xi(o)?()=>o.call(a,e,r.getState(e)):o!=null?o:r[i])))},set(r,i,a,o){return i=`set${i.slice(0,1).toUpperCase()+i.slice(1)}`,i in r&&Xi(r[i])&&r[i].length<3?(r[i].call(o,e,a),!0):(console.warn(`No setter for "${i}".`,r),!1)},ownKeys(){return t},has(r,i){return t.includes(i.toString())},getOwnPropertyDescriptor(r,i){if(t.includes(i.toString()))return{configurable:!0,enumerable:!0,writable:!1}}}}function ZC(e){const t=Kt({});return an(()=>{const n=e();if(n.id=_n("grid-"),n[Jt]=XC,n.cellState=t,n.getID=function(r){return n.id+"-"+r},n.getState=function(r){return this.cellState.value[r]!=null?t.value[r]:this.cells[r].startState},n.setState=function(r,i){t.value[r]=i},n.cells=WC(n),H(n,"visibility"),ft(n,"visibility",nt.Visible),H(n,"rows"),H(n,"cols"),H(n,"getVisibility"),ft(n,"getVisibility",nt.Visible),H(n,"getCanClick"),ft(n,"getCanClick",!0),H(n,"getStartState"),H(n,"getStyle"),H(n,"getClasses"),H(n,"getTitle"),H(n,"getDisplay"),n.onClick){const r=n.onClick.bind(n);n.onClick=function(i,a){x(n.cells[i].canClick)&&r(i,a)}}if(n.onHold){const r=n.onHold.bind(n);n.onHold=function(i,a){x(n.cells[i].canClick)&&r(i,a)}}return n[nn]=function(){const{visibility:r,rows:i,cols:a,cells:o,id:s}=this;return{visibility:r,rows:i,cols:a,cells:o,id:s}},n})}var JC=Ie({props:{display:{type:q(Object,String,Function),required:!0},visibility:{type:q(Number),required:!0},style:q(Object,String,Array),classes:q(Object),onClick:Function,onHold:Function,canClick:{type:q(Boolean),required:!0},small:Boolean,mark:q(Boolean,String),id:{type:String,required:!0}},components:{Node:Jr,MarkNode:Xo},setup(e){const{display:t,onClick:n,onHold:r}=Et(e),i=An("");zt(()=>{const s=Ot(t);if(s==null){i.value="";return}if(Jn(s)){i.value=Ye(s);return}const l=Ye(s.title||"","h3"),u=Ye(s.description,"div");i.value=Ye(it(()=>C("span",null,[s.title?C("div",null,[C(l,null,null)]):null,C(u,null,null)])))});const{start:a,stop:o}=Mf(n,r);return{start:a,stop:o,comp:i,Visibility:nt,unref:x}}});function QC(e,t,n,r,i,a){var l;const o=wt("MarkNode"),s=wt("Node");return e.unref(e.visibility)!==e.Visibility.None?(M(),W("button",{key:0,style:tt([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(l=e.unref(e.style))!=null?l:[]]),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)),class:ze({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)?(M(),we(gt(e.unref(e.comp)),{key:0})):ve("",!0),C(o,{mark:e.unref(e.mark)},null,8,["mark"]),C(s,{id:e.id},null,8,["id"])],38)):ve("",!0)}var zg=Qe(JC,[["render",QC],["__scopeId","data-v-5e7c90cf"]]);const qC=Symbol("Clickable");function $a(e){return an(()=>{var n;const t=(n=e==null?void 0:e())!=null?n:{};if(t.id=_n("clickable-"),t.type=qC,t[Jt]=zg,H(t,"visibility"),ft(t,"visibility",nt.Visible),H(t,"canClick"),ft(t,"canClick",!0),H(t,"classes"),H(t,"style"),H(t,"mark"),H(t,"display"),t.onClick){const r=t.onClick.bind(t);t.onClick=function(i){x(t.canClick)&&r(i)}}if(t.onHold){const r=t.onHold.bind(t);t.onHold=function(){x(t.canClick)&&r()}}return t[nn]=function(){const{display:r,visibility:i,style:a,classes:o,onClick:s,onHold:l,canClick:u,small:c,mark:f,id:d}=this;return{display:r,visibility:i,style:x(a),classes:o,onClick:s,onHold:l,canClick:u,small:c,mark:f,id:d}},t})}function Xg(e){return $a(()=>{const t=e();H(t,"showNextAt"),ft(t,"showNextAt",!0),ft(t,"minimumGain",1),t.resetDescription==null?t.resetDescription=J(()=>O.lt(t.conversion.gainResource.value,1e3)?"Reset for ":""):H(t,"resetDescription"),t.display==null&&(t.display=it(()=>C("span",null,[x(t.resetDescription),C("b",null,[zr(t.conversion.gainResource,O.max(x(t.conversion.actualGain),x(t.minimumGain)))])," ",t.conversion.gainResource.displayName,x(t.showNextAt)?C("div",null,[C("br",null,null),x(t.conversion.buyMax)?"Next:":"Req:"," ",zr(t.conversion.baseResource,x(t.conversion.buyMax)||O.floor(x(t.conversion.actualGain)).neq(1)?x(t.conversion.nextAt):x(t.conversion.currentAt))," ",t.conversion.baseResource.displayName]):null]))),t.canClick==null&&(t.canClick=J(()=>O.gte(x(t.conversion.actualGain),x(t.minimumGain))));const n=t.onClick;return t.onClick=function(){!x(t.canClick)||(t.conversion.convert(),t.tree.reset(t.treeNode),t.resetTime&&(t.resetTime.value=t.resetTime[Da]),n==null||n())},t})}function Wg(e){return Ra(()=>{const t=e();return H(t,"display"),ft(t,"display",t.layerID),H(t,"append"),{...t,display:t.display,onClick:x(t.append)?function(){if(xe.tabs.includes(t.layerID)){const n=xe.tabs.lastIndexOf(t.layerID);xe.tabs.splice(n,1)}else xe.tabs.push(t.layerID)}:function(){xe.tabs.splice(1,1,t.layerID)}}})}function Kg(e){return an(()=>{const t=e();return t.currentGain==null&&(t.currentGain=J(()=>{let n=t.gainModifier?t.gainModifier.apply(t.scaling.currentGain(t)):t.scaling.currentGain(t);return n=O.floor(n).max(0),x(t.buyMax)||(n=n.min(1)),n})),t.actualGain==null&&(t.actualGain=t.currentGain),t.currentAt==null&&(t.currentAt=J(()=>{let n=t.scaling.currentAt(t);return t.roundUpCost&&(n=O.ceil(n)),n})),t.nextAt==null&&(t.nextAt=J(()=>{let n=t.scaling.nextAt(t);return t.roundUpCost&&(n=O.ceil(n)),n})),t.convert==null&&(t.convert=function(){var r;const n=x(t.currentGain);t.gainResource.value=O.add(t.gainResource.value,n),t.spend(n),(r=t.onConvert)==null||r.call(t,n)}),t.spend==null&&(t.spend=function(){t.baseResource.value=0}),H(t,"currentGain"),H(t,"actualGain"),H(t,"currentAt"),H(t,"nextAt"),H(t,"buyMax"),ft(t,"buyMax",!0),H(t,"roundUpCost"),ft(t,"roundUpCost",!0),t})}function Yg(e,t){const n=Zn(e),r=Zn(t);return{currentGain(i){let a=x(i.baseResource.value);if(i.costModifier&&(a=i.costModifier.apply(a)),O.lt(a,x(n)))return 0;const o=O.div(a,x(n)).pow(x(r));return o.isNan()?new O(0):o},currentAt(i){let a=x(i.currentGain);return i.gainModifier&&(a=i.gainModifier.revert(a)),a=O.max(0,a).root(x(r)).times(x(n)),i.costModifier&&(a=i.costModifier.revert(a)),a},nextAt(i){let a=O.add(x(i.currentGain),1).floor();return i.gainModifier&&(a=i.gainModifier.revert(a)),a=O.max(0,a).root(x(r)).times(x(n)).max(x(n)),i.costModifier&&(a=i.costModifier.revert(a)),a}}}function eE(e){return Kg(e)}function tE(e){return Kg(()=>{const t=e();return ft(t,"buyMax",!1),t.currentGain==null&&(t.currentGain=J(()=>{let n=t.gainModifier?t.gainModifier.apply(t.scaling.currentGain(t)):t.scaling.currentGain(t);return n=O.floor(n).max(t.gainResource.value),x(t.buyMax)||(n=n.min(O.add(t.gainResource.value,1))),n})),t.actualGain==null&&(t.actualGain=J(()=>{let n=O.sub(O.floor(t.scaling.currentGain(t)),t.gainResource.value).max(0);return x(t.buyMax)||(n=n.min(1)),n})),ft(t,"convert",function(){var r;const n=x(t.actualGain);t.gainResource.value=t.gainModifier?t.gainModifier.apply(x(t.currentGain)):x(t.currentGain),t.spend(n),(r=t.onConvert)==null||r.call(t,n)}),t})}function nE(e,t,n=.5){return O.lte(e,t)?e:O.pow(e,n).times(O.pow(t,O.sub(1,n)))}function rE(e,t,n=.5){return{...e,currentGain:r=>nE(e.currentGain(r),x(t),x(n))}}const iE={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,n=e.style.display;e.style.visibility="hidden",e.style.display="",this.cachedStyles=this.detectRelevantDimensions(e),e.style.visibility=t,e.style.display=n},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 n=0,r=t.length;n<r;n++)e=e.replace(new RegExp(t[n]),"-"+t[n].toLowerCase());return e.slice(0,1)==="-"&&(e=e.slice(1)),e}}};function oE(e,t,n,r,i,a){return M(),we(Ti,{name:n.name,onBeforeAppear:a.beforeAppear,onAppear:a.appear,onAfterAppear:a.afterAppear,onAppearCancelled:a.appearCancelled,onBeforeEnter:a.beforeEnter,onEnter:a.enter,onAfterEnter:a.afterEnter,onEnterCancelled:a.enterCancelled,onBeforeLeave:a.beforeLeave,onLeave:a.leave,onAfterLeave:a.afterLeave,onLeaveCancelled:a.leaveCancelled},{default:Pe(()=>[Mt(e.$slots,"default")]),_:3},8,["name","onBeforeAppear","onAppear","onAfterAppear","onAppearCancelled","onBeforeEnter","onEnter","onAfterEnter","onEnterCancelled","onBeforeLeave","onLeave","onAfterLeave","onLeaveCancelled"])}var aE=Qe(iE,[["render",oE]]);const sE=Ie({props:{visibility:{type:q(Number),required:!0},display:{type:q(Object,String,Function),required:!0},title:{type:q(Object,String,Function),required:!0},color:q(String),collapsed:{type:Object,required:!0},style:q(Object,String,Array),titleStyle:q(Object,String,Array),bodyStyle:q(Object,String,Array),classes:q(Object),id:{type:String,required:!0}},components:{Node:Jr,CollapseTransition:aE},setup(e){const{title:t,display:n}=Et(e),r=Vo(t),i=Vo(n),a=J(()=>Kr[bt.theme].mergeAdjacent);return{titleComponent:r,bodyComponent:i,stacked:a,unref:x,Visibility:nt}}}),lE=e=>(hr("data-v-338c9154"),e=e(),pr(),e),uE=lE(()=>P("span",{class:"toggle"},"\u25BC",-1));function cE(e,t,n,r,i,a){var l;const o=wt("CollapseTransition"),s=wt("Node");return e.unref(e.visibility)!==e.Visibility.None?(M(),W("div",{key:0,class:ze(["infobox",{collapsed:e.unref(e.collapsed),stacked:e.stacked,...e.unref(e.classes)}]),style:tt([{borderColor:e.unref(e.color),visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(l=e.unref(e.style))!=null?l:{}])},[P("button",{class:"title",style:tt([{backgroundColor:e.unref(e.color)},e.unref(e.titleStyle)||[]]),onClick:t[0]||(t[0]=u=>e.collapsed.value=!e.unref(e.collapsed))},[uE,(M(),we(gt(e.titleComponent)))],4),C(o,null,{default:Pe(()=>[e.unref(e.collapsed)?ve("",!0):(M(),W("div",{key:0,class:"body",style:tt({backgroundColor:e.unref(e.color)})},[(M(),we(gt(e.bodyComponent),{style:tt(e.unref(e.bodyStyle))},null,8,["style"]))],4))]),_:1}),C(s,{id:e.id},null,8,["id"])],6)):ve("",!0)}var fE=Qe(sE,[["render",cE],["__scopeId","data-v-338c9154"]]);const dE=Symbol("Infobox");function Zg(e){const t=Kt(!1);return an(()=>{const n=e();return n.id=_n("infobox-"),n.type=dE,n[Jt]=fE,n.collapsed=t,H(n,"visibility"),ft(n,"visibility",nt.Visible),H(n,"color"),H(n,"style"),H(n,"titleStyle"),H(n,"bodyStyle"),H(n,"classes"),H(n,"title"),H(n,"display"),n[nn]=function(){const{visibility:r,display:i,title:a,color:o,collapsed:s,style:l,titleStyle:u,bodyStyle:c,classes:f,id:d}=this;return{visibility:r,display:i,title:a,color:o,collapsed:s,style:x(l),titleStyle:u,bodyStyle:c,classes:f,id:d}},n})}var Fu=/iPhone/i,Lh=/iPod/i,Uh=/iPad/i,Bh=/\biOS-universal(?:.+)Mac\b/i,Mu=/\bAndroid(?:.+)Mobile\b/i,kh=/Android/i,po=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Os=/Silk/i,Mr=/Windows Phone/i,Dh=/\bWindows(?:.+)ARM\b/i,Gh=/BlackBerry/i,Vh=/BB10/i,$h=/Opera Mini/i,jh=/\b(CriOS|Chrome)(?:.+)Mobile/i,Hh=/Mobile(?:.+)Firefox\b/i,zh=function(e){return typeof e!="undefined"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof MSStream=="undefined"};function hE(e){return function(t){return t.test(e)}}function pE(e){var t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator!="undefined"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var n=t.userAgent,r=n.split("[FBAN");typeof r[1]!="undefined"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]!="undefined"&&(n=r[0]);var i=hE(n),a={apple:{phone:i(Fu)&&!i(Mr),ipod:i(Lh),tablet:!i(Fu)&&(i(Uh)||zh(t))&&!i(Mr),universal:i(Bh),device:(i(Fu)||i(Lh)||i(Uh)||i(Bh)||zh(t))&&!i(Mr)},amazon:{phone:i(po),tablet:!i(po)&&i(Os),device:i(po)||i(Os)},android:{phone:!i(Mr)&&i(po)||!i(Mr)&&i(Mu),tablet:!i(Mr)&&!i(po)&&!i(Mu)&&(i(Os)||i(kh)),device:!i(Mr)&&(i(po)||i(Os)||i(Mu)||i(kh))||i(/\bokhttp\b/i)},windows:{phone:i(Mr),tablet:i(Dh),device:i(Mr)||i(Dh)},other:{blackberry:i(Gh),blackberry10:i(Vh),opera:i($h),firefox:i(Hh),chrome:i(jh),device:i(Gh)||i(Vh)||i($h)||i(Hh)||i(jh)},any:!1,phone:!1,tablet:!1};return a.any=a.apple.device||a.android.device||a.windows.device||a.other.device,a.phone=a.apple.phone||a.android.phone||a.windows.phone,a.tablet=a.apple.tablet||a.android.tablet||a.windows.tablet,a}/*!
+ * @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 Yi=pE(globalThis.navigator);function vE(e){var t=!0;if(Yi.tablet||Yi.phone){if(Yi.apple.device){var n=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(n){var r=parseInt(n[1],10);r<11&&(t=!1)}}if(Yi.android.device){var n=navigator.userAgent.match(/Android\s([0-9.]*)/);if(n){var r=parseInt(n[1],10);r<7&&(t=!1)}}}return t?e:4}function mE(){return!Yi.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 Xh;(function(e){e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2"})(Xh||(Xh={}));var Wh;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS"})(Wh||(Wh={}));var Kh;(function(e){e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL"})(Kh||(Kh={}));var Yh;(function(e){e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR"})(Yh||(Yh={}));var Zh;(function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(Zh||(Zh={}));var Jh;(function(e){e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(Jh||(Jh={}));var Qh;(function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(Qh||(Qh={}));var qh;(function(e){e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT"})(qh||(qh={}));var ep;(function(e){e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT"})(ep||(ep={}));var Pc;(function(e){e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR"})(Pc||(Pc={}));var Fc;(function(e){e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(Fc||(Fc={}));var Mc;(function(e){e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL"})(Mc||(Mc={}));var tp;(function(e){e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(tp||(tp={}));var np;(function(e){e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT"})(np||(np={}));var Lc;(function(e){e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL"})(Lc||(Lc={}));var Aa;(function(e){e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp"})(Aa||(Aa={}));var rp;(function(e){e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE"})(rp||(rp={}));var Uc;(function(e){e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH"})(Uc||(Uc={}));var ip;(function(e){e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(ip||(ip={}));var He={MIPMAP_TEXTURES:Mc.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:Uc.NONE,SPRITE_MAX_TEXTURES:vE(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:Lc.AUTO,GC_MAX_IDLE:60*60,GC_MAX_CHECK_COUNT:60*10,WRAP_MODE:Fc.CLAMP,SCALE_MODE:Pc.LINEAR,PRECISION_VERTEX:Aa.HIGH,PRECISION_FRAGMENT:Yi.apple.device?Aa.HIGH:Aa.MEDIUM,CAN_UPLOAD_SAME_BUFFER:mE(),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 Xr;(function(e){e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2"})(Xr||(Xr={}));var ja;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS"})(ja||(ja={}));var Sl;(function(e){e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL"})(Sl||(Sl={}));var Me;(function(e){e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR"})(Me||(Me={}));var Ha;(function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(Ha||(Ha={}));var ge;(function(e){e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(ge||(ge={}));var eo;(function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(eo||(eo={}));var vt;(function(e){e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT"})(vt||(vt={}));var Nl;(function(e){e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT"})(Nl||(Nl={}));var Dr;(function(e){e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR"})(Dr||(Dr={}));var Bc;(function(e){e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(Bc||(Bc={}));var ro;(function(e){e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL"})(ro||(ro={}));var bi;(function(e){e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(bi||(bi={}));var ai;(function(e){e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT"})(ai||(ai={}));var kc;(function(e){e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL"})(kc||(kc={}));var _r;(function(e){e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp"})(_r||(_r={}));var hn;(function(e){e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE"})(hn||(hn={}));var en;(function(e){e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH"})(en||(en={}));var Nr;(function(e){e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(Nr||(Nr={}));var Jg={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function a(l,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new i(c,f||l,d),p=n?n+u:u;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],h]:l._events[p].push(h):(l._events[p]=h,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},s.prototype.listeners=function(u){var c=n?n+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,p=new Array(h);d<h;d++)p[d]=f[d].fn;return p},s.prototype.listenerCount=function(u){var c=n?n+u:u,f=this._events[c];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,c,f,d,h,p){var v=n?n+u:u;if(!this._events[v])return!1;var g=this._events[v],y=arguments.length,m,b;if(g.fn){switch(g.once&&this.removeListener(u,g.fn,void 0,!0),y){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,c),!0;case 3:return g.fn.call(g.context,c,f),!0;case 4:return g.fn.call(g.context,c,f,d),!0;case 5:return g.fn.call(g.context,c,f,d,h),!0;case 6:return g.fn.call(g.context,c,f,d,h,p),!0}for(b=1,m=new Array(y-1);b<y;b++)m[b-1]=arguments[b];g.fn.apply(g.context,m)}else{var T=g.length,S;for(b=0;b<T;b++)switch(g[b].once&&this.removeListener(u,g[b].fn,void 0,!0),y){case 1:g[b].fn.call(g[b].context);break;case 2:g[b].fn.call(g[b].context,c);break;case 3:g[b].fn.call(g[b].context,c,f);break;case 4:g[b].fn.call(g[b].context,c,f,d);break;default:if(!m)for(S=1,m=new Array(y-1);S<y;S++)m[S-1]=arguments[S];g[b].fn.apply(g[b].context,m)}}return!0},s.prototype.on=function(u,c,f){return a(this,u,c,f,!1)},s.prototype.once=function(u,c,f){return a(this,u,c,f,!0)},s.prototype.removeListener=function(u,c,f,d){var h=n?n+u:u;if(!this._events[h])return this;if(!c)return o(this,h),this;var p=this._events[h];if(p.fn)p.fn===c&&(!d||p.once)&&(!f||p.context===f)&&o(this,h);else{for(var v=0,g=[],y=p.length;v<y;v++)(p[v].fn!==c||d&&!p[v].once||f&&p[v].context!==f)&&g.push(p[v]);g.length?this._events[h]=g.length===1?g[0]:g:o(this,h)}return this},s.prototype.removeAllListeners=function(u){var c;return u?(c=n?n+u:u,this._events[c]&&o(this,c)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(Jg);var nu=Jg.exports,Qg={exports:{}};Qg.exports=ru;Qg.exports.default=ru;function ru(e,t,n){n=n||2;var r=t&&t.length,i=r?t[0]*n:e.length,a=qg(e,0,i,n,!0),o=[];if(!a||a.next===a.prev)return o;var s,l,u,c,f,d,h;if(r&&(a=_E(e,t,a,n)),e.length>80*n){s=u=e[0],l=c=e[1];for(var p=n;p<i;p+=n)f=e[p],d=e[p+1],f<s&&(s=f),d<l&&(l=d),f>u&&(u=f),d>c&&(c=d);h=Math.max(u-s,c-l),h=h!==0?1/h:0}return za(a,o,n,s,l,h),o}function qg(e,t,n,r,i){var a,o;if(i===Vc(e,t,n,r)>0)for(a=t;a<n;a+=r)o=op(a,e[a],e[a+1],o);else for(a=n-r;a>=t;a-=r)o=op(a,e[a],e[a+1],o);return o&&iu(o,o.next)&&(Wa(o),o=o.next),o}function xi(e,t){if(!e)return e;t||(t=e);var n=e,r;do if(r=!1,!n.steiner&&(iu(n,n.next)||Gt(n.prev,n,n.next)===0)){if(Wa(n),n=t=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==t);return t}function za(e,t,n,r,i,a,o){if(!!e){!o&&a&&IE(e,r,i,a);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,a?yE(e,r,i,a):gE(e)){t.push(l.i/n),t.push(e.i/n),t.push(u.i/n),Wa(e),e=u.next,s=u.next;continue}if(e=u,e===s){o?o===1?(e=bE(xi(e),t,n),za(e,t,n,r,i,a,2)):o===2&&xE(e,t,n,r,i,a):za(xi(e),t,n,r,i,a,1);break}}}}function gE(e){var t=e.prev,n=e,r=e.next;if(Gt(t,n,r)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(Co(t.x,t.y,n.x,n.y,r.x,r.y,i.x,i.y)&&Gt(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function yE(e,t,n,r){var i=e.prev,a=e,o=e.next;if(Gt(i,a,o)>=0)return!1;for(var s=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,l=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,u=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,c=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,f=Dc(s,l,t,n,r),d=Dc(u,c,t,n,r),h=e.prevZ,p=e.nextZ;h&&h.z>=f&&p&&p.z<=d;){if(h!==e.prev&&h!==e.next&&Co(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&&Gt(h.prev,h,h.next)>=0||(h=h.prevZ,p!==e.prev&&p!==e.next&&Co(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&Gt(p.prev,p,p.next)>=0))return!1;p=p.nextZ}for(;h&&h.z>=f;){if(h!==e.prev&&h!==e.next&&Co(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&&Gt(h.prev,h,h.next)>=0)return!1;h=h.prevZ}for(;p&&p.z<=d;){if(p!==e.prev&&p!==e.next&&Co(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&Gt(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function bE(e,t,n){var r=e;do{var i=r.prev,a=r.next.next;!iu(i,a)&&ey(i,r,r.next,a)&&Xa(i,a)&&Xa(a,i)&&(t.push(i.i/n),t.push(r.i/n),t.push(a.i/n),Wa(r),Wa(r.next),r=e=a),r=r.next}while(r!==e);return xi(r)}function xE(e,t,n,r,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&RE(o,s)){var l=ty(o,s);o=xi(o,o.next),l=xi(l,l.next),za(o,t,n,r,i,a),za(l,t,n,r,i,a);return}s=s.next}o=o.next}while(o!==e)}function _E(e,t,n,r){var i=[],a,o,s,l,u;for(a=0,o=t.length;a<o;a++)s=t[a]*r,l=a<o-1?t[a+1]*r:e.length,u=qg(e,s,l,r,!1),u===u.next&&(u.steiner=!0),i.push(NE(u));for(i.sort(TE),a=0;a<i.length;a++)n=wE(i[a],n),n=xi(n,n.next);return n}function TE(e,t){return e.x-t.x}function wE(e,t){var n=CE(e,t);if(!n)return t;var r=ty(n,e),i=xi(n,n.next);return xi(r,r.next),t===n?i:t}function CE(e,t){var n=t,r=e.x,i=e.y,a=-1/0,o;do{if(i<=n.y&&i>=n.next.y&&n.next.y!==n.y){var s=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=r&&s>a){if(a=s,s===r){if(i===n.y)return n;if(i===n.next.y)return n.next}o=n.x<n.next.x?n:n.next}}n=n.next}while(n!==t);if(!o)return null;if(r===a)return o;var l=o,u=o.x,c=o.y,f=1/0,d;n=o;do r>=n.x&&n.x>=u&&r!==n.x&&Co(i<c?r:a,i,u,c,i<c?a:r,i,n.x,n.y)&&(d=Math.abs(i-n.y)/(r-n.x),Xa(n,e)&&(d<f||d===f&&(n.x>o.x||n.x===o.x&&EE(o,n)))&&(o=n,f=d)),n=n.next;while(n!==l);return o}function EE(e,t){return Gt(e.prev,e,t.prev)<0&&Gt(t.next,e,e.next)<0}function IE(e,t,n,r){var i=e;do i.z===null&&(i.z=Dc(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,SE(i)}function SE(e){var t,n,r,i,a,o,s,l,u=1;do{for(n=e,e=null,a=null,o=0;n;){for(o++,r=n,s=0,t=0;t<u&&(s++,r=r.nextZ,!!r);t++);for(l=u;s>0||l>0&&r;)s!==0&&(l===0||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,l--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;n=r}a.nextZ=null,u*=2}while(o>1);return e}function Dc(e,t,n,r,i){return e=32767*(e-n)*i,t=32767*(t-r)*i,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 NE(e){var t=e,n=e;do(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next;while(t!==e);return n}function Co(e,t,n,r,i,a,o,s){return(i-o)*(t-s)-(e-o)*(a-s)>=0&&(e-o)*(r-s)-(n-o)*(t-s)>=0&&(n-o)*(a-s)-(i-o)*(r-s)>=0}function RE(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!AE(e,t)&&(Xa(e,t)&&Xa(t,e)&&OE(e,t)&&(Gt(e.prev,e,t.prev)||Gt(e,t.prev,t))||iu(e,t)&&Gt(e.prev,e,e.next)>0&&Gt(t.prev,t,t.next)>0)}function Gt(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function iu(e,t){return e.x===t.x&&e.y===t.y}function ey(e,t,n,r){var i=Fs(Gt(e,t,n)),a=Fs(Gt(e,t,r)),o=Fs(Gt(n,r,e)),s=Fs(Gt(n,r,t));return!!(i!==a&&o!==s||i===0&&Ps(e,n,t)||a===0&&Ps(e,r,t)||o===0&&Ps(n,e,r)||s===0&&Ps(n,t,r))}function Ps(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 Fs(e){return e>0?1:e<0?-1:0}function AE(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&&ey(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function Xa(e,t){return Gt(e.prev,e,e.next)<0?Gt(e,t,e.next)>=0&&Gt(e,e.prev,t)>=0:Gt(e,t,e.prev)<0||Gt(e,e.next,t)<0}function OE(e,t){var n=e,r=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do n.y>a!=n.next.y>a&&n.next.y!==n.y&&i<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==e);return r}function ty(e,t){var n=new Gc(e.i,e.x,e.y),r=new Gc(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function op(e,t,n,r){var i=new Gc(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Wa(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 Gc(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}ru.deviation=function(e,t,n,r){var i=t&&t.length,a=i?t[0]*n:e.length,o=Math.abs(Vc(e,0,a,n));if(i)for(var s=0,l=t.length;s<l;s++){var u=t[s]*n,c=s<l-1?t[s+1]*n:e.length;o-=Math.abs(Vc(e,u,c,n))}var f=0;for(s=0;s<r.length;s+=3){var d=r[s]*n,h=r[s+1]*n,p=r[s+2]*n;f+=Math.abs((e[d]-e[p])*(e[h+1]-e[d+1])-(e[d]-e[h])*(e[p+1]-e[d+1]))}return o===0&&f===0?0:Math.abs((f-o)/o)};function Vc(e,t,n,r){for(var i=0,a=t,o=n-r;a<n;a+=r)i+=(e[o]-e[a])*(e[a+1]+e[o+1]),o=a;return i}ru.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,i=0;i<e.length;i++){for(var a=0;a<e[i].length;a++)for(var o=0;o<t;o++)n.vertices.push(e[i][a][o]);i>0&&(r+=e[i-1].length,n.holes.push(r))}return n};var $c={exports:{}};/*! https://mths.be/punycode v1.3.2 by @mathias */(function(e,t){(function(n){var r=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,a=typeof Js=="object"&&Js;(a.global===a||a.window===a||a.self===a)&&(n=a);var o,s=2147483647,l=36,u=1,c=26,f=38,d=700,h=72,p=128,v="-",g=/^xn--/,y=/[^\x20-\x7E]/,m=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=l-u,S=Math.floor,w=String.fromCharCode,N;function I(re){throw RangeError(b[re])}function R(re,de){for(var ye=re.length,Se=[];ye--;)Se[ye]=de(re[ye]);return Se}function U(re,de){var ye=re.split("@"),Se="";ye.length>1&&(Se=ye[0]+"@",re=ye[1]),re=re.replace(m,".");var k=re.split("."),X=R(k,de).join(".");return Se+X}function $(re){for(var de=[],ye=0,Se=re.length,k,X;ye<Se;)k=re.charCodeAt(ye++),k>=55296&&k<=56319&&ye<Se?(X=re.charCodeAt(ye++),(X&64512)==56320?de.push(((k&1023)<<10)+(X&1023)+65536):(de.push(k),ye--)):de.push(k);return de}function z(re){return R(re,function(de){var ye="";return de>65535&&(de-=65536,ye+=w(de>>>10&1023|55296),de=56320|de&1023),ye+=w(de),ye}).join("")}function j(re){return re-48<10?re-22:re-65<26?re-65:re-97<26?re-97:l}function B(re,de){return re+22+75*(re<26)-((de!=0)<<5)}function he(re,de,ye){var Se=0;for(re=ye?S(re/d):re>>1,re+=S(re/de);re>T*c>>1;Se+=l)re=S(re/T);return S(Se+(T+1)*re/(re+f))}function Y(re){var de=[],ye=re.length,Se,k=0,X=p,ce=h,ue,Ve,ie,Ze,at,ut,E,A,V;for(ue=re.lastIndexOf(v),ue<0&&(ue=0),Ve=0;Ve<ue;++Ve)re.charCodeAt(Ve)>=128&&I("not-basic"),de.push(re.charCodeAt(Ve));for(ie=ue>0?ue+1:0;ie<ye;){for(Ze=k,at=1,ut=l;ie>=ye&&I("invalid-input"),E=j(re.charCodeAt(ie++)),(E>=l||E>S((s-k)/at))&&I("overflow"),k+=E*at,A=ut<=ce?u:ut>=ce+c?c:ut-ce,!(E<A);ut+=l)V=l-A,at>S(s/V)&&I("overflow"),at*=V;Se=de.length+1,ce=he(k-Ze,Se,Ze==0),S(k/Se)>s-X&&I("overflow"),X+=S(k/Se),k%=Se,de.splice(k++,0,X)}return z(de)}function oe(re){var de,ye,Se,k,X,ce,ue,Ve,ie,Ze,at,ut=[],E,A,V,K;for(re=$(re),E=re.length,de=p,ye=0,X=h,ce=0;ce<E;++ce)at=re[ce],at<128&&ut.push(w(at));for(Se=k=ut.length,k&&ut.push(v);Se<E;){for(ue=s,ce=0;ce<E;++ce)at=re[ce],at>=de&&at<ue&&(ue=at);for(A=Se+1,ue-de>S((s-ye)/A)&&I("overflow"),ye+=(ue-de)*A,de=ue,ce=0;ce<E;++ce)if(at=re[ce],at<de&&++ye>s&&I("overflow"),at==de){for(Ve=ye,ie=l;Ze=ie<=X?u:ie>=X+c?c:ie-X,!(Ve<Ze);ie+=l)K=Ve-Ze,V=l-Ze,ut.push(w(B(Ze+K%V,0))),Ve=S(K/V);ut.push(w(B(Ve,0))),X=he(ye,A,Se==k),ye=0,++Se}++ye,++de}return ut.join("")}function me(re){return U(re,function(de){return g.test(de)?Y(de.slice(4).toLowerCase()):de})}function Ke(re){return U(re,function(de){return y.test(de)?"xn--"+oe(de):de})}if(o={version:"1.3.2",ucs2:{decode:$,encode:z},decode:Y,encode:oe,toASCII:Ke,toUnicode:me},r&&i)if(e.exports==r)i.exports=o;else for(N in o)o.hasOwnProperty(N)&&(r[N]=o[N]);else n.punycode=o})(Js)})($c,$c.exports);var PE={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}},Ka={};function FE(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var ME=function(e,t,n,r){t=t||"&",n=n||"=";var i={};if(typeof e!="string"||e.length===0)return i;var a=/\+/g;e=e.split(t);var o=1e3;r&&typeof r.maxKeys=="number"&&(o=r.maxKeys);var s=e.length;o>0&&s>o&&(s=o);for(var l=0;l<s;++l){var u=e[l].replace(a,"%20"),c=u.indexOf(n),f,d,h,p;c>=0?(f=u.substr(0,c),d=u.substr(c+1)):(f=u,d=""),h=decodeURIComponent(f),p=decodeURIComponent(d),FE(i,h)?Array.isArray(i[h])?i[h].push(p):i[h]=[i[h],p]:i[h]=p}return i},qo=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},LE=function(e,t,n,r){return t=t||"&",n=n||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(i){var a=encodeURIComponent(qo(i))+n;return Array.isArray(e[i])?e[i].map(function(o){return a+encodeURIComponent(qo(o))}).join(t):a+encodeURIComponent(qo(e[i]))}).join(t):r?encodeURIComponent(qo(r))+n+encodeURIComponent(qo(e)):""};Ka.decode=Ka.parse=ME;Ka.encode=Ka.stringify=LE;var UE=$c.exports,gr=PE,BE=ou,kE=YE,DE=KE;function cr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var GE=/^([a-z0-9.+-]+:)/i,VE=/:[0-9]*$/,$E=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,jE=["<",">",'"',"`"," ","\r",`
+`,"	"],HE=["{","}","|","\\","^","`"].concat(jE),jc=["'"].concat(HE),ap=["%","/","?",";","#"].concat(jc),sp=["/","?","#"],zE=255,lp=/^[+a-z0-9A-Z_-]{0,63}$/,XE=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,WE={javascript:!0,"javascript:":!0},Hc={javascript:!0,"javascript:":!0},Oo={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},zc=Ka;function ou(e,t,n){if(e&&gr.isObject(e)&&e instanceof cr)return e;var r=new cr;return r.parse(e,t,n),r}cr.prototype.parse=function(e,t,n){if(!gr.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r<e.indexOf("#")?"?":"#",a=e.split(i),o=/\\/g;a[0]=a[0].replace(o,"/"),e=a.join(i);var s=e;if(s=s.trim(),!n&&e.split("#").length===1){var l=$E.exec(s);if(l)return this.path=s,this.href=s,this.pathname=l[1],l[2]?(this.search=l[2],t?this.query=zc.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=GE.exec(s);if(u){u=u[0];var c=u.toLowerCase();this.protocol=c,s=s.substr(u.length)}if(n||u||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var f=s.substr(0,2)==="//";f&&!(u&&Hc[u])&&(s=s.substr(2),this.slashes=!0)}if(!Hc[u]&&(f||u&&!Oo[u])){for(var d=-1,h=0;h<sp.length;h++){var p=s.indexOf(sp[h]);p!==-1&&(d===-1||p<d)&&(d=p)}var v,g;d===-1?g=s.lastIndexOf("@"):g=s.lastIndexOf("@",d),g!==-1&&(v=s.slice(0,g),s=s.slice(g+1),this.auth=decodeURIComponent(v)),d=-1;for(var h=0;h<ap.length;h++){var p=s.indexOf(ap[h]);p!==-1&&(d===-1||p<d)&&(d=p)}d===-1&&(d=s.length),this.host=s.slice(0,d),s=s.slice(d),this.parseHost(),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y)for(var m=this.hostname.split(/\./),h=0,b=m.length;h<b;h++){var T=m[h];if(!!T&&!T.match(lp)){for(var S="",w=0,N=T.length;w<N;w++)T.charCodeAt(w)>127?S+="x":S+=T[w];if(!S.match(lp)){var I=m.slice(0,h),R=m.slice(h+1),U=T.match(XE);U&&(I.push(U[1]),R.unshift(U[2])),R.length&&(s="/"+R.join(".")+s),this.hostname=I.join(".");break}}}this.hostname.length>zE?this.hostname="":this.hostname=this.hostname.toLowerCase(),y||(this.hostname=UE.toASCII(this.hostname));var $=this.port?":"+this.port:"",z=this.hostname||"";this.host=z+$,this.href+=this.host,y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!WE[c])for(var h=0,b=jc.length;h<b;h++){var j=jc[h];if(s.indexOf(j)!==-1){var B=encodeURIComponent(j);B===j&&(B=escape(j)),s=s.split(j).join(B)}}var he=s.indexOf("#");he!==-1&&(this.hash=s.substr(he),s=s.slice(0,he));var Y=s.indexOf("?");if(Y!==-1?(this.search=s.substr(Y),this.query=s.substr(Y+1),t&&(this.query=zc.parse(this.query)),s=s.slice(0,Y)):t&&(this.search="",this.query={}),s&&(this.pathname=s),Oo[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var $=this.pathname||"",oe=this.search||"";this.path=$+oe}return this.href=this.format(),this};function KE(e){return gr.isString(e)&&(e=ou(e)),e instanceof cr?e.format():cr.prototype.format.call(e)}cr.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&gr.isObject(this.query)&&Object.keys(this.query).length&&(a=zc.stringify(this.query));var o=this.search||a&&"?"+a||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||Oo[t])&&i!==!1?(i="//"+(i||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):i||(i=""),r&&r.charAt(0)!=="#"&&(r="#"+r),o&&o.charAt(0)!=="?"&&(o="?"+o),n=n.replace(/[?#]/g,function(s){return encodeURIComponent(s)}),o=o.replace("#","%23"),t+i+n+o+r};function YE(e,t){return ou(e,!1,!0).resolve(t)}cr.prototype.resolve=function(e){return this.resolveObject(ou(e,!1,!0)).format()};cr.prototype.resolveObject=function(e){if(gr.isString(e)){var t=new cr;t.parse(e,!1,!0),e=t}for(var n=new cr,r=Object.keys(this),i=0;i<r.length;i++){var a=r[i];n[a]=this[a]}if(n.hash=e.hash,e.href==="")return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var o=Object.keys(e),s=0;s<o.length;s++){var l=o[s];l!=="protocol"&&(n[l]=e[l])}return Oo[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!Oo[e.protocol]){for(var u=Object.keys(e),c=0;c<u.length;c++){var f=u[c];n[f]=e[f]}return n.href=n.format(),n}if(n.protocol=e.protocol,!e.host&&!Hc[e.protocol]){for(var b=(e.pathname||"").split("/");b.length&&!(e.host=b.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),b[0]!==""&&b.unshift(""),b.length<2&&b.unshift(""),n.pathname=b.join("/")}else n.pathname=e.pathname;if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var d=n.pathname||"",h=n.search||"";n.path=d+h}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var p=n.pathname&&n.pathname.charAt(0)==="/",v=e.host||e.pathname&&e.pathname.charAt(0)==="/",g=v||p||n.host&&e.pathname,y=g,m=n.pathname&&n.pathname.split("/")||[],b=e.pathname&&e.pathname.split("/")||[],T=n.protocol&&!Oo[n.protocol];if(T&&(n.hostname="",n.port=null,n.host&&(m[0]===""?m[0]=n.host:m.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(b[0]===""?b[0]=e.host:b.unshift(e.host)),e.host=null),g=g&&(b[0]===""||m[0]==="")),v)n.host=e.host||e.host===""?e.host:n.host,n.hostname=e.hostname||e.hostname===""?e.hostname:n.hostname,n.search=e.search,n.query=e.query,m=b;else if(b.length)m||(m=[]),m.pop(),m=m.concat(b),n.search=e.search,n.query=e.query;else if(!gr.isNullOrUndefined(e.search)){if(T){n.hostname=n.host=m.shift();var S=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;S&&(n.auth=S.shift(),n.host=n.hostname=S.shift())}return n.search=e.search,n.query=e.query,(!gr.isNull(n.pathname)||!gr.isNull(n.search))&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!m.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var w=m.slice(-1)[0],N=(n.host||e.host||m.length>1)&&(w==="."||w==="..")||w==="",I=0,R=m.length;R>=0;R--)w=m[R],w==="."?m.splice(R,1):w===".."?(m.splice(R,1),I++):I&&(m.splice(R,1),I--);if(!g&&!y)for(;I--;I)m.unshift("..");g&&m[0]!==""&&(!m[0]||m[0].charAt(0)!=="/")&&m.unshift(""),N&&m.join("/").substr(-1)!=="/"&&m.push("");var U=m[0]===""||m[0]&&m[0].charAt(0)==="/";if(T){n.hostname=n.host=U?"":m.length?m.shift():"";var S=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;S&&(n.auth=S.shift(),n.host=n.hostname=S.shift())}return g=g||n.host&&m.length,g&&!U&&m.unshift(""),m.length?n.pathname=m.join("/"):(n.pathname=null,n.path=null),(!gr.isNull(n.pathname)||!gr.isNull(n.search))&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n};cr.prototype.parseHost=function(){var e=this.host,t=VE.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};/*!
+ * @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 ZE={parse:BE,format:DE,resolve:kE};He.RETINA_PREFIX=/@([0-9\.]+)x/;He.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var up=!1,cp="6.4.2";function JE(e){var t;if(!up){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var n=[`
+ %c %c %c PixiJS `+cp+" - \u2730 "+e+` \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,n)}else globalThis.console&&globalThis.console.log("PixiJS "+cp+" - "+e+" - http://www.pixijs.com/");up=!0}}var Lu;function QE(){return typeof Lu=="undefined"&&(Lu=function(){var t={stencil:!0,failIfMajorPerformanceCaveat:He.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!globalThis.WebGLRenderingContext)return!1;var n=document.createElement("canvas"),r=n.getContext("webgl",t)||n.getContext("experimental-webgl",t),i=!!(r&&r.getContextAttributes().stencil);if(r){var a=r.getExtension("WEBGL_lose_context");a&&a.loseContext()}return r=null,i}catch{return!1}}()),Lu}function qE(e,t){return t===void 0&&(t=[]),t[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(e&255)/255,t}function eI(e){var t=e.toString(16);return t="000000".substring(0,6-t.length)+t,"#"+t}function tI(){for(var e=[],t=[],n=0;n<32;n++)e[n]=n,t[n]=n;e[Me.NORMAL_NPM]=Me.NORMAL,e[Me.ADD_NPM]=Me.ADD,e[Me.SCREEN_NPM]=Me.SCREEN,t[Me.NORMAL]=Me.NORMAL_NPM,t[Me.ADD]=Me.ADD_NPM,t[Me.SCREEN]=Me.SCREEN_NPM;var r=[];return r.push(t),r.push(e),r}var nI=tI();function rI(e,t){if(t===1)return(t*255<<24)+e;if(t===0)return 0;var n=e>>16&255,r=e>>8&255,i=e&255;return n=n*t+.5|0,r=r*t+.5|0,i=i*t+.5|0,(t*255<<24)+(n<<16)+(r<<8)+i}function ny(e){if(e.BYTES_PER_ELEMENT===4)return e instanceof Float32Array?"Float32Array":e instanceof Uint32Array?"Uint32Array":"Int32Array";if(e.BYTES_PER_ELEMENT===2){if(e instanceof Uint16Array)return"Uint16Array"}else if(e.BYTES_PER_ELEMENT===1&&e instanceof Uint8Array)return"Uint8Array";return null}function Rl(e){return e+=e===0?1:0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1}function fp(e){return!(e&e-1)&&!!e}function dp(e){var t=(e>65535?1:0)<<4;e>>>=t;var n=(e>255?1:0)<<3;return e>>>=n,t|=n,n=(e>15?1:0)<<2,e>>>=n,t|=n,n=(e>3?1:0)<<1,e>>>=n,t|=n,t|e>>1}function al(e,t,n){var r=e.length,i;if(!(t>=r||n===0)){n=t+n>r?r-t:n;var a=r-n;for(i=t;i<a;++i)e[i]=e[i+n];e.length=a}}function Ms(e){return e===0?0:e<0?-1:1}var iI=0;function Ya(){return++iI}var hp={};function Za(e,t,n){if(n===void 0&&(n=3),!hp[t]){var r=new Error().stack;typeof r=="undefined"?console.warn("PixiJS Deprecation Warning: ",t+`
+Deprecated since v`+e):(r=r.split(`
+`).splice(n).join(`
+`),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",t+`
+Deprecated since v`+e),console.warn(r),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",t+`
+Deprecated since v`+e),console.warn(r))),hp[t]=!0}}var pp={},Ur=Object.create(null),Oi=Object.create(null);(function(){function e(t,n,r){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=r||He.RESOLUTION,this.resize(t,n)}return e.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},e.prototype.resize=function(t,n){this.canvas.width=Math.round(t*this.resolution),this.canvas.height=Math.round(n*this.resolution)},e.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(e.prototype,"width",{get:function(){return this.canvas.width},set:function(t){this.canvas.width=Math.round(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.canvas.height},set:function(t){this.canvas.height=Math.round(t)},enumerable:!1,configurable:!0}),e})();var Ls;function oI(e,t){if(t===void 0&&(t=globalThis.location),e.indexOf("data:")===0)return"";t=t||globalThis.location,Ls||(Ls=document.createElement("a")),Ls.href=e;var n=ZE.parse(Ls.href),r=!n.port&&t.port===""||n.port===t.port;return n.hostname!==t.hostname||!r||n.protocol!==t.protocol?"anonymous":""}function vp(e,t){var n=He.RETINA_PREFIX.exec(e);return n?parseFloat(n[1]):t!==void 0?t:1}/*!
+ * @pixi/runner - v6.4.2
+ * Compiled Thu, 02 Jun 2022 15:39:26 UTC
+ *
+ * @pixi/runner is licensed under the MIT License.
+ * http://www.opensource.org/licenses/mit-license
+ */var pn=function(){function e(t){this.items=[],this._name=t,this._aliasCount=0}return e.prototype.emit=function(t,n,r,i,a,o,s,l){if(arguments.length>8)throw new Error("max arguments reached");var u=this,c=u.name,f=u.items;this._aliasCount++;for(var d=0,h=f.length;d<h;d++)f[d][c](t,n,r,i,a,o,s,l);return f===this.items&&this._aliasCount--,this},e.prototype.ensureNonAliasedItems=function(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},e.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},e.prototype.remove=function(t){var n=this.items.indexOf(t);return n!==-1&&(this.ensureNonAliasedItems(),this.items.splice(n,1)),this},e.prototype.contains=function(t){return this.items.indexOf(t)!==-1},e.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},e.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(e.prototype,"empty",{get:function(){return this.items.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),e}();Object.defineProperties(pn.prototype,{dispatch:{value:pn.prototype.emit},run:{value:pn.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
+ */He.TARGET_FPMS=.06;var Al;(function(e){e[e.INTERACTION=50]="INTERACTION",e[e.HIGH=25]="HIGH",e[e.NORMAL=0]="NORMAL",e[e.LOW=-25]="LOW",e[e.UTILITY=-50]="UTILITY"})(Al||(Al={}));var Uu=function(){function e(t,n,r,i){n===void 0&&(n=null),r===void 0&&(r=0),i===void 0&&(i=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=n,this.priority=r,this.once=i}return e.prototype.match=function(t,n){return n===void 0&&(n=null),this.fn===t&&this.context===n},e.prototype.emit=function(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));var n=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),n},e.prototype.connect=function(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this},e.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 n=this.next;return this.next=t?null:n,this.previous=null,n},e}(),Ui=function(){function e(){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 Uu(null,null,1/0),this.deltaMS=1/He.TARGET_FPMS,this.elapsedMS=1/He.TARGET_FPMS,this._tick=function(n){t._requestId=null,t.started&&(t.update(n),t.started&&t._requestId===null&&t._head.next&&(t._requestId=requestAnimationFrame(t._tick)))}}return e.prototype._requestIfNeeded=function(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},e.prototype._cancelIfNeeded=function(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)},e.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},e.prototype.add=function(t,n,r){return r===void 0&&(r=Al.NORMAL),this._addListener(new Uu(t,n,r))},e.prototype.addOnce=function(t,n,r){return r===void 0&&(r=Al.NORMAL),this._addListener(new Uu(t,n,r,!0))},e.prototype._addListener=function(t){var n=this._head.next,r=this._head;if(!n)t.connect(r);else{for(;n;){if(t.priority>n.priority){t.connect(r);break}r=n,n=n.next}t.previous||t.connect(r)}return this._startIfPossible(),this},e.prototype.remove=function(t,n){for(var r=this._head.next;r;)r.match(t,n)?r=r.destroy():r=r.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(e.prototype,"count",{get:function(){if(!this._head)return 0;for(var t=0,n=this._head;n=n.next;)t++;return t},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},e.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},e.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}},e.prototype.update=function(t){t===void 0&&(t=performance.now());var n;if(t>this.lastTime){if(n=this.elapsedMS=t-this.lastTime,n>this._maxElapsedMS&&(n=this._maxElapsedMS),n*=this.speed,this._minElapsedMS){var r=t-this._lastFrame|0;if(r<this._minElapsedMS)return;this._lastFrame=t-r%this._minElapsedMS}this.deltaMS=n,this.deltaTime=this.deltaMS*He.TARGET_FPMS;for(var i=this._head,a=i.next;a;)a=a.emit(this.deltaTime);i.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=t},Object.defineProperty(e.prototype,"FPS",{get:function(){return 1e3/this.elapsedMS},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minFPS",{get:function(){return 1e3/this._maxElapsedMS},set:function(t){var n=Math.min(this.maxFPS,t),r=Math.min(Math.max(0,n)/1e3,He.TARGET_FPMS);this._maxElapsedMS=1/r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxFPS",{get:function(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0},set:function(t){if(t===0)this._minElapsedMS=0;else{var n=Math.max(this.minFPS,t);this._minElapsedMS=1/(n/1e3)}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"shared",{get:function(){if(!e._shared){var t=e._shared=new e;t.autoStart=!0,t._protected=!0}return e._shared},enumerable:!1,configurable:!0}),Object.defineProperty(e,"system",{get:function(){if(!e._system){var t=e._system=new e;t.autoStart=!0,t._protected=!0}return e._system},enumerable:!1,configurable:!0}),e}();/*!
+ * @pixi/math - v6.4.2
+ * Compiled Thu, 02 Jun 2022 15:39:26 UTC
+ *
+ * @pixi/math is licensed under the MIT License.
+ * http://www.opensource.org/licenses/mit-license
+ */var aI=Math.PI*2,sI=180/Math.PI,lI=Math.PI/180,Xc;(function(e){e[e.POLY=0]="POLY",e[e.RECT=1]="RECT",e[e.CIRC=2]="CIRC",e[e.ELIP=3]="ELIP",e[e.RREC=4]="RREC"})(Xc||(Xc={}));var Yt=function(){function e(t,n){t===void 0&&(t=0),n===void 0&&(n=0),this.x=0,this.y=0,this.x=t,this.y=n}return e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.copyFrom=function(t){return this.set(t.x,t.y),this},e.prototype.copyTo=function(t){return t.set(this.x,this.y),t},e.prototype.equals=function(t){return t.x===this.x&&t.y===this.y},e.prototype.set=function(t,n){return t===void 0&&(t=0),n===void 0&&(n=t),this.x=t,this.y=n,this},e.prototype.toString=function(){return"[@pixi/math:Point x="+this.x+" y="+this.y+"]"},e}(),Us=[new Yt,new Yt,new Yt,new Yt],Zt=function(){function e(t,n,r,i){t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=0),this.x=Number(t),this.y=Number(n),this.width=Number(r),this.height=Number(i),this.type=Xc.RECT}return Object.defineProperty(e.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(e,"EMPTY",{get:function(){return new e(0,0,0,0)},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copyFrom=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},e.prototype.copyTo=function(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t},e.prototype.contains=function(t,n){return this.width<=0||this.height<=0?!1:t>=this.x&&t<this.x+this.width&&n>=this.y&&n<this.y+this.height},e.prototype.intersects=function(t,n){if(!n){var r=this.x<t.x?t.x:this.x,i=this.right>t.right?t.right:this.right;if(i<=r)return!1;var a=this.y<t.y?t.y:this.y,o=this.bottom>t.bottom?t.bottom:this.bottom;return o>a}var s=this.left,l=this.right,u=this.top,c=this.bottom;if(l<=s||c<=u)return!1;var f=Us[0].set(t.left,t.top),d=Us[1].set(t.left,t.bottom),h=Us[2].set(t.right,t.top),p=Us[3].set(t.right,t.bottom);if(h.x<=f.x||d.y<=f.y)return!1;var v=Math.sign(n.a*n.d-n.b*n.c);if(v===0||(n.apply(f,f),n.apply(d,d),n.apply(h,h),n.apply(p,p),Math.max(f.x,d.x,h.x,p.x)<=s||Math.min(f.x,d.x,h.x,p.x)>=l||Math.max(f.y,d.y,h.y,p.y)<=u||Math.min(f.y,d.y,h.y,p.y)>=c))return!1;var g=v*(d.y-f.y),y=v*(f.x-d.x),m=g*s+y*u,b=g*l+y*u,T=g*s+y*c,S=g*l+y*c;if(Math.max(m,b,T,S)<=g*f.x+y*f.y||Math.min(m,b,T,S)>=g*p.x+y*p.y)return!1;var w=v*(f.y-h.y),N=v*(h.x-f.x),I=w*s+N*u,R=w*l+N*u,U=w*s+N*c,$=w*l+N*c;return!(Math.max(I,R,U,$)<=w*f.x+N*f.y||Math.min(I,R,U,$)>=w*p.x+N*p.y)},e.prototype.pad=function(t,n){return t===void 0&&(t=0),n===void 0&&(n=t),this.x-=t,this.y-=n,this.width+=t*2,this.height+=n*2,this},e.prototype.fit=function(t){var n=Math.max(this.x,t.x),r=Math.min(this.x+this.width,t.x+t.width),i=Math.max(this.y,t.y),a=Math.min(this.y+this.height,t.y+t.height);return this.x=n,this.width=Math.max(r-n,0),this.y=i,this.height=Math.max(a-i,0),this},e.prototype.ceil=function(t,n){t===void 0&&(t=1),n===void 0&&(n=.001);var r=Math.ceil((this.x+this.width-n)*t)/t,i=Math.ceil((this.y+this.height-n)*t)/t;return this.x=Math.floor((this.x+n)*t)/t,this.y=Math.floor((this.y+n)*t)/t,this.width=r-this.x,this.height=i-this.y,this},e.prototype.enlarge=function(t){var n=Math.min(this.x,t.x),r=Math.max(this.x+this.width,t.x+t.width),i=Math.min(this.y,t.y),a=Math.max(this.y+this.height,t.y+t.height);return this.x=n,this.width=r-n,this.y=i,this.height=a-i,this},e.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},e}(),ha=function(){function e(t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),this._x=r,this._y=i,this.cb=t,this.scope=n}return e.prototype.clone=function(t,n){return t===void 0&&(t=this.cb),n===void 0&&(n=this.scope),new e(t,n,this._x,this._y)},e.prototype.set=function(t,n){return t===void 0&&(t=0),n===void 0&&(n=t),(this._x!==t||this._y!==n)&&(this._x=t,this._y=n,this.cb.call(this.scope)),this},e.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},e.prototype.copyTo=function(t){return t.set(this._x,this._y),t},e.prototype.equals=function(t){return t.x===this._x&&t.y===this._y},e.prototype.toString=function(){return"[@pixi/math:ObservablePoint x="+0+" y="+0+" scope="+this.scope+"]"},Object.defineProperty(e.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(e.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}),e}(),jn=function(){function e(t,n,r,i,a,o){t===void 0&&(t=1),n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=1),a===void 0&&(a=0),o===void 0&&(o=0),this.array=null,this.a=t,this.b=n,this.c=r,this.d=i,this.tx=a,this.ty=o}return e.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]},e.prototype.set=function(t,n,r,i,a,o){return this.a=t,this.b=n,this.c=r,this.d=i,this.tx=a,this.ty=o,this},e.prototype.toArray=function(t,n){this.array||(this.array=new Float32Array(9));var r=n||this.array;return t?(r[0]=this.a,r[1]=this.b,r[2]=0,r[3]=this.c,r[4]=this.d,r[5]=0,r[6]=this.tx,r[7]=this.ty,r[8]=1):(r[0]=this.a,r[1]=this.c,r[2]=this.tx,r[3]=this.b,r[4]=this.d,r[5]=this.ty,r[6]=0,r[7]=0,r[8]=1),r},e.prototype.apply=function(t,n){n=n||new Yt;var r=t.x,i=t.y;return n.x=this.a*r+this.c*i+this.tx,n.y=this.b*r+this.d*i+this.ty,n},e.prototype.applyInverse=function(t,n){n=n||new Yt;var r=1/(this.a*this.d+this.c*-this.b),i=t.x,a=t.y;return n.x=this.d*r*i+-this.c*r*a+(this.ty*this.c-this.tx*this.d)*r,n.y=this.a*r*a+-this.b*r*i+(-this.ty*this.a+this.tx*this.b)*r,n},e.prototype.translate=function(t,n){return this.tx+=t,this.ty+=n,this},e.prototype.scale=function(t,n){return this.a*=t,this.d*=n,this.c*=t,this.b*=n,this.tx*=t,this.ty*=n,this},e.prototype.rotate=function(t){var n=Math.cos(t),r=Math.sin(t),i=this.a,a=this.c,o=this.tx;return this.a=i*n-this.b*r,this.b=i*r+this.b*n,this.c=a*n-this.d*r,this.d=a*r+this.d*n,this.tx=o*n-this.ty*r,this.ty=o*r+this.ty*n,this},e.prototype.append=function(t){var n=this.a,r=this.b,i=this.c,a=this.d;return this.a=t.a*n+t.b*i,this.b=t.a*r+t.b*a,this.c=t.c*n+t.d*i,this.d=t.c*r+t.d*a,this.tx=t.tx*n+t.ty*i+this.tx,this.ty=t.tx*r+t.ty*a+this.ty,this},e.prototype.setTransform=function(t,n,r,i,a,o,s,l,u){return this.a=Math.cos(s+u)*a,this.b=Math.sin(s+u)*a,this.c=-Math.sin(s-l)*o,this.d=Math.cos(s-l)*o,this.tx=t-(r*this.a+i*this.c),this.ty=n-(r*this.b+i*this.d),this},e.prototype.prepend=function(t){var n=this.tx;if(t.a!==1||t.b!==0||t.c!==0||t.d!==1){var r=this.a,i=this.c;this.a=r*t.a+this.b*t.c,this.b=r*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}return this.tx=n*t.a+this.ty*t.c+t.tx,this.ty=n*t.b+this.ty*t.d+t.ty,this},e.prototype.decompose=function(t){var n=this.a,r=this.b,i=this.c,a=this.d,o=t.pivot,s=-Math.atan2(-i,a),l=Math.atan2(r,n),u=Math.abs(s+l);return u<1e-5||Math.abs(aI-u)<1e-5?(t.rotation=l,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=s,t.skew.y=l),t.scale.x=Math.sqrt(n*n+r*r),t.scale.y=Math.sqrt(i*i+a*a),t.position.x=this.tx+(o.x*n+o.y*i),t.position.y=this.ty+(o.x*r+o.y*a),t},e.prototype.invert=function(){var t=this.a,n=this.b,r=this.c,i=this.d,a=this.tx,o=t*i-n*r;return this.a=i/o,this.b=-n/o,this.c=-r/o,this.d=t/o,this.tx=(r*this.ty-i*a)/o,this.ty=-(t*this.ty-n*a)/o,this},e.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},e.prototype.clone=function(){var t=new e;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},e.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},e.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},e.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(e,"IDENTITY",{get:function(){return new e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"TEMP_MATRIX",{get:function(){return new e},enumerable:!1,configurable:!0}),e}(),Bi=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],ki=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],Di=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],Gi=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],Wc=[],ry=[],Bs=Math.sign;function uI(){for(var e=0;e<16;e++){var t=[];Wc.push(t);for(var n=0;n<16;n++)for(var r=Bs(Bi[e]*Bi[n]+Di[e]*ki[n]),i=Bs(ki[e]*Bi[n]+Gi[e]*ki[n]),a=Bs(Bi[e]*Di[n]+Di[e]*Gi[n]),o=Bs(ki[e]*Di[n]+Gi[e]*Gi[n]),s=0;s<16;s++)if(Bi[s]===r&&ki[s]===i&&Di[s]===a&&Gi[s]===o){t.push(s);break}}for(var e=0;e<16;e++){var l=new jn;l.set(Bi[e],ki[e],Di[e],Gi[e],0,0),ry.push(l)}}uI();var Lt={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(e){return Bi[e]},uY:function(e){return ki[e]},vX:function(e){return Di[e]},vY:function(e){return Gi[e]},inv:function(e){return e&8?e&15:-e&7},add:function(e,t){return Wc[e][t]},sub:function(e,t){return Wc[e][Lt.inv(t)]},rotate180:function(e){return e^4},isVertical:function(e){return(e&3)===2},byDirection:function(e,t){return Math.abs(e)*2<=Math.abs(t)?t>=0?Lt.S:Lt.N:Math.abs(t)*2<=Math.abs(e)?e>0?Lt.E:Lt.W:t>0?e>0?Lt.SE:Lt.SW:e>0?Lt.NE:Lt.NW},matrixAppendRotationInv:function(e,t,n,r){n===void 0&&(n=0),r===void 0&&(r=0);var i=ry[Lt.inv(t)];i.tx=n,i.ty=r,e.append(i)}},cI=function(){function e(){this.worldTransform=new jn,this.localTransform=new jn,this.position=new ha(this.onChange,this,0,0),this.scale=new ha(this.onChange,this,1,1),this.pivot=new ha(this.onChange,this,0,0),this.skew=new ha(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 e.prototype.onChange=function(){this._localID++},e.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++},e.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+") ")+"]"},e.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)},e.prototype.updateTransform=function(t){var n=this.localTransform;if(this._localID!==this._currentLocalID&&(n.a=this._cx*this.scale.x,n.b=this._sx*this.scale.x,n.c=this._cy*this.scale.y,n.d=this._sy*this.scale.y,n.tx=this.position.x-(this.pivot.x*n.a+this.pivot.y*n.c),n.ty=this.position.y-(this.pivot.x*n.b+this.pivot.y*n.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){var r=t.worldTransform,i=this.worldTransform;i.a=n.a*r.a+n.b*r.c,i.b=n.a*r.b+n.b*r.d,i.c=n.c*r.a+n.d*r.c,i.d=n.c*r.b+n.d*r.d,i.tx=n.tx*r.a+n.ty*r.c+r.tx,i.ty=n.tx*r.b+n.ty*r.d+r.ty,this._parentID=t._worldID,this._worldID++}},e.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())},enumerable:!1,configurable:!0}),e.IDENTITY=new e,e}();/*!
+ * @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
+ */He.PREFER_ENV=Yi.any?Xr.WEBGL:Xr.WEBGL2;He.STRICT_TEXTURE_CACHE=!1;var Kc=[];function iy(e,t){if(!e)return null;var n="";if(typeof e=="string"){var r=/\.(\w{3,4})(?:$|\?|#)/i.exec(e);r&&(n=r[1].toLowerCase())}for(var i=Kc.length-1;i>=0;--i){var a=Kc[i];if(a.test&&a.test(e,n))return new a(e,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 Yc=function(e,t){return Yc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},Yc(e,t)};function Nt(e,t){Yc(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Zc=function(){return Zc=Object.assign||function(t){for(var n=arguments,r,i=1,a=arguments.length;i<a;i++){r=n[i];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Zc.apply(this,arguments)};function fI(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]]);return n}var Ja=function(){function e(t,n){t===void 0&&(t=0),n===void 0&&(n=0),this._width=t,this._height=n,this.destroyed=!1,this.internal=!1,this.onResize=new pn("setRealSize"),this.onUpdate=new pn("update"),this.onError=new pn("onError")}return e.prototype.bind=function(t){this.onResize.add(t),this.onUpdate.add(t),this.onError.add(t),(this._width||this._height)&&this.onResize.emit(this._width,this._height)},e.prototype.unbind=function(t){this.onResize.remove(t),this.onUpdate.remove(t),this.onError.remove(t)},e.prototype.resize=function(t,n){(t!==this._width||n!==this._height)&&(this._width=t,this._height=n,this.onResize.emit(t,n))},Object.defineProperty(e.prototype,"valid",{get:function(){return!!this._width&&!!this._height},enumerable:!1,configurable:!0}),e.prototype.update=function(){this.destroyed||this.onUpdate.emit()},e.prototype.load=function(){return Promise.resolve(this)},Object.defineProperty(e.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),e.prototype.style=function(t,n,r){return!1},e.prototype.dispose=function(){},e.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)},e.test=function(t,n){return!1},e}(),Zf=function(e){Nt(t,e);function t(n,r){var i=this,a=r||{},o=a.width,s=a.height;if(!o||!s)throw new Error("BufferResource width or height invalid");return i=e.call(this,o,s)||this,i.data=n,i}return t.prototype.upload=function(n,r,i){var a=n.gl;a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r.alphaMode===bi.UNPACK);var o=r.realWidth,s=r.realHeight;return i.width===o&&i.height===s?a.texSubImage2D(r.target,0,0,0,o,s,r.format,i.type,this.data):(i.width=o,i.height=s,a.texImage2D(r.target,0,i.internalFormat,o,s,0,r.format,i.type,this.data)),!0},t.prototype.dispose=function(){this.data=null},t.test=function(n){return n instanceof Float32Array||n instanceof Uint8Array||n instanceof Uint32Array},t}(Ja),dI={scaleMode:Dr.NEAREST,format:ge.RGBA,alphaMode:bi.NPM},rn=function(e){Nt(t,e);function t(n,r){n===void 0&&(n=null),r===void 0&&(r=null);var i=e.call(this)||this;r=r||{};var a=r.alphaMode,o=r.mipmap,s=r.anisotropicLevel,l=r.scaleMode,u=r.width,c=r.height,f=r.wrapMode,d=r.format,h=r.type,p=r.target,v=r.resolution,g=r.resourceOptions;return n&&!(n instanceof Ja)&&(n=iy(n,g),n.internal=!0),i.resolution=v||He.RESOLUTION,i.width=Math.round((u||0)*i.resolution)/i.resolution,i.height=Math.round((c||0)*i.resolution)/i.resolution,i._mipmap=o!==void 0?o:He.MIPMAP_TEXTURES,i.anisotropicLevel=s!==void 0?s:He.ANISOTROPIC_LEVEL,i._wrapMode=f||He.WRAP_MODE,i._scaleMode=l!==void 0?l:He.SCALE_MODE,i.format=d||ge.RGBA,i.type=h||vt.UNSIGNED_BYTE,i.target=p||eo.TEXTURE_2D,i.alphaMode=a!==void 0?a:bi.UNPACK,i.uid=Ya(),i.touched=0,i.isPowerOfTwo=!1,i._refreshPOT(),i._glTextures={},i.dirtyId=0,i.dirtyStyleId=0,i.cacheId=null,i.valid=u>0&&c>0,i.textureCacheIds=[],i.destroyed=!1,i.resource=null,i._batchEnabled=0,i._batchLocation=0,i.parentTextureArray=null,i.setResource(n),i}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(n){this._mipmap!==n&&(this._mipmap=n,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(n){this._scaleMode!==n&&(this._scaleMode=n,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(n){this._wrapMode!==n&&(this._wrapMode=n,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),t.prototype.setStyle=function(n,r){var i;return n!==void 0&&n!==this.scaleMode&&(this.scaleMode=n,i=!0),r!==void 0&&r!==this.mipmap&&(this.mipmap=r,i=!0),i&&this.dirtyStyleId++,this},t.prototype.setSize=function(n,r,i){return i=i||this.resolution,this.setRealSize(n*i,r*i,i)},t.prototype.setRealSize=function(n,r,i){return this.resolution=i||this.resolution,this.width=Math.round(n)/this.resolution,this.height=Math.round(r)/this.resolution,this._refreshPOT(),this.update(),this},t.prototype._refreshPOT=function(){this.isPowerOfTwo=fp(this.realWidth)&&fp(this.realHeight)},t.prototype.setResolution=function(n){var r=this.resolution;return r===n?this:(this.resolution=n,this.valid&&(this.width=Math.round(this.width*r)/n,this.height=Math.round(this.height*r)/n,this.emit("update",this)),this._refreshPOT(),this)},t.prototype.setResource=function(n){if(this.resource===n)return this;if(this.resource)throw new Error("Resource can be set only once");return n.bind(this),this.resource=n,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(n){this.emit("error",this,n)},t.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete Oi[this.cacheId],delete Ur[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(n,r,i){i===void 0&&(i=He.STRICT_TEXTURE_CACHE);var a=typeof n=="string",o=null;if(a)o=n;else{if(!n._pixiId){var s=r&&r.pixiIdPrefix||"pixiid";n._pixiId=s+"_"+Ya()}o=n._pixiId}var l=Oi[o];if(a&&i&&!l)throw new Error('The cacheId "'+o+'" does not exist in BaseTextureCache.');return l||(l=new t(n,r),l.cacheId=o,t.addToCache(l,o)),l},t.fromBuffer=function(n,r,i,a){n=n||new Float32Array(r*i*4);var o=new Zf(n,{width:r,height:i}),s=n instanceof Float32Array?vt.FLOAT:vt.UNSIGNED_BYTE;return new t(o,Object.assign(dI,a||{width:r,height:i,type:s}))},t.addToCache=function(n,r){r&&(n.textureCacheIds.indexOf(r)===-1&&n.textureCacheIds.push(r),Oi[r]&&console.warn("BaseTexture added to the cache with an id ["+r+"] that already had an entry"),Oi[r]=n)},t.removeFromCache=function(n){if(typeof n=="string"){var r=Oi[n];if(r){var i=r.textureCacheIds.indexOf(n);return i>-1&&r.textureCacheIds.splice(i,1),delete Oi[n],r}}else if(n&&n.textureCacheIds){for(var a=0;a<n.textureCacheIds.length;++a)delete Oi[n.textureCacheIds[a]];return n.textureCacheIds.length=0,n}return null},t._globalBatch=0,t}(nu),oy=function(e){Nt(t,e);function t(n,r){var i=this,a=r||{},o=a.width,s=a.height;i=e.call(this,o,s)||this,i.items=[],i.itemDirtyIds=[];for(var l=0;l<n;l++){var u=new rn;i.items.push(u),i.itemDirtyIds.push(-2)}return i.length=n,i._load=null,i.baseTexture=null,i}return t.prototype.initFromArray=function(n,r){for(var i=0;i<this.length;i++)!n[i]||(n[i].castToBaseTexture?this.addBaseTextureAt(n[i].castToBaseTexture(),i):n[i]instanceof Ja?this.addResourceAt(n[i],i):this.addResourceAt(iy(n[i],r),i))},t.prototype.dispose=function(){for(var n=0,r=this.length;n<r;n++)this.items[n].destroy();this.items=null,this.itemDirtyIds=null,this._load=null},t.prototype.addResourceAt=function(n,r){if(!this.items[r])throw new Error("Index "+r+" is out of bounds");return n.valid&&!this.valid&&this.resize(n.width,n.height),this.items[r].setResource(n),this},t.prototype.bind=function(n){if(this.baseTexture!==null)throw new Error("Only one base texture per TextureArray is allowed");e.prototype.bind.call(this,n);for(var r=0;r<this.length;r++)this.items[r].parentTextureArray=n,this.items[r].on("update",n.update,n)},t.prototype.unbind=function(n){e.prototype.unbind.call(this,n);for(var r=0;r<this.length;r++)this.items[r].parentTextureArray=null,this.items[r].off("update",n.update,n)},t.prototype.load=function(){var n=this;if(this._load)return this._load;var r=this.items.map(function(a){return a.resource}).filter(function(a){return a}),i=r.map(function(a){return a.load()});return this._load=Promise.all(i).then(function(){var a=n.items[0],o=a.realWidth,s=a.realHeight;return n.resize(o,s),Promise.resolve(n)}),this._load},t}(Ja),hI=function(e){Nt(t,e);function t(n,r){var i=this,a=r||{},o=a.width,s=a.height,l,u;return Array.isArray(n)?(l=n,u=n.length):u=n,i=e.call(this,u,{width:o,height:s})||this,l&&i.initFromArray(l,r),i}return t.prototype.addBaseTextureAt=function(n,r){if(n.resource)this.addResourceAt(n.resource,r);else throw new Error("ArrayResource does not support RenderTexture");return this},t.prototype.bind=function(n){e.prototype.bind.call(this,n),n.target=eo.TEXTURE_2D_ARRAY},t.prototype.upload=function(n,r,i){var a=this,o=a.length,s=a.itemDirtyIds,l=a.items,u=n.gl;i.dirtyId<0&&u.texImage3D(u.TEXTURE_2D_ARRAY,0,i.internalFormat,this._width,this._height,o,0,r.format,i.type,null);for(var c=0;c<o;c++){var f=l[c];s[c]<f.dirtyId&&(s[c]=f.dirtyId,f.valid&&u.texSubImage3D(u.TEXTURE_2D_ARRAY,0,0,0,c,f.resource.width,f.resource.height,1,r.format,i.type,f.resource.source))}return!0},t}(oy),_i=function(e){Nt(t,e);function t(n){var r=this,i=n,a=i.naturalWidth||i.videoWidth||i.width,o=i.naturalHeight||i.videoHeight||i.height;return r=e.call(this,a,o)||this,r.source=n,r.noSubImage=!1,r}return t.crossOrigin=function(n,r,i){i===void 0&&r.indexOf("data:")!==0?n.crossOrigin=oI(r):i!==!1&&(n.crossOrigin=typeof i=="string"?i:"anonymous")},t.prototype.upload=function(n,r,i,a){var o=n.gl,s=r.realWidth,l=r.realHeight;if(a=a||this.source,a instanceof HTMLImageElement){if(!a.complete||a.naturalWidth===0)return!1}else if(a instanceof HTMLVideoElement&&a.readyState<=1)return!1;return o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r.alphaMode===bi.UNPACK),!this.noSubImage&&r.target===o.TEXTURE_2D&&i.width===s&&i.height===l?o.texSubImage2D(o.TEXTURE_2D,0,0,0,r.format,i.type,a):(i.width=s,i.height=l,o.texImage2D(r.target,0,i.internalFormat,r.format,i.type,a)),!0},t.prototype.update=function(){if(!this.destroyed){var n=this.source,r=n.naturalWidth||n.videoWidth||n.width,i=n.naturalHeight||n.videoHeight||n.height;this.resize(r,i),e.prototype.update.call(this)}},t.prototype.dispose=function(){this.source=null},t}(Ja),ay=function(e){Nt(t,e);function t(n){return e.call(this,n)||this}return t.test=function(n){var r=globalThis.OffscreenCanvas;return r&&n instanceof r?!0:globalThis.HTMLCanvasElement&&n instanceof HTMLCanvasElement},t}(_i),pI=function(e){Nt(t,e);function t(n,r){var i=this,a=r||{},o=a.width,s=a.height,l=a.autoLoad,u=a.linkBaseTexture;if(n&&n.length!==t.SIDES)throw new Error("Invalid length. Got "+n.length+", expected 6");i=e.call(this,6,{width:o,height:s})||this;for(var c=0;c<t.SIDES;c++)i.items[c].target=eo.TEXTURE_CUBE_MAP_POSITIVE_X+c;return i.linkBaseTexture=u!==!1,n&&i.initFromArray(n,r),l!==!1&&i.load(),i}return t.prototype.bind=function(n){e.prototype.bind.call(this,n),n.target=eo.TEXTURE_CUBE_MAP},t.prototype.addBaseTextureAt=function(n,r,i){if(!this.items[r])throw new Error("Index "+r+" is out of bounds");if(!this.linkBaseTexture||n.parentTextureArray||Object.keys(n._glTextures).length>0)if(n.resource)this.addResourceAt(n.resource,r);else throw new Error("CubeResource does not support copying of renderTexture.");else n.target=eo.TEXTURE_CUBE_MAP_POSITIVE_X+r,n.parentTextureArray=this.baseTexture,this.items[r]=n;return n.valid&&!this.valid&&this.resize(n.realWidth,n.realHeight),this.items[r]=n,this},t.prototype.upload=function(n,r,i){for(var a=this.itemDirtyIds,o=0;o<t.SIDES;o++){var s=this.items[o];a[o]<s.dirtyId&&(s.valid&&s.resource?(s.resource.upload(n,s,i),a[o]=s.dirtyId):a[o]<-1&&(n.gl.texImage2D(s.target,0,i.internalFormat,r.realWidth,r.realHeight,0,r.format,i.type,null),a[o]=-1))}return!0},t.test=function(n){return Array.isArray(n)&&n.length===t.SIDES},t.SIDES=6,t}(oy),sy=function(e){Nt(t,e);function t(n,r){var i=this;if(r=r||{},!(n instanceof HTMLImageElement)){var a=new Image;_i.crossOrigin(a,n,r.crossorigin),a.src=n,n=a}return i=e.call(this,n)||this,!n.complete&&!!i._width&&!!i._height&&(i._width=0,i._height=0),i.url=n.src,i._process=null,i.preserveBitmap=!1,i.createBitmap=(r.createBitmap!==void 0?r.createBitmap:He.CREATE_IMAGE_BITMAP)&&!!globalThis.createImageBitmap,i.alphaMode=typeof r.alphaMode=="number"?r.alphaMode:null,i.bitmap=null,i._load=null,r.autoLoad!==!1&&i.load(),i}return t.prototype.load=function(n){var r=this;return this._load?this._load:(n!==void 0&&(this.createBitmap=n),this._load=new Promise(function(i,a){var o=r.source;r.url=o.src;var s=function(){r.destroyed||(o.onload=null,o.onerror=null,r.resize(o.width,o.height),r._load=null,r.createBitmap?i(r.process()):i(r))};o.complete&&o.src?s():(o.onload=s,o.onerror=function(l){a(l),r.onError.emit(l)})}),this._load)},t.prototype.process=function(){var n=this,r=this.source;if(this._process!==null)return this._process;if(this.bitmap!==null||!globalThis.createImageBitmap)return Promise.resolve(this);var i=globalThis.createImageBitmap,a=!r.crossOrigin||r.crossOrigin==="anonymous";return this._process=fetch(r.src,{mode:a?"cors":"no-cors"}).then(function(o){return o.blob()}).then(function(o){return i(o,0,0,r.width,r.height,{premultiplyAlpha:n.alphaMode===bi.UNPACK?"premultiply":"none"})}).then(function(o){return n.destroyed?Promise.reject():(n.bitmap=o,n.update(),n._process=null,Promise.resolve(n))}),this._process},t.prototype.upload=function(n,r,i){if(typeof this.alphaMode=="number"&&(r.alphaMode=this.alphaMode),!this.createBitmap)return e.prototype.upload.call(this,n,r,i);if(!this.bitmap&&(this.process(),!this.bitmap))return!1;if(e.prototype.upload.call(this,n,r,i,this.bitmap),!this.preserveBitmap){var a=!0,o=r._glTextures;for(var s in o){var l=o[s];if(l!==i&&l.dirtyId!==r.dirtyId){a=!1;break}}a&&(this.bitmap.close&&this.bitmap.close(),this.bitmap=null)}return!0},t.prototype.dispose=function(){this.source.onload=null,this.source.onerror=null,e.prototype.dispose.call(this),this.bitmap&&(this.bitmap.close(),this.bitmap=null),this._process=null,this._load=null},t.test=function(n){return typeof n=="string"||n instanceof HTMLImageElement},t}(_i),vI=function(e){Nt(t,e);function t(n,r){var i=this;return r=r||{},i=e.call(this,document.createElement("canvas"))||this,i._width=0,i._height=0,i.svg=n,i.scale=r.scale||1,i._overrideWidth=r.width,i._overrideHeight=r.height,i._resolve=null,i._crossorigin=r.crossorigin,i._load=null,r.autoLoad!==!1&&i.load(),i}return t.prototype.load=function(){var n=this;return this._load?this._load:(this._load=new Promise(function(r){if(n._resolve=function(){n.resize(n.source.width,n.source.height),r(n)},t.SVG_XML.test(n.svg.trim())){if(!btoa)throw new Error("Your browser doesn't support base64 conversions.");n.svg="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(n.svg)))}n._loadSvg()}),this._load)},t.prototype._loadSvg=function(){var n=this,r=new Image;_i.crossOrigin(r,this.svg,this._crossorigin),r.src=this.svg,r.onerror=function(i){!n._resolve||(r.onerror=null,n.onError.emit(i))},r.onload=function(){if(!!n._resolve){var i=r.width,a=r.height;if(!i||!a)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");var o=i*n.scale,s=a*n.scale;(n._overrideWidth||n._overrideHeight)&&(o=n._overrideWidth||n._overrideHeight/a*i,s=n._overrideHeight||n._overrideWidth/i*a),o=Math.round(o),s=Math.round(s);var l=n.source;l.width=o,l.height=s,l._pixiId="canvas_"+Ya(),l.getContext("2d").drawImage(r,0,0,i,a,0,0,o,s),n._resolve(),n._resolve=null}}},t.getSize=function(n){var r=t.SVG_SIZE.exec(n),i={};return r&&(i[r[1]]=Math.round(parseFloat(r[3])),i[r[5]]=Math.round(parseFloat(r[7]))),i},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._resolve=null,this._crossorigin=null},t.test=function(n,r){return r==="svg"||typeof n=="string"&&/^data:image\/svg\+xml(;(charset=utf8|utf8))?;base64/.test(n)||typeof n=="string"&&t.SVG_XML.test(n)},t.SVG_XML=/^(<\?xml[^?]+\?>)?\s*(<!--[^(-->)]*-->)?\s*\<svg/m,t.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t}(_i),mI=function(e){Nt(t,e);function t(n,r){var i=this;if(r=r||{},!(n instanceof HTMLVideoElement)){var a=document.createElement("video");a.setAttribute("preload","auto"),a.setAttribute("webkit-playsinline",""),a.setAttribute("playsinline",""),typeof n=="string"&&(n=[n]);var o=n[0].src||n[0];_i.crossOrigin(a,o,r.crossorigin);for(var s=0;s<n.length;++s){var l=document.createElement("source"),u=n[s],c=u.src,f=u.mime;c=c||n[s];var d=c.split("?").shift().toLowerCase(),h=d.slice(d.lastIndexOf(".")+1);f=f||t.MIME_TYPES[h]||"video/"+h,l.src=c,l.type=f,a.appendChild(l)}n=a}return i=e.call(this,n)||this,i.noSubImage=!0,i._autoUpdate=!0,i._isConnectedToTicker=!1,i._updateFPS=r.updateFPS||0,i._msToNextUpdate=0,i.autoPlay=r.autoPlay!==!1,i._load=null,i._resolve=null,i._onCanPlay=i._onCanPlay.bind(i),i._onError=i._onError.bind(i),r.autoLoad!==!1&&i.load(),i}return t.prototype.update=function(n){if(!this.destroyed){var r=Ui.shared.elapsedMS*this.source.playbackRate;this._msToNextUpdate=Math.floor(this._msToNextUpdate-r),(!this._updateFPS||this._msToNextUpdate<=0)&&(e.prototype.update.call(this),this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0)}},t.prototype.load=function(){var n=this;if(this._load)return this._load;var r=this.source;return(r.readyState===r.HAVE_ENOUGH_DATA||r.readyState===r.HAVE_FUTURE_DATA)&&r.width&&r.height&&(r.complete=!0),r.addEventListener("play",this._onPlayStart.bind(this)),r.addEventListener("pause",this._onPlayStop.bind(this)),this._isSourceReady()?this._onCanPlay():(r.addEventListener("canplay",this._onCanPlay),r.addEventListener("canplaythrough",this._onCanPlay),r.addEventListener("error",this._onError,!0)),this._load=new Promise(function(i){n.valid?i(n):(n._resolve=i,r.load())}),this._load},t.prototype._onError=function(n){this.source.removeEventListener("error",this._onError,!0),this.onError.emit(n)},t.prototype._isSourcePlaying=function(){var n=this.source;return n.currentTime>0&&n.paused===!1&&n.ended===!1&&n.readyState>2},t.prototype._isSourceReady=function(){var n=this.source;return n.readyState===3||n.readyState===4},t.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(Ui.shared.add(this.update,this),this._isConnectedToTicker=!0)},t.prototype._onPlayStop=function(){this._isConnectedToTicker&&(Ui.shared.remove(this.update,this),this._isConnectedToTicker=!1)},t.prototype._onCanPlay=function(){var n=this.source;n.removeEventListener("canplay",this._onCanPlay),n.removeEventListener("canplaythrough",this._onCanPlay);var r=this.valid;this.resize(n.videoWidth,n.videoHeight),!r&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&n.play()},t.prototype.dispose=function(){this._isConnectedToTicker&&(Ui.shared.remove(this.update,this),this._isConnectedToTicker=!1);var n=this.source;n&&(n.removeEventListener("error",this._onError,!0),n.pause(),n.src="",n.load()),e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(n){n!==this._autoUpdate&&(this._autoUpdate=n,!this._autoUpdate&&this._isConnectedToTicker?(Ui.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(Ui.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(n){n!==this._updateFPS&&(this._updateFPS=n)},enumerable:!1,configurable:!0}),t.test=function(n,r){return globalThis.HTMLVideoElement&&n instanceof HTMLVideoElement||t.TYPES.indexOf(r)>-1},t.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],t.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},t}(_i),gI=function(e){Nt(t,e);function t(n){return e.call(this,n)||this}return t.test=function(n){return!!globalThis.createImageBitmap&&n instanceof ImageBitmap},t}(_i);Kc.push(sy,gI,ay,mI,vI,Zf,pI,hI);var yI=function(e){Nt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.upload=function(n,r,i){var a=n.gl;a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r.alphaMode===bi.UNPACK);var o=r.realWidth,s=r.realHeight;return i.width===o&&i.height===s?a.texSubImage2D(r.target,0,0,0,o,s,r.format,i.type,this.data):(i.width=o,i.height=s,a.texImage2D(r.target,0,i.internalFormat,o,s,0,r.format,i.type,this.data)),!0},t}(Zf),Jc=function(){function e(t,n){this.width=Math.round(t||100),this.height=Math.round(n||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 pn("disposeFramebuffer"),this.multisample=en.NONE}return Object.defineProperty(e.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),e.prototype.addColorTexture=function(t,n){return t===void 0&&(t=0),this.colorTextures[t]=n||new rn(null,{scaleMode:Dr.NEAREST,resolution:1,mipmap:ro.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.addDepthTexture=function(t){return this.depthTexture=t||new rn(new yI(null,{width:this.width,height:this.height}),{scaleMode:Dr.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:ro.OFF,format:ge.DEPTH_COMPONENT,type:vt.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.resize=function(t,n){if(t=Math.round(t),n=Math.round(n),!(t===this.width&&n===this.height)){this.width=t,this.height=n,this.dirtyId++,this.dirtySize++;for(var r=0;r<this.colorTextures.length;r++){var i=this.colorTextures[r],a=i.resolution;i.setSize(t/a,n/a)}if(this.depthTexture){var a=this.depthTexture.resolution;this.depthTexture.setSize(t/a,n/a)}}},e.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},e.prototype.destroyDepthTexture=function(){this.depthTexture&&(this.depthTexture.destroy(),this.depthTexture=null,++this.dirtyId,++this.dirtyFormat)},e}(),ly=function(e){Nt(t,e);function t(n){n===void 0&&(n={});var r=this;if(typeof n=="number"){var i=arguments[0],a=arguments[1],o=arguments[2],s=arguments[3];n={width:i,height:a,scaleMode:o,resolution:s}}return n.width=n.width||100,n.height=n.height||100,n.multisample=n.multisample!==void 0?n.multisample:en.NONE,r=e.call(this,null,n)||this,r.mipmap=ro.OFF,r.valid=!0,r.clearColor=[0,0,0,0],r.framebuffer=new Jc(r.realWidth,r.realHeight).addColorTexture(0,r),r.framebuffer.multisample=n.multisample,r.maskStack=[],r.filterStack=[{}],r}return t.prototype.resize=function(n,r){this.framebuffer.resize(n*this.resolution,r*this.resolution),this.setRealSize(this.framebuffer.width,this.framebuffer.height)},t.prototype.dispose=function(){this.framebuffer.dispose(),e.prototype.dispose.call(this)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.framebuffer.destroyDepthTexture(),this.framebuffer=null},t}(rn),uy=function(){function e(){this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsFloat32=new Float32Array(8)}return e.prototype.set=function(t,n,r){var i=n.width,a=n.height;if(r){var o=t.width/2/i,s=t.height/2/a,l=t.x/i+o,u=t.y/a+s;r=Lt.add(r,Lt.NW),this.x0=l+o*Lt.uX(r),this.y0=u+s*Lt.uY(r),r=Lt.add(r,2),this.x1=l+o*Lt.uX(r),this.y1=u+s*Lt.uY(r),r=Lt.add(r,2),this.x2=l+o*Lt.uX(r),this.y2=u+s*Lt.uY(r),r=Lt.add(r,2),this.x3=l+o*Lt.uX(r),this.y3=u+s*Lt.uY(r)}else this.x0=t.x/i,this.y0=t.y/a,this.x1=(t.x+t.width)/i,this.y1=t.y/a,this.x2=(t.x+t.width)/i,this.y2=(t.y+t.height)/a,this.x3=t.x/i,this.y3=(t.y+t.height)/a;this.uvsFloat32[0]=this.x0,this.uvsFloat32[1]=this.y0,this.uvsFloat32[2]=this.x1,this.uvsFloat32[3]=this.y1,this.uvsFloat32[4]=this.x2,this.uvsFloat32[5]=this.y2,this.uvsFloat32[6]=this.x3,this.uvsFloat32[7]=this.y3},e.prototype.toString=function(){return"[@pixi/core:TextureUvs "+("x0="+this.x0+" y0="+this.y0+" ")+("x1="+this.x1+" y1="+this.y1+" x2="+this.x2+" ")+("y2="+this.y2+" x3="+this.x3+" y3="+this.y3)+"]"},e}(),mp=new uy;function ks(e){e.destroy=function(){},e.on=function(){},e.once=function(){},e.emit=function(){}}var Gr=function(e){Nt(t,e);function t(n,r,i,a,o,s){var l=e.call(this)||this;if(l.noFrame=!1,r||(l.noFrame=!0,r=new Zt(0,0,1,1)),n instanceof t&&(n=n.baseTexture),l.baseTexture=n,l._frame=r,l.trim=a,l.valid=!1,l._uvs=mp,l.uvMatrix=null,l.orig=i||r,l._rotate=Number(o||0),o===!0)l._rotate=2;else if(l._rotate%2!==0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");return l.defaultAnchor=s?new Yt(s.x,s.y):new Yt(0,0),l._updateID=0,l.textureCacheIds=[],n.valid?l.noFrame?n.valid&&l.onBaseTextureUpdated(n):l.frame=r:n.once("loaded",l.onBaseTextureUpdated,l),l.noFrame&&n.on("update",l.onBaseTextureUpdated,l),l}return t.prototype.update=function(){this.baseTexture.resource&&this.baseTexture.resource.update()},t.prototype.onBaseTextureUpdated=function(n){if(this.noFrame){if(!this.baseTexture.valid)return;this._frame.width=n.width,this._frame.height=n.height,this.valid=!0,this.updateUvs()}else this.frame=this._frame;this.emit("update",this)},t.prototype.destroy=function(n){if(this.baseTexture){if(n){var r=this.baseTexture.resource;r&&r.url&&Ur[r.url]&&t.removeFromCache(r.url),this.baseTexture.destroy()}this.baseTexture.off("loaded",this.onBaseTextureUpdated,this),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture=null}this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,t.removeFromCache(this),this.textureCacheIds=null},t.prototype.clone=function(){var n=this._frame.clone(),r=this._frame===this.orig?n:this.orig.clone(),i=new t(this.baseTexture,!this.noFrame&&n,r,this.trim&&this.trim.clone(),this.rotate,this.defaultAnchor);return this.noFrame&&(i._frame=n),i},t.prototype.updateUvs=function(){this._uvs===mp&&(this._uvs=new uy),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++},t.from=function(n,r,i){r===void 0&&(r={}),i===void 0&&(i=He.STRICT_TEXTURE_CACHE);var a=typeof n=="string",o=null;if(a)o=n;else if(n instanceof rn){if(!n.cacheId){var s=r&&r.pixiIdPrefix||"pixiid";n.cacheId=s+"-"+Ya(),rn.addToCache(n,n.cacheId)}o=n.cacheId}else{if(!n._pixiId){var s=r&&r.pixiIdPrefix||"pixiid";n._pixiId=s+"_"+Ya()}o=n._pixiId}var l=Ur[o];if(a&&i&&!l)throw new Error('The cacheId "'+o+'" does not exist in TextureCache.');return!l&&!(n instanceof rn)?(r.resolution||(r.resolution=vp(n)),l=new t(new rn(n,r)),l.baseTexture.cacheId=o,rn.addToCache(l.baseTexture,o),t.addToCache(l,o)):!l&&n instanceof rn&&(l=new t(n),t.addToCache(l,o)),l},t.fromURL=function(n,r){var i=Object.assign({autoLoad:!1},r==null?void 0:r.resourceOptions),a=t.from(n,Object.assign({resourceOptions:i},r),!1),o=a.baseTexture.resource;return a.baseTexture.valid?Promise.resolve(a):o.load().then(function(){return Promise.resolve(a)})},t.fromBuffer=function(n,r,i,a){return new t(rn.fromBuffer(n,r,i,a))},t.fromLoader=function(n,r,i,a){var o=new rn(n,Object.assign({scaleMode:He.SCALE_MODE,resolution:vp(r)},a)),s=o.resource;s instanceof sy&&(s.url=r);var l=new t(o);return i||(i=r),rn.addToCache(l.baseTexture,i),t.addToCache(l,i),i!==r&&(rn.addToCache(l.baseTexture,r),t.addToCache(l,r)),l.baseTexture.valid?Promise.resolve(l):new Promise(function(u){l.baseTexture.once("loaded",function(){return u(l)})})},t.addToCache=function(n,r){r&&(n.textureCacheIds.indexOf(r)===-1&&n.textureCacheIds.push(r),Ur[r]&&console.warn("Texture added to the cache with an id ["+r+"] that already had an entry"),Ur[r]=n)},t.removeFromCache=function(n){if(typeof n=="string"){var r=Ur[n];if(r){var i=r.textureCacheIds.indexOf(n);return i>-1&&r.textureCacheIds.splice(i,1),delete Ur[n],r}}else if(n&&n.textureCacheIds){for(var a=0;a<n.textureCacheIds.length;++a)Ur[n.textureCacheIds[a]]===n&&delete Ur[n.textureCacheIds[a]];return n.textureCacheIds.length=0,n}return null},Object.defineProperty(t.prototype,"resolution",{get:function(){return this.baseTexture.resolution},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"frame",{get:function(){return this._frame},set:function(n){this._frame=n,this.noFrame=!1;var r=n.x,i=n.y,a=n.width,o=n.height,s=r+a>this.baseTexture.width,l=i+o>this.baseTexture.height;if(s||l){var u=s&&l?"and":"or",c="X: "+r+" + "+a+" = "+(r+a)+" > "+this.baseTexture.width,f="Y: "+i+" + "+o+" = "+(i+o)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(c+" "+u+" "+f))}this.valid=a&&o&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=n),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this._rotate},set:function(n){this._rotate=n,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 rn),ks(t._EMPTY),ks(t._EMPTY.baseTexture)),t._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(t,"WHITE",{get:function(){if(!t._WHITE){var n=document.createElement("canvas"),r=n.getContext("2d");n.width=16,n.height=16,r.fillStyle="white",r.fillRect(0,0,16,16),t._WHITE=new t(new rn(new ay(n))),ks(t._WHITE),ks(t._WHITE.baseTexture)}return t._WHITE},enumerable:!1,configurable:!0}),t}(nu),Jf=function(e){Nt(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.valid=!0,i.filterFrame=null,i.filterPoolKey=null,i.updateUvs(),i}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(n){this.framebuffer.multisample=n},enumerable:!1,configurable:!0}),t.prototype.resize=function(n,r,i){i===void 0&&(i=!0);var a=this.baseTexture.resolution,o=Math.round(n*a)/a,s=Math.round(r*a)/a;this.valid=o>0&&s>0,this._frame.width=this.orig.width=o,this._frame.height=this.orig.height=s,i&&this.baseTexture.resize(o,s),this.updateUvs()},t.prototype.setResolution=function(n){var r=this.baseTexture;r.resolution!==n&&(r.setResolution(n),this.resize(r.width,r.height,!1))},t.create=function(n){for(var r=arguments,i=[],a=1;a<arguments.length;a++)i[a-1]=r[a];return typeof n=="number"&&(Za("6.0.0","Arguments (width, height, scaleMode, resolution) have been deprecated."),n={width:n,height:i[0],scaleMode:i[1],resolution:i[2]}),new t(new ly(n))},t}(Gr),bI=function(){function e(t){this.texturePool={},this.textureOptions=t||{},this.enableFullScreen=!1,this._pixelsWidth=0,this._pixelsHeight=0}return e.prototype.createTexture=function(t,n,r){r===void 0&&(r=en.NONE);var i=new ly(Object.assign({width:t,height:n,resolution:1,multisample:r},this.textureOptions));return new Jf(i)},e.prototype.getOptimalTexture=function(t,n,r,i){r===void 0&&(r=1),i===void 0&&(i=en.NONE);var a;t=Math.ceil(t*r-1e-6),n=Math.ceil(n*r-1e-6),!this.enableFullScreen||t!==this._pixelsWidth||n!==this._pixelsHeight?(t=Rl(t),n=Rl(n),a=((t&65535)<<16|n&65535)>>>0,i>1&&(a+=i*4294967296)):a=i>1?-i:-1,this.texturePool[a]||(this.texturePool[a]=[]);var o=this.texturePool[a].pop();return o||(o=this.createTexture(t,n,i)),o.filterPoolKey=a,o.setResolution(r),o},e.prototype.getFilterTexture=function(t,n,r){var i=this.getOptimalTexture(t.width,t.height,n||t.resolution,r||en.NONE);return i.filterFrame=t.filterFrame,i},e.prototype.returnTexture=function(t){var n=t.filterPoolKey;t.filterFrame=null,this.texturePool[n].push(t)},e.prototype.returnFilterTexture=function(t){this.returnTexture(t)},e.prototype.clear=function(t){if(t=t!==!1,t)for(var n in this.texturePool){var r=this.texturePool[n];if(r)for(var i=0;i<r.length;i++)r[i].destroy(!0)}this.texturePool={}},e.prototype.setScreenSize=function(t){if(!(t.width===this._pixelsWidth&&t.height===this._pixelsHeight)){this.enableFullScreen=t.width>0&&t.height>0;for(var n in this.texturePool)if(Number(n)<0){var r=this.texturePool[n];if(r)for(var i=0;i<r.length;i++)r[i].destroy(!0);this.texturePool[n]=[]}this._pixelsWidth=t.width,this._pixelsHeight=t.height}},e.SCREEN_KEY=-1,e}(),gp=function(){function e(t,n,r,i,a,o,s){n===void 0&&(n=0),r===void 0&&(r=!1),i===void 0&&(i=vt.FLOAT),this.buffer=t,this.size=n,this.normalized=r,this.type=i,this.stride=a,this.start=o,this.instance=s}return e.prototype.destroy=function(){this.buffer=null},e.from=function(t,n,r,i,a){return new e(t,n,r,i,a)},e}(),xI=0,Mn=function(){function e(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=!1),this.data=t||new Float32Array(1),this._glBuffers={},this._updateID=0,this.index=r,this.static=n,this.id=xI++,this.disposeRunner=new pn("disposeBuffer")}return e.prototype.update=function(t){t instanceof Array&&(t=new Float32Array(t)),this.data=t||this.data,this._updateID++},e.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},e.prototype.destroy=function(){this.dispose(),this.data=null},Object.defineProperty(e.prototype,"index",{get:function(){return this.type===Nr.ELEMENT_ARRAY_BUFFER},set:function(t){this.type=t?Nr.ELEMENT_ARRAY_BUFFER:Nr.ARRAY_BUFFER},enumerable:!1,configurable:!0}),e.from=function(t){return t instanceof Array&&(t=new Float32Array(t)),new e(t)},e}(),_I={Float32Array,Uint32Array,Int32Array,Uint8Array};function TI(e,t){for(var n=0,r=0,i={},a=0;a<e.length;a++)r+=t[a],n+=e[a].length;for(var o=new ArrayBuffer(n*4),s=null,l=0,a=0;a<e.length;a++){var u=t[a],c=e[a],f=ny(c);i[f]||(i[f]=new _I[f](o)),s=i[f];for(var d=0;d<c.length;d++){var h=(d/u|0)*r+l,p=d%u;s[h+p]=c[d]}l+=u}return new Float32Array(o)}var yp={5126:4,5123:2,5121:1},wI=0,CI={Float32Array,Uint32Array,Int32Array,Uint8Array,Uint16Array},Qf=function(){function e(t,n){t===void 0&&(t=[]),n===void 0&&(n={}),this.buffers=t,this.indexBuffer=null,this.attributes=n,this.glVertexArrayObjects={},this.id=wI++,this.instanced=!1,this.instanceCount=1,this.disposeRunner=new pn("disposeGeometry"),this.refCount=0}return e.prototype.addAttribute=function(t,n,r,i,a,o,s,l){if(r===void 0&&(r=0),i===void 0&&(i=!1),l===void 0&&(l=!1),!n)throw new Error("You must pass a buffer when creating an attribute");n instanceof Mn||(n instanceof Array&&(n=new Float32Array(n)),n=new Mn(n));var u=t.split("|");if(u.length>1){for(var c=0;c<u.length;c++)this.addAttribute(u[c],n,r,i,a);return this}var f=this.buffers.indexOf(n);return f===-1&&(this.buffers.push(n),f=this.buffers.length-1),this.attributes[t]=new gp(f,r,i,a,o,s,l),this.instanced=this.instanced||l,this},e.prototype.getAttribute=function(t){return this.attributes[t]},e.prototype.getBuffer=function(t){return this.buffers[this.getAttribute(t).buffer]},e.prototype.addIndex=function(t){return t instanceof Mn||(t instanceof Array&&(t=new Uint16Array(t)),t=new Mn(t)),t.type=Nr.ELEMENT_ARRAY_BUFFER,this.indexBuffer=t,this.buffers.indexOf(t)===-1&&this.buffers.push(t),this},e.prototype.getIndex=function(){return this.indexBuffer},e.prototype.interleave=function(){if(this.buffers.length===1||this.buffers.length===2&&this.indexBuffer)return this;var t=[],n=[],r=new Mn,i;for(i in this.attributes){var a=this.attributes[i],o=this.buffers[a.buffer];t.push(o.data),n.push(a.size*yp[a.type]/4),a.buffer=0}for(r.data=TI(t,n),i=0;i<this.buffers.length;i++)this.buffers[i]!==this.indexBuffer&&this.buffers[i].destroy();return this.buffers=[r],this.indexBuffer&&this.buffers.push(this.indexBuffer),this},e.prototype.getSize=function(){for(var t in this.attributes){var n=this.attributes[t],r=this.buffers[n.buffer];return r.data.length/(n.stride/4||n.size)}return 0},e.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},e.prototype.destroy=function(){this.dispose(),this.buffers=null,this.indexBuffer=null,this.attributes=null},e.prototype.clone=function(){for(var t=new e,n=0;n<this.buffers.length;n++)t.buffers[n]=new Mn(this.buffers[n].data.slice(0));for(var n in this.attributes){var r=this.attributes[n];t.attributes[n]=new gp(r.buffer,r.size,r.normalized,r.type,r.stride,r.start,r.instance)}return this.indexBuffer&&(t.indexBuffer=t.buffers[this.buffers.indexOf(this.indexBuffer)],t.indexBuffer.type=Nr.ELEMENT_ARRAY_BUFFER),t},e.merge=function(t){for(var n=new e,r=[],i=[],a=[],o,s=0;s<t.length;s++){o=t[s];for(var l=0;l<o.buffers.length;l++)i[l]=i[l]||0,i[l]+=o.buffers[l].data.length,a[l]=0}for(var s=0;s<o.buffers.length;s++)r[s]=new CI[ny(o.buffers[s].data)](i[s]),n.buffers[s]=new Mn(r[s]);for(var s=0;s<t.length;s++){o=t[s];for(var l=0;l<o.buffers.length;l++)r[l].set(o.buffers[l].data,a[l]),a[l]+=o.buffers[l].data.length}if(n.attributes=o.attributes,o.indexBuffer){n.indexBuffer=n.buffers[o.buffers.indexOf(o.indexBuffer)],n.indexBuffer.type=Nr.ELEMENT_ARRAY_BUFFER;for(var u=0,c=0,f=0,d=0,s=0;s<o.buffers.length;s++)if(o.buffers[s]!==o.indexBuffer){d=s;break}for(var s in o.attributes){var h=o.attributes[s];(h.buffer|0)===d&&(c+=h.size*yp[h.type]/4)}for(var s=0;s<t.length;s++){for(var p=t[s].indexBuffer.data,l=0;l<p.length;l++)n.indexBuffer.data[l+f]+=u;u+=t[s].buffers[d].data.length/c,f+=p.length}}return n},e}(),EI=function(e){Nt(t,e);function t(){var n=e.call(this)||this;return n.addAttribute("aVertexPosition",new Float32Array([0,0,1,0,1,1,0,1])).addIndex([0,1,3,2]),n}return t}(Qf),II=function(e){Nt(t,e);function t(){var n=e.call(this)||this;return n.vertices=new Float32Array([-1,-1,1,-1,1,1,-1,1]),n.uvs=new Float32Array([0,0,1,0,1,1,0,1]),n.vertexBuffer=new Mn(n.vertices),n.uvBuffer=new Mn(n.uvs),n.addAttribute("aVertexPosition",n.vertexBuffer).addAttribute("aTextureCoord",n.uvBuffer).addIndex([0,1,2,0,2,3]),n}return t.prototype.map=function(n,r){var i=0,a=0;return this.uvs[0]=i,this.uvs[1]=a,this.uvs[2]=i+r.width/n.width,this.uvs[3]=a,this.uvs[4]=i+r.width/n.width,this.uvs[5]=a+r.height/n.height,this.uvs[6]=i,this.uvs[7]=a+r.height/n.height,i=r.x,a=r.y,this.vertices[0]=i,this.vertices[1]=a,this.vertices[2]=i+r.width,this.vertices[3]=a,this.vertices[4]=i+r.width,this.vertices[5]=a+r.height,this.vertices[6]=i,this.vertices[7]=a+r.height,this.invalidate(),this},t.prototype.invalidate=function(){return this.vertexBuffer._updateID++,this.uvBuffer._updateID++,this},t}(Qf),SI=0,Po=function(){function e(t,n,r){this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=SI++,this.static=!!n,this.ubo=!!r,t instanceof Mn?(this.buffer=t,this.buffer.type=Nr.UNIFORM_BUFFER,this.autoManage=!1,this.ubo=!0):(this.uniforms=t,this.ubo&&(this.buffer=new Mn(new Float32Array(1)),this.buffer.type=Nr.UNIFORM_BUFFER,this.autoManage=!0))}return e.prototype.update=function(){this.dirtyId++,!this.autoManage&&this.buffer&&this.buffer.update()},e.prototype.add=function(t,n,r){if(!this.ubo)this.uniforms[t]=new e(n,r);else throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them")},e.from=function(t,n,r){return new e(t,n,r)},e.uboFrom=function(t,n){return new e(t,n!=null?n:!0,!0)},e}(),NI=function(){function e(){this.renderTexture=null,this.target=null,this.legacy=!1,this.resolution=1,this.multisample=en.NONE,this.sourceFrame=new Zt,this.destinationFrame=new Zt,this.bindingSourceFrame=new Zt,this.bindingDestinationFrame=new Zt,this.filters=[],this.transform=null}return e.prototype.clear=function(){this.target=null,this.filters=null,this.renderTexture=null},e}(),Ds=[new Yt,new Yt,new Yt,new Yt],Bu=new jn,RI=function(){function e(t){this.renderer=t,this.defaultFilterStack=[{}],this.texturePool=new bI,this.texturePool.setScreenSize(t.view),this.statePool=[],this.quad=new EI,this.quadUv=new II,this.tempRect=new Zt,this.activeState={},this.globalUniforms=new Po({outputFrame:new Zt,inputSize:new Float32Array(4),inputPixel:new Float32Array(4),inputClamp:new Float32Array(4),resolution:1,filterArea:new Float32Array(4),filterClamp:new Float32Array(4)},!0),this.forceClear=!1,this.useMaxPadding=!1}return e.prototype.push=function(t,n){for(var r,i,a=this.renderer,o=this.defaultFilterStack,s=this.statePool.pop()||new NI,l=this.renderer.renderTexture,u=n[0].resolution,c=n[0].multisample,f=n[0].padding,d=n[0].autoFit,h=(r=n[0].legacy)!==null&&r!==void 0?r:!0,p=1;p<n.length;p++){var v=n[p];u=Math.min(u,v.resolution),c=Math.min(c,v.multisample),f=this.useMaxPadding?Math.max(f,v.padding):f+v.padding,d=d&&v.autoFit,h=h||((i=v.legacy)!==null&&i!==void 0?i:!0)}o.length===1&&(this.defaultFilterStack[0].renderTexture=l.current),o.push(s),s.resolution=u,s.multisample=c,s.legacy=h,s.target=t,s.sourceFrame.copyFrom(t.filterArea||t.getBounds(!0)),s.sourceFrame.pad(f);var g=this.tempRect.copyFrom(l.sourceFrame);a.projection.transform&&this.transformAABB(Bu.copyFrom(a.projection.transform).invert(),g),d?(s.sourceFrame.fit(g),(s.sourceFrame.width<=0||s.sourceFrame.height<=0)&&(s.sourceFrame.width=0,s.sourceFrame.height=0)):s.sourceFrame.intersects(g)||(s.sourceFrame.width=0,s.sourceFrame.height=0),this.roundFrame(s.sourceFrame,l.current?l.current.resolution:a.resolution,l.sourceFrame,l.destinationFrame,a.projection.transform),s.renderTexture=this.getOptimalFilterTexture(s.sourceFrame.width,s.sourceFrame.height,u,c),s.filters=n,s.destinationFrame.width=s.renderTexture.width,s.destinationFrame.height=s.renderTexture.height;var y=this.tempRect;y.x=0,y.y=0,y.width=s.sourceFrame.width,y.height=s.sourceFrame.height,s.renderTexture.filterFrame=s.sourceFrame,s.bindingSourceFrame.copyFrom(l.sourceFrame),s.bindingDestinationFrame.copyFrom(l.destinationFrame),s.transform=a.projection.transform,a.projection.transform=null,l.bind(s.renderTexture,s.sourceFrame,y),a.framebuffer.clear(0,0,0,0)},e.prototype.pop=function(){var t=this.defaultFilterStack,n=t.pop(),r=n.filters;this.activeState=n;var i=this.globalUniforms.uniforms;i.outputFrame=n.sourceFrame,i.resolution=n.resolution;var a=i.inputSize,o=i.inputPixel,s=i.inputClamp;if(a[0]=n.destinationFrame.width,a[1]=n.destinationFrame.height,a[2]=1/a[0],a[3]=1/a[1],o[0]=Math.round(a[0]*n.resolution),o[1]=Math.round(a[1]*n.resolution),o[2]=1/o[0],o[3]=1/o[1],s[0]=.5*o[2],s[1]=.5*o[3],s[2]=n.sourceFrame.width*a[2]-.5*o[2],s[3]=n.sourceFrame.height*a[3]-.5*o[3],n.legacy){var l=i.filterArea;l[0]=n.destinationFrame.width,l[1]=n.destinationFrame.height,l[2]=n.sourceFrame.x,l[3]=n.sourceFrame.y,i.filterClamp=i.inputClamp}this.globalUniforms.update();var u=t[t.length-1];if(this.renderer.framebuffer.blit(),r.length===1)r[0].apply(this,n.renderTexture,u.renderTexture,ai.BLEND,n),this.returnFilterTexture(n.renderTexture);else{var c=n.renderTexture,f=this.getOptimalFilterTexture(c.width,c.height,n.resolution);f.filterFrame=c.filterFrame;var d=0;for(d=0;d<r.length-1;++d){d===1&&n.multisample>1&&(f=this.getOptimalFilterTexture(c.width,c.height,n.resolution),f.filterFrame=c.filterFrame),r[d].apply(this,c,f,ai.CLEAR,n);var h=c;c=f,f=h}r[d].apply(this,c,u.renderTexture,ai.BLEND,n),d>1&&n.multisample>1&&this.returnFilterTexture(n.renderTexture),this.returnFilterTexture(c),this.returnFilterTexture(f)}n.clear(),this.statePool.push(n)},e.prototype.bindAndClear=function(t,n){n===void 0&&(n=ai.CLEAR);var r=this.renderer,i=r.renderTexture,a=r.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 o=this.tempRect;o.x=0,o.y=0,o.width=t.filterFrame.width,o.height=t.filterFrame.height,i.bind(t,t.filterFrame,o)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?i.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var s=a.stateId&1||this.forceClear;(n===ai.CLEAR||n===ai.BLIT&&s)&&this.renderer.framebuffer.clear(0,0,0,0)},e.prototype.applyFilter=function(t,n,r,i){var a=this.renderer;a.state.set(t.state),this.bindAndClear(r,i),t.uniforms.uSampler=n,t.uniforms.filterGlobals=this.globalUniforms,a.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(n._frame,n.filterFrame),a.geometry.bind(this.quadUv),a.geometry.draw(Ha.TRIANGLES)):(a.geometry.bind(this.quad),a.geometry.draw(Ha.TRIANGLE_STRIP))},e.prototype.calculateSpriteMatrix=function(t,n){var r=this.activeState,i=r.sourceFrame,a=r.destinationFrame,o=n._texture.orig,s=t.set(a.width,0,0,a.height,i.x,i.y),l=n.worldTransform.copyTo(jn.TEMP_MATRIX);return l.invert(),s.prepend(l),s.scale(1/o.width,1/o.height),s.translate(n.anchor.x,n.anchor.y),s},e.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},e.prototype.getOptimalFilterTexture=function(t,n,r,i){return r===void 0&&(r=1),i===void 0&&(i=en.NONE),this.texturePool.getOptimalTexture(t,n,r,i)},e.prototype.getFilterTexture=function(t,n,r){if(typeof t=="number"){var i=t;t=n,n=i}t=t||this.activeState.renderTexture;var a=this.texturePool.getOptimalTexture(t.width,t.height,n||t.resolution,r||en.NONE);return a.filterFrame=t.filterFrame,a},e.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},e.prototype.emptyPool=function(){this.texturePool.clear(!0)},e.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},e.prototype.transformAABB=function(t,n){var r=Ds[0],i=Ds[1],a=Ds[2],o=Ds[3];r.set(n.left,n.top),i.set(n.left,n.bottom),a.set(n.right,n.top),o.set(n.right,n.bottom),t.apply(r,r),t.apply(i,i),t.apply(a,a),t.apply(o,o);var s=Math.min(r.x,i.x,a.x,o.x),l=Math.min(r.y,i.y,a.y,o.y),u=Math.max(r.x,i.x,a.x,o.x),c=Math.max(r.y,i.y,a.y,o.y);n.x=s,n.y=l,n.width=u-s,n.height=c-l},e.prototype.roundFrame=function(t,n,r,i,a){if(!(t.width<=0||t.height<=0||r.width<=0||r.height<=0)){if(a){var o=a.a,s=a.b,l=a.c,u=a.d;if((Math.abs(s)>1e-4||Math.abs(l)>1e-4)&&(Math.abs(o)>1e-4||Math.abs(u)>1e-4))return}a=a?Bu.copyFrom(a):Bu.identity(),a.translate(-r.x,-r.y).scale(i.width/r.width,i.height/r.height).translate(i.x,i.y),this.transformAABB(a,t),t.ceil(n),this.transformAABB(a.invert(),t)}},e}(),cy=function(){function e(t){this.renderer=t}return e.prototype.flush=function(){},e.prototype.destroy=function(){this.renderer=null},e.prototype.start=function(){},e.prototype.stop=function(){this.flush()},e.prototype.render=function(t){},e}(),AI=function(){function e(t){this.renderer=t,this.emptyRenderer=new cy(t),this.currentRenderer=this.emptyRenderer}return e.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},e.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.copyBoundTextures=function(t,n){for(var r=this.renderer.texture.boundTextures,i=n-1;i>=0;--i)t[i]=r[i]||null,t[i]&&(t[i]._batchLocation=i)},e.prototype.boundArray=function(t,n,r,i){for(var a=t.elements,o=t.ids,s=t.count,l=0,u=0;u<s;u++){var c=a[u],f=c._batchLocation;if(f>=0&&f<i&&n[f]===c){o[u]=f;continue}for(;l<i;){var d=n[l];if(d&&d._batchEnabled===r&&d._batchLocation===l){l++;continue}o[u]=l,c._batchLocation=l,n[l]=c;break}}},e.prototype.destroy=function(){this.renderer=null},e}(),bp=0,OI=function(){function e(t){this.renderer=t,this.webGLVersion=1,this.extensions={},this.supports={uint32Indices:!1},this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this),t.view.addEventListener("webglcontextlost",this.handleContextLost,!1),t.view.addEventListener("webglcontextrestored",this.handleContextRestored,!1)}return Object.defineProperty(e.prototype,"isLost",{get:function(){return!this.gl||this.gl.isContextLost()},enumerable:!1,configurable:!0}),e.prototype.contextChange=function(t){this.gl=t,this.renderer.gl=t,this.renderer.CONTEXT_UID=bp++,t.isContextLost()&&t.getExtension("WEBGL_lose_context")&&t.getExtension("WEBGL_lose_context").restoreContext()},e.prototype.initFromContext=function(t){this.gl=t,this.validateContext(t),this.renderer.gl=t,this.renderer.CONTEXT_UID=bp++,this.renderer.runners.contextChange.emit(t)},e.prototype.initFromOptions=function(t){var n=this.createContext(this.renderer.view,t);this.initFromContext(n)},e.prototype.createContext=function(t,n){var r;if(He.PREFER_ENV>=Xr.WEBGL2&&(r=t.getContext("webgl2",n)),r)this.webGLVersion=2;else if(this.webGLVersion=1,r=t.getContext("webgl",n)||t.getContext("experimental-webgl",n),!r)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=r,this.getExtensions(),this.gl},e.prototype.getExtensions=function(){var t=this.gl,n={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,n,{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,n,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},e.prototype.handleContextLost=function(t){t.preventDefault()},e.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},e.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()},e.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},e.prototype.validateContext=function(t){var n=t.getContextAttributes(),r="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;r&&(this.webGLVersion=2),n&&!n.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var i=r||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=i,i||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},e}(),PI=function(){function e(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=en.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return e}(),FI=new Zt,MI=function(){function e(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new Jc(10,10),this.msaaSamples=null}return e.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 Zt,this.hasMRT=!0,this.writeDepthTexture=!0,this.disposeAll(!0),this.renderer.context.webGLVersion===1){var n=this.renderer.context.extensions.drawBuffers,r=this.renderer.context.extensions.depthTexture;He.PREFER_ENV===Xr.WEBGL_LEGACY&&(n=null,r=null),n?t.drawBuffers=function(i){return n.drawBuffersWEBGL(i)}:(this.hasMRT=!1,t.drawBuffers=function(){}),r||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},e.prototype.bind=function(t,n,r){r===void 0&&(r=0);var i=this.gl;if(t){var a=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,i.bindFramebuffer(i.FRAMEBUFFER,a.framebuffer)),a.mipLevel!==r&&(t.dirtyId++,t.dirtyFormat++,a.mipLevel=r),a.dirtyId!==t.dirtyId&&(a.dirtyId=t.dirtyId,a.dirtyFormat!==t.dirtyFormat?(a.dirtyFormat=t.dirtyFormat,a.dirtySize=t.dirtySize,this.updateFramebuffer(t,r)):a.dirtySize!==t.dirtySize&&(a.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var o=0;o<t.colorTextures.length;o++){var s=t.colorTextures[o];this.renderer.texture.unbind(s.parentTextureArray||s)}if(t.depthTexture&&this.renderer.texture.unbind(t.depthTexture),n){var l=n.width>>r,u=n.height>>r,c=l/n.width;this.setViewport(n.x*c,n.y*c,l,u)}else{var l=t.width>>r,u=t.height>>r;this.setViewport(0,0,l,u)}}else this.current&&(this.current=null,i.bindFramebuffer(i.FRAMEBUFFER,null)),n?this.setViewport(n.x,n.y,n.width,n.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},e.prototype.setViewport=function(t,n,r,i){var a=this.viewport;t=Math.round(t),n=Math.round(n),r=Math.round(r),i=Math.round(i),(a.width!==r||a.height!==i||a.x!==t||a.y!==n)&&(a.x=t,a.y=n,a.width=r,a.height=i,this.gl.viewport(t,n,r,i))},Object.defineProperty(e.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}),e.prototype.clear=function(t,n,r,i,a){a===void 0&&(a=Sl.COLOR|Sl.DEPTH);var o=this.gl;o.clearColor(t,n,r,i),o.clear(a)},e.prototype.initFramebuffer=function(t){var n=this.gl,r=new PI(n.createFramebuffer());return r.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=r,this.managedFramebuffers.push(t),t.disposeRunner.add(this),r},e.prototype.resizeFramebuffer=function(t){var n=this.gl,r=t.glFramebuffers[this.CONTEXT_UID];r.msaaBuffer&&(n.bindRenderbuffer(n.RENDERBUFFER,r.msaaBuffer),n.renderbufferStorageMultisample(n.RENDERBUFFER,r.multisample,n.RGBA8,t.width,t.height)),r.stencil&&(n.bindRenderbuffer(n.RENDERBUFFER,r.stencil),r.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,r.multisample,n.DEPTH24_STENCIL8,t.width,t.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t.width,t.height));var i=t.colorTextures,a=i.length;n.drawBuffers||(a=Math.min(a,1));for(var o=0;o<a;o++){var s=i[o],l=s.parentTextureArray||s;this.renderer.texture.bind(l,0)}t.depthTexture&&this.writeDepthTexture&&this.renderer.texture.bind(t.depthTexture,0)},e.prototype.updateFramebuffer=function(t,n){var r=this.gl,i=t.glFramebuffers[this.CONTEXT_UID],a=t.colorTextures,o=a.length;r.drawBuffers||(o=Math.min(o,1)),i.multisample>1&&this.canMultisampleFramebuffer(t)?(i.msaaBuffer=i.msaaBuffer||r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,i.msaaBuffer),r.renderbufferStorageMultisample(r.RENDERBUFFER,i.multisample,r.RGBA8,t.width,t.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.RENDERBUFFER,i.msaaBuffer)):i.msaaBuffer&&(r.deleteRenderbuffer(i.msaaBuffer),i.msaaBuffer=null,i.blitFramebuffer&&(i.blitFramebuffer.dispose(),i.blitFramebuffer=null));for(var s=[],l=0;l<o;l++){var u=a[l],c=u.parentTextureArray||u;this.renderer.texture.bind(c,0),!(l===0&&i.msaaBuffer)&&(r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0+l,u.target,c._glTextures[this.CONTEXT_UID].texture,n),s.push(r.COLOR_ATTACHMENT0+l))}if(s.length>1&&r.drawBuffers(s),t.depthTexture){var f=this.writeDepthTexture;if(f){var d=t.depthTexture;this.renderer.texture.bind(d,0),r.framebufferTexture2D(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.TEXTURE_2D,d._glTextures[this.CONTEXT_UID].texture,n)}}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(i.stencil=i.stencil||r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,i.stencil),i.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,i.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,i.stencil)):i.stencil&&(r.deleteRenderbuffer(i.stencil),i.stencil=null)},e.prototype.canMultisampleFramebuffer=function(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture},e.prototype.detectSamples=function(t){var n=this.msaaSamples,r=en.NONE;if(t<=1||n===null)return r;for(var i=0;i<n.length;i++)if(n[i]<=t){r=n[i];break}return r===1&&(r=en.NONE),r},e.prototype.blit=function(t,n,r){var i=this,a=i.current,o=i.renderer,s=i.gl,l=i.CONTEXT_UID;if(o.context.webGLVersion===2&&!!a){var u=a.glFramebuffers[l];if(!!u){if(!t){if(!u.msaaBuffer)return;var c=a.colorTextures[0];if(!c)return;u.blitFramebuffer||(u.blitFramebuffer=new Jc(a.width,a.height),u.blitFramebuffer.addColorTexture(0,c)),t=u.blitFramebuffer,t.colorTextures[0]!==c&&(t.colorTextures[0]=c,t.dirtyId++,t.dirtyFormat++),(t.width!==a.width||t.height!==a.height)&&(t.width=a.width,t.height=a.height,t.dirtyId++,t.dirtySize++)}n||(n=FI,n.width=a.width,n.height=a.height),r||(r=n);var f=n.width===r.width&&n.height===r.height;this.bind(t),s.bindFramebuffer(s.READ_FRAMEBUFFER,u.framebuffer),s.blitFramebuffer(n.left,n.top,n.right,n.bottom,r.left,r.top,r.right,r.bottom,s.COLOR_BUFFER_BIT,f?s.NEAREST:s.LINEAR)}}},e.prototype.disposeFramebuffer=function(t,n){var r=t.glFramebuffers[this.CONTEXT_UID],i=this.gl;if(!!r){delete t.glFramebuffers[this.CONTEXT_UID];var a=this.managedFramebuffers.indexOf(t);a>=0&&this.managedFramebuffers.splice(a,1),t.disposeRunner.remove(this),n||(i.deleteFramebuffer(r.framebuffer),r.msaaBuffer&&i.deleteRenderbuffer(r.msaaBuffer),r.stencil&&i.deleteRenderbuffer(r.stencil)),r.blitFramebuffer&&r.blitFramebuffer.dispose()}},e.prototype.disposeAll=function(t){var n=this.managedFramebuffers;this.managedFramebuffers=[];for(var r=0;r<n.length;r++)this.disposeFramebuffer(n[r],t)},e.prototype.forceStencil=function(){var t=this.current;if(!!t){var n=t.glFramebuffers[this.CONTEXT_UID];if(!(!n||n.stencil)){t.stencil=!0;var r=t.width,i=t.height,a=this.gl,o=a.createRenderbuffer();a.bindRenderbuffer(a.RENDERBUFFER,o),n.msaaBuffer?a.renderbufferStorageMultisample(a.RENDERBUFFER,n.multisample,a.DEPTH24_STENCIL8,r,i):a.renderbufferStorage(a.RENDERBUFFER,a.DEPTH_STENCIL,r,i),n.stencil=o,a.framebufferRenderbuffer(a.FRAMEBUFFER,a.DEPTH_STENCIL_ATTACHMENT,a.RENDERBUFFER,o)}}},e.prototype.reset=function(){this.current=this.unknownFramebuffer,this.viewport=new Zt},e.prototype.destroy=function(){this.renderer=null},e}(),ku={5126:4,5123:2,5121:1},LI=function(){function e(t){this.renderer=t,this._activeGeometry=null,this._activeVao=null,this.hasVao=!0,this.hasInstance=!0,this.canUseUInt32ElementIndex=!1,this.managedGeometries={}}return e.prototype.contextChange=function(){this.disposeAll(!0);var t=this.gl=this.renderer.gl,n=this.renderer.context;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,n.webGLVersion!==2){var r=this.renderer.context.extensions.vertexArrayObject;He.PREFER_ENV===Xr.WEBGL_LEGACY&&(r=null),r?(t.createVertexArray=function(){return r.createVertexArrayOES()},t.bindVertexArray=function(a){return r.bindVertexArrayOES(a)},t.deleteVertexArray=function(a){return r.deleteVertexArrayOES(a)}):(this.hasVao=!1,t.createVertexArray=function(){return null},t.bindVertexArray=function(){return null},t.deleteVertexArray=function(){return null})}if(n.webGLVersion!==2){var i=t.getExtension("ANGLE_instanced_arrays");i?(t.vertexAttribDivisor=function(a,o){return i.vertexAttribDivisorANGLE(a,o)},t.drawElementsInstanced=function(a,o,s,l,u){return i.drawElementsInstancedANGLE(a,o,s,l,u)},t.drawArraysInstanced=function(a,o,s,l){return i.drawArraysInstancedANGLE(a,o,s,l)}):this.hasInstance=!1}this.canUseUInt32ElementIndex=n.webGLVersion===2||!!n.extensions.uint32ElementIndex},e.prototype.bind=function(t,n){n=n||this.renderer.shader.shader;var r=this.gl,i=t.glVertexArrayObjects[this.CONTEXT_UID],a=!1;i||(this.managedGeometries[t.id]=t,t.disposeRunner.add(this),t.glVertexArrayObjects[this.CONTEXT_UID]=i={},a=!0);var o=i[n.program.id]||this.initGeometryVao(t,n,a);this._activeGeometry=t,this._activeVao!==o&&(this._activeVao=o,this.hasVao?r.bindVertexArray(o):this.activateVao(t,n.program)),this.updateBuffers()},e.prototype.reset=function(){this.unbind()},e.prototype.updateBuffers=function(){for(var t=this._activeGeometry,n=this.renderer.buffer,r=0;r<t.buffers.length;r++){var i=t.buffers[r];n.update(i)}},e.prototype.checkCompatibility=function(t,n){var r=t.attributes,i=n.attributeData;for(var a in i)if(!r[a])throw new Error('shader and geometry incompatible, geometry missing the "'+a+'" attribute')},e.prototype.getSignature=function(t,n){var r=t.attributes,i=n.attributeData,a=["g",t.id];for(var o in r)i[o]&&a.push(o,i[o].location);return a.join("-")},e.prototype.initGeometryVao=function(t,n,r){r===void 0&&(r=!0);var i=this.gl,a=this.CONTEXT_UID,o=this.renderer.buffer,s=n.program;s.glPrograms[a]||this.renderer.shader.generateProgram(n),this.checkCompatibility(t,s);var l=this.getSignature(t,s),u=t.glVertexArrayObjects[this.CONTEXT_UID],c=u[l];if(c)return u[s.id]=c,c;var f=t.buffers,d=t.attributes,h={},p={};for(var v in f)h[v]=0,p[v]=0;for(var v in d)!d[v].size&&s.attributeData[v]?d[v].size=s.attributeData[v].size:d[v].size||console.warn("PIXI Geometry attribute '"+v+"' size cannot be determined (likely the bound shader does not have the attribute)"),h[d[v].buffer]+=d[v].size*ku[d[v].type];for(var v in d){var g=d[v],y=g.size;g.stride===void 0&&(h[g.buffer]===y*ku[g.type]?g.stride=0:g.stride=h[g.buffer]),g.start===void 0&&(g.start=p[g.buffer],p[g.buffer]+=y*ku[g.type])}c=i.createVertexArray(),i.bindVertexArray(c);for(var m=0;m<f.length;m++){var b=f[m];o.bind(b),r&&b._glBuffers[a].refCount++}return this.activateVao(t,s),this._activeVao=c,u[s.id]=c,u[l]=c,c},e.prototype.disposeGeometry=function(t,n){var r;if(!!this.managedGeometries[t.id]){delete this.managedGeometries[t.id];var i=t.glVertexArrayObjects[this.CONTEXT_UID],a=this.gl,o=t.buffers,s=(r=this.renderer)===null||r===void 0?void 0:r.buffer;if(t.disposeRunner.remove(this),!!i){if(s)for(var l=0;l<o.length;l++){var u=o[l]._glBuffers[this.CONTEXT_UID];u&&(u.refCount--,u.refCount===0&&!n&&s.dispose(o[l],n))}if(!n){for(var c in i)if(c[0]==="g"){var f=i[c];this._activeVao===f&&this.unbind(),a.deleteVertexArray(f)}}delete t.glVertexArrayObjects[this.CONTEXT_UID]}}},e.prototype.disposeAll=function(t){for(var n=Object.keys(this.managedGeometries),r=0;r<n.length;r++)this.disposeGeometry(this.managedGeometries[n[r]],t)},e.prototype.activateVao=function(t,n){var r=this.gl,i=this.CONTEXT_UID,a=this.renderer.buffer,o=t.buffers,s=t.attributes;t.indexBuffer&&a.bind(t.indexBuffer);var l=null;for(var u in s){var c=s[u],f=o[c.buffer],d=f._glBuffers[i];if(n.attributeData[u]){l!==d&&(a.bind(f),l=d);var h=n.attributeData[u].location;if(r.enableVertexAttribArray(h),r.vertexAttribPointer(h,c.size,c.type||r.FLOAT,c.normalized,c.stride,c.start),c.instance)if(this.hasInstance)r.vertexAttribDivisor(h,1);else throw new Error("geometry error, GPU Instancing is not supported on this device")}}},e.prototype.draw=function(t,n,r,i){var a=this.gl,o=this._activeGeometry;if(o.indexBuffer){var s=o.indexBuffer.data.BYTES_PER_ELEMENT,l=s===2?a.UNSIGNED_SHORT:a.UNSIGNED_INT;s===2||s===4&&this.canUseUInt32ElementIndex?o.instanced?a.drawElementsInstanced(t,n||o.indexBuffer.data.length,l,(r||0)*s,i||1):a.drawElements(t,n||o.indexBuffer.data.length,l,(r||0)*s):console.warn("unsupported index buffer type: uint32")}else o.instanced?a.drawArraysInstanced(t,r,n||o.getSize(),i||1):a.drawArrays(t,r,n||o.getSize());return this},e.prototype.unbind=function(){this.gl.bindVertexArray(null),this._activeVao=null,this._activeGeometry=null},e.prototype.destroy=function(){this.renderer=null},e}(),UI=function(){function e(t){t===void 0&&(t=null),this.type=hn.NONE,this.autoDetect=!0,this.maskObject=t||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=He.FILTER_MULTISAMPLE,this.enabled=!0,this._filters=null,this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null,this._scissorRectLocal=null,this._target=null}return Object.defineProperty(e.prototype,"filter",{get:function(){return this._filters?this._filters[0]:null},set:function(t){t?this._filters?this._filters[0]=t:this._filters=[t]:this._filters=null},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.pooled&&(this.maskObject=null,this.type=hn.NONE,this.autoDetect=!0),this._target=null,this._scissorRectLocal=null},e.prototype.copyCountersOrReset=function(t){t?(this._stencilCounter=t._stencilCounter,this._scissorCounter=t._scissorCounter,this._scissorRect=t._scissorRect):(this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null)},e}();function xp(e,t,n){var r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}function _p(e,t){var n=e.getShaderSource(t).split(`
+`).map(function(u,c){return c+": "+u}),r=e.getShaderInfoLog(t),i=r.split(`
+`),a={},o=i.map(function(u){return parseFloat(u.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))}).filter(function(u){return u&&!a[u]?(a[u]=!0,!0):!1}),s=[""];o.forEach(function(u){n[u-1]="%c"+n[u-1]+"%c",s.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});var l=n.join(`
+`);s[0]=l,console.error(r),console.groupCollapsed("click to view full shader code"),console.warn.apply(console,s),console.groupEnd()}function BI(e,t,n,r){e.getProgramParameter(t,e.LINK_STATUS)||(e.getShaderParameter(n,e.COMPILE_STATUS)||_p(e,n),e.getShaderParameter(r,e.COMPILE_STATUS)||_p(e,r),console.error("PixiJS Error: Could not initialize shader."),e.getProgramInfoLog(t)!==""&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",e.getProgramInfoLog(t)))}function Du(e){for(var t=new Array(e),n=0;n<t.length;n++)t[n]=!1;return t}function fy(e,t){switch(e){case"float":return 0;case"vec2":return new Float32Array(2*t);case"vec3":return new Float32Array(3*t);case"vec4":return new Float32Array(4*t);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*t);case"ivec3":return new Int32Array(3*t);case"ivec4":return new Int32Array(4*t);case"uvec2":return new Uint32Array(2*t);case"uvec3":return new Uint32Array(3*t);case"uvec4":return new Uint32Array(4*t);case"bool":return!1;case"bvec2":return Du(2*t);case"bvec3":return Du(3*t);case"bvec4":return Du(4*t);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}var dy={},ea=dy;function kI(){if(ea===dy||ea&&ea.isContextLost()){var e=document.createElement("canvas"),t=void 0;He.PREFER_ENV>=Xr.WEBGL2&&(t=e.getContext("webgl2",{})),t||(t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),ea=t}return ea}var Gs;function DI(){if(!Gs){Gs=_r.MEDIUM;var e=kI();if(e&&e.getShaderPrecisionFormat){var t=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT);Gs=t.precision?_r.HIGH:_r.MEDIUM}}return Gs}function Tp(e,t,n){if(e.substring(0,9)!=="precision"){var r=t;return t===_r.HIGH&&n!==_r.HIGH&&(r=_r.MEDIUM),"precision "+r+` float;
+`+e}else if(n!==_r.HIGH&&e.substring(0,15)==="precision highp")return e.replace("precision highp","precision mediump");return e}var GI={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 hy(e){return GI[e]}var Vs=null,wp={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 py(e,t){if(!Vs){var n=Object.keys(wp);Vs={};for(var r=0;r<n.length;++r){var i=n[r];Vs[e[i]]=wp[i]}}return Vs[t]}var Fo=[{test:function(e){return e.type==="float"&&e.size===1},code:function(e){return`
+            if(uv["`+e+'"] !== ud["'+e+`"].value)
+            {
+                ud["`+e+'"].value = uv["'+e+`"]
+                gl.uniform1f(ud["`+e+'"].location, uv["'+e+`"])
+            }
+            `}},{test:function(e){return(e.type==="sampler2D"||e.type==="samplerCube"||e.type==="sampler2DArray")&&e.size===1&&!e.isArray},code:function(e){return`t = syncData.textureCount++;
+
+            renderer.texture.bind(uv["`+e+`"], t);
+
+            if(ud["`+e+`"].value !== t)
+            {
+                ud["`+e+`"].value = t;
+                gl.uniform1i(ud["`+e+`"].location, t);
+; // eslint-disable-line max-len
+            }`}},{test:function(e,t){return e.type==="mat3"&&e.size===1&&t.a!==void 0},code:function(e){return`
+            gl.uniformMatrix3fv(ud["`+e+'"].location, false, uv["'+e+`"].toArray(true));
+            `},codeUbo:function(e){return`
+                var `+e+"_matrix = uv."+e+`.toArray(true);
+
+                data[offset] = `+e+`_matrix[0];
+                data[offset+1] = `+e+`_matrix[1];
+                data[offset+2] = `+e+`_matrix[2];
+        
+                data[offset + 4] = `+e+`_matrix[3];
+                data[offset + 5] = `+e+`_matrix[4];
+                data[offset + 6] = `+e+`_matrix[5];
+        
+                data[offset + 8] = `+e+`_matrix[6];
+                data[offset + 9] = `+e+`_matrix[7];
+                data[offset + 10] = `+e+`_matrix[8];
+            `}},{test:function(e,t){return e.type==="vec2"&&e.size===1&&t.x!==void 0},code:function(e){return`
+                cv = ud["`+e+`"].value;
+                v = uv["`+e+`"];
+
+                if(cv[0] !== v.x || cv[1] !== v.y)
+                {
+                    cv[0] = v.x;
+                    cv[1] = v.y;
+                    gl.uniform2f(ud["`+e+`"].location, v.x, v.y);
+                }`},codeUbo:function(e){return`
+                v = uv.`+e+`;
+
+                data[offset] = v.x;
+                data[offset+1] = v.y;
+            `}},{test:function(e){return e.type==="vec2"&&e.size===1},code:function(e){return`
+                cv = ud["`+e+`"].value;
+                v = uv["`+e+`"];
+
+                if(cv[0] !== v[0] || cv[1] !== v[1])
+                {
+                    cv[0] = v[0];
+                    cv[1] = v[1];
+                    gl.uniform2f(ud["`+e+`"].location, v[0], v[1]);
+                }
+            `}},{test:function(e,t){return e.type==="vec4"&&e.size===1&&t.width!==void 0},code:function(e){return`
+                cv = ud["`+e+`"].value;
+                v = uv["`+e+`"];
+
+                if(cv[0] !== v.x || cv[1] !== v.y || cv[2] !== v.width || cv[3] !== v.height)
+                {
+                    cv[0] = v.x;
+                    cv[1] = v.y;
+                    cv[2] = v.width;
+                    cv[3] = v.height;
+                    gl.uniform4f(ud["`+e+`"].location, v.x, v.y, v.width, v.height)
+                }`},codeUbo:function(e){return`
+                    v = uv.`+e+`;
+
+                    data[offset] = v.x;
+                    data[offset+1] = v.y;
+                    data[offset+2] = v.width;
+                    data[offset+3] = v.height;
+                `}},{test:function(e){return e.type==="vec4"&&e.size===1},code:function(e){return`
+                cv = ud["`+e+`"].value;
+                v = uv["`+e+`"];
+
+                if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
+                {
+                    cv[0] = v[0];
+                    cv[1] = v[1];
+                    cv[2] = v[2];
+                    cv[3] = v[3];
+
+                    gl.uniform4f(ud["`+e+`"].location, v[0], v[1], v[2], v[3])
+                }`}}],VI={float:`
+    if (cv !== v)
+    {
+        cu.value = v;
+        gl.uniform1f(location, v);
+    }`,vec2:`
+    if (cv[0] !== v[0] || cv[1] !== v[1])
+    {
+        cv[0] = v[0];
+        cv[1] = v[1];
+
+        gl.uniform2f(location, v[0], v[1])
+    }`,vec3:`
+    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
+    {
+        cv[0] = v[0];
+        cv[1] = v[1];
+        cv[2] = v[2];
+
+        gl.uniform3f(location, v[0], v[1], v[2])
+    }`,vec4:`
+    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
+    {
+        cv[0] = v[0];
+        cv[1] = v[1];
+        cv[2] = v[2];
+        cv[3] = v[3];
+
+        gl.uniform4f(location, v[0], v[1], v[2], v[3]);
+    }`,int:`
+    if (cv !== v)
+    {
+        cu.value = v;
+
+        gl.uniform1i(location, v);
+    }`,ivec2:`
+    if (cv[0] !== v[0] || cv[1] !== v[1])
+    {
+        cv[0] = v[0];
+        cv[1] = v[1];
+
+        gl.uniform2i(location, v[0], v[1]);
+    }`,ivec3:`
+    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
+    {
+        cv[0] = v[0];
+        cv[1] = v[1];
+        cv[2] = v[2];
+
+        gl.uniform3i(location, v[0], v[1], v[2]);
+    }`,ivec4:`
+    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
+    {
+        cv[0] = v[0];
+        cv[1] = v[1];
+        cv[2] = v[2];
+        cv[3] = v[3];
+
+        gl.uniform4i(location, v[0], v[1], v[2], v[3]);
+    }`,uint:`
+    if (cv !== v)
+    {
+        cu.value = v;
+
+        gl.uniform1ui(location, v);
+    }`,uvec2:`
+    if (cv[0] !== v[0] || cv[1] !== v[1])
+    {
+        cv[0] = v[0];
+        cv[1] = v[1];
+
+        gl.uniform2ui(location, v[0], v[1]);
+    }`,uvec3:`
+    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
+    {
+        cv[0] = v[0];
+        cv[1] = v[1];
+        cv[2] = v[2];
+
+        gl.uniform3ui(location, v[0], v[1], v[2]);
+    }`,uvec4:`
+    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
+    {
+        cv[0] = v[0];
+        cv[1] = v[1];
+        cv[2] = v[2];
+        cv[3] = v[3];
+
+        gl.uniform4ui(location, v[0], v[1], v[2], v[3]);
+    }`,bool:`
+    if (cv !== v)
+    {
+        cu.value = v;
+        gl.uniform1i(location, v);
+    }`,bvec2:`
+    if (cv[0] != v[0] || cv[1] != v[1])
+    {
+        cv[0] = v[0];
+        cv[1] = v[1];
+
+        gl.uniform2i(location, v[0], v[1]);
+    }`,bvec3:`
+    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
+    {
+        cv[0] = v[0];
+        cv[1] = v[1];
+        cv[2] = v[2];
+
+        gl.uniform3i(location, v[0], v[1], v[2]);
+    }`,bvec4:`
+    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
+    {
+        cv[0] = v[0];
+        cv[1] = v[1];
+        cv[2] = v[2];
+        cv[3] = v[3];
+
+        gl.uniform4i(location, v[0], v[1], v[2], v[3]);
+    }`,mat2:"gl.uniformMatrix2fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",sampler2D:"gl.uniform1i(location, v)",samplerCube:"gl.uniform1i(location, v)",sampler2DArray:"gl.uniform1i(location, v)"},$I={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};function jI(e,t){var n,r=[`
+        var v = null;
+        var cv = null;
+        var cu = null;
+        var t = 0;
+        var gl = renderer.gl;
+    `];for(var i in e.uniforms){var a=t[i];if(!a){!((n=e.uniforms[i])===null||n===void 0)&&n.group&&(e.uniforms[i].ubo?r.push(`
+                        renderer.shader.syncUniformBufferGroup(uv.`+i+", '"+i+`');
+                    `):r.push(`
+                        renderer.shader.syncUniformGroup(uv.`+i+`, syncData);
+                    `));continue}for(var o=e.uniforms[i],s=!1,l=0;l<Fo.length;l++)if(Fo[l].test(a,o)){r.push(Fo[l].code(i,o)),s=!0;break}if(!s){var u=a.size===1?VI:$I,c=u[a.type].replace("location",'ud["'+i+'"].location');r.push(`
+            cu = ud["`+i+`"];
+            cv = cu.value;
+            v = uv["`+i+`"];
+            `+c+";")}}return new Function("ud","uv","renderer","syncData",r.join(`
+`))}var HI=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join(`
+`);function zI(e){for(var t="",n=0;n<e;++n)n>0&&(t+=`
+else `),n<e-1&&(t+="if(test == "+n+".0){}");return t}function XI(e,t){if(e===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");for(var n=t.createShader(t.FRAGMENT_SHADER);;){var r=HI.replace(/%forloop%/gi,zI(e));if(t.shaderSource(n,r),t.compileShader(n),!t.getShaderParameter(n,t.COMPILE_STATUS))e=e/2|0;else break}return e}var ta;function WI(){if(typeof ta=="boolean")return ta;try{var e=new Function("param1","param2","param3","return param1[param2] === param3;");ta=e({a:"b"},"a","b")===!0}catch{ta=!1}return ta}var KI=`varying vec2 vTextureCoord;
+
+uniform sampler2D uSampler;
+
+void main(void){
+   gl_FragColor *= texture2D(uSampler, vTextureCoord);
+}`,YI=`attribute vec2 aVertexPosition;
+attribute vec2 aTextureCoord;
+
+uniform mat3 projectionMatrix;
+
+varying vec2 vTextureCoord;
+
+void main(void){
+   gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
+   vTextureCoord = aTextureCoord;
+}
+`,ZI=0,$s={},qf=function(){function e(t,n,r){r===void 0&&(r="pixi-shader"),this.id=ZI++,this.vertexSrc=t||e.defaultVertexSrc,this.fragmentSrc=n||e.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),this.vertexSrc.substring(0,8)!=="#version"&&(r=r.replace(/\s+/g,"-"),$s[r]?($s[r]++,r+="-"+$s[r]):$s[r]=1,this.vertexSrc="#define SHADER_NAME "+r+`
+`+this.vertexSrc,this.fragmentSrc="#define SHADER_NAME "+r+`
+`+this.fragmentSrc,this.vertexSrc=Tp(this.vertexSrc,He.PRECISION_VERTEX,_r.HIGH),this.fragmentSrc=Tp(this.fragmentSrc,He.PRECISION_FRAGMENT,DI())),this.glPrograms={},this.syncUniforms=null}return Object.defineProperty(e,"defaultVertexSrc",{get:function(){return YI},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultFragmentSrc",{get:function(){return KI},enumerable:!1,configurable:!0}),e.from=function(t,n,r){var i=t+n,a=pp[i];return a||(pp[i]=a=new e(t,n,r)),a},e}(),vy=function(){function e(t,n){this.uniformBindCount=0,this.program=t,n?n instanceof Po?this.uniformGroup=n:this.uniformGroup=new Po(n):this.uniformGroup=new Po({})}return e.prototype.checkUniformExists=function(t,n){if(n.uniforms[t])return!0;for(var r in n.uniforms){var i=n.uniforms[r];if(i.group&&this.checkUniformExists(t,i))return!0}return!1},e.prototype.destroy=function(){this.uniformGroup=null},Object.defineProperty(e.prototype,"uniforms",{get:function(){return this.uniformGroup.uniforms},enumerable:!1,configurable:!0}),e.from=function(t,n,r){var i=qf.from(t,n);return new e(i,r)},e}(),Gu=0,Vu=1,$u=2,ju=3,Hu=4,zu=5,ed=function(){function e(){this.data=0,this.blendMode=Me.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}return Object.defineProperty(e.prototype,"blend",{get:function(){return!!(this.data&1<<Gu)},set:function(t){!!(this.data&1<<Gu)!==t&&(this.data^=1<<Gu)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsets",{get:function(){return!!(this.data&1<<Vu)},set:function(t){!!(this.data&1<<Vu)!==t&&(this.data^=1<<Vu)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"culling",{get:function(){return!!(this.data&1<<$u)},set:function(t){!!(this.data&1<<$u)!==t&&(this.data^=1<<$u)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"depthTest",{get:function(){return!!(this.data&1<<ju)},set:function(t){!!(this.data&1<<ju)!==t&&(this.data^=1<<ju)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"depthMask",{get:function(){return!!(this.data&1<<zu)},set:function(t){!!(this.data&1<<zu)!==t&&(this.data^=1<<zu)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clockwiseFrontFace",{get:function(){return!!(this.data&1<<Hu)},set:function(t){!!(this.data&1<<Hu)!==t&&(this.data^=1<<Hu)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blendMode",{get:function(){return this._blendMode},set:function(t){this.blend=t!==Me.NONE,this._blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"polygonOffset",{get:function(){return this._polygonOffset},set:function(t){this.offsets=!!t,this._polygonOffset=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"[@pixi/core:State "+("blendMode="+this.blendMode+" ")+("clockwiseFrontFace="+this.clockwiseFrontFace+" ")+("culling="+this.culling+" ")+("depthMask="+this.depthMask+" ")+("polygonOffset="+this.polygonOffset)+"]"},e.for2d=function(){var t=new e;return t.depthTest=!1,t.blend=!0,t},e}(),JI=`attribute vec2 aVertexPosition;
+
+uniform mat3 projectionMatrix;
+
+varying vec2 vTextureCoord;
+
+uniform vec4 inputSize;
+uniform vec4 outputFrame;
+
+vec4 filterVertexPosition( void )
+{
+    vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
+
+    return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
+}
+
+vec2 filterTextureCoord( void )
+{
+    return aVertexPosition * (outputFrame.zw * inputSize.zw);
+}
+
+void main(void)
+{
+    gl_Position = filterVertexPosition();
+    vTextureCoord = filterTextureCoord();
+}
+`,QI=`varying vec2 vTextureCoord;
+
+uniform sampler2D uSampler;
+
+void main(void){
+   gl_FragColor = texture2D(uSampler, vTextureCoord);
+}
+`,qI=function(e){Nt(t,e);function t(n,r,i){var a=this,o=qf.from(n||t.defaultVertexSrc,r||t.defaultFragmentSrc);return a=e.call(this,o,i)||this,a.padding=0,a.resolution=He.FILTER_RESOLUTION,a.multisample=He.FILTER_MULTISAMPLE,a.enabled=!0,a.autoFit=!0,a.state=new ed,a}return t.prototype.apply=function(n,r,i,a,o){n.applyFilter(this,r,i,a)},Object.defineProperty(t.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(n){this.state.blendMode=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resolution",{get:function(){return this._resolution},set:function(n){this._resolution=n},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultVertexSrc",{get:function(){return JI},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultFragmentSrc",{get:function(){return QI},enumerable:!1,configurable:!0}),t}(vy),eS=`attribute vec2 aVertexPosition;
+attribute vec2 aTextureCoord;
+
+uniform mat3 projectionMatrix;
+uniform mat3 otherMatrix;
+
+varying vec2 vMaskCoord;
+varying vec2 vTextureCoord;
+
+void main(void)
+{
+    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
+
+    vTextureCoord = aTextureCoord;
+    vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0)  ).xy;
+}
+`,tS=`varying vec2 vMaskCoord;
+varying vec2 vTextureCoord;
+
+uniform sampler2D uSampler;
+uniform sampler2D mask;
+uniform float alpha;
+uniform float npmAlpha;
+uniform vec4 maskClamp;
+
+void main(void)
+{
+    float clip = step(3.5,
+        step(maskClamp.x, vMaskCoord.x) +
+        step(maskClamp.y, vMaskCoord.y) +
+        step(vMaskCoord.x, maskClamp.z) +
+        step(vMaskCoord.y, maskClamp.w));
+
+    vec4 original = texture2D(uSampler, vTextureCoord);
+    vec4 masky = texture2D(mask, vMaskCoord);
+    float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);
+
+    original *= (alphaMul * masky.r * alpha * clip);
+
+    gl_FragColor = original;
+}
+`,Cp=new jn,nS=function(){function e(t,n){this._texture=t,this.mapCoord=new jn,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=typeof n=="undefined"?.5:n,this.isSimple=!1}return Object.defineProperty(e.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture=t,this._textureID=-1},enumerable:!1,configurable:!0}),e.prototype.multiplyUvs=function(t,n){n===void 0&&(n=t);for(var r=this.mapCoord,i=0;i<t.length;i+=2){var a=t[i],o=t[i+1];n[i]=a*r.a+o*r.c+r.tx,n[i+1]=a*r.b+o*r.d+r.ty}return n},e.prototype.update=function(t){var n=this._texture;if(!n||!n.valid||!t&&this._textureID===n._updateID)return!1;this._textureID=n._updateID,this._updateID++;var r=n._uvs;this.mapCoord.set(r.x1-r.x0,r.y1-r.y0,r.x3-r.x0,r.y3-r.y0,r.x0,r.y0);var i=n.orig,a=n.trim;a&&(Cp.set(i.width/a.width,0,0,i.height/a.height,-a.x/a.width,-a.y/a.height),this.mapCoord.append(Cp));var o=n.baseTexture,s=this.uClampFrame,l=this.clampMargin/o.resolution,u=this.clampOffset;return s[0]=(n._frame.x+l+u)/o.width,s[1]=(n._frame.y+l+u)/o.height,s[2]=(n._frame.x+n._frame.width-l+u)/o.width,s[3]=(n._frame.y+n._frame.height-l+u)/o.height,this.uClampOffset[0]=u/o.realWidth,this.uClampOffset[1]=u/o.realHeight,this.isSimple=n._frame.width===o.width&&n._frame.height===o.height&&n.rotate===0,!0},e}(),rS=function(e){Nt(t,e);function t(n,r,i){var a=this,o=null;return typeof n!="string"&&r===void 0&&i===void 0&&(o=n,n=void 0,r=void 0,i=void 0),a=e.call(this,n||eS,r||tS,i)||this,a.maskSprite=o,a.maskMatrix=new jn,a}return Object.defineProperty(t.prototype,"maskSprite",{get:function(){return this._maskSprite},set:function(n){this._maskSprite=n,this._maskSprite&&(this._maskSprite.renderable=!1)},enumerable:!1,configurable:!0}),t.prototype.apply=function(n,r,i,a){var o=this._maskSprite,s=o._texture;!s.valid||(s.uvMatrix||(s.uvMatrix=new nS(s,0)),s.uvMatrix.update(),this.uniforms.npmAlpha=s.baseTexture.alphaMode?0:1,this.uniforms.mask=s,this.uniforms.otherMatrix=n.calculateSpriteMatrix(this.maskMatrix,o).prepend(s.uvMatrix.mapCoord),this.uniforms.alpha=o.worldAlpha,this.uniforms.maskClamp=s.uvMatrix.uClampFrame,n.applyFilter(this,r,i,a))},t}(qI),iS=function(){function e(t){this.renderer=t,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}return e.prototype.setMaskStack=function(t){this.maskStack=t,this.renderer.scissor.setMaskStack(t),this.renderer.stencil.setMaskStack(t)},e.prototype.push=function(t,n){var r=n;if(!r.isMaskData){var i=this.maskDataPool.pop()||new UI;i.pooled=!0,i.maskObject=n,r=i}var a=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null;if(r.copyCountersOrReset(a),r.autoDetect&&this.detect(r),r._target=t,r.type!==hn.SPRITE&&this.maskStack.push(r),r.enabled)switch(r.type){case hn.SCISSOR:this.renderer.scissor.push(r);break;case hn.STENCIL:this.renderer.stencil.push(r);break;case hn.SPRITE:r.copyCountersOrReset(null),this.pushSpriteMask(r);break}r.type===hn.SPRITE&&this.maskStack.push(r)},e.prototype.pop=function(t){var n=this.maskStack.pop();if(!(!n||n._target!==t)){if(n.enabled)switch(n.type){case hn.SCISSOR:this.renderer.scissor.pop();break;case hn.STENCIL:this.renderer.stencil.pop(n.maskObject);break;case hn.SPRITE:this.popSpriteMask(n);break}if(n.reset(),n.pooled&&this.maskDataPool.push(n),this.maskStack.length!==0){var r=this.maskStack[this.maskStack.length-1];r.type===hn.SPRITE&&r._filters&&(r._filters[0].maskSprite=r.maskObject)}}},e.prototype.detect=function(t){var n=t.maskObject;n.isSprite?t.type=hn.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(t)?t.type=hn.SCISSOR:t.type=hn.STENCIL},e.prototype.pushSpriteMask=function(t){var n,r,i=t.maskObject,a=t._target,o=t._filters;o||(o=this.alphaMaskPool[this.alphaMaskIndex],o||(o=this.alphaMaskPool[this.alphaMaskIndex]=[new rS]));var s=this.renderer,l=s.renderTexture,u,c;if(l.current){var f=l.current;u=t.resolution||f.resolution,c=(n=t.multisample)!==null&&n!==void 0?n:f.multisample}else u=t.resolution||s.resolution,c=(r=t.multisample)!==null&&r!==void 0?r:s.multisample;o[0].resolution=u,o[0].multisample=c,o[0].maskSprite=i;var d=a.filterArea;a.filterArea=i.getBounds(!0),s.filter.push(a,o),a.filterArea=d,t._filters||this.alphaMaskIndex++},e.prototype.popSpriteMask=function(t){this.renderer.filter.pop(),t._filters?t._filters[0].maskSprite=null:(this.alphaMaskIndex--,this.alphaMaskPool[this.alphaMaskIndex][0].maskSprite=null)},e.prototype.destroy=function(){this.renderer=null},e}(),my=function(){function e(t){this.renderer=t,this.maskStack=[],this.glConst=0}return e.prototype.getStackLength=function(){return this.maskStack.length},e.prototype.setMaskStack=function(t){var n=this.renderer.gl,r=this.getStackLength();this.maskStack=t;var i=this.getStackLength();i!==r&&(i===0?n.disable(this.glConst):(n.enable(this.glConst),this._useCurrent()))},e.prototype._useCurrent=function(){},e.prototype.destroy=function(){this.renderer=null,this.maskStack=null},e}(),Ep=new jn,oS=function(e){Nt(t,e);function t(n){var r=e.call(this,n)||this;return r.glConst=WebGLRenderingContext.SCISSOR_TEST,r}return t.prototype.getStackLength=function(){var n=this.maskStack[this.maskStack.length-1];return n?n._scissorCounter:0},t.prototype.calcScissorRect=function(n){if(!n._scissorRectLocal){var r=n._scissorRect,i=n.maskObject,a=this.renderer,o=a.renderTexture;i.renderable=!0;var s=i.getBounds();this.roundFrameToPixels(s,o.current?o.current.resolution:a.resolution,o.sourceFrame,o.destinationFrame,a.projection.transform),i.renderable=!1,r&&s.fit(r),n._scissorRectLocal=s}},t.isMatrixRotated=function(n){if(!n)return!1;var r=n.a,i=n.b,a=n.c,o=n.d;return(Math.abs(i)>1e-4||Math.abs(a)>1e-4)&&(Math.abs(r)>1e-4||Math.abs(o)>1e-4)},t.prototype.testScissor=function(n){var r=n.maskObject;if(!r.isFastRect||!r.isFastRect()||t.isMatrixRotated(r.worldTransform)||t.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(n);var i=n._scissorRectLocal;return i.width>0&&i.height>0},t.prototype.roundFrameToPixels=function(n,r,i,a,o){t.isMatrixRotated(o)||(o=o?Ep.copyFrom(o):Ep.identity(),o.translate(-i.x,-i.y).scale(a.width/i.width,a.height/i.height).translate(a.x,a.y),this.renderer.filter.transformAABB(o,n),n.fit(a),n.x=Math.round(n.x*r),n.y=Math.round(n.y*r),n.width=Math.round(n.width*r),n.height=Math.round(n.height*r))},t.prototype.push=function(n){n._scissorRectLocal||this.calcScissorRect(n);var r=this.renderer.gl;n._scissorRect||r.enable(r.SCISSOR_TEST),n._scissorCounter++,n._scissorRect=n._scissorRectLocal,this._useCurrent()},t.prototype.pop=function(){var n=this.renderer.gl;this.getStackLength()>0?this._useCurrent():n.disable(n.SCISSOR_TEST)},t.prototype._useCurrent=function(){var n=this.maskStack[this.maskStack.length-1]._scissorRect,r;this.renderer.renderTexture.current?r=n.y:r=this.renderer.height-n.height-n.y,this.renderer.gl.scissor(n.x,r,n.width,n.height)},t}(my),aS=function(e){Nt(t,e);function t(n){var r=e.call(this,n)||this;return r.glConst=WebGLRenderingContext.STENCIL_TEST,r}return t.prototype.getStackLength=function(){var n=this.maskStack[this.maskStack.length-1];return n?n._stencilCounter:0},t.prototype.push=function(n){var r=n.maskObject,i=this.renderer.gl,a=n._stencilCounter;a===0&&(this.renderer.framebuffer.forceStencil(),i.clearStencil(0),i.clear(i.STENCIL_BUFFER_BIT),i.enable(i.STENCIL_TEST)),n._stencilCounter++,i.colorMask(!1,!1,!1,!1),i.stencilFunc(i.EQUAL,a,4294967295),i.stencilOp(i.KEEP,i.KEEP,i.INCR),r.renderable=!0,r.render(this.renderer),this.renderer.batch.flush(),r.renderable=!1,this._useCurrent()},t.prototype.pop=function(n){var r=this.renderer.gl;this.getStackLength()===0?r.disable(r.STENCIL_TEST):(r.colorMask(!1,!1,!1,!1),r.stencilOp(r.KEEP,r.KEEP,r.DECR),n.renderable=!0,n.render(this.renderer),this.renderer.batch.flush(),n.renderable=!1,this._useCurrent())},t.prototype._useCurrent=function(){var n=this.renderer.gl;n.colorMask(!0,!0,!0,!0),n.stencilFunc(n.EQUAL,this.getStackLength(),4294967295),n.stencilOp(n.KEEP,n.KEEP,n.KEEP)},t}(my),sS=function(){function e(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new jn,this.transform=null}return e.prototype.update=function(t,n,r,i){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=n||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,r,i),this.transform&&this.projectionMatrix.append(this.transform);var a=this.renderer;a.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,a.globalUniforms.update(),a.shader.shader&&a.shader.syncUniformGroup(a.shader.shader.uniforms.globals)},e.prototype.calculateProjection=function(t,n,r,i){var a=this.projectionMatrix,o=i?-1:1;a.identity(),a.a=1/n.width*2,a.d=o*(1/n.height*2),a.tx=-1-n.x*a.a,a.ty=-o-n.y*a.d},e.prototype.setTransform=function(t){},e.prototype.destroy=function(){this.renderer=null},e}(),Pi=new Zt,na=new Zt,lS=function(){function e(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Zt,this.destinationFrame=new Zt,this.viewportFrame=new Zt}return e.prototype.bind=function(t,n,r){t===void 0&&(t=null);var i=this.renderer;this.current=t;var a,o,s;t?(a=t.baseTexture,s=a.resolution,n||(Pi.width=t.frame.width,Pi.height=t.frame.height,n=Pi),r||(na.x=t.frame.x,na.y=t.frame.y,na.width=n.width,na.height=n.height,r=na),o=a.framebuffer):(s=i.resolution,n||(Pi.width=i.screen.width,Pi.height=i.screen.height,n=Pi),r||(r=Pi,r.width=n.width,r.height=n.height));var l=this.viewportFrame;l.x=r.x*s,l.y=r.y*s,l.width=r.width*s,l.height=r.height*s,t||(l.y=i.view.height-(l.y+l.height)),l.ceil(),this.renderer.framebuffer.bind(o,l),this.renderer.projection.update(r,n,s,!o),t?this.renderer.mask.setMaskStack(a.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(n),this.destinationFrame.copyFrom(r)},e.prototype.clear=function(t,n){this.current?t=t||this.current.baseTexture.clearColor:t=t||this.clearColor;var r=this.destinationFrame,i=this.current?this.current.baseTexture:this.renderer.screen,a=r.width!==i.width||r.height!==i.height;if(a){var o=this.viewportFrame,s=o.x,l=o.y,u=o.width,c=o.height;s=Math.round(s),l=Math.round(l),u=Math.round(u),c=Math.round(c),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(s,l,u,c)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],n),a&&this.renderer.scissor.pop()},e.prototype.resize=function(){this.bind(null)},e.prototype.reset=function(){this.bind(null)},e.prototype.destroy=function(){this.renderer=null},e}();function uS(e,t,n,r,i){n.buffer.update(i)}var cS={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];
+        }
+    `},gy={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 fS(e){for(var t=e.map(function(l){return{data:l,offset:0,dataLen:0,dirty:0}}),n=0,r=0,i=0,a=0;a<t.length;a++){var o=t[a];if(n=gy[o.data.type],o.data.size>1&&(n=Math.max(n,16)*o.data.size),o.dataLen=n,r%n!==0&&r<16){var s=r%n%16;r+=s,i+=s}r+n>16?(i=Math.ceil(i/16)*16,o.offset=i,i+=n,r=n):(o.offset=i,r+=n,i+=n)}return i=Math.ceil(i/16)*16,{uboElements:t,size:i}}function dS(e,t){var n=[];for(var r in e)t[r]&&n.push(t[r]);return n.sort(function(i,a){return i.index-a.index}),n}function hS(e,t){if(!e.autoManage)return{size:0,syncFunc:uS};for(var n=dS(e.uniforms,t),r=fS(n),i=r.uboElements,a=r.size,o=[`
+    var v = null;
+    var v2 = null;
+    var cv = null;
+    var t = 0;
+    var gl = renderer.gl
+    var index = 0;
+    var data = buffer.data;
+    `],s=0;s<i.length;s++){for(var l=i[s],u=e.uniforms[l.data.name],c=l.data.name,f=!1,d=0;d<Fo.length;d++){var h=Fo[d];if(h.codeUbo&&h.test(l.data,u)){o.push("offset = "+l.offset/4+";",Fo[d].codeUbo(l.data.name,u)),f=!0;break}}if(!f)if(l.data.size>1){var p=hy(l.data.type),v=Math.max(gy[l.data.type]/16,1),g=p/v,y=(4-g%4)%4;o.push(`
+                cv = ud.`+c+`.value;
+                v = uv.`+c+`;
+                offset = `+l.offset/4+`;
+
+                t = 0;
+
+                for(var i=0; i < `+l.data.size*v+`; i++)
+                {
+                    for(var j = 0; j < `+g+`; j++)
+                    {
+                        data[offset++] = v[t++];
+                    }
+                    offset += `+y+`;
+                }
+
+                `)}else{var m=cS[l.data.type];o.push(`
+                cv = ud.`+c+`.value;
+                v = uv.`+c+`;
+                offset = `+l.offset/4+`;
+                `+m+`;
+                `)}}return o.push(`
+       renderer.buffer.update(buffer);
+    `),{size:a,syncFunc:new Function("ud","uv","renderer","syncData","buffer",o.join(`
+`))}}var pS=function(){function e(t,n){this.program=t,this.uniformData=n,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return e.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},e}();function vS(e,t){for(var n={},r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),i=0;i<r;i++){var a=t.getActiveAttrib(e,i);if(a.name.indexOf("gl_")!==0){var o=py(t,a.type),s={type:o,name:a.name,size:hy(o),location:t.getAttribLocation(e,a.name)};n[a.name]=s}}return n}function mS(e,t){for(var n={},r=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),i=0;i<r;i++){var a=t.getActiveUniform(e,i),o=a.name.replace(/\[.*?\]$/,""),s=!!a.name.match(/\[.*?\]$/),l=py(t,a.type);n[o]={name:o,index:i,type:l,size:a.size,isArray:s,value:fy(l,a.size)}}return n}function gS(e,t){var n=xp(e,e.VERTEX_SHADER,t.vertexSrc),r=xp(e,e.FRAGMENT_SHADER,t.fragmentSrc),i=e.createProgram();if(e.attachShader(i,n),e.attachShader(i,r),e.linkProgram(i),e.getProgramParameter(i,e.LINK_STATUS)||BI(e,i,n,r),t.attributeData=vS(i,e),t.uniformData=mS(i,e),!/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(t.vertexSrc)){var a=Object.keys(t.attributeData);a.sort(function(c,f){return c>f?1:-1});for(var o=0;o<a.length;o++)t.attributeData[a[o]].location=o,e.bindAttribLocation(i,o,a[o]);e.linkProgram(i)}e.deleteShader(n),e.deleteShader(r);var s={};for(var o in t.uniformData){var l=t.uniformData[o];s[o]={location:e.getUniformLocation(i,o),value:fy(l.type,l.size)}}var u=new pS(i,s);return u}var yS=0,js={textureCount:0,uboCount:0},bS=function(){function e(t){this.destroyed=!1,this.renderer=t,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=yS++}return e.prototype.systemCheck=function(){if(!WI())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")},e.prototype.contextChange=function(t){this.gl=t,this.reset()},e.prototype.bind=function(t,n){t.uniforms.globals=this.renderer.globalUniforms;var r=t.program,i=r.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(t);return this.shader=t,this.program!==r&&(this.program=r,this.gl.useProgram(i.program)),n||(js.textureCount=0,js.uboCount=0,this.syncUniformGroup(t.uniformGroup,js)),i},e.prototype.setUniforms=function(t){var n=this.shader.program,r=n.glPrograms[this.renderer.CONTEXT_UID];n.syncUniforms(r.uniformData,t,this.renderer)},e.prototype.syncUniformGroup=function(t,n){var r=this.getGlProgram();(!t.static||t.dirtyId!==r.uniformDirtyGroups[t.id])&&(r.uniformDirtyGroups[t.id]=t.dirtyId,this.syncUniforms(t,r,n))},e.prototype.syncUniforms=function(t,n,r){var i=t.syncUniforms[this.shader.program.id]||this.createSyncGroups(t);i(n.uniformData,t.uniforms,this.renderer,r)},e.prototype.createSyncGroups=function(t){var n=this.getSignature(t,this.shader.program.uniformData,"u");return this.cache[n]||(this.cache[n]=jI(t,this.shader.program.uniformData)),t.syncUniforms[this.shader.program.id]=this.cache[n],t.syncUniforms[this.shader.program.id]},e.prototype.syncUniformBufferGroup=function(t,n){var r=this.getGlProgram();if(!t.static||t.dirtyId!==0||!r.uniformGroups[t.id]){t.dirtyId=0;var i=r.uniformGroups[t.id]||this.createSyncBufferGroup(t,r,n);t.buffer.update(),i(r.uniformData,t.uniforms,this.renderer,js,t.buffer)}this.renderer.buffer.bindBufferBase(t.buffer,r.uniformBufferBindings[n])},e.prototype.createSyncBufferGroup=function(t,n,r){var i=this.renderer.gl;this.renderer.buffer.bind(t.buffer);var a=this.gl.getUniformBlockIndex(n.program,r);n.uniformBufferBindings[r]=this.shader.uniformBindCount,i.uniformBlockBinding(n.program,a,this.shader.uniformBindCount),this.shader.uniformBindCount++;var o=this.getSignature(t,this.shader.program.uniformData,"ubo"),s=this._uboCache[o];if(s||(s=this._uboCache[o]=hS(t,this.shader.program.uniformData)),t.autoManage){var l=new Float32Array(s.size/4);t.buffer.update(l)}return n.uniformGroups[t.id]=s.syncFunc,n.uniformGroups[t.id]},e.prototype.getSignature=function(t,n,r){var i=t.uniforms,a=[r+"-"];for(var o in i)a.push(o),n[o]&&a.push(n[o].type);return a.join("-")},e.prototype.getGlProgram=function(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null},e.prototype.generateProgram=function(t){var n=this.gl,r=t.program,i=gS(n,r);return r.glPrograms[this.renderer.CONTEXT_UID]=i,i},e.prototype.reset=function(){this.program=null,this.shader=null},e.prototype.destroy=function(){this.renderer=null,this.destroyed=!0},e}();function xS(e,t){return t===void 0&&(t=[]),t[Me.NORMAL]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Me.ADD]=[e.ONE,e.ONE],t[Me.MULTIPLY]=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Me.SCREEN]=[e.ONE,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Me.OVERLAY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Me.DARKEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Me.LIGHTEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Me.COLOR_DODGE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Me.COLOR_BURN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Me.HARD_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Me.SOFT_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Me.DIFFERENCE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Me.EXCLUSION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Me.HUE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Me.SATURATION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Me.COLOR]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Me.LUMINOSITY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Me.NONE]=[0,0],t[Me.NORMAL_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Me.ADD_NPM]=[e.SRC_ALPHA,e.ONE,e.ONE,e.ONE],t[Me.SCREEN_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Me.SRC_IN]=[e.DST_ALPHA,e.ZERO],t[Me.SRC_OUT]=[e.ONE_MINUS_DST_ALPHA,e.ZERO],t[Me.SRC_ATOP]=[e.DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[Me.DST_OVER]=[e.ONE_MINUS_DST_ALPHA,e.ONE],t[Me.DST_IN]=[e.ZERO,e.SRC_ALPHA],t[Me.DST_OUT]=[e.ZERO,e.ONE_MINUS_SRC_ALPHA],t[Me.DST_ATOP]=[e.ONE_MINUS_DST_ALPHA,e.SRC_ALPHA],t[Me.XOR]=[e.ONE_MINUS_DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[Me.SUBTRACT]=[e.ONE,e.ONE,e.ONE,e.ONE,e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD],t}var _S=0,TS=1,wS=2,CS=3,ES=4,IS=5,SS=function(){function e(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=Me.NONE,this._blendEq=!1,this.map=[],this.map[_S]=this.setBlend,this.map[TS]=this.setOffset,this.map[wS]=this.setCullFace,this.map[CS]=this.setDepthTest,this.map[ES]=this.setFrontFace,this.map[IS]=this.setDepthMask,this.checks=[],this.defaultState=new ed,this.defaultState.blend=!0}return e.prototype.contextChange=function(t){this.gl=t,this.blendModes=xS(t),this.set(this.defaultState),this.reset()},e.prototype.set=function(t){if(t=t||this.defaultState,this.stateId!==t.data){for(var n=this.stateId^t.data,r=0;n;)n&1&&this.map[r].call(this,!!(t.data&1<<r)),n=n>>1,r++;this.stateId=t.data}for(var r=0;r<this.checks.length;r++)this.checks[r](this,t)},e.prototype.forceState=function(t){t=t||this.defaultState;for(var n=0;n<this.map.length;n++)this.map[n].call(this,!!(t.data&1<<n));for(var n=0;n<this.checks.length;n++)this.checks[n](this,t);this.stateId=t.data},e.prototype.setBlend=function(t){this.updateCheck(e.checkBlendMode,t),this.gl[t?"enable":"disable"](this.gl.BLEND)},e.prototype.setOffset=function(t){this.updateCheck(e.checkPolygonOffset,t),this.gl[t?"enable":"disable"](this.gl.POLYGON_OFFSET_FILL)},e.prototype.setDepthTest=function(t){this.gl[t?"enable":"disable"](this.gl.DEPTH_TEST)},e.prototype.setDepthMask=function(t){this.gl.depthMask(t)},e.prototype.setCullFace=function(t){this.gl[t?"enable":"disable"](this.gl.CULL_FACE)},e.prototype.setFrontFace=function(t){this.gl.frontFace(this.gl[t?"CW":"CCW"])},e.prototype.setBlendMode=function(t){if(t!==this.blendMode){this.blendMode=t;var n=this.blendModes[t],r=this.gl;n.length===2?r.blendFunc(n[0],n[1]):r.blendFuncSeparate(n[0],n[1],n[2],n[3]),n.length===6?(this._blendEq=!0,r.blendEquationSeparate(n[4],n[5])):this._blendEq&&(this._blendEq=!1,r.blendEquationSeparate(r.FUNC_ADD,r.FUNC_ADD))}},e.prototype.setPolygonOffset=function(t,n){this.gl.polygonOffset(t,n)},e.prototype.reset=function(){this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1),this.forceState(this.defaultState),this._blendEq=!0,this.blendMode=-1,this.setBlendMode(0)},e.prototype.updateCheck=function(t,n){var r=this.checks.indexOf(t);n&&r===-1?this.checks.push(t):!n&&r!==-1&&this.checks.splice(r,1)},e.checkBlendMode=function(t,n){t.setBlendMode(n.blendMode)},e.checkPolygonOffset=function(t,n){t.setPolygonOffset(1,n.polygonOffset)},e.prototype.destroy=function(){this.gl=null},e}(),NS=function(){function e(t){this.renderer=t,this.count=0,this.checkCount=0,this.maxIdle=He.GC_MAX_IDLE,this.checkCountMax=He.GC_MAX_CHECK_COUNT,this.mode=He.GC_MODE}return e.prototype.postrender=function(){!this.renderer.renderingToScreen||(this.count++,this.mode!==kc.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())))},e.prototype.run=function(){for(var t=this.renderer.texture,n=t.managedTextures,r=!1,i=0;i<n.length;i++){var a=n[i];!a.framebuffer&&this.count-a.touched>this.maxIdle&&(t.destroyTexture(a,!0),n[i]=null,r=!0)}if(r){for(var o=0,i=0;i<n.length;i++)n[i]!==null&&(n[o++]=n[i]);n.length=o}},e.prototype.unload=function(t){var n=this.renderer.texture,r=t._texture;r&&!r.framebuffer&&n.destroyTexture(r);for(var i=t.children.length-1;i>=0;i--)this.unload(t.children[i])},e.prototype.destroy=function(){this.renderer=null},e}();function RS(e){var t,n,r,i,a,o,s,l,u,c,f,d,h,p,v,g,y,m,b,T,S,w,N;return"WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext?N=(t={},t[vt.UNSIGNED_BYTE]=(n={},n[ge.RGBA]=e.RGBA8,n[ge.RGB]=e.RGB8,n[ge.RG]=e.RG8,n[ge.RED]=e.R8,n[ge.RGBA_INTEGER]=e.RGBA8UI,n[ge.RGB_INTEGER]=e.RGB8UI,n[ge.RG_INTEGER]=e.RG8UI,n[ge.RED_INTEGER]=e.R8UI,n[ge.ALPHA]=e.ALPHA,n[ge.LUMINANCE]=e.LUMINANCE,n[ge.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,n),t[vt.BYTE]=(r={},r[ge.RGBA]=e.RGBA8_SNORM,r[ge.RGB]=e.RGB8_SNORM,r[ge.RG]=e.RG8_SNORM,r[ge.RED]=e.R8_SNORM,r[ge.RGBA_INTEGER]=e.RGBA8I,r[ge.RGB_INTEGER]=e.RGB8I,r[ge.RG_INTEGER]=e.RG8I,r[ge.RED_INTEGER]=e.R8I,r),t[vt.UNSIGNED_SHORT]=(i={},i[ge.RGBA_INTEGER]=e.RGBA16UI,i[ge.RGB_INTEGER]=e.RGB16UI,i[ge.RG_INTEGER]=e.RG16UI,i[ge.RED_INTEGER]=e.R16UI,i[ge.DEPTH_COMPONENT]=e.DEPTH_COMPONENT16,i),t[vt.SHORT]=(a={},a[ge.RGBA_INTEGER]=e.RGBA16I,a[ge.RGB_INTEGER]=e.RGB16I,a[ge.RG_INTEGER]=e.RG16I,a[ge.RED_INTEGER]=e.R16I,a),t[vt.UNSIGNED_INT]=(o={},o[ge.RGBA_INTEGER]=e.RGBA32UI,o[ge.RGB_INTEGER]=e.RGB32UI,o[ge.RG_INTEGER]=e.RG32UI,o[ge.RED_INTEGER]=e.R32UI,o[ge.DEPTH_COMPONENT]=e.DEPTH_COMPONENT24,o),t[vt.INT]=(s={},s[ge.RGBA_INTEGER]=e.RGBA32I,s[ge.RGB_INTEGER]=e.RGB32I,s[ge.RG_INTEGER]=e.RG32I,s[ge.RED_INTEGER]=e.R32I,s),t[vt.FLOAT]=(l={},l[ge.RGBA]=e.RGBA32F,l[ge.RGB]=e.RGB32F,l[ge.RG]=e.RG32F,l[ge.RED]=e.R32F,l[ge.DEPTH_COMPONENT]=e.DEPTH_COMPONENT32F,l),t[vt.HALF_FLOAT]=(u={},u[ge.RGBA]=e.RGBA16F,u[ge.RGB]=e.RGB16F,u[ge.RG]=e.RG16F,u[ge.RED]=e.R16F,u),t[vt.UNSIGNED_SHORT_5_6_5]=(c={},c[ge.RGB]=e.RGB565,c),t[vt.UNSIGNED_SHORT_4_4_4_4]=(f={},f[ge.RGBA]=e.RGBA4,f),t[vt.UNSIGNED_SHORT_5_5_5_1]=(d={},d[ge.RGBA]=e.RGB5_A1,d),t[vt.UNSIGNED_INT_2_10_10_10_REV]=(h={},h[ge.RGBA]=e.RGB10_A2,h[ge.RGBA_INTEGER]=e.RGB10_A2UI,h),t[vt.UNSIGNED_INT_10F_11F_11F_REV]=(p={},p[ge.RGB]=e.R11F_G11F_B10F,p),t[vt.UNSIGNED_INT_5_9_9_9_REV]=(v={},v[ge.RGB]=e.RGB9_E5,v),t[vt.UNSIGNED_INT_24_8]=(g={},g[ge.DEPTH_STENCIL]=e.DEPTH24_STENCIL8,g),t[vt.FLOAT_32_UNSIGNED_INT_24_8_REV]=(y={},y[ge.DEPTH_STENCIL]=e.DEPTH32F_STENCIL8,y),t):N=(m={},m[vt.UNSIGNED_BYTE]=(b={},b[ge.RGBA]=e.RGBA,b[ge.RGB]=e.RGB,b[ge.ALPHA]=e.ALPHA,b[ge.LUMINANCE]=e.LUMINANCE,b[ge.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,b),m[vt.UNSIGNED_SHORT_5_6_5]=(T={},T[ge.RGB]=e.RGB,T),m[vt.UNSIGNED_SHORT_4_4_4_4]=(S={},S[ge.RGBA]=e.RGBA,S),m[vt.UNSIGNED_SHORT_5_5_5_1]=(w={},w[ge.RGBA]=e.RGBA,w),m),N}var Xu=function(){function e(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=vt.UNSIGNED_BYTE,this.internalFormat=ge.RGBA,this.samplerType=0}return e}(),AS=function(){function e(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new rn,this.hasIntegerTextures=!1}return e.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=RS(t);var n=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=n;for(var r=0;r<n;r++)this.boundTextures[r]=null;this.emptyTextures={};var i=new Xu(t.createTexture());t.bindTexture(t.TEXTURE_2D,i.texture),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,new Uint8Array(4)),this.emptyTextures[t.TEXTURE_2D]=i,this.emptyTextures[t.TEXTURE_CUBE_MAP]=new Xu(t.createTexture()),t.bindTexture(t.TEXTURE_CUBE_MAP,this.emptyTextures[t.TEXTURE_CUBE_MAP].texture);for(var r=0;r<6;r++)t.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+r,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,null);t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MIN_FILTER,t.LINEAR);for(var r=0;r<this.boundTextures.length;r++)this.bind(null,r)},e.prototype.bind=function(t,n){n===void 0&&(n=0);var r=this.gl;if(t=t==null?void 0:t.castToBaseTexture(),t&&t.valid&&!t.parentTextureArray){t.touched=this.renderer.textureGC.count;var i=t._glTextures[this.CONTEXT_UID]||this.initTexture(t);this.boundTextures[n]!==t&&(this.currentLocation!==n&&(this.currentLocation=n,r.activeTexture(r.TEXTURE0+n)),r.bindTexture(t.target,i.texture)),i.dirtyId!==t.dirtyId&&(this.currentLocation!==n&&(this.currentLocation=n,r.activeTexture(r.TEXTURE0+n)),this.updateTexture(t)),this.boundTextures[n]=t}else this.currentLocation!==n&&(this.currentLocation=n,r.activeTexture(r.TEXTURE0+n)),r.bindTexture(r.TEXTURE_2D,this.emptyTextures[r.TEXTURE_2D].texture),this.boundTextures[n]=null},e.prototype.reset=function(){this._unknownBoundTextures=!0,this.hasIntegerTextures=!1,this.currentLocation=-1;for(var t=0;t<this.boundTextures.length;t++)this.boundTextures[t]=this.unknownTexture},e.prototype.unbind=function(t){var n=this,r=n.gl,i=n.boundTextures;if(this._unknownBoundTextures){this._unknownBoundTextures=!1;for(var a=0;a<i.length;a++)i[a]===this.unknownTexture&&this.bind(null,a)}for(var a=0;a<i.length;a++)i[a]===t&&(this.currentLocation!==a&&(r.activeTexture(r.TEXTURE0+a),this.currentLocation=a),r.bindTexture(t.target,this.emptyTextures[t.target].texture),i[a]=null)},e.prototype.ensureSamplerType=function(t){var n=this,r=n.boundTextures,i=n.hasIntegerTextures,a=n.CONTEXT_UID;if(!!i)for(var o=t-1;o>=0;--o){var s=r[o];if(s){var l=s._glTextures[a];l.samplerType!==Nl.FLOAT&&this.renderer.texture.unbind(s)}}},e.prototype.initTexture=function(t){var n=new Xu(this.gl.createTexture());return n.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=n,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),n},e.prototype.initTextureType=function(t,n){var r,i;n.internalFormat=(i=(r=this.internalFormats[t.type])===null||r===void 0?void 0:r[t.format])!==null&&i!==void 0?i:t.format,this.webGLVersion===2&&t.type===vt.HALF_FLOAT?n.type=this.gl.HALF_FLOAT:n.type=t.type},e.prototype.updateTexture=function(t){var n=t._glTextures[this.CONTEXT_UID];if(!!n){var r=this.renderer;if(this.initTextureType(t,n),t.resource&&t.resource.upload(r,t,n))n.samplerType!==Nl.FLOAT&&(this.hasIntegerTextures=!0);else{var i=t.realWidth,a=t.realHeight,o=r.gl;(n.width!==i||n.height!==a||n.dirtyId<0)&&(n.width=i,n.height=a,o.texImage2D(t.target,0,n.internalFormat,i,a,0,t.format,n.type,null))}t.dirtyStyleId!==n.dirtyStyleId&&this.updateTextureStyle(t),n.dirtyId=t.dirtyId}},e.prototype.destroyTexture=function(t,n){var r=this.gl;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),r.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!n)){var i=this.managedTextures.indexOf(t);i!==-1&&al(this.managedTextures,i,1)}},e.prototype.updateTextureStyle=function(t){var n=t._glTextures[this.CONTEXT_UID];!n||((t.mipmap===ro.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?n.mipmap=!1:n.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?n.wrapMode=Bc.CLAMP:n.wrapMode=t.wrapMode,t.resource&&t.resource.style(this.renderer,t,n)||this.setStyle(t,n),n.dirtyStyleId=t.dirtyStyleId)},e.prototype.setStyle=function(t,n){var r=this.gl;if(n.mipmap&&t.mipmap!==ro.ON_MANUAL&&r.generateMipmap(t.target),r.texParameteri(t.target,r.TEXTURE_WRAP_S,n.wrapMode),r.texParameteri(t.target,r.TEXTURE_WRAP_T,n.wrapMode),n.mipmap){r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===Dr.LINEAR?r.LINEAR_MIPMAP_LINEAR:r.NEAREST_MIPMAP_NEAREST);var i=this.renderer.context.extensions.anisotropicFiltering;if(i&&t.anisotropicLevel>0&&t.scaleMode===Dr.LINEAR){var a=Math.min(t.anisotropicLevel,r.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT));r.texParameterf(t.target,i.TEXTURE_MAX_ANISOTROPY_EXT,a)}}else r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===Dr.LINEAR?r.LINEAR:r.NEAREST);r.texParameteri(t.target,r.TEXTURE_MAG_FILTER,t.scaleMode===Dr.LINEAR?r.LINEAR:r.NEAREST)},e.prototype.destroy=function(){this.renderer=null},e}(),Wu=new jn,OS=function(e){Nt(t,e);function t(n,r){n===void 0&&(n=ja.UNKNOWN);var i=e.call(this)||this;return r=Object.assign({},He.RENDER_OPTIONS,r),i.options=r,i.type=n,i.screen=new Zt(0,0,r.width,r.height),i.view=r.view||document.createElement("canvas"),i.resolution=r.resolution||He.RESOLUTION,i.useContextAlpha=r.useContextAlpha,i.autoDensity=!!r.autoDensity,i.preserveDrawingBuffer=r.preserveDrawingBuffer,i.clearBeforeRender=r.clearBeforeRender,i._backgroundColor=0,i._backgroundColorRgba=[0,0,0,1],i._backgroundColorString="#000000",i.backgroundColor=r.backgroundColor||i._backgroundColor,i.backgroundAlpha=r.backgroundAlpha,r.transparent!==void 0&&(Za("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),i.useContextAlpha=r.transparent,i.backgroundAlpha=r.transparent?0:1),i._lastObjectRendered=null,i.plugins={},i}return t.prototype.initPlugins=function(n){for(var r in n)this.plugins[r]=new n[r](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(n,r){this.view.width=Math.round(n*this.resolution),this.view.height=Math.round(r*this.resolution);var i=this.view.width/this.resolution,a=this.view.height/this.resolution;this.screen.width=i,this.screen.height=a,this.autoDensity&&(this.view.style.width=i+"px",this.view.style.height=a+"px"),this.emit("resize",i,a)},t.prototype.generateTexture=function(n,r,i,a){r===void 0&&(r={}),typeof r=="number"&&(Za("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),r={scaleMode:r,resolution:i,region:a});var o=r.region,s=fI(r,["region"]);a=o||n.getLocalBounds(null,!0),a.width===0&&(a.width=1),a.height===0&&(a.height=1);var l=Jf.create(Zc({width:a.width,height:a.height},s));return Wu.tx=-a.x,Wu.ty=-a.y,this.render(n,{renderTexture:l,clear:!1,transform:Wu,skipUpdateTransform:!!n.parent}),l},t.prototype.destroy=function(n){for(var r in this.plugins)this.plugins[r].destroy(),this.plugins[r]=null;n&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var i=this;i.plugins=null,i.type=ja.UNKNOWN,i.view=null,i.screen=null,i._tempDisplayObjectParent=null,i.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(n){this._backgroundColor=n,this._backgroundColorString=eI(n),qE(n,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(n){this._backgroundColorRgba[3]=n},enumerable:!1,configurable:!0}),t}(nu),PS=function(){function e(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return e}(),FS=function(){function e(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}return e.prototype.destroy=function(){this.renderer=null},e.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},e.prototype.bind=function(t){var n=this,r=n.gl,i=n.CONTEXT_UID,a=t._glBuffers[i]||this.createGLBuffer(t);r.bindBuffer(t.type,a.buffer)},e.prototype.bindBufferBase=function(t,n){var r=this,i=r.gl,a=r.CONTEXT_UID;if(this.boundBufferBases[n]!==t){var o=t._glBuffers[a]||this.createGLBuffer(t);this.boundBufferBases[n]=t,i.bindBufferBase(i.UNIFORM_BUFFER,n,o.buffer)}},e.prototype.bindBufferRange=function(t,n,r){var i=this,a=i.gl,o=i.CONTEXT_UID;r=r||0;var s=t._glBuffers[o]||this.createGLBuffer(t);a.bindBufferRange(a.UNIFORM_BUFFER,n||0,s.buffer,r*256,256)},e.prototype.update=function(t){var n=this,r=n.gl,i=n.CONTEXT_UID,a=t._glBuffers[i];if(t._updateID!==a.updateID)if(a.updateID=t._updateID,r.bindBuffer(t.type,a.buffer),a.byteLength>=t.data.byteLength)r.bufferSubData(t.type,0,t.data);else{var o=t.static?r.STATIC_DRAW:r.DYNAMIC_DRAW;a.byteLength=t.data.byteLength,r.bufferData(t.type,t.data,o)}},e.prototype.dispose=function(t,n){if(!!this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var r=t._glBuffers[this.CONTEXT_UID],i=this.gl;t.disposeRunner.remove(this),r&&(n||i.deleteBuffer(r.buffer),delete t._glBuffers[this.CONTEXT_UID])}},e.prototype.disposeAll=function(t){for(var n=Object.keys(this.managedBuffers),r=0;r<n.length;r++)this.dispose(this.managedBuffers[n[r]],t)},e.prototype.createGLBuffer=function(t){var n=this,r=n.CONTEXT_UID,i=n.gl;return t._glBuffers[r]=new PS(i.createBuffer()),this.managedBuffers[t.id]=t,t.disposeRunner.add(this),t._glBuffers[r]},e}(),MS=function(e){Nt(t,e);function t(n){var r=e.call(this,ja.WEBGL,n)||this;return n=r.options,r.gl=null,r.CONTEXT_UID=0,r.runners={destroy:new pn("destroy"),contextChange:new pn("contextChange"),reset:new pn("reset"),update:new pn("update"),postrender:new pn("postrender"),prerender:new pn("prerender"),resize:new pn("resize")},r.runners.contextChange.add(r),r.globalUniforms=new Po({projectionMatrix:new jn},!0),r.addSystem(iS,"mask").addSystem(OI,"context").addSystem(SS,"state").addSystem(bS,"shader").addSystem(AS,"texture").addSystem(FS,"buffer").addSystem(LI,"geometry").addSystem(MI,"framebuffer").addSystem(oS,"scissor").addSystem(aS,"stencil").addSystem(sS,"projection").addSystem(NS,"textureGC").addSystem(RI,"filter").addSystem(lS,"renderTexture").addSystem(AI,"batch"),r.initPlugins(t.__plugins),r.multisample=void 0,n.context?r.context.initFromContext(n.context):r.context.initFromOptions({alpha:!!r.useContextAlpha,antialias:n.antialias,premultipliedAlpha:r.useContextAlpha&&r.useContextAlpha!=="notMultiplied",stencil:!0,preserveDrawingBuffer:n.preserveDrawingBuffer,powerPreference:r.options.powerPreference}),r.renderingToScreen=!0,JE(r.context.webGLVersion===2?"WebGL 2":"WebGL 1"),r.resize(r.options.width,r.options.height),r}return t.create=function(n){if(QE())return new t(n);throw new Error('WebGL unsupported in this browser, use "pixi.js-legacy" for fallback canvas2d support.')},t.prototype.contextChange=function(){var n=this.gl,r;if(this.context.webGLVersion===1){var i=n.getParameter(n.FRAMEBUFFER_BINDING);n.bindFramebuffer(n.FRAMEBUFFER,null),r=n.getParameter(n.SAMPLES),n.bindFramebuffer(n.FRAMEBUFFER,i)}else{var i=n.getParameter(n.DRAW_FRAMEBUFFER_BINDING);n.bindFramebuffer(n.DRAW_FRAMEBUFFER,null),r=n.getParameter(n.SAMPLES),n.bindFramebuffer(n.DRAW_FRAMEBUFFER,i)}r>=en.HIGH?this.multisample=en.HIGH:r>=en.MEDIUM?this.multisample=en.MEDIUM:r>=en.LOW?this.multisample=en.LOW:this.multisample=en.NONE},t.prototype.addSystem=function(n,r){var i=new n(this);if(this[r])throw new Error('Whoops! The name "'+r+'" is already in use');this[r]=i;for(var a in this.runners)this.runners[a].add(i);return this},t.prototype.render=function(n,r){var i,a,o,s;if(r&&(r instanceof Jf?(Za("6.0.0","Renderer#render arguments changed, use options instead."),i=r,a=arguments[2],o=arguments[3],s=arguments[4]):(i=r.renderTexture,a=r.clear,o=r.transform,s=r.skipUpdateTransform)),this.renderingToScreen=!i,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=o,!this.context.isLost){if(i||(this._lastObjectRendered=n),!s){var l=n.enableTempParent();n.updateTransform(),n.disableTempParent(l)}this.renderTexture.bind(i),this.batch.currentRenderer.start(),(a!==void 0?a:this.clearBeforeRender)&&this.renderTexture.clear(),n.render(this),this.batch.currentRenderer.flush(),i&&i.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},t.prototype.generateTexture=function(n,r,i,a){r===void 0&&(r={});var o=e.prototype.generateTexture.call(this,n,r,i,a);return this.framebuffer.blit(),o},t.prototype.resize=function(n,r){e.prototype.resize.call(this,n,r),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(n){this.runners.destroy.emit();for(var r in this.runners)this.runners[r].destroy();e.prototype.destroy.call(this,n),this.gl=null},Object.defineProperty(t.prototype,"extract",{get:function(){return Za("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),t.registerPlugin=function(n,r){t.__plugins=t.__plugins||{},t.__plugins[n]=r},t}(OS);function LS(e){return MS.create(e)}var US=function(){function e(){this.texArray=null,this.blend=0,this.type=Ha.TRIANGLES,this.start=0,this.size=0,this.data=null}return e}(),BS=function(){function e(){this.elements=[],this.ids=[],this.count=0}return e.prototype.clear=function(){for(var t=0;t<this.count;t++)this.elements[t]=null;this.count=0},e}(),kS=function(){function e(t){typeof t=="number"?this.rawBinaryData=new ArrayBuffer(t):t instanceof Uint8Array?this.rawBinaryData=t.buffer:this.rawBinaryData=t,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}return Object.defineProperty(e.prototype,"int8View",{get:function(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uint8View",{get:function(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"int16View",{get:function(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uint16View",{get:function(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"int32View",{get:function(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View},enumerable:!1,configurable:!0}),e.prototype.view=function(t){return this[t+"View"]},e.prototype.destroy=function(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null},e.sizeOf=function(t){switch(t){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(t+" isn't a valid view type")}},e}(),DS=function(e){Nt(t,e);function t(n){var r=e.call(this,n)||this;return r.shaderGenerator=null,r.geometryClass=null,r.vertexSize=null,r.state=ed.for2d(),r.size=He.SPRITE_BATCH_SIZE*4,r._vertexCount=0,r._indexCount=0,r._bufferedElements=[],r._bufferedTextures=[],r._bufferSize=0,r._shader=null,r._packedGeometries=[],r._packedGeometryPoolSize=2,r._flushId=0,r._aBuffers={},r._iBuffers={},r.MAX_TEXTURES=1,r.renderer.on("prerender",r.onPrerender,r),n.runners.contextChange.add(r),r._dcIndex=0,r._aIndex=0,r._iIndex=0,r._attributeBuffer=null,r._indexBuffer=null,r._tempBoundTextures=[],r}return t.prototype.contextChange=function(){var n=this.renderer.gl;He.PREFER_ENV===Xr.WEBGL_LEGACY?this.MAX_TEXTURES=1:(this.MAX_TEXTURES=Math.min(n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),He.SPRITE_MAX_TEXTURES),this.MAX_TEXTURES=XI(this.MAX_TEXTURES,n)),this._shader=this.shaderGenerator.generateShader(this.MAX_TEXTURES);for(var r=0;r<this._packedGeometryPoolSize;r++)this._packedGeometries[r]=new this.geometryClass;this.initFlushBuffers()},t.prototype.initFlushBuffers=function(){for(var n=t._drawCallPool,r=t._textureArrayPool,i=this.size/4,a=Math.floor(i/this.MAX_TEXTURES)+1;n.length<i;)n.push(new US);for(;r.length<a;)r.push(new BS);for(var o=0;o<this.MAX_TEXTURES;o++)this._tempBoundTextures[o]=null},t.prototype.onPrerender=function(){this._flushId=0},t.prototype.render=function(n){!n._texture.valid||(this._vertexCount+n.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=n.vertexData.length/2,this._indexCount+=n.indices.length,this._bufferedTextures[this._bufferSize]=n._texture.baseTexture,this._bufferedElements[this._bufferSize++]=n)},t.prototype.buildTexturesAndDrawCalls=function(){var n=this,r=n._bufferedTextures,i=n.MAX_TEXTURES,a=t._textureArrayPool,o=this.renderer.batch,s=this._tempBoundTextures,l=this.renderer.textureGC.count,u=++rn._globalBatch,c=0,f=a[0],d=0;o.copyBoundTextures(s,i);for(var h=0;h<this._bufferSize;++h){var p=r[h];r[h]=null,p._batchEnabled!==u&&(f.count>=i&&(o.boundArray(f,s,u,i),this.buildDrawCalls(f,d,h),d=h,f=a[++c],++u),p._batchEnabled=u,p.touched=l,f.elements[f.count++]=p)}f.count>0&&(o.boundArray(f,s,u,i),this.buildDrawCalls(f,d,this._bufferSize),++c,++u);for(var h=0;h<s.length;h++)s[h]=null;rn._globalBatch=u},t.prototype.buildDrawCalls=function(n,r,i){var a=this,o=a._bufferedElements,s=a._attributeBuffer,l=a._indexBuffer,u=a.vertexSize,c=t._drawCallPool,f=this._dcIndex,d=this._aIndex,h=this._iIndex,p=c[f];p.start=this._iIndex,p.texArray=n;for(var v=r;v<i;++v){var g=o[v],y=g._texture.baseTexture,m=nI[y.alphaMode?1:0][g.blendMode];o[v]=null,r<v&&p.blend!==m&&(p.size=h-p.start,r=v,p=c[++f],p.texArray=n,p.start=h),this.packInterleavedGeometry(g,s,l,d,h),d+=g.vertexData.length/2*u,h+=g.indices.length,p.blend=m}r<i&&(p.size=h-p.start,++f),this._dcIndex=f,this._aIndex=d,this._iIndex=h},t.prototype.bindAndClearTexArray=function(n){for(var r=this.renderer.texture,i=0;i<n.count;i++)r.bind(n.elements[i],n.ids[i]),n.elements[i]=null;n.count=0},t.prototype.updateGeometry=function(){var n=this,r=n._packedGeometries,i=n._attributeBuffer,a=n._indexBuffer;He.CAN_UPLOAD_SAME_BUFFER?(r[this._flushId]._buffer.update(i.rawBinaryData),r[this._flushId]._indexBuffer.update(a),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,r[this._flushId]=new this.geometryClass),r[this._flushId]._buffer.update(i.rawBinaryData),r[this._flushId]._indexBuffer.update(a),this.renderer.geometry.bind(r[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++)},t.prototype.drawBatches=function(){for(var n=this._dcIndex,r=this.renderer,i=r.gl,a=r.state,o=t._drawCallPool,s=null,l=0;l<n;l++){var u=o[l],c=u.texArray,f=u.type,d=u.size,h=u.start,p=u.blend;s!==c&&(s=c,this.bindAndClearTexArray(c)),this.state.blendMode=p,a.set(this.state),i.drawElements(f,d,i.UNSIGNED_SHORT,h*2)}},t.prototype.flush=function(){this._vertexCount!==0&&(this._attributeBuffer=this.getAttributeBuffer(this._vertexCount),this._indexBuffer=this.getIndexBuffer(this._indexCount),this._aIndex=0,this._iIndex=0,this._dcIndex=0,this.buildTexturesAndDrawCalls(),this.updateGeometry(),this.drawBatches(),this._bufferSize=0,this._vertexCount=0,this._indexCount=0)},t.prototype.start=function(){this.renderer.state.set(this.state),this.renderer.texture.ensureSamplerType(this.MAX_TEXTURES),this.renderer.shader.bind(this._shader),He.CAN_UPLOAD_SAME_BUFFER&&this.renderer.geometry.bind(this._packedGeometries[this._flushId])},t.prototype.stop=function(){this.flush()},t.prototype.destroy=function(){for(var n=0;n<this._packedGeometryPoolSize;n++)this._packedGeometries[n]&&this._packedGeometries[n].destroy();this.renderer.off("prerender",this.onPrerender,this),this._aBuffers=null,this._iBuffers=null,this._packedGeometries=null,this._attributeBuffer=null,this._indexBuffer=null,this._shader&&(this._shader.destroy(),this._shader=null),e.prototype.destroy.call(this)},t.prototype.getAttributeBuffer=function(n){var r=Rl(Math.ceil(n/8)),i=dp(r),a=r*8;this._aBuffers.length<=i&&(this._iBuffers.length=i+1);var o=this._aBuffers[a];return o||(this._aBuffers[a]=o=new kS(a*this.vertexSize*4)),o},t.prototype.getIndexBuffer=function(n){var r=Rl(Math.ceil(n/12)),i=dp(r),a=r*12;this._iBuffers.length<=i&&(this._iBuffers.length=i+1);var o=this._iBuffers[i];return o||(this._iBuffers[i]=o=new Uint16Array(a)),o},t.prototype.packInterleavedGeometry=function(n,r,i,a,o){for(var s=r.uint32View,l=r.float32View,u=a/this.vertexSize,c=n.uvs,f=n.indices,d=n.vertexData,h=n._texture.baseTexture._batchLocation,p=Math.min(n.worldAlpha,1),v=p<1&&n._texture.baseTexture.alphaMode?rI(n._tintRGB,p):n._tintRGB+(p*255<<24),g=0;g<d.length;g+=2)l[a++]=d[g],l[a++]=d[g+1],l[a++]=c[g],l[a++]=c[g+1],s[a++]=v,l[a++]=h;for(var g=0;g<f.length;g++)i[o++]=u+f[g]},t._drawCallPool=[],t._textureArrayPool=[],t}(cy),GS=function(){function e(t,n){if(this.vertexSrc=t,this.fragTemplate=n,this.programCache={},this.defaultGroupCache={},n.indexOf("%count%")<0)throw new Error('Fragment template must contain "%count%".');if(n.indexOf("%forloop%")<0)throw new Error('Fragment template must contain "%forloop%".')}return e.prototype.generateShader=function(t){if(!this.programCache[t]){for(var n=new Int32Array(t),r=0;r<t;r++)n[r]=r;this.defaultGroupCache[t]=Po.from({uSamplers:n},!0);var i=this.fragTemplate;i=i.replace(/%count%/gi,""+t),i=i.replace(/%forloop%/gi,this.generateSampleSrc(t)),this.programCache[t]=new qf(this.vertexSrc,i)}var a={tint:new Float32Array([1,1,1,1]),translationMatrix:new jn,default:this.defaultGroupCache[t]};return new vy(this.programCache[t],a)},e.prototype.generateSampleSrc=function(t){var n="";n+=`
+`,n+=`
+`;for(var r=0;r<t;r++)r>0&&(n+=`
+else `),r<t-1&&(n+="if(vTextureId < "+r+".5)"),n+=`
+{`,n+=`
+	color = texture2D(uSamplers[`+r+"], vTextureCoord);",n+=`
+}`;return n+=`
+`,n+=`
+`,n},e}(),VS=function(e){Nt(t,e);function t(n){n===void 0&&(n=!1);var r=e.call(this)||this;return r._buffer=new Mn(null,n,!1),r._indexBuffer=new Mn(null,n,!0),r.addAttribute("aVertexPosition",r._buffer,2,!1,vt.FLOAT).addAttribute("aTextureCoord",r._buffer,2,!1,vt.FLOAT).addAttribute("aColor",r._buffer,4,!0,vt.UNSIGNED_BYTE).addAttribute("aTextureId",r._buffer,1,!0,vt.FLOAT).addIndex(r._indexBuffer),r}return t}(Qf),Ip=`precision highp float;
+attribute vec2 aVertexPosition;
+attribute vec2 aTextureCoord;
+attribute vec4 aColor;
+attribute float aTextureId;
+
+uniform mat3 projectionMatrix;
+uniform mat3 translationMatrix;
+uniform vec4 tint;
+
+varying vec2 vTextureCoord;
+varying vec4 vColor;
+varying float vTextureId;
+
+void main(void){
+    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
+
+    vTextureCoord = aTextureCoord;
+    vTextureId = aTextureId;
+    vColor = aColor * tint;
+}
+`,Sp=`varying vec2 vTextureCoord;
+varying vec4 vColor;
+varying float vTextureId;
+uniform sampler2D uSamplers[%count%];
+
+void main(void){
+    vec4 color;
+    %forloop%
+    gl_FragColor = color * vColor;
+}
+`,$S=function(){function e(){}return e.create=function(t){var n=Object.assign({vertex:Ip,fragment:Sp,geometryClass:VS,vertexSize:6},t),r=n.vertex,i=n.fragment,a=n.vertexSize,o=n.geometryClass;return function(s){Nt(l,s);function l(u){var c=s.call(this,u)||this;return c.shaderGenerator=new GS(r,i),c.geometryClass=o,c.vertexSize=a,c}return l}(DS)},Object.defineProperty(e,"defaultVertexSrc",{get:function(){return Ip},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultFragmentTemplate",{get:function(){return Sp},enumerable:!1,configurable:!0}),e}();$S.create();/*!
+ * @pixi/display - v6.4.2
+ * Compiled Thu, 02 Jun 2022 15:39:26 UTC
+ *
+ * @pixi/display is licensed under the MIT License.
+ * http://www.opensource.org/licenses/mit-license
+ */He.SORTABLE_CHILDREN=!1;var Qc=function(){function e(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}return e.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},e.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},e.prototype.getRectangle=function(t){return this.minX>this.maxX||this.minY>this.maxY?Zt.EMPTY:(t=t||new Zt(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)},e.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)},e.prototype.addPointMatrix=function(t,n){var r=t.a,i=t.b,a=t.c,o=t.d,s=t.tx,l=t.ty,u=r*n.x+a*n.y+s,c=i*n.x+o*n.y+l;this.minX=Math.min(this.minX,u),this.maxX=Math.max(this.maxX,u),this.minY=Math.min(this.minY,c),this.maxY=Math.max(this.maxY,c)},e.prototype.addQuad=function(t){var n=this.minX,r=this.minY,i=this.maxX,a=this.maxY,o=t[0],s=t[1];n=o<n?o:n,r=s<r?s:r,i=o>i?o:i,a=s>a?s:a,o=t[2],s=t[3],n=o<n?o:n,r=s<r?s:r,i=o>i?o:i,a=s>a?s:a,o=t[4],s=t[5],n=o<n?o:n,r=s<r?s:r,i=o>i?o:i,a=s>a?s:a,o=t[6],s=t[7],n=o<n?o:n,r=s<r?s:r,i=o>i?o:i,a=s>a?s:a,this.minX=n,this.minY=r,this.maxX=i,this.maxY=a},e.prototype.addFrame=function(t,n,r,i,a){this.addFrameMatrix(t.worldTransform,n,r,i,a)},e.prototype.addFrameMatrix=function(t,n,r,i,a){var o=t.a,s=t.b,l=t.c,u=t.d,c=t.tx,f=t.ty,d=this.minX,h=this.minY,p=this.maxX,v=this.maxY,g=o*n+l*r+c,y=s*n+u*r+f;d=g<d?g:d,h=y<h?y:h,p=g>p?g:p,v=y>v?y:v,g=o*i+l*r+c,y=s*i+u*r+f,d=g<d?g:d,h=y<h?y:h,p=g>p?g:p,v=y>v?y:v,g=o*n+l*a+c,y=s*n+u*a+f,d=g<d?g:d,h=y<h?y:h,p=g>p?g:p,v=y>v?y:v,g=o*i+l*a+c,y=s*i+u*a+f,d=g<d?g:d,h=y<h?y:h,p=g>p?g:p,v=y>v?y:v,this.minX=d,this.minY=h,this.maxX=p,this.maxY=v},e.prototype.addVertexData=function(t,n,r){for(var i=this.minX,a=this.minY,o=this.maxX,s=this.maxY,l=n;l<r;l+=2){var u=t[l],c=t[l+1];i=u<i?u:i,a=c<a?c:a,o=u>o?u:o,s=c>s?c:s}this.minX=i,this.minY=a,this.maxX=o,this.maxY=s},e.prototype.addVertices=function(t,n,r,i){this.addVerticesMatrix(t.worldTransform,n,r,i)},e.prototype.addVerticesMatrix=function(t,n,r,i,a,o){a===void 0&&(a=0),o===void 0&&(o=a);for(var s=t.a,l=t.b,u=t.c,c=t.d,f=t.tx,d=t.ty,h=this.minX,p=this.minY,v=this.maxX,g=this.maxY,y=r;y<i;y+=2){var m=n[y],b=n[y+1],T=s*m+u*b+f,S=c*b+l*m+d;h=Math.min(h,T-a),v=Math.max(v,T+a),p=Math.min(p,S-o),g=Math.max(g,S+o)}this.minX=h,this.minY=p,this.maxX=v,this.maxY=g},e.prototype.addBounds=function(t){var n=this.minX,r=this.minY,i=this.maxX,a=this.maxY;this.minX=t.minX<n?t.minX:n,this.minY=t.minY<r?t.minY:r,this.maxX=t.maxX>i?t.maxX:i,this.maxY=t.maxY>a?t.maxY:a},e.prototype.addBoundsMask=function(t,n){var r=t.minX>n.minX?t.minX:n.minX,i=t.minY>n.minY?t.minY:n.minY,a=t.maxX<n.maxX?t.maxX:n.maxX,o=t.maxY<n.maxY?t.maxY:n.maxY;if(r<=a&&i<=o){var s=this.minX,l=this.minY,u=this.maxX,c=this.maxY;this.minX=r<s?r:s,this.minY=i<l?i:l,this.maxX=a>u?a:u,this.maxY=o>c?o:c}},e.prototype.addBoundsMatrix=function(t,n){this.addFrameMatrix(n,t.minX,t.minY,t.maxX,t.maxY)},e.prototype.addBoundsArea=function(t,n){var r=t.minX>n.x?t.minX:n.x,i=t.minY>n.y?t.minY:n.y,a=t.maxX<n.x+n.width?t.maxX:n.x+n.width,o=t.maxY<n.y+n.height?t.maxY:n.y+n.height;if(r<=a&&i<=o){var s=this.minX,l=this.minY,u=this.maxX,c=this.maxY;this.minX=r<s?r:s,this.minY=i<l?i:l,this.maxX=a>u?a:u,this.maxY=o>c?o:c}},e.prototype.pad=function(t,n){t===void 0&&(t=0),n===void 0&&(n=t),this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=n,this.maxY+=n)},e.prototype.addFramePad=function(t,n,r,i,a,o){t-=a,n-=o,r+=a,i+=o,this.minX=this.minX<t?this.minX:t,this.maxX=this.maxX>r?this.maxX:r,this.minY=this.minY<n?this.minY:n,this.maxY=this.maxY>i?this.maxY:i},e}();/*! *****************************************************************************
+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 qc=function(e,t){return qc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},qc(e,t)};function td(e,t){qc(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ol=function(e){td(t,e);function t(){var n=e.call(this)||this;return n.tempDisplayObjectParent=null,n.transform=new cI,n.alpha=1,n.visible=!0,n.renderable=!0,n.cullable=!1,n.cullArea=null,n.parent=null,n.worldAlpha=1,n._lastSortedIndex=0,n._zIndex=0,n.filterArea=null,n.filters=null,n._enabledFilters=null,n._bounds=new Qc,n._localBounds=null,n._boundsID=0,n._boundsRect=null,n._localBoundsRect=null,n._mask=null,n._maskRefCount=0,n._destroyed=!1,n.isSprite=!1,n.isMask=!1,n}return t.mixin=function(n){for(var r=Object.keys(n),i=0;i<r.length;++i){var a=r[i];Object.defineProperty(t.prototype,a,Object.getOwnPropertyDescriptor(n,a))}},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!1,configurable:!0}),t.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},t.prototype.updateTransform=function(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha},t.prototype.getBounds=function(n,r){return n||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),r||(this._boundsRect||(this._boundsRect=new Zt),r=this._boundsRect),this._bounds.getRectangle(r)},t.prototype.getLocalBounds=function(n){n||(this._localBoundsRect||(this._localBoundsRect=new Zt),n=this._localBoundsRect),this._localBounds||(this._localBounds=new Qc);var r=this.transform,i=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;var a=this._bounds,o=this._boundsID;this._bounds=this._localBounds;var s=this.getBounds(!1,n);return this.parent=i,this.transform=r,this._bounds=a,this._bounds.updateID+=this._boundsID-o,s},t.prototype.toGlobal=function(n,r,i){return i===void 0&&(i=!1),i||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(n,r)},t.prototype.toLocal=function(n,r,i,a){return r&&(n=r.toGlobal(n,i,a)),a||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(n,i)},t.prototype.setParent=function(n){if(!n||!n.addChild)throw new Error("setParent: Argument must be a Container");return n.addChild(this),n},t.prototype.setTransform=function(n,r,i,a,o,s,l,u,c){return n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=1),a===void 0&&(a=1),o===void 0&&(o=0),s===void 0&&(s=0),l===void 0&&(l=0),u===void 0&&(u=0),c===void 0&&(c=0),this.position.x=n,this.position.y=r,this.scale.x=i||1,this.scale.y=a||1,this.rotation=o,this.skew.x=s,this.skew.y=l,this.pivot.x=u,this.pivot.y=c,this},t.prototype.destroy=function(n){this.parent&&this.parent.removeChild(this),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.interactive=!1,this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()},Object.defineProperty(t.prototype,"_tempDisplayObjectParent",{get:function(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new jS),this.tempDisplayObjectParent},enumerable:!1,configurable:!0}),t.prototype.enableTempParent=function(){var n=this.parent;return this.parent=this._tempDisplayObjectParent,n},t.prototype.disableTempParent=function(n){this.parent=n},Object.defineProperty(t.prototype,"x",{get:function(){return this.position.x},set:function(n){this.transform.position.x=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.position.y},set:function(n){this.transform.position.y=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"worldTransform",{get:function(){return this.transform.worldTransform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localTransform",{get:function(){return this.transform.localTransform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.transform.position},set:function(n){this.transform.position.copyFrom(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this.transform.scale},set:function(n){this.transform.scale.copyFrom(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pivot",{get:function(){return this.transform.pivot},set:function(n){this.transform.pivot.copyFrom(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"skew",{get:function(){return this.transform.skew},set:function(n){this.transform.skew.copyFrom(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotation",{get:function(){return this.transform.rotation},set:function(n){this.transform.rotation=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){return this.transform.rotation*sI},set:function(n){this.transform.rotation=n*lI},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"zIndex",{get:function(){return this._zIndex},set:function(n){this._zIndex=n,this.parent&&(this.parent.sortDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"worldVisible",{get:function(){var n=this;do{if(!n.visible)return!1;n=n.parent}while(n);return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mask",{get:function(){return this._mask},set:function(n){if(this._mask!==n){if(this._mask){var r=this._mask.maskObject||this._mask;r._maskRefCount--,r._maskRefCount===0&&(r.renderable=!0,r.isMask=!1)}if(this._mask=n,this._mask){var r=this._mask.maskObject||this._mask;r._maskRefCount===0&&(r.renderable=!1,r.isMask=!0),r._maskRefCount++}}},enumerable:!1,configurable:!0}),t}(nu),jS=function(e){td(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.sortDirty=null,n}return t}(Ol);Ol.prototype.displayObjectUpdateTransform=Ol.prototype.updateTransform;/*!
+ * @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 Np;(function(e){e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2"})(Np||(Np={}));var Rp;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS"})(Rp||(Rp={}));var Ap;(function(e){e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL"})(Ap||(Ap={}));var Op;(function(e){e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR"})(Op||(Op={}));var Pp;(function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(Pp||(Pp={}));var Fp;(function(e){e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(Fp||(Fp={}));var Mp;(function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(Mp||(Mp={}));var Lp;(function(e){e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT"})(Lp||(Lp={}));var Up;(function(e){e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT"})(Up||(Up={}));var Bp;(function(e){e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR"})(Bp||(Bp={}));var kp;(function(e){e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(kp||(kp={}));var Dp;(function(e){e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL"})(Dp||(Dp={}));var Gp;(function(e){e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(Gp||(Gp={}));var Vp;(function(e){e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT"})(Vp||(Vp={}));var $p;(function(e){e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL"})($p||($p={}));var jp;(function(e){e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp"})(jp||(jp={}));var ef;(function(e){e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE"})(ef||(ef={}));var Hp;(function(e){e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH"})(Hp||(Hp={}));var zp;(function(e){e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(zp||(zp={}));function HS(e,t){return e.zIndex===t.zIndex?e._lastSortedIndex-t._lastSortedIndex:e.zIndex-t.zIndex}var Pl=function(e){td(t,e);function t(){var n=e.call(this)||this;return n.children=[],n.sortableChildren=He.SORTABLE_CHILDREN,n.sortDirty=!1,n}return t.prototype.onChildrenChange=function(n){},t.prototype.addChild=function(){for(var n=arguments,r=[],i=0;i<arguments.length;i++)r[i]=n[i];if(r.length>1)for(var a=0;a<r.length;a++)this.addChild(r[a]);else{var o=r[0];o.parent&&o.parent.removeChild(o),o.parent=this,this.sortDirty=!0,o.transform._parentID=-1,this.children.push(o),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",o,this,this.children.length-1),o.emit("added",this)}return r[0]},t.prototype.addChildAt=function(n,r){if(r<0||r>this.children.length)throw new Error(n+"addChildAt: The index "+r+" supplied is out of bounds "+this.children.length);return n.parent&&n.parent.removeChild(n),n.parent=this,this.sortDirty=!0,n.transform._parentID=-1,this.children.splice(r,0,n),this._boundsID++,this.onChildrenChange(r),n.emit("added",this),this.emit("childAdded",n,this,r),n},t.prototype.swapChildren=function(n,r){if(n!==r){var i=this.getChildIndex(n),a=this.getChildIndex(r);this.children[i]=r,this.children[a]=n,this.onChildrenChange(i<a?i:a)}},t.prototype.getChildIndex=function(n){var r=this.children.indexOf(n);if(r===-1)throw new Error("The supplied DisplayObject must be a child of the caller");return r},t.prototype.setChildIndex=function(n,r){if(r<0||r>=this.children.length)throw new Error("The index "+r+" supplied is out of bounds "+this.children.length);var i=this.getChildIndex(n);al(this.children,i,1),this.children.splice(r,0,n),this.onChildrenChange(r)},t.prototype.getChildAt=function(n){if(n<0||n>=this.children.length)throw new Error("getChildAt: Index ("+n+") does not exist.");return this.children[n]},t.prototype.removeChild=function(){for(var n=arguments,r=[],i=0;i<arguments.length;i++)r[i]=n[i];if(r.length>1)for(var a=0;a<r.length;a++)this.removeChild(r[a]);else{var o=r[0],s=this.children.indexOf(o);if(s===-1)return null;o.parent=null,o.transform._parentID=-1,al(this.children,s,1),this._boundsID++,this.onChildrenChange(s),o.emit("removed",this),this.emit("childRemoved",o,this,s)}return r[0]},t.prototype.removeChildAt=function(n){var r=this.getChildAt(n);return r.parent=null,r.transform._parentID=-1,al(this.children,n,1),this._boundsID++,this.onChildrenChange(n),r.emit("removed",this),this.emit("childRemoved",r,this,n),r},t.prototype.removeChildren=function(n,r){n===void 0&&(n=0),r===void 0&&(r=this.children.length);var i=n,a=r,o=a-i,s;if(o>0&&o<=a){s=this.children.splice(i,o);for(var l=0;l<s.length;++l)s[l].parent=null,s[l].transform&&(s[l].transform._parentID=-1);this._boundsID++,this.onChildrenChange(n);for(var l=0;l<s.length;++l)s[l].emit("removed",this),this.emit("childRemoved",s[l],this,l);return s}else if(o===0&&this.children.length===0)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},t.prototype.sortChildren=function(){for(var n=!1,r=0,i=this.children.length;r<i;++r){var a=this.children[r];a._lastSortedIndex=r,!n&&a.zIndex!==0&&(n=!0)}n&&this.children.length>1&&this.children.sort(HS),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 n=0,r=this.children.length;n<r;++n){var i=this.children[n];i.visible&&i.updateTransform()}},t.prototype.calculateBounds=function(){this._bounds.clear(),this._calculateBounds();for(var n=0;n<this.children.length;n++){var r=this.children[n];if(!(!r.visible||!r.renderable))if(r.calculateBounds(),r._mask){var i=r._mask.maskObject||r._mask;i.calculateBounds(),this._bounds.addBoundsMask(r._bounds,i._bounds)}else r.filterArea?this._bounds.addBoundsArea(r._bounds,r.filterArea):this._bounds.addBounds(r._bounds)}this._bounds.updateID=this._boundsID},t.prototype.getLocalBounds=function(n,r){r===void 0&&(r=!1);var i=e.prototype.getLocalBounds.call(this,n);if(!r)for(var a=0,o=this.children.length;a<o;++a){var s=this.children[a];s.visible&&s.updateTransform()}return i},t.prototype._calculateBounds=function(){},t.prototype._renderWithCulling=function(n){var r=n.renderTexture.sourceFrame;if(r.width>0&&r.height>0){var i,a;if(this.cullArea?(i=this.cullArea,a=this.worldTransform):this._render!==t.prototype._render&&(i=this.getBounds(!0)),i&&r.intersects(i,a))this._render(n);else if(this.cullArea)return;for(var o=0,s=this.children.length;o<s;++o){var l=this.children[o],u=l.cullable;l.cullable=u||!this.cullArea,l.render(n),l.cullable=u}}},t.prototype.render=function(n){if(!(!this.visible||this.worldAlpha<=0||!this.renderable))if(this._mask||this.filters&&this.filters.length)this.renderAdvanced(n);else if(this.cullable)this._renderWithCulling(n);else{this._render(n);for(var r=0,i=this.children.length;r<i;++r)this.children[r].render(n)}},t.prototype.renderAdvanced=function(n){var r=this.filters,i=this._mask;if(r){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(var a=0;a<r.length;a++)r[a].enabled&&this._enabledFilters.push(r[a])}var o=r&&this._enabledFilters&&this._enabledFilters.length||i&&(!i.isMaskData||i.enabled&&(i.autoDetect||i.type!==ef.NONE));if(o&&n.batch.flush(),r&&this._enabledFilters&&this._enabledFilters.length&&n.filter.push(this,this._enabledFilters),i&&n.mask.push(this,this._mask),this.cullable)this._renderWithCulling(n);else{this._render(n);for(var a=0,s=this.children.length;a<s;++a)this.children[a].render(n)}o&&n.batch.flush(),i&&n.mask.pop(this),r&&this._enabledFilters&&this._enabledFilters.length&&n.filter.pop()},t.prototype._render=function(n){},t.prototype.destroy=function(n){e.prototype.destroy.call(this),this.sortDirty=!1;var r=typeof n=="boolean"?n:n&&n.children,i=this.removeChildren(0,this.children.length);if(r)for(var a=0;a<i.length;++a)i[a].destroy(n)},Object.defineProperty(t.prototype,"width",{get:function(){return this.scale.x*this.getLocalBounds().width},set:function(n){var r=this.getLocalBounds().width;r!==0?this.scale.x=n/r:this.scale.x=1,this._width=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.scale.y*this.getLocalBounds().height},set:function(n){var r=this.getLocalBounds().height;r!==0?this.scale.y=n/r:this.scale.y=1,this._height=n},enumerable:!1,configurable:!0}),t}(Ol);Pl.prototype.containerUpdateTransform=Pl.prototype.updateTransform;/*!
+ * @pixi/sprite - v6.4.2
+ * Compiled Thu, 02 Jun 2022 15:39:26 UTC
+ *
+ * @pixi/sprite is licensed under the MIT License.
+ * http://www.opensource.org/licenses/mit-license
+ *//*! *****************************************************************************
+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 tf=function(e,t){return tf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},tf(e,t)};function zS(e,t){tf(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ra=new Yt,XS=new Uint16Array([0,1,2,0,2,3]),WS=function(e){zS(t,e);function t(n){var r=e.call(this)||this;return r._anchor=new ha(r._onAnchorUpdate,r,n?n.defaultAnchor.x:0,n?n.defaultAnchor.y:0),r._texture=null,r._width=0,r._height=0,r._tint=null,r._tintRGB=null,r.tint=16777215,r.blendMode=Me.NORMAL,r._cachedTint=16777215,r.uvs=null,r.texture=n||Gr.EMPTY,r.vertexData=new Float32Array(8),r.vertexTrimmedData=null,r._transformID=-1,r._textureID=-1,r._transformTrimmedID=-1,r._textureTrimmedID=-1,r.indices=XS,r.pluginName="batch",r.isSprite=!0,r._roundPixels=He.ROUND_PIXELS,r}return t.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=Ms(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=Ms(this.scale.y)*this._height/this._texture.orig.height)},t.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},t.prototype.calculateVertices=function(){var n=this._texture;if(!(this._transformID===this.transform._worldID&&this._textureID===n._updateID)){this._textureID!==n._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=n._updateID;var r=this.transform.worldTransform,i=r.a,a=r.b,o=r.c,s=r.d,l=r.tx,u=r.ty,c=this.vertexData,f=n.trim,d=n.orig,h=this._anchor,p=0,v=0,g=0,y=0;if(f?(v=f.x-h._x*d.width,p=v+f.width,y=f.y-h._y*d.height,g=y+f.height):(v=-h._x*d.width,p=v+d.width,y=-h._y*d.height,g=y+d.height),c[0]=i*v+o*y+l,c[1]=s*y+a*v+u,c[2]=i*p+o*y+l,c[3]=s*y+a*p+u,c[4]=i*p+o*g+l,c[5]=s*g+a*p+u,c[6]=i*v+o*g+l,c[7]=s*g+a*v+u,this._roundPixels)for(var m=He.RESOLUTION,b=0;b<c.length;++b)c[b]=Math.round((c[b]*m|0)/m)}},t.prototype.calculateTrimmedVertices=function(){if(!this.vertexTrimmedData)this.vertexTrimmedData=new Float32Array(8);else if(this._transformTrimmedID===this.transform._worldID&&this._textureTrimmedID===this._texture._updateID)return;this._transformTrimmedID=this.transform._worldID,this._textureTrimmedID=this._texture._updateID;var n=this._texture,r=this.vertexTrimmedData,i=n.orig,a=this._anchor,o=this.transform.worldTransform,s=o.a,l=o.b,u=o.c,c=o.d,f=o.tx,d=o.ty,h=-a._x*i.width,p=h+i.width,v=-a._y*i.height,g=v+i.height;r[0]=s*h+u*v+f,r[1]=c*v+l*h+d,r[2]=s*p+u*v+f,r[3]=c*v+l*p+d,r[4]=s*p+u*g+f,r[5]=c*g+l*p+d,r[6]=s*h+u*g+f,r[7]=c*g+l*h+d},t.prototype._render=function(n){this.calculateVertices(),n.batch.setObjectRenderer(n.plugins[this.pluginName]),n.plugins[this.pluginName].render(this)},t.prototype._calculateBounds=function(){var n=this._texture.trim,r=this._texture.orig;!n||n.width===r.width&&n.height===r.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))},t.prototype.getLocalBounds=function(n){return this.children.length===0?(this._localBounds||(this._localBounds=new Qc),this._localBounds.minX=this._texture.orig.width*-this._anchor._x,this._localBounds.minY=this._texture.orig.height*-this._anchor._y,this._localBounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._localBounds.maxY=this._texture.orig.height*(1-this._anchor._y),n||(this._localBoundsRect||(this._localBoundsRect=new Zt),n=this._localBoundsRect),this._localBounds.getRectangle(n)):e.prototype.getLocalBounds.call(this,n)},t.prototype.containsPoint=function(n){this.worldTransform.applyInverse(n,ra);var r=this._texture.orig.width,i=this._texture.orig.height,a=-r*this.anchor.x,o=0;return ra.x>=a&&ra.x<a+r&&(o=-i*this.anchor.y,ra.y>=o&&ra.y<o+i)},t.prototype.destroy=function(n){e.prototype.destroy.call(this,n),this._texture.off("update",this._onTextureUpdate,this),this._anchor=null;var r=typeof n=="boolean"?n:n&&n.texture;if(r){var i=typeof n=="boolean"?n:n&&n.baseTexture;this._texture.destroy(!!i)}this._texture=null},t.from=function(n,r){var i=n instanceof Gr?n:Gr.from(n,r);return new t(i)},Object.defineProperty(t.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(n){this._roundPixels!==n&&(this._transformID=-1),this._roundPixels=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return Math.abs(this.scale.x)*this._texture.orig.width},set:function(n){var r=Ms(this.scale.x)||1;this.scale.x=r*n/this._texture.orig.width,this._width=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return Math.abs(this.scale.y)*this._texture.orig.height},set:function(n){var r=Ms(this.scale.y)||1;this.scale.y=r*n/this._texture.orig.height,this._height=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"anchor",{get:function(){return this._anchor},set:function(n){this._anchor.copyFrom(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(n){this._tint=n,this._tintRGB=(n>>16)+(n&65280)+((n&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(n){this._texture!==n&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=n||Gr.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,n&&(n.baseTexture.valid?this._onTextureUpdate():n.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),t}(Pl);/*!
+ * @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 Tr{constructor(t,n,r){this.value=t,this.time=n,this.next=null,this.isStepped=!1,r?this.ease=typeof r=="function"?r:xy(r):this.ease=null}static createList(t){if("list"in t){const r=t.list;let i;const{value:a,time:o}=r[0],s=i=new Tr(typeof a=="string"?Hs(a):a,o,t.ease);if(r.length>2||r.length===2&&r[1].value!==a)for(let l=1;l<r.length;++l){const{value:u,time:c}=r[l];i.next=new Tr(typeof u=="string"?Hs(u):u,c),i=i.next}return s.isStepped=!!t.isStepped,s}const n=new Tr(typeof t.start=="string"?Hs(t.start):t.start,0);return t.end!==t.start&&(n.next=new Tr(typeof t.end=="string"?Hs(t.end):t.end,1)),n}}let Qa=Gr.from;const br=Math.PI/180;function jr(e,t){if(!e)return;const n=Math.sin(e),r=Math.cos(e),i=t.x*r-t.y*n,a=t.x*n+t.y*r;t.x=i,t.y=a}function au(e,t,n){return e<<16|t<<8|n}function yy(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function KS(e){const t=1/yy(e);e.x*=t,e.y*=t}function by(e,t){e.x*=t,e.y*=t}function Hs(e,t){t||(t={}),e.charAt(0)==="#"?e=e.substr(1):e.indexOf("0x")===0&&(e=e.substr(2));let n;return e.length===8&&(n=e.substr(0,2),e=e.substr(2)),t.r=parseInt(e.substr(0,2),16),t.g=parseInt(e.substr(2,2),16),t.b=parseInt(e.substr(4,2),16),n&&(t.a=parseInt(n,16)),t}function xy(e){const t=e.length,n=1/t;return function(r){const i=t*r|0,a=(r-i*n)*t,o=e[i]||e[t-1];return o.s+a*(2*(1-a)*(o.cp-o.s)+a*(o.e-o.s))}}function YS(e){return e?(e=e.toUpperCase().replace(/ /g,"_"),Me[e]||Me.NORMAL):Me.NORMAL}class Ku extends WS{constructor(t){super(),this.prevChild=this.nextChild=null,this.emitter=t,this.config={},this.anchor.x=this.anchor.y=.5,this.maxLife=0,this.age=0,this.agePercent=0,this.oneOverLife=0,this.next=null,this.prev=null,this.init=this.init,this.kill=this.kill}init(t){this.maxLife=t,this.age=this.agePercent=0,this.rotation=0,this.position.x=this.position.y=0,this.scale.x=this.scale.y=1,this.tint=16777215,this.alpha=1,this.oneOverLife=1/this.maxLife,this.visible=!0}kill(){this.emitter.recycle(this)}destroy(){this.parent&&this.parent.removeChild(this),this.emitter=this.next=this.prev=null,super.destroy()}}var St;(function(e){e[e.Spawn=0]="Spawn",e[e.Normal=2]="Normal",e[e.Late=5]="Late"})(St||(St={}));const Yu=Ui.shared,Fi=Symbol("Position particle per emitter position");class Tt{constructor(t,n){this.initBehaviors=[],this.updateBehaviors=[],this.recycleBehaviors=[],this.minLifetime=0,this.maxLifetime=0,this.customEase=null,this._frequency=1,this.spawnChance=1,this.maxParticles=1e3,this.emitterLifetime=-1,this.spawnPos=new Yt,this.particlesPerWave=1,this.rotation=0,this.ownerPos=new Yt,this._prevEmitterPos=new Yt,this._prevPosIsValid=!1,this._posChanged=!1,this._parent=null,this.addAtBack=!1,this.particleCount=0,this._emit=!1,this._spawnTimer=0,this._emitterLife=-1,this._activeParticlesFirst=null,this._activeParticlesLast=null,this._poolFirst=null,this._origConfig=null,this._autoUpdate=!1,this._destroyWhenComplete=!1,this._completeCallback=null,this.parent=t,n&&this.init(n),this.recycle=this.recycle,this.update=this.update,this.rotate=this.rotate,this.updateSpawnPos=this.updateSpawnPos,this.updateOwnerPos=this.updateOwnerPos}static registerBehavior(t){Tt.knownBehaviors[t.type]=t}get frequency(){return this._frequency}set frequency(t){typeof t=="number"&&t>0?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:xy(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 n=t.behaviors.map(r=>{const i=Tt.knownBehaviors[r.type];return i?new i(r.config):(console.error(`Unknown behavior: ${r.type}`),null)}).filter(r=>!!r);n.push(Fi),n.sort((r,i)=>r===Fi?i.order===St.Spawn?1:-1:i===Fi?r.order===St.Spawn?-1:1:r.order-i.order),this.initBehaviors=n.slice(),this.updateBehaviors=n.filter(r=>r!==Fi&&r.updateParticle),this.recycleBehaviors=n.filter(r=>r!==Fi&&r.recycleParticle)}getBehavior(t){return Tt.knownBehaviors[t]&&this.initBehaviors.find(n=>n instanceof Tt.knownBehaviors[t])||null}fillPool(t){for(;t>0;--t){const n=new Ku(this);n.next=this._poolFirst,this._poolFirst=n}}recycle(t,n=!1){for(let r=0;r<this.recycleBehaviors.length;++r)this.recycleBehaviors[r].recycleParticle(t,!n);t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next),t===this._activeParticlesLast&&(this._activeParticlesLast=t.prev),t===this._activeParticlesFirst&&(this._activeParticlesFirst=t.next),t.prev=null,t.next=this._poolFirst,this._poolFirst=t,t.parent&&t.parent.removeChild(t),--this.particleCount}rotate(t){if(this.rotation===t)return;const n=t-this.rotation;this.rotation=t,jr(n,this.spawnPos),this._posChanged=!0}updateSpawnPos(t,n){this._posChanged=!0,this.spawnPos.x=t,this.spawnPos.y=n}updateOwnerPos(t,n){this._posChanged=!0,this.ownerPos.x=t,this.ownerPos.y=n}resetPositionTracking(){this._prevPosIsValid=!1}get emit(){return this._emit}set emit(t){this._emit=!!t,this._emitterLife=this.emitterLifetime}get autoUpdate(){return this._autoUpdate}set autoUpdate(t){this._autoUpdate&&!t?Yu.remove(this.update,this):!this._autoUpdate&&t&&Yu.add(this.update,this),this._autoUpdate=!!t}playOnceAndDestroy(t){this.autoUpdate=!0,this.emit=!0,this._destroyWhenComplete=!0,this._completeCallback=t}playOnce(t){this.emit=!0,this._completeCallback=t}update(t){if(this._autoUpdate&&(t=Yu.elapsedMS*.001),!this._parent)return;for(let o=this._activeParticlesFirst,s;o;o=s)if(s=o.next,o.age+=t,o.age>o.maxLife||o.age<0)this.recycle(o);else{let l=o.age*o.oneOverLife;this.customEase&&(this.customEase.length===4?l=this.customEase(l,0,1,1):l=this.customEase(l)),o.agePercent=l;for(let u=0;u<this.updateBehaviors.length;++u)if(this.updateBehaviors[u].updateParticle(o,t)){this.recycle(o);break}}let n,r;this._prevPosIsValid&&(n=this._prevEmitterPos.x,r=this._prevEmitterPos.y);const i=this.ownerPos.x+this.spawnPos.x,a=this.ownerPos.y+this.spawnPos.y;if(this._emit)for(this._spawnTimer-=t<0?0:t;this._spawnTimer<=0;){if(this._emitterLife>=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 o,s;if(this._prevPosIsValid&&this._posChanged){const c=1+this._spawnTimer/t;o=(i-n)*c+n,s=(a-r)*c+r}else o=i,s=a;let l=null,u=null;for(let c=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount),f=0;f<c;++f){if(this.spawnChance<1&&Math.random()>=this.spawnChance)continue;let d;if(this.minLifetime===this.maxLifetime?d=this.minLifetime:d=Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,-this._spawnTimer>=d)continue;let h;this._poolFirst?(h=this._poolFirst,this._poolFirst=this._poolFirst.next,h.next=null):h=new Ku(this),h.init(d),this.addAtBack?this._parent.addChildAt(h,0):this._parent.addChild(h),l?(u.next=h,h.prev=u,u=h):u=l=h,++this.particleCount}if(l){this._activeParticlesLast?(this._activeParticlesLast.next=l,l.prev=this._activeParticlesLast,this._activeParticlesLast=u):(this._activeParticlesFirst=l,this._activeParticlesLast=u);for(let c=0;c<this.initBehaviors.length;++c){const f=this.initBehaviors[c];if(f===Fi)for(let d=l,h;d;d=h){h=d.next,this.rotation!==0&&(jr(this.rotation,d.position),d.rotation+=this.rotation),d.position.x+=o,d.position.y+=s,d.age+=-this._spawnTimer;let p=d.age*d.oneOverLife;this.customEase&&(this.customEase.length===4?p=this.customEase(p,0,1,1):p=this.customEase(p)),d.agePercent=p}else f.initParticles(l)}for(let c=l,f;c;c=f){f=c.next;for(let d=0;d<this.updateBehaviors.length;++d)if(this.updateBehaviors[d].updateParticle(c,-this._spawnTimer)){this.recycle(c);break}}}this._spawnTimer+=this._frequency}if(this._posChanged&&(this._prevEmitterPos.x=i,this._prevEmitterPos.y=a,this._prevPosIsValid=!0,this._posChanged=!1),!this._emit&&!this._activeParticlesFirst){if(this._completeCallback){const o=this._completeCallback;this._completeCallback=null,o()}this._destroyWhenComplete&&this.destroy()}}emitNow(){const t=this.ownerPos.x+this.spawnPos.x,n=this.ownerPos.y+this.spawnPos.y;let r=null,i=null;for(let a=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount),o=0;o<a;++o){if(this.spawnChance<1&&Math.random()>=this.spawnChance)continue;let s;this._poolFirst?(s=this._poolFirst,this._poolFirst=this._poolFirst.next,s.next=null):s=new Ku(this);let l;this.minLifetime===this.maxLifetime?l=this.minLifetime:l=Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,s.init(l),this.addAtBack?this._parent.addChildAt(s,0):this._parent.addChild(s),r?(i.next=s,s.prev=i,i=s):i=r=s,++this.particleCount}if(r){this._activeParticlesLast?(this._activeParticlesLast.next=r,r.prev=this._activeParticlesLast,this._activeParticlesLast=i):(this._activeParticlesFirst=r,this._activeParticlesLast=i);for(let a=0;a<this.initBehaviors.length;++a){const o=this.initBehaviors[a];if(o===Fi)for(let s=r,l;s;s=l)l=s.next,this.rotation!==0&&(jr(this.rotation,s.position),s.rotation+=this.rotation),s.position.x+=t,s.position.y+=n;else o.initParticles(r)}}}cleanup(){let t,n;for(t=this._activeParticlesFirst;t;t=n)n=t.next,this.recycle(t,!0);this._activeParticlesFirst=this._activeParticlesLast=null,this.particleCount=0}get destroyed(){return!(this._parent&&this.initBehaviors.length)}destroy(){this.autoUpdate=!1,this.cleanup();let t;for(let n=this._poolFirst;n;n=t)t=n.next,n.destroy();this._poolFirst=this._parent=this.spawnPos=this.ownerPos=this.customEase=this._completeCallback=null,this.initBehaviors.length=this.updateBehaviors.length=this.recycleBehaviors.length=0}}Tt.knownBehaviors={};class nd{constructor(t){this.x=t.x,this.y=t.y,this.w=t.w,this.h=t.h}getRandPos(t){t.x=Math.random()*this.w+this.x,t.y=Math.random()*this.h+this.y}}nd.type="rect";nd.editorConfig=null;class su{constructor(t){this.x=t.x||0,this.y=t.y||0,this.radius=t.radius,this.innerRadius=t.innerRadius||0,this.rotation=!!t.affectRotation}getRandPos(t){this.innerRadius!==this.radius?t.x=Math.random()*(this.radius-this.innerRadius)+this.innerRadius:t.x=this.radius,t.y=0;const n=Math.random()*Math.PI*2;this.rotation&&(t.rotation+=n),jr(n,t.position),t.position.x+=this.x,t.position.y+=this.y}}su.type="torus";su.editorConfig=null;class rd{constructor(t){this.segments=[],this.countingLengths=[],this.totalLength=0,this.init(t)}init(t){if(!t||!t.length)this.segments.push({p1:{x:0,y:0},p2:{x:0,y:0},l:0});else if(Array.isArray(t[0]))for(let n=0;n<t.length;++n){const r=t[n];let i=r[0];for(let a=1;a<r.length;++a){const o=r[a];this.segments.push({p1:i,p2:o,l:0}),i=o}}else{let n=t[0];for(let r=1;r<t.length;++r){const i=t[r];this.segments.push({p1:n,p2:i,l:0}),n=i}}for(let n=0;n<this.segments.length;++n){const{p1:r,p2:i}=this.segments[n],a=Math.sqrt((i.x-r.x)*(i.x-r.x)+(i.y-r.y)*(i.y-r.y));this.segments[n].l=a,this.totalLength+=a,this.countingLengths.push(this.totalLength)}}getRandPos(t){const n=Math.random()*this.totalLength;let r,i;if(this.segments.length===1)r=this.segments[0],i=n;else for(let s=0;s<this.countingLengths.length;++s)if(n<this.countingLengths[s]){r=this.segments[s],i=s===0?n:n-this.countingLengths[s-1];break}i/=r.l||1;const{p1:a,p2:o}=r;t.x=a.x+i*(o.x-a.x),t.y=a.y+i*(o.y-a.y)}}rd.type="polygonalChain";rd.editorConfig=null;class id{constructor(t){var n;this.order=St.Late,this.minStart=t.minStart,this.maxStart=t.maxStart,this.accel=t.accel,this.rotate=!!t.rotate,this.maxSpeed=(n=t.maxSpeed)!==null&&n!==void 0?n:0}initParticles(t){let n=t;for(;n;){const r=Math.random()*(this.maxStart-this.minStart)+this.minStart;n.config.velocity?n.config.velocity.set(r,0):n.config.velocity=new Yt(r,0),jr(n.rotation,n.config.velocity),n=n.next}}updateParticle(t,n){const r=t.config.velocity,i=r.x,a=r.y;if(r.x+=this.accel.x*n,r.y+=this.accel.y*n,this.maxSpeed){const o=yy(r);o>this.maxSpeed&&by(r,this.maxSpeed/o)}t.x+=(i+r.x)/2*n,t.y+=(a+r.y)/2*n,this.rotate&&(t.rotation=Math.atan2(r.y,r.x))}}id.type="moveAcceleration";id.editorConfig=null;function ZS(e){return this.ease&&(e=this.ease(e)),(this.first.next.value-this.first.value)*e+this.first.value}function JS(e){this.ease&&(e=this.ease(e));const t=this.first.value,n=this.first.next.value,r=(n.r-t.r)*e+t.r,i=(n.g-t.g)*e+t.g,a=(n.b-t.b)*e+t.b;return au(r,i,a)}function QS(e){this.ease&&(e=this.ease(e));let t=this.first,n=t.next;for(;e>n.time;)t=n,n=n.next;return e=(e-t.time)/(n.time-t.time),(n.value-t.value)*e+t.value}function qS(e){this.ease&&(e=this.ease(e));let t=this.first,n=t.next;for(;e>n.time;)t=n,n=n.next;e=(e-t.time)/(n.time-t.time);const r=t.value,i=n.value,a=(i.r-r.r)*e+r.r,o=(i.g-r.g)*e+r.g,s=(i.b-r.b)*e+r.b;return au(a,o,s)}function eN(e){this.ease&&(e=this.ease(e));let t=this.first;for(;t.next&&e>t.next.time;)t=t.next;return t.value}function tN(e){this.ease&&(e=this.ease(e));let t=this.first;for(;t.next&&e>t.next.time;)t=t.next;const n=t.value;return au(n.r,n.g,n.b)}class fs{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?JS:ZS:t.isStepped?this.interpolate=this.isColor?tN:eN:this.interpolate=this.isColor?qS:QS,this.ease=this.first.ease}}class od{constructor(t){this.order=St.Normal,this.list=new fs(!1),this.list.reset(Tr.createList(t.alpha))}initParticles(t){let n=t;for(;n;)n.alpha=this.list.first.value,n=n.next}updateParticle(t){t.alpha=this.list.interpolate(t.agePercent)}}od.type="alpha";od.editorConfig=null;class ad{constructor(t){this.order=St.Normal,this.value=t.alpha}initParticles(t){let n=t;for(;n;)n.alpha=this.value,n=n.next}}ad.type="alphaStatic";ad.editorConfig=null;function _y(e){const t=[];for(let n=0;n<e.length;++n){let r=e[n];if(typeof r=="string")t.push(Qa(r));else if(r instanceof Gr)t.push(r);else{let i=r.count||1;for(typeof r.texture=="string"?r=Qa(r.texture):r=r.texture;i>0;--i)t.push(r)}}return t}class sd{constructor(t){this.order=St.Normal,this.anims=[];for(let n=0;n<t.anims.length;++n){const r=t.anims[n],i=_y(r.textures),a=r.framerate<0?-1:r.framerate>0?r.framerate:60,o={textures:i,duration:a>0?i.length/a:0,framerate:a,loop:a>0?!!r.loop:!1};this.anims.push(o)}}initParticles(t){let n=t;for(;n;){const r=Math.floor(Math.random()*this.anims.length),i=n.config.anim=this.anims[r];n.texture=i.textures[0],n.config.animElapsed=0,i.framerate===-1?(n.config.animDuration=n.maxLife,n.config.animFramerate=i.textures.length/n.maxLife):(n.config.animDuration=i.duration,n.config.animFramerate=i.framerate),n=n.next}}updateParticle(t,n){const r=t.config,i=r.anim;r.animElapsed+=n,r.animElapsed>=r.animDuration&&(r.anim.loop?r.animElapsed=r.animElapsed%r.animDuration:r.animElapsed=r.animDuration-1e-6);const a=r.animElapsed*r.animFramerate+1e-7|0;t.texture=i.textures[a]||i.textures[i.textures.length-1]||Gr.EMPTY}}sd.type="animatedRandom";sd.editorConfig=null;class ld{constructor(t){this.order=St.Normal;const n=t.anim,r=_y(n.textures),i=n.framerate<0?-1:n.framerate>0?n.framerate:60;this.anim={textures:r,duration:i>0?r.length/i:0,framerate:i,loop:i>0?!!n.loop:!1}}initParticles(t){let n=t;const r=this.anim;for(;n;)n.texture=r.textures[0],n.config.animElapsed=0,r.framerate===-1?(n.config.animDuration=n.maxLife,n.config.animFramerate=r.textures.length/n.maxLife):(n.config.animDuration=r.duration,n.config.animFramerate=r.framerate),n=n.next}updateParticle(t,n){const r=this.anim,i=t.config;i.animElapsed+=n,i.animElapsed>=i.animDuration&&(r.loop?i.animElapsed=i.animElapsed%i.animDuration:i.animElapsed=i.animDuration-1e-6);const a=i.animElapsed*i.animFramerate+1e-7|0;t.texture=r.textures[a]||r.textures[r.textures.length-1]||Gr.EMPTY}}ld.type="animatedSingle";ld.editorConfig=null;class ud{constructor(t){this.order=St.Normal,this.value=t.blendMode}initParticles(t){let n=t;for(;n;)n.blendMode=YS(this.value),n=n.next}}ud.type="blendMode";ud.editorConfig=null;class cd{constructor(t){this.order=St.Spawn,this.spacing=t.spacing*br,this.start=t.start*br,this.distance=t.distance}initParticles(t){let n=0,r=t;for(;r;){let i;this.spacing?i=this.start+this.spacing*n:i=Math.random()*Math.PI*2,r.rotation=i,this.distance&&(r.position.x=this.distance,jr(i,r.position)),r=r.next,++n}}}cd.type="spawnBurst";cd.editorConfig=null;class fd{constructor(t){this.order=St.Normal,this.list=new fs(!0),this.list.reset(Tr.createList(t.color))}initParticles(t){let n=t;const r=this.list.first.value,i=au(r.r,r.g,r.b);for(;n;)n.tint=i,n=n.next}updateParticle(t){t.tint=this.list.interpolate(t.agePercent)}}fd.type="color";fd.editorConfig=null;class dd{constructor(t){this.order=St.Normal;let n=t.color;n.charAt(0)==="#"?n=n.substr(1):n.indexOf("0x")===0&&(n=n.substr(2)),this.value=parseInt(n,16)}initParticles(t){let n=t;for(;n;)n.tint=this.value,n=n.next}}dd.type="colorStatic";dd.editorConfig=null;class hd{constructor(t){this.order=St.Normal,this.index=0,this.textures=t.textures.map(n=>typeof n=="string"?Qa(n):n)}initParticles(t){let n=t;for(;n;)n.texture=this.textures[this.index],++this.index>=this.textures.length&&(this.index=0),n=n.next}}hd.type="textureOrdered";hd.editorConfig=null;const vo=new Yt,Ty=["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"],nN=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(Ty).join("|"),"g");function rN(e){const t=e.match(nN);for(let n=t.length-1;n>=0;--n)Ty.indexOf(t[n])>=0&&(t[n]=`Math.${t[n]}`);return e=t.join(""),new Function("x",`return ${e};`)}class pd{constructor(t){var n;if(this.order=St.Late,t.path)if(typeof t.path=="function")this.path=t.path;else try{this.path=rN(t.path)}catch{this.path=null}else this.path=r=>r;this.list=new fs(!1),this.list.reset(Tr.createList(t.speed)),this.minMult=(n=t.minMult)!==null&&n!==void 0?n:1}initParticles(t){let n=t;for(;n;){n.config.initRotation=n.rotation,n.config.initPosition?n.config.initPosition.copyFrom(n.position):n.config.initPosition=new Yt(n.x,n.y),n.config.movement=0;const r=Math.random()*(1-this.minMult)+this.minMult;n.config.speedMult=r,n=n.next}}updateParticle(t,n){const r=this.list.interpolate(t.agePercent)*t.config.speedMult;t.config.movement+=r*n,vo.x=t.config.movement,vo.y=this.path(vo.x),jr(t.config.initRotation,vo),t.position.x=t.config.initPosition.x+vo.x,t.position.y=t.config.initPosition.y+vo.y}}pd.type="movePath";pd.editorConfig=null;class vd{constructor(){this.order=St.Spawn}initParticles(t){}}vd.type="spawnPoint";vd.editorConfig=null;class md{constructor(t){this.order=St.Normal,this.textures=t.textures.map(n=>typeof n=="string"?Qa(n):n)}initParticles(t){let n=t;for(;n;){const r=Math.floor(Math.random()*this.textures.length);n.texture=this.textures[r],n=n.next}}}md.type="textureRandom";md.editorConfig=null;class gd{constructor(t){this.order=St.Normal,this.minStart=t.minStart*br,this.maxStart=t.maxStart*br,this.minSpeed=t.minSpeed*br,this.maxSpeed=t.maxSpeed*br,this.accel=t.accel*br}initParticles(t){let n=t;for(;n;)this.minStart===this.maxStart?n.rotation+=this.maxStart:n.rotation+=Math.random()*(this.maxStart-this.minStart)+this.minStart,n.config.rotSpeed=Math.random()*(this.maxSpeed-this.minSpeed)+this.minSpeed,n=n.next}updateParticle(t,n){if(this.accel){const r=t.config.rotSpeed;t.config.rotSpeed+=this.accel*n,t.rotation+=(t.config.rotSpeed+r)/2*n}else t.rotation+=t.config.rotSpeed*n}}gd.type="rotation";gd.editorConfig=null;class yd{constructor(t){this.order=St.Normal,this.min=t.min*br,this.max=t.max*br}initParticles(t){let n=t;for(;n;)this.min===this.max?n.rotation+=this.max:n.rotation+=Math.random()*(this.max-this.min)+this.min,n=n.next}}yd.type="rotationStatic";yd.editorConfig=null;class bd{constructor(t){this.order=St.Late+1,this.rotation=(t.rotation||0)*br}initParticles(t){let n=t;for(;n;)n.rotation=this.rotation,n=n.next}}bd.type="noRotation";bd.editorConfig=null;class xd{constructor(t){var n;this.order=St.Normal,this.list=new fs(!1),this.list.reset(Tr.createList(t.scale)),this.minMult=(n=t.minMult)!==null&&n!==void 0?n:1}initParticles(t){let n=t;for(;n;){const r=Math.random()*(1-this.minMult)+this.minMult;n.config.scaleMult=r,n.scale.x=n.scale.y=this.list.first.value*r,n=n.next}}updateParticle(t){t.scale.x=t.scale.y=this.list.interpolate(t.agePercent)*t.config.scaleMult}}xd.type="scale";xd.editorConfig=null;class _d{constructor(t){this.order=St.Normal,this.min=t.min,this.max=t.max}initParticles(t){let n=t;for(;n;){const r=Math.random()*(this.max-this.min)+this.min;n.scale.x=n.scale.y=r,n=n.next}}}_d.type="scaleStatic";_d.editorConfig=null;class dr{constructor(t){this.order=St.Spawn;const n=dr.shapes[t.type];if(!n)throw new Error(`No shape found with type '${t.type}'`);this.shape=new n(t.data)}static registerShape(t,n){dr.shapes[n||t.type]=t}initParticles(t){let n=t;for(;n;)this.shape.getRandPos(n),n=n.next}}dr.type="spawnShape";dr.editorConfig=null;dr.shapes={};dr.registerShape(rd);dr.registerShape(nd);dr.registerShape(su);dr.registerShape(su,"circle");class Td{constructor(t){this.order=St.Normal,this.texture=typeof t.texture=="string"?Qa(t.texture):t.texture}initParticles(t){let n=t;for(;n;)n.texture=this.texture,n=n.next}}Td.type="textureSingle";Td.editorConfig=null;class wd{constructor(t){var n;this.order=St.Late,this.list=new fs(!1),this.list.reset(Tr.createList(t.speed)),this.minMult=(n=t.minMult)!==null&&n!==void 0?n:1}initParticles(t){let n=t;for(;n;){const r=Math.random()*(1-this.minMult)+this.minMult;n.config.speedMult=r,n.config.velocity?n.config.velocity.set(this.list.first.value*r,0):n.config.velocity=new Yt(this.list.first.value*r,0),jr(n.rotation,n.config.velocity),n=n.next}}updateParticle(t,n){const r=this.list.interpolate(t.agePercent)*t.config.speedMult,i=t.config.velocity;KS(i),by(i,r),t.x+=i.x*n,t.y+=i.y*n}}wd.type="moveSpeed";wd.editorConfig=null;class Cd{constructor(t){this.order=St.Late,this.min=t.min,this.max=t.max}initParticles(t){let n=t;for(;n;){const r=Math.random()*(this.max-this.min)+this.min;n.config.velocity?n.config.velocity.set(r,0):n.config.velocity=new Yt(r,0),jr(n.rotation,n.config.velocity),n=n.next}}updateParticle(t,n){const r=t.config.velocity;t.x+=r.x*n,t.y+=r.y*n}}Cd.type="moveSpeedStatic";Cd.editorConfig=null;function iN(e,t){var n,r,i,a,o,s,l,u,c,f,d,h,p,v,g,y,m,b,T,S,w;if("behaviors"in e)return e;const N={lifetime:e.lifetime,ease:e.ease,particlesPerWave:e.particlesPerWave,frequency:e.frequency,spawnChance:e.spawnChance,emitterLifetime:e.emitterLifetime,maxParticles:e.maxParticles,addAtBack:e.addAtBack,pos:e.pos,emit:e.emit,autoUpdate:e.autoUpdate,behaviors:[]};if(e.alpha)if("start"in e.alpha)if(e.alpha.start===e.alpha.end)e.alpha.start!==1&&N.behaviors.push({type:"alphaStatic",config:{alpha:e.alpha.start}});else{const I={list:[{time:0,value:e.alpha.start},{time:1,value:e.alpha.end}]};N.behaviors.push({type:"alpha",config:{alpha:I}})}else e.alpha.list.length===1?e.alpha.list[0].value!==1&&N.behaviors.push({type:"alphaStatic",config:{alpha:e.alpha.list[0].value}}):N.behaviors.push({type:"alpha",config:{alpha:e.alpha}});if(e.acceleration&&(e.acceleration.x||e.acceleration.y)){let I,R;"start"in e.speed?(I=e.speed.start*((n=e.speed.minimumSpeedMultiplier)!==null&&n!==void 0?n:1),R=e.speed.start):(I=e.speed.list[0].value*((r=e.minimumSpeedMultiplier)!==null&&r!==void 0?r:1),R=e.speed.list[0].value),N.behaviors.push({type:"moveAcceleration",config:{accel:e.acceleration,minStart:I,maxStart:R,rotate:!e.noRotation,maxSpeed:e.maxSpeed}})}else if(!((i=e.extraData)===null||i===void 0)&&i.path){let I,R;"start"in e.speed?(R=(a=e.speed.minimumSpeedMultiplier)!==null&&a!==void 0?a:1,e.speed.start===e.speed.end?I={list:[{time:0,value:e.speed.start}]}:I={list:[{time:0,value:e.speed.start},{time:1,value:e.speed.end}]}):(I=e.speed,R=(o=e.minimumSpeedMultiplier)!==null&&o!==void 0?o:1),N.behaviors.push({type:"movePath",config:{path:e.extraData.path,speed:I,minMult:R}})}else if(e.speed)if("start"in e.speed)if(e.speed.start===e.speed.end)N.behaviors.push({type:"moveSpeedStatic",config:{min:e.speed.start*((s=e.speed.minimumSpeedMultiplier)!==null&&s!==void 0?s:1),max:e.speed.start}});else{const I={list:[{time:0,value:e.speed.start},{time:1,value:e.speed.end}]};N.behaviors.push({type:"moveSpeed",config:{speed:I,minMult:e.speed.minimumSpeedMultiplier}})}else e.speed.list.length===1?N.behaviors.push({type:"moveSpeedStatic",config:{min:e.speed.list[0].value*((l=e.minimumSpeedMultiplier)!==null&&l!==void 0?l:1),max:e.speed.list[0].value}}):N.behaviors.push({type:"moveSpeed",config:{speed:e.speed,minMult:(u=e.minimumSpeedMultiplier)!==null&&u!==void 0?u:1}});if(e.scale)if("start"in e.scale){const I=(c=e.scale.minimumScaleMultiplier)!==null&&c!==void 0?c:1;if(e.scale.start===e.scale.end)N.behaviors.push({type:"scaleStatic",config:{min:e.scale.start*I,max:e.scale.start}});else{const R={list:[{time:0,value:e.scale.start},{time:1,value:e.scale.end}]};N.behaviors.push({type:"scale",config:{scale:R,minMult:I}})}}else if(e.scale.list.length===1){const I=(f=e.minimumScaleMultiplier)!==null&&f!==void 0?f:1,R=e.scale.list[0].value;N.behaviors.push({type:"scaleStatic",config:{min:R*I,max:R}})}else N.behaviors.push({type:"scale",config:{scale:e.scale,minMult:(d=e.minimumScaleMultiplier)!==null&&d!==void 0?d:1}});if(e.color)if("start"in e.color)if(e.color.start===e.color.end)e.color.start!=="ffffff"&&N.behaviors.push({type:"colorStatic",config:{color:e.color.start}});else{const I={list:[{time:0,value:e.color.start},{time:1,value:e.color.end}]};N.behaviors.push({type:"color",config:{color:I}})}else e.color.list.length===1?e.color.list[0].value!=="ffffff"&&N.behaviors.push({type:"colorStatic",config:{color:e.color.list[0].value}}):N.behaviors.push({type:"color",config:{color:e.color}});if(e.rotationAcceleration||((h=e.rotationSpeed)===null||h===void 0?void 0:h.min)||((p=e.rotationSpeed)===null||p===void 0?void 0:p.max)?N.behaviors.push({type:"rotation",config:{accel:e.rotationAcceleration||0,minSpeed:((v=e.rotationSpeed)===null||v===void 0?void 0:v.min)||0,maxSpeed:((g=e.rotationSpeed)===null||g===void 0?void 0:g.max)||0,minStart:((y=e.startRotation)===null||y===void 0?void 0:y.min)||0,maxStart:((m=e.startRotation)===null||m===void 0?void 0:m.max)||0}}):(((b=e.startRotation)===null||b===void 0?void 0:b.min)||((T=e.startRotation)===null||T===void 0?void 0:T.max))&&N.behaviors.push({type:"rotationStatic",config:{min:((S=e.startRotation)===null||S===void 0?void 0:S.min)||0,max:((w=e.startRotation)===null||w===void 0?void 0:w.max)||0}}),e.noRotation&&N.behaviors.push({type:"noRotation",config:{}}),e.blendMode&&e.blendMode!=="normal"&&N.behaviors.push({type:"blendMode",config:{blendMode:e.blendMode}}),Array.isArray(t)&&typeof t[0]!="string"&&"framerate"in t[0]){for(let I=0;I<t.length;++I)t[I].framerate==="matchLife"&&(t[I].framerate=-1);N.behaviors.push({type:"animatedRandom",config:{anims:t}})}else typeof t!="string"&&"framerate"in t?(t.framerate==="matchLife"&&(t.framerate=-1),N.behaviors.push({type:"animatedSingle",config:{anim:t}})):e.orderedArt&&Array.isArray(t)?N.behaviors.push({type:"textureOrdered",config:{textures:t}}):Array.isArray(t)?N.behaviors.push({type:"textureRandom",config:{textures:t}}):N.behaviors.push({type:"textureSingle",config:{texture:t}});if(e.spawnType==="burst")N.behaviors.push({type:"spawnBurst",config:{start:e.angleStart||0,spacing:e.particleSpacing,distance:0}});else if(e.spawnType==="point")N.behaviors.push({type:"spawnPoint",config:{}});else{let I;e.spawnType==="ring"?I={type:"torus",data:{x:e.spawnCircle.x,y:e.spawnCircle.y,radius:e.spawnCircle.r,innerRadius:e.spawnCircle.minR,affectRotation:!0}}:e.spawnType==="circle"?I={type:"torus",data:{x:e.spawnCircle.x,y:e.spawnCircle.y,radius:e.spawnCircle.r,innerRadius:0,affectRotation:!1}}:e.spawnType==="rect"?I={type:"rect",data:e.spawnRect}:e.spawnType==="polygonalChain"&&(I={type:"polygonalChain",data:e.spawnPolygon}),I&&N.behaviors.push({type:"spawnShape",config:I})}return N}Tt.registerBehavior(id);Tt.registerBehavior(od);Tt.registerBehavior(ad);Tt.registerBehavior(sd);Tt.registerBehavior(ld);Tt.registerBehavior(ud);Tt.registerBehavior(cd);Tt.registerBehavior(fd);Tt.registerBehavior(dd);Tt.registerBehavior(hd);Tt.registerBehavior(pd);Tt.registerBehavior(vd);Tt.registerBehavior(md);Tt.registerBehavior(gd);Tt.registerBehavior(yd);Tt.registerBehavior(bd);Tt.registerBehavior(xd);Tt.registerBehavior(_d);Tt.registerBehavior(dr);Tt.registerBehavior(Td);Tt.registerBehavior(wd);Tt.registerBehavior(Cd);/*!
+ * @pixi/app - v6.4.2
+ * Compiled Thu, 02 Jun 2022 15:39:26 UTC
+ *
+ * @pixi/app is licensed under the MIT License.
+ * http://www.opensource.org/licenses/mit-license
+ */var wy=function(){function e(t){var n=this;this.stage=new Pl,t=Object.assign({forceCanvas:!1},t),this.renderer=LS(t),e._plugins.forEach(function(r){r.init.call(n,t)})}return e.registerPlugin=function(t){e._plugins.push(t)},e.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(e.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),e.prototype.destroy=function(t,n){var r=this,i=e._plugins.slice(0);i.reverse(),i.forEach(function(a){a.destroy.call(r)}),this.stage.destroy(n),this.stage=null,this.renderer.destroy(t),this.renderer=null},e._plugins=[],e}(),oN=function(){function e(){}return e.init=function(t){var n=this;Object.defineProperty(this,"resizeTo",{set:function(r){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=r,r&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){!n._resizeTo||(n.cancelResize(),n._resizeId=requestAnimationFrame(function(){return n.resize()}))},this.cancelResize=function(){n._resizeId&&(cancelAnimationFrame(n._resizeId),n._resizeId=null)},this.resize=function(){if(!!n._resizeTo){n.cancelResize();var r,i;if(n._resizeTo===globalThis.window)r=globalThis.innerWidth,i=globalThis.innerHeight;else{var a=n._resizeTo,o=a.clientWidth,s=a.clientHeight;r=o,i=s}n.renderer.resize(r,i)}},this._resizeId=null,this._resizeTo=null,this.resizeTo=t.resizeTo||null},e.destroy=function(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null},e}();wy.registerPlugin(oN);var aN=Ie({props:{style:q(String,Object,Array),classes:q(Object),onInit:{type:Function,required:!0},id:{type:String,required:!0},onContainerResized:Function,onHotReload:Function},setup(e){const t=Te(null),n=new ResizeObserver(a),r=Te(null);vr(()=>{var s,l;const o=r.value;o!=null&&(n.observe(o),t.value=new wy({resizeTo:o,backgroundAlpha:0}),(s=r.value)==null||s.appendChild(t.value.view),(l=e.onInit)==null||l.call(e,t.value)),a(),e.onHotReload&&tn(e.onHotReload)}),as(()=>{var o;(o=t.value)==null||o.destroy()});let i=!0;function a(){i&&(i=!1,tn(()=>{var o;r.value!=null&&e.onContainerResized&&(e.onContainerResized(r.value.getBoundingClientRect()),(o=t.value)==null||o.resize()),i=!0}))}return document.fonts.ready.then(a),{unref:x,resizeListener:r}}});function sN(e,t,n,r,i,a){return M(),W("div",{ref:"resizeListener",class:ze(["resize-listener",e.unref(e.classes)]),style:tt(e.unref(e.style))},null,6)}var lN=Qe(aN,[["render",sN],["__scopeId","data-v-8adf21fa"]]);const uN=Symbol("Particles");function cN(e){return an(()=>{var i,a;const t=(i=e==null?void 0:e())!=null?i:{};t.id=_n("particles-"),t.type=uN,t[Jt]=lN,t.app=An(null),t.addEmitter=o=>{const s=t;return s.app.value?Promise.resolve(new Tt(s.app.value.stage,o)):new Promise(l=>{n.push({resolve:l,config:o})})};let n=[];function r(o){t.app.value=o,n.forEach(({resolve:s,config:l})=>s(new Tt(o.stage,l))),n=[]}return t.onContainerResized=(a=t.onContainerResized)==null?void 0:a.bind(t),t[nn]=function(){const{id:o,style:s,classes:l,onContainerResized:u,onHotReload:c}=this;return{id:o,style:x(s),classes:l,onContainerResized:u,onHotReload:c,onInit:r}},t})}window.upgradeConfig=iN;const fN=Symbol("Reset");function Cy(e){return an(()=>{const t=e();return t.id=_n("reset-"),t.type=fN,t.reset=function(){var r;const n=i=>{i&&typeof i=="object"&&(ka in i?i[ka].value=i[Da]:!(i instanceof O)&&!et(i)&&Object.values(i).forEach(a=>n(a)))};x(t.thingsToReset).forEach(n),sn.emit("reset",t),(r=t.onReset)==null||r.call(t)},H(t,"thingsToReset"),t})}const zs={};sn.on("removeLayer",e=>{var t;(t=zs[e.id])==null||t.call(zs),zs[e.id]=void 0});const dN=Ie({__name:"Sticky",setup(e){const t=Te("0"),n=new ResizeObserver(i),r=Te(null);function i(){let a=r.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 tn(i),document.fonts.ready.then(i),vr(()=>{var o;const a=(o=r.value)==null?void 0:o.parentElement;a&&n.observe(a)}),(a,o)=>(M(),W("div",{class:"sticky",style:tt({top:t.value}),ref_key:"element",ref:r,"data-v-sticky":""},[Mt(a.$slots,"default",{},void 0,!0)],4))}});var Fl=Qe(dN,[["__scopeId","data-v-21495571"]]);const Ey=Ie({__name:"Resource",props:{resource:null,color:null},setup(e){const t=e,n=J(()=>zr(t.resource));return(r,i)=>(M(),W("h2",{style:tt({color:e.color,"text-shadow":"0px 0px 10px "+e.color})},Je(x(n)),5))}});const hN={class:"main-display"},pN={key:0},vN={key:1},mN=le(", "),Iy=Ie({__name:"MainDisplay",props:{resource:null,color:null,classes:null,style:null,effectDisplay:null},setup(e){const n=Et(e),r=Te(null),i=lo(n.effectDisplay),a=J(()=>O.lt(n.resource.value,"1e1000"));return(o,s)=>(M(),we(Fl,null,{default:Pe(()=>{var l,u;return[P("div",{class:"main-display-container",style:tt({height:`${((u=(l=r.value)==null?void 0:l.$el.clientHeight)!=null?u:0)+50}px`})},[P("div",hN,[x(a)?(M(),W("span",pN,"You have ")):ve("",!0),C(Ey,{resource:e.resource,color:e.color||"white"},null,8,["resource","color"]),le(" "+Je(e.resource.displayName),1),x(i)?(M(),W("span",vN,[mN,(M(),we(gt(x(i)),{ref_key:"effectRef",ref:r},null,512))])):ve("",!0)])],4)]}),_:1}))}});function nf(e,t){return H(t,"display"),H(t,"classes"),H(t,"style"),H(t,"direction"),ft(t,"direction",Ct.Up),H(t,"xoffset"),H(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=Kt(!1)),tn(()=>{const n=e[Jt];e[Jt]=At;const r=e[nn].bind(e);e[nn]=function(){const{display:a,classes:o,style:s,direction:l,xoffset:u,yoffset:c,pinned:f}=this;return{element:{[Jt]:n,[nn]:r},display:a,classes:o,style:x(s),direction:l,xoffset:u,yoffset:c,pinned:f}}.bind(t)}),t}function gN(e,t,n){const r=Zn(e),i=Zn(t),a=n==null?void 0:Zn(n);return{apply:o=>O.add(o,x(r)),revert:o=>O.sub(o,x(r)),enabled:a,description:t==null?void 0:it(()=>C("div",{class:"modifier-container"},[C("span",{class:"modifier-amount"},[O.gte(x(r),0)?"+":"",kt(x(r))]),x(i)?C("span",{class:"modifier-description"},[Er(x(i))]):null]))}}function yN(e,t,n){const r=Zn(e),i=Zn(t),a=n==null?void 0:Zn(n);return{apply:o=>O.times(o,x(r)),revert:o=>O.div(o,x(r)),enabled:a,description:t==null?void 0:it(()=>C("div",{class:"modifier-container"},[C("span",{class:"modifier-amount"},[le("x"),kt(x(r))]),x(i)?C("span",{class:"modifier-description"},[Er(x(i))]):null]))}}function bN(e,t,n){const r=Zn(e),i=Zn(t),a=n==null?void 0:Zn(n);return{apply:o=>O.pow(o,x(r)),revert:o=>O.root(o,x(r)),enabled:a,description:t==null?void 0:it(()=>C("div",{class:"modifier-container"},[C("span",{class:"modifier-amount"},[le("^"),kt(x(r))]),x(i)?C("span",{class:"modifier-description"},[Er(x(i))]):null]))}}function xN(...e){return{apply:t=>e.filter(n=>x(n.enabled)!==!1).reduce((n,r)=>r.apply(n),t),revert:e.every(t=>t.revert!=null)?t=>e.filter(n=>x(n.enabled)!==!1).reduceRight((n,r)=>r.revert(n),t):void 0,enabled:J(()=>e.filter(t=>x(t.enabled)!==!1).length>0),description:it(()=>C(Oe,null,[e.filter(t=>x(t.enabled)!==!1).map(t=>x(t.description)).filter(t=>t).map(Er)]))}}function _N(e,t,n,r=1,i="",a="Base"){return C("div",null,[C("h3",null,[e,t?C("span",{class:"subtitle"},[le(" ("),t,le(")")]):null]),C("br",null,null),C("div",{class:"modifier-container"},[C("span",{class:"modifier-amount"},[kt(r),i]),C("span",{class:"modifier-description"},[Er(a)])]),Er(x(n.description)),C("hr",null,null),le("Total: "),kt(n.apply(r)),i])}const TN={class:"field"},wN={key:0,class:"field-title"},CN=["min","max"],EN=Ie({__name:"Slider",props:{title:null,modelValue:null,min:null,max:null},emits:["update:modelValue"],setup(e,{emit:t}){const r=Et(e),i=J({get(){return String(x(r.modelValue)||0)},set(a){t("update:modelValue",Number(a))}});return(a,o)=>(M(),W("div",TN,[e.title?(M(),W("span",wN,Je(e.title),1)):ve("",!0),C(At,{display:`${x(i)}`,class:ze({fullWidth:!e.title}),direction:x(Ct).Down},{default:Pe(()=>[zo(P("input",{type:"range","onUpdate:modelValue":o[0]||(o[0]=s=>et(i)?i.value=s:null),min:e.min,max:e.max},null,8,CN),[[Do,x(i)]])]),_:1},8,["display","class","direction"])]))}});var IN=Qe(EN,[["__scopeId","data-v-1b053b9f"]]);const SN=Ie({__name:"VerticalRule",props:{height:null},setup(e){return(t,n)=>(M(),W("div",{class:"vr",style:tt({height:e.height})},null,4))}});var NN=Qe(SN,[["__scopeId","data-v-5e0a978a"]]);const RN=Ie({props:{progress:{type:q(String,Object,Number),required:!0},width:{type:q(Number),required:!0},height:{type:q(Number),required:!0},direction:{type:q(String),required:!0},display:q(Object,String,Function),visibility:{type:q(Number),required:!0},style:q(Object,String,Array),classes:q(Object),borderStyle:q(Object,String,Array),textStyle:q(Object,String,Array),baseStyle:q(Object,String,Array),fillStyle:q(Object,String,Array),mark:q(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:Xo,Node:Jr},setup(e){const{progress:t,width:n,height:r,direction:i,display:a}=Et(e),o=J(()=>{let u=t.value instanceof O?t.value.toNumber():Number(t.value);return(1-Math.min(Math.max(u,0),1))*100}),s=J(()=>{const u={width:Ot(n)+.5+"px",height:Ot(r)+.5+"px"};switch(x(i)){case Ct.Up:u.clipPath=`inset(${o.value}% 0% 0% 0%)`,u.width=Ot(n)+1+"px";break;case Ct.Down:u.clipPath=`inset(0% 0% ${o.value}% 0%)`,u.width=Ot(n)+1+"px";break;case Ct.Right:u.clipPath=`inset(0% ${o.value}% 0% 0%)`;break;case Ct.Left:u.clipPath=`inset(0% 0% 0% ${o.value} + '%)`;break;case Ct.Default:u.clipPath="inset(0% 50% 0% 0%)";break}return u}),l=lo(a);return{normalizedProgress:o,barStyle:s,component:l,unref:x,Visibility:nt}}});function AN(e,t,n,r,i,a){var l,u,c,f,d,h,p;const o=wt("MarkNode"),s=wt("Node");return e.unref(e.visibility)!==e.Visibility.None?(M(),W("div",{key:0,style:tt([{width:e.unref(e.width)+"px",height:e.unref(e.height)+"px",visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(l=e.unref(e.style))!=null?l:{}]),class:ze({bar:!0,...e.unref(e.classes)})},[P("div",{class:"overlayTextContainer border",style:tt([{width:e.unref(e.width)+"px",height:e.unref(e.height)+"px"},(u=e.unref(e.borderStyle))!=null?u:{}])},[e.component?(M(),W("span",{key:0,class:"overlayText",style:tt(e.unref(e.textStyle))},[(M(),we(gt(e.component)))],4)):ve("",!0)],4),P("div",{class:"border",style:tt([{width:e.unref(e.width)+"px",height:e.unref(e.height)+"px"},(c=e.unref(e.style))!=null?c:{},(f=e.unref(e.baseStyle))!=null?f:{},(d=e.unref(e.borderStyle))!=null?d:{}])},[P("div",{class:"fill",style:tt([e.barStyle,(h=e.unref(e.style))!=null?h:{},(p=e.unref(e.fillStyle))!=null?p:{}])},null,4)],4),C(o,{mark:e.unref(e.mark)},null,8,["mark"]),C(s,{id:e.id},null,8,["id"])],6)):ve("",!0)}var ON=Qe(RN,[["render",AN],["__scopeId","data-v-02d0d7b2"]]);const PN=Symbol("Bar");function Zu(e){return an(()=>{const t=e();return t.id=_n("bar-"),t.type=PN,t[Jt]=ON,H(t,"visibility"),ft(t,"visibility",nt.Visible),H(t,"width"),H(t,"height"),H(t,"direction"),H(t,"style"),H(t,"classes"),H(t,"borderStyle"),H(t,"baseStyle"),H(t,"textStyle"),H(t,"fillStyle"),H(t,"progress"),H(t,"display"),H(t,"mark"),t[nn]=function(){const{progress:n,width:r,height:i,direction:a,display:o,visibility:s,style:l,classes:u,borderStyle:c,textStyle:f,baseStyle:d,fillStyle:h,mark:p,id:v}=this;return{progress:n,width:r,height:i,direction:a,display:o,visibility:s,style:x(l),classes:u,borderStyle:c,textStyle:f,baseStyle:d,fillStyle:h,mark:p,id:v}},t})}const FN=Symbol("Buyable");function MN(e){const t=Kt(0);return an(()=>{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=_n("buyable-"),n.type=FN,n[Jt]=zg,n.amount=t,n.canAfford=J(()=>{const s=n,l=x(s.cost);return s.resource!=null&&l!=null&&O.gte(s.resource.value,l)}),n.canPurchase==null&&(n.canPurchase=J(()=>x(n.visibility)===nt.Visible&&x(n.canAfford)&&O.lt(n.amount.value,x(n.purchaseLimit)))),n.maxed=J(()=>O.gte(n.amount.value,x(n.purchaseLimit))),H(n,"classes");const r=n.classes;n.classes=J(()=>{const s=x(r)||{};return n.maxed.value&&(s.bought=!0),s}),H(n,"canPurchase"),n.canClick=n.canPurchase,n.onClick=n.purchase=(o=(a=n.onClick)!=null?a:n.purchase)!=null?o:function(){var u;const s=n;if(!x(s.canPurchase))return;const l=x(s.cost);s.cost!=null&&s.resource!=null&&(s.resource.value=O.sub(s.resource.value,l),s.amount.value=O.add(s.amount.value,1)),(u=s.onPurchase)==null||u.call(s,l)},H(n,"display");const i=n.display;return n.display=it(()=>{const s=x(i);if(Jn(s)){const l=Ye(s);return C(l,null,null)}if(s!=null&&n.cost!=null&&n.resource!=null){const l=n,u=Ye(s.title||"","h3"),c=Ye(s.description||""),f=Ye(s.effectDisplay||"");return C("span",null,[s.title?C("div",null,[C(u,null,null)]):null,s.description?C(c,null,null):null,s.showAmount===!1?null:C("div",null,[C("br",null,null),x(l.purchaseLimit)===O.dInf?C(Oe,null,[le("Amount: "),gn(l.amount.value)]):C(Oe,null,[le("Amount: "),gn(l.amount.value),le(" /")," ",gn(x(l.purchaseLimit))])]),s.effectDisplay?C("div",null,[C("br",null,null),le("Currently: "),C(f,null,null)]):null,l.cost&&!l.maxed.value?C("div",null,[C("br",null,null),le("Cost: "),kt(x(l.cost)||0)," ",n.resource.displayName]):null])}return""}),H(n,"visibility"),ft(n,"visibility",nt.Visible),H(n,"cost"),H(n,"resource"),H(n,"purchaseLimit"),ft(n,"purchaseLimit",O.dInf),H(n,"style"),H(n,"mark"),H(n,"small"),n[nn]=function(){const{display:s,visibility:l,style:u,classes:c,onClick:f,canClick:d,small:h,mark:p,id:v}=this;return{display:s,visibility:l,style:x(u),classes:c,onClick:f,canClick:d,small:h,mark:p,id:v}},n})}var LN=Ie({props:{active:{type:q(Boolean),required:!0},maxed:{type:q(Boolean),required:!0},canComplete:{type:q(Boolean),required:!0},display:q(String,Object,Function),visibility:{type:q(Number),required:!0},style:q(String,Object,Array),classes:q(Object),completed:{type:q(Boolean),required:!0},canStart:{type:q(Boolean),required:!0},mark:q(Boolean,String),id:{type:String,required:!0},toggle:{type:Function,required:!0}},components:{MarkNode:Xo,Node:Jr},setup(e){const{active:t,maxed:n,canComplete:r,display:i}=Et(e),a=J(()=>t.value?r.value?"Finish":"Exit Early":n.value?"Completed":"Start"),o=An(""),s=J(()=>{const l=Ot(t),u=Ot(r);return l?u?BC():Yf():{}});return zt(()=>{const l=Ot(i);if(l==null){o.value="";return}if(Jn(l)){o.value=Ye(l);return}const u=Ye(l.title||"","h3"),c=Ye(l.description,"div"),f=Ye(l.goal||""),d=Ye(l.reward||""),h=Ye(l.effectDisplay||"");o.value=Ye(it(()=>C("span",null,[l.title?C("div",null,[C(u,null,null)]):null,C(c,null,null),l.goal?C("div",null,[C("br",null,null),le("Goal: "),C(f,null,null)]):null,l.reward?C("div",null,[C("br",null,null),le("Reward: "),C(d,null,null)]):null,l.effectDisplay?C("div",null,[le("Currently: "),C(h,null,null)]):null])))}),{buttonText:a,notifyStyle:s,comp:o,Visibility:nt,unref:x}}});const UN=["disabled"];function BN(e,t,n,r,i,a){var l;const o=wt("MarkNode"),s=wt("Node");return e.unref(e.visibility)!==e.Visibility.None?(M(),W("div",{key:0,style:tt([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.notifyStyle,(l=e.unref(e.style))!=null?l:{}]),class:ze({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]=(...u)=>e.toggle&&e.toggle(...u)),disabled:!e.unref(e.canStart)||e.unref(e.maxed)},Je(e.buttonText),9,UN),e.unref(e.comp)?(M(),we(gt(e.unref(e.comp)),{key:0})):ve("",!0),C(o,{mark:e.unref(e.mark)},null,8,["mark"]),C(s,{id:e.id},null,8,["id"])],6)):ve("",!0)}var kN=Qe(LN,[["render",BN],["__scopeId","data-v-4d2947df"]]);const DN=Symbol("ChallengeType");function GN(e){const t=Kt(0),n=Kt(!1);return an(()=>{const r=e();if(r.canComplete==null&&(r.resource==null||r.goal==null))throw console.warn("Cannot create challenge without a canComplete property or a resource and goal property",r),"Cannot create challenge without a canComplete property or a resource and goal property";r.id=_n("challenge-"),r.type=DN,r[Jt]=kN,r.completions=t,r.active=n,r.completed=J(()=>O.gt(r.completions.value,0)),r.maxed=J(()=>O.gte(r.completions.value,x(r.completionLimit))),r.toggle=function(){var o,s,l,u,c;const a=r;if(a.active.value){if(x(a.canComplete)&&!a.maxed.value){let f=x(a.canComplete);typeof f=="boolean"&&(f=1),a.completions.value=O.min(O.add(a.completions.value,f),x(a.completionLimit)),(o=a.onComplete)==null||o.call(a)}a.active.value=!1,(s=a.onExit)==null||s.call(a),(l=a.reset)==null||l.reset()}else x(a.canStart)&&x(a.visibility)===nt.Visible&&!a.maxed.value&&((u=a.reset)==null||u.reset(),a.active.value=!0,(c=a.onEnter)==null||c.call(a))},r.complete=function(a){var l,u,c;const o=r;let s=x(o.canComplete);o.active.value&&s!==!1&&(s===!0||O.neq(0,s))&&!o.maxed.value&&(typeof s=="boolean"&&(s=1),o.completions.value=O.min(O.add(o.completions.value,s),x(o.completionLimit)),(l=o.onComplete)==null||l.call(o),a!==!0&&(o.active.value=!1,(u=o.onExit)==null||u.call(o),(c=o.reset)==null||c.reset()))},H(r,"visibility"),ft(r,"visibility",nt.Visible);const i=r.visibility;return r.visibility=J(()=>bt.hideChallenges===!0&&x(r.maxed)?nt.None:x(i)),r.canComplete==null&&(r.canComplete=J(()=>{const a=r;return!a.active.value||a.resource==null||a.goal==null?!1:O.gte(a.resource.value,x(a.goal))})),r.mark==null&&(r.mark=J(()=>O.gt(x(r.completionLimit),1)&&!!x(r.maxed))),H(r,"canStart"),ft(r,"canStart",!0),H(r,"canComplete"),H(r,"completionLimit"),ft(r,"completionLimit",1),H(r,"mark"),H(r,"goal"),H(r,"classes"),H(r,"style"),H(r,"display"),r.reset!=null&&sn.on("reset",a=>{a===r.reset&&r.active.value&&r.toggle()}),r[nn]=function(){const{active:a,maxed:o,canComplete:s,display:l,visibility:u,style:c,classes:f,completed:d,canStart:h,mark:p,id:v,toggle:g}=this;return{active:a,maxed:o,canComplete:s,display:l,visibility:u,style:x(c),classes:f,completed:d,canStart:h,mark:p,id:v,toggle:g}},r})}sn.on("loadSettings",e=>{ft(e,"hideChallenges",!1)});Ym(it(()=>C(Bn,{title:"Hide Maxed Challenges","onUpdate:modelValue":e=>bt.hideChallenges=e,modelValue:bt.hideChallenges},null)));const lu=jo({}),Ed=Symbol("Hotkey");function Xp(e){return an(()=>{const t=e();return t.type=Ed,H(t,"enabled"),ft(t,"enabled",!0),H(t,"description"),t})}sn.on("addLayer",e=>{Gm(e,Ed).forEach(t=>{lu[t.key]=t})});sn.on("removeLayer",e=>{Gm(e,Ed).forEach(t=>{lu[t.key]=void 0})});document.onkeydown=function(e){var r;if(((r=e.target)==null?void 0:r.tagName)==="INPUT"||Id.value&&!xe.keepGoing)return;let t=e.key;e.shiftKey&&(t="shift+"+t),e.ctrlKey&&(t="ctrl+"+t);const n=lu[t];n&&x(n.enabled)&&(e.preventDefault(),n.onPress())};Gx(it(()=>{const e=Object.values(lu).filter(t=>x(t==null?void 0:t.enabled));return e.length===0?"":C("div",null,[C("br",null,null),C("h4",null,[le("Hotkeys")]),e.map(t=>C("div",null,[t==null?void 0:t.key,le(": "),t==null?void 0:t.description]))])}));const VN=Symbol("Links");function $N(e){return an(()=>{const t=e();return t.type=VN,t[Jt]=wg,H(t,"links"),t[nn]=function(){const{links:n}=this;return{links:n}},t})}var jN=Ie({props:{visibility:{type:q(Number),required:!0},display:{type:q(String,Object,Function),required:!0},style:q(String,Object,Array),classes:q(Object),earned:{type:q(Boolean),required:!0},id:{type:String,required:!0}},components:{Node:Jr},setup(e){const{display:t}=Et(e),n=An("");return zt(()=>{const r=Ot(t);if(r==null){n.value="";return}if(Jn(r)){n.value=Ye(r);return}const i=Ye(r.requirement,"h3"),a=Ye(r.effectDisplay||"","b"),o=Ye(r.optionsDisplay||"","span");n.value=Ye(it(()=>C("span",null,[C(i,null,null),r.effectDisplay?C("div",null,[C(a,null,null)]):null,r.optionsDisplay?C("div",{class:"equal-spaced"},[C(o,null,null)]):null])))}),{comp:n,unref:x,Visibility:nt}}});function HN(e,t,n,r,i,a){var s;const o=wt("Node");return e.unref(e.visibility)!==e.Visibility.None?(M(),W("div",{key:0,style:tt([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(s=e.unref(e.style))!=null?s:{}]),class:ze({feature:!0,milestone:!0,done:e.unref(e.earned),...e.unref(e.classes)})},[(M(),we(gt(e.unref(e.comp)))),C(o,{id:e.id},null,8,["id"])],6)):ve("",!0)}var zN=Qe(jN,[["render",HN],["__scopeId","data-v-f4e8794e"]]);const XN=Kf(),WN=Symbol("Milestone");let ci;(function(e){e.All="all",e.Configurable="configurable",e.Incomplete="incomplete",e.None="none"})(ci||(ci={}));function Wp(e){const t=Kt(!1);return an(()=>{var i;const n=(i=e==null?void 0:e())!=null?i:{};n.id=_n("milestone-"),n.type=WN,n[Jt]=zN,n.earned=t,n.complete=function(){t.value=!0},H(n,"visibility"),ft(n,"visibility",nt.Visible);const r=n.visibility;if(n.visibility=J(()=>{const a=x(n.display);switch(bt.msDisplay){default:case ci.All:return x(r);case ci.Configurable:return x(n.earned)&&!(a!=null&&typeof a=="object"&&"optionsDisplay"in a)?nt.None:x(r);case ci.Incomplete:return x(n.earned)?nt.None:x(r);case ci.None:return nt.None}}),H(n,"style"),H(n,"classes"),H(n,"display"),n[nn]=function(){const{visibility:a,display:o,style:s,classes:l,earned:u,id:c}=this;return{visibility:a,display:o,style:x(s),classes:l,earned:u,id:c}},n.shouldEarn){const a=n;zt(()=>{var o,s;if(bt.active===xe.id&&!a.earned.value&&x(a.visibility)===nt.Visible&&((o=a.shouldEarn)==null?void 0:o.call(a))&&(a.earned.value=!0,(s=a.onComplete)==null||s.call(a),a.display)){const l=x(a.display),u=Ye(Jn(l)?l:l.requirement);XN(C(Oe,null,[C("h3",null,[le("Milestone earned!")]),C("div",null,[C(u,null,null)])]))}})}return n})}sn.on("loadSettings",e=>{ft(e,"msDisplay",ci.All)});const KN=Object.values(ci).map(e=>({label:Dm(e),value:e}));Ym(it(()=>C(Gf,{title:"Show Milestones",options:KN,"onUpdate:modelValue":e=>bt.msDisplay=e,modelValue:bt.msDisplay},null)));const YN=Ie({__name:"Tab",props:{display:null},setup(e){const t=e,{display:n}=Et(t),r=Vo(n);return(i,a)=>(M(),we(gt(x(r))))}}),ZN=Symbol("Tab");function Xs(e){return an(()=>{const t=e();return t.id=_n("tab-"),t.type=ZN,t[Jt]=YN,t[nn]=function(){const{display:n}=this;return{display:n}},t})}const JN=Ie({props:{visibility:{type:q(Number),required:!0},display:{type:q(Object,String,Function),required:!0},style:q(String,Object,Array),classes:q(Object),glowColor:q(String),active:Boolean,floating:Boolean},emits:["selectTab"],setup(e,{emit:t}){const{display:n,glowColor:r,floating:i}=Et(e),a=Vo(n),o=J(()=>{const l=Ot(r);return l?x(i)?Yf(l):{boxShadow:`0px 9px 5px -6px ${l}`}:{}});function s(){t("selectTab")}return{selectTab:s,component:a,glowColorStyle:o,unref:x,Visibility:nt}}});function QN(e,t,n,r,i,a){var o;return e.unref(e.visibility)!==e.Visibility.None?(M(),W("button",{key:0,onClick:t[0]||(t[0]=(...s)=>e.selectTab&&e.selectTab(...s)),class:ze(["tabButton",{active:e.active,...e.unref(e.classes)}]),style:tt([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.glowColorStyle,(o=e.unref(e.style))!=null?o:{}])},[(M(),we(gt(e.component)))],6)):ve("",!0)}var Sy=Qe(JN,[["render",QN],["__scopeId","data-v-610a2549"]]);const qN=Ie({props:{visibility:{type:q(Number),required:!0},activeTab:{type:q(Object),required:!0},selected:{type:Object,required:!0},tabs:{type:q(Object),required:!0},style:q(String,Object,Array),classes:q(Object),buttonContainerStyle:q(String,Object,Array),buttonContainerClasses:q(Object)},components:{Sticky:Fl,TabButton:Sy},setup(e){const{activeTab:t}=Et(e),n=J(()=>Kr[bt.theme].floatingTabs),r=An("");zt(()=>{const s=Ot(t);if(s==null){r.value="";return}if(Jn(s)){r.value=Ye(s);return}r.value=Ye(x(s.display))});const i=J(()=>{const s=Ot(t);return Jn(s)||!s?void 0:x(s.classes)}),a=J(()=>{const s=Ot(t);return Jn(s)||!s?void 0:x(s.style)});function o(s){const{display:l,style:u,classes:c,glowColor:f,visibility:d}=s;return{display:l,style:x(u),classes:c,glowColor:f,visibility:d}}return{floating:n,tabClasses:i,tabStyle:a,Visibility:nt,component:r,gatherButtonProps:o,unref:x}}});function eR(e,t,n,r,i,a){var l,u;const o=wt("TabButton"),s=wt("Sticky");return e.unref(e.visibility)!==e.Visibility.None?(M(),W("div",{key:0,class:ze(["tab-family-container",{...e.unref(e.classes),...e.tabClasses}]),style:tt([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(l=e.unref(e.style))!=null?l:[],(u=e.tabStyle)!=null?u:[]])},[C(s,{class:ze(["tab-buttons-container",e.unref(e.buttonContainerClasses)]),style:tt(e.unref(e.buttonContainerStyle))},{default:Pe(()=>[P("div",{class:ze(["tab-buttons",{floating:e.floating}])},[(M(!0),W(Oe,null,Rr(e.unref(e.tabs),(c,f)=>(M(),we(o,un({onSelectTab:d=>e.selected.value=f,floating:e.floating,key:f,active:e.unref(c.tab)===e.unref(e.activeTab)},e.gatherButtonProps(c)),null,16,["onSelectTab","floating","active"]))),128))],2)]),_:1},8,["class","style"]),e.unref(e.activeTab)?(M(),we(gt(e.unref(e.component)),{key:0})):ve("",!0)],6)):ve("",!0)}var tR=Qe(qN,[["render",eR],["__scopeId","data-v-11575f45"]]);const nR=Symbol("TabButton"),rR=Symbol("TabFamily");function Kp(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=Kt(Object.keys(e)[0]);return an(()=>{var a;const r=(a=t==null?void 0:t())!=null?a:{};r.id=_n("tabFamily-"),r.type=rR,r[Jt]=tR,r.tabs=Object.keys(e).reduce((o,s)=>{const l=e[s]();return l.type=nR,l[Jt]=Sy,H(l,"visibility"),ft(l,"visibility",nt.Visible),H(l,"tab"),H(l,"display"),H(l,"classes"),H(l,"style"),H(l,"glowColor"),o[s]=l,o},{}),r.selected=n,r.activeTab=J(()=>{const o=x(i.tabs);if(n.value in o&&x(o[n.value].visibility)===nt.Visible)return x(o[n.value].tab);const s=Object.values(o).find(l=>x(l.visibility)===nt.Visible);return s?x(s.tab):null}),H(r,"visibility"),ft(r,"visibility",nt.Visible),H(r,"classes"),H(r,"style"),H(r,"buttonContainerClasses"),H(r,"buttonContainerStyle"),r[nn]=function(){const{visibility:o,activeTab:s,selected:l,tabs:u,style:c,classes:f,buttonContainerClasses:d,buttonContainerStyle:h}=this;return{visibility:o,activeTab:s,selected:l,tabs:u,style:x(c),classes:f,buttonContainerClasses:d,buttonContainerStyle:h}};const i=r;return i})}var iR=Ie({props:{display:{type:q(String,Object,Function),required:!0},visibility:{type:q(Number),required:!0},style:q(String,Object,Array),classes:q(Object),resource:Object,cost:q(String,Object,Number),canPurchase:{type:q(Boolean),required:!0},bought:{type:q(Boolean),required:!0},mark:q(Boolean,String),id:{type:String,required:!0},purchase:{type:Function,required:!0}},components:{Node:Jr,MarkNode:Xo},setup(e){const{display:t,cost:n}=Et(e),r=An("");return zt(()=>{const i=Ot(t);if(i==null){r.value="";return}if(Jn(i)){r.value=Ye(i);return}const a=Ot(n),o=Ye(i.title||"","h3"),s=Ye(i.description,"div"),l=Ye(i.effectDisplay||"");r.value=Ye(it(()=>{var u;return C("span",null,[i.title?C("div",null,[C(o,null,null)]):null,C(s,null,null),i.effectDisplay?C("div",null,[le("Currently: "),C(l,null,null)]):null,e.resource!=null?C(Oe,null,[C("br",null,null),le("Cost: "),e.resource&&zr(e.resource,a)," ",(u=e.resource)==null?void 0:u.displayName]):null])}))}),{component:r,unref:x,Visibility:nt}}});const oR=["disabled"];function aR(e,t,n,r,i,a){var l;const o=wt("MarkNode"),s=wt("Node");return e.unref(e.visibility)!==e.Visibility.None?(M(),W("button",{key:0,style:tt([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(l=e.unref(e.style))!=null?l:{}]),onClick:t[0]||(t[0]=(...u)=>e.purchase&&e.purchase(...u)),class:ze({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)?(M(),we(gt(e.unref(e.component)),{key:0})):ve("",!0),C(o,{mark:e.unref(e.mark)},null,8,["mark"]),C(s,{id:e.id},null,8,["id"])],14,oR)):ve("",!0)}var sR=Qe(iR,[["render",aR],["__scopeId","data-v-7742f590"]]);const lR=Symbol("Upgrade");function Ws(e){const t=Kt(!1);return an(()=>{const n=e();return n.id=_n("upgrade-"),n.type=lR,n[Jt]=sR,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=J(()=>{const r=n;return r.resource!=null&&r.cost!=null&&O.gte(r.resource.value,x(r.cost))}):H(n,"canAfford"),n.canPurchase=J(()=>x(n.visibility)===nt.Visible&&x(n.canAfford)&&!x(n.bought)),n.purchase=function(){var i;const r=n;!x(r.canPurchase)||(r.resource!=null&&r.cost!=null&&(r.resource.value=O.sub(r.resource.value,x(r.cost))),t.value=!0,(i=r.onPurchase)==null||i.call(r))},H(n,"visibility"),ft(n,"visibility",nt.Visible),H(n,"classes"),H(n,"style"),H(n,"display"),H(n,"mark"),H(n,"cost"),H(n,"resource"),n[nn]=function(){const{display:r,visibility:i,style:a,classes:o,resource:s,cost:l,canPurchase:u,bought:c,mark:f,id:d,purchase:h}=this;return{display:r,visibility:i,style:x(a),classes:o,resource:s,cost:l,canPurchase:u,bought:c,mark:f,id:d,purchase:h}},n})}function uR(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!fr(e)}const Ju="c",nr=ss(Ju,()=>{const e="#4BDC13",t="Candies",n=Ga(0,"lollipops"),r=Tg(n),i=Kt(!1),a=Kt("pointy"),o=Kt(10),s=Kt(new O(10)),l=J(()=>O.pow(n.value,.2)),u=J(()=>O.times(n.value,10)),c=Zg(()=>({title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"},color:"rgb(75, 220, 19)"})),f=Wp(()=>({shouldEarn(){return O.gte(r.value,3)},display:{requirement:"3 Lollipops",effectDisplay:"Unlock the next milestone"}})),d=Wp(()=>({visibility(){return Yo(f.earned.value)},shouldEarn(){return O.gte(r.value,4)},display:{requirement:"4 Lollipops",effectDisplay:"You can toggle beep and boop (which do nothing)",optionsDisplay:it(()=>C(Oe,null,[C(Bn,{title:"beep","onUpdate:modelValue":ie=>i.value=ie,modelValue:i.value},null),C(Bn,{title:"boop","onUpdate:modelValue":ie=>xr.boop.value=ie,modelValue:xr.boop.value},null)]))},style(){return this.earned?{backgroundColor:"#1111DD"}:{}}})),h=[f,d],p=GN(()=>({title:"Fun",completionLimit:3,display(){return{description:`Makes the game 0% harder<br>${gn(this.completions.value)}/${this.completionLimit} completions`,goal:"Have 20 points I guess",reward:"Says hi",effectDisplay:kt(v.value)+"x"}},visibility(){return Yo(O.gt(r.value,0))},goal:20,resource:yt.points,onComplete(){console.log("hiii")},onEnter(){yt.points.value=0,yt.best.value=yt.points.value,yt.total.value=yt.points.value,console.log("So challenging")},onExit(){console.log("Sweet freedom!")},style:{height:"200px"}})),v=J(()=>O.add(n.value,1).tetrate(.02)),g=Ws(()=>({display:{title:"Generator of Genericness",description:"Gain 1 point every second"},cost:1,resource:n})),y=Ws(()=>({display:()=>({description:"Point generation is faster based on your unspent Lollipops",effectDisplay:`${kt(m.value)}x`}),cost:1,resource:n,visibility:()=>Yo(g.bought.value)})),m=J(()=>{let ie=O.add(n.value,1).pow(.5);return ie.gte("1e20000000")&&(ie=ie.sqrt().times("1e10000000")),ie}),b=Ws(()=>({visibility(){return Yo(y.bought.value)},canAfford(){return O.lt(yt.points.value,7)},onPurchase(){yt.points.value=O.add(yt.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"}}})),T=Ws(()=>({resource:Ga(w.amount,"Exhancers",0),cost:3,display:{title:"This upgrade doesn't exist",description:"Or does it?"}})),S=[g,y,b],w=MN(()=>({resource:n,cost(){let ie=new O(this.amount.value);return ie.gte(25)&&(ie=ie.pow(2).div(25)),O.pow(2,ie.pow(1.5)).floor()},display(){return{title:"Exhancers",description:`Adds ${kt(N.value)} things and multiplies stuff by ${kt(I.value)}.`}},onPurchase(ie){s.value=O.add(s.value,ie!=null?ie:0)},style:{height:"222px"},purchaseLimit:4})),N=J(()=>O.gte(w.amount.value,0)?O.pow(25,O.pow(w.amount.value,1.1)):O.pow(1/25,O.times(w.amount.value,-1).pow(1.1))),I=J(()=>O.gte(w.amount.value,0)?O.pow(25,O.pow(w.amount.value,1.1)):O.pow(1/25,O.times(w.amount.value,-1).pow(1.1))),R=Kt(!1),U=Te(!1),$=$a(()=>({small:!0,display:"Respec Thingies",onClick(){if(R.value&&!U.value){U.value=!0;return}n.value=O.add(n.value,s.value),w.amount.value=0,yt.tree.reset(re)}})),z=$a(()=>({small:!0,display:"Sell One",onClick(){O.lte(w.amount.value,0)||(w.amount.value=O.sub(w.amount.value,1),n.value=O.add(n.value,w.cost.value),s.value=O.sub(s.value,w.cost.value))}})),j=it(()=>C(qs,null,{default:()=>[C(wa,null,{default:()=>[C(Bn,{title:"Confirm","onUpdate:modelValue":ie=>R.value=ie,modelValue:R.value},null),tr($)]}),tr(w),tr(z),C(wi,{modelValue:U.value,"onUpdate:modelValue":ie=>U.value=ie},{header:()=>C("h2",null,[le("Confirm Respec")]),body:()=>C(Oe,null,[le("Are you sure? Respeccing these doesn't accomplish much")]),footer:()=>C("div",{class:"modal-default-footer"},[C("div",{class:"modal-default-flex-grow"},null),C("button",{class:"button modal-default-button",onClick:()=>U.value=!1},[le("Cancel")]),C("button",{class:"button modal-default-button danger",onClick:()=>{$.onClick(),U.value=!1}},[le("Respec")])])})]})),B=Zu(()=>({fillStyle:{backgroundColor:"#FFFFFF"},baseStyle:{backgroundColor:"#696969"},textStyle:{color:"#04e050"},direction:Ct.Right,width:300,height:30,progress(){return O.add(yt.points.value,1).log(10).div(10).toNumber()},display(){return kt(yt.points.value)+" / 1e10 points"}})),he=Zu(()=>({fillStyle:{backgroundColor:"#4BEC13"},baseStyle:{backgroundColor:"#000000"},textStyle:{textShadow:"0px 0px 2px #000000"},borderStyle:{borderWidth:"7px"},direction:Ct.Up,width:50,height:200,progress(){return O.div(yt.points.value,100)},display(){return gn(O.div(yt.points.value,1).min(100))+"%"}})),Y=Zu(()=>({fillStyle:{backgroundColor:"#FE0102"},baseStyle:{backgroundColor:"#222222"},textStyle:{textShadow:"0px 0px 2px #000000"},direction:Ct.Up,width:100,height:30,progress(){return O.div(n.value,50)}})),oe=eE(()=>({scaling:rE(Yg(10,.5),1e100,.5),baseResource:yt.points,gainResource:n,roundUpCost:!0,gainModifier:xN(bN(2,"Because I felt like it"),gN(1,"Nice modifier"))})),me=Cy(()=>({thingsToReset:()=>[nr]})),Ke=[Xp(()=>({key:"c",description:"reset for lollipops or whatever",onPress(){de.canClick.value&&de.onClick()}})),Xp(()=>({key:"ctrl+c",description:"respec things",onPress(){$.onClick()}}))],re=Wg(()=>({layerID:Ju,color:e,reset:me,mark:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",tooltip(){let ie=zr(n);return O.gt(w.amount.value,0)&&(ie+=`<br><i><br><br><br>${gn(w.amount.value)} Exhancers</i>`),ie},style:{color:"#3325CC",textDecoration:"underline"}}));nf(re,{display:Eg(n),pinnable:!0});const de=Xg(()=>({conversion:oe,tree:yt.tree,treeNode:re,style:{color:"#AA66AA"},resetDescription:"Melt your points into "}));nf(de,{display:it(()=>_N("Modifiers","",oe.gainModifier,oe.scaling.currentGain(oe))),pinnable:!0,direction:Ct.Down,style:"width: 400px; text-align: left"});const ye=Ra(()=>({display:"TH",color:"#6d3678",canClick(){return O.gte(yt.points.value,10)},tooltip:"Thanos your points",onClick(){yt.points.value=O.div(yt.points.value,2),console.log("Thanos'd")},glowColor(){return O.eq(w.amount.value,1)?"orange":""}})),Se=Ra(()=>({display:"h",color(){return Kr[bt.theme].variables["--locked"]},tooltip:{display:J(()=>`Restore your points to ${kt(o.value)}`),right:!0},canClick(){return O.lt(yt.points.value,o.value)},onClick(){yt.points.value=o.value}})),k=Ra(()=>({visibility:nt.Hidden})),X=Cg(()=>({nodes(){return[[xr.treeNode,re],[ye,k,Se]]},branches(){return[{startNode:xr.treeNode,endNode:re,"stroke-width":"25px",stroke:"green",style:{filter:"blur(5px)"}},{startNode:re,endNode:ye},{startNode:ye,endNode:Se}]}})),ce=$N(()=>({links:[{startNode:Se,endNode:Y,"stroke-width":"5px",stroke:"red",offsetEnd:{x:-50+100*Y.progress.value.toNumber(),y:0}}]})),ue=Kp({first:()=>({tab:it(()=>C(Oe,null,[tr(...S),tr(T),C("div",null,[le("confirmed")])])),display:"first"}),second:()=>({tab:xr.display,display:"second"})},()=>({style:{width:"660px",backgroundColor:"brown","--background":"brown",border:"solid white",marginLeft:"auto",marginRight:"auto"}})),Ve=Kp({mainTab:()=>({tab:Xs(()=>({display:it(()=>{let ie;return C(Oe,null,[C(Iy,{resource:n,color:e,effectDisplay:`which are boosting waffles by ${kt(l.value)} and increasing the Ice Cream cap by ${kt(u.value)}`},null),C(Fl,null,uR(ie=Bt(de))?ie:{default:()=>[ie]}),C(Ey,{resource:n,color:e},null),C(En,{height:"5px"},null),C("button",{onClick:()=>console.log("yeet")},[le("'HI'")]),C("div",null,[le("Name your points!")]),C(zf,{modelValue:a.value,"onUpdate:modelValue":Ze=>a.value=Ze},null),C(Fl,{style:"color: red; font-size: 32px; font-family: Comic Sans MS;"},{default:()=>[le("I have "),zr(yt.points),le(" "),a.value,le(" points!")]}),C("hr",null,null),Hx(...h),C(En,null,null),tr(...S),tr(T),tr(p)])})})),display:"main tab",glowColor(){return g.canPurchase.value||y.canPurchase.value||b.canPurchase.value||p.canComplete.value?"blue":""},style:{color:"orange"}}),thingies:()=>({tab:Xs(()=>({style(){return{backgroundColor:"#222222","--background":"#222222"}},display:it(()=>C(Oe,null,[Bt(j),C(En,null,null),C(wa,{style:"width: 600px; height: 350px; background-color: green; border-style: solid;"},{default:()=>[C(Bn,{"onUpdate:modelValue":ie=>i.value=ie,modelValue:i.value},null),C(En,{width:"30px",height:"10px"},null),C("div",null,[C("span",null,[le("Beep")])]),C(En,null,null),C(NN,{height:"200px"},null)]}),C(En,null,null),C("img",{src:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png"},null)]))})),glowColor:"white",display:"thingies",style:{borderColor:"orange"}}),jail:()=>({tab:Xs(()=>({display:it(()=>C(Oe,null,[Bt(c),Bt(B),C(En,null,null),C(wa,null,{default:()=>[C(qs,{style:"background-color: #555555; padding: 15px"},{default:()=>[C("div",{style:"color: teal"},[le("Sugar level:")]),C(En,null,null),Bt(he)]}),C(En,null,null),C(qs,null,{default:()=>[C("div",null,[le("idk")]),C(En,{width:"0",height:"50px"},null),Bt(Y)]})]}),C(En,null,null),C("div",null,[le(`It's jail because "bars"! So funny! Ha ha!`)]),Bt(X)]))})),display:"jail"}),illuminati:()=>({tab:Xs(()=>({display:it(()=>C("div",null,[C("h1",null,[le(" C O N F I R M E D ")]),C(En,null,null),Bt(ue),C("div",null,[le("Adjust how many points H gives you!")]),C(IN,{"onUpdate:modelValue":ie=>o.value=ie,modelValue:o.value,min:1,max:30},null)])),style:{backgroundColor:"#3325CC"}})),visibility(){return Yo(b.bought.value)},display:"illuminati"})});return{id:Ju,color:e,name:t,points:n,best:r,beep:i,thingy:a,otherThingy:o,spentOnBuyables:s,waffleBoost:l,icecreamCap:u,coolInfo:c,lollipopMilestones:h,funChallenge:p,funEffect:v,generatorUpgrade:g,lollipopMultiplierUpgrade:y,lollipopMultiplierEffect:m,unlockIlluminatiUpgrade:b,quasiUpgrade:T,exhancers:w,respecBuyables:$,sellExhancer:z,bars:{tallBoi:he,longBoi:B,flatBoi:Y},tree:X,g:ye,h:Se,spook:k,conversion:oe,reset:me,hotkeys:Ke,treeNode:re,resetButton:de,confirmRespec:R,minWidth:800,tabs:Ve,display:it(()=>C(Oe,null,[Bt(Ve),Bt(ce)]))}}),cR={min:.5,max:1},fR=[{s:0,cp:.329,e:.548},{s:.548,cp:.767,e:.876},{s:.876,cp:.985,e:1}],dR=.001,hR=.1,pR=100,vR=!0,mR={x:0,y:0},gR=!1,yR=[{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 bR={lifetime:cR,ease:fR,frequency:dR,emitterLifetime:hR,maxParticles:pR,addAtBack:vR,pos:mR,emit:gR,behaviors:yR};const Qu="f",xr=ss(Qu,()=>{const e="#FE0102",t="Farms",n=Ga(0,"farm points"),r=Kt(!1),i=Zg(()=>({title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"}})),a=Kt("Start"),o=$a(()=>({display(){return{title:"Clicky clicky!",description:"Current state:<br>"+a.value}},initialState:"Start",canClick(){return a.value!=="Borkened..."},onClick(p){var v,g,y,m,b,T,S,w;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 N=p==null?void 0:"touches"in p?p.touches[0]:p,I=Object.assign({},bR,{pos:{x:((v=N==null?void 0:N.clientX)!=null?v:0)-((m=(y=(g=d.boundingRect)==null?void 0:g.value)==null?void 0:y.left)!=null?m:0),y:((b=N==null?void 0:N.clientY)!=null?b:0)-((w=(S=(T=d.boundingRect)==null?void 0:T.value)==null?void 0:S.top)!=null?w:0)}});d.addEmitter(I).then(R=>R.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=$a(()=>({onClick(){a.value=="Borkened..."&&(a.value="Start")},display(){return a.value=="Borkened..."?"Fix the clickable!":"Does nothing"},small:!0})),l=Cy(()=>({thingsToReset:()=>[xr]})),u=tE(()=>({scaling:Yg(10,.5),baseResource:yt.points,gainResource:n,modifyGainAmount:yN(nr.otherThingy)})),c=Wg(()=>({layerID:Qu,color:e,reset:l,tooltip(){return c.canClick.value?`${zr(n)} ${n.displayName}`:`This weird farmer dinosaur will only see you if you have at least 10 points. You only have ${zr(yt.points)}`},canClick(){return O.gte(yt.points.value,10)}}));nf(c,{display:Eg(n),pinnable:!0});const f=Xg(()=>({conversion:u,tree:yt.tree,treeNode:c,display:it(()=>f.conversion.buyMax?C("span",null,[le("Hi! I'm a "),C("u",null,[le("weird dinosaur")]),le(" and I'll give you")," ",C("b",null,[gn(f.conversion.currentGain.value)]),le(" Farm Points in exchange for all of your points and lollipops! (You'll get another one at")," ",gn(f.conversion.nextAt.value),le(" points)")]):C("span",null,[le("Hi! I'm a "),C("u",null,[le("weird dinosaur")]),le(" and I'll give you a Farm Point in exchange for all of your points and lollipops! (At least")," ",gn(f.conversion.nextAt.value),le(" points)")]))})),d=cN(()=>({boundingRect:Te(null),onContainerResized(p){this.boundingRect.value=p},style:"z-index: 2"})),h=it(()=>C(Oe,null,[Bt(i),C(Iy,{resource:n,color:e},null),Bt(f),C("div",null,[le("You have "),gn(u.baseResource.value),le(" points")]),C("div",null,[C("br",null,null),C("img",{src:"https://images.beano.com/store/24ab3094eb95e5373bca1ccd6f330d4406db8d1f517fc4170b32e146f80d?auto=compress%2Cformat&dpr=1&w=390"},null),C("div",null,[le("Bork Bork!")])]),C(En,null,null),tr(s),tr(o),Bt(d)]));return{id:Qu,color:e,name:t,points:n,boop:r,coolInfo:i,clickable:o,clickableState:a,reset:l,conversion:u,treeNode:c,resetButton:f,minWidth:650,display:h}});function qu(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!fr(e)}const Yp="a",rf=ss(Yp,()=>{const e="yellow",t="Achievements",n=Ga(0,"achievement power"),r=Ra(()=>({display:"A",color:e,tooltip:{display:"Achievements",right:!0},onClick(){yt.showAchievements()}})),i=Pu(()=>({image:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",display:"Get me!",tooltip:J(()=>i.earned.value?"You did it!":"How did this happen?"),shouldEarn:()=>!0})),a=Pu(()=>({display:"Impossible!",tooltip:J(()=>a.earned.value?"HOW????":"Mwahahaha!"),style:{color:"#04e050"}})),o=Pu(()=>({display:"EIEIO",tooltip:`Get a farm point.
+
+Reward: The dinosaur is now your friend (you can max Farm Points).`,shouldEarn:function(){return O.gte(xr.points.value,1)},onComplete(){console.log("Bork bork bork!")}})),s=[i,a,o],l=ZC(()=>({rows:2,cols:2,getStartState(c){return c},getStyle(c,f){return{backgroundColor:`#${Number(f)*1234%999999}`}},getTitle(c){let f="";return c==="101"?f="top":c==="102"?f="bottom":c==="201"?f="left":c==="202"&&(f="right"),it(()=>C(At,un({display:JSON.stringify(this.cells[c].style)},{[f]:!0}),{default:()=>[C("h3",null,[le("Gridable #"),c])]}))},getDisplay(c,f){return String(f)},getCanClick(){return O.eq(yt.points.value,10)},onClick(c,f){this.cells[c].state=Number(f)+1}})),u=it(()=>{let c,f,d;return C(Oe,null,[C(wa,null,{default:()=>[C(At,{display:i.tooltip,bottom:!0},qu(c=Bt(i))?c:{default:()=>[c]}),C(At,{display:a.tooltip,bottom:!0},qu(f=Bt(a))?f:{default:()=>[f]}),C(At,{display:o.tooltip,bottom:!0},qu(d=Bt(o))?d:{default:()=>[d]})]}),tr(l)])});return{id:Yp,color:e,name:t,points:n,achievements:s,grid:l,treeNode:r,display:u}}),yt=ss("main",()=>{const e=Ga(10),t=Tg(e),n=g2(e),r=J(()=>{if(!nr.generatorUpgrade.bought.value)return new O(0);let l=new O(3.19);return nr.lollipopMultiplierUpgrade.bought.value&&(l=l.times(nr.lollipopMultiplierEffect.value)),l});sn.on("update",l=>{e.value=O.add(e.value,O.times(r.value,l))});const i=x2(e,r),{openModal:a,modal:o}=ng(rf),s=Cg(()=>({nodes:[[nr.treeNode],[xr.treeNode,nr.spook]],leftSideNodes:[rf.treeNode,nr.h],branches:[{startNode:xr.treeNode,endNode:nr.treeNode,stroke:"blue","stroke-width":"25px",style:{filter:"blur(5px)"}}],onReset(){e.value=ot(this.resettingNode.value)===ot(nr.treeNode)?0:10,t.value=e.value,n.value=e.value},resetPropagation:B2}));return{name:"Tree",display:it(()=>C(Oe,null,[xe.devSpeed===0?C("div",null,[le("Game Paused")]):null,xe.devSpeed&&xe.devSpeed!==1?C("div",null,[le("Dev Speed: "),kt(xe.devSpeed),le("x")]):null,xe.offlineTime?C("div",null,[le("Offline Time: "),Ql(xe.offlineTime)]):null,C("div",null,[O.lt(e.value,"1e1000")?C("span",null,[le("You have ")]):null,C("h2",null,[kt(e.value)]),O.lt(e.value,"1e1e6")?C("span",null,[le(" points")]):null]),O.gt(r.value,0)?C("div",null,[le("("),i.value,le(")")]):null,C(En,null,null),C("button",{onClick:a},[le("open achievements")]),Bt(o),Bt(s),C(m2,{height:"200px",style:"margin: 10px auto; display: block"},null)])),points:e,best:t,total:n,oomps:i,tree:s,showAchievements:a}}),xR=e=>[yt,xr,nr,rf],Id=J(()=>O.gt(yt.points.value,25));function _R(e,t){}var Ny=Object.freeze(Object.defineProperty({__proto__:null,main:yt,getInitialLayers:xR,hasWon:Id,fixOldSave:_R},Symbol.toStringTag,{value:"Module"}));const ds=e=>(hr("data-v-4a50ce42"),e=e(),pr(),e),TR={class:"game-over-modal-header"},wR=["src","alt"],CR={class:"game-over-modal-title"},ER=ds(()=>P("h2",null,"Congratulations!",-1)),IR={key:0},SR=ds(()=>P("br",null,null,-1)),NR=ds(()=>P("div",null," Please check the Discord to discuss the game or to check for new content updates! ",-1)),RR=ds(()=>P("br",null,null,-1)),AR=["href"],OR=ds(()=>P("span",{class:"material-icons game-over-modal-discord"},"discord",-1)),PR=Ie({__name:"GameOverScreen",setup(e){const{title:t,logo:n,discordName:r,discordLink:i,versionNumber:a,versionTitle:o}=_t,s=J(()=>Ql(xe.timePlayed)),l=J(()=>Id.value&&!xe.keepGoing),u=Sn(xe,"autosave");function c(){xe.keepGoing=!0}function f(){Wi(Ro())}return(d,h)=>(M(),we(wi,{"model-value":x(l)},{header:Pe(()=>[P("div",TR,[x(n)?(M(),W("img",{key:0,class:"game-over-modal-logo",src:x(n),alt:x(t)},null,8,wR)):ve("",!0),P("div",CR,[ER,P("h4",null,"You've beaten "+Je(x(t))+" v"+Je(x(a))+": "+Je(x(o)),1)])])]),body:Pe(({shown:p})=>[p?(M(),W("div",IR,[P("div",null,"It took you "+Je(x(s))+" to beat the game.",1),SR,NR,RR,P("div",null,[P("a",{href:x(i),class:"game-over-modal-discord-link"},[OR,le(" "+Je(x(r)),1)],8,AR)]),C(Bn,{title:"Autosave",modelValue:x(u),"onUpdate:modelValue":h[0]||(h[0]=v=>et(u)?u.value=v:null)},null,8,["modelValue"])])):ve("",!0)]),footer:Pe(()=>[P("div",{class:"game-over-footer"},[P("button",{onClick:c,class:"button"},"Keep Going"),P("button",{onClick:f,class:"button danger"},"Play Again")])]),_:1},8,["model-value"]))}});var FR=Qe(PR,[["__scopeId","data-v-4a50ce42"]]);const uu=e=>(hr("data-v-3de07c06"),e=e(),pr(),e),MR=uu(()=>P("div",{class:"nan-modal-header"},[P("h2",null,"NaN value detected!")],-1)),LR={key:0},UR=uu(()=>P("br",null,null,-1)),BR=["href"],kR=uu(()=>P("span",{class:"material-icons nan-modal-discord"},"discord",-1)),DR=uu(()=>P("br",null,null,-1)),GR={class:"nan-footer"},VR=Ie({__name:"NaNScreen",setup(e){const{discordName:t,discordLink:n}=_t,r=Sn(xe,"autosave"),i=Sn(Rt,"hasNaN"),a=Te(null),o=J(()=>{var h;return(h=Rt.NaNPath)==null?void 0:h.join(".")}),s=J(()=>{var h;return(h=Rt.NaNPath)==null?void 0:h.slice(-1)[0]}),l=J(()=>Rt.NaNReceiver&&s.value?Rt.NaNReceiver[s.value]:null),u=J({get(){return xe.devSpeed===0},set(h){xe.devSpeed=h?null:0}});function c(){Rt.NaNReceiver&&s.value&&(Rt.NaNReceiver[s.value]=new O(0),Rt.hasNaN=!1)}function f(){Rt.NaNReceiver&&s.value&&(Rt.NaNReceiver[s.value]=new O(1),Rt.hasNaN=!1)}function d(){Rt.NaNReceiver&&s.value&&(Rt.NaNReceiver[s.value]=new O(NaN),Rt.hasNaN=!1)}return(h,p)=>(M(),W(Oe,null,[C(wi,un({modelValue:x(i),"onUpdate:modelValue":p[4]||(p[4]=v=>et(i)?i.value=v:null)},h.$attrs),{header:Pe(()=>[MR]),body:Pe(()=>[P("div",null,[le(' Attempted to assign "'+Je(x(o))+'" to NaN',1),x(l)?(M(),W("span",LR,Je(" ")+"(previously "+Je(x(kt)(x(l)))+")",1)):ve("",!0),le(". Auto-saving has been "+Je(x(r)?"enabled":"disabled")+". Check the console for more details, and consider sharing it with the developers on discord. ",1)]),UR,P("div",null,[P("a",{href:x(n),class:"nan-modal-discord-link"},[kR,le(" "+Je(x(t)),1)],8,BR)]),DR,C(Bn,{title:"Autosave",modelValue:x(r),"onUpdate:modelValue":p[0]||(p[0]=v=>et(r)?r.value=v:null)},null,8,["modelValue"]),x(_t).enablePausing?(M(),we(Bn,{key:0,title:"Pause game",modelValue:x(u),"onUpdate:modelValue":p[1]||(p[1]=v=>et(u)?u.value=v:null)},null,8,["modelValue"])):ve("",!0)]),footer:Pe(()=>[P("div",GR,[P("button",{onClick:p[2]||(p[2]=v=>{var g;return(g=a.value)==null?void 0:g.open()}),class:"button"},"Open Saves Manager"),P("button",{onClick:c,class:"button"},"Set to 0"),P("button",{onClick:f,class:"button"},"Set to 1"),x(l)&&x(O).neq(x(l),0)&&x(O).neq(x(l),1)?(M(),W("button",{key:0,onClick:p[3]||(p[3]=v=>i.value=!1),class:"button"}," Set to previous ")):ve("",!0),P("button",{onClick:d,class:"button danger"},"Ignore")])]),_:1},16,["modelValue"]),C(xg,{ref_key:"savesManager",ref:a},null,512)],64))}});var $R=Qe(VR,[["__scopeId","data-v-3de07c06"]]);const jR={key:0,class:"tpsDisplay"},HR={key:0,class:"low"},zR=Ie({__name:"TPS",setup(e){const t=J(()=>O.div(Rt.lastTenTicks.length,Rt.lastTenTicks.reduce((a,o)=>a+o,0))),n=Te([]);zt(()=>{n.value.push(Math.round(t.value.toNumber())),n.value.length>10&&(n.value=n.value.slice(1))});const r=J(()=>n.value.reduce((a,o)=>O.max(a,o),0)),i=J(()=>O.sub(t.value,r.value).gt(1));return(a,o)=>x(t).isNan()?ve("",!0):(M(),W("div",jR,[le(" TPS: "+Je(x(gn)(x(t)))+" ",1),C(Ti,{name:"fade"},{default:Pe(()=>[x(i)?(M(),W("span",HR,Je(x(gn)(x(r))),1)):ve("",!0)]),_:1})]))}});var XR=Qe(zR,[["__scopeId","data-v-46a3ed5b"]]);var WR=Ie({__name:"App",setup(e){const t=_t.useHeader,n=J(()=>Kr[bt.theme].variables),r=Sn(bt,"showTPS"),i=J(()=>Ye(it(()=>C(Oe,null,[Vx.map(Bt)]))));return(a,o)=>(M(),W(Oe,null,[P("div",{id:"modal-root",style:tt(x(n))},null,4),P("div",{class:ze(["app",{useHeader:x(t)}]),style:tt(x(n))},[x(t)?(M(),we(_g,{key:0})):ve("",!0),C(f2),x(x(r))?(M(),we(XR,{key:1})):ve("",!0),C(FR),C($R),(M(),we(gt(x(i))))],6)],64))}});var KR=Qe(WR,[["__scopeId","data-v-9417972e"]]);try{self["workbox:window:6.5.2"]&&_()}catch{}function of(e,t){return new Promise(function(n){var r=new MessageChannel;r.port1.onmessage=function(i){n(i.data)},e.postMessage(t,[r.port2])})}function YR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ZR(e,t){var n;if(typeof Symbol=="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=function(i,a){if(i){if(typeof i=="string")return Zp(i,a);var o=Object.prototype.toString.call(i).slice(8,-1);return o==="Object"&&i.constructor&&(o=i.constructor.name),o==="Map"||o==="Set"?Array.from(i):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Zp(i,a):void 0}}(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return(n=e[Symbol.iterator]()).next.bind(n)}try{self["workbox:core:6.5.2"]&&_()}catch{}var ec=function(){var e=this;this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})};function tc(e,t){var n=location.href;return new URL(e,n).href===new URL(t,n).href}var ia=function(e,t){this.type=e,Object.assign(this,t)};function Ks(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function JR(){}var QR={type:"SKIP_WAITING"};function Jp(e,t){if(!t)return e&&e.then?e.then(JR):Promise.resolve()}var qR=function(e){var t,n;function r(s,l){var u,c;return l===void 0&&(l={}),(u=e.call(this)||this).nn={},u.tn=0,u.rn=new ec,u.en=new ec,u.on=new ec,u.un=0,u.an=new Set,u.cn=function(){var f=u.fn,d=f.installing;u.tn>0||!tc(d.scriptURL,u.sn.toString())||performance.now()>u.un+6e4?(u.vn=d,f.removeEventListener("updatefound",u.cn)):(u.hn=d,u.an.add(d),u.rn.resolve(d)),++u.tn,d.addEventListener("statechange",u.ln)},u.ln=function(f){var d=u.fn,h=f.target,p=h.state,v=h===u.vn,g={sw:h,isExternal:v,originalEvent:f};!v&&u.mn&&(g.isUpdate=!0),u.dispatchEvent(new ia(p,g)),p==="installed"?u.wn=self.setTimeout(function(){p==="installed"&&d.waiting===h&&u.dispatchEvent(new ia("waiting",g))},200):p==="activating"&&(clearTimeout(u.wn),v||u.en.resolve(h))},u.dn=function(f){var d=u.hn,h=d!==navigator.serviceWorker.controller;u.dispatchEvent(new ia("controlling",{isExternal:h,originalEvent:f,sw:d,isUpdate:u.mn})),h||u.on.resolve(d)},u.gn=(c=function(f){var d=f.data,h=f.ports,p=f.source;return Ks(u.getSW(),function(){u.an.has(p)&&u.dispatchEvent(new ia("message",{data:d,originalEvent:f,ports:h,sw:p}))})},function(){for(var f=[],d=0;d<arguments.length;d++)f[d]=arguments[d];try{return Promise.resolve(c.apply(this,f))}catch(h){return Promise.reject(h)}}),u.sn=s,u.nn=l,navigator.serviceWorker.addEventListener("message",u.gn),u}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i,a,o=r.prototype;return o.register=function(s){var l=(s===void 0?{}:s).immediate,u=l!==void 0&&l;try{var c=this;return function(f,d){var h=f();return h&&h.then?h.then(d):d(h)}(function(){if(!u&&document.readyState!=="complete")return Jp(new Promise(function(f){return window.addEventListener("load",f)}))},function(){return c.mn=Boolean(navigator.serviceWorker.controller),c.yn=c.pn(),Ks(c.bn(),function(f){c.fn=f,c.yn&&(c.hn=c.yn,c.en.resolve(c.yn),c.on.resolve(c.yn),c.yn.addEventListener("statechange",c.ln,{once:!0}));var d=c.fn.waiting;return d&&tc(d.scriptURL,c.sn.toString())&&(c.hn=d,Promise.resolve().then(function(){c.dispatchEvent(new ia("waiting",{sw:d,wasWaitingBeforeRegister:!0}))}).then(function(){})),c.hn&&(c.rn.resolve(c.hn),c.an.add(c.hn)),c.fn.addEventListener("updatefound",c.cn),navigator.serviceWorker.addEventListener("controllerchange",c.dn),c.fn})})}catch(f){return Promise.reject(f)}},o.update=function(){try{return this.fn?Jp(this.fn.update()):void 0}catch(s){return Promise.reject(s)}},o.getSW=function(){return this.hn!==void 0?Promise.resolve(this.hn):this.rn.promise},o.messageSW=function(s){try{return Ks(this.getSW(),function(l){return of(l,s)})}catch(l){return Promise.reject(l)}},o.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&of(this.fn.waiting,QR)},o.pn=function(){var s=navigator.serviceWorker.controller;return s&&tc(s.scriptURL,this.sn.toString())?s:void 0},o.bn=function(){try{var s=this;return function(l,u){try{var c=l()}catch(f){return u(f)}return c&&c.then?c.then(void 0,u):c}(function(){return Ks(navigator.serviceWorker.register(s.sn,s.nn),function(l){return s.un=performance.now(),l})},function(l){throw l})}catch(l){return Promise.reject(l)}},i=r,(a=[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}])&&YR(i.prototype,a),r}(function(){function e(){this.Pn=new Map}var t=e.prototype;return t.addEventListener=function(n,r){this.Sn(n).add(r)},t.removeEventListener=function(n,r){this.Sn(n).delete(r)},t.dispatchEvent=function(n){n.target=this;for(var r,i=ZR(this.Sn(n.type));!(r=i()).done;)(0,r.value)(n)},t.Sn=function(n){return this.Pn.has(n)||this.Pn.set(n,new Set),this.Pn.get(n)},e}());function eA(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:r,onRegistered:i,onRegisterError:a}=e;let o,s;const l=async(u=!0)=>{u&&(o==null||o.addEventListener("controlling",c=>{c.isUpdate&&window.location.reload()})),s&&s.waiting&&await of(s.waiting,{type:"SKIP_WAITING"})};if("serviceWorker"in navigator){o=new qR("./sw.js",{scope:"./",type:"classic"}),o.addEventListener("activated",u=>{u.isUpdate||r==null||r()});{const u=()=>{n==null||n()};o.addEventListener("waiting",u),o.addEventListener("externalwaiting",u)}o.register({immediate:t}).then(u=>{s=u,i==null||i(u)}).catch(u=>{a==null||a(u)})}return l}function tA(e={}){const{immediate:t=!0,onNeedRefresh:n,onOfflineReady:r,onRegistered:i,onRegisterError:a}=e,o=Te(!1),s=Te(!1);return{updateServiceWorker:eA({immediate:t,onNeedRefresh(){o.value=!0,n==null||n()},onOfflineReady(){s.value=!0,r==null||r()},onRegistered:i,onRegisterError:a}),offlineReady:s,needRefresh:o}}document.title=_t.title;window.projInfo=_t;if(_t.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 Bx();const{globalBus:e,startGameLoop:t}=await sl(()=>Promise.resolve().then(function(){return Lx}),void 0),n=window.vue=Pf(KR);e.emit("setupVue",n),n.mount("#app"),tn(()=>{const r=Kf(),{updateServiceWorker:i}=tA({onNeedRefresh(){r.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(){i()}})},onOfflineReady(){r.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(a){a&&setInterval(a.update,60*60*1e3)}})}),t()});
diff --git a/assets/index.dd0f3e2c.js b/assets/index.dd0f3e2c.js
deleted file mode 100644
index 33e3b15..0000000
--- a/assets/index.dd0f3e2c.js
+++ /dev/null
@@ -1,17 +0,0 @@
-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.e833ee6e.js";import{p as Ki}from"./vue-textarea-autosize.35804eaf.js";import{s as Zi,u as fn}from"./vue-toastification.17ba848b.js";import{c as Ji,u as Xi,f as Vn}from"./@pixi.b4dff018.js";import"./pixi.js.540c9a76.js";import{v as Qi,n as er}from"./workbox-window.60401ce8.js";import"./earcut.89ec12e6.js";import"./vue.bc20e238.js";import"./sortablejs.dd463b56.js";import"./promise-polyfill.7a7f9c83.js";import"./object-assign.9840bf7d.js";import"./eventemitter3.dc5195d7.js";import"./ismobilejs.5c6954b9.js";import"./url.08d1c71e.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)<t*Math.abs(i))return i;n=i}throw Error(`Iteration failed to converge: ${e.toString()}`)};function Bn(e,t=1e-10){let n,i,r,a;if(!Number.isFinite(e.mag)||e===f.dZero)return e;if(e===f.dOne)return m(Yn);f.abs(e),n=f.ln(e);for(let o=0;o<100;++o){if(i=f.exp(-n),r=n.sub(e.mul(i)),a=n.sub(r.div(n.add(1).sub(n.add(2).mul(r).div(f.mul(2,n).add(2))))),f.abs(a.sub(n)).lt(f.abs(a).mul(t)))return a;n=a}throw Error(`Iteration failed to converge: ${e.toString()}`)}const _=class{constructor(e){this.sign=Number.NaN,this.mag=Number.NaN,this.layer=Number.NaN,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)}get m(){if(this.sign===0)return 0;if(this.layer===0){const e=Math.floor(Math.log10(this.mag));let t;return this.mag===5e-324?t=5:t=this.mag/Mr(e),this.sign*t}else if(this.layer===1){const e=this.mag-Math.floor(this.mag);return this.sign*Math.pow(10,e)}else return this.sign}set m(e){this.layer<=2?this.fromMantissaExponent(e,this.e):(this.sign=Math.sign(e),this.sign===0&&(this.layer,this.exponent))}get e(){return this.sign===0?0:this.layer===0?Math.floor(Math.log10(this.mag)):this.layer===1?Math.floor(this.mag):this.layer===2?Math.floor(Math.sign(this.mag)*Math.pow(10,Math.abs(this.mag))):this.mag*Number.POSITIVE_INFINITY}set e(e){this.fromMantissaExponent(this.m,e)}get s(){return this.sign}set s(e){e===0?(this.sign=0,this.layer=0,this.mag=0):this.sign=e}get mantissa(){return this.m}set mantissa(e){this.m=e}get exponent(){return this.e}set exponent(e){this.e=e}static fromComponents(e,t,n){return new _().fromComponents(e,t,n)}static fromComponents_noNormalize(e,t,n){return new _().fromComponents_noNormalize(e,t,n)}static fromMantissaExponent(e,t){return new _().fromMantissaExponent(e,t)}static fromMantissaExponent_noNormalize(e,t){return new _().fromMantissaExponent_noNormalize(e,t)}static fromDecimal(e){return new _().fromDecimal(e)}static fromNumber(e){return new _().fromNumber(e)}static fromString(e){return new _().fromString(e)}static fromValue(e){return new _().fromValue(e)}static fromValue_noAlloc(e){return e instanceof _?e:new _(e)}static abs(e){return m(e).abs()}static neg(e){return m(e).neg()}static negate(e){return m(e).neg()}static negated(e){return m(e).neg()}static sign(e){return m(e).sign}static sgn(e){return m(e).sign}static round(e){return m(e).round()}static floor(e){return m(e).floor()}static ceil(e){return m(e).ceil()}static trunc(e){return m(e).trunc()}static add(e,t){return m(e).add(t)}static plus(e,t){return m(e).add(t)}static sub(e,t){return m(e).sub(t)}static subtract(e,t){return m(e).sub(t)}static minus(e,t){return m(e).sub(t)}static mul(e,t){return m(e).mul(t)}static multiply(e,t){return m(e).mul(t)}static times(e,t){return m(e).mul(t)}static div(e,t){return m(e).div(t)}static divide(e,t){return m(e).div(t)}static recip(e){return m(e).recip()}static reciprocal(e){return m(e).recip()}static reciprocate(e){return m(e).reciprocate()}static cmp(e,t){return m(e).cmp(t)}static cmpabs(e,t){return m(e).cmpabs(t)}static compare(e,t){return m(e).cmp(t)}static isNaN(e){return e=m(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag)}static isFinite(e){return e=m(e),isFinite(e.sign)&&isFinite(e.layer)&&isFinite(e.mag)}static eq(e,t){return m(e).eq(t)}static equals(e,t){return m(e).eq(t)}static neq(e,t){return m(e).neq(t)}static notEquals(e,t){return m(e).notEquals(t)}static lt(e,t){return m(e).lt(t)}static lte(e,t){return m(e).lte(t)}static gt(e,t){return m(e).gt(t)}static gte(e,t){return m(e).gte(t)}static max(e,t){return m(e).max(t)}static min(e,t){return m(e).min(t)}static minabs(e,t){return m(e).minabs(t)}static maxabs(e,t){return m(e).maxabs(t)}static clamp(e,t,n){return m(e).clamp(t,n)}static clampMin(e,t){return m(e).clampMin(t)}static clampMax(e,t){return m(e).clampMax(t)}static cmp_tolerance(e,t,n){return m(e).cmp_tolerance(t,n)}static compare_tolerance(e,t,n){return m(e).cmp_tolerance(t,n)}static eq_tolerance(e,t,n){return m(e).eq_tolerance(t,n)}static equals_tolerance(e,t,n){return m(e).eq_tolerance(t,n)}static neq_tolerance(e,t,n){return m(e).neq_tolerance(t,n)}static notEquals_tolerance(e,t,n){return m(e).notEquals_tolerance(t,n)}static lt_tolerance(e,t,n){return m(e).lt_tolerance(t,n)}static lte_tolerance(e,t,n){return m(e).lte_tolerance(t,n)}static gt_tolerance(e,t,n){return m(e).gt_tolerance(t,n)}static gte_tolerance(e,t,n){return m(e).gte_tolerance(t,n)}static pLog10(e){return m(e).pLog10()}static absLog10(e){return m(e).absLog10()}static log10(e){return m(e).log10()}static log(e,t){return m(e).log(t)}static log2(e){return m(e).log2()}static ln(e){return m(e).ln()}static logarithm(e,t){return m(e).logarithm(t)}static pow(e,t){return m(e).pow(t)}static pow10(e){return m(e).pow10()}static root(e,t){return m(e).root(t)}static factorial(e,t){return m(e).factorial()}static gamma(e,t){return m(e).gamma()}static lngamma(e,t){return m(e).lngamma()}static exp(e){return m(e).exp()}static sqr(e){return m(e).sqr()}static sqrt(e){return m(e).sqrt()}static cube(e){return m(e).cube()}static cbrt(e){return m(e).cbrt()}static tetrate(e,t=2,n=L(1,0,1)){return m(e).tetrate(t,n)}static iteratedexp(e,t=2,n=L(1,0,1)){return m(e).iteratedexp(t,n)}static iteratedlog(e,t=10,n=1){return m(e).iteratedlog(t,n)}static layeradd10(e,t){return m(e).layeradd10(t)}static layeradd(e,t,n=10){return m(e).layeradd(t,n)}static slog(e,t=10){return m(e).slog(t)}static lambertw(e){return m(e).lambertw()}static ssqrt(e){return m(e).ssqrt()}static pentate(e,t=2,n=L(1,0,1)){return m(e).pentate(t,n)}static affordGeometricSeries(e,t,n,i){return this.affordGeometricSeries_core(m(e),m(t),m(n),i)}static sumGeometricSeries(e,t,n,i){return this.sumGeometricSeries_core(e,m(t),m(n),i)}static affordArithmeticSeries(e,t,n,i){return this.affordArithmeticSeries_core(m(e),m(t),m(n),m(i))}static sumArithmeticSeries(e,t,n,i){return this.sumArithmeticSeries_core(m(e),m(t),m(n),m(i))}static efficiencyOfPurchase(e,t,n){return this.efficiencyOfPurchase_core(m(e),m(t),m(n))}static randomDecimalForTesting(e){if(Math.random()*20<1)return L(0,0,0);const t=Math.random()>.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<Sr)return this.layer+=1,this.mag=Math.log10(this.mag),this;let e=Math.abs(this.mag),t=Math.sign(this.mag);if(e>=xr)return this.layer+=1,this.mag=t*Math.log10(e),this;for(;e<Nr&&this.layer>0;)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<c[1].length;++w){const S=c[1].charCodeAt(w);if(S>=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.sign<t.sign?-1:this.sign*this.cmpabs(e)}cmpabs(e){const t=m(e),n=this.mag>0?this.layer:-this.layer,i=t.mag>0?t.layer:-t.layer;return n>i?1:n<i?-1:this.mag>t.mag?1:this.mag<t.mag?-1:0}compare(e){return this.cmp(e)}isNan(){return isNaN(this.sign)||isNaN(this.layer)||isNaN(this.mag)}isFinite(){return isFinite(this.sign)&&isFinite(this.layer)&&isFinite(this.mag)}eq(e){const t=m(e);return this.sign===t.sign&&this.layer===t.layer&&this.mag===t.mag}equals(e){return this.eq(e)}neq(e){return!this.eq(e)}notEquals(e){return this.neq(e)}lt(e){return this.cmp(e)===-1}lte(e){return!this.gt(e)}gt(e){return this.cmp(e)===1}gte(e){return!this.lt(e)}max(e){const t=m(e);return this.lt(t)?t:this}min(e){const t=m(e);return this.gt(t)?t:this}maxabs(e){const t=m(e);return this.cmpabs(t)<0?t:this}minabs(e){const t=m(e);return this.cmpabs(t)>0?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.layer<n.layer&&(i=nn(i)),Math.abs(i-r)<=t*Math.max(Math.abs(i),Math.abs(r))}equals_tolerance(e,t){return this.eq_tolerance(e,t)}neq_tolerance(e,t){return!this.eq_tolerance(e,t)}notEquals_tolerance(e,t){return this.neq_tolerance(e,t)}lt_tolerance(e,t){const n=m(e);return!this.eq_tolerance(n,t)&&this.lt(n)}lte_tolerance(e,t){const n=m(e);return this.eq_tolerance(n,t)||this.lt(n)}gt_tolerance(e,t){const n=m(e);return!this.eq_tolerance(n,t)&&this.gt(n)}gte_tolerance(e,t){const n=m(e);return this.eq_tolerance(n,t)||this.gt(n)}pLog10(){return this.lt(_.dZero)?_.dZero:this.log10()}absLog10(){return this.sign===0?_.dNaN:this.layer>0?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;r<e;++r){const a=t;if(t=this.pow(t),a.eq(t))return t}if(i!=0){const r=this.pow(t);return t.mul(1-i).add(r.mul(i))}return t}i!==0&&(t.eq(_.dOne)?this.gt(10)?t=this.pow(i):(t=m(_.tetrate_critical(this.toNumber(),i)),this.lt(2)&&(t=t.sub(1).mul(this.minus(1)).plus(1))):this.eq(10)?t=t.layeradd10(i):t=t.layeradd(i,this));for(let r=0;r<e;++r){if(t=this.pow(t),!isFinite(t.layer)||!isFinite(t.mag))return t.normalize();if(t.layer-this.layer>3)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;a<t;++a){if(n=n.log(e),!isFinite(n.layer)||!isFinite(n.mag))return n.normalize();if(a>1e4)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;s<Qe.length;++s)if(Qe[s]==e){i=n[s][Math.floor(t)],r=n[s][Math.ceil(t)];break}else if(Qe[s]<e&&Qe[s+1]>e){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;r<e;++r){if(t=this.tetrate(t.toNumber()),!isFinite(t.layer)||!isFinite(t.mag))return t.normalize();if(r>10)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}</${t}>`),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></span>","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-7a52c154"]]);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<br>${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+=`<br><i><br><br><br>${ve(te.amount.value)} Exhancers</i>`),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:<br>"+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.fa7b40bf.css b/assets/index.fa7b40bf.css
deleted file mode 100644
index 5e3e3ca..0000000
--- a/assets/index.fa7b40bf.css
+++ /dev/null
@@ -1 +0,0 @@
-.table{display:flex;flex-flow:column wrap;justify-content:center;align-items:center;max-width:100%;margin:0 auto}.table+.table{margin-top:10px}.row{display:flex;flex-flow:row wrap;justify-content:center;align-items:stretch;max-width:100%;margin:0 10px}.row>:not(.feature){margin:0;display:flex}.col{display:flex;flex-flow:column wrap;justify-content:center;align-items:center;height:100%;margin:10px 0}.row.mergeAdjacent>.feature:not(.dontMerge),.row.mergeAdjacent>.tooltip-container>.feature:not(.dontMerge){margin-left:0;margin-right:0;border-radius:0}.row.mergeAdjacent>.feature:not(.dontMerge):first-child,.row.mergeAdjacent>.tooltip-container:first-child>.feature:not(.dontMerge){border-radius:var(--border-radius) 0 0 var(--border-radius)}.row.mergeAdjacent>.feature:not(.dontMerge):last-child,.row.mergeAdjacent>.tooltip-container:last-child>.feature:not(.dontMerge){border-radius:0 var(--border-radius) var(--border-radius) 0}.row.mergeAdjacent>.feature:not(.dontMerge):first-child:last-child,.row.mergeAdjacent>.tooltip-container:first-child:last-child>.feature:not(.dontMerge){border-radius:var(--border-radius)}.col.mergeAdjacent .feature:not(.dontMerge){margin-top:0;margin-bottom:0;border-radius:0}.col.mergeAdjacent .feature:not(.dontMerge):first-child{border-radius:var(--border-radius) var(--border-radius) 0 0}.col.mergeAdjacent .feature:not(.dontMerge):last-child{border-radius:0 0 var(--border-radius) var(--border-radius)}.col.mergeAdjacent .feature:not(.dontMerge):first-child:last-child{border-radius:var(--border-radius)}.resize-listener[data-v-6a08ac80]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;z-index:-10;pointer-events:none}.modal-mask{position:fixed;z-index:9998;top:0;left:0;bottom:0;right:0;background-color:#00000080;transition:opacity .3s ease}.modal-wrapper{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.modal-container{width:640px;max-width:95vw;max-height:95vh;background-color:var(--background);padding:20px;border-radius:5px;transition:all .3s ease;text-align:left;border:var(--modal-border);box-sizing:border-box;display:flex;flex-direction:column}.modal-header{width:100%}.modal-body{margin:20px 0;width:100%;overflow-y:auto;overflow-x:hidden}.modal-footer{width:100%}.modal-default-footer{display:flex}.modal-default-flex-grow{flex-grow:1}.modal-enter-from,.modal-leave-active{opacity:0}.modal-enter-from .modal-container,.modal-leave-active .modal-container{-webkit-transform:scale(1.1);transform:scale(1.1)}.layer-container[data-v-34c9d881]{min-width:100%;min-height:100%;margin:0;flex-grow:1;display:flex;isolation:isolate}.layer-tab[data-v-34c9d881]:not(.minimized){padding-top:20px;padding-bottom:20px;min-height:100%;flex-grow:1;text-align:center;position:relative}.inner-tab>.layer-container>.layer-tab[data-v-34c9d881]:not(.minimized){padding-top:50px}.layer-tab.minimized[data-v-34c9d881]{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;padding:55px 0 0;margin:0;cursor:pointer;font-size:40px;color:var(--foreground);border:none;background-color:transparent}.layer-tab.minimized div[data-v-34c9d881]{margin:0;writing-mode:vertical-rl;padding-left:10px;width:50px}.inner-tab>.layer-container>.layer-tab[data-v-34c9d881]:not(.minimized){margin:-50px -10px;padding:50px 10px}.modal-body .layer-tab[data-v-34c9d881]{padding-bottom:0}.modal-body .layer-tab[data-v-34c9d881]:not(.hasSubtabs){padding-top:0}.minimize[data-v-34c9d881]{position:sticky;top:6px;right:9px;z-index:7;line-height:30px;border:none;background:var(--background);box-shadow:var(--background) 0 2px 3px 5px;border-radius:50%;color:var(--foreground);font-size:40px;cursor:pointer;margin-top:-44px;margin-right:-30px}.minimized+.minimize[data-v-34c9d881]{transform:rotate(-90deg);top:10px;right:18px;pointer-events:none}.goBack[data-v-34c9d881]{position:sticky;top:6px;left:20px;line-height:30px;margin-top:-50px;margin-left:-35px;border:none;background:var(--background);box-shadow:var(--background) 0 2px 3px 5px;border-radius:50%;color:var(--foreground);font-size:40px;cursor:pointer;z-index:7}.goBack[data-v-34c9d881]:hover{transform:scale(1.1);text-shadow:0 0 7px var(--foreground)}details[data-v-4b4bda40]{margin:10px 0;padding-left:18px}summary[data-v-4b4bda40]{cursor:pointer;margin-bottom:10px;margin-left:-18px}ul[data-v-4b4bda40]{margin:var(--feature-margin) 0;background:var(--raised-background);border:2px solid rgba(0,0,0,.125);padding:5px 5px 5px 15px;list-style:inside}li[data-v-4b4bda40]{margin:8px 0}li[data-v-4b4bda40]:before{padding:2px 8px;margin-right:8px;border-radius:var(--border-radius)}.feature[data-v-4b4bda40]:before{content:"Feature";background:var(--accent1)}.fix[data-v-4b4bda40]:before{content:"Fix";background:var(--accent2)}.balancing[data-v-4b4bda40]:before{content:"Balancing";background:var(--accent3)}.breaking[data-v-4b4bda40]:before{content:"Breaking";background:var(--danger)}.tooltip-container[data-v-6102fa3a]{position:relative;--xoffset: 0px;--yoffset: 0px;text-shadow:none!important}.tooltip[data-v-6102fa3a],.tooltip[data-v-6102fa3a]:after{pointer-events:none;position:absolute}.tooltip[data-v-6102fa3a]{text-align:center;width:150px;font-size:14px;line-height:1.2;bottom:calc(100% + var(--yoffset));left:calc(50% + var(--xoffset));margin-bottom:5px;transform:translate(-50%);padding:7px;border-radius:3px;background-color:var(--tooltip-background);color:var(--points);z-index:100!important;word-break:break-word}.tooltip[data-v-6102fa3a] hr{margin:var(--feature-margin) 0}.shown[data-v-6102fa3a]{z-index:10}.fade-enter-from[data-v-6102fa3a],.fade-leave-to[data-v-6102fa3a]{opacity:0}.tooltip[data-v-6102fa3a]:after{content:" ";position:absolute;top:100%;bottom:100%;left:calc(50% - var(--xoffset));width:0;margin-left:-5px;border-width:5px;border-style:solid;border-color:var(--tooltip-background) transparent transparent transparent}.tooltip.left[data-v-6102fa3a],.side-nodes .tooltip[data-v-6102fa3a]:not(.right):not(.bottom):not(.top){bottom:calc(50% + var(--yoffset));left:unset;right:calc(100% + var(--xoffset));margin-bottom:unset;margin-right:5px;transform:translateY(50%)}.tooltip.left[data-v-6102fa3a]:after,.side-nodes .tooltip[data-v-6102fa3a]:not(.right):not(.bottom):not(.top):after{top:calc(50% + var(--yoffset));bottom:unset;left:100%;right:100%;margin-left:unset;margin-top:-5px;border-color:transparent transparent transparent var(--tooltip-background)}.tooltip.right[data-v-6102fa3a]{bottom:calc(50% + var(--yoffset));left:calc(100% + var(--xoffset));margin-bottom:unset;margin-left:5px;transform:translateY(50%)}.tooltip.right[data-v-6102fa3a]:after{top:calc(50% + var(--yoffset));left:0;right:100%;margin-left:-10px;margin-top:-5px;border-color:transparent var(--tooltip-background) transparent transparent}.tooltip.bottom[data-v-6102fa3a]{top:calc(100% + var(--yoffset));bottom:unset;left:calc(50% + var(--xoffset));margin-bottom:unset;margin-top:5px;transform:translate(-50%)}.tooltip.bottom[data-v-6102fa3a]:after{top:0;margin-top:-10px;border-color:transparent transparent var(--tooltip-background) transparent}.pinned[data-v-6102fa3a]{position:absolute;right:-5px;top:-5px;transform:rotate(45deg)}.info-modal-header[data-v-7dec2dec]{display:flex;margin:-20px -20px 0;background:var(--raised-background);align-items:center}.info-modal-header *[data-v-7dec2dec]{margin:0}.info-modal-logo[data-v-7dec2dec]{height:4em;width:4em}.info-modal-title[data-v-7dec2dec]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.info-modal-discord-link[data-v-7dec2dec]{display:flex;align-items:center}.info-modal-discord[data-v-7dec2dec]{margin:0 4px 0 0}.field{display:flex;position:relative;min-height:2em;margin:10px 0;user-select:none;justify-content:space-between;align-items:center}.field>*{margin:0}.vue-select{width:50%;border-radius:var(--border-radius)}.field-buttons .vue-select{width:unset}.vue-select,.vue-dropdown{border-color:var(--outline)}.vue-dropdown{background:var(--raised-background)}.vue-dropdown-item{color:var(--foreground)}.vue-dropdown-item,.vue-dropdown-item *{transition-duration:0s}.vue-dropdown-item.highlighted{background-color:var(--highlighted)}.vue-dropdown-item.selected,.vue-dropdown-item.highlighted.selected{background-color:var(--bought)}.vue-input input::placeholder{color:var(--link)}.field[data-v-2b109500]{cursor:pointer}input[data-v-2b109500]{appearance:none;pointer-events:none}span[data-v-2b109500]{width:100%;position:relative}input+span[data-v-2b109500]:before{content:"";float:right;margin:5px 0 5px 10px;border-radius:7px;width:36px;height:14px;background-color:var(--outline);opacity:.38;vertical-align:top;transition:background-color .2s,opacity .2s}input+span[data-v-2b109500]:after{content:"";position:absolute;top:2px;right:16px;border-radius:50%;width:20px;height:20px;background-color:var(--locked);box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;transition:background-color .2s,transform .2s}input:checked+span[data-v-2b109500]:before{background-color:var(--link);opacity:.6}input:checked+span[data-v-2b109500]:after{background-color:var(--link);transform:translate(16px)}input:active+span[data-v-2b109500]:before{background-color:var(--link);opacity:.6}input:checked:active+span[data-v-2b109500]:before{background-color:var(--outline);opacity:.38}input:disabled+span[data-v-2b109500]{color:#000;opacity:.38;cursor:default}input:disabled+span[data-v-2b109500]:before{background-color:var(--outline);opacity:.38}input:checked:disabled+span[data-v-2b109500]:before{background-color:var(--link);opacity:.6}.header[data-v-bc13791c]{margin-bottom:-10px}*[data-v-bc13791c] .tooltip-container{display:inline;margin-left:5px}form[data-v-d74adb0a]{margin:0;width:100%}.field>*[data-v-d74adb0a]{margin:0}input[data-v-d74adb0a]{width:50%;outline:none;border:solid 1px var(--outline);background-color:unset;border-radius:var(--border-radius)}.fullWidth[data-v-d74adb0a]{width:100%}.container[data-v-2f8ef34c]{display:flex;align-items:center;background:var(--raised-background);box-shadow:var(--raised-background) 0 2px 3px 5px}.container.confirming button[data-v-2f8ef34c]{font-size:1em}.container>*[data-v-2f8ef34c]{margin:0 4px}.danger,.button.danger{position:relative;border:solid 2px var(--danger);border-right-width:16px}.danger:after{position:absolute;content:"!";color:#fff;right:-13px}.feedback[data-v-01a1b95c]{position:relative}.feedback[data-v-01a1b95c]:after{position:absolute;left:calc(100% + 5px);top:50%;transform:translateY(-50%);content:"\2714";opacity:0;pointer-events:none;box-shadow:inset 0 0 0 35px #6f94b600;text-shadow:none}.feedback.left[data-v-01a1b95c]:after{left:unset;right:calc(100% + 5px)}.feedback.activated[data-v-01a1b95c]:after{animation:feedback-01a1b95c .5s ease-out forwards}@keyframes feedback-01a1b95c{0%{opacity:1;transform:scale3d(.4,.4,1),translateY(-50%)}80%{opacity:.1}to{opacity:0;transform:scale3d(1.2,1.2,1),translateY(-50%)}}.save[data-v-0136bef4]{position:relative;border:solid 4px var(--outline);padding:4px;background:var(--raised-background);margin:var(--feature-margin);display:flex;align-items:center;min-height:30px}.save.active[data-v-0136bef4]{border-color:var(--bought)}.open[data-v-0136bef4]{display:inline;margin:0;padding-left:0}.handle[data-v-0136bef4]{flex-grow:0;margin-right:8px;margin-left:0;cursor:pointer}.details[data-v-0136bef4]{margin:0 80px 0 0;flex-grow:1}.error[data-v-0136bef4]{font-size:.8em;color:var(--danger)}.save-version[data-v-0136bef4]{margin-left:4px;font-size:.7em;opacity:.7}.actions[data-v-0136bef4]{position:absolute;top:0;bottom:0;right:4px;display:flex;padding:4px;z-index:1}.editname[data-v-0136bef4]{margin:0}.save button{transition-duration:0s}.save .actions button{display:flex;font-size:1.2em}.save .actions button .material-icons{font-size:unset}.save .button.danger{display:flex;align-items:center;padding:4px}.save .field,.field form[data-v-3b9991aa],.field .field-title[data-v-3b9991aa],.field .field-buttons[data-v-3b9991aa]{margin:0}.field-buttons[data-v-3b9991aa]{display:flex}.field-buttons .field[data-v-3b9991aa]{margin:0 0 0 8px}.modal-footer[data-v-3b9991aa]{margin-top:-20px}.footer[data-v-3b9991aa]{display:flex;margin-top:20px}.importingFailed input{color:red}.field-buttons .v-select{width:220px}.presets .vue-select[aria-expanded=true] vue-dropdown{visibility:hidden}.nav[data-v-4a3f8425]{background-color:var(--raised-background);display:flex;left:0;right:0;top:0;height:46px;width:100%;border-bottom:4px solid var(--outline)}.nav>*[data-v-4a3f8425]{height:46px;width:46px;display:flex;cursor:pointer;flex-shrink:0}.nav>.banner[data-v-4a3f8425]{height:100%;width:unset}.overlay-nav[data-v-4a3f8425]{position:fixed;top:10px;left:10px;display:flex;flex-direction:column;z-index:2}.overlay-nav>*[data-v-4a3f8425]{height:50px;width:50px;display:flex;cursor:pointer;margin:0;align-items:center;justify-content:center}.title[data-v-4a3f8425]{font-size:36px;text-align:left;margin-left:12px;cursor:unset}.nav>.title[data-v-4a3f8425]{width:unset;flex-shrink:1;overflow:hidden;white-space:nowrap}.nav .saves[data-v-4a3f8425],.nav .info[data-v-4a3f8425]{display:flex}.tooltip-container[data-v-4a3f8425]{width:100%;height:100%;display:flex}.overlay-nav .discord[data-v-4a3f8425]{position:relative}.discord img[data-v-4a3f8425]{width:100%;height:100%}.discord-links[data-v-4a3f8425]{position:fixed;top:45px;padding:20px;right:-280px;width:200px;transition:right .25s ease;background:var(--raised-background);z-index:10}.overlay-nav .discord-links[data-v-4a3f8425]{position:absolute;left:-280px;right:unset;transition:left .25s ease}.overlay-nav .discord:hover .discord-links[data-v-4a3f8425]{left:-10px}.discord-links li[data-v-4a3f8425]{margin-bottom:4px}.discord-links li[data-v-4a3f8425]:first-child{font-size:1.2em}*:not(.overlay-nav) .discord:hover .discord-links[data-v-4a3f8425]{right:0}.material-icons[data-v-4a3f8425]{font-size:36px}.material-icons[data-v-4a3f8425]:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--foreground)}.nav .version-container[data-v-4a3f8425]{display:flex;height:25px;margin-bottom:0;margin-left:10px}.overlay-nav .version-container[data-v-4a3f8425]{width:unset;height:25px}.version[data-v-4a3f8425]{color:var(--points)}.version:hover span[data-v-4a3f8425]{text-shadow:5px 0 10px var(--points),-3px 0 12px var(--points)}.nav>div>a[data-v-4a3f8425],.overlay-nav>div>a[data-v-4a3f8425]{color:var(--foreground);text-shadow:none}.tabs-container[data-v-4cb9ce0f]{width:100vw;flex-grow:1;overflow-x:auto;overflow-y:hidden;display:flex}.tabs-container[data-v-4cb9ce0f]:not(.useHeader){width:calc(100vw - 50px);margin-left:50px}.tab[data-v-4cb9ce0f]{position:relative;height:100%;flex-grow:1;transition-duration:0s;overflow-y:auto;overflow-x:hidden}.inner-tab[data-v-4cb9ce0f]{padding:50px 10px;min-height:calc(100% - 100px);display:flex;flex-direction:column;margin:0;flex-grow:1}.tab+.tab>.inner-tab[data-v-4cb9ce0f]{border-left:solid 4px var(--outline)}.tab hr{height:4px;border:none;background:var(--outline);margin:var(--feature-margin) 0}.tab .modal-body hr{margin:7px 0}svg[data-v-89b4b00a]{background:#2e3440}svg .svg-elem-1[data-v-89b4b00a]{stroke-dashoffset:2648.758056640625px;stroke-dasharray:1324.3790283203125px;transition:stroke-dashoffset 1s cubic-bezier(.47,0,.745,.715) 0s}svg.v-enter-from .svg-elem-1[data-v-89b4b00a],svg.v-leave-to .svg-elem-1[data-v-89b4b00a]{stroke-dashoffset:1324.3790283203125px}svg .svg-elem-2[data-v-89b4b00a]{stroke-dashoffset:680.4000854492188px;stroke-dasharray:340.2000427246094px;transition:stroke-dashoffset 1s ease-out .4s}svg.v-enter-from .svg-elem-2[data-v-89b4b00a],svg.v-leave-to .svg-elem-2[data-v-89b4b00a]{stroke-dashoffset:340.2000427246094px}svg .svg-elem-3[data-v-89b4b00a]{stroke-dashoffset:76.21031951904297px;stroke-dasharray:38.105159759521484px;transition:stroke-dashoffset 1s ease-out .8s}svg.v-enter-from .svg-elem-3[data-v-89b4b00a],svg.v-leave-to .svg-elem-3[data-v-89b4b00a]{stroke-dashoffset:38.105159759521484px}svg .svg-elem-4[data-v-89b4b00a]{stroke-dashoffset:175.18072509765625px;stroke-dasharray:87.59036254882812px;transition:stroke-dashoffset 1s cubic-bezier(.47,0,.745,.715) .36s}svg.v-enter-from .svg-elem-4[data-v-89b4b00a],svg.v-leave-to .svg-elem-4[data-v-89b4b00a]{stroke-dashoffset:87.59036254882812px}svg .svg-elem-5[data-v-89b4b00a]{stroke-dashoffset:671.9447021484375px;stroke-dasharray:335.97235107421875px;transition:stroke-dashoffset 1s ease-out .8s}svg.v-enter-from .svg-elem-5[data-v-89b4b00a],svg.v-leave-to .svg-elem-5[data-v-89b4b00a]{stroke-dashoffset:335.97235107421875px}svg .svg-elem-6[data-v-89b4b00a]{stroke-dashoffset:173.96141052246094px;stroke-dasharray:86.98070526123047px;transition:stroke-dashoffset 1s ease-out 1s}svg.v-enter-from .svg-elem-6[data-v-89b4b00a],svg.v-leave-to .svg-elem-6[data-v-89b4b00a]{stroke-dashoffset:86.98070526123047px}svg .svg-elem-7[data-v-89b4b00a]{stroke-dashoffset:172.99151611328125px;stroke-dasharray:86.49575805664062px;transition:stroke-dashoffset 1s ease-out .85s}svg.v-enter-from .svg-elem-7[data-v-89b4b00a],svg.v-leave-to .svg-elem-7[data-v-89b4b00a]{stroke-dashoffset:86.49575805664062px}.resize-listener[data-v-c139d80e]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;z-index:-10;pointer-events:none}svg[data-v-c139d80e]{position:absolute;top:5px;left:5px;right:5px;bottom:5px;z-index:-10;pointer-events:none}.left-side-nodes[data-v-39ca96d0]{position:absolute;left:15px;top:65px}.side-nodes[data-v-39ca96d0]{position:absolute;right:15px;top:65px}.left-side-nodes[data-v-39ca96d0] .treeNode,.side-nodes[data-v-39ca96d0] .treeNode{margin:20px auto}.small[data-v-39ca96d0] .treeNode{height:60px;width:60px}.small[data-v-39ca96d0] .treeNode>*:first-child{font-size:30px}.mark[data-v-2207999f]{position:absolute;left:-25px;top:-10px;width:30px;height:30px;z-index:1;pointer-events:none;margin-left:.9em;margin-right:.9em;margin-bottom:1.2em;border-right:.3em solid transparent;border-bottom:.7em solid transparent;border-left:.3em solid transparent;font-size:10px}.star[data-v-2207999f]{left:-10px;width:0;height:0;margin-left:.9em;margin-right:.9em;margin-bottom:1.2em;border-right:.3em solid transparent;border-bottom:.7em solid #ffcc00;border-left:.3em solid transparent;font-size:10px;pointer-events:none}.star[data-v-2207999f]:before,.star[data-v-2207999f]:after{content:"";width:0;height:0;position:absolute;top:.6em;left:-1em;border-right:1em solid transparent;border-bottom:.7em solid #ffcc00;border-left:1em solid transparent;transform:rotate(-35deg)}.star[data-v-2207999f]:after{transform:rotate(35deg)}.node[data-v-2cb1bb79]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.treeNode[data-v-1c0c107d]{height:100px;width:100px;border-radius:50%;padding:0;margin:0 10px}.treeNode>*[data-v-1c0c107d]:first-child{width:100%;height:100%;border:2px solid rgba(0,0,0,.125);border-radius:inherit;font-size:40px;color:#00000080;text-shadow:2px 2px 4px rgba(0,0,0,.25);box-shadow:-4px -4px 4px #00000040 inset,0 0 20px var(--background);text-transform:capitalize;display:flex}.treeNode>*:first-child>*[data-v-1c0c107d]{pointer-events:none}.feature:not(li),.feature:not(li) button{position:relative;padding:5px;border-radius:var(--border-radius);border:2px solid rgba(0,0,0,.125);margin:var(--feature-margin);box-sizing:border-box;color:var(--feature-foreground);z-index:0;transition:all .5s,z-index 0s .5s}.can,.can button{background-color:var(--layer-color);cursor:pointer}.can:hover,.can:hover button{transform:scale(1.15);box-shadow:0 0 20px var(--points);z-index:1;transition:all .5s,z-index 0s}.locked,.locked button{background-color:var(--locked);cursor:not-allowed}.bought,.bought button{background-color:var(--bought);cursor:default}.achievement[data-v-58163dab]{height:90px;width:90px;font-size:10px;color:#fff;text-shadow:0 0 2px #000000}.tile[data-v-26ac0e82]{min-height:80px;width:80px;font-size:10px;background-color:var(--layer-color)}.tile>*[data-v-26ac0e82]{pointer-events:none}.clickable[data-v-5e7c90cf]{min-height:120px;width:120px;font-size:10px}.clickable.small[data-v-5e7c90cf]{min-height:unset}.clickable>*[data-v-5e7c90cf]{pointer-events:none}.modifier-toggle{padding-right:10px;transform:translateY(-1px);display:inline-block}.modifier-toggle.collapsed{transform:translate(-5px,-5px) rotate(-90deg)}.infobox[data-v-338c9154]{position:relative;width:600px;max-width:95%;margin-top:0;text-align:left;border-style:solid;border-width:0px;box-sizing:border-box;border-radius:5px}.infobox.stacked[data-v-338c9154]{border-width:4px}.infobox:not(.stacked)+.infobox[data-v-338c9154]:not(.stacked){margin-top:20px}.infobox[data-v-338c9154]+:not(.infobox){margin-top:10px}.title[data-v-338c9154]{font-size:24px;color:#000;cursor:pointer;border:none;width:auto;text-align:left;padding:4px 4px 4px 30px}.infobox:not(.stacked) .title[data-v-338c9154]{border-top-left-radius:5px;border-top-right-radius:5px}.infobox.stacked+.infobox.stacked[data-v-338c9154]{border-top-left-radius:0;border-top-right-radius:0;margin-top:-5px}.stacked .title[data-v-338c9154]{width:100%}.collapsed:not(.stacked) .title[data-v-338c9154]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background-color:inherit}.toggle[data-v-338c9154]{position:absolute;left:10px}.collapsed .toggle[data-v-338c9154]{transform:rotate(-90deg)}.body[data-v-338c9154]{transition-duration:.5s;border-radius:0 5px 5px}.infobox:not(.stacked) .body[data-v-338c9154]{padding:4px}.body>*[data-v-338c9154]{padding:8px;width:100%;display:block;box-sizing:border-box;border-radius:0 5px 5px;background-color:var(--background)}.not-fullscreen[data-v-7a52c154],.resize-listener[data-v-7a52c154]{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/is-plain-object.906d88e8.js b/assets/is-plain-object.906d88e8.js
deleted file mode 100644
index d4e4dc0..0000000
--- a/assets/is-plain-object.906d88e8.js
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function n(t){return Object.prototype.toString.call(t)==="[object Object]"}function o(t){var e,r;return n(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(n(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}export{o as i};
diff --git a/assets/ismobilejs.5c6954b9.js b/assets/ismobilejs.5c6954b9.js
deleted file mode 100644
index e1313fc..0000000
--- a/assets/ismobilejs.5c6954b9.js
+++ /dev/null
@@ -1 +0,0 @@
-var p=/iPhone/i,b=/iPod/i,h=/iPad/i,v=/\biOS-universal(?:.+)Mac\b/i,s=/\bAndroid(?:.+)Mobile\b/i,f=/Android/i,r=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,d=/Silk/i,t=/Windows Phone/i,u=/\bWindows(?:.+)ARM\b/i,c=/BlackBerry/i,m=/BB10/i,w=/Opera Mini/i,y=/\b(CriOS|Chrome)(?:.+)Mobile/i,A=/Mobile(?:.+)Firefox\b/i,P=function(i){return typeof i!="undefined"&&i.platform==="MacIntel"&&typeof i.maxTouchPoints=="number"&&i.maxTouchPoints>1&&typeof MSStream=="undefined"};function T(i){return function(n){return n.test(i)}}function g(i){var n={userAgent:"",platform:"",maxTouchPoints:0};!i&&typeof navigator!="undefined"?n={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof i=="string"?n.userAgent=i:i&&i.userAgent&&(n={userAgent:i.userAgent,platform:i.platform,maxTouchPoints:i.maxTouchPoints||0});var a=n.userAgent,l=a.split("[FBAN");typeof l[1]!="undefined"&&(a=l[0]),l=a.split("Twitter"),typeof l[1]!="undefined"&&(a=l[0]);var e=T(a),o={apple:{phone:e(p)&&!e(t),ipod:e(b),tablet:!e(p)&&(e(h)||P(n))&&!e(t),universal:e(v),device:(e(p)||e(b)||e(h)||e(v)||P(n))&&!e(t)},amazon:{phone:e(r),tablet:!e(r)&&e(d),device:e(r)||e(d)},android:{phone:!e(t)&&e(r)||!e(t)&&e(s),tablet:!e(t)&&!e(r)&&!e(s)&&(e(d)||e(f)),device:!e(t)&&(e(r)||e(d)||e(s)||e(f))||e(/\bokhttp\b/i)},windows:{phone:e(t),tablet:e(u),device:e(t)||e(u)},other:{blackberry:e(c),blackberry10:e(m),opera:e(w),firefox:e(A),chrome:e(y),device:e(c)||e(m)||e(w)||e(A)||e(y)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}export{g as i};
diff --git a/assets/lz-string.f2f3b7cf.js b/assets/lz-string.f2f3b7cf.js
deleted file mode 100644
index 20dd9fe..0000000
--- a/assets/lz-string.f2f3b7cf.js
+++ /dev/null
@@ -1 +0,0 @@
-var O={exports:{}};(function(y){var U=function(){var _=String.fromCharCode,M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",x={};function m(o,r){if(!x[o]){x[o]={};for(var c=0;c<o.length;c++)x[o][o.charAt(c)]=c}return x[o][r]}var d={compressToBase64:function(o){if(o==null)return"";var r=d._compress(o,6,function(c){return M.charAt(c)});switch(r.length%4){default:case 0:return r;case 1:return r+"===";case 2:return r+"==";case 3:return r+"="}},decompressFromBase64:function(o){return o==null?"":o==""?null:d._decompress(o.length,32,function(r){return m(M,o.charAt(r))})},compressToUTF16:function(o){return o==null?"":d._compress(o,15,function(r){return _(r+32)})+" "},decompressFromUTF16:function(o){return o==null?"":o==""?null:d._decompress(o.length,16384,function(r){return o.charCodeAt(r)-32})},compressToUint8Array:function(o){for(var r=d.compress(o),c=new Uint8Array(r.length*2),e=0,t=r.length;e<t;e++){var p=r.charCodeAt(e);c[e*2]=p>>>8,c[e*2+1]=p%256}return c},decompressFromUint8Array:function(o){if(o==null)return d.decompress(o);for(var r=new Array(o.length/2),c=0,e=r.length;c<e;c++)r[c]=o[c*2]*256+o[c*2+1];var t=[];return r.forEach(function(p){t.push(_(p))}),d.decompress(t.join(""))},compressToEncodedURIComponent:function(o){return o==null?"":d._compress(o,6,function(r){return S.charAt(r)})},decompressFromEncodedURIComponent:function(o){return o==null?"":o==""?null:(o=o.replace(/ /g,"+"),d._decompress(o.length,32,function(r){return m(S,o.charAt(r))}))},compress:function(o){return d._compress(o,16,function(r){return _(r)})},_compress:function(o,r,c){if(o==null)return"";var e,t,p={},w={},v="",A="",u="",h=2,a=3,f=2,l=[],n=0,s=0,i;for(i=0;i<o.length;i+=1)if(v=o.charAt(i),Object.prototype.hasOwnProperty.call(p,v)||(p[v]=a++,w[v]=!0),A=u+v,Object.prototype.hasOwnProperty.call(p,A))u=A;else{if(Object.prototype.hasOwnProperty.call(w,u)){if(u.charCodeAt(0)<256){for(e=0;e<f;e++)n=n<<1,s==r-1?(s=0,l.push(c(n)),n=0):s++;for(t=u.charCodeAt(0),e=0;e<8;e++)n=n<<1|t&1,s==r-1?(s=0,l.push(c(n)),n=0):s++,t=t>>1}else{for(t=1,e=0;e<f;e++)n=n<<1|t,s==r-1?(s=0,l.push(c(n)),n=0):s++,t=0;for(t=u.charCodeAt(0),e=0;e<16;e++)n=n<<1|t&1,s==r-1?(s=0,l.push(c(n)),n=0):s++,t=t>>1}h--,h==0&&(h=Math.pow(2,f),f++),delete w[u]}else for(t=p[u],e=0;e<f;e++)n=n<<1|t&1,s==r-1?(s=0,l.push(c(n)),n=0):s++,t=t>>1;h--,h==0&&(h=Math.pow(2,f),f++),p[A]=a++,u=String(v)}if(u!==""){if(Object.prototype.hasOwnProperty.call(w,u)){if(u.charCodeAt(0)<256){for(e=0;e<f;e++)n=n<<1,s==r-1?(s=0,l.push(c(n)),n=0):s++;for(t=u.charCodeAt(0),e=0;e<8;e++)n=n<<1|t&1,s==r-1?(s=0,l.push(c(n)),n=0):s++,t=t>>1}else{for(t=1,e=0;e<f;e++)n=n<<1|t,s==r-1?(s=0,l.push(c(n)),n=0):s++,t=0;for(t=u.charCodeAt(0),e=0;e<16;e++)n=n<<1|t&1,s==r-1?(s=0,l.push(c(n)),n=0):s++,t=t>>1}h--,h==0&&(h=Math.pow(2,f),f++),delete w[u]}else for(t=p[u],e=0;e<f;e++)n=n<<1|t&1,s==r-1?(s=0,l.push(c(n)),n=0):s++,t=t>>1;h--,h==0&&(h=Math.pow(2,f),f++)}for(t=2,e=0;e<f;e++)n=n<<1|t&1,s==r-1?(s=0,l.push(c(n)),n=0):s++,t=t>>1;for(;;)if(n=n<<1,s==r-1){l.push(c(n));break}else s++;return l.join("")},decompress:function(o){return o==null?"":o==""?null:d._decompress(o.length,32768,function(r){return o.charCodeAt(r)})},_decompress:function(o,r,c){var e=[],t=4,p=4,w=3,v="",A=[],u,h,a,f,l,n,s,i={val:c(0),position:r,index:1};for(u=0;u<3;u+=1)e[u]=u;for(a=0,l=Math.pow(2,2),n=1;n!=l;)f=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=c(i.index++)),a|=(f>0?1:0)*n,n<<=1;switch(a){case 0:for(a=0,l=Math.pow(2,8),n=1;n!=l;)f=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=c(i.index++)),a|=(f>0?1:0)*n,n<<=1;s=_(a);break;case 1:for(a=0,l=Math.pow(2,16),n=1;n!=l;)f=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=c(i.index++)),a|=(f>0?1:0)*n,n<<=1;s=_(a);break;case 2:return""}for(e[3]=s,h=s,A.push(s);;){if(i.index>o)return"";for(a=0,l=Math.pow(2,w),n=1;n!=l;)f=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=c(i.index++)),a|=(f>0?1:0)*n,n<<=1;switch(s=a){case 0:for(a=0,l=Math.pow(2,8),n=1;n!=l;)f=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=c(i.index++)),a|=(f>0?1:0)*n,n<<=1;e[p++]=_(a),s=p-1,t--;break;case 1:for(a=0,l=Math.pow(2,16),n=1;n!=l;)f=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=c(i.index++)),a|=(f>0?1:0)*n,n<<=1;e[p++]=_(a),s=p-1,t--;break;case 2:return A.join("")}if(t==0&&(t=Math.pow(2,w),w++),e[s])v=e[s];else if(s===p)v=h+h.charAt(0);else return null;A.push(v),e[p++]=h+v.charAt(0),t--,h=v,t==0&&(t=Math.pow(2,w),w++)}}};return d}();y!=null&&(y.exports=U)})(O);var j=O.exports;export{j as L};
diff --git a/assets/nanoevents.1080beb7.js b/assets/nanoevents.1080beb7.js
deleted file mode 100644
index 9d7a85f..0000000
--- a/assets/nanoevents.1080beb7.js
+++ /dev/null
@@ -1 +0,0 @@
-let h=()=>({events:{},emit(t,...e){(this.events[t]||[]).forEach(s=>s(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(s=>s!==e)}});export{h as c};
diff --git a/assets/object-assign.9840bf7d.js b/assets/object-assign.9840bf7d.js
deleted file mode 100644
index 13d78cd..0000000
--- a/assets/object-assign.9840bf7d.js
+++ /dev/null
@@ -1,5 +0,0 @@
-/*
-object-assign
-(c) Sindre Sorhus
-@license MIT
-*/var s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;function i(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}function l(){try{if(!Object.assign)return!1;var n=new String("abc");if(n[5]="de",Object.getOwnPropertyNames(n)[0]==="5")return!1;for(var c={},r=0;r<10;r++)c["_"+String.fromCharCode(r)]=r;var a=Object.getOwnPropertyNames(c).map(function(e){return c[e]});if(a.join("")!=="0123456789")return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),Object.keys(Object.assign({},t)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var p=l()?Object.assign:function(n,c){for(var r,a=i(n),t,e=1;e<arguments.length;e++){r=Object(arguments[e]);for(var f in r)u.call(r,f)&&(a[f]=r[f]);if(s){t=s(r);for(var o=0;o<t.length;o++)b.call(r,t[o])&&(a[t[o]]=r[t[o]])}}return a};export{p as o};
diff --git a/assets/pixi.js.540c9a76.js b/assets/pixi.js.540c9a76.js
deleted file mode 100644
index 097b9de..0000000
--- a/assets/pixi.js.540c9a76.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import{R as e,A as a,E as s,I as t,P as g,a as n,B as l,T as P,L as r,b as u,C as c,D as o,K as p,S as d,c as i,d as L,e as R}from"./@pixi.b4dff018.js";/*!
- * pixi.js - v6.4.2
- * Compiled Thu, 02 Jun 2022 15:39:26 UTC
- *
- * pixi.js is licensed under the MIT License.
- * http://www.opensource.org/licenses/mit-license
- */e.registerPlugin("accessibility",a);e.registerPlugin("extract",s);e.registerPlugin("interaction",t);e.registerPlugin("particle",g);e.registerPlugin("prepare",n);e.registerPlugin("batch",l);e.registerPlugin("tilingSprite",P);r.registerPlugin(u);r.registerPlugin(c);r.registerPlugin(o);r.registerPlugin(p);r.registerPlugin(d);i.registerPlugin(L);i.registerPlugin(R);
diff --git a/assets/promise-polyfill.7a7f9c83.js b/assets/promise-polyfill.7a7f9c83.js
deleted file mode 100644
index f7ab14c..0000000
--- a/assets/promise-polyfill.7a7f9c83.js
+++ /dev/null
@@ -1 +0,0 @@
-function g(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})}function w(t){var n=this;return new n(function(e,r){if(!(t&&typeof t.length!="undefined"))return r(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i=Array.prototype.slice.call(t);if(i.length===0)return e([]);var h=i.length;function f(u,c){if(c&&(typeof c=="object"||typeof c=="function")){var s=c.then;if(typeof s=="function"){s.call(c,function(y){f(u,y)},function(y){i[u]={status:"rejected",reason:y},--h===0&&e(i)});return}}i[u]={status:"fulfilled",value:c},--h===0&&e(i)}for(var a=0;a<i.length;a++)f(a,i[a])})}var b=setTimeout;function _(t){return Boolean(t&&typeof t.length!="undefined")}function j(){}function F(t,n){return function(){t.apply(n,arguments)}}function o(t){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if(typeof t!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],v(t,this)}function m(t,n){for(;t._state===3;)t=t._value;if(t._state===0){t._deferreds.push(n);return}t._handled=!0,o._immediateFn(function(){var e=t._state===1?n.onFulfilled:n.onRejected;if(e===null){(t._state===1?d:p)(n.promise,t._value);return}var r;try{r=e(t._value)}catch(i){p(n.promise,i);return}d(n.promise,r)})}function d(t,n){try{if(n===t)throw new TypeError("A promise cannot be resolved with itself.");if(n&&(typeof n=="object"||typeof n=="function")){var e=n.then;if(n instanceof o){t._state=3,t._value=n,l(t);return}else if(typeof e=="function"){v(F(e,n),t);return}}t._state=1,t._value=n,l(t)}catch(r){p(t,r)}}function p(t,n){t._state=2,t._value=n,l(t)}function l(t){t._state===2&&t._deferreds.length===0&&o._immediateFn(function(){t._handled||o._unhandledRejectionFn(t._value)});for(var n=0,e=t._deferreds.length;n<e;n++)m(t,t._deferreds[n]);t._deferreds=null}function P(t,n,e){this.onFulfilled=typeof t=="function"?t:null,this.onRejected=typeof n=="function"?n:null,this.promise=e}function v(t,n){var e=!1;try{t(function(r){e||(e=!0,d(n,r))},function(r){e||(e=!0,p(n,r))})}catch(r){if(e)return;e=!0,p(n,r)}}o.prototype.catch=function(t){return this.then(null,t)};o.prototype.then=function(t,n){var e=new this.constructor(j);return m(this,new P(t,n,e)),e};o.prototype.finally=g;o.all=function(t){return new o(function(n,e){if(!_(t))return e(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(t);if(r.length===0)return n([]);var i=r.length;function h(a,u){try{if(u&&(typeof u=="object"||typeof u=="function")){var c=u.then;if(typeof c=="function"){c.call(u,function(s){h(a,s)},e);return}}r[a]=u,--i===0&&n(r)}catch(s){e(s)}}for(var f=0;f<r.length;f++)h(f,r[f])})};o.allSettled=w;o.resolve=function(t){return t&&typeof t=="object"&&t.constructor===o?t:new o(function(n){n(t)})};o.reject=function(t){return new o(function(n,e){e(t)})};o.race=function(t){return new o(function(n,e){if(!_(t))return e(new TypeError("Promise.race accepts an array"));for(var r=0,i=t.length;r<i;r++)o.resolve(t[r]).then(n,e)})};o._immediateFn=typeof setImmediate=="function"&&function(t){setImmediate(t)}||function(t){b(t,0)};o._unhandledRejectionFn=function(n){typeof console!="undefined"&&console&&console.warn("Possible Unhandled Promise Rejection:",n)};export{o as P};
diff --git a/assets/querystring.776b9ab3.js b/assets/querystring.776b9ab3.js
deleted file mode 100644
index a57af59..0000000
--- a/assets/querystring.776b9ab3.js
+++ /dev/null
@@ -1 +0,0 @@
-var d={};function C(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var I=function(e,r,t,a){r=r||"&",t=t||"=";var n={};if(typeof e!="string"||e.length===0)return n;var f=/\+/g;e=e.split(r);var i=1e3;a&&typeof a.maxKeys=="number"&&(i=a.maxKeys);var l=e.length;i>0&&l>i&&(l=i);for(var p=0;p<l;++p){var c=e[p].replace(f,"%20"),s=c.indexOf(t),m,g,o,y;s>=0?(m=c.substr(0,s),g=c.substr(s+1)):(m=c,g=""),o=decodeURIComponent(m),y=decodeURIComponent(g),C(n,o)?Array.isArray(n[o])?n[o].push(y):n[o]=[n[o],y]:n[o]=y}return n},u=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},R=function(e,r,t,a){return r=r||"&",t=t||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(n){var f=encodeURIComponent(u(n))+t;return Array.isArray(e[n])?e[n].map(function(i){return f+encodeURIComponent(u(i))}).join(r):f+encodeURIComponent(u(e[n]))}).join(r):a?encodeURIComponent(u(a))+t+encodeURIComponent(u(e)):""};d.decode=d.parse=I;d.encode=d.stringify=R;export{d as q};
diff --git a/assets/sortablejs.dd463b56.js b/assets/sortablejs.dd463b56.js
deleted file mode 100644
index c366a16..0000000
--- a/assets/sortablejs.dd463b56.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import{g as Ue}from"./earcut.89ec12e6.js";/**!
- * Sortable 1.14.0
- * @author	RubaXa   <trash@rubaxa.org>
- * @author	owenm    <owen23355@gmail.com>
- * @license MIT
- */function De(o,t){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(o,i).enumerable})),e.push.apply(e,n)}return e}function J(o){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?De(Object(e),!0).forEach(function(n){qe(o,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(e)):De(Object(e)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(e,n))})}return o}function zt(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zt=function(t){return typeof t}:zt=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zt(o)}function qe(o,t,e){return t in o?Object.defineProperty(o,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):o[t]=e,o}function z(){return z=Object.assign||function(o){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n])}return o},z.apply(this,arguments)}function $e(o,t){if(o==null)return{};var e={},n=Object.keys(o),i,r;for(r=0;r<n.length;r++)i=n[r],!(t.indexOf(i)>=0)&&(e[i]=o[i]);return e}function Ve(o,t){if(o==null)return{};var e=$e(o,t),n,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);for(i=0;i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(o,n)||(e[n]=o[n]))}return e}function Ze(o){return Qe(o)||Je(o)||tn(o)||en()}function Qe(o){if(Array.isArray(o))return he(o)}function Je(o){if(typeof Symbol!="undefined"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function tn(o,t){if(!!o){if(typeof o=="string")return he(o,t);var e=Object.prototype.toString.call(o).slice(8,-1);if(e==="Object"&&o.constructor&&(e=o.constructor.name),e==="Map"||e==="Set")return Array.from(o);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return he(o,t)}}function he(o,t){(t==null||t>o.length)&&(t=o.length);for(var e=0,n=new Array(t);e<t;e++)n[e]=o[e];return n}function en(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var nn="1.14.0";function et(o){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(o)}var nt=et(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Xt=et(/Edge/i),_e=et(/firefox/i),Mt=et(/safari/i)&&!et(/chrome/i)&&!et(/android/i),Fe=et(/iP(ad|od|hone)/i),on=et(/chrome/i)&&et(/android/i),Re={capture:!1,passive:!1};function y(o,t,e){o.addEventListener(t,e,!nt&&Re)}function w(o,t,e){o.removeEventListener(t,e,!nt&&Re)}function Zt(o,t){if(!!t){if(t[0]===">"&&(t=t.substring(1)),o)try{if(o.matches)return o.matches(t);if(o.msMatchesSelector)return o.msMatchesSelector(t);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(t)}catch{return!1}return!1}}function rn(o){return o.host&&o!==document&&o.host.nodeType?o.host:o.parentNode}function $(o,t,e,n){if(o){e=e||document;do{if(t!=null&&(t[0]===">"?o.parentNode===e&&Zt(o,t):Zt(o,t))||n&&o===e)return o;if(o===e)break}while(o=rn(o))}return null}var Ce=/\s+/g;function T(o,t,e){if(o&&t)if(o.classList)o.classList[e?"add":"remove"](t);else{var n=(" "+o.className+" ").replace(Ce," ").replace(" "+t+" "," ");o.className=(n+(e?" "+t:"")).replace(Ce," ")}}function h(o,t,e){var n=o&&o.style;if(n){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(o,""):o.currentStyle&&(e=o.currentStyle),t===void 0?e:e[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=e+(typeof e=="string"?"":"px")}}function ht(o,t){var e="";if(typeof o=="string")e=o;else do{var n=h(o,"transform");n&&n!=="none"&&(e=n+" "+e)}while(!t&&(o=o.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(e)}function ke(o,t,e){if(o){var n=o.getElementsByTagName(t),i=0,r=n.length;if(e)for(;i<r;i++)e(n[i],i);return n}return[]}function Q(){var o=document.scrollingElement;return o||document.documentElement}function O(o,t,e,n,i){if(!(!o.getBoundingClientRect&&o!==window)){var r,a,l,s,u,d,f;if(o!==window&&o.parentNode&&o!==Q()?(r=o.getBoundingClientRect(),a=r.top,l=r.left,s=r.bottom,u=r.right,d=r.height,f=r.width):(a=0,l=0,s=window.innerHeight,u=window.innerWidth,d=window.innerHeight,f=window.innerWidth),(t||e)&&o!==window&&(i=i||o.parentNode,!nt))do if(i&&i.getBoundingClientRect&&(h(i,"transform")!=="none"||e&&h(i,"position")!=="static")){var p=i.getBoundingClientRect();a-=p.top+parseInt(h(i,"border-top-width")),l-=p.left+parseInt(h(i,"border-left-width")),s=a+r.height,u=l+r.width;break}while(i=i.parentNode);if(n&&o!==window){var E=ht(i||o),b=E&&E.a,S=E&&E.d;E&&(a/=S,l/=b,f/=b,d/=S,s=a+d,u=l+f)}return{top:a,left:l,bottom:s,right:u,width:f,height:d}}}function Oe(o,t,e){for(var n=lt(o,!0),i=O(o)[t];n;){var r=O(n)[e],a=void 0;if(e==="top"||e==="left"?a=i>=r:a=i<=r,!a)return n;if(n===Q())break;n=lt(n,!1)}return!1}function wt(o,t,e,n){for(var i=0,r=0,a=o.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==g.ghost&&(n||a[r]!==g.dragged)&&$(a[r],e.draggable,o,!1)){if(i===t)return a[r];i++}r++}return null}function be(o,t){for(var e=o.lastElementChild;e&&(e===g.ghost||h(e,"display")==="none"||t&&!Zt(e,t));)e=e.previousElementSibling;return e||null}function N(o,t){var e=0;if(!o||!o.parentNode)return-1;for(;o=o.previousElementSibling;)o.nodeName.toUpperCase()!=="TEMPLATE"&&o!==g.clone&&(!t||Zt(o,t))&&e++;return e}function Te(o){var t=0,e=0,n=Q();if(o)do{var i=ht(o),r=i.a,a=i.d;t+=o.scrollLeft*r,e+=o.scrollTop*a}while(o!==n&&(o=o.parentNode));return[t,e]}function an(o,t){for(var e in o)if(!!o.hasOwnProperty(e)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===o[e][n])return Number(e)}return-1}function lt(o,t){if(!o||!o.getBoundingClientRect)return Q();var e=o,n=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var i=h(e);if(e.clientWidth<e.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return Q();if(n||t)return e;n=!0}}while(e=e.parentNode);return Q()}function ln(o,t){if(o&&t)for(var e in t)t.hasOwnProperty(e)&&(o[e]=t[e]);return o}function oe(o,t){return Math.round(o.top)===Math.round(t.top)&&Math.round(o.left)===Math.round(t.left)&&Math.round(o.height)===Math.round(t.height)&&Math.round(o.width)===Math.round(t.width)}var xt;function Xe(o,t){return function(){if(!xt){var e=arguments,n=this;e.length===1?o.call(n,e[0]):o.apply(n,e),xt=setTimeout(function(){xt=void 0},t)}}}function sn(){clearTimeout(xt),xt=void 0}function Ye(o,t,e){o.scrollLeft+=t,o.scrollTop+=e}function we(o){var t=window.Polymer,e=window.jQuery||window.Zepto;return t&&t.dom?t.dom(o).cloneNode(!0):e?e(o).clone(!0)[0]:o.cloneNode(!0)}function Ae(o,t){h(o,"position","absolute"),h(o,"top",t.top),h(o,"left",t.left),h(o,"width",t.width),h(o,"height",t.height)}function ie(o){h(o,"position",""),h(o,"top",""),h(o,"left",""),h(o,"width",""),h(o,"height","")}var k="Sortable"+new Date().getTime();function un(){var o=[],t;return{captureAnimationState:function(){if(o=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(i){if(!(h(i,"display")==="none"||i===g.ghost)){o.push({target:i,rect:O(i)});var r=J({},o[o.length-1].rect);if(i.thisAnimationDuration){var a=ht(i,!0);a&&(r.top-=a.f,r.left-=a.e)}i.fromRect=r}})}},addAnimationState:function(n){o.push(n)},removeAnimationState:function(n){o.splice(an(o,{target:n}),1)},animateAll:function(n){var i=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var r=!1,a=0;o.forEach(function(l){var s=0,u=l.target,d=u.fromRect,f=O(u),p=u.prevFromRect,E=u.prevToRect,b=l.rect,S=ht(u,!0);S&&(f.top-=S.f,f.left-=S.e),u.toRect=f,u.thisAnimationDuration&&oe(p,f)&&!oe(d,f)&&(b.top-f.top)/(b.left-f.left)===(d.top-f.top)/(d.left-f.left)&&(s=fn(b,p,E,i.options)),oe(f,d)||(u.prevFromRect=d,u.prevToRect=f,s||(s=i.options.animation),i.animate(u,b,f,s)),s&&(r=!0,a=Math.max(a,s),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},s),u.thisAnimationDuration=s)}),clearTimeout(t),r?t=setTimeout(function(){typeof n=="function"&&n()},a):typeof n=="function"&&n(),o=[]},animate:function(n,i,r,a){if(a){h(n,"transition",""),h(n,"transform","");var l=ht(this.el),s=l&&l.a,u=l&&l.d,d=(i.left-r.left)/(s||1),f=(i.top-r.top)/(u||1);n.animatingX=!!d,n.animatingY=!!f,h(n,"transform","translate3d("+d+"px,"+f+"px,0)"),this.forRepaintDummy=cn(n),h(n,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),h(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){h(n,"transition",""),h(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},a)}}}}function cn(o){return o.offsetWidth}function fn(o,t,e,n){return Math.sqrt(Math.pow(t.top-o.top,2)+Math.pow(t.left-o.left,2))/Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))*n.animation}var pt=[],re={initializeByDefault:!0},Yt={mount:function(t){for(var e in re)re.hasOwnProperty(e)&&!(e in t)&&(t[e]=re[e]);pt.forEach(function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),pt.push(t)},pluginEvent:function(t,e,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var r=t+"Global";pt.forEach(function(a){!e[a.pluginName]||(e[a.pluginName][r]&&e[a.pluginName][r](J({sortable:e},n)),e.options[a.pluginName]&&e[a.pluginName][t]&&e[a.pluginName][t](J({sortable:e},n)))})},initializePlugins:function(t,e,n,i){pt.forEach(function(l){var s=l.pluginName;if(!(!t.options[s]&&!l.initializeByDefault)){var u=new l(t,e,t.options);u.sortable=t,u.options=t.options,t[s]=u,z(n,u.defaults)}});for(var r in t.options)if(!!t.options.hasOwnProperty(r)){var a=this.modifyOption(t,r,t.options[r]);typeof a!="undefined"&&(t.options[r]=a)}},getEventProperties:function(t,e){var n={};return pt.forEach(function(i){typeof i.eventProperties=="function"&&z(n,i.eventProperties.call(e[i.pluginName],t))}),n},modifyOption:function(t,e,n){var i;return pt.forEach(function(r){!t[r.pluginName]||r.optionListeners&&typeof r.optionListeners[e]=="function"&&(i=r.optionListeners[e].call(t[r.pluginName],n))}),i}};function At(o){var t=o.sortable,e=o.rootEl,n=o.name,i=o.targetEl,r=o.cloneEl,a=o.toEl,l=o.fromEl,s=o.oldIndex,u=o.newIndex,d=o.oldDraggableIndex,f=o.newDraggableIndex,p=o.originalEvent,E=o.putSortable,b=o.extraEventProperties;if(t=t||e&&e[k],!!t){var S,P=t.options,K="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!nt&&!Xt?S=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(S=document.createEvent("Event"),S.initEvent(n,!0,!0)),S.to=a||e,S.from=l||e,S.item=i||e,S.clone=r,S.oldIndex=s,S.newIndex=u,S.oldDraggableIndex=d,S.newDraggableIndex=f,S.originalEvent=p,S.pullMode=E?E.lastPutMode:void 0;var x=J(J({},b),Yt.getEventProperties(n,t));for(var Y in x)S[Y]=x[Y];e&&e.dispatchEvent(S),P[K]&&P[K].call(t,S)}}var dn=["evt"],B=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.evt,r=Ve(n,dn);Yt.pluginEvent.bind(g)(t,e,J({dragEl:c,parentEl:A,ghostEl:v,rootEl:C,nextEl:dt,lastDownEl:Ut,cloneEl:I,cloneHidden:at,dragStarted:It,putSortable:F,activeSortable:g.active,originalEvent:i,oldIndex:bt,oldDraggableIndex:Ft,newIndex:W,newDraggableIndex:rt,hideGhostForTarget:Le,unhideGhostForTarget:We,cloneNowHidden:function(){at=!0},cloneNowShown:function(){at=!1},dispatchSortableEvent:function(l){X({sortable:e,name:l,originalEvent:i})}},r))};function X(o){At(J({putSortable:F,cloneEl:I,targetEl:c,rootEl:C,oldIndex:bt,oldDraggableIndex:Ft,newIndex:W,newDraggableIndex:rt},o))}var c,A,v,C,dt,Ut,I,at,bt,W,Ft,rt,Ht,F,vt=!1,Qt=!1,Jt=[],ct,U,ae,le,Ie,Ne,It,gt,Rt,kt=!1,Gt=!1,qt,R,se=[],pe=!1,te=[],ne=typeof document!="undefined",Lt=Fe,Pe=Xt||nt?"cssFloat":"float",hn=ne&&!on&&!Fe&&"draggable"in document.createElement("div"),Be=function(){if(!!ne){if(nt)return!1;var o=document.createElement("x");return o.style.cssText="pointer-events:auto",o.style.pointerEvents==="auto"}}(),He=function(t,e){var n=h(t),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=wt(t,0,e),a=wt(t,1,e),l=r&&h(r),s=a&&h(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+O(r).width,d=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+O(a).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&l.float!=="none"){var f=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===f)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=i&&n[Pe]==="none"||a&&n[Pe]==="none"&&u+d>i)?"vertical":"horizontal"},pn=function(t,e,n){var i=n?t.left:t.top,r=n?t.right:t.bottom,a=n?t.width:t.height,l=n?e.left:e.top,s=n?e.right:e.bottom,u=n?e.width:e.height;return i===l||r===s||i+a/2===l+u/2},gn=function(t,e){var n;return Jt.some(function(i){var r=i[k].options.emptyInsertThreshold;if(!(!r||be(i))){var a=O(i),l=t>=a.left-r&&t<=a.right+r,s=e>=a.top-r&&e<=a.bottom+r;if(l&&s)return n=i}}),n},Ge=function(t){function e(r,a){return function(l,s,u,d){var f=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(r==null&&(a||f))return!0;if(r==null||r===!1)return!1;if(a&&r==="clone")return r;if(typeof r=="function")return e(r(l,s,u,d),a)(l,s,u,d);var p=(a?l:s).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var n={},i=t.group;(!i||zt(i)!="object")&&(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},Le=function(){!Be&&v&&h(v,"display","none")},We=function(){!Be&&v&&h(v,"display","")};ne&&document.addEventListener("click",function(o){if(Qt)return o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.stopImmediatePropagation&&o.stopImmediatePropagation(),Qt=!1,!1},!0);var ft=function(t){if(c){t=t.touches?t.touches[0]:t;var e=gn(t.clientX,t.clientY);if(e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[k]._onDragOver(n)}}},mn=function(t){c&&c.parentNode[k]._isOutsideThisEl(t.target)};function g(o,t){if(!(o&&o.nodeType&&o.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));this.el=o,this.options=t=z({},t),o[k]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(o.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return He(o,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:g.supportPointer!==!1&&"PointerEvent"in window&&!Mt,emptyInsertThreshold:5};Yt.initializePlugins(this,o,e);for(var n in e)!(n in t)&&(t[n]=e[n]);Ge(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:hn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?y(o,"pointerdown",this._onTapStart):(y(o,"mousedown",this._onTapStart),y(o,"touchstart",this._onTapStart)),this.nativeDraggable&&(y(o,"dragover",this),y(o,"dragenter",this)),Jt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),z(this,un())}g.prototype={constructor:g,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(gt=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,c):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var e=this,n=this.el,i=this.options,r=i.preventOnFilter,a=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(l||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,d=i.filter;if(_n(n),!c&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Mt&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=$(s,i.draggable,n,!1),!(s&&s.animated)&&Ut!==s)){if(bt=N(s),Ft=N(s,i.draggable),typeof d=="function"){if(d.call(this,t,s,this)){X({sortable:e,rootEl:u,name:"filter",targetEl:s,toEl:n,fromEl:n}),B("filter",e,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(d&&(d=d.split(",").some(function(f){if(f=$(u,f.trim(),n,!1),f)return X({sortable:e,rootEl:f,name:"filter",targetEl:s,fromEl:n,toEl:n}),B("filter",e,{evt:t}),!0}),d)){r&&t.cancelable&&t.preventDefault();return}i.handle&&!$(u,i.handle,n,!1)||this._prepareDragStart(t,l,s)}}},_prepareDragStart:function(t,e,n){var i=this,r=i.el,a=i.options,l=r.ownerDocument,s;if(n&&!c&&n.parentNode===r){var u=O(n);if(C=r,c=n,A=c.parentNode,dt=c.nextSibling,Ut=n,Ht=a.group,g.dragged=c,ct={target:c,clientX:(e||t).clientX,clientY:(e||t).clientY},Ie=ct.clientX-u.left,Ne=ct.clientY-u.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,c.style["will-change"]="all",s=function(){if(B("delayEnded",i,{evt:t}),g.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!_e&&i.nativeDraggable&&(c.draggable=!0),i._triggerDragStart(t,e),X({sortable:i,name:"choose",originalEvent:t}),T(c,a.chosenClass,!0)},a.ignore.split(",").forEach(function(d){ke(c,d.trim(),ue)}),y(l,"dragover",ft),y(l,"mousemove",ft),y(l,"touchmove",ft),y(l,"mouseup",i._onDrop),y(l,"touchend",i._onDrop),y(l,"touchcancel",i._onDrop),_e&&this.nativeDraggable&&(this.options.touchStartThreshold=4,c.draggable=!0),B("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Xt||nt))){if(g.eventCanceled){this._onDrop();return}y(l,"mouseup",i._disableDelayedDrag),y(l,"touchend",i._disableDelayedDrag),y(l,"touchcancel",i._disableDelayedDrag),y(l,"mousemove",i._delayedDragTouchMoveHandler),y(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&y(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){c&&ue(c),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;w(t,"mouseup",this._disableDelayedDrag),w(t,"touchend",this._disableDelayedDrag),w(t,"touchcancel",this._disableDelayedDrag),w(t,"mousemove",this._delayedDragTouchMoveHandler),w(t,"touchmove",this._delayedDragTouchMoveHandler),w(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?y(document,"pointermove",this._onTouchMove):e?y(document,"touchmove",this._onTouchMove):y(document,"mousemove",this._onTouchMove):(y(c,"dragend",this),y(C,"dragstart",this._onDragStart));try{document.selection?$t(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(vt=!1,C&&c){B("dragStarted",this,{evt:e}),this.nativeDraggable&&y(document,"dragover",mn);var n=this.options;!t&&T(c,n.dragClass,!1),T(c,n.ghostClass,!0),g.active=this,t&&this._appendGhost(),X({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(U){this._lastX=U.clientX,this._lastY=U.clientY,Le();for(var t=document.elementFromPoint(U.clientX,U.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(U.clientX,U.clientY),t!==e);)e=t;if(c.parentNode[k]._isOutsideThisEl(t),e)do{if(e[k]){var n=void 0;if(n=e[k]._onDragOver({clientX:U.clientX,clientY:U.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);We()}},_onTouchMove:function(t){if(ct){var e=this.options,n=e.fallbackTolerance,i=e.fallbackOffset,r=t.touches?t.touches[0]:t,a=v&&ht(v,!0),l=v&&a&&a.a,s=v&&a&&a.d,u=Lt&&R&&Te(R),d=(r.clientX-ct.clientX+i.x)/(l||1)+(u?u[0]-se[0]:0)/(l||1),f=(r.clientY-ct.clientY+i.y)/(s||1)+(u?u[1]-se[1]:0)/(s||1);if(!g.active&&!vt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(v){a?(a.e+=d-(ae||0),a.f+=f-(le||0)):a={a:1,b:0,c:0,d:1,e:d,f};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");h(v,"webkitTransform",p),h(v,"mozTransform",p),h(v,"msTransform",p),h(v,"transform",p),ae=d,le=f,U=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!v){var t=this.options.fallbackOnBody?document.body:C,e=O(c,!0,Lt,!0,t),n=this.options;if(Lt){for(R=t;h(R,"position")==="static"&&h(R,"transform")==="none"&&R!==document;)R=R.parentNode;R!==document.body&&R!==document.documentElement?(R===document&&(R=Q()),e.top+=R.scrollTop,e.left+=R.scrollLeft):R=Q(),se=Te(R)}v=c.cloneNode(!0),T(v,n.ghostClass,!1),T(v,n.fallbackClass,!0),T(v,n.dragClass,!0),h(v,"transition",""),h(v,"transform",""),h(v,"box-sizing","border-box"),h(v,"margin",0),h(v,"top",e.top),h(v,"left",e.left),h(v,"width",e.width),h(v,"height",e.height),h(v,"opacity","0.8"),h(v,"position",Lt?"absolute":"fixed"),h(v,"zIndex","100000"),h(v,"pointerEvents","none"),g.ghost=v,t.appendChild(v),h(v,"transform-origin",Ie/parseInt(v.style.width)*100+"% "+Ne/parseInt(v.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,i=t.dataTransfer,r=n.options;if(B("dragStart",this,{evt:t}),g.eventCanceled){this._onDrop();return}B("setupClone",this),g.eventCanceled||(I=we(c),I.draggable=!1,I.style["will-change"]="",this._hideClone(),T(I,this.options.chosenClass,!1),g.clone=I),n.cloneId=$t(function(){B("clone",n),!g.eventCanceled&&(n.options.removeCloneOnHide||C.insertBefore(I,c),n._hideClone(),X({sortable:n,name:"clone"}))}),!e&&T(c,r.dragClass,!0),e?(Qt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(w(document,"mouseup",n._onDrop),w(document,"touchend",n._onDrop),w(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(n,i,c)),y(document,"drop",n),h(c,"transform","translateZ(0)")),vt=!0,n._dragStartId=$t(n._dragStarted.bind(n,e,t)),y(document,"selectstart",n),It=!0,Mt&&h(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,n=t.target,i,r,a,l=this.options,s=l.group,u=g.active,d=Ht===s,f=l.sort,p=F||u,E,b=this,S=!1;if(pe)return;function P(_t,je){B(_t,b,J({evt:t,isOwner:d,axis:E?"vertical":"horizontal",revert:a,dragRect:i,targetRect:r,canSort:f,fromSortable:p,target:n,completed:x,onMove:function(Se,ze){return Wt(C,e,c,i,Se,O(Se),t,ze)},changed:Y},je))}function K(){P("dragOverAnimationCapture"),b.captureAnimationState(),b!==p&&p.captureAnimationState()}function x(_t){return P("dragOverCompleted",{insertion:_t}),_t&&(d?u._hideClone():u._showClone(b),b!==p&&(T(c,F?F.options.ghostClass:u.options.ghostClass,!1),T(c,l.ghostClass,!0)),F!==b&&b!==g.active?F=b:b===g.active&&F&&(F=null),p===b&&(b._ignoreWhileAnimating=n),b.animateAll(function(){P("dragOverAnimationComplete"),b._ignoreWhileAnimating=null}),b!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(n===c&&!c.animated||n===e&&!n.animated)&&(gt=null),!l.dragoverBubble&&!t.rootEl&&n!==document&&(c.parentNode[k]._isOutsideThisEl(t.target),!_t&&ft(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),S=!0}function Y(){W=N(c),rt=N(c,l.draggable),X({sortable:b,name:"change",toEl:e,newIndex:W,newDraggableIndex:rt,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=$(n,l.draggable,e,!0),P("dragOver"),g.eventCanceled)return S;if(c.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||b._ignoreWhileAnimating===n)return x(!1);if(Qt=!1,u&&!l.disabled&&(d?f||(a=A!==C):F===this||(this.lastPutMode=Ht.checkPull(this,u,c,t))&&s.checkPut(this,u,c,t))){if(E=this._getDirection(t,n)==="vertical",i=O(c),P("dragOverValid"),g.eventCanceled)return S;if(a)return A=C,K(),this._hideClone(),P("revert"),g.eventCanceled||(dt?C.insertBefore(c,dt):C.appendChild(c)),x(!0);var D=be(e,l.draggable);if(!D||yn(t,E,this)&&!D.animated){if(D===c)return x(!1);if(D&&e===t.target&&(n=D),n&&(r=O(n)),Wt(C,e,c,i,n,r,t,!!n)!==!1)return K(),e.appendChild(c),A=e,Y(),x(!0)}else if(D&&wn(t,E,this)){var V=wt(e,0,l,!0);if(V===c)return x(!1);if(n=V,r=O(n),Wt(C,e,c,i,n,r,t,!1)!==!1)return K(),e.insertBefore(c,V),A=e,Y(),x(!0)}else if(n.parentNode===e){r=O(n);var Z=0,st,yt=c.parentNode!==e,G=!pn(c.animated&&c.toRect||i,n.animated&&n.toRect||r,E),Et=E?"top":"left",ot=Oe(n,"top","top")||Oe(c,"top","top"),St=ot?ot.scrollTop:void 0;gt!==n&&(st=r[Et],kt=!1,Gt=!G&&l.invertSwap||yt),Z=En(t,n,r,E,G?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Gt,gt===n);var tt;if(Z!==0){var ut=N(c);do ut-=Z,tt=A.children[ut];while(tt&&(h(tt,"display")==="none"||tt===v))}if(Z===0||tt===n)return x(!1);gt=n,Rt=Z;var Dt=n.nextElementSibling,it=!1;it=Z===1;var Bt=Wt(C,e,c,i,n,r,t,it);if(Bt!==!1)return(Bt===1||Bt===-1)&&(it=Bt===1),pe=!0,setTimeout(bn,30),K(),it&&!Dt?e.appendChild(c):n.parentNode.insertBefore(c,it?Dt:n),ot&&Ye(ot,0,St-ot.scrollTop),A=c.parentNode,st!==void 0&&!Gt&&(qt=Math.abs(st-O(n)[Et])),Y(),x(!0)}if(e.contains(c))return x(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){w(document,"mousemove",this._onTouchMove),w(document,"touchmove",this._onTouchMove),w(document,"pointermove",this._onTouchMove),w(document,"dragover",ft),w(document,"mousemove",ft),w(document,"touchmove",ft)},_offUpEvents:function(){var t=this.el.ownerDocument;w(t,"mouseup",this._onDrop),w(t,"touchend",this._onDrop),w(t,"pointerup",this._onDrop),w(t,"touchcancel",this._onDrop),w(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;if(W=N(c),rt=N(c,n.draggable),B("drop",this,{evt:t}),A=c&&c.parentNode,W=N(c),rt=N(c,n.draggable),g.eventCanceled){this._nulling();return}vt=!1,Gt=!1,kt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ge(this.cloneId),ge(this._dragStartId),this.nativeDraggable&&(w(document,"drop",this),w(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Mt&&h(document.body,"user-select",""),h(c,"transform",""),t&&(It&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),v&&v.parentNode&&v.parentNode.removeChild(v),(C===A||F&&F.lastPutMode!=="clone")&&I&&I.parentNode&&I.parentNode.removeChild(I),c&&(this.nativeDraggable&&w(c,"dragend",this),ue(c),c.style["will-change"]="",It&&!vt&&T(c,F?F.options.ghostClass:this.options.ghostClass,!1),T(c,this.options.chosenClass,!1),X({sortable:this,name:"unchoose",toEl:A,newIndex:null,newDraggableIndex:null,originalEvent:t}),C!==A?(W>=0&&(X({rootEl:A,name:"add",toEl:A,fromEl:C,originalEvent:t}),X({sortable:this,name:"remove",toEl:A,originalEvent:t}),X({rootEl:A,name:"sort",toEl:A,fromEl:C,originalEvent:t}),X({sortable:this,name:"sort",toEl:A,originalEvent:t})),F&&F.save()):W!==bt&&W>=0&&(X({sortable:this,name:"update",toEl:A,originalEvent:t}),X({sortable:this,name:"sort",toEl:A,originalEvent:t})),g.active&&((W==null||W===-1)&&(W=bt,rt=Ft),X({sortable:this,name:"end",toEl:A,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){B("nulling",this),C=c=A=v=dt=I=Ut=at=ct=U=It=W=rt=bt=Ft=gt=Rt=F=Ht=g.dragged=g.ghost=g.clone=g.active=null,te.forEach(function(t){t.checked=!0}),te.length=ae=le=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":c&&(this._onDragOver(t),vn(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,n=this.el.children,i=0,r=n.length,a=this.options;i<r;i++)e=n[i],$(e,a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||Dn(e));return t},sort:function(t,e){var n={},i=this.el;this.toArray().forEach(function(r,a){var l=i.children[a];$(l,this.options.draggable,i,!1)&&(n[r]=l)},this),e&&this.captureAnimationState(),t.forEach(function(r){n[r]&&(i.removeChild(n[r]),i.appendChild(n[r]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return $(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(e===void 0)return n[t];var i=Yt.modifyOption(this,t,e);typeof i!="undefined"?n[t]=i:n[t]=e,t==="group"&&Ge(n)},destroy:function(){B("destroy",this);var t=this.el;t[k]=null,w(t,"mousedown",this._onTapStart),w(t,"touchstart",this._onTapStart),w(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(w(t,"dragover",this),w(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Jt.splice(Jt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!at){if(B("hideClone",this),g.eventCanceled)return;h(I,"display","none"),this.options.removeCloneOnHide&&I.parentNode&&I.parentNode.removeChild(I),at=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(at){if(B("showClone",this),g.eventCanceled)return;c.parentNode==C&&!this.options.group.revertClone?C.insertBefore(I,c):dt?C.insertBefore(I,dt):C.appendChild(I),this.options.group.revertClone&&this.animate(c,I),h(I,"display",""),at=!1}}};function vn(o){o.dataTransfer&&(o.dataTransfer.dropEffect="move"),o.cancelable&&o.preventDefault()}function Wt(o,t,e,n,i,r,a,l){var s,u=o[k],d=u.options.onMove,f;return window.CustomEvent&&!nt&&!Xt?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=t,s.from=o,s.dragged=e,s.draggedRect=n,s.related=i||t,s.relatedRect=r||O(t),s.willInsertAfter=l,s.originalEvent=a,o.dispatchEvent(s),d&&(f=d.call(u,s,a)),f}function ue(o){o.draggable=!1}function bn(){pe=!1}function wn(o,t,e){var n=O(wt(e.el,0,e.options,!0)),i=10;return t?o.clientX<n.left-i||o.clientY<n.top&&o.clientX<n.right:o.clientY<n.top-i||o.clientY<n.bottom&&o.clientX<n.left}function yn(o,t,e){var n=O(be(e.el,e.options.draggable)),i=10;return t?o.clientX>n.right+i||o.clientX<=n.right&&o.clientY>n.bottom&&o.clientX>=n.left:o.clientX>n.right&&o.clientY>n.top||o.clientX<=n.right&&o.clientY>n.bottom+i}function En(o,t,e,n,i,r,a,l){var s=n?o.clientY:o.clientX,u=n?e.height:e.width,d=n?e.top:e.left,f=n?e.bottom:e.right,p=!1;if(!a){if(l&&qt<u*i){if(!kt&&(Rt===1?s>d+u*r/2:s<f-u*r/2)&&(kt=!0),kt)p=!0;else if(Rt===1?s<d+qt:s>f-qt)return-Rt}else if(s>d+u*(1-i)/2&&s<f-u*(1-i)/2)return Sn(t)}return p=p||a,p&&(s<d+u*r/2||s>f-u*r/2)?s>d+u/2?1:-1:0}function Sn(o){return N(c)<N(o)?1:-1}function Dn(o){for(var t=o.tagName+o.className+o.src+o.href+o.textContent,e=t.length,n=0;e--;)n+=t.charCodeAt(e);return n.toString(36)}function _n(o){te.length=0;for(var t=o.getElementsByTagName("input"),e=t.length;e--;){var n=t[e];n.checked&&te.push(n)}}function $t(o){return setTimeout(o,0)}function ge(o){return clearTimeout(o)}ne&&y(document,"touchmove",function(o){(g.active||vt)&&o.cancelable&&o.preventDefault()});g.utils={on:y,off:w,css:h,find:ke,is:function(t,e){return!!$(t,e,t,!1)},extend:ln,throttle:Xe,closest:$,toggleClass:T,clone:we,index:N,nextTick:$t,cancelNextTick:ge,detectDirection:He,getChild:wt};g.get=function(o){return o[k]};g.mount=function(){for(var o=arguments.length,t=new Array(o),e=0;e<o;e++)t[e]=arguments[e];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(g.utils=J(J({},g.utils),n.utils)),Yt.mount(n)})};g.create=function(o,t){return new g(o,t)};g.version=nn;var M=[],Nt,me,ve=!1,ce,fe,ee,Pt;function Cn(){function o(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return o.prototype={dragStarted:function(e){var n=e.originalEvent;this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):this.options.supportPointer?y(document,"pointermove",this._handleFallbackAutoScroll):n.touches?y(document,"touchmove",this._handleFallbackAutoScroll):y(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var n=e.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?w(document,"dragover",this._handleAutoScroll):(w(document,"pointermove",this._handleFallbackAutoScroll),w(document,"touchmove",this._handleFallbackAutoScroll),w(document,"mousemove",this._handleFallbackAutoScroll)),Me(),Vt(),sn()},nulling:function(){ee=me=Nt=ve=Pt=ce=fe=null,M.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,n){var i=this,r=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,l=document.elementFromPoint(r,a);if(ee=e,n||this.options.forceAutoScrollFallback||Xt||nt||Mt){de(e,this.options,l,n);var s=lt(l,!0);ve&&(!Pt||r!==ce||a!==fe)&&(Pt&&Me(),Pt=setInterval(function(){var u=lt(document.elementFromPoint(r,a),!0);u!==s&&(s=u,Vt()),de(e,i.options,u,n)},10),ce=r,fe=a)}else{if(!this.options.bubbleScroll||lt(l,!0)===Q()){Vt();return}de(e,this.options,lt(l,!1),!1)}}},z(o,{pluginName:"scroll",initializeByDefault:!0})}function Vt(){M.forEach(function(o){clearInterval(o.pid)}),M=[]}function Me(){clearInterval(Pt)}var de=Xe(function(o,t,e,n){if(!!t.scroll){var i=(o.touches?o.touches[0]:o).clientX,r=(o.touches?o.touches[0]:o).clientY,a=t.scrollSensitivity,l=t.scrollSpeed,s=Q(),u=!1,d;me!==e&&(me=e,Vt(),Nt=t.scroll,d=t.scrollFn,Nt===!0&&(Nt=lt(e,!0)));var f=0,p=Nt;do{var E=p,b=O(E),S=b.top,P=b.bottom,K=b.left,x=b.right,Y=b.width,D=b.height,V=void 0,Z=void 0,st=E.scrollWidth,yt=E.scrollHeight,G=h(E),Et=E.scrollLeft,ot=E.scrollTop;E===s?(V=Y<st&&(G.overflowX==="auto"||G.overflowX==="scroll"||G.overflowX==="visible"),Z=D<yt&&(G.overflowY==="auto"||G.overflowY==="scroll"||G.overflowY==="visible")):(V=Y<st&&(G.overflowX==="auto"||G.overflowX==="scroll"),Z=D<yt&&(G.overflowY==="auto"||G.overflowY==="scroll"));var St=V&&(Math.abs(x-i)<=a&&Et+Y<st)-(Math.abs(K-i)<=a&&!!Et),tt=Z&&(Math.abs(P-r)<=a&&ot+D<yt)-(Math.abs(S-r)<=a&&!!ot);if(!M[f])for(var ut=0;ut<=f;ut++)M[ut]||(M[ut]={});(M[f].vx!=St||M[f].vy!=tt||M[f].el!==E)&&(M[f].el=E,M[f].vx=St,M[f].vy=tt,clearInterval(M[f].pid),(St!=0||tt!=0)&&(u=!0,M[f].pid=setInterval(function(){n&&this.layer===0&&g.active._onTouchMove(ee);var Dt=M[this.layer].vy?M[this.layer].vy*l:0,it=M[this.layer].vx?M[this.layer].vx*l:0;typeof d=="function"&&d.call(g.dragged.parentNode[k],it,Dt,o,ee,M[this.layer].el)!=="continue"||Ye(M[this.layer].el,it,Dt)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&p!==s&&(p=lt(p,!1)));ve=u}},30),Ke=function(t){var e=t.originalEvent,n=t.putSortable,i=t.dragEl,r=t.activeSortable,a=t.dispatchSortableEvent,l=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(!!e){var u=n||r;l();var d=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,f=document.elementFromPoint(d.clientX,d.clientY);s(),u&&!u.el.contains(f)&&(a("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function ye(){}ye.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=wt(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(e,i):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:Ke};z(ye,{pluginName:"revertOnSpill"});function Ee(){}Ee.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,i=n||this.sortable;i.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),i.animateAll()},drop:Ke};z(Ee,{pluginName:"removeOnSpill"});var j;function On(){function o(){this.defaults={swapClass:"sortable-swap-highlight"}}return o.prototype={dragStart:function(e){var n=e.dragEl;j=n},dragOverValid:function(e){var n=e.completed,i=e.target,r=e.onMove,a=e.activeSortable,l=e.changed,s=e.cancel;if(!!a.options.swap){var u=this.sortable.el,d=this.options;if(i&&i!==u){var f=j;r(i)!==!1?(T(i,d.swapClass,!0),j=i):j=null,f&&f!==j&&T(f,d.swapClass,!1)}l(),n(!0),s()}},drop:function(e){var n=e.activeSortable,i=e.putSortable,r=e.dragEl,a=i||this.sortable,l=this.options;j&&T(j,l.swapClass,!1),j&&(l.swap||i&&i.options.swap)&&r!==j&&(a.captureAnimationState(),a!==n&&n.captureAnimationState(),Tn(r,j),a.animateAll(),a!==n&&n.animateAll())},nulling:function(){j=null}},z(o,{pluginName:"swap",eventProperties:function(){return{swapItem:j}}})}function Tn(o,t){var e=o.parentNode,n=t.parentNode,i,r;!e||!n||e.isEqualNode(t)||n.isEqualNode(o)||(i=N(o),r=N(t),e.isEqualNode(n)&&i<r&&r++,e.insertBefore(t,e.children[i]),n.insertBefore(o,n.children[r]))}var m=[],L=[],Ct,q,Ot=!1,H=!1,mt=!1,_,Tt,Kt;function An(){function o(t){for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this));t.options.supportPointer?y(document,"pointerup",this._deselectMultiDrag):(y(document,"mouseup",this._deselectMultiDrag),y(document,"touchend",this._deselectMultiDrag)),y(document,"keydown",this._checkKeyDown),y(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,r){var a="";m.length&&q===t?m.forEach(function(l,s){a+=(s?", ":"")+l.textContent}):a=r.textContent,i.setData("Text",a)}}}return o.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var n=e.dragEl;_=n},delayEnded:function(){this.isMultiDrag=~m.indexOf(_)},setupClone:function(e){var n=e.sortable,i=e.cancel;if(!!this.isMultiDrag){for(var r=0;r<m.length;r++)L.push(we(m[r])),L[r].sortableIndex=m[r].sortableIndex,L[r].draggable=!1,L[r].style["will-change"]="",T(L[r],this.options.selectedClass,!1),m[r]===_&&T(L[r],this.options.chosenClass,!1);n._hideClone(),i()}},clone:function(e){var n=e.sortable,i=e.rootEl,r=e.dispatchSortableEvent,a=e.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||m.length&&q===n&&(xe(!0,i),r("clone"),a())},showClone:function(e){var n=e.cloneNowShown,i=e.rootEl,r=e.cancel;!this.isMultiDrag||(xe(!1,i),L.forEach(function(a){h(a,"display","")}),n(),Kt=!1,r())},hideClone:function(e){var n=this;e.sortable;var i=e.cloneNowHidden,r=e.cancel;!this.isMultiDrag||(L.forEach(function(a){h(a,"display","none"),n.options.removeCloneOnHide&&a.parentNode&&a.parentNode.removeChild(a)}),i(),Kt=!0,r())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&q&&q.multiDrag._deselectMultiDrag(),m.forEach(function(n){n.sortableIndex=N(n)}),m=m.sort(function(n,i){return n.sortableIndex-i.sortableIndex}),mt=!0},dragStarted:function(e){var n=this,i=e.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){m.forEach(function(a){a!==_&&h(a,"position","absolute")});var r=O(_,!1,!0,!0);m.forEach(function(a){a!==_&&Ae(a,r)}),H=!0,Ot=!0}i.animateAll(function(){H=!1,Ot=!1,n.options.animation&&m.forEach(function(a){ie(a)}),n.options.sort&&jt()})}},dragOver:function(e){var n=e.target,i=e.completed,r=e.cancel;H&&~m.indexOf(n)&&(i(!1),r())},revert:function(e){var n=e.fromSortable,i=e.rootEl,r=e.sortable,a=e.dragRect;m.length>1&&(m.forEach(function(l){r.addAnimationState({target:l,rect:H?O(l):a}),ie(l),l.fromRect=a,n.removeAnimationState(l)}),H=!1,In(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(e){var n=e.sortable,i=e.isOwner,r=e.insertion,a=e.activeSortable,l=e.parentEl,s=e.putSortable,u=this.options;if(r){if(i&&a._hideClone(),Ot=!1,u.animation&&m.length>1&&(H||!i&&!a.options.sort&&!s)){var d=O(_,!1,!0,!0);m.forEach(function(p){p!==_&&(Ae(p,d),l.appendChild(p))}),H=!0}if(!i)if(H||jt(),m.length>1){var f=Kt;a._showClone(n),a.options.animation&&!Kt&&f&&L.forEach(function(p){a.addAnimationState({target:p,rect:Tt}),p.fromRect=Tt,p.thisAnimationDuration=null})}else a._showClone(n)}},dragOverAnimationCapture:function(e){var n=e.dragRect,i=e.isOwner,r=e.activeSortable;if(m.forEach(function(l){l.thisAnimationDuration=null}),r.options.animation&&!i&&r.multiDrag.isMultiDrag){Tt=z({},n);var a=ht(_,!0);Tt.top-=a.f,Tt.left-=a.e}},dragOverAnimationComplete:function(){H&&(H=!1,jt())},drop:function(e){var n=e.originalEvent,i=e.rootEl,r=e.parentEl,a=e.sortable,l=e.dispatchSortableEvent,s=e.oldIndex,u=e.putSortable,d=u||this.sortable;if(!!n){var f=this.options,p=r.children;if(!mt)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),T(_,f.selectedClass,!~m.indexOf(_)),~m.indexOf(_))m.splice(m.indexOf(_),1),Ct=null,At({sortable:a,rootEl:i,name:"deselect",targetEl:_,originalEvt:n});else{if(m.push(_),At({sortable:a,rootEl:i,name:"select",targetEl:_,originalEvt:n}),n.shiftKey&&Ct&&a.el.contains(Ct)){var E=N(Ct),b=N(_);if(~E&&~b&&E!==b){var S,P;for(b>E?(P=E,S=b):(P=b,S=E+1);P<S;P++)~m.indexOf(p[P])||(T(p[P],f.selectedClass,!0),m.push(p[P]),At({sortable:a,rootEl:i,name:"select",targetEl:p[P],originalEvt:n}))}}else Ct=_;q=d}if(mt&&this.isMultiDrag){if(H=!1,(r[k].options.sort||r!==i)&&m.length>1){var K=O(_),x=N(_,":not(."+this.options.selectedClass+")");if(!Ot&&f.animation&&(_.thisAnimationDuration=null),d.captureAnimationState(),!Ot&&(f.animation&&(_.fromRect=K,m.forEach(function(D){if(D.thisAnimationDuration=null,D!==_){var V=H?O(D):K;D.fromRect=V,d.addAnimationState({target:D,rect:V})}})),jt(),m.forEach(function(D){p[x]?r.insertBefore(D,p[x]):r.appendChild(D),x++}),s===N(_))){var Y=!1;m.forEach(function(D){if(D.sortableIndex!==N(D)){Y=!0;return}}),Y&&l("update")}m.forEach(function(D){ie(D)}),d.animateAll()}q=d}(i===r||u&&u.lastPutMode!=="clone")&&L.forEach(function(D){D.parentNode&&D.parentNode.removeChild(D)})}},nullingGlobal:function(){this.isMultiDrag=mt=!1,L.length=0},destroyGlobal:function(){this._deselectMultiDrag(),w(document,"pointerup",this._deselectMultiDrag),w(document,"mouseup",this._deselectMultiDrag),w(document,"touchend",this._deselectMultiDrag),w(document,"keydown",this._checkKeyDown),w(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(typeof mt!="undefined"&&mt)&&q===this.sortable&&!(e&&$(e.target,this.options.draggable,this.sortable.el,!1))&&!(e&&e.button!==0))for(;m.length;){var n=m[0];T(n,this.options.selectedClass,!1),m.shift(),At({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},z(o,{pluginName:"multiDrag",utils:{select:function(e){var n=e.parentNode[k];!n||!n.options.multiDrag||~m.indexOf(e)||(q&&q!==n&&(q.multiDrag._deselectMultiDrag(),q=n),T(e,n.options.selectedClass,!0),m.push(e))},deselect:function(e){var n=e.parentNode[k],i=m.indexOf(e);!n||!n.options.multiDrag||!~i||(T(e,n.options.selectedClass,!1),m.splice(i,1))}},eventProperties:function(){var e=this,n=[],i=[];return m.forEach(function(r){n.push({multiDragElement:r,index:r.sortableIndex});var a;H&&r!==_?a=-1:H?a=N(r,":not(."+e.options.selectedClass+")"):a=N(r),i.push({multiDragElement:r,index:a})}),{items:Ze(m),clones:[].concat(L),oldIndicies:n,newIndicies:i}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),e==="ctrl"?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function In(o,t){m.forEach(function(e,n){var i=t.children[e.sortableIndex+(o?Number(n):0)];i?t.insertBefore(e,i):t.appendChild(e)})}function xe(o,t){L.forEach(function(e,n){var i=t.children[e.sortableIndex+(o?Number(n):0)];i?t.insertBefore(e,i):t.appendChild(e)})}function jt(){m.forEach(function(o){o!==_&&o.parentNode&&o.parentNode.removeChild(o)})}g.mount(new Cn);g.mount(Ee,ye);var Nn=Object.freeze(Object.defineProperty({__proto__:null,default:g,MultiDrag:An,Sortable:g,Swap:On},Symbol.toStringTag,{value:"Module"})),xn=Ue(Nn);export{xn as r};
diff --git a/assets/url.08d1c71e.js b/assets/url.08d1c71e.js
deleted file mode 100644
index 5e985d5..0000000
--- a/assets/url.08d1c71e.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{c as st}from"./earcut.89ec12e6.js";import{q as ct}from"./querystring.776b9ab3.js";var ht={exports:{}};/*! https://mths.be/punycode v1.3.2 by @mathias */(function(s,a){(function(t){var g=a&&!a.nodeType&&a,p=s&&!s.nodeType&&s,d=typeof st=="object"&&st;(d.global===d||d.window===d||d.self===d)&&(t=d);var m,h=2147483647,x=36,y=1,j=26,G=38,b=700,f=72,T=128,k="-",q=/^xn--/,Z=/[^\x20-\x7E]/,r=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=x-y,u=Math.floor,v=String.fromCharCode,z;function O(e){throw RangeError(c[e])}function I(e,o){for(var n=e.length,i=[];n--;)i[n]=o(e[n]);return i}function S(e,o){var n=e.split("@"),i="";n.length>1&&(i=n[0]+"@",e=n[1]),e=e.replace(r,".");var l=e.split("."),w=I(l,o).join(".");return i+w}function K(e){for(var o=[],n=0,i=e.length,l,w;n<i;)l=e.charCodeAt(n++),l>=55296&&l<=56319&&n<i?(w=e.charCodeAt(n++),(w&64512)==56320?o.push(((l&1023)<<10)+(w&1023)+65536):(o.push(l),n--)):o.push(l);return o}function E(e){return I(e,function(o){var n="";return o>65535&&(o-=65536,n+=v(o>>>10&1023|55296),o=56320|o&1023),n+=v(o),n}).join("")}function _(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:x}function W(e,o){return e+22+75*(e<26)-((o!=0)<<5)}function X(e,o,n){var i=0;for(e=n?u(e/b):e>>1,e+=u(e/o);e>F*j>>1;i+=x)e=u(e/F);return u(i+(F+1)*e/(e+G))}function V(e){var o=[],n=e.length,i,l=0,w=T,C=f,M,P,D,$,A,N,U,B,J;for(M=e.lastIndexOf(k),M<0&&(M=0),P=0;P<M;++P)e.charCodeAt(P)>=128&&O("not-basic"),o.push(e.charCodeAt(P));for(D=M>0?M+1:0;D<n;){for($=l,A=1,N=x;D>=n&&O("invalid-input"),U=_(e.charCodeAt(D++)),(U>=x||U>u((h-l)/A))&&O("overflow"),l+=U*A,B=N<=C?y:N>=C+j?j:N-C,!(U<B);N+=x)J=x-B,A>u(h/J)&&O("overflow"),A*=J;i=o.length+1,C=X(l-$,i,$==0),u(l/i)>h-w&&O("overflow"),w+=u(l/i),l%=i,o.splice(l++,0,w)}return E(o)}function H(e){var o,n,i,l,w,C,M,P,D,$,A,N=[],U,B,J,tt;for(e=K(e),U=e.length,o=T,n=0,w=f,C=0;C<U;++C)A=e[C],A<128&&N.push(v(A));for(i=l=N.length,l&&N.push(k);i<U;){for(M=h,C=0;C<U;++C)A=e[C],A>=o&&A<M&&(M=A);for(B=i+1,M-o>u((h-n)/B)&&O("overflow"),n+=(M-o)*B,o=M,C=0;C<U;++C)if(A=e[C],A<o&&++n>h&&O("overflow"),A==o){for(P=n,D=x;$=D<=w?y:D>=w+j?j:D-w,!(P<$);D+=x)tt=P-$,J=x-$,N.push(v(W($+tt%J,0))),P=u(tt/J);N.push(v(W(P,0))),w=X(n,B,i==l),n=0,++i}++n,++o}return N.join("")}function ft(e){return S(e,function(o){return q.test(o)?V(o.slice(4).toLowerCase()):o})}function ut(e){return S(e,function(o){return Z.test(o)?"xn--"+H(o):o})}if(m={version:"1.3.2",ucs2:{decode:K,encode:E},decode:V,encode:H,toASCII:ut,toUnicode:ft},g&&p)if(s.exports==g)p.exports=m;else for(z in m)m.hasOwnProperty(z)&&(g[z]=m[z]);else t.punycode=m})(st)})(ht,ht.exports);var lt={isString:function(s){return typeof s=="string"},isObject:function(s){return typeof s=="object"&&s!==null},isNull:function(s){return s===null},isNullOrUndefined:function(s){return s==null}},pt=ht.exports,L=lt,Ft=Q,jt=Ot,It=qt;function R(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var mt=/^([a-z0-9.+-]+:)/i,xt=/:[0-9]*$/,gt=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,dt=["<",">",'"',"`"," ","\r",`
-`,"	"],yt=["{","}","|","\\","^","`"].concat(dt),et=["'"].concat(yt),nt=["%","/","?",";","#"].concat(et),at=["/","?","#"],bt=255,it=/^[+a-z0-9A-Z_-]{0,63}$/,vt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ct={javascript:!0,"javascript:":!0},rt={javascript:!0,"javascript:":!0},Y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ot=ct;function Q(s,a,t){if(s&&L.isObject(s)&&s instanceof R)return s;var g=new R;return g.parse(s,a,t),g}R.prototype.parse=function(s,a,t){if(!L.isString(s))throw new TypeError("Parameter 'url' must be a string, not "+typeof s);var g=s.indexOf("?"),p=g!==-1&&g<s.indexOf("#")?"?":"#",d=s.split(p),m=/\\/g;d[0]=d[0].replace(m,"/"),s=d.join(p);var h=s;if(h=h.trim(),!t&&s.split("#").length===1){var x=gt.exec(h);if(x)return this.path=h,this.href=h,this.pathname=x[1],x[2]?(this.search=x[2],a?this.query=ot.parse(this.search.substr(1)):this.query=this.search.substr(1)):a&&(this.search="",this.query={}),this}var y=mt.exec(h);if(y){y=y[0];var j=y.toLowerCase();this.protocol=j,h=h.substr(y.length)}if(t||y||h.match(/^\/\/[^@\/]+@[^@\/]+/)){var G=h.substr(0,2)==="//";G&&!(y&&rt[y])&&(h=h.substr(2),this.slashes=!0)}if(!rt[y]&&(G||y&&!Y[y])){for(var b=-1,f=0;f<at.length;f++){var T=h.indexOf(at[f]);T!==-1&&(b===-1||T<b)&&(b=T)}var k,q;b===-1?q=h.lastIndexOf("@"):q=h.lastIndexOf("@",b),q!==-1&&(k=h.slice(0,q),h=h.slice(q+1),this.auth=decodeURIComponent(k)),b=-1;for(var f=0;f<nt.length;f++){var T=h.indexOf(nt[f]);T!==-1&&(b===-1||T<b)&&(b=T)}b===-1&&(b=h.length),this.host=h.slice(0,b),h=h.slice(b),this.parseHost(),this.hostname=this.hostname||"";var Z=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Z)for(var r=this.hostname.split(/\./),f=0,c=r.length;f<c;f++){var F=r[f];if(!!F&&!F.match(it)){for(var u="",v=0,z=F.length;v<z;v++)F.charCodeAt(v)>127?u+="x":u+=F[v];if(!u.match(it)){var O=r.slice(0,f),I=r.slice(f+1),S=F.match(vt);S&&(O.push(S[1]),I.unshift(S[2])),I.length&&(h="/"+I.join(".")+h),this.hostname=O.join(".");break}}}this.hostname.length>bt?this.hostname="":this.hostname=this.hostname.toLowerCase(),Z||(this.hostname=pt.toASCII(this.hostname));var K=this.port?":"+this.port:"",E=this.hostname||"";this.host=E+K,this.href+=this.host,Z&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),h[0]!=="/"&&(h="/"+h))}if(!Ct[j])for(var f=0,c=et.length;f<c;f++){var _=et[f];if(h.indexOf(_)!==-1){var W=encodeURIComponent(_);W===_&&(W=escape(_)),h=h.split(_).join(W)}}var X=h.indexOf("#");X!==-1&&(this.hash=h.substr(X),h=h.slice(0,X));var V=h.indexOf("?");if(V!==-1?(this.search=h.substr(V),this.query=h.substr(V+1),a&&(this.query=ot.parse(this.query)),h=h.slice(0,V)):a&&(this.search="",this.query={}),h&&(this.pathname=h),Y[j]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var K=this.pathname||"",H=this.search||"";this.path=K+H}return this.href=this.format(),this};function qt(s){return L.isString(s)&&(s=Q(s)),s instanceof R?s.format():R.prototype.format.call(s)}R.prototype.format=function(){var s=this.auth||"";s&&(s=encodeURIComponent(s),s=s.replace(/%3A/i,":"),s+="@");var a=this.protocol||"",t=this.pathname||"",g=this.hash||"",p=!1,d="";this.host?p=s+this.host:this.hostname&&(p=s+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(p+=":"+this.port)),this.query&&L.isObject(this.query)&&Object.keys(this.query).length&&(d=ot.stringify(this.query));var m=this.search||d&&"?"+d||"";return a&&a.substr(-1)!==":"&&(a+=":"),this.slashes||(!a||Y[a])&&p!==!1?(p="//"+(p||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):p||(p=""),g&&g.charAt(0)!=="#"&&(g="#"+g),m&&m.charAt(0)!=="?"&&(m="?"+m),t=t.replace(/[?#]/g,function(h){return encodeURIComponent(h)}),m=m.replace("#","%23"),a+p+t+m+g};function Ot(s,a){return Q(s,!1,!0).resolve(a)}R.prototype.resolve=function(s){return this.resolveObject(Q(s,!1,!0)).format()};R.prototype.resolveObject=function(s){if(L.isString(s)){var a=new R;a.parse(s,!1,!0),s=a}for(var t=new R,g=Object.keys(this),p=0;p<g.length;p++){var d=g[p];t[d]=this[d]}if(t.hash=s.hash,s.href==="")return t.href=t.format(),t;if(s.slashes&&!s.protocol){for(var m=Object.keys(s),h=0;h<m.length;h++){var x=m[h];x!=="protocol"&&(t[x]=s[x])}return Y[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/"),t.href=t.format(),t}if(s.protocol&&s.protocol!==t.protocol){if(!Y[s.protocol]){for(var y=Object.keys(s),j=0;j<y.length;j++){var G=y[j];t[G]=s[G]}return t.href=t.format(),t}if(t.protocol=s.protocol,!s.host&&!rt[s.protocol]){for(var c=(s.pathname||"").split("/");c.length&&!(s.host=c.shift()););s.host||(s.host=""),s.hostname||(s.hostname=""),c[0]!==""&&c.unshift(""),c.length<2&&c.unshift(""),t.pathname=c.join("/")}else t.pathname=s.pathname;if(t.search=s.search,t.query=s.query,t.host=s.host||"",t.auth=s.auth,t.hostname=s.hostname||s.host,t.port=s.port,t.pathname||t.search){var b=t.pathname||"",f=t.search||"";t.path=b+f}return t.slashes=t.slashes||s.slashes,t.href=t.format(),t}var T=t.pathname&&t.pathname.charAt(0)==="/",k=s.host||s.pathname&&s.pathname.charAt(0)==="/",q=k||T||t.host&&s.pathname,Z=q,r=t.pathname&&t.pathname.split("/")||[],c=s.pathname&&s.pathname.split("/")||[],F=t.protocol&&!Y[t.protocol];if(F&&(t.hostname="",t.port=null,t.host&&(r[0]===""?r[0]=t.host:r.unshift(t.host)),t.host="",s.protocol&&(s.hostname=null,s.port=null,s.host&&(c[0]===""?c[0]=s.host:c.unshift(s.host)),s.host=null),q=q&&(c[0]===""||r[0]==="")),k)t.host=s.host||s.host===""?s.host:t.host,t.hostname=s.hostname||s.hostname===""?s.hostname:t.hostname,t.search=s.search,t.query=s.query,r=c;else if(c.length)r||(r=[]),r.pop(),r=r.concat(c),t.search=s.search,t.query=s.query;else if(!L.isNullOrUndefined(s.search)){if(F){t.hostname=t.host=r.shift();var u=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;u&&(t.auth=u.shift(),t.host=t.hostname=u.shift())}return t.search=s.search,t.query=s.query,(!L.isNull(t.pathname)||!L.isNull(t.search))&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t}if(!r.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var v=r.slice(-1)[0],z=(t.host||s.host||r.length>1)&&(v==="."||v==="..")||v==="",O=0,I=r.length;I>=0;I--)v=r[I],v==="."?r.splice(I,1):v===".."?(r.splice(I,1),O++):O&&(r.splice(I,1),O--);if(!q&&!Z)for(;O--;O)r.unshift("..");q&&r[0]!==""&&(!r[0]||r[0].charAt(0)!=="/")&&r.unshift(""),z&&r.join("/").substr(-1)!=="/"&&r.push("");var S=r[0]===""||r[0]&&r[0].charAt(0)==="/";if(F){t.hostname=t.host=S?"":r.length?r.shift():"";var u=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;u&&(t.auth=u.shift(),t.host=t.hostname=u.shift())}return q=q||t.host&&r.length,q&&!S&&r.unshift(""),r.length?t.pathname=r.join("/"):(t.pathname=null,t.path=null),(!L.isNull(t.pathname)||!L.isNull(t.search))&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=s.auth||t.auth,t.slashes=t.slashes||s.slashes,t.href=t.format(),t};R.prototype.parseHost=function(){var s=this.host,a=xt.exec(s);a&&(a=a[0],a!==":"&&(this.port=a.substr(1)),s=s.substr(0,s.length-a.length)),s&&(this.hostname=s)};export{It as f,Ft as p,jt as r};
diff --git a/assets/vue-next-select.9e6f4164.css b/assets/vue-next-select.9e6f4164.css
deleted file mode 100644
index e4812d2..0000000
--- a/assets/vue-next-select.9e6f4164.css
+++ /dev/null
@@ -1 +0,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}
diff --git a/assets/vue-next-select.aa58f779.js b/assets/vue-next-select.aa58f779.js
deleted file mode 100644
index 2e0915a..0000000
--- a/assets/vue-next-select.aa58f779.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import{o as b,_ as x,r as B,$ as h,bo as L,bp as w,M as P,aH as he,ao as ie,a8 as Ne,l as je,y as W,Y as y,a$ as S,ad as Ee,q as F,a_ as z,aD as ze,ap as _,aI as J,Z as $,a6 as X,w as ge,c as Le,b4 as $e,bn as Ue,aw as Pe,aB as qe,aj as ye,F as Y,I as K}from"./@vue.861e8bf0.js";function ue(e){return(ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function me(e){return function(t){if(Array.isArray(t))return ne(t)}(e)||function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||be(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function be(e,t){if(e){if(typeof e=="string")return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}function ne(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function N(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=be(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var o=0,g=function(){};return{s:g,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(c){throw c},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m,r=!0,v=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return r=c.done,c},e:function(c){v=!0,m=c},f:function(){try{r||n.return==null||n.return()}finally{if(v)throw m}}}}var ae={inheritAttrs:!1,name:"vue-input",props:{autocomplete:{required:!1,type:String},modelValue:{required:!0,type:String},placeholder:{required:!0,type:String},disabled:{required:!0,type:Boolean},tabindex:{required:!0,type:Number},autofocus:{required:!0,type:Boolean},comboboxUid:{required:!0,type:Number}},emits:["update:modelValue","input","change","focus","blur","escape"],setup:function(e,t){var n=F(null);return Pe(function(){e.autofocus&&n.value.focus()}),qe(function(){e.autofocus&&n.value.focus()}),{handleInput:function(o){t.emit("input",o),t.emit("update:modelValue",o.target.value)},handleChange:function(o){t.emit("change",o),t.emit("update:modelValue",o.target.value)},handleFocus:function(o){t.emit("focus",o)},handleBlur:function(o){t.emit("blur",o)},input:n,handleEscape:function(o){n.value.blur(),t.emit("escape",o)}}}},He={class:"vue-input"},_e=["autocomplete","modelValue","placeholder","disabled","tabindex","autofocus","aria-controls","aria-labelledby"];ae.render=function(e,t,n,o,g,m){return b(),x("div",He,[B(e.$slots,"prepend"),h("input",{ref:"input",autocomplete:n.autocomplete,modelValue:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,onInput:t[0]||(t[0]=function(){return o.handleInput&&o.handleInput.apply(o,arguments)}),onChange:t[1]||(t[1]=function(){return o.handleChange&&o.handleChange.apply(o,arguments)}),onFocus:t[2]||(t[2]=function(){return o.handleFocus&&o.handleFocus.apply(o,arguments)}),onBlur:t[3]||(t[3]=function(){return o.handleBlur&&o.handleBlur.apply(o,arguments)}),onKeyup:t[4]||(t[4]=L(w(function(){return o.handleEscape&&o.handleEscape.apply(o,arguments)},["exact"]),["esc"])),tabindex:n.tabindex,autofocus:n.autofocus,"aria-autocomplete":"list","aria-controls":"vs".concat(n.comboboxUid,"-listbox"),"aria-labelledby":"vs".concat(n.comboboxUid,"-combobox")},null,40,_e),B(e.$slots,"append")])},ae.__file="src/components/input.vue";var oe={inheritAttrs:!1,name:"vue-tags",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every(function(t){return ue(t.key)!==void 0&&t.label!==void 0&&typeof t.selected=="boolean"})}},collapseTags:{type:Boolean}},emits:["click"],setup:function(e,t){return{dataAttrs:ye("dataAttrs"),handleClick:function(n){t.emit("click",n)}}}};oe.render=function(e,t,n,o,g,m){return b(),x("ul",ie({class:["vue-tags",{collapsed:n.collapseTags}],onMousedown:t[0]||(t[0]=w(function(){},["prevent"])),tabindex:"-1",onClick:t[1]||(t[1]=function(){return o.handleClick&&o.handleClick.apply(o,arguments)})},o.dataAttrs),[(b(!0),x(P,null,he(n.modelValue,function(r){return b(),x(P,{key:r.key},[r.group?$("v-if",!0):(b(),x("li",{key:0,class:Y(["vue-tag",{selected:r.selected}])},[B(e.$slots,"default",{option:r},function(){return[h("span",null,K(r.label),1)]})],2))],64)}),128))],16)},oe.__file="src/components/tags.vue";var le={inheritAttrs:!1,name:"vue-dropdown",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every(function(t){return ue(t.key)!==void 0&&t.label!==void 0&&typeof t.selected=="boolean"})}},comboboxUid:{required:!0,type:Number},maxHeight:{required:!0},highlightedOriginalIndex:{required:!0}},emits:["click-item","mouseenter"],setup:function(e,t){return{dataAttrs:ye("dataAttrs"),handleClickItem:function(n,o){o.disabled||t.emit("click-item",n,o)},handleMouseenter:function(n,o){t.emit("mouseenter",n,o)}}}},Ze=["id","aria-multiselectable","aria-busy","aria-disabled"],Re=["onClick","onMouseenter","id","aria-selected","aria-disabled"];le.render=function(e,t,n,o,g,m){return b(),x("ul",ie({class:"vue-dropdown",style:{maxHeight:n.maxHeight+"px"},onMousedown:t[0]||(t[0]=w(function(){},["prevent"]))},o.dataAttrs,{role:"listbox",id:"vs".concat(n.comboboxUid,"-listbox"),"aria-multiselectable":o.dataAttrs["data-multiple"],"aria-busy":o.dataAttrs["data-loading"],"aria-disabled":o.dataAttrs["data-disabled"]}),[(b(!0),x(P,null,he(n.modelValue,function(r,v){return b(),x(P,{key:r.key},[r.visible&&r.hidden===!1?(b(),x("li",{key:0,onClick:function(c){return o.handleClickItem(c,r)},class:Y(["vue-dropdown-item",{selected:r.selected,disabled:r.disabled,highlighted:r.originalIndex===n.highlightedOriginalIndex,group:r.group}]),onMouseenter:function(c){return o.handleMouseenter(c,r)},role:"option",id:"vs".concat(n.comboboxUid,"-option-").concat(v),"aria-selected":!!r.selected||!!r.disabled&&void 0,"aria-disabled":r.disabled},[B(e.$slots,"default",{option:r},function(){return[h("span",null,K(r.label),1)]})],42,Re)):$("v-if",!0)],64)}),128))],16,Ze)},le.__file="src/components/dropdown.vue";var xe=function(e,t,n){var o=n.valueBy;return o(e)===o(t)},U=function(e,t,n){var o=n.valueBy;return e.some(function(g){return xe(g,t,{valueBy:o})})},D=function(e,t,n){var o=n.valueBy;return e.find(function(g){return o(g)===t})},ee=function(e,t,n){var o=n.max,g=n.valueBy;return U(e,t,{valueBy:g})||e.length>=o?e:e.concat(t)},te=function(e,t,n){var o=n.min,g=n.valueBy;return U(e,t,{valueBy:g})===!1||e.length<=o?e:e.filter(function(m){return xe(m,t,{valueBy:g})===!1})},G=function(e){return y(function(){return typeof e.value=="function"?e.value:typeof e.value=="string"?function(t){return e.value.split(".").reduce(function(n,o){return n[o]},t)}:function(t){return t}})},We=function(e,t){var n=y(function(){return e.value.reduce(function(r,v){return Object.assign(r,(c={},d=v.originalIndex,f=v,d in c?Object.defineProperty(c,d,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[d]=f,c));var c,d,f},{})}),o=function(r){var v=n.value[r];return v!==void 0&&g(v)!==!1&&(t.value=r,!0)},g=function(r){return!r.disabled&&!r.hidden&&r.visible},m=y(function(){return e.value.some(function(r){return g(r)})});return S(function(){if(m.value===!1&&(t.value=null),t.value!==null&&e.value.length<=t.value){var r,v=N(e.value.reverse());try{for(v.s();!(r=v.n()).done;){var c=r.value;if(o(c.originalIndex))break}}catch(V){v.e(V)}finally{v.f()}}if(t.value===null||g(e.value[t.value])===!1){var d,f=N(e.value);try{for(f.s();!(d=f.n()).done;){var j=d.value;if(o(j.originalIndex))break}}catch(V){f.e(V)}finally{f.f()}}}),{pointerForward:function(){if(m.value!==!1&&t.value!==null)for(var r=t.value+1,v=0;r!==t.value&&v++<e.value.length&&(e.value.length<=r&&(r=0),!o(r));)++r},pointerBackward:function(){if(m.value!==!1&&t.value!==null)for(var r=t.value-1,v=0;r!==t.value&&v++<e.value.length&&(r<0&&(r=e.value.length-1),!o(r));)--r},pointerSet:o}},re=Ne({name:"vue-select",inheritAttrs:!1,props:{modelValue:{required:!0},emptyModelValue:{},options:{required:!0,type:Array},labelBy:{type:[String,Function]},valueBy:{type:[String,Function]},disabledBy:{default:"disabled",type:[String,Function]},groupBy:{default:"group",type:[String,Function]},visibleOptions:{type:Array,default:null},multiple:{default:!1,type:Boolean},min:{default:0,type:Number},max:{default:1/0,type:Number},searchable:{default:!1,type:Boolean},searchPlaceholder:{default:"Type to search",type:String},clearOnSelect:{default:!1,type:Boolean},clearOnClose:{default:!1,type:Boolean},taggable:{default:!1,type:Boolean},collapseTags:{default:!1,type:Boolean},autocomplete:{default:"off",type:String},disabled:{default:!1,type:Boolean},loading:{default:!1,type:Boolean},closeOnSelect:{default:!1,type:Boolean},hideSelected:{default:!1,type:Boolean},placeholder:{default:"Select option",type:String},tabindex:{default:0,type:Number},autofocus:{default:!1,type:Boolean},maxHeight:{default:300,type:Number},openDirection:{type:String,validator:function(e){return["top","bottom"].includes(e)}}},emits:["selected","removed","update:modelValue","focus","blur","toggle","opened","closed","search:input","search:change","search:focus","search:blur"],setup:function(e,t){var n=function(a){var l=je({}),u=G(W(a,"labelBy"));S(function(){return l.labelBy=u.value});var i=G(W(a,"valueBy"));S(function(){return l.valueBy=i.value});var k=G(W(a,"disabledBy"));S(function(){return l.disabledBy=k.value});var p=G(W(a,"groupBy"));S(function(){return l.groupBy=p.value});var M=y(function(){return a.multiple?a.min:Math.min(1,a.min)});S(function(){return l.min=M.value});var C=y(function(){return a.multiple?a.max:1});return S(function(){return l.max=C.value}),S(function(){return l.options=a.options}),l}(e),o=y(function(){var a;return(a=e.emptyModelValue)!==null&&a!==void 0?a:null}),g=Ee(),m=F(),r=F(),v=F(),c=y(function(){var a;return(a=v.value)===null||a===void 0?void 0:a._.refs.input}),d=F(!1);z(function(){return d.value},function(){var a,l;d.value?(t.emit("opened"),t.emit("focus"),e.searchable?(c.value!==document.activeElement&&c.value.focus(),t.emit("search:focus")):(a=m.value)===null||a===void 0||a.focus()):(e.searchable?(c.value===document.activeElement&&c.value.blur(),e.clearOnClose&&pe(),t.emit("search:blur")):(l=m.value)===null||l===void 0||l.blur(),t.emit("closed"),t.emit("blur")),t.emit("toggle")});var f=function(){e.disabled||(d.value=!0)},j=function(a){var l;!((l=m.value)===null||l===void 0)&&l.contains(a==null?void 0:a.relatedTarget)?setTimeout(function(){var u;(u=m.value)===null||u===void 0||u.focus()}):d.value=!1};z(function(){return e.disabled},function(){return j()});var V=F(""),we=y(function(){return new RegExp(V.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}),Be=y(function(){return V.value?n.options.filter(function(a){return we.value.test(n.labelBy(a))}):void 0}),s=F([]),A=y(function(){return new Set(s.value.map(function(a){return n.valueBy(a)}))}),de=function(){if(e.multiple){if(Array.isArray(e.modelValue)===!1||s.value.length!==e.modelValue.length||Object.keys(s.value).some(function(a){return s.value[a]!==D(n.options,e.modelValue[a],{valueBy:n.valueBy})}))return!1}else if(s.value.length===0&&e.modelValue!==o.value||s.value.length===1&&e.modelValue===o.value||s.value[0]!==D(n.options,e.modelValue,{valueBy:n.valueBy}))return!1;return!0},se=function(){if(!de()){s.value=[];var a,l=N(e.multiple?e.modelValue:e.modelValue===o.value?[]:[e.modelValue]);try{for(l.s();!(a=l.n()).done;){var u=a.value,i=D(n.options,u,{valueBy:n.valueBy});U(n.options,i,{valueBy:n.valueBy})!==!1&&(s.value=ee(s.value,i,{max:1/0,valueBy:n.valueBy}))}}catch(k){l.e(k)}finally{l.f()}}};se(),z(function(){return e.modelValue},function(){return se()},{deep:!0}),z(function(){return n.options},function(){s.value=n.options.filter(function(a){return A.value.has(n.valueBy(a))})},{deep:!0});var ce,Ie=function(a,l){(l=l.originalOption).value.every(function(u){var i=D(n.options,u,{valueBy:n.valueBy});return U(s.value,i,{valueBy:n.valueBy})})?l.value.forEach(function(u){var i=D(n.options,u,{valueBy:n.valueBy});s.value=te(s.value,i,{min:n.min,valueBy:n.valueBy}),t.emit("removed",i)}):l.value.forEach(function(u){var i=D(n.options,u,{valueBy:n.valueBy});U(s.value,i,{valueBy:n.valueBy})||(s.value=ee(s.value,i,{max:n.max,valueBy:n.valueBy}),t.emit("selected",i))})},ke=function(a,l){if(l=l.originalOption,U(s.value,l,{valueBy:n.valueBy}))s.value=te(s.value,l,{min:n.min,valueBy:n.valueBy}),t.emit("removed",l);else{if(!e.multiple&&s.value.length===1){var u=s.value[0];s.value=te(s.value,s.value[0],{min:0,valueBy:n.valueBy}),t.emit("removed",u)}s.value=ee(s.value,l,{max:n.max,valueBy:n.valueBy}),t.emit("selected",l)}},Me=function(){if(!de()){var a=s.value.map(function(l){return n.valueBy(l)});e.multiple?t.emit("update:modelValue",a):a.length?t.emit("update:modelValue",a[0]):t.emit("update:modelValue",o.value)}},pe=function(){c.value.value="",c.value.dispatchEvent(new Event("input")),c.value.dispatchEvent(new Event("change"))},Oe=y(function(){var a,l;return(l=(a=e.visibleOptions)!==null&&a!==void 0?a:Be.value)!==null&&l!==void 0?l:n.options}),Z=F(0),I=y(function(){var a,l=new Set(Oe.value.map(function(p){return n.valueBy(p)})),u=n.options.map(function(p,M){var C,O={key:n.valueBy(p),label:n.labelBy(p),group:(C=n.groupBy(p))!==null&&C!==void 0&&C,originalIndex:M,originalOption:p};return O.selected=O.group?p.value.every(function(T){return A.value.has(T)}):A.value.has(n.valueBy(p)),O.disabled=O.group?n.disabledBy(p)||p.value.every(function(T){var De=D(n.options,T,{valueBy:n.valueBy});return n.disabledBy(De)}):n.disabledBy(p),O.visible=O.group?p.value.some(function(T){return l.has(T)}):l.has(n.valueBy(p)),O.hidden=!!e.hideSelected&&(O.group?p.value.every(function(T){return A.value.has(T)}):A.value.has(n.valueBy(p))),O}),i=N(u);try{for(i.s();!(a=i.n()).done;){var k=a.value;k.group!==!1&&k.disabled&&function(){var p=new Set(k.originalOption.value);u.filter(function(M){return p.has(n.valueBy(M.originalOption))}).forEach(function(M){return M.disabled=!0})}()}}catch(p){i.e(p)}finally{i.f()}return u}),Q=We(I,Z),Fe=Q.pointerForward,Ve=Q.pointerBackward,q=Q.pointerSet,R="",Se=/^[\w]$/,Ae=y(function(){var a=me(n.options.keys());return a.slice(Z.value).concat(a.slice(0,Z.value))}),H=function(){var a,l=(a=m.value)===null||a===void 0?void 0:a.querySelector(".highlighted");if(l&&r.value){var u,i=getComputedStyle(l);for(u=0;l.offsetTop+parseFloat(i.height)+parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)>r.value.$el.clientHeight+r.value.$el.scrollTop&&u++<I.value.length;)r.value.$el.scrollTop=r.value.$el.scrollTop+parseFloat(i.height)+parseFloat(i.paddingTop)+parseFloat(i.paddingBottom);for(u=0;l.offsetTop<r.value.$el.scrollTop&&u++<I.value.length;)r.value.$el.scrollTop=r.value.$el.scrollTop-parseFloat(i.height)-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)}};z(function(){return[d.value,n.options,A.value]},function(a,l){(l==null?void 0:l[0])!==!0&&d.value!==!1&&s.value.length!==0&&(q(n.options.findIndex(function(u){return A.value.has(n.valueBy(u))})),_(H))},{deep:!0,immediate:!0});var ve=y(function(){return{"data-is-focusing":d.value,"data-visible-length":I.value.filter(function(a){return a.visible&&a.hidden===!1}).length,"data-not-selected-length":n.options.length-I.value.filter(function(a){return a.selected}).length,"data-selected-length":I.value.filter(function(a){return a.selected}).length,"data-addable":I.value.filter(function(a){return a.selected}).length<n.max,"data-removable":I.value.filter(function(a){return a.selected}).length>n.min,"data-total-length":n.options.length,"data-multiple":e.multiple,"data-loading":e.loading,"data-disabled":e.disabled}});ze("dataAttrs",ve);var E=y(function(){return I.value.filter(function(a){return a.selected}).filter(function(a){return!a.group})}),Ce=y(function(){return e.multiple?E.value.length===0?e.placeholder:E.value.length===1?"1 option selected":E.value.length+" options selected":E.value.length===0?e.placeholder:E.value[0].label+""}),Te=y(function(){var a=E.value.map(function(l){return l.originalOption});return e.multiple?a:a[0]||o.value}),fe=F();return z(function(){return[e.openDirection,d.value]},function(){var a,l;fe.value=(l=(a=e.openDirection)!==null&&a!==void 0?a:function(){if(m.value!==void 0&&window!==void 0)return window.innerHeight-m.value.getBoundingClientRect().bottom>=e.maxHeight?"bottom":"top"}())!==null&&l!==void 0?l:"bottom"},{immediate:!0}),{instance:g,isFocusing:d,wrapper:m,dropdown:r,input:v,focus:f,blur:j,toggle:function(){d.value?j():f()},searchingInputValue:V,handleInputForInput:function(a){t.emit("search:input",a)},handleChangeForInput:function(a){t.emit("search:change",a)},handleFocusForInput:function(a){f()},handleBlurForInput:function(a){j()},optionsWithInfo:I,addOrRemoveOption:function(a,l){e.disabled||(l.group&&e.multiple?Ie(a,l):ke(a,l),Me(),e.closeOnSelect===!0&&(d.value=!1),e.clearOnSelect===!0&&V.value&&pe())},dataAttrs:ve,innerPlaceholder:Ce,selected:Te,highlightedOriginalIndex:Z,pointerForward:function(){Fe(),_(H)},pointerBackward:function(){Ve(),_(H)},pointerFirst:function(){var a,l=N(n.options.keys());try{for(l.s();!(a=l.n()).done;){var u=a.value;if(q(u))break}}catch(i){l.e(i)}finally{l.f()}_(H)},pointerLast:function(){var a,l=N(me(n.options.keys()).reverse());try{for(l.s();!(a=l.n()).done;){var u=a.value;if(q(u))break}}catch(i){l.e(i)}finally{l.f()}_(H)},typeAhead:function(a){var l,u;if(!e.searchable){var i=!1;if(Se.test(a.key)?(R+=a.key.toLowerCase(),i=!0):a.code==="Space"&&(R+=" "),i){var k,p=N(Ae.value);try{for(p.s();!(k=p.n()).done;){var M=k.value;if(((u=(l=n.labelBy(n.options[M]))===null||l===void 0?void 0:l.toLowerCase())===null||u===void 0?void 0:u.startsWith(R))===!0&&q(M))break}}catch(C){p.e(C)}finally{p.f()}clearTimeout(ce),ce=setTimeout(function(){R=""},500)}}},pointerSet:q,direction:fe}},components:{VInput:ae,VTags:oe,VDropdown:le}});re.__VERSION__="2.10.4";var Ge=["tabindex","id","role","aria-expanded","aria-owns","aria-activedescendant","aria-busy","aria-disabled"],Ye={class:"vue-select-header"},Ke={key:0,class:"vue-input"},Qe=["placeholder","autocomplete"],Je=["onClick"],Xe=h("span",{class:"icon loading"},[h("div"),h("div"),h("div")],-1),et={key:0,class:"vue-select-input-wrapper"},tt=h("span",{class:"icon loading"},[h("div"),h("div"),h("div")],-1);re.render=function(e,t,n,o,g,m){var r=J("v-tags"),v=J("v-input"),c=J("v-dropdown");return b(),x("div",ie({ref:"wrapper",class:["vue-select",["direction-".concat(e.direction)]],tabindex:e.isFocusing?-1:e.tabindex,onFocus:t[9]||(t[9]=function(){return e.focus&&e.focus.apply(e,arguments)}),onBlur:t[10]||(t[10]=function(d){return!e.searchable&&e.blur(d)})},Object.assign({},e.dataAttrs,e.$attrs),{onKeypress:t[11]||(t[11]=L(w(function(){return e.highlightedOriginalIndex!==null&&e.addOrRemoveOption(e.$event,e.optionsWithInfo[e.highlightedOriginalIndex])},["prevent","exact"]),["enter"])),onKeydown:[t[12]||(t[12]=L(w(function(){return e.pointerForward&&e.pointerForward.apply(e,arguments)},["prevent","exact"]),["down"])),t[13]||(t[13]=L(w(function(){return e.pointerBackward&&e.pointerBackward.apply(e,arguments)},["prevent","exact"]),["up"])),t[14]||(t[14]=L(w(function(){return e.pointerFirst&&e.pointerFirst.apply(e,arguments)},["prevent","exact"]),["home"])),t[15]||(t[15]=L(w(function(){return e.pointerLast&&e.pointerLast.apply(e,arguments)},["prevent","exact"]),["end"])),t[16]||(t[16]=function(){return e.typeAhead&&e.typeAhead.apply(e,arguments)})],id:"vs".concat(e.instance.uid,"-combobox"),role:e.searchable?"combobox":null,"aria-expanded":e.isFocusing,"aria-haspopup":"listbox","aria-owns":"vs".concat(e.instance.uid,"-listbox"),"aria-activedescendant":e.highlightedOriginalIndex===null?null:"vs".concat(e.instance.uid,"-option-").concat(e.highlightedOriginalIndex),"aria-busy":e.loading,"aria-disabled":e.disabled}),[h("div",Ye,[e.multiple&&e.taggable&&e.modelValue.length===0||e.searchable===!1&&e.taggable===!1?(b(),x("div",Ke,[B(e.$slots,"label",{selected:e.selected},function(){return[h("input",{placeholder:e.innerPlaceholder,autocomplete:e.autocomplete,readonly:"",onClick:t[0]||(t[0]=function(){return e.focus&&e.focus.apply(e,arguments)})},null,8,Qe)]})])):$("v-if",!0),e.multiple&&e.taggable?(b(),x(P,{key:1},[X(r,{modelValue:e.optionsWithInfo,"collapse-tags":e.collapseTags,tabindex:"-1",onClick:e.focus},{default:ge(function(d){var f=d.option;return[B(e.$slots,"tag",{option:f.originalOption,remove:function(){return e.addOrRemoveOption(e.$event,f)}},function(){return[h("span",null,K(f.label),1),h("img",{src:"data:image/svg+xml;base64,PHN2ZyBpZD0iZGVsZXRlIiBkYXRhLW5hbWU9ImRlbGV0ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHRpdGxlPmRlbGV0ZTwvdGl0bGU+PHBhdGggZD0iTTI1NiwyNEMzODMuOSwyNCw0ODgsMTI4LjEsNDg4LDI1NlMzODMuOSw0ODgsMjU2LDQ4OCwyNC4wNiwzODMuOSwyNC4wNiwyNTYsMTI4LjEsMjQsMjU2LDI0Wk0wLDI1NkMwLDM5Ny4xNiwxMTQuODQsNTEyLDI1Niw1MTJTNTEyLDM5Ny4xNiw1MTIsMjU2LDM5Ny4xNiwwLDI1NiwwLDAsMTE0Ljg0LDAsMjU2WiIgZmlsbD0iIzViNWI1ZiIvPjxwb2x5Z29uIHBvaW50cz0iMzgyIDE3Mi43MiAzMzkuMjkgMTMwLjAxIDI1NiAyMTMuMjkgMTcyLjcyIDEzMC4wMSAxMzAuMDEgMTcyLjcyIDIxMy4yOSAyNTYgMTMwLjAxIDMzOS4yOCAxNzIuNzIgMzgyIDI1NiAyOTguNzEgMzM5LjI5IDM4MS45OSAzODIgMzM5LjI4IDI5OC43MSAyNTYgMzgyIDE3Mi43MiIgZmlsbD0iIzViNWI1ZiIvPjwvc3ZnPg==",alt:"delete tag",class:"icon delete",onClick:w(function(){return e.addOrRemoveOption(e.$event,f)},["prevent","stop"])},null,8,Je)]})]}),_:3},8,["modelValue","collapse-tags","onClick"]),B(e.$slots,"toggle",{isFocusing:e.isFocusing,toggle:e.toggle},function(){return[h("span",{class:Y(["icon arrow-downward",{active:e.isFocusing}]),onClick:t[1]||(t[1]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:t[2]||(t[2]=w(function(){},["prevent","stop"]))},null,34)]})],64)):(b(),x(P,{key:2},[e.searchable?(b(),Le(v,{key:0,ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[3]||(t[3]=function(d){return e.searchingInputValue=d}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"])):$("v-if",!0),e.loading?B(e.$slots,"loading",{key:1},function(){return[Xe]}):B(e.$slots,"toggle",{key:2,isFocusing:e.isFocusing,toggle:e.toggle},function(){return[h("span",{class:Y(["icon arrow-downward",{active:e.isFocusing}]),onClick:t[4]||(t[4]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:t[5]||(t[5]=w(function(){},["prevent","stop"]))},null,34)]})],64))]),e.multiple&&e.taggable&&e.searchable?(b(),x("div",et,[$e(X(v,{ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[6]||(t[6]=function(d){return e.searchingInputValue=d}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"]),[[Ue,e.isFocusing]]),e.loading?B(e.$slots,"loading",{key:0},function(){return[tt]}):$("v-if",!0)])):$("v-if",!0),X(c,{ref:"dropdown",modelValue:e.optionsWithInfo,"onUpdate:modelValue":t[7]||(t[7]=function(d){return e.optionsWithInfo=d}),onClickItem:e.addOrRemoveOption,onMouseenter:t[8]||(t[8]=function(d,f){return e.pointerSet(f.originalIndex)}),comboboxUid:e.instance.uid,maxHeight:e.maxHeight,highlightedOriginalIndex:e.highlightedOriginalIndex},{default:ge(function(d){var f=d.option;return[B(e.$slots,"dropdown-item",{option:f.originalOption},function(){return[h("span",null,K(f.label),1)]})]}),_:3},8,["modelValue","onClickItem","comboboxUid","maxHeight","highlightedOriginalIndex"])],16,Ge)},re.__file="src/index.vue";export{re as Y};
diff --git a/assets/vue-textarea-autosize.35804eaf.js b/assets/vue-textarea-autosize.35804eaf.js
deleted file mode 100644
index e0bd93a..0000000
--- a/assets/vue-textarea-autosize.35804eaf.js
+++ /dev/null
@@ -1,5 +0,0 @@
-/*!
- * vue-textarea-autosize v1.1.1 
- * (c) 2019 Saymon
- * Released under the MIT License.
- */var p={name:"TextareaAutosize",props:{value:{type:[String,Number],default:""},autosize:{type:Boolean,default:!0},minHeight:{type:[Number],default:null},maxHeight:{type:[Number],default:null},important:{type:[Boolean,Array],default:!1}},data:function(){return{val:null,maxHeightScroll:!1,height:"auto"}},computed:{computedStyles:function(){return this.autosize?{resize:this.isResizeImportant?"none !important":"none",height:this.height,overflow:this.maxHeightScroll?"auto":this.isOverflowImportant?"hidden !important":"hidden"}:{}},isResizeImportant:function(){var e=this.important;return e===!0||Array.isArray(e)&&e.includes("resize")},isOverflowImportant:function(){var e=this.important;return e===!0||Array.isArray(e)&&e.includes("overflow")},isHeightImportant:function(){var e=this.important;return e===!0||Array.isArray(e)&&e.includes("height")}},watch:{value:function(e){this.val=e},val:function(e){this.$nextTick(this.resize),this.$emit("input",e)},minHeight:function(){this.$nextTick(this.resize)},maxHeight:function(){this.$nextTick(this.resize)},autosize:function(e){e&&this.resize()}},methods:{resize:function(){var e=this,a=this.isHeightImportant?"important":"";return this.height="auto".concat(a?" !important":""),this.$nextTick(function(){var i=e.$el.scrollHeight+1;e.minHeight&&(i=i<e.minHeight?e.minHeight:i),e.maxHeight&&(i>e.maxHeight?(i=e.maxHeight,e.maxHeightScroll=!0):e.maxHeightScroll=!1);var u=i+"px";e.height="".concat(u).concat(a?" !important":"")}),this}},created:function(){this.val=this.value},mounted:function(){this.resize()}};function g(t,e,a,i,u,f,s,l,m,d){typeof s!="boolean"&&(m=l,l=s,s=!1);var n=typeof a=="function"?a.options:a;t&&t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns,n._compiled=!0,u&&(n.functional=!0)),i&&(n._scopeId=i);var o;if(f?(o=function(r){r=r||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!r&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(r=__VUE_SSR_CONTEXT__),e&&e.call(this,m(r)),r&&r._registeredComponents&&r._registeredComponents.add(f)},n._ssrRegister=o):e&&(o=s?function(){e.call(this,d(this.$root.$options.shadowRoot))}:function(h){e.call(this,l(h))}),o)if(n.functional){var v=n.render;n.render=function(r,c){return o.call(c),v(r,c)}}else{var _=n.beforeCreate;n.beforeCreate=_?[].concat(_,o):[o]}return a}var z=g;const H=p;var y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],style:t.computedStyles,domProps:{value:t.val},on:{focus:t.resize,input:function(i){i.target.composing||(t.val=i.target.value)}}})},x=[];const $=void 0,w=void 0,S=void 0,T=!1;var A=z({render:y,staticRenderFns:x},$,H,w,T,S,void 0,void 0),C="1.1.1",R=function(e){e.component("TextareaAutosize",A)},b={install:R,version:C};typeof window!="undefined"&&window.Vue&&window.Vue.use(b);export{b as p};
diff --git a/assets/vue-toastification.17ba848b.js b/assets/vue-toastification.17ba848b.js
deleted file mode 100644
index ed560da..0000000
--- a/assets/vue-toastification.17ba848b.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a8 as T,x as pt,B as ht,o as i,_ as u,H as j,F as y,c as h,w as I,ao as P,aK as A,a5 as N,I as G,aI as b,Z as S,$ as C,M as D,aS as gt,bp as _t,r as vt,b7 as Tt,aH as $,a6 as bt,ad as yt,aj as Vt,ap as Ct,b9 as Bt}from"./@vue.861e8bf0.js";var xt=Object.defineProperty,Y=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,H=(t,e,a)=>e in t?xt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,W=(t,e)=>{for(var a in e||(e={}))Ot.call(e,a)&&H(t,a,e[a]);if(Y)for(var a of Y(e))It.call(e,a)&&H(t,a,e[a]);return t},w=t=>typeof t=="function",R=t=>typeof t=="string",q=t=>R(t)&&t.trim().length>0,wt=t=>typeof t=="number",v=t=>typeof t=="undefined",V=t=>typeof t=="object"&&t!==null,Rt=t=>d(t,"tag")&&q(t.tag),Z=t=>window.TouchEvent&&t instanceof TouchEvent,K=t=>d(t,"component")&&J(t.component),St=t=>w(t)||V(t),J=t=>!v(t)&&(R(t)||St(t)||K(t)),F=t=>V(t)&&["height","width","right","left","top","bottom"].every(e=>wt(t[e])),d=(t,e)=>(V(t)||w(t))&&e in t,Et=(t=>()=>t++)(0);function E(t){return Z(t)?t.targetTouches[0].clientX:t.clientX}function z(t){return Z(t)?t.targetTouches[0].clientY:t.clientY}var Dt=t=>{v(t.remove)?t.parentNode&&t.parentNode.removeChild(t):t.remove()},B=t=>K(t)?B(t.component):Rt(t)?T({render(){return t}}):typeof t=="string"?t:pt(ht(t)),kt=t=>{if(typeof t=="string")return t;const e=d(t,"props")&&V(t.props)?t.props:{},a=d(t,"listeners")&&V(t.listeners)?t.listeners:{};return{component:B(t),props:e,listeners:a}},Lt=()=>typeof window!="undefined",M=class{constructor(){this.allHandlers={}}getHandlers(t){return this.allHandlers[t]||[]}on(t,e){const a=this.getHandlers(t);a.push(e),this.allHandlers[t]=a}off(t,e){const a=this.getHandlers(t);a.splice(a.indexOf(e)>>>0,1)}emit(t,e){this.getHandlers(t).forEach(n=>n(e))}},Pt=t=>["on","off","emit"].every(e=>d(t,e)&&w(t[e])),r;(function(t){t.SUCCESS="success",t.ERROR="error",t.WARNING="warning",t.INFO="info",t.DEFAULT="default"})(r||(r={}));var O;(function(t){t.TOP_LEFT="top-left",t.TOP_CENTER="top-center",t.TOP_RIGHT="top-right",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_CENTER="bottom-center",t.BOTTOM_RIGHT="bottom-right"})(O||(O={}));var c;(function(t){t.ADD="add",t.DISMISS="dismiss",t.UPDATE="update",t.CLEAR="clear",t.UPDATE_DEFAULTS="update_defaults"})(c||(c={}));var f="Vue-Toastification",l={type:{type:String,default:r.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},Q={type:l.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},x={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:l.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},k={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},tt={transition:{type:[Object,String],default:`${f}__bounce`}},At={position:{type:String,default:O.TOP_RIGHT},draggable:l.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:l.trueBoolean,pauseOnHover:l.trueBoolean,closeOnClick:l.trueBoolean,timeout:k.timeout,hideProgressBar:k.hideProgressBar,toastClassName:l.classNames,bodyClassName:l.classNames,icon:Q.customIcon,closeButton:x.component,closeButtonClassName:x.classNames,showCloseButtonOnHover:x.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new M}},Nt={id:{type:[String,Number],required:!0,default:0},type:l.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},Mt={container:{type:[Object,Function],default:()=>document.body},newestOnTop:l.trueBoolean,maxToasts:{type:Number,default:20},transition:tt.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:t=>t},filterToasts:{type:Function,default:t=>t},containerClassName:l.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},m={CORE_TOAST:At,TOAST:Nt,CONTAINER:Mt,PROGRESS_BAR:k,ICON:Q,TRANSITION:tt,CLOSE_BUTTON:x},et=T({name:"VtProgressBar",props:m.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${f}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function $t(t,e){return i(),u("div",{style:j(t.style),class:y(t.cpClass)},null,6)}et.render=$t;var Yt=et,at=T({name:"VtCloseButton",props:m.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?B(this.component):"button"},classes(){const t=[`${f}__close-button`];return this.showOnHover&&t.push("show-on-hover"),t.concat(this.classNames)}}}),Ht=N(" \xD7 ");function Ft(t,e){return i(),h(A(t.buttonComponent),P({"aria-label":t.ariaLabel,class:t.classes},t.$attrs),{default:I(()=>[Ht]),_:1},16,["aria-label","class"])}at.render=Ft;var zt=at,ot={},Ut={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Xt=C("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1),jt=[Xt];function Gt(t,e){return i(),u("svg",Ut,jt)}ot.render=Gt;var Wt=ot,nt={},qt={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Zt=C("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1),Kt=[Zt];function Jt(t,e){return i(),u("svg",qt,Kt)}nt.render=Jt;var U=nt,it={},Qt={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},te=C("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),ee=[te];function ae(t,e){return i(),u("svg",Qt,ee)}it.render=ae;var oe=it,st={},ne={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},ie=C("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),se=[ie];function re(t,e){return i(),u("svg",ne,se)}st.render=re;var ce=st,rt=T({name:"VtIcon",props:m.ICON,computed:{customIconChildren(){return d(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return R(this.customIcon)?this.trimValue(this.customIcon):d(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return d(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:J(this.customIcon)?B(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[r.DEFAULT]:U,[r.INFO]:U,[r.SUCCESS]:Wt,[r.ERROR]:ce,[r.WARNING]:oe}[this.type]},iconClasses(){const t=[`${f}__icon`];return this.hasCustomIcon?t.concat(this.customIconClass):t}},methods:{trimValue(t,e=""){return q(t)?t.trim():e}}});function le(t,e){return i(),h(A(t.component),{class:y(t.iconClasses)},{default:I(()=>[N(G(t.customIconChildren),1)]),_:1},8,["class"])}rt.render=le;var ue=rt,ct=T({name:"VtToast",components:{ProgressBar:Yt,CloseButton:zt,Icon:ue},inheritAttrs:!1,props:Object.assign({},m.CORE_TOAST,m.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const t=[`${f}__toast`,`${f}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&t.push("disable-transition"),this.rtl&&t.push(`${f}__toast--rtl`),t},bodyClasses(){return[`${f}__toast-${R(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return F(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:d,getVueComponentFromObj:B,closeToast(){this.eventBus.emit(c.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const t=this.$el;t.addEventListener("touchstart",this.onDragStart,{passive:!0}),t.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const t=this.$el;t.removeEventListener("touchstart",this.onDragStart),t.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(t){this.beingDragged=!0,this.dragPos={x:E(t),y:z(t)},this.dragStart=E(t),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(t){this.beingDragged&&(t.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:E(t),y:z(t)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,F(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),fe=["role"];function de(t,e){const a=b("Icon"),n=b("CloseButton"),g=b("ProgressBar");return i(),u("div",{class:y(t.classes),style:j(t.draggableStyle),onClick:e[0]||(e[0]=(...o)=>t.clickHandler&&t.clickHandler(...o)),onMouseenter:e[1]||(e[1]=(...o)=>t.hoverPause&&t.hoverPause(...o)),onMouseleave:e[2]||(e[2]=(...o)=>t.hoverPlay&&t.hoverPlay(...o))},[t.icon?(i(),h(a,{key:0,"custom-icon":t.icon,type:t.type},null,8,["custom-icon","type"])):S("v-if",!0),C("div",{role:t.accessibility.toastRole||"alert",class:y(t.bodyClasses)},[typeof t.content=="string"?(i(),u(D,{key:0},[N(G(t.content),1)],2112)):(i(),h(A(t.getVueComponentFromObj(t.content)),P({key:1,"toast-id":t.id},t.hasProp(t.content,"props")?t.content.props:{},gt(t.hasProp(t.content,"listeners")?t.content.listeners:{}),{onCloseToast:t.closeToast}),null,16,["toast-id","onCloseToast"]))],10,fe),t.closeButton?(i(),h(n,{key:1,component:t.closeButton,"class-names":t.closeButtonClassName,"show-on-hover":t.showCloseButtonOnHover,"aria-label":t.accessibility.closeButtonLabel,onClick:_t(t.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):S("v-if",!0),t.timeout?(i(),h(g,{key:2,"is-running":t.isRunning,"hide-progress-bar":t.hideProgressBar,timeout:t.timeout,onCloseToast:t.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):S("v-if",!0)],38)}ct.render=de;var me=ct,lt=T({name:"VtTransition",props:m.TRANSITION,emits:["leave"],methods:{hasProp:d,leave(t){t instanceof HTMLElement&&(t.style.left=t.offsetLeft+"px",t.style.top=t.offsetTop+"px",t.style.width=getComputedStyle(t).width,t.style.position="absolute")}}});function pe(t,e){return i(),h(Tt,{tag:"div","enter-active-class":t.transition.enter?t.transition.enter:`${t.transition}-enter-active`,"move-class":t.transition.move?t.transition.move:`${t.transition}-move`,"leave-active-class":t.transition.leave?t.transition.leave:`${t.transition}-leave-active`,onLeave:t.leave},{default:I(()=>[vt(t.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}lt.render=pe;var he=lt,ut=T({name:"VueToastification",devtools:{hide:!0},components:{Toast:me,VtTransition:he},props:Object.assign({},m.CORE_TOAST,m.CONTAINER,m.TRANSITION),data(){return{count:0,positions:Object.values(O),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const t=this.eventBus;t.on(c.ADD,this.addToast),t.on(c.CLEAR,this.clearToasts),t.on(c.DISMISS,this.dismissToast),t.on(c.UPDATE,this.updateToast),t.on(c.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(t){w(t)&&(t=await t()),Dt(this.$el),t.appendChild(this.$el)},setToast(t){v(t.id)||(this.toasts[t.id]=t)},addToast(t){t.content=kt(t.content);const e=Object.assign({},this.defaults,t.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[t.type],t),a=this.defaults.filterBeforeCreate(e,this.toastArray);a&&this.setToast(a)},dismissToast(t){const e=this.toasts[t];!v(e)&&!v(e.onClose)&&e.onClose(),delete this.toasts[t]},clearToasts(){Object.keys(this.toasts).forEach(t=>{this.dismissToast(t)})},getPositionToasts(t){const e=this.filteredToasts.filter(a=>a.position===t).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?e.reverse():e},updateDefaults(t){v(t.container)||this.setup(t.container),this.defaults=Object.assign({},this.defaults,t)},updateToast({id:t,options:e,create:a}){this.toasts[t]?(e.timeout&&e.timeout===this.toasts[t].timeout&&e.timeout++,this.setToast(Object.assign({},this.toasts[t],e))):a&&this.addToast(Object.assign({},{id:t},e))},getClasses(t){return[`${f}__container`,t].concat(this.defaults.containerClassName)}}});function ge(t,e){const a=b("Toast"),n=b("VtTransition");return i(),u("div",null,[(i(!0),u(D,null,$(t.positions,g=>(i(),u("div",{key:g},[bt(n,{transition:t.defaults.transition,class:y(t.getClasses(g))},{default:I(()=>[(i(!0),u(D,null,$(t.getPositionToasts(g),o=>(i(),h(a,P({key:o.id},o),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}ut.render=ge;var _e=ut,X=(t={},e=!0)=>{const a=t.eventBus=t.eventBus||new M;e&&Ct(()=>{const o=Bt(_e,W({},t)),s=o.mount(document.createElement("div")),_=t.onMounted;if(v(_)||_(s,o),t.shareAppContext){const p=t.shareAppContext;p===!0?console.warn(`[${f}] App to share context with was not provided.`):(o._context.components=p._context.components,o._context.directives=p._context.directives,o._context.mixins=p._context.mixins,o._context.provides=p._context.provides,o.config.globalProperties=p.config.globalProperties)}});const n=(o,s)=>{const _=Object.assign({},{id:Et(),type:r.DEFAULT},s,{content:o});return a.emit(c.ADD,_),_.id};n.clear=()=>a.emit(c.CLEAR,void 0),n.updateDefaults=o=>{a.emit(c.UPDATE_DEFAULTS,o)},n.dismiss=o=>{a.emit(c.DISMISS,o)};function g(o,{content:s,options:_},p=!1){const mt=Object.assign({},_,{content:s});a.emit(c.UPDATE,{id:o,options:mt,create:p})}return n.update=g,n.success=(o,s)=>n(o,Object.assign({},s,{type:r.SUCCESS})),n.info=(o,s)=>n(o,Object.assign({},s,{type:r.INFO})),n.error=(o,s)=>n(o,Object.assign({},s,{type:r.ERROR})),n.warning=(o,s)=>n(o,Object.assign({},s,{type:r.WARNING})),n},ve=()=>{const t=()=>console.warn(`[${f}] This plugin does not support SSR!`);return new Proxy(t,{get(){return t}})};function L(t){return Lt()?Pt(t)?X({eventBus:t},!1):X(t,!0):ve()}var ft=Symbol("VueToastification"),dt=new M,Te=(t,e)=>{(e==null?void 0:e.shareAppContext)===!0&&(e.shareAppContext=t);const a=L(W({eventBus:dt},e));t.provide(ft,a)},ye=t=>{if(t)return L(t);const e=yt()?Vt(ft,void 0):void 0;return e||L(dt)},Ve=Te;export{Ve as s,ye as u};
diff --git a/assets/vue-toastification.4b5f8ac8.css b/assets/vue-toastification.4b5f8ac8.css
deleted file mode 100644
index b701b41..0000000
--- a/assets/vue-toastification.4b5f8ac8.css
+++ /dev/null
@@ -1 +0,0 @@
-.Vue-Toastification__container{z-index:9999;position:fixed;padding:4px;width:600px;box-sizing:border-box;display:flex;min-height:100%;color:#fff;flex-direction:column;pointer-events:none}@media only screen and (min-width : 600px){.Vue-Toastification__container.top-left,.Vue-Toastification__container.top-right,.Vue-Toastification__container.top-center{top:1em}.Vue-Toastification__container.bottom-left,.Vue-Toastification__container.bottom-right,.Vue-Toastification__container.bottom-center{bottom:1em;flex-direction:column-reverse}.Vue-Toastification__container.top-left,.Vue-Toastification__container.bottom-left{left:1em}.Vue-Toastification__container.top-left .Vue-Toastification__toast,.Vue-Toastification__container.bottom-left .Vue-Toastification__toast{margin-right:auto}@supports not (-moz-appearance: none){.Vue-Toastification__container.top-left .Vue-Toastification__toast--rtl,.Vue-Toastification__container.bottom-left .Vue-Toastification__toast--rtl{margin-right:unset;margin-left:auto}}.Vue-Toastification__container.top-right,.Vue-Toastification__container.bottom-right{right:1em}.Vue-Toastification__container.top-right .Vue-Toastification__toast,.Vue-Toastification__container.bottom-right .Vue-Toastification__toast{margin-left:auto}@supports not (-moz-appearance: none){.Vue-Toastification__container.top-right .Vue-Toastification__toast--rtl,.Vue-Toastification__container.bottom-right .Vue-Toastification__toast--rtl{margin-left:unset;margin-right:auto}}.Vue-Toastification__container.top-center,.Vue-Toastification__container.bottom-center{left:50%;margin-left:-300px}.Vue-Toastification__container.top-center .Vue-Toastification__toast,.Vue-Toastification__container.bottom-center .Vue-Toastification__toast{margin-left:auto;margin-right:auto}}@media only screen and (max-width : 600px){.Vue-Toastification__container{width:100vw;padding:0;left:0;margin:0}.Vue-Toastification__container .Vue-Toastification__toast{width:100%}.Vue-Toastification__container.top-left,.Vue-Toastification__container.top-right,.Vue-Toastification__container.top-center{top:0}.Vue-Toastification__container.bottom-left,.Vue-Toastification__container.bottom-right,.Vue-Toastification__container.bottom-center{bottom:0;flex-direction:column-reverse}}.Vue-Toastification__toast{display:inline-flex;position:relative;max-height:800px;min-height:64px;box-sizing:border-box;margin-bottom:1rem;padding:22px 24px;border-radius:8px;box-shadow:0 1px 10px #0000001a,0 2px 15px #0000000d;justify-content:space-between;font-family:Lato,Helvetica,Roboto,Arial,sans-serif;max-width:600px;min-width:326px;pointer-events:auto;overflow:hidden;transform:translateZ(0);direction:ltr}.Vue-Toastification__toast--rtl{direction:rtl}.Vue-Toastification__toast--default{background-color:#1976d2;color:#fff}.Vue-Toastification__toast--info{background-color:#2196f3;color:#fff}.Vue-Toastification__toast--success{background-color:#4caf50;color:#fff}.Vue-Toastification__toast--error{background-color:#ff5252;color:#fff}.Vue-Toastification__toast--warning{background-color:#ffc107;color:#fff}@media only screen and (max-width : 600px){.Vue-Toastification__toast{border-radius:0;margin-bottom:.5rem}}.Vue-Toastification__toast-body{flex:1;line-height:24px;font-size:16px;word-break:break-word;white-space:pre-wrap}.Vue-Toastification__toast-component-body{flex:1}.Vue-Toastification__toast.disable-transition{animation:none!important}.Vue-Toastification__close-button{font-weight:700;font-size:24px;line-height:24px;background:transparent;outline:none;border:none;padding:0 0 0 10px;cursor:pointer;transition:.3s ease;align-items:center;color:#fff;opacity:.3;transition:visibility 0s,opacity .2s linear}.Vue-Toastification__close-button:hover,.Vue-Toastification__close-button:focus{opacity:1}.Vue-Toastification__toast:not(:hover) .Vue-Toastification__close-button.show-on-hover{opacity:0}.Vue-Toastification__toast--rtl .Vue-Toastification__close-button{padding-left:unset;padding-right:10px}@keyframes scale-x-frames{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Vue-Toastification__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:5px;z-index:10000;background-color:#ffffffb3;transform-origin:left;animation:scale-x-frames linear 1 forwards}.Vue-Toastification__toast--rtl .Vue-Toastification__progress-bar{right:0;left:unset;transform-origin:right}.Vue-Toastification__icon{margin:auto 18px auto 0;background:transparent;outline:none;border:none;padding:0;transition:.3s ease;align-items:center;width:20px;height:100%}.Vue-Toastification__toast--rtl .Vue-Toastification__icon{margin:auto 0 auto 18px}@keyframes bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes bounceOutRight{40%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(1000px,0,0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes bounceOutDown{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Vue-Toastification__bounce-enter-active.top-left,.Vue-Toastification__bounce-enter-active.bottom-left{animation-name:bounceInLeft}.Vue-Toastification__bounce-enter-active.top-right,.Vue-Toastification__bounce-enter-active.bottom-right{animation-name:bounceInRight}.Vue-Toastification__bounce-enter-active.top-center{animation-name:bounceInDown}.Vue-Toastification__bounce-enter-active.bottom-center{animation-name:bounceInUp}.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-left,.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-left{animation-name:bounceOutLeft}.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-right,.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-right{animation-name:bounceOutRight}.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-center{animation-name:bounceOutUp}.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-center{animation-name:bounceOutDown}.Vue-Toastification__bounce-leave-active,.Vue-Toastification__bounce-enter-active{animation-duration:.75s;animation-fill-mode:both}.Vue-Toastification__bounce-move{transition-timing-function:ease-in-out;transition-property:all;transition-duration:.4s}@keyframes fadeOutTop{0%{transform:translateY(0);opacity:1}to{transform:translateY(-50px);opacity:0}}@keyframes fadeOutLeft{0%{transform:translate(0);opacity:1}to{transform:translate(-50px);opacity:0}}@keyframes fadeOutBottom{0%{transform:translateY(0);opacity:1}to{transform:translateY(50px);opacity:0}}@keyframes fadeOutRight{0%{transform:translate(0);opacity:1}to{transform:translate(50px);opacity:0}}@keyframes fadeInLeft{0%{transform:translate(-50px);opacity:0}to{transform:translate(0);opacity:1}}@keyframes fadeInRight{0%{transform:translate(50px);opacity:0}to{transform:translate(0);opacity:1}}@keyframes fadeInTop{0%{transform:translateY(-50px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes fadeInBottom{0%{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}.Vue-Toastification__fade-enter-active.top-left,.Vue-Toastification__fade-enter-active.bottom-left{animation-name:fadeInLeft}.Vue-Toastification__fade-enter-active.top-right,.Vue-Toastification__fade-enter-active.bottom-right{animation-name:fadeInRight}.Vue-Toastification__fade-enter-active.top-center{animation-name:fadeInTop}.Vue-Toastification__fade-enter-active.bottom-center{animation-name:fadeInBottom}.Vue-Toastification__fade-leave-active:not(.disable-transition).top-left,.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-left{animation-name:fadeOutLeft}.Vue-Toastification__fade-leave-active:not(.disable-transition).top-right,.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-right{animation-name:fadeOutRight}.Vue-Toastification__fade-leave-active:not(.disable-transition).top-center{animation-name:fadeOutTop}.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-center{animation-name:fadeOutBottom}.Vue-Toastification__fade-leave-active,.Vue-Toastification__fade-enter-active{animation-duration:.75s;animation-fill-mode:both}.Vue-Toastification__fade-move{transition-timing-function:ease-in-out;transition-property:all;transition-duration:.4s}@keyframes slideInBlurredLeft{0%{transform:translate(-1000px) scaleX(2.5) scaleY(.2);transform-origin:100% 50%;filter:blur(40px);opacity:0}to{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideInBlurredTop{0%{transform:translateY(-1000px) scaleY(2.5) scaleX(.2);transform-origin:50% 0%;filter:blur(240px);opacity:0}to{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideInBlurredRight{0%{transform:translate(1000px) scaleX(2.5) scaleY(.2);transform-origin:0% 50%;filter:blur(40px);opacity:0}to{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideInBlurredBottom{0%{transform:translateY(1000px) scaleY(2.5) scaleX(.2);transform-origin:50% 100%;filter:blur(240px);opacity:0}to{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideOutBlurredTop{0%{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 0%;filter:blur(0);opacity:1}to{transform:translateY(-1000px) scaleY(2) scaleX(.2);transform-origin:50% 0%;filter:blur(240px);opacity:0}}@keyframes slideOutBlurredBottom{0%{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}to{transform:translateY(1000px) scaleY(2) scaleX(.2);transform-origin:50% 100%;filter:blur(240px);opacity:0}}@keyframes slideOutBlurredLeft{0%{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}to{transform:translate(-1000px) scaleX(2) scaleY(.2);transform-origin:100% 50%;filter:blur(40px);opacity:0}}@keyframes slideOutBlurredRight{0%{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}to{transform:translate(1000px) scaleX(2) scaleY(.2);transform-origin:0% 50%;filter:blur(40px);opacity:0}}.Vue-Toastification__slideBlurred-enter-active.top-left,.Vue-Toastification__slideBlurred-enter-active.bottom-left{animation-name:slideInBlurredLeft}.Vue-Toastification__slideBlurred-enter-active.top-right,.Vue-Toastification__slideBlurred-enter-active.bottom-right{animation-name:slideInBlurredRight}.Vue-Toastification__slideBlurred-enter-active.top-center{animation-name:slideInBlurredTop}.Vue-Toastification__slideBlurred-enter-active.bottom-center{animation-name:slideInBlurredBottom}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-left,.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-left{animation-name:slideOutBlurredLeft}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-right,.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-right{animation-name:slideOutBlurredRight}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-center{animation-name:slideOutBlurredTop}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-center{animation-name:slideOutBlurredBottom}.Vue-Toastification__slideBlurred-leave-active,.Vue-Toastification__slideBlurred-enter-active{animation-duration:.75s;animation-fill-mode:both}.Vue-Toastification__slideBlurred-move{transition-timing-function:ease-in-out;transition-property:all;transition-duration:.4s}
diff --git a/assets/vue.bc20e238.js b/assets/vue.bc20e238.js
deleted file mode 100644
index 2a5eb09..0000000
--- a/assets/vue.bc20e238.js
+++ /dev/null
@@ -1 +0,0 @@
-import{g as e}from"./earcut.89ec12e6.js";import{E as a,R as s,a as t,e as o,b as r,g as n,i,d as c,f as l,h as d,j as m,m as p,k as f,p as u,l as S,n as v,q as R,s as h,t as C,u as w,v as y,x as g,y as b,z as E,A as T,B as x,C as k,D as M,F as D,G as P,H as V,I as A,J as B,K as N,L as H,M as U,N as z,S as F,O as I,P as K,Q as _,U as j,V as O,W,X as q,Y as G,c as L,Z as $,_ as J,$ as Q,a0 as X,a1 as Y,a2 as Z,a3 as ee,a4 as ae,a5 as se,a6 as te,a7 as oe,a8 as re,a9 as ne,aa as ie,ab as ce,ac as le,ad as de,ae as me,af as pe,ag as fe,ah as ue,ai as Se,aj as ve,ak as Re,al as he,am as Ce,an as we,ao as ye,ap as ge,aq as be,ar as Ee,as as Te,at as xe,au as ke,av as Me,aw as De,ax as Pe,ay as Ve,az as Ae,aA as Be,aB as Ne,o as He,aC as Ue,aD as ze,aE as Fe,aF as Ie,aG as Ke,aH as _e,r as je,aI as Oe,aJ as We,aK as qe,aL as Ge,aM as Le,aN as $e,aO as Je,aP as Qe,aQ as Xe,aR as Ye,aS as Ze,aT as ea,aU as aa,aV as sa,aW as ta,aX as oa,aY as ra,aZ as na,a_ as ia,a$ as ca,b0 as la,b1 as da,b2 as ma,w as pa,b3 as fa,b4 as ua,b5 as Sa,b6 as va,T as Ra,b7 as ha,b8 as Ca,b9 as wa,ba as ya,bb as ga,bc as ba,bd as Ea,be as Ta,bf as xa,bg as ka,bh as Ma,bi as Da,bj as Pa,bk as Va,bl as Aa,bm as Ba,bn as Na,bo as Ha,bp as Ua}from"./@vue.861e8bf0.js";const za=()=>{};var Fa=Object.freeze(Object.defineProperty({__proto__:null,compile:za,EffectScope:a,ReactiveEffect:s,customRef:t,effect:o,effectScope:r,getCurrentScope:n,isProxy:i,isReactive:c,isReadonly:l,isRef:d,isShallow:m,markRaw:p,onScopeDispose:f,proxyRefs:u,reactive:S,readonly:v,ref:R,shallowReactive:h,shallowReadonly:C,shallowRef:w,stop:y,toRaw:g,toRef:b,toRefs:E,triggerRef:T,unref:x,camelize:k,capitalize:M,normalizeClass:D,normalizeProps:P,normalizeStyle:V,toDisplayString:A,toHandlerKey:B,BaseTransition:N,Comment:H,Fragment:U,KeepAlive:z,Static:F,Suspense:I,Teleport:K,Text:_,callWithAsyncErrorHandling:j,callWithErrorHandling:O,cloneVNode:W,compatUtils:q,computed:G,createBlock:L,createCommentVNode:$,createElementBlock:J,createElementVNode:Q,createHydrationRenderer:X,createPropsRestProxy:Y,createRenderer:Z,createSlots:ee,createStaticVNode:ae,createTextVNode:se,createVNode:te,defineAsyncComponent:oe,defineComponent:re,defineEmits:ne,defineExpose:ie,defineProps:ce,get devtools(){return le},getCurrentInstance:de,getTransitionRawChildren:me,guardReactiveProps:pe,h:fe,handleError:ue,initCustomFormatter:Se,inject:ve,isMemoSame:Re,isRuntimeOnly:he,isVNode:Ce,mergeDefaults:we,mergeProps:ye,nextTick:ge,onActivated:be,onBeforeMount:Ee,onBeforeUnmount:Te,onBeforeUpdate:xe,onDeactivated:ke,onErrorCaptured:Me,onMounted:De,onRenderTracked:Pe,onRenderTriggered:Ve,onServerPrefetch:Ae,onUnmounted:Be,onUpdated:Ne,openBlock:He,popScopeId:Ue,provide:ze,pushScopeId:Fe,queuePostFlushCb:Ie,registerRuntimeCompiler:Ke,renderList:_e,renderSlot:je,resolveComponent:Oe,resolveDirective:We,resolveDynamicComponent:qe,resolveFilter:Ge,resolveTransitionHooks:Le,setBlockTracking:$e,setDevtoolsHook:Je,setTransitionHooks:Qe,ssrContextKey:Xe,ssrUtils:Ye,toHandlers:Ze,transformVNodeArgs:ea,useAttrs:aa,useSSRContext:sa,useSlots:ta,useTransitionState:oa,version:ra,warn:na,watch:ia,watchEffect:ca,watchPostEffect:la,watchSyncEffect:da,withAsyncContext:ma,withCtx:pa,withDefaults:fa,withDirectives:ua,withMemo:Sa,withScopeId:va,Transition:Ra,TransitionGroup:ha,VueElement:Ca,createApp:wa,createSSRApp:ya,defineCustomElement:ga,defineSSRCustomElement:ba,hydrate:Ea,initDirectivesForSSR:Ta,render:xa,useCssModule:ka,useCssVars:Ma,vModelCheckbox:Da,vModelDynamic:Pa,vModelRadio:Va,vModelSelect:Aa,vModelText:Ba,vShow:Na,withKeys:Ha,withModifiers:Ua},Symbol.toStringTag,{value:"Module"})),_a=e(Fa);export{_a as r};
diff --git a/assets/vuedraggable.e833ee6e.js b/assets/vuedraggable.e833ee6e.js
deleted file mode 100644
index f057d5a..0000000
--- a/assets/vuedraggable.e833ee6e.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import{c as jt,a as Ct}from"./earcut.89ec12e6.js";import{r as Lt}from"./vue.bc20e238.js";import{r as Ft}from"./sortablejs.dd463b56.js";var Pt={exports:{}};(function(Rt,Dt){(function(bt,o){Rt.exports=o(Lt,Ft)})(typeof self!="undefined"?self:jt,function(Tt,bt){return function(o){var g={};function t(r){if(g[r])return g[r].exports;var e=g[r]={i:r,l:!1,exports:{}};return o[r].call(e.exports,e,e.exports,t),e.l=!0,e.exports}return t.m=o,t.c=g,t.d=function(r,e,n){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:n})},t.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(e&1&&(r=t(r)),e&8||e&4&&typeof r=="object"&&r&&r.__esModule)return r;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:r}),e&2&&typeof r!="string")for(var a in r)t.d(n,a,function(i){return r[i]}.bind(null,a));return n},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.p="",t(t.s="fb15")}({"00ee":function(o,g,t){var r=t("b622"),e=r("toStringTag"),n={};n[e]="z",o.exports=String(n)==="[object z]"},"0366":function(o,g,t){var r=t("1c0b");o.exports=function(e,n,a){if(r(e),n===void 0)return e;switch(a){case 0:return function(){return e.call(n)};case 1:return function(i){return e.call(n,i)};case 2:return function(i,f){return e.call(n,i,f)};case 3:return function(i,f,s){return e.call(n,i,f,s)}}return function(){return e.apply(n,arguments)}}},"057f":function(o,g,t){var r=t("fc6a"),e=t("241c").f,n={}.toString,a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],i=function(f){try{return e(f)}catch{return a.slice()}};o.exports.f=function(s){return a&&n.call(s)=="[object Window]"?i(s):e(r(s))}},"06cf":function(o,g,t){var r=t("83ab"),e=t("d1e7"),n=t("5c6c"),a=t("fc6a"),i=t("c04e"),f=t("5135"),s=t("0cfb"),u=Object.getOwnPropertyDescriptor;g.f=r?u:function(c,m){if(c=a(c),m=i(m,!0),s)try{return u(c,m)}catch{}if(f(c,m))return n(!e.f.call(c,m),c[m])}},"0cfb":function(o,g,t){var r=t("83ab"),e=t("d039"),n=t("cc12");o.exports=!r&&!e(function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(o,g,t){var r=t("23e7"),e=t("d58f").left,n=t("a640"),a=t("ae40"),i=n("reduce"),f=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!i||!f},{reduce:function(u){return e(this,u,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(o,g,t){var r=t("c6b6"),e=t("9263");o.exports=function(n,a){var i=n.exec;if(typeof i=="function"){var f=i.call(n,a);if(typeof f!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return f}if(r(n)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return e.call(n,a)}},"159b":function(o,g,t){var r=t("da84"),e=t("fdbc"),n=t("17c2"),a=t("9112");for(var i in e){var f=r[i],s=f&&f.prototype;if(s&&s.forEach!==n)try{a(s,"forEach",n)}catch{s.forEach=n}}},"17c2":function(o,g,t){var r=t("b727").forEach,e=t("a640"),n=t("ae40"),a=e("forEach"),i=n("forEach");o.exports=!a||!i?function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(o,g,t){var r=t("d066");o.exports=r("document","documentElement")},"1c0b":function(o,g){o.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(o,g,t){var r=t("b622"),e=r("iterator"),n=!1;try{var a=0,i={next:function(){return{done:!!a++}},return:function(){n=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch{}o.exports=function(f,s){if(!s&&!n)return!1;var u=!1;try{var l={};l[e]=function(){return{next:function(){return{done:u=!0}}}},f(l)}catch{}return u}},"1d80":function(o,g){o.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"1dde":function(o,g,t){var r=t("d039"),e=t("b622"),n=t("2d00"),a=e("species");o.exports=function(i){return n>=51||!r(function(){var f=[],s=f.constructor={};return s[a]=function(){return{foo:1}},f[i](Boolean).foo!==1})}},"23cb":function(o,g,t){var r=t("a691"),e=Math.max,n=Math.min;o.exports=function(a,i){var f=r(a);return f<0?e(f+i,0):n(f,i)}},"23e7":function(o,g,t){var r=t("da84"),e=t("06cf").f,n=t("9112"),a=t("6eeb"),i=t("ce4e"),f=t("e893"),s=t("94ca");o.exports=function(u,l){var c=u.target,m=u.global,h=u.stat,O,E,I,p,L,F;if(m?E=r:h?E=r[c]||i(c,{}):E=(r[c]||{}).prototype,E)for(I in l){if(L=l[I],u.noTargetGet?(F=e(E,I),p=F&&F.value):p=E[I],O=s(m?I:c+(h?".":"#")+I,u.forced),!O&&p!==void 0){if(typeof L==typeof p)continue;f(L,p)}(u.sham||p&&p.sham)&&n(L,"sham",!0),a(E,I,L,u)}}},"241c":function(o,g,t){var r=t("ca84"),e=t("7839"),n=e.concat("length","prototype");g.f=Object.getOwnPropertyNames||function(i){return r(i,n)}},"25f0":function(o,g,t){var r=t("6eeb"),e=t("825a"),n=t("d039"),a=t("ad6d"),i="toString",f=RegExp.prototype,s=f[i],u=n(function(){return s.call({source:"a",flags:"b"})!="/a/b"}),l=s.name!=i;(u||l)&&r(RegExp.prototype,i,function(){var m=e(this),h=String(m.source),O=m.flags,E=String(O===void 0&&m instanceof RegExp&&!("flags"in f)?a.call(m):O);return"/"+h+"/"+E},{unsafe:!0})},"2ca0":function(o,g,t){var r=t("23e7"),e=t("06cf").f,n=t("50c4"),a=t("5a34"),i=t("1d80"),f=t("ab13"),s=t("c430"),u="".startsWith,l=Math.min,c=f("startsWith"),m=!s&&!c&&!!function(){var h=e(String.prototype,"startsWith");return h&&!h.writable}();r({target:"String",proto:!0,forced:!m&&!c},{startsWith:function(O){var E=String(i(this));a(O);var I=n(l(arguments.length>1?arguments[1]:void 0,E.length)),p=String(O);return u?u.call(E,p,I):E.slice(I,I+p.length)===p}})},"2d00":function(o,g,t){var r=t("da84"),e=t("342f"),n=r.process,a=n&&n.versions,i=a&&a.v8,f,s;i?(f=i.split("."),s=f[0]+f[1]):e&&(f=e.match(/Edge\/(\d+)/),(!f||f[1]>=74)&&(f=e.match(/Chrome\/(\d+)/),f&&(s=f[1]))),o.exports=s&&+s},"342f":function(o,g,t){var r=t("d066");o.exports=r("navigator","userAgent")||""},"35a1":function(o,g,t){var r=t("f5df"),e=t("3f8c"),n=t("b622"),a=n("iterator");o.exports=function(i){if(i!=null)return i[a]||i["@@iterator"]||e[r(i)]}},"37e8":function(o,g,t){var r=t("83ab"),e=t("9bf2"),n=t("825a"),a=t("df75");o.exports=r?Object.defineProperties:function(f,s){n(f);for(var u=a(s),l=u.length,c=0,m;l>c;)e.f(f,m=u[c++],s[m]);return f}},"3bbe":function(o,g,t){var r=t("861d");o.exports=function(e){if(!r(e)&&e!==null)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(o,g,t){var r=t("6547").charAt,e=t("69f3"),n=t("7dd0"),a="String Iterator",i=e.set,f=e.getterFor(a);n(String,"String",function(s){i(this,{type:a,string:String(s),index:0})},function(){var u=f(this),l=u.string,c=u.index,m;return c>=l.length?{value:void 0,done:!0}:(m=r(l,c),u.index+=m.length,{value:m,done:!1})})},"3f8c":function(o,g){o.exports={}},4160:function(o,g,t){var r=t("23e7"),e=t("17c2");r({target:"Array",proto:!0,forced:[].forEach!=e},{forEach:e})},"428f":function(o,g,t){var r=t("da84");o.exports=r},"44ad":function(o,g,t){var r=t("d039"),e=t("c6b6"),n="".split;o.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(a){return e(a)=="String"?n.call(a,""):Object(a)}:Object},"44d2":function(o,g,t){var r=t("b622"),e=t("7c73"),n=t("9bf2"),a=r("unscopables"),i=Array.prototype;i[a]==null&&n.f(i,a,{configurable:!0,value:e(null)}),o.exports=function(f){i[a][f]=!0}},"44e7":function(o,g,t){var r=t("861d"),e=t("c6b6"),n=t("b622"),a=n("match");o.exports=function(i){var f;return r(i)&&((f=i[a])!==void 0?!!f:e(i)=="RegExp")}},4930:function(o,g,t){var r=t("d039");o.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},"4d64":function(o,g,t){var r=t("fc6a"),e=t("50c4"),n=t("23cb"),a=function(i){return function(f,s,u){var l=r(f),c=e(l.length),m=n(u,c),h;if(i&&s!=s){for(;c>m;)if(h=l[m++],h!=h)return!0}else for(;c>m;m++)if((i||m in l)&&l[m]===s)return i||m||0;return!i&&-1}};o.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(o,g,t){var r=t("23e7"),e=t("b727").filter,n=t("1dde"),a=t("ae40"),i=n("filter"),f=a("filter");r({target:"Array",proto:!0,forced:!i||!f},{filter:function(u){return e(this,u,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(o,g,t){var r=t("0366"),e=t("7b0b"),n=t("9bdd"),a=t("e95a"),i=t("50c4"),f=t("8418"),s=t("35a1");o.exports=function(l){var c=e(l),m=typeof this=="function"?this:Array,h=arguments.length,O=h>1?arguments[1]:void 0,E=O!==void 0,I=s(c),p=0,L,F,S,P,C,K;if(E&&(O=r(O,h>2?arguments[2]:void 0,2)),I!=null&&!(m==Array&&a(I)))for(P=I.call(c),C=P.next,F=new m;!(S=C.call(P)).done;p++)K=E?n(P,O,[S.value,p],!0):S.value,f(F,p,K);else for(L=i(c.length),F=new m(L);L>p;p++)K=E?O(c[p],p):c[p],f(F,p,K);return F.length=p,F}},"4fad":function(o,g,t){var r=t("23e7"),e=t("6f53").entries;r({target:"Object",stat:!0},{entries:function(a){return e(a)}})},"50c4":function(o,g,t){var r=t("a691"),e=Math.min;o.exports=function(n){return n>0?e(r(n),9007199254740991):0}},5135:function(o,g){var t={}.hasOwnProperty;o.exports=function(r,e){return t.call(r,e)}},5319:function(o,g,t){var r=t("d784"),e=t("825a"),n=t("7b0b"),a=t("50c4"),i=t("a691"),f=t("1d80"),s=t("8aa5"),u=t("14c3"),l=Math.max,c=Math.min,m=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,O=/\$([$&'`]|\d\d?)/g,E=function(I){return I===void 0?I:String(I)};r("replace",2,function(I,p,L,F){var S=F.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,P=F.REPLACE_KEEPS_$0,C=S?"$":"$0";return[function(b,G){var R=f(this),M=b==null?void 0:b[I];return M!==void 0?M.call(b,R,G):p.call(String(R),b,G)},function(T,b){if(!S&&P||typeof b=="string"&&b.indexOf(C)===-1){var G=L(p,T,this,b);if(G.done)return G.value}var R=e(T),M=String(this),W=typeof b=="function";W||(b=String(b));var z=R.global;if(z){var rt=R.unicode;R.lastIndex=0}for(var w=[];;){var Q=u(R,M);if(Q===null||(w.push(Q),!z))break;var k=String(Q[0]);k===""&&(R.lastIndex=s(M,a(R.lastIndex),rt))}for(var q="",Z=0,X=0;X<w.length;X++){Q=w[X];for(var Y=String(Q[0]),ot=l(c(i(Q.index),M.length),0),et=[],st=1;st<Q.length;st++)et.push(E(Q[st]));var ct=Q.groups;if(W){var ut=[Y].concat(et,ot,M);ct!==void 0&&ut.push(ct);var _=String(b.apply(void 0,ut))}else _=K(Y,M,ot,et,ct,b);ot>=Z&&(q+=M.slice(Z,ot)+_,Z=ot+Y.length)}return q+M.slice(Z)}];function K(T,b,G,R,M,W){var z=G+T.length,rt=R.length,w=O;return M!==void 0&&(M=n(M),w=h),p.call(W,w,function(Q,k){var q;switch(k.charAt(0)){case"$":return"$";case"&":return T;case"`":return b.slice(0,G);case"'":return b.slice(z);case"<":q=M[k.slice(1,-1)];break;default:var Z=+k;if(Z===0)return Q;if(Z>rt){var X=m(Z/10);return X===0?Q:X<=rt?R[X-1]===void 0?k.charAt(1):R[X-1]+k.charAt(1):Q}q=R[Z-1]}return q===void 0?"":q})}})},5692:function(o,g,t){var r=t("c430"),e=t("c6cd");(o.exports=function(n,a){return e[n]||(e[n]=a!==void 0?a:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(o,g,t){var r=t("d066"),e=t("241c"),n=t("7418"),a=t("825a");o.exports=r("Reflect","ownKeys")||function(f){var s=e.f(a(f)),u=n.f;return u?s.concat(u(f)):s}},"5a34":function(o,g,t){var r=t("44e7");o.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(o,g){o.exports=function(t,r){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:r}}},"5db7":function(o,g,t){var r=t("23e7"),e=t("a2bf"),n=t("7b0b"),a=t("50c4"),i=t("1c0b"),f=t("65f0");r({target:"Array",proto:!0},{flatMap:function(u){var l=n(this),c=a(l.length),m;return i(u),m=f(l,0),m.length=e(m,l,l,c,0,1,u,arguments.length>1?arguments[1]:void 0),m}})},6547:function(o,g,t){var r=t("a691"),e=t("1d80"),n=function(a){return function(i,f){var s=String(e(i)),u=r(f),l=s.length,c,m;return u<0||u>=l?a?"":void 0:(c=s.charCodeAt(u),c<55296||c>56319||u+1===l||(m=s.charCodeAt(u+1))<56320||m>57343?a?s.charAt(u):c:a?s.slice(u,u+2):(c-55296<<10)+(m-56320)+65536)}};o.exports={codeAt:n(!1),charAt:n(!0)}},"65f0":function(o,g,t){var r=t("861d"),e=t("e8b5"),n=t("b622"),a=n("species");o.exports=function(i,f){var s;return e(i)&&(s=i.constructor,typeof s=="function"&&(s===Array||e(s.prototype))?s=void 0:r(s)&&(s=s[a],s===null&&(s=void 0))),new(s===void 0?Array:s)(f===0?0:f)}},"69f3":function(o,g,t){var r=t("7f9a"),e=t("da84"),n=t("861d"),a=t("9112"),i=t("5135"),f=t("f772"),s=t("d012"),u=e.WeakMap,l,c,m,h=function(S){return m(S)?c(S):l(S,{})},O=function(S){return function(P){var C;if(!n(P)||(C=c(P)).type!==S)throw TypeError("Incompatible receiver, "+S+" required");return C}};if(r){var E=new u,I=E.get,p=E.has,L=E.set;l=function(S,P){return L.call(E,S,P),P},c=function(S){return I.call(E,S)||{}},m=function(S){return p.call(E,S)}}else{var F=f("state");s[F]=!0,l=function(S,P){return a(S,F,P),P},c=function(S){return i(S,F)?S[F]:{}},m=function(S){return i(S,F)}}o.exports={set:l,get:c,has:m,enforce:h,getterFor:O}},"6eeb":function(o,g,t){var r=t("da84"),e=t("9112"),n=t("5135"),a=t("ce4e"),i=t("8925"),f=t("69f3"),s=f.get,u=f.enforce,l=String(String).split("String");(o.exports=function(c,m,h,O){var E=O?!!O.unsafe:!1,I=O?!!O.enumerable:!1,p=O?!!O.noTargetGet:!1;if(typeof h=="function"&&(typeof m=="string"&&!n(h,"name")&&e(h,"name",m),u(h).source=l.join(typeof m=="string"?m:"")),c===r){I?c[m]=h:a(m,h);return}else E?!p&&c[m]&&(I=!0):delete c[m];I?c[m]=h:e(c,m,h)})(Function.prototype,"toString",function(){return typeof this=="function"&&s(this).source||i(this)})},"6f53":function(o,g,t){var r=t("83ab"),e=t("df75"),n=t("fc6a"),a=t("d1e7").f,i=function(f){return function(s){for(var u=n(s),l=e(u),c=l.length,m=0,h=[],O;c>m;)O=l[m++],(!r||a.call(u,O))&&h.push(f?[O,u[O]]:u[O]);return h}};o.exports={entries:i(!0),values:i(!1)}},"73d9":function(o,g,t){var r=t("44d2");r("flatMap")},7418:function(o,g){g.f=Object.getOwnPropertySymbols},"746f":function(o,g,t){var r=t("428f"),e=t("5135"),n=t("e538"),a=t("9bf2").f;o.exports=function(i){var f=r.Symbol||(r.Symbol={});e(f,i)||a(f,i,{value:n.f(i)})}},7839:function(o,g){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(o,g,t){var r=t("1d80");o.exports=function(e){return Object(r(e))}},"7c73":function(o,g,t){var r=t("825a"),e=t("37e8"),n=t("7839"),a=t("d012"),i=t("1be4"),f=t("cc12"),s=t("f772"),u=">",l="<",c="prototype",m="script",h=s("IE_PROTO"),O=function(){},E=function(S){return l+m+u+S+l+"/"+m+u},I=function(S){S.write(E("")),S.close();var P=S.parentWindow.Object;return S=null,P},p=function(){var S=f("iframe"),P="java"+m+":",C;return S.style.display="none",i.appendChild(S),S.src=String(P),C=S.contentWindow.document,C.open(),C.write(E("document.F=Object")),C.close(),C.F},L,F=function(){try{L=document.domain&&new ActiveXObject("htmlfile")}catch{}F=L?I(L):p();for(var S=n.length;S--;)delete F[c][n[S]];return F()};a[h]=!0,o.exports=Object.create||function(P,C){var K;return P!==null?(O[c]=r(P),K=new O,O[c]=null,K[h]=P):K=F(),C===void 0?K:e(K,C)}},"7dd0":function(o,g,t){var r=t("23e7"),e=t("9ed3"),n=t("e163"),a=t("d2bb"),i=t("d44e"),f=t("9112"),s=t("6eeb"),u=t("b622"),l=t("c430"),c=t("3f8c"),m=t("ae93"),h=m.IteratorPrototype,O=m.BUGGY_SAFARI_ITERATORS,E=u("iterator"),I="keys",p="values",L="entries",F=function(){return this};o.exports=function(S,P,C,K,T,b,G){e(C,P,K);var R=function(X){if(X===T&&w)return w;if(!O&&X in z)return z[X];switch(X){case I:return function(){return new C(this,X)};case p:return function(){return new C(this,X)};case L:return function(){return new C(this,X)}}return function(){return new C(this)}},M=P+" Iterator",W=!1,z=S.prototype,rt=z[E]||z["@@iterator"]||T&&z[T],w=!O&&rt||R(T),Q=P=="Array"&&z.entries||rt,k,q,Z;if(Q&&(k=n(Q.call(new S)),h!==Object.prototype&&k.next&&(!l&&n(k)!==h&&(a?a(k,h):typeof k[E]!="function"&&f(k,E,F)),i(k,M,!0,!0),l&&(c[M]=F))),T==p&&rt&&rt.name!==p&&(W=!0,w=function(){return rt.call(this)}),(!l||G)&&z[E]!==w&&f(z,E,w),c[P]=w,T)if(q={values:R(p),keys:b?w:R(I),entries:R(L)},G)for(Z in q)(O||W||!(Z in z))&&s(z,Z,q[Z]);else r({target:P,proto:!0,forced:O||W},q);return q}},"7f9a":function(o,g,t){var r=t("da84"),e=t("8925"),n=r.WeakMap;o.exports=typeof n=="function"&&/native code/.test(e(n))},"825a":function(o,g,t){var r=t("861d");o.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(o,g,t){var r=t("d039");o.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(o,g,t){var r=t("c04e"),e=t("9bf2"),n=t("5c6c");o.exports=function(a,i,f){var s=r(i);s in a?e.f(a,s,n(0,f)):a[s]=f}},"861d":function(o,g){o.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},8875:function(o,g,t){var r,e,n;(function(a,i){e=[],r=i,n=typeof r=="function"?r.apply(g,e):r,n!==void 0&&(o.exports=n)})(typeof self!="undefined"?self:this,function(){function a(){var i=Object.getOwnPropertyDescriptor(document,"currentScript");if(!i&&"currentScript"in document&&document.currentScript||i&&i.get!==a&&document.currentScript)return document.currentScript;try{throw new Error}catch(L){var f=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,s=/@([^@]*):(\d+):(\d+)\s*$/ig,u=f.exec(L.stack)||s.exec(L.stack),l=u&&u[1]||!1,c=u&&u[2]||!1,m=document.location.href.replace(document.location.hash,""),h,O,E,I=document.getElementsByTagName("script");l===m&&(h=document.documentElement.outerHTML,O=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),E=h.replace(O,"$1").trim());for(var p=0;p<I.length;p++)if(I[p].readyState==="interactive"||I[p].src===l||l===m&&I[p].innerHTML&&I[p].innerHTML.trim()===E)return I[p];return null}}return a})},8925:function(o,g,t){var r=t("c6cd"),e=Function.toString;typeof r.inspectSource!="function"&&(r.inspectSource=function(n){return e.call(n)}),o.exports=r.inspectSource},"8aa5":function(o,g,t){var r=t("6547").charAt;o.exports=function(e,n,a){return n+(a?r(e,n).length:1)}},"8bbf":function(o,g){o.exports=Tt},"90e3":function(o,g){var t=0,r=Math.random();o.exports=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++t+r).toString(36)}},9112:function(o,g,t){var r=t("83ab"),e=t("9bf2"),n=t("5c6c");o.exports=r?function(a,i,f){return e.f(a,i,n(1,f))}:function(a,i,f){return a[i]=f,a}},9263:function(o,g,t){var r=t("ad6d"),e=t("9f7f"),n=RegExp.prototype.exec,a=String.prototype.replace,i=n,f=function(){var c=/a/,m=/b*/g;return n.call(c,"a"),n.call(m,"a"),c.lastIndex!==0||m.lastIndex!==0}(),s=e.UNSUPPORTED_Y||e.BROKEN_CARET,u=/()??/.exec("")[1]!==void 0,l=f||u||s;l&&(i=function(m){var h=this,O,E,I,p,L=s&&h.sticky,F=r.call(h),S=h.source,P=0,C=m;return L&&(F=F.replace("y",""),F.indexOf("g")===-1&&(F+="g"),C=String(m).slice(h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&m[h.lastIndex-1]!==`
-`)&&(S="(?: "+S+")",C=" "+C,P++),E=new RegExp("^(?:"+S+")",F)),u&&(E=new RegExp("^"+S+"$(?!\\s)",F)),f&&(O=h.lastIndex),I=n.call(L?E:h,C),L?I?(I.input=I.input.slice(P),I[0]=I[0].slice(P),I.index=h.lastIndex,h.lastIndex+=I[0].length):h.lastIndex=0:f&&I&&(h.lastIndex=h.global?I.index+I[0].length:O),u&&I&&I.length>1&&a.call(I[0],E,function(){for(p=1;p<arguments.length-2;p++)arguments[p]===void 0&&(I[p]=void 0)}),I}),o.exports=i},"94ca":function(o,g,t){var r=t("d039"),e=/#|\.prototype\./,n=function(u,l){var c=i[a(u)];return c==s?!0:c==f?!1:typeof l=="function"?r(l):!!l},a=n.normalize=function(u){return String(u).replace(e,".").toLowerCase()},i=n.data={},f=n.NATIVE="N",s=n.POLYFILL="P";o.exports=n},"99af":function(o,g,t){var r=t("23e7"),e=t("d039"),n=t("e8b5"),a=t("861d"),i=t("7b0b"),f=t("50c4"),s=t("8418"),u=t("65f0"),l=t("1dde"),c=t("b622"),m=t("2d00"),h=c("isConcatSpreadable"),O=9007199254740991,E="Maximum allowed index exceeded",I=m>=51||!e(function(){var S=[];return S[h]=!1,S.concat()[0]!==S}),p=l("concat"),L=function(S){if(!a(S))return!1;var P=S[h];return P!==void 0?!!P:n(S)},F=!I||!p;r({target:"Array",proto:!0,forced:F},{concat:function(P){var C=i(this),K=u(C,0),T=0,b,G,R,M,W;for(b=-1,R=arguments.length;b<R;b++)if(W=b===-1?C:arguments[b],L(W)){if(M=f(W.length),T+M>O)throw TypeError(E);for(G=0;G<M;G++,T++)G in W&&s(K,T,W[G])}else{if(T>=O)throw TypeError(E);s(K,T++,W)}return K.length=T,K}})},"9bdd":function(o,g,t){var r=t("825a");o.exports=function(e,n,a,i){try{return i?n(r(a)[0],a[1]):n(a)}catch(s){var f=e.return;throw f!==void 0&&r(f.call(e)),s}}},"9bf2":function(o,g,t){var r=t("83ab"),e=t("0cfb"),n=t("825a"),a=t("c04e"),i=Object.defineProperty;g.f=r?i:function(s,u,l){if(n(s),u=a(u,!0),n(l),e)try{return i(s,u,l)}catch{}if("get"in l||"set"in l)throw TypeError("Accessors not supported");return"value"in l&&(s[u]=l.value),s}},"9ed3":function(o,g,t){var r=t("ae93").IteratorPrototype,e=t("7c73"),n=t("5c6c"),a=t("d44e"),i=t("3f8c"),f=function(){return this};o.exports=function(s,u,l){var c=u+" Iterator";return s.prototype=e(r,{next:n(1,l)}),a(s,c,!1,!0),i[c]=f,s}},"9f7f":function(o,g,t){var r=t("d039");function e(n,a){return RegExp(n,a)}g.UNSUPPORTED_Y=r(function(){var n=e("a","y");return n.lastIndex=2,n.exec("abcd")!=null}),g.BROKEN_CARET=r(function(){var n=e("^r","gy");return n.lastIndex=2,n.exec("str")!=null})},a2bf:function(o,g,t){var r=t("e8b5"),e=t("50c4"),n=t("0366"),a=function(i,f,s,u,l,c,m,h){for(var O=l,E=0,I=m?n(m,h,3):!1,p;E<u;){if(E in s){if(p=I?I(s[E],E,f):s[E],c>0&&r(p))O=a(i,f,p,e(p.length),O,c-1)-1;else{if(O>=9007199254740991)throw TypeError("Exceed the acceptable array length");i[O]=p}O++}E++}return O};o.exports=a},a352:function(o,g){o.exports=bt},a434:function(o,g,t){var r=t("23e7"),e=t("23cb"),n=t("a691"),a=t("50c4"),i=t("7b0b"),f=t("65f0"),s=t("8418"),u=t("1dde"),l=t("ae40"),c=u("splice"),m=l("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,O=Math.min,E=9007199254740991,I="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!c||!m},{splice:function(L,F){var S=i(this),P=a(S.length),C=e(L,P),K=arguments.length,T,b,G,R,M,W;if(K===0?T=b=0:K===1?(T=0,b=P-C):(T=K-2,b=O(h(n(F),0),P-C)),P+T-b>E)throw TypeError(I);for(G=f(S,b),R=0;R<b;R++)M=C+R,M in S&&s(G,R,S[M]);if(G.length=b,T<b){for(R=C;R<P-b;R++)M=R+b,W=R+T,M in S?S[W]=S[M]:delete S[W];for(R=P;R>P-b+T;R--)delete S[R-1]}else if(T>b)for(R=P-b;R>C;R--)M=R+b-1,W=R+T-1,M in S?S[W]=S[M]:delete S[W];for(R=0;R<T;R++)S[R+C]=arguments[R+2];return S.length=P-b+T,G}})},a4d3:function(o,g,t){var r=t("23e7"),e=t("da84"),n=t("d066"),a=t("c430"),i=t("83ab"),f=t("4930"),s=t("fdbf"),u=t("d039"),l=t("5135"),c=t("e8b5"),m=t("861d"),h=t("825a"),O=t("7b0b"),E=t("fc6a"),I=t("c04e"),p=t("5c6c"),L=t("7c73"),F=t("df75"),S=t("241c"),P=t("057f"),C=t("7418"),K=t("06cf"),T=t("9bf2"),b=t("d1e7"),G=t("9112"),R=t("6eeb"),M=t("5692"),W=t("f772"),z=t("d012"),rt=t("90e3"),w=t("b622"),Q=t("e538"),k=t("746f"),q=t("d44e"),Z=t("69f3"),X=t("b727").forEach,Y=W("hidden"),ot="Symbol",et="prototype",st=w("toPrimitive"),ct=Z.set,ut=Z.getterFor(ot),_=Object[et],tt=e.Symbol,vt=n("JSON","stringify"),it=K.f,ft=T.f,St=P.f,Ot=b.f,at=M("symbols"),lt=M("op-symbols"),dt=M("string-to-symbol-registry"),gt=M("symbol-to-string-registry"),mt=M("wks"),yt=e.QObject,ht=!yt||!yt[et]||!yt[et].findChild,pt=i&&u(function(){return L(ft({},"a",{get:function(){return ft(this,"a",{value:7}).a}})).a!=7})?function(U,j,D){var B=it(_,j);B&&delete _[j],ft(U,j,D),B&&U!==_&&ft(_,j,B)}:ft,xt=function(U,j){var D=at[U]=L(tt[et]);return ct(D,{type:ot,tag:U,description:j}),i||(D.description=j),D},d=s?function(U){return typeof U=="symbol"}:function(U){return Object(U)instanceof tt},v=function(j,D,B){j===_&&v(lt,D,B),h(j);var V=I(D,!0);return h(B),l(at,V)?(B.enumerable?(l(j,Y)&&j[Y][V]&&(j[Y][V]=!1),B=L(B,{enumerable:p(0,!1)})):(l(j,Y)||ft(j,Y,p(1,{})),j[Y][V]=!0),pt(j,V,B)):ft(j,V,B)},y=function(j,D){h(j);var B=E(D),V=F(B).concat(H(B));return X(V,function(nt){(!i||A.call(B,nt))&&v(j,nt,B[nt])}),j},x=function(j,D){return D===void 0?L(j):y(L(j),D)},A=function(j){var D=I(j,!0),B=Ot.call(this,D);return this===_&&l(at,D)&&!l(lt,D)?!1:B||!l(this,D)||!l(at,D)||l(this,Y)&&this[Y][D]?B:!0},N=function(j,D){var B=E(j),V=I(D,!0);if(!(B===_&&l(at,V)&&!l(lt,V))){var nt=it(B,V);return nt&&l(at,V)&&!(l(B,Y)&&B[Y][V])&&(nt.enumerable=!0),nt}},$=function(j){var D=St(E(j)),B=[];return X(D,function(V){!l(at,V)&&!l(z,V)&&B.push(V)}),B},H=function(j){var D=j===_,B=St(D?lt:E(j)),V=[];return X(B,function(nt){l(at,nt)&&(!D||l(_,nt))&&V.push(at[nt])}),V};if(f||(tt=function(){if(this instanceof tt)throw TypeError("Symbol is not a constructor");var j=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),D=rt(j),B=function(V){this===_&&B.call(lt,V),l(this,Y)&&l(this[Y],D)&&(this[Y][D]=!1),pt(this,D,p(1,V))};return i&&ht&&pt(_,D,{configurable:!0,set:B}),xt(D,j)},R(tt[et],"toString",function(){return ut(this).tag}),R(tt,"withoutSetter",function(U){return xt(rt(U),U)}),b.f=A,T.f=v,K.f=N,S.f=P.f=$,C.f=H,Q.f=function(U){return xt(w(U),U)},i&&(ft(tt[et],"description",{configurable:!0,get:function(){return ut(this).description}}),a||R(_,"propertyIsEnumerable",A,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:tt}),X(F(mt),function(U){k(U)}),r({target:ot,stat:!0,forced:!f},{for:function(U){var j=String(U);if(l(dt,j))return dt[j];var D=tt(j);return dt[j]=D,gt[D]=j,D},keyFor:function(j){if(!d(j))throw TypeError(j+" is not a symbol");if(l(gt,j))return gt[j]},useSetter:function(){ht=!0},useSimple:function(){ht=!1}}),r({target:"Object",stat:!0,forced:!f,sham:!i},{create:x,defineProperty:v,defineProperties:y,getOwnPropertyDescriptor:N}),r({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:$,getOwnPropertySymbols:H}),r({target:"Object",stat:!0,forced:u(function(){C.f(1)})},{getOwnPropertySymbols:function(j){return C.f(O(j))}}),vt){var J=!f||u(function(){var U=tt();return vt([U])!="[null]"||vt({a:U})!="{}"||vt(Object(U))!="{}"});r({target:"JSON",stat:!0,forced:J},{stringify:function(j,D,B){for(var V=[j],nt=1,It;arguments.length>nt;)V.push(arguments[nt++]);if(It=D,!(!m(D)&&j===void 0||d(j)))return c(D)||(D=function(At,Et){if(typeof It=="function"&&(Et=It.call(this,At,Et)),!d(Et))return Et}),V[1]=D,vt.apply(null,V)}})}tt[et][st]||G(tt[et],st,tt[et].valueOf),q(tt,ot),z[Y]=!0},a630:function(o,g,t){var r=t("23e7"),e=t("4df4"),n=t("1c7e"),a=!n(function(i){Array.from(i)});r({target:"Array",stat:!0,forced:a},{from:e})},a640:function(o,g,t){var r=t("d039");o.exports=function(e,n){var a=[][e];return!!a&&r(function(){a.call(null,n||function(){throw 1},1)})}},a691:function(o,g){var t=Math.ceil,r=Math.floor;o.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},ab13:function(o,g,t){var r=t("b622"),e=r("match");o.exports=function(n){var a=/./;try{"/./"[n](a)}catch{try{return a[e]=!1,"/./"[n](a)}catch{}}return!1}},ac1f:function(o,g,t){var r=t("23e7"),e=t("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})},ad6d:function(o,g,t){var r=t("825a");o.exports=function(){var e=r(this),n="";return e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.sticky&&(n+="y"),n}},ae40:function(o,g,t){var r=t("83ab"),e=t("d039"),n=t("5135"),a=Object.defineProperty,i={},f=function(s){throw s};o.exports=function(s,u){if(n(i,s))return i[s];u||(u={});var l=[][s],c=n(u,"ACCESSORS")?u.ACCESSORS:!1,m=n(u,0)?u[0]:f,h=n(u,1)?u[1]:void 0;return i[s]=!!l&&!e(function(){if(c&&!r)return!0;var O={length:-1};c?a(O,1,{enumerable:!0,get:f}):O[1]=1,l.call(O,m,h)})}},ae93:function(o,g,t){var r=t("e163"),e=t("9112"),n=t("5135"),a=t("b622"),i=t("c430"),f=a("iterator"),s=!1,u=function(){return this},l,c,m;[].keys&&(m=[].keys(),"next"in m?(c=r(r(m)),c!==Object.prototype&&(l=c)):s=!0),l==null&&(l={}),!i&&!n(l,f)&&e(l,f,u),o.exports={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:s}},b041:function(o,g,t){var r=t("00ee"),e=t("f5df");o.exports=r?{}.toString:function(){return"[object "+e(this)+"]"}},b0c0:function(o,g,t){var r=t("83ab"),e=t("9bf2").f,n=Function.prototype,a=n.toString,i=/^\s*function ([^ (]*)/,f="name";r&&!(f in n)&&e(n,f,{configurable:!0,get:function(){try{return a.call(this).match(i)[1]}catch{return""}}})},b622:function(o,g,t){var r=t("da84"),e=t("5692"),n=t("5135"),a=t("90e3"),i=t("4930"),f=t("fdbf"),s=e("wks"),u=r.Symbol,l=f?u:u&&u.withoutSetter||a;o.exports=function(c){return n(s,c)||(i&&n(u,c)?s[c]=u[c]:s[c]=l("Symbol."+c)),s[c]}},b64b:function(o,g,t){var r=t("23e7"),e=t("7b0b"),n=t("df75"),a=t("d039"),i=a(function(){n(1)});r({target:"Object",stat:!0,forced:i},{keys:function(s){return n(e(s))}})},b727:function(o,g,t){var r=t("0366"),e=t("44ad"),n=t("7b0b"),a=t("50c4"),i=t("65f0"),f=[].push,s=function(u){var l=u==1,c=u==2,m=u==3,h=u==4,O=u==6,E=u==5||O;return function(I,p,L,F){for(var S=n(I),P=e(S),C=r(p,L,3),K=a(P.length),T=0,b=F||i,G=l?b(I,K):c?b(I,0):void 0,R,M;K>T;T++)if((E||T in P)&&(R=P[T],M=C(R,T,S),u)){if(l)G[T]=M;else if(M)switch(u){case 3:return!0;case 5:return R;case 6:return T;case 2:f.call(G,R)}else if(h)return!1}return O?-1:m||h?h:G}};o.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},c04e:function(o,g,t){var r=t("861d");o.exports=function(e,n){if(!r(e))return e;var a,i;if(n&&typeof(a=e.toString)=="function"&&!r(i=a.call(e))||typeof(a=e.valueOf)=="function"&&!r(i=a.call(e))||!n&&typeof(a=e.toString)=="function"&&!r(i=a.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},c430:function(o,g){o.exports=!1},c6b6:function(o,g){var t={}.toString;o.exports=function(r){return t.call(r).slice(8,-1)}},c6cd:function(o,g,t){var r=t("da84"),e=t("ce4e"),n="__core-js_shared__",a=r[n]||e(n,{});o.exports=a},c740:function(o,g,t){var r=t("23e7"),e=t("b727").findIndex,n=t("44d2"),a=t("ae40"),i="findIndex",f=!0,s=a(i);i in[]&&Array(1)[i](function(){f=!1}),r({target:"Array",proto:!0,forced:f||!s},{findIndex:function(l){return e(this,l,arguments.length>1?arguments[1]:void 0)}}),n(i)},c8ba:function(o,g){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch{typeof window=="object"&&(t=window)}o.exports=t},c975:function(o,g,t){var r=t("23e7"),e=t("4d64").indexOf,n=t("a640"),a=t("ae40"),i=[].indexOf,f=!!i&&1/[1].indexOf(1,-0)<0,s=n("indexOf"),u=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:f||!s||!u},{indexOf:function(c){return f?i.apply(this,arguments)||0:e(this,c,arguments.length>1?arguments[1]:void 0)}})},ca84:function(o,g,t){var r=t("5135"),e=t("fc6a"),n=t("4d64").indexOf,a=t("d012");o.exports=function(i,f){var s=e(i),u=0,l=[],c;for(c in s)!r(a,c)&&r(s,c)&&l.push(c);for(;f.length>u;)r(s,c=f[u++])&&(~n(l,c)||l.push(c));return l}},caad:function(o,g,t){var r=t("23e7"),e=t("4d64").includes,n=t("44d2"),a=t("ae40"),i=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!i},{includes:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),n("includes")},cc12:function(o,g,t){var r=t("da84"),e=t("861d"),n=r.document,a=e(n)&&e(n.createElement);o.exports=function(i){return a?n.createElement(i):{}}},ce4e:function(o,g,t){var r=t("da84"),e=t("9112");o.exports=function(n,a){try{e(r,n,a)}catch{r[n]=a}return a}},d012:function(o,g){o.exports={}},d039:function(o,g){o.exports=function(t){try{return!!t()}catch{return!0}}},d066:function(o,g,t){var r=t("428f"),e=t("da84"),n=function(a){return typeof a=="function"?a:void 0};o.exports=function(a,i){return arguments.length<2?n(r[a])||n(e[a]):r[a]&&r[a][i]||e[a]&&e[a][i]}},d1e7:function(o,g,t){var r={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!r.call({1:2},1);g.f=n?function(i){var f=e(this,i);return!!f&&f.enumerable}:r},d28b:function(o,g,t){var r=t("746f");r("iterator")},d2bb:function(o,g,t){var r=t("825a"),e=t("3bbe");o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var n=!1,a={},i;try{i=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,i.call(a,[]),n=a instanceof Array}catch{}return function(s,u){return r(s),e(u),n?i.call(s,u):s.__proto__=u,s}}():void 0)},d3b7:function(o,g,t){var r=t("00ee"),e=t("6eeb"),n=t("b041");r||e(Object.prototype,"toString",n,{unsafe:!0})},d44e:function(o,g,t){var r=t("9bf2").f,e=t("5135"),n=t("b622"),a=n("toStringTag");o.exports=function(i,f,s){i&&!e(i=s?i:i.prototype,a)&&r(i,a,{configurable:!0,value:f})}},d58f:function(o,g,t){var r=t("1c0b"),e=t("7b0b"),n=t("44ad"),a=t("50c4"),i=function(f){return function(s,u,l,c){r(u);var m=e(s),h=n(m),O=a(m.length),E=f?O-1:0,I=f?-1:1;if(l<2)for(;;){if(E in h){c=h[E],E+=I;break}if(E+=I,f?E<0:O<=E)throw TypeError("Reduce of empty array with no initial value")}for(;f?E>=0:O>E;E+=I)E in h&&(c=u(c,h[E],E,m));return c}};o.exports={left:i(!1),right:i(!0)}},d784:function(o,g,t){t("ac1f");var r=t("6eeb"),e=t("d039"),n=t("b622"),a=t("9263"),i=t("9112"),f=n("species"),s=!e(function(){var h=/./;return h.exec=function(){var O=[];return O.groups={a:"7"},O},"".replace(h,"$<a>")!=="7"}),u=function(){return"a".replace(/./,"$0")==="$0"}(),l=n("replace"),c=function(){return/./[l]?/./[l]("a","$0")==="":!1}(),m=!e(function(){var h=/(?:)/,O=h.exec;h.exec=function(){return O.apply(this,arguments)};var E="ab".split(h);return E.length!==2||E[0]!=="a"||E[1]!=="b"});o.exports=function(h,O,E,I){var p=n(h),L=!e(function(){var T={};return T[p]=function(){return 7},""[h](T)!=7}),F=L&&!e(function(){var T=!1,b=/a/;return h==="split"&&(b={},b.constructor={},b.constructor[f]=function(){return b},b.flags="",b[p]=/./[p]),b.exec=function(){return T=!0,null},b[p](""),!T});if(!L||!F||h==="replace"&&!(s&&u&&!c)||h==="split"&&!m){var S=/./[p],P=E(p,""[h],function(T,b,G,R,M){return b.exec===a?L&&!M?{done:!0,value:S.call(b,G,R)}:{done:!0,value:T.call(G,b,R)}:{done:!1}},{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:c}),C=P[0],K=P[1];r(String.prototype,h,C),r(RegExp.prototype,p,O==2?function(T,b){return K.call(T,this,b)}:function(T){return K.call(T,this)})}I&&i(RegExp.prototype[p],"sham",!0)}},d81d:function(o,g,t){var r=t("23e7"),e=t("b727").map,n=t("1dde"),a=t("ae40"),i=n("map"),f=a("map");r({target:"Array",proto:!0,forced:!i||!f},{map:function(u){return e(this,u,arguments.length>1?arguments[1]:void 0)}})},da84:function(o,g,t){(function(r){var e=function(n){return n&&n.Math==Math&&n};o.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof r=="object"&&r)||Function("return this")()}).call(this,t("c8ba"))},dbb4:function(o,g,t){var r=t("23e7"),e=t("83ab"),n=t("56ef"),a=t("fc6a"),i=t("06cf"),f=t("8418");r({target:"Object",stat:!0,sham:!e},{getOwnPropertyDescriptors:function(u){for(var l=a(u),c=i.f,m=n(l),h={},O=0,E,I;m.length>O;)I=c(l,E=m[O++]),I!==void 0&&f(h,E,I);return h}})},dbf1:function(o,g,t){(function(r){t.d(g,"a",function(){return n});function e(){return typeof window!="undefined"?window.console:r.console}var n=e()}).call(this,t("c8ba"))},ddb0:function(o,g,t){var r=t("da84"),e=t("fdbc"),n=t("e260"),a=t("9112"),i=t("b622"),f=i("iterator"),s=i("toStringTag"),u=n.values;for(var l in e){var c=r[l],m=c&&c.prototype;if(m){if(m[f]!==u)try{a(m,f,u)}catch{m[f]=u}if(m[s]||a(m,s,l),e[l]){for(var h in n)if(m[h]!==n[h])try{a(m,h,n[h])}catch{m[h]=n[h]}}}}},df75:function(o,g,t){var r=t("ca84"),e=t("7839");o.exports=Object.keys||function(a){return r(a,e)}},e01a:function(o,g,t){var r=t("23e7"),e=t("83ab"),n=t("da84"),a=t("5135"),i=t("861d"),f=t("9bf2").f,s=t("e893"),u=n.Symbol;if(e&&typeof u=="function"&&(!("description"in u.prototype)||u().description!==void 0)){var l={},c=function(){var p=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),L=this instanceof c?new u(p):p===void 0?u():u(p);return p===""&&(l[L]=!0),L};s(c,u);var m=c.prototype=u.prototype;m.constructor=c;var h=m.toString,O=String(u("test"))=="Symbol(test)",E=/^Symbol\((.*)\)[^)]+$/;f(m,"description",{configurable:!0,get:function(){var p=i(this)?this.valueOf():this,L=h.call(p);if(a(l,p))return"";var F=O?L.slice(7,-1):L.replace(E,"$1");return F===""?void 0:F}}),r({global:!0,forced:!0},{Symbol:c})}},e163:function(o,g,t){var r=t("5135"),e=t("7b0b"),n=t("f772"),a=t("e177"),i=n("IE_PROTO"),f=Object.prototype;o.exports=a?Object.getPrototypeOf:function(s){return s=e(s),r(s,i)?s[i]:typeof s.constructor=="function"&&s instanceof s.constructor?s.constructor.prototype:s instanceof Object?f:null}},e177:function(o,g,t){var r=t("d039");o.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},e260:function(o,g,t){var r=t("fc6a"),e=t("44d2"),n=t("3f8c"),a=t("69f3"),i=t("7dd0"),f="Array Iterator",s=a.set,u=a.getterFor(f);o.exports=i(Array,"Array",function(l,c){s(this,{type:f,target:r(l),index:0,kind:c})},function(){var l=u(this),c=l.target,m=l.kind,h=l.index++;return!c||h>=c.length?(l.target=void 0,{value:void 0,done:!0}):m=="keys"?{value:h,done:!1}:m=="values"?{value:c[h],done:!1}:{value:[h,c[h]],done:!1}},"values"),n.Arguments=n.Array,e("keys"),e("values"),e("entries")},e439:function(o,g,t){var r=t("23e7"),e=t("d039"),n=t("fc6a"),a=t("06cf").f,i=t("83ab"),f=e(function(){a(1)}),s=!i||f;r({target:"Object",stat:!0,forced:s,sham:!i},{getOwnPropertyDescriptor:function(l,c){return a(n(l),c)}})},e538:function(o,g,t){var r=t("b622");g.f=r},e893:function(o,g,t){var r=t("5135"),e=t("56ef"),n=t("06cf"),a=t("9bf2");o.exports=function(i,f){for(var s=e(f),u=a.f,l=n.f,c=0;c<s.length;c++){var m=s[c];r(i,m)||u(i,m,l(f,m))}}},e8b5:function(o,g,t){var r=t("c6b6");o.exports=Array.isArray||function(n){return r(n)=="Array"}},e95a:function(o,g,t){var r=t("b622"),e=t("3f8c"),n=r("iterator"),a=Array.prototype;o.exports=function(i){return i!==void 0&&(e.Array===i||a[n]===i)}},f5df:function(o,g,t){var r=t("00ee"),e=t("c6b6"),n=t("b622"),a=n("toStringTag"),i=e(function(){return arguments}())=="Arguments",f=function(s,u){try{return s[u]}catch{}};o.exports=r?e:function(s){var u,l,c;return s===void 0?"Undefined":s===null?"Null":typeof(l=f(u=Object(s),a))=="string"?l:i?e(u):(c=e(u))=="Object"&&typeof u.callee=="function"?"Arguments":c}},f772:function(o,g,t){var r=t("5692"),e=t("90e3"),n=r("keys");o.exports=function(a){return n[a]||(n[a]=e(a))}},fb15:function(o,g,t){if(t.r(g),typeof window!="undefined"){var r=window.document.currentScript;{var e=t("8875");r=e(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:e})}var n=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(t.p=n[1])}t("99af"),t("4de4"),t("4160"),t("c975"),t("d81d"),t("a434"),t("159b"),t("a4d3"),t("e439"),t("dbb4"),t("b64b");function a(d,v,y){return v in d?Object.defineProperty(d,v,{value:y,enumerable:!0,configurable:!0,writable:!0}):d[v]=y,d}function i(d,v){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(d);v&&(x=x.filter(function(A){return Object.getOwnPropertyDescriptor(d,A).enumerable})),y.push.apply(y,x)}return y}function f(d){for(var v=1;v<arguments.length;v++){var y=arguments[v]!=null?arguments[v]:{};v%2?i(Object(y),!0).forEach(function(x){a(d,x,y[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(y)):i(Object(y)).forEach(function(x){Object.defineProperty(d,x,Object.getOwnPropertyDescriptor(y,x))})}return d}function s(d){if(Array.isArray(d))return d}t("e01a"),t("d28b"),t("e260"),t("d3b7"),t("3ca3"),t("ddb0");function u(d,v){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(d)))){var y=[],x=!0,A=!1,N=void 0;try{for(var $=d[Symbol.iterator](),H;!(x=(H=$.next()).done)&&(y.push(H.value),!(v&&y.length===v));x=!0);}catch(J){A=!0,N=J}finally{try{!x&&$.return!=null&&$.return()}finally{if(A)throw N}}return y}}t("a630"),t("fb6a"),t("b0c0"),t("25f0");function l(d,v){(v==null||v>d.length)&&(v=d.length);for(var y=0,x=new Array(v);y<v;y++)x[y]=d[y];return x}function c(d,v){if(!!d){if(typeof d=="string")return l(d,v);var y=Object.prototype.toString.call(d).slice(8,-1);if(y==="Object"&&d.constructor&&(y=d.constructor.name),y==="Map"||y==="Set")return Array.from(d);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return l(d,v)}}function m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(d,v){return s(d)||u(d,v)||c(d,v)||m()}function O(d){if(Array.isArray(d))return l(d)}function E(d){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(d))return Array.from(d)}function I(){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 p(d){return O(d)||E(d)||c(d)||I()}var L=t("a352"),F=t.n(L);function S(d){d.parentElement!==null&&d.parentElement.removeChild(d)}function P(d,v,y){var x=y===0?d.children[0]:d.children[y-1].nextSibling;d.insertBefore(v,x)}var C=t("dbf1");t("13d5"),t("4fad"),t("ac1f"),t("5319");function K(d){var v=Object.create(null);return function(x){var A=v[x];return A||(v[x]=d(x))}}var T=/-(\w)/g,b=K(function(d){return d.replace(T,function(v,y){return y.toUpperCase()})});t("5db7"),t("73d9");var G=["Start","Add","Remove","Update","End"],R=["Choose","Unchoose","Sort","Filter","Clone"],M=["Move"],W=[M,G,R].flatMap(function(d){return d}).map(function(d){return"on".concat(d)}),z={manage:M,manageAndEmit:G,emit:R};function rt(d){return W.indexOf(d)!==-1}t("caad"),t("2ca0");var w=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function Q(d){return w.includes(d)}function k(d){return["transition-group","TransitionGroup"].includes(d)}function q(d){return["id","class","role","style"].includes(d)||d.startsWith("data-")||d.startsWith("aria-")||d.startsWith("on")}function Z(d){return d.reduce(function(v,y){var x=h(y,2),A=x[0],N=x[1];return v[A]=N,v},{})}function X(d){var v=d.$attrs,y=d.componentData,x=y===void 0?{}:y,A=Z(Object.entries(v).filter(function(N){var $=h(N,2),H=$[0];return $[1],q(H)}));return f(f({},A),x)}function Y(d){var v=d.$attrs,y=d.callBackBuilder,x=Z(ot(v));Object.entries(y).forEach(function(N){var $=h(N,2),H=$[0],J=$[1];z[H].forEach(function(U){x["on".concat(U)]=J(U)})});var A="[data-draggable]".concat(x.draggable||"");return f(f({},x),{},{draggable:A})}function ot(d){return Object.entries(d).filter(function(v){var y=h(v,2),x=y[0];return y[1],!q(x)}).map(function(v){var y=h(v,2),x=y[0],A=y[1];return[b(x),A]}).filter(function(v){var y=h(v,2),x=y[0];return y[1],!rt(x)})}t("c740");function et(d,v){if(!(d instanceof v))throw new TypeError("Cannot call a class as a function")}function st(d,v){for(var y=0;y<v.length;y++){var x=v[y];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(d,x.key,x)}}function ct(d,v,y){return v&&st(d.prototype,v),y&&st(d,y),d}var ut=function(v){var y=v.el;return y},_=function(v,y){return v.__draggable_context=y},tt=function(v){return v.__draggable_context},vt=function(){function d(v){var y=v.nodes,x=y.header,A=y.default,N=y.footer,$=v.root,H=v.realList;et(this,d),this.defaultNodes=A,this.children=[].concat(p(x),p(A),p(N)),this.externalComponent=$.externalComponent,this.rootTransition=$.transition,this.tag=$.tag,this.realList=H}return ct(d,[{key:"render",value:function(y,x){var A=this.tag,N=this.children,$=this._isRootComponent,H=$?{default:function(){return N}}:N;return y(A,x,H)}},{key:"updated",value:function(){var y=this.defaultNodes,x=this.realList;y.forEach(function(A,N){_(ut(A),{element:x[N],index:N})})}},{key:"getUnderlyingVm",value:function(y){return tt(y)}},{key:"getVmIndexFromDomIndex",value:function(y,x){var A=this.defaultNodes,N=A.length,$=x.children,H=$.item(y);if(H===null)return N;var J=tt(H);if(J)return J.index;if(N===0)return 0;var U=ut(A[0]),j=p($).findIndex(function(D){return D===U});return y<j?0:N}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),d}(),it=t("8bbf");function ft(d,v){var y=d[v];return y?y():[]}function St(d){var v=d.$slots,y=d.realList,x=d.getKey,A=y||[],N=["header","footer"].map(function(D){return ft(v,D)}),$=h(N,2),H=$[0],J=$[1],U=v.item;if(!U)throw new Error("draggable element must have an item slot");var j=A.flatMap(function(D,B){return U({element:D,index:B}).map(function(V){return V.key=x(D),V.props=f(f({},V.props||{}),{},{"data-draggable":!0}),V})});if(j.length!==A.length)throw new Error("Item slot must have only one child");return{header:H,footer:J,default:j}}function Ot(d){var v=k(d),y=!Q(d)&&!v;return{transition:v,externalComponent:y,tag:y?Object(it.resolveComponent)(d):v?it.TransitionGroup:d}}function at(d){var v=d.$slots,y=d.tag,x=d.realList,A=d.getKey,N=St({$slots:v,realList:x,getKey:A}),$=Ot(y);return new vt({nodes:N,root:$,realList:x})}function lt(d,v){var y=this;Object(it.nextTick)(function(){return y.$emit(d.toLowerCase(),v)})}function dt(d){var v=this;return function(y,x){if(v.realList!==null)return v["onDrag".concat(d)](y,x)}}function gt(d){var v=this,y=dt.call(this,d);return function(x,A){y.call(v,x,A),lt.call(v,d,x)}}var mt=null,yt={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(v){return v}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},ht=["update:modelValue","change"].concat(p([].concat(p(z.manageAndEmit),p(z.emit)).map(function(d){return d.toLowerCase()}))),pt=Object(it.defineComponent)({name:"draggable",inheritAttrs:!1,props:yt,emits:ht,data:function(){return{error:!1}},render:function(){try{this.error=!1;var v=this.$slots,y=this.$attrs,x=this.tag,A=this.componentData,N=this.realList,$=this.getKey,H=at({$slots:v,tag:x,realList:N,getKey:$});this.componentStructure=H;var J=X({$attrs:y,componentData:A});return H.render(it.h,J)}catch(U){return this.error=!0,Object(it.h)("pre",{style:{color:"red"}},U.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&C.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var v=this;if(!this.error){var y=this.$attrs,x=this.$el,A=this.componentStructure;A.updated();var N=Y({$attrs:y,callBackBuilder:{manageAndEmit:function(J){return gt.call(v,J)},emit:function(J){return lt.bind(v,J)},manage:function(J){return dt.call(v,J)}}}),$=x.nodeType===1?x:x.parentElement;this._sortable=new F.a($,N),this.targetDomElement=$,$.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var v=this.list;return v||this.modelValue},getKey:function(){var v=this.itemKey;return typeof v=="function"?v:function(y){return y[v]}}},watch:{$attrs:{handler:function(v){var y=this._sortable;!y||ot(v).forEach(function(x){var A=h(x,2),N=A[0],$=A[1];y.option(N,$)})},deep:!0}},methods:{getUnderlyingVm:function(v){return this.componentStructure.getUnderlyingVm(v)||null},getUnderlyingPotencialDraggableComponent:function(v){return v.__draggable_component__},emitChanges:function(v){var y=this;Object(it.nextTick)(function(){return y.$emit("change",v)})},alterList:function(v){if(this.list){v(this.list);return}var y=p(this.modelValue);v(y),this.$emit("update:modelValue",y)},spliceList:function(){var v=arguments,y=function(A){return A.splice.apply(A,p(v))};this.alterList(y)},updatePosition:function(v,y){var x=function(N){return N.splice(y,0,N.splice(v,1)[0])};this.alterList(x)},getRelatedContextFromMoveEvent:function(v){var y=v.to,x=v.related,A=this.getUnderlyingPotencialDraggableComponent(y);if(!A)return{component:A};var N=A.realList,$={list:N,component:A};if(y!==x&&N){var H=A.getUnderlyingVm(x)||{};return f(f({},H),$)}return $},getVmIndexFromDomIndex:function(v){return this.componentStructure.getVmIndexFromDomIndex(v,this.targetDomElement)},onDragStart:function(v){this.context=this.getUnderlyingVm(v.item),v.item._underlying_vm_=this.clone(this.context.element),mt=v.item},onDragAdd:function(v){var y=v.item._underlying_vm_;if(y!==void 0){S(v.item);var x=this.getVmIndexFromDomIndex(v.newIndex);this.spliceList(x,0,y);var A={element:y,newIndex:x};this.emitChanges({added:A})}},onDragRemove:function(v){if(P(this.$el,v.item,v.oldIndex),v.pullMode==="clone"){S(v.clone);return}var y=this.context,x=y.index,A=y.element;this.spliceList(x,1);var N={element:A,oldIndex:x};this.emitChanges({removed:N})},onDragUpdate:function(v){S(v.item),P(v.from,v.item,v.oldIndex);var y=this.context.index,x=this.getVmIndexFromDomIndex(v.newIndex);this.updatePosition(y,x);var A={element:this.context.element,oldIndex:y,newIndex:x};this.emitChanges({moved:A})},computeFutureIndex:function(v,y){if(!v.element)return 0;var x=p(y.to.children).filter(function(H){return H.style.display!=="none"}),A=x.indexOf(y.related),N=v.component.getVmIndexFromDomIndex(A),$=x.indexOf(mt)!==-1;return $||!y.willInsertAfter?N:N+1},onDragMove:function(v,y){var x=this.move,A=this.realList;if(!x||!A)return!0;var N=this.getRelatedContextFromMoveEvent(v),$=this.computeFutureIndex(N,v),H=f(f({},this.context),{},{futureIndex:$}),J=f(f({},v),{},{relatedContext:N,draggedContext:H});return x(J,y)},onDragEnd:function(){mt=null}}}),xt=pt;g.default=xt},fb6a:function(o,g,t){var r=t("23e7"),e=t("861d"),n=t("e8b5"),a=t("23cb"),i=t("50c4"),f=t("fc6a"),s=t("8418"),u=t("b622"),l=t("1dde"),c=t("ae40"),m=l("slice"),h=c("slice",{ACCESSORS:!0,0:0,1:2}),O=u("species"),E=[].slice,I=Math.max;r({target:"Array",proto:!0,forced:!m||!h},{slice:function(L,F){var S=f(this),P=i(S.length),C=a(L,P),K=a(F===void 0?P:F,P),T,b,G;if(n(S)&&(T=S.constructor,typeof T=="function"&&(T===Array||n(T.prototype))?T=void 0:e(T)&&(T=T[O],T===null&&(T=void 0)),T===Array||T===void 0))return E.call(S,C,K);for(b=new(T===void 0?Array:T)(I(K-C,0)),G=0;C<K;C++,G++)C in S&&s(b,G,S[C]);return b.length=G,b}})},fc6a:function(o,g,t){var r=t("44ad"),e=t("1d80");o.exports=function(n){return r(e(n))}},fdbc:function(o,g){o.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(o,g,t){var r=t("4930");o.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(Pt);var $t=Ct(Pt.exports);export{$t as D};
diff --git a/assets/workbox-window.60401ce8.js b/assets/workbox-window.60401ce8.js
deleted file mode 100644
index fe986dd..0000000
--- a/assets/workbox-window.60401ce8.js
+++ /dev/null
@@ -1,2 +0,0 @@
-try{self["workbox:window:6.5.2"]&&_()}catch{}function S(t,r){return new Promise(function(e){var o=new MessageChannel;o.port1.onmessage=function(v){e(v.data)},t.postMessage(r,[o.port2])})}function L(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function E(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,o=new Array(r);e<r;e++)o[e]=t[e];return o}function W(t,r){var e;if(typeof Symbol=="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(e=function(v,d){if(v){if(typeof v=="string")return E(v,d);var h=Object.prototype.toString.call(v).slice(8,-1);return h==="Object"&&v.constructor&&(h=v.constructor.name),h==="Map"||h==="Set"?Array.from(v):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?E(v,d):void 0}}(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return(e=t[Symbol.iterator]()).next.bind(e)}try{self["workbox:core:6.5.2"]&&_()}catch{}var y=function(){var t=this;this.promise=new Promise(function(r,e){t.resolve=r,t.reject=e})};function b(t,r){var e=location.href;return new URL(t,e).href===new URL(r,e).href}var g=function(t,r){this.type=t,Object.assign(this,r)};function p(t,r,e){return e?r?r(t):t:(t&&t.then||(t=Promise.resolve(t)),r?t.then(r):t)}function j(){}var k={type:"SKIP_WAITING"};function P(t,r){if(!r)return t&&t.then?t.then(j):Promise.resolve()}var U=function(t){var r,e;function o(f,c){var n,i;return c===void 0&&(c={}),(n=t.call(this)||this).nn={},n.tn=0,n.rn=new y,n.en=new y,n.on=new y,n.un=0,n.an=new Set,n.cn=function(){var s=n.fn,a=s.installing;n.tn>0||!b(a.scriptURL,n.sn.toString())||performance.now()>n.un+6e4?(n.vn=a,s.removeEventListener("updatefound",n.cn)):(n.hn=a,n.an.add(a),n.rn.resolve(a)),++n.tn,a.addEventListener("statechange",n.ln)},n.ln=function(s){var a=n.fn,u=s.target,l=u.state,m=u===n.vn,w={sw:u,isExternal:m,originalEvent:s};!m&&n.mn&&(w.isUpdate=!0),n.dispatchEvent(new g(l,w)),l==="installed"?n.wn=self.setTimeout(function(){l==="installed"&&a.waiting===u&&n.dispatchEvent(new g("waiting",w))},200):l==="activating"&&(clearTimeout(n.wn),m||n.en.resolve(u))},n.dn=function(s){var a=n.hn,u=a!==navigator.serviceWorker.controller;n.dispatchEvent(new g("controlling",{isExternal:u,originalEvent:s,sw:a,isUpdate:n.mn})),u||n.on.resolve(a)},n.gn=(i=function(s){var a=s.data,u=s.ports,l=s.source;return p(n.getSW(),function(){n.an.has(l)&&n.dispatchEvent(new g("message",{data:a,originalEvent:s,ports:u,sw:l}))})},function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];try{return Promise.resolve(i.apply(this,s))}catch(u){return Promise.reject(u)}}),n.sn=f,n.nn=c,navigator.serviceWorker.addEventListener("message",n.gn),n}e=t,(r=o).prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e;var v,d,h=o.prototype;return h.register=function(f){var c=(f===void 0?{}:f).immediate,n=c!==void 0&&c;try{var i=this;return function(s,a){var u=s();return u&&u.then?u.then(a):a(u)}(function(){if(!n&&document.readyState!=="complete")return P(new Promise(function(s){return window.addEventListener("load",s)}))},function(){return i.mn=Boolean(navigator.serviceWorker.controller),i.yn=i.pn(),p(i.bn(),function(s){i.fn=s,i.yn&&(i.hn=i.yn,i.en.resolve(i.yn),i.on.resolve(i.yn),i.yn.addEventListener("statechange",i.ln,{once:!0}));var a=i.fn.waiting;return a&&b(a.scriptURL,i.sn.toString())&&(i.hn=a,Promise.resolve().then(function(){i.dispatchEvent(new g("waiting",{sw:a,wasWaitingBeforeRegister:!0}))}).then(function(){})),i.hn&&(i.rn.resolve(i.hn),i.an.add(i.hn)),i.fn.addEventListener("updatefound",i.cn),navigator.serviceWorker.addEventListener("controllerchange",i.dn),i.fn})})}catch(s){return Promise.reject(s)}},h.update=function(){try{return this.fn?P(this.fn.update()):void 0}catch(f){return Promise.reject(f)}},h.getSW=function(){return this.hn!==void 0?Promise.resolve(this.hn):this.rn.promise},h.messageSW=function(f){try{return p(this.getSW(),function(c){return S(c,f)})}catch(c){return Promise.reject(c)}},h.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&S(this.fn.waiting,k)},h.pn=function(){var f=navigator.serviceWorker.controller;return f&&b(f.scriptURL,this.sn.toString())?f:void 0},h.bn=function(){try{var f=this;return function(c,n){try{var i=c()}catch(s){return n(s)}return i&&i.then?i.then(void 0,n):i}(function(){return p(navigator.serviceWorker.register(f.sn,f.nn),function(c){return f.un=performance.now(),c})},function(c){throw c})}catch(c){return Promise.reject(c)}},v=o,(d=[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}])&&L(v.prototype,d),o}(function(){function t(){this.Pn=new Map}var r=t.prototype;return r.addEventListener=function(e,o){this.Sn(e).add(o)},r.removeEventListener=function(e,o){this.Sn(e).delete(o)},r.dispatchEvent=function(e){e.target=this;for(var o,v=W(this.Sn(e.type));!(o=v()).done;)(0,o.value)(e)},r.Sn=function(e){return this.Pn.has(e)||this.Pn.set(e,new Set),this.Pn.get(e)},t}());export{S as n,U as v};
diff --git a/index.html b/index.html
index fee797f..822064e 100644
--- a/index.html
+++ b/index.html
@@ -19,31 +19,8 @@
 		<title>Profectus</title>
 		<meta name="description" content="A project made in Profectus"/>
 
-		<script type="module" crossorigin src="./assets/index.dd0f3e2c.js"></script>
-		<link rel="modulepreload" href="./assets/@vue.861e8bf0.js">
-		<link rel="modulepreload" href="./assets/is-plain-object.906d88e8.js">
-		<link rel="modulepreload" href="./assets/nanoevents.1080beb7.js">
-		<link rel="modulepreload" href="./assets/lz-string.f2f3b7cf.js">
-		<link rel="modulepreload" href="./assets/@ivanv.bf09ddfc.js">
-		<link rel="modulepreload" href="./assets/vue-next-select.aa58f779.js">
-		<link rel="modulepreload" href="./assets/earcut.89ec12e6.js">
-		<link rel="modulepreload" href="./assets/vue.bc20e238.js">
-		<link rel="modulepreload" href="./assets/sortablejs.dd463b56.js">
-		<link rel="modulepreload" href="./assets/vuedraggable.e833ee6e.js">
-		<link rel="modulepreload" href="./assets/vue-textarea-autosize.35804eaf.js">
-		<link rel="modulepreload" href="./assets/vue-toastification.17ba848b.js">
-		<link rel="modulepreload" href="./assets/promise-polyfill.7a7f9c83.js">
-		<link rel="modulepreload" href="./assets/object-assign.9840bf7d.js">
-		<link rel="modulepreload" href="./assets/eventemitter3.dc5195d7.js">
-		<link rel="modulepreload" href="./assets/ismobilejs.5c6954b9.js">
-		<link rel="modulepreload" href="./assets/querystring.776b9ab3.js">
-		<link rel="modulepreload" href="./assets/url.08d1c71e.js">
-		<link rel="modulepreload" href="./assets/@pixi.b4dff018.js">
-		<link rel="modulepreload" href="./assets/pixi.js.540c9a76.js">
-		<link rel="modulepreload" href="./assets/workbox-window.60401ce8.js">
-		<link rel="stylesheet" href="./assets/vue-next-select.9e6f4164.css">
-		<link rel="stylesheet" href="./assets/vue-toastification.4b5f8ac8.css">
-		<link rel="stylesheet" href="./assets/index.fa7b40bf.css">
+		<script type="module" crossorigin src="./assets/index.d5d1e0a2.js"></script>
+		<link rel="stylesheet" href="./assets/index.41d7c359.css">
 	<link rel="manifest" href="./manifest.webmanifest"></head>
 	<body>
 		<noscript>
diff --git a/sw.js b/sw.js
index 2bdc3fb..e31765a 100644
--- a/sw.js
+++ b/sw.js
@@ -1 +1 @@
-if(!self.define){let s,e={};const i=(i,l)=>(i=new URL(i+".js",l).href,e[i]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=i,s.onload=e,document.head.appendChild(s)}else s=i,importScripts(i),e()})).then((()=>{let s=e[i];if(!s)throw new Error(`Module ${i} didn’t register its module`);return s})));self.define=(l,n)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let u={};const t=s=>i(s,r),o={module:{uri:r},exports:u,require:t};e[r]=Promise.all(l.map((s=>o[s]||t(s)))).then((s=>(n(...s),u)))}}define(["./workbox-b3e22772"],(function(s){"use strict";self.addEventListener("message",(s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()})),s.precacheAndRoute([{url:"assets/@ivanv.bf09ddfc.js",revision:null},{url:"assets/@pixi.b4dff018.js",revision:null},{url:"assets/@vue.861e8bf0.js",revision:null},{url:"assets/earcut.89ec12e6.js",revision:null},{url:"assets/eventemitter3.dc5195d7.js",revision:null},{url:"assets/index.dd0f3e2c.js",revision:null},{url:"assets/index.fa7b40bf.css",revision:null},{url:"assets/is-plain-object.906d88e8.js",revision:null},{url:"assets/ismobilejs.5c6954b9.js",revision:null},{url:"assets/lz-string.f2f3b7cf.js",revision:null},{url:"assets/nanoevents.1080beb7.js",revision:null},{url:"assets/object-assign.9840bf7d.js",revision:null},{url:"assets/pixi.js.540c9a76.js",revision:null},{url:"assets/promise-polyfill.7a7f9c83.js",revision:null},{url:"assets/querystring.776b9ab3.js",revision:null},{url:"assets/sortablejs.dd463b56.js",revision:null},{url:"assets/url.08d1c71e.js",revision:null},{url:"assets/vue-next-select.9e6f4164.css",revision:null},{url:"assets/vue-next-select.aa58f779.js",revision:null},{url:"assets/vue-textarea-autosize.35804eaf.js",revision:null},{url:"assets/vue-toastification.17ba848b.js",revision:null},{url:"assets/vue-toastification.4b5f8ac8.css",revision:null},{url:"assets/vue.bc20e238.js",revision:null},{url:"assets/vuedraggable.e833ee6e.js",revision:null},{url:"assets/workbox-window.60401ce8.js",revision:null},{url:"index.html",revision:"447ada8d2564c62d4cde38b86e2a68f7"},{url:"favicon.ico",revision:"eead31eb5b19fa3bdc34af83d898c0b7"},{url:"robots.txt",revision:"5e0bd1c281a62a380d7a948085bfe2d1"},{url:"apple-touch-icon.png",revision:"26e53bb981d06c8069ffd9d2a14fce0e"},{url:"pwa-192x192.png",revision:"a16785d9e890858c5b508e0ef6954aaf"},{url:"pwa-512x512.png",revision:"b84004b93fd62ef6599ff179372861a1"},{url:"manifest.webmanifest",revision:"324df043058f919e7a1495348320e1ed"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))}));
+if(!self.define){let e,i={};const n=(n,s)=>(n=new URL(n+".js",s).href,i[n]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=i,document.head.appendChild(e)}else e=n,importScripts(n),i()})).then((()=>{let e=i[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(s,r)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(i[o])return;let t={};const d=e=>n(e,o),f={module:{uri:o},exports:t,require:d};i[o]=Promise.all(s.map((e=>f[e]||d(e)))).then((e=>(r(...e),t)))}}define(["./workbox-b3e22772"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"assets/index.41d7c359.css",revision:null},{url:"assets/index.d5d1e0a2.js",revision:null},{url:"index.html",revision:"7671f2123d890dcb3b501d96b82a3998"},{url:"favicon.ico",revision:"eead31eb5b19fa3bdc34af83d898c0b7"},{url:"robots.txt",revision:"5e0bd1c281a62a380d7a948085bfe2d1"},{url:"apple-touch-icon.png",revision:"26e53bb981d06c8069ffd9d2a14fce0e"},{url:"pwa-192x192.png",revision:"a16785d9e890858c5b508e0ef6954aaf"},{url:"pwa-512x512.png",revision:"b84004b93fd62ef6599ff179372861a1"},{url:"manifest.webmanifest",revision:"324df043058f919e7a1495348320e1ed"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));