diff --git a/dist/assets/index-3bN2l3Ol.css b/dist/assets/index-3bN2l3Ol.css new file mode 100644 index 0000000..77de414 --- /dev/null +++ b/dist/assets/index-3bN2l3Ol.css @@ -0,0 +1 @@ +.range-player[data-v-e17af23f]::-webkit-slider-thumb{-webkit-appearance:none;cursor:pointer;background:#fff;border-radius:50%;width:12px;height:12px}.range-vol[data-v-e17af23f]::-webkit-slider-thumb{-webkit-appearance:none;cursor:pointer;background:#fff;border-radius:50%;width:12px;height:12px}.animate-slide-in{animation:.3s ease-out slideIn}@keyframes slideIn{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}*,:before,:after,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}:before,:after{--tw-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter,system-ui,sans-serif;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:Space Mono,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder{opacity:1;color:#9ca3af}textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.-right-2{right:-.5rem}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-12{bottom:3rem}.bottom-2{bottom:.5rem}.bottom-24{bottom:6rem}.left-0{left:0}.left-12{left:3rem}.left-20{left:5rem}.left-3{left:.75rem}.right-0{right:0}.right-12{right:3rem}.right-2{right:.5rem}.right-20{right:5rem}.right-4{right:1rem}.right-8{right:2rem}.top-0{top:0}.top-16{top:4rem}.top-20{top:5rem}.top-4{top:1rem}.top-8{top:2rem}.top-\[57px\]{top:57px}.top-full{top:100%}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.z-\[100\]{z-index:100}.m-4{margin:1rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-8{margin-left:2rem;margin-right:2rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-1{margin-bottom:.25rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0\.5{margin-left:.125rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-64{margin-left:16rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-24{height:6rem}.h-32{height:8rem}.h-4{height:1rem}.h-40{height:10rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-80{height:20rem}.h-full{height:100%}.max-h-72{max-height:18rem}.max-h-96{max-height:24rem}.min-h-\[calc\(100vh-57px\)\]{min-height:calc(100vh - 57px)}.min-h-screen{min-height:100vh}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-80{width:20rem}.w-full{width:100%}.min-w-0{min-width:0}.max-w-2xl{max-width:42rem}.max-w-5xl{max-width:64rem}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-screen-2xl{max-width:1536px}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:1s linear infinite spin}.cursor-pointer{cursor:pointer}.appearance-none{appearance:none}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity,1))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-b-4{border-bottom-width:4px}.border-r-2{border-right-width:2px}.border-r-4{border-right-width:4px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.border-t-4{border-top-width:4px}.border-dashed{border-style:dashed}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity,1))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.border-noctune-orange{--tw-border-opacity:1;border-color:rgb(255 107 53/var(--tw-border-opacity,1))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}.border-white\/20{border-color:#fff3}.border-t-transparent{border-top-color:#0000}.bg-amber-200{--tw-bg-opacity:1;background-color:rgb(253 230 138/var(--tw-bg-opacity,1))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-black\/0{background-color:#0000}.bg-black\/30{background-color:#0000004d}.bg-black\/40{background-color:#0006}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.bg-gray-600{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1))}.bg-green-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity,1))}.bg-noctune-cream{--tw-bg-opacity:1;background-color:rgb(245 240 220/var(--tw-bg-opacity,1))}.bg-noctune-dark{--tw-bg-opacity:1;background-color:rgb(26 26 26/var(--tw-bg-opacity,1))}.bg-noctune-orange{--tw-bg-opacity:1;background-color:rgb(255 107 53/var(--tw-bg-opacity,1))}.bg-noctune-teal{--tw-bg-opacity:1;background-color:rgb(26 155 143/var(--tw-bg-opacity,1))}.bg-noctune-yellow{--tw-bg-opacity:1;background-color:rgb(255 215 0/var(--tw-bg-opacity,1))}.bg-red-400{--tw-bg-opacity:1;background-color:rgb(248 113 113/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white\/20{background-color:#fff3}.fill-red-400{fill:#f87171}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-12{padding:3rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-20{padding-bottom:5rem}.pl-10{padding-left:2.5rem}.pr-4{padding-right:1rem}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:Space Mono,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-\[9px\]{font-size:9px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-medium{font-weight:500}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.text-black\/60{color:#0009}.text-black\/70{color:#000000b3}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-noctune-dark{--tw-text-opacity:1;color:rgb(26 26 26/var(--tw-text-opacity,1))}.text-noctune-orange{--tw-text-opacity:1;color:rgb(255 107 53/var(--tw-text-opacity,1))}.text-noctune-teal{--tw-text-opacity:1;color:rgb(26 155 143/var(--tw-text-opacity,1))}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-white\/60{color:#fff9}.opacity-0{opacity:0}.opacity-60{opacity:.6}.shadow-2xl{--tw-shadow:0 25px 50px -12px #00000040;--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.shadow-\[4px_4px_0px_0px_\#000\]{--tw-shadow:4px 4px 0px 0px #000;--tw-shadow-colored:4px 4px 0px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}*{box-sizing:border-box}body{margin:0;padding:0;font-family:Inter,system-ui,sans-serif}input[type=range]{appearance:none;background:#1a1a1a;border-radius:3px;height:6px}input[type=range]::-webkit-slider-thumb{appearance:none;cursor:pointer;background:#1a1a1a;border-radius:50%;width:14px;height:14px}input[type=range]::-moz-range-thumb{cursor:pointer;background:#1a1a1a;border:none;border-radius:50%;width:14px;height:14px}.hover\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-\[1\.02\]:hover{--tw-scale-x:1.02;--tw-scale-y:1.02;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.hover\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.hover\:bg-noctune-orange\/20:hover{background-color:#ff6b3533}.hover\:bg-noctune-teal\/20:hover{background-color:#1a9b8f33}.hover\:bg-orange-600:hover{--tw-bg-opacity:1;background-color:rgb(234 88 12/var(--tw-bg-opacity,1))}.hover\:bg-teal-600:hover{--tw-bg-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity,1))}.hover\:bg-yellow-400:hover{--tw-bg-opacity:1;background-color:rgb(250 204 21/var(--tw-bg-opacity,1))}.hover\:text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.hover\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.hover\:text-red-400:hover{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-70:hover{opacity:.7}.hover\:opacity-80:hover{opacity:.8}.focus\:outline-none:focus{outline-offset:2px;outline:2px solid #0000}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow,0 0 #0000)}.focus\:ring-black:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity,1))}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:bg-black\/20{background-color:#0003}.group:hover .group-hover\:opacity-100{opacity:1} diff --git a/dist/assets/index-BO7gh51n.js b/dist/assets/index-BO7gh51n.js deleted file mode 100644 index 4657ebc..0000000 --- a/dist/assets/index-BO7gh51n.js +++ /dev/null @@ -1,9 +0,0 @@ -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)),k=D(e=>e?`on${ae(e)}`:``),oe=(e,t)=>!Object.is(e,t),se=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},le=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ue,de=()=>ue||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function fe(e){if(m(e)){let t={};for(let n=0;n{if(e){let n=e.split(me);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function _e(e){let t=``;if(y(e))t=e;else if(m(e))for(let n=0;nSe(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;e0&&--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;t0)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||oe(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,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||(oe(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||(oe(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)||oe(e,a)&&r.has.call(n,e)||oe(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?oe(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)&&ce(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),oe(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)=>oe(e,C[t])):oe(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{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>>1,i=yn[r],a=Nn(i);a=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(;nNn(e)-Nn(t));if(xn.length=0,Sn){Sn.push(...e);return}for(Sn=e,Cn=0;Cne.id==null?e.flags&2?-1:1/0:e.id;function Pn(e){try{for(bn=0;bn{r._d&&Xi(-1);let i=Ln(t),a;try{a=e(...n)}finally{Ln(i),r._d&&Xi(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;e1)return n&&v(t)?t.call(r&&r.proxy):t}}function Un(){return!!(ha()||$r)}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=W;l.call=(e,t,n)=>gn(e,p,t,n);let m=!1;s===`post`?l.scheduler=e=>{Ai(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;ee.__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),Ai(t,n)}else ar(e),i()}}}function ar(e){let t=rr.get(e);t&&(t.flags|=8,rr.delete(e))}de().requestIdleCallback,de().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=W){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=W,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=W)=>{(!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=W){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||W;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 kr(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;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;re?ba(e)?Aa(e):Ar(e.parent):null,jr=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=>Ar(e.parent),$root:e=>Ar(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Br(e),$forceUpdate:e=>e.f||=()=>{On(e.update)},$nextTick:e=>e.n||=En.bind(e.proxy),$watch:e=>Jn.bind(e)}),Mr=(e,t)=>e!==i&&!e.__isScriptSetup&&p(e,t),Nr={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(Mr(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 Fr&&(s[t]=0)}let u=jr[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 Mr(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)||Mr(t,c)||p(o,c)||p(r,c)||p(jr,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 Pr(e){return m(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var Fr=!0;function Ir(e){let t=Br(e),n=e.proxy,r=e.ctx;Fr=!1,t.beforeCreate&&Rr(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&&Lr(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(Fr=!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)zr(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&&Rr(d,e,`c`);function k(e,t){m(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(k(mr,f),k(hr,p),k(gr,h),k(_r,g),k(cr,_),k(lr,y),k(Cr,E),k(Sr,te),k(xr,T),k(vr,S),k(yr,w),k(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 Lr(e,t,n=o){m(e)&&(e=Gr(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 Rr(e,t,n){gn(m(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function zr(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=>zr(e,t,n,r));else{let r=v(e.handler)?e.handler.bind(n):t[e.handler];v(r)&&Kn(i,r,e)}}function Br(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=>Vr(c,e,o,!0)),Vr(c,t,o)),x(t)&&a.set(t,c),c}function Vr(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Vr(e,a,n,!0),i&&i.forEach(t=>Vr(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Hr[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Hr={data:Ur,props:Jr,emits:Jr,methods:qr,computed:qr,beforeCreate:Kr,created:Kr,beforeMount:Kr,mounted:Kr,beforeUpdate:Kr,updated:Kr,beforeDestroy:Kr,beforeUnmount:Kr,destroyed:Kr,unmounted:Kr,activated:Kr,deactivated:Kr,errorCaptured:Kr,serverPrefetch:Kr,components:qr,directives:qr,watch:Yr,provide:Ur,inject:Wr};function Ur(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 Wr(e,t){return qr(Gr(e),Gr(t))}function Gr(e){if(m(e)){let t={};for(let n=0;nt===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${ie(t)}Modifiers`];function ti(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||i,a=n,o=t.startsWith(`update:`),s=o&&ei(r,t.slice(7));s&&(s.trim&&(a=n.map(e=>y(e)?e.trim():e)),s.number&&(a=n.map(le)));let c,l=r[c=k(t)]||r[c=k(O(t))];!l&&o&&(l=r[c=k(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 ni=new WeakMap;function ri(e,t,n=!1){let r=n?ni: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=ri(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 ii(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 ai(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=sa(u.call(t,e,d,f,m,p,h)),y=s}else{let e=t;v=sa(e.length>1?e(f,{attrs:s,slots:o,emit:c}):e(f,null)),y=t.props?s:oi(s)}}catch(t){Ki.length=0,_n(t,e,1),v=V(Wi)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(l)&&(y=si(y,a)),b=aa(b,y,!1,!0))}return n.dirs&&(b=aa(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 oi=e=>{let t;for(let n in e)(n===`class`||n===`style`||c(n))&&((t||={})[n]=e[n]);return t},si=(e,t)=>{let n={};for(let r in e)(!l(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function ci(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?li(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;tObject.create(fi),mi=e=>Object.getPrototypeOf(e)===fi;function hi(e,t,n,r=!1){let i={},a=pi();e.propsDefaults=Object.create(null),_i(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 gi(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{d=!0;let[n,r]=bi(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;ee===`_`||e===`_ctx`||e===`$stable`,Ci=e=>m(e)?e.map(sa):[sa(e)],wi=(e,t,n)=>{if(t._n)return t;let r=Rn((...e)=>Ci(t(...e)),n);return r._c=!1,r},Ti=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Si(n))continue;let i=e[n];if(v(i))t[n]=wi(n,i,r);else if(i!=null){let e=Ci(i);t[n]=()=>e}}},Ei=(e,t)=>{let n=Ci(t);e.slots.default=()=>n},Di=(e,t,n)=>{for(let r in t)(n||!Si(r))&&(e[r]=t[r])},Oi=(e,t,n)=>{let r=e.slots=pi();if(e.vnode.shapeFlag&32){let e=t._;e?(Di(r,t,n),n&&ce(r,`_`,e,!0)):Ti(t,r)}else t&&Ei(e,t)},ki=(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:Di(a,t,n):(o=!t.$stable,Ti(t,a)),s=t}else t&&(Ei(e,t),s={default:1});if(o)for(let e in a)!Si(e)&&s[e]==null&&delete a[e]},Ai=Hi;function ji(e){return Mi(e)}function Mi(e,t){let n=de();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&&!ea(e,t)&&(r=ye(e),me(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 Ui:y(e,t,n,r);break;case Wi:b(e,t,n,r);break;case Gi:e??x(t,n,r,o);break;case L: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,Ni(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)&&da(f,i,e)}_&&Bn(e,null,i,`beforeMount`);let v=Fi(a,g);v&&g.beforeEnter(d),r(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&Ai(()=>{try{f&&da(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{for(let l=c;l{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&&Pi(n,!1),(g=h.onVnodeBeforeUpdate)&&da(g,n,t,e),f&&Bn(t,e,n,`beforeUpdate`),n&&Pi(n,!0),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?ne(e.dynamicChildren,d,l,n,r,Ni(t,a),o):s||le(e,t,l,null,n,r,Ni(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{g&&da(g,n,t,e),f&&Bn(t,e,n,`updated`)},r)},ne=(e,t,n,r,i,a,o)=>{for(let s=0;s{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)&&Ii(e,t,!0)):le(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):k(e,t,c)},ae=(e,t,n,r,i,a,o)=>{let s=e.component=ma(e,r,i);if(sr(e)&&(s.ctx.renderer=Se),Sa(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,oe,o),!e.el){let r=s.subTree=V(Wi);b(null,r,t,n),e.placeholder=r.el}}else oe(s,e,t,n,i,a,o)},k=(e,t,n)=>{let r=t.component=e.component;if(ci(e,t,n))if(r.asyncDep&&!r.asyncResolved){ce(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},oe=(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=Ri(e);if(n){t&&(t.el=c.el,ce(e,t,o)),n.asyncDep.then(()=>{Ai(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Pi(e,!1),t?(t.el=c.el,ce(e,t,o)):t=c,n&&se(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&da(d,s,t,c),Pi(e,!0);let f=ai(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),ye(p),e,i,a),t.el=f.el,u===null&&di(e,f.el),r&&Ai(r,i),(d=t.props&&t.props.onVnodeUpdated)&&Ai(()=>da(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(Pi(e,!1),l&&se(l),!m&&(o=c&&c.onVnodeBeforeMount)&&da(o,d,t),Pi(e,!0),s&&we){let t=()=>{e.subTree=ai(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=ai(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&Ai(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;Ai(()=>da(o,d,e),i)}(t.shapeFlag&256||d&&or(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&Ai(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),Pi(e,!0),l()},ce=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,gi(e,t.props,r,n),ki(e,t.children,n),qe(),jn(e),Je()},le=(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){fe(l,d,n,r,i,a,o,s,c);return}else if(f&256){ue(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?fe(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))},ue=(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;pd?ve(e,i,o,!0,!1,f):T(t,n,r,i,o,s,c,l,f)},fe=(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?ca(t[u]):sa(t[u]);if(ea(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?ca(t[p]):sa(t[p]);if(ea(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=ep)for(;u<=f;)me(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?ca(t[u]):sa(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){me(r,i,o,!0);continue}let a;if(r.key!=null)a=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&ea(r,t[_])){a=_;break}a===void 0?me(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?Li(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{let{el:o,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){pe(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===L){r(o,t,n);for(let e=0;el.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)},me=(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)&&da(_,t,e),u&6)_e(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!==L||d>0&&d&64)?ve(l,t,n,!1,!0):(a===L&&d&384||!i&&u&16)&&ve(c,t,n),r&&he(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&Ai(()=>{_&&da(_,t,e),h&&Bn(e,null,t,`unmounted`),v&&(e.el=null)},n)},he=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===L){ge(n,r);return}if(t===Gi){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()},ge=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},_e=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;zi(c),zi(l),r&&se(r),i.stop(),a&&(a.flags|=8,me(o,e,t,n)),s&&Ai(s,t),Ai(()=>{e.isUnmounted=!0},t)},ve=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{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&&(me(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:me,m:pe,r:he,mt:ae,mc:T,pc:le,pbc:ne,n:ye,o:e},Ce,we;return t&&([Ce,we]=t(Se)),{render:xe,hydrate:Ce,createApp:Qr(xe,Ce)}}function Ni({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 Pi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Fi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ii(e,t,n=!1){let r=e.children,i=t.children;if(m(r)&&m(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function Ri(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ri(t)}function zi(e){if(e)for(let t=0;te.__isSuspense;function Hi(e,t){t&&t.pendingBranch?m(e)?t.effects.push(...e):t.effects.push(e):An(e)}var L=Symbol.for(`v-fgt`),Ui=Symbol.for(`v-txt`),Wi=Symbol.for(`v-cmt`),Gi=Symbol.for(`v-stc`),Ki=[],qi=null;function R(e=!1){Ki.push(qi=e?null:[])}function Ji(){Ki.pop(),qi=Ki[Ki.length-1]||null}var Yi=1;function Xi(e,t=!1){Yi+=e,e<0&&qi&&t&&(qi.hasOnce=!0)}function Zi(e){return e.dynamicChildren=Yi>0?qi||a:null,Ji(),Yi>0&&qi&&qi.push(e),e}function z(e,t,n,r,i,a){return Zi(B(e,t,n,r,i,a,!0))}function Qi(e,t,n,r,i){return Zi(V(e,t,n,r,i,!0))}function $i(e){return e?e.__v_isVNode===!0:!1}function ea(e,t){return e.type===t.type&&e.key===t.key}var ta=({key:e})=>e??null,na=({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 B(e,t=null,n=null,r=0,i=null,a=e===L?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ta(t),ref:t&&na(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?(la(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),Yi>0&&!o&&qi&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&qi.push(c),c}var V=ra;function ra(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Er)&&(e=Wi),$i(e)){let r=aa(e,t,!0);return n&&la(r,n),Yi>0&&!a&&qi&&(r.shapeFlag&6?qi[qi.indexOf(e)]=r:qi.push(r)),r.patchFlag=-2,r}if(Ma(e)&&(e=e.__vccOpts),t){t=ia(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=_e(e)),x(n)&&(Jt(n)&&!m(n)&&(n=u({},n)),t.style=fe(n))}let o=y(e)?1:Vi(e)?128:Zn(e)?64:x(e)?4:v(e)?2:0;return B(e,t,n,r,i,o,a,!0)}function ia(e){return e?Jt(e)||mi(e)?u({},e):e:null}function aa(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?ua(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ta(l),ref:t&&t.ref?n&&a?m(a)?a.concat(na(t)):[a,na(t)]:na(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!==L?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&&aa(e.ssContent),ssFallback:e.ssFallback&&aa(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 H(e=` `,t=0){return V(Ui,null,e,t)}function oa(e,t){let n=V(Gi,null,e);return n.staticCount=t,n}function U(e=``,t=!1){return t?(R(),Qi(Wi,null,e)):V(Wi,null,e)}function sa(e){return e==null||typeof e==`boolean`?V(Wi):m(e)?V(L,null,e.slice()):$i(e)?ca(e):V(Ui,null,String(e))}function ca(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:aa(e)}function la(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),la(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!mi(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=[H(t)]):n=8);e.children=t,e.shapeFlag|=n}function ua(...e){let t={};for(let n=0;nW||Fn,ga,_a;{let e=de(),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=>W=e),_a=t(`__VUE_SSR_SETTERS__`,e=>xa=e)}var va=e=>{let t=W;return ga(e),e.scope.on(),()=>{e.scope.off(),ga(t)}},ya=()=>{W&&W.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);hi(e,r,a,t),Oi(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,Nr);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||Br(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{Ir(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 jr)return jr[n](e)},has(e,t){return t in e||t in jr}}):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{Xi(-1);let r=arguments.length;return r===2?x(t)&&!m(t)?$i(t)?V(e,null,[t]):V(e,t):V(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&$i(n)&&(n=[n]),V(e,t,n))}finally{Xi(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`?`${e}`:r===`mathml`?`${e}`: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;nfo||=(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=>se(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=le(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)?le(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?le(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;iString(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{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||=ji(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;o1&&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;ee&&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;osc(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(;st.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(;n0&&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{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}),se(i,i,!0,!1)),(f?Promise.resolve(f):te(d,i)).catch(e=>kc(e)?kc(e,q.NAVIGATION_GUARD_REDIRECT)?e:oe(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=ue.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),fe(n).then(()=>{n=[];for(let r of a.list())n.push(zc(r,e,t));return n.push(c),fe(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),fe(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),fe(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Bc(s,`beforeRouteEnter`,e,t,ee),n.push(c),fe(n))).then(()=>{n=[];for(let r of o.list())n.push(zc(r,e,t));return n.push(c),fe(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,se(e,t,n,s),oe()}let D;function ne(){D||=i.listen((e,t,n)=>{if(!de.listening)return;let r=_(e),a=S(r,de.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){oe(e);let r=re.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function k(){return ie&&c.value!==fc?Promise.resolve():new Promise((e,t)=>{O.add([e,t])})}function oe(e){return ie||(ie=!e,ne(),O.list().forEach(([t,n])=>e?n(e):t()),O.reset()),e}function se(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 ce=e=>i.go(e),le,ue=new Set,de={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:re.add,isReady:k,install(e){e.component(`RouterLink`,yl),e.component(`RouterView`,El),e.config.globalProperties.$router=de,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>I(c)}),Ds&&!le&&c.value===fc&&(le=!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,de),e.provide(Ic,Ht(t)),e.provide(Lc,c);let n=e.unmount;ue.add(e),e.unmount=function(){ue.delete(e),ue.size<1&&(l=fc,D&&D(),D=null,c.value=fc,le=!1,ie=!1),n()}}};function fe(e){return e.reduce((e,t)=>e.then(()=>ee(t)),Promise.resolve())}return de}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;r0;)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(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(;tt;){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=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{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;ne 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{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=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=55296&&n<=56319&&e+1=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`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{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:3001/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`);async function a(){try{let{data:t}=await Q.get(`/auth/me`);t.success&&(e.value=t.data)}catch{e.value=null}}async function o(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 s(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 c(){try{await Q.post(`/auth/logout`)}finally{e.value=null}}async function l(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}}return{user:e,loading:t,isLoggedIn:n,isAdmin:r,isArtist:i,checkSession:a,login:o,register:s,logout:c,updateProfile:l}}),Lf=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}}),Rf=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=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.length0?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=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;o0?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),(nt&&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=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=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=0&&n._howls.splice(i,1);var o=!0;for(r=0;r=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=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=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=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;i0?(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;oBf.onPlay?.(),onpause:()=>Bf.onPause?.(),onend:()=>Bf.onEnd?.(),onloaderror:()=>Bf.onError?.(),onplayerror:()=>Bf.onError?.()})}function Uf(){zf?.play()}function Wf(){zf?.pause()}function Gf(){zf?.playing()?zf.pause():zf.play()}function Kf(e){zf&&zf.seek(e)}function qf(){return zf?zf.seek():0}function Jf(e){return e!==void 0&&Howler.volume(e/100),Howler.volume()*100}function Yf(){return zf?zf.duration():0}function Xf(){return zf?zf.playing():!1}function Zf(e,t){Bf[e]=t}function Qf(e){delete Bf[e]}function $f(){zf&&=(zf.unload(),null),Bf={}}var $={load:Hf,play:Uf,pause:Wf,togglePlay:Gf,seek:Kf,getSeek:qf,volume:Jf,duration:Yf,playing:Xf,on:Zf,off:Qf,destroy:$f,formatTime:Vf},ep=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=i.audioUrl.startsWith(`http`)?i.audioUrl:`http://localhost:3001${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:_}}),tp=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}}),np={class:`bg-noctune-teal px-4 py-3 flex items-center justify-between border-b-4 border-black`},rp={class:`flex items-center gap-4`},ip={class:`flex-1 max-w-md mx-8 relative`},ap={class:`relative`},op={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`},sp={key:0,class:`p-2`},cp=[`onClick`],lp={class:`w-8 h-8 bg-gray-300 rounded border border-black flex-shrink-0 overflow-hidden`},up=[`src`],dp={class:`min-w-0 flex-1`},fp={class:`text-sm font-medium text-black truncate`},pp={class:`text-xs text-gray-500`},mp={key:1,class:`p-2 border-t border-gray-200`},hp=[`onClick`],gp={key:2,class:`p-4 text-center text-gray-500 text-sm`},_p={class:`flex items-center gap-4`},vp={class:`w-8 h-8 rounded-full bg-noctune-dark overflow-hidden border-2 border-black`},yp=[`src`],bp={key:1,class:`w-full h-full flex items-center justify-center`},xp={__name:`AppHeader`,setup(e){let t=Ol(),n=If(),r=ep(),i=tp(),a=F(``),o=F(null),s=null;function c(e){return e?e.startsWith(`http`)?e:`http://localhost:3001${e}`:``}function l(){if(clearTimeout(s),!a.value.trim()){o.value=null;return}s=setTimeout(async()=>{try{let{data:e}=await Q.get(`/search?q=${encodeURIComponent(a.value)}`);e.success&&(o.value=e.data)}catch{o.value=null}},300)}function u(){a.value=``,o.value=null}function d(e){u(),i.setQueue([e],0),r.setTrack(e),r.play()}function f(){t.push(`/library`)}return(e,r)=>{let i=Tr(`router-link`);return R(),z(`header`,np,[B(`div`,rp,[V(i,{to:`/home`,class:`text-black font-bold text-2xl tracking-wider font-mono`},{default:Rn(()=>[...r[1]||=[H(`NOCTUNE`,-1)]]),_:1})]),B(`div`,ip,[B(`div`,ap,[r[2]||=B(`div`,{class:`absolute inset-y-0 left-3 flex items-center pointer-events-none`},[B(`svg`,{class:`w-5 h-5 text-gray-500`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[B(`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(B(`input`,{type:`text`,"onUpdate:modelValue":r[0]||=e=>a.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,a.value]])]),o.value&&a.value?(R(),z(`div`,op,[o.value.tracks?.length?(R(),z(`div`,sp,[r[3]||=B(`p`,{class:`text-xs font-bold text-gray-500 px-2 py-1`},`TRACKS`,-1),(R(!0),z(L,null,kr(o.value.tracks.slice(0,5),e=>(R(),z(`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`},[B(`div`,lp,[e.coverUrl?(R(),z(`img`,{key:0,src:c(e.coverUrl),class:`w-full h-full object-cover`},null,8,up)):U(``,!0)]),B(`div`,dp,[B(`p`,fp,A(e.title),1),B(`p`,pp,A(e.artist),1)])],8,cp))),128))])):U(``,!0),o.value.artists?.length?(R(),z(`div`,mp,[r[4]||=B(`p`,{class:`text-xs font-bold text-gray-500 px-2 py-1`},`ARTISTS`,-1),(R(!0),z(L,null,kr(o.value.artists.slice(0,3),e=>(R(),z(`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,hp))),128))])):U(``,!0),!o.value.tracks?.length&&!o.value.artists?.length?(R(),z(`div`,gp,`No results found`)):U(``,!0)])):U(``,!0)]),B(`div`,_p,[B(`button`,{onClick:f,class:`text-black hover:opacity-80`},[...r[5]||=[B(`svg`,{class:`w-7 h-7`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`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(i,{to:`/profile`,class:`text-black hover:opacity-80`},{default:Rn(()=>[B(`div`,vp,[I(n).user?.avatarUrl?(R(),z(`img`,{key:0,src:c(I(n).user.avatarUrl),class:`w-full h-full object-cover`},null,8,yp)):(R(),z(`div`,bp,[...r[6]||=[B(`svg`,{class:`w-5 h-5 text-white`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`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)]]))])]),_:1})])])}}},Sp={class:`w-64 bg-noctune-cream border-r-4 border-black flex flex-col h-full`},Cp={class:`p-4 space-y-2`},wp={class:`flex-1 overflow-y-auto px-4 mt-4`},Tp={key:0,class:`space-y-1`},Ep=[`onClick`],Dp={__name:`Sidebar`,setup(e){let t=kl(),n=Ol(),r=If();tp();let i=F([]),a=e=>t.path===e;async function o(){if(r.isLoggedIn)try{let{data:e}=await Q.get(`/playlists`);e.success&&(i.value=e.data)}catch{}}async function s(){let e=prompt(`Playlist name:`);if(e?.trim())try{let{data:t}=await Q.post(`/playlists`,{name:e.trim()});t.success&&i.value.push(t.data)}catch{}}return hr(o),(e,t)=>{let o=Tr(`router-link`);return R(),z(`aside`,Sp,[B(`nav`,Cp,[V(o,{to:`/home`,class:_e([`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":a(`/home`)}])},{default:Rn(()=>[...t[0]||=[B(`svg`,{class:`w-6 h-6`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`path`,{d:`M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z`})],-1),B(`span`,{class:`tracking-wide`},`HOME`,-1)]]),_:1},8,[`class`]),V(o,{to:`/library`,class:_e([`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":a(`/library`)}])},{default:Rn(()=>[...t[1]||=[B(`svg`,{class:`w-6 h-6`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`path`,{d:`M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z`})],-1),B(`span`,{class:`tracking-wide`},`LIBRARY`,-1)]]),_:1},8,[`class`]),V(o,{to:`/playlist`,class:_e([`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":a(`/playlist`)}])},{default:Rn(()=>[...t[2]||=[B(`svg`,{class:`w-6 h-6`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`path`,{d:`M3 10h11v2H3v-2zm0-4h11v2H3V6zm0 8h7v2H3v-2zm13-1v8l6-4-6-4z`})],-1),B(`span`,{class:`tracking-wide`},`PLAYLIST`,-1)]]),_:1},8,[`class`]),I(r).isAdmin?(R(),Qi(o,{key:0,to:`/admin/tracks`,class:_e([`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":a(`/admin/tracks`)}])},{default:Rn(()=>[...t[3]||=[B(`svg`,{class:`w-6 h-6`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`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),B(`span`,{class:`tracking-wide`},`UPLOAD TRACK`,-1)]]),_:1},8,[`class`])):U(``,!0)]),t[7]||=B(`div`,{class:`mx-4 border-t-2 border-gray-300 my-2`},null,-1),B(`div`,{class:`px-4`},[B(`button`,{onClick:s,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[4]||=[B(`svg`,{class:`w-5 h-5`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[B(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`3`,d:`M12 4v16m8-8H4`})],-1),B(`span`,{class:`tracking-wide`},`CREATE PLAYLIST`,-1)]])]),B(`div`,wp,[i.value.length?(R(),z(`div`,Tp,[t[6]||=B(`p`,{class:`text-xs font-bold text-gray-500 px-2 mb-2`},`YOUR PLAYLISTS`,-1),(R(!0),z(L,null,kr(i.value,e=>(R(),z(`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 text-black font-medium truncate`},[t[5]||=B(`svg`,{class:`w-4 h-4 flex-shrink-0 text-gray-500`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`path`,{d:`M3 10h11v2H3v-2zm0-4h11v2H3V6zm0 8h7v2H3v-2zm13-1v8l6-4-6-4z`})],-1),H(` `+A(e.name),1)],8,Ep))),128))])):U(``,!0)])])}}},Op=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},kp={key:0,class:`fixed bottom-0 left-0 right-0 bg-noctune-dark border-t-4 border-black z-50`},Ap={class:`flex items-center px-4 py-2 max-w-screen-2xl mx-auto`},jp={class:`flex items-center gap-3 w-80`},Mp={class:`w-12 h-12 bg-black rounded-lg overflow-hidden flex-shrink-0 border border-white/20`},Np=[`src`],Pp={key:1,class:`w-full h-full flex items-center justify-center`},Fp={class:`min-w-0`},Ip={class:`text-sm font-bold text-white truncate`},Lp={class:`text-xs text-gray-400 truncate`},Rp={class:`flex-1 flex flex-col items-center`},zp={class:`flex items-center gap-4 mb-1`},Bp={key:0,class:`w-5 h-5 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},Vp={key:1,class:`w-5 h-5 text-black ml-0.5`,fill:`currentColor`,viewBox:`0 0 24 24`},Hp={key:0,class:`absolute -top-2 -right-2 text-[9px] font-bold`},Up={class:`flex items-center gap-3 w-full max-w-lg`},Wp={class:`text-xs text-gray-400 w-10 text-right`},Gp=[`value`,`max`],Kp={class:`text-xs text-gray-400 w-10`},qp={class:`w-80 flex items-center justify-end gap-3`},Jp={class:`flex items-center gap-2`},Yp=[`value`],Xp=Op({__name:`PlayerBar`,setup(e){let t=ep(),n=tp(),r=F(!1);function i(){let e=n.nextTrack();e&&(t.setTrack(e),t.play())}hr(()=>{t.onEnd(i)});let a=G(()=>{let e=t.currentTrack?.coverUrl;return e?e.startsWith(`http`)?e:`http://localhost:3001${e}`:``});function o(e){t.seek(parseFloat(e.target.value))}function s(e){t.setVolume(parseInt(e.target.value))}function c(){let e=n.nextTrack();e&&(t.setTrack(e),t.play())}function l(){let e=n.prevTrack();e&&(t.setTrack(e),t.play())}Kn(()=>t.currentTrack?.id,async e=>{if(e)try{let{data:t}=await Q.get(`/auth/me`);t.success&&(r.value=t.data.likedTracks?.includes(e)||!1)}catch{r.value=!1}});async function u(){if(!t.currentTrack)return;let e=t.currentTrack._id||t.currentTrack.id;try{r.value?await Q.delete(`/tracks/${e}/like`):await Q.post(`/tracks/${e}/like`),r.value=!r.value}catch{}}return(e,i)=>I(t).currentTrack?(R(),z(`div`,kp,[B(`div`,Ap,[B(`div`,jp,[B(`div`,Mp,[I(t).currentTrack.coverUrl?(R(),z(`img`,{key:0,src:a.value,alt:``,class:`w-full h-full object-cover`},null,8,Np)):(R(),z(`div`,Pp,[...i[5]||=[oa(``,1)]]))]),B(`div`,Fp,[B(`p`,Ip,A(I(t).currentTrack.title),1),B(`p`,Lp,A(I(t).currentTrack.artist),1)])]),B(`div`,Rp,[B(`div`,zp,[B(`button`,{onClick:i[0]||=e=>I(n).toggleShuffle(),class:_e([`text-sm transition-colors`,I(n).shuffle?`text-noctune-teal`:`text-gray-400 hover:text-white`])},[...i[6]||=[B(`svg`,{class:`w-4 h-4`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`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),B(`button`,{onClick:i[1]||=e=>l(),class:`text-gray-400 hover:text-white transition-colors`},[...i[7]||=[B(`svg`,{class:`w-5 h-5`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`path`,{d:`M6 6h2v12H6zm3.5 6l8.5 6V6z`})],-1)]]),B(`button`,{onClick:i[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?(R(),z(`svg`,Bp,[...i[8]||=[B(`path`,{d:`M6 19h4V5H6v14zm8-14v14h4V5h-4z`},null,-1)]])):(R(),z(`svg`,Vp,[...i[9]||=[B(`path`,{d:`M8 5v14l11-7z`},null,-1)]]))]),B(`button`,{onClick:i[3]||=e=>c(),class:`text-gray-400 hover:text-white transition-colors`},[...i[10]||=[B(`svg`,{class:`w-5 h-5`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`path`,{d:`M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z`})],-1)]]),B(`button`,{onClick:i[4]||=e=>I(n).cycleRepeat(),class:_e([`text-sm transition-colors`,I(n).repeat===`off`?`text-gray-400 hover:text-white`:`text-noctune-teal`,I(n).repeat===`one`?`relative`:``])},[i[11]||=B(`svg`,{class:`w-4 h-4`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`path`,{d:`M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z`})],-1),I(n).repeat===`one`?(R(),z(`span`,Hp,`1`)):U(``,!0)],2)]),B(`div`,Up,[B(`span`,Wp,A(I(t).formattedProgress),1),B(`input`,{type:`range`,value:I(t).progress,onInput:o,min:`0`,max:I(t).duration||1,step:`0.1`,class:`flex-1 h-1 bg-gray-600 rounded-full appearance-none cursor-pointer range-player`},null,40,Gp),B(`span`,Kp,A(I(t).formattedDuration),1)])]),B(`div`,qp,[B(`button`,{onClick:u,class:`text-gray-400 hover:text-red-400 transition-colors`},[(R(),z(`svg`,{class:_e([`w-5 h-5`,r.value?`text-red-400 fill-current`:``]),fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[...i[12]||=[B(`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))]),B(`div`,Jp,[i[13]||=B(`svg`,{class:`w-4 h-4 text-gray-400`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`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),B(`input`,{type:`range`,value:I(t).volume,onInput:s,min:`0`,max:`100`,class:`w-20 h-1 bg-gray-600 rounded-full appearance-none cursor-pointer range-vol`},null,40,Yp)])])])])):U(``,!0)}},[[`__scopeId`,`data-v-b7738cdf`]]),Zp={class:`min-h-screen bg-noctune-cream`},Qp={key:0,class:`flex flex-col min-h-screen`},$p={class:`flex flex-1`},em={class:`fixed top-4 right-4 z-[100] space-y-2`},tm={class:`flex items-center gap-2`},nm=[`onClick`],rm={__name:`App`,setup(e){let t=kl(),n=If(),r=Lf(),i=ep(),a=G(()=>t.meta?.guest===!0||t.path===`/register`),o=G(()=>!!i.currentTrack);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 R(),z(`div`,Zp,[a.value?(R(),Qi(n,{key:1})):(R(),z(`div`,Qp,[V(xp),B(`div`,$p,[V(Dp),B(`main`,{class:_e([`flex-1 overflow-auto`,{"pb-20":o.value}])},[V(n)],2)]),V(Xp)])),B(`div`,em,[(R(!0),z(L,null,kr(I(r).toasts,e=>(R(),z(`div`,{key:e.id,class:_e([`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)])},[B(`div`,tm,[B(`span`,null,A(e.message),1),B(`button`,{onClick:t=>I(r).dismissToast(e.id),class:`ml-2 opacity-60 hover:opacity-100`},`×`,8,nm)])],2))),128))])])}}},im={class:`min-h-screen bg-noctune-cream flex items-center justify-center p-8`},am={class:`w-full max-w-5xl bg-noctune-teal rounded-3xl border-4 border-black overflow-hidden flex shadow-2xl`},om={class:`w-1/2 p-12 relative`},sm={class:`absolute top-8 right-12 grid grid-cols-4 gap-1`},cm={class:`absolute top-20 right-8 grid grid-cols-4 gap-1`},lm={class:`absolute bottom-12 left-12 grid grid-cols-3 gap-1`},um={class:`w-1/2 bg-white rounded-3xl m-4 p-10`},dm={key:0,class:`text-red-500 text-sm mb-4 font-medium`},fm={class:`mb-6`},pm={class:`flex border-2 border-black rounded-lg overflow-hidden`},mm={class:`mb-4`},hm={class:`flex border-2 border-black rounded-lg overflow-hidden`},gm=[`type`],_m={key:0,class:`w-5 h-5`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},vm={key:1,class:`w-5 h-5`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},ym=[`disabled`],bm={key:0,class:`inline-block w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin`},xm={class:`text-center mt-8 text-gray-600`},Sm={__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 R(),z(`div`,im,[B(`div`,am,[B(`div`,om,[B(`div`,sm,[(R(),z(L,null,kr(16,e=>B(`span`,{key:e,class:`w-2 h-2 bg-black/40 rounded-full`})),64))]),B(`div`,cm,[(R(),z(L,null,kr(12,e=>B(`span`,{key:e,class:`w-2 h-2 bg-black/40 rounded-full`})),64))]),t[3]||=B(`div`,{class:`absolute top-16 left-20 text-black/60 text-4xl font-bold`},`+`,-1),t[4]||=B(`div`,{class:`absolute bottom-24 right-20 text-black/60 text-4xl font-bold`},`+`,-1),B(`div`,lm,[(R(),z(L,null,kr(12,e=>B(`span`,{key:e,class:`w-2 h-2 bg-black/40 rounded-full`})),64))]),t[5]||=oa(`

noctune

`,1)]),B(`div`,um,[t[16]||=B(`h2`,{class:`text-4xl font-black text-black mb-2`},`WELCOME!`,-1),t[17]||=B(`p`,{class:`text-gray-600 mb-8`},`Login to continue`,-1),s.value?(R(),z(`p`,dm,A(s.value),1)):U(``,!0),B(`div`,fm,[t[7]||=B(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`EMAIL/USERNAME`,-1),B(`div`,pm,[t[6]||=B(`div`,{class:`bg-noctune-teal p-3 border-r-2 border-black`},[B(`svg`,{class:`w-6 h-6 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`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(B(`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]])])]),B(`div`,mm,[t[11]||=B(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`PASSWORD`,-1),B(`div`,hm,[t[10]||=B(`div`,{class:`bg-amber-200 p-3 border-r-2 border-black`},[B(`svg`,{class:`w-6 h-6 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`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(B(`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,gm),[[Po,i.value]]),B(`button`,{onClick:t[2]||=e=>a.value=!a.value,class:`px-4 text-gray-500 hover:text-gray-700`},[a.value?(R(),z(`svg`,vm,[...t[9]||=[B(`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),B(`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)]])):(R(),z(`svg`,_m,[...t[8]||=[B(`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]||=B(`div`,{class:`text-right mb-6`},[B(`a`,{href:`#`,class:`text-sm text-gray-600 hover:text-black`},`Forgot password?`)],-1),B(`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?(R(),z(`span`,bm)):(R(),z(L,{key:1},[t[12]||=B(`div`,{class:`bg-white/20 rounded p-1`},[B(`svg`,{class:`w-5 h-5`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`path`,{d:`M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z`})])],-1),t[13]||=H(` LOGIN `,-1)],64))],8,ym),t[19]||=oa(`
OR SIGN IN WITH
`,2),B(`p`,xm,[t[15]||=H(` Don't have an account yet? `,-1),V(n,{to:`/register`,class:`text-noctune-orange font-bold hover:underline`},{default:Rn(()=>[...t[14]||=[H(`Register now`,-1)]]),_:1})])])])])}}},Cm={class:`min-h-screen bg-noctune-cream flex items-center justify-center p-8`},wm={class:`w-full max-w-5xl bg-noctune-teal rounded-3xl border-4 border-black overflow-hidden flex shadow-2xl`},Tm={class:`w-1/2 p-12 relative`},Em={class:`absolute top-8 right-12 grid grid-cols-4 gap-1`},Dm={class:`w-1/2 bg-white rounded-3xl m-4 p-10`},Om={key:0,class:`text-red-500 text-sm mb-4 font-medium`},km={class:`mb-4`},Am={class:`mb-4`},jm={class:`mb-4`},Mm={class:`mb-6`},Nm=[`disabled`],Pm={key:0,class:`inline-block w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin`},Fm={key:1},Im={class:`text-center mt-6 text-gray-600`},Lm={__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 R(),z(`div`,Cm,[B(`div`,wm,[B(`div`,Tm,[B(`div`,Em,[(R(),z(L,null,kr(16,e=>B(`span`,{key:e,class:`w-2 h-2 bg-black/40 rounded-full`})),64))]),t[4]||=oa(`

noctune

`,1)]),B(`div`,Dm,[t[11]||=B(`h2`,{class:`text-4xl font-black text-black mb-2`},`JOIN US!`,-1),t[12]||=B(`p`,{class:`text-gray-600 mb-6`},`Create your account`,-1),c.value?(R(),z(`p`,Om,A(c.value),1)):U(``,!0),B(`div`,km,[t[5]||=B(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`NAME`,-1),zn(B(`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]])]),B(`div`,Am,[t[6]||=B(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`USERNAME`,-1),zn(B(`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]])]),B(`div`,jm,[t[7]||=B(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`EMAIL`,-1),zn(B(`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]])]),B(`div`,Mm,[t[8]||=B(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`PASSWORD`,-1),zn(B(`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]])]),B(`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?(R(),z(`span`,Pm)):(R(),z(`span`,Fm,`REGISTER`))],8,Nm),B(`p`,Im,[t[10]||=H(` Already have an account? `,-1),V(n,{to:`/`,class:`text-noctune-orange font-bold hover:underline`},{default:Rn(()=>[...t[9]||=[H(`Login`,-1)]]),_:1})])])])])}}},Rm={class:`min-h-screen bg-noctune-cream flex flex-col`},zm={class:`p-8`},Bm={key:0,class:`text-center py-12 text-gray-500`},Vm={key:1,class:`grid grid-cols-4 gap-4`},Hm=[`onClick`],Um={class:`aspect-square bg-gray-300 relative overflow-hidden`},Wm=[`src`],Gm={class:`p-3`},Km={class:`text-sm font-bold text-black truncate`},qm={class:`text-xs text-gray-500 truncate`},Jm={__name:`LandingPage`,setup(e){let t=ep(),n=tp(),r=F([]),i=F(!0);function a(e){return e?e.startsWith(`http`)?e:`http://localhost:3001${e}`:``}function o(e){let i=r.value.findIndex(t=>t._id===e._id);n.setQueue(r.value,i),t.setTrack(e),t.play()}function s(){r.value.length&&o(r.value[0])}return hr(async()=>{try{let{data:e}=await Q.get(`/tracks`);e.success&&(r.value=e.data)}catch{}finally{i.value=!1}}),(e,t)=>(R(),z(`div`,Rm,[B(`div`,zm,[B(`div`,{class:`flex items-start gap-8 mb-12`},[B(`div`,{class:`flex-1`},[t[1]||=B(`h1`,{class:`text-5xl font-black text-black leading-tight mb-2`},[H(`MUSIC`),B(`br`),H(`THAT HITS`)],-1),t[2]||=B(`div`,{class:`inline-block bg-noctune-orange px-4 py-2 mb-4 border-b-4 border-black`},[B(`span`,{class:`text-4xl font-black text-black`},`DIFFERENT.`)],-1),t[3]||=B(`p`,{class:`text-gray-600 mb-6`},`You Vibe. Your sound. Only on Noctune.`,-1),B(`div`,{class:`flex gap-4`},[B(`button`,{onClick:s,class:`bg-noctune-yellow border-2 border-black px-6 py-3 font-bold hover:bg-yellow-400 transition-colors rounded-lg`},`PLAY NOW`),t[0]||=B(`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)])]),t[4]||=B(`div`,{class:`w-80 h-80 rounded-2xl overflow-hidden border-4 border-black flex-shrink-0`},[B(`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)]),B(`section`,null,[t[6]||=B(`h2`,{class:`text-2xl font-black text-black mb-6 flex items-center`},[H(` TRENDING NOW `),B(`svg`,{class:`w-5 h-5 ml-2`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`path`,{d:`M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z`})])],-1),i.value?(R(),z(`div`,Bm,`Loading tracks...`)):(R(),z(`div`,Vm,[(R(!0),z(L,null,kr(r.value,e=>(R(),z(`div`,{key:e._id,onClick:t=>o(e),class:`bg-white rounded-2xl border-2 border-black overflow-hidden hover:scale-[1.02] transition-transform cursor-pointer group`},[B(`div`,Um,[e.coverUrl?(R(),z(`img`,{key:0,src:a(e.coverUrl),class:`w-full h-full object-cover`},null,8,Wm)):U(``,!0),t[5]||=B(`div`,{class:`absolute inset-0 bg-black/0 group-hover:bg-black/20 transition-colors flex items-center justify-center`},[B(`div`,{class:`w-12 h-12 bg-noctune-yellow rounded-full flex items-center justify-center border-2 border-black opacity-0 group-hover:opacity-100 transition-opacity`},[B(`svg`,{class:`w-6 h-6 ml-1 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`path`,{d:`M8 5v14l11-7z`})])])],-1)]),B(`div`,Gm,[B(`p`,Km,A(e.title),1),B(`p`,qm,A(e.artist),1)])],8,Hm))),128))]))])])]))}},Ym={class:`p-8`},Xm={class:`mb-12`},Zm={key:0,class:`text-center py-12 text-gray-500`},Qm={key:1,class:`text-center py-12`},$m={key:2,class:`grid grid-cols-4 gap-6`},eh=[`onClick`],th={class:`aspect-square bg-gray-300 relative overflow-hidden`},nh=[`src`],rh={class:`p-3`},ih={class:`text-sm font-bold text-black truncate`},ah={class:`text-xs text-gray-500 truncate`},oh={key:0,class:`text-center py-8 text-gray-500`},sh={key:1,class:`bg-white rounded-2xl border-4 border-black overflow-hidden`},ch={class:`divide-y divide-gray-200`},lh=[`onClick`],uh={class:`flex-1 flex items-center gap-3`},dh={class:`text-sm text-gray-400 w-6`},fh={class:`w-10 h-10 rounded-lg flex-shrink-0 overflow-hidden bg-gray-300 border border-black`},ph=[`src`],mh={class:`font-medium text-black text-sm truncate`},hh={class:`w-40 text-center text-gray-600 text-sm truncate`},gh={class:`w-32 text-center text-gray-600 text-sm truncate`},_h=[`onClick`],vh={__name:`LibraryPage`,setup(e){let t=ep(),n=tp(),r=F([]),i=F([]),a=F(!0),o=F(!0);function s(e){return e?e.startsWith(`http`)?e:`http://localhost:3001${e}`:``}function c(e){let a=i.value.length?i.value:r.value,o=a.findIndex(t=>t._id===e._id);n.setQueue(a,o>=0?o:0),t.setTrack(e),t.play()}async function l(e){try{e._isLiked?(await Q.delete(`/tracks/${e._id}/like`),e._isLiked=!1,r.value=r.value.filter(t=>t._id!==e._id)):(await Q.post(`/tracks/${e._id}/like`),e._isLiked=!0)}catch{}}return hr(async()=>{try{let{data:e}=await Q.get(`/tracks/liked`);e.success&&(r.value=e.data.likedTracks||[],r.value.forEach(e=>e._isLiked=!0))}catch{}finally{a.value=!1}try{let{data:e}=await Q.get(`/tracks`);if(e.success){i.value=e.data;let t=new Set(r.value.map(e=>e._id));i.value.forEach(e=>e._isLiked=t.has(e._id))}}catch{}finally{o.value=!1}}),(e,t)=>{let n=Tr(`router-link`);return R(),z(`div`,Ym,[B(`section`,Xm,[t[3]||=B(`h2`,{class:`text-3xl font-black text-black mb-6`},`Liked Tracks`,-1),a.value?(R(),z(`div`,Zm,`Loading...`)):r.value.length===0?(R(),z(`div`,Qm,[t[1]||=B(`p`,{class:`text-gray-500 mb-4`},`No liked tracks yet`,-1),V(n,{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(()=>[...t[0]||=[H(`Discover Music`,-1)]]),_:1})])):(R(),z(`div`,$m,[(R(!0),z(L,null,kr(r.value,e=>(R(),z(`div`,{key:e._id,onClick:t=>c(e),class:`group cursor-pointer bg-white rounded-2xl border-2 border-black overflow-hidden hover:scale-[1.02] transition-transform`},[B(`div`,th,[e.coverUrl?(R(),z(`img`,{key:0,src:s(e.coverUrl),class:`w-full h-full object-cover`},null,8,nh)):U(``,!0),t[2]||=B(`div`,{class:`absolute bottom-2 right-2 w-10 h-10 bg-noctune-yellow rounded-full flex items-center justify-center border-2 border-black opacity-0 group-hover:opacity-100 transition-opacity`},[B(`svg`,{class:`w-5 h-5 ml-0.5`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`path`,{d:`M8 5v14l11-7z`})])],-1)]),B(`div`,rh,[B(`p`,ih,A(e.title),1),B(`p`,ah,A(e.artist),1)])],8,eh))),128))]))]),B(`section`,null,[t[6]||=B(`h2`,{class:`text-2xl font-black text-black mb-6 flex items-center`},[H(` All Tracks `),B(`svg`,{class:`w-5 h-5 ml-2`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`path`,{d:`M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z`})])],-1),o.value?(R(),z(`div`,oh,`Loading...`)):(R(),z(`div`,sh,[t[5]||=oa(`
TITLEARTISTALBUM
`,1),B(`div`,ch,[(R(!0),z(L,null,kr(i.value,(e,n)=>(R(),z(`div`,{key:e._id,onClick:t=>c(e),class:`px-6 py-3 flex items-center hover:bg-gray-50 transition-colors cursor-pointer`},[B(`div`,uh,[B(`span`,dh,A(n+1),1),B(`div`,fh,[e.coverUrl?(R(),z(`img`,{key:0,src:s(e.coverUrl),class:`w-full h-full object-cover`},null,8,ph)):U(``,!0)]),B(`span`,mh,A(e.title),1)]),B(`span`,hh,A(e.artist),1),B(`span`,gh,A(e.album),1),B(`button`,{onClick:zo(t=>l(e),[`stop`]),class:`w-12 flex justify-center text-gray-400 hover:text-red-400 transition-colors`},[(R(),z(`svg`,{class:_e([`w-5 h-5`,e._isLiked?`fill-red-400 text-red-400`:``]),fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[...t[4]||=[B(`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,_h)],8,lh))),128))])]))])])}}},yh={class:`p-8`},bh={key:0,class:`text-center py-20 text-gray-500`},xh={class:`flex items-start gap-8 mb-8`},Sh={class:`w-56 h-56 rounded-2xl overflow-hidden border-4 border-black flex-shrink-0 bg-black`},Ch=[`src`],wh={key:1,class:`w-full h-full flex items-center justify-center`},Th={class:`flex-1`},Eh={class:`text-4xl font-black text-black mb-4 leading-tight`},Dh={key:0,class:`text-gray-600 mb-4`},Oh={class:`flex items-center gap-3 text-gray-600 mb-6`},kh={class:`font-medium`},Ah={class:`flex gap-4`},jh=[`disabled`],Mh={class:`bg-white rounded-2xl border-4 border-black overflow-hidden`},Nh={class:`divide-y divide-gray-200`},Ph=[`onClick`],Fh={class:`w-12 text-center 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:`font-medium text-black text-sm truncate`},Bh={class:`w-48 text-center text-gray-600 text-sm truncate`},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:`PlaylistPage`,setup(e){let t=kl(),n=ep(),r=tp(),i=F(null),a=F(!0);function o(e){return e?e.startsWith(`http`)?e:`http://localhost:3001${e}`:``}function s(e){if(!i.value?.tracks?.length)return;let t=i.value.tracks;r.setQueue(t,e),n.setTrack(t[e]),n.play()}function c(){i.value?.tracks?.length&&s(0)}async function l(e){try{e._isLiked?(await Q.delete(`/tracks/${e._id}/like`),e._isLiked=!1):(await Q.post(`/tracks/${e._id}/like`),e._isLiked=!0)}catch{}}return hr(async()=>{let e=t.params.id;try{if(e){let{data:t}=await Q.get(`/playlists/${e}`);t.success&&(i.value=t.data,i.value.tracks?.forEach(e=>e._isLiked=!1))}else{let{data:e}=await Q.get(`/playlists`);if(e.success&&e.data.length){let{data:t}=await Q.get(`/playlists/${e.data[0]._id}`);t.success&&(i.value=t.data,i.value.tracks?.forEach(e=>e._isLiked=!1))}else i.value={name:`My Playlist`,tracks:[]}}}catch{i.value=null}finally{a.value=!1}}),(e,t)=>(R(),z(`div`,yh,[a.value?(R(),z(`div`,bh,`Loading playlist...`)):i.value?(R(),z(L,{key:1},[B(`div`,xh,[B(`div`,Sh,[i.value.coverUrl?(R(),z(`img`,{key:0,src:o(i.value.coverUrl),class:`w-full h-full object-cover`},null,8,Ch)):(R(),z(`div`,wh,[...t[0]||=[oa(``,1)]]))]),B(`div`,Th,[t[2]||=B(`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),B(`h1`,Eh,A(i.value.name),1),i.value.description?(R(),z(`p`,Dh,A(i.value.description),1)):U(``,!0),B(`div`,Oh,[B(`span`,kh,A(i.value.tracks?.length||0)+` songs`,1)]),B(`div`,Ah,[B(`button`,{onClick:c,disabled:!i.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`},[...t[1]||=[B(`svg`,{class:`w-4 h-4`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`path`,{d:`M8 5v14l11-7z`})],-1),H(` PLAY `,-1)]],8,jh)])])]),B(`div`,Mh,[t[4]||=oa(`
#TITLEARTIST
`,1),B(`div`,Nh,[(R(!0),z(L,null,kr(i.value.tracks,(e,n)=>(R(),z(`div`,{key:e._id,onClick:e=>s(n),class:`px-6 py-3 flex items-center hover:bg-gray-50 transition-colors cursor-pointer`},[B(`span`,Fh,A(n+1),1),B(`div`,Ih,[B(`div`,Lh,[e.coverUrl?(R(),z(`img`,{key:0,src:o(e.coverUrl),class:`w-full h-full object-cover`},null,8,Rh)):U(``,!0)]),B(`span`,zh,A(e.title),1)]),B(`span`,Bh,A(e.artist),1),B(`button`,{onClick:zo(t=>l(e),[`stop`]),class:`w-12 flex justify-center text-gray-400 hover:text-red-400 transition-colors`},[(R(),z(`svg`,{class:_e([`w-5 h-5`,e._isLiked?`fill-red-400 text-red-400`:``]),fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[...t[3]||=[B(`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,Vh)],8,Ph))),128)),i.value.tracks?.length?U(``,!0):(R(),z(`div`,Hh,`No tracks in this playlist yet`))])])],64)):(R(),z(`div`,Uh,`Playlist not found`))]))}},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(e){return e?e.startsWith(`http`)?e:`http://localhost:3001${e}`:``}function m(){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 h(e){s.value=e.target.files[0]||null}async function g(){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 _(){await n.logout(),t.push(`/`)}return hr(async()=>{try{let{data:e}=await Q.get(`/tracks/liked`);e.success&&(d.value=e.data.likedTracks?.length||0)}catch{}}),(e,t)=>(R(),z(`div`,Gh,[B(`div`,Kh,[B(`div`,qh,[I(n).user?.avatarUrl?(R(),z(`img`,{key:0,src:p(I(n).user.avatarUrl),alt:`Profile`,class:`w-full h-full object-cover`},null,8,Jh)):(R(),z(`div`,Yh,[...t[3]||=[B(`svg`,{class:`w-16 h-16 text-gray-400`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`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)]]))]),B(`div`,Xh,[B(`h1`,Zh,A(f.value),1),B(`p`,Qh,`@`+A(I(n).user?.username||`username`),1),B(`div`,$h,[t[4]||=B(`svg`,{class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[B(`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),B(`span`,eg,A(I(n).user?.role===`admin`?`Admin`:`Premium Member`),1)]),B(`div`,tg,[B(`button`,{onClick:m,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]||=B(`svg`,{class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[B(`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),H(` `+A(r.value?`Cancel`:`Edit Profile`),1)])])])]),r.value?(R(),z(`div`,ng,[t[11]||=B(`h3`,{class:`text-xl font-black text-black mb-4`},`Edit Profile`,-1),l.value?(R(),z(`p`,rg,A(l.value),1)):U(``,!0),u.value?(R(),z(`p`,ig,A(u.value),1)):U(``,!0),B(`div`,ag,[B(`div`,null,[t[6]||=B(`label`,{class:`block text-xs font-bold text-gray-600 mb-1`},`NAME`,-1),zn(B(`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]])]),B(`div`,null,[t[7]||=B(`label`,{class:`block text-xs font-bold text-gray-600 mb-1`},`USERNAME`,-1),zn(B(`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]])]),B(`div`,null,[t[8]||=B(`label`,{class:`block text-xs font-bold text-gray-600 mb-1`},`EMAIL`,-1),zn(B(`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]])]),B(`div`,null,[t[9]||=B(`label`,{class:`block text-xs font-bold text-gray-600 mb-1`},`AVATAR`,-1),B(`input`,{type:`file`,accept:`image/*`,onChange:h,class:`w-full text-sm`},null,32)]),B(`button`,{onClick:g,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?(R(),z(`span`,sg)):U(``,!0),t[10]||=H(` Save Changes `,-1)],8,og)])])):U(``,!0),B(`div`,cg,[B(`div`,lg,[t[13]||=B(`div`,{class:`w-14 h-14 bg-noctune-orange rounded-xl flex items-center justify-center border-2 border-black`},[B(`svg`,{class:`w-7 h-7 text-white`,fill:`currentColor`,viewBox:`0 0 24 24`},[B(`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),B(`div`,null,[B(`p`,ug,A(d.value),1),t[12]||=B(`p`,{class:`text-sm text-gray-500`},`Liked Songs`,-1)])])]),B(`button`,{onClick:_,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]||=[B(`svg`,{class:`w-6 h-6`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[B(`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),H(` Logout `,-1)]])]))}},fg={class:`min-h-screen bg-noctune-cream flex flex-col`},pg={class:`flex flex-1`},mg={class:`flex-1 p-8 overflow-auto`},hg={class:`max-w-2xl mx-auto`},gg={key:0,class:`text-red-500 text-sm mb-4 font-medium`},_g={key:1,class:`text-green-600 text-sm mb-4 font-medium`},vg={class:`bg-white rounded-2xl border-4 border-black p-8 space-y-6`},yg=[`src`],bg={key:1,class:`text-gray-500`},xg={key:0,class:`text-black font-medium`},Sg={key:1,class:`text-gray-500`},Cg=[`disabled`],wg={key:0,class:`inline-block w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin mr-2`},Tg=[{path:`/`,name:`Login`,component:Sm,meta:{guest:!0}},{path:`/register`,name:`Register`,component:Lm,meta:{guest:!0}},{path:`/home`,name:`Home`,component:Jm,meta:{auth:!0}},{path:`/library`,name:`Library`,component:vh,meta:{auth:!0}},{path:`/playlist`,name:`Playlist`,component:Wh,meta:{auth:!0}},{path:`/playlist/:id`,name:`PlaylistDetail`,component:Wh,meta:{auth:!0}},{path:`/profile`,name:`Profile`,component:dg,meta:{auth:!0}},{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)=>(R(),z(`div`,fg,[V(xp),B(`div`,pg,[V(Dp),B(`main`,mg,[B(`div`,hg,[t[12]||=B(`h1`,{class:`text-4xl font-black text-black mb-2`},`Upload Track`,-1),t[13]||=B(`p`,{class:`text-gray-600 mb-8`},`Add a new track to the library`,-1),u.value?(R(),z(`p`,gg,A(u.value),1)):U(``,!0),d.value?(R(),z(`p`,_g,A(d.value),1)):U(``,!0),B(`div`,vg,[B(`div`,null,[t[6]||=B(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`TITLE`,-1),zn(B(`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]])]),B(`div`,null,[t[7]||=B(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`ARTIST`,-1),zn(B(`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]])]),B(`div`,null,[t[8]||=B(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`ALBUM`,-1),zn(B(`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]])]),B(`div`,null,[t[9]||=B(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`GENRE`,-1),zn(B(`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]])]),B(`div`,null,[t[10]||=B(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`COVER IMAGE`,-1),B(`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?(R(),z(`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,yg)):(R(),z(`p`,bg,`Click to upload cover image`)),B(`input`,{ref_key:`coverInput`,ref:f,type:`file`,accept:`image/*`,onChange:m,class:`hidden`},null,544)])]),B(`div`,null,[t[11]||=B(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`AUDIO FILE`,-1),B(`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?(R(),z(`p`,xg,A(c.value.name),1)):(R(),z(`p`,Sg,`Click to upload audio file (MP3, WAV, FLAC)`)),B(`input`,{ref_key:`audioInput`,ref:p,type:`file`,accept:`.mp3,.wav,.flac`,onChange:h,class:`hidden`},null,544)])]),B(`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?(R(),z(`span`,wg)):U(``,!0),H(` `+A(l.value?`Uploading...`:`UPLOAD TRACK`),1)],8,Cg)])])])])]))}},meta:{auth:!0,admin:!0}}],Eg=Dl({history:qc(),routes:Tg});Eg.beforeEach((e,t,n)=>{let r=If();if(e.meta.admin&&!r.isAdmin)return n(`/home`);if(e.meta.auth&&!r.isLoggedIn)return n(`/`);if(e.meta.guest&&r.isLoggedIn)return n(`/home`);n()});var Dg=Go(rm);Dg.use(fs()),Dg.use(Eg),Dg.mount(`#app`); \ No newline at end of file diff --git a/dist/assets/index-iVZX2_zV.js b/dist/assets/index-iVZX2_zV.js new file mode 100644 index 0000000..3816971 --- /dev/null +++ b/dist/assets/index-iVZX2_zV.js @@ -0,0 +1,9 @@ +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)),k=D(e=>e?`on${ae(e)}`:``),oe=(e,t)=>!Object.is(e,t),se=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},le=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ue,de=()=>ue||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function fe(e){if(m(e)){let t={};for(let n=0;n{if(e){let n=e.split(me);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function A(e){let t=``;if(y(e))t=e;else if(m(e))for(let n=0;nxe(e,t))}var Ce=e=>!!(e&&e.__v_isRef===!0),j=e=>y(e)?e:e==null?``:m(e)||x(e)&&(e.toString===C||!v(e.toString))?Ce(e)?j(e.value):JSON.stringify(e,we,2):String(e),we=(e,t)=>Ce(t)?we(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Te(t,r)+` =>`]=n,e),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Te(e))}:b(t)?Te(t):x(t)&&!m(t)&&!te(t)?String(t):t,Te=(e,t=``)=>b(e)?`Symbol(${e.description??t})`:e,M,Ee=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&&M&&(M.active?(this.parent=M,this.index=(M.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;e0&&--this._on===0){if(M===this)M=this.prevScope;else{let e=M;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;t0)return;if(Pe){let e=Pe;for(Pe=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ne;){let t=Ne;for(Ne=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 Re(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ze(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),He(r),Ue(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Be(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ve(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ve(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ye)||(e.globalVersion=Ye,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Be(e))))return;e.flags|=2;let t=e.dep,n=N,r=We;N=e,We=!0;try{Re(e);let n=e.fn(e._value);(t.version===0||oe(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{N=n,We=r,ze(e),e.flags&=-3}}function He(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)He(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ue(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var We=!0,Ge=[];function Ke(){Ge.push(We),We=!1}function qe(){let e=Ge.pop();We=e===void 0?!0:e}function Je(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=N;N=void 0;try{t()}finally{N=e}}}var Ye=0,Xe=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}},Ze=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(!N||!We||N===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==N)t=this.activeLink=new Xe(N,this),N.deps?(t.prevDep=N.depsTail,N.depsTail.nextDep=t,N.depsTail=t):N.deps=N.depsTail=t,Qe(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=N.depsTail,t.nextDep=void 0,N.depsTail.nextDep=t,N.depsTail=t,N.deps===t&&(N.deps=e)}return t}trigger(e){this.version++,Ye++,this.notify(e)}notify(e){Ie();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Le()}}};function Qe(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)Qe(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var $e=new WeakMap,et=Symbol(``),tt=Symbol(``),nt=Symbol(``);function rt(e,t,n){if(We&&N){let t=$e.get(e);t||$e.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Ze),r.map=t,r.key=n),r.track()}}function it(e,t,n,r,i,a){let o=$e.get(e);if(!o){Ye++;return}let s=e=>{e&&e.trigger()};if(Ie(),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===nt||!b(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(nt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(et)),h(e)&&s(o.get(tt)));break;case`delete`:i||(s(o.get(et)),h(e)&&s(o.get(tt)));break;case`set`:h(e)&&s(o.get(et));break}}Le()}function at(e,t){let n=$e.get(e);return n&&n.get(t)}function ot(e){let t=P(e);return t===e?t:(rt(t,`iterate`,nt),Kt(e)?t:t.map(Yt))}function st(e){return rt(e=P(e),`iterate`,nt),e}function ct(e,t){return Gt(e)?Xt(Wt(e)?Yt(t):t):Yt(t)}var lt={__proto__:null,[Symbol.iterator](){return ut(this,Symbol.iterator,e=>ct(this,e))},concat(...e){return ot(this).concat(...e.map(e=>m(e)?ot(e):e))},entries(){return ut(this,`entries`,e=>(e[1]=ct(this,e[1]),e))},every(e,t){return ft(this,`every`,e,t,void 0,arguments)},filter(e,t){return ft(this,`filter`,e,t,e=>e.map(e=>ct(this,e)),arguments)},find(e,t){return ft(this,`find`,e,t,e=>ct(this,e),arguments)},findIndex(e,t){return ft(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return ft(this,`findLast`,e,t,e=>ct(this,e),arguments)},findLastIndex(e,t){return ft(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return ft(this,`forEach`,e,t,void 0,arguments)},includes(...e){return mt(this,`includes`,e)},indexOf(...e){return mt(this,`indexOf`,e)},join(e){return ot(this).join(e)},lastIndexOf(...e){return mt(this,`lastIndexOf`,e)},map(e,t){return ft(this,`map`,e,t,void 0,arguments)},pop(){return ht(this,`pop`)},push(...e){return ht(this,`push`,e)},reduce(e,...t){return pt(this,`reduce`,e,t)},reduceRight(e,...t){return pt(this,`reduceRight`,e,t)},shift(){return ht(this,`shift`)},some(e,t){return ft(this,`some`,e,t,void 0,arguments)},splice(...e){return ht(this,`splice`,e)},toReversed(){return ot(this).toReversed()},toSorted(e){return ot(this).toSorted(e)},toSpliced(...e){return ot(this).toSpliced(...e)},unshift(...e){return ht(this,`unshift`,e)},values(){return ut(this,`values`,e=>ct(this,e))}};function ut(e,t,n){let r=st(e),i=r[t]();return r!==e&&!Kt(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var dt=Array.prototype;function ft(e,t,n,r,i,a){let o=st(e),s=o!==e&&!Kt(e),c=o[t];if(c!==dt[t]){let t=c.apply(e,a);return s?Yt(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,ct(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 pt(e,t,n,r){let i=st(e),a=i!==e&&!Kt(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=ct(e,t)),n.call(this,t,ct(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?ct(e,c):c}function mt(e,t,n){let r=P(e);rt(r,`iterate`,nt);let i=r[t](...n);return(i===-1||i===!1)&&qt(n[0])?(n[0]=P(n[0]),r[t](...n)):i}function ht(e,t,n=[]){Ke(),Ie();let r=P(e)[t].apply(e,n);return Le(),qe(),r}var gt=r(`__proto__,__v_isRef,__isVue`),_t=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(b));function vt(e){b(e)||(e=String(e));let t=P(this);return rt(t,`has`,e),t.hasOwnProperty(e)}var yt=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?Lt:It:i?Ft:Pt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=m(e);if(!r){let e;if(a&&(e=lt[t]))return e;if(t===`hasOwnProperty`)return vt}let o=Reflect.get(e,t,F(e)?e:n);if((b(t)?_t.has(t):gt(t))||(r||rt(e,`get`,t),i))return o;if(F(o)){let e=a&&T(t)?o:o.value;return r&&x(e)?Ht(e):e}return x(o)?r?Ht(o):Bt(o):o}},bt=class extends yt{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=Gt(i);if(!Kt(n)&&!Gt(n)&&(i=P(i),n=P(n)),!a&&F(i)&&!F(n))return e||(i.value=n),!0}let o=a?Number(t)e,Et=e=>Reflect.getPrototypeOf(e);function Dt(e,t,n){return function(...r){let i=this.__v_raw,a=P(i),o=h(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),d=n?Tt:t?Xt:Yt;return!t&&rt(a,`iterate`,c?tt:et),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 Ot(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function kt(e,t){let n={get(n){let r=this.__v_raw,i=P(r),a=P(n);e||(oe(n,a)&&rt(i,`get`,n),rt(i,`get`,a));let{has:o}=Et(i),s=t?Tt:e?Xt:Yt;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&&rt(P(t),`iterate`,et),t.size},has(t){let n=this.__v_raw,r=P(n),i=P(t);return e||(oe(t,i)&&rt(r,`has`,t),rt(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=P(a),s=t?Tt:e?Xt:Yt;return!e&&rt(o,`iterate`,et),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return u(n,e?{add:Ot(`add`),set:Ot(`set`),delete:Ot(`delete`),clear:Ot(`clear`)}:{add(e){let n=P(this),r=Et(n),i=P(e),a=!t&&!Kt(e)&&!Gt(e)?i:e;return r.has.call(n,a)||oe(e,a)&&r.has.call(n,e)||oe(i,a)&&r.has.call(n,i)||(n.add(a),it(n,`add`,a,a)),this},set(e,n){!t&&!Kt(n)&&!Gt(n)&&(n=P(n));let r=P(this),{has:i,get:a}=Et(r),o=i.call(r,e);o||=(e=P(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?oe(n,s)&&it(r,`set`,e,n,s):it(r,`add`,e,n),this},delete(e){let t=P(this),{has:n,get:r}=Et(t),i=n.call(t,e);i||=(e=P(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&it(t,`delete`,e,void 0,a),o},clear(){let e=P(this),t=e.size!==0,n=e.clear();return t&&it(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Dt(r,e,t)}),n}function At(e,t){let n=kt(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 jt={get:At(!1,!1)},Mt={get:At(!1,!0)},Nt={get:At(!0,!1)},Pt=new WeakMap,Ft=new WeakMap,It=new WeakMap,Lt=new WeakMap;function Rt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function zt(e){return e.__v_skip||!Object.isExtensible(e)?0:Rt(ee(e))}function Bt(e){return Gt(e)?e:Ut(e,!1,St,jt,Pt)}function Vt(e){return Ut(e,!1,wt,Mt,Ft)}function Ht(e){return Ut(e,!0,Ct,Nt,It)}function Ut(e,t,n,r,i){if(!x(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=zt(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 Wt(e){return Gt(e)?Wt(e.__v_raw):!!(e&&e.__v_isReactive)}function Gt(e){return!!(e&&e.__v_isReadonly)}function Kt(e){return!!(e&&e.__v_isShallow)}function qt(e){return e?!!e.__v_raw:!1}function P(e){let t=e&&e.__v_raw;return t?P(t):e}function Jt(e){return!p(e,`__v_skip`)&&Object.isExtensible(e)&&ce(e,`__v_skip`,!0),e}var Yt=e=>x(e)?Bt(e):e,Xt=e=>x(e)?Ht(e):e;function F(e){return e?e.__v_isRef===!0:!1}function I(e){return Qt(e,!1)}function Zt(e){return Qt(e,!0)}function Qt(e,t){return F(e)?e:new $t(e,t)}var $t=class{constructor(e,t){this.dep=new Ze,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:P(e),this._value=t?e:Yt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Kt(e)||Gt(e);e=n?e:P(e),oe(e,t)&&(this._rawValue=e,this._value=n?e:Yt(e),this.dep.trigger())}};function L(e){return F(e)?e.value:e}var en={get:(e,t,n)=>t===`__v_raw`?e:L(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return F(i)&&!F(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function tn(e){return Wt(e)?e:new Proxy(e,en)}function nn(e){let t=m(e)?Array(e.length):{};for(let n in e)t[n]=an(e,n);return t}var rn=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=P(e);let r=!0,i=e;if(!m(e)||b(this._key)||!T(this._key))do r=!qt(i)||Kt(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=L(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&F(this._raw[this._key])){let t=this._object[this._key];if(F(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return at(this._raw,this._key)}};function an(e,t,n){return new rn(e,t,n)}var on=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ze(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ye-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&N!==this)return Fe(this,!0),!0}get value(){let e=this.dep.track();return Ve(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function sn(e,t,n=!1){let r,i;return v(e)?r=e:(r=e.get,i=e.set),new on(r,i,n)}var cn={},ln=new WeakMap,un=void 0;function dn(e,t=!1,n=un){if(n){let t=ln.get(n);t||ln.set(n,t=[]),t.push(e)}}function fn(e,t,n=i){let{immediate:r,deep:a,once:s,scheduler:c,augmentJob:l,call:u}=n,f=e=>a?e:Kt(e)||a===!1||a===0?pn(e,1):pn(e),p,h,g,_,y=!1,b=!1;if(F(e)?(h=()=>e.value,y=Kt(e)):Wt(e)?(h=()=>f(e),y=!0):m(e)?(b=!0,y=e.some(e=>Wt(e)||Kt(e)),h=()=>e.map(e=>{if(F(e))return e.value;if(Wt(e))return f(e);if(v(e))return u?u(e,2):e()})):h=v(e)?t?u?()=>u(e,2):e:()=>{if(g){Ke();try{g()}finally{qe()}}let t=un;un=p;try{return u?u(e,3,[_]):e(_)}finally{un=t}}:o,t&&a){let e=h,t=a===!0?1/0:a;h=()=>pn(e(),t)}let x=Oe(),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(cn):cn,w=e=>{if(!(!(p.flags&1)||!p.dirty&&!e))if(t){let e=p.run();if(a||y||(b?e.some((e,t)=>oe(e,C[t])):oe(e,C))){g&&g();let n=un;un=p;try{let n=[e,C===cn?void 0:b&&C[0]===cn?[]:C,_];C=e,u?u(t,3,n):t(...n)}finally{un=n}}}else p.run()};return l&&l(w),p=new je(h),p.scheduler=c?()=>c(w,!1):w,_=e=>dn(e,!1,p),g=p.onStop=()=>{let e=ln.get(p);if(e){if(u)u(e,4);else for(let t of e)t();ln.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 pn(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--,F(e))pn(e.value,t,n);else if(m(e))for(let r=0;r{pn(e,t,n)});else if(te(e)){for(let r in e)pn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&pn(e[r],t,n)}return e}function mn(e,t,n,r){try{return r?e(...r):e()}catch(e){gn(e,t,n)}}function hn(e,t,n,r){if(v(e)){let i=mn(e,t,n,r);return i&&S(i)&&i.catch(e=>{gn(e,t,n)}),i}if(m(e)){let i=[];for(let a=0;a>>1,i=vn[r],a=Mn(i);a=Mn(n)?vn.push(e):vn.splice(En(t),0,e),e.flags|=1,On()}}function On(){wn||=Cn.then(Nn)}function kn(e){m(e)?bn.push(...e):xn&&e.id===-1?xn.splice(Sn+1,0,e):e.flags&1||(bn.push(e),e.flags|=1),On()}function An(e,t,n=yn+1){for(;nMn(e)-Mn(t));if(bn.length=0,xn){xn.push(...e);return}for(xn=e,Sn=0;Sne.id==null?e.flags&2?-1:1/0:e.id;function Nn(e){try{for(yn=0;yn{r._d&&Yi(-1);let i=In(t),a;try{a=e(...n)}finally{In(i),r._d&&Yi(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Rn(e,t){if(Pn===null)return e;let n=Aa(Pn),r=e.dirs||=[];for(let e=0;e1)return n&&v(t)?t.call(r&&r.proxy):t}}function Hn(){return!!(ha()||Qr)}var Un=Symbol.for(`v-scx`),Wn=()=>Vn(Un);function Gn(e,t,n){return Kn(e,t,n)}function Kn(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=Wn();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)=>hn(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():Dn(e)}),l.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=fn(e,t,l);return xa&&(f?f.push(h):d&&h()),h}function qn(e,t,n){let r=this.proxy,i=y(e)?e.includes(`.`)?Jn(r,e):()=>r[e]:e.bind(r,r),a;v(t)?a=t:(a=t.handler,n=t);let o=va(this),s=Kn(i,a.bind(r),n);return o(),s}function Jn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;ee.__isTeleport,Zn=Symbol(`_leaveCb`);function Qn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Qn(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 $n(e,t){return v(e)?u({name:e.name},t,{setup:e}):e}function er(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}function tr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var nr=new WeakMap;function rr(e,t,n,r,a=!1){if(m(e)){e.forEach((e,i)=>rr(e,t&&(m(t)?t[i]:t),n,r,a));return}if(ar(r)&&!a){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&rr(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,_=P(g),b=g===i?s:e=>tr(h,e)?!1:p(_,e),x=(e,t)=>!(t&&tr(h,t));if(f!=null&&f!==u){if(ir(t),y(f))h[f]=null,b(f)&&(g[f]=null);else if(F(f)){let e=t;x(f,e.k)&&(f.value=null),e.k&&(h[e.k]=null)}}if(v(u))mn(u,l,12,[c,h]);else{let t=y(u),r=F(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(),nr.delete(e)};t.id=-1,nr.set(e,t),ki(t,n)}else ir(e),i()}}}function ir(e){let t=nr.get(e);t&&(t.flags|=8,nr.delete(e))}de().requestIdleCallback,de().cancelIdleCallback;var ar=e=>!!e.type.__asyncLoader,or=e=>e.type.__isKeepAlive;function sr(e,t){lr(e,`a`,t)}function cr(e,t){lr(e,`da`,t)}function lr(e,t,n=ma){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(dr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)or(e.parent.vnode)&&ur(r,t,n,e),e=e.parent}}function ur(e,t,n,r){let i=dr(t,e,r,!0);vr(()=>{d(r[t],i)},n)}function dr(e,t,n=ma,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Ke();let i=va(n),a=hn(t,n,e,r);return i(),qe(),a};return r?i.unshift(a):i.push(a),a}}var fr=e=>(t,n=ma)=>{(!xa||e===`sp`)&&dr(e,(...e)=>t(...e),n)},pr=fr(`bm`),mr=fr(`m`),hr=fr(`bu`),gr=fr(`u`),_r=fr(`bum`),vr=fr(`um`),yr=fr(`sp`),br=fr(`rtg`),xr=fr(`rtc`);function Sr(e,t=ma){dr(`ec`,e,t)}var Cr=`components`;function wr(e,t){return Er(Cr,e,!0,t)||e}var Tr=Symbol.for(`v-ndc`);function Er(e,t,n=!0,r=!1){let i=Pn||ma;if(i){let n=i.type;if(e===Cr){let e=ja(n,!1);if(e&&(e===t||e===O(t)||e===ae(O(t))))return n}let a=Dr(i[e]||n[e],t)||Dr(i.appContext[e],t);return!a&&r?n:a}}function Dr(e,t){return e&&(e[t]||e[O(t)]||e[ae(O(t))])}function Or(e,t,n,r){let i,a=n&&n[r],o=m(e);if(o||y(e)){let n=o&&Wt(e),r=!1,s=!1;n&&(r=!Kt(e),s=Gt(e),e=st(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;re?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||=()=>{Dn(e.update)},$nextTick:e=>e.n||=Tn.bind(e.proxy),$watch:e=>qn.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`&&rt(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=Bt(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=>{Bn(t,e[t])})}d&&Lr(d,e,`c`);function k(e,t){m(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(k(pr,f),k(mr,p),k(hr,h),k(gr,g),k(sr,_),k(cr,y),k(Sr,E),k(xr,te),k(br,T),k(_r,S),k(vr,w),k(yr,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&&er(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?Vn(r.from||n,r.default,!0):Vn(r.from||n):Vn(r),F(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){hn(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(`.`)?Jn(n,r):()=>n[r];if(y(e)){let n=t[e];v(n)&&Gn(i,n)}else if(v(e))Gn(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)&&Gn(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;nt===`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(le)));let c,l=r[c=k(t)]||r[c=k(O(t))];!l&&o&&(l=r[c=k(ie(t))]),l&&hn(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,hn(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,_=In(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,gn(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&&Qn(b,n.transition),v=b,In(_),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;tObject.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:Vt(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=P(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{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;ee===`_`||e===`_ctx`||e===`$stable`,Si=e=>m(e)?e.map(oa):[oa(e)],Ci=(e,t,n)=>{if(t._n)return t;let r=Ln((...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&&ce(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=de();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=ve(e),me(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,xe)}u!=null&&i?rr(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&rr(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),_&&zn(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)}_&&zn(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),_&&zn(e,null,i,`mounted`)}finally{}},a)},te=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t{for(let l=c;l{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&&zn(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||le(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{g&&ua(g,n,t,e),f&&zn(t,e,n,`updated`)},r)},ne=(e,t,n,r,i,a,o)=>{for(let s=0;s{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)):le(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):k(e,t,c)},ae=(e,t,n,r,i,a,o)=>{let s=e.component=pa(e,r,i);if(or(e)&&(s.ctx.renderer=xe),Sa(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,oe,o),!e.el){let r=s.subTree=H(Ui);b(null,r,t,n),e.placeholder=r.el}}else oe(s,e,t,n,i,a,o)},k=(e,t,n)=>{let r=t.component=e.component;if(si(e,t,n))if(r.asyncDep&&!r.asyncResolved){ce(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},oe=(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,ce(e,t,o)),n.asyncDep.then(()=>{ki(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Ni(e,!1),t?(t.el=c.el,ce(e,t,o)):t=c,n&&se(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),ve(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=ar(t);if(Ni(e,!1),l&&se(l),!m&&(o=c&&c.onVnodeBeforeMount)&&ua(o,d,t),Ni(e,!0),s&&Ce){let t=()=>{e.subTree=ii(e),Ce(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&&ar(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 je(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=()=>Dn(u),Ni(e,!0),l()},ce=(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),Ke(),An(e),qe()},le=(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){fe(l,d,n,r,i,a,o,s,c);return}else if(f&256){ue(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&_e(l,i,a),d!==l&&p(n,d)):u&16?m&16?fe(l,d,n,r,i,a,o,s,c):_e(l,i,a,!0):(u&8&&p(n,``),m&16&&T(d,n,r,i,a,o,s,c))},ue=(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;pd?_e(e,i,o,!0,!1,f):T(t,n,r,i,o,s,c,l,f)},fe=(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=ep)for(;u<=f;)me(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){me(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?me(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{let{el:o,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){pe(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,xe);return}if(c===R){r(o,t,n);for(let e=0;el.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[Zn](!0),i(o,()=>{u(),c&&c()})};a?a(o,u,d):d()}else r(o,t,n)},me=(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&&(Ke(),rr(s,null,n,e,!0),qe()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!ar(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&ua(_,t,e),u&6)A(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&zn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,xe,r):l&&!l.hasOnce&&(a!==R||d>0&&d&64)?_e(l,t,n,!1,!0):(a===R&&d&384||!i&&u&16)&&_e(c,t,n),r&&he(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&ki(()=>{_&&ua(_,t,e),h&&zn(e,null,t,`unmounted`),v&&(e.el=null)},n)},he=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===R){ge(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()},ge=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},A=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Ri(c),Ri(l),r&&se(r),i.stop(),a&&(a.flags|=8,me(o,e,t,n)),s&&ki(s,t),ki(()=>{e.isUnmounted=!0},t)},_e=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return ve(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Yn];return n?h(n):t},ye=!1,be=(e,t,n)=>{let r;e==null?t._vnode&&(me(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ye||=(ye=!0,An(r),jn(),!1)},xe={p:v,um:me,m:pe,r:he,mt:ae,mc:T,pc:le,pbc:ne,n:ve,o:e},Se,Ce;return t&&([Se,Ce]=t(xe)),{render:be,hydrate:Se,createApp:Zr(be,Se)}}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>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}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;te.__isSuspense;function Vi(e,t){t&&t.pendingBranch?m(e)?t.effects.push(...e):t.effects.push(e):kn(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)||F(e)||v(e)?{i:Pn,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:Fn,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:Pn};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===Tr)&&(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=A(e)),x(n)&&(qt(n)&&!m(n)&&(n=u({},n)),t.style=fe(n))}let o=y(e)?1:Bi(e)?128:Xn(e)?64:x(e)?4:v(e)?2:0;return V(e,t,n,r,i,o,a,!0)}function ra(e){return e?qt(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&&Qn(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=Pn:r===3&&Pn&&(Pn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else v(t)?(t={default:t,_ctx:Pn},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;nma||Pn,ga,_a;{let e=de(),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){Ke();let n=e.setupContext=r.length>1?ka(e):null,i=va(e),a=mn(r,e,0,[e.props,n]),o=S(a);if(qe(),i(),(o||e.sp)&&!ar(e)&&er(e),o){if(a.then(ya,ya),t)return a.then(n=>{wa(e,n,t)}).catch(t=>{gn(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=tn(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);Ke();try{Fr(e)}finally{qe(),t()}}}var Oa={get(e,t){return rt(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(tn(Jt(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)=>sn(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`?`${e}`:r===`mathml`?`${e}`: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;nfo||=(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;hn(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=>se(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=le(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)?le(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=Se(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=Se(t,r.props.value)>-1;else if(g(t))i=t.has(r.props.value);else{if(t===n)return;i=xe(t,No(e,!0))}e.checked!==i&&(e.checked=i)}var ko={created(e,{value:t},n){e.checked=xe(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=xe(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?le(Mo(e)):Mo(e));e[wo](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,Tn(()=>{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;iString(e)===String(o)):a.selected=Se(t,o)>-1}else a.selected=t.has(o);else if(xe(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{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=De(!0),t=e.run(()=>I({})),n=[],r=[],i=Jt({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&&Oe()&&ke(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)&&!F(r)&&!Wt(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!!(F(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(nn(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=Jt(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();Tn().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=Bt({_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(()=>Gn(()=>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=De()).run(()=>t({action:v}))));for(let t in b){let n=b[t];F(n)&&!Cs(n)||Wt(n)?a||(p&&xs(n)&&(F(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(P(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=Hn();return n||=o?Vn(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;o1&&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;ee&&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;osc(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(;st.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(;n0&&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{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=Vn(Fc),n=Vn(Ic),r=G(()=>{let n=L(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[L(e.replace)?`replace`:`push`](L(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=$n({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=Bt(_l(e)),{options:r}=Vn(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=$n({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=Vn(Lc),i=G(()=>e.route||r.value),a=Vn(Pc,0),o=G(()=>{let e=L(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=G(()=>i.value.matched[o.value]);Bn(Pc,G(()=>o.value+1)),Bn(Nc,s),Bn(Lc,i);let c=I();return Gn(()=>[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=Zt(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}),se(i,i,!0,!1)),(f?Promise.resolve(f):te(d,i)).catch(e=>kc(e)?kc(e,q.NAVIGATION_GUARD_REDIRECT)?e:oe(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=ue.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),fe(n).then(()=>{n=[];for(let r of a.list())n.push(zc(r,e,t));return n.push(c),fe(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),fe(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),fe(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Bc(s,`beforeRouteEnter`,e,t,ee),n.push(c),fe(n))).then(()=>{n=[];for(let r of o.list())n.push(zc(r,e,t));return n.push(c),fe(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,se(e,t,n,s),oe()}let D;function ne(){D||=i.listen((e,t,n)=>{if(!de.listening)return;let r=_(e),a=S(r,de.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){oe(e);let r=re.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function k(){return ie&&c.value!==fc?Promise.resolve():new Promise((e,t)=>{O.add([e,t])})}function oe(e){return ie||(ie=!e,ne(),O.list().forEach(([t,n])=>e?n(e):t()),O.reset()),e}function se(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 Tn().then(()=>a(t,n,o)).then(e=>e&&bc(e)).catch(e=>ae(e,t,n))}let ce=e=>i.go(e),le,ue=new Set,de={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:re.add,isReady:k,install(e){e.component(`RouterLink`,yl),e.component(`RouterView`,El),e.config.globalProperties.$router=de,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>L(c)}),Ds&&!le&&c.value===fc&&(le=!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,de),e.provide(Ic,Vt(t)),e.provide(Lc,c);let n=e.unmount;ue.add(e),e.unmount=function(){ue.delete(e),ue.size<1&&(l=fc,D&&D(),D=null,c.value=fc,le=!1,ie=!1),n()}}};function fe(e){return e.reduce((e,t)=>e.then(()=>ee(t)),Promise.resolve())}return de}function Ol(){return Vn(Fc)}function kl(e){return Vn(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;r0;)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(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(;tt;){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=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{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;ne 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{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=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=55296&&n<=56319&&e+1=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`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{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:3002/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=I(null),t=I(!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)}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=Es(`ui`,()=>{let e=I([]),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}}),Rf=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=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.length0?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=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;o0?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),(nt&&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=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=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=0&&n._howls.splice(i,1);var o=!0;for(r=0;r=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=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=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=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;i0?(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;oBf.onPlay?.(),onpause:()=>Bf.onPause?.(),onend:()=>Bf.onEnd?.(),onloaderror:()=>Bf.onError?.(),onplayerror:()=>Bf.onError?.()})}function Uf(){zf?.play()}function Wf(){zf?.pause()}function Gf(){zf?.playing()?zf.pause():zf.play()}function Kf(e){zf&&zf.seek(e)}function qf(){return zf?zf.seek():0}function Jf(e){return e!==void 0&&Howler.volume(e/100),Howler.volume()*100}function Yf(){return zf?zf.duration():0}function Xf(){return zf?zf.playing():!1}function Zf(e,t){Bf[e]=t}function Qf(e){delete Bf[e]}function $f(){zf&&=(zf.unload(),null),Bf={}}var $={load:Hf,play:Uf,pause:Wf,togglePlay:Gf,seek:Kf,getSeek:qf,volume:Jf,duration:Yf,playing:Xf,on:Zf,off:Qf,destroy:$f,formatTime:Vf},ep=Es(`player`,()=>{let e=I(null),t=I(!1),n=I(0),r=I(0),i=I(80),a=I(null),o=I(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=i.audioUrl.startsWith(`http`)?i.audioUrl:`http://localhost:3001${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:_}}),tp=Es(`queue`,()=>{let e=I([]),t=I(-1),n=I(!1),r=I(`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}}),np={class:`bg-noctune-teal px-4 py-3 flex items-center justify-between border-b-4 border-black`},rp={class:`flex items-center gap-4`},ip={class:`flex-1 max-w-md mx-8 relative`},ap={class:`relative`},op={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`},sp={key:0,class:`p-2`},cp=[`onClick`],lp={class:`w-8 h-8 bg-gray-300 rounded border border-black flex-shrink-0 overflow-hidden`},up=[`src`],dp={class:`min-w-0 flex-1`},fp={class:`text-sm font-medium text-black truncate`},pp={class:`text-xs text-gray-500`},mp={key:1,class:`p-2 border-t border-gray-200`},hp=[`onClick`],gp={key:2,class:`p-4 text-center text-gray-500 text-sm`},_p={class:`flex items-center gap-4`},vp={class:`w-8 h-8 rounded-full bg-noctune-dark overflow-hidden border-2 border-black`},yp=[`src`],bp={key:1,class:`w-full h-full flex items-center justify-center`},xp={__name:`AppHeader`,setup(e){let t=Ol(),n=If(),r=ep(),i=tp(),a=I(``),o=I(null),s=null;function c(e){return e?e.startsWith(`http`)?e:`http://localhost:3001${e}`:``}function l(){if(clearTimeout(s),!a.value.trim()){o.value=null;return}s=setTimeout(async()=>{try{let{data:e}=await Q.get(`/search?q=${encodeURIComponent(a.value)}`);e.success&&(o.value=e.data)}catch{o.value=null}},300)}function u(){a.value=``,o.value=null}function d(e){u(),i.setQueue([e],0),r.setTrack(e),r.play()}function f(){t.push(`/library`)}return(e,r)=>{let i=wr(`router-link`);return z(),B(`header`,np,[V(`div`,rp,[H(i,{to:`/home`,class:`text-black font-bold text-2xl tracking-wider font-mono`},{default:Ln(()=>[...r[1]||=[U(`NOCTUNE`,-1)]]),_:1})]),V(`div`,ip,[V(`div`,ap,[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),Rn(V(`input`,{type:`text`,"onUpdate:modelValue":r[0]||=e=>a.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,a.value]])]),o.value&&a.value?(z(),B(`div`,op,[o.value.tracks?.length?(z(),B(`div`,sp,[r[3]||=V(`p`,{class:`text-xs font-bold text-gray-500 px-2 py-1`},`TRACKS`,-1),(z(!0),B(R,null,Or(o.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`,lp,[e.coverUrl?(z(),B(`img`,{key:0,src:c(e.coverUrl),class:`w-full h-full object-cover`},null,8,up)):W(``,!0)]),V(`div`,dp,[V(`p`,fp,j(e.title),1),V(`p`,pp,j(e.artist),1)])],8,cp))),128))])):W(``,!0),o.value.artists?.length?(z(),B(`div`,mp,[r[4]||=V(`p`,{class:`text-xs font-bold text-gray-500 px-2 py-1`},`ARTISTS`,-1),(z(!0),B(R,null,Or(o.value.artists.slice(0,3),e=>(z(),B(`div`,{key:e.name,onClick:n=>L(t).push(`/home?artist=${e.name}`),class:`px-2 py-2 hover:bg-gray-100 rounded cursor-pointer text-sm font-medium text-black`},j(e.name),9,hp))),128))])):W(``,!0),!o.value.tracks?.length&&!o.value.artists?.length?(z(),B(`div`,gp,`No results found`)):W(``,!0)])):W(``,!0)]),V(`div`,_p,[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)]]),H(i,{to:`/profile`,class:`text-black hover:opacity-80`},{default:Ln(()=>[V(`div`,vp,[L(n).user?.avatarUrl?(z(),B(`img`,{key:0,src:c(L(n).user.avatarUrl),class:`w-full h-full object-cover`},null,8,yp)):(z(),B(`div`,bp,[...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)]]))])]),_:1})])])}}},Sp={class:`bg-noctune-cream flex flex-col h-full`},Cp={class:`p-4 space-y-2`},wp={class:`relative group`},Tp={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`},Ep={key:0,class:`p-2`},Dp=[`onClick`],Op={class:`truncate`},kp={key:1,class:`p-4 text-center text-sm text-gray-500`},Ap={class:`border-t-2 border-gray-200 p-2`},jp={__name:`Sidebar`,setup(e){let t=kl(),n=Ol(),r=If(),i=I([]),a=e=>t.path===e,o=e=>t.path.startsWith(e);async function s(){if(r.isLoggedIn)try{let{data:e}=await Q.get(`/playlists`);e.success&&(i.value=e.data)}catch{}}async function c(){let e=prompt(`Playlist name:`);if(e?.trim())try{let{data:t}=await Q.post(`/playlists`,{name:e.trim()});t.success&&i.value.push(t.data)}catch{}}return mr(s),(e,t)=>{let s=wr(`router-link`);return z(),B(`aside`,Sp,[V(`nav`,Cp,[H(s,{to:`/home`,class:A([`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":a(`/home`)}])},{default:Ln(()=>[...t[0]||=[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(s,{to:`/library`,class:A([`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":a(`/library`)}])},{default:Ln(()=>[...t[1]||=[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`,wp,[H(s,{to:`/playlist`,class:A([`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":a(`/playlist`)||o(`/playlist/`)}])},{default:Ln(()=>[...t[2]||=[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`,Tp,[i.value.length?(z(),B(`div`,Ep,[(z(!0),B(R,null,Or(i.value,e=>(z(),B(`div`,{key:e._id,onClick:t=>L(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[3]||=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`,Op,j(e.name),1)],8,Dp))),128))])):(z(),B(`div`,kp,`No playlists yet`)),V(`div`,Ap,[H(s,{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:Ln(()=>[...t[4]||=[U(` Browse All Playlists `,-1)]]),_:1})])])]),L(r).isAdmin?(z(),Zi(s,{key:0,to:`/admin/tracks`,class:A([`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":a(`/admin/tracks`)}])},{default:Ln(()=>[...t[5]||=[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[7]||=V(`div`,{class:`mx-4 border-t-2 border-gray-300 my-2`},null,-1),V(`div`,{class:`px-4`},[V(`button`,{onClick:c,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[6]||=[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[8]||=V(`div`,{class:`flex-1`},null,-1)])}}},Mp=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},Np={key:0,class:`fixed bottom-0 left-0 right-0 bg-noctune-dark border-t-4 border-black z-50`},Pp={class:`flex items-center px-4 py-2 max-w-screen-2xl mx-auto`},Fp={class:`flex items-center gap-3 w-80`},Ip={class:`w-12 h-12 bg-black rounded-lg overflow-hidden flex-shrink-0 border border-white/20`},Lp=[`src`],Rp={key:1,class:`w-full h-full flex items-center justify-center`},zp={class:`min-w-0`},Bp={class:`text-sm font-bold text-white truncate`},Vp={class:`text-xs text-gray-400 truncate`},Hp={class:`flex-1 flex flex-col items-center`},Up={class:`flex items-center gap-4 mb-1`},Wp={key:0,class:`w-5 h-5 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},Gp={key:1,class:`w-5 h-5 text-black ml-0.5`,fill:`currentColor`,viewBox:`0 0 24 24`},Kp={key:0,class:`absolute -top-2 -right-2 text-[9px] font-bold`},qp={class:`flex items-center gap-3 w-full max-w-lg`},Jp={class:`text-xs text-gray-400 w-10 text-right`},Yp=[`value`,`max`],Xp={class:`text-xs text-gray-400 w-10`},Zp={class:`w-80 flex items-center justify-end gap-3`},Qp={class:`flex items-center gap-2`},$p=[`value`],em=Mp({__name:`PlayerBar`,setup(e){let t=ep(),n=tp(),r=If(),i=I(!1);function a(){let e=n.nextTrack();e&&(t.setTrack(e),t.play())}mr(()=>{t.onEnd(a)});let o=G(()=>{let e=t.currentTrack?.coverUrl;return e?e.startsWith(`http`)?e:`http://localhost:3001${e}`:``});function s(e){t.seek(parseFloat(e.target.value))}function c(e){t.setVolume(parseInt(e.target.value))}function l(){let e=n.nextTrack();e&&(t.setTrack(e),t.play())}function u(){let e=n.prevTrack();e&&(t.setTrack(e),t.play())}async function d(){if(!t.currentTrack)return;let e=t.currentTrack._id||t.currentTrack.id;await r.toggleLike(e)}return Gn(()=>t.currentTrack?._id,e=>{i.value=e?r.likedTrackIds.has(e):!1},{immediate:!0}),Gn(()=>r.user?.likedTracks?.length,()=>{let e=t.currentTrack?._id;e&&(i.value=r.likedTrackIds.has(e))}),(e,r)=>L(t).currentTrack?(z(),B(`div`,Np,[V(`div`,Pp,[V(`div`,Fp,[V(`div`,Ip,[L(t).currentTrack.coverUrl?(z(),B(`img`,{key:0,src:o.value,alt:``,class:`w-full h-full object-cover`},null,8,Lp)):(z(),B(`div`,Rp,[...r[5]||=[aa(``,1)]]))]),V(`div`,zp,[V(`p`,Bp,j(L(t).currentTrack.title),1),V(`p`,Vp,j(L(t).currentTrack.artist),1)])]),V(`div`,Hp,[V(`div`,Up,[V(`button`,{onClick:r[0]||=e=>L(n).toggleShuffle(),class:A([`text-sm transition-colors`,L(n).shuffle?`text-noctune-teal`:`text-gray-400 hover:text-white`])},[...r[6]||=[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=>u(),class:`text-gray-400 hover:text-white transition-colors`},[...r[7]||=[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=>L(t).togglePlay(),class:`w-10 h-10 bg-white rounded-full flex items-center justify-center hover:scale-105 transition-transform`},[L(t).isPlaying?(z(),B(`svg`,Wp,[...r[8]||=[V(`path`,{d:`M6 19h4V5H6v14zm8-14v14h4V5h-4z`},null,-1)]])):(z(),B(`svg`,Gp,[...r[9]||=[V(`path`,{d:`M8 5v14l11-7z`},null,-1)]]))]),V(`button`,{onClick:r[3]||=e=>l(),class:`text-gray-400 hover:text-white transition-colors`},[...r[10]||=[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=>L(n).cycleRepeat(),class:A([`text-sm transition-colors`,L(n).repeat===`off`?`text-gray-400 hover:text-white`:`text-noctune-teal`,L(n).repeat===`one`?`relative`:``])},[r[11]||=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),L(n).repeat===`one`?(z(),B(`span`,Kp,`1`)):W(``,!0)],2)]),V(`div`,qp,[V(`span`,Jp,j(L(t).formattedProgress),1),V(`input`,{type:`range`,value:L(t).progress,onInput:s,min:`0`,max:L(t).duration||1,step:`0.1`,class:`flex-1 h-1 bg-gray-600 rounded-full appearance-none cursor-pointer range-player`},null,40,Yp),V(`span`,Xp,j(L(t).formattedDuration),1)])]),V(`div`,Zp,[V(`button`,{onClick:d,class:`transition-colors`},[(z(),B(`svg`,{class:A([`w-5 h-5`,i.value?`fill-red-400 text-red-400`:`text-gray-400 hover:text-red-400`]),fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[...r[12]||=[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`,Qp,[r[13]||=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:L(t).volume,onInput:c,min:`0`,max:`100`,class:`w-20 h-1 bg-gray-600 rounded-full appearance-none cursor-pointer range-vol`},null,40,$p)])])])])):W(``,!0)}},[[`__scopeId`,`data-v-e17af23f`]]),tm={class:`min-h-screen bg-noctune-cream`},nm={key:0},rm={class:`flex`},im={class:`fixed top-4 right-4 z-[100] space-y-2`},am={class:`flex items-center gap-2`},om=[`onClick`],sm={__name:`App`,setup(e){let t=kl(),n=If(),r=Lf(),i=ep(),a=G(()=>t.meta?.guest===!0||t.path===`/register`),o=G(()=>!!i.currentTrack);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 mr(async()=>{await n.checkSession()}),(e,t)=>{let n=wr(`router-view`);return z(),B(`div`,tm,[a.value?(z(),Zi(n,{key:1})):(z(),B(`div`,nm,[H(xp,{class:`sticky top-0 z-30`}),V(`div`,rm,[H(jp,{class:`fixed left-0 top-[57px] bottom-0 w-64 border-r-4 border-black overflow-y-auto z-20`}),V(`main`,{class:A([`ml-64 flex-1 min-h-[calc(100vh-57px)]`,{"pb-20":o.value}])},[H(n)],2)]),H(em)])),V(`div`,im,[(z(!0),B(R,null,Or(L(r).toasts,e=>(z(),B(`div`,{key:e.id,class:A([`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`,am,[V(`span`,null,j(e.message),1),V(`button`,{onClick:t=>L(r).dismissToast(e.id),class:`ml-2 opacity-60 hover:opacity-100`},` × `,8,om)])],2))),128))])])}}},cm={class:`min-h-screen bg-noctune-cream flex items-center justify-center p-8`},lm={class:`w-full max-w-5xl bg-noctune-teal rounded-3xl border-4 border-black overflow-hidden flex shadow-2xl`},um={class:`w-1/2 p-12 relative`},dm={class:`absolute top-8 right-12 grid grid-cols-4 gap-1`},fm={class:`absolute top-20 right-8 grid grid-cols-4 gap-1`},pm={class:`absolute bottom-12 left-12 grid grid-cols-3 gap-1`},mm={class:`w-1/2 bg-white rounded-3xl m-4 p-10`},hm={key:0,class:`text-red-500 text-sm mb-4 font-medium`},gm={class:`mb-6`},_m={class:`flex border-2 border-black rounded-lg overflow-hidden`},vm={class:`mb-4`},ym={class:`flex border-2 border-black rounded-lg overflow-hidden`},bm=[`type`],xm={key:0,class:`w-5 h-5`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Sm={key:1,class:`w-5 h-5`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Cm=[`disabled`],wm={key:0,class:`inline-block w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin`},Tm={class:`text-center mt-8 text-gray-600`},Em={__name:`LoginPage`,setup(e){let t=Ol(),n=If(),r=I(``),i=I(``),a=I(!1),o=I(!1),s=I(``);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=wr(`router-link`);return z(),B(`div`,cm,[V(`div`,lm,[V(`div`,um,[V(`div`,dm,[(z(),B(R,null,Or(16,e=>V(`span`,{key:e,class:`w-2 h-2 bg-black/40 rounded-full`})),64))]),V(`div`,fm,[(z(),B(R,null,Or(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`,pm,[(z(),B(R,null,Or(12,e=>V(`span`,{key:e,class:`w-2 h-2 bg-black/40 rounded-full`})),64))]),t[5]||=aa(`

noctune

`,1)]),V(`div`,mm,[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`,hm,j(s.value),1)):W(``,!0),V(`div`,gm,[t[7]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`EMAIL/USERNAME`,-1),V(`div`,_m,[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),Rn(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`,vm,[t[11]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`PASSWORD`,-1),V(`div`,ym,[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),Rn(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,bm),[[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`,Sm,[...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`,xm,[...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`,wm)):(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,Cm),t[19]||=aa(`
OR SIGN IN WITH
`,2),V(`p`,Tm,[t[15]||=U(` Don't have an account yet? `,-1),H(n,{to:`/register`,class:`text-noctune-orange font-bold hover:underline`},{default:Ln(()=>[...t[14]||=[U(`Register now`,-1)]]),_:1})])])])])}}},Dm={class:`min-h-screen bg-noctune-cream flex items-center justify-center p-8`},Om={class:`w-full max-w-5xl bg-noctune-teal rounded-3xl border-4 border-black overflow-hidden flex shadow-2xl`},km={class:`w-1/2 p-12 relative`},Am={class:`absolute top-8 right-12 grid grid-cols-4 gap-1`},jm={class:`w-1/2 bg-white rounded-3xl m-4 p-10`},Mm={key:0,class:`text-red-500 text-sm mb-4 font-medium`},Nm={class:`mb-4`},Pm={class:`mb-4`},Fm={class:`mb-4`},Im={class:`mb-6`},Lm=[`disabled`],Rm={key:0,class:`inline-block w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin`},zm={key:1},Bm={class:`text-center mt-6 text-gray-600`},Vm={__name:`RegisterPage`,setup(e){let t=Ol(),n=If(),r=I(``),i=I(``),a=I(``),o=I(``),s=I(!1),c=I(``);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=wr(`router-link`);return z(),B(`div`,Dm,[V(`div`,Om,[V(`div`,km,[V(`div`,Am,[(z(),B(R,null,Or(16,e=>V(`span`,{key:e,class:`w-2 h-2 bg-black/40 rounded-full`})),64))]),t[4]||=aa(`

noctune

`,1)]),V(`div`,jm,[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`,Mm,j(c.value),1)):W(``,!0),V(`div`,Nm,[t[5]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`NAME`,-1),Rn(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`,Pm,[t[6]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`USERNAME`,-1),Rn(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`,Fm,[t[7]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`EMAIL`,-1),Rn(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`,Im,[t[8]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`PASSWORD`,-1),Rn(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`,Rm)):(z(),B(`span`,zm,`REGISTER`))],8,Lm),V(`p`,Bm,[t[10]||=U(` Already have an account? `,-1),H(n,{to:`/`,class:`text-noctune-orange font-bold hover:underline`},{default:Ln(()=>[...t[9]||=[U(`Login`,-1)]]),_:1})])])])])}}},Hm={class:`p-8`},Um={key:0,class:`text-center py-12 text-gray-500`},Wm={key:1,class:`grid grid-cols-4 gap-4`},Gm=[`onClick`],Km={class:`aspect-square bg-gray-300 relative overflow-hidden`},qm=[`src`],Jm={class:`absolute inset-0 bg-black/0 group-hover:bg-black/20 transition-colors flex items-center justify-center`},Ym={key:0,class:`w-6 h-6 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},Xm={key:1,class:`w-6 h-6 ml-1 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},Zm={class:`p-3`},Qm={class:`flex items-center justify-between`},$m={class:`flex-1 min-w-0`},eh={class:`text-sm font-bold text-black truncate`},th={class:`text-xs text-gray-500 truncate`},nh=[`onClick`],rh={__name:`LandingPage`,setup(e){let t=ep(),n=tp(),r=If(),i=I([]),a=I(!0);function o(e){return e?e.startsWith(`http`)?e:`http://localhost:3001${e}`:``}function s(e){return t.currentTrack?._id===e._id}function c(e){return r.likedTrackIds?.has(e._id)}function l(e){if(s(e)){t.togglePlay();return}let r=i.value.findIndex(t=>t._id===e._id);n.setQueue(i.value,r),t.setTrack(e),t.play()}function u(){i.value.length&&l(i.value[0])}async function d(e){await r.toggleLike(e._id)}return mr(async()=>{try{let{data:e}=await Q.get(`/tracks`);e.success&&(i.value=e.data)}catch{}finally{a.value=!1}}),(e,n)=>(z(),B(`div`,Hm,[V(`div`,{class:`flex items-start gap-8 mb-12`},[V(`div`,{class:`flex-1`},[n[1]||=V(`h1`,{class:`text-5xl font-black text-black leading-tight mb-2`},[U(`MUSIC`),V(`br`),U(`THAT HITS`)],-1),n[2]||=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[3]||=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:u,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[0]||=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[4]||=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[8]||=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),a.value?(z(),B(`div`,Um,`Loading tracks...`)):(z(),B(`div`,Wm,[(z(!0),B(R,null,Or(i.value,e=>(z(),B(`div`,{key:e._id,onClick:t=>l(e),class:`bg-white rounded-2xl border-2 border-black overflow-hidden hover:scale-[1.02] transition-transform cursor-pointer group`},[V(`div`,Km,[e.coverUrl?(z(),B(`img`,{key:0,src:o(e.coverUrl),class:`w-full h-full object-cover`},null,8,qm)):W(``,!0),V(`div`,Jm,[V(`div`,{class:A([`w-12 h-12 rounded-full flex items-center justify-center border-2 border-black opacity-0 group-hover:opacity-100 transition-opacity`,s(e)?`bg-white`:`bg-noctune-yellow`])},[s(e)&&L(t).isPlaying?(z(),B(`svg`,Ym,[...n[5]||=[V(`path`,{d:`M6 19h4V5H6v14zm8-14v14h4V5h-4z`},null,-1)]])):(z(),B(`svg`,Xm,[...n[6]||=[V(`path`,{d:`M8 5v14l11-7z`},null,-1)]]))],2)])]),V(`div`,Zm,[V(`div`,Qm,[V(`div`,$m,[V(`p`,eh,j(e.title),1),V(`p`,th,j(e.artist),1)]),V(`button`,{onClick:zo(t=>d(e),[`stop`]),class:`ml-2 flex-shrink-0`},[(z(),B(`svg`,{class:A([`w-5 h-5`,c(e)?`fill-red-400 text-red-400`:`text-gray-400 hover:text-red-400`]),fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[...n[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,nh)])])],8,Gm))),128))]))])]))}},ih={class:`p-8`},ah={class:`mb-12`},oh={key:0,class:`text-center py-12 text-gray-500`},sh={key:1,class:`text-center py-12`},ch={key:2,class:`grid grid-cols-4 gap-6`},lh=[`onClick`],uh={class:`aspect-square bg-gray-300 relative overflow-hidden`},dh=[`src`],fh={key:0,class:`w-5 h-5 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},ph={key:1,class:`w-5 h-5 ml-0.5 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},mh={class:`p-3`},hh={class:`text-sm font-bold text-black truncate`},gh={class:`text-xs text-gray-500 truncate`},_h={key:0,class:`text-center py-8 text-gray-500`},vh={key:1,class:`bg-white rounded-2xl border-4 border-black overflow-hidden`},yh={class:`divide-y divide-gray-200`},bh=[`onClick`],xh={class:`flex-1 flex items-center gap-3`},Sh={class:`text-sm text-gray-400 w-6`},Ch={key:0,class:`w-4 h-4 text-noctune-teal inline`,fill:`currentColor`,viewBox:`0 0 24 24`},wh={key:1},Th={class:`w-10 h-10 rounded-lg flex-shrink-0 overflow-hidden bg-gray-300 border border-black`},Eh=[`src`],Dh={class:`w-40 text-center text-gray-600 text-sm truncate`},Oh={class:`w-32 text-center text-gray-600 text-sm truncate`},kh=[`onClick`],Ah={__name:`LibraryPage`,setup(e){let t=ep(),n=tp(),r=If(),i=I([]),a=I([]),o=I(!0),s=I(!0);function c(e){return e?e.startsWith(`http`)?e:`http://localhost:3001${e}`:``}function l(e){return t.currentTrack?._id===e._id}function u(e){return r.likedTrackIds?.has(e._id)}function d(e,r=!1,o){if(l(e)){t.togglePlay();return}let s=r?i.value:a.value,c=o??s.findIndex(t=>t._id===e._id);n.setQueue(s,c),t.setTrack(e),t.play()}async function f(e){let t=u(e);await r.toggleLike(e._id),t&&(i.value=i.value.filter(t=>t._id!==e._id))}return mr(async()=>{try{let{data:e}=await Q.get(`/tracks/liked`);e.success&&(i.value=e.data||[])}catch{}finally{o.value=!1}try{let{data:e}=await Q.get(`/tracks`);e.success&&(a.value=e.data)}catch{}finally{s.value=!1}}),(e,n)=>{let r=wr(`router-link`);return z(),B(`div`,ih,[V(`section`,ah,[n[4]||=V(`h2`,{class:`text-3xl font-black text-black mb-6`},`Liked Tracks`,-1),o.value?(z(),B(`div`,oh,`Loading...`)):i.value.length===0?(z(),B(`div`,sh,[n[1]||=V(`p`,{class:`text-gray-500 mb-4`},`No liked tracks yet`,-1),H(r,{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:Ln(()=>[...n[0]||=[U(`Discover Music`,-1)]]),_:1})])):(z(),B(`div`,ch,[(z(!0),B(R,null,Or(i.value,e=>(z(),B(`div`,{key:e._id,onClick:t=>d(e,!0),class:`group cursor-pointer bg-white rounded-2xl border-2 border-black overflow-hidden hover:scale-[1.02] transition-transform`},[V(`div`,uh,[e.coverUrl?(z(),B(`img`,{key:0,src:c(e.coverUrl),class:`w-full h-full object-cover`},null,8,dh)):W(``,!0),V(`div`,{class:A([`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`,l(e)?`bg-white`:`bg-noctune-yellow`])},[l(e)&&L(t).isPlaying?(z(),B(`svg`,fh,[...n[2]||=[V(`path`,{d:`M6 19h4V5H6v14zm8-14v14h4V5h-4z`},null,-1)]])):(z(),B(`svg`,ph,[...n[3]||=[V(`path`,{d:`M8 5v14l11-7z`},null,-1)]]))],2)]),V(`div`,mh,[V(`p`,hh,j(e.title),1),V(`p`,gh,j(e.artist),1)])],8,lh))),128))]))]),V(`section`,null,[n[8]||=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),s.value?(z(),B(`div`,_h,`Loading...`)):(z(),B(`div`,vh,[n[7]||=aa(`
TITLEARTISTALBUM
`,1),V(`div`,yh,[(z(!0),B(R,null,Or(a.value,(e,r)=>(z(),B(`div`,{key:e._id,onClick:t=>d(e,!1,r),class:`px-6 py-3 flex items-center hover:bg-gray-50 transition-colors cursor-pointer`},[V(`div`,xh,[V(`span`,Sh,[l(e)&&L(t).isPlaying?(z(),B(`svg`,Ch,[...n[5]||=[V(`path`,{d:`M6 19h4V5H6v14zm8-14v14h4V5h-4z`},null,-1)]])):(z(),B(`span`,wh,j(r+1),1))]),V(`div`,Th,[e.coverUrl?(z(),B(`img`,{key:0,src:c(e.coverUrl),class:`w-full h-full object-cover`},null,8,Eh)):W(``,!0)]),V(`span`,{class:A([`font-medium text-sm truncate`,l(e)?`text-noctune-teal`:`text-black`])},j(e.title),3)]),V(`span`,Dh,j(e.artist),1),V(`span`,Oh,j(e.album),1),V(`button`,{onClick:zo(t=>f(e),[`stop`]),class:`w-12 flex justify-center transition-colors`},[(z(),B(`svg`,{class:A([`w-5 h-5`,u(e)?`fill-red-400 text-red-400`:`text-gray-400 hover:text-red-400`]),fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[...n[6]||=[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,kh)],8,bh))),128))])]))])])}}},jh={class:`p-8`},Mh={key:0,class:`text-center py-20 text-gray-500`},Nh={class:`flex items-start gap-8 mb-8`},Ph={class:`w-56 h-56 rounded-2xl overflow-hidden border-4 border-black flex-shrink-0 bg-black`},Fh=[`src`],Ih={key:1,class:`w-full h-full flex items-center justify-center`},Lh={class:`flex-1`},Rh={class:`text-4xl font-black text-black mb-4 leading-tight`},zh={key:0,class:`text-gray-600 mb-4`},Bh={class:`flex items-center gap-3 text-gray-600 mb-6`},Vh={class:`font-medium`},Hh={class:`flex gap-4`},Uh=[`disabled`],Wh={class:`bg-white rounded-2xl border-4 border-black overflow-hidden`},Gh={class:`divide-y divide-gray-200`},Kh=[`onClick`],qh={class:`w-12 text-center`},Jh={key:0,class:`w-4 h-4 text-noctune-teal mx-auto`,fill:`currentColor`,viewBox:`0 0 24 24`},Yh={key:1,class:`text-gray-500`},Xh={class:`flex-1 flex items-center gap-4`},Zh={class:`w-12 h-12 rounded-lg flex-shrink-0 overflow-hidden bg-gray-300 border border-black`},Qh=[`src`],$h={class:`w-48 text-center text-gray-600 text-sm truncate`},eg=[`onClick`],tg={key:0,class:`p-8 text-center text-gray-500`},ng={key:2,class:`text-center py-20 text-gray-500`},rg={__name:`PlaylistPage`,setup(e){let t=kl(),n=ep(),r=tp(),i=If(),a=I(null),o=I(!0);function s(e){return e?e.startsWith(`http`)?e:`http://localhost:3001${e}`:``}function c(e){return n.currentTrack?._id===e._id}function l(e){return i.likedTrackIds?.has(e._id)}function u(e){if(!a.value?.tracks?.length)return;let t=a.value.tracks[e];if(c(t)){n.togglePlay();return}let i=a.value.tracks;r.setQueue(i,e),n.setTrack(t),n.play()}function d(){a.value?.tracks?.length&&u(0)}async function f(e){await i.toggleLike(e._id)}return mr(async()=>{let e=t.params.id;try{if(e){let{data:t}=await Q.get(`/playlists/${e}`);t.success&&(a.value=t.data)}else{let{data:e}=await Q.get(`/playlists`);if(e.success&&e.data.length){let{data:t}=await Q.get(`/playlists/${e.data[0]._id}`);t.success&&(a.value=t.data)}else a.value={name:`My Playlist`,tracks:[]}}}catch{a.value=null}finally{o.value=!1}}),(e,t)=>(z(),B(`div`,jh,[o.value?(z(),B(`div`,Mh,`Loading playlist...`)):a.value?(z(),B(R,{key:1},[V(`div`,Nh,[V(`div`,Ph,[a.value.coverUrl?(z(),B(`img`,{key:0,src:s(a.value.coverUrl),class:`w-full h-full object-cover`},null,8,Fh)):(z(),B(`div`,Ih,[...t[0]||=[aa(``,1)]]))]),V(`div`,Lh,[t[2]||=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`,Rh,j(a.value.name),1),a.value.description?(z(),B(`p`,zh,j(a.value.description),1)):W(``,!0),V(`div`,Bh,[V(`span`,Vh,j(a.value.tracks?.length||0)+` songs`,1)]),V(`div`,Hh,[V(`button`,{onClick:d,disabled:!a.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`},[...t[1]||=[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,Uh)])])]),V(`div`,Wh,[t[5]||=aa(`
#TITLEARTIST
`,1),V(`div`,Gh,[(z(!0),B(R,null,Or(a.value.tracks,(e,r)=>(z(),B(`div`,{key:e._id,onClick:e=>u(r),class:`px-6 py-3 flex items-center hover:bg-gray-50 transition-colors cursor-pointer`},[V(`span`,qh,[c(e)&&L(n).isPlaying?(z(),B(`svg`,Jh,[...t[3]||=[V(`path`,{d:`M6 19h4V5H6v14zm8-14v14h4V5h-4z`},null,-1)]])):(z(),B(`span`,Yh,j(r+1),1))]),V(`div`,Xh,[V(`div`,Zh,[e.coverUrl?(z(),B(`img`,{key:0,src:s(e.coverUrl),class:`w-full h-full object-cover`},null,8,Qh)):W(``,!0)]),V(`span`,{class:A([`font-medium text-sm truncate`,c(e)?`text-noctune-teal`:`text-black`])},j(e.title),3)]),V(`span`,$h,j(e.artist),1),V(`button`,{onClick:zo(t=>f(e),[`stop`]),class:`w-12 flex justify-center transition-colors`},[(z(),B(`svg`,{class:A([`w-5 h-5`,l(e)?`fill-red-400 text-red-400`:`text-gray-400 hover:text-red-400`]),fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[...t[4]||=[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,eg)],8,Kh))),128)),a.value.tracks?.length?W(``,!0):(z(),B(`div`,tg,`No tracks in this playlist yet`))])])],64)):(z(),B(`div`,ng,`Playlist not found`))]))}},ig={class:`p-8`},ag={class:`bg-white rounded-2xl border-4 border-black p-6 mb-6 flex items-center gap-8`},og={class:`w-40 h-40 rounded-full border-4 border-black overflow-hidden flex-shrink-0 bg-gray-300`},sg=[`src`],cg={key:1,class:`w-full h-full flex items-center justify-center`},lg={class:`flex-1`},ug={class:`text-3xl font-black text-black mb-1`},dg={class:`text-gray-600 mb-3`},fg={class:`inline-flex items-center gap-2 border-2 border-noctune-orange text-noctune-orange px-3 py-1 rounded-full mb-4`},pg={class:`text-sm font-medium`},mg={class:`flex gap-4`},hg={key:0,class:`bg-white rounded-2xl border-4 border-black p-6 mb-6`},gg={key:0,class:`text-red-500 text-sm mb-4`},_g={key:1,class:`text-green-600 text-sm mb-4`},vg={class:`space-y-4 max-w-md`},yg=[`disabled`],bg={key:0,class:`inline-block w-4 h-4 border-2 border-black border-t-transparent rounded-full animate-spin mr-1`},xg={class:`bg-white rounded-2xl border-4 border-black p-6 mb-6 flex justify-center gap-12`},Sg={class:`flex items-center gap-4`},Cg={class:`text-2xl font-black text-black`},wg={__name:`ProfilePage`,setup(e){let t=Ol(),n=If(),r=I(!1),i=I(``),a=I(``),o=I(``),s=I(null),c=I(!1),l=I(``),u=I(``),d=I(0),f=G(()=>n.user?.name||n.user?.username||`User`);function p(e){return e?e.startsWith(`http`)?e:`http://localhost:3001${e}`:``}function m(){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 h(e){s.value=e.target.files[0]||null}async function g(){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 _(){await n.logout(),t.push(`/`)}return mr(async()=>{try{let{data:e}=await Q.get(`/tracks/liked`);e.success&&(d.value=e.data.likedTracks?.length||0)}catch{}}),(e,t)=>(z(),B(`div`,ig,[V(`div`,ag,[V(`div`,og,[L(n).user?.avatarUrl?(z(),B(`img`,{key:0,src:p(L(n).user.avatarUrl),alt:`Profile`,class:`w-full h-full object-cover`},null,8,sg)):(z(),B(`div`,cg,[...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`,lg,[V(`h1`,ug,j(f.value),1),V(`p`,dg,`@`+j(L(n).user?.username||`username`),1),V(`div`,fg,[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`,pg,j(L(n).user?.role===`admin`?`Admin`:`Premium Member`),1)]),V(`div`,mg,[V(`button`,{onClick:m,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(` `+j(r.value?`Cancel`:`Edit Profile`),1)])])])]),r.value?(z(),B(`div`,hg,[t[11]||=V(`h3`,{class:`text-xl font-black text-black mb-4`},`Edit Profile`,-1),l.value?(z(),B(`p`,gg,j(l.value),1)):W(``,!0),u.value?(z(),B(`p`,_g,j(u.value),1)):W(``,!0),V(`div`,vg,[V(`div`,null,[t[6]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-1`},`NAME`,-1),Rn(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),Rn(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),Rn(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:h,class:`w-full text-sm`},null,32)]),V(`button`,{onClick:g,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`,bg)):W(``,!0),t[10]||=U(` Save Changes `,-1)],8,yg)])])):W(``,!0),V(`div`,xg,[V(`div`,Sg,[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`,Cg,j(d.value),1),t[12]||=V(`p`,{class:`text-sm text-gray-500`},`Liked Songs`,-1)])])]),V(`button`,{onClick:_,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)]])]))}},Tg={class:`min-h-screen bg-noctune-cream flex flex-col`},Eg={class:`flex flex-1`},Dg={class:`flex-1 p-8 overflow-auto`},Og={class:`max-w-2xl mx-auto`},kg={key:0,class:`text-red-500 text-sm mb-4 font-medium`},Ag={key:1,class:`text-green-600 text-sm mb-4 font-medium`},jg={class:`bg-white rounded-2xl border-4 border-black p-8 space-y-6`},Mg=[`src`],Ng={key:1,class:`text-gray-500`},Pg={key:0,class:`text-black font-medium`},Fg={key:1,class:`text-gray-500`},Ig=[`disabled`],Lg={key:0,class:`inline-block w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin mr-2`},Rg=[{path:`/`,name:`Login`,component:Em,meta:{guest:!0}},{path:`/register`,name:`Register`,component:Vm,meta:{guest:!0}},{path:`/home`,name:`Home`,component:rh,meta:{auth:!0}},{path:`/library`,name:`Library`,component:Ah,meta:{auth:!0}},{path:`/playlist`,name:`Playlist`,component:rg,meta:{auth:!0}},{path:`/playlist/:id`,name:`PlaylistDetail`,component:rg,meta:{auth:!0}},{path:`/profile`,name:`Profile`,component:wg,meta:{auth:!0}},{path:`/admin/tracks`,name:`AdminTracks`,component:{__name:`AdminPage`,setup(e){let t=Ol(),n=I(``),r=I(``),i=I(``),a=I(``),o=I(null),s=I(``),c=I(null),l=I(!1),u=I(``),d=I(``),f=I(null),p=I(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`,Tg,[V(`div`,Eg,[V(`main`,Dg,[V(`div`,Og,[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`,kg,j(u.value),1)):W(``,!0),d.value?(z(),B(`p`,Ag,j(d.value),1)):W(``,!0),V(`div`,jg,[V(`div`,null,[t[6]||=V(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`TITLE`,-1),Rn(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),Rn(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),Rn(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),Rn(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,Mg)):(z(),B(`p`,Ng,`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`,Pg,j(c.value.name),1)):(z(),B(`p`,Fg,` 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`,Lg)):W(``,!0),U(` `+j(l.value?`Uploading...`:`UPLOAD TRACK`),1)],8,Ig)])])])])]))}},meta:{auth:!0,admin:!0}}],zg=Dl({history:qc(),routes:Rg});zg.beforeEach((e,t,n)=>{let r=If();if(e.meta.admin&&!r.isAdmin)return n(`/home`);if(e.meta.auth&&!r.isLoggedIn)return n(`/`);if(e.meta.guest&&r.isLoggedIn)return n(`/home`);n()});var Bg=Go(sm),Vg=fs();Bg.use(Vg),Bg.use(zg),If(Vg).checkSession().finally(()=>{Bg.mount(`#app`)}); \ No newline at end of file diff --git a/dist/assets/index-mUm8ch4i.css b/dist/assets/index-mUm8ch4i.css deleted file mode 100644 index 03088b6..0000000 --- a/dist/assets/index-mUm8ch4i.css +++ /dev/null @@ -1 +0,0 @@ -.range-player[data-v-b7738cdf]::-webkit-slider-thumb{-webkit-appearance:none;cursor:pointer;background:#fff;border-radius:50%;width:12px;height:12px}.range-vol[data-v-b7738cdf]::-webkit-slider-thumb{-webkit-appearance:none;cursor:pointer;background:#fff;border-radius:50%;width:12px;height:12px}.animate-slide-in{animation:.3s ease-out slideIn}@keyframes slideIn{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}*,:before,:after,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}:before,:after{--tw-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter,system-ui,sans-serif;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:Space Mono,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder{opacity:1;color:#9ca3af}textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.-right-2{right:-.5rem}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-12{bottom:3rem}.bottom-2{bottom:.5rem}.bottom-24{bottom:6rem}.left-0{left:0}.left-12{left:3rem}.left-20{left:5rem}.left-3{left:.75rem}.right-0{right:0}.right-12{right:3rem}.right-2{right:.5rem}.right-20{right:5rem}.right-4{right:1rem}.right-8{right:2rem}.top-16{top:4rem}.top-20{top:5rem}.top-4{top:1rem}.top-8{top:2rem}.top-full{top:100%}.z-50{z-index:50}.z-\[100\]{z-index:100}.m-4{margin:1rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-8{margin-left:2rem;margin-right:2rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-1{margin-bottom:.25rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0\.5{margin-left:.125rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-24{height:6rem}.h-32{height:8rem}.h-4{height:1rem}.h-40{height:10rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-80{height:20rem}.h-full{height:100%}.max-h-96{max-height:24rem}.min-h-screen{min-height:100vh}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-80{width:20rem}.w-full{width:100%}.min-w-0{min-width:0}.max-w-2xl{max-width:42rem}.max-w-5xl{max-width:64rem}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-screen-2xl{max-width:1536px}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:1s linear infinite spin}.cursor-pointer{cursor:pointer}.appearance-none{appearance:none}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity,1))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-b-4{border-bottom-width:4px}.border-r-2{border-right-width:2px}.border-r-4{border-right-width:4px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.border-t-4{border-top-width:4px}.border-dashed{border-style:dashed}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity,1))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.border-noctune-orange{--tw-border-opacity:1;border-color:rgb(255 107 53/var(--tw-border-opacity,1))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}.border-white\/20{border-color:#fff3}.border-t-transparent{border-top-color:#0000}.bg-amber-200{--tw-bg-opacity:1;background-color:rgb(253 230 138/var(--tw-bg-opacity,1))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-black\/0{background-color:#0000}.bg-black\/30{background-color:#0000004d}.bg-black\/40{background-color:#0006}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.bg-gray-600{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1))}.bg-green-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity,1))}.bg-noctune-cream{--tw-bg-opacity:1;background-color:rgb(245 240 220/var(--tw-bg-opacity,1))}.bg-noctune-dark{--tw-bg-opacity:1;background-color:rgb(26 26 26/var(--tw-bg-opacity,1))}.bg-noctune-orange{--tw-bg-opacity:1;background-color:rgb(255 107 53/var(--tw-bg-opacity,1))}.bg-noctune-teal{--tw-bg-opacity:1;background-color:rgb(26 155 143/var(--tw-bg-opacity,1))}.bg-noctune-yellow{--tw-bg-opacity:1;background-color:rgb(255 215 0/var(--tw-bg-opacity,1))}.bg-red-400{--tw-bg-opacity:1;background-color:rgb(248 113 113/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white\/20{background-color:#fff3}.fill-current{fill:currentColor}.fill-red-400{fill:#f87171}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-12{padding:3rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-20{padding-bottom:5rem}.pl-10{padding-left:2.5rem}.pr-4{padding-right:1rem}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:Space Mono,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-\[9px\]{font-size:9px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-medium{font-weight:500}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.text-black\/60{color:#0009}.text-black\/70{color:#000000b3}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-noctune-dark{--tw-text-opacity:1;color:rgb(26 26 26/var(--tw-text-opacity,1))}.text-noctune-orange{--tw-text-opacity:1;color:rgb(255 107 53/var(--tw-text-opacity,1))}.text-noctune-teal{--tw-text-opacity:1;color:rgb(26 155 143/var(--tw-text-opacity,1))}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-white\/60{color:#fff9}.opacity-0{opacity:0}.opacity-60{opacity:.6}.shadow-2xl{--tw-shadow:0 25px 50px -12px #00000040;--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.shadow-\[4px_4px_0px_0px_\#000\]{--tw-shadow:4px 4px 0px 0px #000;--tw-shadow-colored:4px 4px 0px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}*{box-sizing:border-box}body{margin:0;padding:0;font-family:Inter,system-ui,sans-serif}input[type=range]{appearance:none;background:#1a1a1a;border-radius:3px;height:6px}input[type=range]::-webkit-slider-thumb{appearance:none;cursor:pointer;background:#1a1a1a;border-radius:50%;width:14px;height:14px}input[type=range]::-moz-range-thumb{cursor:pointer;background:#1a1a1a;border:none;border-radius:50%;width:14px;height:14px}.hover\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-\[1\.02\]:hover{--tw-scale-x:1.02;--tw-scale-y:1.02;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.hover\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.hover\:bg-noctune-orange\/20:hover{background-color:#ff6b3533}.hover\:bg-noctune-teal\/20:hover{background-color:#1a9b8f33}.hover\:bg-orange-600:hover{--tw-bg-opacity:1;background-color:rgb(234 88 12/var(--tw-bg-opacity,1))}.hover\:bg-teal-600:hover{--tw-bg-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity,1))}.hover\:bg-yellow-400:hover{--tw-bg-opacity:1;background-color:rgb(250 204 21/var(--tw-bg-opacity,1))}.hover\:text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.hover\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.hover\:text-red-400:hover{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-70:hover{opacity:.7}.hover\:opacity-80:hover{opacity:.8}.focus\:outline-none:focus{outline-offset:2px;outline:2px solid #0000}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow,0 0 #0000)}.focus\:ring-black:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity,1))}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:bg-black\/20{background-color:#0003}.group:hover .group-hover\:opacity-100{opacity:1} diff --git a/dist/index.html b/dist/index.html index c7255e1..1eb34e7 100644 --- a/dist/index.html +++ b/dist/index.html @@ -6,8 +6,8 @@ Noctune - Music That Hits Different - - + +
diff --git a/src/App.vue b/src/App.vue index 508d8db..f4a74dc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,10 +1,15 @@ diff --git a/src/components/PlayerBar.vue b/src/components/PlayerBar.vue index f8c6337..1e73406 100644 --- a/src/components/PlayerBar.vue +++ b/src/components/PlayerBar.vue @@ -42,8 +42,8 @@
-
@@ -58,10 +58,12 @@ import { ref, computed, watch, onMounted } from 'vue' import { usePlayerStore } from '../stores/playerStore.js' import { useQueueStore } from '../stores/queueStore.js' -import api from '../lib/api.js' +import { useAuthStore } from '../stores/authStore.js' const playerStore = usePlayerStore() const queueStore = useQueueStore() +const authStore = useAuthStore() + const isLiked = ref(false) function onTrackEnd() { @@ -106,32 +108,21 @@ function playPrev() { } } -watch(() => playerStore.currentTrack?.id, async (id) => { - if (!id) return - try { - const { data } = await api.get('/auth/me') - if (data.success) { - isLiked.value = data.data.likedTracks?.includes(id) || false - } - } catch { - isLiked.value = false - } -}) - async function toggleLike() { if (!playerStore.currentTrack) return const id = playerStore.currentTrack._id || playerStore.currentTrack.id - try { - if (isLiked.value) { - await api.delete(`/tracks/${id}/like`) - } else { - await api.post(`/tracks/${id}/like`) - } - isLiked.value = !isLiked.value - } catch { - // ignore - } + await authStore.toggleLike(id) } + +// Sync isLiked ref reactively from authStore +watch(() => playerStore.currentTrack?._id, (id) => { + isLiked.value = id ? authStore.likedTrackIds.has(id) : false +}, { immediate: true }) + +watch(() => authStore.user?.likedTracks?.length, () => { + const id = playerStore.currentTrack?._id + if (id) isLiked.value = authStore.likedTrackIds.has(id) +})