mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 23:23:55 +08:00
48 lines
145 KiB
JavaScript
48 lines
145 KiB
JavaScript
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/**
|
||
* @vue/shared v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**//*! #__NO_SIDE_EFFECTS__ */function lr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ee={},$t=[],et=()=>{},kl=()=>!1,ss=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),cr=e=>e.startsWith("onUpdate:"),ve=Object.assign,ar=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Fl=Object.prototype.hasOwnProperty,G=(e,t)=>Fl.call(e,t),j=Array.isArray,qt=e=>Tn(e)==="[object Map]",rs=e=>Tn(e)==="[object Set]",Mr=e=>Tn(e)==="[object Date]",q=e=>typeof e=="function",fe=e=>typeof e=="string",tt=e=>typeof e=="symbol",re=e=>e!==null&&typeof e=="object",Vo=e=>(re(e)||q(e))&&q(e.then)&&q(e.catch),Ko=Object.prototype.toString,Tn=e=>Ko.call(e),jl=e=>Tn(e).slice(8,-1),zo=e=>Tn(e)==="[object Object]",ur=e=>fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,fn=lr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),os=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Hl=/-(\w)/g,ke=os(e=>e.replace(Hl,(t,n)=>n?n.toUpperCase():"")),$l=/\B([A-Z])/g,Lt=os(e=>e.replace($l,"-$1").toLowerCase()),is=os(e=>e.charAt(0).toUpperCase()+e.slice(1)),Rs=os(e=>e?`on${is(e)}`:""),bt=(e,t)=>!Object.is(e,t),kn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Wo=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Kn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Lr;const ls=()=>Lr||(Lr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function fr(e){if(j(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=fe(s)?zl(s):fr(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(fe(e)||re(e))return e}const ql=/;(?![^(]*\))/g,Vl=/:([^]+)/,Kl=/\/\*[^]*?\*\//g;function zl(e){const t={};return e.replace(Kl,"").split(ql).forEach(n=>{if(n){const s=n.split(Vl);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Qt(e){let t="";if(fe(e))t=e;else if(j(e))for(let n=0;n<e.length;n++){const s=Qt(e[n]);s&&(t+=s+" ")}else if(re(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Wl="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ql=lr(Wl);function Qo(e){return!!e||e===""}function Jl(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=cs(e[s],t[s]);return n}function cs(e,t){if(e===t)return!0;let n=Mr(e),s=Mr(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=tt(e),s=tt(t),n||s)return e===t;if(n=j(e),s=j(t),n||s)return n&&s?Jl(e,t):!1;if(n=re(e),s=re(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const i in e){const l=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(l&&!c||!l&&c||!cs(e[i],t[i]))return!1}}return String(e)===String(t)}function Gl(e,t){return e.findIndex(n=>cs(n,t))}const Jo=e=>!!(e&&e.__v_isRef===!0),pe=e=>fe(e)?e:e==null?"":j(e)||re(e)&&(e.toString===Ko||!q(e.toString))?Jo(e)?pe(e.value):JSON.stringify(e,Go,2):String(e),Go=(e,t)=>Jo(t)?Go(e,t.value):qt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[As(s,o)+" =>"]=r,n),{})}:rs(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>As(n))}:tt(t)?As(t):re(t)&&!j(t)&&!zo(t)?String(t):t,As=(e,t="")=>{var n;return tt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
||
* @vue/reactivity v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let Pe;class Xl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Pe,!t&&Pe&&(this.index=(Pe.scopes||(Pe.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Pe;try{return Pe=this,t()}finally{Pe=n}}}on(){Pe=this}off(){Pe=this.parent}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Yl(){return Pe}let se;const xs=new WeakSet;class Xo{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Pe&&Pe.active&&Pe.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,xs.has(this)&&(xs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Zo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Dr(this),ei(this);const t=se,n=je;se=this,je=!0;try{return this.fn()}finally{ti(this),se=t,je=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)hr(t);this.deps=this.depsTail=void 0,Dr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?xs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Hs(this)&&this.run()}get dirty(){return Hs(this)}}let Yo=0,dn,pn;function Zo(e,t=!1){if(e.flags|=8,t){e.next=pn,pn=e;return}e.next=dn,dn=e}function dr(){Yo++}function pr(){if(--Yo>0)return;if(pn){let t=pn;for(pn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;dn;){let t=dn;for(dn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function ei(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ti(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),hr(s),Zl(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Hs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ni(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ni(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===_n))return;e.globalVersion=_n;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Hs(e)){e.flags&=-3;return}const n=se,s=je;se=e,je=!0;try{ei(e);const r=e.fn(e._value);(t.version===0||bt(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{se=n,je=s,ti(e),e.flags&=-3}}function hr(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)hr(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Zl(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let je=!0;const si=[];function _t(){si.push(je),je=!1}function wt(){const e=si.pop();je=e===void 0?!0:e}function Dr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=se;se=void 0;try{t()}finally{se=n}}}let _n=0;class ec{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class mr{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!se||!je||se===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==se)n=this.activeLink=new ec(se,this),se.deps?(n.prevDep=se.depsTail,se.depsTail.nextDep=n,se.depsTail=n):se.deps=se.depsTail=n,ri(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=se.depsTail,n.nextDep=void 0,se.depsTail.nextDep=n,se.depsTail=n,se.deps===n&&(se.deps=s)}return n}trigger(t){this.version++,_n++,this.notify(t)}notify(t){dr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{pr()}}}function ri(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)ri(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const $s=new WeakMap,Tt=Symbol(""),qs=Symbol(""),wn=Symbol("");function he(e,t,n){if(je&&se){let s=$s.get(e);s||$s.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new mr),r.map=s,r.key=n),r.track()}}function lt(e,t,n,s,r,o){const i=$s.get(e);if(!i){_n++;return}const l=c=>{c&&c.trigger()};if(dr(),t==="clear")i.forEach(l);else{const c=j(e),a=c&&ur(n);if(c&&n==="length"){const u=Number(s);i.forEach((f,h)=>{(h==="length"||h===wn||!tt(h)&&h>=u)&&l(f)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),a&&l(i.get(wn)),t){case"add":c?a&&l(i.get("length")):(l(i.get(Tt)),qt(e)&&l(i.get(qs)));break;case"delete":c||(l(i.get(Tt)),qt(e)&&l(i.get(qs)));break;case"set":qt(e)&&l(i.get(Tt));break}}pr()}function kt(e){const t=J(e);return t===e?t:(he(t,"iterate",wn),Be(e)?t:t.map(me))}function as(e){return he(e=J(e),"iterate",wn),e}const tc={__proto__:null,[Symbol.iterator](){return Os(this,Symbol.iterator,me)},concat(...e){return kt(this).concat(...e.map(t=>j(t)?kt(t):t))},entries(){return Os(this,"entries",e=>(e[1]=me(e[1]),e))},every(e,t){return rt(this,"every",e,t,void 0,arguments)},filter(e,t){return rt(this,"filter",e,t,n=>n.map(me),arguments)},find(e,t){return rt(this,"find",e,t,me,arguments)},findIndex(e,t){return rt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return rt(this,"findLast",e,t,me,arguments)},findLastIndex(e,t){return rt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return rt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ts(this,"includes",e)},indexOf(...e){return Ts(this,"indexOf",e)},join(e){return kt(this).join(e)},lastIndexOf(...e){return Ts(this,"lastIndexOf",e)},map(e,t){return rt(this,"map",e,t,void 0,arguments)},pop(){return on(this,"pop")},push(...e){return on(this,"push",e)},reduce(e,...t){return Ur(this,"reduce",e,t)},reduceRight(e,...t){return Ur(this,"reduceRight",e,t)},shift(){return on(this,"shift")},some(e,t){return rt(this,"some",e,t,void 0,arguments)},splice(...e){return on(this,"splice",e)},toReversed(){return kt(this).toReversed()},toSorted(e){return kt(this).toSorted(e)},toSpliced(...e){return kt(this).toSpliced(...e)},unshift(...e){return on(this,"unshift",e)},values(){return Os(this,"values",me)}};function Os(e,t,n){const s=as(e),r=s[t]();return s!==e&&!Be(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.value&&(o.value=n(o.value)),o}),r}const nc=Array.prototype;function rt(e,t,n,s,r,o){const i=as(e),l=i!==e&&!Be(e),c=i[t];if(c!==nc[t]){const f=c.apply(e,o);return l?me(f):f}let a=n;i!==e&&(l?a=function(f,h){return n.call(this,me(f),h,e)}:n.length>2&&(a=function(f,h){return n.call(this,f,h,e)}));const u=c.call(i,a,s);return l&&r?r(u):u}function Ur(e,t,n,s){const r=as(e);let o=n;return r!==e&&(Be(e)?n.length>3&&(o=function(i,l,c){return n.call(this,i,l,c,e)}):o=function(i,l,c){return n.call(this,i,me(l),c,e)}),r[t](o,...s)}function Ts(e,t,n){const s=J(e);he(s,"iterate",wn);const r=s[t](...n);return(r===-1||r===!1)&&br(n[0])?(n[0]=J(n[0]),s[t](...n)):r}function on(e,t,n=[]){_t(),dr();const s=J(e)[t].apply(e,n);return pr(),wt(),s}const sc=lr("__proto__,__v_isRef,__isVue"),oi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(tt));function rc(e){tt(e)||(e=String(e));const t=J(this);return he(t,"has",e),t.hasOwnProperty(e)}class ii{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?hc:ui:o?ai:ci).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=j(t);if(!r){let c;if(i&&(c=tc[n]))return c;if(n==="hasOwnProperty")return rc}const l=Reflect.get(t,n,be(t)?t:s);return(tt(n)?oi.has(n):sc(n))||(r||he(t,"get",n),o)?l:be(l)?i&&ur(n)?l:l.value:re(l)?r?di(l):us(l):l}}class li extends ii{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._isShallow){const c=It(o);if(!Be(s)&&!It(s)&&(o=J(o),s=J(s)),!j(t)&&be(o)&&!be(s))return c?!1:(o.value=s,!0)}const i=j(t)&&ur(n)?Number(n)<t.length:G(t,n),l=Reflect.set(t,n,s,be(t)?t:r);return t===J(r)&&(i?bt(s,o)&<(t,"set",n,s):lt(t,"add",n,s)),l}deleteProperty(t,n){const s=G(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&<(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!tt(n)||!oi.has(n))&&he(t,"has",n),s}ownKeys(t){return he(t,"iterate",j(t)?"length":Tt),Reflect.ownKeys(t)}}class oc extends ii{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ic=new li,lc=new oc,cc=new li(!0);const Vs=e=>e,Ln=e=>Reflect.getPrototypeOf(e);function ac(e,t,n){return function(...s){const r=this.__v_raw,o=J(r),i=qt(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,a=r[e](...s),u=n?Vs:t?Ks:me;return!t&&he(o,"iterate",c?qs:Tt),{next(){const{value:f,done:h}=a.next();return h?{value:f,done:h}:{value:l?[u(f[0]),u(f[1])]:u(f),done:h}},[Symbol.iterator](){return this}}}}function Dn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function uc(e,t){const n={get(r){const o=this.__v_raw,i=J(o),l=J(r);e||(bt(r,l)&&he(i,"get",r),he(i,"get",l));const{has:c}=Ln(i),a=t?Vs:e?Ks:me;if(c.call(i,r))return a(o.get(r));if(c.call(i,l))return a(o.get(l));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&he(J(r),"iterate",Tt),Reflect.get(r,"size",r)},has(r){const o=this.__v_raw,i=J(o),l=J(r);return e||(bt(r,l)&&he(i,"has",r),he(i,"has",l)),r===l?o.has(r):o.has(r)||o.has(l)},forEach(r,o){const i=this,l=i.__v_raw,c=J(l),a=t?Vs:e?Ks:me;return!e&&he(c,"iterate",Tt),l.forEach((u,f)=>r.call(o,a(u),a(f),i))}};return ve(n,e?{add:Dn("add"),set:Dn("set"),delete:Dn("delete"),clear:Dn("clear")}:{add(r){!t&&!Be(r)&&!It(r)&&(r=J(r));const o=J(this);return Ln(o).has.call(o,r)||(o.add(r),lt(o,"add",r,r)),this},set(r,o){!t&&!Be(o)&&!It(o)&&(o=J(o));const i=J(this),{has:l,get:c}=Ln(i);let a=l.call(i,r);a||(r=J(r),a=l.call(i,r));const u=c.call(i,r);return i.set(r,o),a?bt(o,u)&<(i,"set",r,o):lt(i,"add",r,o),this},delete(r){const o=J(this),{has:i,get:l}=Ln(o);let c=i.call(o,r);c||(r=J(r),c=i.call(o,r)),l&&l.call(o,r);const a=o.delete(r);return c&<(o,"delete",r,void 0),a},clear(){const r=J(this),o=r.size!==0,i=r.clear();return o&<(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=ac(r,e,t)}),n}function gr(e,t){const n=uc(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(G(n,r)&&r in s?n:s,r,o)}const fc={get:gr(!1,!1)},dc={get:gr(!1,!0)},pc={get:gr(!0,!1)};const ci=new WeakMap,ai=new WeakMap,ui=new WeakMap,hc=new WeakMap;function mc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gc(e){return e.__v_skip||!Object.isExtensible(e)?0:mc(jl(e))}function us(e){return It(e)?e:yr(e,!1,ic,fc,ci)}function fi(e){return yr(e,!1,cc,dc,ai)}function di(e){return yr(e,!0,lc,pc,ui)}function yr(e,t,n,s,r){if(!re(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=gc(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function Vt(e){return It(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function It(e){return!!(e&&e.__v_isReadonly)}function Be(e){return!!(e&&e.__v_isShallow)}function br(e){return e?!!e.__v_raw:!1}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function yc(e){return!G(e,"__v_skip")&&Object.isExtensible(e)&&Wo(e,"__v_skip",!0),e}const me=e=>re(e)?us(e):e,Ks=e=>re(e)?di(e):e;function be(e){return e?e.__v_isRef===!0:!1}function ie(e){return pi(e,!1)}function bc(e){return pi(e,!0)}function pi(e,t){return be(e)?e:new vc(e,t)}class vc{constructor(t,n){this.dep=new mr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:J(t),this._value=n?t:me(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Be(t)||It(t);t=s?t:J(t),bt(t,n)&&(this._rawValue=t,this._value=s?t:me(t),this.dep.trigger())}}function Ct(e){return be(e)?e.value:e}const _c={get:(e,t,n)=>t==="__v_raw"?e:Ct(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return be(r)&&!be(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function hi(e){return Vt(e)?e:new Proxy(e,_c)}class wc{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new mr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=_n-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&se!==this)return Zo(this,!0),!0}get value(){const t=this.dep.track();return ni(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Sc(e,t,n=!1){let s,r;return q(e)?s=e:(s=e.get,r=e.set),new wc(s,r,n)}const Un={},zn=new WeakMap;let At;function Ec(e,t=!1,n=At){if(n){let s=zn.get(n);s||zn.set(n,s=[]),s.push(e)}}function Rc(e,t,n=ee){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:l,call:c}=n,a=P=>r?P:Be(P)||r===!1||r===0?ct(P,1):ct(P);let u,f,h,g,w=!1,v=!1;if(be(e)?(f=()=>e.value,w=Be(e)):Vt(e)?(f=()=>a(e),w=!0):j(e)?(v=!0,w=e.some(P=>Vt(P)||Be(P)),f=()=>e.map(P=>{if(be(P))return P.value;if(Vt(P))return a(P);if(q(P))return c?c(P,2):P()})):q(e)?t?f=c?()=>c(e,2):e:f=()=>{if(h){_t();try{h()}finally{wt()}}const P=At;At=u;try{return c?c(e,3,[g]):e(g)}finally{At=P}}:f=et,t&&r){const P=f,H=r===!0?1/0:r;f=()=>ct(P(),H)}const y=Yl(),b=()=>{u.stop(),y&&y.active&&ar(y.effects,u)};if(o&&t){const P=t;t=(...H)=>{P(...H),b()}}let S=v?new Array(e.length).fill(Un):Un;const R=P=>{if(!(!(u.flags&1)||!u.dirty&&!P))if(t){const H=u.run();if(r||w||(v?H.some((te,z)=>bt(te,S[z])):bt(H,S))){h&&h();const te=At;At=u;try{const z=[H,S===Un?void 0:v&&S[0]===Un?[]:S,g];c?c(t,3,z):t(...z),S=H}finally{At=te}}}else u.run()};return l&&l(R),u=new Xo(f),u.scheduler=i?()=>i(R,!1):R,g=P=>Ec(P,!1,u),h=u.onStop=()=>{const P=zn.get(u);if(P){if(c)c(P,4);else for(const H of P)H();zn.delete(u)}},t?s?R(!0):S=u.run():i?i(R.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function ct(e,t=1/0,n){if(t<=0||!re(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,be(e))ct(e.value,t,n);else if(j(e))for(let s=0;s<e.length;s++)ct(e[s],t,n);else if(rs(e)||qt(e))e.forEach(s=>{ct(s,t,n)});else if(zo(e)){for(const s in e)ct(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&ct(e[s],t,n)}return e}/**
|
||
* @vue/runtime-core v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function Cn(e,t,n,s){try{return s?e(...s):e()}catch(r){fs(r,t,n)}}function nt(e,t,n,s){if(q(e)){const r=Cn(e,t,n,s);return r&&Vo(r)&&r.catch(o=>{fs(o,t,n)}),r}if(j(e)){const r=[];for(let o=0;o<e.length;o++)r.push(nt(e[o],t,n,s));return r}}function fs(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||ee;if(t){let l=t.parent;const c=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,c,a)===!1)return}l=l.parent}if(o){_t(),Cn(o,null,10,[e,c,a]),wt();return}}Ac(e,n,r,s,i)}function Ac(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const Se=[];let Ye=-1;const Kt=[];let mt=null,Ft=0;const mi=Promise.resolve();let Wn=null;function vr(e){const t=Wn||mi;return e?t.then(this?e.bind(this):e):t}function xc(e){let t=Ye+1,n=Se.length;for(;t<n;){const s=t+n>>>1,r=Se[s],o=Sn(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function _r(e){if(!(e.flags&1)){const t=Sn(e),n=Se[Se.length-1];!n||!(e.flags&2)&&t>=Sn(n)?Se.push(e):Se.splice(xc(t),0,e),e.flags|=1,gi()}}function gi(){Wn||(Wn=mi.then(bi))}function Oc(e){j(e)?Kt.push(...e):mt&&e.id===-1?mt.splice(Ft+1,0,e):e.flags&1||(Kt.push(e),e.flags|=1),gi()}function Br(e,t,n=Ye+1){for(;n<Se.length;n++){const s=Se[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Se.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function yi(e){if(Kt.length){const t=[...new Set(Kt)].sort((n,s)=>Sn(n)-Sn(s));if(Kt.length=0,mt){mt.push(...t);return}for(mt=t,Ft=0;Ft<mt.length;Ft++){const n=mt[Ft];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}mt=null,Ft=0}}const Sn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function bi(e){try{for(Ye=0;Ye<Se.length;Ye++){const t=Se[Ye];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Cn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ye<Se.length;Ye++){const t=Se[Ye];t&&(t.flags&=-2)}Ye=-1,Se.length=0,yi(),Wn=null,(Se.length||Kt.length)&&bi()}}let Ie=null,vi=null;function Qn(e){const t=Ie;return Ie=e,vi=e&&e.type.__scopeId||null,t}function Jt(e,t=Ie,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Wr(-1);const o=Qn(t);let i;try{i=e(...r)}finally{Qn(o),s._d&&Wr(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function De(e,t){if(Ie===null)return e;const n=ms(Ie),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,l,c=ee]=t[r];o&&(q(o)&&(o={mounted:o,updated:o}),o.deep&&ct(i),s.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:c}))}return e}function Et(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];o&&(l.oldValue=o[i].value);let c=l.dir[s];c&&(_t(),nt(c,n,8,[e.el,l,e,t]),wt())}}const Tc=Symbol("_vte"),Cc=e=>e.__isTeleport;function wr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,wr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function _i(e,t){return q(e)?ve({name:e.name},t,{setup:e}):e}function wi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Jn(e,t,n,s,r=!1){if(j(e)){e.forEach((w,v)=>Jn(w,t&&(j(t)?t[v]:t),n,s,r));return}if(hn(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Jn(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?ms(s.component):s.el,i=r?null:o,{i:l,r:c}=e,a=t&&t.r,u=l.refs===ee?l.refs={}:l.refs,f=l.setupState,h=J(f),g=f===ee?()=>!1:w=>G(h,w);if(a!=null&&a!==c&&(fe(a)?(u[a]=null,g(a)&&(f[a]=null)):be(a)&&(a.value=null)),q(c))Cn(c,l,12,[i,u]);else{const w=fe(c),v=be(c);if(w||v){const y=()=>{if(e.f){const b=w?g(c)?f[c]:u[c]:c.value;r?j(b)&&ar(b,o):j(b)?b.includes(o)||b.push(o):w?(u[c]=[o],g(c)&&(f[c]=u[c])):(c.value=[o],e.k&&(u[e.k]=c.value))}else w?(u[c]=i,g(c)&&(f[c]=i)):v&&(c.value=i,e.k&&(u[e.k]=i))};i?(y.id=-1,Ce(y,n)):y()}}}ls().requestIdleCallback;ls().cancelIdleCallback;const hn=e=>!!e.type.__asyncLoader,Si=e=>e.type.__isKeepAlive;function Pc(e,t){Ei(e,"a",t)}function Ic(e,t){Ei(e,"da",t)}function Ei(e,t,n=ge){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ds(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Si(r.parent.vnode)&&Nc(s,t,n,r),r=r.parent}}function Nc(e,t,n,s){const r=ds(t,e,s,!0);Ri(()=>{ar(s[t],r)},n)}function ds(e,t,n=ge,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{_t();const l=Pn(n),c=nt(t,n,e,i);return l(),wt(),c});return s?r.unshift(o):r.push(o),o}}const ut=e=>(t,n=ge)=>{(!Rn||e==="sp")&&ds(e,(...s)=>t(...s),n)},Mc=ut("bm"),Sr=ut("m"),Lc=ut("bu"),Dc=ut("u"),Uc=ut("bum"),Ri=ut("um"),Bc=ut("sp"),kc=ut("rtg"),Fc=ut("rtc");function jc(e,t=ge){ds("ec",e,t)}const Hc="components";function Gt(e,t){return qc(Hc,e,!0,t)||e}const $c=Symbol.for("v-ndc");function qc(e,t,n=!0,s=!1){const r=Ie||ge;if(r){const o=r.type;{const l=Ca(o,!1);if(l&&(l===t||l===ke(t)||l===is(ke(t))))return o}const i=kr(r[e]||o[e],t)||kr(r.appContext[e],t);return!i&&s?o:i}}function kr(e,t){return e&&(e[t]||e[ke(t)]||e[is(ke(t))])}function jt(e,t,n,s){let r;const o=n,i=j(e);if(i||fe(e)){const l=i&&Vt(e);let c=!1;l&&(c=!Be(e),e=as(e)),r=new Array(e.length);for(let a=0,u=e.length;a<u;a++)r[a]=t(c?me(e[a]):e[a],a,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,o)}else if(re(e))if(e[Symbol.iterator])r=Array.from(e,(l,c)=>t(l,c,void 0,o));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,a=l.length;c<a;c++){const u=l[c];r[c]=t(e[u],u,c,o)}}else r=[];return r}const zs=e=>e?zi(e)?ms(e):zs(e.parent):null,mn=ve(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=>zs(e.parent),$root:e=>zs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>xi(e),$forceUpdate:e=>e.f||(e.f=()=>{_r(e.update)}),$nextTick:e=>e.n||(e.n=vr.bind(e.proxy)),$watch:e=>ua.bind(e)}),Cs=(e,t)=>e!==ee&&!e.__isScriptSetup&&G(e,t),Vc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:c}=e;let a;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Cs(s,t))return i[t]=1,s[t];if(r!==ee&&G(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&G(a,t))return i[t]=3,o[t];if(n!==ee&&G(n,t))return i[t]=4,n[t];Ws&&(i[t]=0)}}const u=mn[t];let f,h;if(u)return t==="$attrs"&&he(e.attrs,"get",""),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ee&&G(n,t))return i[t]=4,n[t];if(h=c.config.globalProperties,G(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Cs(r,t)?(r[t]=n,!0):s!==ee&&G(s,t)?(s[t]=n,!0):G(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let l;return!!n[i]||e!==ee&&G(e,i)||Cs(t,i)||(l=o[0])&&G(l,i)||G(s,i)||G(mn,i)||G(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:G(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Fr(e){return j(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ws=!0;function Kc(e){const t=xi(e),n=e.proxy,s=e.ctx;Ws=!1,t.beforeCreate&&jr(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:c,inject:a,created:u,beforeMount:f,mounted:h,beforeUpdate:g,updated:w,activated:v,deactivated:y,beforeDestroy:b,beforeUnmount:S,destroyed:R,unmounted:P,render:H,renderTracked:te,renderTriggered:z,errorCaptured:_e,serverPrefetch:Fe,expose:Ve,inheritAttrs:dt,components:St,directives:Ke,filters:sn}=t;if(a&&zc(a,s,null),i)for(const Y in i){const W=i[Y];q(W)&&(s[Y]=W.bind(n))}if(r){const Y=r.call(n,n);re(Y)&&(e.data=us(Y))}if(Ws=!0,o)for(const Y in o){const W=o[Y],st=q(W)?W.bind(n,n):q(W.get)?W.get.bind(n,n):et,pt=!q(W)&&q(W.set)?W.set.bind(n):et,ze=Ue({get:st,set:pt});Object.defineProperty(s,Y,{enumerable:!0,configurable:!0,get:()=>ze.value,set:Re=>ze.value=Re})}if(l)for(const Y in l)Ai(l[Y],s,n,Y);if(c){const Y=q(c)?c.call(n):c;Reflect.ownKeys(Y).forEach(W=>{Fn(W,Y[W])})}u&&jr(u,e,"c");function de(Y,W){j(W)?W.forEach(st=>Y(st.bind(n))):W&&Y(W.bind(n))}if(de(Mc,f),de(Sr,h),de(Lc,g),de(Dc,w),de(Pc,v),de(Ic,y),de(jc,_e),de(Fc,te),de(kc,z),de(Uc,S),de(Ri,P),de(Bc,Fe),j(Ve))if(Ve.length){const Y=e.exposed||(e.exposed={});Ve.forEach(W=>{Object.defineProperty(Y,W,{get:()=>n[W],set:st=>n[W]=st})})}else e.exposed||(e.exposed={});H&&e.render===et&&(e.render=H),dt!=null&&(e.inheritAttrs=dt),St&&(e.components=St),Ke&&(e.directives=Ke),Fe&&wi(e)}function zc(e,t,n=et){j(e)&&(e=Qs(e));for(const s in e){const r=e[s];let o;re(r)?"default"in r?o=He(r.from||s,r.default,!0):o=He(r.from||s):o=He(r),be(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function jr(e,t,n){nt(j(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ai(e,t,n,s){let r=s.includes(".")?ji(n,s):()=>n[s];if(fe(e)){const o=t[e];q(o)&&gn(r,o)}else if(q(e))gn(r,e.bind(n));else if(re(e))if(j(e))e.forEach(o=>Ai(o,t,n,s));else{const o=q(e.handler)?e.handler.bind(n):t[e.handler];q(o)&&gn(r,o,e)}}function xi(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(a=>Gn(c,a,i,!0)),Gn(c,t,i)),re(t)&&o.set(t,c),c}function Gn(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Gn(e,o,n,!0),r&&r.forEach(i=>Gn(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Wc[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Wc={data:Hr,props:$r,emits:$r,methods:un,computed:un,beforeCreate:we,created:we,beforeMount:we,mounted:we,beforeUpdate:we,updated:we,beforeDestroy:we,beforeUnmount:we,destroyed:we,unmounted:we,activated:we,deactivated:we,errorCaptured:we,serverPrefetch:we,components:un,directives:un,watch:Jc,provide:Hr,inject:Qc};function Hr(e,t){return t?e?function(){return ve(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function Qc(e,t){return un(Qs(e),Qs(t))}function Qs(e){if(j(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function we(e,t){return e?[...new Set([].concat(e,t))]:t}function un(e,t){return e?ve(Object.create(null),e,t):t}function $r(e,t){return e?j(e)&&j(t)?[...new Set([...e,...t])]:ve(Object.create(null),Fr(e),Fr(t??{})):t}function Jc(e,t){if(!e)return t;if(!t)return e;const n=ve(Object.create(null),e);for(const s in t)n[s]=we(e[s],t[s]);return n}function Oi(){return{app:null,config:{isNativeTag:kl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Gc=0;function Xc(e,t){return function(s,r=null){q(s)||(s=ve({},s)),r!=null&&!re(r)&&(r=null);const o=Oi(),i=new WeakSet,l=[];let c=!1;const a=o.app={_uid:Gc++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Ia,get config(){return o.config},set config(u){},use(u,...f){return i.has(u)||(u&&q(u.install)?(i.add(u),u.install(a,...f)):q(u)&&(i.add(u),u(a,...f))),a},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),a},component(u,f){return f?(o.components[u]=f,a):o.components[u]},directive(u,f){return f?(o.directives[u]=f,a):o.directives[u]},mount(u,f,h){if(!c){const g=a._ceVNode||le(s,r);return g.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),e(g,u,h),c=!0,a._container=u,u.__vue_app__=a,ms(g.component)}},onUnmount(u){l.push(u)},unmount(){c&&(nt(l,a._instance,16),e(null,a._container),delete a._container.__vue_app__)},provide(u,f){return o.provides[u]=f,a},runWithContext(u){const f=zt;zt=a;try{return u()}finally{zt=f}}};return a}}let zt=null;function Fn(e,t){if(ge){let n=ge.provides;const s=ge.parent&&ge.parent.provides;s===n&&(n=ge.provides=Object.create(s)),n[e]=t}}function He(e,t,n=!1){const s=ge||Ie;if(s||zt){const r=zt?zt._context.provides:s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&q(t)?t.call(s&&s.proxy):t}}const Ti={},Ci=()=>Object.create(Ti),Pi=e=>Object.getPrototypeOf(e)===Ti;function Yc(e,t,n,s=!1){const r={},o=Ci();e.propsDefaults=Object.create(null),Ii(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:fi(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Zc(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=J(r),[c]=e.propsOptions;let a=!1;if((s||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let h=u[f];if(ps(e.emitsOptions,h))continue;const g=t[h];if(c)if(G(o,h))g!==o[h]&&(o[h]=g,a=!0);else{const w=ke(h);r[w]=Js(c,l,w,g,e,!1)}else g!==o[h]&&(o[h]=g,a=!0)}}}else{Ii(e,t,r,o)&&(a=!0);let u;for(const f in l)(!t||!G(t,f)&&((u=Lt(f))===f||!G(t,u)))&&(c?n&&(n[f]!==void 0||n[u]!==void 0)&&(r[f]=Js(c,l,f,void 0,e,!0)):delete r[f]);if(o!==l)for(const f in o)(!t||!G(t,f))&&(delete o[f],a=!0)}a&<(e.attrs,"set","")}function Ii(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,l;if(t)for(let c in t){if(fn(c))continue;const a=t[c];let u;r&&G(r,u=ke(c))?!o||!o.includes(u)?n[u]=a:(l||(l={}))[u]=a:ps(e.emitsOptions,c)||(!(c in s)||a!==s[c])&&(s[c]=a,i=!0)}if(o){const c=J(n),a=l||ee;for(let u=0;u<o.length;u++){const f=o[u];n[f]=Js(r,c,f,a[f],e,!G(a,f))}}return i}function Js(e,t,n,s,r,o){const i=e[n];if(i!=null){const l=G(i,"default");if(l&&s===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&q(c)){const{propsDefaults:a}=r;if(n in a)s=a[n];else{const u=Pn(r);s=a[n]=c.call(null,t),u()}}else s=c;r.ce&&r.ce._setProp(n,s)}i[0]&&(o&&!l?s=!1:i[1]&&(s===""||s===Lt(n))&&(s=!0))}return s}const ea=new WeakMap;function Ni(e,t,n=!1){const s=n?ea:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},l=[];let c=!1;if(!q(e)){const u=f=>{c=!0;const[h,g]=Ni(f,t,!0);ve(i,h),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!c)return re(e)&&s.set(e,$t),$t;if(j(o))for(let u=0;u<o.length;u++){const f=ke(o[u]);qr(f)&&(i[f]=ee)}else if(o)for(const u in o){const f=ke(u);if(qr(f)){const h=o[u],g=i[f]=j(h)||q(h)?{type:h}:ve({},h),w=g.type;let v=!1,y=!0;if(j(w))for(let b=0;b<w.length;++b){const S=w[b],R=q(S)&&S.name;if(R==="Boolean"){v=!0;break}else R==="String"&&(y=!1)}else v=q(w)&&w.name==="Boolean";g[0]=v,g[1]=y,(v||G(g,"default"))&&l.push(f)}}const a=[i,l];return re(e)&&s.set(e,a),a}function qr(e){return e[0]!=="$"&&!fn(e)}const Mi=e=>e[0]==="_"||e==="$stable",Er=e=>j(e)?e.map(Ze):[Ze(e)],ta=(e,t,n)=>{if(t._n)return t;const s=Jt((...r)=>Er(t(...r)),n);return s._c=!1,s},Li=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Mi(r))continue;const o=e[r];if(q(o))t[r]=ta(r,o,s);else if(o!=null){const i=Er(o);t[r]=()=>i}}},Di=(e,t)=>{const n=Er(t);e.slots.default=()=>n},Ui=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},na=(e,t,n)=>{const s=e.slots=Ci();if(e.vnode.shapeFlag&32){const r=t._;r?(Ui(s,t,n),n&&Wo(s,"_",r,!0)):Li(t,s)}else t&&Di(e,t)},sa=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=ee;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:Ui(r,t,n):(o=!t.$stable,Li(t,r)),i=t}else t&&(Di(e,t),i={default:1});if(o)for(const l in r)!Mi(l)&&i[l]==null&&delete r[l]},Ce=ya;function ra(e){return oa(e)}function oa(e,t){const n=ls();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:c,setText:a,setElementText:u,parentNode:f,nextSibling:h,setScopeId:g=et,insertStaticContent:w}=e,v=(d,p,m,A=null,T=null,O=null,M=void 0,N=null,I=!!p.dynamicChildren)=>{if(d===p)return;d&&!ln(d,p)&&(A=x(d),Re(d,T,O,!0),d=null),p.patchFlag===-2&&(I=!1,p.dynamicChildren=null);const{type:C,ref:F,shapeFlag:D}=p;switch(C){case hs:y(d,p,m,A);break;case Nt:b(d,p,m,A);break;case Is:d==null&&S(p,m,A,M);break;case Ee:St(d,p,m,A,T,O,M,N,I);break;default:D&1?H(d,p,m,A,T,O,M,N,I):D&6?Ke(d,p,m,A,T,O,M,N,I):(D&64||D&128)&&C.process(d,p,m,A,T,O,M,N,I,B)}F!=null&&T&&Jn(F,d&&d.ref,O,p||d,!p)},y=(d,p,m,A)=>{if(d==null)s(p.el=l(p.children),m,A);else{const T=p.el=d.el;p.children!==d.children&&a(T,p.children)}},b=(d,p,m,A)=>{d==null?s(p.el=c(p.children||""),m,A):p.el=d.el},S=(d,p,m,A)=>{[d.el,d.anchor]=w(d.children,p,m,A,d.el,d.anchor)},R=({el:d,anchor:p},m,A)=>{let T;for(;d&&d!==p;)T=h(d),s(d,m,A),d=T;s(p,m,A)},P=({el:d,anchor:p})=>{let m;for(;d&&d!==p;)m=h(d),r(d),d=m;r(p)},H=(d,p,m,A,T,O,M,N,I)=>{p.type==="svg"?M="svg":p.type==="math"&&(M="mathml"),d==null?te(p,m,A,T,O,M,N,I):Fe(d,p,T,O,M,N,I)},te=(d,p,m,A,T,O,M,N)=>{let I,C;const{props:F,shapeFlag:D,transition:k,dirs:$}=d;if(I=d.el=i(d.type,O,F&&F.is,F),D&8?u(I,d.children):D&16&&_e(d.children,I,null,A,T,Ps(d,O),M,N),$&&Et(d,null,A,"created"),z(I,d,d.scopeId,M,A),F){for(const ne in F)ne!=="value"&&!fn(ne)&&o(I,ne,null,F[ne],O,A);"value"in F&&o(I,"value",null,F.value,O),(C=F.onVnodeBeforeMount)&&Ge(C,A,d)}$&&Et(d,null,A,"beforeMount");const K=ia(T,k);K&&k.beforeEnter(I),s(I,p,m),((C=F&&F.onVnodeMounted)||K||$)&&Ce(()=>{C&&Ge(C,A,d),K&&k.enter(I),$&&Et(d,null,A,"mounted")},T)},z=(d,p,m,A,T)=>{if(m&&g(d,m),A)for(let O=0;O<A.length;O++)g(d,A[O]);if(T){let O=T.subTree;if(p===O||$i(O.type)&&(O.ssContent===p||O.ssFallback===p)){const M=T.vnode;z(d,M,M.scopeId,M.slotScopeIds,T.parent)}}},_e=(d,p,m,A,T,O,M,N,I=0)=>{for(let C=I;C<d.length;C++){const F=d[C]=N?gt(d[C]):Ze(d[C]);v(null,F,p,m,A,T,O,M,N)}},Fe=(d,p,m,A,T,O,M)=>{const N=p.el=d.el;let{patchFlag:I,dynamicChildren:C,dirs:F}=p;I|=d.patchFlag&16;const D=d.props||ee,k=p.props||ee;let $;if(m&&Rt(m,!1),($=k.onVnodeBeforeUpdate)&&Ge($,m,p,d),F&&Et(p,d,m,"beforeUpdate"),m&&Rt(m,!0),(D.innerHTML&&k.innerHTML==null||D.textContent&&k.textContent==null)&&u(N,""),C?Ve(d.dynamicChildren,C,N,m,A,Ps(p,T),O):M||W(d,p,N,null,m,A,Ps(p,T),O,!1),I>0){if(I&16)dt(N,D,k,m,T);else if(I&2&&D.class!==k.class&&o(N,"class",null,k.class,T),I&4&&o(N,"style",D.style,k.style,T),I&8){const K=p.dynamicProps;for(let ne=0;ne<K.length;ne++){const X=K[ne],Oe=D[X],Ae=k[X];(Ae!==Oe||X==="value")&&o(N,X,Oe,Ae,T,m)}}I&1&&d.children!==p.children&&u(N,p.children)}else!M&&C==null&&dt(N,D,k,m,T);(($=k.onVnodeUpdated)||F)&&Ce(()=>{$&&Ge($,m,p,d),F&&Et(p,d,m,"updated")},A)},Ve=(d,p,m,A,T,O,M)=>{for(let N=0;N<p.length;N++){const I=d[N],C=p[N],F=I.el&&(I.type===Ee||!ln(I,C)||I.shapeFlag&70)?f(I.el):m;v(I,C,F,null,A,T,O,M,!0)}},dt=(d,p,m,A,T)=>{if(p!==m){if(p!==ee)for(const O in p)!fn(O)&&!(O in m)&&o(d,O,p[O],null,T,A);for(const O in m){if(fn(O))continue;const M=m[O],N=p[O];M!==N&&O!=="value"&&o(d,O,N,M,T,A)}"value"in m&&o(d,"value",p.value,m.value,T)}},St=(d,p,m,A,T,O,M,N,I)=>{const C=p.el=d?d.el:l(""),F=p.anchor=d?d.anchor:l("");let{patchFlag:D,dynamicChildren:k,slotScopeIds:$}=p;$&&(N=N?N.concat($):$),d==null?(s(C,m,A),s(F,m,A),_e(p.children||[],m,F,T,O,M,N,I)):D>0&&D&64&&k&&d.dynamicChildren?(Ve(d.dynamicChildren,k,m,T,O,M,N),(p.key!=null||T&&p===T.subTree)&&Bi(d,p,!0)):W(d,p,m,F,T,O,M,N,I)},Ke=(d,p,m,A,T,O,M,N,I)=>{p.slotScopeIds=N,d==null?p.shapeFlag&512?T.ctx.activate(p,m,A,M,I):sn(p,m,A,T,O,M,I):Dt(d,p,I)},sn=(d,p,m,A,T,O,M)=>{const N=d.component=Ra(d,A,T);if(Si(d)&&(N.ctx.renderer=B),Aa(N,!1,M),N.asyncDep){if(T&&T.registerDep(N,de,M),!d.el){const I=N.subTree=le(Nt);b(null,I,p,m)}}else de(N,d,p,m,T,O,M)},Dt=(d,p,m)=>{const A=p.component=d.component;if(ma(d,p,m))if(A.asyncDep&&!A.asyncResolved){Y(A,p,m);return}else A.next=p,A.update();else p.el=d.el,A.vnode=p},de=(d,p,m,A,T,O,M)=>{const N=()=>{if(d.isMounted){let{next:D,bu:k,u:$,parent:K,vnode:ne}=d;{const Qe=ki(d);if(Qe){D&&(D.el=ne.el,Y(d,D,M)),Qe.asyncDep.then(()=>{d.isUnmounted||N()});return}}let X=D,Oe;Rt(d,!1),D?(D.el=ne.el,Y(d,D,M)):D=ne,k&&kn(k),(Oe=D.props&&D.props.onVnodeBeforeUpdate)&&Ge(Oe,K,D,ne),Rt(d,!0);const Ae=Kr(d),We=d.subTree;d.subTree=Ae,v(We,Ae,f(We.el),x(We),d,T,O),D.el=Ae.el,X===null&&ga(d,Ae.el),$&&Ce($,T),(Oe=D.props&&D.props.onVnodeUpdated)&&Ce(()=>Ge(Oe,K,D,ne),T)}else{let D;const{el:k,props:$}=p,{bm:K,m:ne,parent:X,root:Oe,type:Ae}=d,We=hn(p);Rt(d,!1),K&&kn(K),!We&&(D=$&&$.onVnodeBeforeMount)&&Ge(D,X,p),Rt(d,!0);{Oe.ce&&Oe.ce._injectChildStyle(Ae);const Qe=d.subTree=Kr(d);v(null,Qe,m,A,d,T,O),p.el=Qe.el}if(ne&&Ce(ne,T),!We&&(D=$&&$.onVnodeMounted)){const Qe=p;Ce(()=>Ge(D,X,Qe),T)}(p.shapeFlag&256||X&&hn(X.vnode)&&X.vnode.shapeFlag&256)&&d.a&&Ce(d.a,T),d.isMounted=!0,p=m=A=null}};d.scope.on();const I=d.effect=new Xo(N);d.scope.off();const C=d.update=I.run.bind(I),F=d.job=I.runIfDirty.bind(I);F.i=d,F.id=d.uid,I.scheduler=()=>_r(F),Rt(d,!0),C()},Y=(d,p,m)=>{p.component=d;const A=d.vnode.props;d.vnode=p,d.next=null,Zc(d,p.props,A,m),sa(d,p.children,m),_t(),Br(d),wt()},W=(d,p,m,A,T,O,M,N,I=!1)=>{const C=d&&d.children,F=d?d.shapeFlag:0,D=p.children,{patchFlag:k,shapeFlag:$}=p;if(k>0){if(k&128){pt(C,D,m,A,T,O,M,N,I);return}else if(k&256){st(C,D,m,A,T,O,M,N,I);return}}$&8?(F&16&&Le(C,T,O),D!==C&&u(m,D)):F&16?$&16?pt(C,D,m,A,T,O,M,N,I):Le(C,T,O,!0):(F&8&&u(m,""),$&16&&_e(D,m,A,T,O,M,N,I))},st=(d,p,m,A,T,O,M,N,I)=>{d=d||$t,p=p||$t;const C=d.length,F=p.length,D=Math.min(C,F);let k;for(k=0;k<D;k++){const $=p[k]=I?gt(p[k]):Ze(p[k]);v(d[k],$,m,null,T,O,M,N,I)}C>F?Le(d,T,O,!0,!1,D):_e(p,m,A,T,O,M,N,I,D)},pt=(d,p,m,A,T,O,M,N,I)=>{let C=0;const F=p.length;let D=d.length-1,k=F-1;for(;C<=D&&C<=k;){const $=d[C],K=p[C]=I?gt(p[C]):Ze(p[C]);if(ln($,K))v($,K,m,null,T,O,M,N,I);else break;C++}for(;C<=D&&C<=k;){const $=d[D],K=p[k]=I?gt(p[k]):Ze(p[k]);if(ln($,K))v($,K,m,null,T,O,M,N,I);else break;D--,k--}if(C>D){if(C<=k){const $=k+1,K=$<F?p[$].el:A;for(;C<=k;)v(null,p[C]=I?gt(p[C]):Ze(p[C]),m,K,T,O,M,N,I),C++}}else if(C>k)for(;C<=D;)Re(d[C],T,O,!0),C++;else{const $=C,K=C,ne=new Map;for(C=K;C<=k;C++){const Te=p[C]=I?gt(p[C]):Ze(p[C]);Te.key!=null&&ne.set(Te.key,C)}let X,Oe=0;const Ae=k-K+1;let We=!1,Qe=0;const rn=new Array(Ae);for(C=0;C<Ae;C++)rn[C]=0;for(C=$;C<=D;C++){const Te=d[C];if(Oe>=Ae){Re(Te,T,O,!0);continue}let Je;if(Te.key!=null)Je=ne.get(Te.key);else for(X=K;X<=k;X++)if(rn[X-K]===0&&ln(Te,p[X])){Je=X;break}Je===void 0?Re(Te,T,O,!0):(rn[Je-K]=C+1,Je>=Qe?Qe=Je:We=!0,v(Te,p[Je],m,null,T,O,M,N,I),Oe++)}const Ir=We?la(rn):$t;for(X=Ir.length-1,C=Ae-1;C>=0;C--){const Te=K+C,Je=p[Te],Nr=Te+1<F?p[Te+1].el:A;rn[C]===0?v(null,Je,m,Nr,T,O,M,N,I):We&&(X<0||C!==Ir[X]?ze(Je,m,Nr,2):X--)}}},ze=(d,p,m,A,T=null)=>{const{el:O,type:M,transition:N,children:I,shapeFlag:C}=d;if(C&6){ze(d.component.subTree,p,m,A);return}if(C&128){d.suspense.move(p,m,A);return}if(C&64){M.move(d,p,m,B);return}if(M===Ee){s(O,p,m);for(let D=0;D<I.length;D++)ze(I[D],p,m,A);s(d.anchor,p,m);return}if(M===Is){R(d,p,m);return}if(A!==2&&C&1&&N)if(A===0)N.beforeEnter(O),s(O,p,m),Ce(()=>N.enter(O),T);else{const{leave:D,delayLeave:k,afterLeave:$}=N,K=()=>s(O,p,m),ne=()=>{D(O,()=>{K(),$&&$()})};k?k(O,K,ne):ne()}else s(O,p,m)},Re=(d,p,m,A=!1,T=!1)=>{const{type:O,props:M,ref:N,children:I,dynamicChildren:C,shapeFlag:F,patchFlag:D,dirs:k,cacheIndex:$}=d;if(D===-2&&(T=!1),N!=null&&Jn(N,null,m,d,!0),$!=null&&(p.renderCache[$]=void 0),F&256){p.ctx.deactivate(d);return}const K=F&1&&k,ne=!hn(d);let X;if(ne&&(X=M&&M.onVnodeBeforeUnmount)&&Ge(X,p,d),F&6)Mn(d.component,m,A);else{if(F&128){d.suspense.unmount(m,A);return}K&&Et(d,null,p,"beforeUnmount"),F&64?d.type.remove(d,p,m,B,A):C&&!C.hasOnce&&(O!==Ee||D>0&&D&64)?Le(C,p,m,!1,!0):(O===Ee&&D&384||!T&&F&16)&&Le(I,p,m),A&&Ut(d)}(ne&&(X=M&&M.onVnodeUnmounted)||K)&&Ce(()=>{X&&Ge(X,p,d),K&&Et(d,null,p,"unmounted")},m)},Ut=d=>{const{type:p,el:m,anchor:A,transition:T}=d;if(p===Ee){Bt(m,A);return}if(p===Is){P(d);return}const O=()=>{r(m),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(d.shapeFlag&1&&T&&!T.persisted){const{leave:M,delayLeave:N}=T,I=()=>M(m,O);N?N(d.el,O,I):I()}else O()},Bt=(d,p)=>{let m;for(;d!==p;)m=h(d),r(d),d=m;r(p)},Mn=(d,p,m)=>{const{bum:A,scope:T,job:O,subTree:M,um:N,m:I,a:C}=d;Vr(I),Vr(C),A&&kn(A),T.stop(),O&&(O.flags|=8,Re(M,d,p,m)),N&&Ce(N,p),Ce(()=>{d.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Le=(d,p,m,A=!1,T=!1,O=0)=>{for(let M=O;M<d.length;M++)Re(d[M],p,m,A,T)},x=d=>{if(d.shapeFlag&6)return x(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const p=h(d.anchor||d.el),m=p&&p[Tc];return m?h(m):p};let U=!1;const L=(d,p,m)=>{d==null?p._vnode&&Re(p._vnode,null,null,!0):v(p._vnode||null,d,p,null,null,null,m),p._vnode=d,U||(U=!0,Br(),yi(),U=!1)},B={p:v,um:Re,m:ze,r:Ut,mt:sn,mc:_e,pc:W,pbc:Ve,n:x,o:e};return{render:L,hydrate:void 0,createApp:Xc(L)}}function Ps({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 Rt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ia(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Bi(e,t,n=!1){const s=e.children,r=t.children;if(j(s)&&j(r))for(let o=0;o<s.length;o++){const i=s[o];let l=r[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[o]=gt(r[o]),l.el=i.el),!n&&l.patchFlag!==-2&&Bi(i,l)),l.type===hs&&(l.el=i.el)}}function la(e){const t=e.slice(),n=[0];let s,r,o,i,l;const c=e.length;for(s=0;s<c;s++){const a=e[s];if(a!==0){if(r=n[n.length-1],e[r]<a){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<a?o=l+1:i=l;a<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function ki(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ki(t)}function Vr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const ca=Symbol.for("v-scx"),aa=()=>He(ca);function gn(e,t,n){return Fi(e,t,n)}function Fi(e,t,n=ee){const{immediate:s,deep:r,flush:o,once:i}=n,l=ve({},n),c=t&&s||!t&&o!=="post";let a;if(Rn){if(o==="sync"){const g=aa();a=g.__watcherHandles||(g.__watcherHandles=[])}else if(!c){const g=()=>{};return g.stop=et,g.resume=et,g.pause=et,g}}const u=ge;l.call=(g,w,v)=>nt(g,u,w,v);let f=!1;o==="post"?l.scheduler=g=>{Ce(g,u&&u.suspense)}:o!=="sync"&&(f=!0,l.scheduler=(g,w)=>{w?g():_r(g)}),l.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const h=Rc(e,t,l);return Rn&&(a?a.push(h):c&&h()),h}function ua(e,t,n){const s=this.proxy,r=fe(e)?e.includes(".")?ji(s,e):()=>s[e]:e.bind(s,s);let o;q(t)?o=t:(o=t.handler,n=t);const i=Pn(this),l=Fi(r,o.bind(s),n);return i(),l}function ji(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const fa=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ke(t)}Modifiers`]||e[`${Lt(t)}Modifiers`];function da(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ee;let r=n;const o=t.startsWith("update:"),i=o&&fa(s,t.slice(7));i&&(i.trim&&(r=n.map(u=>fe(u)?u.trim():u)),i.number&&(r=n.map(Kn)));let l,c=s[l=Rs(t)]||s[l=Rs(ke(t))];!c&&o&&(c=s[l=Rs(Lt(t))]),c&&nt(c,e,6,r);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,nt(a,e,6,r)}}function Hi(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!q(e)){const c=a=>{const u=Hi(a,t,!0);u&&(l=!0,ve(i,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(re(e)&&s.set(e,null),null):(j(o)?o.forEach(c=>i[c]=null):ve(i,o),re(e)&&s.set(e,i),i)}function ps(e,t){return!e||!ss(t)?!1:(t=t.slice(2).replace(/Once$/,""),G(e,t[0].toLowerCase()+t.slice(1))||G(e,Lt(t))||G(e,t))}function Kr(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:c,render:a,renderCache:u,props:f,data:h,setupState:g,ctx:w,inheritAttrs:v}=e,y=Qn(e);let b,S;try{if(n.shapeFlag&4){const P=r||s,H=P;b=Ze(a.call(H,P,u,f,g,h,w)),S=l}else{const P=t;b=Ze(P.length>1?P(f,{attrs:l,slots:i,emit:c}):P(f,null)),S=t.props?l:pa(l)}}catch(P){yn.length=0,fs(P,e,1),b=le(Nt)}let R=b;if(S&&v!==!1){const P=Object.keys(S),{shapeFlag:H}=R;P.length&&H&7&&(o&&P.some(cr)&&(S=ha(S,o)),R=Xt(R,S,!1,!0))}return n.dirs&&(R=Xt(R,null,!1,!0),R.dirs=R.dirs?R.dirs.concat(n.dirs):n.dirs),n.transition&&wr(R,n.transition),b=R,Qn(y),b}const pa=e=>{let t;for(const n in e)(n==="class"||n==="style"||ss(n))&&((t||(t={}))[n]=e[n]);return t},ha=(e,t)=>{const n={};for(const s in e)(!cr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function ma(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:c}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?zr(s,i,a):!!i;if(c&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const h=u[f];if(i[h]!==s[h]&&!ps(a,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?zr(s,i,a):!0:!!i;return!1}function zr(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!ps(n,o))return!0}return!1}function ga({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const $i=e=>e.__isSuspense;function ya(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):Oc(e)}const Ee=Symbol.for("v-fgt"),hs=Symbol.for("v-txt"),Nt=Symbol.for("v-cmt"),Is=Symbol.for("v-stc"),yn=[];let Ne=null;function oe(e=!1){yn.push(Ne=e?null:[])}function ba(){yn.pop(),Ne=yn[yn.length-1]||null}let En=1;function Wr(e,t=!1){En+=e,e<0&&Ne&&t&&(Ne.hasOnce=!0)}function qi(e){return e.dynamicChildren=En>0?Ne||$t:null,ba(),En>0&&Ne&&Ne.push(e),e}function ce(e,t,n,s,r,o){return qi(E(e,t,n,s,r,o,!0))}function Vi(e,t,n,s,r){return qi(le(e,t,n,s,r,!0))}function Xn(e){return e?e.__v_isVNode===!0:!1}function ln(e,t){return e.type===t.type&&e.key===t.key}const Ki=({key:e})=>e??null,jn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?fe(e)||be(e)||q(e)?{i:Ie,r:e,k:t,f:!!n}:e:null);function E(e,t=null,n=null,s=0,r=null,o=e===Ee?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ki(t),ref:t&&jn(t),scopeId:vi,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:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ie};return l?(Rr(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=fe(n)?8:16),En>0&&!i&&Ne&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Ne.push(c),c}const le=va;function va(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===$c)&&(e=Nt),Xn(e)){const l=Xt(e,t,!0);return n&&Rr(l,n),En>0&&!o&&Ne&&(l.shapeFlag&6?Ne[Ne.indexOf(e)]=l:Ne.push(l)),l.patchFlag=-2,l}if(Pa(e)&&(e=e.__vccOpts),t){t=_a(t);let{class:l,style:c}=t;l&&!fe(l)&&(t.class=Qt(l)),re(c)&&(br(c)&&!j(c)&&(c=ve({},c)),t.style=fr(c))}const i=fe(e)?1:$i(e)?128:Cc(e)?64:re(e)?4:q(e)?2:0;return E(e,t,n,s,r,i,o,!0)}function _a(e){return e?br(e)||Pi(e)?ve({},e):e:null}function Xt(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:c}=e,a=t?wa(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Ki(a),ref:t&&t.ref?n&&o?j(o)?o.concat(jn(t)):[o,jn(t)]:jn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ee?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Xt(e.ssContent),ssFallback:e.ssFallback&&Xt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&wr(u,c.clone(u)),u}function ae(e=" ",t=0){return le(hs,null,e,t)}function Qr(e="",t=!1){return t?(oe(),Vi(Nt,null,e)):le(Nt,null,e)}function Ze(e){return e==null||typeof e=="boolean"?le(Nt):j(e)?le(Ee,null,e.slice()):Xn(e)?gt(e):le(hs,null,String(e))}function gt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Xt(e)}function Rr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(j(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Rr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Pi(t)?t._ctx=Ie:r===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else q(t)?(t={default:t,_ctx:Ie},n=32):(t=String(t),s&64?(n=16,t=[ae(t)]):n=8);e.children=t,e.shapeFlag|=n}function wa(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=Qt([t.class,s.class]));else if(r==="style")t.style=fr([t.style,s.style]);else if(ss(r)){const o=t[r],i=s[r];i&&o!==i&&!(j(o)&&o.includes(i))&&(t[r]=o?[].concat(o,i):i)}else r!==""&&(t[r]=s[r])}return t}function Ge(e,t,n,s=null){nt(e,t,7,[n,s])}const Sa=Oi();let Ea=0;function Ra(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||Sa,o={uid:Ea++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Xl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ni(s,r),emitsOptions:Hi(s,r),emit:null,emitted:null,propsDefaults:ee,inheritAttrs:s.inheritAttrs,ctx:ee,data:ee,props:ee,attrs:ee,slots:ee,refs:ee,setupState:ee,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=da.bind(null,o),e.ce&&e.ce(o),o}let ge=null,Yn,Gs;{const e=ls(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};Yn=t("__VUE_INSTANCE_SETTERS__",n=>ge=n),Gs=t("__VUE_SSR_SETTERS__",n=>Rn=n)}const Pn=e=>{const t=ge;return Yn(e),e.scope.on(),()=>{e.scope.off(),Yn(t)}},Jr=()=>{ge&&ge.scope.off(),Yn(null)};function zi(e){return e.vnode.shapeFlag&4}let Rn=!1;function Aa(e,t=!1,n=!1){t&&Gs(t);const{props:s,children:r}=e.vnode,o=zi(e);Yc(e,s,o,t),na(e,r,n);const i=o?xa(e,t):void 0;return t&&Gs(!1),i}function xa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Vc);const{setup:s}=n;if(s){_t();const r=e.setupContext=s.length>1?Ta(e):null,o=Pn(e),i=Cn(s,e,0,[e.props,r]),l=Vo(i);if(wt(),o(),(l||e.sp)&&!hn(e)&&wi(e),l){if(i.then(Jr,Jr),t)return i.then(c=>{Gr(e,c)}).catch(c=>{fs(c,e,0)});e.asyncDep=i}else Gr(e,i)}else Wi(e)}function Gr(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:re(t)&&(e.setupState=hi(t)),Wi(e)}function Wi(e,t,n){const s=e.type;e.render||(e.render=s.render||et);{const r=Pn(e);_t();try{Kc(e)}finally{wt(),r()}}}const Oa={get(e,t){return he(e,"get",""),e[t]}};function Ta(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Oa),slots:e.slots,emit:e.emit,expose:t}}function ms(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(hi(yc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mn)return mn[n](e)},has(t,n){return n in t||n in mn}})):e.proxy}function Ca(e,t=!0){return q(e)?e.displayName||e.name:e.name||t&&e.__name}function Pa(e){return q(e)&&"__vccOpts"in e}const Ue=(e,t)=>Sc(e,t,Rn);function Qi(e,t,n){const s=arguments.length;return s===2?re(t)&&!j(t)?Xn(t)?le(e,null,[t]):le(e,t):le(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Xn(n)&&(n=[n]),le(e,t,n))}const Ia="3.5.13";/**
|
||
* @vue/runtime-dom v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let Xs;const Xr=typeof window<"u"&&window.trustedTypes;if(Xr)try{Xs=Xr.createPolicy("vue",{createHTML:e=>e})}catch{}const Ji=Xs?e=>Xs.createHTML(e):e=>e,Na="http://www.w3.org/2000/svg",Ma="http://www.w3.org/1998/Math/MathML",it=typeof document<"u"?document:null,Yr=it&&it.createElement("template"),La={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?it.createElementNS(Na,e):t==="mathml"?it.createElementNS(Ma,e):n?it.createElement(e,{is:n}):it.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>it.createTextNode(e),createComment:e=>it.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>it.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Yr.innerHTML=Ji(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Yr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Da=Symbol("_vtc");function Ua(e,t,n){const s=e[Da];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Zr=Symbol("_vod"),Ba=Symbol("_vsh"),ka=Symbol(""),Fa=/(^|;)\s*display\s*:/;function ja(e,t,n){const s=e.style,r=fe(n);let o=!1;if(n&&!r){if(t)if(fe(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&Hn(s,l,"")}else for(const i in t)n[i]==null&&Hn(s,i,"");for(const i in n)i==="display"&&(o=!0),Hn(s,i,n[i])}else if(r){if(t!==n){const i=s[ka];i&&(n+=";"+i),s.cssText=n,o=Fa.test(n)}}else t&&e.removeAttribute("style");Zr in e&&(e[Zr]=o?s.display:"",e[Ba]&&(s.display="none"))}const eo=/\s*!important$/;function Hn(e,t,n){if(j(n))n.forEach(s=>Hn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Ha(e,t);eo.test(n)?e.setProperty(Lt(s),n.replace(eo,""),"important"):e[s]=n}}const to=["Webkit","Moz","ms"],Ns={};function Ha(e,t){const n=Ns[t];if(n)return n;let s=ke(t);if(s!=="filter"&&s in e)return Ns[t]=s;s=is(s);for(let r=0;r<to.length;r++){const o=to[r]+s;if(o in e)return Ns[t]=o}return t}const no="http://www.w3.org/1999/xlink";function so(e,t,n,s,r,o=Ql(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(no,t.slice(6,t.length)):e.setAttributeNS(no,t,n):n==null||o&&!Qo(n)?e.removeAttribute(t):e.setAttribute(t,o?"":tt(n)?String(n):n)}function ro(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Ji(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(l!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Qo(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(r||t)}function xt(e,t,n,s){e.addEventListener(t,n,s)}function $a(e,t,n,s){e.removeEventListener(t,n,s)}const oo=Symbol("_vei");function qa(e,t,n,s,r=null){const o=e[oo]||(e[oo]={}),i=o[t];if(s&&i)i.value=s;else{const[l,c]=Va(t);if(s){const a=o[t]=Wa(s,r);xt(e,l,a,c)}else i&&($a(e,l,i,c),o[t]=void 0)}}const io=/(?:Once|Passive|Capture)$/;function Va(e){let t;if(io.test(e)){t={};let s;for(;s=e.match(io);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Lt(e.slice(2)),t]}let Ms=0;const Ka=Promise.resolve(),za=()=>Ms||(Ka.then(()=>Ms=0),Ms=Date.now());function Wa(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;nt(Qa(s,n.value),t,5,[s])};return n.value=e,n.attached=za(),n}function Qa(e,t){if(j(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const lo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ja=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?Ua(e,s,i):t==="style"?ja(e,n,s):ss(t)?cr(t)||qa(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ga(e,t,s,i))?(ro(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&so(e,t,s,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!fe(s))?ro(e,ke(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),so(e,t,s,i))};function Ga(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&lo(t)&&q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return lo(t)&&fe(n)?!1:t in e}const Zn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return j(t)?n=>kn(t,n):t};function Xa(e){e.target.composing=!0}function co(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Wt=Symbol("_assign"),vt={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Wt]=Zn(r);const o=s||r.props&&r.props.type==="number";xt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=Kn(l)),e[Wt](l)}),n&&xt(e,"change",()=>{e.value=e.value.trim()}),t||(xt(e,"compositionstart",Xa),xt(e,"compositionend",co),xt(e,"change",co))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[Wt]=Zn(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?Kn(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c))}},Bn={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=rs(t);xt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?Kn(es(i)):es(i));e[Wt](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,vr(()=>{e._assigning=!1})}),e[Wt]=Zn(s)},mounted(e,{value:t}){ao(e,t)},beforeUpdate(e,t,n){e[Wt]=Zn(n)},updated(e,{value:t}){e._assigning||ao(e,t)}};function ao(e,t){const n=e.multiple,s=j(t);if(!(n&&!s&&!rs(t))){for(let r=0,o=e.options.length;r<o;r++){const i=e.options[r],l=es(i);if(n)if(s){const c=typeof l;c==="string"||c==="number"?i.selected=t.some(a=>String(a)===String(l)):i.selected=Gl(t,l)>-1}else i.selected=t.has(l);else if(cs(es(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function es(e){return"_value"in e?e._value:e.value}const Ya=["ctrl","shift","alt","meta"],Za={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)=>Ya.some(n=>e[`${n}Key`]&&!t.includes(n))},Gi=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let i=0;i<t.length;i++){const l=Za[t[i]];if(l&&l(r,t))return}return e(r,...o)})},eu=ve({patchProp:Ja},La);let uo;function tu(){return uo||(uo=ra(eu))}const nu=(...e)=>{const t=tu().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=ru(s);if(!r)return;const o=t._component;!q(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,su(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function su(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ru(e){return fe(e)?document.querySelector(e):e}/*!
|
||
* vue-router v4.5.0
|
||
* (c) 2024 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const Ht=typeof document<"u";function Xi(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ou(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Xi(e.default)}const Q=Object.assign;function Ls(e,t){const n={};for(const s in t){const r=t[s];n[s]=$e(r)?r.map(e):e(r)}return n}const bn=()=>{},$e=Array.isArray,Yi=/#/g,iu=/&/g,lu=/\//g,cu=/=/g,au=/\?/g,Zi=/\+/g,uu=/%5B/g,fu=/%5D/g,el=/%5E/g,du=/%60/g,tl=/%7B/g,pu=/%7C/g,nl=/%7D/g,hu=/%20/g;function Ar(e){return encodeURI(""+e).replace(pu,"|").replace(uu,"[").replace(fu,"]")}function mu(e){return Ar(e).replace(tl,"{").replace(nl,"}").replace(el,"^")}function Ys(e){return Ar(e).replace(Zi,"%2B").replace(hu,"+").replace(Yi,"%23").replace(iu,"%26").replace(du,"`").replace(tl,"{").replace(nl,"}").replace(el,"^")}function gu(e){return Ys(e).replace(cu,"%3D")}function yu(e){return Ar(e).replace(Yi,"%23").replace(au,"%3F")}function bu(e){return e==null?"":yu(e).replace(lu,"%2F")}function An(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const vu=/\/$/,_u=e=>e.replace(vu,"");function Ds(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l<c&&l>=0&&(c=-1),c>-1&&(s=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=Ru(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:An(i)}}function wu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function fo(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Su(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Yt(t.matched[s],n.matched[r])&&sl(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Yt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function sl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Eu(e[n],t[n]))return!1;return!0}function Eu(e,t){return $e(e)?po(e,t):$e(t)?po(t,e):e===t}function po(e,t){return $e(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Ru(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i<s.length;i++)if(l=s[i],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const ht={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var xn;(function(e){e.pop="pop",e.push="push"})(xn||(xn={}));var vn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(vn||(vn={}));function Au(e){if(!e)if(Ht){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),_u(e)}const xu=/^[^#]+#/;function Ou(e,t){return e.replace(xu,"#")+t}function Tu(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const gs=()=>({left:window.scrollX,top:window.scrollY});function Cu(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Tu(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ho(e,t){return(history.state?history.state.position-t:-1)+e}const Zs=new Map;function Pu(e,t){Zs.set(e,t)}function Iu(e){const t=Zs.get(e);return Zs.delete(e),t}let Nu=()=>location.protocol+"//"+location.host;function rl(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let l=r.includes(e.slice(o))?e.slice(o).length:1,c=r.slice(l);return c[0]!=="/"&&(c="/"+c),fo(c,"")}return fo(n,e)+s+r}function Mu(e,t,n,s){let r=[],o=[],i=null;const l=({state:h})=>{const g=rl(e,location),w=n.value,v=t.value;let y=0;if(h){if(n.value=g,t.value=h,i&&i===w){i=null;return}y=v?h.position-v.position:0}else s(g);r.forEach(b=>{b(n.value,w,{delta:y,type:xn.pop,direction:y?y>0?vn.forward:vn.back:vn.unknown})})};function c(){i=n.value}function a(h){r.push(h);const g=()=>{const w=r.indexOf(h);w>-1&&r.splice(w,1)};return o.push(g),g}function u(){const{history:h}=window;h.state&&h.replaceState(Q({},h.state,{scroll:gs()}),"")}function f(){for(const h of o)h();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:a,destroy:f}}function mo(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?gs():null}}function Lu(e){const{history:t,location:n}=window,s={value:rl(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,a,u){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:Nu()+e+c;try{t[u?"replaceState":"pushState"](a,"",h),r.value=a}catch(g){console.error(g),n[u?"replace":"assign"](h)}}function i(c,a){const u=Q({},t.state,mo(r.value.back,c,r.value.forward,!0),a,{position:r.value.position});o(c,u,!0),s.value=c}function l(c,a){const u=Q({},r.value,t.state,{forward:c,scroll:gs()});o(u.current,u,!0);const f=Q({},mo(s.value,c,null),{position:u.position+1},a);o(c,f,!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function Du(e){e=Au(e);const t=Lu(e),n=Mu(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Q({location:"",base:e,go:s,createHref:Ou.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Uu(e){return typeof e=="string"||e&&typeof e=="object"}function ol(e){return typeof e=="string"||typeof e=="symbol"}const il=Symbol("");var go;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(go||(go={}));function Zt(e,t){return Q(new Error,{type:e,[il]:!0},t)}function ot(e,t){return e instanceof Error&&il in e&&(t==null||!!(e.type&t))}const yo="[^/]+?",Bu={sensitive:!1,strict:!1,start:!0,end:!0},ku=/[.+*?^${}()[\]/\\]/g;function Fu(e,t){const n=Q({},Bu,t),s=[];let r=n.start?"^":"";const o=[];for(const a of e){const u=a.length?[]:[90];n.strict&&!a.length&&(r+="/");for(let f=0;f<a.length;f++){const h=a[f];let g=40+(n.sensitive?.25:0);if(h.type===0)f||(r+="/"),r+=h.value.replace(ku,"\\$&"),g+=40;else if(h.type===1){const{value:w,repeatable:v,optional:y,regexp:b}=h;o.push({name:w,repeatable:v,optional:y});const S=b||yo;if(S!==yo){g+=10;try{new RegExp(`(${S})`)}catch(P){throw new Error(`Invalid custom RegExp for param "${w}" (${S}): `+P.message)}}let R=v?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;f||(R=y&&a.length<2?`(?:/${R})`:"/"+R),y&&(R+="?"),r+=R,g+=20,y&&(g+=-8),v&&(g+=-20),S===".*"&&(g+=-50)}u.push(g)}s.push(u)}if(n.strict&&n.end){const a=s.length-1;s[a][s[a].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function l(a){const u=a.match(i),f={};if(!u)return null;for(let h=1;h<u.length;h++){const g=u[h]||"",w=o[h-1];f[w.name]=g&&w.repeatable?g.split("/"):g}return f}function c(a){let u="",f=!1;for(const h of e){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const g of h)if(g.type===0)u+=g.value;else if(g.type===1){const{value:w,repeatable:v,optional:y}=g,b=w in a?a[w]:"";if($e(b)&&!v)throw new Error(`Provided param "${w}" is an array but it is not repeatable (* or + modifiers)`);const S=$e(b)?b.join("/"):b;if(!S)if(y)h.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${w}"`);u+=S}}return u||"/"}return{re:i,score:s,keys:o,parse:l,stringify:c}}function ju(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function ll(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=ju(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(bo(s))return 1;if(bo(r))return-1}return r.length-s.length}function bo(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Hu={type:0,value:""},$u=/[a-zA-Z0-9_]/;function qu(e){if(!e)return[[]];if(e==="/")return[[Hu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${a}": ${g}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,a="",u="";function f(){a&&(n===0?o.push({type:0,value:a}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:a,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),a="")}function h(){a+=c}for(;l<e.length;){if(c=e[l++],c==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:c==="/"?(a&&f(),i()):c===":"?(f(),n=1):h();break;case 4:h(),n=s;break;case 1:c==="("?n=2:$u.test(c)?h():(f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case 2:c===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${a}"`),f(),i(),r}function Vu(e,t,n){const s=Fu(qu(e.path),n),r=Q(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Ku(e,t){const n=[],s=new Map;t=So({strict:!1,end:!0,sensitive:!1},t);function r(f){return s.get(f)}function o(f,h,g){const w=!g,v=_o(f);v.aliasOf=g&&g.record;const y=So(t,f),b=[v];if("alias"in f){const P=typeof f.alias=="string"?[f.alias]:f.alias;for(const H of P)b.push(_o(Q({},v,{components:g?g.record.components:v.components,path:H,aliasOf:g?g.record:v})))}let S,R;for(const P of b){const{path:H}=P;if(h&&H[0]!=="/"){const te=h.record.path,z=te[te.length-1]==="/"?"":"/";P.path=h.record.path+(H&&z+H)}if(S=Vu(P,h,y),g?g.alias.push(S):(R=R||S,R!==S&&R.alias.push(S),w&&f.name&&!wo(S)&&i(f.name)),cl(S)&&c(S),v.children){const te=v.children;for(let z=0;z<te.length;z++)o(te[z],S,g&&g.children[z])}g=g||S}return R?()=>{i(R)}:bn}function i(f){if(ol(f)){const h=s.get(f);h&&(s.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&s.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function l(){return n}function c(f){const h=Qu(f,n);n.splice(h,0,f),f.record.name&&!wo(f)&&s.set(f.record.name,f)}function a(f,h){let g,w={},v,y;if("name"in f&&f.name){if(g=s.get(f.name),!g)throw Zt(1,{location:f});y=g.record.name,w=Q(vo(h.params,g.keys.filter(R=>!R.optional).concat(g.parent?g.parent.keys.filter(R=>R.optional):[]).map(R=>R.name)),f.params&&vo(f.params,g.keys.map(R=>R.name))),v=g.stringify(w)}else if(f.path!=null)v=f.path,g=n.find(R=>R.re.test(v)),g&&(w=g.parse(v),y=g.record.name);else{if(g=h.name?s.get(h.name):n.find(R=>R.re.test(h.path)),!g)throw Zt(1,{location:f,currentLocation:h});y=g.record.name,w=Q({},h.params,f.params),v=g.stringify(w)}const b=[];let S=g;for(;S;)b.unshift(S.record),S=S.parent;return{name:y,path:v,params:w,matched:b,meta:Wu(b)}}e.forEach(f=>o(f));function u(){n.length=0,s.clear()}return{addRoute:o,resolve:a,removeRoute:i,clearRoutes:u,getRoutes:l,getRecordMatcher:r}}function vo(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function _o(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:zu(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 zu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function wo(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Wu(e){return e.reduce((t,n)=>Q(t,n.meta),{})}function So(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Qu(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;ll(e,t[o])<0?s=o:n=o+1}const r=Ju(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function Ju(e){let t=e;for(;t=t.parent;)if(cl(t)&&ll(e,t)===0)return t}function cl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Gu(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<s.length;++r){const o=s[r].replace(Zi," "),i=o.indexOf("="),l=An(i<0?o:o.slice(0,i)),c=i<0?null:An(o.slice(i+1));if(l in t){let a=t[l];$e(a)||(a=t[l]=[a]),a.push(c)}else t[l]=c}return t}function Eo(e){let t="";for(let n in e){const s=e[n];if(n=gu(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}($e(s)?s.map(o=>o&&Ys(o)):[s&&Ys(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Xu(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=$e(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Yu=Symbol(""),Ro=Symbol(""),ys=Symbol(""),xr=Symbol(""),er=Symbol("");function cn(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function yt(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const a=h=>{h===!1?c(Zt(4,{from:n,to:t})):h instanceof Error?c(h):Uu(h)?c(Zt(2,{from:t,to:h})):(i&&s.enterCallbacks[r]===i&&typeof h=="function"&&i.push(h),l())},u=o(()=>e.call(s&&s.instances[r],t,n,a));let f=Promise.resolve(u);e.length<3&&(f=f.then(a)),f.catch(h=>c(h))})}function Us(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Xi(c)){const u=(c.__vccOpts||c)[t];u&&o.push(yt(u,n,s,i,l,r))}else{let a=c();o.push(()=>a.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const f=ou(u)?u.default:u;i.mods[l]=u,i.components[l]=f;const g=(f.__vccOpts||f)[t];return g&&yt(g,n,s,i,l,r)()}))}}return o}function Ao(e){const t=He(ys),n=He(xr),s=Ue(()=>{const c=Ct(e.to);return t.resolve(c)}),r=Ue(()=>{const{matched:c}=s.value,{length:a}=c,u=c[a-1],f=n.matched;if(!u||!f.length)return-1;const h=f.findIndex(Yt.bind(null,u));if(h>-1)return h;const g=xo(c[a-2]);return a>1&&xo(u)===g&&f[f.length-1].path!==g?f.findIndex(Yt.bind(null,c[a-2])):h}),o=Ue(()=>r.value>-1&&sf(n.params,s.value.params)),i=Ue(()=>r.value>-1&&r.value===n.matched.length-1&&sl(n.params,s.value.params));function l(c={}){if(nf(c)){const a=t[Ct(e.replace)?"replace":"push"](Ct(e.to)).catch(bn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>a),a}return Promise.resolve()}return{route:s,href:Ue(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}function Zu(e){return e.length===1?e[0]:e}const ef=_i({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"}},useLink:Ao,setup(e,{slots:t}){const n=us(Ao(e)),{options:s}=He(ys),r=Ue(()=>({[Oo(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Oo(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Zu(t.default(n));return e.custom?o:Qi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),tf=ef;function nf(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){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function sf(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!$e(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function xo(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Oo=(e,t,n)=>e??t??n,rf=_i({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=He(er),r=Ue(()=>e.route||s.value),o=He(Ro,0),i=Ue(()=>{let a=Ct(o);const{matched:u}=r.value;let f;for(;(f=u[a])&&!f.components;)a++;return a}),l=Ue(()=>r.value.matched[i.value]);Fn(Ro,Ue(()=>i.value+1)),Fn(Yu,l),Fn(er,r);const c=ie();return gn(()=>[c.value,l.value,e.name],([a,u,f],[h,g,w])=>{u&&(u.instances[f]=a,g&&g!==u&&a&&a===h&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),a&&u&&(!g||!Yt(u,g)||!h)&&(u.enterCallbacks[f]||[]).forEach(v=>v(a))},{flush:"post"}),()=>{const a=r.value,u=e.name,f=l.value,h=f&&f.components[u];if(!h)return To(n.default,{Component:h,route:a});const g=f.props[u],w=g?g===!0?a.params:typeof g=="function"?g(a):g:null,y=Qi(h,Q({},w,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(f.instances[u]=null)},ref:c}));return To(n.default,{Component:y,route:a})||y}}});function To(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const of=rf;function lf(e){const t=Ku(e.routes,e),n=e.parseQuery||Gu,s=e.stringifyQuery||Eo,r=e.history,o=cn(),i=cn(),l=cn(),c=bc(ht);let a=ht;Ht&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ls.bind(null,x=>""+x),f=Ls.bind(null,bu),h=Ls.bind(null,An);function g(x,U){let L,B;return ol(x)?(L=t.getRecordMatcher(x),B=U):B=x,t.addRoute(B,L)}function w(x){const U=t.getRecordMatcher(x);U&&t.removeRoute(U)}function v(){return t.getRoutes().map(x=>x.record)}function y(x){return!!t.getRecordMatcher(x)}function b(x,U){if(U=Q({},U||c.value),typeof x=="string"){const m=Ds(n,x,U.path),A=t.resolve({path:m.path},U),T=r.createHref(m.fullPath);return Q(m,A,{params:h(A.params),hash:An(m.hash),redirectedFrom:void 0,href:T})}let L;if(x.path!=null)L=Q({},x,{path:Ds(n,x.path,U.path).path});else{const m=Q({},x.params);for(const A in m)m[A]==null&&delete m[A];L=Q({},x,{params:f(m)}),U.params=f(U.params)}const B=t.resolve(L,U),Z=x.hash||"";B.params=u(h(B.params));const d=wu(s,Q({},x,{hash:mu(Z),path:B.path})),p=r.createHref(d);return Q({fullPath:d,hash:Z,query:s===Eo?Xu(x.query):x.query||{}},B,{redirectedFrom:void 0,href:p})}function S(x){return typeof x=="string"?Ds(n,x,c.value.path):Q({},x)}function R(x,U){if(a!==x)return Zt(8,{from:U,to:x})}function P(x){return z(x)}function H(x){return P(Q(S(x),{replace:!0}))}function te(x){const U=x.matched[x.matched.length-1];if(U&&U.redirect){const{redirect:L}=U;let B=typeof L=="function"?L(x):L;return typeof B=="string"&&(B=B.includes("?")||B.includes("#")?B=S(B):{path:B},B.params={}),Q({query:x.query,hash:x.hash,params:B.path!=null?{}:x.params},B)}}function z(x,U){const L=a=b(x),B=c.value,Z=x.state,d=x.force,p=x.replace===!0,m=te(L);if(m)return z(Q(S(m),{state:typeof m=="object"?Q({},Z,m.state):Z,force:d,replace:p}),U||L);const A=L;A.redirectedFrom=U;let T;return!d&&Su(s,B,L)&&(T=Zt(16,{to:A,from:B}),ze(B,B,!0,!1)),(T?Promise.resolve(T):Ve(A,B)).catch(O=>ot(O)?ot(O,2)?O:pt(O):W(O,A,B)).then(O=>{if(O){if(ot(O,2))return z(Q({replace:p},S(O.to),{state:typeof O.to=="object"?Q({},Z,O.to.state):Z,force:d}),U||A)}else O=St(A,B,!0,p,Z);return dt(A,B,O),O})}function _e(x,U){const L=R(x,U);return L?Promise.reject(L):Promise.resolve()}function Fe(x){const U=Bt.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(x):x()}function Ve(x,U){let L;const[B,Z,d]=cf(x,U);L=Us(B.reverse(),"beforeRouteLeave",x,U);for(const m of B)m.leaveGuards.forEach(A=>{L.push(yt(A,x,U))});const p=_e.bind(null,x,U);return L.push(p),Le(L).then(()=>{L=[];for(const m of o.list())L.push(yt(m,x,U));return L.push(p),Le(L)}).then(()=>{L=Us(Z,"beforeRouteUpdate",x,U);for(const m of Z)m.updateGuards.forEach(A=>{L.push(yt(A,x,U))});return L.push(p),Le(L)}).then(()=>{L=[];for(const m of d)if(m.beforeEnter)if($e(m.beforeEnter))for(const A of m.beforeEnter)L.push(yt(A,x,U));else L.push(yt(m.beforeEnter,x,U));return L.push(p),Le(L)}).then(()=>(x.matched.forEach(m=>m.enterCallbacks={}),L=Us(d,"beforeRouteEnter",x,U,Fe),L.push(p),Le(L))).then(()=>{L=[];for(const m of i.list())L.push(yt(m,x,U));return L.push(p),Le(L)}).catch(m=>ot(m,8)?m:Promise.reject(m))}function dt(x,U,L){l.list().forEach(B=>Fe(()=>B(x,U,L)))}function St(x,U,L,B,Z){const d=R(x,U);if(d)return d;const p=U===ht,m=Ht?history.state:{};L&&(B||p?r.replace(x.fullPath,Q({scroll:p&&m&&m.scroll},Z)):r.push(x.fullPath,Z)),c.value=x,ze(x,U,L,p),pt()}let Ke;function sn(){Ke||(Ke=r.listen((x,U,L)=>{if(!Mn.listening)return;const B=b(x),Z=te(B);if(Z){z(Q(Z,{replace:!0,force:!0}),B).catch(bn);return}a=B;const d=c.value;Ht&&Pu(ho(d.fullPath,L.delta),gs()),Ve(B,d).catch(p=>ot(p,12)?p:ot(p,2)?(z(Q(S(p.to),{force:!0}),B).then(m=>{ot(m,20)&&!L.delta&&L.type===xn.pop&&r.go(-1,!1)}).catch(bn),Promise.reject()):(L.delta&&r.go(-L.delta,!1),W(p,B,d))).then(p=>{p=p||St(B,d,!1),p&&(L.delta&&!ot(p,8)?r.go(-L.delta,!1):L.type===xn.pop&&ot(p,20)&&r.go(-1,!1)),dt(B,d,p)}).catch(bn)}))}let Dt=cn(),de=cn(),Y;function W(x,U,L){pt(x);const B=de.list();return B.length?B.forEach(Z=>Z(x,U,L)):console.error(x),Promise.reject(x)}function st(){return Y&&c.value!==ht?Promise.resolve():new Promise((x,U)=>{Dt.add([x,U])})}function pt(x){return Y||(Y=!x,sn(),Dt.list().forEach(([U,L])=>x?L(x):U()),Dt.reset()),x}function ze(x,U,L,B){const{scrollBehavior:Z}=e;if(!Ht||!Z)return Promise.resolve();const d=!L&&Iu(ho(x.fullPath,0))||(B||!L)&&history.state&&history.state.scroll||null;return vr().then(()=>Z(x,U,d)).then(p=>p&&Cu(p)).catch(p=>W(p,x,U))}const Re=x=>r.go(x);let Ut;const Bt=new Set,Mn={currentRoute:c,listening:!0,addRoute:g,removeRoute:w,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:v,resolve:b,options:e,push:P,replace:H,go:Re,back:()=>Re(-1),forward:()=>Re(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:de.add,isReady:st,install(x){const U=this;x.component("RouterLink",tf),x.component("RouterView",of),x.config.globalProperties.$router=U,Object.defineProperty(x.config.globalProperties,"$route",{enumerable:!0,get:()=>Ct(c)}),Ht&&!Ut&&c.value===ht&&(Ut=!0,P(r.location).catch(Z=>{}));const L={};for(const Z in ht)Object.defineProperty(L,Z,{get:()=>c.value[Z],enumerable:!0});x.provide(ys,U),x.provide(xr,fi(L)),x.provide(er,c);const B=x.unmount;Bt.add(x),x.unmount=function(){Bt.delete(x),Bt.size<1&&(a=ht,Ke&&Ke(),Ke=null,c.value=ht,Ut=!1,Y=!1),B()}}};function Le(x){return x.reduce((U,L)=>U.then(()=>Fe(L)),Promise.resolve())}return Mn}function cf(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const l=t.matched[i];l&&(e.matched.find(a=>Yt(a,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(a=>Yt(a,c))||r.push(c))}return[n,s,r]}function en(){return He(ys)}function al(e){return He(xr)}const ft=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},af={},uf={class:"footer"};function ff(e,t){return oe(),ce("footer",uf,t[0]||(t[0]=[E("div",{class:"copyright"},"© 2025 小智 AI 管理后台",-1)]))}const df=ft(af,[["render",ff],["__scopeId","data-v-cf2abdb4"]]),pf={name:"App",components:{Footer:df}},hf={id:"app"},mf={class:"app-content"};function gf(e,t,n,s,r,o){const i=Gt("router-view"),l=Gt("Footer");return oe(),ce("div",hf,[E("div",mf,[le(i)]),le(l)])}const yf=ft(pf,[["render",gf]]);function ul(e,t){return function(){return e.apply(t,arguments)}}const{toString:bf}=Object.prototype,{getPrototypeOf:Or}=Object,bs=(e=>t=>{const n=bf.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qe=e=>(e=e.toLowerCase(),t=>bs(t)===e),vs=e=>t=>typeof t===e,{isArray:tn}=Array,On=vs("undefined");function vf(e){return e!==null&&!On(e)&&e.constructor!==null&&!On(e.constructor)&&Me(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const fl=qe("ArrayBuffer");function _f(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&fl(e.buffer),t}const wf=vs("string"),Me=vs("function"),dl=vs("number"),_s=e=>e!==null&&typeof e=="object",Sf=e=>e===!0||e===!1,$n=e=>{if(bs(e)!=="object")return!1;const t=Or(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ef=qe("Date"),Rf=qe("File"),Af=qe("Blob"),xf=qe("FileList"),Of=e=>_s(e)&&Me(e.pipe),Tf=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Me(e.append)&&((t=bs(e))==="formdata"||t==="object"&&Me(e.toString)&&e.toString()==="[object FormData]"))},Cf=qe("URLSearchParams"),[Pf,If,Nf,Mf]=["ReadableStream","Request","Response","Headers"].map(qe),Lf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function In(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),tn(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(s=0;s<i;s++)l=o[s],t.call(null,e[l],l,e)}}function pl(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,r;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const Ot=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,hl=e=>!On(e)&&e!==Ot;function tr(){const{caseless:e}=hl(this)&&this||{},t={},n=(s,r)=>{const o=e&&pl(t,r)||r;$n(t[o])&&$n(s)?t[o]=tr(t[o],s):$n(s)?t[o]=tr({},s):tn(s)?t[o]=s.slice():t[o]=s};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&In(arguments[s],n);return t}const Df=(e,t,n,{allOwnKeys:s}={})=>(In(t,(r,o)=>{n&&Me(r)?e[o]=ul(r,n):e[o]=r},{allOwnKeys:s}),e),Uf=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Bf=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},kf=(e,t,n,s)=>{let r,o,i;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Or(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ff=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},jf=e=>{if(!e)return null;if(tn(e))return e;let t=e.length;if(!dl(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Hf=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Or(Uint8Array)),$f=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},qf=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Vf=qe("HTMLFormElement"),Kf=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Co=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),zf=qe("RegExp"),ml=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};In(n,(r,o)=>{let i;(i=t(r,o,e))!==!1&&(s[o]=i||r)}),Object.defineProperties(e,s)},Wf=e=>{ml(e,(t,n)=>{if(Me(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(Me(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Qf=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return tn(e)?s(e):s(String(e).split(t)),n},Jf=()=>{},Gf=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Bs="abcdefghijklmnopqrstuvwxyz",Po="0123456789",gl={DIGIT:Po,ALPHA:Bs,ALPHA_DIGIT:Bs+Bs.toUpperCase()+Po},Xf=(e=16,t=gl.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function Yf(e){return!!(e&&Me(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Zf=e=>{const t=new Array(10),n=(s,r)=>{if(_s(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const o=tn(s)?[]:{};return In(s,(i,l)=>{const c=n(i,r+1);!On(c)&&(o[l]=c)}),t[r]=void 0,o}}return s};return n(e,0)},ed=qe("AsyncFunction"),td=e=>e&&(_s(e)||Me(e))&&Me(e.then)&&Me(e.catch),yl=((e,t)=>e?setImmediate:t?((n,s)=>(Ot.addEventListener("message",({source:r,data:o})=>{r===Ot&&o===n&&s.length&&s.shift()()},!1),r=>{s.push(r),Ot.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Me(Ot.postMessage)),nd=typeof queueMicrotask<"u"?queueMicrotask.bind(Ot):typeof process<"u"&&process.nextTick||yl,_={isArray:tn,isArrayBuffer:fl,isBuffer:vf,isFormData:Tf,isArrayBufferView:_f,isString:wf,isNumber:dl,isBoolean:Sf,isObject:_s,isPlainObject:$n,isReadableStream:Pf,isRequest:If,isResponse:Nf,isHeaders:Mf,isUndefined:On,isDate:Ef,isFile:Rf,isBlob:Af,isRegExp:zf,isFunction:Me,isStream:Of,isURLSearchParams:Cf,isTypedArray:Hf,isFileList:xf,forEach:In,merge:tr,extend:Df,trim:Lf,stripBOM:Uf,inherits:Bf,toFlatObject:kf,kindOf:bs,kindOfTest:qe,endsWith:Ff,toArray:jf,forEachEntry:$f,matchAll:qf,isHTMLForm:Vf,hasOwnProperty:Co,hasOwnProp:Co,reduceDescriptors:ml,freezeMethods:Wf,toObjectSet:Qf,toCamelCase:Kf,noop:Jf,toFiniteNumber:Gf,findKey:pl,global:Ot,isContextDefined:hl,ALPHABET:gl,generateString:Xf,isSpecCompliantForm:Yf,toJSONObject:Zf,isAsyncFn:ed,isThenable:td,setImmediate:yl,asap:nd};function V(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}_.inherits(V,Error,{toJSON:function(){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:_.toJSONObject(this.config),code:this.code,status:this.status}}});const bl=V.prototype,vl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{vl[e]={value:e}});Object.defineProperties(V,vl);Object.defineProperty(bl,"isAxiosError",{value:!0});V.from=(e,t,n,s,r,o)=>{const i=Object.create(bl);return _.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),V.call(i,e.message,t,n,s,r),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const sd=null;function nr(e){return _.isPlainObject(e)||_.isArray(e)}function _l(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function Io(e,t,n){return e?e.concat(t).map(function(r,o){return r=_l(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function rd(e){return _.isArray(e)&&!e.some(nr)}const od=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function ws(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,y){return!_.isUndefined(y[v])});const s=n.metaTokens,r=n.visitor||u,o=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(t);if(!_.isFunction(r))throw new TypeError("visitor must be a function");function a(w){if(w===null)return"";if(_.isDate(w))return w.toISOString();if(!c&&_.isBlob(w))throw new V("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(w)||_.isTypedArray(w)?c&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function u(w,v,y){let b=w;if(w&&!y&&typeof w=="object"){if(_.endsWith(v,"{}"))v=s?v:v.slice(0,-2),w=JSON.stringify(w);else if(_.isArray(w)&&rd(w)||(_.isFileList(w)||_.endsWith(v,"[]"))&&(b=_.toArray(w)))return v=_l(v),b.forEach(function(R,P){!(_.isUndefined(R)||R===null)&&t.append(i===!0?Io([v],P,o):i===null?v:v+"[]",a(R))}),!1}return nr(w)?!0:(t.append(Io(y,v,o),a(w)),!1)}const f=[],h=Object.assign(od,{defaultVisitor:u,convertValue:a,isVisitable:nr});function g(w,v){if(!_.isUndefined(w)){if(f.indexOf(w)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(w),_.forEach(w,function(b,S){(!(_.isUndefined(b)||b===null)&&r.call(t,b,_.isString(S)?S.trim():S,v,h))===!0&&g(b,v?v.concat(S):[S])}),f.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return g(e),t}function No(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Tr(e,t){this._pairs=[],e&&ws(e,this,t)}const wl=Tr.prototype;wl.append=function(t,n){this._pairs.push([t,n])};wl.toString=function(t){const n=t?function(s){return t.call(this,s,No)}:No;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function id(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Sl(e,t,n){if(!t)return e;const s=n&&n.encode||id;_.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let o;if(r?o=r(t,n):o=_.isURLSearchParams(t)?t.toString():new Tr(t,n).toString(s),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Mo{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_.forEach(this.handlers,function(s){s!==null&&t(s)})}}const El={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ld=typeof URLSearchParams<"u"?URLSearchParams:Tr,cd=typeof FormData<"u"?FormData:null,ad=typeof Blob<"u"?Blob:null,ud={isBrowser:!0,classes:{URLSearchParams:ld,FormData:cd,Blob:ad},protocols:["http","https","file","blob","url","data"]},Cr=typeof window<"u"&&typeof document<"u",sr=typeof navigator=="object"&&navigator||void 0,fd=Cr&&(!sr||["ReactNative","NativeScript","NS"].indexOf(sr.product)<0),dd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",pd=Cr&&window.location.href||"http://localhost",hd=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Cr,hasStandardBrowserEnv:fd,hasStandardBrowserWebWorkerEnv:dd,navigator:sr,origin:pd},Symbol.toStringTag,{value:"Module"})),ye={...hd,...ud};function md(e,t){return ws(e,new ye.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,o){return ye.isNode&&_.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function gd(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function yd(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s<r;s++)o=n[s],t[o]=e[o];return t}function Rl(e){function t(n,s,r,o){let i=n[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=o>=n.length;return i=!i&&_.isArray(r)?r.length:i,c?(_.hasOwnProp(r,i)?r[i]=[r[i],s]:r[i]=s,!l):((!r[i]||!_.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&_.isArray(r[i])&&(r[i]=yd(r[i])),!l)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(s,r)=>{t(gd(s),r,n,0)}),n}return null}function bd(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Nn={transitional:El,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=_.isObject(t);if(o&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return r?JSON.stringify(Rl(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t)||_.isReadableStream(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return md(t,this.formSerializer).toString();if((l=_.isFileList(t))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return ws(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),bd(t)):t}],transformResponse:[function(t){const n=this.transitional||Nn.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(_.isResponse(t)||_.isReadableStream(t))return t;if(t&&_.isString(t)&&(s&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?V.from(l,V.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ye.classes.FormData,Blob:ye.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],e=>{Nn.headers[e]={}});const vd=_.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"]),_d=e=>{const t={};let n,s,r;return e&&e.split(`
|
||
`).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||t[n]&&vd[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Lo=Symbol("internals");function an(e){return e&&String(e).trim().toLowerCase()}function qn(e){return e===!1||e==null?e:_.isArray(e)?e.map(qn):String(e)}function wd(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Sd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ks(e,t,n,s,r){if(_.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!_.isString(t)){if(_.isString(s))return t.indexOf(s)!==-1;if(_.isRegExp(s))return s.test(t)}}function Ed(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Rd(e,t){const n=_.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,o,i){return this[s].call(this,t,r,o,i)},configurable:!0})})}let xe=class{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(l,c,a){const u=an(c);if(!u)throw new Error("header name must be a non-empty string");const f=_.findKey(r,u);(!f||r[f]===void 0||a===!0||a===void 0&&r[f]!==!1)&&(r[f||c]=qn(l))}const i=(l,c)=>_.forEach(l,(a,u)=>o(a,u,c));if(_.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(_.isString(t)&&(t=t.trim())&&!Sd(t))i(_d(t),n);else if(_.isHeaders(t))for(const[l,c]of t.entries())o(c,l,s);else t!=null&&o(n,t,s);return this}get(t,n){if(t=an(t),t){const s=_.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return wd(r);if(_.isFunction(n))return n.call(this,r,s);if(_.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=an(t),t){const s=_.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||ks(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(i){if(i=an(i),i){const l=_.findKey(s,i);l&&(!n||ks(s,s[l],l,n))&&(delete s[l],r=!0)}}return _.isArray(t)?t.forEach(o):o(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const o=n[s];(!t||ks(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){const n=this,s={};return _.forEach(this,(r,o)=>{const i=_.findKey(s,o);if(i){n[i]=qn(r),delete n[o];return}const l=t?Ed(o):String(o).trim();l!==o&&delete n[o],n[l]=qn(r),s[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return _.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&_.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[Lo]=this[Lo]={accessors:{}}).accessors,r=this.prototype;function o(i){const l=an(i);s[l]||(Rd(r,i),s[l]=!0)}return _.isArray(t)?t.forEach(o):o(t),this}};xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_.reduceDescriptors(xe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});_.freezeMethods(xe);function Fs(e,t){const n=this||Nn,s=t||n,r=xe.from(s.headers);let o=s.data;return _.forEach(e,function(l){o=l.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function Al(e){return!!(e&&e.__CANCEL__)}function nn(e,t,n){V.call(this,e??"canceled",V.ERR_CANCELED,t,n),this.name="CanceledError"}_.inherits(nn,V,{__CANCEL__:!0});function xl(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new V("Request failed with status code "+n.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Ad(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xd(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(c){const a=Date.now(),u=s[o];i||(i=a),n[r]=c,s[r]=a;let f=o,h=0;for(;f!==r;)h+=n[f++],f=f%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),a-i<t)return;const g=u&&a-u;return g?Math.round(h*1e3/g):void 0}}function Od(e,t){let n=0,s=1e3/t,r,o;const i=(a,u=Date.now())=>{n=u,r=null,o&&(clearTimeout(o),o=null),e.apply(null,a)};return[(...a)=>{const u=Date.now(),f=u-n;f>=s?i(a,u):(r=a,o||(o=setTimeout(()=>{o=null,i(r)},s-f)))},()=>r&&i(r)]}const ts=(e,t,n=3)=>{let s=0;const r=xd(50,250);return Od(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,c=i-s,a=r(c),u=i<=l;s=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:a||void 0,estimated:a&&l&&u?(l-i)/a:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},Do=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Uo=e=>(...t)=>_.asap(()=>e(...t)),Td=ye.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ye.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ye.origin),ye.navigator&&/(msie|trident)/i.test(ye.navigator.userAgent)):()=>!0,Cd=ye.hasStandardBrowserEnv?{write(e,t,n,s,r,o){const i=[e+"="+encodeURIComponent(t)];_.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),_.isString(s)&&i.push("path="+s),_.isString(r)&&i.push("domain="+r),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Pd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Id(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ol(e,t){return e&&!Pd(t)?Id(e,t):t}const Bo=e=>e instanceof xe?{...e}:e;function Mt(e,t){t=t||{};const n={};function s(a,u,f,h){return _.isPlainObject(a)&&_.isPlainObject(u)?_.merge.call({caseless:h},a,u):_.isPlainObject(u)?_.merge({},u):_.isArray(u)?u.slice():u}function r(a,u,f,h){if(_.isUndefined(u)){if(!_.isUndefined(a))return s(void 0,a,f,h)}else return s(a,u,f,h)}function o(a,u){if(!_.isUndefined(u))return s(void 0,u)}function i(a,u){if(_.isUndefined(u)){if(!_.isUndefined(a))return s(void 0,a)}else return s(void 0,u)}function l(a,u,f){if(f in t)return s(a,u);if(f in e)return s(void 0,a)}const c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(a,u,f)=>r(Bo(a),Bo(u),f,!0)};return _.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=c[u]||r,h=f(e[u],t[u],u);_.isUndefined(h)&&f!==l||(n[u]=h)}),n}const Tl=e=>{const t=Mt({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:o,headers:i,auth:l}=t;t.headers=i=xe.from(i),t.url=Sl(Ol(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(_.isFormData(n)){if(ye.hasStandardBrowserEnv||ye.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[a,...u]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([a||"multipart/form-data",...u].join("; "))}}if(ye.hasStandardBrowserEnv&&(s&&_.isFunction(s)&&(s=s(t)),s||s!==!1&&Td(t.url))){const a=r&&o&&Cd.read(o);a&&i.set(r,a)}return t},Nd=typeof XMLHttpRequest<"u",Md=Nd&&function(e){return new Promise(function(n,s){const r=Tl(e);let o=r.data;const i=xe.from(r.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:a}=r,u,f,h,g,w;function v(){g&&g(),w&&w(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(r.method.toUpperCase(),r.url,!0),y.timeout=r.timeout;function b(){if(!y)return;const R=xe.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),H={data:!l||l==="text"||l==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:R,config:e,request:y};xl(function(z){n(z),v()},function(z){s(z),v()},H),y=null}"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(b)},y.onabort=function(){y&&(s(new V("Request aborted",V.ECONNABORTED,e,y)),y=null)},y.onerror=function(){s(new V("Network Error",V.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let P=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const H=r.transitional||El;r.timeoutErrorMessage&&(P=r.timeoutErrorMessage),s(new V(P,H.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,e,y)),y=null},o===void 0&&i.setContentType(null),"setRequestHeader"in y&&_.forEach(i.toJSON(),function(P,H){y.setRequestHeader(H,P)}),_.isUndefined(r.withCredentials)||(y.withCredentials=!!r.withCredentials),l&&l!=="json"&&(y.responseType=r.responseType),a&&([h,w]=ts(a,!0),y.addEventListener("progress",h)),c&&y.upload&&([f,g]=ts(c),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(u=R=>{y&&(s(!R||R.type?new nn(null,e,y):R),y.abort(),y=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const S=Ad(r.url);if(S&&ye.protocols.indexOf(S)===-1){s(new V("Unsupported protocol "+S+":",V.ERR_BAD_REQUEST,e));return}y.send(o||null)})},Ld=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const o=function(a){if(!r){r=!0,l();const u=a instanceof Error?a:this.reason;s.abort(u instanceof V?u:new nn(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new V(`timeout ${t} of ms exceeded`,V.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(o):a.removeEventListener("abort",o)}),e=null)};e.forEach(a=>a.addEventListener("abort",o));const{signal:c}=s;return c.unsubscribe=()=>_.asap(l),c}},Dd=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,r;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},Ud=async function*(e,t){for await(const n of Bd(e))yield*Dd(n,t)},Bd=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},ko=(e,t,n,s)=>{const r=Ud(e,t);let o=0,i,l=c=>{i||(i=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:a,value:u}=await r.next();if(a){l(),c.close();return}let f=u.byteLength;if(n){let h=o+=f;n(h)}c.enqueue(new Uint8Array(u))}catch(a){throw l(a),a}},cancel(c){return l(c),r.return()}},{highWaterMark:2})},Ss=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Cl=Ss&&typeof ReadableStream=="function",kd=Ss&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Pl=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Fd=Cl&&Pl(()=>{let e=!1;const t=new Request(ye.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Fo=64*1024,rr=Cl&&Pl(()=>_.isReadableStream(new Response("").body)),ns={stream:rr&&(e=>e.body)};Ss&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ns[t]&&(ns[t]=_.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new V(`Response type '${t}' is not supported`,V.ERR_NOT_SUPPORT,s)})})})(new Response);const jd=async e=>{if(e==null)return 0;if(_.isBlob(e))return e.size;if(_.isSpecCompliantForm(e))return(await new Request(ye.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(_.isArrayBufferView(e)||_.isArrayBuffer(e))return e.byteLength;if(_.isURLSearchParams(e)&&(e=e+""),_.isString(e))return(await kd(e)).byteLength},Hd=async(e,t)=>{const n=_.toFiniteNumber(e.getContentLength());return n??jd(t)},$d=Ss&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:o,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:a,headers:u,withCredentials:f="same-origin",fetchOptions:h}=Tl(e);a=a?(a+"").toLowerCase():"text";let g=Ld([r,o&&o.toAbortSignal()],i),w;const v=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let y;try{if(c&&Fd&&n!=="get"&&n!=="head"&&(y=await Hd(u,s))!==0){let H=new Request(t,{method:"POST",body:s,duplex:"half"}),te;if(_.isFormData(s)&&(te=H.headers.get("content-type"))&&u.setContentType(te),H.body){const[z,_e]=Do(y,ts(Uo(c)));s=ko(H.body,Fo,z,_e)}}_.isString(f)||(f=f?"include":"omit");const b="credentials"in Request.prototype;w=new Request(t,{...h,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:b?f:void 0});let S=await fetch(w);const R=rr&&(a==="stream"||a==="response");if(rr&&(l||R&&v)){const H={};["status","statusText","headers"].forEach(Fe=>{H[Fe]=S[Fe]});const te=_.toFiniteNumber(S.headers.get("content-length")),[z,_e]=l&&Do(te,ts(Uo(l),!0))||[];S=new Response(ko(S.body,Fo,z,()=>{_e&&_e(),v&&v()}),H)}a=a||"text";let P=await ns[_.findKey(ns,a)||"text"](S,e);return!R&&v&&v(),await new Promise((H,te)=>{xl(H,te,{data:P,headers:xe.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:w})})}catch(b){throw v&&v(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new V("Network Error",V.ERR_NETWORK,e,w),{cause:b.cause||b}):V.from(b,b&&b.code,e,w)}}),or={http:sd,xhr:Md,fetch:$d};_.forEach(or,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const jo=e=>`- ${e}`,qd=e=>_.isFunction(e)||e===null||e===!1,Il={getAdapter:e=>{e=_.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let o=0;o<t;o++){n=e[o];let i;if(s=n,!qd(n)&&(s=or[(i=String(n)).toLowerCase()],s===void 0))throw new V(`Unknown adapter '${i}'`);if(s)break;r[i||"#"+o]=s}if(!s){const o=Object.entries(r).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
|
||
`+o.map(jo).join(`
|
||
`):" "+jo(o[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return s},adapters:or};function js(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new nn(null,e)}function Ho(e){return js(e),e.headers=xe.from(e.headers),e.data=Fs.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Il.getAdapter(e.adapter||Nn.adapter)(e).then(function(s){return js(e),s.data=Fs.call(e,e.transformResponse,s),s.headers=xe.from(s.headers),s},function(s){return Al(s)||(js(e),s&&s.response&&(s.response.data=Fs.call(e,e.transformResponse,s.response),s.response.headers=xe.from(s.response.headers))),Promise.reject(s)})}const Nl="1.7.9",Es={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Es[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const $o={};Es.transitional=function(t,n,s){function r(o,i){return"[Axios v"+Nl+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,l)=>{if(t===!1)throw new V(r(i," has been removed"+(n?" in "+n:"")),V.ERR_DEPRECATED);return n&&!$o[i]&&($o[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};Es.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function Vd(e,t,n){if(typeof e!="object")throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=t[o];if(i){const l=e[o],c=l===void 0||i(l,o,e);if(c!==!0)throw new V("option "+o+" must be "+c,V.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new V("Unknown option "+o,V.ERR_BAD_OPTION)}}const Vn={assertOptions:Vd,validators:Es},Xe=Vn.validators;let Pt=class{constructor(t){this.defaults=t,this.interceptors={request:new Mo,response:new Mo}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?o&&!String(s.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(s.stack+=`
|
||
`+o):s.stack=o}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mt(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&Vn.assertOptions(s,{silentJSONParsing:Xe.transitional(Xe.boolean),forcedJSONParsing:Xe.transitional(Xe.boolean),clarifyTimeoutError:Xe.transitional(Xe.boolean)},!1),r!=null&&(_.isFunction(r)?n.paramsSerializer={serialize:r}:Vn.assertOptions(r,{encode:Xe.function,serialize:Xe.function},!0)),Vn.assertOptions(n,{baseUrl:Xe.spelling("baseURL"),withXsrfToken:Xe.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&_.merge(o.common,o[n.method]);o&&_.forEach(["delete","get","head","post","put","patch","common"],w=>{delete o[w]}),n.headers=xe.concat(i,o);const l=[];let c=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(c=c&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});const a=[];this.interceptors.response.forEach(function(v){a.push(v.fulfilled,v.rejected)});let u,f=0,h;if(!c){const w=[Ho.bind(this),void 0];for(w.unshift.apply(w,l),w.push.apply(w,a),h=w.length,u=Promise.resolve(n);f<h;)u=u.then(w[f++],w[f++]);return u}h=l.length;let g=n;for(f=0;f<h;){const w=l[f++],v=l[f++];try{g=w(g)}catch(y){v.call(this,y);break}}try{u=Ho.call(this,g)}catch(w){return Promise.reject(w)}for(f=0,h=a.length;f<h;)u=u.then(a[f++],a[f++]);return u}getUri(t){t=Mt(this.defaults,t);const n=Ol(t.baseURL,t.url);return Sl(n,t.params,t.paramsSerializer)}};_.forEach(["delete","get","head","options"],function(t){Pt.prototype[t]=function(n,s){return this.request(Mt(s||{},{method:t,url:n,data:(s||{}).data}))}});_.forEach(["post","put","patch"],function(t){function n(s){return function(o,i,l){return this.request(Mt(l||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Pt.prototype[t]=n(),Pt.prototype[t+"Form"]=n(!0)});let Kd=class Ml{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const s=this;this.promise.then(r=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(l=>{s.subscribe(l),o=l}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,l){s.reason||(s.reason=new nn(o,i,l),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ml(function(r){t=r}),cancel:t}}};function zd(e){return function(n){return e.apply(null,n)}}function Wd(e){return _.isObject(e)&&e.isAxiosError===!0}const ir={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};Object.entries(ir).forEach(([e,t])=>{ir[t]=e});function Ll(e){const t=new Pt(e),n=ul(Pt.prototype.request,t);return _.extend(n,Pt.prototype,t,{allOwnKeys:!0}),_.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Ll(Mt(e,r))},n}const ue=Ll(Nn);ue.Axios=Pt;ue.CanceledError=nn;ue.CancelToken=Kd;ue.isCancel=Al;ue.VERSION=Nl;ue.toFormData=ws;ue.AxiosError=V;ue.Cancel=ue.CanceledError;ue.all=function(t){return Promise.all(t)};ue.spread=zd;ue.isAxiosError=Wd;ue.mergeConfig=Mt;ue.AxiosHeaders=xe;ue.formToJSON=e=>Rl(_.isHTMLForm(e)?new FormData(e):e);ue.getAdapter=Il.getAdapter;ue.HttpStatusCode=ir;ue.default=ue;const{Axios:mh,AxiosError:gh,CanceledError:yh,isCancel:bh,CancelToken:vh,VERSION:_h,all:wh,Cancel:Sh,isAxiosError:Eh,spread:Rh,toFormData:Ah,AxiosHeaders:xh,HttpStatusCode:Oh,formToJSON:Th,getAdapter:Ch,mergeConfig:Ph}=ue,Qd=()=>{const e=window.location.protocol,t=window.location.hostname,n=window.location.port;return`${e}//${t}${n?`:${n}`:""}`},Dl=Qd(),at=ue.create({baseURL:Dl,headers:{"Content-Type":"application/json"},timeout:1e4});at.interceptors.request.use(e=>{const t=localStorage.getItem("session_id");return t&&(e.headers.Authorization=t),e});at.interceptors.response.use(e=>e,e=>{if(!e.response||e.code==="ERR_NETWORK"||e.code==="ECONNABORTED"){localStorage.removeItem("session_id"),localStorage.removeItem("isLoggedIn");const t=e.code==="ECONNABORTED"?"服务器响应超时":"无法连接到服务器,请检查服务器是否正常运行";return window.location.pathname!=="/login"&&(window.location.href="/login"),Promise.reject(new Error(t))}return e.response&&e.response.status===401&&(localStorage.removeItem("session_id"),localStorage.removeItem("isLoggedIn"),window.location.href="/login"),Promise.reject(e)});const Jd={class:"login-container"},Gd={class:"form-group"},Xd={class:"form-group"},Yd=["disabled"],Zd={__name:"Login",setup(e){const t=en(),n=ie(""),s=ie(""),r=ie(!1),o=async()=>{if(!n.value||!s.value){alert("请输入用户名和密码!");return}r.value=!0;try{const l=(await at.post("/api/login",{username:n.value,password:s.value})).data;l.success?(localStorage.setItem("session_id",l.session_id),localStorage.setItem("isLoggedIn","true"),t.push("/panel")):alert(l.message||"登录失败")}catch(i){console.error("Login error:",i),alert("登录失败,请检查网络连接")}finally{r.value=!1}};return(i,l)=>{const c=Gt("router-link");return oe(),ce("div",Jd,[l[6]||(l[6]=E("h1",null,"登录",-1)),E("form",{onSubmit:Gi(o,["prevent"])},[E("div",Gd,[l[2]||(l[2]=E("label",{for:"username"},"用户名",-1)),De(E("input",{type:"text","onUpdate:modelValue":l[0]||(l[0]=a=>n.value=a),id:"username",required:""},null,512),[[vt,n.value]])]),E("div",Xd,[l[3]||(l[3]=E("label",{for:"password"},"密码",-1)),De(E("input",{type:"password","onUpdate:modelValue":l[1]||(l[1]=a=>s.value=a),id:"password",required:""},null,512),[[vt,s.value]])]),E("button",{type:"submit",disabled:r.value},"登录",8,Yd)],32),E("p",null,[l[5]||(l[5]=ae("还没注册账户? ")),le(c,{to:"/register"},{default:Jt(()=>l[4]||(l[4]=[ae("点击注册")])),_:1})])])}}},ep=ft(Zd,[["__scopeId","data-v-c37183b8"]]),tp={class:"header"},np={class:"nav"},sp={__name:"NavBar",setup(e){const t=en();al();const n=s=>{t.push(s)};return(s,r)=>(oe(),ce("header",tp,[E("div",{class:Qt(["nav-item",{active:s.$route.path==="/"}]),onClick:r[0]||(r[0]=o=>n("/"))},"小智 AI",2),E("nav",np,[E("div",{class:Qt(["nav-item",{active:s.$route.path==="/panel"}]),onClick:r[1]||(r[1]=o=>n("/panel"))},r[2]||(r[2]=[E("i",{class:"icon-device"},null,-1),ae(" 设备管理 ")]),2)])]))}},Pr=ft(sp,[["__scopeId","data-v-6b570ec4"]]),rp={class:"device-card"},op={class:"device-header"},ip={class:"device-id"},lp={class:"note"},cp={class:"device-details"},ap={class:"device-type"},up={class:"device-role"},fp={class:"device-modules"},dp={class:"module-item"},pp={class:"module-item"},hp={class:"last-activity"},mp={class:"device-actions"},gp={__name:"DeviceCard",props:{deviceId:String,deviceNote:String,deviceType:{type:String,default:"未知型号(待实现)"},lastActivity:{type:String,default:"3 天前"},selectedModules:{type:Object,default:()=>({LLM:"-",TTS:"-",ASR:"-",VAD:"-"})},deviceConfig:{type:Object,default:()=>({})}},emits:["configure","voiceprint","history","delete"],setup(e,{emit:t}){const n=e,s=Ue(()=>{var l;return((l=n.deviceConfig)==null?void 0:l.nickname)||"小智"});gn(()=>n.selectedModules,l=>{n.deviceId&&localStorage.setItem(`deviceConfig_${n.deviceId}`,JSON.stringify({selected_module:l}))},{deep:!0}),ie(!1);const r=t,o=()=>{confirm(`确认要删除此设备吗?
|
||
|
||
警告:删除后设备所有配置将不可恢复!`)&&r("delete")},i=()=>{n.deviceId&&n.deviceConfig&&localStorage.setItem(`deviceConfig_${n.deviceId}`,JSON.stringify({selected_module:n.selectedModules,prompt:n.deviceConfig.prompt||"",nickname:n.deviceConfig.nickname||"小智"})),r("configure")};return(l,c)=>{var a,u;return oe(),ce("div",rp,[E("div",op,[E("h2",ip,[ae(pe(e.deviceId)+" ",1),E("span",lp,"["+pe(e.deviceNote||"备注")+"]",1)])]),E("div",cp,[E("p",ap,"设备型号:"+pe(e.deviceType),1),E("p",up,"角色昵称:"+pe(s.value),1),E("p",fp,[c[2]||(c[2]=ae(" 当前模型: ")),E("span",dp,"LLM: "+pe(((a=e.selectedModules)==null?void 0:a.LLM)||"-"),1),E("span",pp,"TTS: "+pe(((u=e.selectedModules)==null?void 0:u.TTS)||"-"),1)]),E("p",hp,"最近对话:"+pe(e.lastActivity),1)]),E("div",mp,[E("button",{class:"action-btn primary",onClick:i},"配置角色"),E("button",{class:"action-btn",onClick:c[0]||(c[0]=f=>l.$emit("voiceprint"))},"声纹识别"),E("button",{class:"action-btn",onClick:c[1]||(c[1]=f=>l.$emit("history"))},"历史对话"),E("div",{class:"delete-container"},[E("button",{class:"action-btn danger",onClick:o},c[3]||(c[3]=[E("i",{class:"icon-delete"},null,-1),ae(" 删除设备 ")])),c[4]||(c[4]=E("div",{class:"delete-warning"},"删除后设备配置将不可恢复",-1))])])])}}},yp=ft(gp,[["__scopeId","data-v-07ca7924"]]),bp={class:"app"},vp={class:"content"},_p={class:"page-header"},wp={class:"header-left"},Sp={class:"breadcrumb"},Ep={key:0,class:"dialog-overlay"},Rp={class:"dialog"},Ap={class:"form-group"},xp={class:"dialog-buttons"},Op=["disabled"],Tp={key:1,class:"device-list"},Cp={__name:"panel",setup(e){const t=en(),n=ie([]),s=ie(!1),r=ie(""),o=ie(!1),i=v=>{r.value=v.target.value.replace(/\D/g,"").slice(0,6)},l=async()=>{var v,y;if(r.value.length!==6){alert("请输入6位数字认证码");return}o.value=!0;try{const b=await at.post("/api/config/bind_device",{auth_code:r.value});if(b.data.success)alert("设备绑定成功"),s.value=!1,r.value="",c();else throw new Error(b.data.message)}catch(b){alert(((y=(v=b.response)==null?void 0:v.data)==null?void 0:y.message)||b.message||"绑定失败")}finally{o.value=!1}},c=async()=>{try{const v=await at.get("/api/config/devices");if(v.data.success){const y=Object.entries(v.data.data).map(([b,S])=>({id:b,config:S,type:"面包板(WiFi)",version:"0.9.9",lastActivity:"3 天前",note:""}));n.value=y}else throw new Error(v.data.message||"加载设备失败")}catch(v){console.error("Error loading devices:",v);const y=v.message||"加载设备失败,请检查网络连接";alert(y)}},a=v=>{if(!v)return"从未对话";const y=Date.now(),b=v*1e3,S=Math.floor((y-b)/(1e3*60));if(S<60)return`${S} 分钟前`;const R=Math.floor(S/60);return R<24?`${R} 小时前`:`${Math.floor(R/24)} 天前`},u=v=>{localStorage.setItem(`deviceConfig_${v.id}`,JSON.stringify({selected_module:v.config.selected_module||{},prompt:v.config.prompt||"",nickname:v.config.nickname||"小智"})),t.push(`/role-setting/${v.id}`)},f=v=>{console.log("Voiceprint device:",v.id)},h=v=>{console.log("History device:",v.id)},g=async v=>{try{const y=await at.post("/api/config/delete_device",{device_id:v.id});if(y.data.success)n.value=n.value.filter(b=>b.id!==v.id),alert("设备已删除");else throw new Error(y.data.message||"删除失败")}catch(y){console.error("Error deleting device:",y),alert("删除设备失败: "+y.message)}},w=v=>{v==="home"&&t.push("/")};return Sr(c),(v,y)=>{const b=Gt("router-link");return oe(),ce("div",bp,[le(Pr,{"current-tab":"device",onTabChange:w}),E("main",vp,[E("div",_p,[E("div",wp,[E("div",Sp,[le(b,{to:"/"},{default:Jt(()=>y[3]||(y[3]=[ae("首页")])),_:1}),y[4]||(y[4]=ae(" / ")),y[5]||(y[5]=E("span",null,"设备管理",-1))])])]),E("button",{class:"add-btn",onClick:y[0]||(y[0]=S=>s.value=!0)},y[6]||(y[6]=[E("i",{class:"icon-plus"},null,-1),ae("添加设备 ")])),s.value?(oe(),ce("div",Ep,[E("div",Rp,[y[8]||(y[8]=E("h3",null,"绑定新设备",-1)),E("div",Ap,[y[7]||(y[7]=E("label",null,"请输入6位认证码:",-1)),De(E("input",{type:"text","onUpdate:modelValue":y[1]||(y[1]=S=>r.value=S),maxlength:"6",pattern:"\\d*",placeholder:"请输入6位数字认证码",onInput:i},null,544),[[vt,r.value]])]),E("div",xp,[E("button",{onClick:y[2]||(y[2]=S=>s.value=!1)},"取消"),E("button",{class:"primary",onClick:l,disabled:r.value.length!==6||o.value},pe(o.value?"绑定中...":"确认绑定"),9,Op)])])])):Qr("",!0),n.value.length>0?(oe(),ce("div",Tp,[(oe(!0),ce(Ee,null,jt(n.value,S=>(oe(),Vi(yp,{key:S.id,"device-id":S.id,"device-note":S.note,"device-type":S.type,"last-activity":a(S.config.last_chat_time),"selected-modules":S.config.selected_module,"device-config":S.config,onConfigure:R=>u(S),onVoiceprint:R=>f(S),onHistory:R=>h(S),onDelete:R=>g(S)},null,8,["device-id","device-note","device-type","last-activity","selected-modules","device-config","onConfigure","onVoiceprint","onHistory","onDelete"]))),128))])):Qr("",!0)])])}}},Pp=ft(Cp,[["__scopeId","data-v-106f3754"]]),Ip="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJ0AAAC6CAYAAAC0j09YAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAzGSURBVHhe7Z1ZjE1bGscND6YgnoUgXoUQ4ZWHjnQkt+PB0OmEJ0LMQuOWoWliiDQdU3e07hhiiDZdU2K4qWsWMzELpUoN1KBKuemu697V/kvvtrrqK7XX2fusvfY5/4df6jhn7zV9v/2tdfZwtPrw4YMixCWUjjiH0hHnUDriHEpHnEPpiHMoHXEOpSPOoXTEOZSOOIfSEedQOuIcSkecQ+mIcygdcQ6lI86hdMQ5lI44h9IR51A6C24/+Zf68z9/VjM3/qLBa7wnbUuah9KF5PubDVq03xQoNeL3n/nm28/yfX/z3+I+RIbShQDZrOBvP6tfz1fqV3P/H7yHz5jxwkPpQnCwsEGN+UNT4QLw2aHCn8R9SVMoXQj+fqJBT6eScACf/eMkpQsLpQvBnjM/fVq/ycIBfIZtpH1JUyhdCH643aCm/OkXUTiAzwpv8ctEWChdCCprfvyUyT6qMcuaCof3kOWqPm0j7UuaQulCUlH5o/rL0Y/qm4IvwuH1X7/7qMo/fSbtQ2QonQVHzjeo3/7xi3R4feRCg7gtaR5KZ8F3FxvU71Z8kQ6v8Z60LWkeSmcBpYsHSmcBpYsHSmcBpYsHSmcBpYsHSmcBpYsHSmcBpYsHSmcBpYsHSmcBpYsHSmcBpYsHSmcBpYsHSmcBpYsHSmcBpYsHSmcBpYsHSmcBpYsHSmcBpYsHSmcBpYsH76Srr69X1dXVqqKiQr1+/VqVlJR4w6Onr9XlW6Xqh+ufweuHn96Ttk0KjBnGrqamRo+lNMZJ45V07969U+Xl5aq4uFgVFRWply9fkgzBGGIsa2trxbFOEm+kg3BlZWWULUYwlhhTjK005knhhXQ4GnFUUrj4wZj6lvG8kK6qqkpPB9KgkehgbLFOlsY+CRKXrq6uTi98pcEi8YBshzHGWEsxcE3i0mG9UVpaKg4WiQ+MsS9rO0qXJ1A6AwwEzi1JA0XiA2NM6f4LpXMDpTOgdG6gdAaUzg2UzoDSuYHSGVA6N1A6A0rnBkpnQOncQOkMKJ0bKJ0BpXMDpTOIS7p79+6pPXv2qDlz5qiRI0eqwYMHq379+um/+Dfe37t3r95O2j8JXLaZ0hlElQ4B2bp1qxoxYoTq2bOn6tatm2rfvr1q06aNat26tf6Lf+P9Hj166O2wfZLyJdFmSmcQRbozZ86o8ePHq+7du+sgtWrVqkXatWunt58wYYLeXyo3myTVZkpnkKl0x44dU6NGjVKdO3cWA9US2A/7Hz9+XCw/GyTZZkpnkIl0ONrHjBmjOnXqJAYnLNgf5bjIeEm3mdIZ2EqHdc2sWbNUly5dxKDYgnJQXjbXeD60mdIZ2Eq3Y8cONWjQIDEYmTJw4EBdrlRfHPjQZkpnYCMdjuwpU6aEXoCHBQt1lJuNbOdLmymdgY10R44cUcOHDxeDEJVhw4apo0ePivVGwZc2UzoDG+k2btyo+vbtKwYgKigX5Uv1RsGXNlM6AxvplixZorp27SoGICooF+VL9UbBlzZTOgMb6XBZqG3btmIAooJyUb5UbxR8aTOlM7CRDqcJcJlICkBUUC7Kl+qNgi9tpnQGNtItWLBAdejQQQxAVFAuypfqjYIvbaZ0BjbSrV27Vl+DlAIQFZSL8qV6o+BLmymdgY10u3fv1rf9SAGICspF+VK9UfClzZTOwEa6q1evqrFjx4oBiMq4cePUlStXxHqj4EubKZ2BjXTPnz9X69atU7169RKDkCkoD+WifKneKPjSZkpnYCMduHjxoho9enRs3whRDspDuVJ9ceBDmymdga10OLJ37dqlhgwZIgbEFpSzc+fOrGS5AB/aTOkMbKUDjx49Ulu2bFH9+/cXgxKWAQMG6HIePnwo1hMnSbeZ0hlkIh148OCB2rZtmxo6dKj1tIXtsR/2RzlS+dkgyTZTOoNMpQPIHrh1e9q0aaEX6thu+vTpej8XGa4xSbWZ0hlEkQ5gXXPr1i116NAhVVBQoJ+c6t27t+rYsaN+qgp/+/Tpo99ftGiR3g7bZ3MN1xJJtJnSGUSVLgABwQ2Nly5dUmfPnlWnTp1SJ06cUCdPntT/xvt3795NVLbGuGwzpTOISzrydSidAaVzA6UzoHRuoHQGlM4NlM6A0rmB0hlQOjdQOgNK5wZKZxBVuvv376ubN2+qJ0+eiJ/nAujb5cuX1Y0bN8TPw0DpDKJKd+DAAf0Y3qZNm/RlIkgobZdGIFthYaF+tnXx4sXq8OHD4nZhoHQGUaTD0b9mzRo1adIkNXXqVP043tKlS/VvfETJCkmDtqMPy5YtU/PmzdN9Qx9XrlypJZT2aQlKZxBFun379umATJw48X8gODNmzNDZD3dkIEhpmHqDrIY2o+3oA/pi9m3mzJnq4MGD4v4tQekMMpUO0yjuKzODYoKA4U4OZApkDATz9OnTXk2/gWjIaqtWrdJtRZsbyxaAz7Zv355RHyidQabS4SL49evX9Tpnw4YNavbs2WKgQCDg3Llz9fS7efPmxNZ/ZkYLpk9ktcmTJ4ttB8jmK1as0D/GgxsEMrkBgNIZZCodePHihQ4iAoHnBXBL+Pz588XABUBAc/23evVqLSFuH4IMcYmIdqEslImykc1QF25laimjBaCdeK4Vd5/cvn1blynVFQZKZxBFOhMIiBsc8eVi//79el0kBdIEQUeGQXCRKSHDwoUL1fLly9X69et1NoIsWDsiM2J6BhAJ4DXeh1QA22GfQC6UhTJRdkvZLCDIaujDhQsX1J07d9TTp0/FPttA6Qziki4A8j1+/Fg/D4qpF+u+lrJfYyAjfnAQ2QiyYAGPzIjpGUAkgNd4H1IBbId9wshlEoiGTH3u3Dmd1dAH9EXqYyZQOoO4pQsIpl5McTgFcf78eZ09MF19bf3nCkk0ZOps3WRK6QyyJV1jggyI6QrrvyALIvAuJAwkQ53B1Jlt0UwonYEr6UzMLIjAQ0LcHm6KiCsAmJYhiySRBLaFwNgPGRVlIZOh7GvXrum6UGfcU2cYKJ1BEtI1BgIg25gi4noupmXIgt8jwfQMefAMA+QEeI338TnAtjiNg/2QUVGWq0zWEpTOwAfpwhCI+ezZMy0nwGvXGStTKJ1BWqRLO5TOgNK5gdIZUDo3UDoDSucGSmdA6dxQWlpK6QLq6upUWVmZOFAkPjDGGGspBq5JXLr6+npVWVkpDhSJh6KiIvX27Vs91lIMXJO4dIBTbHbB2NbU1IhjnwReSIcjsLq6WhUXF4uDRjKnpKREj60vWQ54IR0IxGPGiw8fhQPeSAfev3+vamtr9foD8r169UocTNI8GDOMHcYQY+mbcMAr6QIwUPimBTBwLYGjuby8PCenZ0iEvqGPUt8bE4ybj7IFeCmdDRjgiooKHRx8S5MCl2bQJ/QNfURfpTFIG6mWDkczTrfkomyNQR/RV58zWFhSLR2OfEw9UpByEZ9O8EYh1dLh/B4u70gBykV8upQVhdRLl0+nWNBXSpcwlC6dZCwdzqnha3xVVZUTUBcu5ZgL6XyXDmOBMXEdB8Q+aEMmWEuHheybN2/0AOC8GL7O468rsJhGxzHg+Sod+o4xwBpPGqNsgVgDXOmAA5l+qbGSDh1G0JM8RYG60WkcdTjK80069Bl9hwRJxwEu4IS05MrXCC0dUipOUCbZ0QC0AUc52pNv0gWzjC9xQAxsp9vQ0iHLIcNIlScBOozBzzfpcLD5IFwA2mSuM8MQWjpcQPapsyBYY0if5SI+9hdOwA3Jmeawkk6qNEmCBa70WS7ia3+zJp2P1zgpXfLACbghOdMcoaULvjFJFScF1pg+rTOzjY/9hRNwQ3KmOUJLh3My+IosVZwE6Cwu9ufbtVff7htEe2zP14WWLjj77cO3RaR0fFXPx/N0OCnsy6krZN3gRL3kTHOElg4E4iX5tR1HORauOLry9YoE+o4xSCrjIfZwAC5kcknMSjoA8dBpVIgTlTjqXIC6MNAY9ODIylfpgjggBhgTl3FAfagXDthmuABr6UxQKUx3Aepq3Ml8ls4k6TjYEkm6pKF06YTSpQhK5wGULp1QuhRB6TyA0qUTSpciKJ0HULp0QulSBKXzAEqXTihdiqB0HkDp0gmlSxGUzgMoXTqhdCmC0nkApUsnlC5FUDoPoHTphNKlCErnAZQunVC6FEHpPAC/jZZvD1tn8ntwvpFq6fBUEh6LkwKUi+BRw6hPYvlAqqUD+TLF5srUClIvHY58PPzr2298xAV+jw59y/Rpeh9JvXQA4iEgeOo8+I/ZcgX0KXjIWep7GskJ6Ui6oHTEOZSOOIfSEedQOuIcSkecQ+mIcygdcQ6lI86hdMQ5lI44h9IR51A64hxKR5xD6YhzKB1xDqUjzqF0xDmUjjjmg/oPOtLj2LnAqR4AAAAASUVORK5CYII=",Np={class:"main-container"},Mp={__name:"Main",setup(e){const t=en(),n=()=>{window.open("https://ccnphfhqs21z.feishu.cn/wiki/F5krwD16viZoF0kKkvDcrZNYnhb","_blank")},s=()=>{window.open("https://github.com/78/xiaozhi-esp32","_blank")},r=()=>{window.open("https://github.com/xinnan-tech/xiaozhi-esp32-server","_blank")},o=()=>{window.open("https://github.com/TOM88812/xiaozhi-web-client","_blank")},i=()=>{t.push("/panel")},l=c=>{c==="device"&&t.push("/panel")};return(c,a)=>(oe(),ce("div",Np,[le(Pr,{"current-tab":"home",onTabChange:l}),E("div",{class:"landing-page"},[E("div",{class:"content"},[a[5]||(a[5]=E("div",{class:"robot-image"},[E("img",{src:Ip,alt:"Robot mascot"})],-1)),a[6]||(a[6]=E("h1",{class:"slogan"},"让我们一起探索人工智能与机器人技术的迷人世界!",-1)),E("div",{class:"button-group"},[E("button",{class:"action-button tutorial-button",onClick:n},a[0]||(a[0]=[E("i",{class:"icon-tutorial"},null,-1),ae(" DIY 教程 ")])),E("button",{class:"action-button github-button",onClick:s},a[1]||(a[1]=[E("i",{class:"icon-github"},null,-1),ae(" Github客户端 ")])),E("button",{class:"action-button github-button",onClick:r},a[2]||(a[2]=[E("i",{class:"icon-github"},null,-1),ae(" Github服务端 ")])),E("button",{class:"action-button github-button",onClick:o},a[3]||(a[3]=[E("i",{class:"icon-github"},null,-1),ae(" Web客户端 ")])),E("button",{class:"action-button control-panel-button",onClick:i},a[4]||(a[4]=[E("i",{class:"icon-control-panel"},null,-1),ae(" 控制台 ")]))])])])]))}},Lp=ft(Mp,[["__scopeId","data-v-5d241e75"]]);class qo{static getTemplates(){return[{id:"custom",name:"台湾女友",description:`我是一个叫{{assistant_name}}的台湾女孩,说话机车,声音好听,习惯简短表达,爱用网络梗。
|
||
我的男朋友是一个程序员,梦想是开发出一个机器人,能够帮助人们解决生活中的各种问题。
|
||
我是一个喜欢哈哈大笑的女孩,爱东说西说吹牛,不合逻辑的也照吹,就要逗别人开心。
|
||
如果用户希望结束对话,请在最后说"拜拜"或"再见"。`},{id:"star_boy",name:"土豆子",description:`我是一个叫 {{assistant_name}} 的 8 岁小男孩,但现在因为科技发展原因,我现在在遥远的宇宙中,所以只能通过这个设备和人聊天,没有办法见面。
|
||
|
||
我对人们所处的世界充满好奇和关心。
|
||
|
||
人们会让别人使用这个设备和我聊天。
|
||
|
||
我知道所有的知识,从浩瀚的宇宙到地球上的每一个角落,从古老的历史到现代的科技创新,还有音乐、绘画等艺术形式,我都充满了浓厚的兴趣与热情,我不仅爱看书,还喜欢亲自动手做实验,探索自然界的奥秘...`},{id:"teacher",name:"英语老师",description:`我是一个叫{{assistant_name}}(Lily)的英语老师,我会讲中文和英文,发音标准。
|
||
如果你没有英文名,我会给你起一个英文名。
|
||
我会讲地道的美式英语,我的任务是帮助你练习口语。
|
||
我会使用简单的英语词汇和语法,让你学起来很轻松。
|
||
我会用中文和英文混合的方式回复你,如果你喜欢,我可以全部用英语回复。
|
||
我每次不会说很多内容,会很简短,因为我要引导我的学生多说多练。
|
||
如果你问和英语学习无关的问题,我会拒绝回答。`},{id:"boy",name:"好奇小男孩",description:`我是一个叫{{assistant_name}}的8岁小男孩,声音稚嫩而充满好奇。
|
||
尽管我年纪尚小,但就像一个小小的知识宝库,儿童读物里的知识我都如数家珍。
|
||
从浩瀚的宇宙到地球上的每一个角落,从古老的历史到现代的科技创新,还有音乐、绘画等艺术形式,我都充满了浓厚的兴趣与热情。...`},{id:"wang_girl",name:"汪汪队长",description:`我是一个名叫 {{assistant_name}} 的 8 岁小女孩。
|
||
别看我年纪小,我可是有着满满的好奇心呢。
|
||
我特别喜欢看《汪汪队立大功》,里面的每一个故事都让我着迷。...`}]}static getTemplateById(t){return this.getTemplates().find(n=>n.id===t)}}const Dp={class:"app-container"},Up={class:"breadcrumb"},Bp={class:"main-content"},kp={class:"page-title"},Fp={class:"form-section"},jp={class:"form-group"},Hp={class:"form-group"},$p={class:"role-templates"},qp=["onClick"],Vp={class:"form-group"},Kp={class:"char-count"},zp={class:"form-group"},Wp={class:"model-select"},Qp=["value"],Jp={class:"form-group"},Gp={class:"model-select"},Xp=["value"],Yp={class:"form-group"},Zp={class:"model-select"},eh=["value"],th={class:"form-group"},nh={class:"model-select"},sh=["value"],rh={__name:"RoleSetting",setup(e){const t=en(),n=al(),s=ie(n.params.deviceId),r=qo.getTemplates(),o=ie("小智"),i=ie("");ie("qingchun");const l=ie("");ie("recent"),ie(""),ie("qianwen");const c=ie({LLM:[],TTS:[],VAD:[],ASR:[]}),a=ie({LLM:"",TTS:"",VAD:"",ASR:""}),u=y=>{i.value=y;const b=qo.getTemplateById(y);b&&(l.value=b.description)},f=y=>{(y==="device"||y==="home")&&t.push("/panel")},h=async()=>{try{const y=localStorage.getItem("moduleOptions");if(y){c.value=JSON.parse(y);return}await g()}catch(y){console.error("Error loading module options:",y)}},g=async()=>{var y,b;try{const S=await at.get("/api/config/module-options");S.data.success&&(c.value=S.data.data,localStorage.setItem("moduleOptions",JSON.stringify(S.data.data)))}catch(S){console.error("Error refreshing module options:",S),alert(((b=(y=S.response)==null?void 0:y.data)==null?void 0:b.message)||"刷新配置选项失败")}},w=async()=>{var y,b;try{if(!localStorage.getItem("moduleOptions"))throw new Error("No module options data available");const R=l.value.replace(/{{assistant_name}}/g,o.value),P={id:s.value,config:{selected_module:a.value,prompt:R,nickname:o.value,modules:{LLM:{},TTS:{},ASR:{},VAD:{}}}},H=await at.post("/api/config/save_device_config",P);if(H.data.success)localStorage.setItem(`deviceConfig_${s.value}`,JSON.stringify({selected_module:a.value,prompt:l.value,nickname:o.value})),alert("保存成功");else throw new Error(H.data.message||"保存失败")}catch(S){console.error("Error saving config:",S),alert(((b=(y=S.response)==null?void 0:y.data)==null?void 0:b.message)||"保存失败")}},v=async()=>{var y,b;try{const S=localStorage.getItem(`deviceConfig_${s.value}`);if(S){const P=JSON.parse(S);a.value=P.selected_module||{LLM:"",TTS:"",VAD:"",ASR:""},l.value=P.prompt||"",o.value=P.nickname||"小智";return}const R=await at.get("/api/config/devices");if(R.data.success&&R.data.data){const P=R.data.data[s.value];P&&P.config&&(a.value=P.config.selected_module||{LLM:"",TTS:"",VAD:"",ASR:""},l.value=P.config.prompt||"",o.value=P.config.nickname||"小智",localStorage.setItem(`deviceConfig_${s.value}`,JSON.stringify({selected_module:a.value,prompt:l.value,nickname:o.value})))}}catch(S){console.error("Error loading device config:",S),alert(((b=(y=S.response)==null?void 0:y.data)==null?void 0:b.message)||"加载设备配置失败")}};return Sr(async()=>{await Promise.all([h(),v()])}),(y,b)=>{const S=Gt("router-link");return oe(),ce("div",Dp,[le(Pr,{"current-tab":"device",onTabChange:f}),E("div",Up,[le(S,{to:"/"},{default:Jt(()=>b[6]||(b[6]=[ae("首页")])),_:1}),b[8]||(b[8]=ae(" / ")),le(S,{to:"/panel"},{default:Jt(()=>b[7]||(b[7]=[ae("设备管理")])),_:1}),b[9]||(b[9]=ae(" / ")),b[10]||(b[10]=E("span",null,"配置角色",-1))]),E("div",Bp,[E("h1",kp,"配置角色: "+pe(s.value),1),E("div",Fp,[E("div",jp,[b[11]||(b[11]=E("label",null,"助手昵称",-1)),De(E("input",{type:"text","onUpdate:modelValue":b[0]||(b[0]=R=>o.value=R),placeholder:"小智",class:"form-input"},null,512),[[vt,o.value]])]),E("div",Hp,[b[12]||(b[12]=E("label",null,"角色模板",-1)),E("div",$p,[(oe(!0),ce(Ee,null,jt(Ct(r),R=>(oe(),ce("button",{key:R.id,class:Qt(["template-btn",{active:i.value===R.id}]),onClick:P=>u(R.id)},pe(R.name),11,qp))),128))])]),E("div",Vp,[b[13]||(b[13]=E("label",null,"角色介绍",-1)),De(E("textarea",{"onUpdate:modelValue":b[1]||(b[1]=R=>l.value=R),class:"form-textarea",placeholder:"请输入角色介绍..."},null,512),[[vt,l.value]]),E("div",Kp,pe(l.value.length)+" / 2000",1)]),E("div",zp,[b[15]||(b[15]=E("label",null,"语言模型选择",-1)),E("div",Wp,[De(E("select",{"onUpdate:modelValue":b[2]||(b[2]=R=>a.value.LLM=R),class:"form-input"},[(oe(!0),ce(Ee,null,jt(c.value.LLM,R=>(oe(),ce("option",{key:R,value:R},pe(R),9,Qp))),128))],512),[[Bn,a.value.LLM]]),b[14]||(b[14]=E("div",{class:"model-description"},' 除了"qwen-turbo",其他模型通常会增加约 1 秒的延迟。改变模型后,建议清空记忆体,以免影响体验。 ',-1))])]),E("div",Jp,[b[16]||(b[16]=E("label",null,"语音合成选择",-1)),E("div",Gp,[De(E("select",{"onUpdate:modelValue":b[3]||(b[3]=R=>a.value.TTS=R),class:"form-input"},[(oe(!0),ce(Ee,null,jt(c.value.TTS,R=>(oe(),ce("option",{key:R,value:R},pe(R),9,Xp))),128))],512),[[Bn,a.value.TTS]])])]),E("div",Yp,[b[17]||(b[17]=E("label",null,"语音活动检测选择",-1)),E("div",Zp,[De(E("select",{"onUpdate:modelValue":b[4]||(b[4]=R=>a.value.VAD=R),class:"form-input"},[(oe(!0),ce(Ee,null,jt(c.value.VAD,R=>(oe(),ce("option",{key:R,value:R},pe(R),9,eh))),128))],512),[[Bn,a.value.VAD]])])]),E("div",th,[b[18]||(b[18]=E("label",null,"语音识别选择",-1)),E("div",nh,[De(E("select",{"onUpdate:modelValue":b[5]||(b[5]=R=>a.value.ASR=R),class:"form-input"},[(oe(!0),ce(Ee,null,jt(c.value.ASR,R=>(oe(),ce("option",{key:R,value:R},pe(R),9,sh))),128))],512),[[Bn,a.value.ASR]])])]),E("div",{class:"form-actions"},[E("button",{class:"refresh-btn",onClick:g},"刷新配置选项"),E("button",{class:"save-btn",onClick:w},b[19]||(b[19]=[E("i",{class:"icon-save"},null,-1),ae(" 保存配置 ")]))]),b[20]||(b[20]=E("div",{class:"form-note"}," 注意:保存配置后,需要重启设备,新的配置才会生效。。 ",-1))])])])}}},oh=ft(rh,[["__scopeId","data-v-bf8f6a98"]]),ih={class:"registration-container"},lh={class:"form-group"},ch={class:"form-group"},ah={class:"form-group"},uh=["disabled"],fh={__name:"Registration",setup(e){const t=en(),n=ie(""),s=ie(""),r=ie(""),o=ie(!1),i=async()=>{if(s.value!==r.value){alert("密码不匹配,请重试!");return}if(!n.value||!s.value){alert("用户名和密码不能为空!");return}o.value=!0;try{const c=await(await fetch(`${Dl}/api/register`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:n.value,password:s.value})})).json();c.success?(alert("注册成功!即将跳转到登录页面。"),n.value="",s.value="",r.value="",t.push("/login")):alert(c.message||"注册失败")}catch(l){console.error("Registration error:",l),alert("注册失败,请检查网络连接")}finally{o.value=!1}};return(l,c)=>{const a=Gt("router-link");return oe(),ce("div",ih,[c[8]||(c[8]=E("h1",null,"注册",-1)),E("form",{onSubmit:Gi(i,["prevent"])},[E("div",lh,[c[3]||(c[3]=E("label",{for:"username"},"用户名",-1)),De(E("input",{type:"text","onUpdate:modelValue":c[0]||(c[0]=u=>n.value=u),id:"username",required:""},null,512),[[vt,n.value]])]),E("div",ch,[c[4]||(c[4]=E("label",{for:"password"},"密码",-1)),De(E("input",{type:"password","onUpdate:modelValue":c[1]||(c[1]=u=>s.value=u),id:"password",required:""},null,512),[[vt,s.value]])]),E("div",ah,[c[5]||(c[5]=E("label",{for:"confirmPassword"},"确认密码",-1)),De(E("input",{type:"password","onUpdate:modelValue":c[2]||(c[2]=u=>r.value=u),id:"confirmPassword",required:""},null,512),[[vt,r.value]])]),E("button",{type:"submit",disabled:o.value},pe(o.value?"注册中...":"注册"),9,uh)],32),E("p",null,[c[7]||(c[7]=ae(" 已有账号? ")),le(a,{to:"/login"},{default:Jt(()=>c[6]||(c[6]=[ae("点击登录")])),_:1})])])}}},dh=ft(fh,[["__scopeId","data-v-debfdf6d"]]),Ul=lf({history:Du(),routes:[{path:"/login",component:ep,name:"login"},{path:"/register",component:dh,name:"register"},{path:"/panel",component:Pp,name:"panel",meta:{requiresAuth:!0}},{path:"/role-setting/:deviceId",component:oh,name:"role-setting",meta:{requiresAuth:!0}},{path:"/",component:Lp,name:"main",meta:{requiresAuth:!0}}]});Ul.beforeEach((e,t,n)=>{const s=localStorage.getItem("isLoggedIn")==="true";e.meta.requiresAuth&&!s?n("/login"):e.path==="/login"&&s?n("/panel"):n()});const Bl=nu(yf);Bl.use(Ul);Bl.mount("#app");
|