diff --git a/index.html b/index.html index 2269fd3..804cbcd 100644 --- a/index.html +++ b/index.html @@ -54,20 +54,20 @@ * @vue/shared v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function qC(A){const I=Object.create(null);for(const g of A.split(","))I[g]=1;return g=>g in I}const z={},LI=[],$A=()=>{},Ri=()=>!1,Zg=A=>A.charCodeAt(0)===111&&A.charCodeAt(1)===110&&(A.charCodeAt(2)>122||A.charCodeAt(2)<97),WC=A=>A.startsWith("onUpdate:"),eA=Object.assign,OC=(A,I)=>{const g=A.indexOf(I);g>-1&&A.splice(g,1)},Ni=Object.prototype.hasOwnProperty,X=(A,I)=>Ni.call(A,I),b=Array.isArray,TI=A=>qg(A)==="[object Map]",hB=A=>qg(A)==="[object Set]",q=A=>typeof A=="function",iA=A=>typeof A=="string",oI=A=>typeof A=="symbol",CA=A=>A!==null&&typeof A=="object",GB=A=>(CA(A)||q(A))&&q(A.then)&&q(A.catch),FB=Object.prototype.toString,qg=A=>FB.call(A),hi=A=>qg(A).slice(8,-1),yB=A=>qg(A)==="[object Object]",jC=A=>iA(A)&&A!=="NaN"&&A[0]!=="-"&&""+parseInt(A,10)===A,Ig=qC(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wg=A=>{const I=Object.create(null);return g=>I[g]||(I[g]=A(g))},Gi=/-(\w)/g,iI=Wg(A=>A.replace(Gi,(I,g)=>g?g.toUpperCase():"")),Fi=/\B([A-Z])/g,cI=Wg(A=>A.replace(Fi,"-$1").toLowerCase()),MB=Wg(A=>A.charAt(0).toUpperCase()+A.slice(1)),QC=Wg(A=>A?`on${MB(A)}`:""),fA=(A,I)=>!Object.is(A,I),BC=(A,...I)=>{for(let g=0;g{Object.defineProperty(A,I,{configurable:!0,enumerable:!1,writable:C,value:g})},yi=A=>{const I=parseFloat(A);return isNaN(I)?A:I};let fQ;const Og=()=>fQ||(fQ=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function xC(A){if(b(A)){const I={};for(let g=0;g{if(g){const C=g.split(Ui);C.length>1&&(I[C[0].trim()]=C[1].trim())}}),I}function vC(A){let I="";if(iA(A))I=A;else if(b(A))for(let g=0;g!!(A&&A.__v_isRef===!0),HI=A=>iA(A)?A:A==null?"":b(A)||CA(A)&&(A.toString===FB||!q(A.toString))?JB(A)?HI(A.value):JSON.stringify(A,YB,2):String(A),YB=(A,I)=>JB(I)?YB(A,I.value):TI(I)?{[`Map(${I.size})`]:[...I.entries()].reduce((g,[C,Q],B)=>(g[EC(C,B)+" =>"]=Q,g),{})}:hB(I)?{[`Set(${I.size})`]:[...I.values()].map(g=>EC(g))}:oI(I)?EC(I):CA(I)&&!b(I)&&!yB(I)?String(I):I,EC=(A,I="")=>{var g;return oI(A)?`Symbol(${(g=A.description)!=null?g:I})`:A};/** +**//*! #__NO_SIDE_EFFECTS__ */function OC(A){const I=Object.create(null);for(const g of A.split(","))I[g]=1;return g=>g in I}const z={},LI=[],AI=()=>{},Ni=()=>!1,Zg=A=>A.charCodeAt(0)===111&&A.charCodeAt(1)===110&&(A.charCodeAt(2)>122||A.charCodeAt(2)<97),jC=A=>A.startsWith("onUpdate:"),eA=Object.assign,xC=(A,I)=>{const g=A.indexOf(I);g>-1&&A.splice(g,1)},hi=Object.prototype.hasOwnProperty,X=(A,I)=>hi.call(A,I),p=Array.isArray,TI=A=>qg(A)==="[object Map]",hB=A=>qg(A)==="[object Set]",Z=A=>typeof A=="function",oA=A=>typeof A=="string",tI=A=>typeof A=="symbol",CA=A=>A!==null&&typeof A=="object",GB=A=>(CA(A)||Z(A))&&Z(A.then)&&Z(A.catch),FB=Object.prototype.toString,qg=A=>FB.call(A),Gi=A=>qg(A).slice(8,-1),yB=A=>qg(A)==="[object Object]",vC=A=>oA(A)&&A!=="NaN"&&A[0]!=="-"&&""+parseInt(A,10)===A,Ig=OC(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wg=A=>{const I=Object.create(null);return g=>I[g]||(I[g]=A(g))},Fi=/-(\w)/g,oI=Wg(A=>A.replace(Fi,(I,g)=>g?g.toUpperCase():"")),yi=/\B([A-Z])/g,cI=Wg(A=>A.replace(yi,"-$1").toLowerCase()),MB=Wg(A=>A.charAt(0).toUpperCase()+A.slice(1)),BC=Wg(A=>A?`on${MB(A)}`:""),fA=(A,I)=>!Object.is(A,I),EC=(A,...I)=>{for(let g=0;g{Object.defineProperty(A,I,{configurable:!0,enumerable:!1,writable:C,value:g})},Mi=A=>{const I=parseFloat(A);return isNaN(I)?A:I};let JQ;const Og=()=>JQ||(JQ=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function jg(A){if(p(A)){const I={};for(let g=0;g{if(g){const C=g.split(fi);C.length>1&&(I[C[0].trim()]=C[1].trim())}}),I}function XC(A){let I="";if(oA(A))I=A;else if(p(A))for(let g=0;g!!(A&&A.__v_isRef===!0),mI=A=>oA(A)?A:A==null?"":p(A)||CA(A)&&(A.toString===FB||!Z(A.toString))?JB(A)?mI(A.value):JSON.stringify(A,YB,2):String(A),YB=(A,I)=>JB(I)?YB(A,I.value):TI(I)?{[`Map(${I.size})`]:[...I.entries()].reduce((g,[C,Q],B)=>(g[iC(C,B)+" =>"]=Q,g),{})}:hB(I)?{[`Set(${I.size})`]:[...I.values()].map(g=>iC(g))}:tI(I)?iC(I):CA(I)&&!p(I)&&!yB(I)?String(I):I,iC=(A,I="")=>{var g;return tI(A)?`Symbol(${(g=A.description)!=null?g:I})`:A};/** * @vue/reactivity v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let hA;class Si{constructor(I=!1){this.detached=I,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=hA,!I&&hA&&(this.index=(hA.scopes||(hA.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let I,g;if(this.scopes)for(I=0,g=this.scopes.length;I0)return;if(Cg){let I=Cg;for(Cg=void 0;I;){const g=I.next;I.next=void 0,I.flags&=-9,I=g}}let A;for(;gg;){let I=gg;for(gg=void 0;I;){const g=I.next;if(I.next=void 0,I.flags&=-9,I.flags&1)try{I.trigger()}catch(C){A||(A=C)}I=g}}if(A)throw A}function KB(A){for(let I=A.deps;I;I=I.nextDep)I.version=-1,I.prevActiveLink=I.dep.activeLink,I.dep.activeLink=I}function LB(A){let I,g=A.depsTail,C=g;for(;C;){const Q=C.prevDep;C.version===-1?(C===g&&(g=Q),PC(C),di(C)):I=C,C.dep.activeLink=C.prevActiveLink,C.prevActiveLink=void 0,C=Q}A.deps=I,A.depsTail=g}function GC(A){for(let I=A.deps;I;I=I.nextDep)if(I.dep.version!==I.version||I.dep.computed&&(TB(I.dep.computed)||I.dep.version!==I.version))return!0;return!!A._dirty}function TB(A){if(A.flags&4&&!(A.flags&16)||(A.flags&=-17,A.globalVersion===Eg))return;A.globalVersion=Eg;const I=A.dep;if(A.flags|=2,I.version>0&&!A.isSSR&&A.deps&&!GC(A)){A.flags&=-3;return}const g=AA,C=qA;AA=A,qA=!0;try{KB(A);const Q=A.fn(A._value);(I.version===0||fA(Q,A._value))&&(A._value=Q,I.version++)}catch(Q){throw I.version++,Q}finally{AA=g,qA=C,LB(A),A.flags&=-3}}function PC(A,I=!1){const{dep:g,prevSub:C,nextSub:Q}=A;if(C&&(C.nextSub=Q,A.prevSub=void 0),Q&&(Q.prevSub=C,A.nextSub=void 0),g.subs===A&&(g.subs=C,!C&&g.computed)){g.computed.flags&=-5;for(let B=g.computed.deps;B;B=B.nextDep)PC(B,!0)}!I&&!--g.sc&&g.map&&g.map.delete(g.key)}function di(A){const{prevDep:I,nextDep:g}=A;I&&(I.nextDep=g,A.prevDep=void 0),g&&(g.prevDep=I,A.nextDep=void 0)}let qA=!0;const HB=[];function RI(){HB.push(qA),qA=!1}function NI(){const A=HB.pop();qA=A===void 0?!0:A}function JQ(A){const{cleanup:I}=A;if(A.cleanup=void 0,I){const g=AA;AA=void 0;try{I()}finally{AA=g}}}let Eg=0;class Ki{constructor(I,g){this.sub=I,this.dep=g,this.version=g.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class jg{constructor(I){this.computed=I,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(I){if(!AA||!qA||AA===this.computed)return;let g=this.activeLink;if(g===void 0||g.sub!==AA)g=this.activeLink=new Ki(AA,this),AA.deps?(g.prevDep=AA.depsTail,AA.depsTail.nextDep=g,AA.depsTail=g):AA.deps=AA.depsTail=g,mB(g);else if(g.version===-1&&(g.version=this.version,g.nextDep)){const C=g.nextDep;C.prevDep=g.prevDep,g.prevDep&&(g.prevDep.nextDep=C),g.prevDep=AA.depsTail,g.nextDep=void 0,AA.depsTail.nextDep=g,AA.depsTail=g,AA.deps===g&&(AA.deps=C)}return g}trigger(I){this.version++,Eg++,this.notify(I)}notify(I){XC();try{for(let g=this.subs;g;g=g.prevSub)g.sub.notify()&&g.sub.dep.notify()}finally{zC()}}}function mB(A){if(A.dep.sc++,A.sub.flags&4){const I=A.dep.computed;if(I&&!A.dep.subs){I.flags|=20;for(let C=I.deps;C;C=C.nextDep)mB(C)}const g=A.dep.subs;g!==A&&(A.prevSub=g,g&&(g.nextSub=A)),A.dep.subs=A}}const FC=new WeakMap,UI=Symbol(""),yC=Symbol(""),ig=Symbol("");function rA(A,I,g){if(qA&&AA){let C=FC.get(A);C||FC.set(A,C=new Map);let Q=C.get(g);Q||(C.set(g,Q=new jg),Q.map=C,Q.key=g),Q.track()}}function EI(A,I,g,C,Q,B){const E=FC.get(A);if(!E){Eg++;return}const i=o=>{o&&o.trigger()};if(XC(),I==="clear")E.forEach(i);else{const o=b(A),e=o&&jC(g);if(o&&g==="length"){const t=Number(C);E.forEach((D,l)=>{(l==="length"||l===ig||!oI(l)&&l>=t)&&i(D)})}else switch((g!==void 0||E.has(void 0))&&i(E.get(g)),e&&i(E.get(ig)),I){case"add":o?e&&i(E.get("length")):(i(E.get(UI)),TI(A)&&i(E.get(yC)));break;case"delete":o||(i(E.get(UI)),TI(A)&&i(E.get(yC)));break;case"set":TI(A)&&i(E.get(UI));break}}zC()}function SI(A){const I=v(A);return I===A?I:(rA(I,"iterate",ig),mA(A)?I:I.map(aA))}function xg(A){return rA(A=v(A),"iterate",ig),A}const Li={__proto__:null,[Symbol.iterator](){return oC(this,Symbol.iterator,aA)},concat(...A){return SI(this).concat(...A.map(I=>b(I)?SI(I):I))},entries(){return oC(this,"entries",A=>(A[1]=aA(A[1]),A))},every(A,I){return CI(this,"every",A,I,void 0,arguments)},filter(A,I){return CI(this,"filter",A,I,g=>g.map(aA),arguments)},find(A,I){return CI(this,"find",A,I,aA,arguments)},findIndex(A,I){return CI(this,"findIndex",A,I,void 0,arguments)},findLast(A,I){return CI(this,"findLast",A,I,aA,arguments)},findLastIndex(A,I){return CI(this,"findLastIndex",A,I,void 0,arguments)},forEach(A,I){return CI(this,"forEach",A,I,void 0,arguments)},includes(...A){return tC(this,"includes",A)},indexOf(...A){return tC(this,"indexOf",A)},join(A){return SI(this).join(A)},lastIndexOf(...A){return tC(this,"lastIndexOf",A)},map(A,I){return CI(this,"map",A,I,void 0,arguments)},pop(){return xI(this,"pop")},push(...A){return xI(this,"push",A)},reduce(A,...I){return YQ(this,"reduce",A,I)},reduceRight(A,...I){return YQ(this,"reduceRight",A,I)},shift(){return xI(this,"shift")},some(A,I){return CI(this,"some",A,I,void 0,arguments)},splice(...A){return xI(this,"splice",A)},toReversed(){return SI(this).toReversed()},toSorted(A){return SI(this).toSorted(A)},toSpliced(...A){return SI(this).toSpliced(...A)},unshift(...A){return xI(this,"unshift",A)},values(){return oC(this,"values",aA)}};function oC(A,I,g){const C=xg(A),Q=C[I]();return C!==A&&!mA(A)&&(Q._next=Q.next,Q.next=()=>{const B=Q._next();return B.value&&(B.value=g(B.value)),B}),Q}const Ti=Array.prototype;function CI(A,I,g,C,Q,B){const E=xg(A),i=E!==A&&!mA(A),o=E[I];if(o!==Ti[I]){const D=o.apply(A,B);return i?aA(D):D}let e=g;E!==A&&(i?e=function(D,l){return g.call(this,aA(D),l,A)}:g.length>2&&(e=function(D,l){return g.call(this,D,l,A)}));const t=o.call(E,e,C);return i&&Q?Q(t):t}function YQ(A,I,g,C){const Q=xg(A);let B=g;return Q!==A&&(mA(A)?g.length>3&&(B=function(E,i,o){return g.call(this,E,i,o,A)}):B=function(E,i,o){return g.call(this,E,aA(i),o,A)}),Q[I](B,...C)}function tC(A,I,g){const C=v(A);rA(C,"iterate",ig);const Q=C[I](...g);return(Q===-1||Q===!1)&&IQ(g[0])?(g[0]=v(g[0]),C[I](...g)):Q}function xI(A,I,g=[]){RI(),XC();const C=v(A)[I].apply(A,g);return zC(),NI(),C}const Hi=qC("__proto__,__v_isRef,__isVue"),pB=new Set(Object.getOwnPropertyNames(Symbol).filter(A=>A!=="arguments"&&A!=="caller").map(A=>Symbol[A]).filter(oI));function mi(A){oI(A)||(A=String(A));const I=v(this);return rA(I,"has",A),I.hasOwnProperty(A)}class bB{constructor(I=!1,g=!1){this._isReadonly=I,this._isShallow=g}get(I,g,C){const Q=this._isReadonly,B=this._isShallow;if(g==="__v_isReactive")return!Q;if(g==="__v_isReadonly")return Q;if(g==="__v_isShallow")return B;if(g==="__v_raw")return C===(Q?B?vi:WB:B?qB:ZB).get(I)||Object.getPrototypeOf(I)===Object.getPrototypeOf(C)?I:void 0;const E=b(I);if(!Q){let o;if(E&&(o=Li[g]))return o;if(g==="hasOwnProperty")return mi}const i=Reflect.get(I,g,wA(I)?I:C);return(oI(g)?pB.has(g):Hi(g))||(Q||rA(I,"get",g),B)?i:wA(i)?E&&jC(g)?i:i.value:CA(i)?Q?$C(i):II(i):i}}class VB extends bB{constructor(I=!1){super(!1,I)}set(I,g,C,Q){let B=I[g];if(!this._isShallow){const o=wI(B);if(!mA(C)&&!wI(C)&&(B=v(B),C=v(C)),!b(I)&&wA(B)&&!wA(C))return o?!1:(B.value=C,!0)}const E=b(I)&&jC(g)?Number(g)A,Gg=A=>Reflect.getPrototypeOf(A);function qi(A,I,g){return function(...C){const Q=this.__v_raw,B=v(Q),E=TI(B),i=A==="entries"||A===Symbol.iterator&&E,o=A==="keys"&&E,e=Q[A](...C),t=g?MC:I?UC:aA;return!I&&rA(B,"iterate",o?yC:UI),{next(){const{value:D,done:l}=e.next();return l?{value:D,done:l}:{value:i?[t(D[0]),t(D[1])]:t(D),done:l}},[Symbol.iterator](){return this}}}}function Fg(A){return function(...I){return A==="delete"?!1:A==="clear"?void 0:this}}function Wi(A,I){const g={get(Q){const B=this.__v_raw,E=v(B),i=v(Q);A||(fA(Q,i)&&rA(E,"get",Q),rA(E,"get",i));const{has:o}=Gg(E),e=I?MC:A?UC:aA;if(o.call(E,Q))return e(B.get(Q));if(o.call(E,i))return e(B.get(i));B!==E&&B.get(Q)},get size(){const Q=this.__v_raw;return!A&&rA(v(Q),"iterate",UI),Reflect.get(Q,"size",Q)},has(Q){const B=this.__v_raw,E=v(B),i=v(Q);return A||(fA(Q,i)&&rA(E,"has",Q),rA(E,"has",i)),Q===i?B.has(Q):B.has(Q)||B.has(i)},forEach(Q,B){const E=this,i=E.__v_raw,o=v(i),e=I?MC:A?UC:aA;return!A&&rA(o,"iterate",UI),i.forEach((t,D)=>Q.call(B,e(t),e(D),E))}};return eA(g,A?{add:Fg("add"),set:Fg("set"),delete:Fg("delete"),clear:Fg("clear")}:{add(Q){!I&&!mA(Q)&&!wI(Q)&&(Q=v(Q));const B=v(this);return Gg(B).has.call(B,Q)||(B.add(Q),EI(B,"add",Q,Q)),this},set(Q,B){!I&&!mA(B)&&!wI(B)&&(B=v(B));const E=v(this),{has:i,get:o}=Gg(E);let e=i.call(E,Q);e||(Q=v(Q),e=i.call(E,Q));const t=o.call(E,Q);return E.set(Q,B),e?fA(B,t)&&EI(E,"set",Q,B):EI(E,"add",Q,B),this},delete(Q){const B=v(this),{has:E,get:i}=Gg(B);let o=E.call(B,Q);o||(Q=v(Q),o=E.call(B,Q)),i&&i.call(B,Q);const e=B.delete(Q);return o&&EI(B,"delete",Q,void 0),e},clear(){const Q=v(this),B=Q.size!==0,E=Q.clear();return B&&EI(Q,"clear",void 0,void 0),E}}),["keys","values","entries",Symbol.iterator].forEach(Q=>{g[Q]=qi(Q,A,I)}),g}function _C(A,I){const g=Wi(A,I);return(C,Q,B)=>Q==="__v_isReactive"?!A:Q==="__v_isReadonly"?A:Q==="__v_raw"?C:Reflect.get(X(g,Q)&&Q in C?g:C,Q,B)}const Oi={get:_C(!1,!1)},ji={get:_C(!1,!0)},xi={get:_C(!0,!1)};const ZB=new WeakMap,qB=new WeakMap,WB=new WeakMap,vi=new WeakMap;function Xi(A){switch(A){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zi(A){return A.__v_skip||!Object.isExtensible(A)?0:Xi(hi(A))}function II(A){return wI(A)?A:AQ(A,!1,bi,Oi,ZB)}function Jg(A){return AQ(A,!1,Zi,ji,qB)}function $C(A){return AQ(A,!0,Vi,xi,WB)}function AQ(A,I,g,C,Q){if(!CA(A)||A.__v_raw&&!(I&&A.__v_isReactive))return A;const B=Q.get(A);if(B)return B;const E=zi(A);if(E===0)return A;const i=new Proxy(A,E===2?C:g);return Q.set(A,i),i}function mI(A){return wI(A)?mI(A.__v_raw):!!(A&&A.__v_isReactive)}function wI(A){return!!(A&&A.__v_isReadonly)}function mA(A){return!!(A&&A.__v_isShallow)}function IQ(A){return A?!!A.__v_raw:!1}function v(A){const I=A&&A.__v_raw;return I?v(I):A}function Pi(A){return!X(A,"__v_skip")&&Object.isExtensible(A)&&UB(A,"__v_skip",!0),A}const aA=A=>CA(A)?II(A):A,UC=A=>CA(A)?$C(A):A;function wA(A){return A?A.__v_isRef===!0:!1}function WA(A){return OB(A,!1)}function _i(A){return OB(A,!0)}function OB(A,I){return wA(A)?A:new $i(A,I)}class $i{constructor(I,g){this.dep=new jg,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=g?I:v(I),this._value=g?I:aA(I),this.__v_isShallow=g}get value(){return this.dep.track(),this._value}set value(I){const g=this._rawValue,C=this.__v_isShallow||mA(I)||wI(I);I=C?I:v(I),fA(I,g)&&(this._rawValue=I,this._value=C?I:aA(I),this.dep.trigger())}}function KA(A){return wA(A)?A.value:A}const Ao={get:(A,I,g)=>I==="__v_raw"?A:KA(Reflect.get(A,I,g)),set:(A,I,g,C)=>{const Q=A[I];return wA(Q)&&!wA(g)?(Q.value=g,!0):Reflect.set(A,I,g,C)}};function jB(A){return mI(A)?A:new Proxy(A,Ao)}class Io{constructor(I){this.__v_isRef=!0,this._value=void 0;const g=this.dep=new jg,{get:C,set:Q}=I(g.track.bind(g),g.trigger.bind(g));this._get=C,this._set=Q}get value(){return this._value=this._get()}set value(I){this._set(I)}}function go(A){return new Io(A)}class Co{constructor(I,g,C){this.fn=I,this.setter=g,this._value=void 0,this.dep=new jg(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Eg-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!g,this.isSSR=C}notify(){if(this.flags|=16,!(this.flags&8)&&AA!==this)return dB(this,!0),!0}get value(){const I=this.dep.track();return TB(this),I&&(I.version=this.dep.version),this._value}set value(I){this.setter&&this.setter(I)}}function Qo(A,I,g=!1){let C,Q;return q(A)?C=A:(C=A.get,Q=A.set),new Co(C,Q,g)}const yg={},dg=new WeakMap;let MI;function Bo(A,I=!1,g=MI){if(g){let C=dg.get(g);C||dg.set(g,C=[]),C.push(A)}}function Eo(A,I,g=z){const{immediate:C,deep:Q,once:B,scheduler:E,augmentJob:i,call:o}=g,e=T=>Q?T:mA(T)||Q===!1||Q===0?nI(T,1):nI(T);let t,D,l,a,R=!1,h=!1;if(wA(A)?(D=()=>A.value,R=mA(A)):mI(A)?(D=()=>e(A),R=!0):b(A)?(h=!0,R=A.some(T=>mI(T)||mA(T)),D=()=>A.map(T=>{if(wA(T))return T.value;if(mI(T))return e(T);if(q(T))return o?o(T,2):T()})):q(A)?I?D=o?()=>o(A,2):A:D=()=>{if(l){RI();try{l()}finally{NI()}}const T=MI;MI=t;try{return o?o(A,3,[a]):A(a)}finally{MI=T}}:D=$A,I&&Q){const T=D,H=Q===!0?1/0:Q;D=()=>nI(T(),H)}const M=uB(),S=()=>{t.stop(),M&&OC(M.effects,t)};if(B&&I){const T=I;I=(...H)=>{T(...H),S()}}let L=h?new Array(A.length).fill(yg):yg;const d=T=>{if(!(!(t.flags&1)||!t.dirty&&!T))if(I){const H=t.run();if(Q||R||(h?H.some((yA,MA)=>fA(yA,L[MA])):fA(H,L))){l&&l();const yA=MI;MI=t;try{const MA=[H,L===yg?void 0:h&&L[0]===yg?[]:L,a];o?o(I,3,MA):I(...MA),L=H}finally{MI=yA}}}else t.run()};return i&&i(d),t=new SB(D),t.scheduler=E?()=>E(d,!1):d,a=T=>Bo(T,!1,t),l=t.onStop=()=>{const T=dg.get(t);if(T){if(o)o(T,4);else for(const H of T)H();dg.delete(t)}},I?C?d(!0):L=t.run():E?E(d.bind(null,!0),!0):t.run(),S.pause=t.pause.bind(t),S.resume=t.resume.bind(t),S.stop=S,S}function nI(A,I=1/0,g){if(I<=0||!CA(A)||A.__v_skip||(g=g||new Set,g.has(A)))return A;if(g.add(A),I--,wA(A))nI(A.value,I,g);else if(b(A))for(let C=0;C{nI(C,I,g)});else if(yB(A)){for(const C in A)nI(A[C],I,g);for(const C of Object.getOwnPropertySymbols(A))Object.prototype.propertyIsEnumerable.call(A,C)&&nI(A[C],I,g)}return A}/** +**/let hA;class ki{constructor(I=!1){this.detached=I,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=hA,!I&&hA&&(this.index=(hA.scopes||(hA.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let I,g;if(this.scopes)for(I=0,g=this.scopes.length;I0)return;if(Cg){let I=Cg;for(Cg=void 0;I;){const g=I.next;I.next=void 0,I.flags&=-9,I=g}}let A;for(;gg;){let I=gg;for(gg=void 0;I;){const g=I.next;if(I.next=void 0,I.flags&=-9,I.flags&1)try{I.trigger()}catch(C){A||(A=C)}I=g}}if(A)throw A}function KB(A){for(let I=A.deps;I;I=I.nextDep)I.version=-1,I.prevActiveLink=I.dep.activeLink,I.dep.activeLink=I}function LB(A){let I,g=A.depsTail,C=g;for(;C;){const Q=C.prevDep;C.version===-1?(C===g&&(g=Q),_C(C),Ki(C)):I=C,C.dep.activeLink=C.prevActiveLink,C.prevActiveLink=void 0,C=Q}A.deps=I,A.depsTail=g}function yC(A){for(let I=A.deps;I;I=I.nextDep)if(I.dep.version!==I.version||I.dep.computed&&(TB(I.dep.computed)||I.dep.version!==I.version))return!0;return!!A._dirty}function TB(A){if(A.flags&4&&!(A.flags&16)||(A.flags&=-17,A.globalVersion===Eg))return;A.globalVersion=Eg;const I=A.dep;if(A.flags|=2,I.version>0&&!A.isSSR&&A.deps&&!yC(A)){A.flags&=-3;return}const g=AA,C=ZA;AA=A,ZA=!0;try{KB(A);const Q=A.fn(A._value);(I.version===0||fA(Q,A._value))&&(A._value=Q,I.version++)}catch(Q){throw I.version++,Q}finally{AA=g,ZA=C,LB(A),A.flags&=-3}}function _C(A,I=!1){const{dep:g,prevSub:C,nextSub:Q}=A;if(C&&(C.nextSub=Q,A.prevSub=void 0),Q&&(Q.prevSub=C,A.nextSub=void 0),g.subs===A&&(g.subs=C,!C&&g.computed)){g.computed.flags&=-5;for(let B=g.computed.deps;B;B=B.nextDep)_C(B,!0)}!I&&!--g.sc&&g.map&&g.map.delete(g.key)}function Ki(A){const{prevDep:I,nextDep:g}=A;I&&(I.nextDep=g,A.prevDep=void 0),g&&(g.prevDep=I,A.nextDep=void 0)}let ZA=!0;const mB=[];function RI(){mB.push(ZA),ZA=!1}function NI(){const A=mB.pop();ZA=A===void 0?!0:A}function YQ(A){const{cleanup:I}=A;if(A.cleanup=void 0,I){const g=AA;AA=void 0;try{I()}finally{AA=g}}}let Eg=0;class Li{constructor(I,g){this.sub=I,this.dep=g,this.version=g.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class xg{constructor(I){this.computed=I,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(I){if(!AA||!ZA||AA===this.computed)return;let g=this.activeLink;if(g===void 0||g.sub!==AA)g=this.activeLink=new Li(AA,this),AA.deps?(g.prevDep=AA.depsTail,AA.depsTail.nextDep=g,AA.depsTail=g):AA.deps=AA.depsTail=g,HB(g);else if(g.version===-1&&(g.version=this.version,g.nextDep)){const C=g.nextDep;C.prevDep=g.prevDep,g.prevDep&&(g.prevDep.nextDep=C),g.prevDep=AA.depsTail,g.nextDep=void 0,AA.depsTail.nextDep=g,AA.depsTail=g,AA.deps===g&&(AA.deps=C)}return g}trigger(I){this.version++,Eg++,this.notify(I)}notify(I){zC();try{for(let g=this.subs;g;g=g.prevSub)g.sub.notify()&&g.sub.dep.notify()}finally{PC()}}}function HB(A){if(A.dep.sc++,A.sub.flags&4){const I=A.dep.computed;if(I&&!A.dep.subs){I.flags|=20;for(let C=I.deps;C;C=C.nextDep)HB(C)}const g=A.dep.subs;g!==A&&(A.prevSub=g,g&&(g.nextSub=A)),A.dep.subs=A}}const MC=new WeakMap,UI=Symbol(""),UC=Symbol(""),ig=Symbol("");function rA(A,I,g){if(ZA&&AA){let C=MC.get(A);C||MC.set(A,C=new Map);let Q=C.get(g);Q||(C.set(g,Q=new xg),Q.map=C,Q.key=g),Q.track()}}function iI(A,I,g,C,Q,B){const E=MC.get(A);if(!E){Eg++;return}const i=o=>{o&&o.trigger()};if(zC(),I==="clear")E.forEach(i);else{const o=p(A),e=o&&vC(g);if(o&&g==="length"){const t=Number(C);E.forEach((D,l)=>{(l==="length"||l===ig||!tI(l)&&l>=t)&&i(D)})}else switch((g!==void 0||E.has(void 0))&&i(E.get(g)),e&&i(E.get(ig)),I){case"add":o?e&&i(E.get("length")):(i(E.get(UI)),TI(A)&&i(E.get(UC)));break;case"delete":o||(i(E.get(UI)),TI(A)&&i(E.get(UC)));break;case"set":TI(A)&&i(E.get(UI));break}}PC()}function SI(A){const I=v(A);return I===A?I:(rA(I,"iterate",ig),HA(A)?I:I.map(aA))}function vg(A){return rA(A=v(A),"iterate",ig),A}const Ti={__proto__:null,[Symbol.iterator](){return tC(this,Symbol.iterator,aA)},concat(...A){return SI(this).concat(...A.map(I=>p(I)?SI(I):I))},entries(){return tC(this,"entries",A=>(A[1]=aA(A[1]),A))},every(A,I){return QI(this,"every",A,I,void 0,arguments)},filter(A,I){return QI(this,"filter",A,I,g=>g.map(aA),arguments)},find(A,I){return QI(this,"find",A,I,aA,arguments)},findIndex(A,I){return QI(this,"findIndex",A,I,void 0,arguments)},findLast(A,I){return QI(this,"findLast",A,I,aA,arguments)},findLastIndex(A,I){return QI(this,"findLastIndex",A,I,void 0,arguments)},forEach(A,I){return QI(this,"forEach",A,I,void 0,arguments)},includes(...A){return eC(this,"includes",A)},indexOf(...A){return eC(this,"indexOf",A)},join(A){return SI(this).join(A)},lastIndexOf(...A){return eC(this,"lastIndexOf",A)},map(A,I){return QI(this,"map",A,I,void 0,arguments)},pop(){return xI(this,"pop")},push(...A){return xI(this,"push",A)},reduce(A,...I){return uQ(this,"reduce",A,I)},reduceRight(A,...I){return uQ(this,"reduceRight",A,I)},shift(){return xI(this,"shift")},some(A,I){return QI(this,"some",A,I,void 0,arguments)},splice(...A){return xI(this,"splice",A)},toReversed(){return SI(this).toReversed()},toSorted(A){return SI(this).toSorted(A)},toSpliced(...A){return SI(this).toSpliced(...A)},unshift(...A){return xI(this,"unshift",A)},values(){return tC(this,"values",aA)}};function tC(A,I,g){const C=vg(A),Q=C[I]();return C!==A&&!HA(A)&&(Q._next=Q.next,Q.next=()=>{const B=Q._next();return B.value&&(B.value=g(B.value)),B}),Q}const mi=Array.prototype;function QI(A,I,g,C,Q,B){const E=vg(A),i=E!==A&&!HA(A),o=E[I];if(o!==mi[I]){const D=o.apply(A,B);return i?aA(D):D}let e=g;E!==A&&(i?e=function(D,l){return g.call(this,aA(D),l,A)}:g.length>2&&(e=function(D,l){return g.call(this,D,l,A)}));const t=o.call(E,e,C);return i&&Q?Q(t):t}function uQ(A,I,g,C){const Q=vg(A);let B=g;return Q!==A&&(HA(A)?g.length>3&&(B=function(E,i,o){return g.call(this,E,i,o,A)}):B=function(E,i,o){return g.call(this,E,aA(i),o,A)}),Q[I](B,...C)}function eC(A,I,g){const C=v(A);rA(C,"iterate",ig);const Q=C[I](...g);return(Q===-1||Q===!1)&&gQ(g[0])?(g[0]=v(g[0]),C[I](...g)):Q}function xI(A,I,g=[]){RI(),zC();const C=v(A)[I].apply(A,g);return PC(),NI(),C}const Hi=OC("__proto__,__v_isRef,__isVue"),pB=new Set(Object.getOwnPropertyNames(Symbol).filter(A=>A!=="arguments"&&A!=="caller").map(A=>Symbol[A]).filter(tI));function pi(A){tI(A)||(A=String(A));const I=v(this);return rA(I,"has",A),I.hasOwnProperty(A)}class bB{constructor(I=!1,g=!1){this._isReadonly=I,this._isShallow=g}get(I,g,C){const Q=this._isReadonly,B=this._isShallow;if(g==="__v_isReactive")return!Q;if(g==="__v_isReadonly")return Q;if(g==="__v_isShallow")return B;if(g==="__v_raw")return C===(Q?B?Xi:WB:B?qB:ZB).get(I)||Object.getPrototypeOf(I)===Object.getPrototypeOf(C)?I:void 0;const E=p(I);if(!Q){let o;if(E&&(o=Ti[g]))return o;if(g==="hasOwnProperty")return pi}const i=Reflect.get(I,g,wA(I)?I:C);return(tI(g)?pB.has(g):Hi(g))||(Q||rA(I,"get",g),B)?i:wA(i)?E&&vC(g)?i:i.value:CA(i)?Q?AQ(i):gI(i):i}}class VB extends bB{constructor(I=!1){super(!1,I)}set(I,g,C,Q){let B=I[g];if(!this._isShallow){const o=wI(B);if(!HA(C)&&!wI(C)&&(B=v(B),C=v(C)),!p(I)&&wA(B)&&!wA(C))return o?!1:(B.value=C,!0)}const E=p(I)&&vC(g)?Number(g)A,Gg=A=>Reflect.getPrototypeOf(A);function Wi(A,I,g){return function(...C){const Q=this.__v_raw,B=v(Q),E=TI(B),i=A==="entries"||A===Symbol.iterator&&E,o=A==="keys"&&E,e=Q[A](...C),t=g?fC:I?JC:aA;return!I&&rA(B,"iterate",o?UC:UI),{next(){const{value:D,done:l}=e.next();return l?{value:D,done:l}:{value:i?[t(D[0]),t(D[1])]:t(D),done:l}},[Symbol.iterator](){return this}}}}function Fg(A){return function(...I){return A==="delete"?!1:A==="clear"?void 0:this}}function Oi(A,I){const g={get(Q){const B=this.__v_raw,E=v(B),i=v(Q);A||(fA(Q,i)&&rA(E,"get",Q),rA(E,"get",i));const{has:o}=Gg(E),e=I?fC:A?JC:aA;if(o.call(E,Q))return e(B.get(Q));if(o.call(E,i))return e(B.get(i));B!==E&&B.get(Q)},get size(){const Q=this.__v_raw;return!A&&rA(v(Q),"iterate",UI),Reflect.get(Q,"size",Q)},has(Q){const B=this.__v_raw,E=v(B),i=v(Q);return A||(fA(Q,i)&&rA(E,"has",Q),rA(E,"has",i)),Q===i?B.has(Q):B.has(Q)||B.has(i)},forEach(Q,B){const E=this,i=E.__v_raw,o=v(i),e=I?fC:A?JC:aA;return!A&&rA(o,"iterate",UI),i.forEach((t,D)=>Q.call(B,e(t),e(D),E))}};return eA(g,A?{add:Fg("add"),set:Fg("set"),delete:Fg("delete"),clear:Fg("clear")}:{add(Q){!I&&!HA(Q)&&!wI(Q)&&(Q=v(Q));const B=v(this);return Gg(B).has.call(B,Q)||(B.add(Q),iI(B,"add",Q,Q)),this},set(Q,B){!I&&!HA(B)&&!wI(B)&&(B=v(B));const E=v(this),{has:i,get:o}=Gg(E);let e=i.call(E,Q);e||(Q=v(Q),e=i.call(E,Q));const t=o.call(E,Q);return E.set(Q,B),e?fA(B,t)&&iI(E,"set",Q,B):iI(E,"add",Q,B),this},delete(Q){const B=v(this),{has:E,get:i}=Gg(B);let o=E.call(B,Q);o||(Q=v(Q),o=E.call(B,Q)),i&&i.call(B,Q);const e=B.delete(Q);return o&&iI(B,"delete",Q,void 0),e},clear(){const Q=v(this),B=Q.size!==0,E=Q.clear();return B&&iI(Q,"clear",void 0,void 0),E}}),["keys","values","entries",Symbol.iterator].forEach(Q=>{g[Q]=Wi(Q,A,I)}),g}function $C(A,I){const g=Oi(A,I);return(C,Q,B)=>Q==="__v_isReactive"?!A:Q==="__v_isReadonly"?A:Q==="__v_raw"?C:Reflect.get(X(g,Q)&&Q in C?g:C,Q,B)}const ji={get:$C(!1,!1)},xi={get:$C(!1,!0)},vi={get:$C(!0,!1)};const ZB=new WeakMap,qB=new WeakMap,WB=new WeakMap,Xi=new WeakMap;function zi(A){switch(A){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Pi(A){return A.__v_skip||!Object.isExtensible(A)?0:zi(Gi(A))}function gI(A){return wI(A)?A:IQ(A,!1,Vi,ji,ZB)}function Jg(A){return IQ(A,!1,qi,xi,qB)}function AQ(A){return IQ(A,!0,Zi,vi,WB)}function IQ(A,I,g,C,Q){if(!CA(A)||A.__v_raw&&!(I&&A.__v_isReactive))return A;const B=Q.get(A);if(B)return B;const E=Pi(A);if(E===0)return A;const i=new Proxy(A,E===2?C:g);return Q.set(A,i),i}function HI(A){return wI(A)?HI(A.__v_raw):!!(A&&A.__v_isReactive)}function wI(A){return!!(A&&A.__v_isReadonly)}function HA(A){return!!(A&&A.__v_isShallow)}function gQ(A){return A?!!A.__v_raw:!1}function v(A){const I=A&&A.__v_raw;return I?v(I):A}function _i(A){return!X(A,"__v_skip")&&Object.isExtensible(A)&&UB(A,"__v_skip",!0),A}const aA=A=>CA(A)?gI(A):A,JC=A=>CA(A)?AQ(A):A;function wA(A){return A?A.__v_isRef===!0:!1}function qA(A){return OB(A,!1)}function $i(A){return OB(A,!0)}function OB(A,I){return wA(A)?A:new Ao(A,I)}class Ao{constructor(I,g){this.dep=new xg,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=g?I:v(I),this._value=g?I:aA(I),this.__v_isShallow=g}get value(){return this.dep.track(),this._value}set value(I){const g=this._rawValue,C=this.__v_isShallow||HA(I)||wI(I);I=C?I:v(I),fA(I,g)&&(this._rawValue=I,this._value=C?I:aA(I),this.dep.trigger())}}function GA(A){return wA(A)?A.value:A}const Io={get:(A,I,g)=>I==="__v_raw"?A:GA(Reflect.get(A,I,g)),set:(A,I,g,C)=>{const Q=A[I];return wA(Q)&&!wA(g)?(Q.value=g,!0):Reflect.set(A,I,g,C)}};function jB(A){return HI(A)?A:new Proxy(A,Io)}class go{constructor(I){this.__v_isRef=!0,this._value=void 0;const g=this.dep=new xg,{get:C,set:Q}=I(g.track.bind(g),g.trigger.bind(g));this._get=C,this._set=Q}get value(){return this._value=this._get()}set value(I){this._set(I)}}function Co(A){return new go(A)}class Qo{constructor(I,g,C){this.fn=I,this.setter=g,this._value=void 0,this.dep=new xg(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Eg-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!g,this.isSSR=C}notify(){if(this.flags|=16,!(this.flags&8)&&AA!==this)return dB(this,!0),!0}get value(){const I=this.dep.track();return TB(this),I&&(I.version=this.dep.version),this._value}set value(I){this.setter&&this.setter(I)}}function Bo(A,I,g=!1){let C,Q;return Z(A)?C=A:(C=A.get,Q=A.set),new Qo(C,Q,g)}const yg={},dg=new WeakMap;let MI;function Eo(A,I=!1,g=MI){if(g){let C=dg.get(g);C||dg.set(g,C=[]),C.push(A)}}function io(A,I,g=z){const{immediate:C,deep:Q,once:B,scheduler:E,augmentJob:i,call:o}=g,e=u=>Q?u:HA(u)||Q===!1||Q===0?rI(u,1):rI(u);let t,D,l,a,R=!1,h=!1;if(wA(A)?(D=()=>A.value,R=HA(A)):HI(A)?(D=()=>e(A),R=!0):p(A)?(h=!0,R=A.some(u=>HI(u)||HA(u)),D=()=>A.map(u=>{if(wA(u))return u.value;if(HI(u))return e(u);if(Z(u))return o?o(u,2):u()})):Z(A)?I?D=o?()=>o(A,2):A:D=()=>{if(l){RI();try{l()}finally{NI()}}const u=MI;MI=t;try{return o?o(A,3,[a]):A(a)}finally{MI=u}}:D=AI,I&&Q){const u=D,O=Q===!0?1/0:Q;D=()=>rI(u(),O)}const M=uB(),k=()=>{t.stop(),M&&xC(M.effects,t)};if(B&&I){const u=I;I=(...O)=>{u(...O),k()}}let K=h?new Array(A.length).fill(yg):yg;const T=u=>{if(!(!(t.flags&1)||!t.dirty&&!u))if(I){const O=t.run();if(Q||R||(h?O.some((WA,LA)=>fA(WA,K[LA])):fA(O,K))){l&&l();const WA=MI;MI=t;try{const LA=[O,K===yg?void 0:h&&K[0]===yg?[]:K,a];o?o(I,3,LA):I(...LA),K=O}finally{MI=WA}}}else t.run()};return i&&i(T),t=new SB(D),t.scheduler=E?()=>E(T,!1):T,a=u=>Eo(u,!1,t),l=t.onStop=()=>{const u=dg.get(t);if(u){if(o)o(u,4);else for(const O of u)O();dg.delete(t)}},I?C?T(!0):K=t.run():E?E(T.bind(null,!0),!0):t.run(),k.pause=t.pause.bind(t),k.resume=t.resume.bind(t),k.stop=k,k}function rI(A,I=1/0,g){if(I<=0||!CA(A)||A.__v_skip||(g=g||new Set,g.has(A)))return A;if(g.add(A),I--,wA(A))rI(A.value,I,g);else if(p(A))for(let C=0;C{rI(C,I,g)});else if(yB(A)){for(const C in A)rI(A[C],I,g);for(const C of Object.getOwnPropertySymbols(A))Object.prototype.propertyIsEnumerable.call(A,C)&&rI(A[C],I,g)}return A}/** * @vue/runtime-core v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Dg(A,I,g,C){try{return C?A(...C):A()}catch(Q){vg(Q,I,g)}}function AI(A,I,g,C){if(q(A)){const Q=Dg(A,I,g,C);return Q&&GB(Q)&&Q.catch(B=>{vg(B,I,g)}),Q}if(b(A)){const Q=[];for(let B=0;B>>1,Q=GA[C],B=og(Q);B=og(g)?GA.push(A):GA.splice(oo(I),0,A),A.flags|=1,vB()}}function vB(){Kg||(Kg=xB.then(zB))}function to(A){b(A)?pI.push(...A):eI&&A.id===-1?eI.splice(dI+1,0,A):A.flags&1||(pI.push(A),A.flags|=1),vB()}function uQ(A,I,g=XA+1){for(;gog(g)-og(C));if(pI.length=0,eI){eI.push(...I);return}for(eI=I,dI=0;dIA.id==null?A.flags&2?-1:1/0:A.id;function zB(A){try{for(XA=0;XA{C._d&&mQ(-1);const B=Lg(I);let E;try{E=A(...Q)}finally{Lg(B),C._d&&mQ(1)}return E};return C._n=!0,C._c=!0,C._d=!0,C}function FI(A,I,g,C){const Q=A.dirs,B=I&&I.dirs;for(let E=0;EA.__isTeleport;function CQ(A,I){A.shapeFlag&6&&A.component?(A.transition=I,CQ(A.component.subTree,I)):A.shapeFlag&128?(A.ssContent.transition=I.clone(A.ssContent),A.ssFallback.transition=I.clone(A.ssFallback)):A.transition=I}function _B(A){A.ids=[A.ids[0]+A.ids[2]+++"-",0,0]}function fC(A,I,g,C,Q=!1){if(b(A)){A.forEach((R,h)=>fC(R,I&&(b(I)?I[h]:I),g,C,Q));return}if(bI(C)&&!Q)return;const B=C.shapeFlag&4?eQ(C.component):C.el,E=Q?null:B,{i,r:o}=A,e=I&&I.r,t=i.refs===z?i.refs={}:i.refs,D=i.setupState,l=v(D),a=D===z?()=>!1:R=>X(l,R);if(e!=null&&e!==o&&(iA(e)?(t[e]=null,a(e)&&(D[e]=null)):wA(e)&&(e.value=null)),q(o))Dg(o,i,12,[E,t]);else{const R=iA(o),h=wA(o);if(R||h){const M=()=>{if(A.f){const S=R?a(o)?D[o]:t[o]:o.value;Q?b(S)&&OC(S,B):b(S)?S.includes(B)||S.push(B):R?(t[o]=[B],a(o)&&(D[o]=t[o])):(o.value=[B],A.k&&(t[A.k]=o.value))}else R?(t[o]=E,a(o)&&(D[o]=E)):h&&(o.value=E,A.k&&(t[A.k]=E))};E?(M.id=-1,dA(M,g)):M()}}}Og().requestIdleCallback;Og().cancelIdleCallback;const bI=A=>!!A.type.__asyncLoader,$B=A=>A.type.__isKeepAlive;function no(A,I){AE(A,"a",I)}function ro(A,I){AE(A,"da",I)}function AE(A,I,g=lA){const C=A.__wdc||(A.__wdc=()=>{let Q=g;for(;Q;){if(Q.isDeactivated)return;Q=Q.parent}return A()});if(zg(I,C,g),g){let Q=g.parent;for(;Q&&Q.parent;)$B(Q.parent.vnode)&&ao(C,I,g,Q),Q=Q.parent}}function ao(A,I,g,C){const Q=zg(I,A,C,!0);Pg(()=>{OC(C[I],Q)},g)}function zg(A,I,g=lA,C=!1){if(g){const Q=g[A]||(g[A]=[]),B=I.__weh||(I.__weh=(...E)=>{RI();const i=rg(g),o=AI(I,g,A,E);return i(),NI(),o});return C?Q.unshift(B):Q.push(B),B}}const tI=A=>(I,g=lA)=>{(!eg||A==="sp")&&zg(A,(...C)=>I(...C),g)},lo=tI("bm"),ng=tI("m"),wo=tI("bu"),co=tI("u"),Ro=tI("bum"),Pg=tI("um"),No=tI("sp"),ho=tI("rtg"),Go=tI("rtc");function Fo(A,I=lA){zg("ec",A,I)}const yo=Symbol.for("v-ndc");function SQ(A,I,g,C){let Q;const B=g,E=b(A);if(E||iA(A)){const i=E&&mI(A);let o=!1;i&&(o=!mA(A),A=xg(A)),Q=new Array(A.length);for(let e=0,t=A.length;eI(i,o,void 0,B));else{const i=Object.keys(A);Q=new Array(i.length);for(let o=0,e=i.length;oiQ(I)?!(I.type===ZI||I.type===JA&&!IE(I.children)):!0)?A:null}const JC=A=>A?GE(A)?eQ(A):JC(A.parent):null,Qg=eA(Object.create(null),{$:A=>A,$el:A=>A.vnode.el,$data:A=>A.data,$props:A=>A.props,$attrs:A=>A.attrs,$slots:A=>A.slots,$refs:A=>A.refs,$parent:A=>JC(A.parent),$root:A=>JC(A.root),$host:A=>A.ce,$emit:A=>A.emit,$options:A=>QQ(A),$forceUpdate:A=>A.f||(A.f=()=>{gQ(A.update)}),$nextTick:A=>A.n||(A.n=Xg.bind(A.proxy)),$watch:A=>zo.bind(A)}),eC=(A,I)=>A!==z&&!A.__isScriptSetup&&X(A,I),Uo={get({_:A},I){if(I==="__v_skip")return!0;const{ctx:g,setupState:C,data:Q,props:B,accessCache:E,type:i,appContext:o}=A;let e;if(I[0]!=="$"){const a=E[I];if(a!==void 0)switch(a){case 1:return C[I];case 2:return Q[I];case 4:return g[I];case 3:return B[I]}else{if(eC(C,I))return E[I]=1,C[I];if(Q!==z&&X(Q,I))return E[I]=2,Q[I];if((e=A.propsOptions[0])&&X(e,I))return E[I]=3,B[I];if(g!==z&&X(g,I))return E[I]=4,g[I];YC&&(E[I]=0)}}const t=Qg[I];let D,l;if(t)return I==="$attrs"&&rA(A.attrs,"get",""),t(A);if((D=i.__cssModules)&&(D=D[I]))return D;if(g!==z&&X(g,I))return E[I]=4,g[I];if(l=o.config.globalProperties,X(l,I))return l[I]},set({_:A},I,g){const{data:C,setupState:Q,ctx:B}=A;return eC(Q,I)?(Q[I]=g,!0):C!==z&&X(C,I)?(C[I]=g,!0):X(A.props,I)||I[0]==="$"&&I.slice(1)in A?!1:(B[I]=g,!0)},has({_:{data:A,setupState:I,accessCache:g,ctx:C,appContext:Q,propsOptions:B}},E){let i;return!!g[E]||A!==z&&X(A,E)||eC(I,E)||(i=B[0])&&X(i,E)||X(C,E)||X(Qg,E)||X(Q.config.globalProperties,E)},defineProperty(A,I,g){return g.get!=null?A._.accessCache[I]=0:X(g,"value")&&this.set(A,I,g.value,null),Reflect.defineProperty(A,I,g)}};function Tg(A){return b(A)?A.reduce((I,g)=>(I[g]=null,I),{}):A}function fo(A,I){return!A||!I?A||I:b(A)&&b(I)?A.concat(I):eA({},Tg(A),Tg(I))}let YC=!0;function Jo(A){const I=QQ(A),g=A.proxy,C=A.ctx;YC=!1,I.beforeCreate&&kQ(I.beforeCreate,A,"bc");const{data:Q,computed:B,methods:E,watch:i,provide:o,inject:e,created:t,beforeMount:D,mounted:l,beforeUpdate:a,updated:R,activated:h,deactivated:M,beforeDestroy:S,beforeUnmount:L,destroyed:d,unmounted:T,render:H,renderTracked:yA,renderTriggered:MA,errorCaptured:YA,serverPrefetch:uI,expose:O,inheritAttrs:BA,components:DA,directives:Rg,filters:gC}=I;if(e&&Yo(e,C,null),E)for(const IA in E){const _=E[IA];q(_)&&(C[IA]=_.bind(g))}if(Q){const IA=Q.call(g,g);CA(IA)&&(A.data=II(IA))}if(YC=!0,B)for(const IA in B){const _=B[IA],hI=q(_)?_.bind(g,g):q(_.get)?_.get.bind(g,g):$A,Ng=!q(_)&&q(_.set)?_.set.bind(g):$A,GI=_A({get:hI,set:Ng});Object.defineProperty(C,IA,{enumerable:!0,configurable:!0,get:()=>GI.value,set:OA=>GI.value=OA})}if(i)for(const IA in i)gE(i[IA],C,g,IA);if(o){const IA=q(o)?o.call(g):o;Reflect.ownKeys(IA).forEach(_=>{To(_,IA[_])})}t&&kQ(t,A,"c");function cA(IA,_){b(_)?_.forEach(hI=>IA(hI.bind(g))):_&&IA(_.bind(g))}if(cA(lo,D),cA(ng,l),cA(wo,a),cA(co,R),cA(no,h),cA(ro,M),cA(Fo,YA),cA(Go,yA),cA(ho,MA),cA(Ro,L),cA(Pg,T),cA(No,uI),b(O))if(O.length){const IA=A.exposed||(A.exposed={});O.forEach(_=>{Object.defineProperty(IA,_,{get:()=>g[_],set:hI=>g[_]=hI})})}else A.exposed||(A.exposed={});H&&A.render===$A&&(A.render=H),BA!=null&&(A.inheritAttrs=BA),DA&&(A.components=DA),Rg&&(A.directives=Rg),uI&&_B(A)}function Yo(A,I,g=$A){b(A)&&(A=uC(A));for(const C in A){const Q=A[C];let B;CA(Q)?"default"in Q?B=Yg(Q.from||C,Q.default,!0):B=Yg(Q.from||C):B=Yg(Q),wA(B)?Object.defineProperty(I,C,{enumerable:!0,configurable:!0,get:()=>B.value,set:E=>B.value=E}):I[C]=B}}function kQ(A,I,g){AI(b(A)?A.map(C=>C.bind(I.proxy)):A.bind(I.proxy),I,g)}function gE(A,I,g,C){let Q=C.includes(".")?aE(g,C):()=>g[C];if(iA(A)){const B=I[A];q(B)&&lI(Q,B)}else if(q(A))lI(Q,A.bind(g));else if(CA(A))if(b(A))A.forEach(B=>gE(B,I,g,C));else{const B=q(A.handler)?A.handler.bind(g):I[A.handler];q(B)&&lI(Q,B,A)}}function QQ(A){const I=A.type,{mixins:g,extends:C}=I,{mixins:Q,optionsCache:B,config:{optionMergeStrategies:E}}=A.appContext,i=B.get(I);let o;return i?o=i:!Q.length&&!g&&!C?o=I:(o={},Q.length&&Q.forEach(e=>Hg(o,e,E,!0)),Hg(o,I,E)),CA(I)&&B.set(I,o),o}function Hg(A,I,g,C=!1){const{mixins:Q,extends:B}=I;B&&Hg(A,B,g,!0),Q&&Q.forEach(E=>Hg(A,E,g,!0));for(const E in I)if(!(C&&E==="expose")){const i=uo[E]||g&&g[E];A[E]=i?i(A[E],I[E]):I[E]}return A}const uo={data:dQ,props:KQ,emits:KQ,methods:Ag,computed:Ag,beforeCreate:NA,created:NA,beforeMount:NA,mounted:NA,beforeUpdate:NA,updated:NA,beforeDestroy:NA,beforeUnmount:NA,destroyed:NA,unmounted:NA,activated:NA,deactivated:NA,errorCaptured:NA,serverPrefetch:NA,components:Ag,directives:Ag,watch:ko,provide:dQ,inject:So};function dQ(A,I){return I?A?function(){return eA(q(A)?A.call(this,this):A,q(I)?I.call(this,this):I)}:I:A}function So(A,I){return Ag(uC(A),uC(I))}function uC(A){if(b(A)){const I={};for(let g=0;g1)return g&&q(I)?I.call(C&&C.proxy):I}}const QE={},BE=()=>Object.create(QE),EE=A=>Object.getPrototypeOf(A)===QE;function Ho(A,I,g,C=!1){const Q={},B=BE();A.propsDefaults=Object.create(null),iE(A,I,Q,B);for(const E in A.propsOptions[0])E in Q||(Q[E]=void 0);g?A.props=C?Q:Jg(Q):A.type.props?A.props=Q:A.props=B,A.attrs=B}function mo(A,I,g,C){const{props:Q,attrs:B,vnode:{patchFlag:E}}=A,i=v(Q),[o]=A.propsOptions;let e=!1;if((C||E>0)&&!(E&16)){if(E&8){const t=A.vnode.dynamicProps;for(let D=0;D{o=!0;const[l,a]=oE(D,I,!0);eA(E,l),a&&i.push(...a)};!g&&I.mixins.length&&I.mixins.forEach(t),A.extends&&t(A.extends),A.mixins&&A.mixins.forEach(t)}if(!B&&!o)return CA(A)&&C.set(A,LI),LI;if(b(B))for(let t=0;tA[0]==="_"||A==="$stable",BQ=A=>b(A)?A.map(PA):[PA(A)],bo=(A,I,g)=>{if(I._n)return I;const C=eo((...Q)=>BQ(I(...Q)),g);return C._c=!1,C},eE=(A,I,g)=>{const C=A._ctx;for(const Q in A){if(tE(Q))continue;const B=A[Q];if(q(B))I[Q]=bo(Q,B,C);else if(B!=null){const E=BQ(B);I[Q]=()=>E}}},sE=(A,I)=>{const g=BQ(I);A.slots.default=()=>g},DE=(A,I,g)=>{for(const C in I)(g||C!=="_")&&(A[C]=I[C])},Vo=(A,I,g)=>{const C=A.slots=BE();if(A.vnode.shapeFlag&32){const Q=I._;Q?(DE(C,I,g),g&&UB(C,"_",Q,!0)):eE(I,C)}else I&&sE(A,I)},Zo=(A,I,g)=>{const{vnode:C,slots:Q}=A;let B=!0,E=z;if(C.shapeFlag&32){const i=I._;i?g&&i===1?B=!1:DE(Q,I,g):(B=!I.$stable,eE(I,Q)),E=I}else I&&(sE(A,I),E={default:1});if(B)for(const i in Q)!tE(i)&&E[i]==null&&delete Q[i]},dA=Ct;function qo(A){return Wo(A)}function Wo(A,I){const g=Og();g.__VUE__=!0;const{insert:C,remove:Q,patchProp:B,createElement:E,createText:i,createComment:o,setText:e,setElementText:t,parentNode:D,nextSibling:l,setScopeId:a=$A,insertStaticContent:R}=A,h=(s,n,w,F=null,N=null,G=null,Y=void 0,f=null,U=!!n.dynamicChildren)=>{if(s===n)return;s&&!vI(s,n)&&(F=hg(s),OA(s,N,G,!0),s=null),n.patchFlag===-2&&(U=!1,n.dynamicChildren=null);const{type:y,ref:m,shapeFlag:u}=n;switch(y){case $g:M(s,n,w,F);break;case ZI:S(s,n,w,F);break;case nC:s==null&&L(n,w,F,Y);break;case JA:DA(s,n,w,F,N,G,Y,f,U);break;default:u&1?H(s,n,w,F,N,G,Y,f,U):u&6?Rg(s,n,w,F,N,G,Y,f,U):(u&64||u&128)&&y.process(s,n,w,F,N,G,Y,f,U,OI)}m!=null&&N&&fC(m,s&&s.ref,G,n||s,!n)},M=(s,n,w,F)=>{if(s==null)C(n.el=i(n.children),w,F);else{const N=n.el=s.el;n.children!==s.children&&e(N,n.children)}},S=(s,n,w,F)=>{s==null?C(n.el=o(n.children||""),w,F):n.el=s.el},L=(s,n,w,F)=>{[s.el,s.anchor]=R(s.children,n,w,F,s.el,s.anchor)},d=({el:s,anchor:n},w,F)=>{let N;for(;s&&s!==n;)N=l(s),C(s,w,F),s=N;C(n,w,F)},T=({el:s,anchor:n})=>{let w;for(;s&&s!==n;)w=l(s),Q(s),s=w;Q(n)},H=(s,n,w,F,N,G,Y,f,U)=>{n.type==="svg"?Y="svg":n.type==="math"&&(Y="mathml"),s==null?yA(n,w,F,N,G,Y,f,U):uI(s,n,N,G,Y,f,U)},yA=(s,n,w,F,N,G,Y,f)=>{let U,y;const{props:m,shapeFlag:u,transition:K,dirs:p}=s;if(U=s.el=E(s.type,G,m&&m.is,m),u&8?t(U,s.children):u&16&&YA(s.children,U,null,F,N,sC(s,G),Y,f),p&&FI(s,null,F,"created"),MA(U,s,s.scopeId,Y,F),m){for(const $ in m)$!=="value"&&!Ig($)&&B(U,$,null,m[$],G,F);"value"in m&&B(U,"value",null,m.value,G),(y=m.onVnodeBeforeMount)&&xA(y,F,s)}p&&FI(s,null,F,"beforeMount");const j=Oo(N,K);j&&K.beforeEnter(U),C(U,n,w),((y=m&&m.onVnodeMounted)||j||p)&&dA(()=>{y&&xA(y,F,s),j&&K.enter(U),p&&FI(s,null,F,"mounted")},N)},MA=(s,n,w,F,N)=>{if(w&&a(s,w),F)for(let G=0;G{for(let y=U;y{const f=n.el=s.el;let{patchFlag:U,dynamicChildren:y,dirs:m}=n;U|=s.patchFlag&16;const u=s.props||z,K=n.props||z;let p;if(w&&yI(w,!1),(p=K.onVnodeBeforeUpdate)&&xA(p,w,n,s),m&&FI(n,s,w,"beforeUpdate"),w&&yI(w,!0),(u.innerHTML&&K.innerHTML==null||u.textContent&&K.textContent==null)&&t(f,""),y?O(s.dynamicChildren,y,f,w,F,sC(n,N),G):Y||_(s,n,f,null,w,F,sC(n,N),G,!1),U>0){if(U&16)BA(f,u,K,w,N);else if(U&2&&u.class!==K.class&&B(f,"class",null,K.class,N),U&4&&B(f,"style",u.style,K.style,N),U&8){const j=n.dynamicProps;for(let $=0;${p&&xA(p,w,n,s),m&&FI(n,s,w,"updated")},F)},O=(s,n,w,F,N,G,Y)=>{for(let f=0;f{if(n!==w){if(n!==z)for(const G in n)!Ig(G)&&!(G in w)&&B(s,G,n[G],null,N,F);for(const G in w){if(Ig(G))continue;const Y=w[G],f=n[G];Y!==f&&G!=="value"&&B(s,G,f,Y,N,F)}"value"in w&&B(s,"value",n.value,w.value,N)}},DA=(s,n,w,F,N,G,Y,f,U)=>{const y=n.el=s?s.el:i(""),m=n.anchor=s?s.anchor:i("");let{patchFlag:u,dynamicChildren:K,slotScopeIds:p}=n;p&&(f=f?f.concat(p):p),s==null?(C(y,w,F),C(m,w,F),YA(n.children||[],w,m,N,G,Y,f,U)):u>0&&u&64&&K&&s.dynamicChildren?(O(s.dynamicChildren,K,w,N,G,Y,f),(n.key!=null||N&&n===N.subTree)&&nE(s,n,!0)):_(s,n,w,m,N,G,Y,f,U)},Rg=(s,n,w,F,N,G,Y,f,U)=>{n.slotScopeIds=f,s==null?n.shapeFlag&512?N.ctx.activate(n,w,F,Y,U):gC(n,w,F,N,G,Y,U):NQ(s,n,U)},gC=(s,n,w,F,N,G,Y)=>{const f=s.component=et(s,F,N);if($B(s)&&(f.ctx.renderer=OI),st(f,!1,Y),f.asyncDep){if(N&&N.registerDep(f,cA,Y),!s.el){const U=f.subTree=pA(ZI);S(null,U,n,w)}}else cA(f,s,n,w,N,G,Y)},NQ=(s,n,w)=>{const F=n.component=s.component;if(It(s,n,w))if(F.asyncDep&&!F.asyncResolved){IA(F,n,w);return}else F.next=n,F.update();else n.el=s.el,F.vnode=n},cA=(s,n,w,F,N,G,Y)=>{const f=()=>{if(s.isMounted){let{next:u,bu:K,u:p,parent:j,vnode:$}=s;{const SA=rE(s);if(SA){u&&(u.el=$.el,IA(s,u,Y)),SA.asyncDep.then(()=>{s.isUnmounted||f()});return}}let P=u,uA;yI(s,!1),u?(u.el=$.el,IA(s,u,Y)):u=$,K&&BC(K),(uA=u.props&&u.props.onVnodeBeforeUpdate)&&xA(uA,j,u,$),yI(s,!0);const nA=DC(s),bA=s.subTree;s.subTree=nA,h(bA,nA,D(bA.el),hg(bA),s,N,G),u.el=nA.el,P===null&>(s,nA.el),p&&dA(p,N),(uA=u.props&&u.props.onVnodeUpdated)&&dA(()=>xA(uA,j,u,$),N)}else{let u;const{el:K,props:p}=n,{bm:j,m:$,parent:P,root:uA,type:nA}=s,bA=bI(n);if(yI(s,!1),j&&BC(j),!bA&&(u=p&&p.onVnodeBeforeMount)&&xA(u,P,n),yI(s,!0),K&&yQ){const SA=()=>{s.subTree=DC(s),yQ(K,s.subTree,s,N,null)};bA&&nA.__asyncHydrate?nA.__asyncHydrate(K,s,SA):SA()}else{uA.ce&&uA.ce._injectChildStyle(nA);const SA=s.subTree=DC(s);h(null,SA,w,F,s,N,G),n.el=SA.el}if($&&dA($,N),!bA&&(u=p&&p.onVnodeMounted)){const SA=n;dA(()=>xA(u,P,SA),N)}(n.shapeFlag&256||P&&bI(P.vnode)&&P.vnode.shapeFlag&256)&&s.a&&dA(s.a,N),s.isMounted=!0,n=w=F=null}};s.scope.on();const U=s.effect=new SB(f);s.scope.off();const y=s.update=U.run.bind(U),m=s.job=U.runIfDirty.bind(U);m.i=s,m.id=s.uid,U.scheduler=()=>gQ(m),yI(s,!0),y()},IA=(s,n,w)=>{n.component=s;const F=s.vnode.props;s.vnode=n,s.next=null,mo(s,n.props,F,w),Zo(s,n.children,w),RI(),uQ(s),NI()},_=(s,n,w,F,N,G,Y,f,U=!1)=>{const y=s&&s.children,m=s?s.shapeFlag:0,u=n.children,{patchFlag:K,shapeFlag:p}=n;if(K>0){if(K&128){Ng(y,u,w,F,N,G,Y,f,U);return}else if(K&256){hI(y,u,w,F,N,G,Y,f,U);return}}p&8?(m&16&&WI(y,N,G),u!==y&&t(w,u)):m&16?p&16?Ng(y,u,w,F,N,G,Y,f,U):WI(y,N,G,!0):(m&8&&t(w,""),p&16&&YA(u,w,F,N,G,Y,f,U))},hI=(s,n,w,F,N,G,Y,f,U)=>{s=s||LI,n=n||LI;const y=s.length,m=n.length,u=Math.min(y,m);let K;for(K=0;Km?WI(s,N,G,!0,!1,u):YA(n,w,F,N,G,Y,f,U,u)},Ng=(s,n,w,F,N,G,Y,f,U)=>{let y=0;const m=n.length;let u=s.length-1,K=m-1;for(;y<=u&&y<=K;){const p=s[y],j=n[y]=U?sI(n[y]):PA(n[y]);if(vI(p,j))h(p,j,w,null,N,G,Y,f,U);else break;y++}for(;y<=u&&y<=K;){const p=s[u],j=n[K]=U?sI(n[K]):PA(n[K]);if(vI(p,j))h(p,j,w,null,N,G,Y,f,U);else break;u--,K--}if(y>u){if(y<=K){const p=K+1,j=pK)for(;y<=u;)OA(s[y],N,G,!0),y++;else{const p=y,j=y,$=new Map;for(y=j;y<=K;y++){const kA=n[y]=U?sI(n[y]):PA(n[y]);kA.key!=null&&$.set(kA.key,y)}let P,uA=0;const nA=K-j+1;let bA=!1,SA=0;const jI=new Array(nA);for(y=0;y=nA){OA(kA,N,G,!0);continue}let jA;if(kA.key!=null)jA=$.get(kA.key);else for(P=j;P<=K;P++)if(jI[P-j]===0&&vI(kA,n[P])){jA=P;break}jA===void 0?OA(kA,N,G,!0):(jI[jA-j]=y+1,jA>=SA?SA=jA:bA=!0,h(kA,n[jA],w,null,N,G,Y,f,U),uA++)}const MQ=bA?jo(jI):LI;for(P=MQ.length-1,y=nA-1;y>=0;y--){const kA=j+y,jA=n[kA],UQ=kA+1{const{el:G,type:Y,transition:f,children:U,shapeFlag:y}=s;if(y&6){GI(s.component.subTree,n,w,F);return}if(y&128){s.suspense.move(n,w,F);return}if(y&64){Y.move(s,n,w,OI);return}if(Y===JA){C(G,n,w);for(let u=0;uf.enter(G),N);else{const{leave:u,delayLeave:K,afterLeave:p}=f,j=()=>C(G,n,w),$=()=>{u(G,()=>{j(),p&&p()})};K?K(G,j,$):$()}else C(G,n,w)},OA=(s,n,w,F=!1,N=!1)=>{const{type:G,props:Y,ref:f,children:U,dynamicChildren:y,shapeFlag:m,patchFlag:u,dirs:K,cacheIndex:p}=s;if(u===-2&&(N=!1),f!=null&&fC(f,null,w,s,!0),p!=null&&(n.renderCache[p]=void 0),m&256){n.ctx.deactivate(s);return}const j=m&1&&K,$=!bI(s);let P;if($&&(P=Y&&Y.onVnodeBeforeUnmount)&&xA(P,n,s),m&6)ci(s.component,w,F);else{if(m&128){s.suspense.unmount(w,F);return}j&&FI(s,null,n,"beforeUnmount"),m&64?s.type.remove(s,n,w,OI,F):y&&!y.hasOnce&&(G!==JA||u>0&&u&64)?WI(y,n,w,!1,!0):(G===JA&&u&384||!N&&m&16)&&WI(U,n,w),F&&hQ(s)}($&&(P=Y&&Y.onVnodeUnmounted)||j)&&dA(()=>{P&&xA(P,n,s),j&&FI(s,null,n,"unmounted")},w)},hQ=s=>{const{type:n,el:w,anchor:F,transition:N}=s;if(n===JA){wi(w,F);return}if(n===nC){T(s);return}const G=()=>{Q(w),N&&!N.persisted&&N.afterLeave&&N.afterLeave()};if(s.shapeFlag&1&&N&&!N.persisted){const{leave:Y,delayLeave:f}=N,U=()=>Y(w,G);f?f(s.el,G,U):U()}else G()},wi=(s,n)=>{let w;for(;s!==n;)w=l(s),Q(s),s=w;Q(n)},ci=(s,n,w)=>{const{bum:F,scope:N,job:G,subTree:Y,um:f,m:U,a:y}=s;TQ(U),TQ(y),F&&BC(F),N.stop(),G&&(G.flags|=8,OA(Y,s,n,w)),f&&dA(f,n),dA(()=>{s.isUnmounted=!0},n),n&&n.pendingBranch&&!n.isUnmounted&&s.asyncDep&&!s.asyncResolved&&s.suspenseId===n.pendingId&&(n.deps--,n.deps===0&&n.resolve())},WI=(s,n,w,F=!1,N=!1,G=0)=>{for(let Y=G;Y{if(s.shapeFlag&6)return hg(s.component.subTree);if(s.shapeFlag&128)return s.suspense.next();const n=l(s.anchor||s.el),w=n&&n[so];return w?l(w):n};let CC=!1;const GQ=(s,n,w)=>{s==null?n._vnode&&OA(n._vnode,null,null,!0):h(n._vnode||null,s,n,null,null,null,w),n._vnode=s,CC||(CC=!0,uQ(),XB(),CC=!1)},OI={p:h,um:OA,m:GI,r:hQ,mt:gC,mc:YA,pc:_,pbc:O,n:hg,o:A};let FQ,yQ;return{render:GQ,hydrate:FQ,createApp:Lo(GQ,FQ)}}function sC({type:A,props:I},g){return g==="svg"&&A==="foreignObject"||g==="mathml"&&A==="annotation-xml"&&I&&I.encoding&&I.encoding.includes("html")?void 0:g}function yI({effect:A,job:I},g){g?(A.flags|=32,I.flags|=4):(A.flags&=-33,I.flags&=-5)}function Oo(A,I){return(!A||A&&!A.pendingBranch)&&I&&!I.persisted}function nE(A,I,g=!1){const C=A.children,Q=I.children;if(b(C)&&b(Q))for(let B=0;B>1,A[g[i]]0&&(I[C]=g[B-1]),g[B]=C)}}for(B=g.length,E=g[B-1];B-- >0;)g[B]=E,E=I[E];return g}function rE(A){const I=A.subTree.component;if(I)return I.asyncDep&&!I.asyncResolved?I:rE(I)}function TQ(A){if(A)for(let I=0;IYg(xo);function Xo(A,I){return EQ(A,null,{flush:"sync"})}function lI(A,I,g){return EQ(A,I,g)}function EQ(A,I,g=z){const{immediate:C,deep:Q,flush:B,once:E}=g,i=eA({},g),o=I&&C||!I&&B!=="post";let e;if(eg){if(B==="sync"){const a=vo();e=a.__watcherHandles||(a.__watcherHandles=[])}else if(!o){const a=()=>{};return a.stop=$A,a.resume=$A,a.pause=$A,a}}const t=lA;i.call=(a,R,h)=>AI(a,t,R,h);let D=!1;B==="post"?i.scheduler=a=>{dA(a,t&&t.suspense)}:B!=="sync"&&(D=!0,i.scheduler=(a,R)=>{R?a():gQ(a)}),i.augmentJob=a=>{I&&(a.flags|=4),D&&(a.flags|=2,t&&(a.id=t.uid,a.i=t))};const l=Eo(A,I,i);return eg&&(e?e.push(l):o&&l()),l}function zo(A,I,g){const C=this.proxy,Q=iA(A)?A.includes(".")?aE(C,A):()=>C[A]:A.bind(C,C);let B;q(I)?B=I:(B=I.handler,g=I);const E=rg(this),i=EQ(Q,B.bind(C),g);return E(),i}function aE(A,I){const g=I.split(".");return()=>{let C=A;for(let Q=0;Q{let t,D=z,l;return Xo(()=>{const a=A[Q];fA(t,a)&&(t=a,e())}),{get(){return o(),g.get?g.get(t):t},set(a){const R=g.set?g.set(a):a;if(!fA(R,t)&&!(D!==z&&fA(a,D)))return;const h=C.vnode.props;h&&(I in h||Q in h||B in h)&&(`onUpdate:${I}`in h||`onUpdate:${Q}`in h||`onUpdate:${B}`in h)||(t=a,e()),C.emit(`update:${I}`,R),fA(a,R)&&fA(a,D)&&!fA(R,l)&&e(),D=a,l=R}}});return i[Symbol.iterator]=()=>{let o=0;return{next(){return o<2?{value:o++?E||z:i,done:!1}:{done:!0}}}},i}const lE=(A,I)=>I==="modelValue"||I==="model-value"?A.modelModifiers:A[`${I}Modifiers`]||A[`${iI(I)}Modifiers`]||A[`${cI(I)}Modifiers`];function _o(A,I,...g){if(A.isUnmounted)return;const C=A.vnode.props||z;let Q=g;const B=I.startsWith("update:"),E=B&&lE(C,I.slice(7));E&&(E.trim&&(Q=g.map(t=>iA(t)?t.trim():t)),E.number&&(Q=g.map(yi)));let i,o=C[i=QC(I)]||C[i=QC(iI(I))];!o&&B&&(o=C[i=QC(cI(I))]),o&&AI(o,A,6,Q);const e=C[i+"Once"];if(e){if(!A.emitted)A.emitted={};else if(A.emitted[i])return;A.emitted[i]=!0,AI(e,A,6,Q)}}function wE(A,I,g=!1){const C=I.emitsCache,Q=C.get(A);if(Q!==void 0)return Q;const B=A.emits;let E={},i=!1;if(!q(A)){const o=e=>{const t=wE(e,I,!0);t&&(i=!0,eA(E,t))};!g&&I.mixins.length&&I.mixins.forEach(o),A.extends&&o(A.extends),A.mixins&&A.mixins.forEach(o)}return!B&&!i?(CA(A)&&C.set(A,null),null):(b(B)?B.forEach(o=>E[o]=null):eA(E,B),CA(A)&&C.set(A,E),E)}function _g(A,I){return!A||!Zg(I)?!1:(I=I.slice(2).replace(/Once$/,""),X(A,I[0].toLowerCase()+I.slice(1))||X(A,cI(I))||X(A,I))}function DC(A){const{type:I,vnode:g,proxy:C,withProxy:Q,propsOptions:[B],slots:E,attrs:i,emit:o,render:e,renderCache:t,props:D,data:l,setupState:a,ctx:R,inheritAttrs:h}=A,M=Lg(A);let S,L;try{if(g.shapeFlag&4){const T=Q||C,H=T;S=PA(e.call(H,T,t,D,a,l,R)),L=i}else{const T=I;S=PA(T.length>1?T(D,{attrs:i,slots:E,emit:o}):T(D,null)),L=I.props?i:$o(i)}}catch(T){Bg.length=0,vg(T,A,1),S=pA(ZI)}let d=S;if(L&&h!==!1){const T=Object.keys(L),{shapeFlag:H}=d;T.length&&H&7&&(B&&T.some(WC)&&(L=At(L,B)),d=qI(d,L,!1,!0))}return g.dirs&&(d=qI(d,null,!1,!0),d.dirs=d.dirs?d.dirs.concat(g.dirs):g.dirs),g.transition&&CQ(d,g.transition),S=d,Lg(M),S}const $o=A=>{let I;for(const g in A)(g==="class"||g==="style"||Zg(g))&&((I||(I={}))[g]=A[g]);return I},At=(A,I)=>{const g={};for(const C in A)(!WC(C)||!(C.slice(9)in I))&&(g[C]=A[C]);return g};function It(A,I,g){const{props:C,children:Q,component:B}=A,{props:E,children:i,patchFlag:o}=I,e=B.emitsOptions;if(I.dirs||I.transition)return!0;if(g&&o>=0){if(o&1024)return!0;if(o&16)return C?HQ(C,E,e):!!E;if(o&8){const t=I.dynamicProps;for(let D=0;DA.__isSuspense;function Ct(A,I){I&&I.pendingBranch?b(A)?I.effects.push(...A):I.effects.push(A):to(A)}const JA=Symbol.for("v-fgt"),$g=Symbol.for("v-txt"),ZI=Symbol.for("v-cmt"),nC=Symbol.for("v-stc"),Bg=[];let LA=null;function ZA(A=!1){Bg.push(LA=A?null:[])}function Qt(){Bg.pop(),LA=Bg[Bg.length-1]||null}let tg=1;function mQ(A){tg+=A,A<0&&LA&&(LA.hasOnce=!0)}function RE(A){return A.dynamicChildren=tg>0?LA||LI:null,Qt(),tg>0&&LA&&LA.push(A),A}function aI(A,I,g,C,Q,B){return RE(oA(A,I,g,C,Q,B,!0))}function kC(A,I,g,C,Q){return RE(pA(A,I,g,C,Q,!0))}function iQ(A){return A?A.__v_isVNode===!0:!1}function vI(A,I){return A.type===I.type&&A.key===I.key}const NE=({key:A})=>A??null,ug=({ref:A,ref_key:I,ref_for:g})=>(typeof A=="number"&&(A=""+A),A!=null?iA(A)||wA(A)||q(A)?{i:FA,r:A,k:I,f:!!g}:A:null);function oA(A,I=null,g=null,C=0,Q=null,B=A===JA?0:1,E=!1,i=!1){const o={__v_isVNode:!0,__v_skip:!0,type:A,props:I,key:I&&NE(I),ref:I&&ug(I),scopeId:PB,slotScopeIds:null,children:g,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:B,patchFlag:C,dynamicProps:Q,dynamicChildren:null,appContext:null,ctx:FA};return i?(oQ(o,g),B&128&&A.normalize(o)):g&&(o.shapeFlag|=iA(g)?8:16),tg>0&&!E&&LA&&(o.patchFlag>0||B&6)&&o.patchFlag!==32&&LA.push(o),o}const pA=Bt;function Bt(A,I=null,g=null,C=0,Q=null,B=!1){if((!A||A===yo)&&(A=ZI),iQ(A)){const i=qI(A,I,!0);return g&&oQ(i,g),tg>0&&!B&&LA&&(i.shapeFlag&6?LA[LA.indexOf(A)]=i:LA.push(i)),i.patchFlag=-2,i}if(at(A)&&(A=A.__vccOpts),I){I=Et(I);let{class:i,style:o}=I;i&&!iA(i)&&(I.class=vC(i)),CA(o)&&(IQ(o)&&!b(o)&&(o=eA({},o)),I.style=xC(o))}const E=iA(A)?1:cE(A)?128:Do(A)?64:CA(A)?4:q(A)?2:0;return oA(A,I,g,C,Q,E,B,!0)}function Et(A){return A?IQ(A)||EE(A)?eA({},A):A:null}function qI(A,I,g=!1,C=!1){const{props:Q,ref:B,patchFlag:E,children:i,transition:o}=A,e=I?hE(Q||{},I):Q,t={__v_isVNode:!0,__v_skip:!0,type:A.type,props:e,key:e&&NE(e),ref:I&&I.ref?g&&B?b(B)?B.concat(ug(I)):[B,ug(I)]:ug(I):B,scopeId:A.scopeId,slotScopeIds:A.slotScopeIds,children:i,target:A.target,targetStart:A.targetStart,targetAnchor:A.targetAnchor,staticCount:A.staticCount,shapeFlag:A.shapeFlag,patchFlag:I&&A.type!==JA?E===-1?16:E|16:E,dynamicProps:A.dynamicProps,dynamicChildren:A.dynamicChildren,appContext:A.appContext,dirs:A.dirs,transition:o,component:A.component,suspense:A.suspense,ssContent:A.ssContent&&qI(A.ssContent),ssFallback:A.ssFallback&&qI(A.ssFallback),el:A.el,anchor:A.anchor,ctx:A.ctx,ce:A.ce};return o&&C&&CQ(t,o.clone(t)),t}function it(A=" ",I=0){return pA($g,null,A,I)}function PA(A){return A==null||typeof A=="boolean"?pA(ZI):b(A)?pA(JA,null,A.slice()):iQ(A)?sI(A):pA($g,null,String(A))}function sI(A){return A.el===null&&A.patchFlag!==-1||A.memo?A:qI(A)}function oQ(A,I){let g=0;const{shapeFlag:C}=A;if(I==null)I=null;else if(b(I))g=16;else if(typeof I=="object")if(C&65){const Q=I.default;Q&&(Q._c&&(Q._d=!1),oQ(A,Q()),Q._c&&(Q._d=!0));return}else{g=32;const Q=I._;!Q&&!EE(I)?I._ctx=FA:Q===3&&FA&&(FA.slots._===1?I._=1:(I._=2,A.patchFlag|=1024))}else q(I)?(I={default:I,_ctx:FA},g=32):(I=String(I),C&64?(g=16,I=[it(I)]):g=8);A.children=I,A.shapeFlag|=g}function hE(...A){const I={};for(let g=0;glA||FA;let mg,dC;{const A=Og(),I=(g,C)=>{let Q;return(Q=A[g])||(Q=A[g]=[]),Q.push(C),B=>{Q.length>1?Q.forEach(E=>E(B)):Q[0](B)}};mg=I("__VUE_INSTANCE_SETTERS__",g=>lA=g),dC=I("__VUE_SSR_SETTERS__",g=>eg=g)}const rg=A=>{const I=lA;return mg(A),A.scope.on(),()=>{A.scope.off(),mg(I)}},pQ=()=>{lA&&lA.scope.off(),mg(null)};function GE(A){return A.vnode.shapeFlag&4}let eg=!1;function st(A,I=!1,g=!1){I&&dC(I);const{props:C,children:Q}=A.vnode,B=GE(A);Ho(A,C,B,I),Vo(A,Q,g);const E=B?Dt(A,I):void 0;return I&&dC(!1),E}function Dt(A,I){const g=A.type;A.accessCache=Object.create(null),A.proxy=new Proxy(A.ctx,Uo);const{setup:C}=g;if(C){RI();const Q=A.setupContext=C.length>1?rt(A):null,B=rg(A),E=Dg(C,A,0,[A.props,Q]),i=GB(E);if(NI(),B(),(i||A.sp)&&!bI(A)&&_B(A),i){if(E.then(pQ,pQ),I)return E.then(o=>{bQ(A,o,I)}).catch(o=>{vg(o,A,0)});A.asyncDep=E}else bQ(A,E,I)}else FE(A,I)}function bQ(A,I,g){q(I)?A.type.__ssrInlineRender?A.ssrRender=I:A.render=I:CA(I)&&(A.setupState=jB(I)),FE(A,g)}let VQ;function FE(A,I,g){const C=A.type;if(!A.render){if(!I&&VQ&&!C.render){const Q=C.template||QQ(A).template;if(Q){const{isCustomElement:B,compilerOptions:E}=A.appContext.config,{delimiters:i,compilerOptions:o}=C,e=eA(eA({isCustomElement:B,delimiters:i},E),o);C.render=VQ(Q,e)}}A.render=C.render||$A}{const Q=rg(A);RI();try{Jo(A)}finally{NI(),Q()}}}const nt={get(A,I){return rA(A,"get",""),A[I]}};function rt(A){const I=g=>{A.exposed=g||{}};return{attrs:new Proxy(A.attrs,nt),slots:A.slots,emit:A.emit,expose:I}}function eQ(A){return A.exposed?A.exposeProxy||(A.exposeProxy=new Proxy(jB(Pi(A.exposed)),{get(I,g){if(g in I)return I[g];if(g in Qg)return Qg[g](A)},has(I,g){return g in I||g in Qg}})):A.proxy}function at(A){return q(A)&&"__vccOpts"in A}const _A=(A,I)=>Qo(A,I,eg),lt="3.5.12";/** +**/function Dg(A,I,g,C){try{return C?A(...C):A()}catch(Q){Xg(Q,I,g)}}function II(A,I,g,C){if(Z(A)){const Q=Dg(A,I,g,C);return Q&&GB(Q)&&Q.catch(B=>{Xg(B,I,g)}),Q}if(p(A)){const Q=[];for(let B=0;B>>1,Q=FA[C],B=og(Q);B=og(g)?FA.push(A):FA.splice(to(I),0,A),A.flags|=1,vB()}}function vB(){Kg||(Kg=xB.then(zB))}function eo(A){p(A)?pI.push(...A):sI&&A.id===-1?sI.splice(dI+1,0,A):A.flags&1||(pI.push(A),A.flags|=1),vB()}function SQ(A,I,g=XA+1){for(;gog(g)-og(C));if(pI.length=0,sI){sI.push(...I);return}for(sI=I,dI=0;dIA.id==null?A.flags&2?-1:1/0:A.id;function zB(A){try{for(XA=0;XA{C._d&&HQ(-1);const B=Lg(I);let E;try{E=A(...Q)}finally{Lg(B),C._d&&HQ(1)}return E};return C._n=!0,C._c=!0,C._d=!0,C}function FI(A,I,g,C){const Q=A.dirs,B=I&&I.dirs;for(let E=0;EA.__isTeleport;function QQ(A,I){A.shapeFlag&6&&A.component?(A.transition=I,QQ(A.component.subTree,I)):A.shapeFlag&128?(A.ssContent.transition=I.clone(A.ssContent),A.ssFallback.transition=I.clone(A.ssFallback)):A.transition=I}function _B(A){A.ids=[A.ids[0]+A.ids[2]+++"-",0,0]}function YC(A,I,g,C,Q=!1){if(p(A)){A.forEach((R,h)=>YC(R,I&&(p(I)?I[h]:I),g,C,Q));return}if(bI(C)&&!Q)return;const B=C.shapeFlag&4?sQ(C.component):C.el,E=Q?null:B,{i,r:o}=A,e=I&&I.r,t=i.refs===z?i.refs={}:i.refs,D=i.setupState,l=v(D),a=D===z?()=>!1:R=>X(l,R);if(e!=null&&e!==o&&(oA(e)?(t[e]=null,a(e)&&(D[e]=null)):wA(e)&&(e.value=null)),Z(o))Dg(o,i,12,[E,t]);else{const R=oA(o),h=wA(o);if(R||h){const M=()=>{if(A.f){const k=R?a(o)?D[o]:t[o]:o.value;Q?p(k)&&xC(k,B):p(k)?k.includes(B)||k.push(B):R?(t[o]=[B],a(o)&&(D[o]=t[o])):(o.value=[B],A.k&&(t[A.k]=o.value))}else R?(t[o]=E,a(o)&&(D[o]=E)):h&&(o.value=E,A.k&&(t[A.k]=E))};E?(M.id=-1,kA(M,g)):M()}}}Og().requestIdleCallback;Og().cancelIdleCallback;const bI=A=>!!A.type.__asyncLoader,$B=A=>A.type.__isKeepAlive;function ro(A,I){AE(A,"a",I)}function ao(A,I){AE(A,"da",I)}function AE(A,I,g=lA){const C=A.__wdc||(A.__wdc=()=>{let Q=g;for(;Q;){if(Q.isDeactivated)return;Q=Q.parent}return A()});if(Pg(I,C,g),g){let Q=g.parent;for(;Q&&Q.parent;)$B(Q.parent.vnode)&&lo(C,I,g,Q),Q=Q.parent}}function lo(A,I,g,C){const Q=Pg(I,A,C,!0);_g(()=>{xC(C[I],Q)},g)}function Pg(A,I,g=lA,C=!1){if(g){const Q=g[A]||(g[A]=[]),B=I.__weh||(I.__weh=(...E)=>{RI();const i=rg(g),o=II(I,g,A,E);return i(),NI(),o});return C?Q.unshift(B):Q.push(B),B}}const eI=A=>(I,g=lA)=>{(!eg||A==="sp")&&Pg(A,(...C)=>I(...C),g)},wo=eI("bm"),ng=eI("m"),co=eI("bu"),Ro=eI("u"),No=eI("bum"),_g=eI("um"),ho=eI("sp"),Go=eI("rtg"),Fo=eI("rtc");function yo(A,I=lA){Pg("ec",A,I)}const Mo=Symbol.for("v-ndc");function sC(A,I,g,C){let Q;const B=g,E=p(A);if(E||oA(A)){const i=E&&HI(A);let o=!1;i&&(o=!HA(A),A=vg(A)),Q=new Array(A.length);for(let e=0,t=A.length;eI(i,o,void 0,B));else{const i=Object.keys(A);Q=new Array(i.length);for(let o=0,e=i.length;ooQ(I)?!(I.type===ZI||I.type===yA&&!IE(I.children)):!0)?A:null}const uC=A=>A?GE(A)?sQ(A):uC(A.parent):null,Qg=eA(Object.create(null),{$:A=>A,$el:A=>A.vnode.el,$data:A=>A.data,$props:A=>A.props,$attrs:A=>A.attrs,$slots:A=>A.slots,$refs:A=>A.refs,$parent:A=>uC(A.parent),$root:A=>uC(A.root),$host:A=>A.ce,$emit:A=>A.emit,$options:A=>BQ(A),$forceUpdate:A=>A.f||(A.f=()=>{CQ(A.update)}),$nextTick:A=>A.n||(A.n=zg.bind(A.proxy)),$watch:A=>Po.bind(A)}),DC=(A,I)=>A!==z&&!A.__isScriptSetup&&X(A,I),fo={get({_:A},I){if(I==="__v_skip")return!0;const{ctx:g,setupState:C,data:Q,props:B,accessCache:E,type:i,appContext:o}=A;let e;if(I[0]!=="$"){const a=E[I];if(a!==void 0)switch(a){case 1:return C[I];case 2:return Q[I];case 4:return g[I];case 3:return B[I]}else{if(DC(C,I))return E[I]=1,C[I];if(Q!==z&&X(Q,I))return E[I]=2,Q[I];if((e=A.propsOptions[0])&&X(e,I))return E[I]=3,B[I];if(g!==z&&X(g,I))return E[I]=4,g[I];SC&&(E[I]=0)}}const t=Qg[I];let D,l;if(t)return I==="$attrs"&&rA(A.attrs,"get",""),t(A);if((D=i.__cssModules)&&(D=D[I]))return D;if(g!==z&&X(g,I))return E[I]=4,g[I];if(l=o.config.globalProperties,X(l,I))return l[I]},set({_:A},I,g){const{data:C,setupState:Q,ctx:B}=A;return DC(Q,I)?(Q[I]=g,!0):C!==z&&X(C,I)?(C[I]=g,!0):X(A.props,I)||I[0]==="$"&&I.slice(1)in A?!1:(B[I]=g,!0)},has({_:{data:A,setupState:I,accessCache:g,ctx:C,appContext:Q,propsOptions:B}},E){let i;return!!g[E]||A!==z&&X(A,E)||DC(I,E)||(i=B[0])&&X(i,E)||X(C,E)||X(Qg,E)||X(Q.config.globalProperties,E)},defineProperty(A,I,g){return g.get!=null?A._.accessCache[I]=0:X(g,"value")&&this.set(A,I,g.value,null),Reflect.defineProperty(A,I,g)}};function Tg(A){return p(A)?A.reduce((I,g)=>(I[g]=null,I),{}):A}function Jo(A,I){return!A||!I?A||I:p(A)&&p(I)?A.concat(I):eA({},Tg(A),Tg(I))}let SC=!0;function Yo(A){const I=BQ(A),g=A.proxy,C=A.ctx;SC=!1,I.beforeCreate&&kQ(I.beforeCreate,A,"bc");const{data:Q,computed:B,methods:E,watch:i,provide:o,inject:e,created:t,beforeMount:D,mounted:l,beforeUpdate:a,updated:R,activated:h,deactivated:M,beforeDestroy:k,beforeUnmount:K,destroyed:T,unmounted:u,render:O,renderTracked:WA,renderTriggered:LA,errorCaptured:JA,serverPrefetch:uI,expose:W,inheritAttrs:BA,components:DA,directives:Rg,filters:CC}=I;if(e&&uo(e,C,null),E)for(const IA in E){const _=E[IA];Z(_)&&(C[IA]=_.bind(g))}if(Q){const IA=Q.call(g,g);CA(IA)&&(A.data=gI(IA))}if(SC=!0,B)for(const IA in B){const _=B[IA],hI=Z(_)?_.bind(g,g):Z(_.get)?_.get.bind(g,g):AI,Ng=!Z(_)&&Z(_.set)?_.set.bind(g):AI,GI=$A({get:hI,set:Ng});Object.defineProperty(C,IA,{enumerable:!0,configurable:!0,get:()=>GI.value,set:OA=>GI.value=OA})}if(i)for(const IA in i)gE(i[IA],C,g,IA);if(o){const IA=Z(o)?o.call(g):o;Reflect.ownKeys(IA).forEach(_=>{mo(_,IA[_])})}t&&kQ(t,A,"c");function cA(IA,_){p(_)?_.forEach(hI=>IA(hI.bind(g))):_&&IA(_.bind(g))}if(cA(wo,D),cA(ng,l),cA(co,a),cA(Ro,R),cA(ro,h),cA(ao,M),cA(yo,JA),cA(Fo,WA),cA(Go,LA),cA(No,K),cA(_g,u),cA(ho,uI),p(W))if(W.length){const IA=A.exposed||(A.exposed={});W.forEach(_=>{Object.defineProperty(IA,_,{get:()=>g[_],set:hI=>g[_]=hI})})}else A.exposed||(A.exposed={});O&&A.render===AI&&(A.render=O),BA!=null&&(A.inheritAttrs=BA),DA&&(A.components=DA),Rg&&(A.directives=Rg),uI&&_B(A)}function uo(A,I,g=AI){p(A)&&(A=kC(A));for(const C in A){const Q=A[C];let B;CA(Q)?"default"in Q?B=Yg(Q.from||C,Q.default,!0):B=Yg(Q.from||C):B=Yg(Q),wA(B)?Object.defineProperty(I,C,{enumerable:!0,configurable:!0,get:()=>B.value,set:E=>B.value=E}):I[C]=B}}function kQ(A,I,g){II(p(A)?A.map(C=>C.bind(I.proxy)):A.bind(I.proxy),I,g)}function gE(A,I,g,C){let Q=C.includes(".")?aE(g,C):()=>g[C];if(oA(A)){const B=I[A];Z(B)&&lI(Q,B)}else if(Z(A))lI(Q,A.bind(g));else if(CA(A))if(p(A))A.forEach(B=>gE(B,I,g,C));else{const B=Z(A.handler)?A.handler.bind(g):I[A.handler];Z(B)&&lI(Q,B,A)}}function BQ(A){const I=A.type,{mixins:g,extends:C}=I,{mixins:Q,optionsCache:B,config:{optionMergeStrategies:E}}=A.appContext,i=B.get(I);let o;return i?o=i:!Q.length&&!g&&!C?o=I:(o={},Q.length&&Q.forEach(e=>mg(o,e,E,!0)),mg(o,I,E)),CA(I)&&B.set(I,o),o}function mg(A,I,g,C=!1){const{mixins:Q,extends:B}=I;B&&mg(A,B,g,!0),Q&&Q.forEach(E=>mg(A,E,g,!0));for(const E in I)if(!(C&&E==="expose")){const i=So[E]||g&&g[E];A[E]=i?i(A[E],I[E]):I[E]}return A}const So={data:dQ,props:KQ,emits:KQ,methods:Ag,computed:Ag,beforeCreate:NA,created:NA,beforeMount:NA,mounted:NA,beforeUpdate:NA,updated:NA,beforeDestroy:NA,beforeUnmount:NA,destroyed:NA,unmounted:NA,activated:NA,deactivated:NA,errorCaptured:NA,serverPrefetch:NA,components:Ag,directives:Ag,watch:Ko,provide:dQ,inject:ko};function dQ(A,I){return I?A?function(){return eA(Z(A)?A.call(this,this):A,Z(I)?I.call(this,this):I)}:I:A}function ko(A,I){return Ag(kC(A),kC(I))}function kC(A){if(p(A)){const I={};for(let g=0;g1)return g&&Z(I)?I.call(C&&C.proxy):I}}const QE={},BE=()=>Object.create(QE),EE=A=>Object.getPrototypeOf(A)===QE;function Ho(A,I,g,C=!1){const Q={},B=BE();A.propsDefaults=Object.create(null),iE(A,I,Q,B);for(const E in A.propsOptions[0])E in Q||(Q[E]=void 0);g?A.props=C?Q:Jg(Q):A.type.props?A.props=Q:A.props=B,A.attrs=B}function po(A,I,g,C){const{props:Q,attrs:B,vnode:{patchFlag:E}}=A,i=v(Q),[o]=A.propsOptions;let e=!1;if((C||E>0)&&!(E&16)){if(E&8){const t=A.vnode.dynamicProps;for(let D=0;D{o=!0;const[l,a]=oE(D,I,!0);eA(E,l),a&&i.push(...a)};!g&&I.mixins.length&&I.mixins.forEach(t),A.extends&&t(A.extends),A.mixins&&A.mixins.forEach(t)}if(!B&&!o)return CA(A)&&C.set(A,LI),LI;if(p(B))for(let t=0;tA[0]==="_"||A==="$stable",EQ=A=>p(A)?A.map(_A):[_A(A)],Vo=(A,I,g)=>{if(I._n)return I;const C=so((...Q)=>EQ(I(...Q)),g);return C._c=!1,C},eE=(A,I,g)=>{const C=A._ctx;for(const Q in A){if(tE(Q))continue;const B=A[Q];if(Z(B))I[Q]=Vo(Q,B,C);else if(B!=null){const E=EQ(B);I[Q]=()=>E}}},sE=(A,I)=>{const g=EQ(I);A.slots.default=()=>g},DE=(A,I,g)=>{for(const C in I)(g||C!=="_")&&(A[C]=I[C])},Zo=(A,I,g)=>{const C=A.slots=BE();if(A.vnode.shapeFlag&32){const Q=I._;Q?(DE(C,I,g),g&&UB(C,"_",Q,!0)):eE(I,C)}else I&&sE(A,I)},qo=(A,I,g)=>{const{vnode:C,slots:Q}=A;let B=!0,E=z;if(C.shapeFlag&32){const i=I._;i?g&&i===1?B=!1:DE(Q,I,g):(B=!I.$stable,eE(I,Q)),E=I}else I&&(sE(A,I),E={default:1});if(B)for(const i in Q)!tE(i)&&E[i]==null&&delete Q[i]},kA=Qt;function Wo(A){return Oo(A)}function Oo(A,I){const g=Og();g.__VUE__=!0;const{insert:C,remove:Q,patchProp:B,createElement:E,createText:i,createComment:o,setText:e,setElementText:t,parentNode:D,nextSibling:l,setScopeId:a=AI,insertStaticContent:R}=A,h=(s,n,w,F=null,N=null,G=null,Y=void 0,f=null,U=!!n.dynamicChildren)=>{if(s===n)return;s&&!vI(s,n)&&(F=hg(s),OA(s,N,G,!0),s=null),n.patchFlag===-2&&(U=!1,n.dynamicChildren=null);const{type:y,ref:m,shapeFlag:S}=n;switch(y){case AC:M(s,n,w,F);break;case ZI:k(s,n,w,F);break;case aC:s==null&&K(n,w,F,Y);break;case yA:DA(s,n,w,F,N,G,Y,f,U);break;default:S&1?O(s,n,w,F,N,G,Y,f,U):S&6?Rg(s,n,w,F,N,G,Y,f,U):(S&64||S&128)&&y.process(s,n,w,F,N,G,Y,f,U,OI)}m!=null&&N&&YC(m,s&&s.ref,G,n||s,!n)},M=(s,n,w,F)=>{if(s==null)C(n.el=i(n.children),w,F);else{const N=n.el=s.el;n.children!==s.children&&e(N,n.children)}},k=(s,n,w,F)=>{s==null?C(n.el=o(n.children||""),w,F):n.el=s.el},K=(s,n,w,F)=>{[s.el,s.anchor]=R(s.children,n,w,F,s.el,s.anchor)},T=({el:s,anchor:n},w,F)=>{let N;for(;s&&s!==n;)N=l(s),C(s,w,F),s=N;C(n,w,F)},u=({el:s,anchor:n})=>{let w;for(;s&&s!==n;)w=l(s),Q(s),s=w;Q(n)},O=(s,n,w,F,N,G,Y,f,U)=>{n.type==="svg"?Y="svg":n.type==="math"&&(Y="mathml"),s==null?WA(n,w,F,N,G,Y,f,U):uI(s,n,N,G,Y,f,U)},WA=(s,n,w,F,N,G,Y,f)=>{let U,y;const{props:m,shapeFlag:S,transition:L,dirs:H}=s;if(U=s.el=E(s.type,G,m&&m.is,m),S&8?t(U,s.children):S&16&&JA(s.children,U,null,F,N,nC(s,G),Y,f),H&&FI(s,null,F,"created"),LA(U,s,s.scopeId,Y,F),m){for(const $ in m)$!=="value"&&!Ig($)&&B(U,$,null,m[$],G,F);"value"in m&&B(U,"value",null,m.value,G),(y=m.onVnodeBeforeMount)&&xA(y,F,s)}H&&FI(s,null,F,"beforeMount");const j=jo(N,L);j&&L.beforeEnter(U),C(U,n,w),((y=m&&m.onVnodeMounted)||j||H)&&kA(()=>{y&&xA(y,F,s),j&&L.enter(U),H&&FI(s,null,F,"mounted")},N)},LA=(s,n,w,F,N)=>{if(w&&a(s,w),F)for(let G=0;G{for(let y=U;y{const f=n.el=s.el;let{patchFlag:U,dynamicChildren:y,dirs:m}=n;U|=s.patchFlag&16;const S=s.props||z,L=n.props||z;let H;if(w&&yI(w,!1),(H=L.onVnodeBeforeUpdate)&&xA(H,w,n,s),m&&FI(n,s,w,"beforeUpdate"),w&&yI(w,!0),(S.innerHTML&&L.innerHTML==null||S.textContent&&L.textContent==null)&&t(f,""),y?W(s.dynamicChildren,y,f,w,F,nC(n,N),G):Y||_(s,n,f,null,w,F,nC(n,N),G,!1),U>0){if(U&16)BA(f,S,L,w,N);else if(U&2&&S.class!==L.class&&B(f,"class",null,L.class,N),U&4&&B(f,"style",S.style,L.style,N),U&8){const j=n.dynamicProps;for(let $=0;${H&&xA(H,w,n,s),m&&FI(n,s,w,"updated")},F)},W=(s,n,w,F,N,G,Y)=>{for(let f=0;f{if(n!==w){if(n!==z)for(const G in n)!Ig(G)&&!(G in w)&&B(s,G,n[G],null,N,F);for(const G in w){if(Ig(G))continue;const Y=w[G],f=n[G];Y!==f&&G!=="value"&&B(s,G,f,Y,N,F)}"value"in w&&B(s,"value",n.value,w.value,N)}},DA=(s,n,w,F,N,G,Y,f,U)=>{const y=n.el=s?s.el:i(""),m=n.anchor=s?s.anchor:i("");let{patchFlag:S,dynamicChildren:L,slotScopeIds:H}=n;H&&(f=f?f.concat(H):H),s==null?(C(y,w,F),C(m,w,F),JA(n.children||[],w,m,N,G,Y,f,U)):S>0&&S&64&&L&&s.dynamicChildren?(W(s.dynamicChildren,L,w,N,G,Y,f),(n.key!=null||N&&n===N.subTree)&&nE(s,n,!0)):_(s,n,w,m,N,G,Y,f,U)},Rg=(s,n,w,F,N,G,Y,f,U)=>{n.slotScopeIds=f,s==null?n.shapeFlag&512?N.ctx.activate(n,w,F,Y,U):CC(n,w,F,N,G,Y,U):hQ(s,n,U)},CC=(s,n,w,F,N,G,Y)=>{const f=s.component=st(s,F,N);if($B(s)&&(f.ctx.renderer=OI),Dt(f,!1,Y),f.asyncDep){if(N&&N.registerDep(f,cA,Y),!s.el){const U=f.subTree=pA(ZI);k(null,U,n,w)}}else cA(f,s,n,w,N,G,Y)},hQ=(s,n,w)=>{const F=n.component=s.component;if(gt(s,n,w))if(F.asyncDep&&!F.asyncResolved){IA(F,n,w);return}else F.next=n,F.update();else n.el=s.el,F.vnode=n},cA=(s,n,w,F,N,G,Y)=>{const f=()=>{if(s.isMounted){let{next:S,bu:L,u:H,parent:j,vnode:$}=s;{const uA=rE(s);if(uA){S&&(S.el=$.el,IA(s,S,Y)),uA.asyncDep.then(()=>{s.isUnmounted||f()});return}}let P=S,YA;yI(s,!1),S?(S.el=$.el,IA(s,S,Y)):S=$,L&&EC(L),(YA=S.props&&S.props.onVnodeBeforeUpdate)&&xA(YA,j,S,$),yI(s,!0);const nA=rC(s),bA=s.subTree;s.subTree=nA,h(bA,nA,D(bA.el),hg(bA),s,N,G),S.el=nA.el,P===null&&Ct(s,nA.el),H&&kA(H,N),(YA=S.props&&S.props.onVnodeUpdated)&&kA(()=>xA(YA,j,S,$),N)}else{let S;const{el:L,props:H}=n,{bm:j,m:$,parent:P,root:YA,type:nA}=s,bA=bI(n);if(yI(s,!1),j&&EC(j),!bA&&(S=H&&H.onVnodeBeforeMount)&&xA(S,P,n),yI(s,!0),L&&MQ){const uA=()=>{s.subTree=rC(s),MQ(L,s.subTree,s,N,null)};bA&&nA.__asyncHydrate?nA.__asyncHydrate(L,s,uA):uA()}else{YA.ce&&YA.ce._injectChildStyle(nA);const uA=s.subTree=rC(s);h(null,uA,w,F,s,N,G),n.el=uA.el}if($&&kA($,N),!bA&&(S=H&&H.onVnodeMounted)){const uA=n;kA(()=>xA(S,P,uA),N)}(n.shapeFlag&256||P&&bI(P.vnode)&&P.vnode.shapeFlag&256)&&s.a&&kA(s.a,N),s.isMounted=!0,n=w=F=null}};s.scope.on();const U=s.effect=new SB(f);s.scope.off();const y=s.update=U.run.bind(U),m=s.job=U.runIfDirty.bind(U);m.i=s,m.id=s.uid,U.scheduler=()=>CQ(m),yI(s,!0),y()},IA=(s,n,w)=>{n.component=s;const F=s.vnode.props;s.vnode=n,s.next=null,po(s,n.props,F,w),qo(s,n.children,w),RI(),SQ(s),NI()},_=(s,n,w,F,N,G,Y,f,U=!1)=>{const y=s&&s.children,m=s?s.shapeFlag:0,S=n.children,{patchFlag:L,shapeFlag:H}=n;if(L>0){if(L&128){Ng(y,S,w,F,N,G,Y,f,U);return}else if(L&256){hI(y,S,w,F,N,G,Y,f,U);return}}H&8?(m&16&&WI(y,N,G),S!==y&&t(w,S)):m&16?H&16?Ng(y,S,w,F,N,G,Y,f,U):WI(y,N,G,!0):(m&8&&t(w,""),H&16&&JA(S,w,F,N,G,Y,f,U))},hI=(s,n,w,F,N,G,Y,f,U)=>{s=s||LI,n=n||LI;const y=s.length,m=n.length,S=Math.min(y,m);let L;for(L=0;Lm?WI(s,N,G,!0,!1,S):JA(n,w,F,N,G,Y,f,U,S)},Ng=(s,n,w,F,N,G,Y,f,U)=>{let y=0;const m=n.length;let S=s.length-1,L=m-1;for(;y<=S&&y<=L;){const H=s[y],j=n[y]=U?DI(n[y]):_A(n[y]);if(vI(H,j))h(H,j,w,null,N,G,Y,f,U);else break;y++}for(;y<=S&&y<=L;){const H=s[S],j=n[L]=U?DI(n[L]):_A(n[L]);if(vI(H,j))h(H,j,w,null,N,G,Y,f,U);else break;S--,L--}if(y>S){if(y<=L){const H=L+1,j=HL)for(;y<=S;)OA(s[y],N,G,!0),y++;else{const H=y,j=y,$=new Map;for(y=j;y<=L;y++){const SA=n[y]=U?DI(n[y]):_A(n[y]);SA.key!=null&&$.set(SA.key,y)}let P,YA=0;const nA=L-j+1;let bA=!1,uA=0;const jI=new Array(nA);for(y=0;y=nA){OA(SA,N,G,!0);continue}let jA;if(SA.key!=null)jA=$.get(SA.key);else for(P=j;P<=L;P++)if(jI[P-j]===0&&vI(SA,n[P])){jA=P;break}jA===void 0?OA(SA,N,G,!0):(jI[jA-j]=y+1,jA>=uA?uA=jA:bA=!0,h(SA,n[jA],w,null,N,G,Y,f,U),YA++)}const UQ=bA?xo(jI):LI;for(P=UQ.length-1,y=nA-1;y>=0;y--){const SA=j+y,jA=n[SA],fQ=SA+1{const{el:G,type:Y,transition:f,children:U,shapeFlag:y}=s;if(y&6){GI(s.component.subTree,n,w,F);return}if(y&128){s.suspense.move(n,w,F);return}if(y&64){Y.move(s,n,w,OI);return}if(Y===yA){C(G,n,w);for(let S=0;Sf.enter(G),N);else{const{leave:S,delayLeave:L,afterLeave:H}=f,j=()=>C(G,n,w),$=()=>{S(G,()=>{j(),H&&H()})};L?L(G,j,$):$()}else C(G,n,w)},OA=(s,n,w,F=!1,N=!1)=>{const{type:G,props:Y,ref:f,children:U,dynamicChildren:y,shapeFlag:m,patchFlag:S,dirs:L,cacheIndex:H}=s;if(S===-2&&(N=!1),f!=null&&YC(f,null,w,s,!0),H!=null&&(n.renderCache[H]=void 0),m&256){n.ctx.deactivate(s);return}const j=m&1&&L,$=!bI(s);let P;if($&&(P=Y&&Y.onVnodeBeforeUnmount)&&xA(P,n,s),m&6)Ri(s.component,w,F);else{if(m&128){s.suspense.unmount(w,F);return}j&&FI(s,null,n,"beforeUnmount"),m&64?s.type.remove(s,n,w,OI,F):y&&!y.hasOnce&&(G!==yA||S>0&&S&64)?WI(y,n,w,!1,!0):(G===yA&&S&384||!N&&m&16)&&WI(U,n,w),F&&GQ(s)}($&&(P=Y&&Y.onVnodeUnmounted)||j)&&kA(()=>{P&&xA(P,n,s),j&&FI(s,null,n,"unmounted")},w)},GQ=s=>{const{type:n,el:w,anchor:F,transition:N}=s;if(n===yA){ci(w,F);return}if(n===aC){u(s);return}const G=()=>{Q(w),N&&!N.persisted&&N.afterLeave&&N.afterLeave()};if(s.shapeFlag&1&&N&&!N.persisted){const{leave:Y,delayLeave:f}=N,U=()=>Y(w,G);f?f(s.el,G,U):U()}else G()},ci=(s,n)=>{let w;for(;s!==n;)w=l(s),Q(s),s=w;Q(n)},Ri=(s,n,w)=>{const{bum:F,scope:N,job:G,subTree:Y,um:f,m:U,a:y}=s;TQ(U),TQ(y),F&&EC(F),N.stop(),G&&(G.flags|=8,OA(Y,s,n,w)),f&&kA(f,n),kA(()=>{s.isUnmounted=!0},n),n&&n.pendingBranch&&!n.isUnmounted&&s.asyncDep&&!s.asyncResolved&&s.suspenseId===n.pendingId&&(n.deps--,n.deps===0&&n.resolve())},WI=(s,n,w,F=!1,N=!1,G=0)=>{for(let Y=G;Y{if(s.shapeFlag&6)return hg(s.component.subTree);if(s.shapeFlag&128)return s.suspense.next();const n=l(s.anchor||s.el),w=n&&n[Do];return w?l(w):n};let QC=!1;const FQ=(s,n,w)=>{s==null?n._vnode&&OA(n._vnode,null,null,!0):h(n._vnode||null,s,n,null,null,null,w),n._vnode=s,QC||(QC=!0,SQ(),XB(),QC=!1)},OI={p:h,um:OA,m:GI,r:GQ,mt:CC,mc:JA,pc:_,pbc:W,n:hg,o:A};let yQ,MQ;return{render:FQ,hydrate:yQ,createApp:To(FQ,yQ)}}function nC({type:A,props:I},g){return g==="svg"&&A==="foreignObject"||g==="mathml"&&A==="annotation-xml"&&I&&I.encoding&&I.encoding.includes("html")?void 0:g}function yI({effect:A,job:I},g){g?(A.flags|=32,I.flags|=4):(A.flags&=-33,I.flags&=-5)}function jo(A,I){return(!A||A&&!A.pendingBranch)&&I&&!I.persisted}function nE(A,I,g=!1){const C=A.children,Q=I.children;if(p(C)&&p(Q))for(let B=0;B>1,A[g[i]]0&&(I[C]=g[B-1]),g[B]=C)}}for(B=g.length,E=g[B-1];B-- >0;)g[B]=E,E=I[E];return g}function rE(A){const I=A.subTree.component;if(I)return I.asyncDep&&!I.asyncResolved?I:rE(I)}function TQ(A){if(A)for(let I=0;IYg(vo);function zo(A,I){return iQ(A,null,{flush:"sync"})}function lI(A,I,g){return iQ(A,I,g)}function iQ(A,I,g=z){const{immediate:C,deep:Q,flush:B,once:E}=g,i=eA({},g),o=I&&C||!I&&B!=="post";let e;if(eg){if(B==="sync"){const a=Xo();e=a.__watcherHandles||(a.__watcherHandles=[])}else if(!o){const a=()=>{};return a.stop=AI,a.resume=AI,a.pause=AI,a}}const t=lA;i.call=(a,R,h)=>II(a,t,R,h);let D=!1;B==="post"?i.scheduler=a=>{kA(a,t&&t.suspense)}:B!=="sync"&&(D=!0,i.scheduler=(a,R)=>{R?a():CQ(a)}),i.augmentJob=a=>{I&&(a.flags|=4),D&&(a.flags|=2,t&&(a.id=t.uid,a.i=t))};const l=io(A,I,i);return eg&&(e?e.push(l):o&&l()),l}function Po(A,I,g){const C=this.proxy,Q=oA(A)?A.includes(".")?aE(C,A):()=>C[A]:A.bind(C,C);let B;Z(I)?B=I:(B=I.handler,g=I);const E=rg(this),i=iQ(Q,B.bind(C),g);return E(),i}function aE(A,I){const g=I.split(".");return()=>{let C=A;for(let Q=0;Q{let t,D=z,l;return zo(()=>{const a=A[Q];fA(t,a)&&(t=a,e())}),{get(){return o(),g.get?g.get(t):t},set(a){const R=g.set?g.set(a):a;if(!fA(R,t)&&!(D!==z&&fA(a,D)))return;const h=C.vnode.props;h&&(I in h||Q in h||B in h)&&(`onUpdate:${I}`in h||`onUpdate:${Q}`in h||`onUpdate:${B}`in h)||(t=a,e()),C.emit(`update:${I}`,R),fA(a,R)&&fA(a,D)&&!fA(R,l)&&e(),D=a,l=R}}});return i[Symbol.iterator]=()=>{let o=0;return{next(){return o<2?{value:o++?E||z:i,done:!1}:{done:!0}}}},i}const lE=(A,I)=>I==="modelValue"||I==="model-value"?A.modelModifiers:A[`${I}Modifiers`]||A[`${oI(I)}Modifiers`]||A[`${cI(I)}Modifiers`];function $o(A,I,...g){if(A.isUnmounted)return;const C=A.vnode.props||z;let Q=g;const B=I.startsWith("update:"),E=B&&lE(C,I.slice(7));E&&(E.trim&&(Q=g.map(t=>oA(t)?t.trim():t)),E.number&&(Q=g.map(Mi)));let i,o=C[i=BC(I)]||C[i=BC(oI(I))];!o&&B&&(o=C[i=BC(cI(I))]),o&&II(o,A,6,Q);const e=C[i+"Once"];if(e){if(!A.emitted)A.emitted={};else if(A.emitted[i])return;A.emitted[i]=!0,II(e,A,6,Q)}}function wE(A,I,g=!1){const C=I.emitsCache,Q=C.get(A);if(Q!==void 0)return Q;const B=A.emits;let E={},i=!1;if(!Z(A)){const o=e=>{const t=wE(e,I,!0);t&&(i=!0,eA(E,t))};!g&&I.mixins.length&&I.mixins.forEach(o),A.extends&&o(A.extends),A.mixins&&A.mixins.forEach(o)}return!B&&!i?(CA(A)&&C.set(A,null),null):(p(B)?B.forEach(o=>E[o]=null):eA(E,B),CA(A)&&C.set(A,E),E)}function $g(A,I){return!A||!Zg(I)?!1:(I=I.slice(2).replace(/Once$/,""),X(A,I[0].toLowerCase()+I.slice(1))||X(A,cI(I))||X(A,I))}function rC(A){const{type:I,vnode:g,proxy:C,withProxy:Q,propsOptions:[B],slots:E,attrs:i,emit:o,render:e,renderCache:t,props:D,data:l,setupState:a,ctx:R,inheritAttrs:h}=A,M=Lg(A);let k,K;try{if(g.shapeFlag&4){const u=Q||C,O=u;k=_A(e.call(O,u,t,D,a,l,R)),K=i}else{const u=I;k=_A(u.length>1?u(D,{attrs:i,slots:E,emit:o}):u(D,null)),K=I.props?i:At(i)}}catch(u){Bg.length=0,Xg(u,A,1),k=pA(ZI)}let T=k;if(K&&h!==!1){const u=Object.keys(K),{shapeFlag:O}=T;u.length&&O&7&&(B&&u.some(jC)&&(K=It(K,B)),T=qI(T,K,!1,!0))}return g.dirs&&(T=qI(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(g.dirs):g.dirs),g.transition&&QQ(T,g.transition),k=T,Lg(M),k}const At=A=>{let I;for(const g in A)(g==="class"||g==="style"||Zg(g))&&((I||(I={}))[g]=A[g]);return I},It=(A,I)=>{const g={};for(const C in A)(!jC(C)||!(C.slice(9)in I))&&(g[C]=A[C]);return g};function gt(A,I,g){const{props:C,children:Q,component:B}=A,{props:E,children:i,patchFlag:o}=I,e=B.emitsOptions;if(I.dirs||I.transition)return!0;if(g&&o>=0){if(o&1024)return!0;if(o&16)return C?mQ(C,E,e):!!E;if(o&8){const t=I.dynamicProps;for(let D=0;DA.__isSuspense;function Qt(A,I){I&&I.pendingBranch?p(A)?I.effects.push(...A):I.effects.push(A):eo(A)}const yA=Symbol.for("v-fgt"),AC=Symbol.for("v-txt"),ZI=Symbol.for("v-cmt"),aC=Symbol.for("v-stc"),Bg=[];let KA=null;function dA(A=!1){Bg.push(KA=A?null:[])}function Bt(){Bg.pop(),KA=Bg[Bg.length-1]||null}let tg=1;function HQ(A){tg+=A,A<0&&KA&&(KA.hasOnce=!0)}function RE(A){return A.dynamicChildren=tg>0?KA||LI:null,Bt(),tg>0&&KA&&KA.push(A),A}function PA(A,I,g,C,Q,B){return RE(EA(A,I,g,C,Q,B,!0))}function KC(A,I,g,C,Q){return RE(pA(A,I,g,C,Q,!0))}function oQ(A){return A?A.__v_isVNode===!0:!1}function vI(A,I){return A.type===I.type&&A.key===I.key}const NE=({key:A})=>A??null,ug=({ref:A,ref_key:I,ref_for:g})=>(typeof A=="number"&&(A=""+A),A!=null?oA(A)||wA(A)||Z(A)?{i:MA,r:A,k:I,f:!!g}:A:null);function EA(A,I=null,g=null,C=0,Q=null,B=A===yA?0:1,E=!1,i=!1){const o={__v_isVNode:!0,__v_skip:!0,type:A,props:I,key:I&&NE(I),ref:I&&ug(I),scopeId:PB,slotScopeIds:null,children:g,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:B,patchFlag:C,dynamicProps:Q,dynamicChildren:null,appContext:null,ctx:MA};return i?(tQ(o,g),B&128&&A.normalize(o)):g&&(o.shapeFlag|=oA(g)?8:16),tg>0&&!E&&KA&&(o.patchFlag>0||B&6)&&o.patchFlag!==32&&KA.push(o),o}const pA=Et;function Et(A,I=null,g=null,C=0,Q=null,B=!1){if((!A||A===Mo)&&(A=ZI),oQ(A)){const i=qI(A,I,!0);return g&&tQ(i,g),tg>0&&!B&&KA&&(i.shapeFlag&6?KA[KA.indexOf(A)]=i:KA.push(i)),i.patchFlag=-2,i}if(lt(A)&&(A=A.__vccOpts),I){I=it(I);let{class:i,style:o}=I;i&&!oA(i)&&(I.class=XC(i)),CA(o)&&(gQ(o)&&!p(o)&&(o=eA({},o)),I.style=jg(o))}const E=oA(A)?1:cE(A)?128:no(A)?64:CA(A)?4:Z(A)?2:0;return EA(A,I,g,C,Q,E,B,!0)}function it(A){return A?gQ(A)||EE(A)?eA({},A):A:null}function qI(A,I,g=!1,C=!1){const{props:Q,ref:B,patchFlag:E,children:i,transition:o}=A,e=I?hE(Q||{},I):Q,t={__v_isVNode:!0,__v_skip:!0,type:A.type,props:e,key:e&&NE(e),ref:I&&I.ref?g&&B?p(B)?B.concat(ug(I)):[B,ug(I)]:ug(I):B,scopeId:A.scopeId,slotScopeIds:A.slotScopeIds,children:i,target:A.target,targetStart:A.targetStart,targetAnchor:A.targetAnchor,staticCount:A.staticCount,shapeFlag:A.shapeFlag,patchFlag:I&&A.type!==yA?E===-1?16:E|16:E,dynamicProps:A.dynamicProps,dynamicChildren:A.dynamicChildren,appContext:A.appContext,dirs:A.dirs,transition:o,component:A.component,suspense:A.suspense,ssContent:A.ssContent&&qI(A.ssContent),ssFallback:A.ssFallback&&qI(A.ssFallback),el:A.el,anchor:A.anchor,ctx:A.ctx,ce:A.ce};return o&&C&&QQ(t,o.clone(t)),t}function ot(A=" ",I=0){return pA(AC,null,A,I)}function _A(A){return A==null||typeof A=="boolean"?pA(ZI):p(A)?pA(yA,null,A.slice()):oQ(A)?DI(A):pA(AC,null,String(A))}function DI(A){return A.el===null&&A.patchFlag!==-1||A.memo?A:qI(A)}function tQ(A,I){let g=0;const{shapeFlag:C}=A;if(I==null)I=null;else if(p(I))g=16;else if(typeof I=="object")if(C&65){const Q=I.default;Q&&(Q._c&&(Q._d=!1),tQ(A,Q()),Q._c&&(Q._d=!0));return}else{g=32;const Q=I._;!Q&&!EE(I)?I._ctx=MA:Q===3&&MA&&(MA.slots._===1?I._=1:(I._=2,A.patchFlag|=1024))}else Z(I)?(I={default:I,_ctx:MA},g=32):(I=String(I),C&64?(g=16,I=[ot(I)]):g=8);A.children=I,A.shapeFlag|=g}function hE(...A){const I={};for(let g=0;glA||MA;let Hg,LC;{const A=Og(),I=(g,C)=>{let Q;return(Q=A[g])||(Q=A[g]=[]),Q.push(C),B=>{Q.length>1?Q.forEach(E=>E(B)):Q[0](B)}};Hg=I("__VUE_INSTANCE_SETTERS__",g=>lA=g),LC=I("__VUE_SSR_SETTERS__",g=>eg=g)}const rg=A=>{const I=lA;return Hg(A),A.scope.on(),()=>{A.scope.off(),Hg(I)}},pQ=()=>{lA&&lA.scope.off(),Hg(null)};function GE(A){return A.vnode.shapeFlag&4}let eg=!1;function Dt(A,I=!1,g=!1){I&&LC(I);const{props:C,children:Q}=A.vnode,B=GE(A);Ho(A,C,B,I),Zo(A,Q,g);const E=B?nt(A,I):void 0;return I&&LC(!1),E}function nt(A,I){const g=A.type;A.accessCache=Object.create(null),A.proxy=new Proxy(A.ctx,fo);const{setup:C}=g;if(C){RI();const Q=A.setupContext=C.length>1?at(A):null,B=rg(A),E=Dg(C,A,0,[A.props,Q]),i=GB(E);if(NI(),B(),(i||A.sp)&&!bI(A)&&_B(A),i){if(E.then(pQ,pQ),I)return E.then(o=>{bQ(A,o,I)}).catch(o=>{Xg(o,A,0)});A.asyncDep=E}else bQ(A,E,I)}else FE(A,I)}function bQ(A,I,g){Z(I)?A.type.__ssrInlineRender?A.ssrRender=I:A.render=I:CA(I)&&(A.setupState=jB(I)),FE(A,g)}let VQ;function FE(A,I,g){const C=A.type;if(!A.render){if(!I&&VQ&&!C.render){const Q=C.template||BQ(A).template;if(Q){const{isCustomElement:B,compilerOptions:E}=A.appContext.config,{delimiters:i,compilerOptions:o}=C,e=eA(eA({isCustomElement:B,delimiters:i},E),o);C.render=VQ(Q,e)}}A.render=C.render||AI}{const Q=rg(A);RI();try{Yo(A)}finally{NI(),Q()}}}const rt={get(A,I){return rA(A,"get",""),A[I]}};function at(A){const I=g=>{A.exposed=g||{}};return{attrs:new Proxy(A.attrs,rt),slots:A.slots,emit:A.emit,expose:I}}function sQ(A){return A.exposed?A.exposeProxy||(A.exposeProxy=new Proxy(jB(_i(A.exposed)),{get(I,g){if(g in I)return I[g];if(g in Qg)return Qg[g](A)},has(I,g){return g in I||g in Qg}})):A.proxy}function lt(A){return Z(A)&&"__vccOpts"in A}const $A=(A,I)=>Bo(A,I,eg),wt="3.5.12";/** * @vue/runtime-dom v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let KC;const ZQ=typeof window<"u"&&window.trustedTypes;if(ZQ)try{KC=ZQ.createPolicy("vue",{createHTML:A=>A})}catch{}const yE=KC?A=>KC.createHTML(A):A=>A,wt="http://www.w3.org/2000/svg",ct="http://www.w3.org/1998/Math/MathML",BI=typeof document<"u"?document:null,qQ=BI&&BI.createElement("template"),Rt={insert:(A,I,g)=>{I.insertBefore(A,g||null)},remove:A=>{const I=A.parentNode;I&&I.removeChild(A)},createElement:(A,I,g,C)=>{const Q=I==="svg"?BI.createElementNS(wt,A):I==="mathml"?BI.createElementNS(ct,A):g?BI.createElement(A,{is:g}):BI.createElement(A);return A==="select"&&C&&C.multiple!=null&&Q.setAttribute("multiple",C.multiple),Q},createText:A=>BI.createTextNode(A),createComment:A=>BI.createComment(A),setText:(A,I)=>{A.nodeValue=I},setElementText:(A,I)=>{A.textContent=I},parentNode:A=>A.parentNode,nextSibling:A=>A.nextSibling,querySelector:A=>BI.querySelector(A),setScopeId(A,I){A.setAttribute(I,"")},insertStaticContent(A,I,g,C,Q,B){const E=g?g.previousSibling:I.lastChild;if(Q&&(Q===B||Q.nextSibling))for(;I.insertBefore(Q.cloneNode(!0),g),!(Q===B||!(Q=Q.nextSibling)););else{qQ.innerHTML=yE(C==="svg"?`${A}`:C==="mathml"?`${A}`:A);const i=qQ.content;if(C==="svg"||C==="mathml"){const o=i.firstChild;for(;o.firstChild;)i.appendChild(o.firstChild);i.removeChild(o)}I.insertBefore(i,g)}return[E?E.nextSibling:I.firstChild,g?g.previousSibling:I.lastChild]}},Nt=Symbol("_vtc");function ht(A,I,g){const C=A[Nt];C&&(I=(I?[I,...C]:[...C]).join(" ")),I==null?A.removeAttribute("class"):g?A.setAttribute("class",I):A.className=I}const WQ=Symbol("_vod"),Gt=Symbol("_vsh"),Ft=Symbol(""),yt=/(^|;)\s*display\s*:/;function Mt(A,I,g){const C=A.style,Q=iA(g);let B=!1;if(g&&!Q){if(I)if(iA(I))for(const E of I.split(";")){const i=E.slice(0,E.indexOf(":")).trim();g[i]==null&&Sg(C,i,"")}else for(const E in I)g[E]==null&&Sg(C,E,"");for(const E in g)E==="display"&&(B=!0),Sg(C,E,g[E])}else if(Q){if(I!==g){const E=C[Ft];E&&(g+=";"+E),C.cssText=g,B=yt.test(g)}}else I&&A.removeAttribute("style");WQ in A&&(A[WQ]=B?C.display:"",A[Gt]&&(C.display="none"))}const OQ=/\s*!important$/;function Sg(A,I,g){if(b(g))g.forEach(C=>Sg(A,I,C));else if(g==null&&(g=""),I.startsWith("--"))A.setProperty(I,g);else{const C=Ut(A,I);OQ.test(g)?A.setProperty(cI(C),g.replace(OQ,""),"important"):A[C]=g}}const jQ=["Webkit","Moz","ms"],rC={};function Ut(A,I){const g=rC[I];if(g)return g;let C=iI(I);if(C!=="filter"&&C in A)return rC[I]=C;C=MB(C);for(let Q=0;QaC||(St.then(()=>aC=0),aC=Date.now());function dt(A,I){const g=C=>{if(!C._vts)C._vts=Date.now();else if(C._vts<=g.attached)return;AI(Kt(C,g.value),I,5,[C])};return g.value=A,g.attached=kt(),g}function Kt(A,I){if(b(I)){const g=A.stopImmediatePropagation;return A.stopImmediatePropagation=()=>{g.call(A),A._stopped=!0},I.map(C=>Q=>!Q._stopped&&C&&C(Q))}else return I}const _Q=A=>A.charCodeAt(0)===111&&A.charCodeAt(1)===110&&A.charCodeAt(2)>96&&A.charCodeAt(2)<123,Lt=(A,I,g,C,Q,B)=>{const E=Q==="svg";I==="class"?ht(A,C,E):I==="style"?Mt(A,g,C):Zg(I)?WC(I)||Yt(A,I,g,C,B):(I[0]==="."?(I=I.slice(1),!0):I[0]==="^"?(I=I.slice(1),!1):Tt(A,I,C,E))?(XQ(A,I,C),!A.tagName.includes("-")&&(I==="value"||I==="checked"||I==="selected")&&vQ(A,I,C,E,B,I!=="value")):A._isVueCE&&(/[A-Z]/.test(I)||!iA(C))?XQ(A,iI(I),C,B,I):(I==="true-value"?A._trueValue=C:I==="false-value"&&(A._falseValue=C),vQ(A,I,C,E))};function Tt(A,I,g,C){if(C)return!!(I==="innerHTML"||I==="textContent"||I in A&&_Q(I)&&q(g));if(I==="spellcheck"||I==="draggable"||I==="translate"||I==="form"||I==="list"&&A.tagName==="INPUT"||I==="type"&&A.tagName==="TEXTAREA")return!1;if(I==="width"||I==="height"){const Q=A.tagName;if(Q==="IMG"||Q==="VIDEO"||Q==="CANVAS"||Q==="SOURCE")return!1}return _Q(I)&&iA(g)?!1:I in A}const Ht=eA({patchProp:Lt},Rt);let $Q;function mt(){return $Q||($Q=qo(Ht))}const pt=(...A)=>{const I=mt().createApp(...A),{mount:g}=I;return I.mount=C=>{const Q=Vt(C);if(!Q)return;const B=I._component;!q(B)&&!B.render&&!B.template&&(B.template=Q.innerHTML),Q.nodeType===1&&(Q.textContent="");const E=g(Q,!1,bt(Q));return Q instanceof Element&&(Q.removeAttribute("v-cloak"),Q.setAttribute("data-v-app","")),E},I};function bt(A){if(A instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&A instanceof MathMLElement)return"mathml"}function Vt(A){return iA(A)?document.querySelector(A):A}function Zt(){try{return"constructor"in GestureEvent}catch{return!1}}function ME(){return typeof window<"u"&&"ontouchstart"in window}function UE(A){return"pointerId"in A?null:A.type==="touchend"?A.changedTouches:A.targetTouches}function sQ(A){return Array.from(UE(A)).map(I=>I.identifier)}function TA(A){const I="buttons"in A?A.buttons:0,{shiftKey:g,altKey:C,metaKey:Q,ctrlKey:B}=A;return{buttons:I,shiftKey:g,altKey:C,metaKey:Q,ctrlKey:B}}const ag=A=>A;function KI(A,I=ag){const g=UE(A),{clientX:C,clientY:Q}=g?g[0]:A;return I([C,Q])}function AB(A,I,g=ag){const[C,Q]=Array.from(A.touches).filter(a=>I.includes(a.identifier));if(!C||!Q)throw Error("The event doesn't have two pointers matching the pointerIds");const B=Q.clientX-C.clientX,E=Q.clientY-C.clientY,i=(Q.clientX+C.clientX)/2,o=(Q.clientY+C.clientY)/2,e=Math.hypot(B,E),t=-(Math.atan2(B,E)*180)/Math.PI,D=g([e,t]),l=g([i,o]);return{values:D,origin:l}}function qt(A,I=ag){const{scrollX:g,scrollY:C,scrollLeft:Q,scrollTop:B}=A.currentTarget;return I([g||Q||0,C||B||0])}const IB=40,gB=800;function fE(A,I=ag){let{deltaX:g,deltaY:C,deltaMode:Q}=A;return Q===1?(g*=IB,C*=IB):Q===2&&(g*=gB,C*=gB),I([g,C])}function CB(A,I=ag){return I([A.scale,A.rotation])}function JE(){}function YE(...A){return A.length===0?JE:A.length===1?A[0]:function(){var I;for(let g of A)I=g.apply(this,arguments)||I;return I}}function rI(A,I){if(A===void 0){if(I===void 0)throw new Error("Must define fallback value if undefined is expected");A=I}return Array.isArray(A)?A:[A,A]}function QB(A,I){return Object.assign({},I,A||{})}function pg(A,...I){return typeof A=="function"?A(...I):A}function XI(A){return{_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,_dragStarted:!1,_dragPreventScroll:!1,_dragIsTap:!0,_dragDelayed:!1,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:JE,canceled:!1,memo:void 0,args:void 0,...A}}function LC(){const A={hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1,locked:!1},I=XI({_pointerId:void 0,axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,tap:!1,swipe:[0,0]}),g=XI({_pointerIds:[],da:[0,0],vdva:[0,0],origin:void 0,turns:0}),C=XI({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),Q=XI({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),B=XI({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0});return{shared:A,drag:I,pinch:g,wheel:C,move:Q,scroll:B}}var Wt=Object.defineProperty,Ot=(A,I,g)=>I in A?Wt(A,I,{enumerable:!0,configurable:!0,writable:!0,value:g}):A[I]=g,UA=(A,I,g)=>(Ot(A,typeof I!="symbol"?I+"":I,g),g);class jt{constructor(I){this.classes=I,UA(this,"nativeRefs"),UA(this,"config"),UA(this,"handlers"),UA(this,"state"),UA(this,"timeouts"),UA(this,"domListeners"),UA(this,"windowListeners"),UA(this,"pointerIds",new Set),UA(this,"touchIds",new Set),UA(this,"supportsTouchEvents",ME()),UA(this,"supportsGestureEvents",Zt()),UA(this,"bind",(...g)=>{const C={};for(let Q of this.classes)new Q(this,g).addBindings(C);for(let Q in this.nativeRefs)gA(C,Q,B=>this.nativeRefs[Q]({...this.state.shared,event:B,args:g}));return this.config.domTarget?zt(this,C):Pt(this,C)}),UA(this,"clean",()=>{const{eventOptions:g,domTarget:C}=this.config,Q=KA(C);Q&&lg(Q,kE(this.domListeners),g),Object.values(this.timeouts).forEach(clearTimeout),xt(this)}),UA(this,"reset",()=>{this.state=LC()}),this.classes=I,this.state=LC(),this.timeouts={},this.domListeners=[],this.windowListeners={}}}function uE(A,I){"pointerId"in I?A.pointerIds.add(I.pointerId):A.touchIds=new Set(sQ(I))}function SE(A,I){"pointerId"in I?A.pointerIds.delete(I.pointerId):sQ(I).forEach(g=>A.touchIds.delete(g))}function xt(A){const{config:{window:I,eventOptions:g},windowListeners:C}=A,Q=KA(I);if(Q){for(let B in C){const E=C[B];lg(Q,E,g)}A.windowListeners={}}}function vt({config:A,windowListeners:I},g,C=A.eventOptions){const Q=KA(A.window);Q&&(lg(Q,I[g],C),delete I[g])}function Xt({config:A,windowListeners:I},g,C=[],Q=A.eventOptions){const B=KA(A.window);B&&(lg(B,I[g],Q),dE(B,I[g]=C,Q))}function zt({config:A,domListeners:I},g){const{eventOptions:C,domTarget:Q}=A,B=KA(Q);if(!B)throw new Error("domTarget must be defined");lg(B,kE(I),C);for(let[E,i]of Object.entries(g)){const o=E.slice(2).toLowerCase();I.push([o,YE(...i)])}dE(B,I,C)}function Pt({config:A},I){const g={},C=A.eventOptions.capture?"Capture":"";for(let[Q,B]of Object.entries(I)){const E=Array.isArray(B)?B:[B],i=Q+C;g[i]=YE(...E)}return g}function kE(A=[]){return A.splice(0,A.length)}function gA(A,I,g){A[I]||(A[I]=[]),A[I].push(g)}function dE(A,I=[],g={}){if(A)for(let[C,Q]of I)A.addEventListener(C,Q,g)}function lg(A,I=[],g={}){if(A)for(let[C,Q]of I)A.removeEventListener(C,Q,g)}function bg(A,I){return A.map((g,C)=>g+I[C])}function DQ(A,I){return A.map((g,C)=>g-I[C])}function sg(A){return Math.hypot(...A)}function KE(A,I=A){const g=sg(I),C=g===0?0:1/g,Q=I.map(E=>C*E);return{distance:sg(A),direction:Q}}function LE(A,I,g){const C=sg(I),Q=C===0?0:1/C,B=g===0?0:1/g,E=B*C,i=I.map(t=>B*t),o=I.map(t=>Q*t),e=sg(A);return{velocities:i,velocity:E,distance:e,direction:o}}function Vg(A){return Math.sign?Math.sign(A):+(A>0)-+(A<0)||+A}function _t(A,I,g){return Math.max(I,Math.min(A,g))}function $t(A,I){return Math.pow(A,I*5)}function BB(A,I,g){return I===0||Math.abs(I)===1/0?$t(A,g):A*I*g/(I+g*A)}function EB(A,I,g,C=.15){return C===0?_t(A,I,g):Ag?+BB(A-g,g-I,C)+g:A}var Ae=Object.defineProperty,Ie=(A,I,g)=>I in A?Ae(A,I,{enumerable:!0,configurable:!0,writable:!0,value:g}):A[I]=g,Mg=(A,I,g)=>(Ie(A,typeof I!="symbol"?I+"":I,g),g);const HA=new Map,ge=A=>A;class TE{constructor(I,g=[]){this.controller=I,this.args=g,Mg(this,"debounced",!0),Mg(this,"setTimeout",(C,Q=140,...B)=>{clearTimeout(this.controller.timeouts[this.stateKey]),this.controller.timeouts[this.stateKey]=window.setTimeout(C,Q,...B)}),Mg(this,"clearTimeout",()=>{clearTimeout(this.controller.timeouts[this.stateKey])}),Mg(this,"fireGestureHandler",(C=!1)=>{if(this.state._blocked)return this.debounced||(this.state._active=!1,this.clean()),null;if(!C&&!this.state.intentional&&!this.config.triggerAllEvents)return null;if(this.state.intentional){const o=this.state.active,e=this.state._active;this.state.active=e,this.state.first=e&&!o,this.state.last=o&&!e,this.controller.state.shared[this.ingKey]=e}const Q=this.controller.pointerIds.size||this.controller.touchIds.size,B=this.controller.state.shared.buttons>0||Q>0,E={...this.controller.state.shared,...this.state,...this.mapStateValues(this.state),locked:!!document.pointerLockElement,touches:Q,down:B},i=this.handler(E);return this.state.memo=i!==void 0?i:this.state.memo,E}),this.controller=I,this.args=g}get config(){return this.controller.config[this.stateKey]}get enabled(){return this.controller.config.enabled&&this.config.enabled}get state(){return this.controller.state[this.stateKey]}get handler(){return this.controller.handlers[this.stateKey]}get transform(){return this.config.transform||this.controller.config.transform||ge}updateSharedState(I){Object.assign(this.controller.state.shared,I)}updateGestureState(I){Object.assign(this.state,I)}checkIntentionality(I,g){return{_intentional:I,_blocked:!1}}getMovement(I){const{rubberband:g,threshold:C}=this.config,{_bounds:Q,_initial:B,_active:E,_intentional:i,lastOffset:o,movement:e}=this.state,t=this.getInternalMovement(I,this.state),D=this.transform(C).map(Math.abs),l=i[0]===!1?iB(t[0],D[0]):i[0],a=i[1]===!1?iB(t[1],D[1]):i[1],R=this.checkIntentionality([l,a],t);if(R._blocked)return{...R,_movement:t,delta:[0,0]};const h=R._intentional,M=t;let S=[h[0]!==!1?t[0]-h[0]:0,h[1]!==!1?t[1]-h[1]:0];const L=bg(S,o),d=E?g:[0,0];return S=oB(Q,bg(S,B),d),{...R,intentional:h[0]!==!1||h[1]!==!1,_initial:B,_movement:M,movement:S,values:I,offset:oB(Q,L,d),delta:DQ(S,e)}}clean(){this.clearTimeout()}}function iB(A,I){return Math.abs(A)>=I?Vg(A)*I:!1}function oB(A,[I,g],[C,Q]){const[[B,E],[i,o]]=A;return[EB(I,B,E,C),EB(g,i,o,Q)]}function tA({state:A},I,g){const{timeStamp:C,type:Q}=I,B=A.values,E=g?0:C-A.startTime;return{_lastEventType:Q,event:I,timeStamp:C,elapsedTime:E,previous:B}}function fI({state:A,config:I,stateKey:g,args:C},Q,B){const E=A.offset,i=B.timeStamp,{initial:o,bounds:e}=I,t={...LC()[g],_active:!0,args:C,values:Q,initial:Q,offset:E,lastOffset:E,startTime:i};return{...t,_initial:pg(o,t),_bounds:pg(e,t)}}class AC extends TE{getInternalMovement(I,g){return DQ(I,g.initial)}checkIntentionality(I,g){if(I[0]===!1&&I[1]===!1)return{_intentional:I,axis:this.state.axis};const[C,Q]=g.map(Math.abs),B=this.state.axis||(C>Q?"x":CI in A?Ce(A,I,{enumerable:!0,configurable:!0,writable:!0,value:g}):A[I]=g,sA=(A,I,g)=>(Qe(A,typeof I!="symbol"?I+"":I,g),g);const Be=3;function tB(A){"persist"in A&&typeof A.persist=="function"&&A.persist()}class Ee extends AC{constructor(){super(...arguments),sA(this,"ingKey","dragging"),sA(this,"stateKey","drag"),sA(this,"setPointerCapture",I=>{if(this.config.useTouch||document.pointerLockElement)return;const{target:g,pointerId:C}=I;g&&"setPointerCapture"in g&&g.setPointerCapture(C),this.updateGestureState({_dragTarget:g,_dragPointerId:C})}),sA(this,"releasePointerCapture",()=>{if(this.config.useTouch||document.pointerLockElement)return;const{_dragTarget:I,_dragPointerId:g}=this.state;if(g&&I&&"releasePointerCapture"in I&&(!("hasPointerCapture"in I)||I.hasPointerCapture(g)))try{I.releasePointerCapture(g)}catch{}}),sA(this,"preventScroll",I=>{this.state._dragPreventScroll&&I.cancelable&&I.preventDefault()}),sA(this,"getEventId",I=>this.config.useTouch?I.changedTouches[0].identifier:I.pointerId),sA(this,"isValidEvent",I=>this.state._pointerId===this.getEventId(I)),sA(this,"shouldPreventWindowScrollY",this.config.preventWindowScrollY&&this.controller.supportsTouchEvents),sA(this,"setUpWindowScrollDetection",I=>{tB(I),Xt(this.controller,this.stateKey,[["touchmove",this.preventScroll],["touchend",this.clean.bind(this)],["touchcancel",this.clean.bind(this)]],{passive:!1}),this.setTimeout(this.startDrag.bind(this),250,I)}),sA(this,"setUpDelayedDragTrigger",I=>{this.state._dragDelayed=!0,tB(I),this.setTimeout(this.startDrag.bind(this),this.config.delay,I)}),sA(this,"setStartState",I=>{const g=KI(I,this.transform);this.updateSharedState(TA(I)),this.updateGestureState({...fI(this,g,I),...tA(this,I,!0),_pointerId:this.getEventId(I)}),this.updateGestureState(this.getMovement(g))}),sA(this,"onDragStart",I=>{uE(this.controller,I),!(!this.enabled||this.state._active)&&(this.setStartState(I),this.setPointerCapture(I),this.shouldPreventWindowScrollY?this.setUpWindowScrollDetection(I):this.config.delay>0?this.setUpDelayedDragTrigger(I):this.startDrag(I,!0))}),sA(this,"onDragChange",I=>{if(this.state.canceled||!this.state._active||!this.isValidEvent(I)||this.state._lastEventType===I.type&&I.timeStamp===this.state.timeStamp)return;let g;if(document.pointerLockElement){const{movementX:o,movementY:e}=I;g=bg(this.transform([o,e]),this.state.values)}else g=KI(I,this.transform);const C=this.getKinematics(g,I);if(!this.state._dragStarted){if(this.state._dragDelayed){this.startDrag(I);return}if(this.shouldPreventWindowScrollY)if(!this.state._dragPreventScroll&&C.axis)if(C.axis==="x")this.startDrag(I);else{this.state._active=!1;return}else return;else return}const Q=TA(I);this.updateSharedState(Q);const B=tA(this,I),E=sg(C._movement);let{_dragIsTap:i}=this.state;i&&E>=Be&&(i=!1),this.updateGestureState({...B,...C,_dragIsTap:i}),this.fireGestureHandler()}),sA(this,"onDragEnd",I=>{if(SE(this.controller,I),!this.isValidEvent(I)||(this.clean(),!this.state._active))return;this.state._active=!1;const g=this.state._dragIsTap,[C,Q]=this.state.velocities,[B,E]=this.state.movement,[i,o]=this.state._intentional,[e,t]=this.config.swipeVelocity,[D,l]=this.config.swipeDistance,a=this.config.swipeDuration,R={...tA(this,I),...this.getMovement(this.state.values)},h=[0,0];R.elapsedTimee&&Math.abs(B)>D&&(h[0]=Vg(C)),o!==!1&&Math.abs(Q)>t&&Math.abs(E)>l&&(h[1]=Vg(Q))),this.updateSharedState({buttons:0}),this.updateGestureState({...R,tap:g,swipe:h}),this.fireGestureHandler(this.config.filterTaps&&g===!0)}),sA(this,"clean",()=>{super.clean(),this.state._dragStarted=!1,this.releasePointerCapture(),vt(this.controller,this.stateKey)}),sA(this,"onCancel",()=>{this.state.canceled||(this.updateGestureState({canceled:!0,_active:!1}),this.updateSharedState({buttons:0}),Xg(this.fireGestureHandler))}),sA(this,"onClick",I=>{this.state._dragIsTap||I.stopPropagation()})}startDrag(I,g=!1){!this.state._active||this.state._dragStarted||(g||this.setStartState(I),this.updateGestureState({_dragStarted:!0,_dragPreventScroll:!0,cancel:this.onCancel}),this.clearTimeout(),this.fireGestureHandler())}addBindings(I){if(this.config.useTouch?(gA(I,"onTouchStart",this.onDragStart),gA(I,"onTouchMove",this.onDragChange),gA(I,"onTouchEnd",this.onDragEnd),gA(I,"onTouchCancel",this.onDragEnd)):(gA(I,"onPointerDown",this.onDragStart),gA(I,"onPointerMove",this.onDragChange),gA(I,"onPointerUp",this.onDragEnd),gA(I,"onPointerCancel",this.onDragEnd)),this.config.filterTaps){const g=this.controller.config.eventOptions.capture?"onClick":"onClickCapture";gA(I,g,this.onClick)}}}function wg(A={},I){const g={};for(const[C,Q]of Object.entries(I))switch(typeof Q){case"function":g[C]=Q.call(g,A[C],C,A);break;case"object":g[C]=wg(A[C],Q);break;case"boolean":Q&&(g[C]=A[C]);break}return g}const ie=180,oe=.15,te=.5,ee=50,se=250,HE={threshold(A=0){return rI(A)},rubberband(A=0){switch(A){case!0:return rI(oe);case!1:return rI(0);default:return rI(A)}},enabled(A=!0){return A},triggerAllEvents(A=!1){return A},initial(A=0){return typeof A=="function"?A:rI(A)},transform:!0},nQ={...HE,axis:!0,lockDirection(A=!1){return A},bounds(A={}){if(typeof A=="function")return B=>nQ.bounds(A(B));const{left:I=-1/0,right:g=1/0,top:C=-1/0,bottom:Q=1/0}=A;return[[I,g],[C,Q]]}},De=typeof window<"u"&&window.document&&window.document.createElement,ne={enabled(A=!0){return A},domTarget:!0,window(A=De?window:void 0){return A},eventOptions({passive:A=!0,capture:I=!1}={}){return{passive:A,capture:I}},transform:!0},re={...HE,bounds(A,I,{distanceBounds:g={},angleBounds:C={}}){const Q=E=>{const i=QB(pg(g,E),{min:-1/0,max:1/0});return[i.min,i.max]},B=E=>{const i=QB(pg(C,E),{min:-1/0,max:1/0});return[i.min,i.max]};return typeof g!="function"&&typeof C!="function"?[Q(),B()]:E=>[Q(E),B(E)]}},ae={...nQ,useTouch(A=!0){return A&&ME()},preventWindowScrollY(A=!1){return A},threshold(A,I,{filterTaps:g=!1,lockDirection:C=!1,axis:Q=void 0}){const B=rI(A,g?3:C||Q?1:0);return this.filterTaps=g,B},swipeVelocity(A=te){return rI(A)},swipeDistance(A=ee){return rI(A)},swipeDuration(A=se){return A},delay(A=0){switch(A){case!0:return ie;case!1:return 0;default:return A}}};function le(A){return wg(A,ne)}function lC(A={}){return wg(A,nQ)}function we(A={}){return wg(A,re)}function ce(A={}){return wg(A,ae)}function Re(A,I=new Set){const{drag:g,wheel:C,move:Q,scroll:B,pinch:E,hover:i,eventOptions:o,window:e,transform:t,domTarget:D,enabled:l}=A,a=le({domTarget:D,eventOptions:o,transform:t,window:e,enabled:l});return I.has("onDrag")&&(a.drag=ce(g)),I.has("onWheel")&&(a.wheel=lC(C)),I.has("onScroll")&&(a.scroll=lC(B)),I.has("onMove")&&(a.move=lC(Q)),I.has("onPinch")&&(a.pinch=we(E)),I.has("onHover")&&(a.hover={enabled:!0,...i}),a}function Ne(A,I,g={}){const C=he(A),Q=new jt(C);return Q.config=I,Q.handlers=A,Q.nativeRefs=g,tQ()&&!I.manual&&(ng(Q.bind),Pg(Q.clean)),Q}function he(A){const I=new Set;return A.drag&&I.add(HA.get("drag")),A.wheel&&I.add(HA.get("wheel")),A.scroll&&I.add(HA.get("scroll")),A.move&&I.add(HA.get("move")),A.pinch&&I.add(HA.get("pinch")),A.hover&&I.add(HA.get("hover")),I}var Ge=Object.defineProperty,Fe=(A,I,g)=>I in A?Ge(A,I,{enumerable:!0,configurable:!0,writable:!0,value:g}):A[I]=g,vA=(A,I,g)=>(Fe(A,typeof I!="symbol"?I+"":I,g),g);class eB extends AC{constructor(){super(...arguments),vA(this,"ingKey","moving"),vA(this,"stateKey","move"),vA(this,"debounced",!0),vA(this,"onMove",I=>{this.enabled&&(this.setTimeout(this.onMoveEnd),this.state._active?this.onMoveChange(I):this.onMoveStart(I))}),vA(this,"onMoveStart",I=>{this.updateSharedState(TA(I));const g=KI(I,this.transform);this.updateGestureState({...fI(this,g,I),...tA(this,I,!0)}),this.updateGestureState(this.getMovement(g)),this.fireGestureHandler()}),vA(this,"onMoveChange",I=>{this.updateSharedState(TA(I));const g=KI(I,this.transform);this.updateGestureState({...tA(this,I),...this.getKinematics(g,I)}),this.fireGestureHandler()}),vA(this,"onMoveEnd",()=>{if(this.clean(),!this.state._active)return;const I=this.state.values;this.updateGestureState(this.getMovement(I)),this.updateGestureState({velocities:[0,0],velocity:0,_active:!1}),this.fireGestureHandler()}),vA(this,"hoverTransform",()=>this.controller.config.hover.transform||this.controller.config.transform),vA(this,"onPointerEnter",I=>{if(this.controller.state.shared.hovering=!0,!!this.controller.config.enabled){if(this.controller.config.hover.enabled){const g=KI(I,this.hoverTransform()),C={...this.controller.state.shared,...this.state,...tA(this,I,!0),args:this.args,values:g,active:!0,hovering:!0};this.controller.handlers.hover({...C,...this.mapStateValues(C)})}"move"in this.controller.handlers&&this.onMoveStart(I)}}),vA(this,"onPointerLeave",I=>{if(this.controller.state.shared.hovering=!1,"move"in this.controller.handlers&&this.onMoveEnd(),!this.controller.config.hover.enabled)return;const g=KI(I,this.hoverTransform()),C={...this.controller.state.shared,...this.state,...tA(this,I),args:this.args,values:g,active:!1};this.controller.handlers.hover({...C,...this.mapStateValues(C)})})}addBindings(I){"move"in this.controller.handlers&&gA(I,"onPointerMove",this.onMove),"hover"in this.controller.handlers&&(gA(I,"onPointerEnter",this.onPointerEnter),gA(I,"onPointerLeave",this.onPointerLeave))}}class ye extends TE{getInternalMovement(I,g){const C=g.values[1];let[Q,B=C]=I,E=B-C,i=g.turns;return Math.abs(E)>270&&(i+=Vg(E)),DQ([Q,B-360*i],g.initial)}getKinematics(I,g){const C=this.getMovement(I),Q=(I[1]-C._movement[1]-this.state.initial[1])/360,B=g.timeStamp-this.state.timeStamp,{distance:E,velocity:i,...o}=LE(C.movement,C.delta,B);return{turns:Q,...C,...o}}mapStateValues(I){return{da:I.values,vdva:I.velocities}}}var Me=Object.defineProperty,Ue=(A,I,g)=>I in A?Me(A,I,{enumerable:!0,configurable:!0,writable:!0,value:g}):A[I]=g,RA=(A,I,g)=>(Ue(A,typeof I!="symbol"?I+"":I,g),g);const fe=7,Je=260;class Ye extends ye{constructor(){super(...arguments),RA(this,"ingKey","pinching"),RA(this,"stateKey","pinch"),RA(this,"onPinchStart",I=>{uE(this.controller,I);const g=this.controller.touchIds;if(!this.enabled||this.state._active&&this.state._pointerIds.every(E=>g.has(E))||g.size<2)return;const C=Array.from(g).slice(0,2),{values:Q,origin:B}=AB(I,C,this.transform);this.updateSharedState(TA(I)),this.updateGestureState({...fI(this,Q,I),...tA(this,I,!0),_pointerIds:C,cancel:this.onCancel,origin:B}),this.updateGestureState(this.getMovement(Q)),this.fireGestureHandler()}),RA(this,"onPinchChange",I=>{const{canceled:g,_active:C}=this.state;if(g||!C||I.timeStamp===this.state.timeStamp)return;const Q=TA(I);this.updateSharedState(Q);try{const{values:B,origin:E}=AB(I,this.state._pointerIds,this.transform),i=this.getKinematics(B,I);this.updateGestureState({...tA(this,I),...i,origin:E}),this.fireGestureHandler()}catch{this.onPinchEnd(I)}}),RA(this,"onPinchEnd",I=>{SE(this.controller,I);const g=sQ(I);this.state._pointerIds.every(C=>!g.includes(C))||(this.clean(),this.state._active&&(this.updateGestureState({...tA(this,I),...this.getMovement(this.state.values),_active:!1}),this.fireGestureHandler()))}),RA(this,"onCancel",()=>{this.state.canceled||(this.updateGestureState({_active:!1,canceled:!0}),this.fireGestureHandler())}),RA(this,"onGestureStart",I=>{if(!this.enabled)return;I.preventDefault();const g=CB(I,this.transform);this.updateSharedState(TA(I)),this.updateGestureState({...fI(this,g,I),...tA(this,I,!0),origin:[I.clientX,I.clientY],cancel:this.onCancel}),this.updateGestureState(this.getMovement(g)),this.fireGestureHandler()}),RA(this,"onGestureChange",I=>{const{canceled:g,_active:C}=this.state;if(g||!C)return;I.preventDefault();const Q=TA(I);this.updateSharedState(Q);const B=CB(I,this.transform);B[0]=(B[0]-this.state.event.scale)*Je+this.state.values[0];const E=this.getKinematics(B,I);this.updateGestureState({...tA(this,I),...E,origin:[I.clientX,I.clientY]}),this.fireGestureHandler()}),RA(this,"onGestureEnd",I=>{this.clean(),this.state._active&&(this.updateGestureState({...tA(this,I),...this.getMovement(this.state.values),_active:!1,origin:[I.clientX,I.clientY]}),this.fireGestureHandler())}),RA(this,"wheelShouldRun",I=>this.enabled&&I.ctrlKey),RA(this,"getWheelValuesFromEvent",I=>{const[,g]=fE(I,this.transform),{values:[C,Q]}=this.state;return{values:[C-g*fe,Q!==void 0?Q:0],origin:[I.clientX,I.clientY],delta:[0,g]}}),RA(this,"onWheel",I=>{this.wheelShouldRun(I)&&(this.setTimeout(this.onWheelEnd),this.state._active?this.onWheelChange(I):this.onWheelStart(I))}),RA(this,"onWheelStart",I=>{const{values:g,delta:C,origin:Q}=this.getWheelValuesFromEvent(I);I.cancelable&&I.preventDefault(),this.updateSharedState(TA(I)),this.updateGestureState({...fI(this,g,I),...tA(this,I,!0),initial:this.state.values,offset:g,delta:C,origin:Q}),this.updateGestureState(this.getMovement(g)),this.fireGestureHandler()}),RA(this,"onWheelChange",I=>{I.cancelable&&I.preventDefault(),this.updateSharedState(TA(I));const{values:g,origin:C,delta:Q}=this.getWheelValuesFromEvent(I);this.updateGestureState({...tA(this,I),...this.getKinematics(g,I),origin:C,delta:Q}),this.fireGestureHandler()}),RA(this,"onWheelEnd",()=>{this.clean(),this.state._active&&(this.state._active=!1,this.updateGestureState(this.getMovement(this.state.values)),this.fireGestureHandler())})}addBindings(I){this.controller.config.domTarget&&!this.controller.supportsTouchEvents&&this.controller.supportsGestureEvents?(gA(I,"onGestureStart",this.onGestureStart),gA(I,"onGestureChange",this.onGestureChange),gA(I,"onGestureEnd",this.onGestureEnd)):(gA(I,"onTouchStart",this.onPinchStart),gA(I,"onTouchMove",this.onPinchChange),gA(I,"onTouchEnd",this.onPinchEnd),gA(I,"onTouchCancel",this.onPinchEnd),gA(I,"onWheel",this.onWheel))}}var ue=Object.defineProperty,Se=(A,I,g)=>I in A?ue(A,I,{enumerable:!0,configurable:!0,writable:!0,value:g}):A[I]=g,zI=(A,I,g)=>(Se(A,typeof I!="symbol"?I+"":I,g),g);class ke extends AC{constructor(){super(...arguments),zI(this,"ingKey","scrolling"),zI(this,"stateKey","scroll"),zI(this,"debounced",!0),zI(this,"handleEvent",I=>{if(!this.enabled)return;this.clearTimeout(),this.setTimeout(this.onEnd);const g=qt(I,this.transform);if(this.updateSharedState(TA(I)),this.state._active)this.updateGestureState({...tA(this,I),...this.getKinematics(g,I)});else{this.updateGestureState({...fI(this,g,I),...tA(this,I,!0),initial:this.state.values});const C=this.getMovement(g),Q=KE(C.delta);this.updateGestureState(C),this.updateGestureState(Q)}this.fireGestureHandler()}),zI(this,"onEnd",()=>{this.clean(),this.state._active&&(this.updateGestureState({...this.getMovement(this.state.values),_active:!1,velocities:[0,0],velocity:0}),this.fireGestureHandler())})}addBindings(I){gA(I,"onScroll",this.handleEvent)}}var de=Object.defineProperty,Ke=(A,I,g)=>I in A?de(A,I,{enumerable:!0,configurable:!0,writable:!0,value:g}):A[I]=g,PI=(A,I,g)=>(Ke(A,typeof I!="symbol"?I+"":I,g),g);class Le extends AC{constructor(){super(...arguments),PI(this,"ingKey","wheeling"),PI(this,"stateKey","wheel"),PI(this,"debounced",!0),PI(this,"handleEvent",I=>{if(I.ctrlKey&&"pinch"in this.controller.handlers||!this.enabled)return;this.setTimeout(this.onEnd),this.updateSharedState(TA(I));const g=bg(fE(I,this.transform),this.state.values);if(this.state._active)this.updateGestureState({...tA(this,I),...this.getKinematics(g,I)});else{this.updateGestureState({...fI(this,g,I),...tA(this,I,!0),initial:this.state.values});const C=this.getMovement(g),Q=KE(C.delta);this.updateGestureState(C),this.updateGestureState(Q)}this.fireGestureHandler()}),PI(this,"onEnd",()=>{if(this.clean(),!this.state._active)return;const I=this.getMovement(this.state.values);this.updateGestureState(I),this.updateGestureState({_active:!1,velocities:[0,0],velocity:0}),this.fireGestureHandler()})}addBindings(I){gA(I,"onWheel",this.handleEvent)}}const Te=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function He(A){const I={},g={},C=new Set;for(let Q in A)Te.test(Q)?(C.add(RegExp.lastMatch),g[Q]=A[Q]):I[Q]=A[Q];return[g,I,C]}function me(A,I){const[g,C,Q]=He(A);HA.set("drag",Ee),HA.set("hover",eB),HA.set("move",eB),HA.set("pinch",Ye),HA.set("scroll",ke),HA.set("wheel",Le);const B=Re(I,Q),E={};return Q.has("onDrag")&&(E.drag=_I(g,"onDrag")),Q.has("onWheel")&&(E.wheel=_I(g,"onWheel")),Q.has("onScroll")&&(E.scroll=_I(g,"onScroll")),Q.has("onMove")&&(E.move=_I(g,"onMove")),Q.has("onPinch")&&(E.pinch=_I(g,"onPinch")),Q.has("onHover")&&(E.hover=g.onHover),Ne(E,B,C)}function _I(A,I){const g=I+"Start",C=I+"End";return B=>{let E;return B.first&&g in A&&A[g](B),I in A&&(E=A[I](B)),B.last&&C in A&&A[C](B),E}}function pe(A){return uB()?(ki(A),!0):!1}function zA(A){return typeof A=="function"?A():KA(A)}const be=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ve=Object.prototype.toString,Ze=A=>Ve.call(A)==="[object Object]",wC=(A,I,g)=>Math.min(g,Math.max(I,A)),qe=()=>{};function We(A,I){function g(...C){return new Promise((Q,B)=>{Promise.resolve(A(()=>I.apply(this,C),{fn:I,thisArg:this,args:C})).then(Q).catch(B)})}return g}const mE=A=>A();function Oe(A=mE){const I=WA(!0);function g(){I.value=!1}function C(){I.value=!0}const Q=(...B)=>{I.value&&A(...B)};return{isActive:$C(I),pause:g,resume:C,eventFilter:Q}}function je(A){return tQ()}function xe(A,I,g={}){const{eventFilter:C=mE,...Q}=g;return lI(A,We(C,I),Q)}function ve(A,I,g={}){const{eventFilter:C,...Q}=g,{eventFilter:B,pause:E,resume:i,isActive:o}=Oe(C);return{stop:xe(A,I,{...Q,eventFilter:B}),pause:E,resume:i,isActive:o}}function Xe(A,I=!0,g){je()?ng(A,g):I?A():Xg(A)}function kg(A,I,g){if(typeof A=="function"||wI(A))return _A(()=>wC(zA(A),zA(I),zA(g)));const C=WA(A);return _A({get(){return C.value=wC(C.value,zA(I),zA(g))},set(Q){C.value=wC(Q,zA(I),zA(g))}})}const ze=(A,I)=>{const g=A.__vccOpts||A;for(const[C,Q]of I)g[C]=Q;return g},Pe={viewBox:"-2 -2 104 124"},_e={stroke:"currentColor"},$e=["stroke","stroke-dashoffset"],As=["transform"],Is={transform:"translate(50,50)","text-anchor":"middle","dominant-baseline":"middle",fill:"currentColor"},gs=["transform"],Cs={transform:"translate(0,20)"},Qs={class:"font-bold",transform:"translate(0,58)"},Bs=45,Es={__name:"ControlRotary",props:fo({max:{type:Number,default:100},min:{type:Number,default:0},step:{type:Number,default:1},param:{type:String,default:"param"},unit:{type:String,default:""},fixed:{type:Number,default:1},cc:{type:Number,default:0},channel:{type:Number,default:0}},{modelValue:{default:50},modelModifiers:{}}),emits:["update:modelValue"],setup(A){const I=A,g=Po(A,"modelValue"),C=II({internal:kg(0,0,100),initial:_A(()=>(g.value-I.min)/(I.max-I.min)*100)}),Q=_A({get:()=>Math.round((C.internal/100*(I.max-I.min)+I.min)/I.step)*I.step,set:i=>{C.internal=(i-I.min)/(I.max-I.min)*100}});lI(g,i=>{Q.value=i},{immediate:!0});const B=WA();me({onDrag:({delta:[i,o],dragging:e,shiftKey:t,event:D})=>{D&&D.preventDefault();const l=t?12:D.type==="wheel"?-8:2;C.internal=kg(0,C.internal-o/l+i/l,100),g.value=Q.value},onWheel:({delta:[i,o],event:e})=>{e&&e.preventDefault(),C.internal=kg(0,C.internal+o/8-i/8,100),g.value=Q.value}},{wheel:{preventWindowScrollY:!0},eventOptions:{capture:!1,passive:!1},domTarget:B});const E=Math.PI*2*Bs-50;return(i,o)=>(ZA(),aI("div",{class:"knob",ref_key:"knob",ref:B,onDblclick:o[0]||(o[0]=e=>{C.internal=C.initial,g.value=Q.value})},[o[3]||(o[3]=oA("div",{class:"i-ph-arrows-horizontal absolute text-10px top-14px opacity-70"},null,-1)),(ZA(),aI("svg",Pe,[oA("g",_e,[o[2]||(o[2]=oA("path",{d:"M25,90 a 45,45,1,1,1,50,0",fill:"none",stroke:"#9996","stroke-width":"8","stroke-linecap":"round"},null,-1)),oA("path",{d:"M25,90 a 45,45,1,1,1,50,0",fill:"none",stroke:`hsla(${C.internal*3.6}deg,70%,50%,0.8)`,"stroke-width":"12","stroke-linecap":"round","stroke-dasharray":E,"stroke-dashoffset":E-E*(C.internal/100)},null,8,$e),oA("g",{transform:`translate(50,52.5) rotate(${C.internal*2.9}) `},o[1]||(o[1]=[oA("circle",{"stroke-width":"2",fill:"none",r:38,opacity:"0.6"},null,-1)]),8,As)]),oA("g",Is,[oA("text",{class:"font-bold text-2xl",transform:`translate(0,${A.unit?-3:5})`},[Mo(i.$slots,"default",{},()=>[oA("tspan",null,HI(Q.value.toFixed(A.fixed)),1)])],8,gs),oA("text",Cs,[oA("tspan",null,HI(A.unit),1)]),oA("text",Qs,[oA("tspan",null,HI(A.param.toUpperCase()),1)])])]))],544))}},sB=ze(Es,[["__scopeId","data-v-1534cf19"]]);function rQ(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var is=function(I,g,C,Q){var B=C?C.call(Q,I,g):void 0;if(B!==void 0)return!!B;if(I===g)return!0;if(typeof I!="object"||!I||typeof g!="object"||!g)return!1;var E=Object.keys(I),i=Object.keys(g);if(E.length!==i.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(g),e=0;eI in A?bE(A,I,{enumerable:!0,configurable:!0,writable:!0,value:g}):A[I]=g,QA=(A,I)=>{for(var g in I||(I={}))ls.call(I,g)&&nB(A,g,I[g]);if(DB)for(var g of DB(I))ws.call(I,g)&&nB(A,g,I[g]);return A},cs=(A,I)=>rs(A,as(I)),gI=(A,I)=>{for(var g in I)bE(A,g,{get:I[g],enumerable:!0})},aQ={};gI(aQ,{_1:()=>VE,_2:()=>ZE,_3:()=>WE,_4:()=>OE,_5:()=>jE,_6:()=>xE,_7:()=>vE,_8:()=>XE,__1:()=>lQ,__2:()=>qE,__3:()=>Rs,__4:()=>Ns,__5:()=>hs,__6:()=>Gs,__7:()=>Fs,__8:()=>ys,app:()=>W});function rB(A,I,g){for(var C=new Array(g),Q=0,B=I;Q=0)return function(o,e){return function(t){return W(o,e.concat([t]))}}(C,g);I=rB(g,B,-i|0),A=C.apply(null,rB(g,0,B))}}function VE(A,I){var g=A.length;if(g===1)return A(I);switch(g){case 1:return A(I);case 2:return function(C){return A(I,C)};case 3:return function(C,Q){return A(I,C,Q)};case 4:return function(C,Q,B){return A(I,C,Q,B)};case 5:return function(C,Q,B,E){return A(I,C,Q,B,E)};case 6:return function(C,Q,B,E,i){return A(I,C,Q,B,E,i)};case 7:return function(C,Q,B,E,i,o){return A(I,C,Q,B,E,i,o)};default:return W(A,[I])}}function lQ(A){var I=A.length;return I===1?A:function(g){return VE(A,g)}}function ZE(A,I,g){var C=A.length;if(C===2)return A(I,g);switch(C){case 1:return W(A(I),[g]);case 2:return A(I,g);case 3:return function(Q){return A(I,g,Q)};case 4:return function(Q,B){return A(I,g,Q,B)};case 5:return function(Q,B,E){return A(I,g,Q,B,E)};case 6:return function(Q,B,E,i){return A(I,g,Q,B,E,i)};case 7:return function(Q,B,E,i,o){return A(I,g,Q,B,E,i,o)};default:return W(A,[I,g])}}function qE(A){var I=A.length;return I===2?A:function(g,C){return ZE(A,g,C)}}function WE(A,I,g,C){var Q=A.length;if(Q===3)return A(I,g,C);switch(Q){case 1:return W(A(I),[g,C]);case 2:return W(A(I,g),[C]);case 3:return A(I,g,C);case 4:return function(B){return A(I,g,C,B)};case 5:return function(B,E){return A(I,g,C,B,E)};case 6:return function(B,E,i){return A(I,g,C,B,E,i)};case 7:return function(B,E,i,o){return A(I,g,C,B,E,i,o)};default:return W(A,[I,g,C])}}function Rs(A){var I=A.length;return I===3?A:function(g,C,Q){return WE(A,g,C,Q)}}function OE(A,I,g,C,Q){var B=A.length;if(B===4)return A(I,g,C,Q);switch(B){case 1:return W(A(I),[g,C,Q]);case 2:return W(A(I,g),[C,Q]);case 3:return W(A(I,g,C),[Q]);case 4:return A(I,g,C,Q);case 5:return function(E){return A(I,g,C,Q,E)};case 6:return function(E,i){return A(I,g,C,Q,E,i)};case 7:return function(E,i,o){return A(I,g,C,Q,E,i,o)};default:return W(A,[I,g,C,Q])}}function Ns(A){var I=A.length;return I===4?A:function(g,C,Q,B){return OE(A,g,C,Q,B)}}function jE(A,I,g,C,Q,B){var E=A.length;if(E===5)return A(I,g,C,Q,B);switch(E){case 1:return W(A(I),[g,C,Q,B]);case 2:return W(A(I,g),[C,Q,B]);case 3:return W(A(I,g,C),[Q,B]);case 4:return W(A(I,g,C,Q),[B]);case 5:return A(I,g,C,Q,B);case 6:return function(i){return A(I,g,C,Q,B,i)};case 7:return function(i,o){return A(I,g,C,Q,B,i,o)};default:return W(A,[I,g,C,Q,B])}}function hs(A){var I=A.length;return I===5?A:function(g,C,Q,B,E){return jE(A,g,C,Q,B,E)}}function xE(A,I,g,C,Q,B,E){var i=A.length;if(i===6)return A(I,g,C,Q,B,E);switch(i){case 1:return W(A(I),[g,C,Q,B,E]);case 2:return W(A(I,g),[C,Q,B,E]);case 3:return W(A(I,g,C),[Q,B,E]);case 4:return W(A(I,g,C,Q),[B,E]);case 5:return W(A(I,g,C,Q,B),[E]);case 6:return A(I,g,C,Q,B,E);case 7:return function(o){return A(I,g,C,Q,B,E,o)};default:return W(A,[I,g,C,Q,B,E])}}function Gs(A){var I=A.length;return I===6?A:function(g,C,Q,B,E,i){return xE(A,g,C,Q,B,E,i)}}function vE(A,I,g,C,Q,B,E,i){var o=A.length;if(o===7)return A(I,g,C,Q,B,E,i);switch(o){case 1:return W(A(I),[g,C,Q,B,E,i]);case 2:return W(A(I,g),[C,Q,B,E,i]);case 3:return W(A(I,g,C),[Q,B,E,i]);case 4:return W(A(I,g,C,Q),[B,E,i]);case 5:return W(A(I,g,C,Q,B),[E,i]);case 6:return W(A(I,g,C,Q,B,E),[i]);case 7:return A(I,g,C,Q,B,E,i);default:return W(A,[I,g,C,Q,B,E,i])}}function Fs(A){var I=A.length;return I===7?A:function(g,C,Q,B,E,i,o){return vE(A,g,C,Q,B,E,i,o)}}function XE(A,I,g,C,Q,B,E,i,o){var e=A.length;if(e===8)return A(I,g,C,Q,B,E,i,o);switch(e){case 1:return W(A(I),[g,C,Q,B,E,i,o]);case 2:return W(A(I,g),[C,Q,B,E,i,o]);case 3:return W(A(I,g,C),[Q,B,E,i,o]);case 4:return W(A(I,g,C,Q),[B,E,i,o]);case 5:return W(A(I,g,C,Q,B),[E,i,o]);case 6:return W(A(I,g,C,Q,B,E),[i,o]);case 7:return W(A(I,g,C,Q,B,E,i),[o]);default:return W(A,[I,g,C,Q,B,E,i,o])}}function ys(A){var I=A.length;return I===8?A:function(g,C,Q,B,E,i,o,e){return XE(A,g,C,Q,B,E,i,o,e)}}var zE={};gI(zE,{$$Map:()=>Os,$$Set:()=>js,RenderDelegate:()=>xs,mount:()=>Ei,renderWithDelegate:()=>vs,stepGarbageCollector:()=>Xs,visit:()=>ii});var PE={};gI(PE,{create:()=>Qi,isNode:()=>qs,shallowCopy:()=>Bi,symbol:()=>wQ});function aB(A){var I=typeof A;return I==="undefined"?3:A===null?2:I==="number"?{TAG:0,_0:A}:I==="bigint"?{TAG:5,_0:A}:I==="string"?{TAG:1,_0:A}:I==="boolean"?A===!0?1:0:I==="symbol"?{TAG:4,_0:A}:I==="function"?{TAG:2,_0:A}:{TAG:3,_0:A}}function Ms(A,I){switch(I){case 0:return typeof A>"u";case 1:return A===null;case 2:return typeof A=="boolean";case 3:return typeof A=="number";case 4:return typeof A=="string";case 5:return typeof A=="function";case 6:return typeof A=="object";case 7:return typeof A=="symbol";case 8:return typeof A=="bigint"}}function Us(A){return A===void 0?{BS_PRIVATE_NESTED_SOME_NONE:0}:A!==null&&A.BS_PRIVATE_NESTED_SOME_NONE!==void 0?{BS_PRIVATE_NESTED_SOME_NONE:A.BS_PRIVATE_NESTED_SOME_NONE+1|0}:A}function fs(A){if(!(A!==null&&A.BS_PRIVATE_NESTED_SOME_NONE!==void 0))return A;var I=A.BS_PRIVATE_NESTED_SOME_NONE;if(I!==0)return{BS_PRIVATE_NESTED_SOME_NONE:I-1|0}}function Js(A,I){return{hd:I,tl:A}}function Ys(A,I){for(;;){var g=I,C=A;if(!C)return g;var Q={hd:C.hd,tl:0};g.tl=Q,I=Q,A=C.tl}}function us(A,I,g){for(;;){var C=I,Q=A;if(!Q)return;var B={hd:g(Q.hd),tl:0};C.tl=B,I=B,A=Q.tl}}function Ss(A,I,g,C){for(;;){var Q=C,B=g,E=I;if(!B)return;var i={hd:A(E,B.hd),tl:0};Q.tl=i,C=i,g=B.tl,I=E+1|0}}function ks(A,I){if(!A)return I;var g={hd:A.hd,tl:0};return Ys(A.tl,g).tl=I,g}function ds(A,I){if(!A)return 0;var g={hd:I(A.hd),tl:0};return us(A.tl,g,I),g}function _E(A,I){return ds(A,lQ(I))}function Ks(A,I){if(!A)return 0;var g={hd:I(0,A.hd),tl:0};return Ss(I,1,A.tl,g),g}function Ls(A,I){return Ks(A,qE(I))}function $E(A){for(var I=A,g=0;;){var C=g,Q=I;if(!Q)return C;g=C+1|0,I=Q.tl}}function Ts(A,I,g){for(;;){var C=g,Q=I;if(!C)return;A[Q]=C.hd,g=C.tl,I=Q+1|0}}function Ai(A){for(var I=A.length-1|0,g=0;;){var C=g,Q=I;if(Q<0)return C;g={hd:A[Q],tl:C},I=Q-1|0}}function Hs(A){var I=$E(A),g=new Array(I);return Ts(g,0,A),g}function ms(A,I){for(;;){var g=A;if(!g)return;I(g.hd),A=g.tl}}function Ii(A,I){ms(A,lQ(I))}function ps(A,I,g){for(;;){var C=I,Q=A;if(!Q)return C;I=g(C,Q.hd),A=Q.tl}}function gi(A,I,g,C){for(let Q in C)if(C.hasOwnProperty(Q)){const B=C[Q];(!g.hasOwnProperty(Q)||!os(g[Q],B))&&((typeof B>"u"||B===null||typeof B=="number"&&isNaN(B)||typeof B=="number"&&!isFinite(B))&&console.warn(`Warning: applying a potentially erroneous property value. ${Q}: ${B}`),A.setProperty(I,Q,B),g[Q]=B)}}function bs(A,I){if(I in A)return Us(A[I])}function Vs(A){if(A!==void 0)return fs(A);throw new Error("getExn")}function lB(A,I,g,C){gi(A,I,g,C)}function Ci(A,I){return Math.imul(A^I,16777619)}function cC(A,I){for(var g=A,C=0,Q=I.length;C<=Q;++C)g=Ci(g,I.charCodeAt(C)|0);return g}function Zs(A,I,g){var C=cC(-2128831035,A),Q=bs(I,"key"),B=Q!==void 0&&Ms(Q,4)?cC(C,Q):cC(C,Vs(JSON.stringify(I)));return ps(g,B,Ci)&2147483647}var wQ="__ELEM_NODE__";function Qi(A,I,g){var C=Ai(g),Q=_E(C,function(B){return B.hash});return{symbol:wQ,hash:Zs(A,I,Q),kind:A,props:I,children:C}}function qs(A){var I=aB(A);if(typeof I=="number"||I.TAG!==3)return!1;var g=aB(A.symbol);return typeof g=="number"||g.TAG!==1?!1:g._0===wQ}function Bi(A){return{symbol:A.symbol,hash:A.hash,kind:A.kind,props:Object.assign({},A.props),generation:{contents:0}}}function Ws(A){return Array.from(A.values())}var Os={valuesArray:Ws},js={},xs={};function Ei(A,I){var g=A.getNodeMap();if(g.has(I.hash)){var C=g.get(I.hash);lB(A,C.hash,C.props,I.props),C.generation.contents=0;return}A.createNode(I.hash,I.kind),lB(A,I.hash,{},I.props),Ii(I.children,function(Q){A.appendChild(I.hash,Q.hash)}),g.set(I.hash,Bi(I))}function ii(A,I,g){for(;;){var C=g,Q=function(i){I.add(i.hash)};if(!C)return;var B=C.tl,E=C.hd;if(I.has(E.hash)){g=B;continue}Q(E),Ei(A,E),g=ks(E.children,B)}}function vs(A,I){var g=new Set,C=Ls(Ai(I),function(Q,B){return Qi("root",{channel:Q},[B])});ii(A,g,C),A.activateRoots(Hs(_E(C,function(Q){return Q.hash}))),A.commitUpdates()}function Xs(A){var I=A.getNodeMap(),g=A.getTerminalGeneration(),C=Array.from(I.values()).reduce(function(Q,B){return B.generation.contents=B.generation.contents+1|0,B.generation.contents>=g?(A.deleteNode(B.hash),Js(Q,B)):Q},0);if($E(C)>0)return A.commitUpdates(),Ii(C,function(Q){I.delete(Q.hash)})}var zs=aQ,oi=zE,Ps=function(A,I){return zs._2(oi.renderWithDelegate,A,I)};oi.stepGarbageCollector;var _s=aQ,cQ=PE,ti=function(A,I,g){return _s._3(cQ.create,A,I,g)},$s=cQ.isNode;cQ.shallowCopy;function r(A){return typeof A=="number"?ti("const",{value:A},[]):(ss(J(A),`Whoops, expecting a Node type here! Got: ${typeof A}`),A)}function J(A){return $s(A)}function c(A,I,g){return ti(A,I,g.map(r))}var JI={};gI(JI,{accum:()=>CD,biquad:()=>YD,capture:()=>TD,constant:()=>ei,convolve:()=>nD,counter:()=>gD,delay:()=>FD,env:()=>hD,fft:()=>LD,latch:()=>ED,maxhold:()=>iD,meter:()=>kD,metro:()=>eD,mm1p:()=>UD,once:()=>oD,phasor:()=>QD,pole:()=>ND,prewarp:()=>MD,rand:()=>tD,sample:()=>sD,sampleseq:()=>cD,sampleseq2:()=>RD,scope:()=>KD,sdelay:()=>yD,seq:()=>rD,seq2:()=>aD,snapshot:()=>dD,sparseq:()=>lD,sparseq2:()=>wD,sr:()=>AD,svf:()=>fD,svfshelf:()=>JD,syncphasor:()=>BD,table:()=>DD,tapIn:()=>uD,tapOut:()=>SD,time:()=>ID,z:()=>GD});function ei(A){return c("const",A,[])}function AD(){return c("sr",{},[])}function ID(){return c("time",{},[])}function gD(A,I){return typeof A=="number"||J(A)?c("counter",{},[r(A)]):c("counter",A,[r(I)])}function CD(A,I,g){return typeof A=="number"||J(A)?c("accum",{},[r(A),r(I)]):c("accum",A,[r(I),r(g)])}function QD(A,I){return typeof A=="number"||J(A)?c("phasor",{},[r(A)]):c("phasor",A,[r(I)])}function BD(A,I,g){return typeof A=="number"||J(A)?c("sphasor",{},[r(A),r(I)]):c("sphasor",A,[r(I),r(g)])}function ED(A,I,g){return typeof A=="number"||J(A)?c("latch",{},[r(A),r(I)]):c("latch",A,[r(I),r(g)])}function iD(A,I,g){return typeof A=="number"||J(A)?c("maxhold",{},[r(A),r(I)]):c("maxhold",A,[r(I),r(g)])}function oD(A,I){return typeof A=="number"||J(A)?c("once",{},[r(A)]):c("once",A,[r(I)])}function tD(A){return typeof A<"u"?c("rand",A,[]):c("rand",{},[])}function eD(A){return typeof A<"u"?c("metro",A,[]):c("metro",{},[])}function sD(A,I,g){return c("sample",A,[r(I),r(g)])}function DD(A,I){return c("table",A,[r(I)])}function nD(A,I){return c("convolve",A,[r(I)])}function rD(A,I,g){return c("seq",A,[r(I),r(g)])}function aD(A,I,g){return c("seq2",A,[r(I),r(g)])}function lD(A,I,g){return c("sparseq",A,[r(I),r(g)])}function wD(A,I){return c("sparseq2",A,[r(I)])}function cD(A,I){return c("sampleseq",A,[r(I)])}function RD(A,I){return c("sampleseq2",A,[r(I)])}function ND(A,I,g){return typeof A=="number"||J(A)?c("pole",{},[r(A),r(I)]):c("pole",A,[r(I),r(g)])}function hD(A,I,g,C){return typeof A=="number"||J(A)?c("env",{},[r(A),r(I),r(g)]):c("env",A,[r(I),r(g),r(C)])}function GD(A,I){return typeof A=="number"||J(A)?c("z",{},[r(A)]):c("z",A,[r(I)])}function FD(A,I,g,C){return typeof A=="number"||J(A)?c("delay",{},[r(A),r(I),r(g)]):c("delay",A,[r(I),r(g),r(C)])}function yD(A,I){return c("sdelay",A,[r(I)])}function MD(A){return c("prewarp",{},[A])}function UD(A,I,g){return typeof A=="number"||J(A)?c("mm1p",{},[r(A),r(I)]):c("mm1p",A,[r(I),r(g)])}function fD(A,I,g,C){return typeof A=="number"||J(A)?c("svf",{},[r(A),r(I),r(g)]):c("svf",A,[r(I),r(g),r(C)])}function JD(A,I,g,C,Q){return typeof A=="number"||J(A)?c("svfshelf",{},[r(A),r(I),r(g),r(C)]):c("svfshelf",A,[r(I),r(g),r(C),r(Q)])}function YD(A,I,g,C,Q,B,E){return typeof A=="number"||J(A)?c("biquad",{},[r(A),r(I),r(g),r(C),r(Q),r(B)]):c("biquad",A,[r(I),r(g),r(C),r(Q),r(B),r(E)])}function uD(A){return c("tapIn",A,[])}function SD(A,I){return c("tapOut",A,[r(I)])}function kD(A,I){return typeof A=="number"||J(A)?c("meter",{},[r(A)]):c("meter",A,[r(I)])}function dD(A,I,g){return typeof A=="number"||J(A)?c("snapshot",{},[r(A),r(I)]):c("snapshot",A,[r(I),r(g)])}function KD(A,...I){return typeof A=="number"||J(A)?c("scope",{},[A,...I].map(r)):c("scope",A,I.map(r))}function LD(A,I){return typeof A=="number"||J(A)?c("fft",{},[r(A)]):c("fft",A,[r(I)])}function TD(A,I,g){return typeof A=="number"||J(A)?c("capture",{},[r(A),r(I)]):c("capture",A,[r(I),r(g)])}var si={};gI(si,{compress:()=>cn,skcompress:()=>Rn});var YI={};gI(YI,{abs:()=>zD,add:()=>Bn,and:()=>Cn,asinh:()=>VD,ceil:()=>OD,cos:()=>mD,div:()=>tn,eq:()=>gn,exp:()=>XD,floor:()=>jD,ge:()=>$D,geq:()=>An,identity:()=>Di,le:()=>PD,leq:()=>_D,ln:()=>ZD,log:()=>qD,log2:()=>WD,max:()=>Dn,min:()=>sn,mod:()=>en,mul:()=>on,or:()=>Qn,pow:()=>In,round:()=>xD,sin:()=>HD,sqrt:()=>vD,sub:()=>En,tan:()=>pD,tanh:()=>bD});function Di(A,I){return typeof A=="number"||J(A)?c("in",{},[r(A)]):typeof I=="number"||J(I)?c("in",A,[r(I)]):c("in",A,[])}function HD(A,I){return typeof A=="number"||J(A)?c("sin",{},[r(A)]):c("sin",A,[r(I)])}function mD(A,I){return typeof A=="number"||J(A)?c("cos",{},[r(A)]):c("cos",A,[r(I)])}function pD(A,I){return typeof A=="number"||J(A)?c("tan",{},[r(A)]):c("tan",A,[r(I)])}function bD(A,I){return typeof A=="number"||J(A)?c("tanh",{},[r(A)]):c("tanh",A,[r(I)])}function VD(A,I){return typeof A=="number"||J(A)?c("asinh",{},[r(A)]):c("asinh",A,[r(I)])}function ZD(A,I){return typeof A=="number"||J(A)?c("ln",{},[r(A)]):c("ln",A,[r(I)])}function qD(A,I){return typeof A=="number"||J(A)?c("log",{},[r(A)]):c("log",A,[r(I)])}function WD(A,I){return typeof A=="number"||J(A)?c("log2",{},[r(A)]):c("log2",A,[r(I)])}function OD(A,I){return typeof A=="number"||J(A)?c("ceil",{},[r(A)]):c("ceil",A,[r(I)])}function jD(A,I){return typeof A=="number"||J(A)?c("floor",{},[r(A)]):c("floor",A,[r(I)])}function xD(A,I){return typeof A=="number"||J(A)?c("round",{},[r(A)]):c("round",A,[r(I)])}function vD(A,I){return typeof A=="number"||J(A)?c("sqrt",{},[r(A)]):c("sqrt",A,[r(I)])}function XD(A,I){return typeof A=="number"||J(A)?c("exp",{},[r(A)]):c("exp",A,[r(I)])}function zD(A,I){return typeof A=="number"||J(A)?c("abs",{},[r(A)]):c("abs",A,[r(I)])}function PD(A,I,g){return typeof A=="number"||J(A)?c("le",{},[r(A),r(I)]):c("le",A,[r(I),r(g)])}function _D(A,I,g){return typeof A=="number"||J(A)?c("leq",{},[r(A),r(I)]):c("leq",A,[r(I),r(g)])}function $D(A,I,g){return typeof A=="number"||J(A)?c("ge",{},[r(A),r(I)]):c("ge",A,[r(I),r(g)])}function An(A,I,g){return typeof A=="number"||J(A)?c("geq",{},[r(A),r(I)]):c("geq",A,[r(I),r(g)])}function In(A,I,g){return typeof A=="number"||J(A)?c("pow",{},[r(A),r(I)]):c("pow",A,[r(I),r(g)])}function gn(A,I,g){return typeof A=="number"||J(A)?c("eq",{},[r(A),r(I)]):c("eq",A,[r(I),r(g)])}function Cn(A,I,g){return typeof A=="number"||J(A)?c("and",{},[r(A),r(I)]):c("and",A,[r(I),r(g)])}function Qn(A,I,g){return typeof A=="number"||J(A)?c("or",{},[r(A),r(I)]):c("or",A,[r(I),r(g)])}function Bn(A,...I){return typeof A=="number"||J(A)?c("add",{},[A,...I].map(r)):c("add",A,I.map(r))}function En(A,...I){return typeof A=="number"||J(A)?c("sub",{},[A,...I].map(r)):c("sub",A,I.map(r))}function on(A,...I){return typeof A=="number"||J(A)?c("mul",{},[A,...I].map(r)):c("mul",A,I.map(r))}function tn(A,...I){return typeof A=="number"||J(A)?c("div",{},[A,...I].map(r)):c("div",A,I.map(r))}function en(A,...I){return typeof A=="number"||J(A)?c("mod",{},[A,...I].map(r)):c("mod",A,I.map(r))}function sn(A,...I){return typeof A=="number"||J(A)?c("min",{},[A,...I].map(r)):c("min",A,I.map(r))}function Dn(A,...I){return typeof A=="number"||J(A)?c("max",{},[A,...I].map(r)):c("max",A,I.map(r))}var cg={};gI(cg,{db2gain:()=>an,gain2db:()=>ln,hann:()=>wn,ms2samps:()=>nn,select:()=>ni,tau2pole:()=>rn});var EA=QA(QA({},JI),YI);function nn(A){return EA.mul(EA.sr(),EA.div(A,1e3))}function rn(A){return EA.exp(EA.div(-1,EA.mul(A,EA.sr())))}function an(A){return EA.pow(10,EA.mul(A,1/20))}function ln(A){return ni(EA.ge(A,0),EA.max(-120,EA.mul(20,EA.log(A))),-120)}function ni(A,I,g){return EA.add(EA.mul(A,I),EA.mul(EA.sub(1,A),g))}function wn(A){return EA.mul(.5,EA.sub(1,EA.cos(EA.mul(2*Math.PI,A))))}var Z=QA(QA(QA({},JI),YI),cg);function cn(A,I,g,C,Q,B){const E=Z.env(Z.tau2pole(Z.mul(.001,A)),Z.tau2pole(Z.mul(.001,I)),Q),i=Z.gain2db(E),o=Z.sub(1,Z.div(1,C)),e=Z.mul(o,Z.sub(g,i)),t=Z.min(0,e),D=Z.db2gain(t);return Z.mul(B,D)}function Rn(A,I,g,C,Q,B,E){const i=Z.env(Z.tau2pole(Z.mul(.001,A)),Z.tau2pole(Z.mul(.001,I)),B),o=Z.gain2db(i),e=Z.sub(g,Z.div(Q,2)),t=Z.add(g,Z.div(Q,2)),D=Z.and(Z.geq(o,e),Z.leq(o,t)),l=Z.sub(1,Z.div(1,C)),a=Z.select(D,Z.mul(Z.div(l,2),Z.mul(Z.div(Z.sub(o,e),Q),Z.sub(e,o))),Z.mul(l,Z.sub(g,o))),R=Z.min(0,a),h=Z.db2gain(R);return Z.mul(E,h)}var ri={};gI(ri,{adsr:()=>kn});var IC={};gI(IC,{allpass:()=>fn,bandpass:()=>Mn,dcblock:()=>hn,df11:()=>Gn,highpass:()=>yn,highshelf:()=>un,lowpass:()=>Fn,lowshelf:()=>Yn,notch:()=>Un,peak:()=>Jn,pink:()=>Sn,sm:()=>Nn,smooth:()=>TC,zero:()=>RQ});var V=QA(QA(QA({},JI),YI),cg);function TC(A,I,g){return typeof A=="number"||J(A)?V.pole(A,V.mul(V.sub(1,A),I)):V.pole(A,I,V.mul(V.sub(1,I),g))}function Nn(A,I){return typeof A=="number"||J(A)?TC(V.tau2pole(.02),A):TC(A,V.tau2pole(.02),I)}function RQ(A,I,g,C){let[Q,B,E]=typeof A=="number"||J(A)?[A,I,g]:[I,g,C];return V.sub(V.mul(Q,E),V.mul(B,V.z(E)))}function hn(A,I){let g=typeof A=="number"||J(A)?A:I;return V.pole(.995,RQ(1,1,g))}function Gn(A,I,g,C,Q){let[B,E,i,o]=typeof A=="number"||J(A)?[A,I,g,C]:[I,g,C,Q];return V.pole(i,RQ(B,E,o))}function Fn(A,I,g,C){return typeof A=="number"||J(A)?V.svf({mode:"lowpass"},A,I,g):V.svf(Object.assign({},A,{mode:"lowpass"}),I,g,C)}function yn(A,I,g,C){return typeof A=="number"||J(A)?V.svf({mode:"highpass"},A,I,g):V.svf(Object.assign({},A,{mode:"highpass"}),I,g,C)}function Mn(A,I,g,C){return typeof A=="number"||J(A)?V.svf({mode:"bandpass"},A,I,g):V.svf(Object.assign({},A,{mode:"bandpass"}),I,g,C)}function Un(A,I,g,C){return typeof A=="number"||J(A)?V.svf({mode:"notch"},A,I,g):V.svf(Object.assign({},A,{mode:"notch"}),I,g,C)}function fn(A,I,g,C){return typeof A=="number"||J(A)?V.svf({mode:"allpass"},A,I,g):V.svf(Object.assign({},A,{mode:"allpass"}),I,g,C)}function Jn(A,I,g,C,Q){return typeof A=="number"||J(A)?V.svfshelf({mode:"peak"},A,I,g,C):V.svfshelf(Object.assign({},A,{mode:"peak"}),I,g,C,Q)}function Yn(A,I,g,C,Q){return typeof A=="number"||J(A)?V.svfshelf({mode:"lowshelf"},A,I,g,C):V.svfshelf(Object.assign({},A,{mode:"lowshelf"}),I,g,C,Q)}function un(A,I,g,C,Q){return typeof A=="number"||J(A)?V.svfshelf({mode:"highshelf"},A,I,g,C):V.svfshelf(Object.assign({},A,{mode:"highshelf"}),I,g,C,Q)}function Sn(A,I){let g=typeof A=="number"||J(A)?A:I;return((Q,B,E)=>V.min(B,V.max(Q,E)))(-1,1,V.mul(V.db2gain(-30),V.add(V.pole(.99765,V.mul(g,.099046)),V.pole(.963,V.mul(g,.2965164)),V.pole(.57,V.mul(g,1.0526913)),V.mul(.1848,g))))}var VA=QA(QA(QA(QA({},JI),YI),IC),cg);function kn(A,I,g,C,Q,B){let E=typeof A=="number"||J(A)?[A,I,g,C,Q]:[I,g,C,Q,B],[i,o,e,t,D]=E,l=VA.mul(i,VA.sr()),a=VA.le(VA.counter(D),l),R=VA.select(D,VA.select(a,1,e),0),h=VA.select(D,VA.select(a,i,o),t),M=VA.tau2pole(VA.div(h,6.91));return VA.smooth(M,R)}var ai={};gI(ai,{blepsaw:()=>Tn,blepsquare:()=>Hn,bleptriangle:()=>mn,cycle:()=>dn,noise:()=>pC,pinknoise:()=>pn,saw:()=>mC,square:()=>Kn,train:()=>HC,triangle:()=>Ln});var x=QA(QA(QA({},JI),YI),IC);function HC(A,I){return typeof A=="number"||J(A)?x.le(x.phasor(A,0),.5):x.le(x.phasor(A,I,0),.5)}function dn(A,I){return typeof A=="number"||J(A)?x.sin(x.mul(2*Math.PI,x.phasor(A,0))):x.sin(x.mul(2*Math.PI,x.phasor(A,I,0)))}function mC(A,I){return typeof A=="number"||J(A)?x.sub(x.mul(2,x.phasor(A,0)),1):x.sub(x.mul(2,x.phasor(A,I,0)),1)}function Kn(A,I){return typeof A=="number"||J(A)?x.sub(x.mul(2,HC(A)),1):x.sub(x.mul(2,HC(A,I)),1)}function Ln(A,I){return typeof A=="number"||J(A)?x.mul(2,x.sub(.5,x.abs(mC(A)))):x.mul(2,x.sub(.5,x.abs(mC(A,I))))}function Tn(A,I){let C=!(typeof A=="number"||J(A))?I:A;return c("blepsaw",{},[C])}function Hn(A,I){let C=!(typeof A=="number"||J(A))?I:A;return c("blepsquare",{},[C])}function mn(A,I){let C=!(typeof A=="number"||J(A))?I:A;return c("bleptriangle",{},[C])}function pC(A){return typeof A>"u"?x.sub(x.mul(2,x.rand()),1):x.sub(x.mul(2,x.rand(A)),1)}function pn(A){return typeof A>"u"?x.pink(pC()):x.pink(pC(A))}var bn=class extends ns{constructor(){super()}},k=cs(QA(QA(QA(QA(QA(QA(QA({},JI),si),ri),IC),YI),ai),cg),{const:ei,in:Di}),kI={CREATE_NODE:0,DELETE_NODE:1,APPEND_CHILD:2,SET_PROPERTY:3,ACTIVATE_ROOTS:4,COMMIT_UPDATES:5},Vn=class{constructor(){this.nodeMap=new Map,this.currentActiveRoots=new Set,this.clear()}clear(){this.nodesAdded=0,this.nodesRemoved=0,this.edgesAdded=0,this.propsWritten=0,this.batch={createNode:[],deleteNode:[],appendChild:[],setProperty:[],activateRoots:[],commitUpdates:[]}}getNodeMap(){return this.nodeMap}getTerminalGeneration(){return 4}createNode(A,I){this.nodesAdded++,this.batch.createNode.push([kI.CREATE_NODE,A,I])}deleteNode(A){this.nodesRemoved++,this.batch.deleteNode.push([kI.DELETE_NODE,A])}appendChild(A,I){this.edgesAdded++,this.batch.appendChild.push([kI.APPEND_CHILD,A,I])}setProperty(A,I,g){this.propsWritten++,this.batch.setProperty.push([kI.SET_PROPERTY,A,I,g])}activateRoots(A){A.length===this.currentActiveRoots.size&&A.every(g=>this.currentActiveRoots.has(g))||(this.batch.activateRoots.push([kI.ACTIVATE_ROOTS,A]),this.currentActiveRoots=new Set(A))}commitUpdates(){this.batch.commitUpdates.push([kI.COMMIT_UPDATES])}getPackedInstructions(){return[...this.batch.createNode,...this.batch.deleteNode,...this.batch.appendChild,...this.batch.setProperty,...this.batch.activateRoots,...this.batch.commitUpdates]}};function wB(){return typeof performance>"u"?Date.now():performance.now()}var Zn=class{constructor(A){this._delegate=new Vn,this._sendMessage=A,this._nextRefId=0}createRef(A,I,g){let C=`__refKey:${this._nextRefId++}`,Q=c(A,Object.assign({key:C},I),g);return[Q,E=>{if(!this._delegate.nodeMap.has(Q.hash))throw new Error("Cannot update a ref that has not been mounted; make sure you render your node first");const i=this._delegate.nodeMap.get(Q.hash);this._delegate.clear(),gi(this._delegate,Q.hash,i.props,E),this._delegate.commitUpdates();const o=this._delegate.getPackedInstructions();return Promise.resolve(this._sendMessage(o))}]}render(...A){const I=wB();this._delegate.clear(),Ps(this._delegate,A.map(r));const g=wB(),C=this._delegate.getPackedInstructions();return Promise.resolve(this._sendMessage(C)).then(Q=>({result:Q,nodesAdded:this._delegate.nodesAdded,edgesAdded:this._delegate.edgesAdded,propsWritten:this._delegate.propsWritten,elapsedTimeMs:g-I}))}};function qn(A,I){var g={};for(var C in A)Object.prototype.hasOwnProperty.call(A,C)&&I.indexOf(C)<0&&(g[C]=A[C]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,C=Object.getOwnPropertySymbols(A);QA())))}(A,I,g)}var r,X=A=>{throw new q(A.O.S.P.name+" instance already deleted")},m=!1,x=()=>{},e=(A,I,g)=>I===g?A:void 0===g.U||null===(A=e(A,I,g.U))?null:g.pa(A),z={},P=[],p=()=>{for(;P.length;){var A=P.pop();A.O.aa=!1,A.delete()}},u={},v=(A,I)=>{if(!I.S||!I.R)throw new W("makeClassHandle requires ptr and ptrType");if(!!I.V!=!!I.T)throw new W("Both smartPtrType and smartPtr must be specified");return I.count={value:1},$(Object.create(A,{O:{value:I,writable:!0}}))},$=A=>"undefined"==typeof FinalizationRegistry?($=A=>A,A):(m=new FinalizationRegistry((A=>{--(A=A.O).count.value,0===A.count.value&&(A.T?A.V.Z(A.T):A.S.P.Z(A.R))})),x=A=>{m.unregister(A)},($=A=>{var I=A.O;return I.T&&m.register(A,{O:I},A),A})(A));function _(){}var AA=(A,I)=>Object.defineProperty(I,"name",{value:A}),IA=(A,I,g)=>{if(void 0===A[I].Y){var C=A[I];A[I]=function(){if(!A[I].Y.hasOwnProperty(arguments.length))throw new q(`Function \'${g}\' called with an invalid number of arguments (${arguments.length}) - expects one of (${A[I].Y})!`);return A[I].Y[arguments.length].apply(this,arguments)},A[I].Y=[],A[I].Y[C.ea]=C}};function gA(A,I,g,C,Q,B,E,D){this.name=A,this.constructor=I,this.ba=g,this.Z=C,this.U=Q,this.qa=B,this.da=E,this.pa=D,this.va=[]}var CA=(A,I,g)=>{for(;I!==g;){if(!I.da)throw new q(`Expected null or instance of ${g.name}, got an instance of ${I.name}`);A=I.da(A),I=I.U}return A};function QA(A,I){if(null===I){if(this.ha)throw new q(`null is not a valid ${this.name}`);return 0}if(!I.O)throw new q(`Cannot pass "${TA(I)}" as a ${this.name}`);if(!I.O.R)throw new q(`Cannot pass deleted object as a pointer of type ${this.name}`);return CA(I.O.R,I.O.S.P,this.P)}function BA(A,I){if(null===I){if(this.ha)throw new q(`null is not a valid ${this.name}`);if(this.ga){var g=this.wa();return null!==A&&A.push(this.Z,g),g}return 0}if(!I||!I.O)throw new q(`Cannot pass "${TA(I)}" as a ${this.name}`);if(!I.O.R)throw new q(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.fa&&I.O.S.fa)throw new q(`Cannot convert argument of type ${I.O.V?I.O.V.name:I.O.S.name} to parameter type ${this.name}`);if(g=CA(I.O.R,I.O.S.P,this.P),this.ga){if(void 0===I.O.T)throw new q("Passing raw pointer to smart pointer is illegal");switch(this.ya){case 0:if(I.O.V!==this)throw new q(`Cannot convert argument of type ${I.O.V?I.O.V.name:I.O.S.name} to parameter type ${this.name}`);g=I.O.T;break;case 1:g=I.O.T;break;case 2:if(I.O.V===this)g=I.O.T;else{var C=I.clone();g=this.xa(g,LA((()=>C.delete()))),null!==A&&A.push(this.Z,g)}break;default:throw new q("Unsupporting sharing policy")}}return g}function EA(A,I){if(null===I){if(this.ha)throw new q(`null is not a valid ${this.name}`);return 0}if(!I.O)throw new q(`Cannot pass "${TA(I)}" as a ${this.name}`);if(!I.O.R)throw new q(`Cannot pass deleted object as a pointer of type ${this.name}`);if(I.O.S.fa)throw new q(`Cannot convert argument of type ${I.O.S.name} to parameter type ${this.name}`);return CA(I.O.R,I.O.S.P,this.P)}function DA(A){return this.fromWireType(F[A>>2])}function iA(A,I,g,C,Q,B,E,D,i,w,R){this.name=A,this.P=I,this.ha=g,this.fa=C,this.ga=Q,this.ua=B,this.ya=E,this.ma=D,this.wa=i,this.xa=w,this.Z=R,Q||void 0!==I.U?this.toWireType=BA:(this.toWireType=C?QA:EA,this.W=null)}var wA,RA,oA=[],NA=A=>{var I=oA[A];return I||(A>=oA.length&&(oA.length=A+1),oA[A]=I=wA.get(A)),I},GA=(A,I)=>{var g=(A=d(A)).includes("j")?((A,I)=>{var g=[];return function(){if(g.length=0,Object.assign(g,arguments),A.includes("j")){var Q=C["dynCall_"+A];Q=g&&g.length?Q.apply(null,[I].concat(g)):Q.call(null,I)}else Q=NA(I).apply(null,g);return Q}})(A,I):NA(I);if("function"!=typeof g)throw new q(`unknown function pointer with signature ${A}: ${I}`);return g},FA=A=>{A=AI(A);var I=d(A);return II(A),I},UA=(A,I)=>{var g=[],C={};throw I.forEach((function A(I){C[I]||b[I]||(t[I]?t[I].forEach(A):(g.push(I),C[I]=!0))})),new RA(`${A}: `+g.map(FA).join([", "]))},MA=(A,I)=>{for(var g=[],C=0;C>2]);return g},JA=A=>{for(;A.length;){var I=A.pop();A.pop()(I)}};function yA(A){for(var I=1;IE)throw new q("argTypes array size mismatch! Must at least get return value and \'this\' types!");var D=null!==I[1]&&null!==g,i=yA(I);for(g="void"!==I[0].name,C=[O,C,Q,JA,I[0],I[1]],Q=0;Q{A>=SA.ja&&0==--SA.get(A).na&&(SA.X[A]=void 0,SA.ia.push(A))},cA=A=>{if(!A)throw new q("Cannot use deleted val. handle = "+A);return SA.get(A).value},LA=A=>{switch(A){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:A={na:1,value:A};var I=SA.ia.pop()||SA.X.length;return SA.X[I]=A,I}};function lA(A){return this.fromWireType(G[A>>2])}for(var HA={name:"emscripten::val",fromWireType:A=>{var I=cA(A);return KA(A),I},toWireType:(A,I)=>LA(I),argPackAdvance:8,readValueFromPointer:lA,W:null},TA=A=>{if(null===A)return"null";var I=typeof A;return"object"===I||"array"===I||"function"===I?A.toString():""+A},ZA=(A,I)=>{switch(I){case 4:return function(A){return this.fromWireType(U[A>>2])};case 8:return function(A){return this.fromWireType(M[A>>3])};default:throw new TypeError(`invalid float width (${I}): ${A}`)}},VA=(A,I,g)=>{switch(I){case 1:return g?A=>w[A>>0]:A=>R[A>>0];case 2:return g?A=>o[A>>1]:A=>N[A>>1];case 4:return g?A=>G[A>>2]:A=>F[A>>2];default:throw new TypeError(`invalid integer width (${I}): ${A}`)}},qA="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,WA="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,dA=(A,I)=>{for(var g=A>>1,C=g+I/2;!(g>=C)&&N[g];)++g;if(32<(g<<=1)-A&&WA)return WA.decode(R.subarray(A,g));for(g="",C=0;!(C>=I/2);++C){var Q=o[A+2*C>>1];if(0==Q)break;g+=String.fromCharCode(Q)}return g},jA=(A,I,g)=>{if(g??=2147483647,2>g)return 0;var C=I;g=(g-=2)<2*A.length?g/2:A.length;for(var Q=0;Q>1]=A.charCodeAt(Q),I+=2;return o[I>>1]=0,I-C},bA=A=>2*A.length,tA=(A,I)=>{for(var g=0,C="";!(g>=I/4);){var Q=G[A+4*g>>2];if(0==Q)break;++g,65536<=Q?(Q-=65536,C+=String.fromCharCode(55296|Q>>10,56320|1023&Q)):C+=String.fromCharCode(Q)}return C},OA=(A,I,g)=>{if(g??=2147483647,4>g)return 0;var C=I;g=C+g-4;for(var Q=0;Q=B)B=65536+((1023&B)<<10)|1023&A.charCodeAt(++Q);if(G[I>>2]=B,(I+=4)+4>g)break}return G[I>>2]=0,I-C},nA=A=>{for(var I=0,g=0;g=C&&++g,I+=4}return I},fA=(A,I)=>{var g=b[A];if(void 0===g)throw A=I+" has unknown type "+FA(A),new q(A);return g},rA=(A,I,g)=>{var C=[];return A=A.toWireType(C,g),C.length&&(F[I>>2]=LA(C)),A},XA=[],mA={},xA=A=>{var I=mA[A];return void 0===I?d(A):I},eA=()=>"object"==typeof globalThis?globalThis:Function("return this")(),zA=A=>(zA=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return A=>crypto.getRandomValues(A);c("initRandomDevice")})())(A),PA=Array(256),pA=0;256>pA;++pA)PA[pA]=String.fromCharCode(pA);V=PA,q=C.BindingError=class extends Error{constructor(A){super(A),this.name="BindingError"}},W=C.InternalError=class extends Error{constructor(A){super(A),this.name="InternalError"}},Object.assign(_.prototype,{isAliasOf:function(A){if(!(this instanceof _&&A instanceof _))return!1;var I=this.O.S.P,g=this.O.R;A.O=A.O;var C=A.O.S.P;for(A=A.O.R;I.U;)g=I.da(g),I=I.U;for(;C.U;)A=C.da(A),C=C.U;return I===C&&g===A},clone:function(){if(this.O.R||X(this),this.O.ca)return this.O.count.value+=1,this;var A=$,I=Object,g=I.create,C=Object.getPrototypeOf(this),Q=this.O;return(A=A(g.call(I,C,{O:{value:{count:Q.count,aa:Q.aa,ca:Q.ca,R:Q.R,S:Q.S,T:Q.T,V:Q.V}}}))).O.count.value+=1,A.O.aa=!1,A},delete(){if(this.O.R||X(this),this.O.aa&&!this.O.ca)throw new q("Object already scheduled for deletion");x(this);var A=this.O;--A.count.value,0===A.count.value&&(A.T?A.V.Z(A.T):A.S.P.Z(A.R)),this.O.ca||(this.O.T=void 0,this.O.R=void 0)},isDeleted:function(){return!this.O.R},deleteLater:function(){if(this.O.R||X(this),this.O.aa&&!this.O.ca)throw new q("Object already scheduled for deletion");return P.push(this),1===P.length&&r&&r(p),this.O.aa=!0,this}}),C.getInheritedInstanceCount=()=>Object.keys(u).length,C.getLiveInheritedInstances=()=>{var A,I=[];for(A in u)u.hasOwnProperty(A)&&I.push(u[A]);return I},C.flushPendingDeletes=p,C.setDelayFunction=A=>{r=A,P.length&&r&&r(p)},Object.assign(iA.prototype,{ra(A){return this.ma&&(A=this.ma(A)),A},la(A){this.Z?.(A)},argPackAdvance:8,readValueFromPointer:DA,fromWireType:function(A){function I(){return this.ga?v(this.P.ba,{S:this.ua,R:g,V:this,T:A}):v(this.P.ba,{S:this,R:A})}var g=this.ra(A);if(!g)return this.la(A),null;var C=((A,I)=>{if(void 0===I)throw new q("ptr should not be undefined");for(;A.U;)I=A.da(I),A=A.U;return u[I]})(this.P,g);if(void 0!==C)return 0===C.O.count.value?(C.O.R=g,C.O.T=A,C.clone()):(C=C.clone(),this.la(A),C);if(C=this.P.qa(g),!(C=z[C]))return I.call(this);C=this.fa?C.oa:C.pointerType;var Q=e(g,this.P,C.P);return null===Q?I.call(this):this.ga?v(C.P.ba,{S:C,R:Q,V:this,T:A}):v(C.P.ba,{S:C,R:Q})}}),RA=C.UnboundTypeError=(hA=Error,(aA=AA(kA="UnboundTypeError",(function(A){this.name=kA,this.message=A,void 0!==(A=Error(A).stack)&&(this.stack=this.toString()+"\\n"+A.replace(/^Error(:[^\\n]*)?\\n/,""))}))).prototype=Object.create(hA.prototype),aA.prototype.constructor=aA,aA.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},aA),SA.X.push({value:void 0},{value:null},{value:!0},{value:!1}),Object.assign(SA,{ja:SA.X.length}),C.count_emval_handles=()=>{for(var A=0,I=SA.ja;I{var C=new Z(A);throw F[C.R+16>>2]=0,F[C.R+4>>2]=I,F[C.R+8>>2]=g,A},x:()=>{},C:(A,I,g,C)=>{f(A,{name:I=d(I),fromWireType:function(A){return!!A},toWireType:function(A,I){return I?g:C},argPackAdvance:8,readValueFromPointer:function(A){return this.fromWireType(R[A])},W:null})},H:(A,I,g,Q,B,E,D,i,w,R,o,N,G)=>{o=d(o),E=GA(B,E),i&&=GA(D,i),R&&=GA(w,R),G=GA(N,G);var F=(A=>{if(void 0===A)return"_unknown";var I=(A=A.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=I&&57>=I?`_${A}`:A})(o);((A,I)=>{if(C.hasOwnProperty(A))throw new q(`Cannot register public name \'${A}\' twice`);C[A]=I})(F,(function(){UA(`Cannot construct ${o} due to unbound types`,[Q])})),n([A,I,g],Q?[Q]:[],(function(I){if(I=I[0],Q)var g=I.P,B=g.ba;else B=_.prototype;I=AA(o,(function(){if(Object.getPrototypeOf(this)!==D)throw new q("Use \'new\' to construct "+o);if(void 0===N.$)throw new q(o+" has no accessible constructor");var A=N.$[arguments.length];if(void 0===A)throw new q(`Tried to invoke ctor of ${o} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(N.$).toString()}) parameters instead!`);return A.apply(this,arguments)}));var D=Object.create(B,{constructor:{value:I}});I.prototype=D;var w,N=new gA(o,I,D,G,g,E,i,R);N.U&&((w=N.U).ka??(w.ka=[]),N.U.ka.push(N));return g=new iA(o,N,!0,!1,!1),w=new iA(o+"*",N,!1,!1,!1),B=new iA(o+" const*",N,!1,!0,!1),z[A]={pointerType:w,oa:B},((A,I)=>{if(!C.hasOwnProperty(A))throw new W("Replacing nonexistant public symbol");C[A]=I,C[A].ea=void 0})(F,I),[g,w,B]}))},G:(A,I,g,C,Q,B)=>{var E=MA(I,g);Q=GA(C,Q),n([],[A],(function(A){var g=`constructor ${(A=A[0]).name}`;if(void 0===A.P.$&&(A.P.$=[]),void 0!==A.P.$[I-1])throw new q(`Cannot register multiple constructors with identical number of parameters (${I-1}) for class \'${A.name}\'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return A.P.$[I-1]=()=>{UA(`Cannot construct ${A.name} due to unbound types`,E)},n([],E,(C=>(C.splice(1,0,null),A.P.$[I-1]=sA(g,C,null,Q,B),[]))),[]}))},e:(A,I,g,C,Q,B,E,D,i)=>{var w=MA(g,C);I=(A=>{const I=(A=A.trim()).indexOf("(");return-1!==I?A.substr(0,I):A})(I=d(I)),B=GA(Q,B),n([],[A],(function(A){function C(){UA(`Cannot call ${Q} due to unbound types`,w)}var Q=`${(A=A[0]).name}.${I}`;I.startsWith("@@")&&(I=Symbol[I.substring(2)]),D&&A.P.va.push(I);var R=A.P.ba,o=R[I];return void 0===o||void 0===o.Y&&o.className!==A.name&&o.ea===g-2?(C.ea=g-2,C.className=A.name,R[I]=C):(IA(R,I,Q),R[I].Y[g-2]=C),n([],w,(function(C){return C=sA(Q,C,A,B,E,i),void 0===R[I].Y?(C.ea=g-2,R[I]=C):R[I].Y[g-2]=C,[]})),[]}))},B:A=>f(A,HA),u:(A,I,g)=>{f(A,{name:I=d(I),fromWireType:A=>A,toWireType:(A,I)=>I,argPackAdvance:8,readValueFromPointer:ZA(I,g),W:null})},g:(A,I,g,C,Q)=>{if(I=d(I),-1===Q&&(Q=4294967295),Q=A=>A,0===C){var B=32-8*g;Q=A=>A<>>B}var E=I.includes("unsigned")?function(A,I){return I>>>0}:function(A,I){return I};f(A,{name:I,fromWireType:Q,toWireType:E,argPackAdvance:8,readValueFromPointer:VA(I,g,0!==C),W:null})},b:(A,I,g)=>{function C(A){return new Q(w.buffer,F[A+4>>2],F[A>>2])}var Q=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][I];f(A,{name:g=d(g),fromWireType:C,argPackAdvance:8,readValueFromPointer:C},{sa:!0})},t:(A,I)=>{var g="std::string"===(I=d(I));f(A,{name:I,fromWireType:function(A){var I=F[A>>2],C=A+4;if(g)for(var Q=C,B=0;B<=I;++B){var E=C+B;if(B==I||0==R[E]){if(Q){var D=Q,i=R,w=D+(E-Q);for(Q=D;i[Q]&&!(Q>=w);)++Q;if(16(o=224==(240&o)?(15&o)<<12|N<<6|G:(7&o)<<18|N<<12|G<<6|63&i[D++])?w+=String.fromCharCode(o):(o-=65536,w+=String.fromCharCode(55296|o>>10,56320|1023&o))}}else w+=String.fromCharCode(o)}D=w}}else D="";if(void 0===U)var U=D;else U+=String.fromCharCode(0),U+=D;Q=E+1}}else{for(U=Array(I),B=0;B=E?Q++:2047>=E?Q+=2:55296<=E&&57343>=E?(Q+=4,++C):Q+=3}else Q=I.length;if(E=(Q=_A(4+(C=Q)+1))+4,F[Q>>2]=C,g&&B){if(B=E,E=C+1,C=R,0=i)i=65536+((1023&i)<<10)|1023&I.charCodeAt(++D);if(127>=i){if(B>=E)break;C[B++]=i}else{if(2047>=i){if(B+1>=E)break;C[B++]=192|i>>6}else{if(65535>=i){if(B+2>=E)break;C[B++]=224|i>>12}else{if(B+3>=E)break;C[B++]=240|i>>18,C[B++]=128|i>>12&63}C[B++]=128|i>>6&63}C[B++]=128|63&i}}C[B]=0}}else if(B)for(B=0;B{if(g=d(g),2===I)var C=dA,Q=jA,B=bA,E=()=>N,D=1;else 4===I&&(C=tA,Q=OA,B=nA,E=()=>F,D=2);f(A,{name:g,fromWireType:A=>{for(var g,Q=F[A>>2],B=E(),i=A+4,w=0;w<=Q;++w){var R=A+4+w*I;w!=Q&&0!=B[R>>D]||(i=C(i,R-i),void 0===g?g=i:(g+=String.fromCharCode(0),g+=i),i=R+I)}return II(A),g},toWireType:(A,C)=>{if("string"!=typeof C)throw new q(`Cannot pass non-string to C++ string type ${g}`);var E=B(C),i=_A(4+E+I);return F[i>>2]=E>>D,Q(C,i+4,E+I),null!==A&&A.push(II,i),i},argPackAdvance:8,readValueFromPointer:lA,W(A){II(A)}})},D:(A,I)=>{f(A,{ta:!0,name:I=d(I),argPackAdvance:0,fromWireType:()=>{},toWireType:()=>{}})},k:(A,I,g)=>(A=cA(A),I=fA(I,"emval::as"),rA(I,g,A)),p:(A,I,g,C)=>(A=XA[A])(null,I=cA(I),g,C),s:(A,I,g,C,Q)=>(A=XA[A])(I=cA(I),I[g=xA(g)],C,Q),a:KA,j:A=>0===A?LA(eA()):(A=xA(A),LA(eA()[A])),h:(A,I,g)=>{I=((A,I)=>{for(var g=Array(A),C=0;C>2],"parameter "+C);return g})(A,I);var C=I.shift();A--;var Q="return function (obj, func, destructorsRef, args) {\\n",B=0,E=[];0===g&&E.push("obj");for(var D=["retType"],i=[C],w=0;wA.name)).join(", ")}) => ${C.name}>`,(A=>{var I=XA.length;return XA.push(A),I})(AA(g,A))},i:(A,I)=>(A=cA(A),I=cA(I),LA(A[I])),f:A=>{4(A=cA(A))instanceof(I=cA(I)),F:A=>"number"==typeof(A=cA(A)),E:A=>"string"==typeof(A=cA(A)),w:()=>LA([]),l:A=>LA(xA(A)),v:()=>LA({}),d:A=>{var I=cA(A);JA(I),KA(A)},n:(A,I,g)=>{A=cA(A),I=cA(I),g=cA(g),A[I]=g},c:(A,I)=>(A=(A=fA(A,"_emval_take_value")).readValueFromPointer(I),LA(A)),q:()=>{c("")},A:(A,I,g)=>R.copyWithin(A,I,I+g),z:A=>{var I=R.length;if(2147483648<(A>>>=0))return!1;for(var g=1;4>=g;g*=2){var C=I*(1+.2/g);C=Math.min(C,A+100663296);var Q=Math;C=Math.max(A,C);A:{Q=(Q.min.call(Q,2147483648,C+(65536-C%65536)%65536)-i.buffer.byteLength+65535)/65536;try{i.grow(Q),y();var B=1;break A}catch(A){}B=void 0}if(B)return!0}return!1},y:(A,I)=>(zA(R.subarray(A,A+I)),0)},$A=function(){function A(A){return $A=A.exports,i=$A.I,y(),wA=$A.L,s.unshift($A.J),a--,C.monitorRunDependencies?.(a),0==a&&(null!==S&&(clearInterval(S),S=null),K&&(A=K,K=null,A())),$A}var I={a:vA};if(a++,C.monitorRunDependencies?.(a),C.instantiateWasm)try{return C.instantiateWasm(I,A)}catch(A){D(`Module.instantiateWasm callback failed with error: ${A}`),g(A)}return I=function(A){if(L==L&&E)var I=new Uint8Array(E);else{if(l(I=L)){I=atob(I.slice(37));for(var g=new Uint8Array(I.length),C=0;CModule));';class xn extends bn{initialize(I,g={},C=16){return QI(this,void 0,void 0,function*(){$I(typeof I=="object"&&I!==null,"First argument to initialize must be a valid AudioContext instance."),$I(typeof g=="object"&&g!==null,"The optional second argument to initialize must be an object."),typeof I._elemWorkletRegistry!="object"&&(I._elemWorkletRegistry={});const Q=I._elemWorkletRegistry;if(!Q.hasOwnProperty(RC)){const B=new Blob([jn,On],{type:"text/javascript"}),E=URL.createObjectURL(B);if(!I.audioWorklet)throw new Error("BaseAudioContext.audioWorklet is missing; are you running in a secure context (https)?");yield I.audioWorklet.addModule(E),Q[RC]=!0}return this._promiseMap=new Map,this._nextRequestId=0,this._worklet=new AudioWorkletNode(I,`ElementaryAudioWorkletProcessor@${RC}`,Object.assign({numberOfInputs:0,numberOfOutputs:1,outputChannelCount:[2]},g)),yield new Promise((B,E)=>{this._worklet.port.onmessage=i=>{const[o,e]=i.data;if(o==="load")return this._renderer=new Zn(t=>QI(this,void 0,void 0,function*(){return yield this._sendWorkletRequest("renderInstructions",{batch:t})})),B(this._worklet),this.emit(o,e);if(o==="events")return e.forEach(t=>{this.emit(t.type,t.event)});if(o==="reply"){const{requestId:t,result:D}=e,{resolve:l,reject:a}=this._promiseMap.get(t);return this._promiseMap.delete(t),l(D)}},this._timer=window.setInterval(()=>{this._worklet.port.postMessage({requestType:"processQueuedEvents"})},C)})})}_sendWorkletRequest(I,g){$I(this._worklet,"Can't send request before worklet is ready. Have you initialized your WebRenderer instance?");let C=this._nextRequestId++;return this._worklet.port.postMessage({requestId:C,requestType:I,payload:g}),new Promise((Q,B)=>{this._promiseMap.set(C,{resolve:Q,reject:B})})}createRef(I,g,C){return this._renderer.createRef(I,g,C)}render(...I){return QI(this,void 0,void 0,function*(){const g=yield this._renderer.render(...I),{result:C}=g,Q=qn(g,["result"]);return C.success?Promise.resolve(Q):Promise.reject(C)})}updateVirtualFileSystem(I){return QI(this,void 0,void 0,function*(){return $I(typeof I=="object"&&I!==null,"Virtual file system must be an object mapping string type keys to Array|Float32Array type values"),Object.keys(I).forEach(function(C){const Q=typeof I[C]=="object"&&(Array.isArray(I[C])||I[C]instanceof Float32Array);$I(Q,"Virtual file system must be an object mapping string type keys to Array|Float32Array type values")}),yield this._sendWorkletRequest("updateSharedResourceMap",{resources:I})})}pruneVirtualFileSystem(){return QI(this,void 0,void 0,function*(){return yield this._sendWorkletRequest("pruneVirtualFileSystem",{})})}listVirtualFileSystem(){return QI(this,void 0,void 0,function*(){return yield this._sendWorkletRequest("listVirtualFileSystem",{})})}reset(){return QI(this,void 0,void 0,function*(){return yield this._sendWorkletRequest("reset",{})})}setCurrentTime(I){return QI(this,void 0,void 0,function*(){return yield this._sendWorkletRequest("setCurrentTime",{time:I})})}setCurrentTimeMs(I){return QI(this,void 0,void 0,function*(){return yield this._sendWorkletRequest("setCurrentTimeMs",{time:I})})}}const bC=be?window:void 0;function vn(A){var I;const g=zA(A);return(I=g==null?void 0:g.$el)!=null?I:g}function cB(...A){let I,g,C,Q;if(typeof A[0]=="string"||Array.isArray(A[0])?([g,C,Q]=A,I=bC):[I,g,C,Q]=A,!I)return qe;Array.isArray(g)||(g=[g]),Array.isArray(C)||(C=[C]);const B=[],E=()=>{B.forEach(t=>t()),B.length=0},i=(t,D,l,a)=>(t.addEventListener(D,l,a),()=>t.removeEventListener(D,l,a)),o=lI(()=>[vn(I),zA(Q)],([t,D])=>{if(E(),!t)return;const l=Ze(D)?{...D}:D;B.push(...g.flatMap(a=>C.map(R=>i(t,a,R,l))))},{immediate:!0,flush:"post"}),e=()=>{o(),E()};return pe(e),e}const Ug=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fg="__vueuse_ssr_handlers__",Xn=zn();function zn(){return fg in Ug||(Ug[fg]=Ug[fg]||{}),Ug[fg]}function Pn(A,I){return Xn[A]||I}function _n(A){return A==null?"any":A instanceof Set?"set":A instanceof Map?"map":A instanceof Date?"date":typeof A=="boolean"?"boolean":typeof A=="string"?"string":typeof A=="object"?"object":Number.isNaN(A)?"any":"number"}const $n={boolean:{read:A=>A==="true",write:A=>String(A)},object:{read:A=>JSON.parse(A),write:A=>JSON.stringify(A)},number:{read:A=>Number.parseFloat(A),write:A=>String(A)},any:{read:A=>A,write:A=>String(A)},string:{read:A=>A,write:A=>String(A)},map:{read:A=>new Map(JSON.parse(A)),write:A=>JSON.stringify(Array.from(A.entries()))},set:{read:A=>new Set(JSON.parse(A)),write:A=>JSON.stringify(Array.from(A))},date:{read:A=>new Date(A),write:A=>A.toISOString()}},RB="vueuse-storage";function Ar(A,I,g,C={}){var Q;const{flush:B="pre",deep:E=!0,listenToStorageChanges:i=!0,writeDefaults:o=!0,mergeDefaults:e=!1,shallow:t,window:D=bC,eventFilter:l,onError:a=O=>{console.error(O)},initOnMounted:R}=C,h=(t?_i:WA)(typeof I=="function"?I():I);if(!g)try{g=Pn("getDefaultStorage",()=>{var O;return(O=bC)==null?void 0:O.localStorage})()}catch(O){a(O)}if(!g)return h;const M=zA(I),S=_n(M),L=(Q=C.serializer)!=null?Q:$n[S],{pause:d,resume:T}=ve(h,()=>yA(h.value),{flush:B,deep:E,eventFilter:l});D&&i&&Xe(()=>{g instanceof Storage?cB(D,"storage",YA):cB(D,RB,uI),R&&YA()}),R||YA();function H(O,BA){if(D){const DA={key:A,oldValue:O,newValue:BA,storageArea:g};D.dispatchEvent(g instanceof Storage?new StorageEvent("storage",DA):new CustomEvent(RB,{detail:DA}))}}function yA(O){try{const BA=g.getItem(A);if(O==null)H(BA,null),g.removeItem(A);else{const DA=L.write(O);BA!==DA&&(g.setItem(A,DA),H(BA,DA))}}catch(BA){a(BA)}}function MA(O){const BA=O?O.newValue:g.getItem(A);if(BA==null)return o&&M!=null&&g.setItem(A,L.write(M)),M;if(!O&&e){const DA=L.read(BA);return typeof e=="function"?e(DA,M):S==="object"&&!Array.isArray(DA)?{...M,...DA}:DA}else return typeof BA!="string"?BA:L.read(BA)}function YA(O){if(!(O&&O.storageArea!==g)){if(O&&O.key==null){h.value=M;return}if(!(O&&O.key!==A)){d();try{(O==null?void 0:O.newValue)!==L.write(h.value)&&(h.value=MA(O))}catch(BA){a(BA)}finally{O?Xg(T):T()}}}}function uI(O){YA(O.detail)}return h}function Ir(A,I="ref"){const g=II({}),C=Jg({}),Q=Jg({}),B=Jg({});let E=!1;for(let o in A){const e=A[o];if(g[o]=kg(e!=null&&e.nostore?e.value:Ar(`${I}:${o}`,e.value),e.min,e.max),e!=null&&e.hidden)continue;const[t,D]=o.split("_");!t||!D||(B[t]=B[t]||{},B[t][D]=e)}function i(o){for(let e in A){let[t,D]=o.createRef("const",{value:g[e]},[]);C[e]=k.smooth(k.tau2pole(.01),t),Q[e]=D}E=!0}return lI(()=>({...g}),(o,e)=>{if(E)for(let t in g)o[t]!=e[t]&&Q[t]({value:g[t]})}),{controls:g,cv:C,setters:Q,groups:B,initRefs:i}}const li=[[1,1,1,1,1,1,1,1],[1,-1,1,-1,1,-1,1,-1],[1,1,-1,-1,1,1,-1,-1],[1,-1,-1,1,1,-1,-1,1],[1,1,1,1,-1,-1,-1,-1],[1,-1,1,-1,-1,1,-1,1],[1,1,-1,-1,-1,-1,1,1],[1,-1,-1,1,-1,1,1,-1]];function NC(A,...I){const g=I.length,C=Math.sqrt(1/g),Q=I.map(function(B,E){const i=A*((E+1)/g);return k.sdelay({size:i},B)});return li.map(function(B,E){return k.add(...B.map(function(i,o){return k.mul(i*C,Q[o])}))})}function NB(A,I,g,C,Q,...B){const E=B.length,i=Math.sqrt(1/E),o=k.mul(Q,.02);if(E!==8)throw new Error("Invalid FDN step!");const e=B.map(function(D,l){return k.add(D,k.mul(C,k.smooth(.105,k.tapIn({name:`${A}:fdn${l}`}))))});return li.map(function(D,l){return k.add(...D.map(function(a,R){return k.mul(a*i,e[R])}))}).map(function(D,l){const a=(S,L,d)=>k.add(S,k.mul(d,k.cycle(L))),R=S=>I*(S/1e3),h=k.mul(k.add(1,k.mul(3,g)),R((l+1)*17)),M=a(h,k.add(.1,k.mul(l,o)),R(2.5));return k.tapOut({name:`${A}:fdn${l}`},k.delay({size:R(750)},M,0,D))})}function gr(A,I,g){const C=A.key,Q=A.sampleRate,B=k.sm(A.size),E=k.sm(A.decay),i=k.sm(A.mod),o=k.sm(A.mix),e=k.mul(.5,k.add(I,g)),t=k.mul(.5,k.sub(I,g)),D=[I,g,e,t],l=[...D,...D.map(H=>k.mul(-1,H))],a=H=>Q*(H/1e3),R=NC(a(43),...l),h=NC(a(97),...R),M=NC(a(117),...h),S=NB(`${C}:d4`,Q,B,.004,i,...M),L=NB(`${C}:r0`,Q,B,E,i,...S),d=k.mul(.25,k.add(L[0],L[2],L[4],L[6])),T=k.mul(.25,k.add(L[1],L[3],L[5],L[7]));return[k.select(o,d,I),k.select(o,T,g)]}const hC=["gate","midi","vel"];function Cr(A=8){const I=II(Array(A).fill(null).map(()=>Object.fromEntries(hC.map(l=>[l,{value:0,ref:null,setter:null}])))),g=WA(!1);function C(l){I.forEach(a=>{hC.forEach(R=>{const[h,M]=l.createRef("const",{value:a[R].value},[]);a[R].ref=k.smooth(k.tau2pole(.001),h),a[R].setter=M})}),g.value=!0}const Q=WA(0);function B(l,a){if(a>0){const R=D(Q);E(R,{gate:1,midi:l,vel:a})}else i(I,l)}function E(l,a){if(!g.value)return;const R=I[l];Object.entries(a).forEach(([h,M])=>{var S,L;h in R&&M!==void 0&&(R[h].value=M,(L=(S=R[h]).setter)==null||L.call(S,{value:M}))})}function i(l,a){l.forEach((R,h)=>{R.midi.value===a&&E(h,{gate:0})})}function o(){I.forEach((l,a)=>E(a,{gate:0}))}function e(l){return Object.fromEntries(hC.map(a=>[a,t(l,a)]))}function t(l,a){return k.meter({name:`synth-voice-${l}-${a}`},I[l][a].ref||k.const({value:I[l][a].value}))}function D(l){const a=l.value;let R=a;do{if(I[R].gate.value===0)return l.value=(R+1)%I.length,R;R=(R+1)%I.length}while(R!==a);return l.value=(a+1)%I.length,a}return{voices:I,initVoices:C,updateVoice:E,cycleNote:B,stopAll:o,getVoiceParams:e}}const Qr={reverb_on:{value:1,min:0,max:1,step:1,hidden:!0},reverb_size:{value:.2,min:0,max:1,step:.01},reverb_decay:{value:.5,min:0,max:1,step:.01},reverb_mod:{value:.5,min:0,max:1,step:.01},reverb_mix:{value:.5,min:0,max:1,step:.01}},VC=II({}),ZC=II({}),DI=II({});function Br(){const A=WA(!1),I=WA(!1);let g,C;const{controls:Q,cv:B,groups:E,initRefs:i}=Ir(Qr,"el"),{voices:o,cycleNote:e,initVoices:t,getVoiceParams:D}=Cr();async function l(){if(A.value)return;g=new(window.AudioContext||window.webkitAudioContext),g.state==="suspended"&&await g.resume(),C=new xn,(await C.initialize(g,{numberOfInputs:1,numberOfOutputs:1,outputChannelCount:[2]})).connect(g.destination),i(C),t(C),C.on("meter",H=>VC[H.source]={max:H.max,min:H.min}),C.on("scope",H=>ZC[H.source]=Array.from(H==null?void 0:H.data[0].values())),C.on("fft",H=>DI[H.source]=[Array.from(H==null?void 0:H.data.real.values()),Array.from(H==null?void 0:H.data.imag.values())]),C.on("error",H=>console.log(H));function M({gate:H,midi:yA,vel:MA}){return k.mul(H,MA,k.tanh(k.cycle(Er(yA))))}const S=k.tanh(k.add(...o.map((H,yA)=>M(D(yA))))),L=k.mul(0,k.meter({name:"sample-rate"},k.sr())),d=k.fft({name:"synth",size:2048},k.scope({name:"synth",size:512},k.add(L,S))),T=gr({key:"srvb",sampleRate:48e3,size:B.reverb_size,decay:B.reverb_decay,mod:B.reverb_mod,mix:k.mul(B.reverb_mix,B.reverb_on)},d,d);C.render(...T),A.value=!0,I.value=!0}function a(h=57,M=1){I.value||l(),e(h,M)}function R(h=57){e(h,0)}return{controls:Q,groups:E,play:a,stop:R,initiated:A,started:I,meters:VC,scopes:ZC,FFTs:DI,voices:o}}const Er=A=>k.mul(440,k.pow(2,k.smooth(k.tau2pole(.001),k.div(k.sub(A,69),12))));function ir(A=0,I=0,g=1,C=1){return I===void 0&&(I=Math.floor(A/12)+4),`hsla(${A%12*30},${g*100}%,${Math.abs(I+2)*8}%,${C})`}function or(A,I,g){return ir(tr(A),3,I,g)}function tr(A,I=440){return 12*(Math.log(Number(A)/I)/Math.log(2))}const er={__name:"ElemFFT",props:{name:{default:"synth",type:String}},setup(A){const I=A,g=II({sr:_A(()=>{var B;return((B=VC["sample-rate"])==null?void 0:B.max)||44100}),data:_A(()=>(DI==null?void 0:DI[I.name])||[[],[]]),freq:_A(()=>g.data[0].map((B,E)=>E*g.sr/(g.data[0].length||1))),colors:_A(()=>g.freq.map(B=>or(B))),total:_A(()=>g.data[0].map((B,E)=>Math.log2(1+Math.abs(B)+Math.abs(g.data[1][E]))))});let C=WA(null);ng(Q),lI(()=>DI==null?void 0:DI[I.name],Q,{deep:!0});function Q(){if(!C.value||!(g!=null&&g.total))return;let B=C.value.getContext("2d");B.clearRect(0,0,C.value.width,C.value.height);for(let E=0;E(ZA(),aI("canvas",{class:"max-w-full",ref_key:"canvas",ref:C,height:"512",width:"2048"},null,512))}},sr={__name:"ElemScope",props:{name:{default:"synth",type:String},color:{default:"currentColor",type:String},triggerLevel:{default:0,type:Number}},setup(A){const I=A,g=WA(null);let C=null;ng(()=>{g.value&&(g.value.width=g.value.clientWidth,g.value.height=g.value.clientHeight),Q()}),Pg(()=>{B()});function Q(){C=requestAnimationFrame(i)}function B(){C&&cancelAnimationFrame(C)}function E(o,e){for(let t=0;te)return t;return 0}function i(){if(!g.value)return;const o=g.value.getContext("2d"),{width:e,height:t}=g.value,D=ZC[I.name];if(!D||D.length<2){C=requestAnimationFrame(i);return}o.clearRect(0,0,e,t),o.strokeStyle=I.color,o.lineWidth=3;const l=E(D,I.triggerLevel),a=e/D.length;o.beginPath();for(let R=0;R(ZA(),aI("canvas",{class:"w-full h-full",ref_key:"canvas",ref:g},null,512))}},Dr={class:"flex flex-col items-center transition-all duration-500 ease-out select-none rounded-8 shadow-xl p-1 w-full h-full bg-444 text-white gap-4"},nr={class:"text-10px absolute -top-4 left-2 uppercase"},rr={__name:"App",setup(A){const{play:I,stop:g,started:C,controls:Q,groups:B,voices:E}=Br(),i=WA(57);return(o,e)=>(ZA(),aI("div",Dr,[pA(sr),e[3]||(e[3]=oA("div",{class:"flex-1"},null,-1)),pA(sB,{class:"h-90",modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=t=>i.value=t),min:10,max:120,step:1,param:"MIDI"},null,8,["modelValue"]),(ZA(!0),aI(JA,null,SQ(KA(B),(t,D)=>(ZA(),aI("div",{class:"relative flex flex-wrap gap-2 border-1 rounded-xl",key:t},[oA("div",nr,HI(D),1),(ZA(!0),aI(JA,null,SQ(t,(l,a)=>(ZA(),kC(sB,hE({class:"w-4em",key:a,modelValue:KA(Q)[`${D}_${a}`],"onUpdate:modelValue":R=>KA(Q)[`${D}_${a}`]=R,ref_for:!0},l,{param:a}),null,16,["modelValue","onUpdate:modelValue","param"]))),128))]))),128)),oA("button",{class:"text-2xl p-4 cursor-pointer border-2 rounded-2xl",onPointerdown:e[1]||(e[1]=t=>KA(I)(i.value)),onPointerup:e[2]||(e[2]=t=>KA(g)(i.value))},HI(KA(C)?"Press to play sound":"Start"),33),e[4]||(e[4]=oA("div",{class:"flex-1"},null,-1)),pA(er)]))}};pt(rr).mount("#app"); - +**/let TC;const ZQ=typeof window<"u"&&window.trustedTypes;if(ZQ)try{TC=ZQ.createPolicy("vue",{createHTML:A=>A})}catch{}const yE=TC?A=>TC.createHTML(A):A=>A,ct="http://www.w3.org/2000/svg",Rt="http://www.w3.org/1998/Math/MathML",EI=typeof document<"u"?document:null,qQ=EI&&EI.createElement("template"),Nt={insert:(A,I,g)=>{I.insertBefore(A,g||null)},remove:A=>{const I=A.parentNode;I&&I.removeChild(A)},createElement:(A,I,g,C)=>{const Q=I==="svg"?EI.createElementNS(ct,A):I==="mathml"?EI.createElementNS(Rt,A):g?EI.createElement(A,{is:g}):EI.createElement(A);return A==="select"&&C&&C.multiple!=null&&Q.setAttribute("multiple",C.multiple),Q},createText:A=>EI.createTextNode(A),createComment:A=>EI.createComment(A),setText:(A,I)=>{A.nodeValue=I},setElementText:(A,I)=>{A.textContent=I},parentNode:A=>A.parentNode,nextSibling:A=>A.nextSibling,querySelector:A=>EI.querySelector(A),setScopeId(A,I){A.setAttribute(I,"")},insertStaticContent(A,I,g,C,Q,B){const E=g?g.previousSibling:I.lastChild;if(Q&&(Q===B||Q.nextSibling))for(;I.insertBefore(Q.cloneNode(!0),g),!(Q===B||!(Q=Q.nextSibling)););else{qQ.innerHTML=yE(C==="svg"?`${A}`:C==="mathml"?`${A}`:A);const i=qQ.content;if(C==="svg"||C==="mathml"){const o=i.firstChild;for(;o.firstChild;)i.appendChild(o.firstChild);i.removeChild(o)}I.insertBefore(i,g)}return[E?E.nextSibling:I.firstChild,g?g.previousSibling:I.lastChild]}},ht=Symbol("_vtc");function Gt(A,I,g){const C=A[ht];C&&(I=(I?[I,...C]:[...C]).join(" ")),I==null?A.removeAttribute("class"):g?A.setAttribute("class",I):A.className=I}const WQ=Symbol("_vod"),Ft=Symbol("_vsh"),yt=Symbol(""),Mt=/(^|;)\s*display\s*:/;function Ut(A,I,g){const C=A.style,Q=oA(g);let B=!1;if(g&&!Q){if(I)if(oA(I))for(const E of I.split(";")){const i=E.slice(0,E.indexOf(":")).trim();g[i]==null&&Sg(C,i,"")}else for(const E in I)g[E]==null&&Sg(C,E,"");for(const E in g)E==="display"&&(B=!0),Sg(C,E,g[E])}else if(Q){if(I!==g){const E=C[yt];E&&(g+=";"+E),C.cssText=g,B=Mt.test(g)}}else I&&A.removeAttribute("style");WQ in A&&(A[WQ]=B?C.display:"",A[Ft]&&(C.display="none"))}const OQ=/\s*!important$/;function Sg(A,I,g){if(p(g))g.forEach(C=>Sg(A,I,C));else if(g==null&&(g=""),I.startsWith("--"))A.setProperty(I,g);else{const C=ft(A,I);OQ.test(g)?A.setProperty(cI(C),g.replace(OQ,""),"important"):A[C]=g}}const jQ=["Webkit","Moz","ms"],lC={};function ft(A,I){const g=lC[I];if(g)return g;let C=oI(I);if(C!=="filter"&&C in A)return lC[I]=C;C=MB(C);for(let Q=0;QwC||(kt.then(()=>wC=0),wC=Date.now());function Kt(A,I){const g=C=>{if(!C._vts)C._vts=Date.now();else if(C._vts<=g.attached)return;II(Lt(C,g.value),I,5,[C])};return g.value=A,g.attached=dt(),g}function Lt(A,I){if(p(I)){const g=A.stopImmediatePropagation;return A.stopImmediatePropagation=()=>{g.call(A),A._stopped=!0},I.map(C=>Q=>!Q._stopped&&C&&C(Q))}else return I}const _Q=A=>A.charCodeAt(0)===111&&A.charCodeAt(1)===110&&A.charCodeAt(2)>96&&A.charCodeAt(2)<123,Tt=(A,I,g,C,Q,B)=>{const E=Q==="svg";I==="class"?Gt(A,C,E):I==="style"?Ut(A,g,C):Zg(I)?jC(I)||ut(A,I,g,C,B):(I[0]==="."?(I=I.slice(1),!0):I[0]==="^"?(I=I.slice(1),!1):mt(A,I,C,E))?(XQ(A,I,C),!A.tagName.includes("-")&&(I==="value"||I==="checked"||I==="selected")&&vQ(A,I,C,E,B,I!=="value")):A._isVueCE&&(/[A-Z]/.test(I)||!oA(C))?XQ(A,oI(I),C,B,I):(I==="true-value"?A._trueValue=C:I==="false-value"&&(A._falseValue=C),vQ(A,I,C,E))};function mt(A,I,g,C){if(C)return!!(I==="innerHTML"||I==="textContent"||I in A&&_Q(I)&&Z(g));if(I==="spellcheck"||I==="draggable"||I==="translate"||I==="form"||I==="list"&&A.tagName==="INPUT"||I==="type"&&A.tagName==="TEXTAREA")return!1;if(I==="width"||I==="height"){const Q=A.tagName;if(Q==="IMG"||Q==="VIDEO"||Q==="CANVAS"||Q==="SOURCE")return!1}return _Q(I)&&oA(g)?!1:I in A}const Ht=eA({patchProp:Tt},Nt);let $Q;function pt(){return $Q||($Q=Wo(Ht))}const bt=(...A)=>{const I=pt().createApp(...A),{mount:g}=I;return I.mount=C=>{const Q=Zt(C);if(!Q)return;const B=I._component;!Z(B)&&!B.render&&!B.template&&(B.template=Q.innerHTML),Q.nodeType===1&&(Q.textContent="");const E=g(Q,!1,Vt(Q));return Q instanceof Element&&(Q.removeAttribute("v-cloak"),Q.setAttribute("data-v-app","")),E},I};function Vt(A){if(A instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&A instanceof MathMLElement)return"mathml"}function Zt(A){return oA(A)?document.querySelector(A):A}function qt(){try{return"constructor"in GestureEvent}catch{return!1}}function ME(){return typeof window<"u"&&"ontouchstart"in window}function UE(A){return"pointerId"in A?null:A.type==="touchend"?A.changedTouches:A.targetTouches}function DQ(A){return Array.from(UE(A)).map(I=>I.identifier)}function TA(A){const I="buttons"in A?A.buttons:0,{shiftKey:g,altKey:C,metaKey:Q,ctrlKey:B}=A;return{buttons:I,shiftKey:g,altKey:C,metaKey:Q,ctrlKey:B}}const ag=A=>A;function KI(A,I=ag){const g=UE(A),{clientX:C,clientY:Q}=g?g[0]:A;return I([C,Q])}function AB(A,I,g=ag){const[C,Q]=Array.from(A.touches).filter(a=>I.includes(a.identifier));if(!C||!Q)throw Error("The event doesn't have two pointers matching the pointerIds");const B=Q.clientX-C.clientX,E=Q.clientY-C.clientY,i=(Q.clientX+C.clientX)/2,o=(Q.clientY+C.clientY)/2,e=Math.hypot(B,E),t=-(Math.atan2(B,E)*180)/Math.PI,D=g([e,t]),l=g([i,o]);return{values:D,origin:l}}function Wt(A,I=ag){const{scrollX:g,scrollY:C,scrollLeft:Q,scrollTop:B}=A.currentTarget;return I([g||Q||0,C||B||0])}const IB=40,gB=800;function fE(A,I=ag){let{deltaX:g,deltaY:C,deltaMode:Q}=A;return Q===1?(g*=IB,C*=IB):Q===2&&(g*=gB,C*=gB),I([g,C])}function CB(A,I=ag){return I([A.scale,A.rotation])}function JE(){}function YE(...A){return A.length===0?JE:A.length===1?A[0]:function(){var I;for(let g of A)I=g.apply(this,arguments)||I;return I}}function aI(A,I){if(A===void 0){if(I===void 0)throw new Error("Must define fallback value if undefined is expected");A=I}return Array.isArray(A)?A:[A,A]}function QB(A,I){return Object.assign({},I,A||{})}function pg(A,...I){return typeof A=="function"?A(...I):A}function XI(A){return{_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,_dragStarted:!1,_dragPreventScroll:!1,_dragIsTap:!0,_dragDelayed:!1,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:JE,canceled:!1,memo:void 0,args:void 0,...A}}function mC(){const A={hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1,locked:!1},I=XI({_pointerId:void 0,axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,tap:!1,swipe:[0,0]}),g=XI({_pointerIds:[],da:[0,0],vdva:[0,0],origin:void 0,turns:0}),C=XI({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),Q=XI({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),B=XI({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0});return{shared:A,drag:I,pinch:g,wheel:C,move:Q,scroll:B}}var Ot=Object.defineProperty,jt=(A,I,g)=>I in A?Ot(A,I,{enumerable:!0,configurable:!0,writable:!0,value:g}):A[I]=g,UA=(A,I,g)=>(jt(A,typeof I!="symbol"?I+"":I,g),g);class xt{constructor(I){this.classes=I,UA(this,"nativeRefs"),UA(this,"config"),UA(this,"handlers"),UA(this,"state"),UA(this,"timeouts"),UA(this,"domListeners"),UA(this,"windowListeners"),UA(this,"pointerIds",new Set),UA(this,"touchIds",new Set),UA(this,"supportsTouchEvents",ME()),UA(this,"supportsGestureEvents",qt()),UA(this,"bind",(...g)=>{const C={};for(let Q of this.classes)new Q(this,g).addBindings(C);for(let Q in this.nativeRefs)gA(C,Q,B=>this.nativeRefs[Q]({...this.state.shared,event:B,args:g}));return this.config.domTarget?Pt(this,C):_t(this,C)}),UA(this,"clean",()=>{const{eventOptions:g,domTarget:C}=this.config,Q=GA(C);Q&&lg(Q,kE(this.domListeners),g),Object.values(this.timeouts).forEach(clearTimeout),vt(this)}),UA(this,"reset",()=>{this.state=mC()}),this.classes=I,this.state=mC(),this.timeouts={},this.domListeners=[],this.windowListeners={}}}function uE(A,I){"pointerId"in I?A.pointerIds.add(I.pointerId):A.touchIds=new Set(DQ(I))}function SE(A,I){"pointerId"in I?A.pointerIds.delete(I.pointerId):DQ(I).forEach(g=>A.touchIds.delete(g))}function vt(A){const{config:{window:I,eventOptions:g},windowListeners:C}=A,Q=GA(I);if(Q){for(let B in C){const E=C[B];lg(Q,E,g)}A.windowListeners={}}}function Xt({config:A,windowListeners:I},g,C=A.eventOptions){const Q=GA(A.window);Q&&(lg(Q,I[g],C),delete I[g])}function zt({config:A,windowListeners:I},g,C=[],Q=A.eventOptions){const B=GA(A.window);B&&(lg(B,I[g],Q),dE(B,I[g]=C,Q))}function Pt({config:A,domListeners:I},g){const{eventOptions:C,domTarget:Q}=A,B=GA(Q);if(!B)throw new Error("domTarget must be defined");lg(B,kE(I),C);for(let[E,i]of Object.entries(g)){const o=E.slice(2).toLowerCase();I.push([o,YE(...i)])}dE(B,I,C)}function _t({config:A},I){const g={},C=A.eventOptions.capture?"Capture":"";for(let[Q,B]of Object.entries(I)){const E=Array.isArray(B)?B:[B],i=Q+C;g[i]=YE(...E)}return g}function kE(A=[]){return A.splice(0,A.length)}function gA(A,I,g){A[I]||(A[I]=[]),A[I].push(g)}function dE(A,I=[],g={}){if(A)for(let[C,Q]of I)A.addEventListener(C,Q,g)}function lg(A,I=[],g={}){if(A)for(let[C,Q]of I)A.removeEventListener(C,Q,g)}function bg(A,I){return A.map((g,C)=>g+I[C])}function nQ(A,I){return A.map((g,C)=>g-I[C])}function sg(A){return Math.hypot(...A)}function KE(A,I=A){const g=sg(I),C=g===0?0:1/g,Q=I.map(E=>C*E);return{distance:sg(A),direction:Q}}function LE(A,I,g){const C=sg(I),Q=C===0?0:1/C,B=g===0?0:1/g,E=B*C,i=I.map(t=>B*t),o=I.map(t=>Q*t),e=sg(A);return{velocities:i,velocity:E,distance:e,direction:o}}function Vg(A){return Math.sign?Math.sign(A):+(A>0)-+(A<0)||+A}function $t(A,I,g){return Math.max(I,Math.min(A,g))}function Ae(A,I){return Math.pow(A,I*5)}function BB(A,I,g){return I===0||Math.abs(I)===1/0?Ae(A,g):A*I*g/(I+g*A)}function EB(A,I,g,C=.15){return C===0?$t(A,I,g):Ag?+BB(A-g,g-I,C)+g:A}var Ie=Object.defineProperty,ge=(A,I,g)=>I in A?Ie(A,I,{enumerable:!0,configurable:!0,writable:!0,value:g}):A[I]=g,Mg=(A,I,g)=>(ge(A,typeof I!="symbol"?I+"":I,g),g);const mA=new Map,Ce=A=>A;class TE{constructor(I,g=[]){this.controller=I,this.args=g,Mg(this,"debounced",!0),Mg(this,"setTimeout",(C,Q=140,...B)=>{clearTimeout(this.controller.timeouts[this.stateKey]),this.controller.timeouts[this.stateKey]=window.setTimeout(C,Q,...B)}),Mg(this,"clearTimeout",()=>{clearTimeout(this.controller.timeouts[this.stateKey])}),Mg(this,"fireGestureHandler",(C=!1)=>{if(this.state._blocked)return this.debounced||(this.state._active=!1,this.clean()),null;if(!C&&!this.state.intentional&&!this.config.triggerAllEvents)return null;if(this.state.intentional){const o=this.state.active,e=this.state._active;this.state.active=e,this.state.first=e&&!o,this.state.last=o&&!e,this.controller.state.shared[this.ingKey]=e}const Q=this.controller.pointerIds.size||this.controller.touchIds.size,B=this.controller.state.shared.buttons>0||Q>0,E={...this.controller.state.shared,...this.state,...this.mapStateValues(this.state),locked:!!document.pointerLockElement,touches:Q,down:B},i=this.handler(E);return this.state.memo=i!==void 0?i:this.state.memo,E}),this.controller=I,this.args=g}get config(){return this.controller.config[this.stateKey]}get enabled(){return this.controller.config.enabled&&this.config.enabled}get state(){return this.controller.state[this.stateKey]}get handler(){return this.controller.handlers[this.stateKey]}get transform(){return this.config.transform||this.controller.config.transform||Ce}updateSharedState(I){Object.assign(this.controller.state.shared,I)}updateGestureState(I){Object.assign(this.state,I)}checkIntentionality(I,g){return{_intentional:I,_blocked:!1}}getMovement(I){const{rubberband:g,threshold:C}=this.config,{_bounds:Q,_initial:B,_active:E,_intentional:i,lastOffset:o,movement:e}=this.state,t=this.getInternalMovement(I,this.state),D=this.transform(C).map(Math.abs),l=i[0]===!1?iB(t[0],D[0]):i[0],a=i[1]===!1?iB(t[1],D[1]):i[1],R=this.checkIntentionality([l,a],t);if(R._blocked)return{...R,_movement:t,delta:[0,0]};const h=R._intentional,M=t;let k=[h[0]!==!1?t[0]-h[0]:0,h[1]!==!1?t[1]-h[1]:0];const K=bg(k,o),T=E?g:[0,0];return k=oB(Q,bg(k,B),T),{...R,intentional:h[0]!==!1||h[1]!==!1,_initial:B,_movement:M,movement:k,values:I,offset:oB(Q,K,T),delta:nQ(k,e)}}clean(){this.clearTimeout()}}function iB(A,I){return Math.abs(A)>=I?Vg(A)*I:!1}function oB(A,[I,g],[C,Q]){const[[B,E],[i,o]]=A;return[EB(I,B,E,C),EB(g,i,o,Q)]}function tA({state:A},I,g){const{timeStamp:C,type:Q}=I,B=A.values,E=g?0:C-A.startTime;return{_lastEventType:Q,event:I,timeStamp:C,elapsedTime:E,previous:B}}function fI({state:A,config:I,stateKey:g,args:C},Q,B){const E=A.offset,i=B.timeStamp,{initial:o,bounds:e}=I,t={...mC()[g],_active:!0,args:C,values:Q,initial:Q,offset:E,lastOffset:E,startTime:i};return{...t,_initial:pg(o,t),_bounds:pg(e,t)}}class IC extends TE{getInternalMovement(I,g){return nQ(I,g.initial)}checkIntentionality(I,g){if(I[0]===!1&&I[1]===!1)return{_intentional:I,axis:this.state.axis};const[C,Q]=g.map(Math.abs),B=this.state.axis||(C>Q?"x":CI in A?Qe(A,I,{enumerable:!0,configurable:!0,writable:!0,value:g}):A[I]=g,sA=(A,I,g)=>(Be(A,typeof I!="symbol"?I+"":I,g),g);const Ee=3;function tB(A){"persist"in A&&typeof A.persist=="function"&&A.persist()}class ie extends IC{constructor(){super(...arguments),sA(this,"ingKey","dragging"),sA(this,"stateKey","drag"),sA(this,"setPointerCapture",I=>{if(this.config.useTouch||document.pointerLockElement)return;const{target:g,pointerId:C}=I;g&&"setPointerCapture"in g&&g.setPointerCapture(C),this.updateGestureState({_dragTarget:g,_dragPointerId:C})}),sA(this,"releasePointerCapture",()=>{if(this.config.useTouch||document.pointerLockElement)return;const{_dragTarget:I,_dragPointerId:g}=this.state;if(g&&I&&"releasePointerCapture"in I&&(!("hasPointerCapture"in I)||I.hasPointerCapture(g)))try{I.releasePointerCapture(g)}catch{}}),sA(this,"preventScroll",I=>{this.state._dragPreventScroll&&I.cancelable&&I.preventDefault()}),sA(this,"getEventId",I=>this.config.useTouch?I.changedTouches[0].identifier:I.pointerId),sA(this,"isValidEvent",I=>this.state._pointerId===this.getEventId(I)),sA(this,"shouldPreventWindowScrollY",this.config.preventWindowScrollY&&this.controller.supportsTouchEvents),sA(this,"setUpWindowScrollDetection",I=>{tB(I),zt(this.controller,this.stateKey,[["touchmove",this.preventScroll],["touchend",this.clean.bind(this)],["touchcancel",this.clean.bind(this)]],{passive:!1}),this.setTimeout(this.startDrag.bind(this),250,I)}),sA(this,"setUpDelayedDragTrigger",I=>{this.state._dragDelayed=!0,tB(I),this.setTimeout(this.startDrag.bind(this),this.config.delay,I)}),sA(this,"setStartState",I=>{const g=KI(I,this.transform);this.updateSharedState(TA(I)),this.updateGestureState({...fI(this,g,I),...tA(this,I,!0),_pointerId:this.getEventId(I)}),this.updateGestureState(this.getMovement(g))}),sA(this,"onDragStart",I=>{uE(this.controller,I),!(!this.enabled||this.state._active)&&(this.setStartState(I),this.setPointerCapture(I),this.shouldPreventWindowScrollY?this.setUpWindowScrollDetection(I):this.config.delay>0?this.setUpDelayedDragTrigger(I):this.startDrag(I,!0))}),sA(this,"onDragChange",I=>{if(this.state.canceled||!this.state._active||!this.isValidEvent(I)||this.state._lastEventType===I.type&&I.timeStamp===this.state.timeStamp)return;let g;if(document.pointerLockElement){const{movementX:o,movementY:e}=I;g=bg(this.transform([o,e]),this.state.values)}else g=KI(I,this.transform);const C=this.getKinematics(g,I);if(!this.state._dragStarted){if(this.state._dragDelayed){this.startDrag(I);return}if(this.shouldPreventWindowScrollY)if(!this.state._dragPreventScroll&&C.axis)if(C.axis==="x")this.startDrag(I);else{this.state._active=!1;return}else return;else return}const Q=TA(I);this.updateSharedState(Q);const B=tA(this,I),E=sg(C._movement);let{_dragIsTap:i}=this.state;i&&E>=Ee&&(i=!1),this.updateGestureState({...B,...C,_dragIsTap:i}),this.fireGestureHandler()}),sA(this,"onDragEnd",I=>{if(SE(this.controller,I),!this.isValidEvent(I)||(this.clean(),!this.state._active))return;this.state._active=!1;const g=this.state._dragIsTap,[C,Q]=this.state.velocities,[B,E]=this.state.movement,[i,o]=this.state._intentional,[e,t]=this.config.swipeVelocity,[D,l]=this.config.swipeDistance,a=this.config.swipeDuration,R={...tA(this,I),...this.getMovement(this.state.values)},h=[0,0];R.elapsedTimee&&Math.abs(B)>D&&(h[0]=Vg(C)),o!==!1&&Math.abs(Q)>t&&Math.abs(E)>l&&(h[1]=Vg(Q))),this.updateSharedState({buttons:0}),this.updateGestureState({...R,tap:g,swipe:h}),this.fireGestureHandler(this.config.filterTaps&&g===!0)}),sA(this,"clean",()=>{super.clean(),this.state._dragStarted=!1,this.releasePointerCapture(),Xt(this.controller,this.stateKey)}),sA(this,"onCancel",()=>{this.state.canceled||(this.updateGestureState({canceled:!0,_active:!1}),this.updateSharedState({buttons:0}),zg(this.fireGestureHandler))}),sA(this,"onClick",I=>{this.state._dragIsTap||I.stopPropagation()})}startDrag(I,g=!1){!this.state._active||this.state._dragStarted||(g||this.setStartState(I),this.updateGestureState({_dragStarted:!0,_dragPreventScroll:!0,cancel:this.onCancel}),this.clearTimeout(),this.fireGestureHandler())}addBindings(I){if(this.config.useTouch?(gA(I,"onTouchStart",this.onDragStart),gA(I,"onTouchMove",this.onDragChange),gA(I,"onTouchEnd",this.onDragEnd),gA(I,"onTouchCancel",this.onDragEnd)):(gA(I,"onPointerDown",this.onDragStart),gA(I,"onPointerMove",this.onDragChange),gA(I,"onPointerUp",this.onDragEnd),gA(I,"onPointerCancel",this.onDragEnd)),this.config.filterTaps){const g=this.controller.config.eventOptions.capture?"onClick":"onClickCapture";gA(I,g,this.onClick)}}}function wg(A={},I){const g={};for(const[C,Q]of Object.entries(I))switch(typeof Q){case"function":g[C]=Q.call(g,A[C],C,A);break;case"object":g[C]=wg(A[C],Q);break;case"boolean":Q&&(g[C]=A[C]);break}return g}const oe=180,te=.15,ee=.5,se=50,De=250,mE={threshold(A=0){return aI(A)},rubberband(A=0){switch(A){case!0:return aI(te);case!1:return aI(0);default:return aI(A)}},enabled(A=!0){return A},triggerAllEvents(A=!1){return A},initial(A=0){return typeof A=="function"?A:aI(A)},transform:!0},rQ={...mE,axis:!0,lockDirection(A=!1){return A},bounds(A={}){if(typeof A=="function")return B=>rQ.bounds(A(B));const{left:I=-1/0,right:g=1/0,top:C=-1/0,bottom:Q=1/0}=A;return[[I,g],[C,Q]]}},ne=typeof window<"u"&&window.document&&window.document.createElement,re={enabled(A=!0){return A},domTarget:!0,window(A=ne?window:void 0){return A},eventOptions({passive:A=!0,capture:I=!1}={}){return{passive:A,capture:I}},transform:!0},ae={...mE,bounds(A,I,{distanceBounds:g={},angleBounds:C={}}){const Q=E=>{const i=QB(pg(g,E),{min:-1/0,max:1/0});return[i.min,i.max]},B=E=>{const i=QB(pg(C,E),{min:-1/0,max:1/0});return[i.min,i.max]};return typeof g!="function"&&typeof C!="function"?[Q(),B()]:E=>[Q(E),B(E)]}},le={...rQ,useTouch(A=!0){return A&&ME()},preventWindowScrollY(A=!1){return A},threshold(A,I,{filterTaps:g=!1,lockDirection:C=!1,axis:Q=void 0}){const B=aI(A,g?3:C||Q?1:0);return this.filterTaps=g,B},swipeVelocity(A=ee){return aI(A)},swipeDistance(A=se){return aI(A)},swipeDuration(A=De){return A},delay(A=0){switch(A){case!0:return oe;case!1:return 0;default:return A}}};function we(A){return wg(A,re)}function cC(A={}){return wg(A,rQ)}function ce(A={}){return wg(A,ae)}function Re(A={}){return wg(A,le)}function Ne(A,I=new Set){const{drag:g,wheel:C,move:Q,scroll:B,pinch:E,hover:i,eventOptions:o,window:e,transform:t,domTarget:D,enabled:l}=A,a=we({domTarget:D,eventOptions:o,transform:t,window:e,enabled:l});return I.has("onDrag")&&(a.drag=Re(g)),I.has("onWheel")&&(a.wheel=cC(C)),I.has("onScroll")&&(a.scroll=cC(B)),I.has("onMove")&&(a.move=cC(Q)),I.has("onPinch")&&(a.pinch=ce(E)),I.has("onHover")&&(a.hover={enabled:!0,...i}),a}function he(A,I,g={}){const C=Ge(A),Q=new xt(C);return Q.config=I,Q.handlers=A,Q.nativeRefs=g,eQ()&&!I.manual&&(ng(Q.bind),_g(Q.clean)),Q}function Ge(A){const I=new Set;return A.drag&&I.add(mA.get("drag")),A.wheel&&I.add(mA.get("wheel")),A.scroll&&I.add(mA.get("scroll")),A.move&&I.add(mA.get("move")),A.pinch&&I.add(mA.get("pinch")),A.hover&&I.add(mA.get("hover")),I}var Fe=Object.defineProperty,ye=(A,I,g)=>I in A?Fe(A,I,{enumerable:!0,configurable:!0,writable:!0,value:g}):A[I]=g,vA=(A,I,g)=>(ye(A,typeof I!="symbol"?I+"":I,g),g);class eB extends IC{constructor(){super(...arguments),vA(this,"ingKey","moving"),vA(this,"stateKey","move"),vA(this,"debounced",!0),vA(this,"onMove",I=>{this.enabled&&(this.setTimeout(this.onMoveEnd),this.state._active?this.onMoveChange(I):this.onMoveStart(I))}),vA(this,"onMoveStart",I=>{this.updateSharedState(TA(I));const g=KI(I,this.transform);this.updateGestureState({...fI(this,g,I),...tA(this,I,!0)}),this.updateGestureState(this.getMovement(g)),this.fireGestureHandler()}),vA(this,"onMoveChange",I=>{this.updateSharedState(TA(I));const g=KI(I,this.transform);this.updateGestureState({...tA(this,I),...this.getKinematics(g,I)}),this.fireGestureHandler()}),vA(this,"onMoveEnd",()=>{if(this.clean(),!this.state._active)return;const I=this.state.values;this.updateGestureState(this.getMovement(I)),this.updateGestureState({velocities:[0,0],velocity:0,_active:!1}),this.fireGestureHandler()}),vA(this,"hoverTransform",()=>this.controller.config.hover.transform||this.controller.config.transform),vA(this,"onPointerEnter",I=>{if(this.controller.state.shared.hovering=!0,!!this.controller.config.enabled){if(this.controller.config.hover.enabled){const g=KI(I,this.hoverTransform()),C={...this.controller.state.shared,...this.state,...tA(this,I,!0),args:this.args,values:g,active:!0,hovering:!0};this.controller.handlers.hover({...C,...this.mapStateValues(C)})}"move"in this.controller.handlers&&this.onMoveStart(I)}}),vA(this,"onPointerLeave",I=>{if(this.controller.state.shared.hovering=!1,"move"in this.controller.handlers&&this.onMoveEnd(),!this.controller.config.hover.enabled)return;const g=KI(I,this.hoverTransform()),C={...this.controller.state.shared,...this.state,...tA(this,I),args:this.args,values:g,active:!1};this.controller.handlers.hover({...C,...this.mapStateValues(C)})})}addBindings(I){"move"in this.controller.handlers&&gA(I,"onPointerMove",this.onMove),"hover"in this.controller.handlers&&(gA(I,"onPointerEnter",this.onPointerEnter),gA(I,"onPointerLeave",this.onPointerLeave))}}class Me extends TE{getInternalMovement(I,g){const C=g.values[1];let[Q,B=C]=I,E=B-C,i=g.turns;return Math.abs(E)>270&&(i+=Vg(E)),nQ([Q,B-360*i],g.initial)}getKinematics(I,g){const C=this.getMovement(I),Q=(I[1]-C._movement[1]-this.state.initial[1])/360,B=g.timeStamp-this.state.timeStamp,{distance:E,velocity:i,...o}=LE(C.movement,C.delta,B);return{turns:Q,...C,...o}}mapStateValues(I){return{da:I.values,vdva:I.velocities}}}var Ue=Object.defineProperty,fe=(A,I,g)=>I in A?Ue(A,I,{enumerable:!0,configurable:!0,writable:!0,value:g}):A[I]=g,RA=(A,I,g)=>(fe(A,typeof I!="symbol"?I+"":I,g),g);const Je=7,Ye=260;class ue extends Me{constructor(){super(...arguments),RA(this,"ingKey","pinching"),RA(this,"stateKey","pinch"),RA(this,"onPinchStart",I=>{uE(this.controller,I);const g=this.controller.touchIds;if(!this.enabled||this.state._active&&this.state._pointerIds.every(E=>g.has(E))||g.size<2)return;const C=Array.from(g).slice(0,2),{values:Q,origin:B}=AB(I,C,this.transform);this.updateSharedState(TA(I)),this.updateGestureState({...fI(this,Q,I),...tA(this,I,!0),_pointerIds:C,cancel:this.onCancel,origin:B}),this.updateGestureState(this.getMovement(Q)),this.fireGestureHandler()}),RA(this,"onPinchChange",I=>{const{canceled:g,_active:C}=this.state;if(g||!C||I.timeStamp===this.state.timeStamp)return;const Q=TA(I);this.updateSharedState(Q);try{const{values:B,origin:E}=AB(I,this.state._pointerIds,this.transform),i=this.getKinematics(B,I);this.updateGestureState({...tA(this,I),...i,origin:E}),this.fireGestureHandler()}catch{this.onPinchEnd(I)}}),RA(this,"onPinchEnd",I=>{SE(this.controller,I);const g=DQ(I);this.state._pointerIds.every(C=>!g.includes(C))||(this.clean(),this.state._active&&(this.updateGestureState({...tA(this,I),...this.getMovement(this.state.values),_active:!1}),this.fireGestureHandler()))}),RA(this,"onCancel",()=>{this.state.canceled||(this.updateGestureState({_active:!1,canceled:!0}),this.fireGestureHandler())}),RA(this,"onGestureStart",I=>{if(!this.enabled)return;I.preventDefault();const g=CB(I,this.transform);this.updateSharedState(TA(I)),this.updateGestureState({...fI(this,g,I),...tA(this,I,!0),origin:[I.clientX,I.clientY],cancel:this.onCancel}),this.updateGestureState(this.getMovement(g)),this.fireGestureHandler()}),RA(this,"onGestureChange",I=>{const{canceled:g,_active:C}=this.state;if(g||!C)return;I.preventDefault();const Q=TA(I);this.updateSharedState(Q);const B=CB(I,this.transform);B[0]=(B[0]-this.state.event.scale)*Ye+this.state.values[0];const E=this.getKinematics(B,I);this.updateGestureState({...tA(this,I),...E,origin:[I.clientX,I.clientY]}),this.fireGestureHandler()}),RA(this,"onGestureEnd",I=>{this.clean(),this.state._active&&(this.updateGestureState({...tA(this,I),...this.getMovement(this.state.values),_active:!1,origin:[I.clientX,I.clientY]}),this.fireGestureHandler())}),RA(this,"wheelShouldRun",I=>this.enabled&&I.ctrlKey),RA(this,"getWheelValuesFromEvent",I=>{const[,g]=fE(I,this.transform),{values:[C,Q]}=this.state;return{values:[C-g*Je,Q!==void 0?Q:0],origin:[I.clientX,I.clientY],delta:[0,g]}}),RA(this,"onWheel",I=>{this.wheelShouldRun(I)&&(this.setTimeout(this.onWheelEnd),this.state._active?this.onWheelChange(I):this.onWheelStart(I))}),RA(this,"onWheelStart",I=>{const{values:g,delta:C,origin:Q}=this.getWheelValuesFromEvent(I);I.cancelable&&I.preventDefault(),this.updateSharedState(TA(I)),this.updateGestureState({...fI(this,g,I),...tA(this,I,!0),initial:this.state.values,offset:g,delta:C,origin:Q}),this.updateGestureState(this.getMovement(g)),this.fireGestureHandler()}),RA(this,"onWheelChange",I=>{I.cancelable&&I.preventDefault(),this.updateSharedState(TA(I));const{values:g,origin:C,delta:Q}=this.getWheelValuesFromEvent(I);this.updateGestureState({...tA(this,I),...this.getKinematics(g,I),origin:C,delta:Q}),this.fireGestureHandler()}),RA(this,"onWheelEnd",()=>{this.clean(),this.state._active&&(this.state._active=!1,this.updateGestureState(this.getMovement(this.state.values)),this.fireGestureHandler())})}addBindings(I){this.controller.config.domTarget&&!this.controller.supportsTouchEvents&&this.controller.supportsGestureEvents?(gA(I,"onGestureStart",this.onGestureStart),gA(I,"onGestureChange",this.onGestureChange),gA(I,"onGestureEnd",this.onGestureEnd)):(gA(I,"onTouchStart",this.onPinchStart),gA(I,"onTouchMove",this.onPinchChange),gA(I,"onTouchEnd",this.onPinchEnd),gA(I,"onTouchCancel",this.onPinchEnd),gA(I,"onWheel",this.onWheel))}}var Se=Object.defineProperty,ke=(A,I,g)=>I in A?Se(A,I,{enumerable:!0,configurable:!0,writable:!0,value:g}):A[I]=g,zI=(A,I,g)=>(ke(A,typeof I!="symbol"?I+"":I,g),g);class de extends IC{constructor(){super(...arguments),zI(this,"ingKey","scrolling"),zI(this,"stateKey","scroll"),zI(this,"debounced",!0),zI(this,"handleEvent",I=>{if(!this.enabled)return;this.clearTimeout(),this.setTimeout(this.onEnd);const g=Wt(I,this.transform);if(this.updateSharedState(TA(I)),this.state._active)this.updateGestureState({...tA(this,I),...this.getKinematics(g,I)});else{this.updateGestureState({...fI(this,g,I),...tA(this,I,!0),initial:this.state.values});const C=this.getMovement(g),Q=KE(C.delta);this.updateGestureState(C),this.updateGestureState(Q)}this.fireGestureHandler()}),zI(this,"onEnd",()=>{this.clean(),this.state._active&&(this.updateGestureState({...this.getMovement(this.state.values),_active:!1,velocities:[0,0],velocity:0}),this.fireGestureHandler())})}addBindings(I){gA(I,"onScroll",this.handleEvent)}}var Ke=Object.defineProperty,Le=(A,I,g)=>I in A?Ke(A,I,{enumerable:!0,configurable:!0,writable:!0,value:g}):A[I]=g,PI=(A,I,g)=>(Le(A,typeof I!="symbol"?I+"":I,g),g);class Te extends IC{constructor(){super(...arguments),PI(this,"ingKey","wheeling"),PI(this,"stateKey","wheel"),PI(this,"debounced",!0),PI(this,"handleEvent",I=>{if(I.ctrlKey&&"pinch"in this.controller.handlers||!this.enabled)return;this.setTimeout(this.onEnd),this.updateSharedState(TA(I));const g=bg(fE(I,this.transform),this.state.values);if(this.state._active)this.updateGestureState({...tA(this,I),...this.getKinematics(g,I)});else{this.updateGestureState({...fI(this,g,I),...tA(this,I,!0),initial:this.state.values});const C=this.getMovement(g),Q=KE(C.delta);this.updateGestureState(C),this.updateGestureState(Q)}this.fireGestureHandler()}),PI(this,"onEnd",()=>{if(this.clean(),!this.state._active)return;const I=this.getMovement(this.state.values);this.updateGestureState(I),this.updateGestureState({_active:!1,velocities:[0,0],velocity:0}),this.fireGestureHandler()})}addBindings(I){gA(I,"onWheel",this.handleEvent)}}const me=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function He(A){const I={},g={},C=new Set;for(let Q in A)me.test(Q)?(C.add(RegExp.lastMatch),g[Q]=A[Q]):I[Q]=A[Q];return[g,I,C]}function pe(A,I){const[g,C,Q]=He(A);mA.set("drag",ie),mA.set("hover",eB),mA.set("move",eB),mA.set("pinch",ue),mA.set("scroll",de),mA.set("wheel",Te);const B=Ne(I,Q),E={};return Q.has("onDrag")&&(E.drag=_I(g,"onDrag")),Q.has("onWheel")&&(E.wheel=_I(g,"onWheel")),Q.has("onScroll")&&(E.scroll=_I(g,"onScroll")),Q.has("onMove")&&(E.move=_I(g,"onMove")),Q.has("onPinch")&&(E.pinch=_I(g,"onPinch")),Q.has("onHover")&&(E.hover=g.onHover),he(E,B,C)}function _I(A,I){const g=I+"Start",C=I+"End";return B=>{let E;return B.first&&g in A&&A[g](B),I in A&&(E=A[I](B)),B.last&&C in A&&A[C](B),E}}function be(A){return uB()?(di(A),!0):!1}function zA(A){return typeof A=="function"?A():GA(A)}const Ve=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ze=Object.prototype.toString,qe=A=>Ze.call(A)==="[object Object]",RC=(A,I,g)=>Math.min(g,Math.max(I,A)),We=()=>{};function Oe(A,I){function g(...C){return new Promise((Q,B)=>{Promise.resolve(A(()=>I.apply(this,C),{fn:I,thisArg:this,args:C})).then(Q).catch(B)})}return g}const HE=A=>A();function je(A=HE){const I=qA(!0);function g(){I.value=!1}function C(){I.value=!0}const Q=(...B)=>{I.value&&A(...B)};return{isActive:AQ(I),pause:g,resume:C,eventFilter:Q}}function xe(A){return eQ()}function ve(A,I,g={}){const{eventFilter:C=HE,...Q}=g;return lI(A,Oe(C,I),Q)}function Xe(A,I,g={}){const{eventFilter:C,...Q}=g,{eventFilter:B,pause:E,resume:i,isActive:o}=je(C);return{stop:ve(A,I,{...Q,eventFilter:B}),pause:E,resume:i,isActive:o}}function ze(A,I=!0,g){xe()?ng(A,g):I?A():zg(A)}function kg(A,I,g){if(typeof A=="function"||wI(A))return $A(()=>RC(zA(A),zA(I),zA(g)));const C=qA(A);return $A({get(){return C.value=RC(C.value,zA(I),zA(g))},set(Q){C.value=RC(Q,zA(I),zA(g))}})}const Pe=(A,I)=>{const g=A.__vccOpts||A;for(const[C,Q]of I)g[C]=Q;return g},_e={viewBox:"-2 -2 104 124"},$e={stroke:"currentColor"},As=["stroke","stroke-dashoffset"],Is=["transform"],gs={transform:"translate(50,50)","text-anchor":"middle","dominant-baseline":"middle",fill:"currentColor"},Cs=["transform"],Qs={transform:"translate(0,20)"},Bs={class:"font-bold",transform:"translate(0,58)"},Es=45,is={__name:"ControlRotary",props:Jo({max:{type:Number,default:100},min:{type:Number,default:0},step:{type:Number,default:1},param:{type:String,default:"param"},unit:{type:String,default:""},fixed:{type:Number,default:1},cc:{type:Number,default:0},channel:{type:Number,default:0}},{modelValue:{default:50},modelModifiers:{}}),emits:["update:modelValue"],setup(A){const I=A,g=_o(A,"modelValue"),C=gI({internal:kg(0,0,100),initial:$A(()=>(g.value-I.min)/(I.max-I.min)*100)}),Q=$A({get:()=>Math.round((C.internal/100*(I.max-I.min)+I.min)/I.step)*I.step,set:i=>{C.internal=(i-I.min)/(I.max-I.min)*100}});lI(g,i=>{Q.value=i},{immediate:!0});const B=qA();pe({onDrag:({delta:[i,o],dragging:e,shiftKey:t,event:D})=>{D&&D.preventDefault();const l=t?12:D.type==="wheel"?-8:2;C.internal=kg(0,C.internal-o/l+i/l,100),g.value=Q.value},onWheel:({delta:[i,o],event:e})=>{e&&e.preventDefault(),C.internal=kg(0,C.internal+o/8-i/8,100),g.value=Q.value}},{wheel:{preventWindowScrollY:!0},eventOptions:{capture:!1,passive:!1},domTarget:B});const E=Math.PI*2*Es-50;return(i,o)=>(dA(),PA("div",{class:"knob",ref_key:"knob",ref:B,onDblclick:o[0]||(o[0]=e=>{C.internal=C.initial,g.value=Q.value})},[o[3]||(o[3]=EA("div",{class:"i-ph-arrows-horizontal absolute text-10px top-14px opacity-70"},null,-1)),(dA(),PA("svg",_e,[EA("g",$e,[o[2]||(o[2]=EA("path",{d:"M25,90 a 45,45,1,1,1,50,0",fill:"none",stroke:"#9996","stroke-width":"8","stroke-linecap":"round"},null,-1)),EA("path",{d:"M25,90 a 45,45,1,1,1,50,0",fill:"none",stroke:`hsla(${C.internal*3.6}deg,70%,50%,0.8)`,"stroke-width":"12","stroke-linecap":"round","stroke-dasharray":E,"stroke-dashoffset":E-E*(C.internal/100)},null,8,As),EA("g",{transform:`translate(50,52.5) rotate(${C.internal*2.9}) `},o[1]||(o[1]=[EA("circle",{"stroke-width":"2",fill:"none",r:38,opacity:"0.6"},null,-1)]),8,Is)]),EA("g",gs,[EA("text",{class:"font-bold text-2xl",transform:`translate(0,${A.unit?-3:5})`},[Uo(i.$slots,"default",{},()=>[EA("tspan",null,mI(Q.value.toFixed(A.fixed)),1)])],8,Cs),EA("text",Qs,[EA("tspan",null,mI(A.unit),1)]),EA("text",Bs,[EA("tspan",null,mI(A.param.toUpperCase()),1)])])]))],544))}},sB=Pe(is,[["__scopeId","data-v-1534cf19"]]);function aQ(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var os=function(I,g,C,Q){var B=C?C.call(Q,I,g):void 0;if(B!==void 0)return!!B;if(I===g)return!0;if(typeof I!="object"||!I||typeof g!="object"||!g)return!1;var E=Object.keys(I),i=Object.keys(g);if(E.length!==i.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(g),e=0;eI in A?bE(A,I,{enumerable:!0,configurable:!0,writable:!0,value:g}):A[I]=g,QA=(A,I)=>{for(var g in I||(I={}))ws.call(I,g)&&nB(A,g,I[g]);if(DB)for(var g of DB(I))cs.call(I,g)&&nB(A,g,I[g]);return A},Rs=(A,I)=>as(A,ls(I)),CI=(A,I)=>{for(var g in I)bE(A,g,{get:I[g],enumerable:!0})},lQ={};CI(lQ,{_1:()=>VE,_2:()=>ZE,_3:()=>WE,_4:()=>OE,_5:()=>jE,_6:()=>xE,_7:()=>vE,_8:()=>XE,__1:()=>wQ,__2:()=>qE,__3:()=>Ns,__4:()=>hs,__5:()=>Gs,__6:()=>Fs,__7:()=>ys,__8:()=>Ms,app:()=>q});function rB(A,I,g){for(var C=new Array(g),Q=0,B=I;Q=0)return function(o,e){return function(t){return q(o,e.concat([t]))}}(C,g);I=rB(g,B,-i|0),A=C.apply(null,rB(g,0,B))}}function VE(A,I){var g=A.length;if(g===1)return A(I);switch(g){case 1:return A(I);case 2:return function(C){return A(I,C)};case 3:return function(C,Q){return A(I,C,Q)};case 4:return function(C,Q,B){return A(I,C,Q,B)};case 5:return function(C,Q,B,E){return A(I,C,Q,B,E)};case 6:return function(C,Q,B,E,i){return A(I,C,Q,B,E,i)};case 7:return function(C,Q,B,E,i,o){return A(I,C,Q,B,E,i,o)};default:return q(A,[I])}}function wQ(A){var I=A.length;return I===1?A:function(g){return VE(A,g)}}function ZE(A,I,g){var C=A.length;if(C===2)return A(I,g);switch(C){case 1:return q(A(I),[g]);case 2:return A(I,g);case 3:return function(Q){return A(I,g,Q)};case 4:return function(Q,B){return A(I,g,Q,B)};case 5:return function(Q,B,E){return A(I,g,Q,B,E)};case 6:return function(Q,B,E,i){return A(I,g,Q,B,E,i)};case 7:return function(Q,B,E,i,o){return A(I,g,Q,B,E,i,o)};default:return q(A,[I,g])}}function qE(A){var I=A.length;return I===2?A:function(g,C){return ZE(A,g,C)}}function WE(A,I,g,C){var Q=A.length;if(Q===3)return A(I,g,C);switch(Q){case 1:return q(A(I),[g,C]);case 2:return q(A(I,g),[C]);case 3:return A(I,g,C);case 4:return function(B){return A(I,g,C,B)};case 5:return function(B,E){return A(I,g,C,B,E)};case 6:return function(B,E,i){return A(I,g,C,B,E,i)};case 7:return function(B,E,i,o){return A(I,g,C,B,E,i,o)};default:return q(A,[I,g,C])}}function Ns(A){var I=A.length;return I===3?A:function(g,C,Q){return WE(A,g,C,Q)}}function OE(A,I,g,C,Q){var B=A.length;if(B===4)return A(I,g,C,Q);switch(B){case 1:return q(A(I),[g,C,Q]);case 2:return q(A(I,g),[C,Q]);case 3:return q(A(I,g,C),[Q]);case 4:return A(I,g,C,Q);case 5:return function(E){return A(I,g,C,Q,E)};case 6:return function(E,i){return A(I,g,C,Q,E,i)};case 7:return function(E,i,o){return A(I,g,C,Q,E,i,o)};default:return q(A,[I,g,C,Q])}}function hs(A){var I=A.length;return I===4?A:function(g,C,Q,B){return OE(A,g,C,Q,B)}}function jE(A,I,g,C,Q,B){var E=A.length;if(E===5)return A(I,g,C,Q,B);switch(E){case 1:return q(A(I),[g,C,Q,B]);case 2:return q(A(I,g),[C,Q,B]);case 3:return q(A(I,g,C),[Q,B]);case 4:return q(A(I,g,C,Q),[B]);case 5:return A(I,g,C,Q,B);case 6:return function(i){return A(I,g,C,Q,B,i)};case 7:return function(i,o){return A(I,g,C,Q,B,i,o)};default:return q(A,[I,g,C,Q,B])}}function Gs(A){var I=A.length;return I===5?A:function(g,C,Q,B,E){return jE(A,g,C,Q,B,E)}}function xE(A,I,g,C,Q,B,E){var i=A.length;if(i===6)return A(I,g,C,Q,B,E);switch(i){case 1:return q(A(I),[g,C,Q,B,E]);case 2:return q(A(I,g),[C,Q,B,E]);case 3:return q(A(I,g,C),[Q,B,E]);case 4:return q(A(I,g,C,Q),[B,E]);case 5:return q(A(I,g,C,Q,B),[E]);case 6:return A(I,g,C,Q,B,E);case 7:return function(o){return A(I,g,C,Q,B,E,o)};default:return q(A,[I,g,C,Q,B,E])}}function Fs(A){var I=A.length;return I===6?A:function(g,C,Q,B,E,i){return xE(A,g,C,Q,B,E,i)}}function vE(A,I,g,C,Q,B,E,i){var o=A.length;if(o===7)return A(I,g,C,Q,B,E,i);switch(o){case 1:return q(A(I),[g,C,Q,B,E,i]);case 2:return q(A(I,g),[C,Q,B,E,i]);case 3:return q(A(I,g,C),[Q,B,E,i]);case 4:return q(A(I,g,C,Q),[B,E,i]);case 5:return q(A(I,g,C,Q,B),[E,i]);case 6:return q(A(I,g,C,Q,B,E),[i]);case 7:return A(I,g,C,Q,B,E,i);default:return q(A,[I,g,C,Q,B,E,i])}}function ys(A){var I=A.length;return I===7?A:function(g,C,Q,B,E,i,o){return vE(A,g,C,Q,B,E,i,o)}}function XE(A,I,g,C,Q,B,E,i,o){var e=A.length;if(e===8)return A(I,g,C,Q,B,E,i,o);switch(e){case 1:return q(A(I),[g,C,Q,B,E,i,o]);case 2:return q(A(I,g),[C,Q,B,E,i,o]);case 3:return q(A(I,g,C),[Q,B,E,i,o]);case 4:return q(A(I,g,C,Q),[B,E,i,o]);case 5:return q(A(I,g,C,Q,B),[E,i,o]);case 6:return q(A(I,g,C,Q,B,E),[i,o]);case 7:return q(A(I,g,C,Q,B,E,i),[o]);default:return q(A,[I,g,C,Q,B,E,i,o])}}function Ms(A){var I=A.length;return I===8?A:function(g,C,Q,B,E,i,o,e){return XE(A,g,C,Q,B,E,i,o,e)}}var zE={};CI(zE,{$$Map:()=>js,$$Set:()=>xs,RenderDelegate:()=>vs,mount:()=>Ei,renderWithDelegate:()=>Xs,stepGarbageCollector:()=>zs,visit:()=>ii});var PE={};CI(PE,{create:()=>Qi,isNode:()=>Ws,shallowCopy:()=>Bi,symbol:()=>cQ});function aB(A){var I=typeof A;return I==="undefined"?3:A===null?2:I==="number"?{TAG:0,_0:A}:I==="bigint"?{TAG:5,_0:A}:I==="string"?{TAG:1,_0:A}:I==="boolean"?A===!0?1:0:I==="symbol"?{TAG:4,_0:A}:I==="function"?{TAG:2,_0:A}:{TAG:3,_0:A}}function Us(A,I){switch(I){case 0:return typeof A>"u";case 1:return A===null;case 2:return typeof A=="boolean";case 3:return typeof A=="number";case 4:return typeof A=="string";case 5:return typeof A=="function";case 6:return typeof A=="object";case 7:return typeof A=="symbol";case 8:return typeof A=="bigint"}}function fs(A){return A===void 0?{BS_PRIVATE_NESTED_SOME_NONE:0}:A!==null&&A.BS_PRIVATE_NESTED_SOME_NONE!==void 0?{BS_PRIVATE_NESTED_SOME_NONE:A.BS_PRIVATE_NESTED_SOME_NONE+1|0}:A}function Js(A){if(!(A!==null&&A.BS_PRIVATE_NESTED_SOME_NONE!==void 0))return A;var I=A.BS_PRIVATE_NESTED_SOME_NONE;if(I!==0)return{BS_PRIVATE_NESTED_SOME_NONE:I-1|0}}function Ys(A,I){return{hd:I,tl:A}}function us(A,I){for(;;){var g=I,C=A;if(!C)return g;var Q={hd:C.hd,tl:0};g.tl=Q,I=Q,A=C.tl}}function Ss(A,I,g){for(;;){var C=I,Q=A;if(!Q)return;var B={hd:g(Q.hd),tl:0};C.tl=B,I=B,A=Q.tl}}function ks(A,I,g,C){for(;;){var Q=C,B=g,E=I;if(!B)return;var i={hd:A(E,B.hd),tl:0};Q.tl=i,C=i,g=B.tl,I=E+1|0}}function ds(A,I){if(!A)return I;var g={hd:A.hd,tl:0};return us(A.tl,g).tl=I,g}function Ks(A,I){if(!A)return 0;var g={hd:I(A.hd),tl:0};return Ss(A.tl,g,I),g}function _E(A,I){return Ks(A,wQ(I))}function Ls(A,I){if(!A)return 0;var g={hd:I(0,A.hd),tl:0};return ks(I,1,A.tl,g),g}function Ts(A,I){return Ls(A,qE(I))}function $E(A){for(var I=A,g=0;;){var C=g,Q=I;if(!Q)return C;g=C+1|0,I=Q.tl}}function ms(A,I,g){for(;;){var C=g,Q=I;if(!C)return;A[Q]=C.hd,g=C.tl,I=Q+1|0}}function Ai(A){for(var I=A.length-1|0,g=0;;){var C=g,Q=I;if(Q<0)return C;g={hd:A[Q],tl:C},I=Q-1|0}}function Hs(A){var I=$E(A),g=new Array(I);return ms(g,0,A),g}function ps(A,I){for(;;){var g=A;if(!g)return;I(g.hd),A=g.tl}}function Ii(A,I){ps(A,wQ(I))}function bs(A,I,g){for(;;){var C=I,Q=A;if(!Q)return C;I=g(C,Q.hd),A=Q.tl}}function gi(A,I,g,C){for(let Q in C)if(C.hasOwnProperty(Q)){const B=C[Q];(!g.hasOwnProperty(Q)||!ts(g[Q],B))&&((typeof B>"u"||B===null||typeof B=="number"&&isNaN(B)||typeof B=="number"&&!isFinite(B))&&console.warn(`Warning: applying a potentially erroneous property value. ${Q}: ${B}`),A.setProperty(I,Q,B),g[Q]=B)}}function Vs(A,I){if(I in A)return fs(A[I])}function Zs(A){if(A!==void 0)return Js(A);throw new Error("getExn")}function lB(A,I,g,C){gi(A,I,g,C)}function Ci(A,I){return Math.imul(A^I,16777619)}function NC(A,I){for(var g=A,C=0,Q=I.length;C<=Q;++C)g=Ci(g,I.charCodeAt(C)|0);return g}function qs(A,I,g){var C=NC(-2128831035,A),Q=Vs(I,"key"),B=Q!==void 0&&Us(Q,4)?NC(C,Q):NC(C,Zs(JSON.stringify(I)));return bs(g,B,Ci)&2147483647}var cQ="__ELEM_NODE__";function Qi(A,I,g){var C=Ai(g),Q=_E(C,function(B){return B.hash});return{symbol:cQ,hash:qs(A,I,Q),kind:A,props:I,children:C}}function Ws(A){var I=aB(A);if(typeof I=="number"||I.TAG!==3)return!1;var g=aB(A.symbol);return typeof g=="number"||g.TAG!==1?!1:g._0===cQ}function Bi(A){return{symbol:A.symbol,hash:A.hash,kind:A.kind,props:Object.assign({},A.props),generation:{contents:0}}}function Os(A){return Array.from(A.values())}var js={valuesArray:Os},xs={},vs={};function Ei(A,I){var g=A.getNodeMap();if(g.has(I.hash)){var C=g.get(I.hash);lB(A,C.hash,C.props,I.props),C.generation.contents=0;return}A.createNode(I.hash,I.kind),lB(A,I.hash,{},I.props),Ii(I.children,function(Q){A.appendChild(I.hash,Q.hash)}),g.set(I.hash,Bi(I))}function ii(A,I,g){for(;;){var C=g,Q=function(i){I.add(i.hash)};if(!C)return;var B=C.tl,E=C.hd;if(I.has(E.hash)){g=B;continue}Q(E),Ei(A,E),g=ds(E.children,B)}}function Xs(A,I){var g=new Set,C=Ts(Ai(I),function(Q,B){return Qi("root",{channel:Q},[B])});ii(A,g,C),A.activateRoots(Hs(_E(C,function(Q){return Q.hash}))),A.commitUpdates()}function zs(A){var I=A.getNodeMap(),g=A.getTerminalGeneration(),C=Array.from(I.values()).reduce(function(Q,B){return B.generation.contents=B.generation.contents+1|0,B.generation.contents>=g?(A.deleteNode(B.hash),Ys(Q,B)):Q},0);if($E(C)>0)return A.commitUpdates(),Ii(C,function(Q){I.delete(Q.hash)})}var Ps=lQ,oi=zE,_s=function(A,I){return Ps._2(oi.renderWithDelegate,A,I)};oi.stepGarbageCollector;var $s=lQ,RQ=PE,ti=function(A,I,g){return $s._3(RQ.create,A,I,g)},AD=RQ.isNode;RQ.shallowCopy;function r(A){return typeof A=="number"?ti("const",{value:A},[]):(Ds(J(A),`Whoops, expecting a Node type here! Got: ${typeof A}`),A)}function J(A){return AD(A)}function c(A,I,g){return ti(A,I,g.map(r))}var JI={};CI(JI,{accum:()=>QD,biquad:()=>uD,capture:()=>mD,constant:()=>ei,convolve:()=>rD,counter:()=>CD,delay:()=>yD,env:()=>GD,fft:()=>TD,latch:()=>iD,maxhold:()=>oD,meter:()=>dD,metro:()=>sD,mm1p:()=>fD,once:()=>tD,phasor:()=>BD,pole:()=>hD,prewarp:()=>UD,rand:()=>eD,sample:()=>DD,sampleseq:()=>RD,sampleseq2:()=>ND,scope:()=>LD,sdelay:()=>MD,seq:()=>aD,seq2:()=>lD,snapshot:()=>KD,sparseq:()=>wD,sparseq2:()=>cD,sr:()=>ID,svf:()=>JD,svfshelf:()=>YD,syncphasor:()=>ED,table:()=>nD,tapIn:()=>SD,tapOut:()=>kD,time:()=>gD,z:()=>FD});function ei(A){return c("const",A,[])}function ID(){return c("sr",{},[])}function gD(){return c("time",{},[])}function CD(A,I){return typeof A=="number"||J(A)?c("counter",{},[r(A)]):c("counter",A,[r(I)])}function QD(A,I,g){return typeof A=="number"||J(A)?c("accum",{},[r(A),r(I)]):c("accum",A,[r(I),r(g)])}function BD(A,I){return typeof A=="number"||J(A)?c("phasor",{},[r(A)]):c("phasor",A,[r(I)])}function ED(A,I,g){return typeof A=="number"||J(A)?c("sphasor",{},[r(A),r(I)]):c("sphasor",A,[r(I),r(g)])}function iD(A,I,g){return typeof A=="number"||J(A)?c("latch",{},[r(A),r(I)]):c("latch",A,[r(I),r(g)])}function oD(A,I,g){return typeof A=="number"||J(A)?c("maxhold",{},[r(A),r(I)]):c("maxhold",A,[r(I),r(g)])}function tD(A,I){return typeof A=="number"||J(A)?c("once",{},[r(A)]):c("once",A,[r(I)])}function eD(A){return typeof A<"u"?c("rand",A,[]):c("rand",{},[])}function sD(A){return typeof A<"u"?c("metro",A,[]):c("metro",{},[])}function DD(A,I,g){return c("sample",A,[r(I),r(g)])}function nD(A,I){return c("table",A,[r(I)])}function rD(A,I){return c("convolve",A,[r(I)])}function aD(A,I,g){return c("seq",A,[r(I),r(g)])}function lD(A,I,g){return c("seq2",A,[r(I),r(g)])}function wD(A,I,g){return c("sparseq",A,[r(I),r(g)])}function cD(A,I){return c("sparseq2",A,[r(I)])}function RD(A,I){return c("sampleseq",A,[r(I)])}function ND(A,I){return c("sampleseq2",A,[r(I)])}function hD(A,I,g){return typeof A=="number"||J(A)?c("pole",{},[r(A),r(I)]):c("pole",A,[r(I),r(g)])}function GD(A,I,g,C){return typeof A=="number"||J(A)?c("env",{},[r(A),r(I),r(g)]):c("env",A,[r(I),r(g),r(C)])}function FD(A,I){return typeof A=="number"||J(A)?c("z",{},[r(A)]):c("z",A,[r(I)])}function yD(A,I,g,C){return typeof A=="number"||J(A)?c("delay",{},[r(A),r(I),r(g)]):c("delay",A,[r(I),r(g),r(C)])}function MD(A,I){return c("sdelay",A,[r(I)])}function UD(A){return c("prewarp",{},[A])}function fD(A,I,g){return typeof A=="number"||J(A)?c("mm1p",{},[r(A),r(I)]):c("mm1p",A,[r(I),r(g)])}function JD(A,I,g,C){return typeof A=="number"||J(A)?c("svf",{},[r(A),r(I),r(g)]):c("svf",A,[r(I),r(g),r(C)])}function YD(A,I,g,C,Q){return typeof A=="number"||J(A)?c("svfshelf",{},[r(A),r(I),r(g),r(C)]):c("svfshelf",A,[r(I),r(g),r(C),r(Q)])}function uD(A,I,g,C,Q,B,E){return typeof A=="number"||J(A)?c("biquad",{},[r(A),r(I),r(g),r(C),r(Q),r(B)]):c("biquad",A,[r(I),r(g),r(C),r(Q),r(B),r(E)])}function SD(A){return c("tapIn",A,[])}function kD(A,I){return c("tapOut",A,[r(I)])}function dD(A,I){return typeof A=="number"||J(A)?c("meter",{},[r(A)]):c("meter",A,[r(I)])}function KD(A,I,g){return typeof A=="number"||J(A)?c("snapshot",{},[r(A),r(I)]):c("snapshot",A,[r(I),r(g)])}function LD(A,...I){return typeof A=="number"||J(A)?c("scope",{},[A,...I].map(r)):c("scope",A,I.map(r))}function TD(A,I){return typeof A=="number"||J(A)?c("fft",{},[r(A)]):c("fft",A,[r(I)])}function mD(A,I,g){return typeof A=="number"||J(A)?c("capture",{},[r(A),r(I)]):c("capture",A,[r(I),r(g)])}var si={};CI(si,{compress:()=>Rn,skcompress:()=>Nn});var YI={};CI(YI,{abs:()=>PD,add:()=>En,and:()=>Qn,asinh:()=>ZD,ceil:()=>jD,cos:()=>pD,div:()=>en,eq:()=>Cn,exp:()=>zD,floor:()=>xD,ge:()=>An,geq:()=>In,identity:()=>Di,le:()=>_D,leq:()=>$D,ln:()=>qD,log:()=>WD,log2:()=>OD,max:()=>nn,min:()=>Dn,mod:()=>sn,mul:()=>tn,or:()=>Bn,pow:()=>gn,round:()=>vD,sin:()=>HD,sqrt:()=>XD,sub:()=>on,tan:()=>bD,tanh:()=>VD});function Di(A,I){return typeof A=="number"||J(A)?c("in",{},[r(A)]):typeof I=="number"||J(I)?c("in",A,[r(I)]):c("in",A,[])}function HD(A,I){return typeof A=="number"||J(A)?c("sin",{},[r(A)]):c("sin",A,[r(I)])}function pD(A,I){return typeof A=="number"||J(A)?c("cos",{},[r(A)]):c("cos",A,[r(I)])}function bD(A,I){return typeof A=="number"||J(A)?c("tan",{},[r(A)]):c("tan",A,[r(I)])}function VD(A,I){return typeof A=="number"||J(A)?c("tanh",{},[r(A)]):c("tanh",A,[r(I)])}function ZD(A,I){return typeof A=="number"||J(A)?c("asinh",{},[r(A)]):c("asinh",A,[r(I)])}function qD(A,I){return typeof A=="number"||J(A)?c("ln",{},[r(A)]):c("ln",A,[r(I)])}function WD(A,I){return typeof A=="number"||J(A)?c("log",{},[r(A)]):c("log",A,[r(I)])}function OD(A,I){return typeof A=="number"||J(A)?c("log2",{},[r(A)]):c("log2",A,[r(I)])}function jD(A,I){return typeof A=="number"||J(A)?c("ceil",{},[r(A)]):c("ceil",A,[r(I)])}function xD(A,I){return typeof A=="number"||J(A)?c("floor",{},[r(A)]):c("floor",A,[r(I)])}function vD(A,I){return typeof A=="number"||J(A)?c("round",{},[r(A)]):c("round",A,[r(I)])}function XD(A,I){return typeof A=="number"||J(A)?c("sqrt",{},[r(A)]):c("sqrt",A,[r(I)])}function zD(A,I){return typeof A=="number"||J(A)?c("exp",{},[r(A)]):c("exp",A,[r(I)])}function PD(A,I){return typeof A=="number"||J(A)?c("abs",{},[r(A)]):c("abs",A,[r(I)])}function _D(A,I,g){return typeof A=="number"||J(A)?c("le",{},[r(A),r(I)]):c("le",A,[r(I),r(g)])}function $D(A,I,g){return typeof A=="number"||J(A)?c("leq",{},[r(A),r(I)]):c("leq",A,[r(I),r(g)])}function An(A,I,g){return typeof A=="number"||J(A)?c("ge",{},[r(A),r(I)]):c("ge",A,[r(I),r(g)])}function In(A,I,g){return typeof A=="number"||J(A)?c("geq",{},[r(A),r(I)]):c("geq",A,[r(I),r(g)])}function gn(A,I,g){return typeof A=="number"||J(A)?c("pow",{},[r(A),r(I)]):c("pow",A,[r(I),r(g)])}function Cn(A,I,g){return typeof A=="number"||J(A)?c("eq",{},[r(A),r(I)]):c("eq",A,[r(I),r(g)])}function Qn(A,I,g){return typeof A=="number"||J(A)?c("and",{},[r(A),r(I)]):c("and",A,[r(I),r(g)])}function Bn(A,I,g){return typeof A=="number"||J(A)?c("or",{},[r(A),r(I)]):c("or",A,[r(I),r(g)])}function En(A,...I){return typeof A=="number"||J(A)?c("add",{},[A,...I].map(r)):c("add",A,I.map(r))}function on(A,...I){return typeof A=="number"||J(A)?c("sub",{},[A,...I].map(r)):c("sub",A,I.map(r))}function tn(A,...I){return typeof A=="number"||J(A)?c("mul",{},[A,...I].map(r)):c("mul",A,I.map(r))}function en(A,...I){return typeof A=="number"||J(A)?c("div",{},[A,...I].map(r)):c("div",A,I.map(r))}function sn(A,...I){return typeof A=="number"||J(A)?c("mod",{},[A,...I].map(r)):c("mod",A,I.map(r))}function Dn(A,...I){return typeof A=="number"||J(A)?c("min",{},[A,...I].map(r)):c("min",A,I.map(r))}function nn(A,...I){return typeof A=="number"||J(A)?c("max",{},[A,...I].map(r)):c("max",A,I.map(r))}var cg={};CI(cg,{db2gain:()=>ln,gain2db:()=>wn,hann:()=>cn,ms2samps:()=>rn,select:()=>ni,tau2pole:()=>an});var iA=QA(QA({},JI),YI);function rn(A){return iA.mul(iA.sr(),iA.div(A,1e3))}function an(A){return iA.exp(iA.div(-1,iA.mul(A,iA.sr())))}function ln(A){return iA.pow(10,iA.mul(A,1/20))}function wn(A){return ni(iA.ge(A,0),iA.max(-120,iA.mul(20,iA.log(A))),-120)}function ni(A,I,g){return iA.add(iA.mul(A,I),iA.mul(iA.sub(1,A),g))}function cn(A){return iA.mul(.5,iA.sub(1,iA.cos(iA.mul(2*Math.PI,A))))}var V=QA(QA(QA({},JI),YI),cg);function Rn(A,I,g,C,Q,B){const E=V.env(V.tau2pole(V.mul(.001,A)),V.tau2pole(V.mul(.001,I)),Q),i=V.gain2db(E),o=V.sub(1,V.div(1,C)),e=V.mul(o,V.sub(g,i)),t=V.min(0,e),D=V.db2gain(t);return V.mul(B,D)}function Nn(A,I,g,C,Q,B,E){const i=V.env(V.tau2pole(V.mul(.001,A)),V.tau2pole(V.mul(.001,I)),B),o=V.gain2db(i),e=V.sub(g,V.div(Q,2)),t=V.add(g,V.div(Q,2)),D=V.and(V.geq(o,e),V.leq(o,t)),l=V.sub(1,V.div(1,C)),a=V.select(D,V.mul(V.div(l,2),V.mul(V.div(V.sub(o,e),Q),V.sub(e,o))),V.mul(l,V.sub(g,o))),R=V.min(0,a),h=V.db2gain(R);return V.mul(E,h)}var ri={};CI(ri,{adsr:()=>dn});var gC={};CI(gC,{allpass:()=>Jn,bandpass:()=>Un,dcblock:()=>Gn,df11:()=>Fn,highpass:()=>Mn,highshelf:()=>Sn,lowpass:()=>yn,lowshelf:()=>un,notch:()=>fn,peak:()=>Yn,pink:()=>kn,sm:()=>hn,smooth:()=>HC,zero:()=>NQ});var b=QA(QA(QA({},JI),YI),cg);function HC(A,I,g){return typeof A=="number"||J(A)?b.pole(A,b.mul(b.sub(1,A),I)):b.pole(A,I,b.mul(b.sub(1,I),g))}function hn(A,I){return typeof A=="number"||J(A)?HC(b.tau2pole(.02),A):HC(A,b.tau2pole(.02),I)}function NQ(A,I,g,C){let[Q,B,E]=typeof A=="number"||J(A)?[A,I,g]:[I,g,C];return b.sub(b.mul(Q,E),b.mul(B,b.z(E)))}function Gn(A,I){let g=typeof A=="number"||J(A)?A:I;return b.pole(.995,NQ(1,1,g))}function Fn(A,I,g,C,Q){let[B,E,i,o]=typeof A=="number"||J(A)?[A,I,g,C]:[I,g,C,Q];return b.pole(i,NQ(B,E,o))}function yn(A,I,g,C){return typeof A=="number"||J(A)?b.svf({mode:"lowpass"},A,I,g):b.svf(Object.assign({},A,{mode:"lowpass"}),I,g,C)}function Mn(A,I,g,C){return typeof A=="number"||J(A)?b.svf({mode:"highpass"},A,I,g):b.svf(Object.assign({},A,{mode:"highpass"}),I,g,C)}function Un(A,I,g,C){return typeof A=="number"||J(A)?b.svf({mode:"bandpass"},A,I,g):b.svf(Object.assign({},A,{mode:"bandpass"}),I,g,C)}function fn(A,I,g,C){return typeof A=="number"||J(A)?b.svf({mode:"notch"},A,I,g):b.svf(Object.assign({},A,{mode:"notch"}),I,g,C)}function Jn(A,I,g,C){return typeof A=="number"||J(A)?b.svf({mode:"allpass"},A,I,g):b.svf(Object.assign({},A,{mode:"allpass"}),I,g,C)}function Yn(A,I,g,C,Q){return typeof A=="number"||J(A)?b.svfshelf({mode:"peak"},A,I,g,C):b.svfshelf(Object.assign({},A,{mode:"peak"}),I,g,C,Q)}function un(A,I,g,C,Q){return typeof A=="number"||J(A)?b.svfshelf({mode:"lowshelf"},A,I,g,C):b.svfshelf(Object.assign({},A,{mode:"lowshelf"}),I,g,C,Q)}function Sn(A,I,g,C,Q){return typeof A=="number"||J(A)?b.svfshelf({mode:"highshelf"},A,I,g,C):b.svfshelf(Object.assign({},A,{mode:"highshelf"}),I,g,C,Q)}function kn(A,I){let g=typeof A=="number"||J(A)?A:I;return((Q,B,E)=>b.min(B,b.max(Q,E)))(-1,1,b.mul(b.db2gain(-30),b.add(b.pole(.99765,b.mul(g,.099046)),b.pole(.963,b.mul(g,.2965164)),b.pole(.57,b.mul(g,1.0526913)),b.mul(.1848,g))))}var VA=QA(QA(QA(QA({},JI),YI),gC),cg);function dn(A,I,g,C,Q,B){let E=typeof A=="number"||J(A)?[A,I,g,C,Q]:[I,g,C,Q,B],[i,o,e,t,D]=E,l=VA.mul(i,VA.sr()),a=VA.le(VA.counter(D),l),R=VA.select(D,VA.select(a,1,e),0),h=VA.select(D,VA.select(a,i,o),t),M=VA.tau2pole(VA.div(h,6.91));return VA.smooth(M,R)}var ai={};CI(ai,{blepsaw:()=>mn,blepsquare:()=>Hn,bleptriangle:()=>pn,cycle:()=>Kn,noise:()=>VC,pinknoise:()=>bn,saw:()=>bC,square:()=>Ln,train:()=>pC,triangle:()=>Tn});var x=QA(QA(QA({},JI),YI),gC);function pC(A,I){return typeof A=="number"||J(A)?x.le(x.phasor(A,0),.5):x.le(x.phasor(A,I,0),.5)}function Kn(A,I){return typeof A=="number"||J(A)?x.sin(x.mul(2*Math.PI,x.phasor(A,0))):x.sin(x.mul(2*Math.PI,x.phasor(A,I,0)))}function bC(A,I){return typeof A=="number"||J(A)?x.sub(x.mul(2,x.phasor(A,0)),1):x.sub(x.mul(2,x.phasor(A,I,0)),1)}function Ln(A,I){return typeof A=="number"||J(A)?x.sub(x.mul(2,pC(A)),1):x.sub(x.mul(2,pC(A,I)),1)}function Tn(A,I){return typeof A=="number"||J(A)?x.mul(2,x.sub(.5,x.abs(bC(A)))):x.mul(2,x.sub(.5,x.abs(bC(A,I))))}function mn(A,I){let C=!(typeof A=="number"||J(A))?I:A;return c("blepsaw",{},[C])}function Hn(A,I){let C=!(typeof A=="number"||J(A))?I:A;return c("blepsquare",{},[C])}function pn(A,I){let C=!(typeof A=="number"||J(A))?I:A;return c("bleptriangle",{},[C])}function VC(A){return typeof A>"u"?x.sub(x.mul(2,x.rand()),1):x.sub(x.mul(2,x.rand(A)),1)}function bn(A){return typeof A>"u"?x.pink(VC()):x.pink(VC(A))}var Vn=class extends rs{constructor(){super()}},d=Rs(QA(QA(QA(QA(QA(QA(QA({},JI),si),ri),gC),YI),ai),cg),{const:ei,in:Di}),kI={CREATE_NODE:0,DELETE_NODE:1,APPEND_CHILD:2,SET_PROPERTY:3,ACTIVATE_ROOTS:4,COMMIT_UPDATES:5},Zn=class{constructor(){this.nodeMap=new Map,this.currentActiveRoots=new Set,this.clear()}clear(){this.nodesAdded=0,this.nodesRemoved=0,this.edgesAdded=0,this.propsWritten=0,this.batch={createNode:[],deleteNode:[],appendChild:[],setProperty:[],activateRoots:[],commitUpdates:[]}}getNodeMap(){return this.nodeMap}getTerminalGeneration(){return 4}createNode(A,I){this.nodesAdded++,this.batch.createNode.push([kI.CREATE_NODE,A,I])}deleteNode(A){this.nodesRemoved++,this.batch.deleteNode.push([kI.DELETE_NODE,A])}appendChild(A,I){this.edgesAdded++,this.batch.appendChild.push([kI.APPEND_CHILD,A,I])}setProperty(A,I,g){this.propsWritten++,this.batch.setProperty.push([kI.SET_PROPERTY,A,I,g])}activateRoots(A){A.length===this.currentActiveRoots.size&&A.every(g=>this.currentActiveRoots.has(g))||(this.batch.activateRoots.push([kI.ACTIVATE_ROOTS,A]),this.currentActiveRoots=new Set(A))}commitUpdates(){this.batch.commitUpdates.push([kI.COMMIT_UPDATES])}getPackedInstructions(){return[...this.batch.createNode,...this.batch.deleteNode,...this.batch.appendChild,...this.batch.setProperty,...this.batch.activateRoots,...this.batch.commitUpdates]}};function wB(){return typeof performance>"u"?Date.now():performance.now()}var qn=class{constructor(A){this._delegate=new Zn,this._sendMessage=A,this._nextRefId=0}createRef(A,I,g){let C=`__refKey:${this._nextRefId++}`,Q=c(A,Object.assign({key:C},I),g);return[Q,E=>{if(!this._delegate.nodeMap.has(Q.hash))throw new Error("Cannot update a ref that has not been mounted; make sure you render your node first");const i=this._delegate.nodeMap.get(Q.hash);this._delegate.clear(),gi(this._delegate,Q.hash,i.props,E),this._delegate.commitUpdates();const o=this._delegate.getPackedInstructions();return Promise.resolve(this._sendMessage(o))}]}render(...A){const I=wB();this._delegate.clear(),_s(this._delegate,A.map(r));const g=wB(),C=this._delegate.getPackedInstructions();return Promise.resolve(this._sendMessage(C)).then(Q=>({result:Q,nodesAdded:this._delegate.nodesAdded,edgesAdded:this._delegate.edgesAdded,propsWritten:this._delegate.propsWritten,elapsedTimeMs:g-I}))}};function Wn(A,I){var g={};for(var C in A)Object.prototype.hasOwnProperty.call(A,C)&&I.indexOf(C)<0&&(g[C]=A[C]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,C=Object.getOwnPropertySymbols(A);QA())))}(A,I,g)}var r,X=A=>{throw new q(A.O.S.P.name+" instance already deleted")},m=!1,x=()=>{},e=(A,I,g)=>I===g?A:void 0===g.U||null===(A=e(A,I,g.U))?null:g.pa(A),z={},P=[],p=()=>{for(;P.length;){var A=P.pop();A.O.aa=!1,A.delete()}},u={},v=(A,I)=>{if(!I.S||!I.R)throw new W("makeClassHandle requires ptr and ptrType");if(!!I.V!=!!I.T)throw new W("Both smartPtrType and smartPtr must be specified");return I.count={value:1},$(Object.create(A,{O:{value:I,writable:!0}}))},$=A=>"undefined"==typeof FinalizationRegistry?($=A=>A,A):(m=new FinalizationRegistry((A=>{--(A=A.O).count.value,0===A.count.value&&(A.T?A.V.Z(A.T):A.S.P.Z(A.R))})),x=A=>{m.unregister(A)},($=A=>{var I=A.O;return I.T&&m.register(A,{O:I},A),A})(A));function _(){}var AA=(A,I)=>Object.defineProperty(I,"name",{value:A}),IA=(A,I,g)=>{if(void 0===A[I].Y){var C=A[I];A[I]=function(){if(!A[I].Y.hasOwnProperty(arguments.length))throw new q(`Function \'${g}\' called with an invalid number of arguments (${arguments.length}) - expects one of (${A[I].Y})!`);return A[I].Y[arguments.length].apply(this,arguments)},A[I].Y=[],A[I].Y[C.ea]=C}};function gA(A,I,g,C,Q,B,E,D){this.name=A,this.constructor=I,this.ba=g,this.Z=C,this.U=Q,this.qa=B,this.da=E,this.pa=D,this.va=[]}var CA=(A,I,g)=>{for(;I!==g;){if(!I.da)throw new q(`Expected null or instance of ${g.name}, got an instance of ${I.name}`);A=I.da(A),I=I.U}return A};function QA(A,I){if(null===I){if(this.ha)throw new q(`null is not a valid ${this.name}`);return 0}if(!I.O)throw new q(`Cannot pass "${TA(I)}" as a ${this.name}`);if(!I.O.R)throw new q(`Cannot pass deleted object as a pointer of type ${this.name}`);return CA(I.O.R,I.O.S.P,this.P)}function BA(A,I){if(null===I){if(this.ha)throw new q(`null is not a valid ${this.name}`);if(this.ga){var g=this.wa();return null!==A&&A.push(this.Z,g),g}return 0}if(!I||!I.O)throw new q(`Cannot pass "${TA(I)}" as a ${this.name}`);if(!I.O.R)throw new q(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.fa&&I.O.S.fa)throw new q(`Cannot convert argument of type ${I.O.V?I.O.V.name:I.O.S.name} to parameter type ${this.name}`);if(g=CA(I.O.R,I.O.S.P,this.P),this.ga){if(void 0===I.O.T)throw new q("Passing raw pointer to smart pointer is illegal");switch(this.ya){case 0:if(I.O.V!==this)throw new q(`Cannot convert argument of type ${I.O.V?I.O.V.name:I.O.S.name} to parameter type ${this.name}`);g=I.O.T;break;case 1:g=I.O.T;break;case 2:if(I.O.V===this)g=I.O.T;else{var C=I.clone();g=this.xa(g,LA((()=>C.delete()))),null!==A&&A.push(this.Z,g)}break;default:throw new q("Unsupporting sharing policy")}}return g}function EA(A,I){if(null===I){if(this.ha)throw new q(`null is not a valid ${this.name}`);return 0}if(!I.O)throw new q(`Cannot pass "${TA(I)}" as a ${this.name}`);if(!I.O.R)throw new q(`Cannot pass deleted object as a pointer of type ${this.name}`);if(I.O.S.fa)throw new q(`Cannot convert argument of type ${I.O.S.name} to parameter type ${this.name}`);return CA(I.O.R,I.O.S.P,this.P)}function DA(A){return this.fromWireType(F[A>>2])}function iA(A,I,g,C,Q,B,E,D,i,w,R){this.name=A,this.P=I,this.ha=g,this.fa=C,this.ga=Q,this.ua=B,this.ya=E,this.ma=D,this.wa=i,this.xa=w,this.Z=R,Q||void 0!==I.U?this.toWireType=BA:(this.toWireType=C?QA:EA,this.W=null)}var wA,RA,oA=[],NA=A=>{var I=oA[A];return I||(A>=oA.length&&(oA.length=A+1),oA[A]=I=wA.get(A)),I},GA=(A,I)=>{var g=(A=d(A)).includes("j")?((A,I)=>{var g=[];return function(){if(g.length=0,Object.assign(g,arguments),A.includes("j")){var Q=C["dynCall_"+A];Q=g&&g.length?Q.apply(null,[I].concat(g)):Q.call(null,I)}else Q=NA(I).apply(null,g);return Q}})(A,I):NA(I);if("function"!=typeof g)throw new q(`unknown function pointer with signature ${A}: ${I}`);return g},FA=A=>{A=AI(A);var I=d(A);return II(A),I},UA=(A,I)=>{var g=[],C={};throw I.forEach((function A(I){C[I]||b[I]||(t[I]?t[I].forEach(A):(g.push(I),C[I]=!0))})),new RA(`${A}: `+g.map(FA).join([", "]))},MA=(A,I)=>{for(var g=[],C=0;C>2]);return g},JA=A=>{for(;A.length;){var I=A.pop();A.pop()(I)}};function yA(A){for(var I=1;IE)throw new q("argTypes array size mismatch! Must at least get return value and \'this\' types!");var D=null!==I[1]&&null!==g,i=yA(I);for(g="void"!==I[0].name,C=[O,C,Q,JA,I[0],I[1]],Q=0;Q{A>=SA.ja&&0==--SA.get(A).na&&(SA.X[A]=void 0,SA.ia.push(A))},cA=A=>{if(!A)throw new q("Cannot use deleted val. handle = "+A);return SA.get(A).value},LA=A=>{switch(A){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:A={na:1,value:A};var I=SA.ia.pop()||SA.X.length;return SA.X[I]=A,I}};function lA(A){return this.fromWireType(G[A>>2])}for(var HA={name:"emscripten::val",fromWireType:A=>{var I=cA(A);return KA(A),I},toWireType:(A,I)=>LA(I),argPackAdvance:8,readValueFromPointer:lA,W:null},TA=A=>{if(null===A)return"null";var I=typeof A;return"object"===I||"array"===I||"function"===I?A.toString():""+A},ZA=(A,I)=>{switch(I){case 4:return function(A){return this.fromWireType(U[A>>2])};case 8:return function(A){return this.fromWireType(M[A>>3])};default:throw new TypeError(`invalid float width (${I}): ${A}`)}},VA=(A,I,g)=>{switch(I){case 1:return g?A=>w[A>>0]:A=>R[A>>0];case 2:return g?A=>o[A>>1]:A=>N[A>>1];case 4:return g?A=>G[A>>2]:A=>F[A>>2];default:throw new TypeError(`invalid integer width (${I}): ${A}`)}},qA="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,WA="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,dA=(A,I)=>{for(var g=A>>1,C=g+I/2;!(g>=C)&&N[g];)++g;if(32<(g<<=1)-A&&WA)return WA.decode(R.subarray(A,g));for(g="",C=0;!(C>=I/2);++C){var Q=o[A+2*C>>1];if(0==Q)break;g+=String.fromCharCode(Q)}return g},jA=(A,I,g)=>{if(g??=2147483647,2>g)return 0;var C=I;g=(g-=2)<2*A.length?g/2:A.length;for(var Q=0;Q>1]=A.charCodeAt(Q),I+=2;return o[I>>1]=0,I-C},bA=A=>2*A.length,tA=(A,I)=>{for(var g=0,C="";!(g>=I/4);){var Q=G[A+4*g>>2];if(0==Q)break;++g,65536<=Q?(Q-=65536,C+=String.fromCharCode(55296|Q>>10,56320|1023&Q)):C+=String.fromCharCode(Q)}return C},OA=(A,I,g)=>{if(g??=2147483647,4>g)return 0;var C=I;g=C+g-4;for(var Q=0;Q=B)B=65536+((1023&B)<<10)|1023&A.charCodeAt(++Q);if(G[I>>2]=B,(I+=4)+4>g)break}return G[I>>2]=0,I-C},nA=A=>{for(var I=0,g=0;g=C&&++g,I+=4}return I},fA=(A,I)=>{var g=b[A];if(void 0===g)throw A=I+" has unknown type "+FA(A),new q(A);return g},rA=(A,I,g)=>{var C=[];return A=A.toWireType(C,g),C.length&&(F[I>>2]=LA(C)),A},XA=[],mA={},xA=A=>{var I=mA[A];return void 0===I?d(A):I},eA=()=>"object"==typeof globalThis?globalThis:Function("return this")(),zA=A=>(zA=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return A=>crypto.getRandomValues(A);c("initRandomDevice")})())(A),PA=Array(256),pA=0;256>pA;++pA)PA[pA]=String.fromCharCode(pA);V=PA,q=C.BindingError=class extends Error{constructor(A){super(A),this.name="BindingError"}},W=C.InternalError=class extends Error{constructor(A){super(A),this.name="InternalError"}},Object.assign(_.prototype,{isAliasOf:function(A){if(!(this instanceof _&&A instanceof _))return!1;var I=this.O.S.P,g=this.O.R;A.O=A.O;var C=A.O.S.P;for(A=A.O.R;I.U;)g=I.da(g),I=I.U;for(;C.U;)A=C.da(A),C=C.U;return I===C&&g===A},clone:function(){if(this.O.R||X(this),this.O.ca)return this.O.count.value+=1,this;var A=$,I=Object,g=I.create,C=Object.getPrototypeOf(this),Q=this.O;return(A=A(g.call(I,C,{O:{value:{count:Q.count,aa:Q.aa,ca:Q.ca,R:Q.R,S:Q.S,T:Q.T,V:Q.V}}}))).O.count.value+=1,A.O.aa=!1,A},delete(){if(this.O.R||X(this),this.O.aa&&!this.O.ca)throw new q("Object already scheduled for deletion");x(this);var A=this.O;--A.count.value,0===A.count.value&&(A.T?A.V.Z(A.T):A.S.P.Z(A.R)),this.O.ca||(this.O.T=void 0,this.O.R=void 0)},isDeleted:function(){return!this.O.R},deleteLater:function(){if(this.O.R||X(this),this.O.aa&&!this.O.ca)throw new q("Object already scheduled for deletion");return P.push(this),1===P.length&&r&&r(p),this.O.aa=!0,this}}),C.getInheritedInstanceCount=()=>Object.keys(u).length,C.getLiveInheritedInstances=()=>{var A,I=[];for(A in u)u.hasOwnProperty(A)&&I.push(u[A]);return I},C.flushPendingDeletes=p,C.setDelayFunction=A=>{r=A,P.length&&r&&r(p)},Object.assign(iA.prototype,{ra(A){return this.ma&&(A=this.ma(A)),A},la(A){this.Z?.(A)},argPackAdvance:8,readValueFromPointer:DA,fromWireType:function(A){function I(){return this.ga?v(this.P.ba,{S:this.ua,R:g,V:this,T:A}):v(this.P.ba,{S:this,R:A})}var g=this.ra(A);if(!g)return this.la(A),null;var C=((A,I)=>{if(void 0===I)throw new q("ptr should not be undefined");for(;A.U;)I=A.da(I),A=A.U;return u[I]})(this.P,g);if(void 0!==C)return 0===C.O.count.value?(C.O.R=g,C.O.T=A,C.clone()):(C=C.clone(),this.la(A),C);if(C=this.P.qa(g),!(C=z[C]))return I.call(this);C=this.fa?C.oa:C.pointerType;var Q=e(g,this.P,C.P);return null===Q?I.call(this):this.ga?v(C.P.ba,{S:C,R:Q,V:this,T:A}):v(C.P.ba,{S:C,R:Q})}}),RA=C.UnboundTypeError=(hA=Error,(aA=AA(kA="UnboundTypeError",(function(A){this.name=kA,this.message=A,void 0!==(A=Error(A).stack)&&(this.stack=this.toString()+"\\n"+A.replace(/^Error(:[^\\n]*)?\\n/,""))}))).prototype=Object.create(hA.prototype),aA.prototype.constructor=aA,aA.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},aA),SA.X.push({value:void 0},{value:null},{value:!0},{value:!1}),Object.assign(SA,{ja:SA.X.length}),C.count_emval_handles=()=>{for(var A=0,I=SA.ja;I{var C=new Z(A);throw F[C.R+16>>2]=0,F[C.R+4>>2]=I,F[C.R+8>>2]=g,A},x:()=>{},C:(A,I,g,C)=>{f(A,{name:I=d(I),fromWireType:function(A){return!!A},toWireType:function(A,I){return I?g:C},argPackAdvance:8,readValueFromPointer:function(A){return this.fromWireType(R[A])},W:null})},H:(A,I,g,Q,B,E,D,i,w,R,o,N,G)=>{o=d(o),E=GA(B,E),i&&=GA(D,i),R&&=GA(w,R),G=GA(N,G);var F=(A=>{if(void 0===A)return"_unknown";var I=(A=A.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=I&&57>=I?`_${A}`:A})(o);((A,I)=>{if(C.hasOwnProperty(A))throw new q(`Cannot register public name \'${A}\' twice`);C[A]=I})(F,(function(){UA(`Cannot construct ${o} due to unbound types`,[Q])})),n([A,I,g],Q?[Q]:[],(function(I){if(I=I[0],Q)var g=I.P,B=g.ba;else B=_.prototype;I=AA(o,(function(){if(Object.getPrototypeOf(this)!==D)throw new q("Use \'new\' to construct "+o);if(void 0===N.$)throw new q(o+" has no accessible constructor");var A=N.$[arguments.length];if(void 0===A)throw new q(`Tried to invoke ctor of ${o} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(N.$).toString()}) parameters instead!`);return A.apply(this,arguments)}));var D=Object.create(B,{constructor:{value:I}});I.prototype=D;var w,N=new gA(o,I,D,G,g,E,i,R);N.U&&((w=N.U).ka??(w.ka=[]),N.U.ka.push(N));return g=new iA(o,N,!0,!1,!1),w=new iA(o+"*",N,!1,!1,!1),B=new iA(o+" const*",N,!1,!0,!1),z[A]={pointerType:w,oa:B},((A,I)=>{if(!C.hasOwnProperty(A))throw new W("Replacing nonexistant public symbol");C[A]=I,C[A].ea=void 0})(F,I),[g,w,B]}))},G:(A,I,g,C,Q,B)=>{var E=MA(I,g);Q=GA(C,Q),n([],[A],(function(A){var g=`constructor ${(A=A[0]).name}`;if(void 0===A.P.$&&(A.P.$=[]),void 0!==A.P.$[I-1])throw new q(`Cannot register multiple constructors with identical number of parameters (${I-1}) for class \'${A.name}\'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return A.P.$[I-1]=()=>{UA(`Cannot construct ${A.name} due to unbound types`,E)},n([],E,(C=>(C.splice(1,0,null),A.P.$[I-1]=sA(g,C,null,Q,B),[]))),[]}))},e:(A,I,g,C,Q,B,E,D,i)=>{var w=MA(g,C);I=(A=>{const I=(A=A.trim()).indexOf("(");return-1!==I?A.substr(0,I):A})(I=d(I)),B=GA(Q,B),n([],[A],(function(A){function C(){UA(`Cannot call ${Q} due to unbound types`,w)}var Q=`${(A=A[0]).name}.${I}`;I.startsWith("@@")&&(I=Symbol[I.substring(2)]),D&&A.P.va.push(I);var R=A.P.ba,o=R[I];return void 0===o||void 0===o.Y&&o.className!==A.name&&o.ea===g-2?(C.ea=g-2,C.className=A.name,R[I]=C):(IA(R,I,Q),R[I].Y[g-2]=C),n([],w,(function(C){return C=sA(Q,C,A,B,E,i),void 0===R[I].Y?(C.ea=g-2,R[I]=C):R[I].Y[g-2]=C,[]})),[]}))},B:A=>f(A,HA),u:(A,I,g)=>{f(A,{name:I=d(I),fromWireType:A=>A,toWireType:(A,I)=>I,argPackAdvance:8,readValueFromPointer:ZA(I,g),W:null})},g:(A,I,g,C,Q)=>{if(I=d(I),-1===Q&&(Q=4294967295),Q=A=>A,0===C){var B=32-8*g;Q=A=>A<>>B}var E=I.includes("unsigned")?function(A,I){return I>>>0}:function(A,I){return I};f(A,{name:I,fromWireType:Q,toWireType:E,argPackAdvance:8,readValueFromPointer:VA(I,g,0!==C),W:null})},b:(A,I,g)=>{function C(A){return new Q(w.buffer,F[A+4>>2],F[A>>2])}var Q=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][I];f(A,{name:g=d(g),fromWireType:C,argPackAdvance:8,readValueFromPointer:C},{sa:!0})},t:(A,I)=>{var g="std::string"===(I=d(I));f(A,{name:I,fromWireType:function(A){var I=F[A>>2],C=A+4;if(g)for(var Q=C,B=0;B<=I;++B){var E=C+B;if(B==I||0==R[E]){if(Q){var D=Q,i=R,w=D+(E-Q);for(Q=D;i[Q]&&!(Q>=w);)++Q;if(16(o=224==(240&o)?(15&o)<<12|N<<6|G:(7&o)<<18|N<<12|G<<6|63&i[D++])?w+=String.fromCharCode(o):(o-=65536,w+=String.fromCharCode(55296|o>>10,56320|1023&o))}}else w+=String.fromCharCode(o)}D=w}}else D="";if(void 0===U)var U=D;else U+=String.fromCharCode(0),U+=D;Q=E+1}}else{for(U=Array(I),B=0;B=E?Q++:2047>=E?Q+=2:55296<=E&&57343>=E?(Q+=4,++C):Q+=3}else Q=I.length;if(E=(Q=_A(4+(C=Q)+1))+4,F[Q>>2]=C,g&&B){if(B=E,E=C+1,C=R,0=i)i=65536+((1023&i)<<10)|1023&I.charCodeAt(++D);if(127>=i){if(B>=E)break;C[B++]=i}else{if(2047>=i){if(B+1>=E)break;C[B++]=192|i>>6}else{if(65535>=i){if(B+2>=E)break;C[B++]=224|i>>12}else{if(B+3>=E)break;C[B++]=240|i>>18,C[B++]=128|i>>12&63}C[B++]=128|i>>6&63}C[B++]=128|63&i}}C[B]=0}}else if(B)for(B=0;B{if(g=d(g),2===I)var C=dA,Q=jA,B=bA,E=()=>N,D=1;else 4===I&&(C=tA,Q=OA,B=nA,E=()=>F,D=2);f(A,{name:g,fromWireType:A=>{for(var g,Q=F[A>>2],B=E(),i=A+4,w=0;w<=Q;++w){var R=A+4+w*I;w!=Q&&0!=B[R>>D]||(i=C(i,R-i),void 0===g?g=i:(g+=String.fromCharCode(0),g+=i),i=R+I)}return II(A),g},toWireType:(A,C)=>{if("string"!=typeof C)throw new q(`Cannot pass non-string to C++ string type ${g}`);var E=B(C),i=_A(4+E+I);return F[i>>2]=E>>D,Q(C,i+4,E+I),null!==A&&A.push(II,i),i},argPackAdvance:8,readValueFromPointer:lA,W(A){II(A)}})},D:(A,I)=>{f(A,{ta:!0,name:I=d(I),argPackAdvance:0,fromWireType:()=>{},toWireType:()=>{}})},k:(A,I,g)=>(A=cA(A),I=fA(I,"emval::as"),rA(I,g,A)),p:(A,I,g,C)=>(A=XA[A])(null,I=cA(I),g,C),s:(A,I,g,C,Q)=>(A=XA[A])(I=cA(I),I[g=xA(g)],C,Q),a:KA,j:A=>0===A?LA(eA()):(A=xA(A),LA(eA()[A])),h:(A,I,g)=>{I=((A,I)=>{for(var g=Array(A),C=0;C>2],"parameter "+C);return g})(A,I);var C=I.shift();A--;var Q="return function (obj, func, destructorsRef, args) {\\n",B=0,E=[];0===g&&E.push("obj");for(var D=["retType"],i=[C],w=0;wA.name)).join(", ")}) => ${C.name}>`,(A=>{var I=XA.length;return XA.push(A),I})(AA(g,A))},i:(A,I)=>(A=cA(A),I=cA(I),LA(A[I])),f:A=>{4(A=cA(A))instanceof(I=cA(I)),F:A=>"number"==typeof(A=cA(A)),E:A=>"string"==typeof(A=cA(A)),w:()=>LA([]),l:A=>LA(xA(A)),v:()=>LA({}),d:A=>{var I=cA(A);JA(I),KA(A)},n:(A,I,g)=>{A=cA(A),I=cA(I),g=cA(g),A[I]=g},c:(A,I)=>(A=(A=fA(A,"_emval_take_value")).readValueFromPointer(I),LA(A)),q:()=>{c("")},A:(A,I,g)=>R.copyWithin(A,I,I+g),z:A=>{var I=R.length;if(2147483648<(A>>>=0))return!1;for(var g=1;4>=g;g*=2){var C=I*(1+.2/g);C=Math.min(C,A+100663296);var Q=Math;C=Math.max(A,C);A:{Q=(Q.min.call(Q,2147483648,C+(65536-C%65536)%65536)-i.buffer.byteLength+65535)/65536;try{i.grow(Q),y();var B=1;break A}catch(A){}B=void 0}if(B)return!0}return!1},y:(A,I)=>(zA(R.subarray(A,A+I)),0)},$A=function(){function A(A){return $A=A.exports,i=$A.I,y(),wA=$A.L,s.unshift($A.J),a--,C.monitorRunDependencies?.(a),0==a&&(null!==S&&(clearInterval(S),S=null),K&&(A=K,K=null,A())),$A}var I={a:vA};if(a++,C.monitorRunDependencies?.(a),C.instantiateWasm)try{return C.instantiateWasm(I,A)}catch(A){D(`Module.instantiateWasm callback failed with error: ${A}`),g(A)}return I=function(A){if(L==L&&E)var I=new Uint8Array(E);else{if(l(I=L)){I=atob(I.slice(37));for(var g=new Uint8Array(I.length),C=0;CModule));';class vn extends Vn{initialize(I,g={},C=16){return BI(this,void 0,void 0,function*(){$I(typeof I=="object"&&I!==null,"First argument to initialize must be a valid AudioContext instance."),$I(typeof g=="object"&&g!==null,"The optional second argument to initialize must be an object."),typeof I._elemWorkletRegistry!="object"&&(I._elemWorkletRegistry={});const Q=I._elemWorkletRegistry;if(!Q.hasOwnProperty(hC)){const B=new Blob([xn,jn],{type:"text/javascript"}),E=URL.createObjectURL(B);if(!I.audioWorklet)throw new Error("BaseAudioContext.audioWorklet is missing; are you running in a secure context (https)?");yield I.audioWorklet.addModule(E),Q[hC]=!0}return this._promiseMap=new Map,this._nextRequestId=0,this._worklet=new AudioWorkletNode(I,`ElementaryAudioWorkletProcessor@${hC}`,Object.assign({numberOfInputs:0,numberOfOutputs:1,outputChannelCount:[2]},g)),yield new Promise((B,E)=>{this._worklet.port.onmessage=i=>{const[o,e]=i.data;if(o==="load")return this._renderer=new qn(t=>BI(this,void 0,void 0,function*(){return yield this._sendWorkletRequest("renderInstructions",{batch:t})})),B(this._worklet),this.emit(o,e);if(o==="events")return e.forEach(t=>{this.emit(t.type,t.event)});if(o==="reply"){const{requestId:t,result:D}=e,{resolve:l,reject:a}=this._promiseMap.get(t);return this._promiseMap.delete(t),l(D)}},this._timer=window.setInterval(()=>{this._worklet.port.postMessage({requestType:"processQueuedEvents"})},C)})})}_sendWorkletRequest(I,g){$I(this._worklet,"Can't send request before worklet is ready. Have you initialized your WebRenderer instance?");let C=this._nextRequestId++;return this._worklet.port.postMessage({requestId:C,requestType:I,payload:g}),new Promise((Q,B)=>{this._promiseMap.set(C,{resolve:Q,reject:B})})}createRef(I,g,C){return this._renderer.createRef(I,g,C)}render(...I){return BI(this,void 0,void 0,function*(){const g=yield this._renderer.render(...I),{result:C}=g,Q=Wn(g,["result"]);return C.success?Promise.resolve(Q):Promise.reject(C)})}updateVirtualFileSystem(I){return BI(this,void 0,void 0,function*(){return $I(typeof I=="object"&&I!==null,"Virtual file system must be an object mapping string type keys to Array|Float32Array type values"),Object.keys(I).forEach(function(C){const Q=typeof I[C]=="object"&&(Array.isArray(I[C])||I[C]instanceof Float32Array);$I(Q,"Virtual file system must be an object mapping string type keys to Array|Float32Array type values")}),yield this._sendWorkletRequest("updateSharedResourceMap",{resources:I})})}pruneVirtualFileSystem(){return BI(this,void 0,void 0,function*(){return yield this._sendWorkletRequest("pruneVirtualFileSystem",{})})}listVirtualFileSystem(){return BI(this,void 0,void 0,function*(){return yield this._sendWorkletRequest("listVirtualFileSystem",{})})}reset(){return BI(this,void 0,void 0,function*(){return yield this._sendWorkletRequest("reset",{})})}setCurrentTime(I){return BI(this,void 0,void 0,function*(){return yield this._sendWorkletRequest("setCurrentTime",{time:I})})}setCurrentTimeMs(I){return BI(this,void 0,void 0,function*(){return yield this._sendWorkletRequest("setCurrentTimeMs",{time:I})})}}const ZC=Ve?window:void 0;function Xn(A){var I;const g=zA(A);return(I=g==null?void 0:g.$el)!=null?I:g}function cB(...A){let I,g,C,Q;if(typeof A[0]=="string"||Array.isArray(A[0])?([g,C,Q]=A,I=ZC):[I,g,C,Q]=A,!I)return We;Array.isArray(g)||(g=[g]),Array.isArray(C)||(C=[C]);const B=[],E=()=>{B.forEach(t=>t()),B.length=0},i=(t,D,l,a)=>(t.addEventListener(D,l,a),()=>t.removeEventListener(D,l,a)),o=lI(()=>[Xn(I),zA(Q)],([t,D])=>{if(E(),!t)return;const l=qe(D)?{...D}:D;B.push(...g.flatMap(a=>C.map(R=>i(t,a,R,l))))},{immediate:!0,flush:"post"}),e=()=>{o(),E()};return be(e),e}const Ug=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fg="__vueuse_ssr_handlers__",zn=Pn();function Pn(){return fg in Ug||(Ug[fg]=Ug[fg]||{}),Ug[fg]}function _n(A,I){return zn[A]||I}function $n(A){return A==null?"any":A instanceof Set?"set":A instanceof Map?"map":A instanceof Date?"date":typeof A=="boolean"?"boolean":typeof A=="string"?"string":typeof A=="object"?"object":Number.isNaN(A)?"any":"number"}const Ar={boolean:{read:A=>A==="true",write:A=>String(A)},object:{read:A=>JSON.parse(A),write:A=>JSON.stringify(A)},number:{read:A=>Number.parseFloat(A),write:A=>String(A)},any:{read:A=>A,write:A=>String(A)},string:{read:A=>A,write:A=>String(A)},map:{read:A=>new Map(JSON.parse(A)),write:A=>JSON.stringify(Array.from(A.entries()))},set:{read:A=>new Set(JSON.parse(A)),write:A=>JSON.stringify(Array.from(A))},date:{read:A=>new Date(A),write:A=>A.toISOString()}},RB="vueuse-storage";function Ir(A,I,g,C={}){var Q;const{flush:B="pre",deep:E=!0,listenToStorageChanges:i=!0,writeDefaults:o=!0,mergeDefaults:e=!1,shallow:t,window:D=ZC,eventFilter:l,onError:a=W=>{console.error(W)},initOnMounted:R}=C,h=(t?$i:qA)(typeof I=="function"?I():I);if(!g)try{g=_n("getDefaultStorage",()=>{var W;return(W=ZC)==null?void 0:W.localStorage})()}catch(W){a(W)}if(!g)return h;const M=zA(I),k=$n(M),K=(Q=C.serializer)!=null?Q:Ar[k],{pause:T,resume:u}=Xe(h,()=>WA(h.value),{flush:B,deep:E,eventFilter:l});D&&i&&ze(()=>{g instanceof Storage?cB(D,"storage",JA):cB(D,RB,uI),R&&JA()}),R||JA();function O(W,BA){if(D){const DA={key:A,oldValue:W,newValue:BA,storageArea:g};D.dispatchEvent(g instanceof Storage?new StorageEvent("storage",DA):new CustomEvent(RB,{detail:DA}))}}function WA(W){try{const BA=g.getItem(A);if(W==null)O(BA,null),g.removeItem(A);else{const DA=K.write(W);BA!==DA&&(g.setItem(A,DA),O(BA,DA))}}catch(BA){a(BA)}}function LA(W){const BA=W?W.newValue:g.getItem(A);if(BA==null)return o&&M!=null&&g.setItem(A,K.write(M)),M;if(!W&&e){const DA=K.read(BA);return typeof e=="function"?e(DA,M):k==="object"&&!Array.isArray(DA)?{...M,...DA}:DA}else return typeof BA!="string"?BA:K.read(BA)}function JA(W){if(!(W&&W.storageArea!==g)){if(W&&W.key==null){h.value=M;return}if(!(W&&W.key!==A)){T();try{(W==null?void 0:W.newValue)!==K.write(h.value)&&(h.value=LA(W))}catch(BA){a(BA)}finally{W?zg(u):u()}}}}function uI(W){JA(W.detail)}return h}function gr(A,I="ref"){const g=gI({}),C=Jg({}),Q=Jg({}),B=Jg({});let E=!1;for(let o in A){const e=A[o];if(g[o]=kg(e!=null&&e.nostore?e.value:Ir(`${I}:${o}`,e.value),e.min,e.max),e!=null&&e.hidden)continue;const[t,D]=o.split("_");!t||!D||(B[t]=B[t]||{},B[t][D]=e)}function i(o){for(let e in A){let[t,D]=o.createRef("const",{value:g[e]},[]);C[e]=d.smooth(d.tau2pole(.01),t),Q[e]=D}E=!0}return lI(()=>({...g}),(o,e)=>{if(E)for(let t in g)o[t]!=e[t]&&Q[t]({value:g[t]})}),{controls:g,cv:C,setters:Q,groups:B,initRefs:i}}const li=[[1,1,1,1,1,1,1,1],[1,-1,1,-1,1,-1,1,-1],[1,1,-1,-1,1,1,-1,-1],[1,-1,-1,1,1,-1,-1,1],[1,1,1,1,-1,-1,-1,-1],[1,-1,1,-1,-1,1,-1,1],[1,1,-1,-1,-1,-1,1,1],[1,-1,-1,1,-1,1,1,-1]];function GC(A,...I){const g=I.length,C=Math.sqrt(1/g),Q=I.map(function(B,E){const i=A*((E+1)/g);return d.sdelay({size:i},B)});return li.map(function(B,E){return d.add(...B.map(function(i,o){return d.mul(i*C,Q[o])}))})}function NB(A,I,g,C,Q,...B){const E=B.length,i=Math.sqrt(1/E),o=d.mul(Q,.02);if(E!==8)throw new Error("Invalid FDN step!");const e=B.map(function(D,l){return d.add(D,d.mul(C,d.smooth(.105,d.tapIn({name:`${A}:fdn${l}`}))))});return li.map(function(D,l){return d.add(...D.map(function(a,R){return d.mul(a*i,e[R])}))}).map(function(D,l){const a=(k,K,T)=>d.add(k,d.mul(T,d.cycle(K))),R=k=>I*(k/1e3),h=d.mul(d.add(1,d.mul(3,g)),R((l+1)*17)),M=a(h,d.add(.1,d.mul(l,o)),R(2.5));return d.tapOut({name:`${A}:fdn${l}`},d.delay({size:R(750)},M,0,D))})}function Cr(A,I,g){const C=A.key,Q=A.sampleRate,B=d.sm(A.size),E=d.sm(A.decay),i=d.sm(A.mod),o=d.sm(A.mix),e=d.mul(.5,d.add(I,g)),t=d.mul(.5,d.sub(I,g)),D=[I,g,e,t],l=[...D,...D.map(O=>d.mul(-1,O))],a=O=>Q*(O/1e3),R=GC(a(43),...l),h=GC(a(97),...R),M=GC(a(117),...h),k=NB(`${C}:d4`,Q,B,.004,i,...M),K=NB(`${C}:r0`,Q,B,E,i,...k),T=d.mul(.25,d.add(K[0],K[2],K[4],K[6])),u=d.mul(.25,d.add(K[1],K[3],K[5],K[7]));return[d.select(o,T,I),d.select(o,u,g)]}const FC=["gate","midi","vel"];function Qr(A=8){const I=gI(Array(A).fill(null).map(()=>Object.fromEntries(FC.map(l=>[l,{value:0,ref:null,setter:null}])))),g=qA(!1);function C(l){I.forEach(a=>{FC.forEach(R=>{const[h,M]=l.createRef("const",{value:a[R].value},[]);a[R].ref=d.smooth(d.tau2pole(.001),h),a[R].setter=M})}),g.value=!0}const Q=qA(0);function B(l,a){if(a>0){const R=D(Q);E(R,{gate:1,midi:l,vel:a})}else i(I,l)}function E(l,a){if(!g.value)return;const R=I[l];Object.entries(a).forEach(([h,M])=>{var k,K;h in R&&M!==void 0&&(R[h].value=M,(K=(k=R[h]).setter)==null||K.call(k,{value:M}))})}function i(l,a){l.forEach((R,h)=>{R.midi.value===a&&E(h,{gate:0})})}function o(){I.forEach((l,a)=>E(a,{gate:0}))}function e(l){return Object.fromEntries(FC.map(a=>[a,t(l,a)]))}function t(l,a){return d.meter({name:`synth-voice-${l}-${a}`},I[l][a].ref||d.const({value:I[l][a].value}))}function D(l){const a=l.value;let R=a;do{if(I[R].gate.value===0)return l.value=(R+1)%I.length,R;R=(R+1)%I.length}while(R!==a);return l.value=(a+1)%I.length,a}return{voices:I,initVoices:C,updateVoice:E,cycleNote:B,stopAll:o,getVoiceParams:e}}function Br({gate:A,midi:I,vel:g},C){return d.mul(A,g,C.synth_vol,d.tanh(d.cycle(Er(I))))}const Er=A=>d.mul(440,d.pow(2,d.smooth(d.tau2pole(.001),d.div(d.sub(A,69),12)))),ir={synth_vol:{value:.5,min:0,max:1,step:.01},reverb_on:{value:1,min:0,max:1,step:1,hidden:!0},reverb_size:{value:.2,min:0,max:1,step:.01},reverb_decay:{value:.5,min:0,max:1,step:.01},reverb_mod:{value:.5,min:0,max:1,step:.01},reverb_mix:{value:.5,min:0,max:1,step:.01}},qC=gI({}),WC=gI({}),nI=gI({});function or(){const A=qA(!1),I=qA(!1);let g,C;const{controls:Q,cv:B,groups:E,initRefs:i}=gr(ir,"el"),{voices:o,cycleNote:e,initVoices:t,getVoiceParams:D}=Qr();async function l(){if(A.value)return;g=new(window.AudioContext||window.webkitAudioContext),g.state==="suspended"&&await g.resume(),C=new vn,(await C.initialize(g,{numberOfInputs:1,numberOfOutputs:1,outputChannelCount:[2]})).connect(g.destination),i(C),t(C),C.on("meter",u=>qC[u.source]={max:u.max,min:u.min}),C.on("scope",u=>WC[u.source]=Array.from(u==null?void 0:u.data[0].values())),C.on("fft",u=>nI[u.source]=[Array.from(u==null?void 0:u.data.real.values()),Array.from(u==null?void 0:u.data.imag.values())]),C.on("error",u=>console.log(u));const M=d.tanh(d.add(...o.map((u,O)=>Br(D(O),B)))),k=d.mul(0,d.meter({name:"sample-rate"},d.sr())),K=d.fft({name:"main",size:2048},d.scope({name:"main",size:512},d.add(k,M))),T=Cr({key:"srvb",sampleRate:48e3,size:B.reverb_size,decay:B.reverb_decay,mod:B.reverb_mod,mix:d.mul(B.reverb_mix,B.reverb_on)},K,K);C.render(...T),A.value=!0,I.value=!0}function a(h=57,M=1){I.value||l(),e(h,M)}function R(h=57){e(h,0)}return{controls:Q,groups:E,play:a,stop:R,initiated:A,started:I,meters:qC,scopes:WC,FFTs:nI,voices:o}}function wi(A=0,I=0,g=1,C=1){return I===void 0&&(I=Math.floor(A/12)+4),`hsla(${A%12*30},${g*100}%,${Math.abs(I+2)*8}%,${C})`}function tr(A,I,g){return wi(er(A),3,I,g)}function er(A,I=440){return 12*(Math.log(Number(A)/I)/Math.log(2))}const sr={__name:"ElemFFT",props:{name:{default:"main",type:String}},setup(A){const I=A,g=gI({sr:$A(()=>{var B;return((B=qC["sample-rate"])==null?void 0:B.max)||44100}),data:$A(()=>(nI==null?void 0:nI[I.name])||[[],[]]),freq:$A(()=>g.data[0].map((B,E)=>E*g.sr/(g.data[0].length||1))),colors:$A(()=>g.freq.map(B=>tr(B))),total:$A(()=>g.data[0].map((B,E)=>Math.log2(1+Math.abs(B)+Math.abs(g.data[1][E]))))});let C=qA(null);ng(Q),lI(()=>nI==null?void 0:nI[I.name],Q,{deep:!0});function Q(){if(!C.value||!(g!=null&&g.total))return;let B=C.value.getContext("2d");B.clearRect(0,0,C.value.width,C.value.height);for(let E=0;E(dA(),PA("canvas",{class:"max-w-full",ref_key:"canvas",ref:C,height:"512",width:"2048"},null,512))}},Dr={__name:"ElemScope",props:{name:{default:"main",type:String},color:{default:"currentColor",type:String},triggerLevel:{default:0,type:Number}},setup(A){const I=A,g=qA(null);let C=null;ng(()=>{g.value&&(g.value.width=g.value.clientWidth,g.value.height=g.value.clientHeight),Q()}),_g(()=>{B()});function Q(){C=requestAnimationFrame(i)}function B(){C&&cancelAnimationFrame(C)}function E(o,e){for(let t=0;te)return t;return 0}function i(){if(!g.value)return;const o=g.value.getContext("2d"),{width:e,height:t}=g.value,D=WC[I.name];if(!D||D.length<2){C=requestAnimationFrame(i);return}o.clearRect(0,0,e,t),o.strokeStyle=I.color,o.lineWidth=3;const l=E(D,I.triggerLevel),a=e/D.length;o.beginPath();for(let R=0;R(dA(),PA("canvas",{class:"w-full h-full",ref_key:"canvas",ref:g},null,512))}},nr={class:"flex flex-col items-center transition-all duration-500 ease-out select-none rounded-8 shadow-xl p-1 w-full h-full bg-444 text-white gap-4"},rr={class:"text-10px absolute -top-4 left-2 uppercase"},ar={class:"flex items-center"},lr={class:"flex flex-wrap gap-2 items-center"},wr={__name:"App",setup(A){const{play:I,stop:g,started:C,controls:Q,groups:B,voices:E}=or(),i=qA(57);return(o,e)=>(dA(),PA("div",nr,[pA(Dr),e[3]||(e[3]=EA("div",{class:"flex-1"},null,-1)),(dA(!0),PA(yA,null,sC(GA(B),(t,D)=>(dA(),PA("div",{class:"relative flex flex-wrap gap-2 border-1 rounded-xl",key:t},[EA("div",rr,mI(D),1),(dA(!0),PA(yA,null,sC(t,(l,a)=>(dA(),KC(sB,hE({class:"w-4em",key:a,modelValue:GA(Q)[`${D}_${a}`],"onUpdate:modelValue":R=>GA(Q)[`${D}_${a}`]=R,ref_for:!0},l,{param:a}),null,16,["modelValue","onUpdate:modelValue","param"]))),128))]))),128)),EA("div",ar,[pA(sB,{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=t=>i.value=t),min:10,max:120,step:1,param:"MIDI"},null,8,["modelValue"]),EA("button",{class:"text-2xl p-4 cursor-pointer border-2 rounded-2xl",onPointerdown:e[1]||(e[1]=t=>GA(I)(i.value)),onPointerup:e[2]||(e[2]=t=>GA(g)(i.value))},mI(GA(C)?"Press to play sound":"Start"),33)]),EA("div",lr,[(dA(!0),PA(yA,null,sC(GA(E),t=>(dA(),PA("div",{class:"p-2 flex-1 rounded-xl",key:t,style:jg({backgroundColor:GA(wi)(t.midi.value-9,3,void 0,t.gate.value?1:.1)})},null,4))),128))]),e[4]||(e[4]=EA("div",{class:"flex-1"},null,-1)),pA(sr)]))}};bt(wr).mount("#app"); +