- run_dual 编排:规划者两阶段 JSON(plan/review,失败回喂重试一次再降级),
redo 时裁决意见回喂执行者,交接上限 agent.max_handoffs(默认 2)
- 交接文档 agent_runs/{id}/handoff.json(智能体版交流文本:instructions/acceptance/exchanges)
- /agent 新增 executor_pool_id;规划者==执行者条目拒绝;整体 token_cap 覆盖两级调用
- ToolLoop 增 emit_final 开关(内层循环不发终态,防前端 SSE 提前收口)
- 前端:执行者选择器 + phase/message 事件渲染(阶段徽标 + 双色消息卡)
- 测试 +3(done/redo/执行者故障),全量 277 passed
- fix(tests): test_config_get_put_reset 增加设置备份/恢复隔离,防止清掉用户真实配置
11 lines
166 KiB
JavaScript
11 lines
166 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CollaborationView-BZUME17V.js","assets/CollaborationView-C2afi9cV.css","assets/ReviewView-ByUG_VcN.js","assets/ReviewView-CaOmFJEu.css","assets/MetricsView-DOvNkmWB.js","assets/MetricsView-DGq419lf.css","assets/SettingsView-B2Ffl_KO.js","assets/SettingsView-BF83u5Uk.css"])))=>i.map(i=>d[i]);
|
||
var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function n(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var r={},i=[],a=()=>{},o=()=>!1,s=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith(`onUpdate:`),l=Object.assign,u=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,f=(e,t)=>d.call(e,t),p=Array.isArray,m=e=>C(e)===`[object Map]`,h=e=>C(e)===`[object Set]`,g=e=>C(e)===`[object Date]`,_=e=>typeof e==`function`,v=e=>typeof e==`string`,y=e=>typeof e==`symbol`,b=e=>typeof e==`object`&&!!e,x=e=>(b(e)||_(e))&&_(e.then)&&_(e.catch),S=Object.prototype.toString,C=e=>S.call(e),w=e=>C(e).slice(8,-1),ee=e=>C(e)===`[object Object]`,te=e=>v(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,ne=n(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),re=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ie=/-\w/g,T=re(e=>e.replace(ie,e=>e.slice(1).toUpperCase())),E=/\B([A-Z])/g,D=re(e=>e.replace(E,`-$1`).toLowerCase()),O=re(e=>e.charAt(0).toUpperCase()+e.slice(1)),ae=re(e=>e?`on${O(e)}`:``),k=(e,t)=>!Object.is(e,t),oe=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},se=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},A=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ce,j=()=>ce||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function le(e){if(p(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=v(r)?pe(r):le(r);if(i)for(let e in i)t[e]=i[e]}return t}if(v(e)||b(e))return e}var ue=/;(?![^(]*\))/g,de=/:([^]+)/,fe=/\/\*[^]*?\*\//g;function pe(e){let t={};return e.replace(fe,``).split(ue).forEach(e=>{if(e){let n=e.split(de);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function me(e){let t=``;if(v(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){let r=me(e[n]);r&&(t+=r+` `)}else if(b(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var he=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,ge=n(he);he+``;function _e(e){return!!e||e===``}function ve(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=be(e[r],t[r]);return n}function ye(e,t){if(e.size!==t.size)return!1;let n=Array.from(t),r=new Uint8Array(n.length);for(let t of e){let e=-1;for(let i=0;i<n.length;i++)if(!r[i]&&be(t,n[i])){e=i;break}if(e<0)return!1;r[e]=1}return!0}function be(e,t){if(e===t)return!0;let n=g(e),r=g(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=y(e),r=y(t),n||r)return e===t;if(n=p(e),r=p(t),n||r)return n&&r?ve(e,t):!1;if(n=b(e),r=b(t),n||r){if(!n||!r)return!1;if(n=m(e),r=m(t),n||r||(n=h(e),r=h(t),n||r))return n&&r?ye(e,t):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!be(e[n],t[n]))return!1}}return String(e)===String(t)}function xe(e,t){return e.findIndex(e=>be(e,t))}var Se=e=>!!(e&&e.__v_isRef===!0),M=e=>v(e)?e:e==null?``:p(e)||b(e)&&(e.toString===S||!_(e.toString))?Se(e)?M(e.value):JSON.stringify(e,Ce,2):String(e),Ce=(e,t)=>Se(t)?Ce(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[we(t,r)+` =>`]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>we(e))}:y(t)?we(t):b(t)&&!p(t)&&!ee(t)?String(t):t,we=(e,t=``)=>y(e)?`Symbol(${e.description??t})`:e,N,Te=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&N&&(N.active?(this.parent=N,this.index=(N.scopes||(N.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=N;try{return N=this,e()}finally{N=t}}}on(){++this._on===1&&(this.prevScope=N,N=this)}off(){if(this._on>0&&--this._on===0){if(N===this)N=this.prevScope;else{let e=N;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Ee(e){return new Te(e)}function De(){return N}function Oe(e,t=!1){N&&N.cleanups.push(e)}var P,ke=new WeakSet,Ae=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,N&&(N.active?N.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ke.has(this)&&(ke.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Pe(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,qe(this),Le(this);let e=P,t=Ue;P=this,Ue=!0;try{return this.fn()}finally{Re(this),P=e,Ue=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Ve(e);this.deps=this.depsTail=void 0,qe(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ke.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ze(this)&&this.run()}get dirty(){return ze(this)}},je=0,Me,Ne;function Pe(e,t=!1){if(e.flags|=8,t){e.next=Ne,Ne=e;return}e.next=Me,Me=e}function Fe(){je++}function Ie(){if(--je>0)return;if(Ne){let e=Ne;for(Ne=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Me;){let t=Me;for(Me=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Le(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Re(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Ve(r),He(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function ze(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Be(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Be(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Je)||(e.globalVersion=Je,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ze(e))))return;e.flags|=2;let t=e.dep,n=P,r=Ue;P=e,Ue=!0;try{Le(e);let n=e.fn(e._value);(t.version===0||k(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{P=n,Ue=r,Re(e),e.flags&=-3}}function Ve(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Ve(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function He(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var Ue=!0,We=[];function Ge(){We.push(Ue),Ue=!1}function Ke(){let e=We.pop();Ue=e===void 0||e}function qe(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=P;P=void 0;try{t()}finally{P=e}}}var Je=0,Ye=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Xe=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!P||!Ue||P===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==P)t=this.activeLink=new Ye(P,this),P.deps?(t.prevDep=P.depsTail,P.depsTail.nextDep=t,P.depsTail=t):P.deps=P.depsTail=t,Ze(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=P.depsTail,t.nextDep=void 0,P.depsTail.nextDep=t,P.depsTail=t,P.deps===t&&(P.deps=e)}return t}trigger(e){this.version++,Je++,this.notify(e)}notify(e){Fe();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ie()}}};function Ze(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Ze(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Qe=new WeakMap,$e=Symbol(``),et=Symbol(``),tt=Symbol(``);function nt(e,t,n){if(Ue&&P){let t=Qe.get(e);t||Qe.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Xe),r.map=t,r.key=n),r.track()}}function rt(e,t,n,r,i,a){let o=Qe.get(e);if(!o){Je++;return}let s=e=>{e&&e.trigger()};if(Fe(),t===`clear`)o.forEach(s);else{let i=p(e),a=i&&te(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===tt||!y(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(tt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get($e)),m(e)&&s(o.get(et)));break;case`delete`:i||(s(o.get($e)),m(e)&&s(o.get(et)));break;case`set`:m(e)&&s(o.get($e))}}Ie()}function it(e,t){let n=Qe.get(e);return n&&n.get(t)}function at(e){let t=F(e);return t===e?t:(nt(t,`iterate`,tt),Wt(e)?t:t.map(qt))}function ot(e){return nt(e=F(e),`iterate`,tt),e}function st(e,t){return Ut(e)?Jt(Ht(e)?qt(t):t):qt(t)}var ct={__proto__:null,[Symbol.iterator](){return lt(this,Symbol.iterator,e=>st(this,e))},concat(...e){return at(this).concat(...e.map(e=>p(e)?at(e):e))},entries(){return lt(this,`entries`,e=>(e[1]=st(this,e[1]),e))},every(e,t){return dt(this,`every`,e,t,void 0,arguments)},filter(e,t){return dt(this,`filter`,e,t,e=>e.map(e=>st(this,e)),arguments)},find(e,t){return dt(this,`find`,e,t,e=>st(this,e),arguments)},findIndex(e,t){return dt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return dt(this,`findLast`,e,t,e=>st(this,e),arguments)},findLastIndex(e,t){return dt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return dt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return pt(this,`includes`,e)},indexOf(...e){return pt(this,`indexOf`,e)},join(e){return at(this).join(e)},lastIndexOf(...e){return pt(this,`lastIndexOf`,e)},map(e,t){return dt(this,`map`,e,t,void 0,arguments)},pop(){return mt(this,`pop`)},push(...e){return mt(this,`push`,e)},reduce(e,...t){return ft(this,`reduce`,e,t)},reduceRight(e,...t){return ft(this,`reduceRight`,e,t)},shift(){return mt(this,`shift`)},some(e,t){return dt(this,`some`,e,t,void 0,arguments)},splice(...e){return mt(this,`splice`,e)},toReversed(){return at(this).toReversed()},toSorted(e){return at(this).toSorted(e)},toSpliced(...e){return at(this).toSpliced(...e)},unshift(...e){return mt(this,`unshift`,e)},values(){return lt(this,`values`,e=>st(this,e))}};function lt(e,t,n){let r=ot(e),i=r[t]();return r!==e&&!Wt(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var ut=Array.prototype;function dt(e,t,n,r,i,a){let o=ot(e),s=o!==e&&!Wt(e),c=o[t];if(c!==ut[t]){let t=c.apply(e,a);return s?qt(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,st(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function ft(e,t,n,r){let i=ot(e),a=i!==e&&!Wt(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=st(e,t)),n.call(this,t,st(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?st(e,c):c}function pt(e,t,n){let r=F(e);nt(r,`iterate`,tt);let i=r[t](...n);return(i===-1||i===!1)&&Gt(n[0])?(n[0]=F(n[0]),r[t](...n)):i}function mt(e,t,n=[]){Ge(),Fe();let r=F(e)[t].apply(e,n);return Ie(),Ke(),r}var ht=n(`__proto__,__v_isRef,__isVue`),gt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(y));function _t(e){y(e)||(e=String(e));let t=F(this);return nt(t,`has`,e),t.hasOwnProperty(e)}var vt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?It:Ft:i?Pt:Nt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=p(e);if(!r){let e;if(a&&(e=ct[t]))return e;if(t===`hasOwnProperty`)return _t}let o=Reflect.get(e,t,I(e)?e:n);if((y(t)?gt.has(t):ht(t))||(r||nt(e,`get`,t),i))return o;if(I(o)){let e=a&&te(t)?o:o.value;return r&&b(e)?Bt(e):e}return b(o)?r?Bt(o):Rt(o):o}},yt=class extends vt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=p(e)&&te(t);if(!this._isShallow){let e=Ut(i);if(!Wt(n)&&!Ut(n)&&(i=F(i),n=F(n)),!a&&I(i)&&!I(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:f(e,t),s=Reflect.set(e,t,n,I(e)?e:r);return e===F(r)&&s&&(o?k(n,i)&&rt(e,`set`,t,n,i):rt(e,`add`,t,n)),s}deleteProperty(e,t){let n=f(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&rt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!y(t)||!gt.has(t))&&nt(e,`has`,t),n}ownKeys(e){return nt(e,`iterate`,p(e)?`length`:$e),Reflect.ownKeys(e)}},bt=class extends vt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},xt=new yt,St=new bt,Ct=new yt(!0),wt=e=>e,Tt=e=>Reflect.getPrototypeOf(e);function Et(e,t,n){return function(...r){let i=this.__v_raw,a=F(i),o=m(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,u=i[e](...r),d=n?wt:t?Jt:qt;return!t&&nt(a,`iterate`,c?et:$e),l(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Dt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Ot(e,t){let n={get(n){let r=this.__v_raw,i=F(r),a=F(n);e||(k(n,a)&&nt(i,`get`,n),nt(i,`get`,a));let{has:o}=Tt(i),s=t?wt:e?Jt:qt;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&nt(F(t),`iterate`,$e),t.size},has(t){let n=this.__v_raw,r=F(n),i=F(t);return e||(k(t,i)&&nt(r,`has`,t),nt(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=F(a),s=t?wt:e?Jt:qt;return!e&&nt(o,`iterate`,$e),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return l(n,e?{add:Dt(`add`),set:Dt(`set`),delete:Dt(`delete`),clear:Dt(`clear`)}:{add(e){let n=F(this),r=Tt(n),i=F(e),a=!t&&!Wt(e)&&!Ut(e)?i:e;return r.has.call(n,a)||k(e,a)&&r.has.call(n,e)||k(i,a)&&r.has.call(n,i)||(n.add(a),rt(n,`add`,a,a)),this},set(e,n){!t&&!Wt(n)&&!Ut(n)&&(n=F(n));let r=F(this),{has:i,get:a}=Tt(r),o=i.call(r,e);o||=(e=F(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?k(n,s)&&rt(r,`set`,e,n,s):rt(r,`add`,e,n),this},delete(e){let t=F(this),{has:n,get:r}=Tt(t),i=n.call(t,e);i||=(e=F(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&rt(t,`delete`,e,void 0,a),o},clear(){let e=F(this),t=e.size!==0,n=e.clear();return t&&rt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Et(r,e,t)}),n}function kt(e,t){let n=Ot(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(f(n,r)&&r in t?n:t,r,i)}var At={get:kt(!1,!1)},jt={get:kt(!1,!0)},Mt={get:kt(!0,!1)},Nt=new WeakMap,Pt=new WeakMap,Ft=new WeakMap,It=new WeakMap;function Lt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Rt(e){return Ut(e)?e:Vt(e,!1,xt,At,Nt)}function zt(e){return Vt(e,!1,Ct,jt,Pt)}function Bt(e){return Vt(e,!0,St,Mt,Ft)}function Vt(e,t,n,r,i){if(!b(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Lt(w(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Ht(e){return Ut(e)?Ht(e.__v_raw):!!(e&&e.__v_isReactive)}function Ut(e){return!!(e&&e.__v_isReadonly)}function Wt(e){return!!(e&&e.__v_isShallow)}function Gt(e){return e?!!e.__v_raw:!1}function F(e){let t=e&&e.__v_raw;return t?F(t):e}function Kt(e){return!f(e,`__v_skip`)&&Object.isExtensible(e)&&se(e,`__v_skip`,!0),e}var qt=e=>b(e)?Rt(e):e,Jt=e=>b(e)?Bt(e):e;function I(e){return e?e.__v_isRef===!0:!1}function L(e){return Xt(e,!1)}function Yt(e){return Xt(e,!0)}function Xt(e,t){return I(e)?e:new Zt(e,t)}var Zt=class{constructor(e,t){this.dep=new Xe,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:F(e),this._value=t?e:qt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Wt(e)||Ut(e);e=n?e:F(e),k(e,t)&&(this._rawValue=e,this._value=n?e:qt(e),this.dep.trigger())}};function R(e){return I(e)?e.value:e}var Qt={get:(e,t,n)=>t===`__v_raw`?e:R(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return I(i)&&!I(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function $t(e){return Ht(e)?e:new Proxy(e,Qt)}function en(e){let t=p(e)?Array(e.length):{};for(let n in e)t[n]=nn(e,n);return t}var tn=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=y(t)?t:String(t),this._raw=F(e);let r=!0,i=e;if(!p(e)||y(this._key)||!te(this._key))do r=!Gt(i)||Wt(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=R(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&I(this._raw[this._key])){let t=this._object[this._key];if(I(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return it(this._raw,this._key)}};function nn(e,t,n){return new tn(e,t,n)}var rn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Xe(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Je-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&P!==this)return Pe(this,!0),!0}get value(){let e=this.dep.track();return Be(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function an(e,t,n=!1){let r,i;return _(e)?r=e:(r=e.get,i=e.set),new rn(r,i,n)}var on={},sn=new WeakMap,cn=void 0;function ln(e,t=!1,n=cn){if(n){let t=sn.get(n);t||sn.set(n,t=[]),t.push(e)}}function un(e,t,n=r){let{immediate:i,deep:o,once:s,scheduler:c,augmentJob:l,call:d}=n,f=e=>o?e:Wt(e)||o===!1||o===0?dn(e,1):dn(e),m,h,g,v,y=!1,b=!1;if(I(e)?(h=()=>e.value,y=Wt(e)):Ht(e)?(h=()=>f(e),y=!0):p(e)?(b=!0,y=e.some(e=>Ht(e)||Wt(e)),h=()=>e.map(e=>{if(I(e))return e.value;if(Ht(e))return f(e);if(_(e))return d?d(e,2):e()})):h=_(e)?t?d?()=>d(e,2):e:()=>{if(g){Ge();try{g()}finally{Ke()}}let t=cn;cn=m;try{return d?d(e,3,[v]):e(v)}finally{cn=t}}:a,t&&o){let e=h,t=o===!0?1/0:o;h=()=>dn(e(),t)}let x=De(),S=()=>{m.stop(),x&&x.active&&u(x.effects,m)};if(s&&t){let e=t;t=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(on):on,w=e=>{if(!(!(m.flags&1)||!m.dirty&&!e)){if(t){let n=m.run();if(e||o||y||(b?n.some((e,t)=>k(e,C[t])):k(n,C))){g&&g();let e=cn;cn=m;try{let e=[n,C===on?void 0:b&&C[0]===on?[]:C,v];C=n,d?d(t,3,e):t(...e)}finally{cn=e}}}else m.run()}};return l&&l(w),m=new Ae(h),m.scheduler=c?()=>c(w,!1):w,v=e=>ln(e,!1,m),g=m.onStop=()=>{let e=sn.get(m);if(e){if(d)d(e,4);else for(let t of e)t();sn.delete(m)}},t?i?w(!0):C=m.run():c?c(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function dn(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,I(e))dn(e.value,t,n);else if(p(e))for(let r=0;r<e.length;r++)dn(e[r],t,n);else if(h(e)||m(e))e.forEach(e=>{dn(e,t,n)});else if(ee(e)){for(let r in e)dn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&dn(e[r],t,n)}return e}function fn(e,t,n,r){try{return r?e(...r):e()}catch(e){mn(e,t,n)}}function pn(e,t,n,r){if(_(e)){let i=fn(e,t,n,r);return i&&x(i)&&i.catch(e=>{mn(e,t,n)}),i}if(p(e)){let i=[];for(let a=0;a<e.length;a++)i.push(pn(e[a],t,n,r));return i}}function mn(e,t,n,i=!0){let a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||r;if(t){let r=t.parent,i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,a)===!1)return}r=r.parent}if(o){Ge(),fn(o,null,10,[e,i,a]),Ke();return}}hn(e,n,a,i,s)}function hn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var gn=[],_n=-1,vn=[],yn=null,bn=0,xn=Promise.resolve(),Sn=null;function Cn(e){let t=Sn||xn;return e?t.then(this?e.bind(this):e):t}function wn(e){let t=_n+1,n=gn.length;for(;t<n;){let r=t+n>>>1,i=gn[r],a=An(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Tn(e){if(!(e.flags&1)){let t=An(e),n=gn[gn.length-1];!n||!(e.flags&2)&&t>=An(n)?gn.push(e):gn.splice(wn(t),0,e),e.flags|=1,En()}}function En(){Sn||=xn.then(jn)}function Dn(e){if(!p(e))yn&&e.id===-1?yn.splice(bn+1,0,e):e.flags&1||(vn.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)vn.push(e[t]);En()}function On(e,t,n=_n+1){for(;n<gn.length;n++){let t=gn[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;gn.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function kn(e){if(vn.length){let e=[...new Set(vn)].sort((e,t)=>An(e)-An(t));if(vn.length=0,yn){for(let t=0;t<e.length;t++)yn.push(e[t]);return}for(yn=e,bn=0;bn<yn.length;bn++){let e=yn[bn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}yn=null,bn=0}}var An=e=>e.id==null?e.flags&2?-1:1/0:e.id;function jn(e){try{for(_n=0;_n<gn.length;_n++){let e=gn[_n];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),fn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;_n<gn.length;_n++){let e=gn[_n];e&&(e.flags&=-2)}_n=-1,gn.length=0,kn(e),Sn=null,(gn.length||vn.length)&&jn(e)}}var Mn=null,Nn=null;function Pn(e){let t=Mn;return Mn=e,Nn=e&&e.type.__scopeId||null,t}function Fn(e,t=Mn,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Yi(-1);let i=Pn(t),a=Gi.length,o;try{o=e(...n)}finally{for(let e=Gi.length;e>a;e--)qi();Pn(i),r._d&&Yi(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function In(e,t){if(Mn===null)return e;let n=Oa(Mn),i=e.dirs||=[];for(let e=0;e<t.length;e++){let[a,o,s,c=r]=t[e];a&&(_(a)&&(a={mounted:a,updated:a}),a.deep&&dn(o),i.push({dir:a,instance:n,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function Ln(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(Ge(),pn(c,n,8,[e.el,s,e,t]),Ke())}}function Rn(e,t){if(ma){let n=ma.provides,r=ma.parent&&ma.parent.provides;r===n&&(n=ma.provides=Object.create(r)),n[e]=t}}function zn(e,t,n=!1){let r=ha();if(r||Qr){let i=Qr?Qr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&_(t)?t.call(r&&r.proxy):t}}function Bn(){return!!(ha()||Qr)}var Vn=Symbol.for(`v-scx`),Hn=()=>zn(Vn);function Un(e,t,n){return Wn(e,t,n)}function Wn(e,t,n=r){let{immediate:i,deep:o,flush:s,once:c}=n,u=l({},n),d=t&&i||!t&&s!==`post`,f;if(xa){if(s===`sync`){let e=Hn();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=a,e.resume=a,e.pause=a,e}}let p=ma;u.call=(e,t,n)=>pn(e,p,t,n);let m=!1;s===`post`?u.scheduler=e=>{ki(e,p&&p.suspense)}:s!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():Tn(e)}),u.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=un(e,t,u);return xa&&(f?f.push(h):d&&h()),h}function Gn(e,t,n){let r=this.proxy,i=v(e)?e.includes(`.`)?Kn(r,e):()=>r[e]:e.bind(r,r),a;_(t)?a=t:(a=t.handler,n=t);let o=va(this),s=Wn(i,a.bind(r),n);return o(),s}function Kn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var qn=Symbol(`_vte`),Jn=e=>e.__isTeleport,Yn=Symbol(`_leaveCb`);function Xn(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==Ui){t=n;break}}return t}function Zn(e){if(!or(e))return Jn(e.type)&&e.children?Xn(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&_(n.default))return n.default()}}function Qn(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;Qn(Jn(n.type)&&Zn(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function $n(e,t){return _(e)?l({name:e.name},t,{setup:e}):e}function er(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function tr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var nr=new WeakMap;function rr(e,t,n,i,a=!1){if(p(e)){e.forEach((e,r)=>rr(e,t&&(p(t)?t[r]:t),n,i,a));return}if(ar(i)&&!a){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&rr(e,t,n,i.component.subTree);return}let s=i.shapeFlag&4?Oa(i.component):i.el,c=a?null:s,{i:l,r:d}=e,m=t&&t.r,h=l.refs===r?l.refs={}:l.refs,g=l.setupState,y=F(g),b=g===r?o:e=>!tr(h,e)&&f(y,e),x=(e,t)=>!(t&&tr(h,t));if(m!=null&&m!==d){if(ir(t),v(m))h[m]=null,b(m)&&(g[m]=null);else if(I(m)){let e=t;x(m,e.k)&&(m.value=null),e.k&&(h[e.k]=null)}}if(_(d))fn(d,l,12,[c,h]);else{let t=v(d),r=I(d);if(t||r){let i=()=>{if(e.f){let n=t?b(d)?g[d]:h[d]:x(d)||!e.k?d.value:h[e.k];if(a)p(n)&&u(n,s);else if(p(n))n.includes(s)||n.push(s);else if(t)h[d]=[s],b(d)&&(g[d]=h[d]);else{let t=[s];x(d,e.k)&&(d.value=t),e.k&&(h[e.k]=t)}}else t?(h[d]=c,b(d)&&(g[d]=c)):r&&(x(d,e.k)&&(d.value=c),e.k&&(h[e.k]=c))};if(c){let t=()=>{i(),nr.delete(e)};t.id=-1,nr.set(e,t),ki(t,n)}else ir(e),i()}}}function ir(e){let t=nr.get(e);t&&(t.flags|=8,nr.delete(e))}j().requestIdleCallback,j().cancelIdleCallback;var ar=e=>!!e.type.__asyncLoader,or=e=>e.type.__isKeepAlive;function sr(e,t){lr(e,`a`,t)}function cr(e,t){lr(e,`da`,t)}function lr(e,t,n=ma){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(dr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)or(e.parent.vnode)&&ur(r,t,n,e),e=e.parent}}function ur(e,t,n,r){let i=dr(t,e,r,!0);vr(()=>{u(r[t],i)},n)}function dr(e,t,n=ma,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Ge();let i=va(n),a=pn(t,n,e,r);return i(),Ke(),a};return r?i.unshift(a):i.push(a),a}}var fr=e=>(t,n=ma)=>{(!xa||e===`sp`)&&dr(e,(...e)=>t(...e),n)},pr=fr(`bm`),mr=fr(`m`),hr=fr(`bu`),gr=fr(`u`),_r=fr(`bum`),vr=fr(`um`),yr=fr(`sp`),br=fr(`rtg`),xr=fr(`rtc`);function Sr(e,t=ma){dr(`ec`,e,t)}var Cr=`components`;function wr(e,t){return Er(Cr,e,!0,t)||e}var Tr=Symbol.for(`v-ndc`);function Er(e,t,n=!0,r=!1){let i=Mn||ma;if(i){let n=i.type;if(e===Cr){let e=ka(n,!1);if(e&&(e===t||e===T(t)||e===O(T(t))))return n}let a=Dr(i[e]||n[e],t)||Dr(i.appContext[e],t);return!a&&r?n:a}}function Dr(e,t){return e&&(e[t]||e[T(t)]||e[O(T(t))])}function Or(e,t,n,r){let i,a=n&&n[r],o=p(e);if(o||v(e)){let n=o&&Ht(e),r=!1,s=!1;n&&(r=!Wt(e),s=Ut(e),e=ot(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?Jt(qt(e[n])):qt(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(b(e)){if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}}else i=[];return n&&(n[r]=i),i}var kr=e=>e?ba(e)?Oa(e):kr(e.parent):null,Ar=l(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>kr(e.parent),$root:e=>kr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zr(e),$forceUpdate:e=>e.f||=()=>{Tn(e.update)},$nextTick:e=>e.n||=Cn.bind(e.proxy),$watch:e=>Gn.bind(e)}),jr=(e,t)=>e!==r&&!e.__isScriptSetup&&f(e,t),Mr={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(t[0]!==`$`){let e=s[t];if(e!==void 0)switch(e){case 1:return i[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else if(jr(i,t))return s[t]=1,i[t];else if(a!==r&&f(a,t))return s[t]=2,a[t];else if(f(o,t))return s[t]=3,o[t];else if(n!==r&&f(n,t))return s[t]=4,n[t];else Pr&&(s[t]=0)}let u=Ar[t],d,p;if(u)return t===`$attrs`&&nt(e.attrs,`get`,``),u(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==r&&f(n,t))return s[t]=4,n[t];if(p=l.config.globalProperties,f(p,t))return p[t]},set({_:e},t,n){let{data:i,setupState:a,ctx:o}=e;return jr(a,t)?(a[t]=n,!0):i!==r&&f(i,t)?(i[t]=n,!0):f(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(n[c]||e!==r&&c[0]!==`$`&&f(e,c)||jr(t,c)||f(o,c)||f(i,c)||f(Ar,c)||f(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?f(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function Nr(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var Pr=!0;function Fr(e){let t=zr(e),n=e.proxy,r=e.ctx;Pr=!1,t.beforeCreate&&Lr(t.beforeCreate,e,`bc`);let{data:i,computed:o,methods:s,watch:c,provide:l,inject:u,created:d,beforeMount:f,mounted:m,beforeUpdate:h,updated:g,activated:v,deactivated:y,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:ee,renderTracked:te,renderTriggered:ne,errorCaptured:re,serverPrefetch:ie,expose:T,inheritAttrs:E,components:D,directives:O,filters:ae}=t;if(u&&Ir(u,r,null),s)for(let e in s){let t=s[e];_(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);b(t)&&(e.data=Rt(t))}if(Pr=!0,o)for(let e in o){let t=o[e],i=G({get:_(t)?t.bind(n,n):_(t.get)?t.get.bind(n,n):a,set:!_(t)&&_(t.set)?t.set.bind(n):a});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(c)for(let e in c)Rr(c[e],r,n,e);if(l){let e=_(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Rn(t,e[t])})}d&&Lr(d,e,`c`);function k(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(k(pr,f),k(mr,m),k(hr,h),k(gr,g),k(sr,v),k(cr,y),k(Sr,re),k(xr,te),k(br,ne),k(_r,S),k(vr,w),k(yr,ie),p(T)){if(T.length){let t=e.exposed||={};T.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}ee&&e.render===a&&(e.render=ee),E!=null&&(e.inheritAttrs=E),D&&(e.components=D),O&&(e.directives=O),ie&&er(e)}function Ir(e,t,n=a){p(e)&&(e=Wr(e));for(let n in e){let r=e[n],i;i=b(r)?`default`in r?zn(r.from||n,r.default,!0):zn(r.from||n):zn(r),I(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Lr(e,t,n){pn(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Rr(e,t,n,r){let i=r.includes(`.`)?Kn(n,r):()=>n[r];if(v(e)){let n=t[e];_(n)&&Un(i,n)}else if(_(e))Un(i,e.bind(n));else if(b(e)){if(p(e))e.forEach(e=>Rr(e,t,n,r));else{let r=_(e.handler)?e.handler.bind(n):t[e.handler];_(r)&&Un(i,r,e)}}}function zr(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Br(c,e,o,!0)),Br(c,t,o)),b(t)&&a.set(t,c),c}function Br(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Br(e,a,n,!0),i&&i.forEach(t=>Br(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Vr[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Vr={data:Hr,props:qr,emits:qr,methods:Kr,computed:Kr,beforeCreate:Gr,created:Gr,beforeMount:Gr,mounted:Gr,beforeUpdate:Gr,updated:Gr,beforeDestroy:Gr,beforeUnmount:Gr,destroyed:Gr,unmounted:Gr,activated:Gr,deactivated:Gr,errorCaptured:Gr,serverPrefetch:Gr,components:Kr,directives:Kr,watch:Jr,provide:Hr,inject:Ur};function Hr(e,t){return t?e?function(){return l(_(e)?e.call(this,this):e,_(t)?t.call(this,this):t)}:t:e}function Ur(e,t){return Kr(Wr(e),Wr(t))}function Wr(e){if(p(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Gr(e,t){return e?[...new Set([].concat(e,t))]:t}function Kr(e,t){return e?l(Object.create(null),e,t):t}function qr(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:l(Object.create(null),Nr(e),Nr(t??{})):t}function Jr(e,t){if(!e)return t;if(!t)return e;let n=l(Object.create(null),e);for(let r in t)n[r]=Gr(e[r],t[r]);return n}function Yr(){return{app:null,config:{isNativeTag:o,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Xr=0;function Zr(e,t){return function(n,r=null){_(n)||(n=l({},n)),r!=null&&!b(r)&&(r=null);let i=Yr(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:Xr++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Ma,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&_(e.install)?(a.add(e),e.install(c,...t)):_(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||U(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,Oa(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(pn(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=Qr;Qr=c;try{return e()}finally{Qr=t}}};return c}}var Qr=null,$r=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${T(t)}Modifiers`]||e[`${D(t)}Modifiers`];function ei(e,t,...n){if(e.isUnmounted)return;let i=e.vnode.props||r,a=n,o=t.startsWith(`update:`),s=o&&$r(i,t.slice(7));s&&(s.trim&&(a=n.map(e=>v(e)?e.trim():e)),s.number&&(a=a.map(A)));let c,l=i[c=ae(t)]||i[c=ae(T(t))];!l&&o&&(l=i[c=ae(D(t))]),l&&pn(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,pn(u,e,6,a)}}var ti=new WeakMap;function ni(e,t,n=!1){let r=n?ti:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!_(e)){let r=e=>{let n=ni(e,t,!0);n&&(s=!0,l(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(b(e)&&r.set(e,null),null):(p(a)?a.forEach(e=>o[e]=null):l(o,a),b(e)&&r.set(e,o),o)}function ri(e,t){return!e||!s(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),f(e,t[0].toLowerCase()+t.slice(1))||f(e,D(t))||f(e,t))}function ii(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=Pn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=oa(u.call(t,e,d,f,m,p,h)),y=s}else{let e=t;v=oa(e.length>1?e(f,{attrs:s,slots:o,emit:l}):e(f,null)),y=t.props?s:ai(s)}}catch(t){Gi.length=0,mn(t,e,1),v=U(Ui)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(c)&&(y=oi(y,a)),b=ia(b,y,!1,!0))}return n.dirs&&(b=ia(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Qn(Jn(b.type)&&Zn(b)||b,n.transition),v=b,Pn(_),v}var ai=e=>{let t;for(let n in e)(n===`class`||n===`style`||s(n))&&((t||={})[n]=e[n]);return t},oi=(e,t)=>{let n={};for(let r in e)(!c(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function si(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?ci(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(li(o,r,n)&&!ri(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||ci(r,o,l):!!o;return!1}function ci(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(li(t,e,a)&&!ri(n,a))return!0}return!1}function li(e,t,n){let r=e[n],i=t[n];return n===`style`&&b(r)&&b(i)?!be(r,i):r!==i}function ui({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var di={},fi=()=>Object.create(di),pi=e=>Object.getPrototypeOf(e)===di;function mi(e,t,n,r=!1){let i={},a=fi();e.propsDefaults=Object.create(null),gi(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:zt(i):e.type.props?i:a,e.attrs=a}function hi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=F(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(ri(e.emitsOptions,o))continue;let u=t[o];if(c){if(f(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=T(o);i[t]=_i(c,s,t,u,e,!1)}}else u!==a[o]&&(a[o]=u,l=!0)}}}else{gi(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!f(t,a)&&((r=D(a))===a||!f(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=_i(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!f(t,e))&&(delete a[e],l=!0)}l&&rt(e.attrs,`set`,``)}function gi(e,t,n,i){let[a,o]=e.propsOptions,s=!1,c;if(t)for(let r in t){if(ne(r))continue;let l=t[r],u;a&&f(a,u=T(r))?!o||!o.includes(u)?n[u]=l:(c||={})[u]=l:ri(e.emitsOptions,r)||(!(r in i)||l!==i[r])&&(i[r]=l,s=!0)}if(o){let t=F(n),i=c||r;for(let r=0;r<o.length;r++){let s=o[r];n[s]=_i(a,t,s,i[s],e,!f(i,s))}}return s}function _i(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=f(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&_(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=va(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===D(n))&&(r=!0))}return r}var vi=new WeakMap;function yi(e,t,n=!1){let a=n?vi:t.propsCache,o=a.get(e);if(o)return o;let s=e.props,c={},u=[],d=!1;if(!_(e)){let r=e=>{d=!0;let[n,r]=yi(e,t,!0);l(c,n),r&&u.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!d)return b(e)&&a.set(e,i),i;if(p(s))for(let e=0;e<s.length;e++){let t=T(s[e]);bi(t)&&(c[t]=r)}else if(s)for(let e in s){let t=T(e);if(bi(t)){let n=s[e],r=c[t]=p(n)||_(n)?{type:n}:l({},n),i=r.type,a=!1,o=!0;if(p(i))for(let e=0;e<i.length;++e){let t=i[e],n=_(t)&&t.name;if(n===`Boolean`){a=!0;break}n===`String`&&(o=!1)}else a=_(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||f(r,`default`))&&u.push(t)}}let m=[c,u];return b(e)&&a.set(e,m),m}function bi(e){return e[0]!==`$`&&!ne(e)}var xi=e=>e===`_`||e===`_ctx`||e===`$stable`,Si=e=>p(e)?e.map(oa):[oa(e)],Ci=(e,t,n)=>{if(t._n)return t;let r=Fn((...e)=>Si(t(...e)),n);return r._c=!1,r},wi=(e,t,n)=>{let r=e._ctx;for(let n in e){if(xi(n))continue;let i=e[n];if(_(i))t[n]=Ci(n,i,r);else if(i!=null){let e=Si(i);t[n]=()=>e}}},Ti=(e,t)=>{let n=Si(t);e.slots.default=()=>n},Ei=(e,t,n)=>{for(let r in t)(n||!xi(r))&&(e[r]=t[r])},Di=(e,t,n)=>{let r=e.slots=fi();if(e.vnode.shapeFlag&32){let e=t._;e?(Ei(r,t,n),n&&se(r,`_`,e,!0)):wi(t,r)}else t&&Ti(e,t)},Oi=(e,t,n)=>{let{vnode:i,slots:a}=e,o=!0,s=r;if(i.shapeFlag&32){let e=t._;e?n&&e===1?o=!1:Ei(a,t,n):(o=!t.$stable,wi(t,a)),s=t}else t&&(Ti(e,t),s={default:1});if(o)for(let e in a)!xi(e)&&s[e]==null&&delete a[e]},ki=Vi;function Ai(e){return ji(e)}function ji(e,t){let n=j();n.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=a,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!$i(e,t)&&(r=_e(e),fe(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Hi:y(e,t,n,r);break;case Ui:b(e,t,n,r);break;case Wi:e??x(t,n,r,o);break;case z:D(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?O(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,be)}u!=null&&i?rr(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&rr(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ee(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ie(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ee=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&re(e.children,d,null,r,i,Mi(e,a),s,u),_&&Ln(e,null,r,`created`),te(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!ne(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&ua(f,r,e)}_&&Ln(e,null,r,`beforeMount`);let v=Pi(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&ki(()=>{try{f&&ua(f,r,e),v&&g.enter(d),_&&Ln(e,null,r,`mounted`)}finally{}},i)},te=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||Bi(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;te(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},re=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?sa(e[l]):oa(e[l]);v(null,c,t,n,r,i,a,o,s)}},ie=(e,t,n,i,a,o,s)=>{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=e.patchFlag&16;let m=e.props||r,h=t.props||r,g;if(n&&Ni(n,!1),(g=h.onVnodeBeforeUpdate)&&ua(g,n,t,e),f&&Ln(t,e,n,`beforeUpdate`),n&&Ni(n,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?T(e.dynamicChildren,d,l,n,i,Mi(t,a),o):s||ce(e,t,l,null,n,i,Mi(t,a),o,!1),u>0){if(u&16)E(l,m,h,n,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],i=m[r],o=h[r];(o!==i||r===`value`)&&c(l,r,i,o,a,n)}}u&1&&e.children!==t.children&&p(l,t.children)}else!s&&d==null&&E(l,m,h,n,a);((g=h.onVnodeUpdated)||f)&&ki(()=>{g&&ua(g,n,t,e),f&&Ln(t,e,n,`updated`)},i)},T=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el&&(c.type===z||!$i(c,l)||c.shapeFlag&198)?m(c.el):n;v(c,l,u,null,r,i,a,o,!0)}},E=(e,t,n,i,a)=>{if(t!==n){if(t!==r)for(let r in t)!ne(r)&&!(r in n)&&c(e,r,t[r],null,a,i);for(let r in n){if(ne(r))continue;let o=n[r],s=t[r];o!==s&&r!==`value`&&c(e,r,s,o,a,i)}`value`in n&&c(e,`value`,t.value,n.value,a)}},D=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),re(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(T(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Fi(e,t,!0)):ce(e,t,n,f,i,a,s,c,l)},O=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):ae(t,n,r,i,a,o,c):k(e,t,c)},ae=(e,t,n,r,i,a,o)=>{let s=e.component=pa(e,r,i);if(or(e)&&(s.ctx.renderer=be),Sa(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,se,o),!e.el){let r=s.subTree=U(Ui);b(null,r,t,n),e.placeholder=r.el}}else se(s,e,t,n,i,a,o)},k=(e,t,n)=>{let r=t.component=e.component;if(si(e,t,n)){if(r.asyncDep&&!r.asyncResolved){A(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},se=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Li(e);if(n){t&&(t.el=c.el,A(e,t,o)),n.asyncDep.then(()=>{ki(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Ni(e,!1),t?(t.el=c.el,A(e,t,o)):t=c,n&&oe(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&ua(d,s,t,c),Ni(e,!0);let f=ii(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),_e(p),e,i,a),t.el=f.el,u===null&&ui(e,f.el),r&&ki(r,i),(d=t.props&&t.props.onVnodeUpdated)&&ki(()=>ua(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=ar(t);if(Ni(e,!1),l&&oe(l),!m&&(o=c&&c.onVnodeBeforeMount)&&ua(o,d,t),Ni(e,!0),s&&Se){let t=()=>{e.subTree=ii(e),Se(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=ii(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&ki(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;ki(()=>ua(o,d,e),i)}(t.shapeFlag&256||d&&ar(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&ki(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ae(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Tn(u),Ni(e,!0),l()},A=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,hi(e,t.props,r,n),Oi(e,t.children,n),Ge(),On(e),Ke()},ce=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){ue(l,d,n,r,i,a,o,s,c);return}if(f&256){le(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ge(l,i,a),d!==l&&p(n,d)):u&16?m&16?ue(l,d,n,r,i,a,o,s,c):ge(l,i,a,!0):(u&8&&p(n,``),m&16&&re(d,n,r,i,a,o,s,c))},le=(e,t,n,r,a,o,s,c,l)=>{e||=i,t||=i;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;p<f;p++){let r=t[p]=l?sa(t[p]):oa(t[p]);v(e[p],r,n,null,a,o,s,c,l)}u>d?ge(e,a,o,!0,!1,f):re(t,n,r,a,o,s,c,l,f)},ue=(e,t,n,r,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let r=e[u],i=t[u]=l?sa(t[u]):oa(t[u]);if($i(r,i))v(r,i,n,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let r=e[f],i=t[p]=l?sa(t[p]):oa(t[p]);if($i(r,i))v(r,i,n,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,i=e<d?t[e].el:r;for(;u<=p;)v(null,t[u]=l?sa(t[u]):oa(t[u]),n,i,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)fe(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?sa(t[u]):oa(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let r=e[u];if(y>=b){fe(r,a,o,!0);continue}let i;if(r.key!=null)i=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&$i(r,t[_])){i=_;break}i===void 0?fe(r,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(r,t[i],n,null,a,o,s,c,l),y++)}let w=x?Ii(C):i;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,i=t[e],f=t[e+1],p=e+1<d?f.el||zi(f):r;C[u]===0?v(null,i,n,p,a,o,s,c,l):x&&(_<0||u!==w[_]?de(i,n,p,2):_--)}}},de=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){de(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,be);return}if(c===z){o(a,t,n);for(let e=0;e<u.length;e++)de(u[e],t,n,r);o(e.anchor,t,n);return}if(c===Wi){S(e,t,n);return}if(r!==2&&d&1&&l){if(r===0)l.persisted&&!a[Yn]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),ki(()=>l.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[Yn];a._isLeaving&&a[Yn](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},fe=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(Ge(),rr(s,null,n,e,!0),Ke()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!ar(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&ua(_,t,e),u&6)he(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Ln(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,be,r):l&&!l.hasOnce&&(a!==z||d>0&&d&64)?ge(l,t,n,!1,!0):(a===z&&d&384||!i&&u&16)&&ge(c,t,n),r&&pe(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&ki(()=>{_&&ua(_,t,e),h&&Ln(e,null,t,`unmounted`),v&&(e.el=null)},n)},pe=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===z){me(n,r);return}if(t===Wi){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},me=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},he=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Ri(c),Ri(l),r&&oe(r),i.stop(),a&&(a.flags|=8,fe(o,e,t,n)),s&&ki(s,t),ki(()=>{e.isUnmounted=!0},t)},ge=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)fe(e[o],t,n,r,i)},_e=e=>{if(e.shapeFlag&6)return _e(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[qn];return n?h(n):t},ve=!1,ye=(e,t,n)=>{let r;e==null?t._vnode&&(fe(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ve||=(ve=!0,On(r),kn(),!1)},be={p:v,um:fe,m:de,r:pe,mt:ae,mc:re,pc:ce,pbc:T,n:_e,o:e},xe,Se;return t&&([xe,Se]=t(be)),{render:ye,hydrate:xe,createApp:Zr(ye,xe)}}function Mi({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Ni({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Pi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Fi(e,t,n=!1){let r=e.children,i=t.children;if(p(r)&&p(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=sa(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Fi(t,a)),a.type===Hi&&(a.patchFlag===-1&&(a=i[e]=sa(a)),a.el=t.el),a.type===Ui&&!a.el&&(a.el=t.el)}}function Ii(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function Li(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Li(t)}function Ri(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function zi(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?zi(t.subTree):null}var Bi=e=>e.__isSuspense;function Vi(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):Dn(e)}var z=Symbol.for(`v-fgt`),Hi=Symbol.for(`v-txt`),Ui=Symbol.for(`v-cmt`),Wi=Symbol.for(`v-stc`),Gi=[],Ki=null;function B(e=!1){Gi.push(Ki=e?null:[])}function qi(){Gi.pop(),Ki=Gi[Gi.length-1]||null}var Ji=1;function Yi(e,t=!1){Ji+=e,e<0&&Ki&&t&&(Ki.hasOnce=!0)}function Xi(e){return e.dynamicChildren=Ji>0?Ki||i:null,qi(),Ji>0&&Ki&&Ki.push(e),e}function V(e,t,n,r,i,a){return Xi(H(e,t,n,r,i,a,!0))}function Zi(e,t,n,r,i){return Xi(U(e,t,n,r,i,!0))}function Qi(e){return e?e.__v_isVNode===!0:!1}function $i(e,t){return e.type===t.type&&e.key===t.key}var ea=({key:e})=>e??null,ta=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:v(e)||I(e)||_(e)?{i:Mn,r:e,k:t,f:!!n}:e);function H(e,t=null,n=null,r=0,i=null,a=e===z?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ea(t),ref:t&&ta(t),scopeId:Nn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Mn};return s?(ca(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=v(n)?8:16),Ji>0&&!o&&Ki&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Ki.push(c),c}var U=na;function na(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Tr)&&(e=Ui),Qi(e)){let r=ia(e,t,!0);return n&&ca(r,n),Ji>0&&!a&&Ki&&(r.shapeFlag&6?Ki[Ki.indexOf(e)]=r:Ki.push(r)),r.patchFlag=-2,r}if(Aa(e)&&(e=e.__vccOpts),t){t=ra(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=me(e)),b(n)&&(Gt(n)&&!p(n)&&(n=l({},n)),t.style=le(n))}let o=v(e)?1:Bi(e)?128:Jn(e)?64:b(e)?4:_(e)?2:0;return H(e,t,n,r,i,o,a,!0)}function ra(e){return e?Gt(e)||pi(e)?l({},e):e:null}function ia(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?la(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ea(l),ref:t&&t.ref?n&&a?p(a)?a.concat(ta(t)):[a,ta(t)]:ta(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==z?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ia(e.ssContent),ssFallback:e.ssFallback&&ia(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Qn(u,c.clone(u)),u}function aa(e=` `,t=0){return U(Hi,null,e,t)}function W(e=``,t=!1){return t?(B(),Zi(Ui,null,e)):U(Ui,null,e)}function oa(e){return e==null||typeof e==`boolean`?U(Ui):p(e)?U(z,null,e.slice()):Qi(e)?sa(e):U(Hi,null,String(e))}function sa(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ia(e)}function ca(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(p(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),ca(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!pi(t)?t._ctx=Mn:r===3&&Mn&&(Mn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(_(t)){if(r&65){ca(e,{default:t});return}t={default:t,_ctx:Mn},n=32}else t=String(t),r&64?(n=16,t=[aa(t)]):n=8;e.children=t,e.shapeFlag|=n}function la(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=me([t.class,r.class]));else if(e===`style`)t.style=le([t.style,r.style]);else if(s(e)){let n=t[e],i=r[e];i&&n!==i&&!(p(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!c(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function ua(e,t,n,r=null){pn(e,t,7,[n,r])}var da=Yr(),fa=0;function pa(e,t,n){let i=e.type,a=(t?t.appContext:e.appContext)||da,o={uid:fa++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Te(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:yi(i,a),emitsOptions:ni(i,a),emit:null,emitted:null,propsDefaults:r,inheritAttrs:i.inheritAttrs,ctx:r,data:r,props:r,attrs:r,slots:r,refs:r,setupState:r,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=ei.bind(null,o),e.ce&&e.ce(o),o}var ma=null,ha=()=>ma||Mn,ga,_a;{let e=j(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};ga=t(`__VUE_INSTANCE_SETTERS__`,e=>ma=e),_a=t(`__VUE_SSR_SETTERS__`,e=>xa=e)}var va=e=>{let t=ma;return ga(e),e.scope.on(),()=>{e.scope.off(),ga(t)}},ya=()=>{ma&&ma.scope.off(),ga(null)};function ba(e){return e.vnode.shapeFlag&4}var xa=!1;function Sa(e,t=!1,n=!1){t&&_a(t);let{props:r,children:i}=e.vnode,a=ba(e);mi(e,r,a,t),Di(e,i,n||t);let o=a?Ca(e,t):void 0;return t&&_a(!1),o}function Ca(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Mr);let{setup:r}=n;if(r){Ge();let n=e.setupContext=r.length>1?Da(e):null,i=va(e),a=fn(r,e,0,[e.props,n]),o=x(a);if(Ke(),i(),(o||e.sp)&&!ar(e)&&er(e),o){if(a.then(ya,ya),t)return a.then(n=>{_a(!0);try{wa(e,n,t)}finally{_a(!1)}}).catch(t=>{mn(t,e,0)});e.asyncDep=a}else wa(e,a,t)}else Ta(e,t)}function wa(e,t,n){_(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=$t(t)),Ta(e,n)}function Ta(e,t,n){let r=e.type;e.render||=r.render||a;{let t=va(e);Ge();try{Fr(e)}finally{Ke(),t()}}}var Ea={get(e,t){return nt(e,`get`,``),e[t]}};function Da(e){return{attrs:new Proxy(e.attrs,Ea),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Oa(e){return e.exposed?e.exposeProxy||=new Proxy($t(Kt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ar)return Ar[n](e)},has(e,t){return t in e||t in Ar}}):e.proxy}function ka(e,t=!0){return _(e)?e.displayName||e.name:e.name||t&&e.__name}function Aa(e){return _(e)&&`__vccOpts`in e}var G=(e,t)=>an(e,t,xa);function ja(e,t,n){try{Yi(-1);let r=arguments.length;return r===2?b(t)&&!p(t)?Qi(t)?U(e,null,[t]):U(e,t):U(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Qi(n)&&(n=[n]),U(e,t,n))}finally{Yi(1)}}var Ma=`3.5.42`,Na=void 0,Pa=typeof window<`u`&&window.trustedTypes;if(Pa)try{Na=Pa.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Fa=Na?e=>Na.createHTML(e):e=>e,Ia=`http://www.w3.org/2000/svg`,La=`http://www.w3.org/1998/Math/MathML`,Ra=typeof document<`u`?document:null,za=Ra&&Ra.createElement(`template`),Ba={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Ra.createElementNS(Ia,e):t===`mathml`?Ra.createElementNS(La,e):n?Ra.createElement(e,{is:n}):Ra.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Ra.createTextNode(e),createComment:e=>Ra.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ra.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{za.innerHTML=Fa(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=za.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Va=Symbol(`_vtc`);function Ha(e,t,n){let r=e[Va];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Ua=Symbol(`_vod`),Wa=Symbol(`_vsh`),Ga=Symbol(``),Ka=/(?:^|;)\s*display\s*:/;function qa(e,t,n){let r=e.style,i=v(n),a=!1;if(n&&!i){if(t){if(v(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Ya(r,t,``)}else for(let e in t)n[e]??Ya(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Ya(r,i,``):$a(e,i,!v(t)&&t?t[i]:void 0,o)||Ya(r,i,o)}}else if(i){if(t!==n){let e=r[Ga];e&&(n+=`;`+e),r.cssText=n,a=Ka.test(n)}}else t&&e.removeAttribute(`style`);Ua in e&&(e[Ua]=a?r.display:``,e[Wa]&&(r.display=`none`))}var Ja=/\s*!important$/;function Ya(e,t,n){if(p(n))n.forEach(n=>Ya(e,t,n));else if(n??=``,t.startsWith(`--`))Ja.test(n)?e.setProperty(t,n.replace(Ja,``),`important`):e.setProperty(t,n);else{let r=Qa(e,t);Ja.test(n)?e.setProperty(D(r),n.replace(Ja,``),`important`):e[r]=n}}var Xa=[`Webkit`,`Moz`,`ms`],Za={};function Qa(e,t){let n=Za[t];if(n)return n;let r=T(t);if(r!==`filter`&&r in e)return Za[t]=r;r=O(r);for(let n=0;n<Xa.length;n++){let i=Xa[n]+r;if(i in e)return Za[t]=i}return t}function $a(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&v(r)&&n===r}var eo=`http://www.w3.org/1999/xlink`;function to(e,t,n,r,i,a=ge(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(eo,t.slice(6,t.length)):e.setAttributeNS(eo,t,n):n==null||a&&!_e(n)?e.removeAttribute(t):e.setAttribute(t,a?``:y(n)?String(n):n)}function no(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Fa(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=_e(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function ro(e,t,n,r){e.addEventListener(t,n,r)}function io(e,t,n,r){e.removeEventListener(t,n,r)}var ao=Symbol(`_vei`);function oo(e,t,n,r,i=null){let a=e[ao]||(e[ao]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=lo(t);r?ro(e,n,a[t]=mo(r,i),s):o&&(io(e,n,o,s),a[t]=void 0)}}var so=/(Once|Passive|Capture)$/,co=/^on:?(?:Once|Passive|Capture)$/;function lo(e){let t,n;for(;(n=e.match(so))&&!co.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):D(e.slice(2)),t]}var uo=0,fo=Promise.resolve(),po=()=>uo||=(fo.then(()=>uo=0),Date.now());function mo(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(p(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&pn(e,t,5,a)}}else pn(r,t,5,[e])};return n.value=e,n.attached=po(),n}var ho=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,go=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Ha(e,r,o):t===`style`?qa(e,n,r):s(t)?c(t)||oo(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):_o(e,t,r,o))?(no(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&to(e,t,r,o,a,t!==`value`)):e._isVueCE&&(vo(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!v(r)))?no(e,T(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),to(e,t,r,o))};function _o(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&ho(t)&&_(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return ho(t)&&v(n)?!1:t in e}function vo(e,t){let n=e._def.props;if(!n)return!1;let r=T(t);return Array.isArray(n)?n.some(e=>T(e)===r):Object.keys(n).some(e=>T(e)===r)}var yo=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return p(t)?e=>oe(t,e):t};function bo(e){e.target.composing=!0}function xo(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var So=Symbol(`_assign`),Co=Symbol(`_initialValue`);function wo(e,t,n){return t&&(e=e.trim()),n&&(e=A(e)),e}var To={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[Co]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[Co]=e.defaultValue.replace(/\r\n?/g,`
|
||
`))),e[So]=yo(i);let a=r||i.props&&i.props.type===`number`;ro(e,t?`change`:`input`,t=>{t.target.composing||e[So](wo(e.value,n,a))}),(n||a)&&ro(e,`change`,()=>{e.value=wo(e.value,n,a)}),t||(ro(e,`compositionstart`,bo),ro(e,`compositionend`,xo),ro(e,`change`,xo))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[Co];delete e[Co],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[So](wo(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[So]=yo(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?A(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Eo={deep:!0,created(e,t,n){e[So]=yo(n),ro(e,`change`,()=>{let t=e._modelValue,n=jo(e),r=e.checked,i=e[So];if(p(t)){let e=xe(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(h(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Mo(e,r))})},mounted:Do,beforeUpdate(e,t,n){e[So]=yo(n),Do(e,t,n)}};function Do(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(p(t))i=xe(t,r.props.value)>-1;else if(h(t))i=t.has(r.props.value);else{if(t===n)return;i=be(t,Mo(e,!0))}e.checked!==i&&(e.checked=i)}var Oo={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,ro(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?A(jo(e)):jo(e)),r=e.multiple,i=r?h(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?p(i)?t.slice():t:i];try{e[So](i)}finally{Cn(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[So]=yo(r)},mounted(e,{value:t}){Ao(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[So]=yo(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!ko(t,n[1],n[0]))&&Ao(e,t)}};function ko(e,t,n){if(!n||p(e))return be(e,t);if(h(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function Ao(e,t){let n=e.multiple,r=p(t);if(!(n&&!r&&!h(t))){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=jo(a);if(n){if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):xe(t,o)>-1}else a.selected=t.has(o)}else if(be(jo(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function jo(e){return`_value`in e?e._value:e.value}function Mo(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var No=[`ctrl`,`shift`,`alt`,`meta`],Po={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)=>No.some(n=>e[`${n}Key`]&&!t.includes(n))},Fo=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Po[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Io=l({patchProp:go},Ba),Lo;function Ro(){return Lo||=Ai(Io)}var zo=((...e)=>{let t=Ro().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Vo(e);if(!r)return;let i=t._component;!_(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Bo(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Bo(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Vo(e){return v(e)?document.querySelector(e):e}var Ho=typeof window<`u`,Uo,Wo=e=>Uo=e,Go=Symbol();function Ko(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var qo=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function Jo(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function Yo(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){es(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function Xo(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Zo(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var Qo=typeof navigator==`object`?navigator:{userAgent:``},$o=/Macintosh/.test(Qo.userAgent)&&/AppleWebKit/.test(Qo.userAgent)&&!/Safari/.test(Qo.userAgent),es=Ho?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!$o?ts:`msSaveOrOpenBlob`in Qo?ns:rs:()=>{};function ts(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?Zo(r):Xo(r.href)?Yo(e,t,n):(r.target=`_blank`,Zo(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Zo(r)},0))}function ns(e,t=`download`,n){if(typeof e==`string`){if(Xo(e))Yo(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){Zo(t)})}}else navigator.msSaveOrOpenBlob(Jo(e,n),t)}function rs(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return Yo(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(qo.HTMLElement))||`safari`in qo,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||$o)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:is}=Object;function as(){let e=Ee(!0),t=e.run(()=>L({})),n=[],r=[],i=Kt({install(e){Wo(i),i._a=e,e.provide(Go,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var os=()=>{};function ss(e,t,n,r=os){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&De()&&Oe(i),i}function cs(e,...t){e.forEach(e=>{e(...t)})}var ls=e=>e(),us=Symbol(),ds=Symbol();function fs(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!Object.hasOwn(t,n))continue;let r=t[n],i=e[n];e[n]=Ko(i)&&Ko(r)&&Object.hasOwn(e,n)&&!I(r)&&!Ht(r)?fs(i,r):r}return e}var ps=Symbol();function ms(e){return!e||typeof e!=`object`||!Object.hasOwn(e,ps)}var{assign:hs}=Object;function gs(e){return!!(I(e)&&e.effect)}function _s(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),hs(en(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=Kt(G(()=>{Wo(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=vs(e,l,t,n,r,!0),c}function vs(e,t,n={},r,i,a){let o,s=hs({actions:{}},n),c={deep:!0},l,u,d=new Set,f=new Set,p,m=r.state.value[e];!a&&!m&&(r.state.value[e]={});let h;function g(t){let n;l=u=!1,typeof t==`function`?(t(r.state.value[e]),n={type:`patch function`,storeId:e,events:p}):(fs(r.state.value[e],t),n={type:`patch object`,payload:t,storeId:e,events:p});let i=h=Symbol();Cn().then(()=>{h===i&&(l=!0)}),u=!0,cs(d,n,r.state.value[e])}let _=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{hs(e,t)})}:os;function v(){o.stop(),d.clear(),f.clear(),r._s.delete(e)}let y=(t,n=``)=>{if(us in t)return t[ds]=n,t;let i=function(){Wo(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}cs(f,{args:n,name:i[ds],store:b,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:b,n)}catch(e){throw cs(o,e),e}return l instanceof Promise?l.then(e=>(cs(a,e),e)).catch(e=>(cs(o,e),Promise.reject(e))):(cs(a,l),l)};return i[us]=!0,i[ds]=n,i},b=Rt({_p:r,$id:e,$onAction:ss.bind(null,f),$patch:g,$reset:_,$subscribe(t,n={}){if(d.has(t))return os;let i=ss(d,t,n.detached,()=>a()),a=o.run(()=>Un(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:`direct`,events:p},r)},hs({},c,n)));return i},$dispose:v});r._s.set(e,b);let x=(r._a&&r._a.runWithContext||ls)(()=>r._e.run(()=>(o=Ee()).run(()=>t({action:y}))));for(let t in x){let n=x[t];I(n)&&!gs(n)||Ht(n)?a||(m&&ms(n)&&(I(n)?n.value=m[t]:((n instanceof Set||n instanceof Map)&&n.clear(),fs(n,m[t]))),r.state.value[e][t]=n):typeof n==`function`&&(x[t]=y(n,t),s.actions[t]=n)}return hs(b,x),hs(F(b),x),Object.defineProperty(b,"$state",{get:()=>r.state.value[e],set:e=>{g(t=>{hs(t,e)})}}),r._p.forEach(e=>{let t=o.run(()=>e({store:b,app:r._a,pinia:r,options:s}));hs(b,t)}),m&&a&&n.hydrate&&n.hydrate(b.$state,m),l=!0,u=!0,b}function ys(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=Bn();return n||=o?zn(Go,null):null,n&&Wo(n),n=Uo,n._s.has(e)||(i?vs(e,t,r,n):_s(e,r,n)),n._s.get(e)}return a.$id=e,a}var bs={class:`app`},xs={class:`topbar`},Ss={class:`nav-links`},Cs=$n({__name:`App`,setup(e){return(e,t)=>{let n=wr(`router-link`),r=wr(`router-view`);return B(),V(`div`,bs,[H(`nav`,xs,[t[6]||=H(`span`,{class:`brand`},`🤖 端云协同 LLM 系统`,-1),H(`div`,Ss,[U(n,{to:`/chat`},{default:Fn(()=>[...t[0]||=[aa(`💬 对话`,-1)]]),_:1}),U(n,{to:`/collaboration`},{default:Fn(()=>[...t[1]||=[aa(`🔄 协作`,-1)]]),_:1}),U(n,{to:`/agent`},{default:Fn(()=>[...t[2]||=[aa(`🤖 智能体`,-1)]]),_:1}),U(n,{to:`/review`},{default:Fn(()=>[...t[3]||=[aa(`🔍 检验`,-1)]]),_:1}),U(n,{to:`/metrics`},{default:Fn(()=>[...t[4]||=[aa(`📊 指标`,-1)]]),_:1}),U(n,{to:`/settings`},{default:Fn(()=>[...t[5]||=[aa(`⚙️ 设置`,-1)]]),_:1})])]),U(r,{class:`content`})])}}}),ws=typeof document<`u`;function Ts(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Es(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Ts(e.default)}var K=Object.assign;function Ds(e,t){let n={};for(let r in t){let i=t[r];n[r]=ks(i)?i.map(e):e(i)}return n}var Os=()=>{},ks=Array.isArray;function As(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var js=/#/g,Ms=/&/g,Ns=/\//g,Ps=/=/g,Fs=/\?/g,Is=/\+/g,Ls=/%5B/g,Rs=/%5D/g,zs=/%5E/g,Bs=/%60/g,Vs=/%7B/g,Hs=/%7C/g,Us=/%7D/g,Ws=/%20/g;function Gs(e){return e==null?``:encodeURI(``+e).replace(Hs,`|`).replace(Ls,`[`).replace(Rs,`]`)}function Ks(e){return Gs(e).replace(Vs,`{`).replace(Us,`}`).replace(zs,`^`)}function qs(e){return Gs(e).replace(Is,`%2B`).replace(Ws,`+`).replace(js,`%23`).replace(Ms,`%26`).replace(Bs,"`").replace(Vs,`{`).replace(Us,`}`).replace(zs,`^`)}function Js(e){return qs(e).replace(Ps,`%3D`)}function Ys(e){return Gs(e).replace(js,`%23`).replace(Fs,`%3F`)}function Xs(e){return Ys(e).replace(Ns,`%2F`)}function Zs(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Qs=/\/$/,$s=e=>e.replace(Qs,``);function ec(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=cc(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:Zs(o)}}function tc(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function nc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function rc(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&ic(t.matched[r],n.matched[i])&&ac(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ic(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ac(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!oc(e[n],t[n]))return!1;return!0}function oc(e,t){return ks(e)?sc(e,t):ks(t)?sc(t,e):e?.valueOf()===t?.valueOf()}function sc(e,t){return ks(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function cc(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`){if(s===`..`)a>1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var lc={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},uc=function(e){return e.pop=`pop`,e.push=`push`,e}({}),dc=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function fc(e){if(!e){if(ws){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),$s(e)}var pc=/^[^#]+#/;function mc(e,t){return e.replace(pc,`#`)+t}function hc(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var gc=()=>({left:window.scrollX,top:window.scrollY});function _c(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=hc(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function vc(e,t){return(history.state?history.state.position-t:-1)+e}var yc=new Map;function bc(e,t){yc.set(e,t)}function xc(e){let t=yc.get(e);return yc.delete(e),t}function Sc(e){return typeof e==`string`||e&&typeof e==`object`}function Cc(e){return typeof e==`string`||typeof e==`symbol`}var q=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),wc=Symbol(``);q.MATCHER_NOT_FOUND,q.NAVIGATION_GUARD_REDIRECT,q.NAVIGATION_ABORTED,q.NAVIGATION_CANCELLED,q.NAVIGATION_DUPLICATED;function Tc(e,t){return K(Error(),{type:e,[wc]:!0},t)}function Ec(e,t){return e instanceof Error&&wc in e&&(t==null||!!(e.type&t))}function Dc(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(Is,` `),i=r.indexOf(`=`),a=Zs(i<0?r:r.slice(0,i)),o=i<0?null:Zs(r.slice(i+1));if(a in t){let e=t[a];ks(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Oc(e){let t=``;for(let n in e){let r=e[n];if(n=Js(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(ks(r)?r.map(e=>e&&qs(e)):[r&&qs(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function kc(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=ks(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}var Ac=Symbol(``),jc=Symbol(``),Mc=Symbol(``),Nc=Symbol(``),Pc=Symbol(``);function Fc(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ic(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(Tc(q.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Sc(e)?c(Tc(q.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Lc(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e])){if(Ts(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Ic(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Es(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Ic(c,n,r,o,e,i)()}))}}}return a}function Rc(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>ic(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>ic(e,s))||i.push(s))}return[n,r,i]}var zc=()=>location.protocol+`//`+location.host;function Bc(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),nc(n,``)}return nc(n,e)+r+i}function Vc(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Bc(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:uc.pop,direction:u?u>0?dc.forward:dc.back:dc.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(K({},e.state,{scroll:gc()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Hc(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?gc():null}}function Uc(e){let{history:t,location:n}=window,r={value:Bc(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:zc()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,K({},t.state,Hc(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=K({},i.value,t.state,{forward:e,scroll:gc()});a(o.current,o,!0),a(e,K({},Hc(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Wc(e){e=fc(e);let t=Uc(e),n=Vc(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=K({location:``,base:e,go:r,createHref:mc.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var Gc=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),J=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(J||{}),Kc={type:Gc.Static,value:``},qc=/[a-zA-Z0-9_]/;function Jc(e){if(!e)return[[]];if(e===`/`)return[[Kc]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=J.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===J.Static?a.push({type:Gc.Static,value:l}):n===J.Param||n===J.ParamRegExp||n===J.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Gc.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==J.ParamRegExp){r=n,n=J.EscapeNext;continue}switch(n){case J.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=J.Param):f();break;case J.EscapeNext:f(),n=r;break;case J.Param:c===`(`?n=J.ParamRegExp:qc.test(c)?f():(d(),n=J.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case J.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=J.ParamRegExpEnd:u+=c;break;case J.ParamRegExpEnd:d(),n=J.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}}return n===J.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Yc=`[^/]+?`,Xc={sensitive:!1,strict:!1,start:!0,end:!0},Zc=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}(Zc||{}),Qc=/[.+*?^${}()[\]/\\]/g;function $c(e,t){let n=K({},Xc,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[Zc.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=Zc.Segment+(n.sensitive?Zc.BonusCaseSensitive:0);if(o.type===Gc.Static)r||(i+=`/`),i+=o.value.replace(Qc,`\\$&`),s+=Zc.Static;else if(o.type===Gc.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Yc;if(u!==Yc){s+=Zc.BonusCustomRegExp;try{`${u}`}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=Zc.Dynamic,c&&(s+=Zc.BonusOptional),n&&(s+=Zc.BonusRepeatable),u===`.*`&&(s+=Zc.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=Zc.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===Gc.Static)n+=e.value;else if(e.type===Gc.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(ks(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=ks(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function el(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===Zc.Static+Zc.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Zc.Static+Zc.Segment?1:-1:0}function tl(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=el(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(nl(r))return 1;if(nl(i))return-1}return i.length-r.length}function nl(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var rl={strict:!1,end:!0,sensitive:!1};function il(e,t,n){let r=K($c(Jc(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function al(e,t){let n=[],r=new Map;t=As(rl,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=sl(e);s.aliasOf=r&&r.record;let l=As(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(sl(K({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=il(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!ll(d)&&o(e.name)),pl(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:Os}function o(e){if(Cc(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=dl(e,n);n.splice(t,0,e),e.record.name&&!ll(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw Tc(q.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=K(ol(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&ol(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Tc(q.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=K({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:ul(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function ol(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function sl(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:cl(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 cl(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function ll(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ul(e){return e.reduce((e,t)=>K(e,t.meta),{})}function dl(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;tl(e,t[i])<0?r=i:n=i+1}let i=fl(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function fl(e){let t=e;for(;t=t.parent;)if(pl(t)&&tl(e,t)===0)return t}function pl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ml(e){let t=zn(Mc),n=zn(Nc),r=G(()=>{let n=R(e.to);return t.resolve(n)}),i=G(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(ic.bind(null,i));if(o>-1)return o;let s=yl(e[t-2]);return t>1&&yl(i)===s&&a[a.length-1].path!==s?a.findIndex(ic.bind(null,e[t-2])):o}),a=G(()=>i.value>-1&&vl(n.params,r.value.params)),o=G(()=>i.value>-1&&i.value===n.matched.length-1&&ac(n.params,r.value.params));function s(n={}){if(_l(n)){let n=t[R(e.replace)?`replace`:`push`](R(e.to)).catch(Os);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:G(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function hl(e){return e.length===1?e[0]:e}var gl=$n({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:ml,setup(e,{slots:t}){let n=Rt(ml(e)),{options:r}=zn(Mc),i=G(()=>({[bl(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[bl(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&hl(t.default(n));return e.custom?r:ja(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function _l(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(e.button===void 0||e.button===0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function vl(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!ks(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function yl(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var bl=(e,t,n)=>e??t??n,xl=$n({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=zn(Pc),i=G(()=>e.route||r.value),a=zn(jc,0),o=G(()=>{let e=R(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=G(()=>i.value.matched[o.value]);Rn(jc,G(()=>o.value+1)),Rn(Ac,s),Rn(Pc,i);let c=L();return Un(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!ic(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return Sl(n.default,{Component:l,route:r});let u=o.props[a],d=ja(l,K({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return Sl(n.default,{Component:d,route:r})||d}}});function Sl(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Cl=xl;function wl(e){let t=al(e.routes,e),n=e.parseQuery||Dc,r=e.stringifyQuery||Oc,i=e.history,a=Fc(),o=Fc(),s=Fc(),c=Yt(lc),l=lc;ws&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=Ds.bind(null,e=>``+e),d=Ds.bind(null,Xs),f=Ds.bind(null,Zs);function p(e,n){let r,i;return Cc(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=K({},a||c.value),typeof e==`string`){let r=ec(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return K(r,o,{params:f(o.params),hash:Zs(r.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=K({},e,{path:ec(n,e.path,a.path).path});else{let t=K({},e.params);for(let e in t)t[e]??delete t[e];o=K({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=tc(r,K({},e,{hash:Ks(l),path:s.path})),m=i.createHref(p);return K({fullPath:p,hash:l,query:r===Oc?kc(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?ec(n,e,c.value.path):K({},e)}function y(e,t){if(l!==e)return Tc(q.NAVIGATION_CANCELLED,{from:t,to:e})}function b(e){return C(e)}function x(e){return b(K(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),K({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C(K(v(u),{state:typeof u==`object`?K({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&rc(r,i,n)&&(f=Tc(q.NAVIGATION_DUPLICATED,{to:d,from:i}),se(i,i,!0,!1)),(f?Promise.resolve(f):te(d,i)).catch(e=>Ec(e)?Ec(e,q.NAVIGATION_GUARD_REDIRECT)?e:oe(e):ae(e,d,i)).then(e=>{if(e){if(Ec(e,q.NAVIGATION_GUARD_REDIRECT))return C(K({replace:s},v(e.to),{state:typeof e.to==`object`?K({},a,e.to.state):a,force:o}),t||d)}else e=re(d,i,!0,s,a);return ne(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function ee(e){let t=j.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function te(e,t){let n,[r,i,s]=Rc(e,t);n=Lc(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Ic(r,e,t))});let c=w.bind(null,e,t);return n.push(c),ue(n).then(()=>{n=[];for(let r of a.list())n.push(Ic(r,e,t));return n.push(c),ue(n)}).then(()=>{n=Lc(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Ic(r,e,t))});return n.push(c),ue(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter){if(ks(r.beforeEnter))for(let i of r.beforeEnter)n.push(Ic(i,e,t));else n.push(Ic(r.beforeEnter,e,t))}return n.push(c),ue(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Lc(s,`beforeRouteEnter`,e,t,ee),n.push(c),ue(n))).then(()=>{n=[];for(let r of o.list())n.push(Ic(r,e,t));return n.push(c),ue(n)}).catch(e=>Ec(e,q.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function ne(e,t,n){s.list().forEach(r=>ee(()=>r(e,t,n)))}function re(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===lc,l=ws?history.state:{};n&&(r||s?i.replace(e.fullPath,K({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,se(e,t,n,s),oe()}let ie;function T(){ie||=i.listen((e,t,n)=>{if(!le.listening)return;let r=_(e),a=S(r,le.currentRoute.value);if(a){C(K(a,{replace:!0,force:!0}),r).catch(Os);return}l=r;let o=c.value;ws&&bc(vc(o.fullPath,n.delta),gc()),te(r,o).catch(e=>Ec(e,q.NAVIGATION_ABORTED|q.NAVIGATION_CANCELLED)?e:Ec(e,q.NAVIGATION_GUARD_REDIRECT)?(C(K(v(e.to),{force:!0}),r).then(e=>{Ec(e,q.NAVIGATION_ABORTED|q.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===uc.pop&&i.go(-1,!1)}).catch(Os),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ae(e,r,o))).then(e=>{e||=re(r,o,!1),e&&(n.delta&&!Ec(e,q.NAVIGATION_CANCELLED)?i.go(-n.delta,!1):n.type===uc.pop&&Ec(e,q.NAVIGATION_ABORTED|q.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),ne(r,o,e)}).catch(Os)})}let E=Fc(),D=Fc(),O;function ae(e,t,n){oe(e);let r=D.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function k(){return O&&c.value!==lc?Promise.resolve():new Promise((e,t)=>{E.add([e,t])})}function oe(e){return O||(O=!e,T(),E.list().forEach(([t,n])=>e?n(e):t()),E.reset()),e}function se(t,n,r,i){let{scrollBehavior:a}=e;if(!ws||!a)return Promise.resolve();let o=!r&&xc(vc(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return Cn().then(()=>a(t,n,o)).then(e=>e&&_c(e)).catch(e=>ae(e,t,n))}let A=e=>i.go(e),ce,j=new Set,le={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:A,back:()=>A(-1),forward:()=>A(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:D.add,isReady:k,install(e){e.component(`RouterLink`,gl),e.component(`RouterView`,Cl),e.config.globalProperties.$router=le,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>R(c)}),ws&&!ce&&c.value===lc&&(ce=!0,b(i.location).catch(e=>{}));let t={};for(let e in lc)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(Mc,le),e.provide(Nc,zt(t)),e.provide(Pc,c);let n=e.unmount;j.add(e),e.unmount=function(){j.delete(e),j.size<1&&(l=lc,ie&&ie(),ie=null,c.value=lc,ce=!1,O=!1),n()}}};function ue(e){return e.reduce((e,t)=>e.then(()=>ee(t)),Promise.resolve())}return le}function Tl(e,t){return function(){return e.apply(t,arguments)}}var{toString:El}=Object.prototype,{getPrototypeOf:Dl}=Object,{iterator:Ol,toStringTag:kl}=Symbol,Al=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),jl=e=>typeof e==`string`&&(e===`__proto__`||e===`constructor`||e===`prototype`),Ml=(e,t,n)=>e===Object.prototype||!n&&t===null,Nl=e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(jl(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&n.writable===!0})},Pl=(e,t)=>{let n=e,r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);let i=Dl(n);if(Ml(n,i,n===e))return!1;if(Al(n,t))return!0;n=i}return!1},Fl=(e,t)=>e!=null&&Pl(e,t)?e[t]:void 0,Il=e=>{if(e==null||typeof e!=`object`&&typeof e!=`function`)return e;let t=Dl(e);if(t===null&&Nl(e))return e;let n=Object.create(null),r=Object.create(null),i=[],a=e;for(;a!=null&&i.indexOf(a)===-1;){i.push(a);let o=a===e?t:Dl(a);if(Ml(a,o,a===e))break;let s=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(a));for(let t of s)jl(t)||Al(r,t)||(n[t]=e[t],r[t]=!0);a=o}return n},Ll=(e=>t=>{let n=El.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Rl=e=>(e=e.toLowerCase(),t=>Ll(t)===e),zl=e=>t=>typeof t===e,{isArray:Bl}=Array,Vl=zl(`undefined`);function Hl(e){return e!==null&&!Vl(e)&&e.constructor!==null&&!Vl(e.constructor)&&Kl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Ul=Rl(`ArrayBuffer`);function Wl(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ul(e.buffer),t}var Gl=zl(`string`),Kl=zl(`function`),ql=zl(`number`),Jl=e=>typeof e==`object`&&!!e,Yl=e=>e===!0||e===!1,Xl=e=>{if(!Jl(e))return!1;let t=Dl(e);return(t===null||t===Object.prototype||Dl(t)===null)&&!Pl(e,kl)&&!Pl(e,Ol)},Zl=e=>{if(!Jl(e)||Hl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Ql=Rl(`Date`),$l=Rl(`File`),eu=e=>!!(e&&e.uri!==void 0),tu=e=>e&&e.getParts!==void 0,nu=Rl(`Blob`),ru=Rl(`FileList`),iu=Rl(`Set`),au=e=>Jl(e)&&Kl(e.pipe);function ou(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var su=ou(),cu=su.FormData===void 0?void 0:su.FormData,lu=e=>{if(!e)return!1;if(cu&&e instanceof cu)return!0;let t=Dl(e);if(!t||t===Object.prototype||!Kl(e.append))return!1;let n=Ll(e);return n===`formdata`||n===`object`&&Kl(e.toString)&&e.toString()===`[object FormData]`},uu=Rl(`URLSearchParams`),[du,fu,pu,mu]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(Rl),hu=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function gu(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),Bl(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Hl(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function _u(e,t){if(Hl(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-->0;)if(i=n[r],t===i.toLowerCase())return i;return null}var vu=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,yu=e=>!Vl(e)&&e!==vu;function bu(...e){let{caseless:t,skipUndefined:n}=yu(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&_u(r,i)||i,o=Al(r,a)?r[a]:void 0;Xl(o)&&Xl(e)?r[a]=bu(o,e):Xl(e)?r[a]=bu({},e):Bl(e)?r[a]=e.slice():(!n||!Vl(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||Hl(n)||(gu(n,i),typeof n!=`object`||Bl(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];Mu.call(n,t)&&i(n[t],t)}}return r}var xu=(e,t,n,{allOwnKeys:r}={})=>(gu(t,(t,r)=>{n&&Kl(t)?Object.defineProperty(e,r,{__proto__:null,value:Tl(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Su=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Cu=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},wu=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-->0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Dl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Tu=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},Eu=e=>{if(!e)return null;if(Bl(e))return e;let t=e.length;if(!ql(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},Du=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&Dl(Uint8Array)),Ou=(e,t)=>{let n=(e&&e[Ol]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},ku=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Au=Rl(`HTMLFormElement`),ju=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:Mu}=Object.prototype,Nu=Rl(`RegExp`),Pu=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};gu(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Fu=e=>{Pu(e,(t,n)=>{if(Kl(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(Kl(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},Iu=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Bl(e)?r(e):r(String(e).split(t)),n},Lu=()=>{},Ru=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function zu(e){return!!(e&&Kl(e.append)&&e[kl]===`FormData`&&e[Ol])}var Bu=e=>{let t=new WeakSet,n=e=>{if(Jl(e)){if(t.has(e))return;if(Hl(e))return e;if(!(`toJSON`in e)){t.add(e);let r;if(iu(e)){r=[];for(let t of e){let e=n(t);!Vl(e)&&r.push(e)}}else r=Bl(e)?[]:{},gu(e,(e,t)=>{let i=n(e);!Vl(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},Vu=Rl(`AsyncFunction`),Hu=e=>e&&(Jl(e)||Kl(e))&&Kl(e.then)&&Kl(e.catch),Uu=((e,t)=>e?setImmediate:t?((e,t)=>(vu.addEventListener(`message`,({source:n,data:r})=>{n===vu&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),vu.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,Kl(vu.postMessage)),Wu=typeof queueMicrotask<`u`?queueMicrotask.bind(vu):typeof process<`u`&&process.nextTick||Uu,Gu=e=>e!=null&&Kl(e[Ol]),Y={isArray:Bl,isArrayBuffer:Ul,isBuffer:Hl,isFormData:lu,isArrayBufferView:Wl,isString:Gl,isNumber:ql,isBoolean:Yl,isObject:Jl,isPlainObject:Xl,isEmptyObject:Zl,isReadableStream:du,isRequest:fu,isResponse:pu,isHeaders:mu,isUndefined:Vl,isDate:Ql,isFile:$l,isReactNativeBlob:eu,isReactNative:tu,isBlob:nu,isRegExp:Nu,isFunction:Kl,isStream:au,isURLSearchParams:uu,isTypedArray:Du,isFileList:ru,forEach:gu,merge:bu,extend:xu,trim:hu,stripBOM:Su,inherits:Cu,toFlatObject:wu,kindOf:Ll,kindOfTest:Rl,endsWith:Tu,toArray:Eu,forEachEntry:Ou,matchAll:ku,isHTMLForm:Au,hasOwnProperty:Al,hasOwnProp:Al,hasOwnInPrototypeChain:Pl,getSafeProp:Fl,toSafeFlatObject:Il,reduceDescriptors:Pu,freezeMethods:Fu,toObjectSet:Iu,toCamelCase:ju,noop:Lu,toFiniteNumber:Ru,findKey:_u,global:vu,isContextDefined:yu,isSpecCompliantForm:zu,toJSONObject:Bu,isAsyncFn:Vu,isThenable:Hu,setImmediate:Uu,asap:Wu,isIterable:Gu,isSafeIterable:e=>e!=null&&Pl(e,Ol)&&Gu(e)},Ku=Y.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),qu=e=>{let t={},n,r,i;return e&&e.split(`
|
||
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();let a=Y.hasOwnProp(t,n);!n||a&&Y.hasOwnProp(Ku,n)||(n===`set-cookie`?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+`, `+r:r)}),t};function Ju(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var Yu=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),Xu=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function Zu(e,t){return Y.isArray(e)?e.map(e=>Zu(e,t)):Ju(String(e).replace(t,``))}var Qu=e=>Zu(e,Yu),$u=e=>Zu(e,Xu);function ed(e){let t=Object.create(null);return Y.forEach(e.toJSON(),(e,n)=>{t[n]=$u(e)}),t}var td=Symbol(`internals`);function nd(e){return e&&String(e).trim().toLowerCase()}function rd(e){return e===!1||e==null?e:Y.isArray(e)?e.map(rd):Qu(String(e))}function id(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var ad=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function od(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}function sd(e){let t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n=``;for(let r=1;r<t;r++){let i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function cd(e){let t=Object.create(null),n=String(e),r=0,i=!1,a=!1;function o(e){let i=od(n.slice(r,e)),a=i.indexOf(`=`);if(a<1)return;let o=od(i.slice(0,a));if(!ad.test(o))return;let s=o.toLowerCase();if(s===`__proto__`||s===`constructor`||s===`prototype`)return;let c=od(i.slice(a+1));t[s]=sd(c)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?a?a=!1:t===92?a=!0:t===34&&(i=!1):t===34?i=!0:(t===44||t===59)&&(o(e),r=e+1)}return o(n.length),t}var ld=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ud(e,t,n,r,i){if(Y.isFunction(r))return r.call(this,t,n);if(i&&(t=n),Y.isString(t)){if(Y.isString(r))return t.indexOf(r)!==-1;if(Y.isRegExp(r))return r.test(t)}}function dd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function fd(e,t){let n=Y.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var pd=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=nd(t);if(!i)return;let a=Y.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=rd(e))}let a=(e,t)=>Y.forEach(e,(e,n)=>i(e,n,t));if(Y.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Y.isString(e)&&(e=e.trim())&&!ld(e))a(qu(e),t);else if(Y.isObject(e)&&Y.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!Y.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],Y.hasOwnProp(n,i)?(r=n[i],n[i]=Y.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=nd(e),e){let n=Y.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return id(e);if(Y.isFunction(t))return t.call(this,e,n);if(Y.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=nd(e),e){let n=Y.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||ud(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=nd(e),e){let i=Y.findKey(n,e);i&&(!t||ud(n,n[i],i,t))&&(delete n[i],r=!0)}}return Y.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||ud(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return Y.forEach(this,(r,i)=>{let a=Y.findKey(n,i);if(a){t[a]=rd(r),delete t[i];return}let o=e?dd(i):String(i).trim();o!==i&&delete t[i],t[o]=rd(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Y.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&Y.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
|
||
`)}getSetCookie(){let e=this.get(`set-cookie`);return Y.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return cd(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[td]=this[td]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=nd(e);t[r]||(fd(n,e),t[r]=!0)}return Y.isArray(e)?e.forEach(r):r(e),this}};pd.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),Y.reduceDescriptors(pd.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Y.freezeMethods(pd);var md=`[REDACTED ****]`;function hd(e){if(Y.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Y.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function gd(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||Y.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof pd&&(e=e.toJSON()),r.push(e);let t;if(Y.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);Y.isUndefined(r)||(t[n]=r)});else{if(!Y.isPlainObject(e)&&hd(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?md:i(a);Y.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function _d(e){try{return String(e)}catch{return``}}function vd(e){return e.errors.map(e=>{try{return e&&e.message?_d(e.message):_d(e)}catch{return``}}).filter(Boolean).join(`; `)||e.name||`AggregateError`}var X=class e extends Error{static from(t,n,r,i,a,o){let s=t.message;!s&&Y.isArray(t.errors)&&t.errors.length&&(s=vd(t));let c=new e(s,n||t.code,r,i,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),o&&Object.assign(c,o),c}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&Y.hasOwnProp(e,`redact`)?e.redact:void 0,n=Y.isArray(t)&&t.length>0?gd(e,t):Y.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};X.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,X.ERR_BAD_OPTION=`ERR_BAD_OPTION`,X.ECONNABORTED=`ECONNABORTED`,X.ETIMEDOUT=`ETIMEDOUT`,X.ECONNREFUSED=`ECONNREFUSED`,X.ERR_NETWORK=`ERR_NETWORK`,X.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,X.ERR_DEPRECATED=`ERR_DEPRECATED`,X.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,X.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,X.ERR_CANCELED=`ERR_CANCELED`,X.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,X.ERR_INVALID_URL=`ERR_INVALID_URL`,X.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function yd(e){return Y.isPlainObject(e)||Y.isArray(e)}function bd(e){return Y.endsWith(e,`[]`)?e.slice(0,-2):e}function xd(e,t,n){return e?e.concat(t).map(function(e,t){return e=bd(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function Sd(e){return Y.isArray(e)&&!e.some(yd)}var Cd=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)});function wd(e,t,n){if(!Y.isObject(e))throw TypeError(`target must be an object`);t||=new FormData;let r=(e,t)=>{let r=Y.getSafeProp(n,e);return Y.isUndefined(r)?t:r},i=r(`metaTokens`,!0),a=r(`visitor`)||h,o=r(`dots`,!1),s=r(`indexes`,!1),c=r(`Blob`)||typeof Blob<`u`&&Blob,l=r(`maxDepth`,100),u=c&&Y.isSpecCompliantForm(t),d=[];if(!Y.isFunction(a))throw TypeError(`visitor must be a function`);function f(e){if(e===null)return``;if(Y.isDate(e))return e.toISOString();if(Y.isBoolean(e))return e.toString();if(!u&&Y.isBlob(e))throw new X(`Blob is not supported. Use a Buffer instead.`);if(Y.isArrayBuffer(e)||Y.isTypedArray(e)){if(u&&typeof c==`function`)return new c([e]);throw new X(`Blob is not supported. Use a Buffer instead.`,X.ERR_NOT_SUPPORT)}return e}function p(e){if(e>l)throw new X(`Object is too deeply nested (`+e+` levels). Max depth: `+l,X.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(e,t){if(l===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!Y.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),p(t+n.length-1),r})}function h(e,n,r){let a=e;if(Y.isReactNative(t)&&Y.isReactNativeBlob(e))return t.append(xd(r,n,o),f(e)),!1;if(e&&!r&&typeof e==`object`){if(Y.endsWith(n,`{}`))n=i?n:n.slice(0,-2),e=m(e,1);else if(Y.isArray(e)&&Sd(e)||(Y.isFileList(e)||Y.endsWith(n,`[]`))&&(a=Y.toArray(e)))return n=bd(n),a.forEach(function(e,r){!(Y.isUndefined(e)||e===null)&&t.append(s===!0?xd([n],r,o):s===null?n:n+`[]`,f(e))}),!1}return yd(e)?!0:(t.append(xd(r,n,o),f(e)),!1)}let g=Object.assign(Cd,{defaultVisitor:h,convertValue:f,isVisitable:yd});function _(e,n,r=0){if(!Y.isUndefined(e)){if(p(r),d.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));d.push(e),Y.forEach(e,function(e,i){(!(Y.isUndefined(e)||e===null)&&a.call(t,e,Y.isString(i)?i.trim():i,n,g))===!0&&_(e,n?n.concat(i):[i],r+1)}),d.pop()}}if(!Y.isObject(e))throw TypeError(`data must be an object`);return _(e),t}function Td(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Ed(e,t){this._pairs=[],e&&wd(e,this,t)}var Dd=Ed.prototype;Dd.append=function(e,t){this._pairs.push([e,t])},Dd.toString=function(e){let t=e?t=>e.call(this,t,Td):Td;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function Od(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function kd(e,t,n){if(!t)return e;e||=``;let r=Y.isFunction(n)?{serialize:n}:n,i=Y.getSafeProp(r,`encode`)||Od,a=Y.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):Y.isURLSearchParams(t)?t.toString():new Ed(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var Ad=Symbol(`internals`);function jd(e){return e?e.length:0}function Md(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function Nd(e,t){let n=e.handlers,r=jd(n);n===t.handlersRef?r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()):(t.handlersRef=n,t.handlerEntries.clear()),t.handlersLength=r}var Pd=class{constructor(){this.handlers=[],this[Ad]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let r={fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null},i=this[Ad];this.handlers??=[],Nd(this,i);let a=i.nextId++;return this.handlers.push(r),i.handlerEntries.set(a,{handler:r,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,a}eject(e){let t=this[Ad];Nd(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(Md(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Nd(this,this[Ad]))}forEach(e){let t=this[Ad];Nd(this,t),t.iterationDepth++;try{Y.forEach(this.handlers,function(t){t!==null&&e(t)})}finally{--t.iterationDepth||(Nd(this,t),Md(this.handlers),t.handlersLength=jd(this.handlers))}}},Fd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Id={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:Ed,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Ld=t({hasBrowserEnv:()=>Rd,hasStandardBrowserEnv:()=>Bd,hasStandardBrowserWebWorkerEnv:()=>Vd,navigator:()=>zd,origin:()=>Hd}),Rd=typeof window<`u`&&typeof document<`u`,zd=typeof navigator==`object`&&navigator||void 0,Bd=Rd&&(!zd||[`ReactNative`,`NativeScript`,`NS`].indexOf(zd.product)<0),Vd=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Hd=Rd&&window.location.href||`http://localhost`,Z={...Ld,...Id};function Ud(e,t){return wd(e,new Z.classes.URLSearchParams,{visitor:function(e,t,n,r){return Z.isNode&&Y.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var Wd=100;function Gd(e){if(e>Wd)throw new X(`FormData field is too deeply nested (`+e+` levels). Max depth: `+Wd,X.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Kd(e){let t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g,r;for(;(r=n.exec(e))!==null;)Gd(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function qd(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function Jd(e){function t(e,n,r,i){Gd(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&Y.isArray(r)?r.length:a,s?(Y.hasOwnProp(r,a)?r[a]=Y.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!Y.hasOwnProp(r,a)||!Y.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&Y.isArray(r[a])&&(r[a]=qd(r[a])),!o)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){let n={};return Y.forEachEntry(e,(e,r)=>{t(Kd(e),r,n,0)}),n}return null}var Yd=Object.freeze([`get`,`delete`,`head`,`options`,`post`,`put`,`patch`,`purge`,`link`,`unlink`,`query`]),Xd=(e,t)=>e!=null&&Y.hasOwnProp(e,t)?e[t]:void 0;function Zd(e,t,n){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var Qd={transitional:Fd,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=Y.isObject(e);if(i&&Y.isHTMLForm(e)&&(e=new FormData(e)),Y.isFormData(e))return r?JSON.stringify(Jd(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e)||Y.isReadableStream(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=Xd(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Ud(e,t).toString();if((a=Y.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=Xd(this,`env`),r=n&&n.FormData;return wd(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Zd(e)):e}],transformResponse:[function(e){let t=Xd(this,`transitional`)||Qd.transitional,n=t&&t.forcedJSONParsing,r=Xd(this,`responseType`),i=r===`json`;if(Y.isResponse(e)||Y.isReadableStream(e))return e;if(e&&Y.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Xd(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?X.from(e,X.ERR_BAD_RESPONSE,this,null,Xd(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:Z.classes.FormData,Blob:Z.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};Y.forEach(Yd,e=>{Qd.headers[e]={}});function $d(e,t){let n=this||Qd,r=t||n,i=pd.from(r.headers),a=r.data;return Y.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function ef(e){return!!(e&&e.__CANCEL__)}var tf=class extends X{constructor(e,t,n){super(e??`canceled`,X.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function nf(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new X(`Request failed with status code `+n.status,n.status>=400&&n.status<500?X.ERR_BAD_REQUEST:X.ERR_BAD_RESPONSE,n.config,n.request,n))}var rf=/[\t\n\r]/g;function af(e){if(typeof e!=`string`)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(rf,``)}function of(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function sf(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function cf(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i),(...e)=>o(e)]}var lf=(e,t,n=3)=>{let r=0,i=sf(50,250);return cf(n=>{if(!n||!Y.isNumber(n.loaded))return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=Math.max(0,o==null?a:Math.min(a,o)),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},uf=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},df=(e,t=Y.asap)=>(...n)=>t(()=>e(...n)),ff=Z.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Z.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Z.origin),Z.navigator&&/(msie|trident)/i.test(Z.navigator.userAgent)):()=>!0,pf=Z.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];Y.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Y.isString(r)&&s.push(`path=${r}`),Y.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),Y.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function mf(e){return typeof e==`string`&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hf(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+`/`+t.replace(/^\/+/,``)}var gf=/^https?:(?!\/\/)/i;function _f(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n=``)=>`${t}${n}${md}`)}function vf(e){let t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${md}@`),n=t.indexOf(`#`),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${md}`);return n===-1?r:`${r}#${_f(t.slice(n+1))}`}function yf(e,t){if(typeof e==`string`){let n=af(e);if(gf.test(n))throw new X(`Invalid URL ${JSON.stringify(vf(n))}: missing "//" after protocol`,X.ERR_INVALID_URL,t)}}function bf(e,t,n,r){yf(t,r);let i=!mf(t);return e&&(i||n===!1)?(yf(e,r),hf(e,t)):t}var xf=e=>e instanceof pd?{...e}:e,Sf=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function Cf(e,t){e||={},t||={};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return Y.isPlainObject(e)&&Y.isPlainObject(t)?Y.merge.call({caseless:r},e,t):Y.isPlainObject(t)?Y.merge({},t):Y.isArray(t)?t.slice():t}function i(e,t,n,i){if(!Y.isUndefined(t))return r(e,t,n,i);if(!Y.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!Y.isUndefined(t))return r(void 0,t)}function o(e,t){if(!Y.isUndefined(t))return r(void 0,t);if(!Y.isUndefined(e))return r(void 0,e)}function s(n){let r=Y.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!Y.isUndefined(r)){if(Y.isPlainObject(r)){if(Y.hasOwnProp(r,n))return r[n]}else return}let i=Y.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(Y.isPlainObject(i)&&Y.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(Y.hasOwnProp(t,a))return r(n,i);if(Y.hasOwnProp(e,a))return r(void 0,n)}let l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutErrorMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(e,t,n)=>i(xf(e),xf(t),n,!0)};return Y.forEach(Sf({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=Y.hasOwnProp(l,r)?l[r]:i,o=a(Y.hasOwnProp(e,r)?e[r]:void 0,Y.hasOwnProp(t,r)?t[r]:void 0,r);Y.isUndefined(o)&&a!==c||(n[r]=o)}),Y.hasOwnProp(t,`validateStatus`)&&Y.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(Y.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var wf=[`content-type`,`content-length`];function Tf(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t||{}).forEach(([t,n])=>{wf.includes(t.toLowerCase())&&e.set(t,n)})}var Ef=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function Df(e){let t=Cf({},e),n=e=>Y.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=pd.from(s),t.url=kd(bf(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let t=Y.getSafeProp(c,`username`)||``,n=Y.getSafeProp(c,`password`)||``;try{s.set(`Authorization`,`Basic `+btoa(t+`:`+(n?Ef(n):``)))}catch(t){throw X.from(t,X.ERR_BAD_OPTION_VALUE,e)}}if(Y.isFormData(r)){let e=Y.getSafeProp(r,`getHeaders`);Z.hasStandardBrowserEnv||Z.hasStandardBrowserWebWorkerEnv||Y.isReactNative(r)?s.setContentType(void 0):Y.isFunction(e)&&Tf(s,e.call(r),n(`formDataHeaderPolicy`))}if(Z.hasStandardBrowserEnv&&(Y.isFunction(i)&&(i=i(t)),i===!0||i==null&&ff(t.url))){let e=a&&o&&pf.read(o);e&&s.set(a,e)}return t}var Of=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=Df(e),i=r.data,a=pd.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p,m;function h(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function _(i){if(!g)return;if(g.status===0&&(of(af(r.url))||of(Z.origin))!==`file`&&!(g.responseURL&&g.responseURL.startsWith(`file:`))){n(new X(`Request aborted`,X.ECONNABORTED,e,g)),h(),g=null;return}try{i?m&&m(i):p&&p()}catch(e){setTimeout(()=>{throw e})}if(!g)return;let a=pd.from(`getAllResponseHeaders`in g&&g.getAllResponseHeaders());nf(function(e){t(e),h()},function(e){n(e),h()},{data:!o||o===`text`||o===`json`?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:a,config:e,request:g}),g=null}`onloadend`in g?g.onloadend=_:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.startsWith(`file:`))||setTimeout(_)},g.onabort=function(){g&&=(n(new X(`Request aborted`,X.ECONNABORTED,e,g)),h(),null)},g.onerror=function(t){let r=new X(t&&t.message?t.message:`Network Error`,X.ERR_NETWORK,e,g);r.event=t||null,n(r),h(),g=null},g.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||Fd;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new X(t,i.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,g)),h(),g=null},i===void 0&&a.setContentType(null),`setRequestHeader`in g&&Y.forEach(ed(a),function(e,t){g.setRequestHeader(t,e)}),Y.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),o&&o!==`json`&&(g.responseType=r.responseType),c&&([d,p,m]=lf(c,!0),g.addEventListener(`progress`,d)),s&&g.upload&&([u,f]=lf(s),g.upload.addEventListener(`progress`,u),g.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{g&&=(n(!t||t.type?new tf(null,e,g):t),g.abort(),h(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let v=of(r.url);if(v&&!Z.protocols.includes(v)){n(new X(`Unsupported protocol `+v+`:`,X.ERR_BAD_REQUEST,e)),h();return}g.send(i||null)})},kf=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof X?t:new tf(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new X(`timeout of ${t}ms exceeded`,X.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>{if(!r){if(e.aborted){i.call(e);return}e.addEventListener(`abort`,i,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>Y.asap(o),s},Af=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},jf=async function*(e,t){for await(let n of Mf(e))yield*Af(n,t)},Mf=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Nf=(e,t,n,r)=>{let i=jf(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},Pf=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Ff=(e,t,n)=>t+2<n&&Pf(e.charCodeAt(t+1))&&Pf(e.charCodeAt(t+2)),If=e=>e<=57?e-48:(e&223)-55,Lf=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,Rf=e=>e===9||e===10||e===12||e===13||e===32,zf=e=>{let t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},Bf=e=>{let t=e.length,n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},Vf=e=>{let t=e.length,n=0,r=0,i=!1;for(let a=0;a<t;a++){let o=e.charCodeAt(a);if(o===37&&Ff(e,a,t)&&(o=If(e.charCodeAt(a+1))*16+If(e.charCodeAt(a+2)),a+=2),!Rf(o)){if(o===61){r++;continue}if(!Lf(o)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?Bf(e):zf(n)},Hf=(e,t)=>{if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let n=e.indexOf(`,`);if(n<0)return 0;let r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let a=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(n===37&&Ff(i,e,t))a+=1,e+=2;else if(n<128)a+=1;else if(n<2048)a+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a};function Uf(e){let t=typeof e==`string`?e.indexOf(`#`):-1;return Hf(t===-1?e:e.slice(0,t),Vf)}var Wf=`1.20.0`,Gf=65536,Kf={cache:`default`,redirect:`follow`,referrer:`about:client`,referrerPolicy:``,mode:`cors`,integrity:``,keepalive:!1,priority:`auto`,window:null},{isFunction:qf}=Y,Jf=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Yf=e=>{if(!Y.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Xf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Zf=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},Qf=e=>{let t=Y.global!==void 0&&Y.global!==null?Y.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=Y.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?qf(i):typeof fetch==`function`,c=qf(a),l=qf(o);if(!s)return!1;let u=s&&qf(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&Xf(()=>{let e=!1,t=new a(Z.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&Xf(()=>Y.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new X(`Response type '${e}' is not supported`,X.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e))return(await new a(Z.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(Y.isArrayBufferView(e)||Y.isArrayBuffer(e))return e.byteLength;if(Y.isURLSearchParams(e)&&(e+=``),Y.isString(e))return(await d(e)).byteLength},g=async(e,t)=>Y.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:x,withCredentials:S=`same-origin`,fetchOptions:C,maxContentLength:w,maxBodyLength:ee,maxRedirects:te}=Df(e),ne=Y.isNumber(w)&&w>-1,re=Y.isNumber(ee)&&ee>-1,ie=t=>Y.hasOwnProp(e,t)?e[t]:void 0,T=i||fetch;b=b?(b+``).toLowerCase():`text`;let E=kf([l,d&&d.toAbortSignal()],_),D=null,O=E&&E.unsubscribe&&(()=>{E.unsubscribe()}),ae,k=null,oe=()=>new X(`Request body larger than maxBodyLength limit`,X.ERR_BAD_REQUEST,e,D);try{let i,l=ie(`auth`);if(l&&(i={username:Y.getSafeProp(l,`username`)||``,password:Y.getSafeProp(l,`password`)||``}),Zf(t)){let e=new URL(t,Z.origin);!i&&(e.username||e.password)&&(i={username:Yf(e.username),password:Yf(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(Jf((i.username||``)+`:`+(i.password||``))))),ne&&typeof t==`string`&&t.startsWith(`data:`)&&Uf(t)>w)throw new X(`maxContentLength size of `+w+` exceeded`,X.ERR_BAD_RESPONSE,e,D);if(re&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(ae=e,e>ee))throw oe()}let d=re&&(Y.isReadableStream(s)||Y.isStream(s)),_=(e,t,n)=>Nf(e,Gf,e=>{if(re&&e>ee)throw k=oe();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(ae??=await g(x,s),ae!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(Y.isFormData(s)&&(n=e.headers.get(`content-type`))&&x.setContentType(n),e.body){let[t,n]=y&&uf(ae,lf(df(y)))||[];s=_(e.body,t,n)}}}else if(d&&!c&&u&&n!==`get`&&n!==`head`)s=_(s);else if(d&&c&&!f&&n!==`get`&&n!==`head`)throw new X(`Stream request bodies are not supported by the current fetch implementation`,X.ERR_NOT_SUPPORT,e,D);Y.isString(S)||(S=S?`include`:`omit`);let se=c&&`credentials`in a.prototype;if(Y.isFormData(s)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete(`content-type`)}x.set(`User-Agent`,`axios/`+Wf,!1);let A=C==null?C:Object.assign(Object.create(null),C);A&&(delete A.body,delete A.headers,delete A.method,delete A.signal,delete A.duplex,delete A.credentials);let ce=Object.assign(Object.create(null),A,{signal:E,method:n.toUpperCase(),headers:ed(x.normalize()),body:s,duplex:`half`,credentials:se?S:void 0});c&&(Y.forEach(Kf,(e,t)=>{ce[t]===void 0&&(ce[t]=e)}),ce.signal===void 0&&(ce.signal=null),ce.body===void 0&&(ce.body=null)),te===0&&(ce.redirect=`manual`,A&&(A.redirect=`manual`)),D=c&&new a(t,ce);let j=await(c?T(D,A):T(t,ce)),le=pd.from(j.headers);if(ne){let t=Y.toFiniteNumber(le.getContentLength());if(t!=null&&t>w)throw new X(`maxContentLength size of `+w+` exceeded`,X.ERR_BAD_RESPONSE,e,D)}let ue=p&&(b===`stream`||b===`response`);if(p&&j.body&&(v||ne||ue&&O)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=j[e]});let n=Y.toFiniteNumber(le.getContentLength()),[r,i]=v&&uf(n,lf(df(v),!0))||[],a=0;j=new o(Nf(j.body,Gf,t=>{if(ne&&(a=t,a>w))throw new X(`maxContentLength size of `+w+` exceeded`,X.ERR_BAD_RESPONSE,e,D);r&&r(t)},()=>{i&&i(),O&&O()}),t)}b||=`text`;let de=await m[Y.findKey(m,b)||`text`](j,e);if(ne&&!p&&!ue){let t;if(de!=null&&(typeof de.byteLength==`number`?t=de.byteLength:typeof de.size==`number`?t=de.size:typeof de==`string`&&(t=typeof r==`function`?new r().encode(de).byteLength:de.length)),typeof t==`number`&&t>w)throw new X(`maxContentLength size of `+w+` exceeded`,X.ERR_BAD_RESPONSE,e,D)}return!ue&&O&&O(),await new Promise((t,n)=>{nf(t,n,{data:de,headers:pd.from(j.headers),status:j.status,statusText:j.statusText,config:e,request:D})})}catch(t){if(O&&O(),E&&E.aborted&&E.reason instanceof X){let n=E.reason;throw n.config=e,D&&(n.request=D),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(k)throw D&&!k.request&&(k.request=D),k;if(t instanceof X)throw D&&!t.request&&(t.request=D),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new X(`Network Error`,X.ERR_NETWORK,e,D,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw X.from(t,t&&t.code,e,D,t&&t.response)}}},$f=new Map,ep=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=$f;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Qf(t)),l=c;return c};ep();var tp={http:null,xhr:Of,fetch:{get:ep}};Y.forEach(tp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var np=e=>`- ${e}`,rp=e=>Y.isFunction(e)||e===null||e===!1;function ip(e,t){e=Y.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!rp(r)&&(i=tp[(n=String(r)).toLowerCase()],i===void 0))throw new X(`Unknown adapter '${n}'`);if(i&&(Y.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new X(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
|
||
`+e.map(np).join(`
|
||
`):` `+np(e[0]):`as no adapter specified`),X.ERR_NOT_SUPPORT)}return i}var ap={getAdapter:ip,adapters:tp};function op(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tf(null,e)}function sp(e){let t=Y.toSafeFlatObject(e);return op(t),t.headers=pd.from(Y.getSafeProp(t,`headers`)),t.data=$d.call(t,t.transformRequest),[`post`,`put`,`patch`].indexOf(t.method)!==-1&&t.headers.setContentType(`application/x-www-form-urlencoded`,!1),ap.getAdapter(t.adapter||Qd.adapter,t)(t).then(function(e){op(t),t.response=e;try{e.data=$d.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=pd.from(e.headers),e},function(e){if(!ef(e)&&(op(t),e&&e.response)){t.response=e.response;try{e.response.data=$d.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=pd.from(e.response.headers)}return Promise.reject(e)})}var cp={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{cp[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var lp={};cp.transitional=function(e,t,n){function r(e,t){return`[Axios v`+Wf+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new X(r(i,` has been removed`+(t?` in `+t:``)),X.ERR_DEPRECATED);return t&&!lp[i]&&(lp[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),!e||e(n,i,a)}},cp.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function up(e,t,n){if(typeof e!=`object`||!e)throw new X(`options must be an object`,X.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-->0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new X(`option `+a+` must be `+n,X.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new X(`Unknown option `+a,X.ERR_BAD_OPTION)}}var dp={assertOptions:up,validators:cp},fp=dp.validators,pp=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Pd,response:new Pd}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,r=``;if(typeof n==`string`){let e=n.indexOf(`
|
||
`);r=e===-1?``:n.slice(e+1)}if(!e.stack)e.stack=r;else if(r){let t=r.indexOf(`
|
||
`),n=t===-1?-1:r.indexOf(`
|
||
`,t+1),i=n===-1?``:r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+=`
|
||
`+r)}}catch{}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=Cf(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&dp.assertOptions(n,{silentJSONParsing:fp.transitional(fp.boolean),forcedJSONParsing:fp.transitional(fp.boolean),clarifyTimeoutError:fp.transitional(fp.boolean),legacyInterceptorReqResOrdering:fp.transitional(fp.boolean),advertiseZstdAcceptEncoding:fp.transitional(fp.boolean),validateStatusUndefinedResolves:fp.transitional(fp.boolean)},!1),r!=null&&(Y.isFunction(r)?t.paramsSerializer={serialize:r}:dp.assertOptions(r,{encode:fp.function,serialize:fp.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),dp.assertOptions(t,{baseUrl:fp.spelling(`baseURL`),withXsrfToken:fp.spelling(`withXSRFToken`)},!0),t.method=(Y.getSafeProp(t,`method`)||Y.getSafeProp(this.defaults,`method`)||`get`).toLowerCase();let a=i&&Y.merge(i.common,i[t.method]);i&&Y.forEach(Yd.concat(`common`),e=>{delete i[e]}),t.headers=pd.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||Fd;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[sp.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e?e(f):f}catch(e){if(!t){l=Promise.reject(e);break}try{let n=t.call(this,e);Y.isThenable(n)&&(l=Promise.resolve(n).then(()=>sp.call(this,f)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=sp.call(this,f)}catch(e){l=Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=Cf(this.defaults,e),kd(bf(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};Y.forEach([`delete`,`get`,`head`,`options`],function(e){pp.prototype[e]=function(t,n){return this.request(Cf(n||{},{method:e,url:t,data:n&&Y.hasOwnProp(n,`data`)?n.data:void 0}))}}),Y.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(Cf(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}pp.prototype[e]=t(),e!==`query`&&(pp.prototype[e+`Form`]=t(!0))});var mp=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-->0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new tf(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function hp(e){return function(t){return e.apply(null,t)}}function gp(e){return Y.isObject(e)&&e.isAxiosError===!0}var _p={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(_p).forEach(([e,t])=>{_p[t]===void 0&&(_p[t]=e)});function vp(e){let t=new pp(e),n=Tl(pp.prototype.request,t);return Y.extend(n,pp.prototype,t,{allOwnKeys:!0}),Y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return vp(Cf(e,t))},n}var Q=vp(Qd);Q.Axios=pp,Q.CanceledError=tf,Q.CancelToken=mp,Q.isCancel=ef,Q.VERSION=Wf,Q.toFormData=wd,Q.AxiosError=X,Q.Cancel=Q.CanceledError,Q.all=function(e){return Promise.all(e)},Q.spread=hp,Q.isAxiosError=gp,Q.mergeConfig=Cf,Q.AxiosHeaders=pd,Q.formToJSON=e=>Jd(Y.isHTMLForm(e)?new FormData(e):e),Q.getAdapter=ap.getAdapter,Q.HttpStatusCode=_p,Q.default=Q;var $=Q.create({timeout:1e4});async function yp(e,t){let{data:n}=await $.post(`/chat`,{query:e,domain_group:t});return n}async function bp(e){let{data:t}=await $.get(`/runs/${e}/status`);return t}function xp(e){let t=new EventSource(`/runs/${e}/stream`);return{subscribe(e){t.addEventListener(`message`,t=>{let n=JSON.parse(t.data);n.type===`workspace`?e.onWorkspace(n.workspace):n.type===`status`?(e.onStatus(n.value),(n.value===`done`||n.value===`failed`)&&e.onDone()):n.type===`error`&&e.onError(n.detail)}),t.addEventListener(`error`,()=>{})},close(){t.close()}}}async function Sp(e){let t=e?{status:e}:{},{data:n}=await $.get(`/review/queue`,{params:t});return n}async function Cp(e,t,n){let{data:r}=await $.post(`/review/${e}`,null,{params:{verdict:t,correction:n}});return r}async function wp(){let{data:e}=await $.get(`/api/metrics`);return e}async function Tp(){let{data:e}=await $.get(`/config`);return e}async function Ep(e){let{data:t}=await $.put(`/config`,e);return t}async function Dp(){let{data:e}=await $.post(`/config/reset`);return e}async function Op(e,t,n){let r={backend:e};t&&(r.base_url=t),n&&(r.api_key=n);let{data:i}=await $.get(`/config/models`,{params:r});return i}async function kp(e,t,n){let r={backend:e};t&&(r.base_url=t),n&&(r.api_key=n);let{data:i}=await $.get(`/config/ping`,{params:r});return i}async function Ap(){let{data:e}=await $.get(`/llama/status`);return e}async function jp(){let{data:e}=await $.get(`/llama/models`);return e.models}async function Mp(e,t=8901,n=99,r=4096){let{data:i}=await $.post(`/llama/start`,null,{params:{model:e,port:t,ngl:n,ctx:r}});return i}async function Np(){let{data:e}=await $.post(`/llama/stop`);return e}async function Pp(e,t){let n={url:e};t&&(n.dest=t);let{data:r}=await $.post(`/llama/download`,null,{params:n});return r}function Fp(e){let t=new EventSource(`/llama/download/stream?url=${encodeURIComponent(e)}`);return{subscribe(e){t.addEventListener(`message`,t=>{let n=JSON.parse(t.data);e.onProgress(n),n.done&&e.onDone(n)}),t.addEventListener(`error`,()=>{t.close()})},close(){t.close()}}}async function Ip(){let{data:e}=await $.get(`/pool`);return e}async function Lp(e){let{data:t}=await $.post(`/pool`,e);return t}async function Rp(e){let{data:t}=await $.delete(`/pool/${e}`);return t}async function zp(e){let{data:t}=await $.put(`/pool/roles`,e);return t}async function Bp(e){let{data:t}=await $.post(`/pool/${e}/test`);return t}async function Vp(e){let{data:t}=await $.get(`/pool/${e}/models`);return t}async function Hp(e,t,n,r){let{data:i}=await $.post(`/agent`,{task:e,pool_id:t||void 0,workspace:n||void 0,executor_pool_id:r||void 0});return i}async function Up(e){let{data:t}=await $.get(`/agent/${e}/status`);return t}async function Wp(e=``,t=``){let{data:n}=await $.get(`/agent/workspace`,{params:{...e?{path:e}:{},...t?{root:t}:{}}});return n}async function Gp(e,t=``){let{data:n}=await $.get(`/agent/file`,{params:{path:e,...t?{root:t}:{}}});return n}async function Kp(e=``){let{data:t}=await $.get(`/agent/fs`,{params:e?{path:e}:{}});return t}async function qp(){let{data:e}=await $.get(`/agent/workspaces`);return e}async function Jp(e,t=!1){let{data:n}=await $.post(`/agent/workspaces`,{path:e,create:t});return n}function Yp(e){let t=new EventSource(`/agent/${e}/stream`),n=!1;return{subscribe(e){t.addEventListener(`message`,r=>{if(n)return;let i=JSON.parse(r.data);e.onEvent(i),i.type===`final`&&(n=!0,t.close(),e.onDone())}),t.addEventListener(`error`,()=>{})},close(){t.close()}}}async function Xp(e,{timeout:t=6e4,interval:n=500}={}){let r=Date.now();for(;Date.now()-r<t;){let t=await bp(e);if(t.status===`done`||t.status===`failed`)return t;await new Promise(e=>setTimeout(e,n))}throw Error(`poll timeout`)}var Zp=ys(`chat`,()=>{let e=L([]),t=L(null),n=()=>e.value.find(e=>e.requestId===t.value)??null;async function r(n){let r=await yp(n),i={requestId:r.request_id,query:n,init:r,status:null,workspace:null,error:null};return e.value.unshift(i),t.value=r.request_id,i}async function i(t){let n=await bp(t),r=e.value.find(e=>e.requestId===t);return r&&(r.status=n),n}async function a(t){let n=await Xp(t),r=e.value.find(e=>e.requestId===t);return r&&(r.status=n),n}function o(t,n){let r=e.value.find(e=>e.requestId===t);r&&(r.workspace=n)}function s(e){t.value=e}return{sessions:e,currentId:t,current:n,sendQuery:r,pollStatus:i,waitForDone:a,updateWorkspace:o,setCurrent:s}}),Qp={class:`chat-view`},$p={class:`sidebar`},em={class:`session-list`},tm=[`onClick`],nm={class:`s-query`},rm={class:`main`},im={key:0,class:`empty`},am={class:`user-msg`},om={class:`status-bar`},sm={key:0,class:`badge pending`},cm={key:1,class:`badge running`},lm={key:2,class:`badge done`},um={key:3,class:`badge failed`},dm={key:4,class:`route-path`},fm={key:0,class:`ws-meta`},pm={key:1,class:`assistant-msg`},mm={key:2,class:`ws-preview`},hm={key:0,class:`brief-block`},gm={class:`tags`},_m={key:1,class:`plan-list`},vm={class:`step-id`},ym={key:0,class:`deps`},bm={key:2,class:`progress-list`},xm={key:3,class:`error-msg`},Sm=[`disabled`],Cm=[`disabled`],wm=$n({__name:`ChatView`,setup(e){let t=Zp(),n=L(``),r=L(!1),i=G(()=>t.current()),a=G(()=>i.value?.status?.status??`pending`),o=G(()=>i.value?.workspace),s=G(()=>i.value?.status?.response??null),c=null;function l(e){c?.close(),c=xp(e),c.subscribe({onWorkspace(n){t.updateWorkspace(e,n)},onStatus(n){t.pollStatus(e)},onError(n){let r=t.sessions.find(t=>t.requestId===e);r&&(r.error=n)},onDone(){t.pollStatus(e)}})}Un(()=>t.currentId,e=>{e&&(l(e),i.value?.status?.status===`done`&&t.pollStatus(e))},{immediate:!0});async function u(){if(!n.value.trim()||r.value)return;let e=n.value.trim();n.value=``,r.value=!0;try{l((await t.sendQuery(e)).requestId)}finally{r.value=!1}}return(e,i)=>(B(),V(`div`,Qp,[H(`aside`,$p,[i[1]||=H(`h3`,null,`会话记录`,-1),H(`ul`,em,[(B(!0),V(z,null,Or(R(t).sessions,e=>(B(),V(`li`,{key:e.requestId,class:me([`session-item`,{active:e.requestId===R(t).currentId}]),onClick:n=>R(t).setCurrent(e.requestId)},[H(`span`,nm,M(e.query.slice(0,28))+M(e.query.length>28?`…`:``),1),H(`span`,{class:me([`s-status`,e.status?.status??`pending`])},M(e.status?.status??`pending`),3)],10,tm))),128))])]),H(`main`,rm,[R(t).current()?(B(),V(z,{key:1},[H(`div`,am,[i[3]||=H(`span`,{class:`role-label`},`你`,-1),H(`p`,null,M(R(t).current().query),1)]),H(`div`,om,[a.value===`pending`?(B(),V(`span`,sm,`⏳ 排队中…`)):a.value===`running`?(B(),V(`span`,cm,` 🔄 协作中 (`+M(o.value?.meta.round??0)+`/`+M(o.value?.meta.rounds_cap??6)+`) `,1)):a.value===`done`?(B(),V(`span`,lm,`✅ 完成`)):a.value===`failed`?(B(),V(`span`,um,`❌ 失败`)):W(``,!0),o.value?(B(),V(`span`,dm,` 路由:`+M(R(t).current().status?.route?.join(` → `)??`—`),1)):W(``,!0)]),o.value?(B(),V(`div`,fm,[H(`span`,null,`tokens: `+M(o.value.meta.api_input_tokens)+` in / `+M(o.value.meta.api_output_tokens)+` out`,1),H(`span`,null,`延迟: `+M(R(t).current().status?.latency_ms?.toFixed(0))+` ms`,1),H(`span`,null,`模型: `+M(R(t).current().status?.model_used??`—`),1)])):W(``,!0),s.value?(B(),V(`div`,pm,[i[4]||=H(`span`,{class:`role-label`},`系统`,-1),H(`pre`,null,M(s.value),1)])):W(``,!0),o.value?(B(),V(`details`,mm,[i[6]||=H(`summary`,null,`📄 交流文本预览`,-1),o.value.brief?(B(),V(`div`,hm,[i[5]||=H(`strong`,null,`Brief:`,-1),aa(` `+M(o.value.brief.goal)+` `,1),H(`span`,gm,M(o.value.brief.tags.join(`, `)),1)])):W(``,!0),o.value.plan?.length?(B(),V(`ul`,_m,[(B(!0),V(z,null,Or(o.value.plan,e=>(B(),V(`li`,{key:e.id,class:me(e.status)},[H(`span`,vm,M(e.id),1),H(`span`,null,M(e.task),1),e.deps.length?(B(),V(`span`,ym,`←`+M(e.deps.join(`,`)),1)):W(``,!0)],2))),128))])):W(``,!0),o.value.progress?.length?(B(),V(`ul`,bm,[(B(!0),V(z,null,Or(o.value.progress,e=>(B(),V(`li`,{key:e.step,class:me(e.status)},M(e.step)+`: `+M(e.status),3))),128))])):W(``,!0)])):W(``,!0),R(t).current().error?(B(),V(`div`,xm,M(R(t).current().error),1)):W(``,!0)],64)):(B(),V(`div`,im,[...i[2]||=[H(`p`,null,`输入问题,开启端云协同协作之旅。`,-1),H(`p`,{class:`hint`},`结果通过 SSE 实时推送,可切换「协作」页面查看交流文本可视化。`,-1)]])),H(`form`,{class:`input-bar`,onSubmit:Fo(u,[`prevent`])},[In(H(`input`,{"onUpdate:modelValue":i[0]||=e=>n.value=e,placeholder:`输入你的问题…`,disabled:r.value,autofocus:``},null,8,Sm),[[To,n.value]]),H(`button`,{type:`submit`,disabled:r.value||!n.value.trim()},M(r.value?`发送中…`:`发送`),9,Cm)],32)])]))}}),Tm=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},Em=Tm(wm,[[`__scopeId`,`data-v-6692005c`]]),Dm={class:`agent-view`},Om={class:`ws-panel`},km={class:`ws-head`},Am=[`disabled`],jm=[`title`],Mm={class:`ws-list`},Nm=[`onClick`],Pm={class:`ws-name`},Fm={key:0,class:`ws-size`},Im={key:0,class:`ws-empty`},Lm={key:0,class:`file-preview`},Rm={class:`fp-head`},zm={class:`fp-name`},Bm={class:`fp-body`},Vm={class:`agent-main`},Hm={class:`ws-bar`},Um=[`title`],Wm={class:`shell-toggle`,title:`开启后智能体可执行 shell 命令(run_command),在工作区内运行`},Gm={class:`task-bar`},Km=[`value`],qm=[`value`],Jm={class:`task-bar`},Ym=[`disabled`],Xm=[`disabled`],Zm={key:0,class:`ev-round`},Qm={key:2,class:`ev-msg`},$m={class:`ev-title`},eh={key:3,class:`ev-card`},th={class:`ev-title`},nh={class:`diff-old`},rh={class:`diff-new`},ih={key:4,class:`ev-card`},ah={class:`ev-args`},oh={key:5,class:`ev-card`},sh={class:`ev-title`},ch={class:`ev-args`},lh={class:`ev-title`},uh={class:`ev-args`},dh={key:7,class:`ev-usage`},fh={key:8,class:`ev-final`},ph={class:`ev-title`},mh={key:0,class:`ev-answer`},hh={key:1,class:`ev-error`},gh={key:0,class:`ev-round`},_h={key:1,class:`empty-hint`},vh={class:`modal`},yh={class:`crumb`},bh={class:`dir-list`},xh=[`onClick`],Sh={key:1,class:`dir-item empty`},Ch={class:`path-row`},wh={class:`create-toggle`},Th={key:0,class:`recent-row`},Eh=[`title`,`onClick`],Dh={key:1,class:`picker-msg`},Oh={class:`modal-actions`},kh=Tm($n({__name:`AgentView`,setup(e){let t=L(``),n=L(!1),r=L([]),i=L(null),a=L(``),o=L([]),s=L(``),c=L([]),l=L(!1),u=L(``),d=L({ok:!0,path:``,parent:``,dirs:[]}),f=L(``),p=L(!1),m=L(!1),h=L(``),g=L([]),_=L(!1),v=L(null),y=L(null),b=null,x=G(()=>o.value.filter(e=>e.enabled)),S=G(()=>o.value.filter(e=>e.enabled&&e.backend!==`mock`).sort((e,t)=>(e.backend===`llama_server`?-1:0)-(t.backend===`llama_server`?-1:0)));function C(e){let t=e.model?` · ${e.model}`:``;return e.phase===`plan`?`🧠 规划者 · 拆解任务${t}`:e.phase===`execute`?`🔧 执行者 · 工具执行(第 ${e.handoff} 轮交接)${t}`:`🔍 规划者 · 审查裁决${t}`}let w=G(()=>i.value?.response||``),ee=G(()=>{if(n.value)return`● 运行中`;let e=i.value;return e?e.state===`done`?`✅ 已完成`:e.state===`failed`?`❌ 失败`+(e.error?`:`+e.error:``):``:``}),te=G(()=>n.value?`st-running`:i.value?.state===`done`?`st-ok`:`st-err`);function ne(e){return{max_rounds:`轮次达上限`,token_cap:`token 熔断`,error:`出错`}[e||``]||e}function re(e){return JSON.stringify(e,null,2)??``}function ie(e){return(e||``).length>600?e.slice(0,600)+`…`:e||``}function T(e){return e==null?``:e>=1e6?(e/1e6).toFixed(1)+` MB`:e>=1e3?(e/1e3).toFixed(1)+` KB`:e+` B`}function E(e){if(!e)return``;let t=e.replace(/[\\/]+$/,``).split(/[\\/]/);return t[t.length-1]||e}function D(e,t){if(!e)return t;let n=e.includes(`\\`)?`\\`:`/`;return e.endsWith(`\\`)||e.endsWith(`/`)?e+t:e+n+t}function O(){Cn(()=>y.value?.scrollTo({top:y.value.scrollHeight}))}async function ae(){_.value=!0;try{let e=await Wp(``,s.value);g.value=e.entries||[]}catch{g.value=[]}finally{_.value=!1}}async function k(e){try{let t=await Gp(e,s.value);t.ok&&(v.value={path:e,content:t.content,truncated:t.truncated})}catch{}}async function oe(){l.value=!0,u.value=``,f.value=s.value;try{d.value=await Kp(s.value&&``)}catch{}}async function se(e){try{let t=await Kp(e);t.ok?(d.value=t,f.value=t.path):u.value=t.error||`路径不可用`}catch{u.value=`浏览失败`}}async function A(e){if(e=(e||``).trim(),!e){u.value=`请先选择或输入目录路径`;return}try{let t=await Jp(e,p.value);s.value=t.current,c.value=t.recent,l.value=!1,ae()}catch(e){u.value=e?.response?.data?.detail||e?.message||String(e)}}async function ce(){try{await Ep({agent:{allow_shell:m.value}})}catch{m.value=!m.value}}async function j(){if(!(!t.value.trim()||n.value)){n.value=!0,r.value=[],i.value=null;try{let e=await Hp(t.value.trim(),a.value,s.value,h.value);e.workspace&&(s.value=e.workspace),b=Yp(e.request_id),b.subscribe({onEvent:e=>{r.value.push(e),O()},onDone:async()=>{n.value=!1;try{i.value=await Up(e.request_id)}catch{}ae()}})}catch(e){n.value=!1,i.value={state:`failed`,error:e?.response?.data?.detail||e?.message||String(e)}}}}return mr(async()=>{ae();try{let[e,t]=await Promise.all([Ip(),qp()]);o.value=e.entries,a.value=e.roles.agent||``,s.value=t.current||``,c.value=t.recent||[],ae()}catch{}}),(e,i)=>(B(),V(`div`,Dm,[H(`aside`,Om,[H(`div`,km,[i[11]||=H(`h3`,null,`📁 工作区`,-1),H(`button`,{class:`btn-refresh`,disabled:_.value,onClick:ae},M(_.value?`…`:`🔄`),9,Am)]),H(`div`,{class:`ws-root`,title:s.value},M(E(s.value)),9,jm),H(`ul`,Mm,[(B(!0),V(z,null,Or(g.value,e=>(B(),V(`li`,{key:e.name,class:me({dir:e.type===`dir`}),onClick:t=>e.type===`file`&&k(e.name)},[H(`span`,Pm,M(e.name),1),e.type===`file`?(B(),V(`span`,Fm,M(T(e.size)),1)):W(``,!0)],10,Nm))),128)),!g.value.length&&!_.value?(B(),V(`li`,Im,`(空)智能体读写的文件会出现在这里`)):W(``,!0)]),v.value?(B(),V(`div`,Lm,[H(`div`,Rm,[H(`span`,zm,M(v.value.path),1),H(`button`,{class:`btn-refresh`,onClick:i[0]||=e=>v.value=null},`✕`)]),H(`pre`,Bm,[aa(M(v.value.content),1),v.value.truncated?(B(),V(z,{key:0},[aa(`…(已截断)`)],64)):W(``,!0)])])):W(``,!0)]),H(`main`,Vm,[i[18]||=H(`header`,{class:`agent-head`},[H(`h2`,null,`🤖 智能体`),H(`p`,{class:`sub`},`像编程助手一样操作你选择的工作目录:列目录 / 读 / 写 / 精确编辑 / 搜索 / 执行命令,全程实时可视化。`)],-1),H(`div`,Hm,[H(`span`,{class:`ws-current`,title:s.value},`📁 `+M(E(s.value)||`未选择`),9,Um),H(`button`,{class:`btn-refresh`,onClick:oe},`选择目录`),H(`label`,Wm,[In(H(`input`,{type:`checkbox`,"onUpdate:modelValue":i[1]||=e=>m.value=e,onChange:ce},null,544),[[Eo,m.value]]),i[12]||=aa(` 允许执行命令 `,-1)])]),H(`div`,Gm,[In(H(`select`,{"onUpdate:modelValue":i[2]||=e=>a.value=e,class:`model-select`},[i[13]||=H(`option`,{value:``},`默认模型(模型池 Agent 角色 / Architect 设置)`,-1),(B(!0),V(z,null,Or(x.value,e=>(B(),V(`option`,{key:e.id,value:e.id},M(e.name)+`(`+M(e.model)+`)`,9,Km))),128))],512),[[Oo,a.value]]),In(H(`select`,{"onUpdate:modelValue":i[3]||=e=>h.value=e,class:`model-select executor-select`,title:`两级模式:大模型拆解/审查,本地小模型执行工具轮`},[i[14]||=H(`option`,{value:``},`单模型模式(规划者全程包办)`,-1),(B(!0),V(z,null,Or(S.value,e=>(B(),V(`option`,{key:e.id,value:e.id},` 🔧 执行者:`+M(e.name)+`(`+M(e.model)+`) `,9,qm))),128))],512),[[Oo,h.value]])]),H(`div`,Jm,[In(H(`textarea`,{"onUpdate:modelValue":i[4]||=e=>t.value=e,class:`task-input`,rows:`3`,placeholder:`给智能体一个任务,例如:浏览这个项目,找到入口文件并在 README 里补充运行说明`,disabled:n.value},null,8,Ym),[[To,t.value]]),H(`button`,{class:`btn-run`,disabled:n.value||!t.value.trim(),onClick:j},M(n.value?`运行中…`:`▶ 运行`),9,Xm)]),ee.value?(B(),V(`div`,{key:0,class:me([`status-line`,te.value])},M(ee.value),3)):W(``,!0),H(`div`,{class:`timeline`,ref_key:`timelineEl`,ref:y},[(B(!0),V(z,null,Or(r.value,(e,t)=>(B(),V(z,{key:t},[e.type===`round`?(B(),V(`div`,Zm,`— 第 `+M(e.round)+` 轮 —`,1)):e.type===`phase`?(B(),V(`div`,{key:1,class:me([`ev-phase`,`ph-`+e.phase])},M(C(e)),3)):e.type===`message`?(B(),V(`div`,Qm,[H(`div`,$m,M(e.role===`planner`?`🧠 规划者`:`🔧 执行者`)+M(e.handoff?`(第 ${e.handoff} 轮交接)`:``),1),H(`pre`,{class:me([`ev-msgbody`,e.role===`planner`?`msg-planner`:`msg-executor`])},M(e.content),3)])):e.type===`tool_call`&&e.name===`edit_file`?(B(),V(`div`,eh,[H(`div`,th,[i[15]||=aa(`✏️ 精确编辑 `,-1),H(`b`,null,M(e.arguments?.path),1)]),H(`pre`,nh,`- `+M(e.arguments?.old_string),1),H(`pre`,rh,`+ `+M(e.arguments?.new_string),1)])):e.type===`tool_call`&&e.name===`run_command`?(B(),V(`div`,ih,[i[16]||=H(`div`,{class:`ev-title`},`⌨️ 执行命令`,-1),H(`pre`,ah,`$ `+M(e.arguments?.command),1)])):e.type===`tool_call`?(B(),V(`div`,oh,[H(`div`,sh,[i[17]||=aa(`🛠️ 调用工具 `,-1),H(`b`,null,M(e.name),1)]),H(`pre`,ch,M(re(e.arguments)),1)])):e.type===`tool_result`?(B(),V(`div`,{key:6,class:me([`ev-card`,e.ok?`res-ok`:`res-err`])},[H(`div`,lh,M(e.ok?`✅`:`❌`)+` 结果(`+M(e.name)+`)`,1),H(`pre`,uh,M(ie(e.preview)),1)],2)):e.type===`usage`?(B(),V(`div`,dh,` tokens:`+M(e.prompt_tokens)+` 入 / `+M(e.completion_tokens)+` 出 `,1)):e.type===`final`?(B(),V(`div`,fh,[H(`div`,ph,M(e.reason===`answer`?`🏁 最终答复`:`⚠️ 结束(`+ne(e.reason)+`)`),1),w.value?(B(),V(`pre`,mh,M(w.value),1)):W(``,!0),e.error?(B(),V(`div`,hh,M(e.error),1)):W(``,!0)])):W(``,!0)],64))),128)),n.value?(B(),V(`div`,gh,`⏳ 智能体正在工作…`)):W(``,!0),!r.value.length&&!n.value?(B(),V(`div`,_h,` 选择工作目录,输入任务并运行——每一步工具调用都会实时显示在这里。 `)):W(``,!0)],512)]),l.value?(B(),V(`div`,{key:0,class:`modal-mask`,onClick:i[10]||=Fo(e=>l.value=!1,[`self`])},[H(`div`,vh,[i[21]||=H(`div`,{class:`modal-title`},`选择工作目录`,-1),H(`div`,yh,M(d.value.path||`(此电脑 — 点击选择盘符)`),1),H(`div`,bh,[d.value.parent?(B(),V(`div`,{key:0,class:`dir-item up`,onClick:i[5]||=e=>se(d.value.parent)},` ↰ 上级:`+M(d.value.parent),1)):W(``,!0),(B(!0),V(z,null,Or(d.value.dirs,e=>(B(),V(`div`,{key:e,class:`dir-item`,onClick:t=>se(D(d.value.path,e))},` 📂 `+M(e),9,xh))),128)),d.value.dirs.length?W(``,!0):(B(),V(`div`,Sh,`(无子目录——可直接点下方"打开此目录")`))]),H(`div`,Ch,[In(H(`input`,{"onUpdate:modelValue":i[6]||=e=>f.value=e,placeholder:`或直接输入绝对路径,如 E:\\my-project`},null,512),[[To,f.value]]),H(`label`,wh,[In(H(`input`,{type:`checkbox`,"onUpdate:modelValue":i[7]||=e=>p.value=e},null,512),[[Eo,p.value]]),i[19]||=aa(` 不存在则新建 `,-1)])]),c.value.length?(B(),V(`div`,Th,[i[20]||=H(`span`,{class:`recent-label`},`最近:`,-1),(B(!0),V(z,null,Or(c.value,e=>(B(),V(`button`,{key:e,class:`recent-chip`,title:e,onClick:t=>A(e)},M(E(e)),9,Eh))),128))])):W(``,!0),u.value?(B(),V(`div`,Dh,M(u.value),1)):W(``,!0),H(`div`,Oh,[H(`button`,{class:`btn-primary`,onClick:i[8]||=e=>A(f.value.trim()||d.value.path)},` 打开此目录 `),H(`button`,{class:`btn-secondary`,onClick:i[9]||=e=>l.value=!1},`取消`)])])])):W(``,!0)]))}}),[[`__scopeId`,`data-v-65310059`]]),Ah=`modulepreload`,jh=function(e){return`/static/`+e},Mh={},Nh=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=jh(t,n),t=s(t),t in Mh)return;Mh[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Ah,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Ph=wl({history:Wc(`/`),routes:[{path:`/`,redirect:`/chat`},{path:`/chat`,name:`chat`,component:Em},{path:`/collaboration`,name:`collaboration`,component:()=>Nh(()=>import(`./CollaborationView-BZUME17V.js`),__vite__mapDeps([0,1]))},{path:`/agent`,name:`agent`,component:kh},{path:`/review`,name:`review`,component:()=>Nh(()=>import(`./ReviewView-ByUG_VcN.js`),__vite__mapDeps([2,3]))},{path:`/metrics`,name:`metrics`,component:()=>Nh(()=>import(`./MetricsView-DOvNkmWB.js`),__vite__mapDeps([4,5]))},{path:`/settings`,name:`settings`,component:()=>Nh(()=>import(`./SettingsView-B2Ffl_KO.js`),__vite__mapDeps([6,7]))}]}),Fh=zo(Cs);Fh.use(as()),Fh.use(Ph),Fh.mount(`#app`);export{W as A,Rt as B,xp as C,z as D,To as E,vr as F,M as G,R as H,B as I,Or as L,aa as M,$n as N,G as O,mr as P,Un as R,Fp as S,Oo as T,me as U,L as V,le as W,Np as _,Tp as a,Ep as b,Ip as c,Vp as d,Sp as f,Mp as g,zp as h,Pp as i,V as j,H as k,jp as l,Dp as m,Zp as n,Ap as o,kp as p,Rp as r,wp as s,Tm as t,Op as u,Cp as v,Eo as w,Lp as x,Bp as y,In as z}; |