const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BHGKpyi1.js","assets/index-CBTj24VR.js","assets/index-B0ezQQt8.js","assets/index-DDElvLol.js","assets/Login-DyNoXiTS.js","assets/auth-BDitiLN6.js","assets/Login-miag2zlw.css","assets/Bind-DEWAOJFG.js","assets/Bind-Dnw4b3CT.css","assets/index-p_Y1ee2a.css","assets/WeworkOnly-BDScN169.js","assets/WeworkOnly-TGfgboZe.css","assets/AutomationProgress-bxHBdrMZ.js","assets/AutomationProgress-5xKDZdIh.css","assets/VideoIntro-DHQD2fbv.js","assets/VideoIntro-Dm0MpeQ3.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 r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).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 Lr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Le={},es=[],Qt=()=>{},Tc=()=>!1,Qo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Zo=e=>e.startsWith("onUpdate:"),tt=Object.assign,Mr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},$f=Object.prototype.hasOwnProperty,Fe=(e,t)=>$f.call(e,t),ge=Array.isArray,ts=e=>so(e)==="[object Map]",kc=e=>so(e)==="[object Set]",Oa=e=>so(e)==="[object Date]",ve=e=>typeof e=="function",Me=e=>typeof e=="string",Bt=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",Rc=e=>(De(e)||ve(e))&&ve(e.then)&&ve(e.catch),Ic=Object.prototype.toString,so=e=>Ic.call(e),Bf=e=>so(e).slice(8,-1),Oc=e=>so(e)==="[object Object]",ei=e=>Me(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ns=Lr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ti=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ff=/-\w/g,_t=ti(e=>e.replace(Ff,t=>t.slice(1).toUpperCase())),Df=/\B([A-Z])/g,pn=ti(e=>e.replace(Df,"-$1").toLowerCase()),ni=ti(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ri=ti(e=>e?`on${ni(e)}`:""),Jt=(e,t)=>!Object.is(e,t),Ii=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Nf=e=>{const t=parseFloat(e);return isNaN(t)?e:t},$c=e=>{const t=Me(e)?Number(e):NaN;return isNaN(t)?e:t};let Pa;const si=()=>Pa||(Pa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vn(e){if(ge(e)){const t={};for(let n=0;n{if(n){const s=n.split(Mf);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Uf(e){if(!e)return"";if(Me(e))return e;let t="";for(const n in e){const s=e[n];if(Me(s)||typeof s=="number"){const o=n.startsWith("--")?n:pn(n);t+=`${o}:${s};`}}return t}function $e(e){let t="";if(Me(e))t=e;else if(ge(e))for(let n=0;n!!(e&&e.__v_isRef===!0),ne=e=>Me(e)?e:e==null?"":ge(e)||De(e)&&(e.toString===Ic||!ve(e.toString))?Fc(e)?ne(e.value):JSON.stringify(e,Dc,2):String(e),Dc=(e,t)=>Fc(t)?Dc(e,t.value):ts(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],i)=>(n[Oi(s,i)+" =>"]=o,n),{})}:kc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Oi(n))}:Bt(t)?Oi(t):De(t)&&!ge(t)&&!Oc(t)?String(t):t,Oi=(e,t="")=>{var n;return Bt(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 et;class Nc{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&&et&&(et.active?(this.parent=et,this.index=(et.scopes||(et.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(et===this)et=this.prevScope;else{let t=et;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(Ms){let t=Ms;for(Ms=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ls;){let t=Ls;for(Ls=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 Hc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function zc(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),zr(s),Wf(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function sr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(qc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function qc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ks)||(e.globalVersion=Ks,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!sr(e))))return;e.flags|=2;const t=e.dep,n=Ue,s=Vt;Ue=e,Vt=!0;try{Hc(e);const o=e.fn(e._value);(t.version===0||Jt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Ue=n,Vt=s,zc(e),e.flags&=-3}}function zr(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)zr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Wf(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Vt=!0;const Wc=[];function un(){Wc.push(Vt),Vt=!1}function dn(){const e=Wc.pop();Vt=e===void 0?!0:e}function $a(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ue;Ue=void 0;try{t()}finally{Ue=n}}}let Ks=0;class Kf{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 qr{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(!Ue||!Vt||Ue===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ue)n=this.activeLink=new Kf(Ue,this),Ue.deps?(n.prevDep=Ue.depsTail,Ue.depsTail.nextDep=n,Ue.depsTail=n):Ue.deps=Ue.depsTail=n,Kc(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=Ue.depsTail,n.nextDep=void 0,Ue.depsTail.nextDep=n,Ue.depsTail=n,Ue.deps===n&&(Ue.deps=s)}return n}trigger(t){this.version++,Ks++,this.notify(t)}notify(t){Ur();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Hr()}}}function Kc(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)Kc(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const jo=new WeakMap,Fn=Symbol(""),or=Symbol(""),Gs=Symbol("");function rt(e,t,n){if(Vt&&Ue){let s=jo.get(e);s||jo.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new qr),o.map=s,o.key=n),o.track()}}function rn(e,t,n,s,o,i){const r=jo.get(e);if(!r){Ks++;return}const a=l=>{l&&l.trigger()};if(Ur(),t==="clear")r.forEach(a);else{const l=ge(e),u=l&&ei(n);if(l&&n==="length"){const c=Number(s);r.forEach((d,f)=>{(f==="length"||f===Gs||!Bt(f)&&f>=c)&&a(d)})}else switch((n!==void 0||r.has(void 0))&&a(r.get(n)),u&&a(r.get(Gs)),t){case"add":l?u&&a(r.get("length")):(a(r.get(Fn)),ts(e)&&a(r.get(or)));break;case"delete":l||(a(r.get(Fn)),ts(e)&&a(r.get(or)));break;case"set":ts(e)&&a(r.get(Fn));break}}Hr()}function Gf(e,t){const n=jo.get(e);return n&&n.get(t)}function zn(e){const t=Re(e);return t===e?t:(rt(t,"iterate",Gs),At(e)?t:t.map(Ut))}function oi(e){return rt(e=Re(e),"iterate",Gs),e}function Gt(e,t){return fn(e)?is(ln(e)?Ut(t):t):Ut(t)}const Jf={__proto__:null,[Symbol.iterator](){return $i(this,Symbol.iterator,e=>Gt(this,e))},concat(...e){return zn(this).concat(...e.map(t=>ge(t)?zn(t):t))},entries(){return $i(this,"entries",e=>(e[1]=Gt(this,e[1]),e))},every(e,t){return en(this,"every",e,t,void 0,arguments)},filter(e,t){return en(this,"filter",e,t,n=>n.map(s=>Gt(this,s)),arguments)},find(e,t){return en(this,"find",e,t,n=>Gt(this,n),arguments)},findIndex(e,t){return en(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return en(this,"findLast",e,t,n=>Gt(this,n),arguments)},findLastIndex(e,t){return en(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return en(this,"forEach",e,t,void 0,arguments)},includes(...e){return Bi(this,"includes",e)},indexOf(...e){return Bi(this,"indexOf",e)},join(e){return zn(this).join(e)},lastIndexOf(...e){return Bi(this,"lastIndexOf",e)},map(e,t){return en(this,"map",e,t,void 0,arguments)},pop(){return ws(this,"pop")},push(...e){return ws(this,"push",e)},reduce(e,...t){return Ba(this,"reduce",e,t)},reduceRight(e,...t){return Ba(this,"reduceRight",e,t)},shift(){return ws(this,"shift")},some(e,t){return en(this,"some",e,t,void 0,arguments)},splice(...e){return ws(this,"splice",e)},toReversed(){return zn(this).toReversed()},toSorted(e){return zn(this).toSorted(e)},toSpliced(...e){return zn(this).toSpliced(...e)},unshift(...e){return ws(this,"unshift",e)},values(){return $i(this,"values",e=>Gt(this,e))}};function $i(e,t,n){const s=oi(e),o=s[t]();return s!==e&&!At(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.done||(i.value=n(i.value)),i}),o}const Xf=Array.prototype;function en(e,t,n,s,o,i){const r=oi(e),a=r!==e&&!At(e),l=r[t];if(l!==Xf[t]){const d=l.apply(e,i);return a?Ut(d):d}let u=n;r!==e&&(a?u=function(d,f){return n.call(this,Gt(e,d),f,e)}:n.length>2&&(u=function(d,f){return n.call(this,d,f,e)}));const c=l.call(r,u,s);return a&&o?o(c):c}function Ba(e,t,n,s){const o=oi(e),i=o!==e&&!At(e);let r=n,a=!1;o!==e&&(i?(a=s.length===0,r=function(u,c,d){return a&&(a=!1,u=Gt(e,u)),n.call(this,u,Gt(e,c),d,e)}):n.length>3&&(r=function(u,c,d){return n.call(this,u,c,d,e)}));const l=o[t](r,...s);return a?Gt(e,l):l}function Bi(e,t,n){const s=Re(e);rt(s,"iterate",Gs);const o=s[t](...n);return(o===-1||o===!1)&&ai(n[0])?(n[0]=Re(n[0]),s[t](...n)):o}function ws(e,t,n=[]){un(),Ur();const s=Re(e)[t].apply(e,n);return Hr(),dn(),s}const Yf=Lr("__proto__,__v_isRef,__isVue"),Gc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Bt));function Qf(e){Bt(e)||(e=String(e));const t=Re(this);return rt(t,"has",e),t.hasOwnProperty(e)}class Jc{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?tu:eu:i?Zc:Qc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=ge(t);if(!o){let l;if(r&&(l=Jf[n]))return l;if(n==="hasOwnProperty")return Qf}const a=Reflect.get(t,n,Ke(t)?t:s);if((Bt(n)?Gc.has(n):Yf(n))||(o||rt(t,"get",n),i))return a;if(Ke(a)){const l=r&&ei(n)?a:a.value;return o&&De(l)?rr(l):l}return De(a)?o?rr(a):ct(a):a}}class Xc extends Jc{constructor(t=!1){super(!1,t)}set(t,n,s,o){let i=t[n];const r=ge(t)&&ei(n);if(!this._isShallow){const u=fn(i);if(!At(s)&&!fn(s)&&(i=Re(i),s=Re(s)),!r&&Ke(i)&&!Ke(s))return u||(i.value=s),!0}const a=r?Number(n)e,_o=e=>Reflect.getPrototypeOf(e);function sh(e,t,n){return function(...s){const o=this.__v_raw,i=Re(o),r=ts(i),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,u=o[e](...s),c=n?ir:t?is:Ut;return!t&&rt(i,"iterate",l?or:Fn),tt(Object.create(u),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:a?[c(d[0]),c(d[1])]:c(d),done:f}}})}}function yo(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function oh(e,t){const n={get(o){const i=this.__v_raw,r=Re(i),a=Re(o);e||(Jt(o,a)&&rt(r,"get",o),rt(r,"get",a));const{has:l}=_o(r),u=t?ir:e?is:Ut;if(l.call(r,o))return u(i.get(o));if(l.call(r,a))return u(i.get(a));i!==r&&i.get(o)},get size(){const o=this.__v_raw;return!e&&rt(Re(o),"iterate",Fn),o.size},has(o){const i=this.__v_raw,r=Re(i),a=Re(o);return e||(Jt(o,a)&&rt(r,"has",o),rt(r,"has",a)),o===a?i.has(o):i.has(o)||i.has(a)},forEach(o,i){const r=this,a=r.__v_raw,l=Re(a),u=t?ir:e?is:Ut;return!e&&rt(l,"iterate",Fn),a.forEach((c,d)=>o.call(i,u(c),u(d),r))}};return tt(n,e?{add:yo("add"),set:yo("set"),delete:yo("delete"),clear:yo("clear")}:{add(o){const i=Re(this),r=_o(i),a=Re(o),l=!t&&!At(o)&&!fn(o)?a:o;return r.has.call(i,l)||Jt(o,l)&&r.has.call(i,o)||Jt(a,l)&&r.has.call(i,a)||(i.add(l),rn(i,"add",l,l)),this},set(o,i){!t&&!At(i)&&!fn(i)&&(i=Re(i));const r=Re(this),{has:a,get:l}=_o(r);let u=a.call(r,o);u||(o=Re(o),u=a.call(r,o));const c=l.call(r,o);return r.set(o,i),u?Jt(i,c)&&rn(r,"set",o,i):rn(r,"add",o,i),this},delete(o){const i=Re(this),{has:r,get:a}=_o(i);let l=r.call(i,o);l||(o=Re(o),l=r.call(i,o)),a&&a.call(i,o);const u=i.delete(o);return l&&rn(i,"delete",o,void 0),u},clear(){const o=Re(this),i=o.size!==0,r=o.clear();return i&&rn(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=sh(o,e,t)}),n}function ii(e,t){const n=oh(e,t);return(s,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(Fe(n,o)&&o in s?n:s,o,i)}const ih={get:ii(!1,!1)},rh={get:ii(!1,!0)},ah={get:ii(!0,!1)},lh={get:ii(!0,!0)},Qc=new WeakMap,Zc=new WeakMap,eu=new WeakMap,tu=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 ct(e){return fn(e)?e:ri(e,!1,Zf,ih,Qc)}function nu(e){return ri(e,!1,th,rh,Zc)}function rr(e){return ri(e,!0,eh,ah,eu)}function $o(e){return ri(e,!0,nh,lh,tu)}function ri(e,t,n,s,o){if(!De(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 r=ch(Bf(e));if(r===0)return e;const a=new Proxy(e,r===2?s:n);return o.set(e,a),a}function ln(e){return fn(e)?ln(e.__v_raw):!!(e&&e.__v_isReactive)}function fn(e){return!!(e&&e.__v_isReadonly)}function At(e){return!!(e&&e.__v_isShallow)}function ai(e){return e?!!e.__v_raw:!1}function Re(e){const t=e&&e.__v_raw;return t?Re(t):e}function Wr(e){return!Fe(e,"__v_skip")&&Object.isExtensible(e)&&Pc(e,"__v_skip",!0),e}const Ut=e=>De(e)?ct(e):e,is=e=>De(e)?rr(e):e;function Ke(e){return e?e.__v_isRef===!0:!1}function U(e){return su(e,!1)}function Sn(e){return su(e,!0)}function su(e,t){return Ke(e)?e:new uh(e,t)}class uh{constructor(t,n){this.dep=new qr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Re(t),this._value=n?t:Ut(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||At(t)||fn(t);t=s?t:Re(t),Jt(t,n)&&(this._rawValue=t,this._value=s?t:Ut(t),this.dep.trigger())}}function Ce(e){return Ke(e)?e.value:e}function ns(e){return ve(e)?e():Ce(e)}const dh={get:(e,t,n)=>t==="__v_raw"?e:Ce(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return Ke(o)&&!Ke(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function ou(e){return ln(e)?e:new Proxy(e,dh)}function fh(e){const t=ge(e)?new Array(e.length):{};for(const n in e)t[n]=ph(e,n);return t}class hh{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=Bt(n)?n:String(n),this._raw=Re(t);let o=!0,i=t;if(!ge(t)||Bt(this._key)||!ei(this._key))do o=!ai(i)||At(i);while(o&&(i=i.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=Ce(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ke(this._raw[this._key])){const n=this._object[this._key];if(Ke(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Gf(this._raw,this._key)}}function ph(e,t,n){return new hh(e,t,n)}class mh{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new qr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ks-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Ue!==this)return Uc(this,!0),!0}get value(){const t=this.dep.track();return qc(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function gh(e,t,n=!1){let s,o;return ve(e)?s=e:(s=e.get,o=e.set),new mh(s,o,n)}const bo={},Uo=new WeakMap;let In;function vh(e,t=!1,n=In){if(n){let s=Uo.get(n);s||Uo.set(n,s=[]),s.push(e)}}function _h(e,t,n=Le){const{immediate:s,deep:o,once:i,scheduler:r,augmentJob:a,call:l}=n,u=A=>o?A:At(A)||o===!1||o===0?an(A,1):an(A);let c,d,f,h,_=!1,g=!1;if(Ke(e)?(d=()=>e.value,_=At(e)):ln(e)?(d=()=>u(e),_=!0):ge(e)?(g=!0,_=e.some(A=>ln(A)||At(A)),d=()=>e.map(A=>{if(Ke(A))return A.value;if(ln(A))return u(A);if(ve(A))return l?l(A,2):A()})):ve(e)?t?d=l?()=>l(e,2):e:d=()=>{if(f){un();try{f()}finally{dn()}}const A=In;In=c;try{return l?l(e,3,[h]):e(h)}finally{In=A}}:d=Qt,t&&o){const A=d,y=o===!0?1/0:o;d=()=>an(A(),y)}const m=jr(),v=()=>{c.stop(),m&&m.active&&Mr(m.effects,c)};if(i&&t){const A=t;t=(...y)=>{A(...y),v()}}let b=g?new Array(e.length).fill(bo):bo;const T=A=>{if(!(!(c.flags&1)||!c.dirty&&!A))if(t){const y=c.run();if(o||_||(g?y.some((O,P)=>Jt(O,b[P])):Jt(y,b))){f&&f();const O=In;In=c;try{const P=[y,b===bo?void 0:g&&b[0]===bo?[]:b,h];b=y,l?l(t,3,P):t(...P)}finally{In=O}}}else c.run()};return a&&a(T),c=new Vc(d),c.scheduler=r?()=>r(T,!1):T,h=A=>vh(A,!1,c),f=c.onStop=()=>{const A=Uo.get(c);if(A){if(l)l(A,4);else for(const y of A)y();Uo.delete(c)}},t?s?T(!0):b=c.run():r?r(T.bind(null,!0),!0):c.run(),v.pause=c.pause.bind(c),v.resume=c.resume.bind(c),v.stop=v,v}function an(e,t=1/0,n){if(t<=0||!De(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ke(e))an(e.value,t,n);else if(ge(e))for(let s=0;s{an(s,t,n)});else if(Oc(e)){for(const s in e)an(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&an(e[s],t,n)}return e}/** * @vue/runtime-core v3.5.35 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function oo(e,t,n,s){try{return s?e(...s):e()}catch(o){io(o,t,n)}}function Ft(e,t,n,s){if(ve(e)){const o=oo(e,t,n,s);return o&&Rc(o)&&o.catch(i=>{io(i,t,n)}),o}if(ge(e)){const o=[];for(let i=0;i>>1,o=mt[s],i=Js(o);i=Js(n)?mt.push(e):mt.splice(bh(t),0,e),e.flags|=1,ru()}}function ru(){Ho||(Ho=iu.then(lu))}function ar(e){ge(e)?ss.push(...e):wn&&e.id===-1?wn.splice(Yn+1,0,e):e.flags&1||(ss.push(e),e.flags|=1),ru()}function Fa(e,t,n=Kt+1){for(;nJs(n)-Js(s));if(ss.length=0,wn){wn.push(...t);return}for(wn=t,Yn=0;Yne.id==null?e.flags&2?-1:1/0:e.id;function lu(e){try{for(Kt=0;Kt{s._d&&Ko(-1);const i=zo(t);let r;try{r=e(...o)}finally{zo(i),s._d&&Ko(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function li(e,t){if(Ct===null)return e;const n=hi(Ct),s=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&ve(t)?t.call(s&&s.proxy):t}}function wh(){return!!(Dt()||Dn)}const Eh=Symbol.for("v-scx"),Sh=()=>ot(Eh);function uu(e,t){return Gr(e,null,t)}function be(e,t,n){return Gr(e,t,n)}function Gr(e,t,n=Le){const{immediate:s,deep:o,flush:i,once:r}=n,a=tt({},n),l=t&&s||!t&&i!=="post";let u;if(Qs){if(i==="sync"){const h=Sh();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Qt,h.resume=Qt,h.pause=Qt,h}}const c=at;a.call=(h,_,g)=>Ft(h,c,_,g);let d=!1;i==="post"?a.scheduler=h=>{it(h,c&&c.suspense)}:i!=="sync"&&(d=!0,a.scheduler=(h,_)=>{_?h():Kr(h)}),a.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const f=_h(e,t,a);return Qs&&(u?u.push(f):l&&f()),f}function xh(e,t,n){const s=this.proxy,o=Me(e)?e.includes(".")?du(s,e):()=>s[e]:e.bind(s,s);let i;ve(t)?i=t:(i=t.handler,n=t);const r=ro(this),a=Gr(o,i.bind(s),n);return r(),a}function du(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;oe.__isTeleport,On=e=>e&&(e.disabled||e.disabled===""),Ch=e=>e&&(e.defer||e.defer===""),Da=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Na=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,lr=(e,t)=>{const n=e&&e.to;return Me(n)?t?t(n):null:n},Ah={name:"Teleport",__isTeleport:!0,process(e,t,n,s,o,i,r,a,l,u){const{mc:c,pc:d,pbc:f,o:{insert:h,querySelector:_,createText:g,createComment:m,parentNode:v}}=u,b=On(t.props);let{dynamicChildren:T}=t;const A=(P,K,F)=>{P.shapeFlag&16&&c(P.children,K,F,o,i,r,a,l)},y=(P=t)=>{const K=On(P.props),F=P.target=lr(P.props,_),D=cr(F,P,g,h);F&&(r!=="svg"&&Da(F)?r="svg":r!=="mathml"&&Na(F)&&(r="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(F),K||(A(P,F,D),Bs(P,!1)))},O=P=>{const K=()=>{if(yn.get(P)===K){if(yn.delete(P),On(P.props)){const F=v(P.el)||n;A(P,F,P.anchor),Bs(P,!0)}y(P)}};yn.set(P,K),it(K,i)};if(e==null){const P=t.el=g(""),K=t.anchor=g("");if(h(P,n,s),h(K,n,s),Ch(t.props)||i&&i.pendingBranch){O(t);return}b&&(A(t,n,K),Bs(t,!0)),y()}else{t.el=e.el;const P=t.anchor=e.anchor,K=yn.get(e);if(K){K.flags|=8,yn.delete(e),O(t);return}t.targetStart=e.targetStart;const F=t.target=e.target,D=t.targetAnchor=e.targetAnchor,J=On(e.props),j=J?n:F,le=J?P:D;if(r==="svg"||Da(F)?r="svg":(r==="mathml"||Na(F))&&(r="mathml"),T?(f(e.dynamicChildren,T,j,o,i,r,a),ta(e,t,!0)):l||d(e,t,j,le,o,i,r,a,!1),b)J?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):wo(t,n,P,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const fe=t.target=lr(t.props,_);fe&&wo(t,fe,null,u,0)}else J&&wo(t,F,D,u,1);Bs(t,b)}},remove(e,t,n,{um:s,o:{remove:o}},i){const{shapeFlag:r,children:a,anchor:l,targetStart:u,targetAnchor:c,target:d,props:f}=e,h=i||!On(f),_=yn.get(e);if(_&&(_.flags|=8,yn.delete(e)),d&&(o(u),o(c)),i&&o(l),!_&&r&16)for(let g=0;g{e.isMounted=!0}),ps(()=>{e.isUnmounting=!0}),e}const kt=[Function,Array],pu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:kt,onEnter:kt,onAfterEnter:kt,onEnterCancelled:kt,onBeforeLeave:kt,onLeave:kt,onAfterLeave:kt,onLeaveCancelled:kt,onBeforeAppear:kt,onAppear:kt,onAfterAppear:kt,onAppearCancelled:kt},mu=e=>{const t=e.subTree;return t.component?mu(t.component):t},Rh={name:"BaseTransition",props:pu,setup(e,{slots:t}){const n=Dt(),s=kh();return()=>{const o=t.default&&_u(t.default(),!0),i=o&&o.length?gu(o):n.subTree?me():void 0;if(!i)return;const r=Re(e),{mode:a}=r;if(s.isLeaving)return Fi(i);const l=La(i);if(!l)return Fi(i);let u=ur(l,r,s,n,d=>u=d);l.type!==st&&Xs(l,u);let c=n.subTree&&La(n.subTree);if(c&&c.type!==st&&!Xt(c,l)&&mu(n).type!==st){let d=ur(c,r,s,n);if(Xs(c,d),a==="out-in"&&l.type!==st)return s.isLeaving=!0,d.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,c=void 0},Fi(i);a==="in-out"&&l.type!==st?d.delayLeave=(f,h,_)=>{const g=vu(s,c);g[String(c.key)]=c,f[Ot]=()=>{h(),f[Ot]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{_(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function gu(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==st){t=n;break}}return t}const Ih=Rh;function vu(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 ur(e,t,n,s,o){const{appear:i,mode:r,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:_,onLeaveCancelled:g,onBeforeAppear:m,onAppear:v,onAfterAppear:b,onAppearCancelled:T}=t,A=String(e.key),y=vu(n,e),O=(F,D)=>{F&&Ft(F,s,9,D)},P=(F,D)=>{const J=D[1];O(F,D),ge(F)?F.every(j=>j.length<=1)&&J():F.length<=1&&J()},K={mode:r,persisted:a,beforeEnter(F){let D=l;if(!n.isMounted)if(i)D=m||l;else return;F[Ot]&&F[Ot](!0);const J=y[A];J&&Xt(e,J)&&J.el[Ot]&&J.el[Ot](),O(D,[F])},enter(F){if(y[A]===e)return;let D=u,J=c,j=d;if(!n.isMounted)if(i)D=v||u,J=b||c,j=T||d;else return;let le=!1;F[Es]=we=>{le||(le=!0,we?O(j,[F]):O(J,[F]),K.delayedLeave&&K.delayedLeave(),F[Es]=void 0)};const fe=F[Es].bind(null,!1);D?P(D,[F,fe]):fe()},leave(F,D){const J=String(e.key);if(F[Es]&&F[Es](!0),n.isUnmounting)return D();O(f,[F]);let j=!1;F[Ot]=fe=>{j||(j=!0,D(),fe?O(g,[F]):O(_,[F]),F[Ot]=void 0,y[J]===e&&delete y[J])};const le=F[Ot].bind(null,!1);y[J]=e,h?P(h,[F,le]):le()},clone(F){const D=ur(F,t,n,s,o);return o&&o(D),D}};return K}function Fi(e){if(ci(e))return e=xn(e),e.children=null,e}function La(e){if(!ci(e))return hu(e.type)&&e.children?gu(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&&ve(n.default))return n.default()}}function Xs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Xs(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;iVs(g,t&&(ge(t)?t[m]:t),n,s,o));return}if(js(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Vs(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?hi(s.component):s.el,r=o?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===Le?a.refs={}:a.refs,d=a.setupState,f=Re(d),h=d===Le?Tc:g=>Ma(c,g)?!1:Fe(f,g),_=(g,m)=>!(m&&Ma(c,m));if(u!=null&&u!==l){if(Va(t),Me(u))c[u]=null,h(u)&&(d[u]=null);else if(Ke(u)){const g=t;_(u,g.k)&&(u.value=null),g.k&&(c[g.k]=null)}}if(ve(l))oo(l,a,12,[r,c]);else{const g=Me(l),m=Ke(l);if(g||m){const v=()=>{if(e.f){const b=g?h(l)?d[l]:c[l]:_()||!e.k?l.value:c[e.k];if(o)ge(b)&&Mr(b,i);else if(ge(b))b.includes(i)||b.push(i);else if(g)c[l]=[i],h(l)&&(d[l]=c[l]);else{const T=[i];_(l,e.k)&&(l.value=T),e.k&&(c[e.k]=T)}}else g?(c[l]=r,h(l)&&(d[l]=r)):m&&(_(l,e.k)&&(l.value=r),e.k&&(c[e.k]=r))};if(r){const b=()=>{v(),qo.delete(e)};b.id=-1,qo.set(e,b),it(b,n)}else Va(e),v()}}}function Va(e){const t=qo.get(e);t&&(t.flags|=8,qo.delete(e))}si().requestIdleCallback;si().cancelIdleCallback;const js=e=>!!e.type.__asyncLoader,ci=e=>e.type.__isKeepAlive;function hs(e,t){bu(e,"a",t)}function jn(e,t){bu(e,"da",t)}function bu(e,t,n=at){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ui(t,s,n),n){let o=n.parent;for(;o&&o.parent;)ci(o.parent.vnode)&&Oh(s,t,n,o),o=o.parent}}function Oh(e,t,n,s){const o=ui(t,e,s,!0);Un(()=>{Mr(s[t],o)},n)}function ui(e,t,n=at,s=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{un();const a=ro(n),l=Ft(t,n,e,r);return a(),dn(),l});return s?o.unshift(i):o.push(i),i}}const mn=e=>(t,n=at)=>{(!Qs||e==="sp")&&ui(e,(...s)=>t(...s),n)},Ph=mn("bm"),nt=mn("m"),wu=mn("bu"),$h=mn("u"),ps=mn("bum"),Un=mn("um"),Bh=mn("sp"),Fh=mn("rtg"),Dh=mn("rtc");function Nh(e,t=at){ui("ec",e,t)}const Xr="components",Lh="directives";function Mh(e,t){return Yr(Xr,e,!0,t)||e}const Eu=Symbol.for("v-ndc");function Vh(e){return Me(e)?Yr(Xr,e,!1)||e:e||Eu}function gC(e){return Yr(Lh,e)}function Yr(e,t,n=!0,s=!1){const o=Ct||at;if(o){const i=o.type;if(e===Xr){const a=Ip(i,!1);if(a&&(a===t||a===_t(t)||a===ni(_t(t))))return i}const r=ja(o[e]||i[e],t)||ja(o.appContext[e],t);return!r&&s?i:r}}function ja(e,t){return e&&(e[t]||e[_t(t)]||e[ni(_t(t))])}function gt(e,t,n,s){let o;const i=n,r=ge(e);if(r||Me(e)){const a=r&&ln(e);let l=!1,u=!1;a&&(l=!At(e),u=fn(e),e=oi(e)),o=new Array(e.length);for(let c=0,d=e.length;ct(a,l,void 0,i));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,u=a.length;le?Hu(e)?hi(e):dr(e.parent):null,Us=tt(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=>dr(e.parent),$root:e=>dr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>xu(e),$forceUpdate:e=>e.f||(e.f=()=>{Kr(e.update)}),$nextTick:e=>e.n||(e.n=We.bind(e.proxy)),$watch:e=>xh.bind(e)}),Di=(e,t)=>e!==Le&&!e.__isScriptSetup&&Fe(e,t),jh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:i,accessCache:r,type:a,appContext:l}=e;if(t[0]!=="$"){const f=r[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(Di(s,t))return r[t]=1,s[t];if(o!==Le&&Fe(o,t))return r[t]=2,o[t];if(Fe(i,t))return r[t]=3,i[t];if(n!==Le&&Fe(n,t))return r[t]=4,n[t];fr&&(r[t]=0)}}const u=Us[t];let c,d;if(u)return t==="$attrs"&&rt(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==Le&&Fe(n,t))return r[t]=4,n[t];if(d=l.config.globalProperties,Fe(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:i}=e;return Di(o,t)?(o[t]=n,!0):s!==Le&&Fe(s,t)?(s[t]=n,!0):Fe(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:r}},a){let l;return!!(n[a]||e!==Le&&a[0]!=="$"&&Fe(e,a)||Di(t,a)||Fe(i,a)||Fe(s,a)||Fe(Us,a)||Fe(o.config.globalProperties,a)||(l=r.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ua(e){return ge(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let fr=!0;function Uh(e){const t=xu(e),n=e.proxy,s=e.ctx;fr=!1,t.beforeCreate&&Ha(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:r,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:h,updated:_,activated:g,deactivated:m,beforeDestroy:v,beforeUnmount:b,destroyed:T,unmounted:A,render:y,renderTracked:O,renderTriggered:P,errorCaptured:K,serverPrefetch:F,expose:D,inheritAttrs:J,components:j,directives:le,filters:fe}=t;if(u&&Hh(u,s,null),r)for(const ae in r){const pe=r[ae];ve(pe)&&(s[ae]=pe.bind(n))}if(o){const ae=o.call(n,n);De(ae)&&(e.data=ct(ae))}if(fr=!0,i)for(const ae in i){const pe=i[ae],Q=ve(pe)?pe.bind(n,n):ve(pe.get)?pe.get.bind(n,n):Qt,Y=!ve(pe)&&ve(pe.set)?pe.set.bind(n):Qt,q=z({get:Q,set:Y});Object.defineProperty(s,ae,{enumerable:!0,configurable:!0,get:()=>q.value,set:W=>q.value=W})}if(a)for(const ae in a)Su(a[ae],s,n,ae);if(l){const ae=ve(l)?l.call(n):l;Reflect.ownKeys(ae).forEach(pe=>{Zt(pe,ae[pe])})}c&&Ha(c,e,"c");function ue(ae,pe){ge(pe)?pe.forEach(Q=>ae(Q.bind(n))):pe&&ae(pe.bind(n))}if(ue(Ph,d),ue(nt,f),ue(wu,h),ue($h,_),ue(hs,g),ue(jn,m),ue(Nh,K),ue(Dh,O),ue(Fh,P),ue(ps,b),ue(Un,A),ue(Bh,F),ge(D))if(D.length){const ae=e.exposed||(e.exposed={});D.forEach(pe=>{Object.defineProperty(ae,pe,{get:()=>n[pe],set:Q=>n[pe]=Q,enumerable:!0})})}else e.exposed||(e.exposed={});y&&e.render===Qt&&(e.render=y),J!=null&&(e.inheritAttrs=J),j&&(e.components=j),le&&(e.directives=le),F&&yu(e)}function Hh(e,t,n=Qt){ge(e)&&(e=hr(e));for(const s in e){const o=e[s];let i;De(o)?"default"in o?i=ot(o.from||s,o.default,!0):i=ot(o.from||s):i=ot(o),Ke(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[s]=i}}function Ha(e,t,n){Ft(ge(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Su(e,t,n,s){let o=s.includes(".")?du(n,s):()=>n[s];if(Me(e)){const i=t[e];ve(i)&&be(o,i)}else if(ve(e))be(o,e.bind(n));else if(De(e))if(ge(e))e.forEach(i=>Su(i,t,n,s));else{const i=ve(e.handler)?e.handler.bind(n):t[e.handler];ve(i)&&be(o,i,e)}}function xu(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,a=i.get(t);let l;return a?l=a:!o.length&&!n&&!s?l=t:(l={},o.length&&o.forEach(u=>Wo(l,u,r,!0)),Wo(l,t,r)),De(t)&&i.set(t,l),l}function Wo(e,t,n,s=!1){const{mixins:o,extends:i}=t;i&&Wo(e,i,n,!0),o&&o.forEach(r=>Wo(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const a=zh[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const zh={data:za,props:qa,emits:qa,methods:Fs,computed:Fs,beforeCreate:ht,created:ht,beforeMount:ht,mounted:ht,beforeUpdate:ht,updated:ht,beforeDestroy:ht,beforeUnmount:ht,destroyed:ht,unmounted:ht,activated:ht,deactivated:ht,errorCaptured:ht,serverPrefetch:ht,components:Fs,directives:Fs,watch:Wh,provide:za,inject:qh};function za(e,t){return t?e?function(){return tt(ve(e)?e.call(this,this):e,ve(t)?t.call(this,this):t)}:t:e}function qh(e,t){return Fs(hr(e),hr(t))}function hr(e){if(ge(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${_t(t)}Modifiers`]||e[`${pn(t)}Modifiers`];function Xh(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Le;let o=n;const i=t.startsWith("update:"),r=i&&Jh(s,t.slice(7));r&&(r.trim&&(o=n.map(c=>Me(c)?c.trim():c)),r.number&&(o=n.map(Nf)));let a,l=s[a=Ri(t)]||s[a=Ri(_t(t))];!l&&i&&(l=s[a=Ri(pn(t))]),l&&Ft(l,e,6,o);const u=s[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Ft(u,e,6,o)}}const Yh=new WeakMap;function Au(e,t,n=!1){const s=n?Yh:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const i=e.emits;let r={},a=!1;if(!ve(e)){const l=u=>{const c=Au(u,t,!0);c&&(a=!0,tt(r,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(De(e)&&s.set(e,null),null):(ge(i)?i.forEach(l=>r[l]=null):tt(r,i),De(e)&&s.set(e,r),r)}function di(e,t){return!e||!Qo(t)?!1:(t=t.slice(2).replace(/Once$/,""),Fe(e,t[0].toLowerCase()+t.slice(1))||Fe(e,pn(t))||Fe(e,t))}function Wa(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[i],slots:r,attrs:a,emit:l,render:u,renderCache:c,props:d,data:f,setupState:h,ctx:_,inheritAttrs:g}=e,m=zo(e);let v,b;try{if(n.shapeFlag&4){const A=o||s,y=A;v=Lt(u.call(y,A,c,d,h,f,_)),b=a}else{const A=t;v=Lt(A.length>1?A(d,{attrs:a,slots:r,emit:l}):A(d,null)),b=t.props?a:Zh(a)}}catch(A){Hs.length=0,io(A,e,1),v=S(st)}let T=v;if(b&&g!==!1){const A=Object.keys(b),{shapeFlag:y}=T;A.length&&y&7&&(i&&A.some(Zo)&&(b=ep(b,i)),T=xn(T,b,!1,!0))}return n.dirs&&(T=xn(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&Xs(T,n.transition),v=T,zo(m),v}function Qh(e,t=!0){let n;for(let s=0;s{let t;for(const n in e)(n==="class"||n==="style"||Qo(n))&&((t||(t={}))[n]=e[n]);return t},ep=(e,t)=>{const n={};for(const s in e)(!Zo(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function tp(e,t,n){const{props:s,children:o,component:i}=e,{props:r,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Ka(s,r,u):!!r;if(l&8){const c=t.dynamicProps;for(let d=0;dObject.create(ku),Iu=e=>Object.getPrototypeOf(e)===ku;function np(e,t,n,s=!1){const o={},i=Ru();e.propsDefaults=Object.create(null),Ou(e,t,o,i);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=s?o:nu(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function sp(e,t,n,s){const{props:o,attrs:i,vnode:{patchFlag:r}}=e,a=Re(o),[l]=e.propsOptions;let u=!1;if((s||r>0)&&!(r&16)){if(r&8){const c=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,h]=Pu(d,t,!0);tt(r,f),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return De(e)&&s.set(e,es),es;if(ge(i))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",ea=e=>ge(e)?e.map(Lt):[Lt(e)],ip=(e,t,n)=>{if(t._n)return t;const s=qe((...o)=>ea(t(...o)),n);return s._c=!1,s},$u=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Zr(o))continue;const i=e[o];if(ve(i))t[o]=ip(o,i,s);else if(i!=null){const r=ea(i);t[o]=()=>r}}},Bu=(e,t)=>{const n=ea(t);e.slots.default=()=>n},Fu=(e,t,n)=>{for(const s in t)(n||!Zr(s))&&(e[s]=t[s])},rp=(e,t,n)=>{const s=e.slots=Ru();if(e.vnode.shapeFlag&32){const o=t._;o?(Fu(s,t,n),n&&Pc(s,"_",o,!0)):$u(t,s)}else t&&Bu(e,t)},ap=(e,t,n)=>{const{vnode:s,slots:o}=e;let i=!0,r=Le;if(s.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:Fu(o,t,n):(i=!t.$stable,$u(t,o)),r=t}else t&&(Bu(e,t),r={default:1});if(i)for(const a in o)!Zr(a)&&r[a]==null&&delete o[a]},it=_p;function lp(e){return cp(e)}function cp(e,t){const n=si();n.__VUE__=!0;const{insert:s,remove:o,patchProp:i,createElement:r,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:h=Qt,insertStaticContent:_}=e,g=(w,x,k,V=null,G=null,H=null,re=void 0,oe=null,se=!!x.dynamicChildren)=>{if(w===x)return;w&&!Xt(w,x)&&(V=E(w),W(w,G,H,!0),w=null),x.patchFlag===-2&&(se=!1,x.dynamicChildren=null);const{type:C,ref:N,shapeFlag:L}=x;switch(C){case fi:m(w,x,k,V);break;case st:v(w,x,k,V);break;case Bo:w==null&&b(x,k,V,re);break;case Ie:j(w,x,k,V,G,H,re,oe,se);break;default:L&1?y(w,x,k,V,G,H,re,oe,se):L&6?le(w,x,k,V,G,H,re,oe,se):(L&64||L&128)&&C.process(w,x,k,V,G,H,re,oe,se,ee)}N!=null&&G?Vs(N,w&&w.ref,H,x||w,!x):N==null&&w&&w.ref!=null&&Vs(w.ref,null,H,w,!0)},m=(w,x,k,V)=>{if(w==null)s(x.el=a(x.children),k,V);else{const G=x.el=w.el;x.children!==w.children&&u(G,x.children)}},v=(w,x,k,V)=>{w==null?s(x.el=l(x.children||""),k,V):x.el=w.el},b=(w,x,k,V)=>{[w.el,w.anchor]=_(w.children,x,k,V,w.el,w.anchor)},T=({el:w,anchor:x},k,V)=>{let G;for(;w&&w!==x;)G=f(w),s(w,k,V),w=G;s(x,k,V)},A=({el:w,anchor:x})=>{let k;for(;w&&w!==x;)k=f(w),o(w),w=k;o(x)},y=(w,x,k,V,G,H,re,oe,se)=>{if(x.type==="svg"?re="svg":x.type==="math"&&(re="mathml"),w==null)O(x,k,V,G,H,re,oe,se);else{const C=w.el&&w.el._isVueCE?w.el:null;try{C&&C._beginPatch(),F(w,x,G,H,re,oe,se)}finally{C&&C._endPatch()}}},O=(w,x,k,V,G,H,re,oe)=>{let se,C;const{props:N,shapeFlag:L,transition:X,dirs:ie}=w;if(se=w.el=r(w.type,H,N&&N.is,N),L&8?c(se,w.children):L&16&&K(w.children,se,null,V,G,Ni(w,H),re,oe),ie&&Cn(w,null,V,"created"),P(se,w,w.scopeId,re,V),N){for(const ke in N)ke!=="value"&&!Ns(ke)&&i(se,ke,null,N[ke],H,V);"value"in N&&i(se,"value",null,N.value,H),(C=N.onVnodeBeforeMount)&&Wt(C,V,w)}ie&&Cn(w,null,V,"beforeMount");const Ee=up(G,X);Ee&&X.beforeEnter(se),s(se,x,k),((C=N&&N.onVnodeMounted)||Ee||ie)&&it(()=>{try{C&&Wt(C,V,w),Ee&&X.enter(se),ie&&Cn(w,null,V,"mounted")}finally{}},G)},P=(w,x,k,V,G)=>{if(k&&h(w,k),V)for(let H=0;H{for(let C=se;C{const oe=x.el=w.el;let{patchFlag:se,dynamicChildren:C,dirs:N}=x;se|=w.patchFlag&16;const L=w.props||Le,X=x.props||Le;let ie;if(k&&An(k,!1),(ie=X.onVnodeBeforeUpdate)&&Wt(ie,k,x,w),N&&Cn(x,w,k,"beforeUpdate"),k&&An(k,!0),(L.innerHTML&&X.innerHTML==null||L.textContent&&X.textContent==null)&&c(oe,""),C?D(w.dynamicChildren,C,oe,k,V,Ni(x,G),H):re||pe(w,x,oe,null,k,V,Ni(x,G),H,!1),se>0){if(se&16)J(oe,L,X,k,G);else if(se&2&&L.class!==X.class&&i(oe,"class",null,X.class,G),se&4&&i(oe,"style",L.style,X.style,G),se&8){const Ee=x.dynamicProps;for(let ke=0;ke{ie&&Wt(ie,k,x,w),N&&Cn(x,w,k,"updated")},V)},D=(w,x,k,V,G,H,re)=>{for(let oe=0;oe{if(x!==k){if(x!==Le)for(const H in x)!Ns(H)&&!(H in k)&&i(w,H,x[H],null,G,V);for(const H in k){if(Ns(H))continue;const re=k[H],oe=x[H];re!==oe&&H!=="value"&&i(w,H,oe,re,G,V)}"value"in k&&i(w,"value",x.value,k.value,G)}},j=(w,x,k,V,G,H,re,oe,se)=>{const C=x.el=w?w.el:a(""),N=x.anchor=w?w.anchor:a("");let{patchFlag:L,dynamicChildren:X,slotScopeIds:ie}=x;ie&&(oe=oe?oe.concat(ie):ie),w==null?(s(C,k,V),s(N,k,V),K(x.children||[],k,N,G,H,re,oe,se)):L>0&&L&64&&X&&w.dynamicChildren&&w.dynamicChildren.length===X.length?(D(w.dynamicChildren,X,k,G,H,re,oe),(x.key!=null||G&&x===G.subTree)&&ta(w,x,!0)):pe(w,x,k,N,G,H,re,oe,se)},le=(w,x,k,V,G,H,re,oe,se)=>{x.slotScopeIds=oe,w==null?x.shapeFlag&512?G.ctx.activate(x,k,V,re,se):fe(x,k,V,G,H,re,se):we(w,x,se)},fe=(w,x,k,V,G,H,re)=>{const oe=w.component=Cp(w,V,G);if(ci(w)&&(oe.ctx.renderer=ee),Ap(oe,!1,re),oe.asyncDep){if(G&&G.registerDep(oe,ue,re),!w.el){const se=oe.subTree=S(st);v(null,se,x,k),w.placeholder=se.el}}else ue(oe,w,x,k,G,H,re)},we=(w,x,k)=>{const V=x.component=w.component;if(tp(w,x,k))if(V.asyncDep&&!V.asyncResolved){ae(V,x,k);return}else V.next=x,V.update();else x.el=w.el,V.vnode=x},ue=(w,x,k,V,G,H,re)=>{const oe=()=>{if(w.isMounted){let{next:L,bu:X,u:ie,parent:Ee,vnode:ke}=w;{const ft=Du(w);if(ft){L&&(L.el=ke.el,ae(w,L,re)),ft.asyncDep.then(()=>{it(()=>{w.isUnmounted||C()},G)});return}}let Oe=L,Se;An(w,!1),L?(L.el=ke.el,ae(w,L,re)):L=ke,X&&Ii(X),(Se=L.props&&L.props.onVnodeBeforeUpdate)&&Wt(Se,Ee,L,ke),An(w,!0);const Ae=Wa(w),dt=w.subTree;w.subTree=Ae,g(dt,Ae,d(dt.el),E(dt),w,G,H),L.el=Ae.el,Oe===null&&Qr(w,Ae.el),ie&&it(ie,G),(Se=L.props&&L.props.onVnodeUpdated)&&it(()=>Wt(Se,Ee,L,ke),G)}else{let L;const{el:X,props:ie}=x,{bm:Ee,m:ke,parent:Oe,root:Se,type:Ae}=w,dt=js(x);An(w,!1),Ee&&Ii(Ee),!dt&&(L=ie&&ie.onVnodeBeforeMount)&&Wt(L,Oe,x),An(w,!0);{Se.ce&&Se.ce._hasShadowRoot()&&Se.ce._injectChildStyle(Ae,w.parent?w.parent.type:void 0);const ft=w.subTree=Wa(w);g(null,ft,k,V,w,G,H),x.el=ft.el}if(ke&&it(ke,G),!dt&&(L=ie&&ie.onVnodeMounted)){const ft=x;it(()=>Wt(L,Oe,ft),G)}(x.shapeFlag&256||Oe&&js(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&w.a&&it(w.a,G),w.isMounted=!0,x=k=V=null}};w.scope.on();const se=w.effect=new Vc(oe);w.scope.off();const C=w.update=se.run.bind(se),N=w.job=se.runIfDirty.bind(se);N.i=w,N.id=w.uid,se.scheduler=()=>Kr(N),An(w,!0),C()},ae=(w,x,k)=>{x.component=w;const V=w.vnode.props;w.vnode=x,w.next=null,sp(w,x.props,V,k),ap(w,x.children,k),un(),Fa(w),dn()},pe=(w,x,k,V,G,H,re,oe,se=!1)=>{const C=w&&w.children,N=w?w.shapeFlag:0,L=x.children,{patchFlag:X,shapeFlag:ie}=x;if(X>0){if(X&128){Y(C,L,k,V,G,H,re,oe,se);return}else if(X&256){Q(C,L,k,V,G,H,re,oe,se);return}}ie&8?(N&16&&he(C,G,H),L!==C&&c(k,L)):N&16?ie&16?Y(C,L,k,V,G,H,re,oe,se):he(C,G,H,!0):(N&8&&c(k,""),ie&16&&K(L,k,V,G,H,re,oe,se))},Q=(w,x,k,V,G,H,re,oe,se)=>{w=w||es,x=x||es;const C=w.length,N=x.length,L=Math.min(C,N);let X;for(X=0;XN?he(w,G,H,!0,!1,L):K(x,k,V,G,H,re,oe,se,L)},Y=(w,x,k,V,G,H,re,oe,se)=>{let C=0;const N=x.length;let L=w.length-1,X=N-1;for(;C<=L&&C<=X;){const ie=w[C],Ee=x[C]=se?on(x[C]):Lt(x[C]);if(Xt(ie,Ee))g(ie,Ee,k,null,G,H,re,oe,se);else break;C++}for(;C<=L&&C<=X;){const ie=w[L],Ee=x[X]=se?on(x[X]):Lt(x[X]);if(Xt(ie,Ee))g(ie,Ee,k,null,G,H,re,oe,se);else break;L--,X--}if(C>L){if(C<=X){const ie=X+1,Ee=ieX)for(;C<=L;)W(w[C],G,H,!0),C++;else{const ie=C,Ee=C,ke=new Map;for(C=Ee;C<=X;C++){const xt=x[C]=se?on(x[C]):Lt(x[C]);xt.key!=null&&ke.set(xt.key,C)}let Oe,Se=0;const Ae=X-Ee+1;let dt=!1,ft=0;const bs=new Array(Ae);for(C=0;C=Ae){W(xt,G,H,!0);continue}let qt;if(xt.key!=null)qt=ke.get(xt.key);else for(Oe=Ee;Oe<=X;Oe++)if(bs[Oe-Ee]===0&&Xt(xt,x[Oe])){qt=Oe;break}qt===void 0?W(xt,G,H,!0):(bs[qt-Ee]=C+1,qt>=ft?ft=qt:dt=!0,g(xt,x[qt],k,null,G,H,re,oe,se),Se++)}const ka=dt?dp(bs):es;for(Oe=ka.length-1,C=Ae-1;C>=0;C--){const xt=Ee+C,qt=x[xt],Ra=x[xt+1],Ia=xt+1{const{el:H,type:re,transition:oe,children:se,shapeFlag:C}=w;if(C&6){q(w.component.subTree,x,k,V);return}if(C&128){w.suspense.move(x,k,V);return}if(C&64){re.move(w,x,k,ee);return}if(re===Ie){s(H,x,k);for(let L=0;Loe.enter(H),G));else{const{leave:L,delayLeave:X,afterLeave:ie}=oe,Ee=()=>{w.ctx.isUnmounted?o(H):s(H,x,k)},ke=()=>{const Oe=H._isLeaving||!!H[Ot];H._isLeaving&&H[Ot](!0),oe.persisted&&!Oe?Ee():L(H,()=>{Ee(),ie&&ie()})};X?X(H,Ee,ke):ke()}else s(H,x,k)},W=(w,x,k,V=!1,G=!1)=>{const{type:H,props:re,ref:oe,children:se,dynamicChildren:C,shapeFlag:N,patchFlag:L,dirs:X,cacheIndex:ie,memo:Ee}=w;if(L===-2&&(G=!1),oe!=null&&(un(),Vs(oe,null,k,w,!0),dn()),ie!=null&&(x.renderCache[ie]=void 0),N&256){x.ctx.deactivate(w);return}const ke=N&1&&X,Oe=!js(w);let Se;if(Oe&&(Se=re&&re.onVnodeBeforeUnmount)&&Wt(Se,x,w),N&6)te(w.component,k,V);else{if(N&128){w.suspense.unmount(k,V);return}ke&&Cn(w,null,x,"beforeUnmount"),N&64?w.type.remove(w,x,k,ee,V):C&&!C.hasOnce&&(H!==Ie||L>0&&L&64)?he(C,x,k,!1,!0):(H===Ie&&L&384||!G&&N&16)&&he(se,x,k),V&&Z(w)}const Ae=Ee!=null&&ie==null;(Oe&&(Se=re&&re.onVnodeUnmounted)||ke||Ae)&&it(()=>{Se&&Wt(Se,x,w),ke&&Cn(w,null,x,"unmounted"),Ae&&(w.el=null)},k)},Z=w=>{const{type:x,el:k,anchor:V,transition:G}=w;if(x===Ie){ye(k,V);return}if(x===Bo){A(w);return}const H=()=>{o(k),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(w.shapeFlag&1&&G&&!G.persisted){const{leave:re,delayLeave:oe}=G,se=()=>re(k,H);oe?oe(w.el,H,se):se()}else H()},ye=(w,x)=>{let k;for(;w!==x;)k=f(w),o(w),w=k;o(x)},te=(w,x,k)=>{const{bum:V,scope:G,job:H,subTree:re,um:oe,m:se,a:C}=w;Ja(se),Ja(C),V&&Ii(V),G.stop(),H&&(H.flags|=8,W(re,w,x,k)),oe&&it(oe,x),it(()=>{w.isUnmounted=!0},x)},he=(w,x,k,V=!1,G=!1,H=0)=>{for(let re=H;re{if(w.shapeFlag&6)return E(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();const x=f(w.anchor||w.el),k=x&&x[fu];return k?f(k):x};let B=!1;const M=(w,x,k)=>{let V;w==null?x._vnode&&(W(x._vnode,null,null,!0),V=x._vnode.component):g(x._vnode||null,w,x,null,null,null,k),x._vnode=w,B||(B=!0,Fa(V),au(),B=!1)},ee={p:g,um:W,m:q,r:Z,mt:fe,mc:K,pc:pe,pbc:D,n:E,o:e};return{render:M,hydrate:void 0,createApp:Gh(M)}}function Ni({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function An({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function up(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ta(e,t,n=!1){const s=e.children,o=t.children;if(ge(s)&&ge(o))for(let i=0;i>1,e[n[a]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}function Du(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Du(t)}function Ja(e){if(e)for(let t=0;te.__isSuspense;let mr=0;const fp={name:"Suspense",__isSuspense:!0,process(e,t,n,s,o,i,r,a,l,u){if(e==null)pp(t,n,s,o,i,r,a,l,u);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}mp(e,t,n,s,o,r,a,l,u)}},hydrate:gp,normalize:vp},hp=fp;function Ys(e,t){const n=e.props&&e.props[t];ve(n)&&n()}function pp(e,t,n,s,o,i,r,a,l){const{p:u,o:{createElement:c}}=l,d=c("div"),f=e.suspense=Mu(e,o,s,t,d,n,i,r,a,l);u(null,f.pendingBranch=e.ssContent,d,null,s,f,i,r),f.deps>0?(Ys(e,"onPending"),Ys(e,"onFallback"),u(null,e.ssFallback,t,n,s,null,i,r),os(f,e.ssFallback)):f.resolve(!1,!0)}function mp(e,t,n,s,o,i,r,a,{p:l,um:u,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,h=t.ssFallback,{activeBranch:_,pendingBranch:g,isInFallback:m,isHydrating:v}=d;if(g)d.pendingBranch=f,Xt(g,f)?(l(g,f,d.hiddenContainer,null,o,d,i,r,a),d.deps<=0?d.resolve():m&&(v||(l(_,h,n,s,o,null,i,r,a),os(d,h)))):(d.pendingId=mr++,v?(d.isHydrating=!1,d.activeBranch=g):u(g,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),m?(l(null,f,d.hiddenContainer,null,o,d,i,r,a),d.deps<=0?d.resolve():(l(_,h,n,s,o,null,i,r,a),os(d,h))):_&&Xt(_,f)?(l(_,f,n,s,o,d,i,r,a),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,o,d,i,r,a),d.deps<=0&&d.resolve()));else if(_&&Xt(_,f))l(_,f,n,s,o,d,i,r,a),os(d,f);else if(Ys(t,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=mr++,l(null,f,d.hiddenContainer,null,o,d,i,r,a),d.deps<=0)d.resolve();else{const{timeout:b,pendingId:T}=d;b>0?setTimeout(()=>{d.pendingId===T&&d.fallback(h)},b):b===0&&d.fallback(h)}}function Mu(e,t,n,s,o,i,r,a,l,u,c=!1){const{p:d,m:f,um:h,n:_,o:{parentNode:g,remove:m}}=u;let v;const b=yp(e);b&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const T=e.props?$c(e.props.timeout):void 0,A=i,y={vnode:e,parent:t,parentComponent:n,namespace:r,container:s,hiddenContainer:o,deps:0,pendingId:mr++,timeout:typeof T=="number"?T:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(O=!1,P=!1){const{vnode:K,activeBranch:F,pendingBranch:D,pendingId:J,effects:j,parentComponent:le,container:fe,isInFallback:we}=y;let ue=!1;if(y.isHydrating)y.isHydrating=!1;else if(!O){ue=F&&D.transition&&D.transition.mode==="out-in";let Q=!1;ue&&(F.transition.afterLeave=()=>{J===y.pendingId&&(f(D,fe,i===A&&!Q?_(F):i,0),ar(j),we&&K.ssFallback&&(K.ssFallback.el=null))}),F&&!y.isFallbackMountPending&&(g(F.el)===fe&&(i=_(F),Q=!0),h(F,le,y,!0),!ue&&we&&K.ssFallback&&it(()=>K.ssFallback.el=null,y)),ue||f(D,fe,i,0)}y.isFallbackMountPending=!1,os(y,D),y.pendingBranch=null,y.isInFallback=!1;let ae=y.parent,pe=!1;for(;ae;){if(ae.pendingBranch){ae.effects.push(...j),pe=!0;break}ae=ae.parent}!pe&&!ue&&ar(j),y.effects=[],b&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),Ys(K,"onResolve")},fallback(O){if(!y.pendingBranch)return;const{vnode:P,activeBranch:K,parentComponent:F,container:D,namespace:J}=y;Ys(P,"onFallback");const j=_(K),le=()=>{y.isFallbackMountPending=!1,y.isInFallback&&(d(null,O,D,j,F,null,J,a,l),os(y,O))},fe=O.transition&&O.transition.mode==="out-in";fe&&(y.isFallbackMountPending=!0,K.transition.afterLeave=le),y.isInFallback=!0,h(K,F,null,!0),fe||le()},move(O,P,K){y.activeBranch&&f(y.activeBranch,O,P,K),y.container=O},next(){return y.activeBranch&&_(y.activeBranch)},registerDep(O,P,K){const F=!!y.pendingBranch;F&&y.deps++;const D=O.vnode.el;O.asyncDep.catch(J=>{io(J,O,0)}).then(J=>{if(O.isUnmounted||y.isUnmounted||y.pendingId!==O.suspenseId)return;vr(),O.asyncResolved=!0;const{vnode:j}=O;_r(O,J),D&&(j.el=D);const le=!D&&O.subTree.el;P(O,j,g(D||O.subTree.el),D?null:_(O.subTree),y,r,K),le&&(j.placeholder=null,m(le)),Qr(O,j.el),F&&--y.deps===0&&y.resolve()})},unmount(O,P){y.isUnmounted=!0,y.activeBranch&&h(y.activeBranch,n,O,P),y.pendingBranch&&h(y.pendingBranch,n,O,P)}};return y}function gp(e,t,n,s,o,i,r,a,l){const u=t.suspense=Mu(t,s,n,e.parentNode,document.createElement("div"),null,o,i,r,a,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,i,r);return u.deps===0&&u.resolve(!1,!0),c}function vp(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=Xa(s?n.default:n),e.ssFallback=s?Xa(n.fallback):S(st)}function Xa(e){let t;if(ve(e)){const n=rs&&e._c;n&&(e._d=!1,I()),e=e(),n&&(e._d=!0,t=wt,Vu())}return ge(e)&&(e=Qh(e)),e=Lt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function _p(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):ar(e)}function os(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,Qr(s,o))}function yp(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ie=Symbol.for("v-fgt"),fi=Symbol.for("v-txt"),st=Symbol.for("v-cmt"),Bo=Symbol.for("v-stc"),Hs=[];let wt=null;function I(e=!1){Hs.push(wt=e?null:[])}function Vu(){Hs.pop(),wt=Hs[Hs.length-1]||null}let rs=1;function Ko(e,t=!1){rs+=e,e<0&&wt&&t&&(wt.hasOnce=!0)}function ju(e){return e.dynamicChildren=rs>0?wt||es:null,Vu(),rs>0&&wt&&wt.push(e),e}function $(e,t,n,s,o,i){return ju(p(e,t,n,s,o,i,!0))}function vt(e,t,n,s,o){return ju(S(e,t,n,s,o,!0))}function as(e){return e?e.__v_isVNode===!0:!1}function Xt(e,t){return e.type===t.type&&e.key===t.key}const Uu=({key:e})=>e??null,Fo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Me(e)||Ke(e)||ve(e)?{i:Ct,r:e,k:t,f:!!n}:e:null);function p(e,t=null,n=null,s=0,o=null,i=e===Ie?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Uu(t),ref:t&&Fo(t),scopeId:cu,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:Ct};return a?(na(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Me(n)?8:16),rs>0&&!r&&wt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&wt.push(l),l}const S=bp;function bp(e,t=null,n=null,s=0,o=null,i=!1){if((!e||e===Eu)&&(e=st),as(e)){const a=xn(e,t,!0);return n&&na(a,n),rs>0&&!i&&wt&&(a.shapeFlag&6?wt[wt.indexOf(e)]=a:wt.push(a)),a.patchFlag=-2,a}if(Op(e)&&(e=e.__vccOpts),t){t=wp(t);let{class:a,style:l}=t;a&&!Me(a)&&(t.class=$e(a)),De(l)&&(ai(l)&&!ge(l)&&(l=tt({},l)),t.style=Vn(l))}const r=Me(e)?1:Lu(e)?128:hu(e)?64:De(e)?4:ve(e)?2:0;return p(e,t,n,s,o,r,i,!0)}function wp(e){return e?ai(e)||Iu(e)?tt({},e):e:null}function xn(e,t,n=!1,s=!1){const{props:o,ref:i,patchFlag:r,children:a,transition:l}=e,u=t?bt(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Uu(u),ref:t&&t.ref?n&&i?ge(i)?i.concat(Fo(t)):[i,Fo(t)]:Fo(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ie?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xn(e.ssContent),ssFallback:e.ssFallback&&xn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&Xs(c,l.clone(c)),c}function Xe(e=" ",t=0){return S(fi,null,e,t)}function Ep(e,t){const n=S(Bo,null,e);return n.staticCount=t,n}function me(e="",t=!1){return t?(I(),vt(st,null,e)):S(st,null,e)}function Lt(e){return e==null||typeof e=="boolean"?S(st):ge(e)?S(Ie,null,e.slice()):as(e)?on(e):S(fi,null,String(e))}function on(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xn(e)}function na(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ge(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),na(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Iu(t)?t._ctx=Ct:o===3&&Ct&&(Ct.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ve(t)?(t={default:t,_ctx:Ct},n=32):(t=String(t),s&64?(n=16,t=[Xe(t)]):n=8);e.children=t,e.shapeFlag|=n}function bt(...e){const t={};for(let n=0;nat||Ct;let Go,gr;{const e=si(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),i=>{o.length>1?o.forEach(r=>r(i)):o[0](i)}};Go=t("__VUE_INSTANCE_SETTERS__",n=>at=n),gr=t("__VUE_SSR_SETTERS__",n=>Qs=n)}const ro=e=>{const t=at;return Go(e),e.scope.on(),()=>{e.scope.off(),Go(t)}},vr=()=>{at&&at.scope.off(),Go(null)};function Hu(e){return e.vnode.shapeFlag&4}let Qs=!1;function Ap(e,t=!1,n=!1){t&&gr(t);const{props:s,children:o}=e.vnode,i=Hu(e);np(e,s,i,t),rp(e,o,n||t);const r=i?Tp(e,t):void 0;return t&&gr(!1),r}function Tp(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,jh);const{setup:s}=n;if(s){un();const o=e.setupContext=s.length>1?Rp(e):null,i=ro(e),r=oo(s,e,0,[e.props,o]),a=Rc(r);if(dn(),i(),(a||e.sp)&&!js(e)&&yu(e),a){if(r.then(vr,vr),t)return r.then(l=>{_r(e,l)}).catch(l=>{io(l,e,0)});e.asyncDep=r}else _r(e,r)}else zu(e)}function _r(e,t,n){ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:De(t)&&(e.setupState=ou(t)),zu(e)}function zu(e,t,n){const s=e.type;e.render||(e.render=s.render||Qt);{const o=ro(e);un();try{Uh(e)}finally{dn(),o()}}}const kp={get(e,t){return rt(e,"get",""),e[t]}};function Rp(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,kp),slots:e.slots,emit:e.emit,expose:t}}function hi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ou(Wr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Us)return Us[n](e)},has(t,n){return n in t||n in Us}})):e.proxy}function Ip(e,t=!0){return ve(e)?e.displayName||e.name:e.name||t&&e.__name}function Op(e){return ve(e)&&"__vccOpts"in e}const z=(e,t)=>gh(e,t,Qs);function sa(e,t,n){try{Ko(-1);const s=arguments.length;return s===2?De(t)&&!ge(t)?as(t)?S(e,null,[t]):S(e,t):S(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&as(n)&&(n=[n]),S(e,t,n))}finally{Ko(1)}}const Pp="3.5.35";/** * @vue/runtime-dom v3.5.35 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let yr;const Ya=typeof window<"u"&&window.trustedTypes;if(Ya)try{yr=Ya.createPolicy("vue",{createHTML:e=>e})}catch{}const qu=yr?e=>yr.createHTML(e):e=>e,$p="http://www.w3.org/2000/svg",Bp="http://www.w3.org/1998/Math/MathML",sn=typeof document<"u"?document:null,Qa=sn&&sn.createElement("template"),Fp={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"?sn.createElementNS($p,e):t==="mathml"?sn.createElementNS(Bp,e):n?sn.createElement(e,{is:n}):sn.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>sn.createTextNode(e),createComment:e=>sn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>sn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,i){const r=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{Qa.innerHTML=qu(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const a=Qa.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},gn="transition",Ss="animation",Zs=Symbol("_vtc"),Wu={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},Dp=tt({},pu,Wu),Np=e=>(e.displayName="Transition",e.props=Dp,e),Jo=Np((e,{slots:t})=>sa(Ih,Lp(e),t)),Tn=(e,t=[])=>{ge(e)?e.forEach(n=>n(...t)):e&&e(...t)},Za=e=>e?ge(e)?e.some(t=>t.length>1):e.length>1:!1;function Lp(e){const t={};for(const j in e)j in Wu||(t[j]=e[j]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=r,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,_=Mp(o),g=_&&_[0],m=_&&_[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:T,onLeave:A,onLeaveCancelled:y,onBeforeAppear:O=v,onAppear:P=b,onAppearCancelled:K=T}=t,F=(j,le,fe,we)=>{j._enterCancelled=we,kn(j,le?c:a),kn(j,le?u:r),fe&&fe()},D=(j,le)=>{j._isLeaving=!1,kn(j,d),kn(j,h),kn(j,f),le&&le()},J=j=>(le,fe)=>{const we=j?P:b,ue=()=>F(le,j,fe);Tn(we,[le,ue]),el(()=>{kn(le,j?l:i),tn(le,j?c:a),Za(we)||tl(le,s,g,ue)})};return tt(t,{onBeforeEnter(j){Tn(v,[j]),tn(j,i),tn(j,r)},onBeforeAppear(j){Tn(O,[j]),tn(j,l),tn(j,u)},onEnter:J(!1),onAppear:J(!0),onLeave(j,le){j._isLeaving=!0;const fe=()=>D(j,le);tn(j,d),j._enterCancelled?(tn(j,f),ol(j)):(ol(j),tn(j,f)),el(()=>{j._isLeaving&&(kn(j,d),tn(j,h),Za(A)||tl(j,s,m,fe))}),Tn(A,[j,fe])},onEnterCancelled(j){F(j,!1,void 0,!0),Tn(T,[j])},onAppearCancelled(j){F(j,!0,void 0,!0),Tn(K,[j])},onLeaveCancelled(j){D(j),Tn(y,[j])}})}function Mp(e){if(e==null)return null;if(De(e))return[Li(e.enter),Li(e.leave)];{const t=Li(e);return[t,t]}}function Li(e){return $c(e)}function tn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Zs]||(e[Zs]=new Set)).add(t)}function kn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Zs];n&&(n.delete(t),n.size||(e[Zs]=void 0))}function el(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Vp=0;function tl(e,t,n,s){const o=e._endId=++Vp,i=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:r,timeout:a,propCount:l}=jp(e,t);if(!r)return s();const u=r+"end";let c=0;const d=()=>{e.removeEventListener(u,f),i()},f=h=>{h.target===e&&++c>=l&&d()};setTimeout(()=>{c(n[_]||"").split(", "),o=s(`${gn}Delay`),i=s(`${gn}Duration`),r=nl(o,i),a=s(`${Ss}Delay`),l=s(`${Ss}Duration`),u=nl(a,l);let c=null,d=0,f=0;t===gn?r>0&&(c=gn,d=r,f=i.length):t===Ss?u>0&&(c=Ss,d=u,f=l.length):(d=Math.max(r,u),c=d>0?r>u?gn:Ss:null,f=c?c===gn?i.length:l.length:0);const h=c===gn&&/\b(?:transform|all)(?:,|$)/.test(s(`${gn}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:h}}function nl(e,t){for(;e.lengthsl(n)+sl(e[s])))}function sl(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ol(e){return(e?e.ownerDocument:document).body.offsetHeight}function Up(e,t,n){const s=e[Zs];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Xo=Symbol("_vod"),Ku=Symbol("_vsh"),pi={name:"show",beforeMount(e,{value:t},{transition:n}){e[Xo]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):xs(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),xs(e,!0),s.enter(e)):s.leave(e,()=>{xs(e,!1)}):xs(e,t))},beforeUnmount(e,{value:t}){xs(e,t)}};function xs(e,t){e.style.display=t?e[Xo]:"none",e[Ku]=!t}const Hp=Symbol(""),zp=/(?:^|;)\s*display\s*:/;function qp(e,t,n){const s=e.style,o=Me(n);let i=!1;if(n&&!o){if(t)if(Me(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();n[a]==null&&Ds(s,a,"")}else for(const r in t)n[r]==null&&Ds(s,r,"");for(const r in n){r==="display"&&(i=!0);const a=n[r];a!=null?Kp(e,r,!Me(t)&&t?t[r]:void 0,a)||Ds(s,r,a):Ds(s,r,"")}}else if(o){if(t!==n){const r=s[Hp];r&&(n+=";"+r),s.cssText=n,i=zp.test(n)}}else t&&e.removeAttribute("style");Xo in e&&(e[Xo]=i?s.display:"",e[Ku]&&(s.display="none"))}const il=/\s*!important$/;function Ds(e,t,n){if(ge(n))n.forEach(s=>Ds(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Wp(e,t);il.test(n)?e.setProperty(pn(s),n.replace(il,""),"important"):e[s]=n}}const rl=["Webkit","Moz","ms"],Mi={};function Wp(e,t){const n=Mi[t];if(n)return n;let s=_t(t);if(s!=="filter"&&s in e)return Mi[t]=s;s=ni(s);for(let o=0;oVi||(Qp.then(()=>Vi=0),Vi=Date.now());function em(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const o=n.value;if(ge(o)){const i=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{i.call(s),s._stopped=!0};const r=o.slice(),a=[s];for(let l=0;le.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,tm=(e,t,n,s,o,i)=>{const r=o==="svg";t==="class"?Up(e,s,r):t==="style"?qp(e,n,s):Qo(t)?Zo(t)||Xp(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):nm(e,t,s,r))?(cl(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ll(e,t,s,r,i,t!=="value")):e._isVueCE&&(sm(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Me(s)))?cl(e,_t(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),ll(e,t,s,r))};function nm(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&fl(t)&&ve(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 fl(t)&&Me(n)?!1:t in e}function sm(e,t){const n=e._def.props;if(!n)return!1;const s=_t(t);return Array.isArray(n)?n.some(o=>_t(o)===s):Object.keys(n).some(o=>_t(o)===s)}const om=["ctrl","shift","alt","meta"],im={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)=>om.some(n=>e[`${n}Key`]&&!t.includes(n))},Nn=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(o,...i)=>{for(let r=0;r{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=o=>{if(!("key"in o))return;const i=pn(o.key);if(t.some(r=>r===i||rm[r]===i))return e(o)})},am=tt({patchProp:tm},Fp);let hl;function lm(){return hl||(hl=lp(am))}const Ju=(...e)=>{const t=lm().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=um(s);if(!o)return;const i=t._component;!ve(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,cm(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};function cm(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function um(e){return Me(e)?document.querySelector(e):e}function br(){}const He=Object.assign,ms=typeof window<"u",ao=e=>e!==null&&typeof e=="object",Ye=e=>e!=null,eo=e=>typeof e=="function",Xu=e=>ao(e)&&eo(e.then)&&eo(e.catch),Yu=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),dm=()=>ms?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function pl(e,t){const n=t.split(".");let s=e;return n.forEach(o=>{var i;s=ao(s)&&(i=s[o])!=null?i:""}),s}function hn(e,t,n){return t.reduce((s,o)=>(s[o]=e[o],s),{})}const ml=e=>Array.isArray(e)?e:[e],$t=null,Te=[Number,String],Ne={type:Boolean,default:!0},Do=e=>({type:e,required:!0}),Qu=e=>({type:Number,default:e}),Mt=e=>({type:Te,default:e}),Pe=e=>({type:String,default:e});var gs=typeof window<"u";function ls(e){return gs?requestAnimationFrame(e):-1}function Zu(e){gs&&cancelAnimationFrame(e)}function Zn(e){ls(()=>ls(e))}var fm=e=>e===window,gl=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),Yt=e=>{const t=Ce(e);if(fm(t)){const n=t.innerWidth,s=t.innerHeight;return gl(n,s)}return t!=null&&t.getBoundingClientRect?t.getBoundingClientRect():gl(0,0)};function vs(e){const t=ot(e,null);if(t){const n=Dt(),{link:s,unlink:o,internalChildren:i}=t;s(n),Un(()=>o(n));const r=z(()=>i.indexOf(n));return{parent:t,index:r}}return{parent:null,index:U(-1)}}function hm(e){const t=[],n=s=>{Array.isArray(s)&&s.forEach(o=>{var i;as(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 vl=(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 pm(e,t,n){const s=hm(e.subTree.children);n.sort((i,r)=>vl(s,i.vnode)-vl(s,r.vnode));const o=n.map(i=>i.proxy);t.sort((i,r)=>{const a=o.indexOf(i),l=o.indexOf(r);return a-l})}function mi(e){const t=ct([]),n=ct([]),s=Dt();return{children:t,linkChildren:i=>{Zt(e,Object.assign({link:l=>{l.proxy&&(n.push(l),t.push(l.proxy),pm(s,t,n))},unlink:l=>{const u=n.indexOf(l);t.splice(u,1),n.splice(u,1)},children:t,internalChildren:n},i))}}}function gi(e){let t;nt(()=>{e(),We(()=>{t=!0})}),hs(()=>{t&&e()})}function Hn(e,t,n={}){if(!gs)return;const{target:s=window,passive:o=!1,capture:i=!1}=n;let r=!1,a;const l=d=>{if(r)return;const f=Ce(d);f&&!a&&(f.addEventListener(e,t,{capture:i,passive:o}),a=!0)},u=d=>{if(r)return;const f=Ce(d);f&&a&&(f.removeEventListener(e,t,i),a=!1)};Un(()=>u(s)),jn(()=>u(s)),gi(()=>l(s));let c;return Ke(s)&&(c=be(s,(d,f)=>{u(f),l(d)})),()=>{c==null||c(),u(s),r=!0}}var Eo,ji;function mm(){if(!Eo&&(Eo=U(0),ji=U(0),gs)){const e=()=>{Eo.value=window.innerWidth,ji.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:Eo,height:ji}}var gm=/scroll|auto|overlay/i,ed=gs?window:void 0;function vm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function td(e,t=ed){let n=e;for(;n&&n!==t&&vm(n);){const{overflowY:s}=window.getComputedStyle(n);if(gm.test(s))return n;n=n.parentNode}return t}function nd(e,t=ed){const n=U();return nt(()=>{e.value&&(n.value=td(e.value,t))}),n}var So;function _m(){if(!So&&(So=U("visible"),gs)){const e=()=>{So.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return So}var sd=Symbol("van-field");function od(e){const t=ot(sd,null);t&&!t.customValue.value&&(t.customValue.value=e,be(e,()=>{t.resetValidation(),t.validateWithTrigger("onChange")}))}function oa(e){const t="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function wr(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function ia(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function ra(e){wr(window,e),wr(document.body,e)}function _l(e,t){if(e===window)return 0;const n=t?oa(t):ia();return Yt(e).top+n}const ym=dm();function bm(){ym&&ra(ia())}const wm=e=>e.stopPropagation();function cn(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&wm(e)}function to(e){const t=Ce(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:lo,height:vi}=mm();function Qe(e){if(Ye(e))return Yu(e)?`${e}px`:String(e)}function id(e){if(Ye(e)){if(Array.isArray(e))return{width:Qe(e[0]),height:Qe(e[1])};const t=Qe(e);return{width:t,height:t}}}function rd(e){const t={};return e!==void 0&&(t.zIndex=+e),t}let Ui;function Em(){if(!Ui){const e=document.documentElement,t=e.style.fontSize||window.getComputedStyle(e).fontSize;Ui=parseFloat(t)}return Ui}function Sm(e){return e=e.replace(/rem/g,""),+e*Em()}function xm(e){return e=e.replace(/vw/g,""),+e*lo.value/100}function Cm(e){return e=e.replace(/vh/g,""),+e*vi.value/100}function ad(e){if(typeof e=="number")return e;if(ms){if(e.includes("rem"))return Sm(e);if(e.includes("vw"))return xm(e);if(e.includes("vh"))return Cm(e)}return parseFloat(e)}const Am=/-(\w)/g,ld=e=>e.replace(Am,(t,n)=>n.toUpperCase()),Tm=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,""),No=(e,t,n)=>Math.min(Math.max(e,t),n);function yl(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 km(e,t=!0,n=!0){t?e=yl(e,".",/\./g):e=e.split(".")[0],n?e=yl(e,"-",/-/g):e=e.replace(/-/,"");const s=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(s,"")}const{hasOwnProperty:Rm}=Object.prototype;function Im(e,t,n){const s=t[n];Ye(s)&&(!Rm.call(e,n)||!ao(s)?e[n]=s:e[n]=cd(Object(e[n]),s))}function cd(e,t){return Object.keys(t).forEach(n=>{Im(e,t,n)}),e}var Om={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 bl=U("zh-CN"),wl=ct({"zh-CN":Om}),Pm={messages(){return wl[bl.value]},use(e,t){bl.value=e,this.add({[e]:t})},add(e={}){cd(wl,e)}};var $m=Pm;function Bm(e){const t=ld(e)+".";return(n,...s)=>{const o=$m.messages(),i=pl(o,t+n)||pl(o,n);return eo(i)?i(...s):i}}function Er(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((n,s)=>n+Er(e,s),""):Object.keys(t).reduce((n,s)=>n+(t[s]?Er(e,s):""),""):""}function Fm(e){return(t,n)=>(t&&typeof t!="string"&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${Er(t,n)}`)}function Ve(e){const t=`van-${e}`;return[t,Fm(t),Bm(t)]}const co="van-hairline",Dm=`${co}--top`,Nm=`${co}--left`,vC=`${co}--bottom`,Lm=`${co}--surround`,ud=`${co}--top-bottom`,Mm="van-haptics-feedback",Vm=Symbol("van-form"),El=5;function aa(e,{args:t=[],done:n,canceled:s,error:o}){if(e){const i=e.apply(null,t);Xu(i)?i.then(r=>{r?n():s&&s()}).catch(o||br):i?n():s&&s()}else n()}function ze(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(ld(`-${n}`),e))},e}const dd=Symbol();function la(e){const t=ot(dd,null);t&&be(t,n=>{n&&e()})}const jm=(e,t)=>{const n=U(),s=()=>{n.value=Yt(e).height};return nt(()=>{We(s);for(let o=1;o<=3;o++)setTimeout(s,100*o)}),la(()=>We(s)),be([lo,vi],s),n};function Um(e,t){const n=jm(e);return s=>S("div",{class:t("placeholder"),style:{height:n.value?`${n.value}px`:void 0}},[s()])}const[fd,Sl]=Ve("action-bar"),hd=Symbol(fd),Hm={placeholder:Boolean,safeAreaInsetBottom:Ne};var zm=_e({name:fd,props:Hm,setup(e,{slots:t}){const n=U(),s=Um(n,Sl),{linkChildren:o}=mi(hd);o();const i=()=>{var r;return S("div",{ref:n,class:[Sl(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[(r=t.default)==null?void 0:r.call(t)])};return()=>e.placeholder?s(i):i()}});const qm=ze(zm);function Tt(e){const t=Dt();t&&He(t.proxy,e)}const _i={to:[String,Object],url:String,replace:Boolean};function pd({to:e,url:t,replace:n,$router:s}){e&&s?s[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function ca(){const e=Dt().proxy;return()=>pd(e)}const[Wm,xl]=Ve("badge"),Km={dot:Boolean,max:Te,tag:Pe("div"),color:String,offset:Array,content:Te,showZero:Ne,position:Pe("top-right")};var Gm=_e({name:Wm,props:Km,setup(e,{slots:t}){const n=()=>{if(t.content)return!0;const{content:a,showZero:l}=e;return Ye(a)&&a!==""&&(l||a!==0&&a!=="0")},s=()=>{const{dot:a,max:l,content:u}=e;if(!a&&n())return t.content?t.content():Ye(l)&&Yu(u)&&+u>+l?`${l}+`:u},o=a=>a.startsWith("-")?a.replace("-",""):`-${a}`,i=z(()=>{const a={background:e.color};if(e.offset){const[l,u]=e.offset,{position:c}=e,[d,f]=c.split("-");t.default?(typeof u=="number"?a[d]=Qe(d==="top"?u:-u):a[d]=d==="top"?Qe(u):o(u),typeof l=="number"?a[f]=Qe(f==="left"?l:-l):a[f]=f==="left"?Qe(l):o(l)):(a.marginTop=Qe(u),a.marginLeft=Qe(l))}return a}),r=()=>{if(n()||e.dot)return S("div",{class:xl([e.position,{dot:e.dot,fixed:!!t.default}]),style:i.value},[s()])};return()=>{if(t.default){const{tag:a}=e;return S(a,{class:xl("wrapper")},{default:()=>[t.default(),r()]})}return r()}}});const md=ze(Gm);let gd=2e3;const Jm=()=>++gd,Xm=e=>{gd=e},[vd,Ym]=Ve("config-provider"),_d=Symbol(vd),Qm={tag:Pe("div"),theme:Pe("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:Pe("local"),iconPrefix:String};function Zm(e){return e.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function eg(e){const t={};return Object.keys(e).forEach(n=>{const s=Zm(Tm(n));t[`--van-${s}`]=e[n]}),t}function xo(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 tg=_e({name:vd,props:Qm,setup(e,{slots:t}){const n=z(()=>eg(He({},e.themeVars,e.theme==="dark"?e.themeVarsDark:e.themeVarsLight)));if(ms){const s=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},o=(i=e.theme)=>{document.documentElement.classList.remove(`van-theme-${i}`)};be(()=>e.theme,(i,r)=>{r&&o(r),s()},{immediate:!0}),hs(s),jn(o),ps(o),be(n,(i,r)=>{e.themeVarsScope==="global"&&xo(i,r)}),be(()=>e.themeVarsScope,(i,r)=>{r==="global"&&xo({},n.value),i==="global"&&xo(n.value,{})}),e.themeVarsScope==="global"&&xo(n.value,{})}return Zt(_d,e),uu(()=>{e.zIndex!==void 0&&Xm(e.zIndex)}),()=>S(e.tag,{class:Ym(),style:e.themeVarsScope==="local"?n.value:void 0},{default:()=>{var s;return[(s=t.default)==null?void 0:s.call(t)]}})}});const[ng,Cl]=Ve("icon"),sg=e=>e==null?void 0:e.includes("/"),og={dot:Boolean,tag:Pe("i"),name:String,size:Te,badge:Te,color:String,badgeProps:Object,classPrefix:String};var ig=_e({name:ng,props:og,setup(e,{slots:t}){const n=ot(_d,null),s=z(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||Cl());return()=>{const{tag:o,dot:i,name:r,size:a,badge:l,color:u}=e,c=sg(r);return S(md,bt({dot:i,tag:o,class:[s.value,c?"":`${s.value}-${r}`],style:{color:u,fontSize:Qe(a)},content:l},e.badgeProps),{default:()=>{var d;return[(d=t.default)==null?void 0:d.call(t),c&&S("img",{class:Cl("image"),src:r},null)]}})}}});const Et=ze(ig),[rg,zs]=Ve("loading"),ag=Array(12).fill(null).map((e,t)=>S("i",{class:zs("line",String(t+1))},null)),lg=S("svg",{class:zs("circular"),viewBox:"25 25 50 50"},[S("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),cg={size:Te,type:Pe("circular"),color:String,vertical:Boolean,textSize:Te,textColor:String};var ug=_e({name:rg,props:cg,setup(e,{slots:t}){const n=z(()=>He({color:e.color},id(e.size))),s=()=>{const i=e.type==="spinner"?ag:lg;return S("span",{class:zs("spinner",e.type),style:n.value},[t.icon?t.icon():i])},o=()=>{var i;if(t.default)return S("span",{class:zs("text"),style:{fontSize:Qe(e.textSize),color:(i=e.textColor)!=null?i:e.color}},[t.default()])};return()=>{const{type:i,vertical:r}=e;return S("div",{class:zs([i,{vertical:r}]),"aria-live":"polite","aria-busy":!0},[s(),o()])}}});const uo=ze(ug),[dg,qn]=Ve("button"),fg=He({},_i,{tag:Pe("button"),text:String,icon:String,type:Pe("default"),size:Pe("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:Pe("button"),loadingSize:Te,loadingText:String,loadingType:String,iconPosition:Pe("left")});var hg=_e({name:dg,props:fg,emits:["click"],setup(e,{emit:t,slots:n}){const s=ca(),o=()=>n.loading?n.loading():S(uo,{size:e.loadingSize,type:e.loadingType,class:qn("loading")},null),i=()=>{if(e.loading)return o();if(n.icon)return S("div",{class:qn("icon")},[n.icon()]);if(e.icon)return S(Et,{name:e.icon,class:qn("icon"),classPrefix:e.iconPrefix},null)},r=()=>{let u;if(e.loading?u=e.loadingText:u=n.default?n.default():e.text,u)return S("span",{class:qn("text")},[u])},a=()=>{const{color:u,plain:c}=e;if(u){const d={color:c?u:"white"};return c||(d.background=u),u.includes("gradient")?d.border=0:d.borderColor=u,d}},l=u=>{e.loading?cn(u):e.disabled||(t("click",u),s())};return()=>{const{tag:u,type:c,size:d,block:f,round:h,plain:_,square:g,loading:m,disabled:v,hairline:b,nativeType:T,iconPosition:A}=e,y=[qn([c,d,{plain:_,block:f,round:h,square:g,loading:m,disabled:v,hairline:b}]),{[Lm]:b}];return S(u,{type:T,class:y,style:a(),disabled:v,onClick:l},{default:()=>[S("div",{class:qn("content")},[A==="left"&&i(),r(),A==="right"&&i()])]})}}});const cs=ze(hg),[pg,mg]=Ve("action-bar-button"),gg=He({},_i,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean});var vg=_e({name:pg,props:gg,setup(e,{slots:t}){const n=ca(),{parent:s,index:o}=vs(hd),i=z(()=>{if(s){const a=s.children[o.value-1];return!(a&&"isButton"in a)}}),r=z(()=>{if(s){const a=s.children[o.value+1];return!(a&&"isButton"in a)}});return Tt({isButton:!0}),()=>{const{type:a,icon:l,text:u,color:c,loading:d,disabled:f}=e;return S(cs,{class:mg([a,{last:r.value,first:i.value}]),size:"large",type:a,icon:l,color:c,loading:d,disabled:f,onClick:n},{default:()=>[t.default?t.default():u]})}}});const Al=ze(vg),ua={show:Boolean,zIndex:Te,overlay:Ne,duration:Te,teleport:[String,Object],lockScroll:Ne,lazyRender:Ne,beforeClose:Function,overlayProps:Object,overlayStyle:Object,overlayClass:$t,transitionAppear:Boolean,closeOnClickOverlay:Ne},_g=Object.keys(ua);function yg(e,t){return e>t?"horizontal":t>e?"vertical":""}function da(){const e=U(0),t=U(0),n=U(0),s=U(0),o=U(0),i=U(0),r=U(""),a=U(!0),l=()=>r.value==="vertical",u=()=>r.value==="horizontal",c=()=>{n.value=0,s.value=0,o.value=0,i.value=0,r.value="",a.value=!0};return{move:h=>{const _=h.touches[0];n.value=(_.clientX<0?0:_.clientX)-e.value,s.value=_.clientY-t.value,o.value=Math.abs(n.value),i.value=Math.abs(s.value);const g=10;(!r.value||o.valueEl||i.value>El)&&(a.value=!1)},start:h=>{c(),e.value=h.touches[0].clientX,t.value=h.touches[0].clientY},reset:c,startX:e,startY:t,deltaX:n,deltaY:s,offsetX:o,offsetY:i,direction:r,isVertical:l,isHorizontal:u,isTap:a}}let Cs=0;const Tl="van-overflow-hidden";function bg(e,t){const n=da(),s="01",o="10",i=c=>{n.move(c);const d=n.deltaY.value>0?o:s,f=td(c.target,e.value),{scrollHeight:h,offsetHeight:_,scrollTop:g}=f;let m="11";g===0?m=_>=h?"00":"01":g+_>=h&&(m="10"),m!=="11"&&n.isVertical()&&!(parseInt(m,2)&parseInt(d,2))&&cn(c,!0)},r=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",i,{passive:!1}),Cs||document.body.classList.add(Tl),Cs++},a=()=>{Cs&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",i),Cs--,Cs||document.body.classList.remove(Tl))},l=()=>t()&&r(),u=()=>t()&&a();gi(l),jn(u),ps(u),be(t,c=>{c?r():a()})}function fa(e){const t=U(!1);return be(e,n=>{n&&(t.value=n)},{immediate:!0}),n=>()=>t.value?n():null}const kl=()=>{var e;const{scopeId:t}=((e=Dt())==null?void 0:e.vnode)||{};return t?{[t]:""}:null},[wg,Eg]=Ve("overlay"),Sg={show:Boolean,zIndex:Te,duration:Te,className:$t,lockScroll:Ne,lazyRender:Ne,customStyle:Object,teleport:[String,Object]};var xg=_e({name:wg,inheritAttrs:!1,props:Sg,setup(e,{attrs:t,slots:n}){const s=U(),o=fa(()=>e.show||!e.lazyRender),i=a=>{e.lockScroll&&cn(a,!0)},r=o(()=>{var a;const l=He(rd(e.zIndex),e.customStyle);return Ye(e.duration)&&(l.animationDuration=`${e.duration}s`),li(S("div",bt({ref:s,style:l,class:[Eg(),e.className]},t),[(a=n.default)==null?void 0:a.call(n)]),[[pi,e.show]])});return Hn("touchmove",i,{target:s}),()=>{const a=S(Jo,{name:"van-fade",appear:!0},{default:r});return e.teleport?S(Jr,{to:e.teleport},{default:()=>[a]}):a}}});const Cg=ze(xg),Ag=He({},ua,{round:Boolean,position:Pe("center"),closeIcon:Pe("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:Pe("top-right"),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[Tg,Rl]=Ve("popup");var kg=_e({name:Tg,inheritAttrs:!1,props:Ag,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:t,attrs:n,slots:s}){let o,i;const r=U(),a=U(),l=fa(()=>e.show||!e.lazyRender),u=z(()=>{const O={zIndex:r.value};if(Ye(e.duration)){const P=e.position==="center"?"animationDuration":"transitionDuration";O[P]=`${e.duration}s`}return O}),c=()=>{o||(o=!0,r.value=e.zIndex!==void 0?+e.zIndex:Jm(),t("open"))},d=()=>{o&&aa(e.beforeClose,{done(){o=!1,t("close"),t("update:show",!1)}})},f=O=>{t("clickOverlay",O),e.closeOnClickOverlay&&d()},h=()=>{if(e.overlay){const O=He({show:e.show,class:e.overlayClass,zIndex:r.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},e.overlayProps);return S(Cg,bt(O,kl(),{onClick:f}),{default:s["overlay-content"]})}},_=O=>{t("clickCloseIcon",O),d()},g=()=>{if(e.closeable)return S(Et,{role:"button",tabindex:0,name:e.closeIcon,class:[Rl("close-icon",e.closeIconPosition),Mm],classPrefix:e.iconPrefix,onClick:_},null)};let m;const v=()=>{m&&clearTimeout(m),m=setTimeout(()=>{t("opened")})},b=()=>t("closed"),T=O=>t("keydown",O),A=l(()=>{var O;const{destroyOnClose:P,round:K,position:F,safeAreaInsetTop:D,safeAreaInsetBottom:J,show:j}=e;if(!(!j&&P))return li(S("div",bt({ref:a,style:u.value,role:"dialog",tabindex:0,class:[Rl({round:K,[F]:F}),{"van-safe-area-top":D,"van-safe-area-bottom":J}],onKeydown:T},n,kl()),[(O=s.default)==null?void 0:O.call(s),g()]),[[pi,j]])}),y=()=>{const{position:O,transition:P,transitionAppear:K}=e,F=O==="center"?"van-fade":`van-popup-slide-${O}`;return S(Jo,{name:P||F,appear:K,onAfterEnter:v,onAfterLeave:b},{default:A})};return be(()=>e.show,O=>{O&&!o&&(c(),n.tabindex===0&&We(()=>{var P;(P=a.value)==null||P.focus()})),!O&&o&&(o=!1,t("close"))}),Tt({popupRef:a}),bg(a,()=>e.show&&e.lockScroll),Hn("popstate",()=>{e.closeOnPopstate&&(d(),i=!1)}),nt(()=>{e.show&&c()}),hs(()=>{i&&(t("update:show",!0),i=!1)}),jn(()=>{e.show&&e.teleport&&(d(),i=!0)}),Zt(dd,()=>e.show),()=>e.teleport?S(Jr,{to:e.teleport},{default:()=>[h(),y()]}):S(Ie,null,[h(),y()])}});const _s=ze(kg);function Rg(e,t,n){let s,o=0;const i=e.scrollLeft,r=n===0?1:Math.round(n*1e3/16);let a=i;function l(){Zu(s)}function u(){a+=(t-i)/r,e.scrollLeft=a,++ot||!r&&it?o=ls(c):s&&(o=ls(s))}return c(),u}let Og=0;function fo(){const e=Dt(),{name:t="unknown"}=(e==null?void 0:e.type)||{};return`${t}-${++Og}`}function yd(){const e=U([]),t=[];return wu(()=>{e.value=[]}),[e,s=>(t[s]||(t[s]=o=>{e.value[s]=o}),t[s])]}function bd(e,t){if(!ms||!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)};jn(o),ps(o),gi(s)}const[Pg,$g]=Ve("sticky"),Bg={zIndex:Te,position:Pe("top"),container:Object,offsetTop:Mt(0),offsetBottom:Mt(0)};var Fg=_e({name:Pg,props:Bg,emits:["scroll","change"],setup(e,{emit:t,slots:n}){const s=U(),o=nd(s),i=ct({fixed:!1,width:0,height:0,transform:0}),r=U(!1),a=z(()=>ad(e.position==="top"?e.offsetTop:e.offsetBottom)),l=z(()=>{if(r.value)return;const{fixed:f,height:h,width:_}=i;if(f)return{width:`${_}px`,height:`${h}px`}}),u=z(()=>{if(!i.fixed||r.value)return;const f=He(rd(e.zIndex),{width:`${i.width}px`,height:`${i.height}px`,[e.position]:`${a.value}px`});return i.transform&&(f.transform=`translate3d(0, ${i.transform}px, 0)`),f}),c=f=>t("scroll",{scrollTop:f,isFixed:i.fixed}),d=()=>{if(!s.value||to(s))return;const{container:f,position:h}=e,_=Yt(s),g=oa(window);if(i.width=_.width,i.height=_.height,h==="top")if(f){const m=Yt(f),v=m.bottom-a.value-i.height;i.fixed=a.value>_.top&&m.bottom>0,i.transform=v<0?v:0}else i.fixed=a.value>_.top;else{const{clientHeight:m}=document.documentElement;if(f){const v=Yt(f),b=m-v.top-a.value-i.height;i.fixed=m-a.value<_.bottom&&m>v.top,i.transform=b<0?-b:0}else i.fixed=m-a.value<_.bottom}c(g)};return be(()=>i.fixed,f=>t("change",f)),Hn("scroll",d,{target:o,passive:!0}),bd(s,d),be([lo,vi],()=>{!s.value||to(s)||!i.fixed||(r.value=!0,We(()=>{const f=Yt(s);i.width=f.width,i.height=f.height,r.value=!1}))}),()=>{var f;return S("div",{ref:s,style:l.value},[S("div",{class:$g({fixed:i.fixed&&!r.value}),style:u.value},[(f=n.default)==null?void 0:f.call(n)])])}}});const Dg=ze(Fg),[wd,Co]=Ve("swipe"),Ng={loop:Ne,width:Te,height:Te,vertical:Boolean,autoplay:Mt(0),duration:Mt(500),touchable:Ne,lazyRender:Boolean,initialSwipe:Mt(0),indicatorColor:String,showIndicators:Ne,stopPropagation:Ne},Ed=Symbol(wd);var Lg=_e({name:wd,props:Ng,emits:["change","dragStart","dragEnd"],setup(e,{emit:t,slots:n}){const s=U(),o=U(),i=ct({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let r=!1;const a=da(),{children:l,linkChildren:u}=mi(Ed),c=z(()=>l.length),d=z(()=>i[e.vertical?"height":"width"]),f=z(()=>e.vertical?a.deltaY.value:a.deltaX.value),h=z(()=>i.rect?(e.vertical?i.rect.height:i.rect.width)-d.value*c.value:0),_=z(()=>d.value?Math.ceil(Math.abs(h.value)/d.value):c.value),g=z(()=>c.value*d.value),m=z(()=>(i.active+c.value)%c.value),v=z(()=>{const q=e.vertical?"vertical":"horizontal";return a.direction.value===q}),b=z(()=>{const q={transitionDuration:`${i.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${+i.offset.toFixed(2)}px)`};if(d.value){const W=e.vertical?"height":"width",Z=e.vertical?"width":"height";q[W]=`${g.value}px`,q[Z]=e[Z]?`${e[Z]}px`:""}return q}),T=q=>{const{active:W}=i;return q?e.loop?No(W+q,-1,c.value):No(W+q,0,_.value):W},A=(q,W=0)=>{let Z=q*d.value;e.loop||(Z=Math.min(Z,-h.value));let ye=W-Z;return e.loop||(ye=No(ye,h.value,0)),ye},y=({pace:q=0,offset:W=0,emitChange:Z})=>{if(c.value<=1)return;const{active:ye}=i,te=T(q),he=A(te,W);if(e.loop){if(l[0]&&he!==h.value){const E=he0;l[c.value-1].setOffset(E?-g.value:0)}}i.active=te,i.offset=he,Z&&te!==ye&&t("change",m.value)},O=()=>{i.swiping=!0,i.active<=-1?y({pace:c.value}):i.active>=c.value&&y({pace:-c.value})},P=()=>{O(),a.reset(),Zn(()=>{i.swiping=!1,y({pace:-1,emitChange:!0})})},K=()=>{O(),a.reset(),Zn(()=>{i.swiping=!1,y({pace:1,emitChange:!0})})};let F;const D=()=>clearTimeout(F),J=()=>{D(),+e.autoplay>0&&c.value>1&&(F=setTimeout(()=>{K(),J()},+e.autoplay))},j=(q=+e.initialSwipe)=>{if(!s.value)return;const W=()=>{var Z,ye;if(!to(s)){const te={width:s.value.offsetWidth,height:s.value.offsetHeight};i.rect=te,i.width=+((Z=e.width)!=null?Z:te.width),i.height=+((ye=e.height)!=null?ye:te.height)}c.value&&(q=Math.min(c.value-1,q),q===-1&&(q=c.value-1)),i.active=q,i.swiping=!0,i.offset=A(q),l.forEach(te=>{te.setOffset(0)}),J()};to(s)?We().then(W):W()},le=()=>j(i.active);let fe;const we=q=>{!e.touchable||q.touches.length>1||(a.start(q),r=!1,fe=Date.now(),D(),O())},ue=q=>{e.touchable&&i.swiping&&(a.move(q),v.value&&(!e.loop&&(i.active===0&&f.value>0||i.active===c.value-1&&f.value<0)||(cn(q,e.stopPropagation),y({offset:f.value}),r||(t("dragStart",{index:m.value}),r=!0))))},ae=()=>{if(!e.touchable||!i.swiping)return;const q=Date.now()-fe,W=f.value/q;if((Math.abs(W)>.25||Math.abs(f.value)>d.value/2)&&v.value){const ye=e.vertical?a.offsetY.value:a.offsetX.value;let te=0;e.loop?te=ye>0?f.value>0?-1:1:0:te=-Math[f.value>0?"ceil":"floor"](f.value/d.value),y({pace:te,emitChange:!0})}else f.value&&y({pace:0});r=!1,i.swiping=!1,t("dragEnd",{index:m.value}),J()},pe=(q,W={})=>{O(),a.reset(),Zn(()=>{let Z;e.loop&&q===c.value?Z=i.active===0?0:q:Z=q%c.value,W.immediate?Zn(()=>{i.swiping=!1}):i.swiping=!1,y({pace:Z-i.active,emitChange:!0})})},Q=(q,W)=>{const Z=W===m.value,ye=Z?{backgroundColor:e.indicatorColor}:void 0;return S("i",{style:ye,class:Co("indicator",{active:Z})},null)},Y=()=>{if(n.indicator)return n.indicator({active:m.value,total:c.value});if(e.showIndicators&&c.value>1)return S("div",{class:Co("indicators",{vertical:e.vertical})},[Array(c.value).fill("").map(Q)])};return Tt({prev:P,next:K,state:i,resize:le,swipeTo:pe}),u({size:d,props:e,count:c,activeIndicator:m}),be(()=>e.initialSwipe,q=>j(+q)),be(c,()=>j(i.active)),be(()=>e.autoplay,J),be([lo,vi,()=>e.width,()=>e.height],le),be(_m(),q=>{q==="visible"?J():D()}),nt(j),hs(()=>j(i.active)),la(()=>j(i.active)),jn(D),ps(D),Hn("touchmove",ue,{target:o}),()=>{var q;return S("div",{ref:s,class:Co()},[S("div",{ref:o,style:b.value,class:Co("track",{vertical:e.vertical}),onTouchstartPassive:we,onTouchend:ae,onTouchcancel:ae},[(q=n.default)==null?void 0:q.call(n)]),Y()])}}});const Mg=ze(Lg),[Vg,Il]=Ve("tabs");var jg=_e({name:Vg,props:{count:Do(Number),inited:Boolean,animated:Boolean,duration:Do(Te),swipeable:Boolean,lazyRender:Boolean,currentIndex:Do(Number)},emits:["change"],setup(e,{emit:t,slots:n}){const s=U(),o=a=>t("change",a),i=()=>{var a;const l=(a=n.default)==null?void 0:a.call(n);return e.animated||e.swipeable?S(Mg,{ref:s,loop:!1,class:Il("track"),duration:+e.duration*1e3,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:o},{default:()=>[l]}):l},r=a=>{const l=s.value;l&&l.state.active!==a&&l.swipeTo(a,{immediate:!e.inited})};return be(()=>e.currentIndex,r),nt(()=>{r(e.currentIndex)}),Tt({swipeRef:s}),()=>S("div",{class:Il("content",{animated:e.animated||e.swipeable})},[i()])}});const[Sd,Ao]=Ve("tabs"),Ug={type:Pe("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:Mt(0),duration:Mt(.3),animated:Boolean,ellipsis:Ne,swipeable:Boolean,scrollspy:Boolean,offsetTop:Mt(0),background:String,lazyRender:Ne,showHeader:Ne,lineWidth:Te,lineHeight:Te,beforeChange:Function,swipeThreshold:Mt(5),titleActiveColor:String,titleInactiveColor:String},xd=Symbol(Sd);var Hg=_e({name:Sd,props:Ug,emits:["change","scroll","rendered","clickTab","update:active"],setup(e,{emit:t,slots:n}){let s,o,i,r,a;const l=U(),u=U(),c=U(),d=U(),f=fo(),h=nd(l),[_,g]=yd(),{children:m,linkChildren:v}=mi(xd),b=ct({inited:!1,position:"",lineStyle:{},currentIndex:-1}),T=z(()=>m.length>+e.swipeThreshold||!e.ellipsis||e.shrink),A=z(()=>({borderColor:e.color,background:e.background})),y=(te,he)=>{var E;return(E=te.name)!=null?E:he},O=z(()=>{const te=m[b.currentIndex];if(te)return y(te,b.currentIndex)}),P=z(()=>ad(e.offsetTop)),K=z(()=>e.sticky?P.value+s:0),F=te=>{const he=u.value,E=_.value;if(!T.value||!he||!E||!E[b.currentIndex])return;const B=E[b.currentIndex].$el,M=B.offsetLeft-(he.offsetWidth-B.offsetWidth)/2;r&&r(),r=Rg(he,M,te?0:+e.duration)},D=()=>{const te=b.inited;We(()=>{const he=_.value;if(!he||!he[b.currentIndex]||e.type!=="line"||to(l.value))return;const E=he[b.currentIndex].$el,{lineWidth:B,lineHeight:M}=e,ee=E.offsetLeft+E.offsetWidth/2,ce={width:Qe(B),backgroundColor:e.color,transform:`translateX(${ee}px) translateX(-50%)`};if(te&&(ce.transitionDuration=`${e.duration}s`),Ye(M)){const w=Qe(M);ce.height=w,ce.borderRadius=w}b.lineStyle=ce})},J=te=>{const he=te=0&&te{const E=J(te);if(!Ye(E))return;const B=m[E],M=y(B,E),ee=b.currentIndex!==null;b.currentIndex!==E&&(b.currentIndex=E,he||F(),D()),M!==e.active&&(t("update:active",M),ee&&t("change",M,B.title)),i&&!e.scrollspy&&ra(Math.ceil(_l(l.value)-P.value))},le=(te,he)=>{const E=m.findIndex((B,M)=>y(B,M)===te);j(E===-1?0:E,he)},fe=(te=!1)=>{if(e.scrollspy){const he=m[b.currentIndex].$el;if(he&&h.value){const E=_l(he,h.value)-K.value;o=!0,a&&a(),a=Ig(h.value,E,te?0:+e.duration,()=>{o=!1})}}},we=(te,he,E)=>{const{title:B,disabled:M}=m[he],ee=y(m[he],he);M||(aa(e.beforeChange,{args:[ee],done:()=>{j(he),fe()}}),pd(te)),t("clickTab",{name:ee,title:B,event:E,disabled:M})},ue=te=>{i=te.isFixed,t("scroll",te)},ae=te=>{We(()=>{le(te),fe(!0)})},pe=()=>{for(let te=0;teK.value)return te===0?0:te-1}return m.length-1},Q=()=>{if(e.scrollspy&&!o){const te=pe();j(te)}},Y=()=>{if(e.type==="line"&&m.length)return S("div",{class:Ao("line"),style:b.lineStyle},null)},q=()=>{var te,he,E;const{type:B,border:M,sticky:ee}=e,ce=[S("div",{ref:ee?void 0:c,class:[Ao("wrap"),{[ud]:B==="line"&&M}]},[S("div",{ref:u,role:"tablist",class:Ao("nav",[B,{shrink:e.shrink,complete:T.value}]),style:A.value,"aria-orientation":"horizontal"},[(te=n["nav-left"])==null?void 0:te.call(n),m.map(w=>w.renderTitle(we)),Y(),(he=n["nav-right"])==null?void 0:he.call(n)])]),(E=n["nav-bottom"])==null?void 0:E.call(n)];return ee?S("div",{ref:c},[ce]):ce},W=()=>{D(),We(()=>{var te,he;F(!0),(he=(te=d.value)==null?void 0:te.swipeRef.value)==null||he.resize()})};be(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],D),be(lo,W),be(()=>e.active,te=>{te!==O.value&&le(te)}),be(()=>m.length,()=>{b.inited&&(le(e.active),D(),We(()=>{F(!0)}))});const Z=()=>{le(e.active,!0),We(()=>{b.inited=!0,c.value&&(s=Yt(c.value).height),F(!0)})},ye=(te,he)=>t("rendered",te,he);return Tt({resize:W,scrollTo:ae}),hs(D),la(D),gi(Z),bd(l,D),Hn("scroll",Q,{target:h,passive:!0}),v({id:f,props:e,setLine:D,scrollable:T,onRendered:ye,currentName:O,setTitleRefs:g,scrollIntoView:F}),()=>S("div",{ref:l,class:Ao([e.type])},[e.showHeader?e.sticky?S(Dg,{container:l.value,offsetTop:P.value,onScroll:ue},{default:()=>[q()]}):q():null,S(jg,{ref:d,count:m.length,inited:b.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:b.currentIndex,onChange:j},{default:()=>{var te;return[(te=n.default)==null?void 0:te.call(n)]}})])}});const zg=Symbol(),Cd=Symbol(),qg=()=>ot(Cd,null),Wg=e=>{const t=qg();Zt(zg,e),Zt(Cd,z(()=>(t==null||t.value)&&e.value))},[Kg,Ol]=Ve("tab"),Gg=_e({name:Kg,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:Te,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:Ne},setup(e,{slots:t}){const n=z(()=>{const o={},{type:i,color:r,disabled:a,isActive:l,activeColor:u,inactiveColor:c}=e;r&&i==="card"&&(o.borderColor=r,a||(l?o.backgroundColor=r:o.color=r));const f=l?u:c;return f&&(o.color=f),o}),s=()=>{const o=S("span",{class:Ol("text",{ellipsis:!e.scrollable})},[t.title?t.title():e.title]);return e.dot||Ye(e.badge)&&e.badge!==""?S(md,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[o]}):o};return()=>S("div",{id:e.id,role:"tab",class:[Ol([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()])}}),[Jg,Xg]=Ve("swipe-item");var Yg=_e({name:Jg,setup(e,{slots:t}){let n;const s=ct({offset:0,inited:!1,mounted:!1}),{parent:o,index:i}=vs(Ed);if(!o)return;const r=z(()=>{const u={},{vertical:c}=o.props;return o.size.value&&(u[c?"height":"width"]=`${o.size.value}px`),s.offset&&(u.transform=`translate${c?"Y":"X"}(${s.offset}px)`),u}),a=z(()=>{const{loop:u,lazyRender:c}=o.props;if(!c||n)return!0;if(!s.mounted)return!1;const d=o.activeIndicator.value,f=o.count.value-1,h=d===0&&u?f:d-1,_=d===f&&u?0:d+1;return n=i.value===d||i.value===h||i.value===_,n}),l=u=>{s.offset=u};return nt(()=>{We(()=>{s.mounted=!0})}),Tt({setOffset:l}),()=>{var u;return S("div",{class:Xg(),style:r.value},[a.value?(u=t.default)==null?void 0:u.call(t):null])}}});const Qg=ze(Yg),[Zg,Hi]=Ve("tab"),ev=He({},_i,{dot:Boolean,name:Te,badge:Te,title:String,disabled:Boolean,titleClass:$t,titleStyle:[String,Object],showZeroBadge:Ne});var tv=_e({name:Zg,props:ev,setup(e,{slots:t}){const n=fo(),s=U(!1),o=Dt(),{parent:i,index:r}=vs(xd);if(!i)return;const a=()=>{var _;return(_=e.name)!=null?_:r.value},l=()=>{s.value=!0,i.props.lazyRender&&We(()=>{i.onRendered(a(),e.title)})},u=z(()=>{const _=a()===i.currentName.value;return _&&!s.value&&l(),_}),c=U(""),d=U("");uu(()=>{const{titleClass:_,titleStyle:g}=e;c.value=_?$e(_):"",d.value=g&&typeof g!="string"?Uf(Vn(g)):g});const f=_=>S(Gg,bt({key:n,id:`${i.id}-${r.value}`,ref:i.setTitleRefs(r.value),style:d.value,class:c.value,isActive:u.value,controls:n,scrollable:i.scrollable.value,activeColor:i.props.titleActiveColor,inactiveColor:i.props.titleInactiveColor,onClick:g=>_(o.proxy,r.value,g)},hn(i.props,["type","color","shrink"]),hn(e,["dot","badge","title","disabled","showZeroBadge"])),{title:t.title}),h=U(!u.value);return be(u,_=>{_?h.value=!1:Zn(()=>{h.value=!0})}),be(()=>e.title,()=>{i.setLine(),i.scrollIntoView()}),Wg(u),Tt({id:n,renderTitle:f}),()=>{var _;const g=`${i.id}-${r.value}`,{animated:m,swipeable:v,scrollspy:b,lazyRender:T}=i.props;if(!t.default&&!m)return;const A=b||u.value;if(m||v)return S(Qg,{id:n,role:"tabpanel",class:Hi("panel-wrapper",{inactive:h.value}),tabindex:u.value?0:-1,"aria-hidden":!u.value,"aria-labelledby":g,"data-allow-mismatch":"attribute"},{default:()=>{var P;return[S("div",{class:Hi("panel")},[(P=t.default)==null?void 0:P.call(t)])]}});const O=s.value||b||!T?(_=t.default)==null?void 0:_.call(t):null;return li(S("div",{id:n,role:"tabpanel",class:Hi("panel"),tabindex:A?0:-1,"aria-labelledby":g,"data-allow-mismatch":"attribute"},[O]),[[pi,A]])}}});const nv=ze(tv),sv=ze(Hg),[ov,Wn]=Ve("cell"),yi={tag:Pe("div"),icon:String,size:String,title:Te,value:Te,label:Te,center:Boolean,isLink:Boolean,border:Ne,iconPrefix:String,valueClass:$t,labelClass:$t,titleClass:$t,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},iv=He({},yi,_i);var rv=_e({name:ov,props:iv,setup(e,{slots:t}){const n=ca(),s=()=>{if(t.label||Ye(e.label))return S("div",{class:[Wn("label"),e.labelClass]},[t.label?t.label():e.label])},o=()=>{var l;if(t.title||Ye(e.title)){const u=(l=t.title)==null?void 0:l.call(t);return Array.isArray(u)&&u.length===0?void 0:S("div",{class:[Wn("title"),e.titleClass],style:e.titleStyle},[u||S("span",null,[e.title]),s()])}},i=()=>{const l=t.value||t.default;if(l||Ye(e.value))return S("div",{class:[Wn("value"),e.valueClass]},[l?l():S("span",null,[e.value])])},r=()=>{if(t.icon)return t.icon();if(e.icon)return S(Et,{name:e.icon,class:Wn("left-icon"),classPrefix:e.iconPrefix},null)},a=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const l=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return S(Et,{name:l,class:Wn("right-icon")},null)}};return()=>{var l;const{tag:u,size:c,center:d,border:f,isLink:h,required:_}=e,g=(l=e.clickable)!=null?l:h,m={center:d,required:!!_,clickable:g,borderless:!f};return c&&(m[c]=!!c),S(u,{class:Wn(m),role:g?"button":void 0,tabindex:g?0:void 0,onClick:n},{default:()=>{var v;return[r(),o(),i(),a(),(v=t.extra)==null?void 0:v.call(t)]}})}}});const Ad=ze(rv);function Td(e){return Array.isArray(e)?!e.length:e===0?!1:!e}function av(e,t){if(Td(e)){if(t.required)return!1;if(t.validateEmpty===!1)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}function lv(e,t){return new Promise(n=>{const s=t.validator(e,t);if(Xu(s)){s.then(n);return}n(s)})}function Pl(e,t){const{message:n}=t;return eo(n)?n(e,t):n||""}function cv({target:e}){e.composing=!0}function $l({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function uv(e,t){const n=ia();e.style.height="auto";let s=e.scrollHeight;if(ao(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`,ra(n))}function dv(e,t){return e==="number"&&(e="text",t??(t="decimal")),e==="digit"&&(e="tel",t??(t="numeric")),{type:e,inputmode:t}}function As(e){return[...e].length}function zi(e,t){return[...e].slice(0,t).join("")}const[fv,Rt]=Ve("field"),ha={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:Te,max:Number,min:Number,formatter:Function,clearIcon:Pe("clear"),modelValue:Mt(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:Pe("focus"),formatTrigger:Pe("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},inputmode:String},hv=He({},yi,ha,{rows:Te,type:Pe("text"),rules:Array,autosize:[Boolean,Object],labelWidth:Te,labelClass:$t,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var pv=_e({name:fv,props:hv,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n}){const s=fo(),o=ct({status:"unvalidated",focused:!1,validateMessage:""}),i=U(),r=U(),a=U(),{parent:l}=vs(Vm),u=()=>{var E;return String((E=e.modelValue)!=null?E:"")},c=E=>{if(Ye(e[E]))return e[E];if(l&&Ye(l.props[E]))return l.props[E]},d=z(()=>{const E=c("readonly");if(e.clearable&&!E){const B=u()!=="",M=e.clearTrigger==="always"||e.clearTrigger==="focus"&&o.focused;return B&&M}return!1}),f=z(()=>a.value&&n.input?a.value():e.modelValue),h=z(()=>{var E;const B=c("required");return B==="auto"?(E=e.rules)==null?void 0:E.some(M=>M.required):B}),_=E=>E.reduce((B,M)=>B.then(()=>{if(o.status==="failed")return;let{value:ee}=f;if(M.formatter&&(ee=M.formatter(ee,M)),!av(ee,M)){o.status="failed",o.validateMessage=Pl(ee,M);return}if(M.validator)return Td(ee)&&M.validateEmpty===!1?void 0:lv(ee,M).then(ce=>{ce&&typeof ce=="string"?(o.status="failed",o.validateMessage=ce):ce===!1&&(o.status="failed",o.validateMessage=Pl(ee,M))})}),Promise.resolve()),g=()=>{o.status="unvalidated",o.validateMessage=""},m=()=>t("endValidate",{status:o.status,message:o.validateMessage}),v=(E=e.rules)=>new Promise(B=>{g(),E?(t("startValidate"),_(E).then(()=>{o.status==="failed"?(B({name:e.name,message:o.validateMessage}),m()):(o.status="passed",B(),m())})):B()}),b=E=>{if(l&&e.rules){const{validateTrigger:B}=l.props,M=ml(B).includes(E),ee=e.rules.filter(ce=>ce.trigger?ml(ce.trigger).includes(E):M);ee.length&&v(ee)}},T=E=>{var B;const{maxlength:M}=e;if(Ye(M)&&As(E)>+M){const ee=u();if(ee&&As(ee)===+M)return ee;let ce=(B=i.value)==null?void 0:B.selectionEnd;if(o.focused&&ce){const w=[...E],x=w.length-+M;return ce=As(E.slice(0,ce)),w.splice(ce-x,x),w.join("")}return zi(E,+M)}return E},A=(E,B="onChange")=>{var M,ee;const ce=E;E=T(E);const w=ce.length-E.length;if(e.type==="number"||e.type==="digit"){const k=e.type==="number";if(E=km(E,k,k),B==="onBlur"&&E!==""&&(e.min!==void 0||e.max!==void 0)){const V=No(+E,(M=e.min)!=null?M:-1/0,(ee=e.max)!=null?ee:1/0);+E!==V&&(E=V.toString())}}let x=0;if(e.formatter&&B===e.formatTrigger){const{formatter:k,maxlength:V}=e;if(E=k(E),Ye(V)&&As(E)>+V&&(E=zi(E,+V)),i.value&&o.focused){const{selectionEnd:G}=i.value,H=zi(ce,G);x=k(H).length-H.length}}if(i.value&&i.value.value!==E)if(o.focused){let{selectionStart:k,selectionEnd:V}=i.value;if(i.value.value=E,Ye(k)&&Ye(V)){const G=E.length;w?(k-=w,V-=w):x&&(k+=x,V+=x),i.value.setSelectionRange(Math.min(k,G),Math.min(V,G))}}else i.value.value=E;E!==e.modelValue&&t("update:modelValue",E)},y=E=>{E.target.composing||A(E.target.value)},O=()=>{var E;return(E=i.value)==null?void 0:E.blur()},P=()=>{var E;return(E=i.value)==null?void 0:E.focus()},K=()=>{const E=i.value;e.type==="textarea"&&e.autosize&&E&&uv(E,e.autosize)},F=E=>{o.focused=!0,t("focus",E),We(K),c("readonly")&&O()},D=E=>{o.focused=!1,A(u(),"onBlur"),t("blur",E),!c("readonly")&&(b("onBlur"),We(K),bm())},J=E=>t("clickInput",E),j=E=>t("clickLeftIcon",E),le=E=>t("clickRightIcon",E),fe=E=>{cn(E),t("update:modelValue",""),t("clear",E)},we=z(()=>{if(typeof e.error=="boolean")return e.error;if(l&&l.props.showError&&o.status==="failed")return!0}),ue=z(()=>{const E=c("labelWidth"),B=c("labelAlign");if(E&&B!=="top")return{width:Qe(E)}}),ae=E=>{E.keyCode===13&&(!(l&&l.props.submitOnEnter)&&e.type!=="textarea"&&cn(E),e.type==="search"&&O()),t("keypress",E)},pe=()=>e.id||`${s}-input`,Q=()=>o.status,Y=()=>{const E=Rt("control",[c("inputAlign"),{error:we.value,custom:!!n.input,"min-height":e.type==="textarea"&&!e.autosize}]);if(n.input)return S("div",{class:E,onClick:J},[n.input()]);const B={id:pe(),ref:i,name:e.name,rows:e.rows!==void 0?+e.rows:void 0,class:E,disabled:c("disabled"),readonly:c("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:D,onFocus:F,onInput:y,onClick:J,onChange:$l,onKeypress:ae,onCompositionend:$l,onCompositionstart:cv};return e.type==="textarea"?S("textarea",bt(B,{inputmode:e.inputmode}),null):S("input",bt(dv(e.type,e.inputmode),B),null)},q=()=>{const E=n["left-icon"];if(e.leftIcon||E)return S("div",{class:Rt("left-icon"),onClick:j},[E?E():S(Et,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])},W=()=>{const E=n["right-icon"];if(e.rightIcon||E)return S("div",{class:Rt("right-icon"),onClick:le},[E?E():S(Et,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},Z=()=>{if(e.showWordLimit&&e.maxlength){const E=As(u());return S("div",{class:Rt("word-limit")},[S("span",{class:Rt("word-num")},[E]),Xe("/"),e.maxlength])}},ye=()=>{if(l&&l.props.showErrorMessage===!1)return;const E=e.errorMessage||o.validateMessage;if(E){const B=n["error-message"],M=c("errorMessageAlign");return S("div",{class:Rt("error-message",M)},[B?B({message:E}):E])}},te=()=>{const E=c("labelWidth"),B=c("labelAlign"),M=c("colon")?":":"";if(n.label)return[n.label(),M];if(e.label)return S("label",{id:`${s}-label`,for:n.input?void 0:pe(),"data-allow-mismatch":"attribute",onClick:ee=>{cn(ee),P()},style:B==="top"&&E?{width:Qe(E)}:void 0},[e.label+M])},he=()=>[S("div",{class:Rt("body")},[Y(),d.value&&S(Et,{ref:r,name:e.clearIcon,class:Rt("clear")},null),W(),n.button&&S("div",{class:Rt("button")},[n.button()])]),Z(),ye()];return Tt({blur:O,focus:P,validate:v,formValue:f,resetValidation:g,getValidationStatus:Q}),Zt(sd,{customValue:a,resetValidation:g,validateWithTrigger:b}),be(()=>e.modelValue,()=>{A(u()),g(),b("onChange"),We(K)}),nt(()=>{A(u(),e.formatTrigger),We(K)}),Hn("touchstart",fe,{target:z(()=>{var E;return(E=r.value)==null?void 0:E.$el})}),()=>{const E=c("disabled"),B=c("labelAlign"),M=q(),ee=()=>{const ce=te();return B==="top"?[M,ce].filter(Boolean):ce||[]};return S(Ad,{size:e.size,class:Rt({error:we.value,disabled:E,[`label-${B}`]:B}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:ue.value,valueClass:Rt("value"),titleClass:[Rt("label",[B,{required:h.value}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:M&&B!=="top"?()=>M:null,title:ee,value:he,extra:n.extra})}}});const pa=ze(pv);let Ts=0;function mv(e){e?(Ts||document.body.classList.add("van-toast--unclickable"),Ts++):Ts&&(Ts--,Ts||document.body.classList.remove("van-toast--unclickable"))}const[gv,Kn]=Ve("toast"),vv=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],_v={icon:String,show:Boolean,type:Pe("text"),overlay:Boolean,message:Te,iconSize:Te,duration:Qu(2e3),position:Pe("middle"),teleport:[String,Object],wordBreak:String,className:$t,iconPrefix:String,transition:Pe("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:$t,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:Te};var kd=_e({name:gv,props:_v,emits:["update:show"],setup(e,{emit:t,slots:n}){let s,o=!1;const i=()=>{const d=e.show&&e.forbidClick;o!==d&&(o=d,mv(o))},r=d=>t("update:show",d),a=()=>{e.closeOnClick&&r(!1)},l=()=>clearTimeout(s),u=()=>{const{icon:d,type:f,iconSize:h,iconPrefix:_,loadingType:g}=e;if(d||f==="success"||f==="fail")return S(Et,{name:d||f,size:h,class:Kn("icon"),classPrefix:_},null);if(f==="loading")return S(uo,{class:Kn("loading"),size:h,type:g},null)},c=()=>{const{type:d,message:f}=e;if(n.message)return S("div",{class:Kn("text")},[n.message()]);if(Ye(f)&&f!=="")return d==="html"?S("div",{key:0,class:Kn("text"),innerHTML:String(f)},null):S("div",{class:Kn("text")},[f])};return be(()=>[e.show,e.forbidClick],i),be(()=>[e.show,e.type,e.message,e.duration],()=>{l(),e.show&&e.duration>0&&(s=setTimeout(()=>{r(!1)},e.duration))}),nt(i),Un(i),()=>S(_s,bt({class:[Kn([e.position,e.wordBreak==="normal"?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:a,onClosed:l,"onUpdate:show":r},hn(e,vv)),{default:()=>[u(),c()]})}});function Rd(){const e=ct({show:!1}),t=o=>{e.show=o},n=o=>{He(e,o,{transitionAppear:!0}),t(!0)},s=()=>t(!1);return Tt({open:n,close:s,toggle:t}),{open:n,close:s,state:e,toggle:t}}function Id(e){const t=Ju(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount(){t.unmount(),document.body.removeChild(n)}}}const yv={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 To=[],bv=!1,Bl=He({},yv);const wv=new Map;function Od(e){return ao(e)?e:{message:e}}function Ev(){const{instance:e}=Id({setup(){const t=U(""),{open:n,state:s,close:o,toggle:i}=Rd(),r=()=>{},a=()=>S(kd,bt(s,{onClosed:r,"onUpdate:show":i}),null);return be(t,l=>{s.message=l}),Dt().render=a,{open:n,close:o,message:t}}});return e}function Sv(){if(!To.length||bv){const e=Ev();To.push(e)}return To[To.length-1]}function xe(e={}){if(!ms)return{};const t=Sv(),n=Od(e);return t.open(He({},Bl,wv.get(n.type||Bl.type),n)),t}const Pd=e=>t=>xe(He({type:e},Od(t))),_C=Pd("success"),xv=Pd("fail");ze(kd);const[Cv]=Ve("checkbox-group"),Av=Symbol(Cv),$d={name:$t,disabled:Boolean,iconSize:Te,modelValue:$t,checkedColor:String,labelPosition:String,labelDisabled:Boolean};var Tv=_e({props:He({},$d,{bem:Do(Function),role:String,shape:String,parent:Object,checked:Boolean,bindGroup:Ne,indeterminate:{type:Boolean,default:null}}),emits:["click","toggle"],setup(e,{emit:t,slots:n}){const s=U(),o=f=>{if(e.parent&&e.bindGroup)return e.parent.props[f]},i=z(()=>{if(e.parent&&e.bindGroup){const f=o("disabled")||e.disabled;if(e.role==="checkbox"){const h=o("modelValue").length,_=o("max"),g=_&&h>=+_;return f||g&&!e.checked}return f}return e.disabled}),r=z(()=>o("direction")),a=z(()=>{const f=e.checkedColor||o("checkedColor");if(f&&(e.checked||e.indeterminate)&&!i.value)return{borderColor:f,backgroundColor:f}}),l=z(()=>e.shape||o("shape")||"round"),u=f=>{const{target:h}=f,_=s.value,g=_===h||(_==null?void 0:_.contains(h));!i.value&&(g||!e.labelDisabled)&&t("toggle"),t("click",f)},c=()=>{var f,h;const{bem:_,checked:g,indeterminate:m}=e,v=e.iconSize||o("iconSize");return S("div",{ref:s,class:_("icon",[l.value,{disabled:i.value,checked:g,indeterminate:m}]),style:l.value!=="dot"?{fontSize:Qe(v)}:{width:Qe(v),height:Qe(v),borderColor:(f=a.value)==null?void 0:f.borderColor}},[n.icon?n.icon({checked:g,disabled:i.value}):l.value!=="dot"?S(Et,{name:m?"minus":"success",style:a.value},null):S("div",{class:_("icon--dot__icon"),style:{backgroundColor:(h=a.value)==null?void 0:h.backgroundColor}},null)])},d=()=>{const{checked:f}=e;if(n.default)return S("span",{class:e.bem("label",[e.labelPosition,{disabled:i.value}])},[n.default({checked:f,disabled:i.value})])};return()=>{const f=e.labelPosition==="left"?[d(),c()]:[c(),d()];return S("div",{role:e.role,class:e.bem([{disabled:i.value,"label-disabled":e.labelDisabled},r.value]),tabindex:i.value?void 0:0,"aria-checked":e.checked,onClick:u},[f])}}});const[kv,Rv]=Ve("checkbox"),Iv=He({},$d,{shape:String,bindGroup:Ne,indeterminate:{type:Boolean,default:null}});var Ov=_e({name:kv,props:Iv,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{parent:s}=vs(Av),o=a=>{const{name:l}=e,{max:u,modelValue:c}=s.props,d=c.slice();if(a)!(u&&d.length>=+u)&&!d.includes(l)&&(d.push(l),e.bindGroup&&s.updateValue(d));else{const f=d.indexOf(l);f!==-1&&(d.splice(f,1),e.bindGroup&&s.updateValue(d))}},i=z(()=>s&&e.bindGroup?s.props.modelValue.indexOf(e.name)!==-1:!!e.modelValue),r=(a=!i.value)=>{s&&e.bindGroup?o(a):t("update:modelValue",a),e.indeterminate!==null&&t("change",a)};return be(()=>e.modelValue,a=>{e.indeterminate===null&&t("change",a)}),Tt({toggle:r,props:e,checked:i}),od(()=>e.modelValue),()=>S(Tv,bt({bem:Rv,role:"checkbox",parent:s,checked:i.value,onToggle:r},e),hn(n,["default","icon"]))}});const Pv=ze(Ov),[Bd,$v]=Ve("collapse"),Fd=Symbol(Bd),Bv={border:Ne,accordion:Boolean,modelValue:{type:[String,Number,Array],default:""}};var Fv=_e({name:Bd,props:Bv,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{linkChildren:s,children:o}=mi(Fd),i=u=>{t("change",u),t("update:modelValue",u)},r=(u,c)=>{const{accordion:d,modelValue:f}=e;i(d?u===f?"":u:c?f.concat(u):f.filter(h=>h!==u))},a=(u={})=>{if(e.accordion)return;typeof u=="boolean"&&(u={expanded:u});const{expanded:c,skipDisabled:d}=u,h=o.filter(_=>_.disabled&&d?_.expanded.value:c??!_.expanded.value).map(_=>_.itemName.value);i(h)},l=u=>{const{accordion:c,modelValue:d}=e;return c?d===u:d.includes(u)};return Tt({toggleAll:a}),s({toggle:r,isExpanded:l}),()=>{var u;return S("div",{class:[$v(),{[ud]:e.border}]},[(u=n.default)==null?void 0:u.call(n)])}}});const Dv=ze(Fv),[Nv,ko]=Ve("collapse-item"),Lv=["icon","title","value","label","right-icon"],Mv=He({},yi,{name:Te,isLink:Ne,disabled:Boolean,readonly:Boolean,lazyRender:Ne});var Vv=_e({name:Nv,props:Mv,setup(e,{slots:t}){const n=U(),s=U(),{parent:o,index:i}=vs(Fd);if(!o)return;const r=z(()=>{var g;return(g=e.name)!=null?g:i.value}),a=z(()=>o.isExpanded(r.value)),l=U(a.value),u=fa(()=>l.value||!e.lazyRender),c=()=>{a.value?n.value&&(n.value.style.height=""):l.value=!1};be(a,(g,m)=>{if(m===null)return;g&&(l.value=!0),(g?We:ls)(()=>{if(!s.value||!n.value)return;const{offsetHeight:b}=s.value;if(b){const T=`${b}px`;n.value.style.height=g?"0":T,Zn(()=>{n.value&&(n.value.style.height=g?T:"0")})}else c()})});const d=(g=!a.value)=>{o.toggle(r.value,g)},f=()=>{!e.disabled&&!e.readonly&&d()},h=()=>{const{border:g,disabled:m,readonly:v}=e,b=hn(e,Object.keys(yi));return v&&(b.isLink=!1),(m||v)&&(b.clickable=!1),S(Ad,bt({role:"button",class:ko("title",{disabled:m,expanded:a.value,borderless:!g}),"aria-expanded":String(a.value),onClick:f},b),hn(t,Lv))},_=u(()=>{var g;return li(S("div",{ref:n,class:ko("wrapper"),onTransitionend:c},[S("div",{ref:s,class:ko("content")},[(g=t.default)==null?void 0:g.call(t)])]),[[pi,l.value]])});return Tt({toggle:d,expanded:a,itemName:r}),()=>S("div",{class:[ko({border:i.value&&e.border})]},[h(),_()])}});const jv=ze(Vv),Uv=ze(tg),[Hv,Ro]=Ve("empty"),zv={image:Pe("default"),imageSize:[Number,String,Array],description:String};var qv=_e({name:Hv,props:zv,setup(e,{slots:t}){const n=()=>{const v=t.description?t.description():e.description;if(v)return S("p",{class:Ro("description")},[v])},s=()=>{if(t.default)return S("div",{class:Ro("bottom")},[t.default()])},o=fo(),i=v=>`${o}-${v}`,r=v=>`url(#${i(v)})`,a=(v,b,T)=>S("stop",{"stop-color":v,offset:`${b}%`,"stop-opacity":T},null),l=(v,b)=>[a(v,0),a(b,100)],u=v=>[S("defs",null,[S("radialGradient",{id:i(v),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)","data-allow-mismatch":"attribute"},[a("#EBEDF0",0),a("#F2F3F5",100,.3)])]),S("ellipse",{fill:r(v),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8","data-allow-mismatch":"attribute"},null)],c=()=>[S("defs",null,[S("linearGradient",{id:i("a"),x1:"64%",y1:"100%",x2:"64%","data-allow-mismatch":"attribute"},[a("#FFF",0,.5),a("#F2F3F5",100)])]),S("g",{opacity:".8","data-allow-mismatch":"children"},[S("path",{d:"M36 131V53H16v20H2v58h34z",fill:r("a")},null),S("path",{d:"M123 15h22v14h9v77h-31V15z",fill:r("a")},null)])],d=()=>[S("defs",null,[S("linearGradient",{id:i("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%","data-allow-mismatch":"attribute"},[a("#F2F3F5",0,.3),a("#F2F3F5",100)])]),S("g",{opacity:".8","data-allow-mismatch":"children"},[S("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:r("b")},null),S("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:r("b")},null)])],f=()=>S("svg",{viewBox:"0 0 160 160"},[S("defs",{"data-allow-mismatch":"children"},[S("linearGradient",{id:i(1),x1:"64%",y1:"100%",x2:"64%"},[a("#FFF",0,.5),a("#F2F3F5",100)]),S("linearGradient",{id:i(2),x1:"50%",x2:"50%",y2:"84%"},[a("#EBEDF0",0),a("#DCDEE0",100,0)]),S("linearGradient",{id:i(3),x1:"100%",x2:"100%",y2:"100%"},[l("#EAEDF0","#DCDEE0")]),S("radialGradient",{id:i(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[a("#EBEDF0",0),a("#FFF",100,0)])]),S("g",{fill:"none"},[c(),S("path",{fill:r(4),d:"M0 139h160v21H0z","data-allow-mismatch":"attribute"},null),S("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:r(2),"data-allow-mismatch":"attribute"},null),S("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7","data-allow-mismatch":"children"},[S("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:r(3)},null),S("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:r(3)},null),S("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:r(3)},null),S("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:r(3)},null)]),S("g",{transform:"translate(31 105)"},[S("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),S("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),S("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),h=()=>S("svg",{viewBox:"0 0 160 160"},[S("defs",{"data-allow-mismatch":"children"},[S("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(5)},[l("#F2F3F5","#DCDEE0")]),S("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:i(6)},[l("#EAEDF1","#DCDEE0")]),S("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:i(7)},[l("#EAEDF1","#DCDEE0")])]),c(),d(),S("g",{transform:"translate(36 50)",fill:"none"},[S("g",{transform:"translate(8)"},[S("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),S("rect",{fill:r(5),width:"64",height:"66",rx:"2","data-allow-mismatch":"attribute"},null),S("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),S("g",{transform:"translate(15 17)",fill:r(6),"data-allow-mismatch":"attribute"},[S("rect",{width:"34",height:"6",rx:"1"},null),S("path",{d:"M0 14h34v6H0z"},null),S("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),S("rect",{fill:r(7),y:"61",width:"88",height:"28",rx:"1","data-allow-mismatch":"attribute"},null),S("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),_=()=>S("svg",{viewBox:"0 0 160 160"},[S("defs",null,[S("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(8),"data-allow-mismatch":"attribute"},[l("#EAEDF1","#DCDEE0")])]),c(),d(),u("c"),S("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:r(8),"data-allow-mismatch":"attribute"},null)]),g=()=>S("svg",{viewBox:"0 0 160 160"},[S("defs",{"data-allow-mismatch":"children"},[S("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:i(9)},[l("#EEE","#D8D8D8")]),S("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:i(10)},[l("#F2F3F5","#DCDEE0")]),S("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(11)},[l("#F2F3F5","#DCDEE0")]),S("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(12)},[l("#FFF","#F7F8FA")])]),c(),d(),u("d"),S("g",{transform:"rotate(-45 113 -4)",fill:"none","data-allow-mismatch":"children"},[S("rect",{fill:r(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),S("rect",{fill:r(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),S("circle",{stroke:r(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),S("circle",{fill:r(12),cx:"27",cy:"27",r:"16"},null),S("path",{d:"M37 7c-8 0-15 5-16 12",stroke:r(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),m=()=>{var v;if(t.image)return t.image();const b={error:_,search:g,network:f,default:h};return((v=b[e.image])==null?void 0:v.call(b))||S("img",{src:e.image},null)};return()=>S("div",{class:Ro()},[S("div",{class:Ro("image"),style:id(e.imageSize)},[m()]),n(),s()])}});const Dd=ze(qv),[Wv,Nt,Io]=Ve("dialog"),Kv=He({},ua,{title:String,theme:String,width:Te,message:[String,Function],callback:Function,allowHtml:Boolean,className:$t,transition:Pe("van-dialog-bounce"),messageAlign:String,closeOnPopstate:Ne,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,cancelButtonDisabled:Boolean,confirmButtonText:String,confirmButtonColor:String,confirmButtonDisabled:Boolean,showConfirmButton:Ne,closeOnClickOverlay:Boolean,keyboardEnabled:Ne,destroyOnClose:Boolean}),Gv=[..._g,"transition","closeOnPopstate","destroyOnClose"];var Nd=_e({name:Wv,props:Kv,emits:["confirm","cancel","keydown","update:show"],setup(e,{emit:t,slots:n}){const s=U(),o=ct({confirm:!1,cancel:!1}),i=v=>t("update:show",v),r=v=>{var b;i(!1),(b=e.callback)==null||b.call(e,v)},a=v=>()=>{e.show&&(t(v),e.beforeClose?(o[v]=!0,aa(e.beforeClose,{args:[v],done(){r(v),o[v]=!1},canceled(){o[v]=!1}})):r(v))},l=a("cancel"),u=a("confirm"),c=Gu(v=>{var b,T;if(!e.keyboardEnabled||v.target!==((T=(b=s.value)==null?void 0:b.popupRef)==null?void 0:T.value))return;({Enter:e.showConfirmButton?u:br,Escape:e.showCancelButton?l:br})[v.key](),t("keydown",v)},["enter","esc"]),d=()=>{const v=n.title?n.title():e.title;if(v)return S("div",{class:Nt("header",{isolated:!e.message&&!n.default})},[v])},f=v=>{const{message:b,allowHtml:T,messageAlign:A}=e,y=Nt("message",{"has-title":v,[A]:A}),O=eo(b)?b():b;return T&&typeof O=="string"?S("div",{class:y,innerHTML:O},null):S("div",{class:y},[O])},h=()=>{if(n.default)return S("div",{class:Nt("content")},[n.default()]);const{title:v,message:b,allowHtml:T}=e;if(b){const A=!!(v||n.title);return S("div",{key:T?1:0,class:Nt("content",{isolated:!A})},[f(A)])}},_=()=>S("div",{class:[Dm,Nt("footer")]},[e.showCancelButton&&S(cs,{size:"large",text:e.cancelButtonText||Io("cancel"),class:Nt("cancel"),style:{color:e.cancelButtonColor},loading:o.cancel,disabled:e.cancelButtonDisabled,onClick:l},null),e.showConfirmButton&&S(cs,{size:"large",text:e.confirmButtonText||Io("confirm"),class:[Nt("confirm"),{[Nm]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:o.confirm,disabled:e.confirmButtonDisabled,onClick:u},null)]),g=()=>S(qm,{class:Nt("footer")},{default:()=>[e.showCancelButton&&S(Al,{type:"warning",text:e.cancelButtonText||Io("cancel"),class:Nt("cancel"),color:e.cancelButtonColor,loading:o.cancel,disabled:e.cancelButtonDisabled,onClick:l},null),e.showConfirmButton&&S(Al,{type:"danger",text:e.confirmButtonText||Io("confirm"),class:Nt("confirm"),color:e.confirmButtonColor,loading:o.confirm,disabled:e.confirmButtonDisabled,onClick:u},null)]}),m=()=>n.footer?n.footer():e.theme==="round-button"?g():_();return()=>{const{width:v,title:b,theme:T,message:A,className:y}=e;return S(_s,bt({ref:s,role:"dialog",class:[Nt([T]),y],style:{width:Qe(v)},tabindex:0,"aria-labelledby":b||A,onKeydown:c,"onUpdate:show":i},hn(e,Gv)),{default:()=>[d(),h(),m()]})}}});let Sr;const Jv={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 Xv=He({},Jv);function Yv(){({instance:Sr}=Id({setup(){const{state:t,toggle:n}=Rd();return()=>S(Nd,bt(t,{"onUpdate:show":n}),null)}}))}function Qv(e){return ms?new Promise((t,n)=>{Sr||Yv(),Sr.open(He({},Xv,e,{callback:s=>{(s==="confirm"?t:n)(s)}}))}):Promise.resolve(void 0)}const Zv=e=>Qv(He({showCancelButton:!0},e)),yC=ze(Nd),[e_,Oo]=Ve("rate");function t_(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 n_={size:Te,icon:Pe("star"),color:String,count:Mt(5),gutter:Te,clearable:Boolean,readonly:Boolean,disabled:Boolean,voidIcon:Pe("star-o"),allowHalf:Boolean,voidColor:String,touchable:Ne,iconPrefix:String,modelValue:Qu(0),disabledColor:String};var s_=_e({name:e_,props:n_,emits:["change","update:modelValue"],setup(e,{emit:t}){const n=da(),[s,o]=yd(),i=U(),r=z(()=>e.readonly||e.disabled),a=z(()=>r.value||!e.touchable),l=z(()=>Array(+e.count).fill("").map((T,A)=>t_(e.modelValue,A+1,e.allowHalf,e.readonly)));let u,c,d=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;const h=()=>{c=Yt(i);const T=s.value.map(Yt);u=[],T.forEach((A,y)=>{d=Math.min(A.top,d),f=Math.max(A.top,f),e.allowHalf?u.push({score:y+.5,left:A.left,top:A.top,height:A.height},{score:y+1,left:A.left+A.width/2,top:A.top,height:A.height}):u.push({score:y+1,left:A.left,top:A.top,height:A.height})})},_=(T,A)=>{for(let y=u.length-1;y>0;y--)if(A>=c.top&&A<=c.bottom){if(T>u[y].left&&A>=u[y].top&&A<=u[y].top+u[y].height)return u[y].score}else{const O=Au[y].left&&u[y].top===O)return u[y].score}return e.allowHalf?.5:1},g=T=>{r.value||T===e.modelValue||(t("update:modelValue",T),t("change",T))},m=T=>{a.value||(n.start(T),h())},v=T=>{if(!a.value&&(n.move(T),n.isHorizontal()&&!n.isTap.value)){const{clientX:A,clientY:y}=T.touches[0];cn(T),g(_(A,y))}},b=(T,A)=>{const{icon:y,size:O,color:P,count:K,gutter:F,voidIcon:D,disabled:J,voidColor:j,allowHalf:le,iconPrefix:fe,disabledColor:we}=e,ue=A+1,ae=T.status==="full",pe=T.status==="void",Q=le&&T.value>0&&T.value<1;let Y;F&&ue!==+K&&(Y={paddingRight:Qe(F)});const q=W=>{h();let Z=le?_(W.clientX,W.clientY):ue;e.clearable&&n.isTap.value&&Z===e.modelValue&&(Z=0),g(Z)};return S("div",{key:A,ref:o(A),role:"radio",style:Y,class:Oo("item"),tabindex:J?void 0:0,"aria-setsize":K,"aria-posinset":ue,"aria-checked":!pe,onClick:q},[S(Et,{size:O,name:ae?y:D,class:Oo("icon",{disabled:J,full:ae}),color:J?we:ae?P:j,classPrefix:fe},null),Q&&S(Et,{size:O,style:{width:T.value+"em"},name:pe?D:y,class:Oo("icon",["half",{disabled:J,full:!pe}]),color:J?we:pe?j:P,classPrefix:fe},null)])};return od(()=>e.modelValue),Hn("touchmove",v,{target:i}),()=>S("div",{ref:i,role:"radiogroup",class:Oo({readonly:e.readonly,disabled:e.disabled}),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,"aria-readonly":e.readonly,onTouchstartPassive:m},[l.value.map(b)])}});const o_=ze(s_),[i_,ks,r_]=Ve("search"),a_=He({},ha,{label:String,shape:Pe("square"),leftIcon:Pe("search"),clearable:Ne,actionText:String,background:String,showAction:Boolean});var l_=_e({name:i_,props:a_,emits:["blur","focus","clear","search","cancel","clickInput","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n,attrs:s}){const o=fo(),i=U(),r=()=>{n.action||(t("update:modelValue",""),t("cancel"))},a=y=>{y.keyCode===13&&(cn(y),t("search",e.modelValue))},l=()=>e.id||`${o}-input`,u=()=>{if(n.label||e.label)return S("label",{class:ks("label"),for:l(),"data-allow-mismatch":"attribute"},[n.label?n.label():e.label])},c=()=>{if(e.showAction){const y=e.actionText||r_("cancel");return S("div",{class:ks("action"),role:"button",tabindex:0,onClick:r},[n.action?n.action():y])}},d=()=>{var y;return(y=i.value)==null?void 0:y.blur()},f=()=>{var y;return(y=i.value)==null?void 0:y.focus()},h=y=>t("blur",y),_=y=>t("focus",y),g=y=>t("clear",y),m=y=>t("clickInput",y),v=y=>t("clickLeftIcon",y),b=y=>t("clickRightIcon",y),T=Object.keys(ha),A=()=>{const y=He({},s,hn(e,T),{id:l()}),O=P=>t("update:modelValue",P);return S(pa,bt({ref:i,type:"search",class:ks("field",{"with-message":y.errorMessage}),border:!1,labelAlign:"left",onBlur:h,onFocus:_,onClear:g,onKeypress:a,onClickInput:m,onClickLeftIcon:v,onClickRightIcon:b,"onUpdate:modelValue":O},y),hn(n,["left-icon","right-icon"]))};return Tt({focus:f,blur:d}),()=>{var y;return S("div",{class:ks({"show-action":e.showAction}),style:{background:e.background}},[(y=n.left)==null?void 0:y.call(n),S("div",{class:ks("content",e.shape)},[u(),A()]),c()])}}});const c_=ze(l_);/*! * pinia v2.3.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */let Ld;const bi=e=>Ld=e,Md=Symbol();function xr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var qs;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(qs||(qs={}));function u_(){const e=Lc(!0),t=e.run(()=>U({}));let n=[],s=[];const o=Wr({install(i){bi(o),o._a=i,i.provide(Md,o),i.config.globalProperties.$pinia=o,s.forEach(r=>n.push(r)),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 Vd=()=>{};function Fl(e,t,n,s=Vd){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),s())};return!n&&jr()&&Mc(o),o}function Gn(e,...t){e.slice().forEach(n=>{n(...t)})}const d_=e=>e(),Dl=Symbol(),qi=Symbol();function Cr(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];xr(o)&&xr(s)&&e.hasOwnProperty(n)&&!Ke(s)&&!ln(s)?e[n]=Cr(o,s):e[n]=s}return e}const f_=Symbol();function h_(e){return!xr(e)||!e.hasOwnProperty(f_)}const{assign:bn}=Object;function p_(e){return!!(Ke(e)&&e.effect)}function m_(e,t,n,s){const{state:o,actions:i,getters:r}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=o?o():{});const c=fh(n.state.value[e]);return bn(c,i,Object.keys(r||{}).reduce((d,f)=>(d[f]=Wr(z(()=>{bi(n);const h=n._s.get(e);return r[f].call(h,h)})),d),{}))}return l=jd(e,u,t,n,s,!0),l}function jd(e,t,n={},s,o,i){let r;const a=bn({actions:{}},n),l={deep:!0};let u,c,d=[],f=[],h;const _=s.state.value[e];!i&&!_&&(s.state.value[e]={});let g;function m(K){let F;u=c=!1,typeof K=="function"?(K(s.state.value[e]),F={type:qs.patchFunction,storeId:e,events:h}):(Cr(s.state.value[e],K),F={type:qs.patchObject,payload:K,storeId:e,events:h});const D=g=Symbol();We().then(()=>{g===D&&(u=!0)}),c=!0,Gn(d,F,s.state.value[e])}const v=i?function(){const{state:F}=n,D=F?F():{};this.$patch(J=>{bn(J,D)})}:Vd;function b(){r.stop(),d=[],f=[],s._s.delete(e)}const T=(K,F="")=>{if(Dl in K)return K[qi]=F,K;const D=function(){bi(s);const J=Array.from(arguments),j=[],le=[];function fe(ae){j.push(ae)}function we(ae){le.push(ae)}Gn(f,{args:J,name:D[qi],store:y,after:fe,onError:we});let ue;try{ue=K.apply(this&&this.$id===e?this:y,J)}catch(ae){throw Gn(le,ae),ae}return ue instanceof Promise?ue.then(ae=>(Gn(j,ae),ae)).catch(ae=>(Gn(le,ae),Promise.reject(ae))):(Gn(j,ue),ue)};return D[Dl]=!0,D[qi]=F,D},A={_p:s,$id:e,$onAction:Fl.bind(null,f),$patch:m,$reset:v,$subscribe(K,F={}){const D=Fl(d,K,F.detached,()=>J()),J=r.run(()=>be(()=>s.state.value[e],j=>{(F.flush==="sync"?c:u)&&K({storeId:e,type:qs.direct,events:h},j)},bn({},l,F)));return D},$dispose:b},y=ct(A);s._s.set(e,y);const P=(s._a&&s._a.runWithContext||d_)(()=>s._e.run(()=>(r=Lc()).run(()=>t({action:T}))));for(const K in P){const F=P[K];if(Ke(F)&&!p_(F)||ln(F))i||(_&&h_(F)&&(Ke(F)?F.value=_[K]:Cr(F,_[K])),s.state.value[e][K]=F);else if(typeof F=="function"){const D=T(F,K);P[K]=D,a.actions[K]=F}}return bn(y,P),bn(Re(y),P),Object.defineProperty(y,"$state",{get:()=>s.state.value[e],set:K=>{m(F=>{bn(F,K)})}}),s._p.forEach(K=>{bn(y,r.run(()=>K({store:y,app:s._a,pinia:s,options:a})))}),_&&i&&n.hydrate&&n.hydrate(y.$state,_),u=!0,c=!0,y}/*! #__NO_SIDE_EFFECTS__ */function ma(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 r(a,l){const u=wh();return a=a||(u?ot(Md,null):null),a&&bi(a),a=Ld,a._s.has(s)||(i?jd(s,t,o,a):m_(s,o,a)),a._s.get(s)}return r.$id=s,r}const Ud="it_desk_h5_theme";function Nl(e){document.documentElement.setAttribute("data-theme",e),localStorage.setItem(Ud,e)}function g_(){const e=localStorage.getItem(Ud);return e==="dark"||e==="light"?e:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const Hd=ma("theme",()=>{const e=U("light");function t(){const s=e.value==="light"?"dark":"light";e.value=s,Nl(s)}function n(){const s=g_();e.value=s,Nl(s)}return{currentTheme:e,toggleTheme:t,initTheme:n}}),v_={class:"app-loading"},__={key:1,class:"app-loading"},y_=_e({__name:"App",setup(e){const t=Hd(),n=U(!1);return nt(()=>{t.initTheme(),n.value=!0}),(s,o)=>{const i=uo,r=Mh("router-view"),a=Uv;return I(),vt(a,{theme:Ce(t).currentTheme},{default:qe(()=>[n.value?(I(),vt(r,{key:0},{default:qe(({Component:l})=>[(I(),vt(hp,null,{fallback:qe(()=>[p("div",v_,[S(i,{type:"spinner",color:"#1989fa",size:"36"}),o[0]||(o[0]=p("div",{class:"app-loading__text"},"正在加载...",-1))])]),default:qe(()=>[(I(),vt(Vh(l)))]),_:2},1024))]),_:1})):(I(),$("div",__,[S(i,{type:"spinner",color:"#1989fa",size:"36"}),o[1]||(o[1]=p("div",{class:"app-loading__text"},"正在加载...",-1))]))]),_:1},8,["theme"])}}}),b_="modulepreload",w_=function(e){return"/h5/"+e},Ll={},Pn=function(t,n,s){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),a=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));o=Promise.allSettled(n.map(l=>{if(l=w_(l),l in Ll)return;Ll[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":b_,u||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((f,h)=>{d.addEventListener("load",f),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(r){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r}return o.then(r=>{for(const a of r||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */const Qn=typeof document<"u";function zd(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function E_(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&zd(e.default)}const Be=Object.assign;function Wi(e,t){const n={};for(const s in t){const o=t[s];n[s]=Ht(o)?o.map(e):e(o)}return n}const Ws=()=>{},Ht=Array.isArray;function Ml(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const qd=/#/g,S_=/&/g,x_=/\//g,C_=/=/g,A_=/\?/g,Wd=/\+/g,T_=/%5B/g,k_=/%5D/g,Kd=/%5E/g,R_=/%60/g,Gd=/%7B/g,I_=/%7C/g,Jd=/%7D/g,O_=/%20/g;function ga(e){return e==null?"":encodeURI(""+e).replace(I_,"|").replace(T_,"[").replace(k_,"]")}function P_(e){return ga(e).replace(Gd,"{").replace(Jd,"}").replace(Kd,"^")}function Ar(e){return ga(e).replace(Wd,"%2B").replace(O_,"+").replace(qd,"%23").replace(S_,"%26").replace(R_,"`").replace(Gd,"{").replace(Jd,"}").replace(Kd,"^")}function $_(e){return Ar(e).replace(C_,"%3D")}function B_(e){return ga(e).replace(qd,"%23").replace(A_,"%3F")}function F_(e){return B_(e).replace(x_,"%2F")}function no(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const D_=/\/$/,N_=e=>e.replace(D_,"");function Ki(e,t,n="/"){let s,o={},i="",r="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(s=t.slice(0,l),i=t.slice(l,a>0?a:t.length),o=e(i.slice(1))),a>=0&&(s=s||t.slice(0,a),r=t.slice(a,t.length)),s=j_(s??t,n),{fullPath:s+i+r,path:s,query:o,hash:no(r)}}function L_(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Vl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function M_(e,t,n){const s=t.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&us(t.matched[s],n.matched[o])&&Xd(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function us(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Xd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!V_(e[n],t[n]))return!1;return!0}function V_(e,t){return Ht(e)?jl(e,t):Ht(t)?jl(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function jl(e,t){return Ht(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function j_(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,r,a;for(r=0;r1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(r).join("/")}const vn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Tr=function(e){return e.pop="pop",e.push="push",e}({}),Gi=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function U_(e){if(!e)if(Qn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),N_(e)}const H_=/^[^#]+#/;function z_(e,t){return e.replace(H_,"#")+t}function q_(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 wi=()=>({left:window.scrollX,top:window.scrollY});function W_(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=q_(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 Ul(e,t){return(history.state?history.state.position-t:-1)+e}const kr=new Map;function K_(e,t){kr.set(e,t)}function G_(e){const t=kr.get(e);return kr.delete(e),t}function J_(e){return typeof e=="string"||e&&typeof e=="object"}function Yd(e){return typeof e=="string"||typeof e=="symbol"}let Je=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 Qd=Symbol("");Je.MATCHER_NOT_FOUND+"",Je.NAVIGATION_GUARD_REDIRECT+"",Je.NAVIGATION_ABORTED+"",Je.NAVIGATION_CANCELLED+"",Je.NAVIGATION_DUPLICATED+"";function ds(e,t){return Be(new Error,{type:e,[Qd]:!0},t)}function nn(e,t){return e instanceof Error&&Qd in e&&(t==null||!!(e.type&t))}const X_=["params","query","hash"];function Y_(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of X_)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Q_(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Ar(o)):[s&&Ar(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Z_(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ht(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const ey=Symbol(""),zl=Symbol(""),Ei=Symbol(""),va=Symbol(""),Rr=Symbol("");function Rs(){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 En(e,t,n,s,o,i=r=>r()){const r=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const u=f=>{f===!1?l(ds(Je.NAVIGATION_ABORTED,{from:n,to:t})):f instanceof Error?l(f):J_(f)?l(ds(Je.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(r&&s.enterCallbacks[o]===r&&typeof f=="function"&&r.push(f),a())},c=i(()=>e.call(s&&s.instances[o],t,n,u));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(f=>l(f))})}function Ji(e,t,n,s,o=i=>i()){const i=[];for(const r of e)for(const a in r.components){let l=r.components[a];if(!(t!=="beforeRouteEnter"&&!r.instances[a]))if(zd(l)){const u=(l.__vccOpts||l)[t];u&&i.push(En(u,n,s,r,a,o))}else{let u=l();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${r.path}"`);const d=E_(c)?c.default:c;r.mods[a]=c,r.components[a]=d;const f=(d.__vccOpts||d)[t];return f&&En(f,n,s,r,a,o)()}))}}return i}function ty(e,t){const n=[],s=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let r=0;rus(u,a))?s.push(a):n.push(a));const l=e.matched[r];l&&(t.matched.find(u=>us(u,l))||o.push(l))}return[n,s,o]}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */let ny=()=>location.protocol+"//"+location.host;function Zd(e,t){const{pathname:n,search:s,hash:o}=t,i=e.indexOf("#");if(i>-1){let r=o.includes(e.slice(i))?e.slice(i).length:1,a=o.slice(r);return a[0]!=="/"&&(a="/"+a),Vl(a,"")}return Vl(n,e)+s+o}function sy(e,t,n,s){let o=[],i=[],r=null;const a=({state:f})=>{const h=Zd(e,location),_=n.value,g=t.value;let m=0;if(f){if(n.value=h,t.value=f,r&&r===_){r=null;return}m=g?f.position-g.position:0}else s(h);o.forEach(v=>{v(n.value,_,{delta:m,type:Tr.pop,direction:m?m>0?Gi.forward:Gi.back:Gi.unknown})})};function l(){r=n.value}function u(f){o.push(f);const h=()=>{const _=o.indexOf(f);_>-1&&o.splice(_,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Be({},f.state,{scroll:wi()}),"")}}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:d}}function ql(e,t,n,s=!1,o=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:o?wi():null}}function oy(e){const{history:t,location:n}=window,s={value:Zd(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(l,u,c){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:ny()+e+l;try{t[c?"replaceState":"pushState"](u,"",f),o.value=u}catch(h){console.error(h),n[c?"replace":"assign"](f)}}function r(l,u){i(l,Be({},t.state,ql(o.value.back,l,o.value.forward,!0),u,{position:o.value.position}),!0),s.value=l}function a(l,u){const c=Be({},o.value,t.state,{forward:l,scroll:wi()});i(c.current,c,!0),i(l,Be({},ql(s.value,l,null),{position:c.position+1},u),!1),s.value=l}return{location:s,state:o,push:a,replace:r}}function iy(e){e=U_(e);const t=oy(e),n=sy(e,t.state,t.location,t.replace);function s(i,r=!0){r||n.pauseListeners(),history.go(i)}const o=Be({location:"",base:e,go:s,createHref:z_.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 $n=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Ze=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}(Ze||{});const ry={type:$n.Static,value:""},ay=/[a-zA-Z0-9_]/;function ly(e){if(!e)return[[]];if(e==="/")return[[ry]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=Ze.Static,s=n;const o=[];let i;function r(){i&&o.push(i),i=[]}let a=0,l,u="",c="";function d(){u&&(n===Ze.Static?i.push({type:$n.Static,value:u}):n===Ze.Param||n===Ze.ParamRegExp||n===Ze.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:$n.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;at.length?t.length===1&&t[0]===pt.Static+pt.Segment?1:-1:0}function ef(e,t){let n=0;const s=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const hy={strict:!1,end:!0,sensitive:!1};function py(e,t,n){const s=dy(ly(e.path),n),o=Be(s,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function my(e,t){const n=[],s=new Map;t=Ml(hy,t);function o(d){return s.get(d)}function i(d,f,h){const _=!h,g=Jl(d);g.aliasOf=h&&h.record;const m=Ml(t,d),v=[g];if("alias"in d){const A=typeof d.alias=="string"?[d.alias]:d.alias;for(const y of A)v.push(Jl(Be({},g,{components:h?h.record.components:g.components,path:y,aliasOf:h?h.record:g})))}let b,T;for(const A of v){const{path:y}=A;if(f&&y[0]!=="/"){const O=f.record.path,P=O[O.length-1]==="/"?"":"/";A.path=f.record.path+(y&&P+y)}if(b=py(A,f,m),h?h.alias.push(b):(T=T||b,T!==b&&T.alias.push(b),_&&d.name&&!Xl(b)&&r(d.name)),tf(b)&&l(b),g.children){const O=g.children;for(let P=0;P{r(T)}:Ws}function r(d){if(Yd(d)){const f=s.get(d);f&&(s.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(r),f.alias.forEach(r))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&s.delete(d.record.name),d.children.forEach(r),d.alias.forEach(r))}}function a(){return n}function l(d){const f=_y(d,n);n.splice(f,0,d),d.record.name&&!Xl(d)&&s.set(d.record.name,d)}function u(d,f){let h,_={},g,m;if("name"in d&&d.name){if(h=s.get(d.name),!h)throw ds(Je.MATCHER_NOT_FOUND,{location:d});m=h.record.name,_=Be(Gl(f.params,h.keys.filter(T=>!T.optional).concat(h.parent?h.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),d.params&&Gl(d.params,h.keys.map(T=>T.name))),g=h.stringify(_)}else if(d.path!=null)g=d.path,h=n.find(T=>T.re.test(g)),h&&(_=h.parse(g),m=h.record.name);else{if(h=f.name?s.get(f.name):n.find(T=>T.re.test(f.path)),!h)throw ds(Je.MATCHER_NOT_FOUND,{location:d,currentLocation:f});m=h.record.name,_=Be({},f.params,d.params),g=h.stringify(_)}const v=[];let b=h;for(;b;)v.unshift(b.record),b=b.parent;return{name:m,path:g,params:_,matched:v,meta:vy(v)}}e.forEach(d=>i(d));function c(){n.length=0,s.clear()}return{addRoute:i,resolve:u,removeRoute:r,clearRoutes:c,getRoutes:a,getRecordMatcher:o}}function Gl(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Jl(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:gy(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 gy(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 Xl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function vy(e){return e.reduce((t,n)=>Be(t,n.meta),{})}function _y(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;ef(e,t[i])<0?s=i:n=i+1}const o=yy(e);return o&&(s=t.lastIndexOf(o,s-1)),s}function yy(e){let t=e;for(;t=t.parent;)if(tf(t)&&ef(e,t)===0)return t}function tf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Yl(e){const t=ot(Ei),n=ot(va),s=z(()=>{const l=Ce(e.to);return t.resolve(l)}),o=z(()=>{const{matched:l}=s.value,{length:u}=l,c=l[u-1],d=n.matched;if(!c||!d.length)return-1;const f=d.findIndex(us.bind(null,c));if(f>-1)return f;const h=Ql(l[u-2]);return u>1&&Ql(c)===h&&d[d.length-1].path!==h?d.findIndex(us.bind(null,l[u-2])):f}),i=z(()=>o.value>-1&&xy(n.params,s.value.params)),r=z(()=>o.value>-1&&o.value===n.matched.length-1&&Xd(n.params,s.value.params));function a(l={}){if(Sy(l)){const u=t[Ce(e.replace)?"replace":"push"](Ce(e.to)).catch(Ws);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:s,href:z(()=>s.value.href),isActive:i,isExactActive:r,navigate:a}}function by(e){return e.length===1?e[0]:e}const wy=_e({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:Yl,setup(e,{slots:t}){const n=ct(Yl(e)),{options:s}=ot(Ei),o=z(()=>({[Zl(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Zl(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&by(t.default(n));return e.custom?i:sa("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),Ey=wy;function Sy(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 xy(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(!Ht(o)||o.length!==s.length||s.some((i,r)=>i.valueOf()!==o[r].valueOf()))return!1}return!0}function Ql(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Zl=(e,t,n)=>e??t??n,Cy=_e({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=ot(Rr),o=z(()=>e.route||s.value),i=ot(zl,0),r=z(()=>{let u=Ce(i);const{matched:c}=o.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),a=z(()=>o.value.matched[r.value]);Zt(zl,z(()=>r.value+1)),Zt(ey,a),Zt(Rr,o);const l=U();return be(()=>[l.value,a.value,e.name],([u,c,d],[f,h,_])=>{c&&(c.instances[d]=u,h&&h!==c&&u&&u===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!us(c,h)||!f)&&(c.enterCallbacks[d]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=o.value,c=e.name,d=a.value,f=d&&d.components[c];if(!f)return ec(n.default,{Component:f,route:u});const h=d.props[c],_=h?h===!0?u.params:typeof h=="function"?h(u):h:null,m=sa(f,Be({},_,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return ec(n.default,{Component:m,route:u})||m}}});function ec(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ay=Cy;function Ty(e){const t=my(e.routes,e),n=e.parseQuery||Q_,s=e.stringifyQuery||Hl,o=e.history,i=Rs(),r=Rs(),a=Rs(),l=Sn(vn);let u=vn;Qn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Wi.bind(null,E=>""+E),d=Wi.bind(null,F_),f=Wi.bind(null,no);function h(E,B){let M,ee;return Yd(E)?(M=t.getRecordMatcher(E),ee=B):ee=E,t.addRoute(ee,M)}function _(E){const B=t.getRecordMatcher(E);B&&t.removeRoute(B)}function g(){return t.getRoutes().map(E=>E.record)}function m(E){return!!t.getRecordMatcher(E)}function v(E,B){if(B=Be({},B||l.value),typeof E=="string"){const k=Ki(n,E,B.path),V=t.resolve({path:k.path},B),G=o.createHref(k.fullPath);return Be(k,V,{params:f(V.params),hash:no(k.hash),redirectedFrom:void 0,href:G})}let M;if(E.path!=null)M=Be({},E,{path:Ki(n,E.path,B.path).path});else{const k=Be({},E.params);for(const V in k)k[V]==null&&delete k[V];M=Be({},E,{params:d(k)}),B.params=d(B.params)}const ee=t.resolve(M,B),ce=E.hash||"";ee.params=c(f(ee.params));const w=L_(s,Be({},E,{hash:P_(ce),path:ee.path})),x=o.createHref(w);return Be({fullPath:w,hash:ce,query:s===Hl?Z_(E.query):E.query||{}},ee,{redirectedFrom:void 0,href:x})}function b(E){return typeof E=="string"?Ki(n,E,l.value.path):Be({},E)}function T(E,B){if(u!==E)return ds(Je.NAVIGATION_CANCELLED,{from:B,to:E})}function A(E){return P(E)}function y(E){return A(Be(b(E),{replace:!0}))}function O(E,B){const M=E.matched[E.matched.length-1];if(M&&M.redirect){const{redirect:ee}=M;let ce=typeof ee=="function"?ee(E,B):ee;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=b(ce):{path:ce},ce.params={}),Be({query:E.query,hash:E.hash,params:ce.path!=null?{}:E.params},ce)}}function P(E,B){const M=u=v(E),ee=l.value,ce=E.state,w=E.force,x=E.replace===!0,k=O(M,ee);if(k)return P(Be(b(k),{state:typeof k=="object"?Be({},ce,k.state):ce,force:w,replace:x}),B||M);const V=M;V.redirectedFrom=B;let G;return!w&&M_(s,ee,M)&&(G=ds(Je.NAVIGATION_DUPLICATED,{to:V,from:ee}),q(ee,ee,!0,!1)),(G?Promise.resolve(G):D(V,ee)).catch(H=>nn(H)?nn(H,Je.NAVIGATION_GUARD_REDIRECT)?H:Y(H):pe(H,V,ee)).then(H=>{if(H){if(nn(H,Je.NAVIGATION_GUARD_REDIRECT))return P(Be({replace:x},b(H.to),{state:typeof H.to=="object"?Be({},ce,H.to.state):ce,force:w}),B||V)}else H=j(V,ee,!0,x,ce);return J(V,ee,H),H})}function K(E,B){const M=T(E,B);return M?Promise.reject(M):Promise.resolve()}function F(E){const B=ye.values().next().value;return B&&typeof B.runWithContext=="function"?B.runWithContext(E):E()}function D(E,B){let M;const[ee,ce,w]=ty(E,B);M=Ji(ee.reverse(),"beforeRouteLeave",E,B);for(const k of ee)k.leaveGuards.forEach(V=>{M.push(En(V,E,B))});const x=K.bind(null,E,B);return M.push(x),he(M).then(()=>{M=[];for(const k of i.list())M.push(En(k,E,B));return M.push(x),he(M)}).then(()=>{M=Ji(ce,"beforeRouteUpdate",E,B);for(const k of ce)k.updateGuards.forEach(V=>{M.push(En(V,E,B))});return M.push(x),he(M)}).then(()=>{M=[];for(const k of w)if(k.beforeEnter)if(Ht(k.beforeEnter))for(const V of k.beforeEnter)M.push(En(V,E,B));else M.push(En(k.beforeEnter,E,B));return M.push(x),he(M)}).then(()=>(E.matched.forEach(k=>k.enterCallbacks={}),M=Ji(w,"beforeRouteEnter",E,B,F),M.push(x),he(M))).then(()=>{M=[];for(const k of r.list())M.push(En(k,E,B));return M.push(x),he(M)}).catch(k=>nn(k,Je.NAVIGATION_CANCELLED)?k:Promise.reject(k))}function J(E,B,M){a.list().forEach(ee=>F(()=>ee(E,B,M)))}function j(E,B,M,ee,ce){const w=T(E,B);if(w)return w;const x=B===vn,k=Qn?history.state:{};M&&(ee||x?o.replace(E.fullPath,Be({scroll:x&&k&&k.scroll},ce)):o.push(E.fullPath,ce)),l.value=E,q(E,B,M,x),Y()}let le;function fe(){le||(le=o.listen((E,B,M)=>{if(!te.listening)return;const ee=v(E),ce=O(ee,te.currentRoute.value);if(ce){P(Be(ce,{replace:!0,force:!0}),ee).catch(Ws);return}u=ee;const w=l.value;Qn&&K_(Ul(w.fullPath,M.delta),wi()),D(ee,w).catch(x=>nn(x,Je.NAVIGATION_ABORTED|Je.NAVIGATION_CANCELLED)?x:nn(x,Je.NAVIGATION_GUARD_REDIRECT)?(P(Be(b(x.to),{force:!0}),ee).then(k=>{nn(k,Je.NAVIGATION_ABORTED|Je.NAVIGATION_DUPLICATED)&&!M.delta&&M.type===Tr.pop&&o.go(-1,!1)}).catch(Ws),Promise.reject()):(M.delta&&o.go(-M.delta,!1),pe(x,ee,w))).then(x=>{x=x||j(ee,w,!1),x&&(M.delta&&!nn(x,Je.NAVIGATION_CANCELLED)?o.go(-M.delta,!1):M.type===Tr.pop&&nn(x,Je.NAVIGATION_ABORTED|Je.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),J(ee,w,x)}).catch(Ws)}))}let we=Rs(),ue=Rs(),ae;function pe(E,B,M){Y(E);const ee=ue.list();return ee.length?ee.forEach(ce=>ce(E,B,M)):console.error(E),Promise.reject(E)}function Q(){return ae&&l.value!==vn?Promise.resolve():new Promise((E,B)=>{we.add([E,B])})}function Y(E){return ae||(ae=!E,fe(),we.list().forEach(([B,M])=>E?M(E):B()),we.reset()),E}function q(E,B,M,ee){const{scrollBehavior:ce}=e;if(!Qn||!ce)return Promise.resolve();const w=!M&&G_(Ul(E.fullPath,0))||(ee||!M)&&history.state&&history.state.scroll||null;return We().then(()=>ce(E,B,w)).then(x=>x&&W_(x)).catch(x=>pe(x,E,B))}const W=E=>o.go(E);let Z;const ye=new Set,te={currentRoute:l,listening:!0,addRoute:h,removeRoute:_,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:g,resolve:v,options:e,push:A,replace:y,go:W,back:()=>W(-1),forward:()=>W(1),beforeEach:i.add,beforeResolve:r.add,afterEach:a.add,onError:ue.add,isReady:Q,install(E){E.component("RouterLink",Ey),E.component("RouterView",Ay),E.config.globalProperties.$router=te,Object.defineProperty(E.config.globalProperties,"$route",{enumerable:!0,get:()=>Ce(l)}),Qn&&!Z&&l.value===vn&&(Z=!0,A(o.location).catch(ee=>{}));const B={};for(const ee in vn)Object.defineProperty(B,ee,{get:()=>l.value[ee],enumerable:!0});E.provide(Ei,te),E.provide(va,nu(B)),E.provide(Rr,l);const M=E.unmount;ye.add(E),E.unmount=function(){ye.delete(E),ye.size<1&&(u=vn,le&&le(),le=null,l.value=vn,Z=!1,ae=!1),M()}}};function he(E){return E.reduce((B,M)=>B.then(()=>F(M)),Promise.resolve())}return te}function _a(){return ot(Ei)}function nf(e){return ot(va)}function sf(e,t){return function(){return e.apply(t,arguments)}}const{toString:ky}=Object.prototype,{getPrototypeOf:Si}=Object,{iterator:xi,toStringTag:of}=Symbol,Ci=(e=>t=>{const n=ky.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),zt=e=>(e=e.toLowerCase(),t=>Ci(t)===e),Ai=e=>t=>typeof t===e,{isArray:ys}=Array,fs=Ai("undefined");function ho(e){return e!==null&&!fs(e)&&e.constructor!==null&&!fs(e.constructor)&&St(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const rf=zt("ArrayBuffer");function Ry(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&rf(e.buffer),t}const Iy=Ai("string"),St=Ai("function"),af=Ai("number"),po=e=>e!==null&&typeof e=="object",Oy=e=>e===!0||e===!1,Lo=e=>{if(Ci(e)!=="object")return!1;const t=Si(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(of in e)&&!(xi in e)},Py=e=>{if(!po(e)||ho(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},$y=zt("Date"),By=zt("File"),Fy=e=>!!(e&&typeof e.uri<"u"),Dy=e=>e&&typeof e.getParts<"u",Ny=zt("Blob"),Ly=zt("FileList"),My=e=>po(e)&&St(e.pipe);function Vy(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const tc=Vy(),nc=typeof tc.FormData<"u"?tc.FormData:void 0,jy=e=>{if(!e)return!1;if(nc&&e instanceof nc)return!0;const t=Si(e);if(!t||t===Object.prototype||!St(e.append))return!1;const n=Ci(e);return n==="formdata"||n==="object"&&St(e.toString)&&e.toString()==="[object FormData]"},Uy=zt("URLSearchParams"),[Hy,zy,qy,Wy]=["ReadableStream","Request","Response","Headers"].map(zt),Ky=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),ys(e))for(s=0,o=e.length;s0;)if(o=n[s],t===o.toLowerCase())return o;return null}const Bn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,cf=e=>!fs(e)&&e!==Bn;function Ir(...e){const{caseless:t,skipUndefined:n}=cf(this)&&this||{},s={},o=(i,r)=>{if(r==="__proto__"||r==="constructor"||r==="prototype")return;const a=t&&lf(s,r)||r,l=Or(s,a)?s[a]:void 0;Lo(l)&&Lo(i)?s[a]=Ir(l,i):Lo(i)?s[a]=Ir({},i):ys(i)?s[a]=i.slice():(!n||!fs(i))&&(s[a]=i)};for(let i=0,r=e.length;i(mo(t,(o,i)=>{n&&St(o)?Object.defineProperty(e,i,{__proto__:null,value:sf(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),Jy=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Xy=(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)},Yy=(e,t,n,s)=>{let o,i,r;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)r=o[i],(!s||s(r,e,t))&&!a[r]&&(t[r]=e[r],a[r]=!0);e=n!==!1&&Si(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Qy=(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},Zy=e=>{if(!e)return null;if(ys(e))return e;let t=e.length;if(!af(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},eb=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Si(Uint8Array)),tb=(e,t)=>{const s=(e&&e[xi]).call(e);let o;for(;(o=s.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},nb=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},sb=zt("HTMLFormElement"),ob=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),Or=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ib=zt("RegExp"),uf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};mo(n,(o,i)=>{let r;(r=t(o,i,e))!==!1&&(s[i]=r||o)}),Object.defineProperties(e,s)},rb=e=>{uf(e,(t,n)=>{if(St(e)&&["arguments","caller","callee"].includes(n))return!1;const s=e[n];if(St(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+"'")})}})},ab=(e,t)=>{const n={},s=o=>{o.forEach(i=>{n[i]=!0})};return ys(e)?s(e):s(String(e).split(t)),n},lb=()=>{},cb=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ub(e){return!!(e&&St(e.append)&&e[of]==="FormData"&&e[xi])}const db=e=>{const t=new WeakSet,n=s=>{if(po(s)){if(t.has(s))return;if(ho(s))return s;if(!("toJSON"in s)){t.add(s);const o=ys(s)?[]:{};return mo(s,(i,r)=>{const a=n(i);!fs(a)&&(o[r]=a)}),t.delete(s),o}}return s};return n(e)},fb=zt("AsyncFunction"),hb=e=>e&&(po(e)||St(e))&&St(e.then)&&St(e.catch),df=((e,t)=>e?setImmediate:t?((n,s)=>(Bn.addEventListener("message",({source:o,data:i})=>{o===Bn&&i===n&&s.length&&s.shift()()},!1),o=>{s.push(o),Bn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",St(Bn.postMessage)),pb=typeof queueMicrotask<"u"?queueMicrotask.bind(Bn):typeof process<"u"&&process.nextTick||df,mb=e=>e!=null&&St(e[xi]),R={isArray:ys,isArrayBuffer:rf,isBuffer:ho,isFormData:jy,isArrayBufferView:Ry,isString:Iy,isNumber:af,isBoolean:Oy,isObject:po,isPlainObject:Lo,isEmptyObject:Py,isReadableStream:Hy,isRequest:zy,isResponse:qy,isHeaders:Wy,isUndefined:fs,isDate:$y,isFile:By,isReactNativeBlob:Fy,isReactNative:Dy,isBlob:Ny,isRegExp:ib,isFunction:St,isStream:My,isURLSearchParams:Uy,isTypedArray:eb,isFileList:Ly,forEach:mo,merge:Ir,extend:Gy,trim:Ky,stripBOM:Jy,inherits:Xy,toFlatObject:Yy,kindOf:Ci,kindOfTest:zt,endsWith:Qy,toArray:Zy,forEachEntry:tb,matchAll:nb,isHTMLForm:sb,hasOwnProperty:Or,hasOwnProp:Or,reduceDescriptors:uf,freezeMethods:rb,toObjectSet:ab,toCamelCase:ob,noop:lb,toFiniteNumber:cb,findKey:lf,global:Bn,isContextDefined:cf,isSpecCompliantForm:ub,toJSONObject:db,isAsyncFn:fb,isThenable:hb,setImmediate:df,asap:pb,isIterable:mb},gb=R.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"]),vb=e=>{const t={};let n,s,o;return e&&e.split(` `).forEach(function(r){o=r.indexOf(":"),n=r.substring(0,o).trim().toLowerCase(),s=r.substring(o+1).trim(),!(!n||t[n]&&gb[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t};function _b(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 yb=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),bb=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ya(e,t){return R.isArray(e)?e.map(n=>ya(n,t)):_b(String(e).replace(t,""))}const wb=e=>ya(e,yb),Eb=e=>ya(e,bb);function ff(e){const t=Object.create(null);return R.forEach(e.toJSON(),(n,s)=>{t[s]=Eb(n)}),t}const sc=Symbol("internals");function Is(e){return e&&String(e).trim().toLowerCase()}function Mo(e){return e===!1||e==null?e:R.isArray(e)?e.map(Mo):wb(String(e))}function Sb(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 xb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Xi(e,t,n,s,o){if(R.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!R.isString(t)){if(R.isString(s))return t.indexOf(s)!==-1;if(R.isRegExp(s))return s.test(t)}}function Cb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Ab(e,t){const n=R.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{__proto__:null,value:function(o,i,r){return this[s].call(this,t,o,i,r)},configurable:!0})})}let yt=class{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function i(a,l,u){const c=Is(l);if(!c)throw new Error("header name must be a non-empty string");const d=R.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=Mo(a))}const r=(a,l)=>R.forEach(a,(u,c)=>i(u,c,l));if(R.isPlainObject(t)||t instanceof this.constructor)r(t,n);else if(R.isString(t)&&(t=t.trim())&&!xb(t))r(vb(t),n);else if(R.isObject(t)&&R.isIterable(t)){let a={},l,u;for(const c of t){if(!R.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[u=c[0]]=(l=a[u])?R.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}r(a,n)}else t!=null&&i(n,t,s);return this}get(t,n){if(t=Is(t),t){const s=R.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return Sb(o);if(R.isFunction(n))return n.call(this,o,s);if(R.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Is(t),t){const s=R.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Xi(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function i(r){if(r=Is(r),r){const a=R.findKey(s,r);a&&(!n||Xi(s,s[a],a,n))&&(delete s[a],o=!0)}}return R.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||Xi(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,s={};return R.forEach(this,(o,i)=>{const r=R.findKey(s,i);if(r){n[r]=Mo(o),delete n[i];return}const a=t?Cb(i):String(i).trim();a!==i&&delete n[i],n[a]=Mo(o),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return R.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&R.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[sc]=this[sc]={accessors:{}}).accessors,o=this.prototype;function i(r){const a=Is(r);s[a]||(Ab(o,r),s[a]=!0)}return R.isArray(t)?t.forEach(i):i(t),this}};yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(yt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});R.freezeMethods(yt);const Tb="[REDACTED ****]";function kb(e){if(R.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(R.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Rb(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),s=[],o=i=>{if(i===null||typeof i!="object"||R.isBuffer(i))return i;if(s.indexOf(i)!==-1)return;i instanceof yt&&(i=i.toJSON()),s.push(i);let r;if(R.isArray(i))r=[],i.forEach((a,l)=>{const u=o(a);R.isUndefined(u)||(r[l]=u)});else{if(!R.isPlainObject(i)&&kb(i))return s.pop(),i;r=Object.create(null);for(const[a,l]of Object.entries(i)){const u=n.has(a.toLowerCase())?Tb:o(l);R.isUndefined(u)||(r[a]=u)}}return s.pop(),r};return o(e)}let de=class hf extends Error{static from(t,n,s,o,i,r){const a=new hf(t.message,n||t.code,s,o,i);return a.cause=t,a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),r&&Object.assign(a,r),a}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&&R.hasOwnProp(t,"redact")?t.redact:void 0,s=R.isArray(n)&&n.length>0?Rb(t,n):R.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}}};de.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";de.ERR_BAD_OPTION="ERR_BAD_OPTION";de.ECONNABORTED="ECONNABORTED";de.ETIMEDOUT="ETIMEDOUT";de.ECONNREFUSED="ECONNREFUSED";de.ERR_NETWORK="ERR_NETWORK";de.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";de.ERR_DEPRECATED="ERR_DEPRECATED";de.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";de.ERR_BAD_REQUEST="ERR_BAD_REQUEST";de.ERR_CANCELED="ERR_CANCELED";de.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";de.ERR_INVALID_URL="ERR_INVALID_URL";de.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Ib=null;function Pr(e){return R.isPlainObject(e)||R.isArray(e)}function pf(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function Yi(e,t,n){return e?e.concat(t).map(function(o,i){return o=pf(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Ob(e){return R.isArray(e)&&!e.some(Pr)}const Pb=R.toFlatObject(R,{},null,function(t){return/^is[A-Z]/.test(t)});function Ti(e,t,n){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=R.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!R.isUndefined(v[m])});const s=n.metaTokens,o=n.visitor||d,i=n.dots,r=n.indexes,a=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?100:n.maxDepth,u=a&&R.isSpecCompliantForm(t);if(!R.isFunction(o))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(R.isDate(g))return g.toISOString();if(R.isBoolean(g))return g.toString();if(!u&&R.isBlob(g))throw new de("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(g)||R.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,m,v){let b=g;if(R.isReactNative(t)&&R.isReactNativeBlob(g))return t.append(Yi(v,m,i),c(g)),!1;if(g&&!v&&typeof g=="object"){if(R.endsWith(m,"{}"))m=s?m:m.slice(0,-2),g=JSON.stringify(g);else if(R.isArray(g)&&Ob(g)||(R.isFileList(g)||R.endsWith(m,"[]"))&&(b=R.toArray(g)))return m=pf(m),b.forEach(function(A,y){!(R.isUndefined(A)||A===null)&&t.append(r===!0?Yi([m],y,i):r===null?m:m+"[]",c(A))}),!1}return Pr(g)?!0:(t.append(Yi(v,m,i),c(g)),!1)}const f=[],h=Object.assign(Pb,{defaultVisitor:d,convertValue:c,isVisitable:Pr});function _(g,m,v=0){if(!R.isUndefined(g)){if(v>l)throw new de("Object is too deeply nested ("+v+" levels). Max depth: "+l,de.ERR_FORM_DATA_DEPTH_EXCEEDED);if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(g),R.forEach(g,function(T,A){(!(R.isUndefined(T)||T===null)&&o.call(t,T,R.isString(A)?A.trim():A,m,h))===!0&&_(T,m?m.concat(A):[A],v+1)}),f.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return _(e),t}function oc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(s){return t[s]})}function ba(e,t){this._pairs=[],e&&Ti(e,this,t)}const mf=ba.prototype;mf.append=function(t,n){this._pairs.push([t,n])};mf.toString=function(t){const n=t?function(s){return t.call(this,s,oc)}:oc;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function $b(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function gf(e,t,n){if(!t)return e;const s=n&&n.encode||$b,o=R.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let r;if(i?r=i(t,o):r=R.isURLSearchParams(t)?t.toString():new ba(t,o).toString(s),r){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class ic{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){R.forEach(this.handlers,function(s){s!==null&&t(s)})}}const wa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Bb=typeof URLSearchParams<"u"?URLSearchParams:ba,Fb=typeof FormData<"u"?FormData:null,Db=typeof Blob<"u"?Blob:null,Nb={isBrowser:!0,classes:{URLSearchParams:Bb,FormData:Fb,Blob:Db},protocols:["http","https","file","blob","url","data"]},Ea=typeof window<"u"&&typeof document<"u",$r=typeof navigator=="object"&&navigator||void 0,Lb=Ea&&(!$r||["ReactNative","NativeScript","NS"].indexOf($r.product)<0),Mb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Vb=Ea&&window.location.href||"http://localhost",jb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ea,hasStandardBrowserEnv:Lb,hasStandardBrowserWebWorkerEnv:Mb,navigator:$r,origin:Vb},Symbol.toStringTag,{value:"Module"})),lt={...jb,...Nb};function Ub(e,t){return Ti(e,new lt.classes.URLSearchParams,{visitor:function(n,s,o,i){return lt.isNode&&R.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Hb(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function zb(e){const t={},n=Object.keys(e);let s;const o=n.length;let i;for(s=0;s=n.length;return r=!r&&R.isArray(o)?o.length:r,l?(R.hasOwnProp(o,r)?o[r]=R.isArray(o[r])?o[r].concat(s):[o[r],s]:o[r]=s,!a):((!R.hasOwnProp(o,r)||!R.isObject(o[r]))&&(o[r]=[]),t(n,s,o[r],i)&&R.isArray(o[r])&&(o[r]=zb(o[r])),!a)}if(R.isFormData(e)&&R.isFunction(e.entries)){const n={};return R.forEachEntry(e,(s,o)=>{t(Hb(s),o,n,0)}),n}return null}const Jn=(e,t)=>e!=null&&R.hasOwnProp(e,t)?e[t]:void 0;function qb(e,t,n){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const go={transitional:wa,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,i=R.isObject(t);if(i&&R.isHTMLForm(t)&&(t=new FormData(t)),R.isFormData(t))return o?JSON.stringify(vf(t)):t;if(R.isArrayBuffer(t)||R.isBuffer(t)||R.isStream(t)||R.isFile(t)||R.isBlob(t)||R.isReadableStream(t))return t;if(R.isArrayBufferView(t))return t.buffer;if(R.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){const l=Jn(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return Ub(t,l).toString();if((a=R.isFileList(t))||s.indexOf("multipart/form-data")>-1){const u=Jn(this,"env"),c=u&&u.FormData;return Ti(a?{"files[]":t}:t,c&&new c,l)}}return i||o?(n.setContentType("application/json",!1),qb(t)):t}],transformResponse:[function(t){const n=Jn(this,"transitional")||go.transitional,s=n&&n.forcedJSONParsing,o=Jn(this,"responseType"),i=o==="json";if(R.isResponse(t)||R.isReadableStream(t))return t;if(t&&R.isString(t)&&(s&&!o||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,Jn(this,"parseReviver"))}catch(l){if(a)throw l.name==="SyntaxError"?de.from(l,de.ERR_BAD_RESPONSE,this,null,Jn(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch","query"],e=>{go.headers[e]={}});function Qi(e,t){const n=this||go,s=t||n,o=yt.from(s.headers);let i=s.data;return R.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function _f(e){return!!(e&&e.__CANCEL__)}let vo=class extends de{constructor(t,n,s){super(t??"canceled",de.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}};function yf(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new de("Request failed with status code "+n.status,n.status>=400&&n.status<500?de.ERR_BAD_REQUEST:de.ERR_BAD_RESPONSE,n.config,n.request,n))}function Wb(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function Kb(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,i=0,r;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=s[i];r||(r=u),n[o]=l,s[o]=u;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-r{n=c,o=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=s?r(u,c):(o=u,i||(i=setTimeout(()=>{i=null,r(o)},s-d)))},()=>o&&r(o)]}const Yo=(e,t,n=3)=>{let s=0;const o=Kb(50,250);return Gb(i=>{if(!i||typeof i.loaded!="number")return;const r=i.loaded,a=i.lengthComputable?i.total:void 0,l=a!=null?Math.min(r,a):r,u=Math.max(0,l-s),c=o(u);s=Math.max(s,l);const d={loaded:l,total:a,progress:a?l/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a?(a-l)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},rc=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},ac=e=>(...t)=>R.asap(()=>e(...t)),Jb=lt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,lt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(lt.origin),lt.navigator&&/(msie|trident)/i.test(lt.navigator.userAgent)):()=>!0,Xb=lt.hasStandardBrowserEnv?{write(e,t,n,s,o,i,r){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];R.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),R.isString(s)&&a.push(`path=${s}`),R.isString(o)&&a.push(`domain=${o}`),i===!0&&a.push("secure"),R.isString(r)&&a.push(`SameSite=${r}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;ne instanceof yt?{...e}:e;function Mn(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(u,c,d,f){return R.isPlainObject(u)&&R.isPlainObject(c)?R.merge.call({caseless:f},u,c):R.isPlainObject(c)?R.merge({},c):R.isArray(c)?c.slice():c}function o(u,c,d,f){if(R.isUndefined(c)){if(!R.isUndefined(u))return s(void 0,u,d,f)}else return s(u,c,d,f)}function i(u,c){if(!R.isUndefined(c))return s(void 0,c)}function r(u,c){if(R.isUndefined(c)){if(!R.isUndefined(u))return s(void 0,u)}else return s(void 0,c)}function a(u,c,d){if(R.hasOwnProp(t,d))return s(u,c);if(R.hasOwnProp(e,d))return s(void 0,u)}const l={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,allowedSocketPaths:r,responseEncoding:r,validateStatus:a,headers:(u,c,d)=>o(lc(u),lc(c),d,!0)};return R.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const d=R.hasOwnProp(l,c)?l[c]:o,f=R.hasOwnProp(e,c)?e[c]:void 0,h=R.hasOwnProp(t,c)?t[c]:void 0,_=d(f,h,c);R.isUndefined(_)&&d!==a||(n[c]=_)}),n}const Zb=["content-type","content-length"];function e0(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([s,o])=>{Zb.includes(s.toLowerCase())&&e.set(s,o)})}const t0=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),wf=e=>{const t=Mn({},e),n=f=>R.hasOwnProp(t,f)?t[f]:void 0,s=n("data");let o=n("withXSRFToken");const i=n("xsrfHeaderName"),r=n("xsrfCookieName");let a=n("headers");const l=n("auth"),u=n("baseURL"),c=n("allowAbsoluteUrls"),d=n("url");if(t.headers=a=yt.from(a),t.url=gf(bf(u,d,c),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?t0(l.password):""))),R.isFormData(s)&&(lt.hasStandardBrowserEnv||lt.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):R.isFunction(s.getHeaders)&&e0(a,s.getHeaders(),n("formDataHeaderPolicy"))),lt.hasStandardBrowserEnv&&(R.isFunction(o)&&(o=o(t)),o===!0||o==null&&Jb(t.url))){const h=i&&r&&Xb.read(r);h&&a.set(i,h)}return t},n0=typeof XMLHttpRequest<"u",s0=n0&&function(e){return new Promise(function(n,s){const o=wf(e);let i=o.data;const r=yt.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:u}=o,c,d,f,h,_;function g(){h&&h(),_&&_(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function v(){if(!m)return;const T=yt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),y={data:!a||a==="text"||a==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:T,config:e,request:m};yf(function(P){n(P),g()},function(P){s(P),g()},y),m=null}"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.startsWith("file:"))||setTimeout(v)},m.onabort=function(){m&&(s(new de("Request aborted",de.ECONNABORTED,e,m)),g(),m=null)},m.onerror=function(A){const y=A&&A.message?A.message:"Network Error",O=new de(y,de.ERR_NETWORK,e,m);O.event=A||null,s(O),g(),m=null},m.ontimeout=function(){let A=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const y=o.transitional||wa;o.timeoutErrorMessage&&(A=o.timeoutErrorMessage),s(new de(A,y.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,m)),g(),m=null},i===void 0&&r.setContentType(null),"setRequestHeader"in m&&R.forEach(ff(r),function(A,y){m.setRequestHeader(y,A)}),R.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),a&&a!=="json"&&(m.responseType=o.responseType),u&&([f,_]=Yo(u,!0),m.addEventListener("progress",f)),l&&m.upload&&([d,h]=Yo(l),m.upload.addEventListener("progress",d),m.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(c=T=>{m&&(s(!T||T.type?new vo(null,e,m):T),m.abort(),g(),m=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const b=Wb(o.url);if(b&&!lt.protocols.includes(b)){s(new de("Unsupported protocol "+b+":",de.ERR_BAD_REQUEST,e));return}m.send(i||null)})},o0=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let s=!1;const o=function(l){if(!s){s=!0,r();const u=l instanceof Error?l:this.reason;n.abort(u instanceof de?u:new vo(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new de(`timeout of ${t}ms exceeded`,de.ETIMEDOUT))},t);const r=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)};e.forEach(l=>l.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=()=>R.asap(r),a},i0=function*(e,t){let n=e.byteLength;if(n{const o=r0(e,t);let i=0,r,a=l=>{r||(r=!0,s&&s(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await o.next();if(u){a(),l.close();return}let d=c.byteLength;if(n){let f=i+=d;n(f)}l.enqueue(new Uint8Array(c))}catch(u){throw a(u),u}},cancel(l){return a(l),o.return()}},{highWaterMark:2})};function l0(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 r=s.length;const a=s.length;for(let h=0;h=48&&_<=57||_>=65&&_<=70||_>=97&&_<=102)&&(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102)&&(r-=2,h+=2)}let l=0,u=a-1;const c=h=>h>=2&&s.charCodeAt(h-2)===37&&s.charCodeAt(h-1)===51&&(s.charCodeAt(h)===68||s.charCodeAt(h)===100);u>=0&&(s.charCodeAt(u)===61?(l++,u--):c(u)&&(l++,u-=3)),l===1&&u>=0&&(s.charCodeAt(u)===61||c(u))&&l++;const f=Math.floor(r/4)*3-(l||0);return f>0?f:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(s,"utf8");let i=0;for(let r=0,a=s.length;r=55296&&l<=56319&&r+1=56320&&u<=57343?(i+=4,r++):i+=3}else i+=3}return i}const Sa="1.16.1",uc=64*1024,{isFunction:Po}=R,dc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},c0=e=>{const t=R.global!==void 0&&R.global!==null?R.global:globalThis,{ReadableStream:n,TextEncoder:s}=t;e=R.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:r}=e,a=o?Po(o):typeof fetch=="function",l=Po(i),u=Po(r);if(!a)return!1;const c=a&&Po(n),d=a&&(typeof s=="function"?(v=>b=>v.encode(b))(new s):async v=>new Uint8Array(await new i(v).arrayBuffer())),f=l&&c&&dc(()=>{let v=!1;const b=new i(lt.origin,{body:new n,method:"POST",get duplex(){return v=!0,"half"}}),T=b.headers.has("Content-Type");return b.body!=null&&b.body.cancel(),v&&!T}),h=u&&c&&dc(()=>R.isReadableStream(new r("").body)),_={stream:h&&(v=>v.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!_[v]&&(_[v]=(b,T)=>{let A=b&&b[v];if(A)return A.call(b);throw new de(`Response type '${v}' is not supported`,de.ERR_NOT_SUPPORT,T)})});const g=async v=>{if(v==null)return 0;if(R.isBlob(v))return v.size;if(R.isSpecCompliantForm(v))return(await new i(lt.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(R.isArrayBufferView(v)||R.isArrayBuffer(v))return v.byteLength;if(R.isURLSearchParams(v)&&(v=v+""),R.isString(v))return(await d(v)).byteLength},m=async(v,b)=>{const T=R.toFiniteNumber(v.getContentLength());return T??g(b)};return async v=>{let{url:b,method:T,data:A,signal:y,cancelToken:O,timeout:P,onDownloadProgress:K,onUploadProgress:F,responseType:D,headers:J,withCredentials:j="same-origin",fetchOptions:le,maxContentLength:fe,maxBodyLength:we}=wf(v);const ue=R.isNumber(fe)&&fe>-1,ae=R.isNumber(we)&&we>-1;let pe=o||fetch;D=D?(D+"").toLowerCase():"text";let Q=o0([y,O&&O.toAbortSignal()],P),Y=null;const q=Q&&Q.unsubscribe&&(()=>{Q.unsubscribe()});let W;try{if(ue&&typeof b=="string"&&b.startsWith("data:")&&l0(b)>fe)throw new de("maxContentLength size of "+fe+" exceeded",de.ERR_BAD_RESPONSE,v,Y);if(ae&&T!=="get"&&T!=="head"){const B=await m(J,A);if(typeof B=="number"&&isFinite(B)&&B>we)throw new de("Request body larger than maxBodyLength limit",de.ERR_BAD_REQUEST,v,Y)}if(F&&f&&T!=="get"&&T!=="head"&&(W=await m(J,A))!==0){let B=new i(b,{method:"POST",body:A,duplex:"half"}),M;if(R.isFormData(A)&&(M=B.headers.get("content-type"))&&J.setContentType(M),B.body){const[ee,ce]=rc(W,Yo(ac(F)));A=cc(B.body,uc,ee,ce)}}R.isString(j)||(j=j?"include":"omit");const Z=l&&"credentials"in i.prototype;if(R.isFormData(A)){const B=J.getContentType();B&&/^multipart\/form-data/i.test(B)&&!/boundary=/i.test(B)&&J.delete("content-type")}J.set("User-Agent","axios/"+Sa,!1);const ye={...le,signal:Q,method:T.toUpperCase(),headers:ff(J.normalize()),body:A,duplex:"half",credentials:Z?j:void 0};Y=l&&new i(b,ye);let te=await(l?pe(Y,le):pe(b,ye));if(ue){const B=R.toFiniteNumber(te.headers.get("content-length"));if(B!=null&&B>fe)throw new de("maxContentLength size of "+fe+" exceeded",de.ERR_BAD_RESPONSE,v,Y)}const he=h&&(D==="stream"||D==="response");if(h&&te.body&&(K||ue||he&&q)){const B={};["status","statusText","headers"].forEach(k=>{B[k]=te[k]});const M=R.toFiniteNumber(te.headers.get("content-length")),[ee,ce]=K&&rc(M,Yo(ac(K),!0))||[];let w=0;const x=k=>{if(ue&&(w=k,w>fe))throw new de("maxContentLength size of "+fe+" exceeded",de.ERR_BAD_RESPONSE,v,Y);ee&&ee(k)};te=new r(cc(te.body,uc,x,()=>{ce&&ce(),q&&q()}),B)}D=D||"text";let E=await _[R.findKey(_,D)||"text"](te,v);if(ue&&!h&&!he){let B;if(E!=null&&(typeof E.byteLength=="number"?B=E.byteLength:typeof E.size=="number"?B=E.size:typeof E=="string"&&(B=typeof s=="function"?new s().encode(E).byteLength:E.length)),typeof B=="number"&&B>fe)throw new de("maxContentLength size of "+fe+" exceeded",de.ERR_BAD_RESPONSE,v,Y)}return!he&&q&&q(),await new Promise((B,M)=>{yf(B,M,{data:E,headers:yt.from(te.headers),status:te.status,statusText:te.statusText,config:v,request:Y})})}catch(Z){if(q&&q(),Q&&Q.aborted&&Q.reason instanceof de){const ye=Q.reason;throw ye.config=v,Y&&(ye.request=Y),Z!==ye&&(ye.cause=Z),ye}throw Z&&Z.name==="TypeError"&&/Load failed|fetch/i.test(Z.message)?Object.assign(new de("Network Error",de.ERR_NETWORK,v,Y,Z&&Z.response),{cause:Z.cause||Z}):de.from(Z,Z&&Z.code,v,Y,Z&&Z.response)}}},u0=new Map,Ef=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:o}=t,i=[s,o,n];let r=i.length,a=r,l,u,c=u0;for(;a--;)l=i[a],u=c.get(l),u===void 0&&c.set(l,u=a?new Map:c0(t)),c=u;return u};Ef();const xa={http:Ib,xhr:s0,fetch:{get:Ef}};R.forEach(xa,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const fc=e=>`- ${e}`,d0=e=>R.isFunction(e)||e===null||e===!1;function f0(e,t){e=R.isArray(e)?e:[e];const{length:n}=e;let s,o;const i={};for(let r=0;r`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=n?r.length>1?`since : `+r.map(fc).join(` `):" "+fc(r[0]):"as no adapter specified";throw new de("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}const Sf={getAdapter:f0,adapters:xa};function Zi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vo(null,e)}function hc(e){return Zi(e),e.headers=yt.from(e.headers),e.data=Qi.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Sf.getAdapter(e.adapter||go.adapter,e)(e).then(function(s){Zi(e),e.response=s;try{s.data=Qi.call(e,e.transformResponse,s)}finally{delete e.response}return s.headers=yt.from(s.headers),s},function(s){if(!_f(s)&&(Zi(e),s&&s.response)){e.response=s.response;try{s.response.data=Qi.call(e,e.transformResponse,s.response)}finally{delete e.response}s.response.headers=yt.from(s.response.headers)}return Promise.reject(s)})}const ki={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ki[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const pc={};ki.transitional=function(t,n,s){function o(i,r){return"[Axios v"+Sa+"] Transitional option '"+i+"'"+r+(s?". "+s:"")}return(i,r,a)=>{if(t===!1)throw new de(o(r," has been removed"+(n?" in "+n:"")),de.ERR_DEPRECATED);return n&&!pc[r]&&(pc[r]=!0,console.warn(o(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,r,a):!0}};ki.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function h0(e,t,n){if(typeof e!="object")throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const i=s[o],r=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(r){const a=e[i],l=a===void 0||r(a,i,e);if(l!==!0)throw new de("option "+i+" must be "+l,de.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new de("Unknown option "+i,de.ERR_BAD_OPTION)}}const Vo={assertOptions:h0,validators:ki},It=Vo.validators;let Ln=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ic,response:new ic}}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 r=o.stack.indexOf(` `);return r===-1?"":o.stack.slice(r+1)})();try{if(!s.stack)s.stack=i;else if(i){const r=i.indexOf(` `),a=r===-1?-1:i.indexOf(` `,r+1),l=a===-1?"":i.slice(a+1);String(s.stack).endsWith(l)||(s.stack+=` `+i)}}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mn(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:i}=n;s!==void 0&&Vo.assertOptions(s,{silentJSONParsing:It.transitional(It.boolean),forcedJSONParsing:It.transitional(It.boolean),clarifyTimeoutError:It.transitional(It.boolean),legacyInterceptorReqResOrdering:It.transitional(It.boolean)},!1),o!=null&&(R.isFunction(o)?n.paramsSerializer={serialize:o}:Vo.assertOptions(o,{encode:It.function,serialize:It.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Vo.assertOptions(n,{baseUrl:It.spelling("baseURL"),withXsrfToken:It.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=i&&R.merge(i.common,i[n.method]);i&&R.forEach(["delete","get","head","post","put","patch","query","common"],_=>{delete i[_]}),n.headers=yt.concat(r,i);const a=[];let l=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(n)===!1)return;l=l&&g.synchronous;const m=n.transitional||wa;m&&m.legacyInterceptorReqResOrdering?a.unshift(g.fulfilled,g.rejected):a.push(g.fulfilled,g.rejected)});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,d=0,f;if(!l){const _=[hc.bind(this),void 0];for(_.unshift(...a),_.push(...u),f=_.length,c=Promise.resolve(n);d{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 r=new Promise(a=>{s.subscribe(a),i=a}).then(o);return r.cancel=function(){s.unsubscribe(i)},r},t(function(i,r,a){s.reason||(s.reason=new vo(i,r,a),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 xf(function(o){t=o}),cancel:t}}};function m0(e){return function(n){return e.apply(null,n)}}function g0(e){return R.isObject(e)&&e.isAxiosError===!0}const Br={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(Br).forEach(([e,t])=>{Br[t]=e});function Cf(e){const t=new Ln(e),n=sf(Ln.prototype.request,t);return R.extend(n,Ln.prototype,t,{allOwnKeys:!0}),R.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Cf(Mn(e,o))},n}const Ge=Cf(go);Ge.Axios=Ln;Ge.CanceledError=vo;Ge.CancelToken=p0;Ge.isCancel=_f;Ge.VERSION=Sa;Ge.toFormData=Ti;Ge.AxiosError=de;Ge.Cancel=Ge.CanceledError;Ge.all=function(t){return Promise.all(t)};Ge.spread=m0;Ge.isAxiosError=g0;Ge.mergeConfig=Mn;Ge.AxiosHeaders=yt;Ge.formToJSON=e=>vf(R.isHTMLForm(e)?new FormData(e):e);Ge.getAdapter=Sf.getAdapter;Ge.HttpStatusCode=Br;Ge.default=Ge;const{Axios:SC,AxiosError:xC,CanceledError:CC,isCancel:AC,CancelToken:TC,VERSION:kC,all:RC,Cancel:IC,isAxiosError:OC,spread:PC,toFormData:$C,AxiosHeaders:BC,HttpStatusCode:FC,formToJSON:DC,getAdapter:NC,mergeConfig:LC,create:MC}=Ge;let Fr=null;function v0(e){Fr=e}async function _0(){return Fr?(await Fr(),!0):!1}const je=Ge.create({baseURL:"/api",timeout:2e4,headers:{"Content-Type":"application/json"}});je.interceptors.request.use(e=>{const t=localStorage.getItem("h5_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));je.interceptors.response.use(e=>{const t=e.data;return t.code!==0?t.code===1002?(gc("biz1002"),Promise.reject({code:1002,message:t.message||"未授权"})):(xe(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 gc("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&&xe(t),Promise.reject({code:n,message:t})});const y0="oauth_redirect_count",mc=3;let Os=null;async function gc(e){const t=e==="http401"?"HTTP 401":"业务码 1002";return Os?(console.warn(`[API] ${t} 未授权 — 已有处理进行中,等待完成`),Os):(console.warn(`[API] ${t} 未授权,清除凭证并跳转登录`),Os=(async()=>{try{if(localStorage.removeItem("h5_token"),localStorage.removeItem("employee_id"),localStorage.removeItem("employee_name"),"wwa8c87970b2011f41"){const s=parseInt(localStorage.getItem(y0)||"0",10);if(s>=mc){console.error("[API] OAuth2 重定向次数超限,疑似无限循环,停止重定向"),xe("登录状态异常,请刷新页面重试");return}console.warn(`[API] OAuth2 重定向计数: ${s}/${mc}`),await _0()||(console.warn("[API] 认证过期处理器未注册,降级为刷新页面"),window.location.reload())}}catch(n){console.warn("[API] 401 处理失败,刷新页面:",n),window.location.reload()}finally{Os=null}})(),Os)}function Dr(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 Af(e){return(e||[]).map(Dr)}async function b0(){return await je.get("/h5/user")}async function w0(){return await je.get("/h5/conversations/current")}async function E0(e){const t=await je.post("/h5/conversations/current/messages",e,{timeout:3e4});return{user_message:Dr(t.user_message),ai_reply:t.ai_reply?Dr(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 S0(e){const n=await je.get("/h5/conversations/current/messages/poll",{params:e}),s=(n==null?void 0:n.items)||n||[];return Af(s)}async function vc(e){const n=await je.get("/h5/conversations/current/messages",{params:e}),s=(n==null?void 0:n.items)||[];return{items:Af(s),has_more:(n==null?void 0:n.has_more)||!1}}async function x0(e){return await je.post("/h5/conversations/current/shake",e)}async function C0(){const t=await je.get("/h5/approval-links");return(t==null?void 0:t.items)||t||[]}async function A0(){return await je.get("/approval/keywords")||[]}async function T0(e){return await je.post("/approval/jump",{template_id:e})}async function k0(e){return await je.post("/approval/detect-intent",{text:e})}async function R0(){const t=await je.get("/h5/software-downloads");return(t==null?void 0:t.items)||t||[]}async function I0(e){return await je.post(`/h5/conversations/${e}/join`)}async function O0(e){return await je.post(`/h5/conversations/${e}/leave-participant`)}async function P0(e,t){return await je.post(`/conversation/${e}/evaluate`,t)}async function $0(e){return await je.get(`/conversation/${e}/evaluation`)}async function B0(e){return await je.post("/h5/oauth/callback",e)}async function F0(e){return await je.post("/h5/mock-login",e)}async function D0(){return await je.get("/h5/me")}async function N0(){const e=window.location.origin+"/h5/";return await je.get("/h5/oauth/authorize",{params:{redirect_uri:e}})}const er="h5_token",Rn="employee_id",Xn="employee_name",Ps="oauth_redirect_count",_c=3,Pt=ma("employee",()=>{const e=U(localStorage.getItem(er)||"");e.value&&!r(e.value)&&localStorage.removeItem(Ps);const t=U(null),n=U(!1),s=z(()=>e.value?!r(e.value):!1),o=z(()=>{var y;return((y=t.value)==null?void 0:y.employee_id)||localStorage.getItem(Rn)||""}),i=z(()=>{var y;return((y=t.value)==null?void 0:y.employee_name)||localStorage.getItem(Xn)||""});function r(y){try{const O=y.split(".");if(O.length!==3)return!1;const P=JSON.parse(atob(O[1]));return P.exp?Math.floor(Date.now()/1e3)>=P.exp-60:!1}catch{return!1}}function a(y){e.value=y,localStorage.setItem(er,y)}function l(){e.value="",t.value=null,localStorage.removeItem(er),localStorage.removeItem(Rn),localStorage.removeItem(Xn)}function u(){localStorage.removeItem(Ps)}function c(){const O=parseInt(localStorage.getItem(Ps)||"0",10)+1;return localStorage.setItem(Ps,String(O)),O}function d(){return parseInt(localStorage.getItem(Ps)||"0",10)>=_c}async function f(y,O){n.value=!0;try{const P=await B0({code:y,state:O});return a(P.token),localStorage.setItem(Rn,P.employee_id),localStorage.setItem(Xn,P.employee_name),t.value={employee_id:P.employee_id,employee_name:P.employee_name,department:P.department,position:P.position,mobile:"",email:"",avatar:P.avatar,is_vip:!1},console.log("[EmployeeStore] OAuth2 登录成功:",P.employee_name),u(),P}catch(P){throw console.error("[EmployeeStore] OAuth2 登录失败:",P),P}finally{n.value=!1}}async function h(y,O){n.value=!0;try{const P=await F0({employee_id:y,employee_name:O||"测试用户"});return a(P.token),localStorage.setItem(Rn,P.employee_id),localStorage.setItem(Xn,P.employee_name),t.value={employee_id:P.employee_id,employee_name:P.employee_name,department:P.department,position:P.position,mobile:"",email:"",avatar:P.avatar,is_vip:!1},console.log("[EmployeeStore] Mock 登录成功:",P.employee_name),u(),P}catch(P){throw console.error("[EmployeeStore] Mock 登录失败:",P),P}finally{n.value=!1}}async function _(){if(e.value)try{const y=await D0();t.value=y,localStorage.setItem(Rn,y.employee_id),localStorage.setItem(Xn,y.employee_name),console.log("[EmployeeStore] 获取员工信息成功:",y.employee_name)}catch(y){throw console.error("[EmployeeStore] 获取员工信息失败:",y),y}}async function g(){const y=window.location.origin+"/h5/";try{const F=await N0();if(F.authorize_url){window.location.href=F.authorize_url;return}}catch(F){console.warn("[EmployeeStore] 从后端获取授权URL失败,尝试本地构造:",F)}const O="wwa8c87970b2011f41",P=encodeURIComponent(y),K=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${O}&redirect_uri=${P}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`;window.location.href=K}async function m(){if(console.warn("[EmployeeStore] Token 已过期或无效,重新授权"),d()){console.error("[EmployeeStore] OAuth2 重定向次数超限,疑似无限循环,停止重定向"),l(),u();const{showToast:O}=await Pn(async()=>{const{showToast:P}=await import("./index-BHGKpyi1.js");return{showToast:P}},__vite__mapDeps([0,1,2,3]));O("登录状态异常,请刷新页面重试");return}l();const y=c();console.warn(`[EmployeeStore] OAuth2 重定向计数: ${y}/${_c}`),await g()}function v(y){localStorage.setItem(Rn,y),e.value="",t.value={employee_id:y,employee_name:"开发测试用户",department:"IT部",position:"开发工程师",mobile:"",email:"",avatar:"",is_vip:!1},console.log("[EmployeeStore] 开发模式登录:",y)}function b(){l(),console.log("[EmployeeStore] 已登出")}function T(y){a(y),u()}function A(y){t.value={employee_id:y.userid,employee_name:y.name,department:y.department||"",position:"",mobile:y.phone||"",email:y.email||"",avatar:y.avatar||"",is_vip:!1},localStorage.setItem(Rn,y.userid),localStorage.setItem(Xn,y.name)}return v0(m),{token:e,employeeInfo:t,authenticating:n,isAuthenticated:s,employeeId:o,employeeName:i,handleOAuthCallback:f,mockLogin:h,fetchEmployeeInfo:_,redirectToOAuth:g,handleUnauthorized:m,devLogin:v,logout:b,setToken:T,setUserInfo:A}}),L0=Object.freeze(Object.defineProperty({__proto__:null,useEmployeeStore:Pt},Symbol.toStringTag,{value:"Module"})),M0="h5_messages_cache",V0=7,j0=100;function Ca(e){return`${M0}_${e}`}function U0(e){try{const t=Ca(e),n=localStorage.getItem(t);if(!n)return null;const s=JSON.parse(n),o=s.timestamp||0,i=Date.now(),r=V0*24*60*60*1e3;return i-o>r?(localStorage.removeItem(t),null):s.messages||null}catch(t){return console.warn("[Store] 读取消息缓存失败:",t),null}}function $s(e,t){try{const n=Ca(e),s=t.slice(-j0);localStorage.setItem(n,JSON.stringify({messages:s,timestamp:Date.now()}))}catch(n){console.warn("[Store] 保存消息缓存失败:",n)}}function H0(e){try{const t=Ca(e);localStorage.removeItem(t)}catch(t){console.warn("[Store] 清除消息缓存失败:",t)}}function z0(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 jt=ma("conversation",()=>{const e=U(null),t=U(null),n=U([]),s=U(!1),o=U(!1),i=U(!1),r=U(!0),a=U(null),l=U(!1),u=U([]),c=U(!1),d=U(""),f=U([]),h=U(""),_=U(!1),g=U([]),m=U(""),v=U(null),b=U([]),T=U(!1),A=U(null),y=U(new Set),O=z(()=>Pt().isAuthenticated),P=z(()=>t.value?t.value.status!=="resolved":!1),K=z(()=>!t.value||!e.value||t.value.employee_id===e.value.employee_id?!1:b.value.some(C=>{var N;return C.id===((N=e.value)==null?void 0:N.employee_id)})),F=z(()=>b.value.filter(N=>N.joined).length),D=z(()=>{const C={};for(const N of u.value)C[N.category]||(C[N.category]=[]),C[N.category].push(N);return C}),J=z(()=>{const C={};for(const N of f.value)C[N.category]||(C[N.category]=[]),C[N.category].push(N);return C});function j(C){const N=y.value;if(N.delete(C),N.add(C),N.size>500){const L=N.values().next().value;L&&N.delete(L)}}function le(C){if(y.value.has(C.message_id)){console.log(`[H5 WS去重] 跳过重复消息: ${C.message_id}`);return}j(C.message_id),n.value.push({message_id:C.message_id,conversation_id:C.conversation_id,message_type:C.sender_type||"system",msg_type:C.msg_type||"text",content:C.content,sender_name:C.sender_name||"",created_at:new Date().toISOString()}),h.value=C.message_id}async function fe(C,N){await Pt().handleOAuthCallback(C,N)}async function we(){try{const C=Pt();C.employeeInfo&&(e.value={employee_id:C.employeeInfo.employee_id,employee_name:C.employeeInfo.employee_name,department:C.employeeInfo.department,position:C.employeeInfo.position,level:"",is_vip:C.employeeInfo.is_vip,avatar_url:C.employeeInfo.avatar});const N=await b0();e.value=N,console.log("[Store] 获取用户信息成功:",N.employee_name)}catch(C){throw console.error("[Store] 获取用户信息失败:",C),C}}async function ue(){try{const C=await w0();t.value=C,i.value=(C==null?void 0:C.can_call_agent)??!1,b.value=(C==null?void 0:C.participants)||[],console.log("[Store] 获取当前会话:",C?C.conversation_id:"无活跃会话","参与者:",b.value.length)}catch(C){console.error("[Store] 获取当前会话失败:",C)}}async function ae(C,N){var Ee,ke,Oe;if(console.log("[Store] sendNewMessage 开始执行, content:",C,"options:",N),!C.trim()){console.warn("[Store] content 为空,直接返回");return}ye(C).catch(Se=>{console.warn("[Store] 审批意图检测异常:",Se)});const L=Pt(),X=`temp_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,ie={message_id:X,conversation_id:((Ee=t.value)==null?void 0:Ee.conversation_id)||"",message_type:"employee",msg_type:(N==null?void 0:N.msg_type)||"text",content:C.trim(),sender_name:L.employeeName||"我",created_at:new Date().toISOString(),status:"sending"};n.value.push(ie),console.log("[Store] 乐观更新:临时消息已添加到列表, tempMessageId:",X),s.value=!0;try{const Se={content:C.trim()};N!=null&&N.msg_type&&(Se.msg_type=N.msg_type,Se.media_url=N.media_url,Se.file_name=N.file_name,Se.file_size=N.file_size),console.log("[Store] 请求参数:",JSON.stringify(Se));const Ae=await E0(Se);if(console.log("[Store] API 响应:",Ae),!Ae)throw console.error("[Store] API 响应为空"),new Error("API 响应为空");if(!Ae.user_message)throw console.error("[Store] API 响应缺少 user_message"),new Error("API 响应格式错误:缺少 user_message");const dt=n.value.findIndex(ft=>ft.message_id===X);if(dt!==-1){n.value[dt]={...Ae.user_message,status:"sent"},j(Ae.user_message.message_id),h.value=Ae.user_message.message_id,console.log("[Store] 乐观更新成功:临时消息已替换为真实消息");const ft=(ke=t.value)==null?void 0:ke.conversation_id;ft&&$s(ft,n.value)}else n.value.push({...Ae.user_message,status:"sent"}),j(Ae.user_message.message_id),h.value=Ae.user_message.message_id;i.value=Ae.can_call_agent??!1,t.value&&(t.value.can_call_agent=Ae.can_call_agent??!1,t.value.ai_substantive_reply_count=Ae.ai_reply_count??0),console.log("[Store] 消息发送成功, AI回复计数:",Ae.ai_reply_count,"可呼叫坐席:",Ae.can_call_agent,"是否引导:",Ae.is_guidance)}catch(Se){console.error("[Store] 消息发送失败:",Se),console.error("[Store] 错误详情:",Se==null?void 0:Se.message,(Oe=Se==null?void 0:Se.response)==null?void 0:Oe.data,Se==null?void 0:Se.stack);const Ae=n.value.findIndex(dt=>dt.message_id===X);throw Ae!==-1&&(n.value[Ae].status="failed",console.log("[Store] 乐观更新失败:临时消息状态已改为 failed")),Se}finally{s.value=!1,console.log("[Store] sendNewMessage finally 执行完成")}}async function pe(){var C;if(!(!O.value||!P.value))try{const N=h.value?{after_message_id:h.value}:void 0,L=await S0(N);if(L&&L.length>0){const X=L.filter(ie=>y.value.has(ie.message_id)?(console.log(`[H5轮询去重] 跳过重复消息: ${ie.message_id}`),!1):(j(ie.message_id),!0));if(X.length>0){n.value.push(...X),h.value=X[X.length-1].message_id,console.log("[Store] 轮询到新消息:",X.length,"条");const ie=(C=t.value)==null?void 0:C.conversation_id;ie&&$s(ie,n.value)}}}catch(N){console.error("[Store] 轮询消息失败:",N)}}async function Q(C){var N;if(!(!O.value||!P.value))try{const L=await vc(C);if(L.items&&L.items.length>0){const X=L.items.filter(ie=>y.value.has(ie.message_id)?!1:(j(ie.message_id),!0));if(X.length>0){C!=null&&C.before?n.value.push(...X):n.value=X;const ie=X[X.length-1];ie&&(h.value=ie.message_id),console.log("[Store] 获取到历史消息:",X.length,"条");const Ee=(N=t.value)==null?void 0:N.conversation_id;Ee&&$s(Ee,n.value)}}}catch(L){console.error("[Store] 获取历史消息失败:",L)}}function Y(){a.value||(console.log("[Store] 启动消息轮询(3秒间隔)"),a.value=setInterval(()=>{pe()},3e3))}function q(){a.value&&(console.log("[Store] 停止消息轮询"),clearInterval(a.value),a.value=null)}async function W(){var C,N;if(o.value)return"pending";o.value=!0;try{const L=Pt(),X=await x0({employee_id:L.employeeId,employee_name:L.employeeName});console.log("[Store] 招手成功:",X);const ie={message_id:`sys_shake_${Date.now()}`,conversation_id:((C=t.value)==null?void 0:C.conversation_id)||"",message_type:"system",content:X.funny_phrase,sender_name:"系统",created_at:new Date().toISOString()};return n.value.push(ie),X.assign_result==="assigned"&&X.assigned_agent_id?(ie.content=`${X.funny_phrase} 🎉 坐席已为您服务,请稍候...`,t.value&&(t.value.status="serving")):X.assign_result==="queued"&&(ie.content=`${X.funny_phrase} ⏳ 当前无空闲坐席,您已进入排队,请耐心等待...`),((N=X.conversation)==null?void 0:N.status)==="serving"&&await ue(),X.assign_result||"queued"}catch(L){return console.error("[Store] 招手失败:",L),"error"}finally{o.value=!1}}async function Z(){try{const C=await C0();u.value=C,console.log("[Store] 获取审批链接成功:",C.length,"条")}catch(C){console.error("[Store] 获取审批链接失败:",C)}}async function ye(C){var N;try{const L=await k0(C);if(console.log("[Store] 审批意图检测结果:",L),L.is_approval_request){const X={message_id:`approval_card_${Date.now()}`,conversation_id:((N=t.value)==null?void 0:N.conversation_id)||"",message_type:"system",msg_type:"approval_card",content:"",sender_name:"",created_at:new Date().toISOString(),extra_data:{approval_type:L.approval_type,confidence:L.confidence}};n.value.push(X),console.log("[Store] 已插入审批卡片消息, approval_type:",L.approval_type)}}catch(L){console.warn("[Store] 审批意图检测失败:",L)}}function te(){c.value=!1,d.value=""}function he(C=""){var L;const N={message_id:`approval_card_${Date.now()}`,conversation_id:((L=t.value)==null?void 0:L.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(N),console.log("[Store] 手动插入审批卡片消息(快捷按钮触发)")}async function E(){try{const C=await R0();f.value=C,console.log("[Store] 获取软件下载列表成功:",C.length,"条")}catch(C){console.error("[Store] 获取软件下载列表失败:",C)}}function B(){l.value=!l.value}async function M(C){try{await ue();const N=t.value;N&&N.conversation_id!==C&&console.warn("[Store] 当前会话ID不匹配, 期望:",C,"实际:",N.conversation_id),n.value=[],h.value="",await Q(),console.log("[Store] 已切换到邀请会话:",C)}catch(N){console.error("[Store] 切换会话失败:",N)}}async function ee(){if(!t.value)return;const C=t.value.conversation_id;try{await O0(C),console.log("[Store] 已退出会话:",C),t.value=null,b.value=[],n.value=[],h.value="",q()}catch(N){throw console.error("[Store] 退出会话失败:",N),N}}function ce(){T.value=!T.value}async function w(C){const N=n.value.findIndex(ie=>ie.message_id===C);if(N===-1){console.warn("[Store] 重试消息找不到:",C);return}const L=n.value[N];if(L.status!=="failed"){console.warn("[Store] 消息状态不是 failed,无法重试:",C);return}const X=L.content;n.value.splice(N,1),console.log("[Store] 删除失败消息:",C),await ae(X,{msg_type:L.msg_type,media_url:L.media_url,file_name:L.file_name,file_size:L.file_size})}function x(C){b.value=C,t.value&&(t.value.participants=C),console.log("[Store] 参与者列表已通过WS更新:",C.length,"人")}function k(){console.log("[Store] 当前用户被移除会话,清空状态"),t.value=null,b.value=[],n.value=[],h.value="",T.value=!1,q()}function V(C){var L;if(((L=t.value)==null?void 0:L.conversation_id)!==C.conversation_id||!C.chunk)return;if(!A.value){const X=`ai_stream_${C.conversation_id}_${Date.now()}`;A.value=X,n.value.push({message_id:X,conversation_id:C.conversation_id,message_type:"ai",msg_type:"text",content:"",sender_name:"Duckula(达寇拉)",created_at:new Date().toISOString()})}const N=n.value.findIndex(X=>X.message_id===A.value);N!==-1&&(n.value[N].content+=C.chunk)}function G(C){var ie,Ee;if(((ie=t.value)==null?void 0:ie.conversation_id)!==C.conversation_id)return;const N={message_id:C.message_id,conversation_id:C.conversation_id,message_type:C.sender_type||"ai",msg_type:C.msg_type||"text",content:C.content,sender_name:C.sender_name||"Duckula(达寇拉)",created_at:new Date().toISOString(),status:"sent"},L=A.value?n.value.findIndex(ke=>ke.message_id===A.value):-1;if(L!==-1?n.value[L]=N:n.value.push(N),A.value=null,j(C.message_id),h.value=C.message_id,i.value=C.can_call_agent??!1,t.value){t.value.can_call_agent=C.can_call_agent??!1,t.value.ai_substantive_reply_count=C.ai_reply_count??0;const ke={ai_handling:"waiting",queued:"waiting",serving:"serving",resolved:"resolved"};t.value.status=ke[C.conversation_status]||t.value.status}const X=(Ee=t.value)==null?void 0:Ee.conversation_id;X&&$s(X,n.value)}function H(C){var X;if(((X=t.value)==null?void 0:X.conversation_id)!==C.conversation_id)return;const N={message_id:`ai_failed_${C.conversation_id}_${Date.now()}`,conversation_id:C.conversation_id,message_type:"ai",msg_type:"text",content:C.message||"⚠️ AI 服务异常,请输入「IT」转人工或稍后重试。",sender_name:"Duckula(达寇拉)",created_at:new Date().toISOString(),status:"sent"},L=A.value?n.value.findIndex(ie=>ie.message_id===A.value):-1;L!==-1?n.value[L]=N:n.value.push(N),A.value=null}function re(){if(!A.value)return;const C=n.value.findIndex(N=>N.message_id===A.value);C!==-1&&n.value.splice(C,1),A.value=null}async function oe(){var C;if(!_.value)try{console.log("[Store] 开始初始化应用..."),await Promise.all([we(),ue()]);const N=(C=t.value)==null?void 0:C.conversation_id;if(N){const L=U0(N);if(L&&L.length>0){console.log(`[Store] 加载缓存消息 ${L.length} 条`),n.value=L;const X=L[L.length-1];X&&(h.value=X.message_id)}}Promise.resolve().then(async()=>{try{const L=await vc({limit:50});if(L.items&&L.items.length>0){const X=L.items.filter(ie=>y.value.has(ie.message_id)?!1:(j(ie.message_id),!0));if(X.length>0){N&&n.value.length>0?n.value=z0(n.value,X):n.value=X;const ie=X[X.length-1];ie&&(h.value=ie.message_id),N&&$s(N,n.value),console.log(`[Store] 历史消息已加载,共 ${n.value.length} 条`)}}}catch(L){console.warn("[Store] 加载历史消息失败:",L)}}),setTimeout(()=>{Promise.all([Z(),E()]).catch(L=>console.warn("[Store] 加载面板数据失败:",L))},500),Y(),_.value=!0,console.log("[Store] 应用初始化完成(缓存优先显示)")}catch(N){console.error("[Store] 应用初始化失败:",N)}}function se(){var C;(C=t.value)!=null&&C.conversation_id&&H0(t.value.conversation_id),q()}return{userInfo:e,currentConversation:t,messages:n,loading:s,shaking:o,canCallAgent:i,agentOnline:r,assistantPanelVisible:l,approvalLinks:u,approvalCardVisible:c,approvalCardTriggerText:d,softwareDownloads:f,lastMessageId:h,initialized:_,troubleshootingSteps:g,troubleshootingTemplateName:m,troubleshootingCurrentNode:v,participants:b,participantPanelVisible:T,isLoggedIn:O,hasActiveConversation:P,isParticipant:K,joinedParticipantCount:F,approvalLinksByCategory:D,softwareDownloadsByCategory:J,handleOAuthCallback:fe,fetchUserInfo:we,fetchCurrentConversation:ue,fetchMessages:Q,sendNewMessage:ae,pollNewMessages:pe,startPolling:Y,stopPolling:q,shakeAgent:W,fetchApprovalLinks:Z,checkApprovalIntent:ye,closeApprovalCard:te,showApprovalCard:he,fetchSoftwareDownloads:E,toggleAssistantPanel:B,switchToConversation:M,leaveAsParticipant:ee,toggleParticipantPanel:ce,retryMessage:w,updateParticipants:x,handleRemovedFromConversation:k,initialize:oe,cleanup:se,handleNewMessage:le,handleAiReplyChunk:V,handleAiReply:G,handleAiReplyFailed:H,cancelStreamingBubble:re}}),q0=3e4,W0=3e4,K0=1e3;function G0(){let e=null,t=null,n=null,s=0,o=!1;function i(){const d=Pt(),f=d.employeeId,h=d.token;if(!f||!h){console.warn("[H5 WS] 未登录或缺少token,跳过连接");return}e&&r(),o=!1;const _=window.location.protocol==="https:"?"wss:":"ws:",g=window.location.host,m=`${_}//${g}/ws/h5/${f}`;console.log(`[H5 WS] 正在连接: ${m}`),e=new WebSocket(m,[`bearer.${h}`]),e.onopen=()=>{console.log("[H5 WS] 连接成功"),s=0,a(),jt().stopPolling()},e.onmessage=v=>{try{const b=JSON.parse(v.data);c(b)}catch(b){console.error("[H5 WS] 消息解析失败:",b)}},e.onclose=()=>{if(console.log("[H5 WS] 连接关闭"),l(),e=null,!o){const v=jt();v.cancelStreamingBubble(),v.startPolling(),u()}},e.onerror=v=>{console.error("[H5 WS] 连接错误:",v)}}function r(){o=!0,n&&(clearTimeout(n),n=null),l(),e&&(e.close(),e=null),s=0,console.log("[H5 WS] 已主动断开连接")}function a(){l(),t=setInterval(()=>{e&&e.readyState===WebSocket.OPEN&&e.send(JSON.stringify({type:"ping"}))},q0)}function l(){t&&(clearInterval(t),t=null)}function u(){if(o)return;const d=Math.min(K0*Math.pow(2,s),W0);s++,console.log(`[H5 WS] 将在 ${d/1e3} 秒后重连(第 ${s} 次)`),n&&clearTimeout(n),n=setTimeout(()=>{console.log("[H5 WS] 正在重连..."),i()},d)}function c(d){var h,_,g,m,v;const f=jt();switch(d.type){case"participant_invited":(h=d.data)!=null&&h.participants&&f.updateParticipants(d.data.participants);break;case"participant_joined":(_=d.data)!=null&&_.participants&&f.updateParticipants(d.data.participants);break;case"participant_removed":if((g=d.data)!=null&&g.participants&&f.updateParticipants(d.data.participants),(m=d.data)!=null&&m.changed){const b=Pt();d.data.changed.map(A=>A.id).includes(b.employeeId)&&(console.log("[H5 WS] 当前用户被移除会话"),f.handleRemovedFromConversation())}break;case"participant_left":(v=d.data)!=null&&v.participants&&f.updateParticipants(d.data.participants);break;case"new_message":d.data&&f.handleNewMessage(d.data);break;case"ai_reply_chunk":d.data&&f.handleAiReplyChunk(d.data);break;case"ai_reply":d.data&&f.handleAiReply(d.data);break;case"ai_reply_failed":d.data&&f.handleAiReplyFailed(d.data);break;case"pong":break;default:console.warn(`[H5 WS] 未知消息类型: ${d.type}`)}}return{connect:i,disconnect:r}}const J0="/h5/duckula.webp";function X0(e,t){return jr()?(Mc(e,t),!0):!1}const Aa=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Y0=Object.prototype.toString,Q0=e=>Y0.call(e)==="[object Object]";function Z0(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 tr(e){return Array.isArray(e)?e:[e]}function ew(e,t,n={}){const{immediate:s=!0,immediateCallback:o=!1}=n,i=Sn(!1);let r;function a(){r&&(clearTimeout(r),r=void 0)}function l(){i.value=!1,a()}function u(...c){o&&e(),a(),i.value=!0,r=setTimeout(()=>{i.value=!1,r=void 0,e(...c)},ns(t))}return s&&(i.value=!0,Aa&&u()),X0(l),{isPending:$o(i),start:u,stop:l}}function tw(e,t,n){return be(e,t,{...n,immediate:!0})}const nw=Aa?window:void 0,Tf=Aa?window.navigator:void 0;function sw(e){var t;const n=ns(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function kf(...e){const t=(s,o,i,r)=>(s.addEventListener(o,i,r),()=>s.removeEventListener(o,i,r)),n=z(()=>{const s=tr(ns(e[0])).filter(o=>o!=null);return s.every(o=>typeof o!="string")?s:void 0});return tw(()=>{var s,o;return[(s=(o=n.value)===null||o===void 0?void 0:o.map(i=>sw(i)))!==null&&s!==void 0?s:[nw].filter(i=>i!=null),tr(ns(n.value?e[1]:e[0])),tr(Ce(n.value?e[2]:e[1])),ns(n.value?e[3]:e[2])]},([s,o,i,r],a,l)=>{if(!(s!=null&&s.length)||!(o!=null&&o.length)||!(i!=null&&i.length))return;const u=Q0(r)?{...r}:r,c=s.flatMap(d=>o.flatMap(f=>i.map(h=>t(d,f,h,u))));l(()=>{c.forEach(d=>d())})},{flush:"post"})}function ow(){const e=Sn(!1),t=Dt();return t&&nt(()=>{e.value=!0},t),e}function Rf(e){const t=ow();return z(()=>(t.value,!!e()))}function yc(e,t={}){const{controls:n=!1,navigator:s=Tf}=t,o=Rf(()=>s&&"permissions"in s),i=Sn(),r=typeof e=="string"?{name:e}:e,a=Sn(),l=()=>{var c,d;a.value=(c=(d=i.value)===null||d===void 0?void 0:d.state)!==null&&c!==void 0?c:"prompt"};kf(i,"change",l,{passive:!0});const u=Z0(async()=>{if(o.value){if(!i.value)try{i.value=await s.permissions.query(r)}catch{i.value=void 0}finally{l()}if(n)return Re(i.value)}});return u(),n?{state:a,isSupported:o,query:u}:a}function iw(e={}){const{navigator:t=Tf,read:n=!1,source:s,copiedDuring:o=1500,legacy:i=!1}=e,r=Rf(()=>t&&"clipboard"in t),a=yc("clipboard-read"),l=yc("clipboard-write"),u=z(()=>r.value||i),c=Sn(""),d=Sn(!1),f=Sn(!1),h=ew(()=>d.value=!1,o,{immediate:!1});let _=0;async function g(){let y=!(r.value&&A(a.value));if(!y)try{c.value=await t.clipboard.readText()}catch{y=!0}y&&(c.value=T())}u.value&&n&&kf(["copy","cut"],g,{passive:!0});async function m(y){const O=y??ns(s);if(u.value&&O!=null){f.value=!0;let P=!(r.value&&A(l.value));if(!P)try{const K=v(O);await t.clipboard.write([K])}catch{P=!0}if(P)if(typeof O=="string")c.value=O,b(O);else{const K=++_,F=await O();F!=null&&K===_&&(c.value=F,b(F))}d.value=!0,h.start(),f.value=!1}}function v(y){return typeof y=="string"?(c.value=y,new ClipboardItem({"text/plain":y})):new ClipboardItem({"text/plain":y().then((O="")=>(c.value=O,new Blob([O],{type:"text/plain"})))})}function b(y){const O=document.createElement("textarea");O.value=y,O.style.position="absolute",O.style.opacity="0",O.setAttribute("readonly",""),document.body.appendChild(O),O.select(),document.execCommand("copy"),O.remove()}function T(){var y,O,P;return(y=(O=document)===null||O===void 0||(P=O.getSelection)===null||P===void 0||(P=P.call(O))===null||P===void 0?void 0:P.toString())!==null&&y!==void 0?y:""}function A(y){return y==="granted"||y==="prompt"}return{copyPending:$o(f),isSupported:u,text:$o(c),copied:$o(d),copy:m}}const rw={class:"approval-card-inline"},aw={class:"approval-card-inline__header"},lw={class:"approval-card-inline__title-row"},cw={key:0,class:"approval-card-inline__tag"},uw={class:"approval-card-inline__options"},dw=["onClick"],fw={class:"approval-card-inline__option-icon"},hw={class:"approval-card-inline__option-content"},pw={class:"approval-card-inline__option-name"},mw={class:"approval-card-inline__option-desc"},gw=_e({__name:"ApprovalCardModal",props:{approvalType:{default:""}},setup(e){const t=e,n={设备申请:[{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"}]},s=z(()=>t.approvalType&&n[t.approvalType]?n[t.approvalType]:Object.values(n).flat()),o=U([]);async function i(){if(!(o.value.length>0))try{o.value=await A0()}catch(a){console.error("[ApprovalCard] 加载审批关键词失败:",a)}}nt(()=>{i()});async function r(a){if(a.url){window.location.href=a.url;return}try{const l=o.value.find(u=>u.template_name===t.approvalType||u.keyword===a.name);if(l)if(l.type==="jump"){const u=await T0(l.template_id);window.location.href=u.url}else xe("该功能正在开发中");else xe(`${a.name} — 审批模板配置中,请稍后`)}catch(l){console.error("[ApprovalCard] 打开审批失败:",l),xe("打开审批失败,请重试")}}return(a,l)=>{const u=Et;return I(),$("div",rw,[p("div",aw,[p("div",lw,[S(u,{name:"orders-o",size:"16",color:"#07c160"}),l[0]||(l[0]=p("span",{class:"approval-card-inline__title"},"审批快捷入口",-1)),e.approvalType?(I(),$("span",cw,ne(e.approvalType),1)):me("",!0)]),l[1]||(l[1]=p("div",{class:"approval-card-inline__subtitle"}," 检测到您可能需要提交审批,请选择对应类型 ",-1))]),p("div",uw,[(I(!0),$(Ie,null,gt(s.value,c=>(I(),$("div",{key:c.name,class:"approval-card-inline__option",onClick:d=>r(c)},[p("div",fw,[S(u,{name:c.icon,size:"20"},null,8,["name"])]),p("div",hw,[p("div",pw,ne(c.name),1),p("div",mw,ne(c.desc),1)]),S(u,{name:"arrow",class:"approval-card-inline__option-arrow"})],8,dw))),128))])])}}}),ut=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},vw=ut(gw,[["__scopeId","data-v-76b39a8c"]]),_w={class:"byod-card__header"},yw={class:"byod-card__title-row"},bw={class:"byod-card__title"},ww={class:"byod-card__subtitle"},Ew={class:"byod-card__info-section"},Sw={class:"byod-card__info-row"},xw={class:"byod-card__info-value"},Cw={key:0,class:"byod-card__info-row"},Aw={class:"byod-card__info-value"},Tw={key:0,class:"byod-card__notes"},kw={class:"byod-card__notes-title"},Rw={class:"byod-card__notes-list"},Iw={key:1,class:"byod-card__reason"},Ow={class:"byod-card__reason-text"},Pw={key:2,class:"byod-card__action"},$w=["href"],Bw=_e({__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=z(()=>t.eligible?"byod-card--eligible":t.applicationUrl?"byod-card--register":"byod-card--ineligible"),s=z(()=>t.eligible?"passed":t.applicationUrl?"edit":"close"),o=z(()=>t.eligible?"#07c160":t.applicationUrl?"#ff9800":"#969799"),i=z(()=>t.eligible?"自备电脑补贴资格":t.applicationUrl?"自备电脑登记":"自备电脑补贴资格"),r=z(()=>t.eligible?"byod-card__tag--eligible":t.applicationUrl?"byod-card__tag--register":"byod-card__tag--ineligible"),a=z(()=>t.eligible?"可申请":t.applicationUrl?"可登记":"不可申请"),l=z(()=>t.eligible?"您的岗位符合自备电脑补贴申请资格":t.applicationUrl?"您的岗位可进行自备电脑登记(无补贴)":"您的岗位暂不符合自备电脑补贴申请资格");function u(c){c.preventDefault();const d=c.currentTarget.href;d&&(window.location.href=d)}return(c,d)=>{const f=Et;return I(),$("div",{class:$e(["byod-card",n.value])},[p("div",_w,[p("div",yw,[S(f,{name:s.value,size:"16",color:o.value},null,8,["name","color"]),p("span",bw,ne(i.value),1),p("span",{class:$e(["byod-card__tag",r.value])},ne(a.value),3)]),p("div",ww,ne(l.value),1)]),p("div",Ew,[p("div",Sw,[d[0]||(d[0]=p("span",{class:"byod-card__info-label"},"当前岗位",-1)),p("span",xw,ne(e.position||"未获取到岗位信息"),1)]),e.matchedCategory?(I(),$("div",Cw,[d[1]||(d[1]=p("span",{class:"byod-card__info-label"},"资格类别",-1)),p("span",Aw,ne(e.matchedCategory),1)])):me("",!0)]),e.notes.length>0?(I(),$("div",Tw,[p("div",kw,[S(f,{name:"info-o",size:"13",color:o.value},null,8,["color"]),p("span",null,ne(e.eligible?"申请须知":"登记须知"),1)]),p("ul",Rw,[(I(!0),$(Ie,null,gt(e.notes,(h,_)=>(I(),$("li",{key:_,class:"byod-card__note-item"},ne(h),1))),128))])])):me("",!0),!e.eligible&&e.reason?(I(),$("div",Iw,[S(f,{name:"warning-o",size:"14",color:o.value},null,8,["color"]),p("span",Ow,ne(e.reason),1)])):me("",!0),e.applicationUrl?(I(),$("div",Pw,[p("a",{href:e.applicationUrl,class:$e(["byod-card__btn",e.eligible?"byod-card__btn--eligible":"byod-card__btn--register"]),onClick:u},[S(f,{name:"arrow",size:"14",color:"#ffffff"}),p("span",null,ne(e.eligible?"去申请":"去登记"),1)],10,$w)])):me("",!0)],2)}}}),Fw=ut(Bw,[["__scopeId","data-v-7197147e"]]),Dw={class:"contact-card"},Nw={class:"contact-card__header"},Lw=["src"],Mw={key:1},Vw={class:"contact-card__name-row"},jw={class:"contact-card__name"},Uw={class:"contact-card__dept"},Hw={class:"contact-card__body"},zw={class:"contact-card__info-item"},qw={class:"contact-card__info-value contact-card__info-value--highlight"},Ww={key:0,class:"contact-card__info-item"},Kw={class:"contact-card__info-value"},Gw={key:1,class:"contact-card__info-item"},Jw={class:"contact-card__info-label"},Xw={class:"contact-card__info-value"},Yw=_e({__name:"ContactCard",props:{contact:{}},setup(e){const t=e,n=z(()=>t.contact.name?t.contact.name.charAt(0):"?"),s=z(()=>{const l=["gradient-1","gradient-2","gradient-3","gradient-4","gradient-5"];if(!t.contact.name)return l[0];const u=t.contact.name.charCodeAt(0);return l[u%l.length]}),o=z(()=>t.contact.gender==="female"?"♀":"♂"),i=z(()=>t.contact.gender==="female"?"gender-female":"gender-male"),r=z(()=>t.contact.business_category==="行政-物业"?"办公地点":"服务区域");function a(){const l=t.contact.wecom_userid;if(!l){xe("暂时无法发起聊天,请联系管理员");return}const u=window.wx;if(!u||!u.invoke){xe("暂时无法发起聊天,请联系管理员");return}try{u.invoke("openEnterpriseChat",{userids:l,chatTitle:t.contact.name},c=>{c&&c.err_msg&&c.err_msg!=="openEnterpriseChat:ok"&&(console.error("[ContactCard] openEnterpriseChat 失败:",c.err_msg),xe("暂时无法发起聊天,请联系管理员"))})}catch(c){console.error("[ContactCard] openEnterpriseChat 调用异常:",c),xe("暂时无法发起聊天,请联系管理员")}}return(l,u)=>(I(),$("div",Dw,[p("div",Nw,[p("div",{class:$e(["contact-card__avatar",s.value])},[e.contact.avatar_url?(I(),$("img",{key:0,src:e.contact.avatar_url,alt:"",class:"contact-card__avatar-img"},null,8,Lw)):(I(),$("span",Mw,ne(n.value),1))],2),p("div",Vw,[p("div",jw,[Xe(ne(e.contact.name)+" ",1),p("span",{class:$e(["contact-card__gender",i.value])},ne(o.value),3)]),p("div",Uw,ne(e.contact.department)+" · "+ne(e.contact.position),1)]),u[0]||(u[0]=p("span",{class:"contact-card__badge"},"员工名片",-1))]),p("div",Hw,[p("div",zw,[u[1]||(u[1]=p("span",{class:"contact-card__info-label"},"负责业务",-1)),p("span",qw,ne(e.contact.responsibility),1)]),e.contact.extension?(I(),$("div",Ww,[u[2]||(u[2]=p("span",{class:"contact-card__info-label"},"分机号",-1)),p("span",Kw,ne(e.contact.extension),1)])):me("",!0),e.contact.service_area?(I(),$("div",Gw,[p("span",Jw,ne(r.value),1),p("span",Xw,ne(e.contact.service_area),1)])):me("",!0)]),p("div",{class:"contact-card__footer"},[p("button",{class:"contact-card__action-btn",onClick:a},[...u[3]||(u[3]=[p("span",{class:"contact-card__action-icon"},"💬",-1),p("span",null,"联系TA",-1)])])])]))}}),Qw=ut(Yw,[["__scopeId","data-v-ab0a689c"]]),Zw={key:0,class:"message-bubble message-bubble--approval-card"},e1={key:1,class:"message-bubble message-bubble--byod-card"},t1={key:2,class:"message-bubble message-bubble--contact-card"},n1={key:3,class:"message-bubble message-bubble--system"},s1={class:"message-bubble__system-text"},o1={key:0,class:"message-bubble__sender"},i1={key:0,src:J0,class:"message-bubble__ai-avatar",alt:"Duckula"},r1={class:"message-bubble__sender-name"},a1={class:"reply-quote__text"},l1={class:"reply-quote__sender"},c1={key:1,class:"message-bubble__text",style:{"white-space":"pre-wrap"}},u1=["src","alt"],d1={key:1,class:"media-card"},f1={class:"media-card__info"},h1={key:0,class:"media-card__name"},p1=["href"],m1={class:"media-card__info"},g1={class:"media-card__label"},v1={key:0,class:"media-card__size"},_1={key:1,class:"media-card"},y1={class:"media-card__info"},b1={class:"media-card__label"},w1={key:0,class:"media-card__size"},E1={key:4,class:"media-card"},S1={class:"media-card__icon"},x1={class:"media-card__info"},C1={class:"media-card__label"},A1={key:0,class:"media-card__name"},T1={key:1,class:"media-card__size"},k1={key:5,class:"message-bubble__actions"},R1=_e({__name:"MessageBubble",props:{msg:{}},emits:["scrollToMessage"],setup(e){const t=e,{copy:n}=iw(),s=U(!1),o=U(!1);async function i(){try{await n(t.msg.content),o.value=!0,xe("已复制"),setTimeout(()=>{o.value=!1},1500)}catch(v){console.error("复制失败:",v)}}const r=z(()=>{const v=[`message-bubble--${t.msg.message_type}`];return t.msg.status==="sending"?v.push("message-bubble--sending"):t.msg.status==="failed"&&v.push("message-bubble--failed"),v.join(" ")}),a=z(()=>`message-bubble__content--${t.msg.message_type}`),l=z(()=>t.msg.message_type==="employee"?"message-bubble__time--right":"message-bubble__time--left"),u=z(()=>t.msg.message_type==="agent"?t.msg.sender_name||"IT坐席":t.msg.message_type==="ai"?"Duckula(达寇拉)":t.msg.sender_name),c=z(()=>({image:"🖼️",voice:"🎤",video:"🎬",file:"📎",location:"📍"})[t.msg.msg_type||""]||"📄"),d=z(()=>({image:"图片消息",voice:"语音消息",video:"视频消息",file:"文件消息",location:"位置消息"})[t.msg.msg_type||""]||"媒体消息"),f=z(()=>t.msg.reply_to_id?"...":""),h=z(()=>(t.msg.reply_to_id,""));function _(v){if(!v)return"";const b=new Date(v),T=b.getHours().toString().padStart(2,"0"),A=b.getMinutes().toString().padStart(2,"0");return`${T}:${A}`}function g(v){return v<1024?`${v} B`:v<1024*1024?`${(v/1024).toFixed(1)} KB`:`${(v/(1024*1024)).toFixed(1)} MB`}function m(){var b;const v=t.msg.media_url||((b=t.msg.extra_data)==null?void 0:b.pic_url);v&&window.open(v,"_blank")}return(v,b)=>{var T,A,y,O,P,K,F,D,J,j,le,fe,we,ue,ae,pe,Q,Y;return e.msg.msg_type==="approval_card"?(I(),$("div",Zw,[S(vw,{"approval-type":((T=e.msg.extra_data)==null?void 0:T.approval_type)||""},null,8,["approval-type"])])):e.msg.msg_type==="byod_card"?(I(),$("div",e1,[S(Fw,{eligible:((y=(A=e.msg.extra_data)==null?void 0:A.byod_result)==null?void 0:y.eligible)??!1,"has-subsidy":((P=(O=e.msg.extra_data)==null?void 0:O.byod_result)==null?void 0:P.has_subsidy)??!1,position:((F=(K=e.msg.extra_data)==null?void 0:K.byod_result)==null?void 0:F.position)??"","application-url":((J=(D=e.msg.extra_data)==null?void 0:D.byod_result)==null?void 0:J.application_url)??"",notes:((le=(j=e.msg.extra_data)==null?void 0:j.byod_result)==null?void 0:le.notes)??[],reason:((we=(fe=e.msg.extra_data)==null?void 0:fe.byod_result)==null?void 0:we.reason)??"","matched-category":((ae=(ue=e.msg.extra_data)==null?void 0:ue.byod_result)==null?void 0:ae.matched_category)??""},null,8,["eligible","has-subsidy","position","application-url","notes","reason","matched-category"])])):e.msg.msg_type==="contact_card"?(I(),$("div",t1,[S(Qw,{contact:((pe=e.msg.extra_data)==null?void 0:pe.contact)??{}},null,8,["contact"])])):e.msg.message_type==="system"?(I(),$("div",n1,[p("span",s1,ne(e.msg.content),1)])):(I(),$("div",{key:4,class:$e(["message-bubble",r.value]),onMouseenter:b[2]||(b[2]=q=>s.value=!0),onMouseleave:b[3]||(b[3]=q=>s.value=!1)},[e.msg.message_type!=="employee"?(I(),$("div",o1,[e.msg.message_type==="ai"?(I(),$("img",i1)):me("",!0),p("span",r1,ne(u.value),1)])):me("",!0),p("div",{class:$e(["message-bubble__content",a.value])},[e.msg.reply_to_id&&f.value?(I(),$("div",{key:0,class:"reply-quote",onClick:b[0]||(b[0]=Nn(q=>v.$emit("scrollToMessage",e.msg.reply_to_id),["stop"]))},[b[4]||(b[4]=p("div",{class:"reply-quote__bar"},null,-1)),p("div",a1,[p("span",l1,ne(h.value),1),Xe(" "+ne(f.value),1)])])):me("",!0),!e.msg.msg_type||e.msg.msg_type==="text"?(I(),$("p",c1,ne(e.msg.content),1)):e.msg.msg_type==="image"?(I(),$("div",{key:2,class:"image-message",onClick:m},[e.msg.media_url||(Q=e.msg.extra_data)!=null&&Q.pic_url?(I(),$("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,u1)):(I(),$("div",d1,[b[6]||(b[6]=p("div",{class:"media-card__icon"},"🖼️",-1)),p("div",f1,[b[5]||(b[5]=p("span",{class:"media-card__label"},"图片消息",-1)),e.msg.file_name?(I(),$("span",h1,ne(e.msg.file_name),1)):me("",!0)])]))])):e.msg.msg_type==="file"?(I(),$(Ie,{key:3},[e.msg.media_url?(I(),$("a",{key:0,href:e.msg.media_url,target:"_blank",class:"media-card media-card--link",onClick:b[1]||(b[1]=Nn(()=>{},["stop"]))},[b[7]||(b[7]=p("div",{class:"media-card__icon"},"📎",-1)),p("div",m1,[p("span",g1,ne(e.msg.file_name||"文件消息"),1),e.msg.file_size?(I(),$("span",v1,ne(g(e.msg.file_size)),1)):me("",!0)])],8,p1)):(I(),$("div",_1,[b[8]||(b[8]=p("div",{class:"media-card__icon"},"📎",-1)),p("div",y1,[p("span",b1,ne(e.msg.file_name||"文件消息"),1),e.msg.file_size?(I(),$("span",w1,ne(g(e.msg.file_size)),1)):me("",!0)])]))],64)):(I(),$("div",E1,[p("div",S1,ne(c.value),1),p("div",x1,[p("span",C1,ne(d.value),1),e.msg.file_name?(I(),$("span",A1,ne(e.msg.file_name),1)):me("",!0),e.msg.file_size?(I(),$("span",T1,ne(g(e.msg.file_size)),1)):me("",!0)])])),s.value?(I(),$("div",k1,[!e.msg.msg_type||e.msg.msg_type==="text"?(I(),$("button",{key:0,class:"action-btn",title:"复制消息",onClick:Nn(i,["stop"])},ne(o.value?"✓":"📋"),1)):me("",!0)])):me("",!0)],2),p("div",{class:$e(["message-bubble__time",l.value])},ne(_(e.msg.created_at)),3)],34))}}}),I1=ut(R1,[["__scopeId","data-v-d9926d6a"]]);async function nr(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 O1(n)}async function O1(e,t=3){for(let n=0;n<=t;n++)try{return await je.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("上传失败:已达最大重试次数")}async function P1(e){return je.get("/wecom/jsapi-config",{params:{url:e}})}const bc="https://res.wx.qq.com/open/js/jweixin-1.2.0.js",$1=59e3,wc=8e3,B1=1e4,Ec=!1,Sc=["startRecord","stopRecord","translateVoice","checkJsApi"];function F1(){const e=ct({isReady:!1,isRecording:!1,isTranslating:!1,error:null});let t=!1,n=null;function s(){return new Promise((u,c)=>{if(typeof window.wx<"u"){console.log("[WecomVoice] JS-SDK 已加载(window.wx 存在),跳过动态加载"),u();return}console.log("[WecomVoice] 动态加载 JS-SDK 脚本:",bc);const d=setTimeout(()=>{f.onload=null,f.onerror=null,c(new Error("加载企微 JS-SDK 脚本超时(10秒),请检查网络连接"))},B1),f=document.createElement("script");f.src=bc,f.async=!0,f.onload=()=>{clearTimeout(d),typeof window.wx<"u"?(console.log("[WecomVoice] JS-SDK 脚本加载成功,window.wx 已挂载"),u()):(console.error("[WecomVoice] JS-SDK 脚本已加载,但 window.wx 未挂载"),c(new Error("企微 JS-SDK 脚本已加载,但 window.wx 未挂载")))},f.onerror=()=>{clearTimeout(d),console.error("[WecomVoice] JS-SDK 脚本加载失败"),c(new Error("加载企微 JS-SDK 脚本失败,请检查网络连接"))},document.head.appendChild(f)})}function o(u){return new Promise((c,d)=>{const f=window.wx;if(!f||typeof f.config!="function"){const g="wx.config 不可用,JS-SDK 未正确加载";console.error("[WecomVoice]",g),e.isReady=!1,e.error=g,d(new Error(g));return}let h=!1;const _=setTimeout(()=>{h||(h=!0,e.isReady=!1,e.error=`wx.config 鉴权超时(${wc/1e3}秒无响应),可能是签名无效或企微环境异常`,console.error("[WecomVoice]",e.error),d(new Error(e.error)))},wc);f.ready(()=>{h||(h=!0,clearTimeout(_),e.isReady=!0,console.log("[WecomVoice] wx.config 鉴权成功(ready 回调触发)"),c())}),f.error(g=>{h||(h=!0,clearTimeout(_),e.isReady=!1,e.error=`JS-SDK 鉴权失败: ${g.errMsg}`,console.error("[WecomVoice] wx.config 鉴权失败:",g.errMsg),d(new Error(e.error)))}),console.log("[WecomVoice] 调用 wx.config:",{appId:u.corp_id,timestamp:u.timestamp,debug:Ec,jsApiList:Sc}),f.config({beta:!0,debug:Ec,appId:u.corp_id,timestamp:u.timestamp,nonceStr:u.nonce_str,signature:u.signature,jsApiList:Sc})})}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 u=window.location.href.split("#")[0];console.log("[WecomVoice] 签名 URL:",u);const c=await P1(u);console.log("[WecomVoice] 签名配置:",{corp_id:c.corp_id,agent_id:c.agent_id,timestamp:c.timestamp,nonce_str:c.nonce_str,signature:c.signature?c.signature.substring(0,10)+"...":"(空)"}),console.log("[WecomVoice] Step 3/3: wx.config 鉴权"),await o(c),window.wx&&typeof window.wx.checkJsApi=="function"&&window.wx.checkJsApi({jsApiList:["startRecord","stopRecord","translateVoice"],success:d=>{console.log("[WecomVoice] checkJsApi 结果:",JSON.stringify(d))},fail:d=>{console.warn("[WecomVoice] checkJsApi 失败(不阻塞):",d)}}),t=!0,e.error=null,console.log("[WecomVoice] ===== 初始化完成 =====")}catch(u){throw e.error=(u==null?void 0:u.message)||"JS-SDK 初始化失败",console.error("[WecomVoice] ===== 初始化失败 =====",e.error),u}}async function r(){if(e.isRecording){console.log("[WecomVoice] 已在录音中,跳过");return}e.isReady||(console.log("[WecomVoice] SDK 未就绪,先调用 init()..."),await i());const u=window.wx;if(!u||typeof u.startRecord!="function"){const c="wx.startRecord 不可用,JS-SDK 未正确初始化";throw console.error("[WecomVoice]",c),e.error=c,new Error(c)}return new Promise((c,d)=>{let f=!1;const h=setTimeout(()=>{f||(f=!0,n&&(clearTimeout(n),n=null),e.error="录音启动超时,当前企微版本可能不支持语音录制接口",console.error("[WecomVoice] startRecord 15秒无回调,可能不支持此接口"),d(new Error(e.error)))},15e3);n=setTimeout(()=>{e.isRecording&&(console.log("[WecomVoice] 59秒自动停止录音"),a().catch(_=>{e.error=`自动停止录音失败: ${(_==null?void 0:_.message)||"未知错误"}`}))},$1),console.log("[WecomVoice] 调用 wx.startRecord..."),u.startRecord({success:()=>{f||(f=!0,clearTimeout(h),e.isRecording=!0,e.error=null,console.log("[WecomVoice] 录音开始成功(startRecord success 回调)"),c())},fail:_=>{f||(f=!0,clearTimeout(h),n&&(clearTimeout(n),n=null),e.error=`开始录音失败: ${_.errMsg}`,console.error("[WecomVoice] 录音开始失败:",_.errMsg),d(new Error(e.error)))},cancel:()=>{f||(f=!0,clearTimeout(h),n&&(clearTimeout(n),n=null),e.error="用户拒绝了录音权限",console.warn("[WecomVoice] 用户拒绝录音权限"),d(new Error(e.error)))}})})}async function a(){const u=window.wx;return n&&(clearTimeout(n),n=null),e.isRecording?(console.log("[WecomVoice] 调用 wx.stopRecord..."),new Promise((c,d)=>{u.stopRecord({success:f=>{e.isRecording=!1;const h=f.localId;if(console.log("[WecomVoice] 停止录音成功,localId:",h),!h){d(new Error("未获取到录音 localId"));return}e.isTranslating=!0,console.log("[WecomVoice] 调用 wx.translateVoice..."),u.translateVoice({localId:h,isShowProgressTips:1,success:_=>{e.isTranslating=!1;const g=(_.translateResult||"").trim();console.log("[WecomVoice] 语音转文字成功:",g),c(g)},fail:_=>{e.isTranslating=!1,e.error=`语音转文字失败: ${_.errMsg}`,console.error("[WecomVoice] 语音转文字失败:",_.errMsg),d(new Error(e.error))}})},fail:f=>{e.isRecording=!1,e.error=`停止录音失败: ${f.errMsg}`,console.error("[WecomVoice] 停止录音失败:",f.errMsg),d(new Error(e.error))}})})):(console.log("[WecomVoice] 未在录音中,跳过 stopAndTranslate"),"")}function l(){const u=navigator.userAgent,c=/wxwork/i.test(u),d=/Mobile|Android|iPhone|iPad|iPod/i.test(u);return c&&d}return{state:e,init:i,startRecording:r,stopAndTranslate:a,isSupported:l}}const _n=16e3;function D1(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 N1(e,t,n){if(t===n)return e;const s=t/n,o=Math.round(e.length/s),i=new Float32Array(o);for(let r=0;r{if(a)return;const _=h.inputBuffer.getChannelData(0);i.push(new Float32Array(_))},s.connect(o),o.connect(t.destination),e.value=!0,console.log(`[AudioRecorder] 录音开始(native=${r}Hz, target=${_n}Hz)`)}catch(f){c();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 u(){a=!0,c();const d=D1(i),f=r!==_n?N1(d,r,_n):d,h=L1(f),_=new Blob([h],{type:"audio/pcm"});return console.log(`[AudioRecorder] 录音停止,PCM 数据: ${_.size} bytes`+(r!==_n?` (重采样 ${r}→${_n}Hz)`:"")),e.value=!1,i=[],_}function c(){if(o){try{o.disconnect()}catch{}o.onaudioprocess=null,o=null}if(s){try{s.disconnect()}catch{}s=null}n&&(n.getTracks().forEach(d=>d.stop()),n=null),t&&(t.close().catch(()=>{}),t=null)}return{isRecording:e,start:l,stop:u}}async function V1(e){const t=new FormData;t.append("audio",e,"recording.pcm");const n=await je.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 j1={class:"input-bar"},U1={class:"input-bar__row"},H1={key:0,class:"emoji-panel"},z1={class:"emoji-panel__grid"},q1=["onClick"],W1={key:1,class:"input-bar__voice-status"},K1={key:0},G1={key:1},J1={class:"input-bar__input-row"},X1=["title","disabled"],Y1={key:0,class:"input-bar__guide input-bar__guide--active"},Q1={key:2,class:"input-bar__guide"},Z1=_e({__name:"InputBar",emits:["call-agent"],setup(e){function t(Q){return Q?typeof Q=="string"?Q:Array.isArray(Q)?Q.map(Y=>Y.loc&&Y.msg?`${Y.loc.slice(1).join(".")}: ${Y.msg}`:Y.msg?Y.msg:JSON.stringify(Y)).join("; "):typeof Q=="object"?JSON.stringify(Q):String(Q):""}const n=jt(),s=U(""),o=U(null),i=U(null),r=z(()=>s.value.trim().length>0&&!n.loading&&n.isLoggedIn),a=U(!1),l=U(!1),{state:u,init:c,startRecording:d,stopAndTranslate:f,isSupported:h}=F1(),_=z(()=>{if(h())return"wecom";if(navigator.mediaDevices&&typeof navigator.mediaDevices.getUserMedia=="function")return"baidu";const Q=navigator.userAgent,Y=/wxwork/i.test(Q),q=/Mobile|Android|iPhone|iPad|iPod/i.test(Q),W=/Macintosh|Mac OS X/i.test(Q);return Y&&!q&&!W?"baidu":"none"}),g=z(()=>_.value!=="none"),m=M1(),v=z(()=>m.isRecording.value),b=U(!1),T=z(()=>_.value==="wecom"?u.isRecording:_.value==="baidu"?v.value||b.value:!1);function A(Q){return Q.length>0&&!Q.endsWith(" ")&&!Q.endsWith(` `)}nt(()=>{document.addEventListener("paste",y),document.addEventListener("keydown",ae),h()&&c().catch(Q=>{console.warn("[InputBar] 企微 JS-SDK 初始化失败:",Q)})}),Un(()=>{document.removeEventListener("paste",y),document.removeEventListener("keydown",ae),m.isRecording.value&&m.stop()});async function y(Q){var W;const Y=Q.target;if(Y.tagName==="TEXTAREA"||Y.isContentEditable)return;const q=(W=Q.clipboardData)==null?void 0:W.items;if(q){for(const Z of Array.from(q))if(Z.kind==="file"){Q.preventDefault();const ye=Z.getAsFile();if(!ye)continue;ye.type.startsWith("image/")?await J(ye):await j(ye);return}}}const O=["😀","😃","😄","😁","😆","😅","🤣","😂","🙂","😊","😇","🥰","😍","🤩","😘","😗","😚","😙","😋","😛","😜","🤪","😝","🤑","🤗","🤭","🤫","🤔","🤐","🤨","😐","😑","😶","😏","😒","🙄","😬","😮","🤯","😲","😳","🥺","😢","😭","😤","😠","😡","🤬","👍","👎","👏","🙌","🤝","💪","✌️","🤞","❤️","🧡","💛","💚","💙","💜","💯","✅"];function P(Q){s.value+=Q,l.value=!1,We(()=>{var q,W;const Y=(W=(q=o.value)==null?void 0:q.$el)==null?void 0:W.querySelector("textarea");Y==null||Y.focus()})}function K(Q){/Android|iPhone|iPad|iPod/i.test(navigator.userAgent)||Q.shiftKey||(Q.preventDefault(),F())}async function F(){const Q=s.value.trim();!Q||n.loading||(s.value="",await n.sendNewMessage(Q))}async function D(Q){var q;const Y=(q=Q.clipboardData)==null?void 0:q.items;if(Y){for(const W of Array.from(Y))if(W.kind==="file"){Q.preventDefault();const Z=W.getAsFile();if(!Z)continue;Z.type.startsWith("image/")?await J(Z):await j(Z);return}}}async function J(Q){var Y,q;try{xe("图片上传中...");const W=await nr(Q),Z=Q instanceof File?Q.name:"截图";await n.sendNewMessage(`[图片] ${Z}`,{msg_type:"image",media_url:W.url,file_name:W.filename,file_size:W.file_size}),xe("图片发送成功")}catch(W){console.error("图片上传失败:",W),xe(t((q=(Y=W==null?void 0:W.response)==null?void 0:Y.data)==null?void 0:q.detail)||(W==null?void 0:W.message)||"图片上传失败,请重试")}}async function j(Q){var Y,q;try{const W=Q instanceof File?Q.name:"文件";xe(`文件上传中: ${W}`);const Z=await nr(Q);await n.sendNewMessage(`[文件] ${Z.filename}`,{msg_type:"file",media_url:Z.url,file_name:Z.filename,file_size:Z.file_size}),xe("文件发送成功")}catch(W){console.error("文件上传失败:",W),xe(t((q=(Y=W==null?void 0:W.response)==null?void 0:Y.data)==null?void 0:q.detail)||(W==null?void 0:W.message)||"文件上传失败,请重试")}}async function le(Q){const Y=Q.target,q=Y.files;if(!(!q||q.length===0)){for(const W of Array.from(q))try{xe(`正在上传: ${W.name}`);const Z=await nr(W);xe(`${W.name} 上传成功`),console.log("[InputBar] 文件上传成功:",Z.url)}catch(Z){console.error("文件上传失败:",Z),xe(`${W.name} 上传失败`)}Y.value=""}}function fe(){l.value=!l.value}function we(){i.value&&(i.value.accept="",i.value.multiple=!0,i.value.click())}async function ue(Q){if(Q==null||Q.preventDefault(),Q==null||Q.stopPropagation(),_.value!=="none"){if(_.value==="wecom")try{if(u.isRecording){const Y=await f();Y?(A(s.value)&&(s.value+=" "),s.value+=Y,xe("语音识别完成")):xe("未识别到语音内容")}else await d(),xe("正在录音,点击停止")}catch(Y){const q=u.error||(Y==null?void 0:Y.message)||"语音识别失败";xe(q),console.error("[InputBar] 企微语音识别错误:",Y)}else if(_.value==="baidu")if(v.value){const Y=m.stop();if(Y.size<1600){xe("录音过短,请说更多内容");return}b.value=!0;try{const q=await V1(Y);q.error?xe(q.error):q.text?(A(s.value)&&(s.value+=" "),s.value+=q.text,xe("语音识别完成")):xe("未识别到语音内容")}catch(q){xe((q==null?void 0:q.message)||"语音识别失败"),console.error("[InputBar] 百度ASR识别错误:",q)}finally{b.value=!1}}else try{await m.start(),xe("开始语音输入")}catch(Y){xe((Y==null?void 0:Y.message)||"录音启动失败"),console.error("[InputBar] 百度录音启动失败:",Y)}}}function ae(Q){if(Q.ctrlKey&&(Q.key==="d"||Q.key==="D")){if(Q.preventDefault(),!g.value)return;ue()}}function pe(Q){a.value=!0;const Y=Q.clientY,q=Q.target.closest(".input-bar"),W=q?q.offsetHeight:100;function Z(te){if(!a.value)return;const he=Y-te.clientY;let E=W+he;E=Math.max(100,Math.min(400,E)),q&&(q.style.height=`${E}px`,q.style.flexShrink="0")}function ye(){a.value=!1,document.removeEventListener("mousemove",Z),document.removeEventListener("mouseup",ye),document.body.style.cursor="",document.body.style.userSelect=""}document.body.style.cursor="row-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",Z),document.addEventListener("mouseup",ye)}return(Q,Y)=>{const q=pa,W=cs;return I(),$("div",j1,[p("div",{class:"input-bar__resize-handle",onMousedown:pe},[...Y[2]||(Y[2]=[p("div",{class:"input-bar__resize-track"},null,-1)])],32),p("div",U1,[p("div",{class:"input-bar__toolbar"},[p("button",{class:"input-bar__tool-btn",title:"表情",onClick:fe},[...Y[3]||(Y[3]=[p("span",null,"😊",-1)])]),p("button",{class:"input-bar__tool-btn",title:"文件",onClick:we},[...Y[4]||(Y[4]=[p("span",null,"📎",-1)])])]),l.value?(I(),$("div",H1,[p("div",z1,[(I(),$(Ie,null,gt(O,Z=>p("button",{key:Z,class:"emoji-panel__item",onClick:ye=>P(Z)},ne(Z),9,q1)),64))])])):me("",!0),T.value&&_.value==="baidu"?(I(),$("div",W1,[b.value?(I(),$("span",K1,"正在识别语音...")):(I(),$("span",G1,"正在语音输入... 点击⏹停止"))])):me("",!0),p("div",J1,[S(q,{ref_key:"inputFieldRef",ref:o,modelValue:s.value,"onUpdate:modelValue":Y[0]||(Y[0]=Z=>s.value=Z),class:"input-bar__field",placeholder:"请输入消息...",type:"textarea",autosize:{minHeight:54,maxHeight:200},rows:"3",disabled:!Ce(n).isLoggedIn,onKeydown:Gu(K,["enter"]),onPaste:D},null,8,["modelValue","disabled"]),g.value?(I(),$("button",{key:0,class:$e(["input-bar__voice-btn",{"input-bar__voice-btn--recording":T.value}]),title:b.value?"正在识别...":T.value?"点击停止":"语音输入 (Ctrl+D)",disabled:b.value,onMousedown:Nn(ue,["prevent"]),onClick:Nn(ue,["prevent"]),onTouchstart:Nn(ue,["prevent"])},ne(b.value?"⏳":T.value?"⏹":"🎤"),43,X1)):me("",!0),S(W,{class:"input-bar__send-btn",type:"primary",size:"small",disabled:!r.value,loading:Ce(n).loading,onClick:F},{default:qe(()=>[...Y[5]||(Y[5]=[Xe(" 发送 ",-1)])]),_:1},8,["disabled","loading"])])]),Ce(n).canCallAgent?(I(),$("div",Y1," 点击【呼叫】召唤人工坐席 ")):me("",!0),l.value?(I(),$("div",{key:1,class:"emoji-panel__overlay",onClick:Y[1]||(Y[1]=Z=>l.value=!1)})):(I(),$("div",Q1," 请描述你遇到的问题,AI 助手会帮你分析 💡 ")),p("input",{ref_key:"fileInputRef",ref:i,type:"file",style:{display:"none"},onChange:le},null,544)])}}}),eE=ut(Z1,[["__scopeId","data-v-2f612b39"]]),tE={key:0,class:"call-modal call-modal--compact"},nE={class:"call-modal__step"},sE={class:"call-modal__body call-modal__body--center"},oE={key:0,class:"scene scene--hand"},iE={key:1,class:"scene scene--pound"},rE={key:2,class:"scene scene--scarecrow"},aE={key:3,class:"scene scene--watermelon"},lE={key:4,class:"scene scene--bell"},cE={key:5,class:"scene scene--cannon"},uE={key:6,class:"scene scene--missile"},dE={class:"call-modal__speech-text"},fE={class:"call-modal__speech-emoji"},hE={class:"call-modal__speech-content"},pE={key:7,class:"call-modal__sending"},mE={key:8,class:"call-modal__success"},gE={class:"call-modal__footer call-modal__footer--center"},vE=_e({__name:"CallAgentModal",props:{visible:{type:Boolean}},emits:["update:visible","call-success"],setup(e,{emit:t}){const n=e,s=t,o=jt(),i=U(1),r=U(!1),a=U(!1),l=[{id:1,emoji:"🙋",text:"看这里!看我这里...我有个问题!",weight:3},{id:2,emoji:"🪑",text:"快快快!我等不及了!",weight:3},{id:3,emoji:"💀",text:"这个问题不解决我就要原地爆炸了💥",weight:1.5},{id:4,emoji:"🍉",text:"IT!救我!这个问题卡住我了🍉",weight:1.5},{id:5,emoji:"🔔",text:"叮叮叮!有人吗!IT 在线吗!",weight:1},{id:6,emoji:"💣",text:"开炮!💣 这个问题必须解决了!",weight:1.5},{id:7,emoji:"🚀",text:"发射!🚀 紧急呼叫 IT 特种部队!",weight:1.5}];function u(){return 5}const c=z(()=>{var g;return((g=l.find(m=>m.id===i.value))==null?void 0:g.text)??""}),d=z(()=>{var g;return((g=l.find(m=>m.id===i.value))==null?void 0:g.emoji)??"🙋"});be(()=>n.visible,g=>{g&&h()});const f=U("");async function h(){i.value=u(),r.value=!0,a.value=!1,f.value="";try{const g=await o.shakeAgent();f.value=g,a.value=!0,s("call-success"),setTimeout(()=>{a.value&&_()},5e3)}catch{_()}finally{r.value=!1}}function _(){s("update:visible",!1),setTimeout(()=>{r.value=!1,a.value=!1},300)}return(g,m)=>(I(),vt(Jr,{to:"body"},[S(Jo,{name:"modal-fade"},{default:qe(()=>[e.visible?(I(),$("div",{key:0,class:"call-modal__overlay",onClick:Nn(_,["self"])},[S(Jo,{name:"modal-zoom",appear:""},{default:qe(()=>[e.visible?(I(),$("div",tE,[p("div",nE,[m[8]||(m[8]=p("div",{class:"call-modal__header"},[p("span",{class:"call-modal__icon"},"🔔"),p("h3",null,"呼叫人工坐席帮助...")],-1)),p("div",sE,[i.value===1?(I(),$("div",oE,[...m[0]||(m[0]=[p("svg",{viewBox:"0 0 200 180",xmlns:"http://www.w3.org/2000/svg",class:"scene__svg"},[p("rect",{x:"0",y:"140",width:"200",height:"40",fill:"#E8EAF6"}),p("rect",{x:"45",y:"75",width:"110",height:"65",rx:"10",fill:"#ECEFF1"}),p("rect",{x:"50",y:"80",width:"100",height:"55",rx:"8",fill:"#CFD8DC"}),p("rect",{x:"55",y:"85",width:"40",height:"25",rx:"3",fill:"#90CAF9"}),p("rect",{x:"100",y:"85",width:"40",height:"25",rx:"3",fill:"#90CAF9"}),p("circle",{cx:"135",cy:"70",r:"16",fill:"#F5C6A0"}),p("circle",{cx:"130",cy:"67",r:"2",fill:"#333"}),p("circle",{cx:"140",cy:"67",r:"2",fill:"#333"}),p("path",{d:"M130 75 Q135 79 140 75",stroke:"#333","stroke-width":"1.5",fill:"none"}),p("rect",{x:"12",y:"72",width:"30",height:"50",rx:"8",fill:"#F5C6A0"}),p("g",{class:"hand-arm"},[p("line",{x1:"42",y1:"80",x2:"55",y2:"55",stroke:"#F5C6A0","stroke-width":"8","stroke-linecap":"round"})]),p("g",{class:"bubble-float"},[p("rect",{x:"55",y:"36",width:"100",height:"24",rx:"12",fill:"#FF9800"}),p("text",{x:"105",y:"52","text-anchor":"middle",fill:"white","font-size":"11","font-weight":"bold"},"看这里!🙋")])],-1)])])):i.value===2?(I(),$("div",iE,[...m[1]||(m[1]=[p("svg",{viewBox:"0 0 200 180",xmlns:"http://www.w3.org/2000/svg",class:"scene__svg"},[p("rect",{x:"0",y:"140",width:"200",height:"40",fill:"#D7CCC8"}),p("rect",{x:"30",y:"105",width:"140",height:"35",rx:"6",fill:"#8D6E63"}),p("rect",{x:"35",y:"110",width:"130",height:"25",rx:"4",fill:"#A1887F"}),p("rect",{x:"20",y:"75",width:"35",height:"50",rx:"8",fill:"#795548"}),p("circle",{cx:"37",cy:"60",r:"16",fill:"#F5C6A0"}),p("g",{class:"pound-fists"},[p("circle",{cx:"75",cy:"98",r:"9",fill:"#F5C6A0"}),p("circle",{cx:"105",cy:"98",r:"9",fill:"#F5C6A0"})]),p("g",{class:"splash-lines"},[p("line",{x1:"68",y1:"90",x2:"62",y2:"82",stroke:"#FF5722","stroke-width":"2"}),p("line",{x1:"80",y1:"88",x2:"80",y2:"78",stroke:"#FF5722","stroke-width":"2"}),p("line",{x1:"90",y1:"88",x2:"95",y2:"78",stroke:"#FF5722","stroke-width":"2"}),p("line",{x1:"110",y1:"90",x2:"110",y2:"80",stroke:"#FF5722","stroke-width":"2"}),p("line",{x1:"120",y1:"90",x2:"126",y2:"82",stroke:"#FF5722","stroke-width":"2"})]),p("g",{class:"bubble-float"},[p("rect",{x:"90",y:"36",width:"100",height:"24",rx:"12",fill:"#FF5722"}),p("text",{x:"140",y:"52","text-anchor":"middle",fill:"white","font-size":"11","font-weight":"bold"},"快快快!🪑")])],-1)])])):i.value===3?(I(),$("div",rE,[...m[2]||(m[2]=[p("svg",{viewBox:"0 0 200 180",xmlns:"http://www.w3.org/2000/svg",class:"scene__svg"},[p("rect",{x:"0",y:"140",width:"200",height:"40",fill:"#C8E6C9"}),p("rect",{x:"145",y:"100",width:"6",height:"40",fill:"#795548"}),p("rect",{x:"133",y:"95",width:"30",height:"5",rx:"2",fill:"#795548"}),p("circle",{cx:"148",cy:"85",r:"14",fill:"#FFE082"}),p("line",{x1:"148",y1:"74",x2:"148",y2:"70",stroke:"#333","stroke-width":"1.5"}),p("rect",{x:"25",y:"72",width:"30",height:"50",rx:"8",fill:"#1565C0"}),p("circle",{cx:"40",cy:"57",r:"16",fill:"#F5C6A0"}),p("g",{class:"slash-blade"},[p("rect",{x:"55",y:"40",width:"6",height:"50",rx:"2",fill:"#B0BEC5"}),p("rect",{x:"52",y:"38",width:"12",height:"8",rx:"2",fill:"#90A4AE"})]),p("g",{class:"explosion-effect"},[p("circle",{cx:"148",cy:"85",r:"10",fill:"#FF5722",opacity:"0"})]),p("g",{class:"bubble-float"},[p("rect",{x:"5",y:"5",width:"105",height:"24",rx:"12",fill:"#D32F2F"}),p("text",{x:"57",y:"21","text-anchor":"middle",fill:"white","font-size":"10","font-weight":"bold"},"我要爆炸了💥")])],-1)])])):i.value===4?(I(),$("div",aE,[...m[3]||(m[3]=[p("svg",{viewBox:"0 0 200 180",xmlns:"http://www.w3.org/2000/svg",class:"scene__svg"},[p("rect",{x:"0",y:"140",width:"200",height:"40",fill:"#C8E6C9"}),p("g",{class:"melon"},[p("ellipse",{cx:"140",cy:"125",rx:"25",ry:"18",fill:"#4CAF50"}),p("ellipse",{cx:"140",cy:"122",rx:"18",ry:"10",fill:"#F44336"})]),p("rect",{x:"25",y:"75",width:"30",height:"47",rx:"8",fill:"#1565C0"}),p("circle",{cx:"40",cy:"60",r:"16",fill:"#F5C6A0"}),p("g",{class:"knife"},[p("rect",{x:"55",y:"42",width:"6",height:"45",rx:"2",fill:"#B0BEC5"}),p("rect",{x:"52",y:"40",width:"12",height:"8",rx:"2",fill:"#90A4AE"})]),p("g",{class:"juice-splash"},[p("circle",{cx:"130",cy:"110",r:"2",fill:"#F44336",opacity:"0"}),p("circle",{cx:"145",cy:"105",r:"2.5",fill:"#F44336",opacity:"0"}),p("circle",{cx:"155",cy:"112",r:"1.5",fill:"#F44336",opacity:"0"})]),p("g",{class:"bubble-float"},[p("rect",{x:"5",y:"5",width:"105",height:"24",rx:"12",fill:"#43A047"}),p("text",{x:"57",y:"21","text-anchor":"middle",fill:"white","font-size":"10","font-weight":"bold"},"IT救我!🍉")])],-1)])])):i.value===5?(I(),$("div",lE,[...m[4]||(m[4]=[p("svg",{viewBox:"0 0 200 180",xmlns:"http://www.w3.org/2000/svg",class:"scene__svg"},[p("rect",{x:"0",y:"140",width:"200",height:"40",fill:"#FFF3E0"}),p("rect",{x:"25",y:"70",width:"30",height:"52",rx:"8",fill:"#FF9800"}),p("circle",{cx:"40",cy:"55",r:"16",fill:"#F5C6A0"}),p("g",{class:"bell-left"},[p("path",{d:"M52 72 Q52 58 60 50 Q68 42 72 50 Q76 58 74 72",fill:"#FFD54F",stroke:"#FFA000","stroke-width":"1.5"}),p("ellipse",{cx:"63",cy:"72",rx:"9",ry:"3",fill:"#FFA000"})]),p("g",{class:"bell-right"},[p("path",{d:"M92 72 Q92 58 100 50 Q108 42 112 50 Q116 58 114 72",fill:"#FFD54F",stroke:"#FFA000","stroke-width":"1.5"}),p("ellipse",{cx:"103",cy:"72",rx:"9",ry:"3",fill:"#FFA000"})]),p("g",{class:"sound-waves"},[p("circle",{cx:"160",cy:"55",r:"10",fill:"none",stroke:"#FF9800","stroke-width":"1.5",opacity:"0"}),p("circle",{cx:"160",cy:"55",r:"16",fill:"none",stroke:"#FF9800","stroke-width":"1.5",opacity:"0"}),p("circle",{cx:"160",cy:"55",r:"22",fill:"none",stroke:"#FF9800","stroke-width":"1",opacity:"0"})]),p("g",{class:"bubble-float"},[p("rect",{x:"5",y:"5",width:"105",height:"24",rx:"12",fill:"#FF9800"}),p("text",{x:"57",y:"21","text-anchor":"middle",fill:"white","font-size":"10","font-weight":"bold"},"叮叮叮!有人吗")])],-1)])])):i.value===6?(I(),$("div",cE,[...m[5]||(m[5]=[p("svg",{viewBox:"0 0 200 180",xmlns:"http://www.w3.org/2000/svg",class:"scene__svg"},[p("rect",{x:"0",y:"145",width:"200",height:"35",fill:"#D7CCC8"}),p("rect",{x:"55",y:"132",width:"50",height:"16",rx:"3",fill:"#5D4037"}),p("circle",{cx:"80",cy:"138",r:"9",fill:"#4E342E"}),p("g",{class:"cannon-barrel"},[p("rect",{x:"58",y:"110",width:"55",height:"14",rx:"4",fill:"#616161"}),p("rect",{x:"108",y:"108",width:"12",height:"18",rx:"3",fill:"#757575"})]),p("g",{class:"fuse"},[p("path",{d:"M58 117 Q52 115 48 118 Q44 121 40 117",stroke:"#FF9800","stroke-width":"2",fill:"none"}),p("circle",{cx:"38",cy:"116",r:"3",fill:"#FF5722",class:"fuse-spark"})]),p("g",{class:"cannonball"},[p("circle",{cx:"120",cy:"105",r:"7",fill:"#37474F"})]),p("g",{class:"explosion"},[p("circle",{cx:"170",cy:"60",r:"18",fill:"#FF5722",opacity:"0",class:"blast-main"}),p("circle",{cx:"170",cy:"60",r:"12",fill:"#FFC107",opacity:"0",class:"blast-inner"}),p("line",{x1:"170",y1:"40",x2:"170",y2:"30",stroke:"#FF5722","stroke-width":"3",opacity:"0",class:"blast-ray ray-1"}),p("line",{x1:"185",y1:"48",x2:"192",y2:"42",stroke:"#FF5722","stroke-width":"3",opacity:"0",class:"blast-ray ray-2"}),p("line",{x1:"188",y1:"60",x2:"196",y2:"60",stroke:"#FF5722","stroke-width":"3",opacity:"0",class:"blast-ray ray-3"}),p("line",{x1:"185",y1:"72",x2:"192",y2:"78",stroke:"#FF5722","stroke-width":"3",opacity:"0",class:"blast-ray ray-4"}),p("line",{x1:"170",y1:"80",x2:"170",y2:"90",stroke:"#FF5722","stroke-width":"3",opacity:"0",class:"blast-ray ray-5"}),p("line",{x1:"155",y1:"72",x2:"148",y2:"78",stroke:"#FF5722","stroke-width":"3",opacity:"0",class:"blast-ray ray-6"}),p("line",{x1:"152",y1:"60",x2:"144",y2:"60",stroke:"#FF5722","stroke-width":"3",opacity:"0",class:"blast-ray ray-7"}),p("line",{x1:"155",y1:"48",x2:"148",y2:"42",stroke:"#FF5722","stroke-width":"3",opacity:"0",class:"blast-ray ray-8"})]),p("g",{class:"target"},[p("circle",{cx:"170",cy:"55",r:"14",fill:"none",stroke:"#F44336","stroke-width":"2"}),p("circle",{cx:"170",cy:"55",r:"8",fill:"none",stroke:"#F44336","stroke-width":"1.5"}),p("circle",{cx:"170",cy:"55",r:"2",fill:"#F44336"}),p("text",{x:"170",y:"38","text-anchor":"middle",fill:"#F44336","font-size":"9","font-weight":"bold"},"BUG")]),p("rect",{x:"5",y:"75",width:"30",height:"57",rx:"7",fill:"#795548"}),p("circle",{cx:"20",cy:"60",r:"16",fill:"#F5C6A0"}),p("circle",{cx:"15",cy:"57",r:"2",fill:"#333"}),p("circle",{cx:"25",cy:"57",r:"2",fill:"#333"}),p("path",{d:"M14 66 Q20 70 26 66",stroke:"#333","stroke-width":"1.5",fill:"none"}),p("line",{x1:"35",y1:"85",x2:"48",y2:"100",stroke:"#F5C6A0","stroke-width":"7","stroke-linecap":"round",class:"gunner-arm"}),p("g",{class:"bubble-float"},[p("rect",{x:"5",y:"5",width:"95",height:"24",rx:"12",fill:"#FF5722"}),p("text",{x:"52",y:"21","text-anchor":"middle",fill:"white","font-size":"11","font-weight":"bold"},"开炮!💣")])],-1)])])):i.value===7?(I(),$("div",uE,[...m[6]||(m[6]=[p("svg",{viewBox:"0 0 200 180",xmlns:"http://www.w3.org/2000/svg",class:"scene__svg"},[p("rect",{x:"0",y:"0",width:"200",height:"140",fill:"#E3F2FD"}),p("rect",{x:"0",y:"140",width:"200",height:"40",fill:"#BDBDBD"}),p("rect",{x:"85",y:"130",width:"30",height:"12",rx:"2",fill:"#616161"}),p("rect",{x:"88",y:"142",width:"8",height:"10",fill:"#757575"}),p("rect",{x:"104",y:"142",width:"8",height:"10",fill:"#757575"}),p("g",{class:"missile-body"},[p("rect",{x:"94",y:"50",width:"12",height:"65",rx:"4",fill:"#E0E0E0"}),p("path",{d:"M94 50 L100 35 L106 50 Z",fill:"#F44336"}),p("polygon",{points:"94,108 86,115 94,112",fill:"#F44336"}),p("polygon",{points:"106,108 114,115 106,112",fill:"#F44336"})]),p("g",{class:"rocket-flame"},[p("ellipse",{cx:"100",cy:"118",rx:"4",ry:"10",fill:"#FF9800",class:"flame-outer"}),p("ellipse",{cx:"100",cy:"116",rx:"2",ry:"6",fill:"#FFEB3B",class:"flame-inner"})]),p("g",{class:"smoke"},[p("circle",{cx:"88",cy:"145",r:"8",fill:"#CFD8DC",opacity:"0",class:"smoke-puff puff-1"}),p("circle",{cx:"112",cy:"145",r:"8",fill:"#CFD8DC",opacity:"0",class:"smoke-puff puff-2"}),p("circle",{cx:"100",cy:"155",r:"10",fill:"#CFD8DC",opacity:"0",class:"smoke-puff puff-3"})]),p("g",{class:"trail"},[p("path",{d:"M100 130 L100 145",stroke:"#FFC107","stroke-width":"2",opacity:"0",class:"trail-line"})]),p("rect",{x:"15",y:"80",width:"28",height:"52",rx:"7",fill:"#1565C0"}),p("circle",{cx:"29",cy:"65",r:"16",fill:"#F5C6A0"}),p("rect",{x:"18",y:"58",width:"22",height:"8",rx:"3",fill:"#333",opacity:"0.7"}),p("circle",{cx:"24",cy:"62",r:"1.5",fill:"#FFF"}),p("circle",{cx:"34",cy:"62",r:"1.5",fill:"#FFF"}),p("ellipse",{cx:"29",cy:"72",rx:"4",ry:"3",fill:"#333"}),p("line",{x1:"43",y1:"90",x2:"60",y2:"100",stroke:"#F5C6A0","stroke-width":"7","stroke-linecap":"round"}),p("rect",{x:"55",y:"105",width:"15",height:"20",rx:"3",fill:"#424242"}),p("circle",{cx:"62.5",cy:"112",r:"3",fill:"#F44336",class:"launch-button"})],-1)])])):me("",!0),p("div",dE,[p("span",fE,ne(d.value),1),p("span",hE,ne(c.value),1)]),r.value?(I(),$("div",pE,[...m[7]||(m[7]=[p("span",{class:"call-modal__dot-flashing"},null,-1),p("span",null,"正在通知 IT 坐席...",-1)])])):me("",!0),a.value?(I(),$("div",mE,[f.value==="assigned"?(I(),$(Ie,{key:0},[Xe(" 🎉 呼叫成功!坐席已为您服务 ")],64)):f.value==="queued"?(I(),$(Ie,{key:1},[Xe(" ⏳ 坐席正忙,您已进入排队,请耐心等待... ")],64)):(I(),$(Ie,{key:2},[Xe(" ✅ 呼叫成功!坐席马上就来~ ")],64))])):me("",!0)]),p("div",gE,[a.value?(I(),$("button",{key:0,class:"call-modal__btn call-modal__btn--primary call-modal__btn--large",onClick:_},"好的,返回聊天")):(I(),$("button",{key:1,class:"call-modal__btn call-modal__btn--cancel",onClick:_},"取消"))])])])):me("",!0)]),_:1})])):me("",!0)]),_:1})]))}}),_E=ut(vE,[["__scopeId","data-v-bdaecda0"]]),yE={key:0,class:"ts-flow"},bE={class:"ts-flow__path"},wE={class:"ts-flow__path-bar"},EE={class:"ts-flow__label"},SE={class:"ts-flow__card"},xE={key:0,class:"ts-flow__question"},CE={class:"ts-flow__question-header"},AE={class:"ts-flow__question-text"},TE={class:"ts-flow__options"},kE=["disabled"],RE=["disabled"],IE={key:1,class:"ts-flow__instruction"},OE={class:"ts-flow__instruction-header"},PE={class:"ts-flow__instruction-title"},$E={key:0,class:"ts-flow__instruction-steps"},BE={class:"ts-flow__sub-dot"},FE={class:"ts-flow__sub-label"},DE={key:2,class:"ts-flow__waiting"},NE={class:"ts-flow__sync-status"},LE=_e({__name:"TroubleshootFlow",setup(e){const t=jt(),n=U(!1),s=z(()=>t.troubleshootingSteps||[]),o=z(()=>t.troubleshootingTemplateName||"排查中"),i=z(()=>t.troubleshootingCurrentNode||null);function r(l){var u,c;if(!n.value){n.value=!0;try{i.value&&(i.value.status="done");const d=l==="yes"?(u=i.value)==null?void 0:u.yes_branch:(c=i.value)==null?void 0:c.no_branch;d&&(t.troubleshootingCurrentNode=d,d.status="current",d.type==="step"&&a(d)),console.log("[TroubleshootFlow] 用户选择:",l,"下一节点:",d==null?void 0:d.label)}finally{setTimeout(()=>{n.value=!1},500)}}}function a(l){const u=t.troubleshootingSteps;if(!u||u.length===0)return;const c=u.findIndex(d=>d.label===l.label);if(c>=0){const d=u.map((f,h)=>({...f,status:h{var c,d;return s.value.length>0?(I(),$("div",yE,[p("div",bE,[p("div",wE,[(I(!0),$(Ie,null,gt(s.value,(f,h)=>(I(),$(Ie,{key:h},[p("div",{class:$e(["ts-flow__step",`ts-flow__step--${f.status}`])},[p("span",{class:$e(["ts-flow__dot",`ts-flow__dot--${f.status}`])},[f.status==="done"?(I(),$(Ie,{key:0},[Xe("✓")],64)):(I(),$(Ie,{key:1},[Xe(ne(h+1),1)],64))],2),p("span",EE,ne(f.label),1)],2),hr("yes")),disabled:n.value},[u[3]||(u[3]=p("span",{class:"ts-flow__option-icon"},"✅",-1)),p("span",null,ne(((c=i.value.yes_branch)==null?void 0:c.label)||"是"),1)],8,kE),p("button",{class:"ts-flow__option ts-flow__option--no",onClick:u[1]||(u[1]=f=>r("no")),disabled:n.value},[u[4]||(u[4]=p("span",{class:"ts-flow__option-icon"},"❌",-1)),p("span",null,ne(((d=i.value.no_branch)==null?void 0:d.label)||"否"),1)],8,RE)])])):i.value&&i.value.type==="step"?(I(),$("div",IE,[p("div",OE,[u[5]||(u[5]=p("span",{class:"ts-flow__instruction-icon"},"📋",-1)),p("span",PE,"正在执行:"+ne(i.value.label),1)]),i.value.children&&i.value.children.length>0?(I(),$("div",$E,[(I(!0),$(Ie,null,gt(i.value.children,(f,h)=>(I(),$("div",{key:f.id,class:$e(["ts-flow__sub-step",`ts-flow__sub-step--${f.status||"pending"}`])},[p("span",BE,ne(h+1),1),p("span",FE,ne(f.label),1)],2))),128))])):me("",!0),u[6]||(u[6]=p("div",{class:"ts-flow__instruction-hint"},[p("span",null,"💡 请按坐席指引操作,完成后坐席会推进到下一步")],-1))])):(I(),$("div",DE,[...u[7]||(u[7]=[p("span",{class:"ts-flow__waiting-icon"},"⏳",-1),p("span",null,"坐席正在选择排查流程,请稍候...",-1)])])),p("div",NE,[u[8]||(u[8]=p("span",{class:"ts-flow__sync-dot"},null,-1)),p("span",null,"排查进度实时同步 · "+ne(o.value),1)])])])):me("",!0)}}}),ME=ut(LE,[["__scopeId","data-v-412334b8"]]),If={primary_agent:"#3b82f6",collaborator:"#07C160",owner:"#FF9800",invitee:"transparent"};function Of(){const e=jt(),t=Pt(),n=z(()=>{var r;return((r=e.userInfo)==null?void 0:r.employee_id)||""}),s=z(()=>{var u;const r=e.currentConversation;if(!r)return[];const a=[];if(r.agent_name&&a.push({id:r.agent_id||"agent_primary",name:r.agent_name,avatar:"",department:"IT坐席",role:"primary_agent",joined:!0,isSelf:!1}),r.employee_name){const c=r.employee_id===n.value;a.push({id:r.employee_id,name:c?"我":r.employee_name,avatar:c&&((u=t.employeeInfo)==null?void 0:u.avatar)||"",department:"",role:"owner",joined:!0,isSelf:c})}const l=(e.participants||[]).slice().sort((c,d)=>c.joined!==d.joined?c.joined?-1:1:c.joined_at&&d.joined_at?new Date(c.joined_at).getTime()-new Date(d.joined_at).getTime():0);for(const c of l)a.push({id:c.id,name:c.name,avatar:c.avatar||"",department:c.department||"",role:"invitee",joined:c.joined??!1,isSelf:c.id===n.value,joinedAt:c.joined_at});return a}),o=z(()=>s.value.length),i=z(()=>s.value.some(r=>!r.joined));return{normalizedParticipants:s,totalCount:o,hasPending:i,currentUserId:n}}const VE={class:"participant-strip__count"},jE={class:"participant-strip__avatars"},UE=["src","alt","onError"],HE={key:1,class:"participant-strip__avatar-letter"},zE={key:0,class:"participant-strip__overflow"},qE={key:0,class:"participant-strip__badge-dot"},xc=4,WE=_e({__name:"ParticipantStrip",setup(e){const t=jt(),n=U({}),{normalizedParticipants:s,totalCount:o,hasPending:i}=Of(),r=z(()=>s.value.slice(0,xc)),a=z(()=>Math.max(0,s.value.length-xc));function l(c){return(c||"?").charAt(0)}function u(){t.participantPanelVisible=!0}return(c,d)=>(I(),$("div",{class:$e(["participant-strip",{"participant-strip--has-pending":Ce(i)}]),onClick:u},[p("span",VE,ne(Ce(o))+"人在群",1),p("div",jE,[(I(!0),$(Ie,null,gt(r.value,f=>(I(),$("div",{key:f.id,class:$e(["participant-strip__avatar",{"participant-strip__avatar--self":f.isSelf}]),style:Vn({borderColor:Ce(If)[f.role]})},[f.avatar&&!n.value[f.id]?(I(),$("img",{key:0,src:f.avatar,alt:f.name,class:"participant-strip__avatar-img",onError:h=>n.value[f.id]=!0},null,40,UE)):(I(),$("span",HE,ne(l(f.name)),1))],6))),128)),a.value>0?(I(),$("span",zE," +"+ne(a.value),1)):me("",!0)]),d[0]||(d[0]=p("span",{class:"participant-strip__arrow"},"▼",-1)),Ce(i)?(I(),$("span",qE)):me("",!0)],2))}}),KE=ut(WE,[["__scopeId","data-v-154a02b9"]]);async function GE(e){return await je.get("/h5/employees/search",{params:{keyword:e}})}async function JE(){return await je.get("/h5/org/tree")}async function XE(e,t,n="recent10"){return await je.post(`/h5/conversations/${e}/invite-participant`,{participants:t,history_mode:n})}const YE={class:"invite-sheet"},QE={class:"invite-sheet__header"},ZE={class:"invite-sheet__content"},eS={key:0,class:"invite-sheet__loading"},tS={key:1,class:"invite-sheet__empty"},nS={key:2},sS=["onClick"],oS={class:"invite-cell__avatar"},iS={class:"invite-cell__info"},rS={class:"invite-cell__name"},aS={key:0,class:"invite-cell__dept"},lS={key:0,class:"invite-cell__badge"},cS={class:"invite-sheet__content"},uS={key:0,class:"invite-sheet__loading"},dS={class:"invite-collapse__count"},fS=["onClick"],hS={class:"invite-cell__avatar"},pS={class:"invite-cell__info"},mS={class:"invite-cell__name"},gS={key:0,class:"invite-cell__dept"},vS={key:0,class:"invite-cell__badge"},_S={class:"invite-sheet__footer"},yS={class:"invite-sheet__count"},bS=_e({__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=U(0),i=U(""),r=U([]),a=U(!1),l=U([]),u=U(!1),c=U(!1),d=U([]),f=U(!1),h=U(new Map),_=z(()=>h.value.size);function g(D){return(D||"?").charAt(0)}function m(D){return h.value.has(D)}function v(D){return n.existingParticipantIds.includes(D)}function b(D){v(D.id)||(h.value.has(D.id)?h.value.delete(D.id):h.value.set(D.id,D))}function T(D){b({id:D.id,name:D.name,department:D.department||""})}function A(D){b({id:D.id,name:D.label,department:D.department||""})}let y=null;function O(D){y&&clearTimeout(y),y=setTimeout(()=>{P(D)},300)}async function P(D){const J=(D||"").trim();if(!J){r.value=[];return}a.value=!0;try{r.value=await GE(J)}catch(j){console.error("[InviteSheet] 搜索失败:",j)}finally{a.value=!1}}async function K(){if(!c.value){u.value=!0;try{l.value=await JE(),c.value=!0,l.value.length>0&&(d.value=[l.value[0].id])}catch(D){console.error("[InviteSheet] 获取组织架构树失败:",D)}finally{u.value=!1}}}async function F(){if(!(_.value===0||!n.conversationId)){f.value=!0;try{const D=Array.from(h.value.values()).map(J=>({id:J.id,name:J.name,department:J.department,type:"employee"}));await XE(n.conversationId,D,"recent10"),xe("邀请已发送"),h.value.clear(),s("update:show",!1),s("invited")}catch(D){console.error("[InviteSheet] 邀请失败:",D)}finally{f.value=!1}}}return be(()=>n.show,D=>{D&&(h.value.clear(),i.value="",r.value=[],o.value=0)}),be(o,D=>{D===1&&!c.value&&!u.value&&K()}),(D,J)=>{const j=c_,le=uo,fe=Pv,we=nv,ue=Dd,ae=jv,pe=Dv,Q=sv,Y=cs,q=_s;return I(),vt(q,{show:e.show,position:"bottom",round:"",teleport:"body",style:{maxHeight:"85vh",minHeight:"50vh"},"onUpdate:show":J[4]||(J[4]=W=>D.$emit("update:show",W))},{default:qe(()=>[p("div",YE,[p("div",QE,[J[5]||(J[5]=p("span",{class:"invite-sheet__title"},"邀请参与者",-1)),p("button",{class:"invite-sheet__close",onClick:J[0]||(J[0]=W=>D.$emit("update:show",!1))}," × ")]),S(Q,{active:o.value,"onUpdate:active":J[3]||(J[3]=W=>o.value=W),shrink:""},{default:qe(()=>[S(we,{title:"搜索"},{default:qe(()=>[S(j,{modelValue:i.value,"onUpdate:modelValue":[J[1]||(J[1]=W=>i.value=W),O],placeholder:"搜索姓名或工号",shape:"round"},null,8,["modelValue"]),p("div",ZE,[a.value?(I(),$("div",eS,[S(le,{type:"spinner",size:"24px"},{default:qe(()=>[...J[6]||(J[6]=[Xe("搜索中...",-1)])]),_:1})])):i.value&&r.value.length===0?(I(),$("div",tS," 未找到匹配的员工 ")):(I(),$("div",nS,[(I(!0),$(Ie,null,gt(r.value,W=>(I(),$("div",{key:W.id,class:$e(["invite-cell",{"invite-cell--disabled":v(W.id)}]),onClick:Z=>T(W)},[S(fe,{"model-value":m(W.id),disabled:v(W.id),shape:"square"},null,8,["model-value","disabled"]),p("div",oS,ne(g(W.name)),1),p("div",iS,[p("span",rS,ne(W.name),1),W.department?(I(),$("span",aS,ne(W.department),1)):me("",!0)]),v(W.id)?(I(),$("span",lS,"已在会话中")):me("",!0)],10,sS))),128))]))])]),_:1}),S(we,{title:"组织架构"},{default:qe(()=>[p("div",cS,[u.value?(I(),$("div",uS,[S(le,{type:"spinner",size:"24px"},{default:qe(()=>[...J[7]||(J[7]=[Xe("加载中...",-1)])]),_:1})])):l.value.length===0?(I(),vt(ue,{key:1,description:"暂无组织架构数据",image:"search"})):(I(),vt(pe,{key:2,modelValue:d.value,"onUpdate:modelValue":J[2]||(J[2]=W=>d.value=W)},{default:qe(()=>[(I(!0),$(Ie,null,gt(l.value,W=>(I(),vt(ae,{key:W.id,name:W.id,title:W.label},{"right-icon":qe(()=>[p("span",dS,ne((W.children||[]).length)+"人 ",1)]),default:qe(()=>[(I(!0),$(Ie,null,gt(W.children||[],Z=>(I(),$("div",{key:Z.id,class:$e(["invite-cell",{"invite-cell--disabled":v(Z.id)}]),onClick:ye=>A(Z)},[S(fe,{"model-value":m(Z.id),disabled:v(Z.id),shape:"square"},null,8,["model-value","disabled"]),p("div",hS,ne(g(Z.label)),1),p("div",pS,[p("span",mS,ne(Z.label),1),Z.department?(I(),$("span",gS,ne(Z.department),1)):me("",!0)]),v(Z.id)?(I(),$("span",vS,"已在会话中")):me("",!0)],10,fS))),128))]),_:2},1032,["name","title"]))),128))]),_:1},8,["modelValue"]))])]),_:1})]),_:1},8,["active"]),p("div",_S,[p("span",yS,[J[8]||(J[8]=Xe(" 已选 ",-1)),p("strong",null,ne(_.value),1),J[9]||(J[9]=Xe(" 人 ",-1))]),S(Y,{type:"success",size:"small",round:"",loading:f.value,disabled:_.value===0||!e.conversationId,onClick:F},{default:qe(()=>[...J[10]||(J[10]=[Xe(" 确认邀请 ",-1)])]),_:1},8,["loading","disabled"])])])]),_:1},8,["show"])}}}),wS=ut(bS,[["__scopeId","data-v-cbc7149e"]]),ES={class:"participant-list"},SS={class:"participant-list__header"},xS={class:"participant-list__items"},CS=["src","alt","onError"],AS={key:1,class:"participant-item__avatar-letter"},TS={class:"participant-item__info"},kS={class:"participant-item__name"},RS={key:0,class:"participant-item__self-tag"},IS={key:0,class:"participant-item__dept"},OS={key:0,class:"participant-item__badge participant-item__badge--agent"},PS={key:1,class:"participant-item__badge participant-item__badge--owner"},$S={key:2,class:"participant-item__badge participant-item__badge--joined"},BS={key:3,class:"participant-item__badge participant-item__badge--pending"},FS={key:0,class:"participant-list__invite-section"},DS={key:1,class:"participant-list__footer"},NS=["disabled"],LS=_e({__name:"ParticipantList",setup(e){const t=jt(),n=Pt(),s=U(!1),o=U({}),{normalizedParticipants:i}=Of(),r=U(!1),a=z(()=>{const f=t.currentConversation;return f?f.employee_id===n.employeeId?!0:i.value.some(h=>h.id===n.employeeId):!1}),l=z(()=>i.value.map(f=>f.id).filter(Boolean));async function u(){r.value=!1,await t.fetchCurrentConversation()}function c(f){return(f||"?").charAt(0)}async function d(){try{await Zv({title:"退出会话",message:"确定要退出该会话吗?退出后将无法查看会话消息。",confirmButtonText:"确定退出",cancelButtonText:"再想想",confirmButtonColor:"#ee0a24"}),s.value=!0,await t.leaveAsParticipant(),xe("已退出会话"),t.participantPanelVisible=!1}catch(f){f!=="cancel"&&(console.error("[ParticipantList] 退出失败:",f),xe("退出失败,请重试"))}finally{s.value=!1}}return(f,h)=>{var _;return I(),$("div",ES,[p("div",SS,[h[3]||(h[3]=p("span",{class:"participant-list__title"},"参与者",-1)),p("button",{class:"participant-list__close-btn",onClick:h[0]||(h[0]=g=>Ce(t).participantPanelVisible=!1)}," × ")]),p("div",xS,[(I(!0),$(Ie,null,gt(Ce(i),g=>(I(),$("div",{key:g.id,class:$e(["participant-item",{"participant-item--self":g.isSelf}])},[p("div",{class:$e(["participant-item__avatar",{"participant-item__avatar--self":g.isSelf,"participant-item__avatar--agent":g.role==="primary_agent"}]),style:Vn({borderColor:Ce(If)[g.role]})},[g.avatar&&!o.value[g.id]?(I(),$("img",{key:0,src:g.avatar,alt:g.name,class:"participant-item__avatar-img",onError:m=>o.value[g.id]=!0},null,40,CS)):(I(),$("span",AS,ne(c(g.name)),1))],6),p("div",TS,[p("span",kS,[Xe(ne(g.name)+" ",1),g.isSelf?(I(),$("span",RS,"(我)")):me("",!0)]),g.department?(I(),$("span",IS,ne(g.department),1)):me("",!0)]),g.role==="primary_agent"?(I(),$("span",OS,"坐席")):g.role==="owner"?(I(),$("span",PS,"发起人")):g.joined?(I(),$("span",$S,"已加入")):(I(),$("span",BS,"待加入"))],2))),128))]),a.value?(I(),$("div",FS,[p("button",{class:"participant-list__invite-btn",onClick:h[1]||(h[1]=g=>r.value=!0)},[...h[4]||(h[4]=[p("span",{class:"participant-list__invite-icon"},"+",-1),Xe(" 邀请参与者 ",-1)])])])):me("",!0),Ce(t).isParticipant?(I(),$("div",DS,[p("button",{class:"participant-list__leave-btn",disabled:s.value,onClick:d},ne(s.value?"退出中...":"退出会话"),9,NS)])):me("",!0),S(wS,{show:r.value,"onUpdate:show":h[2]||(h[2]=g=>r.value=g),"conversation-id":((_=Ce(t).currentConversation)==null?void 0:_.conversation_id)||"","existing-participant-ids":l.value,onInvited:u},null,8,["show","conversation-id","existing-participant-ids"])])}}}),MS=ut(LS,[["__scopeId","data-v-df70b1a6"]]),VS={class:"evaluation-dialog"},jS={class:"evaluation-dialog__section"},US={class:"star-rating"},HS={class:"star-label"},zS={class:"evaluation-dialog__section"},qS={class:"emoji-selector"},WS={class:"evaluation-dialog__section"},KS={class:"evaluation-dialog__actions"},GS={class:"evaluation-dialog__skip"},JS=_e({__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=z({get:()=>s.modelValue,set:g=>o("update:modelValue",g)}),r=U({star_rating:0,emoji:"",feedback_text:""}),a=U(!1),l=z(()=>({0:"",1:"非常差",2:"较差",3:"一般",4:"满意",5:"非常满意"})[r.value.star_rating]||""),u=z(()=>r.value.star_rating>0&&r.value.emoji!=="");be(i,async g=>{if(g&&s.conversationId)try{await $0(s.conversationId)&&(i.value=!1,xe("您已评价过该会话"))}catch(m){console.warn("[EvaluationDialog] 检查评价状态失败:",m)}});function c(g){r.value.emoji=g}function d(g){g>=4?r.value.emoji="satisfied":g>=2?r.value.emoji="neutral":r.value.emoji="dissatisfied"}async function f(){var g,m;if(!(!u.value||a.value)){a.value=!0;try{await P0(s.conversationId,{star_rating:r.value.star_rating,emoji:r.value.emoji,feedback_text:r.value.feedback_text||void 0}),xe("评价成功,感谢您的反馈!"),i.value=!1,o("submitted")}catch(v){console.error("[EvaluationDialog] 提交评价失败:",v);const b=((m=(g=v==null?void 0:v.response)==null?void 0:g.data)==null?void 0:m.message)||"提交失败,请稍后重试";xe(b)}finally{a.value=!1}}}function h(){i.value=!1}function _(){r.value={star_rating:0,emoji:"",feedback_text:""},a.value=!1}return t({resetForm:_}),(g,m)=>{const v=o_,b=pa,T=cs,A=_s;return I(),vt(A,{show:i.value,"onUpdate:show":m[5]||(m[5]=y=>i.value=y),round:"","close-on-click-overlay":!1,class:"evaluation-popup"},{default:qe(()=>[p("div",VS,[m[14]||(m[14]=p("div",{class:"evaluation-dialog__header"},[p("h3",{class:"evaluation-dialog__title"},"请对本次服务进行评价"),p("p",{class:"evaluation-dialog__subtitle"},"您的评价对我们非常重要")],-1)),p("div",jS,[m[6]||(m[6]=p("div",{class:"evaluation-dialog__label"},"服务评分",-1)),p("div",US,[S(v,{modelValue:r.value.star_rating,"onUpdate:modelValue":m[0]||(m[0]=y=>r.value.star_rating=y),count:5,size:"32",color:"#FFD21E","void-color":"#E5E5E5",onChange:d},null,8,["modelValue"]),p("span",HS,ne(l.value),1)])]),p("div",zS,[m[10]||(m[10]=p("div",{class:"evaluation-dialog__label"},"整体感受",-1)),p("div",qS,[p("div",{class:$e(["emoji-item",{"emoji-item--selected":r.value.emoji==="satisfied"}]),onClick:m[1]||(m[1]=y=>c("satisfied"))},[...m[7]||(m[7]=[p("span",{class:"emoji-icon"},"😀",-1),p("span",{class:"emoji-text"},"满意",-1)])],2),p("div",{class:$e(["emoji-item",{"emoji-item--selected":r.value.emoji==="neutral"}]),onClick:m[2]||(m[2]=y=>c("neutral"))},[...m[8]||(m[8]=[p("span",{class:"emoji-icon"},"😐",-1),p("span",{class:"emoji-text"},"一般",-1)])],2),p("div",{class:$e(["emoji-item",{"emoji-item--selected":r.value.emoji==="dissatisfied"}]),onClick:m[3]||(m[3]=y=>c("dissatisfied"))},[...m[9]||(m[9]=[p("span",{class:"emoji-icon"},"😞",-1),p("span",{class:"emoji-text"},"不满意",-1)])],2)])]),p("div",WS,[m[11]||(m[11]=p("div",{class:"evaluation-dialog__label"},[Xe(" 改进建议 "),p("span",{class:"evaluation-dialog__optional"},"(选填)")],-1)),S(b,{modelValue:r.value.feedback_text,"onUpdate:modelValue":m[4]||(m[4]=y=>r.value.feedback_text=y),type:"textarea",placeholder:"您对本次服务有什么建议?",maxlength:"200","show-word-limit":"",rows:"3",class:"evaluation-dialog__textarea"},null,8,["modelValue"])]),p("div",KS,[S(T,{type:"primary",size:"large",loading:a.value,disabled:!u.value,onClick:f},{default:qe(()=>[...m[12]||(m[12]=[Xe(" 提交评价 ",-1)])]),_:1},8,["loading","disabled"])]),p("div",GS,[S(T,{size:"small",type:"default",disabled:a.value,onClick:h},{default:qe(()=>[...m[13]||(m[13]=[Xe(" 暂不评价 ",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["show"])}}}),XS=ut(JS,[["__scopeId","data-v-f4a30d2d"]]),YS={class:"chat-panel"},QS={class:"chat-panel__header"},ZS={class:"chat-panel__header-left"},ex={key:0,class:"chat-panel__status chat-panel__status--online"},tx={key:1,class:"chat-panel__status chat-panel__status--offline"},nx={class:"chat-panel__header-actions"},sx=["disabled"],ox=["title"],ix={key:0,class:"chat-panel__troubleshoot-fixed"},rx={key:0,class:"chat-panel__not-logged"},ax={key:1,class:"chat-panel__empty"},lx=_e({__name:"ChatPanel",setup(e){const t=jt(),n=Hd(),s=Pt(),o=_a(),i=U(null),r=U(!1),a=U(!1),l=U(""),u=U(""),c=U(!0);function d(){s.logout(),o.push("/login")}async function f(){await We(),i.value&&(i.value.scrollTop=i.value.scrollHeight)}function h(){if(!i.value)return;const{scrollTop:m,scrollHeight:v,clientHeight:b}=i.value;c.value=v-m-b<100}function _(){t.fetchCurrentConversation()}function g(){console.log("[ChatPanel] 评价已提交")}return be(()=>t.messages.length,()=>{f()}),be(()=>{var m;return(m=t.currentConversation)==null?void 0:m.conversation_id},()=>{t.participantPanelVisible=!1}),be(()=>{var m;return(m=t.currentConversation)==null?void 0:m.status},(m,v)=>{var b;if(v==="serving"&&m==="resolved"){const T=(b=t.currentConversation)==null?void 0:b.conversation_id;T&&setTimeout(()=>{l.value=T,a.value=!0},3e3)}u.value=m||""}),nt(()=>{var m;f(),u.value=((m=t.currentConversation)==null?void 0:m.status)||""}),(m,v)=>{var A;const b=Dd,T=_s;return I(),$("div",YS,[p("div",QS,[p("div",ZS,[v[7]||(v[7]=p("span",{class:"logo-block"},"IT",-1)),v[8]||(v[8]=p("span",{class:"chat-panel__title"},"智能IT服务",-1)),Ce(t).agentOnline?(I(),$("span",ex,[...v[5]||(v[5]=[p("span",{class:"chat-panel__status-dot"},null,-1),Xe(" 坐席在线 ",-1)])])):(I(),$("span",tx,[...v[6]||(v[6]=[p("span",{class:"chat-panel__status-dot"},null,-1),Xe(" 坐席离线 ",-1)])]))]),p("div",nx,[Ce(t).canCallAgent?(I(),$("button",{key:0,class:"chat-panel__bell-btn",disabled:!Ce(t).isLoggedIn||Ce(t).shaking,title:"摇铃呼叫人工坐席",onClick:v[0]||(v[0]=y=>r.value=!0)},[...v[9]||(v[9]=[p("span",{class:"chat-panel__bell-icon"},"🔔",-1),p("span",{class:"chat-panel__bell-text"},"呼叫",-1)])],8,sx)):me("",!0),p("div",{class:"theme-switch",title:Ce(n).currentTheme==="light"?"切换到深色模式":"切换到浅色模式",onClick:v[1]||(v[1]=y=>Ce(n).toggleTheme())},[...v[10]||(v[10]=[p("span",{class:"switch-icon"},"☀️",-1),p("div",{class:"switch-track"},[p("div",{class:"switch-thumb"})],-1),p("span",{class:"switch-icon"},"🌙",-1)])],8,ox),p("button",{class:"chat-panel__logout-btn",onClick:d,title:"退出登录"},[...v[11]||(v[11]=[p("span",null,"🚪",-1),p("span",null,"退出",-1)])])])]),(A=Ce(t).troubleshootingSteps)!=null&&A.length?(I(),$("div",ix,[S(ME)])):me("",!0),Ce(t).participants.length>0?(I(),vt(KE,{key:1})):me("",!0),p("div",{ref_key:"messageListRef",ref:i,class:"chat-panel__messages",onScroll:h},[Ce(t).isLoggedIn?Ce(t).messages.length===0?(I(),$("div",ax,[...v[12]||(v[12]=[p("div",{class:"chat-panel__empty-icon"},"💬",-1),p("p",{class:"chat-panel__empty-text"},"暂无消息",-1),p("p",{class:"chat-panel__empty-hint"},"输入问题咨询,或 🔔 摇铃呼叫坐席",-1)])])):(I(!0),$(Ie,{key:2},gt(Ce(t).messages,y=>(I(),vt(I1,{key:y.message_id,msg:y},null,8,["msg"]))),128)):(I(),$("div",rx,[S(b,{description:"正在获取身份信息...",image:"search"})]))],544),S(eE),S(_E,{visible:r.value,"onUpdate:visible":v[2]||(v[2]=y=>r.value=y),onCallSuccess:_},null,8,["visible"]),S(XS,{modelValue:a.value,"onUpdate:modelValue":v[3]||(v[3]=y=>a.value=y),"conversation-id":l.value,onSubmitted:g},null,8,["modelValue","conversation-id"]),S(T,{show:Ce(t).participantPanelVisible,"onUpdate:show":v[4]||(v[4]=y=>Ce(t).participantPanelVisible=y),position:"bottom",round:"",teleport:"body",style:{maxHeight:"60vh"}},{default:qe(()=>[S(MS)]),_:1},8,["show"])])}}}),cx=ut(lx,[["__scopeId","data-v-06e79255"]]),ux={class:"right-panel"},dx={class:"right-panel__section right-panel__ai-push"},fx={class:"right-panel__section-body"},hx=["onClick"],px={class:"ai-push-card__header"},mx={class:"ai-push-card__icon"},gx={class:"ai-push-card__type-label"},vx={class:"ai-push-card__title"},_x={key:0,class:"ai-push-card__subtitle"},yx={key:0,class:"right-panel__empty"},bx={class:"right-panel__section right-panel__resources"},wx={class:"right-panel__tabs"},Ex={key:0,class:"right-panel__tab-content"},Sx=["onClick"],xx={class:"resource-item__icon"},Cx={class:"resource-item__info"},Ax={class:"resource-item__title"},Tx={key:0,class:"resource-item__desc"},kx={key:1,class:"right-panel__tab-content"},Rx=["onClick"],Ix={class:"resource-item__icon"},Ox={class:"resource-item__info"},Px={class:"resource-item__title"},$x={key:0,class:"resource-item__desc"},Bx={class:"right-panel__section right-panel__quiz"},Fx={class:"right-panel__section-header"},Dx={class:"right-panel__quiz-score"},Nx={class:"right-panel__section-body"},Lx={class:"quiz-question"},Mx={class:"quiz-options"},Vx=["disabled","onClick"],jx={class:"quiz-option__label"},Ux={class:"quiz-option__text"},Hx={key:0,class:"quiz-result"},zx={key:0,class:"quiz-result--correct"},qx={key:1,class:"quiz-result--wrong"},Wx={key:1,class:"right-panel__empty"},Kx=_e({__name:"RightPanel",setup(e){const t=z(()=>[{id:"push-1",type:"guide",icon:"📖",typeLabel:"处理指南",title:"WiFi连接问题处理指南",subtitle:"已解决28次类似问题"},{id:"push-2",type:"process",icon:"📋",typeLabel:"申请流程",title:"网络连接申请流程",subtitle:"在线申请,1-3个工作日"},{id:"push-3",type:"download",icon:"💾",typeLabel:"软件下载",title:"无线网卡驱动下载",subtitle:"适用于 Windows 10/11"}]);function n(g){console.log("[RightPanel] AI推送点击:",g.title)}const s=U("process"),o=U([{id:"p-1",icon:"💻",title:"IT设备申请",desc:"电脑/显示器/外设"},{id:"p-2",icon:"🔐",title:"权限申请",desc:"系统/文件夹/VPN"},{id:"p-3",icon:"🌐",title:"VPN申请",desc:"远程办公网络"},{id:"p-4",icon:"📧",title:"邮箱别名申请",desc:"别名/分发组"}]),i=U([{id:"s-1",icon:"📝",title:"Office 365",desc:"Word/Excel/PPT"},{id:"s-2",icon:"📄",title:"Adobe Acrobat",desc:"PDF阅读/编辑"},{id:"s-3",icon:"💬",title:"企业微信",desc:"即时通讯/协作"},{id:"s-4",icon:"🛡️",title:"火绒安全",desc:"杀毒/终端防护"}]);function r(g){console.log("[RightPanel] 申请流程点击:",g.title)}function a(g){console.log("[RightPanel] 软件下载点击:",g.title)}const l=["A","B","C","D"],u=U(0),c=U(!1),d=U(-1),f=U([{id:"q-1",question:"IT服务台电话分机号是?",options:["8001","8002","8003","8004"],correctIndex:0},{id:"q-2",question:"电脑无法连接WiFi时,首先应该检查什么?",options:["重启路由器","WiFi适配器是否禁用","联系网络管理员","重新安装系统"],correctIndex:1},{id:"q-3",question:"VPN申请一般需要几个工作日?",options:["1个工作日","1-3个工作日","3-5个工作日","5个工作日以上"],correctIndex:1}]),h=z(()=>f.value[0]||null);function _(g){c.value||(c.value=!0,d.value=g,h.value&&g===h.value.correctIndex&&(u.value+=10))}return(g,m)=>(I(),$("div",ux,[p("div",dx,[m[3]||(m[3]=p("div",{class:"right-panel__section-header"},[p("span",{class:"right-panel__section-icon"},"🤖"),p("span",{class:"right-panel__section-title"},"AI 推荐")],-1)),p("div",fx,[(I(!0),$(Ie,null,gt(t.value,v=>(I(),$("div",{key:v.id,class:$e(["ai-push-card",`ai-push-card--${v.type}`]),onClick:b=>n(v)},[p("div",px,[p("span",mx,ne(v.icon),1),p("span",gx,ne(v.typeLabel),1)]),p("div",vx,ne(v.title),1),v.subtitle?(I(),$("div",_x,ne(v.subtitle),1)):me("",!0)],10,hx))),128)),t.value.length===0?(I(),$("div",yx,[...m[2]||(m[2]=[p("span",null,"💡 对话过程中会自动推送相关资源",-1)])])):me("",!0)])]),p("div",bx,[m[6]||(m[6]=p("div",{class:"right-panel__section-header"},[p("span",{class:"right-panel__section-icon"},"📚"),p("span",{class:"right-panel__section-title"},"常用资源")],-1)),p("div",wx,[p("button",{class:$e(["right-panel__tab",{"right-panel__tab--active":s.value==="process"}]),onClick:m[0]||(m[0]=v=>s.value="process")},"申请流程",2),p("button",{class:$e(["right-panel__tab",{"right-panel__tab--active":s.value==="software"}]),onClick:m[1]||(m[1]=v=>s.value="software")},"必装软件",2)]),s.value==="process"?(I(),$("div",Ex,[(I(!0),$(Ie,null,gt(o.value,v=>(I(),$("div",{key:v.id,class:"resource-item",onClick:b=>r(v)},[p("span",xx,ne(v.icon),1),p("div",Cx,[p("span",Ax,ne(v.title),1),v.desc?(I(),$("span",Tx,ne(v.desc),1)):me("",!0)]),m[4]||(m[4]=p("span",{class:"resource-item__arrow"},"→",-1))],8,Sx))),128))])):me("",!0),s.value==="software"?(I(),$("div",kx,[(I(!0),$(Ie,null,gt(i.value,v=>(I(),$("div",{key:v.id,class:"resource-item",onClick:b=>a(v)},[p("span",Ix,ne(v.icon),1),p("div",Ox,[p("span",Px,ne(v.title),1),v.desc?(I(),$("span",$x,ne(v.desc),1)):me("",!0)]),m[5]||(m[5]=p("span",{class:"resource-item__arrow"},"→",-1))],8,Rx))),128))])):me("",!0)]),p("div",Bx,[p("div",Fx,[m[7]||(m[7]=p("span",{class:"right-panel__section-icon"},"🎯",-1)),m[8]||(m[8]=p("span",{class:"right-panel__section-title"},"趣味问答",-1)),p("span",Dx,"🏆 "+ne(u.value)+"分",1)]),p("div",Nx,[h.value?(I(),$(Ie,{key:0},[p("div",Lx,ne(h.value.question),1),p("div",Mx,[(I(!0),$(Ie,null,gt(h.value.options,(v,b)=>(I(),$("button",{key:b,class:$e(["quiz-option",{"quiz-option--correct":c.value&&b===h.value.correctIndex,"quiz-option--wrong":c.value&&d.value===b&&b!==h.value.correctIndex}]),disabled:c.value,onClick:T=>_(b)},[p("span",jx,ne(l[b]),1),p("span",Ux,ne(v),1)],10,Vx))),128))]),c.value?(I(),$("div",Hx,[d.value===h.value.correctIndex?(I(),$("span",zx," ✅ 答对啦!+10积分 ")):(I(),$("span",qx," ❌ 答错了!正确答案是 "+ne(l[h.value.correctIndex]),1))])):me("",!0)],64)):(I(),$("div",Wx,[...m[9]||(m[9]=[p("span",null,"暂无问答题目",-1)])]))])])]))}}),Nr=ut(Kx,[["__scopeId","data-v-4f431dca"]]),Gx={class:"chat-view"},Jx={key:1,class:"chat-view__right"},Xx=_e({__name:"ChatView",setup(e){const t=_a(),n=nf(),s=Pt(),o=jt(),i=G0(),r=U(window.innerWidth),a=U(60),l=U(!1),u=z(()=>r.value<500),c=z(()=>!u.value);function d(g){l.value=!0;const m=g.clientX,v=a.value,b=r.value;function T(y){if(!l.value)return;const P=(y.clientX-m)/b*100;let K=v+P;K=Math.max(40,Math.min(80,K)),a.value=K}function A(){l.value=!1,document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",A),document.body.style.cursor="",document.body.style.userSelect=""}document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",T),document.addEventListener("mouseup",A)}function f(){r.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,_=n.query.eid;if(h&&_){console.log(`[ChatView] 检测到邀请链接: conv=${h}, eid=${_}`);const g=be(()=>o.initialized,async m=>{var v,b;if(m){g();try{await I0(h),console.log("[ChatView] 已成功加入邀请的会话"),await o.switchToConversation(h)}catch(T){console.error("[ChatView] 加入会话失败:",T);const A=(b=(v=T==null?void 0:T.response)==null?void 0:v.data)==null?void 0:b.code;if(A!==3034&&A!==3033)try{await o.switchToConversation(h)}catch(y){console.error("[ChatView] 切换会话也失败:",y)}}finally{t.replace({path:n.path,query:{}})}}},{immediate:!0})}return Un(()=>{window.removeEventListener("resize",f),i.disconnect(),o.cleanup()}),(g,m)=>(I(),$("div",Gx,[p("div",{class:$e(["chat-view__left",{"chat-view__left--full":!c.value}]),style:Vn(!u.value&&c.value?{flex:`0 0 ${a.value}%`,maxWidth:`${a.value}%`}:{})},[S(cx)],6),c.value&&!u.value?(I(),$("div",{key:0,class:"chat-view__resize-handle",onMousedown:d},[...m[0]||(m[0]=[p("div",{class:"chat-view__resize-grip"},null,-1)])],32)):me("",!0),c.value?(I(),$("div",Jx,[S(Nr)])):me("",!0)]))}}),Yx=ut(Xx,[["__scopeId","data-v-8734f543"]]),Qx={class:"emergency-dispatcher"},Zx={class:"emergency-dispatcher__panel"},eC={class:"subtitle"},tC={key:1,class:"error-msg"},nC=_e({__name:"EmergencyDispatcher",setup(e){const t=_a(),n=U(!0),s=U(""),o=U("正在检测身份...");function i(){return new Promise((c,d)=>{if(typeof window.wx<"u"&&window.wx.agentConfig){c();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=()=>c(),h.onerror=()=>d(new Error("加载企微 agent SDK 失败")),document.head.appendChild(h)},f.onerror=()=>d(new Error("加载企微 JS-SDK 失败")),document.head.appendChild(f)})}async function r(c){const d=await Ge.get("/api/wecom/jsapi-config",{params:{url:c}});if(d.data.code!==0)throw new Error(`拿签名失败: ${d.data.message}`);return d.data.data}function a(c){return new Promise((d,f)=>{const h=window.wx;h.config({beta:!0,debug:!1,appId:c.corp_id,timestamp:c.timestamp,nonceStr:c.nonce_str,signature:c.signature,jsApiList:["agentConfig"]}),h.ready(()=>d()),h.error(_=>f(new Error(`wx.config 失败: ${JSON.stringify(_)}`)))})}function l(c){return new Promise((d,f)=>{window.wx.agentConfig({corpid:c.corp_id,agentid:c.agent_id,timestamp:c.timestamp,nonceStr:c.nonce_str,signature:c.signature,jsApiList:["selectExternalContact"],success:_=>{const g=window.wecom_userid||"";d({userId:g})},fail:_=>f(new Error(`wx.agentConfig 失败: ${JSON.stringify(_)}`))})})}async function u(c){const d=await Ge.get("/api/wecom/check-role",{params:{userid:c}});if(d.data.code!==0)throw new Error(`检查角色失败: ${d.data.message}`);return d.data.data}return nt(async()=>{try{o.value="正在加载企微 SDK...",await i(),o.value="正在获取鉴权签名...";const c=window.location.href.split("#")[0],d=await r(c);o.value="正在初始化企微...",await a(d),o.value="正在获取身份...";const{userId:f}=await l(d);if(!f)throw new Error("未能获取当前用户 userid");o.value="正在检查角色...";const h=await u(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(c){console.error("[EmergencyDispatcher] 错误:",c),s.value=c.message||"未知错误",n.value=!1,xv({message:s.value,duration:5e3}),setTimeout(()=>{t.push({path:"/h5-preview"})},3e3)}}),(c,d)=>{const f=uo;return I(),$("div",Qx,[p("div",Zx,[d[0]||(d[0]=p("div",{class:"logo"},null,-1)),d[1]||(d[1]=p("h2",{class:"title"},"智能IT服务",-1)),p("p",eC,ne(o.value),1),n.value?(I(),vt(f,{key:0,type:"spinner",color:"#1989fa",size:"32"})):me("",!0),s.value?(I(),$("div",tC,ne(s.value),1)):me("",!0)])])}}}),sC=ut(nC,[["__scopeId","data-v-12d9965e"]]),oC={class:"h5-preview"},iC={class:"h5-preview__topbar"},rC={key:1,class:"userid-tag"},aC={key:0,class:"h5-preview__content"},lC={class:"h5-preview__drawer-header"},cC={class:"h5-preview__drawer-body"},uC={key:2,class:"h5-preview__mobile-hint"},dC=_e({__name:"H5PreviewView",setup(e){const t=nf(),n=U(!1),s=z(()=>t.query.userid||""),o=z(()=>window.innerWidth<500);return s.value&&xe({message:"员工模式",duration:1500}),(i,r)=>{const a=Et,l=_s;return I(),$("div",oC,[p("div",iC,[r[4]||(r[4]=Ep('

员工自助

智能IT服务 · 应急模式

',1)),o.value?(I(),$("button",{key:0,class:"topbar-menu-btn",onClick:r[0]||(r[0]=u=>n.value=!0)},[S(a,{name:"apps-o",size:"22"}),r[3]||(r[3]=p("span",null,"右栏",-1))])):(I(),$("div",rC," userid: "+ne(s.value||"anonymous"),1))]),o.value?me("",!0):(I(),$("div",aC,[S(Nr)])),o.value?(I(),vt(l,{key:1,show:n.value,"onUpdate:show":r[2]||(r[2]=u=>n.value=u),position:"top",style:{height:"85%"},"close-on-click-overlay":!0,closeable:"","safe-area-inset-top":""},{default:qe(()=>[p("div",lC,[r[5]||(r[5]=p("span",{class:"drawer-title"},"📋 右栏内容",-1)),S(a,{name:"cross",size:"20",class:"drawer-close",onClick:r[1]||(r[1]=u=>n.value=!1)})]),p("div",cC,[S(Nr)])]),_:1},8,["show"])):me("",!0),o.value?(I(),$("div",uC,[...r[6]||(r[6]=[p("p",null,"💡 电脑端访问可获得完整体验(右栏常驻显示)",-1),p("p",null,'移动端请点上方"右栏"按钮打开内容',-1)])])):me("",!0)])}}}),fC=ut(dC,[["__scopeId","data-v-3aa64e02"]]);function hC(){return typeof navigator>"u"?!1:/wxwork/i.test(navigator.userAgent)}const pC=[{path:"/",name:"ChatView",component:Yx,meta:{title:"智能IT服务",requiresAuth:!0}},{path:"/login",name:"Login",component:()=>Pn(()=>import("./Login-DyNoXiTS.js"),__vite__mapDeps([4,5,6])),meta:{title:"登录",requiresAuth:!1}},{path:"/bind",name:"Bind",component:()=>Pn(()=>import("./Bind-DEWAOJFG.js"),__vite__mapDeps([7,5,2,3,8,9])),meta:{title:"账号绑定",requiresAuth:!1}},{path:"/wework-only",name:"WeworkOnly",component:()=>Pn(()=>import("./WeworkOnly-BDScN169.js"),__vite__mapDeps([10,11])),meta:{title:"请在企业微信中打开",requiresAuth:!1}},{path:"/emergency",name:"EmergencyDispatcher",component:sC,meta:{title:"应急身份检测",requiresAuth:!1}},{path:"/h5-preview",name:"H5Preview",component:fC,meta:{title:"员工自助",requiresAuth:!1}},{path:"/automation/:id",name:"AutomationProgress",component:()=>Pn(()=>import("./AutomationProgress-bxHBdrMZ.js"),__vite__mapDeps([12,1,2,13,9])),meta:{title:"自动化处置",requiresAuth:!0}},{path:"/intro",name:"VideoIntro",component:()=>Pn(()=>import("./VideoIntro-DHQD2fbv.js"),__vite__mapDeps([14,15])),meta:{title:"智能IT服务",requiresAuth:!1}},{path:"/:pathMatch(.*)*",redirect:"/"}],Pf=Ty({history:iy("/h5/"),routes:pC});Pf.beforeEach(async(e,t,n)=>{if(e.name==="WeworkOnly"||e.name==="Login"||e.name==="Bind"||e.name==="EmergencyDispatcher"||e.name==="H5Preview"||e.name==="VideoIntro"){n();return}const s=new URLSearchParams(window.location.search),o=e.query.token||s.get("token");if(o){localStorage.setItem("h5_token",o),s.delete("token");const u=s.toString(),c=u?`${window.location.pathname}?${u}`:window.location.pathname;window.history.replaceState({},"",c)}const{useEmployeeStore:i}=await Pn(async()=>{const{useEmployeeStore:u}=await Promise.resolve().then(()=>L0);return{useEmployeeStore:u}},void 0),r=i();if(o){r.$patch({token:o});try{await r.fetchEmployeeInfo()}catch(u){console.warn("[Router] Portal token 验证失败:",u)}}if(!(/^localhost(:\d+)?$/.test(window.location.hostname)||window.location.hostname==="127.0.0.1")&&!hC()){if(r.isAuthenticated){n();return}n({name:"Login"});return}if(e.name!=="VideoIntro"&&!localStorage.getItem("h5_video_intro_watched")&&!(e.query.code||new URLSearchParams(window.location.search).get("code"))){n({name:"VideoIntro"});return}const l=e.query.code||new URLSearchParams(window.location.search).get("code");if(l){try{await r.handleOAuthCallback(l);const u=new URLSearchParams(window.location.search);u.delete("code"),u.delete("state");const c=u.toString(),d=c?`${window.location.pathname}?${c}`:window.location.pathname;window.history.replaceState({},"",d),n()}catch(u){console.error("[Router] OAuth2 授权失败:",u),r.redirectToOAuth()}return}if(r.isAuthenticated){n();return}r.redirectToOAuth()});const Ta=Ju(y_);Ta.use(u_());Ta.use(Pf);const mC=Date.now(),Cc=500;Ta.mount("#app");const Ac=Date.now()-mC;Ac>=Cc?document.body.classList.add("app-loaded"):setTimeout(()=>{document.body.classList.add("app-loaded")},Cc-Ac);export{qg as $,qm as A,md as B,Ad as C,yC as D,Dd as E,pa as F,Sg as G,Ag as H,Et as I,n_ as J,a_ as K,uo as L,Xm as M,Zv as N,Cg as O,_s as P,Qv as Q,o_ as R,c_ as S,nv as T,xv as U,_C as V,Bg as W,Ng as X,ev as Y,Ug as Z,_v as _,Al as a,Mt as a$,Jm as a0,je as a1,ut as a2,I as a3,$ as a4,Ep as a5,_e as a6,Ne as a7,S as a8,Ie as a9,vs as aA,hn as aB,Tv as aC,He as aD,$d as aE,ua as aF,Pe as aG,Jo as aH,Mm as aI,Dt as aJ,ms as aK,ps as aL,We as aM,z as aN,li as aO,gC as aP,Qe as aQ,Ye as aR,Um as aS,vC as aT,rd as aU,la as aV,gi as aW,Hn as aX,pi as aY,Yt as aZ,Zn as a_,bt as aa,kl as ab,ud as ac,Ve as ad,ze as ae,_a as af,Pt as ag,nt as ah,Un as ai,p as aj,qe as ak,Xe as al,me as am,ne as an,U as ao,nf as ap,vt as aq,ct as ar,Te as as,Tt as at,mi as au,Vm as av,cn as aw,$t as ax,be as ay,od as az,cs as b,ls as b0,co as b1,ma as b2,Ce as b3,gt as b4,Pv as c,Dv as d,jv as e,Uv as f,Pm as g,Dg as h,Mg as i,Qg as j,sv as k,gg as l,Hm as m,Km as n,fg as o,iv as p,Iv as q,Mv as r,xe as s,Bv as t,Qm as u,Kv as v,zv as w,hv as x,og as y,cg as z};