const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CKkaAyvn.js","assets/index-CNenVvng.js","assets/index-CEafZgOp.js","assets/index-O_m_gps8.js","assets/Login-BVTE6rEE.js","assets/auth-D_c9zPvk.js","assets/Login-BH4ngh9v.css","assets/Bind-D-Qx4L__.js","assets/Bind-QRAKHU1z.css","assets/index-p_Y1ee2a.css","assets/WeworkOnly-6LDEfFFZ.js","assets/WeworkOnly-CfiQw4Wy.css","assets/AutomationProgress-aWntKJiO.js","assets/AutomationProgress-5xKDZdIh.css","assets/VideoIntro-CQaJHUNF.js","assets/VideoIntro-DqGcGL8e.css"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();/** * @vue/shared v3.5.35 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Xa(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ue={},hs=[],rn=()=>{},Vc=()=>!1,hi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),pi=e=>e.startsWith("onUpdate:"),lt=Object.assign,Ya=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Gf=Object.prototype.hasOwnProperty,Me=(e,t)=>Gf.call(e,t),ve=Array.isArray,ps=e=>go(e)==="[object Map]",jc=e=>go(e)==="[object Set]",Vr=e=>go(e)==="[object Date]",Ce=e=>typeof e=="function",ze=e=>typeof e=="string",zt=e=>typeof e=="symbol",Fe=e=>e!==null&&typeof e=="object",qc=e=>(Fe(e)||Ce(e))&&Ce(e.then)&&Ce(e.catch),Uc=Object.prototype.toString,go=e=>Uc.call(e),Jf=e=>go(e).slice(8,-1),zc=e=>go(e)==="[object Object]",mi=e=>ze(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Js=Xa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_i=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Xf=/-\w/g,xt=_i(e=>e.replace(Xf,t=>t.slice(1).toUpperCase())),Yf=/\B([A-Z])/g,En=_i(e=>e.replace(Yf,"-$1").toLowerCase()),gi=_i(e=>e.charAt(0).toUpperCase()+e.slice(1)),qi=_i(e=>e?`on${gi(e)}`:""),sn=(e,t)=>!Object.is(e,t),Ui=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Qf=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Wc=e=>{const t=ze(e)?Number(e):NaN;return isNaN(t)?e:t};let jr;const vi=()=>jr||(jr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ln(e){if(ve(e)){const t={};for(let n=0;n{if(n){const s=n.split(eh);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function sh(e){if(!e)return"";if(ze(e))return e;let t="";for(const n in e){const s=e[n];if(ze(s)||typeof s=="number"){const o=n.startsWith("--")?n:En(n);t+=`${o}:${s};`}}return t}function _e(e){let t="";if(ze(e))t=e;else if(ve(e))for(let n=0;n!!(e&&e.__v_isRef===!0),V=e=>ze(e)?e:e==null?"":ve(e)||Fe(e)&&(e.toString===Uc||!Ce(e.toString))?Gc(e)?V(e.value):JSON.stringify(e,Jc,2):String(e),Jc=(e,t)=>Gc(t)?Jc(e,t.value):ps(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],i)=>(n[zi(s,i)+" =>"]=o,n),{})}:jc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>zi(n))}:zt(t)?zi(t):Fe(t)&&!ve(t)&&!zc(t)?String(t):t,zi=(e,t="")=>{var n;return zt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.35 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let rt;class Xc{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&rt&&(rt.active?(this.parent=rt,this.index=(rt.scopes||(rt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0){if(rt===this)rt=this.prevScope;else{let t=rt;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n0)return;if(Ys){let t=Ys;for(Ys=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Xs;){let t=Xs;for(Xs=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function nu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function su(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),nr(s),rh(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function _a(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ou(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ou(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ao)||(e.globalVersion=ao,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!_a(e))))return;e.flags|=2;const t=e.dep,n=We,s=Xt;We=e,Xt=!0;try{nu(e);const o=e.fn(e._value);(t.version===0||sn(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{We=n,Xt=s,su(e),e.flags&=-3}}function nr(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)nr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function rh(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Xt=!0;const iu=[];function yn(){iu.push(Xt),Xt=!1}function bn(){const e=iu.pop();Xt=e===void 0?!0:e}function qr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=We;We=void 0;try{t()}finally{We=n}}}let ao=0;class lh{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class sr{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!We||!Xt||We===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==We)n=this.activeLink=new lh(We,this),We.deps?(n.prevDep=We.depsTail,We.depsTail.nextDep=n,We.depsTail=n):We.deps=We.depsTail=n,au(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=We.depsTail,n.nextDep=void 0,We.depsTail.nextDep=n,We.depsTail=n,We.deps===n&&(We.deps=s)}return n}trigger(t){this.version++,ao++,this.notify(t)}notify(t){er();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{tr()}}}function au(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)au(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ni=new WeakMap,Gn=Symbol(""),ga=Symbol(""),ro=Symbol("");function gt(e,t,n){if(Xt&&We){let s=ni.get(e);s||ni.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new sr),o.map=s,o.key=n),o.track()}}function mn(e,t,n,s,o,i){const a=ni.get(e);if(!a){ao++;return}const r=c=>{c&&c.trigger()};if(er(),t==="clear")a.forEach(r);else{const c=ve(e),d=c&&mi(n);if(c&&n==="length"){const l=Number(s);a.forEach((u,f)=>{(f==="length"||f===ro||!zt(f)&&f>=l)&&r(u)})}else switch((n!==void 0||a.has(void 0))&&r(a.get(n)),d&&r(a.get(ro)),t){case"add":c?d&&r(a.get("length")):(r(a.get(Gn)),ps(e)&&r(a.get(ga)));break;case"delete":c||(r(a.get(Gn)),ps(e)&&r(a.get(ga)));break;case"set":ps(e)&&r(a.get(Gn));break}}tr()}function ch(e,t){const n=ni.get(e);return n&&n.get(t)}function ns(e){const t=Pe(e);return t===e?t:(gt(t,"iterate",ro),Dt(e)?t:t.map(Yt))}function yi(e){return gt(e=Pe(e),"iterate",ro),e}function nn(e,t){return wn(e)?vs(gn(e)?Yt(t):t):Yt(t)}const uh={__proto__:null,[Symbol.iterator](){return Wi(this,Symbol.iterator,e=>nn(this,e))},concat(...e){return ns(this).concat(...e.map(t=>ve(t)?ns(t):t))},entries(){return Wi(this,"entries",e=>(e[1]=nn(this,e[1]),e))},every(e,t){return un(this,"every",e,t,void 0,arguments)},filter(e,t){return un(this,"filter",e,t,n=>n.map(s=>nn(this,s)),arguments)},find(e,t){return un(this,"find",e,t,n=>nn(this,n),arguments)},findIndex(e,t){return un(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return un(this,"findLast",e,t,n=>nn(this,n),arguments)},findLastIndex(e,t){return un(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return un(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ki(this,"includes",e)},indexOf(...e){return Ki(this,"indexOf",e)},join(e){return ns(this).join(e)},lastIndexOf(...e){return Ki(this,"lastIndexOf",e)},map(e,t){return un(this,"map",e,t,void 0,arguments)},pop(){return Ps(this,"pop")},push(...e){return Ps(this,"push",e)},reduce(e,...t){return Ur(this,"reduce",e,t)},reduceRight(e,...t){return Ur(this,"reduceRight",e,t)},shift(){return Ps(this,"shift")},some(e,t){return un(this,"some",e,t,void 0,arguments)},splice(...e){return Ps(this,"splice",e)},toReversed(){return ns(this).toReversed()},toSorted(e){return ns(this).toSorted(e)},toSpliced(...e){return ns(this).toSpliced(...e)},unshift(...e){return Ps(this,"unshift",e)},values(){return Wi(this,"values",e=>nn(this,e))}};function Wi(e,t,n){const s=yi(e),o=s[t]();return s!==e&&!Dt(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.done||(i.value=n(i.value)),i}),o}const dh=Array.prototype;function un(e,t,n,s,o,i){const a=yi(e),r=a!==e&&!Dt(e),c=a[t];if(c!==dh[t]){const u=c.apply(e,i);return r?Yt(u):u}let d=n;a!==e&&(r?d=function(u,f){return n.call(this,nn(e,u),f,e)}:n.length>2&&(d=function(u,f){return n.call(this,u,f,e)}));const l=c.call(a,d,s);return r&&o?o(l):l}function Ur(e,t,n,s){const o=yi(e),i=o!==e&&!Dt(e);let a=n,r=!1;o!==e&&(i?(r=s.length===0,a=function(d,l,u){return r&&(r=!1,d=nn(e,d)),n.call(this,d,nn(e,l),u,e)}):n.length>3&&(a=function(d,l,u){return n.call(this,d,l,u,e)}));const c=o[t](a,...s);return r?nn(e,c):c}function Ki(e,t,n){const s=Pe(e);gt(s,"iterate",ro);const o=s[t](...n);return(o===-1||o===!1)&&Si(n[0])?(n[0]=Pe(n[0]),s[t](...n)):o}function Ps(e,t,n=[]){yn(),er();const s=Pe(e)[t].apply(e,n);return tr(),bn(),s}const fh=Xa("__proto__,__v_isRef,__isVue"),ru=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(zt));function hh(e){zt(e)||(e=String(e));const t=Pe(this);return gt(t,"has",e),t.hasOwnProperty(e)}class lu{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(o?i?pu:hu:i?fu:du).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const a=ve(t);if(!o){let c;if(a&&(c=uh[n]))return c;if(n==="hasOwnProperty")return hh}const r=Reflect.get(t,n,Ye(t)?t:s);if((zt(n)?ru.has(n):fh(n))||(o||gt(t,"get",n),i))return r;if(Ye(r)){const c=a&&mi(n)?r:r.value;return o&&Fe(c)?ya(c):c}return Fe(r)?o?ya(r):pt(r):r}}class cu extends lu{constructor(t=!1){super(!1,t)}set(t,n,s,o){let i=t[n];const a=ve(t)&&mi(n);if(!this._isShallow){const d=wn(i);if(!Dt(s)&&!wn(s)&&(i=Pe(i),s=Pe(s)),!a&&Ye(i)&&!Ye(s))return d||(i.value=s),!0}const r=a?Number(n)e,Do=e=>Reflect.getPrototypeOf(e);function vh(e,t,n){return function(...s){const o=this.__v_raw,i=Pe(o),a=ps(i),r=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,d=o[e](...s),l=n?va:t?vs:Yt;return!t&>(i,"iterate",c?ga:Gn),lt(Object.create(d),{next(){const{value:u,done:f}=d.next();return f?{value:u,done:f}:{value:r?[l(u[0]),l(u[1])]:l(u),done:f}}})}}function Bo(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function yh(e,t){const n={get(o){const i=this.__v_raw,a=Pe(i),r=Pe(o);e||(sn(o,r)&>(a,"get",o),gt(a,"get",r));const{has:c}=Do(a),d=t?va:e?vs:Yt;if(c.call(a,o))return d(i.get(o));if(c.call(a,r))return d(i.get(r));i!==a&&i.get(o)},get size(){const o=this.__v_raw;return!e&>(Pe(o),"iterate",Gn),o.size},has(o){const i=this.__v_raw,a=Pe(i),r=Pe(o);return e||(sn(o,r)&>(a,"has",o),gt(a,"has",r)),o===r?i.has(o):i.has(o)||i.has(r)},forEach(o,i){const a=this,r=a.__v_raw,c=Pe(r),d=t?va:e?vs:Yt;return!e&>(c,"iterate",Gn),r.forEach((l,u)=>o.call(i,d(l),d(u),a))}};return lt(n,e?{add:Bo("add"),set:Bo("set"),delete:Bo("delete"),clear:Bo("clear")}:{add(o){const i=Pe(this),a=Do(i),r=Pe(o),c=!t&&!Dt(o)&&!wn(o)?r:o;return a.has.call(i,c)||sn(o,c)&&a.has.call(i,o)||sn(r,c)&&a.has.call(i,r)||(i.add(c),mn(i,"add",c,c)),this},set(o,i){!t&&!Dt(i)&&!wn(i)&&(i=Pe(i));const a=Pe(this),{has:r,get:c}=Do(a);let d=r.call(a,o);d||(o=Pe(o),d=r.call(a,o));const l=c.call(a,o);return a.set(o,i),d?sn(i,l)&&mn(a,"set",o,i):mn(a,"add",o,i),this},delete(o){const i=Pe(this),{has:a,get:r}=Do(i);let c=a.call(i,o);c||(o=Pe(o),c=a.call(i,o)),r&&r.call(i,o);const d=i.delete(o);return c&&mn(i,"delete",o,void 0),d},clear(){const o=Pe(this),i=o.size!==0,a=o.clear();return i&&mn(o,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=vh(o,e,t)}),n}function bi(e,t){const n=yh(e,t);return(s,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(Me(n,o)&&o in s?n:s,o,i)}const bh={get:bi(!1,!1)},wh={get:bi(!1,!0)},Sh={get:bi(!0,!1)},Eh={get:bi(!0,!0)},du=new WeakMap,fu=new WeakMap,hu=new WeakMap,pu=new WeakMap;function Ch(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pt(e){return wn(e)?e:wi(e,!1,ph,bh,du)}function mu(e){return wi(e,!1,_h,wh,fu)}function ya(e){return wi(e,!0,mh,Sh,hu)}function Go(e){return wi(e,!0,gh,Eh,pu)}function wi(e,t,n,s,o){if(!Fe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=o.get(e);if(i)return i;const a=Ch(Jf(e));if(a===0)return e;const r=new Proxy(e,a===2?s:n);return o.set(e,r),r}function gn(e){return wn(e)?gn(e.__v_raw):!!(e&&e.__v_isReactive)}function wn(e){return!!(e&&e.__v_isReadonly)}function Dt(e){return!!(e&&e.__v_isShallow)}function Si(e){return e?!!e.__v_raw:!1}function Pe(e){const t=e&&e.__v_raw;return t?Pe(t):e}function or(e){return!Me(e,"__v_skip")&&Object.isExtensible(e)&&Hc(e,"__v_skip",!0),e}const Yt=e=>Fe(e)?pt(e):e,vs=e=>Fe(e)?ya(e):e;function Ye(e){return e?e.__v_isRef===!0:!1}function j(e){return _u(e,!1)}function Bn(e){return _u(e,!0)}function _u(e,t){return Ye(e)?e:new xh(e,t)}class xh{constructor(t,n){this.dep=new sr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Pe(t),this._value=n?t:Yt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Dt(t)||wn(t);t=s?t:Pe(t),sn(t,n)&&(this._rawValue=t,this._value=s?t:Yt(t),this.dep.trigger())}}function Re(e){return Ye(e)?e.value:e}function ms(e){return Ce(e)?e():Re(e)}const kh={get:(e,t,n)=>t==="__v_raw"?e:Re(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return Ye(o)&&!Ye(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function gu(e){return gn(e)?e:new Proxy(e,kh)}function Th(e){const t=ve(e)?new Array(e.length):{};for(const n in e)t[n]=Rh(e,n);return t}class Ah{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=zt(n)?n:String(n),this._raw=Pe(t);let o=!0,i=t;if(!ve(t)||zt(this._key)||!mi(this._key))do o=!Si(i)||Dt(i);while(o&&(i=i.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=Re(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ye(this._raw[this._key])){const n=this._object[this._key];if(Ye(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return ch(this._raw,this._key)}}function Rh(e,t,n){return new Ah(e,t,n)}class Ih{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new sr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ao-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&We!==this)return tu(this,!0),!0}get value(){const t=this.dep.track();return ou(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Oh(e,t,n=!1){let s,o;return Ce(e)?s=e:(s=e.get,o=e.set),new Ih(s,o,n)}const No={},si=new WeakMap;let Un;function $h(e,t=!1,n=Un){if(n){let s=si.get(n);s||si.set(n,s=[]),s.push(e)}}function Ph(e,t,n=Ue){const{immediate:s,deep:o,once:i,scheduler:a,augmentJob:r,call:c}=n,d=k=>o?k:Dt(k)||o===!1||o===0?_n(k,1):_n(k);let l,u,f,h,g=!1,m=!1;if(Ye(e)?(u=()=>e.value,g=Dt(e)):gn(e)?(u=()=>d(e),g=!0):ve(e)?(m=!0,g=e.some(k=>gn(k)||Dt(k)),u=()=>e.map(k=>{if(Ye(k))return k.value;if(gn(k))return d(k);if(Ce(k))return c?c(k,2):k()})):Ce(e)?t?u=c?()=>c(e,2):e:u=()=>{if(f){yn();try{f()}finally{bn()}}const k=Un;Un=l;try{return c?c(e,3,[h]):e(h)}finally{Un=k}}:u=rn,t&&o){const k=u,b=o===!0?1/0:o;u=()=>_n(k(),b)}const p=Za(),y=()=>{l.stop(),p&&p.active&&Ya(p.effects,l)};if(i&&t){const k=t;t=(...b)=>{k(...b),y()}}let C=m?new Array(e.length).fill(No):No;const R=k=>{if(!(!(l.flags&1)||!l.dirty&&!k))if(t){const b=l.run();if(o||g||(m?b.some((I,D)=>sn(I,C[D])):sn(b,C))){f&&f();const I=Un;Un=l;try{const D=[b,C===No?void 0:m&&C[0]===No?[]:C,h];C=b,c?c(t,3,D):t(...D)}finally{Un=I}}}else l.run()};return r&&r(R),l=new Zc(u),l.scheduler=a?()=>a(R,!1):R,h=k=>$h(k,!1,l),f=l.onStop=()=>{const k=si.get(l);if(k){if(c)c(k,4);else for(const b of k)b();si.delete(l)}},t?s?R(!0):C=l.run():a?a(R.bind(null,!0),!0):l.run(),y.pause=l.pause.bind(l),y.resume=l.resume.bind(l),y.stop=y,y}function _n(e,t=1/0,n){if(t<=0||!Fe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ye(e))_n(e.value,t,n);else if(ve(e))for(let s=0;s{_n(s,t,n)});else if(zc(e)){for(const s in e)_n(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&_n(e[s],t,n)}return e}/** * @vue/runtime-core v3.5.35 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function vo(e,t,n,s){try{return s?e(...s):e()}catch(o){yo(o,t,n)}}function Ht(e,t,n,s){if(Ce(e)){const o=vo(e,t,n,s);return o&&qc(o)&&o.catch(i=>{yo(i,t,n)}),o}if(ve(e)){const o=[];for(let i=0;i>>1,o=Ct[s],i=lo(o);i=lo(n)?Ct.push(e):Ct.splice(Bh(t),0,e),e.flags|=1,yu()}}function yu(){oi||(oi=vu.then(wu))}function ba(e){ve(e)?_s.push(...e):$n&&e.id===-1?$n.splice(cs+1,0,e):e.flags&1||(_s.push(e),e.flags|=1),yu()}function zr(e,t,n=tn+1){for(;nlo(n)-lo(s));if(_s.length=0,$n){$n.push(...t);return}for($n=t,cs=0;cs<$n.length;cs++){const n=$n[cs];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}$n=null,cs=0}}const lo=e=>e.id==null?e.flags&2?-1:1/0:e.id;function wu(e){try{for(tn=0;tn{s._d&&li(-1);const i=ii(t);let a;try{a=e(...o)}finally{ii(i),s._d&&li(1)}return a};return s._n=!0,s._c=!0,s._d=!0,s}function Jn(e,t){if(Pt===null)return e;const n=Ti(Pt),s=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&Ce(t)?t.call(s&&s.proxy):t}}function Nh(){return!!(Wt()||Xn)}const Lh=Symbol.for("v-scx"),Mh=()=>ht(Lh);function Eu(e,t){return ar(e,null,t)}function ke(e,t,n){return ar(e,t,n)}function ar(e,t,n=Ue){const{immediate:s,deep:o,flush:i,once:a}=n,r=lt({},n),c=t&&s||!t&&i!=="post";let d;if(fo){if(i==="sync"){const h=Mh();d=h.__watcherHandles||(h.__watcherHandles=[])}else if(!c){const h=()=>{};return h.stop=rn,h.resume=rn,h.pause=rn,h}}const l=vt;r.call=(h,g,m)=>Ht(h,l,g,m);let u=!1;i==="post"?r.scheduler=h=>{_t(h,l&&l.suspense)}:i!=="sync"&&(u=!0,r.scheduler=(h,g)=>{g?h():ir(h)}),r.augmentJob=h=>{t&&(h.flags|=4),u&&(h.flags|=2,l&&(h.id=l.uid,h.i=l))};const f=Ph(e,t,r);return fo&&(d?d.push(f):c&&f()),f}function Fh(e,t,n){const s=this.proxy,o=ze(e)?e.includes(".")?Cu(s,e):()=>s[e]:e.bind(s,s);let i;Ce(t)?i=t:(i=t.handler,n=t);const a=bo(this),r=ar(o,i.bind(s),n);return a(),r}function Cu(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;oe.__isTeleport,zn=e=>e&&(e.disabled||e.disabled===""),Vh=e=>e&&(e.defer||e.defer===""),Hr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Wr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,wa=(e,t)=>{const n=e&&e.to;return ze(n)?t?t(n):null:n},jh={name:"Teleport",__isTeleport:!0,process(e,t,n,s,o,i,a,r,c,d){const{mc:l,pc:u,pbc:f,o:{insert:h,querySelector:g,createText:m,createComment:p,parentNode:y}}=d,C=zn(t.props);let{dynamicChildren:R}=t;const k=(D,K,F)=>{D.shapeFlag&16&&l(D.children,K,F,o,i,a,r,c)},b=(D=t)=>{const K=zn(D.props),F=D.target=wa(D.props,g),M=Sa(F,D,m,h);F&&(a!=="svg"&&Hr(F)?a="svg":a!=="mathml"&&Wr(F)&&(a="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(F),K||(k(D,F,M),Ws(D,!1)))},I=D=>{const K=()=>{if(In.get(D)===K){if(In.delete(D),zn(D.props)){const F=y(D.el)||n;k(D,F,D.anchor),Ws(D,!0)}b(D)}};In.set(D,K),_t(K,i)};if(e==null){const D=t.el=m(""),K=t.anchor=m("");if(h(D,n,s),h(K,n,s),Vh(t.props)||i&&i.pendingBranch){I(t);return}C&&(k(t,n,K),Ws(t,!0)),b()}else{t.el=e.el;const D=t.anchor=e.anchor,K=In.get(e);if(K){K.flags|=8,In.delete(e),I(t);return}t.targetStart=e.targetStart;const F=t.target=e.target,M=t.targetAnchor=e.targetAnchor,N=zn(e.props),O=N?n:F,Z=N?D:M;if(a==="svg"||Hr(F)?a="svg":(a==="mathml"||Wr(F))&&(a="mathml"),R?(f(e.dynamicChildren,R,O,o,i,a,r),fr(e,t,!0)):c||u(e,t,O,Z,o,i,a,r,!1),C)N?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Lo(t,n,D,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Q=t.target=wa(t.props,g);Q&&Lo(t,Q,null,d,0)}else N&&Lo(t,F,M,d,1);Ws(t,C)}},remove(e,t,n,{um:s,o:{remove:o}},i){const{shapeFlag:a,children:r,anchor:c,targetStart:d,targetAnchor:l,target:u,props:f}=e,h=i||!zn(f),g=In.get(e);if(g&&(g.flags|=8,In.delete(e)),u&&(o(d),o(l)),i&&o(c),!g&&a&16)for(let m=0;m{e.isMounted=!0}),Ts(()=>{e.isUnmounting=!0}),e}const Ft=[Function,Array],Au={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ft,onEnter:Ft,onAfterEnter:Ft,onEnterCancelled:Ft,onBeforeLeave:Ft,onLeave:Ft,onAfterLeave:Ft,onLeaveCancelled:Ft,onBeforeAppear:Ft,onAppear:Ft,onAfterAppear:Ft,onAppearCancelled:Ft},Ru=e=>{const t=e.subTree;return t.component?Ru(t.component):t},zh={name:"BaseTransition",props:Au,setup(e,{slots:t}){const n=Wt(),s=Uh();return()=>{const o=t.default&&$u(t.default(),!0),i=o&&o.length?Iu(o):n.subTree?le():void 0;if(!i)return;const a=Pe(e),{mode:r}=a;if(s.isLeaving)return Gi(i);const c=Kr(i);if(!c)return Gi(i);let d=Ea(c,a,s,n,u=>d=u);c.type!==ft&&co(c,d);let l=n.subTree&&Kr(n.subTree);if(l&&l.type!==ft&&!on(l,c)&&Ru(n).type!==ft){let u=Ea(l,a,s,n);if(co(l,u),r==="out-in"&&c.type!==ft)return s.isLeaving=!0,u.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete u.afterLeave,l=void 0},Gi(i);r==="in-out"&&c.type!==ft?u.delayLeave=(f,h,g)=>{const m=Ou(s,l);m[String(l.key)]=l,f[qt]=()=>{h(),f[qt]=void 0,delete d.delayedLeave,l=void 0},d.delayedLeave=()=>{g(),delete d.delayedLeave,l=void 0}}:l=void 0}else l&&(l=void 0);return i}}};function Iu(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ft){t=n;break}}return t}const Hh=zh;function Ou(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Ea(e,t,n,s,o){const{appear:i,mode:a,persisted:r=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:f,onLeave:h,onAfterLeave:g,onLeaveCancelled:m,onBeforeAppear:p,onAppear:y,onAfterAppear:C,onAppearCancelled:R}=t,k=String(e.key),b=Ou(n,e),I=(F,M)=>{F&&Ht(F,s,9,M)},D=(F,M)=>{const N=M[1];I(F,M),ve(F)?F.every(O=>O.length<=1)&&N():F.length<=1&&N()},K={mode:a,persisted:r,beforeEnter(F){let M=c;if(!n.isMounted)if(i)M=p||c;else return;F[qt]&&F[qt](!0);const N=b[k];N&&on(e,N)&&N.el[qt]&&N.el[qt](),I(M,[F])},enter(F){if(b[k]===e)return;let M=d,N=l,O=u;if(!n.isMounted)if(i)M=y||d,N=C||l,O=R||u;else return;let Z=!1;F[Ds]=we=>{Z||(Z=!0,we?I(O,[F]):I(N,[F]),K.delayedLeave&&K.delayedLeave(),F[Ds]=void 0)};const Q=F[Ds].bind(null,!1);M?D(M,[F,Q]):Q()},leave(F,M){const N=String(e.key);if(F[Ds]&&F[Ds](!0),n.isUnmounting)return M();I(f,[F]);let O=!1;F[qt]=Q=>{O||(O=!0,M(),Q?I(m,[F]):I(g,[F]),F[qt]=void 0,b[N]===e&&delete b[N])};const Z=F[qt].bind(null,!1);b[N]=e,h?D(h,[F,Z]):Z()},clone(F){const M=Ea(F,t,n,s,o);return o&&o(M),M}};return K}function Gi(e){if(Ei(e))return e=Nn(e),e.children=null,e}function Kr(e){if(!Ei(e))return ku(e.type)&&e.children?Iu(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ce(n.default))return n.default()}}function co(e,t){e.shapeFlag&6&&e.component?(e.transition=t,co(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function $u(e,t=!1,n){let s=[],o=0;for(let i=0;i1)for(let i=0;iQs(m,t&&(ve(t)?t[p]:t),n,s,o));return}if(Zs(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Qs(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?Ti(s.component):s.el,a=o?null:i,{i:r,r:c}=e,d=t&&t.r,l=r.refs===Ue?r.refs={}:r.refs,u=r.setupState,f=Pe(u),h=u===Ue?Vc:m=>Gr(l,m)?!1:Me(f,m),g=(m,p)=>!(p&&Gr(l,p));if(d!=null&&d!==c){if(Jr(t),ze(d))l[d]=null,h(d)&&(u[d]=null);else if(Ye(d)){const m=t;g(d,m.k)&&(d.value=null),m.k&&(l[m.k]=null)}}if(Ce(c))vo(c,r,12,[a,l]);else{const m=ze(c),p=Ye(c);if(m||p){const y=()=>{if(e.f){const C=m?h(c)?u[c]:l[c]:g()||!e.k?c.value:l[e.k];if(o)ve(C)&&Ya(C,i);else if(ve(C))C.includes(i)||C.push(i);else if(m)l[c]=[i],h(c)&&(u[c]=l[c]);else{const R=[i];g(c,e.k)&&(c.value=R),e.k&&(l[e.k]=R)}}else m?(l[c]=a,h(c)&&(u[c]=a)):p&&(g(c,e.k)&&(c.value=a),e.k&&(l[e.k]=a))};if(a){const C=()=>{y(),ai.delete(e)};C.id=-1,ai.set(e,C),_t(C,n)}else Jr(e),y()}}}function Jr(e){const t=ai.get(e);t&&(t.flags|=8,ai.delete(e))}vi().requestIdleCallback;vi().cancelIdleCallback;const Zs=e=>!!e.type.__asyncLoader,Ei=e=>e.type.__isKeepAlive;function ks(e,t){Du(e,"a",t)}function es(e,t){Du(e,"da",t)}function Du(e,t,n=vt){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ci(t,s,n),n){let o=n.parent;for(;o&&o.parent;)Ei(o.parent.vnode)&&Wh(s,t,n,o),o=o.parent}}function Wh(e,t,n,s){const o=Ci(t,e,s,!0);Ln(()=>{Ya(s[t],o)},n)}function Ci(e,t,n=vt,s=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{yn();const r=bo(n),c=Ht(t,n,e,a);return r(),bn(),c});return s?o.unshift(i):o.push(i),i}}const Cn=e=>(t,n=vt)=>{(!fo||e==="sp")&&Ci(e,(...s)=>t(...s),n)},Kh=Cn("bm"),nt=Cn("m"),Bu=Cn("bu"),Gh=Cn("u"),Ts=Cn("bum"),Ln=Cn("um"),Jh=Cn("sp"),Xh=Cn("rtg"),Yh=Cn("rtc");function Qh(e,t=vt){Ci("ec",e,t)}const rr="components",Zh="directives";function ep(e,t){return lr(rr,e,!0,t)||e}const Nu=Symbol.for("v-ndc");function tp(e){return ze(e)?lr(rr,e,!1)||e:e||Nu}function VT(e){return lr(Zh,e)}function lr(e,t,n=!0,s=!1){const o=Pt||vt;if(o){const i=o.type;if(e===rr){const r=Hp(i,!1);if(r&&(r===t||r===xt(t)||r===gi(xt(t))))return i}const a=Xr(o[e]||i[e],t)||Xr(o.appContext[e],t);return!a&&s?i:a}}function Xr(e,t){return e&&(e[t]||e[xt(t)]||e[gi(xt(t))])}function tt(e,t,n,s){let o;const i=n,a=ve(e);if(a||ze(e)){const r=a&&gn(e);let c=!1,d=!1;r&&(c=!Dt(e),d=wn(e),e=yi(e)),o=new Array(e.length);for(let l=0,u=e.length;lt(r,c,void 0,i));else{const r=Object.keys(e);o=new Array(r.length);for(let c=0,d=r.length;ce?sd(e)?Ti(e):Ca(e.parent):null,eo=lt(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=>Ca(e.parent),$root:e=>Ca(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Mu(e),$forceUpdate:e=>e.f||(e.f=()=>{ir(e.update)}),$nextTick:e=>e.n||(e.n=Xe.bind(e.proxy)),$watch:e=>Fh.bind(e)}),Ji=(e,t)=>e!==Ue&&!e.__isScriptSetup&&Me(e,t),np={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:i,accessCache:a,type:r,appContext:c}=e;if(t[0]!=="$"){const f=a[t];if(f!==void 0)switch(f){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Ji(s,t))return a[t]=1,s[t];if(o!==Ue&&Me(o,t))return a[t]=2,o[t];if(Me(i,t))return a[t]=3,i[t];if(n!==Ue&&Me(n,t))return a[t]=4,n[t];xa&&(a[t]=0)}}const d=eo[t];let l,u;if(d)return t==="$attrs"&>(e.attrs,"get",""),d(e);if((l=r.__cssModules)&&(l=l[t]))return l;if(n!==Ue&&Me(n,t))return a[t]=4,n[t];if(u=c.config.globalProperties,Me(u,t))return u[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:i}=e;return Ji(o,t)?(o[t]=n,!0):s!==Ue&&Me(s,t)?(s[t]=n,!0):Me(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,props:i,type:a}},r){let c;return!!(n[r]||e!==Ue&&r[0]!=="$"&&Me(e,r)||Ji(t,r)||Me(i,r)||Me(s,r)||Me(eo,r)||Me(o.config.globalProperties,r)||(c=a.__cssModules)&&c[r])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Yr(e){return ve(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let xa=!0;function sp(e){const t=Mu(e),n=e.proxy,s=e.ctx;xa=!1,t.beforeCreate&&Qr(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:r,provide:c,inject:d,created:l,beforeMount:u,mounted:f,beforeUpdate:h,updated:g,activated:m,deactivated:p,beforeDestroy:y,beforeUnmount:C,destroyed:R,unmounted:k,render:b,renderTracked:I,renderTriggered:D,errorCaptured:K,serverPrefetch:F,expose:M,inheritAttrs:N,components:O,directives:Z,filters:Q}=t;if(d&&op(d,s,null),a)for(const ae in a){const de=a[ae];Ce(de)&&(s[ae]=de.bind(n))}if(o){const ae=o.call(n,n);Fe(ae)&&(e.data=pt(ae))}if(xa=!0,i)for(const ae in i){const de=i[ae],xe=Ce(de)?de.bind(n,n):Ce(de.get)?de.get.bind(n,n):rn,Se=!Ce(de)&&Ce(de.set)?de.set.bind(n):rn,ne=q({get:xe,set:Se});Object.defineProperty(s,ae,{enumerable:!0,configurable:!0,get:()=>ne.value,set:se=>ne.value=se})}if(r)for(const ae in r)Lu(r[ae],s,n,ae);if(c){const ae=Ce(c)?c.call(n):c;Reflect.ownKeys(ae).forEach(de=>{cn(de,ae[de])})}l&&Qr(l,e,"c");function he(ae,de){ve(de)?de.forEach(xe=>ae(xe.bind(n))):de&&ae(de.bind(n))}if(he(Kh,u),he(nt,f),he(Bu,h),he(Gh,g),he(ks,m),he(es,p),he(Qh,K),he(Yh,I),he(Xh,D),he(Ts,C),he(Ln,k),he(Jh,F),ve(M))if(M.length){const ae=e.exposed||(e.exposed={});M.forEach(de=>{Object.defineProperty(ae,de,{get:()=>n[de],set:xe=>n[de]=xe,enumerable:!0})})}else e.exposed||(e.exposed={});b&&e.render===rn&&(e.render=b),N!=null&&(e.inheritAttrs=N),O&&(e.components=O),Z&&(e.directives=Z),F&&Pu(e)}function op(e,t,n=rn){ve(e)&&(e=ka(e));for(const s in e){const o=e[s];let i;Fe(o)?"default"in o?i=ht(o.from||s,o.default,!0):i=ht(o.from||s):i=ht(o),Ye(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[s]=i}}function Qr(e,t,n){Ht(ve(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Lu(e,t,n,s){let o=s.includes(".")?Cu(n,s):()=>n[s];if(ze(e)){const i=t[e];Ce(i)&&ke(o,i)}else if(Ce(e))ke(o,e.bind(n));else if(Fe(e))if(ve(e))e.forEach(i=>Lu(i,t,n,s));else{const i=Ce(e.handler)?e.handler.bind(n):t[e.handler];Ce(i)&&ke(o,i,e)}}function Mu(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,r=i.get(t);let c;return r?c=r:!o.length&&!n&&!s?c=t:(c={},o.length&&o.forEach(d=>ri(c,d,a,!0)),ri(c,t,a)),Fe(t)&&i.set(t,c),c}function ri(e,t,n,s=!1){const{mixins:o,extends:i}=t;i&&ri(e,i,n,!0),o&&o.forEach(a=>ri(e,a,n,!0));for(const a in t)if(!(s&&a==="expose")){const r=ip[a]||n&&n[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const ip={data:Zr,props:el,emits:el,methods:Ks,computed:Ks,beforeCreate:wt,created:wt,beforeMount:wt,mounted:wt,beforeUpdate:wt,updated:wt,beforeDestroy:wt,beforeUnmount:wt,destroyed:wt,unmounted:wt,activated:wt,deactivated:wt,errorCaptured:wt,serverPrefetch:wt,components:Ks,directives:Ks,watch:rp,provide:Zr,inject:ap};function Zr(e,t){return t?e?function(){return lt(Ce(e)?e.call(this,this):e,Ce(t)?t.call(this,this):t)}:t:e}function ap(e,t){return Ks(ka(e),ka(t))}function ka(e){if(ve(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${xt(t)}Modifiers`]||e[`${En(t)}Modifiers`];function dp(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Ue;let o=n;const i=t.startsWith("update:"),a=i&&up(s,t.slice(7));a&&(a.trim&&(o=n.map(l=>ze(l)?l.trim():l)),a.number&&(o=n.map(Qf)));let r,c=s[r=qi(t)]||s[r=qi(xt(t))];!c&&i&&(c=s[r=qi(En(t))]),c&&Ht(c,e,6,o);const d=s[r+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,Ht(d,e,6,o)}}const fp=new WeakMap;function Vu(e,t,n=!1){const s=n?fp:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const i=e.emits;let a={},r=!1;if(!Ce(e)){const c=d=>{const l=Vu(d,t,!0);l&&(r=!0,lt(a,l))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!r?(Fe(e)&&s.set(e,null),null):(ve(i)?i.forEach(c=>a[c]=null):lt(a,i),Fe(e)&&s.set(e,a),a)}function xi(e,t){return!e||!hi(t)?!1:(t=t.slice(2).replace(/Once$/,""),Me(e,t[0].toLowerCase()+t.slice(1))||Me(e,En(t))||Me(e,t))}function tl(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[i],slots:a,attrs:r,emit:c,render:d,renderCache:l,props:u,data:f,setupState:h,ctx:g,inheritAttrs:m}=e,p=ii(e);let y,C;try{if(n.shapeFlag&4){const k=o||s,b=k;y=Gt(d.call(b,k,l,u,h,f,g)),C=r}else{const k=t;y=Gt(k.length>1?k(u,{attrs:r,slots:a,emit:c}):k(u,null)),C=t.props?r:pp(r)}}catch(k){to.length=0,yo(k,e,1),y=E(ft)}let R=y;if(C&&m!==!1){const k=Object.keys(C),{shapeFlag:b}=R;k.length&&b&7&&(i&&k.some(pi)&&(C=mp(C,i)),R=Nn(R,C,!1,!0))}return n.dirs&&(R=Nn(R,null,!1,!0),R.dirs=R.dirs?R.dirs.concat(n.dirs):n.dirs),n.transition&&co(R,n.transition),y=R,ii(p),y}function hp(e,t=!0){let n;for(let s=0;s{let t;for(const n in e)(n==="class"||n==="style"||hi(n))&&((t||(t={}))[n]=e[n]);return t},mp=(e,t)=>{const n={};for(const s in e)(!pi(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function _p(e,t,n){const{props:s,children:o,component:i}=e,{props:a,children:r,patchFlag:c}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?nl(s,a,d):!!a;if(c&8){const l=t.dynamicProps;for(let u=0;uObject.create(qu),zu=e=>Object.getPrototypeOf(e)===qu;function gp(e,t,n,s=!1){const o={},i=Uu();e.propsDefaults=Object.create(null),Hu(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=s?o:mu(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function vp(e,t,n,s){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,r=Pe(o),[c]=e.propsOptions;let d=!1;if((s||a>0)&&!(a&16)){if(a&8){const l=e.vnode.dynamicProps;for(let u=0;u{c=!0;const[f,h]=Wu(u,t,!0);lt(a,f),h&&r.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!i&&!c)return Fe(e)&&s.set(e,hs),hs;if(ve(i))for(let l=0;le==="_"||e==="_ctx"||e==="$stable",dr=e=>ve(e)?e.map(Gt):[Gt(e)],bp=(e,t,n)=>{if(t._n)return t;const s=Je((...o)=>dr(t(...o)),n);return s._c=!1,s},Ku=(e,t,n)=>{const s=e._ctx;for(const o in e){if(ur(o))continue;const i=e[o];if(Ce(i))t[o]=bp(o,i,s);else if(i!=null){const a=dr(i);t[o]=()=>a}}},Gu=(e,t)=>{const n=dr(t);e.slots.default=()=>n},Ju=(e,t,n)=>{for(const s in t)(n||!ur(s))&&(e[s]=t[s])},wp=(e,t,n)=>{const s=e.slots=Uu();if(e.vnode.shapeFlag&32){const o=t._;o?(Ju(s,t,n),n&&Hc(s,"_",o,!0)):Ku(t,s)}else t&&Gu(e,t)},Sp=(e,t,n)=>{const{vnode:s,slots:o}=e;let i=!0,a=Ue;if(s.shapeFlag&32){const r=t._;r?n&&r===1?i=!1:Ju(o,t,n):(i=!t.$stable,Ku(t,o)),a=t}else t&&(Gu(e,t),a={default:1});if(i)for(const r in o)!ur(r)&&a[r]==null&&delete o[r]},_t=Pp;function Ep(e){return Cp(e)}function Cp(e,t){const n=vi();n.__VUE__=!0;const{insert:s,remove:o,patchProp:i,createElement:a,createText:r,createComment:c,setText:d,setElementText:l,parentNode:u,nextSibling:f,setScopeId:h=rn,insertStaticContent:g}=e,m=(v,w,x,B=null,W=null,H=null,oe=void 0,ee=null,te=!!w.dynamicChildren)=>{if(v===w)return;v&&!on(v,w)&&(B=S(v),se(v,W,H,!0),v=null),w.patchFlag===-2&&(te=!1,w.dynamicChildren=null);const{type:J,ref:ge,shapeFlag:re}=w;switch(J){case ki:p(v,w,x,B);break;case ft:y(v,w,x,B);break;case Jo:v==null&&C(w,x,B,oe);break;case Ee:O(v,w,x,B,W,H,oe,ee,te);break;default:re&1?b(v,w,x,B,W,H,oe,ee,te):re&6?Z(v,w,x,B,W,H,oe,ee,te):(re&64||re&128)&&J.process(v,w,x,B,W,H,oe,ee,te,X)}ge!=null&&W?Qs(ge,v&&v.ref,H,w||v,!w):ge==null&&v&&v.ref!=null&&Qs(v.ref,null,H,v,!0)},p=(v,w,x,B)=>{if(v==null)s(w.el=r(w.children),x,B);else{const W=w.el=v.el;w.children!==v.children&&d(W,w.children)}},y=(v,w,x,B)=>{v==null?s(w.el=c(w.children||""),x,B):w.el=v.el},C=(v,w,x,B)=>{[v.el,v.anchor]=g(v.children,w,x,B,v.el,v.anchor)},R=({el:v,anchor:w},x,B)=>{let W;for(;v&&v!==w;)W=f(v),s(v,x,B),v=W;s(w,x,B)},k=({el:v,anchor:w})=>{let x;for(;v&&v!==w;)x=f(v),o(v),v=x;o(w)},b=(v,w,x,B,W,H,oe,ee,te)=>{if(w.type==="svg"?oe="svg":w.type==="math"&&(oe="mathml"),v==null)I(w,x,B,W,H,oe,ee,te);else{const J=v.el&&v.el._isVueCE?v.el:null;try{J&&J._beginPatch(),F(v,w,W,H,oe,ee,te)}finally{J&&J._endPatch()}}},I=(v,w,x,B,W,H,oe,ee)=>{let te,J;const{props:ge,shapeFlag:re,transition:pe,dirs:ye}=v;if(te=v.el=a(v.type,H,ge&&ge.is,ge),re&8?l(te,v.children):re&16&&K(v.children,te,null,B,W,Xi(v,H),oe,ee),ye&&Fn(v,null,B,"created"),D(te,v,v.scopeId,oe,B),ge){for(const De in ge)De!=="value"&&!Js(De)&&i(te,De,null,ge[De],H,B);"value"in ge&&i(te,"value",null,ge.value,H),(J=ge.onVnodeBeforeMount)&&en(J,B,v)}ye&&Fn(v,null,B,"beforeMount");const Ie=xp(W,pe);Ie&&pe.beforeEnter(te),s(te,w,x),((J=ge&&ge.onVnodeMounted)||Ie||ye)&&_t(()=>{try{J&&en(J,B,v),Ie&&pe.enter(te),ye&&Fn(v,null,B,"mounted")}finally{}},W)},D=(v,w,x,B,W)=>{if(x&&h(v,x),B)for(let H=0;H{for(let J=te;J{const ee=w.el=v.el;let{patchFlag:te,dynamicChildren:J,dirs:ge}=w;te|=v.patchFlag&16;const re=v.props||Ue,pe=w.props||Ue;let ye;if(x&&Vn(x,!1),(ye=pe.onVnodeBeforeUpdate)&&en(ye,x,w,v),ge&&Fn(w,v,x,"beforeUpdate"),x&&Vn(x,!0),(re.innerHTML&&pe.innerHTML==null||re.textContent&&pe.textContent==null)&&l(ee,""),J?M(v.dynamicChildren,J,ee,x,B,Xi(w,W),H):oe||de(v,w,ee,null,x,B,Xi(w,W),H,!1),te>0){if(te&16)N(ee,re,pe,x,W);else if(te&2&&re.class!==pe.class&&i(ee,"class",null,pe.class,W),te&4&&i(ee,"style",re.style,pe.style,W),te&8){const Ie=w.dynamicProps;for(let De=0;De{ye&&en(ye,x,w,v),ge&&Fn(w,v,x,"updated")},B)},M=(v,w,x,B,W,H,oe)=>{for(let ee=0;ee{if(w!==x){if(w!==Ue)for(const H in w)!Js(H)&&!(H in x)&&i(v,H,w[H],null,W,B);for(const H in x){if(Js(H))continue;const oe=x[H],ee=w[H];oe!==ee&&H!=="value"&&i(v,H,ee,oe,W,B)}"value"in x&&i(v,"value",w.value,x.value,W)}},O=(v,w,x,B,W,H,oe,ee,te)=>{const J=w.el=v?v.el:r(""),ge=w.anchor=v?v.anchor:r("");let{patchFlag:re,dynamicChildren:pe,slotScopeIds:ye}=w;ye&&(ee=ee?ee.concat(ye):ye),v==null?(s(J,x,B),s(ge,x,B),K(w.children||[],x,ge,W,H,oe,ee,te)):re>0&&re&64&&pe&&v.dynamicChildren&&v.dynamicChildren.length===pe.length?(M(v.dynamicChildren,pe,x,W,H,oe,ee),(w.key!=null||W&&w===W.subTree)&&fr(v,w,!0)):de(v,w,x,ge,W,H,oe,ee,te)},Z=(v,w,x,B,W,H,oe,ee,te)=>{w.slotScopeIds=ee,v==null?w.shapeFlag&512?W.ctx.activate(w,x,B,oe,te):Q(w,x,B,W,H,oe,te):we(v,w,te)},Q=(v,w,x,B,W,H,oe)=>{const ee=v.component=Vp(v,B,W);if(Ei(v)&&(ee.ctx.renderer=X),jp(ee,!1,oe),ee.asyncDep){if(W&&W.registerDep(ee,he,oe),!v.el){const te=ee.subTree=E(ft);y(null,te,w,x),v.placeholder=te.el}}else he(ee,v,w,x,W,H,oe)},we=(v,w,x)=>{const B=w.component=v.component;if(_p(v,w,x))if(B.asyncDep&&!B.asyncResolved){ae(B,w,x);return}else B.next=w,B.update();else w.el=v.el,B.vnode=w},he=(v,w,x,B,W,H,oe)=>{const ee=()=>{if(v.isMounted){let{next:re,bu:pe,u:ye,parent:Ie,vnode:De}=v;{const Lt=Xu(v);if(Lt){re&&(re.el=De.el,ae(v,re,oe)),Lt.asyncDep.then(()=>{_t(()=>{v.isUnmounted||J()},W)});return}}let Ne=re,Ze;Vn(v,!1),re?(re.el=De.el,ae(v,re,oe)):re=De,pe&&Ui(pe),(Ze=re.props&&re.props.onVnodeBeforeUpdate)&&en(Ze,Ie,re,De),Vn(v,!0);const it=tl(v),Nt=v.subTree;v.subTree=it,m(Nt,it,u(Nt.el),S(Nt),v,W,H),re.el=it.el,Ne===null&&cr(v,it.el),ye&&_t(ye,W),(Ze=re.props&&re.props.onVnodeUpdated)&&_t(()=>en(Ze,Ie,re,De),W)}else{let re;const{el:pe,props:ye}=w,{bm:Ie,m:De,parent:Ne,root:Ze,type:it}=v,Nt=Zs(w);Vn(v,!1),Ie&&Ui(Ie),!Nt&&(re=ye&&ye.onVnodeBeforeMount)&&en(re,Ne,w),Vn(v,!0);{Ze.ce&&Ze.ce._hasShadowRoot()&&Ze.ce._injectChildStyle(it,v.parent?v.parent.type:void 0);const Lt=v.subTree=tl(v);m(null,Lt,x,B,v,W,H),w.el=Lt.el}if(De&&_t(De,W),!Nt&&(re=ye&&ye.onVnodeMounted)){const Lt=w;_t(()=>en(re,Ne,Lt),W)}(w.shapeFlag&256||Ne&&Zs(Ne.vnode)&&Ne.vnode.shapeFlag&256)&&v.a&&_t(v.a,W),v.isMounted=!0,w=x=B=null}};v.scope.on();const te=v.effect=new Zc(ee);v.scope.off();const J=v.update=te.run.bind(te),ge=v.job=te.runIfDirty.bind(te);ge.i=v,ge.id=v.uid,te.scheduler=()=>ir(ge),Vn(v,!0),J()},ae=(v,w,x)=>{w.component=v;const B=v.vnode.props;v.vnode=w,v.next=null,vp(v,w.props,B,x),Sp(v,w.children,x),yn(),zr(v),bn()},de=(v,w,x,B,W,H,oe,ee,te=!1)=>{const J=v&&v.children,ge=v?v.shapeFlag:0,re=w.children,{patchFlag:pe,shapeFlag:ye}=w;if(pe>0){if(pe&128){Se(J,re,x,B,W,H,oe,ee,te);return}else if(pe&256){xe(J,re,x,B,W,H,oe,ee,te);return}}ye&8?(ge&16&&ce(J,W,H),re!==J&&l(x,re)):ge&16?ye&16?Se(J,re,x,B,W,H,oe,ee,te):ce(J,W,H,!0):(ge&8&&l(x,""),ye&16&&K(re,x,B,W,H,oe,ee,te))},xe=(v,w,x,B,W,H,oe,ee,te)=>{v=v||hs,w=w||hs;const J=v.length,ge=w.length,re=Math.min(J,ge);let pe;for(pe=0;pege?ce(v,W,H,!0,!1,re):K(w,x,B,W,H,oe,ee,te,re)},Se=(v,w,x,B,W,H,oe,ee,te)=>{let J=0;const ge=w.length;let re=v.length-1,pe=ge-1;for(;J<=re&&J<=pe;){const ye=v[J],Ie=w[J]=te?pn(w[J]):Gt(w[J]);if(on(ye,Ie))m(ye,Ie,x,null,W,H,oe,ee,te);else break;J++}for(;J<=re&&J<=pe;){const ye=v[re],Ie=w[pe]=te?pn(w[pe]):Gt(w[pe]);if(on(ye,Ie))m(ye,Ie,x,null,W,H,oe,ee,te);else break;re--,pe--}if(J>re){if(J<=pe){const ye=pe+1,Ie=yepe)for(;J<=re;)se(v[J],W,H,!0),J++;else{const ye=J,Ie=J,De=new Map;for(J=Ie;J<=pe;J++){const bt=w[J]=te?pn(w[J]):Gt(w[J]);bt.key!=null&&De.set(bt.key,J)}let Ne,Ze=0;const it=pe-Ie+1;let Nt=!1,Lt=0;const Mn=new Array(it);for(J=0;J=it){se(bt,W,H,!0);continue}let Mt;if(bt.key!=null)Mt=De.get(bt.key);else for(Ne=Ie;Ne<=pe;Ne++)if(Mn[Ne-Ie]===0&&on(bt,w[Ne])){Mt=Ne;break}Mt===void 0?se(bt,W,H,!0):(Mn[Mt-Ie]=J+1,Mt>=Lt?Lt=Mt:Nt=!0,m(bt,w[Mt],x,null,W,H,oe,ee,te),Ze++)}const Oo=Nt?kp(Mn):hs;for(Ne=Oo.length-1,J=it-1;J>=0;J--){const bt=Ie+J,Mt=w[bt],$=w[bt+1],G=bt+1{const{el:H,type:oe,transition:ee,children:te,shapeFlag:J}=v;if(J&6){ne(v.component.subTree,w,x,B);return}if(J&128){v.suspense.move(w,x,B);return}if(J&64){oe.move(v,w,x,X);return}if(oe===Ee){s(H,w,x);for(let re=0;reee.enter(H),W));else{const{leave:re,delayLeave:pe,afterLeave:ye}=ee,Ie=()=>{v.ctx.isUnmounted?o(H):s(H,w,x)},De=()=>{const Ne=H._isLeaving||!!H[qt];H._isLeaving&&H[qt](!0),ee.persisted&&!Ne?Ie():re(H,()=>{Ie(),ye&&ye()})};pe?pe(H,Ie,De):De()}else s(H,w,x)},se=(v,w,x,B=!1,W=!1)=>{const{type:H,props:oe,ref:ee,children:te,dynamicChildren:J,shapeFlag:ge,patchFlag:re,dirs:pe,cacheIndex:ye,memo:Ie}=v;if(re===-2&&(W=!1),ee!=null&&(yn(),Qs(ee,null,x,v,!0),bn()),ye!=null&&(w.renderCache[ye]=void 0),ge&256){w.ctx.deactivate(v);return}const De=ge&1&&pe,Ne=!Zs(v);let Ze;if(Ne&&(Ze=oe&&oe.onVnodeBeforeUnmount)&&en(Ze,w,v),ge&6)Y(v.component,x,B);else{if(ge&128){v.suspense.unmount(x,B);return}De&&Fn(v,null,w,"beforeUnmount"),ge&64?v.type.remove(v,w,x,X,B):J&&!J.hasOnce&&(H!==Ee||re>0&&re&64)?ce(J,w,x,!1,!0):(H===Ee&&re&384||!W&&ge&16)&&ce(te,w,x),B&&ie(v)}const it=Ie!=null&&ye==null;(Ne&&(Ze=oe&&oe.onVnodeUnmounted)||De||it)&&_t(()=>{Ze&&en(Ze,w,v),De&&Fn(v,null,w,"unmounted"),it&&(v.el=null)},x)},ie=v=>{const{type:w,el:x,anchor:B,transition:W}=v;if(w===Ee){Te(x,B);return}if(w===Jo){k(v);return}const H=()=>{o(x),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(v.shapeFlag&1&&W&&!W.persisted){const{leave:oe,delayLeave:ee}=W,te=()=>oe(x,H);ee?ee(v.el,H,te):te()}else H()},Te=(v,w)=>{let x;for(;v!==w;)x=f(v),o(v),v=x;o(w)},Y=(v,w,x)=>{const{bum:B,scope:W,job:H,subTree:oe,um:ee,m:te,a:J}=v;ol(te),ol(J),B&&Ui(B),W.stop(),H&&(H.flags|=8,se(oe,v,w,x)),ee&&_t(ee,w),_t(()=>{v.isUnmounted=!0},w)},ce=(v,w,x,B=!1,W=!1,H=0)=>{for(let oe=H;oe{if(v.shapeFlag&6)return S(v.component.subTree);if(v.shapeFlag&128)return v.suspense.next();const w=f(v.anchor||v.el),x=w&&w[xu];return x?f(x):w};let L=!1;const z=(v,w,x)=>{let B;v==null?w._vnode&&(se(w._vnode,null,null,!0),B=w._vnode.component):m(w._vnode||null,v,w,null,null,null,x),w._vnode=v,L||(L=!0,zr(B),bu(),L=!1)},X={p:m,um:se,m:ne,r:ie,mt:Q,mc:K,pc:de,pbc:M,n:S,o:e};return{render:z,hydrate:void 0,createApp:cp(z)}}function Xi({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 Vn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function xp(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function fr(e,t,n=!1){const s=e.children,o=t.children;if(ve(s)&&ve(o))for(let i=0;i>1,e[n[r]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function Xu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Xu(t)}function ol(e){if(e)for(let t=0;te.__isSuspense;let Aa=0;const Tp={name:"Suspense",__isSuspense:!0,process(e,t,n,s,o,i,a,r,c,d){if(e==null)Rp(t,n,s,o,i,a,r,c,d);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Ip(e,t,n,s,o,a,r,c,d)}},hydrate:Op,normalize:$p},Ap=Tp;function uo(e,t){const n=e.props&&e.props[t];Ce(n)&&n()}function Rp(e,t,n,s,o,i,a,r,c){const{p:d,o:{createElement:l}}=c,u=l("div"),f=e.suspense=Zu(e,o,s,t,u,n,i,a,r,c);d(null,f.pendingBranch=e.ssContent,u,null,s,f,i,a),f.deps>0?(uo(e,"onPending"),uo(e,"onFallback"),d(null,e.ssFallback,t,n,s,null,i,a),gs(f,e.ssFallback)):f.resolve(!1,!0)}function Ip(e,t,n,s,o,i,a,r,{p:c,um:d,o:{createElement:l}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const f=t.ssContent,h=t.ssFallback,{activeBranch:g,pendingBranch:m,isInFallback:p,isHydrating:y}=u;if(m)u.pendingBranch=f,on(m,f)?(c(m,f,u.hiddenContainer,null,o,u,i,a,r),u.deps<=0?u.resolve():p&&(y||(c(g,h,n,s,o,null,i,a,r),gs(u,h)))):(u.pendingId=Aa++,y?(u.isHydrating=!1,u.activeBranch=m):d(m,o,u),u.deps=0,u.effects.length=0,u.hiddenContainer=l("div"),p?(c(null,f,u.hiddenContainer,null,o,u,i,a,r),u.deps<=0?u.resolve():(c(g,h,n,s,o,null,i,a,r),gs(u,h))):g&&on(g,f)?(c(g,f,n,s,o,u,i,a,r),u.resolve(!0)):(c(null,f,u.hiddenContainer,null,o,u,i,a,r),u.deps<=0&&u.resolve()));else if(g&&on(g,f))c(g,f,n,s,o,u,i,a,r),gs(u,f);else if(uo(t,"onPending"),u.pendingBranch=f,f.shapeFlag&512?u.pendingId=f.component.suspenseId:u.pendingId=Aa++,c(null,f,u.hiddenContainer,null,o,u,i,a,r),u.deps<=0)u.resolve();else{const{timeout:C,pendingId:R}=u;C>0?setTimeout(()=>{u.pendingId===R&&u.fallback(h)},C):C===0&&u.fallback(h)}}function Zu(e,t,n,s,o,i,a,r,c,d,l=!1){const{p:u,m:f,um:h,n:g,o:{parentNode:m,remove:p}}=d;let y;const C=Dp(e);C&&t&&t.pendingBranch&&(y=t.pendingId,t.deps++);const R=e.props?Wc(e.props.timeout):void 0,k=i,b={vnode:e,parent:t,parentComponent:n,namespace:a,container:s,hiddenContainer:o,deps:0,pendingId:Aa++,timeout:typeof R=="number"?R:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!l,isHydrating:l,isUnmounted:!1,effects:[],resolve(I=!1,D=!1){const{vnode:K,activeBranch:F,pendingBranch:M,pendingId:N,effects:O,parentComponent:Z,container:Q,isInFallback:we}=b;let he=!1;if(b.isHydrating)b.isHydrating=!1;else if(!I){he=F&&M.transition&&M.transition.mode==="out-in";let xe=!1;he&&(F.transition.afterLeave=()=>{N===b.pendingId&&(f(M,Q,i===k&&!xe?g(F):i,0),ba(O),we&&K.ssFallback&&(K.ssFallback.el=null))}),F&&!b.isFallbackMountPending&&(m(F.el)===Q&&(i=g(F),xe=!0),h(F,Z,b,!0),!he&&we&&K.ssFallback&&_t(()=>K.ssFallback.el=null,b)),he||f(M,Q,i,0)}b.isFallbackMountPending=!1,gs(b,M),b.pendingBranch=null,b.isInFallback=!1;let ae=b.parent,de=!1;for(;ae;){if(ae.pendingBranch){ae.effects.push(...O),de=!0;break}ae=ae.parent}!de&&!he&&ba(O),b.effects=[],C&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!D&&t.resolve()),uo(K,"onResolve")},fallback(I){if(!b.pendingBranch)return;const{vnode:D,activeBranch:K,parentComponent:F,container:M,namespace:N}=b;uo(D,"onFallback");const O=g(K),Z=()=>{b.isFallbackMountPending=!1,b.isInFallback&&(u(null,I,M,O,F,null,N,r,c),gs(b,I))},Q=I.transition&&I.transition.mode==="out-in";Q&&(b.isFallbackMountPending=!0,K.transition.afterLeave=Z),b.isInFallback=!0,h(K,F,null,!0),Q||Z()},move(I,D,K){b.activeBranch&&f(b.activeBranch,I,D,K),b.container=I},next(){return b.activeBranch&&g(b.activeBranch)},registerDep(I,D,K){const F=!!b.pendingBranch;F&&b.deps++;const M=I.vnode.el;I.asyncDep.catch(N=>{yo(N,I,0)}).then(N=>{if(I.isUnmounted||b.isUnmounted||b.pendingId!==I.suspenseId)return;Ia(),I.asyncResolved=!0;const{vnode:O}=I;Oa(I,N),M&&(O.el=M);const Z=!M&&I.subTree.el;D(I,O,m(M||I.subTree.el),M?null:g(I.subTree),b,a,K),Z&&(O.placeholder=null,p(Z)),cr(I,O.el),F&&--b.deps===0&&b.resolve()})},unmount(I,D){b.isUnmounted=!0,b.activeBranch&&h(b.activeBranch,n,I,D),b.pendingBranch&&h(b.pendingBranch,n,I,D)}};return b}function Op(e,t,n,s,o,i,a,r,c){const d=t.suspense=Zu(t,s,n,e.parentNode,document.createElement("div"),null,o,i,a,r,!0),l=c(e,d.pendingBranch=t.ssContent,n,d,i,a);return d.deps===0&&d.resolve(!1,!0),l}function $p(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=il(s?n.default:n),e.ssFallback=s?il(n.fallback):E(ft)}function il(e){let t;if(Ce(e)){const n=ys&&e._c;n&&(e._d=!1,T()),e=e(),n&&(e._d=!0,t=At,ed())}return ve(e)&&(e=hp(e)),e=Gt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Pp(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):ba(e)}function gs(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,s&&s.subTree===n&&(s.vnode.el=o,cr(s,o))}function Dp(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ee=Symbol.for("v-fgt"),ki=Symbol.for("v-txt"),ft=Symbol.for("v-cmt"),Jo=Symbol.for("v-stc"),to=[];let At=null;function T(e=!1){to.push(At=e?null:[])}function ed(){to.pop(),At=to[to.length-1]||null}let ys=1;function li(e,t=!1){ys+=e,e<0&&At&&t&&(At.hasOnce=!0)}function td(e){return e.dynamicChildren=ys>0?At||hs:null,ed(),ys>0&&At&&At.push(e),e}function A(e,t,n,s,o,i){return td(_(e,t,n,s,o,i,!0))}function Rt(e,t,n,s,o){return td(E(e,t,n,s,o,!0))}function bs(e){return e?e.__v_isVNode===!0:!1}function on(e,t){return e.type===t.type&&e.key===t.key}const nd=({key:e})=>e??null,Xo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ze(e)||Ye(e)||Ce(e)?{i:Pt,r:e,k:t,f:!!n}:e:null);function _(e,t=null,n=null,s=0,o=null,i=e===Ee?0:1,a=!1,r=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nd(t),ref:t&&Xo(t),scopeId:Su,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:i,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Pt};return r?(hr(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=ze(n)?8:16),ys>0&&!a&&At&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&At.push(c),c}const E=Bp;function Bp(e,t=null,n=null,s=0,o=null,i=!1){if((!e||e===Nu)&&(e=ft),bs(e)){const r=Nn(e,t,!0);return n&&hr(r,n),ys>0&&!i&&At&&(r.shapeFlag&6?At[At.indexOf(e)]=r:At.push(r)),r.patchFlag=-2,r}if(Wp(e)&&(e=e.__vccOpts),t){t=Np(t);let{class:r,style:c}=t;r&&!ze(r)&&(t.class=_e(r)),Fe(c)&&(Si(c)&&!ve(c)&&(c=lt({},c)),t.style=ln(c))}const a=ze(e)?1:Qu(e)?128:ku(e)?64:Fe(e)?4:Ce(e)?2:0;return _(e,t,n,s,o,a,i,!0)}function Np(e){return e?Si(e)||zu(e)?lt({},e):e:null}function Nn(e,t,n=!1,s=!1){const{props:o,ref:i,patchFlag:a,children:r,transition:c}=e,d=t?Tt(o||{},t):o,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&nd(d),ref:t&&t.ref?n&&i?ve(i)?i.concat(Xo(t)):[i,Xo(t)]:Xo(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ee?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Nn(e.ssContent),ssFallback:e.ssFallback&&Nn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&co(l,c.clone(l)),l}function je(e=" ",t=0){return E(ki,null,e,t)}function Lp(e,t){const n=E(Jo,null,e);return n.staticCount=t,n}function le(e="",t=!1){return t?(T(),Rt(ft,null,e)):E(ft,null,e)}function Gt(e){return e==null||typeof e=="boolean"?E(ft):ve(e)?E(Ee,null,e.slice()):bs(e)?pn(e):E(ki,null,String(e))}function pn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Nn(e)}function hr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ve(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),hr(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!zu(t)?t._ctx=Pt:o===3&&Pt&&(Pt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ce(t)?(t={default:t,_ctx:Pt},n=32):(t=String(t),s&64?(n=16,t=[je(t)]):n=8);e.children=t,e.shapeFlag|=n}function Tt(...e){const t={};for(let n=0;nvt||Pt;let ci,Ra;{const e=vi(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),i=>{o.length>1?o.forEach(a=>a(i)):o[0](i)}};ci=t("__VUE_INSTANCE_SETTERS__",n=>vt=n),Ra=t("__VUE_SSR_SETTERS__",n=>fo=n)}const bo=e=>{const t=vt;return ci(e),e.scope.on(),()=>{e.scope.off(),ci(t)}},Ia=()=>{vt&&vt.scope.off(),ci(null)};function sd(e){return e.vnode.shapeFlag&4}let fo=!1;function jp(e,t=!1,n=!1){t&&Ra(t);const{props:s,children:o}=e.vnode,i=sd(e);gp(e,s,i,t),wp(e,o,n||t);const a=i?qp(e,t):void 0;return t&&Ra(!1),a}function qp(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,np);const{setup:s}=n;if(s){yn();const o=e.setupContext=s.length>1?zp(e):null,i=bo(e),a=vo(s,e,0,[e.props,o]),r=qc(a);if(bn(),i(),(r||e.sp)&&!Zs(e)&&Pu(e),r){if(a.then(Ia,Ia),t)return a.then(c=>{Oa(e,c)}).catch(c=>{yo(c,e,0)});e.asyncDep=a}else Oa(e,a)}else od(e)}function Oa(e,t,n){Ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Fe(t)&&(e.setupState=gu(t)),od(e)}function od(e,t,n){const s=e.type;e.render||(e.render=s.render||rn);{const o=bo(e);yn();try{sp(e)}finally{bn(),o()}}}const Up={get(e,t){return gt(e,"get",""),e[t]}};function zp(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Up),slots:e.slots,emit:e.emit,expose:t}}function Ti(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(gu(or(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in eo)return eo[n](e)},has(t,n){return n in t||n in eo}})):e.proxy}function Hp(e,t=!0){return Ce(e)?e.displayName||e.name:e.name||t&&e.__name}function Wp(e){return Ce(e)&&"__vccOpts"in e}const q=(e,t)=>Oh(e,t,fo);function pr(e,t,n){try{li(-1);const s=arguments.length;return s===2?Fe(t)&&!ve(t)?bs(t)?E(e,null,[t]):E(e,t):E(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&bs(n)&&(n=[n]),E(e,t,n))}finally{li(1)}}const Kp="3.5.35";/** * @vue/runtime-dom v3.5.35 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let $a;const al=typeof window<"u"&&window.trustedTypes;if(al)try{$a=al.createPolicy("vue",{createHTML:e=>e})}catch{}const id=$a?e=>$a.createHTML(e):e=>e,Gp="http://www.w3.org/2000/svg",Jp="http://www.w3.org/1998/Math/MathML",hn=typeof document<"u"?document:null,rl=hn&&hn.createElement("template"),Xp={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?hn.createElementNS(Gp,e):t==="mathml"?hn.createElementNS(Jp,e):n?hn.createElement(e,{is:n}):hn.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>hn.createTextNode(e),createComment:e=>hn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>hn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{rl.innerHTML=id(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const r=rl.content;if(s==="svg"||s==="mathml"){const c=r.firstChild;for(;c.firstChild;)r.appendChild(c.firstChild);r.removeChild(c)}t.insertBefore(r,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},kn="transition",Bs="animation",ho=Symbol("_vtc"),ad={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Yp=lt({},Au,ad),Qp=e=>(e.displayName="Transition",e.props=Yp,e),ui=Qp((e,{slots:t})=>pr(Hh,Zp(e),t)),jn=(e,t=[])=>{ve(e)?e.forEach(n=>n(...t)):e&&e(...t)},ll=e=>e?ve(e)?e.some(t=>t.length>1):e.length>1:!1;function Zp(e){const t={};for(const O in e)O in ad||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:r=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:d=a,appearToClass:l=r,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,g=em(o),m=g&&g[0],p=g&&g[1],{onBeforeEnter:y,onEnter:C,onEnterCancelled:R,onLeave:k,onLeaveCancelled:b,onBeforeAppear:I=y,onAppear:D=C,onAppearCancelled:K=R}=t,F=(O,Z,Q,we)=>{O._enterCancelled=we,qn(O,Z?l:r),qn(O,Z?d:a),Q&&Q()},M=(O,Z)=>{O._isLeaving=!1,qn(O,u),qn(O,h),qn(O,f),Z&&Z()},N=O=>(Z,Q)=>{const we=O?D:C,he=()=>F(Z,O,Q);jn(we,[Z,he]),cl(()=>{qn(Z,O?c:i),dn(Z,O?l:r),ll(we)||ul(Z,s,m,he)})};return lt(t,{onBeforeEnter(O){jn(y,[O]),dn(O,i),dn(O,a)},onBeforeAppear(O){jn(I,[O]),dn(O,c),dn(O,d)},onEnter:N(!1),onAppear:N(!0),onLeave(O,Z){O._isLeaving=!0;const Q=()=>M(O,Z);dn(O,u),O._enterCancelled?(dn(O,f),hl(O)):(hl(O),dn(O,f)),cl(()=>{O._isLeaving&&(qn(O,u),dn(O,h),ll(k)||ul(O,s,p,Q))}),jn(k,[O,Q])},onEnterCancelled(O){F(O,!1,void 0,!0),jn(R,[O])},onAppearCancelled(O){F(O,!0,void 0,!0),jn(K,[O])},onLeaveCancelled(O){M(O),jn(b,[O])}})}function em(e){if(e==null)return null;if(Fe(e))return[Yi(e.enter),Yi(e.leave)];{const t=Yi(e);return[t,t]}}function Yi(e){return Wc(e)}function dn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ho]||(e[ho]=new Set)).add(t)}function qn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[ho];n&&(n.delete(t),n.size||(e[ho]=void 0))}function cl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let tm=0;function ul(e,t,n,s){const o=e._endId=++tm,i=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:a,timeout:r,propCount:c}=nm(e,t);if(!a)return s();const d=a+"end";let l=0;const u=()=>{e.removeEventListener(d,f),i()},f=h=>{h.target===e&&++l>=c&&u()};setTimeout(()=>{l(n[g]||"").split(", "),o=s(`${kn}Delay`),i=s(`${kn}Duration`),a=dl(o,i),r=s(`${Bs}Delay`),c=s(`${Bs}Duration`),d=dl(r,c);let l=null,u=0,f=0;t===kn?a>0&&(l=kn,u=a,f=i.length):t===Bs?d>0&&(l=Bs,u=d,f=c.length):(u=Math.max(a,d),l=u>0?a>d?kn:Bs:null,f=l?l===kn?i.length:c.length:0);const h=l===kn&&/\b(?:transform|all)(?:,|$)/.test(s(`${kn}Property`).toString());return{type:l,timeout:u,propCount:f,hasTransform:h}}function dl(e,t){for(;e.lengthfl(n)+fl(e[s])))}function fl(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function hl(e){return(e?e.ownerDocument:document).body.offsetHeight}function sm(e,t,n){const s=e[ho];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const di=Symbol("_vod"),rd=Symbol("_vsh"),Yn={name:"show",beforeMount(e,{value:t},{transition:n}){e[di]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ns(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Ns(e,!0),s.enter(e)):s.leave(e,()=>{Ns(e,!1)}):Ns(e,t))},beforeUnmount(e,{value:t}){Ns(e,t)}};function Ns(e,t){e.style.display=t?e[di]:"none",e[rd]=!t}const om=Symbol(""),im=/(?:^|;)\s*display\s*:/;function am(e,t,n){const s=e.style,o=ze(n);let i=!1;if(n&&!o){if(t)if(ze(t))for(const a of t.split(";")){const r=a.slice(0,a.indexOf(":")).trim();n[r]==null&&Gs(s,r,"")}else for(const a in t)n[a]==null&&Gs(s,a,"");for(const a in n){a==="display"&&(i=!0);const r=n[a];r!=null?lm(e,a,!ze(t)&&t?t[a]:void 0,r)||Gs(s,a,r):Gs(s,a,"")}}else if(o){if(t!==n){const a=s[om];a&&(n+=";"+a),s.cssText=n,i=im.test(n)}}else t&&e.removeAttribute("style");di in e&&(e[di]=i?s.display:"",e[rd]&&(s.display="none"))}const pl=/\s*!important$/;function Gs(e,t,n){if(ve(n))n.forEach(s=>Gs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=rm(e,t);pl.test(n)?e.setProperty(En(s),n.replace(pl,""),"important"):e[s]=n}}const ml=["Webkit","Moz","ms"],Qi={};function rm(e,t){const n=Qi[t];if(n)return n;let s=xt(t);if(s!=="filter"&&s in e)return Qi[t]=s;s=gi(s);for(let o=0;oZi||(hm.then(()=>Zi=0),Zi=Date.now());function mm(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const o=n.value;if(ve(o)){const i=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{i.call(s),s._stopped=!0};const a=o.slice(),r=[s];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_m=(e,t,n,s,o,i)=>{const a=o==="svg";t==="class"?sm(e,s,a):t==="style"?am(e,n,s):hi(t)?pi(t)||dm(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):gm(e,t,s,a))?(vl(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&gl(e,t,s,a,i,t!=="value")):e._isVueCE&&(vm(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ze(s)))?vl(e,xt(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),gl(e,t,s,a))};function gm(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&wl(t)&&Ce(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"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return wl(t)&&ze(n)?!1:t in e}function vm(e,t){const n=e._def.props;if(!n)return!1;const s=xt(t);return Array.isArray(n)?n.some(o=>xt(o)===s):Object.keys(n).some(o=>xt(o)===s)}const ym=["ctrl","shift","alt","meta"],bm={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)=>ym.some(n=>e[`${n}Key`]&&!t.includes(n))},Dn=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(o,...i)=>{for(let a=0;a{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=o=>{if(!("key"in o))return;const i=En(o.key);if(t.some(a=>a===i||wm[a]===i))return e(o)})},Sm=lt({patchProp:_m},Xp);let Sl;function Em(){return Sl||(Sl=Ep(Sm))}const cd=(...e)=>{const t=Em().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=xm(s);if(!o)return;const i=t._component;!Ce(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const a=n(o,!1,Cm(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function Cm(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function xm(e){return ze(e)?document.querySelector(e):e}function Pa(){}const Ke=Object.assign,As=typeof window<"u",wo=e=>e!==null&&typeof e=="object",st=e=>e!=null,po=e=>typeof e=="function",ud=e=>wo(e)&&po(e.then)&&po(e.catch),dd=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),km=()=>As?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function El(e,t){const n=t.split(".");let s=e;return n.forEach(o=>{var i;s=wo(s)&&(i=s[o])!=null?i:""}),s}function Sn(e,t,n){return t.reduce((s,o)=>(s[o]=e[o],s),{})}const Cl=e=>Array.isArray(e)?e:[e],Ut=null,$e=[Number,String],qe={type:Boolean,default:!0},Yo=e=>({type:e,required:!0}),fd=e=>({type:Number,default:e}),Jt=e=>({type:$e,default:e}),Be=e=>({type:String,default:e});var Rs=typeof window<"u";function ws(e){return Rs?requestAnimationFrame(e):-1}function hd(e){Rs&&cancelAnimationFrame(e)}function ds(e){ws(()=>ws(e))}var Tm=e=>e===window,xl=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),an=e=>{const t=Re(e);if(Tm(t)){const n=t.innerWidth,s=t.innerHeight;return xl(n,s)}return t!=null&&t.getBoundingClientRect?t.getBoundingClientRect():xl(0,0)};function Is(e){const t=ht(e,null);if(t){const n=Wt(),{link:s,unlink:o,internalChildren:i}=t;s(n),Ln(()=>o(n));const a=q(()=>i.indexOf(n));return{parent:t,index:a}}return{parent:null,index:j(-1)}}function Am(e){const t=[],n=s=>{Array.isArray(s)&&s.forEach(o=>{var i;bs(o)&&(t.push(o),(i=o.component)!=null&&i.subTree&&(t.push(o.component.subTree),n(o.component.subTree.children)),o.children&&n(o.children))})};return n(e),t}var kl=(e,t)=>{const n=e.indexOf(t);return n===-1?e.findIndex(s=>t.key!==void 0&&t.key!==null&&s.type===t.type&&s.key===t.key):n};function Rm(e,t,n){const s=Am(e.subTree.children);n.sort((i,a)=>kl(s,i.vnode)-kl(s,a.vnode));const o=n.map(i=>i.proxy);t.sort((i,a)=>{const r=o.indexOf(i),c=o.indexOf(a);return r-c})}function Ai(e){const t=pt([]),n=pt([]),s=Wt();return{children:t,linkChildren:i=>{cn(e,Object.assign({link:c=>{c.proxy&&(n.push(c),t.push(c.proxy),Rm(s,t,n))},unlink:c=>{const d=n.indexOf(c);t.splice(d,1),n.splice(d,1)},children:t,internalChildren:n},i))}}}function Ri(e){let t;nt(()=>{e(),Xe(()=>{t=!0})}),ks(()=>{t&&e()})}function ts(e,t,n={}){if(!Rs)return;const{target:s=window,passive:o=!1,capture:i=!1}=n;let a=!1,r;const c=u=>{if(a)return;const f=Re(u);f&&!r&&(f.addEventListener(e,t,{capture:i,passive:o}),r=!0)},d=u=>{if(a)return;const f=Re(u);f&&r&&(f.removeEventListener(e,t,i),r=!1)};Ln(()=>d(s)),es(()=>d(s)),Ri(()=>c(s));let l;return Ye(s)&&(l=ke(s,(u,f)=>{d(f),c(u)})),()=>{l==null||l(),d(s),a=!0}}var Mo,ea;function Im(){if(!Mo&&(Mo=j(0),ea=j(0),Rs)){const e=()=>{Mo.value=window.innerWidth,ea.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:Mo,height:ea}}var Om=/scroll|auto|overlay/i,pd=Rs?window:void 0;function $m(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function md(e,t=pd){let n=e;for(;n&&n!==t&&$m(n);){const{overflowY:s}=window.getComputedStyle(n);if(Om.test(s))return n;n=n.parentNode}return t}function _d(e,t=pd){const n=j();return nt(()=>{e.value&&(n.value=md(e.value,t))}),n}var Fo;function Pm(){if(!Fo&&(Fo=j("visible"),Rs)){const e=()=>{Fo.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return Fo}var gd=Symbol("van-field");function vd(e){const t=ht(gd,null);t&&!t.customValue.value&&(t.customValue.value=e,ke(e,()=>{t.resetValidation(),t.validateWithTrigger("onChange")}))}function mr(e){const t="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function Da(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function _r(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function gr(e){Da(window,e),Da(document.body,e)}function Tl(e,t){if(e===window)return 0;const n=t?mr(t):_r();return an(e).top+n}const Dm=km();function Bm(){Dm&&gr(_r())}const Nm=e=>e.stopPropagation();function vn(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&Nm(e)}function mo(e){const t=Re(e);if(!t)return!1;const n=window.getComputedStyle(t),s=n.display==="none",o=t.offsetParent===null&&n.position!=="fixed";return s||o}const{width:So,height:Ii}=Im();function ot(e){if(st(e))return dd(e)?`${e}px`:String(e)}function yd(e){if(st(e)){if(Array.isArray(e))return{width:ot(e[0]),height:ot(e[1])};const t=ot(e);return{width:t,height:t}}}function bd(e){const t={};return e!==void 0&&(t.zIndex=+e),t}let ta;function Lm(){if(!ta){const e=document.documentElement,t=e.style.fontSize||window.getComputedStyle(e).fontSize;ta=parseFloat(t)}return ta}function Mm(e){return e=e.replace(/rem/g,""),+e*Lm()}function Fm(e){return e=e.replace(/vw/g,""),+e*So.value/100}function Vm(e){return e=e.replace(/vh/g,""),+e*Ii.value/100}function wd(e){if(typeof e=="number")return e;if(As){if(e.includes("rem"))return Mm(e);if(e.includes("vw"))return Fm(e);if(e.includes("vh"))return Vm(e)}return parseFloat(e)}const jm=/-(\w)/g,Sd=e=>e.replace(jm,(t,n)=>n.toUpperCase()),qm=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,""),Qo=(e,t,n)=>Math.min(Math.max(e,t),n);function Al(e,t,n){const s=e.indexOf(t);return s===-1?e:t==="-"&&s!==0?e.slice(0,s):e.slice(0,s+1)+e.slice(s).replace(n,"")}function Um(e,t=!0,n=!0){t?e=Al(e,".",/\./g):e=e.split(".")[0],n?e=Al(e,"-",/-/g):e=e.replace(/-/,"");const s=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(s,"")}const{hasOwnProperty:zm}=Object.prototype;function Hm(e,t,n){const s=t[n];st(s)&&(!zm.call(e,n)||!wo(s)?e[n]=s:e[n]=Ed(Object(e[n]),s))}function Ed(e,t){return Object.keys(t).forEach(n=>{Hm(e,t,n)}),e}var Wm={name:"姓名",tel:"电话",save:"保存",clear:"清空",undo:"撤销",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,t)=>`${e}年${t}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const Rl=j("zh-CN"),Il=pt({"zh-CN":Wm}),Km={messages(){return Il[Rl.value]},use(e,t){Rl.value=e,this.add({[e]:t})},add(e={}){Ed(Il,e)}};var Gm=Km;function Jm(e){const t=Sd(e)+".";return(n,...s)=>{const o=Gm.messages(),i=El(o,t+n)||El(o,n);return po(i)?i(...s):i}}function Ba(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((n,s)=>n+Ba(e,s),""):Object.keys(t).reduce((n,s)=>n+(t[s]?Ba(e,s):""),""):""}function Xm(e){return(t,n)=>(t&&typeof t!="string"&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${Ba(t,n)}`)}function He(e){const t=`van-${e}`;return[t,Xm(t),Jm(t)]}const Eo="van-hairline",Ym=`${Eo}--top`,Qm=`${Eo}--left`,jT=`${Eo}--bottom`,Zm=`${Eo}--surround`,Cd=`${Eo}--top-bottom`,e_="van-haptics-feedback",t_=Symbol("van-form"),Ol=5;function vr(e,{args:t=[],done:n,canceled:s,error:o}){if(e){const i=e.apply(null,t);ud(i)?i.then(a=>{a?n():s&&s()}).catch(o||Pa):i?n():s&&s()}else n()}function Ge(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(Sd(`-${n}`),e))},e}const xd=Symbol();function yr(e){const t=ht(xd,null);t&&ke(t,n=>{n&&e()})}const n_=(e,t)=>{const n=j(),s=()=>{n.value=an(e).height};return nt(()=>{Xe(s);for(let o=1;o<=3;o++)setTimeout(s,100*o)}),yr(()=>Xe(s)),ke([So,Ii],s),n};function s_(e,t){const n=n_(e);return s=>E("div",{class:t("placeholder"),style:{height:n.value?`${n.value}px`:void 0}},[s()])}const[kd,$l]=He("action-bar"),Td=Symbol(kd),o_={placeholder:Boolean,safeAreaInsetBottom:qe};var i_=be({name:kd,props:o_,setup(e,{slots:t}){const n=j(),s=s_(n,$l),{linkChildren:o}=Ai(Td);o();const i=()=>{var a;return E("div",{ref:n,class:[$l(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[(a=t.default)==null?void 0:a.call(t)])};return()=>e.placeholder?s(i):i()}});const a_=Ge(i_);function Bt(e){const t=Wt();t&&Ke(t.proxy,e)}const Oi={to:[String,Object],url:String,replace:Boolean};function Ad({to:e,url:t,replace:n,$router:s}){e&&s?s[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function br(){const e=Wt().proxy;return()=>Ad(e)}const[r_,Pl]=He("badge"),l_={dot:Boolean,max:$e,tag:Be("div"),color:String,offset:Array,content:$e,showZero:qe,position:Be("top-right")};var c_=be({name:r_,props:l_,setup(e,{slots:t}){const n=()=>{if(t.content)return!0;const{content:r,showZero:c}=e;return st(r)&&r!==""&&(c||r!==0&&r!=="0")},s=()=>{const{dot:r,max:c,content:d}=e;if(!r&&n())return t.content?t.content():st(c)&&dd(d)&&+d>+c?`${c}+`:d},o=r=>r.startsWith("-")?r.replace("-",""):`-${r}`,i=q(()=>{const r={background:e.color};if(e.offset){const[c,d]=e.offset,{position:l}=e,[u,f]=l.split("-");t.default?(typeof d=="number"?r[u]=ot(u==="top"?d:-d):r[u]=u==="top"?ot(d):o(d),typeof c=="number"?r[f]=ot(f==="left"?c:-c):r[f]=f==="left"?ot(c):o(c)):(r.marginTop=ot(d),r.marginLeft=ot(c))}return r}),a=()=>{if(n()||e.dot)return E("div",{class:Pl([e.position,{dot:e.dot,fixed:!!t.default}]),style:i.value},[s()])};return()=>{if(t.default){const{tag:r}=e;return E(r,{class:Pl("wrapper")},{default:()=>[t.default(),a()]})}return a()}}});const Rd=Ge(c_);let Id=2e3;const u_=()=>++Id,d_=e=>{Id=e},[Od,f_]=He("config-provider"),$d=Symbol(Od),h_={tag:Be("div"),theme:Be("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:Be("local"),iconPrefix:String};function p_(e){return e.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function m_(e){const t={};return Object.keys(e).forEach(n=>{const s=p_(qm(n));t[`--van-${s}`]=e[n]}),t}function Vo(e={},t={}){Object.keys(e).forEach(n=>{e[n]!==t[n]&&document.documentElement.style.setProperty(n,e[n])}),Object.keys(t).forEach(n=>{e[n]||document.documentElement.style.removeProperty(n)})}var __=be({name:Od,props:h_,setup(e,{slots:t}){const n=q(()=>m_(Ke({},e.themeVars,e.theme==="dark"?e.themeVarsDark:e.themeVarsLight)));if(As){const s=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},o=(i=e.theme)=>{document.documentElement.classList.remove(`van-theme-${i}`)};ke(()=>e.theme,(i,a)=>{a&&o(a),s()},{immediate:!0}),ks(s),es(o),Ts(o),ke(n,(i,a)=>{e.themeVarsScope==="global"&&Vo(i,a)}),ke(()=>e.themeVarsScope,(i,a)=>{a==="global"&&Vo({},n.value),i==="global"&&Vo(n.value,{})}),e.themeVarsScope==="global"&&Vo(n.value,{})}return cn($d,e),Eu(()=>{e.zIndex!==void 0&&d_(e.zIndex)}),()=>E(e.tag,{class:f_(),style:e.themeVarsScope==="local"?n.value:void 0},{default:()=>{var s;return[(s=t.default)==null?void 0:s.call(t)]}})}});const[g_,Dl]=He("icon"),v_=e=>e==null?void 0:e.includes("/"),y_={dot:Boolean,tag:Be("i"),name:String,size:$e,badge:$e,color:String,badgeProps:Object,classPrefix:String};var b_=be({name:g_,props:y_,setup(e,{slots:t}){const n=ht($d,null),s=q(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||Dl());return()=>{const{tag:o,dot:i,name:a,size:r,badge:c,color:d}=e,l=v_(a);return E(Rd,Tt({dot:i,tag:o,class:[s.value,l?"":`${s.value}-${a}`],style:{color:d,fontSize:ot(r)},content:c},e.badgeProps),{default:()=>{var u;return[(u=t.default)==null?void 0:u.call(t),l&&E("img",{class:Dl("image"),src:a},null)]}})}}});const It=Ge(b_),[w_,no]=He("loading"),S_=Array(12).fill(null).map((e,t)=>E("i",{class:no("line",String(t+1))},null)),E_=E("svg",{class:no("circular"),viewBox:"25 25 50 50"},[E("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),C_={size:$e,type:Be("circular"),color:String,vertical:Boolean,textSize:$e,textColor:String};var x_=be({name:w_,props:C_,setup(e,{slots:t}){const n=q(()=>Ke({color:e.color},yd(e.size))),s=()=>{const i=e.type==="spinner"?S_:E_;return E("span",{class:no("spinner",e.type),style:n.value},[t.icon?t.icon():i])},o=()=>{var i;if(t.default)return E("span",{class:no("text"),style:{fontSize:ot(e.textSize),color:(i=e.textColor)!=null?i:e.color}},[t.default()])};return()=>{const{type:i,vertical:a}=e;return E("div",{class:no([i,{vertical:a}]),"aria-live":"polite","aria-busy":!0},[s(),o()])}}});const Co=Ge(x_),[k_,ss]=He("button"),T_=Ke({},Oi,{tag:Be("button"),text:String,icon:String,type:Be("default"),size:Be("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:Be("button"),loadingSize:$e,loadingText:String,loadingType:String,iconPosition:Be("left")});var A_=be({name:k_,props:T_,emits:["click"],setup(e,{emit:t,slots:n}){const s=br(),o=()=>n.loading?n.loading():E(Co,{size:e.loadingSize,type:e.loadingType,class:ss("loading")},null),i=()=>{if(e.loading)return o();if(n.icon)return E("div",{class:ss("icon")},[n.icon()]);if(e.icon)return E(It,{name:e.icon,class:ss("icon"),classPrefix:e.iconPrefix},null)},a=()=>{let d;if(e.loading?d=e.loadingText:d=n.default?n.default():e.text,d)return E("span",{class:ss("text")},[d])},r=()=>{const{color:d,plain:l}=e;if(d){const u={color:l?d:"white"};return l||(u.background=d),d.includes("gradient")?u.border=0:u.borderColor=d,u}},c=d=>{e.loading?vn(d):e.disabled||(t("click",d),s())};return()=>{const{tag:d,type:l,size:u,block:f,round:h,plain:g,square:m,loading:p,disabled:y,hairline:C,nativeType:R,iconPosition:k}=e,b=[ss([l,u,{plain:g,block:f,round:h,square:m,loading:p,disabled:y,hairline:C}]),{[Zm]:C}];return E(d,{type:R,class:b,style:r(),disabled:y,onClick:c},{default:()=>[E("div",{class:ss("content")},[k==="left"&&i(),a(),k==="right"&&i()])]})}}});const Ss=Ge(A_),[R_,I_]=He("action-bar-button"),O_=Ke({},Oi,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean});var $_=be({name:R_,props:O_,setup(e,{slots:t}){const n=br(),{parent:s,index:o}=Is(Td),i=q(()=>{if(s){const r=s.children[o.value-1];return!(r&&"isButton"in r)}}),a=q(()=>{if(s){const r=s.children[o.value+1];return!(r&&"isButton"in r)}});return Bt({isButton:!0}),()=>{const{type:r,icon:c,text:d,color:l,loading:u,disabled:f}=e;return E(Ss,{class:I_([r,{last:a.value,first:i.value}]),size:"large",type:r,icon:c,color:l,loading:u,disabled:f,onClick:n},{default:()=>[t.default?t.default():d]})}}});const Bl=Ge($_),wr={show:Boolean,zIndex:$e,overlay:qe,duration:$e,teleport:[String,Object],lockScroll:qe,lazyRender:qe,beforeClose:Function,overlayProps:Object,overlayStyle:Object,overlayClass:Ut,transitionAppear:Boolean,closeOnClickOverlay:qe},P_=Object.keys(wr);function D_(e,t){return e>t?"horizontal":t>e?"vertical":""}function Sr(){const e=j(0),t=j(0),n=j(0),s=j(0),o=j(0),i=j(0),a=j(""),r=j(!0),c=()=>a.value==="vertical",d=()=>a.value==="horizontal",l=()=>{n.value=0,s.value=0,o.value=0,i.value=0,a.value="",r.value=!0};return{move:h=>{const g=h.touches[0];n.value=(g.clientX<0?0:g.clientX)-e.value,s.value=g.clientY-t.value,o.value=Math.abs(n.value),i.value=Math.abs(s.value);const m=10;(!a.value||o.valueOl||i.value>Ol)&&(r.value=!1)},start:h=>{l(),e.value=h.touches[0].clientX,t.value=h.touches[0].clientY},reset:l,startX:e,startY:t,deltaX:n,deltaY:s,offsetX:o,offsetY:i,direction:a,isVertical:c,isHorizontal:d,isTap:r}}let Ls=0;const Nl="van-overflow-hidden";function B_(e,t){const n=Sr(),s="01",o="10",i=l=>{n.move(l);const u=n.deltaY.value>0?o:s,f=md(l.target,e.value),{scrollHeight:h,offsetHeight:g,scrollTop:m}=f;let p="11";m===0?p=g>=h?"00":"01":m+g>=h&&(p="10"),p!=="11"&&n.isVertical()&&!(parseInt(p,2)&parseInt(u,2))&&vn(l,!0)},a=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",i,{passive:!1}),Ls||document.body.classList.add(Nl),Ls++},r=()=>{Ls&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",i),Ls--,Ls||document.body.classList.remove(Nl))},c=()=>t()&&a(),d=()=>t()&&r();Ri(c),es(d),Ts(d),ke(t,l=>{l?a():r()})}function Er(e){const t=j(!1);return ke(e,n=>{n&&(t.value=n)},{immediate:!0}),n=>()=>t.value?n():null}const Ll=()=>{var e;const{scopeId:t}=((e=Wt())==null?void 0:e.vnode)||{};return t?{[t]:""}:null},[N_,L_]=He("overlay"),M_={show:Boolean,zIndex:$e,duration:$e,className:Ut,lockScroll:qe,lazyRender:qe,customStyle:Object,teleport:[String,Object]};var F_=be({name:N_,inheritAttrs:!1,props:M_,setup(e,{attrs:t,slots:n}){const s=j(),o=Er(()=>e.show||!e.lazyRender),i=r=>{e.lockScroll&&vn(r,!0)},a=o(()=>{var r;const c=Ke(bd(e.zIndex),e.customStyle);return st(e.duration)&&(c.animationDuration=`${e.duration}s`),Jn(E("div",Tt({ref:s,style:c,class:[L_(),e.className]},t),[(r=n.default)==null?void 0:r.call(n)]),[[Yn,e.show]])});return ts("touchmove",i,{target:s}),()=>{const r=E(ui,{name:"van-fade",appear:!0},{default:a});return e.teleport?E(Tu,{to:e.teleport},{default:()=>[r]}):r}}});const V_=Ge(F_),j_=Ke({},wr,{round:Boolean,position:Be("center"),closeIcon:Be("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:Be("top-right"),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[q_,Ml]=He("popup");var U_=be({name:q_,inheritAttrs:!1,props:j_,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:t,attrs:n,slots:s}){let o,i;const a=j(),r=j(),c=Er(()=>e.show||!e.lazyRender),d=q(()=>{const I={zIndex:a.value};if(st(e.duration)){const D=e.position==="center"?"animationDuration":"transitionDuration";I[D]=`${e.duration}s`}return I}),l=()=>{o||(o=!0,a.value=e.zIndex!==void 0?+e.zIndex:u_(),t("open"))},u=()=>{o&&vr(e.beforeClose,{done(){o=!1,t("close"),t("update:show",!1)}})},f=I=>{t("clickOverlay",I),e.closeOnClickOverlay&&u()},h=()=>{if(e.overlay){const I=Ke({show:e.show,class:e.overlayClass,zIndex:a.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},e.overlayProps);return E(V_,Tt(I,Ll(),{onClick:f}),{default:s["overlay-content"]})}},g=I=>{t("clickCloseIcon",I),u()},m=()=>{if(e.closeable)return E(It,{role:"button",tabindex:0,name:e.closeIcon,class:[Ml("close-icon",e.closeIconPosition),e_],classPrefix:e.iconPrefix,onClick:g},null)};let p;const y=()=>{p&&clearTimeout(p),p=setTimeout(()=>{t("opened")})},C=()=>t("closed"),R=I=>t("keydown",I),k=c(()=>{var I;const{destroyOnClose:D,round:K,position:F,safeAreaInsetTop:M,safeAreaInsetBottom:N,show:O}=e;if(!(!O&&D))return Jn(E("div",Tt({ref:r,style:d.value,role:"dialog",tabindex:0,class:[Ml({round:K,[F]:F}),{"van-safe-area-top":M,"van-safe-area-bottom":N}],onKeydown:R},n,Ll()),[(I=s.default)==null?void 0:I.call(s),m()]),[[Yn,O]])}),b=()=>{const{position:I,transition:D,transitionAppear:K}=e,F=I==="center"?"van-fade":`van-popup-slide-${I}`;return E(ui,{name:D||F,appear:K,onAfterEnter:y,onAfterLeave:C},{default:k})};return ke(()=>e.show,I=>{I&&!o&&(l(),n.tabindex===0&&Xe(()=>{var D;(D=r.value)==null||D.focus()})),!I&&o&&(o=!1,t("close"))}),Bt({popupRef:r}),B_(r,()=>e.show&&e.lockScroll),ts("popstate",()=>{e.closeOnPopstate&&(u(),i=!1)}),nt(()=>{e.show&&l()}),ks(()=>{i&&(t("update:show",!0),i=!1)}),es(()=>{e.show&&e.teleport&&(u(),i=!0)}),cn(xd,()=>e.show),()=>e.teleport?E(Tu,{to:e.teleport},{default:()=>[h(),b()]}):E(Ee,null,[h(),b()])}});const Os=Ge(U_);function z_(e,t,n){let s,o=0;const i=e.scrollLeft,a=n===0?1:Math.round(n*1e3/16);let r=i;function c(){hd(s)}function d(){r+=(t-i)/a,e.scrollLeft=r,++ot||!a&&it?o=ws(l):s&&(o=ws(s))}return l(),d}let W_=0;function xo(){const e=Wt(),{name:t="unknown"}=(e==null?void 0:e.type)||{};return`${t}-${++W_}`}function Pd(){const e=j([]),t=[];return Bu(()=>{e.value=[]}),[e,s=>(t[s]||(t[s]=o=>{e.value[s]=o}),t[s])]}function Dd(e,t){if(!As||!window.IntersectionObserver)return;const n=new IntersectionObserver(i=>{t(i[0].intersectionRatio>0)},{root:document.body}),s=()=>{e.value&&n.observe(e.value)},o=()=>{e.value&&n.unobserve(e.value)};es(o),Ts(o),Ri(s)}const[K_,G_]=He("sticky"),J_={zIndex:$e,position:Be("top"),container:Object,offsetTop:Jt(0),offsetBottom:Jt(0)};var X_=be({name:K_,props:J_,emits:["scroll","change"],setup(e,{emit:t,slots:n}){const s=j(),o=_d(s),i=pt({fixed:!1,width:0,height:0,transform:0}),a=j(!1),r=q(()=>wd(e.position==="top"?e.offsetTop:e.offsetBottom)),c=q(()=>{if(a.value)return;const{fixed:f,height:h,width:g}=i;if(f)return{width:`${g}px`,height:`${h}px`}}),d=q(()=>{if(!i.fixed||a.value)return;const f=Ke(bd(e.zIndex),{width:`${i.width}px`,height:`${i.height}px`,[e.position]:`${r.value}px`});return i.transform&&(f.transform=`translate3d(0, ${i.transform}px, 0)`),f}),l=f=>t("scroll",{scrollTop:f,isFixed:i.fixed}),u=()=>{if(!s.value||mo(s))return;const{container:f,position:h}=e,g=an(s),m=mr(window);if(i.width=g.width,i.height=g.height,h==="top")if(f){const p=an(f),y=p.bottom-r.value-i.height;i.fixed=r.value>g.top&&p.bottom>0,i.transform=y<0?y:0}else i.fixed=r.value>g.top;else{const{clientHeight:p}=document.documentElement;if(f){const y=an(f),C=p-y.top-r.value-i.height;i.fixed=p-r.valuey.top,i.transform=C<0?-C:0}else i.fixed=p-r.valuei.fixed,f=>t("change",f)),ts("scroll",u,{target:o,passive:!0}),Dd(s,u),ke([So,Ii],()=>{!s.value||mo(s)||!i.fixed||(a.value=!0,Xe(()=>{const f=an(s);i.width=f.width,i.height=f.height,a.value=!1}))}),()=>{var f;return E("div",{ref:s,style:c.value},[E("div",{class:G_({fixed:i.fixed&&!a.value}),style:d.value},[(f=n.default)==null?void 0:f.call(n)])])}}});const Y_=Ge(X_),[Bd,jo]=He("swipe"),Q_={loop:qe,width:$e,height:$e,vertical:Boolean,autoplay:Jt(0),duration:Jt(500),touchable:qe,lazyRender:Boolean,initialSwipe:Jt(0),indicatorColor:String,showIndicators:qe,stopPropagation:qe},Nd=Symbol(Bd);var Z_=be({name:Bd,props:Q_,emits:["change","dragStart","dragEnd"],setup(e,{emit:t,slots:n}){const s=j(),o=j(),i=pt({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let a=!1;const r=Sr(),{children:c,linkChildren:d}=Ai(Nd),l=q(()=>c.length),u=q(()=>i[e.vertical?"height":"width"]),f=q(()=>e.vertical?r.deltaY.value:r.deltaX.value),h=q(()=>i.rect?(e.vertical?i.rect.height:i.rect.width)-u.value*l.value:0),g=q(()=>u.value?Math.ceil(Math.abs(h.value)/u.value):l.value),m=q(()=>l.value*u.value),p=q(()=>(i.active+l.value)%l.value),y=q(()=>{const ne=e.vertical?"vertical":"horizontal";return r.direction.value===ne}),C=q(()=>{const ne={transitionDuration:`${i.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${+i.offset.toFixed(2)}px)`};if(u.value){const se=e.vertical?"height":"width",ie=e.vertical?"width":"height";ne[se]=`${m.value}px`,ne[ie]=e[ie]?`${e[ie]}px`:""}return ne}),R=ne=>{const{active:se}=i;return ne?e.loop?Qo(se+ne,-1,l.value):Qo(se+ne,0,g.value):se},k=(ne,se=0)=>{let ie=ne*u.value;e.loop||(ie=Math.min(ie,-h.value));let Te=se-ie;return e.loop||(Te=Qo(Te,h.value,0)),Te},b=({pace:ne=0,offset:se=0,emitChange:ie})=>{if(l.value<=1)return;const{active:Te}=i,Y=R(ne),ce=k(Y,se);if(e.loop){if(c[0]&&ce!==h.value){const S=ce0;c[l.value-1].setOffset(S?-m.value:0)}}i.active=Y,i.offset=ce,ie&&Y!==Te&&t("change",p.value)},I=()=>{i.swiping=!0,i.active<=-1?b({pace:l.value}):i.active>=l.value&&b({pace:-l.value})},D=()=>{I(),r.reset(),ds(()=>{i.swiping=!1,b({pace:-1,emitChange:!0})})},K=()=>{I(),r.reset(),ds(()=>{i.swiping=!1,b({pace:1,emitChange:!0})})};let F;const M=()=>clearTimeout(F),N=()=>{M(),+e.autoplay>0&&l.value>1&&(F=setTimeout(()=>{K(),N()},+e.autoplay))},O=(ne=+e.initialSwipe)=>{if(!s.value)return;const se=()=>{var ie,Te;if(!mo(s)){const Y={width:s.value.offsetWidth,height:s.value.offsetHeight};i.rect=Y,i.width=+((ie=e.width)!=null?ie:Y.width),i.height=+((Te=e.height)!=null?Te:Y.height)}l.value&&(ne=Math.min(l.value-1,ne),ne===-1&&(ne=l.value-1)),i.active=ne,i.swiping=!0,i.offset=k(ne),c.forEach(Y=>{Y.setOffset(0)}),N()};mo(s)?Xe().then(se):se()},Z=()=>O(i.active);let Q;const we=ne=>{!e.touchable||ne.touches.length>1||(r.start(ne),a=!1,Q=Date.now(),M(),I())},he=ne=>{e.touchable&&i.swiping&&(r.move(ne),y.value&&(!e.loop&&(i.active===0&&f.value>0||i.active===l.value-1&&f.value<0)||(vn(ne,e.stopPropagation),b({offset:f.value}),a||(t("dragStart",{index:p.value}),a=!0))))},ae=()=>{if(!e.touchable||!i.swiping)return;const ne=Date.now()-Q,se=f.value/ne;if((Math.abs(se)>.25||Math.abs(f.value)>u.value/2)&&y.value){const Te=e.vertical?r.offsetY.value:r.offsetX.value;let Y=0;e.loop?Y=Te>0?f.value>0?-1:1:0:Y=-Math[f.value>0?"ceil":"floor"](f.value/u.value),b({pace:Y,emitChange:!0})}else f.value&&b({pace:0});a=!1,i.swiping=!1,t("dragEnd",{index:p.value}),N()},de=(ne,se={})=>{I(),r.reset(),ds(()=>{let ie;e.loop&&ne===l.value?ie=i.active===0?0:ne:ie=ne%l.value,se.immediate?ds(()=>{i.swiping=!1}):i.swiping=!1,b({pace:ie-i.active,emitChange:!0})})},xe=(ne,se)=>{const ie=se===p.value,Te=ie?{backgroundColor:e.indicatorColor}:void 0;return E("i",{style:Te,class:jo("indicator",{active:ie})},null)},Se=()=>{if(n.indicator)return n.indicator({active:p.value,total:l.value});if(e.showIndicators&&l.value>1)return E("div",{class:jo("indicators",{vertical:e.vertical})},[Array(l.value).fill("").map(xe)])};return Bt({prev:D,next:K,state:i,resize:Z,swipeTo:de}),d({size:u,props:e,count:l,activeIndicator:p}),ke(()=>e.initialSwipe,ne=>O(+ne)),ke(l,()=>O(i.active)),ke(()=>e.autoplay,N),ke([So,Ii,()=>e.width,()=>e.height],Z),ke(Pm(),ne=>{ne==="visible"?N():M()}),nt(O),ks(()=>O(i.active)),yr(()=>O(i.active)),es(M),Ts(M),ts("touchmove",he,{target:o}),()=>{var ne;return E("div",{ref:s,class:jo()},[E("div",{ref:o,style:C.value,class:jo("track",{vertical:e.vertical}),onTouchstartPassive:we,onTouchend:ae,onTouchcancel:ae},[(ne=n.default)==null?void 0:ne.call(n)]),Se()])}}});const eg=Ge(Z_),[tg,Fl]=He("tabs");var ng=be({name:tg,props:{count:Yo(Number),inited:Boolean,animated:Boolean,duration:Yo($e),swipeable:Boolean,lazyRender:Boolean,currentIndex:Yo(Number)},emits:["change"],setup(e,{emit:t,slots:n}){const s=j(),o=r=>t("change",r),i=()=>{var r;const c=(r=n.default)==null?void 0:r.call(n);return e.animated||e.swipeable?E(eg,{ref:s,loop:!1,class:Fl("track"),duration:+e.duration*1e3,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:o},{default:()=>[c]}):c},a=r=>{const c=s.value;c&&c.state.active!==r&&c.swipeTo(r,{immediate:!e.inited})};return ke(()=>e.currentIndex,a),nt(()=>{a(e.currentIndex)}),Bt({swipeRef:s}),()=>E("div",{class:Fl("content",{animated:e.animated||e.swipeable})},[i()])}});const[Ld,qo]=He("tabs"),sg={type:Be("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:Jt(0),duration:Jt(.3),animated:Boolean,ellipsis:qe,swipeable:Boolean,scrollspy:Boolean,offsetTop:Jt(0),background:String,lazyRender:qe,showHeader:qe,lineWidth:$e,lineHeight:$e,beforeChange:Function,swipeThreshold:Jt(5),titleActiveColor:String,titleInactiveColor:String},Md=Symbol(Ld);var og=be({name:Ld,props:sg,emits:["change","scroll","rendered","clickTab","update:active"],setup(e,{emit:t,slots:n}){let s,o,i,a,r;const c=j(),d=j(),l=j(),u=j(),f=xo(),h=_d(c),[g,m]=Pd(),{children:p,linkChildren:y}=Ai(Md),C=pt({inited:!1,position:"",lineStyle:{},currentIndex:-1}),R=q(()=>p.length>+e.swipeThreshold||!e.ellipsis||e.shrink),k=q(()=>({borderColor:e.color,background:e.background})),b=(Y,ce)=>{var S;return(S=Y.name)!=null?S:ce},I=q(()=>{const Y=p[C.currentIndex];if(Y)return b(Y,C.currentIndex)}),D=q(()=>wd(e.offsetTop)),K=q(()=>e.sticky?D.value+s:0),F=Y=>{const ce=d.value,S=g.value;if(!R.value||!ce||!S||!S[C.currentIndex])return;const L=S[C.currentIndex].$el,z=L.offsetLeft-(ce.offsetWidth-L.offsetWidth)/2;a&&a(),a=z_(ce,z,Y?0:+e.duration)},M=()=>{const Y=C.inited;Xe(()=>{const ce=g.value;if(!ce||!ce[C.currentIndex]||e.type!=="line"||mo(c.value))return;const S=ce[C.currentIndex].$el,{lineWidth:L,lineHeight:z}=e,X=S.offsetLeft+S.offsetWidth/2,U={width:ot(L),backgroundColor:e.color,transform:`translateX(${X}px) translateX(-50%)`};if(Y&&(U.transitionDuration=`${e.duration}s`),st(z)){const v=ot(z);U.height=v,U.borderRadius=v}C.lineStyle=U})},N=Y=>{const ce=Y=0&&Y{const S=N(Y);if(!st(S))return;const L=p[S],z=b(L,S),X=C.currentIndex!==null;C.currentIndex!==S&&(C.currentIndex=S,ce||F(),M()),z!==e.active&&(t("update:active",z),X&&t("change",z,L.title)),i&&!e.scrollspy&&gr(Math.ceil(Tl(c.value)-D.value))},Z=(Y,ce)=>{const S=p.findIndex((L,z)=>b(L,z)===Y);O(S===-1?0:S,ce)},Q=(Y=!1)=>{if(e.scrollspy){const ce=p[C.currentIndex].$el;if(ce&&h.value){const S=Tl(ce,h.value)-K.value;o=!0,r&&r(),r=H_(h.value,S,Y?0:+e.duration,()=>{o=!1})}}},we=(Y,ce,S)=>{const{title:L,disabled:z}=p[ce],X=b(p[ce],ce);z||(vr(e.beforeChange,{args:[X],done:()=>{O(ce),Q()}}),Ad(Y)),t("clickTab",{name:X,title:L,event:S,disabled:z})},he=Y=>{i=Y.isFixed,t("scroll",Y)},ae=Y=>{Xe(()=>{Z(Y),Q(!0)})},de=()=>{for(let Y=0;YK.value)return Y===0?0:Y-1}return p.length-1},xe=()=>{if(e.scrollspy&&!o){const Y=de();O(Y)}},Se=()=>{if(e.type==="line"&&p.length)return E("div",{class:qo("line"),style:C.lineStyle},null)},ne=()=>{var Y,ce,S;const{type:L,border:z,sticky:X}=e,U=[E("div",{ref:X?void 0:l,class:[qo("wrap"),{[Cd]:L==="line"&&z}]},[E("div",{ref:d,role:"tablist",class:qo("nav",[L,{shrink:e.shrink,complete:R.value}]),style:k.value,"aria-orientation":"horizontal"},[(Y=n["nav-left"])==null?void 0:Y.call(n),p.map(v=>v.renderTitle(we)),Se(),(ce=n["nav-right"])==null?void 0:ce.call(n)])]),(S=n["nav-bottom"])==null?void 0:S.call(n)];return X?E("div",{ref:l},[U]):U},se=()=>{M(),Xe(()=>{var Y,ce;F(!0),(ce=(Y=u.value)==null?void 0:Y.swipeRef.value)==null||ce.resize()})};ke(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],M),ke(So,se),ke(()=>e.active,Y=>{Y!==I.value&&Z(Y)}),ke(()=>p.length,()=>{C.inited&&(Z(e.active),M(),Xe(()=>{F(!0)}))});const ie=()=>{Z(e.active,!0),Xe(()=>{C.inited=!0,l.value&&(s=an(l.value).height),F(!0)})},Te=(Y,ce)=>t("rendered",Y,ce);return Bt({resize:se,scrollTo:ae}),ks(M),yr(M),Ri(ie),Dd(c,M),ts("scroll",xe,{target:h,passive:!0}),y({id:f,props:e,setLine:M,scrollable:R,onRendered:Te,currentName:I,setTitleRefs:m,scrollIntoView:F}),()=>E("div",{ref:c,class:qo([e.type])},[e.showHeader?e.sticky?E(Y_,{container:c.value,offsetTop:D.value,onScroll:he},{default:()=>[ne()]}):ne():null,E(ng,{ref:u,count:p.length,inited:C.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:C.currentIndex,onChange:O},{default:()=>{var Y;return[(Y=n.default)==null?void 0:Y.call(n)]}})])}});const ig=Symbol(),Fd=Symbol(),ag=()=>ht(Fd,null),rg=e=>{const t=ag();cn(ig,e),cn(Fd,q(()=>(t==null||t.value)&&e.value))},[lg,Vl]=He("tab"),cg=be({name:lg,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:$e,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:qe},setup(e,{slots:t}){const n=q(()=>{const o={},{type:i,color:a,disabled:r,isActive:c,activeColor:d,inactiveColor:l}=e;a&&i==="card"&&(o.borderColor=a,r||(c?o.backgroundColor=a:o.color=a));const f=c?d:l;return f&&(o.color=f),o}),s=()=>{const o=E("span",{class:Vl("text",{ellipsis:!e.scrollable})},[t.title?t.title():e.title]);return e.dot||st(e.badge)&&e.badge!==""?E(Rd,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[o]}):o};return()=>E("div",{id:e.id,role:"tab",class:[Vl([e.type,{grow:e.scrollable&&!e.shrink,shrink:e.shrink,active:e.isActive,disabled:e.disabled}])],style:n.value,tabindex:e.disabled?void 0:e.isActive?0:-1,"aria-selected":e.isActive,"aria-disabled":e.disabled||void 0,"aria-controls":e.controls,"data-allow-mismatch":"attribute"},[s()])}}),[ug,dg]=He("swipe-item");var fg=be({name:ug,setup(e,{slots:t}){let n;const s=pt({offset:0,inited:!1,mounted:!1}),{parent:o,index:i}=Is(Nd);if(!o)return;const a=q(()=>{const d={},{vertical:l}=o.props;return o.size.value&&(d[l?"height":"width"]=`${o.size.value}px`),s.offset&&(d.transform=`translate${l?"Y":"X"}(${s.offset}px)`),d}),r=q(()=>{const{loop:d,lazyRender:l}=o.props;if(!l||n)return!0;if(!s.mounted)return!1;const u=o.activeIndicator.value,f=o.count.value-1,h=u===0&&d?f:u-1,g=u===f&&d?0:u+1;return n=i.value===u||i.value===h||i.value===g,n}),c=d=>{s.offset=d};return nt(()=>{Xe(()=>{s.mounted=!0})}),Bt({setOffset:c}),()=>{var d;return E("div",{class:dg(),style:a.value},[r.value?(d=t.default)==null?void 0:d.call(t):null])}}});const hg=Ge(fg),[pg,na]=He("tab"),mg=Ke({},Oi,{dot:Boolean,name:$e,badge:$e,title:String,disabled:Boolean,titleClass:Ut,titleStyle:[String,Object],showZeroBadge:qe});var _g=be({name:pg,props:mg,setup(e,{slots:t}){const n=xo(),s=j(!1),o=Wt(),{parent:i,index:a}=Is(Md);if(!i)return;const r=()=>{var g;return(g=e.name)!=null?g:a.value},c=()=>{s.value=!0,i.props.lazyRender&&Xe(()=>{i.onRendered(r(),e.title)})},d=q(()=>{const g=r()===i.currentName.value;return g&&!s.value&&c(),g}),l=j(""),u=j("");Eu(()=>{const{titleClass:g,titleStyle:m}=e;l.value=g?_e(g):"",u.value=m&&typeof m!="string"?sh(ln(m)):m});const f=g=>E(cg,Tt({key:n,id:`${i.id}-${a.value}`,ref:i.setTitleRefs(a.value),style:u.value,class:l.value,isActive:d.value,controls:n,scrollable:i.scrollable.value,activeColor:i.props.titleActiveColor,inactiveColor:i.props.titleInactiveColor,onClick:m=>g(o.proxy,a.value,m)},Sn(i.props,["type","color","shrink"]),Sn(e,["dot","badge","title","disabled","showZeroBadge"])),{title:t.title}),h=j(!d.value);return ke(d,g=>{g?h.value=!1:ds(()=>{h.value=!0})}),ke(()=>e.title,()=>{i.setLine(),i.scrollIntoView()}),rg(d),Bt({id:n,renderTitle:f}),()=>{var g;const m=`${i.id}-${a.value}`,{animated:p,swipeable:y,scrollspy:C,lazyRender:R}=i.props;if(!t.default&&!p)return;const k=C||d.value;if(p||y)return E(hg,{id:n,role:"tabpanel",class:na("panel-wrapper",{inactive:h.value}),tabindex:d.value?0:-1,"aria-hidden":!d.value,"aria-labelledby":m,"data-allow-mismatch":"attribute"},{default:()=>{var D;return[E("div",{class:na("panel")},[(D=t.default)==null?void 0:D.call(t)])]}});const I=s.value||C||!R?(g=t.default)==null?void 0:g.call(t):null;return Jn(E("div",{id:n,role:"tabpanel",class:na("panel"),tabindex:k?0:-1,"aria-labelledby":m,"data-allow-mismatch":"attribute"},[I]),[[Yn,k]])}}});const gg=Ge(_g),vg=Ge(og),[yg,os]=He("cell"),$i={tag:Be("div"),icon:String,size:String,title:$e,value:$e,label:$e,center:Boolean,isLink:Boolean,border:qe,iconPrefix:String,valueClass:Ut,labelClass:Ut,titleClass:Ut,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},bg=Ke({},$i,Oi);var wg=be({name:yg,props:bg,setup(e,{slots:t}){const n=br(),s=()=>{if(t.label||st(e.label))return E("div",{class:[os("label"),e.labelClass]},[t.label?t.label():e.label])},o=()=>{var c;if(t.title||st(e.title)){const d=(c=t.title)==null?void 0:c.call(t);return Array.isArray(d)&&d.length===0?void 0:E("div",{class:[os("title"),e.titleClass],style:e.titleStyle},[d||E("span",null,[e.title]),s()])}},i=()=>{const c=t.value||t.default;if(c||st(e.value))return E("div",{class:[os("value"),e.valueClass]},[c?c():E("span",null,[e.value])])},a=()=>{if(t.icon)return t.icon();if(e.icon)return E(It,{name:e.icon,class:os("left-icon"),classPrefix:e.iconPrefix},null)},r=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const c=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return E(It,{name:c,class:os("right-icon")},null)}};return()=>{var c;const{tag:d,size:l,center:u,border:f,isLink:h,required:g}=e,m=(c=e.clickable)!=null?c:h,p={center:u,required:!!g,clickable:m,borderless:!f};return l&&(p[l]=!!l),E(d,{class:os(p),role:m?"button":void 0,tabindex:m?0:void 0,onClick:n},{default:()=>{var y;return[a(),o(),i(),r(),(y=t.extra)==null?void 0:y.call(t)]}})}}});const Vd=Ge(wg);function jd(e){return Array.isArray(e)?!e.length:e===0?!1:!e}function Sg(e,t){if(jd(e)){if(t.required)return!1;if(t.validateEmpty===!1)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}function Eg(e,t){return new Promise(n=>{const s=t.validator(e,t);if(ud(s)){s.then(n);return}n(s)})}function jl(e,t){const{message:n}=t;return po(n)?n(e,t):n||""}function Cg({target:e}){e.composing=!0}function ql({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function xg(e,t){const n=_r();e.style.height="auto";let s=e.scrollHeight;if(wo(t)){const{maxHeight:o,minHeight:i}=t;o!==void 0&&(s=Math.min(s,o)),i!==void 0&&(s=Math.max(s,i))}s&&(e.style.height=`${s}px`,gr(n))}function kg(e,t){return e==="number"&&(e="text",t??(t="decimal")),e==="digit"&&(e="tel",t??(t="numeric")),{type:e,inputmode:t}}function Ms(e){return[...e].length}function sa(e,t){return[...e].slice(0,t).join("")}const[Tg,Vt]=He("field"),Cr={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:$e,max:Number,min:Number,formatter:Function,clearIcon:Be("clear"),modelValue:Jt(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:Be("focus"),formatTrigger:Be("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},inputmode:String},Ag=Ke({},$i,Cr,{rows:$e,type:Be("text"),rules:Array,autosize:[Boolean,Object],labelWidth:$e,labelClass:Ut,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var Rg=be({name:Tg,props:Ag,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n}){const s=xo(),o=pt({status:"unvalidated",focused:!1,validateMessage:""}),i=j(),a=j(),r=j(),{parent:c}=Is(t_),d=()=>{var S;return String((S=e.modelValue)!=null?S:"")},l=S=>{if(st(e[S]))return e[S];if(c&&st(c.props[S]))return c.props[S]},u=q(()=>{const S=l("readonly");if(e.clearable&&!S){const L=d()!=="",z=e.clearTrigger==="always"||e.clearTrigger==="focus"&&o.focused;return L&&z}return!1}),f=q(()=>r.value&&n.input?r.value():e.modelValue),h=q(()=>{var S;const L=l("required");return L==="auto"?(S=e.rules)==null?void 0:S.some(z=>z.required):L}),g=S=>S.reduce((L,z)=>L.then(()=>{if(o.status==="failed")return;let{value:X}=f;if(z.formatter&&(X=z.formatter(X,z)),!Sg(X,z)){o.status="failed",o.validateMessage=jl(X,z);return}if(z.validator)return jd(X)&&z.validateEmpty===!1?void 0:Eg(X,z).then(U=>{U&&typeof U=="string"?(o.status="failed",o.validateMessage=U):U===!1&&(o.status="failed",o.validateMessage=jl(X,z))})}),Promise.resolve()),m=()=>{o.status="unvalidated",o.validateMessage=""},p=()=>t("endValidate",{status:o.status,message:o.validateMessage}),y=(S=e.rules)=>new Promise(L=>{m(),S?(t("startValidate"),g(S).then(()=>{o.status==="failed"?(L({name:e.name,message:o.validateMessage}),p()):(o.status="passed",L(),p())})):L()}),C=S=>{if(c&&e.rules){const{validateTrigger:L}=c.props,z=Cl(L).includes(S),X=e.rules.filter(U=>U.trigger?Cl(U.trigger).includes(S):z);X.length&&y(X)}},R=S=>{var L;const{maxlength:z}=e;if(st(z)&&Ms(S)>+z){const X=d();if(X&&Ms(X)===+z)return X;let U=(L=i.value)==null?void 0:L.selectionEnd;if(o.focused&&U){const v=[...S],w=v.length-+z;return U=Ms(S.slice(0,U)),v.splice(U-w,w),v.join("")}return sa(S,+z)}return S},k=(S,L="onChange")=>{var z,X;const U=S;S=R(S);const v=U.length-S.length;if(e.type==="number"||e.type==="digit"){const x=e.type==="number";if(S=Um(S,x,x),L==="onBlur"&&S!==""&&(e.min!==void 0||e.max!==void 0)){const B=Qo(+S,(z=e.min)!=null?z:-1/0,(X=e.max)!=null?X:1/0);+S!==B&&(S=B.toString())}}let w=0;if(e.formatter&&L===e.formatTrigger){const{formatter:x,maxlength:B}=e;if(S=x(S),st(B)&&Ms(S)>+B&&(S=sa(S,+B)),i.value&&o.focused){const{selectionEnd:W}=i.value,H=sa(U,W);w=x(H).length-H.length}}if(i.value&&i.value.value!==S)if(o.focused){let{selectionStart:x,selectionEnd:B}=i.value;if(i.value.value=S,st(x)&&st(B)){const W=S.length;v?(x-=v,B-=v):w&&(x+=w,B+=w),i.value.setSelectionRange(Math.min(x,W),Math.min(B,W))}}else i.value.value=S;S!==e.modelValue&&t("update:modelValue",S)},b=S=>{S.target.composing||k(S.target.value)},I=()=>{var S;return(S=i.value)==null?void 0:S.blur()},D=()=>{var S;return(S=i.value)==null?void 0:S.focus()},K=()=>{const S=i.value;e.type==="textarea"&&e.autosize&&S&&xg(S,e.autosize)},F=S=>{o.focused=!0,t("focus",S),Xe(K),l("readonly")&&I()},M=S=>{o.focused=!1,k(d(),"onBlur"),t("blur",S),!l("readonly")&&(C("onBlur"),Xe(K),Bm())},N=S=>t("clickInput",S),O=S=>t("clickLeftIcon",S),Z=S=>t("clickRightIcon",S),Q=S=>{vn(S),t("update:modelValue",""),t("clear",S)},we=q(()=>{if(typeof e.error=="boolean")return e.error;if(c&&c.props.showError&&o.status==="failed")return!0}),he=q(()=>{const S=l("labelWidth"),L=l("labelAlign");if(S&&L!=="top")return{width:ot(S)}}),ae=S=>{S.keyCode===13&&(!(c&&c.props.submitOnEnter)&&e.type!=="textarea"&&vn(S),e.type==="search"&&I()),t("keypress",S)},de=()=>e.id||`${s}-input`,xe=()=>o.status,Se=()=>{const S=Vt("control",[l("inputAlign"),{error:we.value,custom:!!n.input,"min-height":e.type==="textarea"&&!e.autosize}]);if(n.input)return E("div",{class:S,onClick:N},[n.input()]);const L={id:de(),ref:i,name:e.name,rows:e.rows!==void 0?+e.rows:void 0,class:S,disabled:l("disabled"),readonly:l("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,enterkeyhint:e.enterkeyhint,spellcheck:e.spellcheck,"aria-labelledby":e.label?`${s}-label`:void 0,"data-allow-mismatch":"attribute",onBlur:M,onFocus:F,onInput:b,onClick:N,onChange:ql,onKeypress:ae,onCompositionend:ql,onCompositionstart:Cg};return e.type==="textarea"?E("textarea",Tt(L,{inputmode:e.inputmode}),null):E("input",Tt(kg(e.type,e.inputmode),L),null)},ne=()=>{const S=n["left-icon"];if(e.leftIcon||S)return E("div",{class:Vt("left-icon"),onClick:O},[S?S():E(It,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])},se=()=>{const S=n["right-icon"];if(e.rightIcon||S)return E("div",{class:Vt("right-icon"),onClick:Z},[S?S():E(It,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},ie=()=>{if(e.showWordLimit&&e.maxlength){const S=Ms(d());return E("div",{class:Vt("word-limit")},[E("span",{class:Vt("word-num")},[S]),je("/"),e.maxlength])}},Te=()=>{if(c&&c.props.showErrorMessage===!1)return;const S=e.errorMessage||o.validateMessage;if(S){const L=n["error-message"],z=l("errorMessageAlign");return E("div",{class:Vt("error-message",z)},[L?L({message:S}):S])}},Y=()=>{const S=l("labelWidth"),L=l("labelAlign"),z=l("colon")?":":"";if(n.label)return[n.label(),z];if(e.label)return E("label",{id:`${s}-label`,for:n.input?void 0:de(),"data-allow-mismatch":"attribute",onClick:X=>{vn(X),D()},style:L==="top"&&S?{width:ot(S)}:void 0},[e.label+z])},ce=()=>[E("div",{class:Vt("body")},[Se(),u.value&&E(It,{ref:a,name:e.clearIcon,class:Vt("clear")},null),se(),n.button&&E("div",{class:Vt("button")},[n.button()])]),ie(),Te()];return Bt({blur:I,focus:D,validate:y,formValue:f,resetValidation:m,getValidationStatus:xe}),cn(gd,{customValue:r,resetValidation:m,validateWithTrigger:C}),ke(()=>e.modelValue,()=>{k(d()),m(),C("onChange"),Xe(K)}),nt(()=>{k(d(),e.formatTrigger),Xe(K)}),ts("touchstart",Q,{target:q(()=>{var S;return(S=a.value)==null?void 0:S.$el})}),()=>{const S=l("disabled"),L=l("labelAlign"),z=ne(),X=()=>{const U=Y();return L==="top"?[z,U].filter(Boolean):U||[]};return E(Vd,{size:e.size,class:Vt({error:we.value,disabled:S,[`label-${L}`]:L}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:he.value,valueClass:Vt("value"),titleClass:[Vt("label",[L,{required:h.value}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:z&&L!=="top"?()=>z:null,title:X,value:ce,extra:n.extra})}}});const xr=Ge(Rg);let Fs=0;function Ig(e){e?(Fs||document.body.classList.add("van-toast--unclickable"),Fs++):Fs&&(Fs--,Fs||document.body.classList.remove("van-toast--unclickable"))}const[Og,is]=He("toast"),$g=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],Pg={icon:String,show:Boolean,type:Be("text"),overlay:Boolean,message:$e,iconSize:$e,duration:fd(2e3),position:Be("middle"),teleport:[String,Object],wordBreak:String,className:Ut,iconPrefix:String,transition:Be("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:Ut,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:$e};var qd=be({name:Og,props:Pg,emits:["update:show"],setup(e,{emit:t,slots:n}){let s,o=!1;const i=()=>{const u=e.show&&e.forbidClick;o!==u&&(o=u,Ig(o))},a=u=>t("update:show",u),r=()=>{e.closeOnClick&&a(!1)},c=()=>clearTimeout(s),d=()=>{const{icon:u,type:f,iconSize:h,iconPrefix:g,loadingType:m}=e;if(u||f==="success"||f==="fail")return E(It,{name:u||f,size:h,class:is("icon"),classPrefix:g},null);if(f==="loading")return E(Co,{class:is("loading"),size:h,type:m},null)},l=()=>{const{type:u,message:f}=e;if(n.message)return E("div",{class:is("text")},[n.message()]);if(st(f)&&f!=="")return u==="html"?E("div",{key:0,class:is("text"),innerHTML:String(f)},null):E("div",{class:is("text")},[f])};return ke(()=>[e.show,e.forbidClick],i),ke(()=>[e.show,e.type,e.message,e.duration],()=>{c(),e.show&&e.duration>0&&(s=setTimeout(()=>{a(!1)},e.duration))}),nt(i),Ln(i),()=>E(Os,Tt({class:[is([e.position,e.wordBreak==="normal"?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:r,onClosed:c,"onUpdate:show":a},Sn(e,$g)),{default:()=>[d(),l()]})}});function Ud(){const e=pt({show:!1}),t=o=>{e.show=o},n=o=>{Ke(e,o,{transitionAppear:!0}),t(!0)},s=()=>t(!1);return Bt({open:n,close:s,toggle:t}),{open:n,close:s,state:e,toggle:t}}function zd(e){const t=cd(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount(){t.unmount(),document.body.removeChild(n)}}}const Dg={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let fs=[],Bg=!1,Ul=Ke({},Dg);const Ng=new Map;function Hd(e){return wo(e)?e:{message:e}}function Lg(){const{instance:e}=zd({setup(){const t=j(""),{open:n,state:s,close:o,toggle:i}=Ud(),a=()=>{},r=()=>E(qd,Tt(s,{onClosed:a,"onUpdate:show":i}),null);return ke(t,c=>{s.message=c}),Wt().render=r,{open:n,close:o,message:t}}});return e}function Mg(){if(!fs.length||Bg){const e=Lg();fs.push(e)}return fs[fs.length-1]}function Ae(e={}){if(!As)return{};const t=Mg(),n=Hd(e);return t.open(Ke({},Ul,Ng.get(n.type||Ul.type),n)),t}const kr=e=>t=>Ae(Ke({type:e},Hd(t))),Fg=kr("loading"),qT=kr("success"),Vg=kr("fail"),zl=e=>{fs.length&&fs[0].close()};Ge(qd);const[jg]=He("checkbox-group"),qg=Symbol(jg),Wd={name:Ut,disabled:Boolean,iconSize:$e,modelValue:Ut,checkedColor:String,labelPosition:String,labelDisabled:Boolean};var Ug=be({props:Ke({},Wd,{bem:Yo(Function),role:String,shape:String,parent:Object,checked:Boolean,bindGroup:qe,indeterminate:{type:Boolean,default:null}}),emits:["click","toggle"],setup(e,{emit:t,slots:n}){const s=j(),o=f=>{if(e.parent&&e.bindGroup)return e.parent.props[f]},i=q(()=>{if(e.parent&&e.bindGroup){const f=o("disabled")||e.disabled;if(e.role==="checkbox"){const h=o("modelValue").length,g=o("max"),m=g&&h>=+g;return f||m&&!e.checked}return f}return e.disabled}),a=q(()=>o("direction")),r=q(()=>{const f=e.checkedColor||o("checkedColor");if(f&&(e.checked||e.indeterminate)&&!i.value)return{borderColor:f,backgroundColor:f}}),c=q(()=>e.shape||o("shape")||"round"),d=f=>{const{target:h}=f,g=s.value,m=g===h||(g==null?void 0:g.contains(h));!i.value&&(m||!e.labelDisabled)&&t("toggle"),t("click",f)},l=()=>{var f,h;const{bem:g,checked:m,indeterminate:p}=e,y=e.iconSize||o("iconSize");return E("div",{ref:s,class:g("icon",[c.value,{disabled:i.value,checked:m,indeterminate:p}]),style:c.value!=="dot"?{fontSize:ot(y)}:{width:ot(y),height:ot(y),borderColor:(f=r.value)==null?void 0:f.borderColor}},[n.icon?n.icon({checked:m,disabled:i.value}):c.value!=="dot"?E(It,{name:p?"minus":"success",style:r.value},null):E("div",{class:g("icon--dot__icon"),style:{backgroundColor:(h=r.value)==null?void 0:h.backgroundColor}},null)])},u=()=>{const{checked:f}=e;if(n.default)return E("span",{class:e.bem("label",[e.labelPosition,{disabled:i.value}])},[n.default({checked:f,disabled:i.value})])};return()=>{const f=e.labelPosition==="left"?[u(),l()]:[l(),u()];return E("div",{role:e.role,class:e.bem([{disabled:i.value,"label-disabled":e.labelDisabled},a.value]),tabindex:i.value?void 0:0,"aria-checked":e.checked,onClick:d},[f])}}});const[zg,Hg]=He("checkbox"),Wg=Ke({},Wd,{shape:String,bindGroup:qe,indeterminate:{type:Boolean,default:null}});var Kg=be({name:zg,props:Wg,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{parent:s}=Is(qg),o=r=>{const{name:c}=e,{max:d,modelValue:l}=s.props,u=l.slice();if(r)!(d&&u.length>=+d)&&!u.includes(c)&&(u.push(c),e.bindGroup&&s.updateValue(u));else{const f=u.indexOf(c);f!==-1&&(u.splice(f,1),e.bindGroup&&s.updateValue(u))}},i=q(()=>s&&e.bindGroup?s.props.modelValue.indexOf(e.name)!==-1:!!e.modelValue),a=(r=!i.value)=>{s&&e.bindGroup?o(r):t("update:modelValue",r),e.indeterminate!==null&&t("change",r)};return ke(()=>e.modelValue,r=>{e.indeterminate===null&&t("change",r)}),Bt({toggle:a,props:e,checked:i}),vd(()=>e.modelValue),()=>E(Ug,Tt({bem:Hg,role:"checkbox",parent:s,checked:i.value,onToggle:a},e),Sn(n,["default","icon"]))}});const Gg=Ge(Kg),[Kd,Jg]=He("collapse"),Gd=Symbol(Kd),Xg={border:qe,accordion:Boolean,modelValue:{type:[String,Number,Array],default:""}};var Yg=be({name:Kd,props:Xg,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{linkChildren:s,children:o}=Ai(Gd),i=d=>{t("change",d),t("update:modelValue",d)},a=(d,l)=>{const{accordion:u,modelValue:f}=e;i(u?d===f?"":d:l?f.concat(d):f.filter(h=>h!==d))},r=(d={})=>{if(e.accordion)return;typeof d=="boolean"&&(d={expanded:d});const{expanded:l,skipDisabled:u}=d,h=o.filter(g=>g.disabled&&u?g.expanded.value:l??!g.expanded.value).map(g=>g.itemName.value);i(h)},c=d=>{const{accordion:l,modelValue:u}=e;return l?u===d:u.includes(d)};return Bt({toggleAll:r}),s({toggle:a,isExpanded:c}),()=>{var d;return E("div",{class:[Jg(),{[Cd]:e.border}]},[(d=n.default)==null?void 0:d.call(n)])}}});const Qg=Ge(Yg),[Zg,Uo]=He("collapse-item"),ev=["icon","title","value","label","right-icon"],tv=Ke({},$i,{name:$e,isLink:qe,disabled:Boolean,readonly:Boolean,lazyRender:qe});var nv=be({name:Zg,props:tv,setup(e,{slots:t}){const n=j(),s=j(),{parent:o,index:i}=Is(Gd);if(!o)return;const a=q(()=>{var m;return(m=e.name)!=null?m:i.value}),r=q(()=>o.isExpanded(a.value)),c=j(r.value),d=Er(()=>c.value||!e.lazyRender),l=()=>{r.value?n.value&&(n.value.style.height=""):c.value=!1};ke(r,(m,p)=>{if(p===null)return;m&&(c.value=!0),(m?Xe:ws)(()=>{if(!s.value||!n.value)return;const{offsetHeight:C}=s.value;if(C){const R=`${C}px`;n.value.style.height=m?"0":R,ds(()=>{n.value&&(n.value.style.height=m?R:"0")})}else l()})});const u=(m=!r.value)=>{o.toggle(a.value,m)},f=()=>{!e.disabled&&!e.readonly&&u()},h=()=>{const{border:m,disabled:p,readonly:y}=e,C=Sn(e,Object.keys($i));return y&&(C.isLink=!1),(p||y)&&(C.clickable=!1),E(Vd,Tt({role:"button",class:Uo("title",{disabled:p,expanded:r.value,borderless:!m}),"aria-expanded":String(r.value),onClick:f},C),Sn(t,ev))},g=d(()=>{var m;return Jn(E("div",{ref:n,class:Uo("wrapper"),onTransitionend:l},[E("div",{ref:s,class:Uo("content")},[(m=t.default)==null?void 0:m.call(t)])]),[[Yn,c.value]])});return Bt({toggle:u,expanded:r,itemName:a}),()=>E("div",{class:[Uo({border:i.value&&e.border})]},[h(),g()])}});const sv=Ge(nv),ov=Ge(__),[iv,zo]=He("empty"),av={image:Be("default"),imageSize:[Number,String,Array],description:String};var rv=be({name:iv,props:av,setup(e,{slots:t}){const n=()=>{const y=t.description?t.description():e.description;if(y)return E("p",{class:zo("description")},[y])},s=()=>{if(t.default)return E("div",{class:zo("bottom")},[t.default()])},o=xo(),i=y=>`${o}-${y}`,a=y=>`url(#${i(y)})`,r=(y,C,R)=>E("stop",{"stop-color":y,offset:`${C}%`,"stop-opacity":R},null),c=(y,C)=>[r(y,0),r(C,100)],d=y=>[E("defs",null,[E("radialGradient",{id:i(y),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)","data-allow-mismatch":"attribute"},[r("#EBEDF0",0),r("#F2F3F5",100,.3)])]),E("ellipse",{fill:a(y),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8","data-allow-mismatch":"attribute"},null)],l=()=>[E("defs",null,[E("linearGradient",{id:i("a"),x1:"64%",y1:"100%",x2:"64%","data-allow-mismatch":"attribute"},[r("#FFF",0,.5),r("#F2F3F5",100)])]),E("g",{opacity:".8","data-allow-mismatch":"children"},[E("path",{d:"M36 131V53H16v20H2v58h34z",fill:a("a")},null),E("path",{d:"M123 15h22v14h9v77h-31V15z",fill:a("a")},null)])],u=()=>[E("defs",null,[E("linearGradient",{id:i("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%","data-allow-mismatch":"attribute"},[r("#F2F3F5",0,.3),r("#F2F3F5",100)])]),E("g",{opacity:".8","data-allow-mismatch":"children"},[E("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:a("b")},null),E("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:a("b")},null)])],f=()=>E("svg",{viewBox:"0 0 160 160"},[E("defs",{"data-allow-mismatch":"children"},[E("linearGradient",{id:i(1),x1:"64%",y1:"100%",x2:"64%"},[r("#FFF",0,.5),r("#F2F3F5",100)]),E("linearGradient",{id:i(2),x1:"50%",x2:"50%",y2:"84%"},[r("#EBEDF0",0),r("#DCDEE0",100,0)]),E("linearGradient",{id:i(3),x1:"100%",x2:"100%",y2:"100%"},[c("#EAEDF0","#DCDEE0")]),E("radialGradient",{id:i(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[r("#EBEDF0",0),r("#FFF",100,0)])]),E("g",{fill:"none"},[l(),E("path",{fill:a(4),d:"M0 139h160v21H0z","data-allow-mismatch":"attribute"},null),E("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:a(2),"data-allow-mismatch":"attribute"},null),E("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7","data-allow-mismatch":"children"},[E("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:a(3)},null),E("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:a(3)},null),E("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:a(3)},null),E("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:a(3)},null)]),E("g",{transform:"translate(31 105)"},[E("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),E("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),E("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),h=()=>E("svg",{viewBox:"0 0 160 160"},[E("defs",{"data-allow-mismatch":"children"},[E("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(5)},[c("#F2F3F5","#DCDEE0")]),E("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:i(6)},[c("#EAEDF1","#DCDEE0")]),E("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:i(7)},[c("#EAEDF1","#DCDEE0")])]),l(),u(),E("g",{transform:"translate(36 50)",fill:"none"},[E("g",{transform:"translate(8)"},[E("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),E("rect",{fill:a(5),width:"64",height:"66",rx:"2","data-allow-mismatch":"attribute"},null),E("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),E("g",{transform:"translate(15 17)",fill:a(6),"data-allow-mismatch":"attribute"},[E("rect",{width:"34",height:"6",rx:"1"},null),E("path",{d:"M0 14h34v6H0z"},null),E("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),E("rect",{fill:a(7),y:"61",width:"88",height:"28",rx:"1","data-allow-mismatch":"attribute"},null),E("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),g=()=>E("svg",{viewBox:"0 0 160 160"},[E("defs",null,[E("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(8),"data-allow-mismatch":"attribute"},[c("#EAEDF1","#DCDEE0")])]),l(),u(),d("c"),E("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:a(8),"data-allow-mismatch":"attribute"},null)]),m=()=>E("svg",{viewBox:"0 0 160 160"},[E("defs",{"data-allow-mismatch":"children"},[E("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:i(9)},[c("#EEE","#D8D8D8")]),E("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:i(10)},[c("#F2F3F5","#DCDEE0")]),E("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(11)},[c("#F2F3F5","#DCDEE0")]),E("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(12)},[c("#FFF","#F7F8FA")])]),l(),u(),d("d"),E("g",{transform:"rotate(-45 113 -4)",fill:"none","data-allow-mismatch":"children"},[E("rect",{fill:a(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),E("rect",{fill:a(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),E("circle",{stroke:a(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),E("circle",{fill:a(12),cx:"27",cy:"27",r:"16"},null),E("path",{d:"M37 7c-8 0-15 5-16 12",stroke:a(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),p=()=>{var y;if(t.image)return t.image();const C={error:g,search:m,network:f,default:h};return((y=C[e.image])==null?void 0:y.call(C))||E("img",{src:e.image},null)};return()=>E("div",{class:zo()},[E("div",{class:zo("image"),style:yd(e.imageSize)},[p()]),n(),s()])}});const Jd=Ge(rv),[lv,Kt,Ho]=He("dialog"),cv=Ke({},wr,{title:String,theme:String,width:$e,message:[String,Function],callback:Function,allowHtml:Boolean,className:Ut,transition:Be("van-dialog-bounce"),messageAlign:String,closeOnPopstate:qe,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,cancelButtonDisabled:Boolean,confirmButtonText:String,confirmButtonColor:String,confirmButtonDisabled:Boolean,showConfirmButton:qe,closeOnClickOverlay:Boolean,keyboardEnabled:qe,destroyOnClose:Boolean}),uv=[...P_,"transition","closeOnPopstate","destroyOnClose"];var Xd=be({name:lv,props:cv,emits:["confirm","cancel","keydown","update:show"],setup(e,{emit:t,slots:n}){const s=j(),o=pt({confirm:!1,cancel:!1}),i=y=>t("update:show",y),a=y=>{var C;i(!1),(C=e.callback)==null||C.call(e,y)},r=y=>()=>{e.show&&(t(y),e.beforeClose?(o[y]=!0,vr(e.beforeClose,{args:[y],done(){a(y),o[y]=!1},canceled(){o[y]=!1}})):a(y))},c=r("cancel"),d=r("confirm"),l=ld(y=>{var C,R;if(!e.keyboardEnabled||y.target!==((R=(C=s.value)==null?void 0:C.popupRef)==null?void 0:R.value))return;({Enter:e.showConfirmButton?d:Pa,Escape:e.showCancelButton?c:Pa})[y.key](),t("keydown",y)},["enter","esc"]),u=()=>{const y=n.title?n.title():e.title;if(y)return E("div",{class:Kt("header",{isolated:!e.message&&!n.default})},[y])},f=y=>{const{message:C,allowHtml:R,messageAlign:k}=e,b=Kt("message",{"has-title":y,[k]:k}),I=po(C)?C():C;return R&&typeof I=="string"?E("div",{class:b,innerHTML:I},null):E("div",{class:b},[I])},h=()=>{if(n.default)return E("div",{class:Kt("content")},[n.default()]);const{title:y,message:C,allowHtml:R}=e;if(C){const k=!!(y||n.title);return E("div",{key:R?1:0,class:Kt("content",{isolated:!k})},[f(k)])}},g=()=>E("div",{class:[Ym,Kt("footer")]},[e.showCancelButton&&E(Ss,{size:"large",text:e.cancelButtonText||Ho("cancel"),class:Kt("cancel"),style:{color:e.cancelButtonColor},loading:o.cancel,disabled:e.cancelButtonDisabled,onClick:c},null),e.showConfirmButton&&E(Ss,{size:"large",text:e.confirmButtonText||Ho("confirm"),class:[Kt("confirm"),{[Qm]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:o.confirm,disabled:e.confirmButtonDisabled,onClick:d},null)]),m=()=>E(a_,{class:Kt("footer")},{default:()=>[e.showCancelButton&&E(Bl,{type:"warning",text:e.cancelButtonText||Ho("cancel"),class:Kt("cancel"),color:e.cancelButtonColor,loading:o.cancel,disabled:e.cancelButtonDisabled,onClick:c},null),e.showConfirmButton&&E(Bl,{type:"danger",text:e.confirmButtonText||Ho("confirm"),class:Kt("confirm"),color:e.confirmButtonColor,loading:o.confirm,disabled:e.confirmButtonDisabled,onClick:d},null)]}),p=()=>n.footer?n.footer():e.theme==="round-button"?m():g();return()=>{const{width:y,title:C,theme:R,message:k,className:b}=e;return E(Os,Tt({ref:s,role:"dialog",class:[Kt([R]),b],style:{width:ot(y)},tabindex:0,"aria-labelledby":C||k,onKeydown:l,"onUpdate:show":i},Sn(e,uv)),{default:()=>[u(),h(),p()]})}}});let Na;const dv={title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,cancelButtonDisabled:!1,confirmButtonText:"",confirmButtonColor:null,confirmButtonDisabled:!1,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,destroyOnClose:!1};let fv=Ke({},dv);function hv(){({instance:Na}=zd({setup(){const{state:t,toggle:n}=Ud();return()=>E(Xd,Tt(t,{"onUpdate:show":n}),null)}}))}function pv(e){return As?new Promise((t,n)=>{Na||hv(),Na.open(Ke({},fv,e,{callback:s=>{(s==="confirm"?t:n)(s)}}))}):Promise.resolve(void 0)}const mv=e=>pv(Ke({showCancelButton:!0},e)),UT=Ge(Xd),[_v,Wo]=He("rate");function gv(e,t,n,s){return e>=t?{status:"full",value:1}:e+.5>=t&&n&&!s?{status:"half",value:.5}:e+1>=t&&n&&s?{status:"half",value:Math.round((e-t+1)*1e10)/1e10}:{status:"void",value:0}}const vv={size:$e,icon:Be("star"),color:String,count:Jt(5),gutter:$e,clearable:Boolean,readonly:Boolean,disabled:Boolean,voidIcon:Be("star-o"),allowHalf:Boolean,voidColor:String,touchable:qe,iconPrefix:String,modelValue:fd(0),disabledColor:String};var yv=be({name:_v,props:vv,emits:["change","update:modelValue"],setup(e,{emit:t}){const n=Sr(),[s,o]=Pd(),i=j(),a=q(()=>e.readonly||e.disabled),r=q(()=>a.value||!e.touchable),c=q(()=>Array(+e.count).fill("").map((R,k)=>gv(e.modelValue,k+1,e.allowHalf,e.readonly)));let d,l,u=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;const h=()=>{l=an(i);const R=s.value.map(an);d=[],R.forEach((k,b)=>{u=Math.min(k.top,u),f=Math.max(k.top,f),e.allowHalf?d.push({score:b+.5,left:k.left,top:k.top,height:k.height},{score:b+1,left:k.left+k.width/2,top:k.top,height:k.height}):d.push({score:b+1,left:k.left,top:k.top,height:k.height})})},g=(R,k)=>{for(let b=d.length-1;b>0;b--)if(k>=l.top&&k<=l.bottom){if(R>d[b].left&&k>=d[b].top&&k<=d[b].top+d[b].height)return d[b].score}else{const I=kd[b].left&&d[b].top===I)return d[b].score}return e.allowHalf?.5:1},m=R=>{a.value||R===e.modelValue||(t("update:modelValue",R),t("change",R))},p=R=>{r.value||(n.start(R),h())},y=R=>{if(!r.value&&(n.move(R),n.isHorizontal()&&!n.isTap.value)){const{clientX:k,clientY:b}=R.touches[0];vn(R),m(g(k,b))}},C=(R,k)=>{const{icon:b,size:I,color:D,count:K,gutter:F,voidIcon:M,disabled:N,voidColor:O,allowHalf:Z,iconPrefix:Q,disabledColor:we}=e,he=k+1,ae=R.status==="full",de=R.status==="void",xe=Z&&R.value>0&&R.value<1;let Se;F&&he!==+K&&(Se={paddingRight:ot(F)});const ne=se=>{h();let ie=Z?g(se.clientX,se.clientY):he;e.clearable&&n.isTap.value&&ie===e.modelValue&&(ie=0),m(ie)};return E("div",{key:k,ref:o(k),role:"radio",style:Se,class:Wo("item"),tabindex:N?void 0:0,"aria-setsize":K,"aria-posinset":he,"aria-checked":!de,onClick:ne},[E(It,{size:I,name:ae?b:M,class:Wo("icon",{disabled:N,full:ae}),color:N?we:ae?D:O,classPrefix:Q},null),xe&&E(It,{size:I,style:{width:R.value+"em"},name:de?M:b,class:Wo("icon",["half",{disabled:N,full:!de}]),color:N?we:de?O:D,classPrefix:Q},null)])};return vd(()=>e.modelValue),ts("touchmove",y,{target:i}),()=>E("div",{ref:i,role:"radiogroup",class:Wo({readonly:e.readonly,disabled:e.disabled}),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,"aria-readonly":e.readonly,onTouchstartPassive:p},[c.value.map(C)])}});const bv=Ge(yv),[wv,Vs,Sv]=He("search"),Ev=Ke({},Cr,{label:String,shape:Be("square"),leftIcon:Be("search"),clearable:qe,actionText:String,background:String,showAction:Boolean});var Cv=be({name:wv,props:Ev,emits:["blur","focus","clear","search","cancel","clickInput","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n,attrs:s}){const o=xo(),i=j(),a=()=>{n.action||(t("update:modelValue",""),t("cancel"))},r=b=>{b.keyCode===13&&(vn(b),t("search",e.modelValue))},c=()=>e.id||`${o}-input`,d=()=>{if(n.label||e.label)return E("label",{class:Vs("label"),for:c(),"data-allow-mismatch":"attribute"},[n.label?n.label():e.label])},l=()=>{if(e.showAction){const b=e.actionText||Sv("cancel");return E("div",{class:Vs("action"),role:"button",tabindex:0,onClick:a},[n.action?n.action():b])}},u=()=>{var b;return(b=i.value)==null?void 0:b.blur()},f=()=>{var b;return(b=i.value)==null?void 0:b.focus()},h=b=>t("blur",b),g=b=>t("focus",b),m=b=>t("clear",b),p=b=>t("clickInput",b),y=b=>t("clickLeftIcon",b),C=b=>t("clickRightIcon",b),R=Object.keys(Cr),k=()=>{const b=Ke({},s,Sn(e,R),{id:c()}),I=D=>t("update:modelValue",D);return E(xr,Tt({ref:i,type:"search",class:Vs("field",{"with-message":b.errorMessage}),border:!1,labelAlign:"left",onBlur:h,onFocus:g,onClear:m,onKeypress:r,onClickInput:p,onClickLeftIcon:y,onClickRightIcon:C,"onUpdate:modelValue":I},b),Sn(n,["left-icon","right-icon"]))};return Bt({focus:f,blur:u}),()=>{var b;return E("div",{class:Vs({"show-action":e.showAction}),style:{background:e.background}},[(b=n.left)==null?void 0:b.call(n),E("div",{class:Vs("content",e.shape)},[d(),k()]),l()])}}});const xv=Ge(Cv);/*! * pinia v2.3.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */let Yd;const Pi=e=>Yd=e,Qd=Symbol();function La(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var so;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(so||(so={}));function kv(){const e=Yc(!0),t=e.run(()=>j({}));let n=[],s=[];const o=or({install(i){Pi(o),o._a=i,i.provide(Qd,o),i.config.globalProperties.$pinia=o,s.forEach(a=>n.push(a)),s=[]},use(i){return this._a?n.push(i):s.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Zd=()=>{};function Hl(e,t,n,s=Zd){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),s())};return!n&&Za()&&Qc(o),o}function as(e,...t){e.slice().forEach(n=>{n(...t)})}const Tv=e=>e(),Wl=Symbol(),oa=Symbol();function Ma(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],o=e[n];La(o)&&La(s)&&e.hasOwnProperty(n)&&!Ye(s)&&!gn(s)?e[n]=Ma(o,s):e[n]=s}return e}const Av=Symbol();function Rv(e){return!La(e)||!e.hasOwnProperty(Av)}const{assign:On}=Object;function Iv(e){return!!(Ye(e)&&e.effect)}function Ov(e,t,n,s){const{state:o,actions:i,getters:a}=t,r=n.state.value[e];let c;function d(){r||(n.state.value[e]=o?o():{});const l=Th(n.state.value[e]);return On(l,i,Object.keys(a||{}).reduce((u,f)=>(u[f]=or(q(()=>{Pi(n);const h=n._s.get(e);return a[f].call(h,h)})),u),{}))}return c=ef(e,d,t,n,s,!0),c}function ef(e,t,n={},s,o,i){let a;const r=On({actions:{}},n),c={deep:!0};let d,l,u=[],f=[],h;const g=s.state.value[e];!i&&!g&&(s.state.value[e]={});let m;function p(K){let F;d=l=!1,typeof K=="function"?(K(s.state.value[e]),F={type:so.patchFunction,storeId:e,events:h}):(Ma(s.state.value[e],K),F={type:so.patchObject,payload:K,storeId:e,events:h});const M=m=Symbol();Xe().then(()=>{m===M&&(d=!0)}),l=!0,as(u,F,s.state.value[e])}const y=i?function(){const{state:F}=n,M=F?F():{};this.$patch(N=>{On(N,M)})}:Zd;function C(){a.stop(),u=[],f=[],s._s.delete(e)}const R=(K,F="")=>{if(Wl in K)return K[oa]=F,K;const M=function(){Pi(s);const N=Array.from(arguments),O=[],Z=[];function Q(ae){O.push(ae)}function we(ae){Z.push(ae)}as(f,{args:N,name:M[oa],store:b,after:Q,onError:we});let he;try{he=K.apply(this&&this.$id===e?this:b,N)}catch(ae){throw as(Z,ae),ae}return he instanceof Promise?he.then(ae=>(as(O,ae),ae)).catch(ae=>(as(Z,ae),Promise.reject(ae))):(as(O,he),he)};return M[Wl]=!0,M[oa]=F,M},k={_p:s,$id:e,$onAction:Hl.bind(null,f),$patch:p,$reset:y,$subscribe(K,F={}){const M=Hl(u,K,F.detached,()=>N()),N=a.run(()=>ke(()=>s.state.value[e],O=>{(F.flush==="sync"?l:d)&&K({storeId:e,type:so.direct,events:h},O)},On({},c,F)));return M},$dispose:C},b=pt(k);s._s.set(e,b);const D=(s._a&&s._a.runWithContext||Tv)(()=>s._e.run(()=>(a=Yc()).run(()=>t({action:R}))));for(const K in D){const F=D[K];if(Ye(F)&&!Iv(F)||gn(F))i||(g&&Rv(F)&&(Ye(F)?F.value=g[K]:Ma(F,g[K])),s.state.value[e][K]=F);else if(typeof F=="function"){const M=R(F,K);D[K]=M,r.actions[K]=F}}return On(b,D),On(Pe(b),D),Object.defineProperty(b,"$state",{get:()=>s.state.value[e],set:K=>{p(F=>{On(F,K)})}}),s._p.forEach(K=>{On(b,a.run(()=>K({store:b,app:s._a,pinia:s,options:r})))}),g&&i&&n.hydrate&&n.hydrate(b.$state,g),d=!0,l=!0,b}/*! #__NO_SIDE_EFFECTS__ */function Tr(e,t,n){let s,o;const i=typeof t=="function";typeof e=="string"?(s=e,o=i?n:t):(o=e,s=e.id);function a(r,c){const d=Nh();return r=r||(d?ht(Qd,null):null),r&&Pi(r),r=Yd,r._s.has(s)||(i?ef(s,t,o,r):Ov(s,o,r)),r._s.get(s)}return a.$id=s,a}const tf="it_desk_h5_theme";function Kl(e){document.documentElement.setAttribute("data-theme",e),localStorage.setItem(tf,e)}function $v(){const e=localStorage.getItem(tf);return e==="dark"||e==="light"?e:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const nf=Tr("theme",()=>{const e=j("light");function t(){const s=e.value==="light"?"dark":"light";e.value=s,Kl(s)}function n(){const s=$v();e.value=s,Kl(s)}return{currentTheme:e,toggleTheme:t,initTheme:n}}),Pv={class:"app-loading"},Dv={key:1,class:"app-loading"},Bv=be({__name:"App",setup(e){const t=nf(),n=j(!1);return nt(()=>{t.initTheme(),n.value=!0}),(s,o)=>{const i=Co,a=ep("router-view"),r=ov;return T(),Rt(r,{theme:Re(t).currentTheme},{default:Je(()=>[n.value?(T(),Rt(a,{key:0},{default:Je(({Component:c})=>[(T(),Rt(Ap,null,{fallback:Je(()=>[_("div",Pv,[E(i,{type:"spinner",color:"#1989fa",size:"36"}),o[0]||(o[0]=_("div",{class:"app-loading__text"},"正在加载...",-1))])]),default:Je(()=>[(T(),Rt(tp(c)))]),_:2},1024))]),_:1})):(T(),A("div",Dv,[E(i,{type:"spinner",color:"#1989fa",size:"36"}),o[1]||(o[1]=_("div",{class:"app-loading__text"},"正在加载...",-1))]))]),_:1},8,["theme"])}}}),Nv="modulepreload",Lv=function(e){return"/h5/v20260806/"+e},Gl={},Hn=function(t,n,s){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),r=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(n.map(c=>{if(c=Lv(c),c in Gl)return;Gl[c]=!0;const d=c.endsWith(".css"),l=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${l}`))return;const u=document.createElement("link");if(u.rel=d?"stylesheet":Nv,d||(u.as="script"),u.crossOrigin="",u.href=c,r&&u.setAttribute("nonce",r),document.head.appendChild(u),d)return new Promise((f,h)=>{u.addEventListener("load",f),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(a){const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=a,window.dispatchEvent(r),!r.defaultPrevented)throw a}return o.then(a=>{for(const r of a||[])r.status==="rejected"&&i(r.reason);return t().catch(i)})};/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */const us=typeof document<"u";function sf(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Mv(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&sf(e.default)}const Le=Object.assign;function ia(e,t){const n={};for(const s in t){const o=t[s];n[s]=Qt(o)?o.map(e):e(o)}return n}const oo=()=>{},Qt=Array.isArray;function Jl(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const of=/#/g,Fv=/&/g,Vv=/\//g,jv=/=/g,qv=/\?/g,af=/\+/g,Uv=/%5B/g,zv=/%5D/g,rf=/%5E/g,Hv=/%60/g,lf=/%7B/g,Wv=/%7C/g,cf=/%7D/g,Kv=/%20/g;function Ar(e){return e==null?"":encodeURI(""+e).replace(Wv,"|").replace(Uv,"[").replace(zv,"]")}function Gv(e){return Ar(e).replace(lf,"{").replace(cf,"}").replace(rf,"^")}function Fa(e){return Ar(e).replace(af,"%2B").replace(Kv,"+").replace(of,"%23").replace(Fv,"%26").replace(Hv,"`").replace(lf,"{").replace(cf,"}").replace(rf,"^")}function Jv(e){return Fa(e).replace(jv,"%3D")}function Xv(e){return Ar(e).replace(of,"%23").replace(qv,"%3F")}function Yv(e){return Xv(e).replace(Vv,"%2F")}function _o(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Qv=/\/$/,Zv=e=>e.replace(Qv,"");function aa(e,t,n="/"){let s,o={},i="",a="";const r=t.indexOf("#");let c=t.indexOf("?");return c=r>=0&&c>r?-1:c,c>=0&&(s=t.slice(0,c),i=t.slice(c,r>0?r:t.length),o=e(i.slice(1))),r>=0&&(s=s||t.slice(0,r),a=t.slice(r,t.length)),s=sy(s??t,n),{fullPath:s+i+a,path:s,query:o,hash:_o(a)}}function ey(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Xl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ty(e,t,n){const s=t.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&Es(t.matched[s],n.matched[o])&&uf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Es(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function uf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!ny(e[n],t[n]))return!1;return!0}function ny(e,t){return Qt(e)?Yl(e,t):Qt(t)?Yl(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Yl(e,t){return Qt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function sy(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),o=s[s.length-1];(o===".."||o===".")&&s.push("");let i=n.length-1,a,r;for(a=0;a1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(a).join("/")}const Tn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Va=function(e){return e.pop="pop",e.push="push",e}({}),ra=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function oy(e){if(!e)if(us){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Zv(e)}const iy=/^[^#]+#/;function ay(e,t){return e.replace(iy,"#")+t}function ry(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Di=()=>({left:window.scrollX,top:window.scrollY});function ly(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=ry(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Ql(e,t){return(history.state?history.state.position-t:-1)+e}const ja=new Map;function cy(e,t){ja.set(e,t)}function uy(e){const t=ja.get(e);return ja.delete(e),t}function dy(e){return typeof e=="string"||e&&typeof e=="object"}function df(e){return typeof e=="string"||typeof e=="symbol"}let et=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}({});const ff=Symbol("");et.MATCHER_NOT_FOUND+"",et.NAVIGATION_GUARD_REDIRECT+"",et.NAVIGATION_ABORTED+"",et.NAVIGATION_CANCELLED+"",et.NAVIGATION_DUPLICATED+"";function Cs(e,t){return Le(new Error,{type:e,[ff]:!0},t)}function fn(e,t){return e instanceof Error&&ff in e&&(t==null||!!(e.type&t))}const fy=["params","query","hash"];function hy(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of fy)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function py(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Fa(o)):[s&&Fa(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function my(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Qt(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const _y=Symbol(""),ec=Symbol(""),Bi=Symbol(""),Rr=Symbol(""),qa=Symbol("");function js(){let e=[];function t(s){return e.push(s),()=>{const o=e.indexOf(s);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Pn(e,t,n,s,o,i=a=>a()){const a=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((r,c)=>{const d=f=>{f===!1?c(Cs(et.NAVIGATION_ABORTED,{from:n,to:t})):f instanceof Error?c(f):dy(f)?c(Cs(et.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(a&&s.enterCallbacks[o]===a&&typeof f=="function"&&a.push(f),r())},l=i(()=>e.call(s&&s.instances[o],t,n,d));let u=Promise.resolve(l);e.length<3&&(u=u.then(d)),u.catch(f=>c(f))})}function la(e,t,n,s,o=i=>i()){const i=[];for(const a of e)for(const r in a.components){let c=a.components[r];if(!(t!=="beforeRouteEnter"&&!a.instances[r]))if(sf(c)){const d=(c.__vccOpts||c)[t];d&&i.push(Pn(d,n,s,a,r,o))}else{let d=c();i.push(()=>d.then(l=>{if(!l)throw new Error(`Couldn't resolve component "${r}" at "${a.path}"`);const u=Mv(l)?l.default:l;a.mods[r]=l,a.components[r]=u;const f=(u.__vccOpts||u)[t];return f&&Pn(f,n,s,a,r,o)()}))}}return i}function gy(e,t){const n=[],s=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;aEs(d,r))?s.push(r):n.push(r));const c=e.matched[a];c&&(t.matched.find(d=>Es(d,c))||o.push(c))}return[n,s,o]}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */let vy=()=>location.protocol+"//"+location.host;function hf(e,t){const{pathname:n,search:s,hash:o}=t,i=e.indexOf("#");if(i>-1){let a=o.includes(e.slice(i))?e.slice(i).length:1,r=o.slice(a);return r[0]!=="/"&&(r="/"+r),Xl(r,"")}return Xl(n,e)+s+o}function yy(e,t,n,s){let o=[],i=[],a=null;const r=({state:f})=>{const h=hf(e,location),g=n.value,m=t.value;let p=0;if(f){if(n.value=h,t.value=f,a&&a===g){a=null;return}p=m?f.position-m.position:0}else s(h);o.forEach(y=>{y(n.value,g,{delta:p,type:Va.pop,direction:p?p>0?ra.forward:ra.back:ra.unknown})})};function c(){a=n.value}function d(f){o.push(f);const h=()=>{const g=o.indexOf(f);g>-1&&o.splice(g,1)};return i.push(h),h}function l(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Le({},f.state,{scroll:Di()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",r),window.removeEventListener("pagehide",l),document.removeEventListener("visibilitychange",l)}return window.addEventListener("popstate",r),window.addEventListener("pagehide",l),document.addEventListener("visibilitychange",l),{pauseListeners:c,listen:d,destroy:u}}function tc(e,t,n,s=!1,o=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:o?Di():null}}function by(e){const{history:t,location:n}=window,s={value:hf(e,n)},o={value:t.state};o.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,d,l){const u=e.indexOf("#"),f=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+c:vy()+e+c;try{t[l?"replaceState":"pushState"](d,"",f),o.value=d}catch(h){console.error(h),n[l?"replace":"assign"](f)}}function a(c,d){i(c,Le({},t.state,tc(o.value.back,c,o.value.forward,!0),d,{position:o.value.position}),!0),s.value=c}function r(c,d){const l=Le({},o.value,t.state,{forward:c,scroll:Di()});i(l.current,l,!0),i(c,Le({},tc(s.value,c,null),{position:l.position+1},d),!1),s.value=c}return{location:s,state:o,push:r,replace:a}}function wy(e){e=oy(e);const t=by(e),n=yy(e,t.state,t.location,t.replace);function s(i,a=!0){a||n.pauseListeners(),history.go(i)}const o=Le({location:"",base:e,go:s,createHref:ay.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let Wn=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var at=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}(at||{});const Sy={type:Wn.Static,value:""},Ey=/[a-zA-Z0-9_]/;function Cy(e){if(!e)return[[]];if(e==="/")return[[Sy]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${d}": ${h}`)}let n=at.Static,s=n;const o=[];let i;function a(){i&&o.push(i),i=[]}let r=0,c,d="",l="";function u(){d&&(n===at.Static?i.push({type:Wn.Static,value:d}):n===at.Param||n===at.ParamRegExp||n===at.ParamRegExpEnd?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Wn.Param,value:d,regexp:l,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=c}for(;rt.length?t.length===1&&t[0]===St.Static+St.Segment?1:-1:0}function pf(e,t){let n=0;const s=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const Ry={strict:!1,end:!0,sensitive:!1};function Iy(e,t,n){const s=Ty(Cy(e.path),n),o=Le(s,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Oy(e,t){const n=[],s=new Map;t=Jl(Ry,t);function o(u){return s.get(u)}function i(u,f,h){const g=!h,m=ic(u);m.aliasOf=h&&h.record;const p=Jl(t,u),y=[m];if("alias"in u){const k=typeof u.alias=="string"?[u.alias]:u.alias;for(const b of k)y.push(ic(Le({},m,{components:h?h.record.components:m.components,path:b,aliasOf:h?h.record:m})))}let C,R;for(const k of y){const{path:b}=k;if(f&&b[0]!=="/"){const I=f.record.path,D=I[I.length-1]==="/"?"":"/";k.path=f.record.path+(b&&D+b)}if(C=Iy(k,f,p),h?h.alias.push(C):(R=R||C,R!==C&&R.alias.push(C),g&&u.name&&!ac(C)&&a(u.name)),mf(C)&&c(C),m.children){const I=m.children;for(let D=0;D{a(R)}:oo}function a(u){if(df(u)){const f=s.get(u);f&&(s.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&s.delete(u.record.name),u.children.forEach(a),u.alias.forEach(a))}}function r(){return n}function c(u){const f=Dy(u,n);n.splice(f,0,u),u.record.name&&!ac(u)&&s.set(u.record.name,u)}function d(u,f){let h,g={},m,p;if("name"in u&&u.name){if(h=s.get(u.name),!h)throw Cs(et.MATCHER_NOT_FOUND,{location:u});p=h.record.name,g=Le(oc(f.params,h.keys.filter(R=>!R.optional).concat(h.parent?h.parent.keys.filter(R=>R.optional):[]).map(R=>R.name)),u.params&&oc(u.params,h.keys.map(R=>R.name))),m=h.stringify(g)}else if(u.path!=null)m=u.path,h=n.find(R=>R.re.test(m)),h&&(g=h.parse(m),p=h.record.name);else{if(h=f.name?s.get(f.name):n.find(R=>R.re.test(f.path)),!h)throw Cs(et.MATCHER_NOT_FOUND,{location:u,currentLocation:f});p=h.record.name,g=Le({},f.params,u.params),m=h.stringify(g)}const y=[];let C=h;for(;C;)y.unshift(C.record),C=C.parent;return{name:p,path:m,params:g,matched:y,meta:Py(y)}}e.forEach(u=>i(u));function l(){n.length=0,s.clear()}return{addRoute:i,resolve:d,removeRoute:a,clearRoutes:l,getRoutes:r,getRecordMatcher:o}}function oc(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function ic(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:$y(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 $y(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function ac(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Py(e){return e.reduce((t,n)=>Le(t,n.meta),{})}function Dy(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;pf(e,t[i])<0?s=i:n=i+1}const o=By(e);return o&&(s=t.lastIndexOf(o,s-1)),s}function By(e){let t=e;for(;t=t.parent;)if(mf(t)&&pf(e,t)===0)return t}function mf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function rc(e){const t=ht(Bi),n=ht(Rr),s=q(()=>{const c=Re(e.to);return t.resolve(c)}),o=q(()=>{const{matched:c}=s.value,{length:d}=c,l=c[d-1],u=n.matched;if(!l||!u.length)return-1;const f=u.findIndex(Es.bind(null,l));if(f>-1)return f;const h=lc(c[d-2]);return d>1&&lc(l)===h&&u[u.length-1].path!==h?u.findIndex(Es.bind(null,c[d-2])):f}),i=q(()=>o.value>-1&&Vy(n.params,s.value.params)),a=q(()=>o.value>-1&&o.value===n.matched.length-1&&uf(n.params,s.value.params));function r(c={}){if(Fy(c)){const d=t[Re(e.replace)?"replace":"push"](Re(e.to)).catch(oo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:s,href:q(()=>s.value.href),isActive:i,isExactActive:a,navigate:r}}function Ny(e){return e.length===1?e[0]:e}const Ly=be({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:rc,setup(e,{slots:t}){const n=pt(rc(e)),{options:s}=ht(Bi),o=q(()=>({[cc(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[cc(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&Ny(t.default(n));return e.custom?i:pr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),My=Ly;function Fy(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Vy(e,t){for(const n in t){const s=t[n],o=e[n];if(typeof s=="string"){if(s!==o)return!1}else if(!Qt(o)||o.length!==s.length||s.some((i,a)=>i.valueOf()!==o[a].valueOf()))return!1}return!0}function lc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const cc=(e,t,n)=>e??t??n,jy=be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=ht(qa),o=q(()=>e.route||s.value),i=ht(ec,0),a=q(()=>{let d=Re(i);const{matched:l}=o.value;let u;for(;(u=l[d])&&!u.components;)d++;return d}),r=q(()=>o.value.matched[a.value]);cn(ec,q(()=>a.value+1)),cn(_y,r),cn(qa,o);const c=j();return ke(()=>[c.value,r.value,e.name],([d,l,u],[f,h,g])=>{l&&(l.instances[u]=d,h&&h!==l&&d&&d===f&&(l.leaveGuards.size||(l.leaveGuards=h.leaveGuards),l.updateGuards.size||(l.updateGuards=h.updateGuards))),d&&l&&(!h||!Es(l,h)||!f)&&(l.enterCallbacks[u]||[]).forEach(m=>m(d))},{flush:"post"}),()=>{const d=o.value,l=e.name,u=r.value,f=u&&u.components[l];if(!f)return uc(n.default,{Component:f,route:d});const h=u.props[l],g=h?h===!0?d.params:typeof h=="function"?h(d):h:null,p=pr(f,Le({},g,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(u.instances[l]=null)},ref:c}));return uc(n.default,{Component:p,route:d})||p}}});function uc(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const qy=jy;function Uy(e){const t=Oy(e.routes,e),n=e.parseQuery||py,s=e.stringifyQuery||Zl,o=e.history,i=js(),a=js(),r=js(),c=Bn(Tn);let d=Tn;us&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const l=ia.bind(null,S=>""+S),u=ia.bind(null,Yv),f=ia.bind(null,_o);function h(S,L){let z,X;return df(S)?(z=t.getRecordMatcher(S),X=L):X=S,t.addRoute(X,z)}function g(S){const L=t.getRecordMatcher(S);L&&t.removeRoute(L)}function m(){return t.getRoutes().map(S=>S.record)}function p(S){return!!t.getRecordMatcher(S)}function y(S,L){if(L=Le({},L||c.value),typeof S=="string"){const x=aa(n,S,L.path),B=t.resolve({path:x.path},L),W=o.createHref(x.fullPath);return Le(x,B,{params:f(B.params),hash:_o(x.hash),redirectedFrom:void 0,href:W})}let z;if(S.path!=null)z=Le({},S,{path:aa(n,S.path,L.path).path});else{const x=Le({},S.params);for(const B in x)x[B]==null&&delete x[B];z=Le({},S,{params:u(x)}),L.params=u(L.params)}const X=t.resolve(z,L),U=S.hash||"";X.params=l(f(X.params));const v=ey(s,Le({},S,{hash:Gv(U),path:X.path})),w=o.createHref(v);return Le({fullPath:v,hash:U,query:s===Zl?my(S.query):S.query||{}},X,{redirectedFrom:void 0,href:w})}function C(S){return typeof S=="string"?aa(n,S,c.value.path):Le({},S)}function R(S,L){if(d!==S)return Cs(et.NAVIGATION_CANCELLED,{from:L,to:S})}function k(S){return D(S)}function b(S){return k(Le(C(S),{replace:!0}))}function I(S,L){const z=S.matched[S.matched.length-1];if(z&&z.redirect){const{redirect:X}=z;let U=typeof X=="function"?X(S,L):X;return typeof U=="string"&&(U=U.includes("?")||U.includes("#")?U=C(U):{path:U},U.params={}),Le({query:S.query,hash:S.hash,params:U.path!=null?{}:S.params},U)}}function D(S,L){const z=d=y(S),X=c.value,U=S.state,v=S.force,w=S.replace===!0,x=I(z,X);if(x)return D(Le(C(x),{state:typeof x=="object"?Le({},U,x.state):U,force:v,replace:w}),L||z);const B=z;B.redirectedFrom=L;let W;return!v&&ty(s,X,z)&&(W=Cs(et.NAVIGATION_DUPLICATED,{to:B,from:X}),ne(X,X,!0,!1)),(W?Promise.resolve(W):M(B,X)).catch(H=>fn(H)?fn(H,et.NAVIGATION_GUARD_REDIRECT)?H:Se(H):de(H,B,X)).then(H=>{if(H){if(fn(H,et.NAVIGATION_GUARD_REDIRECT))return D(Le({replace:w},C(H.to),{state:typeof H.to=="object"?Le({},U,H.to.state):U,force:v}),L||B)}else H=O(B,X,!0,w,U);return N(B,X,H),H})}function K(S,L){const z=R(S,L);return z?Promise.reject(z):Promise.resolve()}function F(S){const L=Te.values().next().value;return L&&typeof L.runWithContext=="function"?L.runWithContext(S):S()}function M(S,L){let z;const[X,U,v]=gy(S,L);z=la(X.reverse(),"beforeRouteLeave",S,L);for(const x of X)x.leaveGuards.forEach(B=>{z.push(Pn(B,S,L))});const w=K.bind(null,S,L);return z.push(w),ce(z).then(()=>{z=[];for(const x of i.list())z.push(Pn(x,S,L));return z.push(w),ce(z)}).then(()=>{z=la(U,"beforeRouteUpdate",S,L);for(const x of U)x.updateGuards.forEach(B=>{z.push(Pn(B,S,L))});return z.push(w),ce(z)}).then(()=>{z=[];for(const x of v)if(x.beforeEnter)if(Qt(x.beforeEnter))for(const B of x.beforeEnter)z.push(Pn(B,S,L));else z.push(Pn(x.beforeEnter,S,L));return z.push(w),ce(z)}).then(()=>(S.matched.forEach(x=>x.enterCallbacks={}),z=la(v,"beforeRouteEnter",S,L,F),z.push(w),ce(z))).then(()=>{z=[];for(const x of a.list())z.push(Pn(x,S,L));return z.push(w),ce(z)}).catch(x=>fn(x,et.NAVIGATION_CANCELLED)?x:Promise.reject(x))}function N(S,L,z){r.list().forEach(X=>F(()=>X(S,L,z)))}function O(S,L,z,X,U){const v=R(S,L);if(v)return v;const w=L===Tn,x=us?history.state:{};z&&(X||w?o.replace(S.fullPath,Le({scroll:w&&x&&x.scroll},U)):o.push(S.fullPath,U)),c.value=S,ne(S,L,z,w),Se()}let Z;function Q(){Z||(Z=o.listen((S,L,z)=>{if(!Y.listening)return;const X=y(S),U=I(X,Y.currentRoute.value);if(U){D(Le(U,{replace:!0,force:!0}),X).catch(oo);return}d=X;const v=c.value;us&&cy(Ql(v.fullPath,z.delta),Di()),M(X,v).catch(w=>fn(w,et.NAVIGATION_ABORTED|et.NAVIGATION_CANCELLED)?w:fn(w,et.NAVIGATION_GUARD_REDIRECT)?(D(Le(C(w.to),{force:!0}),X).then(x=>{fn(x,et.NAVIGATION_ABORTED|et.NAVIGATION_DUPLICATED)&&!z.delta&&z.type===Va.pop&&o.go(-1,!1)}).catch(oo),Promise.reject()):(z.delta&&o.go(-z.delta,!1),de(w,X,v))).then(w=>{w=w||O(X,v,!1),w&&(z.delta&&!fn(w,et.NAVIGATION_CANCELLED)?o.go(-z.delta,!1):z.type===Va.pop&&fn(w,et.NAVIGATION_ABORTED|et.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),N(X,v,w)}).catch(oo)}))}let we=js(),he=js(),ae;function de(S,L,z){Se(S);const X=he.list();return X.length?X.forEach(U=>U(S,L,z)):console.error(S),Promise.reject(S)}function xe(){return ae&&c.value!==Tn?Promise.resolve():new Promise((S,L)=>{we.add([S,L])})}function Se(S){return ae||(ae=!S,Q(),we.list().forEach(([L,z])=>S?z(S):L()),we.reset()),S}function ne(S,L,z,X){const{scrollBehavior:U}=e;if(!us||!U)return Promise.resolve();const v=!z&&uy(Ql(S.fullPath,0))||(X||!z)&&history.state&&history.state.scroll||null;return Xe().then(()=>U(S,L,v)).then(w=>w&&ly(w)).catch(w=>de(w,S,L))}const se=S=>o.go(S);let ie;const Te=new Set,Y={currentRoute:c,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:p,getRoutes:m,resolve:y,options:e,push:k,replace:b,go:se,back:()=>se(-1),forward:()=>se(1),beforeEach:i.add,beforeResolve:a.add,afterEach:r.add,onError:he.add,isReady:xe,install(S){S.component("RouterLink",My),S.component("RouterView",qy),S.config.globalProperties.$router=Y,Object.defineProperty(S.config.globalProperties,"$route",{enumerable:!0,get:()=>Re(c)}),us&&!ie&&c.value===Tn&&(ie=!0,k(o.location).catch(X=>{}));const L={};for(const X in Tn)Object.defineProperty(L,X,{get:()=>c.value[X],enumerable:!0});S.provide(Bi,Y),S.provide(Rr,mu(L)),S.provide(qa,c);const z=S.unmount;Te.add(S),S.unmount=function(){Te.delete(S),Te.size<1&&(d=Tn,Z&&Z(),Z=null,c.value=Tn,ie=!1,ae=!1),z()}}};function ce(S){return S.reduce((L,z)=>L.then(()=>F(z)),Promise.resolve())}return Y}function _f(){return ht(Bi)}function gf(e){return ht(Rr)}function vf(e,t){return function(){return e.apply(t,arguments)}}const{toString:zy}=Object.prototype,{getPrototypeOf:Ni}=Object,{iterator:Li,toStringTag:yf}=Symbol,Mi=(e=>t=>{const n=zy.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zt=e=>(e=e.toLowerCase(),t=>Mi(t)===e),Fi=e=>t=>typeof t===e,{isArray:$s}=Array,xs=Fi("undefined");function ko(e){return e!==null&&!xs(e)&&e.constructor!==null&&!xs(e.constructor)&&Ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const bf=Zt("ArrayBuffer");function Hy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&bf(e.buffer),t}const Wy=Fi("string"),Ot=Fi("function"),wf=Fi("number"),To=e=>e!==null&&typeof e=="object",Ky=e=>e===!0||e===!1,Zo=e=>{if(Mi(e)!=="object")return!1;const t=Ni(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(yf in e)&&!(Li in e)},Gy=e=>{if(!To(e)||ko(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Jy=Zt("Date"),Xy=Zt("File"),Yy=e=>!!(e&&typeof e.uri<"u"),Qy=e=>e&&typeof e.getParts<"u",Zy=Zt("Blob"),eb=Zt("FileList"),tb=e=>To(e)&&Ot(e.pipe);function nb(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const dc=nb(),fc=typeof dc.FormData<"u"?dc.FormData:void 0,sb=e=>{if(!e)return!1;if(fc&&e instanceof fc)return!0;const t=Ni(e);if(!t||t===Object.prototype||!Ot(e.append))return!1;const n=Mi(e);return n==="formdata"||n==="object"&&Ot(e.toString)&&e.toString()==="[object FormData]"},ob=Zt("URLSearchParams"),[ib,ab,rb,lb]=["ReadableStream","Request","Response","Headers"].map(Zt),cb=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ao(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),$s(e))for(s=0,o=e.length;s0;)if(o=n[s],t===o.toLowerCase())return o;return null}const Kn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ef=e=>!xs(e)&&e!==Kn;function Ua(...e){const{caseless:t,skipUndefined:n}=Ef(this)&&this||{},s={},o=(i,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const r=t&&Sf(s,a)||a,c=za(s,r)?s[r]:void 0;Zo(c)&&Zo(i)?s[r]=Ua(c,i):Zo(i)?s[r]=Ua({},i):$s(i)?s[r]=i.slice():(!n||!xs(i))&&(s[r]=i)};for(let i=0,a=e.length;i(Ao(t,(o,i)=>{n&&Ot(o)?Object.defineProperty(e,i,{__proto__:null,value:vf(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),e),db=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fb=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),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)},hb=(e,t,n,s)=>{let o,i,a;const r={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!s||s(a,e,t))&&!r[a]&&(t[a]=e[a],r[a]=!0);e=n!==!1&&Ni(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},pb=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},mb=e=>{if(!e)return null;if($s(e))return e;let t=e.length;if(!wf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_b=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ni(Uint8Array)),gb=(e,t)=>{const s=(e&&e[Li]).call(e);let o;for(;(o=s.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},vb=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},yb=Zt("HTMLFormElement"),bb=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),za=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),wb=Zt("RegExp"),Cf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Ao(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(s[i]=a||o)}),Object.defineProperties(e,s)},Sb=e=>{Cf(e,(t,n)=>{if(Ot(e)&&["arguments","caller","callee"].includes(n))return!1;const s=e[n];if(Ot(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Eb=(e,t)=>{const n={},s=o=>{o.forEach(i=>{n[i]=!0})};return $s(e)?s(e):s(String(e).split(t)),n},Cb=()=>{},xb=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function kb(e){return!!(e&&Ot(e.append)&&e[yf]==="FormData"&&e[Li])}const Tb=e=>{const t=new WeakSet,n=s=>{if(To(s)){if(t.has(s))return;if(ko(s))return s;if(!("toJSON"in s)){t.add(s);const o=$s(s)?[]:{};return Ao(s,(i,a)=>{const r=n(i);!xs(r)&&(o[a]=r)}),t.delete(s),o}}return s};return n(e)},Ab=Zt("AsyncFunction"),Rb=e=>e&&(To(e)||Ot(e))&&Ot(e.then)&&Ot(e.catch),xf=((e,t)=>e?setImmediate:t?((n,s)=>(Kn.addEventListener("message",({source:o,data:i})=>{o===Kn&&i===n&&s.length&&s.shift()()},!1),o=>{s.push(o),Kn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ot(Kn.postMessage)),Ib=typeof queueMicrotask<"u"?queueMicrotask.bind(Kn):typeof process<"u"&&process.nextTick||xf,Ob=e=>e!=null&&Ot(e[Li]),P={isArray:$s,isArrayBuffer:bf,isBuffer:ko,isFormData:sb,isArrayBufferView:Hy,isString:Wy,isNumber:wf,isBoolean:Ky,isObject:To,isPlainObject:Zo,isEmptyObject:Gy,isReadableStream:ib,isRequest:ab,isResponse:rb,isHeaders:lb,isUndefined:xs,isDate:Jy,isFile:Xy,isReactNativeBlob:Yy,isReactNative:Qy,isBlob:Zy,isRegExp:wb,isFunction:Ot,isStream:tb,isURLSearchParams:ob,isTypedArray:_b,isFileList:eb,forEach:Ao,merge:Ua,extend:ub,trim:cb,stripBOM:db,inherits:fb,toFlatObject:hb,kindOf:Mi,kindOfTest:Zt,endsWith:pb,toArray:mb,forEachEntry:gb,matchAll:vb,isHTMLForm:yb,hasOwnProperty:za,hasOwnProp:za,reduceDescriptors:Cf,freezeMethods:Sb,toObjectSet:Eb,toCamelCase:bb,noop:Cb,toFiniteNumber:xb,findKey:Sf,global:Kn,isContextDefined:Ef,isSpecCompliantForm:kb,toJSONObject:Tb,isAsyncFn:Ab,isThenable:Rb,setImmediate:xf,asap:Ib,isIterable:Ob},$b=P.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"]),Pb=e=>{const t={};let n,s,o;return e&&e.split(` `).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),s=a.substring(o+1).trim(),!(!n||t[n]&&$b[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t};function Db(e){let t=0,n=e.length;for(;tt;){const s=e.charCodeAt(n-1);if(s!==9&&s!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const Bb=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Nb=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ir(e,t){return P.isArray(e)?e.map(n=>Ir(n,t)):Db(String(e).replace(t,""))}const Lb=e=>Ir(e,Bb),Mb=e=>Ir(e,Nb);function kf(e){const t=Object.create(null);return P.forEach(e.toJSON(),(n,s)=>{t[s]=Mb(n)}),t}const hc=Symbol("internals");function qs(e){return e&&String(e).trim().toLowerCase()}function ei(e){return e===!1||e==null?e:P.isArray(e)?e.map(ei):Lb(String(e))}function Fb(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Vb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ca(e,t,n,s,o){if(P.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!P.isString(t)){if(P.isString(s))return t.indexOf(s)!==-1;if(P.isRegExp(s))return s.test(t)}}function jb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function qb(e,t){const n=P.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{__proto__:null,value:function(o,i,a){return this[s].call(this,t,o,i,a)},configurable:!0})})}let kt=class{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function i(r,c,d){const l=qs(c);if(!l)throw new Error("header name must be a non-empty string");const u=P.findKey(o,l);(!u||o[u]===void 0||d===!0||d===void 0&&o[u]!==!1)&&(o[u||c]=ei(r))}const a=(r,c)=>P.forEach(r,(d,l)=>i(d,l,c));if(P.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(P.isString(t)&&(t=t.trim())&&!Vb(t))a(Pb(t),n);else if(P.isObject(t)&&P.isIterable(t)){let r={},c,d;for(const l of t){if(!P.isArray(l))throw TypeError("Object iterator must return a key-value pair");r[d=l[0]]=(c=r[d])?P.isArray(c)?[...c,l[1]]:[c,l[1]]:l[1]}a(r,n)}else t!=null&&i(n,t,s);return this}get(t,n){if(t=qs(t),t){const s=P.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return Fb(o);if(P.isFunction(n))return n.call(this,o,s);if(P.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=qs(t),t){const s=P.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||ca(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function i(a){if(a=qs(a),a){const r=P.findKey(s,a);r&&(!n||ca(s,s[r],r,n))&&(delete s[r],o=!0)}}return P.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const i=n[s];(!t||ca(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,s={};return P.forEach(this,(o,i)=>{const a=P.findKey(s,i);if(a){n[a]=ei(o),delete n[i];return}const r=t?jb(i):String(i).trim();r!==i&&delete n[i],n[r]=ei(o),s[r]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return P.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&P.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(o=>s.set(o)),s}static accessor(t){const s=(this[hc]=this[hc]={accessors:{}}).accessors,o=this.prototype;function i(a){const r=qs(a);s[r]||(qb(o,a),s[r]=!0)}return P.isArray(t)?t.forEach(i):i(t),this}};kt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(kt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});P.freezeMethods(kt);const Ub="[REDACTED ****]";function zb(e){if(P.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(P.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Hb(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),s=[],o=i=>{if(i===null||typeof i!="object"||P.isBuffer(i))return i;if(s.indexOf(i)!==-1)return;i instanceof kt&&(i=i.toJSON()),s.push(i);let a;if(P.isArray(i))a=[],i.forEach((r,c)=>{const d=o(r);P.isUndefined(d)||(a[c]=d)});else{if(!P.isPlainObject(i)&&zb(i))return s.pop(),i;a=Object.create(null);for(const[r,c]of Object.entries(i)){const d=n.has(r.toLowerCase())?Ub:o(c);P.isUndefined(d)||(a[r]=d)}}return s.pop(),a};return o(e)}let fe=class Tf extends Error{static from(t,n,s,o,i,a){const r=new Tf(t.message,n||t.code,s,o,i);return r.cause=t,r.name=t.name,t.status!=null&&r.status==null&&(r.status=t.status),a&&Object.assign(r,a),r}constructor(t,n,s,o,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),s&&(this.config=s),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&P.hasOwnProp(t,"redact")?t.redact:void 0,s=P.isArray(n)&&n.length>0?Hb(t,n):P.toJSONObject(t);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:s,code:this.code,status:this.status}}};fe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";fe.ERR_BAD_OPTION="ERR_BAD_OPTION";fe.ECONNABORTED="ECONNABORTED";fe.ETIMEDOUT="ETIMEDOUT";fe.ECONNREFUSED="ECONNREFUSED";fe.ERR_NETWORK="ERR_NETWORK";fe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";fe.ERR_DEPRECATED="ERR_DEPRECATED";fe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";fe.ERR_BAD_REQUEST="ERR_BAD_REQUEST";fe.ERR_CANCELED="ERR_CANCELED";fe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";fe.ERR_INVALID_URL="ERR_INVALID_URL";fe.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Wb=null;function Ha(e){return P.isPlainObject(e)||P.isArray(e)}function Af(e){return P.endsWith(e,"[]")?e.slice(0,-2):e}function ua(e,t,n){return e?e.concat(t).map(function(o,i){return o=Af(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Kb(e){return P.isArray(e)&&!e.some(Ha)}const Gb=P.toFlatObject(P,{},null,function(t){return/^is[A-Z]/.test(t)});function Vi(e,t,n){if(!P.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=P.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!P.isUndefined(y[p])});const s=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,r=n.Blob||typeof Blob<"u"&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,d=r&&P.isSpecCompliantForm(t);if(!P.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(P.isDate(m))return m.toISOString();if(P.isBoolean(m))return m.toString();if(!d&&P.isBlob(m))throw new fe("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(m)||P.isTypedArray(m)?d&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,p,y){let C=m;if(P.isReactNative(t)&&P.isReactNativeBlob(m))return t.append(ua(y,p,i),l(m)),!1;if(m&&!y&&typeof m=="object"){if(P.endsWith(p,"{}"))p=s?p:p.slice(0,-2),m=JSON.stringify(m);else if(P.isArray(m)&&Kb(m)||(P.isFileList(m)||P.endsWith(p,"[]"))&&(C=P.toArray(m)))return p=Af(p),C.forEach(function(k,b){!(P.isUndefined(k)||k===null)&&t.append(a===!0?ua([p],b,i):a===null?p:p+"[]",l(k))}),!1}return Ha(m)?!0:(t.append(ua(y,p,i),l(m)),!1)}const f=[],h=Object.assign(Gb,{defaultVisitor:u,convertValue:l,isVisitable:Ha});function g(m,p,y=0){if(!P.isUndefined(m)){if(y>c)throw new fe("Object is too deeply nested ("+y+" levels). Max depth: "+c,fe.ERR_FORM_DATA_DEPTH_EXCEEDED);if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(m),P.forEach(m,function(R,k){(!(P.isUndefined(R)||R===null)&&o.call(t,R,P.isString(k)?k.trim():k,p,h))===!0&&g(R,p?p.concat(k):[k],y+1)}),f.pop()}}if(!P.isObject(e))throw new TypeError("data must be an object");return g(e),t}function pc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(s){return t[s]})}function Or(e,t){this._pairs=[],e&&Vi(e,this,t)}const Rf=Or.prototype;Rf.append=function(t,n){this._pairs.push([t,n])};Rf.toString=function(t){const n=t?function(s){return t.call(this,s,pc)}:pc;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Jb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function If(e,t,n){if(!t)return e;const s=n&&n.encode||Jb,o=P.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let a;if(i?a=i(t,o):a=P.isURLSearchParams(t)?t.toString():new Or(t,o).toString(s),a){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class mc{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){P.forEach(this.handlers,function(s){s!==null&&t(s)})}}const $r={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Xb=typeof URLSearchParams<"u"?URLSearchParams:Or,Yb=typeof FormData<"u"?FormData:null,Qb=typeof Blob<"u"?Blob:null,Zb={isBrowser:!0,classes:{URLSearchParams:Xb,FormData:Yb,Blob:Qb},protocols:["http","https","file","blob","url","data"]},Pr=typeof window<"u"&&typeof document<"u",Wa=typeof navigator=="object"&&navigator||void 0,ew=Pr&&(!Wa||["ReactNative","NativeScript","NS"].indexOf(Wa.product)<0),tw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",nw=Pr&&window.location.href||"http://localhost",sw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pr,hasStandardBrowserEnv:ew,hasStandardBrowserWebWorkerEnv:tw,navigator:Wa,origin:nw},Symbol.toStringTag,{value:"Module"})),yt={...sw,...Zb};function ow(e,t){return Vi(e,new yt.classes.URLSearchParams,{visitor:function(n,s,o,i){return yt.isNode&&P.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function iw(e){return P.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function aw(e){const t={},n=Object.keys(e);let s;const o=n.length;let i;for(s=0;s=n.length;return a=!a&&P.isArray(o)?o.length:a,c?(P.hasOwnProp(o,a)?o[a]=P.isArray(o[a])?o[a].concat(s):[o[a],s]:o[a]=s,!r):((!P.hasOwnProp(o,a)||!P.isObject(o[a]))&&(o[a]=[]),t(n,s,o[a],i)&&P.isArray(o[a])&&(o[a]=aw(o[a])),!r)}if(P.isFormData(e)&&P.isFunction(e.entries)){const n={};return P.forEachEntry(e,(s,o)=>{t(iw(s),o,n,0)}),n}return null}const rs=(e,t)=>e!=null&&P.hasOwnProp(e,t)?e[t]:void 0;function rw(e,t,n){if(P.isString(e))try{return(t||JSON.parse)(e),P.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Ro={transitional:$r,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,i=P.isObject(t);if(i&&P.isHTMLForm(t)&&(t=new FormData(t)),P.isFormData(t))return o?JSON.stringify(Of(t)):t;if(P.isArrayBuffer(t)||P.isBuffer(t)||P.isStream(t)||P.isFile(t)||P.isBlob(t)||P.isReadableStream(t))return t;if(P.isArrayBufferView(t))return t.buffer;if(P.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let r;if(i){const c=rs(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return ow(t,c).toString();if((r=P.isFileList(t))||s.indexOf("multipart/form-data")>-1){const d=rs(this,"env"),l=d&&d.FormData;return Vi(r?{"files[]":t}:t,l&&new l,c)}}return i||o?(n.setContentType("application/json",!1),rw(t)):t}],transformResponse:[function(t){const n=rs(this,"transitional")||Ro.transitional,s=n&&n.forcedJSONParsing,o=rs(this,"responseType"),i=o==="json";if(P.isResponse(t)||P.isReadableStream(t))return t;if(t&&P.isString(t)&&(s&&!o||i)){const r=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,rs(this,"parseReviver"))}catch(c){if(r)throw c.name==="SyntaxError"?fe.from(c,fe.ERR_BAD_RESPONSE,this,null,rs(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yt.classes.FormData,Blob:yt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch","query"],e=>{Ro.headers[e]={}});function da(e,t){const n=this||Ro,s=t||n,o=kt.from(s.headers);let i=s.data;return P.forEach(e,function(r){i=r.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function $f(e){return!!(e&&e.__CANCEL__)}let Io=class extends fe{constructor(t,n,s){super(t??"canceled",fe.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}};function Pf(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new fe("Request failed with status code "+n.status,n.status>=400&&n.status<500?fe.ERR_BAD_REQUEST:fe.ERR_BAD_RESPONSE,n.config,n.request,n))}function lw(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function cw(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),l=s[i];a||(a=d),n[o]=c,s[o]=d;let u=i,f=0;for(;u!==o;)f+=n[u++],u=u%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),d-a{n=l,o=null,i&&(clearTimeout(i),i=null),e(...d)};return[(...d)=>{const l=Date.now(),u=l-n;u>=s?a(d,l):(o=d,i||(i=setTimeout(()=>{i=null,a(o)},s-u)))},()=>o&&a(o)]}const fi=(e,t,n=3)=>{let s=0;const o=cw(50,250);return uw(i=>{if(!i||typeof i.loaded!="number")return;const a=i.loaded,r=i.lengthComputable?i.total:void 0,c=r!=null?Math.min(a,r):a,d=Math.max(0,c-s),l=o(d);s=Math.max(s,c);const u={loaded:c,total:r,progress:r?c/r:void 0,bytes:d,rate:l||void 0,estimated:l&&r?(r-c)/l:void 0,event:i,lengthComputable:r!=null,[t?"download":"upload"]:!0};e(u)},n)},_c=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},gc=e=>(...t)=>P.asap(()=>e(...t)),dw=yt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,yt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(yt.origin),yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent)):()=>!0,fw=yt.hasStandardBrowserEnv?{write(e,t,n,s,o,i,a){if(typeof document>"u")return;const r=[`${e}=${encodeURIComponent(t)}`];P.isNumber(n)&&r.push(`expires=${new Date(n).toUTCString()}`),P.isString(s)&&r.push(`path=${s}`),P.isString(o)&&r.push(`domain=${o}`),i===!0&&r.push("secure"),P.isString(a)&&r.push(`SameSite=${a}`),document.cookie=r.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;ne instanceof kt?{...e}:e;function Zn(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function s(d,l,u,f){return P.isPlainObject(d)&&P.isPlainObject(l)?P.merge.call({caseless:f},d,l):P.isPlainObject(l)?P.merge({},l):P.isArray(l)?l.slice():l}function o(d,l,u,f){if(P.isUndefined(l)){if(!P.isUndefined(d))return s(void 0,d,u,f)}else return s(d,l,u,f)}function i(d,l){if(!P.isUndefined(l))return s(void 0,l)}function a(d,l){if(P.isUndefined(l)){if(!P.isUndefined(d))return s(void 0,d)}else return s(void 0,l)}function r(d,l,u){if(P.hasOwnProp(t,u))return s(d,l);if(P.hasOwnProp(e,u))return s(void 0,d)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:r,headers:(d,l,u)=>o(vc(d),vc(l),u,!0)};return P.forEach(Object.keys({...e,...t}),function(l){if(l==="__proto__"||l==="constructor"||l==="prototype")return;const u=P.hasOwnProp(c,l)?c[l]:o,f=P.hasOwnProp(e,l)?e[l]:void 0,h=P.hasOwnProp(t,l)?t[l]:void 0,g=u(f,h,l);P.isUndefined(g)&&u!==r||(n[l]=g)}),n}const mw=["content-type","content-length"];function _w(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([s,o])=>{mw.includes(s.toLowerCase())&&e.set(s,o)})}const gw=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Bf=e=>{const t=Zn({},e),n=f=>P.hasOwnProp(t,f)?t[f]:void 0,s=n("data");let o=n("withXSRFToken");const i=n("xsrfHeaderName"),a=n("xsrfCookieName");let r=n("headers");const c=n("auth"),d=n("baseURL"),l=n("allowAbsoluteUrls"),u=n("url");if(t.headers=r=kt.from(r),t.url=If(Df(d,u,l),e.params,e.paramsSerializer),c&&r.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?gw(c.password):""))),P.isFormData(s)&&(yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv?r.setContentType(void 0):P.isFunction(s.getHeaders)&&_w(r,s.getHeaders(),n("formDataHeaderPolicy"))),yt.hasStandardBrowserEnv&&(P.isFunction(o)&&(o=o(t)),o===!0||o==null&&dw(t.url))){const h=i&&a&&fw.read(a);h&&r.set(i,h)}return t},vw=typeof XMLHttpRequest<"u",yw=vw&&function(e){return new Promise(function(n,s){const o=Bf(e);let i=o.data;const a=kt.from(o.headers).normalize();let{responseType:r,onUploadProgress:c,onDownloadProgress:d}=o,l,u,f,h,g;function m(){h&&h(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(l),o.signal&&o.signal.removeEventListener("abort",l)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function y(){if(!p)return;const R=kt.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),b={data:!r||r==="text"||r==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:R,config:e,request:p};Pf(function(D){n(D),m()},function(D){s(D),m()},b),p=null}"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.startsWith("file:"))||setTimeout(y)},p.onabort=function(){p&&(s(new fe("Request aborted",fe.ECONNABORTED,e,p)),m(),p=null)},p.onerror=function(k){const b=k&&k.message?k.message:"Network Error",I=new fe(b,fe.ERR_NETWORK,e,p);I.event=k||null,s(I),m(),p=null},p.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const b=o.transitional||$r;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),s(new fe(k,b.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,p)),m(),p=null},i===void 0&&a.setContentType(null),"setRequestHeader"in p&&P.forEach(kf(a),function(k,b){p.setRequestHeader(b,k)}),P.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),r&&r!=="json"&&(p.responseType=o.responseType),d&&([f,g]=fi(d,!0),p.addEventListener("progress",f)),c&&p.upload&&([u,h]=fi(c),p.upload.addEventListener("progress",u),p.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(l=R=>{p&&(s(!R||R.type?new Io(null,e,p):R),p.abort(),m(),p=null)},o.cancelToken&&o.cancelToken.subscribe(l),o.signal&&(o.signal.aborted?l():o.signal.addEventListener("abort",l)));const C=lw(o.url);if(C&&!yt.protocols.includes(C)){s(new fe("Unsupported protocol "+C+":",fe.ERR_BAD_REQUEST,e));return}p.send(i||null)})},bw=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let s=!1;const o=function(c){if(!s){s=!0,a();const d=c instanceof Error?c:this.reason;n.abort(d instanceof fe?d:new Io(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,o(new fe(`timeout of ${t}ms exceeded`,fe.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:r}=n;return r.unsubscribe=()=>P.asap(a),r},ww=function*(e,t){let n=e.byteLength;if(n{const o=Sw(e,t);let i=0,a,r=c=>{a||(a=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:d,value:l}=await o.next();if(d){r(),c.close();return}let u=l.byteLength;if(n){let f=i+=u;n(f)}c.enqueue(new Uint8Array(l))}catch(d){throw r(d),d}},cancel(c){return r(c),o.return()}},{highWaterMark:2})};function Cw(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),s=e.slice(t+1);if(/;base64/i.test(n)){let a=s.length;const r=s.length;for(let h=0;h=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(a-=2,h+=2)}let c=0,d=r-1;const l=h=>h>=2&&s.charCodeAt(h-2)===37&&s.charCodeAt(h-1)===51&&(s.charCodeAt(h)===68||s.charCodeAt(h)===100);d>=0&&(s.charCodeAt(d)===61?(c++,d--):l(d)&&(c++,d-=3)),c===1&&d>=0&&(s.charCodeAt(d)===61||l(d))&&c++;const f=Math.floor(a/4)*3-(c||0);return f>0?f:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(s,"utf8");let i=0;for(let a=0,r=s.length;a=55296&&c<=56319&&a+1=56320&&d<=57343?(i+=4,a++):i+=3}else i+=3}return i}const Dr="1.16.1",bc=64*1024,{isFunction:Ko}=P,wc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},xw=e=>{const t=P.global!==void 0&&P.global!==null?P.global:globalThis,{ReadableStream:n,TextEncoder:s}=t;e=P.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:a}=e,r=o?Ko(o):typeof fetch=="function",c=Ko(i),d=Ko(a);if(!r)return!1;const l=r&&Ko(n),u=r&&(typeof s=="function"?(y=>C=>y.encode(C))(new s):async y=>new Uint8Array(await new i(y).arrayBuffer())),f=c&&l&&wc(()=>{let y=!1;const C=new i(yt.origin,{body:new n,method:"POST",get duplex(){return y=!0,"half"}}),R=C.headers.has("Content-Type");return C.body!=null&&C.body.cancel(),y&&!R}),h=d&&l&&wc(()=>P.isReadableStream(new a("").body)),g={stream:h&&(y=>y.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!g[y]&&(g[y]=(C,R)=>{let k=C&&C[y];if(k)return k.call(C);throw new fe(`Response type '${y}' is not supported`,fe.ERR_NOT_SUPPORT,R)})});const m=async y=>{if(y==null)return 0;if(P.isBlob(y))return y.size;if(P.isSpecCompliantForm(y))return(await new i(yt.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(P.isArrayBufferView(y)||P.isArrayBuffer(y))return y.byteLength;if(P.isURLSearchParams(y)&&(y=y+""),P.isString(y))return(await u(y)).byteLength},p=async(y,C)=>{const R=P.toFiniteNumber(y.getContentLength());return R??m(C)};return async y=>{let{url:C,method:R,data:k,signal:b,cancelToken:I,timeout:D,onDownloadProgress:K,onUploadProgress:F,responseType:M,headers:N,withCredentials:O="same-origin",fetchOptions:Z,maxContentLength:Q,maxBodyLength:we}=Bf(y);const he=P.isNumber(Q)&&Q>-1,ae=P.isNumber(we)&&we>-1;let de=o||fetch;M=M?(M+"").toLowerCase():"text";let xe=bw([b,I&&I.toAbortSignal()],D),Se=null;const ne=xe&&xe.unsubscribe&&(()=>{xe.unsubscribe()});let se;try{if(he&&typeof C=="string"&&C.startsWith("data:")&&Cw(C)>Q)throw new fe("maxContentLength size of "+Q+" exceeded",fe.ERR_BAD_RESPONSE,y,Se);if(ae&&R!=="get"&&R!=="head"){const L=await p(N,k);if(typeof L=="number"&&isFinite(L)&&L>we)throw new fe("Request body larger than maxBodyLength limit",fe.ERR_BAD_REQUEST,y,Se)}if(F&&f&&R!=="get"&&R!=="head"&&(se=await p(N,k))!==0){let L=new i(C,{method:"POST",body:k,duplex:"half"}),z;if(P.isFormData(k)&&(z=L.headers.get("content-type"))&&N.setContentType(z),L.body){const[X,U]=_c(se,fi(gc(F)));k=yc(L.body,bc,X,U)}}P.isString(O)||(O=O?"include":"omit");const ie=c&&"credentials"in i.prototype;if(P.isFormData(k)){const L=N.getContentType();L&&/^multipart\/form-data/i.test(L)&&!/boundary=/i.test(L)&&N.delete("content-type")}N.set("User-Agent","axios/"+Dr,!1);const Te={...Z,signal:xe,method:R.toUpperCase(),headers:kf(N.normalize()),body:k,duplex:"half",credentials:ie?O:void 0};Se=c&&new i(C,Te);let Y=await(c?de(Se,Z):de(C,Te));if(he){const L=P.toFiniteNumber(Y.headers.get("content-length"));if(L!=null&&L>Q)throw new fe("maxContentLength size of "+Q+" exceeded",fe.ERR_BAD_RESPONSE,y,Se)}const ce=h&&(M==="stream"||M==="response");if(h&&Y.body&&(K||he||ce&&ne)){const L={};["status","statusText","headers"].forEach(x=>{L[x]=Y[x]});const z=P.toFiniteNumber(Y.headers.get("content-length")),[X,U]=K&&_c(z,fi(gc(K),!0))||[];let v=0;const w=x=>{if(he&&(v=x,v>Q))throw new fe("maxContentLength size of "+Q+" exceeded",fe.ERR_BAD_RESPONSE,y,Se);X&&X(x)};Y=new a(yc(Y.body,bc,w,()=>{U&&U(),ne&&ne()}),L)}M=M||"text";let S=await g[P.findKey(g,M)||"text"](Y,y);if(he&&!h&&!ce){let L;if(S!=null&&(typeof S.byteLength=="number"?L=S.byteLength:typeof S.size=="number"?L=S.size:typeof S=="string"&&(L=typeof s=="function"?new s().encode(S).byteLength:S.length)),typeof L=="number"&&L>Q)throw new fe("maxContentLength size of "+Q+" exceeded",fe.ERR_BAD_RESPONSE,y,Se)}return!ce&&ne&&ne(),await new Promise((L,z)=>{Pf(L,z,{data:S,headers:kt.from(Y.headers),status:Y.status,statusText:Y.statusText,config:y,request:Se})})}catch(ie){if(ne&&ne(),xe&&xe.aborted&&xe.reason instanceof fe){const Te=xe.reason;throw Te.config=y,Se&&(Te.request=Se),ie!==Te&&(Te.cause=ie),Te}throw ie&&ie.name==="TypeError"&&/Load failed|fetch/i.test(ie.message)?Object.assign(new fe("Network Error",fe.ERR_NETWORK,y,Se,ie&&ie.response),{cause:ie.cause||ie}):fe.from(ie,ie&&ie.code,y,Se,ie&&ie.response)}}},kw=new Map,Nf=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:o}=t,i=[s,o,n];let a=i.length,r=a,c,d,l=kw;for(;r--;)c=i[r],d=l.get(c),d===void 0&&l.set(c,d=r?new Map:xw(t)),l=d;return d};Nf();const Br={http:Wb,xhr:yw,fetch:{get:Nf}};P.forEach(Br,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Sc=e=>`- ${e}`,Tw=e=>P.isFunction(e)||e===null||e===!1;function Aw(e,t){e=P.isArray(e)?e:[e];const{length:n}=e;let s,o;const i={};for(let a=0;a`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let r=n?a.length>1?`since : `+a.map(Sc).join(` `):" "+Sc(a[0]):"as no adapter specified";throw new fe("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return o}const Lf={getAdapter:Aw,adapters:Br};function fa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Io(null,e)}function Ec(e){return fa(e),e.headers=kt.from(e.headers),e.data=da.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lf.getAdapter(e.adapter||Ro.adapter,e)(e).then(function(s){fa(e),e.response=s;try{s.data=da.call(e,e.transformResponse,s)}finally{delete e.response}return s.headers=kt.from(s.headers),s},function(s){if(!$f(s)&&(fa(e),s&&s.response)){e.response=s.response;try{s.response.data=da.call(e,e.transformResponse,s.response)}finally{delete e.response}s.response.headers=kt.from(s.response.headers)}return Promise.reject(s)})}const ji={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ji[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Cc={};ji.transitional=function(t,n,s){function o(i,a){return"[Axios v"+Dr+"] Transitional option '"+i+"'"+a+(s?". "+s:"")}return(i,a,r)=>{if(t===!1)throw new fe(o(a," has been removed"+(n?" in "+n:"")),fe.ERR_DEPRECATED);return n&&!Cc[a]&&(Cc[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,r):!0}};ji.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function Rw(e,t,n){if(typeof e!="object")throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const i=s[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){const r=e[i],c=r===void 0||a(r,i,e);if(c!==!0)throw new fe("option "+i+" must be "+c,fe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new fe("Unknown option "+i,fe.ERR_BAD_OPTION)}}const ti={assertOptions:Rw,validators:ji},jt=ti.validators;let Qn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new mc,response:new mc}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=(()=>{if(!o.stack)return"";const a=o.stack.indexOf(` `);return a===-1?"":o.stack.slice(a+1)})();try{if(!s.stack)s.stack=i;else if(i){const a=i.indexOf(` `),r=a===-1?-1:i.indexOf(` `,a+1),c=r===-1?"":i.slice(r+1);String(s.stack).endsWith(c)||(s.stack+=` `+i)}}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Zn(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:i}=n;s!==void 0&&ti.assertOptions(s,{silentJSONParsing:jt.transitional(jt.boolean),forcedJSONParsing:jt.transitional(jt.boolean),clarifyTimeoutError:jt.transitional(jt.boolean),legacyInterceptorReqResOrdering:jt.transitional(jt.boolean)},!1),o!=null&&(P.isFunction(o)?n.paramsSerializer={serialize:o}:ti.assertOptions(o,{encode:jt.function,serialize:jt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ti.assertOptions(n,{baseUrl:jt.spelling("baseURL"),withXsrfToken:jt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&P.merge(i.common,i[n.method]);i&&P.forEach(["delete","get","head","post","put","patch","query","common"],g=>{delete i[g]}),n.headers=kt.concat(a,i);const r=[];let c=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(n)===!1)return;c=c&&m.synchronous;const p=n.transitional||$r;p&&p.legacyInterceptorReqResOrdering?r.unshift(m.fulfilled,m.rejected):r.push(m.fulfilled,m.rejected)});const d=[];this.interceptors.response.forEach(function(m){d.push(m.fulfilled,m.rejected)});let l,u=0,f;if(!c){const g=[Ec.bind(this),void 0];for(g.unshift(...r),g.push(...d),f=g.length,l=Promise.resolve(n);u{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](o);s._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(r=>{s.subscribe(r),i=r}).then(o);return a.cancel=function(){s.unsubscribe(i)},a},t(function(i,a,r){s.reason||(s.reason=new Io(i,a,r),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Mf(function(o){t=o}),cancel:t}}};function Ow(e){return function(n){return e.apply(null,n)}}function $w(e){return P.isObject(e)&&e.isAxiosError===!0}const Ka={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ka).forEach(([e,t])=>{Ka[t]=e});function Ff(e){const t=new Qn(e),n=vf(Qn.prototype.request,t);return P.extend(n,Qn.prototype,t,{allOwnKeys:!0}),P.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Ff(Zn(e,o))},n}const Qe=Ff(Ro);Qe.Axios=Qn;Qe.CanceledError=Io;Qe.CancelToken=Iw;Qe.isCancel=$f;Qe.VERSION=Dr;Qe.toFormData=Vi;Qe.AxiosError=fe;Qe.Cancel=Qe.CanceledError;Qe.all=function(t){return Promise.all(t)};Qe.spread=Ow;Qe.isAxiosError=$w;Qe.mergeConfig=Zn;Qe.AxiosHeaders=kt;Qe.formToJSON=e=>Of(P.isHTMLForm(e)?new FormData(e):e);Qe.getAdapter=Lf.getAdapter;Qe.HttpStatusCode=Ka;Qe.default=Qe;const{Axios:KT,AxiosError:GT,CanceledError:JT,isCancel:XT,CancelToken:YT,VERSION:QT,all:ZT,Cancel:eA,isAxiosError:tA,spread:nA,toFormData:sA,AxiosHeaders:oA,HttpStatusCode:iA,formToJSON:aA,getAdapter:rA,mergeConfig:lA,create:cA}=Qe;let Pw=null;function Dw(e){Pw=e}const Ve=Qe.create({baseURL:"/api",timeout:2e4,headers:{"Content-Type":"application/json"}});Ve.interceptors.request.use(e=>{const t=localStorage.getItem("h5_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));Ve.interceptors.response.use(e=>{const t=e.data;return t.code!==0?t.code===1002?(xc("biz1002"),Promise.reject({code:1002,message:t.message||"未授权"})):(Ae(t.message||"请求失败"),Promise.reject({code:t.code,message:t.message||"请求失败"})):t.data},async e=>{let t="网络异常,请稍后重试",n=-1;if(e.response)switch(n=e.response.status,e.response.status){case 401:await xc("http401");break;case 403:t="拒绝访问";break;case 404:t="请求的资源不存在";break;case 500:t="服务器内部错误";break;default:t=`请求失败 (${e.response.status})`}else e.code==="ECONNABORTED"&&(t="请求超时,请稍后重试");return n!==401&&Ae(t),Promise.reject({code:n,message:t})});let Us=null;async function xc(e){const t=e==="http401"?"HTTP 401":"业务码 1002";return Us?(console.warn(`[API] ${t} 未授权 — 已有处理进行中,等待完成`),Us):(console.warn(`[API] ${t} 未授权,清除凭证并跳转登录`),Us=(async()=>{try{localStorage.removeItem("h5_token"),localStorage.removeItem("employee_id"),localStorage.removeItem("employee_name"),""||(Ae("登录已过期,请重新登录"),window.location.pathname!=="/h5/login"&&(window.location.href="/h5/login"))}catch(n){console.warn("[API] 401 处理失败,刷新页面:",n),window.location.reload()}finally{Us=null}})(),Us)}function Ga(e){return{message_id:e.id||e.message_id||"",conversation_id:e.conversation_id||"",message_type:e.sender_type||e.message_type||"text",msg_type:e.msg_type,content:e.content||"",sender_name:e.sender_name||"",created_at:e.created_at||"",media_url:e.media_url,file_name:e.file_name,file_size:e.file_size,extra_data:e.extra_data,reply_to_id:e.reply_to_id}}function Vf(e){return(e||[]).map(Ga)}async function Bw(){return await Ve.get("/h5/user")}async function Nw(){return await Ve.get("/h5/conversations/current")}async function kc(e){const t=await Ve.post("/h5/conversations/current/messages",e,{timeout:3e4});return{user_message:Ga(t.user_message),ai_reply:t.ai_reply?Ga(t.ai_reply):t.ai_reply,is_guidance:t.is_guidance,ai_reply_count:t.ai_reply_count,can_call_agent:t.can_call_agent}}async function Lw(e){const n=await Ve.get("/h5/conversations/current/messages/poll",{params:e}),s=(n==null?void 0:n.items)||n||[];return Vf(s)}async function Tc(e){const n=await Ve.get("/h5/conversations/current/messages",{params:e}),s=(n==null?void 0:n.items)||[];return{items:Vf(s),has_more:(n==null?void 0:n.has_more)||!1}}async function Mw(e){return await Ve.post("/h5/conversations/current/shake",e)}async function Fw(){const t=await Ve.get("/h5/approval-links");return(t==null?void 0:t.items)||t||[]}async function Vw(){return await Ve.get("/approval/keywords")||[]}async function jw(e){return await Ve.post("/approval/jump",{template_id:e})}async function qw(){const t=await Ve.get("/h5/software-downloads");return(t==null?void 0:t.items)||t||[]}async function Uw(e){return await Ve.post(`/h5/conversations/${e}/join`)}async function zw(e){return await Ve.post(`/h5/conversations/${e}/leave-participant`)}async function Hw(e,t){return await Ve.post(`/conversation/${e}/evaluate`,t)}async function Ww(e){return await Ve.get(`/conversation/${e}/evaluation`)}async function Kw(e){return await Ve.post("/h5/oauth/callback",e)}async function Gw(e){return await Ve.post("/h5/mock-login",e)}async function Jw(){return await Ve.get("/h5/me")}async function Xw(){const e=window.location.origin+"/h5/go";return await Ve.get("/h5/oauth/authorize",{params:{redirect_uri:e}})}const ha="h5_token",An="employee_id",ls="employee_name",zs="oauth_redirect_count",Ac=3,Et=Tr("employee",()=>{const e=j(localStorage.getItem(ha)||"");e.value&&!a(e.value)&&localStorage.removeItem(zs);const t=j(null),n=j(!1),s=q(()=>e.value?!a(e.value):!1),o=q(()=>{var b;return((b=t.value)==null?void 0:b.employee_id)||localStorage.getItem(An)||""}),i=q(()=>{var b;return((b=t.value)==null?void 0:b.employee_name)||localStorage.getItem(ls)||""});function a(b){try{const I=b.split(".");if(I.length!==3)return!1;const D=JSON.parse(atob(I[1]));return D.exp?Math.floor(Date.now()/1e3)>=D.exp-60:!1}catch{return!1}}function r(b){e.value=b,localStorage.setItem(ha,b)}function c(){e.value="",t.value=null,localStorage.removeItem(ha),localStorage.removeItem(An),localStorage.removeItem(ls)}function d(){localStorage.removeItem(zs)}function l(){const I=parseInt(localStorage.getItem(zs)||"0",10)+1;return localStorage.setItem(zs,String(I)),I}function u(){return parseInt(localStorage.getItem(zs)||"0",10)>=Ac}async function f(b,I){n.value=!0;try{const D=await Kw({code:b,state:I});return r(D.token),localStorage.setItem(An,D.employee_id),localStorage.setItem(ls,D.employee_name),t.value={employee_id:D.employee_id,employee_name:D.employee_name,department:D.department,position:D.position,mobile:"",email:"",avatar:D.avatar,is_vip:!1},console.log("[EmployeeStore] OAuth2 登录成功:",D.employee_name),d(),D}catch(D){throw console.error("[EmployeeStore] OAuth2 登录失败:",D),D}finally{n.value=!1}}async function h(b,I){n.value=!0;try{const D=await Gw({employee_id:b,employee_name:I||"测试用户"});return r(D.token),localStorage.setItem(An,D.employee_id),localStorage.setItem(ls,D.employee_name),t.value={employee_id:D.employee_id,employee_name:D.employee_name,department:D.department,position:D.position,mobile:"",email:"",avatar:D.avatar,is_vip:!1},console.log("[EmployeeStore] Mock 登录成功:",D.employee_name),d(),D}catch(D){throw console.error("[EmployeeStore] Mock 登录失败:",D),D}finally{n.value=!1}}async function g(){if(e.value)try{const b=await Jw();t.value=b,localStorage.setItem(An,b.employee_id),localStorage.setItem(ls,b.employee_name),console.log("[EmployeeStore] 获取员工信息成功:",b.employee_name)}catch(b){console.error("[EmployeeStore] 获取员工信息失败:",b);{console.warn("[EmployeeStore] 开发模式:使用 mock 员工信息"),t.value={employee_id:localStorage.getItem(An)||"dev_test_employee",employee_name:"开发测试用户",department:"IT部",position:"开发工程师",mobile:"",email:"",avatar:"",is_vip:!1};return}}}async function m(){try{const b=await Xw();if(b.authorize_url){window.location.href=b.authorize_url;return}}catch(b){console.warn("[EmployeeStore] 从后端获取授权URL失败,尝试本地构造:",b)}{console.warn("[EmployeeStore] 未配置 VITE_WECOM_CORP_ID,无法跳转授权");return}}async function p(){if(console.warn("[EmployeeStore] Token 已过期或无效,重新授权"),u()){console.error("[EmployeeStore] OAuth2 重定向次数超限,疑似无限循环,停止重定向"),c(),d();const{showToast:I}=await Hn(async()=>{const{showToast:D}=await import("./index-CKkaAyvn.js");return{showToast:D}},__vite__mapDeps([0,1,2,3]));I("登录状态异常,请刷新页面重试");return}c();const b=l();console.warn(`[EmployeeStore] OAuth2 重定向计数: ${b}/${Ac}`),await m()}function y(b){localStorage.setItem(An,b),e.value="",t.value={employee_id:b,employee_name:"开发测试用户",department:"IT部",position:"开发工程师",mobile:"",email:"",avatar:"",is_vip:!1},console.log("[EmployeeStore] 开发模式登录:",b)}function C(){c(),console.log("[EmployeeStore] 已登出")}function R(b){r(b),d()}function k(b){t.value={employee_id:b.userid,employee_name:b.name,department:b.department||"",position:"",mobile:b.phone||"",email:b.email||"",avatar:b.avatar||"",is_vip:!1},localStorage.setItem(An,b.userid),localStorage.setItem(ls,b.name)}return Dw(p),{token:e,employeeInfo:t,authenticating:n,isAuthenticated:s,employeeId:o,employeeName:i,handleOAuthCallback:f,mockLogin:h,fetchEmployeeInfo:g,redirectToOAuth:m,handleUnauthorized:p,devLogin:y,logout:C,setToken:R,setUserInfo:k}}),Yw=Object.freeze(Object.defineProperty({__proto__:null,useEmployeeStore:Et},Symbol.toStringTag,{value:"Module"})),Qw=3e4,Zw=3e4,e0=1e3;let io=null;function t0(e){return io&&io.readyState===WebSocket.OPEN?(io.send(JSON.stringify(e)),!0):(console.warn("[H5 WS] WebSocket 未连接,无法发送消息:",e),!1)}function n0(){let e=null,t=null,n=null,s=0,o=!1;function i(){const u=Et(),f=u.employeeId,h=u.token;if(!f||!h){console.warn("[H5 WS] 未登录或缺少token,跳过连接");return}e&&a(),o=!1;const g=window.location.protocol==="https:"?"wss:":"ws:",m=window.location.host,p=`${g}//${m}/ws/h5/${f}`;console.log(`[H5 WS] 正在连接: ${p}`),e=new WebSocket(p,[`bearer.${h}`]),io=e,e.onopen=()=>{console.log("[H5 WS] 连接成功"),s=0,r(),$t().stopPolling()},e.onmessage=y=>{try{const C=JSON.parse(y.data);l(C)}catch(C){console.error("[H5 WS] 消息解析失败:",C)}},e.onclose=()=>{if(console.log("[H5 WS] 连接关闭"),c(),e=null,!o){const y=$t();y.cancelStreamingBubble(),y.startPolling(),d()}},e.onerror=y=>{console.error("[H5 WS] 连接错误:",y)}}function a(){o=!0,n&&(clearTimeout(n),n=null),c(),e&&(e.close(),e=null),io=null,s=0,console.log("[H5 WS] 已主动断开连接")}function r(){c(),t=setInterval(()=>{e&&e.readyState===WebSocket.OPEN&&e.send(JSON.stringify({type:"ping"}))},Qw)}function c(){t&&(clearInterval(t),t=null)}function d(){if(o)return;const u=Math.min(e0*Math.pow(2,s),Zw);s++,console.log(`[H5 WS] 将在 ${u/1e3} 秒后重连(第 ${s} 次)`),n&&clearTimeout(n),n=setTimeout(()=>{console.log("[H5 WS] 正在重连..."),i()},u)}function l(u){var h,g,m,p,y;const f=$t();switch(u.type){case"participant_invited":(h=u.data)!=null&&h.participants&&f.updateParticipants(u.data.participants);break;case"participant_joined":(g=u.data)!=null&&g.participants&&f.updateParticipants(u.data.participants);break;case"participant_removed":if((m=u.data)!=null&&m.participants&&f.updateParticipants(u.data.participants),(p=u.data)!=null&&p.changed){const C=Et();u.data.changed.map(k=>k.id).includes(C.employeeId)&&(console.log("[H5 WS] 当前用户被移除会话"),f.handleRemovedFromConversation())}break;case"participant_left":(y=u.data)!=null&&y.participants&&f.updateParticipants(u.data.participants);break;case"new_message":u.data&&f.handleNewMessage(u.data);break;case"ai_reply_chunk":u.data&&f.handleAiReplyChunk(u.data);break;case"ai_reply":u.data&&f.handleAiReply(u.data);break;case"ai_reply_failed":u.data&&f.handleAiReplyFailed(u.data);break;case"ai_thinking":u.data&&f.handleAiThinking(u.data);break;case"dynamic_recommend":u.data&&f.handleDynamicRecommend(u.data);break;case"pong":break;case"queue_position_update":u.data&&f.handleQueuePositionUpdate(u.data);break;case"conversation_resolved":u.data&&f.handleConversationResolved(u.data);break;case"pending_close_request":u.data&&f.handlePendingCloseRequest(u.data);break;case"quiz_diagnostic_answer":u.data&&f.handleQuizDiagnosticAnswer(u.data);break;default:console.warn(`[H5 WS] 未知消息类型: ${u.type}`)}}return{connect:i,disconnect:a}}const s0="h5_messages_cache",o0=7,i0=100;function Nr(e){return`${s0}_${e}`}function a0(e){try{const t=Nr(e),n=localStorage.getItem(t);if(!n)return null;const s=JSON.parse(n),o=s.timestamp||0,i=Date.now(),a=o0*24*60*60*1e3;return i-o>a?(localStorage.removeItem(t),null):s.messages||null}catch(t){return console.warn("[Store] 读取消息缓存失败:",t),null}}function Hs(e,t){try{const n=Nr(e),s=t.slice(-i0);localStorage.setItem(n,JSON.stringify({messages:s,timestamp:Date.now()}))}catch(n){console.warn("[Store] 保存消息缓存失败:",n)}}function r0(e){try{const t=Nr(e);localStorage.removeItem(t)}catch(t){console.warn("[Store] 清除消息缓存失败:",t)}}function l0(e,t){const n=new Map;return e.forEach(s=>n.set(s.message_id,s)),t.forEach(s=>n.set(s.message_id,s)),Array.from(n.values()).sort((s,o)=>new Date(s.created_at).getTime()-new Date(o.created_at).getTime())}const $t=Tr("conversation",()=>{const e=j(null),t=j(null),n=j([]),s=j(!1),o=j(!1),i=j(!1),a=j(!0),r=j(null),c=j(!1),d=j([]),l=j(!1),u=j(""),f=j([]),h=j(""),g=j(!1),m=j([]),p=j(""),y=j(null),C=j([]),R=j(!1),k=j([]),b=j(0),I=j(null),D=j(new Set),K=q(()=>Et().isAuthenticated),F=q(()=>t.value?t.value.status!=="resolved":!1),M=q(()=>!t.value||!e.value||t.value.employee_id===e.value.employee_id?!1:C.value.some($=>{var G;return $.id===((G=e.value)==null?void 0:G.employee_id)})),N=q(()=>C.value.filter(G=>G.joined).length),O=q(()=>{const $={};for(const G of d.value)$[G.category]||($[G.category]=[]),$[G.category].push(G);return $}),Z=q(()=>{const $={};for(const G of f.value)$[G.category]||($[G.category]=[]),$[G.category].push(G);return $});function Q($){const G=D.value;if(G.delete($),G.add($),G.size>500){const ue=G.values().next().value;ue&&G.delete(ue)}}function we($){if(D.value.has($.message_id)){console.log(`[H5 WS去重] 跳过重复消息: ${$.message_id}`);return}Q($.message_id),n.value.push({message_id:$.message_id,conversation_id:$.conversation_id,message_type:$.sender_type||"system",msg_type:$.msg_type||"text",content:$.content,sender_name:$.sender_name||"",created_at:new Date().toISOString()}),h.value=$.message_id}async function he($,G){await Et().handleOAuthCallback($,G)}async function ae(){try{const $=Et();$.employeeInfo&&(e.value={employee_id:$.employeeInfo.employee_id,employee_name:$.employeeInfo.employee_name,department:$.employeeInfo.department,position:$.employeeInfo.position,level:"",is_vip:$.employeeInfo.is_vip,avatar_url:$.employeeInfo.avatar});const G=await Bw();e.value=G,console.log("[Store] 获取用户信息成功:",G.employee_name)}catch($){console.error("[Store] 获取用户信息失败:",$);{console.warn("[Store] 开发模式:使用 mock 用户信息");const G=Et();e.value={employee_id:G.employeeId||"dev_test_employee",employee_name:G.employeeName||"开发测试用户",department:"IT部",position:"开发工程师",level:"",is_vip:!1,avatar_url:""};return}}}async function de(){try{const $=await Nw();t.value=$,i.value=($==null?void 0:$.can_call_agent)??!1,C.value=($==null?void 0:$.participants)||[],console.log("[Store] 获取当前会话:",$?$.conversation_id:"无活跃会话","参与者:",C.value.length)}catch($){console.error("[Store] 获取当前会话失败:",$)}}async function xe($,G){var mt,xn,Fr;if(console.log("[Store] sendNewMessage 开始执行, content:",$,"options:",G),!$.trim()){console.warn("[Store] content 为空,直接返回");return}const ue=Et(),me=`temp_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,Oe={message_id:me,conversation_id:((mt=t.value)==null?void 0:mt.conversation_id)||"",message_type:"employee",msg_type:(G==null?void 0:G.msg_type)||"text",content:$.trim(),sender_name:ue.employeeName||"我",created_at:new Date().toISOString(),status:"sending"};n.value.push(Oe),console.log("[Store] 乐观更新:临时消息已添加到列表, tempMessageId:",me),s.value=!0;try{const ut={content:$.trim()};G!=null&&G.msg_type&&(ut.msg_type=G.msg_type,ut.media_url=G.media_url,ut.file_name=G.file_name,ut.file_size=G.file_size),console.log("[Store] 请求参数:",JSON.stringify(ut));const dt=await kc(ut);if(console.log("[Store] API 响应:",dt),!dt)throw console.error("[Store] API 响应为空"),new Error("API 响应为空");if(!dt.user_message)throw console.error("[Store] API 响应缺少 user_message"),new Error("API 响应格式错误:缺少 user_message");const $o=n.value.findIndex(Po=>Po.message_id===me);if($o!==-1){n.value[$o]={...dt.user_message,status:"sent"},Q(dt.user_message.message_id),h.value=dt.user_message.message_id,console.log("[Store] 乐观更新成功:临时消息已替换为真实消息");const Po=(xn=t.value)==null?void 0:xn.conversation_id;Po&&Hs(Po,n.value)}else n.value.push({...dt.user_message,status:"sent"}),Q(dt.user_message.message_id),h.value=dt.user_message.message_id;i.value=dt.can_call_agent??!1,t.value&&(t.value.can_call_agent=dt.can_call_agent??!1,t.value.ai_substantive_reply_count=dt.ai_reply_count??0),console.log("[Store] 消息发送成功, AI回复计数:",dt.ai_reply_count,"可呼叫坐席:",dt.can_call_agent,"是否引导:",dt.is_guidance)}catch(ut){console.error("[Store] 消息发送失败:",ut),console.error("[Store] 错误详情:",ut==null?void 0:ut.message,(Fr=ut==null?void 0:ut.response)==null?void 0:Fr.data,ut==null?void 0:ut.stack);const dt=n.value.findIndex($o=>$o.message_id===me);throw dt!==-1&&(n.value[dt].status="failed",console.log("[Store] 乐观更新失败:临时消息状态已改为 failed")),ut}finally{s.value=!1,console.log("[Store] sendNewMessage finally 执行完成")}}async function Se(){var $;if(!(!K.value||!F.value))try{const G=h.value?{after_message_id:h.value}:void 0,ue=await Lw(G);if(ue&&ue.length>0){const me=ue.filter(Oe=>D.value.has(Oe.message_id)?(console.log(`[H5轮询去重] 跳过重复消息: ${Oe.message_id}`),!1):(Q(Oe.message_id),!0));if(me.length>0){n.value.push(...me),h.value=me[me.length-1].message_id,console.log("[Store] 轮询到新消息:",me.length,"条");const Oe=($=t.value)==null?void 0:$.conversation_id;Oe&&Hs(Oe,n.value)}}}catch(G){console.error("[Store] 轮询消息失败:",G)}}async function ne($){var G;if(!(!K.value||!F.value))try{const ue=await Tc($);if(ue.items&&ue.items.length>0){const me=ue.items.filter(Oe=>D.value.has(Oe.message_id)?!1:(Q(Oe.message_id),!0));if(me.length>0){$!=null&&$.before?n.value.push(...me):n.value=me;const Oe=me[me.length-1];Oe&&(h.value=Oe.message_id),console.log("[Store] 获取到历史消息:",me.length,"条");const mt=(G=t.value)==null?void 0:G.conversation_id;mt&&Hs(mt,n.value)}}}catch(ue){console.error("[Store] 获取历史消息失败:",ue)}}function se(){r.value||(console.log("[Store] 启动消息轮询(3秒间隔)"),r.value=setInterval(()=>{Se()},3e3))}function ie(){r.value&&(console.log("[Store] 停止消息轮询"),clearInterval(r.value),r.value=null)}async function Te(){var $,G;if(o.value)return"pending";o.value=!0;try{const ue=Et(),me=await Mw({employee_id:ue.employeeId,employee_name:ue.employeeName});console.log("[Store] 招手成功:",me);const Oe={message_id:`sys_shake_${Date.now()}`,conversation_id:(($=t.value)==null?void 0:$.conversation_id)||"",message_type:"system",content:me.funny_phrase,sender_name:"系统",created_at:new Date().toISOString()};return n.value.push(Oe),me.assign_result==="assigned"&&me.assigned_agent_id?(Oe.content=`${me.funny_phrase} 坐席正在查看您的信息,请等待处理回复!`,t.value&&(t.value.status="serving")):me.assign_result==="queued"&&(Oe.content=`${me.funny_phrase} ⏳ 当前无空闲坐席,您已进入排队,请耐心等待...`),((G=me.conversation)==null?void 0:G.status)==="serving"&&await de(),me.assign_result||"queued"}catch(ue){return console.error("[Store] 招手失败:",ue),"error"}finally{o.value=!1}}async function Y(){try{const $=await Fw();d.value=$,console.log("[Store] 获取审批链接成功:",$.length,"条")}catch($){console.error("[Store] 获取审批链接失败:",$)}}function ce(){l.value=!1,u.value=""}function S($=""){var ue;const G={message_id:`approval_card_${Date.now()}`,conversation_id:((ue=t.value)==null?void 0:ue.conversation_id)||"",message_type:"system",msg_type:"approval_card",content:"",sender_name:"",created_at:new Date().toISOString(),extra_data:{approval_type:"",confidence:0}};n.value.push(G),console.log("[Store] 手动插入审批卡片消息(快捷按钮触发)")}async function L(){try{const $=await qw();f.value=$,console.log("[Store] 获取软件下载列表成功:",$.length,"条")}catch($){console.error("[Store] 获取软件下载列表失败:",$)}}function z(){c.value=!c.value}async function X($){try{await de();const G=t.value;G&&G.conversation_id!==$&&console.warn("[Store] 当前会话ID不匹配, 期望:",$,"实际:",G.conversation_id),n.value=[],h.value="",await ne(),console.log("[Store] 已切换到邀请会话:",$)}catch(G){console.error("[Store] 切换会话失败:",G)}}async function U(){if(!t.value)return;const $=t.value.conversation_id;try{await zw($),console.log("[Store] 已退出会话:",$),t.value=null,C.value=[],n.value=[],h.value="",ie()}catch(G){throw console.error("[Store] 退出会话失败:",G),G}}function v(){R.value=!R.value}async function w($){const G=n.value.findIndex(Oe=>Oe.message_id===$);if(G===-1){console.warn("[Store] 重试消息找不到:",$);return}const ue=n.value[G];if(ue.status!=="failed"){console.warn("[Store] 消息状态不是 failed,无法重试:",$);return}const me=ue.content;n.value.splice(G,1),console.log("[Store] 删除失败消息:",$),await xe(me,{msg_type:ue.msg_type,media_url:ue.media_url,file_name:ue.file_name,file_size:ue.file_size})}function x($){C.value=$,t.value&&(t.value.participants=$),console.log("[Store] 参与者列表已通过WS更新:",$.length,"人")}function B(){console.log("[Store] 当前用户被移除会话,清空状态"),t.value=null,C.value=[],n.value=[],h.value="",R.value=!1,ie()}function W($){var ue;if(((ue=t.value)==null?void 0:ue.conversation_id)!==$.conversation_id||!$.chunk)return;if(!I.value){const me=`ai_stream_${$.conversation_id}_${Date.now()}`;I.value=me,n.value.push({message_id:me,conversation_id:$.conversation_id,message_type:"ai",msg_type:"text",content:"",sender_name:"Duckula(达寇拉)",created_at:new Date().toISOString()})}const G=n.value.findIndex(me=>me.message_id===I.value);G!==-1&&(n.value[G].content+=$.chunk)}function H($){var Oe,mt;if(((Oe=t.value)==null?void 0:Oe.conversation_id)!==$.conversation_id)return;const G={message_id:$.message_id,conversation_id:$.conversation_id,message_type:$.sender_type||"ai",msg_type:$.msg_type||"text",content:$.content,sender_name:$.sender_name||"Duckula(达寇拉)",created_at:new Date().toISOString(),status:"sent",extra_data:$.extra_data||void 0},ue=I.value?n.value.findIndex(xn=>xn.message_id===I.value):-1;if(ue!==-1?n.value[ue]=G:n.value.push(G),I.value=null,Q($.message_id),h.value=$.message_id,i.value=$.can_call_agent??!1,t.value){t.value.can_call_agent=$.can_call_agent??!1,t.value.ai_substantive_reply_count=$.ai_reply_count??0;const xn={ai_handling:"waiting",queued:"waiting",serving:"serving",resolved:"resolved"};t.value.status=xn[$.conversation_status]||t.value.status}const me=(mt=t.value)==null?void 0:mt.conversation_id;me&&Hs(me,n.value)}function oe($){var me;if(((me=t.value)==null?void 0:me.conversation_id)!==$.conversation_id)return;const G={message_id:`ai_failed_${$.conversation_id}_${Date.now()}`,conversation_id:$.conversation_id,message_type:"ai",msg_type:"text",content:$.message||"⚠️ AI 服务异常,请输入「IT」转人工或稍后重试。",sender_name:"Duckula(达寇拉)",created_at:new Date().toISOString(),status:"sent"},ue=I.value?n.value.findIndex(Oe=>Oe.message_id===I.value):-1;ue!==-1?n.value[ue]=G:n.value.push(G),I.value=null}function ee($){var Oe;if(((Oe=t.value)==null?void 0:Oe.conversation_id)!==$.conversation_id)return;const G=I.value,ue=G?n.value.findIndex(mt=>mt.message_id===G):-1,me=$.status==="still_thinking"?"仍在思考中,请稍候...":"正在思考...";if(ue!==-1)n.value[ue].content=me;else{const mt=`ai_thinking_${$.conversation_id}_${Date.now()}`;I.value=mt,n.value.push({message_id:mt,conversation_id:$.conversation_id,message_type:"ai",msg_type:"text",content:me,sender_name:"Duckula(达寇拉)",created_at:new Date().toISOString()})}}function te($){k.value.push($),k.value.length>3&&k.value.shift(),b.value+=1,console.log("[Store] 动态推荐已接收:",$.title,"未读:",b.value)}function J(){b.value=0}function ge($){const G=k.value.findIndex(ue=>ue.recommend_id===$);G!==-1&&k.value.splice(G,1)}function re($,G){var mt;const ue=(mt=t.value)==null?void 0:mt.conversation_id;if(!ue)return;const me=Et();n.value.push({message_id:`option_select_${Date.now()}`,conversation_id:ue,message_type:"employee",msg_type:"text",content:G,sender_name:me.employeeName||"我",created_at:new Date().toISOString(),status:"sent"}),t0({type:"option_select",data:{conversation_id:ue,option_value:$,option_label:G}})||(console.warn("[Store] WS 未连接,选项选择降级为 HTTP 消息发送"),kc({content:G,msg_type:"text"}).catch(xn=>{console.error("[Store] 选项选择 HTTP 降级发送失败:",xn)})),console.log("[Store] 选项选择已发送:",$,G)}function pe(){if(!I.value)return;const $=n.value.findIndex(G=>G.message_id===I.value);$!==-1&&n.value.splice($,1),I.value=null}const ye=j(null),Ie=j(null),De=j(null);function Ne($){var G;((G=t.value)==null?void 0:G.conversation_id)===$.conversation_id&&(ye.value={position:$.position,segment:$.segment,ahead_count:$.ahead_count,queue_priority:$.queue_priority})}function Ze($){var ue;if(((ue=t.value)==null?void 0:ue.conversation_id)!==$.conversation_id)return;t.value&&(t.value.status="resolved"),De.value={conversation_id:$.conversation_id,resolved_by:$.resolved_by,resolved_method:$.resolved_method,resolve_summary:$.resolve_summary||""},Ie.value=null;const G={message_id:`resolve_${$.conversation_id}_${Date.now()}`,conversation_id:$.conversation_id,message_type:"system",msg_type:"text",content:Oo($.resolved_method),sender_name:"系统",created_at:new Date().toISOString(),status:"sent"};n.value.push(G)}function it($){var ue;if(((ue=t.value)==null?void 0:ue.conversation_id)!==$.conversation_id)return;t.value&&(t.value.status="waiting"),Ie.value={conversation_id:$.conversation_id,resolve_summary:$.resolve_summary||"",agent_name:$.agent_name||"坐席"};const G={message_id:`pending_close_${$.conversation_id}_${Date.now()}`,conversation_id:$.conversation_id,message_type:"system",msg_type:"text",content:`📋 ${$.agent_name||"坐席"}发起了结单请求,请确认`,sender_name:"系统",created_at:new Date().toISOString(),status:"sent"};n.value.push(G)}function Nt($){const G={message_id:`quiz_diag_${$.conversation_id}_${Date.now()}`,conversation_id:$.conversation_id,message_type:"system",msg_type:"text",content:`📝 诊断信息已传递给坐席:${$.question} → ${$.selected_answer}`,sender_name:"系统",created_at:new Date().toISOString(),status:"sent"};n.value.push(G)}function Lt(){Ie.value=null}function Mn(){De.value=null,ye.value=null}function Oo($){return $==="ai_self"?"✅ 问题已解决,会话已关闭。24小时内可重新打开。":$==="agent_confirm"?"✅ 坐席已结单,会话已关闭。24小时内可重新打开。":$==="employee_initiative"?"✅ 会话已关闭。24小时内可重新打开。":$==="system_timeout"?"⏰ 会话因长时间无响应已自动关闭。24小时内可重新打开。":"✅ 会话已关闭。24小时内可重新打开。"}async function bt(){var $;if(!g.value)try{console.log("[Store] 开始初始化应用..."),await Promise.all([ae(),de()]);const G=($=t.value)==null?void 0:$.conversation_id;if(G){const ue=a0(G);if(ue&&ue.length>0){console.log(`[Store] 加载缓存消息 ${ue.length} 条`),n.value=ue;const me=ue[ue.length-1];me&&(h.value=me.message_id)}}Promise.resolve().then(async()=>{try{const ue=await Tc({limit:50});if(ue.items&&ue.items.length>0){const me=ue.items.filter(Oe=>D.value.has(Oe.message_id)?!1:(Q(Oe.message_id),!0));if(me.length>0){G&&n.value.length>0?n.value=l0(n.value,me):n.value=me;const Oe=me[me.length-1];Oe&&(h.value=Oe.message_id),G&&Hs(G,n.value),console.log(`[Store] 历史消息已加载,共 ${n.value.length} 条`)}}}catch(ue){console.warn("[Store] 加载历史消息失败:",ue)}}),setTimeout(()=>{Promise.all([Y(),L()]).catch(ue=>console.warn("[Store] 加载面板数据失败:",ue))},500),se(),g.value=!0,console.log("[Store] 应用初始化完成(缓存优先显示)")}catch(G){console.error("[Store] 应用初始化失败:",G)}}function Mt(){var $;($=t.value)!=null&&$.conversation_id&&r0(t.value.conversation_id),ie()}return{userInfo:e,currentConversation:t,messages:n,loading:s,shaking:o,canCallAgent:i,agentOnline:a,assistantPanelVisible:c,approvalLinks:d,approvalCardVisible:l,approvalCardTriggerText:u,softwareDownloads:f,lastMessageId:h,initialized:g,troubleshootingSteps:m,troubleshootingTemplateName:p,troubleshootingCurrentNode:y,participants:C,participantPanelVisible:R,isLoggedIn:K,hasActiveConversation:F,isParticipant:M,joinedParticipantCount:N,approvalLinksByCategory:O,softwareDownloadsByCategory:Z,handleOAuthCallback:he,fetchUserInfo:ae,fetchCurrentConversation:de,fetchMessages:ne,sendNewMessage:xe,pollNewMessages:Se,startPolling:se,stopPolling:ie,shakeAgent:Te,fetchApprovalLinks:Y,closeApprovalCard:ce,showApprovalCard:S,fetchSoftwareDownloads:L,toggleAssistantPanel:z,switchToConversation:X,leaveAsParticipant:U,toggleParticipantPanel:v,retryMessage:w,updateParticipants:x,handleRemovedFromConversation:B,initialize:bt,cleanup:Mt,handleNewMessage:we,handleAiReplyChunk:W,handleAiReply:H,handleAiReplyFailed:oe,cancelStreamingBubble:pe,handleAiThinking:ee,handleDynamicRecommend:te,clearUnreadRecommend:J,removeRecommend:ge,sendOptionSelect:re,dynamicRecommendations:k,unreadRecommendCount:b,queuePositionData:ye,pendingCloseRequest:Ie,resolvedInfo:De,handleQueuePositionUpdate:Ne,handleConversationResolved:Ze,handlePendingCloseRequest:it,handleQuizDiagnosticAnswer:Nt,clearPendingCloseRequest:Lt,clearResolvedInfo:Mn}}),c0="/h5/v20260806/duckula.webp";function u0(e,t){return Za()?(Qc(e,t),!0):!1}const Lr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const d0=Object.prototype.toString,f0=e=>d0.call(e)==="[object Object]";function h0(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const s=t;t=void 0,s&&await s},n}function pa(e){return Array.isArray(e)?e:[e]}function p0(e,t,n={}){const{immediate:s=!0,immediateCallback:o=!1}=n,i=Bn(!1);let a;function r(){a&&(clearTimeout(a),a=void 0)}function c(){i.value=!1,r()}function d(...l){o&&e(),r(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=void 0,e(...l)},ms(t))}return s&&(i.value=!0,Lr&&d()),u0(c),{isPending:Go(i),start:d,stop:c}}function m0(e,t,n){return ke(e,t,{...n,immediate:!0})}const _0=Lr?window:void 0,jf=Lr?window.navigator:void 0;function g0(e){var t;const n=ms(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function qf(...e){const t=(s,o,i,a)=>(s.addEventListener(o,i,a),()=>s.removeEventListener(o,i,a)),n=q(()=>{const s=pa(ms(e[0])).filter(o=>o!=null);return s.every(o=>typeof o!="string")?s:void 0});return m0(()=>{var s,o;return[(s=(o=n.value)===null||o===void 0?void 0:o.map(i=>g0(i)))!==null&&s!==void 0?s:[_0].filter(i=>i!=null),pa(ms(n.value?e[1]:e[0])),pa(Re(n.value?e[2]:e[1])),ms(n.value?e[3]:e[2])]},([s,o,i,a],r,c)=>{if(!(s!=null&&s.length)||!(o!=null&&o.length)||!(i!=null&&i.length))return;const d=f0(a)?{...a}:a,l=s.flatMap(u=>o.flatMap(f=>i.map(h=>t(u,f,h,d))));c(()=>{l.forEach(u=>u())})},{flush:"post"})}function v0(){const e=Bn(!1),t=Wt();return t&&nt(()=>{e.value=!0},t),e}function Uf(e){const t=v0();return q(()=>(t.value,!!e()))}function Rc(e,t={}){const{controls:n=!1,navigator:s=jf}=t,o=Uf(()=>s&&"permissions"in s),i=Bn(),a=typeof e=="string"?{name:e}:e,r=Bn(),c=()=>{var l,u;r.value=(l=(u=i.value)===null||u===void 0?void 0:u.state)!==null&&l!==void 0?l:"prompt"};qf(i,"change",c,{passive:!0});const d=h0(async()=>{if(o.value){if(!i.value)try{i.value=await s.permissions.query(a)}catch{i.value=void 0}finally{c()}if(n)return Pe(i.value)}});return d(),n?{state:r,isSupported:o,query:d}:r}function y0(e={}){const{navigator:t=jf,read:n=!1,source:s,copiedDuring:o=1500,legacy:i=!1}=e,a=Uf(()=>t&&"clipboard"in t),r=Rc("clipboard-read"),c=Rc("clipboard-write"),d=q(()=>a.value||i),l=Bn(""),u=Bn(!1),f=Bn(!1),h=p0(()=>u.value=!1,o,{immediate:!1});let g=0;async function m(){let b=!(a.value&&k(r.value));if(!b)try{l.value=await t.clipboard.readText()}catch{b=!0}b&&(l.value=R())}d.value&&n&&qf(["copy","cut"],m,{passive:!0});async function p(b){const I=b??ms(s);if(d.value&&I!=null){f.value=!0;let D=!(a.value&&k(c.value));if(!D)try{const K=y(I);await t.clipboard.write([K])}catch{D=!0}if(D)if(typeof I=="string")l.value=I,C(I);else{const K=++g,F=await I();F!=null&&K===g&&(l.value=F,C(F))}u.value=!0,h.start(),f.value=!1}}function y(b){return typeof b=="string"?(l.value=b,new ClipboardItem({"text/plain":b})):new ClipboardItem({"text/plain":b().then((I="")=>(l.value=I,new Blob([I],{type:"text/plain"})))})}function C(b){const I=document.createElement("textarea");I.value=b,I.style.position="absolute",I.style.opacity="0",I.setAttribute("readonly",""),document.body.appendChild(I),I.select(),document.execCommand("copy"),I.remove()}function R(){var b,I,D;return(b=(I=document)===null||I===void 0||(D=I.getSelection)===null||D===void 0||(D=D.call(I))===null||D===void 0?void 0:D.toString())!==null&&b!==void 0?b:""}function k(b){return b==="granted"||b==="prompt"}return{copyPending:Go(f),isSupported:d,text:Go(l),copied:Go(u),copy:p}}async function zf(e,t=!1){return Ve.get("/wecom/jsapi-config",{params:{url:e,with_agent_config:t}})}const b0="https://res.wx.qq.com/open/js/jweixin-1.2.0.js",Ic=8e3,Oc=8e3,w0=1e4,S0=8e3,E0=["agentConfig","thirdPartyOpenPage","checkJsApi"],C0=["thirdPartyOpenPage"];function x0(){const e=j(!1),t=j(!1),n=j(null);let s=!1;function o(){return/wxwork/i.test(navigator.userAgent)}function i(h){const g=h.match(/template_id=([^&]+)/);return g?g[1]:null}function a(h){return h.includes("template_id=")}function r(){return new Promise((h,g)=>{if(typeof window.wx<"u"){h();return}const m=setTimeout(()=>{p.onload=null,p.onerror=null,g(new Error("加载企微 JS-SDK 脚本超时"))},w0),p=document.createElement("script");p.src=b0,p.async=!0,p.onload=()=>{clearTimeout(m),typeof window.wx<"u"?h():g(new Error("JS-SDK 脚本已加载但 window.wx 未挂载"))},p.onerror=()=>{clearTimeout(m),g(new Error("加载企微 JS-SDK 脚本失败"))},document.head.appendChild(p)})}function c(h){return new Promise((g,m)=>{const p=window.wx;if(!p||typeof p.config!="function"){m(new Error("wx.config 不可用,JS-SDK 未正确加载"));return}let y=!1;const C=setTimeout(()=>{y||(y=!0,m(new Error(`wx.config 鉴权超时(${Ic/1e3}秒无响应)`)))},Ic);p.ready(()=>{y||(y=!0,clearTimeout(C),g())}),p.error(R=>{y||(y=!0,clearTimeout(C),m(new Error(`wx.config 失败: ${R.errMsg}`)))}),p.config({beta:!0,debug:!1,appId:h.corp_id,timestamp:h.timestamp,nonceStr:h.nonce_str,signature:h.signature,jsApiList:E0})})}function d(h){return new Promise((g,m)=>{const p=window.wx;if(!p||typeof p.agentConfig!="function"){m(new Error("wx.agentConfig 不可用"));return}let y=!1;const C=setTimeout(()=>{y||(y=!0,m(new Error(`wx.agentConfig 超时(${Oc/1e3}秒无响应)`)))},Oc);p.agentConfig({corpid:h.corp_id,agentid:h.agent_id,timestamp:h.agent_config.timestamp,nonceStr:h.agent_config.nonce_str,signature:h.agent_config.signature,jsApiList:C0,success:()=>{y||(y=!0,clearTimeout(C),g())},fail:R=>{y||(y=!0,clearTimeout(C),m(new Error(`wx.agentConfig 失败: ${R.errMsg}`)))}})})}function l(h){return new Promise(g=>{const m=window.wx;if(!m||typeof m.invoke!="function"){g(!1);return}const p={oaType:"10001",templateId:h,thirdNo:`itsmartdesk_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,extData:{fieldList:[]}};let y=!1;const C=setTimeout(()=>{y||(y=!0,g(!1))},S0);m.invoke("thirdPartyOpenPage",p,R=>{y||(y=!0,clearTimeout(C),g(R.err_msg==="thirdPartyOpenPage:ok"))})})}async function u(){if(!s){t.value=!0,n.value=null;try{await r();const h=window.location.href.split("#")[0],g=await zf(h,!0);if(!g.agent_config)throw new Error("后端未返回 agent_config 签名");await c(g),await d({corp_id:g.corp_id,agent_id:g.agent_id,timestamp:g.timestamp,agent_config:g.agent_config}),s=!0,e.value=!0}catch(h){n.value=(h==null?void 0:h.message)||"JS-SDK 初始化失败"}finally{t.value=!1}}}async function f(h){if(!o()){window.location.href=h;return}if(!a(h)){window.location.href=h;return}const g=i(h);if(!g){window.location.href=h;return}if(s||await u(),!e.value){window.location.href=h;return}await l(g)||(window.location.href=h)}return{isReady:e,isLoading:t,error:n,isWecomEnv:o,openUrl:f,init:u}}const k0={class:"approval-card-inline"},T0={class:"approval-card-inline__header"},A0={class:"approval-card-inline__title-row"},R0={key:0,class:"approval-card-inline__tag"},I0={class:"approval-card-inline__options"},O0=["onClick"],$0={class:"approval-card-inline__option-icon"},P0={class:"approval-card-inline__option-content"},D0={class:"approval-card-inline__option-name"},B0={class:"approval-card-inline__option-desc"},N0=be({__name:"ApprovalCardModal",props:{approvalType:{default:""}},setup(e){const t=e,{openUrl:n}=x0(),s={设备申请:[{name:"IT资产领用",icon:"orders-o",desc:"申请新设备",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4c8qt31AbSHwN9MuaFhYXt4Qwsx6ZLCftAFh6X1w&sp_id=&from=template_list"},{name:"IT资产借用",icon:"orders-o",desc:"临时借用设备",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=3TmACnFs8oqgYcasxVh4BfSMGNX7p9sb6ydBX77mK&sp_id=&from=template_list"},{name:"IT资产升级",icon:"orders-o",desc:"设备升级换新",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=Bs7ucTGsPuFhxfk8pn8EydxrWxkVetB4JR8Pb6PHS&sp_id=&from=template_list"}],账号权限申请:[{name:"VPN账号申请",icon:"lock",desc:"零信任VPN",url:"https://devops.dc.servyou-it.com/ITSM/workflow/service/createTicket?name=%E5%91%98%E5%B7%A5%E9%9B%B6%E4%BF%A1%E4%BB%BB%EF%BC%88%E5%8E%9FVPN%EF%BC%89%E8%B4%A6%E5%8F%B7%E7%94%B3%E8%AF%B7"},{name:"企微外联权限",icon:"lock",desc:"外部联系人权限",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4WrCbZd214XrDMZJiHDho7ZQHWX7gsabb7x2fF72&sp_id=&from=template_list"},{name:"公共邮箱账号",icon:"lock",desc:"共享邮箱",url:"https://devops.dc.servyou-it.com/ITSM/workflow/service/createTicket?name=%E5%85%AC%E5%85%B1%E9%82%AE%E7%AE%B1%E8%B4%A6%E5%8F%B7%E7%94%B3%E8%AF%B7"}],软件服务申请:[{name:"商业软件申请",icon:"apps-o",desc:"正版软件授权",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=3TmACf8DsJy5yr7aymanLskywC4EDhFLuz1KuBBQK&sp_id=&from=template_list"}],资产处置申请:[{name:"IT资产外修",icon:"warn-o",desc:"设备送修",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=Bs7ucTLPo42dtj8Y1LzBoujijsa6geRWaRxZJjk4X&sp_id=&from=template_list"},{name:"IT资产报废",icon:"delete-o",desc:"设备报废",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4WroCDfWuHKyujQjatjm3AjNv67imXk5C6WNooFkb&sp_id=&from=template_list"},{name:"资产退还",icon:"back-top",desc:"退还设备",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4c8qt33AZ52a7n9BBWDh6PmsDnpM5B6w8geqqqoHz&sp_id=&from=template_list"}],办公用品申请:[{name:"办公用品超额领用",icon:"gift-o",desc:"超配额申领",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=3WN6zRucbjycdnR94gBvkSVuXRamX7pKW4PrmNFh&sp_id=&from=template_list"}],会议室故障报修:[{name:"会议室故障报修",icon:"warn-o",desc:"会议室设备故障",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4ZXJMtjQJiPXo6N5vNMK26uPRT3KTi9VvkH2NScg&sp_id=&from=template_list"}],企业应用管理:[{name:"企业应用管理",icon:"apps-o",desc:"企业应用开通管理",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=3WLJnRg2Se1fwizQtNvFtcYMgci1mhRJZhMw2FFKb&sp_id=&from=template_list"}],资产变更确认:[{name:"资产变更确认",icon:"exchange",desc:"资产信息变更",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4cA2owjRcXRRPQ46otZvUHoWNEKL5t25tHHfeePip&sp_id=&from=template_list"}],终端设备网络准入:[{name:"终端设备网络准入申请",icon:"lock",desc:"终端网络准入",url:"https://devops.dc.servyou-it.com/ITSM/workflow/service/createTicket?name=%E7%BB%88%E7%AB%AF%E8%AE%BE%E5%A4%87%E7%BD%91%E7%BB%9C%E5%87%86%E5%85%A5%E7%94%B3%E8%AF%B7"}],活动与会议技术支持:[{name:"活动与会议技术支持",icon:"calendar-o",desc:"活动会议技术保障",url:"https://devops.dc.servyou-it.com/ITSM/workflow/service/createTicket?name=%E6%B4%BB%E5%8A%A8%E4%B8%8E%E4%BC%9A%E8%AE%AE%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81"}],员工IT支持与故障报修:[{name:"员工IT支持与故障报修",icon:"warn-o",desc:"IT支持与故障报修",url:"https://devops.dc.servyou-it.com/ITSM/workflow/service/createTicket?name=%E5%91%98%E5%B7%A5IT%E6%94%AF%E6%8C%81%E4%B8%8E%E6%95%85%E9%9A%9C%E6%8A%A5%E4%BF%AE"}],公共邮箱账号申请:[{name:"公共邮箱账号申请",icon:"lock",desc:"公共邮箱账号",url:"https://devops.dc.servyou-it.com/ITSM/workflow/service/createTicket?name=%E5%85%AC%E5%85%B1%E9%82%AE%E7%AE%B1%E8%B4%A6%E5%8F%B7%E7%94%B3%E8%AF%B7"}]},o=q(()=>t.approvalType&&s[t.approvalType]?s[t.approvalType]:Object.values(s).flat()),i=j([]);async function a(){if(!(i.value.length>0))try{i.value=await Vw()}catch(c){console.error("[ApprovalCard] 加载审批关键词失败:",c)}}nt(()=>{a()});async function r(c){if(c.url){await n(c.url);return}try{const d=i.value.find(l=>l.template_name===t.approvalType||l.keyword===c.name);if(d)if(d.type==="jump"){const l=await jw(d.template_id);await n(l.url)}else Ae("该功能正在开发中");else Ae(`${c.name} — 审批模板配置中,请稍后`)}catch(d){console.error("[ApprovalCard] 打开审批失败:",d),Ae("打开审批失败,请重试")}}return(c,d)=>{const l=It;return T(),A("div",k0,[_("div",T0,[_("div",A0,[E(l,{name:"orders-o",size:"16",color:"#07c160"}),d[0]||(d[0]=_("span",{class:"approval-card-inline__title"},"审批快捷入口",-1)),e.approvalType?(T(),A("span",R0,V(e.approvalType),1)):le("",!0)]),d[1]||(d[1]=_("div",{class:"approval-card-inline__subtitle"}," 检测到您可能需要提交审批,请选择对应类型 ",-1))]),_("div",I0,[(T(!0),A(Ee,null,tt(o.value,u=>(T(),A("div",{key:u.name,class:"approval-card-inline__option",onClick:f=>r(u)},[_("div",$0,[E(l,{name:u.icon,size:"20"},null,8,["name"])]),_("div",P0,[_("div",D0,V(u.name),1),_("div",B0,V(u.desc),1)]),E(l,{name:"arrow",class:"approval-card-inline__option-arrow"})],8,O0))),128))])])}}}),ct=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},L0=ct(N0,[["__scopeId","data-v-8b4eb13d"]]),M0={class:"byod-card__header"},F0={class:"byod-card__title-row"},V0={class:"byod-card__title"},j0={class:"byod-card__subtitle"},q0={class:"byod-card__info-section"},U0={class:"byod-card__info-row"},z0={class:"byod-card__info-value"},H0={key:0,class:"byod-card__info-row"},W0={class:"byod-card__info-value"},K0={key:0,class:"byod-card__notes"},G0={class:"byod-card__notes-title"},J0={class:"byod-card__notes-list"},X0={key:1,class:"byod-card__reason"},Y0={class:"byod-card__reason-text"},Q0={key:2,class:"byod-card__action"},Z0=["href"],e1=be({__name:"ByodSubsidyCard",props:{eligible:{type:Boolean,default:!1},hasSubsidy:{type:Boolean,default:!1},position:{default:""},applicationUrl:{default:""},notes:{default:()=>[]},reason:{default:""},matchedCategory:{default:""}},setup(e){const t=e,n=q(()=>t.eligible?"byod-card--eligible":t.applicationUrl?"byod-card--register":"byod-card--ineligible"),s=q(()=>t.eligible?"passed":t.applicationUrl?"edit":"close"),o=q(()=>t.eligible?"#07c160":t.applicationUrl?"#ff9800":"#969799"),i=q(()=>t.eligible?"自备电脑补贴资格":t.applicationUrl?"自备电脑登记":"自备电脑补贴资格"),a=q(()=>t.eligible?"byod-card__tag--eligible":t.applicationUrl?"byod-card__tag--register":"byod-card__tag--ineligible"),r=q(()=>t.eligible?"可申请":t.applicationUrl?"可登记":"不可申请"),c=q(()=>t.eligible?"您的岗位符合自备电脑补贴申请资格":t.applicationUrl?"您的岗位可进行自备电脑登记(无补贴)":"您的岗位暂不符合自备电脑补贴申请资格");function d(l){l.preventDefault();const u=l.currentTarget.href;u&&(window.location.href=u)}return(l,u)=>{const f=It;return T(),A("div",{class:_e(["byod-card",n.value])},[_("div",M0,[_("div",F0,[E(f,{name:s.value,size:"16",color:o.value},null,8,["name","color"]),_("span",V0,V(i.value),1),_("span",{class:_e(["byod-card__tag",a.value])},V(r.value),3)]),_("div",j0,V(c.value),1)]),_("div",q0,[_("div",U0,[u[0]||(u[0]=_("span",{class:"byod-card__info-label"},"当前岗位",-1)),_("span",z0,V(e.position||"未获取到岗位信息"),1)]),e.matchedCategory?(T(),A("div",H0,[u[1]||(u[1]=_("span",{class:"byod-card__info-label"},"资格类别",-1)),_("span",W0,V(e.matchedCategory),1)])):le("",!0)]),e.notes.length>0?(T(),A("div",K0,[_("div",G0,[E(f,{name:"info-o",size:"13",color:o.value},null,8,["color"]),_("span",null,V(e.eligible?"申请须知":"登记须知"),1)]),_("ul",J0,[(T(!0),A(Ee,null,tt(e.notes,(h,g)=>(T(),A("li",{key:g,class:"byod-card__note-item"},V(h),1))),128))])])):le("",!0),!e.eligible&&e.reason?(T(),A("div",X0,[E(f,{name:"warning-o",size:"14",color:o.value},null,8,["color"]),_("span",Y0,V(e.reason),1)])):le("",!0),e.applicationUrl?(T(),A("div",Q0,[_("a",{href:e.applicationUrl,class:_e(["byod-card__btn",e.eligible?"byod-card__btn--eligible":"byod-card__btn--register"]),onClick:d},[E(f,{name:"arrow",size:"14",color:"#ffffff"}),_("span",null,V(e.eligible?"去申请":"去登记"),1)],10,Z0)])):le("",!0)],2)}}}),t1=ct(e1,[["__scopeId","data-v-2cb33311"]]),n1={class:"contact-card"},s1={class:"contact-card__header"},o1=["src"],i1={key:1},a1={class:"contact-card__name-row"},r1={class:"contact-card__name"},l1={class:"contact-card__dept"},c1={class:"contact-card__body"},u1={class:"contact-card__info-item"},d1={class:"contact-card__info-value contact-card__info-value--highlight"},f1={key:0,class:"contact-card__info-item"},h1={class:"contact-card__info-value"},p1={key:1,class:"contact-card__info-item"},m1={class:"contact-card__info-label"},_1={class:"contact-card__info-value"},g1=be({__name:"ContactCard",props:{contact:{}},setup(e){const t=e,n=q(()=>t.contact.name?t.contact.name.charAt(0):"?"),s=q(()=>{const c=["gradient-1","gradient-2","gradient-3","gradient-4","gradient-5"];if(!t.contact.name)return c[0];const d=t.contact.name.charCodeAt(0);return c[d%c.length]}),o=q(()=>t.contact.gender==="female"?"♀":"♂"),i=q(()=>t.contact.gender==="female"?"gender-female":"gender-male"),a=q(()=>t.contact.business_category==="行政-物业"?"办公地点":"服务区域");function r(){const c=t.contact.wecom_userid;if(!c){Ae("暂时无法发起聊天,请联系管理员");return}const d=window.wx;if(!d||!d.invoke){Ae("暂时无法发起聊天,请联系管理员");return}try{d.invoke("openEnterpriseChat",{userids:c,chatTitle:t.contact.name},l=>{l&&l.err_msg&&l.err_msg!=="openEnterpriseChat:ok"&&(console.error("[ContactCard] openEnterpriseChat 失败:",l.err_msg),Ae("暂时无法发起聊天,请联系管理员"))})}catch(l){console.error("[ContactCard] openEnterpriseChat 调用异常:",l),Ae("暂时无法发起聊天,请联系管理员")}}return(c,d)=>(T(),A("div",n1,[_("div",s1,[_("div",{class:_e(["contact-card__avatar",s.value])},[e.contact.avatar_url?(T(),A("img",{key:0,src:e.contact.avatar_url,alt:"",class:"contact-card__avatar-img"},null,8,o1)):(T(),A("span",i1,V(n.value),1))],2),_("div",a1,[_("div",r1,[je(V(e.contact.name)+" ",1),_("span",{class:_e(["contact-card__gender",i.value])},V(o.value),3)]),_("div",l1,V(e.contact.department)+" · "+V(e.contact.position),1)]),d[0]||(d[0]=_("span",{class:"contact-card__badge"},"员工名片",-1))]),_("div",c1,[_("div",u1,[d[1]||(d[1]=_("span",{class:"contact-card__info-label"},"负责业务",-1)),_("span",d1,V(e.contact.responsibility),1)]),e.contact.extension?(T(),A("div",f1,[d[2]||(d[2]=_("span",{class:"contact-card__info-label"},"分机号",-1)),_("span",h1,V(e.contact.extension),1)])):le("",!0),e.contact.service_area?(T(),A("div",p1,[_("span",m1,V(a.value),1),_("span",_1,V(e.contact.service_area),1)])):le("",!0)]),_("div",{class:"contact-card__footer"},[_("button",{class:"contact-card__action-btn",onClick:r},[...d[3]||(d[3]=[_("span",{class:"contact-card__action-icon"},"💬",-1),_("span",null,"联系TA",-1)])])])]))}}),v1=ct(g1,[["__scopeId","data-v-4fed3877"]]),y1={key:0,class:"message-bubble message-bubble--approval-card"},b1={key:1,class:"message-bubble message-bubble--byod-card"},w1={key:2,class:"message-bubble message-bubble--contact-card"},S1={key:3,class:"message-bubble message-bubble--system"},E1={class:"message-bubble__system-text"},C1={key:0,class:"message-bubble__sender"},x1={key:0,src:c0,class:"message-bubble__ai-avatar",alt:"Duckula"},k1={class:"message-bubble__sender-name"},T1={class:"reply-quote__text"},A1={class:"reply-quote__sender"},R1={key:1,class:"message-bubble__text",style:{"white-space":"pre-wrap"}},I1={class:"message-bubble__text",style:{"white-space":"pre-wrap"}},O1={key:0,class:"ai-options"},$1=["onClick"],P1=["src","alt"],D1={key:1,class:"media-card"},B1={class:"media-card__info"},N1={key:0,class:"media-card__name"},L1=["href"],M1={class:"media-card__info"},F1={class:"media-card__label"},V1={key:0,class:"media-card__size"},j1={key:1,class:"media-card"},q1={class:"media-card__info"},U1={class:"media-card__label"},z1={key:0,class:"media-card__size"},H1={key:5,class:"media-card"},W1={class:"media-card__icon"},K1={class:"media-card__info"},G1={class:"media-card__label"},J1={key:0,class:"media-card__name"},X1={key:1,class:"media-card__size"},Y1={key:6,class:"message-bubble__actions"},Q1=be({__name:"MessageBubble",props:{msg:{}},emits:["scrollToMessage"],setup(e){const t=e,n=$t(),{copy:s}=y0(),o=j(!1),i=j(!1);async function a(){try{await s(t.msg.content),i.value=!0,Ae("已复制"),setTimeout(()=>{i.value=!1},1500)}catch(k){console.error("复制失败:",k)}}const r=q(()=>{const k=[`message-bubble--${t.msg.message_type}`];return t.msg.status==="sending"?k.push("message-bubble--sending"):t.msg.status==="failed"&&k.push("message-bubble--failed"),t.msg.message_type==="ai"&&c.value&&k.push("message-bubble--thinking"),k.join(" ")}),c=q(()=>{if(t.msg.message_type!=="ai")return!1;const k=t.msg.content||"";return k.startsWith("正在思考")||k.startsWith("仍在思考")}),d=q(()=>`message-bubble__content--${t.msg.message_type}`),l=q(()=>t.msg.message_type==="employee"?"message-bubble__time--right":"message-bubble__time--left"),u=q(()=>t.msg.message_type==="agent"?t.msg.sender_name||"IT坐席":t.msg.message_type==="ai"?"Duckula(达寇拉)":t.msg.sender_name),f=q(()=>({image:"🖼️",voice:"🎤",video:"🎬",file:"📎",location:"📍"})[t.msg.msg_type||""]||"📄"),h=q(()=>({image:"图片消息",voice:"语音消息",video:"视频消息",file:"文件消息",location:"位置消息"})[t.msg.msg_type||""]||"媒体消息"),g=q(()=>t.msg.reply_to_id?"...":""),m=q(()=>(t.msg.reply_to_id,""));function p(k){if(!k)return"";const b=new Date(k),I=b.getHours().toString().padStart(2,"0"),D=b.getMinutes().toString().padStart(2,"0");return`${I}:${D}`}function y(k){return k<1024?`${k} B`:k<1024*1024?`${(k/1024).toFixed(1)} KB`:`${(k/(1024*1024)).toFixed(1)} MB`}function C(){var b;const k=t.msg.media_url||((b=t.msg.extra_data)==null?void 0:b.pic_url);k&&window.open(k,"_blank")}function R(k){n.sendOptionSelect(k.value,k.label||k.value)}return(k,b)=>{var I,D,K,F,M,N,O,Z,Q,we,he,ae,de,xe,Se,ne,se,ie,Te,Y;return e.msg.msg_type==="approval_card"?(T(),A("div",y1,[E(L0,{"approval-type":((I=e.msg.extra_data)==null?void 0:I.approval_type)||""},null,8,["approval-type"])])):e.msg.msg_type==="byod_card"?(T(),A("div",b1,[E(t1,{eligible:((K=(D=e.msg.extra_data)==null?void 0:D.byod_result)==null?void 0:K.eligible)??!1,"has-subsidy":((M=(F=e.msg.extra_data)==null?void 0:F.byod_result)==null?void 0:M.has_subsidy)??!1,position:((O=(N=e.msg.extra_data)==null?void 0:N.byod_result)==null?void 0:O.position)??"","application-url":((Q=(Z=e.msg.extra_data)==null?void 0:Z.byod_result)==null?void 0:Q.application_url)??"",notes:((he=(we=e.msg.extra_data)==null?void 0:we.byod_result)==null?void 0:he.notes)??[],reason:((de=(ae=e.msg.extra_data)==null?void 0:ae.byod_result)==null?void 0:de.reason)??"","matched-category":((Se=(xe=e.msg.extra_data)==null?void 0:xe.byod_result)==null?void 0:Se.matched_category)??""},null,8,["eligible","has-subsidy","position","application-url","notes","reason","matched-category"])])):e.msg.msg_type==="contact_card"?(T(),A("div",w1,[E(v1,{contact:((ne=e.msg.extra_data)==null?void 0:ne.contact)??{}},null,8,["contact"])])):e.msg.message_type==="system"?(T(),A("div",S1,[_("span",E1,V(e.msg.content),1)])):(T(),A("div",{key:4,class:_e(["message-bubble",r.value]),onMouseenter:b[2]||(b[2]=ce=>o.value=!0),onMouseleave:b[3]||(b[3]=ce=>o.value=!1)},[e.msg.message_type!=="employee"?(T(),A("div",C1,[e.msg.message_type==="ai"?(T(),A("img",x1)):le("",!0),_("span",k1,V(u.value),1)])):le("",!0),_("div",{class:_e(["message-bubble__content",d.value])},[e.msg.reply_to_id&&g.value?(T(),A("div",{key:0,class:"reply-quote",onClick:b[0]||(b[0]=Dn(ce=>k.$emit("scrollToMessage",e.msg.reply_to_id),["stop"]))},[b[4]||(b[4]=_("div",{class:"reply-quote__bar"},null,-1)),_("div",T1,[_("span",A1,V(m.value),1),je(" "+V(g.value),1)])])):le("",!0),!e.msg.msg_type||e.msg.msg_type==="text"?(T(),A("p",R1,V(e.msg.content),1)):e.msg.msg_type==="ai_structured"?(T(),A(Ee,{key:2},[_("p",I1,V(e.msg.content),1),(ie=(se=e.msg.extra_data)==null?void 0:se.options)!=null&&ie.length?(T(),A("div",O1,[(T(!0),A(Ee,null,tt(e.msg.extra_data.options,(ce,S)=>(T(),A("button",{key:S,class:"ai-options__btn",onClick:Dn(L=>R(ce),["stop"])},V(ce.label||ce.value),9,$1))),128))])):le("",!0)],64)):e.msg.msg_type==="image"?(T(),A("div",{key:3,class:"image-message",onClick:C},[e.msg.media_url||(Te=e.msg.extra_data)!=null&&Te.pic_url?(T(),A("img",{key:0,src:e.msg.media_url||((Y=e.msg.extra_data)==null?void 0:Y.pic_url),alt:e.msg.file_name||"图片",class:"image-message__thumbnail",loading:"lazy"},null,8,P1)):(T(),A("div",D1,[b[6]||(b[6]=_("div",{class:"media-card__icon"},"🖼️",-1)),_("div",B1,[b[5]||(b[5]=_("span",{class:"media-card__label"},"图片消息",-1)),e.msg.file_name?(T(),A("span",N1,V(e.msg.file_name),1)):le("",!0)])]))])):e.msg.msg_type==="file"?(T(),A(Ee,{key:4},[e.msg.media_url?(T(),A("a",{key:0,href:e.msg.media_url,target:"_blank",class:"media-card media-card--link",onClick:b[1]||(b[1]=Dn(()=>{},["stop"]))},[b[7]||(b[7]=_("div",{class:"media-card__icon"},"📎",-1)),_("div",M1,[_("span",F1,V(e.msg.file_name||"文件消息"),1),e.msg.file_size?(T(),A("span",V1,V(y(e.msg.file_size)),1)):le("",!0)])],8,L1)):(T(),A("div",j1,[b[8]||(b[8]=_("div",{class:"media-card__icon"},"📎",-1)),_("div",q1,[_("span",U1,V(e.msg.file_name||"文件消息"),1),e.msg.file_size?(T(),A("span",z1,V(y(e.msg.file_size)),1)):le("",!0)])]))],64)):(T(),A("div",H1,[_("div",W1,V(f.value),1),_("div",K1,[_("span",G1,V(h.value),1),e.msg.file_name?(T(),A("span",J1,V(e.msg.file_name),1)):le("",!0),e.msg.file_size?(T(),A("span",X1,V(y(e.msg.file_size)),1)):le("",!0)])])),o.value?(T(),A("div",Y1,[!e.msg.msg_type||e.msg.msg_type==="text"?(T(),A("button",{key:0,class:"action-btn",title:"复制消息",onClick:Dn(a,["stop"])},V(i.value?"✓":"📋"),1)):le("",!0)])):le("",!0)],2),_("div",{class:_e(["message-bubble__time",l.value])},V(p(e.msg.created_at)),3)],34))}}}),Z1=ct(Q1,[["__scopeId","data-v-9160dbf4"]]);async function ma(e,t="paste"){const n=new FormData;if(e instanceof Blob&&!(e instanceof File)){const s=`${t}_${Date.now()}.png`;n.append("file",e,s)}else n.append("file",e);return await eS(n)}async function eS(e,t=3){for(let n=0;n<=t;n++)try{return await Ve.post("/upload",e,{headers:{"Content-Type":void 0},timeout:6e4})}catch(s){if(n===t)throw s;const o=1e3*Math.pow(2,n);console.warn(`[Upload H5] 上传失败,${o/1e3}秒后重试(第 ${n+1}/${t} 次)`),await new Promise(i=>setTimeout(i,o))}throw new Error("上传失败:已达最大重试次数")}const $c="https://res.wx.qq.com/open/js/jweixin-1.2.0.js",tS=59e3,Pc=8e3,nS=1e4,Dc=!1,Bc=["startRecord","stopRecord","translateVoice","checkJsApi"];function sS(){const e=pt({isReady:!1,isRecording:!1,isTranslating:!1,error:null});let t=!1,n=null;function s(){return new Promise((d,l)=>{if(typeof window.wx<"u"){console.log("[WecomVoice] JS-SDK 已加载(window.wx 存在),跳过动态加载"),d();return}console.log("[WecomVoice] 动态加载 JS-SDK 脚本:",$c);const u=setTimeout(()=>{f.onload=null,f.onerror=null,l(new Error("加载企微 JS-SDK 脚本超时(10秒),请检查网络连接"))},nS),f=document.createElement("script");f.src=$c,f.async=!0,f.onload=()=>{clearTimeout(u),typeof window.wx<"u"?(console.log("[WecomVoice] JS-SDK 脚本加载成功,window.wx 已挂载"),d()):(console.error("[WecomVoice] JS-SDK 脚本已加载,但 window.wx 未挂载"),l(new Error("企微 JS-SDK 脚本已加载,但 window.wx 未挂载")))},f.onerror=()=>{clearTimeout(u),console.error("[WecomVoice] JS-SDK 脚本加载失败"),l(new Error("加载企微 JS-SDK 脚本失败,请检查网络连接"))},document.head.appendChild(f)})}function o(d){return new Promise((l,u)=>{const f=window.wx;if(!f||typeof f.config!="function"){const m="wx.config 不可用,JS-SDK 未正确加载";console.error("[WecomVoice]",m),e.isReady=!1,e.error=m,u(new Error(m));return}let h=!1;const g=setTimeout(()=>{h||(h=!0,e.isReady=!1,e.error=`wx.config 鉴权超时(${Pc/1e3}秒无响应),可能是签名无效或企微环境异常`,console.error("[WecomVoice]",e.error),u(new Error(e.error)))},Pc);f.ready(()=>{h||(h=!0,clearTimeout(g),e.isReady=!0,console.log("[WecomVoice] wx.config 鉴权成功(ready 回调触发)"),l())}),f.error(m=>{h||(h=!0,clearTimeout(g),e.isReady=!1,e.error=`JS-SDK 鉴权失败: ${m.errMsg}`,console.error("[WecomVoice] wx.config 鉴权失败:",m.errMsg),u(new Error(e.error)))}),console.log("[WecomVoice] 调用 wx.config:",{appId:d.corp_id,timestamp:d.timestamp,debug:Dc,jsApiList:Bc}),f.config({beta:!0,debug:Dc,appId:d.corp_id,timestamp:d.timestamp,nonceStr:d.nonce_str,signature:d.signature,jsApiList:Bc})})}async function i(){if(t){console.log("[WecomVoice] 已初始化,跳过");return}console.log("[WecomVoice] ===== 开始初始化 =====");try{console.log("[WecomVoice] Step 1/3: 加载 JS-SDK 脚本"),await s(),console.log("[WecomVoice] Step 2/3: 获取签名配置");const d=window.location.href.split("#")[0];console.log("[WecomVoice] 签名 URL:",d);const l=await zf(d);console.log("[WecomVoice] 签名配置:",{corp_id:l.corp_id,agent_id:l.agent_id,timestamp:l.timestamp,nonce_str:l.nonce_str,signature:l.signature?l.signature.substring(0,10)+"...":"(空)"}),console.log("[WecomVoice] Step 3/3: wx.config 鉴权"),await o(l),window.wx&&typeof window.wx.checkJsApi=="function"&&window.wx.checkJsApi({jsApiList:["startRecord","stopRecord","translateVoice"],success:u=>{console.log("[WecomVoice] checkJsApi 结果:",JSON.stringify(u))},fail:u=>{console.warn("[WecomVoice] checkJsApi 失败(不阻塞):",u)}}),t=!0,e.error=null,console.log("[WecomVoice] ===== 初始化完成 =====")}catch(d){throw e.error=(d==null?void 0:d.message)||"JS-SDK 初始化失败",console.error("[WecomVoice] ===== 初始化失败 =====",e.error),d}}async function a(){if(e.isRecording){console.log("[WecomVoice] 已在录音中,跳过");return}e.isReady||(console.log("[WecomVoice] SDK 未就绪,先调用 init()..."),await i());const d=window.wx;if(!d||typeof d.startRecord!="function"){const l="wx.startRecord 不可用,JS-SDK 未正确初始化";throw console.error("[WecomVoice]",l),e.error=l,new Error(l)}return new Promise((l,u)=>{let f=!1;const h=setTimeout(()=>{f||(f=!0,n&&(clearTimeout(n),n=null),e.error="录音启动超时,当前企微版本可能不支持语音录制接口",console.error("[WecomVoice] startRecord 15秒无回调,可能不支持此接口"),u(new Error(e.error)))},15e3);n=setTimeout(()=>{e.isRecording&&(console.log("[WecomVoice] 59秒自动停止录音"),r().catch(g=>{e.error=`自动停止录音失败: ${(g==null?void 0:g.message)||"未知错误"}`}))},tS),console.log("[WecomVoice] 调用 wx.startRecord..."),d.startRecord({success:()=>{f||(f=!0,clearTimeout(h),e.isRecording=!0,e.error=null,console.log("[WecomVoice] 录音开始成功(startRecord success 回调)"),l())},fail:g=>{f||(f=!0,clearTimeout(h),n&&(clearTimeout(n),n=null),e.error=`开始录音失败: ${g.errMsg}`,console.error("[WecomVoice] 录音开始失败:",g.errMsg),u(new Error(e.error)))},cancel:()=>{f||(f=!0,clearTimeout(h),n&&(clearTimeout(n),n=null),e.error="用户拒绝了录音权限",console.warn("[WecomVoice] 用户拒绝录音权限"),u(new Error(e.error)))}})})}async function r(){const d=window.wx;return n&&(clearTimeout(n),n=null),e.isRecording?(console.log("[WecomVoice] 调用 wx.stopRecord..."),new Promise((l,u)=>{d.stopRecord({success:f=>{e.isRecording=!1;const h=f.localId;if(console.log("[WecomVoice] 停止录音成功,localId:",h),!h){u(new Error("未获取到录音 localId"));return}e.isTranslating=!0,console.log("[WecomVoice] 调用 wx.translateVoice..."),d.translateVoice({localId:h,isShowProgressTips:1,success:g=>{e.isTranslating=!1;const m=(g.translateResult||"").trim();console.log("[WecomVoice] 语音转文字成功:",m),l(m)},fail:g=>{e.isTranslating=!1,e.error=`语音转文字失败: ${g.errMsg}`,console.error("[WecomVoice] 语音转文字失败:",g.errMsg),u(new Error(e.error))}})},fail:f=>{e.isRecording=!1,e.error=`停止录音失败: ${f.errMsg}`,console.error("[WecomVoice] 停止录音失败:",f.errMsg),u(new Error(e.error))}})})):(console.log("[WecomVoice] 未在录音中,跳过 stopAndTranslate"),"")}function c(){const d=navigator.userAgent,l=/wxwork/i.test(d),u=/Mobile|Android|iPhone|iPad|iPod/i.test(d);return l&&u}return{state:e,init:i,startRecording:a,stopAndTranslate:r,isSupported:c}}const oS="/h5/v20260806/assets/agent-avatar-CAhN4NNH.png",Rn=16e3;function iS(e){let t=0;for(const o of e)t+=o.length;const n=new Float32Array(t);let s=0;for(const o of e)n.set(o,s),s+=o.length;return n}function aS(e,t,n){if(t===n)return e;const s=t/n,o=Math.round(e.length/s),i=new Float32Array(o);for(let a=0;a{if(r)return;const g=h.inputBuffer.getChannelData(0);i.push(new Float32Array(g))},s.connect(o),o.connect(t.destination),e.value=!0,console.log(`[AudioRecorder] 录音开始(native=${a}Hz, target=${Rn}Hz)`)}catch(f){l();const h=f;throw(h==null?void 0:h.name)==="NotAllowedError"||(h==null?void 0:h.name)==="SecurityError"?new Error("麦克风权限被拒绝,请在浏览器设置中允许使用麦克风"):(h==null?void 0:h.name)==="NotFoundError"||(h==null?void 0:h.name)==="OverconstrainedError"?new Error("未找到麦克风设备,请检查设备连接"):(h==null?void 0:h.name)==="NotReadableError"?new Error("麦克风被其他程序占用,请关闭后重试"):h instanceof Error?h:new Error((h==null?void 0:h.message)||"录音启动失败")}}function d(){r=!0,l();const u=iS(i),f=a!==Rn?aS(u,a,Rn):u,h=rS(f),g=new Blob([h],{type:"audio/pcm"});return console.log(`[AudioRecorder] 录音停止,PCM 数据: ${g.size} bytes`+(a!==Rn?` (重采样 ${a}→${Rn}Hz)`:"")),e.value=!1,i=[],g}function l(){if(o){try{o.disconnect()}catch{}o.onaudioprocess=null,o=null}if(s){try{s.disconnect()}catch{}s=null}n&&(n.getTracks().forEach(u=>u.stop()),n=null),t&&(t.close().catch(()=>{}),t=null)}return{isRecording:e,start:c,stop:d}}async function cS(e){const t=new FormData;t.append("audio",e,"recording.pcm");const n=await Ve.post("/voice/asr",t,{headers:{"Content-Type":void 0},timeout:3e4});return{text:(n==null?void 0:n.text)||"",error:n==null?void 0:n.error}}const uS={class:"input-bar"},dS={class:"input-bar__row"},fS={key:0,class:"emoji-panel"},hS={class:"emoji-panel__grid"},pS=["onClick"],mS={key:1,class:"input-bar__voice-status"},_S={key:0},gS={key:1},vS={class:"input-bar__input-row"},yS={class:"input-bar__controls"},bS=["title","disabled"],wS=["disabled","title","aria-label"],SS={class:"call-agent-btn__avatar"},ES=["src"],CS={key:0,class:"call-agent-btn__fallback"},xS=["aria-label"],kS={key:1,class:"input-bar__guide"},TS=be({__name:"InputBar",emits:["call-agent"],setup(e,{emit:t}){function n(U){return U?typeof U=="string"?U:Array.isArray(U)?U.map(v=>v.loc&&v.msg?`${v.loc.slice(1).join(".")}: ${v.msg}`:v.msg?v.msg:JSON.stringify(v)).join("; "):typeof U=="object"?JSON.stringify(U):String(U):""}const s=$t(),o=t,i=["电脑无法启动","网络无法连接","多人不能上网","无法上网","开不了机","连不上网","全部断网"],a=q(()=>{const U=s.currentConversation;return!U||U.status==="resolved"?"hidden":h()?"urgent":s.canCallAgent?"active":"disabled"}),r=q(()=>a.value!=="hidden"),c=q(()=>({"call-agent-btn--disabled":a.value==="disabled","call-agent-btn--active":a.value==="active","call-agent-btn--urgent":a.value==="urgent"})),d=q(()=>{const U=s.currentConversation;return U?h()?"urgent":U.status==="serving"?"online":U.status==="waiting"?"waiting":U.status==="resolved"?"end":s.canCallAgent?"online":"offline":"offline"}),l=q(()=>({online:"在线",urgent:"紧急",waiting:"等待中",end:"已结单",offline:"离线"})[d.value]),u=j(!1),f=q(()=>a.value==="urgent"?"检测到紧急问题,直接呼叫人工坐席":a.value==="active"?"点击呼叫人工坐席":"再多描述几句话即可激活");function h(){var v;const U=s.messages.filter(w=>w.message_type==="employee").slice(-5);for(const w of U){const x=((v=w.content)==null?void 0:v.toLowerCase())||"";for(const B of i)if(x.includes(B.toLowerCase()))return!0}return!1}function g(){a.value!=="disabled"&&o("call-agent")}const m=j(""),p=j(null),y=j(null),C=q(()=>m.value.trim().length>0&&!s.loading&&s.isLoggedIn),R=j(!1),k=j(!1),{state:b,init:I,startRecording:D,stopAndTranslate:K,isSupported:F}=sS(),M=q(()=>{if(F())return"wecom";if(navigator.mediaDevices&&typeof navigator.mediaDevices.getUserMedia=="function")return"baidu";const U=navigator.userAgent,v=/wxwork/i.test(U),w=/Mobile|Android|iPhone|iPad|iPod/i.test(U),x=/Macintosh|Mac OS X/i.test(U);return v&&!w&&!x?"baidu":"none"}),N=q(()=>M.value!=="none"),O=lS(),Z=q(()=>O.isRecording.value),Q=j(!1),we=q(()=>M.value==="wecom"?b.isRecording:M.value==="baidu"?Z.value||Q.value:!1);function he(U){return U.length>0&&!U.endsWith(" ")&&!U.endsWith(` `)}nt(()=>{document.addEventListener("paste",ae),document.addEventListener("keydown",z),F()&&I().catch(U=>{console.warn("[InputBar] 企微 JS-SDK 初始化失败:",U)})}),Ln(()=>{document.removeEventListener("paste",ae),document.removeEventListener("keydown",z),O.isRecording.value&&O.stop()});async function ae(U){var x;const v=U.target;if(v.tagName==="TEXTAREA"||v.isContentEditable)return;const w=(x=U.clipboardData)==null?void 0:x.items;if(w){for(const B of Array.from(w))if(B.kind==="file"){U.preventDefault();const W=B.getAsFile();if(!W)continue;W.type.startsWith("image/")?await ie(W):await Te(W);return}}}const de=["😀","😃","😄","😁","😆","😅","🤣","😂","🙂","😊","😇","🥰","😍","🤩","😘","😗","😚","😙","😋","😛","😜","🤪","😝","🤑","🤗","🤭","🤫","🤔","🤐","🤨","😐","😑","😶","😏","😒","🙄","😬","😮","🤯","😲","😳","🥺","😢","😭","😤","😠","😡","🤬","👍","👎","👏","🙌","🤝","💪","✌️","🤞","❤️","🧡","💛","💚","💙","💜","💯","✅"];function xe(U){m.value+=U,k.value=!1,Xe(()=>{var w,x;const v=(x=(w=p.value)==null?void 0:w.$el)==null?void 0:x.querySelector("textarea");v==null||v.focus()})}function Se(U){/Android|iPhone|iPad|iPod/i.test(navigator.userAgent)||U.shiftKey||(U.preventDefault(),ne())}async function ne(){const U=m.value.trim();!U||s.loading||(m.value="",await s.sendNewMessage(U))}async function se(U){var w;const v=(w=U.clipboardData)==null?void 0:w.items;if(v){for(const x of Array.from(v))if(x.kind==="file"){U.preventDefault();const B=x.getAsFile();if(!B)continue;B.type.startsWith("image/")?await ie(B):await Te(B);return}}}async function ie(U){var v,w;try{Ae("图片上传中...");const x=await ma(U),B=U instanceof File?U.name:"截图";await s.sendNewMessage(`[图片] ${B}`,{msg_type:"image",media_url:x.url,file_name:x.filename,file_size:x.file_size}),Ae("图片发送成功")}catch(x){console.error("图片上传失败:",x),Ae(n((w=(v=x==null?void 0:x.response)==null?void 0:v.data)==null?void 0:w.detail)||(x==null?void 0:x.message)||"图片上传失败,请重试")}}async function Te(U){var v,w;try{const x=U instanceof File?U.name:"文件";Ae(`文件上传中: ${x}`);const B=await ma(U);await s.sendNewMessage(`[文件] ${B.filename}`,{msg_type:"file",media_url:B.url,file_name:B.filename,file_size:B.file_size}),Ae("文件发送成功")}catch(x){console.error("文件上传失败:",x),Ae(n((w=(v=x==null?void 0:x.response)==null?void 0:v.data)==null?void 0:w.detail)||(x==null?void 0:x.message)||"文件上传失败,请重试")}}async function Y(U){const v=U.target,w=v.files;if(!(!w||w.length===0)){for(const x of Array.from(w))try{Ae(`正在上传: ${x.name}`);const B=await ma(x);Ae(`${x.name} 上传成功`),console.log("[InputBar] 文件上传成功:",B.url)}catch(B){console.error("文件上传失败:",B),Ae(`${x.name} 上传失败`)}v.value=""}}function ce(){k.value=!k.value}function S(){y.value&&(y.value.accept="",y.value.multiple=!0,y.value.click())}async function L(U){if(U==null||U.preventDefault(),U==null||U.stopPropagation(),M.value!=="none"){if(M.value==="wecom")try{if(b.isRecording){const v=await K();v?(he(m.value)&&(m.value+=" "),m.value+=v,Ae("语音识别完成")):Ae("未识别到语音内容")}else await D(),Ae("正在录音,点击停止")}catch(v){const w=b.error||(v==null?void 0:v.message)||"语音识别失败";Ae(w),console.error("[InputBar] 企微语音识别错误:",v)}else if(M.value==="baidu")if(Z.value){const v=O.stop();if(v.size<1600){Ae("录音过短,请说更多内容");return}Q.value=!0;try{const w=await cS(v);w.error?Ae(w.error):w.text?(he(m.value)&&(m.value+=" "),m.value+=w.text,Ae("语音识别完成")):Ae("未识别到语音内容")}catch(w){Ae((w==null?void 0:w.message)||"语音识别失败"),console.error("[InputBar] 百度ASR识别错误:",w)}finally{Q.value=!1}}else try{await O.start(),Ae("开始语音输入")}catch(v){Ae((v==null?void 0:v.message)||"录音启动失败"),console.error("[InputBar] 百度录音启动失败:",v)}}}function z(U){if(U.ctrlKey&&(U.key==="d"||U.key==="D")){if(U.preventDefault(),!N.value)return;L()}}function X(U){R.value=!0;const v=U.clientY,w=U.target.closest(".input-bar"),x=w?w.offsetHeight:100;function B(H){if(!R.value)return;const oe=v-H.clientY;let ee=x+oe;ee=Math.max(100,Math.min(400,ee)),w&&(w.style.height=`${ee}px`,w.style.flexShrink="0")}function W(){R.value=!1,document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",W),document.body.style.cursor="",document.body.style.userSelect=""}document.body.style.cursor="row-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",B),document.addEventListener("mouseup",W)}return(U,v)=>{const w=xr,x=Ss;return T(),A("div",uS,[_("div",{class:"input-bar__resize-handle",onMousedown:X},[...v[3]||(v[3]=[_("div",{class:"input-bar__resize-track"},null,-1)])],32),_("div",dS,[_("div",{class:"input-bar__toolbar"},[_("button",{class:"input-bar__tool-btn",title:"表情",onClick:ce},[...v[4]||(v[4]=[_("span",null,"😊",-1)])]),_("button",{class:"input-bar__tool-btn",title:"文件",onClick:S},[...v[5]||(v[5]=[_("span",null,"📎",-1)])]),v[6]||(v[6]=_("span",{class:"input-bar__shortcut-hint"},"截图->粘贴:Alt+Shift+A-Ctrl+V ---> Ctrl+V",-1))]),k.value?(T(),A("div",fS,[_("div",hS,[(T(),A(Ee,null,tt(de,B=>_("button",{key:B,class:"emoji-panel__item",onClick:W=>xe(B)},V(B),9,pS)),64))])])):le("",!0),we.value&&M.value==="baidu"?(T(),A("div",mS,[Q.value?(T(),A("span",_S,"正在识别语音...")):(T(),A("span",gS,"正在语音输入... 点击⏹停止"))])):le("",!0),_("div",vS,[E(w,{ref_key:"inputFieldRef",ref:p,modelValue:m.value,"onUpdate:modelValue":v[0]||(v[0]=B=>m.value=B),class:"input-bar__field",placeholder:"请输入消息...",type:"textarea",autosize:{minHeight:54,maxHeight:200},rows:"3",disabled:!Re(s).isLoggedIn,onKeydown:ld(Se,["enter"]),onPaste:se},null,8,["modelValue","disabled"]),_("div",yS,[N.value?(T(),A("button",{key:0,class:_e(["input-bar__voice-btn",{"input-bar__voice-btn--recording":we.value}]),title:Q.value?"正在识别...":we.value?"点击停止":"语音输入 (Ctrl+D)",disabled:Q.value,onMousedown:Dn(L,["prevent"]),onClick:Dn(L,["prevent"]),onTouchstart:Dn(L,["prevent"])},V(Q.value?"⏳":we.value?"⏹":"🎤"),43,bS)):le("",!0),r.value?(T(),A("button",{key:1,class:_e(["call-agent-btn",c.value]),disabled:a.value==="disabled",onClick:g,title:f.value,"aria-label":`人工坐席(${l.value})`},[_("span",SS,[_("img",{src:Re(oS),alt:"人工坐席",class:_e(["call-agent-btn__img",{"call-agent-btn__img--broken":u.value}]),onError:v[1]||(v[1]=B=>u.value=!0)},null,42,ES),u.value?(T(),A("span",CS,"🦆")):le("",!0),_("span",{class:_e(["call-agent-badge",`call-agent-badge--${d.value}`]),"aria-label":l.value},null,10,xS)])],10,wS)):le("",!0),E(x,{class:"input-bar__send-btn",type:"primary",size:"small",disabled:!C.value,loading:Re(s).loading,onClick:ne},{default:Je(()=>[...v[7]||(v[7]=[je(" 发送 ",-1)])]),_:1},8,["disabled","loading"])])])]),k.value?(T(),A("div",{key:0,class:"emoji-panel__overlay",onClick:v[2]||(v[2]=B=>k.value=!1)})):a.value==="active"?(T(),A("div",kS," 请描述你遇到的问题,AI 助手会帮你分析 💡 ")):le("",!0),_("input",{ref_key:"fileInputRef",ref:y,type:"file",style:{display:"none"},onChange:Y},null,544)])}}}),AS=ct(TS,[["__scopeId","data-v-4bc0da3b"]]),RS={key:0,class:"ts-flow"},IS={class:"ts-flow__path"},OS={class:"ts-flow__path-bar"},$S={class:"ts-flow__label"},PS={class:"ts-flow__card"},DS={key:0,class:"ts-flow__question"},BS={class:"ts-flow__question-header"},NS={class:"ts-flow__question-text"},LS={class:"ts-flow__options"},MS=["disabled"],FS=["disabled"],VS={key:1,class:"ts-flow__instruction"},jS={class:"ts-flow__instruction-header"},qS={class:"ts-flow__instruction-title"},US={key:0,class:"ts-flow__instruction-steps"},zS={class:"ts-flow__sub-dot"},HS={class:"ts-flow__sub-label"},WS={key:2,class:"ts-flow__waiting"},KS={class:"ts-flow__sync-status"},GS=be({__name:"TroubleshootFlow",setup(e){const t=$t(),n=j(!1),s=q(()=>t.troubleshootingSteps||[]),o=q(()=>t.troubleshootingTemplateName||"排查中"),i=q(()=>t.troubleshootingCurrentNode||null);function a(c){var d,l;if(!n.value){n.value=!0;try{i.value&&(i.value.status="done");const u=c==="yes"?(d=i.value)==null?void 0:d.yes_branch:(l=i.value)==null?void 0:l.no_branch;u&&(t.troubleshootingCurrentNode=u,u.status="current",u.type==="step"&&r(u)),console.log("[TroubleshootFlow] 用户选择:",c,"下一节点:",u==null?void 0:u.label)}finally{setTimeout(()=>{n.value=!1},500)}}}function r(c){const d=t.troubleshootingSteps;if(!d||d.length===0)return;const l=d.findIndex(u=>u.label===c.label);if(l>=0){const u=d.map((f,h)=>({...f,status:h{var l,u;return s.value.length>0?(T(),A("div",RS,[_("div",IS,[_("div",OS,[(T(!0),A(Ee,null,tt(s.value,(f,h)=>(T(),A(Ee,{key:h},[_("div",{class:_e(["ts-flow__step",`ts-flow__step--${f.status}`])},[_("span",{class:_e(["ts-flow__dot",`ts-flow__dot--${f.status}`])},[f.status==="done"?(T(),A(Ee,{key:0},[je("✓")],64)):(T(),A(Ee,{key:1},[je(V(h+1),1)],64))],2),_("span",$S,V(f.label),1)],2),ha("yes")),disabled:n.value},[d[3]||(d[3]=_("span",{class:"ts-flow__option-icon"},"✅",-1)),_("span",null,V(((l=i.value.yes_branch)==null?void 0:l.label)||"是"),1)],8,MS),_("button",{class:"ts-flow__option ts-flow__option--no",onClick:d[1]||(d[1]=f=>a("no")),disabled:n.value},[d[4]||(d[4]=_("span",{class:"ts-flow__option-icon"},"❌",-1)),_("span",null,V(((u=i.value.no_branch)==null?void 0:u.label)||"否"),1)],8,FS)])])):i.value&&i.value.type==="step"?(T(),A("div",VS,[_("div",jS,[d[5]||(d[5]=_("span",{class:"ts-flow__instruction-icon"},"📋",-1)),_("span",qS,"正在执行:"+V(i.value.label),1)]),i.value.children&&i.value.children.length>0?(T(),A("div",US,[(T(!0),A(Ee,null,tt(i.value.children,(f,h)=>(T(),A("div",{key:f.id,class:_e(["ts-flow__sub-step",`ts-flow__sub-step--${f.status||"pending"}`])},[_("span",zS,V(h+1),1),_("span",HS,V(f.label),1)],2))),128))])):le("",!0),d[6]||(d[6]=_("div",{class:"ts-flow__instruction-hint"},[_("span",null,"💡 请按坐席指引操作,完成后坐席会推进到下一步")],-1))])):(T(),A("div",WS,[...d[7]||(d[7]=[_("span",{class:"ts-flow__waiting-icon"},"⏳",-1),_("span",null,"坐席正在选择排查流程,请稍候...",-1)])])),_("div",KS,[d[8]||(d[8]=_("span",{class:"ts-flow__sync-dot"},null,-1)),_("span",null,"排查进度实时同步 · "+V(o.value),1)])])])):le("",!0)}}}),JS=ct(GS,[["__scopeId","data-v-5814bcf9"]]),Hf={primary_agent:"#3b82f6",collaborator:"#07C160",owner:"#FF9800",invitee:"transparent"};function Wf(){const e=$t(),t=Et(),n=q(()=>{var a;return((a=e.userInfo)==null?void 0:a.employee_id)||""}),s=q(()=>{var d;const a=e.currentConversation;if(!a)return[];const r=[];if(a.agent_name&&r.push({id:a.agent_id||"agent_primary",name:a.agent_name,avatar:"",department:"IT坐席",role:"primary_agent",joined:!0,isSelf:!1}),a.employee_name){const l=a.employee_id===n.value;r.push({id:a.employee_id,name:l?"我":a.employee_name,avatar:l&&((d=t.employeeInfo)==null?void 0:d.avatar)||"",department:"",role:"owner",joined:!0,isSelf:l})}const c=(e.participants||[]).slice().sort((l,u)=>l.joined!==u.joined?l.joined?-1:1:l.joined_at&&u.joined_at?new Date(l.joined_at).getTime()-new Date(u.joined_at).getTime():0);for(const l of c)r.push({id:l.id,name:l.name,avatar:l.avatar||"",department:l.department||"",role:"invitee",joined:l.joined??!1,isSelf:l.id===n.value,joinedAt:l.joined_at});return r}),o=q(()=>s.value.length),i=q(()=>s.value.some(a=>!a.joined));return{normalizedParticipants:s,totalCount:o,hasPending:i,currentUserId:n}}const XS={class:"participant-strip__count"},YS={class:"participant-strip__avatars"},QS=["src","alt","onError"],ZS={key:1,class:"participant-strip__avatar-letter"},eE={key:0,class:"participant-strip__overflow"},tE={key:0,class:"participant-strip__badge-dot"},Nc=4,nE=be({__name:"ParticipantStrip",setup(e){const t=$t(),n=j({}),{normalizedParticipants:s,totalCount:o,hasPending:i}=Wf(),a=q(()=>s.value.slice(0,Nc)),r=q(()=>Math.max(0,s.value.length-Nc));function c(l){return(l||"?").charAt(0)}function d(){t.participantPanelVisible=!0}return(l,u)=>(T(),A("div",{class:_e(["participant-strip",{"participant-strip--has-pending":Re(i)}]),onClick:d},[_("span",XS,V(Re(o))+"人在群",1),_("div",YS,[(T(!0),A(Ee,null,tt(a.value,f=>(T(),A("div",{key:f.id,class:_e(["participant-strip__avatar",{"participant-strip__avatar--self":f.isSelf}]),style:ln({borderColor:Re(Hf)[f.role]})},[f.avatar&&!n.value[f.id]?(T(),A("img",{key:0,src:f.avatar,alt:f.name,class:"participant-strip__avatar-img",onError:h=>n.value[f.id]=!0},null,40,QS)):(T(),A("span",ZS,V(c(f.name)),1))],6))),128)),r.value>0?(T(),A("span",eE," +"+V(r.value),1)):le("",!0)]),u[0]||(u[0]=_("span",{class:"participant-strip__arrow"},"▼",-1)),Re(i)?(T(),A("span",tE)):le("",!0)],2))}}),sE=ct(nE,[["__scopeId","data-v-f280255a"]]);async function oE(e){return await Ve.get("/h5/employees/search",{params:{keyword:e}})}async function iE(){return await Ve.get("/h5/org/tree")}async function aE(e,t,n="recent10"){return await Ve.post(`/h5/conversations/${e}/invite-participant`,{participants:t,history_mode:n})}const rE={class:"invite-sheet"},lE={class:"invite-sheet__header"},cE={class:"invite-sheet__content"},uE={key:0,class:"invite-sheet__loading"},dE={key:1,class:"invite-sheet__empty"},fE={key:2},hE=["onClick"],pE={class:"invite-cell__avatar"},mE={class:"invite-cell__info"},_E={class:"invite-cell__name"},gE={key:0,class:"invite-cell__dept"},vE={key:0,class:"invite-cell__badge"},yE={class:"invite-sheet__content"},bE={key:0,class:"invite-sheet__loading"},wE={class:"invite-collapse__count"},SE=["onClick"],EE={class:"invite-cell__avatar"},CE={class:"invite-cell__info"},xE={class:"invite-cell__name"},kE={key:0,class:"invite-cell__dept"},TE={key:0,class:"invite-cell__badge"},AE={class:"invite-sheet__footer"},RE={class:"invite-sheet__count"},IE=be({__name:"InviteParticipantSheet",props:{show:{type:Boolean,default:!1},conversationId:{default:""},existingParticipantIds:{default:()=>[]}},emits:["update:show","invited"],setup(e,{emit:t}){const n=e,s=t,o=j(0),i=j(""),a=j([]),r=j(!1),c=j([]),d=j(!1),l=j(!1),u=j([]),f=j(!1),h=j(new Map),g=q(()=>h.value.size);function m(M){return(M||"?").charAt(0)}function p(M){return h.value.has(M)}function y(M){return n.existingParticipantIds.includes(M)}function C(M){y(M.id)||(h.value.has(M.id)?h.value.delete(M.id):h.value.set(M.id,M))}function R(M){C({id:M.id,name:M.name,department:M.department||""})}function k(M){C({id:M.id,name:M.label,department:M.department||""})}let b=null;function I(M){b&&clearTimeout(b),b=setTimeout(()=>{D(M)},300)}async function D(M){const N=(M||"").trim();if(!N){a.value=[];return}r.value=!0;try{a.value=await oE(N)}catch(O){console.error("[InviteSheet] 搜索失败:",O)}finally{r.value=!1}}async function K(){if(!l.value){d.value=!0;try{c.value=await iE(),l.value=!0,c.value.length>0&&(u.value=[c.value[0].id])}catch(M){console.error("[InviteSheet] 获取组织架构树失败:",M)}finally{d.value=!1}}}async function F(){if(!(g.value===0||!n.conversationId)){f.value=!0;try{const M=Array.from(h.value.values()).map(N=>({id:N.id,name:N.name,department:N.department,type:"employee"}));await aE(n.conversationId,M,"recent10"),Ae("邀请已发送"),h.value.clear(),s("update:show",!1),s("invited")}catch(M){console.error("[InviteSheet] 邀请失败:",M)}finally{f.value=!1}}}return ke(()=>n.show,M=>{M&&(h.value.clear(),i.value="",a.value=[],o.value=0)}),ke(o,M=>{M===1&&!l.value&&!d.value&&K()}),(M,N)=>{const O=xv,Z=Co,Q=Gg,we=gg,he=Jd,ae=sv,de=Qg,xe=vg,Se=Ss,ne=Os;return T(),Rt(ne,{show:e.show,position:"bottom",round:"",teleport:"body",style:{maxHeight:"85vh",minHeight:"50vh"},"onUpdate:show":N[4]||(N[4]=se=>M.$emit("update:show",se))},{default:Je(()=>[_("div",rE,[_("div",lE,[N[5]||(N[5]=_("span",{class:"invite-sheet__title"},"邀请参与者",-1)),_("button",{class:"invite-sheet__close",onClick:N[0]||(N[0]=se=>M.$emit("update:show",!1))}," × ")]),E(xe,{active:o.value,"onUpdate:active":N[3]||(N[3]=se=>o.value=se),shrink:""},{default:Je(()=>[E(we,{title:"搜索"},{default:Je(()=>[E(O,{modelValue:i.value,"onUpdate:modelValue":[N[1]||(N[1]=se=>i.value=se),I],placeholder:"搜索姓名或工号",shape:"round"},null,8,["modelValue"]),_("div",cE,[r.value?(T(),A("div",uE,[E(Z,{type:"spinner",size:"24px"},{default:Je(()=>[...N[6]||(N[6]=[je("搜索中...",-1)])]),_:1})])):i.value&&a.value.length===0?(T(),A("div",dE," 未找到匹配的员工 ")):(T(),A("div",fE,[(T(!0),A(Ee,null,tt(a.value,se=>(T(),A("div",{key:se.id,class:_e(["invite-cell",{"invite-cell--disabled":y(se.id)}]),onClick:ie=>R(se)},[E(Q,{"model-value":p(se.id),disabled:y(se.id),shape:"square"},null,8,["model-value","disabled"]),_("div",pE,V(m(se.name)),1),_("div",mE,[_("span",_E,V(se.name),1),se.department?(T(),A("span",gE,V(se.department),1)):le("",!0)]),y(se.id)?(T(),A("span",vE,"已在会话中")):le("",!0)],10,hE))),128))]))])]),_:1}),E(we,{title:"组织架构"},{default:Je(()=>[_("div",yE,[d.value?(T(),A("div",bE,[E(Z,{type:"spinner",size:"24px"},{default:Je(()=>[...N[7]||(N[7]=[je("加载中...",-1)])]),_:1})])):c.value.length===0?(T(),Rt(he,{key:1,description:"暂无组织架构数据",image:"search"})):(T(),Rt(de,{key:2,modelValue:u.value,"onUpdate:modelValue":N[2]||(N[2]=se=>u.value=se)},{default:Je(()=>[(T(!0),A(Ee,null,tt(c.value,se=>(T(),Rt(ae,{key:se.id,name:se.id,title:se.label},{"right-icon":Je(()=>[_("span",wE,V((se.children||[]).length)+"人 ",1)]),default:Je(()=>[(T(!0),A(Ee,null,tt(se.children||[],ie=>(T(),A("div",{key:ie.id,class:_e(["invite-cell",{"invite-cell--disabled":y(ie.id)}]),onClick:Te=>k(ie)},[E(Q,{"model-value":p(ie.id),disabled:y(ie.id),shape:"square"},null,8,["model-value","disabled"]),_("div",EE,V(m(ie.label)),1),_("div",CE,[_("span",xE,V(ie.label),1),ie.department?(T(),A("span",kE,V(ie.department),1)):le("",!0)]),y(ie.id)?(T(),A("span",TE,"已在会话中")):le("",!0)],10,SE))),128))]),_:2},1032,["name","title"]))),128))]),_:1},8,["modelValue"]))])]),_:1})]),_:1},8,["active"]),_("div",AE,[_("span",RE,[N[8]||(N[8]=je(" 已选 ",-1)),_("strong",null,V(g.value),1),N[9]||(N[9]=je(" 人 ",-1))]),E(Se,{type:"success",size:"small",round:"",loading:f.value,disabled:g.value===0||!e.conversationId,onClick:F},{default:Je(()=>[...N[10]||(N[10]=[je(" 确认邀请 ",-1)])]),_:1},8,["loading","disabled"])])])]),_:1},8,["show"])}}}),OE=ct(IE,[["__scopeId","data-v-ce7d4fbf"]]),$E={class:"participant-list"},PE={class:"participant-list__header"},DE={class:"participant-list__items"},BE=["src","alt","onError"],NE={key:1,class:"participant-item__avatar-letter"},LE={class:"participant-item__info"},ME={class:"participant-item__name"},FE={key:0,class:"participant-item__self-tag"},VE={key:0,class:"participant-item__dept"},jE={key:0,class:"participant-item__badge participant-item__badge--agent"},qE={key:1,class:"participant-item__badge participant-item__badge--owner"},UE={key:2,class:"participant-item__badge participant-item__badge--joined"},zE={key:3,class:"participant-item__badge participant-item__badge--pending"},HE={key:0,class:"participant-list__invite-section"},WE={key:1,class:"participant-list__footer"},KE=["disabled"],GE=be({__name:"ParticipantList",setup(e){const t=$t(),n=Et(),s=j(!1),o=j({}),{normalizedParticipants:i}=Wf(),a=j(!1),r=q(()=>{const f=t.currentConversation;return f?f.employee_id===n.employeeId?!0:i.value.some(h=>h.id===n.employeeId):!1}),c=q(()=>i.value.map(f=>f.id).filter(Boolean));async function d(){a.value=!1,await t.fetchCurrentConversation()}function l(f){return(f||"?").charAt(0)}async function u(){try{await mv({title:"退出会话",message:"确定要退出该会话吗?退出后将无法查看会话消息。",confirmButtonText:"确定退出",cancelButtonText:"再想想",confirmButtonColor:"#ee0a24"}),s.value=!0,await t.leaveAsParticipant(),Ae("已退出会话"),t.participantPanelVisible=!1}catch(f){f!=="cancel"&&(console.error("[ParticipantList] 退出失败:",f),Ae("退出失败,请重试"))}finally{s.value=!1}}return(f,h)=>{var g;return T(),A("div",$E,[_("div",PE,[h[3]||(h[3]=_("span",{class:"participant-list__title"},"参与者",-1)),_("button",{class:"participant-list__close-btn",onClick:h[0]||(h[0]=m=>Re(t).participantPanelVisible=!1)}," × ")]),_("div",DE,[(T(!0),A(Ee,null,tt(Re(i),m=>(T(),A("div",{key:m.id,class:_e(["participant-item",{"participant-item--self":m.isSelf}])},[_("div",{class:_e(["participant-item__avatar",{"participant-item__avatar--self":m.isSelf,"participant-item__avatar--agent":m.role==="primary_agent"}]),style:ln({borderColor:Re(Hf)[m.role]})},[m.avatar&&!o.value[m.id]?(T(),A("img",{key:0,src:m.avatar,alt:m.name,class:"participant-item__avatar-img",onError:p=>o.value[m.id]=!0},null,40,BE)):(T(),A("span",NE,V(l(m.name)),1))],6),_("div",LE,[_("span",ME,[je(V(m.name)+" ",1),m.isSelf?(T(),A("span",FE,"(我)")):le("",!0)]),m.department?(T(),A("span",VE,V(m.department),1)):le("",!0)]),m.role==="primary_agent"?(T(),A("span",jE,"坐席")):m.role==="owner"?(T(),A("span",qE,"发起人")):m.joined?(T(),A("span",UE,"已加入")):(T(),A("span",zE,"待加入"))],2))),128))]),r.value?(T(),A("div",HE,[_("button",{class:"participant-list__invite-btn",onClick:h[1]||(h[1]=m=>a.value=!0)},[...h[4]||(h[4]=[_("span",{class:"participant-list__invite-icon"},"+",-1),je(" 邀请参与者 ",-1)])])])):le("",!0),Re(t).isParticipant?(T(),A("div",WE,[_("button",{class:"participant-list__leave-btn",disabled:s.value,onClick:u},V(s.value?"退出中...":"退出会话"),9,KE)])):le("",!0),E(OE,{show:a.value,"onUpdate:show":h[2]||(h[2]=m=>a.value=m),"conversation-id":((g=Re(t).currentConversation)==null?void 0:g.conversation_id)||"","existing-participant-ids":c.value,onInvited:d},null,8,["show","conversation-id","existing-participant-ids"])])}}}),JE=ct(GE,[["__scopeId","data-v-df70b1a6"]]),XE={class:"evaluation-dialog"},YE={class:"evaluation-dialog__section"},QE={class:"star-rating"},ZE={class:"star-label"},eC={class:"evaluation-dialog__section"},tC={class:"emoji-selector"},nC={class:"evaluation-dialog__section"},sC={class:"evaluation-dialog__actions"},oC={class:"evaluation-dialog__skip"},iC=be({__name:"EvaluationDialog",props:{modelValue:{type:Boolean,default:!1},conversationId:{default:""}},emits:["update:modelValue","submitted"],setup(e,{expose:t,emit:n}){const s=e,o=n,i=q({get:()=>s.modelValue,set:m=>o("update:modelValue",m)}),a=j({star_rating:0,emoji:"",feedback_text:""}),r=j(!1),c=q(()=>({0:"",1:"非常差",2:"较差",3:"一般",4:"满意",5:"非常满意"})[a.value.star_rating]||""),d=q(()=>a.value.star_rating>0&&a.value.emoji!=="");ke(i,async m=>{if(m&&s.conversationId)try{await Ww(s.conversationId)&&(i.value=!1,Ae("您已评价过该会话"))}catch(p){console.warn("[EvaluationDialog] 检查评价状态失败:",p)}});function l(m){a.value.emoji=m}function u(m){m>=4?a.value.emoji="satisfied":m>=2?a.value.emoji="neutral":a.value.emoji="dissatisfied"}async function f(){var m,p;if(!(!d.value||r.value)){r.value=!0;try{await Hw(s.conversationId,{star_rating:a.value.star_rating,emoji:a.value.emoji,feedback_text:a.value.feedback_text||void 0}),Ae("评价成功,感谢您的反馈!"),i.value=!1,o("submitted")}catch(y){console.error("[EvaluationDialog] 提交评价失败:",y);const C=((p=(m=y==null?void 0:y.response)==null?void 0:m.data)==null?void 0:p.message)||"提交失败,请稍后重试";Ae(C)}finally{r.value=!1}}}function h(){i.value=!1}function g(){a.value={star_rating:0,emoji:"",feedback_text:""},r.value=!1}return t({resetForm:g}),(m,p)=>{const y=bv,C=xr,R=Ss,k=Os;return T(),Rt(k,{show:i.value,"onUpdate:show":p[5]||(p[5]=b=>i.value=b),round:"","close-on-click-overlay":!1,class:"evaluation-popup"},{default:Je(()=>[_("div",XE,[p[14]||(p[14]=_("div",{class:"evaluation-dialog__header"},[_("h3",{class:"evaluation-dialog__title"},"请对本次服务进行评价"),_("p",{class:"evaluation-dialog__subtitle"},"您的评价对我们非常重要")],-1)),_("div",YE,[p[6]||(p[6]=_("div",{class:"evaluation-dialog__label"},"服务评分",-1)),_("div",QE,[E(y,{modelValue:a.value.star_rating,"onUpdate:modelValue":p[0]||(p[0]=b=>a.value.star_rating=b),count:5,size:"32",color:"#FFD21E","void-color":"#E5E5E5",onChange:u},null,8,["modelValue"]),_("span",ZE,V(c.value),1)])]),_("div",eC,[p[10]||(p[10]=_("div",{class:"evaluation-dialog__label"},"整体感受",-1)),_("div",tC,[_("div",{class:_e(["emoji-item",{"emoji-item--selected":a.value.emoji==="satisfied"}]),onClick:p[1]||(p[1]=b=>l("satisfied"))},[...p[7]||(p[7]=[_("span",{class:"emoji-icon"},"😀",-1),_("span",{class:"emoji-text"},"满意",-1)])],2),_("div",{class:_e(["emoji-item",{"emoji-item--selected":a.value.emoji==="neutral"}]),onClick:p[2]||(p[2]=b=>l("neutral"))},[...p[8]||(p[8]=[_("span",{class:"emoji-icon"},"😐",-1),_("span",{class:"emoji-text"},"一般",-1)])],2),_("div",{class:_e(["emoji-item",{"emoji-item--selected":a.value.emoji==="dissatisfied"}]),onClick:p[3]||(p[3]=b=>l("dissatisfied"))},[...p[9]||(p[9]=[_("span",{class:"emoji-icon"},"😞",-1),_("span",{class:"emoji-text"},"不满意",-1)])],2)])]),_("div",nC,[p[11]||(p[11]=_("div",{class:"evaluation-dialog__label"},[je(" 改进建议 "),_("span",{class:"evaluation-dialog__optional"},"(选填)")],-1)),E(C,{modelValue:a.value.feedback_text,"onUpdate:modelValue":p[4]||(p[4]=b=>a.value.feedback_text=b),type:"textarea",placeholder:"您对本次服务有什么建议?",maxlength:"200","show-word-limit":"",rows:"3",class:"evaluation-dialog__textarea"},null,8,["modelValue"])]),_("div",sC,[E(R,{type:"primary",size:"large",loading:r.value,disabled:!d.value,onClick:f},{default:Je(()=>[...p[12]||(p[12]=[je(" 提交评价 ",-1)])]),_:1},8,["loading","disabled"])]),_("div",oC,[E(R,{size:"small",type:"default",disabled:r.value,onClick:h},{default:Je(()=>[...p[13]||(p[13]=[je(" 暂不评价 ",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["show"])}}}),aC=ct(iC,[["__scopeId","data-v-f4a30d2d"]]),rC={class:"chat-panel"},lC={class:"chat-panel__header"},cC={class:"chat-panel__header-left"},uC={key:0,class:"chat-panel__status chat-panel__status--online"},dC={key:1,class:"chat-panel__status chat-panel__status--offline"},fC={class:"chat-panel__header-actions"},hC=["title"],pC={class:"chat-panel__user-info"},mC=["src","alt"],_C={key:1,class:"chat-panel__avatar chat-panel__avatar--fallback"},gC={class:"chat-panel__username"},vC={key:0,class:"chat-panel__troubleshoot-fixed"},yC={key:0,class:"chat-panel__not-logged"},bC={key:1,class:"chat-panel__empty"},wC=be({__name:"ChatPanel",setup(e){const t=$t(),n=nf(),s=Et(),o=j(!1),i=q(()=>{const p=s.employeeName;return p?p.charAt(0).toUpperCase():"?"});function a(){o.value=!0}const r=j(null),c=j(!1),d=j(""),l=j(""),u=j(!0);async function f(){await Xe(),r.value&&(r.value.scrollTop=r.value.scrollHeight)}function h(){if(!r.value)return;const{scrollTop:p,scrollHeight:y,clientHeight:C}=r.value;u.value=y-p-C<100}async function g(){if(!t.currentConversation){Ae("会话未就绪,请稍后再试");return}Fg({message:"正在呼叫人工坐席...",forbidClick:!0,duration:0});try{await t.shakeAgent(),zl()}catch(p){zl(),Ae("呼叫失败,请稍后重试"),console.error("[ChatPanel] handleDirectCall failed:",p)}}function m(){console.log("[ChatPanel] 评价已提交")}return ke(()=>t.messages.length,()=>{f()}),ke(()=>{var p;return(p=t.currentConversation)==null?void 0:p.conversation_id},()=>{t.participantPanelVisible=!1}),ke(()=>{var p;return(p=t.currentConversation)==null?void 0:p.status},(p,y)=>{var C;if(y==="serving"&&p==="resolved"){const R=(C=t.currentConversation)==null?void 0:C.conversation_id;R&&setTimeout(()=>{d.value=R,c.value=!0},3e3)}l.value=p||""}),nt(()=>{var p;f(),l.value=((p=t.currentConversation)==null?void 0:p.status)||""}),(p,y)=>{var k,b;const C=Jd,R=Os;return T(),A("div",rC,[_("div",lC,[_("div",cC,[y[5]||(y[5]=_("span",{class:"logo-block"},"IT",-1)),y[6]||(y[6]=_("span",{class:"chat-panel__title"},"智能IT服务",-1)),Re(t).agentOnline?(T(),A("span",uC,[...y[3]||(y[3]=[_("span",{class:"chat-panel__status-dot"},null,-1),je(" 坐席在线 ",-1)])])):(T(),A("span",dC,[...y[4]||(y[4]=[_("span",{class:"chat-panel__status-dot"},null,-1),je(" 坐席离线 ",-1)])]))]),_("div",fC,[_("div",{class:"theme-switch",title:Re(n).currentTheme==="light"?"切换到深色模式":"切换到浅色模式",onClick:y[0]||(y[0]=I=>Re(n).toggleTheme())},[...y[7]||(y[7]=[_("span",{class:"switch-icon"},"☀️",-1),_("div",{class:"switch-track"},[_("div",{class:"switch-thumb"})],-1),_("span",{class:"switch-icon"},"🌙",-1)])],8,hC),_("div",pC,[(k=Re(s).employeeInfo)!=null&&k.avatar&&!o.value?(T(),A("img",{key:0,src:Re(s).employeeInfo.avatar,class:"chat-panel__avatar",alt:Re(s).employeeName,onError:a},null,40,mC)):(T(),A("span",_C,V(i.value),1)),_("span",gC,V(Re(s).employeeName),1)])])]),(b=Re(t).troubleshootingSteps)!=null&&b.length?(T(),A("div",vC,[E(JS)])):le("",!0),Re(t).participants.length>0?(T(),Rt(sE,{key:1})):le("",!0),_("div",{ref_key:"messageListRef",ref:r,class:"chat-panel__messages",onScroll:h},[Re(t).isLoggedIn?Re(t).messages.length===0?(T(),A("div",bC,[...y[8]||(y[8]=[_("div",{class:"chat-panel__empty-icon"},"💬",-1),_("p",{class:"chat-panel__empty-text"},"暂无消息",-1),_("p",{class:"chat-panel__empty-hint"},'输入问题咨询,或点击下方"人工坐席"按钮',-1)])])):(T(!0),A(Ee,{key:2},tt(Re(t).messages,I=>(T(),Rt(Z1,{key:I.message_id,msg:I},null,8,["msg"]))),128)):(T(),A("div",yC,[E(C,{description:"正在获取身份信息...",image:"search"})]))],544),E(AS,{onCallAgent:g}),E(aC,{modelValue:c.value,"onUpdate:modelValue":y[1]||(y[1]=I=>c.value=I),"conversation-id":d.value,onSubmitted:m},null,8,["modelValue","conversation-id"]),E(R,{show:Re(t).participantPanelVisible,"onUpdate:show":y[2]||(y[2]=I=>Re(t).participantPanelVisible=I),position:"bottom",round:"",teleport:"body",style:{maxHeight:"60vh"}},{default:Je(()=>[E(JE)]),_:1},8,["show"])])}}}),SC=ct(wC,[["__scopeId","data-v-caf4d918"]]);function EC(){return Ve.get("/h5/it-health")}const CC={class:"basic-info-card"},xC={key:0,class:"basic-info-card__loading"},kC={class:"basic-info-card__tabs"},TC={key:0,class:"basic-info-card__current"},AC={class:"device-header"},RC={class:"device-header__left"},IC={class:"device-header__name"},OC={class:"info-grid"},$C={class:"info-grid__main"},PC={class:"info-row"},DC={class:"info-row__value"},BC={class:"info-row__value"},NC={class:"info-row"},LC={class:"info-row__value"},MC={class:"info-row__value"},FC={class:"info-row"},VC={class:"info-row__value"},jC={class:"info-row__value"},qC={class:"info-row"},UC={class:"info-row__value"},zC={class:"info-row__value"},HC={class:"health-badge__score"},WC={key:0,class:"perf-section"},KC={key:0,class:"perf-item"},GC={class:"perf-item__header"},JC={class:"perf-item__value"},XC={class:"perf-item__bar"},YC={key:1,class:"perf-item"},QC={class:"perf-item__header"},ZC={class:"perf-item__value"},ex={class:"perf-item__bar"},tx={class:"perf-item__header"},nx={class:"perf-item__label"},sx={class:"perf-item__value"},ox={class:"perf-item__bar"},ix={key:1,class:"data-source-badge"},ax={key:1,class:"basic-info-card__other"},rx={key:0,class:"other-empty"},lx={key:1,class:"other-list"},cx={class:"other-item__left"},ux={class:"other-item__type"},dx={class:"other-item__name"},fx={class:"other-item__right"},hx={class:"other-item__time"},px={class:"other-item__location"},mx=be({__name:"BasicInfoCard",setup(e){const t=j("current"),n=j(!0),s=j("mock"),o=j({deviceName:"",isOnline:!0,assetTag:"",activateDate:"",ipAddress:"",publicIp:"",location:"",os:"",mac:"",uptime:"",cpu:{usage:0,model:""},memory:{usage:0,total:""},disks:[],securityChecks:[],complianceChecks:[],healthScore:100}),i=j([]);nt(async()=>{await a()});async function a(){n.value=!0;try{const l=await EC();if(l){const u=l.current_device;o.value={deviceName:u.device_name,isOnline:u.is_online,assetTag:u.asset_tag,activateDate:u.activate_date,ipAddress:u.ip_address,publicIp:u.public_ip,location:u.location,os:u.os,mac:u.mac,uptime:u.uptime,cpu:u.cpu,memory:u.memory,disks:u.disks,securityChecks:u.security_checks,complianceChecks:u.compliance_checks,healthScore:u.health_score??100},i.value=(l.other_devices||[]).map(f=>({deviceType:f.device_type||"设备",deviceName:f.device_name||"",lastLoginTime:f.last_login_time||"",lastLoginLocation:f.last_login_location||""})),s.value=l.data_source||"mock"}}catch(l){console.warn("[BasicInfoCard] IT 健康数据获取失败,使用降级数据:",l),s.value="mock"}finally{n.value=!1}}const r=q(()=>{if(o.value.healthScore!==void 0)return o.value.healthScore;let l=100;for(const u of o.value.securityChecks)u.status==="danger"?l-=15:u.status==="warning"&&(l-=8);for(const u of o.value.complianceChecks)u.status==="warning"?l-=5:u.status==="danger"&&(l-=10);return o.value.isOnline||(l=Math.round(l*.6)),Math.max(0,l)}),c=q(()=>{const l=r.value;return l>=80?"good":l>=60?"fair":"poor"});function d(l){return l>85?"fill--danger":l>60?"fill--warning":"fill--normal"}return(l,u)=>{var f,h,g,m,p;return T(),A("div",CC,[n.value?(T(),A("div",xC,[...u[2]||(u[2]=[_("span",null,"正在获取设备信息...",-1)])])):(T(),A(Ee,{key:1},[_("div",kC,[_("button",{class:_e(["tab-btn",{"tab-btn--active":t.value==="current"}]),onClick:u[0]||(u[0]=y=>t.value="current")}," 当前设备 ",2),_("button",{class:_e(["tab-btn",{"tab-btn--active":t.value==="other"}]),onClick:u[1]||(u[1]=y=>t.value="other")}," 其他设备 ("+V(i.value.length)+") ",3)]),t.value==="current"?(T(),A("div",TC,[_("div",AC,[_("div",RC,[_("span",{class:_e(["device-header__dot",o.value.isOnline?"dot--online":"dot--offline"])},null,2),_("span",IC,V(o.value.deviceName),1)]),_("span",{class:_e(["device-header__status",o.value.isOnline?"status--online":"status--offline"])},V(o.value.isOnline?"在线":"离线"),3)]),_("div",OC,[_("div",$C,[_("div",PC,[u[3]||(u[3]=_("span",{class:"info-row__label"},"资产编号",-1)),_("span",DC,V(o.value.assetTag||"-"),1),u[4]||(u[4]=_("span",{class:"info-row__label info-row__label--indent"},"启用时间",-1)),_("span",BC,V(o.value.activateDate||"-"),1)]),_("div",NC,[u[5]||(u[5]=_("span",{class:"info-row__label"},"内网IP",-1)),_("span",LC,V(o.value.ipAddress||"-"),1),u[6]||(u[6]=_("span",{class:"info-row__label info-row__label--indent"},"公网出口",-1)),_("span",MC,V(o.value.publicIp||"-"),1)]),_("div",FC,[u[7]||(u[7]=_("span",{class:"info-row__label"},"办公地点",-1)),_("span",VC,V(o.value.location||"-"),1),u[8]||(u[8]=_("span",{class:"info-row__label info-row__label--indent"},"操作系统",-1)),_("span",jC,V(o.value.os||"-"),1)]),_("div",qC,[u[9]||(u[9]=_("span",{class:"info-row__label"},"MAC地址",-1)),_("span",UC,V(o.value.mac||"-"),1),u[10]||(u[10]=_("span",{class:"info-row__label info-row__label--indent"},"运行时长",-1)),_("span",zC,V(o.value.uptime||"-"),1)])]),_("div",{class:_e(["health-badge",`health-badge--${c.value}`])},[_("span",HC,V(r.value),1),u[11]||(u[11]=_("span",{class:"health-badge__label"},"健康评分",-1))],2)]),(f=o.value.cpu)!=null&&f.model||(h=o.value.memory)!=null&&h.total||(g=o.value.disks)!=null&&g.length?(T(),A("div",WC,[(m=o.value.cpu)!=null&&m.model?(T(),A("div",KC,[_("div",GC,[u[12]||(u[12]=_("span",{class:"perf-item__label"},"CPU",-1)),_("span",JC,V(o.value.cpu.usage)+"% · "+V(o.value.cpu.model),1)]),_("div",XC,[_("div",{class:_e(["perf-item__fill",d(o.value.cpu.usage)]),style:ln({width:o.value.cpu.usage+"%"})},null,6)])])):le("",!0),(p=o.value.memory)!=null&&p.total?(T(),A("div",YC,[_("div",QC,[u[13]||(u[13]=_("span",{class:"perf-item__label"},"内存",-1)),_("span",ZC,V(o.value.memory.usage)+"% · "+V(o.value.memory.total),1)]),_("div",ex,[_("div",{class:_e(["perf-item__fill",d(o.value.memory.usage)]),style:ln({width:o.value.memory.usage+"%"})},null,6)])])):le("",!0),(T(!0),A(Ee,null,tt(o.value.disks,y=>(T(),A("div",{class:"perf-item",key:y.label},[_("div",tx,[_("span",nx,V(y.label),1),_("span",sx,V(y.usage)+"% · "+V(y.used)+"/"+V(y.total),1)]),_("div",ox,[_("div",{class:_e(["perf-item__fill",d(y.usage)]),style:ln({width:y.usage+"%"})},null,6)])]))),128))])):le("",!0),s.value==="mock"?(T(),A("div",ix," ⚠️ 数据来源:模拟(集成未配置) ")):le("",!0)])):(T(),A("div",ax,[i.value.length===0?(T(),A("div",rx," 暂无其他设备 ")):(T(),A("div",lx,[(T(!0),A(Ee,null,tt(i.value,y=>(T(),A("div",{key:y.deviceName,class:"other-item"},[_("div",cx,[_("span",ux,V(y.deviceType),1),_("span",dx,V(y.deviceName),1)]),_("div",fx,[_("span",hx,V(y.lastLoginTime),1),_("span",px,V(y.lastLoginLocation),1)])]))),128))]))]))],64))])}}}),_x=ct(mx,[["__scopeId","data-v-425685ff"]]),gx={class:"self-diag"},vx={class:"self-diag__header"},yx=["disabled"],bx={class:"self-diag__tabs"},wx=["onClick"],Sx={key:0,class:"tab-btn__badge"},Ex={class:"self-diag__content"},Cx={class:"diag-chips"},xx=["disabled","onClick"],kx={class:"diag-chip__name"},Tx={class:"diag-chip__icon"},Ax={key:0,class:"diag-results"},Rx={class:"result-item__header"},Ix={class:"result-item__name"},Ox={key:0,class:"result-item__detail"},$x={key:1,class:"risk-list"},Px=["onClick"],Dx={class:"risk-item__icon"},Bx={class:"risk-item__name"},Nx={class:"risk-item__toggle"},Lx={key:0,class:"risk-item__detail"},Mx=["onClick"],Fx=be({__name:"SelfDiagnosis",setup(e){const t=j([{key:"network",label:"网络联通",diagItems:[{key:"net_connect",label:"网络连通性",status:"idle",detail:""},{key:"net_dns",label:"DNS解析",status:"idle",detail:""},{key:"net_gateway",label:"网关检测",status:"idle",detail:""},{key:"net_proxy",label:"代理检测",status:"idle",detail:""},{key:"net_vpn",label:"VPN诊断",status:"idle",detail:""},{key:"net_fileshare",label:"文件共享",status:"idle",detail:""}],riskItems:[]},{key:"account",label:"账号权限",diagItems:[],riskItems:[{key:"ad_password",label:"域账号密码到期",icon:"🔑",level:"warning",statusText:"5天",detailLines:["到期时间: 2026-07-17 14:30","修改方式: Ctrl+Alt+Del → 更改密码","密码规则: 至少8位, 含大小写字母+数字+特殊字符"],actionText:"查看修改指南"},{key:"zero_trust",label:"零信任账号",icon:"🛡️",level:"normal",statusText:"正常",detailLines:["账号状态: 正常","最近登录: 2026-07-12 08:45","登录设备: DESKTOP-SIMON01"],actionText:""},{key:"cloud_disk",label:"税友云盘",icon:"☁️",level:"normal",statusText:"正常",detailLines:["状态: 正常","已用容量: 12.3GB / 50GB","最近同步: 2026-07-12 09:00"],actionText:""},{key:"email_status",label:"税友邮箱",icon:"📧",level:"normal",statusText:"正常",detailLines:["邮箱: songxian@servyou.com.cn","密码到期: 2026-08-15","容量: 2.1GB / 5GB"],actionText:""}]},{key:"hardware",label:"设备硬件",diagItems:[],riskItems:[{key:"hw_cpu",label:"CPU 使用率",icon:"🔲",level:"normal",statusText:"23%",detailLines:["型号: Intel i7-12700 (12核)","当前使用率: 23%","温度: 52°C (正常)","阈值: 使用率 >85% 或温度 >85°C 触发警告"],actionText:""},{key:"hw_memory",label:"内存健康",icon:"📏",level:"normal",statusText:"45%",detailLines:["总容量: 16GB","已用: 7.2GB (45%)","类型: DDR5-4800","阈值: 使用率 >85% 触发警告"],actionText:""},{key:"hw_disk",label:"硬盘SMART",icon:"💿",level:"warning",statusText:"1个警告",detailLines:["C盘 (SSD 256GB): SMART 正常, 使用率 67%","D盘 (SSD 256GB): SMART 正常, 使用率 43%","警告: C盘剩余空间不足 84GB (<100GB)","建议: 清理临时文件或迁移大文件至D盘"],actionText:"查看清理建议"},{key:"hw_driver",label:"驱动状态",icon:"🔌",level:"normal",statusText:"正常",detailLines:["显卡驱动: NVIDIA 552.22 (最新)","网卡驱动: Intel 12.2.1 (最新)","声卡驱动: Realtek 6.0 (最新)","蓝牙驱动: 正常"],actionText:""},{key:"hw_peripheral",label:"外设连接",icon:"🖱️",level:"normal",statusText:"3个设备",detailLines:["显示器: DELL U2723QE (USB-C 连接)","键鼠: 罗技 MX Keys + MX Master (蓝牙)","打印机: \\\\print-srv\\HP-5F (网络)","摄像头: 内置 (正常)"],actionText:""}]},{key:"system",label:"系统软件",diagItems:[{key:"sys_service",label:"系统服务",status:"idle",detail:""},{key:"sys_cert",label:"证书检测",status:"idle",detail:""}],riskItems:[{key:"sys_patches",label:"系统补丁",icon:"🔧",level:"warning",statusText:"2个高危",detailLines:["KB5037: Windows 安全更新 (高危)","KB5039: .NET Framework 更新 (高危)","建议: 尽快安装, 可联系IT协助"],actionText:"申请安装补丁"},{key:"sys_risk_sw",label:"高危软件",icon:"📦",level:"normal",statusText:"未发现",detailLines:["扫描时间: 2026-07-12 09:00","结果: 未发现高危软件"],actionText:""},{key:"sys_email_client",label:"邮件客户端",icon:"📧",level:"warning",statusText:"配置异常",detailLines:["客户端: Outlook 2019","问题: 邮箱密码可能已过期","建议: 检查邮箱密码或重新配置"],actionText:"查看配置指南"},{key:"sys_printer",label:"打印机状态",icon:"🖨️",level:"normal",statusText:"正常",detailLines:["默认打印机: \\\\print-srv\\HP-5F","状态: 在线, 墨粉充足","队列: 0 个任务"],actionText:""}]},{key:"security",label:"终端安全",diagItems:[],riskItems:[{key:"sec_huorong",label:"火绒安装",icon:"🛡️",level:"normal",statusText:"已安装",detailLines:["版本: v2.4.1","病毒库: 2026-07-12","最近全盘扫描: 2026-07-01"],actionText:""},{key:"sec_virus",label:"病毒状态",icon:"🦠",level:"normal",statusText:"安全",detailLines:["状态: 无病毒事件","最近扫描: 2026-07-01 全盘扫描","实时防护: 已开启"],actionText:""},{key:"sec_internal",label:"内部攻击",icon:"⚔️",level:"pending",statusText:"接入中",detailLines:["数据源: SIEM/IDS (接入中)","预计完成: 2026-Q4","当前状态: 暂无数据"],actionText:""},{key:"sec_proxy",label:"网络代理",icon:"🌐",level:"pending",statusText:"接入中",detailLines:["数据源: 联软网络准入 (接入中)","预计完成: 2026-Q4","当前状态: 暂无数据"],actionText:""}]},{key:"compliance",label:"合规检查",diagItems:[],riskItems:[{key:"comp_byod",label:"自备电脑",icon:"💻",level:"normal",statusText:"公司配发",detailLines:["设备类型: 公司配发设备","资产编号: SY-PC-00821","登记状态: 已登记"],actionText:""},{key:"comp_unapproved",label:"未审批商业软件",icon:"📋",level:"warning",statusText:"1个未审批",detailLines:["软件: Adobe Photoshop 2024 (未审批)","发现时间: 2026-07-10","建议: 提交软件安装审批申请"],actionText:"提交审批申请"}]}]),n=j("network"),s=pt(new Set),o=j(!1),i=q(()=>t.value.find(g=>g.key===n.value)||t.value[0]),a=q(()=>t.value.map(g=>{const m=g.diagItems.filter(y=>y.status==="warning"||y.status==="fail").length,p=g.riskItems.filter(y=>y.level==="warning"||y.level==="danger").length;return{key:g.key,label:g.label,badge:m+p}})),r=q(()=>i.value.diagItems.some(g=>g.status==="pass"||g.status==="warning"||g.status==="fail")),c={net_connect:{status:"pass",detail:"ping 10.90.5.1 -> 2ms, 丢包率 0%"},net_dns:{status:"pass",detail:"DNS解析正常, 解析时间 3ms"},net_gateway:{status:"pass",detail:"默认网关 10.90.5.1 可达"},net_proxy:{status:"warning",detail:"检测到系统代理 127.0.0.1:8080, 可能影响内网访问"},net_vpn:{status:"fail",detail:"aTrust VPN 连接超时 (10s), 可能需要重新认证"},net_fileshare:{status:"pass",detail:"文件服务器 \\\\file-srv 可访问"},sys_service:{status:"pass",detail:"关键服务运行正常 (5/5): DHCP, DNS, Windows Update, Firewall, Defender"},sys_cert:{status:"fail",detail:"发现1个过期证书: CN=old-ca (过期日: 2025-12-01), 建议更新"}};async function d(g){const m=i.value.diagItems.find(y=>y.key===g);if(!m||m.status==="running")return;m.status="running",m.detail="",await new Promise(y=>setTimeout(y,800+Math.random()*700));const p=c[g];p?(m.status=p.status,m.detail=p.detail):(m.status="pass",m.detail="诊断完成")}async function l(){if(i.value.diagItems.length!==0){o.value=!0;for(const g of i.value.diagItems)await d(g.key);o.value=!1}}function u(g){s.has(g)?s.delete(g):s.add(g)}function f(g){console.log("[Diag] risk action:",g.key,g.actionText)}function h(g){switch(g){case"pass":return"通过";case"warning":return"警告";case"fail":return"失败";default:return""}}return(g,m)=>(T(),A("div",gx,[_("div",vx,[m[0]||(m[0]=_("span",{class:"header__title"},"自助诊断",-1)),i.value.diagItems.length>0?(T(),A("button",{key:0,class:"header__btn",disabled:o.value,onClick:l},V(o.value?"诊断中...":"一键诊断"),9,yx)):le("",!0)]),_("div",bx,[(T(!0),A(Ee,null,tt(a.value,p=>(T(),A("button",{key:p.key,class:_e(["tab-btn",{"tab-btn--active":n.value===p.key}]),onClick:y=>n.value=p.key},[je(V(p.label)+" ",1),p.badge>0?(T(),A("span",Sx,V(p.badge),1)):le("",!0)],10,wx))),128))]),_("div",Ex,[i.value.diagItems.length>0?(T(),A(Ee,{key:0},[_("div",Cx,[(T(!0),A(Ee,null,tt(i.value.diagItems,p=>(T(),A("button",{key:p.key,class:_e(["diag-chip",`diag-chip--${p.status}`]),disabled:p.status==="running",onClick:y=>d(p.key)},[_("span",kx,V(p.label),1),_("span",Tx,[p.status==="running"?(T(),A(Ee,{key:0},[je("...")],64)):p.status==="pass"?(T(),A(Ee,{key:1},[je("✓")],64)):p.status==="warning"?(T(),A(Ee,{key:2},[je("!")],64)):p.status==="fail"?(T(),A(Ee,{key:3},[je("✕")],64)):(T(),A(Ee,{key:4},[je("›")],64))])],10,xx))),128))]),r.value?(T(),A("div",Ax,[m[1]||(m[1]=_("div",{class:"diag-results__label"},"诊断结果",-1)),(T(!0),A(Ee,null,tt(i.value.diagItems.filter(p=>p.status==="pass"||p.status==="warning"||p.status==="fail"),p=>(T(),A("div",{key:p.key,class:_e(["result-item",`result-item--${p.status}`])},[_("div",Rx,[_("span",Ix,V(p.label),1),_("span",{class:_e(["result-item__status",`result-item__status--${p.status}`])},V(h(p.status)),3)]),p.detail?(T(),A("div",Ox,V(p.detail),1)):le("",!0)],2))),128))])):le("",!0)],64)):le("",!0),i.value.riskItems.length>0?(T(),A("div",$x,[(T(!0),A(Ee,null,tt(i.value.riskItems,p=>(T(),A("div",{key:p.key,class:_e(["risk-item",[`risk-item--${p.level}`,{"risk-item--pending":p.level==="pending"}]])},[_("div",{class:"risk-item__header",onClick:y=>u(p.key)},[_("span",Dx,V(p.icon),1),_("span",Bx,V(p.label),1),_("span",{class:_e(["risk-item__status",`risk-item__status--${p.level}`])},V(p.statusText),3),_("span",Nx,V(s.has(p.key)?"▴":"▾"),1)],8,Px),s.has(p.key)?(T(),A("div",Lx,[(T(!0),A(Ee,null,tt(p.detailLines,y=>(T(),A("div",{key:y,class:"detail-line"},V(y),1))),128)),p.actionText?(T(),A("button",{key:0,class:"risk-item__action",onClick:Dn(y=>f(p),["stop"])},V(p.actionText),9,Mx)):le("",!0)])):le("",!0)],2))),128))])):le("",!0)])]))}}),Vx=ct(Fx,[["__scopeId","data-v-925458fe"]]),jx={class:"dynamic-recommend"},qx={key:0,class:"dynamic-recommend__empty"},Ux={key:1,class:"dynamic-recommend__list"},zx={class:"recommend-card__header"},Hx={class:"recommend-card__icon"},Wx={class:"recommend-card__title"},Kx=["onClick"],Gx={key:0,class:"recommend-card__desc"},Jx=["onClick"],Xx=["onClick"],Yx={key:3,class:"recommend-card__confidence"},Qx=be({__name:"DynamicRecommend",setup(e){const t=$t(),n=q(()=>t.dynamicRecommendations),s=q(()=>new URLSearchParams(window.location.search).has("debug"));function o(c){return{approval:"📋",action:"⚡",info:"ℹ️"}[c]||"💡"}function i(c){t.removeRecommend(c)}function a(c){c.approval_type&&console.log("[DynamicRecommend] 打开审批表单:",c.approval_type)}function r(c){console.log("[DynamicRecommend] 执行操作:",c.title)}return nt(()=>{t.clearUnreadRecommend()}),(c,d)=>(T(),A("div",jx,[n.value.length===0?(T(),A("div",qx,[...d[0]||(d[0]=[_("div",{class:"dynamic-recommend__empty-icon"},"💡",-1),_("p",{class:"dynamic-recommend__empty-text"},"暂无智能推荐",-1),_("p",{class:"dynamic-recommend__empty-hint"},"向 Duckula 提问后将显示相关推荐",-1)])])):(T(),A("div",Ux,[(T(!0),A(Ee,null,tt(n.value,l=>(T(),A("div",{key:l.recommend_id,class:_e(["recommend-card",`recommend-card--${l.card_type}`])},[_("div",zx,[_("span",Hx,V(o(l.card_type)),1),_("span",Wx,V(l.title),1),_("button",{class:"recommend-card__close",title:"关闭推荐",onClick:u=>i(l.recommend_id)}," × ",8,Kx)]),l.description?(T(),A("p",Gx,V(l.description),1)):le("",!0),l.card_type==="approval"&&l.approval_type?(T(),A("button",{key:1,class:"recommend-card__btn",onClick:u=>a(l)}," 打开审批表单 ",8,Jx)):l.card_type==="action"?(T(),A("button",{key:2,class:"recommend-card__btn",onClick:u=>r(l)}," 立即执行 ",8,Xx)):le("",!0),s.value?(T(),A("div",Yx," 置信度: "+V(Math.round(l.confidence*100))+"% ",1)):le("",!0)],2))),128))]))]))}}),Zx=ct(Qx,[["__scopeId","data-v-4a5b6df0"]]);function ek(e){return Ve.get("/h5/queue/status",{params:{employee_id:e}})}function tk(e,t){return Ve.get("/h5/quiz/question",{params:{employee_id:e,conversation_id:t||void 0}})}function nk(e){return Ve.post("/h5/quiz/answer",e)}const sk={class:"queue-waiting"},ok={class:"queue-waiting__segment-badge"},ik={class:"segment-badge__icon"},ak={class:"segment-badge__text"},rk={class:"queue-waiting__position-number"},lk={key:0,class:"queue-waiting__ahead"},ck={key:1,class:"queue-waiting__ahead queue-waiting__ahead--first"},uk={key:2,class:"queue-waiting__ahead"},dk={key:3,class:"queue-waiting__eta"},fk={key:4,class:"queue-waiting__jump-progress"},hk={class:"jump-progress__header"},pk={class:"jump-progress__priority"},mk={class:"jump-progress__bar"},_k={key:0,class:"jump-progress__check"},gk={key:0,class:"jump-progress__hint"},vk={key:1,class:"jump-progress__hint jump-progress__hint--max"},yk={class:"queue-waiting__stats"},bk={class:"stats__grid"},wk={class:"stats__item"},Sk={class:"stats__value"},Ek={class:"stats__item stats__item--queued"},Ck={class:"stats__value"},xk={class:"stats__item stats__item--serving"},kk={class:"stats__value"},Tk={class:"stats__item stats__item--ai"},Ak={class:"stats__value"},Rk={key:0,class:"queue-waiting__points"},Ik={class:"level-badge__icon"},Ok={class:"level-badge__name"},$k={class:"points__info"},Pk={class:"points__value"},Dk={key:0,class:"points__next"},Bk={key:1,class:"points__next points__next--max"},Nk={class:"queue-waiting__quiz"},Lk={class:"quiz__header"},Mk={class:"quiz__title"},Fk={key:0,class:"quiz__type-badge quiz__type-badge--diag"},Vk={key:1,class:"quiz__type-badge quiz__type-badge--knowledge"},jk={key:0,class:"quiz__loading"},qk={key:1,class:"quiz__empty"},Uk={class:"quiz__question"},zk={class:"quiz__options"},Hk=["disabled","onClick"],Wk={class:"quiz__option-label"},Kk={class:"quiz__option-text"},Gk={key:0,class:"quiz__result-icon"},Jk={key:1,class:"quiz__result-icon"},Xk={class:"quiz__result-content"},Yk={class:"quiz__result-text"},Qk={key:0,class:"quiz__result-explanation"},Zk={key:1,class:"quiz__result-jump"},eT={key:3,class:"quiz__no-more"},tT=be({__name:"QueueWaiting",setup(e,{expose:t}){const n=$t(),s=Et(),o=j(null),i=j(null),a=j(!1),r=j(!1),c=j(-1),d=j(null);let l=null;const u=["A","B","C","D","E","F"],f=q(()=>{var N,O;return((O=(N=o.value)==null?void 0:N.queue)==null?void 0:O.position)||0}),h=q(()=>{var N,O;return((O=(N=o.value)==null?void 0:N.queue)==null?void 0:O.estimated_wait_text)||""}),g=q(()=>{var N;return((N=o.value)==null?void 0:N.platform)||{total_active:0,queued:0,serving:0,ai_handling:0}}),m=q(()=>{var N;return((N=o.value)==null?void 0:N.points)||null}),p=q(()=>{var O,Z;const N=(Z=(O=o.value)==null?void 0:O.queue)==null?void 0:Z.segment;return N==="vip"?"⭐":N==="completed"?"✅":N==="incomplete"?"⏳":"📋"}),y=q(()=>{var O,Z;const N=(Z=(O=o.value)==null?void 0:O.queue)==null?void 0:Z.segment;return{"position-card--vip":N==="vip","position-card--completed":N==="completed","position-card--incomplete":N==="incomplete"}}),C=q(()=>{var Z;const N=((Z=m.value)==null?void 0:Z.level_index)||1;return["🐣","🌱","⚡","🔥","👑"][Math.min(N-1,4)]||"⭐"}),R=q(()=>{var N;return((N=i.value)==null?void 0:N.type)==="diagnostic"?"回答问题帮助坐席更快定位":"答题赢积分+插队"});function k(){return s.employeeId||localStorage.getItem("employee_id")||""}function b(){var N;return((N=n.currentConversation)==null?void 0:N.conversation_id)||null}async function I(){const N=k();if(N)try{const O=await ek(N);o.value=O}catch(O){console.error("[QueueWaiting] 加载排队状态失败:",O)}}async function D(){const N=k();if(N){a.value=!0;try{const O=await tk(N,b());i.value=O,r.value=!1,c.value=-1,d.value=null}catch(O){console.error("[QueueWaiting] 加载题目失败:",O),i.value=null}finally{a.value=!1}}}function K(N){i.value=N,r.value=!1,c.value=-1,d.value=null}async function F(N){var Z;if(r.value||!i.value)return;const O=k();if(O){r.value=!0,c.value=N;try{const Q=await nk({employee_id:O,question_id:i.value.question_id,selected_index:N,conversation_id:b()});d.value=Q,Q.queue_priority_changed&&await I(),o.value&&Q.points!==void 0&&(o.value.points={points:Q.points,level_name:Q.level_name,level_index:Q.level_index,to_next_level:0,next_level_name:null}),(Z=o.value)!=null&&Z.quiz&&(o.value.quiz.answered_in_session=Q.answered_in_session,o.value.quiz.queue_priority=Q.queue_priority,o.value.quiz.remaining_for_next_jump=Q.remaining_for_next_jump,o.value.quiz.can_jump_more=Q.can_jump_more)}catch(Q){console.error("[QueueWaiting] 提交答案失败:",Q),r.value=!1}}}function M(N){var O;(O=o.value)!=null&&O.queue&&(o.value.queue.position=N.position,o.value.queue.segment=N.segment,o.value.queue.ahead_count=N.ahead_count,o.value.queue.queue_priority=N.queue_priority)}return nt(async()=>{var O;await I();const N=(O=o.value)==null?void 0:O.conversation_status;(N==="queued"||N==="ai_handling")&&await D(),l=setInterval(async()=>{await I()},15e3)}),Ln(()=>{l&&(clearInterval(l),l=null)}),t({handleQueuePositionUpdate:M,loadQueueStatus:I,loadQuestion:D,currentPosition:f}),(N,O)=>{var Z,Q,we,he,ae,de;return T(),A("div",sk,[_("div",{class:_e(["queue-waiting__position-card",y.value])},[_("div",ok,[_("span",ik,V(p.value),1),_("span",ak,V(((Q=(Z=o.value)==null?void 0:Z.queue)==null?void 0:Q.segment_label)||"等待中"),1)]),_("div",rk,[E(ui,{name:"position-flip",mode:"out-in"},{default:Je(()=>[(T(),A("span",{key:f.value,class:"position-number__value"},V(f.value>0?f.value:"—"),1))]),_:1}),O[1]||(O[1]=_("span",{class:"position-number__label"},"您的排队位置",-1))]),f.value>1?(T(),A("div",lk,[O[2]||(O[2]=je(" 前方还有 ",-1)),_("strong",null,V(((he=(we=o.value)==null?void 0:we.queue)==null?void 0:he.ahead_count)||0),1),O[3]||(O[3]=je(" 位同事等待 ",-1))])):f.value===1?(T(),A("div",ck," 即将轮到您,请准备好! ")):(T(),A("div",uk," 正在为您分配坐席… ")),h.value&&f.value>0?(T(),A("div",dk,[O[4]||(O[4]=_("span",{class:"eta-icon"},"⏱️",-1)),_("span",null,"预计等待 "+V(h.value),1)])):le("",!0),(ae=o.value)!=null&&ae.quiz?(T(),A("div",fk,[_("div",hk,[O[5]||(O[5]=_("span",{class:"jump-progress__title"},"答题插队",-1)),_("span",pk," 已前移 "+V(o.value.quiz.queue_priority)+"/"+V(o.value.quiz.max_priority)+" 位 ",1)]),_("div",mk,[(T(!0),A(Ee,null,tt(o.value.quiz.max_priority,xe=>(T(),A("div",{key:xe,class:_e(["jump-progress__dot",{"jump-progress__dot--filled":xe<=o.value.quiz.queue_priority}])},[xe<=o.value.quiz.queue_priority?(T(),A("span",_k,"✓")):le("",!0)],2))),128))]),o.value.quiz.can_jump_more?(T(),A("div",gk," 再答 "+V(o.value.quiz.remaining_for_next_jump)+" 题可前移 1 位 ",1)):(T(),A("div",vk," 已达最大插队次数 "))])):le("",!0)],2),_("div",yk,[O[10]||(O[10]=_("div",{class:"stats__header"},[_("span",{class:"stats__title"},"平台实时状态"),_("span",{class:"stats__live-indicator"},[_("span",{class:"live-dot"}),_("span",null,"实时")])],-1)),_("div",bk,[_("div",wk,[_("div",Sk,V(g.value.total_active),1),O[6]||(O[6]=_("div",{class:"stats__label"},"总活跃",-1))]),_("div",Ek,[_("div",Ck,V(g.value.queued),1),O[7]||(O[7]=_("div",{class:"stats__label"},"排队中",-1))]),_("div",xk,[_("div",kk,V(g.value.serving),1),O[8]||(O[8]=_("div",{class:"stats__label"},"服务中",-1))]),_("div",Tk,[_("div",Ak,V(g.value.ai_handling),1),O[9]||(O[9]=_("div",{class:"stats__label"},"AI处理",-1))])])]),m.value?(T(),A("div",Rk,[_("div",{class:_e(["points__level-badge",`points__level-badge--${m.value.level_index}`])},[_("span",Ik,V(C.value),1),_("span",Ok,V(m.value.level_name),1)],2),_("div",$k,[_("span",Pk,V(m.value.points)+" 积分",1),m.value.next_level_name?(T(),A("span",Dk," 距 "+V(m.value.next_level_name)+" 还差 "+V(m.value.to_next_level)+" 分 ",1)):(T(),A("span",Bk," 已达最高等级 🏆 "))])])):le("",!0),_("div",Nk,[_("div",Lk,[_("span",Mk,V(R.value),1),((de=i.value)==null?void 0:de.type)==="diagnostic"?(T(),A("span",Fk," 诊断题 ")):(T(),A("span",Vk," 知识题 "))]),a.value?(T(),A("div",jk,[...O[11]||(O[11]=[_("span",{class:"quiz__loading-spinner"},null,-1),_("span",null,"加载题目中…",-1)])])):i.value?(T(),A(Ee,{key:2},[_("div",Uk,V(i.value.question),1),_("div",zk,[(T(!0),A(Ee,null,tt(i.value.options,(xe,Se)=>(T(),A("button",{key:Se,class:_e(["quiz__option",{"quiz__option--correct":r.value&&Se===i.value.correct_index,"quiz__option--wrong":r.value&&c.value===Se&&Se!==i.value.correct_index,"quiz__option--disabled":r.value}]),disabled:r.value,onClick:ne=>F(Se)},[_("span",Wk,V(u[Se]),1),_("span",Kk,V(xe),1)],10,Hk))),128))]),E(ui,{name:"fade"},{default:Je(()=>[r.value&&d.value?(T(),A("div",{key:0,class:_e(["quiz__result",d.value.is_correct?"quiz__result--correct":"quiz__result--wrong"])},[d.value.is_correct?(T(),A("span",Gk,"✅")):(T(),A("span",Jk,"❌")),_("div",Xk,[_("div",Yk,V(d.value.is_correct?`答对啦!+${d.value.points_delta} 积分`:"答错了"),1),d.value.explanation?(T(),A("div",Qk,V(d.value.explanation),1)):le("",!0),d.value.queue_priority_changed?(T(),A("div",Zk," 🎉 恭喜!排队位置前移 1 位! ")):le("",!0)]),d.value.next_question?(T(),A("button",{key:2,class:"quiz__next-btn",onClick:O[0]||(O[0]=xe=>K(d.value.next_question))}," 下一题 → ")):(T(),A("div",eT,"暂无更多题目"))],2)):le("",!0)]),_:1})],64)):(T(),A("div",qk,[...O[12]||(O[12]=[_("span",null,"📋 暂无更多题目",-1)])]))])])}}}),nT=ct(tT,[["__scopeId","data-v-ca99fdc7"]]),sT={class:"right-panel"},oT={class:"right-panel__accordion"},iT={class:"accordion-item__toggle"},aT={class:"accordion-item__content"},rT={class:"accordion-item__toggle"},lT={class:"accordion-item__content"},cT={class:"right-panel__recommend-section"},uT={class:"queue-collapsed-bar__left"},dT={class:"queue-collapsed-bar__icon"},fT={key:0,class:"queue-collapsed-bar__text"},hT={key:1,class:"queue-collapsed-bar__text"},pT={key:0,class:"queue-collapsed-bar__position"},mT={class:"queue-collapsed-bar__toggle"},_T={key:0,class:"queue-header__badge"},gT={class:"right-panel__queue-content"},vT=be({__name:"RightPanel",setup(e,{expose:t}){const n=$t(),s=j(null);function o(l){s.value===l?s.value=null:s.value=l}ke(()=>n.unreadRecommendCount,l=>{l>0&&n.clearUnreadRecommend()});const i=j(null),a=q(()=>{var u,f;return((u=n.currentConversation)==null?void 0:u.status)==="waiting"&&((f=n.currentConversation)==null?void 0:f.agent_id)===""}),r=q(()=>{var l;return((l=i.value)==null?void 0:l.currentPosition)||0}),c=j(!1);ke(a,l=>{l&&(c.value=!0)},{immediate:!0});function d(){c.value=!c.value}return t({queueWaitingRef:i}),(l,u)=>(T(),A("div",sT,[_("div",oT,[_("div",{class:_e(["accordion-item",{"accordion-item--active":s.value==="device"}])},[_("div",{class:"accordion-item__header",onClick:u[0]||(u[0]=f=>o("device"))},[u[2]||(u[2]=_("span",{class:"accordion-item__icon"},"💻",-1)),u[3]||(u[3]=_("span",{class:"accordion-item__title"},"设备信息",-1)),_("span",iT,V(s.value==="device"?"▾":"▸"),1)]),Jn(_("div",aT,[E(_x)],512),[[Yn,s.value==="device"]])],2),_("div",{class:_e(["accordion-item",{"accordion-item--active":s.value==="diagnosis"}])},[_("div",{class:"accordion-item__header",onClick:u[1]||(u[1]=f=>o("diagnosis"))},[u[4]||(u[4]=_("span",{class:"accordion-item__icon"},"🩺",-1)),u[5]||(u[5]=_("span",{class:"accordion-item__title"},"自助诊断",-1)),_("span",rT,V(s.value==="diagnosis"?"▾":"▸"),1)]),Jn(_("div",lT,[E(Vx)],512),[[Yn,s.value==="diagnosis"]])],2)]),u[10]||(u[10]=_("div",{class:"right-panel__divider"},null,-1)),_("div",cT,[E(Zx)]),u[11]||(u[11]=_("div",{class:"right-panel__divider"},null,-1)),_("div",{class:_e(["right-panel__queue-section",{"right-panel__queue-section--collapsed":!c.value}])},[c.value?(T(),A(Ee,{key:1},[_("div",{class:"queue-header",onClick:d},[u[7]||(u[7]=_("span",{class:"queue-header__icon"},"⏳",-1)),u[8]||(u[8]=_("span",{class:"queue-header__title"},"排队等待",-1)),a.value?(T(),A("span",_T)):le("",!0),u[9]||(u[9]=_("span",{class:"queue-header__toggle"},"收起 ▴",-1))]),Jn(_("div",gT,[E(nT,{ref_key:"queueWaitingRef",ref:i},null,512)],512),[[Yn,c.value]])],64)):(T(),A("div",{key:0,class:"queue-collapsed-bar",onClick:d},[_("div",uT,[_("span",dT,V(a.value?"⏳":"✅"),1),a.value?(T(),A("span",hT,[u[6]||(u[6]=je(" 排队中 ",-1)),r.value>0?(T(),A("span",pT,"#"+V(r.value),1)):le("",!0)])):(T(),A("span",fT,"当前无排队"))]),_("span",mT,V(a.value?"展开查看":"展开")+" ▾",1)]))],2)]))}}),Ja=ct(vT,[["__scopeId","data-v-a8cf10f8"]]),yT={class:"chat-view"},bT={key:1,class:"chat-view__right"},wT=be({__name:"ChatView",setup(e){const t=_f(),n=gf(),s=Et(),o=$t(),i=n0(),a=j(window.innerWidth),r=j(60),c=j(!1),d=q(()=>a.value<500),l=q(()=>!d.value);function u(m){c.value=!0;const p=m.clientX,y=r.value,C=a.value;function R(b){if(!c.value)return;const D=(b.clientX-p)/C*100;let K=y+D;K=Math.max(40,Math.min(80,K)),r.value=K}function k(){c.value=!1,document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",k),document.body.style.cursor="",document.body.style.userSelect=""}document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",R),document.addEventListener("mouseup",k)}function f(){a.value=window.innerWidth}nt(()=>{if(window.addEventListener("resize",f),!s.isAuthenticated){console.warn("[ChatView] 未登录,跳转登录页"),t.push("/login");return}o.initialize(),i.connect()});const h=n.query.invite,g=n.query.eid;if(h&&g){console.log(`[ChatView] 检测到邀请链接: conv=${h}, eid=${g}`);const m=ke(()=>o.initialized,async p=>{var y,C;if(p){m();try{await Uw(h),console.log("[ChatView] 已成功加入邀请的会话"),await o.switchToConversation(h)}catch(R){console.error("[ChatView] 加入会话失败:",R);const k=(C=(y=R==null?void 0:R.response)==null?void 0:y.data)==null?void 0:C.code;if(k!==3034&&k!==3033)try{await o.switchToConversation(h)}catch(b){console.error("[ChatView] 切换会话也失败:",b)}}finally{t.replace({path:n.path,query:{}})}}},{immediate:!0})}return Ln(()=>{window.removeEventListener("resize",f),i.disconnect(),o.cleanup()}),(m,p)=>(T(),A("div",yT,[_("div",{class:_e(["chat-view__left",{"chat-view__left--full":!l.value}]),style:ln(!d.value&&l.value?{flex:`0 0 ${r.value}%`,maxWidth:`${r.value}%`}:{})},[E(SC)],6),l.value&&!d.value?(T(),A("div",{key:0,class:"chat-view__resize-handle",onMousedown:u},[...p[0]||(p[0]=[_("div",{class:"chat-view__resize-grip"},null,-1)])],32)):le("",!0),l.value?(T(),A("div",bT,[E(Ja)])):le("",!0)]))}}),ST=ct(wT,[["__scopeId","data-v-59ad8a56"]]),ET={class:"emergency-dispatcher"},CT={class:"emergency-dispatcher__panel"},xT={class:"subtitle"},kT={key:1,class:"error-msg"},TT=be({__name:"EmergencyDispatcher",setup(e){const t=_f(),n=j(!0),s=j(""),o=j("正在检测身份...");function i(){return new Promise((l,u)=>{if(typeof window.wx<"u"&&window.wx.agentConfig){l();return}const f=document.createElement("script");f.src="https://res.wx.qq.com/wwopen/js/wwLogin-1.2.7.js",f.onload=()=>{const h=document.createElement("script");h.src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js",h.onload=()=>l(),h.onerror=()=>u(new Error("加载企微 agent SDK 失败")),document.head.appendChild(h)},f.onerror=()=>u(new Error("加载企微 JS-SDK 失败")),document.head.appendChild(f)})}async function a(l){const u=await Qe.get("/api/wecom/jsapi-config",{params:{url:l}});if(u.data.code!==0)throw new Error(`拿签名失败: ${u.data.message}`);return u.data.data}function r(l){return new Promise((u,f)=>{const h=window.wx;h.config({beta:!0,debug:!1,appId:l.corp_id,timestamp:l.timestamp,nonceStr:l.nonce_str,signature:l.signature,jsApiList:["agentConfig"]}),h.ready(()=>u()),h.error(g=>f(new Error(`wx.config 失败: ${JSON.stringify(g)}`)))})}function c(l){return new Promise((u,f)=>{window.wx.agentConfig({corpid:l.corp_id,agentid:l.agent_id,timestamp:l.timestamp,nonceStr:l.nonce_str,signature:l.signature,jsApiList:["selectExternalContact"],success:g=>{const m=window.wecom_userid||"";u({userId:m})},fail:g=>f(new Error(`wx.agentConfig 失败: ${JSON.stringify(g)}`))})})}async function d(l){const u=await Qe.get("/api/wecom/check-role",{params:{userid:l}});if(u.data.code!==0)throw new Error(`检查角色失败: ${u.data.message}`);return u.data.data}return nt(async()=>{try{o.value="正在加载企微 SDK...",await i(),o.value="正在获取鉴权签名...";const l=window.location.href.split("#")[0],u=await a(l);o.value="正在初始化企微...",await r(u),o.value="正在获取身份...";const{userId:f}=await c(u);if(!f)throw new Error("未能获取当前用户 userid");o.value="正在检查角色...";const h=await d(f);console.log("[EmergencyDispatcher] 角色检测:",h),o.value=`角色: ${h.role},正在跳转...`,h.role==="agent"?window.location.href="/itagent/agent-preview?userid="+encodeURIComponent(f):t.push({path:"/h5-preview",query:{userid:f}})}catch(l){console.error("[EmergencyDispatcher] 错误:",l),s.value=l.message||"未知错误",n.value=!1,Vg({message:s.value,duration:5e3}),setTimeout(()=>{t.push({path:"/h5-preview"})},3e3)}}),(l,u)=>{const f=Co;return T(),A("div",ET,[_("div",CT,[u[0]||(u[0]=_("div",{class:"logo"},null,-1)),u[1]||(u[1]=_("h2",{class:"title"},"智能IT服务",-1)),_("p",xT,V(o.value),1),n.value?(T(),Rt(f,{key:0,type:"spinner",color:"#1989fa",size:"32"})):le("",!0),s.value?(T(),A("div",kT,V(s.value),1)):le("",!0)])])}}}),AT=ct(TT,[["__scopeId","data-v-12d9965e"]]),RT={class:"h5-preview"},IT={class:"h5-preview__topbar"},OT={key:1,class:"userid-tag"},$T={key:0,class:"h5-preview__content"},PT={class:"h5-preview__drawer-header"},DT={class:"h5-preview__drawer-body"},BT={key:2,class:"h5-preview__mobile-hint"},NT=be({__name:"H5PreviewView",setup(e){const t=gf(),n=j(!1),s=q(()=>t.query.userid||""),o=q(()=>window.innerWidth<500);return s.value&&Ae({message:"员工模式",duration:1500}),(i,a)=>{const r=It,c=Os;return T(),A("div",RT,[_("div",IT,[a[4]||(a[4]=Lp('

员工自助

智能IT服务 · 应急模式

',1)),o.value?(T(),A("button",{key:0,class:"topbar-menu-btn",onClick:a[0]||(a[0]=d=>n.value=!0)},[E(r,{name:"apps-o",size:"22"}),a[3]||(a[3]=_("span",null,"右栏",-1))])):(T(),A("div",OT," userid: "+V(s.value||"anonymous"),1))]),o.value?le("",!0):(T(),A("div",$T,[E(Ja)])),o.value?(T(),Rt(c,{key:1,show:n.value,"onUpdate:show":a[2]||(a[2]=d=>n.value=d),position:"top",style:{height:"85%"},"close-on-click-overlay":!0,closeable:"","safe-area-inset-top":""},{default:Je(()=>[_("div",PT,[a[5]||(a[5]=_("span",{class:"drawer-title"},"📋 右栏内容",-1)),E(r,{name:"cross",size:"20",class:"drawer-close",onClick:a[1]||(a[1]=d=>n.value=!1)})]),_("div",DT,[E(Ja)])]),_:1},8,["show"])):le("",!0),o.value?(T(),A("div",BT,[...a[6]||(a[6]=[_("p",null,"💡 电脑端访问可获得完整体验(右栏常驻显示)",-1),_("p",null,'移动端请点上方"右栏"按钮打开内容',-1)])])):le("",!0)])}}}),LT=ct(NT,[["__scopeId","data-v-0f0a4177"]]);function Lc(){return typeof navigator>"u"?!1:/wxwork/i.test(navigator.userAgent)}const MT=[{path:"/",name:"ChatView",component:ST,meta:{title:"智能IT服务",requiresAuth:!0}},{path:"/login",name:"Login",component:()=>Hn(()=>import("./Login-BVTE6rEE.js"),__vite__mapDeps([4,5,6])),meta:{title:"登录",requiresAuth:!1}},{path:"/bind",name:"Bind",component:()=>Hn(()=>import("./Bind-D-Qx4L__.js"),__vite__mapDeps([7,5,2,3,8,9])),meta:{title:"账号绑定",requiresAuth:!1}},{path:"/wework-only",name:"WeworkOnly",component:()=>Hn(()=>import("./WeworkOnly-6LDEfFFZ.js"),__vite__mapDeps([10,11])),meta:{title:"请在企业微信中打开",requiresAuth:!1}},{path:"/emergency",name:"EmergencyDispatcher",component:AT,meta:{title:"应急身份检测",requiresAuth:!1}},{path:"/h5-preview",name:"H5Preview",component:LT,meta:{title:"员工自助",requiresAuth:!1}},{path:"/automation/:id",name:"AutomationProgress",component:()=>Hn(()=>import("./AutomationProgress-aWntKJiO.js"),__vite__mapDeps([12,1,2,13,9])),meta:{title:"自动化处置",requiresAuth:!0}},{path:"/intro",name:"VideoIntro",component:()=>Hn(()=>import("./VideoIntro-CQaJHUNF.js"),__vite__mapDeps([14,15])),meta:{title:"智能IT服务",requiresAuth:!1}},{path:"/:pathMatch(.*)*",redirect:"/"}],Kf=Uy({history:wy("/h5/v20260806/"),routes:MT});Kf.beforeEach(async(e,t,n)=>{const s=/^localhost(:\d+)?$/.test(window.location.hostname)||window.location.hostname==="127.0.0.1";if(e.name==="WeworkOnly"||e.name==="Bind"||e.name==="EmergencyDispatcher"||e.name==="H5Preview"||e.name==="VideoIntro"){n();return}if(e.name==="Login"){if(!s&&!Lc()){n({name:"WeworkOnly"});return}n();return}const o=new URLSearchParams(window.location.search),i=e.query.token||o.get("token");if(i){localStorage.setItem("h5_token",i),o.delete("token");const d=o.toString(),l=d?`${window.location.pathname}?${d}`:window.location.pathname;window.history.replaceState({},"",l)}const{useEmployeeStore:a}=await Hn(async()=>{const{useEmployeeStore:d}=await Promise.resolve().then(()=>Yw);return{useEmployeeStore:d}},void 0),r=a();if(i){r.$patch({token:i});try{await r.fetchEmployeeInfo()}catch(d){console.warn("[Router] Portal token 验证失败:",d)}}if(!s&&!Lc()){if(r.isAuthenticated){n();return}n({name:"WeworkOnly"});return}if(e.name!=="VideoIntro"&&!localStorage.getItem("h5_video_intro_watched_v2")&&!(e.query.code||new URLSearchParams(window.location.search).get("code"))){n({name:"VideoIntro"});return}const c=e.query.code||new URLSearchParams(window.location.search).get("code");if(c){try{await r.handleOAuthCallback(c);const d=new URLSearchParams(window.location.search);d.delete("code"),d.delete("state");const l=d.toString(),u=l?`${window.location.pathname}?${l}`:window.location.pathname;window.history.replaceState({},"",u),n()}catch(d){console.error("[Router] OAuth2 授权失败:",d),n({name:"Login"})}return}if(r.isAuthenticated){n();return}n({name:"Login"})});const Mr=cd(Bv);Mr.use(kv());Mr.use(Kf);const FT=Date.now(),Mc=500;Mr.mount("#app");const Fc=Date.now()-FT;Fc>=Mc?document.body.classList.add("app-loaded"):setTimeout(()=>{document.body.classList.add("app-loaded")},Mc-Fc);export{sg as $,a_ as A,Rd as B,Vd as C,UT as D,Jd as E,xr as F,C_ as G,M_ as H,It as I,j_ as J,vv as K,Co as L,Ev as M,d_ as N,V_ as O,Os as P,mv as Q,bv as R,xv as S,gg as T,pv as U,Vg as V,Fg as W,qT as X,J_ as Y,Q_ as Z,mg as _,Bl as a,an as a$,Pg as a0,ag as a1,u_ as a2,Ve as a3,ct as a4,T as a5,A as a6,Lp as a7,be as a8,qe as a9,ke as aA,vd as aB,Is as aC,Sn as aD,Ug as aE,Ke as aF,Wd as aG,wr as aH,Be as aI,ui as aJ,e_ as aK,Wt as aL,As as aM,Ts as aN,Xe as aO,q as aP,Jn as aQ,VT as aR,ot as aS,st as aT,s_ as aU,jT as aV,bd as aW,yr as aX,Ri as aY,ts as aZ,Yn as a_,E as aa,Ee as ab,Tt as ac,Ll as ad,Cd as ae,He as af,Ge as ag,_f as ah,Et as ai,nt as aj,Ln as ak,_ as al,Je as am,je as an,le as ao,V as ap,j as aq,gf as ar,Rt as as,pt as at,$e as au,Bt as av,Ai as aw,t_ as ax,vn as ay,Ut as az,Ss as b,ds as b0,Jt as b1,ws as b2,Eo as b3,Tr as b4,Re as b5,tt as b6,Gg as c,Qg as d,sv as e,ov as f,Km as g,Y_ as h,eg as i,hg as j,vg as k,O_ as l,o_ as m,l_ as n,T_ as o,bg as p,Wg as q,zl as r,Ae as s,tv as t,Xg as u,h_ as v,cv as w,av as x,Ag as y,y_ as z};