Files
noctune-client/dist/assets/index-sEdWZnAM.js
T

9 lines
243 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var e=Object.defineProperty,t=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),n=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function r(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var i={},a=[],o=()=>{},s=()=>!1,c=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith(`onUpdate:`),u=Object.assign,d=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},f=Object.prototype.hasOwnProperty,p=(e,t)=>f.call(e,t),m=Array.isArray,h=e=>w(e)===`[object Map]`,g=e=>w(e)===`[object Set]`,_=e=>w(e)===`[object Date]`,v=e=>typeof e==`function`,y=e=>typeof e==`string`,b=e=>typeof e==`symbol`,x=e=>typeof e==`object`&&!!e,S=e=>(x(e)||v(e))&&v(e.then)&&v(e.catch),C=Object.prototype.toString,w=e=>C.call(e),ee=e=>w(e).slice(8,-1),te=e=>w(e)===`[object Object]`,T=e=>y(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,E=r(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),D=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ne=/-\w/g,O=D(e=>e.replace(ne,e=>e.slice(1).toUpperCase())),re=/\B([A-Z])/g,ie=D(e=>e.replace(re,`-$1`).toLowerCase()),ae=D(e=>e.charAt(0).toUpperCase()+e.slice(1)),oe=D(e=>e?`on${ae(e)}`:``),se=(e,t)=>!Object.is(e,t),ce=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},le=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ue=e=>{let t=parseFloat(e);return isNaN(t)?e:t},de,fe=()=>de||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function pe(e){if(m(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=y(r)?_e(r):pe(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(y(e)||x(e))return e}var me=/;(?![^(]*\))/g,he=/:([^]+)/,ge=/\/\*[^]*?\*\//g;function _e(e){let t={};return e.replace(ge,``).split(me).forEach(e=>{if(e){let n=e.split(he);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function k(e){let t=``;if(y(e))t=e;else if(m(e))for(let n=0;n<e.length;n++){let r=k(e[n]);r&&(t+=r+` `)}else if(x(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var ve=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,ye=r(ve);ve+``;function be(e){return!!e||e===``}function xe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Se(e[r],t[r]);return n}function Se(e,t){if(e===t)return!0;let n=_(e),r=_(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=b(e),r=b(t),n||r)return e===t;if(n=m(e),r=m(t),n||r)return n&&r?xe(e,t):!1;if(n=x(e),r=x(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!Se(e[n],t[n]))return!1}}return String(e)===String(t)}function Ce(e,t){return e.findIndex(e=>Se(e,t))}var we=e=>!!(e&&e.__v_isRef===!0),A=e=>y(e)?e:e==null?``:m(e)||x(e)&&(e.toString===C||!v(e.toString))?we(e)?A(e.value):JSON.stringify(e,Te,2):String(e),Te=(e,t)=>we(t)?Te(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ee(t,r)+` =>`]=n,e),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ee(e))}:b(t)?Ee(t):x(t)&&!m(t)&&!te(t)?String(t):t,Ee=(e,t=``)=>b(e)?`Symbol(${e.description??t})`:e,j,De=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&j&&(j.active?(this.parent=j,this.index=(j.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=j;try{return j=this,e()}finally{j=t}}}on(){++this._on===1&&(this.prevScope=j,j=this)}off(){if(this._on>0&&--this._on===0){if(j===this)j=this.prevScope;else{let e=j;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Oe(e){return new De(e)}function ke(){return j}function Ae(e,t=!1){j&&j.cleanups.push(e)}var M,je=new WeakSet,Me=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,j&&(j.active?j.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,je.has(this)&&(je.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ie(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ye(this),ze(this);let e=M,t=Ge;M=this,Ge=!0;try{return this.fn()}finally{Be(this),M=e,Ge=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Ue(e);this.deps=this.depsTail=void 0,Ye(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?je.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ve(this)&&this.run()}get dirty(){return Ve(this)}},Ne=0,Pe,Fe;function Ie(e,t=!1){if(e.flags|=8,t){e.next=Fe,Fe=e;return}e.next=Pe,Pe=e}function Le(){Ne++}function Re(){if(--Ne>0)return;if(Fe){let e=Fe;for(Fe=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Pe;){let t=Pe;for(Pe=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function ze(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Be(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Ue(r),We(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Ve(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(He(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function He(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Xe)||(e.globalVersion=Xe,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ve(e))))return;e.flags|=2;let t=e.dep,n=M,r=Ge;M=e,Ge=!0;try{ze(e);let n=e.fn(e._value);(t.version===0||se(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{M=n,Ge=r,Be(e),e.flags&=-3}}function Ue(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Ue(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function We(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var Ge=!0,Ke=[];function qe(){Ke.push(Ge),Ge=!1}function Je(){let e=Ke.pop();Ge=e===void 0?!0:e}function Ye(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=M;M=void 0;try{t()}finally{M=e}}}var Xe=0,Ze=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Qe=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!M||!Ge||M===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==M)t=this.activeLink=new Ze(M,this),M.deps?(t.prevDep=M.depsTail,M.depsTail.nextDep=t,M.depsTail=t):M.deps=M.depsTail=t,$e(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=M.depsTail,t.nextDep=void 0,M.depsTail.nextDep=t,M.depsTail=t,M.deps===t&&(M.deps=e)}return t}trigger(e){this.version++,Xe++,this.notify(e)}notify(e){Le();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Re()}}};function $e(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)$e(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var et=new WeakMap,tt=Symbol(``),nt=Symbol(``),rt=Symbol(``);function it(e,t,n){if(Ge&&M){let t=et.get(e);t||et.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Qe),r.map=t,r.key=n),r.track()}}function at(e,t,n,r,i,a){let o=et.get(e);if(!o){Xe++;return}let s=e=>{e&&e.trigger()};if(Le(),t===`clear`)o.forEach(s);else{let i=m(e),a=i&&T(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===rt||!b(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(rt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(tt)),h(e)&&s(o.get(nt)));break;case`delete`:i||(s(o.get(tt)),h(e)&&s(o.get(nt)));break;case`set`:h(e)&&s(o.get(tt));break}}Re()}function ot(e,t){let n=et.get(e);return n&&n.get(t)}function st(e){let t=N(e);return t===e?t:(it(t,`iterate`,rt),qt(e)?t:t.map(Xt))}function ct(e){return it(e=N(e),`iterate`,rt),e}function lt(e,t){return Kt(e)?Zt(Gt(e)?Xt(t):t):Xt(t)}var ut={__proto__:null,[Symbol.iterator](){return dt(this,Symbol.iterator,e=>lt(this,e))},concat(...e){return st(this).concat(...e.map(e=>m(e)?st(e):e))},entries(){return dt(this,`entries`,e=>(e[1]=lt(this,e[1]),e))},every(e,t){return pt(this,`every`,e,t,void 0,arguments)},filter(e,t){return pt(this,`filter`,e,t,e=>e.map(e=>lt(this,e)),arguments)},find(e,t){return pt(this,`find`,e,t,e=>lt(this,e),arguments)},findIndex(e,t){return pt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return pt(this,`findLast`,e,t,e=>lt(this,e),arguments)},findLastIndex(e,t){return pt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return pt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return ht(this,`includes`,e)},indexOf(...e){return ht(this,`indexOf`,e)},join(e){return st(this).join(e)},lastIndexOf(...e){return ht(this,`lastIndexOf`,e)},map(e,t){return pt(this,`map`,e,t,void 0,arguments)},pop(){return gt(this,`pop`)},push(...e){return gt(this,`push`,e)},reduce(e,...t){return mt(this,`reduce`,e,t)},reduceRight(e,...t){return mt(this,`reduceRight`,e,t)},shift(){return gt(this,`shift`)},some(e,t){return pt(this,`some`,e,t,void 0,arguments)},splice(...e){return gt(this,`splice`,e)},toReversed(){return st(this).toReversed()},toSorted(e){return st(this).toSorted(e)},toSpliced(...e){return st(this).toSpliced(...e)},unshift(...e){return gt(this,`unshift`,e)},values(){return dt(this,`values`,e=>lt(this,e))}};function dt(e,t,n){let r=ct(e),i=r[t]();return r!==e&&!qt(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var ft=Array.prototype;function pt(e,t,n,r,i,a){let o=ct(e),s=o!==e&&!qt(e),c=o[t];if(c!==ft[t]){let t=c.apply(e,a);return s?Xt(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,lt(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function mt(e,t,n,r){let i=ct(e),a=i!==e&&!qt(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=lt(e,t)),n.call(this,t,lt(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?lt(e,c):c}function ht(e,t,n){let r=N(e);it(r,`iterate`,rt);let i=r[t](...n);return(i===-1||i===!1)&&Jt(n[0])?(n[0]=N(n[0]),r[t](...n)):i}function gt(e,t,n=[]){qe(),Le();let r=N(e)[t].apply(e,n);return Re(),Je(),r}var _t=r(`__proto__,__v_isRef,__isVue`),vt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(b));function yt(e){b(e)||(e=String(e));let t=N(this);return it(t,`has`,e),t.hasOwnProperty(e)}var bt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Rt:Lt:i?It:Ft).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=m(e);if(!r){let e;if(a&&(e=ut[t]))return e;if(t===`hasOwnProperty`)return yt}let o=Reflect.get(e,t,P(e)?e:n);if((b(t)?vt.has(t):_t(t))||(r||it(e,`get`,t),i))return o;if(P(o)){let e=a&&T(t)?o:o.value;return r&&x(e)?Ut(e):e}return x(o)?r?Ut(o):Vt(o):o}},xt=class extends bt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=m(e)&&T(t);if(!this._isShallow){let e=Kt(i);if(!qt(n)&&!Kt(n)&&(i=N(i),n=N(n)),!a&&P(i)&&!P(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:p(e,t),s=Reflect.set(e,t,n,P(e)?e:r);return e===N(r)&&(o?se(n,i)&&at(e,`set`,t,n,i):at(e,`add`,t,n)),s}deleteProperty(e,t){let n=p(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&at(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!b(t)||!vt.has(t))&&it(e,`has`,t),n}ownKeys(e){return it(e,`iterate`,m(e)?`length`:tt),Reflect.ownKeys(e)}},St=class extends bt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Ct=new xt,wt=new St,Tt=new xt(!0),Et=e=>e,Dt=e=>Reflect.getPrototypeOf(e);function Ot(e,t,n){return function(...r){let i=this.__v_raw,a=N(i),o=h(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),d=n?Et:t?Zt:Xt;return!t&&it(a,`iterate`,c?nt:tt),u(Object.create(l),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function kt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function At(e,t){let n={get(n){let r=this.__v_raw,i=N(r),a=N(n);e||(se(n,a)&&it(i,`get`,n),it(i,`get`,a));let{has:o}=Dt(i),s=t?Et:e?Zt:Xt;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&it(N(t),`iterate`,tt),t.size},has(t){let n=this.__v_raw,r=N(n),i=N(t);return e||(se(t,i)&&it(r,`has`,t),it(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=N(a),s=t?Et:e?Zt:Xt;return!e&&it(o,`iterate`,tt),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return u(n,e?{add:kt(`add`),set:kt(`set`),delete:kt(`delete`),clear:kt(`clear`)}:{add(e){let n=N(this),r=Dt(n),i=N(e),a=!t&&!qt(e)&&!Kt(e)?i:e;return r.has.call(n,a)||se(e,a)&&r.has.call(n,e)||se(i,a)&&r.has.call(n,i)||(n.add(a),at(n,`add`,a,a)),this},set(e,n){!t&&!qt(n)&&!Kt(n)&&(n=N(n));let r=N(this),{has:i,get:a}=Dt(r),o=i.call(r,e);o||=(e=N(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?se(n,s)&&at(r,`set`,e,n,s):at(r,`add`,e,n),this},delete(e){let t=N(this),{has:n,get:r}=Dt(t),i=n.call(t,e);i||=(e=N(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&at(t,`delete`,e,void 0,a),o},clear(){let e=N(this),t=e.size!==0,n=e.clear();return t&&at(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Ot(r,e,t)}),n}function jt(e,t){let n=At(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(p(n,r)&&r in t?n:t,r,i)}var Mt={get:jt(!1,!1)},Nt={get:jt(!1,!0)},Pt={get:jt(!0,!1)},Ft=new WeakMap,It=new WeakMap,Lt=new WeakMap,Rt=new WeakMap;function zt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Bt(e){return e.__v_skip||!Object.isExtensible(e)?0:zt(ee(e))}function Vt(e){return Kt(e)?e:Wt(e,!1,Ct,Mt,Ft)}function Ht(e){return Wt(e,!1,Tt,Nt,It)}function Ut(e){return Wt(e,!0,wt,Pt,Lt)}function Wt(e,t,n,r,i){if(!x(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=Bt(e);if(a===0)return e;let o=i.get(e);if(o)return o;let s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function Gt(e){return Kt(e)?Gt(e.__v_raw):!!(e&&e.__v_isReactive)}function Kt(e){return!!(e&&e.__v_isReadonly)}function qt(e){return!!(e&&e.__v_isShallow)}function Jt(e){return e?!!e.__v_raw:!1}function N(e){let t=e&&e.__v_raw;return t?N(t):e}function Yt(e){return!p(e,`__v_skip`)&&Object.isExtensible(e)&&le(e,`__v_skip`,!0),e}var Xt=e=>x(e)?Vt(e):e,Zt=e=>x(e)?Ut(e):e;function P(e){return e?e.__v_isRef===!0:!1}function F(e){return $t(e,!1)}function Qt(e){return $t(e,!0)}function $t(e,t){return P(e)?e:new en(e,t)}var en=class{constructor(e,t){this.dep=new Qe,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:N(e),this._value=t?e:Xt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||qt(e)||Kt(e);e=n?e:N(e),se(e,t)&&(this._rawValue=e,this._value=n?e:Xt(e),this.dep.trigger())}};function I(e){return P(e)?e.value:e}var tn={get:(e,t,n)=>t===`__v_raw`?e:I(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return P(i)&&!P(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function nn(e){return Gt(e)?e:new Proxy(e,tn)}function rn(e){let t=m(e)?Array(e.length):{};for(let n in e)t[n]=on(e,n);return t}var an=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=b(t)?t:String(t),this._raw=N(e);let r=!0,i=e;if(!m(e)||b(this._key)||!T(this._key))do r=!Jt(i)||qt(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=I(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&P(this._raw[this._key])){let t=this._object[this._key];if(P(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return ot(this._raw,this._key)}};function on(e,t,n){return new an(e,t,n)}var sn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Qe(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Xe-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&M!==this)return Ie(this,!0),!0}get value(){let e=this.dep.track();return He(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function cn(e,t,n=!1){let r,i;return v(e)?r=e:(r=e.get,i=e.set),new sn(r,i,n)}var ln={},un=new WeakMap,dn=void 0;function fn(e,t=!1,n=dn){if(n){let t=un.get(n);t||un.set(n,t=[]),t.push(e)}}function pn(e,t,n=i){let{immediate:r,deep:a,once:s,scheduler:c,augmentJob:l,call:u}=n,f=e=>a?e:qt(e)||a===!1||a===0?mn(e,1):mn(e),p,h,g,_,y=!1,b=!1;if(P(e)?(h=()=>e.value,y=qt(e)):Gt(e)?(h=()=>f(e),y=!0):m(e)?(b=!0,y=e.some(e=>Gt(e)||qt(e)),h=()=>e.map(e=>{if(P(e))return e.value;if(Gt(e))return f(e);if(v(e))return u?u(e,2):e()})):h=v(e)?t?u?()=>u(e,2):e:()=>{if(g){qe();try{g()}finally{Je()}}let t=dn;dn=p;try{return u?u(e,3,[_]):e(_)}finally{dn=t}}:o,t&&a){let e=h,t=a===!0?1/0:a;h=()=>mn(e(),t)}let x=ke(),S=()=>{p.stop(),x&&x.active&&d(x.effects,p)};if(s&&t){let e=t;t=(...t)=>{e(...t),S()}}let C=b?Array(e.length).fill(ln):ln,w=e=>{if(!(!(p.flags&1)||!p.dirty&&!e))if(t){let e=p.run();if(a||y||(b?e.some((e,t)=>se(e,C[t])):se(e,C))){g&&g();let n=dn;dn=p;try{let n=[e,C===ln?void 0:b&&C[0]===ln?[]:C,_];C=e,u?u(t,3,n):t(...n)}finally{dn=n}}}else p.run()};return l&&l(w),p=new Me(h),p.scheduler=c?()=>c(w,!1):w,_=e=>fn(e,!1,p),g=p.onStop=()=>{let e=un.get(p);if(e){if(u)u(e,4);else for(let t of e)t();un.delete(p)}},t?r?w(!0):C=p.run():c?c(w.bind(null,!0),!0):p.run(),S.pause=p.pause.bind(p),S.resume=p.resume.bind(p),S.stop=S,S}function mn(e,t=1/0,n){if(t<=0||!x(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,P(e))mn(e.value,t,n);else if(m(e))for(let r=0;r<e.length;r++)mn(e[r],t,n);else if(g(e)||h(e))e.forEach(e=>{mn(e,t,n)});else if(te(e)){for(let r in e)mn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&mn(e[r],t,n)}return e}function hn(e,t,n,r){try{return r?e(...r):e()}catch(e){_n(e,t,n)}}function gn(e,t,n,r){if(v(e)){let i=hn(e,t,n,r);return i&&S(i)&&i.catch(e=>{_n(e,t,n)}),i}if(m(e)){let i=[];for(let a=0;a<e.length;a++)i.push(gn(e[a],t,n,r));return i}}function _n(e,t,n,r=!0){let a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||i;if(t){let r=t.parent,i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,a)===!1)return}r=r.parent}if(o){qe(),hn(o,null,10,[e,i,a]),Je();return}}vn(e,n,a,r,s)}function vn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var yn=[],bn=-1,xn=[],Sn=null,Cn=0,wn=Promise.resolve(),Tn=null;function En(e){let t=Tn||wn;return e?t.then(this?e.bind(this):e):t}function Dn(e){let t=bn+1,n=yn.length;for(;t<n;){let r=t+n>>>1,i=yn[r],a=Nn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function On(e){if(!(e.flags&1)){let t=Nn(e),n=yn[yn.length-1];!n||!(e.flags&2)&&t>=Nn(n)?yn.push(e):yn.splice(Dn(t),0,e),e.flags|=1,kn()}}function kn(){Tn||=wn.then(Pn)}function An(e){m(e)?xn.push(...e):Sn&&e.id===-1?Sn.splice(Cn+1,0,e):e.flags&1||(xn.push(e),e.flags|=1),kn()}function jn(e,t,n=bn+1){for(;n<yn.length;n++){let t=yn[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;yn.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function Mn(e){if(xn.length){let e=[...new Set(xn)].sort((e,t)=>Nn(e)-Nn(t));if(xn.length=0,Sn){Sn.push(...e);return}for(Sn=e,Cn=0;Cn<Sn.length;Cn++){let e=Sn[Cn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}Sn=null,Cn=0}}var Nn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Pn(e){try{for(bn=0;bn<yn.length;bn++){let e=yn[bn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),hn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;bn<yn.length;bn++){let e=yn[bn];e&&(e.flags&=-2)}bn=-1,yn.length=0,Mn(e),Tn=null,(yn.length||xn.length)&&Pn(e)}}var Fn=null,In=null;function Ln(e){let t=Fn;return Fn=e,In=e&&e.type.__scopeId||null,t}function Rn(e,t=Fn,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Yi(-1);let i=Ln(t),a;try{a=e(...n)}finally{Ln(i),r._d&&Yi(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function zn(e,t){if(Fn===null)return e;let n=Aa(Fn),r=e.dirs||=[];for(let e=0;e<t.length;e++){let[a,o,s,c=i]=t[e];a&&(v(a)&&(a={mounted:a,updated:a}),a.deep&&mn(o),r.push({dir:a,instance:n,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function Bn(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(qe(),gn(c,n,8,[e.el,s,e,t]),Je())}}function Vn(e,t){if(ma){let n=ma.provides,r=ma.parent&&ma.parent.provides;r===n&&(n=ma.provides=Object.create(r)),n[e]=t}}function Hn(e,t,n=!1){let r=ha();if(r||Qr){let i=Qr?Qr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&v(t)?t.call(r&&r.proxy):t}}function Un(){return!!(ha()||Qr)}var Wn=Symbol.for(`v-scx`),Gn=()=>Hn(Wn);function Kn(e,t,n){return qn(e,t,n)}function qn(e,t,n=i){let{immediate:r,deep:a,flush:s,once:c}=n,l=u({},n),d=t&&r||!t&&s!==`post`,f;if(xa){if(s===`sync`){let e=Gn();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=o,e.resume=o,e.pause=o,e}}let p=ma;l.call=(e,t,n)=>gn(e,p,t,n);let m=!1;s===`post`?l.scheduler=e=>{ki(e,p&&p.suspense)}:s!==`sync`&&(m=!0,l.scheduler=(e,t)=>{t?e():On(e)}),l.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=pn(e,t,l);return xa&&(f?f.push(h):d&&h()),h}function Jn(e,t,n){let r=this.proxy,i=y(e)?e.includes(`.`)?Yn(r,e):()=>r[e]:e.bind(r,r),a;v(t)?a=t:(a=t.handler,n=t);let o=va(this),s=qn(i,a.bind(r),n);return o(),s}function Yn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var Xn=Symbol(`_vte`),Zn=e=>e.__isTeleport,Qn=Symbol(`_leaveCb`);function $n(e,t){e.shapeFlag&6&&e.component?(e.transition=t,$n(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function er(e,t){return v(e)?u({name:e.name},t,{setup:e}):e}function tr(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}function nr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var rr=new WeakMap;function ir(e,t,n,r,a=!1){if(m(e)){e.forEach((e,i)=>ir(e,t&&(m(t)?t[i]:t),n,r,a));return}if(or(r)&&!a){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&ir(e,t,n,r.component.subTree);return}let o=r.shapeFlag&4?Aa(r.component):r.el,c=a?null:o,{i:l,r:u}=e,f=t&&t.r,h=l.refs===i?l.refs={}:l.refs,g=l.setupState,_=N(g),b=g===i?s:e=>nr(h,e)?!1:p(_,e),x=(e,t)=>!(t&&nr(h,t));if(f!=null&&f!==u){if(ar(t),y(f))h[f]=null,b(f)&&(g[f]=null);else if(P(f)){let e=t;x(f,e.k)&&(f.value=null),e.k&&(h[e.k]=null)}}if(v(u))hn(u,l,12,[c,h]);else{let t=y(u),r=P(u);if(t||r){let i=()=>{if(e.f){let n=t?b(u)?g[u]:h[u]:x(u)||!e.k?u.value:h[e.k];if(a)m(n)&&d(n,o);else if(m(n))n.includes(o)||n.push(o);else if(t)h[u]=[o],b(u)&&(g[u]=h[u]);else{let t=[o];x(u,e.k)&&(u.value=t),e.k&&(h[e.k]=t)}}else t?(h[u]=c,b(u)&&(g[u]=c)):r&&(x(u,e.k)&&(u.value=c),e.k&&(h[e.k]=c))};if(c){let t=()=>{i(),rr.delete(e)};t.id=-1,rr.set(e,t),ki(t,n)}else ar(e),i()}}}function ar(e){let t=rr.get(e);t&&(t.flags|=8,rr.delete(e))}fe().requestIdleCallback,fe().cancelIdleCallback;var or=e=>!!e.type.__asyncLoader,sr=e=>e.type.__isKeepAlive;function cr(e,t){ur(e,`a`,t)}function lr(e,t){ur(e,`da`,t)}function ur(e,t,n=ma){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(fr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)sr(e.parent.vnode)&&dr(r,t,n,e),e=e.parent}}function dr(e,t,n,r){let i=fr(t,e,r,!0);yr(()=>{d(r[t],i)},n)}function fr(e,t,n=ma,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{qe();let i=va(n),a=gn(t,n,e,r);return i(),Je(),a};return r?i.unshift(a):i.push(a),a}}var pr=e=>(t,n=ma)=>{(!xa||e===`sp`)&&fr(e,(...e)=>t(...e),n)},mr=pr(`bm`),hr=pr(`m`),gr=pr(`bu`),_r=pr(`u`),vr=pr(`bum`),yr=pr(`um`),br=pr(`sp`),xr=pr(`rtg`),Sr=pr(`rtc`);function Cr(e,t=ma){fr(`ec`,e,t)}var wr=`components`;function Tr(e,t){return Dr(wr,e,!0,t)||e}var Er=Symbol.for(`v-ndc`);function Dr(e,t,n=!0,r=!1){let i=Fn||ma;if(i){let n=i.type;if(e===wr){let e=ja(n,!1);if(e&&(e===t||e===O(t)||e===ae(O(t))))return n}let a=Or(i[e]||n[e],t)||Or(i.appContext[e],t);return!a&&r?n:a}}function Or(e,t){return e&&(e[t]||e[O(t)]||e[ae(O(t))])}function L(e,t,n,r){let i,a=n&&n[r],o=m(e);if(o||y(e)){let n=o&&Gt(e),r=!1,s=!1;n&&(r=!qt(e),s=Kt(e),e=ct(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?Zt(Xt(e[n])):Xt(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(x(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}var kr=e=>e?ba(e)?Aa(e):kr(e.parent):null,Ar=u(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>kr(e.parent),$root:e=>kr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zr(e),$forceUpdate:e=>e.f||=()=>{On(e.update)},$nextTick:e=>e.n||=En.bind(e.proxy),$watch:e=>Jn.bind(e)}),jr=(e,t)=>e!==i&&!e.__isScriptSetup&&p(e,t),Mr={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(t[0]!==`$`){let e=s[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else if(jr(r,t))return s[t]=1,r[t];else if(a!==i&&p(a,t))return s[t]=2,a[t];else if(p(o,t))return s[t]=3,o[t];else if(n!==i&&p(n,t))return s[t]=4,n[t];else Pr&&(s[t]=0)}let u=Ar[t],d,f;if(u)return t===`$attrs`&&it(e.attrs,`get`,``),u(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==i&&p(n,t))return s[t]=4,n[t];if(f=l.config.globalProperties,p(f,t))return f[t]},set({_:e},t,n){let{data:r,setupState:a,ctx:o}=e;return jr(a,t)?(a[t]=n,!0):r!==i&&p(r,t)?(r[t]=n,!0):p(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:a,props:o,type:s}},c){let l;return!!(n[c]||e!==i&&c[0]!==`$`&&p(e,c)||jr(t,c)||p(o,c)||p(r,c)||p(Ar,c)||p(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?p(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function Nr(e){return m(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var Pr=!0;function Fr(e){let t=zr(e),n=e.proxy,r=e.ctx;Pr=!1,t.beforeCreate&&Lr(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:s,watch:c,provide:l,inject:u,created:d,beforeMount:f,mounted:p,beforeUpdate:h,updated:g,activated:_,deactivated:y,beforeDestroy:b,beforeUnmount:S,destroyed:C,unmounted:w,render:ee,renderTracked:te,renderTriggered:T,errorCaptured:E,serverPrefetch:D,expose:ne,inheritAttrs:O,components:re,directives:ie,filters:ae}=t;if(u&&Ir(u,r,null),s)for(let e in s){let t=s[e];v(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);x(t)&&(e.data=Vt(t))}if(Pr=!0,a)for(let e in a){let t=a[e],i=G({get:v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):o,set:!v(t)&&v(t.set)?t.set.bind(n):o});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(c)for(let e in c)Rr(c[e],r,n,e);if(l){let e=v(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Vn(t,e[t])})}d&&Lr(d,e,`c`);function oe(e,t){m(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(oe(mr,f),oe(hr,p),oe(gr,h),oe(_r,g),oe(cr,_),oe(lr,y),oe(Cr,E),oe(Sr,te),oe(xr,T),oe(vr,S),oe(yr,w),oe(br,D),m(ne))if(ne.length){let t=e.exposed||={};ne.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};ee&&e.render===o&&(e.render=ee),O!=null&&(e.inheritAttrs=O),re&&(e.components=re),ie&&(e.directives=ie),D&&tr(e)}function Ir(e,t,n=o){m(e)&&(e=Wr(e));for(let n in e){let r=e[n],i;i=x(r)?`default`in r?Hn(r.from||n,r.default,!0):Hn(r.from||n):Hn(r),P(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Lr(e,t,n){gn(m(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Rr(e,t,n,r){let i=r.includes(`.`)?Yn(n,r):()=>n[r];if(y(e)){let n=t[e];v(n)&&Kn(i,n)}else if(v(e))Kn(i,e.bind(n));else if(x(e))if(m(e))e.forEach(e=>Rr(e,t,n,r));else{let r=v(e.handler)?e.handler.bind(n):t[e.handler];v(r)&&Kn(i,r,e)}}function zr(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Br(c,e,o,!0)),Br(c,t,o)),x(t)&&a.set(t,c),c}function Br(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Br(e,a,n,!0),i&&i.forEach(t=>Br(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Vr[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Vr={data:Hr,props:qr,emits:qr,methods:Kr,computed:Kr,beforeCreate:Gr,created:Gr,beforeMount:Gr,mounted:Gr,beforeUpdate:Gr,updated:Gr,beforeDestroy:Gr,beforeUnmount:Gr,destroyed:Gr,unmounted:Gr,activated:Gr,deactivated:Gr,errorCaptured:Gr,serverPrefetch:Gr,components:Kr,directives:Kr,watch:Jr,provide:Hr,inject:Ur};function Hr(e,t){return t?e?function(){return u(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function Ur(e,t){return Kr(Wr(e),Wr(t))}function Wr(e){if(m(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Gr(e,t){return e?[...new Set([].concat(e,t))]:t}function Kr(e,t){return e?u(Object.create(null),e,t):t}function qr(e,t){return e?m(e)&&m(t)?[...new Set([...e,...t])]:u(Object.create(null),Nr(e),Nr(t??{})):t}function Jr(e,t){if(!e)return t;if(!t)return e;let n=u(Object.create(null),e);for(let r in t)n[r]=Gr(e[r],t[r]);return n}function Yr(){return{app:null,config:{isNativeTag:s,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Xr=0;function Zr(e,t){return function(n,r=null){v(n)||(n=u({},n)),r!=null&&!x(r)&&(r=null);let i=Yr(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:Xr++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Pa,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&v(e.install)?(a.add(e),e.install(c,...t)):v(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||H(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,Aa(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(gn(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=Qr;Qr=c;try{return e()}finally{Qr=t}}};return c}}var Qr=null,$r=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${ie(t)}Modifiers`];function ei(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||i,a=n,o=t.startsWith(`update:`),s=o&&$r(r,t.slice(7));s&&(s.trim&&(a=n.map(e=>y(e)?e.trim():e)),s.number&&(a=n.map(ue)));let c,l=r[c=oe(t)]||r[c=oe(O(t))];!l&&o&&(l=r[c=oe(ie(t))]),l&&gn(l,e,6,a);let u=r[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,gn(u,e,6,a)}}var ti=new WeakMap;function ni(e,t,n=!1){let r=n?ti:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!v(e)){let r=e=>{let n=ni(e,t,!0);n&&(s=!0,u(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(x(e)&&r.set(e,null),null):(m(a)?a.forEach(e=>o[e]=null):u(o,a),x(e)&&r.set(e,o),o)}function ri(e,t){return!e||!c(t)?!1:(t=t.slice(2).replace(/Once$/,``),p(e,t[0].toLowerCase()+t.slice(1))||p(e,ie(t))||p(e,t))}function ii(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=Ln(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=oa(u.call(t,e,d,f,m,p,h)),y=s}else{let e=t;v=oa(e.length>1?e(f,{attrs:s,slots:o,emit:c}):e(f,null)),y=t.props?s:ai(s)}}catch(t){Gi.length=0,_n(t,e,1),v=H(Ui)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(l)&&(y=oi(y,a)),b=ia(b,y,!1,!0))}return n.dirs&&(b=ia(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&$n(b,n.transition),v=b,Ln(_),v}var ai=e=>{let t;for(let n in e)(n===`class`||n===`style`||c(n))&&((t||={})[n]=e[n]);return t},oi=(e,t)=>{let n={};for(let r in e)(!l(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function si(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?ci(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(li(o,r,n)&&!ri(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?ci(r,o,l):!0:!!o;return!1}function ci(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(li(t,e,a)&&!ri(n,a))return!0}return!1}function li(e,t,n){let r=e[n],i=t[n];return n===`style`&&x(r)&&x(i)?!Se(r,i):r!==i}function ui({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var di={},fi=()=>Object.create(di),pi=e=>Object.getPrototypeOf(e)===di;function mi(e,t,n,r=!1){let i={},a=fi();e.propsDefaults=Object.create(null),gi(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:Ht(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function hi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=N(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(ri(e.emitsOptions,o))continue;let u=t[o];if(c)if(p(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=O(o);i[t]=_i(c,s,t,u,e,!1)}else u!==a[o]&&(a[o]=u,l=!0)}}}else{gi(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!p(t,a)&&((r=ie(a))===a||!p(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=_i(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!p(t,e))&&(delete a[e],l=!0)}l&&at(e.attrs,`set`,``)}function gi(e,t,n,r){let[a,o]=e.propsOptions,s=!1,c;if(t)for(let i in t){if(E(i))continue;let l=t[i],u;a&&p(a,u=O(i))?!o||!o.includes(u)?n[u]=l:(c||={})[u]=l:ri(e.emitsOptions,i)||(!(i in r)||l!==r[i])&&(r[i]=l,s=!0)}if(o){let t=N(n),r=c||i;for(let i=0;i<o.length;i++){let s=o[i];n[s]=_i(a,t,s,r[s],e,!p(r,s))}}return s}function _i(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=p(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&v(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=va(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===ie(n))&&(r=!0))}return r}var vi=new WeakMap;function yi(e,t,n=!1){let r=n?vi:t.propsCache,o=r.get(e);if(o)return o;let s=e.props,c={},l=[],d=!1;if(!v(e)){let r=e=>{d=!0;let[n,r]=yi(e,t,!0);u(c,n),r&&l.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!d)return x(e)&&r.set(e,a),a;if(m(s))for(let e=0;e<s.length;e++){let t=O(s[e]);bi(t)&&(c[t]=i)}else if(s)for(let e in s){let t=O(e);if(bi(t)){let n=s[e],r=c[t]=m(n)||v(n)?{type:n}:u({},n),i=r.type,a=!1,o=!0;if(m(i))for(let e=0;e<i.length;++e){let t=i[e],n=v(t)&&t.name;if(n===`Boolean`){a=!0;break}else n===`String`&&(o=!1)}else a=v(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||p(r,`default`))&&l.push(t)}}let f=[c,l];return x(e)&&r.set(e,f),f}function bi(e){return e[0]!==`$`&&!E(e)}var xi=e=>e===`_`||e===`_ctx`||e===`$stable`,Si=e=>m(e)?e.map(oa):[oa(e)],Ci=(e,t,n)=>{if(t._n)return t;let r=Rn((...e)=>Si(t(...e)),n);return r._c=!1,r},wi=(e,t,n)=>{let r=e._ctx;for(let n in e){if(xi(n))continue;let i=e[n];if(v(i))t[n]=Ci(n,i,r);else if(i!=null){let e=Si(i);t[n]=()=>e}}},Ti=(e,t)=>{let n=Si(t);e.slots.default=()=>n},Ei=(e,t,n)=>{for(let r in t)(n||!xi(r))&&(e[r]=t[r])},Di=(e,t,n)=>{let r=e.slots=fi();if(e.vnode.shapeFlag&32){let e=t._;e?(Ei(r,t,n),n&&le(r,`_`,e,!0)):wi(t,r)}else t&&Ti(e,t)},Oi=(e,t,n)=>{let{vnode:r,slots:a}=e,o=!0,s=i;if(r.shapeFlag&32){let e=t._;e?n&&e===1?o=!1:Ei(a,t,n):(o=!t.$stable,wi(t,a)),s=t}else t&&(Ti(e,t),s={default:1});if(o)for(let e in a)!xi(e)&&s[e]==null&&delete a[e]},ki=Vi;function Ai(e){return ji(e)}function ji(e,t){let n=fe();n.__VUE__=!0;let{insert:r,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=o,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!$i(e,t)&&(r=ye(e),he(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Hi:y(e,t,n,r);break;case Ui:b(e,t,n,r);break;case Wi:e??x(t,n,r,o);break;case R:re(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?ie(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,Se)}u!=null&&i?ir(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&ir(e.ref,null,a,e,!0)},y=(e,t,n,i)=>{if(e==null)r(t.el=u(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,i)=>{e==null?r(t.el=d(t.children||``),n,i):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=h(e),r(e,n,i),e=a;r(t,n,i)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ee(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),D(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ee=(e,t,n,i,a,o,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,o,m&&m.is,m),h&8?p(d,e.children):h&16&&T(e.children,d,null,i,a,Mi(e,o),s,u),_&&Bn(e,null,i,`created`),te(d,e,e.scopeId,s,i),m){for(let e in m)e!==`value`&&!E(e)&&c(d,e,null,m[e],o,i);`value`in m&&c(d,`value`,null,m.value,o),(f=m.onVnodeBeforeMount)&&ua(f,i,e)}_&&Bn(e,null,i,`beforeMount`);let v=Pi(a,g);v&&g.beforeEnter(d),r(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&ki(()=>{try{f&&ua(f,i,e),v&&g.enter(d),_&&Bn(e,null,i,`mounted`)}finally{}},a)},te=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||Bi(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;te(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},T=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++)v(null,e[l]=s?sa(e[l]):oa(e[l]),t,n,r,i,a,o,s)},D=(e,t,n,r,a,o,s)=>{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=e.patchFlag&16;let m=e.props||i,h=t.props||i,g;if(n&&Ni(n,!1),(g=h.onVnodeBeforeUpdate)&&ua(g,n,t,e),f&&Bn(t,e,n,`beforeUpdate`),n&&Ni(n,!0),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?ne(e.dynamicChildren,d,l,n,r,Mi(t,a),o):s||ue(e,t,l,null,n,r,Mi(t,a),o,!1),u>0){if(u&16)O(l,m,h,n,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],i=m[r],o=h[r];(o!==i||r===`value`)&&c(l,r,i,o,a,n)}}u&1&&e.children!==t.children&&p(l,t.children)}else !s&&d==null&&O(l,m,h,n,a);((g=h.onVnodeUpdated)||f)&&ki(()=>{g&&ua(g,n,t,e),f&&Bn(t,e,n,`updated`)},r)},ne=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s];v(c,l,c.el&&(c.type===R||!$i(c,l)||c.shapeFlag&198)?m(c.el):n,null,r,i,a,o,!0)}},O=(e,t,n,r,a)=>{if(t!==n){if(t!==i)for(let i in t)!E(i)&&!(i in n)&&c(e,i,t[i],null,a,r);for(let i in n){if(E(i))continue;let o=n[i],s=t[i];o!==s&&i!==`value`&&c(e,i,s,o,a,r)}`value`in n&&c(e,`value`,t.value,n.value,a)}},re=(e,t,n,i,a,o,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(r(d,n,i),r(f,n,i),T(t.children||[],n,f,a,o,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(ne(e.dynamicChildren,m,n,a,o,s,c),(t.key!=null||a&&t===a.subTree)&&Fi(e,t,!0)):ue(e,t,n,f,a,o,s,c,l)},ie=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):ae(t,n,r,i,a,o,c):oe(e,t,c)},ae=(e,t,n,r,i,a,o)=>{let s=e.component=pa(e,r,i);if(sr(e)&&(s.ctx.renderer=Se),Sa(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,se,o),!e.el){let r=s.subTree=H(Ui);b(null,r,t,n),e.placeholder=r.el}}else se(s,e,t,n,i,a,o)},oe=(e,t,n)=>{let r=t.component=e.component;if(si(e,t,n))if(r.asyncDep&&!r.asyncResolved){le(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},se=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Li(e);if(n){t&&(t.el=c.el,le(e,t,o)),n.asyncDep.then(()=>{ki(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Ni(e,!1),t?(t.el=c.el,le(e,t,o)):t=c,n&&ce(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&ua(d,s,t,c),Ni(e,!0);let f=ii(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),ye(p),e,i,a),t.el=f.el,u===null&&ui(e,f.el),r&&ki(r,i),(d=t.props&&t.props.onVnodeUpdated)&&ki(()=>ua(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=or(t);if(Ni(e,!1),l&&ce(l),!m&&(o=c&&c.onVnodeBeforeMount)&&ua(o,d,t),Ni(e,!0),s&&we){let t=()=>{e.subTree=ii(e),we(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=ii(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&ki(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;ki(()=>ua(o,d,e),i)}(t.shapeFlag&256||d&&or(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&ki(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Me(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>On(u),Ni(e,!0),l()},le=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,hi(e,t.props,r,n),Oi(e,t.children,n),qe(),jn(e),Je()},ue=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){pe(l,d,n,r,i,a,o,s,c);return}else if(f&256){de(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ve(l,i,a),d!==l&&p(n,d)):u&16?m&16?pe(l,d,n,r,i,a,o,s,c):ve(l,i,a,!0):(u&8&&p(n,``),m&16&&T(d,n,r,i,a,o,s,c))},de=(e,t,n,r,i,o,s,c,l)=>{e||=a,t||=a;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;p<f;p++){let r=t[p]=l?sa(t[p]):oa(t[p]);v(e[p],r,n,null,i,o,s,c,l)}u>d?ve(e,i,o,!0,!1,f):T(t,n,r,i,o,s,c,l,f)},pe=(e,t,n,r,i,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let r=e[u],a=t[u]=l?sa(t[u]):oa(t[u]);if($i(r,a))v(r,a,n,null,i,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let r=e[f],a=t[p]=l?sa(t[p]):oa(t[p]);if($i(r,a))v(r,a,n,null,i,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,a=e<d?t[e].el:r;for(;u<=p;)v(null,t[u]=l?sa(t[u]):oa(t[u]),n,a,i,o,s,c,l),u++}}else if(u>p)for(;u<=f;)he(e[u],i,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?sa(t[u]):oa(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let r=e[u];if(y>=b){he(r,i,o,!0);continue}let a;if(r.key!=null)a=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&$i(r,t[_])){a=_;break}a===void 0?he(r,i,o,!0):(C[a-h]=u+1,a>=S?S=a:x=!0,v(r,t[a],n,null,i,o,s,c,l),y++)}let w=x?Ii(C):a;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,a=t[e],f=t[e+1],p=e+1<d?f.el||zi(f):r;C[u]===0?v(null,a,n,p,i,o,s,c,l):x&&(_<0||u!==w[_]?me(a,n,p,2):_--)}}},me=(e,t,n,i,a=null)=>{let{el:o,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){me(e.component.subTree,t,n,i);return}if(d&128){e.suspense.move(t,n,i);return}if(d&64){c.move(e,t,n,Se);return}if(c===R){r(o,t,n);for(let e=0;e<u.length;e++)me(u[e],t,n,i);r(e.anchor,t,n);return}if(c===Wi){S(e,t,n);return}if(i!==2&&d&1&&l)if(i===0)l.beforeEnter(o),r(o,t,n),ki(()=>l.enter(o),a);else{let{leave:i,delayLeave:a,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(o):r(o,t,n)},d=()=>{o._isLeaving&&o[Qn](!0),i(o,()=>{u(),c&&c()})};a?a(o,u,d):d()}else r(o,t,n)},he=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(qe(),ir(s,null,n,e,!0),Je()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!or(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&ua(_,t,e),u&6)k(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Bn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,Se,r):l&&!l.hasOnce&&(a!==R||d>0&&d&64)?ve(l,t,n,!1,!0):(a===R&&d&384||!i&&u&16)&&ve(c,t,n),r&&ge(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&ki(()=>{_&&ua(_,t,e),h&&Bn(e,null,t,`unmounted`),v&&(e.el=null)},n)},ge=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===R){_e(n,r);return}if(t===Wi){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},_e=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},k=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Ri(c),Ri(l),r&&ce(r),i.stop(),a&&(a.flags|=8,he(o,e,t,n)),s&&ki(s,t),ki(()=>{e.isUnmounted=!0},t)},ve=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)he(e[o],t,n,r,i)},ye=e=>{if(e.shapeFlag&6)return ye(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Xn];return n?h(n):t},be=!1,xe=(e,t,n)=>{let r;e==null?t._vnode&&(he(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,be||=(be=!0,jn(r),Mn(),!1)},Se={p:v,um:he,m:me,r:ge,mt:ae,mc:T,pc:ue,pbc:ne,n:ye,o:e},Ce,we;return t&&([Ce,we]=t(Se)),{render:xe,hydrate:Ce,createApp:Zr(xe,Ce)}}function Mi({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Ni({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Pi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Fi(e,t,n=!1){let r=e.children,i=t.children;if(m(r)&&m(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=sa(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Fi(t,a)),a.type===Hi&&(a.patchFlag===-1&&(a=i[e]=sa(a)),a.el=t.el),a.type===Ui&&!a.el&&(a.el=t.el)}}function Ii(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function Li(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Li(t)}function Ri(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function zi(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?zi(t.subTree):null}var Bi=e=>e.__isSuspense;function Vi(e,t){t&&t.pendingBranch?m(e)?t.effects.push(...e):t.effects.push(e):An(e)}var R=Symbol.for(`v-fgt`),Hi=Symbol.for(`v-txt`),Ui=Symbol.for(`v-cmt`),Wi=Symbol.for(`v-stc`),Gi=[],Ki=null;function z(e=!1){Gi.push(Ki=e?null:[])}function qi(){Gi.pop(),Ki=Gi[Gi.length-1]||null}var Ji=1;function Yi(e,t=!1){Ji+=e,e<0&&Ki&&t&&(Ki.hasOnce=!0)}function Xi(e){return e.dynamicChildren=Ji>0?Ki||a:null,qi(),Ji>0&&Ki&&Ki.push(e),e}function B(e,t,n,r,i,a){return Xi(V(e,t,n,r,i,a,!0))}function Zi(e,t,n,r,i){return Xi(H(e,t,n,r,i,!0))}function Qi(e){return e?e.__v_isVNode===!0:!1}function $i(e,t){return e.type===t.type&&e.key===t.key}var ea=({key:e})=>e??null,ta=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:y(e)||P(e)||v(e)?{i:Fn,r:e,k:t,f:!!n}:e);function V(e,t=null,n=null,r=0,i=null,a=e===R?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ea(t),ref:t&&ta(t),scopeId:In,slotScopeIds:null,children:n,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:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Fn};return s?(ca(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),Ji>0&&!o&&Ki&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Ki.push(c),c}var H=na;function na(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Er)&&(e=Ui),Qi(e)){let r=ia(e,t,!0);return n&&ca(r,n),Ji>0&&!a&&Ki&&(r.shapeFlag&6?Ki[Ki.indexOf(e)]=r:Ki.push(r)),r.patchFlag=-2,r}if(Ma(e)&&(e=e.__vccOpts),t){t=ra(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=k(e)),x(n)&&(Jt(n)&&!m(n)&&(n=u({},n)),t.style=pe(n))}let o=y(e)?1:Bi(e)?128:Zn(e)?64:x(e)?4:v(e)?2:0;return V(e,t,n,r,i,o,a,!0)}function ra(e){return e?Jt(e)||pi(e)?u({},e):e:null}function ia(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?la(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ea(l),ref:t&&t.ref?n&&a?m(a)?a.concat(ta(t)):[a,ta(t)]:ta(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==R?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ia(e.ssContent),ssFallback:e.ssFallback&&ia(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&$n(u,c.clone(u)),u}function U(e=` `,t=0){return H(Hi,null,e,t)}function aa(e,t){let n=H(Wi,null,e);return n.staticCount=t,n}function W(e=``,t=!1){return t?(z(),Zi(Ui,null,e)):H(Ui,null,e)}function oa(e){return e==null||typeof e==`boolean`?H(Ui):m(e)?H(R,null,e.slice()):Qi(e)?sa(e):H(Hi,null,String(e))}function sa(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ia(e)}function ca(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(m(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),ca(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!pi(t)?t._ctx=Fn:r===3&&Fn&&(Fn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else v(t)?(t={default:t,_ctx:Fn},n=32):(t=String(t),r&64?(n=16,t=[U(t)]):n=8);e.children=t,e.shapeFlag|=n}function la(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=k([t.class,r.class]));else if(e===`style`)t.style=pe([t.style,r.style]);else if(c(e)){let n=t[e],i=r[e];i&&n!==i&&!(m(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!l(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function ua(e,t,n,r=null){gn(e,t,7,[n,r])}var da=Yr(),fa=0;function pa(e,t,n){let r=e.type,a=(t?t.appContext:e.appContext)||da,o={uid:fa++,vnode:e,type:r,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new De(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:yi(r,a),emitsOptions:ni(r,a),emit:null,emitted:null,propsDefaults:i,inheritAttrs:r.inheritAttrs,ctx:i,data:i,props:i,attrs:i,slots:i,refs:i,setupState:i,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=ei.bind(null,o),e.ce&&e.ce(o),o}var ma=null,ha=()=>ma||Fn,ga,_a;{let e=fe(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};ga=t(`__VUE_INSTANCE_SETTERS__`,e=>ma=e),_a=t(`__VUE_SSR_SETTERS__`,e=>xa=e)}var va=e=>{let t=ma;return ga(e),e.scope.on(),()=>{e.scope.off(),ga(t)}},ya=()=>{ma&&ma.scope.off(),ga(null)};function ba(e){return e.vnode.shapeFlag&4}var xa=!1;function Sa(e,t=!1,n=!1){t&&_a(t);let{props:r,children:i}=e.vnode,a=ba(e);mi(e,r,a,t),Di(e,i,n||t);let o=a?Ca(e,t):void 0;return t&&_a(!1),o}function Ca(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Mr);let{setup:r}=n;if(r){qe();let n=e.setupContext=r.length>1?ka(e):null,i=va(e),a=hn(r,e,0,[e.props,n]),o=S(a);if(Je(),i(),(o||e.sp)&&!or(e)&&tr(e),o){if(a.then(ya,ya),t)return a.then(n=>{wa(e,n,t)}).catch(t=>{_n(t,e,0)});e.asyncDep=a}else wa(e,a,t)}else Da(e,t)}function wa(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:x(t)&&(e.setupState=nn(t)),Da(e,n)}var Ta,Ea;function Da(e,t,n){let r=e.type;if(!e.render){if(!t&&Ta&&!r.render){let t=r.template||zr(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r;r.render=Ta(t,u(u({isCustomElement:n,delimiters:a},i),o))}}e.render=r.render||o,Ea&&Ea(e)}{let t=va(e);qe();try{Fr(e)}finally{Je(),t()}}}var Oa={get(e,t){return it(e,`get`,``),e[t]}};function ka(e){return{attrs:new Proxy(e.attrs,Oa),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Aa(e){return e.exposed?e.exposeProxy||=new Proxy(nn(Yt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ar)return Ar[n](e)},has(e,t){return t in e||t in Ar}}):e.proxy}function ja(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}function Ma(e){return v(e)&&`__vccOpts`in e}var G=(e,t)=>cn(e,t,xa);function Na(e,t,n){try{Yi(-1);let r=arguments.length;return r===2?x(t)&&!m(t)?Qi(t)?H(e,null,[t]):H(e,t):H(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Qi(n)&&(n=[n]),H(e,t,n))}finally{Yi(1)}}var Pa=`3.5.34`,Fa=void 0,Ia=typeof window<`u`&&window.trustedTypes;if(Ia)try{Fa=Ia.createPolicy(`vue`,{createHTML:e=>e})}catch{}var La=Fa?e=>Fa.createHTML(e):e=>e,Ra=`http://www.w3.org/2000/svg`,za=`http://www.w3.org/1998/Math/MathML`,Ba=typeof document<`u`?document:null,Va=Ba&&Ba.createElement(`template`),Ha={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Ba.createElementNS(Ra,e):t===`mathml`?Ba.createElementNS(za,e):n?Ba.createElement(e,{is:n}):Ba.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Ba.createTextNode(e),createComment:e=>Ba.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ba.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{Va.innerHTML=La(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Va.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ua=Symbol(`_vtc`);function Wa(e,t,n){let r=e[Ua];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Ga=Symbol(`_vod`),Ka=Symbol(`_vsh`),qa=Symbol(``),Ja=/(?:^|;)\s*display\s*:/;function Ya(e,t,n){let r=e.style,i=y(n),a=!1;if(n&&!i){if(t)if(y(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Za(r,t,``)}else for(let e in t)n[e]??Za(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Za(r,i,``):to(e,i,!y(t)&&t?t[i]:void 0,o)||Za(r,i,o)}}else if(i){if(t!==n){let e=r[qa];e&&(n+=`;`+e),r.cssText=n,a=Ja.test(n)}}else t&&e.removeAttribute(`style`);Ga in e&&(e[Ga]=a?r.display:``,e[Ka]&&(r.display=`none`))}var Xa=/\s*!important$/;function Za(e,t,n){if(m(n))n.forEach(n=>Za(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=eo(e,t);Xa.test(n)?e.setProperty(ie(r),n.replace(Xa,``),`important`):e[r]=n}}var Qa=[`Webkit`,`Moz`,`ms`],$a={};function eo(e,t){let n=$a[t];if(n)return n;let r=O(t);if(r!==`filter`&&r in e)return $a[t]=r;r=ae(r);for(let n=0;n<Qa.length;n++){let i=Qa[n]+r;if(i in e)return $a[t]=i}return t}function to(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&y(r)&&n===r}var no=`http://www.w3.org/1999/xlink`;function ro(e,t,n,r,i,a=ye(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(no,t.slice(6,t.length)):e.setAttributeNS(no,t,n):n==null||a&&!be(n)?e.removeAttribute(t):e.setAttribute(t,a?``:b(n)?String(n):n)}function io(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?La(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=be(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function ao(e,t,n,r){e.addEventListener(t,n,r)}function oo(e,t,n,r){e.removeEventListener(t,n,r)}var so=Symbol(`_vei`);function co(e,t,n,r,i=null){let a=e[so]||(e[so]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=uo(t);r?ao(e,n,a[t]=ho(r,i),s):o&&(oo(e,n,o,s),a[t]=void 0)}}var lo=/(?:Once|Passive|Capture)$/;function uo(e){let t;if(lo.test(e)){t={};let n;for(;n=e.match(lo);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):ie(e.slice(2)),t]}var fo=0,po=Promise.resolve(),mo=()=>fo||=(po.then(()=>fo=0),Date.now());function ho(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;gn(go(e,n.value),t,5,[e])};return n.value=e,n.attached=mo(),n}function go(e,t){if(m(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var _o=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,vo=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Wa(e,r,o):t===`style`?Ya(e,n,r):c(t)?l(t)||co(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):yo(e,t,r,o))?(io(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&ro(e,t,r,o,a,t!==`value`)):e._isVueCE&&(bo(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!y(r)))?io(e,O(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),ro(e,t,r,o))};function yo(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&_o(t)&&v(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return _o(t)&&y(n)?!1:t in e}function bo(e,t){let n=e._def.props;if(!n)return!1;let r=O(t);return Array.isArray(n)?n.some(e=>O(e)===r):Object.keys(n).some(e=>O(e)===r)}var xo=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return m(t)?e=>ce(t,e):t};function So(e){e.target.composing=!0}function Co(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var wo=Symbol(`_assign`);function To(e,t,n){return t&&(e=e.trim()),n&&(e=ue(e)),e}var Eo={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[wo]=xo(i);let a=r||i.props&&i.props.type===`number`;ao(e,t?`change`:`input`,t=>{t.target.composing||e[wo](To(e.value,n,a))}),(n||a)&&ao(e,`change`,()=>{e.value=To(e.value,n,a)}),t||(ao(e,`compositionstart`,So),ao(e,`compositionend`,Co),ao(e,`change`,Co))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[wo]=xo(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?ue(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Do={deep:!0,created(e,t,n){e[wo]=xo(n),ao(e,`change`,()=>{let t=e._modelValue,n=Mo(e),r=e.checked,i=e[wo];if(m(t)){let e=Ce(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(g(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(No(e,r))})},mounted:Oo,beforeUpdate(e,t,n){e[wo]=xo(n),Oo(e,t,n)}};function Oo(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(m(t))i=Ce(t,r.props.value)>-1;else if(g(t))i=t.has(r.props.value);else{if(t===n)return;i=Se(t,No(e,!0))}e.checked!==i&&(e.checked=i)}var ko={created(e,{value:t},n){e.checked=Se(t,n.props.value),e[wo]=xo(n),ao(e,`change`,()=>{e[wo](Mo(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[wo]=xo(r),t!==n&&(e.checked=Se(t,r.props.value))}},Ao={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=g(t);ao(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?ue(Mo(e)):Mo(e));e[wo](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,En(()=>{e._assigning=!1})}),e[wo]=xo(r)},mounted(e,{value:t}){jo(e,t)},beforeUpdate(e,t,n){e[wo]=xo(n)},updated(e,{value:t}){e._assigning||jo(e,t)}};function jo(e,t){let n=e.multiple,r=m(t);if(!(n&&!r&&!g(t))){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=Mo(a);if(n)if(r){let e=typeof o;e===`string`||e===`number`?a.selected=t.some(e=>String(e)===String(o)):a.selected=Ce(t,o)>-1}else a.selected=t.has(o);else if(Se(Mo(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Mo(e){return`_value`in e?e._value:e.value}function No(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Po={created(e,t,n){Io(e,t,n,null,`created`)},mounted(e,t,n){Io(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Io(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Io(e,t,n,r,`updated`)}};function Fo(e,t){switch(e){case`SELECT`:return Ao;case`TEXTAREA`:return Eo;default:switch(t){case`checkbox`:return Do;case`radio`:return ko;default:return Eo}}}function Io(e,t,n,r,i){let a=Fo(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}var Lo=[`ctrl`,`shift`,`alt`,`meta`],Ro={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Lo.some(n=>e[`${n}Key`]&&!t.includes(n))},zo=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Ro[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Bo={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Vo=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=ie(n.key);if(t.some(e=>e===r||Bo[e]===r))return e(n)}))},Ho=u({patchProp:vo},Ha),Uo;function Wo(){return Uo||=Ai(Ho)}var Go=((...e)=>{let t=Wo().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=qo(e);if(!r)return;let i=t._component;!v(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Ko(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Ko(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function qo(e){return y(e)?document.querySelector(e):e}var Jo=typeof window<`u`,Yo,Xo=e=>Yo=e,Zo=Symbol();function Qo(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var $o;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})($o||={});var es=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function ts(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function ns(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){ss(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function rs(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function is(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var as=typeof navigator==`object`?navigator:{userAgent:``},os=/Macintosh/.test(as.userAgent)&&/AppleWebKit/.test(as.userAgent)&&!/Safari/.test(as.userAgent),ss=Jo?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!os?cs:`msSaveOrOpenBlob`in as?ls:us:()=>{};function cs(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?is(r):rs(r.href)?ns(e,t,n):(r.target=`_blank`,is(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){is(r)},0))}function ls(e,t=`download`,n){if(typeof e==`string`)if(rs(e))ns(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){is(t)})}else navigator.msSaveOrOpenBlob(ts(e,n),t)}function us(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return ns(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(es.HTMLElement))||`safari`in es,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||os)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:ds}=Object;function fs(){let e=Oe(!0),t=e.run(()=>F({})),n=[],r=[],i=Yt({install(e){Xo(i),i._a=e,e.provide(Zo,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var ps=()=>{};function ms(e,t,n,r=ps){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&ke()&&Ae(i),i}function hs(e,...t){e.forEach(e=>{e(...t)})}var gs=e=>e(),_s=Symbol(),vs=Symbol();function ys(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];Qo(i)&&Qo(r)&&e.hasOwnProperty(n)&&!P(r)&&!Gt(r)?e[n]=ys(i,r):e[n]=r}return e}var bs=Symbol();function xs(e){return!Qo(e)||!Object.prototype.hasOwnProperty.call(e,bs)}var{assign:Ss}=Object;function Cs(e){return!!(P(e)&&e.effect)}function ws(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),Ss(rn(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=Yt(G(()=>{Xo(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=Ts(e,l,t,n,r,!0),c}function Ts(e,t,n={},r,i,a){let o,s=Ss({actions:{}},n),c={deep:!0},l,u,d=new Set,f=new Set,p=r.state.value[e];!a&&!p&&(r.state.value[e]={});let m;function h(t){let n;l=u=!1,typeof t==`function`?(t(r.state.value[e]),n={type:$o.patchFunction,storeId:e,events:void 0}):(ys(r.state.value[e],t),n={type:$o.patchObject,payload:t,storeId:e,events:void 0});let i=m=Symbol();En().then(()=>{m===i&&(l=!0)}),u=!0,hs(d,n,r.state.value[e])}let g=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{Ss(e,t)})}:ps;function _(){o.stop(),d.clear(),f.clear(),r._s.delete(e)}let v=(t,n=``)=>{if(_s in t)return t[vs]=n,t;let i=function(){Xo(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}hs(f,{args:n,name:i[vs],store:y,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:y,n)}catch(e){throw hs(o,e),e}return l instanceof Promise?l.then(e=>(hs(a,e),e)).catch(e=>(hs(o,e),Promise.reject(e))):(hs(a,l),l)};return i[_s]=!0,i[vs]=n,i},y=Vt({_p:r,$id:e,$onAction:ms.bind(null,f),$patch:h,$reset:g,$subscribe(t,n={}){let i=ms(d,t,n.detached,()=>a()),a=o.run(()=>Kn(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:$o.direct,events:void 0},r)},Ss({},c,n)));return i},$dispose:_});r._s.set(e,y);let b=(r._a&&r._a.runWithContext||gs)(()=>r._e.run(()=>(o=Oe()).run(()=>t({action:v}))));for(let t in b){let n=b[t];P(n)&&!Cs(n)||Gt(n)?a||(p&&xs(n)&&(P(n)?n.value=p[t]:ys(n,p[t])),r.state.value[e][t]=n):typeof n==`function`&&(b[t]=v(n,t),s.actions[t]=n)}return Ss(y,b),Ss(N(y),b),Object.defineProperty(y,"$state",{get:()=>r.state.value[e],set:e=>{h(t=>{Ss(t,e)})}}),r._p.forEach(e=>{Ss(y,o.run(()=>e({store:y,app:r._a,pinia:r,options:s})))}),p&&a&&n.hydrate&&n.hydrate(y.$state,p),l=!0,u=!0,y}function Es(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=Un();return n||=o?Hn(Zo,null):null,n&&Xo(n),n=Yo,n._s.has(e)||(i?Ts(e,t,r,n):ws(e,r,n)),n._s.get(e)}return a.$id=e,a}var Ds=typeof document<`u`;function Os(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function ks(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Os(e.default)}var K=Object.assign;function As(e,t){let n={};for(let r in t){let i=t[r];n[r]=Ms(i)?i.map(e):e(i)}return n}var js=()=>{},Ms=Array.isArray;function Ns(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var Ps=/#/g,Fs=/&/g,Is=/\//g,Ls=/=/g,Rs=/\?/g,zs=/\+/g,Bs=/%5B/g,Vs=/%5D/g,Hs=/%5E/g,Us=/%60/g,Ws=/%7B/g,Gs=/%7C/g,Ks=/%7D/g,qs=/%20/g;function Js(e){return e==null?``:encodeURI(``+e).replace(Gs,`|`).replace(Bs,`[`).replace(Vs,`]`)}function Ys(e){return Js(e).replace(Ws,`{`).replace(Ks,`}`).replace(Hs,`^`)}function Xs(e){return Js(e).replace(zs,`%2B`).replace(qs,`+`).replace(Ps,`%23`).replace(Fs,`%26`).replace(Us,"`").replace(Ws,`{`).replace(Ks,`}`).replace(Hs,`^`)}function Zs(e){return Xs(e).replace(Ls,`%3D`)}function Qs(e){return Js(e).replace(Ps,`%23`).replace(Rs,`%3F`)}function $s(e){return Qs(e).replace(Is,`%2F`)}function ec(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var tc=/\/$/,nc=e=>e.replace(tc,``);function rc(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=dc(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:ec(o)}}function ic(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function ac(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function oc(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&sc(t.matched[r],n.matched[i])&&cc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function sc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function cc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!lc(e[n],t[n]))return!1;return!0}function lc(e,t){return Ms(e)?uc(e,t):Ms(t)?uc(t,e):e?.valueOf()===t?.valueOf()}function uc(e,t){return Ms(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function dc(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var fc={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},pc=function(e){return e.pop=`pop`,e.push=`push`,e}({}),mc=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function hc(e){if(!e)if(Ds){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),nc(e)}var gc=/^[^#]+#/;function _c(e,t){return e.replace(gc,`#`)+t}function vc(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var yc=()=>({left:window.scrollX,top:window.scrollY});function bc(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=vc(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function xc(e,t){return(history.state?history.state.position-t:-1)+e}var Sc=new Map;function Cc(e,t){Sc.set(e,t)}function wc(e){let t=Sc.get(e);return Sc.delete(e),t}function Tc(e){return typeof e==`string`||e&&typeof e==`object`}function Ec(e){return typeof e==`string`||typeof e==`symbol`}var q=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),Dc=Symbol(``);q.MATCHER_NOT_FOUND,q.NAVIGATION_GUARD_REDIRECT,q.NAVIGATION_ABORTED,q.NAVIGATION_CANCELLED,q.NAVIGATION_DUPLICATED;function Oc(e,t){return K(Error(),{type:e,[Dc]:!0},t)}function kc(e,t){return e instanceof Error&&Dc in e&&(t==null||!!(e.type&t))}function Ac(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(zs,` `),i=r.indexOf(`=`),a=ec(i<0?r:r.slice(0,i)),o=i<0?null:ec(r.slice(i+1));if(a in t){let e=t[a];Ms(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function jc(e){let t=``;for(let n in e){let r=e[n];if(n=Zs(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(Ms(r)?r.map(e=>e&&Xs(e)):[r&&Xs(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Mc(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=Ms(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}var Nc=Symbol(``),Pc=Symbol(``),Fc=Symbol(``),Ic=Symbol(``),Lc=Symbol(``);function Rc(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function zc(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(Oc(q.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Tc(e)?c(Oc(q.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Bc(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(Os(s)){let c=(s.__vccOpts||s)[t];c&&a.push(zc(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=ks(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&zc(c,n,r,o,e,i)()}))}}return a}function Vc(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>sc(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>sc(e,s))||i.push(s))}return[n,r,i]}var Hc=()=>location.protocol+`//`+location.host;function Uc(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),ac(n,``)}return ac(n,e)+r+i}function Wc(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Uc(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:pc.pop,direction:u?u>0?mc.forward:mc.back:mc.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(K({},e.state,{scroll:yc()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Gc(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?yc():null}}function Kc(e){let{history:t,location:n}=window,r={value:Uc(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Hc()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,K({},t.state,Gc(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=K({},i.value,t.state,{forward:e,scroll:yc()});a(o.current,o,!0),a(e,K({},Gc(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function qc(e){e=hc(e);let t=Kc(e),n=Wc(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=K({location:``,base:e,go:r,createHref:_c.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var Jc=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),J=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(J||{}),Yc={type:Jc.Static,value:``},Xc=/[a-zA-Z0-9_]/;function Zc(e){if(!e)return[[]];if(e===`/`)return[[Yc]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=J.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===J.Static?a.push({type:Jc.Static,value:l}):n===J.Param||n===J.ParamRegExp||n===J.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Jc.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==J.ParamRegExp){r=n,n=J.EscapeNext;continue}switch(n){case J.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=J.Param):f();break;case J.EscapeNext:f(),n=r;break;case J.Param:c===`(`?n=J.ParamRegExp:Xc.test(c)?f():(d(),n=J.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case J.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=J.ParamRegExpEnd:u+=c;break;case J.ParamRegExpEnd:d(),n=J.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===J.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Qc=`[^/]+?`,$c={sensitive:!1,strict:!1,start:!0,end:!0},el=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}(el||{}),tl=/[.+*?^${}()[\]/\\]/g;function nl(e,t){let n=K({},$c,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[el.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=el.Segment+(n.sensitive?el.BonusCaseSensitive:0);if(o.type===Jc.Static)r||(i+=`/`),i+=o.value.replace(tl,`\\$&`),s+=el.Static;else if(o.type===Jc.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Qc;if(u!==Qc){s+=el.BonusCustomRegExp;try{`${u}`}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=el.Dynamic,c&&(s+=el.BonusOptional),n&&(s+=el.BonusRepeatable),u===`.*`&&(s+=el.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=el.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===Jc.Static)n+=e.value;else if(e.type===Jc.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(Ms(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=Ms(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function rl(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===el.Static+el.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===el.Static+el.Segment?1:-1:0}function il(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=rl(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(al(r))return 1;if(al(i))return-1}return i.length-r.length}function al(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var ol={strict:!1,end:!0,sensitive:!1};function sl(e,t,n){let r=K(nl(Zc(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function cl(e,t){let n=[],r=new Map;t=Ns(ol,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=ul(e);s.aliasOf=r&&r.record;let l=Ns(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(ul(K({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=sl(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!fl(d)&&o(e.name)),gl(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:js}function o(e){if(Ec(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=ml(e,n);n.splice(t,0,e),e.record.name&&!fl(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw Oc(q.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=K(ll(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&ll(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Oc(q.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=K({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:pl(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function ll(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function ul(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:dl(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function dl(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function fl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function pl(e){return e.reduce((e,t)=>K(e,t.meta),{})}function ml(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;il(e,t[i])<0?r=i:n=i+1}let i=hl(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function hl(e){let t=e;for(;t=t.parent;)if(gl(t)&&il(e,t)===0)return t}function gl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function _l(e){let t=Hn(Fc),n=Hn(Ic),r=G(()=>{let n=I(e.to);return t.resolve(n)}),i=G(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(sc.bind(null,i));if(o>-1)return o;let s=Sl(e[t-2]);return t>1&&Sl(i)===s&&a[a.length-1].path!==s?a.findIndex(sc.bind(null,e[t-2])):o}),a=G(()=>i.value>-1&&xl(n.params,r.value.params)),o=G(()=>i.value>-1&&i.value===n.matched.length-1&&cc(n.params,r.value.params));function s(n={}){if(bl(n)){let n=t[I(e.replace)?`replace`:`push`](I(e.to)).catch(js);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:G(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function vl(e){return e.length===1?e[0]:e}var yl=er({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:_l,setup(e,{slots:t}){let n=Vt(_l(e)),{options:r}=Hn(Fc),i=G(()=>({[Cl(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Cl(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&vl(t.default(n));return e.custom?r:Na(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function bl(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function xl(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!Ms(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Sl(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Cl=(e,t,n)=>e??t??n,wl=er({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=Hn(Lc),i=G(()=>e.route||r.value),a=Hn(Pc,0),o=G(()=>{let e=I(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=G(()=>i.value.matched[o.value]);Vn(Pc,G(()=>o.value+1)),Vn(Nc,s),Vn(Lc,i);let c=F();return Kn(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!sc(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return Tl(n.default,{Component:l,route:r});let u=o.props[a],d=Na(l,K({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return Tl(n.default,{Component:d,route:r})||d}}});function Tl(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var El=wl;function Dl(e){let t=cl(e.routes,e),n=e.parseQuery||Ac,r=e.stringifyQuery||jc,i=e.history,a=Rc(),o=Rc(),s=Rc(),c=Qt(fc),l=fc;Ds&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=As.bind(null,e=>``+e),d=As.bind(null,$s),f=As.bind(null,ec);function p(e,n){let r,i;return Ec(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=K({},a||c.value),typeof e==`string`){let r=rc(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return K(r,o,{params:f(o.params),hash:ec(r.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=K({},e,{path:rc(n,e.path,a.path).path});else{let t=K({},e.params);for(let e in t)t[e]??delete t[e];o=K({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=ic(r,K({},e,{hash:Ys(l),path:s.path})),m=i.createHref(p);return K({fullPath:p,hash:l,query:r===jc?Mc(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?rc(n,e,c.value.path):K({},e)}function y(e,t){if(l!==e)return Oc(q.NAVIGATION_CANCELLED,{from:t,to:e})}function b(e){return C(e)}function x(e){return b(K(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),K({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C(K(v(u),{state:typeof u==`object`?K({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&oc(r,i,n)&&(f=Oc(q.NAVIGATION_DUPLICATED,{to:d,from:i}),ce(i,i,!0,!1)),(f?Promise.resolve(f):te(d,i)).catch(e=>kc(e)?kc(e,q.NAVIGATION_GUARD_REDIRECT)?e:se(e):ae(e,d,i)).then(e=>{if(e){if(kc(e,q.NAVIGATION_GUARD_REDIRECT))return C(K({replace:s},v(e.to),{state:typeof e.to==`object`?K({},a,e.to.state):a,force:o}),t||d)}else e=E(d,i,!0,s,a);return T(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function ee(e){let t=de.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function te(e,t){let n,[r,i,s]=Vc(e,t);n=Bc(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(zc(r,e,t))});let c=w.bind(null,e,t);return n.push(c),pe(n).then(()=>{n=[];for(let r of a.list())n.push(zc(r,e,t));return n.push(c),pe(n)}).then(()=>{n=Bc(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(zc(r,e,t))});return n.push(c),pe(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(Ms(r.beforeEnter))for(let i of r.beforeEnter)n.push(zc(i,e,t));else n.push(zc(r.beforeEnter,e,t));return n.push(c),pe(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Bc(s,`beforeRouteEnter`,e,t,ee),n.push(c),pe(n))).then(()=>{n=[];for(let r of o.list())n.push(zc(r,e,t));return n.push(c),pe(n)}).catch(e=>kc(e,q.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function T(e,t,n){s.list().forEach(r=>ee(()=>r(e,t,n)))}function E(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===fc,l=Ds?history.state:{};n&&(r||s?i.replace(e.fullPath,K({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,ce(e,t,n,s),se()}let D;function ne(){D||=i.listen((e,t,n)=>{if(!fe.listening)return;let r=_(e),a=S(r,fe.currentRoute.value);if(a){C(K(a,{replace:!0,force:!0}),r).catch(js);return}l=r;let o=c.value;Ds&&Cc(xc(o.fullPath,n.delta),yc()),te(r,o).catch(e=>kc(e,q.NAVIGATION_ABORTED|q.NAVIGATION_CANCELLED)?e:kc(e,q.NAVIGATION_GUARD_REDIRECT)?(C(K(v(e.to),{force:!0}),r).then(e=>{kc(e,q.NAVIGATION_ABORTED|q.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===pc.pop&&i.go(-1,!1)}).catch(js),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ae(e,r,o))).then(e=>{e||=E(r,o,!1),e&&(n.delta&&!kc(e,q.NAVIGATION_CANCELLED)?i.go(-n.delta,!1):n.type===pc.pop&&kc(e,q.NAVIGATION_ABORTED|q.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),T(r,o,e)}).catch(js)})}let O=Rc(),re=Rc(),ie;function ae(e,t,n){se(e);let r=re.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function oe(){return ie&&c.value!==fc?Promise.resolve():new Promise((e,t)=>{O.add([e,t])})}function se(e){return ie||(ie=!e,ne(),O.list().forEach(([t,n])=>e?n(e):t()),O.reset()),e}function ce(t,n,r,i){let{scrollBehavior:a}=e;if(!Ds||!a)return Promise.resolve();let o=!r&&wc(xc(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return En().then(()=>a(t,n,o)).then(e=>e&&bc(e)).catch(e=>ae(e,t,n))}let le=e=>i.go(e),ue,de=new Set,fe={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:le,back:()=>le(-1),forward:()=>le(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:re.add,isReady:oe,install(e){e.component(`RouterLink`,yl),e.component(`RouterView`,El),e.config.globalProperties.$router=fe,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>I(c)}),Ds&&!ue&&c.value===fc&&(ue=!0,b(i.location).catch(e=>{}));let t={};for(let e in fc)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(Fc,fe),e.provide(Ic,Ht(t)),e.provide(Lc,c);let n=e.unmount;de.add(e),e.unmount=function(){de.delete(e),de.size<1&&(l=fc,D&&D(),D=null,c.value=fc,ue=!1,ie=!1),n()}}};function pe(e){return e.reduce((e,t)=>e.then(()=>ee(t)),Promise.resolve())}return fe}function Ol(){return Hn(Fc)}function kl(e){return Hn(Ic)}function Al(e,t){return function(){return e.apply(t,arguments)}}var{toString:jl}=Object.prototype,{getPrototypeOf:Ml}=Object,{iterator:Nl,toStringTag:Pl}=Symbol,Fl=(e=>t=>{let n=jl.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Il=e=>(e=e.toLowerCase(),t=>Fl(t)===e),Ll=e=>t=>typeof t===e,{isArray:Rl}=Array,zl=Ll(`undefined`);function Bl(e){return e!==null&&!zl(e)&&e.constructor!==null&&!zl(e.constructor)&&Wl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Vl=Il(`ArrayBuffer`);function Hl(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Vl(e.buffer),t}var Ul=Ll(`string`),Wl=Ll(`function`),Gl=Ll(`number`),Kl=e=>typeof e==`object`&&!!e,ql=e=>e===!0||e===!1,Jl=e=>{if(Fl(e)!==`object`)return!1;let t=Ml(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Pl in e)&&!(Nl in e)},Yl=e=>{if(!Kl(e)||Bl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Xl=Il(`Date`),Zl=Il(`File`),Ql=e=>!!(e&&e.uri!==void 0),$l=e=>e&&e.getParts!==void 0,eu=Il(`Blob`),tu=Il(`FileList`),nu=e=>Kl(e)&&Wl(e.pipe);function ru(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var iu=ru(),au=iu.FormData===void 0?void 0:iu.FormData,ou=e=>{if(!e)return!1;if(au&&e instanceof au)return!0;let t=Ml(e);if(!t||t===Object.prototype||!Wl(e.append))return!1;let n=Fl(e);return n===`formdata`||n===`object`&&Wl(e.toString)&&e.toString()===`[object FormData]`},su=Il(`URLSearchParams`),[cu,lu,uu,du]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(Il),fu=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function pu(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),Rl(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Bl(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function mu(e,t){if(Bl(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var hu=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,gu=e=>!zl(e)&&e!==hu;function _u(...e){let{caseless:t,skipUndefined:n}=gu(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&mu(r,i)||i,o=ku(r,a)?r[a]:void 0;Jl(o)&&Jl(e)?r[a]=_u(o,e):Jl(e)?r[a]=_u({},e):Rl(e)?r[a]=e.slice():(!n||!zl(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++)e[t]&&pu(e[t],i);return r}var vu=(e,t,n,{allOwnKeys:r}={})=>(pu(t,(t,r)=>{n&&Wl(t)?Object.defineProperty(e,r,{__proto__:null,value:Al(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),yu=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bu=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},xu=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Ml(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Su=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},Cu=e=>{if(!e)return null;if(Rl(e))return e;let t=e.length;if(!Gl(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},wu=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&Ml(Uint8Array)),Tu=(e,t)=>{let n=(e&&e[Nl]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Eu=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Du=Il(`HTMLFormElement`),Ou=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),ku=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Au=Il(`RegExp`),ju=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};pu(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Mu=e=>{ju(e,(t,n)=>{if(Wl(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(Wl(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},Nu=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Rl(e)?r(e):r(String(e).split(t)),n},Pu=()=>{},Fu=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Iu(e){return!!(e&&Wl(e.append)&&e[Pl]===`FormData`&&e[Nl])}var Lu=e=>{let t=new WeakSet,n=e=>{if(Kl(e)){if(t.has(e))return;if(Bl(e))return e;if(!(`toJSON`in e)){t.add(e);let r=Rl(e)?[]:{};return pu(e,(e,t)=>{let i=n(e);!zl(i)&&(r[t]=i)}),t.delete(e),r}}return e};return n(e)},Ru=Il(`AsyncFunction`),zu=e=>e&&(Kl(e)||Wl(e))&&Wl(e.then)&&Wl(e.catch),Bu=((e,t)=>e?setImmediate:t?((e,t)=>(hu.addEventListener(`message`,({source:n,data:r})=>{n===hu&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),hu.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,Wl(hu.postMessage)),Y={isArray:Rl,isArrayBuffer:Vl,isBuffer:Bl,isFormData:ou,isArrayBufferView:Hl,isString:Ul,isNumber:Gl,isBoolean:ql,isObject:Kl,isPlainObject:Jl,isEmptyObject:Yl,isReadableStream:cu,isRequest:lu,isResponse:uu,isHeaders:du,isUndefined:zl,isDate:Xl,isFile:Zl,isReactNativeBlob:Ql,isReactNative:$l,isBlob:eu,isRegExp:Au,isFunction:Wl,isStream:nu,isURLSearchParams:su,isTypedArray:wu,isFileList:tu,forEach:pu,merge:_u,extend:vu,trim:fu,stripBOM:yu,inherits:bu,toFlatObject:xu,kindOf:Fl,kindOfTest:Il,endsWith:Su,toArray:Cu,forEachEntry:Tu,matchAll:Eu,isHTMLForm:Du,hasOwnProperty:ku,hasOwnProp:ku,reduceDescriptors:ju,freezeMethods:Mu,toObjectSet:Nu,toCamelCase:Ou,noop:Pu,toFiniteNumber:Fu,findKey:mu,global:hu,isContextDefined:gu,isSpecCompliantForm:Iu,toJSONObject:Lu,isAsyncFn:Ru,isThenable:zu,setImmediate:Bu,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(hu):typeof process<`u`&&process.nextTick||Bu,isIterable:e=>e!=null&&Wl(e[Nl])},Vu=Y.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),Hu=e=>{let t={},n,r,i;return e&&e.split(`
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&Vu[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t};function Uu(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var Wu=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),Gu=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function Ku(e,t){return Y.isArray(e)?e.map(e=>Ku(e,t)):Uu(String(e).replace(t,``))}var qu=e=>Ku(e,Wu),Ju=e=>Ku(e,Gu);function Yu(e){let t=Object.create(null);return Y.forEach(e.toJSON(),(e,n)=>{t[n]=Ju(e)}),t}var Xu=Symbol(`internals`);function Zu(e){return e&&String(e).trim().toLowerCase()}function Qu(e){return e===!1||e==null?e:Y.isArray(e)?e.map(Qu):qu(String(e))}function $u(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var ed=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function td(e,t,n,r,i){if(Y.isFunction(r))return r.call(this,t,n);if(i&&(t=n),Y.isString(t)){if(Y.isString(r))return t.indexOf(r)!==-1;if(Y.isRegExp(r))return r.test(t)}}function nd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function rd(e,t){let n=Y.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var id=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=Zu(t);if(!i)throw Error(`header name must be a non-empty string`);let a=Y.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=Qu(e))}let a=(e,t)=>Y.forEach(e,(e,n)=>i(e,n,t));if(Y.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Y.isString(e)&&(e=e.trim())&&!ed(e))a(Hu(e),t);else if(Y.isObject(e)&&Y.isIterable(e)){let n={},r,i;for(let t of e){if(!Y.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?Y.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Zu(e),e){let n=Y.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return $u(e);if(Y.isFunction(t))return t.call(this,e,n);if(Y.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=Zu(e),e){let n=Y.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||td(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=Zu(e),e){let i=Y.findKey(n,e);i&&(!t||td(n,n[i],i,t))&&(delete n[i],r=!0)}}return Y.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||td(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return Y.forEach(this,(r,i)=>{let a=Y.findKey(n,i);if(a){t[a]=Qu(r),delete t[i];return}let o=e?nd(i):String(i).trim();o!==i&&delete t[i],t[o]=Qu(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Y.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&Y.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
`)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Xu]=this[Xu]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=Zu(e);t[r]||(rd(n,e),t[r]=!0)}return Y.isArray(e)?e.forEach(r):r(e),this}};id.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),Y.reduceDescriptors(id.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Y.freezeMethods(id);var ad=`[REDACTED ****]`;function od(e){if(Y.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Y.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function sd(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||Y.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof id&&(e=e.toJSON()),r.push(e);let t;if(Y.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);Y.isUndefined(r)||(t[n]=r)});else{if(!Y.isPlainObject(e)&&od(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?ad:i(a);Y.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}var X=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&Y.hasOwnProp(e,`redact`)?e.redact:void 0,n=Y.isArray(t)&&t.length>0?sd(e,t):Y.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};X.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,X.ERR_BAD_OPTION=`ERR_BAD_OPTION`,X.ECONNABORTED=`ECONNABORTED`,X.ETIMEDOUT=`ETIMEDOUT`,X.ECONNREFUSED=`ECONNREFUSED`,X.ERR_NETWORK=`ERR_NETWORK`,X.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,X.ERR_DEPRECATED=`ERR_DEPRECATED`,X.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,X.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,X.ERR_CANCELED=`ERR_CANCELED`,X.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,X.ERR_INVALID_URL=`ERR_INVALID_URL`,X.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function cd(e){return Y.isPlainObject(e)||Y.isArray(e)}function ld(e){return Y.endsWith(e,`[]`)?e.slice(0,-2):e}function ud(e,t,n){return e?e.concat(t).map(function(e,t){return e=ld(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function dd(e){return Y.isArray(e)&&!e.some(cd)}var fd=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)});function pd(e,t,n){if(!Y.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Y.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||d,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<`u`&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=s&&Y.isSpecCompliantForm(t);if(!Y.isFunction(i))throw TypeError(`visitor must be a function`);function u(e){if(e===null)return``;if(Y.isDate(e))return e.toISOString();if(Y.isBoolean(e))return e.toString();if(!l&&Y.isBlob(e))throw new X(`Blob is not supported. Use a Buffer instead.`);return Y.isArrayBuffer(e)||Y.isTypedArray(e)?l&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function d(e,n,i){let s=e;if(Y.isReactNative(t)&&Y.isReactNativeBlob(e))return t.append(ud(i,n,a),u(e)),!1;if(e&&!i&&typeof e==`object`){if(Y.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Y.isArray(e)&&dd(e)||(Y.isFileList(e)||Y.endsWith(n,`[]`))&&(s=Y.toArray(e)))return n=ld(n),s.forEach(function(e,r){!(Y.isUndefined(e)||e===null)&&t.append(o===!0?ud([n],r,a):o===null?n:n+`[]`,u(e))}),!1}return cd(e)?!0:(t.append(ud(i,n,a),u(e)),!1)}let f=[],p=Object.assign(fd,{defaultVisitor:d,convertValue:u,isVisitable:cd});function m(e,n,r=0){if(!Y.isUndefined(e)){if(r>c)throw new X(`Object is too deeply nested (`+r+` levels). Max depth: `+c,X.ERR_FORM_DATA_DEPTH_EXCEEDED);if(f.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));f.push(e),Y.forEach(e,function(e,a){(!(Y.isUndefined(e)||e===null)&&i.call(t,e,Y.isString(a)?a.trim():a,n,p))===!0&&m(e,n?n.concat(a):[a],r+1)}),f.pop()}}if(!Y.isObject(e))throw TypeError(`data must be an object`);return m(e),t}function md(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function hd(e,t){this._pairs=[],e&&pd(e,this,t)}var gd=hd.prototype;gd.append=function(e,t){this._pairs.push([e,t])},gd.toString=function(e){let t=e?function(t){return e.call(this,t,md)}:md;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function _d(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function vd(e,t,n){if(!t)return e;let r=n&&n.encode||_d,i=Y.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(o=a?a(t,i):Y.isURLSearchParams(t)?t.toString():new hd(t,i).toString(r),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var yd=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){Y.forEach(this.handlers,function(t){t!==null&&e(t)})}},bd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},xd={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:hd,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Sd=n({hasBrowserEnv:()=>Cd,hasStandardBrowserEnv:()=>Td,hasStandardBrowserWebWorkerEnv:()=>Ed,navigator:()=>wd,origin:()=>Dd}),Cd=typeof window<`u`&&typeof document<`u`,wd=typeof navigator==`object`&&navigator||void 0,Td=Cd&&(!wd||[`ReactNative`,`NativeScript`,`NS`].indexOf(wd.product)<0),Ed=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Dd=Cd&&window.location.href||`http://localhost`,Od={...Sd,...xd};function kd(e,t){return pd(e,new Od.classes.URLSearchParams,{visitor:function(e,t,n,r){return Od.isNode&&Y.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function Ad(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function jd(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function Md(e){function t(e,n,r,i){let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&Y.isArray(r)?r.length:a,s?(Y.hasOwnProp(r,a)?r[a]=Y.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!Y.hasOwnProp(r,a)||!Y.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&Y.isArray(r[a])&&(r[a]=jd(r[a])),!o)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){let n={};return Y.forEachEntry(e,(e,r)=>{t(Ad(e),r,n,0)}),n}return null}var Nd=(e,t)=>e!=null&&Y.hasOwnProp(e,t)?e[t]:void 0;function Pd(e,t,n){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var Fd={transitional:bd,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=Y.isObject(e);if(i&&Y.isHTMLForm(e)&&(e=new FormData(e)),Y.isFormData(e))return r?JSON.stringify(Md(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e)||Y.isReadableStream(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=Nd(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return kd(e,t).toString();if((a=Y.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=Nd(this,`env`),r=n&&n.FormData;return pd(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Pd(e)):e}],transformResponse:[function(e){let t=Nd(this,`transitional`)||Fd.transitional,n=t&&t.forcedJSONParsing,r=Nd(this,`responseType`),i=r===`json`;if(Y.isResponse(e)||Y.isReadableStream(e))return e;if(e&&Y.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Nd(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?X.from(e,X.ERR_BAD_RESPONSE,this,null,Nd(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:Od.classes.FormData,Blob:Od.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};Y.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`],e=>{Fd.headers[e]={}});function Id(e,t){let n=this||Fd,r=t||n,i=id.from(r.headers),a=r.data;return Y.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Ld(e){return!!(e&&e.__CANCEL__)}var Rd=class extends X{constructor(e,t,n){super(e??`canceled`,X.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function zd(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new X(`Request failed with status code `+n.status,n.status>=400&&n.status<500?X.ERR_BAD_REQUEST:X.ERR_BAD_RESPONSE,n.config,n.request,n))}function Bd(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function Vd(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function Hd(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var Ud=(e,t,n=3)=>{let r=0,i=Vd(50,250);return Hd(n=>{if(!n||typeof n.loaded!=`number`)return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=o==null?a:Math.min(a,o),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},Wd=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Gd=e=>(...t)=>Y.asap(()=>e(...t)),Kd=Od.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Od.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Od.origin),Od.navigator&&/(msie|trident)/i.test(Od.navigator.userAgent)):()=>!0,qd=Od.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];Y.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Y.isString(r)&&s.push(`path=${r}`),Y.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),Y.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)return decodeURIComponent(r.slice(i+1))}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function Jd(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function Yd(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function Xd(e,t,n){let r=!Jd(t);return e&&(r||n===!1)?Yd(e,t):t}var Zd=e=>e instanceof id?{...e}:e;function Qd(e,t){t||={};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return Y.isPlainObject(e)&&Y.isPlainObject(t)?Y.merge.call({caseless:r},e,t):Y.isPlainObject(t)?Y.merge({},t):Y.isArray(t)?t.slice():t}function i(e,t,n,i){if(!Y.isUndefined(t))return r(e,t,n,i);if(!Y.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!Y.isUndefined(t))return r(void 0,t)}function o(e,t){if(!Y.isUndefined(t))return r(void 0,t);if(!Y.isUndefined(e))return r(void 0,e)}function s(n,i,a){if(Y.hasOwnProp(t,a))return r(n,i);if(Y.hasOwnProp(e,a))return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(Zd(e),Zd(t),n,!0)};return Y.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=Y.hasOwnProp(c,r)?c[r]:i,o=a(Y.hasOwnProp(e,r)?e[r]:void 0,Y.hasOwnProp(t,r)?t[r]:void 0,r);Y.isUndefined(o)&&a!==s||(n[r]=o)}),n}var $d=[`content-type`,`content-length`];function ef(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t).forEach(([t,n])=>{$d.includes(t.toLowerCase())&&e.set(t,n)})}var tf=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),nf=e=>{let t=Qd({},e),n=e=>Y.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=id.from(s),t.url=vd(Xd(l,d,u),e.params,e.paramsSerializer),c&&s.set(`Authorization`,`Basic `+btoa((c.username||``)+`:`+(c.password?tf(c.password):``))),Y.isFormData(r)&&(Od.hasStandardBrowserEnv||Od.hasStandardBrowserWebWorkerEnv?s.setContentType(void 0):Y.isFunction(r.getHeaders)&&ef(s,r.getHeaders(),n(`formDataHeaderPolicy`))),Od.hasStandardBrowserEnv&&(Y.isFunction(i)&&(i=i(t)),i===!0||i==null&&Kd(t.url))){let e=a&&o&&qd.read(o);e&&s.set(a,e)}return t},rf=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=nf(e),i=r.data,a=id.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=id.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());zd(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.startsWith(`file:`))||setTimeout(g)},h.onabort=function(){h&&=(n(new X(`Request aborted`,X.ECONNABORTED,e,h)),m(),null)},h.onerror=function(t){let r=new X(t&&t.message?t.message:`Network Error`,X.ERR_NETWORK,e,h);r.event=t||null,n(r),m(),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||bd;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new X(t,i.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,h)),m(),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&Y.forEach(Yu(a),function(e,t){h.setRequestHeader(t,e)}),Y.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=Ud(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=Ud(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new Rd(null,e,h):t),h.abort(),m(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=Bd(r.url);if(_&&!Od.protocols.includes(_)){n(new X(`Unsupported protocol `+_+`:`,X.ERR_BAD_REQUEST,e));return}h.send(i||null)})},af=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof X?t:new Rd(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new X(`timeout of ${t}ms exceeded`,X.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>Y.asap(o),s},of=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},sf=async function*(e,t){for await(let n of cf(e))yield*of(n,t)},cf=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},lf=(e,t,n,r)=>{let i=sf(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})};function uf(e){if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let t=e.indexOf(`,`);if(t<0)return 0;let n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length,t=r.length;for(let n=0;n<t;n++)if(r.charCodeAt(n)===37&&n+2<t){let t=r.charCodeAt(n+1),i=r.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102)&&(e-=2,n+=2)}let n=0,i=t-1,a=e=>e>=2&&r.charCodeAt(e-2)===37&&r.charCodeAt(e-1)===51&&(r.charCodeAt(e)===68||r.charCodeAt(e)===100);i>=0&&(r.charCodeAt(i)===61?(n++,i--):a(i)&&(n++,i-=3)),n===1&&i>=0&&(r.charCodeAt(i)===61||a(i))&&n++;let o=Math.floor(e/4)*3-(n||0);return o>0?o:0}if(typeof Buffer<`u`&&typeof Buffer.byteLength==`function`)return Buffer.byteLength(r,`utf8`);let i=0;for(let e=0,t=r.length;e<t;e++){let n=r.charCodeAt(e);if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=r.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}var df=`1.16.1`,ff=64*1024,{isFunction:pf}=Y,mf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},hf=e=>{let t=Y.global!==void 0&&Y.global!==null?Y.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=Y.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?pf(i):typeof fetch==`function`,c=pf(a),l=pf(o);if(!s)return!1;let u=s&&pf(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&mf(()=>{let e=!1,t=new a(Od.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&mf(()=>Y.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new X(`Response type '${e}' is not supported`,X.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e))return(await new a(Od.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(Y.isArrayBufferView(e)||Y.isArrayBuffer(e))return e.byteLength;if(Y.isURLSearchParams(e)&&(e+=``),Y.isString(e))return(await d(e)).byteLength},g=async(e,t)=>Y.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:u,timeout:d,onDownloadProgress:h,onUploadProgress:_,responseType:v,headers:y,withCredentials:b=`same-origin`,fetchOptions:x,maxContentLength:S,maxBodyLength:C}=nf(e),w=Y.isNumber(S)&&S>-1,ee=Y.isNumber(C)&&C>-1,te=i||fetch;v=v?(v+``).toLowerCase():`text`;let T=af([l,u&&u.toAbortSignal()],d),E=null,D=T&&T.unsubscribe&&(()=>{T.unsubscribe()}),ne;try{if(w&&typeof t==`string`&&t.startsWith(`data:`)&&uf(t)>S)throw new X(`maxContentLength size of `+S+` exceeded`,X.ERR_BAD_RESPONSE,e,E);if(ee&&n!==`get`&&n!==`head`){let t=await g(y,s);if(typeof t==`number`&&isFinite(t)&&t>C)throw new X(`Request body larger than maxBodyLength limit`,X.ERR_BAD_REQUEST,e,E)}if(_&&f&&n!==`get`&&n!==`head`&&(ne=await g(y,s))!==0){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(Y.isFormData(s)&&(n=e.headers.get(`content-type`))&&y.setContentType(n),e.body){let[t,n]=Wd(ne,Ud(Gd(_)));s=lf(e.body,ff,t,n)}}Y.isString(b)||(b=b?`include`:`omit`);let i=c&&`credentials`in a.prototype;if(Y.isFormData(s)){let e=y.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&y.delete(`content-type`)}y.set(`User-Agent`,`axios/`+df,!1);let l={...x,signal:T,method:n.toUpperCase(),headers:Yu(y.normalize()),body:s,duplex:`half`,credentials:i?b:void 0};E=c&&new a(t,l);let u=await(c?te(E,x):te(t,l));if(w){let t=Y.toFiniteNumber(u.headers.get(`content-length`));if(t!=null&&t>S)throw new X(`maxContentLength size of `+S+` exceeded`,X.ERR_BAD_RESPONSE,e,E)}let d=p&&(v===`stream`||v===`response`);if(p&&u.body&&(h||w||d&&D)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=u[e]});let n=Y.toFiniteNumber(u.headers.get(`content-length`)),[r,i]=h&&Wd(n,Ud(Gd(h),!0))||[],a=0;u=new o(lf(u.body,ff,t=>{if(w&&(a=t,a>S))throw new X(`maxContentLength size of `+S+` exceeded`,X.ERR_BAD_RESPONSE,e,E);r&&r(t)},()=>{i&&i(),D&&D()}),t)}v||=`text`;let O=await m[Y.findKey(m,v)||`text`](u,e);if(w&&!p&&!d){let t;if(O!=null&&(typeof O.byteLength==`number`?t=O.byteLength:typeof O.size==`number`?t=O.size:typeof O==`string`&&(t=typeof r==`function`?new r().encode(O).byteLength:O.length)),typeof t==`number`&&t>S)throw new X(`maxContentLength size of `+S+` exceeded`,X.ERR_BAD_RESPONSE,e,E)}return!d&&D&&D(),await new Promise((t,n)=>{zd(t,n,{data:O,headers:id.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:E})})}catch(t){if(D&&D(),T&&T.aborted&&T.reason instanceof X){let n=T.reason;throw n.config=e,E&&(n.request=E),t!==n&&(n.cause=t),n}throw t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new X(`Network Error`,X.ERR_NETWORK,e,E,t&&t.response),{cause:t.cause||t}):X.from(t,t&&t.code,e,E,t&&t.response)}}},gf=new Map,_f=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=gf;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:hf(t)),l=c;return c};_f();var vf={http:null,xhr:rf,fetch:{get:_f}};Y.forEach(vf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var yf=e=>`- ${e}`,bf=e=>Y.isFunction(e)||e===null||e===!1;function xf(e,t){e=Y.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!bf(r)&&(i=vf[(n=String(r)).toLowerCase()],i===void 0))throw new X(`Unknown adapter '${n}'`);if(i&&(Y.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new X(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
`+e.map(yf).join(`
`):` `+yf(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var Sf={getAdapter:xf,adapters:vf};function Cf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rd(null,e)}function wf(e){return Cf(e),e.headers=id.from(e.headers),e.data=Id.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),Sf.getAdapter(e.adapter||Fd.adapter,e)(e).then(function(t){Cf(e),e.response=t;try{t.data=Id.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=id.from(t.headers),t},function(t){if(!Ld(t)&&(Cf(e),t&&t.response)){e.response=t.response;try{t.response.data=Id.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=id.from(t.response.headers)}return Promise.reject(t)})}var Tf={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{Tf[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var Ef={};Tf.transitional=function(e,t,n){function r(e,t){return`[Axios v`+df+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new X(r(i,` has been removed`+(t?` in `+t:``)),X.ERR_DEPRECATED);return t&&!Ef[i]&&(Ef[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},Tf.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Df(e,t,n){if(typeof e!=`object`)throw new X(`options must be an object`,X.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new X(`option `+a+` must be `+n,X.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new X(`Unknown option `+a,X.ERR_BAD_OPTION)}}var Of={assertOptions:Df,validators:Tf},kf=Of.validators,Af=class{constructor(e){this.defaults=e||{},this.interceptors={request:new yd,response:new yd}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return``;let e=t.stack.indexOf(`
`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(`
`),r=t===-1?-1:n.indexOf(`
`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=`
`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=Qd(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Of.assertOptions(n,{silentJSONParsing:kf.transitional(kf.boolean),forcedJSONParsing:kf.transitional(kf.boolean),clarifyTimeoutError:kf.transitional(kf.boolean),legacyInterceptorReqResOrdering:kf.transitional(kf.boolean)},!1),r!=null&&(Y.isFunction(r)?t.paramsSerializer={serialize:r}:Of.assertOptions(r,{encode:kf.function,serialize:kf.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Of.assertOptions(t,{baseUrl:kf.spelling(`baseURL`),withXsrfToken:kf.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&Y.merge(i.common,i[t.method]);i&&Y.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`,`common`],e=>{delete i[e]}),t.headers=id.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||bd;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[wf.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=wf.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=Qd(this.defaults,e),vd(Xd(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Y.forEach([`delete`,`get`,`head`,`options`],function(e){Af.prototype[e]=function(t,n){return this.request(Qd(n||{},{method:e,url:t,data:(n||{}).data}))}}),Y.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(Qd(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}Af.prototype[e]=t(),e!==`query`&&(Af.prototype[e+`Form`]=t(!0))});var jf=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Rd(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function Mf(e){return function(t){return e.apply(null,t)}}function Nf(e){return Y.isObject(e)&&e.isAxiosError===!0}var Pf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Pf).forEach(([e,t])=>{Pf[t]=e});function Ff(e){let t=new Af(e),n=Al(Af.prototype.request,t);return Y.extend(n,Af.prototype,t,{allOwnKeys:!0}),Y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Ff(Qd(e,t))},n}var Z=Ff(Fd);Z.Axios=Af,Z.CanceledError=Rd,Z.CancelToken=jf,Z.isCancel=Ld,Z.VERSION=df,Z.toFormData=pd,Z.AxiosError=X,Z.Cancel=Z.CanceledError,Z.all=function(e){return Promise.all(e)},Z.spread=Mf,Z.isAxiosError=Nf,Z.mergeConfig=Qd,Z.AxiosHeaders=id,Z.formToJSON=e=>Md(Y.isHTMLForm(e)?new FormData(e):e),Z.getAdapter=Sf.getAdapter,Z.HttpStatusCode=Pf,Z.default=Z;var Q=Z.create({baseURL:`http://localhost:3000/api`,withCredentials:!0,headers:{"Content-Type":`application/json`}});Q.interceptors.response.use(e=>e,async e=>{let t=e.config;if(e.response?.status===401&&!t._retry){t._retry=!0;try{return await Z.post(`${Q.defaults.baseURL}/auth/refresh`,{},{withCredentials:!0}),Q(t)}catch{return Promise.reject(e)}}return Promise.reject(e)});var If=Es(`auth`,()=>{let e=F(null),t=F(!1),n=G(()=>!!e.value),r=G(()=>e.value?.role===`admin`),i=G(()=>e.value?.role===`artist`),a=G(()=>new Set(e.value?.likedTracks||[]));async function o(){try{let{data:t}=await Q.get(`/auth/me`);t.success&&(e.value=t.data.user)}catch{e.value=null}}async function s(n,r){t.value=!0;try{let{data:t}=await Q.post(`/auth/login`,{identifier:n,password:r});return t.success&&(e.value=t.data.user),{success:!0}}catch(e){return{success:!1,message:e.response?.data?.message||`Login failed`}}finally{t.value=!1}}async function c(n){t.value=!0;try{let{data:t}=await Q.post(`/auth/register`,n);return t.success&&(e.value=t.data.user),{success:!0}}catch(e){return{success:!1,message:e.response?.data?.message||`Registration failed`}}finally{t.value=!1}}async function l(){try{await Q.post(`/auth/logout`)}finally{e.value=null}}async function u(n){t.value=!0;try{let{data:t}=await Q.put(`/auth/profile`,n,{headers:{"Content-Type":`multipart/form-data`}});return t.success&&(e.value=t.data),{success:!0}}catch(e){return{success:!1,message:e.response?.data?.message||`Update failed`}}finally{t.value=!1}}async function d(t){let n=a.value.has(t);try{n?(await Q.delete(`/tracks/${t}/like`),e.value&&(e.value.likedTracks=e.value.likedTracks.filter(e=>e!==t))):(await Q.post(`/tracks/${t}/like`),e.value&&e.value.likedTracks.push(t))}catch{}}return{user:e,loading:t,isLoggedIn:n,isAdmin:r,isArtist:i,likedTrackIds:a,checkSession:o,login:s,register:c,logout:l,updateProfile:u,toggleLike:d}}),Lf=n({useUiStore:()=>Rf}),Rf=Es(`ui`,()=>{let e=F([]),t=0;function n(n,r=`info`){let i=++t;e.value.push({id:i,message:n,type:r}),setTimeout(()=>{e.value=e.value.filter(e=>e.id!==i)},3e3)}function r(t){e.value=e.value.filter(e=>e.id!==t)}return{toasts:e,showToast:n,dismissToast:r}}),zf=t((e=>{(function(){var t=function(){this.init()};t.prototype={init:function(){var e=this||n;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent=`canplaythrough`,e._navigator=typeof window<`u`&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||n;if(e=parseFloat(e),t.ctx||u(),e!==void 0&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,n.ctx.currentTime);for(var r=0;r<t._howls.length;r++)if(!t._howls[r]._webAudio)for(var i=t._howls[r]._getSoundIds(),a=0;a<i.length;a++){var o=t._howls[r]._soundById(i[a]);o&&o._node&&(o._node.volume=o._volume*e)}return t}return t._volume},mute:function(e){var t=this||n;t.ctx||u(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,n.ctx.currentTime);for(var r=0;r<t._howls.length;r++)if(!t._howls[r]._webAudio)for(var i=t._howls[r]._getSoundIds(),a=0;a<i.length;a++){var o=t._howls[r]._soundById(i[a]);o&&o._node&&(o._node.muted=e?!0:o._muted)}return t},stop:function(){for(var e=this||n,t=0;t<e._howls.length;t++)e._howls[t].stop();return e},unload:function(){for(var e=this||n,t=e._howls.length-1;t>=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&e.ctx.close!==void 0&&(e.ctx.close(),e.ctx=null,u()),e},codecs:function(e){return(this||n)._codecs[e.replace(/^x-/,``)]},_setup:function(){var e=this||n;if(e.state=e.ctx&&e.ctx.state||`suspended`,e._autoSuspend(),!e.usingWebAudio)if(typeof Audio<`u`)try{var t=new Audio;t.oncanplaythrough===void 0&&(e._canPlayEvent=`canplay`)}catch{e.noAudio=!0}else e.noAudio=!0;try{var t=new Audio;t.muted&&(e.noAudio=!0)}catch{}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||n,t=null;try{t=typeof Audio<`u`?new Audio:null}catch{return e}if(!t||typeof t.canPlayType!=`function`)return e;var r=t.canPlayType(`audio/mpeg;`).replace(/^no$/,``),i=e._navigator?e._navigator.userAgent:``,a=i.match(/OPR\/(\d+)/g),o=a&&parseInt(a[0].split(`/`)[1],10)<33,s=i.indexOf(`Safari`)!==-1&&i.indexOf(`Chrome`)===-1,c=i.match(/Version\/(.*?) /),l=s&&c&&parseInt(c[1],10)<15;return e._codecs={mp3:!!(!o&&(r||t.canPlayType(`audio/mp3;`).replace(/^no$/,``))),mpeg:!!r,opus:!!t.canPlayType(`audio/ogg; codecs="opus"`).replace(/^no$/,``),ogg:!!t.canPlayType(`audio/ogg; codecs="vorbis"`).replace(/^no$/,``),oga:!!t.canPlayType(`audio/ogg; codecs="vorbis"`).replace(/^no$/,``),wav:!!(t.canPlayType(`audio/wav; codecs="1"`)||t.canPlayType(`audio/wav`)).replace(/^no$/,``),aac:!!t.canPlayType(`audio/aac;`).replace(/^no$/,``),caf:!!t.canPlayType(`audio/x-caf;`).replace(/^no$/,``),m4a:!!(t.canPlayType(`audio/x-m4a;`)||t.canPlayType(`audio/m4a;`)||t.canPlayType(`audio/aac;`)).replace(/^no$/,``),m4b:!!(t.canPlayType(`audio/x-m4b;`)||t.canPlayType(`audio/m4b;`)||t.canPlayType(`audio/aac;`)).replace(/^no$/,``),mp4:!!(t.canPlayType(`audio/x-mp4;`)||t.canPlayType(`audio/mp4;`)||t.canPlayType(`audio/aac;`)).replace(/^no$/,``),weba:!!(!l&&t.canPlayType(`audio/webm; codecs="vorbis"`).replace(/^no$/,``)),webm:!!(!l&&t.canPlayType(`audio/webm; codecs="vorbis"`).replace(/^no$/,``)),dolby:!!t.canPlayType(`audio/mp4; codecs="ec-3"`).replace(/^no$/,``),flac:!!(t.canPlayType(`audio/x-flac;`)||t.canPlayType(`audio/flac;`)).replace(/^no$/,``)},e},_unlockAudio:function(){var e=this||n;if(!(e._audioUnlocked||!e.ctx)){e._audioUnlocked=!1,e.autoUnlock=!1,!e._mobileUnloaded&&e.ctx.sampleRate!==44100&&(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function(n){for(;e._html5AudioPool.length<e.html5PoolSize;)try{var r=new Audio;r._unlocked=!0,e._releaseHtml5Audio(r)}catch{e.noAudio=!0;break}for(var i=0;i<e._howls.length;i++)if(!e._howls[i]._webAudio)for(var a=e._howls[i]._getSoundIds(),o=0;o<a.length;o++){var s=e._howls[i]._soundById(a[o]);s&&s._node&&!s._node._unlocked&&(s._node._unlocked=!0,s._node.load())}e._autoResume();var c=e.ctx.createBufferSource();c.buffer=e._scratchBuffer,c.connect(e.ctx.destination),c.start===void 0?c.noteOn(0):c.start(0),typeof e.ctx.resume==`function`&&e.ctx.resume(),c.onended=function(){c.disconnect(0),e._audioUnlocked=!0,document.removeEventListener(`touchstart`,t,!0),document.removeEventListener(`touchend`,t,!0),document.removeEventListener(`click`,t,!0),document.removeEventListener(`keydown`,t,!0);for(var n=0;n<e._howls.length;n++)e._howls[n]._emit(`unlock`)}};return document.addEventListener(`touchstart`,t,!0),document.addEventListener(`touchend`,t,!0),document.addEventListener(`click`,t,!0),document.addEventListener(`keydown`,t,!0),e}},_obtainHtml5Audio:function(){var e=this||n;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var t=new Audio().play();return t&&typeof Promise<`u`&&(t instanceof Promise||typeof t.then==`function`)&&t.catch(function(){console.warn(`HTML5 Audio pool exhausted, returning potentially locked audio object.`)}),new Audio},_releaseHtml5Audio:function(e){var t=this||n;return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(!(!e.autoSuspend||!e.ctx||e.ctx.suspend===void 0||!n.usingWebAudio)){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio){for(var r=0;r<e._howls[t]._sounds.length;r++)if(!e._howls[t]._sounds[r]._paused)return e}return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout(function(){if(e.autoSuspend){e._suspendTimer=null,e.state=`suspending`;var t=function(){e.state=`suspended`,e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())};e.ctx.suspend().then(t,t)}},3e4),e}},_autoResume:function(){var e=this;if(!(!e.ctx||e.ctx.resume===void 0||!n.usingWebAudio))return e.state===`running`&&e.ctx.state!==`interrupted`&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):e.state===`suspended`||e.state===`running`&&e.ctx.state===`interrupted`?(e.ctx.resume().then(function(){e.state=`running`;for(var t=0;t<e._howls.length;t++)e._howls[t]._emit(`resume`)}),e._suspendTimer&&=(clearTimeout(e._suspendTimer),null)):e.state===`suspending`&&(e._resumeAfterSuspend=!0),e}};var n=new t,r=function(e){var t=this;if(!e.src||e.src.length===0){console.error(`An array of source files must be passed with any new Howl.`);return}t.init(e)};r.prototype={init:function(e){var t=this;return n.ctx||u(),t._autoplay=e.autoplay||!1,t._format=typeof e.format==`string`?[e.format]:e.format,t._html5=e.html5||!1,t._muted=e.mute||!1,t._loop=e.loop||!1,t._pool=e.pool||5,t._preload=typeof e.preload==`boolean`||e.preload===`metadata`?e.preload:!0,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src=typeof e.src==`string`?[e.src]:e.src,t._volume=e.volume===void 0?1:e.volume,t._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:`GET`,headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:e.xhr&&e.xhr.withCredentials?e.xhr.withCredentials:!1},t._duration=0,t._state=`unloaded`,t._sounds=[],t._endTimers={},t._queue=[],t._playLock=!1,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onload=e.onload?[{fn:e.onload}]:[],t._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=n.usingWebAudio&&!t._html5,n.ctx!==void 0&&n.ctx&&n.autoUnlock&&n._unlockAudio(),n._howls.push(t),t._autoplay&&t._queue.push({event:`play`,action:function(){t.play()}}),t._preload&&t._preload!==`none`&&t.load(),t},load:function(){var e=this,t=null;if(n.noAudio){e._emit(`loaderror`,null,`No audio support.`);return}typeof e._src==`string`&&(e._src=[e._src]);for(var r=0;r<e._src.length;r++){var a,s;if(e._format&&e._format[r])a=e._format[r];else{if(s=e._src[r],typeof s!=`string`){e._emit(`loaderror`,null,`Non-string found in selected audio sources - ignoring.`);continue}a=/^data:audio\/([^;,]+);/i.exec(s),a||=/\.([^.]+)$/.exec(s.split(`?`,1)[0]),a&&=a[1].toLowerCase()}if(a||console.warn(`No file extension was found. Consider using the "format" property or specify an extension.`),a&&n.codecs(a)){t=e._src[r];break}}if(!t){e._emit(`loaderror`,null,`No codec support for selected audio sources.`);return}return e._src=t,e._state=`loading`,window.location.protocol===`https:`&&t.slice(0,5)===`http:`&&(e._html5=!0,e._webAudio=!1),new i(e),e._webAudio&&o(e),e},play:function(e,t){var r=this,i=null;if(typeof e==`number`)i=e,e=null;else if(typeof e==`string`&&r._state===`loaded`&&!r._sprite[e])return null;else if(e===void 0&&(e=`__default`,!r._playLock)){for(var a=0,o=0;o<r._sounds.length;o++)r._sounds[o]._paused&&!r._sounds[o]._ended&&(a++,i=r._sounds[o]._id);a===1?e=null:i=null}var s=i?r._soundById(i):r._inactiveSound();if(!s)return null;if(i&&!e&&(e=s._sprite||`__default`),r._state!==`loaded`){s._sprite=e,s._ended=!1;var c=s._id;return r._queue.push({event:`play`,action:function(){r.play(c)}}),c}if(i&&!s._paused)return t||r._loadQueue(`play`),s._id;r._webAudio&&n._autoResume();var l=Math.max(0,s._seek>0?s._seek:r._sprite[e][0]/1e3),u=Math.max(0,(r._sprite[e][0]+r._sprite[e][1])/1e3-l),d=u*1e3/Math.abs(s._rate),f=r._sprite[e][0]/1e3,p=(r._sprite[e][0]+r._sprite[e][1])/1e3;s._sprite=e,s._ended=!1;var m=function(){s._paused=!1,s._seek=l,s._start=f,s._stop=p,s._loop=!!(s._loop||r._sprite[e][2])};if(l>=p){r._ended(s);return}var h=s._node;if(r._webAudio){var g=function(){r._playLock=!1,m(),r._refreshBuffer(s);var e=s._muted||r._muted?0:s._volume;h.gain.setValueAtTime(e,n.ctx.currentTime),s._playStart=n.ctx.currentTime,h.bufferSource.start===void 0?s._loop?h.bufferSource.noteGrainOn(0,l,86400):h.bufferSource.noteGrainOn(0,l,u):s._loop?h.bufferSource.start(0,l,86400):h.bufferSource.start(0,l,u),d!==1/0&&(r._endTimers[s._id]=setTimeout(r._ended.bind(r,s),d)),t||setTimeout(function(){r._emit(`play`,s._id),r._loadQueue()},0)};n.state===`running`&&n.ctx.state!==`interrupted`?g():(r._playLock=!0,r.once(`resume`,g),r._clearTimer(s._id))}else{var _=function(){h.currentTime=l,h.muted=s._muted||r._muted||n._muted||h.muted,h.volume=s._volume*n.volume(),h.playbackRate=s._rate;try{var i=h.play();if(i&&typeof Promise<`u`&&(i instanceof Promise||typeof i.then==`function`)?(r._playLock=!0,m(),i.then(function(){r._playLock=!1,h._unlocked=!0,t?r._loadQueue():r._emit(`play`,s._id)}).catch(function(){r._playLock=!1,r._emit(`playerror`,s._id,`Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.`),s._ended=!0,s._paused=!0})):t||(r._playLock=!1,m(),r._emit(`play`,s._id)),h.playbackRate=s._rate,h.paused){r._emit(`playerror`,s._id,`Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.`);return}e!==`__default`||s._loop?r._endTimers[s._id]=setTimeout(r._ended.bind(r,s),d):(r._endTimers[s._id]=function(){r._ended(s),h.removeEventListener(`ended`,r._endTimers[s._id],!1)},h.addEventListener(`ended`,r._endTimers[s._id],!1))}catch(e){r._emit(`playerror`,s._id,e)}};h.src===`data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA`&&(h.src=r._src,h.load());var v=window&&window.ejecta||!h.readyState&&n._navigator.isCocoonJS;if(h.readyState>=3||v)_();else{r._playLock=!0,r._state=`loading`;var y=function(){r._state=`loaded`,_(),h.removeEventListener(n._canPlayEvent,y,!1)};h.addEventListener(n._canPlayEvent,y,!1),r._clearTimer(s._id)}}return s._id},pause:function(e){var t=this;if(t._state!==`loaded`||t._playLock)return t._queue.push({event:`pause`,action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),r=0;r<n.length;r++){t._clearTimer(n[r]);var i=t._soundById(n[r]);if(i&&!i._paused&&(i._seek=t.seek(n[r]),i._rateSeek=0,i._paused=!0,t._stopFade(n[r]),i._node))if(t._webAudio){if(!i._node.bufferSource)continue;i._node.bufferSource.stop===void 0?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),t._cleanBuffer(i._node)}else (!isNaN(i._node.duration)||i._node.duration===1/0)&&i._node.pause();arguments[1]||t._emit(`pause`,i?i._id:null)}return t},stop:function(e,t){var n=this;if(n._state!==`loaded`||n._playLock)return n._queue.push({event:`stop`,action:function(){n.stop(e)}}),n;for(var r=n._getSoundIds(e),i=0;i<r.length;i++){n._clearTimer(r[i]);var a=n._soundById(r[i]);a&&(a._seek=a._start||0,a._rateSeek=0,a._paused=!0,a._ended=!0,n._stopFade(r[i]),a._node&&(n._webAudio?a._node.bufferSource&&(a._node.bufferSource.stop===void 0?a._node.bufferSource.noteOff(0):a._node.bufferSource.stop(0),n._cleanBuffer(a._node)):(!isNaN(a._node.duration)||a._node.duration===1/0)&&(a._node.currentTime=a._start||0,a._node.pause(),a._node.duration===1/0&&n._clearSound(a._node))),t||n._emit(`stop`,a._id))}return n},mute:function(e,t){var r=this;if(r._state!==`loaded`||r._playLock)return r._queue.push({event:`mute`,action:function(){r.mute(e,t)}}),r;if(t===void 0)if(typeof e==`boolean`)r._muted=e;else return r._muted;for(var i=r._getSoundIds(t),a=0;a<i.length;a++){var o=r._soundById(i[a]);o&&(o._muted=e,o._interval&&r._stopFade(o._id),r._webAudio&&o._node?o._node.gain.setValueAtTime(e?0:o._volume,n.ctx.currentTime):o._node&&(o._node.muted=n._muted?!0:e),r._emit(`mute`,o._id))}return r},volume:function(){var e=this,t=arguments,r,i;if(t.length===0)return e._volume;t.length===1||t.length===2&&t[1]===void 0?e._getSoundIds().indexOf(t[0])>=0?i=parseInt(t[0],10):r=parseFloat(t[0]):t.length>=2&&(r=parseFloat(t[0]),i=parseInt(t[1],10));var a;if(r!==void 0&&r>=0&&r<=1){if(e._state!==`loaded`||e._playLock)return e._queue.push({event:`volume`,action:function(){e.volume.apply(e,t)}}),e;i===void 0&&(e._volume=r),i=e._getSoundIds(i);for(var o=0;o<i.length;o++)a=e._soundById(i[o]),a&&(a._volume=r,t[2]||e._stopFade(i[o]),e._webAudio&&a._node&&!a._muted?a._node.gain.setValueAtTime(r,n.ctx.currentTime):a._node&&!a._muted&&(a._node.volume=r*n.volume()),e._emit(`volume`,a._id))}else return a=i?e._soundById(i):e._sounds[0],a?a._volume:0;return e},fade:function(e,t,r,i){var a=this;if(a._state!==`loaded`||a._playLock)return a._queue.push({event:`fade`,action:function(){a.fade(e,t,r,i)}}),a;e=Math.min(Math.max(0,parseFloat(e)),1),t=Math.min(Math.max(0,parseFloat(t)),1),r=parseFloat(r),a.volume(e,i);for(var o=a._getSoundIds(i),s=0;s<o.length;s++){var c=a._soundById(o[s]);if(c){if(i||a._stopFade(o[s]),a._webAudio&&!c._muted){var l=n.ctx.currentTime,u=l+r/1e3;c._volume=e,c._node.gain.setValueAtTime(e,l),c._node.gain.linearRampToValueAtTime(t,u)}a._startFadeInterval(c,e,t,r,o[s],i===void 0)}}return a},_startFadeInterval:function(e,t,n,r,i,a){var o=this,s=t,c=n-t,l=Math.abs(c/.01),u=Math.max(4,l>0?r/l:r),d=Date.now();e._fadeTo=n,e._interval=setInterval(function(){var i=(Date.now()-d)/r;d=Date.now(),s+=c*i,s=Math.round(s*100)/100,s=c<0?Math.max(n,s):Math.min(n,s),o._webAudio?e._volume=s:o.volume(s,e._id,!0),a&&(o._volume=s),(n<t&&s<=n||n>t&&s>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,o.volume(n,e._id),o._emit(`fade`,e._id))},u)},_stopFade:function(e){var t=this,r=t._soundById(e);return r&&r._interval&&(t._webAudio&&r._node.gain.cancelScheduledValues(n.ctx.currentTime),clearInterval(r._interval),r._interval=null,t.volume(r._fadeTo,e),r._fadeTo=null,t._emit(`fade`,e)),t},loop:function(){var e=this,t=arguments,n,r,i;if(t.length===0)return e._loop;if(t.length===1)if(typeof t[0]==`boolean`)n=t[0],e._loop=n;else return i=e._soundById(parseInt(t[0],10)),i?i._loop:!1;else t.length===2&&(n=t[0],r=parseInt(t[1],10));for(var a=e._getSoundIds(r),o=0;o<a.length;o++)i=e._soundById(a[o]),i&&(i._loop=n,e._webAudio&&i._node&&i._node.bufferSource&&(i._node.bufferSource.loop=n,n&&(i._node.bufferSource.loopStart=i._start||0,i._node.bufferSource.loopEnd=i._stop,e.playing(a[o])&&(e.pause(a[o],!0),e.play(a[o],!0)))));return e},rate:function(){var e=this,t=arguments,r,i;t.length===0?i=e._sounds[0]._id:t.length===1?e._getSoundIds().indexOf(t[0])>=0?i=parseInt(t[0],10):r=parseFloat(t[0]):t.length===2&&(r=parseFloat(t[0]),i=parseInt(t[1],10));var a;if(typeof r==`number`){if(e._state!==`loaded`||e._playLock)return e._queue.push({event:`rate`,action:function(){e.rate.apply(e,t)}}),e;i===void 0&&(e._rate=r),i=e._getSoundIds(i);for(var o=0;o<i.length;o++)if(a=e._soundById(i[o]),a){e.playing(i[o])&&(a._rateSeek=e.seek(i[o]),a._playStart=e._webAudio?n.ctx.currentTime:a._playStart),a._rate=r,e._webAudio&&a._node&&a._node.bufferSource?a._node.bufferSource.playbackRate.setValueAtTime(r,n.ctx.currentTime):a._node&&(a._node.playbackRate=r);var s=e.seek(i[o]),c=((e._sprite[a._sprite][0]+e._sprite[a._sprite][1])/1e3-s)*1e3/Math.abs(a._rate);(e._endTimers[i[o]]||!a._paused)&&(e._clearTimer(i[o]),e._endTimers[i[o]]=setTimeout(e._ended.bind(e,a),c)),e._emit(`rate`,a._id)}}else return a=e._soundById(i),a?a._rate:e._rate;return e},seek:function(){var e=this,t=arguments,r,i;if(t.length===0?e._sounds.length&&(i=e._sounds[0]._id):t.length===1?e._getSoundIds().indexOf(t[0])>=0?i=parseInt(t[0],10):e._sounds.length&&(i=e._sounds[0]._id,r=parseFloat(t[0])):t.length===2&&(r=parseFloat(t[0]),i=parseInt(t[1],10)),i===void 0)return 0;if(typeof r==`number`&&(e._state!==`loaded`||e._playLock))return e._queue.push({event:`seek`,action:function(){e.seek.apply(e,t)}}),e;var a=e._soundById(i);if(a)if(typeof r==`number`&&r>=0){var o=e.playing(i);o&&e.pause(i,!0),a._seek=r,a._ended=!1,e._clearTimer(i),!e._webAudio&&a._node&&!isNaN(a._node.duration)&&(a._node.currentTime=r);var s=function(){o&&e.play(i,!0),e._emit(`seek`,i)};if(o&&!e._webAudio){var c=function(){e._playLock?setTimeout(c,0):s()};setTimeout(c,0)}else s()}else if(e._webAudio){var l=e.playing(i)?n.ctx.currentTime-a._playStart:0,u=a._rateSeek?a._rateSeek-a._seek:0;return a._seek+(u+l*Math.abs(a._rate))}else return a._node.currentTime;return e},playing:function(e){var t=this;if(typeof e==`number`){var n=t._soundById(e);return n?!n._paused:!1}for(var r=0;r<t._sounds.length;r++)if(!t._sounds[r]._paused)return!0;return!1},duration:function(e){var t=this,n=t._duration,r=t._soundById(e);return r&&(n=t._sprite[r._sprite][1]/1e3),n},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,r=0;r<t.length;r++)t[r]._paused||e.stop(t[r]._id),e._webAudio||(e._clearSound(t[r]._node),t[r]._node.removeEventListener(`error`,t[r]._errorFn,!1),t[r]._node.removeEventListener(n._canPlayEvent,t[r]._loadFn,!1),t[r]._node.removeEventListener(`ended`,t[r]._endFn,!1),n._releaseHtml5Audio(t[r]._node)),delete t[r]._node,e._clearTimer(t[r]._id);var i=n._howls.indexOf(e);i>=0&&n._howls.splice(i,1);var o=!0;for(r=0;r<n._howls.length;r++)if(n._howls[r]._src===e._src||e._src.indexOf(n._howls[r]._src)>=0){o=!1;break}return a&&o&&delete a[e._src],n.noAudio=!1,e._state=`unloaded`,e._sounds=[],e=null,null},on:function(e,t,n,r){var i=this,a=i[`_on`+e];return typeof t==`function`&&a.push(r?{id:n,fn:t,once:r}:{id:n,fn:t}),i},off:function(e,t,n){var r=this,i=r[`_on`+e],a=0;if(typeof t==`number`&&(n=t,t=null),t||n)for(a=0;a<i.length;a++){var o=n===i[a].id;if(t===i[a].fn&&o||!t&&o){i.splice(a,1);break}}else if(e)r[`_on`+e]=[];else{var s=Object.keys(r);for(a=0;a<s.length;a++)s[a].indexOf(`_on`)===0&&Array.isArray(r[s[a]])&&(r[s[a]]=[])}return r},once:function(e,t,n){var r=this;return r.on(e,t,n,1),r},_emit:function(e,t,n){for(var r=this,i=r[`_on`+e],a=i.length-1;a>=0;a--)(!i[a].id||i[a].id===t||e===`load`)&&(setTimeout(function(e){e.call(this,t,n)}.bind(r,i[a].fn),0),i[a].once&&r.off(e,i[a].fn,i[a].id));return r._loadQueue(e),r},_loadQueue:function(e){var t=this;if(t._queue.length>0){var n=t._queue[0];n.event===e&&(t._queue.shift(),t._loadQueue()),e||n.action()}return t},_ended:function(e){var t=this,r=e._sprite;if(!t._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(t._ended.bind(t,e),100),t;var i=!!(e._loop||t._sprite[r][2]);if(t._emit(`end`,e._id),!t._webAudio&&i&&t.stop(e._id,!0).play(e._id),t._webAudio&&i){t._emit(`play`,e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=n.ctx.currentTime;var a=(e._stop-e._start)*1e3/Math.abs(e._rate);t._endTimers[e._id]=setTimeout(t._ended.bind(t,e),a)}return t._webAudio&&!i&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,t._clearTimer(e._id),t._cleanBuffer(e._node),n._autoSuspend()),!t._webAudio&&!i&&t.stop(e._id,!0),t},_clearTimer:function(e){var t=this;if(t._endTimers[e]){if(typeof t._endTimers[e]!=`function`)clearTimeout(t._endTimers[e]);else{var n=t._soundById(e);n&&n._node&&n._node.removeEventListener(`ended`,t._endTimers[e],!1)}delete t._endTimers[e]}return t},_soundById:function(e){for(var t=this,n=0;n<t._sounds.length;n++)if(e===t._sounds[n]._id)return t._sounds[n];return null},_inactiveSound:function(){var e=this;e._drain();for(var t=0;t<e._sounds.length;t++)if(e._sounds[t]._ended)return e._sounds[t].reset();return new i(e)},_drain:function(){var e=this,t=e._pool,n=0,r=0;if(!(e._sounds.length<t)){for(r=0;r<e._sounds.length;r++)e._sounds[r]._ended&&n++;for(r=e._sounds.length-1;r>=0;r--){if(n<=t)return;e._sounds[r]._ended&&(e._webAudio&&e._sounds[r]._node&&e._sounds[r]._node.disconnect(0),e._sounds.splice(r,1),n--)}}},_getSoundIds:function(e){var t=this;if(e===void 0){for(var n=[],r=0;r<t._sounds.length;r++)n.push(t._sounds[r]._id);return n}else return[e]},_refreshBuffer:function(e){var t=this;return e._node.bufferSource=n.ctx.createBufferSource(),e._node.bufferSource.buffer=a[t._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,n.ctx.currentTime),t},_cleanBuffer:function(e){var t=this,r=n._navigator&&n._navigator.vendor.indexOf(`Apple`)>=0;if(!e.bufferSource)return t;if(n._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),r))try{e.bufferSource.buffer=n._scratchBuffer}catch{}return e.bufferSource=null,t},_clearSound:function(e){/MSIE |Trident\//.test(n._navigator&&n._navigator.userAgent)||(e.src=`data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA`)}};var i=function(e){this._parent=e,this.init()};i.prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite=`__default`,e._id=++n._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,r=n._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=n.ctx.createGain===void 0?n.ctx.createGainNode():n.ctx.createGain(),e._node.gain.setValueAtTime(r,n.ctx.currentTime),e._node.paused=!0,e._node.connect(n.masterGain)):n.noAudio||(e._node=n._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener(`error`,e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(n._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener(`ended`,e._endFn,!1),e._node.src=t._src,e._node.preload=t._preload===!0?`auto`:t._preload,e._node.volume=r*n.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite=`__default`,e._id=++n._counter,e},_errorListener:function(){var e=this;e._parent._emit(`loaderror`,e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener(`error`,e._errorFn,!1)},_loadListener:function(){var e=this,t=e._parent;t._duration=Math.ceil(e._node.duration*10)/10,Object.keys(t._sprite).length===0&&(t._sprite={__default:[0,t._duration*1e3]}),t._state!==`loaded`&&(t._state=`loaded`,t._emit(`load`),t._loadQueue()),e._node.removeEventListener(n._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,t=e._parent;t._duration===1/0&&(t._duration=Math.ceil(e._node.duration*10)/10,t._sprite.__default[1]===1/0&&(t._sprite.__default[1]=t._duration*1e3),t._ended(e)),e._node.removeEventListener(`ended`,e._endFn,!1)}};var a={},o=function(e){var t=e._src;if(a[t]){e._duration=a[t].duration,l(e);return}if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(`,`)[1]),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);c(r.buffer,e)}else{var o=new XMLHttpRequest;o.open(e._xhr.method,t,!0),o.withCredentials=e._xhr.withCredentials,o.responseType=`arraybuffer`,e._xhr.headers&&Object.keys(e._xhr.headers).forEach(function(t){o.setRequestHeader(t,e._xhr.headers[t])}),o.onload=function(){var t=(o.status+``)[0];if(t!==`0`&&t!==`2`&&t!==`3`){e._emit(`loaderror`,null,`Failed loading audio file with status: `+o.status+`.`);return}c(o.response,e)},o.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete a[t],e.load())},s(o)}},s=function(e){try{e.send()}catch{e.onerror()}},c=function(e,t){var r=function(){t._emit(`loaderror`,null,`Decoding audio data failed.`)},i=function(e){e&&t._sounds.length>0?(a[t._src]=e,l(t,e)):r()};typeof Promise<`u`&&n.ctx.decodeAudioData.length===1?n.ctx.decodeAudioData(e).then(i).catch(r):n.ctx.decodeAudioData(e,i,r)},l=function(e,t){t&&!e._duration&&(e._duration=t.duration),Object.keys(e._sprite).length===0&&(e._sprite={__default:[0,e._duration*1e3]}),e._state!==`loaded`&&(e._state=`loaded`,e._emit(`load`),e._loadQueue())},u=function(){if(n.usingWebAudio){try{typeof AudioContext<`u`?n.ctx=new AudioContext:typeof webkitAudioContext<`u`?n.ctx=new webkitAudioContext:n.usingWebAudio=!1}catch{n.usingWebAudio=!1}n.ctx||(n.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(n._navigator&&n._navigator.platform),t=n._navigator&&n._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),r=t?parseInt(t[1],10):null;if(e&&r&&r<9){var i=/safari/.test(n._navigator&&n._navigator.userAgent.toLowerCase());n._navigator&&!i&&(n.usingWebAudio=!1)}n.usingWebAudio&&(n.masterGain=n.ctx.createGain===void 0?n.ctx.createGainNode():n.ctx.createGain(),n.masterGain.gain.setValueAtTime(n._muted?0:n._volume,n.ctx.currentTime),n.masterGain.connect(n.ctx.destination)),n._setup()}};typeof define==`function`&&define.amd&&define([],function(){return{Howler:n,Howl:r}}),e!==void 0&&(e.Howler=n,e.Howl=r),typeof global<`u`?(global.HowlerGlobal=t,global.Howler=n,global.Howl=r,global.Sound=i):typeof window<`u`&&(window.HowlerGlobal=t,window.Howler=n,window.Howl=r,window.Sound=i)})(),(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var t=this;if(!t.ctx||!t.ctx.listener)return t;for(var n=t._howls.length-1;n>=0;n--)t._howls[n].stereo(e);return t},HowlerGlobal.prototype.pos=function(e,t,n){var r=this;if(!r.ctx||!r.ctx.listener)return r;if(t=typeof t==`number`?t:r._pos[1],n=typeof n==`number`?n:r._pos[2],typeof e==`number`)r._pos=[e,t,n],r.ctx.listener.positionX===void 0?r.ctx.listener.setPosition(r._pos[0],r._pos[1],r._pos[2]):(r.ctx.listener.positionX.setTargetAtTime(r._pos[0],Howler.ctx.currentTime,.1),r.ctx.listener.positionY.setTargetAtTime(r._pos[1],Howler.ctx.currentTime,.1),r.ctx.listener.positionZ.setTargetAtTime(r._pos[2],Howler.ctx.currentTime,.1));else return r._pos;return r},HowlerGlobal.prototype.orientation=function(e,t,n,r,i,a){var o=this;if(!o.ctx||!o.ctx.listener)return o;var s=o._orientation;if(t=typeof t==`number`?t:s[1],n=typeof n==`number`?n:s[2],r=typeof r==`number`?r:s[3],i=typeof i==`number`?i:s[4],a=typeof a==`number`?a:s[5],typeof e==`number`)o._orientation=[e,t,n,r,i,a],o.ctx.listener.forwardX===void 0?o.ctx.listener.setOrientation(e,t,n,r,i,a):(o.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),o.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),o.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),o.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),o.ctx.listener.upY.setTargetAtTime(i,Howler.ctx.currentTime,.1),o.ctx.listener.upZ.setTargetAtTime(a,Howler.ctx.currentTime,.1));else return s;return o},Howl.prototype.init=(function(e){return function(t){var n=this;return n._orientation=t.orientation||[1,0,0],n._stereo=t.stereo||null,n._pos=t.pos||null,n._pannerAttr={coneInnerAngle:t.coneInnerAngle===void 0?360:t.coneInnerAngle,coneOuterAngle:t.coneOuterAngle===void 0?360:t.coneOuterAngle,coneOuterGain:t.coneOuterGain===void 0?0:t.coneOuterGain,distanceModel:t.distanceModel===void 0?`inverse`:t.distanceModel,maxDistance:t.maxDistance===void 0?1e4:t.maxDistance,panningModel:t.panningModel===void 0?`HRTF`:t.panningModel,refDistance:t.refDistance===void 0?1:t.refDistance,rolloffFactor:t.rolloffFactor===void 0?1:t.rolloffFactor},n._onstereo=t.onstereo?[{fn:t.onstereo}]:[],n._onpos=t.onpos?[{fn:t.onpos}]:[],n._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}})(Howl.prototype.init),Howl.prototype.stereo=function(t,n){var r=this;if(!r._webAudio)return r;if(r._state!==`loaded`)return r._queue.push({event:`stereo`,action:function(){r.stereo(t,n)}}),r;var i=Howler.ctx.createStereoPanner===void 0?`spatial`:`stereo`;if(n===void 0)if(typeof t==`number`)r._stereo=t,r._pos=[t,0,0];else return r._stereo;for(var a=r._getSoundIds(n),o=0;o<a.length;o++){var s=r._soundById(a[o]);if(s)if(typeof t==`number`)s._stereo=t,s._pos=[t,0,0],s._node&&(s._pannerAttr.panningModel=`equalpower`,(!s._panner||!s._panner.pan)&&e(s,i),i===`spatial`?s._panner.positionX===void 0?s._panner.setPosition(t,0,0):(s._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):s._panner.pan.setValueAtTime(t,Howler.ctx.currentTime)),r._emit(`stereo`,s._id);else return s._stereo}return r},Howl.prototype.pos=function(t,n,r,i){var a=this;if(!a._webAudio)return a;if(a._state!==`loaded`)return a._queue.push({event:`pos`,action:function(){a.pos(t,n,r,i)}}),a;if(n=typeof n==`number`?n:0,r=typeof r==`number`?r:-.5,i===void 0)if(typeof t==`number`)a._pos=[t,n,r];else return a._pos;for(var o=a._getSoundIds(i),s=0;s<o.length;s++){var c=a._soundById(o[s]);if(c)if(typeof t==`number`)c._pos=[t,n,r],c._node&&((!c._panner||c._panner.pan)&&e(c,`spatial`),c._panner.positionX===void 0?c._panner.setPosition(t,n,r):(c._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),c._panner.positionY.setValueAtTime(n,Howler.ctx.currentTime),c._panner.positionZ.setValueAtTime(r,Howler.ctx.currentTime))),a._emit(`pos`,c._id);else return c._pos}return a},Howl.prototype.orientation=function(t,n,r,i){var a=this;if(!a._webAudio)return a;if(a._state!==`loaded`)return a._queue.push({event:`orientation`,action:function(){a.orientation(t,n,r,i)}}),a;if(n=typeof n==`number`?n:a._orientation[1],r=typeof r==`number`?r:a._orientation[2],i===void 0)if(typeof t==`number`)a._orientation=[t,n,r];else return a._orientation;for(var o=a._getSoundIds(i),s=0;s<o.length;s++){var c=a._soundById(o[s]);if(c)if(typeof t==`number`)c._orientation=[t,n,r],c._node&&(c._panner||(c._pos||=a._pos||[0,0,-.5],e(c,`spatial`)),c._panner.orientationX===void 0?c._panner.setOrientation(t,n,r):(c._panner.orientationX.setValueAtTime(t,Howler.ctx.currentTime),c._panner.orientationY.setValueAtTime(n,Howler.ctx.currentTime),c._panner.orientationZ.setValueAtTime(r,Howler.ctx.currentTime))),a._emit(`orientation`,c._id);else return c._orientation}return a},Howl.prototype.pannerAttr=function(){var t=this,n=arguments,r,i,a;if(!t._webAudio)return t;if(n.length===0)return t._pannerAttr;if(n.length===1)if(typeof n[0]==`object`)r=n[0],i===void 0&&(r.pannerAttr||={coneInnerAngle:r.coneInnerAngle,coneOuterAngle:r.coneOuterAngle,coneOuterGain:r.coneOuterGain,distanceModel:r.distanceModel,maxDistance:r.maxDistance,refDistance:r.refDistance,rolloffFactor:r.rolloffFactor,panningModel:r.panningModel},t._pannerAttr={coneInnerAngle:r.pannerAttr.coneInnerAngle===void 0?t._coneInnerAngle:r.pannerAttr.coneInnerAngle,coneOuterAngle:r.pannerAttr.coneOuterAngle===void 0?t._coneOuterAngle:r.pannerAttr.coneOuterAngle,coneOuterGain:r.pannerAttr.coneOuterGain===void 0?t._coneOuterGain:r.pannerAttr.coneOuterGain,distanceModel:r.pannerAttr.distanceModel===void 0?t._distanceModel:r.pannerAttr.distanceModel,maxDistance:r.pannerAttr.maxDistance===void 0?t._maxDistance:r.pannerAttr.maxDistance,refDistance:r.pannerAttr.refDistance===void 0?t._refDistance:r.pannerAttr.refDistance,rolloffFactor:r.pannerAttr.rolloffFactor===void 0?t._rolloffFactor:r.pannerAttr.rolloffFactor,panningModel:r.pannerAttr.panningModel===void 0?t._panningModel:r.pannerAttr.panningModel});else return a=t._soundById(parseInt(n[0],10)),a?a._pannerAttr:t._pannerAttr;else n.length===2&&(r=n[0],i=parseInt(n[1],10));for(var o=t._getSoundIds(i),s=0;s<o.length;s++)if(a=t._soundById(o[s]),a){var c=a._pannerAttr;c={coneInnerAngle:r.coneInnerAngle===void 0?c.coneInnerAngle:r.coneInnerAngle,coneOuterAngle:r.coneOuterAngle===void 0?c.coneOuterAngle:r.coneOuterAngle,coneOuterGain:r.coneOuterGain===void 0?c.coneOuterGain:r.coneOuterGain,distanceModel:r.distanceModel===void 0?c.distanceModel:r.distanceModel,maxDistance:r.maxDistance===void 0?c.maxDistance:r.maxDistance,refDistance:r.refDistance===void 0?c.refDistance:r.refDistance,rolloffFactor:r.rolloffFactor===void 0?c.rolloffFactor:r.rolloffFactor,panningModel:r.panningModel===void 0?c.panningModel:r.panningModel};var l=a._panner;l||=(a._pos||=t._pos||[0,0,-.5],e(a,`spatial`),a._panner),l.coneInnerAngle=c.coneInnerAngle,l.coneOuterAngle=c.coneOuterAngle,l.coneOuterGain=c.coneOuterGain,l.distanceModel=c.distanceModel,l.maxDistance=c.maxDistance,l.refDistance=c.refDistance,l.rolloffFactor=c.rolloffFactor,l.panningModel=c.panningModel}return t},Sound.prototype.init=(function(e){return function(){var t=this,n=t._parent;t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,e.call(this),t._stereo?n.stereo(t._stereo):t._pos&&n.pos(t._pos[0],t._pos[1],t._pos[2],t._id)}})(Sound.prototype.init),Sound.prototype.reset=(function(e){return function(){var t=this,n=t._parent;return t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,t._stereo?n.stereo(t._stereo):t._pos?n.pos(t._pos[0],t._pos[1],t._pos[2],t._id):t._panner&&(t._panner.disconnect(0),t._panner=void 0,n._refreshBuffer(t)),e.call(this)}})(Sound.prototype.reset);var e=function(e,t){t||=`spatial`,t===`spatial`?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,e._panner.positionX===void 0?e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]):(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)),e._panner.orientationX===void 0?e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2]):(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime))):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}})()}))(),Bf=null,Vf={};function Hf(e){return!e||isNaN(e)?`0:00`:`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,`0`)}`}function Uf(e){ep(),Bf=new zf.Howl({src:[e],html5:!0,onplay:()=>Vf.onPlay?.(),onpause:()=>Vf.onPause?.(),onend:()=>Vf.onEnd?.(),onloaderror:()=>Vf.onError?.(),onplayerror:()=>Vf.onError?.()})}function Wf(){Bf?.play()}function Gf(){Bf?.pause()}function Kf(){Bf?.playing()?Bf.pause():Bf.play()}function qf(e){Bf&&Bf.seek(e)}function Jf(){return Bf?Bf.seek():0}function Yf(e){return e!==void 0&&Howler.volume(e/100),Howler.volume()*100}function Xf(){return Bf?Bf.duration():0}function Zf(){return Bf?Bf.playing():!1}function Qf(e,t){Vf[e]=t}function $f(e){delete Vf[e]}function ep(){Bf&&=(Bf.unload(),null),Vf={}}var $={load:Uf,play:Wf,pause:Gf,togglePlay:Kf,seek:qf,getSeek:Jf,volume:Yf,duration:Xf,playing:Zf,on:Qf,off:$f,destroy:ep,formatTime:Hf},tp=`http://localhost:3000`;function np(e){return e?e.startsWith(`http`)?e:`${tp}${e}`:``}var rp=Es(`player`,()=>{let e=F(null),t=F(!1),n=F(0),r=F(0),i=F(80),a=F(null),o=F(null),s=G(()=>$.formatTime(n.value)),c=G(()=>$.formatTime(r.value));function l(i){if(!i)return;e.value=i,n.value=0,r.value=0,t.value=!1,g();let a=np(i.audioUrl);$.load(a),$.on(`play`,()=>{t.value=!0}),$.on(`pause`,()=>{t.value=!1}),$.on(`end`,()=>{t.value=!1,g(),o.value&&o.value()}),$.on(`error`,()=>{t.value=!1})}function u(e){o.value=e}function d(){e.value&&($.playing()?($.pause(),g()):($.play(),h()))}function f(){e.value&&($.play(),h())}function p(e){$.seek(e),n.value=e}function m(e){i.value=e,$.volume(e)}function h(){g(),a.value=setInterval(()=>{$.playing()&&(n.value=$.getSeek(),r.value=$.duration())},500)}function g(){a.value&&=(clearInterval(a.value),null)}function _(){g(),$.destroy(),e.value=null,t.value=!1,n.value=0,r.value=0,o.value=null}return{currentTrack:e,isPlaying:t,progress:n,duration:r,volume:i,formattedProgress:s,formattedDuration:c,setTrack:l,onEnd:u,togglePlay:d,play:f,seek:p,setVolume:m,$reset:_}}),ip=Es(`queue`,()=>{let e=F([]),t=F(-1),n=F(!1),r=F(`off`),i=G(()=>t.value<0||t.value>=e.value.length?null:e.value[t.value]);function a(n,r=0){e.value=n,t.value=r}function o(){if(e.value.length===0)return null;if(r.value===`one`)return e.value[t.value];let i;if(i=n.value?Math.floor(Math.random()*e.value.length):t.value+1,i>=e.value.length)if(r.value===`all`)i=0;else return null;return t.value=i,e.value[i]}function s(){if(e.value.length===0)return null;if(r.value===`one`)return e.value[t.value];let i;if(i=n.value?Math.floor(Math.random()*e.value.length):t.value-1,i<0)if(r.value===`all`)i=e.value.length-1;else return null;return t.value=i,e.value[i]}function c(){n.value=!n.value}function l(){let e=[`off`,`all`,`one`];r.value=e[(e.indexOf(r.value)+1)%e.length]}function u(){e.value=[],t.value=-1,n.value=!1,r.value=`off`}return{queue:e,currentIndex:t,shuffle:n,repeat:r,currentTrack:i,setQueue:a,nextTrack:o,prevTrack:s,toggleShuffle:c,cycleRepeat:l,$reset:u}}),ap={class:`min-h-screen bg-noctune-cream flex items-center justify-center p-8`},op={class:`w-full max-w-5xl bg-noctune-teal rounded-3xl border-4 border-black overflow-hidden flex shadow-2xl`},sp={class:`w-1/2 p-12 relative`},cp={class:`absolute top-8 right-12 grid grid-cols-4 gap-1`},lp={class:`absolute top-20 right-8 grid grid-cols-4 gap-1`},up={class:`absolute bottom-12 left-12 grid grid-cols-3 gap-1`},dp={class:`w-1/2 bg-white rounded-3xl m-4 p-10`},fp={key:0,class:`text-red-500 text-sm mb-4 font-medium`},pp={class:`mb-6`},mp={class:`flex border-2 border-black rounded-lg overflow-hidden`},hp={class:`mb-4`},gp={class:`flex border-2 border-black rounded-lg overflow-hidden`},_p=[`type`],vp={key:0,class:`w-5 h-5`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},yp={key:1,class:`w-5 h-5`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},bp=[`disabled`],xp={key:0,class:`inline-block w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin`},Sp={class:`text-center mt-8 text-gray-600`},Cp={__name:`LoginPage`,setup(e){let t=Ol(),n=If(),r=F(``),i=F(``),a=F(!1),o=F(!1),s=F(``);async function c(){s.value=``,o.value=!0;let e=await n.login(r.value,i.value);o.value=!1,e.success?t.push(`/home`):s.value=e.message}return(e,t)=>{let n=Tr(`router-link`);return z(),B(`div`,ap,[V(`div`,op,[V(`div`,sp,[V(`div`,cp,[(z(),B(R,null,L(16,e=>V(`span`,{key:e,class:`w-2 h-2 bg-black/40 rounded-full`})),64))]),V(`div`,lp,[(z(),B(R,null,L(12,e=>V(`span`,{key:e,class:`w-2 h-2 bg-black/40 rounded-full`})),64))]),t[3]||=V(`div`,{class:`absolute top-16 left-20 text-black/60 text-4xl font-bold`},`+`,-1),t[4]||=V(`div`,{class:`absolute bottom-24 right-20 text-black/60 text-4xl font-bold`},`+`,-1),V(`div`,up,[(z(),B(R,null,L(12,e=>V(`span`,{key:e,class:`w-2 h-2 bg-black/40 rounded-full`})),64))]),t[5]||=aa(`<div class="flex flex-col items-center justify-center h-full"><div class="relative"><div class="w-48 h-48 flex items-center justify-center"><svg viewBox="0 0 120 120" class="w-full h-full"><polygon points="40,35 80,35 90,50 50,50" fill="#ff6b35"></polygon><polygon points="40,35 50,50 50,90 40,75" fill="#e85a2a"></polygon><polygon points="50,50 90,50 90,90 50,90" fill="#ff8c5a"></polygon><polygon points="40,75 50,90 50,70 40,55" fill="#1a1a1a"></polygon><polygon points="70,50 90,50 90,70 70,70" fill="#1a1a1a"></polygon><polygon points="50,70 70,70 70,90 50,90" fill="#1a1a1a"></polygon><rect x="95" y="35" width="5" height="5" fill="#ff6b35"></rect><rect x="100" y="30" width="4" height="4" fill="#ff6b35"></rect><rect x="105" y="38" width="3" height="3" fill="#ff6b35"></rect><rect x="98" y="45" width="4" height="4" fill="#ff6b35"></rect></svg></div></div><h1 class="text-4xl font-mono font-bold text-noctune-dark tracking-wider mt-4">noctune</h1></div>`,1)]),V(`div`,dp,[t[16]||=V(`h2`,{class:`text-4xl font-black text-black mb-2`},`WELCOME!`,-1),t[17]||=V(`p`,{class:`text-gray-600 mb-8`},`Login to continue`,-1),s.value?(z(),B(`p`,fp,A(s.value),1)):W(``,!0),V(`div`,pp,[t[7]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`EMAIL/USERNAME`,-1),V(`div`,mp,[t[6]||=V(`div`,{class:`bg-noctune-teal p-3 border-r-2 border-black`},[V(`svg`,{class:`w-6 h-6 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z`})])],-1),zn(V(`input`,{type:`text`,"onUpdate:modelValue":t[0]||=e=>r.value=e,onKeyup:Vo(c,[`enter`]),class:`flex-1 px-4 py-3 focus:outline-none text-black`,placeholder:`Enter your email`},null,544),[[Eo,r.value]])])]),V(`div`,hp,[t[11]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`PASSWORD`,-1),V(`div`,gp,[t[10]||=V(`div`,{class:`bg-amber-200 p-3 border-r-2 border-black`},[V(`svg`,{class:`w-6 h-6 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z`})])],-1),zn(V(`input`,{type:a.value?`text`:`password`,"onUpdate:modelValue":t[1]||=e=>i.value=e,onKeyup:Vo(c,[`enter`]),class:`flex-1 px-4 py-3 focus:outline-none text-black`,placeholder:`Enter your password`},null,40,_p),[[Po,i.value]]),V(`button`,{onClick:t[2]||=e=>a.value=!a.value,class:`px-4 text-gray-500 hover:text-gray-700`},[a.value?(z(),B(`svg`,yp,[...t[9]||=[V(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M15 12a3 3 0 11-6 0 3 3 0 016 0z`},null,-1),V(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z`},null,-1)]])):(z(),B(`svg`,vp,[...t[8]||=[V(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21`},null,-1)]]))])])]),t[18]||=V(`div`,{class:`text-right mb-6`},[V(`a`,{href:`#`,class:`text-sm text-gray-600 hover:text-black`},`Forgot password?`)],-1),V(`button`,{onClick:c,disabled:o.value,class:`w-full bg-noctune-orange border-2 border-black rounded-lg py-4 font-bold text-white text-xl flex items-center justify-center gap-3 hover:bg-orange-600 transition-colors disabled:opacity-50`},[o.value?(z(),B(`span`,xp)):(z(),B(R,{key:1},[t[12]||=V(`div`,{class:`bg-white/20 rounded p-1`},[V(`svg`,{class:`w-5 h-5`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z`})])],-1),t[13]||=U(` LOGIN `,-1)],64))],8,bp),t[19]||=aa(`<div class="flex items-center my-6"><div class="flex-1 border-t-2 border-gray-300"></div><span class="px-4 bg-black text-white text-xs font-bold py-1 rounded">OR SIGN IN WITH</span><div class="flex-1 border-t-2 border-gray-300"></div></div><button class="w-full border-2 border-gray-300 rounded-xl py-3 flex items-center justify-center gap-3 hover:bg-gray-50 transition-colors"><svg class="w-6 h-6" viewBox="0 0 24 24"><path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"></path><path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"></path><path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"></path><path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"></path></svg><span class="font-bold text-gray-700">GOOGLE</span></button>`,2),V(`p`,Sp,[t[15]||=U(` Don't have an account yet? `,-1),H(n,{to:`/register`,class:`text-noctune-orange font-bold hover:underline`},{default:Rn(()=>[...t[14]||=[U(`Register now`,-1)]]),_:1})])])])])}}},wp={class:`min-h-screen bg-noctune-cream flex items-center justify-center p-8`},Tp={class:`w-full max-w-5xl bg-noctune-teal rounded-3xl border-4 border-black overflow-hidden flex shadow-2xl`},Ep={class:`w-1/2 p-12 relative`},Dp={class:`absolute top-8 right-12 grid grid-cols-4 gap-1`},Op={class:`w-1/2 bg-white rounded-3xl m-4 p-10`},kp={key:0,class:`text-red-500 text-sm mb-4 font-medium`},Ap={class:`mb-4`},jp={class:`mb-4`},Mp={class:`mb-4`},Np={class:`mb-6`},Pp=[`disabled`],Fp={key:0,class:`inline-block w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin`},Ip={key:1},Lp={class:`text-center mt-6 text-gray-600`},Rp={__name:`RegisterPage`,setup(e){let t=Ol(),n=If(),r=F(``),i=F(``),a=F(``),o=F(``),s=F(!1),c=F(``);async function l(){c.value=``,s.value=!0;let e=await n.register({name:r.value,username:i.value,email:a.value,password:o.value});s.value=!1,e.success?t.push(`/home`):c.value=e.message}return(e,t)=>{let n=Tr(`router-link`);return z(),B(`div`,wp,[V(`div`,Tp,[V(`div`,Ep,[V(`div`,Dp,[(z(),B(R,null,L(16,e=>V(`span`,{key:e,class:`w-2 h-2 bg-black/40 rounded-full`})),64))]),t[4]||=aa(`<div class="flex flex-col items-center justify-center h-full"><div class="relative"><div class="w-48 h-48 flex items-center justify-center"><svg viewBox="0 0 120 120" class="w-full h-full"><polygon points="40,35 80,35 90,50 50,50" fill="#ff6b35"></polygon><polygon points="40,35 50,50 50,90 40,75" fill="#e85a2a"></polygon><polygon points="50,50 90,50 90,90 50,90" fill="#ff8c5a"></polygon><polygon points="40,75 50,90 50,70 40,55" fill="#1a1a1a"></polygon><polygon points="70,50 90,50 90,70 70,70" fill="#1a1a1a"></polygon><polygon points="50,70 70,70 70,90 50,90" fill="#1a1a1a"></polygon></svg></div></div><h1 class="text-4xl font-mono font-bold text-noctune-dark tracking-wider mt-4">noctune</h1></div>`,1)]),V(`div`,Op,[t[11]||=V(`h2`,{class:`text-4xl font-black text-black mb-2`},`JOIN US!`,-1),t[12]||=V(`p`,{class:`text-gray-600 mb-6`},`Create your account`,-1),c.value?(z(),B(`p`,kp,A(c.value),1)):W(``,!0),V(`div`,Ap,[t[5]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`NAME`,-1),zn(V(`input`,{type:`text`,"onUpdate:modelValue":t[0]||=e=>r.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-3 focus:outline-none text-black`,placeholder:`Your name`},null,512),[[Eo,r.value]])]),V(`div`,jp,[t[6]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`USERNAME`,-1),zn(V(`input`,{type:`text`,"onUpdate:modelValue":t[1]||=e=>i.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-3 focus:outline-none text-black`,placeholder:`Choose a username`},null,512),[[Eo,i.value]])]),V(`div`,Mp,[t[7]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`EMAIL`,-1),zn(V(`input`,{type:`email`,"onUpdate:modelValue":t[2]||=e=>a.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-3 focus:outline-none text-black`,placeholder:`Enter your email`},null,512),[[Eo,a.value]])]),V(`div`,Np,[t[8]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`PASSWORD`,-1),zn(V(`input`,{type:`password`,"onUpdate:modelValue":t[3]||=e=>o.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-3 focus:outline-none text-black`,placeholder:`Create a password`},null,512),[[Eo,o.value]])]),V(`button`,{onClick:l,disabled:s.value,class:`w-full bg-noctune-orange border-2 border-black rounded-lg py-4 font-bold text-white text-xl flex items-center justify-center gap-3 hover:bg-orange-600 transition-colors disabled:opacity-50`},[s.value?(z(),B(`span`,Fp)):(z(),B(`span`,Ip,`REGISTER`))],8,Pp),V(`p`,Lp,[t[10]||=U(` Already have an account? `,-1),H(n,{to:`/login`,class:`text-noctune-orange font-bold hover:underline`},{default:Rn(()=>[...t[9]||=[U(`Login`,-1)]]),_:1})])])])])}}},zp={class:`bg-white rounded-2xl border-4 border-black p-6 w-full max-w-md mx-4 shadow-[8px_8px_0px_0px_#000]`},Bp={class:`flex items-center justify-between mb-6`},Vp={key:0,class:`text-red-500 text-sm mb-4 font-medium`},Hp={class:`space-y-4`},Up=[`disabled`],Wp={key:0,class:`inline-block w-4 h-4 border-2 border-black border-t-transparent rounded-full animate-spin mr-2`},Gp={__name:`CreatePlaylistModal`,props:{show:Boolean},emits:[`close`,`created`],setup(e,{emit:t}){let n=t,r=F(``),i=F(``),a=F(null),o=F(!1),s=F(``);function c(e){a.value=e.target.files[0]||null}async function l(){if(s.value=``,!r.value?.trim()){s.value=`Playlist name is required`;return}o.value=!0;try{let e=new FormData;e.append(`name`,r.value.trim()),i.value?.trim()&&e.append(`description`,i.value.trim()),a.value&&e.append(`playlistCover`,a.value);let{data:t}=await Q.post(`/playlists`,e,{headers:{"Content-Type":`multipart/form-data`}});t.success&&(n(`created`,t.data),r.value=``,i.value=``,a.value=null)}catch(e){s.value=e.response?.data?.message||`Failed to create playlist`}finally{o.value=!1}}return(t,n)=>e.show?(z(),B(`div`,{key:0,class:`fixed inset-0 z-50 flex items-center justify-center bg-black/50`,onClick:n[3]||=zo(e=>t.$emit(`close`),[`self`])},[V(`div`,zp,[V(`div`,Bp,[n[4]||=V(`h2`,{class:`text-xl font-black text-black`},`CREATE PLAYLIST`,-1),V(`button`,{onClick:n[0]||=e=>t.$emit(`close`),class:`text-gray-500 hover:text-black text-2xl leading-none`},`×`)]),s.value?(z(),B(`p`,Vp,A(s.value),1)):W(``,!0),V(`div`,Hp,[V(`div`,null,[n[5]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-1 tracking-wider`},`NAME`,-1),zn(V(`input`,{"onUpdate:modelValue":n[1]||=e=>r.value=e,type:`text`,placeholder:`My awesome playlist`,class:`w-full border-2 border-black rounded-lg px-4 py-2 focus:outline-none text-black`},null,512),[[Eo,r.value]])]),V(`div`,null,[n[6]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-1 tracking-wider`},`DESCRIPTION`,-1),zn(V(`textarea`,{"onUpdate:modelValue":n[2]||=e=>i.value=e,placeholder:`Optional description`,rows:`2`,class:`w-full border-2 border-black rounded-lg px-4 py-2 focus:outline-none resize-none text-black`},null,512),[[Eo,i.value]])]),V(`div`,null,[n[7]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-1 tracking-wider`},`COVER IMAGE`,-1),V(`input`,{type:`file`,accept:`image/*`,onChange:c,class:`w-full text-sm text-gray-600 file:mr-3 file:py-2 file:px-4 file:border-2 file:border-black file:rounded-lg file:font-bold file:text-sm file:bg-noctune-yellow file:cursor-pointer`},null,32)]),V(`button`,{onClick:l,disabled:o.value,class:`w-full bg-noctune-teal border-2 border-black rounded-lg py-3 font-bold text-black hover:bg-teal-600 transition-colors disabled:opacity-50 cursor-pointer`},[o.value?(z(),B(`span`,Wp)):W(``,!0),U(` `+A(o.value?`Creating...`:`CREATE PLAYLIST`),1)],8,Up)])])])):W(``,!0)}},Kp={class:`bg-white rounded-2xl border-4 border-black p-6 w-full max-w-md mx-4 shadow-[8px_8px_0px_0px_#000]`},qp={class:`flex items-center justify-between mb-4`},Jp={key:0,class:`text-red-500 text-sm mb-3 font-medium`},Yp={key:1,class:`space-y-3`},Xp={key:2,class:`text-center py-8`},Zp={key:3,class:`max-h-80 overflow-y-auto space-y-2`},Qp=[`onClick`],$p={class:`w-12 h-12 rounded-lg overflow-hidden bg-gray-300 border border-black flex-shrink-0`},em=[`src`],tm={key:1,class:`w-full h-full flex items-center justify-center bg-gradient-to-br from-noctune-teal/20 to-noctune-yellow/20`},nm={class:`flex-1 min-w-0`},rm={class:`font-bold text-sm text-black truncate`},im={class:`text-xs text-gray-500`},am={key:0,class:`w-5 h-5 animate-spin text-noctune-teal`,fill:`none`,viewBox:`0 0 24 24`},om={key:1,class:`w-5 h-5 text-gray-400`,fill:`currentColor`,viewBox:`0 0 24 24`},sm={__name:`AddToPlaylistModal`,props:{show:Boolean,trackId:{type:String,default:null}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=If(),a=Rf(),o=F([]),s=F(!1),c=F(null),l=F(``),u=F(!1);function d(){u.value=!0}function f(e){u.value=!1,o.value.unshift(e)}async function p(e){if(n.trackId){c.value=e._id,l.value=``;try{let{data:t}=await Q.post(`/playlists/${e._id}/tracks`,{trackId:n.trackId});t.success&&(a.showToast(`Saved to "${e.name}"`,`success`),r(`close`))}catch(t){let n=t.response?.data?.message||``;n.includes(`already`)||n.includes(`duplicate`)?(a.showToast(`Already in "${e.name}"`,`info`),r(`close`)):l.value=n||`Failed to save track`}finally{c.value=null}}}async function m(){if(i.isLoggedIn){s.value=!0;try{let{data:e}=await Q.get(`/playlists`);e.success&&(o.value=e.data)}catch{}finally{s.value=!1}}}return Kn(()=>n.show,e=>{e&&m()}),(t,n)=>e.show?(z(),B(`div`,{key:0,class:`fixed inset-0 z-50 flex items-center justify-center bg-black/50`,onClick:n[2]||=zo(e=>t.$emit(`close`),[`self`])},[V(`div`,Kp,[V(`div`,qp,[n[3]||=V(`h2`,{class:`text-xl font-black text-black`},`SAVE TO PLAYLIST`,-1),V(`button`,{onClick:n[0]||=e=>t.$emit(`close`),class:`text-gray-500 hover:text-black text-2xl leading-none`},`×`)]),l.value?(z(),B(`p`,Jp,A(l.value),1)):W(``,!0),s.value?(z(),B(`div`,Yp,[(z(),B(R,null,L(3,e=>V(`div`,{key:e,class:`h-14 bg-gray-200 animate-pulse rounded-lg border-2 border-black`})),64))])):o.value.length===0?(z(),B(`div`,Xp,[n[4]||=V(`svg`,{class:`w-16 h-16 mx-auto text-gray-300 mb-3`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M3 10h11v2H3v-2zm0-4h11v2H3V6zm0 8h7v2H3v-2zm13-1v8l6-4-6-4z`})],-1),n[5]||=V(`p`,{class:`text-gray-500 mb-2`},`No playlists yet`,-1),V(`button`,{onClick:d,class:`bg-noctune-yellow border-2 border-black px-4 py-2 font-bold rounded-lg text-sm hover:bg-yellow-400 transition-colors cursor-pointer`},` CREATE PLAYLIST `)])):(z(),B(`div`,Zp,[(z(!0),B(R,null,L(o.value,e=>(z(),B(`div`,{key:e._id,onClick:t=>p(e),class:k([`flex items-center gap-3 px-4 py-3 rounded-lg border-2 border-black cursor-pointer hover:bg-noctune-teal/10 transition-colors`,c.value===e._id?`opacity-50 pointer-events-none`:``])},[V(`div`,$p,[e.coverUrl?(z(),B(`img`,{key:0,src:I(np)(e.coverUrl),class:`w-full h-full object-cover`},null,8,em)):(z(),B(`div`,tm,[...n[6]||=[V(`svg`,{class:`w-6 h-5 text-gray-400`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M3 10h11v2H3v-2zm0-4h11v2H3V6zm0 8h7v2H3v-2zm13-1v8l6-4-6-4z`})],-1)]]))]),V(`div`,nm,[V(`p`,rm,A(e.name),1),V(`p`,im,A(e.tracks?.length||0)+` songs`,1)]),c.value===e._id?(z(),B(`svg`,am,[...n[7]||=[V(`circle`,{class:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,"stroke-width":`4`},null,-1),V(`path`,{class:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z`},null,-1)]])):(z(),B(`svg`,om,[...n[8]||=[V(`path`,{d:`M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z`},null,-1)]]))],10,Qp))),128))]))]),H(Gp,{show:u.value,onClose:n[1]||=e=>u.value=!1,onCreated:f},null,8,[`show`])])):W(``,!0)}},cm={class:`p-8`},lm={key:0,class:`grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4`},um={key:1,class:`text-center py-20 bg-white rounded-2xl border-2 border-black`},dm={key:2,class:`grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4`},fm=[`onClick`],pm={class:`aspect-square bg-gray-300 relative overflow-hidden`},mm=[`src`],hm={class:`absolute inset-0 bg-black/0 group-hover:bg-black/20 transition-colors flex items-center justify-center`},gm={key:0,class:`w-6 h-6 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},_m={key:1,class:`w-6 h-6 ml-1 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},vm={class:`p-3`},ym={class:`flex items-center justify-between`},bm={class:`flex-1 min-w-0`},xm={class:`text-sm font-bold text-black truncate`},Sm={class:`text-xs text-gray-500 truncate`},Cm=[`onClick`],wm=[`onClick`],Tm={__name:`LandingPage`,setup(e){let t=rp(),n=ip(),r=If(),{requireAuth:i}=Hg(),a=F([]),o=F(!0),s=F(null),c=F(!1);function l(e){s.value=e,i({redirectTo:`/login`,onAuthenticated:()=>{c.value=!0}})}function u(e){return t.currentTrack?._id===e._id}function d(e){return r.likedTrackIds?.has(e._id)}function f(e){if(u(e)){t.togglePlay();return}let r=a.value.findIndex(t=>t._id===e._id);n.setQueue(a.value,r),t.setTrack(e),t.play()}function p(){a.value.length&&f(a.value[0])}function m(e){i({redirectTo:`/login`,onAuthenticated:()=>r.toggleLike(e._id)})}return hr(async()=>{try{let{data:e}=await Q.get(`/tracks`);e.success&&(a.value=e.data)}catch{}finally{o.value=!1}}),(e,n)=>{let r=Tr(`router-link`);return z(),B(`div`,cm,[V(`div`,{class:`flex items-start gap-8 mb-12`},[V(`div`,{class:`flex-1`},[n[2]||=V(`h1`,{class:`text-5xl font-black text-black leading-tight mb-2`},[U(`MUSIC`),V(`br`),U(`THAT HITS`)],-1),n[3]||=V(`div`,{class:`inline-block bg-noctune-orange px-4 py-2 mb-4 border-b-4 border-black`},[V(`span`,{class:`text-4xl font-black text-black`},`DIFFERENT.`)],-1),n[4]||=V(`p`,{class:`text-gray-600 mb-6`},`You Vibe. Your sound. Only on Noctune.`,-1),V(`div`,{class:`flex gap-4`},[V(`button`,{onClick:p,class:`bg-noctune-yellow border-2 border-black px-6 py-3 font-bold hover:bg-yellow-400 transition-colors rounded-lg`},`PLAY NOW`),n[1]||=V(`button`,{class:`bg-gray-200 border-2 border-black px-6 py-3 font-bold hover:bg-gray-300 transition-colors rounded-lg`},`EXPLORE`,-1)])]),n[5]||=V(`div`,{class:`w-80 h-80 rounded-2xl overflow-hidden border-4 border-black flex-shrink-0`},[V(`img`,{src:`https://images.unsplash.com/photo-1470225620780-dba8ba36b745?w=400&h=400&fit=crop`,alt:`Music illustration`,class:`w-full h-full object-cover`})],-1)]),V(`section`,null,[n[15]||=V(`h2`,{class:`text-2xl font-black text-black mb-6 flex items-center`},[U(` TRENDING NOW `),V(`svg`,{class:`w-5 h-5 ml-2`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z`})])],-1),o.value?(z(),B(`div`,lm,[(z(),B(R,null,L(4,e=>V(`div`,{key:e,class:`animate-pulse rounded-2xl border-2 border-black overflow-hidden`},[...n[6]||=[V(`div`,{class:`aspect-square bg-gray-300`},null,-1),V(`div`,{class:`p-3 space-y-2`},[V(`div`,{class:`h-3 bg-gray-300 rounded w-3/4`}),V(`div`,{class:`h-2 bg-gray-300 rounded w-1/2`})],-1)]])),64))])):a.value.length===0?(z(),B(`div`,um,[n[8]||=V(`svg`,{class:`w-24 h-24 mx-auto text-gray-300 mb-4`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M12 3v10.55c-.59-.34-1.27-.55-2-.55C7.79 13 6 14.79 6 17s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z`})],-1),n[9]||=V(`p`,{class:`text-gray-500 mb-2 text-lg`},`No tracks yet`,-1),n[10]||=V(`p`,{class:`text-gray-400 text-sm mb-4`},`Be the first to upload music!`,-1),H(r,{to:`/admin/tracks`,class:`inline-block bg-noctune-orange border-2 border-black px-6 py-3 font-bold rounded-lg hover:bg-orange-500 transition-colors`},{default:Rn(()=>[...n[7]||=[U(`UPLOAD TRACK`,-1)]]),_:1})])):(z(),B(`div`,dm,[(z(!0),B(R,null,L(a.value,e=>(z(),B(`div`,{key:e._id,onClick:t=>f(e),class:k([`bg-white rounded-2xl overflow-hidden hover:scale-[1.02] transition-transform cursor-pointer group`,u(e)?`border-4 border-noctune-teal`:`border-2 border-black`])},[V(`div`,pm,[e.coverUrl?(z(),B(`img`,{key:0,src:I(np)(e.coverUrl),class:`w-full h-full object-cover`},null,8,mm)):W(``,!0),V(`div`,hm,[V(`div`,{class:k([`w-12 h-12 rounded-full flex items-center justify-center border-2 border-black opacity-0 group-hover:opacity-100 transition-opacity`,u(e)&&I(t).isPlaying?`bg-white`:`bg-noctune-yellow`])},[u(e)&&I(t).isPlaying?(z(),B(`svg`,gm,[...n[11]||=[V(`path`,{d:`M6 19h4V5H6v14zm8-14v14h4V5h-4z`},null,-1)]])):(z(),B(`svg`,_m,[...n[12]||=[V(`path`,{d:`M8 5v14l11-7z`},null,-1)]]))],2)])]),V(`div`,vm,[V(`div`,ym,[V(`div`,bm,[V(`p`,xm,A(e.title),1),V(`p`,Sm,A(e.artist),1)]),V(`button`,{onClick:zo(t=>m(e),[`stop`]),class:`ml-2 flex-shrink-0`},[(z(),B(`svg`,{class:k([`w-5 h-5`,d(e)?`fill-red-400 text-red-400`:`text-gray-400 hover:text-red-400`]),fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[...n[13]||=[V(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z`},null,-1)]],2))],8,Cm),V(`button`,{onClick:zo(t=>l(e),[`stop`]),class:`ml-1 flex-shrink-0 text-gray-400 hover:text-noctune-teal transition-colors`},[...n[14]||=[V(`svg`,{class:`w-5 h-5`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z`})],-1)]],8,wm)])])],10,fm))),128))]))]),H(sm,{show:c.value,"track-id":s.value?._id,onClose:n[0]||=e=>c.value=!1},null,8,[`show`,`track-id`])])}}},Em={class:`p-8`},Dm={class:`mb-12`},Om={key:0,class:`text-center py-12 text-gray-500`},km={key:1,class:`text-center py-12`},Am={key:2,class:`text-center py-12`},jm={key:3,class:`grid grid-cols-4 gap-6`},Mm=[`onClick`],Nm={class:`aspect-square bg-gray-300 relative overflow-hidden`},Pm=[`src`],Fm={key:0,class:`w-5 h-5 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},Im={key:1,class:`w-5 h-5 ml-0.5 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},Lm={class:`p-3`},Rm={class:`flex items-center justify-between`},zm={class:`flex-1 min-w-0`},Bm={class:`text-sm font-bold text-black truncate`},Vm={class:`text-xs text-gray-500 truncate`},Hm=[`onClick`],Um={key:0,class:`space-y-3 p-4`},Wm={key:1,class:`bg-white rounded-2xl border-4 border-black overflow-hidden`},Gm={class:`divide-y divide-gray-200`},Km=[`onClick`],qm={class:`flex-1 flex items-center gap-3`},Jm={class:`text-sm text-gray-400 w-6`},Ym={key:0,class:`w-4 h-4 text-noctune-teal inline`,fill:`currentColor`,viewBox:`0 0 24 24`},Xm={key:1},Zm={class:`w-10 h-10 rounded-lg flex-shrink-0 overflow-hidden bg-gray-300 border border-black`},Qm=[`src`],$m={class:`w-40 text-center text-gray-600 text-sm truncate`},eh={class:`w-32 text-center text-gray-600 text-sm truncate`},th=[`onClick`],nh=[`onClick`],rh={__name:`LibraryPage`,setup(e){let t=rp(),n=ip(),r=If(),{requireAuth:i}=Hg(),a=F([]),o=F([]),s=F(!0),c=F(!0),l=F(null),u=F(!1);function d(e){l.value=e,i({redirectTo:`/login`,onAuthenticated:()=>{u.value=!0}})}function f(e){return t.currentTrack?._id===e._id}function p(e){return r.likedTrackIds?.has(e._id)}function m(e,r=!1,i){if(f(e)){t.togglePlay();return}let s=r?a.value:o.value,c=i??s.findIndex(t=>t._id===e._id);n.setQueue(s,c),t.setTrack(e),t.play()}function h(e){let t=p(e);i({redirectTo:`/login`,onAuthenticated:async()=>{await r.toggleLike(e._id),t&&(a.value=a.value.filter(t=>t._id!==e._id))}})}return hr(async()=>{if(r.isLoggedIn)try{let{data:e}=await Q.get(`/tracks/liked`);e.success&&(a.value=e.data||[])}catch{}s.value=!1;try{let{data:e}=await Q.get(`/tracks`);e.success&&(o.value=e.data)}catch{}finally{c.value=!1}}),(e,n)=>{let i=Tr(`router-link`);return z(),B(`div`,Em,[V(`section`,Dm,[n[8]||=V(`h2`,{class:`text-3xl font-black text-black mb-6`},`Liked Tracks`,-1),s.value?(z(),B(`div`,Om,`Loading...`)):I(r).isLoggedIn?a.value.length===0?(z(),B(`div`,Am,[n[4]||=V(`p`,{class:`text-gray-500 mb-4`},`No liked tracks yet`,-1),H(i,{to:`/home`,class:`bg-noctune-yellow border-2 border-black px-6 py-3 font-bold inline-block hover:bg-yellow-400 transition-colors rounded-lg`},{default:Rn(()=>[...n[3]||=[U(`Discover Music`,-1)]]),_:1})])):(z(),B(`div`,jm,[(z(!0),B(R,null,L(a.value,e=>(z(),B(`div`,{key:e._id,onClick:t=>m(e,!0),class:`group cursor-pointer bg-white rounded-2xl border-2 border-black overflow-hidden hover:scale-[1.02] transition-transform`},[V(`div`,Nm,[e.coverUrl?(z(),B(`img`,{key:0,src:I(np)(e.coverUrl),class:`w-full h-full object-cover`},null,8,Pm)):W(``,!0),V(`div`,{class:k([`absolute bottom-2 right-2 w-10 h-10 rounded-full flex items-center justify-center border-2 border-black opacity-0 group-hover:opacity-100 transition-opacity`,f(e)&&I(t).isPlaying?`bg-white`:`bg-noctune-yellow`])},[f(e)&&I(t).isPlaying?(z(),B(`svg`,Fm,[...n[5]||=[V(`path`,{d:`M6 19h4V5H6v14zm8-14v14h4V5h-4z`},null,-1)]])):(z(),B(`svg`,Im,[...n[6]||=[V(`path`,{d:`M8 5v14l11-7z`},null,-1)]]))],2)]),V(`div`,Lm,[V(`div`,Rm,[V(`div`,zm,[V(`p`,Bm,A(e.title),1),V(`p`,Vm,A(e.artist),1)]),V(`button`,{onClick:zo(t=>d(e),[`stop`]),class:`ml-2 flex-shrink-0 text-gray-400 hover:text-noctune-teal transition-colors`},[...n[7]||=[V(`svg`,{class:`w-4 h-4`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z`})],-1)]],8,Hm)])])],8,Mm))),128))])):(z(),B(`div`,km,[n[2]||=V(`p`,{class:`text-gray-500 mb-4`},`Login to see your liked tracks`,-1),H(i,{to:`/login`,class:`bg-noctune-yellow border-2 border-black px-6 py-3 font-bold inline-block hover:bg-yellow-400 transition-colors rounded-lg`},{default:Rn(()=>[...n[1]||=[U(`Login`,-1)]]),_:1})]))]),V(`section`,null,[n[14]||=V(`h2`,{class:`text-2xl font-black text-black mb-6 flex items-center`},[U(` All Tracks `),V(`svg`,{class:`w-5 h-5 ml-2`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z`})])],-1),c.value?(z(),B(`div`,Um,[(z(),B(R,null,L(5,e=>V(`div`,{key:e,class:`flex items-center gap-4 animate-pulse`},[...n[9]||=[aa(`<div class="w-8 h-4 bg-gray-200 rounded"></div><div class="w-10 h-10 bg-gray-200 rounded-lg"></div><div class="h-3 bg-gray-200 rounded flex-1"></div><div class="h-3 bg-gray-200 rounded w-24"></div><div class="h-3 bg-gray-200 rounded w-20"></div>`,5)]])),64))])):(z(),B(`div`,Wm,[n[13]||=aa(`<div class="bg-noctune-teal px-6 py-3 flex items-center text-black font-bold border-b-4 border-black"><span class="flex-1">TITLE</span><span class="w-40 text-center">ARTIST</span><span class="w-32 text-center">ALBUM</span><span class="w-12 text-center"></span></div>`,1),V(`div`,Gm,[(z(!0),B(R,null,L(o.value,(e,r)=>(z(),B(`div`,{key:e._id,onClick:t=>m(e,!1,r),class:k([`px-6 py-3 flex items-center hover:bg-gray-50 transition-colors cursor-pointer`,f(e)?`bg-noctune-teal/10`:``])},[V(`div`,qm,[V(`span`,Jm,[f(e)&&I(t).isPlaying?(z(),B(`svg`,Ym,[...n[10]||=[V(`path`,{d:`M6 19h4V5H6v14zm8-14v14h4V5h-4z`},null,-1)]])):(z(),B(`span`,Xm,A(r+1),1))]),V(`div`,Zm,[e.coverUrl?(z(),B(`img`,{key:0,src:I(np)(e.coverUrl),class:`w-full h-full object-cover`},null,8,Qm)):W(``,!0)]),V(`span`,{class:k([`font-medium text-sm truncate`,f(e)?`text-noctune-teal`:`text-black`])},A(e.title),3)]),V(`span`,$m,A(e.artist),1),V(`span`,eh,A(e.album),1),V(`button`,{onClick:zo(t=>h(e),[`stop`]),class:`w-10 flex justify-center transition-colors`},[(z(),B(`svg`,{class:k([`w-5 h-5`,p(e)?`fill-red-400 text-red-400`:`text-gray-400 hover:text-red-400`]),fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[...n[11]||=[V(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z`},null,-1)]],2))],8,th),V(`button`,{onClick:zo(t=>d(e),[`stop`]),class:`w-8 flex justify-center transition-colors text-gray-400 hover:text-noctune-teal`},[...n[12]||=[V(`svg`,{class:`w-5 h-5`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z`})],-1)]],8,nh)],10,Km))),128))])]))]),H(sm,{show:u.value,"track-id":l.value?._id,onClose:n[0]||=e=>u.value=!1},null,8,[`show`,`track-id`])])}}},ih={class:`p-8`},ah={key:0,class:`grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4`},oh={key:1,class:`text-center py-20`},sh={key:2,class:`grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4`},ch=[`onClick`],lh={class:`aspect-square bg-gray-300 relative overflow-hidden`},uh=[`src`],dh={key:1,class:`w-full h-full flex items-center justify-center bg-gradient-to-br from-noctune-teal/20 to-noctune-yellow/20`},fh={class:`p-3`},ph={class:`font-bold text-sm truncate text-black`},mh={class:`text-xs text-gray-500`},hh={__name:`PlaylistPage`,setup(e){let t=Ol(),n=If(),{requireAuth:r}=Hg(),i=F([]),a=F(!0),o=F(!1);function s(){r({redirectTo:`/login`,onAuthenticated:()=>{o.value=!0}})}function c(e){o.value=!1,i.value.unshift(e)}return hr(async()=>{if(!n.isLoggedIn){a.value=!1;return}try{let{data:e}=await Q.get(`/playlists`);e.success&&(i.value=e.data)}catch{}finally{a.value=!1}}),(e,n)=>(z(),B(`div`,ih,[V(`div`,{class:`flex items-center justify-between mb-6`},[n[2]||=V(`h1`,{class:`text-3xl font-black text-black`},`YOUR PLAYLISTS`,-1),V(`button`,{onClick:s,class:`bg-noctune-teal border-2 border-black px-4 py-2 font-bold flex items-center gap-2 rounded-lg hover:bg-teal-600 transition-colors cursor-pointer`},[...n[1]||=[V(`svg`,{class:`w-5 h-5`,fill:`none`,stroke:`currentColor`,"stroke-width":`3`,viewBox:`0 0 24 24`},[V(`path`,{d:`M12 4v16m8-8H4`})],-1),U(` NEW PLAYLIST `,-1)]])]),a.value?(z(),B(`div`,ah,[(z(),B(R,null,L(4,e=>V(`div`,{key:e,class:`animate-pulse bg-gray-200 rounded-2xl border-2 border-black h-64`})),64))])):i.value.length===0?(z(),B(`div`,oh,[n[3]||=V(`svg`,{class:`w-24 h-24 mx-auto text-gray-300 mb-4`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M3 10h11v2H3v-2zm0-4h11v2H3V6zm0 8h7v2H3v-2zm13-1v8l6-4-6-4z`})],-1),n[4]||=V(`p`,{class:`text-gray-500 mb-2 text-lg`},`No playlists yet`,-1),n[5]||=V(`p`,{class:`text-gray-400 text-sm mb-4`},`Create your first playlist to start organizing your music`,-1),V(`button`,{onClick:s,class:`bg-noctune-yellow border-2 border-black px-6 py-3 font-bold rounded-lg hover:bg-yellow-400 transition-colors cursor-pointer`},` CREATE YOUR FIRST PLAYLIST `)])):(z(),B(`div`,sh,[(z(!0),B(R,null,L(i.value,e=>(z(),B(`div`,{key:e._id,onClick:n=>I(t).push(`/playlist/${e._id}`),class:`bg-white rounded-2xl border-2 border-black overflow-hidden hover:scale-[1.02] transition-transform cursor-pointer group`},[V(`div`,lh,[e.coverUrl?(z(),B(`img`,{key:0,src:I(np)(e.coverUrl),class:`w-full h-full object-cover`},null,8,uh)):(z(),B(`div`,dh,[...n[6]||=[V(`svg`,{class:`w-20 h-16 text-gray-400`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M3 10h11v2H3v-2zm0-4h11v2H3V6zm0 8h7v2H3v-2zm13-1v8l6-4-6-4z`})],-1)]])),n[7]||=V(`div`,{class:`absolute inset-0 bg-black/0 group-hover:bg-black/10 transition-colors`},null,-1)]),V(`div`,fh,[V(`p`,ph,A(e.name),1),V(`p`,mh,A(e.tracks?.length||0)+` songs`,1)])],8,ch))),128))])),H(Gp,{show:o.value,onClose:n[0]||=e=>o.value=!1,onCreated:c},null,8,[`show`])]))}},gh={class:`p-8`},_h={key:0,class:`space-y-6 animate-pulse`},vh={class:`space-y-3`},yh={class:`flex items-start gap-8 mb-8`},bh={class:`w-56 h-56 rounded-2xl overflow-hidden border-4 border-black flex-shrink-0 bg-black`},xh=[`src`],Sh={key:1,class:`w-full h-full flex items-center justify-center`},Ch={class:`flex-1`},wh={class:`text-4xl font-black text-black mb-4 leading-tight`},Th={key:0,class:`text-gray-600 mb-4`},Eh={class:`flex items-center gap-3 text-gray-600 mb-6`},Dh={class:`font-medium`},Oh={class:`flex gap-4`},kh=[`disabled`],Ah={class:`bg-white rounded-2xl border-4 border-black overflow-hidden`},jh={class:`divide-y divide-gray-200`},Mh=[`onClick`],Nh={class:`w-12 text-center`},Ph={key:0,class:`w-4 h-4 text-noctune-teal mx-auto`,fill:`currentColor`,viewBox:`0 0 24 24`},Fh={key:1,class:`text-gray-500`},Ih={class:`flex-1 flex items-center gap-4`},Lh={class:`w-12 h-12 rounded-lg flex-shrink-0 overflow-hidden bg-gray-300 border border-black`},Rh=[`src`],zh={class:`w-48 text-center text-gray-600 text-sm truncate`},Bh=[`onClick`],Vh=[`onClick`],Hh={key:0,class:`p-8 text-center text-gray-500`},Uh={key:2,class:`text-center py-20 text-gray-500`},Wh={__name:`PlaylistDetail`,setup(e){let t=kl(),n=rp(),r=ip(),i=If(),{requireAuth:a}=Hg(),o=F(null),s=F(!0),c=F(null),l=F(!1);function u(e){c.value=e,a({redirectTo:`/login`,onAuthenticated:()=>{l.value=!0}})}function d(e){return n.currentTrack?._id===e._id}function f(e){return i.likedTrackIds?.has(e._id)}function p(e){if(!o.value?.tracks?.length)return;let t=o.value.tracks[e];if(d(t)){n.togglePlay();return}let i=o.value.tracks;r.setQueue(i,e),n.setTrack(t),n.play()}function m(){o.value?.tracks?.length&&p(0)}function h(e){a({redirectTo:`/login`,onAuthenticated:()=>i.toggleLike(e._id)})}return hr(async()=>{let e=t.params.id;try{if(e){let{data:t}=await Q.get(`/playlists/${e}`);t.success&&(o.value=t.data)}}catch{o.value=null}finally{s.value=!1}}),(e,t)=>(z(),B(R,null,[V(`div`,gh,[s.value?(z(),B(`div`,_h,[t[2]||=aa(`<div class="flex items-start gap-8 mb-8"><div class="w-56 h-56 rounded-2xl bg-gray-300 border-4 border-black"></div><div class="flex-1 space-y-4"><div class="h-6 bg-gray-200 rounded w-24"></div><div class="h-10 bg-gray-200 rounded w-64"></div><div class="h-4 bg-gray-200 rounded w-32"></div><div class="h-10 bg-gray-200 rounded w-28"></div></div></div>`,1),V(`div`,vh,[(z(),B(R,null,L(5,e=>V(`div`,{key:e,class:`flex items-center gap-4`},[...t[1]||=[V(`div`,{class:`w-8 h-4 bg-gray-200 rounded`},null,-1),V(`div`,{class:`w-10 h-10 bg-gray-200 rounded-lg`},null,-1),V(`div`,{class:`h-3 bg-gray-200 rounded flex-1`},null,-1),V(`div`,{class:`h-3 bg-gray-200 rounded w-24`},null,-1)]])),64))])])):o.value?(z(),B(R,{key:1},[V(`div`,yh,[V(`div`,bh,[o.value.coverUrl?(z(),B(`img`,{key:0,src:I(np)(o.value.coverUrl),class:`w-full h-full object-cover`},null,8,xh)):(z(),B(`div`,Sh,[...t[3]||=[aa(`<svg class="w-40 h-24 text-white/60" viewBox="0 0 100 50"><rect x="5" y="20" width="4" height="15" fill="currentColor"></rect><rect x="12" y="10" width="4" height="30" fill="currentColor"></rect><rect x="19" y="15" width="4" height="20" fill="currentColor"></rect><rect x="26" y="5" width="4" height="40" fill="currentColor"></rect><rect x="33" y="12" width="4" height="26" fill="currentColor"></rect><rect x="40" y="8" width="4" height="34" fill="currentColor"></rect><rect x="47" y="15" width="4" height="20" fill="currentColor"></rect><rect x="54" y="18" width="4" height="14" fill="currentColor"></rect><rect x="61" y="12" width="4" height="26" fill="currentColor"></rect><rect x="68" y="8" width="4" height="34" fill="currentColor"></rect><rect x="75" y="15" width="4" height="20" fill="currentColor"></rect><rect x="82" y="20" width="4" height="15" fill="currentColor"></rect><rect x="89" y="22" width="4" height="10" fill="currentColor"></rect></svg>`,1)]]))]),V(`div`,Ch,[t[5]||=V(`span`,{class:`inline-block bg-noctune-teal text-black text-xs font-bold px-3 py-1 rounded mb-3 border border-black`},`PLAYLIST`,-1),V(`h1`,wh,A(o.value.name),1),o.value.description?(z(),B(`p`,Th,A(o.value.description),1)):W(``,!0),V(`div`,Eh,[V(`span`,Dh,A(o.value.tracks?.length||0)+` songs`,1)]),V(`div`,Oh,[V(`button`,{onClick:m,disabled:!o.value.tracks?.length,class:`bg-noctune-teal border-2 border-black px-6 py-2 font-bold flex items-center gap-2 rounded-lg hover:bg-teal-600 transition-colors disabled:opacity-50 cursor-pointer`},[...t[4]||=[V(`svg`,{class:`w-4 h-4`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M8 5v14l11-7z`})],-1),U(` PLAY `,-1)]],8,kh)])])]),V(`div`,Ah,[t[9]||=aa(`<div class="bg-noctune-teal px-6 py-3 flex items-center text-black font-bold border-b-4 border-black"><span class="w-12 text-center">#</span><span class="flex-1 text-center">TITLE</span><span class="w-48 text-center">ARTIST</span><span class="w-12 text-center"></span></div>`,1),V(`div`,jh,[(z(!0),B(R,null,L(o.value.tracks,(e,r)=>(z(),B(`div`,{key:e._id,onClick:e=>p(r),class:k([`px-6 py-3 flex items-center hover:bg-gray-50 transition-colors cursor-pointer`,d(e)?`bg-noctune-teal/10`:``])},[V(`span`,Nh,[d(e)&&I(n).isPlaying?(z(),B(`svg`,Ph,[...t[6]||=[V(`path`,{d:`M6 19h4V5H6v14zm8-14v14h4V5h-4z`},null,-1)]])):(z(),B(`span`,Fh,A(r+1),1))]),V(`div`,Ih,[V(`div`,Lh,[e.coverUrl?(z(),B(`img`,{key:0,src:I(np)(e.coverUrl),class:`w-full h-full object-cover`},null,8,Rh)):W(``,!0)]),V(`span`,{class:k([`font-medium text-sm truncate`,d(e)?`text-noctune-teal`:`text-black`])},A(e.title),3)]),V(`span`,zh,A(e.artist),1),V(`button`,{onClick:zo(t=>h(e),[`stop`]),class:`w-10 flex justify-center transition-colors cursor-pointer`},[(z(),B(`svg`,{class:k([`w-5 h-5`,f(e)?`fill-red-400 text-red-400`:`text-gray-400 hover:text-red-400`]),fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[...t[7]||=[V(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z`},null,-1)]],2))],8,Bh),V(`button`,{onClick:zo(t=>u(e),[`stop`]),class:`w-8 flex justify-center transition-colors text-gray-400 hover:text-noctune-teal cursor-pointer`},[...t[8]||=[V(`svg`,{class:`w-5 h-5`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z`})],-1)]],8,Vh)],10,Mh))),128)),o.value.tracks?.length?W(``,!0):(z(),B(`div`,Hh,`No tracks in this playlist yet`))])])],64)):(z(),B(`div`,Uh,`Playlist not found`))]),H(sm,{show:l.value,"track-id":c.value?._id,onClose:t[0]||=e=>l.value=!1},null,8,[`show`,`track-id`])],64))}},Gh={class:`p-8`},Kh={class:`bg-white rounded-2xl border-4 border-black p-6 mb-6 flex items-center gap-8`},qh={class:`w-40 h-40 rounded-full border-4 border-black overflow-hidden flex-shrink-0 bg-gray-300`},Jh=[`src`],Yh={key:1,class:`w-full h-full flex items-center justify-center`},Xh={class:`flex-1`},Zh={class:`text-3xl font-black text-black mb-1`},Qh={class:`text-gray-600 mb-3`},$h={class:`inline-flex items-center gap-2 border-2 border-noctune-orange text-noctune-orange px-3 py-1 rounded-full mb-4`},eg={class:`text-sm font-medium`},tg={class:`flex gap-4`},ng={key:0,class:`bg-white rounded-2xl border-4 border-black p-6 mb-6`},rg={key:0,class:`text-red-500 text-sm mb-4`},ig={key:1,class:`text-green-600 text-sm mb-4`},ag={class:`space-y-4 max-w-md`},og=[`disabled`],sg={key:0,class:`inline-block w-4 h-4 border-2 border-black border-t-transparent rounded-full animate-spin mr-1`},cg={class:`bg-white rounded-2xl border-4 border-black p-6 mb-6 flex justify-center gap-12`},lg={class:`flex items-center gap-4`},ug={class:`text-2xl font-black text-black`},dg={__name:`ProfilePage`,setup(e){let t=Ol(),n=If(),r=F(!1),i=F(``),a=F(``),o=F(``),s=F(null),c=F(!1),l=F(``),u=F(``),d=F(0),f=G(()=>n.user?.name||n.user?.username||`User`);function p(){r.value=!r.value,r.value&&(i.value=n.user?.name||``,a.value=n.user?.username||``,o.value=n.user?.email||``,s.value=null,l.value=``,u.value=``)}function m(e){s.value=e.target.files[0]||null}async function h(){l.value=``,u.value=``,c.value=!0;try{let e=new FormData;e.append(`name`,i.value),e.append(`username`,a.value),e.append(`email`,o.value),s.value&&e.append(`avatar`,s.value);let t=await n.updateProfile(e);t.success?(u.value=`Profile updated!`,setTimeout(()=>{r.value=!1},1500)):l.value=t.message}catch{l.value=`Update failed`}finally{c.value=!1}}async function g(){await n.logout(),t.push(`/login`)}return hr(async()=>{if(!n.isLoggedIn){t.push(`/login`);return}try{let{data:e}=await Q.get(`/tracks/liked`);e.success&&(d.value=e.data.likedTracks?.length||0)}catch{}}),(e,t)=>(z(),B(`div`,Gh,[V(`div`,Kh,[V(`div`,qh,[I(n).user?.avatarUrl?(z(),B(`img`,{key:0,src:I(np)(I(n).user.avatarUrl),alt:`Profile`,class:`w-full h-full object-cover`},null,8,Jh)):(z(),B(`div`,Yh,[...t[3]||=[V(`svg`,{class:`w-16 h-16 text-gray-400`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z`})],-1)]]))]),V(`div`,Xh,[V(`h1`,Zh,A(f.value),1),V(`p`,Qh,`@`+A(I(n).user?.username||`username`),1),V(`div`,$h,[t[4]||=V(`svg`,{class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z`})],-1),V(`span`,eg,A(I(n).user?.role===`admin`?`Admin`:`Premium Member`),1)]),V(`div`,tg,[V(`button`,{onClick:p,class:`border-2 border-black px-4 py-2 rounded-lg font-medium flex items-center gap-2 hover:bg-gray-100 transition-colors`},[t[5]||=V(`svg`,{class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z`})],-1),U(` `+A(r.value?`Cancel`:`Edit Profile`),1)])])])]),r.value?(z(),B(`div`,ng,[t[11]||=V(`h3`,{class:`text-xl font-black text-black mb-4`},`Edit Profile`,-1),l.value?(z(),B(`p`,rg,A(l.value),1)):W(``,!0),u.value?(z(),B(`p`,ig,A(u.value),1)):W(``,!0),V(`div`,ag,[V(`div`,null,[t[6]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-1`},`NAME`,-1),zn(V(`input`,{type:`text`,"onUpdate:modelValue":t[0]||=e=>i.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-2 focus:outline-none text-black`},null,512),[[Eo,i.value]])]),V(`div`,null,[t[7]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-1`},`USERNAME`,-1),zn(V(`input`,{type:`text`,"onUpdate:modelValue":t[1]||=e=>a.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-2 focus:outline-none text-black`},null,512),[[Eo,a.value]])]),V(`div`,null,[t[8]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-1`},`EMAIL`,-1),zn(V(`input`,{type:`email`,"onUpdate:modelValue":t[2]||=e=>o.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-2 focus:outline-none text-black`},null,512),[[Eo,o.value]])]),V(`div`,null,[t[9]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-1`},`AVATAR`,-1),V(`input`,{type:`file`,accept:`image/*`,onChange:m,class:`w-full text-sm`},null,32)]),V(`button`,{onClick:h,disabled:c.value,class:`bg-noctune-teal border-2 border-black px-6 py-2 font-bold rounded-lg hover:bg-teal-600 transition-colors disabled:opacity-50`},[c.value?(z(),B(`span`,sg)):W(``,!0),t[10]||=U(` Save Changes `,-1)],8,og)])])):W(``,!0),V(`div`,cg,[V(`div`,lg,[t[13]||=V(`div`,{class:`w-14 h-14 bg-noctune-orange rounded-xl flex items-center justify-center border-2 border-black`},[V(`svg`,{class:`w-7 h-7 text-white`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z`})])],-1),V(`div`,null,[V(`p`,ug,A(d.value),1),t[12]||=V(`p`,{class:`text-sm text-gray-500`},`Liked Songs`,-1)])])]),V(`button`,{onClick:g,class:`w-full bg-noctune-orange border-4 border-black rounded-2xl py-4 font-bold text-black flex items-center justify-center gap-3 hover:bg-orange-600 transition-colors`},[...t[14]||=[V(`svg`,{class:`w-6 h-6`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1`})],-1),U(` Logout `,-1)]])]))}},fg={class:`bg-noctune-cream flex flex-col h-full`},pg={class:`p-4 space-y-2`},mg={class:`relative group`},hg={class:`absolute left-0 top-full mt-1 w-56 bg-white border-2 border-black rounded-lg shadow-[4px_4px_0px_0px_#000] opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50 max-h-72 overflow-y-auto`},gg={key:0,class:`p-2`},_g=[`onClick`],vg={class:`truncate`},yg={key:1,class:`p-4 text-center text-sm text-gray-500`},bg={class:`border-t-2 border-gray-200 p-2`},xg={__name:`Sidebar`,setup(e){let t=kl(),n=Ol(),r=If(),i=F([]),a=F(!1),{requireAuth:o}=Hg(),s=e=>t.path===e,c=e=>t.path.startsWith(e);async function l(){if(r.isLoggedIn)try{let{data:e}=await Q.get(`/playlists`);e.success&&(i.value=e.data)}catch{}}function u(){o({redirectTo:`/login`,onAuthenticated:()=>{a.value=!0}})}function d(e){a.value=!1,i.value.unshift(e)}return hr(l),(e,t)=>{let o=Tr(`router-link`);return z(),B(`aside`,fg,[V(`nav`,pg,[H(o,{to:`/home`,class:k([`flex items-center gap-3 px-4 py-3 rounded-lg font-bold text-black hover:bg-noctune-teal/20 transition-colors`,{"bg-noctune-teal text-black":s(`/home`)}])},{default:Rn(()=>[...t[1]||=[V(`svg`,{class:`w-6 h-6`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z`})],-1),V(`span`,{class:`tracking-wide`},`HOME`,-1)]]),_:1},8,[`class`]),H(o,{to:`/library`,class:k([`flex items-center gap-3 px-4 py-3 rounded-lg font-bold text-black hover:bg-noctune-teal/20 transition-colors`,{"bg-noctune-teal text-black":s(`/library`)}])},{default:Rn(()=>[...t[2]||=[V(`svg`,{class:`w-6 h-6`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z`})],-1),V(`span`,{class:`tracking-wide`},`LIBRARY`,-1)]]),_:1},8,[`class`]),V(`div`,mg,[H(o,{to:`/playlist`,class:k([`flex items-center gap-3 px-4 py-3 rounded-lg font-bold text-black hover:bg-noctune-teal/20 transition-colors`,{"bg-noctune-teal text-black":s(`/playlist`)||c(`/playlist/`)}])},{default:Rn(()=>[...t[3]||=[V(`svg`,{class:`w-6 h-6`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M3 10h11v2H3v-2zm0-4h11v2H3V6zm0 8h7v2H3v-2zm13-1v8l6-4-6-4z`})],-1),V(`span`,{class:`tracking-wide`},`PLAYLIST`,-1),V(`svg`,{class:`w-4 h-4 ml-auto text-gray-500 group-hover:rotate-180 transition-transform`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M7 10l5 5 5-5z`})],-1)]]),_:1},8,[`class`]),V(`div`,hg,[i.value.length?(z(),B(`div`,gg,[(z(!0),B(R,null,L(i.value,e=>(z(),B(`div`,{key:e._id,onClick:t=>I(n).push(`/playlist/${e._id}`),class:`flex items-center gap-2 px-3 py-2 rounded-lg cursor-pointer hover:bg-noctune-teal/20 transition-colors text-sm font-medium text-black`},[t[4]||=V(`svg`,{class:`w-4 h-4 flex-shrink-0 text-gray-500`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M3 10h11v2H3v-2zm0-4h11v2H3V6zm0 8h7v2H3v-2zm13-1v8l6-4-6-4z`})],-1),V(`span`,vg,A(e.name),1)],8,_g))),128))])):(z(),B(`div`,yg,`No playlists yet`)),V(`div`,bg,[H(o,{to:`/playlist`,class:`block px-3 py-2 rounded-lg text-sm font-bold text-noctune-teal hover:bg-noctune-teal/20 transition-colors text-center`},{default:Rn(()=>[...t[5]||=[U(` Browse All Playlists `,-1)]]),_:1})])])]),I(r).isAdmin?(z(),Zi(o,{key:0,to:`/admin/tracks`,class:k([`flex items-center gap-3 px-4 py-3 rounded-lg font-bold text-black hover:bg-noctune-orange/20 transition-colors`,{"bg-noctune-orange text-black":s(`/admin/tracks`)}])},{default:Rn(()=>[...t[6]||=[V(`svg`,{class:`w-6 h-6`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm-3 17l-4-4 1.41-1.41L11 16.17l6.59-6.59L19 11l-8 8z`})],-1),V(`span`,{class:`tracking-wide`},`UPLOAD TRACK`,-1)]]),_:1},8,[`class`])):W(``,!0)]),t[8]||=V(`div`,{class:`mx-4 border-t-2 border-gray-300 my-2`},null,-1),V(`div`,{class:`px-4`},[V(`button`,{onClick:u,class:`w-full bg-noctune-yellow border-2 border-black rounded-lg py-3 px-4 font-bold flex items-center gap-2 hover:bg-yellow-400 transition-colors`},[...t[7]||=[V(`svg`,{class:`w-5 h-5`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`3`,d:`M12 4v16m8-8H4`})],-1),V(`span`,{class:`tracking-wide`},`CREATE PLAYLIST`,-1)]])]),t[9]||=V(`div`,{class:`flex-1`},null,-1),H(Gp,{show:a.value,onClose:t[0]||=e=>a.value=!1,onCreated:d},null,8,[`show`])])}}},Sg={class:`min-h-screen bg-noctune-cream flex flex-col`},Cg={class:`flex flex-1`},wg={class:`flex-1 p-8 overflow-auto`},Tg={class:`max-w-2xl mx-auto`},Eg={key:0,class:`text-red-500 text-sm mb-4 font-medium`},Dg={key:1,class:`text-green-600 text-sm mb-4 font-medium`},Og={class:`bg-white rounded-2xl border-4 border-black p-8 space-y-6`},kg=[`src`],Ag={key:1,class:`text-gray-500`},jg={key:0,class:`text-black font-medium`},Mg={key:1,class:`text-gray-500`},Ng=[`disabled`],Pg={key:0,class:`inline-block w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin mr-2`},Fg=[{path:`/`,redirect:`/home`},{path:`/login`,name:`Login`,component:Cp,meta:{guest:!0}},{path:`/register`,name:`Register`,component:Rp,meta:{guest:!0}},{path:`/home`,name:`Home`,component:Tm},{path:`/library`,name:`Library`,component:rh},{path:`/playlist`,name:`Playlist`,component:hh},{path:`/playlist/:id`,name:`PlaylistDetail`,component:Wh},{path:`/profile`,name:`Profile`,component:dg},{path:`/admin/tracks`,name:`AdminTracks`,component:{__name:`AdminPage`,setup(e){let t=Ol(),n=F(``),r=F(``),i=F(``),a=F(``),o=F(null),s=F(``),c=F(null),l=F(!1),u=F(``),d=F(``),f=F(null),p=F(null);function m(e){let t=e.target.files[0];t&&(o.value=t,s.value=URL.createObjectURL(t))}function h(e){let t=e.target.files[0];t&&(c.value=t)}async function g(){if(u.value=``,d.value=``,!n.value||!r.value||!i.value||!a.value||!o.value||!c.value){u.value=`All fields are required`;return}l.value=!0;try{let e=new FormData;e.append(`title`,n.value),e.append(`artist`,r.value),e.append(`album`,i.value),e.append(`genre`,a.value),e.append(`cover`,o.value),e.append(`audio`,c.value);let{data:l}=await Q.post(`/admin/tracks`,e,{headers:{"Content-Type":`multipart/form-data`}});l.success&&(d.value=`Track uploaded successfully!`,n.value=``,r.value=``,i.value=``,a.value=``,o.value=null,s.value=``,c.value=null,setTimeout(()=>t.push(`/home`),1500))}catch(e){u.value=e.response?.data?.message||`Upload failed`}finally{l.value=!1}}return(e,t)=>(z(),B(`div`,Sg,[V(`div`,Cg,[V(`main`,wg,[V(`div`,Tg,[t[12]||=V(`h1`,{class:`text-4xl font-black text-black mb-2`},`Upload Track`,-1),t[13]||=V(`p`,{class:`text-gray-600 mb-8`},`Add a new track to the library`,-1),u.value?(z(),B(`p`,Eg,A(u.value),1)):W(``,!0),d.value?(z(),B(`p`,Dg,A(d.value),1)):W(``,!0),V(`div`,Og,[V(`div`,null,[t[6]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`TITLE`,-1),zn(V(`input`,{type:`text`,"onUpdate:modelValue":t[0]||=e=>n.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-3 focus:outline-none text-black`,placeholder:`Track title`},null,512),[[Eo,n.value]])]),V(`div`,null,[t[7]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`ARTIST`,-1),zn(V(`input`,{type:`text`,"onUpdate:modelValue":t[1]||=e=>r.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-3 focus:outline-none text-black`,placeholder:`Artist name`},null,512),[[Eo,r.value]])]),V(`div`,null,[t[8]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`ALBUM`,-1),zn(V(`input`,{type:`text`,"onUpdate:modelValue":t[2]||=e=>i.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-3 focus:outline-none text-black`,placeholder:`Album name`},null,512),[[Eo,i.value]])]),V(`div`,null,[t[9]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`GENRE`,-1),zn(V(`input`,{type:`text`,"onUpdate:modelValue":t[3]||=e=>a.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-3 focus:outline-none text-black`,placeholder:`e.g. Pop, Rock, Jazz`},null,512),[[Eo,a.value]])]),V(`div`,null,[t[10]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`COVER IMAGE`,-1),V(`div`,{class:`border-2 border-dashed border-black rounded-lg p-6 text-center cursor-pointer hover:bg-gray-50`,onClick:t[4]||=e=>f.value.click()},[s.value?(z(),B(`img`,{key:0,src:s.value,class:`w-32 h-32 object-cover mx-auto mb-2 rounded-lg border-2 border-black`},null,8,kg)):(z(),B(`p`,Ag,`Click to upload cover image`)),V(`input`,{ref_key:`coverInput`,ref:f,type:`file`,accept:`image/*`,onChange:m,class:`hidden`},null,544)])]),V(`div`,null,[t[11]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`AUDIO FILE`,-1),V(`div`,{class:`border-2 border-dashed border-black rounded-lg p-6 text-center cursor-pointer hover:bg-gray-50`,onClick:t[5]||=e=>p.value.click()},[c.value?(z(),B(`p`,jg,A(c.value.name),1)):(z(),B(`p`,Mg,` Click to upload audio file (MP3, WAV, FLAC) `)),V(`input`,{ref_key:`audioInput`,ref:p,type:`file`,accept:`.mp3,.wav,.flac`,onChange:h,class:`hidden`},null,544)])]),V(`button`,{onClick:g,disabled:l.value,class:`w-full bg-noctune-orange border-2 border-black rounded-lg py-4 font-bold text-white text-xl hover:bg-orange-600 transition-colors disabled:opacity-50`},[l.value?(z(),B(`span`,Pg)):W(``,!0),U(` `+A(l.value?`Uploading...`:`UPLOAD TRACK`),1)],8,Ng)])])])])]))}},meta:{admin:!0}}],Ig=Dl({history:qc(),routes:Fg});Ig.beforeEach((e,t,n)=>{let r=If();if(e.meta.admin&&!r.isAdmin||e.meta.guest&&r.isLoggedIn)return n(`/home`);n()});var Lg=`modulepreload`,Rg=function(e){return`/`+e},zg={},Bg=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Rg(t,n),t in zg)return;zg[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Lg,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Vg=null;function Hg(){let e=If();async function t({message:t,onAuthenticated:n,redirectTo:r}){if(e.isLoggedIn)n?.();else if(Vg=n||null,r)Ig.push(r);else if(t){let{useUiStore:e}=await Bg(async()=>{let{useUiStore:e}=await Promise.resolve().then(()=>Lf);return{useUiStore:e}},void 0);e().showToast(t,`info`)}}function n(){if(Vg){let e=Vg;Vg=null,e()}}return{requireAuth:t,executePending:n}}var Ug={class:`bg-noctune-teal px-4 py-3 flex items-center justify-between border-b-4 border-black`},Wg={class:`flex items-center gap-4`},Gg={class:`flex-1 max-w-md mx-8 relative`},Kg={class:`relative`},qg={key:0,class:`absolute top-full mt-2 left-0 right-0 bg-white border-2 border-black rounded-lg shadow-[4px_4px_0px_0px_#000] max-h-96 overflow-y-auto z-50`},Jg={key:0,class:`p-2`},Yg=[`onClick`],Xg={class:`w-8 h-8 bg-gray-300 rounded border border-black flex-shrink-0 overflow-hidden`},Zg=[`src`],Qg={class:`min-w-0 flex-1`},$g={class:`text-sm font-medium text-black truncate`},e_={class:`text-xs text-gray-500`},t_={key:1,class:`p-2 border-t border-gray-200`},n_=[`onClick`],r_={key:2,class:`p-4 text-center text-gray-500 text-sm`},i_={class:`flex items-center gap-4`},a_={class:`w-8 h-8 rounded-full bg-noctune-dark overflow-hidden border-2 border-black`},o_=[`src`],s_={key:1,class:`w-full h-full flex items-center justify-center`},c_={__name:`AppHeader`,setup(e){let t=Ol(),n=If(),r=rp(),i=ip(),{requireAuth:a}=Hg(),o=F(``),s=F(null),c=null;function l(){if(clearTimeout(c),!o.value.trim()){s.value=null;return}c=setTimeout(async()=>{try{let{data:e}=await Q.get(`/search?q=${encodeURIComponent(o.value)}`);e.success&&(s.value=e.data)}catch{s.value=null}},300)}function u(){o.value=``,s.value=null}function d(e){u(),i.setQueue([e],0),r.setTrack(e),r.play()}function f(){a({redirectTo:`/login`,onAuthenticated:()=>t.push(`/library`)})}function p(){a({redirectTo:`/login`,onAuthenticated:()=>t.push(`/profile`)})}return(e,r)=>{let i=Tr(`router-link`);return z(),B(`header`,Ug,[V(`div`,Wg,[H(i,{to:`/home`,class:`text-black font-bold text-2xl tracking-wider font-mono`},{default:Rn(()=>[...r[1]||=[U(`NOCTUNE`,-1)]]),_:1})]),V(`div`,Gg,[V(`div`,Kg,[r[2]||=V(`div`,{class:`absolute inset-y-0 left-3 flex items-center pointer-events-none`},[V(`svg`,{class:`w-5 h-5 text-gray-500`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z`})])],-1),zn(V(`input`,{type:`text`,"onUpdate:modelValue":r[0]||=e=>o.value=e,onInput:l,onKeydown:Vo(u,[`escape`]),placeholder:`Search music, artist, album...`,class:`w-full bg-noctune-cream py-2 pl-10 pr-4 rounded-full text-sm focus:outline-none focus:ring-2 focus:ring-black`},null,544),[[Eo,o.value]])]),s.value&&o.value?(z(),B(`div`,qg,[s.value.tracks?.length?(z(),B(`div`,Jg,[r[3]||=V(`p`,{class:`text-xs font-bold text-gray-500 px-2 py-1`},`TRACKS`,-1),(z(!0),B(R,null,L(s.value.tracks.slice(0,5),e=>(z(),B(`div`,{key:e._id,onClick:t=>d(e),class:`flex items-center gap-3 px-2 py-2 hover:bg-gray-100 rounded cursor-pointer`},[V(`div`,Xg,[e.coverUrl?(z(),B(`img`,{key:0,src:I(np)(e.coverUrl),class:`w-full h-full object-cover`},null,8,Zg)):W(``,!0)]),V(`div`,Qg,[V(`p`,$g,A(e.title),1),V(`p`,e_,A(e.artist),1)])],8,Yg))),128))])):W(``,!0),s.value.artists?.length?(z(),B(`div`,t_,[r[4]||=V(`p`,{class:`text-xs font-bold text-gray-500 px-2 py-1`},`ARTISTS`,-1),(z(!0),B(R,null,L(s.value.artists.slice(0,3),e=>(z(),B(`div`,{key:e.name,onClick:n=>I(t).push(`/home?artist=${e.name}`),class:`px-2 py-2 hover:bg-gray-100 rounded cursor-pointer text-sm font-medium text-black`},A(e.name),9,n_))),128))])):W(``,!0),!s.value.tracks?.length&&!s.value.artists?.length?(z(),B(`div`,r_,`No results found`)):W(``,!0)])):W(``,!0)]),V(`div`,i_,[V(`button`,{onClick:f,class:`text-black hover:opacity-80`},[...r[5]||=[V(`svg`,{class:`w-7 h-7`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z`})],-1)]]),V(`button`,{onClick:p,class:`text-black hover:opacity-80`},[V(`div`,a_,[I(n).user?.avatarUrl?(z(),B(`img`,{key:0,src:I(np)(I(n).user.avatarUrl),class:`w-full h-full object-cover`},null,8,o_)):(z(),B(`div`,s_,[...r[6]||=[V(`svg`,{class:`w-5 h-5 text-white`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z`})],-1)]]))])])])])}}},l_=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},u_={key:0,class:`fixed bottom-0 left-0 right-0 bg-noctune-dark border-t-4 border-black z-50`},d_={class:`flex items-center px-4 py-2 max-w-screen-2xl mx-auto`},f_={class:`flex items-center gap-3 w-80`},p_={class:`w-12 h-12 bg-black rounded-lg overflow-hidden flex-shrink-0 border border-white/20`},m_=[`src`],h_={key:1,class:`w-full h-full flex items-center justify-center`},g_={class:`min-w-0`},__={class:`text-sm font-bold text-white truncate`},v_={class:`text-xs text-gray-400 truncate`},y_={class:`flex-1 flex flex-col items-center`},b_={class:`flex items-center gap-4 mb-1`},x_={key:0,class:`w-5 h-5 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},S_={key:1,class:`w-5 h-5 text-black ml-0.5`,fill:`currentColor`,viewBox:`0 0 24 24`},C_={key:0,class:`absolute -top-2 -right-2 text-[9px] font-bold`},w_={class:`flex items-center gap-3 w-full max-w-lg`},T_={class:`text-xs text-gray-400 w-10 text-right`},E_=[`value`,`max`],D_={class:`text-xs text-gray-400 w-10`},O_={class:`w-80 flex items-center justify-end gap-3`},k_={class:`flex items-center gap-2`},A_=[`value`],j_=l_({__name:`PlayerBar`,setup(e){let t=rp(),n=ip(),r=If(),{requireAuth:i}=Hg(),a=F(!1),o=F(null);function s(e){return`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,`0`)}`}function c(e){let n=e.currentTarget.getBoundingClientRect();o.value=(e.clientX-n.left)/n.width*t.duration}function l(){let e=n.nextTrack();e&&(t.setTrack(e),t.play())}hr(()=>{t.onEnd(l)});let u=G(()=>np(t.currentTrack?.coverUrl));function d(e){t.seek(parseFloat(e.target.value))}function f(e){t.setVolume(parseInt(e.target.value))}function p(){let e=n.nextTrack();e&&(t.setTrack(e),t.play())}function m(){let e=n.prevTrack();e&&(t.setTrack(e),t.play())}function h(){if(!t.currentTrack)return;let e=t.currentTrack._id||t.currentTrack.id;i({redirectTo:`/login`,onAuthenticated:()=>r.toggleLike(e)})}return Kn(()=>t.currentTrack?._id,e=>{a.value=e?r.likedTrackIds.has(e):!1},{immediate:!0}),Kn(()=>r.user?.likedTracks?.length,()=>{let e=t.currentTrack?._id;e&&(a.value=r.likedTrackIds.has(e))}),(e,r)=>I(t).currentTrack?(z(),B(`div`,u_,[V(`div`,d_,[V(`div`,f_,[V(`div`,p_,[I(t).currentTrack.coverUrl?(z(),B(`img`,{key:0,src:u.value,alt:``,class:`w-full h-full object-cover`},null,8,m_)):(z(),B(`div`,h_,[...r[6]||=[aa(`<svg class="w-8 h-6 text-white/60" viewBox="0 0 50 30" data-v-0368441b><rect x="2" y="10" width="3" height="10" fill="currentColor" data-v-0368441b></rect><rect x="8" y="5" width="3" height="20" fill="currentColor" data-v-0368441b></rect><rect x="14" y="8" width="3" height="14" fill="currentColor" data-v-0368441b></rect><rect x="20" y="3" width="3" height="24" fill="currentColor" data-v-0368441b></rect><rect x="26" y="7" width="3" height="16" fill="currentColor" data-v-0368441b></rect><rect x="32" y="5" width="3" height="20" fill="currentColor" data-v-0368441b></rect><rect x="38" y="9" width="3" height="12" fill="currentColor" data-v-0368441b></rect><rect x="44" y="11" width="3" height="8" fill="currentColor" data-v-0368441b></rect></svg>`,1)]]))]),V(`div`,g_,[V(`p`,__,A(I(t).currentTrack.title),1),V(`p`,v_,A(I(t).currentTrack.artist),1)])]),V(`div`,y_,[V(`div`,b_,[V(`button`,{onClick:r[0]||=e=>I(n).toggleShuffle(),class:k([`text-sm transition-colors`,I(n).shuffle?`text-noctune-teal`:`text-gray-400 hover:text-white`])},[...r[7]||=[V(`svg`,{class:`w-4 h-4`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M10.59 9.17L5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.41l-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2.04 2.04-3.13-3.13z`})],-1)]],2),V(`button`,{onClick:r[1]||=e=>m(),class:`text-gray-400 hover:text-white transition-colors`},[...r[8]||=[V(`svg`,{class:`w-5 h-5`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M6 6h2v12H6zm3.5 6l8.5 6V6z`})],-1)]]),V(`button`,{onClick:r[2]||=e=>I(t).togglePlay(),class:`w-10 h-10 bg-white rounded-full flex items-center justify-center hover:scale-105 transition-transform`},[I(t).isPlaying?(z(),B(`svg`,x_,[...r[9]||=[V(`path`,{d:`M6 19h4V5H6v14zm8-14v14h4V5h-4z`},null,-1)]])):(z(),B(`svg`,S_,[...r[10]||=[V(`path`,{d:`M8 5v14l11-7z`},null,-1)]]))]),V(`button`,{onClick:r[3]||=e=>p(),class:`text-gray-400 hover:text-white transition-colors`},[...r[11]||=[V(`svg`,{class:`w-5 h-5`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z`})],-1)]]),V(`button`,{onClick:r[4]||=e=>I(n).cycleRepeat(),class:k([`text-sm transition-colors`,I(n).repeat===`off`?`text-gray-400 hover:text-white`:`text-noctune-teal`,I(n).repeat===`one`?`relative`:``])},[r[12]||=V(`svg`,{class:`w-4 h-4`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z`})],-1),I(n).repeat===`one`?(z(),B(`span`,C_,`1`)):W(``,!0)],2)]),V(`div`,w_,[V(`span`,T_,A(I(t).formattedProgress),1),V(`div`,{class:`relative flex-1`,onMousemove:c,onMouseleave:r[5]||=e=>o.value=null},[o.value===null?W(``,!0):(z(),B(`div`,{key:0,class:`absolute -top-6 left-1/2 -translate-x-1/2 bg-black text-white text-xs px-2 py-1 rounded whitespace-nowrap z-10`,style:pe({left:`${o.value/(I(t).duration||1)*100}%`})},A(s(o.value)),5)),V(`input`,{type:`range`,value:I(t).progress,onInput:d,min:`0`,max:I(t).duration||1,step:`0.1`,class:`w-full h-1 bg-gray-600 rounded-full appearance-none cursor-pointer range-player`},null,40,E_)],32),V(`span`,D_,A(I(t).formattedDuration),1)])]),V(`div`,O_,[V(`button`,{onClick:h,class:`transition-colors`},[(z(),B(`svg`,{class:k([`w-5 h-5`,a.value?`fill-red-400 text-red-400`:`text-gray-400 hover:text-red-400`]),fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[...r[13]||=[V(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z`},null,-1)]],2))]),V(`div`,k_,[r[14]||=V(`svg`,{class:`w-4 h-4 text-gray-400`,fill:`currentColor`,viewBox:`0 0 24 24`},[V(`path`,{d:`M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z`})],-1),V(`input`,{type:`range`,value:I(t).volume,onInput:f,min:`0`,max:`100`,class:`w-20 h-1 bg-gray-600 rounded-full appearance-none cursor-pointer range-vol`},null,40,A_)])])])])):W(``,!0)}},[[`__scopeId`,`data-v-0368441b`]]);function M_(){let e=rp();ip();function t(t){if(![`INPUT`,`TEXTAREA`].includes(t.target.tagName))switch(t.code){case`Space`:t.preventDefault(),e.togglePlay();break;case`ArrowLeft`:e.seek(Math.max(0,e.progress-5));break;case`ArrowRight`:e.seek(Math.min(e.duration,e.progress+5));break;case`ArrowUp`:e.setVolume(Math.min(100,e.volume+5));break;case`ArrowDown`:e.setVolume(Math.max(0,e.volume-5));break}}hr(()=>window.addEventListener(`keydown`,t)),yr(()=>window.removeEventListener(`keydown`,t))}var N_={class:`min-h-screen bg-noctune-cream`},P_={key:0},F_={class:`flex`},I_={class:`fixed top-4 right-4 z-[100] space-y-2`},L_={class:`flex items-center gap-2`},R_=[`onClick`],z_=Go({__name:`App`,setup(e){let t=kl(),n=If(),r=Rf(),i=rp(),a=G(()=>t.meta?.guest===!0),o=G(()=>!!i.currentTrack);M_();function s(e){return{info:`bg-noctune-teal text-black`,success:`bg-green-400 text-black`,error:`bg-red-400 text-white`}[e]||`bg-noctune-yellow text-black`}return hr(async()=>{await n.checkSession()}),(e,t)=>{let n=Tr(`router-view`);return z(),B(`div`,N_,[a.value?(z(),Zi(n,{key:1})):(z(),B(`div`,P_,[H(c_,{class:`sticky top-0 z-30`}),V(`div`,F_,[H(xg,{class:`fixed left-0 top-[57px] bottom-0 w-64 border-r-4 border-black overflow-y-auto z-20`}),V(`main`,{class:k([`ml-64 flex-1 min-h-[calc(100vh-57px)]`,{"pb-20":o.value}])},[H(n)],2)]),H(j_)])),V(`div`,I_,[(z(!0),B(R,null,L(I(r).toasts,e=>(z(),B(`div`,{key:e.id,class:k([`px-4 py-3 rounded-lg border-2 border-black font-bold text-sm shadow-[4px_4px_0px_0px_#000] transition-all animate-slide-in`,s(e.type)])},[V(`div`,L_,[V(`span`,null,A(e.message),1),V(`button`,{onClick:t=>I(r).dismissToast(e.id),class:`ml-2 opacity-60 hover:opacity-100`},` × `,8,R_)])],2))),128))])])}}}),B_=fs();z_.use(B_),z_.use(Ig),If(B_).checkSession().finally(()=>{z_.mount(`#app`)});