diff --git a/assets/@ivanv.350aa563.js b/assets/@ivanv.350aa563.js new file mode 100644 index 0000000..e1164e6 --- /dev/null +++ b/assets/@ivanv.350aa563.js @@ -0,0 +1 @@ +import"./vue.37fee242.js";import{o as r,c as o,w as d,r as h,T as l}from"./@vue.7184beb0.js";var c=(e,t)=>{const s=e.__vccOpts||e;for(const[n,a]of t)s[n]=a;return s};const p={name:"CollapseTransition",props:{name:{type:String,required:!1,default:"collapse"},dimension:{type:String,required:!1,default:"height",validator:e=>["height","width"].includes(e)},duration:{type:Number,required:!1,default:300},easing:{type:String,required:!1,default:"ease-in-out"}},watch:{dimension(){this.clearCachedDimensions()}},data(){return{cachedStyles:null}},computed:{transition(){let e=[];return Object.keys(this.cachedStyles).forEach(t=>{e.push(`${this.convertToCssProperty(t)} ${this.duration}ms ${this.easing}`)}),e.join(", ")}},methods:{beforeAppear(e){this.$emit("before-appear",e)},appear(e){this.$emit("appear",e)},afterAppear(e){this.$emit("after-appear",e)},appearCancelled(e){this.$emit("appear-cancelled",e)},beforeEnter(e){this.$emit("before-enter",e)},enter(e,t){this.detectAndCacheDimensions(e),this.setClosedDimensions(e),this.hideOverflow(e),this.forceRepaint(e),this.setTransition(e),this.setOpenedDimensions(e),this.$emit("enter",e,t),setTimeout(t,this.duration)},afterEnter(e){this.unsetOverflow(e),this.unsetTransition(e),this.unsetDimensions(e),this.clearCachedDimensions(),this.$emit("after-enter",e)},enterCancelled(e){this.$emit("enter-cancelled",e)},beforeLeave(e){this.$emit("before-leave",e)},leave(e,t){this.detectAndCacheDimensions(e),this.setOpenedDimensions(e),this.hideOverflow(e),this.forceRepaint(e),this.setTransition(e),this.setClosedDimensions(e),this.$emit("leave",e,t),setTimeout(t,this.duration)},afterLeave(e){this.unsetOverflow(e),this.unsetTransition(e),this.unsetDimensions(e),this.clearCachedDimensions(),this.$emit("after-leave",e)},leaveCancelled(e){this.$emit("leave-cancelled",e)},detectAndCacheDimensions(e){if(this.cachedStyles)return;const t=e.style.visibility,s=e.style.display;e.style.visibility="hidden",e.style.display="",this.cachedStyles=this.detectRelevantDimensions(e),e.style.visibility=t,e.style.display=s},clearCachedDimensions(){this.cachedStyles=null},detectRelevantDimensions(e){return this.dimension==="height"?{height:e.offsetHeight+"px",paddingTop:e.style.paddingTop||this.getCssValue(e,"padding-top"),paddingBottom:e.style.paddingBottom||this.getCssValue(e,"padding-bottom")}:this.dimension==="width"?{width:e.offsetWidth+"px",paddingLeft:e.style.paddingLeft||this.getCssValue(e,"padding-left"),paddingRight:e.style.paddingRight||this.getCssValue(e,"padding-right")}:{}},setTransition(e){e.style.transition=this.transition},unsetTransition(e){e.style.transition=""},hideOverflow(e){e.style.overflow="hidden"},unsetOverflow(e){e.style.overflow=""},setClosedDimensions(e){Object.keys(this.cachedStyles).forEach(t=>{e.style[t]="0"})},setOpenedDimensions(e){Object.keys(this.cachedStyles).forEach(t=>{e.style[t]=this.cachedStyles[t]})},unsetDimensions(e){Object.keys(this.cachedStyles).forEach(t=>{e.style[t]=""})},forceRepaint(e){getComputedStyle(e)[this.dimension]},getCssValue(e,t){return getComputedStyle(e,null).getPropertyValue(t)},convertToCssProperty(e){const t=e.match(/([A-Z])/g);if(!t)return e;for(let s=0,n=t.length;s[h(e.$slots,"default")]),_:3},8,["name","onBeforeAppear","onAppear","onAfterAppear","onAppearCancelled","onBeforeEnter","onEnter","onAfterEnter","onEnterCancelled","onBeforeLeave","onLeave","onAfterLeave","onLeaveCancelled"])}var v=c(p,[["render",f]]);export{v as C,c as _}; 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[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/@vue.7184beb0.js b/assets/@vue.7184beb0.js new file mode 100644 index 0000000..4c544c3 --- /dev/null +++ b/assets/@vue.7184beb0.js @@ -0,0 +1,9 @@ +function Ne(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r!!n[r.toLowerCase()]:r=>!!n[r]}const wf="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",Nf=Ne(wf),Pf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Of=Ne(Pf);function Go(e){return!!e||e===""}function Un(e){if(V(e)){const t={};for(let n=0;n{if(n){const s=n.split(Af);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function jn(e){let t="";if(z(e))t=e;else if(V(e))for(let n=0;nht(n,t))}const Hf=e=>z(e)?e:e==null?"":V(e)||fe(e)&&(e.toString===nl||!W(e.toString))?JSON.stringify(e,tl,2):String(e),tl=(e,t)=>t&&t.__v_isRef?tl(e,t.value):Qt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:Dt(t)?{[`Set(${t.size})`]:[...t.values()]}:fe(t)&&!V(t)&&!sl(t)?String(t):t,Q={},Xt=[],Me=()=>{},us=()=>!1,Vf=/^on[^a-z]/,$t=e=>Vf.test(e),Jr=e=>e.startsWith("onUpdate:"),ee=Object.assign,Yr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Uf=Object.prototype.hasOwnProperty,Z=(e,t)=>Uf.call(e,t),V=Array.isArray,Qt=e=>Kn(e)==="[object Map]",Dt=e=>Kn(e)==="[object Set]",Qi=e=>Kn(e)==="[object Date]",W=e=>typeof e=="function",z=e=>typeof e=="string",gt=e=>typeof e=="symbol",fe=e=>e!==null&&typeof e=="object",Zr=e=>fe(e)&&W(e.then)&&W(e.catch),nl=Object.prototype.toString,Kn=e=>nl.call(e),jf=e=>Kn(e).slice(8,-1),sl=e=>Kn(e)==="[object Object]",Xr=e=>z(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ot=Ne(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Kf=Ne("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Ds=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},xf=/-(\w)/g,Te=Ds(e=>e.replace(xf,(t,n)=>n?n.toUpperCase():"")),Wf=/\B([A-Z])/g,xe=Ds(e=>e.replace(Wf,"-$1").toLowerCase()),Ht=Ds(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gt=Ds(e=>e?`on${Ht(e)}`:""),nn=(e,t)=>!Object.is(e,t),en=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},mt=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Gi;const qf=()=>Gi||(Gi=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Oe;class Qr{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Oe&&(this.parent=Oe,this.index=(Oe.scopes||(Oe.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Oe;try{return Oe=this,t()}finally{Oe=n}}}on(){Oe=this}off(){Oe=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},il=e=>(e.w&yt)>0,ol=e=>(e.n&yt)>0,Zf=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(f==="length"||f>=s)&&l.push(c)});else switch(n!==void 0&&l.push(o.get(n)),t){case"add":V(e)?Xr(n)&&l.push(o.get("length")):(l.push(o.get(Rt)),Qt(e)&&l.push(o.get(Sr)));break;case"delete":V(e)||(l.push(o.get(Rt)),Qt(e)&&l.push(o.get(Sr)));break;case"set":Qt(e)&&l.push(o.get(Rt));break}if(l.length===1)l[0]&&vr(l[0]);else{const c=[];for(const f of l)f&&c.push(...f);vr(Gr(c))}}function vr(e,t){const n=V(e)?e:[...e];for(const s of n)s.computed&&to(s);for(const s of n)s.computed||to(s)}function to(e,t){(e!==Ke||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const ea=Ne("__proto__,__v_isRef,__isVue"),fl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gt)),ta=Hs(),na=Hs(!1,!0),sa=Hs(!0),ra=Hs(!0,!0),no=ia();function ia(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Y(this);for(let i=0,o=this.length;i{e[t]=function(...n){Vt();const s=Y(this)[t].apply(this,n);return Ut(),s}}),e}function Hs(e=!1,t=!1){return function(s,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?ml:gl:t?hl:dl).get(s))return s;const o=V(s);if(!e&&o&&Z(no,r))return Reflect.get(no,r,i);const l=Reflect.get(s,r,i);return(gt(r)?fl.has(r):ea(r))||(e||Be(s,"get",r),t)?l:de(l)?o&&Xr(r)?l:l.value:fe(l)?e?ti(l):js(l):l}}const oa=al(),la=al(!0);function al(e=!1){return function(n,s,r,i){let o=n[s];if(sn(o)&&de(o)&&!de(r))return!1;if(!e&&!sn(r)&&(bs(r)||(r=Y(r),o=Y(o)),!V(n)&&de(o)&&!de(r)))return o.value=r,!0;const l=V(n)&&Xr(s)?Number(s)e,Vs=e=>Reflect.getPrototypeOf(e);function Gn(e,t,n=!1,s=!1){e=e.__v_raw;const r=Y(e),i=Y(t);n||(t!==i&&Be(r,"get",t),Be(r,"get",i));const{has:o}=Vs(r),l=s?ei:n?ri:In;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 es(e,t=!1){const n=this.__v_raw,s=Y(n),r=Y(e);return t||(e!==r&&Be(s,"has",e),Be(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function ts(e,t=!1){return e=e.__v_raw,!t&&Be(Y(e),"iterate",Rt),Reflect.get(e,"size",e)}function so(e){e=Y(e);const t=Y(this);return Vs(t).has.call(t,e)||(t.add(e),st(t,"add",e,e)),this}function ro(e,t){t=Y(t);const n=Y(this),{has:s,get:r}=Vs(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?nn(t,o)&&st(n,"set",e,t):st(n,"add",e,t),this}function io(e){const t=Y(this),{has:n,get:s}=Vs(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&&st(t,"delete",e,void 0),i}function oo(){const e=Y(this),t=e.size!==0,n=e.clear();return t&&st(e,"clear",void 0,void 0),n}function ns(e,t){return function(s,r){const i=this,o=i.__v_raw,l=Y(o),c=t?ei:e?ri:In;return!e&&Be(l,"iterate",Rt),o.forEach((f,a)=>s.call(r,c(f),c(a),i))}}function ss(e,t,n){return function(...s){const r=this.__v_raw,i=Y(r),o=Qt(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,f=r[e](...s),a=n?ei:t?ri:In;return!t&&Be(i,"iterate",c?Sr:Rt),{next(){const{value:u,done:d}=f.next();return d?{value:u,done:d}:{value:l?[a(u[0]),a(u[1])]:a(u),done:d}},[Symbol.iterator](){return this}}}}function ot(e){return function(...t){return e==="delete"?!1:this}}function da(){const e={get(i){return Gn(this,i)},get size(){return ts(this)},has:es,add:so,set:ro,delete:io,clear:oo,forEach:ns(!1,!1)},t={get(i){return Gn(this,i,!1,!0)},get size(){return ts(this)},has:es,add:so,set:ro,delete:io,clear:oo,forEach:ns(!1,!0)},n={get(i){return Gn(this,i,!0)},get size(){return ts(this,!0)},has(i){return es.call(this,i,!0)},add:ot("add"),set:ot("set"),delete:ot("delete"),clear:ot("clear"),forEach:ns(!0,!1)},s={get(i){return Gn(this,i,!0,!0)},get size(){return ts(this,!0)},has(i){return es.call(this,i,!0)},add:ot("add"),set:ot("set"),delete:ot("delete"),clear:ot("clear"),forEach:ns(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=ss(i,!1,!1),n[i]=ss(i,!0,!1),t[i]=ss(i,!1,!0),s[i]=ss(i,!0,!0)}),[e,n,t,s]}const[ha,ga,ma,ya]=da();function Us(e,t){const n=t?e?ya:ma:e?ga:ha;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Z(n,r)&&r in s?n:s,r,i)}const ba={get:Us(!1,!1)},_a={get:Us(!1,!0)},Ea={get:Us(!0,!1)},Ca={get:Us(!0,!0)},dl=new WeakMap,hl=new WeakMap,gl=new WeakMap,ml=new WeakMap;function Ta(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Sa(e){return e.__v_skip||!Object.isExtensible(e)?0:Ta(jf(e))}function js(e){return sn(e)?e:Ks(e,!1,ul,ba,dl)}function yl(e){return Ks(e,!1,ua,_a,hl)}function ti(e){return Ks(e,!0,pl,Ea,gl)}function va(e){return Ks(e,!0,pa,Ca,ml)}function Ks(e,t,n,s,r){if(!fe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=Sa(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function At(e){return sn(e)?At(e.__v_raw):!!(e&&e.__v_isReactive)}function sn(e){return!!(e&&e.__v_isReadonly)}function bs(e){return!!(e&&e.__v_isShallow)}function ni(e){return At(e)||sn(e)}function Y(e){const t=e&&e.__v_raw;return t?Y(t):e}function si(e){return ys(e,"__v_skip",!0),e}const In=e=>fe(e)?js(e):e,ri=e=>fe(e)?ti(e):e;function ii(e){pt&&Ke&&(e=Y(e),cl(e.dep||(e.dep=Gr())))}function xs(e,t){e=Y(e),e.dep&&vr(e.dep)}function de(e){return!!(e&&e.__v_isRef===!0)}function ps(e){return bl(e,!1)}function wa(e){return bl(e,!0)}function bl(e,t){return de(e)?e:new Na(e,t)}class Na{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:In(t)}get value(){return ii(this),this._value}set value(t){t=this.__v_isShallow?t:Y(t),nn(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:In(t),xs(this))}}function Pa(e){xs(e)}function _l(e){return de(e)?e.value:e}const Oa={get:(e,t,n)=>_l(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return de(r)&&!de(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function oi(e){return At(e)?e:new Proxy(e,Oa)}class Ra{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>ii(this),()=>xs(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function Aa(e){return new Ra(e)}function Ia(e){const t=V(e)?new Array(e.length):{};for(const n in e)t[n]=El(e,n);return t}class Ma{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 El(e,t,n){const s=e[t];return de(s)?s:new Ma(e,t,n)}class ka{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new xn(t,()=>{this._dirty||(this._dirty=!0,xs(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=Y(this);return ii(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Fa(e,t,n=!1){let s,r;const i=W(e);return i?(s=e,r=Me):(s=e.get,r=e.set),new ka(s,r,i||!r,n)}const Cn=[];function Cl(e,...t){Vt();const n=Cn.length?Cn[Cn.length-1].component:null,s=n&&n.appContext.config.warnHandler,r=La();if(s)Ye(s,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${dc(n,i.type)}>`).join(` +`),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(` +`,...Ba(r)),console.warn(...i)}Ut()}function La(){let e=Cn[Cn.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 Ba(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[` +`],...$a(n))}),t}function $a({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,r=` at <${dc(e.component,e.type,s)}`,i=">"+n;return e.props?[r,...Da(e.props),i]:[r+i]}function Da(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...Tl(s,e[s]))}),n.length>3&&t.push(" ..."),t}function Tl(e,t,n){return z(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:de(t)?(t=Tl(e,Y(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):W(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Y(t),n?t:[`${e}=`,t])}function Ye(e,t,n,s){let r;try{r=s?e(...s):e()}catch(i){jt(i,t,n)}return r}function ke(e,t,n,s){if(W(e)){const i=Ye(e,t,n,s);return i&&Zr(i)&&i.catch(o=>{jt(o,t,n)}),i}const r=[];for(let i=0;i>>1;Mn(Ae[s])et&&Ae.splice(t,1)}function wl(e,t,n,s){V(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?s+1:s))&&n.push(e),vl()}function ja(e){wl(e,_n,Tn,zt)}function ai(e){wl(e,ft,Sn,Jt)}function Ws(e,t=null){if(Tn.length){for(Nr=t,_n=[...new Set(Tn)],Tn.length=0,zt=0;zt<_n.length;zt++)_n[zt]();_n=null,zt=0,Nr=null,Ws(e,t)}}function Es(e){if(Ws(),Sn.length){const t=[...new Set(Sn)];if(Sn.length=0,ft){ft.push(...t);return}for(ft=t,ft.sort((n,s)=>Mn(n)-Mn(s)),Jt=0;Jte.id==null?1/0:e.id;function Nl(e){wr=!1,_s=!0,Ws(e),Ae.sort((n,s)=>Mn(n)-Mn(s));const t=Me;try{for(et=0;etYt.emit(r,...i)),rs=[]):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=>{Pl(i,t)}),setTimeout(()=>{Yt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,rs=[])},3e3)):rs=[]}function Ka(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Q;let r=n;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in s){const a=`${o==="modelValue"?"model":o}Modifiers`,{number:u,trim:d}=s[a]||Q;d&&(r=n.map(m=>m.trim())),u&&(r=n.map(mt))}let l,c=s[l=Gt(t)]||s[l=Gt(Te(t))];!c&&i&&(c=s[l=Gt(xe(t))]),c&&ke(c,e,6,r);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ke(f,e,6,r)}}function Ol(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!W(e)){const c=f=>{const a=Ol(f,t,!0);a&&(l=!0,ee(o,a))};!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):(V(i)?i.forEach(c=>o[c]=null):ee(o,i),s.set(e,o),o)}function qs(e,t){return!e||!$t(t)?!1:(t=t.slice(2).replace(/Once$/,""),Z(e,t[0].toLowerCase()+t.slice(1))||Z(e,xe(t))||Z(e,t))}let be=null,zs=null;function kn(e){const t=be;return be=e,zs=e&&e.type.__scopeId||null,t}function xa(e){zs=e}function Wa(){zs=null}const qa=e=>ui;function ui(e,t=be,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&kr(-1);const i=kn(t),o=e(...r);return kn(i),s._d&&kr(1),o};return s._n=!0,s._c=!0,s._d=!0,s}function ds(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:i,propsOptions:[o],slots:l,attrs:c,emit:f,render:a,renderCache:u,data:d,setupState:m,ctx:b,inheritAttrs:T}=e;let N,y;const h=kn(e);try{if(n.shapeFlag&4){const S=r||s;N=Re(a.call(S,S,u,i,m,d,b)),y=c}else{const S=t;N=Re(S.length>1?S(i,{attrs:c,slots:l,emit:f}):S(i,null)),y=t.props?c:Ja(c)}}catch(S){Pn.length=0,jt(S,e,1),N=le(Ee)}let C=N;if(y&&T!==!1){const S=Object.keys(y),{shapeFlag:F}=C;S.length&&F&7&&(o&&S.some(Jr)&&(y=Ya(y,o)),C=Ze(C,y))}return n.dirs&&(C=Ze(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),N=C,kn(h),N}function za(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||$t(n))&&((t||(t={}))[n]=e[n]);return t},Ya=(e,t)=>{const n={};for(const s in e)(!Jr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Za(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,f=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?lo(s,o,f):!!o;if(c&8){const a=t.dynamicProps;for(let u=0;ue.__isSuspense,Xa={name:"Suspense",__isSuspense:!0,process(e,t,n,s,r,i,o,l,c,f){e==null?Ga(t,n,s,r,i,o,l,c,f):eu(e,t,n,s,r,o,l,c,f)},hydrate:tu,create:di,normalize:nu},Qa=Xa;function Fn(e,t){const n=e.props&&e.props[t];W(n)&&n()}function Ga(e,t,n,s,r,i,o,l,c){const{p:f,o:{createElement:a}}=c,u=a("div"),d=e.suspense=di(e,r,s,t,u,n,i,o,l,c);f(null,d.pendingBranch=e.ssContent,u,null,s,d,i,o),d.deps>0?(Fn(e,"onPending"),Fn(e,"onFallback"),f(null,e.ssFallback,t,n,s,null,i,o),tn(d,e.ssFallback)):d.resolve()}function eu(e,t,n,s,r,i,o,l,{p:c,um:f,o:{createElement:a}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const d=t.ssContent,m=t.ssFallback,{activeBranch:b,pendingBranch:T,isInFallback:N,isHydrating:y}=u;if(T)u.pendingBranch=d,Je(d,T)?(c(T,d,u.hiddenContainer,null,r,u,i,o,l),u.deps<=0?u.resolve():N&&(c(b,m,n,s,r,null,i,o,l),tn(u,m))):(u.pendingId++,y?(u.isHydrating=!1,u.activeBranch=T):f(T,r,u),u.deps=0,u.effects.length=0,u.hiddenContainer=a("div"),N?(c(null,d,u.hiddenContainer,null,r,u,i,o,l),u.deps<=0?u.resolve():(c(b,m,n,s,r,null,i,o,l),tn(u,m))):b&&Je(d,b)?(c(b,d,n,s,r,u,i,o,l),u.resolve(!0)):(c(null,d,u.hiddenContainer,null,r,u,i,o,l),u.deps<=0&&u.resolve()));else if(b&&Je(d,b))c(b,d,n,s,r,u,i,o,l),tn(u,d);else if(Fn(t,"onPending"),u.pendingBranch=d,u.pendingId++,c(null,d,u.hiddenContainer,null,r,u,i,o,l),u.deps<=0)u.resolve();else{const{timeout:h,pendingId:C}=u;h>0?setTimeout(()=>{u.pendingId===C&&u.fallback(m)},h):h===0&&u.fallback(m)}}function di(e,t,n,s,r,i,o,l,c,f,a=!1){const{p:u,m:d,um:m,n:b,o:{parentNode:T,remove:N}}=f,y=mt(e.props&&e.props.timeout),h={vnode:e,parent:t,parentComponent:n,isSVG:o,container:s,hiddenContainer:r,anchor:i,deps:0,pendingId:0,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:a,isUnmounted:!1,effects:[],resolve(C=!1){const{vnode:S,activeBranch:F,pendingBranch:H,pendingId:v,effects:_,parentComponent:I,container:O}=h;if(h.isHydrating)h.isHydrating=!1;else if(!C){const j=F&&H.transition&&H.transition.mode==="out-in";j&&(F.transition.afterLeave=()=>{v===h.pendingId&&d(H,O,$,0)});let{anchor:$}=h;F&&($=b(F),m(F,I,h,!0)),j||d(H,O,$,0)}tn(h,H),h.pendingBranch=null,h.isInFallback=!1;let B=h.parent,A=!1;for(;B;){if(B.pendingBranch){B.effects.push(..._),A=!0;break}B=B.parent}A||ai(_),h.effects=[],Fn(S,"onResolve")},fallback(C){if(!h.pendingBranch)return;const{vnode:S,activeBranch:F,parentComponent:H,container:v,isSVG:_}=h;Fn(S,"onFallback");const I=b(F),O=()=>{!h.isInFallback||(u(null,C,v,I,H,null,_,l,c),tn(h,C))},B=C.transition&&C.transition.mode==="out-in";B&&(F.transition.afterLeave=O),h.isInFallback=!0,m(F,H,null,!0),B||O()},move(C,S,F){h.activeBranch&&d(h.activeBranch,C,S,F),h.container=C},next(){return h.activeBranch&&b(h.activeBranch)},registerDep(C,S){const F=!!h.pendingBranch;F&&h.deps++;const H=C.vnode.el;C.asyncDep.catch(v=>{jt(v,C,0)}).then(v=>{if(C.isUnmounted||h.isUnmounted||h.pendingId!==C.suspenseId)return;C.asyncResolved=!0;const{vnode:_}=C;Fr(C,v,!1),H&&(_.el=H);const I=!H&&C.subTree.el;S(C,_,T(H||C.subTree.el),H?null:b(C.subTree),h,o,c),I&&N(I),pi(C,_.el),F&&--h.deps===0&&h.resolve()})},unmount(C,S){h.isUnmounted=!0,h.activeBranch&&m(h.activeBranch,n,C,S),h.pendingBranch&&m(h.pendingBranch,n,C,S)}};return h}function tu(e,t,n,s,r,i,o,l,c){const f=t.suspense=di(t,s,n,e.parentNode,document.createElement("div"),null,r,i,o,l,!0),a=c(e,f.pendingBranch=t.ssContent,n,f,i,o);return f.deps===0&&f.resolve(),a}function nu(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=co(s?n.default:n),e.ssFallback=s?co(n.fallback):le(Ee)}function co(e){let t;if(W(e)){const n=Lt&&e._c;n&&(e._d=!1,Gs()),e=e(),n&&(e._d=!0,t=we,sc())}return V(e)&&(e=za(e)),e=Re(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Al(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):ai(e)}function tn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e,r=n.el=t.el;s&&s.subTree===n&&(s.vnode.el=r,pi(s,r))}function Il(e,t){if(pe){let n=pe.provides;const s=pe.parent&&pe.parent.provides;s===n&&(n=pe.provides=Object.create(s)),n[e]=t}}function vn(e,t,n=!1){const s=pe||be;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&W(t)?t.call(s.proxy):t}}function su(e,t){return Wn(e,null,t)}function Ml(e,t){return Wn(e,null,{flush:"post"})}function ru(e,t){return Wn(e,null,{flush:"sync"})}const fo={};function wn(e,t,n){return Wn(e,t,n)}function Wn(e,t,{immediate:n,deep:s,flush:r,onTrack:i,onTrigger:o}=Q){const l=pe;let c,f=!1,a=!1;if(de(e)?(c=()=>e.value,f=bs(e)):At(e)?(c=()=>e,s=!0):V(e)?(a=!0,f=e.some(y=>At(y)||bs(y)),c=()=>e.map(y=>{if(de(y))return y.value;if(At(y))return Nt(y);if(W(y))return Ye(y,l,2)})):W(e)?t?c=()=>Ye(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return u&&u(),ke(e,l,3,[d])}:c=Me,t&&s){const y=c;c=()=>Nt(y())}let u,d=y=>{u=N.onStop=()=>{Ye(y,l,4)}};if(ln)return d=Me,t?n&&ke(t,l,3,[c(),a?[]:void 0,d]):c(),Me;let m=a?[]:fo;const b=()=>{if(!!N.active)if(t){const y=N.run();(s||f||(a?y.some((h,C)=>nn(h,m[C])):nn(y,m)))&&(u&&u(),ke(t,l,3,[y,m===fo?void 0:m,d]),m=y)}else N.run()};b.allowRecurse=!!t;let T;r==="sync"?T=b:r==="post"?T=()=>me(b,l&&l.suspense):T=()=>ja(b);const N=new xn(c,T);return t?n?b():m=N.run():r==="post"?me(N.run.bind(N),l&&l.suspense):N.run(),()=>{N.stop(),l&&l.scope&&Yr(l.scope.effects,N)}}function iu(e,t,n){const s=this.proxy,r=z(e)?e.includes(".")?kl(s,e):()=>s[e]:e.bind(s,s);let i;W(t)?i=t:(i=t.handler,n=t);const o=pe;_t(this);const l=Wn(r,i.bind(s),n);return o?_t(o):dt(),l}function kl(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{Nt(n,t)});else if(sl(e))for(const n in e)Nt(e[n],t);return e}function hi(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return zn(()=>{e.isMounted=!0}),Xs(()=>{e.isUnmounting=!0}),e}const De=[Function,Array],ou={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:De,onEnter:De,onAfterEnter:De,onEnterCancelled:De,onBeforeLeave:De,onLeave:De,onAfterLeave:De,onLeaveCancelled:De,onBeforeAppear:De,onAppear:De,onAfterAppear:De,onAppearCancelled:De},setup(e,{slots:t}){const n=Ct(),s=hi();let r;return()=>{const i=t.default&&Js(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const T of i)if(T.type!==Ee){o=T;break}}const l=Y(e),{mode:c}=l;if(s.isLeaving)return ur(o);const f=ao(o);if(!f)return ur(o);const a=rn(f,l,s,n);Ft(f,a);const u=n.subTree,d=u&&ao(u);let m=!1;const{getTransitionKey:b}=f.type;if(b){const T=b();r===void 0?r=T:T!==r&&(r=T,m=!0)}if(d&&d.type!==Ee&&(!Je(f,d)||m)){const T=rn(d,l,s,n);if(Ft(d,T),c==="out-in")return s.isLeaving=!0,T.afterLeave=()=>{s.isLeaving=!1,n.update()},ur(o);c==="in-out"&&f.type!==Ee&&(T.delayLeave=(N,y,h)=>{const C=Fl(s,d);C[String(d.key)]=d,N._leaveCb=()=>{y(),N._leaveCb=void 0,delete a.delayedLeave},a.delayedLeave=h})}return o}}},gi=ou;function Fl(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 rn(e,t,n,s){const{appear:r,mode:i,persisted:o=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:f,onEnterCancelled:a,onBeforeLeave:u,onLeave:d,onAfterLeave:m,onLeaveCancelled:b,onBeforeAppear:T,onAppear:N,onAfterAppear:y,onAppearCancelled:h}=t,C=String(e.key),S=Fl(n,e),F=(_,I)=>{_&&ke(_,s,9,I)},H=(_,I)=>{const O=I[1];F(_,I),V(_)?_.every(B=>B.length<=1)&&O():_.length<=1&&O()},v={mode:i,persisted:o,beforeEnter(_){let I=l;if(!n.isMounted)if(r)I=T||l;else return;_._leaveCb&&_._leaveCb(!0);const O=S[C];O&&Je(e,O)&&O.el._leaveCb&&O.el._leaveCb(),F(I,[_])},enter(_){let I=c,O=f,B=a;if(!n.isMounted)if(r)I=N||c,O=y||f,B=h||a;else return;let A=!1;const j=_._enterCb=$=>{A||(A=!0,$?F(B,[_]):F(O,[_]),v.delayedLeave&&v.delayedLeave(),_._enterCb=void 0)};I?H(I,[_,j]):j()},leave(_,I){const O=String(e.key);if(_._enterCb&&_._enterCb(!0),n.isUnmounting)return I();F(u,[_]);let B=!1;const A=_._leaveCb=j=>{B||(B=!0,I(),j?F(b,[_]):F(m,[_]),_._leaveCb=void 0,S[O]===e&&delete S[O])};S[O]=e,d?H(d,[_,A]):A()},clone(_){return rn(_,t,n,s)}};return v}function ur(e){if(qn(e))return e=Ze(e),e.children=null,e}function ao(e){return qn(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 Js(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;function lu(e){W(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,timeout:i,suspensible:o=!0,onError:l}=e;let c=null,f,a=0;const u=()=>(a++,c=null,d()),d=()=>{let m;return c||(m=c=t().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),l)return new Promise((T,N)=>{l(b,()=>T(u()),()=>N(b),a+1)});throw b}).then(b=>m!==c&&c?c:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),f=b,b)))};return mi({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return f},setup(){const m=pe;if(f)return()=>pr(f,m);const b=h=>{c=null,jt(h,m,13,!s)};if(o&&m.suspense||ln)return d().then(h=>()=>pr(h,m)).catch(h=>(b(h),()=>s?le(s,{error:h}):null));const T=ps(!1),N=ps(),y=ps(!!r);return r&&setTimeout(()=>{y.value=!1},r),i!=null&&setTimeout(()=>{if(!T.value&&!N.value){const h=new Error(`Async component timed out after ${i}ms.`);b(h),N.value=h}},i),d().then(()=>{T.value=!0,m.parent&&qn(m.parent.vnode)&&fi(m.parent.update)}).catch(h=>{b(h),N.value=h}),()=>{if(T.value&&f)return pr(f,m);if(N.value&&s)return le(s,{error:N.value});if(n&&!y.value)return le(n)}}})}function pr(e,{vnode:{ref:t,props:n,children:s,shapeFlag:r},parent:i}){const o=le(e,n,s);return o.ref=t,o}const qn=e=>e.type.__isKeepAlive,cu={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ct(),s=n.ctx;if(!s.renderer)return()=>{const h=t.default&&t.default();return h&&h.length===1?h[0]:h};const r=new Map,i=new Set;let o=null;const l=n.suspense,{renderer:{p:c,m:f,um:a,o:{createElement:u}}}=s,d=u("div");s.activate=(h,C,S,F,H)=>{const v=h.component;f(h,C,S,0,l),c(v.vnode,h,C,S,v,l,F,h.slotScopeIds,H),me(()=>{v.isDeactivated=!1,v.a&&en(v.a);const _=h.props&&h.props.onVnodeMounted;_&&ve(_,v.parent,h)},l)},s.deactivate=h=>{const C=h.component;f(h,d,null,1,l),me(()=>{C.da&&en(C.da);const S=h.props&&h.props.onVnodeUnmounted;S&&ve(S,C.parent,h),C.isDeactivated=!0},l)};function m(h){dr(h),a(h,n,l,!0)}function b(h){r.forEach((C,S)=>{const F=ws(C.type);F&&(!h||!h(F))&&T(S)})}function T(h){const C=r.get(h);!o||C.type!==o.type?m(C):o&&dr(o),r.delete(h),i.delete(h)}wn(()=>[e.include,e.exclude],([h,C])=>{h&&b(S=>En(h,S)),C&&b(S=>!En(C,S))},{flush:"post",deep:!0});let N=null;const y=()=>{N!=null&&r.set(N,hr(n.subTree))};return zn(y),Zs(y),Xs(()=>{r.forEach(h=>{const{subTree:C,suspense:S}=n,F=hr(C);if(h.type===F.type){dr(F);const H=F.component.da;H&&me(H,S);return}m(h)})}),()=>{if(N=null,!t.default)return null;const h=t.default(),C=h[0];if(h.length>1)return o=null,h;if(!bt(C)||!(C.shapeFlag&4)&&!(C.shapeFlag&128))return o=null,C;let S=hr(C);const F=S.type,H=ws(It(S)?S.type.__asyncResolved||{}:F),{include:v,exclude:_,max:I}=e;if(v&&(!H||!En(v,H))||_&&H&&En(_,H))return o=S,C;const O=S.key==null?F:S.key,B=r.get(O);return S.el&&(S=Ze(S),C.shapeFlag&128&&(C.ssContent=S)),N=O,B?(S.el=B.el,S.component=B.component,S.transition&&Ft(S,S.transition),S.shapeFlag|=512,i.delete(O),i.add(O)):(i.add(O),I&&i.size>parseInt(I,10)&&T(i.values().next().value)),S.shapeFlag|=256,o=S,Rl(C.type)?C:S}}},fu=cu;function En(e,t){return V(e)?e.some(n=>En(n,t)):z(e)?e.split(",").includes(t):e.test?e.test(t):!1}function Ll(e,t){$l(e,"a",t)}function Bl(e,t){$l(e,"da",t)}function $l(e,t,n=pe){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ys(t,s,n),n){let r=n.parent;for(;r&&r.parent;)qn(r.parent.vnode)&&au(s,t,n,r),r=r.parent}}function au(e,t,n,s){const r=Ys(t,e,s,!0);Qs(()=>{Yr(s[t],r)},n)}function dr(e){let t=e.shapeFlag;t&256&&(t-=256),t&512&&(t-=512),e.shapeFlag=t}function hr(e){return e.shapeFlag&128?e.ssContent:e}function Ys(e,t,n=pe,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Vt(),_t(n);const l=ke(t,n,e,o);return dt(),Ut(),l});return s?r.unshift(i):r.push(i),i}}const rt=e=>(t,n=pe)=>(!ln||e==="sp")&&Ys(e,t,n),Dl=rt("bm"),zn=rt("m"),Hl=rt("bu"),Zs=rt("u"),Xs=rt("bum"),Qs=rt("um"),Vl=rt("sp"),Ul=rt("rtg"),jl=rt("rtc");function Kl(e,t=pe){Ys("ec",e,t)}function uu(e,t){const n=be;if(n===null)return e;const s=tr(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;it(o,l,void 0,i&&i[l]));else{const o=Object.keys(e);r=new Array(o.length);for(let l=0,c=o.length;lbt(t)?!(t.type===Ee||t.type===ye&&!Wl(t.children)):!0)?e:null}function _u(e){const t={};for(const n in e)t[Gt(n)]=e[n];return t}const Pr=e=>e?fc(e)?tr(e)||e.proxy:Pr(e.parent):null,Cs=ee(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=>Pr(e.parent),$root:e=>Pr(e.root),$emit:e=>e.emit,$options:e=>zl(e),$forceUpdate:e=>e.f||(e.f=()=>fi(e.update)),$nextTick:e=>e.n||(e.n=ci.bind(e.proxy)),$watch:e=>iu.bind(e)}),Or={get({_:e},t){const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;let f;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(s!==Q&&Z(s,t))return o[t]=1,s[t];if(r!==Q&&Z(r,t))return o[t]=2,r[t];if((f=e.propsOptions[0])&&Z(f,t))return o[t]=3,i[t];if(n!==Q&&Z(n,t))return o[t]=4,n[t];Rr&&(o[t]=0)}}const a=Cs[t];let u,d;if(a)return t==="$attrs"&&Be(e,"get",t),a(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==Q&&Z(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,Z(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return r!==Q&&Z(r,t)?(r[t]=n,!0):s!==Q&&Z(s,t)?(s[t]=n,!0):Z(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!==Q&&Z(e,o)||t!==Q&&Z(t,o)||(l=i[0])&&Z(l,o)||Z(s,o)||Z(Cs,o)||Z(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Z(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Eu=ee({},Or,{get(e,t){if(t!==Symbol.unscopables)return Or.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Nf(t)}});let Rr=!0;function Cu(e){const t=zl(e),n=e.proxy,s=e.ctx;Rr=!1,t.beforeCreate&&po(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:f,created:a,beforeMount:u,mounted:d,beforeUpdate:m,updated:b,activated:T,deactivated:N,beforeDestroy:y,beforeUnmount:h,destroyed:C,unmounted:S,render:F,renderTracked:H,renderTriggered:v,errorCaptured:_,serverPrefetch:I,expose:O,inheritAttrs:B,components:A,directives:j,filters:$}=t;if(f&&Tu(f,s,null,e.appContext.config.unwrapInjectedRef),o)for(const ie in o){const te=o[ie];W(te)&&(s[ie]=te.bind(n))}if(r){const ie=r.call(n,n);fe(ie)&&(e.data=js(ie))}if(Rr=!0,i)for(const ie in i){const te=i[ie],Xe=W(te)?te.bind(n,n):W(te.get)?te.get.bind(n,n):Me,cr=!W(te)&&W(te.set)?te.set.bind(n):Me,dn=hc({get:Xe,set:cr});Object.defineProperty(s,ie,{enumerable:!0,configurable:!0,get:()=>dn.value,set:Kt=>dn.value=Kt})}if(l)for(const ie in l)ql(l[ie],s,n,ie);if(c){const ie=W(c)?c.call(n):c;Reflect.ownKeys(ie).forEach(te=>{Il(te,ie[te])})}a&&po(a,e,"c");function G(ie,te){V(te)?te.forEach(Xe=>ie(Xe.bind(n))):te&&ie(te.bind(n))}if(G(Dl,u),G(zn,d),G(Hl,m),G(Zs,b),G(Ll,T),G(Bl,N),G(Kl,_),G(jl,H),G(Ul,v),G(Xs,h),G(Qs,S),G(Vl,I),V(O))if(O.length){const ie=e.exposed||(e.exposed={});O.forEach(te=>{Object.defineProperty(ie,te,{get:()=>n[te],set:Xe=>n[te]=Xe})})}else e.exposed||(e.exposed={});F&&e.render===Me&&(e.render=F),B!=null&&(e.inheritAttrs=B),A&&(e.components=A),j&&(e.directives=j)}function Tu(e,t,n=Me,s=!1){V(e)&&(e=Ar(e));for(const r in e){const i=e[r];let o;fe(i)?"default"in i?o=vn(i.from||r,i.default,!0):o=vn(i.from||r):o=vn(i),de(o)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[r]=o}}function po(e,t,n){ke(V(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function ql(e,t,n,s){const r=s.includes(".")?kl(n,s):()=>n[s];if(z(e)){const i=t[e];W(i)&&wn(r,i)}else if(W(e))wn(r,e.bind(n));else if(fe(e))if(V(e))e.forEach(i=>ql(i,t,n,s));else{const i=W(e.handler)?e.handler.bind(n):t[e.handler];W(i)&&wn(r,i,e)}}function zl(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(f=>Ts(c,f,o,!0)),Ts(c,t,o)),i.set(t,c),c}function Ts(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Ts(e,i,n,!0),r&&r.forEach(o=>Ts(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=Su[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Su={data:ho,props:vt,emits:vt,methods:vt,computed:vt,beforeCreate:Se,created:Se,beforeMount:Se,mounted:Se,beforeUpdate:Se,updated:Se,beforeDestroy:Se,beforeUnmount:Se,destroyed:Se,unmounted:Se,activated:Se,deactivated:Se,errorCaptured:Se,serverPrefetch:Se,components:vt,directives:vt,watch:wu,provide:ho,inject:vu};function ho(e,t){return t?e?function(){return ee(W(e)?e.call(this,this):e,W(t)?t.call(this,this):t)}:t:e}function vu(e,t){return vt(Ar(e),Ar(t))}function Ar(e){if(V(e)){const t={};for(let n=0;n0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let u=0;u{c=!0;const[d,m]=Yl(u,t,!0);ee(o,d),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!c)return s.set(e,Xt),Xt;if(V(i))for(let a=0;a-1,m[1]=T<0||b-1||Z(m,"default"))&&l.push(u)}}}const f=[o,l];return s.set(e,f),f}function go(e){return e[0]!=="$"}function mo(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function yo(e,t){return mo(e)===mo(t)}function bo(e,t){return V(t)?t.findIndex(n=>yo(n,e)):W(t)&&yo(t,e)?0:-1}const Zl=e=>e[0]==="_"||e==="$stable",_i=e=>V(e)?e.map(Re):[Re(e)],Ou=(e,t,n)=>{if(t._n)return t;const s=ui((...r)=>_i(t(...r)),n);return s._c=!1,s},Xl=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Zl(r))continue;const i=e[r];if(W(i))t[r]=Ou(r,i,s);else if(i!=null){const o=_i(i);t[r]=()=>o}}},Ql=(e,t)=>{const n=_i(t);e.slots.default=()=>n},Ru=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Y(t),ys(t,"_",n)):Xl(t,e.slots={})}else e.slots={},t&&Ql(e,t);ys(e.slots,er,1)},Au=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=Q;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(ee(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Xl(t,r)),o=t}else t&&(Ql(e,t),o={default:1});if(i)for(const l in r)!Zl(l)&&!(l in o)&&delete r[l]};function Gl(){return{app:null,config:{isNativeTag:us,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Iu=0;function Mu(e,t){return function(s,r=null){W(s)||(s=Object.assign({},s)),r!=null&&!fe(r)&&(r=null);const i=Gl(),o=new Set;let l=!1;const c=i.app={_uid:Iu++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:_c,get config(){return i.config},set config(f){},use(f,...a){return o.has(f)||(f&&W(f.install)?(o.add(f),f.install(c,...a)):W(f)&&(o.add(f),f(c,...a))),c},mixin(f){return i.mixins.includes(f)||i.mixins.push(f),c},component(f,a){return a?(i.components[f]=a,c):i.components[f]},directive(f,a){return a?(i.directives[f]=a,c):i.directives[f]},mount(f,a,u){if(!l){const d=le(s,r);return d.appContext=i,a&&t?t(d,f):e(d,f,u),l=!0,c._container=f,f.__vue_app__=c,tr(d.component)||d.component.proxy}},unmount(){l&&(e(null,c._container),delete c._container.__vue_app__)},provide(f,a){return i.provides[f]=a,c}};return c}}function Ss(e,t,n,s,r=!1){if(V(e)){e.forEach((d,m)=>Ss(d,t&&(V(t)?t[m]:t),n,s,r));return}if(It(s)&&!r)return;const i=s.shapeFlag&4?tr(s.component)||s.component.proxy:s.el,o=r?null:i,{i:l,r:c}=e,f=t&&t.r,a=l.refs===Q?l.refs={}:l.refs,u=l.setupState;if(f!=null&&f!==c&&(z(f)?(a[f]=null,Z(u,f)&&(u[f]=null)):de(f)&&(f.value=null)),W(c))Ye(c,l,12,[o,a]);else{const d=z(c),m=de(c);if(d||m){const b=()=>{if(e.f){const T=d?a[c]:c.value;r?V(T)&&Yr(T,i):V(T)?T.includes(i)||T.push(i):d?(a[c]=[i],Z(u,c)&&(u[c]=a[c])):(c.value=[i],e.k&&(a[e.k]=c.value))}else d?(a[c]=o,Z(u,c)&&(u[c]=o)):m&&(c.value=o,e.k&&(a[e.k]=o))};o?(b.id=-1,me(b,n)):b()}}}let lt=!1;const is=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",os=e=>e.nodeType===8;function ku(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:i,parentNode:o,remove:l,insert:c,createComment:f}}=e,a=(y,h)=>{if(!h.hasChildNodes()){n(null,y,h),Es(),h._vnode=y;return}lt=!1,u(h.firstChild,y,null,null,null),Es(),h._vnode=y,lt&&console.error("Hydration completed but contains mismatches.")},u=(y,h,C,S,F,H=!1)=>{const v=os(y)&&y.data==="[",_=()=>T(y,h,C,S,F,v),{type:I,ref:O,shapeFlag:B,patchFlag:A}=h,j=y.nodeType;h.el=y,A===-2&&(H=!1,h.dynamicChildren=null);let $=null;switch(I){case on:j!==3?h.children===""?(c(h.el=r(""),o(y),y),$=y):$=_():(y.data!==h.children&&(lt=!0,y.data=h.children),$=i(y));break;case Ee:j!==8||v?$=_():$=i(y);break;case Mt:if(j!==1&&j!==3)$=_();else{$=y;const ge=!h.children.length;for(let G=0;G{H=H||!!h.dynamicChildren;const{type:v,props:_,patchFlag:I,shapeFlag:O,dirs:B}=h,A=v==="input"&&B||v==="option";if(A||I!==-1){if(B&&ze(h,null,C,"created"),_)if(A||!H||I&48)for(const $ in _)(A&&$.endsWith("value")||$t($)&&!Ot($))&&s(y,$,null,_[$],!1,void 0,C);else _.onClick&&s(y,"onClick",null,_.onClick,!1,void 0,C);let j;if((j=_&&_.onVnodeBeforeMount)&&ve(j,C,h),B&&ze(h,null,C,"beforeMount"),((j=_&&_.onVnodeMounted)||B)&&Al(()=>{j&&ve(j,C,h),B&&ze(h,null,C,"mounted")},S),O&16&&!(_&&(_.innerHTML||_.textContent))){let $=m(y.firstChild,h,y,C,S,F,H);for(;$;){lt=!0;const ge=$;$=$.nextSibling,l(ge)}}else O&8&&y.textContent!==h.children&&(lt=!0,y.textContent=h.children)}return y.nextSibling},m=(y,h,C,S,F,H,v)=>{v=v||!!h.dynamicChildren;const _=h.children,I=_.length;for(let O=0;O{const{slotScopeIds:v}=h;v&&(F=F?F.concat(v):v);const _=o(y),I=m(i(y),h,_,C,S,F,H);return I&&os(I)&&I.data==="]"?i(h.anchor=I):(lt=!0,c(h.anchor=f("]"),_,I),I)},T=(y,h,C,S,F,H)=>{if(lt=!0,h.el=null,H){const I=N(y);for(;;){const O=i(y);if(O&&O!==I)l(O);else break}}const v=i(y),_=o(y);return l(y),n(null,h,_,v,C,S,is(_),F),v},N=y=>{let h=0;for(;y;)if(y=i(y),y&&os(y)&&(y.data==="["&&h++,y.data==="]")){if(h===0)return i(y);h--}return y};return[a,u]}const me=Al;function ec(e){return nc(e)}function tc(e){return nc(e,ku)}function nc(e,t){const n=qf();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:f,setElementText:a,parentNode:u,nextSibling:d,setScopeId:m=Me,cloneNode:b,insertStaticContent:T}=e,N=(p,g,E,P=null,w=null,k=null,D=!1,M=null,L=!!g.dynamicChildren)=>{if(p===g)return;p&&!Je(p,g)&&(P=Qn(p),it(p,w,k,!0),p=null),g.patchFlag===-2&&(L=!1,g.dynamicChildren=null);const{type:R,ref:K,shapeFlag:U}=g;switch(R){case on:y(p,g,E,P);break;case Ee:h(p,g,E,P);break;case Mt:p==null&&C(g,E,P,D);break;case ye:j(p,g,E,P,w,k,D,M,L);break;default:U&1?H(p,g,E,P,w,k,D,M,L):U&6?$(p,g,E,P,w,k,D,M,L):(U&64||U&128)&&R.process(p,g,E,P,w,k,D,M,L,xt)}K!=null&&w&&Ss(K,p&&p.ref,k,g||p,!g)},y=(p,g,E,P)=>{if(p==null)s(g.el=l(g.children),E,P);else{const w=g.el=p.el;g.children!==p.children&&f(w,g.children)}},h=(p,g,E,P)=>{p==null?s(g.el=c(g.children||""),E,P):g.el=p.el},C=(p,g,E,P)=>{[p.el,p.anchor]=T(p.children,g,E,P,p.el,p.anchor)},S=({el:p,anchor:g},E,P)=>{let w;for(;p&&p!==g;)w=d(p),s(p,E,P),p=w;s(g,E,P)},F=({el:p,anchor:g})=>{let E;for(;p&&p!==g;)E=d(p),r(p),p=E;r(g)},H=(p,g,E,P,w,k,D,M,L)=>{D=D||g.type==="svg",p==null?v(g,E,P,w,k,D,M,L):O(p,g,w,k,D,M,L)},v=(p,g,E,P,w,k,D,M)=>{let L,R;const{type:K,props:U,shapeFlag:x,transition:q,patchFlag:X,dirs:se}=p;if(p.el&&b!==void 0&&X===-1)L=p.el=b(p.el);else{if(L=p.el=o(p.type,k,U&&U.is,U),x&8?a(L,p.children):x&16&&I(p.children,L,null,P,w,k&&K!=="foreignObject",D,M),se&&ze(p,null,P,"created"),U){for(const oe in U)oe!=="value"&&!Ot(oe)&&i(L,oe,null,U[oe],k,p.children,P,w,Qe);"value"in U&&i(L,"value",null,U.value),(R=U.onVnodeBeforeMount)&&ve(R,P,p)}_(L,p,p.scopeId,D,P)}se&&ze(p,null,P,"beforeMount");const re=(!w||w&&!w.pendingBranch)&&q&&!q.persisted;re&&q.beforeEnter(L),s(L,g,E),((R=U&&U.onVnodeMounted)||re||se)&&me(()=>{R&&ve(R,P,p),re&&q.enter(L),se&&ze(p,null,P,"mounted")},w)},_=(p,g,E,P,w)=>{if(E&&m(p,E),P)for(let k=0;k{for(let R=L;R{const M=g.el=p.el;let{patchFlag:L,dynamicChildren:R,dirs:K}=g;L|=p.patchFlag&16;const U=p.props||Q,x=g.props||Q;let q;E&&Tt(E,!1),(q=x.onVnodeBeforeUpdate)&&ve(q,E,g,p),K&&ze(g,p,E,"beforeUpdate"),E&&Tt(E,!0);const X=w&&g.type!=="foreignObject";if(R?B(p.dynamicChildren,R,M,E,P,X,k):D||Xe(p,g,M,null,E,P,X,k,!1),L>0){if(L&16)A(M,g,U,x,E,P,w);else if(L&2&&U.class!==x.class&&i(M,"class",null,x.class,w),L&4&&i(M,"style",U.style,x.style,w),L&8){const se=g.dynamicProps;for(let re=0;re{q&&ve(q,E,g,p),K&&ze(g,p,E,"updated")},P)},B=(p,g,E,P,w,k,D)=>{for(let M=0;M{if(E!==P){for(const M in P){if(Ot(M))continue;const L=P[M],R=E[M];L!==R&&M!=="value"&&i(p,M,R,L,D,g.children,w,k,Qe)}if(E!==Q)for(const M in E)!Ot(M)&&!(M in P)&&i(p,M,E[M],null,D,g.children,w,k,Qe);"value"in P&&i(p,"value",E.value,P.value)}},j=(p,g,E,P,w,k,D,M,L)=>{const R=g.el=p?p.el:l(""),K=g.anchor=p?p.anchor:l("");let{patchFlag:U,dynamicChildren:x,slotScopeIds:q}=g;q&&(M=M?M.concat(q):q),p==null?(s(R,E,P),s(K,E,P),I(g.children,E,K,w,k,D,M,L)):U>0&&U&64&&x&&p.dynamicChildren?(B(p.dynamicChildren,x,E,w,k,D,M),(g.key!=null||w&&g===w.subTree)&&Ei(p,g,!0)):Xe(p,g,E,K,w,k,D,M,L)},$=(p,g,E,P,w,k,D,M,L)=>{g.slotScopeIds=M,p==null?g.shapeFlag&512?w.ctx.activate(g,E,P,D,L):ge(g,E,P,w,k,D,L):G(p,g,L)},ge=(p,g,E,P,w,k,D)=>{const M=p.component=cc(p,P,w);if(qn(p)&&(M.ctx.renderer=xt),ac(M),M.asyncDep){if(w&&w.registerDep(M,ie),!p.el){const L=M.subTree=le(Ee);h(null,L,g,E)}return}ie(M,p,g,E,w,k,D)},G=(p,g,E)=>{const P=g.component=p.component;if(Za(p,g,E))if(P.asyncDep&&!P.asyncResolved){te(P,g,E);return}else P.next=g,Ua(P.update),P.update();else g.el=p.el,P.vnode=g},ie=(p,g,E,P,w,k,D)=>{const M=()=>{if(p.isMounted){let{next:K,bu:U,u:x,parent:q,vnode:X}=p,se=K,re;Tt(p,!1),K?(K.el=X.el,te(p,K,D)):K=X,U&&en(U),(re=K.props&&K.props.onVnodeBeforeUpdate)&&ve(re,q,K,X),Tt(p,!0);const oe=ds(p),je=p.subTree;p.subTree=oe,N(je,oe,u(je.el),Qn(je),p,w,k),K.el=oe.el,se===null&&pi(p,oe.el),x&&me(x,w),(re=K.props&&K.props.onVnodeUpdated)&&me(()=>ve(re,q,K,X),w)}else{let K;const{el:U,props:x}=g,{bm:q,m:X,parent:se}=p,re=It(g);if(Tt(p,!1),q&&en(q),!re&&(K=x&&x.onVnodeBeforeMount)&&ve(K,se,g),Tt(p,!0),U&&ar){const oe=()=>{p.subTree=ds(p),ar(U,p.subTree,p,w,null)};re?g.type.__asyncLoader().then(()=>!p.isUnmounted&&oe()):oe()}else{const oe=p.subTree=ds(p);N(null,oe,E,P,p,w,k),g.el=oe.el}if(X&&me(X,w),!re&&(K=x&&x.onVnodeMounted)){const oe=g;me(()=>ve(K,se,oe),w)}(g.shapeFlag&256||se&&It(se.vnode)&&se.vnode.shapeFlag&256)&&p.a&&me(p.a,w),p.isMounted=!0,g=E=P=null}},L=p.effect=new xn(M,()=>fi(R),p.scope),R=p.update=()=>L.run();R.id=p.uid,Tt(p,!0),R()},te=(p,g,E)=>{g.component=p;const P=p.vnode.props;p.vnode=g,p.next=null,Pu(p,g.props,P,E),Au(p,g.children,E),Vt(),Ws(void 0,p.update),Ut()},Xe=(p,g,E,P,w,k,D,M,L=!1)=>{const R=p&&p.children,K=p?p.shapeFlag:0,U=g.children,{patchFlag:x,shapeFlag:q}=g;if(x>0){if(x&128){dn(R,U,E,P,w,k,D,M,L);return}else if(x&256){cr(R,U,E,P,w,k,D,M,L);return}}q&8?(K&16&&Qe(R,w,k),U!==R&&a(E,U)):K&16?q&16?dn(R,U,E,P,w,k,D,M,L):Qe(R,w,k,!0):(K&8&&a(E,""),q&16&&I(U,E,P,w,k,D,M,L))},cr=(p,g,E,P,w,k,D,M,L)=>{p=p||Xt,g=g||Xt;const R=p.length,K=g.length,U=Math.min(R,K);let x;for(x=0;xK?Qe(p,w,k,!0,!1,U):I(g,E,P,w,k,D,M,L,U)},dn=(p,g,E,P,w,k,D,M,L)=>{let R=0;const K=g.length;let U=p.length-1,x=K-1;for(;R<=U&&R<=x;){const q=p[R],X=g[R]=L?ut(g[R]):Re(g[R]);if(Je(q,X))N(q,X,E,null,w,k,D,M,L);else break;R++}for(;R<=U&&R<=x;){const q=p[U],X=g[x]=L?ut(g[x]):Re(g[x]);if(Je(q,X))N(q,X,E,null,w,k,D,M,L);else break;U--,x--}if(R>U){if(R<=x){const q=x+1,X=qx)for(;R<=U;)it(p[R],w,k,!0),R++;else{const q=R,X=R,se=new Map;for(R=X;R<=x;R++){const Pe=g[R]=L?ut(g[R]):Re(g[R]);Pe.key!=null&&se.set(Pe.key,R)}let re,oe=0;const je=x-X+1;let Wt=!1,Yi=0;const hn=new Array(je);for(R=0;R=je){it(Pe,w,k,!0);continue}let qe;if(Pe.key!=null)qe=se.get(Pe.key);else for(re=X;re<=x;re++)if(hn[re-X]===0&&Je(Pe,g[re])){qe=re;break}qe===void 0?it(Pe,w,k,!0):(hn[qe-X]=R+1,qe>=Yi?Yi=qe:Wt=!0,N(Pe,g[qe],E,null,w,k,D,M,L),oe++)}const Zi=Wt?Fu(hn):Xt;for(re=Zi.length-1,R=je-1;R>=0;R--){const Pe=X+R,qe=g[Pe],Xi=Pe+1{const{el:k,type:D,transition:M,children:L,shapeFlag:R}=p;if(R&6){Kt(p.component.subTree,g,E,P);return}if(R&128){p.suspense.move(g,E,P);return}if(R&64){D.move(p,g,E,xt);return}if(D===ye){s(k,g,E);for(let U=0;UM.enter(k),w);else{const{leave:U,delayLeave:x,afterLeave:q}=M,X=()=>s(k,g,E),se=()=>{U(k,()=>{X(),q&&q()})};x?x(k,X,se):se()}else s(k,g,E)},it=(p,g,E,P=!1,w=!1)=>{const{type:k,props:D,ref:M,children:L,dynamicChildren:R,shapeFlag:K,patchFlag:U,dirs:x}=p;if(M!=null&&Ss(M,null,E,p,!0),K&256){g.ctx.deactivate(p);return}const q=K&1&&x,X=!It(p);let se;if(X&&(se=D&&D.onVnodeBeforeUnmount)&&ve(se,g,p),K&6)vf(p.component,E,P);else{if(K&128){p.suspense.unmount(E,P);return}q&&ze(p,null,g,"beforeUnmount"),K&64?p.type.remove(p,g,E,w,xt,P):R&&(k!==ye||U>0&&U&64)?Qe(R,g,E,!1,!0):(k===ye&&U&384||!w&&K&16)&&Qe(L,g,E),P&&zi(p)}(X&&(se=D&&D.onVnodeUnmounted)||q)&&me(()=>{se&&ve(se,g,p),q&&ze(p,null,g,"unmounted")},E)},zi=p=>{const{type:g,el:E,anchor:P,transition:w}=p;if(g===ye){Sf(E,P);return}if(g===Mt){F(p);return}const k=()=>{r(E),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(p.shapeFlag&1&&w&&!w.persisted){const{leave:D,delayLeave:M}=w,L=()=>D(E,k);M?M(p.el,k,L):L()}else k()},Sf=(p,g)=>{let E;for(;p!==g;)E=d(p),r(p),p=E;r(g)},vf=(p,g,E)=>{const{bum:P,scope:w,update:k,subTree:D,um:M}=p;P&&en(P),w.stop(),k&&(k.active=!1,it(D,p,g,E)),M&&me(M,g),me(()=>{p.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},Qe=(p,g,E,P=!1,w=!1,k=0)=>{for(let D=k;Dp.shapeFlag&6?Qn(p.component.subTree):p.shapeFlag&128?p.suspense.next():d(p.anchor||p.el),Ji=(p,g,E)=>{p==null?g._vnode&&it(g._vnode,null,null,!0):N(g._vnode||null,p,g,null,null,null,E),Es(),g._vnode=p},xt={p:N,um:it,m:Kt,r:zi,mt:ge,mc:I,pc:Xe,pbc:B,n:Qn,o:e};let fr,ar;return t&&([fr,ar]=t(xt)),{render:Ji,hydrate:fr,createApp:Mu(Ji,fr)}}function Tt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ei(e,t,n=!1){const s=e.children,r=t.children;if(V(s)&&V(r))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const Lu=e=>e.__isTeleport,Nn=e=>e&&(e.disabled||e.disabled===""),_o=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Mr=(e,t)=>{const n=e&&e.to;return z(n)?t?t(n):null:n},Bu={__isTeleport:!0,process(e,t,n,s,r,i,o,l,c,f){const{mc:a,pc:u,pbc:d,o:{insert:m,querySelector:b,createText:T,createComment:N}}=f,y=Nn(t.props);let{shapeFlag:h,children:C,dynamicChildren:S}=t;if(e==null){const F=t.el=T(""),H=t.anchor=T("");m(F,n,s),m(H,n,s);const v=t.target=Mr(t.props,b),_=t.targetAnchor=T("");v&&(m(_,v),o=o||_o(v));const I=(O,B)=>{h&16&&a(C,O,B,r,i,o,l,c)};y?I(n,H):v&&I(v,_)}else{t.el=e.el;const F=t.anchor=e.anchor,H=t.target=e.target,v=t.targetAnchor=e.targetAnchor,_=Nn(e.props),I=_?n:H,O=_?F:v;if(o=o||_o(H),S?(d(e.dynamicChildren,S,I,r,i,o,l),Ei(e,t,!0)):c||u(e,t,I,O,r,i,o,l,!1),y)_||ls(t,n,F,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=Mr(t.props,b);B&&ls(t,B,null,f,0)}else _&&ls(t,H,v,f,1)}},remove(e,t,n,s,{um:r,o:{remove:i}},o){const{shapeFlag:l,children:c,anchor:f,targetAnchor:a,target:u,props:d}=e;if(u&&i(a),(o||!Nn(d))&&(i(f),l&16))for(let m=0;m0?we||Xt:null,sc(),Lt>0&&we&&we.push(e),e}function Hu(e,t,n,s,r,i){return rc(Ti(e,t,n,s,r,i,!0))}function Ci(e,t,n,s,r){return rc(le(e,t,n,s,r,!0))}function bt(e){return e?e.__v_isVNode===!0:!1}function Je(e,t){return e.type===t.type&&e.key===t.key}function Vu(e){}const er="__vInternal",ic=({key:e})=>e!=null?e:null,hs=({ref:e,ref_key:t,ref_for:n})=>e!=null?z(e)||de(e)||W(e)?{i:be,r:e,k:t,f:!!n}:e:null;function Ti(e,t=null,n=null,s=0,r=null,i=e===ye?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ic(t),ref:t&&hs(t),scopeId:zs,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?(vi(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=z(n)?8:16),Lt>0&&!o&&we&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&we.push(c),c}const le=Uu;function Uu(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===xl)&&(e=Ee),bt(e)){const l=Ze(e,t,!0);return n&&vi(l,n),Lt>0&&!i&&we&&(l.shapeFlag&6?we[we.indexOf(e)]=l:we.push(l)),l.patchFlag|=-2,l}if(Qu(e)&&(e=e.__vccOpts),t){t=oc(t);let{class:l,style:c}=t;l&&!z(l)&&(t.class=jn(l)),fe(c)&&(ni(c)&&!V(c)&&(c=ee({},c)),t.style=Un(c))}const o=z(e)?1:Rl(e)?128:Lu(e)?64:fe(e)?4:W(e)?2:0;return Ti(e,t,n,s,r,o,i,!0)}function oc(e){return e?ni(e)||er in e?ee({},e):e:null}function Ze(e,t,n=!1){const{props:s,ref:r,patchFlag:i,children:o}=e,l=t?lc(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ic(l),ref:t&&t.ref?n&&r?V(r)?r.concat(hs(t)):[r,hs(t)]:hs(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ye?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&&Ze(e.ssContent),ssFallback:e.ssFallback&&Ze(e.ssFallback),el:e.el,anchor:e.anchor}}function Si(e=" ",t=0){return le(on,null,e,t)}function ju(e,t){const n=le(Mt,null,e);return n.staticCount=t,n}function Ku(e="",t=!1){return t?(Gs(),Ci(Ee,null,e)):le(Ee,null,e)}function Re(e){return e==null||typeof e=="boolean"?le(Ee):V(e)?le(ye,null,e.slice()):typeof e=="object"?ut(e):le(on,null,String(e))}function ut(e){return e.el===null||e.memo?e:Ze(e)}function vi(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),vi(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(er in t)?t._ctx=be:r===3&&be&&(be.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else W(t)?(t={default:t,_ctx:be},n=32):(t=String(t),s&64?(n=16,t=[Si(t)]):n=8);e.children=t,e.shapeFlag|=n}function lc(...e){const t={};for(let n=0;npe||be,_t=e=>{pe=e,e.scope.on()},dt=()=>{pe&&pe.scope.off(),pe=null};function fc(e){return e.vnode.shapeFlag&4}let ln=!1;function ac(e,t=!1){ln=t;const{props:n,children:s}=e.vnode,r=fc(e);Nu(e,n,r,t),Ru(e,s);const i=r?qu(e,t):void 0;return ln=!1,i}function qu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=si(new Proxy(e.ctx,Or));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?pc(e):null;_t(e),Vt();const i=Ye(s,e,0,[e.props,r]);if(Ut(),dt(),Zr(i)){if(i.then(dt,dt),t)return i.then(o=>{Fr(e,o,t)}).catch(o=>{jt(o,e,0)});e.asyncDep=i}else Fr(e,i,t)}else uc(e,t)}function Fr(e,t,n){W(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:fe(t)&&(e.setupState=oi(t)),uc(e,n)}let vs,Lr;function zu(e){vs=e,Lr=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Eu))}}const Ju=()=>!vs;function uc(e,t,n){const s=e.type;if(!e.render){if(!t&&vs&&!s.render){const r=s.template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,f=ee(ee({isCustomElement:i,delimiters:l},o),c);s.render=vs(r,f)}}e.render=s.render||Me,Lr&&Lr(e)}_t(e),Vt(),Cu(e),Ut(),dt()}function Yu(e){return new Proxy(e.attrs,{get(t,n){return Be(e,"get","$attrs"),t[n]}})}function pc(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=Yu(e))},slots:e.slots,emit:e.emit,expose:t}}function tr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(oi(si(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Cs)return Cs[n](e)}}))}const Zu=/(?:^|[-_])(\w)/g,Xu=e=>e.replace(Zu,t=>t.toUpperCase()).replace(/[-_]/g,"");function ws(e,t=!0){return W(e)?e.displayName||e.name:e.name||t&&e.__name}function dc(e,t,n=!1){let s=ws(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?Xu(s):n?"App":"Anonymous"}function Qu(e){return W(e)&&"__vccOpts"in e}const hc=(e,t)=>Fa(e,t,ln);function Gu(){return null}function ep(){return null}function tp(e){}function np(e,t){return null}function sp(){return gc().slots}function rp(){return gc().attrs}function gc(){const e=Ct();return e.setupContext||(e.setupContext=pc(e))}function ip(e,t){const n=V(e)?e.reduce((s,r)=>(s[r]={},s),{}):e;for(const s in t){const r=n[s];r?V(r)||W(r)?n[s]={type:r,default:t[s]}:r.default=t[s]:r===null&&(n[s]={default:t[s]})}return n}function op(e,t){const n={};for(const s in e)t.includes(s)||Object.defineProperty(n,s,{enumerable:!0,get:()=>e[s]});return n}function lp(e){const t=Ct();let n=e();return dt(),Zr(n)&&(n=n.catch(s=>{throw _t(t),s})),[n,()=>_t(t)]}function mc(e,t,n){const s=arguments.length;return s===2?fe(t)&&!V(t)?bt(t)?le(e,null,[t]):le(e,t):le(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&bt(n)&&(n=[n]),le(e,t,n))}const yc=Symbol(""),cp=()=>{{const e=vn(yc);return e||Cl("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function fp(){}function ap(e,t,n,s){const r=n[s];if(r&&bc(r,e))return r;const i=t();return i.memo=e.slice(),n[s]=i}function bc(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let s=0;s0&&we&&we.push(e),!0}const _c="3.2.37",up={createComponentInstance:cc,setupComponent:ac,renderComponentRoot:ds,setCurrentRenderingInstance:kn,isVNode:bt,normalizeVNode:Re},pp=up,dp=null,hp=null,gp="http://www.w3.org/2000/svg",wt=typeof document!="undefined"?document:null,Eo=wt&&wt.createElement("template"),mp={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?wt.createElementNS(gp,e):wt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>wt.createTextNode(e),createComment:e=>wt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wt.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{Eo.innerHTML=s?`${e}`:e;const l=Eo.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 yp(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 bp(e,t,n){const s=e.style,r=z(n);if(n&&!r){for(const i in n)Br(s,i,n[i]);if(t&&!z(t))for(const i in t)n[i]==null&&Br(s,i,"")}else{const i=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=i)}}const Co=/\s*!important$/;function Br(e,t,n){if(V(n))n.forEach(s=>Br(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=_p(e,t);Co.test(n)?e.setProperty(xe(s),n.replace(Co,""),"important"):e[s]=n}}const To=["Webkit","Moz","ms"],gr={};function _p(e,t){const n=gr[t];if(n)return n;let s=Te(t);if(s!=="filter"&&s in e)return gr[t]=s;s=Ht(s);for(let r=0;r{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let $r=0;const Sp=Promise.resolve(),vp=()=>{$r=0},wp=()=>$r||(Sp.then(vp),$r=Ec());function tt(e,t,n,s){e.addEventListener(t,n,s)}function Np(e,t,n,s){e.removeEventListener(t,n,s)}function Pp(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]=Op(t);if(s){const f=i[t]=Rp(s,r);tt(e,l,f,c)}else o&&(Np(e,l,o,c),i[t]=void 0)}}const vo=/(?:Once|Passive|Capture)$/;function Op(e){let t;if(vo.test(e)){t={};let n;for(;n=e.match(vo);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[xe(e.slice(2)),t]}function Rp(e,t){const n=s=>{const r=s.timeStamp||Ec();(Tp||r>=n.attached-1)&&ke(Ap(s,n.value),t,5,[s])};return n.value=e,n.attached=wp(),n}function Ap(e,t){if(V(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 wo=/^on[a-z]/,Ip=(e,t,n,s,r=!1,i,o,l,c)=>{t==="class"?yp(e,s,r):t==="style"?bp(e,n,s):$t(t)?Jr(t)||Pp(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Mp(e,t,s,r))?Cp(e,t,s,i,o,l,c):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ep(e,t,s,r))};function Mp(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&wo.test(t)&&W(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||wo.test(t)&&z(n)?!1:t in e}function Cc(e,t){const n=mi(e);class s extends nr{constructor(i){super(n,i,t)}}return s.def=n,s}const kp=e=>Cc(e,Bc),Fp=typeof HTMLElement!="undefined"?HTMLElement:class{};class nr extends Fp{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||(Hr(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let s=0;s{for(const r of s)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=s=>{const{props:r,styles:i}=s,o=!V(r),l=r?o?Object.keys(r):r:[];let c;if(o)for(const f in this._props){const a=r[f];(a===Number||a&&a.type===Number)&&(this._props[f]=mt(this._props[f]),(c||(c=Object.create(null)))[f]=!0)}this._numberProps=c;for(const f of Object.keys(this))f[0]!=="_"&&this._setProp(f,this[f],!0,!1);for(const f of l.map(Te))Object.defineProperty(this,f,{get(){return this._getProp(f)},set(a){this._setProp(f,a)}});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=mt(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(xe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(xe(t),n+""):n||this.removeAttribute(xe(t))))}_update(){Hr(this._createVNode(),this.shadowRoot)}_createVNode(){const t=le(this._def,ee({},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 nr){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 Lp(e="$style"){{const t=Ct();if(!t)return Q;const n=t.type.__cssModules;if(!n)return Q;const s=n[e];return s||Q}}function Bp(e){const t=Ct();if(!t)return;const n=()=>Dr(t.subTree,e(t.proxy));Ml(n),zn(()=>{const s=new MutationObserver(n);s.observe(t.subTree.el.parentNode,{childList:!0}),Qs(()=>s.disconnect())})}function Dr(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Dr(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)No(e.el,t);else if(e.type===ye)e.children.forEach(n=>Dr(n,t));else if(e.type===Mt){let{el:n,anchor:s}=e;for(;n&&(No(n,t),n!==s);)n=n.nextSibling}}function No(e,t){if(e.nodeType===1){const n=e.style;for(const s in t)n.setProperty(`--${s}`,t[s])}}const ct="transition",gn="animation",wi=(e,{slots:t})=>mc(gi,Sc(e),t);wi.displayName="Transition";const Tc={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},$p=wi.props=ee({},gi.props,Tc),St=(e,t=[])=>{V(e)?e.forEach(n=>n(...t)):e&&e(...t)},Po=e=>e?V(e)?e.some(t=>t.length>1):e.length>1:!1;function Sc(e){const t={};for(const A in e)A in Tc||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:f=o,appearToClass:a=l,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,b=Dp(r),T=b&&b[0],N=b&&b[1],{onBeforeEnter:y,onEnter:h,onEnterCancelled:C,onLeave:S,onLeaveCancelled:F,onBeforeAppear:H=y,onAppear:v=h,onAppearCancelled:_=C}=t,I=(A,j,$)=>{at(A,j?a:l),at(A,j?f:o),$&&$()},O=(A,j)=>{A._isLeaving=!1,at(A,u),at(A,m),at(A,d),j&&j()},B=A=>(j,$)=>{const ge=A?v:h,G=()=>I(j,A,$);St(ge,[j,G]),Oo(()=>{at(j,A?c:i),Ge(j,A?a:l),Po(ge)||Ro(j,s,T,G)})};return ee(t,{onBeforeEnter(A){St(y,[A]),Ge(A,i),Ge(A,o)},onBeforeAppear(A){St(H,[A]),Ge(A,c),Ge(A,f)},onEnter:B(!1),onAppear:B(!0),onLeave(A,j){A._isLeaving=!0;const $=()=>O(A,j);Ge(A,u),wc(),Ge(A,d),Oo(()=>{!A._isLeaving||(at(A,u),Ge(A,m),Po(S)||Ro(A,s,N,$))}),St(S,[A,$])},onEnterCancelled(A){I(A,!1),St(C,[A])},onAppearCancelled(A){I(A,!0),St(_,[A])},onLeaveCancelled(A){O(A),St(F,[A])}})}function Dp(e){if(e==null)return null;if(fe(e))return[mr(e.enter),mr(e.leave)];{const t=mr(e);return[t,t]}}function mr(e){return mt(e)}function Ge(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function at(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Oo(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Hp=0;function Ro(e,t,n,s){const r=e._endId=++Hp,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=vc(e,t);if(!o)return s();const f=o+"end";let a=0;const u=()=>{e.removeEventListener(f,d),i()},d=m=>{m.target===e&&++a>=c&&u()};setTimeout(()=>{a(n[b]||"").split(", "),r=s(ct+"Delay"),i=s(ct+"Duration"),o=Ao(r,i),l=s(gn+"Delay"),c=s(gn+"Duration"),f=Ao(l,c);let a=null,u=0,d=0;t===ct?o>0&&(a=ct,u=o,d=i.length):t===gn?f>0&&(a=gn,u=f,d=c.length):(u=Math.max(o,f),a=u>0?o>f?ct:gn:null,d=a?a===ct?i.length:c.length:0);const m=a===ct&&/\b(transform|all)(,|$)/.test(n[ct+"Property"]);return{type:a,timeout:u,propCount:d,hasTransform:m}}function Ao(e,t){for(;e.lengthIo(n)+Io(e[s])))}function Io(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function wc(){return document.body.offsetHeight}const Nc=new WeakMap,Pc=new WeakMap,Vp={name:"TransitionGroup",props:ee({},$p,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ct(),s=hi();let r,i;return Zs(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Wp(r[0].el,n.vnode.el,o))return;r.forEach(jp),r.forEach(Kp);const l=r.filter(xp);wc(),l.forEach(c=>{const f=c.el,a=f.style;Ge(f,o),a.transform=a.webkitTransform=a.transitionDuration="";const u=f._moveCb=d=>{d&&d.target!==f||(!d||/transform$/.test(d.propertyName))&&(f.removeEventListener("transitionend",u),f._moveCb=null,at(f,o))};f.addEventListener("transitionend",u)})}),()=>{const o=Y(e),l=Sc(o);let c=o.tag||ye;r=i,i=t.default?Js(t.default()):[];for(let f=0;f{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}=vc(s);return r.removeChild(s),i}const Et=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>en(t,n):t};function qp(e){e.target.composing=!0}function Mo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ns={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=Et(r);const i=s||r.props&&r.props.type==="number";tt(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=mt(l)),e._assign(l)}),n&&tt(e,"change",()=>{e.value=e.value.trim()}),t||(tt(e,"compositionstart",qp),tt(e,"compositionend",Mo),tt(e,"change",Mo))},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")&&mt(e.value)===t))return;const o=t==null?"":t;e.value!==o&&(e.value=o)}},Ni={deep:!0,created(e,t,n){e._assign=Et(n),tt(e,"change",()=>{const s=e._modelValue,r=cn(e),i=e.checked,o=e._assign;if(V(s)){const l=$s(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const f=[...s];f.splice(l,1),o(f)}}else if(Dt(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(Rc(e,i))})},mounted:ko,beforeUpdate(e,t,n){e._assign=Et(n),ko(e,t,n)}};function ko(e,{value:t,oldValue:n},s){e._modelValue=t,V(t)?e.checked=$s(t,s.props.value)>-1:Dt(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=ht(t,Rc(e,!0)))}const Pi={created(e,{value:t},n){e.checked=ht(t,n.props.value),e._assign=Et(n),tt(e,"change",()=>{e._assign(cn(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e._assign=Et(s),t!==n&&(e.checked=ht(t,s.props.value))}},Oc={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=Dt(t);tt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?mt(cn(o)):cn(o));e._assign(e.multiple?r?new Set(i):i:i[0])}),e._assign=Et(s)},mounted(e,{value:t}){Fo(e,t)},beforeUpdate(e,t,n){e._assign=Et(n)},updated(e,{value:t}){Fo(e,t)}};function Fo(e,t){const n=e.multiple;if(!(n&&!V(t)&&!Dt(t))){for(let s=0,r=e.options.length;s-1:i.selected=t.has(o);else if(ht(cn(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function cn(e){return"_value"in e?e._value:e.value}function Rc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ac={created(e,t,n){cs(e,t,n,null,"created")},mounted(e,t,n){cs(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){cs(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){cs(e,t,n,s,"updated")}};function Ic(e,t){switch(e){case"SELECT":return Oc;case"TEXTAREA":return Ns;default:switch(t){case"checkbox":return Ni;case"radio":return Pi;default:return Ns}}}function cs(e,t,n,s,r){const o=Ic(e.tagName,n.props&&n.props.type)[r];o&&o(e,t,n,s)}function zp(){Ns.getSSRProps=({value:e})=>({value:e}),Pi.getSSRProps=({value:e},t)=>{if(t.props&&ht(t.props.value,e))return{checked:!0}},Ni.getSSRProps=({value:e},t)=>{if(V(e)){if(t.props&&$s(e,t.props.value)>-1)return{checked:!0}}else if(Dt(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Ac.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Ic(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const Jp=["ctrl","shift","alt","meta"],Yp={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)=>Jp.some(n=>e[`${n}Key`]&&!t.includes(n))},Zp=(e,t)=>(n,...s)=>{for(let r=0;rn=>{if(!("key"in n))return;const s=xe(n.key);if(t.some(r=>r===s||Xp[r]===s))return e(n)},Mc={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):mn(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),mn(e,!0),s.enter(e)):s.leave(e,()=>{mn(e,!1)}):mn(e,t))},beforeUnmount(e,{value:t}){mn(e,t)}};function mn(e,t){e.style.display=t?e._vod:"none"}function Gp(){Mc.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const kc=ee({patchProp:Ip},mp);let On,Lo=!1;function Fc(){return On||(On=ec(kc))}function Lc(){return On=Lo?On:tc(kc),Lo=!0,On}const Hr=(...e)=>{Fc().render(...e)},Bc=(...e)=>{Lc().hydrate(...e)},ed=(...e)=>{const t=Fc().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=$c(s);if(!r)return;const i=t._component;!W(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t},td=(...e)=>{const t=Lc().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=$c(s);if(r)return n(r,!0,r instanceof SVGElement)},t};function $c(e){return z(e)?document.querySelector(e):e}let Bo=!1;const nd=()=>{Bo||(Bo=!0,zp(),Gp())};var Zh=Object.freeze(Object.defineProperty({__proto__:null,Transition:wi,TransitionGroup:Up,VueElement:nr,createApp:ed,createSSRApp:td,defineCustomElement:Cc,defineSSRCustomElement:kp,hydrate:Bc,initDirectivesForSSR:nd,render:Hr,useCssModule:Lp,useCssVars:Bp,vModelCheckbox:Ni,vModelDynamic:Ac,vModelRadio:Pi,vModelSelect:Oc,vModelText:Ns,vShow:Mc,withKeys:Qp,withModifiers:Zp,EffectScope:Qr,ReactiveEffect:xn,customRef:Aa,effect:Qf,effectScope:zf,getCurrentScope:Jf,isProxy:ni,isReactive:At,isReadonly:sn,isRef:de,isShallow:bs,markRaw:si,onScopeDispose:Yf,proxyRefs:oi,reactive:js,readonly:ti,ref:ps,shallowReactive:yl,shallowReadonly:va,shallowRef:wa,stop:Gf,toRaw:Y,toRef:El,toRefs:Ia,triggerRef:Pa,unref:_l,camelize:Te,capitalize:Ht,normalizeClass:jn,normalizeProps:If,normalizeStyle:Un,toDisplayString:Hf,toHandlerKey:Gt,BaseTransition:gi,Comment:Ee,Fragment:ye,KeepAlive:fu,Static:Mt,Suspense:Qa,Teleport:Du,Text:on,callWithAsyncErrorHandling:ke,callWithErrorHandling:Ye,cloneVNode:Ze,compatUtils:hp,computed:hc,createBlock:Ci,createCommentVNode:Ku,createElementBlock:Hu,createElementVNode:Ti,createHydrationRenderer:tc,createPropsRestProxy:op,createRenderer:ec,createSlots:yu,createStaticVNode:ju,createTextVNode:Si,createVNode:le,defineAsyncComponent:lu,defineComponent:mi,defineEmits:ep,defineExpose:tp,defineProps:Gu,get devtools(){return Yt},getCurrentInstance:Ct,getTransitionRawChildren:Js,guardReactiveProps:oc,h:mc,handleError:jt,initCustomFormatter:fp,inject:vn,isMemoSame:bc,isRuntimeOnly:Ju,isVNode:bt,mergeDefaults:ip,mergeProps:lc,nextTick:ci,onActivated:Ll,onBeforeMount:Dl,onBeforeUnmount:Xs,onBeforeUpdate:Hl,onDeactivated:Bl,onErrorCaptured:Kl,onMounted:zn,onRenderTracked:jl,onRenderTriggered:Ul,onServerPrefetch:Vl,onUnmounted:Qs,onUpdated:Zs,openBlock:Gs,popScopeId:Wa,provide:Il,pushScopeId:xa,queuePostFlushCb:ai,registerRuntimeCompiler:zu,renderList:mu,renderSlot:bu,resolveComponent:du,resolveDirective:gu,resolveDynamicComponent:hu,resolveFilter:dp,resolveTransitionHooks:rn,setBlockTracking:kr,setDevtoolsHook:Pl,setTransitionHooks:Ft,ssrContextKey:yc,ssrUtils:pp,toHandlers:_u,transformVNodeArgs:Vu,useAttrs:rp,useSSRContext:cp,useSlots:sp,useTransitionState:hi,version:_c,warn:Cl,watch:wn,watchEffect:su,watchPostEffect:Ml,watchSyncEffect:ru,withAsyncContext:lp,withCtx:ui,withDefaults:np,withDirectives:uu,withMemo:ap,withScopeId:qa},Symbol.toStringTag,{value:"Module"}));function Oi(e){throw e}function Dc(e){}function ce(e,t,n,s){const r=e,i=new SyntaxError(String(r));return i.code=e,i.loc=t,i}const Ln=Symbol(""),Rn=Symbol(""),Ri=Symbol(""),Ps=Symbol(""),Hc=Symbol(""),Bt=Symbol(""),Vc=Symbol(""),Uc=Symbol(""),Ai=Symbol(""),Ii=Symbol(""),Jn=Symbol(""),Mi=Symbol(""),jc=Symbol(""),ki=Symbol(""),Os=Symbol(""),Fi=Symbol(""),Li=Symbol(""),Bi=Symbol(""),$i=Symbol(""),Kc=Symbol(""),xc=Symbol(""),sr=Symbol(""),Rs=Symbol(""),Di=Symbol(""),Hi=Symbol(""),Bn=Symbol(""),Yn=Symbol(""),Vi=Symbol(""),Vr=Symbol(""),sd=Symbol(""),Ur=Symbol(""),As=Symbol(""),rd=Symbol(""),id=Symbol(""),Ui=Symbol(""),od=Symbol(""),ld=Symbol(""),ji=Symbol(""),Wc=Symbol(""),fn={[Ln]:"Fragment",[Rn]:"Teleport",[Ri]:"Suspense",[Ps]:"KeepAlive",[Hc]:"BaseTransition",[Bt]:"openBlock",[Vc]:"createBlock",[Uc]:"createElementBlock",[Ai]:"createVNode",[Ii]:"createElementVNode",[Jn]:"createCommentVNode",[Mi]:"createTextVNode",[jc]:"createStaticVNode",[ki]:"resolveComponent",[Os]:"resolveDynamicComponent",[Fi]:"resolveDirective",[Li]:"resolveFilter",[Bi]:"withDirectives",[$i]:"renderList",[Kc]:"renderSlot",[xc]:"createSlots",[sr]:"toDisplayString",[Rs]:"mergeProps",[Di]:"normalizeClass",[Hi]:"normalizeStyle",[Bn]:"normalizeProps",[Yn]:"guardReactiveProps",[Vi]:"toHandlers",[Vr]:"camelize",[sd]:"capitalize",[Ur]:"toHandlerKey",[As]:"setBlockTracking",[rd]:"pushScopeId",[id]:"popScopeId",[Ui]:"withCtx",[od]:"unref",[ld]:"isRef",[ji]:"withMemo",[Wc]:"isMemoSame"};function cd(e){Object.getOwnPropertySymbols(e).forEach(t=>{fn[t]=e[t]})}const $e={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function fd(e,t=$e){return{type:0,children:e,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function $n(e,t,n,s,r,i,o,l=!1,c=!1,f=!1,a=$e){return e&&(l?(e.helper(Bt),e.helper(pn(e.inSSR,f))):e.helper(un(e.inSSR,f)),o&&e.helper(Bi)),{type:13,tag:t,props:n,children:s,patchFlag:r,dynamicProps:i,directives:o,isBlock:l,disableTracking:c,isComponent:f,loc:a}}function Zn(e,t=$e){return{type:17,loc:t,elements:e}}function Ve(e,t=$e){return{type:15,loc:t,properties:e}}function ae(e,t){return{type:16,loc:$e,key:z(e)?J(e,!0):e,value:t}}function J(e,t=!1,n=$e,s=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:s}}function We(e,t=$e){return{type:8,loc:t,children:e}}function ue(e,t=[],n=$e){return{type:14,loc:n,callee:e,arguments:t}}function an(e,t=void 0,n=!1,s=!1,r=$e){return{type:18,params:e,returns:t,newline:n,isSlot:s,loc:r}}function jr(e,t,n,s=!0){return{type:19,test:e,consequent:t,alternate:n,newline:s,loc:$e}}function ad(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:$e}}function ud(e){return{type:21,body:e,loc:$e}}const Fe=e=>e.type===4&&e.isStatic,Zt=(e,t)=>e===t||e===xe(t);function qc(e){if(Zt(e,"Teleport"))return Rn;if(Zt(e,"Suspense"))return Ri;if(Zt(e,"KeepAlive"))return Ps;if(Zt(e,"BaseTransition"))return Hc}const pd=/^\d|[^\$\w]/,Ki=e=>!pd.test(e),dd=/[A-Za-z_$\xA0-\uFFFF]/,hd=/[\.\?\w$\xA0-\uFFFF]/,gd=/\s+[.[]\s*|\s*[.[]\s+/g,md=e=>{e=e.trim().replace(gd,o=>o.trim());let t=0,n=[],s=0,r=0,i=null;for(let o=0;ot.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function yr(e){return e.type===5||e.type===2}function bd(e){return e.type===7&&e.name==="slot"}function ks(e){return e.type===1&&e.tagType===3}function Fs(e){return e.type===1&&e.tagType===2}function un(e,t){return e||t?Ai:Ii}function pn(e,t){return e||t?Vc:Uc}const _d=new Set([Bn,Yn]);function Yc(e,t=[]){if(e&&!z(e)&&e.type===14){const n=e.callee;if(!z(n)&&_d.has(n))return Yc(e.arguments[0],t.concat(e))}return[e,t]}function Ls(e,t,n){let s,r=e.type===13?e.props:e.arguments[2],i=[],o;if(r&&!z(r)&&r.type===14){const l=Yc(r);r=l[0],i=l[1],o=i[i.length-1]}if(r==null||z(r))s=Ve([t]);else if(r.type===14){const l=r.arguments[0];!z(l)&&l.type===15?l.properties.unshift(t):r.callee===Vi?s=ue(n.helper(Rs),[Ve([t]),r]):r.arguments.unshift(Ve([t])),!s&&(s=r)}else if(r.type===15){let l=!1;if(t.key.type===4){const c=t.key.content;l=r.properties.some(f=>f.key.type===4&&f.key.content===c)}l||r.properties.unshift(t),s=r}else s=ue(n.helper(Rs),[Ve([t]),r]),o&&o.callee===Yn&&(o=i[i.length-2]);e.type===13?o?o.arguments[0]=s:e.props=s:o?o.arguments[0]=s:e.arguments[2]=s}function Dn(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,s)=>n==="-"?"_":e.charCodeAt(s).toString())}`}function Ed(e){return e.type===14&&e.callee===ji?e.arguments[1].returns:e}function xi(e,{helper:t,removeHelper:n,inSSR:s}){e.isBlock||(e.isBlock=!0,n(un(s,e.isComponent)),t(Bt),t(pn(s,e.isComponent)))}function $o(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,s=n&&n[e];return e==="MODE"?s||3:s}function kt(e,t){const n=$o("MODE",t),s=$o(e,t);return n===3?s===!0:s!==!1}function Hn(e,t,n,...s){return kt(e,t)}const Cd=/&(gt|lt|amp|apos|quot);/g,Td={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Do={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:us,isPreTag:us,isCustomElement:us,decodeEntities:e=>e.replace(Cd,(t,n)=>Td[n]),onError:Oi,onWarn:Dc,comments:!1};function Sd(e,t={}){const n=vd(e,t),s=Le(n);return fd(Wi(n,0,[]),Ue(n,s))}function vd(e,t){const n=ee({},Do);let s;for(s in t)n[s]=t[s]===void 0?Do[s]:t[s];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function Wi(e,t,n){const s=ir(n),r=s?s.ns:0,i=[];for(;!kd(e,t,n);){const l=e.source;let c;if(t===0||t===1){if(!e.inVPre&&_e(l,e.options.delimiters[0]))c=Id(e,t);else if(t===0&&l[0]==="<")if(l.length===1)ne(e,5,1);else if(l[1]==="!")_e(l,"=0;){const f=o[l];f&&f.type===9&&(c+=f.branches.length)}return()=>{if(i)s.codegenNode=Ko(r,c,n);else{const f=rh(s.codegenNode);f.alternate=Ko(r,c+s.branches.length-1,n)}}}));function sh(e,t,n,s){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(ce(28,t.loc)),t.exp=J("true",!1,r)}if(t.name==="if"){const r=jo(e,t),i={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(i),s)return s(i,r,!0)}else{const r=n.parent.children;let i=r.indexOf(e);for(;i-->=-1;){const o=r[i];if(o&&o.type===2&&!o.content.trim().length){n.removeNode(o);continue}if(o&&o.type===9){t.name==="else-if"&&o.branches[o.branches.length-1].condition===void 0&&n.onError(ce(30,e.loc)),n.removeNode();const l=jo(e,t);o.branches.push(l);const c=s&&s(o,l,!1);or(l,n),c&&c(),n.currentNode=null}else n.onError(ce(30,e.loc));break}}}function jo(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!He(e,"for")?e.children:[e],userKey:rr(e,"key"),isTemplateIf:n}}function Ko(e,t,n){return e.condition?jr(e.condition,xo(e,t,n),ue(n.helper(Jn),['""',"true"])):xo(e,t,n)}function xo(e,t,n){const{helper:s}=n,r=ae("key",J(`${t}`,!1,$e,2)),{children:i}=e,o=i[0];if(i.length!==1||o.type!==1)if(i.length===1&&o.type===11){const c=o.codegenNode;return Ls(c,r,n),c}else{let c=64;return $n(n,s(Ln),Ve([r]),i,c+"",void 0,void 0,!0,!1,!1,e.loc)}else{const c=o.codegenNode,f=Ed(c);return f.type===13&&xi(f,n),Ls(f,r,n),c}}function rh(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const ih=nf("for",(e,t,n)=>{const{helper:s,removeHelper:r}=n;return oh(e,t,n,i=>{const o=ue(s($i),[i.source]),l=ks(e),c=He(e,"memo"),f=rr(e,"key"),a=f&&(f.type===6?J(f.value.content,!0):f.exp),u=f?ae("key",a):null,d=i.source.type===4&&i.source.constType>0,m=d?64:f?128:256;return i.codegenNode=$n(n,s(Ln),void 0,o,m+"",void 0,void 0,!0,!d,!1,e.loc),()=>{let b;const{children:T}=i,N=T.length!==1||T[0].type!==1,y=Fs(e)?e:l&&e.children.length===1&&Fs(e.children[0])?e.children[0]:null;if(y?(b=y.codegenNode,l&&u&&Ls(b,u,n)):N?b=$n(n,s(Ln),u?Ve([u]):void 0,e.children,64+"",void 0,void 0,!0,void 0,!1):(b=T[0].codegenNode,l&&u&&Ls(b,u,n),b.isBlock!==!d&&(b.isBlock?(r(Bt),r(pn(n.inSSR,b.isComponent))):r(un(n.inSSR,b.isComponent))),b.isBlock=!d,b.isBlock?(s(Bt),s(pn(n.inSSR,b.isComponent))):s(un(n.inSSR,b.isComponent))),c){const h=an(Wr(i.parseResult,[J("_cached")]));h.body=ud([We(["const _memo = (",c.exp,")"]),We(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(Wc)}(_cached, _memo)) return _cached`]),We(["const _item = ",b]),J("_item.memo = _memo"),J("return _item")]),o.arguments.push(h,J("_cache"),J(String(n.cached++)))}else o.arguments.push(an(Wr(i.parseResult),b,!0))}})});function oh(e,t,n,s){if(!t.exp){n.onError(ce(31,t.loc));return}const r=lf(t.exp);if(!r){n.onError(ce(32,t.loc));return}const{addIdentifiers:i,removeIdentifiers:o,scopes:l}=n,{source:c,value:f,key:a,index:u}=r,d={type:11,loc:t.loc,source:c,valueAlias:f,keyAlias:a,objectIndexAlias:u,parseResult:r,children:ks(e)?e.children:[e]};n.replaceNode(d),l.vFor++;const m=s&&s(d);return()=>{l.vFor--,m&&m()}}const lh=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Wo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,ch=/^\(|\)$/g;function lf(e,t){const n=e.loc,s=e.content,r=s.match(lh);if(!r)return;const[,i,o]=r,l={source:fs(n,o.trim(),s.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0};let c=i.trim().replace(ch,"").trim();const f=i.indexOf(c),a=c.match(Wo);if(a){c=c.replace(Wo,"").trim();const u=a[1].trim();let d;if(u&&(d=s.indexOf(u,f+c.length),l.key=fs(n,u,d)),a[2]){const m=a[2].trim();m&&(l.index=fs(n,m,s.indexOf(m,l.key?d+u.length:f+c.length)))}}return c&&(l.value=fs(n,c,f)),l}function fs(e,t,n){return J(t,!1,Jc(e,n,t.length))}function Wr({value:e,key:t,index:n},s=[]){return fh([e,t,n,...s])}function fh(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,s)=>n||J("_".repeat(s+1),!1))}const qo=J("undefined",!1),ah=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=He(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},uh=(e,t,n)=>an(e,t,!1,!0,t.length?t[0].loc:n);function ph(e,t,n=uh){t.helper(Ui);const{children:s,loc:r}=e,i=[],o=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const c=He(e,"slot",!0);if(c){const{arg:T,exp:N}=c;T&&!Fe(T)&&(l=!0),i.push(ae(T||J("default",!0),n(N,s,r)))}let f=!1,a=!1;const u=[],d=new Set;for(let T=0;T{const h=n(N,y,r);return t.compatConfig&&(h.isNonScopedSlot=!0),ae("default",h)};f?u.length&&u.some(N=>cf(N))&&(a?t.onError(ce(39,u[0].loc)):i.push(T(void 0,u))):i.push(T(void 0,s))}const m=l?2:ms(e.children)?3:1;let b=Ve(i.concat(ae("_",J(m+"",!1))),r);return o.length&&(b=ue(t.helper(xc),[b,Zn(o)])),{slots:b,hasDynamicSlots:l}}function as(e,t){return Ve([ae("name",e),ae("fn",t)])}function ms(e){for(let t=0;tfunction(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:s,props:r}=e,i=e.tagType===1;let o=i?hh(e,t):`"${s}"`;const l=fe(o)&&o.callee===Os;let c,f,a,u=0,d,m,b,T=l||o===Rn||o===Ri||!i&&(s==="svg"||s==="foreignObject");if(r.length>0){const N=af(e,t,void 0,i,l);c=N.props,u=N.patchFlag,m=N.dynamicPropNames;const y=N.directives;b=y&&y.length?Zn(y.map(h=>mh(h,t))):void 0,N.shouldUseBlock&&(T=!0)}if(e.children.length>0)if(o===Ps&&(T=!0,u|=1024),i&&o!==Rn&&o!==Ps){const{slots:y,hasDynamicSlots:h}=ph(e,t);f=y,h&&(u|=1024)}else if(e.children.length===1&&o!==Rn){const y=e.children[0],h=y.type,C=h===5||h===8;C&&Ie(y,t)===0&&(u|=1),C||h===2?f=y:f=e.children}else f=e.children;u!==0&&(a=String(u),m&&m.length&&(d=yh(m))),e.codegenNode=$n(t,o,c,f,a,d,b,!!T,!1,i,e.loc)};function hh(e,t,n=!1){let{tag:s}=e;const r=qr(s),i=rr(e,"is");if(i)if(r||kt("COMPILER_IS_ON_ELEMENT",t)){const c=i.type===6?i.value&&J(i.value.content,!0):i.exp;if(c)return ue(t.helper(Os),[c])}else i.type===6&&i.value.content.startsWith("vue:")&&(s=i.value.content.slice(4));const o=!r&&He(e,"is");if(o&&o.exp)return ue(t.helper(Os),[o.exp]);const l=qc(s)||t.isBuiltInComponent(s);return l?(n||t.helper(l),l):(t.helper(ki),t.components.add(s),Dn(s,"component"))}function af(e,t,n=e.props,s,r,i=!1){const{tag:o,loc:l,children:c}=e;let f=[];const a=[],u=[],d=c.length>0;let m=!1,b=0,T=!1,N=!1,y=!1,h=!1,C=!1,S=!1;const F=[],H=({key:_,value:I})=>{if(Fe(_)){const O=_.content,B=$t(O);if(B&&(!s||r)&&O.toLowerCase()!=="onclick"&&O!=="onUpdate:modelValue"&&!Ot(O)&&(h=!0),B&&Ot(O)&&(S=!0),I.type===20||(I.type===4||I.type===8)&&Ie(I,t)>0)return;O==="ref"?T=!0:O==="class"?N=!0:O==="style"?y=!0:O!=="key"&&!F.includes(O)&&F.push(O),s&&(O==="class"||O==="style")&&!F.includes(O)&&F.push(O)}else C=!0};for(let _=0;_0&&f.push(ae(J("ref_for",!0),J("true")))),B==="is"&&(qr(o)||A&&A.content.startsWith("vue:")||kt("COMPILER_IS_ON_ELEMENT",t)))continue;f.push(ae(J(B,!0,Jc(O,0,B.length)),J(A?A.content:"",j,A?A.loc:O)))}else{const{name:O,arg:B,exp:A,loc:j}=I,$=O==="bind",ge=O==="on";if(O==="slot"){s||t.onError(ce(40,j));continue}if(O==="once"||O==="memo"||O==="is"||$&&Pt(B,"is")&&(qr(o)||kt("COMPILER_IS_ON_ELEMENT",t))||ge&&i)continue;if(($&&Pt(B,"key")||ge&&d&&Pt(B,"vue:before-update"))&&(m=!0),$&&Pt(B,"ref")&&t.scopes.vFor>0&&f.push(ae(J("ref_for",!0),J("true"))),!B&&($||ge)){if(C=!0,A)if(f.length&&(a.push(Ve(_r(f),l)),f=[]),$){if(kt("COMPILER_V_BIND_OBJECT_ORDER",t)){a.unshift(A);continue}a.push(A)}else a.push({type:14,loc:j,callee:t.helper(Vi),arguments:[A]});else t.onError(ce($?34:35,j));continue}const G=t.directiveTransforms[O];if(G){const{props:ie,needRuntime:te}=G(I,e,t);!i&&ie.forEach(H),f.push(...ie),te&&(u.push(I),gt(te)&&ff.set(I,te))}else Kf(O)||(u.push(I),d&&(m=!0))}}let v;if(a.length?(f.length&&a.push(Ve(_r(f),l)),a.length>1?v=ue(t.helper(Rs),a,l):v=a[0]):f.length&&(v=Ve(_r(f),l)),C?b|=16:(N&&!s&&(b|=2),y&&!s&&(b|=4),F.length&&(b|=8),h&&(b|=32)),!m&&(b===0||b===32)&&(T||S||u.length>0)&&(b|=512),!t.inSSR&&v)switch(v.type){case 15:let _=-1,I=-1,O=!1;for(let j=0;jae(o,i)),r))}return Zn(n,e.loc)}function yh(e){let t="[";for(let n=0,s=e.length;n{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},_h=/-(\w)/g,zo=bh(e=>e.replace(_h,(t,n)=>n?n.toUpperCase():"")),Eh=(e,t)=>{if(Fs(e)){const{children:n,loc:s}=e,{slotName:r,slotProps:i}=Ch(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let l=2;i&&(o[2]=i,l=3),n.length&&(o[3]=an([],n,!1,!1,s),l=4),t.scopeId&&!t.slotted&&(l=5),o.splice(l),e.codegenNode=ue(t.helper(Kc),o,s)}};function Ch(e,t){let n='"default"',s;const r=[];for(let i=0;i0){const{props:i,directives:o}=af(e,t,r,!1,!1);s=i,o.length&&t.onError(ce(36,o[0].loc))}return{slotName:n,slotProps:s}}const Th=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,uf=(e,t,n,s)=>{const{loc:r,modifiers:i,arg:o}=e;!e.exp&&!i.length&&n.onError(ce(35,r));let l;if(o.type===4)if(o.isStatic){let u=o.content;u.startsWith("vue:")&&(u=`vnode-${u.slice(4)}`),l=J(Gt(Te(u)),!0,o.loc)}else l=We([`${n.helperString(Ur)}(`,o,")"]);else l=o,l.children.unshift(`${n.helperString(Ur)}(`),l.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let f=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const u=zc(c.content),d=!(u||Th.test(c.content)),m=c.content.includes(";");(d||f&&u)&&(c=We([`${d?"$event":"(...args)"} => ${m?"{":"("}`,c,m?"}":")"]))}let a={props:[ae(l,c||J("() => {}",!1,r))]};return s&&(a=s(a)),f&&(a.props[0].value=n.cache(a.props[0].value)),a.props.forEach(u=>u.key.isHandlerKey=!0),a},Sh=(e,t,n)=>{const{exp:s,modifiers:r,loc:i}=e,o=e.arg;return o.type!==4?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=`${o.content} || ""`),r.includes("camel")&&(o.type===4?o.isStatic?o.content=Te(o.content):o.content=`${n.helperString(Vr)}(${o.content})`:(o.children.unshift(`${n.helperString(Vr)}(`),o.children.push(")"))),n.inSSR||(r.includes("prop")&&Jo(o,"."),r.includes("attr")&&Jo(o,"^")),!s||s.type===4&&!s.content.trim()?(n.onError(ce(34,i)),{props:[ae(o,J("",!0,i))]}):{props:[ae(o,s)]}},Jo=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},vh=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let s,r=!1;for(let i=0;ii.type===7&&!t.directiveTransforms[i.name])&&e.tag!=="template")))for(let i=0;i{if(e.type===1&&He(e,"once",!0))return Yo.has(e)||t.inVOnce?void 0:(Yo.add(e),t.inVOnce=!0,t.helper(As),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},pf=(e,t,n)=>{const{exp:s,arg:r}=e;if(!s)return n.onError(ce(41,e.loc)),Er();const i=s.loc.source,o=s.type===4?s.content:i;n.bindingMetadata[i];const l=!1;if(!o.trim()||!zc(o)&&!l)return n.onError(ce(42,s.loc)),Er();const c=r||J("modelValue",!0),f=r?Fe(r)?`onUpdate:${r.content}`:We(['"onUpdate:" + ',r]):"onUpdate:modelValue";let a;const u=n.isTS?"($event: any)":"$event";a=We([`${u} => ((`,s,") = $event)"]);const d=[ae(c,e.exp),ae(f,a)];if(e.modifiers.length&&t.tagType===1){const m=e.modifiers.map(T=>(Ki(T)?T:JSON.stringify(T))+": true").join(", "),b=r?Fe(r)?`${r.content}Modifiers`:We([r,' + "Modifiers"']):"modelModifiers";d.push(ae(b,J(`{ ${m} }`,!1,e.loc,2)))}return Er(d)};function Er(e=[]){return{props:e}}const Nh=/[\w).+\-_$\]]/,Ph=(e,t)=>{!kt("COMPILER_FILTER",t)||(e.type===5&&Bs(e.content,t),e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Bs(n.exp,t)}))};function Bs(e,t){if(e.type===4)Zo(e,t);else for(let n=0;n=0&&(h=n.charAt(y),h===" ");y--);(!h||!Nh.test(h))&&(o=!0)}}b===void 0?b=n.slice(0,m).trim():a!==0&&N();function N(){T.push(n.slice(a,m).trim()),a=m+1}if(T.length){for(m=0;m{if(e.type===1){const n=He(e,"memo");return!n||Xo.has(e)?void 0:(Xo.add(e),()=>{const s=e.codegenNode||t.currentNode.codegenNode;s&&s.type===13&&(e.tagType!==1&&xi(s,t),e.codegenNode=ue(t.helper(ji),[n.exp,an(void 0,s),"_cache",String(t.cached++)]))})}};function Ah(e){return[[wh,nh,Rh,ih,Ph,Eh,dh,ah,vh],{on:uf,bind:Sh,model:pf}]}function Ih(e,t={}){const n=t.onError||Oi,s=t.mode==="module";t.prefixIdentifiers===!0?n(ce(46)):s&&n(ce(47));const r=!1;t.cacheHandlers&&n(ce(48)),t.scopeId&&!s&&n(ce(49));const i=z(e)?Sd(e,t):e,[o,l]=Ah();return $d(i,ee({},t,{prefixIdentifiers:r,nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:ee({},l,t.directiveTransforms||{})})),Ud(i,ee({},t,{prefixIdentifiers:r}))}const Mh=()=>({props:[]}),df=Symbol(""),hf=Symbol(""),gf=Symbol(""),mf=Symbol(""),zr=Symbol(""),yf=Symbol(""),bf=Symbol(""),_f=Symbol(""),Ef=Symbol(""),Cf=Symbol("");cd({[df]:"vModelRadio",[hf]:"vModelCheckbox",[gf]:"vModelText",[mf]:"vModelSelect",[zr]:"vModelDynamic",[yf]:"withModifiers",[bf]:"withKeys",[_f]:"vShow",[Ef]:"Transition",[Cf]:"TransitionGroup"});let qt;function kh(e,t=!1){return qt||(qt=document.createElement("div")),t?(qt.innerHTML=`
`,qt.children[0].getAttribute("foo")):(qt.innerHTML=e,qt.textContent)}const Fh=Ne("style,iframe,script,noscript",!0),Lh={isVoidTag:$f,isNativeTag:e=>Lf(e)||Bf(e),isPreTag:e=>e==="pre",decodeEntities:kh,isBuiltInComponent:e=>{if(Zt(e,"Transition"))return Ef;if(Zt(e,"TransitionGroup"))return Cf},getNamespace(e,t){let n=t?t.ns:0;if(t&&n===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(s=>s.type===6&&s.name==="encoding"&&s.value!=null&&(s.value.content==="text/html"||s.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(n=0);else t&&n===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(n=0);if(n===0){if(e==="svg")return 1;if(e==="math")return 2}return n},getTextMode({tag:e,ns:t}){if(t===0){if(e==="textarea"||e==="title")return 1;if(Fh(e))return 2}return 0}},Bh=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:J("style",!0,t.loc),exp:$h(t.value.content,t.loc),modifiers:[],loc:t.loc})})},$h=(e,t)=>{const n=el(e);return J(JSON.stringify(n),!1,t,3)};function nt(e,t){return ce(e,t)}const Dh=(e,t,n)=>{const{exp:s,loc:r}=e;return s||n.onError(nt(50,r)),t.children.length&&(n.onError(nt(51,r)),t.children.length=0),{props:[ae(J("innerHTML",!0,r),s||J("",!0))]}},Hh=(e,t,n)=>{const{exp:s,loc:r}=e;return s||n.onError(nt(52,r)),t.children.length&&(n.onError(nt(53,r)),t.children.length=0),{props:[ae(J("textContent",!0),s?Ie(s,n)>0?s:ue(n.helperString(sr),[s],r):J("",!0))]}},Vh=(e,t,n)=>{const s=pf(e,t,n);if(!s.props.length||t.tagType===1)return s;e.arg&&n.onError(nt(55,e.arg.loc));const{tag:r}=t,i=n.isCustomElement(r);if(r==="input"||r==="textarea"||r==="select"||i){let o=gf,l=!1;if(r==="input"||i){const c=rr(t,"type");if(c){if(c.type===7)o=zr;else if(c.value)switch(c.value.content){case"radio":o=df;break;case"checkbox":o=hf;break;case"file":l=!0,n.onError(nt(56,e.loc));break}}else yd(t)&&(o=zr)}else r==="select"&&(o=mf);l||(s.needRuntime=n.helper(o))}else n.onError(nt(54,e.loc));return s.props=s.props.filter(o=>!(o.key.type===4&&o.key.content==="modelValue")),s},Uh=Ne("passive,once,capture"),jh=Ne("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Kh=Ne("left,right"),Tf=Ne("onkeyup,onkeydown,onkeypress",!0),xh=(e,t,n,s)=>{const r=[],i=[],o=[];for(let l=0;lFe(e)&&e.content.toLowerCase()==="onclick"?J(t,!0):e.type!==4?We(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Wh=(e,t,n)=>uf(e,t,n,s=>{const{modifiers:r}=e;if(!r.length)return s;let{key:i,value:o}=s.props[0];const{keyModifiers:l,nonKeyModifiers:c,eventOptionModifiers:f}=xh(i,r,n,e.loc);if(c.includes("right")&&(i=Qo(i,"onContextmenu")),c.includes("middle")&&(i=Qo(i,"onMouseup")),c.length&&(o=ue(n.helper(yf),[o,JSON.stringify(c)])),l.length&&(!Fe(i)||Tf(i.content))&&(o=ue(n.helper(bf),[o,JSON.stringify(l)])),f.length){const a=f.map(Ht).join("");i=Fe(i)?J(`${i.content}${a}`,!0):We(["(",i,`) + "${a}"`])}return{props:[ae(i,o)]}}),qh=(e,t,n)=>{const{exp:s,loc:r}=e;return s||n.onError(nt(58,r)),{props:[],needRuntime:n.helper(_f)}},zh=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(t.onError(nt(60,e.loc)),t.removeNode())},Jh=[Bh],Yh={cloak:Mh,html:Dh,text:Hh,model:Vh,on:Wh,show:qh};function Xh(e,t={}){return Ih(e,ee({},Lh,t,{nodeTransforms:[zh,...Jh,...t.nodeTransforms||[]],directiveTransforms:ee({},Yh,t.directiveTransforms||{}),transformHoist:null}))}export{Ye as $,wa as A,Gf as B,Y as C,El as D,Qr as E,Ia as F,Pa as G,_l as H,Te as I,Ht as J,jn as K,If as L,Un as M,Me as N,Hf as O,Gt as P,gi as Q,xn as R,Ee as S,wi as T,ye as U,fu as V,Mt as W,Qa as X,Du as Y,on as Z,ke as _,zu as a,sp as a$,Ze as a0,hp as a1,hc as a2,Ku as a3,Hu as a4,Ti as a5,tc as a6,op as a7,ec as a8,yu as a9,Bl as aA,Kl as aB,zn as aC,jl as aD,Ul as aE,Vl as aF,Qs as aG,Zs as aH,Wa as aI,Il as aJ,xa as aK,ai as aL,mu as aM,du as aN,gu as aO,hu as aP,dp as aQ,rn as aR,kr as aS,Pl as aT,Ft as aU,yc as aV,pp as aW,_u as aX,Vu as aY,rp as aZ,cp as a_,ju as aa,Si as ab,le as ac,lu as ad,mi as ae,ep as af,tp as ag,Gu as ah,Yt as ai,Ct as aj,Js as ak,oc as al,mc as am,jt as an,fp as ao,vn as ap,bc as aq,Ju as ar,bt as as,ip as at,lc as au,ci as av,Ll as aw,Dl as ax,Xs as ay,Hl as az,Xh as b,hi as b0,_c as b1,Cl as b2,wn as b3,su as b4,Ml as b5,ru as b6,lp as b7,np as b8,uu as b9,ap as ba,qa as bb,Up as bc,nr as bd,ed as be,td as bf,Cc as bg,kp as bh,Bc as bi,nd as bj,Hr as bk,Lp as bl,Bp as bm,Ni as bn,Ac as bo,Pi as bp,Oc as bq,Ns as br,Mc as bs,Qp as bt,Zp as bu,V as bv,Ci as c,Zh as d,ee as e,Aa as f,Qf as g,zf as h,z as i,Jf as j,ni as k,At as l,sn as m,de as n,Gs as o,bs as p,si as q,bu as r,Yf as s,oi as t,js as u,ti as v,ui as w,ps as x,yl as y,va as z}; 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!!n[r.toLowerCase()]:r=>!!n[r]}const ao="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",ho=Pn(ao),po="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",go=Pn(po);function kr(e){return!!e||e===""}function Mn(e){if(N(e)){const t={};for(let n=0;n{if(n){const s=n.split(_o);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Rn(e){let t="";if(se(e))t=e;else if(N(e))for(let n=0;nXe(n,t))}const af=e=>se(e)?e:e==null?"":N(e)||oe(e)&&(e.toString===Dr||!V(e.toString))?JSON.stringify(e,Hr,2):String(e),Hr=(e,t)=>t&&t.__v_isRef?Hr(e,t.value):Ct(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:ut(t)?{[`Set(${t.size})`]:[...t.values()]}:oe(t)&&!N(t)&&!Ur(t)?String(t):t,X={},yt=[],ve=()=>{},Co=()=>!1,xo=/^on[^a-z]/,Gt=e=>xo.test(e),Es=e=>e.startsWith("onUpdate:"),ie=Object.assign,ws=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Eo=Object.prototype.hasOwnProperty,J=(e,t)=>Eo.call(e,t),N=Array.isArray,Ct=e=>en(e)==="[object Map]",ut=e=>en(e)==="[object Set]",Zs=e=>en(e)==="[object Date]",V=e=>typeof e=="function",se=e=>typeof e=="string",Wt=e=>typeof e=="symbol",oe=e=>e!==null&&typeof e=="object",Ts=e=>oe(e)&&V(e.then)&&V(e.catch),Dr=Object.prototype.toString,en=e=>Dr.call(e),wo=e=>en(e).slice(8,-1),Ur=e=>en(e)==="[object Object]",As=e=>se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ht=Pn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),In=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},To=/-(\w)/g,Te=In(e=>e.replace(To,(t,n)=>n?n.toUpperCase():"")),Ao=/\B([A-Z])/g,Oe=In(e=>e.replace(Ao,"-$1").toLowerCase()),Sn=In(e=>e.charAt(0).toUpperCase()+e.slice(1)),gn=In(e=>e?`on${Sn(e)}`:""),At=(e,t)=>!Object.is(e,t),xt=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ze=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Qs;const Fo=()=>Qs||(Qs=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let be;class $r{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&be&&(this.parent=be,this.index=(be.scopes||(be.scopes=[])).push(this)-1)}run(t){if(this.active){const n=be;try{return be=this,t()}finally{be=n}}}on(){be=this}off(){be=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Kr=e=>(e.w&Qe)>0,Vr=e=>(e.n&Qe)>0,vo=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(u==="length"||u>=s)&&l.push(c)});else switch(n!==void 0&&l.push(o.get(n)),t){case"add":N(e)?As(n)&&l.push(o.get("length")):(l.push(o.get(ot)),Ct(e)&&l.push(o.get(is)));break;case"delete":N(e)||(l.push(o.get(ot)),Ct(e)&&l.push(o.get(is)));break;case"set":Ct(e)&&l.push(o.get(ot));break}if(l.length===1)l[0]&&os(l[0]);else{const c=[];for(const u of l)u&&c.push(...u);os(Fs(c))}}function os(e,t){const n=N(e)?e:[...e];for(const s of n)s.computed&&er(s);for(const s of n)s.computed||er(s)}function er(e,t){(e!==Fe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Mo=Pn("__proto__,__v_isRef,__isVue"),Jr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Wt)),Ro=Bn(),Oo=Bn(!1,!0),Io=Bn(!0),So=Bn(!0,!0),tr=No();function No(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Y(this);for(let i=0,o=this.length;i{e[t]=function(...n){at();const s=Y(this)[t].apply(this,n);return dt(),s}}),e}function Bn(e=!1,t=!1){return function(s,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?ei:Gr:t?Qr:Zr).get(s))return s;const o=N(s);if(!e&&o&&J(tr,r))return Reflect.get(tr,r,i);const l=Reflect.get(s,r,i);return(Wt(r)?Jr.has(r):Mo(r))||(e||xe(s,"get",r),t)?l:ce(l)?o&&As(r)?l:l.value:oe(l)?e?ti(l):Ps(l):l}}const Bo=Yr(),Lo=Yr(!0);function Yr(e=!1){return function(n,s,r,i){let o=n[s];if(qt(o)&&ce(o)&&!ce(r))return!1;if(!e&&!qt(r)&&(ls(r)||(r=Y(r),o=Y(o)),!N(n)&&ce(o)&&!ce(r)))return o.value=r,!0;const l=N(n)&&As(s)?Number(s)e,Ln=e=>Reflect.getPrototypeOf(e);function rn(e,t,n=!1,s=!1){e=e.__v_raw;const r=Y(e),i=Y(t);n||(t!==i&&xe(r,"get",t),xe(r,"get",i));const{has:o}=Ln(r),l=s?vs:n?Ms:Jt;if(o.call(r,t))return l(e.get(t));if(o.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function on(e,t=!1){const n=this.__v_raw,s=Y(n),r=Y(e);return t||(e!==r&&xe(s,"has",e),xe(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function ln(e,t=!1){return e=e.__v_raw,!t&&xe(Y(e),"iterate",ot),Reflect.get(e,"size",e)}function nr(e){e=Y(e);const t=Y(this);return Ln(t).has.call(t,e)||(t.add(e),He(t,"add",e,e)),this}function sr(e,t){t=Y(t);const n=Y(this),{has:s,get:r}=Ln(n);let i=s.call(n,e);i||(e=Y(e),i=s.call(n,e));const o=r.call(n,e);return n.set(e,t),i?At(t,o)&&He(n,"set",e,t):He(n,"add",e,t),this}function rr(e){const t=Y(this),{has:n,get:s}=Ln(t);let r=n.call(t,e);r||(e=Y(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&He(t,"delete",e,void 0),i}function ir(){const e=Y(this),t=e.size!==0,n=e.clear();return t&&He(e,"clear",void 0,void 0),n}function cn(e,t){return function(s,r){const i=this,o=i.__v_raw,l=Y(o),c=t?vs:e?Ms:Jt;return!e&&xe(l,"iterate",ot),o.forEach((u,p)=>s.call(r,c(u),c(p),i))}}function fn(e,t,n){return function(...s){const r=this.__v_raw,i=Y(r),o=Ct(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,u=r[e](...s),p=n?vs:t?Ms:Jt;return!t&&xe(i,"iterate",c?is:ot),{next(){const{value:h,done:g}=u.next();return g?{value:h,done:g}:{value:l?[p(h[0]),p(h[1])]:p(h),done:g}},[Symbol.iterator](){return this}}}}function je(e){return function(...t){return e==="delete"?!1:this}}function jo(){const e={get(i){return rn(this,i)},get size(){return ln(this)},has:on,add:nr,set:sr,delete:rr,clear:ir,forEach:cn(!1,!1)},t={get(i){return rn(this,i,!1,!0)},get size(){return ln(this)},has:on,add:nr,set:sr,delete:rr,clear:ir,forEach:cn(!1,!0)},n={get(i){return rn(this,i,!0)},get size(){return ln(this,!0)},has(i){return on.call(this,i,!0)},add:je("add"),set:je("set"),delete:je("delete"),clear:je("clear"),forEach:cn(!0,!1)},s={get(i){return rn(this,i,!0,!0)},get size(){return ln(this,!0)},has(i){return on.call(this,i,!0)},add:je("add"),set:je("set"),delete:je("delete"),clear:je("clear"),forEach:cn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=fn(i,!1,!1),n[i]=fn(i,!0,!1),t[i]=fn(i,!1,!0),s[i]=fn(i,!0,!0)}),[e,n,t,s]}const[Ko,Vo,Wo,qo]=jo();function kn(e,t){const n=t?e?qo:Wo:e?Vo:Ko;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(J(n,r)&&r in s?n:s,r,i)}const Jo={get:kn(!1,!1)},Yo={get:kn(!1,!0)},zo={get:kn(!0,!1)},Xo={get:kn(!0,!0)},Zr=new WeakMap,Qr=new WeakMap,Gr=new WeakMap,ei=new WeakMap;function Zo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Qo(e){return e.__v_skip||!Object.isExtensible(e)?0:Zo(wo(e))}function Ps(e){return qt(e)?e:Hn(e,!1,zr,Jo,Zr)}function Go(e){return Hn(e,!1,Uo,Yo,Qr)}function ti(e){return Hn(e,!0,Xr,zo,Gr)}function _f(e){return Hn(e,!0,$o,Xo,ei)}function Hn(e,t,n,s,r){if(!oe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=Qo(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function Et(e){return qt(e)?Et(e.__v_raw):!!(e&&e.__v_isReactive)}function qt(e){return!!(e&&e.__v_isReadonly)}function ls(e){return!!(e&&e.__v_isShallow)}function ni(e){return Et(e)||qt(e)}function Y(e){const t=e&&e.__v_raw;return t?Y(t):e}function si(e){return Cn(e,"__v_skip",!0),e}const Jt=e=>oe(e)?Ps(e):e,Ms=e=>oe(e)?ti(e):e;function Rs(e){Ye&&Fe&&(e=Y(e),qr(e.dep||(e.dep=Fs())))}function Dn(e,t){e=Y(e),e.dep&&os(e.dep)}function ce(e){return!!(e&&e.__v_isRef===!0)}function Xn(e){return ri(e,!1)}function bf(e){return ri(e,!0)}function ri(e,t){return ce(e)?e:new el(e,t)}class el{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Y(t),this._value=n?t:Jt(t)}get value(){return Rs(this),this._value}set value(t){t=this.__v_isShallow?t:Y(t),At(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Jt(t),Dn(this))}}function yf(e){Dn(e)}function tl(e){return ce(e)?e.value:e}const nl={get:(e,t,n)=>tl(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ce(r)&&!ce(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function ii(e){return Et(e)?e:new Proxy(e,nl)}class sl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>Rs(this),()=>Dn(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function Cf(e){return new sl(e)}function xf(e){const t=N(e)?new Array(e.length):{};for(const n in e)t[n]=il(e,n);return t}class rl{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function il(e,t,n){const s=e[t];return ce(s)?s:new rl(e,t,n)}class ol{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Nn(t,()=>{this._dirty||(this._dirty=!0,Dn(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=Y(this);return Rs(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function ll(e,t,n=!1){let s,r;const i=V(e);return i?(s=e,r=ve):(s=e.get,r=e.set),new ol(s,r,i||!r,n)}const Dt=[];function cl(e,...t){at();const n=Dt.length?Dt[Dt.length-1].component:null,s=n&&n.appContext.config.warnHandler,r=fl();if(s)ke(s,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${Wi(n,i.type)}>`).join(` -`),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(` -`,...ul(r)),console.warn(...i)}dt()}function fl(){let e=Dt[Dt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function ul(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[` -`],...al(n))}),t}function al({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,r=` at <${Wi(e.component,e.type,s)}`,i=">"+n;return e.props?[r,...dl(e.props),i]:[r+i]}function dl(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...oi(s,e[s]))}),n.length>3&&t.push(" ..."),t}function oi(e,t,n){return se(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:ce(t)?(t=oi(e,Y(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):V(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Y(t),n?t:[`${e}=`,t])}function ke(e,t,n,s){let r;try{r=s?e(...s):e()}catch(i){Mt(i,t,n)}return r}function we(e,t,n,s){if(V(e)){const i=ke(e,t,n,s);return i&&Ts(i)&&i.catch(o=>{Mt(o,t,n)}),i}const r=[];for(let i=0;i>>1;Yt(Ce[s])Be&&Ce.splice(t,1)}function ui(e,t,n,s){N(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?s+1:s))&&n.push(e),fi()}function ml(e){ui(e,Lt,Ut,_t)}function ai(e){ui(e,We,$t,bt)}function Un(e,t=null){if(Ut.length){for(fs=t,Lt=[...new Set(Ut)],Ut.length=0,_t=0;_tYt(n)-Yt(s)),bt=0;bte.id==null?1/0:e.id;function di(e){cs=!1,xn=!0,Un(e),Ce.sort((n,s)=>Yt(n)-Yt(s));const t=ve;try{for(Be=0;BeIt.emit(r,...i)),un=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((s=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||s===void 0)&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{_l(i,t)}),setTimeout(()=>{It||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,un=[])},3e3)):un=[]}function bl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||X;let r=n;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in s){const p=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:g}=s[p]||X;g&&(r=n.map(E=>E.trim())),h&&(r=n.map(Ze))}let l,c=s[l=gn(t)]||s[l=gn(Te(t))];!c&&i&&(c=s[l=gn(Oe(t))]),c&&we(c,e,6,r);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,we(u,e,6,r)}}function hi(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!V(e)){const c=u=>{const p=hi(u,t,!0);p&&(l=!0,ie(o,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(s.set(e,null),null):(N(i)?i.forEach(c=>o[c]=null):ie(o,i),s.set(e,o),o)}function $n(e,t){return!e||!Gt(t)?!1:(t=t.slice(2).replace(/Once$/,""),J(e,t[0].toLowerCase()+t.slice(1))||J(e,Oe(t))||J(e,t))}let ae=null,jn=null;function zt(e){const t=ae;return ae=e,jn=e&&e.type.__scopeId||null,t}function Ef(e){jn=e}function wf(){jn=null}const Tf=e=>pi;function pi(e,t=ae,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&br(-1);const i=zt(t),o=e(...r);return zt(i),s._d&&br(1),o};return s._n=!0,s._c=!0,s._d=!0,s}function mn(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:i,propsOptions:[o],slots:l,attrs:c,emit:u,render:p,renderCache:h,data:g,setupState:E,ctx:v,inheritAttrs:H}=e;let I,_;const d=zt(e);try{if(n.shapeFlag&4){const w=r||s;I=ye(p.call(w,w,h,i,E,g,v)),_=c}else{const w=t;I=ye(w.length>1?w(i,{attrs:c,slots:l,emit:u}):w(i,null)),_=t.props?c:Cl(c)}}catch(w){Kt.length=0,Mt(w,e,1),I=ne(he)}let b=I;if(_&&H!==!1){const w=Object.keys(_),{shapeFlag:R}=b;w.length&&R&7&&(o&&w.some(Es)&&(_=xl(_,o)),b=De(b,_))}return n.dirs&&(b=De(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),I=b,zt(d),I}function yl(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||Gt(n))&&((t||(t={}))[n]=e[n]);return t},xl=(e,t)=>{const n={};for(const s in e)(!Es(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function El(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?or(s,o,u):!!o;if(c&8){const p=t.dynamicProps;for(let h=0;he.__isSuspense,wl={name:"Suspense",__isSuspense:!0,process(e,t,n,s,r,i,o,l,c,u){e==null?Tl(t,n,s,r,i,o,l,c,u):Al(e,t,n,s,r,o,l,c,u)},hydrate:Fl,create:Ns,normalize:vl},Af=wl;function Xt(e,t){const n=e.props&&e.props[t];V(n)&&n()}function Tl(e,t,n,s,r,i,o,l,c){const{p:u,o:{createElement:p}}=c,h=p("div"),g=e.suspense=Ns(e,r,s,t,h,n,i,o,l,c);u(null,g.pendingBranch=e.ssContent,h,null,s,g,i,o),g.deps>0?(Xt(e,"onPending"),Xt(e,"onFallback"),u(null,e.ssFallback,t,n,s,null,i,o),wt(g,e.ssFallback)):g.resolve()}function Al(e,t,n,s,r,i,o,l,{p:c,um:u,o:{createElement:p}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const g=t.ssContent,E=t.ssFallback,{activeBranch:v,pendingBranch:H,isInFallback:I,isHydrating:_}=h;if(H)h.pendingBranch=g,Re(g,H)?(c(H,g,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0?h.resolve():I&&(c(v,E,n,s,r,null,i,o,l),wt(h,E))):(h.pendingId++,_?(h.isHydrating=!1,h.activeBranch=H):u(H,r,h),h.deps=0,h.effects.length=0,h.hiddenContainer=p("div"),I?(c(null,g,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0?h.resolve():(c(v,E,n,s,r,null,i,o,l),wt(h,E))):v&&Re(g,v)?(c(v,g,n,s,r,h,i,o,l),h.resolve(!0)):(c(null,g,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0&&h.resolve()));else if(v&&Re(g,v))c(v,g,n,s,r,h,i,o,l),wt(h,g);else if(Xt(t,"onPending"),h.pendingBranch=g,h.pendingId++,c(null,g,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0)h.resolve();else{const{timeout:d,pendingId:b}=h;d>0?setTimeout(()=>{h.pendingId===b&&h.fallback(E)},d):d===0&&h.fallback(E)}}function Ns(e,t,n,s,r,i,o,l,c,u,p=!1){const{p:h,m:g,um:E,n:v,o:{parentNode:H,remove:I}}=u,_=Ze(e.props&&e.props.timeout),d={vnode:e,parent:t,parentComponent:n,isSVG:o,container:s,hiddenContainer:r,anchor:i,deps:0,pendingId:0,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(b=!1){const{vnode:w,activeBranch:R,pendingBranch:B,pendingId:D,effects:T,parentComponent:L,container:U}=d;if(d.isHydrating)d.isHydrating=!1;else if(!b){const q=R&&B.transition&&B.transition.mode==="out-in";q&&(R.transition.afterLeave=()=>{D===d.pendingId&&g(B,U,k,0)});let{anchor:k}=d;R&&(k=v(R),E(R,L,d,!0)),q||g(B,U,k,0)}wt(d,B),d.pendingBranch=null,d.isInFallback=!1;let K=d.parent,O=!1;for(;K;){if(K.pendingBranch){K.effects.push(...T),O=!0;break}K=K.parent}O||ai(T),d.effects=[],Xt(w,"onResolve")},fallback(b){if(!d.pendingBranch)return;const{vnode:w,activeBranch:R,parentComponent:B,container:D,isSVG:T}=d;Xt(w,"onFallback");const L=v(R),U=()=>{!d.isInFallback||(h(null,b,D,L,B,null,T,l,c),wt(d,b))},K=b.transition&&b.transition.mode==="out-in";K&&(R.transition.afterLeave=U),d.isInFallback=!0,E(R,B,null,!0),K||U()},move(b,w,R){d.activeBranch&&g(d.activeBranch,b,w,R),d.container=b},next(){return d.activeBranch&&v(d.activeBranch)},registerDep(b,w){const R=!!d.pendingBranch;R&&d.deps++;const B=b.vnode.el;b.asyncDep.catch(D=>{Mt(D,b,0)}).then(D=>{if(b.isUnmounted||d.isUnmounted||d.pendingId!==b.suspenseId)return;b.asyncResolved=!0;const{vnode:T}=b;ms(b,D,!1),B&&(T.el=B);const L=!B&&b.subTree.el;w(b,T,H(B||b.subTree.el),B?null:v(b.subTree),d,o,c),L&&I(L),Ss(b,T.el),R&&--d.deps===0&&d.resolve()})},unmount(b,w){d.isUnmounted=!0,d.activeBranch&&E(d.activeBranch,n,b,w),d.pendingBranch&&E(d.pendingBranch,n,b,w)}};return d}function Fl(e,t,n,s,r,i,o,l,c){const u=t.suspense=Ns(t,s,n,e.parentNode,document.createElement("div"),null,r,i,o,l,!0),p=c(e,u.pendingBranch=t.ssContent,n,u,i,o);return u.deps===0&&u.resolve(),p}function vl(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=lr(s?n.default:n),e.ssFallback=s?lr(n.fallback):ne(he)}function lr(e){let t;if(V(e)){const n=ct&&e._c;n&&(e._d=!1,Ks()),e=e(),n&&(e._d=!0,t=me,Ni())}return N(e)&&(e=yl(e)),e=ye(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function mi(e,t){t&&t.pendingBranch?N(e)?t.effects.push(...e):t.effects.push(e):ai(e)}function wt(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e,r=n.el=t.el;s&&s.subTree===n&&(s.vnode.el=r,Ss(s,r))}function Pl(e,t){if(le){let n=le.provides;const s=le.parent&&le.parent.provides;s===n&&(n=le.provides=Object.create(s)),n[e]=t}}function _n(e,t,n=!1){const s=le||ae;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&V(t)?t.call(s.proxy):t}}function Ff(e,t){return tn(e,null,t)}function Ml(e,t){return tn(e,null,{flush:"post"})}function vf(e,t){return tn(e,null,{flush:"sync"})}const cr={};function bn(e,t,n){return tn(e,t,n)}function tn(e,t,{immediate:n,deep:s,flush:r,onTrack:i,onTrigger:o}=X){const l=le;let c,u=!1,p=!1;if(ce(e)?(c=()=>e.value,u=ls(e)):Et(e)?(c=()=>e,s=!0):N(e)?(p=!0,u=e.some(_=>Et(_)||ls(_)),c=()=>e.map(_=>{if(ce(_))return _.value;if(Et(_))return it(_);if(V(_))return ke(_,l,2)})):V(e)?t?c=()=>ke(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return h&&h(),we(e,l,3,[g])}:c=ve,t&&s){const _=c;c=()=>it(_())}let h,g=_=>{h=I.onStop=()=>{ke(_,l,4)}};if(vt)return g=ve,t?n&&we(t,l,3,[c(),p?[]:void 0,g]):c(),ve;let E=p?[]:cr;const v=()=>{if(!!I.active)if(t){const _=I.run();(s||u||(p?_.some((d,b)=>At(d,E[b])):At(_,E)))&&(h&&h(),we(t,l,3,[_,E===cr?void 0:E,g]),E=_)}else I.run()};v.allowRecurse=!!t;let H;r==="sync"?H=v:r==="post"?H=()=>fe(v,l&&l.suspense):H=()=>ml(v);const I=new Nn(c,H);return t?n?v():E=I.run():r==="post"?fe(I.run.bind(I),l&&l.suspense):I.run(),()=>{I.stop(),l&&l.scope&&ws(l.scope.effects,I)}}function Rl(e,t,n){const s=this.proxy,r=se(e)?e.includes(".")?_i(s,e):()=>s[e]:e.bind(s,s);let i;V(t)?i=t:(i=t.handler,n=t);const o=le;Ge(this);const l=tn(r,i.bind(s),n);return o?Ge(o):ze(),l}function _i(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{it(n,t)});else if(Ur(e))for(const n in e)it(e[n],t);return e}function bi(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Vn(()=>{e.isMounted=!0}),ks(()=>{e.isUnmounting=!0}),e}const Ee=[Function,Array],Ol={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ee,onEnter:Ee,onAfterEnter:Ee,onEnterCancelled:Ee,onBeforeLeave:Ee,onLeave:Ee,onAfterLeave:Ee,onLeaveCancelled:Ee,onBeforeAppear:Ee,onAppear:Ee,onAfterAppear:Ee,onAppearCancelled:Ee},setup(e,{slots:t}){const n=ht(),s=bi();let r;return()=>{const i=t.default&&Bs(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const H of i)if(H.type!==he){o=H;break}}const l=Y(e),{mode:c}=l;if(s.isLeaving)return Zn(o);const u=fr(o);if(!u)return Zn(o);const p=Zt(u,l,s,n);Ft(u,p);const h=n.subTree,g=h&&fr(h);let E=!1;const{getTransitionKey:v}=u.type;if(v){const H=v();r===void 0?r=H:H!==r&&(r=H,E=!0)}if(g&&g.type!==he&&(!Re(u,g)||E)){const H=Zt(g,l,s,n);if(Ft(g,H),c==="out-in")return s.isLeaving=!0,H.afterLeave=()=>{s.isLeaving=!1,n.update()},Zn(o);c==="in-out"&&u.type!==he&&(H.delayLeave=(I,_,d)=>{const b=Ci(s,g);b[String(g.key)]=g,I._leaveCb=()=>{_(),I._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=d})}return o}}},yi=Ol;function Ci(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Zt(e,t,n,s){const{appear:r,mode:i,persisted:o=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:p,onBeforeLeave:h,onLeave:g,onAfterLeave:E,onLeaveCancelled:v,onBeforeAppear:H,onAppear:I,onAfterAppear:_,onAppearCancelled:d}=t,b=String(e.key),w=Ci(n,e),R=(T,L)=>{T&&we(T,s,9,L)},B=(T,L)=>{const U=L[1];R(T,L),N(T)?T.every(K=>K.length<=1)&&U():T.length<=1&&U()},D={mode:i,persisted:o,beforeEnter(T){let L=l;if(!n.isMounted)if(r)L=H||l;else return;T._leaveCb&&T._leaveCb(!0);const U=w[b];U&&Re(e,U)&&U.el._leaveCb&&U.el._leaveCb(),R(L,[T])},enter(T){let L=c,U=u,K=p;if(!n.isMounted)if(r)L=I||c,U=_||u,K=d||p;else return;let O=!1;const q=T._enterCb=k=>{O||(O=!0,k?R(K,[T]):R(U,[T]),D.delayedLeave&&D.delayedLeave(),T._enterCb=void 0)};L?B(L,[T,q]):q()},leave(T,L){const U=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return L();R(h,[T]);let K=!1;const O=T._leaveCb=q=>{K||(K=!0,L(),q?R(v,[T]):R(E,[T]),T._leaveCb=void 0,w[U]===e&&delete w[U])};w[U]=e,g?B(g,[T,O]):O()},clone(T){return Zt(T,t,n,s)}};return D}function Zn(e){if(nn(e))return e=De(e),e.children=null,e}function fr(e){return nn(e)?e.children?e.children[0]:void 0:e}function Ft(e,t){e.shapeFlag&6&&e.component?Ft(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Bs(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;function Pf(e){V(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,timeout:i,suspensible:o=!0,onError:l}=e;let c=null,u,p=0;const h=()=>(p++,c=null,g()),g=()=>{let E;return c||(E=c=t().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),l)return new Promise((H,I)=>{l(v,()=>H(h()),()=>I(v),p+1)});throw v}).then(v=>E!==c&&c?c:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),u=v,v)))};return xi({name:"AsyncComponentWrapper",__asyncLoader:g,get __asyncResolved(){return u},setup(){const E=le;if(u)return()=>Qn(u,E);const v=d=>{c=null,Mt(d,E,13,!s)};if(o&&E.suspense||vt)return g().then(d=>()=>Qn(d,E)).catch(d=>(v(d),()=>s?ne(s,{error:d}):null));const H=Xn(!1),I=Xn(),_=Xn(!!r);return r&&setTimeout(()=>{_.value=!1},r),i!=null&&setTimeout(()=>{if(!H.value&&!I.value){const d=new Error(`Async component timed out after ${i}ms.`);v(d),I.value=d}},i),g().then(()=>{H.value=!0,E.parent&&nn(E.parent.vnode)&&Is(E.parent.update)}).catch(d=>{v(d),I.value=d}),()=>{if(H.value&&u)return Qn(u,E);if(I.value&&s)return ne(s,{error:I.value});if(n&&!_.value)return ne(n)}}})}function Qn(e,{vnode:{ref:t,props:n,children:s,shapeFlag:r},parent:i}){const o=ne(e,n,s);return o.ref=t,o}const nn=e=>e.type.__isKeepAlive,Il={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ht(),s=n.ctx;if(!s.renderer)return()=>{const d=t.default&&t.default();return d&&d.length===1?d[0]:d};const r=new Map,i=new Set;let o=null;const l=n.suspense,{renderer:{p:c,m:u,um:p,o:{createElement:h}}}=s,g=h("div");s.activate=(d,b,w,R,B)=>{const D=d.component;u(d,b,w,0,l),c(D.vnode,d,b,w,D,l,R,d.slotScopeIds,B),fe(()=>{D.isDeactivated=!1,D.a&&xt(D.a);const T=d.props&&d.props.onVnodeMounted;T&&ge(T,D.parent,d)},l)},s.deactivate=d=>{const b=d.component;u(d,g,null,1,l),fe(()=>{b.da&&xt(b.da);const w=d.props&&d.props.onVnodeUnmounted;w&&ge(w,b.parent,d),b.isDeactivated=!0},l)};function E(d){Gn(d),p(d,n,l,!0)}function v(d){r.forEach((b,w)=>{const R=vn(b.type);R&&(!d||!d(R))&&H(w)})}function H(d){const b=r.get(d);!o||b.type!==o.type?E(b):o&&Gn(o),r.delete(d),i.delete(d)}bn(()=>[e.include,e.exclude],([d,b])=>{d&&v(w=>kt(d,w)),b&&v(w=>!kt(b,w))},{flush:"post",deep:!0});let I=null;const _=()=>{I!=null&&r.set(I,es(n.subTree))};return Vn(_),Ls(_),ks(()=>{r.forEach(d=>{const{subTree:b,suspense:w}=n,R=es(b);if(d.type===R.type){Gn(R);const B=R.component.da;B&&fe(B,w);return}E(d)})}),()=>{if(I=null,!t.default)return null;const d=t.default(),b=d[0];if(d.length>1)return o=null,d;if(!ft(b)||!(b.shapeFlag&4)&&!(b.shapeFlag&128))return o=null,b;let w=es(b);const R=w.type,B=vn(lt(w)?w.type.__asyncResolved||{}:R),{include:D,exclude:T,max:L}=e;if(D&&(!B||!kt(D,B))||T&&B&&kt(T,B))return o=w,b;const U=w.key==null?R:w.key,K=r.get(U);return w.el&&(w=De(w),b.shapeFlag&128&&(b.ssContent=w)),I=U,K?(w.el=K.el,w.component=K.component,w.transition&&Ft(w,w.transition),w.shapeFlag|=512,i.delete(U),i.add(U)):(i.add(U),L&&i.size>parseInt(L,10)&&H(i.values().next().value)),w.shapeFlag|=256,o=w,gi(b.type)?b:w}}},Mf=Il;function kt(e,t){return N(e)?e.some(n=>kt(n,t)):se(e)?e.split(",").includes(t):e.test?e.test(t):!1}function Sl(e,t){Ei(e,"a",t)}function Nl(e,t){Ei(e,"da",t)}function Ei(e,t,n=le){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Kn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)nn(r.parent.vnode)&&Bl(s,t,n,r),r=r.parent}}function Bl(e,t,n,s){const r=Kn(t,e,s,!0);Hs(()=>{ws(s[t],r)},n)}function Gn(e){let t=e.shapeFlag;t&256&&(t-=256),t&512&&(t-=512),e.shapeFlag=t}function es(e){return e.shapeFlag&128?e.ssContent:e}function Kn(e,t,n=le,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;at(),Ge(n);const l=we(t,n,e,o);return ze(),dt(),l});return s?r.unshift(i):r.push(i),i}}const Ue=e=>(t,n=le)=>(!vt||e==="sp")&&Kn(e,t,n),Ll=Ue("bm"),Vn=Ue("m"),kl=Ue("bu"),Ls=Ue("u"),ks=Ue("bum"),Hs=Ue("um"),Hl=Ue("sp"),Dl=Ue("rtg"),Ul=Ue("rtc");function $l(e,t=le){Kn("ec",e,t)}function Rf(e,t){const n=ae;if(n===null)return e;const s=qn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;it(o,l,void 0,i&&i[l]));else{const o=Object.keys(e);r=new Array(o.length);for(let l=0,c=o.length;lft(t)?!(t.type===he||t.type===ue&&!Ti(t.children)):!0)?e:null}function kf(e){const t={};for(const n in e)t[gn(n)]=e[n];return t}const us=e=>e?$i(e)?qn(e)||e.proxy:us(e.parent):null,wn=ie(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>us(e.parent),$root:e=>us(e.root),$emit:e=>e.emit,$options:e=>Fi(e),$forceUpdate:e=>e.f||(e.f=()=>Is(e.update)),$nextTick:e=>e.n||(e.n=ci.bind(e.proxy)),$watch:e=>Rl.bind(e)}),as={get({_:e},t){const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;let u;if(t[0]!=="$"){const E=o[t];if(E!==void 0)switch(E){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(s!==X&&J(s,t))return o[t]=1,s[t];if(r!==X&&J(r,t))return o[t]=2,r[t];if((u=e.propsOptions[0])&&J(u,t))return o[t]=3,i[t];if(n!==X&&J(n,t))return o[t]=4,n[t];ds&&(o[t]=0)}}const p=wn[t];let h,g;if(p)return t==="$attrs"&&xe(e,"get",t),p(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==X&&J(n,t))return o[t]=4,n[t];if(g=c.config.globalProperties,J(g,t))return g[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return r!==X&&J(r,t)?(r[t]=n,!0):s!==X&&J(s,t)?(s[t]=n,!0):J(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==X&&J(e,o)||t!==X&&J(t,o)||(l=i[0])&&J(l,o)||J(s,o)||J(wn,o)||J(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:J(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Kl=ie({},as,{get(e,t){if(t!==Symbol.unscopables)return as.get(e,t,e)},has(e,t){return t[0]!=="_"&&!ho(t)}});let ds=!0;function Vl(e){const t=Fi(e),n=e.proxy,s=e.ctx;ds=!1,t.beforeCreate&&ar(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:u,created:p,beforeMount:h,mounted:g,beforeUpdate:E,updated:v,activated:H,deactivated:I,beforeDestroy:_,beforeUnmount:d,destroyed:b,unmounted:w,render:R,renderTracked:B,renderTriggered:D,errorCaptured:T,serverPrefetch:L,expose:U,inheritAttrs:K,components:O,directives:q,filters:k}=t;if(u&&Wl(u,s,null,e.appContext.config.unwrapInjectedRef),o)for(const re in o){const ee=o[re];V(ee)&&(s[re]=ee.bind(n))}if(r){const re=r.call(n,n);oe(re)&&(e.data=Ps(re))}if(ds=!0,i)for(const re in i){const ee=i[re],Ie=V(ee)?ee.bind(n,n):V(ee.get)?ee.get.bind(n,n):ve,Jn=!V(ee)&&V(ee.set)?ee.set.bind(n):ve,Rt=yc({get:Ie,set:Jn});Object.defineProperty(s,re,{enumerable:!0,configurable:!0,get:()=>Rt.value,set:pt=>Rt.value=pt})}if(l)for(const re in l)Ai(l[re],s,n,re);if(c){const re=V(c)?c.call(n):c;Reflect.ownKeys(re).forEach(ee=>{Pl(ee,re[ee])})}p&&ar(p,e,"c");function Z(re,ee){N(ee)?ee.forEach(Ie=>re(Ie.bind(n))):ee&&re(ee.bind(n))}if(Z(Ll,h),Z(Vn,g),Z(kl,E),Z(Ls,v),Z(Sl,H),Z(Nl,I),Z($l,T),Z(Ul,B),Z(Dl,D),Z(ks,d),Z(Hs,w),Z(Hl,L),N(U))if(U.length){const re=e.exposed||(e.exposed={});U.forEach(ee=>{Object.defineProperty(re,ee,{get:()=>n[ee],set:Ie=>n[ee]=Ie})})}else e.exposed||(e.exposed={});R&&e.render===ve&&(e.render=R),K!=null&&(e.inheritAttrs=K),O&&(e.components=O),q&&(e.directives=q)}function Wl(e,t,n=ve,s=!1){N(e)&&(e=hs(e));for(const r in e){const i=e[r];let o;oe(i)?"default"in i?o=_n(i.from||r,i.default,!0):o=_n(i.from||r):o=_n(i),ce(o)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[r]=o}}function ar(e,t,n){we(N(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ai(e,t,n,s){const r=s.includes(".")?_i(n,s):()=>n[s];if(se(e)){const i=t[e];V(i)&&bn(r,i)}else if(V(e))bn(r,e.bind(n));else if(oe(e))if(N(e))e.forEach(i=>Ai(i,t,n,s));else{const i=V(e.handler)?e.handler.bind(n):t[e.handler];V(i)&&bn(r,i,e)}}function Fi(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(u=>Tn(c,u,o,!0)),Tn(c,t,o)),i.set(t,c),c}function Tn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Tn(e,i,n,!0),r&&r.forEach(o=>Tn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=ql[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const ql={data:dr,props:st,emits:st,methods:st,computed:st,beforeCreate:de,created:de,beforeMount:de,mounted:de,beforeUpdate:de,updated:de,beforeDestroy:de,beforeUnmount:de,destroyed:de,unmounted:de,activated:de,deactivated:de,errorCaptured:de,serverPrefetch:de,components:st,directives:st,watch:Yl,provide:dr,inject:Jl};function dr(e,t){return t?e?function(){return ie(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Jl(e,t){return st(hs(e),hs(t))}function hs(e){if(N(e)){const t={};for(let n=0;n0)&&!(o&16)){if(o&8){const p=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[g,E]=Pi(h,t,!0);ie(o,g),E&&l.push(...E)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!i&&!c)return s.set(e,yt),yt;if(N(i))for(let p=0;p-1,E[1]=H<0||v-1||J(E,"default"))&&l.push(h)}}}const u=[o,l];return s.set(e,u),u}function hr(e){return e[0]!=="$"}function pr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function gr(e,t){return pr(e)===pr(t)}function mr(e,t){return N(t)?t.findIndex(n=>gr(n,e)):V(t)&&gr(t,e)?0:-1}const Mi=e=>e[0]==="_"||e==="$stable",$s=e=>N(e)?e.map(ye):[ye(e)],Zl=(e,t,n)=>{if(t._n)return t;const s=pi((...r)=>$s(t(...r)),n);return s._c=!1,s},Ri=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Mi(r))continue;const i=e[r];if(V(i))t[r]=Zl(r,i,s);else if(i!=null){const o=$s(i);t[r]=()=>o}}},Oi=(e,t)=>{const n=$s(t);e.slots.default=()=>n},Ql=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Y(t),Cn(t,"_",n)):Ri(t,e.slots={})}else e.slots={},t&&Oi(e,t);Cn(e.slots,Wn,1)},Gl=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=X;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(ie(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Ri(t,r)),o=t}else t&&(Oi(e,t),o={default:1});if(i)for(const l in r)!Mi(l)&&!(l in o)&&delete r[l]};function Ii(){return{app:null,config:{isNativeTag:Co,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ec=0;function tc(e,t){return function(s,r=null){V(s)||(s=Object.assign({},s)),r!=null&&!oe(r)&&(r=null);const i=Ii(),o=new Set;let l=!1;const c=i.app={_uid:ec++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:wc,get config(){return i.config},set config(u){},use(u,...p){return o.has(u)||(u&&V(u.install)?(o.add(u),u.install(c,...p)):V(u)&&(o.add(u),u(c,...p))),c},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),c},component(u,p){return p?(i.components[u]=p,c):i.components[u]},directive(u,p){return p?(i.directives[u]=p,c):i.directives[u]},mount(u,p,h){if(!l){const g=ne(s,r);return g.appContext=i,p&&t?t(g,u):e(g,u,h),l=!0,c._container=u,u.__vue_app__=c,qn(g.component)||g.component.proxy}},unmount(){l&&(e(null,c._container),delete c._container.__vue_app__)},provide(u,p){return i.provides[u]=p,c}};return c}}function An(e,t,n,s,r=!1){if(N(e)){e.forEach((g,E)=>An(g,t&&(N(t)?t[E]:t),n,s,r));return}if(lt(s)&&!r)return;const i=s.shapeFlag&4?qn(s.component)||s.component.proxy:s.el,o=r?null:i,{i:l,r:c}=e,u=t&&t.r,p=l.refs===X?l.refs={}:l.refs,h=l.setupState;if(u!=null&&u!==c&&(se(u)?(p[u]=null,J(h,u)&&(h[u]=null)):ce(u)&&(u.value=null)),V(c))ke(c,l,12,[o,p]);else{const g=se(c),E=ce(c);if(g||E){const v=()=>{if(e.f){const H=g?p[c]:c.value;r?N(H)&&ws(H,i):N(H)?H.includes(i)||H.push(i):g?(p[c]=[i],J(h,c)&&(h[c]=p[c])):(c.value=[i],e.k&&(p[e.k]=c.value))}else g?(p[c]=o,J(h,c)&&(h[c]=o)):E&&(c.value=o,e.k&&(p[e.k]=o))};o?(v.id=-1,fe(v,n)):v()}}}let Ke=!1;const an=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",dn=e=>e.nodeType===8;function nc(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:i,parentNode:o,remove:l,insert:c,createComment:u}}=e,p=(_,d)=>{if(!d.hasChildNodes()){n(null,_,d),En(),d._vnode=_;return}Ke=!1,h(d.firstChild,_,null,null,null),En(),d._vnode=_,Ke&&console.error("Hydration completed but contains mismatches.")},h=(_,d,b,w,R,B=!1)=>{const D=dn(_)&&_.data==="[",T=()=>H(_,d,b,w,R,D),{type:L,ref:U,shapeFlag:K,patchFlag:O}=d,q=_.nodeType;d.el=_,O===-2&&(B=!1,d.dynamicChildren=null);let k=null;switch(L){case Qt:q!==3?d.children===""?(c(d.el=r(""),o(_),_),k=_):k=T():(_.data!==d.children&&(Ke=!0,_.data=d.children),k=i(_));break;case he:q!==8||D?k=T():k=i(_);break;case Tt:if(q!==1&&q!==3)k=T();else{k=_;const pe=!d.children.length;for(let Z=0;Z{B=B||!!d.dynamicChildren;const{type:D,props:T,patchFlag:L,shapeFlag:U,dirs:K}=d,O=D==="input"&&K||D==="option";if(O||L!==-1){if(K&&Me(d,null,b,"created"),T)if(O||!B||L&48)for(const k in T)(O&&k.endsWith("value")||Gt(k)&&!Ht(k))&&s(_,k,null,T[k],!1,void 0,b);else T.onClick&&s(_,"onClick",null,T.onClick,!1,void 0,b);let q;if((q=T&&T.onVnodeBeforeMount)&&ge(q,b,d),K&&Me(d,null,b,"beforeMount"),((q=T&&T.onVnodeMounted)||K)&&mi(()=>{q&&ge(q,b,d),K&&Me(d,null,b,"mounted")},w),U&16&&!(T&&(T.innerHTML||T.textContent))){let k=E(_.firstChild,d,_,b,w,R,B);for(;k;){Ke=!0;const pe=k;k=k.nextSibling,l(pe)}}else U&8&&_.textContent!==d.children&&(Ke=!0,_.textContent=d.children)}return _.nextSibling},E=(_,d,b,w,R,B,D)=>{D=D||!!d.dynamicChildren;const T=d.children,L=T.length;for(let U=0;U{const{slotScopeIds:D}=d;D&&(R=R?R.concat(D):D);const T=o(_),L=E(i(_),d,T,b,w,R,B);return L&&dn(L)&&L.data==="]"?i(d.anchor=L):(Ke=!0,c(d.anchor=u("]"),T,L),L)},H=(_,d,b,w,R,B)=>{if(Ke=!0,d.el=null,B){const L=I(_);for(;;){const U=i(_);if(U&&U!==L)l(U);else break}}const D=i(_),T=o(_);return l(_),n(null,d,T,D,b,w,an(T),R),D},I=_=>{let d=0;for(;_;)if(_=i(_),_&&dn(_)&&(_.data==="["&&d++,_.data==="]")){if(d===0)return i(_);d--}return _};return[p,h]}const fe=mi;function sc(e){return Si(e)}function rc(e){return Si(e,nc)}function Si(e,t){const n=Fo();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:u,setElementText:p,parentNode:h,nextSibling:g,setScopeId:E=ve,cloneNode:v,insertStaticContent:H}=e,I=(f,a,m,C=null,y=null,F=null,M=!1,A=null,P=!!a.dynamicChildren)=>{if(f===a)return;f&&!Re(f,a)&&(C=sn(f),$e(f,y,F,!0),f=null),a.patchFlag===-2&&(P=!1,a.dynamicChildren=null);const{type:x,ref:$,shapeFlag:S}=a;switch(x){case Qt:_(f,a,m,C);break;case he:d(f,a,m,C);break;case Tt:f==null&&b(a,m,C,M);break;case ue:q(f,a,m,C,y,F,M,A,P);break;default:S&1?B(f,a,m,C,y,F,M,A,P):S&6?k(f,a,m,C,y,F,M,A,P):(S&64||S&128)&&x.process(f,a,m,C,y,F,M,A,P,gt)}$!=null&&y&&An($,f&&f.ref,F,a||f,!a)},_=(f,a,m,C)=>{if(f==null)s(a.el=l(a.children),m,C);else{const y=a.el=f.el;a.children!==f.children&&u(y,a.children)}},d=(f,a,m,C)=>{f==null?s(a.el=c(a.children||""),m,C):a.el=f.el},b=(f,a,m,C)=>{[f.el,f.anchor]=H(f.children,a,m,C,f.el,f.anchor)},w=({el:f,anchor:a},m,C)=>{let y;for(;f&&f!==a;)y=g(f),s(f,m,C),f=y;s(a,m,C)},R=({el:f,anchor:a})=>{let m;for(;f&&f!==a;)m=g(f),r(f),f=m;r(a)},B=(f,a,m,C,y,F,M,A,P)=>{M=M||a.type==="svg",f==null?D(a,m,C,y,F,M,A,P):U(f,a,y,F,M,A,P)},D=(f,a,m,C,y,F,M,A)=>{let P,x;const{type:$,props:S,shapeFlag:j,transition:W,patchFlag:z,dirs:Q}=f;if(f.el&&v!==void 0&&z===-1)P=f.el=v(f.el);else{if(P=f.el=o(f.type,F,S&&S.is,S),j&8?p(P,f.children):j&16&&L(f.children,P,null,C,y,F&&$!=="foreignObject",M,A),Q&&Me(f,null,C,"created"),S){for(const te in S)te!=="value"&&!Ht(te)&&i(P,te,null,S[te],F,f.children,C,y,Se);"value"in S&&i(P,"value",null,S.value),(x=S.onVnodeBeforeMount)&&ge(x,C,f)}T(P,f,f.scopeId,M,C)}Q&&Me(f,null,C,"beforeMount");const G=(!y||y&&!y.pendingBranch)&&W&&!W.persisted;G&&W.beforeEnter(P),s(P,a,m),((x=S&&S.onVnodeMounted)||G||Q)&&fe(()=>{x&&ge(x,C,f),G&&W.enter(P),Q&&Me(f,null,C,"mounted")},y)},T=(f,a,m,C,y)=>{if(m&&E(f,m),C)for(let F=0;F{for(let x=P;x{const A=a.el=f.el;let{patchFlag:P,dynamicChildren:x,dirs:$}=a;P|=f.patchFlag&16;const S=f.props||X,j=a.props||X;let W;m&&tt(m,!1),(W=j.onVnodeBeforeUpdate)&&ge(W,m,a,f),$&&Me(a,f,m,"beforeUpdate"),m&&tt(m,!0);const z=y&&a.type!=="foreignObject";if(x?K(f.dynamicChildren,x,A,m,C,z,F):M||Ie(f,a,A,null,m,C,z,F,!1),P>0){if(P&16)O(A,a,S,j,m,C,y);else if(P&2&&S.class!==j.class&&i(A,"class",null,j.class,y),P&4&&i(A,"style",S.style,j.style,y),P&8){const Q=a.dynamicProps;for(let G=0;G{W&&ge(W,m,a,f),$&&Me(a,f,m,"updated")},C)},K=(f,a,m,C,y,F,M)=>{for(let A=0;A{if(m!==C){for(const A in C){if(Ht(A))continue;const P=C[A],x=m[A];P!==x&&A!=="value"&&i(f,A,x,P,M,a.children,y,F,Se)}if(m!==X)for(const A in m)!Ht(A)&&!(A in C)&&i(f,A,m[A],null,M,a.children,y,F,Se);"value"in C&&i(f,"value",m.value,C.value)}},q=(f,a,m,C,y,F,M,A,P)=>{const x=a.el=f?f.el:l(""),$=a.anchor=f?f.anchor:l("");let{patchFlag:S,dynamicChildren:j,slotScopeIds:W}=a;W&&(A=A?A.concat(W):W),f==null?(s(x,m,C),s($,m,C),L(a.children,m,$,y,F,M,A,P)):S>0&&S&64&&j&&f.dynamicChildren?(K(f.dynamicChildren,j,m,y,F,M,A),(a.key!=null||y&&a===y.subTree)&&js(f,a,!0)):Ie(f,a,m,$,y,F,M,A,P)},k=(f,a,m,C,y,F,M,A,P)=>{a.slotScopeIds=A,f==null?a.shapeFlag&512?y.ctx.activate(a,m,C,M,P):pe(a,m,C,y,F,M,P):Z(f,a,P)},pe=(f,a,m,C,y,F,M)=>{const A=f.component=Ui(f,C,y);if(nn(f)&&(A.ctx.renderer=gt),ji(A),A.asyncDep){if(y&&y.registerDep(A,re),!f.el){const P=A.subTree=ne(he);d(null,P,a,m)}return}re(A,f,a,m,y,F,M)},Z=(f,a,m)=>{const C=a.component=f.component;if(El(f,a,m))if(C.asyncDep&&!C.asyncResolved){ee(C,a,m);return}else C.next=a,gl(C.update),C.update();else a.el=f.el,C.vnode=a},re=(f,a,m,C,y,F,M)=>{const A=()=>{if(f.isMounted){let{next:$,bu:S,u:j,parent:W,vnode:z}=f,Q=$,G;tt(f,!1),$?($.el=z.el,ee(f,$,M)):$=z,S&&xt(S),(G=$.props&&$.props.onVnodeBeforeUpdate)&&ge(G,W,$,z),tt(f,!0);const te=mn(f),Ae=f.subTree;f.subTree=te,I(Ae,te,h(Ae.el),sn(Ae),f,y,F),$.el=te.el,Q===null&&Ss(f,te.el),j&&fe(j,y),(G=$.props&&$.props.onVnodeUpdated)&&fe(()=>ge(G,W,$,z),y)}else{let $;const{el:S,props:j}=a,{bm:W,m:z,parent:Q}=f,G=lt(a);if(tt(f,!1),W&&xt(W),!G&&($=j&&j.onVnodeBeforeMount)&&ge($,Q,a),tt(f,!0),S&&zn){const te=()=>{f.subTree=mn(f),zn(S,f.subTree,f,y,null)};G?a.type.__asyncLoader().then(()=>!f.isUnmounted&&te()):te()}else{const te=f.subTree=mn(f);I(null,te,m,C,f,y,F),a.el=te.el}if(z&&fe(z,y),!G&&($=j&&j.onVnodeMounted)){const te=a;fe(()=>ge($,Q,te),y)}(a.shapeFlag&256||Q&<(Q.vnode)&&Q.vnode.shapeFlag&256)&&f.a&&fe(f.a,y),f.isMounted=!0,a=m=C=null}},P=f.effect=new Nn(A,()=>Is(x),f.scope),x=f.update=()=>P.run();x.id=f.uid,tt(f,!0),x()},ee=(f,a,m)=>{a.component=f;const C=f.vnode.props;f.vnode=a,f.next=null,Xl(f,a.props,C,m),Gl(f,a.children,m),at(),Un(void 0,f.update),dt()},Ie=(f,a,m,C,y,F,M,A,P=!1)=>{const x=f&&f.children,$=f?f.shapeFlag:0,S=a.children,{patchFlag:j,shapeFlag:W}=a;if(j>0){if(j&128){Rt(x,S,m,C,y,F,M,A,P);return}else if(j&256){Jn(x,S,m,C,y,F,M,A,P);return}}W&8?($&16&&Se(x,y,F),S!==x&&p(m,S)):$&16?W&16?Rt(x,S,m,C,y,F,M,A,P):Se(x,y,F,!0):($&8&&p(m,""),W&16&&L(S,m,C,y,F,M,A,P))},Jn=(f,a,m,C,y,F,M,A,P)=>{f=f||yt,a=a||yt;const x=f.length,$=a.length,S=Math.min(x,$);let j;for(j=0;j$?Se(f,y,F,!0,!1,S):L(a,m,C,y,F,M,A,P,S)},Rt=(f,a,m,C,y,F,M,A,P)=>{let x=0;const $=a.length;let S=f.length-1,j=$-1;for(;x<=S&&x<=j;){const W=f[x],z=a[x]=P?Je(a[x]):ye(a[x]);if(Re(W,z))I(W,z,m,null,y,F,M,A,P);else break;x++}for(;x<=S&&x<=j;){const W=f[S],z=a[j]=P?Je(a[j]):ye(a[j]);if(Re(W,z))I(W,z,m,null,y,F,M,A,P);else break;S--,j--}if(x>S){if(x<=j){const W=j+1,z=W<$?a[W].el:C;for(;x<=j;)I(null,a[x]=P?Je(a[x]):ye(a[x]),m,z,y,F,M,A,P),x++}}else if(x>j)for(;x<=S;)$e(f[x],y,F,!0),x++;else{const W=x,z=x,Q=new Map;for(x=z;x<=j;x++){const _e=a[x]=P?Je(a[x]):ye(a[x]);_e.key!=null&&Q.set(_e.key,x)}let G,te=0;const Ae=j-z+1;let mt=!1,Ys=0;const Ot=new Array(Ae);for(x=0;x=Ae){$e(_e,y,F,!0);continue}let Pe;if(_e.key!=null)Pe=Q.get(_e.key);else for(G=z;G<=j;G++)if(Ot[G-z]===0&&Re(_e,a[G])){Pe=G;break}Pe===void 0?$e(_e,y,F,!0):(Ot[Pe-z]=x+1,Pe>=Ys?Ys=Pe:mt=!0,I(_e,a[Pe],m,null,y,F,M,A,P),te++)}const zs=mt?ic(Ot):yt;for(G=zs.length-1,x=Ae-1;x>=0;x--){const _e=z+x,Pe=a[_e],Xs=_e+1<$?a[_e+1].el:C;Ot[x]===0?I(null,Pe,m,Xs,y,F,M,A,P):mt&&(G<0||x!==zs[G]?pt(Pe,m,Xs,2):G--)}}},pt=(f,a,m,C,y=null)=>{const{el:F,type:M,transition:A,children:P,shapeFlag:x}=f;if(x&6){pt(f.component.subTree,a,m,C);return}if(x&128){f.suspense.move(a,m,C);return}if(x&64){M.move(f,a,m,gt);return}if(M===ue){s(F,a,m);for(let S=0;SA.enter(F),y);else{const{leave:S,delayLeave:j,afterLeave:W}=A,z=()=>s(F,a,m),Q=()=>{S(F,()=>{z(),W&&W()})};j?j(F,z,Q):Q()}else s(F,a,m)},$e=(f,a,m,C=!1,y=!1)=>{const{type:F,props:M,ref:A,children:P,dynamicChildren:x,shapeFlag:$,patchFlag:S,dirs:j}=f;if(A!=null&&An(A,null,m,f,!0),$&256){a.ctx.deactivate(f);return}const W=$&1&&j,z=!lt(f);let Q;if(z&&(Q=M&&M.onVnodeBeforeUnmount)&&ge(Q,a,f),$&6)uo(f.component,m,C);else{if($&128){f.suspense.unmount(m,C);return}W&&Me(f,null,a,"beforeUnmount"),$&64?f.type.remove(f,a,m,y,gt,C):x&&(F!==ue||S>0&&S&64)?Se(x,a,m,!1,!0):(F===ue&&S&384||!y&&$&16)&&Se(P,a,m),C&&qs(f)}(z&&(Q=M&&M.onVnodeUnmounted)||W)&&fe(()=>{Q&&ge(Q,a,f),W&&Me(f,null,a,"unmounted")},m)},qs=f=>{const{type:a,el:m,anchor:C,transition:y}=f;if(a===ue){fo(m,C);return}if(a===Tt){R(f);return}const F=()=>{r(m),y&&!y.persisted&&y.afterLeave&&y.afterLeave()};if(f.shapeFlag&1&&y&&!y.persisted){const{leave:M,delayLeave:A}=y,P=()=>M(m,F);A?A(f.el,F,P):P()}else F()},fo=(f,a)=>{let m;for(;f!==a;)m=g(f),r(f),f=m;r(a)},uo=(f,a,m)=>{const{bum:C,scope:y,update:F,subTree:M,um:A}=f;C&&xt(C),y.stop(),F&&(F.active=!1,$e(M,f,a,m)),A&&fe(A,a),fe(()=>{f.isUnmounted=!0},a),a&&a.pendingBranch&&!a.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===a.pendingId&&(a.deps--,a.deps===0&&a.resolve())},Se=(f,a,m,C=!1,y=!1,F=0)=>{for(let M=F;Mf.shapeFlag&6?sn(f.component.subTree):f.shapeFlag&128?f.suspense.next():g(f.anchor||f.el),Js=(f,a,m)=>{f==null?a._vnode&&$e(a._vnode,null,null,!0):I(a._vnode||null,f,a,null,null,null,m),En(),a._vnode=f},gt={p:I,um:$e,m:pt,r:qs,mt:pe,mc:L,pc:Ie,pbc:K,n:sn,o:e};let Yn,zn;return t&&([Yn,zn]=t(gt)),{render:Js,hydrate:Yn,createApp:tc(Js,Yn)}}function tt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function js(e,t,n=!1){const s=e.children,r=t.children;if(N(s)&&N(r))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const oc=e=>e.__isTeleport,jt=e=>e&&(e.disabled||e.disabled===""),_r=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,gs=(e,t)=>{const n=e&&e.to;return se(n)?t?t(n):null:n},lc={__isTeleport:!0,process(e,t,n,s,r,i,o,l,c,u){const{mc:p,pc:h,pbc:g,o:{insert:E,querySelector:v,createText:H,createComment:I}}=u,_=jt(t.props);let{shapeFlag:d,children:b,dynamicChildren:w}=t;if(e==null){const R=t.el=H(""),B=t.anchor=H("");E(R,n,s),E(B,n,s);const D=t.target=gs(t.props,v),T=t.targetAnchor=H("");D&&(E(T,D),o=o||_r(D));const L=(U,K)=>{d&16&&p(b,U,K,r,i,o,l,c)};_?L(n,B):D&&L(D,T)}else{t.el=e.el;const R=t.anchor=e.anchor,B=t.target=e.target,D=t.targetAnchor=e.targetAnchor,T=jt(e.props),L=T?n:B,U=T?R:D;if(o=o||_r(B),w?(g(e.dynamicChildren,w,L,r,i,o,l),js(e,t,!0)):c||h(e,t,L,U,r,i,o,l,!1),_)T||hn(t,n,R,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const K=t.target=gs(t.props,v);K&&hn(t,K,null,u,0)}else T&&hn(t,B,D,u,1)}},remove(e,t,n,s,{um:r,o:{remove:i}},o){const{shapeFlag:l,children:c,anchor:u,targetAnchor:p,target:h,props:g}=e;if(h&&i(p),(o||!jt(g))&&(i(u),l&16))for(let E=0;E0?me||yt:null,Ni(),ct>0&&me&&me.push(e),e}function Df(e,t,n,s,r,i){return Bi(Hi(e,t,n,s,r,i,!0))}function Li(e,t,n,s,r){return Bi(ne(e,t,n,s,r,!0))}function ft(e){return e?e.__v_isVNode===!0:!1}function Re(e,t){return e.type===t.type&&e.key===t.key}function Uf(e){}const Wn="__vInternal",ki=({key:e})=>e!=null?e:null,yn=({ref:e,ref_key:t,ref_for:n})=>e!=null?se(e)||ce(e)||V(e)?{i:ae,r:e,k:t,f:!!n}:e:null;function Hi(e,t=null,n=null,s=0,r=null,i=e===ue?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ki(t),ref:t&&yn(t),scopeId:jn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null};return l?(Vs(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=se(n)?8:16),ct>0&&!o&&me&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&me.push(c),c}const ne=fc;function fc(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===wi)&&(e=he),ft(e)){const l=De(e,t,!0);return n&&Vs(l,n),ct>0&&!i&&me&&(l.shapeFlag&6?me[me.indexOf(e)]=l:me.push(l)),l.patchFlag|=-2,l}if(bc(e)&&(e=e.__vccOpts),t){t=uc(t);let{class:l,style:c}=t;l&&!se(l)&&(t.class=Rn(l)),oe(c)&&(ni(c)&&!N(c)&&(c=ie({},c)),t.style=Mn(c))}const o=se(e)?1:gi(e)?128:oc(e)?64:oe(e)?4:V(e)?2:0;return Hi(e,t,n,s,r,o,i,!0)}function uc(e){return e?ni(e)||Wn in e?ie({},e):e:null}function De(e,t,n=!1){const{props:s,ref:r,patchFlag:i,children:o}=e,l=t?ac(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ki(l),ref:t&&t.ref?n&&r?N(r)?r.concat(yn(t)):[r,yn(t)]:yn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ue?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&De(e.ssContent),ssFallback:e.ssFallback&&De(e.ssFallback),el:e.el,anchor:e.anchor}}function Di(e=" ",t=0){return ne(Qt,null,e,t)}function $f(e,t){const n=ne(Tt,null,e);return n.staticCount=t,n}function jf(e="",t=!1){return t?(Ks(),Li(he,null,e)):ne(he,null,e)}function ye(e){return e==null||typeof e=="boolean"?ne(he):N(e)?ne(ue,null,e.slice()):typeof e=="object"?Je(e):ne(Qt,null,String(e))}function Je(e){return e.el===null||e.memo?e:De(e)}function Vs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(N(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Vs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Wn in t)?t._ctx=ae:r===3&&ae&&(ae.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:ae},n=32):(t=String(t),s&64?(n=16,t=[Di(t)]):n=8);e.children=t,e.shapeFlag|=n}function ac(...e){const t={};for(let n=0;nle||ae,Ge=e=>{le=e,e.scope.on()},ze=()=>{le&&le.scope.off(),le=null};function $i(e){return e.vnode.shapeFlag&4}let vt=!1;function ji(e,t=!1){vt=t;const{props:n,children:s}=e.vnode,r=$i(e);zl(e,n,r,t),Ql(e,s);const i=r?pc(e,t):void 0;return vt=!1,i}function pc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=si(new Proxy(e.ctx,as));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?Vi(e):null;Ge(e),at();const i=ke(s,e,0,[e.props,r]);if(dt(),ze(),Ts(i)){if(i.then(ze,ze),t)return i.then(o=>{ms(e,o,t)}).catch(o=>{Mt(o,e,0)});e.asyncDep=i}else ms(e,i,t)}else Ki(e,t)}function ms(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:oe(t)&&(e.setupState=ii(t)),Ki(e,n)}let Fn,_s;function Kf(e){Fn=e,_s=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Kl))}}const Vf=()=>!Fn;function Ki(e,t,n){const s=e.type;if(!e.render){if(!t&&Fn&&!s.render){const r=s.template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,u=ie(ie({isCustomElement:i,delimiters:l},o),c);s.render=Fn(r,u)}}e.render=s.render||ve,_s&&_s(e)}Ge(e),at(),Vl(e),dt(),ze()}function gc(e){return new Proxy(e.attrs,{get(t,n){return xe(e,"get","$attrs"),t[n]}})}function Vi(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=gc(e))},slots:e.slots,emit:e.emit,expose:t}}function qn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ii(si(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in wn)return wn[n](e)}}))}const mc=/(?:^|[-_])(\w)/g,_c=e=>e.replace(mc,t=>t.toUpperCase()).replace(/[-_]/g,"");function vn(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function Wi(e,t,n=!1){let s=vn(t);if(!s&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(s=r[1])}if(!s&&e&&e.parent){const r=i=>{for(const o in i)if(i[o]===t)return o};s=r(e.components||e.parent.type.components)||r(e.appContext.components)}return s?_c(s):n?"App":"Anonymous"}function bc(e){return V(e)&&"__vccOpts"in e}const yc=(e,t)=>ll(e,t,vt);function Wf(){return null}function qf(){return null}function Jf(e){}function Yf(e,t){return null}function zf(){return qi().slots}function Xf(){return qi().attrs}function qi(){const e=ht();return e.setupContext||(e.setupContext=Vi(e))}function Zf(e,t){const n=N(e)?e.reduce((s,r)=>(s[r]={},s),{}):e;for(const s in t){const r=n[s];r?N(r)||V(r)?n[s]={type:r,default:t[s]}:r.default=t[s]:r===null&&(n[s]={default:t[s]})}return n}function Qf(e,t){const n={};for(const s in e)t.includes(s)||Object.defineProperty(n,s,{enumerable:!0,get:()=>e[s]});return n}function Gf(e){const t=ht();let n=e();return ze(),Ts(n)&&(n=n.catch(s=>{throw Ge(t),s})),[n,()=>Ge(t)]}function Cc(e,t,n){const s=arguments.length;return s===2?oe(t)&&!N(t)?ft(t)?ne(e,null,[t]):ne(e,t):ne(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&ft(n)&&(n=[n]),ne(e,t,n))}const xc=Symbol(""),eu=()=>{{const e=_n(xc);return e||cl("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function tu(){}function nu(e,t,n,s){const r=n[s];if(r&&Ec(r,e))return r;const i=t();return i.memo=e.slice(),n[s]=i}function Ec(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let s=0;s0&&me&&me.push(e),!0}const wc="3.2.37",Tc={createComponentInstance:Ui,setupComponent:ji,renderComponentRoot:mn,setCurrentRenderingInstance:zt,isVNode:ft,normalizeVNode:ye},su=Tc,ru=null,iu=null,Ac="http://www.w3.org/2000/svg",rt=typeof document!="undefined"?document:null,yr=rt&&rt.createElement("template"),Fc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?rt.createElementNS(Ac,e):rt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>rt.createTextNode(e),createComment:e=>rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{yr.innerHTML=s?`${e}`:e;const l=yr.content;if(s){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function vc(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Pc(e,t,n){const s=e.style,r=se(n);if(n&&!r){for(const i in n)bs(s,i,n[i]);if(t&&!se(t))for(const i in t)n[i]==null&&bs(s,i,"")}else{const i=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=i)}}const Cr=/\s*!important$/;function bs(e,t,n){if(N(n))n.forEach(s=>bs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Mc(e,t);Cr.test(n)?e.setProperty(Oe(s),n.replace(Cr,""),"important"):e[s]=n}}const xr=["Webkit","Moz","ms"],ts={};function Mc(e,t){const n=ts[t];if(n)return n;let s=Te(t);if(s!=="filter"&&s in e)return ts[t]=s;s=Sn(s);for(let r=0;r{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let ys=0;const Sc=Promise.resolve(),Nc=()=>{ys=0},Bc=()=>ys||(Sc.then(Nc),ys=Ji());function Le(e,t,n,s){e.addEventListener(t,n,s)}function Lc(e,t,n,s){e.removeEventListener(t,n,s)}function kc(e,t,n,s,r=null){const i=e._vei||(e._vei={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=Hc(t);if(s){const u=i[t]=Dc(s,r);Le(e,l,u,c)}else o&&(Lc(e,l,o,c),i[t]=void 0)}}const wr=/(?:Once|Passive|Capture)$/;function Hc(e){let t;if(wr.test(e)){t={};let n;for(;n=e.match(wr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[Oe(e.slice(2)),t]}function Dc(e,t){const n=s=>{const r=s.timeStamp||Ji();(Ic||r>=n.attached-1)&&we(Uc(s,n.value),t,5,[s])};return n.value=e,n.attached=Bc(),n}function Uc(e,t){if(N(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Tr=/^on[a-z]/,$c=(e,t,n,s,r=!1,i,o,l,c)=>{t==="class"?vc(e,s,r):t==="style"?Pc(e,n,s):Gt(t)?Es(t)||kc(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jc(e,t,s,r))?Oc(e,t,s,i,o,l,c):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Rc(e,t,s,r))};function jc(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Tr.test(t)&&V(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Tr.test(t)&&se(n)?!1:t in e}function Kc(e,t){const n=xi(e);class s extends Ws{constructor(i){super(n,i,t)}}return s.def=n,s}const ou=e=>Kc(e,ff),Vc=typeof HTMLElement!="undefined"?HTMLElement:class{};class Ws extends Vc{constructor(t,n={},s){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,ci(()=>{this._connected||(Br(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let s=0;s{for(const r of s)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=s=>{const{props:r,styles:i}=s,o=!N(r),l=r?o?Object.keys(r):r:[];let c;if(o)for(const u in this._props){const p=r[u];(p===Number||p&&p.type===Number)&&(this._props[u]=Ze(this._props[u]),(c||(c=Object.create(null)))[u]=!0)}this._numberProps=c;for(const u of Object.keys(this))u[0]!=="_"&&this._setProp(u,this[u],!0,!1);for(const u of l.map(Te))Object.defineProperty(this,u,{get(){return this._getProp(u)},set(p){this._setProp(u,p)}});this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(t):t(this._def)}_setAttr(t){let n=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(n=Ze(n)),this._setProp(Te(t),n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,s=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),s&&(n===!0?this.setAttribute(Oe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Oe(t),n+""):n||this.removeAttribute(Oe(t))))}_update(){Br(this._createVNode(),this.shadowRoot)}_createVNode(){const t=ne(this._def,ie({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0,n.emit=(r,...i)=>{this.dispatchEvent(new CustomEvent(r,{detail:i}))};let s=this;for(;s=s&&(s.parentNode||s.host);)if(s instanceof Ws){n.parent=s._instance;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const s=document.createElement("style");s.textContent=n,this.shadowRoot.appendChild(s)})}}function lu(e="$style"){{const t=ht();if(!t)return X;const n=t.type.__cssModules;if(!n)return X;const s=n[e];return s||X}}function cu(e){const t=ht();if(!t)return;const n=()=>Cs(t.subTree,e(t.proxy));Ml(n),Vn(()=>{const s=new MutationObserver(n);s.observe(t.subTree.el.parentNode,{childList:!0}),Hs(()=>s.disconnect())})}function Cs(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Cs(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Ar(e.el,t);else if(e.type===ue)e.children.forEach(n=>Cs(n,t));else if(e.type===Tt){let{el:n,anchor:s}=e;for(;n&&(Ar(n,t),n!==s);)n=n.nextSibling}}function Ar(e,t){if(e.nodeType===1){const n=e.style;for(const s in t)n.setProperty(`--${s}`,t[s])}}const Ve="transition",St="animation",Yi=(e,{slots:t})=>Cc(yi,Xi(e),t);Yi.displayName="Transition";const zi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Wc=Yi.props=ie({},yi.props,zi),nt=(e,t=[])=>{N(e)?e.forEach(n=>n(...t)):e&&e(...t)},Fr=e=>e?N(e)?e.some(t=>t.length>1):e.length>1:!1;function Xi(e){const t={};for(const O in e)O in zi||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=o,appearToClass:p=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:E=`${n}-leave-to`}=e,v=qc(r),H=v&&v[0],I=v&&v[1],{onBeforeEnter:_,onEnter:d,onEnterCancelled:b,onLeave:w,onLeaveCancelled:R,onBeforeAppear:B=_,onAppear:D=d,onAppearCancelled:T=b}=t,L=(O,q,k)=>{qe(O,q?p:l),qe(O,q?u:o),k&&k()},U=(O,q)=>{O._isLeaving=!1,qe(O,h),qe(O,E),qe(O,g),q&&q()},K=O=>(q,k)=>{const pe=O?D:d,Z=()=>L(q,O,k);nt(pe,[q,Z]),vr(()=>{qe(q,O?c:i),Ne(q,O?p:l),Fr(pe)||Pr(q,s,H,Z)})};return ie(t,{onBeforeEnter(O){nt(_,[O]),Ne(O,i),Ne(O,o)},onBeforeAppear(O){nt(B,[O]),Ne(O,c),Ne(O,u)},onEnter:K(!1),onAppear:K(!0),onLeave(O,q){O._isLeaving=!0;const k=()=>U(O,q);Ne(O,h),Qi(),Ne(O,g),vr(()=>{!O._isLeaving||(qe(O,h),Ne(O,E),Fr(w)||Pr(O,s,I,k))}),nt(w,[O,k])},onEnterCancelled(O){L(O,!1),nt(b,[O])},onAppearCancelled(O){L(O,!0),nt(T,[O])},onLeaveCancelled(O){U(O),nt(R,[O])}})}function qc(e){if(e==null)return null;if(oe(e))return[ns(e.enter),ns(e.leave)];{const t=ns(e);return[t,t]}}function ns(e){return Ze(e)}function Ne(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function qe(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function vr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Jc=0;function Pr(e,t,n,s){const r=e._endId=++Jc,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=Zi(e,t);if(!o)return s();const u=o+"end";let p=0;const h=()=>{e.removeEventListener(u,g),i()},g=E=>{E.target===e&&++p>=c&&h()};setTimeout(()=>{p(n[v]||"").split(", "),r=s(Ve+"Delay"),i=s(Ve+"Duration"),o=Mr(r,i),l=s(St+"Delay"),c=s(St+"Duration"),u=Mr(l,c);let p=null,h=0,g=0;t===Ve?o>0&&(p=Ve,h=o,g=i.length):t===St?u>0&&(p=St,h=u,g=c.length):(h=Math.max(o,u),p=h>0?o>u?Ve:St:null,g=p?p===Ve?i.length:c.length:0);const E=p===Ve&&/\b(transform|all)(,|$)/.test(n[Ve+"Property"]);return{type:p,timeout:h,propCount:g,hasTransform:E}}function Mr(e,t){for(;e.lengthRr(n)+Rr(e[s])))}function Rr(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Qi(){return document.body.offsetHeight}const Gi=new WeakMap,eo=new WeakMap,Yc={name:"TransitionGroup",props:ie({},Wc,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ht(),s=bi();let r,i;return Ls(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Qc(r[0].el,n.vnode.el,o))return;r.forEach(zc),r.forEach(Xc);const l=r.filter(Zc);Qi(),l.forEach(c=>{const u=c.el,p=u.style;Ne(u,o),p.transform=p.webkitTransform=p.transitionDuration="";const h=u._moveCb=g=>{g&&g.target!==u||(!g||/transform$/.test(g.propertyName))&&(u.removeEventListener("transitionend",h),u._moveCb=null,qe(u,o))};u.addEventListener("transitionend",h)})}),()=>{const o=Y(e),l=Xi(o);let c=o.tag||ue;r=i,i=t.default?Bs(t.default()):[];for(let u=0;u{o.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(o=>o&&s.classList.add(o)),s.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:i}=Zi(s);return r.removeChild(s),i}const et=e=>{const t=e.props["onUpdate:modelValue"]||!1;return N(t)?n=>xt(t,n):t};function Gc(e){e.target.composing=!0}function Or(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const xs={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=et(r);const i=s||r.props&&r.props.type==="number";Le(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=Ze(l)),e._assign(l)}),n&&Le(e,"change",()=>{e.value=e.value.trim()}),t||(Le(e,"compositionstart",Gc),Le(e,"compositionend",Or),Le(e,"change",Or))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},i){if(e._assign=et(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&Ze(e.value)===t))return;const o=t==null?"":t;e.value!==o&&(e.value=o)}},to={deep:!0,created(e,t,n){e._assign=et(n),Le(e,"change",()=>{const s=e._modelValue,r=Pt(e),i=e.checked,o=e._assign;if(N(s)){const l=On(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const u=[...s];u.splice(l,1),o(u)}}else if(ut(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(so(e,i))})},mounted:Ir,beforeUpdate(e,t,n){e._assign=et(n),Ir(e,t,n)}};function Ir(e,{value:t,oldValue:n},s){e._modelValue=t,N(t)?e.checked=On(t,s.props.value)>-1:ut(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Xe(t,so(e,!0)))}const no={created(e,{value:t},n){e.checked=Xe(t,n.props.value),e._assign=et(n),Le(e,"change",()=>{e._assign(Pt(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e._assign=et(s),t!==n&&(e.checked=Xe(t,s.props.value))}},ef={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=ut(t);Le(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?Ze(Pt(o)):Pt(o));e._assign(e.multiple?r?new Set(i):i:i[0])}),e._assign=et(s)},mounted(e,{value:t}){Sr(e,t)},beforeUpdate(e,t,n){e._assign=et(n)},updated(e,{value:t}){Sr(e,t)}};function Sr(e,t){const n=e.multiple;if(!(n&&!N(t)&&!ut(t))){for(let s=0,r=e.options.length;s-1:i.selected=t.has(o);else if(Xe(Pt(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Pt(e){return"_value"in e?e._value:e.value}function so(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const tf={created(e,t,n){pn(e,t,n,null,"created")},mounted(e,t,n){pn(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){pn(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){pn(e,t,n,s,"updated")}};function ro(e,t){switch(e){case"SELECT":return ef;case"TEXTAREA":return xs;default:switch(t){case"checkbox":return to;case"radio":return no;default:return xs}}}function pn(e,t,n,s,r){const o=ro(e.tagName,n.props&&n.props.type)[r];o&&o(e,t,n,s)}function nf(){xs.getSSRProps=({value:e})=>({value:e}),no.getSSRProps=({value:e},t)=>{if(t.props&&Xe(t.props.value,e))return{checked:!0}},to.getSSRProps=({value:e},t)=>{if(N(e)){if(t.props&&On(e,t.props.value)>-1)return{checked:!0}}else if(ut(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},tf.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=ro(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const sf=["ctrl","shift","alt","meta"],rf={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>sf.some(n=>e[`${n}Key`]&&!t.includes(n))},uu=(e,t)=>(n,...s)=>{for(let r=0;rn=>{if(!("key"in n))return;const s=Oe(n.key);if(t.some(r=>r===s||of[r]===s))return e(n)},lf={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Nt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Nt(e,!0),s.enter(e)):s.leave(e,()=>{Nt(e,!1)}):Nt(e,t))},beforeUnmount(e,{value:t}){Nt(e,t)}};function Nt(e,t){e.style.display=t?e._vod:"none"}function cf(){lf.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const io=ie({patchProp:$c},Fc);let Vt,Nr=!1;function oo(){return Vt||(Vt=sc(io))}function lo(){return Vt=Nr?Vt:rc(io),Nr=!0,Vt}const Br=(...e)=>{oo().render(...e)},ff=(...e)=>{lo().hydrate(...e)},du=(...e)=>{const t=oo().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=co(s);if(!r)return;const i=t._component;!V(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t},hu=(...e)=>{const t=lo().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=co(s);if(r)return n(r,!0,r instanceof SVGElement)},t};function co(e){return se(e)?document.querySelector(e):e}let Lr=!1;const pu=()=>{Lr||(Lr=!0,nf(),cf())};export{Hi as $,yf as A,tl as B,Te as C,Sn as D,$r as E,Rn as F,uf as G,Mn as H,af as I,gn as J,yi as K,he as L,ue as M,Mf as N,Af as O,Hf as P,Qt as Q,Nn as R,Tt as S,Yi as T,we as U,ke as V,De as W,iu as X,yc as Y,jf as Z,Df as _,Cf as a,Ff as a$,rc as a0,Qf as a1,sc as a2,Bf as a3,$f as a4,Di as a5,ne as a6,Pf as a7,xi as a8,qf as a9,Hs as aA,Ls as aB,wf as aC,Pl as aD,Ef as aE,ai as aF,Kf as aG,Nf as aH,Of as aI,Sf as aJ,If as aK,ru as aL,Zt as aM,br as aN,_l as aO,Ft as aP,xc as aQ,su as aR,kf as aS,Uf as aT,Xf as aU,eu as aV,zf as aW,bi as aX,wc as aY,cl as aZ,bn as a_,Jf as aa,Wf as ab,It as ac,ht as ad,Bs as ae,uc as af,Cc as ag,Mt as ah,tu as ai,_n as aj,Ec as ak,Vf as al,ft as am,Zf as an,ac as ao,ci as ap,Sl as aq,Ll as ar,ks as as,kl as at,Nl as au,$l as av,Vn as aw,Ul as ax,Dl as ay,Hl as az,df as b,Ml as b0,vf as b1,Gf as b2,Yf as b3,Rf as b4,nu as b5,Tf as b6,fu as b7,Ws as b8,du as b9,hu as ba,Kc as bb,ou as bc,ff as bd,pu as be,Br as bf,lu as bg,cu as bh,to as bi,tf as bj,no as bk,ef as bl,xs as bm,lf as bn,au as bo,uu as bp,N as bq,Li as c,Et as d,gf as e,qt as f,hf as g,ce as h,ni as i,ls as j,pf as k,Ps as l,si as m,ti as n,Ks as o,ii as p,Xn as q,Lf as r,Go as s,_f as t,bf as u,mf as v,pi as w,Y as x,il as y,xf as z}; diff --git a/assets/index.c851429a.js b/assets/index.447e7a19.js similarity index 64% rename from assets/index.c851429a.js rename to assets/index.447e7a19.js index 6fb6d02..8b9abb5 100644 --- a/assets/index.c851429a.js +++ b/assets/index.447e7a19.js @@ -1,5 +1,5 @@ -import{Y as N,h as fe,s as Yt,l as Mt,B as l,a_ as Ie,a8 as E,o as g,_ as x,$ as p,r as De,F as Q,q as O,aA as Un,u as xe,a$ as Ne,a6 as d,am as cn,M as K,aw as Tt,ap as Ve,aD as Ft,z as ne,c as A,w as V,b4 as Kt,bn as Ri,ao as Be,bp as _t,T as Zt,P as Bi,a5 as C,d as qi,bq as An,aI as de,Z as P,I as G,aK as ee,H as W,aE as qe,aC as je,y as Ze,bi as ji,bm as Hn,aH as kt,aj as Lt,G as Li,as as zi,x as En,b9 as Gi}from"./@vue.861e8bf0.js";import{i as Ui}from"./is-plain-object.906d88e8.js";import{c as Wn}from"./nanoevents.1080beb7.js";import{L as Ye}from"./lz-string.f2f3b7cf.js";import{_ as q,C as Hi}from"./@ivanv.bf09ddfc.js";import{Y as Wi}from"./vue-next-select.aa58f779.js";import{D as Yi}from"./vuedraggable.502d3696.js";import{p as Ki}from"./vue-textarea-autosize.35804eaf.js";import{s as Zi,u as fn}from"./vue-toastification.17ba848b.js";import{A as Ji,u as Xi,E as Vn}from"./@pixi.c5050cb0.js";import{v as Qi,n as er}from"./workbox-window.60401ce8.js";import"./earcut.17d42416.js";import"./vue.67040123.js";import"./sortablejs.bd686609.js";import"./ismobilejs.5c6954b9.js";import"./eventemitter3.dc5195d7.js";import"./url.b1bd21f4.js";import"./querystring.776b9ab3.js";const tr=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerpolicy&&(a.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?a.credentials="include":r.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}};tr();const nr="modulepreload",Fn={},ir="./",zt=function(t,n){return!n||n.length===0?t():Promise.all(n.map(i=>{if(i=`${ir}${i}`,i in Fn)return;Fn[i]=!0;const r=i.endsWith(".css"),a=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${a}`))return;const o=document.createElement("link");if(o.rel=r?"stylesheet":nr,r||(o.as="script",o.crossOrigin=""),o.href=i,document.head.appendChild(o),r)return new Promise((s,u)=>{o.addEventListener("load",s),o.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},rr="Profectus Demo",ar="A demo project made in Profectus",or="profectus-demo",sr="",lr="",ur="",dr="0.0",cr="Initial Commit",fr=!0,pr=!1,mr=2,gr=!0,vr=null,hr="Logo.png",br=["main","c"],yr=3600,_r=1,kr=!0,wr="base64";var J={title:rr,description:ar,id:or,author:sr,discordName:lr,discordLink:ur,versionNumber:dr,versionTitle:cr,allowGoBack:fr,defaultShowSmall:pr,defaultDecimalsShown:mr,useHeader:gr,banner:vr,logo:hr,initialTabs:br,maxTickLength:yr,offlineLimit:_r,enablePausing:kr,exportEncoding:wr};const tn=17,xr=9e15,Nr=Math.log10(9e15),Sr=1/9e15,Cr=308,$r=-324,Dn=5,Mr=function(){const e=[];for(let n=$r+1;n<=Cr;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),Qe=[2,Math.E,3,4,5,6,7,8,9,10],Tr=[[1,1.0891168053867777,1.1789745164521264,1.2701428397304229,1.3632066654400328,1.4587804913784246,1.557523817412741,1.660158301473385,1.767487542936873,1.8804205225512542,2],[1,1.1121114330934,1.23103892493161,1.35838369631113,1.49605193039935,1.64635423375119,1.81213853570186,1.99697132461829,2.20538955455724,2.44325744833852,Math.E],[1,1.1187738849693603,1.2464963939368214,1.38527004705667,1.5376664685821402,1.7068895236551784,1.897001227148399,2.1132403089001035,2.362480153784171,2.6539010333870774,3],[1,1.1367350847096405,1.2889510672956703,1.4606478703324786,1.6570295196661111,1.8850062585672889,2.1539465047453485,2.476829779693097,2.872061932789197,3.3664204535587183,4],[1,1.1494592900767588,1.319708228183931,1.5166291280087583,1.748171114438024,2.0253263297298045,2.3636668498288547,2.7858359149579424,3.3257226212448145,4.035730287722532,5],[1,1.159225940787673,1.343712473580932,1.5611293155111927,1.8221199554561318,2.14183924486326,2.542468319282638,3.0574682501653316,3.7390572020926873,4.6719550537360774,6],[1,1.1670905356972596,1.3632807444991446,1.5979222279405536,1.8842640123816674,2.2416069644878687,2.69893426559423,3.3012632110403577,4.121250340630164,5.281493033448316,7],[1,1.1736630594087796,1.379783782386201,1.6292821855668218,1.9378971836180754,2.3289975651071977,2.8384347394720835,3.5232708454565906,4.478242031114584,5.868592169644505,8],[1,1.1793017514670474,1.394054150657457,1.65664127441059,1.985170999970283,2.4069682290577457,2.9647310119960752,3.7278665320924946,4.814462547283592,6.436522247411611,9],[1,1.18422737399915,1.4066113788546144,1.680911177655277,2.027492094355525,2.4775152854601967,3.080455730250329,3.918234505962507,5.1332705696484595,6.9878696918072905,10]],Ir=[[-1,-.9194161097107025,-.8335625019330468,-.7425599821143978,-.6466611521029437,-.5462617907227869,-.4419033816638769,-.3342645487554494,-.224140440909962,-.11241087890006762,0],[-1,-.90603157029014,-.80786507256596,-.7064666939634,-.60294836853664,-.49849837513117,-.39430303318768,-.29147201034755,-.19097820800866,-.09361896280296,0],[-1,-.9021579584316141,-.8005762598234203,-.6964780623319391,-.5911906810998454,-.486050182576545,-.3823089430815083,-.28106046722897615,-.1831906535795894,-.08935809204418144,0],[-1,-.8917227442365535,-.781258746326964,-.6705130326902455,-.5612813129406509,-.4551067709033134,-.35319256652135966,-.2563741554088552,-.1651412821106526,-.0796919581982668,0],[-1,-.8843387974366064,-.7678744063886243,-.6529563724510552,-.5415870994657841,-.4352842206588936,-.33504449124791424,-.24138853420685147,-.15445285440944467,-.07409659641336663,0],[-1,-.8786709358426346,-.7577735191184886,-.6399546189952064,-.527284921869926,-.4211627631006314,-.3223479611761232,-.23107655627789858,-.1472057700818259,-.07035171210706326,0],[-1,-.8740862815291583,-.7497032990976209,-.6297119746181752,-.5161838335958787,-.41036238255751956,-.31277212146489963,-.2233976621705518,-.1418697367979619,-.06762117662323441,0],[-1,-.8702632331800649,-.7430366914122081,-.6213373075161548,-.5072025698095242,-.40171437727184167,-.30517930701410456,-.21736343968190863,-.137710238299109,-.06550774483471955,0],[-1,-.8670016295947213,-.7373984232432306,-.6143173985094293,-.49973884395492807,-.394584953527678,-.2989649949848695,-.21245647317021688,-.13434688362382652,-.0638072667348083,0],[-1,-.8641642839543857,-.732534623168535,-.6083127477059322,-.4934049257184696,-.3885773075899922,-.29376029055315767,-.2083678561173622,-.13155653399373268,-.062401588652553186,0]],m=function(t){return f.fromValue_noAlloc(t)},F=function(e,t,n){return f.fromComponents(e,t,n)},L=function(t,n,i){return f.fromComponents_noNormalize(t,n,i)},We=function(t,n){const i=n+1,r=Math.ceil(Math.log10(Math.abs(t))),a=Math.round(t*Math.pow(10,i-r))*Math.pow(10,r-i);return parseFloat(a.toFixed(Math.max(i-r,0)))},nn=function(e){return Math.sign(e)*Math.log10(Math.abs(e))},Pr=function(e){if(!isFinite(e))return e;if(e<-50)return e===Math.trunc(e)?Number.NEGATIVE_INFINITY:0;let t=1;for(;e<10;)t=t*e,++e;e-=1;let n=.9189385332046727;n=n+(e+.5)*Math.log(e),n=n-e;const i=e*e;let r=e;return n=n+1/(12*r),r=r*i,n=n+1/(360*r),r=r*i,n=n+1/(1260*r),r=r*i,n=n+1/(1680*r),r=r*i,n=n+1/(1188*r),r=r*i,n=n+691/(360360*r),r=r*i,n=n+7/(1092*r),r=r*i,n=n+3617/(122400*r),Math.exp(n)/t},Yn=.5671432904097838,Rn=function(e,t=1e-10){let n,i;if(!Number.isFinite(e)||e===0)return e;if(e===1)return Yn;e<10?n=0:n=Math.log(e)-Math.log(Math.log(e));for(let r=0;r<100;++r){if(i=(e*Math.exp(-n)+n*n)/(n+1),Math.abs(i-n).5?1:-1;if(Math.random()*20<1)return L(t,0,1);const n=Math.floor(Math.random()*(e+1));let i=n===0?Math.random()*616-308:Math.random()*16;Math.random()>.9&&(i=Math.trunc(i));let r=Math.pow(10,i);return Math.random()>.9&&(r=Math.trunc(r)),F(t,n,r)}static affordGeometricSeries_core(e,t,n,i){const r=t.mul(n.pow(i));return _.floor(e.div(r).mul(n.sub(1)).add(1).log10().div(n.log10()))}static sumGeometricSeries_core(e,t,n,i){return t.mul(n.pow(i)).mul(_.sub(1,n.pow(e))).div(_.sub(1,n))}static affordArithmeticSeries_core(e,t,n,i){const a=t.add(i.mul(n)).sub(n.div(2)),o=a.pow(2);return a.neg().add(o.add(n.mul(e).mul(2)).sqrt()).div(n).floor()}static sumArithmeticSeries_core(e,t,n,i){const r=t.add(i.mul(n));return e.div(2).mul(r.mul(2).plus(e.sub(1).mul(n)))}static efficiencyOfPurchase_core(e,t,n){return e.div(t).add(e.div(n))}normalize(){if(this.sign===0||this.mag===0&&this.layer===0)return this.sign=0,this.mag=0,this.layer=0,this;if(this.layer===0&&this.mag<0&&(this.mag=-this.mag,this.sign=-this.sign),this.layer===0&&this.mag=xr)return this.layer+=1,this.mag=t*Math.log10(e),this;for(;e0;)this.layer-=1,this.layer===0?this.mag=Math.pow(10,this.mag):(this.mag=t*Math.pow(10,e),e=Math.abs(this.mag),t=Math.sign(this.mag));return this.layer===0&&(this.mag<0?(this.mag=-this.mag,this.sign=-this.sign):this.mag===0&&(this.sign=0)),this}fromComponents(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this.normalize(),this}fromComponents_noNormalize(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this}fromMantissaExponent(e,t){return this.layer=1,this.sign=Math.sign(e),e=Math.abs(e),this.mag=t+Math.log10(e),this.normalize(),this}fromMantissaExponent_noNormalize(e,t){return this.fromMantissaExponent(e,t),this}fromDecimal(e){return this.sign=e.sign,this.layer=e.layer,this.mag=e.mag,this}fromNumber(e){return this.mag=Math.abs(e),this.sign=Math.sign(e),this.layer=0,this.normalize(),this}fromString(e){e=e.replace(",","");const t=e.split("^^^");if(t.length===2){const b=parseFloat(t[0]),w=parseFloat(t[1]),S=t[1].split(";");let $=1;if(S.length===2&&($=parseFloat(S[1]),isFinite($)||($=1)),isFinite(b)&&isFinite(w)){const R=_.pentate(b,w,$);return this.sign=R.sign,this.layer=R.layer,this.mag=R.mag,this}}const n=e.split("^^");if(n.length===2){const b=parseFloat(n[0]),w=parseFloat(n[1]),S=n[1].split(";");let $=1;if(S.length===2&&($=parseFloat(S[1]),isFinite($)||($=1)),isFinite(b)&&isFinite(w)){const R=_.tetrate(b,w,$);return this.sign=R.sign,this.layer=R.layer,this.mag=R.mag,this}}const i=e.split("^");if(i.length===2){const b=parseFloat(i[0]),w=parseFloat(i[1]);if(isFinite(b)&&isFinite(w)){const S=_.pow(b,w);return this.sign=S.sign,this.layer=S.layer,this.mag=S.mag,this}}e=e.trim().toLowerCase();let r,a,o=e.split("pt");if(o.length===2){r=10,a=parseFloat(o[0]),o[1]=o[1].replace("(",""),o[1]=o[1].replace(")","");let b=parseFloat(o[1]);if(isFinite(b)||(b=1),isFinite(r)&&isFinite(a)){const w=_.tetrate(r,a,b);return this.sign=w.sign,this.layer=w.layer,this.mag=w.mag,this}}if(o=e.split("p"),o.length===2){r=10,a=parseFloat(o[0]),o[1]=o[1].replace("(",""),o[1]=o[1].replace(")","");let b=parseFloat(o[1]);if(isFinite(b)||(b=1),isFinite(r)&&isFinite(a)){const w=_.tetrate(r,a,b);return this.sign=w.sign,this.layer=w.layer,this.mag=w.mag,this}}const s=e.split("e"),u=s.length-1;if(u===0){const b=parseFloat(e);if(isFinite(b))return this.fromNumber(b)}else if(u===1){const b=parseFloat(e);if(isFinite(b)&&b!==0)return this.fromNumber(b)}const c=e.split("e^");if(c.length===2){this.sign=1,c[0].charAt(0)=="-"&&(this.sign=-1);let b="";for(let w=0;w=43&&S<=57||S===101)b+=c[1].charAt(w);else return this.layer=parseFloat(b),this.mag=parseFloat(c[1].substr(w+1)),this.normalize(),this}}if(u<1)return this.sign=0,this.layer=0,this.mag=0,this;const h=parseFloat(s[0]);if(h===0)return this.sign=0,this.layer=0,this.mag=0,this;let v=parseFloat(s[s.length-1]);if(u>=2){const b=parseFloat(s[s.length-2]);isFinite(b)&&(v*=Math.sign(b),v+=nn(b))}if(!isFinite(h))this.sign=s[0]==="-"?-1:1,this.layer=u,this.mag=v;else if(u===1)this.sign=Math.sign(h),this.layer=1,this.mag=v+Math.log10(Math.abs(h));else if(this.sign=Math.sign(h),this.layer=u,u===2){const b=_.mul(F(1,2,v),m(h));return this.sign=b.sign,this.layer=b.layer,this.mag=b.mag,this}else this.mag=v;return this.normalize(),this}fromValue(e){return e instanceof _||e!=null&&typeof e=="object"&&"sign"in e&&"mag"in e&&"layer"in e?this.fromDecimal(e):typeof e=="number"?this.fromNumber(e):typeof e=="string"?this.fromString(e):(this.sign=0,this.layer=0,this.mag=0,this)}toNumber(){return Number.isFinite(this.layer)?this.layer===0?this.sign*this.mag:this.layer===1?this.sign*Math.pow(10,this.mag):this.mag>0?this.sign>0?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:0:Number.NaN}mantissaWithDecimalPlaces(e){return isNaN(this.m)?Number.NaN:this.m===0?0:We(this.m,e)}magnitudeWithDecimalPlaces(e){return isNaN(this.mag)?Number.NaN:this.mag===0?0:We(this.mag,e)}toString(){return isNaN(this.layer)||isNaN(this.sign)||isNaN(this.mag)?"NaN":this.mag===Number.POSITIVE_INFINITY||this.layer===Number.POSITIVE_INFINITY?this.sign===1?"Infinity":"-Infinity":this.layer===0?this.mag<1e21&&this.mag>1e-7||this.mag===0?(this.sign*this.mag).toString():this.m+"e"+this.e:this.layer===1?this.m+"e"+this.e:this.layer<=Dn?(this.sign===-1?"-":"")+"e".repeat(this.layer)+this.mag:(this.sign===-1?"-":"")+"(e^"+this.layer+")"+this.mag}toExponential(e){return this.layer===0?(this.sign*this.mag).toExponential(e):this.toStringWithDecimalPlaces(e)}toFixed(e){return this.layer===0?(this.sign*this.mag).toFixed(e):this.toStringWithDecimalPlaces(e)}toPrecision(e){return this.e<=-7?this.toExponential(e-1):e>this.e?this.toFixed(e-this.exponent-1):this.toExponential(e-1)}valueOf(){return this.toString()}toJSON(){return this.toString()}toStringWithDecimalPlaces(e){return this.layer===0?this.mag<1e21&&this.mag>1e-7||this.mag===0?(this.sign*this.mag).toFixed(e):We(this.m,e)+"e"+We(this.e,e):this.layer===1?We(this.m,e)+"e"+We(this.e,e):this.layer<=Dn?(this.sign===-1?"-":"")+"e".repeat(this.layer)+We(this.mag,e):(this.sign===-1?"-":"")+"(e^"+this.layer+")"+We(this.mag,e)}abs(){return L(this.sign===0?0:1,this.layer,this.mag)}neg(){return L(-this.sign,this.layer,this.mag)}negate(){return this.neg()}negated(){return this.neg()}sgn(){return this.sign}round(){return this.mag<0?_.dZero:this.layer===0?F(this.sign,0,Math.round(this.mag)):this}floor(){return this.mag<0?_.dZero:this.layer===0?F(this.sign,0,Math.floor(this.mag)):this}ceil(){return this.mag<0?_.dZero:this.layer===0?F(this.sign,0,Math.ceil(this.mag)):this}trunc(){return this.mag<0?_.dZero:this.layer===0?F(this.sign,0,Math.trunc(this.mag)):this}add(e){const t=m(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer)||this.sign===0)return t;if(t.sign===0)return this;if(this.sign===-t.sign&&this.layer===t.layer&&this.mag===t.mag)return L(0,0,0);let n,i;if(this.layer>=2||t.layer>=2)return this.maxabs(t);if(_.cmpabs(this,t)>0?(n=this,i=t):(n=t,i=this),n.layer===0&&i.layer===0)return m(n.sign*n.mag+i.sign*i.mag);const r=n.layer*Math.sign(n.mag),a=i.layer*Math.sign(i.mag);if(r-a>=2)return n;if(r===0&&a===-1){if(Math.abs(i.mag-Math.log10(n.mag))>tn)return n;{const o=Math.pow(10,Math.log10(n.mag)-i.mag),s=i.sign+n.sign*o;return F(Math.sign(s),1,i.mag+Math.log10(Math.abs(s)))}}if(r===1&&a===0){if(Math.abs(n.mag-Math.log10(i.mag))>tn)return n;{const o=Math.pow(10,n.mag-Math.log10(i.mag)),s=i.sign+n.sign*o;return F(Math.sign(s),1,Math.log10(i.mag)+Math.log10(Math.abs(s)))}}if(Math.abs(n.mag-i.mag)>tn)return n;{const o=Math.pow(10,n.mag-i.mag),s=i.sign+n.sign*o;return F(Math.sign(s),1,i.mag+Math.log10(Math.abs(s)))}}plus(e){return this.add(e)}sub(e){return this.add(m(e).neg())}subtract(e){return this.sub(e)}minus(e){return this.sub(e)}mul(e){const t=m(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer))return t;if(this.sign===0||t.sign===0)return L(0,0,0);if(this.layer===t.layer&&this.mag===-t.mag)return L(this.sign*t.sign,0,1);let n,i;if(this.layer>t.layer||this.layer==t.layer&&Math.abs(this.mag)>Math.abs(t.mag)?(n=this,i=t):(n=t,i=this),n.layer===0&&i.layer===0)return m(n.sign*i.sign*n.mag*i.mag);if(n.layer>=3||n.layer-i.layer>=2)return F(n.sign*i.sign,n.layer,n.mag);if(n.layer===1&&i.layer===0)return F(n.sign*i.sign,1,n.mag+Math.log10(i.mag));if(n.layer===1&&i.layer===1)return F(n.sign*i.sign,1,n.mag+i.mag);if(n.layer===2&&i.layer===1){const r=F(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(F(Math.sign(i.mag),i.layer-1,Math.abs(i.mag)));return F(n.sign*i.sign,r.layer+1,r.sign*r.mag)}if(n.layer===2&&i.layer===2){const r=F(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(F(Math.sign(i.mag),i.layer-1,Math.abs(i.mag)));return F(n.sign*i.sign,r.layer+1,r.sign*r.mag)}throw Error("Bad arguments to mul: "+this+", "+e)}multiply(e){return this.mul(e)}times(e){return this.mul(e)}div(e){const t=m(e);return this.mul(t.recip())}divide(e){return this.div(e)}divideBy(e){return this.div(e)}dividedBy(e){return this.div(e)}recip(){return this.mag===0?_.dNaN:this.layer===0?F(this.sign,0,1/this.mag):F(this.sign,this.layer,-this.mag)}reciprocal(){return this.recip()}reciprocate(){return this.recip()}cmp(e){const t=m(e);return this.sign>t.sign?1:this.sign0?this.layer:-this.layer,i=t.mag>0?t.layer:-t.layer;return n>i?1:nt.mag?1:this.mag0?t:this}clamp(e,t){return this.max(e).min(t)}clampMin(e){return this.max(e)}clampMax(e){return this.min(e)}cmp_tolerance(e,t){const n=m(e);return this.eq_tolerance(n,t)?0:this.cmp(n)}compare_tolerance(e,t){return this.cmp_tolerance(e,t)}eq_tolerance(e,t){const n=m(e);if(t==null&&(t=1e-7),this.sign!==n.sign||Math.abs(this.layer-n.layer)>1)return!1;let i=this.mag,r=n.mag;return this.layer>n.layer&&(r=nn(r)),this.layer0?F(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):F(1,0,Math.log10(this.mag))}log10(){return this.sign<=0?_.dNaN:this.layer>0?F(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):F(this.sign,0,Math.log10(this.mag))}log(e){return e=m(e),this.sign<=0||e.sign<=0||e.sign===1&&e.layer===0&&e.mag===1?_.dNaN:this.layer===0&&e.layer===0?F(this.sign,0,Math.log(this.mag)/Math.log(e.mag)):_.div(this.log10(),e.log10())}log2(){return this.sign<=0?_.dNaN:this.layer===0?F(this.sign,0,Math.log2(this.mag)):this.layer===1?F(Math.sign(this.mag),0,Math.abs(this.mag)*3.321928094887362):this.layer===2?F(Math.sign(this.mag),1,Math.abs(this.mag)+.5213902276543247):F(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}ln(){return this.sign<=0?_.dNaN:this.layer===0?F(this.sign,0,Math.log(this.mag)):this.layer===1?F(Math.sign(this.mag),0,Math.abs(this.mag)*2.302585092994046):this.layer===2?F(Math.sign(this.mag),1,Math.abs(this.mag)+.36221568869946325):F(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}logarithm(e){return this.log(e)}pow(e){const t=m(e),n=this,i=t;if(n.sign===0)return i.eq(0)?L(1,0,1):n;if(n.sign===1&&n.layer===0&&n.mag===1)return n;if(i.sign===0)return L(1,0,1);if(i.sign===1&&i.layer===0&&i.mag===1)return n;const r=n.absLog10().mul(i).pow10();return this.sign===-1?Math.abs(i.toNumber()%2)%2===1?r.neg():Math.abs(i.toNumber()%2)%2===0?r:_.dNaN:r}pow10(){if(!Number.isFinite(this.layer)||!Number.isFinite(this.mag))return _.dNaN;let e=this;if(e.layer===0){const t=Math.pow(10,e.sign*e.mag);if(Number.isFinite(t)&&Math.abs(t)>=.1)return F(1,0,t);if(e.sign===0)return _.dOne;e=L(e.sign,e.layer+1,Math.log10(e.mag))}return e.sign>0&&e.mag>=0?F(e.sign,e.layer+1,e.mag):e.sign<0&&e.mag>=0?F(-e.sign,e.layer+1,-e.mag):_.dOne}pow_base(e){return m(e).pow(this)}root(e){const t=m(e);return this.pow(t.recip())}factorial(){return this.mag<0?this.add(1).gamma():this.layer===0?this.add(1).gamma():this.layer===1?_.exp(_.mul(this,_.ln(this).sub(1))):_.exp(this)}gamma(){if(this.mag<0)return this.recip();if(this.layer===0){if(this.lt(L(1,0,24)))return m(Pr(this.sign*this.mag));const e=this.mag-1;let t=.9189385332046727;t=t+(e+.5)*Math.log(e),t=t-e;const n=e*e;let i=e,r=12*i,a=1/r,o=t+a;if(o===t||(t=o,i=i*n,r=360*i,a=1/r,o=t-a,o===t))return _.exp(t);t=o,i=i*n,r=1260*i;let s=1/r;return t=t+s,i=i*n,r=1680*i,s=1/r,t=t-s,_.exp(t)}else return this.layer===1?_.exp(_.mul(this,_.ln(this).sub(1))):_.exp(this)}lngamma(){return this.gamma().ln()}exp(){return this.mag<0?_.dOne:this.layer===0&&this.mag<=709.7?m(Math.exp(this.sign*this.mag)):this.layer===0?F(1,1,this.sign*Math.log10(Math.E)*this.mag):this.layer===1?F(1,2,this.sign*(Math.log10(.4342944819032518)+this.mag)):F(1,this.layer+1,this.sign*this.mag)}sqr(){return this.pow(2)}sqrt(){if(this.layer===0)return m(Math.sqrt(this.sign*this.mag));if(this.layer===1)return F(1,2,Math.log10(this.mag)-.3010299956639812);{const e=_.div(L(this.sign,this.layer-1,this.mag),L(1,0,2));return e.layer+=1,e.normalize(),e}}cube(){return this.pow(3)}cbrt(){return this.pow(1/3)}tetrate(e=2,t=L(1,0,1)){if(e===1)return _.pow(this,t);if(e===0)return new _(t);if(this.eq(_.dOne))return _.dOne;if(this.eq(-1))return _.pow(this,t);if(e===Number.POSITIVE_INFINITY){const r=this.toNumber();if(r<=1.444667861009766&&r>=.06598803584531254){if(r>1.444667861009099)return new _(Math.E);const a=_.ln(this).neg();return a.lambertw().div(a)}else return r>1.444667861009766?new _(Number.POSITIVE_INFINITY):_.dNaN}if(this.eq(_.dZero)){let r=Math.abs((e+1)%2);return r>1&&(r=2-r),new _(r)}if(e<0)return _.iteratedlog(t,this,-e);t=m(t);const n=e;e=Math.trunc(e);const i=n-e;if(this.gt(_.dZero)&&this.lte(1.444667861009766)){e=Math.min(1e4,e);for(let r=0;r3)return L(t.sign,t.layer+(e-r-1),t.mag);if(r>1e4)return t}return t}iteratedexp(e=2,t=L(1,0,1)){return this.tetrate(e,t)}iteratedlog(e=10,t=1){if(t<0)return _.tetrate(e,-t,this);e=m(e);let n=m(this);const i=t;t=Math.trunc(t);const r=i-t;if(n.layer-e.layer>3){const a=Math.min(t,n.layer-e.layer-3);t-=a,n.layer-=a}for(let a=0;a1e4)return n}return r>0&&r<1&&(e.eq(10)?n=n.layeradd10(-r):n=n.layeradd(-r,e)),n}slog(e=10){if(e=m(e),e.lte(_.dZero)||e.eq(_.dOne))return _.dNaN;if(e.lt(_.dOne))return this.eq(_.dOne)?_.dZero:this.eq(_.dZero)?_.dNegOne:_.dNaN;if(this.mag<0||this.eq(_.dZero))return _.dNegOne;let t=0,n=m(this);if(n.layer-e.layer>3){const i=n.layer-e.layer-3;t+=i,n.layer-=i}for(let i=0;i<100;++i)if(n.lt(_.dZero))n=_.pow(e,n),t-=1;else{if(n.lte(_.dOne))return m(t+_.slog_critical(e.toNumber(),n.toNumber()));t+=1,n=_.log(n,e)}return m(t)}static slog_critical(e,t){return e>10?t-1:_.critical_section(e,t,Ir)}static tetrate_critical(e,t){return _.critical_section(e,t,Tr)}static critical_section(e,t,n){t*=10,t<0&&(t=0),t>10&&(t=10),e<2&&(e=2),e>10&&(e=10);let i=0,r=0;for(let s=0;se){const u=(e-Qe[s])/(Qe[s+1]-Qe[s]);i=n[s][Math.floor(t)]*(1-u)+n[s+1][Math.floor(t)]*u,r=n[s][Math.ceil(t)]*(1-u)+n[s+1][Math.ceil(t)]*u;break}const a=t-Math.floor(t);return i*(1-a)+r*a}layeradd10(e){e=_.fromValue_noAlloc(e).toNumber();const t=m(this);if(e>=1){t.mag<0&&t.layer>0?(t.sign=0,t.mag=0,t.layer=0):t.sign===-1&&t.layer==0&&(t.sign=1,t.mag=-t.mag);const n=Math.trunc(e);e-=n,t.layer+=n}if(e<=-1){const n=Math.trunc(e);if(e-=n,t.layer+=n,t.layer<0)for(let i=0;i<100;++i){if(t.layer++,t.mag=Math.log10(t.mag),!isFinite(t.mag))return t.sign===0&&(t.sign=1),t.layer<0&&(t.layer=0),t.normalize();if(t.layer>=0)break}}for(;t.layer<0;)t.layer++,t.mag=Math.log10(t.mag);return t.sign===0&&(t.sign=1,t.mag===0&&t.layer>=1&&(t.layer-=1,t.mag=1)),t.normalize(),e!==0?t.layeradd(e,10):t}layeradd(e,t){const i=this.slog(t).toNumber()+e;return i>=0?_.tetrate(t,i):Number.isFinite(i)?i>=-1?_.log(_.tetrate(t,i+1),t):_.log(_.log(_.tetrate(t,i+2),t),t):_.dNaN}lambertw(){if(this.lt(-.3678794411710499))throw Error("lambertw is unimplemented for results less than -1, sorry!");if(this.mag<0)return m(Rn(this.toNumber()));if(this.layer===0)return m(Rn(this.sign*this.mag));if(this.layer===1)return Bn(this);if(this.layer===2)return Bn(this);if(this.layer>=3)return L(this.sign,this.layer-1,this.mag);throw"Unhandled behavior in lambertw()"}ssqrt(){if(this.sign==1&&this.layer>=3)return L(this.sign,this.layer-1,this.mag);const e=this.ln();return e.div(e.lambertw())}pentate(e=2,t=L(1,0,1)){t=m(t);const n=e;e=Math.trunc(e);const i=n-e;i!==0&&(t.eq(_.dOne)?(++e,t=new _(i)):this.eq(10)?t=t.layeradd10(i):t=t.layeradd(i,this));for(let r=0;r10)return t}return t}sin(){return this.mag<0?this:this.layer===0?m(Math.sin(this.sign*this.mag)):L(0,0,0)}cos(){return this.mag<0?_.dOne:this.layer===0?m(Math.cos(this.sign*this.mag)):L(0,0,0)}tan(){return this.mag<0?this:this.layer===0?m(Math.tan(this.sign*this.mag)):L(0,0,0)}asin(){return this.mag<0?this:this.layer===0?m(Math.asin(this.sign*this.mag)):L(Number.NaN,Number.NaN,Number.NaN)}acos(){return this.mag<0?m(Math.acos(this.toNumber())):this.layer===0?m(Math.acos(this.sign*this.mag)):L(Number.NaN,Number.NaN,Number.NaN)}atan(){return this.mag<0?this:this.layer===0?m(Math.atan(this.sign*this.mag)):m(Math.atan(this.sign*(1/0)))}sinh(){return this.exp().sub(this.negate().exp()).div(2)}cosh(){return this.exp().add(this.negate().exp()).div(2)}tanh(){return this.sinh().div(this.cosh())}asinh(){return _.ln(this.add(this.sqr().add(1).sqrt()))}acosh(){return _.ln(this.add(this.sqr().sub(1).sqrt()))}atanh(){return this.abs().gte(1)?L(Number.NaN,Number.NaN,Number.NaN):_.ln(this.add(1).div(m(1).sub(this))).div(2)}ascensionPenalty(e){return e===0?this:this.root(_.pow(10,e))}egg(){return this.add(9)}lessThanOrEqualTo(e){return this.cmp(e)<1}lessThan(e){return this.cmp(e)<0}greaterThanOrEqualTo(e){return this.cmp(e)>-1}greaterThan(e){return this.cmp(e)>0}};let f=_;f.dZero=L(0,0,0);f.dOne=L(1,0,1);f.dNegOne=L(-1,0,1);f.dTwo=L(1,0,2);f.dTen=L(1,0,10);f.dNaN=L(Number.NaN,Number.NaN,Number.NaN);f.dInf=L(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY);f.dNegInf=L(-1,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);f.dNumberMax=F(1,0,Number.MAX_VALUE);f.dNumberMin=F(1,0,Number.MIN_VALUE);const Or=new f(1);function vt(e,t,n=!0){let i=f.log10(e).floor(),r=f.div(e,f.pow(10,i));r.toStringWithDecimalPlaces(t)==="10"&&(r=Or,i=i.add(1));const a=i.gte(1e9)?$e(i,Math.max(Math.max(t,3),J.defaultDecimalsShown)):i.gte(1e4)?Gt(i,0):i.toStringWithDecimalPlaces(0);return n?r.toStringWithDecimalPlaces(t)+"e"+a:"e"+a}function Gt(e,t){if(e==null)return"NaN";if(e=new f(e),e.mag<.001)return 0 .toFixed(t);const i=e.toStringWithDecimalPlaces(t).split(".");return i[0]=i[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"),i.length==1?i[0]:i[0]+"."+i[1]}function Kn(e,t){return e==null?"NaN":(e=new f(e),e.mag<1e-4?0 .toFixed(t):(e.mag<.1&&t!==0&&(t=Math.max(Math.max(t,e.log10().negate().ceil().toNumber()),J.defaultDecimalsShown)),e.toStringWithDecimalPlaces(t)))}const Ar=new f("eeee1000"),Er=new f("e100000"),qn=new f("e1000"),Zn=new f(1e9),Vr=new f(1e6),Fr=new f(1e3),Dr=new f(.98),Rr=new f(.001),Jn=new f(0);function $e(e,t,n){if(t==null&&(t=J.defaultDecimalsShown),n=n!=null?n:J.defaultShowSmall,e=new f(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag))return"NaN";if(e.sign<0)return"-"+$e(e.neg(),t);if(e.mag===Number.POSITIVE_INFINITY)return"Infinity";if(e.gte(Ar)){const i=e.slog();return i.gte(Vr)?"F"+$e(i.floor()):f.pow(10,i.sub(i.floor())).toStringWithDecimalPlaces(3)+"F"+Gt(i.floor(),0)}else{if(e.gte(Er))return vt(e,0,!1);if(e.gte(qn))return vt(e,0);if(e.gte(Zn))return vt(e,t);if(e.gte(Fr))return Gt(e,0);if(e.gte(Rr)||!n)return Kn(e,t);if(e.eq(Jn))return 0 .toFixed(t)}return e=Qn(e),e.lt(qn)?vt(e,t).replace(/([^(?:e|F)]*)$/,"-$1"):$e(e,t)+"\u207B\xB9"}function Ce(e){return e=new f(e),e.sign<0?"-"+Ce(e.neg()):e.gte(Zn)||e.lte(Dr)&&!e.eq(Jn)?$e(e):$e(e,0)}function Xn(e){return f.lt(e,0)?"-"+Xn(f.neg(e)):f.gt(e,2**51)?$e(f.div(e,31536e3))+"y":(e=new f(e).toNumber(),e<60?$e(e)+"s":e<3600?Ce(Math.floor(e/60))+"m "+$e(e%60)+"s":e<86400?Ce(Math.floor(e/3600))+"h "+Ce(Math.floor(e/60)%60)+"m "+Ce(e%60)+"s":e<31536e3?Ce(Math.floor(e/84600)%365)+"d "+Ce(Math.floor(e/3600)%24)+"h "+Ce(Math.floor(e/60)%60)+"m":Ce(Math.floor(e/31536e3))+"y "+Ce(Math.floor(e/84600)%365)+"d "+Ce(Math.floor(e/3600)%24)+"h")}function Br(e,t,n){e=new f(e);let i=e.toStringWithDecimalPlaces(t);return new f(i).gte(n)&&(i=f.sub(n,Math.pow(.1,t)).toStringWithDecimalPlaces(t)),i}function qr(e,t){return $e(e,t,!0)}function Qn(e){let t=f.log10(e).ceil();const n=f.div(e,f.pow(10,t));return t=t.neg(),e=new f(10).pow(t).times(n),e}var jr=Object.freeze(Object.defineProperty({__proto__:null,default:f,exponentialFormat:vt,commaFormat:Gt,regularFormat:Kn,format:$e,formatWhole:Ce,formatTime:Xn,toPlaces:Br,formatSmall:qr,invertOOM:Qn},Symbol.toStringTag,{value:"Module"}));const{exponentialFormat:Lr,commaFormat:zr,regularFormat:Gr,format:se,formatWhole:ve,formatTime:Jt,toPlaces:Ur,formatSmall:Hr,invertOOM:Wr}=jr;window.Decimal=f;window.exponentialFormat=Lr;window.commaFormat=zr;window.regularFormat=Gr;window.format=se;window.formatWhole=ve;window.formatTime=Jt;window.toPlaces=Ur;window.formatSmall=Hr;window.invertOOM=Wr;function ei(e){let t=e.replace(/([A-Z])/g," $1");return t=t.charAt(0).toUpperCase()+t.slice(1),t}function tt(e){return typeof e=="function"}var X=(e=>(e.Up="Up",e.Down="Down",e.Left="Left",e.Right="Right",e.Default="Up",e))(X||{});const wt=Symbol("DoNotCache");function y(e,t){const n=e[t];tt(n)&&n.length===0&&!n[wt]?e[t]=N(n.bind(e)):tt(n)&&(e[t]=n.bind(e),e[t][wt]=!0)}function Me(e){return tt(e)&&!e[wt]&&(e=N(e)),e}const ue=Symbol("Component"),pe=Symbol("GatherProps");let Yr=0;function he(e="feature-"){return e+Yr++}var B=(e=>(e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.None=2]="None",e))(B||{});function j(e){return e[wt]=!0,e}function gt(e,t=2){return e?0:t}function z(e,t,n){e[t]===void 0&&n!=null&&(e[t]=n)}function ti(e,...t){const n=[],i=r=>{Object.keys(r).forEach(a=>{const o=r[a];o&&typeof o=="object"&&(t.includes(o.type)?n.push(o):!(o instanceof f)&&!fe(o)&&i(o))})};return i(e),n}const et={variables:{"--foreground":"#dfdfdf","--background":"#0f0f0f","--feature-foreground":"#0f0f0f","--tooltip-background":"rgba(0, 0, 0, 0.75)","--raised-background":"#0f0f0f","--points":"#ffffff","--locked":"#bf8f8f","--highlighted":"#333","--bought":"#77bf5f","--danger":"rgb(220, 53, 69)","--link":"#02f2f2","--outline":"#dfdfdf","--accent1":"#627a82","--accent2":"#658262","--accent3":"#7c6282","--border-radius":"15px","--modal-border":"solid 2px var(--color)","--feature-margin":"0px"},floatingTabs:!0,mergeAdjacent:!0,showPin:!0};var pn=(e=>(e.Classic="classic",e.Paper="paper",e.Nordic="nordic",e.Aqua="aqua",e))(pn||{}),ze={classic:et,paper:{...et,variables:{...et.variables,"--background":"#2a323d","--feature-foreground":"#000","--raised-background":"#333c4a","--locked":"#3a3e45","--bought":"#5C8A58","--outline":"#333c4a","--border-radius":"4px","--modal-border":"","--feature-margin":"5px"},floatingTabs:!1},nordic:{...et,variables:{...et.variables,"--foreground":"#D8DEE9","--background":"#2E3440","--feature-foreground":"#000","--raised-background":"#3B4252","--points":"#E5E9F0","--locked":"#4c566a","--highlighted":"#434c5e","--bought":"#8FBCBB","--danger":"#D08770","--link":"#88C0D0","--outline":"#3B4252","--accent1":"#B48EAD","--accent2":"#A3BE8C","--accent3":"#EBCB8B","--border-radius":"4px","--modal-border":"solid 2px #3B4252","--feature-margin":"5px"},floatingTabs:!1},aqua:{...et,variables:{...et.variables,"--foreground":"#bfdfff","--background":"#001f3f","--tooltip-background":"rgba(0, 15, 31, 0.75)","--raised-background":"#001f3f","--points":"#dfefff","--locked":"#c4a7b3","--outline":"#bfdfff"}}};const ce=Symbol("ProxyState"),st=Symbol("ProxyPath");function me(e,t={}){const n=t;let i=!1;function r(){return i||(Object.assign(n,e(n)),i=!0),n}return new Proxy(n,{get(a,o){return o===ce?r():r()[o]},set(a,o,s){return r()[o]=s,!0},has(a,o){return o===ce?!0:Reflect.has(r(),o)},ownKeys(){return Reflect.ownKeys(r())},getOwnPropertyDescriptor(a,o){return i||(Object.assign(n,e(n)),i=!0),Object.getOwnPropertyDescriptor(a,o)}})}var ie=window.state=Yt({lastTenTicks:[],hasNaN:!1,NaNPath:[]});const ni=Mt({id:"",devSpeed:null,name:"",tabs:[],time:-1,autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:0,keepGoing:!1,modID:"",modVersion:"",layers:{}});function ii(e){return JSON.stringify(e,(t,n)=>l(n))}const ri={get(e,t){var i;if(t===ce||t===st)return e[t];const n=e[ce][t];if(t!=="value"&&(Ui(n)||Array.isArray(n))){if(n!==((i=e[t])==null?void 0:i[ce])){const r=[...e[st],t];e[t]=new Proxy({[ce]:n,[st]:r},ri)}return e[t]}return n},set(e,t,n,i){if(!ie.hasNaN&&(typeof n=="number"&&isNaN(n)||n instanceof f&&(isNaN(n.sign)||isNaN(n.layer)||isNaN(n.mag)))){const r=e[ce][t];if(!(typeof r=="number"&&isNaN(r)||r instanceof f&&(isNaN(r.sign)||isNaN(r.layer)||isNaN(r.mag))))throw ni.autosave=!1,ie.hasNaN=!0,ie.NaNPath=[...e[st],t],ie.NaNReceiver=i,console.error("Attempted to set NaN value",[...e[st],t],e[ce]),"Attempted to set NaN value. See above for details"}return e[ce][t]=n,!0},ownKeys(e){return Reflect.ownKeys(e[ce])},has(e,t){return Reflect.has(e[ce],t)},getOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e[ce],t)}};var T=window.player=new Proxy({[ce]:ni,[st]:["player"]},ri);const ge=Wn();let lt=null,ht=null;function Ut(){const e=Date.now();let t=(e-T.time)/1e3;T.time=e;const n=t;if(ie.lastTenTicks.push(n),ie.lastTenTicks.length>10&&(ie.lastTenTicks=ie.lastTenTicks.slice(1)),!((ht==null?void 0:ht.value)&&!T.keepGoing)&&!ie.hasNaN&&(t=Math.max(t,0),T.devSpeed!==0)){if(T.offlineTime!=null){if(f.gt(T.offlineTime,J.offlineLimit*3600)&&(T.offlineTime=J.offlineLimit*3600),f.gt(T.offlineTime,0)&&T.devSpeed!==0){const i=Math.max(T.offlineTime/10,t);T.offlineTime=T.offlineTime-i,t+=i}else T.devSpeed===0&&(T.offlineTime+=t);(!T.offlineProd||f.lt(T.offlineTime,0))&&(T.offlineTime=null)}t=Math.min(t,J.maxTickLength),T.devSpeed!=null&&(t*=T.devSpeed),Number.isFinite(t)||(t=1e308),!f.eq(t,0)&&(T.timePlayed+=t,Number.isFinite(T.timePlayed)||(T.timePlayed=1e308),ge.emit("update",t,n),Z.unthrottled?(requestAnimationFrame(Ut),lt!=null&&(clearInterval(lt),lt=null)):lt==null&&(lt=setInterval(Ut,50)))}}async function Kr(){ht=(await zt(()=>Promise.resolve().then(function(){return Ai}),void 0)).hasWon,Ie(ht,e=>{e&&ge.emit("gameWon")}),Z.unthrottled?requestAnimationFrame(Ut):lt=setInterval(Ut,50)}var Zr=Object.freeze(Object.defineProperty({__proto__:null,globalBus:ge,startGameLoop:Kr},Symbol.toStringTag,{value:"Module"}));function ai(e={}){return Object.assign({id:`${J.id}-0`,name:"Default Save",tabs:J.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:0,timePlayed:0,keepGoing:!1,modID:J.id,modVersion:J.versionNumber,layers:{}},e)}function Ae(e){const t=Ye.compressToUTF16(ii(e!=null?e:T[ce]));return localStorage.setItem((e!=null?e:T[ce]).id,t),t}async function Jr(){Qr();try{let e=localStorage.getItem(Z.active);if(e==null){await nt(ut());return}if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Ye.decompressFromUTF16(e);else throw"Unable to determine save encoding";const t=JSON.parse(e);if(t.modID!==J.id){await nt(ut());return}t.id=Z.active,await nt(t)}catch(e){console.error(`Failed to load save. Falling back to new save. -`,e),await nt(ut())}}function ut(){const e=qt(),t=ai({id:e});return Ae(t),Z.saves.push(e),t}function qt(){let e,t=0;do e=`${J.id}-${t++}`;while(localStorage.getItem(e));return e}async function nt(e){console.info("Loading save",e);const{layers:t,removeLayer:n,addLayer:i}=await zt(()=>Promise.resolve().then(function(){return ya}),void 0),{fixOldSave:r,getInitialLayers:a}=await zt(()=>Promise.resolve().then(function(){return Ai}),void 0);for(const o in t){const s=t[o];s&&n(s)}a(e).forEach(o=>i(o,e)),e=ai(e),e.offlineProd&&e.time&&(e.offlineTime==null&&(e.offlineTime=0),e.offlineTime+=(Date.now()-e.time)/1e3),e.time=Date.now(),e.modVersion!==J.versionNumber&&r(e.modVersion,e),Object.assign(T,e),Z.active=T.id}setInterval(()=>{T.autosave&&Ae()},1e3);window.onbeforeunload=()=>{T.autosave&&Ae()};window.save=Ae;const Xr=window.hardReset=async()=>{await nt(ut())},xt=Mt({active:"",saves:[],showTPS:!0,theme:pn.Nordic,unthrottled:!1});Ie(xt,e=>{const t=Ye.compressToUTF16(JSON.stringify(e));localStorage.setItem(J.id,t)},{deep:!0});var Z=window.settings=xt;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:pn.Nordic};ge.emit("loadSettings",e),Object.assign(xt,e),Xr()};function Qr(){try{let e=localStorage.getItem(J.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Ye.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(xt,t)}ge.emit("loadSettings",xt)}catch{}}const oi=Mt([]);function si(e){oi.push(e)}const li=Mt([]);function ea(e){li.push(e)}const ta=Mt([]),na={class:"table"},jt=E({__name:"Column",setup(e){const t=N(()=>ze[Z.theme].mergeAdjacent);return(n,i)=>(g(),x("div",na,[p("div",{class:Q(["col",{mergeAdjacent:l(t)}])},[De(n.$slots,"default")],2)]))}}),ia={class:"table"},bt=E({__name:"Row",setup(e){const t=N(()=>ze[Z.theme].mergeAdjacent);return(n,i)=>(g(),x("div",ia,[p("div",{class:Q(["row",{mergeAdjacent:l(t)}])},[De(n.$slots,"default")],2)]))}});function ui(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!cn(e)}function D(e,t="span"){return typeof e=="function"?E({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}`),E({template:e})):E({render:()=>({})}):e}function oe(e){if(Te(e))return typeof e=="function"?e():D(e);const t=e[ue];return d(t,e[pe](),null)}function Pe(...e){let t;return d(bt,null,ui(t=e.map(oe))?t:{default:()=>[t]})}function ra(...e){let t;return d(jt,null,ui(t=e.map(oe))?t:{default:()=>[t]})}function Re(e){if(Te(e))return typeof e=="function"?e():typeof e=="string"?d(K,null,[e]):d(e,null,null);const t=e[ue];return d(t,e[pe](),null)}function Te(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[wt]===!0}function mn(e,t){const n=O(null),i=O(void 0);function r(s){n.value||(n.value=setInterval(o,250)),i.value=s}function a(){n.value&&(clearInterval(n.value),n.value=null)}function o(){t&&t.value?t.value():e&&e.value&&e.value(i.value)}return Un(a),{start:r,stop:a,handleHolding:o}}function ct(e,t="div"){const n=xe();return Ne(()=>{n.value=D(ae(e),t)}),n}function it(e,t="div"){const n=xe(null);return Ne(()=>{const i=ae(e);n.value=i==null?null:D(i,t)}),n}function aa(e){return N(()=>ae(e))}function ae(e){return l(l(e))}function k(...e){return e.includes(Object)||e.push(Object),e}const oa=E({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var h;const n=O({}),i=new ResizeObserver(s),r=O(null);Tt(()=>{const v=r.value;v!=null&&i.observe(v)});let a=!0,o=O((h=r.value)==null?void 0:h.getBoundingClientRect());function s(){r.value!=null&&a&&(a=!1,Ve(()=>{var v;o.value=(v=r.value)==null?void 0:v.getBoundingClientRect(),Object.values(n.value).filter(b=>b).forEach(b=>b.rect=b.element.getBoundingClientRect()),t("updateNodes",n.value),a=!0}))}document.fonts.ready.then(s);const u={attributes:!1,childList:!0,subtree:!1};Ft(gn,(v,b)=>{const w=new MutationObserver(()=>c(v));w.observe(b,u),n.value[v]={element:b,observer:w,rect:b.getBoundingClientRect()},t("updateNodes",n.value),Ve(()=>c(v))}),Ft(vn,v=>{var b;(b=n.value[v])==null||b.observer.disconnect(),n.value[v]=void 0,t("updateNodes",n.value)}),Ft(hn,n),Ft(bn,o);function c(v){const b=n.value[v];b!=null&&(b.rect=b.element.getBoundingClientRect(),t("updateNodes",n.value))}return(v,b)=>(g(),x(K,null,[De(v.$slots,"default",{},void 0,!0),p("div",{ref_key:"resizeListener",ref:r,class:"resize-listener"},null,512)],64))}});var di=q(oa,[["__scopeId","data-v-6a08ac80"]]);const sa=["onPointerdown"],la={class:"modal-wrapper"},ua={class:"modal-container"},da={class:"modal-header"},ca=C(" default header "),fa={class:"modal-body"},pa=C(" default body "),ma={class:"modal-footer"},ga=p("div",{class:"modal-default-flex-grow"},null,-1),Je=E({__name:"Modal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const r=ne(e),a=N(()=>r.modelValue||s.value);function o(){n("update:modelValue",!1)}const s=O(!1),u=O(null),c=N(()=>{var h,v;return(v=(h=u.value)==null?void 0:h.nodes)!=null?v:null});return t({isOpen:a,nodes:c}),(h,v)=>(g(),A(Bi,{to:"#modal-root"},[d(Zt,{name:"modal",onBeforeEnter:v[0]||(v[0]=b=>s.value=!0),onAfterLeave:v[1]||(v[1]=b=>s.value=!1)},{default:V(()=>[Kt(p("div",Be({class:"modal-mask",onPointerdown:_t(o,["self"])},h.$attrs),[p("div",la,[p("div",ua,[p("div",da,[De(h.$slots,"header",{shown:l(a)},()=>[ca])]),p("div",fa,[d(di,{ref_key:"contextRef",ref:u},{default:V(()=>[De(h.$slots,"body",{shown:l(a)},()=>[pa])]),_:3},512)]),p("div",ma,[De(h.$slots,"footer",{shown:l(a)},()=>[p("div",{class:"modal-default-footer"},[ga,p("button",{class:"button modal-default-button",onClick:o}," Close ")])])])])])],16,sa),[[Ri,e.modelValue]])]),_:3})]))}}),Nt=Symbol("PersistentState"),St=Symbol("DefaultValue"),Ht=Symbol("StackTrace"),ci=Symbol("Deleted");function va(){var e;return((e=new Error().stack)==null?void 0:e.split(` +import"./vue.37fee242.js";import{a2 as N,n as fe,y as Yt,u as Mt,H as l,b3 as Ie,ae as E,o as g,a4 as x,a5 as p,r as De,K as Q,x as O,aG as Gn,A as xe,b4 as Ne,ac as d,as as cn,U as K,aC as Tt,av as Ve,aJ as Ft,F as ne,c as A,w as V,b9 as Kt,bs as Ri,au as Be,bu as _t,T as Zt,Y as Bi,ab as C,l as qi,bv as An,aN as de,a3 as P,O as U,aP as ee,M as W,aK as qe,aI as Le,D as Ze,bn as Li,br as Hn,aM as kt,ap as jt,L as ji,ay as zi,C as En,be as Ui}from"./@vue.7184beb0.js";import{i as Gi}from"./is-plain-object.906d88e8.js";import{c as Wn}from"./nanoevents.1080beb7.js";import{L as Ye}from"./lz-string.f2f3b7cf.js";import{_ as q,C as Hi}from"./@ivanv.350aa563.js";import{Y as Wi}from"./vue-next-select.e991724e.js";import{D as Yi}from"./vuedraggable.d1ae43bb.js";import{p as Ki}from"./vue-textarea-autosize.35804eaf.js";import{s as Zi,u as fn}from"./vue-toastification.80a5fcd9.js";import{A as Ji,u as Xi,E as Vn}from"./@pixi.c5050cb0.js";import{v as Qi,n as er}from"./workbox-window.60401ce8.js";import"./earcut.17d42416.js";import"./sortablejs.bd686609.js";import"./ismobilejs.5c6954b9.js";import"./eventemitter3.dc5195d7.js";import"./url.b1bd21f4.js";import"./querystring.776b9ab3.js";const tr=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerpolicy&&(a.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?a.credentials="include":r.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}};tr();const nr="modulepreload",Fn={},ir="./",zt=function(t,n){return!n||n.length===0?t():Promise.all(n.map(i=>{if(i=`${ir}${i}`,i in Fn)return;Fn[i]=!0;const r=i.endsWith(".css"),a=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${a}`))return;const o=document.createElement("link");if(o.rel=r?"stylesheet":nr,r||(o.as="script",o.crossOrigin=""),o.href=i,document.head.appendChild(o),r)return new Promise((s,u)=>{o.addEventListener("load",s),o.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},rr="Profectus Demo",ar="A demo project made in Profectus",or="profectus-demo",sr="",lr="",ur="",dr="0.0",cr="Initial Commit",fr=!0,pr=!1,mr=2,gr=!0,vr=null,hr="Logo.png",br=["main","c"],yr=3600,_r=1,kr=!0,wr="base64";var J={title:rr,description:ar,id:or,author:sr,discordName:lr,discordLink:ur,versionNumber:dr,versionTitle:cr,allowGoBack:fr,defaultShowSmall:pr,defaultDecimalsShown:mr,useHeader:gr,banner:vr,logo:hr,initialTabs:br,maxTickLength:yr,offlineLimit:_r,enablePausing:kr,exportEncoding:wr};const tn=17,xr=9e15,Nr=Math.log10(9e15),Sr=1/9e15,Cr=308,$r=-324,Dn=5,Mr=function(){const e=[];for(let n=$r+1;n<=Cr;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),Qe=[2,Math.E,3,4,5,6,7,8,9,10],Tr=[[1,1.0891168053867777,1.1789745164521264,1.2701428397304229,1.3632066654400328,1.4587804913784246,1.557523817412741,1.660158301473385,1.767487542936873,1.8804205225512542,2],[1,1.1121114330934,1.23103892493161,1.35838369631113,1.49605193039935,1.64635423375119,1.81213853570186,1.99697132461829,2.20538955455724,2.44325744833852,Math.E],[1,1.1187738849693603,1.2464963939368214,1.38527004705667,1.5376664685821402,1.7068895236551784,1.897001227148399,2.1132403089001035,2.362480153784171,2.6539010333870774,3],[1,1.1367350847096405,1.2889510672956703,1.4606478703324786,1.6570295196661111,1.8850062585672889,2.1539465047453485,2.476829779693097,2.872061932789197,3.3664204535587183,4],[1,1.1494592900767588,1.319708228183931,1.5166291280087583,1.748171114438024,2.0253263297298045,2.3636668498288547,2.7858359149579424,3.3257226212448145,4.035730287722532,5],[1,1.159225940787673,1.343712473580932,1.5611293155111927,1.8221199554561318,2.14183924486326,2.542468319282638,3.0574682501653316,3.7390572020926873,4.6719550537360774,6],[1,1.1670905356972596,1.3632807444991446,1.5979222279405536,1.8842640123816674,2.2416069644878687,2.69893426559423,3.3012632110403577,4.121250340630164,5.281493033448316,7],[1,1.1736630594087796,1.379783782386201,1.6292821855668218,1.9378971836180754,2.3289975651071977,2.8384347394720835,3.5232708454565906,4.478242031114584,5.868592169644505,8],[1,1.1793017514670474,1.394054150657457,1.65664127441059,1.985170999970283,2.4069682290577457,2.9647310119960752,3.7278665320924946,4.814462547283592,6.436522247411611,9],[1,1.18422737399915,1.4066113788546144,1.680911177655277,2.027492094355525,2.4775152854601967,3.080455730250329,3.918234505962507,5.1332705696484595,6.9878696918072905,10]],Ir=[[-1,-.9194161097107025,-.8335625019330468,-.7425599821143978,-.6466611521029437,-.5462617907227869,-.4419033816638769,-.3342645487554494,-.224140440909962,-.11241087890006762,0],[-1,-.90603157029014,-.80786507256596,-.7064666939634,-.60294836853664,-.49849837513117,-.39430303318768,-.29147201034755,-.19097820800866,-.09361896280296,0],[-1,-.9021579584316141,-.8005762598234203,-.6964780623319391,-.5911906810998454,-.486050182576545,-.3823089430815083,-.28106046722897615,-.1831906535795894,-.08935809204418144,0],[-1,-.8917227442365535,-.781258746326964,-.6705130326902455,-.5612813129406509,-.4551067709033134,-.35319256652135966,-.2563741554088552,-.1651412821106526,-.0796919581982668,0],[-1,-.8843387974366064,-.7678744063886243,-.6529563724510552,-.5415870994657841,-.4352842206588936,-.33504449124791424,-.24138853420685147,-.15445285440944467,-.07409659641336663,0],[-1,-.8786709358426346,-.7577735191184886,-.6399546189952064,-.527284921869926,-.4211627631006314,-.3223479611761232,-.23107655627789858,-.1472057700818259,-.07035171210706326,0],[-1,-.8740862815291583,-.7497032990976209,-.6297119746181752,-.5161838335958787,-.41036238255751956,-.31277212146489963,-.2233976621705518,-.1418697367979619,-.06762117662323441,0],[-1,-.8702632331800649,-.7430366914122081,-.6213373075161548,-.5072025698095242,-.40171437727184167,-.30517930701410456,-.21736343968190863,-.137710238299109,-.06550774483471955,0],[-1,-.8670016295947213,-.7373984232432306,-.6143173985094293,-.49973884395492807,-.394584953527678,-.2989649949848695,-.21245647317021688,-.13434688362382652,-.0638072667348083,0],[-1,-.8641642839543857,-.732534623168535,-.6083127477059322,-.4934049257184696,-.3885773075899922,-.29376029055315767,-.2083678561173622,-.13155653399373268,-.062401588652553186,0]],m=function(t){return f.fromValue_noAlloc(t)},F=function(e,t,n){return f.fromComponents(e,t,n)},j=function(t,n,i){return f.fromComponents_noNormalize(t,n,i)},We=function(t,n){const i=n+1,r=Math.ceil(Math.log10(Math.abs(t))),a=Math.round(t*Math.pow(10,i-r))*Math.pow(10,r-i);return parseFloat(a.toFixed(Math.max(i-r,0)))},nn=function(e){return Math.sign(e)*Math.log10(Math.abs(e))},Pr=function(e){if(!isFinite(e))return e;if(e<-50)return e===Math.trunc(e)?Number.NEGATIVE_INFINITY:0;let t=1;for(;e<10;)t=t*e,++e;e-=1;let n=.9189385332046727;n=n+(e+.5)*Math.log(e),n=n-e;const i=e*e;let r=e;return n=n+1/(12*r),r=r*i,n=n+1/(360*r),r=r*i,n=n+1/(1260*r),r=r*i,n=n+1/(1680*r),r=r*i,n=n+1/(1188*r),r=r*i,n=n+691/(360360*r),r=r*i,n=n+7/(1092*r),r=r*i,n=n+3617/(122400*r),Math.exp(n)/t},Yn=.5671432904097838,Rn=function(e,t=1e-10){let n,i;if(!Number.isFinite(e)||e===0)return e;if(e===1)return Yn;e<10?n=0:n=Math.log(e)-Math.log(Math.log(e));for(let r=0;r<100;++r){if(i=(e*Math.exp(-n)+n*n)/(n+1),Math.abs(i-n).5?1:-1;if(Math.random()*20<1)return j(t,0,1);const n=Math.floor(Math.random()*(e+1));let i=n===0?Math.random()*616-308:Math.random()*16;Math.random()>.9&&(i=Math.trunc(i));let r=Math.pow(10,i);return Math.random()>.9&&(r=Math.trunc(r)),F(t,n,r)}static affordGeometricSeries_core(e,t,n,i){const r=t.mul(n.pow(i));return _.floor(e.div(r).mul(n.sub(1)).add(1).log10().div(n.log10()))}static sumGeometricSeries_core(e,t,n,i){return t.mul(n.pow(i)).mul(_.sub(1,n.pow(e))).div(_.sub(1,n))}static affordArithmeticSeries_core(e,t,n,i){const a=t.add(i.mul(n)).sub(n.div(2)),o=a.pow(2);return a.neg().add(o.add(n.mul(e).mul(2)).sqrt()).div(n).floor()}static sumArithmeticSeries_core(e,t,n,i){const r=t.add(i.mul(n));return e.div(2).mul(r.mul(2).plus(e.sub(1).mul(n)))}static efficiencyOfPurchase_core(e,t,n){return e.div(t).add(e.div(n))}normalize(){if(this.sign===0||this.mag===0&&this.layer===0)return this.sign=0,this.mag=0,this.layer=0,this;if(this.layer===0&&this.mag<0&&(this.mag=-this.mag,this.sign=-this.sign),this.layer===0&&this.mag=xr)return this.layer+=1,this.mag=t*Math.log10(e),this;for(;e0;)this.layer-=1,this.layer===0?this.mag=Math.pow(10,this.mag):(this.mag=t*Math.pow(10,e),e=Math.abs(this.mag),t=Math.sign(this.mag));return this.layer===0&&(this.mag<0?(this.mag=-this.mag,this.sign=-this.sign):this.mag===0&&(this.sign=0)),this}fromComponents(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this.normalize(),this}fromComponents_noNormalize(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this}fromMantissaExponent(e,t){return this.layer=1,this.sign=Math.sign(e),e=Math.abs(e),this.mag=t+Math.log10(e),this.normalize(),this}fromMantissaExponent_noNormalize(e,t){return this.fromMantissaExponent(e,t),this}fromDecimal(e){return this.sign=e.sign,this.layer=e.layer,this.mag=e.mag,this}fromNumber(e){return this.mag=Math.abs(e),this.sign=Math.sign(e),this.layer=0,this.normalize(),this}fromString(e){e=e.replace(",","");const t=e.split("^^^");if(t.length===2){const b=parseFloat(t[0]),w=parseFloat(t[1]),S=t[1].split(";");let $=1;if(S.length===2&&($=parseFloat(S[1]),isFinite($)||($=1)),isFinite(b)&&isFinite(w)){const R=_.pentate(b,w,$);return this.sign=R.sign,this.layer=R.layer,this.mag=R.mag,this}}const n=e.split("^^");if(n.length===2){const b=parseFloat(n[0]),w=parseFloat(n[1]),S=n[1].split(";");let $=1;if(S.length===2&&($=parseFloat(S[1]),isFinite($)||($=1)),isFinite(b)&&isFinite(w)){const R=_.tetrate(b,w,$);return this.sign=R.sign,this.layer=R.layer,this.mag=R.mag,this}}const i=e.split("^");if(i.length===2){const b=parseFloat(i[0]),w=parseFloat(i[1]);if(isFinite(b)&&isFinite(w)){const S=_.pow(b,w);return this.sign=S.sign,this.layer=S.layer,this.mag=S.mag,this}}e=e.trim().toLowerCase();let r,a,o=e.split("pt");if(o.length===2){r=10,a=parseFloat(o[0]),o[1]=o[1].replace("(",""),o[1]=o[1].replace(")","");let b=parseFloat(o[1]);if(isFinite(b)||(b=1),isFinite(r)&&isFinite(a)){const w=_.tetrate(r,a,b);return this.sign=w.sign,this.layer=w.layer,this.mag=w.mag,this}}if(o=e.split("p"),o.length===2){r=10,a=parseFloat(o[0]),o[1]=o[1].replace("(",""),o[1]=o[1].replace(")","");let b=parseFloat(o[1]);if(isFinite(b)||(b=1),isFinite(r)&&isFinite(a)){const w=_.tetrate(r,a,b);return this.sign=w.sign,this.layer=w.layer,this.mag=w.mag,this}}const s=e.split("e"),u=s.length-1;if(u===0){const b=parseFloat(e);if(isFinite(b))return this.fromNumber(b)}else if(u===1){const b=parseFloat(e);if(isFinite(b)&&b!==0)return this.fromNumber(b)}const c=e.split("e^");if(c.length===2){this.sign=1,c[0].charAt(0)=="-"&&(this.sign=-1);let b="";for(let w=0;w=43&&S<=57||S===101)b+=c[1].charAt(w);else return this.layer=parseFloat(b),this.mag=parseFloat(c[1].substr(w+1)),this.normalize(),this}}if(u<1)return this.sign=0,this.layer=0,this.mag=0,this;const h=parseFloat(s[0]);if(h===0)return this.sign=0,this.layer=0,this.mag=0,this;let v=parseFloat(s[s.length-1]);if(u>=2){const b=parseFloat(s[s.length-2]);isFinite(b)&&(v*=Math.sign(b),v+=nn(b))}if(!isFinite(h))this.sign=s[0]==="-"?-1:1,this.layer=u,this.mag=v;else if(u===1)this.sign=Math.sign(h),this.layer=1,this.mag=v+Math.log10(Math.abs(h));else if(this.sign=Math.sign(h),this.layer=u,u===2){const b=_.mul(F(1,2,v),m(h));return this.sign=b.sign,this.layer=b.layer,this.mag=b.mag,this}else this.mag=v;return this.normalize(),this}fromValue(e){return e instanceof _||e!=null&&typeof e=="object"&&"sign"in e&&"mag"in e&&"layer"in e?this.fromDecimal(e):typeof e=="number"?this.fromNumber(e):typeof e=="string"?this.fromString(e):(this.sign=0,this.layer=0,this.mag=0,this)}toNumber(){return Number.isFinite(this.layer)?this.layer===0?this.sign*this.mag:this.layer===1?this.sign*Math.pow(10,this.mag):this.mag>0?this.sign>0?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:0:Number.NaN}mantissaWithDecimalPlaces(e){return isNaN(this.m)?Number.NaN:this.m===0?0:We(this.m,e)}magnitudeWithDecimalPlaces(e){return isNaN(this.mag)?Number.NaN:this.mag===0?0:We(this.mag,e)}toString(){return isNaN(this.layer)||isNaN(this.sign)||isNaN(this.mag)?"NaN":this.mag===Number.POSITIVE_INFINITY||this.layer===Number.POSITIVE_INFINITY?this.sign===1?"Infinity":"-Infinity":this.layer===0?this.mag<1e21&&this.mag>1e-7||this.mag===0?(this.sign*this.mag).toString():this.m+"e"+this.e:this.layer===1?this.m+"e"+this.e:this.layer<=Dn?(this.sign===-1?"-":"")+"e".repeat(this.layer)+this.mag:(this.sign===-1?"-":"")+"(e^"+this.layer+")"+this.mag}toExponential(e){return this.layer===0?(this.sign*this.mag).toExponential(e):this.toStringWithDecimalPlaces(e)}toFixed(e){return this.layer===0?(this.sign*this.mag).toFixed(e):this.toStringWithDecimalPlaces(e)}toPrecision(e){return this.e<=-7?this.toExponential(e-1):e>this.e?this.toFixed(e-this.exponent-1):this.toExponential(e-1)}valueOf(){return this.toString()}toJSON(){return this.toString()}toStringWithDecimalPlaces(e){return this.layer===0?this.mag<1e21&&this.mag>1e-7||this.mag===0?(this.sign*this.mag).toFixed(e):We(this.m,e)+"e"+We(this.e,e):this.layer===1?We(this.m,e)+"e"+We(this.e,e):this.layer<=Dn?(this.sign===-1?"-":"")+"e".repeat(this.layer)+We(this.mag,e):(this.sign===-1?"-":"")+"(e^"+this.layer+")"+We(this.mag,e)}abs(){return j(this.sign===0?0:1,this.layer,this.mag)}neg(){return j(-this.sign,this.layer,this.mag)}negate(){return this.neg()}negated(){return this.neg()}sgn(){return this.sign}round(){return this.mag<0?_.dZero:this.layer===0?F(this.sign,0,Math.round(this.mag)):this}floor(){return this.mag<0?_.dZero:this.layer===0?F(this.sign,0,Math.floor(this.mag)):this}ceil(){return this.mag<0?_.dZero:this.layer===0?F(this.sign,0,Math.ceil(this.mag)):this}trunc(){return this.mag<0?_.dZero:this.layer===0?F(this.sign,0,Math.trunc(this.mag)):this}add(e){const t=m(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer)||this.sign===0)return t;if(t.sign===0)return this;if(this.sign===-t.sign&&this.layer===t.layer&&this.mag===t.mag)return j(0,0,0);let n,i;if(this.layer>=2||t.layer>=2)return this.maxabs(t);if(_.cmpabs(this,t)>0?(n=this,i=t):(n=t,i=this),n.layer===0&&i.layer===0)return m(n.sign*n.mag+i.sign*i.mag);const r=n.layer*Math.sign(n.mag),a=i.layer*Math.sign(i.mag);if(r-a>=2)return n;if(r===0&&a===-1){if(Math.abs(i.mag-Math.log10(n.mag))>tn)return n;{const o=Math.pow(10,Math.log10(n.mag)-i.mag),s=i.sign+n.sign*o;return F(Math.sign(s),1,i.mag+Math.log10(Math.abs(s)))}}if(r===1&&a===0){if(Math.abs(n.mag-Math.log10(i.mag))>tn)return n;{const o=Math.pow(10,n.mag-Math.log10(i.mag)),s=i.sign+n.sign*o;return F(Math.sign(s),1,Math.log10(i.mag)+Math.log10(Math.abs(s)))}}if(Math.abs(n.mag-i.mag)>tn)return n;{const o=Math.pow(10,n.mag-i.mag),s=i.sign+n.sign*o;return F(Math.sign(s),1,i.mag+Math.log10(Math.abs(s)))}}plus(e){return this.add(e)}sub(e){return this.add(m(e).neg())}subtract(e){return this.sub(e)}minus(e){return this.sub(e)}mul(e){const t=m(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer))return t;if(this.sign===0||t.sign===0)return j(0,0,0);if(this.layer===t.layer&&this.mag===-t.mag)return j(this.sign*t.sign,0,1);let n,i;if(this.layer>t.layer||this.layer==t.layer&&Math.abs(this.mag)>Math.abs(t.mag)?(n=this,i=t):(n=t,i=this),n.layer===0&&i.layer===0)return m(n.sign*i.sign*n.mag*i.mag);if(n.layer>=3||n.layer-i.layer>=2)return F(n.sign*i.sign,n.layer,n.mag);if(n.layer===1&&i.layer===0)return F(n.sign*i.sign,1,n.mag+Math.log10(i.mag));if(n.layer===1&&i.layer===1)return F(n.sign*i.sign,1,n.mag+i.mag);if(n.layer===2&&i.layer===1){const r=F(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(F(Math.sign(i.mag),i.layer-1,Math.abs(i.mag)));return F(n.sign*i.sign,r.layer+1,r.sign*r.mag)}if(n.layer===2&&i.layer===2){const r=F(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(F(Math.sign(i.mag),i.layer-1,Math.abs(i.mag)));return F(n.sign*i.sign,r.layer+1,r.sign*r.mag)}throw Error("Bad arguments to mul: "+this+", "+e)}multiply(e){return this.mul(e)}times(e){return this.mul(e)}div(e){const t=m(e);return this.mul(t.recip())}divide(e){return this.div(e)}divideBy(e){return this.div(e)}dividedBy(e){return this.div(e)}recip(){return this.mag===0?_.dNaN:this.layer===0?F(this.sign,0,1/this.mag):F(this.sign,this.layer,-this.mag)}reciprocal(){return this.recip()}reciprocate(){return this.recip()}cmp(e){const t=m(e);return this.sign>t.sign?1:this.sign0?this.layer:-this.layer,i=t.mag>0?t.layer:-t.layer;return n>i?1:nt.mag?1:this.mag0?t:this}clamp(e,t){return this.max(e).min(t)}clampMin(e){return this.max(e)}clampMax(e){return this.min(e)}cmp_tolerance(e,t){const n=m(e);return this.eq_tolerance(n,t)?0:this.cmp(n)}compare_tolerance(e,t){return this.cmp_tolerance(e,t)}eq_tolerance(e,t){const n=m(e);if(t==null&&(t=1e-7),this.sign!==n.sign||Math.abs(this.layer-n.layer)>1)return!1;let i=this.mag,r=n.mag;return this.layer>n.layer&&(r=nn(r)),this.layer0?F(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):F(1,0,Math.log10(this.mag))}log10(){return this.sign<=0?_.dNaN:this.layer>0?F(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):F(this.sign,0,Math.log10(this.mag))}log(e){return e=m(e),this.sign<=0||e.sign<=0||e.sign===1&&e.layer===0&&e.mag===1?_.dNaN:this.layer===0&&e.layer===0?F(this.sign,0,Math.log(this.mag)/Math.log(e.mag)):_.div(this.log10(),e.log10())}log2(){return this.sign<=0?_.dNaN:this.layer===0?F(this.sign,0,Math.log2(this.mag)):this.layer===1?F(Math.sign(this.mag),0,Math.abs(this.mag)*3.321928094887362):this.layer===2?F(Math.sign(this.mag),1,Math.abs(this.mag)+.5213902276543247):F(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}ln(){return this.sign<=0?_.dNaN:this.layer===0?F(this.sign,0,Math.log(this.mag)):this.layer===1?F(Math.sign(this.mag),0,Math.abs(this.mag)*2.302585092994046):this.layer===2?F(Math.sign(this.mag),1,Math.abs(this.mag)+.36221568869946325):F(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}logarithm(e){return this.log(e)}pow(e){const t=m(e),n=this,i=t;if(n.sign===0)return i.eq(0)?j(1,0,1):n;if(n.sign===1&&n.layer===0&&n.mag===1)return n;if(i.sign===0)return j(1,0,1);if(i.sign===1&&i.layer===0&&i.mag===1)return n;const r=n.absLog10().mul(i).pow10();return this.sign===-1?Math.abs(i.toNumber()%2)%2===1?r.neg():Math.abs(i.toNumber()%2)%2===0?r:_.dNaN:r}pow10(){if(!Number.isFinite(this.layer)||!Number.isFinite(this.mag))return _.dNaN;let e=this;if(e.layer===0){const t=Math.pow(10,e.sign*e.mag);if(Number.isFinite(t)&&Math.abs(t)>=.1)return F(1,0,t);if(e.sign===0)return _.dOne;e=j(e.sign,e.layer+1,Math.log10(e.mag))}return e.sign>0&&e.mag>=0?F(e.sign,e.layer+1,e.mag):e.sign<0&&e.mag>=0?F(-e.sign,e.layer+1,-e.mag):_.dOne}pow_base(e){return m(e).pow(this)}root(e){const t=m(e);return this.pow(t.recip())}factorial(){return this.mag<0?this.add(1).gamma():this.layer===0?this.add(1).gamma():this.layer===1?_.exp(_.mul(this,_.ln(this).sub(1))):_.exp(this)}gamma(){if(this.mag<0)return this.recip();if(this.layer===0){if(this.lt(j(1,0,24)))return m(Pr(this.sign*this.mag));const e=this.mag-1;let t=.9189385332046727;t=t+(e+.5)*Math.log(e),t=t-e;const n=e*e;let i=e,r=12*i,a=1/r,o=t+a;if(o===t||(t=o,i=i*n,r=360*i,a=1/r,o=t-a,o===t))return _.exp(t);t=o,i=i*n,r=1260*i;let s=1/r;return t=t+s,i=i*n,r=1680*i,s=1/r,t=t-s,_.exp(t)}else return this.layer===1?_.exp(_.mul(this,_.ln(this).sub(1))):_.exp(this)}lngamma(){return this.gamma().ln()}exp(){return this.mag<0?_.dOne:this.layer===0&&this.mag<=709.7?m(Math.exp(this.sign*this.mag)):this.layer===0?F(1,1,this.sign*Math.log10(Math.E)*this.mag):this.layer===1?F(1,2,this.sign*(Math.log10(.4342944819032518)+this.mag)):F(1,this.layer+1,this.sign*this.mag)}sqr(){return this.pow(2)}sqrt(){if(this.layer===0)return m(Math.sqrt(this.sign*this.mag));if(this.layer===1)return F(1,2,Math.log10(this.mag)-.3010299956639812);{const e=_.div(j(this.sign,this.layer-1,this.mag),j(1,0,2));return e.layer+=1,e.normalize(),e}}cube(){return this.pow(3)}cbrt(){return this.pow(1/3)}tetrate(e=2,t=j(1,0,1)){if(e===1)return _.pow(this,t);if(e===0)return new _(t);if(this.eq(_.dOne))return _.dOne;if(this.eq(-1))return _.pow(this,t);if(e===Number.POSITIVE_INFINITY){const r=this.toNumber();if(r<=1.444667861009766&&r>=.06598803584531254){if(r>1.444667861009099)return new _(Math.E);const a=_.ln(this).neg();return a.lambertw().div(a)}else return r>1.444667861009766?new _(Number.POSITIVE_INFINITY):_.dNaN}if(this.eq(_.dZero)){let r=Math.abs((e+1)%2);return r>1&&(r=2-r),new _(r)}if(e<0)return _.iteratedlog(t,this,-e);t=m(t);const n=e;e=Math.trunc(e);const i=n-e;if(this.gt(_.dZero)&&this.lte(1.444667861009766)){e=Math.min(1e4,e);for(let r=0;r3)return j(t.sign,t.layer+(e-r-1),t.mag);if(r>1e4)return t}return t}iteratedexp(e=2,t=j(1,0,1)){return this.tetrate(e,t)}iteratedlog(e=10,t=1){if(t<0)return _.tetrate(e,-t,this);e=m(e);let n=m(this);const i=t;t=Math.trunc(t);const r=i-t;if(n.layer-e.layer>3){const a=Math.min(t,n.layer-e.layer-3);t-=a,n.layer-=a}for(let a=0;a1e4)return n}return r>0&&r<1&&(e.eq(10)?n=n.layeradd10(-r):n=n.layeradd(-r,e)),n}slog(e=10){if(e=m(e),e.lte(_.dZero)||e.eq(_.dOne))return _.dNaN;if(e.lt(_.dOne))return this.eq(_.dOne)?_.dZero:this.eq(_.dZero)?_.dNegOne:_.dNaN;if(this.mag<0||this.eq(_.dZero))return _.dNegOne;let t=0,n=m(this);if(n.layer-e.layer>3){const i=n.layer-e.layer-3;t+=i,n.layer-=i}for(let i=0;i<100;++i)if(n.lt(_.dZero))n=_.pow(e,n),t-=1;else{if(n.lte(_.dOne))return m(t+_.slog_critical(e.toNumber(),n.toNumber()));t+=1,n=_.log(n,e)}return m(t)}static slog_critical(e,t){return e>10?t-1:_.critical_section(e,t,Ir)}static tetrate_critical(e,t){return _.critical_section(e,t,Tr)}static critical_section(e,t,n){t*=10,t<0&&(t=0),t>10&&(t=10),e<2&&(e=2),e>10&&(e=10);let i=0,r=0;for(let s=0;se){const u=(e-Qe[s])/(Qe[s+1]-Qe[s]);i=n[s][Math.floor(t)]*(1-u)+n[s+1][Math.floor(t)]*u,r=n[s][Math.ceil(t)]*(1-u)+n[s+1][Math.ceil(t)]*u;break}const a=t-Math.floor(t);return i*(1-a)+r*a}layeradd10(e){e=_.fromValue_noAlloc(e).toNumber();const t=m(this);if(e>=1){t.mag<0&&t.layer>0?(t.sign=0,t.mag=0,t.layer=0):t.sign===-1&&t.layer==0&&(t.sign=1,t.mag=-t.mag);const n=Math.trunc(e);e-=n,t.layer+=n}if(e<=-1){const n=Math.trunc(e);if(e-=n,t.layer+=n,t.layer<0)for(let i=0;i<100;++i){if(t.layer++,t.mag=Math.log10(t.mag),!isFinite(t.mag))return t.sign===0&&(t.sign=1),t.layer<0&&(t.layer=0),t.normalize();if(t.layer>=0)break}}for(;t.layer<0;)t.layer++,t.mag=Math.log10(t.mag);return t.sign===0&&(t.sign=1,t.mag===0&&t.layer>=1&&(t.layer-=1,t.mag=1)),t.normalize(),e!==0?t.layeradd(e,10):t}layeradd(e,t){const i=this.slog(t).toNumber()+e;return i>=0?_.tetrate(t,i):Number.isFinite(i)?i>=-1?_.log(_.tetrate(t,i+1),t):_.log(_.log(_.tetrate(t,i+2),t),t):_.dNaN}lambertw(){if(this.lt(-.3678794411710499))throw Error("lambertw is unimplemented for results less than -1, sorry!");if(this.mag<0)return m(Rn(this.toNumber()));if(this.layer===0)return m(Rn(this.sign*this.mag));if(this.layer===1)return Bn(this);if(this.layer===2)return Bn(this);if(this.layer>=3)return j(this.sign,this.layer-1,this.mag);throw"Unhandled behavior in lambertw()"}ssqrt(){if(this.sign==1&&this.layer>=3)return j(this.sign,this.layer-1,this.mag);const e=this.ln();return e.div(e.lambertw())}pentate(e=2,t=j(1,0,1)){t=m(t);const n=e;e=Math.trunc(e);const i=n-e;i!==0&&(t.eq(_.dOne)?(++e,t=new _(i)):this.eq(10)?t=t.layeradd10(i):t=t.layeradd(i,this));for(let r=0;r10)return t}return t}sin(){return this.mag<0?this:this.layer===0?m(Math.sin(this.sign*this.mag)):j(0,0,0)}cos(){return this.mag<0?_.dOne:this.layer===0?m(Math.cos(this.sign*this.mag)):j(0,0,0)}tan(){return this.mag<0?this:this.layer===0?m(Math.tan(this.sign*this.mag)):j(0,0,0)}asin(){return this.mag<0?this:this.layer===0?m(Math.asin(this.sign*this.mag)):j(Number.NaN,Number.NaN,Number.NaN)}acos(){return this.mag<0?m(Math.acos(this.toNumber())):this.layer===0?m(Math.acos(this.sign*this.mag)):j(Number.NaN,Number.NaN,Number.NaN)}atan(){return this.mag<0?this:this.layer===0?m(Math.atan(this.sign*this.mag)):m(Math.atan(this.sign*(1/0)))}sinh(){return this.exp().sub(this.negate().exp()).div(2)}cosh(){return this.exp().add(this.negate().exp()).div(2)}tanh(){return this.sinh().div(this.cosh())}asinh(){return _.ln(this.add(this.sqr().add(1).sqrt()))}acosh(){return _.ln(this.add(this.sqr().sub(1).sqrt()))}atanh(){return this.abs().gte(1)?j(Number.NaN,Number.NaN,Number.NaN):_.ln(this.add(1).div(m(1).sub(this))).div(2)}ascensionPenalty(e){return e===0?this:this.root(_.pow(10,e))}egg(){return this.add(9)}lessThanOrEqualTo(e){return this.cmp(e)<1}lessThan(e){return this.cmp(e)<0}greaterThanOrEqualTo(e){return this.cmp(e)>-1}greaterThan(e){return this.cmp(e)>0}};let f=_;f.dZero=j(0,0,0);f.dOne=j(1,0,1);f.dNegOne=j(-1,0,1);f.dTwo=j(1,0,2);f.dTen=j(1,0,10);f.dNaN=j(Number.NaN,Number.NaN,Number.NaN);f.dInf=j(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY);f.dNegInf=j(-1,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);f.dNumberMax=F(1,0,Number.MAX_VALUE);f.dNumberMin=F(1,0,Number.MIN_VALUE);const Or=new f(1);function vt(e,t,n=!0){let i=f.log10(e).floor(),r=f.div(e,f.pow(10,i));r.toStringWithDecimalPlaces(t)==="10"&&(r=Or,i=i.add(1));const a=i.gte(1e9)?$e(i,Math.max(Math.max(t,3),J.defaultDecimalsShown)):i.gte(1e4)?Ut(i,0):i.toStringWithDecimalPlaces(0);return n?r.toStringWithDecimalPlaces(t)+"e"+a:"e"+a}function Ut(e,t){if(e==null)return"NaN";if(e=new f(e),e.mag<.001)return 0 .toFixed(t);const i=e.toStringWithDecimalPlaces(t).split(".");return i[0]=i[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"),i.length==1?i[0]:i[0]+"."+i[1]}function Kn(e,t){return e==null?"NaN":(e=new f(e),e.mag<1e-4?0 .toFixed(t):(e.mag<.1&&t!==0&&(t=Math.max(Math.max(t,e.log10().negate().ceil().toNumber()),J.defaultDecimalsShown)),e.toStringWithDecimalPlaces(t)))}const Ar=new f("eeee1000"),Er=new f("e100000"),qn=new f("e1000"),Zn=new f(1e9),Vr=new f(1e6),Fr=new f(1e3),Dr=new f(.98),Rr=new f(.001),Jn=new f(0);function $e(e,t,n){if(t==null&&(t=J.defaultDecimalsShown),n=n!=null?n:J.defaultShowSmall,e=new f(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag))return"NaN";if(e.sign<0)return"-"+$e(e.neg(),t);if(e.mag===Number.POSITIVE_INFINITY)return"Infinity";if(e.gte(Ar)){const i=e.slog();return i.gte(Vr)?"F"+$e(i.floor()):f.pow(10,i.sub(i.floor())).toStringWithDecimalPlaces(3)+"F"+Ut(i.floor(),0)}else{if(e.gte(Er))return vt(e,0,!1);if(e.gte(qn))return vt(e,0);if(e.gte(Zn))return vt(e,t);if(e.gte(Fr))return Ut(e,0);if(e.gte(Rr)||!n)return Kn(e,t);if(e.eq(Jn))return 0 .toFixed(t)}return e=Qn(e),e.lt(qn)?vt(e,t).replace(/([^(?:e|F)]*)$/,"-$1"):$e(e,t)+"\u207B\xB9"}function Ce(e){return e=new f(e),e.sign<0?"-"+Ce(e.neg()):e.gte(Zn)||e.lte(Dr)&&!e.eq(Jn)?$e(e):$e(e,0)}function Xn(e){return f.lt(e,0)?"-"+Xn(f.neg(e)):f.gt(e,2**51)?$e(f.div(e,31536e3))+"y":(e=new f(e).toNumber(),e<60?$e(e)+"s":e<3600?Ce(Math.floor(e/60))+"m "+$e(e%60)+"s":e<86400?Ce(Math.floor(e/3600))+"h "+Ce(Math.floor(e/60)%60)+"m "+Ce(e%60)+"s":e<31536e3?Ce(Math.floor(e/84600)%365)+"d "+Ce(Math.floor(e/3600)%24)+"h "+Ce(Math.floor(e/60)%60)+"m":Ce(Math.floor(e/31536e3))+"y "+Ce(Math.floor(e/84600)%365)+"d "+Ce(Math.floor(e/3600)%24)+"h")}function Br(e,t,n){e=new f(e);let i=e.toStringWithDecimalPlaces(t);return new f(i).gte(n)&&(i=f.sub(n,Math.pow(.1,t)).toStringWithDecimalPlaces(t)),i}function qr(e,t){return $e(e,t,!0)}function Qn(e){let t=f.log10(e).ceil();const n=f.div(e,f.pow(10,t));return t=t.neg(),e=new f(10).pow(t).times(n),e}var Lr=Object.freeze(Object.defineProperty({__proto__:null,default:f,exponentialFormat:vt,commaFormat:Ut,regularFormat:Kn,format:$e,formatWhole:Ce,formatTime:Xn,toPlaces:Br,formatSmall:qr,invertOOM:Qn},Symbol.toStringTag,{value:"Module"}));const{exponentialFormat:jr,commaFormat:zr,regularFormat:Ur,format:se,formatWhole:ve,formatTime:Jt,toPlaces:Gr,formatSmall:Hr,invertOOM:Wr}=Lr;window.Decimal=f;window.exponentialFormat=jr;window.commaFormat=zr;window.regularFormat=Ur;window.format=se;window.formatWhole=ve;window.formatTime=Jt;window.toPlaces=Gr;window.formatSmall=Hr;window.invertOOM=Wr;function ei(e){let t=e.replace(/([A-Z])/g," $1");return t=t.charAt(0).toUpperCase()+t.slice(1),t}function tt(e){return typeof e=="function"}var X=(e=>(e.Up="Up",e.Down="Down",e.Left="Left",e.Right="Right",e.Default="Up",e))(X||{});const wt=Symbol("DoNotCache");function y(e,t){const n=e[t];tt(n)&&n.length===0&&!n[wt]?e[t]=N(n.bind(e)):tt(n)&&(e[t]=n.bind(e),e[t][wt]=!0)}function Me(e){return tt(e)&&!e[wt]&&(e=N(e)),e}const 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 L(e){return e[wt]=!0,e}function gt(e,t=2){return e?0:t}function z(e,t,n){e[t]===void 0&&n!=null&&(e[t]=n)}function ti(e,...t){const n=[],i=r=>{Object.keys(r).forEach(a=>{const o=r[a];o&&typeof o=="object"&&(t.includes(o.type)?n.push(o):!(o instanceof f)&&!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"&&(Gi(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 Gt(){const e=Date.now();let t=(e-T.time)/1e3;T.time=e;const n=t;if(ie.lastTenTicks.push(n),ie.lastTenTicks.length>10&&(ie.lastTenTicks=ie.lastTenTicks.slice(1)),!((ht==null?void 0:ht.value)&&!T.keepGoing)&&!ie.hasNaN&&(t=Math.max(t,0),T.devSpeed!==0)){if(T.offlineTime!=null){if(f.gt(T.offlineTime,J.offlineLimit*3600)&&(T.offlineTime=J.offlineLimit*3600),f.gt(T.offlineTime,0)&&T.devSpeed!==0){const i=Math.max(T.offlineTime/10,t);T.offlineTime=T.offlineTime-i,t+=i}else T.devSpeed===0&&(T.offlineTime+=t);(!T.offlineProd||f.lt(T.offlineTime,0))&&(T.offlineTime=null)}t=Math.min(t,J.maxTickLength),T.devSpeed!=null&&(t*=T.devSpeed),Number.isFinite(t)||(t=1e308),!f.eq(t,0)&&(T.timePlayed+=t,Number.isFinite(T.timePlayed)||(T.timePlayed=1e308),ge.emit("update",t,n),Z.unthrottled?(requestAnimationFrame(Gt),lt!=null&&(clearInterval(lt),lt=null)):lt==null&&(lt=setInterval(Gt,50)))}}async function Kr(){ht=(await zt(()=>Promise.resolve().then(function(){return Ai}),void 0)).hasWon,Ie(ht,e=>{e&&ge.emit("gameWon")}),Z.unthrottled?requestAnimationFrame(Gt):lt=setInterval(Gt,50)}var Zr=Object.freeze(Object.defineProperty({__proto__:null,globalBus:ge,startGameLoop:Kr},Symbol.toStringTag,{value:"Module"}));function ai(e={}){return Object.assign({id:`${J.id}-0`,name:"Default Save",tabs:J.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:0,timePlayed:0,keepGoing:!1,modID:J.id,modVersion:J.versionNumber,layers:{}},e)}function Ae(e){const t=Ye.compressToUTF16(ii(e!=null?e:T[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"},Lt=E({__name:"Column",setup(e){const t=N(()=>ze[Z.theme].mergeAdjacent);return(n,i)=>(g(),x("div",na,[p("div",{class:Q(["col",{mergeAdjacent:l(t)}])},[De(n.$slots,"default")],2)]))}}),ia={class:"table"},bt=E({__name:"Row",setup(e){const t=N(()=>ze[Z.theme].mergeAdjacent);return(n,i)=>(g(),x("div",ia,[p("div",{class:Q(["row",{mergeAdjacent:l(t)}])},[De(n.$slots,"default")],2)]))}});function ui(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!cn(e)}function D(e,t="span"){return typeof e=="function"?E({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}`),E({template:e})):E({render:()=>({})}):e}function oe(e){if(Te(e))return typeof e=="function"?e():D(e);const t=e[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(Lt,null,ui(t=e.map(oe))?t:{default:()=>[t]})}function Re(e){if(Te(e))return typeof e=="function"?e():typeof e=="string"?d(K,null,[e]):d(e,null,null);const t=e[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 Gn(a),{start:r,stop:a,handleHolding:o}}function ct(e,t="div"){const n=xe();return Ne(()=>{n.value=D(ae(e),t)}),n}function it(e,t="div"){const n=xe(null);return Ne(()=>{const i=ae(e);n.value=i==null?null:D(i,t)}),n}function aa(e){return N(()=>ae(e))}function ae(e){return l(l(e))}function k(...e){return e.includes(Object)||e.push(Object),e}const oa=E({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var h;const n=O({}),i=new ResizeObserver(s),r=O(null);Tt(()=>{const v=r.value;v!=null&&i.observe(v)});let a=!0,o=O((h=r.value)==null?void 0:h.getBoundingClientRect());function s(){r.value!=null&&a&&(a=!1,Ve(()=>{var v;o.value=(v=r.value)==null?void 0:v.getBoundingClientRect(),Object.values(n.value).filter(b=>b).forEach(b=>b.rect=b.element.getBoundingClientRect()),t("updateNodes",n.value),a=!0}))}document.fonts.ready.then(s);const u={attributes:!1,childList:!0,subtree:!1};Ft(gn,(v,b)=>{const w=new MutationObserver(()=>c(v));w.observe(b,u),n.value[v]={element:b,observer:w,rect:b.getBoundingClientRect()},t("updateNodes",n.value),Ve(()=>c(v))}),Ft(vn,v=>{var b;(b=n.value[v])==null||b.observer.disconnect(),n.value[v]=void 0,t("updateNodes",n.value)}),Ft(hn,n),Ft(bn,o);function c(v){const b=n.value[v];b!=null&&(b.rect=b.element.getBoundingClientRect(),t("updateNodes",n.value))}return(v,b)=>(g(),x(K,null,[De(v.$slots,"default",{},void 0,!0),p("div",{ref_key:"resizeListener",ref:r,class:"resize-listener"},null,512)],64))}});var di=q(oa,[["__scopeId","data-v-6a08ac80"]]);const sa=["onPointerdown"],la={class:"modal-wrapper"},ua={class:"modal-container"},da={class:"modal-header"},ca=C(" default header "),fa={class:"modal-body"},pa=C(" default body "),ma={class:"modal-footer"},ga=p("div",{class:"modal-default-flex-grow"},null,-1),Je=E({__name:"Modal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const r=ne(e),a=N(()=>r.modelValue||s.value);function o(){n("update:modelValue",!1)}const s=O(!1),u=O(null),c=N(()=>{var h,v;return(v=(h=u.value)==null?void 0:h.nodes)!=null?v:null});return t({isOpen:a,nodes:c}),(h,v)=>(g(),A(Bi,{to:"#modal-root"},[d(Zt,{name:"modal",onBeforeEnter:v[0]||(v[0]=b=>s.value=!0),onAfterLeave:v[1]||(v[1]=b=>s.value=!1)},{default:V(()=>[Kt(p("div",Be({class:"modal-mask",onPointerdown:_t(o,["self"])},h.$attrs),[p("div",la,[p("div",ua,[p("div",da,[De(h.$slots,"header",{shown:l(a)},()=>[ca])]),p("div",fa,[d(di,{ref_key:"contextRef",ref:u},{default:V(()=>[De(h.$slots,"body",{shown:l(a)},()=>[pa])]),_:3},512)]),p("div",ma,[De(h.$slots,"footer",{shown:l(a)},()=>[p("div",{class:"modal-default-footer"},[ga,p("button",{class:"button modal-default-button",onClick:o}," Close ")])])])])])],16,sa),[[Ri,e.modelValue]])]),_:3})]))}}),Nt=Symbol("PersistentState"),St=Symbol("DefaultValue"),Ht=Symbol("StackTrace"),ci=Symbol("Deleted");function va(){var e;return((e=new Error().stack)==null?void 0:e.split(` `).slice(3,5).map(t=>t.trim()).join(` `))||""}function 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: @@ -9,9 +9,9 @@ Created at: Created at: `+r[Ht])}),dt[e.id].clear()});const gn=Symbol("RegisterNode"),vn=Symbol("UnregisterNode"),hn=Symbol("Nodes"),bn=Symbol("Bounds"),_e=Yt({});window.layers=_e;const dt={},Ee=[];function It(e,t){return me(()=>{const n={},i=n.emitter=Wn();if(n.on=i.on.bind(i),n.emit=i.emit.bind(i),n.nodes=O({}),n.id=e,Ee.push(e),dt[e]=new Set,n.minimized=le(!1),Object.assign(n,t.call(n)),Ee[Ee.length-1]==null||Ee[Ee.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen Stack: ${Ee} -Trying to pop ${n.id}`;return Ee.pop(),y(n,"color"),y(n,"display"),y(n,"name"),z(n,"name",n.id),y(n,"minWidth"),z(n,"minWidth",600),y(n,"minimizable"),z(n,"minimizable",!0),n})}function fi(e,t){if(console.info("Adding layer",e.id),_e[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,_e[e.id]);return}z(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),_e[e.id]=e,ge.emit("addLayer",e,t.layers[e.id])}function ha(e){return _e[e]}function pi(e){console.info("Removing layer",e.id),ge.emit("removeLayer",e),_e[e.id]=void 0}function ba(e){pi(e),fi(e,T)}function mi(e){const t=O(!1);return{openModal:()=>t.value=!0,modal:j(()=>d(Je,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>d("h2",null,[l(e.name)]),body:l(e.display)}))}}ge.on("update",function(t){Object.values(_e).forEach(n=>{n==null||n.emit("preUpdate",t)}),Object.values(_e).forEach(n=>{n==null||n.emit("update",t)}),Object.values(_e).forEach(n=>{n==null||n.emit("postUpdate",t)})});var ya=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:gn,UnregisterNodeInjectionKey:vn,NodesInjectionKey:hn,BoundsInjectionKey:bn,layers:_e,persistentRefs:dt,addingLayers:Ee,createLayer:It,addLayer:fi,getLayer:ha,removeLayer:pi,reloadLayer:ba,setupLayerModal:mi},Symbol.toStringTag,{value:"Module"}));const _a=E({components:{Context:di},props:{index:{type:Number,required:!0},tab:{type:Function,required:!0},display:{type:k(Object,String,Function),required:!0},minimized:{type:Object,required:!0},minWidth:{type:k(Number,String),required:!0},name:{type:k(String),required:!0},color:k(String),minimizable:k(Boolean),nodes:{type:Object,required:!0}},setup(e){const{display:t,index:n,minimized:i,minWidth:r,tab:a}=ne(e),o=ct(t),s=N(()=>J.allowGoBack&&n.value>0&&!i.value);function u(){T.tabs.splice(l(e.index),1/0)}Ve(()=>h(i.value,l(r.value))),Ie([i,aa(r)],([v,b])=>h(v,b));function c(v){e.nodes.value=v}function h(v,b){const w=typeof b=="number"||Number.isNaN(parseInt(b))?b+"px":b,S=a.value();S!=null&&(v?(S.style.flexGrow="0",S.style.flexShrink="0",S.style.width="60px",S.style.minWidth=S.style.flexBasis="",S.style.margin="0"):(S.style.flexGrow="",S.style.flexShrink="",S.style.width="",S.style.minWidth=S.style.flexBasis=w,S.style.margin=""))}return{component:o,showGoBack:s,updateNodes:c,unref:l,goBack:u}}});function ka(e,t,n,i,r,a){const o=de("Context");return g(),x("div",{class:"layer-container",style:W({"--layer-color":e.unref(e.color)})},[e.showGoBack?(g(),x("button",{key:0,class:"goBack",onClick:t[0]||(t[0]=(...s)=>e.goBack&&e.goBack(...s))},"\u2190")):P("",!0),e.minimized.value?(g(),x("button",{key:1,class:"layer-tab minimized",onClick:t[1]||(t[1]=s=>e.minimized.value=!1)},[p("div",null,G(e.unref(e.name)),1)])):(g(),x("div",{key:2,class:Q(["layer-tab",{showGoBack:e.showGoBack}])},[d(o,{onUpdateNodes:e.updateNodes},{default:V(()=>[(g(),A(ee(e.component)))]),_:1},8,["onUpdateNodes"])],2)),e.unref(e.minimizable)?(g(),x("button",{key:3,class:"minimize",onClick:t[2]||(t[2]=s=>e.minimized.value=!0)}," \u25BC ")):P("",!0)],4)}var wa=q(_a,[["render",ka],["__scopeId","data-v-34c9d881"]]);const gi=e=>(qe("data-v-4b4bda40"),e=e(),je(),e),xa=gi(()=>p("h2",null,"Changelog",-1)),Na=gi(()=>p("details",{open:""},[p("summary",null,[C("v0.0 Initial Commit - "),p("time",null,"2021-09-04")]),C(" This is the first release :D "),p("ul",null,[p("li",{class:"feature"},"Did everything"),p("li",{class:"fix"},"Had some fun"),p("li",{class:"breaking"},"Removed everything"),p("li",{class:"balancing"},"Created some bugs to fix later")])],-1)),Sa=E({__name:"Changelog",setup(e,{expose:t}){const n=O(!1);return t({open(){n.value=!0}}),(i,r)=>(g(),A(Je,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=a=>n.value=a)},{header:V(()=>[xa]),body:V(()=>[Na]),_:1},8,["modelValue"]))}});var Ca=q(Sa,[["__scopeId","data-v-4b4bda40"]]),$a=E({props:{element:Object,display:{type:k(Object,String,Function),required:!0},style:k(Object,String,Array),classes:k(Object),direction:k(String),xoffset:k(String),yoffset:k(String),pinned:Object},setup(e){const{element:t,display:n,pinned:i}=ne(e),r=O(!1),a=N(()=>(ae(i)||r.value)&&o.value),o=it(n),s=xe(D(j(()=>{const h=ae(t);return h==null?"":Re(h)})));function u(h){const v=i;h.shiftKey&&v&&(v.value=!v.value,h.stopPropagation(),h.preventDefault())}const c=N(()=>ae(i)&&ze[Z.theme].showPin);return{Direction:X,isHovered:r,isShown:a,comp:o,elementComp:s,unref:l,togglePinned:u,showPin:c}}});const Ma={key:0,class:"material-icons pinned"};function Ta(e,t,n,i,r,a){return g(),x("div",{class:Q(["tooltip-container",{shown:e.isShown}]),onMouseenter:t[0]||(t[0]=o=>e.isHovered=!0),onMouseleave:t[1]||(t[1]=o=>e.isHovered=!1),onClickCapture:t[2]||(t[2]=(...o)=>e.togglePinned&&e.togglePinned(...o))},[De(e.$slots,"default",{},void 0,!0),e.elementComp?(g(),A(ee(e.elementComp),{key:0})):P("",!0),d(Zt,{name:"fade"},{default:V(()=>{var o;return[e.isShown?(g(),x("div",{key:0,class:Q(["tooltip",{top:e.unref(e.direction)===e.Direction.Up,left:e.unref(e.direction)===e.Direction.Left,right:e.unref(e.direction)===e.Direction.Right,bottom:e.unref(e.direction)===e.Direction.Down,...e.unref(e.classes)}]),style:W([{"--xoffset":e.unref(e.xoffset)||"0px","--yoffset":e.unref(e.yoffset)||"0px"},(o=e.unref(e.style))!=null?o:{}])},[e.showPin?(g(),x("span",Ma,"push_pin")):P("",!0),e.comp?(g(),A(ee(e.comp),{key:1})):P("",!0)],6)):P("",!0)]}),_:1})],34)}var re=q($a,[["render",Ta],["__scopeId","data-v-6102fa3a"]]);const rt=e=>(qe("data-v-7dec2dec"),e=e(),je(),e),Ia={class:"info-modal-header"},Pa=["src","alt"],Oa={class:"info-modal-title"},Aa={key:0},Ea={key:0},Va={key:0},Fa=rt(()=>p("div",null," Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb ",-1)),Da=rt(()=>p("br",null,null,-1)),Ra=rt(()=>p("br",null,null,-1)),Ba=["href"],qa=rt(()=>p("span",{class:"material-icons info-modal-discord"},"discord",-1)),ja=rt(()=>p("div",null,[p("a",{href:"https://discord.gg/WzejVAx",class:"info-modal-discord-link"},[p("span",{class:"material-icons info-modal-discord"},"discord"),C(" The Paper Pilot Community ")])],-1)),La=rt(()=>p("div",null,[p("a",{href:"https://discord.gg/F3xveHV",class:"info-modal-discord-link"},[p("span",{class:"material-icons info-modal-discord"},"discord"),C(" The Modding Tree ")])],-1)),za=rt(()=>p("br",null,null,-1));var Ga=E({__name:"Info",props:{changelog:null},setup(e,{expose:t}){const n=e,{title:i,logo:r,author:a,discordName:o,discordLink:s,versionNumber:u,versionTitle:c}=J,h=ne(n),v=O(!1),b=N(()=>Jt(T.timePlayed)),w=N(()=>D(j(()=>d(K,null,[li.map(oe)]))));t({open(){v.value=!0}});function S(){var $;($=l(h.changelog))==null||$.open()}return($,R)=>(g(),A(Je,{modelValue:v.value,"onUpdate:modelValue":R[0]||(R[0]=ke=>v.value=ke)},{header:V(()=>[p("div",Ia,[l(r)?(g(),x("img",{key:0,class:"info-modal-logo",src:l(r),alt:l(i)},null,8,Pa)):P("",!0),p("div",Oa,[p("h2",null,G(l(i)),1),p("h4",null,[C(" v"+G(l(u)),1),l(c)?(g(),x("span",Aa,": "+G(l(c)),1)):P("",!0)])])])]),body:V(({shown:ke})=>[ke?(g(),x("div",Ea,[l(a)?(g(),x("div",Va,"By "+G(l(a)),1)):P("",!0),Fa,Da,p("div",{class:"link",onClick:S},"Changelog"),Ra,p("div",null,[l(s)?(g(),x("a",{key:0,href:l(s),class:"info-modal-discord-link"},[qa,C(" "+G(l(o)),1)],8,Ba)):P("",!0)]),ja,La,za,p("div",null,"Time Played: "+G(l(b)),1),(g(),A(ee(l(w))))])):P("",!0)]),_:1},8,["modelValue"]))}});var Ua=q(Ga,[["__scopeId","data-v-7dec2dec"]]);const Ha={class:"field"},Wa={key:0,class:"field-title"},yn=E({__name:"Select",props:{title:null,modelValue:null,options:null,placeholder:null,closeOnSelect:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){var o;const n=e,i=it(Ze(n,"title"),"span"),r=O((o=n.options.find(s=>s.value===n.modelValue))!=null?o:null);Ie(Ze(n,"modelValue"),s=>{var u;ae(r)!==s&&(r.value=(u=n.options.find(c=>c.value===s))!=null?u:null)});function a(s){t("update:modelValue",s.value)}return(s,u)=>(g(),x("div",Ha,[l(i)?(g(),x("span",Wa,[(g(),A(ee(l(i))))])):P("",!0),d(l(Wi),{options:e.options,modelValue:r.value,"onUpdate:modelValue":[u[0]||(u[0]=c=>r.value=c),a],min:1,"label-by":"label",placeholder:e.placeholder,"close-on-select":e.closeOnSelect},null,8,["options","modelValue","placeholder","close-on-select"])]))}});const Ya={class:"field"},Ka=E({__name:"Toggle",props:{title:null,modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=N(()=>D(l(n.title)||"","span")),r=N({get(){return!!n.modelValue},set(a){t("update:modelValue",a)}});return(a,o)=>(g(),x("label",Ya,[Kt(p("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":o[0]||(o[0]=s=>fe(r)?r.value=s:null)},null,512),[[ji,l(r)]]),(g(),A(ee(l(i))))]))}});var we=q(Ka,[["__scopeId","data-v-2b109500"]]);const vi=e=>(qe("data-v-bc13791c"),e=e(),je(),e),Za=vi(()=>p("div",{class:"header"},[p("h2",null,"Options")],-1)),Ja=vi(()=>p("hr",null,null,-1));var Xa=E({__name:"Options",setup(e,{expose:t}){const n=O(!1);t({open(){n.value=!0}});const i=Object.keys(ze).map(S=>({label:ei(S),value:S})),r=N(()=>D(j(()=>d(K,null,[oi.map(oe)])))),{showTPS:a,theme:o,unthrottled:s}=ne(Z),{autosave:u,offlineProd:c}=ne(T),h=N({get(){return T.devSpeed===0},set(S){T.devSpeed=S?0:null}}),v=j(()=>d("span",null,[C("Offline Production"),d(re,{display:"Save-specific"},{default:()=>[C("*")]})])),b=j(()=>d("span",null,[C("Autosave"),d(re,{display:"Save-specific"},{default:()=>[C("*")]})])),w=j(()=>d("span",null,[C("Pause game"),d(re,{display:"Save-specific"},{default:()=>[C("*")]})]));return(S,$)=>(g(),A(Je,{modelValue:n.value,"onUpdate:modelValue":$[6]||($[6]=R=>n.value=R)},{header:V(()=>[Za]),body:V(()=>[d(yn,{title:"Theme",options:l(i),modelValue:l(o),"onUpdate:modelValue":$[0]||($[0]=R=>fe(o)?o.value=R:null)},null,8,["options","modelValue"]),(g(),A(ee(l(r)))),d(we,{title:"Show TPS",modelValue:l(a),"onUpdate:modelValue":$[1]||($[1]=R=>fe(a)?a.value=R:null)},null,8,["modelValue"]),Ja,d(we,{title:"Unthrottled",modelValue:l(s),"onUpdate:modelValue":$[2]||($[2]=R=>fe(s)?s.value=R:null)},null,8,["modelValue"]),d(we,{title:l(v),modelValue:l(c),"onUpdate:modelValue":$[3]||($[3]=R=>fe(c)?c.value=R:null)},null,8,["title","modelValue"]),d(we,{title:l(b),modelValue:l(u),"onUpdate:modelValue":$[4]||($[4]=R=>fe(u)?u.value=R:null)},null,8,["title","modelValue"]),l(J).enablePausing?(g(),A(we,{key:0,title:l(w),modelValue:l(h),"onUpdate:modelValue":$[5]||($[5]=R=>fe(h)?h.value=R:null)},null,8,["title","modelValue"])):P("",!0)]),_:1},8,["modelValue"]))}});var Qa=q(Xa,[["__scopeId","data-v-bc13791c"]]);const eo=["onSubmit"],to={class:"field"},no={key:0,class:"field-title"},io=["placeholder"],ro=E({__name:"Text",props:{title:null,modelValue:null,textArea:{type:Boolean},placeholder:null,maxHeight:null},emits:["update:modelValue","submit"],setup(e,{emit:t}){const i=ne(e),r=N(()=>{var u;return((u=i.title)==null?void 0:u.value)&&D(l(i.title.value),"span")}),a=O(null);Tt(()=>{var u;(u=a.value)==null||u.focus()});const o=N({get(){return l(i.modelValue)||""},set(u){t("update:modelValue",u)}});function s(){t("submit")}return(u,c)=>(g(),x("form",{onSubmit:_t(s,["prevent"])},[p("div",to,[l(r)?(g(),x("span",no,[(g(),A(ee(l(r))))])):P("",!0),e.textArea?(g(),A(l(Ki),{key:1,modelValue:l(o),"onUpdate:modelValue":c[0]||(c[0]=h=>fe(o)?o.value=h:null),placeholder:e.placeholder,maxHeight:e.maxHeight,onBlur:s,ref_key:"field",ref:a},null,8,["modelValue","placeholder","maxHeight"])):Kt((g(),x("input",{key:2,type:"text","onUpdate:modelValue":c[1]||(c[1]=h=>fe(o)?o.value=h:null),placeholder:e.placeholder,class:Q({fullWidth:!e.title}),onBlur:s,ref_key:"field",ref:a},null,42,io)),[[Hn,l(o)]])])],40,eo))}});var _n=q(ro,[["__scopeId","data-v-d74adb0a"]]);const ao={key:0},oo=["onClick","disabled"],so={key:0},lo=["onClick"],uo=E({__name:"DangerButton",props:{disabled:{type:Boolean},skipConfirm:{type:Boolean}},emits:["click","confirmingChanged"],setup(e,{emit:t}){const i=ne(e),r=O(!1);Ie(r,s=>{t("confirmingChanged",s)});function a(){if(l(i.skipConfirm)){t("click");return}r.value&&t("click"),r.value=!r.value}function o(){r.value=!1}return(s,u)=>(g(),x("span",{class:Q(["container",{confirming:r.value}])},[r.value?(g(),x("span",ao,"Are you sure?")):P("",!0),p("button",{onClick:_t(a,["stop"]),class:"button danger",disabled:e.disabled},[r.value?(g(),x("span",so,"Yes")):De(s.$slots,"default",{key:1},void 0,!0)],8,oo),r.value?(g(),x("button",{key:1,class:"button",onClick:_t(o,["stop"])},"No",8,lo)):P("",!0)],2))}});var co=q(uo,[["__scopeId","data-v-2f8ef34c"]]);const fo=["onClick"],po=E({__name:"FeedbackButton",props:{left:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=O(!1),i=O(null);function r(){t("click"),i.value&&clearTimeout(i.value),n.value=!1,Ve(()=>{n.value=!0,i.value=setTimeout(()=>n.value=!1,500)})}return(a,o)=>(g(),x("button",{onClick:_t(r,["stop"]),class:Q(["feedback",{activated:n.value,left:e.left}])},[De(a.$slots,"default",{},void 0,!0)],10,fo))}});var mo=q(po,[["__scopeId","data-v-01a1b95c"]]);const Ge=e=>(qe("data-v-0136bef4"),e=e(),je(),e),go=Ge(()=>p("div",{class:"handle material-icons"},"drag_handle",-1)),vo={key:0,class:"actions"},ho=Ge(()=>p("span",{class:"material-icons"},"content_paste",-1)),bo=Ge(()=>p("span",{class:"material-icons"},"content_copy",-1)),yo=Ge(()=>p("span",{class:"material-icons"},"edit",-1)),_o=Ge(()=>p("span",{class:"material-icons",style:{margin:"-2px"}},"delete",-1)),ko={key:1,class:"actions"},wo=Ge(()=>p("span",{class:"material-icons"},"check",-1)),xo=Ge(()=>p("span",{class:"material-icons"},"close",-1)),No={key:2,class:"details"},So={class:"save-version"},Co=Ge(()=>p("br",null,null,-1)),$o={key:0},Mo={key:3,class:"details"},To={key:4,class:"details error"},Io=Ge(()=>p("br",null,null,-1)),Po=E({__name:"Save",props:{save:null},emits:["export","open","duplicate","delete","editName"],setup(e,{emit:t}){const n=e,{save:i}=ne(n),r=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),a=O(!1),o=O(!1),s=O("");Ie(a,()=>s.value=i.value.name||"");const u=N(()=>i.value&&i.value.id===T.id),c=N(()=>u.value?T.time:i.value&&i.value.time||0);function h(){t("editName",s.value),a.value=!1}return(v,b)=>(g(),x("div",{class:Q(["save",{active:l(u)}])},[go,a.value?(g(),x("div",ko,[p("button",{onClick:h,class:"button"},[d(re,{display:"Save",direction:l(X).Left,class:"info"},{default:V(()=>[wo]),_:1},8,["direction"])]),p("button",{onClick:b[5]||(b[5]=w=>a.value=!a.value),class:"button"},[d(re,{display:"Cancel",direction:l(X).Left,class:"info"},{default:V(()=>[xo]),_:1},8,["direction"])])])):(g(),x("div",vo,[l(i).error==null&&!o.value?(g(),A(mo,{key:0,onClick:b[0]||(b[0]=w=>t("export")),class:"button",left:""},{default:V(()=>[d(re,{display:"Export",direction:l(X).Left,class:"info"},{default:V(()=>[ho]),_:1},8,["direction"])]),_:1})):P("",!0),l(i).error==null&&!o.value?(g(),x("button",{key:1,onClick:b[1]||(b[1]=w=>t("duplicate")),class:"button"},[d(re,{display:"Duplicate",direction:l(X).Left,class:"info"},{default:V(()=>[bo]),_:1},8,["direction"])])):P("",!0),l(i).error==null&&!o.value?(g(),x("button",{key:2,onClick:b[2]||(b[2]=w=>a.value=!a.value),class:"button"},[d(re,{display:"Edit Name",direction:l(X).Left,class:"info"},{default:V(()=>[yo]),_:1},8,["direction"])])):P("",!0),d(co,{disabled:l(u),onClick:b[3]||(b[3]=w=>t("delete")),onConfirmingChanged:b[4]||(b[4]=w=>o.value=w)},{default:V(()=>[d(re,{display:"Delete",direction:l(X).Left,class:"info"},{default:V(()=>[_o]),_:1},8,["direction"])]),_:1},8,["disabled"])])),l(i).error==null&&!a.value?(g(),x("div",No,[p("button",{class:"button open",onClick:b[6]||(b[6]=w=>t("open"))},[p("h3",null,G(l(i).name),1)]),p("span",So,"v"+G(l(i).modVersion),1),Co,l(c)?(g(),x("div",$o,"Last played "+G(l(r).format(l(c))),1)):P("",!0)])):l(i).error==null&&a.value?(g(),x("div",Mo,[d(_n,{modelValue:s.value,"onUpdate:modelValue":b[7]||(b[7]=w=>s.value=w),class:"editname",onSubmit:h},null,8,["modelValue"])])):(g(),x("div",To,[C(" Error: Failed to load save with id "+G(l(i).id),1),Io,C(G(l(i).error),1)]))],2))}});var Oo=q(Po,[["__scopeId","data-v-0136bef4"]]);const kn=e=>(qe("data-v-3b9991aa"),e=e(),je(),e),Ao=kn(()=>p("h2",null,"Saves Manager",-1)),Eo={class:"modal-footer"},Vo={class:"field"},Fo=kn(()=>p("span",{class:"field-title"},"Create Save",-1)),Do={class:"field-buttons"},Ro={class:"footer"},Bo=kn(()=>p("div",{style:{"flex-grow":"1"}},null,-1)),qo=E({__name:"SavesManager",setup(e,{expose:t}){const n=O(!1),i=O(null);t({open(){n.value=!0}});const r=O(!1),a=O(""),o=O(null);Ie(a,M=>{M?Ve(()=>{try{if(M[0]!=="{")if(M[0]==="e")M=decodeURIComponent(escape(atob(M)));else if(M[0]==="\u1BE1")M=Ye.decompressFromUTF16(M);else{console.warn("Unable to determine preset encoding",M),r.value=!0;return}const I=JSON.parse(M);if(typeof I!="object"){r.value=!0;return}const U=qt();I.id=U,Ae(I),a.value="",r.value=!1,Z.saves.push(U)}catch{r.value=!0}}):r.value=!1});let s={},u=O(Object.keys(s).reduce((M,I)=>(M.push({label:I.split("/").slice(-1)[0].slice(0,-4),value:s[I]}),M),[]));const c=Yt({});function h(M){if(c[M]==null){let I=localStorage.getItem(M);if(I==null)c[M]={error:"Save doesn't exist in localStorage",id:M};else if(I==="dW5kZWZpbmVk")c[M]={error:"Save is undefined",id:M};else try{if(I[0]!=="{")if(I[0]==="e")I=decodeURIComponent(escape(atob(I)));else if(I[0]==="\u1BE1")I=Ye.decompressFromUTF16(I);else return console.warn("Unable to determine preset encoding",I),r.value=!0,c[M]={error:"Unable to determine preset encoding",id:M},c[M];c[M]={...JSON.parse(I),id:M}}catch(U){c[M]={error:U,id:M},console.warn(`SavesManager: Failed to load info about save with id ${M}: -${U} -${I}`)}}return c[M]}Ie(n,M=>{M&&Object.keys(c).forEach(I=>delete c[I])});const v=N(()=>Z.saves.reduce((M,I)=>(M[I]=h(I),M),{}));function b(M){let I;switch(T.id===M?I=ii(T[ce]):I=JSON.stringify(v.value[M]),J.exportEncoding){default:console.warn(`Unknown save encoding: ${J.exportEncoding}. Defaulting to lz`);case"lz":I=Ye.compressToUTF16(I);break;case"base64":I=btoa(unescape(encodeURIComponent(I)));break;case"plain":break}const U=document.createElement("textarea");U.value=I,document.body.appendChild(U),U.select(),U.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(U)}function w(M){T.id===M&&Ae();const I={...v.value[M],id:qt()};Ae(I),Z.saves.push(I.id)}function S(M){Z.saves=Z.saves.filter(I=>I!==M),localStorage.removeItem(M),c[M]=void 0}function $(M){v.value[T.id].time=T.time,Ae(),c[T.id]=void 0,nt(v.value[M]),c[M]=void 0}function R(M){if(o.value=M,Ve(()=>{o.value=null}),M[0]!=="{")if(M[0]==="e")M=decodeURIComponent(escape(atob(M)));else if(M[0]==="\u1BE1")M=Ye.decompressFromUTF16(M);else{console.warn("Unable to determine preset encoding",M);return}const I=JSON.parse(M);I.id=qt(),Ae(I),Z.saves.push(I.id),$(I.id)}function ke(M,I){const U=v.value[M];U&&(U.name=I,T.id===M?(T.name=I,Ae()):(Ae(U),c[M]=void 0))}return(M,I)=>(g(),A(Je,{modelValue:n.value,"onUpdate:modelValue":I[4]||(I[4]=U=>n.value=U),ref_key:"modal",ref:i},{header:V(()=>[Ao]),body:V(({shown:U})=>[U?(g(),A(l(Yi),{key:0,list:l(Z).saves,handle:".handle",itemKey:be=>be},{item:V(({element:be})=>[d(Oo,{save:l(v)[be],onOpen:te=>$(be),onExport:te=>b(be),onEditName:te=>ke(be,te),onDuplicate:te=>w(be),onDelete:te=>S(be)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):P("",!0)]),footer:V(()=>[p("div",Eo,[d(_n,{modelValue:a.value,"onUpdate:modelValue":I[0]||(I[0]=U=>a.value=U),title:"Import Save",placeholder:"Paste your save here!",class:Q({importingFailed:r.value})},null,8,["modelValue","class"]),p("div",Vo,[Fo,p("div",Do,[p("button",{class:"button",onClick:I[1]||(I[1]=U=>$(l(ut)().id))},"New Game"),Object.keys(l(u)).length>0?(g(),A(yn,{key:0,options:l(u),modelValue:o.value,"onUpdate:modelValue":I[2]||(I[2]=U=>R(U)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):P("",!0)])]),p("div",Ro,[Bo,p("button",{class:"button modal-default-button",onClick:I[3]||(I[3]=U=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var hi=q(qo,[["__scopeId","data-v-3b9991aa"]]);const Se=e=>(qe("data-v-4a3f8425"),e=e(),je(),e),jo=["src","alt"],Lo={key:1,class:"title"},zo=Se(()=>p("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Go={class:"discord"},Uo={class:"discord-links"},Ho={key:0},Wo=["href"],Yo=Se(()=>p("li",null,[p("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Ko=Se(()=>p("li",null,[p("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Zo={href:"https://forums.moddingtree.com/",target:"_blank"},Jo=Se(()=>p("span",{class:"material-icons"},"forum",-1)),Xo=Se(()=>p("span",{class:"material-icons"},"info",-1)),Qo=Se(()=>p("span",{class:"material-icons"},"library_books",-1)),es=Se(()=>p("span",{class:"material-icons"},"settings",-1)),ts=Se(()=>p("span",{class:"material-icons"},"library_books",-1)),ns=Se(()=>p("span",{class:"material-icons"},"settings",-1)),is=Se(()=>p("span",{class:"material-icons"},"info",-1)),rs={href:"https://forums.moddingtree.com/",target:"_blank"},as=Se(()=>p("span",{class:"material-icons"},"forum",-1)),os={class:"discord"},ss={class:"discord-links"},ls={key:0},us=["href"],ds=Se(()=>p("li",null,[p("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),cs=Se(()=>p("li",null,[p("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),fs=E({__name:"Nav",setup(e){const t=O(null),n=O(null),i=O(null),r=O(null),{useHeader:a,banner:o,title:s,discordName:u,discordLink:c,versionNumber:h}=J;function v(){window.open(c,"mywindow")}return(b,w)=>(g(),x(K,null,[l(a)?(g(),x("div",Be({key:0,class:"nav"},b.$attrs),[l(o)?(g(),x("img",{key:0,src:l(o),class:"banner",alt:l(s)},null,8,jo)):(g(),x("div",Lo,G(l(s)),1)),p("div",{onClick:w[0]||(w[0]=S=>{var $;return($=r.value)==null?void 0:$.open()}),class:"version-container"},[d(re,{display:"Changelog",direction:l(X).Down,class:"version"},{default:V(()=>[p("span",null,"v"+G(l(h)),1)]),_:1},8,["direction"])]),zo,p("div",Go,[p("span",{onClick:v,class:"material-icons"},"discord"),p("ul",Uo,[l(c)?(g(),x("li",Ho,[p("a",{href:l(c),target:"_blank"},G(l(u)),9,Wo)])):P("",!0),Yo,Ko])]),p("div",null,[p("a",Zo,[d(re,{display:"Forums",direction:l(X).Down,yoffset:"5px"},{default:V(()=>[Jo]),_:1},8,["direction"])])]),p("div",{onClick:w[1]||(w[1]=S=>{var $;return($=t.value)==null?void 0:$.open()})},[d(re,{display:"Info",direction:l(X).Down,class:"info"},{default:V(()=>[Xo]),_:1},8,["direction"])]),p("div",{onClick:w[2]||(w[2]=S=>{var $;return($=n.value)==null?void 0:$.open()})},[d(re,{display:"Saves",direction:l(X).Down,xoffset:"-20px"},{default:V(()=>[Qo]),_:1},8,["direction"])]),p("div",{onClick:w[3]||(w[3]=S=>{var $;return($=i.value)==null?void 0:$.open()})},[d(re,{display:"Options",direction:l(X).Down,xoffset:"-66px"},{default:V(()=>[es]),_:1},8,["direction"])])],16)):(g(),x("div",Be({key:1,class:"overlay-nav"},b.$attrs),[p("div",{onClick:w[4]||(w[4]=S=>{var $;return($=r.value)==null?void 0:$.open()}),class:"version-container"},[d(re,{display:"Changelog",direction:l(X).Right,xoffset:"25%",class:"version"},{default:V(()=>[p("span",null,"v"+G(l(h)),1)]),_:1},8,["direction"])]),p("div",{onClick:w[5]||(w[5]=S=>{var $;return($=n.value)==null?void 0:$.open()})},[d(re,{display:"Saves",direction:l(X).Right},{default:V(()=>[ts]),_:1},8,["direction"])]),p("div",{onClick:w[6]||(w[6]=S=>{var $;return($=i.value)==null?void 0:$.open()})},[d(re,{display:"Options",direction:l(X).Right},{default:V(()=>[ns]),_:1},8,["direction"])]),p("div",{onClick:w[7]||(w[7]=S=>{var $;return($=t.value)==null?void 0:$.open()})},[d(re,{display:"Info",direction:l(X).Right},{default:V(()=>[is]),_:1},8,["direction"])]),p("div",null,[p("a",rs,[d(re,{display:"Forums",direction:l(X).Right,xoffset:"7px"},{default:V(()=>[as]),_:1},8,["direction"])])]),p("div",os,[p("span",{onClick:v,class:"material-icons"},"discord"),p("ul",ss,[l(c)?(g(),x("li",ls,[p("a",{href:l(c),target:"_blank"},G(l(u)),9,us)])):P("",!0),ds,cs])])],16)),d(Ua,{ref_key:"info",ref:t,changelog:r.value},null,8,["changelog"]),d(hi,{ref_key:"savesManager",ref:n},null,512),d(Qa,{ref_key:"options",ref:i},null,512),d(Ca,{ref_key:"changelog",ref:r},null,512)],64))}});var bi=q(fs,[["__scopeId","data-v-4a3f8425"]]);const ps={class:"inner-tab"},ms=E({__name:"Game",setup(e){const t=Ze(T,"tabs"),n=N(()=>Object.keys(_e)),i=J.useHeader;function r(a){const{display:o,minimized:s,minWidth:u,name:c,color:h,minimizable:v,nodes:b}=a;return{display:o,minimized:s,minWidth:u,name:c,color:h,minimizable:v,nodes:b}}return(a,o)=>(g(),x("div",{class:Q(["tabs-container",{useHeader:l(i)}])},[(g(!0),x(K,null,kt(l(t),(s,u)=>{var c,h;return g(),x("div",{key:u,class:Q(["tab",l((c=l(_e)[s])==null?void 0:c.classes)]),ref_for:!0,ref:`tab-${u}`,style:W(l((h=l(_e)[s])==null?void 0:h.style))},[u===0&&!l(i)?(g(),A(bi,{key:0})):P("",!0),p("div",ps,[l(n).includes(s)?(g(),A(wa,Be({key:0},r(l(_e)[s]),{index:u,tab:()=>{var v;return(v=a.$refs[`tab-${u}`])==null?void 0:v[0]}}),null,16,["index","tab"])):(g(),A(ee(s),{key:1,index:u},null,8,["index"]))])],6)}),128))],2))}});var gs=q(ms,[["__scopeId","data-v-4cb9ce0f"]]);const vs={},hs=e=>(qe("data-v-89b4b00a"),e=e(),je(),e),bs=hs(()=>p("svg",{id:"eaRe02fYmMp1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 228 521","shape-rendering":"geometricPrecision","text-rendering":"geometricPrecision"},[p("g",{id:"P"},[p("path",{d:"m 101,512.877 c -17.547386,-5.3519 -50.794681,-10.26296 -80,0 10.737201,-217.43031 5.7244,-300.999 0,-464.9995 0,0 46.6144,-37.1164 80,-42.00002 33.386,-4.883633 86.025,10.45942 120,50.00002 5,30 -4.353,106.6565 -44,156.0005 -34.149,42.5 -130,38.48 -130,92.999 0,102 54,208 54,208 z",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"10","stroke-linecap":"round","stroke-miterlimit":"16"},id:"trunk",class:"svg-elem-1"}),p("path",{d:"M 221,55.8775 C 209.023,126.453 185.39,166.835 158.997,191.5 93.783098,252.444 11.718998,217.436 46.999998,304.877",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"vine2",class:"svg-elem-2"}),p("path",{d:"m 194.5,188 c -11.225,4.447 -19.066,5.134 -35.503,3.5",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine4",class:"svg-elem-3"}),p("path",{d:"M 73.499996,246.5 C 111.145,245.626 127.011,238.775 156.5,228",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine3",class:"svg-elem-4"}),p("path",{d:"M 221,55.8775 C 169.5,17.8262 86.0943,44.9468 47,107 c -4.743,7.528 -7.1041,15.373 -8.326,24 -3.5282,24.91 2.4426,56.34 -12.0011,105.5",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"vine1",class:"svg-elem-5"}),p("path",{d:"M 21,47.8775 38.674,131",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine2",class:"svg-elem-6"}),p("path",{d:"m 3,326.5 c 13.1783,22.208 16.4863,42.834 21.6997,81",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine1",class:"svg-elem-7"})])],-1));function ys(e,t){return g(),A(Zt,{appear:""},{default:V(()=>[bs]),_:1})}var _s=q(vs,[["render",ys],["__scopeId","data-v-89b4b00a"]]);const ye=E({__name:"Spacer",props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(t,n)=>(g(),x("div",{style:W({width:e.width,height:e.height})},null,4))}});function Ct(e,t="points",n=0,i=void 0){const r=fe(e)?e:le(e);return r.displayName=t,r.precision=n,r.small=i,r}function yi(e){const t=le(e.value);return Ie(e,n=>{f.gt(n,t.value)&&(t.value=n)}),t}function ks(e){const t=le(e.value);return Ie(e,(n,i)=>{f.gt(n,i)&&(t.value=f.add(t.value,f.sub(n,i)))}),t}const ws=new f("10^^8"),xs=new f("1e100");function Ns(e,t){const n=O(0),i=O(0),r=O(0);return ge.on("update",o=>{if(i.value=0,f.lte(e.value,xs)){r.value=e.value;return}let s=e.value,u=r.value;if(r.value=s,f.gt(s,u))if(f.gte(s,ws))s=f.slog(s,1e10),u=f.slog(u,1e10),n.value=s.sub(u).div(o),i.value=-1;else for(;f.div(s,u).log(10).div(o).gte("100")&&i.value<=5&&f.gt(u,0);)s=f.log10(s),u=f.log10(u),n.value=s.sub(u).div(o),i.value++}),N(()=>i.value===0?t?se(t.value,e.precision,e.small)+" "+e.displayName+"/s":"":se(n.value)+" OOM"+(i.value<0?"^OOM":"^"+i.value)+"s/sec")}function Le(e,t){const n=t!=null?t:e.value;return f.eq(e.precision,0)?ve(n):se(n,e.precision,e.small)}const Ss=["x1","y1","x2","y2"],Cs=E({__name:"Link",props:{link:null,startNode:null,endNode:null,boundingRect:null},setup(e){const n=ne(e),i=N(()=>{const a=n.startNode.value.rect,o=n.boundingRect.value,s=o?{x:a.x+a.width/2-o.x,y:a.y+a.height/2-o.y}:{x:0,y:0};return n.link.value.offsetStart&&(s.x+=n.link.value.offsetStart.x,s.y+=n.link.value.offsetStart.y),s}),r=N(()=>{const a=n.endNode.value.rect,o=n.boundingRect.value,s=o?{x:a.x+a.width/2-o.x,y:a.y+a.height/2-o.y}:{x:0,y:0};return n.link.value.offsetEnd&&(s.x+=n.link.value.offsetEnd.x,s.y+=n.link.value.offsetEnd.y),s});return(a,o)=>(g(),x("line",Be({"stroke-width":"15px",stroke:"white"},e.link,{x1:l(i).x,y1:l(i).y,x2:l(r).x,y2:l(r).y}),null,16,Ss))}});const $s=E({__name:"Links",props:{links:null},setup(e){var u;const n=Ze(e,"links"),i=O(null),r=Lt(hn,O({})),a=Lt(bn,O(void 0)),o=O((u=i.value)==null?void 0:u.getBoundingClientRect());Ie(a,()=>{var c;return o.value=(c=i.value)==null?void 0:c.getBoundingClientRect()}),Tt(()=>{var c;return o.value=(c=i.value)==null?void 0:c.getBoundingClientRect()});const s=N(()=>{var h,v;const c=r.value;return(v=(h=n.value)==null?void 0:h.filter(b=>{var w,S;return((w=c[b.startNode.id])==null?void 0:w.rect)&&((S=c[b.startNode.id])==null?void 0:S.rect)}))!=null?v:[]});return(c,h)=>(g(),x(K,null,[l(s)?(g(),x("svg",Li(Be({key:0},c.$attrs)),[(g(!0),x(K,null,kt(l(s),(v,b)=>(g(),A(Cs,{key:b,link:v,boundingRect:o.value,startNode:l(r)[v.startNode.id],endNode:l(r)[v.endNode.id]},null,8,["link","boundingRect","startNode","endNode"]))),128))],16)):P("",!0),p("div",{ref_key:"resizeListener",ref:i,class:"resize-listener"},null,512)],64))}});var _i=q($s,[["__scopeId","data-v-c139d80e"]]),Ms=E({props:{nodes:{type:k(Array),required:!0},leftSideNodes:k(Array),rightSideNodes:k(Array),branches:k(Array)},components:{Links:_i},setup(e){const{nodes:t,leftSideNodes:n,rightSideNodes:i}=ne(e),r=xe();Ne(()=>{const s=ae(t);r.value=D(j(()=>d(K,null,[s.map(u=>d("span",{class:"row tree-row",style:"margin: 50px auto;"},[u.map(Re)]))])))});const a=xe();Ne(()=>{const s=ae(n);a.value=s?D(j(()=>d("span",{class:"left-side-nodes small"},[s.map(Re)]))):""});const o=xe();return Ne(()=>{const s=ae(i);o.value=s?D(j(()=>d("span",{class:"side-nodes small"},[s.map(Re)]))):""}),{unref:l,nodesComp:r,leftNodesComp:a,rightNodesComp:o}}});function Ts(e,t,n,i,r,a){const o=de("Links");return g(),x(K,null,[(g(),A(ee(e.nodesComp))),e.leftNodesComp?(g(),A(ee(e.leftNodesComp),{key:0})):P("",!0),e.rightNodesComp?(g(),A(ee(e.rightNodesComp),{key:1})):P("",!0),e.branches?(g(),A(o,{key:2,links:e.unref(e.branches)},null,8,["links"])):P("",!0)],64)}var Is=q(Ms,[["render",Ts],["__scopeId","data-v-39ca96d0"]]);const Ps={key:0},Os={key:0,class:"mark star"},As=["src"],Es=E({__name:"MarkNode",props:{mark:{type:[Boolean,String]}},setup(e){return(t,n)=>e.mark?(g(),x("div",Ps,[e.mark===!0?(g(),x("div",Os)):(g(),x("img",{key:1,class:"mark",src:e.mark},null,8,As))])):P("",!0)}});var ft=q(Es,[["__scopeId","data-v-2207999f"]]);const Vs=E({__name:"Node",props:{id:null},setup(e){const n=ne(e),i=Lt(gn,()=>{}),r=Lt(vn,()=>{}),a=O(null),o=N(()=>a.value&&a.value.parentElement);return Ie([o,n.id],([s,u],[c,h])=>{c&&r(l(h)),s&&i(u,s)}),Un(()=>r(l(n.id))),(s,u)=>(g(),x("div",{class:"node",ref_key:"node",ref:a},null,512))}});var Ue=q(Vs,[["__scopeId","data-v-2cb1bb79"]]);const Fs=E({props:{display:k(Object,String,Function),visibility:{type:k(Number),required:!0},style:k(String,Object,Array),classes:k(Object),onClick:Function,onHold:Function,color:k(String),glowColor:k(String),canClick:{type:k(Boolean),required:!0},mark:k(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:ft,Node:Ue},setup(e){const{onClick:t,onHold:n,display:i}=ne(e),r=it(i),{start:a,stop:o}=mn(t,n);return{start:a,stop:o,comp:r,unref:l,Visibility:B,isCoercableComponent:Te}}});function Ds(e,t,n,i,r,a){var u;const o=de("MarkNode"),s=de("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,style:W({visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0}),class:Q({treeNode:!0,can:e.unref(e.canClick),...e.unref(e.classes)}),onClick:t[0]||(t[0]=(...c)=>e.onClick&&e.onClick(...c)),onMousedown:t[1]||(t[1]=(...c)=>e.start&&e.start(...c)),onMouseleave:t[2]||(t[2]=(...c)=>e.stop&&e.stop(...c)),onMouseup:t[3]||(t[3]=(...c)=>e.stop&&e.stop(...c)),onTouchstartPassive:t[4]||(t[4]=(...c)=>e.start&&e.start(...c)),onTouchendPassive:t[5]||(t[5]=(...c)=>e.stop&&e.stop(...c)),onTouchcancelPassive:t[6]||(t[6]=(...c)=>e.stop&&e.stop(...c))},[p("div",{style:W([{backgroundColor:e.unref(e.color),boxShadow:`-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 20px ${e.unref(e.glowColor)}`},(u=e.unref(e.style))!=null?u:[]])},[(g(),A(ee(e.unref(e.comp))))],4),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(s,{id:e.id},null,8,["id"])],38)):P("",!0)}var Rs=q(Fs,[["render",Ds],["__scopeId","data-v-1c0c107d"]]);const Bs=Symbol("TreeNode"),qs=Symbol("Tree");function yt(e){return me(()=>{var n;const t=(n=e==null?void 0:e())!=null?n:{};if(t.id=he("treeNode-"),t.type=Bs,t[ue]=Rs,y(t,"visibility"),z(t,"visibility",B.Visible),y(t,"canClick"),z(t,"canClick",!0),y(t,"color"),y(t,"display"),y(t,"glowColor"),y(t,"classes"),y(t,"style"),y(t,"mark"),t.onClick){const i=t.onClick.bind(t);t.onClick=function(){l(t.canClick)&&i()}}if(t.onHold){const i=t.onHold.bind(t);t.onHold=function(){l(t.canClick)&&i()}}return t[pe]=function(){const{display:i,visibility:r,style:a,classes:o,onClick:s,onHold:u,color:c,glowColor:h,canClick:v,mark:b,id:w}=this;return{display:i,visibility:r,style:a,classes:o,onClick:s,onHold:u,color:c,glowColor:h,canClick:v,mark:b,id:w}},t})}function ki(e){return me(()=>{const t=e();return t.id=he("tree-"),t.type=qs,t[ue]=Is,t.isResetting=O(!1),t.resettingNode=xe(null),t.reset=function(n){var r,a;const i=t;i.isResetting.value=!0,i.resettingNode.value=n,(r=i.resetPropagation)==null||r.call(i,i,n),(a=i.onReset)==null||a.call(i,n),i.isResetting.value=!1,i.resettingNode.value=null},t.links=N(()=>{var i;return(i=l(t.branches))!=null?i:[]}),y(t,"visibility"),z(t,"visibility",B.Visible),y(t,"nodes"),y(t,"leftSideNodes"),y(t,"rightSideNodes"),y(t,"branches"),t[pe]=function(){const{nodes:n,leftSideNodes:i,rightSideNodes:r,branches:a}=this;return{nodes:n,leftSideNodes:i,rightSideNodes:r,branches:a}},t})}const js=function(e,t){const n=[t];let i=[t];if(e.branches!=null){const r=l(e.branches);for(;i.length>0;){const a=[];i.forEach(o=>{r.filter(s=>s.startNode===o||s.endNode===o).map(s=>s.startNode===o?s.endNode:s.startNode).filter(s=>!n.includes(s)).forEach(s=>{var u;a.includes(s)||(a.push(s),(u=s.reset)==null||u.reset())})}),i=a,n.push(...i)}}};function wi(e,t=null,n=0){const i=Me(n);return N(()=>t==null||f.gte(e.value,l(i))?Le(e)+" "+e.displayName:`Reach ${f.eq(t.precision,0)?ve(l(i)):se(l(i),t.precision)} ${t.displayName} to unlock (You have ${f.eq(t.precision,0)?ve(t.value):se(t.value,t.precision)})`)}const Ls=E({props:{visibility:{type:k(Number),required:!0},display:k(Object,String,Function),earned:{type:k(Boolean),required:!0},image:k(String),style:k(String,Object,Array),classes:k(Object),mark:k(Boolean,String),id:{type:String,required:!0}},components:{Node:Ue,MarkNode:ft},setup(e){const{display:t}=ne(e);return{component:it(t),unref:l,Visibility:B}}});function zs(e,t,n,i,r,a){var u;const o=de("MarkNode"),s=de("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0,backgroundImage:e.earned&&e.image&&`url(${e.image})`||""},(u=e.unref(e.style))!=null?u:[]]),class:Q({feature:!0,achievement:!0,locked:!e.unref(e.earned),bought:e.unref(e.earned),...e.unref(e.classes)})},[e.component?(g(),A(ee(e.component),{key:0})):P("",!0),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(s,{id:e.id},null,8,["id"])],6)):P("",!0)}var Gs=q(Ls,[["render",zs],["__scopeId","data-v-58163dab"]]);ge.on("setupVue",e=>e.use(Zi));function wn(e="white",t="8px"){return{transform:"scale(1.05, 1.05)",borderColor:"rgba(0, 0, 0, 0.125)",boxShadow:`-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 ${t} ${e}`,zIndex:1}}function Us(){return wn("red","20px")}const Hs=fn(),Ws=Symbol("Achievement");function rn(e){const t=le(!1);return me(()=>{var i;const n=(i=e==null?void 0:e())!=null?i:{};if(n.id=he("achievement-"),n.type=Ws,n[ue]=Gs,n.earned=t,n.complete=function(){t.value=!0},y(n,"visibility"),z(n,"visibility",B.Visible),y(n,"display"),y(n,"mark"),y(n,"image"),y(n,"style"),y(n,"classes"),n[pe]=function(){const{visibility:r,display:a,earned:o,image:s,style:u,classes:c,mark:h,id:v}=this;return{visibility:r,display:a,earned:o,image:s,style:l(u),classes:c,mark:h,id:v}},n.shouldEarn){const r=n;Ne(()=>{var a,o;if(Z.active===T.id&&!r.earned.value&&l(r.visibility)===B.Visible&&((a=r.shouldEarn)==null?void 0:a.call(r))&&(r.earned.value=!0,(o=r.onComplete)==null||o.call(r),r.display)){const s=D(l(r.display));Hs.info(d("div",null,[d("h3",null,[C("Achievement earned!")]),d("div",null,[d(s,null,null)])]))}})}return n})}const Ys=E({props:{visibility:{type:k(Number),required:!0},onClick:Function,onHold:Function,display:{type:k(Object,String,Function),required:!0},title:k(Object,String,Function),style:k(String,Object,Array),canClick:{type:k(Boolean),required:!0},id:{type:String,required:!0}},components:{Node:Ue},setup(e){const{onClick:t,onHold:n,title:i,display:r}=ne(e),{start:a,stop:o}=mn(t,n),s=it(i),u=ct(r);return{start:a,stop:o,titleComponent:s,component:u,Visibility:B,unref:l}}}),Ks={key:0};function Zs(e,t,n,i,r,a){var s;const o=de("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("button",{key:0,class:Q({feature:!0,tile:!0,can:e.unref(e.canClick),locked:!e.unref(e.canClick)}),style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(s=e.unref(e.style))!=null?s:{}]),onClick:t[0]||(t[0]=(...u)=>e.onClick&&e.onClick(...u)),onMousedown:t[1]||(t[1]=(...u)=>e.start&&e.start(...u)),onMouseleave:t[2]||(t[2]=(...u)=>e.stop&&e.stop(...u)),onMouseup:t[3]||(t[3]=(...u)=>e.stop&&e.stop(...u)),onTouchstartPassive:t[4]||(t[4]=(...u)=>e.start&&e.start(...u)),onTouchendPassive:t[5]||(t[5]=(...u)=>e.stop&&e.stop(...u)),onTouchcancelPassive:t[6]||(t[6]=(...u)=>e.stop&&e.stop(...u))},[e.title?(g(),x("div",Ks,[(g(),A(ee(e.titleComponent)))])):P("",!0),(g(),A(ee(e.component),{style:{"white-space":"pre-line"}})),d(o,{id:e.id},null,8,["id"])],38)):P("",!0)}var Js=q(Ys,[["render",Zs],["__scopeId","data-v-26ac0e82"]]);const Xs=E({props:{visibility:{type:k(Number),required:!0},rows:{type:k(Number),required:!0},cols:{type:k(Number),required:!0},cells:{type:k(Object),required:!0}},components:{GridCell:Js},setup(){const e=N(()=>ze[Z.theme].mergeAdjacent);function t(n){const{visibility:i,onClick:r,onHold:a,display:o,title:s,style:u,canClick:c,id:h}=n;return{visibility:i,onClick:r,onHold:a,display:o,title:s,style:u,canClick:c,id:h}}return{unref:l,gatherCellProps:t,Visibility:B,mergeAdjacent:e}}});function Qs(e,t,n,i,r,a){const o=de("GridCell");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,style:W({visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0}),class:"table"},[(g(!0),x(K,null,kt(e.unref(e.rows),s=>(g(),x("div",{class:Q(["row",{mergeAdjacent:e.mergeAdjacent}]),key:s},[(g(!0),x(K,null,kt(e.unref(e.cols),u=>(g(),A(o,Be({key:u},e.gatherCellProps(e.unref(e.cells)[s*100+u])),null,16))),128))],2))),128))],4)):P("",!0)}var el=q(Xs,[["render",Qs]]);function tl(e){return new Proxy({},nl(e))}function nl(e){const t=N(()=>{const n=[];for(let i=1;i<=l(e.rows);i++)for(let r=1;r<=l(e.cols);r++)n.push((i*100+r).toString());return n});return{get(n,i){if(i==="isProxy")return!0;if(typeof i=="symbol")return e[i];if(!!t.value.includes(i.toString()))return n[i]==null&&(n[i]=new Proxy(e,il(i.toString()))),n[i]},set(n,i,r){return console.warn("Cannot set grid cells",n,i,r),!1},ownKeys(){return t.value},has(n,i){return t.value.includes(i.toString())},getOwnPropertyDescriptor(n,i){if(t.value.includes(i.toString()))return{configurable:!0,enumerable:!0,writable:!1}}}}function il(e){const t=["id","visibility","canClick","startState","state","style","classes","title","display","onClick","onHold"],n={};return{get(i,r,a){if(r==="isProxy")return!0;let o=i[r];return tt(o)?()=>o.call(a,e,i.getState(e)):o!=null||typeof r=="symbol"?o:(r=r.slice(0,1).toUpperCase()+r.slice(1),r==="startState"?o.call(a,e):(o=i[`get${r}`],tt(o)?(r in n||(n[r]=N(()=>o.call(a,e,i.getState(e)))),n[r].value):o!=null?l(o):(o=i[`on${r}`],tt(o)?()=>o.call(a,e,i.getState(e)):o!=null?o:i[r])))},set(i,r,a,o){return r=`set${r.slice(0,1).toUpperCase()+r.slice(1)}`,r in i&&tt(i[r])&&i[r].length<3?(i[r].call(o,e,a),!0):(console.warn(`No setter for "${r}".`,i),!1)},ownKeys(){return t},has(i,r){return t.includes(r.toString())},getOwnPropertyDescriptor(i,r){if(t.includes(r.toString()))return{configurable:!0,enumerable:!0,writable:!1}}}}function rl(e){const t=le({});return me(()=>{const n=e();if(n.id=he("grid-"),n[ue]=el,n.cellState=t,n.getID=function(i){return n.id+"-"+i},n.getState=function(i){return this.cellState.value[i]!=null?t.value[i]:this.cells[i].startState},n.setState=function(i,r){t.value[i]=r},n.cells=tl(n),y(n,"visibility"),z(n,"visibility",B.Visible),y(n,"rows"),y(n,"cols"),y(n,"getVisibility"),z(n,"getVisibility",B.Visible),y(n,"getCanClick"),z(n,"getCanClick",!0),y(n,"getStartState"),y(n,"getStyle"),y(n,"getClasses"),y(n,"getTitle"),y(n,"getDisplay"),n.onClick){const i=n.onClick.bind(n);n.onClick=function(r,a){l(n.cells[r].canClick)&&i(r,a)}}if(n.onHold){const i=n.onHold.bind(n);n.onHold=function(r,a){l(n.cells[r].canClick)&&i(r,a)}}return n[pe]=function(){const{visibility:i,rows:r,cols:a,cells:o,id:s}=this;return{visibility:i,rows:r,cols:a,cells:o,id:s}},n})}var al=E({props:{display:{type:k(Object,String,Function),required:!0},visibility:{type:k(Number),required:!0},style:k(Object,String,Array),classes:k(Object),onClick:Function,onHold:Function,canClick:{type:k(Boolean),required:!0},small:Boolean,mark:k(Boolean,String),id:{type:String,required:!0}},components:{Node:Ue,MarkNode:ft},setup(e){const{display:t,onClick:n,onHold:i}=ne(e),r=xe("");Ne(()=>{const s=ae(t);if(s==null){r.value="";return}if(Te(s)){r.value=D(s);return}const u=D(s.title||"","h3"),c=D(s.description,"div");r.value=D(j(()=>d("span",null,[s.title?d("div",null,[d(u,null,null)]):null,d(c,null,null)])))});const{start:a,stop:o}=mn(n,i);return{start:a,stop:o,comp:r,Visibility:B,unref:l}}});function ol(e,t,n,i,r,a){var u;const o=de("MarkNode"),s=de("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("button",{key:0,style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(u=e.unref(e.style))!=null?u:[]]),onClick:t[0]||(t[0]=(...c)=>e.onClick&&e.onClick(...c)),onMousedown:t[1]||(t[1]=(...c)=>e.start&&e.start(...c)),onMouseleave:t[2]||(t[2]=(...c)=>e.stop&&e.stop(...c)),onMouseup:t[3]||(t[3]=(...c)=>e.stop&&e.stop(...c)),onTouchstartPassive:t[4]||(t[4]=(...c)=>e.start&&e.start(...c)),onTouchendPassive:t[5]||(t[5]=(...c)=>e.stop&&e.stop(...c)),onTouchcancelPassive:t[6]||(t[6]=(...c)=>e.stop&&e.stop(...c)),class:Q({feature:!0,clickable:!0,can:e.unref(e.canClick),locked:!e.unref(e.canClick),small:e.small,...e.unref(e.classes)})},[e.unref(e.comp)?(g(),A(ee(e.unref(e.comp)),{key:0})):P("",!0),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(s,{id:e.id},null,8,["id"])],38)):P("",!0)}var xi=q(al,[["render",ol],["__scopeId","data-v-5e7c90cf"]]);const sl=Symbol("Clickable");function $t(e){return me(()=>{var n;const t=(n=e==null?void 0:e())!=null?n:{};if(t.id=he("clickable-"),t.type=sl,t[ue]=xi,y(t,"visibility"),z(t,"visibility",B.Visible),y(t,"canClick"),z(t,"canClick",!0),y(t,"classes"),y(t,"style"),y(t,"mark"),y(t,"display"),t.onClick){const i=t.onClick.bind(t);t.onClick=function(r){l(t.canClick)&&i(r)}}if(t.onHold){const i=t.onHold.bind(t);t.onHold=function(){l(t.canClick)&&i()}}return t[pe]=function(){const{display:i,visibility:r,style:a,classes:o,onClick:s,onHold:u,canClick:c,small:h,mark:v,id:b}=this;return{display:i,visibility:r,style:l(a),classes:o,onClick:s,onHold:u,canClick:c,small:h,mark:v,id:b}},t})}function Ni(e){return $t(()=>{const t=e();y(t,"showNextAt"),z(t,"showNextAt",!0),z(t,"minimumGain",1),t.resetDescription==null?t.resetDescription=N(()=>f.lt(t.conversion.gainResource.value,1e3)?"Reset for ":""):y(t,"resetDescription"),t.display==null&&(t.display=j(()=>d("span",null,[l(t.resetDescription),d("b",null,[Le(t.conversion.gainResource,f.max(l(t.conversion.actualGain),l(t.minimumGain)))])," ",t.conversion.gainResource.displayName,l(t.showNextAt)?d("div",null,[d("br",null,null),l(t.conversion.buyMax)?"Next:":"Req:"," ",Le(t.conversion.baseResource,l(t.conversion.buyMax)||f.floor(l(t.conversion.actualGain)).neq(1)?l(t.conversion.nextAt):l(t.conversion.currentAt))," ",t.conversion.baseResource.displayName]):null]))),t.canClick==null&&(t.canClick=N(()=>f.gte(l(t.conversion.actualGain),l(t.minimumGain))));const n=t.onClick;return t.onClick=function(){!l(t.canClick)||(t.conversion.convert(),t.tree.reset(t.treeNode),t.resetTime&&(t.resetTime.value=t.resetTime[St]),n==null||n())},t})}function Si(e){return yt(()=>{const t=e();return y(t,"display"),z(t,"display",t.layerID),y(t,"append"),{...t,display:t.display,onClick:l(t.append)?function(){if(T.tabs.includes(t.layerID)){const n=T.tabs.lastIndexOf(t.layerID);T.tabs.splice(n,1)}else T.tabs.push(t.layerID)}:function(){T.tabs.splice(1,1,t.layerID)}}})}function Ci(e){return me(()=>{const t=e();return t.currentGain==null&&(t.currentGain=N(()=>{let n=t.gainModifier?t.gainModifier.apply(t.scaling.currentGain(t)):t.scaling.currentGain(t);return n=f.floor(n).max(0),l(t.buyMax)||(n=n.min(1)),n})),t.actualGain==null&&(t.actualGain=t.currentGain),t.currentAt==null&&(t.currentAt=N(()=>{let n=t.scaling.currentAt(t);return t.roundUpCost&&(n=f.ceil(n)),n})),t.nextAt==null&&(t.nextAt=N(()=>{let n=t.scaling.nextAt(t);return t.roundUpCost&&(n=f.ceil(n)),n})),t.convert==null&&(t.convert=function(){var i;const n=l(t.currentGain);t.gainResource.value=f.add(t.gainResource.value,n),t.spend(n),(i=t.onConvert)==null||i.call(t,n)}),t.spend==null&&(t.spend=function(){t.baseResource.value=0}),y(t,"currentGain"),y(t,"actualGain"),y(t,"currentAt"),y(t,"nextAt"),y(t,"buyMax"),z(t,"buyMax",!0),y(t,"roundUpCost"),z(t,"roundUpCost",!0),t})}function $i(e,t){const n=Me(e),i=Me(t);return{currentGain(r){let a=l(r.baseResource.value);if(r.costModifier&&(a=r.costModifier.apply(a)),f.lt(a,l(n)))return 0;const o=f.div(a,l(n)).pow(l(i));return o.isNan()?new f(0):o},currentAt(r){let a=l(r.currentGain);return r.gainModifier&&(a=r.gainModifier.revert(a)),a=f.max(0,a).root(l(i)).times(l(n)),r.costModifier&&(a=r.costModifier.revert(a)),a},nextAt(r){let a=f.add(l(r.currentGain),1).floor();return r.gainModifier&&(a=r.gainModifier.revert(a)),a=f.max(0,a).root(l(i)).times(l(n)).max(l(n)),r.costModifier&&(a=r.costModifier.revert(a)),a}}}function ll(e){return Ci(e)}function ul(e){return Ci(()=>{const t=e();return z(t,"buyMax",!1),t.currentGain==null&&(t.currentGain=N(()=>{let n=t.gainModifier?t.gainModifier.apply(t.scaling.currentGain(t)):t.scaling.currentGain(t);return n=f.floor(n).max(t.gainResource.value),l(t.buyMax)||(n=n.min(f.add(t.gainResource.value,1))),n})),t.actualGain==null&&(t.actualGain=N(()=>{let n=f.sub(f.floor(t.scaling.currentGain(t)),t.gainResource.value).max(0);return l(t.buyMax)||(n=n.min(1)),n})),z(t,"convert",function(){var i;const n=l(t.actualGain);t.gainResource.value=t.gainModifier?t.gainModifier.apply(l(t.currentGain)):l(t.currentGain),t.spend(n),(i=t.onConvert)==null||i.call(t,n)}),t})}function dl(e,t,n=.5){return f.lte(e,t)?e:f.pow(e,n).times(f.pow(t,f.sub(1,n)))}function cl(e,t,n=.5){return{...e,currentGain:i=>dl(e.currentGain(i),l(t),l(n))}}const fl=E({props:{visibility:{type:k(Number),required:!0},display:{type:k(Object,String,Function),required:!0},title:{type:k(Object,String,Function),required:!0},color:k(String),collapsed:{type:Object,required:!0},style:k(Object,String,Array),titleStyle:k(Object,String,Array),bodyStyle:k(Object,String,Array),classes:k(Object),id:{type:String,required:!0}},components:{Node:Ue,CollapseTransition:Hi},setup(e){const{title:t,display:n}=ne(e),i=ct(t),r=ct(n),a=N(()=>ze[Z.theme].mergeAdjacent);return{titleComponent:i,bodyComponent:r,stacked:a,unref:l,Visibility:B}}}),pl=e=>(qe("data-v-338c9154"),e=e(),je(),e),ml=pl(()=>p("span",{class:"toggle"},"\u25BC",-1));function gl(e,t,n,i,r,a){var u;const o=de("CollapseTransition"),s=de("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,class:Q(["infobox",{collapsed:e.unref(e.collapsed),stacked:e.stacked,...e.unref(e.classes)}]),style:W([{borderColor:e.unref(e.color),visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(u=e.unref(e.style))!=null?u:{}])},[p("button",{class:"title",style:W([{backgroundColor:e.unref(e.color)},e.unref(e.titleStyle)||[]]),onClick:t[0]||(t[0]=c=>e.collapsed.value=!e.unref(e.collapsed))},[ml,(g(),A(ee(e.titleComponent)))],4),d(o,null,{default:V(()=>[e.unref(e.collapsed)?P("",!0):(g(),x("div",{key:0,class:"body",style:W({backgroundColor:e.unref(e.color)})},[(g(),A(ee(e.bodyComponent),{style:W(e.unref(e.bodyStyle))},null,8,["style"]))],4))]),_:1}),d(s,{id:e.id},null,8,["id"])],6)):P("",!0)}var vl=q(fl,[["render",gl],["__scopeId","data-v-338c9154"]]);const hl=Symbol("Infobox");function Mi(e){const t=le(!1);return me(()=>{const n=e();return n.id=he("infobox-"),n.type=hl,n[ue]=vl,n.collapsed=t,y(n,"visibility"),z(n,"visibility",B.Visible),y(n,"color"),y(n,"style"),y(n,"titleStyle"),y(n,"bodyStyle"),y(n,"classes"),y(n,"title"),y(n,"display"),n[pe]=function(){const{visibility:i,display:r,title:a,color:o,collapsed:s,style:u,titleStyle:c,bodyStyle:h,classes:v,id:b}=this;return{visibility:i,display:r,title:a,color:o,collapsed:s,style:l(u),titleStyle:c,bodyStyle:h,classes:v,id:b}},n})}var bl=E({props:{style:k(String,Object,Array),classes:k(Object),onInit:{type:Function,required:!0},id:{type:String,required:!0},onContainerResized:Function,onHotReload:Function},setup(e){const t=O(null),n=new ResizeObserver(a),i=O(null);Tt(()=>{var s,u;const o=i.value;o!=null&&(n.observe(o),t.value=new Ji({resizeTo:o,backgroundAlpha:0}),(s=i.value)==null||s.appendChild(t.value.view),(u=e.onInit)==null||u.call(e,t.value)),a(),e.onHotReload&&Ve(e.onHotReload)}),zi(()=>{var o;(o=t.value)==null||o.destroy()});let r=!0;function a(){r&&(r=!1,Ve(()=>{var o;i.value!=null&&e.onContainerResized&&(e.onContainerResized(i.value.getBoundingClientRect()),(o=t.value)==null||o.resize()),r=!0}))}return document.fonts.ready.then(a),{unref:l,resizeListener:i}}});function yl(e,t,n,i,r,a){return g(),x("div",{ref:"resizeListener",class:Q(["resize-listener",e.unref(e.classes)]),style:W(e.unref(e.style))},null,6)}var _l=q(bl,[["render",yl],["__scopeId","data-v-8adf21fa"]]);const kl=Symbol("Particles");function wl(e){return me(()=>{var r,a;const t=(r=e==null?void 0:e())!=null?r:{};t.id=he("particles-"),t.type=kl,t[ue]=_l,t.app=xe(null),t.addEmitter=o=>{const s=t;return s.app.value?Promise.resolve(new Vn(s.app.value.stage,o)):new Promise(u=>{n.push({resolve:u,config:o})})};let n=[];function i(o){t.app.value=o,n.forEach(({resolve:s,config:u})=>s(new Vn(o.stage,u))),n=[]}return t.onContainerResized=(a=t.onContainerResized)==null?void 0:a.bind(t),t[pe]=function(){const{id:o,style:s,classes:u,onContainerResized:c,onHotReload:h}=this;return{id:o,style:l(s),classes:u,onContainerResized:c,onHotReload:h,onInit:i}},t})}window.upgradeConfig=Xi;const xl=Symbol("Reset");function Ti(e){return me(()=>{const t=e();return t.id=he("reset-"),t.type=xl,t.reset=function(){var i;const n=r=>{r&&typeof r=="object"&&(Nt in r?r[Nt].value=r[St]:!(r instanceof f)&&!fe(r)&&Object.values(r).forEach(a=>n(a)))};l(t.thingsToReset).forEach(n),ge.emit("reset",t),(i=t.onReset)==null||i.call(t)},y(t,"thingsToReset"),t})}const Dt={};ge.on("removeLayer",e=>{var t;(t=Dt[e.id])==null||t.call(Dt),Dt[e.id]=void 0});const Nl=E({__name:"Sticky",setup(e){const t=O("0"),n=new ResizeObserver(r),i=O(null);function r(){let a=i.value;if(a==null)return;let o=0;for(;a.previousSibling;){const s=a.previousSibling;s.dataset&&"vSticky"in s.dataset&&(o+=s.offsetHeight),a=s}t.value=o+"px"}return Ve(r),document.fonts.ready.then(r),Tt(()=>{var o;const a=(o=i.value)==null?void 0:o.parentElement;a&&n.observe(a)}),(a,o)=>(g(),x("div",{class:"sticky",style:W({top:t.value}),ref_key:"element",ref:i,"data-v-sticky":""},[De(a.$slots,"default",{},void 0,!0)],4))}});var Wt=q(Nl,[["__scopeId","data-v-21495571"]]);const Ii=E({__name:"Resource",props:{resource:null,color:null},setup(e){const t=e,n=N(()=>Le(t.resource));return(i,r)=>(g(),x("h2",{style:W({color:e.color,"text-shadow":"0px 0px 10px "+e.color})},G(l(n)),5))}});const Sl={class:"main-display"},Cl={key:0},$l={key:1},Ml=C(", "),Pi=E({__name:"MainDisplay",props:{resource:null,color:null,classes:null,style:null,effectDisplay:null},setup(e){const n=ne(e),i=O(null),r=it(n.effectDisplay),a=N(()=>f.lt(n.resource.value,"1e1000"));return(o,s)=>(g(),A(Wt,null,{default:V(()=>{var u,c;return[p("div",{class:"main-display-container",style:W({height:`${((c=(u=i.value)==null?void 0:u.$el.clientHeight)!=null?c:0)+50}px`})},[p("div",Sl,[l(a)?(g(),x("span",Cl,"You have ")):P("",!0),d(Ii,{resource:e.resource,color:e.color||"white"},null,8,["resource","color"]),C(" "+G(e.resource.displayName),1),l(r)?(g(),x("span",$l,[Ml,(g(),A(ee(l(r)),{ref_key:"effectRef",ref:i},null,512))])):P("",!0)])],4)]}),_:1}))}});function un(e,t){return y(t,"display"),y(t,"classes"),y(t,"style"),y(t,"direction"),z(t,"direction",X.Up),y(t,"xoffset"),y(t,"yoffset"),t.pinnable&&("pinned"in e?(console.error("Cannot add pinnable tooltip to element that already has a property called 'pinned'"),t.pinnable=!1):e.pinned=t.pinned=le(!1)),Ve(()=>{const n=e[ue];e[ue]=re;const i=e[pe].bind(e);e[pe]=function(){const{display:a,classes:o,style:s,direction:u,xoffset:c,yoffset:h,pinned:v}=this;return{element:{[ue]:n,[pe]:i},display:a,classes:o,style:l(s),direction:u,xoffset:c,yoffset:h,pinned:v}}.bind(t)}),t}function Tl(e,t,n){const i=Me(e),r=Me(t),a=n==null?void 0:Me(n);return{apply:o=>f.add(o,l(i)),revert:o=>f.sub(o,l(i)),enabled:a,description:t==null?void 0:j(()=>d("div",{class:"modifier-container"},[d("span",{class:"modifier-amount"},[f.gte(l(i),0)?"+":"",se(l(i))]),l(r)?d("span",{class:"modifier-description"},[Re(l(r))]):null]))}}function Il(e,t,n){const i=Me(e),r=Me(t),a=n==null?void 0:Me(n);return{apply:o=>f.times(o,l(i)),revert:o=>f.div(o,l(i)),enabled:a,description:t==null?void 0:j(()=>d("div",{class:"modifier-container"},[d("span",{class:"modifier-amount"},[C("x"),se(l(i))]),l(r)?d("span",{class:"modifier-description"},[Re(l(r))]):null]))}}function Pl(e,t,n){const i=Me(e),r=Me(t),a=n==null?void 0:Me(n);return{apply:o=>f.pow(o,l(i)),revert:o=>f.root(o,l(i)),enabled:a,description:t==null?void 0:j(()=>d("div",{class:"modifier-container"},[d("span",{class:"modifier-amount"},[C("^"),se(l(i))]),l(r)?d("span",{class:"modifier-description"},[Re(l(r))]):null]))}}function Ol(...e){return{apply:t=>e.filter(n=>l(n.enabled)!==!1).reduce((n,i)=>i.apply(n),t),revert:e.every(t=>t.revert!=null)?t=>e.filter(n=>l(n.enabled)!==!1).reduceRight((n,i)=>i.revert(n),t):void 0,enabled:N(()=>e.filter(t=>l(t.enabled)!==!1).length>0),description:j(()=>d(K,null,[e.filter(t=>l(t.enabled)!==!1).map(t=>l(t.description)).filter(t=>t).map(Re)]))}}function Al(e,t,n,i=1,r="",a="Base"){return d("div",null,[d("h3",null,[e,t?d("span",{class:"subtitle"},[C(" ("),t,C(")")]):null]),d("br",null,null),d("div",{class:"modifier-container"},[d("span",{class:"modifier-amount"},[se(i),r]),d("span",{class:"modifier-description"},[Re(a)])]),Re(l(n.description)),d("hr",null,null),C("Total: "),se(n.apply(i)),r])}const El={class:"field"},Vl={key:0,class:"field-title"},Fl=["min","max"],Dl=E({__name:"Slider",props:{title:null,modelValue:null,min:null,max:null},emits:["update:modelValue"],setup(e,{emit:t}){const i=ne(e),r=N({get(){return String(l(i.modelValue)||0)},set(a){t("update:modelValue",Number(a))}});return(a,o)=>(g(),x("div",El,[e.title?(g(),x("span",Vl,G(e.title),1)):P("",!0),d(re,{display:`${l(r)}`,class:Q({fullWidth:!e.title}),direction:l(X).Down},{default:V(()=>[Kt(p("input",{type:"range","onUpdate:modelValue":o[0]||(o[0]=s=>fe(r)?r.value=s:null),min:e.min,max:e.max},null,8,Fl),[[Hn,l(r)]])]),_:1},8,["display","class","direction"])]))}});var Rl=q(Dl,[["__scopeId","data-v-1b053b9f"]]);const Bl=E({__name:"VerticalRule",props:{height:null},setup(e){return(t,n)=>(g(),x("div",{class:"vr",style:W({height:e.height})},null,4))}});var ql=q(Bl,[["__scopeId","data-v-5e0a978a"]]);const jl=E({props:{progress:{type:k(String,Object,Number),required:!0},width:{type:k(Number),required:!0},height:{type:k(Number),required:!0},direction:{type:k(String),required:!0},display:k(Object,String,Function),visibility:{type:k(Number),required:!0},style:k(Object,String,Array),classes:k(Object),borderStyle:k(Object,String,Array),textStyle:k(Object,String,Array),baseStyle:k(Object,String,Array),fillStyle:k(Object,String,Array),mark:k(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:ft,Node:Ue},setup(e){const{progress:t,width:n,height:i,direction:r,display:a}=ne(e),o=N(()=>{let c=t.value instanceof f?t.value.toNumber():Number(t.value);return(1-Math.min(Math.max(c,0),1))*100}),s=N(()=>{const c={width:ae(n)+.5+"px",height:ae(i)+.5+"px"};switch(l(r)){case X.Up:c.clipPath=`inset(${o.value}% 0% 0% 0%)`,c.width=ae(n)+1+"px";break;case X.Down:c.clipPath=`inset(0% 0% ${o.value}% 0%)`,c.width=ae(n)+1+"px";break;case X.Right:c.clipPath=`inset(0% ${o.value}% 0% 0%)`;break;case X.Left:c.clipPath=`inset(0% 0% 0% ${o.value} + '%)`;break;case X.Default:c.clipPath="inset(0% 50% 0% 0%)";break}return c}),u=it(a);return{normalizedProgress:o,barStyle:s,component:u,unref:l,Visibility:B}}});function Ll(e,t,n,i,r,a){var u,c,h,v,b,w,S;const o=de("MarkNode"),s=de("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,style:W([{width:e.unref(e.width)+"px",height:e.unref(e.height)+"px",visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(u=e.unref(e.style))!=null?u:{}]),class:Q({bar:!0,...e.unref(e.classes)})},[p("div",{class:"overlayTextContainer border",style:W([{width:e.unref(e.width)+"px",height:e.unref(e.height)+"px"},(c=e.unref(e.borderStyle))!=null?c:{}])},[e.component?(g(),x("span",{key:0,class:"overlayText",style:W(e.unref(e.textStyle))},[(g(),A(ee(e.component)))],4)):P("",!0)],4),p("div",{class:"border",style:W([{width:e.unref(e.width)+"px",height:e.unref(e.height)+"px"},(h=e.unref(e.style))!=null?h:{},(v=e.unref(e.baseStyle))!=null?v:{},(b=e.unref(e.borderStyle))!=null?b:{}])},[p("div",{class:"fill",style:W([e.barStyle,(w=e.unref(e.style))!=null?w:{},(S=e.unref(e.fillStyle))!=null?S:{}])},null,4)],4),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(s,{id:e.id},null,8,["id"])],6)):P("",!0)}var zl=q(jl,[["render",Ll],["__scopeId","data-v-02d0d7b2"]]);const Gl=Symbol("Bar");function an(e){return me(()=>{const t=e();return t.id=he("bar-"),t.type=Gl,t[ue]=zl,y(t,"visibility"),z(t,"visibility",B.Visible),y(t,"width"),y(t,"height"),y(t,"direction"),y(t,"style"),y(t,"classes"),y(t,"borderStyle"),y(t,"baseStyle"),y(t,"textStyle"),y(t,"fillStyle"),y(t,"progress"),y(t,"display"),y(t,"mark"),t[pe]=function(){const{progress:n,width:i,height:r,direction:a,display:o,visibility:s,style:u,classes:c,borderStyle:h,textStyle:v,baseStyle:b,fillStyle:w,mark:S,id:$}=this;return{progress:n,width:i,height:r,direction:a,display:o,visibility:s,style:l(u),classes:c,borderStyle:h,textStyle:v,baseStyle:b,fillStyle:w,mark:S,id:$}},t})}const Ul=Symbol("Buyable");function Hl(e){const t=le(0);return me(()=>{var a,o;const n=e();if(n.canPurchase==null&&(n.resource==null||n.cost==null))throw console.warn("Cannot create buyable without a canPurchase property or a resource and cost property",n),"Cannot create buyable without a canPurchase property or a resource and cost property";n.id=he("buyable-"),n.type=Ul,n[ue]=xi,n.amount=t,n.canAfford=N(()=>{const s=n,u=l(s.cost);return s.resource!=null&&u!=null&&f.gte(s.resource.value,u)}),n.canPurchase==null&&(n.canPurchase=N(()=>l(n.visibility)===B.Visible&&l(n.canAfford)&&f.lt(n.amount.value,l(n.purchaseLimit)))),n.maxed=N(()=>f.gte(n.amount.value,l(n.purchaseLimit))),y(n,"classes");const i=n.classes;n.classes=N(()=>{const s=l(i)||{};return n.maxed.value&&(s.bought=!0),s}),y(n,"canPurchase"),n.canClick=n.canPurchase,n.onClick=n.purchase=(o=(a=n.onClick)!=null?a:n.purchase)!=null?o:function(){var c;const s=n;if(!l(s.canPurchase))return;const u=l(s.cost);s.cost!=null&&s.resource!=null&&(s.resource.value=f.sub(s.resource.value,u),s.amount.value=f.add(s.amount.value,1)),(c=s.onPurchase)==null||c.call(s,u)},y(n,"display");const r=n.display;return n.display=j(()=>{const s=l(r);if(Te(s)){const u=D(s);return d(u,null,null)}if(s!=null&&n.cost!=null&&n.resource!=null){const u=n,c=D(s.title||"","h3"),h=D(s.description||""),v=D(s.effectDisplay||"");return d("span",null,[s.title?d("div",null,[d(c,null,null)]):null,s.description?d(h,null,null):null,s.showAmount===!1?null:d("div",null,[d("br",null,null),l(u.purchaseLimit)===f.dInf?d(K,null,[C("Amount: "),ve(u.amount.value)]):d(K,null,[C("Amount: "),ve(u.amount.value),C(" /")," ",ve(l(u.purchaseLimit))])]),s.effectDisplay?d("div",null,[d("br",null,null),C("Currently: "),d(v,null,null)]):null,u.cost&&!u.maxed.value?d("div",null,[d("br",null,null),C("Cost: "),se(l(u.cost)||0)," ",n.resource.displayName]):null])}return""}),y(n,"visibility"),z(n,"visibility",B.Visible),y(n,"cost"),y(n,"resource"),y(n,"purchaseLimit"),z(n,"purchaseLimit",f.dInf),y(n,"style"),y(n,"mark"),y(n,"small"),n[pe]=function(){const{display:s,visibility:u,style:c,classes:h,onClick:v,canClick:b,small:w,mark:S,id:$}=this;return{display:s,visibility:u,style:l(c),classes:h,onClick:v,canClick:b,small:w,mark:S,id:$}},n})}var Wl=E({props:{active:{type:k(Boolean),required:!0},maxed:{type:k(Boolean),required:!0},canComplete:{type:k(Boolean),required:!0},display:k(String,Object,Function),visibility:{type:k(Number),required:!0},style:k(String,Object,Array),classes:k(Object),completed:{type:k(Boolean),required:!0},canStart:{type:k(Boolean),required:!0},mark:k(Boolean,String),id:{type:String,required:!0},toggle:{type:Function,required:!0}},components:{MarkNode:ft,Node:Ue},setup(e){const{active:t,maxed:n,canComplete:i,display:r}=ne(e),a=N(()=>t.value?i.value?"Finish":"Exit Early":n.value?"Completed":"Start"),o=xe(""),s=N(()=>{const u=ae(t),c=ae(i);return u?c?Us():wn():{}});return Ne(()=>{const u=ae(r);if(u==null){o.value="";return}if(Te(u)){o.value=D(u);return}const c=D(u.title||"","h3"),h=D(u.description,"div"),v=D(u.goal||""),b=D(u.reward||""),w=D(u.effectDisplay||"");o.value=D(j(()=>d("span",null,[u.title?d("div",null,[d(c,null,null)]):null,d(h,null,null),u.goal?d("div",null,[d("br",null,null),C("Goal: "),d(v,null,null)]):null,u.reward?d("div",null,[d("br",null,null),C("Reward: "),d(b,null,null)]):null,u.effectDisplay?d("div",null,[C("Currently: "),d(w,null,null)]):null])))}),{buttonText:a,notifyStyle:s,comp:o,Visibility:B,unref:l}}});const Yl=["disabled"];function Kl(e,t,n,i,r,a){var u;const o=de("MarkNode"),s=de("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.notifyStyle,(u=e.unref(e.style))!=null?u:{}]),class:Q({feature:!0,challenge:!0,done:e.unref(e.completed),canStart:e.unref(e.canStart)&&!e.unref(e.maxed),maxed:e.unref(e.maxed),...e.unref(e.classes)})},[p("button",{class:"toggleChallenge",onClick:t[0]||(t[0]=(...c)=>e.toggle&&e.toggle(...c)),disabled:!e.unref(e.canStart)||e.unref(e.maxed)},G(e.buttonText),9,Yl),e.unref(e.comp)?(g(),A(ee(e.unref(e.comp)),{key:0})):P("",!0),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(s,{id:e.id},null,8,["id"])],6)):P("",!0)}var Zl=q(Wl,[["render",Kl],["__scopeId","data-v-4d2947df"]]);const Jl=Symbol("ChallengeType");function Xl(e){const t=le(0),n=le(!1);return me(()=>{const i=e();if(i.canComplete==null&&(i.resource==null||i.goal==null))throw console.warn("Cannot create challenge without a canComplete property or a resource and goal property",i),"Cannot create challenge without a canComplete property or a resource and goal property";i.id=he("challenge-"),i.type=Jl,i[ue]=Zl,i.completions=t,i.active=n,i.completed=N(()=>f.gt(i.completions.value,0)),i.maxed=N(()=>f.gte(i.completions.value,l(i.completionLimit))),i.toggle=function(){var o,s,u,c,h;const a=i;if(a.active.value){if(l(a.canComplete)&&!a.maxed.value){let v=l(a.canComplete);typeof v=="boolean"&&(v=1),a.completions.value=f.min(f.add(a.completions.value,v),l(a.completionLimit)),(o=a.onComplete)==null||o.call(a)}a.active.value=!1,(s=a.onExit)==null||s.call(a),(u=a.reset)==null||u.reset()}else l(a.canStart)&&l(a.visibility)===B.Visible&&!a.maxed.value&&((c=a.reset)==null||c.reset(),a.active.value=!0,(h=a.onEnter)==null||h.call(a))},i.complete=function(a){var u,c,h;const o=i;let s=l(o.canComplete);o.active.value&&s!==!1&&(s===!0||f.neq(0,s))&&!o.maxed.value&&(typeof s=="boolean"&&(s=1),o.completions.value=f.min(f.add(o.completions.value,s),l(o.completionLimit)),(u=o.onComplete)==null||u.call(o),a!==!0&&(o.active.value=!1,(c=o.onExit)==null||c.call(o),(h=o.reset)==null||h.reset()))},y(i,"visibility"),z(i,"visibility",B.Visible);const r=i.visibility;return i.visibility=N(()=>Z.hideChallenges===!0&&l(i.maxed)?B.None:l(r)),i.canComplete==null&&(i.canComplete=N(()=>{const a=i;return!a.active.value||a.resource==null||a.goal==null?!1:f.gte(a.resource.value,l(a.goal))})),i.mark==null&&(i.mark=N(()=>f.gt(l(i.completionLimit),1)&&!!l(i.maxed))),y(i,"canStart"),z(i,"canStart",!0),y(i,"canComplete"),y(i,"completionLimit"),z(i,"completionLimit",1),y(i,"mark"),y(i,"goal"),y(i,"classes"),y(i,"style"),y(i,"display"),i.reset!=null&&ge.on("reset",a=>{a===i.reset&&i.active.value&&i.toggle()}),i[pe]=function(){const{active:a,maxed:o,canComplete:s,display:u,visibility:c,style:h,classes:v,completed:b,canStart:w,mark:S,id:$,toggle:R}=this;return{active:a,maxed:o,canComplete:s,display:u,visibility:c,style:l(h),classes:v,completed:b,canStart:w,mark:S,id:$,toggle:R}},i})}ge.on("loadSettings",e=>{z(e,"hideChallenges",!1)});si(j(()=>d(we,{title:"Hide Maxed Challenges","onUpdate:modelValue":e=>Z.hideChallenges=e,modelValue:Z.hideChallenges},null)));const Xt=Yt({}),xn=Symbol("Hotkey");function jn(e){return me(()=>{const t=e();return t.type=xn,y(t,"enabled"),z(t,"enabled",!0),y(t,"description"),t})}ge.on("addLayer",e=>{ti(e,xn).forEach(t=>{Xt[t.key]=t})});ge.on("removeLayer",e=>{ti(e,xn).forEach(t=>{Xt[t.key]=void 0})});document.onkeydown=function(e){var i;if(((i=e.target)==null?void 0:i.tagName)==="INPUT"||Nn.value&&!T.keepGoing)return;let t=e.key;e.shiftKey&&(t="shift+"+t),e.ctrlKey&&(t="ctrl+"+t);const n=Xt[t];n&&l(n.enabled)&&(e.preventDefault(),n.onPress())};ea(j(()=>{const e=Object.values(Xt).filter(t=>l(t==null?void 0:t.enabled));return e.length===0?"":d("div",null,[d("br",null,null),d("h4",null,[C("Hotkeys")]),e.map(t=>d("div",null,[t==null?void 0:t.key,C(": "),t==null?void 0:t.description]))])}));const Ql=Symbol("Links");function eu(e){return me(()=>{const t=e();return t.type=Ql,t[ue]=_i,y(t,"links"),t[pe]=function(){const{links:n}=this;return{links:n}},t})}var tu=E({props:{visibility:{type:k(Number),required:!0},display:{type:k(String,Object,Function),required:!0},style:k(String,Object,Array),classes:k(Object),earned:{type:k(Boolean),required:!0},id:{type:String,required:!0}},components:{Node:Ue},setup(e){const{display:t}=ne(e),n=xe("");return Ne(()=>{const i=ae(t);if(i==null){n.value="";return}if(Te(i)){n.value=D(i);return}const r=D(i.requirement,"h3"),a=D(i.effectDisplay||"","b"),o=D(i.optionsDisplay||"","span");n.value=D(j(()=>d("span",null,[d(r,null,null),i.effectDisplay?d("div",null,[d(a,null,null)]):null,i.optionsDisplay?d("div",{class:"equal-spaced"},[d(o,null,null)]):null])))}),{comp:n,unref:l,Visibility:B}}});function nu(e,t,n,i,r,a){var s;const o=de("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(s=e.unref(e.style))!=null?s:{}]),class:Q({feature:!0,milestone:!0,done:e.unref(e.earned),...e.unref(e.classes)})},[(g(),A(ee(e.unref(e.comp)))),d(o,{id:e.id},null,8,["id"])],6)):P("",!0)}var iu=q(tu,[["render",nu],["__scopeId","data-v-f4e8794e"]]);const ru=fn(),au=Symbol("Milestone");let Ke;(function(e){e.All="all",e.Configurable="configurable",e.Incomplete="incomplete",e.None="none"})(Ke||(Ke={}));function Ln(e){const t=le(!1);return me(()=>{var r;const n=(r=e==null?void 0:e())!=null?r:{};n.id=he("milestone-"),n.type=au,n[ue]=iu,n.earned=t,n.complete=function(){t.value=!0},y(n,"visibility"),z(n,"visibility",B.Visible);const i=n.visibility;if(n.visibility=N(()=>{const a=l(n.display);switch(Z.msDisplay){default:case Ke.All:return l(i);case Ke.Configurable:return l(n.earned)&&!(a!=null&&typeof a=="object"&&"optionsDisplay"in a)?B.None:l(i);case Ke.Incomplete:return l(n.earned)?B.None:l(i);case Ke.None:return B.None}}),y(n,"style"),y(n,"classes"),y(n,"display"),n[pe]=function(){const{visibility:a,display:o,style:s,classes:u,earned:c,id:h}=this;return{visibility:a,display:o,style:l(s),classes:u,earned:c,id:h}},n.shouldEarn){const a=n;Ne(()=>{var o,s;if(Z.active===T.id&&!a.earned.value&&l(a.visibility)===B.Visible&&((o=a.shouldEarn)==null?void 0:o.call(a))&&(a.earned.value=!0,(s=a.onComplete)==null||s.call(a),a.display)){const u=l(a.display),c=D(Te(u)?u:u.requirement);ru(d(K,null,[d("h3",null,[C("Milestone earned!")]),d("div",null,[d(c,null,null)])]))}})}return n})}ge.on("loadSettings",e=>{z(e,"msDisplay",Ke.All)});const ou=Object.values(Ke).map(e=>({label:ei(e),value:e}));si(j(()=>d(yn,{title:"Show Milestones",options:ou,"onUpdate:modelValue":e=>Z.msDisplay=e,modelValue:Z.msDisplay},null)));const su=E({__name:"Tab",props:{display:null},setup(e){const t=e,{display:n}=ne(t),i=ct(n);return(r,a)=>(g(),A(ee(l(i))))}}),lu=Symbol("Tab");function Rt(e){return me(()=>{const t=e();return t.id=he("tab-"),t.type=lu,t[ue]=su,t[pe]=function(){const{display:n}=this;return{display:n}},t})}const uu=E({props:{visibility:{type:k(Number),required:!0},display:{type:k(Object,String,Function),required:!0},style:k(String,Object,Array),classes:k(Object),glowColor:k(String),active:Boolean,floating:Boolean},emits:["selectTab"],setup(e,{emit:t}){const{display:n,glowColor:i,floating:r}=ne(e),a=ct(n),o=N(()=>{const u=ae(i);return u?l(r)?wn(u):{boxShadow:`0px 9px 5px -6px ${u}`}:{}});function s(){t("selectTab")}return{selectTab:s,component:a,glowColorStyle:o,unref:l,Visibility:B}}});function du(e,t,n,i,r,a){var o;return e.unref(e.visibility)!==e.Visibility.None?(g(),x("button",{key:0,onClick:t[0]||(t[0]=(...s)=>e.selectTab&&e.selectTab(...s)),class:Q(["tabButton",{active:e.active,...e.unref(e.classes)}]),style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.glowColorStyle,(o=e.unref(e.style))!=null?o:{}])},[(g(),A(ee(e.component)))],6)):P("",!0)}var Oi=q(uu,[["render",du],["__scopeId","data-v-610a2549"]]);const cu=E({props:{visibility:{type:k(Number),required:!0},activeTab:{type:k(Object),required:!0},selected:{type:Object,required:!0},tabs:{type:k(Object),required:!0},style:k(String,Object,Array),classes:k(Object),buttonContainerStyle:k(String,Object,Array),buttonContainerClasses:k(Object)},components:{Sticky:Wt,TabButton:Oi},setup(e){const{activeTab:t}=ne(e),n=N(()=>ze[Z.theme].floatingTabs),i=xe("");Ne(()=>{const s=ae(t);if(s==null){i.value="";return}if(Te(s)){i.value=D(s);return}i.value=D(l(s.display))});const r=N(()=>{const s=ae(t);return Te(s)||!s?void 0:l(s.classes)}),a=N(()=>{const s=ae(t);return Te(s)||!s?void 0:l(s.style)});function o(s){const{display:u,style:c,classes:h,glowColor:v,visibility:b}=s;return{display:u,style:l(c),classes:h,glowColor:v,visibility:b}}return{floating:n,tabClasses:r,tabStyle:a,Visibility:B,component:i,gatherButtonProps:o,unref:l}}});function fu(e,t,n,i,r,a){var u,c;const o=de("TabButton"),s=de("Sticky");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,class:Q(["tab-family-container",{...e.unref(e.classes),...e.tabClasses}]),style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(u=e.unref(e.style))!=null?u:[],(c=e.tabStyle)!=null?c:[]])},[d(s,{class:Q(["tab-buttons-container",e.unref(e.buttonContainerClasses)]),style:W(e.unref(e.buttonContainerStyle))},{default:V(()=>[p("div",{class:Q(["tab-buttons",{floating:e.floating}])},[(g(!0),x(K,null,kt(e.unref(e.tabs),(h,v)=>(g(),A(o,Be({onSelectTab:b=>e.selected.value=v,floating:e.floating,key:v,active:e.unref(h.tab)===e.unref(e.activeTab)},e.gatherButtonProps(h)),null,16,["onSelectTab","floating","active"]))),128))],2)]),_:1},8,["class","style"]),e.unref(e.activeTab)?(g(),A(ee(e.unref(e.component)),{key:0})):P("",!0)],6)):P("",!0)}var pu=q(cu,[["render",fu],["__scopeId","data-v-11575f45"]]);const mu=Symbol("TabButton"),gu=Symbol("TabFamily");function zn(e,t){if(Object.keys(e).length===0)throw console.warn("Cannot create tab family with 0 tabs"),"Cannot create tab family with 0 tabs";const n=le(Object.keys(e)[0]);return me(()=>{var a;const i=(a=t==null?void 0:t())!=null?a:{};i.id=he("tabFamily-"),i.type=gu,i[ue]=pu,i.tabs=Object.keys(e).reduce((o,s)=>{const u=e[s]();return u.type=mu,u[ue]=Oi,y(u,"visibility"),z(u,"visibility",B.Visible),y(u,"tab"),y(u,"display"),y(u,"classes"),y(u,"style"),y(u,"glowColor"),o[s]=u,o},{}),i.selected=n,i.activeTab=N(()=>{const o=l(r.tabs);if(n.value in o&&l(o[n.value].visibility)===B.Visible)return l(o[n.value].tab);const s=Object.values(o).find(u=>l(u.visibility)===B.Visible);return s?l(s.tab):null}),y(i,"visibility"),z(i,"visibility",B.Visible),y(i,"classes"),y(i,"style"),y(i,"buttonContainerClasses"),y(i,"buttonContainerStyle"),i[pe]=function(){const{visibility:o,activeTab:s,selected:u,tabs:c,style:h,classes:v,buttonContainerClasses:b,buttonContainerStyle:w}=this;return{visibility:o,activeTab:s,selected:u,tabs:c,style:l(h),classes:v,buttonContainerClasses:b,buttonContainerStyle:w}};const r=i;return r})}var vu=E({props:{display:{type:k(String,Object,Function),required:!0},visibility:{type:k(Number),required:!0},style:k(String,Object,Array),classes:k(Object),resource:Object,cost:k(String,Object,Number),canPurchase:{type:k(Boolean),required:!0},bought:{type:k(Boolean),required:!0},mark:k(Boolean,String),id:{type:String,required:!0},purchase:{type:Function,required:!0}},components:{Node:Ue,MarkNode:ft},setup(e){const{display:t,cost:n}=ne(e),i=xe("");return Ne(()=>{const r=ae(t);if(r==null){i.value="";return}if(Te(r)){i.value=D(r);return}const a=ae(n),o=D(r.title||"","h3"),s=D(r.description,"div"),u=D(r.effectDisplay||"");i.value=D(j(()=>{var c;return d("span",null,[r.title?d("div",null,[d(o,null,null)]):null,d(s,null,null),r.effectDisplay?d("div",null,[C("Currently: "),d(u,null,null)]):null,e.resource!=null?d(K,null,[d("br",null,null),C("Cost: "),e.resource&&Le(e.resource,a)," ",(c=e.resource)==null?void 0:c.displayName]):null])}))}),{component:i,unref:l,Visibility:B}}});const hu=["disabled"];function bu(e,t,n,i,r,a){var u;const o=de("MarkNode"),s=de("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("button",{key:0,style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(u=e.unref(e.style))!=null?u:{}]),onClick:t[0]||(t[0]=(...c)=>e.purchase&&e.purchase(...c)),class:Q({feature:!0,upgrade:!0,can:e.unref(e.canPurchase),locked:!e.unref(e.canPurchase),bought:e.unref(e.bought),...e.unref(e.classes)}),disabled:!e.unref(e.canPurchase)},[e.unref(e.component)?(g(),A(ee(e.unref(e.component)),{key:0})):P("",!0),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(s,{id:e.id},null,8,["id"])],14,hu)):P("",!0)}var yu=q(vu,[["render",bu],["__scopeId","data-v-7742f590"]]);const _u=Symbol("Upgrade");function Bt(e){const t=le(!1);return me(()=>{const n=e();return n.id=he("upgrade-"),n.type=_u,n[ue]=yu,n.canAfford==null&&(n.resource==null||n.cost==null)&&console.warn("Error: can't create upgrade without a canAfford property or a resource and cost property",n),n.bought=t,n.canAfford==null?n.canAfford=N(()=>{const i=n;return i.resource!=null&&i.cost!=null&&f.gte(i.resource.value,l(i.cost))}):y(n,"canAfford"),n.canPurchase=N(()=>l(n.visibility)===B.Visible&&l(n.canAfford)&&!l(n.bought)),n.purchase=function(){var r;const i=n;!l(i.canPurchase)||(i.resource!=null&&i.cost!=null&&(i.resource.value=f.sub(i.resource.value,l(i.cost))),t.value=!0,(r=i.onPurchase)==null||r.call(i))},y(n,"visibility"),z(n,"visibility",B.Visible),y(n,"classes"),y(n,"style"),y(n,"display"),y(n,"mark"),y(n,"cost"),y(n,"resource"),n[pe]=function(){const{display:i,visibility:r,style:a,classes:o,resource:s,cost:u,canPurchase:c,bought:h,mark:v,id:b,purchase:w}=this;return{display:i,visibility:r,style:l(a),classes:o,resource:s,cost:u,canPurchase:c,bought:h,mark:v,id:b,purchase:w}},n})}function ku(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!cn(e)}const on="c",Oe=It(on,()=>{const e="#4BDC13",t="Candies",n=Ct(0,"lollipops"),i=yi(n),r=le(!1),a=le("pointy"),o=le(10),s=le(new f(10)),u=N(()=>f.pow(n.value,.2)),c=N(()=>f.times(n.value,10)),h=Mi(()=>({title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"},color:"rgb(75, 220, 19)"})),v=Ln(()=>({shouldEarn(){return f.gte(i.value,3)},display:{requirement:"3 Lollipops",effectDisplay:"Unlock the next milestone"}})),b=Ln(()=>({visibility(){return gt(v.earned.value)},shouldEarn(){return f.gte(i.value,4)},display:{requirement:"4 Lollipops",effectDisplay:"You can toggle beep and boop (which do nothing)",optionsDisplay:j(()=>d(K,null,[d(we,{title:"beep","onUpdate:modelValue":H=>r.value=H,modelValue:r.value},null),d(we,{title:"boop","onUpdate:modelValue":H=>Fe.boop.value=H,modelValue:Fe.boop.value},null)]))},style(){return this.earned?{backgroundColor:"#1111DD"}:{}}})),w=[v,b],S=Xl(()=>({title:"Fun",completionLimit:3,display(){return{description:`Makes the game 0% harder
${ve(this.completions.value)}/${this.completionLimit} completions`,goal:"Have 20 points I guess",reward:"Says hi",effectDisplay:se($.value)+"x"}},visibility(){return gt(f.gt(i.value,0))},goal:20,resource:Y.points,onComplete(){console.log("hiii")},onEnter(){Y.points.value=0,Y.best.value=Y.points.value,Y.total.value=Y.points.value,console.log("So challenging")},onExit(){console.log("Sweet freedom!")},style:{height:"200px"}})),$=N(()=>f.add(n.value,1).tetrate(.02)),R=Bt(()=>({display:{title:"Generator of Genericness",description:"Gain 1 point every second"},cost:1,resource:n})),ke=Bt(()=>({display:()=>({description:"Point generation is faster based on your unspent Lollipops",effectDisplay:`${se(M.value)}x`}),cost:1,resource:n,visibility:()=>gt(R.bought.value)})),M=N(()=>{let H=f.add(n.value,1).pow(.5);return H.gte("1e20000000")&&(H=H.sqrt().times("1e10000000")),H}),I=Bt(()=>({visibility(){return gt(ke.bought.value)},canAfford(){return f.lt(Y.points.value,7)},onPurchase(){Y.points.value=f.add(Y.points.value,7)},display:"Only buyable with less than 7 points, and gives you 7 more. Unlocks a secret subtab.",style(){return this.bought?{backgroundColor:"#1111dd"}:this.canAfford?{}:{backgroundColor:"#dd1111"}}})),U=Bt(()=>({resource:Ct(te.amount,"Exhancers",0),cost:3,display:{title:"This upgrade doesn't exist",description:"Or does it?"}})),be=[R,ke,I],te=Hl(()=>({resource:n,cost(){let H=new f(this.amount.value);return H.gte(25)&&(H=H.pow(2).div(25)),f.pow(2,H.pow(1.5)).floor()},display(){return{title:"Exhancers",description:`Adds ${se(He.value)} things and multiplies stuff by ${se(en.value)}.`}},onPurchase(H){s.value=f.add(s.value,H!=null?H:0)},style:{height:"222px"},purchaseLimit:4})),He=N(()=>f.gte(te.amount.value,0)?f.pow(25,f.pow(te.amount.value,1.1)):f.pow(1/25,f.times(te.amount.value,-1).pow(1.1))),en=N(()=>f.gte(te.amount.value,0)?f.pow(25,f.pow(te.amount.value,1.1)):f.pow(1/25,f.times(te.amount.value,-1).pow(1.1))),at=le(!1),ot=O(!1),Ot=$t(()=>({small:!0,display:"Respec Thingies",onClick(){if(at.value&&!ot.value){ot.value=!0;return}n.value=f.add(n.value,s.value),te.amount.value=0,Y.tree.reset(Xe)}})),Sn=$t(()=>({small:!0,display:"Sell One",onClick(){f.lte(te.amount.value,0)||(te.amount.value=f.sub(te.amount.value,1),n.value=f.add(n.value,te.cost.value),s.value=f.sub(s.value,te.cost.value))}})),Ei=j(()=>d(jt,null,{default:()=>[d(bt,null,{default:()=>[d(we,{title:"Confirm","onUpdate:modelValue":H=>at.value=H,modelValue:at.value},null),Pe(Ot)]}),Pe(te),Pe(Sn),d(Je,{modelValue:ot.value,"onUpdate:modelValue":H=>ot.value=H},{header:()=>d("h2",null,[C("Confirm Respec")]),body:()=>d(K,null,[C("Are you sure? Respeccing these doesn't accomplish much")]),footer:()=>d("div",{class:"modal-default-footer"},[d("div",{class:"modal-default-flex-grow"},null),d("button",{class:"button modal-default-button",onClick:()=>ot.value=!1},[C("Cancel")]),d("button",{class:"button modal-default-button danger",onClick:()=>{Ot.onClick(),ot.value=!1}},[C("Respec")])])})]})),Cn=an(()=>({fillStyle:{backgroundColor:"#FFFFFF"},baseStyle:{backgroundColor:"#696969"},textStyle:{color:"#04e050"},direction:X.Right,width:300,height:30,progress(){return f.add(Y.points.value,1).log(10).div(10).toNumber()},display(){return se(Y.points.value)+" / 1e10 points"}})),$n=an(()=>({fillStyle:{backgroundColor:"#4BEC13"},baseStyle:{backgroundColor:"#000000"},textStyle:{textShadow:"0px 0px 2px #000000"},borderStyle:{borderWidth:"7px"},direction:X.Up,width:50,height:200,progress(){return f.div(Y.points.value,100)},display(){return ve(f.div(Y.points.value,1).min(100))+"%"}})),At=an(()=>({fillStyle:{backgroundColor:"#FE0102"},baseStyle:{backgroundColor:"#222222"},textStyle:{textShadow:"0px 0px 2px #000000"},direction:X.Up,width:100,height:30,progress(){return f.div(n.value,50)}})),pt=ll(()=>({scaling:cl($i(10,.5),1e100,.5),baseResource:Y.points,gainResource:n,roundUpCost:!0,gainModifier:Ol(Pl(2,"Because I felt like it"),Tl(1,"Nice modifier"))})),Mn=Ti(()=>({thingsToReset:()=>[Oe]})),Vi=[jn(()=>({key:"c",description:"reset for lollipops or whatever",onPress(){mt.canClick.value&&mt.onClick()}})),jn(()=>({key:"ctrl+c",description:"respec things",onPress(){Ot.onClick()}}))],Xe=Si(()=>({layerID:on,color:e,reset:Mn,mark:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",tooltip(){let H=Le(n);return f.gt(te.amount.value,0)&&(H+=`



${ve(te.amount.value)} Exhancers
`),H},style:{color:"#3325CC",textDecoration:"underline"}}));un(Xe,{display:wi(n),pinnable:!0});const mt=Ni(()=>({conversion:pt,tree:Y.tree,treeNode:Xe,style:{color:"#AA66AA"},resetDescription:"Melt your points into "}));un(mt,{display:j(()=>Al("Modifiers","",pt.gainModifier,pt.scaling.currentGain(pt))),pinnable:!0,direction:X.Down,style:"width: 400px; text-align: left"});const Et=yt(()=>({display:"TH",color:"#6d3678",canClick(){return f.gte(Y.points.value,10)},tooltip:"Thanos your points",onClick(){Y.points.value=f.div(Y.points.value,2),console.log("Thanos'd")},glowColor(){return f.eq(te.amount.value,1)?"orange":""}})),Vt=yt(()=>({display:"h",color(){return ze[Z.theme].variables["--locked"]},tooltip:{display:N(()=>`Restore your points to ${se(o.value)}`),right:!0},canClick(){return f.lt(Y.points.value,o.value)},onClick(){Y.points.value=o.value}})),Tn=yt(()=>({visibility:B.Hidden})),In=ki(()=>({nodes(){return[[Fe.treeNode,Xe],[Et,Tn,Vt]]},branches(){return[{startNode:Fe.treeNode,endNode:Xe,"stroke-width":"25px",stroke:"green",style:{filter:"blur(5px)"}},{startNode:Xe,endNode:Et},{startNode:Et,endNode:Vt}]}})),Fi=eu(()=>({links:[{startNode:Vt,endNode:At,"stroke-width":"5px",stroke:"red",offsetEnd:{x:-50+100*At.progress.value.toNumber(),y:0}}]})),Di=zn({first:()=>({tab:j(()=>d(K,null,[Pe(...be),Pe(U),d("div",null,[C("confirmed")])])),display:"first"}),second:()=>({tab:Fe.display,display:"second"})},()=>({style:{width:"660px",backgroundColor:"brown","--background":"brown",border:"solid white",marginLeft:"auto",marginRight:"auto"}})),Pn=zn({mainTab:()=>({tab:Rt(()=>({display:j(()=>{let H;return d(K,null,[d(Pi,{resource:n,color:e,effectDisplay:`which are boosting waffles by ${se(u.value)} and increasing the Ice Cream cap by ${se(c.value)}`},null),d(Wt,null,ku(H=oe(mt))?H:{default:()=>[H]}),d(Ii,{resource:n,color:e},null),d(ye,{height:"5px"},null),d("button",{onClick:()=>console.log("yeet")},[C("'HI'")]),d("div",null,[C("Name your points!")]),d(_n,{modelValue:a.value,"onUpdate:modelValue":On=>a.value=On},null),d(Wt,{style:"color: red; font-size: 32px; font-family: Comic Sans MS;"},{default:()=>[C("I have "),Le(Y.points),C(" "),a.value,C(" points!")]}),d("hr",null,null),ra(...w),d(ye,null,null),Pe(...be),Pe(U),Pe(S)])})})),display:"main tab",glowColor(){return R.canPurchase.value||ke.canPurchase.value||I.canPurchase.value||S.canComplete.value?"blue":""},style:{color:"orange"}}),thingies:()=>({tab:Rt(()=>({style(){return{backgroundColor:"#222222","--background":"#222222"}},display:j(()=>d(K,null,[oe(Ei),d(ye,null,null),d(bt,{style:"width: 600px; height: 350px; background-color: green; border-style: solid;"},{default:()=>[d(we,{"onUpdate:modelValue":H=>r.value=H,modelValue:r.value},null),d(ye,{width:"30px",height:"10px"},null),d("div",null,[d("span",null,[C("Beep")])]),d(ye,null,null),d(ql,{height:"200px"},null)]}),d(ye,null,null),d("img",{src:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png"},null)]))})),glowColor:"white",display:"thingies",style:{borderColor:"orange"}}),jail:()=>({tab:Rt(()=>({display:j(()=>d(K,null,[oe(h),oe(Cn),d(ye,null,null),d(bt,null,{default:()=>[d(jt,{style:"background-color: #555555; padding: 15px"},{default:()=>[d("div",{style:"color: teal"},[C("Sugar level:")]),d(ye,null,null),oe($n)]}),d(ye,null,null),d(jt,null,{default:()=>[d("div",null,[C("idk")]),d(ye,{width:"0",height:"50px"},null),oe(At)]})]}),d(ye,null,null),d("div",null,[C(`It's jail because "bars"! So funny! Ha ha!`)]),oe(In)]))})),display:"jail"}),illuminati:()=>({tab:Rt(()=>({display:j(()=>d("div",null,[d("h1",null,[C(" C O N F I R M E D ")]),d(ye,null,null),oe(Di),d("div",null,[C("Adjust how many points H gives you!")]),d(Rl,{"onUpdate:modelValue":H=>o.value=H,modelValue:o.value,min:1,max:30},null)])),style:{backgroundColor:"#3325CC"}})),visibility(){return gt(I.bought.value)},display:"illuminati"})});return{id:on,color:e,name:t,points:n,best:i,beep:r,thingy:a,otherThingy:o,spentOnBuyables:s,waffleBoost:u,icecreamCap:c,coolInfo:h,lollipopMilestones:w,funChallenge:S,funEffect:$,generatorUpgrade:R,lollipopMultiplierUpgrade:ke,lollipopMultiplierEffect:M,unlockIlluminatiUpgrade:I,quasiUpgrade:U,exhancers:te,respecBuyables:Ot,sellExhancer:Sn,bars:{tallBoi:$n,longBoi:Cn,flatBoi:At},tree:In,g:Et,h:Vt,spook:Tn,conversion:pt,reset:Mn,hotkeys:Vi,treeNode:Xe,resetButton:mt,confirmRespec:at,minWidth:800,tabs:Pn,display:j(()=>d(K,null,[oe(Pn),oe(Fi)]))}}),wu={min:.5,max:1},xu=[{s:0,cp:.329,e:.548},{s:.548,cp:.767,e:.876},{s:.876,cp:.985,e:1}],Nu=.001,Su=.1,Cu=100,$u=!0,Mu={x:0,y:0},Tu=!1,Iu=[{type:"alpha",config:{alpha:{list:[{time:0,value:.74},{time:1,value:0}]}}},{type:"moveSpeed",config:{speed:{list:[{time:0,value:300},{time:1,value:0}]},minMult:1}},{type:"scale",config:{scale:{list:[{time:0,value:1},{time:1,value:.25}]},minMult:1}},{type:"color",config:{color:{list:[{time:0,value:"#ffdfa0"},{time:1,value:"#100f0c"}]}}},{type:"rotation",config:{accel:0,minSpeed:0,maxSpeed:200,minStart:0,maxStart:360}},{type:"textureRandom",config:{textures:["/particle.png"]}},{type:"spawnShape",config:{type:"rect",data:{x:0,y:0,w:0,h:0}}}];var Pu={lifetime:wu,ease:xu,frequency:Nu,emitterLifetime:Su,maxParticles:Cu,addAtBack:$u,pos:Mu,emit:Tu,behaviors:Iu};const sn="f",Fe=It(sn,()=>{const e="#FE0102",t="Farms",n=Ct(0,"farm points"),i=le(!1),r=Mi(()=>({title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"}})),a=le("Start"),o=$t(()=>({display(){return{title:"Clicky clicky!",description:"Current state:
"+a.value}},initialState:"Start",canClick(){return a.value!=="Borkened..."},onClick(S){var $,R,ke,M,I,U,be,te;switch(a.value){case"Start":a.value="A new state!";break;case"A new state!":a.value="Keep going!";break;case"Keep going!":a.value="Maybe that's a bit too far...";break;case"Maybe that's a bit too far...":const He=S==null?void 0:"touches"in S?S.touches[0]:S,en=Object.assign({},Pu,{pos:{x:(($=He==null?void 0:He.clientX)!=null?$:0)-((M=(ke=(R=b.boundingRect)==null?void 0:R.value)==null?void 0:ke.left)!=null?M:0),y:((I=He==null?void 0:He.clientY)!=null?I:0)-((te=(be=(U=b.boundingRect)==null?void 0:U.value)==null?void 0:be.top)!=null?te:0)}});b.addEmitter(en).then(at=>at.playOnceAndDestroy()),a.value="Borkened...";break;default:a.value="Start";break}},onHold(){console.log("Clickkkkk...")},style(){switch(a.value){case"Start":return{"background-color":"green"};case"A new state!":return{"background-color":"yellow"};case"Keep going!":return{"background-color":"orange"};case"Maybe that's a bit too far...":return{"background-color":"red"};default:return{}}}})),s=$t(()=>({onClick(){a.value=="Borkened..."&&(a.value="Start")},display(){return a.value=="Borkened..."?"Fix the clickable!":"Does nothing"},small:!0})),u=Ti(()=>({thingsToReset:()=>[Fe]})),c=ul(()=>({scaling:$i(10,.5),baseResource:Y.points,gainResource:n,modifyGainAmount:Il(Oe.otherThingy)})),h=Si(()=>({layerID:sn,color:e,reset:u,tooltip(){return h.canClick.value?`${Le(n)} ${n.displayName}`:`This weird farmer dinosaur will only see you if you have at least 10 points. You only have ${Le(Y.points)}`},canClick(){return f.gte(Y.points.value,10)}}));un(h,{display:wi(n),pinnable:!0});const v=Ni(()=>({conversion:c,tree:Y.tree,treeNode:h,display:j(()=>v.conversion.buyMax?d("span",null,[C("Hi! I'm a "),d("u",null,[C("weird dinosaur")]),C(" and I'll give you")," ",d("b",null,[ve(v.conversion.currentGain.value)]),C(" Farm Points in exchange for all of your points and lollipops! (You'll get another one at")," ",ve(v.conversion.nextAt.value),C(" points)")]):d("span",null,[C("Hi! I'm a "),d("u",null,[C("weird dinosaur")]),C(" and I'll give you a Farm Point in exchange for all of your points and lollipops! (At least")," ",ve(v.conversion.nextAt.value),C(" points)")]))})),b=wl(()=>({boundingRect:O(null),onContainerResized(S){this.boundingRect.value=S},style:"z-index: 2"})),w=j(()=>d(K,null,[oe(r),d(Pi,{resource:n,color:e},null),oe(v),d("div",null,[C("You have "),ve(c.baseResource.value),C(" points")]),d("div",null,[d("br",null,null),d("img",{src:"https://images.beano.com/store/24ab3094eb95e5373bca1ccd6f330d4406db8d1f517fc4170b32e146f80d?auto=compress%2Cformat&dpr=1&w=390"},null),d("div",null,[C("Bork Bork!")])]),d(ye,null,null),Pe(s),Pe(o),oe(b)]));return{id:sn,color:e,name:t,points:n,boop:i,coolInfo:r,clickable:o,clickableState:a,reset:u,conversion:c,treeNode:h,resetButton:v,minWidth:650,display:w}});function ln(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!cn(e)}const Gn="a",dn=It(Gn,()=>{const e="yellow",t="Achievements",n=Ct(0,"achievement power"),i=yt(()=>({display:"A",color:e,tooltip:{display:"Achievements",right:!0},onClick(){Y.showAchievements()}})),r=rn(()=>({image:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",display:"Get me!",tooltip:N(()=>r.earned.value?"You did it!":"How did this happen?"),shouldEarn:()=>!0})),a=rn(()=>({display:"Impossible!",tooltip:N(()=>a.earned.value?"HOW????":"Mwahahaha!"),style:{color:"#04e050"}})),o=rn(()=>({display:"EIEIO",tooltip:`Get a farm point. +Trying to pop ${n.id}`;return Ee.pop(),y(n,"color"),y(n,"display"),y(n,"name"),z(n,"name",n.id),y(n,"minWidth"),z(n,"minWidth",600),y(n,"minimizable"),z(n,"minimizable",!0),n})}function fi(e,t){if(console.info("Adding layer",e.id),_e[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,_e[e.id]);return}z(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),_e[e.id]=e,ge.emit("addLayer",e,t.layers[e.id])}function ha(e){return _e[e]}function pi(e){console.info("Removing layer",e.id),ge.emit("removeLayer",e),_e[e.id]=void 0}function ba(e){pi(e),fi(e,T)}function mi(e){const t=O(!1);return{openModal:()=>t.value=!0,modal:L(()=>d(Je,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>d("h2",null,[l(e.name)]),body:l(e.display)}))}}ge.on("update",function(t){Object.values(_e).forEach(n=>{n==null||n.emit("preUpdate",t)}),Object.values(_e).forEach(n=>{n==null||n.emit("update",t)}),Object.values(_e).forEach(n=>{n==null||n.emit("postUpdate",t)})});var ya=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:gn,UnregisterNodeInjectionKey:vn,NodesInjectionKey:hn,BoundsInjectionKey:bn,layers:_e,persistentRefs:dt,addingLayers:Ee,createLayer:It,addLayer:fi,getLayer:ha,removeLayer:pi,reloadLayer:ba,setupLayerModal:mi},Symbol.toStringTag,{value:"Module"}));const _a=E({components:{Context:di},props:{index:{type:Number,required:!0},tab:{type:Function,required:!0},display:{type:k(Object,String,Function),required:!0},minimized:{type:Object,required:!0},minWidth:{type:k(Number,String),required:!0},name:{type:k(String),required:!0},color:k(String),minimizable:k(Boolean),nodes:{type:Object,required:!0}},setup(e){const{display:t,index:n,minimized:i,minWidth:r,tab:a}=ne(e),o=ct(t),s=N(()=>J.allowGoBack&&n.value>0&&!i.value);function u(){T.tabs.splice(l(e.index),1/0)}Ve(()=>h(i.value,l(r.value))),Ie([i,aa(r)],([v,b])=>h(v,b));function c(v){e.nodes.value=v}function h(v,b){const w=typeof b=="number"||Number.isNaN(parseInt(b))?b+"px":b,S=a.value();S!=null&&(v?(S.style.flexGrow="0",S.style.flexShrink="0",S.style.width="60px",S.style.minWidth=S.style.flexBasis="",S.style.margin="0"):(S.style.flexGrow="",S.style.flexShrink="",S.style.width="",S.style.minWidth=S.style.flexBasis=w,S.style.margin=""))}return{component:o,showGoBack:s,updateNodes:c,unref:l,goBack:u}}});function ka(e,t,n,i,r,a){const o=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,U(e.unref(e.name)),1)])):(g(),x("div",{key:2,class:Q(["layer-tab",{showGoBack:e.showGoBack}])},[d(o,{onUpdateNodes:e.updateNodes},{default:V(()=>[(g(),A(ee(e.component)))]),_:1},8,["onUpdateNodes"])],2)),e.unref(e.minimizable)?(g(),x("button",{key:3,class:"minimize",onClick:t[2]||(t[2]=s=>e.minimized.value=!0)}," \u25BC ")):P("",!0)],4)}var wa=q(_a,[["render",ka],["__scopeId","data-v-34c9d881"]]);const gi=e=>(qe("data-v-4b4bda40"),e=e(),Le(),e),xa=gi(()=>p("h2",null,"Changelog",-1)),Na=gi(()=>p("details",{open:""},[p("summary",null,[C("v0.0 Initial Commit - "),p("time",null,"2021-09-04")]),C(" This is the first release :D "),p("ul",null,[p("li",{class:"feature"},"Did everything"),p("li",{class:"fix"},"Had some fun"),p("li",{class:"breaking"},"Removed everything"),p("li",{class:"balancing"},"Created some bugs to fix later")])],-1)),Sa=E({__name:"Changelog",setup(e,{expose:t}){const n=O(!1);return t({open(){n.value=!0}}),(i,r)=>(g(),A(Je,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=a=>n.value=a)},{header:V(()=>[xa]),body:V(()=>[Na]),_:1},8,["modelValue"]))}});var Ca=q(Sa,[["__scopeId","data-v-4b4bda40"]]),$a=E({props:{element:Object,display:{type:k(Object,String,Function),required:!0},style:k(Object,String,Array),classes:k(Object),direction:k(String),xoffset:k(String),yoffset:k(String),pinned:Object},setup(e){const{element:t,display:n,pinned:i}=ne(e),r=O(!1),a=N(()=>(ae(i)||r.value)&&o.value),o=it(n),s=xe(D(L(()=>{const h=ae(t);return h==null?"":Re(h)})));function u(h){const v=i;h.shiftKey&&v&&(v.value=!v.value,h.stopPropagation(),h.preventDefault())}const c=N(()=>ae(i)&&ze[Z.theme].showPin);return{Direction:X,isHovered:r,isShown:a,comp:o,elementComp:s,unref:l,togglePinned:u,showPin:c}}});const Ma={key:0,class:"material-icons pinned"};function Ta(e,t,n,i,r,a){return g(),x("div",{class:Q(["tooltip-container",{shown:e.isShown}]),onMouseenter:t[0]||(t[0]=o=>e.isHovered=!0),onMouseleave:t[1]||(t[1]=o=>e.isHovered=!1),onClickCapture:t[2]||(t[2]=(...o)=>e.togglePinned&&e.togglePinned(...o))},[De(e.$slots,"default",{},void 0,!0),e.elementComp?(g(),A(ee(e.elementComp),{key:0})):P("",!0),d(Zt,{name:"fade"},{default:V(()=>{var o;return[e.isShown?(g(),x("div",{key:0,class:Q(["tooltip",{top:e.unref(e.direction)===e.Direction.Up,left:e.unref(e.direction)===e.Direction.Left,right:e.unref(e.direction)===e.Direction.Right,bottom:e.unref(e.direction)===e.Direction.Down,...e.unref(e.classes)}]),style:W([{"--xoffset":e.unref(e.xoffset)||"0px","--yoffset":e.unref(e.yoffset)||"0px"},(o=e.unref(e.style))!=null?o:{}])},[e.showPin?(g(),x("span",Ma,"push_pin")):P("",!0),e.comp?(g(),A(ee(e.comp),{key:1})):P("",!0)],6)):P("",!0)]}),_:1})],34)}var re=q($a,[["render",Ta],["__scopeId","data-v-6102fa3a"]]);const rt=e=>(qe("data-v-7dec2dec"),e=e(),Le(),e),Ia={class:"info-modal-header"},Pa=["src","alt"],Oa={class:"info-modal-title"},Aa={key:0},Ea={key:0},Va={key:0},Fa=rt(()=>p("div",null," Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb ",-1)),Da=rt(()=>p("br",null,null,-1)),Ra=rt(()=>p("br",null,null,-1)),Ba=["href"],qa=rt(()=>p("span",{class:"material-icons info-modal-discord"},"discord",-1)),La=rt(()=>p("div",null,[p("a",{href:"https://discord.gg/WzejVAx",class:"info-modal-discord-link"},[p("span",{class:"material-icons info-modal-discord"},"discord"),C(" The Paper Pilot Community ")])],-1)),ja=rt(()=>p("div",null,[p("a",{href:"https://discord.gg/F3xveHV",class:"info-modal-discord-link"},[p("span",{class:"material-icons info-modal-discord"},"discord"),C(" The Modding Tree ")])],-1)),za=rt(()=>p("br",null,null,-1));var Ua=E({__name:"Info",props:{changelog:null},setup(e,{expose:t}){const n=e,{title:i,logo:r,author:a,discordName:o,discordLink:s,versionNumber:u,versionTitle:c}=J,h=ne(n),v=O(!1),b=N(()=>Jt(T.timePlayed)),w=N(()=>D(L(()=>d(K,null,[li.map(oe)]))));t({open(){v.value=!0}});function S(){var $;($=l(h.changelog))==null||$.open()}return($,R)=>(g(),A(Je,{modelValue:v.value,"onUpdate:modelValue":R[0]||(R[0]=ke=>v.value=ke)},{header:V(()=>[p("div",Ia,[l(r)?(g(),x("img",{key:0,class:"info-modal-logo",src:l(r),alt:l(i)},null,8,Pa)):P("",!0),p("div",Oa,[p("h2",null,U(l(i)),1),p("h4",null,[C(" v"+U(l(u)),1),l(c)?(g(),x("span",Aa,": "+U(l(c)),1)):P("",!0)])])])]),body:V(({shown:ke})=>[ke?(g(),x("div",Ea,[l(a)?(g(),x("div",Va,"By "+U(l(a)),1)):P("",!0),Fa,Da,p("div",{class:"link",onClick:S},"Changelog"),Ra,p("div",null,[l(s)?(g(),x("a",{key:0,href:l(s),class:"info-modal-discord-link"},[qa,C(" "+U(l(o)),1)],8,Ba)):P("",!0)]),La,ja,za,p("div",null,"Time Played: "+U(l(b)),1),(g(),A(ee(l(w))))])):P("",!0)]),_:1},8,["modelValue"]))}});var Ga=q(Ua,[["__scopeId","data-v-7dec2dec"]]);const Ha={class:"field"},Wa={key:0,class:"field-title"},yn=E({__name:"Select",props:{title:null,modelValue:null,options:null,placeholder:null,closeOnSelect:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){var o;const n=e,i=it(Ze(n,"title"),"span"),r=O((o=n.options.find(s=>s.value===n.modelValue))!=null?o:null);Ie(Ze(n,"modelValue"),s=>{var u;ae(r)!==s&&(r.value=(u=n.options.find(c=>c.value===s))!=null?u:null)});function a(s){t("update:modelValue",s.value)}return(s,u)=>(g(),x("div",Ha,[l(i)?(g(),x("span",Wa,[(g(),A(ee(l(i))))])):P("",!0),d(l(Wi),{options:e.options,modelValue:r.value,"onUpdate:modelValue":[u[0]||(u[0]=c=>r.value=c),a],min:1,"label-by":"label",placeholder:e.placeholder,"close-on-select":e.closeOnSelect},null,8,["options","modelValue","placeholder","close-on-select"])]))}});const Ya={class:"field"},Ka=E({__name:"Toggle",props:{title:null,modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=N(()=>D(l(n.title)||"","span")),r=N({get(){return!!n.modelValue},set(a){t("update:modelValue",a)}});return(a,o)=>(g(),x("label",Ya,[Kt(p("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":o[0]||(o[0]=s=>fe(r)?r.value=s:null)},null,512),[[Li,l(r)]]),(g(),A(ee(l(i))))]))}});var we=q(Ka,[["__scopeId","data-v-2b109500"]]);const vi=e=>(qe("data-v-bc13791c"),e=e(),Le(),e),Za=vi(()=>p("div",{class:"header"},[p("h2",null,"Options")],-1)),Ja=vi(()=>p("hr",null,null,-1));var Xa=E({__name:"Options",setup(e,{expose:t}){const n=O(!1);t({open(){n.value=!0}});const i=Object.keys(ze).map(S=>({label:ei(S),value:S})),r=N(()=>D(L(()=>d(K,null,[oi.map(oe)])))),{showTPS:a,theme:o,unthrottled:s}=ne(Z),{autosave:u,offlineProd:c}=ne(T),h=N({get(){return T.devSpeed===0},set(S){T.devSpeed=S?0:null}}),v=L(()=>d("span",null,[C("Offline Production"),d(re,{display:"Save-specific"},{default:()=>[C("*")]})])),b=L(()=>d("span",null,[C("Autosave"),d(re,{display:"Save-specific"},{default:()=>[C("*")]})])),w=L(()=>d("span",null,[C("Pause game"),d(re,{display:"Save-specific"},{default:()=>[C("*")]})]));return(S,$)=>(g(),A(Je,{modelValue:n.value,"onUpdate:modelValue":$[6]||($[6]=R=>n.value=R)},{header:V(()=>[Za]),body:V(()=>[d(yn,{title:"Theme",options:l(i),modelValue:l(o),"onUpdate:modelValue":$[0]||($[0]=R=>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 Ue=e=>(qe("data-v-0136bef4"),e=e(),Le(),e),go=Ue(()=>p("div",{class:"handle material-icons"},"drag_handle",-1)),vo={key:0,class:"actions"},ho=Ue(()=>p("span",{class:"material-icons"},"content_paste",-1)),bo=Ue(()=>p("span",{class:"material-icons"},"content_copy",-1)),yo=Ue(()=>p("span",{class:"material-icons"},"edit",-1)),_o=Ue(()=>p("span",{class:"material-icons",style:{margin:"-2px"}},"delete",-1)),ko={key:1,class:"actions"},wo=Ue(()=>p("span",{class:"material-icons"},"check",-1)),xo=Ue(()=>p("span",{class:"material-icons"},"close",-1)),No={key:2,class:"details"},So={class:"save-version"},Co=Ue(()=>p("br",null,null,-1)),$o={key:0},Mo={key:3,class:"details"},To={key:4,class:"details error"},Io=Ue(()=>p("br",null,null,-1)),Po=E({__name:"Save",props:{save:null},emits:["export","open","duplicate","delete","editName"],setup(e,{emit:t}){const n=e,{save:i}=ne(n),r=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),a=O(!1),o=O(!1),s=O("");Ie(a,()=>s.value=i.value.name||"");const u=N(()=>i.value&&i.value.id===T.id),c=N(()=>u.value?T.time:i.value&&i.value.time||0);function h(){t("editName",s.value),a.value=!1}return(v,b)=>(g(),x("div",{class:Q(["save",{active:l(u)}])},[go,a.value?(g(),x("div",ko,[p("button",{onClick:h,class:"button"},[d(re,{display:"Save",direction:l(X).Left,class:"info"},{default:V(()=>[wo]),_:1},8,["direction"])]),p("button",{onClick:b[5]||(b[5]=w=>a.value=!a.value),class:"button"},[d(re,{display:"Cancel",direction:l(X).Left,class:"info"},{default:V(()=>[xo]),_:1},8,["direction"])])])):(g(),x("div",vo,[l(i).error==null&&!o.value?(g(),A(mo,{key:0,onClick:b[0]||(b[0]=w=>t("export")),class:"button",left:""},{default:V(()=>[d(re,{display:"Export",direction:l(X).Left,class:"info"},{default:V(()=>[ho]),_:1},8,["direction"])]),_:1})):P("",!0),l(i).error==null&&!o.value?(g(),x("button",{key:1,onClick:b[1]||(b[1]=w=>t("duplicate")),class:"button"},[d(re,{display:"Duplicate",direction:l(X).Left,class:"info"},{default:V(()=>[bo]),_:1},8,["direction"])])):P("",!0),l(i).error==null&&!o.value?(g(),x("button",{key:2,onClick:b[2]||(b[2]=w=>a.value=!a.value),class:"button"},[d(re,{display:"Edit Name",direction:l(X).Left,class:"info"},{default:V(()=>[yo]),_:1},8,["direction"])])):P("",!0),d(co,{disabled:l(u),onClick:b[3]||(b[3]=w=>t("delete")),onConfirmingChanged:b[4]||(b[4]=w=>o.value=w)},{default:V(()=>[d(re,{display:"Delete",direction:l(X).Left,class:"info"},{default:V(()=>[_o]),_:1},8,["direction"])]),_:1},8,["disabled"])])),l(i).error==null&&!a.value?(g(),x("div",No,[p("button",{class:"button open",onClick:b[6]||(b[6]=w=>t("open"))},[p("h3",null,U(l(i).name),1)]),p("span",So,"v"+U(l(i).modVersion),1),Co,l(c)?(g(),x("div",$o,"Last played "+U(l(r).format(l(c))),1)):P("",!0)])):l(i).error==null&&a.value?(g(),x("div",Mo,[d(_n,{modelValue:s.value,"onUpdate:modelValue":b[7]||(b[7]=w=>s.value=w),class:"editname",onSubmit:h},null,8,["modelValue"])])):(g(),x("div",To,[C(" Error: Failed to load save with id "+U(l(i).id),1),Io,C(U(l(i).error),1)]))],2))}});var Oo=q(Po,[["__scopeId","data-v-0136bef4"]]);const kn=e=>(qe("data-v-3b9991aa"),e=e(),Le(),e),Ao=kn(()=>p("h2",null,"Saves Manager",-1)),Eo={class:"modal-footer"},Vo={class:"field"},Fo=kn(()=>p("span",{class:"field-title"},"Create Save",-1)),Do={class:"field-buttons"},Ro={class:"footer"},Bo=kn(()=>p("div",{style:{"flex-grow":"1"}},null,-1)),qo=E({__name:"SavesManager",setup(e,{expose:t}){const n=O(!1),i=O(null);t({open(){n.value=!0}});const r=O(!1),a=O(""),o=O(null);Ie(a,M=>{M?Ve(()=>{try{if(M[0]!=="{")if(M[0]==="e")M=decodeURIComponent(escape(atob(M)));else if(M[0]==="\u1BE1")M=Ye.decompressFromUTF16(M);else{console.warn("Unable to determine preset encoding",M),r.value=!0;return}const I=JSON.parse(M);if(typeof I!="object"){r.value=!0;return}const G=qt();I.id=G,Ae(I),a.value="",r.value=!1,Z.saves.push(G)}catch{r.value=!0}}):r.value=!1});let s={},u=O(Object.keys(s).reduce((M,I)=>(M.push({label:I.split("/").slice(-1)[0].slice(0,-4),value:s[I]}),M),[]));const c=Yt({});function h(M){if(c[M]==null){let I=localStorage.getItem(M);if(I==null)c[M]={error:"Save doesn't exist in localStorage",id:M};else if(I==="dW5kZWZpbmVk")c[M]={error:"Save is undefined",id:M};else try{if(I[0]!=="{")if(I[0]==="e")I=decodeURIComponent(escape(atob(I)));else if(I[0]==="\u1BE1")I=Ye.decompressFromUTF16(I);else return console.warn("Unable to determine preset encoding",I),r.value=!0,c[M]={error:"Unable to determine preset encoding",id:M},c[M];c[M]={...JSON.parse(I),id:M}}catch(G){c[M]={error:G,id:M},console.warn(`SavesManager: Failed to load info about save with id ${M}: +${G} +${I}`)}}return c[M]}Ie(n,M=>{M&&Object.keys(c).forEach(I=>delete c[I])});const v=N(()=>Z.saves.reduce((M,I)=>(M[I]=h(I),M),{}));function b(M){let I;switch(T.id===M?I=ii(T[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 G=document.createElement("textarea");G.value=I,document.body.appendChild(G),G.select(),G.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(G)}function w(M){T.id===M&&Ae();const I={...v.value[M],id:qt()};Ae(I),Z.saves.push(I.id)}function S(M){Z.saves=Z.saves.filter(I=>I!==M),localStorage.removeItem(M),c[M]=void 0}function $(M){v.value[T.id].time=T.time,Ae(),c[T.id]=void 0,nt(v.value[M]),c[M]=void 0}function R(M){if(o.value=M,Ve(()=>{o.value=null}),M[0]!=="{")if(M[0]==="e")M=decodeURIComponent(escape(atob(M)));else if(M[0]==="\u1BE1")M=Ye.decompressFromUTF16(M);else{console.warn("Unable to determine preset encoding",M);return}const I=JSON.parse(M);I.id=qt(),Ae(I),Z.saves.push(I.id),$(I.id)}function ke(M,I){const G=v.value[M];G&&(G.name=I,T.id===M?(T.name=I,Ae()):(Ae(G),c[M]=void 0))}return(M,I)=>(g(),A(Je,{modelValue:n.value,"onUpdate:modelValue":I[4]||(I[4]=G=>n.value=G),ref_key:"modal",ref:i},{header:V(()=>[Ao]),body:V(({shown:G})=>[G?(g(),A(l(Yi),{key:0,list:l(Z).saves,handle:".handle",itemKey:be=>be},{item:V(({element:be})=>[d(Oo,{save:l(v)[be],onOpen:te=>$(be),onExport:te=>b(be),onEditName:te=>ke(be,te),onDuplicate:te=>w(be),onDelete:te=>S(be)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):P("",!0)]),footer:V(()=>[p("div",Eo,[d(_n,{modelValue:a.value,"onUpdate:modelValue":I[0]||(I[0]=G=>a.value=G),title:"Import Save",placeholder:"Paste your save here!",class:Q({importingFailed:r.value})},null,8,["modelValue","class"]),p("div",Vo,[Fo,p("div",Do,[p("button",{class:"button",onClick:I[1]||(I[1]=G=>$(l(ut)().id))},"New Game"),Object.keys(l(u)).length>0?(g(),A(yn,{key:0,options:l(u),modelValue:o.value,"onUpdate:modelValue":I[2]||(I[2]=G=>R(G)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):P("",!0)])]),p("div",Ro,[Bo,p("button",{class:"button modal-default-button",onClick:I[3]||(I[3]=G=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var hi=q(qo,[["__scopeId","data-v-3b9991aa"]]);const Se=e=>(qe("data-v-4a3f8425"),e=e(),Le(),e),Lo=["src","alt"],jo={key:1,class:"title"},zo=Se(()=>p("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Uo={class:"discord"},Go={class:"discord-links"},Ho={key:0},Wo=["href"],Yo=Se(()=>p("li",null,[p("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Ko=Se(()=>p("li",null,[p("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Zo={href:"https://forums.moddingtree.com/",target:"_blank"},Jo=Se(()=>p("span",{class:"material-icons"},"forum",-1)),Xo=Se(()=>p("span",{class:"material-icons"},"info",-1)),Qo=Se(()=>p("span",{class:"material-icons"},"library_books",-1)),es=Se(()=>p("span",{class:"material-icons"},"settings",-1)),ts=Se(()=>p("span",{class:"material-icons"},"library_books",-1)),ns=Se(()=>p("span",{class:"material-icons"},"settings",-1)),is=Se(()=>p("span",{class:"material-icons"},"info",-1)),rs={href:"https://forums.moddingtree.com/",target:"_blank"},as=Se(()=>p("span",{class:"material-icons"},"forum",-1)),os={class:"discord"},ss={class:"discord-links"},ls={key:0},us=["href"],ds=Se(()=>p("li",null,[p("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),cs=Se(()=>p("li",null,[p("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),fs=E({__name:"Nav",setup(e){const t=O(null),n=O(null),i=O(null),r=O(null),{useHeader:a,banner:o,title:s,discordName:u,discordLink:c,versionNumber:h}=J;function v(){window.open(c,"mywindow")}return(b,w)=>(g(),x(K,null,[l(a)?(g(),x("div",Be({key:0,class:"nav"},b.$attrs),[l(o)?(g(),x("img",{key:0,src:l(o),class:"banner",alt:l(s)},null,8,Lo)):(g(),x("div",jo,U(l(s)),1)),p("div",{onClick:w[0]||(w[0]=S=>{var $;return($=r.value)==null?void 0:$.open()}),class:"version-container"},[d(re,{display:"Changelog",direction:l(X).Down,class:"version"},{default:V(()=>[p("span",null,"v"+U(l(h)),1)]),_:1},8,["direction"])]),zo,p("div",Uo,[p("span",{onClick:v,class:"material-icons"},"discord"),p("ul",Go,[l(c)?(g(),x("li",Ho,[p("a",{href:l(c),target:"_blank"},U(l(u)),9,Wo)])):P("",!0),Yo,Ko])]),p("div",null,[p("a",Zo,[d(re,{display:"Forums",direction:l(X).Down,yoffset:"5px"},{default:V(()=>[Jo]),_:1},8,["direction"])])]),p("div",{onClick:w[1]||(w[1]=S=>{var $;return($=t.value)==null?void 0:$.open()})},[d(re,{display:"Info",direction:l(X).Down,class:"info"},{default:V(()=>[Xo]),_:1},8,["direction"])]),p("div",{onClick:w[2]||(w[2]=S=>{var $;return($=n.value)==null?void 0:$.open()})},[d(re,{display:"Saves",direction:l(X).Down,xoffset:"-20px"},{default:V(()=>[Qo]),_:1},8,["direction"])]),p("div",{onClick:w[3]||(w[3]=S=>{var $;return($=i.value)==null?void 0:$.open()})},[d(re,{display:"Options",direction:l(X).Down,xoffset:"-66px"},{default:V(()=>[es]),_:1},8,["direction"])])],16)):(g(),x("div",Be({key:1,class:"overlay-nav"},b.$attrs),[p("div",{onClick:w[4]||(w[4]=S=>{var $;return($=r.value)==null?void 0:$.open()}),class:"version-container"},[d(re,{display:"Changelog",direction:l(X).Right,xoffset:"25%",class:"version"},{default:V(()=>[p("span",null,"v"+U(l(h)),1)]),_:1},8,["direction"])]),p("div",{onClick:w[5]||(w[5]=S=>{var $;return($=n.value)==null?void 0:$.open()})},[d(re,{display:"Saves",direction:l(X).Right},{default:V(()=>[ts]),_:1},8,["direction"])]),p("div",{onClick:w[6]||(w[6]=S=>{var $;return($=i.value)==null?void 0:$.open()})},[d(re,{display:"Options",direction:l(X).Right},{default:V(()=>[ns]),_:1},8,["direction"])]),p("div",{onClick:w[7]||(w[7]=S=>{var $;return($=t.value)==null?void 0:$.open()})},[d(re,{display:"Info",direction:l(X).Right},{default:V(()=>[is]),_:1},8,["direction"])]),p("div",null,[p("a",rs,[d(re,{display:"Forums",direction:l(X).Right,xoffset:"7px"},{default:V(()=>[as]),_:1},8,["direction"])])]),p("div",os,[p("span",{onClick:v,class:"material-icons"},"discord"),p("ul",ss,[l(c)?(g(),x("li",ls,[p("a",{href:l(c),target:"_blank"},U(l(u)),9,us)])):P("",!0),ds,cs])])],16)),d(Ga,{ref_key:"info",ref:t,changelog:r.value},null,8,["changelog"]),d(hi,{ref_key:"savesManager",ref:n},null,512),d(Qa,{ref_key:"options",ref:i},null,512),d(Ca,{ref_key:"changelog",ref:r},null,512)],64))}});var bi=q(fs,[["__scopeId","data-v-4a3f8425"]]);const ps={class:"inner-tab"},ms=E({__name:"Game",setup(e){const t=Ze(T,"tabs"),n=N(()=>Object.keys(_e)),i=J.useHeader;function r(a){const{display:o,minimized:s,minWidth:u,name:c,color:h,minimizable:v,nodes:b}=a;return{display:o,minimized:s,minWidth:u,name:c,color:h,minimizable:v,nodes:b}}return(a,o)=>(g(),x("div",{class:Q(["tabs-container",{useHeader:l(i)}])},[(g(!0),x(K,null,kt(l(t),(s,u)=>{var c,h;return g(),x("div",{key:u,class:Q(["tab",l((c=l(_e)[s])==null?void 0:c.classes)]),ref_for:!0,ref:`tab-${u}`,style:W(l((h=l(_e)[s])==null?void 0:h.style))},[u===0&&!l(i)?(g(),A(bi,{key:0})):P("",!0),p("div",ps,[l(n).includes(s)?(g(),A(wa,Be({key:0},r(l(_e)[s]),{index:u,tab:()=>{var v;return(v=a.$refs[`tab-${u}`])==null?void 0:v[0]}}),null,16,["index","tab"])):(g(),A(ee(s),{key:1,index:u},null,8,["index"]))])],6)}),128))],2))}});var gs=q(ms,[["__scopeId","data-v-4cb9ce0f"]]);const vs={},hs=e=>(qe("data-v-89b4b00a"),e=e(),Le(),e),bs=hs(()=>p("svg",{id:"eaRe02fYmMp1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 228 521","shape-rendering":"geometricPrecision","text-rendering":"geometricPrecision"},[p("g",{id:"P"},[p("path",{d:"m 101,512.877 c -17.547386,-5.3519 -50.794681,-10.26296 -80,0 10.737201,-217.43031 5.7244,-300.999 0,-464.9995 0,0 46.6144,-37.1164 80,-42.00002 33.386,-4.883633 86.025,10.45942 120,50.00002 5,30 -4.353,106.6565 -44,156.0005 -34.149,42.5 -130,38.48 -130,92.999 0,102 54,208 54,208 z",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"10","stroke-linecap":"round","stroke-miterlimit":"16"},id:"trunk",class:"svg-elem-1"}),p("path",{d:"M 221,55.8775 C 209.023,126.453 185.39,166.835 158.997,191.5 93.783098,252.444 11.718998,217.436 46.999998,304.877",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"vine2",class:"svg-elem-2"}),p("path",{d:"m 194.5,188 c -11.225,4.447 -19.066,5.134 -35.503,3.5",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine4",class:"svg-elem-3"}),p("path",{d:"M 73.499996,246.5 C 111.145,245.626 127.011,238.775 156.5,228",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine3",class:"svg-elem-4"}),p("path",{d:"M 221,55.8775 C 169.5,17.8262 86.0943,44.9468 47,107 c -4.743,7.528 -7.1041,15.373 -8.326,24 -3.5282,24.91 2.4426,56.34 -12.0011,105.5",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"vine1",class:"svg-elem-5"}),p("path",{d:"M 21,47.8775 38.674,131",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine2",class:"svg-elem-6"}),p("path",{d:"m 3,326.5 c 13.1783,22.208 16.4863,42.834 21.6997,81",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine1",class:"svg-elem-7"})])],-1));function ys(e,t){return g(),A(Zt,{appear:""},{default:V(()=>[bs]),_:1})}var _s=q(vs,[["render",ys],["__scopeId","data-v-89b4b00a"]]);const ye=E({__name:"Spacer",props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(t,n)=>(g(),x("div",{style:W({width:e.width,height:e.height})},null,4))}});function Ct(e,t="points",n=0,i=void 0){const r=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 je(e,t){const n=t!=null?t:e.value;return f.eq(e.precision,0)?ve(n):se(n,e.precision,e.small)}const Ss=["x1","y1","x2","y2"],Cs=E({__name:"Link",props:{link:null,startNode:null,endNode:null,boundingRect:null},setup(e){const n=ne(e),i=N(()=>{const a=n.startNode.value.rect,o=n.boundingRect.value,s=o?{x:a.x+a.width/2-o.x,y:a.y+a.height/2-o.y}:{x:0,y:0};return n.link.value.offsetStart&&(s.x+=n.link.value.offsetStart.x,s.y+=n.link.value.offsetStart.y),s}),r=N(()=>{const a=n.endNode.value.rect,o=n.boundingRect.value,s=o?{x:a.x+a.width/2-o.x,y:a.y+a.height/2-o.y}:{x:0,y:0};return n.link.value.offsetEnd&&(s.x+=n.link.value.offsetEnd.x,s.y+=n.link.value.offsetEnd.y),s});return(a,o)=>(g(),x("line",Be({"stroke-width":"15px",stroke:"white"},e.link,{x1:l(i).x,y1:l(i).y,x2:l(r).x,y2:l(r).y}),null,16,Ss))}});const $s=E({__name:"Links",props:{links:null},setup(e){var u;const n=Ze(e,"links"),i=O(null),r=jt(hn,O({})),a=jt(bn,O(void 0)),o=O((u=i.value)==null?void 0:u.getBoundingClientRect());Ie(a,()=>{var c;return o.value=(c=i.value)==null?void 0:c.getBoundingClientRect()}),Tt(()=>{var c;return o.value=(c=i.value)==null?void 0:c.getBoundingClientRect()});const s=N(()=>{var h,v;const c=r.value;return(v=(h=n.value)==null?void 0:h.filter(b=>{var w,S;return((w=c[b.startNode.id])==null?void 0:w.rect)&&((S=c[b.startNode.id])==null?void 0:S.rect)}))!=null?v:[]});return(c,h)=>(g(),x(K,null,[l(s)?(g(),x("svg",ji(Be({key:0},c.$attrs)),[(g(!0),x(K,null,kt(l(s),(v,b)=>(g(),A(Cs,{key:b,link:v,boundingRect:o.value,startNode:l(r)[v.startNode.id],endNode:l(r)[v.endNode.id]},null,8,["link","boundingRect","startNode","endNode"]))),128))],16)):P("",!0),p("div",{ref_key:"resizeListener",ref:i,class:"resize-listener"},null,512)],64))}});var _i=q($s,[["__scopeId","data-v-c139d80e"]]),Ms=E({props:{nodes:{type:k(Array),required:!0},leftSideNodes:k(Array),rightSideNodes:k(Array),branches:k(Array)},components:{Links:_i},setup(e){const{nodes:t,leftSideNodes:n,rightSideNodes:i}=ne(e),r=xe();Ne(()=>{const s=ae(t);r.value=D(L(()=>d(K,null,[s.map(u=>d("span",{class:"row tree-row",style:"margin: 50px auto;"},[u.map(Re)]))])))});const a=xe();Ne(()=>{const s=ae(n);a.value=s?D(L(()=>d("span",{class:"left-side-nodes small"},[s.map(Re)]))):""});const o=xe();return Ne(()=>{const s=ae(i);o.value=s?D(L(()=>d("span",{class:"side-nodes small"},[s.map(Re)]))):""}),{unref:l,nodesComp:r,leftNodesComp:a,rightNodesComp:o}}});function Ts(e,t,n,i,r,a){const o=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=jt(gn,()=>{}),r=jt(vn,()=>{}),a=O(null),o=N(()=>a.value&&a.value.parentElement);return Ie([o,n.id],([s,u],[c,h])=>{c&&r(l(h)),s&&i(u,s)}),Gn(()=>r(l(n.id))),(s,u)=>(g(),x("div",{class:"node",ref_key:"node",ref:a},null,512))}});var Ge=q(Vs,[["__scopeId","data-v-2cb1bb79"]]);const Fs=E({props:{display:k(Object,String,Function),visibility:{type:k(Number),required:!0},style:k(String,Object,Array),classes:k(Object),onClick:Function,onHold:Function,color:k(String),glowColor:k(String),canClick:{type:k(Boolean),required:!0},mark:k(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:ft,Node:Ge},setup(e){const{onClick:t,onHold:n,display:i}=ne(e),r=it(i),{start:a,stop:o}=mn(t,n);return{start:a,stop:o,comp:r,unref:l,Visibility:B,isCoercableComponent:Te}}});function Ds(e,t,n,i,r,a){var u;const o=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 Ls=function(e,t){const n=[t];let i=[t];if(e.branches!=null){const r=l(e.branches);for(;i.length>0;){const a=[];i.forEach(o=>{r.filter(s=>s.startNode===o||s.endNode===o).map(s=>s.startNode===o?s.endNode:s.startNode).filter(s=>!n.includes(s)).forEach(s=>{var u;a.includes(s)||(a.push(s),(u=s.reset)==null||u.reset())})}),i=a,n.push(...i)}}};function wi(e,t=null,n=0){const i=Me(n);return N(()=>t==null||f.gte(e.value,l(i))?je(e)+" "+e.displayName:`Reach ${f.eq(t.precision,0)?ve(l(i)):se(l(i),t.precision)} ${t.displayName} to unlock (You have ${f.eq(t.precision,0)?ve(t.value):se(t.value,t.precision)})`)}const js=E({props:{visibility:{type:k(Number),required:!0},display:k(Object,String,Function),earned:{type:k(Boolean),required:!0},image:k(String),style:k(String,Object,Array),classes:k(Object),mark:k(Boolean,String),id:{type:String,required:!0}},components:{Node:Ge,MarkNode:ft},setup(e){const{display:t}=ne(e);return{component:it(t),unref:l,Visibility:B}}});function zs(e,t,n,i,r,a){var u;const o=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 Us=q(js,[["render",zs],["__scopeId","data-v-58163dab"]]);ge.on("setupVue",e=>e.use(Zi));function wn(e="white",t="8px"){return{transform:"scale(1.05, 1.05)",borderColor:"rgba(0, 0, 0, 0.125)",boxShadow:`-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 ${t} ${e}`,zIndex:1}}function Gs(){return wn("red","20px")}const Hs=fn(),Ws=Symbol("Achievement");function rn(e){const t=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]=Us,n.earned=t,n.complete=function(){t.value=!0},y(n,"visibility"),z(n,"visibility",B.Visible),y(n,"display"),y(n,"mark"),y(n,"image"),y(n,"style"),y(n,"classes"),n[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:Ge},setup(e){const{onClick:t,onHold:n,title:i,display:r}=ne(e),{start:a,stop:o}=mn(t,n),s=it(i),u=ct(r);return{start:a,stop:o,titleComponent:s,component:u,Visibility:B,unref:l}}}),Ks={key:0};function Zs(e,t,n,i,r,a){var s;const o=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:Ge,MarkNode:ft},setup(e){const{display:t,onClick:n,onHold:i}=ne(e),r=xe("");Ne(()=>{const s=ae(t);if(s==null){r.value="";return}if(Te(s)){r.value=D(s);return}const u=D(s.title||"","h3"),c=D(s.description,"div");r.value=D(L(()=>d("span",null,[s.title?d("div",null,[d(u,null,null)]):null,d(c,null,null)])))});const{start:a,stop:o}=mn(n,i);return{start:a,stop:o,comp:r,Visibility:B,unref:l}}});function ol(e,t,n,i,r,a){var u;const o=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=L(()=>d("span",null,[l(t.resetDescription),d("b",null,[je(t.conversion.gainResource,f.max(l(t.conversion.actualGain),l(t.minimumGain)))])," ",t.conversion.gainResource.displayName,l(t.showNextAt)?d("div",null,[d("br",null,null),l(t.conversion.buyMax)?"Next:":"Req:"," ",je(t.conversion.baseResource,l(t.conversion.buyMax)||f.floor(l(t.conversion.actualGain)).neq(1)?l(t.conversion.nextAt):l(t.conversion.currentAt))," ",t.conversion.baseResource.displayName]):null]))),t.canClick==null&&(t.canClick=N(()=>f.gte(l(t.conversion.actualGain),l(t.minimumGain))));const n=t.onClick;return t.onClick=function(){!l(t.canClick)||(t.conversion.convert(),t.tree.reset(t.treeNode),t.resetTime&&(t.resetTime.value=t.resetTime[St]),n==null||n())},t})}function Si(e){return yt(()=>{const t=e();return y(t,"display"),z(t,"display",t.layerID),y(t,"append"),{...t,display:t.display,onClick:l(t.append)?function(){if(T.tabs.includes(t.layerID)){const n=T.tabs.lastIndexOf(t.layerID);T.tabs.splice(n,1)}else T.tabs.push(t.layerID)}:function(){T.tabs.splice(1,1,t.layerID)}}})}function Ci(e){return 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:Ge,CollapseTransition:Hi},setup(e){const{title:t,display:n}=ne(e),i=ct(t),r=ct(n),a=N(()=>ze[Z.theme].mergeAdjacent);return{titleComponent:i,bodyComponent:r,stacked:a,unref:l,Visibility:B}}}),pl=e=>(qe("data-v-338c9154"),e=e(),Le(),e),ml=pl(()=>p("span",{class:"toggle"},"\u25BC",-1));function gl(e,t,n,i,r,a){var u;const o=de("CollapseTransition"),s=de("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,class:Q(["infobox",{collapsed:e.unref(e.collapsed),stacked:e.stacked,...e.unref(e.classes)}]),style:W([{borderColor:e.unref(e.color),visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(u=e.unref(e.style))!=null?u:{}])},[p("button",{class:"title",style:W([{backgroundColor:e.unref(e.color)},e.unref(e.titleStyle)||[]]),onClick:t[0]||(t[0]=c=>e.collapsed.value=!e.unref(e.collapsed))},[ml,(g(),A(ee(e.titleComponent)))],4),d(o,null,{default:V(()=>[e.unref(e.collapsed)?P("",!0):(g(),x("div",{key:0,class:"body",style:W({backgroundColor:e.unref(e.color)})},[(g(),A(ee(e.bodyComponent),{style:W(e.unref(e.bodyStyle))},null,8,["style"]))],4))]),_:1}),d(s,{id:e.id},null,8,["id"])],6)):P("",!0)}var vl=q(fl,[["render",gl],["__scopeId","data-v-338c9154"]]);const hl=Symbol("Infobox");function Mi(e){const t=le(!1);return me(()=>{const n=e();return n.id=he("infobox-"),n.type=hl,n[ue]=vl,n.collapsed=t,y(n,"visibility"),z(n,"visibility",B.Visible),y(n,"color"),y(n,"style"),y(n,"titleStyle"),y(n,"bodyStyle"),y(n,"classes"),y(n,"title"),y(n,"display"),n[pe]=function(){const{visibility:i,display:r,title:a,color:o,collapsed:s,style:u,titleStyle:c,bodyStyle:h,classes:v,id:b}=this;return{visibility:i,display:r,title:a,color:o,collapsed:s,style:l(u),titleStyle:c,bodyStyle:h,classes:v,id:b}},n})}var bl=E({props:{style:k(String,Object,Array),classes:k(Object),onInit:{type:Function,required:!0},id:{type:String,required:!0},onContainerResized:Function,onHotReload:Function},setup(e){const t=O(null),n=new ResizeObserver(a),i=O(null);Tt(()=>{var s,u;const o=i.value;o!=null&&(n.observe(o),t.value=new Ji({resizeTo:o,backgroundAlpha:0}),(s=i.value)==null||s.appendChild(t.value.view),(u=e.onInit)==null||u.call(e,t.value)),a(),e.onHotReload&&Ve(e.onHotReload)}),zi(()=>{var o;(o=t.value)==null||o.destroy()});let r=!0;function a(){r&&(r=!1,Ve(()=>{var o;i.value!=null&&e.onContainerResized&&(e.onContainerResized(i.value.getBoundingClientRect()),(o=t.value)==null||o.resize()),r=!0}))}return document.fonts.ready.then(a),{unref:l,resizeListener:i}}});function yl(e,t,n,i,r,a){return g(),x("div",{ref:"resizeListener",class:Q(["resize-listener",e.unref(e.classes)]),style:W(e.unref(e.style))},null,6)}var _l=q(bl,[["render",yl],["__scopeId","data-v-8adf21fa"]]);const kl=Symbol("Particles");function wl(e){return me(()=>{var r,a;const t=(r=e==null?void 0:e())!=null?r:{};t.id=he("particles-"),t.type=kl,t[ue]=_l,t.app=xe(null),t.addEmitter=o=>{const s=t;return s.app.value?Promise.resolve(new Vn(s.app.value.stage,o)):new Promise(u=>{n.push({resolve:u,config:o})})};let n=[];function i(o){t.app.value=o,n.forEach(({resolve:s,config:u})=>s(new Vn(o.stage,u))),n=[]}return t.onContainerResized=(a=t.onContainerResized)==null?void 0:a.bind(t),t[pe]=function(){const{id:o,style:s,classes:u,onContainerResized:c,onHotReload:h}=this;return{id:o,style:l(s),classes:u,onContainerResized:c,onHotReload:h,onInit:i}},t})}window.upgradeConfig=Xi;const xl=Symbol("Reset");function Ti(e){return me(()=>{const t=e();return t.id=he("reset-"),t.type=xl,t.reset=function(){var i;const n=r=>{r&&typeof r=="object"&&(Nt in r?r[Nt].value=r[St]:!(r instanceof f)&&!fe(r)&&Object.values(r).forEach(a=>n(a)))};l(t.thingsToReset).forEach(n),ge.emit("reset",t),(i=t.onReset)==null||i.call(t)},y(t,"thingsToReset"),t})}const Dt={};ge.on("removeLayer",e=>{var t;(t=Dt[e.id])==null||t.call(Dt),Dt[e.id]=void 0});const Nl=E({__name:"Sticky",setup(e){const t=O("0"),n=new ResizeObserver(r),i=O(null);function r(){let a=i.value;if(a==null)return;let o=0;for(;a.previousSibling;){const s=a.previousSibling;s.dataset&&"vSticky"in s.dataset&&(o+=s.offsetHeight),a=s}t.value=o+"px"}return Ve(r),document.fonts.ready.then(r),Tt(()=>{var o;const a=(o=i.value)==null?void 0:o.parentElement;a&&n.observe(a)}),(a,o)=>(g(),x("div",{class:"sticky",style:W({top:t.value}),ref_key:"element",ref:i,"data-v-sticky":""},[De(a.$slots,"default",{},void 0,!0)],4))}});var Wt=q(Nl,[["__scopeId","data-v-21495571"]]);const Ii=E({__name:"Resource",props:{resource:null,color:null},setup(e){const t=e,n=N(()=>je(t.resource));return(i,r)=>(g(),x("h2",{style:W({color:e.color,"text-shadow":"0px 0px 10px "+e.color})},U(l(n)),5))}});const Sl={class:"main-display"},Cl={key:0},$l={key:1},Ml=C(", "),Pi=E({__name:"MainDisplay",props:{resource:null,color:null,classes:null,style:null,effectDisplay:null},setup(e){const n=ne(e),i=O(null),r=it(n.effectDisplay),a=N(()=>f.lt(n.resource.value,"1e1000"));return(o,s)=>(g(),A(Wt,null,{default:V(()=>{var u,c;return[p("div",{class:"main-display-container",style:W({height:`${((c=(u=i.value)==null?void 0:u.$el.clientHeight)!=null?c:0)+50}px`})},[p("div",Sl,[l(a)?(g(),x("span",Cl,"You have ")):P("",!0),d(Ii,{resource:e.resource,color:e.color||"white"},null,8,["resource","color"]),C(" "+U(e.resource.displayName),1),l(r)?(g(),x("span",$l,[Ml,(g(),A(ee(l(r)),{ref_key:"effectRef",ref:i},null,512))])):P("",!0)])],4)]}),_:1}))}});function un(e,t){return y(t,"display"),y(t,"classes"),y(t,"style"),y(t,"direction"),z(t,"direction",X.Up),y(t,"xoffset"),y(t,"yoffset"),t.pinnable&&("pinned"in e?(console.error("Cannot add pinnable tooltip to element that already has a property called 'pinned'"),t.pinnable=!1):e.pinned=t.pinned=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:L(()=>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:L(()=>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:L(()=>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:L(()=>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,U(e.title),1)):P("",!0),d(re,{display:`${l(r)}`,class:Q({fullWidth:!e.title}),direction:l(X).Down},{default:V(()=>[Kt(p("input",{type:"range","onUpdate:modelValue":o[0]||(o[0]=s=>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 Ll=E({props:{progress:{type:k(String,Object,Number),required:!0},width:{type:k(Number),required:!0},height:{type:k(Number),required:!0},direction:{type:k(String),required:!0},display:k(Object,String,Function),visibility:{type:k(Number),required:!0},style:k(Object,String,Array),classes:k(Object),borderStyle:k(Object,String,Array),textStyle:k(Object,String,Array),baseStyle:k(Object,String,Array),fillStyle:k(Object,String,Array),mark:k(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:ft,Node:Ge},setup(e){const{progress:t,width:n,height:i,direction:r,display:a}=ne(e),o=N(()=>{let c=t.value instanceof f?t.value.toNumber():Number(t.value);return(1-Math.min(Math.max(c,0),1))*100}),s=N(()=>{const c={width:ae(n)+.5+"px",height:ae(i)+.5+"px"};switch(l(r)){case X.Up:c.clipPath=`inset(${o.value}% 0% 0% 0%)`,c.width=ae(n)+1+"px";break;case X.Down:c.clipPath=`inset(0% 0% ${o.value}% 0%)`,c.width=ae(n)+1+"px";break;case X.Right:c.clipPath=`inset(0% ${o.value}% 0% 0%)`;break;case X.Left:c.clipPath=`inset(0% 0% 0% ${o.value} + '%)`;break;case X.Default:c.clipPath="inset(0% 50% 0% 0%)";break}return c}),u=it(a);return{normalizedProgress:o,barStyle:s,component:u,unref:l,Visibility:B}}});function jl(e,t,n,i,r,a){var u,c,h,v,b,w,S;const o=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(Ll,[["render",jl],["__scopeId","data-v-02d0d7b2"]]);const Ul=Symbol("Bar");function an(e){return me(()=>{const t=e();return t.id=he("bar-"),t.type=Ul,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 Gl=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=Gl,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=L(()=>{const s=l(r);if(Te(s)){const u=D(s);return d(u,null,null)}if(s!=null&&n.cost!=null&&n.resource!=null){const u=n,c=D(s.title||"","h3"),h=D(s.description||""),v=D(s.effectDisplay||"");return d("span",null,[s.title?d("div",null,[d(c,null,null)]):null,s.description?d(h,null,null):null,s.showAmount===!1?null:d("div",null,[d("br",null,null),l(u.purchaseLimit)===f.dInf?d(K,null,[C("Amount: "),ve(u.amount.value)]):d(K,null,[C("Amount: "),ve(u.amount.value),C(" /")," ",ve(l(u.purchaseLimit))])]),s.effectDisplay?d("div",null,[d("br",null,null),C("Currently: "),d(v,null,null)]):null,u.cost&&!u.maxed.value?d("div",null,[d("br",null,null),C("Cost: "),se(l(u.cost)||0)," ",n.resource.displayName]):null])}return""}),y(n,"visibility"),z(n,"visibility",B.Visible),y(n,"cost"),y(n,"resource"),y(n,"purchaseLimit"),z(n,"purchaseLimit",f.dInf),y(n,"style"),y(n,"mark"),y(n,"small"),n[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:Ge},setup(e){const{active:t,maxed:n,canComplete:i,display:r}=ne(e),a=N(()=>t.value?i.value?"Finish":"Exit Early":n.value?"Completed":"Start"),o=xe(""),s=N(()=>{const u=ae(t),c=ae(i);return u?c?Gs():wn():{}});return Ne(()=>{const u=ae(r);if(u==null){o.value="";return}if(Te(u)){o.value=D(u);return}const c=D(u.title||"","h3"),h=D(u.description,"div"),v=D(u.goal||""),b=D(u.reward||""),w=D(u.effectDisplay||"");o.value=D(L(()=>d("span",null,[u.title?d("div",null,[d(c,null,null)]):null,d(h,null,null),u.goal?d("div",null,[d("br",null,null),C("Goal: "),d(v,null,null)]):null,u.reward?d("div",null,[d("br",null,null),C("Reward: "),d(b,null,null)]):null,u.effectDisplay?d("div",null,[C("Currently: "),d(w,null,null)]):null])))}),{buttonText:a,notifyStyle:s,comp:o,Visibility:B,unref:l}}});const Yl=["disabled"];function Kl(e,t,n,i,r,a){var u;const o=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)},U(e.buttonText),9,Yl),e.unref(e.comp)?(g(),A(ee(e.unref(e.comp)),{key:0})):P("",!0),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(s,{id:e.id},null,8,["id"])],6)):P("",!0)}var Zl=q(Wl,[["render",Kl],["__scopeId","data-v-4d2947df"]]);const Jl=Symbol("ChallengeType");function Xl(e){const t=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(L(()=>d(we,{title:"Hide Maxed Challenges","onUpdate:modelValue":e=>Z.hideChallenges=e,modelValue:Z.hideChallenges},null)));const Xt=Yt({}),xn=Symbol("Hotkey");function Ln(e){return 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(L(()=>{const e=Object.values(Xt).filter(t=>l(t==null?void 0:t.enabled));return e.length===0?"":d("div",null,[d("br",null,null),d("h4",null,[C("Hotkeys")]),e.map(t=>d("div",null,[t==null?void 0:t.key,C(": "),t==null?void 0:t.description]))])}));const Ql=Symbol("Links");function eu(e){return 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:Ge},setup(e){const{display:t}=ne(e),n=xe("");return Ne(()=>{const i=ae(t);if(i==null){n.value="";return}if(Te(i)){n.value=D(i);return}const r=D(i.requirement,"h3"),a=D(i.effectDisplay||"","b"),o=D(i.optionsDisplay||"","span");n.value=D(L(()=>d("span",null,[d(r,null,null),i.effectDisplay?d("div",null,[d(a,null,null)]):null,i.optionsDisplay?d("div",{class:"equal-spaced"},[d(o,null,null)]):null])))}),{comp:n,unref:l,Visibility:B}}});function nu(e,t,n,i,r,a){var s;const o=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 jn(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(L(()=>d(yn,{title:"Show Milestones",options:ou,"onUpdate:modelValue":e=>Z.msDisplay=e,modelValue:Z.msDisplay},null)));const su=E({__name:"Tab",props:{display:null},setup(e){const t=e,{display:n}=ne(t),i=ct(n);return(r,a)=>(g(),A(ee(l(i))))}}),lu=Symbol("Tab");function Rt(e){return 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:Ge,MarkNode:ft},setup(e){const{display:t,cost:n}=ne(e),i=xe("");return Ne(()=>{const r=ae(t);if(r==null){i.value="";return}if(Te(r)){i.value=D(r);return}const a=ae(n),o=D(r.title||"","h3"),s=D(r.description,"div"),u=D(r.effectDisplay||"");i.value=D(L(()=>{var c;return d("span",null,[r.title?d("div",null,[d(o,null,null)]):null,d(s,null,null),r.effectDisplay?d("div",null,[C("Currently: "),d(u,null,null)]):null,e.resource!=null?d(K,null,[d("br",null,null),C("Cost: "),e.resource&&je(e.resource,a)," ",(c=e.resource)==null?void 0:c.displayName]):null])}))}),{component:i,unref:l,Visibility:B}}});const hu=["disabled"];function bu(e,t,n,i,r,a){var u;const o=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=jn(()=>({shouldEarn(){return f.gte(i.value,3)},display:{requirement:"3 Lollipops",effectDisplay:"Unlock the next milestone"}})),b=jn(()=>({visibility(){return gt(v.earned.value)},shouldEarn(){return f.gte(i.value,4)},display:{requirement:"4 Lollipops",effectDisplay:"You can toggle beep and boop (which do nothing)",optionsDisplay:L(()=>d(K,null,[d(we,{title:"beep","onUpdate:modelValue":H=>r.value=H,modelValue:r.value},null),d(we,{title:"boop","onUpdate:modelValue":H=>Fe.boop.value=H,modelValue:Fe.boop.value},null)]))},style(){return this.earned?{backgroundColor:"#1111DD"}:{}}})),w=[v,b],S=Xl(()=>({title:"Fun",completionLimit:3,display(){return{description:`Makes the game 0% harder
${ve(this.completions.value)}/${this.completionLimit} completions`,goal:"Have 20 points I guess",reward:"Says hi",effectDisplay:se($.value)+"x"}},visibility(){return gt(f.gt(i.value,0))},goal:20,resource:Y.points,onComplete(){console.log("hiii")},onEnter(){Y.points.value=0,Y.best.value=Y.points.value,Y.total.value=Y.points.value,console.log("So challenging")},onExit(){console.log("Sweet freedom!")},style:{height:"200px"}})),$=N(()=>f.add(n.value,1).tetrate(.02)),R=Bt(()=>({display:{title:"Generator of Genericness",description:"Gain 1 point every second"},cost:1,resource:n})),ke=Bt(()=>({display:()=>({description:"Point generation is faster based on your unspent Lollipops",effectDisplay:`${se(M.value)}x`}),cost:1,resource:n,visibility:()=>gt(R.bought.value)})),M=N(()=>{let H=f.add(n.value,1).pow(.5);return H.gte("1e20000000")&&(H=H.sqrt().times("1e10000000")),H}),I=Bt(()=>({visibility(){return gt(ke.bought.value)},canAfford(){return f.lt(Y.points.value,7)},onPurchase(){Y.points.value=f.add(Y.points.value,7)},display:"Only buyable with less than 7 points, and gives you 7 more. Unlocks a secret subtab.",style(){return this.bought?{backgroundColor:"#1111dd"}:this.canAfford?{}:{backgroundColor:"#dd1111"}}})),G=Bt(()=>({resource:Ct(te.amount,"Exhancers",0),cost:3,display:{title:"This upgrade doesn't exist",description:"Or does it?"}})),be=[R,ke,I],te=Hl(()=>({resource:n,cost(){let H=new f(this.amount.value);return H.gte(25)&&(H=H.pow(2).div(25)),f.pow(2,H.pow(1.5)).floor()},display(){return{title:"Exhancers",description:`Adds ${se(He.value)} things and multiplies stuff by ${se(en.value)}.`}},onPurchase(H){s.value=f.add(s.value,H!=null?H:0)},style:{height:"222px"},purchaseLimit:4})),He=N(()=>f.gte(te.amount.value,0)?f.pow(25,f.pow(te.amount.value,1.1)):f.pow(1/25,f.times(te.amount.value,-1).pow(1.1))),en=N(()=>f.gte(te.amount.value,0)?f.pow(25,f.pow(te.amount.value,1.1)):f.pow(1/25,f.times(te.amount.value,-1).pow(1.1))),at=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=L(()=>d(Lt,null,{default:()=>[d(bt,null,{default:()=>[d(we,{title:"Confirm","onUpdate:modelValue":H=>at.value=H,modelValue:at.value},null),Pe(Ot)]}),Pe(te),Pe(Sn),d(Je,{modelValue:ot.value,"onUpdate:modelValue":H=>ot.value=H},{header:()=>d("h2",null,[C("Confirm Respec")]),body:()=>d(K,null,[C("Are you sure? Respeccing these doesn't accomplish much")]),footer:()=>d("div",{class:"modal-default-footer"},[d("div",{class:"modal-default-flex-grow"},null),d("button",{class:"button modal-default-button",onClick:()=>ot.value=!1},[C("Cancel")]),d("button",{class:"button modal-default-button danger",onClick:()=>{Ot.onClick(),ot.value=!1}},[C("Respec")])])})]})),Cn=an(()=>({fillStyle:{backgroundColor:"#FFFFFF"},baseStyle:{backgroundColor:"#696969"},textStyle:{color:"#04e050"},direction:X.Right,width:300,height:30,progress(){return f.add(Y.points.value,1).log(10).div(10).toNumber()},display(){return se(Y.points.value)+" / 1e10 points"}})),$n=an(()=>({fillStyle:{backgroundColor:"#4BEC13"},baseStyle:{backgroundColor:"#000000"},textStyle:{textShadow:"0px 0px 2px #000000"},borderStyle:{borderWidth:"7px"},direction:X.Up,width:50,height:200,progress(){return f.div(Y.points.value,100)},display(){return ve(f.div(Y.points.value,1).min(100))+"%"}})),At=an(()=>({fillStyle:{backgroundColor:"#FE0102"},baseStyle:{backgroundColor:"#222222"},textStyle:{textShadow:"0px 0px 2px #000000"},direction:X.Up,width:100,height:30,progress(){return f.div(n.value,50)}})),pt=ll(()=>({scaling:cl($i(10,.5),1e100,.5),baseResource:Y.points,gainResource:n,roundUpCost:!0,gainModifier:Ol(Pl(2,"Because I felt like it"),Tl(1,"Nice modifier"))})),Mn=Ti(()=>({thingsToReset:()=>[Oe]})),Vi=[Ln(()=>({key:"c",description:"reset for lollipops or whatever",onPress(){mt.canClick.value&&mt.onClick()}})),Ln(()=>({key:"ctrl+c",description:"respec things",onPress(){Ot.onClick()}}))],Xe=Si(()=>({layerID:on,color:e,reset:Mn,mark:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",tooltip(){let H=je(n);return f.gt(te.amount.value,0)&&(H+=`



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