var JA=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ppt=JA((Ao,No)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&a(r)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function j1(e,t){const n=Object.create(null),a=e.split(",");for(let s=0;s!!n[s]}const ma={},Tu=[],Cn=()=>{},ZA=()=>!1,hm=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),W1=e=>e.startsWith("onUpdate:"),ps=Object.assign,G1=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},eN=Object.prototype.hasOwnProperty,ln=(e,t)=>eN.call(e,t),Ve=Array.isArray,Iu=e=>wp(e)==="[object Map]",pd=e=>wp(e)==="[object Set]",Ni=e=>wp(e)==="[object Date]",vt=e=>typeof e=="function",ut=e=>typeof e=="string",Ri=e=>typeof e=="symbol",Ot=e=>e!==null&&typeof e=="object",Nc=e=>(Ot(e)||vt(e))&&vt(e.then)&&vt(e.catch),q$=Object.prototype.toString,wp=e=>q$.call(e),tN=e=>wp(e).slice(8,-1),Df=e=>wp(e)==="[object Object]",Y1=e=>ut(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Gv=j1(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mm=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},nN=/-(\w)/g,Po=mm(e=>e.replace(nN,(t,n)=>n?n.toUpperCase():"")),aN=/\B([A-Z])/g,qi=mm(e=>e.replace(aN,"-$1").toLowerCase()),Cp=mm(e=>e.charAt(0).toUpperCase()+e.slice(1)),_f=mm(e=>e?`on${Cp(e)}`:""),Rc=(e,t)=>!Object.is(e,t),Yv=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},kh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},sN=e=>{const t=ut(e)?Number(e):NaN;return isNaN(t)?e:t};let Cw;const Wg=()=>Cw||(Cw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Je(e){if(Ve(e)){const t={};for(let n=0;n{if(n){const a=n.split(rN);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function V(e){let t="";if(ut(e))t=e;else if(Ve(e))for(let n=0;nPc(n,t))}const I=e=>ut(e)?e:e==null?"":Ve(e)||Ot(e)&&(e.toString===q$||!vt(e.toString))?JSON.stringify(e,W$,2):String(e),W$=(e,t)=>t&&t.__v_isRef?W$(e,t.value):Iu(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,s],o)=>(n[V0(a,o)+" =>"]=s,n),{})}:pd(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>V0(n))}:Ri(t)?V0(t):Ot(t)&&!Ve(t)&&!Df(t)?String(t):t,V0=(e,t="")=>{var n;return Ri(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let So;class G${constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=So,!t&&So&&(this.index=(So.scopes||(So.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=So;try{return So=this,t()}finally{So=n}}}on(){So=this}off(){So=this.parent}stop(t){if(this._active){let n,a;for(n=0,a=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Y$=e=>(e.w&Pi)>0,X$=e=>(e.n&Pi)>0,pN=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let a=0;a{(d==="length"||!Ri(d)&&d>=c)&&i.push(u)})}else switch(n!==void 0&&i.push(r.get(n)),t){case"add":Ve(e)?Y1(n)&&i.push(r.get("length")):(i.push(r.get(kc)),Iu(e)&&i.push(r.get(Yg)));break;case"delete":Ve(e)||(i.push(r.get(kc)),Iu(e)&&i.push(r.get(Yg)));break;case"set":Iu(e)&&i.push(r.get(kc));break}if(i.length===1)i[0]&&Xg(i[0]);else{const c=[];for(const u of i)u&&c.push(...u);Xg(Z1(c))}}function Xg(e,t){const n=Ve(e)?e:[...e];for(const a of n)a.computed&&Sw(a);for(const a of n)a.computed||Sw(a)}function Sw(e,t){(e!==mr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function hN(e,t){var n;return(n=Sh.get(e))==null?void 0:n.get(t)}const mN=j1("__proto__,__v_isRef,__isVue"),Z$=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ri)),Ew=gN();function gN(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const a=Tn(this);for(let o=0,r=this.length;o{e[t]=function(...n){vd();const a=Tn(this)[t].apply(this,n);return hd(),a}}),e}function _N(e){const t=Tn(this);return yo(t,"has",e),t.hasOwnProperty(e)}class ex{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,a){const s=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return a===(s?o?NN:sx:o?ax:nx).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const r=Ve(t);if(!s){if(r&&ln(Ew,n))return Reflect.get(Ew,n,a);if(n==="hasOwnProperty")return _N}const i=Reflect.get(t,n,a);return(Ri(n)?Z$.has(n):mN(n))||(s||yo(t,"get",n),o)?i:$n(i)?r&&Y1(n)?i:i.value:Ot(i)?s?md(i):At(i):i}}class tx extends ex{constructor(t=!1){super(!1,t)}set(t,n,a,s){let o=t[n];if(!this._shallow){const c=Fu(o);if(!Eh(a)&&!Fu(a)&&(o=Tn(o),a=Tn(a)),!Ve(t)&&$n(o)&&!$n(a))return c?!1:(o.value=a,!0)}const r=Ve(t)&&Y1(n)?Number(n)e,gm=e=>Reflect.getPrototypeOf(e);function iv(e,t,n=!1,a=!1){e=e.__v_raw;const s=Tn(e),o=Tn(t);n||(Rc(t,o)&&yo(s,"get",t),yo(s,"get",o));const{has:r}=gm(s),i=a?ty:n?sy:Vf;if(r.call(s,t))return i(e.get(t));if(r.call(s,o))return i(e.get(o));e!==s&&e.get(t)}function cv(e,t=!1){const n=this.__v_raw,a=Tn(n),s=Tn(e);return t||(Rc(e,s)&&yo(a,"has",e),yo(a,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function uv(e,t=!1){return e=e.__v_raw,!t&&yo(Tn(e),"iterate",kc),Reflect.get(e,"size",e)}function $w(e){e=Tn(e);const t=Tn(this);return gm(t).has.call(t,e)||(t.add(e),Il(t,"add",e,e)),this}function xw(e,t){t=Tn(t);const n=Tn(this),{has:a,get:s}=gm(n);let o=a.call(n,e);o||(e=Tn(e),o=a.call(n,e));const r=s.call(n,e);return n.set(e,t),o?Rc(t,r)&&Il(n,"set",e,t):Il(n,"add",e,t),this}function Tw(e){const t=Tn(this),{has:n,get:a}=gm(t);let s=n.call(t,e);s||(e=Tn(e),s=n.call(t,e)),a&&a.call(t,e);const o=t.delete(e);return s&&Il(t,"delete",e,void 0),o}function Iw(){const e=Tn(this),t=e.size!==0,n=e.clear();return t&&Il(e,"clear",void 0,void 0),n}function dv(e,t){return function(a,s){const o=this,r=o.__v_raw,i=Tn(r),c=t?ty:e?sy:Vf;return!e&&yo(i,"iterate",kc),r.forEach((u,d)=>a.call(s,c(u),c(d),o))}}function fv(e,t,n){return function(...a){const s=this.__v_raw,o=Tn(s),r=Iu(o),i=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,u=s[e](...a),d=n?ty:t?sy:Vf;return!t&&yo(o,"iterate",c?Yg:kc),{next(){const{value:p,done:v}=u.next();return v?{value:p,done:v}:{value:i?[d(p[0]),d(p[1])]:d(p),done:v}},[Symbol.iterator](){return this}}}}function Jl(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function kN(){const e={get(o){return iv(this,o)},get size(){return uv(this)},has:cv,add:$w,set:xw,delete:Tw,clear:Iw,forEach:dv(!1,!1)},t={get(o){return iv(this,o,!1,!0)},get size(){return uv(this)},has:cv,add:$w,set:xw,delete:Tw,clear:Iw,forEach:dv(!1,!0)},n={get(o){return iv(this,o,!0)},get size(){return uv(this,!0)},has(o){return cv.call(this,o,!0)},add:Jl("add"),set:Jl("set"),delete:Jl("delete"),clear:Jl("clear"),forEach:dv(!0,!1)},a={get(o){return iv(this,o,!0,!0)},get size(){return uv(this,!0)},has(o){return cv.call(this,o,!0)},add:Jl("add"),set:Jl("set"),delete:Jl("delete"),clear:Jl("clear"),forEach:dv(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=fv(o,!1,!1),n[o]=fv(o,!0,!1),t[o]=fv(o,!1,!0),a[o]=fv(o,!0,!0)}),[e,n,t,a]}const[SN,EN,$N,xN]=kN();function ny(e,t){const n=t?e?xN:$N:e?EN:SN;return(a,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?a:Reflect.get(ln(n,s)&&s in a?n:a,s,o)}const TN={get:ny(!1,!1)},IN={get:ny(!1,!0)},AN={get:ny(!0,!1)},nx=new WeakMap,ax=new WeakMap,sx=new WeakMap,NN=new WeakMap;function RN(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function PN(e){return e.__v_skip||!Object.isExtensible(e)?0:RN(tN(e))}function At(e){return Fu(e)?e:ay(e,!1,bN,TN,nx)}function _m(e){return ay(e,!1,CN,IN,ax)}function md(e){return ay(e,!0,wN,AN,sx)}function ay(e,t,n,a,s){if(!Ot(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const r=PN(e);if(r===0)return e;const i=new Proxy(e,r===2?a:n);return s.set(e,i),i}function Al(e){return Fu(e)?Al(e.__v_raw):!!(e&&e.__v_isReactive)}function Fu(e){return!!(e&&e.__v_isReadonly)}function Eh(e){return!!(e&&e.__v_isShallow)}function ox(e){return Al(e)||Fu(e)}function Tn(e){const t=e&&e.__v_raw;return t?Tn(t):e}function Yo(e){return Ch(e,"__v_skip",!0),e}const Vf=e=>Ot(e)?At(e):e,sy=e=>Ot(e)?md(e):e;function oy(e){Si&&mr&&(e=Tn(e),J$(e.dep||(e.dep=Z1())))}function ym(e,t){e=Tn(e);const n=e.dep;n&&Xg(n)}function $n(e){return!!(e&&e.__v_isRef===!0)}function T(e){return rx(e,!1)}function Fn(e){return rx(e,!0)}function rx(e,t){return $n(e)?e:new MN(e,t)}class MN{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Tn(t),this._value=n?t:Vf(t)}get value(){return oy(this),this._value}set value(t){const n=this.__v_isShallow||Eh(t)||Fu(t);t=n?t:Tn(t),Rc(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Vf(t),ym(this))}}function Xv(e){ym(e)}function f(e){return $n(e)?e.value:e}function Aw(e){return vt(e)?e():f(e)}const BN={get:(e,t,n)=>f(Reflect.get(e,t,n)),set:(e,t,n,a)=>{const s=e[t];return $n(s)&&!$n(n)?(s.value=n,!0):Reflect.set(e,t,n,a)}};function lx(e){return Al(e)?e:new Proxy(e,BN)}class LN{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:a}=t(()=>oy(this),()=>ym(this));this._get=n,this._set=a}get value(){return this._get()}set value(t){this._set(t)}}function ON(e){return new LN(e)}function Pa(e){const t=Ve(e)?new Array(e.length):{};for(const n in e)t[n]=ix(e,n);return t}class DN{constructor(t,n,a){this._object=t,this._key=n,this._defaultValue=a,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return hN(Tn(this._object),this._key)}}class VN{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function gn(e,t,n){return $n(e)?e:vt(e)?new VN(e):Ot(e)&&arguments.length>1?ix(e,t,n):T(e)}function ix(e,t,n){const a=e[t];return $n(a)?a:new DN(e,t,n)}class FN{constructor(t,n,a,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ey(t,()=>{this._dirty||(this._dirty=!0,ym(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=a}get value(){const t=Tn(this);return oy(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function UN(e,t,n=!1){let a,s;const o=vt(e);return o?(a=e,s=Cn):(a=e.get,s=e.set),new FN(a,s,o||!s,n)}function zN(e,...t){}function Ei(e,t,n,a){let s;try{s=a?e(...a):e()}catch(o){bm(o,t,n)}return s}function Xo(e,t,n,a){if(vt(e)){const o=Ei(e,t,n,a);return o&&Nc(o)&&o.catch(r=>{bm(r,t,n)}),o}const s=[];for(let o=0;o>>1,s=Ms[a],o=Uf(s);oUr&&Ms.splice(t,1)}function jN(e){Ve(e)?Au.push(...e):(!bl||!bl.includes(e,e.allowRecurse?oc+1:oc))&&Au.push(e),ux()}function Nw(e,t,n=Ff?Ur+1:0){for(;nUf(n)-Uf(a)),oc=0;oce.id==null?1/0:e.id,WN=(e,t)=>{const n=Uf(e)-Uf(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function fx(e){Qg=!1,Ff=!0,Ms.sort(WN);try{for(Ur=0;Urut(h)?h.trim():h)),p&&(s=n.map(kh))}let i,c=a[i=_f(t)]||a[i=_f(Po(t))];!c&&o&&(c=a[i=_f(qi(t))]),c&&Xo(c,e,6,s);const u=a[i+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,Xo(u,e,6,s)}}function px(e,t,n=!1){const a=t.emitsCache,s=a.get(e);if(s!==void 0)return s;const o=e.emits;let r={},i=!1;if(!vt(e)){const c=u=>{const d=px(u,t,!0);d&&(i=!0,ps(r,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!i?(Ot(e)&&a.set(e,null),null):(Ve(o)?o.forEach(c=>r[c]=null):ps(r,o),Ot(e)&&a.set(e,r),r)}function wm(e,t){return!e||!hm(t)?!1:(t=t.slice(2).replace(/Once$/,""),ln(e,t[0].toLowerCase()+t.slice(1))||ln(e,qi(t))||ln(e,t))}let ds=null,Cm=null;function $h(e){const t=ds;return ds=e,Cm=e&&e.type.__scopeId||null,t}function xt(e){Cm=e}function Tt(){Cm=null}function W(e,t=ds,n){if(!t||e._n)return e;const a=(...s)=>{a._d&&qw(-1);const o=$h(t);let r;try{r=e(...s)}finally{$h(o),a._d&&qw(1)}return r};return a._n=!0,a._c=!0,a._d=!0,a}function Rw(e){const{type:t,vnode:n,proxy:a,withProxy:s,props:o,propsOptions:[r],slots:i,attrs:c,emit:u,render:d,renderCache:p,data:v,setupState:h,ctx:m,inheritAttrs:g}=e;let y,b;const C=$h(e);try{if(n.shapeFlag&4){const S=s||a,$=S;y=Or(d.call($,S,p,o,h,v,m)),b=c}else{const S=t;y=Or(S.length>1?S(o,{attrs:c,slots:i,emit:u}):S(o,null)),b=t.props?c:YN(c)}}catch(S){Cf.length=0,bm(S,e,1),y=z(ts)}let k=y;if(b&&g!==!1){const S=Object.keys(b),{shapeFlag:$}=k;S.length&&$&7&&(r&&S.some(W1)&&(b=XN(b,r)),k=Ml(k,b))}return n.dirs&&(k=Ml(k),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),y=k,$h(C),y}const YN=e=>{let t;for(const n in e)(n==="class"||n==="style"||hm(n))&&((t||(t={}))[n]=e[n]);return t},XN=(e,t)=>{const n={};for(const a in e)(!W1(a)||!(a.slice(9)in t))&&(n[a]=e[a]);return n};function QN(e,t,n){const{props:a,children:s,component:o}=e,{props:r,children:i,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return a?Pw(a,r,u):!!r;if(c&8){const d=t.dynamicProps;for(let p=0;pe.__isSuspense;function tR(e,t){t&&t.pendingBranch?Ve(e)?t.effects.push(...e):t.effects.push(e):jN(e)}function Ls(e,t){return uy(e,null,t)}const pv={};function Te(e,t,n){return uy(e,t,n)}function uy(e,t,{immediate:n,deep:a,flush:s,onTrack:o,onTrigger:r}=ma){var i;const c=J1()===((i=Za)==null?void 0:i.scope)?Za:null;let u,d=!1,p=!1;if($n(e)?(u=()=>e.value,d=Eh(e)):Al(e)?(u=()=>e,a=!0):Ve(e)?(p=!0,d=e.some(S=>Al(S)||Eh(S)),u=()=>e.map(S=>{if($n(S))return S.value;if(Al(S))return vc(S);if(vt(S))return Ei(S,c,2)})):vt(e)?t?u=()=>Ei(e,c,2):u=()=>{if(!(c&&c.isUnmounted))return v&&v(),Xo(e,c,3,[h])}:u=Cn,t&&a){const S=u;u=()=>vc(S())}let v,h=S=>{v=C.onStop=()=>{Ei(S,c,4),v=C.onStop=void 0}},m;if(jf)if(h=Cn,t?n&&Xo(t,c,3,[u(),p?[]:void 0,h]):u(),s==="sync"){const S=HR();m=S.__watcherHandles||(S.__watcherHandles=[])}else return Cn;let g=p?new Array(e.length).fill(pv):pv;const y=()=>{if(C.active)if(t){const S=C.run();(a||d||(p?S.some(($,E)=>Rc($,g[E])):Rc(S,g)))&&(v&&v(),Xo(t,c,3,[S,g===pv?void 0:p&&g[0]===pv?[]:g,h]),g=S)}else C.run()};y.allowRecurse=!!t;let b;s==="sync"?b=y:s==="post"?b=()=>fo(y,c&&c.suspense):(y.pre=!0,c&&(y.id=c.uid),b=()=>ly(y));const C=new ey(u,b);t?n?y():g=C.run():s==="post"?fo(C.run.bind(C),c&&c.suspense):C.run();const k=()=>{C.stop(),c&&c.scope&&G1(c.scope.effects,C)};return m&&m.push(k),k}function nR(e,t,n){const a=this.proxy,s=ut(e)?e.includes(".")?hx(a,e):()=>a[e]:e.bind(a,a);let o;vt(t)?o=t:(o=t.handler,n=t);const r=Za;Uu(this);const i=uy(s,o.bind(a),n);return r?Uu(r):Sc(),i}function hx(e,t){const n=t.split(".");return()=>{let a=e;for(let s=0;s{vc(n,t)});else if(Df(e))for(const n in e)vc(e[n],t);return e}function et(e,t){const n=ds;if(n===null)return e;const a=Tm(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let o=0;o{e.isMounted=!0}),on(()=>{e.isUnmounting=!0}),e}const Vo=[Function,Array],gx={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Vo,onEnter:Vo,onAfterEnter:Vo,onEnterCancelled:Vo,onBeforeLeave:Vo,onLeave:Vo,onAfterLeave:Vo,onLeaveCancelled:Vo,onBeforeAppear:Vo,onAppear:Vo,onAfterAppear:Vo,onAppearCancelled:Vo},aR={name:"BaseTransition",props:gx,setup(e,{slots:t}){const n=qt(),a=mx();let s;return()=>{const o=t.default&&dy(t.default(),!0);if(!o||!o.length)return;let r=o[0];if(o.length>1){for(const g of o)if(g.type!==ts){r=g;break}}const i=Tn(e),{mode:c}=i;if(a.isLeaving)return F0(r);const u=Bw(r);if(!u)return F0(r);const d=zf(u,i,a,n);Hf(u,d);const p=n.subTree,v=p&&Bw(p);let h=!1;const{getTransitionKey:m}=u.type;if(m){const g=m();s===void 0?s=g:g!==s&&(s=g,h=!0)}if(v&&v.type!==ts&&(!rc(u,v)||h)){const g=zf(v,i,a,n);if(Hf(v,g),c==="out-in")return a.isLeaving=!0,g.afterLeave=()=>{a.isLeaving=!1,n.update.active!==!1&&n.update()},F0(r);c==="in-out"&&u.type!==ts&&(g.delayLeave=(y,b,C)=>{const k=_x(a,v);k[String(v.key)]=v,y[ui]=()=>{b(),y[ui]=void 0,delete d.delayedLeave},d.delayedLeave=C})}return r}}},sR=aR;function _x(e,t){const{leavingVNodes:n}=e;let a=n.get(t.type);return a||(a=Object.create(null),n.set(t.type,a)),a}function zf(e,t,n,a){const{appear:s,mode:o,persisted:r=!1,onBeforeEnter:i,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:v,onAfterLeave:h,onLeaveCancelled:m,onBeforeAppear:g,onAppear:y,onAfterAppear:b,onAppearCancelled:C}=t,k=String(e.key),S=_x(n,e),$=(A,N)=>{A&&Xo(A,a,9,N)},E=(A,N)=>{const P=N[1];$(A,N),Ve(A)?A.every(B=>B.length<=1)&&P():A.length<=1&&P()},R={mode:o,persisted:r,beforeEnter(A){let N=i;if(!n.isMounted)if(s)N=g||i;else return;A[ui]&&A[ui](!0);const P=S[k];P&&rc(e,P)&&P.el[ui]&&P.el[ui](),$(N,[A])},enter(A){let N=c,P=u,B=d;if(!n.isMounted)if(s)N=y||c,P=b||u,B=C||d;else return;let M=!1;const j=A[vv]=F=>{M||(M=!0,F?$(B,[A]):$(P,[A]),R.delayedLeave&&R.delayedLeave(),A[vv]=void 0)};N?E(N,[A,j]):j()},leave(A,N){const P=String(e.key);if(A[vv]&&A[vv](!0),n.isUnmounting)return N();$(p,[A]);let B=!1;const M=A[ui]=j=>{B||(B=!0,N(),j?$(m,[A]):$(h,[A]),A[ui]=void 0,S[P]===e&&delete S[P])};S[P]=e,v?E(v,[A,M]):M()},clone(A){return zf(A,t,n,a)}};return R}function F0(e){if(km(e))return e=Ml(e),e.children=null,e}function Bw(e){return km(e)?e.children?e.children[0]:void 0:e}function Hf(e,t){e.shapeFlag&6&&e.component?Hf(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 dy(e,t=!1,n){let a=[],s=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader,km=e=>e.type.__isKeepAlive;function Sm(e,t){bx(e,"a",t)}function yx(e,t){bx(e,"da",t)}function bx(e,t,n=Za){const a=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Em(t,a,n),n){let s=n.parent;for(;s&&s.parent;)km(s.parent.vnode)&&oR(a,t,n,s),s=s.parent}}function oR(e,t,n,a){const s=Em(t,e,a,!0);al(()=>{G1(a[t],s)},n)}function Em(e,t,n=Za,a=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;vd(),Uu(n);const i=Xo(t,n,e,r);return Sc(),hd(),i});return a?s.unshift(o):s.push(o),o}}const Vl=e=>(t,n=Za)=>(!jf||e==="sp")&&Em(e,(...a)=>t(...a),n),$m=Vl("bm"),ft=Vl("m"),fy=Vl("bu"),$r=Vl("u"),on=Vl("bum"),al=Vl("um"),rR=Vl("sp"),lR=Vl("rtg"),iR=Vl("rtc");function cR(e,t=Za){Em("ec",e,t)}function Re(e,t,n,a){let s;const o=n;if(Ve(e)||ut(e)){s=new Array(e.length);for(let r=0,i=e.length;rt(r,i,void 0,o));else{const r=Object.keys(e);s=new Array(r.length);for(let i=0,c=r.length;i{const o=a.fn(...s);return o&&(o.key=a.key),o}:a.fn)}return e}function be(e,t,n={},a,s){if(ds.isCE||ds.parent&&yf(ds.parent)&&ds.parent.isCE)return t!=="default"&&(n.name=t),z("slot",n,a&&a());let o=e[t];o&&o._c&&(o._d=!1),_();const r=o&&wx(o(n)),i=ue(_e,{key:n.key||r&&r.key||`_${t}`},r||(a?a():[]),r&&e._===1?64:-2);return!s&&i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),o&&o._c&&(o._d=!0),i}function wx(e){return e.some(t=>Un(t)?!(t.type===ts||t.type===_e&&!wx(t.children)):!0)?e:null}function uR(e,t){const n={};for(const a in e)n[_f(a)]=e[a];return n}const Jg=e=>e?Bx(e)?Tm(e)||e.proxy:Jg(e.parent):null,bf=ps(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=>Jg(e.parent),$root:e=>Jg(e.root),$emit:e=>e.emit,$options:e=>Sx(e),$forceUpdate:e=>e.f||(e.f=()=>ly(e.update)),$nextTick:e=>e.n||(e.n=it.bind(e.proxy)),$watch:e=>nR.bind(e)}),U0=(e,t)=>e!==ma&&!e.__isScriptSetup&&ln(e,t),dR={get({_:e},t){const{ctx:n,setupState:a,data:s,props:o,accessCache:r,type:i,appContext:c}=e;let u;if(t[0]!=="$"){const h=r[t];if(h!==void 0)switch(h){case 1:return a[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(U0(a,t))return r[t]=1,a[t];if(s!==ma&&ln(s,t))return r[t]=2,s[t];if((u=e.propsOptions[0])&&ln(u,t))return r[t]=3,o[t];if(n!==ma&&ln(n,t))return r[t]=4,n[t];Zg&&(r[t]=0)}}const d=bf[t];let p,v;if(d)return t==="$attrs"&&yo(e,"get",t),d(e);if((p=i.__cssModules)&&(p=p[t]))return p;if(n!==ma&&ln(n,t))return r[t]=4,n[t];if(v=c.config.globalProperties,ln(v,t))return v[t]},set({_:e},t,n){const{data:a,setupState:s,ctx:o}=e;return U0(s,t)?(s[t]=n,!0):a!==ma&&ln(a,t)?(a[t]=n,!0):ln(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:a,appContext:s,propsOptions:o}},r){let i;return!!n[r]||e!==ma&&ln(e,r)||U0(t,r)||(i=o[0])&&ln(i,r)||ln(a,r)||ln(bf,r)||ln(s.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ln(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ta(){return Cx().slots}function Fl(){return Cx().attrs}function Cx(){const e=qt();return e.setupContext||(e.setupContext=Ox(e))}function Lw(e){return Ve(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Zg=!0;function fR(e){const t=Sx(e),n=e.proxy,a=e.ctx;Zg=!1,t.beforeCreate&&Ow(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:r,watch:i,provide:c,inject:u,created:d,beforeMount:p,mounted:v,beforeUpdate:h,updated:m,activated:g,deactivated:y,beforeDestroy:b,beforeUnmount:C,destroyed:k,unmounted:S,render:$,renderTracked:E,renderTriggered:R,errorCaptured:A,serverPrefetch:N,expose:P,inheritAttrs:B,components:M,directives:j,filters:F}=t;if(u&&pR(u,a,null),r)for(const U in r){const O=r[U];vt(O)&&(a[U]=O.bind(n))}if(s){const U=s.call(n,n);Ot(U)&&(e.data=At(U))}if(Zg=!0,o)for(const U in o){const O=o[U],G=vt(O)?O.bind(n,n):vt(O.get)?O.get.bind(n,n):Cn,ae=!vt(O)&&vt(O.set)?O.set.bind(n):Cn,Z=x({get:G,set:ae});Object.defineProperty(a,U,{enumerable:!0,configurable:!0,get:()=>Z.value,set:te=>Z.value=te})}if(i)for(const U in i)kx(i[U],a,n,U);if(c){const U=vt(c)?c.call(n):c;Reflect.ownKeys(U).forEach(O=>{Gt(O,U[O])})}d&&Ow(d,e,"c");function L(U,O){Ve(O)?O.forEach(G=>U(G.bind(n))):O&&U(O.bind(n))}if(L($m,p),L(ft,v),L(fy,h),L($r,m),L(Sm,g),L(yx,y),L(cR,A),L(iR,E),L(lR,R),L(on,C),L(al,S),L(rR,N),Ve(P))if(P.length){const U=e.exposed||(e.exposed={});P.forEach(O=>{Object.defineProperty(U,O,{get:()=>n[O],set:G=>n[O]=G})})}else e.exposed||(e.exposed={});$&&e.render===Cn&&(e.render=$),B!=null&&(e.inheritAttrs=B),M&&(e.components=M),j&&(e.directives=j)}function pR(e,t,n=Cn){Ve(e)&&(e=e_(e));for(const a in e){const s=e[a];let o;Ot(s)?"default"in s?o=Ze(s.from||a,s.default,!0):o=Ze(s.from||a):o=Ze(s),$n(o)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[a]=o}}function Ow(e,t,n){Xo(Ve(e)?e.map(a=>a.bind(t.proxy)):e.bind(t.proxy),t,n)}function kx(e,t,n,a){const s=a.includes(".")?hx(n,a):()=>n[a];if(ut(e)){const o=t[e];vt(o)&&Te(s,o)}else if(vt(e))Te(s,e.bind(n));else if(Ot(e))if(Ve(e))e.forEach(o=>kx(o,t,n,a));else{const o=vt(e.handler)?e.handler.bind(n):t[e.handler];vt(o)&&Te(s,o,e)}}function Sx(e){const t=e.type,{mixins:n,extends:a}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,i=o.get(t);let c;return i?c=i:!s.length&&!n&&!a?c=t:(c={},s.length&&s.forEach(u=>xh(c,u,r,!0)),xh(c,t,r)),Ot(t)&&o.set(t,c),c}function xh(e,t,n,a=!1){const{mixins:s,extends:o}=t;o&&xh(e,o,n,!0),s&&s.forEach(r=>xh(e,r,n,!0));for(const r in t)if(!(a&&r==="expose")){const i=vR[r]||n&&n[r];e[r]=i?i(e[r],t[r]):t[r]}return e}const vR={data:Dw,props:Vw,emits:Vw,methods:lf,computed:lf,beforeCreate:Ys,created:Ys,beforeMount:Ys,mounted:Ys,beforeUpdate:Ys,updated:Ys,beforeDestroy:Ys,beforeUnmount:Ys,destroyed:Ys,unmounted:Ys,activated:Ys,deactivated:Ys,errorCaptured:Ys,serverPrefetch:Ys,components:lf,directives:lf,watch:mR,provide:Dw,inject:hR};function Dw(e,t){return t?e?function(){return ps(vt(e)?e.call(this,this):e,vt(t)?t.call(this,this):t)}:t:e}function hR(e,t){return lf(e_(e),e_(t))}function e_(e){if(Ve(e)){const t={};for(let n=0;n1)return n&&vt(t)?t.call(a&&a.proxy):t}}function yR(){return!!(Za||ds||Kf)}function bR(e,t,n,a=!1){const s={},o={};Ch(o,xm,1),e.propsDefaults=Object.create(null),$x(e,t,s,o);for(const r in e.propsOptions[0])r in s||(s[r]=void 0);n?e.props=a?s:_m(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function wR(e,t,n,a){const{props:s,attrs:o,vnode:{patchFlag:r}}=e,i=Tn(s),[c]=e.propsOptions;let u=!1;if((a||r>0)&&!(r&16)){if(r&8){const d=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[v,h]=xx(p,t,!0);ps(r,v),h&&i.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!c)return Ot(e)&&a.set(e,Tu),Tu;if(Ve(o))for(let d=0;d-1,h[1]=g<0||m-1||ln(h,"default"))&&i.push(p)}}}const u=[r,i];return Ot(e)&&a.set(e,u),u}function Fw(e){return e[0]!=="$"}function Uw(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function zw(e,t){return Uw(e)===Uw(t)}function Hw(e,t){return Ve(t)?t.findIndex(n=>zw(n,e)):vt(t)&&zw(t,e)?0:-1}const Tx=e=>e[0]==="_"||e==="$stable",py=e=>Ve(e)?e.map(Or):[Or(e)],CR=(e,t,n)=>{if(t._n)return t;const a=W((...s)=>py(t(...s)),n);return a._c=!1,a},Ix=(e,t,n)=>{const a=e._ctx;for(const s in e){if(Tx(s))continue;const o=e[s];if(vt(o))t[s]=CR(s,o,a);else if(o!=null){const r=py(o);t[s]=()=>r}}},Ax=(e,t)=>{const n=py(t);e.slots.default=()=>n},kR=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Tn(t),Ch(t,"_",n)):Ix(t,e.slots={})}else e.slots={},t&&Ax(e,t);Ch(e.slots,xm,1)},SR=(e,t,n)=>{const{vnode:a,slots:s}=e;let o=!0,r=ma;if(a.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:(ps(s,t),!n&&i===1&&delete s._):(o=!t.$stable,Ix(t,s)),r=t}else t&&(Ax(e,t),r={default:1});if(o)for(const i in s)!Tx(i)&&r[i]==null&&delete s[i]};function n_(e,t,n,a,s=!1){if(Ve(e)){e.forEach((v,h)=>n_(v,t&&(Ve(t)?t[h]:t),n,a,s));return}if(yf(a)&&!s)return;const o=a.shapeFlag&4?Tm(a.component)||a.component.proxy:a.el,r=s?null:o,{i,r:c}=e,u=t&&t.r,d=i.refs===ma?i.refs={}:i.refs,p=i.setupState;if(u!=null&&u!==c&&(ut(u)?(d[u]=null,ln(p,u)&&(p[u]=null)):$n(u)&&(u.value=null)),vt(c))Ei(c,i,12,[r,d]);else{const v=ut(c),h=$n(c);if(v||h){const m=()=>{if(e.f){const g=v?ln(p,c)?p[c]:d[c]:c.value;s?Ve(g)&&G1(g,o):Ve(g)?g.includes(o)||g.push(o):v?(d[c]=[o],ln(p,c)&&(p[c]=d[c])):(c.value=[o],e.k&&(d[e.k]=c.value))}else v?(d[c]=r,ln(p,c)&&(p[c]=r)):h&&(c.value=r,e.k&&(d[e.k]=r))};r?(m.id=-1,fo(m,n)):m()}}}const fo=tR;function ER(e){return $R(e)}function $R(e,t){const n=Wg();n.__VUE__=!0;const{insert:a,remove:s,patchProp:o,createElement:r,createText:i,createComment:c,setText:u,setElementText:d,parentNode:p,nextSibling:v,setScopeId:h=Cn,insertStaticContent:m}=e,g=(D,Y,ne,re=null,se=null,ke=null,ye=!1,Se=null,ce=!!Y.dynamicChildren)=>{if(D===Y)return;D&&!rc(D,Y)&&(re=Q(D),te(D,se,ke,!0),D=null),Y.patchFlag===-2&&(ce=!1,Y.dynamicChildren=null);const{type:we,ref:Ae,shapeFlag:Fe}=Y;switch(we){case _d:y(D,Y,ne,re);break;case ts:b(D,Y,ne,re);break;case Qv:D==null&&C(Y,ne,re,ye);break;case _e:M(D,Y,ne,re,se,ke,ye,Se,ce);break;default:Fe&1?$(D,Y,ne,re,se,ke,ye,Se,ce):Fe&6?j(D,Y,ne,re,se,ke,ye,Se,ce):(Fe&64||Fe&128)&&we.process(D,Y,ne,re,se,ke,ye,Se,ce,X)}Ae!=null&&se&&n_(Ae,D&&D.ref,ke,Y||D,!Y)},y=(D,Y,ne,re)=>{if(D==null)a(Y.el=i(Y.children),ne,re);else{const se=Y.el=D.el;Y.children!==D.children&&u(se,Y.children)}},b=(D,Y,ne,re)=>{D==null?a(Y.el=c(Y.children||""),ne,re):Y.el=D.el},C=(D,Y,ne,re)=>{[D.el,D.anchor]=m(D.children,Y,ne,re,D.el,D.anchor)},k=({el:D,anchor:Y},ne,re)=>{let se;for(;D&&D!==Y;)se=v(D),a(D,ne,re),D=se;a(Y,ne,re)},S=({el:D,anchor:Y})=>{let ne;for(;D&&D!==Y;)ne=v(D),s(D),D=ne;s(Y)},$=(D,Y,ne,re,se,ke,ye,Se,ce)=>{ye=ye||Y.type==="svg",D==null?E(Y,ne,re,se,ke,ye,Se,ce):N(D,Y,se,ke,ye,Se,ce)},E=(D,Y,ne,re,se,ke,ye,Se)=>{let ce,we;const{type:Ae,props:Fe,shapeFlag:xe,transition:me,dirs:Me}=D;if(ce=D.el=r(D.type,ke,Fe&&Fe.is,Fe),xe&8?d(ce,D.children):xe&16&&A(D.children,ce,null,re,se,ke&&Ae!=="foreignObject",ye,Se),Me&&Gi(D,null,re,"created"),R(ce,D,D.scopeId,ye,re),Fe){for(const Qe in Fe)Qe!=="value"&&!Gv(Qe)&&o(ce,Qe,null,Fe[Qe],ke,D.children,re,se,ee);"value"in Fe&&o(ce,"value",null,Fe.value),(we=Fe.onVnodeBeforeMount)&&Pr(we,re,D)}Me&&Gi(D,null,re,"beforeMount");const at=xR(se,me);at&&me.beforeEnter(ce),a(ce,Y,ne),((we=Fe&&Fe.onVnodeMounted)||at||Me)&&fo(()=>{we&&Pr(we,re,D),at&&me.enter(ce),Me&&Gi(D,null,re,"mounted")},se)},R=(D,Y,ne,re,se)=>{if(ne&&h(D,ne),re)for(let ke=0;ke{for(let we=ce;we{const Se=Y.el=D.el;let{patchFlag:ce,dynamicChildren:we,dirs:Ae}=Y;ce|=D.patchFlag&16;const Fe=D.props||ma,xe=Y.props||ma;let me;ne&&Yi(ne,!1),(me=xe.onVnodeBeforeUpdate)&&Pr(me,ne,Y,D),Ae&&Gi(Y,D,ne,"beforeUpdate"),ne&&Yi(ne,!0);const Me=se&&Y.type!=="foreignObject";if(we?P(D.dynamicChildren,we,Se,ne,re,Me,ke):ye||O(D,Y,Se,null,ne,re,Me,ke,!1),ce>0){if(ce&16)B(Se,Y,Fe,xe,ne,re,se);else if(ce&2&&Fe.class!==xe.class&&o(Se,"class",null,xe.class,se),ce&4&&o(Se,"style",Fe.style,xe.style,se),ce&8){const at=Y.dynamicProps;for(let Qe=0;Qe{me&&Pr(me,ne,Y,D),Ae&&Gi(Y,D,ne,"updated")},re)},P=(D,Y,ne,re,se,ke,ye)=>{for(let Se=0;Se{if(ne!==re){if(ne!==ma)for(const Se in ne)!Gv(Se)&&!(Se in re)&&o(D,Se,ne[Se],null,ye,Y.children,se,ke,ee);for(const Se in re){if(Gv(Se))continue;const ce=re[Se],we=ne[Se];ce!==we&&Se!=="value"&&o(D,Se,we,ce,ye,Y.children,se,ke,ee)}"value"in re&&o(D,"value",ne.value,re.value)}},M=(D,Y,ne,re,se,ke,ye,Se,ce)=>{const we=Y.el=D?D.el:i(""),Ae=Y.anchor=D?D.anchor:i("");let{patchFlag:Fe,dynamicChildren:xe,slotScopeIds:me}=Y;me&&(Se=Se?Se.concat(me):me),D==null?(a(we,ne,re),a(Ae,ne,re),A(Y.children,ne,Ae,se,ke,ye,Se,ce)):Fe>0&&Fe&64&&xe&&D.dynamicChildren?(P(D.dynamicChildren,xe,ne,se,ke,ye,Se),(Y.key!=null||se&&Y===se.subTree)&&vy(D,Y,!0)):O(D,Y,ne,Ae,se,ke,ye,Se,ce)},j=(D,Y,ne,re,se,ke,ye,Se,ce)=>{Y.slotScopeIds=Se,D==null?Y.shapeFlag&512?se.ctx.activate(Y,ne,re,ye,ce):F(Y,ne,re,se,ke,ye,ce):q(D,Y,ce)},F=(D,Y,ne,re,se,ke,ye)=>{const Se=D.component=LR(D,re,se);if(km(D)&&(Se.ctx.renderer=X),OR(Se),Se.asyncDep){if(se&&se.registerDep(Se,L),!D.el){const ce=Se.subTree=z(ts);b(null,ce,Y,ne)}return}L(Se,D,Y,ne,se,ke,ye)},q=(D,Y,ne)=>{const re=Y.component=D.component;if(QN(D,Y,ne))if(re.asyncDep&&!re.asyncResolved){U(re,Y,ne);return}else re.next=Y,qN(re.update),re.update();else Y.el=D.el,re.vnode=Y},L=(D,Y,ne,re,se,ke,ye)=>{const Se=()=>{if(D.isMounted){let{next:Ae,bu:Fe,u:xe,parent:me,vnode:Me}=D,at=Ae,Qe;Yi(D,!1),Ae?(Ae.el=Me.el,U(D,Ae,ye)):Ae=Me,Fe&&Yv(Fe),(Qe=Ae.props&&Ae.props.onVnodeBeforeUpdate)&&Pr(Qe,me,Ae,Me),Yi(D,!0);const It=Rw(D),je=D.subTree;D.subTree=It,g(je,It,p(je.el),Q(je),D,se,ke),Ae.el=It.el,at===null&&JN(D,It.el),xe&&fo(xe,se),(Qe=Ae.props&&Ae.props.onVnodeUpdated)&&fo(()=>Pr(Qe,me,Ae,Me),se)}else{let Ae;const{el:Fe,props:xe}=Y,{bm:me,m:Me,parent:at}=D,Qe=yf(Y);Yi(D,!1),me&&Yv(me),!Qe&&(Ae=xe&&xe.onVnodeBeforeMount)&&Pr(Ae,at,Y),Yi(D,!0);{const It=D.subTree=Rw(D);g(null,It,ne,re,D,se,ke),Y.el=It.el}if(Me&&fo(Me,se),!Qe&&(Ae=xe&&xe.onVnodeMounted)){const It=Y;fo(()=>Pr(Ae,at,It),se)}(Y.shapeFlag&256||at&&yf(at.vnode)&&at.vnode.shapeFlag&256)&&D.a&&fo(D.a,se),D.isMounted=!0,Y=ne=re=null}},ce=D.effect=new ey(Se,()=>ly(we),D.scope),we=D.update=()=>ce.run();we.id=D.uid,Yi(D,!0),we()},U=(D,Y,ne)=>{Y.component=D;const re=D.vnode.props;D.vnode=Y,D.next=null,wR(D,Y.props,re,ne),SR(D,Y.children,ne),vd(),Nw(D),hd()},O=(D,Y,ne,re,se,ke,ye,Se,ce=!1)=>{const we=D&&D.children,Ae=D?D.shapeFlag:0,Fe=Y.children,{patchFlag:xe,shapeFlag:me}=Y;if(xe>0){if(xe&128){ae(we,Fe,ne,re,se,ke,ye,Se,ce);return}else if(xe&256){G(we,Fe,ne,re,se,ke,ye,Se,ce);return}}me&8?(Ae&16&&ee(we,se,ke),Fe!==we&&d(ne,Fe)):Ae&16?me&16?ae(we,Fe,ne,re,se,ke,ye,Se,ce):ee(we,se,ke,!0):(Ae&8&&d(ne,""),me&16&&A(Fe,ne,re,se,ke,ye,Se,ce))},G=(D,Y,ne,re,se,ke,ye,Se,ce)=>{D=D||Tu,Y=Y||Tu;const we=D.length,Ae=Y.length,Fe=Math.min(we,Ae);let xe;for(xe=0;xeAe?ee(D,se,ke,!0,!1,Fe):A(Y,ne,re,se,ke,ye,Se,ce,Fe)},ae=(D,Y,ne,re,se,ke,ye,Se,ce)=>{let we=0;const Ae=Y.length;let Fe=D.length-1,xe=Ae-1;for(;we<=Fe&&we<=xe;){const me=D[we],Me=Y[we]=ce?di(Y[we]):Or(Y[we]);if(rc(me,Me))g(me,Me,ne,null,se,ke,ye,Se,ce);else break;we++}for(;we<=Fe&&we<=xe;){const me=D[Fe],Me=Y[xe]=ce?di(Y[xe]):Or(Y[xe]);if(rc(me,Me))g(me,Me,ne,null,se,ke,ye,Se,ce);else break;Fe--,xe--}if(we>Fe){if(we<=xe){const me=xe+1,Me=mexe)for(;we<=Fe;)te(D[we],se,ke,!0),we++;else{const me=we,Me=we,at=new Map;for(we=Me;we<=xe;we++){const Ee=Y[we]=ce?di(Y[we]):Or(Y[we]);Ee.key!=null&&at.set(Ee.key,we)}let Qe,It=0;const je=xe-Me+1;let Vt=!1,kt=0;const Mt=new Array(je);for(we=0;we=je){te(Ee,se,ke,!0);continue}let We;if(Ee.key!=null)We=at.get(Ee.key);else for(Qe=Me;Qe<=xe;Qe++)if(Mt[Qe-Me]===0&&rc(Ee,Y[Qe])){We=Qe;break}We===void 0?te(Ee,se,ke,!0):(Mt[We-Me]=we+1,We>=kt?kt=We:Vt=!0,g(Ee,Y[We],ne,null,se,ke,ye,Se,ce),It++)}const Ht=Vt?TR(Mt):Tu;for(Qe=Ht.length-1,we=je-1;we>=0;we--){const Ee=Me+we,We=Y[Ee],pe=Ee+1{const{el:ke,type:ye,transition:Se,children:ce,shapeFlag:we}=D;if(we&6){Z(D.component.subTree,Y,ne,re);return}if(we&128){D.suspense.move(Y,ne,re);return}if(we&64){ye.move(D,Y,ne,X);return}if(ye===_e){a(ke,Y,ne);for(let Fe=0;FeSe.enter(ke),se);else{const{leave:Fe,delayLeave:xe,afterLeave:me}=Se,Me=()=>a(ke,Y,ne),at=()=>{Fe(ke,()=>{Me(),me&&me()})};xe?xe(ke,Me,at):at()}else a(ke,Y,ne)},te=(D,Y,ne,re=!1,se=!1)=>{const{type:ke,props:ye,ref:Se,children:ce,dynamicChildren:we,shapeFlag:Ae,patchFlag:Fe,dirs:xe}=D;if(Se!=null&&n_(Se,null,ne,D,!0),Ae&256){Y.ctx.deactivate(D);return}const me=Ae&1&&xe,Me=!yf(D);let at;if(Me&&(at=ye&&ye.onVnodeBeforeUnmount)&&Pr(at,Y,D),Ae&6)J(D.component,ne,re);else{if(Ae&128){D.suspense.unmount(ne,re);return}me&&Gi(D,null,Y,"beforeUnmount"),Ae&64?D.type.remove(D,Y,ne,se,X,re):we&&(ke!==_e||Fe>0&&Fe&64)?ee(we,Y,ne,!1,!0):(ke===_e&&Fe&384||!se&&Ae&16)&&ee(ce,Y,ne),re&&ie(D)}(Me&&(at=ye&&ye.onVnodeUnmounted)||me)&&fo(()=>{at&&Pr(at,Y,D),me&&Gi(D,null,Y,"unmounted")},ne)},ie=D=>{const{type:Y,el:ne,anchor:re,transition:se}=D;if(Y===_e){oe(ne,re);return}if(Y===Qv){S(D);return}const ke=()=>{s(ne),se&&!se.persisted&&se.afterLeave&&se.afterLeave()};if(D.shapeFlag&1&&se&&!se.persisted){const{leave:ye,delayLeave:Se}=se,ce=()=>ye(ne,ke);Se?Se(D.el,ke,ce):ce()}else ke()},oe=(D,Y)=>{let ne;for(;D!==Y;)ne=v(D),s(D),D=ne;s(Y)},J=(D,Y,ne)=>{const{bum:re,scope:se,update:ke,subTree:ye,um:Se}=D;re&&Yv(re),se.stop(),ke&&(ke.active=!1,te(ye,D,Y,ne)),Se&&fo(Se,Y),fo(()=>{D.isUnmounted=!0},Y),Y&&Y.pendingBranch&&!Y.isUnmounted&&D.asyncDep&&!D.asyncResolved&&D.suspenseId===Y.pendingId&&(Y.deps--,Y.deps===0&&Y.resolve())},ee=(D,Y,ne,re=!1,se=!1,ke=0)=>{for(let ye=ke;yeD.shapeFlag&6?Q(D.component.subTree):D.shapeFlag&128?D.suspense.next():v(D.anchor||D.el),H=(D,Y,ne)=>{D==null?Y._vnode&&te(Y._vnode,null,null,!0):g(Y._vnode||null,D,Y,null,null,null,ne),Nw(),dx(),Y._vnode=D},X={p:g,um:te,m:Z,r:ie,mt:F,mc:A,pc:O,pbc:P,n:Q,o:e};return{render:H,hydrate:void 0,createApp:_R(H)}}function Yi({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function xR(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function vy(e,t,n=!1){const a=e.children,s=t.children;if(Ve(a)&&Ve(s))for(let o=0;o>1,e[n[i]]0&&(t[a]=n[o-1]),n[o]=a)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}const IR=e=>e.__isTeleport,wf=e=>e&&(e.disabled||e.disabled===""),Kw=e=>typeof SVGElement<"u"&&e instanceof SVGElement,a_=(e,t)=>{const n=e&&e.to;return ut(n)?t?t(n):null:n},AR={name:"Teleport",__isTeleport:!0,process(e,t,n,a,s,o,r,i,c,u){const{mc:d,pc:p,pbc:v,o:{insert:h,querySelector:m,createText:g,createComment:y}}=u,b=wf(t.props);let{shapeFlag:C,children:k,dynamicChildren:S}=t;if(e==null){const $=t.el=g(""),E=t.anchor=g("");h($,n,a),h(E,n,a);const R=t.target=a_(t.props,m),A=t.targetAnchor=g("");R&&(h(A,R),r=r||Kw(R));const N=(P,B)=>{C&16&&d(k,P,B,s,o,r,i,c)};b?N(n,E):R&&N(R,A)}else{t.el=e.el;const $=t.anchor=e.anchor,E=t.target=e.target,R=t.targetAnchor=e.targetAnchor,A=wf(e.props),N=A?n:E,P=A?$:R;if(r=r||Kw(E),S?(v(e.dynamicChildren,S,N,s,o,r,i),vy(e,t,!0)):c||p(e,t,N,P,s,o,r,i,!1),b)A?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):hv(t,n,$,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=a_(t.props,m);B&&hv(t,B,null,u,0)}else A&&hv(t,E,R,u,1)}Rx(t)},remove(e,t,n,a,{um:s,o:{remove:o}},r){const{shapeFlag:i,children:c,anchor:u,targetAnchor:d,target:p,props:v}=e;if(p&&o(d),r&&o(u),i&16){const h=r||!wf(v);for(let m=0;m0?gr||Tu:null,RR(),qf>0&&gr&&gr.push(e),e}function w(e,t,n,a,s,o){return Px(l(e,t,n,a,s,o,!0))}function ue(e,t,n,a,s){return Px(z(e,t,n,a,s,!0))}function Un(e){return e?e.__v_isVNode===!0:!1}function rc(e,t){return e.type===t.type&&e.key===t.key}const xm="__vInternal",Mx=({key:e})=>e??null,Jv=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ut(e)||$n(e)||vt(e)?{i:ds,r:e,k:t,f:!!n}:e:null);function l(e,t=null,n=null,a=0,s=null,o=e===_e?0:1,r=!1,i=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Mx(t),ref:t&&Jv(t),scopeId:Cm,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:a,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ds};return i?(hy(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=ut(n)?8:16),qf>0&&!r&&gr&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&gr.push(c),c}const z=PR;function PR(e,t=null,n=null,a=0,s=null,o=!1){if((!e||e===vx)&&(e=ts),Un(e)){const i=Ml(e,t,!0);return n&&hy(i,n),qf>0&&!o&&gr&&(i.shapeFlag&6?gr[gr.indexOf(e)]=i:gr.push(i)),i.patchFlag|=-2,i}if(UR(e)&&(e=e.__vccOpts),t){t=Jr(t);let{class:i,style:c}=t;i&&!ut(i)&&(t.class=V(i)),Ot(c)&&(ox(c)&&!Ve(c)&&(c=ps({},c)),t.style=Je(c))}const r=ut(e)?1:eR(e)?128:IR(e)?64:Ot(e)?4:vt(e)?2:0;return l(e,t,n,a,s,r,o,!0)}function Jr(e){return e?ox(e)||xm in e?ps({},e):e:null}function Ml(e,t,n=!1){const{props:a,ref:s,patchFlag:o,children:r}=e,i=t?Kt(a||{},t):a;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:i,key:i&&Mx(i),ref:t&&t.ref?n&&s?Ve(s)?s.concat(Jv(t)):[s,Jv(t)]:Jv(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_e?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ml(e.ssContent),ssFallback:e.ssFallback&&Ml(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ce(e=" ",t=0){return z(_d,null,e,t)}function mn(e,t){const n=z(Qv,null,e);return n.staticCount=t,n}function K(e="",t=!1){return t?(_(),ue(ts,null,e)):z(ts,null,e)}function Or(e){return e==null||typeof e=="boolean"?z(ts):Ve(e)?z(_e,null,e.slice()):typeof e=="object"?di(e):z(_d,null,String(e))}function di(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ml(e)}function hy(e,t){let n=0;const{shapeFlag:a}=e;if(t==null)t=null;else if(Ve(t))n=16;else if(typeof t=="object")if(a&65){const s=t.default;s&&(s._c&&(s._d=!1),hy(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(xm in t)?t._ctx=ds:s===3&&ds&&(ds.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else vt(t)?(t={default:t,_ctx:ds},n=32):(t=String(t),a&64?(n=16,t=[Ce(t)]):n=8);e.children=t,e.shapeFlag|=n}function Kt(...e){const t={};for(let n=0;nZa||ds;let my,au,jw="__VUE_INSTANCE_SETTERS__";(au=Wg()[jw])||(au=Wg()[jw]=[]),au.push(e=>Za=e),my=e=>{au.length>1?au.forEach(t=>t(e)):au[0](e)};const Uu=e=>{my(e),e.scope.on()},Sc=()=>{Za&&Za.scope.off(),my(null)};function Bx(e){return e.vnode.shapeFlag&4}let jf=!1;function OR(e,t=!1){jf=t;const{props:n,children:a}=e.vnode,s=Bx(e);bR(e,n,s,t),kR(e,a);const o=s?DR(e,t):void 0;return jf=!1,o}function DR(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Yo(new Proxy(e.ctx,dR));const{setup:a}=n;if(a){const s=e.setupContext=a.length>1?Ox(e):null;Uu(e),vd();const o=Ei(a,e,0,[e.props,s]);if(hd(),Sc(),Nc(o)){if(o.then(Sc,Sc),t)return o.then(r=>{Ww(e,r)}).catch(r=>{bm(r,e,0)});e.asyncDep=o}else Ww(e,o)}else Lx(e)}function Ww(e,t,n){vt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ot(t)&&(e.setupState=lx(t)),Lx(e)}function Lx(e,t,n){const a=e.type;e.render||(e.render=a.render||Cn);{Uu(e),vd();try{fR(e)}finally{hd(),Sc()}}}function VR(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return yo(e,"get","$attrs"),t[n]}}))}function Ox(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return VR(e)},slots:e.slots,emit:e.emit,expose:t}}function Tm(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(lx(Yo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bf)return bf[n](e)},has(t,n){return n in t||n in bf}}))}function FR(e,t=!0){return vt(e)?e.displayName||e.name:e.name||t&&e.__name}function UR(e){return vt(e)&&"__vccOpts"in e}const x=(e,t)=>UN(e,t,jf);function yt(e,t,n){const a=arguments.length;return a===2?Ot(t)&&!Ve(t)?Un(t)?z(e,null,[t]):z(e,t):z(e,null,t):(a>3?n=Array.prototype.slice.call(arguments,2):a===3&&Un(n)&&(n=[n]),z(e,t,n))}const zR=Symbol.for("v-scx"),HR=()=>Ze(zR),KR="3.3.13",qR="http://www.w3.org/2000/svg",lc=typeof document<"u"?document:null,Gw=lc&&lc.createElement("template"),jR={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const s=t?lc.createElementNS(qR,e):lc.createElement(e,n?{is:n}:void 0);return e==="select"&&a&&a.multiple!=null&&s.setAttribute("multiple",a.multiple),s},createText:e=>lc.createTextNode(e),createComment:e=>lc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>lc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,s,o){const r=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Gw.innerHTML=a?`${e}`:e;const i=Gw.content;if(a){const c=i.firstChild;for(;c.firstChild;)i.appendChild(c.firstChild);i.removeChild(c)}t.insertBefore(i,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Zl="transition",Kd="animation",zu=Symbol("_vtc"),aa=(e,{slots:t})=>yt(sR,Vx(e),t);aa.displayName="Transition";const Dx={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},WR=aa.props=ps({},gx,Dx),Xi=(e,t=[])=>{Ve(e)?e.forEach(n=>n(...t)):e&&e(...t)},Yw=e=>e?Ve(e)?e.some(t=>t.length>1):e.length>1:!1;function Vx(e){const t={};for(const M in e)M in Dx||(t[M]=e[M]);if(e.css===!1)return t;const{name:n="v",type:a,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:u=r,appearToClass:d=i,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=GR(s),g=m&&m[0],y=m&&m[1],{onBeforeEnter:b,onEnter:C,onEnterCancelled:k,onLeave:S,onLeaveCancelled:$,onBeforeAppear:E=b,onAppear:R=C,onAppearCancelled:A=k}=t,N=(M,j,F)=>{ri(M,j?d:i),ri(M,j?u:r),F&&F()},P=(M,j)=>{M._isLeaving=!1,ri(M,p),ri(M,h),ri(M,v),j&&j()},B=M=>(j,F)=>{const q=M?R:C,L=()=>N(j,M,F);Xi(q,[j,L]),Xw(()=>{ri(j,M?c:o),_l(j,M?d:i),Yw(q)||Qw(j,a,g,L)})};return ps(t,{onBeforeEnter(M){Xi(b,[M]),_l(M,o),_l(M,r)},onBeforeAppear(M){Xi(E,[M]),_l(M,c),_l(M,u)},onEnter:B(!1),onAppear:B(!0),onLeave(M,j){M._isLeaving=!0;const F=()=>P(M,j);_l(M,p),Ux(),_l(M,v),Xw(()=>{M._isLeaving&&(ri(M,p),_l(M,h),Yw(S)||Qw(M,a,y,F))}),Xi(S,[M,F])},onEnterCancelled(M){N(M,!1),Xi(k,[M])},onAppearCancelled(M){N(M,!0),Xi(A,[M])},onLeaveCancelled(M){P(M),Xi($,[M])}})}function GR(e){if(e==null)return null;if(Ot(e))return[z0(e.enter),z0(e.leave)];{const t=z0(e);return[t,t]}}function z0(e){return sN(e)}function _l(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[zu]||(e[zu]=new Set)).add(t)}function ri(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const n=e[zu];n&&(n.delete(t),n.size||(e[zu]=void 0))}function Xw(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let YR=0;function Qw(e,t,n,a){const s=e._endId=++YR,o=()=>{s===e._endId&&a()};if(n)return setTimeout(o,n);const{type:r,timeout:i,propCount:c}=Fx(e,t);if(!r)return a();const u=r+"end";let d=0;const p=()=>{e.removeEventListener(u,v),o()},v=h=>{h.target===e&&++d>=c&&p()};setTimeout(()=>{d(n[m]||"").split(", "),s=a(`${Zl}Delay`),o=a(`${Zl}Duration`),r=Jw(s,o),i=a(`${Kd}Delay`),c=a(`${Kd}Duration`),u=Jw(i,c);let d=null,p=0,v=0;t===Zl?r>0&&(d=Zl,p=r,v=o.length):t===Kd?u>0&&(d=Kd,p=u,v=c.length):(p=Math.max(r,u),d=p>0?r>u?Zl:Kd:null,v=d?d===Zl?o.length:c.length:0);const h=d===Zl&&/\b(transform|all)(,|$)/.test(a(`${Zl}Property`).toString());return{type:d,timeout:p,propCount:v,hasTransform:h}}function Jw(e,t){for(;e.lengthZw(n)+Zw(e[a])))}function Zw(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ux(){return document.body.offsetHeight}function XR(e,t,n){const a=e[zu];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const gy=Symbol("_vod"),fn={beforeMount(e,{value:t},{transition:n}){e[gy]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):qd(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:a}){!t!=!n&&(a?t?(a.beforeEnter(e),qd(e,!0),a.enter(e)):a.leave(e,()=>{qd(e,!1)}):qd(e,t))},beforeUnmount(e,{value:t}){qd(e,t)}};function qd(e,t){e.style.display=t?e[gy]:"none"}const QR=Symbol("");function JR(e,t,n){const a=e.style,s=ut(n);if(n&&!s){if(t&&!ut(t))for(const o in t)n[o]==null&&s_(a,o,"");for(const o in n)s_(a,o,n[o])}else{const o=a.display;if(s){if(t!==n){const r=a[QR];r&&(n+=";"+r),a.cssText=n}}else t&&e.removeAttribute("style");gy in e&&(a.display=o)}}const eC=/\s*!important$/;function s_(e,t,n){if(Ve(n))n.forEach(a=>s_(e,t,a));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const a=ZR(e,t);eC.test(n)?e.setProperty(qi(a),n.replace(eC,""),"important"):e[a]=n}}const tC=["Webkit","Moz","ms"],H0={};function ZR(e,t){const n=H0[t];if(n)return n;let a=Po(t);if(a!=="filter"&&a in e)return H0[t]=a;a=Cp(a);for(let s=0;sK0||(oP.then(()=>K0=0),K0=Date.now());function lP(e,t){const n=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=n.attached)return;Xo(iP(a,n.value),t,5,[a])};return n.value=e,n.attached=rP(),n}function iP(e,t){if(Ve(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(a=>s=>!s._stopped&&a&&a(s))}else return t}const oC=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,cP=(e,t,n,a,s=!1,o,r,i,c)=>{t==="class"?XR(e,a,s):t==="style"?JR(e,n,a):hm(t)?W1(t)||aP(e,t,n,a,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):uP(e,t,a,s))?tP(e,t,a,o,r,i,c):(t==="true-value"?e._trueValue=a:t==="false-value"&&(e._falseValue=a),eP(e,t,a,s))};function uP(e,t,n,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in e&&oC(t)&&vt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return oC(t)&&ut(n)?!1:t in e}const zx=new WeakMap,Hx=new WeakMap,Th=Symbol("_moveCb"),rC=Symbol("_enterCb"),Kx={name:"TransitionGroup",props:ps({},WR,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=qt(),a=mx();let s,o;return $r(()=>{if(!s.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!hP(s[0].el,n.vnode.el,r))return;s.forEach(fP),s.forEach(pP);const i=s.filter(vP);Ux(),i.forEach(c=>{const u=c.el,d=u.style;_l(u,r),d.transform=d.webkitTransform=d.transitionDuration="";const p=u[Th]=v=>{v&&v.target!==u||(!v||/transform$/.test(v.propertyName))&&(u.removeEventListener("transitionend",p),u[Th]=null,ri(u,r))};u.addEventListener("transitionend",p)})}),()=>{const r=Tn(e),i=Vx(r);let c=r.tag||_e;s=o,o=t.default?dy(t.default()):[];for(let u=0;udelete e.mode;Kx.props;const qx=Kx;function fP(e){const t=e.el;t[Th]&&t[Th](),t[rC]&&t[rC]()}function pP(e){Hx.set(e,e.el.getBoundingClientRect())}function vP(e){const t=zx.get(e),n=Hx.get(e),a=t.left-n.left,s=t.top-n.top;if(a||s){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${a}px,${s}px)`,o.transitionDuration="0s",e}}function hP(e,t,n){const a=e.cloneNode(),s=e[zu];s&&s.forEach(i=>{i.split(/\s+/).forEach(c=>c&&a.classList.remove(c))}),n.split(/\s+/).forEach(i=>i&&a.classList.add(i)),a.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(a);const{hasTransform:r}=Fx(a);return o.removeChild(a),r}const Mi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ve(t)?n=>Yv(t,n):t};function mP(e){e.target.composing=!0}function lC(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Qo=Symbol("_assign"),hn={created(e,{modifiers:{lazy:t,trim:n,number:a}},s){e[Qo]=Mi(s);const o=a||s.props&&s.props.type==="number";El(e,t?"change":"input",r=>{if(r.target.composing)return;let i=e.value;n&&(i=i.trim()),o&&(i=kh(i)),e[Qo](i)}),n&&El(e,"change",()=>{e.value=e.value.trim()}),t||(El(e,"compositionstart",mP),El(e,"compositionend",lC),El(e,"change",lC))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:a,number:s}},o){if(e[Qo]=Mi(o),e.composing)return;const r=s||e.type==="number"?kh(e.value):e.value,i=t??"";r!==i&&(document.activeElement===e&&e.type!=="range"&&(n||a&&e.value.trim()===i)||(e.value=i))}},Mo={deep:!0,created(e,t,n){e[Qo]=Mi(n),El(e,"change",()=>{const a=e._modelValue,s=Hu(e),o=e.checked,r=e[Qo];if(Ve(a)){const i=X1(a,s),c=i!==-1;if(o&&!c)r(a.concat(s));else if(!o&&c){const u=[...a];u.splice(i,1),r(u)}}else if(pd(a)){const i=new Set(a);o?i.add(s):i.delete(s),r(i)}else r(jx(e,o))})},mounted:iC,beforeUpdate(e,t,n){e[Qo]=Mi(n),iC(e,t,n)}};function iC(e,{value:t,oldValue:n},a){e._modelValue=t,Ve(t)?e.checked=X1(t,a.props.value)>-1:pd(t)?e.checked=t.has(a.props.value):t!==n&&(e.checked=Pc(t,jx(e,!0)))}const Im={created(e,{value:t},n){e.checked=Pc(t,n.props.value),e[Qo]=Mi(n),El(e,"change",()=>{e[Qo](Hu(e))})},beforeUpdate(e,{value:t,oldValue:n},a){e[Qo]=Mi(a),t!==n&&(e.checked=Pc(t,a.props.value))}},gP={deep:!0,created(e,{value:t,modifiers:{number:n}},a){const s=pd(t);El(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?kh(Hu(r)):Hu(r));e[Qo](e.multiple?s?new Set(o):o:o[0])}),e[Qo]=Mi(a)},mounted(e,{value:t}){cC(e,t)},beforeUpdate(e,t,n){e[Qo]=Mi(n)},updated(e,{value:t}){cC(e,t)}};function cC(e,t){const n=e.multiple;if(!(n&&!Ve(t)&&!pd(t))){for(let a=0,s=e.options.length;a-1:o.selected=t.has(r);else if(Pc(Hu(o),t)){e.selectedIndex!==a&&(e.selectedIndex=a);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Hu(e){return"_value"in e?e._value:e.value}function jx(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const $i={created(e,t,n){mv(e,t,n,null,"created")},mounted(e,t,n){mv(e,t,n,null,"mounted")},beforeUpdate(e,t,n,a){mv(e,t,n,a,"beforeUpdate")},updated(e,t,n,a){mv(e,t,n,a,"updated")}};function _P(e,t){switch(e){case"SELECT":return gP;case"TEXTAREA":return hn;default:switch(t){case"checkbox":return Mo;case"radio":return Im;default:return hn}}}function mv(e,t,n,a,s){const r=_P(e.tagName,n.props&&n.props.type)[s];r&&r(e,t,n,a)}const yP=["ctrl","shift","alt","meta"],bP={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)=>yP.some(n=>e[`${n}Key`]&&!t.includes(n))},qe=(e,t)=>{const n=e._withMods||(e._withMods={}),a=t.join(".");return n[a]||(n[a]=(s,...o)=>{for(let r=0;r{const n=e._withKeys||(e._withKeys={}),a=t.join(".");return n[a]||(n[a]=s=>{if(!("key"in s))return;const o=qi(s.key);if(t.some(r=>r===o||wP[r]===o))return e(s)})},CP=ps({patchProp:cP},jR);let uC;function Wx(){return uC||(uC=ER(CP))}const Bi=(...e)=>{Wx().render(...e)},Gx=(...e)=>{const t=Wx().createApp(...e),{mount:n}=t;return t.mount=a=>{const s=kP(a);if(!s)return;const o=t._component;!vt(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const r=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),r},t};function kP(e){return ut(e)?document.querySelector(e):e}/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT */let Yx;const Am=e=>Yx=e,Xx=Symbol();function o_(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var kf;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(kf||(kf={}));function SP(){const e=Q1(!0),t=e.run(()=>T({}));let n=[],a=[];const s=Yo({install(o){Am(s),s._a=o,o.provide(Xx,s),o.config.globalProperties.$pinia=s,a.forEach(r=>n.push(r)),a=[]},use(o){return this._a?n.push(o):a.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Qx=()=>{};function dC(e,t,n,a=Qx){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),a())};return!n&&J1()&&kp(s),s}function su(e,...t){e.slice().forEach(n=>{n(...t)})}const EP=e=>e();function r_(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,a)=>e.set(a,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const a=t[n],s=e[n];o_(s)&&o_(a)&&e.hasOwnProperty(n)&&!$n(a)&&!Al(a)?e[n]=r_(s,a):e[n]=a}return e}const $P=Symbol();function xP(e){return!o_(e)||!e.hasOwnProperty($P)}const{assign:li}=Object;function TP(e){return!!($n(e)&&e.effect)}function IP(e,t,n,a){const{state:s,actions:o,getters:r}=t,i=n.state.value[e];let c;function u(){i||(n.state.value[e]=s?s():{});const d=Pa(n.state.value[e]);return li(d,o,Object.keys(r||{}).reduce((p,v)=>(p[v]=Yo(x(()=>{Am(n);const h=n._s.get(e);return r[v].call(h,h)})),p),{}))}return c=Jx(e,u,t,n,a,!0),c}function Jx(e,t,n={},a,s,o){let r;const i=li({actions:{}},n),c={deep:!0};let u,d,p=[],v=[],h;const m=a.state.value[e];!o&&!m&&(a.state.value[e]={}),T({});let g;function y(A){let N;u=d=!1,typeof A=="function"?(A(a.state.value[e]),N={type:kf.patchFunction,storeId:e,events:h}):(r_(a.state.value[e],A),N={type:kf.patchObject,payload:A,storeId:e,events:h});const P=g=Symbol();it().then(()=>{g===P&&(u=!0)}),d=!0,su(p,N,a.state.value[e])}const b=o?function(){const{state:N}=n,P=N?N():{};this.$patch(B=>{li(B,P)})}:Qx;function C(){r.stop(),p=[],v=[],a._s.delete(e)}function k(A,N){return function(){Am(a);const P=Array.from(arguments),B=[],M=[];function j(L){B.push(L)}function F(L){M.push(L)}su(v,{args:P,name:A,store:$,after:j,onError:F});let q;try{q=N.apply(this&&this.$id===e?this:$,P)}catch(L){throw su(M,L),L}return q instanceof Promise?q.then(L=>(su(B,L),L)).catch(L=>(su(M,L),Promise.reject(L))):(su(B,q),q)}}const S={_p:a,$id:e,$onAction:dC.bind(null,v),$patch:y,$reset:b,$subscribe(A,N={}){const P=dC(p,A,N.detached,()=>B()),B=r.run(()=>Te(()=>a.state.value[e],M=>{(N.flush==="sync"?d:u)&&A({storeId:e,type:kf.direct,events:h},M)},li({},c,N)));return P},$dispose:C},$=At(S);a._s.set(e,$);const R=(a._a&&a._a.runWithContext||EP)(()=>a._e.run(()=>(r=Q1()).run(t)));for(const A in R){const N=R[A];if($n(N)&&!TP(N)||Al(N))o||(m&&xP(N)&&($n(N)?N.value=m[A]:r_(N,m[A])),a.state.value[e][A]=N);else if(typeof N=="function"){const P=k(A,N);R[A]=P,i.actions[A]=N}}return li($,R),li(Tn($),R),Object.defineProperty($,"$state",{get:()=>a.state.value[e],set:A=>{y(N=>{li(N,A)})}}),a._p.forEach(A=>{li($,r.run(()=>A({store:$,app:a._a,pinia:a,options:i})))}),m&&o&&n.hydrate&&n.hydrate($.$state,m),u=!0,d=!0,$}function Nm(e,t,n){let a,s;const o=typeof t=="function";typeof e=="string"?(a=e,s=o?n:t):(s=e,a=e.id);function r(i,c){const u=yR();return i=i||(u?Ze(Xx,null):null),i&&Am(i),i=Yx,i._s.has(a)||(o?Jx(a,t,s,i):IP(a,s,i)),i._s.get(a)}return r.$id=a,r}function Zx(e){{e=Tn(e);const t={};for(const n in e){const a=e[n];($n(a)||Al(a))&&(t[n]=gn(e,n))}return t}}const AP="2.11.1",fC=Symbol("INSTALLED_KEY"),e4=Symbol(),Sf="el",NP="is-",Qi=(e,t,n,a,s)=>{let o=`${e}-${t}`;return n&&(o+=`-${n}`),a&&(o+=`__${a}`),s&&(o+=`--${s}`),o},t4=Symbol("namespaceContextKey"),_y=e=>{const t=e||(qt()?Ze(t4,T(Sf)):T(Sf));return x(()=>f(t)||Sf)},Le=(e,t)=>{const n=_y(t);return{namespace:n,b:(g="")=>Qi(n.value,e,g,"",""),e:g=>g?Qi(n.value,e,"",g,""):"",m:g=>g?Qi(n.value,e,"","",g):"",be:(g,y)=>g&&y?Qi(n.value,e,g,y,""):"",em:(g,y)=>g&&y?Qi(n.value,e,"",g,y):"",bm:(g,y)=>g&&y?Qi(n.value,e,g,"",y):"",bem:(g,y,b)=>g&&y&&b?Qi(n.value,e,g,y,b):"",is:(g,...y)=>{const b=y.length>=1?y[0]:!0;return g&&b?`${NP}${g}`:""},cssVar:g=>{const y={};for(const b in g)g[b]&&(y[`--${n.value}-${b}`]=g[b]);return y},cssVarName:g=>`--${n.value}-${g}`,cssVarBlock:g=>{const y={};for(const b in g)g[b]&&(y[`--${n.value}-${e}-${b}`]=g[b]);return y},cssVarBlockName:g=>`--${n.value}-${e}-${g}`}};var n4=typeof global=="object"&&global&&global.Object===Object&&global,RP=typeof self=="object"&&self&&self.Object===Object&&self,xr=n4||RP||Function("return this")(),tr=xr.Symbol,a4=Object.prototype,PP=a4.hasOwnProperty,MP=a4.toString,jd=tr?tr.toStringTag:void 0;function BP(e){var t=PP.call(e,jd),n=e[jd];try{e[jd]=void 0;var a=!0}catch{}var s=MP.call(e);return a&&(t?e[jd]=n:delete e[jd]),s}var LP=Object.prototype,OP=LP.toString;function DP(e){return OP.call(e)}var VP="[object Null]",FP="[object Undefined]",pC=tr?tr.toStringTag:void 0;function jc(e){return e==null?e===void 0?FP:VP:pC&&pC in Object(e)?BP(e):DP(e)}function Zr(e){return e!=null&&typeof e=="object"}var UP="[object Symbol]";function Rm(e){return typeof e=="symbol"||Zr(e)&&jc(e)==UP}function yy(e,t){for(var n=-1,a=e==null?0:e.length,s=Array(a);++n0){if(++t>=hM)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function yM(e){return function(){return e}}var Ih=function(){try{var e=Gc(Object,"defineProperty");return e({},"",{}),e}catch{}}(),bM=Ih?function(e,t){return Ih(e,"toString",{configurable:!0,enumerable:!1,value:yM(t),writable:!0})}:by,r4=_M(bM);function wM(e,t){for(var n=-1,a=e==null?0:e.length;++n-1}var $M=9007199254740991,xM=/^(?:0|[1-9]\d*)$/;function Pm(e,t){var n=typeof e;return t=t??$M,!!t&&(n=="number"||n!="symbol"&&xM.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=AM}function bd(e){return e!=null&&ky(e.length)&&!wy(e)}function NM(e,t,n){if(!so(n))return!1;var a=typeof t;return(a=="number"?bd(n)&&Pm(t,n.length):a=="string"&&t in n)?Sp(n[t],e):!1}function RM(e){return c4(function(t,n){var a=-1,s=n.length,o=s>1?n[s-1]:void 0,r=s>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(s--,o):void 0,r&&NM(n[0],n[1],r)&&(o=s<3?void 0:o,s=1),t=Object(t);++a-1}function zB(e,t){var n=this.__data__,a=Bm(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}function Ul(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(i)?t>1?xp(i,t-1,n,a,s):Ty(s,i):a||(s[s.length]=i)}return s}function h4(e){var t=e==null?0:e.length;return t?xp(e,1):[]}function m4(e){return r4(i4(e,void 0,h4),e+"")}var Iy=v4(Object.getPrototypeOf,Object),aL="[object Object]",sL=Function.prototype,oL=Object.prototype,g4=sL.toString,rL=oL.hasOwnProperty,lL=g4.call(Object);function _4(e){if(!Zr(e)||jc(e)!=aL)return!1;var t=Iy(e);if(t===null)return!0;var n=rL.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&g4.call(n)==lL}function iL(e,t,n){var a=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(s);++ai))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var p=-1,v=!0,h=n&HO?new Qf:void 0;for(o.set(e,t),o.set(t,e);++p=t||R<0||p&&A>=o}function b(){var E=G0();if(y(E))return C(E);i=setTimeout(b,g(E))}function C(E){return i=void 0,v&&a?h(E):(a=s=void 0,r)}function k(){i!==void 0&&clearTimeout(i),u=0,a=c=s=i=void 0}function S(){return i===void 0?r:C(G0())}function $(){var E=G0(),R=y(E);if(a=arguments,s=this,c=E,R){if(i===void 0)return m(c);if(p)return clearTimeout(i),i=setTimeout(b,t),h(c)}return i===void 0&&(i=setTimeout(b,t)),r}return $.cancel=k,$.flush=S,$}function d_(e,t,n){(n!==void 0&&!Sp(e[t],n)||n===void 0&&!(t in e))&&Mm(e,t,n)}function O4(e){return Zr(e)&&bd(e)}function f_(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function RD(e){return yd(e,$p(e))}function PD(e,t,n,a,s,o,r){var i=f_(e,n),c=f_(t,n),u=r.get(c);if(u){d_(e,n,u);return}var d=o?o(i,c,n+"",e,t,r):void 0,p=d===void 0;if(p){var v=ao(c),h=!v&&Gf(c),m=!v&&!h&&$y(c);d=c,v||h||m?ao(i)?d=i:O4(i)?d=o4(i):h?(p=!1,d=b4(c,!0)):m?(p=!1,d=E4(c,!0)):d=[]:_4(c)||Wf(c)?(d=i,Wf(i)?d=RD(i):(!so(i)||wy(i))&&(d=$4(c))):p=!1}p&&(r.set(c,d),s(d,c,a,o,r),r.delete(c)),d_(e,n,d)}function D4(e,t,n,a,s){e!==t&&L4(t,function(o,r){if(s||(s=new yr),so(o))PD(e,t,r,n,D4,a,s);else{var i=a?a(f_(e,r),o,r+"",e,t,s):void 0;i===void 0&&(i=o),d_(e,r,i)}},$p)}function MD(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function V4(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var s=a-1;return l4(e,B4(t),s,!0)}function BD(e,t){var n=-1,a=bd(e)?Array(e.length):[];return TD(e,function(s,o,r){a[++n]=t(s,o,r)}),a}function LD(e,t){var n=ao(e)?yy:BD;return n(e,B4(t))}function F4(e,t){return xp(LD(e,t),1)}var OD=1/0;function DD(e){var t=e==null?0:e.length;return t?xp(e,OD):[]}function Jf(e){for(var t=-1,n=e==null?0:e.length,a={};++t1),o}),yd(e,S4(e),n),a&&(n=Ru(n,qD|jD|WD,KD));for(var s=t.length;s--;)HD(n,t[s]);return n});function H4(e,t,n,a){if(!so(e))return e;t=wd(t,e);for(var s=-1,o=t.length,r=o-1,i=e;i!=null&&++s=e7){var u=ZD(e);if(u)return Ry(u);r=!1,s=A4,c=new Qf}else c=i;e:for(;++ae===void 0,En=e=>typeof e=="boolean",gt=e=>typeof e=="number",$o=e=>!e&&e!==0||Ve(e)&&e.length===0||Ot(e)&&!Object.keys(e).length,no=e=>typeof Element>"u"?!1:e instanceof Element,mo=e=>ba(e),n7=e=>ut(e)?!Number.isNaN(Number(e)):!1,Ip=e=>e===window;var a7=Object.defineProperty,s7=Object.defineProperties,o7=Object.getOwnPropertyDescriptors,KC=Object.getOwnPropertySymbols,r7=Object.prototype.hasOwnProperty,l7=Object.prototype.propertyIsEnumerable,qC=(e,t,n)=>t in e?a7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,i7=(e,t)=>{for(var n in t||(t={}))r7.call(t,n)&&qC(e,n,t[n]);if(KC)for(var n of KC(t))l7.call(t,n)&&qC(e,n,t[n]);return e},c7=(e,t)=>s7(e,o7(t));function Rh(e,t){var n;const a=Fn();return Ls(()=>{a.value=e()},c7(i7({},t),{flush:(n=void 0)!=null?n:"sync"})),md(a)}var jC;const cn=typeof window<"u",u7=e=>typeof e<"u",p_=e=>typeof e=="function",d7=e=>typeof e=="string",Nl=()=>{},Ph=cn&&((jC=window==null?void 0:window.navigator)==null?void 0:jC.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Li(e){return typeof e=="function"?e():f(e)}function K4(e,t){function n(...a){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,a),{fn:t,thisArg:this,args:a})).then(s).catch(o)})}return n}function f7(e,t={}){let n,a,s=Nl;const o=i=>{clearTimeout(i),s(),s=Nl};return i=>{const c=Li(e),u=Li(t.maxWait);return n&&o(n),c<=0||u!==void 0&&u<=0?(a&&(o(a),a=null),Promise.resolve(i())):new Promise((d,p)=>{s=t.rejectOnCancel?p:d,u&&!a&&(a=setTimeout(()=>{n&&o(n),a=null,d(i())},u)),n=setTimeout(()=>{a&&o(a),a=null,d(i())},c)})}}function p7(e,t=!0,n=!0,a=!1){let s=0,o,r=!0,i=Nl,c;const u=()=>{o&&(clearTimeout(o),o=void 0,i(),i=Nl)};return p=>{const v=Li(e),h=Date.now()-s,m=()=>c=p();return u(),v<=0?(s=Date.now(),m()):(h>v&&(n||!r)?(s=Date.now(),m()):t&&(c=new Promise((g,y)=>{i=a?y:g,o=setTimeout(()=>{s=Date.now(),r=!0,g(m()),u()},Math.max(0,v-h))})),!n&&!o&&(o=setTimeout(()=>r=!0,v)),r=!1,c)}}function v7(e){return e}function h7(e,t){let n,a,s;const o=T(!0),r=()=>{o.value=!0,s()};Te(e,r,{flush:"sync"});const i=p_(t)?t:t.get,c=p_(t)?void 0:t.set,u=ON((d,p)=>(a=d,s=p,{get(){return o.value&&(n=i(),o.value=!1),a(),n},set(v){c==null||c(v)}}));return Object.isExtensible(u)&&(u.trigger=r),u}function Cd(e){return J1()?(kp(e),!0):!1}function m7(e){if(!$n(e))return At(e);const t=new Proxy({},{get(n,a,s){return f(Reflect.get(e.value,a,s))},set(n,a,s){return $n(e.value[a])&&!$n(s)?e.value[a].value=s:e.value[a]=s,!0},deleteProperty(n,a){return Reflect.deleteProperty(e.value,a)},has(n,a){return Reflect.has(e.value,a)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return At(t)}function g7(e){return m7(x(e))}function _7(e,t=200,n={}){return K4(f7(t,n),e)}function y7(e,t=200,n={}){const a=T(e.value),s=_7(()=>{a.value=e.value},t,n);return Te(e,()=>s()),a}function q4(e,t=200,n=!1,a=!0,s=!1){return K4(p7(t,n,a,s),e)}function Py(e,t=!0){qt()?ft(e):t?e():it(e)}function Lc(e,t,n={}){const{immediate:a=!0}=n,s=T(!1);let o=null;function r(){o&&(clearTimeout(o),o=null)}function i(){s.value=!1,r()}function c(...u){r(),s.value=!0,o=setTimeout(()=>{s.value=!1,o=null,e(...u)},Li(t))}return a&&(s.value=!0,cn&&c()),Cd(i),{isPending:md(s),start:c,stop:i}}function Ha(e){var t;const n=Li(e);return(t=n==null?void 0:n.$el)!=null?t:n}const sl=cn?window:void 0,b7=cn?window.document:void 0;function Rn(...e){let t,n,a,s;if(d7(e[0])||Array.isArray(e[0])?([n,a,s]=e,t=sl):[t,n,a,s]=e,!t)return Nl;Array.isArray(n)||(n=[n]),Array.isArray(a)||(a=[a]);const o=[],r=()=>{o.forEach(d=>d()),o.length=0},i=(d,p,v,h)=>(d.addEventListener(p,v,h),()=>d.removeEventListener(p,v,h)),c=Te(()=>[Ha(t),Li(s)],([d,p])=>{r(),d&&o.push(...n.flatMap(v=>a.map(h=>i(d,v,h,p))))},{immediate:!0,flush:"post"}),u=()=>{c(),r()};return Cd(u),u}let WC=!1;function My(e,t,n={}){const{window:a=sl,ignore:s=[],capture:o=!0,detectIframe:r=!1}=n;if(!a)return;Ph&&!WC&&(WC=!0,Array.from(a.document.body.children).forEach(v=>v.addEventListener("click",Nl)));let i=!0;const c=v=>s.some(h=>{if(typeof h=="string")return Array.from(a.document.querySelectorAll(h)).some(m=>m===v.target||v.composedPath().includes(m));{const m=Ha(h);return m&&(v.target===m||v.composedPath().includes(m))}}),d=[Rn(a,"click",v=>{const h=Ha(e);if(!(!h||h===v.target||v.composedPath().includes(h))){if(v.detail===0&&(i=!c(v)),!i){i=!0;return}t(v)}},{passive:!0,capture:o}),Rn(a,"pointerdown",v=>{const h=Ha(e);h&&(i=!v.composedPath().includes(h)&&!c(v))},{passive:!0}),r&&Rn(a,"blur",v=>{var h;const m=Ha(e);((h=a.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(m!=null&&m.contains(a.document.activeElement))&&t(v)})].filter(Boolean);return()=>d.forEach(v=>v())}function w7(e={}){var t;const{window:n=sl}=e,a=(t=e.document)!=null?t:n==null?void 0:n.document,s=h7(()=>null,()=>a==null?void 0:a.activeElement);return n&&(Rn(n,"blur",o=>{o.relatedTarget===null&&s.trigger()},!0),Rn(n,"focus",s.trigger,!0)),s}function By(e,t=!1){const n=T(),a=()=>n.value=!!e();return a(),Py(a,t),n}function C7(e){return JSON.parse(JSON.stringify(e))}const GC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},YC="__vueuse_ssr_handlers__";GC[YC]=GC[YC]||{};function k7(e,t,{window:n=sl,initialValue:a=""}={}){const s=T(a),o=x(()=>{var r;return Ha(t)||((r=n==null?void 0:n.document)==null?void 0:r.documentElement)});return Te([o,()=>Li(e)],([r,i])=>{var c;if(r&&n){const u=(c=n.getComputedStyle(r).getPropertyValue(i))==null?void 0:c.trim();s.value=u||a}},{immediate:!0}),Te(s,r=>{var i;(i=o.value)!=null&&i.style&&o.value.style.setProperty(Li(e),r)}),s}function S7({document:e=b7}={}){if(!e)return T("visible");const t=T(e.visibilityState);return Rn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var XC=Object.getOwnPropertySymbols,E7=Object.prototype.hasOwnProperty,$7=Object.prototype.propertyIsEnumerable,x7=(e,t)=>{var n={};for(var a in e)E7.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&XC)for(var a of XC(e))t.indexOf(a)<0&&$7.call(e,a)&&(n[a]=e[a]);return n};function Xn(e,t,n={}){const a=n,{window:s=sl}=a,o=x7(a,["window"]);let r;const i=By(()=>s&&"ResizeObserver"in s),c=()=>{r&&(r.disconnect(),r=void 0)},u=Te(()=>Ha(e),p=>{c(),i.value&&s&&p&&(r=new ResizeObserver(t),r.observe(p,o))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return Cd(d),{isSupported:i,stop:d}}function QC(e,t={}){const{reset:n=!0,windowResize:a=!0,windowScroll:s=!0,immediate:o=!0}=t,r=T(0),i=T(0),c=T(0),u=T(0),d=T(0),p=T(0),v=T(0),h=T(0);function m(){const g=Ha(e);if(!g){n&&(r.value=0,i.value=0,c.value=0,u.value=0,d.value=0,p.value=0,v.value=0,h.value=0);return}const y=g.getBoundingClientRect();r.value=y.height,i.value=y.bottom,c.value=y.left,u.value=y.right,d.value=y.top,p.value=y.width,v.value=y.x,h.value=y.y}return Xn(e,m),Te(()=>Ha(e),g=>!g&&m()),s&&Rn("scroll",m,{capture:!0,passive:!0}),a&&Rn("resize",m,{passive:!0}),Py(()=>{o&&m()}),{height:r,bottom:i,left:c,right:u,top:d,width:p,x:v,y:h,update:m}}function T7(e,t={width:0,height:0},n={}){const{window:a=sl,box:s="content-box"}=n,o=x(()=>{var c,u;return(u=(c=Ha(e))==null?void 0:c.namespaceURI)==null?void 0:u.includes("svg")}),r=T(t.width),i=T(t.height);return Xn(e,([c])=>{const u=s==="border-box"?c.borderBoxSize:s==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(a&&o.value){const d=Ha(e);if(d){const p=a.getComputedStyle(d);r.value=parseFloat(p.width),i.value=parseFloat(p.height)}}else if(u){const d=Array.isArray(u)?u:[u];r.value=d.reduce((p,{inlineSize:v})=>p+v,0),i.value=d.reduce((p,{blockSize:v})=>p+v,0)}else r.value=c.contentRect.width,i.value=c.contentRect.height},n),Te(()=>Ha(e),c=>{r.value=c?t.width:0,i.value=c?t.height:0}),{width:r,height:i}}function I7(e,t,n={}){const{root:a,rootMargin:s="0px",threshold:o=.1,window:r=sl}=n,i=By(()=>r&&"IntersectionObserver"in r);let c=Nl;const u=i.value?Te(()=>({el:Ha(e),root:Ha(a)}),({el:p,root:v})=>{if(c(),!p)return;const h=new IntersectionObserver(t,{root:v,rootMargin:s,threshold:o});h.observe(p),c=()=>{h.disconnect(),c=Nl}},{immediate:!0,flush:"post"}):Nl,d=()=>{c(),u()};return Cd(d),{isSupported:i,stop:d}}var JC=Object.getOwnPropertySymbols,A7=Object.prototype.hasOwnProperty,N7=Object.prototype.propertyIsEnumerable,R7=(e,t)=>{var n={};for(var a in e)A7.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&JC)for(var a of JC(e))t.indexOf(a)<0&&N7.call(e,a)&&(n[a]=e[a]);return n};function j4(e,t,n={}){const a=n,{window:s=sl}=a,o=R7(a,["window"]);let r;const i=By(()=>s&&"MutationObserver"in s),c=()=>{r&&(r.disconnect(),r=void 0)},u=Te(()=>Ha(e),p=>{c(),i.value&&s&&p&&(r=new MutationObserver(t),r.observe(p,o))},{immediate:!0}),d=()=>{c(),u()};return Cd(d),{isSupported:i,stop:d}}var ZC;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ZC||(ZC={}));var P7=Object.defineProperty,ek=Object.getOwnPropertySymbols,M7=Object.prototype.hasOwnProperty,B7=Object.prototype.propertyIsEnumerable,tk=(e,t,n)=>t in e?P7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L7=(e,t)=>{for(var n in t||(t={}))M7.call(t,n)&&tk(e,n,t[n]);if(ek)for(var n of ek(t))B7.call(t,n)&&tk(e,n,t[n]);return e};const O7={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};L7({linear:v7},O7);function W4(e,t,n,a={}){var s,o,r;const{clone:i=!1,passive:c=!1,eventName:u,deep:d=!1,defaultValue:p}=a,v=qt(),h=n||(v==null?void 0:v.emit)||((s=v==null?void 0:v.$emit)==null?void 0:s.bind(v))||((r=(o=v==null?void 0:v.proxy)==null?void 0:o.$emit)==null?void 0:r.bind(v==null?void 0:v.proxy));let m=u;t||(t="modelValue"),m=u||m||`update:${t.toString()}`;const g=b=>i?p_(i)?i(b):C7(b):b,y=()=>u7(e[t])?g(e[t]):p;if(c){const b=y(),C=T(b);return Te(()=>e[t],k=>C.value=g(k)),Te(C,k=>{(k!==e[t]||d)&&h(m,k)},{deep:d}),C}else return x({get(){return y()},set(b){h(m,b)}})}function D7({window:e=sl}={}){if(!e)return T(!1);const t=T(e.document.hasFocus());return Rn(e,"blur",()=>{t.value=!1}),Rn(e,"focus",()=>{t.value=!0}),t}function V7(e={}){const{window:t=sl,initialWidth:n=1/0,initialHeight:a=1/0,listenOrientation:s=!0,includeScrollbar:o=!0}=e,r=T(n),i=T(a),c=()=>{t&&(o?(r.value=t.innerWidth,i.value=t.innerHeight):(r.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return c(),Py(c),Rn("resize",c,{passive:!0}),s&&Rn("orientationchange",c,{passive:!0}),{width:r,height:i}}const nk={current:0},ak=T(0),G4=2e3,sk=Symbol("elZIndexContextKey"),Y4=Symbol("zIndexContextKey"),kd=e=>{const t=qt()?Ze(sk,nk):nk,n=e||(qt()?Ze(Y4,void 0):void 0),a=x(()=>{const r=f(n);return gt(r)?r:G4}),s=x(()=>a.value+ak.value),o=()=>(t.current++,ak.value=t.current,s.value);return!cn&&Ze(sk),{initialZIndex:a,currentZIndex:s,nextZIndex:o}};var F7={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const U7=e=>(t,n)=>z7(t,n,f(e)),z7=(e,t,n)=>ya(n,e,e).replace(/\{(\w+)\}/g,(a,s)=>{var o;return`${(o=t==null?void 0:t[s])!=null?o:`{${s}}`}`}),H7=e=>{const t=x(()=>f(e).name),n=$n(e)?e:T(e);return{lang:t,locale:n,t:U7(e)}},X4=Symbol("localeContextKey"),rn=e=>{const t=e||Ze(X4,T());return H7(x(()=>t.value||F7))},Q4="__epPropKey",ge=e=>e,K7=e=>Ot(e)&&!!e[Q4],Tr=(e,t)=>{if(!Ot(e)||K7(e))return e;const{values:n,required:a,default:s,type:o,validator:r}=e,c={type:o,required:!!a,validator:n||r?u=>{let d=!1,p=[];if(n&&(p=Array.from(n),ln(e,"default")&&p.push(s),d||(d=p.includes(u))),r&&(d||(d=r(u))),!d&&p.length>0){const v=[...new Set(p)].map(h=>JSON.stringify(h)).join(", ");zN(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${v}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[Q4]:!0};return ln(e,"default")&&(c.default=s),c},Ue=e=>Jf(Object.entries(e).map(([t,n])=>[t,Tr(n,t)])),ol=["","default","small","large"],Ma=Tr({type:String,values:ol,required:!1}),J4=Symbol("size"),Z4=()=>{const e=Ze(J4,{});return x(()=>f(e.size)||"")},eT=Symbol("emptyValuesContextKey"),q7=["",void 0,null],j7=void 0,Yc=Ue({emptyValues:Array,valueOnClear:{type:ge([String,Number,Boolean,Function]),default:void 0,validator:e=>vt(e)?!e():!e}}),Ap=(e,t)=>{const n=qt()?Ze(eT,T({})):T({}),a=x(()=>e.emptyValues||n.value.emptyValues||q7),s=x(()=>vt(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:vt(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:j7),o=r=>a.value.includes(r);return a.value.includes(s.value),{emptyValues:a,valueOnClear:s,isEmptyValue:o}},qu=e=>Object.keys(e),tT=e=>Object.entries(e),$f=(e,t,n)=>({get value(){return ya(e,t,n)},set value(a){XD(e,t,a)}}),Mh=T();function Sd(e,t=void 0){const n=qt()?Ze(e4,Mh):Mh;return e?x(()=>{var a,s;return(s=(a=n.value)==null?void 0:a[e])!=null?s:t}):n}function Fm(e,t){const n=Sd(),a=Le(e,x(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||Sf})),s=rn(x(()=>{var i;return(i=n.value)==null?void 0:i.locale})),o=kd(x(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||G4})),r=x(()=>{var i;return f(t)||((i=n.value)==null?void 0:i.size)||""});return Ly(x(()=>f(n)||{})),{ns:a,locale:s,zIndex:o,size:r}}const Ly=(e,t,n=!1)=>{var a;const s=!!qt(),o=s?Sd():void 0,r=(a=t==null?void 0:t.provide)!=null?a:s?Gt:void 0;if(!r)return;const i=x(()=>{const c=f(e);return o!=null&&o.value?W7(o.value,c):c});return r(e4,i),r(X4,x(()=>i.value.locale)),r(t4,x(()=>i.value.namespace)),r(Y4,x(()=>i.value.zIndex)),r(J4,{size:x(()=>i.value.size||"")}),r(eT,x(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!Mh.value)&&(Mh.value=i.value),i},W7=(e,t)=>{const n=[...new Set([...qu(e),...qu(t)])],a={};for(const s of n)a[s]=t[s]!==void 0?t[s]:e[s];return a},G7=(e=[])=>({version:AP,install:(n,a)=>{n[fC]||(n[fC]=!0,e.forEach(s=>n.use(s)),a&&Ly(a,n,!0))}}),Et="update:modelValue",Xt="change",Ra="input",Y7=Ue({zIndex:{type:ge([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),X7={scroll:({scrollTop:e,fixed:t})=>gt(e)&&En(t),[Xt]:e=>En(e)};var ze=(e,t)=>{const n=e.__vccOpts||e;for(const[a,s]of t)n[a]=s;return n};function Q7(e,t,n,a){const s=n-t;return e/=a/2,e<1?s/2*e*e*e+t:s/2*((e-=2)*e*e+2)+t}const Oi=e=>cn?window.requestAnimationFrame(e):setTimeout(e,16),Oc=e=>cn?window.cancelAnimationFrame(e):clearTimeout(e),nT=(e="")=>e.split(" ").filter(t=>!!t.trim()),vo=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ho=(e,t)=>{!e||!t.trim()||e.classList.add(...nT(t))},Os=(e,t)=>{!e||!t.trim()||e.classList.remove(...nT(t))},$l=(e,t)=>{var n;if(!cn||!e||!t)return"";let a=Po(t);a==="float"&&(a="cssFloat");try{const s=e.style[a];if(s)return s;const o=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return o?o[a]:""}catch{return e.style[a]}},aT=(e,t,n)=>{if(!(!e||!t))if(Ot(t))tT(t).forEach(([a,s])=>aT(e,a,s));else{const a=Po(t);e.style[a]=n}};function sa(e,t="px"){if(!e)return"";if(gt(e)||n7(e))return`${e}${t}`;if(ut(e))return e}const J7=(e,t)=>{if(!cn)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],a=$l(e,n);return["scroll","auto","overlay"].some(s=>a.includes(s))},Oy=(e,t)=>{if(!cn)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(J7(n,t))return n;n=n.parentNode}return n};let _v;const sT=e=>{var t;if(!cn)return 0;if(_v!==void 0)return _v;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const a=n.offsetWidth;n.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",n.appendChild(s);const o=s.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),_v=a-o,_v};function Dy(e,t){if(!cn)return;if(!t){e.scrollTop=0;return}const n=[];let a=t.offsetParent;for(;a!==null&&e!==a&&e.contains(a);)n.push(a),a=a.offsetParent;const s=t.offsetTop+n.reduce((c,u)=>c+u.offsetTop,0),o=s+t.offsetHeight,r=e.scrollTop,i=r+e.clientHeight;si&&(e.scrollTop=o-e.clientHeight)}function Z7(e,t,n,a,s){const o=Date.now();let r;const i=()=>{const u=Date.now()-o,d=Q7(u>a?a:u,t,n,a);Ip(e)?e.scrollTo(window.pageXOffset,d):e.scrollTop=d,u{r&&Oc(r)}}const ok=(e,t)=>Ip(t)?e.ownerDocument.documentElement:t,rk=e=>Ip(e)?window.scrollY:e.scrollTop;class e9 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ca(e,t){throw new e9(`[${e}] ${t}`)}const oT="ElAffix",t9=le({name:oT}),n9=le({...t9,props:Y7,emits:X7,setup(e,{expose:t,emit:n}){const a=e,s=Le("affix"),o=Fn(),r=Fn(),i=Fn(),{height:c}=V7(),{height:u,width:d,top:p,bottom:v,update:h}=QC(r,{windowScroll:!1}),m=QC(o),g=T(!1),y=T(0),b=T(0),C=x(()=>({height:g.value?`${u.value}px`:"",width:g.value?`${d.value}px`:""})),k=x(()=>{if(!g.value)return{};const R=a.offset?sa(a.offset):0;return{height:`${u.value}px`,width:`${d.value}px`,top:a.position==="top"?R:"",bottom:a.position==="bottom"?R:"",transform:b.value?`translateY(${b.value}px)`:"",zIndex:a.zIndex}}),S=()=>{if(!i.value)return;y.value=i.value instanceof Window?document.documentElement.scrollTop:i.value.scrollTop||0;const{position:R,target:A,offset:N}=a,P=N+u.value;if(R==="top")if(A){const B=m.bottom.value-P;g.value=N>p.value&&m.bottom.value>0,b.value=B<0?B:0}else g.value=N>p.value;else if(A){const B=c.value-m.top.value-P;g.value=c.value-Nm.top.value,b.value=B<0?-B:0}else g.value=c.value-N{if(!g.value){h();return}g.value=!1,await it(),h(),g.value=!0},E=async()=>{h(),await it(),n("scroll",{scrollTop:y.value,fixed:g.value})};return Te(g,R=>n(Xt,R)),ft(()=>{var R;a.target?(o.value=(R=document.querySelector(a.target))!=null?R:void 0,o.value||Ca(oT,`Target does not exist: ${a.target}`)):o.value=document.documentElement,i.value=Oy(r.value,!0),h()}),Rn(i,"scroll",E),Ls(S),t({update:S,updateRoot:$}),(R,A)=>(_(),w("div",{ref_key:"root",ref:r,class:V(f(s).b()),style:Je(f(C))},[l("div",{class:V({[f(s).m("fixed")]:g.value}),style:Je(f(k))},[be(R.$slots,"default")],6)],6))}});var a9=ze(n9,[["__file","affix.vue"]]);const Rt=(e,t)=>{if(e.install=n=>{for(const a of[e,...Object.values(t??{})])n.component(a.name,a)},t)for(const[n,a]of Object.entries(t))e[n]=a;return e},rT=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),s9=(e,t)=>(e.install=n=>{n.directive(t,e)},e),ea=e=>(e.install=Cn,e),o9=Rt(a9),r9=Ue({size:{type:ge([Number,String])},color:{type:String}}),l9=le({name:"ElIcon",inheritAttrs:!1}),i9=le({...l9,props:r9,setup(e){const t=e,n=Le("icon"),a=x(()=>{const{size:s,color:o}=t;return!s&&!o?{}:{fontSize:tn(s)?void 0:sa(s),"--color":o}});return(s,o)=>(_(),w("i",Kt({class:f(n).b(),style:f(a)},s.$attrs),[be(s.$slots,"default")],16))}});var c9=ze(i9,[["__file","icon.vue"]]);const ct=Rt(c9);function lk(){let e;const t=(a,s)=>{n(),e=window.setTimeout(a,s)},n=()=>window.clearTimeout(e);return Cd(()=>n()),{registerTimeout:t,cancelTimeout:n}}const lT=Ue({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),iT=({showAfter:e,hideAfter:t,autoClose:n,open:a,close:s})=>{const{registerTimeout:o}=lk(),{registerTimeout:r,cancelTimeout:i}=lk();return{onOpen:d=>{o(()=>{a(d);const p=f(n);gt(p)&&p>0&&r(()=>{s(d)},p)},f(e))},onClose:d=>{i(),o(()=>{s(d)},f(t))}}};/*! Element Plus Icons Vue v2.3.2 */var u9=le({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),rl=u9,d9=le({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),Bl=d9,f9=le({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Ds=f9,p9=le({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Um=p9,v9=le({name:"Back",__name:"back",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),l("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),h9=v9,m9=le({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),g9=m9,_9=le({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),cT=_9,y9=le({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),b9=y9,w9=le({name:"Check",__name:"check",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),Np=w9,C9=le({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),k9=C9,S9=le({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),l("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),Vy=S9,E9=le({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),zm=E9,$9=le({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),l("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Hl=$9,x9=le({name:"Clock",__name:"clock",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),l("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),l("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),uT=x9,T9=le({name:"Close",__name:"close",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),nr=T9,I9=le({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),Di=I9,A9=le({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),Vi=A9,N9=le({name:"Delete",__name:"delete",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),ac=N9,R9=le({name:"Document",__name:"document",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),P9=R9,M9=le({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),B9=M9,L9=le({name:"Hide",__name:"hide",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),l("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),Zv=L9,O9=le({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Zf=O9,D9=le({name:"Loading",__name:"loading",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),el=D9,V9=le({name:"Minus",__name:"minus",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),F9=V9,U9=le({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),ik=U9,z9=le({name:"More",__name:"more",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),H9=z9,K9=le({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),q9=K9,j9=le({name:"Plus",__name:"plus",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),dT=j9,W9=le({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),G9=W9,Y9=le({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),X9=Y9,Q9=le({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),J9=Q9,Z9=le({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),eV=Z9,tV=le({name:"Search",__name:"search",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),nV=tV,aV=le({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),sV=aV,oV=le({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),rV=oV,lV=le({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),yv=lV,iV=le({name:"Star",__name:"star",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),cV=iV,uV=le({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),fT=uV,dV=le({name:"View",__name:"view",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),Dr=dV,fV=le({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Hm=fV,pV=le({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),pT=pV,vV=le({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(_(),w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),hV=vV;const wn=ge([String,Object,Function]),vT={Close:nr},Fy={Close:nr,SuccessFilled:fT,InfoFilled:Zf,WarningFilled:Hm,CircleCloseFilled:zm},Fi={primary:Zf,success:fT,warning:Hm,error:zm,info:Zf},Km={validating:el,success:Vy,error:Hl},mV=["light","dark"],gV=Ue({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:qu(Fi),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:mV,default:"light"},...lT}),_V={open:()=>!0,close:e=>tn(e)||e instanceof Event},yV=le({name:"ElAlert"}),bV=le({...yV,props:gV,emits:_V,setup(e,{emit:t}){const n=e,{Close:a}=Fy,s=Ta(),o=Le("alert"),r=T(!1),i=x(()=>Fi[n.type]),c=x(()=>!!(n.description||s.default)),u=()=>{r.value=!0,t("open")},d=h=>{r.value=!1,t("close",h)},{onOpen:p,onClose:v}=iT({showAfter:gn(n,"showAfter"),hideAfter:gn(n,"hideAfter"),autoClose:gn(n,"autoClose"),open:u,close:d});return cn&&p(),(h,m)=>(_(),ue(aa,{name:f(o).b("fade"),persisted:""},{default:W(()=>[et(l("div",{class:V([f(o).b(),f(o).m(h.type),f(o).is("center",h.center),f(o).is(h.effect)]),role:"alert"},[h.showIcon&&(h.$slots.icon||f(i))?(_(),ue(f(ct),{key:0,class:V([f(o).e("icon"),{[f(o).is("big")]:f(c)}])},{default:W(()=>[be(h.$slots,"icon",{},()=>[(_(),ue(Ft(f(i))))])]),_:3},8,["class"])):K("v-if",!0),l("div",{class:V(f(o).e("content"))},[h.title||h.$slots.title?(_(),w("span",{key:0,class:V([f(o).e("title"),{"with-description":f(c)}])},[be(h.$slots,"title",{},()=>[Ce(I(h.title),1)])],2)):K("v-if",!0),f(c)?(_(),w("p",{key:1,class:V(f(o).e("description"))},[be(h.$slots,"default",{},()=>[Ce(I(h.description),1)])],2)):K("v-if",!0),h.closable?(_(),w(_e,{key:2},[h.closeText?(_(),w("div",{key:0,class:V([f(o).e("close-btn"),f(o).is("customed")]),onClick:d},I(h.closeText),3)):(_(),ue(f(ct),{key:1,class:V(f(o).e("close-btn")),onClick:f(v)},{default:W(()=>[z(f(a))]),_:1},8,["class","onClick"]))],64)):K("v-if",!0)],2)],2),[[fn,r.value]])]),_:3},8,["name"]))}});var wV=ze(bV,[["__file","alert.vue"]]);const CV=Rt(wV),Uy=()=>cn&&/firefox/i.test(window.navigator.userAgent);let co;const kV={height:"0",visibility:"hidden",overflow:Uy()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},SV=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"];function EV(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),a=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),s=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:SV.map(r=>[r,t.getPropertyValue(r)]),paddingSize:a,borderSize:s,boxSizing:n}}function ck(e,t=1,n){var a,s;co||(co=document.createElement("textarea"),((a=e.parentNode)!=null?a:document.body).appendChild(co));const{paddingSize:o,borderSize:r,boxSizing:i,contextStyle:c}=EV(e);c.forEach(([v,h])=>co==null?void 0:co.style.setProperty(v,h)),Object.entries(kV).forEach(([v,h])=>co==null?void 0:co.style.setProperty(v,h,"important")),co.value=e.value||e.placeholder||"";let u=co.scrollHeight;const d={};i==="border-box"?u=u+r:i==="content-box"&&(u=u-o),co.value="";const p=co.scrollHeight-o;if(gt(t)){let v=p*t;i==="border-box"&&(v=v+o+r),u=Math.max(v,u),d.minHeight=`${v}px`}if(gt(n)){let v=p*n;i==="border-box"&&(v=v+o+r),u=Math.min(v,u)}return d.height=`${u}px`,(s=co.parentNode)==null||s.removeChild(co),co=void 0,d}const Zn=e=>e,$V=Ue({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Ts=e=>To($V,e),Rp=Ue({id:{type:String,default:void 0},size:Ma,disabled:Boolean,modelValue:{type:ge([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ge([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:wn,default:Hl},showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:wn},prefixIcon:{type:wn},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:ge([Object,Array,String]),default:()=>Zn({})},autofocus:Boolean,rows:{type:Number,default:2},...Ts(["ariaLabel"]),inputmode:{type:ge(String),default:void 0},name:String}),xV={[Et]:e=>ut(e),input:e=>ut(e),change:e=>ut(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},TV=["class","style"],IV=/^on[A-Z]/,qm=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,a=x(()=>((n==null?void 0:n.value)||[]).concat(TV)),s=qt();return x(s?()=>{var o;return Jf(Object.entries((o=s.proxy)==null?void 0:o.$attrs).filter(([r])=>!a.value.includes(r)&&!(t&&IV.test(r))))}:()=>({}))},uk={prefix:Math.floor(Math.random()*1e4),current:0},AV=Symbol("elIdInjection"),zy=()=>qt()?Ze(AV,uk):uk,vs=e=>{const t=zy(),n=_y();return Rh(()=>f(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},Xc=Symbol("formContextKey"),tl=Symbol("formItemContextKey"),Is=()=>{const e=Ze(Xc,void 0),t=Ze(tl,void 0);return{form:e,formItem:t}},rr=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:a})=>{n||(n=T(!1)),a||(a=T(!1));const s=qt(),o=()=>{let u=s==null?void 0:s.parent;for(;u;){if(u.type.name==="ElFormItem")return!1;if(u.type.name==="ElLabelWrap")return!0;u=u.parent}return!1},r=T();let i;const c=x(()=>{var u;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((u=t.inputIds)==null?void 0:u.length)<=1)});return ft(()=>{i=Te([gn(e,"id"),n],([u,d])=>{const p=u??(d?void 0:vs().value);p!==r.value&&(t!=null&&t.removeInputId&&!o()&&(r.value&&t.removeInputId(r.value),!(a!=null&&a.value)&&!d&&p&&t.addInputId(p)),r.value=p)},{immediate:!0})}),al(()=>{i&&i(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:c,inputId:r}},hT=e=>{const t=qt();return x(()=>{var n,a;return(a=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:a[e]})},xa=(e,t={})=>{const n=T(void 0),a=t.prop?n:hT("size"),s=t.global?n:Z4(),o=t.form?{size:void 0}:Ze(Xc,void 0),r=t.formItem?{size:void 0}:Ze(tl,void 0);return x(()=>a.value||f(e)||(r==null?void 0:r.size)||(o==null?void 0:o.size)||s.value||"")},Xa=e=>{const t=hT("disabled"),n=Ze(Xc,void 0);return x(()=>t.value||f(e)||(n==null?void 0:n.disabled)||!1)},NV='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',RV=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,dk=e=>Array.from(e.querySelectorAll(NV)).filter(t=>ep(t)&&RV(t)),ep=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},eh=function(e,t,...n){let a;t.includes("mouse")||t.includes("click")?a="MouseEvents":t.includes("key")?a="KeyboardEvent":a="HTMLEvents";const s=document.createEvent(a);return s.initEvent(t,...n),e.dispatchEvent(s),e},mT=e=>!e.getAttribute("aria-owns"),gT=(e,t,n)=>{const{parentNode:a}=e;if(!a)return null;const s=a.querySelectorAll(n),o=Array.prototype.indexOf.call(s,e);return s[o+t]||null},th=e=>{e&&(e.focus(),!mT(e)&&e.click())};function Kl(e,{disabled:t,beforeFocus:n,afterFocus:a,beforeBlur:s,afterBlur:o}={}){const r=qt(),{emit:i}=r,c=Fn(),u=T(!1),d=h=>{const m=vt(n)?n(h):!1;f(t)||u.value||m||(u.value=!0,i("focus",h),a==null||a())},p=h=>{var m;const g=vt(s)?s(h):!1;f(t)||h.relatedTarget&&((m=c.value)!=null&&m.contains(h.relatedTarget))||g||(u.value=!1,i("blur",h),o==null||o())},v=h=>{var m,g;f(t)||ep(h.target)||(m=c.value)!=null&&m.contains(document.activeElement)&&c.value!==document.activeElement||(g=e.value)==null||g.focus()};return Te([c,()=>f(t)],([h,m])=>{h&&(m?h.removeAttribute("tabindex"):h.setAttribute("tabindex","-1"))}),Rn(c,"focus",d,!0),Rn(c,"blur",p,!0),Rn(c,"click",v,!0),{isFocused:u,wrapperRef:c,handleFocus:d,handleBlur:p}}const PV=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function Pp({afterComposition:e,emit:t}){const n=T(!1),a=i=>{t==null||t("compositionstart",i),n.value=!0},s=i=>{var c;t==null||t("compositionupdate",i);const u=(c=i.target)==null?void 0:c.value,d=u[u.length-1]||"";n.value=!PV(d)},o=i=>{t==null||t("compositionend",i),n.value&&(n.value=!1,it(()=>e(i)))};return{isComposing:n,handleComposition:i=>{i.type==="compositionend"?o(i):s(i)},handleCompositionStart:a,handleCompositionUpdate:s,handleCompositionEnd:o}}function MV(e){let t;function n(){if(e.value==null)return;const{selectionStart:s,selectionEnd:o,value:r}=e.value;if(s==null||o==null)return;const i=r.slice(0,Math.max(0,s)),c=r.slice(Math.max(0,o));t={selectionStart:s,selectionEnd:o,value:r,beforeTxt:i,afterTxt:c}}function a(){if(e.value==null||t==null)return;const{value:s}=e.value,{beforeTxt:o,afterTxt:r,selectionStart:i}=t;if(o==null||r==null||i==null)return;let c=s.length;if(s.endsWith(r))c=s.length-r.length;else if(s.startsWith(o))c=o.length;else{const u=o[i-1],d=s.indexOf(u,i-1);d!==-1&&(c=d+1)}e.value.setSelectionRange(c,c)}return[n,a]}const BV="ElInput",LV=le({name:BV,inheritAttrs:!1}),OV=le({...LV,props:Rp,emits:xV,setup(e,{expose:t,emit:n}){const a=e,s=Fl(),o=qm(),r=Ta(),i=x(()=>[a.type==="textarea"?g.b():m.b(),m.m(v.value),m.is("disabled",h.value),m.is("exceed",te.value),{[m.b("group")]:r.prepend||r.append,[m.m("prefix")]:r.prefix||a.prefixIcon,[m.m("suffix")]:r.suffix||a.suffixIcon||a.clearable||a.showPassword,[m.bm("suffix","password-clear")]:O.value&&G.value,[m.b("hidden")]:a.type==="hidden"},s.class]),c=x(()=>[m.e("wrapper"),m.is("focus",A.value)]),{form:u,formItem:d}=Is(),{inputId:p}=rr(a,{formItemContext:d}),v=xa(),h=Xa(),m=Le("input"),g=Le("textarea"),y=Fn(),b=Fn(),C=T(!1),k=T(!1),S=T(),$=Fn(a.inputStyle),E=x(()=>y.value||b.value),{wrapperRef:R,isFocused:A,handleFocus:N,handleBlur:P}=Kl(E,{disabled:h,afterBlur(){var me;a.validateEvent&&((me=d==null?void 0:d.validate)==null||me.call(d,"blur").catch(Me=>void 0))}}),B=x(()=>{var me;return(me=u==null?void 0:u.statusIcon)!=null?me:!1}),M=x(()=>(d==null?void 0:d.validateState)||""),j=x(()=>M.value&&Km[M.value]),F=x(()=>k.value?Dr:Zv),q=x(()=>[s.style]),L=x(()=>[a.inputStyle,$.value,{resize:a.resize}]),U=x(()=>ba(a.modelValue)?"":String(a.modelValue)),O=x(()=>a.clearable&&!h.value&&!a.readonly&&!!U.value&&(A.value||C.value)),G=x(()=>a.showPassword&&!h.value&&!!U.value),ae=x(()=>a.showWordLimit&&!!a.maxlength&&(a.type==="text"||a.type==="textarea")&&!h.value&&!a.readonly&&!a.showPassword),Z=x(()=>U.value.length),te=x(()=>!!ae.value&&Z.value>Number(a.maxlength)),ie=x(()=>!!r.suffix||!!a.suffixIcon||O.value||a.showPassword||ae.value||!!M.value&&B.value),[oe,J]=MV(y);Xn(b,me=>{if(H(),!ae.value||a.resize!=="both")return;const Me=me[0],{width:at}=Me.contentRect;S.value={right:`calc(100% - ${at+15+6}px)`}});const ee=()=>{const{type:me,autosize:Me}=a;if(!(!cn||me!=="textarea"||!b.value))if(Me){const at=Ot(Me)?Me.minRows:void 0,Qe=Ot(Me)?Me.maxRows:void 0,It=ck(b.value,at,Qe);$.value={overflowY:"hidden",...It},it(()=>{b.value.offsetHeight,$.value=It})}else $.value={minHeight:ck(b.value).minHeight}},H=(me=>{let Me=!1;return()=>{var at;if(Me||!a.autosize)return;((at=b.value)==null?void 0:at.offsetParent)===null||(me(),Me=!0)}})(ee),X=()=>{const me=E.value,Me=a.formatter?a.formatter(U.value):U.value;!me||me.value===Me||(me.value=Me)},he=async me=>{oe();let{value:Me}=me.target;if(a.formatter&&a.parser&&(Me=a.parser(Me)),!Y.value){if(Me===U.value){X();return}n(Et,Me),n(Ra,Me),await it(),X(),J()}},D=me=>{let{value:Me}=me.target;a.formatter&&a.parser&&(Me=a.parser(Me)),n(Xt,Me)},{isComposing:Y,handleCompositionStart:ne,handleCompositionUpdate:re,handleCompositionEnd:se}=Pp({emit:n,afterComposition:he}),ke=()=>{oe(),k.value=!k.value,setTimeout(J)},ye=()=>{var me;return(me=E.value)==null?void 0:me.focus()},Se=()=>{var me;return(me=E.value)==null?void 0:me.blur()},ce=me=>{C.value=!1,n("mouseleave",me)},we=me=>{C.value=!0,n("mouseenter",me)},Ae=me=>{n("keydown",me)},Fe=()=>{var me;(me=E.value)==null||me.select()},xe=()=>{n(Et,""),n(Xt,""),n("clear"),n(Ra,"")};return Te(()=>a.modelValue,()=>{var me;it(()=>ee()),a.validateEvent&&((me=d==null?void 0:d.validate)==null||me.call(d,"change").catch(Me=>void 0))}),Te(U,()=>X()),Te(()=>a.type,async()=>{await it(),X(),ee()}),ft(()=>{!a.formatter&&a.parser,X(),it(ee)}),t({input:y,textarea:b,ref:E,textareaStyle:L,autosize:gn(a,"autosize"),isComposing:Y,focus:ye,blur:Se,select:Fe,clear:xe,resizeTextarea:ee}),(me,Me)=>(_(),w("div",{class:V([f(i),{[f(m).bm("group","append")]:me.$slots.append,[f(m).bm("group","prepend")]:me.$slots.prepend}]),style:Je(f(q)),onMouseenter:we,onMouseleave:ce},[K(" input "),me.type!=="textarea"?(_(),w(_e,{key:0},[K(" prepend slot "),me.$slots.prepend?(_(),w("div",{key:0,class:V(f(m).be("group","prepend"))},[be(me.$slots,"prepend")],2)):K("v-if",!0),l("div",{ref_key:"wrapperRef",ref:R,class:V(f(c))},[K(" prefix slot "),me.$slots.prefix||me.prefixIcon?(_(),w("span",{key:0,class:V(f(m).e("prefix"))},[l("span",{class:V(f(m).e("prefix-inner"))},[be(me.$slots,"prefix"),me.prefixIcon?(_(),ue(f(ct),{key:0,class:V(f(m).e("icon"))},{default:W(()=>[(_(),ue(Ft(me.prefixIcon)))]),_:1},8,["class"])):K("v-if",!0)],2)],2)):K("v-if",!0),l("input",Kt({id:f(p),ref_key:"input",ref:y,class:f(m).e("inner")},f(o),{name:me.name,minlength:me.minlength,maxlength:me.maxlength,type:me.showPassword?k.value?"text":"password":me.type,disabled:f(h),readonly:me.readonly,autocomplete:me.autocomplete,tabindex:me.tabindex,"aria-label":me.ariaLabel,placeholder:me.placeholder,style:me.inputStyle,form:me.form,autofocus:me.autofocus,role:me.containerRole,inputmode:me.inputmode,onCompositionstart:f(ne),onCompositionupdate:f(re),onCompositionend:f(se),onInput:he,onChange:D,onKeydown:Ae}),null,16,["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode","onCompositionstart","onCompositionupdate","onCompositionend"]),K(" suffix slot "),f(ie)?(_(),w("span",{key:1,class:V(f(m).e("suffix"))},[l("span",{class:V(f(m).e("suffix-inner"))},[!f(O)||!f(G)||!f(ae)?(_(),w(_e,{key:0},[be(me.$slots,"suffix"),me.suffixIcon?(_(),ue(f(ct),{key:0,class:V(f(m).e("icon"))},{default:W(()=>[(_(),ue(Ft(me.suffixIcon)))]),_:1},8,["class"])):K("v-if",!0)],64)):K("v-if",!0),f(O)?(_(),ue(f(ct),{key:1,class:V([f(m).e("icon"),f(m).e("clear")]),onMousedown:qe(f(Cn),["prevent"]),onClick:xe},{default:W(()=>[(_(),ue(Ft(me.clearIcon)))]),_:1},8,["class","onMousedown"])):K("v-if",!0),f(G)?(_(),ue(f(ct),{key:2,class:V([f(m).e("icon"),f(m).e("password")]),onClick:ke},{default:W(()=>[(_(),ue(Ft(f(F))))]),_:1},8,["class"])):K("v-if",!0),f(ae)?(_(),w("span",{key:3,class:V(f(m).e("count"))},[l("span",{class:V(f(m).e("count-inner"))},I(f(Z))+" / "+I(me.maxlength),3)],2)):K("v-if",!0),f(M)&&f(j)&&f(B)?(_(),ue(f(ct),{key:4,class:V([f(m).e("icon"),f(m).e("validateIcon"),f(m).is("loading",f(M)==="validating")])},{default:W(()=>[(_(),ue(Ft(f(j))))]),_:1},8,["class"])):K("v-if",!0)],2)],2)):K("v-if",!0)],2),K(" append slot "),me.$slots.append?(_(),w("div",{key:1,class:V(f(m).be("group","append"))},[be(me.$slots,"append")],2)):K("v-if",!0)],64)):(_(),w(_e,{key:1},[K(" textarea "),l("textarea",Kt({id:f(p),ref_key:"textarea",ref:b,class:[f(g).e("inner"),f(m).is("focus",f(A))]},f(o),{minlength:me.minlength,maxlength:me.maxlength,tabindex:me.tabindex,disabled:f(h),readonly:me.readonly,autocomplete:me.autocomplete,style:f(L),"aria-label":me.ariaLabel,placeholder:me.placeholder,form:me.form,autofocus:me.autofocus,rows:me.rows,role:me.containerRole,onCompositionstart:f(ne),onCompositionupdate:f(re),onCompositionend:f(se),onInput:he,onFocus:f(N),onBlur:f(P),onChange:D,onKeydown:Ae}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),f(ae)?(_(),w("span",{key:0,style:Je(S.value),class:V(f(m).e("count"))},I(f(Z))+" / "+I(me.maxlength),7)):K("v-if",!0)],64))],38))}});var DV=ze(OV,[["__file","input.vue"]]);const Bs=Rt(DV),ou=4,_T={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},VV=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),Hy=Symbol("scrollbarContextKey"),FV=Ue({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),UV="Thumb",zV=le({__name:"thumb",props:FV,setup(e){const t=e,n=Ze(Hy),a=Le("scrollbar");n||Ca(UV,"can not inject scrollbar context");const s=T(),o=T(),r=T({}),i=T(!1);let c=!1,u=!1,d=0,p=0,v=cn?document.onselectstart:null;const h=x(()=>_T[t.vertical?"vertical":"horizontal"]),m=x(()=>VV({size:t.size,move:t.move,bar:h.value})),g=x(()=>s.value[h.value.offset]**2/n.wrapElement[h.value.scrollSize]/t.ratio/o.value[h.value.offset]),y=A=>{var N;if(A.stopPropagation(),A.ctrlKey||[1,2].includes(A.button))return;(N=window.getSelection())==null||N.removeAllRanges(),C(A);const P=A.currentTarget;P&&(r.value[h.value.axis]=P[h.value.offset]-(A[h.value.client]-P.getBoundingClientRect()[h.value.direction]))},b=A=>{if(!o.value||!s.value||!n.wrapElement)return;const N=Math.abs(A.target.getBoundingClientRect()[h.value.direction]-A[h.value.client]),P=o.value[h.value.offset]/2,B=(N-P)*100*g.value/s.value[h.value.offset];n.wrapElement[h.value.scroll]=B*n.wrapElement[h.value.scrollSize]/100},C=A=>{A.stopImmediatePropagation(),c=!0,d=n.wrapElement.scrollHeight,p=n.wrapElement.scrollWidth,document.addEventListener("mousemove",k),document.addEventListener("mouseup",S),v=document.onselectstart,document.onselectstart=()=>!1},k=A=>{if(!s.value||!o.value||c===!1)return;const N=r.value[h.value.axis];if(!N)return;const P=(s.value.getBoundingClientRect()[h.value.direction]-A[h.value.client])*-1,B=o.value[h.value.offset]-N,M=(P-B)*100*g.value/s.value[h.value.offset];h.value.scroll==="scrollLeft"?n.wrapElement[h.value.scroll]=M*p/100:n.wrapElement[h.value.scroll]=M*d/100},S=()=>{c=!1,r.value[h.value.axis]=0,document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",S),R(),u&&(i.value=!1)},$=()=>{u=!1,i.value=!!t.size},E=()=>{u=!0,i.value=c};on(()=>{R(),document.removeEventListener("mouseup",S)});const R=()=>{document.onselectstart!==v&&(document.onselectstart=v)};return Rn(gn(n,"scrollbarElement"),"mousemove",$),Rn(gn(n,"scrollbarElement"),"mouseleave",E),(A,N)=>(_(),ue(aa,{name:f(a).b("fade"),persisted:""},{default:W(()=>[et(l("div",{ref_key:"instance",ref:s,class:V([f(a).e("bar"),f(a).is(f(h).key)]),onMousedown:b,onClick:qe(()=>{},["stop"])},[l("div",{ref_key:"thumb",ref:o,class:V(f(a).e("thumb")),style:Je(f(m)),onMousedown:y},null,38)],42,["onClick"]),[[fn,A.always||i.value]])]),_:1},8,["name"]))}});var fk=ze(zV,[["__file","thumb.vue"]]);const HV=Ue({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),KV=le({__name:"bar",props:HV,setup(e,{expose:t}){const n=e,a=Ze(Hy),s=T(0),o=T(0),r=T(""),i=T(""),c=T(1),u=T(1);return t({handleScroll:v=>{if(v){const h=v.offsetHeight-ou,m=v.offsetWidth-ou;o.value=v.scrollTop*100/h*c.value,s.value=v.scrollLeft*100/m*u.value}},update:()=>{const v=a==null?void 0:a.wrapElement;if(!v)return;const h=v.offsetHeight-ou,m=v.offsetWidth-ou,g=h**2/v.scrollHeight,y=m**2/v.scrollWidth,b=Math.max(g,n.minSize),C=Math.max(y,n.minSize);c.value=g/(h-g)/(b/(h-b)),u.value=y/(m-y)/(C/(m-C)),i.value=b+ou(_(),w(_e,null,[z(fk,{move:s.value,ratio:u.value,size:r.value,always:v.always},null,8,["move","ratio","size","always"]),z(fk,{move:o.value,ratio:c.value,size:i.value,vertical:"",always:v.always},null,8,["move","ratio","size","always"])],64))}});var qV=ze(KV,[["__file","bar.vue"]]);const jV=Ue({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:ge([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...Ts(["ariaLabel","ariaOrientation"])}),yT={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(gt)},WV="ElScrollbar",GV=le({name:WV}),YV=le({...GV,props:jV,emits:yT,setup(e,{expose:t,emit:n}){const a=e,s=Le("scrollbar");let o,r,i,c=0,u=0,d="";const p={bottom:!1,top:!1,right:!1,left:!1},v=T(),h=T(),m=T(),g=T(),y=x(()=>{const B={};return a.height&&(B.height=sa(a.height)),a.maxHeight&&(B.maxHeight=sa(a.maxHeight)),[a.wrapStyle,B]}),b=x(()=>[a.wrapClass,s.e("wrap"),{[s.em("wrap","hidden-default")]:!a.native}]),C=x(()=>[s.e("view"),a.viewClass]),k=B=>{var M;return(M=p[B])!=null?M:!1},S={top:"bottom",bottom:"top",left:"right",right:"left"},$=B=>{const M=S[d];if(!M)return;const j=B[d],F=B[M];j&&!p[d]&&(p[d]=!0),!F&&p[M]&&(p[M]=!1)},E=()=>{var B;if(h.value){(B=g.value)==null||B.handleScroll(h.value);const M=c,j=u;c=h.value.scrollTop,u=h.value.scrollLeft;const F={bottom:c+h.value.clientHeight>=h.value.scrollHeight-a.distance,top:c<=a.distance&&M!==0,right:u+h.value.clientWidth>=h.value.scrollWidth-a.distance&&j!==u,left:u<=a.distance&&j!==0};if(n("scroll",{scrollTop:c,scrollLeft:u}),M!==c&&(d=c>M?"bottom":"top"),j!==u&&(d=u>j?"right":"left"),a.distance>0){if(k(d))return;$(F)}F[d]&&n("end-reached",d)}};function R(B,M){Ot(B)?h.value.scrollTo(B):gt(B)&>(M)&&h.value.scrollTo(B,M)}const A=B=>{gt(B)&&(h.value.scrollTop=B)},N=B=>{gt(B)&&(h.value.scrollLeft=B)},P=()=>{var B;(B=g.value)==null||B.update(),p[d]=!1};return Te(()=>a.noresize,B=>{B?(o==null||o(),r==null||r(),i==null||i()):({stop:o}=Xn(m,P),{stop:r}=Xn(h,P),i=Rn("resize",P))},{immediate:!0}),Te(()=>[a.maxHeight,a.height],()=>{a.native||it(()=>{var B;P(),h.value&&((B=g.value)==null||B.handleScroll(h.value))})}),Gt(Hy,At({scrollbarElement:v,wrapElement:h})),Sm(()=>{h.value&&(h.value.scrollTop=c,h.value.scrollLeft=u)}),ft(()=>{a.native||it(()=>{P()})}),$r(()=>P()),t({wrapRef:h,update:P,scrollTo:R,setScrollTop:A,setScrollLeft:N,handleScroll:E}),(B,M)=>(_(),w("div",{ref_key:"scrollbarRef",ref:v,class:V(f(s).b())},[l("div",{ref_key:"wrapRef",ref:h,class:V(f(b)),style:Je(f(y)),tabindex:B.tabindex,onScroll:E},[(_(),ue(Ft(B.tag),{id:B.id,ref_key:"resizeRef",ref:m,class:V(f(C)),style:Je(B.viewStyle),role:B.role,"aria-label":B.ariaLabel,"aria-orientation":B.ariaOrientation},{default:W(()=>[be(B.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),B.native?K("v-if",!0):(_(),ue(qV,{key:0,ref_key:"barRef",ref:g,always:B.always,"min-size":B.minSize},null,8,["always","min-size"]))],2))}});var XV=ze(YV,[["__file","scrollbar.vue"]]);const wr=Rt(XV),Ky=Symbol("popper"),bT=Symbol("popperContent"),wT=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],CT=Ue({role:{type:String,values:wT,default:"tooltip"}}),QV=le({name:"ElPopper",inheritAttrs:!1}),JV=le({...QV,props:CT,setup(e,{expose:t}){const n=e,a=T(),s=T(),o=T(),r=T(),i=x(()=>n.role),c={triggerRef:a,popperInstanceRef:s,contentRef:o,referenceRef:r,role:i};return t(c),Gt(Ky,c),(u,d)=>be(u.$slots,"default")}});var ZV=ze(JV,[["__file","popper.vue"]]);const eF=le({name:"ElPopperArrow",inheritAttrs:!1}),tF=le({...eF,setup(e,{expose:t}){const n=Le("popper"),{arrowRef:a,arrowStyle:s}=Ze(bT,void 0);return on(()=>{a.value=void 0}),t({arrowRef:a}),(o,r)=>(_(),w("span",{ref_key:"arrowRef",ref:a,class:V(f(n).e("arrow")),style:Je(f(s)),"data-popper-arrow":""},null,6))}});var nF=ze(tF,[["__file","arrow.vue"]]);const kT=Ue({virtualRef:{type:ge(Object)},virtualTriggering:Boolean,onMouseenter:{type:ge(Function)},onMouseleave:{type:ge(Function)},onClick:{type:ge(Function)},onKeydown:{type:ge(Function)},onFocus:{type:ge(Function)},onBlur:{type:ge(Function)},onContextmenu:{type:ge(Function)},id:String,open:Boolean}),ST=Symbol("elForwardRef"),aF=e=>{Gt(ST,{setForwardRef:n=>{e.value=n}})},sF=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),oF="ElOnlyChild",ET=le({name:oF,setup(e,{slots:t,attrs:n}){var a;const s=Ze(ST),o=sF((a=s==null?void 0:s.setForwardRef)!=null?a:Cn);return()=>{var r;const i=(r=t.default)==null?void 0:r.call(t,n);if(!i||i.length>1)return null;const c=$T(i);return c?et(Ml(c,n),[[o]]):null}}});function $T(e){if(!e)return null;const t=e;for(const n of t){if(Ot(n))switch(n.type){case ts:continue;case _d:case"svg":return pk(n);case _e:return $T(n.children);default:return n}return pk(n)}return null}function pk(e){const t=Le("only-child");return z("span",{class:t.e("content")},[e])}const rF=le({name:"ElPopperTrigger",inheritAttrs:!1}),lF=le({...rF,props:kT,setup(e,{expose:t}){const n=e,{role:a,triggerRef:s}=Ze(Ky,void 0);aF(s);const o=x(()=>i.value?n.id:void 0),r=x(()=>{if(a&&a.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=x(()=>{if(a&&a.value!=="tooltip")return a.value}),c=x(()=>i.value?`${n.open}`:void 0);let u;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return ft(()=>{Te(()=>n.virtualRef,p=>{p&&(s.value=Ha(p))},{immediate:!0}),Te(s,(p,v)=>{u==null||u(),u=void 0,no(p)&&(d.forEach(h=>{var m;const g=n[h];g&&(p.addEventListener(h.slice(2).toLowerCase(),g),(m=v==null?void 0:v.removeEventListener)==null||m.call(v,h.slice(2).toLowerCase(),g))}),ep(p)&&(u=Te([o,r,i,c],h=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((m,g)=>{ba(h[g])?p.removeAttribute(m):p.setAttribute(m,h[g])})},{immediate:!0}))),no(v)&&ep(v)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(h=>v.removeAttribute(h))},{immediate:!0})}),on(()=>{if(u==null||u(),u=void 0,s.value&&no(s.value)){const p=s.value;d.forEach(v=>{const h=n[v];h&&p.removeEventListener(v.slice(2).toLowerCase(),h)}),s.value=void 0}}),t({triggerRef:s}),(p,v)=>p.virtualTriggering?K("v-if",!0):(_(),ue(f(ET),Kt({key:0},p.$attrs,{"aria-controls":f(o),"aria-describedby":f(r),"aria-expanded":f(c),"aria-haspopup":f(i)}),{default:W(()=>[be(p.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var iF=ze(lF,[["__file","trigger.vue"]]);const X0="focus-trap.focus-after-trapped",Q0="focus-trap.focus-after-released",cF="focus-trap.focusout-prevented",vk={cancelable:!0,bubbles:!1},uF={cancelable:!0,bubbles:!1},hk="focusAfterTrapped",mk="focusAfterReleased",qy=Symbol("elFocusTrap"),jy=T(),jm=T(0),Wy=T(0);let bv=0;const xT=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0||a===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},gk=(e,t)=>{for(const n of e)if(!dF(n,t))return n},dF=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},fF=e=>{const t=xT(e),n=gk(t,e),a=gk(t.reverse(),e);return[n,a]},pF=e=>e instanceof HTMLInputElement&&"select"in e,wl=(e,t)=>{if(e&&e.focus){const n=document.activeElement;let a=!1;no(e)&&!ep(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),a=!0),e.focus({preventScroll:!0}),Wy.value=window.performance.now(),e!==n&&pF(e)&&t&&e.select(),no(e)&&a&&e.removeAttribute("tabindex")}};function _k(e,t){const n=[...e],a=e.indexOf(t);return a!==-1&&n.splice(a,1),n}const vF=()=>{let e=[];return{push:a=>{const s=e[0];s&&a!==s&&s.pause(),e=_k(e,a),e.unshift(a)},remove:a=>{var s,o;e=_k(e,a),(o=(s=e[0])==null?void 0:s.resume)==null||o.call(s)}}},hF=(e,t=!1)=>{const n=document.activeElement;for(const a of e)if(wl(a,t),document.activeElement!==n)return},yk=vF(),mF=()=>jm.value>Wy.value,wv=()=>{jy.value="pointer",jm.value=window.performance.now()},bk=()=>{jy.value="keyboard",jm.value=window.performance.now()},gF=()=>(ft(()=>{bv===0&&(document.addEventListener("mousedown",wv),document.addEventListener("touchstart",wv),document.addEventListener("keydown",bk)),bv++}),on(()=>{bv--,bv<=0&&(document.removeEventListener("mousedown",wv),document.removeEventListener("touchstart",wv),document.removeEventListener("keydown",bk))}),{focusReason:jy,lastUserFocusTimestamp:jm,lastAutomatedFocusTimestamp:Wy}),Cv=e=>new CustomEvent(cF,{...uF,detail:e}),tt={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"};let mu=[];const wk=e=>{e.code===tt.esc&&mu.forEach(t=>t(e))},_F=e=>{ft(()=>{mu.length===0&&document.addEventListener("keydown",wk),cn&&mu.push(e)}),on(()=>{mu=mu.filter(t=>t!==e),mu.length===0&&cn&&document.removeEventListener("keydown",wk)})},yF=le({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[hk,mk,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=T();let a,s;const{focusReason:o}=gF();_F(m=>{e.trapped&&!r.paused&&t("release-requested",m)});const r={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=m=>{if(!e.loop&&!e.trapped||r.paused)return;const{code:g,altKey:y,ctrlKey:b,metaKey:C,currentTarget:k,shiftKey:S}=m,{loop:$}=e,E=g===tt.tab&&!y&&!b&&!C,R=document.activeElement;if(E&&R){const A=k,[N,P]=fF(A);if(N&&P){if(!S&&R===P){const M=Cv({focusReason:o.value});t("focusout-prevented",M),M.defaultPrevented||(m.preventDefault(),$&&wl(N,!0))}else if(S&&[N,A].includes(R)){const M=Cv({focusReason:o.value});t("focusout-prevented",M),M.defaultPrevented||(m.preventDefault(),$&&wl(P,!0))}}else if(R===A){const M=Cv({focusReason:o.value});t("focusout-prevented",M),M.defaultPrevented||m.preventDefault()}}};Gt(qy,{focusTrapRef:n,onKeydown:i}),Te(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),Te([n],([m],[g])=>{m&&(m.addEventListener("keydown",i),m.addEventListener("focusin",d),m.addEventListener("focusout",p)),g&&(g.removeEventListener("keydown",i),g.removeEventListener("focusin",d),g.removeEventListener("focusout",p))});const c=m=>{t(hk,m)},u=m=>t(mk,m),d=m=>{const g=f(n);if(!g)return;const y=m.target,b=m.relatedTarget,C=y&&g.contains(y);e.trapped||b&&g.contains(b)||(a=b),C&&t("focusin",m),!r.paused&&e.trapped&&(C?s=y:wl(s,!0))},p=m=>{const g=f(n);if(!(r.paused||!g))if(e.trapped){const y=m.relatedTarget;!ba(y)&&!g.contains(y)&&setTimeout(()=>{if(!r.paused&&e.trapped){const b=Cv({focusReason:o.value});t("focusout-prevented",b),b.defaultPrevented||wl(s,!0)}},0)}else{const y=m.target;y&&g.contains(y)||t("focusout",m)}};async function v(){await it();const m=f(n);if(m){yk.push(r);const g=m.contains(document.activeElement)?a:document.activeElement;if(a=g,!m.contains(g)){const b=new Event(X0,vk);m.addEventListener(X0,c),m.dispatchEvent(b),b.defaultPrevented||it(()=>{let C=e.focusStartEl;ut(C)||(wl(C),document.activeElement!==C&&(C="first")),C==="first"&&hF(xT(m),!0),(document.activeElement===g||C==="container")&&wl(m)})}}}function h(){const m=f(n);if(m){m.removeEventListener(X0,c);const g=new CustomEvent(Q0,{...vk,detail:{focusReason:o.value}});m.addEventListener(Q0,u),m.dispatchEvent(g),!g.defaultPrevented&&(o.value=="keyboard"||!mF()||m.contains(document.activeElement))&&wl(a??document.body),m.removeEventListener(Q0,u),yk.remove(r)}}return ft(()=>{e.trapped&&v(),Te(()=>e.trapped,m=>{m?v():h()})}),on(()=>{e.trapped&&h(),n.value&&(n.value.removeEventListener("keydown",i),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",p),n.value=void 0)}),{onKeydown:i}}});function bF(e,t,n,a,s,o){return be(e.$slots,"default",{handleKeydown:e.onKeydown})}var Ed=ze(yF,[["render",bF],["__file","focus-trap.vue"]]),go="top",ar="bottom",sr="right",_o="left",Gy="auto",Mp=[go,ar,sr,_o],ju="start",tp="end",wF="clippingParents",TT="viewport",Wd="popper",CF="reference",Ck=Mp.reduce(function(e,t){return e.concat([t+"-"+ju,t+"-"+tp])},[]),ql=[].concat(Mp,[Gy]).reduce(function(e,t){return e.concat([t,t+"-"+ju,t+"-"+tp])},[]),kF="beforeRead",SF="read",EF="afterRead",$F="beforeMain",xF="main",TF="afterMain",IF="beforeWrite",AF="write",NF="afterWrite",RF=[kF,SF,EF,$F,xF,TF,IF,AF,NF];function nl(e){return e?(e.nodeName||"").toLowerCase():null}function Bo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Dc(e){var t=Bo(e).Element;return e instanceof t||e instanceof Element}function Jo(e){var t=Bo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Yy(e){if(typeof ShadowRoot>"u")return!1;var t=Bo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function PF(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},s=t.attributes[n]||{},o=t.elements[n];!Jo(o)||!nl(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(r){var i=s[r];i===!1?o.removeAttribute(r):o.setAttribute(r,i===!0?"":i)}))})}function MF(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var s=t.elements[a],o=t.attributes[a]||{},r=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),i=r.reduce(function(c,u){return c[u]="",c},{});!Jo(s)||!nl(s)||(Object.assign(s.style,i),Object.keys(o).forEach(function(c){s.removeAttribute(c)}))})}}var IT={name:"applyStyles",enabled:!0,phase:"write",fn:PF,effect:MF,requires:["computeStyles"]};function Xr(e){return e.split("-")[0]}var $c=Math.max,Bh=Math.min,Wu=Math.round;function v_(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function AT(){return!/^((?!chrome|android).)*safari/i.test(v_())}function Gu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),s=1,o=1;t&&Jo(e)&&(s=e.offsetWidth>0&&Wu(a.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Wu(a.height)/e.offsetHeight||1);var r=Dc(e)?Bo(e):window,i=r.visualViewport,c=!AT()&&n,u=(a.left+(c&&i?i.offsetLeft:0))/s,d=(a.top+(c&&i?i.offsetTop:0))/o,p=a.width/s,v=a.height/o;return{width:p,height:v,top:d,right:u+p,bottom:d+v,left:u,x:u,y:d}}function Xy(e){var t=Gu(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function NT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Yy(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Ll(e){return Bo(e).getComputedStyle(e)}function BF(e){return["table","td","th"].indexOf(nl(e))>=0}function ji(e){return((Dc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wm(e){return nl(e)==="html"?e:e.assignedSlot||e.parentNode||(Yy(e)?e.host:null)||ji(e)}function kk(e){return!Jo(e)||Ll(e).position==="fixed"?null:e.offsetParent}function LF(e){var t=/firefox/i.test(v_()),n=/Trident/i.test(v_());if(n&&Jo(e)){var a=Ll(e);if(a.position==="fixed")return null}var s=Wm(e);for(Yy(s)&&(s=s.host);Jo(s)&&["html","body"].indexOf(nl(s))<0;){var o=Ll(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function Bp(e){for(var t=Bo(e),n=kk(e);n&&BF(n)&&Ll(n).position==="static";)n=kk(n);return n&&(nl(n)==="html"||nl(n)==="body"&&Ll(n).position==="static")?t:n||LF(e)||t}function Qy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xf(e,t,n){return $c(e,Bh(t,n))}function OF(e,t,n){var a=xf(e,t,n);return a>n?n:a}function RT(){return{top:0,right:0,bottom:0,left:0}}function PT(e){return Object.assign({},RT(),e)}function MT(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var DF=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,PT(typeof e!="number"?e:MT(e,Mp))};function VF(e){var t,n=e.state,a=e.name,s=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,i=Xr(n.placement),c=Qy(i),u=[_o,sr].indexOf(i)>=0,d=u?"height":"width";if(!(!o||!r)){var p=DF(s.padding,n),v=Xy(o),h=c==="y"?go:_o,m=c==="y"?ar:sr,g=n.rects.reference[d]+n.rects.reference[c]-r[c]-n.rects.popper[d],y=r[c]-n.rects.reference[c],b=Bp(o),C=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,k=g/2-y/2,S=p[h],$=C-v[d]-p[m],E=C/2-v[d]/2+k,R=xf(S,E,$),A=c;n.modifiersData[a]=(t={},t[A]=R,t.centerOffset=R-E,t)}}function FF(e){var t=e.state,n=e.options,a=n.element,s=a===void 0?"[data-popper-arrow]":a;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||NT(t.elements.popper,s)&&(t.elements.arrow=s))}var UF={name:"arrow",enabled:!0,phase:"main",fn:VF,effect:FF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yu(e){return e.split("-")[1]}var zF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function HF(e,t){var n=e.x,a=e.y,s=t.devicePixelRatio||1;return{x:Wu(n*s)/s||0,y:Wu(a*s)/s||0}}function Sk(e){var t,n=e.popper,a=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,i=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,v=r.x,h=v===void 0?0:v,m=r.y,g=m===void 0?0:m,y=typeof d=="function"?d({x:h,y:g}):{x:h,y:g};h=y.x,g=y.y;var b=r.hasOwnProperty("x"),C=r.hasOwnProperty("y"),k=_o,S=go,$=window;if(u){var E=Bp(n),R="clientHeight",A="clientWidth";if(E===Bo(n)&&(E=ji(n),Ll(E).position!=="static"&&i==="absolute"&&(R="scrollHeight",A="scrollWidth")),E=E,s===go||(s===_o||s===sr)&&o===tp){S=ar;var N=p&&E===$&&$.visualViewport?$.visualViewport.height:E[R];g-=N-a.height,g*=c?1:-1}if(s===_o||(s===go||s===ar)&&o===tp){k=sr;var P=p&&E===$&&$.visualViewport?$.visualViewport.width:E[A];h-=P-a.width,h*=c?1:-1}}var B=Object.assign({position:i},u&&zF),M=d===!0?HF({x:h,y:g},Bo(n)):{x:h,y:g};if(h=M.x,g=M.y,c){var j;return Object.assign({},B,(j={},j[S]=C?"0":"",j[k]=b?"0":"",j.transform=($.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",j))}return Object.assign({},B,(t={},t[S]=C?g+"px":"",t[k]=b?h+"px":"",t.transform="",t))}function KF(e){var t=e.state,n=e.options,a=n.gpuAcceleration,s=a===void 0?!0:a,o=n.adaptive,r=o===void 0?!0:o,i=n.roundOffsets,c=i===void 0?!0:i,u={placement:Xr(t.placement),variation:Yu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Sk(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Sk(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var BT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:KF,data:{}},kv={passive:!0};function qF(e){var t=e.state,n=e.instance,a=e.options,s=a.scroll,o=s===void 0?!0:s,r=a.resize,i=r===void 0?!0:r,c=Bo(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",n.update,kv)}),i&&c.addEventListener("resize",n.update,kv),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",n.update,kv)}),i&&c.removeEventListener("resize",n.update,kv)}}var LT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qF,data:{}},jF={left:"right",right:"left",bottom:"top",top:"bottom"};function nh(e){return e.replace(/left|right|bottom|top/g,function(t){return jF[t]})}var WF={start:"end",end:"start"};function Ek(e){return e.replace(/start|end/g,function(t){return WF[t]})}function Jy(e){var t=Bo(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function Zy(e){return Gu(ji(e)).left+Jy(e).scrollLeft}function GF(e,t){var n=Bo(e),a=ji(e),s=n.visualViewport,o=a.clientWidth,r=a.clientHeight,i=0,c=0;if(s){o=s.width,r=s.height;var u=AT();(u||!u&&t==="fixed")&&(i=s.offsetLeft,c=s.offsetTop)}return{width:o,height:r,x:i+Zy(e),y:c}}function YF(e){var t,n=ji(e),a=Jy(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=$c(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=$c(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),i=-a.scrollLeft+Zy(e),c=-a.scrollTop;return Ll(s||n).direction==="rtl"&&(i+=$c(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:i,y:c}}function eb(e){var t=Ll(e),n=t.overflow,a=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+a)}function OT(e){return["html","body","#document"].indexOf(nl(e))>=0?e.ownerDocument.body:Jo(e)&&eb(e)?e:OT(Wm(e))}function Tf(e,t){var n;t===void 0&&(t=[]);var a=OT(e),s=a===((n=e.ownerDocument)==null?void 0:n.body),o=Bo(a),r=s?[o].concat(o.visualViewport||[],eb(a)?a:[]):a,i=t.concat(r);return s?i:i.concat(Tf(Wm(r)))}function h_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function XF(e,t){var n=Gu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function $k(e,t,n){return t===TT?h_(GF(e,n)):Dc(t)?XF(t,n):h_(YF(ji(e)))}function QF(e){var t=Tf(Wm(e)),n=["absolute","fixed"].indexOf(Ll(e).position)>=0,a=n&&Jo(e)?Bp(e):e;return Dc(a)?t.filter(function(s){return Dc(s)&&NT(s,a)&&nl(s)!=="body"}):[]}function JF(e,t,n,a){var s=t==="clippingParents"?QF(e):[].concat(t),o=[].concat(s,[n]),r=o[0],i=o.reduce(function(c,u){var d=$k(e,u,a);return c.top=$c(d.top,c.top),c.right=Bh(d.right,c.right),c.bottom=Bh(d.bottom,c.bottom),c.left=$c(d.left,c.left),c},$k(e,r,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function DT(e){var t=e.reference,n=e.element,a=e.placement,s=a?Xr(a):null,o=a?Yu(a):null,r=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,c;switch(s){case go:c={x:r,y:t.y-n.height};break;case ar:c={x:r,y:t.y+t.height};break;case sr:c={x:t.x+t.width,y:i};break;case _o:c={x:t.x-n.width,y:i};break;default:c={x:t.x,y:t.y}}var u=s?Qy(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case ju:c[u]=c[u]-(t[d]/2-n[d]/2);break;case tp:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function np(e,t){t===void 0&&(t={});var n=t,a=n.placement,s=a===void 0?e.placement:a,o=n.strategy,r=o===void 0?e.strategy:o,i=n.boundary,c=i===void 0?wF:i,u=n.rootBoundary,d=u===void 0?TT:u,p=n.elementContext,v=p===void 0?Wd:p,h=n.altBoundary,m=h===void 0?!1:h,g=n.padding,y=g===void 0?0:g,b=PT(typeof y!="number"?y:MT(y,Mp)),C=v===Wd?CF:Wd,k=e.rects.popper,S=e.elements[m?C:v],$=JF(Dc(S)?S:S.contextElement||ji(e.elements.popper),c,d,r),E=Gu(e.elements.reference),R=DT({reference:E,element:k,placement:s}),A=h_(Object.assign({},k,R)),N=v===Wd?A:E,P={top:$.top-N.top+b.top,bottom:N.bottom-$.bottom+b.bottom,left:$.left-N.left+b.left,right:N.right-$.right+b.right},B=e.modifiersData.offset;if(v===Wd&&B){var M=B[s];Object.keys(P).forEach(function(j){var F=[sr,ar].indexOf(j)>=0?1:-1,q=[go,ar].indexOf(j)>=0?"y":"x";P[j]+=M[q]*F})}return P}function ZF(e,t){t===void 0&&(t={});var n=t,a=n.placement,s=n.boundary,o=n.rootBoundary,r=n.padding,i=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?ql:c,d=Yu(a),p=d?i?Ck:Ck.filter(function(m){return Yu(m)===d}):Mp,v=p.filter(function(m){return u.indexOf(m)>=0});v.length===0&&(v=p);var h=v.reduce(function(m,g){return m[g]=np(e,{placement:g,boundary:s,rootBoundary:o,padding:r})[Xr(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function eU(e){if(Xr(e)===Gy)return[];var t=nh(e);return[Ek(e),t,Ek(t)]}function tU(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,r=n.altAxis,i=r===void 0?!0:r,c=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,v=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,g=n.allowedAutoPlacements,y=t.options.placement,b=Xr(y),C=b===y,k=c||(C||!m?[nh(y)]:eU(y)),S=[y].concat(k).reduce(function(oe,J){return oe.concat(Xr(J)===Gy?ZF(t,{placement:J,boundary:d,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:g}):J)},[]),$=t.rects.reference,E=t.rects.popper,R=new Map,A=!0,N=S[0],P=0;P=0,q=F?"width":"height",L=np(t,{placement:B,boundary:d,rootBoundary:p,altBoundary:v,padding:u}),U=F?j?sr:_o:j?ar:go;$[q]>E[q]&&(U=nh(U));var O=nh(U),G=[];if(o&&G.push(L[M]<=0),i&&G.push(L[U]<=0,L[O]<=0),G.every(function(oe){return oe})){N=B,A=!1;break}R.set(B,G)}if(A)for(var ae=m?3:1,Z=function(oe){var J=S.find(function(ee){var Q=R.get(ee);if(Q)return Q.slice(0,oe).every(function(H){return H})});if(J)return N=J,"break"},te=ae;te>0;te--){var ie=Z(te);if(ie==="break")break}t.placement!==N&&(t.modifiersData[a]._skip=!0,t.placement=N,t.reset=!0)}}var nU={name:"flip",enabled:!0,phase:"main",fn:tU,requiresIfExists:["offset"],data:{_skip:!1}};function xk(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Tk(e){return[go,sr,ar,_o].some(function(t){return e[t]>=0})}function aU(e){var t=e.state,n=e.name,a=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=np(t,{elementContext:"reference"}),i=np(t,{altBoundary:!0}),c=xk(r,a),u=xk(i,s,o),d=Tk(c),p=Tk(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}var sU={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:aU};function oU(e,t,n){var a=Xr(e),s=[_o,go].indexOf(a)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=o[0],i=o[1];return r=r||0,i=(i||0)*s,[_o,sr].indexOf(a)>=0?{x:i,y:r}:{x:r,y:i}}function rU(e){var t=e.state,n=e.options,a=e.name,s=n.offset,o=s===void 0?[0,0]:s,r=ql.reduce(function(d,p){return d[p]=oU(p,t.rects,o),d},{}),i=r[t.placement],c=i.x,u=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[a]=r}var lU={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rU};function iU(e){var t=e.state,n=e.name;t.modifiersData[n]=DT({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var VT={name:"popperOffsets",enabled:!0,phase:"read",fn:iU,data:{}};function cU(e){return e==="x"?"y":"x"}function uU(e){var t=e.state,n=e.options,a=e.name,s=n.mainAxis,o=s===void 0?!0:s,r=n.altAxis,i=r===void 0?!1:r,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,v=n.tether,h=v===void 0?!0:v,m=n.tetherOffset,g=m===void 0?0:m,y=np(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),b=Xr(t.placement),C=Yu(t.placement),k=!C,S=Qy(b),$=cU(S),E=t.modifiersData.popperOffsets,R=t.rects.reference,A=t.rects.popper,N=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,P=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(E){if(o){var j,F=S==="y"?go:_o,q=S==="y"?ar:sr,L=S==="y"?"height":"width",U=E[S],O=U+y[F],G=U-y[q],ae=h?-A[L]/2:0,Z=C===ju?R[L]:A[L],te=C===ju?-A[L]:-R[L],ie=t.elements.arrow,oe=h&&ie?Xy(ie):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:RT(),ee=J[F],Q=J[q],H=xf(0,R[L],oe[L]),X=k?R[L]/2-ae-H-ee-P.mainAxis:Z-H-ee-P.mainAxis,he=k?-R[L]/2+ae+H+Q+P.mainAxis:te+H+Q+P.mainAxis,D=t.elements.arrow&&Bp(t.elements.arrow),Y=D?S==="y"?D.clientTop||0:D.clientLeft||0:0,ne=(j=B==null?void 0:B[S])!=null?j:0,re=U+X-ne-Y,se=U+he-ne,ke=xf(h?Bh(O,re):O,U,h?$c(G,se):G);E[S]=ke,M[S]=ke-U}if(i){var ye,Se=S==="x"?go:_o,ce=S==="x"?ar:sr,we=E[$],Ae=$==="y"?"height":"width",Fe=we+y[Se],xe=we-y[ce],me=[go,_o].indexOf(b)!==-1,Me=(ye=B==null?void 0:B[$])!=null?ye:0,at=me?Fe:we-R[Ae]-A[Ae]-Me+P.altAxis,Qe=me?we+R[Ae]+A[Ae]-Me-P.altAxis:xe,It=h&&me?OF(at,we,Qe):xf(h?at:Fe,we,h?Qe:xe);E[$]=It,M[$]=It-we}t.modifiersData[a]=M}}var dU={name:"preventOverflow",enabled:!0,phase:"main",fn:uU,requiresIfExists:["offset"]};function fU(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pU(e){return e===Bo(e)||!Jo(e)?Jy(e):fU(e)}function vU(e){var t=e.getBoundingClientRect(),n=Wu(t.width)/e.offsetWidth||1,a=Wu(t.height)/e.offsetHeight||1;return n!==1||a!==1}function hU(e,t,n){n===void 0&&(n=!1);var a=Jo(t),s=Jo(t)&&vU(t),o=ji(t),r=Gu(e,s,n),i={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&((nl(t)!=="body"||eb(o))&&(i=pU(t)),Jo(t)?(c=Gu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Zy(o))),{x:r.left+i.scrollLeft-c.x,y:r.top+i.scrollTop-c.y,width:r.width,height:r.height}}function mU(e){var t=new Map,n=new Set,a=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(i){if(!n.has(i)){var c=t.get(i);c&&s(c)}}),a.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),a}function gU(e){var t=mU(e);return RF.reduce(function(n,a){return n.concat(t.filter(function(s){return s.phase===a}))},[])}function _U(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function yU(e){var t=e.reduce(function(n,a){var s=n[a.name];return n[a.name]=s?Object.assign({},s,a,{options:Object.assign({},s.options,a.options),data:Object.assign({},s.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ik={placement:"bottom",modifiers:[],strategy:"absolute"};function Ak(){for(var e=arguments.length,t=new Array(e),n=0;n({})},strategy:{type:String,values:kU,default:"absolute"}}),UT=Ue({...SU,...FT,id:String,style:{type:ge([String,Array,Object])},className:{type:ge([String,Array,Object])},effect:{type:ge(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:ge([String,Array,Object])},popperStyle:{type:ge([String,Array,Object])},referenceEl:{type:ge(Object)},triggerTargetEl:{type:ge(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Ts(["ariaLabel"])}),EU={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},$U=(e,t)=>{const n=T(!1),a=T();return{focusStartRef:a,trapped:n,onFocusAfterReleased:u=>{var d;((d=u.detail)==null?void 0:d.focusReason)!=="pointer"&&(a.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(a.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},xU=(e,t=[])=>{const{placement:n,strategy:a,popperOptions:s}=e,o={placement:n,strategy:a,...s,modifiers:[...IU(e),...t]};return AU(o,s==null?void 0:s.modifiers),o},TU=e=>{if(cn)return Ha(e)};function IU(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:a}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:a}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function AU(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const NU=(e,t,n={})=>{const a={name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const u=RU(c);Object.assign(r.value,u)},requires:["computeStyles"]},s=x(()=>{const{onFirstUpdate:c,placement:u,strategy:d,modifiers:p}=f(n);return{onFirstUpdate:c,placement:u||"bottom",strategy:d||"absolute",modifiers:[...p||[],a,{name:"applyStyles",enabled:!1}]}}),o=Fn(),r=T({styles:{popper:{position:f(s).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return Te(s,c=>{const u=f(o);u&&u.setOptions(c)},{deep:!0}),Te([e,t],([c,u])=>{i(),!(!c||!u)&&(o.value=CU(c,u,f(s)))}),on(()=>{i()}),{state:x(()=>{var c;return{...((c=f(o))==null?void 0:c.state)||{}}}),styles:x(()=>f(r).styles),attributes:x(()=>f(r).attributes),update:()=>{var c;return(c=f(o))==null?void 0:c.update()},forceUpdate:()=>{var c;return(c=f(o))==null?void 0:c.forceUpdate()},instanceRef:x(()=>f(o))}};function RU(e){const t=Object.keys(e.elements),n=Jf(t.map(s=>[s,e.styles[s]||{}])),a=Jf(t.map(s=>[s,e.attributes[s]]));return{styles:n,attributes:a}}const PU=0,MU=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:a,role:s}=Ze(Ky,void 0),o=T(),r=x(()=>e.arrowOffset),i=x(()=>({name:"eventListeners",enabled:!!e.visible})),c=x(()=>{var b;const C=f(o),k=(b=f(r))!=null?b:PU;return{name:"arrow",enabled:!FD(C),options:{element:C,padding:k}}}),u=x(()=>({onFirstUpdate:()=>{m()},...xU(e,[f(c),f(i)])})),d=x(()=>TU(e.referenceEl)||f(a)),{attributes:p,state:v,styles:h,update:m,forceUpdate:g,instanceRef:y}=NU(d,n,u);return Te(y,b=>t.value=b,{flush:"sync"}),ft(()=>{Te(()=>{var b;return(b=f(d))==null?void 0:b.getBoundingClientRect()},()=>{m()})}),{attributes:p,arrowRef:o,contentRef:n,instanceRef:y,state:v,styles:h,role:s,forceUpdate:g,update:m}},BU=(e,{attributes:t,styles:n,role:a})=>{const{nextZIndex:s}=kd(),o=Le("popper"),r=x(()=>f(t).popper),i=T(gt(e.zIndex)?e.zIndex:s()),c=x(()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass]),u=x(()=>[{zIndex:f(i)},f(n).popper,e.popperStyle||{}]),d=x(()=>a.value==="dialog"?"false":void 0),p=x(()=>f(n).arrow||{});return{ariaModal:d,arrowStyle:p,contentAttrs:r,contentClass:c,contentStyle:u,contentZIndex:i,updateZIndex:()=>{i.value=gt(e.zIndex)?e.zIndex:s()}}},LU=le({name:"ElPopperContent"}),OU=le({...LU,props:UT,emits:EU,setup(e,{expose:t,emit:n}){const a=e,{focusStartRef:s,trapped:o,onFocusAfterReleased:r,onFocusAfterTrapped:i,onFocusInTrap:c,onFocusoutPrevented:u,onReleaseRequested:d}=$U(a,n),{attributes:p,arrowRef:v,contentRef:h,styles:m,instanceRef:g,role:y,update:b}=MU(a),{ariaModal:C,arrowStyle:k,contentAttrs:S,contentClass:$,contentStyle:E,updateZIndex:R}=BU(a,{styles:m,attributes:p,role:y}),A=Ze(tl,void 0);Gt(bT,{arrowStyle:k,arrowRef:v}),A&&Gt(tl,{...A,addInputId:Cn,removeInputId:Cn});let N;const P=(M=!0)=>{b(),M&&R()},B=()=>{P(!1),a.visible&&a.focusOnShow?o.value=!0:a.visible===!1&&(o.value=!1)};return ft(()=>{Te(()=>a.triggerTargetEl,(M,j)=>{N==null||N(),N=void 0;const F=f(M||h.value),q=f(j||h.value);no(F)&&(N=Te([y,()=>a.ariaLabel,C,()=>a.id],L=>{["role","aria-label","aria-modal","id"].forEach((U,O)=>{ba(L[O])?F.removeAttribute(U):F.setAttribute(U,L[O])})},{immediate:!0})),q!==F&&no(q)&&["role","aria-label","aria-modal","id"].forEach(L=>{q.removeAttribute(L)})},{immediate:!0}),Te(()=>a.visible,B,{immediate:!0})}),on(()=>{N==null||N(),N=void 0}),t({popperContentRef:h,popperInstanceRef:g,updatePopper:P,contentStyle:E}),(M,j)=>(_(),w("div",Kt({ref_key:"contentRef",ref:h},f(S),{style:f(E),class:f($),tabindex:"-1",onMouseenter:F=>M.$emit("mouseenter",F),onMouseleave:F=>M.$emit("mouseleave",F)}),[z(f(Ed),{trapped:f(o),"trap-on-focus-in":!0,"focus-trap-el":f(h),"focus-start-el":f(s),onFocusAfterTrapped:f(i),onFocusAfterReleased:f(r),onFocusin:f(c),onFocusoutPrevented:f(u),onReleaseRequested:f(d)},{default:W(()=>[be(M.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var DU=ze(OU,[["__file","content.vue"]]);const zT=Rt(ZV),nb=Symbol("elTooltip"),Gm=Ue({to:{type:ge([String,Object]),required:!0},disabled:Boolean}),Yn=Ue({...lT,...UT,appendTo:{type:Gm.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:ge(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Ts(["ariaLabel"])}),Pu=Ue({...kT,disabled:Boolean,trigger:{type:ge([String,Array]),default:"hover"},triggerKeys:{type:ge(Array),default:()=>[tt.enter,tt.numpadEnter,tt.space]}}),VU=Tr({type:ge(Boolean),default:null}),FU=Tr({type:ge(Function)}),UU=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,a=[t],s={[e]:VU,[n]:FU};return{useModelToggle:({indicator:r,toggleReason:i,shouldHideWhenRouteChanges:c,shouldProceed:u,onShow:d,onHide:p})=>{const v=qt(),{emit:h}=v,m=v.props,g=x(()=>vt(m[n])),y=x(()=>m[e]===null),b=R=>{r.value!==!0&&(r.value=!0,i&&(i.value=R),vt(d)&&d(R))},C=R=>{r.value!==!1&&(r.value=!1,i&&(i.value=R),vt(p)&&p(R))},k=R=>{if(m.disabled===!0||vt(u)&&!u())return;const A=g.value&&cn;A&&h(t,!0),(y.value||!A)&&b(R)},S=R=>{if(m.disabled===!0||!cn)return;const A=g.value&&cn;A&&h(t,!1),(y.value||!A)&&C(R)},$=R=>{En(R)&&(m.disabled&&R?g.value&&h(t,!1):r.value!==R&&(R?b():C()))},E=()=>{r.value?S():k()};return Te(()=>m[e],$),c&&v.appContext.config.globalProperties.$route!==void 0&&Te(()=>({...v.proxy.$route}),()=>{c.value&&r.value&&S()}),ft(()=>{$(m[e])}),{hide:S,show:k,toggle:E,hasUpdateHandler:g}},useModelToggleProps:s,useModelToggleEmits:a}},{useModelToggleProps:zU,useModelToggleEmits:HU,useModelToggle:KU}=UU("visible"),qU=Ue({...CT,...zU,...Yn,...Pu,...FT,showArrow:{type:Boolean,default:!0}}),jU=[...HU,"before-show","before-hide","show","hide","open","close"],WU=(e,t)=>Ve(e)?e.includes(t):e===t,ru=(e,t,n)=>a=>{WU(f(e),t)&&n(a)},ca=(e,t,{checkForDefaultPrevented:n=!0}={})=>s=>{const o=e==null?void 0:e(s);if(n===!1||!o)return t==null?void 0:t(s)},Nk=e=>t=>t.pointerType==="mouse"?e(t):void 0,GU=le({name:"ElTooltipTrigger"}),YU=le({...GU,props:Pu,setup(e,{expose:t}){const n=e,a=Le("tooltip"),{controlled:s,id:o,open:r,onOpen:i,onClose:c,onToggle:u}=Ze(nb,void 0),d=T(null),p=()=>{if(f(s)||n.disabled)return!0},v=gn(n,"trigger"),h=ca(p,ru(v,"hover",i)),m=ca(p,ru(v,"hover",c)),g=ca(p,ru(v,"click",S=>{S.button===0&&u(S)})),y=ca(p,ru(v,"focus",i)),b=ca(p,ru(v,"focus",c)),C=ca(p,ru(v,"contextmenu",S=>{S.preventDefault(),u(S)})),k=ca(p,S=>{const{code:$}=S;n.triggerKeys.includes($)&&(S.preventDefault(),u(S))});return t({triggerRef:d}),(S,$)=>(_(),ue(f(iF),{id:f(o),"virtual-ref":S.virtualRef,open:f(r),"virtual-triggering":S.virtualTriggering,class:V(f(a).e("trigger")),onBlur:f(b),onClick:f(g),onContextmenu:f(C),onFocus:f(y),onMouseenter:f(h),onMouseleave:f(m),onKeydown:f(k)},{default:W(()=>[be(S.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var XU=ze(YU,[["__file","trigger.vue"]]);const QU=le({__name:"teleport",props:Gm,setup(e){return(t,n)=>t.disabled?be(t.$slots,"default",{key:0}):(_(),ue(Nx,{key:1,to:t.to},[be(t.$slots,"default")],8,["to"]))}});var JU=ze(QU,[["__file","teleport.vue"]]);const $d=Rt(JU),HT=()=>{const e=_y(),t=zy(),n=x(()=>`${e.value}-popper-container-${t.prefix}`),a=x(()=>`#${n.value}`);return{id:n,selector:a}},ZU=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},ez=()=>{const{id:e,selector:t}=HT();return $m(()=>{cn&&(document.body.querySelector(t.value)||ZU(e.value))}),{id:e,selector:t}},tz=le({name:"ElTooltipContent",inheritAttrs:!1}),nz=le({...tz,props:Yn,setup(e,{expose:t}){const n=e,{selector:a}=HT(),s=Le("tooltip"),o=T(),r=Rh(()=>{var O;return(O=o.value)==null?void 0:O.popperContentRef});let i;const{controlled:c,id:u,open:d,trigger:p,onClose:v,onOpen:h,onShow:m,onHide:g,onBeforeShow:y,onBeforeHide:b}=Ze(nb,void 0),C=x(()=>n.transition||`${s.namespace.value}-fade-in-linear`),k=x(()=>n.persistent);on(()=>{i==null||i()});const S=x(()=>f(k)?!0:f(d)),$=x(()=>n.disabled?!1:f(d)),E=x(()=>n.appendTo||a.value),R=x(()=>{var O;return(O=n.style)!=null?O:{}}),A=T(!0),N=()=>{g(),U()&&wl(document.body),A.value=!0},P=()=>{if(f(c))return!0},B=ca(P,()=>{n.enterable&&f(p)==="hover"&&h()}),M=ca(P,()=>{f(p)==="hover"&&v()}),j=()=>{var O,G;(G=(O=o.value)==null?void 0:O.updatePopper)==null||G.call(O),y==null||y()},F=()=>{b==null||b()},q=()=>{m()},L=()=>{n.virtualTriggering||v()},U=O=>{var G;const ae=(G=o.value)==null?void 0:G.popperContentRef,Z=(O==null?void 0:O.relatedTarget)||document.activeElement;return ae==null?void 0:ae.contains(Z)};return Te(()=>f(d),O=>{O?(A.value=!1,i=My(r,()=>{if(f(c))return;f(p)!=="hover"&&v()})):i==null||i()},{flush:"post"}),Te(()=>n.content,()=>{var O,G;(G=(O=o.value)==null?void 0:O.updatePopper)==null||G.call(O)}),t({contentRef:o,isFocusInsideContent:U}),(O,G)=>(_(),ue(f($d),{disabled:!O.teleported,to:f(E)},{default:W(()=>[f(S)||!A.value?(_(),ue(aa,{key:0,name:f(C),appear:!f(k),onAfterLeave:N,onBeforeEnter:j,onAfterEnter:q,onBeforeLeave:F,persisted:""},{default:W(()=>[et(z(f(DU),Kt({id:f(u),ref_key:"contentRef",ref:o},O.$attrs,{"aria-label":O.ariaLabel,"aria-hidden":A.value,"boundaries-padding":O.boundariesPadding,"fallback-placements":O.fallbackPlacements,"gpu-acceleration":O.gpuAcceleration,offset:O.offset,placement:O.placement,"popper-options":O.popperOptions,"arrow-offset":O.arrowOffset,strategy:O.strategy,effect:O.effect,enterable:O.enterable,pure:O.pure,"popper-class":O.popperClass,"popper-style":[O.popperStyle,f(R)],"reference-el":O.referenceEl,"trigger-target-el":O.triggerTargetEl,visible:f($),"z-index":O.zIndex,onMouseenter:f(B),onMouseleave:f(M),onBlur:L,onClose:f(v)}),{default:W(()=>[be(O.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"]),[[fn,f($)]])]),_:3},8,["name","appear"])):K("v-if",!0)]),_:3},8,["disabled","to"]))}});var az=ze(nz,[["__file","content.vue"]]);const sz=le({name:"ElTooltip"}),oz=le({...sz,props:qU,emits:jU,setup(e,{expose:t,emit:n}){const a=e;ez();const s=Le("tooltip"),o=vs(),r=T(),i=T(),c=()=>{var k;const S=f(r);S&&((k=S.popperInstanceRef)==null||k.update())},u=T(!1),d=T(),{show:p,hide:v,hasUpdateHandler:h}=KU({indicator:u,toggleReason:d}),{onOpen:m,onClose:g}=iT({showAfter:gn(a,"showAfter"),hideAfter:gn(a,"hideAfter"),autoClose:gn(a,"autoClose"),open:p,close:v}),y=x(()=>En(a.visible)&&!h.value),b=x(()=>[s.b(),a.popperClass]);Gt(nb,{controlled:y,id:o,open:md(u),trigger:gn(a,"trigger"),onOpen:m,onClose:g,onToggle:k=>{f(u)?g(k):m(k)},onShow:()=>{n("show",d.value)},onHide:()=>{n("hide",d.value)},onBeforeShow:()=>{n("before-show",d.value)},onBeforeHide:()=>{n("before-hide",d.value)},updatePopper:c}),Te(()=>a.disabled,k=>{k&&u.value&&(u.value=!1)});const C=k=>{var S;return(S=i.value)==null?void 0:S.isFocusInsideContent(k)};return yx(()=>u.value&&v()),t({popperRef:r,contentRef:i,isFocusInsideContent:C,updatePopper:c,onOpen:m,onClose:g,hide:v}),(k,S)=>(_(),ue(f(zT),{ref_key:"popperRef",ref:r,role:k.role},{default:W(()=>[z(XU,{disabled:k.disabled,trigger:k.trigger,"trigger-keys":k.triggerKeys,"virtual-ref":k.virtualRef,"virtual-triggering":k.virtualTriggering},{default:W(()=>[k.$slots.default?be(k.$slots,"default",{key:0}):K("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),z(az,{ref_key:"contentRef",ref:i,"aria-label":k.ariaLabel,"boundaries-padding":k.boundariesPadding,content:k.content,disabled:k.disabled,effect:k.effect,enterable:k.enterable,"fallback-placements":k.fallbackPlacements,"hide-after":k.hideAfter,"gpu-acceleration":k.gpuAcceleration,offset:k.offset,persistent:k.persistent,"popper-class":f(b),"popper-style":k.popperStyle,placement:k.placement,"popper-options":k.popperOptions,"arrow-offset":k.arrowOffset,pure:k.pure,"raw-content":k.rawContent,"reference-el":k.referenceEl,"trigger-target-el":k.triggerTargetEl,"show-after":k.showAfter,strategy:k.strategy,teleported:k.teleported,transition:k.transition,"virtual-triggering":k.virtualTriggering,"z-index":k.zIndex,"append-to":k.appendTo},{default:W(()=>[be(k.$slots,"content",{},()=>[k.rawContent?(_(),w("span",{key:0,innerHTML:k.content},null,8,["innerHTML"])):(_(),w("span",{key:1},I(k.content),1))]),k.showArrow?(_(),ue(f(nF),{key:0})):K("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var rz=ze(oz,[["__file","tooltip.vue"]]);const hs=Rt(rz),lz=Ue({...Rp,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:ge(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:ge([Function,Array]),default:Cn},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:Yn.teleported,appendTo:Yn.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean}),iz={[Et]:e=>ut(e),[Ra]:e=>ut(e),[Xt]:e=>ut(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Ot(e)},KT="ElAutocomplete",cz=le({name:KT,inheritAttrs:!1}),uz=le({...cz,props:lz,emits:iz,setup(e,{expose:t,emit:n}){const a=e,s=x(()=>To(a,Object.keys(Rp))),o=Fl(),r=Xa(),i=Le("autocomplete"),c=T(),u=T(),d=T(),p=T();let v=!1,h=!1;const m=T([]),g=T(-1),y=T(""),b=T(!1),C=T(!1),k=T(!1),S=vs(),$=x(()=>o.style),E=x(()=>(m.value.length>0||k.value)&&b.value),R=x(()=>!a.hideLoading&&k.value),A=x(()=>c.value?Array.from(c.value.$el.querySelectorAll("input")):[]),N=()=>{E.value&&(y.value=`${c.value.$el.offsetWidth}px`)},P=()=>{g.value=-1},B=async Q=>{if(C.value)return;const H=X=>{k.value=!1,!C.value&&(Ve(X)?(m.value=X,g.value=a.highlightFirstItem?0:-1):Ca(KT,"autocomplete suggestions must be an array"))};if(k.value=!0,Ve(a.fetchSuggestions))H(a.fetchSuggestions);else{const X=await a.fetchSuggestions(Q,H);Ve(X)&&H(X)}},M=wo(B,a.debounce),j=Q=>{const H=!!Q;if(n(Ra,Q),n(Et,Q),C.value=!1,b.value||(b.value=H),!a.triggerOnFocus&&!Q){C.value=!0,m.value=[];return}M(Q)},F=Q=>{var H;r.value||(((H=Q.target)==null?void 0:H.tagName)!=="INPUT"||A.value.includes(document.activeElement))&&(b.value=!0)},q=Q=>{n(Xt,Q)},L=Q=>{var H;if(h)h=!1;else{b.value=!0,n("focus",Q);const X=(H=a.modelValue)!=null?H:"";a.triggerOnFocus&&!v&&M(String(X))}},U=Q=>{setTimeout(()=>{var H;if((H=d.value)!=null&&H.isFocusInsideContent()){h=!0;return}b.value&&Z(),n("blur",Q)})},O=()=>{b.value=!1,n(Et,""),n("clear")},G=async()=>{E.value&&g.value>=0&&g.value{E.value&&(Q.preventDefault(),Q.stopPropagation(),Z())},Z=()=>{b.value=!1},te=()=>{var Q;(Q=c.value)==null||Q.focus()},ie=()=>{var Q;(Q=c.value)==null||Q.blur()},oe=async Q=>{n(Ra,Q[a.valueKey]),n(Et,Q[a.valueKey]),n("select",Q),m.value=[],g.value=-1},J=Q=>{if(!E.value||k.value)return;if(Q<0){g.value=-1;return}Q>=m.value.length&&(Q=m.value.length-1);const H=u.value.querySelector(`.${i.be("suggestion","wrap")}`),he=H.querySelectorAll(`.${i.be("suggestion","list")} li`)[Q],D=H.scrollTop,{offsetTop:Y,scrollHeight:ne}=he;Y+ne>D+H.clientHeight&&(H.scrollTop+=ne),Y{var Q;(Q=d.value)!=null&&Q.isFocusInsideContent()||E.value&&Z()});return on(()=>{ee==null||ee()}),ft(()=>{c.value.ref.setAttribute("role","textbox"),c.value.ref.setAttribute("aria-autocomplete","list"),c.value.ref.setAttribute("aria-controls","id"),c.value.ref.setAttribute("aria-activedescendant",`${S.value}-item-${g.value}`),v=c.value.ref.hasAttribute("readonly")}),t({highlightedIndex:g,activated:b,loading:k,inputRef:c,popperRef:d,suggestions:m,handleSelect:oe,handleKeyEnter:G,focus:te,blur:ie,close:Z,highlight:J,getData:B}),(Q,H)=>(_(),ue(f(hs),{ref_key:"popperRef",ref:d,visible:f(E),placement:Q.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[f(i).e("popper"),Q.popperClass],teleported:Q.teleported,"append-to":Q.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${f(i).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:N,onHide:P},{content:W(()=>[l("div",{ref_key:"regionRef",ref:u,class:V([f(i).b("suggestion"),f(i).is("loading",f(R))]),style:Je({[Q.fitInputWidth?"width":"minWidth"]:y.value,outline:"none"}),role:"region"},[Q.$slots.header?(_(),w("div",{key:0,class:V(f(i).be("suggestion","header")),onClick:qe(()=>{},["stop"])},[be(Q.$slots,"header")],10,["onClick"])):K("v-if",!0),z(f(wr),{id:f(S),tag:"ul","wrap-class":f(i).be("suggestion","wrap"),"view-class":f(i).be("suggestion","list"),role:"listbox"},{default:W(()=>[f(R)?(_(),w("li",{key:0},[be(Q.$slots,"loading",{},()=>[z(f(ct),{class:V(f(i).is("loading"))},{default:W(()=>[z(f(el))]),_:1},8,["class"])])])):(_(!0),w(_e,{key:1},Re(m.value,(X,he)=>(_(),w("li",{id:`${f(S)}-item-${he}`,key:he,class:V({highlighted:g.value===he}),role:"option","aria-selected":g.value===he,onClick:D=>oe(X)},[be(Q.$slots,"default",{item:X},()=>[Ce(I(X[Q.valueKey]),1)])],10,["id","aria-selected","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class"]),Q.$slots.footer?(_(),w("div",{key:1,class:V(f(i).be("suggestion","footer")),onClick:qe(()=>{},["stop"])},[be(Q.$slots,"footer")],10,["onClick"])):K("v-if",!0)],6)]),default:W(()=>[l("div",{ref_key:"listboxRef",ref:p,class:V([f(i).b(),Q.$attrs.class]),style:Je(f($)),role:"combobox","aria-haspopup":"listbox","aria-expanded":f(E),"aria-owns":f(S)},[z(f(Bs),Kt({ref_key:"inputRef",ref:c},Kt(f(s),Q.$attrs),{"model-value":Q.modelValue,disabled:f(r),onInput:j,onChange:q,onFocus:L,onBlur:U,onClear:O,onKeydown:[yn(qe(X=>J(g.value-1),["prevent"]),["up"]),yn(qe(X=>J(g.value+1),["prevent"]),["down"]),yn(G,["enter"]),yn(Z,["tab"]),yn(ae,["esc"])],onMousedown:F}),bo({_:2},[Q.$slots.prepend?{name:"prepend",fn:W(()=>[be(Q.$slots,"prepend")])}:void 0,Q.$slots.append?{name:"append",fn:W(()=>[be(Q.$slots,"append")])}:void 0,Q.$slots.prefix?{name:"prefix",fn:W(()=>[be(Q.$slots,"prefix")])}:void 0,Q.$slots.suffix?{name:"suffix",fn:W(()=>[be(Q.$slots,"suffix")])}:void 0]),1040,["model-value","disabled","onKeydown"])],14,["aria-expanded","aria-owns"])]),_:3},8,["visible","placement","popper-class","teleported","append-to","transition"]))}});var dz=ze(uz,[["__file","autocomplete.vue"]]);const fz=Rt(dz),pz=Ue({size:{type:[Number,String],values:ol,default:"",validator:e=>gt(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:wn},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:ge(String),default:"cover"}}),vz={error:e=>e instanceof Event},hz=le({name:"ElAvatar"}),mz=le({...hz,props:pz,emits:vz,setup(e,{emit:t}){const n=e,a=Le("avatar"),s=T(!1),o=x(()=>{const{size:u,icon:d,shape:p}=n,v=[a.b()];return ut(u)&&v.push(a.m(u)),d&&v.push(a.m("icon")),p&&v.push(a.m(p)),v}),r=x(()=>{const{size:u}=n;return gt(u)?a.cssVarBlock({size:sa(u)||""}):void 0}),i=x(()=>({objectFit:n.fit}));Te(()=>n.src,()=>s.value=!1);function c(u){s.value=!0,t("error",u)}return(u,d)=>(_(),w("span",{class:V(f(o)),style:Je(f(r))},[(u.src||u.srcSet)&&!s.value?(_(),w("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:Je(f(i)),onError:c},null,44,["src","alt","srcset"])):u.icon?(_(),ue(f(ct),{key:1},{default:W(()=>[(_(),ue(Ft(u.icon)))]),_:1})):be(u.$slots,"default",{key:2})],6))}});var gz=ze(mz,[["__file","avatar.vue"]]);const _z=Rt(gz),yz={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},bz={click:e=>e instanceof MouseEvent},wz=(e,t,n)=>{const a=Fn(),s=Fn(),o=T(!1),r=()=>{a.value&&(o.value=a.value.scrollTop>=e.visibilityHeight)},i=u=>{var d;(d=a.value)==null||d.scrollTo({top:0,behavior:"smooth"}),t("click",u)},c=q4(r,300,!0);return Rn(s,"scroll",c),ft(()=>{var u;s.value=document,a.value=document.documentElement,e.target&&(a.value=(u=document.querySelector(e.target))!=null?u:void 0,a.value||Ca(n,`target does not exist: ${e.target}`),s.value=a.value),r()}),{visible:o,handleClick:i}},qT="ElBacktop",Cz=le({name:qT}),kz=le({...Cz,props:yz,emits:bz,setup(e,{emit:t}){const n=e,a=Le("backtop"),{handleClick:s,visible:o}=wz(n,t,qT),r=x(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(i,c)=>(_(),ue(aa,{name:`${f(a).namespace.value}-fade-in`},{default:W(()=>[f(o)?(_(),w("div",{key:0,style:Je(f(r)),class:V(f(a).b()),onClick:qe(f(s),["stop"])},[be(i.$slots,"default",{},()=>[z(f(ct),{class:V(f(a).e("icon"))},{default:W(()=>[z(f(b9))]),_:1},8,["class"])])],14,["onClick"])):K("v-if",!0)]),_:3},8,["name"]))}});var Sz=ze(kz,[["__file","backtop.vue"]]);const Ez=Rt(Sz),$z=Ue({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:ge([String,Object,Array])},offset:{type:ge(Array),default:[0,0]},badgeClass:{type:String}}),xz=le({name:"ElBadge"}),Tz=le({...xz,props:$z,setup(e,{expose:t}){const n=e,a=Le("badge"),s=x(()=>n.isDot?"":gt(n.value)&>(n.max)?n.max{var r,i,c,u,d;return[{backgroundColor:n.color,marginRight:sa(-((i=(r=n.offset)==null?void 0:r[0])!=null?i:0)),marginTop:sa((u=(c=n.offset)==null?void 0:c[1])!=null?u:0)},(d=n.badgeStyle)!=null?d:{}]});return t({content:s}),(r,i)=>(_(),w("div",{class:V(f(a).b())},[be(r.$slots,"default"),z(aa,{name:`${f(a).namespace.value}-zoom-in-center`,persisted:""},{default:W(()=>[et(l("sup",{class:V([f(a).e("content"),f(a).em("content",r.type),f(a).is("fixed",!!r.$slots.default),f(a).is("dot",r.isDot),f(a).is("hide-zero",!r.showZero&&n.value===0),r.badgeClass]),style:Je(f(o))},[be(r.$slots,"content",{value:f(s)},()=>[Ce(I(f(s)),1)])],6),[[fn,!r.hidden&&(f(s)||r.isDot||r.$slots.content)]])]),_:3},8,["name"])],2))}});var Iz=ze(Tz,[["__file","badge.vue"]]);const jT=Rt(Iz),WT=Symbol("breadcrumbKey"),Az=Ue({separator:{type:String,default:"/"},separatorIcon:{type:wn}}),Nz=le({name:"ElBreadcrumb"}),Rz=le({...Nz,props:Az,setup(e){const t=e,{t:n}=rn(),a=Le("breadcrumb"),s=T();return Gt(WT,t),ft(()=>{const o=s.value.querySelectorAll(`.${a.e("item")}`);o.length&&o[o.length-1].setAttribute("aria-current","page")}),(o,r)=>(_(),w("div",{ref_key:"breadcrumb",ref:s,class:V(f(a).b()),"aria-label":f(n)("el.breadcrumb.label"),role:"navigation"},[be(o.$slots,"default")],10,["aria-label"]))}});var Pz=ze(Rz,[["__file","breadcrumb.vue"]]);const Mz=Ue({to:{type:ge([String,Object]),default:""},replace:Boolean}),Bz=le({name:"ElBreadcrumbItem"}),Lz=le({...Bz,props:Mz,setup(e){const t=e,n=qt(),a=Ze(WT,void 0),s=Le("breadcrumb"),o=n.appContext.config.globalProperties.$router,r=T(),i=()=>{!t.to||!o||(t.replace?o.replace(t.to):o.push(t.to))};return(c,u)=>{var d,p;return _(),w("span",{class:V(f(s).e("item"))},[l("span",{ref_key:"link",ref:r,class:V([f(s).e("inner"),f(s).is("link",!!c.to)]),role:"link",onClick:i},[be(c.$slots,"default")],2),(d=f(a))!=null&&d.separatorIcon?(_(),ue(f(ct),{key:0,class:V(f(s).e("separator"))},{default:W(()=>[(_(),ue(Ft(f(a).separatorIcon)))]),_:1},8,["class"])):(_(),w("span",{key:1,class:V(f(s).e("separator")),role:"presentation"},I((p=f(a))==null?void 0:p.separator),3))],2)}}});var GT=ze(Lz,[["__file","breadcrumb-item.vue"]]);const Oz=Rt(Pz,{BreadcrumbItem:GT}),Dz=ea(GT),YT=Symbol("buttonGroupContextKey"),Rl=({from:e,replacement:t,scope:n,version:a,ref:s,type:o="API"},r)=>{Te(()=>f(r),i=>{},{immediate:!0})},Vz=(e,t)=>{Rl({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},x(()=>e.type==="text"));const n=Ze(YT,void 0),a=Sd("button"),{form:s}=Is(),o=xa(x(()=>n==null?void 0:n.size)),r=Xa(),i=T(),c=Ta(),u=x(()=>{var b;return e.type||(n==null?void 0:n.type)||((b=a.value)==null?void 0:b.type)||""}),d=x(()=>{var b,C,k;return(k=(C=e.autoInsertSpace)!=null?C:(b=a.value)==null?void 0:b.autoInsertSpace)!=null?k:!1}),p=x(()=>{var b,C,k;return(k=(C=e.plain)!=null?C:(b=a.value)==null?void 0:b.plain)!=null?k:!1}),v=x(()=>{var b,C,k;return(k=(C=e.round)!=null?C:(b=a.value)==null?void 0:b.round)!=null?k:!1}),h=x(()=>{var b,C,k;return(k=(C=e.text)!=null?C:(b=a.value)==null?void 0:b.text)!=null?k:!1}),m=x(()=>e.tag==="button"?{ariaDisabled:r.value||e.loading,disabled:r.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),g=x(()=>{var b;const C=(b=c.default)==null?void 0:b.call(c);if(d.value&&(C==null?void 0:C.length)===1){const k=C[0];if((k==null?void 0:k.type)===_d){const S=k.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(S.trim())}}return!1});return{_disabled:r,_size:o,_type:u,_ref:i,_props:m,_plain:p,_round:v,_text:h,shouldAddSpace:g,handleClick:b=>{if(r.value||e.loading){b.stopPropagation();return}e.nativeType==="reset"&&(s==null||s.resetFields()),t("click",b)}}},m_=["default","primary","success","warning","info","danger","text",""],Fz=["button","submit","reset"],g_=Ue({size:Ma,disabled:Boolean,type:{type:String,values:m_,default:""},icon:{type:wn},nativeType:{type:String,values:Fz,default:"button"},loading:Boolean,loadingIcon:{type:wn,default:()=>el},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:ge([String,Object]),default:"button"}}),Uz={click:e=>e instanceof MouseEvent};function Es(e,t){zz(e)&&(e="100%");var n=Hz(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Sv(e){return Math.min(1,Math.max(0,e))}function zz(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Hz(e){return typeof e=="string"&&e.indexOf("%")!==-1}function XT(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ev(e){return e<=1?"".concat(Number(e)*100,"%"):e}function hc(e){return e.length===1?"0"+e:String(e)}function Kz(e,t,n){return{r:Es(e,255)*255,g:Es(t,255)*255,b:Es(n,255)*255}}function Rk(e,t,n){e=Es(e,255),t=Es(t,255),n=Es(n,255);var a=Math.max(e,t,n),s=Math.min(e,t,n),o=0,r=0,i=(a+s)/2;if(a===s)r=0,o=0;else{var c=a-s;switch(r=i>.5?c/(2-a-s):c/(a+s),a){case e:o=(t-n)/c+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function qz(e,t,n){var a,s,o;if(e=Es(e,360),t=Es(t,100),n=Es(n,100),t===0)s=n,o=n,a=n;else{var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;a=J0(i,r,e+1/3),s=J0(i,r,e),o=J0(i,r,e-1/3)}return{r:a*255,g:s*255,b:o*255}}function Pk(e,t,n){e=Es(e,255),t=Es(t,255),n=Es(n,255);var a=Math.max(e,t,n),s=Math.min(e,t,n),o=0,r=a,i=a-s,c=a===0?0:i/a;if(a===s)o=0;else{switch(a){case e:o=(t-n)/i+(t>16,g:(e&65280)>>8,b:e&255}}var __={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Xz(e){var t={r:0,g:0,b:0},n=1,a=null,s=null,o=null,r=!1,i=!1;return typeof e=="string"&&(e=Zz(e)),typeof e=="object"&&(hl(e.r)&&hl(e.g)&&hl(e.b)?(t=Kz(e.r,e.g,e.b),r=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):hl(e.h)&&hl(e.s)&&hl(e.v)?(a=Ev(e.s),s=Ev(e.v),t=jz(e.h,a,s),r=!0,i="hsv"):hl(e.h)&&hl(e.s)&&hl(e.l)&&(a=Ev(e.s),o=Ev(e.l),t=qz(e.h,a,o),r=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=XT(n),{ok:r,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Qz="[-\\+]?\\d+%?",Jz="[-\\+]?\\d*\\.\\d+%?",mi="(?:".concat(Jz,")|(?:").concat(Qz,")"),Z0="[\\s|\\(]+(".concat(mi,")[,|\\s]+(").concat(mi,")[,|\\s]+(").concat(mi,")\\s*\\)?"),eg="[\\s|\\(]+(".concat(mi,")[,|\\s]+(").concat(mi,")[,|\\s]+(").concat(mi,")[,|\\s]+(").concat(mi,")\\s*\\)?"),pr={CSS_UNIT:new RegExp(mi),rgb:new RegExp("rgb"+Z0),rgba:new RegExp("rgba"+eg),hsl:new RegExp("hsl"+Z0),hsla:new RegExp("hsla"+eg),hsv:new RegExp("hsv"+Z0),hsva:new RegExp("hsva"+eg),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Zz(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(__[e])e=__[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=pr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=pr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=pr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=pr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=pr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=pr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=pr.hex8.exec(e),n?{r:ko(n[1]),g:ko(n[2]),b:ko(n[3]),a:Bk(n[4]),format:t?"name":"hex8"}:(n=pr.hex6.exec(e),n?{r:ko(n[1]),g:ko(n[2]),b:ko(n[3]),format:t?"name":"hex"}:(n=pr.hex4.exec(e),n?{r:ko(n[1]+n[1]),g:ko(n[2]+n[2]),b:ko(n[3]+n[3]),a:Bk(n[4]+n[4]),format:t?"name":"hex8"}:(n=pr.hex3.exec(e),n?{r:ko(n[1]+n[1]),g:ko(n[2]+n[2]),b:ko(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function hl(e){return!!pr.CSS_UNIT.exec(String(e))}var Cu=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var a;if(t instanceof e)return t;typeof t=="number"&&(t=Yz(t)),this.originalInput=t;var s=Xz(t);this.originalInput=t,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=(a=n.format)!==null&&a!==void 0?a:s.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,a,s,o=t.r/255,r=t.g/255,i=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*n+.7152*a+.0722*s},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=XT(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Pk(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Pk(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),s=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(a,"%, ").concat(s,"%)"):"hsva(".concat(n,", ").concat(a,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Rk(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Rk(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),s=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(a,"%, ").concat(s,"%)"):"hsla(".concat(n,", ").concat(a,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Mk(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Wz(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),a=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(a,")"):"rgba(".concat(t,", ").concat(n,", ").concat(a,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Es(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Es(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Mk(this.r,this.g,this.b,!1),n=0,a=Object.entries(__);n=0,o=!n&&s&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(a=this.toRgbString()),t==="prgb"&&(a=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(a=this.toHexString()),t==="hex3"&&(a=this.toHexString(!0)),t==="hex4"&&(a=this.toHex8String(!0)),t==="hex8"&&(a=this.toHex8String()),t==="name"&&(a=this.toName()),t==="hsl"&&(a=this.toHslString()),t==="hsv"&&(a=this.toHsvString()),a||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Sv(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Sv(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Sv(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Sv(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),a=(n.h+t)%360;return n.h=a<0?360+a:a,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var a=this.toRgb(),s=new e(t).toRgb(),o=n/100,r={r:(s.r-a.r)*o+a.r,g:(s.g-a.g)*o+a.g,b:(s.b-a.b)*o+a.b,a:(s.a-a.a)*o+a.a};return new e(r)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var a=this.toHsl(),s=360/n,o=[this];for(a.h=(a.h-(s*t>>1)+720)%360;--t;)a.h=(a.h+s)%360,o.push(new e(a));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),a=n.h,s=n.s,o=n.v,r=[],i=1/t;t--;)r.push(new e({h:a,s,v:o})),o=(o+i)%1;return r},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),a=new e(t).toRgb(),s=n.a+a.a*(1-n.a);return new e({r:(n.r*n.a+a.r*a.a*(1-n.a))/s,g:(n.g*n.a+a.g*a.a*(1-n.a))/s,b:(n.b*n.a+a.b*a.a*(1-n.a))/s,a:s})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),a=n.h,s=[this],o=360/t,r=1;r{let a={},s=e.color;if(s){const o=s.match(/var\((.*?)\)/);o&&(s=window.getComputedStyle(window.document.documentElement).getPropertyValue(o[1]));const r=new Cu(s),i=e.dark?r.tint(20).toString():ei(r,20);if(e.plain)a=n.cssVarBlock({"bg-color":e.dark?ei(r,90):r.tint(90).toString(),"text-color":s,"border-color":e.dark?ei(r,50):r.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":s,"hover-border-color":s,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(a[n.cssVarBlockName("disabled-bg-color")]=e.dark?ei(r,90):r.tint(90).toString(),a[n.cssVarBlockName("disabled-text-color")]=e.dark?ei(r,50):r.tint(50).toString(),a[n.cssVarBlockName("disabled-border-color")]=e.dark?ei(r,80):r.tint(80).toString());else{const c=e.dark?ei(r,30):r.tint(30).toString(),u=r.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(a=n.cssVarBlock({"bg-color":s,"text-color":u,"border-color":s,"hover-bg-color":c,"hover-text-color":u,"hover-border-color":c,"active-bg-color":i,"active-border-color":i}),t.value){const d=e.dark?ei(r,50):r.tint(50).toString();a[n.cssVarBlockName("disabled-bg-color")]=d,a[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,a[n.cssVarBlockName("disabled-border-color")]=d}}}return a})}const tH=le({name:"ElButton"}),nH=le({...tH,props:g_,emits:Uz,setup(e,{expose:t,emit:n}){const a=e,s=eH(a),o=Le("button"),{_ref:r,_size:i,_type:c,_disabled:u,_props:d,_plain:p,_round:v,_text:h,shouldAddSpace:m,handleClick:g}=Vz(a,n),y=x(()=>[o.b(),o.m(c.value),o.m(i.value),o.is("disabled",u.value),o.is("loading",a.loading),o.is("plain",p.value),o.is("round",v.value),o.is("circle",a.circle),o.is("text",h.value),o.is("link",a.link),o.is("has-bg",a.bg)]);return t({ref:r,size:i,type:c,disabled:u,shouldAddSpace:m}),(b,C)=>(_(),ue(Ft(b.tag),Kt({ref_key:"_ref",ref:r},f(d),{class:f(y),style:f(s),onClick:f(g)}),{default:W(()=>[b.loading?(_(),w(_e,{key:0},[b.$slots.loading?be(b.$slots,"loading",{key:0}):(_(),ue(f(ct),{key:1,class:V(f(o).is("loading"))},{default:W(()=>[(_(),ue(Ft(b.loadingIcon)))]),_:1},8,["class"]))],64)):b.icon||b.$slots.icon?(_(),ue(f(ct),{key:1},{default:W(()=>[b.icon?(_(),ue(Ft(b.icon),{key:0})):be(b.$slots,"icon",{key:1})]),_:3})):K("v-if",!0),b.$slots.default?(_(),w("span",{key:2,class:V({[f(o).em("text","expand")]:f(m)})},[be(b.$slots,"default")],2)):K("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var aH=ze(nH,[["__file","button.vue"]]);const sH={size:g_.size,type:g_.type},oH=le({name:"ElButtonGroup"}),rH=le({...oH,props:sH,setup(e){const t=e;Gt(YT,At({size:gn(t,"size"),type:gn(t,"type")}));const n=Le("button");return(a,s)=>(_(),w("div",{class:V(f(n).b("group"))},[be(a.$slots,"default")],2))}});var QT=ze(rH,[["__file","button-group.vue"]]);const ns=Rt(aH,{ButtonGroup:QT}),JT=ea(QT);var ll=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function il(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lH(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function a(){return this instanceof a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),n}var ZT={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(ll,function(){var n=1e3,a=6e4,s=36e5,o="millisecond",r="second",i="minute",c="hour",u="day",d="week",p="month",v="quarter",h="year",m="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var q=["th","st","nd","rd"],L=F%100;return"["+F+(q[(L-20)%10]||q[L]||q[0])+"]"}},k=function(F,q,L){var U=String(F);return!U||U.length>=q?F:""+Array(q+1-U.length).join(L)+F},S={s:k,z:function(F){var q=-F.utcOffset(),L=Math.abs(q),U=Math.floor(L/60),O=L%60;return(q<=0?"+":"-")+k(U,2,"0")+":"+k(O,2,"0")},m:function F(q,L){if(q.date()1)return F(ae[0])}else{var Z=q.name;E[Z]=q,O=Z}return!U&&O&&($=O),O||!U&&$},P=function(F,q){if(A(F))return F.clone();var L=typeof q=="object"?q:{};return L.date=F,L.args=arguments,new M(L)},B=S;B.l=N,B.i=A,B.w=function(F,q){return P(F,{locale:q.$L,utc:q.$u,x:q.$x,$offset:q.$offset})};var M=function(){function F(L){this.$L=N(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[R]=!0}var q=F.prototype;return q.parse=function(L){this.$d=function(U){var O=U.date,G=U.utc;if(O===null)return new Date(NaN);if(B.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var ae=O.match(y);if(ae){var Z=ae[2]-1||0,te=(ae[7]||"0").substring(0,3);return G?new Date(Date.UTC(ae[1],Z,ae[3]||1,ae[4]||0,ae[5]||0,ae[6]||0,te)):new Date(ae[1],Z,ae[3]||1,ae[4]||0,ae[5]||0,ae[6]||0,te)}}return new Date(O)}(L),this.init()},q.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},q.$utils=function(){return B},q.isValid=function(){return this.$d.toString()!==g},q.isSame=function(L,U){var O=P(L);return this.startOf(U)<=O&&O<=this.endOf(U)},q.isAfter=function(L,U){return P(L)[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),e3=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),t3=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),Lk=function(e,t){const n=Ni(e),a=Ni(t);return n&&a?e.getTime()===t.getTime():!n&&!a?e===t:!1},n3=function(e,t){const n=Ve(e),a=Ve(t);return n&&a?e.length!==t.length?!1:e.every((s,o)=>Lk(s,t[o])):!n&&!a?Lk(e,t):!1},Ok=function(e,t,n){const a=$o(t)||t==="x"?Bt(e).locale(n):Bt(e,t).locale(n);return a.isValid()?a:void 0},Dk=function(e,t,n){return $o(t)?e:t==="x"?+e:Bt(e).locale(n).format(t)},ng=(e,t)=>{var n;const a=[],s=t==null?void 0:t();for(let o=0;oVe(e)?e.map(t=>t.toDate()):e.toDate(),cH=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return xi(t).map((a,s)=>n-(t-s-1))},uH=e=>{const t=e.daysInMonth();return xi(t).map((n,a)=>a+1)},dH=e=>xi(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),fH=Ue({selectedDay:{type:ge(Object)},range:{type:ge(Array)},date:{type:ge(Object),required:!0},hideHeader:{type:Boolean}}),pH={pick:e=>Ot(e)};var a3={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(ll,function(){return function(n,a,s){var o=a.prototype,r=function(p){return p&&(p.indexOf?p:p.s)},i=function(p,v,h,m,g){var y=p.name?p:p.$locale(),b=r(y[v]),C=r(y[h]),k=b||C.map(function($){return $.slice(0,m)});if(!g)return k;var S=y.weekStart;return k.map(function($,E){return k[(E+(S||0))%7]})},c=function(){return s.Ls[s.locale()]},u=function(p,v){return p.formats[v]||function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,g,y){return g||y.slice(1)})}(p.formats[v.toUpperCase()])},d=function(){var p=this;return{months:function(v){return v?v.format("MMMM"):i(p,"months")},monthsShort:function(v){return v?v.format("MMM"):i(p,"monthsShort","months",3)},firstDayOfWeek:function(){return p.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):i(p,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):i(p,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):i(p,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return u(p.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return d.bind(this)()},s.localeData=function(){var p=c();return{firstDayOfWeek:function(){return p.weekStart||0},weekdays:function(){return s.weekdays()},weekdaysShort:function(){return s.weekdaysShort()},weekdaysMin:function(){return s.weekdaysMin()},months:function(){return s.months()},monthsShort:function(){return s.monthsShort()},longDateFormat:function(v){return u(p,v)},meridiem:p.meridiem,ordinal:p.ordinal}},s.months=function(){return i(c(),"months")},s.monthsShort=function(){return i(c(),"monthsShort","months",3)},s.weekdays=function(p){return i(c(),"weekdays",null,null,p)},s.weekdaysShort=function(p){return i(c(),"weekdaysShort","weekdays",3,p)},s.weekdaysMin=function(p){return i(c(),"weekdaysMin","weekdays",2,p)}}})})(a3);var vH=a3.exports;const s3=il(vH),hH=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],ag=["sun","mon","tue","wed","thu","fri","sat"],mH=(e,t)=>{Bt.extend(s3);const n=Bt.localeData().firstDayOfWeek(),{t:a,lang:s}=rn(),o=Bt().locale(s.value),r=x(()=>!!e.range&&!!e.range.length),i=x(()=>{let v=[];if(r.value){const[h,m]=e.range,g=xi(m.date()-h.date()+1).map(C=>({text:h.date()+C,type:"current"}));let y=g.length%7;y=y===0?0:7-y;const b=xi(y).map((C,k)=>({text:k+1,type:"next"}));v=g.concat(b)}else{const h=e.date.startOf("month").day(),m=cH(e.date,(h-n+7)%7).map(C=>({text:C,type:"prev"})),g=uH(e.date).map(C=>({text:C,type:"current"}));v=[...m,...g];const y=7-(v.length%7||7),b=xi(y).map((C,k)=>({text:k+1,type:"next"}));v=v.concat(b)}return dH(v)}),c=x(()=>{const v=n;return v===0?ag.map(h=>a(`el.datepicker.weeks.${h}`)):ag.slice(v).concat(ag.slice(0,v)).map(h=>a(`el.datepicker.weeks.${h}`))}),u=(v,h)=>{switch(h){case"prev":return e.date.startOf("month").subtract(1,"month").date(v);case"next":return e.date.startOf("month").add(1,"month").date(v);case"current":return e.date.date(v)}};return{now:o,isInRange:r,rows:i,weekDays:c,getFormattedDate:u,handlePickDay:({text:v,type:h})=>{const m=u(v,h);t("pick",m)},getSlotData:({text:v,type:h})=>{const m=u(v,h);return{isSelected:m.isSame(e.selectedDay),type:`${h}-month`,day:m.format("YYYY-MM-DD"),date:m.toDate()}}}},gH=le({name:"DateTable"}),_H=le({...gH,props:fH,emits:pH,setup(e,{expose:t,emit:n}){const a=e,{isInRange:s,now:o,rows:r,weekDays:i,getFormattedDate:c,handlePickDay:u,getSlotData:d}=mH(a,n),p=Le("calendar-table"),v=Le("calendar-day"),h=({text:m,type:g})=>{const y=[g];if(g==="current"){const b=c(m,g);b.isSame(a.selectedDay,"day")&&y.push(v.is("selected")),b.isSame(o,"day")&&y.push(v.is("today"))}return y};return t({getFormattedDate:c}),(m,g)=>(_(),w("table",{class:V([f(p).b(),f(p).is("range",f(s))]),cellspacing:"0",cellpadding:"0"},[m.hideHeader?K("v-if",!0):(_(),w("thead",{key:0},[l("tr",null,[(_(!0),w(_e,null,Re(f(i),y=>(_(),w("th",{key:y,scope:"col"},I(y),1))),128))])])),l("tbody",null,[(_(!0),w(_e,null,Re(f(r),(y,b)=>(_(),w("tr",{key:b,class:V({[f(p).e("row")]:!0,[f(p).em("row","hide-border")]:b===0&&m.hideHeader})},[(_(!0),w(_e,null,Re(y,(C,k)=>(_(),w("td",{key:k,class:V(h(C)),onClick:S=>f(u)(C)},[l("div",{class:V(f(v).b())},[be(m.$slots,"date-cell",{data:f(d)(C)},()=>[l("span",null,I(C.text),1)])],2)],10,["onClick"]))),128))],2))),128))])],2))}});var Vk=ze(_H,[["__file","date-table.vue"]]);const yH=(e,t)=>{const n=e.endOf("month"),a=t.startOf("month"),o=n.isSame(a,"week")?a.add(1,"week"):a;return[[e,n],[o.startOf("week"),t]]},bH=(e,t)=>{const n=e.endOf("month"),a=e.add(1,"month").startOf("month"),s=n.isSame(a,"week")?a.add(1,"week"):a,o=s.endOf("month"),r=t.startOf("month"),i=o.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[s.startOf("week"),o],[i.startOf("week"),t]]},wH=(e,t,n)=>{const{lang:a}=rn(),s=T(),o=Bt().locale(a.value),r=x({get(){return e.modelValue?c.value:s.value},set(y){if(!y)return;s.value=y;const b=y.toDate();t(Ra,b),t(Et,b)}}),i=x(()=>{if(!e.range||!Ve(e.range)||e.range.length!==2||e.range.some(k=>!Ni(k)))return[];const y=e.range.map(k=>Bt(k).locale(a.value)),[b,C]=y;return b.isAfter(C)?[]:b.isSame(C,"month")?h(b,C):b.add(1,"month").month()!==C.month()?[]:h(b,C)}),c=x(()=>e.modelValue?Bt(e.modelValue).locale(a.value):r.value||(i.value.length?i.value[0][0]:o)),u=x(()=>c.value.subtract(1,"month").date(1)),d=x(()=>c.value.add(1,"month").date(1)),p=x(()=>c.value.subtract(1,"year").date(1)),v=x(()=>c.value.add(1,"year").date(1)),h=(y,b)=>{const C=y.startOf("week"),k=b.endOf("week"),S=C.get("month"),$=k.get("month");return S===$?[[C,k]]:(S+1)%12===$?yH(C,k):S+2===$||(S+1)%11===$?bH(C,k):[]},m=y=>{r.value=y};return{calculateValidatedDateRange:h,date:c,realSelectedDay:r,pickDay:m,selectDate:y=>{const C={"prev-month":u.value,"next-month":d.value,"prev-year":p.value,"next-year":v.value,today:o}[y];C.isSame(c.value,"day")||m(C)},validatedRange:i}},CH=e=>Ve(e)&&e.length===2&&e.every(t=>Ni(t)),kH=Ue({modelValue:{type:Date},range:{type:ge(Array),validator:CH}}),SH={[Et]:e=>Ni(e),[Ra]:e=>Ni(e)},EH="ElCalendar",$H=le({name:EH}),xH=le({...$H,props:kH,emits:SH,setup(e,{expose:t,emit:n}){const a=e,s=Le("calendar"),{calculateValidatedDateRange:o,date:r,pickDay:i,realSelectedDay:c,selectDate:u,validatedRange:d}=wH(a,n),{t:p}=rn(),v=x(()=>{const h=`el.datepicker.month${r.value.format("M")}`;return`${r.value.year()} ${p("el.datepicker.year")} ${p(h)}`});return t({selectedDay:c,pickDay:i,selectDate:u,calculateValidatedDateRange:o}),(h,m)=>(_(),w("div",{class:V(f(s).b())},[l("div",{class:V(f(s).e("header"))},[be(h.$slots,"header",{date:f(v)},()=>[l("div",{class:V(f(s).e("title"))},I(f(v)),3),f(d).length===0?(_(),w("div",{key:0,class:V(f(s).e("button-group"))},[z(f(JT),null,{default:W(()=>[z(f(ns),{size:"small",onClick:g=>f(u)("prev-month")},{default:W(()=>[Ce(I(f(p)("el.datepicker.prevMonth")),1)]),_:1},8,["onClick"]),z(f(ns),{size:"small",onClick:g=>f(u)("today")},{default:W(()=>[Ce(I(f(p)("el.datepicker.today")),1)]),_:1},8,["onClick"]),z(f(ns),{size:"small",onClick:g=>f(u)("next-month")},{default:W(()=>[Ce(I(f(p)("el.datepicker.nextMonth")),1)]),_:1},8,["onClick"])]),_:1})],2)):K("v-if",!0)])],2),f(d).length===0?(_(),w("div",{key:0,class:V(f(s).e("body"))},[z(Vk,{date:f(r),"selected-day":f(c),onPick:f(i)},bo({_:2},[h.$slots["date-cell"]?{name:"date-cell",fn:W(g=>[be(h.$slots,"date-cell",po(Jr(g)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(_(),w("div",{key:1,class:V(f(s).e("body"))},[(_(!0),w(_e,null,Re(f(d),(g,y)=>(_(),ue(Vk,{key:y,date:g[0],"selected-day":f(c),range:g,"hide-header":y!==0,onPick:f(i)},bo({_:2},[h.$slots["date-cell"]?{name:"date-cell",fn:W(b=>[be(h.$slots,"date-cell",po(Jr(b)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var TH=ze(xH,[["__file","calendar.vue"]]);const IH=Rt(TH),AH=Ue({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:ge([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}}),NH=le({name:"ElCard"}),RH=le({...NH,props:AH,setup(e){const t=Sd("card"),n=Le("card");return(a,s)=>{var o;return _(),w("div",{class:V([f(n).b(),f(n).is(`${a.shadow||((o=f(t))==null?void 0:o.shadow)||"always"}-shadow`)])},[a.$slots.header||a.header?(_(),w("div",{key:0,class:V([f(n).e("header"),a.headerClass])},[be(a.$slots,"header",{},()=>[Ce(I(a.header),1)])],2)):K("v-if",!0),l("div",{class:V([f(n).e("body"),a.bodyClass]),style:Je(a.bodyStyle)},[be(a.$slots,"default")],6),a.$slots.footer||a.footer?(_(),w("div",{key:1,class:V([f(n).e("footer"),a.footerClass])},[be(a.$slots,"footer",{},()=>[Ce(I(a.footer),1)])],2)):K("v-if",!0)],2)}}});var PH=ze(RH,[["__file","card.vue"]]);const MH=Rt(PH),BH=Ue({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),LH={change:(e,t)=>[e,t].every(gt)},o3=Symbol("carouselContextKey"),y_="ElCarouselItem";var Fo=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Fo||{});function b_(e){return Un(e)&&e.type===_e}function OH(e){return Un(e)&&e.type===ts}function DH(e){return Un(e)&&!b_(e)&&!OH(e)}const VH=e=>{if(!Un(e))return{};const t=e.props||{},n=(Un(e.type)?e.type.props:void 0)||{},a={};return Object.keys(n).forEach(s=>{ln(n[s],"default")&&(a[s]=n[s].default)}),Object.keys(t).forEach(s=>{a[Po(s)]=t[s]}),a},FH=e=>{if(!Ve(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},qr=e=>{const t=Ve(e)?e:[e],n=[];return t.forEach(a=>{var s;Ve(a)?n.push(...qr(a)):Un(a)&&((s=a.component)!=null&&s.subTree)?n.push(a,...qr(a.component.subTree)):Un(a)&&Ve(a.children)?n.push(...qr(a.children)):Un(a)&&a.shapeFlag===2?n.push(...qr(a.type())):n.push(a)}),n},UH=(e,t,n)=>qr(e.subTree).filter(o=>{var r;return Un(o)&&((r=o.type)==null?void 0:r.name)===t&&!!o.component}).map(o=>o.component.uid).map(o=>n[o]).filter(o=>!!o),Ym=(e,t)=>{const n=Fn({}),a=Fn([]),s=new WeakMap,o=d=>{n.value[d.uid]=d,Xv(n),ft(()=>{const p=d.getVnode().el,v=p.parentNode;if(!s.has(v)){s.set(v,[]);const h=v.insertBefore.bind(v);v.insertBefore=(m,g)=>(s.get(v).some(b=>m===b||g===b)&&Xv(n),h(m,g))}s.get(v).push(p)})},r=d=>{delete n.value[d.uid],Xv(n);const p=d.getVnode().el,v=p.parentNode,h=s.get(v),m=h.indexOf(p);h.splice(m,1)},i=()=>{a.value=UH(e,t,n.value)},c=d=>d.render();return{children:a,addChild:o,removeChild:r,ChildrenSorter:le({setup(d,{slots:p}){return()=>(i(),p.default?yt(c,{render:p.default}):null)}})}},Fk=300,zH=(e,t,n)=>{const{children:a,addChild:s,removeChild:o,ChildrenSorter:r}=Ym(qt(),y_),i=Ta(),c=T(-1),u=T(null),d=T(!1),p=T(),v=T(0),h=T(!0),m=x(()=>e.arrow!=="never"&&!f(b)),g=x(()=>a.value.some(J=>J.props.label.toString().length>0)),y=x(()=>e.type==="card"),b=x(()=>e.direction==="vertical"),C=x(()=>e.height!=="auto"?{height:e.height}:{height:`${v.value}px`,overflow:"hidden"}),k=Ec(J=>{N(J)},Fk,{trailing:!0}),S=Ec(J=>{U(J)},Fk),$=J=>h.value?c.value<=1?J<=1:J>1:!0;function E(){u.value&&(clearInterval(u.value),u.value=null)}function R(){e.interval<=0||!e.autoplay||u.value||(u.value=setInterval(()=>A(),e.interval))}const A=()=>{c.valueX.props.name===J);H.length>0&&(J=a.value.indexOf(H[0]))}if(J=Number(J),Number.isNaN(J)||J!==Math.floor(J))return;const ee=a.value.length,Q=c.value;J<0?c.value=e.loop?ee-1:0:J>=ee?c.value=e.loop?0:ee-1:c.value=J,Q===c.value&&P(Q),ae()}function P(J){a.value.forEach((ee,Q)=>{ee.translateItem(Q,c.value,J)})}function B(J,ee){var Q,H,X,he;const D=f(a),Y=D.length;if(Y===0||!J.states.inStage)return!1;const ne=ee+1,re=ee-1,se=Y-1,ke=D[se].states.active,ye=D[0].states.active,Se=(H=(Q=D[ne])==null?void 0:Q.states)==null?void 0:H.active,ce=(he=(X=D[re])==null?void 0:X.states)==null?void 0:he.active;return ee===se&&ye||Se?"left":ee===0&&ke||ce?"right":!1}function M(){d.value=!0,e.pauseOnHover&&E()}function j(){d.value=!1,R()}function F(J){f(b)||a.value.forEach((ee,Q)=>{J===B(ee,Q)&&(ee.states.hover=!0)})}function q(){f(b)||a.value.forEach(J=>{J.states.hover=!1})}function L(J){c.value=J}function U(J){e.trigger==="hover"&&J!==c.value&&(c.value=J)}function O(){N(c.value-1)}function G(){N(c.value+1)}function ae(){E(),e.pauseOnHover||R()}function Z(J){e.height==="auto"&&(v.value=J)}function te(){var J;const ee=(J=i.default)==null?void 0:J.call(i);if(!ee)return null;const H=qr(ee).filter(X=>Un(X)&&X.type.name===y_);return(H==null?void 0:H.length)===2&&e.loop&&!y.value?(h.value=!0,H):(h.value=!1,null)}Te(()=>c.value,(J,ee)=>{P(ee),h.value&&(J=J%2,ee=ee%2),ee>-1&&t(Xt,J,ee)});const ie=x({get:()=>h.value?c.value%2:c.value,set:J=>c.value=J});Te(()=>e.autoplay,J=>{J?R():E()}),Te(()=>e.loop,()=>{N(c.value)}),Te(()=>e.interval,()=>{ae()});const oe=Fn();return ft(()=>{Te(()=>a.value,()=>{a.value.length>0&&N(e.initialIndex)},{immediate:!0}),oe.value=Xn(p.value,()=>{P()}),R()}),on(()=>{E(),p.value&&oe.value&&oe.value.stop()}),Gt(o3,{root:p,isCardType:y,isVertical:b,items:a,loop:e.loop,cardScale:e.cardScale,addItem:s,removeItem:o,setActiveItem:N,setContainerHeight:Z}),{root:p,activeIndex:c,exposeActiveIndex:ie,arrowDisplay:m,hasLabel:g,hover:d,isCardType:y,items:a,isVertical:b,containerStyle:C,isItemsTwoLength:h,handleButtonEnter:F,handleButtonLeave:q,handleIndicatorClick:L,handleMouseEnter:M,handleMouseLeave:j,setActiveItem:N,prev:O,next:G,PlaceholderItem:te,isTwoLengthShow:$,ItemsSorter:r,throttledArrowClick:k,throttledIndicatorHover:S}},HH="ElCarousel",KH=le({name:HH}),qH=le({...KH,props:BH,emits:LH,setup(e,{expose:t,emit:n}){const a=e,{root:s,activeIndex:o,exposeActiveIndex:r,arrowDisplay:i,hasLabel:c,hover:u,isCardType:d,items:p,isVertical:v,containerStyle:h,handleButtonEnter:m,handleButtonLeave:g,handleIndicatorClick:y,handleMouseEnter:b,handleMouseLeave:C,setActiveItem:k,prev:S,next:$,PlaceholderItem:E,isTwoLengthShow:R,ItemsSorter:A,throttledArrowClick:N,throttledIndicatorHover:P}=zH(a,n),B=Le("carousel"),{t:M}=rn(),j=x(()=>{const U=[B.b(),B.m(a.direction)];return f(d)&&U.push(B.m("card")),U}),F=x(()=>{const U=[B.e("indicators"),B.em("indicators",a.direction)];return f(c)&&U.push(B.em("indicators","labels")),a.indicatorPosition==="outside"&&U.push(B.em("indicators","outside")),f(v)&&U.push(B.em("indicators","right")),U});function q(U){if(!a.motionBlur)return;const O=f(v)?`${B.namespace.value}-transitioning-vertical`:`${B.namespace.value}-transitioning`;U.currentTarget.classList.add(O)}function L(U){if(!a.motionBlur)return;const O=f(v)?`${B.namespace.value}-transitioning-vertical`:`${B.namespace.value}-transitioning`;U.currentTarget.classList.remove(O)}return t({activeIndex:r,setActiveItem:k,prev:S,next:$}),(U,O)=>(_(),w("div",{ref_key:"root",ref:s,class:V(f(j)),onMouseenter:qe(f(b),["stop"]),onMouseleave:qe(f(C),["stop"])},[f(i)?(_(),ue(aa,{key:0,name:"carousel-arrow-left",persisted:""},{default:W(()=>[et(l("button",{type:"button",class:V([f(B).e("arrow"),f(B).em("arrow","left")]),"aria-label":f(M)("el.carousel.leftArrow"),onMouseenter:G=>f(m)("left"),onMouseleave:f(g),onClick:qe(G=>f(N)(f(o)-1),["stop"])},[z(f(ct),null,{default:W(()=>[z(f(Bl))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[fn,(U.arrow==="always"||f(u))&&(a.loop||f(o)>0)]])]),_:1})):K("v-if",!0),f(i)?(_(),ue(aa,{key:1,name:"carousel-arrow-right",persisted:""},{default:W(()=>[et(l("button",{type:"button",class:V([f(B).e("arrow"),f(B).em("arrow","right")]),"aria-label":f(M)("el.carousel.rightArrow"),onMouseenter:G=>f(m)("right"),onMouseleave:f(g),onClick:qe(G=>f(N)(f(o)+1),["stop"])},[z(f(ct),null,{default:W(()=>[z(f(Ds))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[fn,(U.arrow==="always"||f(u))&&(a.loop||f(o)[U.indicatorPosition!=="none"?(_(),w("ul",{key:0,class:V(f(F))},[(_(!0),w(_e,null,Re(f(p),(G,ae)=>et((_(),w("li",{key:ae,class:V([f(B).e("indicator"),f(B).em("indicator",U.direction),f(B).is("active",ae===f(o))]),onMouseenter:Z=>f(P)(ae),onClick:qe(Z=>f(y)(ae),["stop"])},[l("button",{class:V(f(B).e("button")),"aria-label":f(M)("el.carousel.indicator",{index:ae+1})},[f(c)?(_(),w("span",{key:0},I(G.props.label),1)):K("v-if",!0)],10,["aria-label"])],42,["onMouseenter","onClick"])),[[fn,f(R)(ae)]])),128))],2)):K("v-if",!0)]),_:1}),a.motionBlur?(_(),w("svg",{key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},[l("defs",null,[l("filter",{id:"elCarouselHorizontal"},[l("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),l("filter",{id:"elCarouselVertical"},[l("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])])])):K("v-if",!0)],42,["onMouseenter","onMouseleave"]))}});var jH=ze(qH,[["__file","carousel.vue"]]);const WH=Ue({name:{type:String,default:""},label:{type:[String,Number],default:""}}),GH=e=>{const t=Ze(o3),n=qt(),a=T(),s=T(!1),o=T(0),r=T(1),i=T(!1),c=T(!1),u=T(!1),d=T(!1),{isCardType:p,isVertical:v,cardScale:h}=t;function m(S,$,E){const R=E-1,A=$-1,N=$+1,P=E/2;return $===0&&S===R?-1:$===R&&S===0?E:S=P?E+1:S>N&&S-$>=P?-2:S}function g(S,$){var E,R;const A=f(v)?((E=t.root.value)==null?void 0:E.offsetHeight)||0:((R=t.root.value)==null?void 0:R.offsetWidth)||0;return u.value?A*((2-h)*(S-$)+1)/4:S<$?-(1+h)*A/4:(3+h)*A/4}function y(S,$,E){const R=t.root.value;return R?((E?R.offsetHeight:R.offsetWidth)||0)*(S-$):0}const b=(S,$,E)=>{var R;const A=f(p),N=(R=t.items.value.length)!=null?R:Number.NaN,P=S===$;!A&&!tn(E)&&(d.value=P||S===E),!P&&N>2&&t.loop&&(S=m(S,$,N));const B=f(v);i.value=P,A?(u.value=Math.round(Math.abs(S-$))<=1,o.value=g(S,$),r.value=f(i)?1:h):o.value=y(S,$,B),c.value=!0,P&&a.value&&t.setContainerHeight(a.value.offsetHeight)};function C(){if(t&&f(p)){const S=t.items.value.findIndex(({uid:$})=>$===n.uid);t.setActiveItem(S)}}const k={props:e,states:At({hover:s,translate:o,scale:r,active:i,ready:c,inStage:u,animating:d}),uid:n.uid,getVnode:()=>n.vnode,translateItem:b};return t.addItem(k),on(()=>{t.removeItem(k)}),{carouselItemRef:a,active:i,animating:d,hover:s,inStage:u,isVertical:v,translate:o,isCardType:p,scale:r,ready:c,handleItemClick:C}},YH=le({name:y_}),XH=le({...YH,props:WH,setup(e){const t=e,n=Le("carousel"),{carouselItemRef:a,active:s,animating:o,hover:r,inStage:i,isVertical:c,translate:u,isCardType:d,scale:p,ready:v,handleItemClick:h}=GH(t),m=x(()=>[n.e("item"),n.is("active",s.value),n.is("in-stage",i.value),n.is("hover",r.value),n.is("animating",o.value),{[n.em("item","card")]:d.value,[n.em("item","card-vertical")]:d.value&&c.value}]),g=x(()=>{const b=`${`translate${f(c)?"Y":"X"}`}(${f(u)}px)`,C=`scale(${f(p)})`;return{transform:[b,C].join(" ")}});return(y,b)=>et((_(),w("div",{ref_key:"carouselItemRef",ref:a,class:V(f(m)),style:Je(f(g)),onClick:f(h)},[f(d)?et((_(),w("div",{key:0,class:V(f(n).e("mask"))},null,2)),[[fn,!f(s)]]):K("v-if",!0),be(y.$slots,"default")],14,["onClick"])),[[fn,f(v)]])}});var r3=ze(XH,[["__file","carousel-item.vue"]]);const QH=Rt(jH,{CarouselItem:r3}),JH=ea(r3),l3={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:Ma,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...Ts(["ariaControls"])},i3={[Et]:e=>ut(e)||gt(e)||En(e),change:e=>ut(e)||gt(e)||En(e)},xd=Symbol("checkboxGroupContextKey"),ZH=({model:e,isChecked:t})=>{const n=Ze(xd,void 0),a=x(()=>{var o,r;const i=(o=n==null?void 0:n.max)==null?void 0:o.value,c=(r=n==null?void 0:n.min)==null?void 0:r.value;return!tn(i)&&e.value.length>=i&&!t.value||!tn(c)&&e.value.length<=c&&t.value});return{isDisabled:Xa(x(()=>(n==null?void 0:n.disabled.value)||a.value)),isLimitDisabled:a}},eK=(e,{model:t,isLimitExceeded:n,hasOwnLabel:a,isDisabled:s,isLabeledByFormItem:o})=>{const r=Ze(xd,void 0),{formItem:i}=Is(),{emit:c}=qt();function u(m){var g,y,b,C;return[!0,e.trueValue,e.trueLabel].includes(m)?(y=(g=e.trueValue)!=null?g:e.trueLabel)!=null?y:!0:(C=(b=e.falseValue)!=null?b:e.falseLabel)!=null?C:!1}function d(m,g){c(Xt,u(m),g)}function p(m){if(n.value)return;const g=m.target;c(Xt,u(g.checked),m)}async function v(m){n.value||!a.value&&!s.value&&o.value&&(m.composedPath().some(b=>b.tagName==="LABEL")||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),await it(),d(t.value,m)))}const h=x(()=>(r==null?void 0:r.validateEvent)||e.validateEvent);return Te(()=>e.modelValue,()=>{h.value&&(i==null||i.validate("change").catch(m=>void 0))}),{handleChange:p,onClickRoot:v}},tK=e=>{const t=T(!1),{emit:n}=qt(),a=Ze(xd,void 0),s=x(()=>tn(a)===!1),o=T(!1),r=x({get(){var i,c;return s.value?(i=a==null?void 0:a.modelValue)==null?void 0:i.value:(c=e.modelValue)!=null?c:t.value},set(i){var c,u;s.value&&Ve(i)?(o.value=((c=a==null?void 0:a.max)==null?void 0:c.value)!==void 0&&i.length>(a==null?void 0:a.max.value)&&i.length>r.value.length,o.value===!1&&((u=a==null?void 0:a.changeEvent)==null||u.call(a,i))):(n(Et,i),t.value=i)}});return{model:r,isGroup:s,isLimitExceeded:o}},nK=(e,t,{model:n})=>{const a=Ze(xd,void 0),s=T(!1),o=x(()=>mo(e.value)?e.label:e.value),r=x(()=>{const d=n.value;return En(d)?d:Ve(d)?Ot(o.value)?d.map(Tn).some(p=>$a(p,o.value)):d.map(Tn).includes(o.value):d!=null?d===e.trueValue||d===e.trueLabel:!!d}),i=xa(x(()=>{var d;return(d=a==null?void 0:a.size)==null?void 0:d.value}),{prop:!0}),c=xa(x(()=>{var d;return(d=a==null?void 0:a.size)==null?void 0:d.value})),u=x(()=>!!t.default||!mo(o.value));return{checkboxButtonSize:i,isChecked:r,isFocused:s,checkboxSize:c,hasOwnLabel:u,actualValue:o}},c3=(e,t)=>{const{formItem:n}=Is(),{model:a,isGroup:s,isLimitExceeded:o}=tK(e),{isFocused:r,isChecked:i,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d,actualValue:p}=nK(e,t,{model:a}),{isDisabled:v}=ZH({model:a,isChecked:i}),{inputId:h,isLabeledByFormItem:m}=rr(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:s}),{handleChange:g,onClickRoot:y}=eK(e,{model:a,isLimitExceeded:o,hasOwnLabel:d,isDisabled:v,isLabeledByFormItem:m});return(()=>{function C(){var k,S;Ve(a.value)&&!a.value.includes(p.value)?a.value.push(p.value):a.value=(S=(k=e.trueValue)!=null?k:e.trueLabel)!=null?S:!0}e.checked&&C()})(),Rl({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},x(()=>s.value&&mo(e.value))),Rl({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},x(()=>!!e.trueLabel)),Rl({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},x(()=>!!e.falseLabel)),{inputId:h,isLabeledByFormItem:m,isChecked:i,isDisabled:v,isFocused:r,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d,model:a,actualValue:p,handleChange:g,onClickRoot:y}},aK=le({name:"ElCheckbox"}),sK=le({...aK,props:l3,emits:i3,setup(e){const t=e,n=Ta(),{inputId:a,isLabeledByFormItem:s,isChecked:o,isDisabled:r,isFocused:i,checkboxSize:c,hasOwnLabel:u,model:d,actualValue:p,handleChange:v,onClickRoot:h}=c3(t,n),m=Le("checkbox"),g=x(()=>[m.b(),m.m(c.value),m.is("disabled",r.value),m.is("bordered",t.border),m.is("checked",o.value)]),y=x(()=>[m.e("input"),m.is("disabled",r.value),m.is("checked",o.value),m.is("indeterminate",t.indeterminate),m.is("focus",i.value)]);return(b,C)=>(_(),ue(Ft(!f(u)&&f(s)?"span":"label"),{class:V(f(g)),"aria-controls":b.indeterminate?b.ariaControls:null,onClick:f(h)},{default:W(()=>{var k,S,$,E;return[l("span",{class:V(f(y))},[b.trueValue||b.falseValue||b.trueLabel||b.falseLabel?et((_(),w("input",{key:0,id:f(a),"onUpdate:modelValue":R=>$n(d)?d.value=R:null,class:V(f(m).e("original")),type:"checkbox",indeterminate:b.indeterminate,name:b.name,tabindex:b.tabindex,disabled:f(r),"true-value":(S=(k=b.trueValue)!=null?k:b.trueLabel)!=null?S:!0,"false-value":(E=($=b.falseValue)!=null?$:b.falseLabel)!=null?E:!1,onChange:f(v),onFocus:R=>i.value=!0,onBlur:R=>i.value=!1,onClick:qe(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[Mo,f(d)]]):et((_(),w("input",{key:1,id:f(a),"onUpdate:modelValue":R=>$n(d)?d.value=R:null,class:V(f(m).e("original")),type:"checkbox",indeterminate:b.indeterminate,disabled:f(r),value:f(p),name:b.name,tabindex:b.tabindex,onChange:f(v),onFocus:R=>i.value=!0,onBlur:R=>i.value=!1,onClick:qe(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[Mo,f(d)]]),l("span",{class:V(f(m).e("inner"))},null,2)],2),f(u)?(_(),w("span",{key:0,class:V(f(m).e("label"))},[be(b.$slots,"default"),b.$slots.default?K("v-if",!0):(_(),w(_e,{key:0},[Ce(I(b.label),1)],64))],2)):K("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var oK=ze(sK,[["__file","checkbox.vue"]]);const rK=le({name:"ElCheckboxButton"}),lK=le({...rK,props:l3,emits:i3,setup(e){const t=e,n=Ta(),{isFocused:a,isChecked:s,isDisabled:o,checkboxButtonSize:r,model:i,actualValue:c,handleChange:u}=c3(t,n),d=Ze(xd,void 0),p=Le("checkbox"),v=x(()=>{var m,g,y,b;const C=(g=(m=d==null?void 0:d.fill)==null?void 0:m.value)!=null?g:"";return{backgroundColor:C,borderColor:C,color:(b=(y=d==null?void 0:d.textColor)==null?void 0:y.value)!=null?b:"",boxShadow:C?`-1px 0 0 0 ${C}`:void 0}}),h=x(()=>[p.b("button"),p.bm("button",r.value),p.is("disabled",o.value),p.is("checked",s.value),p.is("focus",a.value)]);return(m,g)=>{var y,b,C,k;return _(),w("label",{class:V(f(h))},[m.trueValue||m.falseValue||m.trueLabel||m.falseLabel?et((_(),w("input",{key:0,"onUpdate:modelValue":S=>$n(i)?i.value=S:null,class:V(f(p).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:f(o),"true-value":(b=(y=m.trueValue)!=null?y:m.trueLabel)!=null?b:!0,"false-value":(k=(C=m.falseValue)!=null?C:m.falseLabel)!=null?k:!1,onChange:f(u),onFocus:S=>a.value=!0,onBlur:S=>a.value=!1,onClick:qe(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[Mo,f(i)]]):et((_(),w("input",{key:1,"onUpdate:modelValue":S=>$n(i)?i.value=S:null,class:V(f(p).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:f(o),value:f(c),onChange:f(u),onFocus:S=>a.value=!0,onBlur:S=>a.value=!1,onClick:qe(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[Mo,f(i)]]),m.$slots.default||m.label?(_(),w("span",{key:2,class:V(f(p).be("button","inner")),style:Je(f(s)?f(v):void 0)},[be(m.$slots,"default",{},()=>[Ce(I(m.label),1)])],6)):K("v-if",!0)],2)}}});var u3=ze(lK,[["__file","checkbox-button.vue"]]);const iK=Ue({modelValue:{type:ge(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Ma,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...Ts(["ariaLabel"])}),cK={[Et]:e=>Ve(e),change:e=>Ve(e)},uK=le({name:"ElCheckboxGroup"}),dK=le({...uK,props:iK,emits:cK,setup(e,{emit:t}){const n=e,a=Le("checkbox"),{formItem:s}=Is(),{inputId:o,isLabeledByFormItem:r}=rr(n,{formItemContext:s}),i=async u=>{t(Et,u),await it(),t(Xt,u)},c=x({get(){return n.modelValue},set(u){i(u)}});return Gt(xd,{...To(Pa(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:i}),Te(()=>n.modelValue,(u,d)=>{n.validateEvent&&!$a(u,d)&&(s==null||s.validate("change").catch(p=>void 0))}),(u,d)=>{var p;return _(),ue(Ft(u.tag),{id:f(o),class:V(f(a).b("group")),role:"group","aria-label":f(r)?void 0:u.ariaLabel||"checkbox-group","aria-labelledby":f(r)?(p=f(s))==null?void 0:p.labelId:void 0},{default:W(()=>[be(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var d3=ze(dK,[["__file","checkbox-group.vue"]]);const or=Rt(oK,{CheckboxButton:u3,CheckboxGroup:d3}),fK=ea(u3),f3=ea(d3),p3=Ue({modelValue:{type:[String,Number,Boolean],default:void 0},size:Ma,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),pK=Ue({...p3,border:Boolean}),v3={[Et]:e=>ut(e)||gt(e)||En(e),[Xt]:e=>ut(e)||gt(e)||En(e)},h3=Symbol("radioGroupKey"),m3=(e,t)=>{const n=T(),a=Ze(h3,void 0),s=x(()=>!!a),o=x(()=>mo(e.value)?e.label:e.value),r=x({get(){return s.value?a.modelValue:e.modelValue},set(p){s.value?a.changeEvent(p):t&&t(Et,p),n.value.checked=e.modelValue===o.value}}),i=xa(x(()=>a==null?void 0:a.size)),c=Xa(x(()=>a==null?void 0:a.disabled)),u=T(!1),d=x(()=>c.value||s.value&&r.value!==o.value?-1:0);return Rl({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},x(()=>s.value&&mo(e.value))),{radioRef:n,isGroup:s,radioGroup:a,focus:u,size:i,disabled:c,tabIndex:d,modelValue:r,actualValue:o}},vK=le({name:"ElRadio"}),hK=le({...vK,props:pK,emits:v3,setup(e,{emit:t}){const n=e,a=Le("radio"),{radioRef:s,radioGroup:o,focus:r,size:i,disabled:c,modelValue:u,actualValue:d}=m3(n,t);function p(){it(()=>t(Xt,u.value))}return(v,h)=>{var m;return _(),w("label",{class:V([f(a).b(),f(a).is("disabled",f(c)),f(a).is("focus",f(r)),f(a).is("bordered",v.border),f(a).is("checked",f(u)===f(d)),f(a).m(f(i))])},[l("span",{class:V([f(a).e("input"),f(a).is("disabled",f(c)),f(a).is("checked",f(u)===f(d))])},[et(l("input",{ref_key:"radioRef",ref:s,"onUpdate:modelValue":g=>$n(u)?u.value=g:null,class:V(f(a).e("original")),value:f(d),name:v.name||((m=f(o))==null?void 0:m.name),disabled:f(c),checked:f(u)===f(d),type:"radio",onFocus:g=>r.value=!0,onBlur:g=>r.value=!1,onChange:p,onClick:qe(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[Im,f(u)]]),l("span",{class:V(f(a).e("inner"))},null,2)],2),l("span",{class:V(f(a).e("label")),onKeydown:qe(()=>{},["stop"])},[be(v.$slots,"default",{},()=>[Ce(I(v.label),1)])],42,["onKeydown"])],2)}}});var mK=ze(hK,[["__file","radio.vue"]]);const gK=Ue({...p3}),_K=le({name:"ElRadioButton"}),yK=le({..._K,props:gK,setup(e){const t=e,n=Le("radio"),{radioRef:a,focus:s,size:o,disabled:r,modelValue:i,radioGroup:c,actualValue:u}=m3(t),d=x(()=>({backgroundColor:(c==null?void 0:c.fill)||"",borderColor:(c==null?void 0:c.fill)||"",boxShadow:c!=null&&c.fill?`-1px 0 0 0 ${c.fill}`:"",color:(c==null?void 0:c.textColor)||""}));return(p,v)=>{var h;return _(),w("label",{class:V([f(n).b("button"),f(n).is("active",f(i)===f(u)),f(n).is("disabled",f(r)),f(n).is("focus",f(s)),f(n).bm("button",f(o))])},[et(l("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":m=>$n(i)?i.value=m:null,class:V(f(n).be("button","original-radio")),value:f(u),type:"radio",name:p.name||((h=f(c))==null?void 0:h.name),disabled:f(r),onFocus:m=>s.value=!0,onBlur:m=>s.value=!1,onClick:qe(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[Im,f(i)]]),l("span",{class:V(f(n).be("button","inner")),style:Je(f(i)===f(u)?f(d):{}),onKeydown:qe(()=>{},["stop"])},[be(p.$slots,"default",{},()=>[Ce(I(p.label),1)])],46,["onKeydown"])],2)}}});var g3=ze(yK,[["__file","radio-button.vue"]]);const bK=Ue({id:{type:String,default:void 0},size:Ma,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...Ts(["ariaLabel"])}),wK=v3,CK=le({name:"ElRadioGroup"}),kK=le({...CK,props:bK,emits:wK,setup(e,{emit:t}){const n=e,a=Le("radio"),s=vs(),o=T(),{formItem:r}=Is(),{inputId:i,isLabeledByFormItem:c}=rr(n,{formItemContext:r}),u=p=>{t(Et,p),it(()=>t(Xt,p))};ft(()=>{const p=o.value.querySelectorAll("[type=radio]"),v=p[0];!Array.from(p).some(h=>h.checked)&&v&&(v.tabIndex=0)});const d=x(()=>n.name||s.value);return Gt(h3,At({...Pa(n),changeEvent:u,name:d})),Te(()=>n.modelValue,(p,v)=>{n.validateEvent&&!$a(p,v)&&(r==null||r.validate("change").catch(h=>void 0))}),(p,v)=>(_(),w("div",{id:f(i),ref_key:"radioGroupRef",ref:o,class:V(f(a).b("group")),role:"radiogroup","aria-label":f(c)?void 0:p.ariaLabel||"radio-group","aria-labelledby":f(c)?f(r).labelId:void 0},[be(p.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var _3=ze(kK,[["__file","radio-group.vue"]]);const y3=Rt(mK,{RadioButton:g3,RadioGroup:_3}),SK=ea(_3),EK=ea(g3),Xm=Symbol();function $K(e){return!!(Ve(e)?e.every(({type:t})=>t===ts):(e==null?void 0:e.type)===ts)}var xK=le({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const t=Le("cascader-node"),{renderLabelFn:n}=Ze(Xm),{node:a}=e,{data:s,label:o}=a,r=()=>{const i=n==null?void 0:n({node:a,data:s});return $K(i)?o:i??o};return()=>z("span",{class:t.e("label")},[r()])}});const TK=le({name:"ElCascaderNode"}),IK=le({...TK,props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=e,a=Ze(Xm),s=Le("cascader-node"),o=x(()=>a.isHoverMenu),r=x(()=>a.config.multiple),i=x(()=>a.config.checkStrictly),c=x(()=>a.config.showPrefix),u=x(()=>{var A;return(A=a.checkedNodes[0])==null?void 0:A.uid}),d=x(()=>n.node.isDisabled),p=x(()=>n.node.isLeaf),v=x(()=>i.value&&!p.value||!d.value),h=x(()=>g(a.expandingNode)),m=x(()=>i.value&&a.checkedNodes.some(g)),g=A=>{var N;const{level:P,uid:B}=n.node;return((N=A==null?void 0:A.pathNodes[P-1])==null?void 0:N.uid)===B},y=()=>{h.value||a.expandNode(n.node)},b=A=>{const{node:N}=n;A!==N.checked&&a.handleCheckChange(N,A)},C=()=>{a.lazyLoad(n.node,()=>{p.value||y()})},k=A=>{o.value&&(S(),!p.value&&t("expand",A))},S=()=>{const{node:A}=n;!v.value||A.loading||(A.loaded?y():C())},$=()=>{o.value||(p.value&&!d.value&&!i.value&&!r.value?R(!0):(a.config.checkOnClickNode||p.value&&a.config.checkOnClickLeaf)&&!d.value?E(!n.node.checked):S())},E=A=>{i.value?(b(A),n.node.loaded&&y()):R(A)},R=A=>{n.node.loaded?(b(A),!i.value&&y()):C()};return(A,N)=>(_(),w("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!f(p),"aria-owns":f(p)?void 0:e.menuId,"aria-expanded":f(h),tabindex:f(v)?-1:void 0,class:V([f(s).b(),f(s).is("selectable",f(i)),f(s).is("active",e.node.checked),f(s).is("disabled",!f(v)),f(h)&&"in-active-path",f(m)&&"in-checked-path"]),onMouseenter:k,onFocus:k,onClick:$},[K(" prefix "),f(r)&&f(c)?(_(),ue(f(or),{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:f(d),onClick:qe(()=>{},["stop"]),"onUpdate:modelValue":E},null,8,["model-value","indeterminate","disabled","onClick"])):f(i)&&f(c)?(_(),ue(f(y3),{key:1,"model-value":f(u),label:e.node.uid,disabled:f(d),"onUpdate:modelValue":E,onClick:qe(()=>{},["stop"])},{default:W(()=>[K(` Add an empty element to avoid render label, do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 `),l("span")]),_:1},8,["model-value","label","disabled","onClick"])):f(p)&&e.node.checked?(_(),ue(f(ct),{key:2,class:V(f(s).e("prefix"))},{default:W(()=>[z(f(Np))]),_:1},8,["class"])):K("v-if",!0),K(" content "),z(f(xK),{node:e.node},null,8,["node"]),K(" postfix "),f(p)?K("v-if",!0):(_(),w(_e,{key:3},[e.node.loading?(_(),ue(f(ct),{key:0,class:V([f(s).is("loading"),f(s).e("postfix")])},{default:W(()=>[z(f(el))]),_:1},8,["class"])):(_(),ue(f(ct),{key:1,class:V(["arrow-right",f(s).e("postfix")])},{default:W(()=>[z(f(Ds))]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex"]))}});var AK=ze(IK,[["__file","node.vue"]]);const NK=le({name:"ElCascaderMenu"}),RK=le({...NK,props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=e,n=qt(),a=Le("cascader-menu"),{t:s}=rn(),o=vs();let r,i;const c=Ze(Xm),u=T(),d=x(()=>!t.nodes.length),p=x(()=>!c.initialLoaded),v=x(()=>`${o.value}-${t.index}`),h=b=>{r=b.target},m=b=>{if(!(!c.isHoverMenu||!r||!u.value))if(r.contains(b.target)){g();const C=n.vnode.el,{left:k}=C.getBoundingClientRect(),{offsetWidth:S,offsetHeight:$}=C,E=b.clientX-k,R=r.offsetTop,A=R+r.offsetHeight;u.value.innerHTML=` `}else i||(i=window.setTimeout(y,c.config.hoverThreshold))},g=()=>{i&&(clearTimeout(i),i=void 0)},y=()=>{u.value&&(u.value.innerHTML="",g())};return(b,C)=>(_(),ue(f(wr),{key:f(v),tag:"ul",role:"menu",class:V(f(a).b()),"wrap-class":f(a).e("wrap"),"view-class":[f(a).e("list"),f(a).is("empty",f(d))],onMousemove:m,onMouseleave:y},{default:W(()=>{var k;return[(_(!0),w(_e,null,Re(e.nodes,S=>(_(),ue(AK,{key:S.uid,node:S,"menu-id":f(v),onExpand:h},null,8,["node","menu-id"]))),128)),f(p)?(_(),w("div",{key:0,class:V(f(a).e("empty-text"))},[z(f(ct),{size:"14",class:V(f(a).is("loading"))},{default:W(()=>[z(f(el))]),_:1},8,["class"]),Ce(" "+I(f(s)("el.cascader.loading")),1)],2)):f(d)?(_(),w("div",{key:1,class:V(f(a).e("empty-text"))},[be(b.$slots,"empty",{},()=>[Ce(I(f(s)("el.cascader.noData")),1)])],2)):(k=f(c))!=null&&k.isHoverMenu?(_(),w(_e,{key:2},[K(" eslint-disable-next-line vue/html-self-closing "),(_(),w("svg",{ref_key:"hoverZone",ref:u,class:V(f(a).e("hover-zone"))},null,2))],2112)):K("v-if",!0)]}),_:3},8,["class","wrap-class","view-class"]))}});var PK=ze(RK,[["__file","menu.vue"]]);let MK=0;const BK=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let w_=class C_{constructor(t,n,a,s=!1){this.data=t,this.config=n,this.parent=a,this.root=s,this.uid=MK++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:o,label:r,children:i}=n,c=t[i],u=BK(this);this.level=s?0:a?a.level+1:1,this.value=t[o],this.label=t[r],this.pathNodes=u,this.pathValues=u.map(d=>d.value),this.pathLabels=u.map(d=>d.label),this.childrenData=c,this.children=(c||[]).map(d=>new C_(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!$o(c),this.text=""}get isDisabled(){const{data:t,parent:n,config:a}=this,{disabled:s,checkStrictly:o}=a;return(vt(s)?s(t,this):!!t[s])||!o&&!!(n!=null&&n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:a,loaded:s}=this,{lazy:o,leaf:r}=n,i=vt(r)?r(t,this):t[r];return tn(i)?o&&!s?!1:!(Ve(a)&&a.length):!!i}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:a}=this,s=new C_(t,this.config,this);return Ve(n)?n.push(t):this.childrenData=[t],a.push(s),s}calcText(t,n){const a=t?this.pathLabels.join(n):this.label;return this.text=a,a}broadcast(t){this.children.forEach(n=>{var a;n&&(n.broadcast(t),(a=n.onParentCheck)==null||a.call(n,t))})}emit(){var t;const{parent:n}=this;n&&((t=n.onChildCheck)==null||t.call(n),n.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(s=>!s.isDisabled),a=n.length?n.every(s=>s.checked):!1;this.setCheckState(a)}setCheckState(t){const n=this.children.length,a=this.children.reduce((s,o)=>{const r=o.checked?1:o.indeterminate?.5:0;return s+r},0);this.checked=this.loaded&&this.children.filter(s=>!s.isDisabled).every(s=>s.loaded&&s.checked)&&t,this.indeterminate=this.loaded&&a!==n&&a>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:a}=this.config;n||!a?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};const k_=(e,t)=>e.reduce((n,a)=>(a.isLeaf?n.push(a):(!t&&n.push(a),n=n.concat(k_(a.children,t))),n),[]);class Uk{constructor(t,n){this.config=n;const a=(t||[]).map(s=>new w_(s,this.config));this.nodes=a,this.allNodes=k_(a,!1),this.leafNodes=k_(a,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const a=n?n.appendChild(t):new w_(t,this.config);n||this.nodes.push(a),this.appendAllNodesAndLeafNodes(a)}appendNodes(t,n){t.length>0?t.forEach(a=>this.appendNode(a,n)):n&&n.isLeaf&&this.leafNodes.push(n)}appendAllNodesAndLeafNodes(t){this.allNodes.push(t),t.isLeaf&&this.leafNodes.push(t),t.children&&t.children.forEach(n=>{this.appendAllNodesAndLeafNodes(n)})}getNodeByValue(t,n=!1){return mo(t)?null:this.getFlattedNodes(n).find(s=>$a(s.value,t)||$a(s.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:a,level:s})=>$a(t.value,a)&&t.level===s)||null}}const b3=Ue({modelValue:{type:ge([Number,String,Array])},options:{type:ge(Array),default:()=>[]},props:{type:ge(Object),default:()=>({})}}),LK={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:Cn,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},OK=Ue({...b3,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),zk=e=>!0,DK={[Et]:zk,[Xt]:zk,close:()=>!0,"expand-change":e=>e},VK=e=>x(()=>({...LK,...e.props})),Hk=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},FK=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():mT(e)&&e.click()},UK=(e,t)=>{const n=t.slice(0),a=n.map(o=>o.uid),s=e.reduce((o,r)=>{const i=a.indexOf(r.uid);return i>-1&&(o.push(r),n.splice(i,1),a.splice(i,1)),o},[]);return s.push(...n),s},Kk=e=>[...new Set(e)],eo=e=>!e&&e!==0?[]:Ve(e)?e:[e],zK=le({name:"ElCascaderPanel",inheritAttrs:!1}),HK=le({...zK,props:OK,emits:DK,setup(e,{expose:t,emit:n}){const a=e;let s=!1;const o=Le("cascader"),r=VK(a),i=Ta();let c;const u=T(!0),d=T([]),p=T(),v=T([]),h=T(),m=T([]),g=x(()=>r.value.expandTrigger==="hover"),y=x(()=>a.renderLabel||i.default),b=()=>{const{options:F}=a,q=r.value;s=!1,c=new Uk(F,q),v.value=[c.getNodes()],q.lazy&&$o(a.options)?(u.value=!1,C(void 0,L=>{L&&(c=new Uk(L,q),v.value=[c.getNodes()]),u.value=!0,P(!1,!0)})):P(!1,!0)},C=(F,q)=>{const L=r.value;F=F||new w_({},L,void 0,!0),F.loading=!0;const U=O=>{const G=F,ae=G.root?null:G;G.loading=!1,G.loaded=!0,G.childrenData=G.childrenData||[],O&&(c==null||c.appendNodes(O,ae)),O&&(q==null||q(O))};L.lazyLoad(F,U)},k=(F,q)=>{var L;const{level:U}=F,O=v.value.slice(0,U);let G;F.isLeaf?G=F.pathNodes[U-2]:(G=F,O.push(F.children)),((L=h.value)==null?void 0:L.uid)!==(G==null?void 0:G.uid)&&(h.value=F,v.value=O,!q&&n("expand-change",(F==null?void 0:F.pathValues)||[]))},S=(F,q,L=!0)=>{const{checkStrictly:U,multiple:O}=r.value,G=m.value[0];s=!0,!O&&(G==null||G.doCheck(!1)),F.doCheck(q),N(),L&&!O&&!U&&n("close"),!L&&!O&&!U&&$(F)},$=F=>{F&&(F=F.parent,$(F),F&&k(F))},E=F=>c==null?void 0:c.getFlattedNodes(F),R=F=>{var q;return(q=E(F))==null?void 0:q.filter(({checked:L})=>L!==!1)},A=()=>{m.value.forEach(F=>F.doCheck(!1)),N(),v.value=v.value.slice(0,1),h.value=void 0,n("expand-change",[])},N=()=>{var F;const{checkStrictly:q,multiple:L}=r.value,U=m.value,O=R(!q),G=UK(U,O),ae=G.map(Z=>Z.valueByOption);m.value=G,p.value=L?ae:(F=ae[0])!=null?F:null},P=(F=!1,q=!1)=>{const{modelValue:L}=a,{lazy:U,multiple:O,checkStrictly:G}=r.value,ae=!G;if(!(!u.value||s||!q&&$a(L,p.value)))if(U&&!F){const te=Kk(DD(eo(L))).map(ie=>c==null?void 0:c.getNodeByValue(ie)).filter(ie=>!!ie&&!ie.loaded&&!ie.loading);te.length?te.forEach(ie=>{C(ie,()=>P(!1,q))}):P(!0,q)}else{const Z=O?eo(L):[L],te=Kk(Z.map(ie=>c==null?void 0:c.getNodeByValue(ie,ae)));B(te,q),p.value=Nh(L??void 0)}},B=(F,q=!0)=>{const{checkStrictly:L}=r.value,U=m.value,O=F.filter(Z=>!!Z&&(L||Z.isLeaf)),G=c==null?void 0:c.getSameNode(h.value),ae=q&&G||O[0];ae?ae.pathNodes.forEach(Z=>k(Z,!0)):h.value=void 0,U.forEach(Z=>Z.doCheck(!1)),At(O).forEach(Z=>Z.doCheck(!0)),m.value=O,it(M)},M=()=>{cn&&d.value.forEach(F=>{const q=F==null?void 0:F.$el;if(q){const L=q.querySelector(`.${o.namespace.value}-scrollbar__wrap`),U=q.querySelector(`.${o.b("node")}.${o.is("active")}:last-child`)||q.querySelector(`.${o.b("node")}.in-active-path`);Dy(L,U)}})},j=F=>{const q=F.target,{code:L}=F;switch(L){case tt.up:case tt.down:{F.preventDefault();const U=L===tt.up?-1:1;th(gT(q,U,`.${o.b("node")}[tabindex="-1"]`));break}case tt.left:{F.preventDefault();const U=d.value[Hk(q)-1],O=U==null?void 0:U.$el.querySelector(`.${o.b("node")}[aria-expanded="true"]`);th(O);break}case tt.right:{F.preventDefault();const U=d.value[Hk(q)+1],O=U==null?void 0:U.$el.querySelector(`.${o.b("node")}[tabindex="-1"]`);th(O);break}case tt.enter:case tt.numpadEnter:FK(q);break}};return Gt(Xm,At({config:r,expandingNode:h,checkedNodes:m,isHoverMenu:g,initialLoaded:u,renderLabelFn:y,lazyLoad:C,expandNode:k,handleCheckChange:S})),Te(r,(F,q)=>{$a(F,q)||b()},{immediate:!0}),Te(()=>a.options,b,{deep:!0}),Te(()=>a.modelValue,()=>{s=!1,P()},{deep:!0}),Te(()=>p.value,F=>{$a(F,a.modelValue)||(n(Et,F),n(Xt,F))}),fy(()=>d.value=[]),ft(()=>!$o(a.modelValue)&&P()),t({menuList:d,menus:v,checkedNodes:m,handleKeyDown:j,handleCheckChange:S,getFlattedNodes:E,getCheckedNodes:R,clearCheckedNodes:A,calculateCheckedValue:N,scrollToExpandingNode:M}),(F,q)=>(_(),w("div",{class:V([f(o).b("panel"),f(o).is("bordered",F.border)]),onKeydown:j},[(_(!0),w(_e,null,Re(v.value,(L,U)=>(_(),ue(PK,{key:U,ref_for:!0,ref:O=>d.value[U]=O,index:U,nodes:[...L]},{empty:W(()=>[be(F.$slots,"empty")]),_:2},1032,["index","nodes"]))),128))],34))}});var KK=ze(HK,[["__file","index.vue"]]);const w3=Rt(KK),Ol=Ue({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:ol},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),qK={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},jK=le({name:"ElTag"}),WK=le({...jK,props:Ol,emits:qK,setup(e,{emit:t}){const n=e,a=xa(),s=Le("tag"),o=x(()=>{const{type:u,hit:d,effect:p,closable:v,round:h}=n;return[s.b(),s.is("closable",v),s.m(u||"primary"),s.m(a.value),s.m(p),s.is("hit",d),s.is("round",h)]}),r=u=>{t("close",u)},i=u=>{t("click",u)},c=u=>{var d,p,v;(v=(p=(d=u==null?void 0:u.component)==null?void 0:d.subTree)==null?void 0:p.component)!=null&&v.bum&&(u.component.subTree.component.bum=null)};return(u,d)=>u.disableTransitions?(_(),w("span",{key:0,class:V(f(o)),style:Je({backgroundColor:u.color}),onClick:i},[l("span",{class:V(f(s).e("content"))},[be(u.$slots,"default")],2),u.closable?(_(),ue(f(ct),{key:0,class:V(f(s).e("close")),onClick:qe(r,["stop"])},{default:W(()=>[z(f(nr))]),_:1},8,["class","onClick"])):K("v-if",!0)],6)):(_(),ue(aa,{key:1,name:`${f(s).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:c},{default:W(()=>[l("span",{class:V(f(o)),style:Je({backgroundColor:u.color}),onClick:i},[l("span",{class:V(f(s).e("content"))},[be(u.$slots,"default")],2),u.closable?(_(),ue(f(ct),{key:0,class:V(f(s).e("close")),onClick:qe(r,["stop"])},{default:W(()=>[z(f(nr))]),_:1},8,["class","onClick"])):K("v-if",!0)],6)]),_:3},8,["name"]))}});var GK=ze(WK,[["__file","tag.vue"]]);const Ti=Rt(GK),YK=Ue({...b3,size:Ma,placeholder:String,disabled:Boolean,clearable:Boolean,clearIcon:{type:wn,default:Hl},filterable:Boolean,filterMethod:{type:ge(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:Boolean,maxCollapseTagsTooltipHeight:{type:[String,Number]},debounce:{type:Number,default:300},beforeFilter:{type:ge(Function),default:()=>!0},placement:{type:ge(String),values:ql,default:"bottom-start"},fallbackPlacements:{type:ge(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:Yn.popperClass,popperStyle:Yn.popperStyle,teleported:Yn.teleported,effect:{type:ge(String),default:"light"},tagType:{...Ol.type,default:"info"},tagEffect:{...Ol.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},showCheckedStrategy:{type:String,values:["parent","child"],default:"child"},checkOnClickNode:Boolean,showPrefix:{type:Boolean,default:!0},...Yc}),qk=e=>!0,XK={[Et]:qk,[Xt]:qk,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>En(e),expandChange:e=>!!e,removeTag:e=>!!e},ii=new Map;if(cn){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of ii.values())for(const{documentHandler:a}of n)a(t,e);e=void 0}})}function jk(e,t){let n=[];return Ve(t.arg)?n=t.arg:no(t.arg)&&n.push(t.arg),function(a,s){const o=t.instance.popperRef,r=a.target,i=s==null?void 0:s.target,c=!t||!t.instance,u=!r||!i,d=e.contains(r)||e.contains(i),p=e===r,v=n.length&&n.some(m=>m==null?void 0:m.contains(r))||n.length&&n.includes(i),h=o&&(o.contains(r)||o.contains(i));c||u||d||p||v||h||t.value(a,s)}}const Dl={beforeMount(e,t){ii.has(e)||ii.set(e,[]),ii.get(e).push({documentHandler:jk(e,t),bindingFn:t.value})},updated(e,t){ii.has(e)||ii.set(e,[]);const n=ii.get(e),a=n.findIndex(o=>o.bindingFn===t.oldValue),s={documentHandler:jk(e,t),bindingFn:t.value};a>=0?n.splice(a,1,s):n.push(s)},unmounted(e){ii.delete(e)}},QK="ElCascader",JK=le({name:QK}),ZK=le({...JK,props:YK,emits:XK,setup(e,{expose:t,emit:n}){const a=e,s={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:pe})=>{const{modifiersData:Oe,placement:ot}=pe;["right","left","bottom","top"].includes(ot)||Oe.arrow&&(Oe.arrow.x=35)},requires:["arrow"]}]},o=Fl();let r=0,i=0;const c=Le("cascader"),u=Le("input"),{t:d}=rn(),{formItem:p}=Is(),v=Xa(),{valueOnClear:h}=Ap(a),{isComposing:m,handleComposition:g}=Pp({afterComposition(pe){var Oe;const ot=(Oe=pe.target)==null?void 0:Oe.value;Ee(ot)}}),y=T(null),b=T(),C=T(),k=T(null),S=T(null),$=T(null),E=T(!1),R=T(!1),A=T(!1),N=T(""),P=T(""),B=T([]),M=T([]),j=T([]),F=x(()=>o.style),q=x(()=>{var pe;return(pe=a.placeholder)!=null?pe:d("el.cascader.placeholder")}),L=x(()=>P.value||B.value.length>0||m.value?"":q.value),U=xa(),O=x(()=>U.value==="small"?"small":"default"),G=x(()=>!!a.props.multiple),ae=x(()=>!a.filterable||G.value),Z=x(()=>G.value?P.value:N.value),te=x(()=>{var pe;return((pe=S.value)==null?void 0:pe.checkedNodes)||[]}),{wrapperRef:ie,isFocused:oe,handleBlur:J}=Kl(C,{disabled:v,beforeBlur(pe){var Oe,ot,St;return((Oe=y.value)==null?void 0:Oe.isFocusInsideContent(pe))||((St=(ot=b.value)==null?void 0:ot[0])==null?void 0:St.isFocusInsideContent(pe))},afterBlur(){var pe;E.value=!1,a.validateEvent&&((pe=p==null?void 0:p.validate)==null||pe.call(p,"blur").catch(Oe=>void 0))}}),ee=x(()=>!a.clearable||v.value||A.value||!R.value&&!oe.value?!1:!!te.value.length),Q=x(()=>{const{showAllLevels:pe,separator:Oe}=a,ot=te.value;return ot.length?G.value?"":ot[0].calcText(pe,Oe):""}),H=x(()=>(p==null?void 0:p.validateState)||""),X=x({get(){return Nh(a.modelValue)},set(pe){const Oe=pe??h.value;n(Et,Oe),n(Xt,Oe),a.validateEvent&&(p==null||p.validate("change").catch(ot=>void 0))}}),he=x(()=>[c.b(),c.m(U.value),c.is("disabled",v.value),o.class]),D=x(()=>[u.e("icon"),"icon-arrow-down",c.is("reverse",E.value)]),Y=x(()=>c.is("focus",oe.value)),ne=x(()=>{var pe,Oe;return(Oe=(pe=y.value)==null?void 0:pe.popperRef)==null?void 0:Oe.contentRef}),re=pe=>{if(oe.value){const Oe=new FocusEvent("blur",pe);J(Oe)}se(!1)},se=pe=>{var Oe,ot,St;v.value||(pe=pe??!E.value,pe!==E.value&&(E.value=pe,(ot=(Oe=C.value)==null?void 0:Oe.input)==null||ot.setAttribute("aria-expanded",`${pe}`),pe?(ke(),it((St=S.value)==null?void 0:St.scrollToExpandingNode)):a.filterable&&je(),n("visibleChange",pe)))},ke=()=>{it(()=>{var pe;(pe=y.value)==null||pe.updatePopper()})},ye=()=>{A.value=!1},Se=pe=>{const{showAllLevels:Oe,separator:ot}=a;return{node:pe,key:pe.uid,text:pe.calcText(Oe,ot),hitState:!1,closable:!v.value&&!pe.isDisabled,isCollapseTag:!1}},ce=pe=>{var Oe;const ot=pe.node;ot.doCheck(!1),(Oe=S.value)==null||Oe.calculateCheckedValue(),n("removeTag",ot.valueByOption)},we=()=>{switch(a.showCheckedStrategy){case"child":return te.value;case"parent":{const pe=Me(!1),Oe=pe.map(St=>St.value);return pe.filter(St=>!St.parent||!Oe.includes(St.parent.value))}default:return[]}},Ae=()=>{if(!G.value)return;const pe=we(),Oe=[],ot=[];if(pe.forEach(St=>ot.push(Se(St))),M.value=ot,pe.length){pe.slice(0,a.maxCollapseTags).forEach(_n=>Oe.push(Se(_n)));const St=pe.slice(a.maxCollapseTags),vn=St.length;vn&&(a.collapseTags?Oe.push({key:-1,text:`+ ${vn}`,closable:!1,isCollapseTag:!0}):St.forEach(_n=>Oe.push(Se(_n))))}B.value=Oe},Fe=()=>{var pe,Oe;const{filterMethod:ot,showAllLevels:St,separator:vn}=a,_n=(Oe=(pe=S.value)==null?void 0:pe.getFlattedNodes(!a.props.checkStrictly))==null?void 0:Oe.filter(Ln=>Ln.isDisabled?!1:(Ln.calcText(St,vn),ot(Ln,Z.value)));G.value&&(B.value.forEach(Ln=>{Ln.hitState=!1}),M.value.forEach(Ln=>{Ln.hitState=!1})),A.value=!0,j.value=_n,ke()},xe=()=>{var pe;let Oe;A.value&&$.value?Oe=$.value.$el.querySelector(`.${c.e("suggestion-item")}`):Oe=(pe=S.value)==null?void 0:pe.$el.querySelector(`.${c.b("node")}[tabindex="-1"]`),Oe&&(Oe.focus(),!A.value&&Oe.click())},me=()=>{var pe,Oe;const ot=(pe=C.value)==null?void 0:pe.input,St=k.value,vn=(Oe=$.value)==null?void 0:Oe.$el;if(!(!cn||!ot)){if(vn){const _n=vn.querySelector(`.${c.e("suggestion-list")}`);_n.style.minWidth=`${ot.offsetWidth}px`}if(St){const{offsetHeight:_n}=St,Ln=B.value.length>0?`${Math.max(_n,r)-2}px`:`${r}px`;ot.style.height=Ln,ke()}}},Me=pe=>{var Oe;return(Oe=S.value)==null?void 0:Oe.getCheckedNodes(pe)},at=pe=>{ke(),n("expandChange",pe)},Qe=pe=>{if(!m.value)switch(pe.code){case tt.enter:case tt.numpadEnter:se();break;case tt.down:se(!0),it(xe),pe.preventDefault();break;case tt.esc:E.value===!0&&(pe.preventDefault(),pe.stopPropagation(),se(!1));break;case tt.tab:se(!1);break}},It=()=>{var pe;(pe=S.value)==null||pe.clearCheckedNodes(),!E.value&&a.filterable&&je(),se(!1),n("clear")},je=()=>{const{value:pe}=Q;N.value=pe,P.value=pe},Vt=pe=>{var Oe,ot;const{checked:St}=pe;G.value?(Oe=S.value)==null||Oe.handleCheckChange(pe,!St,!1):(!St&&((ot=S.value)==null||ot.handleCheckChange(pe,!0,!1)),se(!1))},kt=pe=>{const Oe=pe.target,{code:ot}=pe;switch(ot){case tt.up:case tt.down:{pe.preventDefault();const St=ot===tt.up?-1:1;th(gT(Oe,St,`.${c.e("suggestion-item")}[tabindex="-1"]`));break}case tt.enter:case tt.numpadEnter:Oe.click();break}},Mt=()=>{const pe=B.value,Oe=pe[pe.length-1];i=P.value?0:i+1,!(!Oe||!i||a.collapseTags&&pe.length>1)&&(Oe.hitState?ce(Oe):Oe.hitState=!0)},Ht=wo(()=>{const{value:pe}=Z;if(!pe)return;const Oe=a.beforeFilter(pe);Nc(Oe)?Oe.then(Fe).catch(()=>{}):Oe!==!1?Fe():ye()},a.debounce),Ee=(pe,Oe)=>{!E.value&&se(!0),!(Oe!=null&&Oe.isComposing)&&(pe?Ht():ye())},We=pe=>Number.parseFloat(k7(u.cssVarName("input-height"),pe).value)-2;return Te(A,ke),Te([te,v,()=>a.collapseTags],Ae),Te(B,()=>{it(()=>me())}),Te(U,async()=>{await it();const pe=C.value.input;r=We(pe)||r,me()}),Te(Q,je,{immediate:!0}),ft(()=>{const pe=C.value.input,Oe=We(pe);r=pe.offsetHeight||Oe,Xn(pe,me)}),t({getCheckedNodes:Me,cascaderPanelRef:S,togglePopperVisible:se,contentRef:ne,presentText:Q}),(pe,Oe)=>(_(),ue(f(hs),{ref_key:"tooltipRef",ref:y,visible:E.value,teleported:pe.teleported,"popper-class":[f(c).e("dropdown"),pe.popperClass],"popper-style":pe.popperStyle,"popper-options":s,"fallback-placements":pe.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:pe.placement,transition:`${f(c).namespace.value}-zoom-in-top`,effect:pe.effect,pure:"",persistent:pe.persistent,onHide:ye},{default:W(()=>[et((_(),w("div",{ref_key:"wrapperRef",ref:ie,class:V(f(he)),style:Je(f(F)),onClick:()=>se(f(ae)?void 0:!0),onKeydown:Qe,onMouseenter:ot=>R.value=!0,onMouseleave:ot=>R.value=!1},[z(f(Bs),{ref_key:"inputRef",ref:C,modelValue:N.value,"onUpdate:modelValue":ot=>N.value=ot,placeholder:f(L),readonly:f(ae),disabled:f(v),"validate-event":!1,size:f(U),class:V(f(Y)),tabindex:f(G)&&pe.filterable&&!f(v)?-1:void 0,onCompositionstart:f(g),onCompositionupdate:f(g),onCompositionend:f(g),onInput:Ee},bo({suffix:W(()=>[f(ee)?(_(),ue(f(ct),{key:"clear",class:V([f(u).e("icon"),"icon-circle-close"]),onClick:qe(It,["stop"])},{default:W(()=>[(_(),ue(Ft(pe.clearIcon)))]),_:1},8,["class","onClick"])):(_(),ue(f(ct),{key:"arrow-down",class:V(f(D)),onClick:qe(ot=>se(),["stop"])},{default:W(()=>[z(f(rl))]),_:1},8,["class","onClick"]))]),_:2},[pe.$slots.prefix?{name:"prefix",fn:W(()=>[be(pe.$slots,"prefix")])}:void 0]),1032,["modelValue","onUpdate:modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),f(G)?(_(),w("div",{key:0,ref_key:"tagWrapper",ref:k,class:V([f(c).e("tags"),f(c).is("validate",!!f(H))])},[be(pe.$slots,"tag",{data:M.value,deleteTag:ce},()=>[(_(!0),w(_e,null,Re(B.value,ot=>(_(),ue(f(Ti),{key:ot.key,type:pe.tagType,size:f(O),effect:pe.tagEffect,hit:ot.hitState,closable:ot.closable,"disable-transitions":"",onClose:St=>ce(ot)},{default:W(()=>[ot.isCollapseTag===!1?(_(),w("span",{key:0},I(ot.text),1)):(_(),ue(f(hs),{key:1,ref_for:!0,ref_key:"tagTooltipRef",ref:b,disabled:E.value||!pe.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom","popper-class":pe.popperClass,"popper-style":pe.popperStyle,effect:pe.effect},{default:W(()=>[l("span",null,I(ot.text),1)]),content:W(()=>[z(f(wr),{"max-height":pe.maxCollapseTagsTooltipHeight},{default:W(()=>[l("div",{class:V(f(c).e("collapse-tags"))},[(_(!0),w(_e,null,Re(M.value.slice(pe.maxCollapseTags),(St,vn)=>(_(),w("div",{key:vn,class:V(f(c).e("collapse-tag"))},[(_(),ue(f(Ti),{key:St.key,class:"in-tooltip",type:pe.tagType,size:f(O),effect:pe.tagEffect,hit:St.hitState,closable:St.closable,"disable-transitions":"",onClose:_n=>ce(St)},{default:W(()=>[l("span",null,I(St.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:1},8,["max-height"])]),_:2},1032,["disabled","popper-class","popper-style","effect"]))]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128))]),pe.filterable&&!f(v)?et((_(),w("input",{key:0,"onUpdate:modelValue":ot=>P.value=ot,type:"text",class:V(f(c).e("search-input")),placeholder:f(Q)?"":f(q),onInput:ot=>Ee(P.value,ot),onClick:qe(ot=>se(!0),["stop"]),onKeydown:yn(Mt,["delete"]),onCompositionstart:f(g),onCompositionupdate:f(g),onCompositionend:f(g)},null,42,["onUpdate:modelValue","placeholder","onInput","onClick","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend"])),[[hn,P.value]]):K("v-if",!0)],2)):K("v-if",!0)],46,["onClick","onMouseenter","onMouseleave"])),[[f(Dl),re,f(ne)]])]),content:W(()=>[pe.$slots.header?(_(),w("div",{key:0,class:V(f(c).e("header")),onClick:qe(()=>{},["stop"])},[be(pe.$slots,"header")],10,["onClick"])):K("v-if",!0),et(z(f(w3),{ref_key:"cascaderPanelRef",ref:S,modelValue:f(X),"onUpdate:modelValue":ot=>$n(X)?X.value=ot:null,options:pe.options,props:a.props,border:!1,"render-label":pe.$slots.default,onExpandChange:at,onClose:ot=>pe.$nextTick(()=>se(!1))},{empty:W(()=>[be(pe.$slots,"empty")]),_:3},8,["modelValue","onUpdate:modelValue","options","props","render-label","onClose"]),[[fn,!A.value]]),pe.filterable?et((_(),ue(f(wr),{key:1,ref_key:"suggestionPanel",ref:$,tag:"ul",class:V(f(c).e("suggestion-panel")),"view-class":f(c).e("suggestion-list"),onKeydown:kt},{default:W(()=>[j.value.length?(_(!0),w(_e,{key:0},Re(j.value,ot=>(_(),w("li",{key:ot.uid,class:V([f(c).e("suggestion-item"),f(c).is("checked",ot.checked)]),tabindex:-1,onClick:St=>Vt(ot)},[be(pe.$slots,"suggestion-item",{item:ot},()=>[l("span",null,I(ot.text),1),ot.checked?(_(),ue(f(ct),{key:0},{default:W(()=>[z(f(Np))]),_:1})):K("v-if",!0)])],10,["onClick"]))),128)):be(pe.$slots,"empty",{key:1},()=>[l("li",{class:V(f(c).e("empty-text"))},I(f(d)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[fn,A.value]]):K("v-if",!0),pe.$slots.footer?(_(),w("div",{key:2,class:V(f(c).e("footer")),onClick:qe(()=>{},["stop"])},[be(pe.$slots,"footer")],10,["onClick"])):K("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}});var eq=ze(ZK,[["__file","cascader.vue"]]);const tq=Rt(eq),nq=Ue({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),aq={"update:checked":e=>En(e),[Xt]:e=>En(e)},sq=le({name:"ElCheckTag"}),oq=le({...sq,props:nq,emits:aq,setup(e,{emit:t}){const n=e,a=Le("check-tag"),s=x(()=>n.disabled),o=x(()=>[a.b(),a.is("checked",n.checked),a.is("disabled",s.value),a.m(n.type||"primary")]),r=()=>{if(s.value)return;const i=!n.checked;t(Xt,i),t("update:checked",i)};return(i,c)=>(_(),w("span",{class:V(f(o)),onClick:r},[be(i.$slots,"default")],2))}});var rq=ze(oq,[["__file","check-tag.vue"]]);const lq=Rt(rq),iq=Ue({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:ge([Number,Object]),default:()=>Zn({})},sm:{type:ge([Number,Object]),default:()=>Zn({})},md:{type:ge([Number,Object]),default:()=>Zn({})},lg:{type:ge([Number,Object]),default:()=>Zn({})},xl:{type:ge([Number,Object]),default:()=>Zn({})}}),C3=Symbol("rowContextKey"),cq=le({name:"ElCol"}),uq=le({...cq,props:iq,setup(e){const t=e,{gutter:n}=Ze(C3,{gutter:x(()=>0)}),a=Le("col"),s=x(()=>{const r={};return n.value&&(r.paddingLeft=r.paddingRight=`${n.value/2}px`),r}),o=x(()=>{const r=[];return["span","offset","pull","push"].forEach(u=>{const d=t[u];gt(d)&&(u==="span"?r.push(a.b(`${t[u]}`)):d>0&&r.push(a.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{gt(t[u])?r.push(a.b(`${u}-${t[u]}`)):Ot(t[u])&&Object.entries(t[u]).forEach(([d,p])=>{r.push(d!=="span"?a.b(`${u}-${d}-${p}`):a.b(`${u}-${p}`))})}),n.value&&r.push(a.is("guttered")),[a.b(),r]});return(r,i)=>(_(),ue(Ft(r.tag),{class:V(f(o)),style:Je(f(s))},{default:W(()=>[be(r.$slots,"default")]),_:3},8,["class","style"]))}});var dq=ze(uq,[["__file","col.vue"]]);const fq=Rt(dq),Wk=e=>gt(e)||ut(e)||Ve(e),pq=Ue({accordion:Boolean,modelValue:{type:ge([Array,String,Number]),default:()=>Zn([])},expandIconPosition:{type:ge([String]),default:"right"},beforeCollapse:{type:ge(Function)}}),vq={[Et]:Wk,[Xt]:Wk},k3=Symbol("collapseContextKey"),hq="ElCollapse",mq=(e,t)=>{const n=T(es(e.modelValue)),a=r=>{n.value=r;const i=e.accordion?n.value[0]:n.value;t(Et,i),t(Xt,i)},s=r=>{if(e.accordion)a([n.value[0]===r?"":r]);else{const i=[...n.value],c=i.indexOf(r);c>-1?i.splice(c,1):i.push(r),a(i)}},o=async r=>{const{beforeCollapse:i}=e;if(!i){s(r);return}const c=i(r);[Nc(c),En(c)].includes(!0)||Ca(hq,"beforeCollapse must return type `Promise` or `boolean`"),Nc(c)?c.then(d=>{d!==!1&&s(r)}).catch(d=>{}):c&&s(r)};return Te(()=>e.modelValue,()=>n.value=es(e.modelValue),{deep:!0}),Gt(k3,{activeNames:n,handleItemClick:o}),{activeNames:n,setActiveNames:a}},gq=e=>{const t=Le("collapse");return{rootKls:x(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}},_q=le({name:"ElCollapse"}),yq=le({..._q,props:pq,emits:vq,setup(e,{expose:t,emit:n}){const a=e,{activeNames:s,setActiveNames:o}=mq(a,n),{rootKls:r}=gq(a);return t({activeNames:s,setActiveNames:o}),(i,c)=>(_(),w("div",{class:V(f(r))},[be(i.$slots,"default")],2))}});var bq=ze(yq,[["__file","collapse.vue"]]);const wq=le({name:"ElCollapseTransition"}),Cq=le({...wq,setup(e){const t=Le("collapse-transition"),n=s=>{s.style.maxHeight="",s.style.overflow=s.dataset.oldOverflow,s.style.paddingTop=s.dataset.oldPaddingTop,s.style.paddingBottom=s.dataset.oldPaddingBottom},a={beforeEnter(s){s.dataset||(s.dataset={}),s.dataset.oldPaddingTop=s.style.paddingTop,s.dataset.oldPaddingBottom=s.style.paddingBottom,s.style.height&&(s.dataset.elExistsHeight=s.style.height),s.style.maxHeight=0,s.style.paddingTop=0,s.style.paddingBottom=0},enter(s){requestAnimationFrame(()=>{s.dataset.oldOverflow=s.style.overflow,s.dataset.elExistsHeight?s.style.maxHeight=s.dataset.elExistsHeight:s.scrollHeight!==0?s.style.maxHeight=`${s.scrollHeight}px`:s.style.maxHeight=0,s.style.paddingTop=s.dataset.oldPaddingTop,s.style.paddingBottom=s.dataset.oldPaddingBottom,s.style.overflow="hidden"})},afterEnter(s){s.style.maxHeight="",s.style.overflow=s.dataset.oldOverflow},enterCancelled(s){n(s)},beforeLeave(s){s.dataset||(s.dataset={}),s.dataset.oldPaddingTop=s.style.paddingTop,s.dataset.oldPaddingBottom=s.style.paddingBottom,s.dataset.oldOverflow=s.style.overflow,s.style.maxHeight=`${s.scrollHeight}px`,s.style.overflow="hidden"},leave(s){s.scrollHeight!==0&&(s.style.maxHeight=0,s.style.paddingTop=0,s.style.paddingBottom=0)},afterLeave(s){n(s)},leaveCancelled(s){n(s)}};return(s,o)=>(_(),ue(aa,Kt({name:f(t).b()},uR(a)),{default:W(()=>[be(s.$slots,"default")]),_:3},16,["name"]))}});var kq=ze(Cq,[["__file","collapse-transition.vue"]]);const Qm=Rt(kq),Sq=Ue({title:{type:String,default:""},name:{type:ge([String,Number]),default:void 0},icon:{type:wn,default:Ds},disabled:Boolean}),Eq=e=>{const t=Ze(k3),{namespace:n}=Le("collapse"),a=T(!1),s=T(!1),o=zy(),r=x(()=>o.current++),i=x(()=>{var v;return(v=e.name)!=null?v:`${n.value}-id-${o.prefix}-${f(r)}`}),c=x(()=>t==null?void 0:t.activeNames.value.includes(f(i)));return{focusing:a,id:r,isActive:c,handleFocus:()=>{setTimeout(()=>{s.value?s.value=!1:a.value=!0},50)},handleHeaderClick:v=>{if(e.disabled)return;const h=v.target;h!=null&&h.closest("input, textarea, select")||(t==null||t.handleItemClick(f(i)),a.value=!1,s.value=!0)},handleEnterClick:v=>{const h=v.target;h!=null&&h.closest("input, textarea, select")||(v.preventDefault(),t==null||t.handleItemClick(f(i)))}}},$q=(e,{focusing:t,isActive:n,id:a})=>{const s=Le("collapse"),o=x(()=>[s.b("item"),s.is("active",f(n)),s.is("disabled",e.disabled)]),r=x(()=>[s.be("item","header"),s.is("active",f(n)),{focusing:f(t)&&!e.disabled}]),i=x(()=>[s.be("item","arrow"),s.is("active",f(n))]),c=x(()=>[s.be("item","title")]),u=x(()=>s.be("item","wrap")),d=x(()=>s.be("item","content")),p=x(()=>s.b(`content-${f(a)}`)),v=x(()=>s.b(`head-${f(a)}`));return{itemTitleKls:c,arrowKls:i,headKls:r,rootKls:o,itemWrapperKls:u,itemContentKls:d,scopedContentId:p,scopedHeadId:v}},xq=le({name:"ElCollapseItem"}),Tq=le({...xq,props:Sq,setup(e,{expose:t}){const n=e,{focusing:a,id:s,isActive:o,handleFocus:r,handleHeaderClick:i,handleEnterClick:c}=Eq(n),{arrowKls:u,headKls:d,rootKls:p,itemTitleKls:v,itemWrapperKls:h,itemContentKls:m,scopedContentId:g,scopedHeadId:y}=$q(n,{focusing:a,isActive:o,id:s});return t({isActive:o}),(b,C)=>(_(),w("div",{class:V(f(p))},[l("div",{id:f(y),class:V(f(d)),"aria-expanded":f(o),"aria-controls":f(g),"aria-describedby":f(g),tabindex:b.disabled?-1:0,role:"button",onClick:f(i),onKeydown:yn(qe(f(c),["stop"]),["space","enter"]),onFocus:f(r),onBlur:k=>a.value=!1},[l("span",{class:V(f(v))},[be(b.$slots,"title",{isActive:f(o)},()=>[Ce(I(b.title),1)])],2),be(b.$slots,"icon",{isActive:f(o)},()=>[z(f(ct),{class:V(f(u))},{default:W(()=>[(_(),ue(Ft(b.icon)))]),_:1},8,["class"])])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),z(f(Qm),null,{default:W(()=>[et(l("div",{id:f(g),role:"region",class:V(f(h)),"aria-hidden":!f(o),"aria-labelledby":f(y)},[l("div",{class:V(f(m))},[be(b.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[fn,f(o)]])]),_:3})],2))}});var S3=ze(Tq,[["__file","collapse-item.vue"]]);const Iq=Rt(bq,{CollapseItem:S3}),Aq=ea(S3),Nq=Ue({color:{type:ge(Object),required:!0},vertical:Boolean,disabled:Boolean});let sg=!1;function ap(e,t){if(!cn)return;const n=function(o){var r;(r=t.drag)==null||r.call(t,o)},a=function(o){var r;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",a),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",a),document.onselectstart=null,document.ondragstart=null,sg=!1,(r=t.end)==null||r.call(t,o)},s=function(o){var r;sg||(o.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",a),document.addEventListener("touchmove",n),document.addEventListener("touchend",a),sg=!0,(r=t.start)==null||r.call(t,o))};e.addEventListener("mousedown",s),e.addEventListener("touchstart",s,{passive:!1})}const Gk=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},S_=(e,t)=>Math.abs(Gk(e)-Gk(t)),ab=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},Rq=e=>{const t=qt(),{t:n}=rn(),a=Fn(),s=Fn(),o=x(()=>e.color.get("alpha")),r=x(()=>n("el.colorpicker.alphaLabel"));function i(p){var v;if(e.disabled)return;p.target!==a.value&&c(p),(v=a.value)==null||v.focus()}function c(p){if(!s.value||!a.value||e.disabled)return;const h=t.vnode.el.getBoundingClientRect(),{clientX:m,clientY:g}=ab(p);if(e.vertical){let y=g-h.top;y=Math.max(a.value.offsetHeight/2,y),y=Math.min(y,h.height-a.value.offsetHeight/2),e.color.set("alpha",Math.round((y-a.value.offsetHeight/2)/(h.height-a.value.offsetHeight)*100))}else{let y=m-h.left;y=Math.max(a.value.offsetWidth/2,y),y=Math.min(y,h.width-a.value.offsetWidth/2),e.color.set("alpha",Math.round((y-a.value.offsetWidth/2)/(h.width-a.value.offsetWidth)*100))}}function u(p){if(e.disabled)return;const{code:v,shiftKey:h}=p,m=h?10:1;switch(v){case tt.left:case tt.down:p.preventDefault(),p.stopPropagation(),d(-m);break;case tt.right:case tt.up:p.preventDefault(),p.stopPropagation(),d(m);break}}function d(p){let v=o.value+p;v=v<0?0:v>100?100:v,e.color.set("alpha",v)}return{thumb:a,bar:s,alpha:o,alphaLabel:r,handleDrag:c,handleClick:i,handleKeydown:u}},Pq=(e,{bar:t,thumb:n,handleDrag:a})=>{const s=qt(),o=Le("color-alpha-slider"),r=T(0),i=T(0),c=T();function u(){if(!n.value||e.vertical)return 0;const C=s.vnode.el,k=e.color.get("alpha");return C?Math.round(k*(C.offsetWidth-n.value.offsetWidth/2)/100):0}function d(){if(!n.value)return 0;const C=s.vnode.el;if(!e.vertical)return 0;const k=e.color.get("alpha");return C?Math.round(k*(C.offsetHeight-n.value.offsetHeight/2)/100):0}function p(){if(e.color&&e.color.value){const{r:C,g:k,b:S}=e.color.toRgb();return`linear-gradient(to right, rgba(${C}, ${k}, ${S}, 0) 0%, rgba(${C}, ${k}, ${S}, 1) 100%)`}return""}function v(){r.value=u(),i.value=d(),c.value=p()}ft(()=>{if(!t.value||!n.value)return;const C={drag:k=>{a(k)},end:k=>{a(k)}};ap(t.value,C),ap(n.value,C),v()}),Te(()=>e.color.get("alpha"),()=>v()),Te(()=>e.color.value,()=>v());const h=x(()=>[o.b(),o.is("vertical",e.vertical),o.is("disabled",e.disabled)]),m=x(()=>o.e("bar")),g=x(()=>o.e("thumb")),y=x(()=>({background:c.value})),b=x(()=>({left:sa(r.value),top:sa(i.value)}));return{rootKls:h,barKls:m,barStyle:y,thumbKls:g,thumbStyle:b,update:v}},Mq="ElColorAlphaSlider",Bq=le({name:Mq}),Lq=le({...Bq,props:Nq,setup(e,{expose:t}){const n=e,{alpha:a,alphaLabel:s,bar:o,thumb:r,handleDrag:i,handleClick:c,handleKeydown:u}=Rq(n),{rootKls:d,barKls:p,barStyle:v,thumbKls:h,thumbStyle:m,update:g}=Pq(n,{bar:o,thumb:r,handleDrag:i});return t({update:g,bar:o,thumb:r}),(y,b)=>(_(),w("div",{class:V(f(d))},[l("div",{ref_key:"bar",ref:o,class:V(f(p)),style:Je(f(v)),onClick:f(c)},null,14,["onClick"]),l("div",{ref_key:"thumb",ref:r,class:V(f(h)),style:Je(f(m)),"aria-label":f(s),"aria-valuenow":f(a),"aria-orientation":y.vertical?"vertical":"horizontal","aria-valuemin":"0","aria-valuemax":"100",role:"slider",tabindex:"0",onKeydown:f(u)},null,46,["aria-label","aria-valuenow","aria-orientation","onKeydown"])],2))}});var Oq=ze(Lq,[["__file","alpha-slider.vue"]]);const Dq=le({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean,disabled:Boolean},setup(e){const t=Le("color-hue-slider"),n=qt(),a=T(),s=T(),o=T(0),r=T(0),i=x(()=>e.color.get("hue"));Te(()=>i.value,()=>{v()});function c(h){if(e.disabled)return;h.target!==a.value&&u(h)}function u(h){if(!s.value||!a.value||e.disabled)return;const g=n.vnode.el.getBoundingClientRect(),{clientX:y,clientY:b}=ab(h);let C;if(e.vertical){let k=b-g.top;k=Math.min(k,g.height-a.value.offsetHeight/2),k=Math.max(a.value.offsetHeight/2,k),C=Math.round((k-a.value.offsetHeight/2)/(g.height-a.value.offsetHeight)*360)}else{let k=y-g.left;k=Math.min(k,g.width-a.value.offsetWidth/2),k=Math.max(a.value.offsetWidth/2,k),C=Math.round((k-a.value.offsetWidth/2)/(g.width-a.value.offsetWidth)*360)}e.color.set("hue",C)}function d(){if(!a.value)return 0;const h=n.vnode.el;if(e.vertical)return 0;const m=e.color.get("hue");return h?Math.round(m*(h.offsetWidth-a.value.offsetWidth/2)/360):0}function p(){if(!a.value)return 0;const h=n.vnode.el;if(!e.vertical)return 0;const m=e.color.get("hue");return h?Math.round(m*(h.offsetHeight-a.value.offsetHeight/2)/360):0}function v(){o.value=d(),r.value=p()}return ft(()=>{if(!s.value||!a.value||e.disabled)return;const h={drag:m=>{u(m)},end:m=>{u(m)}};ap(s.value,h),ap(a.value,h),v()}),{bar:s,thumb:a,thumbLeft:o,thumbTop:r,hueValue:i,handleClick:c,update:v,ns:t}}});function Vq(e,t,n,a,s,o){return _(),w("div",{class:V([e.ns.b(),e.ns.is("vertical",e.vertical)])},[l("div",{ref:"bar",class:V(e.ns.e("bar")),onClick:e.handleClick},null,10,["onClick"]),l("div",{ref:"thumb",class:V(e.ns.e("thumb")),style:Je({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var Fq=ze(Dq,[["render",Vq],["__file","hue-slider.vue"]]);const E3=Ue({modelValue:{type:ge(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:String,disabled:Boolean,predefine:{type:ge(Array)}}),Uq={[Et]:e=>ut(e)||ba(e)},$3=Symbol("colorCommonPickerKey"),x3=Symbol("colorPickerPanelContextKey");class Lh{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this._tiny=new Cu,this._isValid=!1,this.enableAlpha=!1,this.format="",this.value="";for(const n in t)ln(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const a in t)ln(t,a)&&this.set(a,t[a]);return}this[`_${t}`]=n,this._isValid=!0,this.doOnChange()}get(t){return["hue","saturation","value","alpha"].includes(t)?Math.round(this[`_${t}`]):this[`_${t}`]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(t){const n=new Cu(t);if(this._isValid=n.isValid,n.isValid){const{h:a,s,v:o,a:r}=n.toHsv();this._hue=a,this._saturation=s*100,this._value=o*100,this._alpha=r*100}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}compare(t){const n=new Cu({h:t._hue,s:t._saturation/100,v:t._value/100,a:t._alpha/100});return this._tiny.equals(n)}doOnChange(){const{_hue:t,_saturation:n,_value:a,_alpha:s,format:o,enableAlpha:r}=this;let i=o||(r?"rgb":"hex");o==="hex"&&r&&(i="hex8"),this._tiny=new Cu({h:t,s:n/100,v:a/100,a:s/100}),this.value=this._isValid?this._tiny.toString(i):""}}const zq=le({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean},setup(e){const t=Le("color-predefine"),{currentColor:n}=Ze(x3),a=T(o(e.colors,e.color));Te(()=>n.value,r=>{const i=new Lh({value:r});a.value.forEach(c=>{c.selected=i.compare(c)})}),Ls(()=>{a.value=o(e.colors,e.color)});function s(r){e.disabled||e.color.fromString(e.colors[r])}function o(r,i){return r.map(c=>{const u=new Lh({value:c});return u.selected=u.compare(i),u})}return{rgbaColors:a,handleSelect:s,ns:t}}});function Hq(e,t,n,a,s,o){return _(),w("div",{class:V(e.ns.b())},[l("div",{class:V(e.ns.e("colors"))},[(_(!0),w(_e,null,Re(e.rgbaColors,(r,i)=>(_(),w("div",{key:e.colors[i],class:V([e.ns.e("color-selector"),e.ns.is("alpha",r.get("alpha")<100),{selected:r.selected}]),onClick:c=>e.handleSelect(i)},[l("div",{style:Je({backgroundColor:r.value})},null,4)],10,["onClick"]))),128))],2)],2)}var Kq=ze(zq,[["render",Hq],["__file","predefine.vue"]]);const qq=le({name:"ElSlPanel",props:{color:{type:Object,required:!0},disabled:Boolean},setup(e){const t=Le("color-svpanel"),n=qt(),a=T(0),s=T(0),o=T("hsl(0, 100%, 50%)"),r=x(()=>{const u=e.color.get("hue"),d=e.color.get("value");return{hue:u,value:d}});function i(){const u=e.color.get("saturation"),d=e.color.get("value"),p=n.vnode.el,{clientWidth:v,clientHeight:h}=p;s.value=u*v/100,a.value=(100-d)*h/100,o.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function c(u){if(e.disabled)return;const p=n.vnode.el.getBoundingClientRect(),{clientX:v,clientY:h}=ab(u);let m=v-p.left,g=h-p.top;m=Math.max(0,m),m=Math.min(m,p.width),g=Math.max(0,g),g=Math.min(g,p.height),s.value=m,a.value=g,e.color.set({saturation:m/p.width*100,value:100-g/p.height*100})}return Te(()=>r.value,()=>{i()}),ft(()=>{ap(n.vnode.el,{drag:u=>{c(u)},end:u=>{c(u)}}),i()}),{cursorTop:a,cursorLeft:s,background:o,colorValue:r,handleDrag:c,update:i,ns:t}}});function jq(e,t,n,a,s,o){return _(),w("div",{class:V(e.ns.b()),style:Je({backgroundColor:e.background})},[l("div",{class:V(e.ns.e("white"))},null,2),l("div",{class:V(e.ns.e("black"))},null,2),l("div",{class:V(e.ns.e("cursor")),style:Je({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},[l("div")],6)],6)}var Wq=ze(qq,[["render",jq],["__file","sv-panel.vue"]]);const T3=(e,t)=>{const n=At(new Lh({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return Te(()=>[e.colorFormat,e.showAlpha],()=>{n.enableAlpha=e.showAlpha,n.format=e.colorFormat||n.format,n.doOnChange(),t(Et,n.value)}),{color:n}},Gq=le({name:"ElColorPickerPanel"}),Yq=le({...Gq,props:E3,emits:Uq,setup(e,{expose:t,emit:n}){const a=e,s=Le("color-picker-panel"),o=Xa(),r=T(),i=T(),c=T(),u=T(),d=T(""),{color:p}=Ze($3,()=>T3(a,n),!0);function v(){p.fromString(d.value),p.value!==d.value&&(d.value=p.value)}return ft(()=>{a.modelValue&&(d.value=p.value),it(()=>{var h,m,g;(h=r.value)==null||h.update(),(m=i.value)==null||m.update(),(g=c.value)==null||g.update()})}),Te(()=>a.modelValue,h=>{h&&h!==p.value&&p.fromString(h)}),Te(()=>p.value,h=>{n(Et,h),d.value=h}),Gt(x3,{currentColor:x(()=>p.value)}),t({color:p,inputRef:u}),(h,m)=>(_(),w("div",{class:V([f(s).b(),f(s).is("disabled",f(o)),f(s).is("border",h.border)])},[l("div",{class:V(f(s).e("wrapper"))},[z(Fq,{ref_key:"hue",ref:r,class:"hue-slider",color:f(p),vertical:"",disabled:f(o)},null,8,["color","disabled"]),z(Wq,{ref_key:"sv",ref:i,color:f(p),disabled:f(o)},null,8,["color","disabled"])],2),h.showAlpha?(_(),ue(Oq,{key:0,ref_key:"alpha",ref:c,color:f(p),disabled:f(o)},null,8,["color","disabled"])):K("v-if",!0),h.predefine?(_(),ue(Kq,{key:1,ref:"predefine","enable-alpha":h.showAlpha,color:f(p),colors:h.predefine,disabled:f(o)},null,8,["enable-alpha","color","colors","disabled"])):K("v-if",!0),l("div",{class:V(f(s).e("footer"))},[z(f(Bs),{ref_key:"inputRef",ref:u,modelValue:d.value,"onUpdate:modelValue":g=>d.value=g,"validate-event":!1,size:"small",disabled:f(o),onChange:v},null,8,["modelValue","onUpdate:modelValue","disabled"]),be(h.$slots,"footer")],2)],2))}});var Xq=ze(Yq,[["__file","color-picker-panel.vue"]]);const I3=Rt(Xq),Qq=Ue({persistent:{type:Boolean,default:!0},modelValue:{type:ge(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Ma,popperClass:{type:String,default:""},tabindex:{type:[String,Number],default:0},teleported:Yn.teleported,appendTo:Yn.appendTo,predefine:{type:ge(Array)},validateEvent:{type:Boolean,default:!0},...Yc,...Ts(["ariaLabel"])}),Jq={[Et]:e=>ut(e)||ba(e),[Xt]:e=>ut(e)||ba(e),activeChange:e=>ut(e)||ba(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},Zq=le({name:"ElColorPicker"}),ej=le({...Zq,props:Qq,emits:Jq,setup(e,{expose:t,emit:n}){const a=e,{t:s}=rn(),o=Le("color"),{formItem:r}=Is(),i=xa(),c=Xa(),{valueOnClear:u,isEmptyValue:d}=Ap(a,null),p=T3(a,n),{inputId:v,isLabeledByFormItem:h}=rr(a,{formItemContext:r}),m=T(),g=T(),y=T(),b=T(!1),C=T(!1);let k=!0;const{isFocused:S,handleFocus:$,handleBlur:E}=Kl(g,{disabled:c,beforeBlur(H){var X;return(X=m.value)==null?void 0:X.isFocusInsideContent(H)},afterBlur(){q(!1),G()}}),R=g7(()=>{var H,X;return(X=(H=y.value)==null?void 0:H.color)!=null?X:p.color}),A=x(()=>To(a,Object.keys(E3))),N=x(()=>!a.modelValue&&!C.value?"transparent":F(R,a.showAlpha)),P=x(()=>!a.modelValue&&!C.value?"":R.value),B=x(()=>h.value?void 0:a.ariaLabel||s("el.colorpicker.defaultLabel")),M=x(()=>h.value?r==null?void 0:r.labelId:void 0),j=x(()=>[o.b("picker"),o.is("disabled",c.value),o.bm("picker",i.value),o.is("focused",S.value)]);function F(H,X){const{r:he,g:D,b:Y,a:ne}=H.toRgb();return X?`rgba(${he}, ${D}, ${Y}, ${ne})`:`rgb(${he}, ${D}, ${Y})`}function q(H){b.value=H}const L=wo(q,100,{leading:!0});function U(){c.value||q(!0)}function O(){L(!1),G()}function G(){it(()=>{a.modelValue?R.fromString(a.modelValue):(R.value="",it(()=>{C.value=!1}))})}function ae(){c.value||(b.value&&G(),L(!b.value))}function Z(){const H=d(R.value)?u.value:R.value;n(Et,H),n(Xt,H),a.validateEvent&&(r==null||r.validate("change").catch(X=>void 0)),L(!1),it(()=>{const X=new Lh({enableAlpha:a.showAlpha,format:a.colorFormat||"",value:a.modelValue});R.compare(X)||G()})}function te(){L(!1),n(Et,u.value),n(Xt,u.value),a.modelValue!==u.value&&a.validateEvent&&(r==null||r.validate("change").catch(H=>void 0)),G()}function ie(){b.value&&(O(),S.value&&ee())}function oe(H){H.preventDefault(),H.stopPropagation(),q(!1),G()}function J(H){var X,he;switch(H.code){case tt.enter:case tt.numpadEnter:case tt.space:H.preventDefault(),H.stopPropagation(),U(),(he=(X=y==null?void 0:y.value)==null?void 0:X.inputRef)==null||he.focus();break;case tt.esc:oe(H);break}}function ee(){g.value.focus()}function Q(){g.value.blur()}return Te(()=>P.value,H=>{k&&n("activeChange",H),k=!0}),Te(()=>R.value,()=>{!a.modelValue&&!C.value&&(C.value=!0)}),Te(()=>a.modelValue,H=>{H?H&&H!==R.value&&(k=!1,R.fromString(H)):C.value=!1}),Gt($3,p),t({color:R,show:U,hide:O,focus:ee,blur:Q}),(H,X)=>(_(),ue(f(hs),{ref_key:"popper",ref:m,visible:b.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[f(o).be("picker","panel"),H.popperClass],"stop-popper-mouse-event":!1,pure:"",effect:"light",trigger:"click",teleported:H.teleported,transition:`${f(o).namespace.value}-zoom-in-top`,persistent:H.persistent,"append-to":H.appendTo,onHide:he=>q(!1)},{content:W(()=>[et((_(),ue(f(I3),Kt({ref_key:"pickerPanelRef",ref:y},f(A),{border:!1,onKeydown:yn(oe,["esc"])}),{footer:W(()=>[l("div",null,[z(f(ns),{class:V(f(o).be("footer","link-btn")),text:"",size:"small",onClick:te},{default:W(()=>[Ce(I(f(s)("el.colorpicker.clear")),1)]),_:1},8,["class"]),z(f(ns),{plain:"",size:"small",class:V(f(o).be("footer","btn")),onClick:Z},{default:W(()=>[Ce(I(f(s)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16,["onKeydown"])),[[f(Dl),ie,g.value]])]),default:W(()=>[l("div",Kt({id:f(v),ref_key:"triggerRef",ref:g},H.$attrs,{class:f(j),role:"button","aria-label":f(B),"aria-labelledby":f(M),"aria-description":f(s)("el.colorpicker.description",{color:H.modelValue||""}),"aria-disabled":f(c),tabindex:f(c)?void 0:H.tabindex,onKeydown:J,onFocus:f($),onBlur:f(E)}),[l("div",{class:V(f(o).be("picker","trigger")),onClick:ae},[l("span",{class:V([f(o).be("picker","color"),f(o).is("alpha",H.showAlpha)])},[l("span",{class:V(f(o).be("picker","color-inner")),style:Je({backgroundColor:f(N)})},[et(z(f(ct),{class:V([f(o).be("picker","icon"),f(o).is("icon-arrow-down")])},{default:W(()=>[z(f(rl))]),_:1},8,["class"]),[[fn,H.modelValue||C.value]]),et(z(f(ct),{class:V([f(o).be("picker","empty"),f(o).is("icon-close")])},{default:W(()=>[z(f(nr))]),_:1},8,["class"]),[[fn,!H.modelValue&&!C.value]])],6)],2)],2)],16,["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex","onFocus","onBlur"])]),_:1},8,["visible","popper-class","teleported","transition","persistent","append-to","onHide"]))}});var tj=ze(ej,[["__file","color-picker.vue"]]);const nj=Rt(tj),aj=Ue({a11y:{type:Boolean,default:!0},locale:{type:ge(Object)},size:Ma,button:{type:ge(Object)},card:{type:ge(Object)},dialog:{type:ge(Object)},link:{type:ge(Object)},experimentalFeatures:{type:ge(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ge(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Yc}),Ps={placement:"top"},sj=le({name:"ElConfigProvider",props:aj,setup(e,{slots:t}){const n=Ly(e);return Te(()=>e.message,a=>{var s,o;Object.assign(Ps,(o=(s=n==null?void 0:n.value)==null?void 0:s.message)!=null?o:{},a??{})},{immediate:!0,deep:!0}),()=>be(t,"default",{config:n==null?void 0:n.value})}}),oj=Rt(sj),rj=le({name:"ElContainer"}),lj=le({...rj,props:{direction:{type:String}},setup(e){const t=e,n=Ta(),a=Le("container"),s=x(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(r=>{const i=r.type.name;return i==="ElHeader"||i==="ElFooter"}):!1);return(o,r)=>(_(),w("section",{class:V([f(a).b(),f(a).is("vertical",f(s))])},[be(o.$slots,"default")],2))}});var ij=ze(lj,[["__file","container.vue"]]);const cj=le({name:"ElAside"}),uj=le({...cj,props:{width:{type:String,default:null}},setup(e){const t=e,n=Le("aside"),a=x(()=>t.width?n.cssVarBlock({width:t.width}):{});return(s,o)=>(_(),w("aside",{class:V(f(n).b()),style:Je(f(a))},[be(s.$slots,"default")],6))}});var A3=ze(uj,[["__file","aside.vue"]]);const dj=le({name:"ElFooter"}),fj=le({...dj,props:{height:{type:String,default:null}},setup(e){const t=e,n=Le("footer"),a=x(()=>t.height?n.cssVarBlock({height:t.height}):{});return(s,o)=>(_(),w("footer",{class:V(f(n).b()),style:Je(f(a))},[be(s.$slots,"default")],6))}});var N3=ze(fj,[["__file","footer.vue"]]);const pj=le({name:"ElHeader"}),vj=le({...pj,props:{height:{type:String,default:null}},setup(e){const t=e,n=Le("header"),a=x(()=>t.height?n.cssVarBlock({height:t.height}):{});return(s,o)=>(_(),w("header",{class:V(f(n).b()),style:Je(f(a))},[be(s.$slots,"default")],6))}});var R3=ze(vj,[["__file","header.vue"]]);const hj=le({name:"ElMain"}),mj=le({...hj,setup(e){const t=Le("main");return(n,a)=>(_(),w("main",{class:V(f(t).b())},[be(n.$slots,"default")],2))}});var P3=ze(mj,[["__file","main.vue"]]);const gj=Rt(ij,{Aside:A3,Footer:N3,Header:R3,Main:P3}),_j=ea(A3),yj=ea(N3),bj=ea(R3),wj=ea(P3);var M3={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(ll,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,o=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,c={},u=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(b){this[y]=+b}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var C=b.match(/([+-]|\d\d)/g),k=60*C[1]+(+C[2]||0);return k===0?0:C[0]==="+"?-k:k}(y)}],v=function(y){var b=c[y];return b&&(b.indexOf?b:b.s.concat(b.f))},h=function(y,b){var C,k=c.meridiem;if(k){for(var S=1;S<=24;S+=1)if(y.indexOf(k(S,0,b))>-1){C=S>12;break}}else C=y===(b?"pm":"PM");return C},m={A:[i,function(y){this.afternoon=h(y,!1)}],a:[i,function(y){this.afternoon=h(y,!0)}],Q:[s,function(y){this.month=3*(y-1)+1}],S:[s,function(y){this.milliseconds=100*+y}],SS:[o,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[o,d("day")],Do:[i,function(y){var b=c.ordinal,C=y.match(/\d+/);if(this.day=C[0],b)for(var k=1;k<=31;k+=1)b(k).replace(/\[|\]/g,"")===y&&(this.day=k)}],w:[r,d("week")],ww:[o,d("week")],M:[r,d("month")],MM:[o,d("month")],MMM:[i,function(y){var b=v("months"),C=(v("monthsShort")||b.map(function(k){return k.slice(0,3)})).indexOf(y)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[i,function(y){var b=v("months").indexOf(y)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(y){this.year=u(y)}],YYYY:[/\d{4}/,d("year")],Z:p,ZZ:p};function g(y){var b,C;b=y,C=c&&c.formats;for(var k=(y=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,B,M){var j=M&&M.toUpperCase();return B||C[M]||n[M]||C[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,q,L){return q||L.slice(1)})})).match(a),S=k.length,$=0;$-1)return new Date((O==="X"?1e3:1)*U);var Z=g(O)(U),te=Z.year,ie=Z.month,oe=Z.day,J=Z.hours,ee=Z.minutes,Q=Z.seconds,H=Z.milliseconds,X=Z.zone,he=Z.week,D=new Date,Y=oe||(te||ie?1:D.getDate()),ne=te||D.getFullYear(),re=0;te&&!ie||(re=ie>0?ie-1:D.getMonth());var se,ke=J||0,ye=ee||0,Se=Q||0,ce=H||0;return X?new Date(Date.UTC(ne,re,Y,ke,ye,Se,ce+60*X.offset*1e3)):G?new Date(Date.UTC(ne,re,Y,ke,ye,Se,ce)):(se=new Date(ne,re,Y,ke,ye,Se,ce),he&&(se=ae(se).week(he).toDate()),se)}catch{return new Date("")}}(E,N,R,C),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),M&&E!=this.format(N)&&(this.$d=new Date("")),c={}}else if(N instanceof Array)for(var F=N.length,q=1;q<=F;q+=1){A[1]=N[q-1];var L=C.apply(this,A);if(L.isValid()){this.$d=L.$d,this.$L=L.$L,this.init();break}q===F&&(this.$d=new Date(""))}else S.call(this,$)}}})})(M3);var Cj=M3.exports;const sb=il(Cj),Yk=["hours","minutes","seconds"],Cr="EP_PICKER_BASE",ob="ElPopperOptions",B3=Symbol("commonPickerContextKey"),Xu="HH:mm:ss",pi="YYYY-MM-DD",kj={date:pi,dates:pi,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${pi} ${Xu}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:pi,datetimerange:`${pi} ${Xu}`},L3=(e,t)=>{const{lang:n}=rn(),a=T(!1),s=T(!1),o=T(null),r=x(()=>{const{modelValue:m}=e;return!m||Ve(m)&&!m.filter(Boolean).length}),i=m=>{if(!n3(e.modelValue,m)){let g;Ve(m)?g=m.map(b=>Dk(b,e.valueFormat,n.value)):m&&(g=Dk(m,e.valueFormat,n.value)),t(Et,m&&g,n.value)}},c=x(()=>{var m;let g;if(r.value?u.value.getDefaultValue&&(g=u.value.getDefaultValue()):Ve(e.modelValue)?g=e.modelValue.map(y=>Ok(y,e.valueFormat,n.value)):g=Ok((m=e.modelValue)!=null?m:"",e.valueFormat,n.value),u.value.getRangeAvailableTime){const y=u.value.getRangeAvailableTime(g);$a(y,g)||(g=y,r.value||i(ah(g)))}return Ve(g)&&g.some(y=>!y)&&(g=[]),g}),u=T({});return{parsedValue:c,pickerActualVisible:s,pickerOptions:u,pickerVisible:a,userInput:o,valueIsEmpty:r,emitInput:i,onCalendarChange:m=>{t("calendar-change",m)},onPanelChange:(m,g,y)=>{t("panel-change",m,g,y)},onPick:(m="",g=!1)=>{a.value=g;let y;Ve(m)?y=m.map(b=>b.toDate()):y=m&&m.toDate(),o.value=null,i(y)},onSetPickerOption:m=>{u.value[m[0]]=m[1],u.value.panelReady=!0}}},rb=Ue({disabledHours:{type:ge(Function)},disabledMinutes:{type:ge(Function)},disabledSeconds:{type:ge(Function)}}),O3=Ue({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),lb=Ue({id:{type:ge([Array,String])},name:{type:ge([Array,String])},popperClass:Yn.popperClass,popperStyle:Yn.popperStyle,format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:ge([String,Object]),default:Hl},editable:{type:Boolean,default:!0},prefixIcon:{type:ge([String,Object]),default:""},size:Ma,readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:""},popperOptions:{type:ge(Object),default:()=>({})},modelValue:{type:ge([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:ge([Date,Array])},defaultTime:{type:ge([Date,Array])},isRange:Boolean,...rb,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:ge([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:ge(String),values:ql,default:"bottom"},fallbackPlacements:{type:ge(Array),default:["bottom","top","right","left"]},...Yc,...Ts(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),Sj=Ue({id:{type:ge(Array)},name:{type:ge(Array)},modelValue:{type:ge([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),Ej=le({name:"PickerRangeTrigger",inheritAttrs:!1}),$j=le({...Ej,props:Sj,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const a=e,s=qm(),o=Le("date"),r=Le("range"),i=T(),c=T(),{wrapperRef:u,isFocused:d}=Kl(i,{disabled:x(()=>a.disabled)}),p=$=>{n("click",$)},v=$=>{n("mouseenter",$)},h=$=>{n("mouseleave",$)},m=$=>{n("touchstart",$)},g=$=>{n("startInput",$)},y=$=>{n("endInput",$)},b=$=>{n("startChange",$)},C=$=>{n("endChange",$)};return t({focus:()=>{var $;($=i.value)==null||$.focus()},blur:()=>{var $,E;($=i.value)==null||$.blur(),(E=c.value)==null||E.blur()}}),($,E)=>(_(),w("div",{ref_key:"wrapperRef",ref:u,class:V([f(o).is("active",f(d)),$.$attrs.class]),style:Je($.$attrs.style),onClick:p,onMouseenter:v,onMouseleave:h,onTouchstartPassive:m},[be($.$slots,"prefix"),l("input",Kt(f(s),{id:$.id&&$.id[0],ref_key:"inputRef",ref:i,name:$.name&&$.name[0],placeholder:$.startPlaceholder,value:$.modelValue&&$.modelValue[0],class:f(r).b("input"),disabled:$.disabled,onInput:g,onChange:b}),null,16,["id","name","placeholder","value","disabled"]),be($.$slots,"range-separator"),l("input",Kt(f(s),{id:$.id&&$.id[1],ref_key:"endInputRef",ref:c,name:$.name&&$.name[1],placeholder:$.endPlaceholder,value:$.modelValue&&$.modelValue[1],class:f(r).b("input"),disabled:$.disabled,onInput:y,onChange:C}),null,16,["id","name","placeholder","value","disabled"]),be($.$slots,"suffix")],38))}});var xj=ze($j,[["__file","picker-range-trigger.vue"]]);const Tj=le({name:"Picker"}),Ij=le({...Tj,props:lb,emits:[Et,Xt,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const a=e,s=Fl(),o=Le("date"),r=Le("input"),i=Le("range"),{formItem:c}=Is(),u=Ze(ob,{}),{valueOnClear:d}=Ap(a,null),p=T(),v=T(),h=T(null);let m=!1;const g=Xa(),y=L3(a,n),{parsedValue:b,pickerActualVisible:C,userInput:k,pickerVisible:S,pickerOptions:$,valueIsEmpty:E,emitInput:R,onPick:A,onSetPickerOption:N,onCalendarChange:P,onPanelChange:B}=y,{isFocused:M,handleFocus:j,handleBlur:F}=Kl(v,{disabled:g,beforeFocus(){return a.readonly},afterFocus(){S.value=!0},beforeBlur(pe){var Oe;return!m&&((Oe=p.value)==null?void 0:Oe.isFocusInsideContent(pe))},afterBlur(){me(),S.value=!1,m=!1,a.validateEvent&&(c==null||c.validate("blur").catch(pe=>void 0))}}),q=T(!1),L=x(()=>[o.b("editor"),o.bm("editor",a.type),r.e("wrapper"),o.is("disabled",g.value),o.is("active",S.value),i.b("editor"),Ae?i.bm("editor",Ae.value):"",s.class]),U=x(()=>[r.e("icon"),i.e("close-icon"),re.value?"":i.e("close-icon--hidden")]);Te(S,pe=>{pe?it(()=>{pe&&(h.value=a.modelValue)}):(k.value=null,it(()=>{O(a.modelValue)}))});const O=(pe,Oe)=>{(Oe||!n3(pe,h.value))&&(n(Xt,pe),Oe&&(h.value=pe),a.validateEvent&&(c==null||c.validate("change").catch(ot=>void 0)))},G=pe=>{n("keydown",pe)},ae=x(()=>v.value?Array.from(v.value.$el.querySelectorAll("input")):[]),Z=(pe,Oe,ot)=>{const St=ae.value;St.length&&(!ot||ot==="min"?(St[0].setSelectionRange(pe,Oe),St[0].focus()):ot==="max"&&(St[1].setSelectionRange(pe,Oe),St[1].focus()))},te=()=>{C.value=!0},ie=()=>{n("visible-change",!0)},oe=()=>{C.value=!1,S.value=!1,n("visible-change",!1)},J=()=>{S.value=!0},ee=()=>{S.value=!1},Q=x(()=>{if(!$.value.panelReady)return"";const pe=at(b.value);return Ve(k.value)?[k.value[0]||pe&&pe[0]||"",k.value[1]||pe&&pe[1]||""]:k.value!==null?k.value:!X.value&&E.value||!S.value&&E.value?"":pe?he.value||D.value||Y.value?pe.join(", "):pe:""}),H=x(()=>a.type.includes("time")),X=x(()=>a.type.startsWith("time")),he=x(()=>a.type==="dates"),D=x(()=>a.type==="months"),Y=x(()=>a.type==="years"),ne=x(()=>a.prefixIcon||(H.value?uT:g9)),re=x(()=>a.clearable&&!g.value&&!a.readonly&&!E.value&&(q.value||M.value)),se=pe=>{a.readonly||g.value||(re.value&&(pe.stopPropagation(),$.value.handleClear?$.value.handleClear():R(d.value),O(d.value,!0),oe()),n("clear"))},ke=async pe=>{var Oe;a.readonly||g.value||(((Oe=pe.target)==null?void 0:Oe.tagName)!=="INPUT"||M.value)&&(S.value=!0)},ye=()=>{a.readonly||g.value||!E.value&&a.clearable&&(q.value=!0)},Se=()=>{q.value=!1},ce=pe=>{var Oe;a.readonly||g.value||(((Oe=pe.touches[0].target)==null?void 0:Oe.tagName)!=="INPUT"||M.value)&&(S.value=!0)},we=x(()=>a.type.includes("range")),Ae=xa(),Fe=x(()=>{var pe,Oe;return(Oe=(pe=f(p))==null?void 0:pe.popperRef)==null?void 0:Oe.contentRef}),xe=My(v,pe=>{const Oe=f(Fe),ot=Ha(v);Oe&&(pe.target===Oe||pe.composedPath().includes(Oe))||pe.target===ot||ot&&pe.composedPath().includes(ot)||(S.value=!1)});on(()=>{xe==null||xe()});const me=()=>{if(k.value){const pe=Me(Q.value);pe&&Qe(pe)&&(R(ah(pe)),k.value=null)}k.value===""&&(R(d.value),O(d.value,!0),k.value=null)},Me=pe=>pe?$.value.parseUserInput(pe):null,at=pe=>pe?$.value.formatToString(pe):null,Qe=pe=>$.value.isValidValue(pe),It=async pe=>{if(a.readonly||g.value)return;const{code:Oe}=pe;if(G(pe),Oe===tt.esc){S.value===!0&&(S.value=!1,pe.preventDefault(),pe.stopPropagation());return}if(Oe===tt.down&&($.value.handleFocusPicker&&(pe.preventDefault(),pe.stopPropagation()),S.value===!1&&(S.value=!0,await it()),$.value.handleFocusPicker)){$.value.handleFocusPicker();return}if(Oe===tt.tab){m=!0;return}if(Oe===tt.enter||Oe===tt.numpadEnter){(k.value===null||k.value===""||Qe(Me(Q.value)))&&(me(),S.value=!1),pe.stopPropagation();return}if(k.value){pe.stopPropagation();return}$.value.handleKeydownInput&&$.value.handleKeydownInput(pe)},je=pe=>{k.value=pe,S.value||(S.value=!0)},Vt=pe=>{const Oe=pe.target;k.value?k.value=[Oe.value,k.value[1]]:k.value=[Oe.value,null]},kt=pe=>{const Oe=pe.target;k.value?k.value=[k.value[0],Oe.value]:k.value=[null,Oe.value]},Mt=()=>{var pe;const Oe=k.value,ot=Me(Oe&&Oe[0]),St=f(b);if(ot&&ot.isValid()){k.value=[at(ot),((pe=Q.value)==null?void 0:pe[1])||null];const vn=[ot,St&&(St[1]||null)];Qe(vn)&&(R(ah(vn)),k.value=null)}},Ht=()=>{var pe;const Oe=f(k),ot=Me(Oe&&Oe[1]),St=f(b);if(ot&&ot.isValid()){k.value=[((pe=f(Q))==null?void 0:pe[0])||null,at(ot)];const vn=[St&&St[0],ot];Qe(vn)&&(R(ah(vn)),k.value=null)}},Ee=()=>{var pe;(pe=v.value)==null||pe.focus()},We=()=>{var pe;(pe=v.value)==null||pe.blur()};return Gt(Cr,{props:a}),Gt(B3,y),t({focus:Ee,blur:We,handleOpen:J,handleClose:ee,onPick:A}),(pe,Oe)=>(_(),ue(f(hs),Kt({ref_key:"refPopper",ref:p,visible:f(S),effect:"light",pure:"",trigger:"click"},pe.$attrs,{role:"dialog",teleported:"",transition:`${f(o).namespace.value}-zoom-in-top`,"popper-class":[`${f(o).namespace.value}-picker__popper`,pe.popperClass],"popper-style":pe.popperStyle,"popper-options":f(u),"fallback-placements":pe.fallbackPlacements,"gpu-acceleration":!1,placement:pe.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:te,onShow:ie,onHide:oe}),{default:W(()=>[f(we)?(_(),ue(xj,{key:1,id:pe.id,ref_key:"inputRef",ref:v,"model-value":f(Q),name:pe.name,disabled:f(g),readonly:!pe.editable||pe.readonly,"start-placeholder":pe.startPlaceholder,"end-placeholder":pe.endPlaceholder,class:V(f(L)),style:Je(pe.$attrs.style),"aria-label":pe.ariaLabel,tabindex:pe.tabindex,autocomplete:"off",role:"combobox",onClick:ke,onFocus:f(j),onBlur:f(F),onStartInput:Vt,onStartChange:Mt,onEndInput:kt,onEndChange:Ht,onMousedown:ke,onMouseenter:ye,onMouseleave:Se,onTouchstartPassive:ce,onKeydown:It},{prefix:W(()=>[f(ne)?(_(),ue(f(ct),{key:0,class:V([f(r).e("icon"),f(i).e("icon")])},{default:W(()=>[(_(),ue(Ft(f(ne))))]),_:1},8,["class"])):K("v-if",!0)]),"range-separator":W(()=>[be(pe.$slots,"range-separator",{},()=>[l("span",{class:V(f(i).b("separator"))},I(pe.rangeSeparator),3)])]),suffix:W(()=>[pe.clearIcon?(_(),ue(f(ct),{key:0,class:V(f(U)),onMousedown:qe(f(Cn),["prevent"]),onClick:se},{default:W(()=>[(_(),ue(Ft(pe.clearIcon)))]),_:1},8,["class","onMousedown"])):K("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(_(),ue(f(Bs),{key:0,id:pe.id,ref_key:"inputRef",ref:v,"container-role":"combobox","model-value":f(Q),name:pe.name,size:f(Ae),disabled:f(g),placeholder:pe.placeholder,class:V([f(o).b("editor"),f(o).bm("editor",pe.type),f(o).is("focus",f(S)),pe.$attrs.class]),style:Je(pe.$attrs.style),readonly:!pe.editable||pe.readonly||f(he)||f(D)||f(Y)||pe.type==="week","aria-label":pe.ariaLabel,tabindex:pe.tabindex,"validate-event":!1,onInput:je,onFocus:f(j),onBlur:f(F),onKeydown:It,onChange:me,onMousedown:ke,onMouseenter:ye,onMouseleave:Se,onTouchstartPassive:ce,onClick:qe(()=>{},["stop"])},{prefix:W(()=>[f(ne)?(_(),ue(f(ct),{key:0,class:V(f(r).e("icon")),onMousedown:qe(ke,["prevent"]),onTouchstartPassive:ce},{default:W(()=>[(_(),ue(Ft(f(ne))))]),_:1},8,["class","onMousedown"])):K("v-if",!0)]),suffix:W(()=>[f(re)&&pe.clearIcon?(_(),ue(f(ct),{key:0,class:V(`${f(r).e("icon")} clear-icon`),onMousedown:qe(f(Cn),["prevent"]),onClick:se},{default:W(()=>[(_(),ue(Ft(pe.clearIcon)))]),_:1},8,["class","onMousedown"])):K("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur","onClick"]))]),content:W(()=>[be(pe.$slots,"default",{visible:f(S),actualVisible:f(C),parsedValue:f(b),format:pe.format,dateFormat:pe.dateFormat,timeFormat:pe.timeFormat,unlinkPanels:pe.unlinkPanels,type:pe.type,defaultValue:pe.defaultValue,showNow:pe.showNow,showConfirm:pe.showConfirm,showFooter:pe.showFooter,showWeekNumber:pe.showWeekNumber,onPick:f(A),onSelectRange:Z,onSetPickerOption:f(N),onCalendarChange:f(P),onPanelChange:f(B),onMousedown:qe(()=>{},["stop"])})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}});var D3=ze(Ij,[["__file","picker.vue"]]);const Aj=Ue({...O3,datetimeRole:String,parsedValue:{type:ge(Object)}}),V3=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const a=(r,i,c,u)=>{const d={hour:e,minute:t,second:n};let p=r;return["hour","minute","second"].forEach(v=>{if(d[v]){let h;const m=d[v];switch(v){case"minute":{h=m(p.hour(),i,u);break}case"second":{h=m(p.hour(),p.minute(),i,u);break}default:{h=m(i,u);break}}if(h!=null&&h.length&&!h.includes(p[v]())){const g=c?0:h.length-1;p=p[v](h[g])}}}),p},s={};return{timePickerOptions:s,getAvailableTime:a,onSetOption:([r,i])=>{s[r]=i}}},og=e=>{const t=(a,s)=>a||s,n=a=>a!==!0;return e.map(t).filter(n)},F3=(e,t,n)=>({getHoursList:(r,i)=>ng(24,e&&(()=>e==null?void 0:e(r,i))),getMinutesList:(r,i,c)=>ng(60,t&&(()=>t==null?void 0:t(r,i,c))),getSecondsList:(r,i,c,u)=>ng(60,n&&(()=>n==null?void 0:n(r,i,c,u)))}),U3=(e,t,n)=>{const{getHoursList:a,getMinutesList:s,getSecondsList:o}=F3(e,t,n);return{getAvailableHours:(u,d)=>og(a(u,d)),getAvailableMinutes:(u,d,p)=>og(s(u,d,p)),getAvailableSeconds:(u,d,p,v)=>og(o(u,d,p,v))}},z3=e=>{const t=T(e.parsedValue);return Te(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},Nj=Ue({role:{type:String,required:!0},spinnerDate:{type:ge(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:ge(String),default:""},...rb}),Rj=100,Pj=600,Oh={beforeMount(e,t){const n=t.value,{interval:a=Rj,delay:s=Pj}=vt(n)?{}:n;let o,r;const i=()=>vt(n)?n():n.handler(),c=()=>{r&&(clearTimeout(r),r=void 0),o&&(clearInterval(o),o=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(c(),i(),document.addEventListener("mouseup",()=>c(),{once:!0}),r=setTimeout(()=>{o=setInterval(()=>{i()},a)},s))})}},Mj=le({__name:"basic-time-spinner",props:Nj,emits:[Xt,"select-range","set-option"],setup(e,{emit:t}){const n=e,a=Ze(Cr),{isRange:s,format:o}=a.props,r=Le("time"),{getHoursList:i,getMinutesList:c,getSecondsList:u}=F3(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let d=!1;const p=T(),v=T(),h=T(),m=T(),g={hours:v,minutes:h,seconds:m},y=x(()=>n.showSeconds?Yk:Yk.slice(0,2)),b=x(()=>{const{spinnerDate:te}=n,ie=te.hour(),oe=te.minute(),J=te.second();return{hours:ie,minutes:oe,seconds:J}}),C=x(()=>{const{hours:te,minutes:ie}=f(b),{role:oe,spinnerDate:J}=n,ee=s?void 0:J;return{hours:i(oe,ee),minutes:c(te,oe,ee),seconds:u(te,ie,oe,ee)}}),k=x(()=>{const{hours:te,minutes:ie,seconds:oe}=f(b);return{hours:tg(te,23),minutes:tg(ie,59),seconds:tg(oe,59)}}),S=wo(te=>{d=!1,R(te)},200),$=te=>{if(!!!n.amPmMode)return"";const oe=n.amPmMode==="A";let J=te<12?" am":" pm";return oe&&(J=J.toUpperCase()),J},E=te=>{let ie=[0,0];const oe=o||Xu,J=oe.indexOf("HH"),ee=oe.indexOf("mm"),Q=oe.indexOf("ss");switch(te){case"hours":J!==-1&&(ie=[J,J+2]);break;case"minutes":ee!==-1&&(ie=[ee,ee+2]);break;case"seconds":Q!==-1&&(ie=[Q,Q+2]);break}const[H,X]=ie;t("select-range",H,X),p.value=te},R=te=>{P(te,f(b)[te])},A=()=>{R("hours"),R("minutes"),R("seconds")},N=te=>te.querySelector(`.${r.namespace.value}-scrollbar__wrap`),P=(te,ie)=>{if(n.arrowControl)return;const oe=f(g[te]);oe&&oe.$el&&(N(oe.$el).scrollTop=Math.max(0,ie*B(te)))},B=te=>{const ie=f(g[te]),oe=ie==null?void 0:ie.$el.querySelector("li");return oe&&Number.parseFloat($l(oe,"height"))||0},M=()=>{F(1)},j=()=>{F(-1)},F=te=>{p.value||E("hours");const ie=p.value,oe=f(b)[ie],J=p.value==="hours"?24:60,ee=q(ie,oe,te,J);L(ie,ee),P(ie,ee),it(()=>E(ie))},q=(te,ie,oe,J)=>{let ee=(ie+oe+J)%J;const Q=f(C)[te];for(;Q[ee]&&ee!==ie;)ee=(ee+oe+J)%J;return ee},L=(te,ie)=>{if(f(C)[te][ie])return;const{hours:ee,minutes:Q,seconds:H}=f(b);let X;switch(te){case"hours":X=n.spinnerDate.hour(ie).minute(Q).second(H);break;case"minutes":X=n.spinnerDate.hour(ee).minute(ie).second(H);break;case"seconds":X=n.spinnerDate.hour(ee).minute(Q).second(ie);break}t(Xt,X)},U=(te,{value:ie,disabled:oe})=>{oe||(L(te,ie),E(te),P(te,ie))},O=te=>{const ie=f(g[te]);if(!ie)return;d=!0,S(te);const oe=Math.min(Math.round((N(ie.$el).scrollTop-(G(te)*.5-10)/B(te)+3)/B(te)),te==="hours"?23:59);L(te,oe)},G=te=>f(g[te]).$el.offsetHeight,ae=()=>{const te=ie=>{const oe=f(g[ie]);oe&&oe.$el&&(N(oe.$el).onscroll=()=>{O(ie)})};te("hours"),te("minutes"),te("seconds")};ft(()=>{it(()=>{!n.arrowControl&&ae(),A(),n.role==="start"&&E("hours")})});const Z=(te,ie)=>{g[ie].value=te??void 0};return t("set-option",[`${n.role}_scrollDown`,F]),t("set-option",[`${n.role}_emitSelectRange`,E]),Te(()=>n.spinnerDate,()=>{d||A()}),(te,ie)=>(_(),w("div",{class:V([f(r).b("spinner"),{"has-seconds":te.showSeconds}])},[te.arrowControl?K("v-if",!0):(_(!0),w(_e,{key:0},Re(f(y),oe=>(_(),ue(f(wr),{key:oe,ref_for:!0,ref:J=>Z(J,oe),class:V(f(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":f(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:J=>E(oe),onMousemove:J=>R(oe)},{default:W(()=>[(_(!0),w(_e,null,Re(f(C)[oe],(J,ee)=>(_(),w("li",{key:ee,class:V([f(r).be("spinner","item"),f(r).is("active",ee===f(b)[oe]),f(r).is("disabled",J)]),onClick:Q=>U(oe,{value:ee,disabled:J})},[oe==="hours"?(_(),w(_e,{key:0},[Ce(I(("0"+(te.amPmMode?ee%12||12:ee)).slice(-2))+I($(ee)),1)],64)):(_(),w(_e,{key:1},[Ce(I(("0"+ee).slice(-2)),1)],64))],10,["onClick"]))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),te.arrowControl?(_(!0),w(_e,{key:1},Re(f(y),oe=>(_(),w("div",{key:oe,class:V([f(r).be("spinner","wrapper"),f(r).is("arrow")]),onMouseenter:J=>E(oe)},[et((_(),ue(f(ct),{class:V(["arrow-up",f(r).be("spinner","arrow")])},{default:W(()=>[z(f(Um))]),_:1},8,["class"])),[[f(Oh),j]]),et((_(),ue(f(ct),{class:V(["arrow-down",f(r).be("spinner","arrow")])},{default:W(()=>[z(f(rl))]),_:1},8,["class"])),[[f(Oh),M]]),l("ul",{class:V(f(r).be("spinner","list"))},[(_(!0),w(_e,null,Re(f(k)[oe],(J,ee)=>(_(),w("li",{key:ee,class:V([f(r).be("spinner","item"),f(r).is("active",J===f(b)[oe]),f(r).is("disabled",f(C)[oe][J])])},[f(gt)(J)?(_(),w(_e,{key:0},[oe==="hours"?(_(),w(_e,{key:0},[Ce(I(("0"+(te.amPmMode?J%12||12:J)).slice(-2))+I($(J)),1)],64)):(_(),w(_e,{key:1},[Ce(I(("0"+J).slice(-2)),1)],64))],64)):K("v-if",!0)],2))),128))],2)],42,["onMouseenter"]))),128)):K("v-if",!0)],2))}});var E_=ze(Mj,[["__file","basic-time-spinner.vue"]]);const Bj=le({__name:"panel-time-pick",props:Aj,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=Ze(Cr),{arrowControl:s,disabledHours:o,disabledMinutes:r,disabledSeconds:i,defaultValue:c}=a.props,{getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:p}=U3(o,r,i),v=Le("time"),{t:h,lang:m}=rn(),g=T([0,2]),y=z3(n),b=x(()=>tn(n.actualVisible)?`${v.namespace.value}-zoom-in-top`:""),C=x(()=>n.format.includes("ss")),k=x(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),S=O=>{const G=Bt(O).locale(m.value),ae=F(G);return G.isSame(ae)},$=()=>{t("pick",y.value,!1)},E=(O=!1,G=!1)=>{G||t("pick",n.parsedValue,O)},R=O=>{if(!n.visible)return;const G=F(O).millisecond(0);t("pick",G,!0)},A=(O,G)=>{t("select-range",O,G),g.value=[O,G]},N=O=>{const G=n.format,ae=G.indexOf("HH"),Z=G.indexOf("mm"),te=G.indexOf("ss"),ie=[],oe=[];ae!==-1&&(ie.push(ae),oe.push("hours")),Z!==-1&&(ie.push(Z),oe.push("minutes")),te!==-1&&C.value&&(ie.push(te),oe.push("seconds"));const ee=(ie.indexOf(g.value[0])+O+ie.length)%ie.length;B.start_emitSelectRange(oe[ee])},P=O=>{const G=O.code,{left:ae,right:Z,up:te,down:ie}=tt;if([ae,Z].includes(G)){N(G===ae?-1:1),O.preventDefault();return}if([te,ie].includes(G)){const oe=G===te?-1:1;B.start_scrollDown(oe),O.preventDefault();return}},{timePickerOptions:B,onSetOption:M,getAvailableTime:j}=V3({getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:p}),F=O=>j(O,n.datetimeRole||"",!0),q=O=>O?Bt(O,n.format).locale(m.value):null,L=O=>O?O.format(n.format):null,U=()=>Bt(c).locale(m.value);return t("set-picker-option",["isValidValue",S]),t("set-picker-option",["formatToString",L]),t("set-picker-option",["parseUserInput",q]),t("set-picker-option",["handleKeydownInput",P]),t("set-picker-option",["getRangeAvailableTime",F]),t("set-picker-option",["getDefaultValue",U]),(O,G)=>(_(),ue(aa,{name:f(b)},{default:W(()=>[O.actualVisible||O.visible?(_(),w("div",{key:0,class:V(f(v).b("panel"))},[l("div",{class:V([f(v).be("panel","content"),{"has-seconds":f(C)}])},[z(E_,{ref:"spinner",role:O.datetimeRole||"start","arrow-control":f(s),"show-seconds":f(C),"am-pm-mode":f(k),"spinner-date":O.parsedValue,"disabled-hours":f(o),"disabled-minutes":f(r),"disabled-seconds":f(i),onChange:R,onSetOption:f(M),onSelectRange:A},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),l("div",{class:V(f(v).be("panel","footer"))},[l("button",{type:"button",class:V([f(v).be("panel","btn"),"cancel"]),onClick:$},I(f(h)("el.datepicker.cancel")),3),l("button",{type:"button",class:V([f(v).be("panel","btn"),"confirm"]),onClick:ae=>E()},I(f(h)("el.datepicker.confirm")),11,["onClick"])],2)],2)):K("v-if",!0)]),_:1},8,["name"]))}});var Dh=ze(Bj,[["__file","panel-time-pick.vue"]]);const Lj=Ue({...O3,parsedValue:{type:ge(Array)}}),Oj=le({__name:"panel-time-range",props:Lj,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=(D,Y)=>{const ne=[];for(let re=D;re<=Y;re++)ne.push(re);return ne},{t:s,lang:o}=rn(),r=Le("time"),i=Le("picker"),c=Ze(Cr),{arrowControl:u,disabledHours:d,disabledMinutes:p,disabledSeconds:v,defaultValue:h}=c.props,m=x(()=>[r.be("range-picker","body"),r.be("panel","content"),r.is("arrow",u),S.value?"has-seconds":""]),g=x(()=>[r.be("range-picker","body"),r.be("panel","content"),r.is("arrow",u),S.value?"has-seconds":""]),y=x(()=>n.parsedValue[0]),b=x(()=>n.parsedValue[1]),C=z3(n),k=()=>{t("pick",C.value,!1)},S=x(()=>n.format.includes("ss")),$=x(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),E=(D=!1)=>{t("pick",[y.value,b.value],D)},R=D=>{P(D.millisecond(0),b.value)},A=D=>{P(y.value,D.millisecond(0))},N=D=>{const Y=D.map(re=>Bt(re).locale(o.value)),ne=Z(Y);return Y[0].isSame(ne[0])&&Y[1].isSame(ne[1])},P=(D,Y)=>{n.visible&&t("pick",[D,Y],!0)},B=x(()=>y.value>b.value),M=T([0,2]),j=(D,Y)=>{t("select-range",D,Y,"min"),M.value=[D,Y]},F=x(()=>S.value?11:8),q=(D,Y)=>{t("select-range",D,Y,"max");const ne=f(F);M.value=[D+ne,Y+ne]},L=D=>{const Y=S.value?[0,3,6,11,14,17]:[0,3,8,11],ne=["hours","minutes"].concat(S.value?["seconds"]:[]),se=(Y.indexOf(M.value[0])+D+Y.length)%Y.length,ke=Y.length/2;se{const Y=D.code,{left:ne,right:re,up:se,down:ke}=tt;if([ne,re].includes(Y)){L(Y===ne?-1:1),D.preventDefault();return}if([se,ke].includes(Y)){const ye=Y===se?-1:1,Se=M.value[0]{const ne=d?d(D):[],re=D==="start",ke=(Y||(re?b.value:y.value)).hour(),ye=re?a(ke+1,23):a(0,ke-1);return Y0(ne,ye)},G=(D,Y,ne)=>{const re=p?p(D,Y):[],se=Y==="start",ke=ne||(se?b.value:y.value),ye=ke.hour();if(D!==ye)return re;const Se=ke.minute(),ce=se?a(Se+1,59):a(0,Se-1);return Y0(re,ce)},ae=(D,Y,ne,re)=>{const se=v?v(D,Y,ne):[],ke=ne==="start",ye=re||(ke?b.value:y.value),Se=ye.hour(),ce=ye.minute();if(D!==Se||Y!==ce)return se;const we=ye.second(),Ae=ke?a(we+1,59):a(0,we-1);return Y0(se,Ae)},Z=([D,Y])=>[ee(D,"start",!0,Y),ee(Y,"end",!1,D)],{getAvailableHours:te,getAvailableMinutes:ie,getAvailableSeconds:oe}=U3(O,G,ae),{timePickerOptions:J,getAvailableTime:ee,onSetOption:Q}=V3({getAvailableHours:te,getAvailableMinutes:ie,getAvailableSeconds:oe}),H=D=>D?Ve(D)?D.map(Y=>Bt(Y,n.format).locale(o.value)):Bt(D,n.format).locale(o.value):null,X=D=>D?Ve(D)?D.map(Y=>Y.format(n.format)):D.format(n.format):null,he=()=>{if(Ve(h))return h.map(Y=>Bt(Y).locale(o.value));const D=Bt(h).locale(o.value);return[D,D.add(60,"m")]};return t("set-picker-option",["formatToString",X]),t("set-picker-option",["parseUserInput",H]),t("set-picker-option",["isValidValue",N]),t("set-picker-option",["handleKeydownInput",U]),t("set-picker-option",["getDefaultValue",he]),t("set-picker-option",["getRangeAvailableTime",Z]),(D,Y)=>D.actualVisible?(_(),w("div",{key:0,class:V([f(r).b("range-picker"),f(i).b("panel")])},[l("div",{class:V(f(r).be("range-picker","content"))},[l("div",{class:V(f(r).be("range-picker","cell"))},[l("div",{class:V(f(r).be("range-picker","header"))},I(f(s)("el.datepicker.startTime")),3),l("div",{class:V(f(m))},[z(E_,{ref:"minSpinner",role:"start","show-seconds":f(S),"am-pm-mode":f($),"arrow-control":f(u),"spinner-date":f(y),"disabled-hours":O,"disabled-minutes":G,"disabled-seconds":ae,onChange:R,onSetOption:f(Q),onSelectRange:j},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),l("div",{class:V(f(r).be("range-picker","cell"))},[l("div",{class:V(f(r).be("range-picker","header"))},I(f(s)("el.datepicker.endTime")),3),l("div",{class:V(f(g))},[z(E_,{ref:"maxSpinner",role:"end","show-seconds":f(S),"am-pm-mode":f($),"arrow-control":f(u),"spinner-date":f(b),"disabled-hours":O,"disabled-minutes":G,"disabled-seconds":ae,onChange:A,onSetOption:f(Q),onSelectRange:q},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),l("div",{class:V(f(r).be("panel","footer"))},[l("button",{type:"button",class:V([f(r).be("panel","btn"),"cancel"]),onClick:ne=>k()},I(f(s)("el.datepicker.cancel")),11,["onClick"]),l("button",{type:"button",class:V([f(r).be("panel","btn"),"confirm"]),disabled:f(B),onClick:ne=>E()},I(f(s)("el.datepicker.confirm")),11,["disabled","onClick"])],2)],2)):K("v-if",!0)}});var Dj=ze(Oj,[["__file","panel-time-range.vue"]]);Bt.extend(sb);var Vj=le({name:"ElTimePicker",install:null,props:{...lb,isRange:Boolean},emits:[Et],setup(e,t){const n=T(),[a,s]=e.isRange?["timerange",Dj]:["time",Dh],o=r=>t.emit(Et,r);return Gt(ob,e.popperOptions),t.expose({focus:()=>{var r;(r=n.value)==null||r.focus()},blur:()=>{var r;(r=n.value)==null||r.blur()},handleOpen:()=>{var r;(r=n.value)==null||r.handleOpen()},handleClose:()=>{var r;(r=n.value)==null||r.handleClose()}}),()=>{var r;const i=(r=e.format)!=null?r:Xu;return z(D3,Kt(e,{ref:n,type:a,format:i,"onUpdate:modelValue":o}),{default:c=>z(s,c,null)})}}});const Fj=Rt(Vj);var H3={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(ll,function(){return function(n,a){var s=a.prototype,o=s.format;s.format=function(r){var i=this,c=this.$locale();if(!this.isValid())return o.bind(this)(r);var u=this.$utils(),d=(r||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return c.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return c.ordinal(i.week(),"W");case"w":case"ww":return u.s(i.week(),p==="w"?1:2,"0");case"W":case"WW":return u.s(i.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return u.s(String(i.$H===0?24:i.$H),p==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return p}});return o.bind(this)(d)}}})})(H3);var Uj=H3.exports;const zj=il(Uj);var K3={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(ll,function(){var n="week",a="year";return function(s,o,r){var i=o.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=r(this).startOf(a).add(1,a).date(u),p=r(this).endOf(n);if(d.isBefore(p))return 1}var v=r(this).startOf(a).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(v,n,!0);return h<0?r(this).startOf("week").week():Math.ceil(h)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(K3);var Hj=K3.exports;const Kj=il(Hj);var q3={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(ll,function(){return function(n,a){a.prototype.weekYear=function(){var s=this.month(),o=this.week(),r=this.year();return o===1&&s===11?r+1:s===0&&o>=52?r-1:r}}})})(q3);var qj=q3.exports;const jj=il(qj);var j3={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(ll,function(){return function(n,a,s){a.prototype.dayOfYear=function(o){var r=Math.round((s(this).startOf("day")-s(this).startOf("year"))/864e5)+1;return o==null?r:this.add(o-r,"day")}}})})(j3);var Wj=j3.exports;const Gj=il(Wj);var W3={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(ll,function(){return function(n,a){a.prototype.isSameOrAfter=function(s,o){return this.isSame(s,o)||this.isAfter(s,o)}}})})(W3);var Yj=W3.exports;const Xj=il(Yj);var G3={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(ll,function(){return function(n,a){a.prototype.isSameOrBefore=function(s,o){return this.isSame(s,o)||this.isBefore(s,o)}}})})(G3);var Qj=G3.exports;const Jj=il(Qj),Zj=Ue({valueFormat:String,dateFormat:String,timeFormat:String,disabled:Boolean,modelValue:{type:ge([Date,Array,String,Number]),default:""},defaultValue:{type:ge([Date,Array])},defaultTime:{type:ge([Date,Array])},isRange:Boolean,...rb,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,unlinkPanels:Boolean,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:Boolean,showWeekNumber:Boolean,type:{type:ge(String),default:"date"},clearable:{type:Boolean,default:!0},border:{type:Boolean,default:!0}}),ib=Symbol("rootPickerContextKey"),Lp="ElIsDefaultFormat",eW=["date","dates","year","years","month","months","week","range"],cb=Ue({cellClassName:{type:ge(Function)},disabledDate:{type:ge(Function)},date:{type:ge(Object),required:!0},minDate:{type:ge(Object)},maxDate:{type:ge(Object)},parsedValue:{type:ge([Object,Array])},rangeState:{type:ge(Object),default:()=>({endDate:null,selecting:!1})},disabled:Boolean}),Y3=Ue({type:{type:ge(String),required:!0,values:hH},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean,border:Boolean,disabled:Boolean}),ub=Ue({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:ge(Array)}}),db=e=>({type:String,values:eW,default:e}),tW=Ue({...Y3,parsedValue:{type:ge([Object,Array])},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),sp=e=>{if(!Ve(e))return!1;const[t,n]=e;return Bt.isDayjs(t)&&Bt.isDayjs(n)&&Bt(t).isValid()&&Bt(n).isValid()&&t.isSameOrBefore(n)},Jm=(e,{lang:t,step:n=1,unit:a,unlinkPanels:s})=>{let o;if(Ve(e)){let[r,i]=e.map(c=>Bt(c).locale(t));return s||(i=r.add(n,a)),[r,i]}else e?o=Bt(e):o=Bt();return o=o.locale(t),[o,o.add(n,a)]},nW=(e,t,{columnIndexOffset:n,startDate:a,nextEndDate:s,now:o,unit:r,relativeDateGetter:i,setCellMetadata:c,setRowMetadata:u})=>{for(let d=0;d{const s=Bt().locale(a).startOf("month").month(n).year(t).hour(e.hour()).minute(e.minute()).second(e.second()),o=s.daysInMonth();return xi(o).map(r=>s.add(r,"day").toDate())},Qu=(e,t,n,a,s)=>{const o=Bt().year(t).month(n).startOf("month").hour(e.hour()).minute(e.minute()).second(e.second()),r=Vh(e,t,n,a).find(i=>!(s!=null&&s(i)));return r?Bt(r).locale(a):o.locale(a)},Fh=(e,t,n)=>{const a=e.year();if(!(n!=null&&n(e.toDate())))return e.locale(t);const s=e.month();if(!Vh(e,a,s,t).every(n))return Qu(e,a,s,t,n);for(let o=0;o<12;o++)if(!Vh(e,a,o,t).every(n))return Qu(e,a,o,t,n);return e},Ju=(e,t,n,a)=>{if(Ve(e))return e.map(s=>Ju(s,t,n,a));if(ut(e)){const s=a!=null&&a.value?Bt(e):Bt(e,t);if(!s.isValid())return s}return Bt(e,t).locale(n)},aW=Ue({...cb,showWeekNumber:Boolean,selectionMode:db("date")}),sW=["changerange","pick","select"],$_=(e="")=>["normal","today"].includes(e),oW=(e,t)=>{const{lang:n}=rn(),a=T(),s=T(),o=T(),r=T(),i=T([[],[],[],[],[],[]]);let c=!1;const u=e.date.$locale().weekStart||7,d=e.date.locale("en").localeData().weekdaysShort().map(O=>O.toLowerCase()),p=x(()=>u>3?7-u:-u),v=x(()=>{const O=e.date.startOf("month");return O.subtract(O.day()||7,"day")}),h=x(()=>d.concat(d).slice(u,u+7)),m=x(()=>h4(f(S)).some(O=>O.isCurrent)),g=x(()=>{const O=e.date.startOf("month"),G=O.day()||7,ae=O.daysInMonth(),Z=O.subtract(1,"month").daysInMonth();return{startOfMonthDay:G,dateCountOfMonth:ae,dateCountOfLastMonth:Z}}),y=x(()=>e.selectionMode==="dates"?eo(e.parsedValue):[]),b=(O,{count:G,rowIndex:ae,columnIndex:Z})=>{const{startOfMonthDay:te,dateCountOfMonth:ie,dateCountOfLastMonth:oe}=f(g),J=f(p);if(ae>=0&&ae<=1){const ee=te+J<0?7+te+J:te+J;if(Z+ae*7>=ee)return O.text=G,!0;O.text=oe-(ee-Z%7)+1+ae*7,O.type="prev-month"}else return G<=ie?O.text=G:(O.text=G-ie,O.type="next-month"),!0;return!1},C=(O,{columnIndex:G,rowIndex:ae},Z)=>{const{disabledDate:te,cellClassName:ie}=e,oe=f(y),J=b(O,{count:Z,rowIndex:ae,columnIndex:G}),ee=O.dayjs.toDate();return O.selected=oe.find(Q=>Q.isSame(O.dayjs,"day")),O.isSelected=!!O.selected,O.isCurrent=E(O),O.disabled=te==null?void 0:te(ee),O.customClass=ie==null?void 0:ie(ee),J},k=O=>{if(e.selectionMode==="week"){const[G,ae]=e.showWeekNumber?[1,7]:[0,6],Z=U(O[G+1]);O[G].inRange=Z,O[G].start=Z,O[ae].inRange=Z,O[ae].end=Z}},S=x(()=>{const{minDate:O,maxDate:G,rangeState:ae,showWeekNumber:Z}=e,te=f(p),ie=f(i),oe="day";let J=1;if(nW({row:6,column:7},ie,{startDate:O,columnIndexOffset:Z?1:0,nextEndDate:ae.endDate||G||ae.selecting&&O||null,now:Bt().locale(f(n)).startOf(oe),unit:oe,relativeDateGetter:ee=>f(v).add(ee-te,oe),setCellMetadata:(...ee)=>{C(...ee,J)&&(J+=1)},setRowMetadata:k}),Z)for(let ee=0;ee<6;ee++)ie[ee][1].dayjs&&(ie[ee][0]={type:"week",text:ie[ee][1].dayjs.week()});return ie});Te(()=>e.date,async()=>{var O;(O=f(a))!=null&&O.contains(document.activeElement)&&(await it(),await $())});const $=async()=>{var O;return(O=f(s))==null?void 0:O.focus()},E=O=>e.selectionMode==="date"&&$_(O.type)&&R(O,e.parsedValue),R=(O,G)=>G?Bt(G).locale(f(n)).isSame(e.date.date(Number(O.text)),"day"):!1,A=(O,G)=>{const ae=O*7+(G-(e.showWeekNumber?1:0))-f(p);return f(v).add(ae,"day")},N=O=>{var G;if(!e.rangeState.selecting)return;let ae=O.target;if(ae.tagName==="SPAN"&&(ae=(G=ae.parentNode)==null?void 0:G.parentNode),ae.tagName==="DIV"&&(ae=ae.parentNode),ae.tagName!=="TD")return;const Z=ae.parentNode.rowIndex-1,te=ae.cellIndex;f(S)[Z][te].disabled||(Z!==f(o)||te!==f(r))&&(o.value=Z,r.value=te,t("changerange",{selecting:!0,endDate:A(Z,te)}))},P=O=>{c||f(m)||e.selectionMode!=="date"||L(O,!0)},B=O=>{O.target.closest("td")&&(c=!0)},M=O=>{O.target.closest("td")&&(c=!1)},j=O=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:O,maxDate:null}),t("select",!0)):(O>=e.minDate?t("pick",{minDate:e.minDate,maxDate:O}):t("pick",{minDate:O,maxDate:e.minDate}),t("select",!1))},F=O=>{const G=O.week(),ae=`${O.year()}w${G}`;t("pick",{year:O.year(),week:G,value:ae,date:O.startOf("week")})},q=(O,G)=>{const ae=G?eo(e.parsedValue).filter(Z=>(Z==null?void 0:Z.valueOf())!==O.valueOf()):eo(e.parsedValue).concat([O]);t("pick",ae)},L=(O,G=!1)=>{if(e.disabled)return;const ae=O.target.closest("td");if(!ae)return;const Z=ae.parentNode.rowIndex-1,te=ae.cellIndex,ie=f(S)[Z][te];if(ie.disabled||ie.type==="week")return;const oe=A(Z,te);switch(e.selectionMode){case"range":{j(oe);break}case"date":{t("pick",oe,G);break}case"week":{F(oe);break}case"dates":{q(oe,!!ie.selected);break}}},U=O=>{if(e.selectionMode!=="week")return!1;let G=e.date.startOf("day");if(O.type==="prev-month"&&(G=G.subtract(1,"month")),O.type==="next-month"&&(G=G.add(1,"month")),G=G.date(Number.parseInt(O.text,10)),e.parsedValue&&!Ve(e.parsedValue)){const ae=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(ae,"day").isSame(G,"day")}return!1};return{WEEKS:h,rows:S,tbodyRef:a,currentCellRef:s,focus:$,isCurrent:E,isWeekActive:U,handlePickDate:L,handleMouseUp:M,handleMouseDown:B,handleMouseMove:N,handleFocus:P}},rW=(e,{isCurrent:t,isWeekActive:n})=>{const a=Le("date-table"),{t:s}=rn(),o=x(()=>[a.b(),{"is-week-mode":e.selectionMode==="week"&&!e.disabled}]),r=x(()=>s("el.datepicker.dateTablePrompt")),i=u=>{const d=[];return $_(u.type)&&!u.disabled?(d.push("available"),u.type==="today"&&d.push("today")):d.push(u.type),t(u)&&d.push("current"),u.inRange&&($_(u.type)||e.selectionMode==="week")&&(d.push("in-range"),u.start&&d.push("start-date"),u.end&&d.push("end-date")),(u.disabled||e.disabled)&&d.push("disabled"),u.selected&&d.push("selected"),u.customClass&&d.push(u.customClass),d.join(" ")},c=u=>[a.e("row"),{current:n(u)}];return{tableKls:o,tableLabel:r,weekHeaderClass:a.e("week-header"),getCellClasses:i,getRowKls:c,t:s}},lW=Ue({cell:{type:ge(Object)}});var fb=le({name:"ElDatePickerCell",props:lW,setup(e){const t=Le("date-table-cell"),{slots:n}=Ze(ib);return()=>{const{cell:a}=e;return be(n,"default",{...a},()=>{var s;return[z("div",{class:t.b()},[z("span",{class:t.e("text")},[(s=a==null?void 0:a.renderText)!=null?s:a==null?void 0:a.text])])]})}}});const iW=le({__name:"basic-date-table",props:aW,emits:sW,setup(e,{expose:t,emit:n}){const a=e,{WEEKS:s,rows:o,tbodyRef:r,currentCellRef:i,focus:c,isCurrent:u,isWeekActive:d,handlePickDate:p,handleMouseUp:v,handleMouseDown:h,handleMouseMove:m,handleFocus:g}=oW(a,n),{tableLabel:y,tableKls:b,getCellClasses:C,getRowKls:k,weekHeaderClass:S,t:$}=rW(a,{isCurrent:u,isWeekActive:d});let E=!1;return on(()=>{E=!0}),t({focus:c}),(R,A)=>(_(),w("table",{"aria-label":f(y),class:V(f(b)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:f(p),onMousemove:f(m),onMousedown:f(h),onMouseup:f(v)},[l("tbody",{ref_key:"tbodyRef",ref:r},[l("tr",null,[R.showWeekNumber?(_(),w("th",{key:0,scope:"col",class:V(f(S))},null,2)):K("v-if",!0),(_(!0),w(_e,null,Re(f(s),(N,P)=>(_(),w("th",{key:P,"aria-label":f($)("el.datepicker.weeksFull."+N),scope:"col"},I(f($)("el.datepicker.weeks."+N)),9,["aria-label"]))),128))]),(_(!0),w(_e,null,Re(f(o),(N,P)=>(_(),w("tr",{key:P,class:V(f(k)(N[1]))},[(_(!0),w(_e,null,Re(N,(B,M)=>(_(),w("td",{key:`${P}.${M}`,ref_for:!0,ref:j=>!f(E)&&B.isSelected&&(i.value=j),class:V(f(C)(B)),"aria-current":B.isCurrent?"date":void 0,"aria-selected":B.isCurrent,tabindex:B.isSelected?0:-1,onFocus:f(g)},[z(f(fb),{cell:B},null,8,["cell"])],42,["aria-current","aria-selected","tabindex","onFocus"]))),128))],2))),128))],512)],42,["aria-label","onClick","onMousemove","onMousedown","onMouseup"]))}});var x_=ze(iW,[["__file","basic-date-table.vue"]]);const cW=Ue({...cb,selectionMode:db("month")}),uW=le({__name:"basic-month-table",props:cW,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=e,s=Le("month-table"),{t:o,lang:r}=rn(),i=T(),c=T(),u=T(a.date.locale("en").localeData().monthsShort().map(k=>k.toLowerCase())),d=T([[],[],[]]),p=T(),v=T(),h=x(()=>{var k,S,$;const E=d.value,R=Bt().locale(r.value).startOf("month");for(let A=0;A<3;A++){const N=E[A];for(let P=0;P<4;P++){const B=N[P]||(N[P]={row:A,column:P,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0});B.type="normal";const M=A*4+P,j=a.date.startOf("year").month(M),F=a.rangeState.endDate||a.maxDate||a.rangeState.selecting&&a.minDate||null;B.inRange=!!(a.minDate&&j.isSameOrAfter(a.minDate,"month")&&F&&j.isSameOrBefore(F,"month"))||!!(a.minDate&&j.isSameOrBefore(a.minDate,"month")&&F&&j.isSameOrAfter(F,"month")),(k=a.minDate)!=null&&k.isSameOrAfter(F)?(B.start=!!(F&&j.isSame(F,"month")),B.end=a.minDate&&j.isSame(a.minDate,"month")):(B.start=!!(a.minDate&&j.isSame(a.minDate,"month")),B.end=!!(F&&j.isSame(F,"month"))),R.isSame(j)&&(B.type="today");const L=j.toDate();B.text=M,B.disabled=((S=a.disabledDate)==null?void 0:S.call(a,L))||!1,B.date=L,B.customClass=($=a.cellClassName)==null?void 0:$.call(a,L),B.dayjs=j,B.timestamp=j.valueOf(),B.isSelected=y(B)}}return E}),m=()=>{var k;(k=c.value)==null||k.focus()},g=k=>{const S={},$=a.date.year(),E=new Date,R=k.text;return S.disabled=a.disabled||(a.disabledDate?Vh(a.date,$,R,r.value).every(a.disabledDate):!1),S.current=eo(a.parsedValue).findIndex(A=>Bt.isDayjs(A)&&A.year()===$&&A.month()===R)>=0,S.today=E.getFullYear()===$&&E.getMonth()===R,k.customClass&&(S[k.customClass]=!0),k.inRange&&(S["in-range"]=!0,k.start&&(S["start-date"]=!0),k.end&&(S["end-date"]=!0)),S},y=k=>{const S=a.date.year(),$=k.text;return eo(a.date).findIndex(E=>E.year()===S&&E.month()===$)>=0},b=k=>{var S;if(!a.rangeState.selecting)return;let $=k.target;if($.tagName==="SPAN"&&($=(S=$.parentNode)==null?void 0:S.parentNode),$.tagName==="DIV"&&($=$.parentNode),$.tagName!=="TD")return;const E=$.parentNode.rowIndex,R=$.cellIndex;h.value[E][R].disabled||(E!==p.value||R!==v.value)&&(p.value=E,v.value=R,n("changerange",{selecting:!0,endDate:a.date.startOf("year").month(E*4+R)}))},C=k=>{var S;if(a.disabled)return;const $=(S=k.target)==null?void 0:S.closest("td");if(($==null?void 0:$.tagName)!=="TD"||vo($,"disabled"))return;const E=$.cellIndex,A=$.parentNode.rowIndex*4+E,N=a.date.startOf("year").month(A);if(a.selectionMode==="months"){if(k.type==="keydown"){n("pick",eo(a.parsedValue),!1);return}const P=Qu(a.date,a.date.year(),A,r.value,a.disabledDate),B=vo($,"current")?eo(a.parsedValue).filter(M=>(M==null?void 0:M.year())!==P.year()||(M==null?void 0:M.month())!==P.month()):eo(a.parsedValue).concat([Bt(P)]);n("pick",B)}else a.selectionMode==="range"?a.rangeState.selecting?(a.minDate&&N>=a.minDate?n("pick",{minDate:a.minDate,maxDate:N}):n("pick",{minDate:N,maxDate:a.minDate}),n("select",!1)):(n("pick",{minDate:N,maxDate:null}),n("select",!0)):n("pick",A)};return Te(()=>a.date,async()=>{var k,S;(k=i.value)!=null&&k.contains(document.activeElement)&&(await it(),(S=c.value)==null||S.focus())}),t({focus:m}),(k,S)=>(_(),w("table",{role:"grid","aria-label":f(o)("el.datepicker.monthTablePrompt"),class:V(f(s).b()),onClick:C,onMousemove:b},[l("tbody",{ref_key:"tbodyRef",ref:i},[(_(!0),w(_e,null,Re(f(h),($,E)=>(_(),w("tr",{key:E},[(_(!0),w(_e,null,Re($,(R,A)=>(_(),w("td",{key:A,ref_for:!0,ref:N=>R.isSelected&&(c.value=N),class:V(g(R)),"aria-selected":!!R.isSelected,"aria-label":f(o)(`el.datepicker.month${+R.text+1}`),tabindex:R.isSelected?0:-1,onKeydown:[yn(qe(C,["prevent","stop"]),["space"]),yn(qe(C,["prevent","stop"]),["enter"])]},[z(f(fb),{cell:{...R,renderText:f(o)("el.datepicker.months."+u.value[R.text])}},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var op=ze(uW,[["__file","basic-month-table.vue"]]);const dW=Ue({...cb,selectionMode:db("year")}),fW=le({__name:"basic-year-table",props:dW,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=e,s=(S,$)=>{const E=Bt(String(S)).locale($).startOf("year"),A=E.endOf("year").dayOfYear();return xi(A).map(N=>E.add(N,"day").toDate())},o=Le("year-table"),{t:r,lang:i}=rn(),c=T(),u=T(),d=x(()=>Math.floor(a.date.year()/10)*10),p=T([[],[],[]]),v=T(),h=T(),m=x(()=>{var S,$,E;const R=p.value,A=Bt().locale(i.value).startOf("year");for(let N=0;N<3;N++){const P=R[N];for(let B=0;B<4&&!(N*4+B>=10);B++){let M=P[B];M||(M={row:N,column:B,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0}),M.type="normal";const j=N*4+B+d.value,F=Bt().year(j),q=a.rangeState.endDate||a.maxDate||a.rangeState.selecting&&a.minDate||null;M.inRange=!!(a.minDate&&F.isSameOrAfter(a.minDate,"year")&&q&&F.isSameOrBefore(q,"year"))||!!(a.minDate&&F.isSameOrBefore(a.minDate,"year")&&q&&F.isSameOrAfter(q,"year")),(S=a.minDate)!=null&&S.isSameOrAfter(q)?(M.start=!!(q&&F.isSame(q,"year")),M.end=!!(a.minDate&&F.isSame(a.minDate,"year"))):(M.start=!!(a.minDate&&F.isSame(a.minDate,"year")),M.end=!!(q&&F.isSame(q,"year"))),A.isSame(F)&&(M.type="today"),M.text=j;const U=F.toDate();M.disabled=(($=a.disabledDate)==null?void 0:$.call(a,U))||!1,M.date=U,M.customClass=(E=a.cellClassName)==null?void 0:E.call(a,U),M.dayjs=F,M.timestamp=F.valueOf(),M.isSelected=b(M),P[B]=M}}return R}),g=()=>{var S;(S=u.value)==null||S.focus()},y=S=>{const $={},E=Bt().locale(i.value),R=S.text;return $.disabled=a.disabled||(a.disabledDate?s(R,i.value).every(a.disabledDate):!1),$.today=E.year()===R,$.current=eo(a.parsedValue).findIndex(A=>A.year()===R)>=0,S.customClass&&($[S.customClass]=!0),S.inRange&&($["in-range"]=!0,S.start&&($["start-date"]=!0),S.end&&($["end-date"]=!0)),$},b=S=>{const $=S.text;return eo(a.date).findIndex(E=>E.year()===$)>=0},C=S=>{var $;if(a.disabled)return;const E=($=S.target)==null?void 0:$.closest("td");if(!E||!E.textContent||vo(E,"disabled"))return;const R=E.cellIndex,N=E.parentNode.rowIndex*4+R+d.value,P=Bt().year(N);if(a.selectionMode==="range")a.rangeState.selecting?(a.minDate&&P>=a.minDate?n("pick",{minDate:a.minDate,maxDate:P}):n("pick",{minDate:P,maxDate:a.minDate}),n("select",!1)):(n("pick",{minDate:P,maxDate:null}),n("select",!0));else if(a.selectionMode==="years"){if(S.type==="keydown"){n("pick",eo(a.parsedValue),!1);return}const B=Fh(P.startOf("year"),i.value,a.disabledDate),M=vo(E,"current")?eo(a.parsedValue).filter(j=>(j==null?void 0:j.year())!==N):eo(a.parsedValue).concat([B]);n("pick",M)}else n("pick",N)},k=S=>{var $;if(!a.rangeState.selecting)return;const E=($=S.target)==null?void 0:$.closest("td");if(!E)return;const R=E.parentNode.rowIndex,A=E.cellIndex;m.value[R][A].disabled||(R!==v.value||A!==h.value)&&(v.value=R,h.value=A,n("changerange",{selecting:!0,endDate:Bt().year(d.value).add(R*4+A,"year")}))};return Te(()=>a.date,async()=>{var S,$;(S=c.value)!=null&&S.contains(document.activeElement)&&(await it(),($=u.value)==null||$.focus())}),t({focus:g}),(S,$)=>(_(),w("table",{role:"grid","aria-label":f(r)("el.datepicker.yearTablePrompt"),class:V(f(o).b()),onClick:C,onMousemove:k},[l("tbody",{ref_key:"tbodyRef",ref:c},[(_(!0),w(_e,null,Re(f(m),(E,R)=>(_(),w("tr",{key:R},[(_(!0),w(_e,null,Re(E,(A,N)=>(_(),w("td",{key:`${R}_${N}`,ref_for:!0,ref:P=>A.isSelected&&(u.value=P),class:V(["available",y(A)]),"aria-selected":A.isSelected,"aria-label":String(A.text),tabindex:A.isSelected?0:-1,onKeydown:[yn(qe(C,["prevent","stop"]),["space"]),yn(qe(C,["prevent","stop"]),["enter"])]},[z(f(fb),{cell:A},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var rp=ze(fW,[["__file","basic-year-table.vue"]]);const pW=le({__name:"panel-date-pick",props:tW,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,a=(Ee,We,pe)=>!0,s=Le("picker-panel"),o=Le("date-picker"),r=Fl(),i=Ta(),{t:c,lang:u}=rn(),d=Ze(Cr),p=Ze(Lp,void 0),{shortcuts:v,disabledDate:h,cellClassName:m,defaultTime:g}=d.props,y=gn(d.props,"defaultValue"),b=T(),C=T(Bt().locale(u.value)),k=T(!1);let S=!1;const $=x(()=>Bt(g).locale(u.value)),E=x(()=>C.value.month()),R=x(()=>C.value.year()),A=T([]),N=T(null),P=T(null),B=Ee=>A.value.length>0?a(Ee,A.value,n.format||"HH:mm:ss"):!0,M=Ee=>g&&!ke.value&&!k.value&&!S?$.value.year(Ee.year()).month(Ee.month()).date(Ee.date()):Q.value?Ee.millisecond(0):Ee.startOf("day"),j=(Ee,...We)=>{if(!Ee)t("pick",Ee,...We);else if(Ve(Ee)){const pe=Ee.map(M);t("pick",pe,...We)}else t("pick",M(Ee),...We);N.value=null,P.value=null,k.value=!1,S=!1},F=async(Ee,We)=>{if(ae.value==="date"){Ee=Ee;let pe=n.parsedValue?n.parsedValue.year(Ee.year()).month(Ee.month()).date(Ee.date()):Ee;B(pe),C.value=pe,j(pe,Q.value||We)}else ae.value==="week"?j(Ee.date):ae.value==="dates"&&j(Ee,!0)},q=Ee=>{const We=Ee?"add":"subtract";C.value=C.value[We](1,"month"),Ht("month")},L=Ee=>{const We=C.value,pe=Ee?"add":"subtract";C.value=U.value==="year"?We[pe](10,"year"):We[pe](1,"year"),Ht("year")},U=T("date"),O=x(()=>{const Ee=c("el.datepicker.year");if(U.value==="year"){const We=Math.floor(R.value/10)*10;return Ee?`${We} ${Ee} - ${We+9} ${Ee}`:`${We} - ${We+9}`}return`${R.value} ${Ee}`}),G=Ee=>{const We=vt(Ee.value)?Ee.value():Ee.value;if(We){S=!0,j(Bt(We).locale(u.value));return}Ee.onClick&&Ee.onClick({attrs:r,slots:i,emit:t})},ae=x(()=>{const{type:Ee}=n;return["week","month","months","year","years","dates"].includes(Ee)?Ee:"date"}),Z=x(()=>ae.value==="dates"||ae.value==="months"||ae.value==="years"),te=x(()=>ae.value==="date"?U.value:ae.value),ie=x(()=>!!v.length),oe=async(Ee,We)=>{ae.value==="month"?(C.value=Qu(C.value,C.value.year(),Ee,u.value,h),j(C.value,!1)):ae.value==="months"?j(Ee,We??!0):(C.value=Qu(C.value,C.value.year(),Ee,u.value,h),U.value="date",["month","year","date","week"].includes(ae.value)&&(j(C.value,!0),await it(),je())),Ht("month")},J=async(Ee,We)=>{if(ae.value==="year"){const pe=C.value.startOf("year").year(Ee);C.value=Fh(pe,u.value,h),j(C.value,!1)}else if(ae.value==="years")j(Ee,We??!0);else{const pe=C.value.year(Ee);C.value=Fh(pe,u.value,h),U.value="month",["month","year","date","week"].includes(ae.value)&&(j(C.value,!0),await it(),je())}Ht("year")},ee=async Ee=>{n.disabled||(U.value=Ee,await it(),je())},Q=x(()=>n.type==="datetime"||n.type==="datetimerange"),H=x(()=>{const Ee=Q.value||ae.value==="dates",We=ae.value==="years",pe=ae.value==="months",Oe=U.value==="date",ot=U.value==="year",St=U.value==="month";return Ee&&Oe||We&&ot||pe&&St}),X=x(()=>!Z.value&&n.showNow||n.showConfirm),he=x(()=>h?n.parsedValue?Ve(n.parsedValue)?h(n.parsedValue[0].toDate()):h(n.parsedValue.toDate()):!0:!1),D=()=>{if(Z.value)j(n.parsedValue);else{let Ee=n.parsedValue;if(!Ee){const We=Bt(g).locale(u.value),pe=It();Ee=We.year(pe.year()).month(pe.month()).date(pe.date())}C.value=Ee,j(Ee)}},Y=x(()=>h?h(Bt().locale(u.value).toDate()):!1),ne=()=>{const We=Bt().locale(u.value).toDate();k.value=!0,(!h||!h(We))&&B(We)&&(C.value=Bt().locale(u.value),j(C.value))},re=x(()=>n.timeFormat||t3(n.format)||Xu),se=x(()=>n.dateFormat||e3(n.format)||pi),ke=x(()=>{if(P.value)return P.value;if(!(!n.parsedValue&&!y.value))return(n.parsedValue||C.value).format(re.value)}),ye=x(()=>{if(N.value)return N.value;if(!(!n.parsedValue&&!y.value))return(n.parsedValue||C.value).format(se.value)}),Se=T(!1),ce=()=>{Se.value=!0},we=()=>{Se.value=!1},Ae=Ee=>({hour:Ee.hour(),minute:Ee.minute(),second:Ee.second(),year:Ee.year(),month:Ee.month(),date:Ee.date()}),Fe=(Ee,We,pe)=>{const{hour:Oe,minute:ot,second:St}=Ae(Ee),vn=n.parsedValue?n.parsedValue.hour(Oe).minute(ot).second(St):Ee;C.value=vn,j(C.value,!0),pe||(Se.value=We)},xe=Ee=>{const We=Bt(Ee,re.value).locale(u.value);if(We.isValid()&&B(We)){const{year:pe,month:Oe,date:ot}=Ae(C.value);C.value=We.year(pe).month(Oe).date(ot),P.value=null,Se.value=!1,j(C.value,!0)}},me=Ee=>{const We=Ju(Ee,se.value,u.value,p);if(We.isValid()){if(h&&h(We.toDate()))return;const{hour:pe,minute:Oe,second:ot}=Ae(C.value);C.value=We.hour(pe).minute(Oe).second(ot),N.value=null,j(C.value,!0)}},Me=Ee=>Bt.isDayjs(Ee)&&Ee.isValid()&&(h?!h(Ee.toDate()):!0),at=Ee=>Ve(Ee)?Ee.map(We=>We.format(n.format)):Ee.format(n.format),Qe=Ee=>Ju(Ee,n.format,u.value,p),It=()=>{const Ee=Bt(y.value).locale(u.value);if(!y.value){const We=$.value;return Bt().hour(We.hour()).minute(We.minute()).second(We.second()).locale(u.value)}return Ee},je=()=>{var Ee;["week","month","year","date"].includes(ae.value)&&((Ee=b.value)==null||Ee.focus())},Vt=()=>{je(),ae.value==="week"&&Mt(tt.down)},kt=Ee=>{const{code:We}=Ee;[tt.up,tt.down,tt.left,tt.right,tt.home,tt.end,tt.pageUp,tt.pageDown].includes(We)&&(Mt(We),Ee.stopPropagation(),Ee.preventDefault()),[tt.enter,tt.space,tt.numpadEnter].includes(We)&&N.value===null&&P.value===null&&(Ee.preventDefault(),j(C.value,!1))},Mt=Ee=>{var We;const{up:pe,down:Oe,left:ot,right:St,home:vn,end:_n,pageUp:Ln,pageDown:oo}=tt,_s={year:{[pe]:-4,[Oe]:4,[ot]:-1,[St]:1,offset:(en,st)=>en.setFullYear(en.getFullYear()+st)},month:{[pe]:-4,[Oe]:4,[ot]:-1,[St]:1,offset:(en,st)=>en.setMonth(en.getMonth()+st)},week:{[pe]:-1,[Oe]:1,[ot]:-1,[St]:1,offset:(en,st)=>en.setDate(en.getDate()+st*7)},date:{[pe]:-7,[Oe]:7,[ot]:-1,[St]:1,[vn]:en=>-en.getDay(),[_n]:en=>-en.getDay()+6,[Ln]:en=>-new Date(en.getFullYear(),en.getMonth(),0).getDate(),[oo]:en=>new Date(en.getFullYear(),en.getMonth()+1,0).getDate(),offset:(en,st)=>en.setDate(en.getDate()+st)}},qa=C.value.toDate();for(;Math.abs(C.value.diff(qa,"year",!0))<1;){const en=_s[te.value];if(!en)return;if(en.offset(qa,vt(en[Ee])?en[Ee](qa):(We=en[Ee])!=null?We:0),h&&h(qa))break;const st=Bt(qa).locale(u.value);C.value=st,t("pick",st,!0);break}},Ht=Ee=>{t("panel-change",C.value.toDate(),Ee,U.value)};return Te(()=>ae.value,Ee=>{if(["month","year"].includes(Ee)){U.value=Ee;return}else if(Ee==="years"){U.value="year";return}else if(Ee==="months"){U.value="month";return}U.value="date"},{immediate:!0}),Te(()=>y.value,Ee=>{Ee&&(C.value=It())},{immediate:!0}),Te(()=>n.parsedValue,Ee=>{if(Ee){if(Z.value||Ve(Ee))return;C.value=Ee}else C.value=It()},{immediate:!0}),t("set-picker-option",["isValidValue",Me]),t("set-picker-option",["formatToString",at]),t("set-picker-option",["parseUserInput",Qe]),t("set-picker-option",["handleFocusPicker",Vt]),(Ee,We)=>(_(),w("div",{class:V([f(s).b(),f(o).b(),f(s).is("border",Ee.border),f(s).is("disabled",Ee.disabled),{"has-sidebar":Ee.$slots.sidebar||f(ie),"has-time":f(Q)}])},[l("div",{class:V(f(s).e("body-wrapper"))},[be(Ee.$slots,"sidebar",{class:V(f(s).e("sidebar"))}),f(ie)?(_(),w("div",{key:0,class:V(f(s).e("sidebar"))},[(_(!0),w(_e,null,Re(f(v),(pe,Oe)=>(_(),w("button",{key:Oe,type:"button",disabled:Ee.disabled,class:V(f(s).e("shortcut")),onClick:ot=>G(pe)},I(pe.text),11,["disabled","onClick"]))),128))],2)):K("v-if",!0),l("div",{class:V(f(s).e("body"))},[f(Q)?(_(),w("div",{key:0,class:V(f(o).e("time-header"))},[l("span",{class:V(f(o).e("editor-wrap"))},[z(f(Bs),{placeholder:f(c)("el.datepicker.selectDate"),"model-value":f(ye),size:"small","validate-event":!1,disabled:Ee.disabled,onInput:pe=>N.value=pe,onChange:me},null,8,["placeholder","model-value","disabled","onInput"])],2),et((_(),w("span",{class:V(f(o).e("editor-wrap"))},[z(f(Bs),{placeholder:f(c)("el.datepicker.selectTime"),"model-value":f(ke),size:"small","validate-event":!1,disabled:Ee.disabled,onFocus:ce,onInput:pe=>P.value=pe,onChange:xe},null,8,["placeholder","model-value","disabled","onInput"]),z(f(Dh),{visible:Se.value,format:f(re),"parsed-value":C.value,onPick:Fe},null,8,["visible","format","parsed-value"])],2)),[[f(Dl),we]])],2)):K("v-if",!0),et(l("div",{class:V([f(o).e("header"),(U.value==="year"||U.value==="month")&&f(o).e("header--bordered")])},[l("span",{class:V(f(o).e("prev-btn"))},[l("button",{type:"button","aria-label":f(c)("el.datepicker.prevYear"),class:V(["d-arrow-left",f(s).e("icon-btn")]),disabled:Ee.disabled,onClick:pe=>L(!1)},[be(Ee.$slots,"prev-year",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Di))]),_:1})])],10,["aria-label","disabled","onClick"]),et(l("button",{type:"button","aria-label":f(c)("el.datepicker.prevMonth"),class:V([f(s).e("icon-btn"),"arrow-left"]),disabled:Ee.disabled,onClick:pe=>q(!1)},[be(Ee.$slots,"prev-month",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Bl))]),_:1})])],10,["aria-label","disabled","onClick"]),[[fn,U.value==="date"]])],2),l("span",{role:"button",class:V(f(o).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:yn(pe=>ee("year"),["enter"]),onClick:pe=>ee("year")},I(f(O)),43,["onKeydown","onClick"]),et(l("span",{role:"button","aria-live":"polite",tabindex:"0",class:V([f(o).e("header-label"),{active:U.value==="month"}]),onKeydown:yn(pe=>ee("month"),["enter"]),onClick:pe=>ee("month")},I(f(c)(`el.datepicker.month${f(E)+1}`)),43,["onKeydown","onClick"]),[[fn,U.value==="date"]]),l("span",{class:V(f(o).e("next-btn"))},[et(l("button",{type:"button","aria-label":f(c)("el.datepicker.nextMonth"),class:V([f(s).e("icon-btn"),"arrow-right"]),disabled:Ee.disabled,onClick:pe=>q(!0)},[be(Ee.$slots,"next-month",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Ds))]),_:1})])],10,["aria-label","disabled","onClick"]),[[fn,U.value==="date"]]),l("button",{type:"button","aria-label":f(c)("el.datepicker.nextYear"),class:V([f(s).e("icon-btn"),"d-arrow-right"]),disabled:Ee.disabled,onClick:pe=>L(!0)},[be(Ee.$slots,"next-year",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Vi))]),_:1})])],10,["aria-label","disabled","onClick"])],2)],2),[[fn,U.value!=="time"]]),l("div",{class:V(f(s).e("content")),onKeydown:kt},[U.value==="date"?(_(),ue(x_,{key:0,ref_key:"currentViewRef",ref:b,"selection-mode":f(ae),date:C.value,"parsed-value":Ee.parsedValue,"disabled-date":f(h),disabled:Ee.disabled,"cell-class-name":f(m),"show-week-number":Ee.showWeekNumber,onPick:F},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name","show-week-number"])):K("v-if",!0),U.value==="year"?(_(),ue(rp,{key:1,ref_key:"currentViewRef",ref:b,"selection-mode":f(ae),date:C.value,"disabled-date":f(h),disabled:Ee.disabled,"parsed-value":Ee.parsedValue,"cell-class-name":f(m),onPick:J},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):K("v-if",!0),U.value==="month"?(_(),ue(op,{key:2,ref_key:"currentViewRef",ref:b,"selection-mode":f(ae),date:C.value,"parsed-value":Ee.parsedValue,"disabled-date":f(h),disabled:Ee.disabled,"cell-class-name":f(m),onPick:oe},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):K("v-if",!0)],34)],2)],2),Ee.showFooter&&f(H)&&f(X)?(_(),w("div",{key:0,class:V(f(s).e("footer"))},[et(z(f(ns),{text:"",size:"small",class:V(f(s).e("link-btn")),disabled:f(Y),onClick:ne},{default:W(()=>[Ce(I(f(c)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[fn,!f(Z)&&Ee.showNow]]),Ee.showConfirm?(_(),ue(f(ns),{key:0,plain:"",size:"small",class:V(f(s).e("link-btn")),disabled:f(he),onClick:D},{default:W(()=>[Ce(I(f(c)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):K("v-if",!0)],2)):K("v-if",!0)],2))}});var vW=ze(pW,[["__file","panel-date-pick.vue"]]);const hW=Ue({...Y3,...ub}),mW=e=>{const{emit:t}=qt(),n=Fl(),a=Ta();return o=>{const r=vt(o.value)?o.value():o.value;if(r){t("pick",[Bt(r[0]).locale(e.value),Bt(r[1]).locale(e.value)]);return}o.onClick&&o.onClick({attrs:n,slots:a,emit:t})}},pb=(e,{defaultValue:t,defaultTime:n,leftDate:a,rightDate:s,step:o,unit:r,onParsedValueChanged:i})=>{const{emit:c}=qt(),{pickerNs:u}=Ze(ib),d=Le("date-range-picker"),{t:p,lang:v}=rn(),h=mW(v),m=T(),g=T(),y=T({endDate:null,selecting:!1}),b=E=>{y.value=E},C=(E=!1)=>{const R=f(m),A=f(g);sp([R,A])&&c("pick",[R,A],E)},k=E=>{y.value.selecting=E,E||(y.value.endDate=null)},S=E=>{if(Ve(E)&&E.length===2){const[R,A]=E;m.value=R,a.value=R,g.value=A,i(f(m),f(g))}else $()},$=()=>{let[E,R]=Jm(f(t),{lang:f(v),step:o,unit:r,unlinkPanels:e.unlinkPanels});const A=P=>P.diff(P.startOf("d"),"ms"),N=f(n);if(N){let P=0,B=0;if(Ve(N)){const[M,j]=N.map(Bt);P=A(M),B=A(j)}else{const M=A(Bt(N));P=M,B=M}E=E.startOf("d").add(P,"ms"),R=R.startOf("d").add(B,"ms")}m.value=void 0,g.value=void 0,a.value=E,s.value=R};return Te(t,E=>{E&&$()},{immediate:!0}),Te(()=>e.parsedValue,E=>{E!=null&&E.length||S(E)},{immediate:!0}),Te(()=>e.visible,()=>{e.visible&&S(e.parsedValue)},{immediate:!0}),{minDate:m,maxDate:g,rangeState:y,lang:v,ppNs:u,drpNs:d,handleChangeRange:b,handleRangeConfirm:C,handleShortcutClick:h,onSelect:k,onReset:S,t:p}},gW=(e,t,n,a)=>{const s=T("date"),o=T(),r=T("date"),i=T(),c=Ze(Cr),{disabledDate:u}=c.props,{t:d,lang:p}=rn(),v=x(()=>n.value.year()),h=x(()=>n.value.month()),m=x(()=>a.value.year()),g=x(()=>a.value.month());function y(E,R){const A=d("el.datepicker.year");if(E.value==="year"){const N=Math.floor(R.value/10)*10;return A?`${N} ${A} - ${N+9} ${A}`:`${N} - ${N+9}`}return`${R.value} ${A}`}function b(E){E==null||E.focus()}async function C(E,R){if(e.disabled)return;const A=E==="left"?s:r,N=E==="left"?o:i;A.value=R,await it(),b(N.value)}async function k(E,R,A){if(e.disabled)return;const N=R==="left",P=N?n:a,B=N?a:n,M=N?s:r,j=N?o:i;if(E==="year"){const F=P.value.year(A);P.value=Fh(F,p.value,u)}E==="month"&&(P.value=Qu(P.value,P.value.year(),A,p.value,u)),e.unlinkPanels||(B.value=R==="left"?P.value.add(1,"month"):P.value.subtract(1,"month")),M.value=E==="year"?"month":"date",await it(),b(j.value),S(E)}function S(E){t("panel-change",[n.value.toDate(),a.value.toDate()],E)}function $(E,R,A){const N=A?"add":"subtract";return E==="year"?R[N](10,"year"):R[N](1,"year")}return{leftCurrentView:s,rightCurrentView:r,leftCurrentViewRef:o,rightCurrentViewRef:i,leftYear:v,rightYear:m,leftMonth:h,rightMonth:g,leftYearLabel:x(()=>y(s,v)),rightYearLabel:x(()=>y(r,m)),showLeftPicker:E=>C("left",E),showRightPicker:E=>C("right",E),handleLeftYearPick:E=>k("year","left",E),handleRightYearPick:E=>k("year","right",E),handleLeftMonthPick:E=>k("month","left",E),handleRightMonthPick:E=>k("month","right",E),handlePanelChange:S,adjustDateByView:$}},$v="month",_W=le({__name:"panel-date-range",props:hW,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,a=Ze(Cr),s=Ze(Lp,void 0),{disabledDate:o,cellClassName:r,defaultTime:i,clearable:c}=a.props,u=gn(a.props,"format"),d=gn(a.props,"shortcuts"),p=gn(a.props,"defaultValue"),{lang:v}=rn(),h=T(Bt().locale(v.value)),m=T(Bt().locale(v.value).add(1,$v));let g=!0;const{minDate:y,maxDate:b,rangeState:C,ppNs:k,drpNs:S,handleChangeRange:$,handleRangeConfirm:E,handleShortcutClick:R,onSelect:A,onReset:N,t:P}=pb(n,{defaultValue:p,defaultTime:i,leftDate:h,rightDate:m,unit:$v,onParsedValueChanged:en});Te(()=>n.visible,st=>{!st&&C.value.selecting&&(N(n.parsedValue),A(!1))});const B=T({min:null,max:null}),M=T({min:null,max:null}),{leftCurrentView:j,rightCurrentView:F,leftCurrentViewRef:q,rightCurrentViewRef:L,leftYear:U,rightYear:O,leftMonth:G,rightMonth:ae,leftYearLabel:Z,rightYearLabel:te,showLeftPicker:ie,showRightPicker:oe,handleLeftYearPick:J,handleRightYearPick:ee,handleLeftMonthPick:Q,handleRightMonthPick:H,handlePanelChange:X,adjustDateByView:he}=gW(n,t,h,m),D=x(()=>!!d.value.length),Y=x(()=>B.value.min!==null?B.value.min:y.value?y.value.format(ye.value):""),ne=x(()=>B.value.max!==null?B.value.max:b.value||y.value?(b.value||y.value).format(ye.value):""),re=x(()=>M.value.min!==null?M.value.min:y.value?y.value.format(ke.value):""),se=x(()=>M.value.max!==null?M.value.max:b.value||y.value?(b.value||y.value).format(ke.value):""),ke=x(()=>n.timeFormat||t3(u.value||"")||Xu),ye=x(()=>n.dateFormat||e3(u.value||"")||pi),Se=st=>sp(st)&&(o?!o(st[0].toDate())&&!o(st[1].toDate()):!0),ce=()=>{h.value=he(j.value,h.value,!1),n.unlinkPanels||(m.value=h.value.add(1,"month")),X("year")},we=()=>{h.value=h.value.subtract(1,"month"),n.unlinkPanels||(m.value=h.value.add(1,"month")),X("month")},Ae=()=>{n.unlinkPanels?m.value=he(F.value,m.value,!0):(h.value=he(F.value,h.value,!0),m.value=h.value.add(1,"month")),X("year")},Fe=()=>{n.unlinkPanels?m.value=m.value.add(1,"month"):(h.value=h.value.add(1,"month"),m.value=h.value.add(1,"month")),X("month")},xe=()=>{h.value=he(j.value,h.value,!0),X("year")},me=()=>{h.value=h.value.add(1,"month"),X("month")},Me=()=>{m.value=he(F.value,m.value,!1),X("year")},at=()=>{m.value=m.value.subtract(1,"month"),X("month")},Qe=x(()=>{const st=(G.value+1)%12,nn=G.value+1>=12?1:0;return n.unlinkPanels&&new Date(U.value+nn,st)n.unlinkPanels&&O.value*12+ae.value-(U.value*12+G.value+1)>=12),je=x(()=>!(y.value&&b.value&&!C.value.selecting&&sp([y.value,b.value]))),Vt=x(()=>n.type==="datetime"||n.type==="datetimerange"),kt=(st,nn)=>{if(st)return i?Bt(i[nn]||i).locale(v.value).year(st.year()).month(st.month()).date(st.date()):st},Mt=(st,nn=!0)=>{const Ut=st.minDate,Ja=st.maxDate,Hs=kt(Ut,0),Ks=kt(Ja,1);b.value===Ks&&y.value===Hs||(t("calendar-change",[Ut.toDate(),Ja&&Ja.toDate()]),b.value=Ks,y.value=Hs,!Vt.value&&nn&&(nn=!Hs||!Ks),g=nn)};Te([b,y],([st,nn])=>{st&&nn&&(E(g),g=!0)});const Ht=T(!1),Ee=T(!1),We=()=>{Ht.value=!1},pe=()=>{Ee.value=!1},Oe=(st,nn)=>{B.value[nn]=st;const Ut=Bt(st,ye.value).locale(v.value);if(Ut.isValid()){if(o&&o(Ut.toDate()))return;nn==="min"?(h.value=Ut,y.value=(y.value||h.value).year(Ut.year()).month(Ut.month()).date(Ut.date()),!n.unlinkPanels&&(!b.value||b.value.isBefore(y.value))&&(m.value=Ut.add(1,"month"),b.value=y.value.add(1,"month"))):(m.value=Ut,b.value=(b.value||m.value).year(Ut.year()).month(Ut.month()).date(Ut.date()),!n.unlinkPanels&&(!y.value||y.value.isAfter(b.value))&&(h.value=Ut.subtract(1,"month"),y.value=b.value.subtract(1,"month")))}},ot=(st,nn)=>{B.value[nn]=null},St=(st,nn)=>{M.value[nn]=st;const Ut=Bt(st,ke.value).locale(v.value);Ut.isValid()&&(nn==="min"?(Ht.value=!0,y.value=(y.value||h.value).hour(Ut.hour()).minute(Ut.minute()).second(Ut.second())):(Ee.value=!0,b.value=(b.value||m.value).hour(Ut.hour()).minute(Ut.minute()).second(Ut.second()),m.value=b.value))},vn=(st,nn)=>{M.value[nn]=null,nn==="min"?(h.value=y.value,Ht.value=!1,(!b.value||b.value.isBefore(y.value))&&(b.value=y.value)):(m.value=b.value,Ee.value=!1,b.value&&b.value.isBefore(y.value)&&(y.value=b.value))},_n=(st,nn,Ut)=>{M.value.min||(st&&(h.value=st,y.value=(y.value||h.value).hour(st.hour()).minute(st.minute()).second(st.second())),Ut||(Ht.value=nn),(!b.value||b.value.isBefore(y.value))&&(b.value=y.value,m.value=st,it(()=>{N(n.parsedValue)})))},Ln=(st,nn,Ut)=>{M.value.max||(st&&(m.value=st,b.value=(b.value||m.value).hour(st.hour()).minute(st.minute()).second(st.second())),Ut||(Ee.value=nn),b.value&&b.value.isBefore(y.value)&&(y.value=b.value))},oo=()=>{h.value=Jm(f(p),{lang:f(v),unit:"month",unlinkPanels:n.unlinkPanels})[0],m.value=h.value.add(1,"month"),b.value=void 0,y.value=void 0,t("pick",null)},_s=st=>Ve(st)?st.map(nn=>nn.format(u.value)):st.format(u.value),qa=st=>Ju(st,u.value||"",v.value,s);function en(st,nn){if(n.unlinkPanels&&nn){const Ut=(st==null?void 0:st.year())||0,Ja=(st==null?void 0:st.month())||0,Hs=nn.year(),Ks=nn.month();m.value=Ut===Hs&&Ja===Ks?nn.add(1,$v):nn}else m.value=h.value.add(1,$v),nn&&(m.value=m.value.hour(nn.hour()).minute(nn.minute()).second(nn.second()))}return t("set-picker-option",["isValidValue",Se]),t("set-picker-option",["parseUserInput",qa]),t("set-picker-option",["formatToString",_s]),t("set-picker-option",["handleClear",oo]),(st,nn)=>(_(),w("div",{class:V([f(k).b(),f(S).b(),f(k).is("border",st.border),f(k).is("disabled",st.disabled),{"has-sidebar":st.$slots.sidebar||f(D),"has-time":f(Vt)}])},[l("div",{class:V(f(k).e("body-wrapper"))},[be(st.$slots,"sidebar",{class:V(f(k).e("sidebar"))}),f(D)?(_(),w("div",{key:0,class:V(f(k).e("sidebar"))},[(_(!0),w(_e,null,Re(f(d),(Ut,Ja)=>(_(),w("button",{key:Ja,type:"button",disabled:st.disabled,class:V(f(k).e("shortcut")),onClick:Hs=>f(R)(Ut)},I(Ut.text),11,["disabled","onClick"]))),128))],2)):K("v-if",!0),l("div",{class:V(f(k).e("body"))},[f(Vt)?(_(),w("div",{key:0,class:V(f(S).e("time-header"))},[l("span",{class:V(f(S).e("editors-wrap"))},[l("span",{class:V(f(S).e("time-picker-wrap"))},[z(f(Bs),{size:"small",disabled:f(C).selecting||st.disabled,placeholder:f(P)("el.datepicker.startDate"),class:V(f(S).e("editor")),"model-value":f(Y),"validate-event":!1,onInput:Ut=>Oe(Ut,"min"),onChange:Ut=>ot(Ut,"min")},null,8,["disabled","placeholder","class","model-value","onInput","onChange"])],2),et((_(),w("span",{class:V(f(S).e("time-picker-wrap"))},[z(f(Bs),{size:"small",class:V(f(S).e("editor")),disabled:f(C).selecting||st.disabled,placeholder:f(P)("el.datepicker.startTime"),"model-value":f(re),"validate-event":!1,onFocus:Ut=>Ht.value=!0,onInput:Ut=>St(Ut,"min"),onChange:Ut=>vn(Ut,"min")},null,8,["class","disabled","placeholder","model-value","onFocus","onInput","onChange"]),z(f(Dh),{visible:Ht.value,format:f(ke),"datetime-role":"start","parsed-value":h.value,onPick:_n},null,8,["visible","format","parsed-value"])],2)),[[f(Dl),We]])],2),l("span",null,[z(f(ct),null,{default:W(()=>[z(f(Ds))]),_:1})]),l("span",{class:V([f(S).e("editors-wrap"),"is-right"])},[l("span",{class:V(f(S).e("time-picker-wrap"))},[z(f(Bs),{size:"small",class:V(f(S).e("editor")),disabled:f(C).selecting||st.disabled,placeholder:f(P)("el.datepicker.endDate"),"model-value":f(ne),readonly:!f(y),"validate-event":!1,onInput:Ut=>Oe(Ut,"max"),onChange:Ut=>ot(Ut,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onInput","onChange"])],2),et((_(),w("span",{class:V(f(S).e("time-picker-wrap"))},[z(f(Bs),{size:"small",class:V(f(S).e("editor")),disabled:f(C).selecting||st.disabled,placeholder:f(P)("el.datepicker.endTime"),"model-value":f(se),readonly:!f(y),"validate-event":!1,onFocus:Ut=>f(y)&&(Ee.value=!0),onInput:Ut=>St(Ut,"max"),onChange:Ut=>vn(Ut,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onFocus","onInput","onChange"]),z(f(Dh),{"datetime-role":"end",visible:Ee.value,format:f(ke),"parsed-value":m.value,onPick:Ln},null,8,["visible","format","parsed-value"])],2)),[[f(Dl),pe]])],2)],2)):K("v-if",!0),l("div",{class:V([[f(k).e("content"),f(S).e("content")],"is-left"])},[l("div",{class:V(f(S).e("header"))},[l("button",{type:"button",class:V([f(k).e("icon-btn"),"d-arrow-left"]),"aria-label":f(P)("el.datepicker.prevYear"),disabled:st.disabled,onClick:ce},[be(st.$slots,"prev-year",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Di))]),_:1})])],10,["aria-label","disabled"]),et(l("button",{type:"button",class:V([f(k).e("icon-btn"),"arrow-left"]),"aria-label":f(P)("el.datepicker.prevMonth"),disabled:st.disabled,onClick:we},[be(st.$slots,"prev-month",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Bl))]),_:1})])],10,["aria-label","disabled"]),[[fn,f(j)==="date"]]),st.unlinkPanels?(_(),w("button",{key:0,type:"button",disabled:!f(It)||st.disabled,class:V([[f(k).e("icon-btn"),f(k).is("disabled",!f(It)||st.disabled)],"d-arrow-right"]),"aria-label":f(P)("el.datepicker.nextYear"),onClick:xe},[be(st.$slots,"next-year",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Vi))]),_:1})])],10,["disabled","aria-label"])):K("v-if",!0),st.unlinkPanels&&f(j)==="date"?(_(),w("button",{key:1,type:"button",disabled:!f(Qe)||st.disabled,class:V([[f(k).e("icon-btn"),f(k).is("disabled",!f(Qe)||st.disabled)],"arrow-right"]),"aria-label":f(P)("el.datepicker.nextMonth"),onClick:me},[be(st.$slots,"next-month",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Ds))]),_:1})])],10,["disabled","aria-label"])):K("v-if",!0),l("div",null,[l("span",{role:"button",class:V(f(S).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:yn(Ut=>f(ie)("year"),["enter"]),onClick:Ut=>f(ie)("year")},I(f(Z)),43,["onKeydown","onClick"]),et(l("span",{role:"button","aria-live":"polite",tabindex:"0",class:V([f(S).e("header-label"),{active:f(j)==="month"}]),onKeydown:yn(Ut=>f(ie)("month"),["enter"]),onClick:Ut=>f(ie)("month")},I(f(P)(`el.datepicker.month${h.value.month()+1}`)),43,["onKeydown","onClick"]),[[fn,f(j)==="date"]])])],2),f(j)==="date"?(_(),ue(x_,{key:0,ref_key:"leftCurrentViewRef",ref:q,"selection-mode":"range",date:h.value,"min-date":f(y),"max-date":f(b),"range-state":f(C),"disabled-date":f(o),"cell-class-name":f(r),"show-week-number":st.showWeekNumber,disabled:st.disabled,onChangerange:f($),onPick:Mt,onSelect:f(A)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):K("v-if",!0),f(j)==="year"?(_(),ue(rp,{key:1,ref_key:"leftCurrentViewRef",ref:q,"selection-mode":"year",date:h.value,"disabled-date":f(o),"parsed-value":st.parsedValue,disabled:st.disabled,onPick:f(J)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):K("v-if",!0),f(j)==="month"?(_(),ue(op,{key:2,ref_key:"leftCurrentViewRef",ref:q,"selection-mode":"month",date:h.value,"parsed-value":st.parsedValue,"disabled-date":f(o),disabled:st.disabled,onPick:f(Q)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):K("v-if",!0)],2),l("div",{class:V([[f(k).e("content"),f(S).e("content")],"is-right"])},[l("div",{class:V([f(S).e("header"),f(k).is("disabled",!f(It)||st.disabled)])},[st.unlinkPanels?(_(),w("button",{key:0,type:"button",disabled:!f(It)||st.disabled,class:V([f(k).e("icon-btn"),"d-arrow-left"]),"aria-label":f(P)("el.datepicker.prevYear"),onClick:Me},[be(st.$slots,"prev-year",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Di))]),_:1})])],10,["disabled","aria-label"])):K("v-if",!0),st.unlinkPanels&&f(F)==="date"?(_(),w("button",{key:1,type:"button",disabled:!f(Qe)||st.disabled,class:V([f(k).e("icon-btn"),"arrow-left"]),"aria-label":f(P)("el.datepicker.prevMonth"),onClick:at},[be(st.$slots,"prev-month",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Bl))]),_:1})])],10,["disabled","aria-label"])):K("v-if",!0),l("button",{type:"button","aria-label":f(P)("el.datepicker.nextYear"),class:V([f(k).e("icon-btn"),"d-arrow-right"]),disabled:st.disabled,onClick:Ae},[be(st.$slots,"next-year",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Vi))]),_:1})])],10,["aria-label","disabled"]),et(l("button",{type:"button",class:V([f(k).e("icon-btn"),"arrow-right"]),disabled:st.disabled,"aria-label":f(P)("el.datepicker.nextMonth"),onClick:Fe},[be(st.$slots,"next-month",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Ds))]),_:1})])],10,["disabled","aria-label"]),[[fn,f(F)==="date"]]),l("div",null,[l("span",{role:"button",class:V(f(S).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:yn(Ut=>f(oe)("year"),["enter"]),onClick:Ut=>f(oe)("year")},I(f(te)),43,["onKeydown","onClick"]),et(l("span",{role:"button","aria-live":"polite",tabindex:"0",class:V([f(S).e("header-label"),{active:f(F)==="month"}]),onKeydown:yn(Ut=>f(oe)("month"),["enter"]),onClick:Ut=>f(oe)("month")},I(f(P)(`el.datepicker.month${m.value.month()+1}`)),43,["onKeydown","onClick"]),[[fn,f(F)==="date"]])])],2),f(F)==="date"?(_(),ue(x_,{key:0,ref_key:"rightCurrentViewRef",ref:L,"selection-mode":"range",date:m.value,"min-date":f(y),"max-date":f(b),"range-state":f(C),"disabled-date":f(o),"cell-class-name":f(r),"show-week-number":st.showWeekNumber,disabled:st.disabled,onChangerange:f($),onPick:Mt,onSelect:f(A)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):K("v-if",!0),f(F)==="year"?(_(),ue(rp,{key:1,ref_key:"rightCurrentViewRef",ref:L,"selection-mode":"year",date:m.value,"disabled-date":f(o),"parsed-value":st.parsedValue,disabled:st.disabled,onPick:f(ee)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):K("v-if",!0),f(F)==="month"?(_(),ue(op,{key:2,ref_key:"rightCurrentViewRef",ref:L,"selection-mode":"month",date:m.value,"parsed-value":st.parsedValue,"disabled-date":f(o),disabled:st.disabled,onPick:f(H)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):K("v-if",!0)],2)],2)],2),st.showFooter&&f(Vt)&&(st.showConfirm||f(c))?(_(),w("div",{key:0,class:V(f(k).e("footer"))},[f(c)?(_(),ue(f(ns),{key:0,text:"",size:"small",class:V(f(k).e("link-btn")),onClick:oo},{default:W(()=>[Ce(I(f(P)("el.datepicker.clear")),1)]),_:1},8,["class"])):K("v-if",!0),st.showConfirm?(_(),ue(f(ns),{key:1,plain:"",size:"small",class:V(f(k).e("link-btn")),disabled:f(je),onClick:Ut=>f(E)(!1)},{default:W(()=>[Ce(I(f(P)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled","onClick"])):K("v-if",!0)],2)):K("v-if",!0)],2))}});var yW=ze(_W,[["__file","panel-date-range.vue"]]);const bW=Ue({...ub}),wW=["pick","set-picker-option","calendar-change"],CW=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:a}=rn(),s=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},o=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},r=()=>{t.value=t.value.add(1,"year")},i=()=>{n.value=n.value.subtract(1,"year")},c=x(()=>`${t.value.year()} ${a("el.datepicker.year")}`),u=x(()=>`${n.value.year()} ${a("el.datepicker.year")}`),d=x(()=>t.value.year()),p=x(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:s,rightNextYear:o,leftNextYear:r,rightPrevYear:i,leftLabel:c,rightLabel:u,leftYear:d,rightYear:p}},xv="year",kW=le({name:"DatePickerMonthRange"}),SW=le({...kW,props:bW,emits:wW,setup(e,{emit:t}){const n=e,{lang:a}=rn(),s=Ze(Cr),o=Ze(Lp,void 0),{shortcuts:r,disabledDate:i,cellClassName:c}=s.props,u=gn(s.props,"format"),d=gn(s.props,"defaultValue"),p=T(Bt().locale(a.value)),v=T(Bt().locale(a.value).add(1,xv)),{minDate:h,maxDate:m,rangeState:g,ppNs:y,drpNs:b,handleChangeRange:C,handleRangeConfirm:k,handleShortcutClick:S,onSelect:$,onReset:E}=pb(n,{defaultValue:d,leftDate:p,rightDate:v,unit:xv,onParsedValueChanged:Z}),R=x(()=>!!r.length),{leftPrevYear:A,rightNextYear:N,leftNextYear:P,rightPrevYear:B,leftLabel:M,rightLabel:j,leftYear:F,rightYear:q}=CW({unlinkPanels:gn(n,"unlinkPanels"),leftDate:p,rightDate:v}),L=x(()=>n.unlinkPanels&&q.value>F.value+1),U=(te,ie=!0)=>{const oe=te.minDate,J=te.maxDate;m.value===J&&h.value===oe||(t("calendar-change",[oe.toDate(),J&&J.toDate()]),m.value=J,h.value=oe,ie&&k())},O=()=>{p.value=Jm(f(d),{lang:f(a),unit:"year",unlinkPanels:n.unlinkPanels})[0],v.value=p.value.add(1,"year"),t("pick",null)},G=te=>Ve(te)?te.map(ie=>ie.format(u.value)):te.format(u.value),ae=te=>Ju(te,u.value,a.value,o);function Z(te,ie){if(n.unlinkPanels&&ie){const oe=(te==null?void 0:te.year())||0,J=ie.year();v.value=oe===J?ie.add(1,xv):ie}else v.value=p.value.add(1,xv)}return Te(()=>n.visible,te=>{!te&&g.value.selecting&&(E(n.parsedValue),$(!1))}),t("set-picker-option",["isValidValue",sp]),t("set-picker-option",["formatToString",G]),t("set-picker-option",["parseUserInput",ae]),t("set-picker-option",["handleClear",O]),(te,ie)=>(_(),w("div",{class:V([f(y).b(),f(b).b(),f(y).is("border",te.border),f(y).is("disabled",te.disabled),{"has-sidebar":!!te.$slots.sidebar||f(R)}])},[l("div",{class:V(f(y).e("body-wrapper"))},[be(te.$slots,"sidebar",{class:V(f(y).e("sidebar"))}),f(R)?(_(),w("div",{key:0,class:V(f(y).e("sidebar"))},[(_(!0),w(_e,null,Re(f(r),(oe,J)=>(_(),w("button",{key:J,type:"button",class:V(f(y).e("shortcut")),disabled:te.disabled,onClick:ee=>f(S)(oe)},I(oe.text),11,["disabled","onClick"]))),128))],2)):K("v-if",!0),l("div",{class:V(f(y).e("body"))},[l("div",{class:V([[f(y).e("content"),f(b).e("content")],"is-left"])},[l("div",{class:V(f(b).e("header"))},[l("button",{type:"button",class:V([f(y).e("icon-btn"),"d-arrow-left"]),disabled:te.disabled,onClick:f(A)},[be(te.$slots,"prev-year",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Di))]),_:1})])],10,["disabled","onClick"]),te.unlinkPanels?(_(),w("button",{key:0,type:"button",disabled:!f(L)||te.disabled,class:V([[f(y).e("icon-btn"),{[f(y).is("disabled")]:!f(L)}],"d-arrow-right"]),onClick:f(P)},[be(te.$slots,"next-year",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Vi))]),_:1})])],10,["disabled","onClick"])):K("v-if",!0),l("div",null,I(f(M)),1)],2),z(op,{"selection-mode":"range",date:p.value,"min-date":f(h),"max-date":f(m),"range-state":f(g),"disabled-date":f(i),disabled:te.disabled,"cell-class-name":f(c),onChangerange:f(C),onPick:U,onSelect:f($)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),l("div",{class:V([[f(y).e("content"),f(b).e("content")],"is-right"])},[l("div",{class:V(f(b).e("header"))},[te.unlinkPanels?(_(),w("button",{key:0,type:"button",disabled:!f(L)||te.disabled,class:V([[f(y).e("icon-btn"),{"is-disabled":!f(L)}],"d-arrow-left"]),onClick:f(B)},[be(te.$slots,"prev-year",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Di))]),_:1})])],10,["disabled","onClick"])):K("v-if",!0),l("button",{type:"button",class:V([f(y).e("icon-btn"),"d-arrow-right"]),disabled:te.disabled,onClick:f(N)},[be(te.$slots,"next-year",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Vi))]),_:1})])],10,["disabled","onClick"]),l("div",null,I(f(j)),1)],2),z(op,{"selection-mode":"range",date:v.value,"min-date":f(h),"max-date":f(m),"range-state":f(g),"disabled-date":f(i),disabled:te.disabled,"cell-class-name":f(c),onChangerange:f(C),onPick:U,onSelect:f($)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});var EW=ze(SW,[["__file","panel-month-range.vue"]]);const $W=Ue({...ub}),xW=["pick","set-picker-option","calendar-change"],TW=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const a=()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},s=()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},o=()=>{t.value=t.value.add(10,"year")},r=()=>{n.value=n.value.subtract(10,"year")},i=x(()=>{const p=Math.floor(t.value.year()/10)*10;return`${p}-${p+9}`}),c=x(()=>{const p=Math.floor(n.value.year()/10)*10;return`${p}-${p+9}`}),u=x(()=>Math.floor(t.value.year()/10)*10+9),d=x(()=>Math.floor(n.value.year()/10)*10);return{leftPrevYear:a,rightNextYear:s,leftNextYear:o,rightPrevYear:r,leftLabel:i,rightLabel:c,leftYear:u,rightYear:d}},lu=10,Gd="year",IW=le({name:"DatePickerYearRange"}),AW=le({...IW,props:$W,emits:xW,setup(e,{emit:t}){const n=e,{lang:a}=rn(),s=T(Bt().locale(a.value)),o=T(Bt().locale(a.value).add(lu,Gd)),r=Ze(Lp,void 0),i=Ze(Cr),{shortcuts:c,disabledDate:u,cellClassName:d}=i.props,p=gn(i.props,"format"),v=gn(i.props,"defaultValue"),{minDate:h,maxDate:m,rangeState:g,ppNs:y,drpNs:b,handleChangeRange:C,handleRangeConfirm:k,handleShortcutClick:S,onSelect:$,onReset:E}=pb(n,{defaultValue:v,leftDate:s,rightDate:o,step:lu,unit:Gd,onParsedValueChanged:J}),{leftPrevYear:R,rightNextYear:A,leftNextYear:N,rightPrevYear:P,leftLabel:B,rightLabel:M,leftYear:j,rightYear:F}=TW({unlinkPanels:gn(n,"unlinkPanels"),leftDate:s,rightDate:o}),q=x(()=>!!c.length),L=x(()=>[y.b(),b.b(),y.is("border",n.border),y.is("disabled",n.disabled),{"has-sidebar":!!Ta().sidebar||q.value}]),U=x(()=>({content:[y.e("content"),b.e("content"),"is-left"],arrowLeftBtn:[y.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[y.e("icon-btn"),{[y.is("disabled")]:!G.value},"d-arrow-right"]})),O=x(()=>({content:[y.e("content"),b.e("content"),"is-right"],arrowLeftBtn:[y.e("icon-btn"),{"is-disabled":!G.value},"d-arrow-left"],arrowRightBtn:[y.e("icon-btn"),"d-arrow-right"]})),G=x(()=>n.unlinkPanels&&F.value>j.value+1),ae=(ee,Q=!0)=>{const H=ee.minDate,X=ee.maxDate;m.value===X&&h.value===H||(t("calendar-change",[H.toDate(),X&&X.toDate()]),m.value=X,h.value=H,Q&&k())},Z=ee=>Ju(ee,p.value,a.value,r),te=ee=>Ve(ee)?ee.map(Q=>Q.format(p.value)):ee.format(p.value),ie=ee=>sp(ee)&&(u?!u(ee[0].toDate())&&!u(ee[1].toDate()):!0),oe=()=>{const ee=Jm(f(v),{lang:f(a),step:lu,unit:Gd,unlinkPanels:n.unlinkPanels});s.value=ee[0],o.value=ee[1],t("pick",null)};function J(ee,Q){if(n.unlinkPanels&&Q){const H=(ee==null?void 0:ee.year())||0,X=Q.year();o.value=H+lu>X?Q.add(lu,Gd):Q}else o.value=s.value.add(lu,Gd)}return Te(()=>n.visible,ee=>{!ee&&g.value.selecting&&(E(n.parsedValue),$(!1))}),t("set-picker-option",["isValidValue",ie]),t("set-picker-option",["parseUserInput",Z]),t("set-picker-option",["formatToString",te]),t("set-picker-option",["handleClear",oe]),(ee,Q)=>(_(),w("div",{class:V(f(L))},[l("div",{class:V(f(y).e("body-wrapper"))},[be(ee.$slots,"sidebar",{class:V(f(y).e("sidebar"))}),f(q)?(_(),w("div",{key:0,class:V(f(y).e("sidebar"))},[(_(!0),w(_e,null,Re(f(c),(H,X)=>(_(),w("button",{key:X,type:"button",class:V(f(y).e("shortcut")),disabled:ee.disabled,onClick:he=>f(S)(H)},I(H.text),11,["disabled","onClick"]))),128))],2)):K("v-if",!0),l("div",{class:V(f(y).e("body"))},[l("div",{class:V(f(U).content)},[l("div",{class:V(f(b).e("header"))},[l("button",{type:"button",class:V(f(U).arrowLeftBtn),disabled:ee.disabled,onClick:f(R)},[be(ee.$slots,"prev-year",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Di))]),_:1})])],10,["disabled","onClick"]),ee.unlinkPanels?(_(),w("button",{key:0,type:"button",disabled:!f(G)||ee.disabled,class:V(f(U).arrowRightBtn),onClick:f(N)},[be(ee.$slots,"next-year",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Vi))]),_:1})])],10,["disabled","onClick"])):K("v-if",!0),l("div",null,I(f(B)),1)],2),z(rp,{"selection-mode":"range",date:s.value,"min-date":f(h),"max-date":f(m),"range-state":f(g),"disabled-date":f(u),disabled:ee.disabled,"cell-class-name":f(d),onChangerange:f(C),onPick:ae,onSelect:f($)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),l("div",{class:V(f(O).content)},[l("div",{class:V(f(b).e("header"))},[ee.unlinkPanels?(_(),w("button",{key:0,type:"button",disabled:!f(G)||ee.disabled,class:V(f(O).arrowLeftBtn),onClick:f(P)},[be(ee.$slots,"prev-year",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Di))]),_:1})])],10,["disabled","onClick"])):K("v-if",!0),l("button",{type:"button",class:V(f(O).arrowRightBtn),disabled:ee.disabled,onClick:f(A)},[be(ee.$slots,"next-year",{},()=>[z(f(ct),null,{default:W(()=>[z(f(Vi))]),_:1})])],10,["disabled","onClick"]),l("div",null,I(f(M)),1)],2),z(rp,{"selection-mode":"range",date:o.value,"min-date":f(h),"max-date":f(m),"range-state":f(g),"disabled-date":f(u),disabled:ee.disabled,"cell-class-name":f(d),onChangerange:f(C),onPick:ae,onSelect:f($)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});var NW=ze(AW,[["__file","panel-year-range.vue"]]);const RW=function(e){switch(e){case"daterange":case"datetimerange":return yW;case"monthrange":return EW;case"yearrange":return NW;default:return vW}};function PW(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Un(e)}Bt.extend(s3);Bt.extend(zj);Bt.extend(sb);Bt.extend(Kj);Bt.extend(jj);Bt.extend(Gj);Bt.extend(Xj);Bt.extend(Jj);var MW=le({name:"ElDatePickerPanel",install:null,props:Zj,emits:[Et,"calendar-change","panel-change","visible-change","pick"],setup(e,{slots:t,emit:n}){const a=Le("picker-panel"),s=Ze(Cr,void 0);if(tn(s)){const d=At({...Pa(e)});Gt(Cr,{props:d})}Gt(ib,{slots:t,pickerNs:a});const{parsedValue:o,onCalendarChange:r,onPanelChange:i,onSetPickerOption:c,onPick:u}=Ze(B3,()=>L3(e,n),!0);return()=>{const d=RW(e.type);return z(d,Kt(e,{parsedValue:o.value,"onSet-picker-option":c,"onCalendar-change":r,"onPanel-change":i,onPick:u}),PW(t)?t:{default:()=>[t]})}}});const X3=Rt(MW),BW=Ue({...lb,type:{type:ge(String),default:"date"}});function LW(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Un(e)}var OW=le({name:"ElDatePicker",install:null,props:BW,emits:[Et],setup(e,{expose:t,emit:n,slots:a}){const s=x(()=>!e.format);Gt(Lp,s),Gt(ob,At(gn(e,"popperOptions")));const o=T();t({focus:()=>{var c;(c=o.value)==null||c.focus()},blur:()=>{var c;(c=o.value)==null||c.blur()},handleOpen:()=>{var c;(c=o.value)==null||c.handleOpen()},handleClose:()=>{var c;(c=o.value)==null||c.handleClose()}});const i=c=>{n(Et,c)};return()=>{var c;const u=(c=e.format)!=null?c:kj[e.type]||pi;return z(D3,Kt(e,{format:u,type:e.type,ref:o,"onUpdate:modelValue":i}),{default:d=>z(X3,Kt({border:!1},d),LW(a)?a:{default:()=>[a]}),"range-separator":a["range-separator"]})}}});const DW=Rt(OW),vb=Symbol("elDescriptions");var Yd=le({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Ze(vb,{})}},render(){var e;const t=VH(this.cell),n=(((e=this.cell)==null?void 0:e.dirs)||[]).map(b=>{const{dir:C,arg:k,modifiers:S,value:$}=b;return[C,$,k,S]}),{border:a,direction:s}=this.descriptions,o=s==="vertical",r=()=>{var b,C,k;return((k=(C=(b=this.cell)==null?void 0:b.children)==null?void 0:C.label)==null?void 0:k.call(C))||t.label},i=()=>{var b,C,k;return(k=(C=(b=this.cell)==null?void 0:b.children)==null?void 0:C.default)==null?void 0:k.call(C)},c=t.span,u=t.rowspan,d=t.align?`is-${t.align}`:"",p=t.labelAlign?`is-${t.labelAlign}`:d,v=t.className,h=t.labelClassName,m=this.type==="label"&&(t.labelWidth||this.descriptions.labelWidth)||t.width,g={width:sa(m),minWidth:sa(t.minWidth)},y=Le("descriptions");switch(this.type){case"label":return et(yt(this.tag,{style:g,class:[y.e("cell"),y.e("label"),y.is("bordered-label",a),y.is("vertical-label",o),p,h],colSpan:o?c:1,rowspan:o?1:u},r()),n);case"content":return et(yt(this.tag,{style:g,class:[y.e("cell"),y.e("content"),y.is("bordered-content",a),y.is("vertical-content",o),d,v],colSpan:o?c:c*2-1,rowspan:o?u*2-1:u},i()),n);default:{const b=r(),C={},k=sa(t.labelWidth||this.descriptions.labelWidth);return k&&(C.width=k,C.display="inline-block"),et(yt("td",{style:g,class:[y.e("cell"),d],colSpan:c,rowspan:u},[ba(b)?void 0:yt("span",{style:C,class:[y.e("label"),h]},b),yt("span",{class:[y.e("content"),v]},i())]),n)}}}});const VW=Ue({row:{type:ge(Array),default:()=>[]}}),FW=le({name:"ElDescriptionsRow"}),UW=le({...FW,props:VW,setup(e){const t=Ze(vb,{});return(n,a)=>f(t).direction==="vertical"?(_(),w(_e,{key:0},[l("tr",null,[(_(!0),w(_e,null,Re(n.row,(s,o)=>(_(),ue(f(Yd),{key:`tr1-${o}`,cell:s,tag:"th",type:"label"},null,8,["cell"]))),128))]),l("tr",null,[(_(!0),w(_e,null,Re(n.row,(s,o)=>(_(),ue(f(Yd),{key:`tr2-${o}`,cell:s,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(_(),w("tr",{key:1},[(_(!0),w(_e,null,Re(n.row,(s,o)=>(_(),w(_e,{key:`tr3-${o}`},[f(t).border?(_(),w(_e,{key:0},[z(f(Yd),{cell:s,tag:"td",type:"label"},null,8,["cell"]),z(f(Yd),{cell:s,tag:"td",type:"content"},null,8,["cell"])],64)):(_(),ue(f(Yd),{key:1,cell:s,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var zW=ze(UW,[["__file","descriptions-row.vue"]]);const HW=Ue({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Ma,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number],default:""}}),Q3="ElDescriptionsItem",KW=le({name:"ElDescriptions"}),qW=le({...KW,props:HW,setup(e){const t=e,n=Le("descriptions"),a=xa(),s=Ta();Gt(vb,t);const o=x(()=>[n.b(),n.m(a.value)]),r=(c,u,d,p=!1)=>(c.props||(c.props={}),u>d&&(c.props.span=d),p&&(c.props.span=u),c),i=()=>{if(!s.default)return[];const c=qr(s.default()).filter(m=>{var g;return((g=m==null?void 0:m.type)==null?void 0:g.name)===Q3}),u=[];let d=[],p=t.column,v=0;const h=[];return c.forEach((m,g)=>{var y,b,C;const k=((y=m.props)==null?void 0:y.span)||1,S=((b=m.props)==null?void 0:b.rowspan)||1,$=u.length;if(h[$]||(h[$]=0),S>1)for(let E=1;E0&&(p-=h[$],h[$]=0),gp?p:k),g===c.length-1){const E=t.column-v%t.column;d.push(r(m,E,p,!0)),u.push(d);return}k(_(),w("div",{class:V(f(o))},[c.title||c.extra||c.$slots.title||c.$slots.extra?(_(),w("div",{key:0,class:V(f(n).e("header"))},[l("div",{class:V(f(n).e("title"))},[be(c.$slots,"title",{},()=>[Ce(I(c.title),1)])],2),l("div",{class:V(f(n).e("extra"))},[be(c.$slots,"extra",{},()=>[Ce(I(c.extra),1)])],2)],2)):K("v-if",!0),l("div",{class:V(f(n).e("body"))},[l("table",{class:V([f(n).e("table"),f(n).is("bordered",c.border)])},[l("tbody",null,[(_(!0),w(_e,null,Re(i(),(d,p)=>(_(),ue(zW,{key:p,row:d},null,8,["row"]))),128))])],2)],2)],2))}});var jW=ze(qW,[["__file","description.vue"]]);const Xk=["left","center","right"],WW=Ue({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number],default:""},align:{type:String,values:Xk,default:"left"},labelAlign:{type:String,values:Xk},className:{type:String,default:""},labelClassName:{type:String,default:""}}),J3=le({name:Q3,props:WW}),GW=Rt(jW,{DescriptionsItem:J3}),YW=ea(J3),hb=e=>{if(!e)return{onClick:Cn,onMousedown:Cn,onMouseup:Cn};let t=!1,n=!1;return{onClick:r=>{t&&n&&e(r),t=n=!1},onMousedown:r=>{t=r.target===r.currentTarget},onMouseup:r=>{n=r.target===r.currentTarget}}},XW=Ue({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:ge([String,Array,Object])},zIndex:{type:ge([String,Number])}}),QW={click:e=>e instanceof MouseEvent},JW="overlay";var ZW=le({name:"ElOverlay",props:XW,emits:QW,setup(e,{slots:t,emit:n}){const a=Le(JW),s=c=>{n("click",c)},{onClick:o,onMousedown:r,onMouseup:i}=hb(e.customMaskEvent?void 0:s);return()=>e.mask?z("div",{class:[a.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:r,onMouseup:i},[be(t,"default")],Fo.STYLE|Fo.CLASS|Fo.PROPS,["onClick","onMouseup","onMousedown"]):yt("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[be(t,"default")])}});const mb=ZW,Z3=Symbol("dialogInjectionKey"),Qk="dialog-fade",e8=Ue({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:wn},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),eG={close:()=>!0},t8=(e,t,n,a)=>{const s={offsetX:0,offsetY:0},o=T(!1),r=(v,h)=>{if(e.value){const{offsetX:m,offsetY:g}=s,y=e.value.getBoundingClientRect(),b=y.left,C=y.top,k=y.width,S=y.height,$=document.documentElement.clientWidth,E=document.documentElement.clientHeight,R=-b+m,A=-C+g,N=$-b-k+m,P=E-C-(S{const h=v.clientX,m=v.clientY,{offsetX:g,offsetY:y}=s,b=k=>{o.value||(o.value=!0);const S=g+k.clientX-h,$=y+k.clientY-m;r(S,$)},C=()=>{o.value=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",C)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",C)},c=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",i),window.addEventListener("resize",p))},u=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",i),window.removeEventListener("resize",p))},d=()=>{s.offsetX=0,s.offsetY=0,e.value&&(e.value.style.transform="")},p=()=>{const{offsetX:v,offsetY:h}=s;r(v,h)};return ft(()=>{Ls(()=>{n.value?c():u()})}),on(()=>{u()}),{isDragging:o,resetPosition:d,updatePosition:p}},Zm=(...e)=>t=>{e.forEach(n=>{vt(n)?n(t):n.value=t})},tG=le({name:"ElDialogContent"}),nG=le({...tG,props:e8,emits:eG,setup(e,{expose:t}){const n=e,{t:a}=rn(),{Close:s}=vT,{dialogRef:o,headerRef:r,bodyId:i,ns:c,style:u}=Ze(Z3),{focusTrapRef:d}=Ze(qy),p=Zm(d,o),v=x(()=>!!n.draggable),h=x(()=>!!n.overflow),{resetPosition:m,updatePosition:g,isDragging:y}=t8(o,r,v,h),b=x(()=>[c.b(),c.is("fullscreen",n.fullscreen),c.is("draggable",v.value),c.is("dragging",y.value),c.is("align-center",!!n.alignCenter),{[c.m("center")]:n.center}]);return t({resetPosition:m,updatePosition:g}),(C,k)=>(_(),w("div",{ref:f(p),class:V(f(b)),style:Je(f(u)),tabindex:"-1"},[l("header",{ref_key:"headerRef",ref:r,class:V([f(c).e("header"),C.headerClass,{"show-close":C.showClose}])},[be(C.$slots,"header",{},()=>[l("span",{role:"heading","aria-level":C.ariaLevel,class:V(f(c).e("title"))},I(C.title),11,["aria-level"])]),C.showClose?(_(),w("button",{key:0,"aria-label":f(a)("el.dialog.close"),class:V(f(c).e("headerbtn")),type:"button",onClick:S=>C.$emit("close")},[z(f(ct),{class:V(f(c).e("close"))},{default:W(()=>[(_(),ue(Ft(C.closeIcon||f(s))))]),_:1},8,["class"])],10,["aria-label","onClick"])):K("v-if",!0)],2),l("div",{id:f(i),class:V([f(c).e("body"),C.bodyClass])},[be(C.$slots,"default")],10,["id"]),C.$slots.footer?(_(),w("footer",{key:0,class:V([f(c).e("footer"),C.footerClass])},[be(C.$slots,"footer")],2)):K("v-if",!0)],6))}});var aG=ze(nG,[["__file","dialog-content.vue"]]);const n8=Ue({...e8,appendToBody:Boolean,appendTo:{type:Gm.to.type,default:"body"},beforeClose:{type:ge(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalPenetrable:Boolean,openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"},transition:{type:ge([String,Object]),default:void 0}}),a8={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Et]:e=>En(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},gb=(e,t={})=>{$n(e)||Ca("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Le("popup"),a=x(()=>n.bm("parent","hidden"));if(!cn||vo(document.body,a.value))return;let s=0,o=!1,r="0";const i=()=>{setTimeout(()=>{typeof document>"u"||o&&document&&(document.body.style.width=r,Os(document.body,a.value))},200)};Te(e,c=>{if(!c){i();return}o=!vo(document.body,a.value),o&&(r=document.body.style.width,Ho(document.body,a.value)),s=sT(n.namespace.value);const u=document.documentElement.clientHeight0&&(u||d==="scroll")&&o&&(document.body.style.width=`calc(100% - ${s}px)`)}),kp(()=>i())},s8=(e,t)=>{var n;const s=qt().emit,{nextZIndex:o}=kd();let r="";const i=vs(),c=vs(),u=T(!1),d=T(!1),p=T(!1),v=T((n=e.zIndex)!=null?n:o());let h,m;const g=Sd(),y=x(()=>{var Z,te;return(te=(Z=g.value)==null?void 0:Z.namespace)!=null?te:Sf}),b=x(()=>{var Z;return(Z=g.value)==null?void 0:Z.dialog}),C=x(()=>{const Z={},te=`--${y.value}-dialog`;return e.fullscreen||(e.top&&(Z[`${te}-margin-top`]=e.top),e.width&&(Z[`${te}-width`]=sa(e.width))),Z}),k=x(()=>{var Z,te,ie;return((ie=(te=e.draggable)!=null?te:(Z=b.value)==null?void 0:Z.draggable)!=null?ie:!1)&&!e.fullscreen}),S=x(()=>{var Z,te,ie;return(ie=(te=e.alignCenter)!=null?te:(Z=b.value)==null?void 0:Z.alignCenter)!=null?ie:!1}),$=x(()=>{var Z,te,ie;return(ie=(te=e.overflow)!=null?te:(Z=b.value)==null?void 0:Z.overflow)!=null?ie:!1}),E=x(()=>S.value?{display:"flex"}:{}),R=x(()=>{var Z,te,ie;const oe=(ie=(te=e.transition)!=null?te:(Z=b.value)==null?void 0:Z.transition)!=null?ie:Qk,J={name:oe,onAfterEnter:A,onBeforeLeave:P,onAfterLeave:N};if(Ot(oe)){const ee={...oe},Q=(H,X)=>he=>{Ve(H)?H.forEach(D=>{vt(D)&&D(he)}):vt(H)&&H(he),X()};return ee.onAfterEnter=Q(ee.onAfterEnter,A),ee.onBeforeLeave=Q(ee.onBeforeLeave,P),ee.onAfterLeave=Q(ee.onAfterLeave,N),ee.name||(ee.name=Qk),ee}return J});function A(){s("opened")}function N(){s("closed"),s(Et,!1),e.destroyOnClose&&(p.value=!1)}function P(){s("close")}function B(){m==null||m(),h==null||h(),e.openDelay&&e.openDelay>0?{stop:h}=Lc(()=>q(),e.openDelay):q()}function M(){h==null||h(),m==null||m(),e.closeDelay&&e.closeDelay>0?{stop:m}=Lc(()=>L(),e.closeDelay):L()}function j(){function Z(te){te||(d.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(Z):M()}function F(){e.closeOnClickModal&&j()}function q(){cn&&(u.value=!0)}function L(){u.value=!1}function U(){s("openAutoFocus")}function O(){s("closeAutoFocus")}function G(Z){var te;((te=Z.detail)==null?void 0:te.focusReason)==="pointer"&&Z.preventDefault()}e.lockScroll&&gb(u);function ae(){e.closeOnPressEscape&&j()}return Te(()=>e.zIndex,()=>{var Z;v.value=(Z=e.zIndex)!=null?Z:o()}),Te(()=>e.modelValue,Z=>{var te;Z?(d.value=!1,B(),p.value=!0,v.value=(te=e.zIndex)!=null?te:o(),it(()=>{s("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):u.value&&M()}),Te(()=>e.fullscreen,Z=>{t.value&&(Z?(r=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=r)}),ft(()=>{e.modelValue&&(u.value=!0,p.value=!0,B())}),{afterEnter:A,afterLeave:N,beforeLeave:P,handleClose:j,onModalClick:F,close:M,doClose:L,onOpenAutoFocus:U,onCloseAutoFocus:O,onCloseRequested:ae,onFocusoutPrevented:G,titleId:i,bodyId:c,closed:d,style:C,overlayDialogStyle:E,rendered:p,visible:u,zIndex:v,transitionConfig:R,_draggable:k,_alignCenter:S,_overflow:$}},sG=le({name:"ElDialog",inheritAttrs:!1}),oG=le({...sG,props:n8,emits:a8,setup(e,{expose:t}){const n=e,a=Ta();Rl({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},x(()=>!!a.title));const s=Le("dialog"),o=T(),r=T(),i=T(),{visible:c,titleId:u,bodyId:d,style:p,overlayDialogStyle:v,rendered:h,transitionConfig:m,zIndex:g,_draggable:y,_alignCenter:b,_overflow:C,handleClose:k,onModalClick:S,onOpenAutoFocus:$,onCloseAutoFocus:E,onCloseRequested:R,onFocusoutPrevented:A}=s8(n,o);Gt(Z3,{dialogRef:o,headerRef:r,bodyId:d,ns:s,rendered:h,style:p});const N=hb(S),P=x(()=>n.modalPenetrable&&!n.modal&&!n.fullscreen);return t({visible:c,dialogContentRef:i,resetPosition:()=>{var M;(M=i.value)==null||M.resetPosition()},handleClose:k}),(M,j)=>(_(),ue(f($d),{to:M.appendTo,disabled:M.appendTo!=="body"?!1:!M.appendToBody},{default:W(()=>[z(aa,Kt(f(m),{persisted:""}),{default:W(()=>{var F;return[et(z(f(mb),{"custom-mask-event":"",mask:M.modal,"overlay-class":[(F=M.modalClass)!=null?F:"",`${f(s).namespace.value}-modal-dialog`,f(s).is("penetrable",f(P))],"z-index":f(g)},{default:W(()=>[l("div",{role:"dialog","aria-modal":"true","aria-label":M.title||void 0,"aria-labelledby":M.title?void 0:f(u),"aria-describedby":f(d),class:V(`${f(s).namespace.value}-overlay-dialog`),style:Je(f(v)),onClick:f(N).onClick,onMousedown:f(N).onMousedown,onMouseup:f(N).onMouseup},[z(f(Ed),{loop:"",trapped:f(c),"focus-start-el":"container",onFocusAfterTrapped:f($),onFocusAfterReleased:f(E),onFocusoutPrevented:f(A),onReleaseRequested:f(R)},{default:W(()=>[f(h)?(_(),ue(aG,Kt({key:0,ref_key:"dialogContentRef",ref:i},M.$attrs,{center:M.center,"align-center":f(b),"close-icon":M.closeIcon,draggable:f(y),overflow:f(C),fullscreen:M.fullscreen,"header-class":M.headerClass,"body-class":M.bodyClass,"footer-class":M.footerClass,"show-close":M.showClose,title:M.title,"aria-level":M.headerAriaLevel,onClose:f(k)}),bo({header:W(()=>[M.$slots.title?be(M.$slots,"title",{key:1}):be(M.$slots,"header",{key:0,close:f(k),titleId:f(u),titleClass:f(s).e("title")})]),default:W(()=>[be(M.$slots,"default")]),_:2},[M.$slots.footer?{name:"footer",fn:W(()=>[be(M.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):K("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[fn,f(c)]])]}),_:3},16)]),_:3},8,["to","disabled"]))}});var rG=ze(oG,[["__file","dialog.vue"]]);const lG=Rt(rG),iG=Ue({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:ge(String),default:"solid"}}),cG=le({name:"ElDivider"}),uG=le({...cG,props:iG,setup(e){const t=e,n=Le("divider"),a=x(()=>n.cssVar({"border-style":t.borderStyle}));return(s,o)=>(_(),w("div",{class:V([f(n).b(),f(n).m(s.direction)]),style:Je(f(a)),role:"separator"},[s.$slots.default&&s.direction!=="vertical"?(_(),w("div",{key:0,class:V([f(n).e("text"),f(n).is(s.contentPosition)])},[be(s.$slots,"default")],2)):K("v-if",!0)],6))}});var dG=ze(uG,[["__file","divider.vue"]]);const o8=Rt(dG),fG=Ue({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),r8=Symbol("splitterRootContextKey");function pG(e){const t=T(),{width:n,height:a}=T7(t),s=x(()=>e.value==="horizontal"?n.value:a.value);return{containerEl:t,containerSize:s}}function _b(e){return Number(e.slice(0,-1))/100}function yb(e){return Number(e.slice(0,-2))}function bb(e){return ut(e)&&e.endsWith("%")}function wb(e){return ut(e)&&e.endsWith("px")}function vG(e,t){const n=x(()=>e.value.map(i=>i.size)),a=x(()=>e.value.length),s=T([]);Te([n,a,t],()=>{var i;let c=[],u=0;for(let p=0;pp+(v||0),0);if(d>1||!u){const p=1/d;c=c.map(v=>v===void 0?0:v*p)}else{const p=(1-d)/u;c=c.map(v=>v===void 0?p:v)}s.value=c});const o=i=>i*t.value,r=x(()=>s.value.map(o));return{percentSizes:s,pxSizes:r}}function hG(e,t,n,a){const s=y=>y*t.value||0;function o(y,b){return bb(y)?s(_b(y)):wb(y)?yb(y):y??b}const r=T(0),i=T(null);let c=[],u=Cn;const d=x(()=>e.value.map(y=>[y.min,y.max]));Te(a,()=>{if(r.value){const y=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(y)}});const p=y=>{r.value=0,i.value={index:y,confirmed:!1},c=n.value},v=(y,b)=>{var C,k;let S=null;if((!i.value||!i.value.confirmed)&&b!==0){if(b>0)S=y,i.value={index:y,confirmed:!0};else for(let j=y;j>=0;j-=1)if(c[j]>0){S=j,i.value={index:j,confirmed:!0};break}}const $=(k=S??((C=i.value)==null?void 0:C.index))!=null?k:y,E=[...c],R=$+1,A=o(d.value[$][0],0),N=o(d.value[R][0],0),P=o(d.value[$][1],t.value||0),B=o(d.value[R][1],t.value||0);let M=b;E[$]+MP&&(M=P-E[$]),E[R]-M>B&&(M=E[R]-B),E[$]+=M,E[R]-=M,r.value=M,u=()=>{e.value.forEach((j,F)=>{j.size=E[F]}),u=Cn},a.value||u()},h=()=>{a.value&&u(),r.value=0,i.value=null,c=[]},m=[];return{lazyOffset:r,onMoveStart:p,onMoving:v,onMoveEnd:h,movingIndex:i,onCollapse:(y,b)=>{m.length||m.push(...n.value);const C=n.value,k=b==="start"?y:y+1,S=b==="start"?y+1:y,$=C[k],E=C[S];if($!==0&&E!==0)C[k]=0,C[S]+=$,m[y]=$;else{const R=$+E,A=m[y],N=R-A;C[S]=A,C[k]=N}e.value.forEach((R,A)=>{R.size=C[A]})}}}const mG=le({name:"ElSplitter"}),gG=le({...mG,props:fG,emits:["resizeStart","resize","resizeEnd","collapse"],setup(e,{emit:t}){const n=e,a=Le("splitter"),s=gn(n,"layout"),o=gn(n,"lazy"),{containerEl:r,containerSize:i}=pG(s),{removeChild:c,children:u,addChild:d,ChildrenSorter:p}=Ym(qt(),"ElSplitterPanel");Te(u,()=>{u.value.forEach((N,P)=>{N.setIndex(P)})});const{percentSizes:v,pxSizes:h}=vG(u,i),{lazyOffset:m,movingIndex:g,onMoveStart:y,onMoving:b,onMoveEnd:C,onCollapse:k}=hG(u,i,h,o),S=x(()=>({[`--${a.b()}-bar-offset`]:o.value?`${m.value}px`:void 0}));return Gt(r8,At({panels:u,percentSizes:v,pxSizes:h,layout:s,lazy:o,movingIndex:g,containerSize:i,onMoveStart:N=>{y(N),t("resizeStart",N,h.value)},onMoving:(N,P)=>{b(N,P),o.value||t("resize",N,h.value)},onMoveEnd:N=>{C(),t("resizeEnd",N,h.value)},onCollapse:(N,P)=>{k(N,P),t("collapse",N,P,h.value)},registerPanel:d,unregisterPanel:c})),(N,P)=>(_(),w("div",{ref_key:"containerEl",ref:r,class:V([f(a).b(),f(a).e(f(s))]),style:Je(f(S))},[be(N.$slots,"default"),z(f(p)),K(" Prevent iframe touch events from breaking "),f(g)?(_(),w("div",{key:0,class:V([f(a).e("mask"),f(a).e(`mask-${f(s)}`)])},null,2)):K("v-if",!0)],6))}});var _G=ze(gG,[["__file","splitter.vue"]]);function yG(e){return e&&Ot(e)?e:{start:!!e,end:!!e}}function Jk(e,t,n,a){return!!(e!=null&&e.collapsible.end&&t>0||n!=null&&n.collapsible.start&&a===0&&t>0)}const bG=le({name:"ElSplitterBar"}),wG=le({...bG,props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},lazy:Boolean,startCollapsible:Boolean,endCollapsible:Boolean},emits:["moveStart","moving","moveEnd","collapse"],setup(e,{emit:t}){const n=e,a=Le("splitter-bar"),s=x(()=>n.layout==="horizontal"),o=x(()=>s.value?{width:0}:{height:0}),r=x(()=>({width:s.value?"16px":"100%",height:s.value?"100%":"16px",cursor:s.value?"col-resize":"row-resize",touchAction:"none"})),i=x(()=>{const b=a.e("dragger");return{[`${b}-horizontal`]:s.value,[`${b}-vertical`]:!s.value,[`${b}-active`]:!!c.value}}),c=T(null),u=b=>{n.resizable&&(c.value=[b.pageX,b.pageY],t("moveStart",n.index),window.addEventListener("mouseup",h),window.addEventListener("mousemove",p))},d=b=>{if(n.resizable&&b.touches.length===1){b.preventDefault();const C=b.touches[0];c.value=[C.pageX,C.pageY],t("moveStart",n.index),window.addEventListener("touchend",m),window.addEventListener("touchmove",v)}},p=b=>{const{pageX:C,pageY:k}=b,S=C-c.value[0],$=k-c.value[1],E=s.value?S:$;t("moving",n.index,E)},v=b=>{if(b.touches.length===1){b.preventDefault();const C=b.touches[0],k=C.pageX-c.value[0],S=C.pageY-c.value[1],$=s.value?k:S;t("moving",n.index,$)}},h=()=>{c.value=null,window.removeEventListener("mouseup",h),window.removeEventListener("mousemove",p),t("moveEnd",n.index)},m=()=>{c.value=null,window.removeEventListener("touchend",m),window.removeEventListener("touchmove",v),t("moveEnd",n.index)},g=x(()=>s.value?Bl:Um),y=x(()=>s.value?Ds:rl);return(b,C)=>(_(),w("div",{class:V([f(a).b()]),style:Je(f(o))},[e.startCollapsible?(_(),w("div",{key:0,class:V([f(a).e("collapse-icon"),f(a).e(`${e.layout}-collapse-icon-start`)]),onClick:k=>t("collapse",e.index,"start")},[be(b.$slots,"start-collapsible",{},()=>[(_(),ue(Ft(f(g)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):K("v-if",!0),l("div",{class:V([f(a).e("dragger"),f(i),e.resizable?"":f(a).e("disable"),f(a).is("lazy",e.resizable&&e.lazy)]),style:Je(f(r)),onMousedown:u,onTouchstart:d},null,38),e.endCollapsible?(_(),w("div",{key:1,class:V([f(a).e("collapse-icon"),f(a).e(`${e.layout}-collapse-icon-end`)]),onClick:k=>t("collapse",e.index,"end")},[be(b.$slots,"end-collapsible",{},()=>[(_(),ue(Ft(f(y)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):K("v-if",!0)],6))}});var CG=ze(wG,[["__file","split-bar.vue"]]);const kG=Ue({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),l8="ElSplitterPanel",SG=le({name:l8}),EG=le({...SG,props:kG,emits:["update:size"],setup(e,{emit:t}){const n=e,a=Le("splitter-panel"),s=Ze(r8);s||Ca(l8,"usage: ");const{panels:o,layout:r,lazy:i,containerSize:c,pxSizes:u}=Pa(s),{registerPanel:d,unregisterPanel:p,onCollapse:v,onMoveEnd:h,onMoveStart:m,onMoving:g}=s,y=T(),b=qt(),C=b.uid,k=T(0),S=x(()=>o.value[k.value]),$=L=>{k.value=L},E=x(()=>{var L;return S.value&&(L=u.value[k.value])!=null?L:0}),R=x(()=>{var L;return S.value&&(L=u.value[k.value+1])!=null?L:0}),A=x(()=>S.value?o.value[k.value+1]:null),N=x(()=>{var L;return A.value?n.resizable&&((L=A.value)==null?void 0:L.resizable)&&(E.value!==0||!n.min)&&(R.value!==0||!A.value.min):!1}),P=x(()=>S.value?k.value!==o.value.length-1:!1),B=x(()=>Jk(S.value,E.value,A.value,R.value)),M=x(()=>Jk(A.value,R.value,S.value,E.value));function j(L){return bb(L)?_b(L)*c.value||0:wb(L)?yb(L):L??0}let F=!1;Te(()=>n.size,()=>{if(!F&&S.value){const L=j(n.size),U=j(n.max),O=j(n.min),G=Math.min(Math.max(L,O||0),U||L);G!==L&&t("update:size",G),S.value.size=G}}),Te(()=>{var L;return(L=S.value)==null?void 0:L.size},L=>{L!==n.size&&(F=!0,t("update:size",L),it(()=>F=!1))}),Te(()=>n.resizable,L=>{S.value&&(S.value.resizable=L)});const q=At({el:y.value,uid:C,getVnode:()=>b.vnode,setIndex:$,...n,collapsible:x(()=>yG(n.collapsible))});return d(q),on(()=>p(q)),(L,U)=>(_(),w(_e,null,[l("div",Kt({ref_key:"panelEl",ref:y,class:[f(a).b()],style:{flexBasis:`${f(E)}px`}},L.$attrs),[be(L.$slots,"default")],16),f(P)?(_(),ue(CG,{key:0,index:k.value,layout:f(r),lazy:f(i),resizable:f(N),"start-collapsible":f(B),"end-collapsible":f(M),onMoveStart:f(m),onMoving:f(g),onMoveEnd:f(h),onCollapse:f(v)},{"start-collapsible":W(()=>[be(L.$slots,"start-collapsible")]),"end-collapsible":W(()=>[be(L.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):K("v-if",!0)],64))}});var i8=ze(EG,[["__file","split-panel.vue"]]);const c8=Rt(_G,{SplitPanel:i8}),sh=ea(i8),$G=Ue({...n8,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),xG=a8,TG=le({name:"ElDrawer",inheritAttrs:!1}),IG=le({...TG,props:$G,emits:xG,setup(e,{expose:t}){const n=e,a=Ta();Rl({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},x(()=>!!a.title));const s=T(),o=T(),r=Le("drawer"),{t:i}=rn(),{afterEnter:c,afterLeave:u,beforeLeave:d,visible:p,rendered:v,titleId:h,bodyId:m,zIndex:g,onModalClick:y,onOpenAutoFocus:b,onCloseAutoFocus:C,onFocusoutPrevented:k,onCloseRequested:S,handleClose:$}=s8(n,s),E=x(()=>n.direction==="rtl"||n.direction==="ltr"),R=x(()=>sa(n.size));return t({handleClose:$,afterEnter:c,afterLeave:u}),(A,N)=>(_(),ue(f($d),{to:A.appendTo,disabled:A.appendTo!=="body"?!1:!A.appendToBody},{default:W(()=>[z(aa,{name:f(r).b("fade"),onAfterEnter:f(c),onAfterLeave:f(u),onBeforeLeave:f(d),persisted:""},{default:W(()=>[et(z(f(mb),{mask:A.modal,"overlay-class":A.modalClass,"z-index":f(g),onClick:f(y)},{default:W(()=>[z(f(Ed),{loop:"",trapped:f(p),"focus-trap-el":s.value,"focus-start-el":o.value,onFocusAfterTrapped:f(b),onFocusAfterReleased:f(C),onFocusoutPrevented:f(k),onReleaseRequested:f(S)},{default:W(()=>[z(f(c8),{class:V(f(r).b("splitter")),layout:f(E)?"horizontal":"vertical"},{default:W(()=>[["rtl","btt"].includes(A.direction)?(_(),ue(f(sh),{key:0,onClick:f(y)},null,8,["onClick"])):K("v-if",!0),z(f(sh),{resizable:A.resizable,size:f(R)},{default:W(()=>[l("div",Kt({ref_key:"drawerRef",ref:s,"aria-modal":"true","aria-label":A.title||void 0,"aria-labelledby":A.title?void 0:f(h),"aria-describedby":f(m)},A.$attrs,{class:[f(r).b(),A.direction,f(p)&&"open"],role:"dialog",onClick:qe(()=>{},["stop"])}),[l("span",{ref_key:"focusStartRef",ref:o,class:V(f(r).e("sr-focus")),tabindex:"-1"},null,2),A.withHeader?(_(),w("header",{key:0,class:V([f(r).e("header"),A.headerClass])},[A.$slots.title?be(A.$slots,"title",{key:1},()=>[K(" DEPRECATED SLOT ")]):be(A.$slots,"header",{key:0,close:f($),titleId:f(h),titleClass:f(r).e("title")},()=>[A.$slots.title?K("v-if",!0):(_(),w("span",{key:0,id:f(h),role:"heading","aria-level":A.headerAriaLevel,class:V(f(r).e("title"))},I(A.title),11,["id","aria-level"]))]),A.showClose?(_(),w("button",{key:2,"aria-label":f(i)("el.drawer.close"),class:V(f(r).e("close-btn")),type:"button",onClick:f($)},[z(f(ct),{class:V(f(r).e("close"))},{default:W(()=>[z(f(nr))]),_:1},8,["class"])],10,["aria-label","onClick"])):K("v-if",!0)],2)):K("v-if",!0),f(v)?(_(),w("div",{key:1,id:f(m),class:V([f(r).e("body"),A.bodyClass])},[be(A.$slots,"default")],10,["id"])):K("v-if",!0),A.$slots.footer?(_(),w("div",{key:2,class:V([f(r).e("footer"),A.footerClass])},[be(A.$slots,"footer")],2)):K("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["resizable","size"]),["ltr","ttb"].includes(A.direction)?(_(),ue(f(sh),{key:1,onClick:f(y)},null,8,["onClick"])):K("v-if",!0)]),_:3},8,["class","layout"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[fn,f(p)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var AG=ze(IG,[["__file","drawer.vue"]]);const NG=Rt(AG),RG=le({inheritAttrs:!1});function PG(e,t,n,a,s,o){return be(e.$slots,"default")}var MG=ze(RG,[["render",PG],["__file","collection.vue"]]);const BG=le({name:"ElCollectionItem",inheritAttrs:!1});function LG(e,t,n,a,s,o){return be(e.$slots,"default")}var OG=ze(BG,[["render",LG],["__file","collection-item.vue"]]);const u8="data-el-collection-item",d8=e=>{const t=`El${e}Collection`,n=`${t}Item`,a=Symbol(t),s=Symbol(n),o={...MG,name:t,setup(){const i=T(),c=new Map;Gt(a,{itemMap:c,getItems:()=>{const d=f(i);if(!d)return[];const p=Array.from(d.querySelectorAll(`[${u8}]`));return[...c.values()].sort((h,m)=>p.indexOf(h.ref)-p.indexOf(m.ref))},collectionRef:i})}},r={...OG,name:n,setup(i,{attrs:c}){const u=T(),d=Ze(a,void 0);Gt(s,{collectionItemRef:u}),ft(()=>{const p=f(u);p&&d.itemMap.set(p,{ref:p,...c})}),on(()=>{const p=f(u);d.itemMap.delete(p)})}};return{COLLECTION_INJECTION_KEY:a,COLLECTION_ITEM_INJECTION_KEY:s,ElCollection:o,ElCollectionItem:r}},DG=Ue({style:{type:ge([String,Array,Object])},currentTabId:{type:ge(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:ge(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:VG,ElCollectionItem:FG,COLLECTION_INJECTION_KEY:Cb,COLLECTION_ITEM_INJECTION_KEY:UG}=d8("RovingFocusGroup"),kb=Symbol("elRovingFocusGroup"),f8=Symbol("elRovingFocusGroupItem"),zG={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},HG=(e,t)=>e,KG=(e,t,n)=>{const a=HG(e.code);return zG[a]},qG=(e,t)=>e.map((n,a)=>e[(a+t)%e.length]),Sb=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},Zk="currentTabIdChange",eS="rovingFocusGroup.entryFocus",jG={bubbles:!1,cancelable:!0},WG=le({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:DG,emits:[Zk,"entryFocus"],setup(e,{emit:t}){var n;const a=T((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),s=T(!1),o=T(!1),r=T(),{getItems:i}=Ze(Cb,void 0),c=x(()=>[{outline:"none"},e.style]),u=g=>{t(Zk,g)},d=()=>{s.value=!0},p=ca(g=>{var y;(y=e.onMousedown)==null||y.call(e,g)},()=>{o.value=!0}),v=ca(g=>{var y;(y=e.onFocus)==null||y.call(e,g)},g=>{const y=!f(o),{target:b,currentTarget:C}=g;if(b===C&&y&&!f(s)){const k=new Event(eS,jG);if(C==null||C.dispatchEvent(k),!k.defaultPrevented){const S=i().filter(N=>N.focusable),$=S.find(N=>N.active),E=S.find(N=>N.id===f(a)),A=[$,E,...S].filter(Boolean).map(N=>N.ref);Sb(A)}}o.value=!1}),h=ca(g=>{var y;(y=e.onBlur)==null||y.call(e,g)},()=>{s.value=!1}),m=(...g)=>{t("entryFocus",...g)};Gt(kb,{currentTabbedId:md(a),loop:gn(e,"loop"),tabIndex:x(()=>f(s)?-1:0),rovingFocusGroupRef:r,rovingFocusGroupRootStyle:c,orientation:gn(e,"orientation"),dir:gn(e,"dir"),onItemFocus:u,onItemShiftTab:d,onBlur:h,onFocus:v,onMousedown:p}),Te(()=>e.currentTabId,g=>{a.value=g??null}),Rn(r,eS,m)}});function GG(e,t,n,a,s,o){return be(e.$slots,"default")}var YG=ze(WG,[["render",GG],["__file","roving-focus-group-impl.vue"]]);const XG=le({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:VG,ElRovingFocusGroupImpl:YG}});function QG(e,t,n,a,s,o){const r=Ne("el-roving-focus-group-impl"),i=Ne("el-focus-group-collection");return _(),ue(i,null,{default:W(()=>[z(r,po(Jr(e.$attrs)),{default:W(()=>[be(e.$slots,"default")]),_:3},16)]),_:3})}var JG=ze(XG,[["render",QG],["__file","roving-focus-group.vue"]]);const oh=Ue({trigger:Pu.trigger,triggerKeys:{type:ge(Array),default:()=>[tt.enter,tt.numpadEnter,tt.space,tt.down]},effect:{...Yn.effect,default:"light"},type:{type:ge(String)},placement:{type:ge(String),default:"bottom"},popperOptions:{type:ge(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:ge([Number,String]),default:0},maxHeight:{type:ge([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,values:wT,default:"menu"},buttonProps:{type:ge(Object)},teleported:Yn.teleported,persistent:{type:Boolean,default:!0}}),p8=Ue({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:wn}}),ZG=Ue({onKeydown:{type:ge(Function)}}),eY=[tt.down,tt.pageDown,tt.home],v8=[tt.up,tt.pageUp,tt.end],tY=[...eY,...v8],{ElCollection:nY,ElCollectionItem:aY,COLLECTION_INJECTION_KEY:sY,COLLECTION_ITEM_INJECTION_KEY:oY}=d8("Dropdown"),e0=Symbol("elDropdown"),h8="elDropdown",{ButtonGroup:rY}=ns,lY=le({name:"ElDropdown",components:{ElButton:ns,ElButtonGroup:rY,ElScrollbar:wr,ElDropdownCollection:nY,ElTooltip:hs,ElRovingFocusGroup:JG,ElOnlyChild:ET,ElIcon:ct,ArrowDown:rl},props:oh,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=qt(),a=Le("dropdown"),{t:s}=rn(),o=T(),r=T(),i=T(),c=T(),u=T(null),d=T(null),p=T(!1),v=x(()=>({maxHeight:sa(e.maxHeight)})),h=x(()=>[a.m(S.value)]),m=x(()=>es(e.trigger)),g=vs().value,y=x(()=>e.id||g);Te([o,m],([L,U],[O])=>{var G,ae,Z;(G=O==null?void 0:O.$el)!=null&&G.removeEventListener&&O.$el.removeEventListener("pointerenter",E),(ae=L==null?void 0:L.$el)!=null&&ae.removeEventListener&&L.$el.removeEventListener("pointerenter",E),(Z=L==null?void 0:L.$el)!=null&&Z.addEventListener&&U.includes("hover")&&L.$el.addEventListener("pointerenter",E)},{immediate:!0}),on(()=>{var L,U;(U=(L=o.value)==null?void 0:L.$el)!=null&&U.removeEventListener&&o.value.$el.removeEventListener("pointerenter",E)});function b(){C()}function C(){var L;(L=i.value)==null||L.onClose()}function k(){var L;(L=i.value)==null||L.onOpen()}const S=xa();function $(...L){t("command",...L)}function E(){var L,U;(U=(L=o.value)==null?void 0:L.$el)==null||U.focus({preventScroll:!0})}function R(){}function A(){const L=f(c);m.value.includes("hover")&&(L==null||L.focus({preventScroll:!0})),d.value=null}function N(L){d.value=L}function P(L){p.value||(L.preventDefault(),L.stopImmediatePropagation())}function B(){t("visible-change",!0)}function M(L){var U;(L==null?void 0:L.type)==="keydown"&&((U=c.value)==null||U.focus())}function j(){t("visible-change",!1)}return Gt(e0,{contentRef:c,role:x(()=>e.role),triggerId:y,isUsingKeyboard:p,onItemEnter:R,onItemLeave:A}),Gt(h8,{instance:n,dropdownSize:S,handleClick:b,commandHandler:$,trigger:gn(e,"trigger"),hideOnClick:gn(e,"hideOnClick")}),{t:s,ns:a,scrollbar:u,wrapStyle:v,dropdownTriggerKls:h,dropdownSize:S,triggerId:y,currentTabId:d,handleCurrentTabIdChange:N,handlerMainButtonClick:L=>{t("click",L)},handleEntryFocus:P,handleClose:C,handleOpen:k,handleBeforeShowTooltip:B,handleShowTooltip:M,handleBeforeHideTooltip:j,onFocusAfterTrapped:L=>{var U,O;L.preventDefault(),(O=(U=c.value)==null?void 0:U.focus)==null||O.call(U,{preventScroll:!0})},popperRef:i,contentRef:c,triggeringElementRef:o,referenceElementRef:r}}});function iY(e,t,n,a,s,o){var r;const i=Ne("el-dropdown-collection"),c=Ne("el-roving-focus-group"),u=Ne("el-scrollbar"),d=Ne("el-only-child"),p=Ne("el-tooltip"),v=Ne("el-button"),h=Ne("arrow-down"),m=Ne("el-icon"),g=Ne("el-button-group");return _(),w("div",{class:V([e.ns.b(),e.ns.is("disabled",e.disabled)])},[z(p,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(r=e.referenceElementRef)==null?void 0:r.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},bo({content:W(()=>[z(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:W(()=>[z(c,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:W(()=>[z(i,null,{default:W(()=>[be(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:W(()=>[z(d,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:W(()=>[be(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(_(),ue(g,{key:0},{default:W(()=>[z(v,Kt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:W(()=>[be(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),z(v,Kt({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:W(()=>[z(m,{class:V(e.ns.e("icon"))},{default:W(()=>[z(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):K("v-if",!0)],2)}var cY=ze(lY,[["render",iY],["__file","dropdown.vue"]]);const uY=le({components:{ElRovingFocusCollectionItem:FG},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:a,onItemFocus:s,onItemShiftTab:o}=Ze(kb,void 0),{getItems:r}=Ze(Cb,void 0),i=vs(),c=T(),u=ca(h=>{t("mousedown",h)},h=>{e.focusable?s(f(i)):h.preventDefault()}),d=ca(h=>{t("focus",h)},()=>{s(f(i))}),p=ca(h=>{t("keydown",h)},h=>{const{code:m,shiftKey:g,target:y,currentTarget:b}=h;if(m===tt.tab&&g){o();return}if(y!==b)return;const C=KG(h);if(C){h.preventDefault();let S=r().filter($=>$.focusable).map($=>$.ref);switch(C){case"last":{S.reverse();break}case"prev":case"next":{C==="prev"&&S.reverse();const $=S.indexOf(b);S=a.value?qG(S,$+1):S.slice($+1);break}}it(()=>{Sb(S)})}}),v=x(()=>n.value===f(i));return Gt(f8,{rovingFocusGroupItemRef:c,tabIndex:x(()=>f(v)?0:-1),handleMousedown:u,handleFocus:d,handleKeydown:p}),{id:i,handleKeydown:p,handleFocus:d,handleMousedown:u}}});function dY(e,t,n,a,s,o){const r=Ne("el-roving-focus-collection-item");return _(),ue(r,{id:e.id,focusable:e.focusable,active:e.active},{default:W(()=>[be(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var fY=ze(uY,[["render",dY],["__file","roving-focus-item.vue"]]);const pY=le({name:"DropdownItemImpl",components:{ElIcon:ct},props:p8,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Le("dropdown"),{role:a}=Ze(e0,void 0),{collectionItemRef:s}=Ze(oY,void 0),{collectionItemRef:o}=Ze(UG,void 0),{rovingFocusGroupItemRef:r,tabIndex:i,handleFocus:c,handleKeydown:u,handleMousedown:d}=Ze(f8,void 0),p=Zm(s,o,r),v=x(()=>a.value==="menu"?"menuitem":a.value==="navigation"?"link":"button"),h=ca(m=>{if([tt.enter,tt.numpadEnter,tt.space].includes(m.code))return m.preventDefault(),m.stopImmediatePropagation(),t("clickimpl",m),!0},u);return{ns:n,itemRef:p,dataset:{[u8]:""},role:v,tabIndex:i,handleFocus:c,handleKeydown:h,handleMousedown:d}}});function vY(e,t,n,a,s,o){const r=Ne("el-icon");return _(),w(_e,null,[e.divided?(_(),w("li",{key:0,role:"separator",class:V(e.ns.bem("menu","item","divided"))},null,2)):K("v-if",!0),l("li",Kt({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:i=>e.$emit("clickimpl",i),onFocus:e.handleFocus,onKeydown:qe(e.handleKeydown,["self"]),onMousedown:e.handleMousedown,onPointermove:i=>e.$emit("pointermove",i),onPointerleave:i=>e.$emit("pointerleave",i)}),[e.icon?(_(),ue(r,{key:0},{default:W(()=>[(_(),ue(Ft(e.icon)))]),_:1})):K("v-if",!0),be(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}var hY=ze(pY,[["render",vY],["__file","dropdown-item-impl.vue"]]);const m8=()=>{const e=Ze(h8,{}),t=x(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},mY=le({name:"ElDropdownItem",components:{ElDropdownCollectionItem:aY,ElRovingFocusItem:fY,ElDropdownItemImpl:hY},inheritAttrs:!1,props:p8,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:a}=m8(),s=qt(),o=T(null),r=x(()=>{var h,m;return(m=(h=f(o))==null?void 0:h.textContent)!=null?m:""}),{onItemEnter:i,onItemLeave:c}=Ze(e0,void 0),u=ca(h=>(t("pointermove",h),h.defaultPrevented),Nk(h=>{if(e.disabled){c(h);return}const m=h.currentTarget;m===document.activeElement||m.contains(document.activeElement)||(i(h),h.defaultPrevented||m==null||m.focus({preventScroll:!0}))})),d=ca(h=>(t("pointerleave",h),h.defaultPrevented),Nk(c)),p=ca(h=>{if(!e.disabled)return t("click",h),h.type!=="keydown"&&h.defaultPrevented},h=>{var m,g,y;if(e.disabled){h.stopImmediatePropagation();return}(m=a==null?void 0:a.hideOnClick)!=null&&m.value&&((g=a.handleClick)==null||g.call(a)),(y=a.commandHandler)==null||y.call(a,e.command,s,h)}),v=x(()=>({...e,...n}));return{handleClick:p,handlePointerMove:u,handlePointerLeave:d,textContent:r,propsAndAttrs:v}}});function gY(e,t,n,a,s,o){var r;const i=Ne("el-dropdown-item-impl"),c=Ne("el-roving-focus-item"),u=Ne("el-dropdown-collection-item");return _(),ue(u,{disabled:e.disabled,"text-value":(r=e.textValue)!=null?r:e.textContent},{default:W(()=>[z(c,{focusable:!e.disabled},{default:W(()=>[z(i,Kt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:W(()=>[be(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var g8=ze(mY,[["render",gY],["__file","dropdown-item.vue"]]);const _Y=le({name:"ElDropdownMenu",props:ZG,setup(e){const t=Le("dropdown"),{_elDropdownSize:n}=m8(),a=n.value,{focusTrapRef:s,onKeydown:o}=Ze(qy,void 0),{contentRef:r,role:i,triggerId:c}=Ze(e0,void 0),{collectionRef:u,getItems:d}=Ze(sY,void 0),{rovingFocusGroupRef:p,rovingFocusGroupRootStyle:v,tabIndex:h,onBlur:m,onFocus:g,onMousedown:y}=Ze(kb,void 0),{collectionRef:b}=Ze(Cb,void 0),C=x(()=>[t.b("menu"),t.bm("menu",a==null?void 0:a.value)]),k=Zm(r,u,s,p,b),S=ca(E=>{var R;(R=e.onKeydown)==null||R.call(e,E)},E=>{const{currentTarget:R,code:A,target:N}=E;if(R.contains(N),tt.tab===A&&E.stopImmediatePropagation(),E.preventDefault(),N!==f(r)||!tY.includes(A))return;const B=d().filter(M=>!M.disabled).map(M=>M.ref);v8.includes(A)&&B.reverse(),Sb(B)});return{size:a,rovingFocusGroupRootStyle:v,tabIndex:h,dropdownKls:C,role:i,triggerId:c,dropdownListWrapperRef:k,handleKeydown:E=>{S(E),o(E)},onBlur:m,onFocus:g,onMousedown:y}}});function yY(e,t,n,a,s,o){return _(),w("ul",{ref:e.dropdownListWrapperRef,class:V(e.dropdownKls),style:Je(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:e.onBlur,onFocus:e.onFocus,onKeydown:qe(e.handleKeydown,["self"]),onMousedown:qe(e.onMousedown,["self"])},[be(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}var _8=ze(_Y,[["render",yY],["__file","dropdown-menu.vue"]]);const bY=Rt(cY,{DropdownItem:g8,DropdownMenu:_8}),wY=ea(g8),CY=ea(_8),kY=le({name:"ImgEmpty"}),SY=le({...kY,setup(e){const t=Le("empty"),n=vs();return(a,s)=>(_(),w("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[l("defs",null,[l("linearGradient",{id:`linearGradient-1-${f(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[l("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),l("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),l("linearGradient",{id:`linearGradient-2-${f(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[l("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),l("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),l("rect",{id:`path-3-${f(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),l("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[l("g",{transform:"translate(-1268.000000, -535.000000)"},[l("g",{transform:"translate(1268.000000, 535.000000)"},[l("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${f(t).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),l("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),l("g",{transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[l("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),l("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),l("rect",{fill:`url(#linearGradient-1-${f(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),l("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),l("rect",{fill:`url(#linearGradient-2-${f(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),l("g",{transform:"translate(53.000000, 45.000000)"},[l("use",{fill:`var(${f(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${f(n)}`},null,8,["fill","xlink:href"]),l("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${f(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),l("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}});var EY=ze(SY,[["__file","img-empty.vue"]]);const $Y=Ue({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),xY=le({name:"ElEmpty"}),TY=le({...xY,props:$Y,setup(e){const t=e,{t:n}=rn(),a=Le("empty"),s=x(()=>t.description||n("el.table.emptyText")),o=x(()=>({width:sa(t.imageSize)}));return(r,i)=>(_(),w("div",{class:V(f(a).b())},[l("div",{class:V(f(a).e("image")),style:Je(f(o))},[r.image?(_(),w("img",{key:0,src:r.image,ondragstart:"return false"},null,8,["src"])):be(r.$slots,"image",{key:1},()=>[z(EY)])],6),l("div",{class:V(f(a).e("description"))},[r.$slots.description?be(r.$slots,"description",{key:0}):(_(),w("p",{key:1},I(f(s)),1))],2),r.$slots.default?(_(),w("div",{key:0,class:V(f(a).e("bottom"))},[be(r.$slots,"default")],2)):K("v-if",!0)],2))}});var IY=ze(TY,[["__file","empty.vue"]]);const y8=Rt(IY),AY=Ue({size:{type:String,values:ol},disabled:Boolean}),NY=Ue({...AY,model:Object,rules:{type:ge(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:ge([Object,Boolean]),default:!0}}),RY={validate:(e,t,n)=>(Ve(e)||ut(e))&&En(t)&&ut(n)};function PY(){const e=T([]),t=x(()=>{if(!e.value.length)return"0";const o=Math.max(...e.value);return o?`${o}px`:""});function n(o){const r=e.value.indexOf(o);return r===-1&&t.value,r}function a(o,r){if(o&&r){const i=n(r);e.value.splice(i,1,o)}else o&&e.value.push(o)}function s(o){const r=n(o);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:a,deregisterLabelWidth:s}}const Tv=(e,t)=>{const n=es(t).map(a=>Ve(a)?a.join("."):a);return n.length>0?e.filter(a=>a.propString&&n.includes(a.propString)):e},MY="ElForm",BY=le({name:MY}),LY=le({...BY,props:NY,emits:RY,setup(e,{expose:t,emit:n}){const a=e,s=T(),o=At([]),r=xa(),i=Le("form"),c=x(()=>{const{labelPosition:S,inline:$}=a;return[i.b(),i.m(r.value||"default"),{[i.m(`label-${S}`)]:S,[i.m("inline")]:$}]}),u=S=>Tv(o,[S])[0],d=S=>{o.push(S)},p=S=>{S.prop&&o.splice(o.indexOf(S),1)},v=(S=[])=>{a.model&&Tv(o,S).forEach($=>$.resetField())},h=(S=[])=>{Tv(o,S).forEach($=>$.clearValidate())},m=x(()=>!!a.model),g=S=>{if(o.length===0)return[];const $=Tv(o,S);return $.length?$:[]},y=async S=>C(void 0,S),b=async(S=[])=>{if(!m.value)return!1;const $=g(S);if($.length===0)return!0;let E={};for(const R of $)try{await R.validate(""),R.validateState==="error"&&!R.error&&R.resetField()}catch(A){E={...E,...A}}return Object.keys(E).length===0?!0:Promise.reject(E)},C=async(S=[],$)=>{let E=!1;const R=!vt($);try{return E=await b(S),E===!0&&await($==null?void 0:$(E)),E}catch(A){if(A instanceof Error)throw A;const N=A;if(a.scrollToError&&s.value){const P=s.value.querySelector(`.${i.b()}-item.is-error`);P==null||P.scrollIntoView(a.scrollIntoViewOptions)}return!E&&await($==null?void 0:$(!1,N)),R&&Promise.reject(N)}},k=S=>{var $;const E=u(S);E&&(($=E.$el)==null||$.scrollIntoView(a.scrollIntoViewOptions))};return Te(()=>a.rules,()=>{a.validateOnRuleChange&&y().catch(S=>void 0)},{deep:!0,flush:"post"}),Gt(Xc,At({...Pa(a),emit:n,resetFields:v,clearValidate:h,validateField:C,getField:u,addField:d,removeField:p,...PY()})),t({validate:y,validateField:C,resetFields:v,clearValidate:h,scrollToField:k,getField:u,fields:o}),(S,$)=>(_(),w("form",{ref_key:"formRef",ref:s,class:V(f(c))},[be(S.$slots,"default")],2))}});var OY=ze(LY,[["__file","form.vue"]]);function mc(){return mc=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rh(e,t,n){return VY()?rh=Reflect.construct.bind():rh=function(s,o,r){var i=[null];i.push.apply(i,o);var c=Function.bind.apply(s,i),u=new c;return r&&lp(u,r.prototype),u},rh.apply(null,arguments)}function FY(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function I_(e){var t=typeof Map=="function"?new Map:void 0;return I_=function(a){if(a===null||!FY(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(a))return t.get(a);t.set(a,s)}function s(){return rh(a,arguments,T_(this).constructor)}return s.prototype=Object.create(a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),lp(s,a)},I_(e)}var UY=/%[sdj%]/g,zY=function(){};function A_(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var a=n.field;t[a]=t[a]||[],t[a].push(n)}),t}function Io(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a=o)return i;switch(i){case"%s":return String(n[s++]);case"%d":return Number(n[s++]);case"%j":try{return JSON.stringify(n[s++])}catch{return"[Circular]"}break;default:return i}});return r}return e}function HY(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function as(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||HY(t)&&typeof e=="string"&&!e)}function KY(e,t,n){var a=[],s=0,o=e.length;function r(i){a.push.apply(a,i||[]),s++,s===o&&n(a)}e.forEach(function(i){t(i,r)})}function tS(e,t,n){var a=0,s=e.length;function o(r){if(r&&r.length){n(r);return}var i=a;a=a+1,i()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},cf={integer:function(t){return cf.number(t)&&parseInt(t,10)===t},float:function(t){return cf.number(t)&&!cf.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!cf.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(oS.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(XY())},hex:function(t){return typeof t=="string"&&!!t.match(oS.hex)}},QY=function(t,n,a,s,o){if(t.required&&n===void 0){b8(t,n,a,s,o);return}var r=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=t.type;r.indexOf(i)>-1?cf[i](n)||s.push(Io(o.messages.types[i],t.fullField,t.type)):i&&typeof n!==t.type&&s.push(Io(o.messages.types[i],t.fullField,t.type))},JY=function(t,n,a,s,o){var r=typeof t.len=="number",i=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,p=null,v=typeof n=="number",h=typeof n=="string",m=Array.isArray(n);if(v?p="number":h?p="string":m&&(p="array"),!p)return!1;m&&(d=n.length),h&&(d=n.replace(u,"_").length),r?d!==t.len&&s.push(Io(o.messages[p].len,t.fullField,t.len)):i&&!c&&dt.max?s.push(Io(o.messages[p].max,t.fullField,t.max)):i&&c&&(dt.max)&&s.push(Io(o.messages[p].range,t.fullField,t.min,t.max))},iu="enum",ZY=function(t,n,a,s,o){t[iu]=Array.isArray(t[iu])?t[iu]:[],t[iu].indexOf(n)===-1&&s.push(Io(o.messages[iu],t.fullField,t[iu].join(", ")))},eX=function(t,n,a,s,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||s.push(Io(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var r=new RegExp(t.pattern);r.test(n)||s.push(Io(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Dn={required:b8,whitespace:YY,type:QY,range:JY,enum:ZY,pattern:eX},tX=function(t,n,a,s,o){var r=[],i=t.required||!t.required&&s.hasOwnProperty(t.field);if(i){if(as(n,"string")&&!t.required)return a();Dn.required(t,n,s,r,o,"string"),as(n,"string")||(Dn.type(t,n,s,r,o),Dn.range(t,n,s,r,o),Dn.pattern(t,n,s,r,o),t.whitespace===!0&&Dn.whitespace(t,n,s,r,o))}a(r)},nX=function(t,n,a,s,o){var r=[],i=t.required||!t.required&&s.hasOwnProperty(t.field);if(i){if(as(n)&&!t.required)return a();Dn.required(t,n,s,r,o),n!==void 0&&Dn.type(t,n,s,r,o)}a(r)},aX=function(t,n,a,s,o){var r=[],i=t.required||!t.required&&s.hasOwnProperty(t.field);if(i){if(n===""&&(n=void 0),as(n)&&!t.required)return a();Dn.required(t,n,s,r,o),n!==void 0&&(Dn.type(t,n,s,r,o),Dn.range(t,n,s,r,o))}a(r)},sX=function(t,n,a,s,o){var r=[],i=t.required||!t.required&&s.hasOwnProperty(t.field);if(i){if(as(n)&&!t.required)return a();Dn.required(t,n,s,r,o),n!==void 0&&Dn.type(t,n,s,r,o)}a(r)},oX=function(t,n,a,s,o){var r=[],i=t.required||!t.required&&s.hasOwnProperty(t.field);if(i){if(as(n)&&!t.required)return a();Dn.required(t,n,s,r,o),as(n)||Dn.type(t,n,s,r,o)}a(r)},rX=function(t,n,a,s,o){var r=[],i=t.required||!t.required&&s.hasOwnProperty(t.field);if(i){if(as(n)&&!t.required)return a();Dn.required(t,n,s,r,o),n!==void 0&&(Dn.type(t,n,s,r,o),Dn.range(t,n,s,r,o))}a(r)},lX=function(t,n,a,s,o){var r=[],i=t.required||!t.required&&s.hasOwnProperty(t.field);if(i){if(as(n)&&!t.required)return a();Dn.required(t,n,s,r,o),n!==void 0&&(Dn.type(t,n,s,r,o),Dn.range(t,n,s,r,o))}a(r)},iX=function(t,n,a,s,o){var r=[],i=t.required||!t.required&&s.hasOwnProperty(t.field);if(i){if(n==null&&!t.required)return a();Dn.required(t,n,s,r,o,"array"),n!=null&&(Dn.type(t,n,s,r,o),Dn.range(t,n,s,r,o))}a(r)},cX=function(t,n,a,s,o){var r=[],i=t.required||!t.required&&s.hasOwnProperty(t.field);if(i){if(as(n)&&!t.required)return a();Dn.required(t,n,s,r,o),n!==void 0&&Dn.type(t,n,s,r,o)}a(r)},uX="enum",dX=function(t,n,a,s,o){var r=[],i=t.required||!t.required&&s.hasOwnProperty(t.field);if(i){if(as(n)&&!t.required)return a();Dn.required(t,n,s,r,o),n!==void 0&&Dn[uX](t,n,s,r,o)}a(r)},fX=function(t,n,a,s,o){var r=[],i=t.required||!t.required&&s.hasOwnProperty(t.field);if(i){if(as(n,"string")&&!t.required)return a();Dn.required(t,n,s,r,o),as(n,"string")||Dn.pattern(t,n,s,r,o)}a(r)},pX=function(t,n,a,s,o){var r=[],i=t.required||!t.required&&s.hasOwnProperty(t.field);if(i){if(as(n,"date")&&!t.required)return a();if(Dn.required(t,n,s,r,o),!as(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),Dn.type(t,c,s,r,o),c&&Dn.range(t,c.getTime(),s,r,o)}}a(r)},vX=function(t,n,a,s,o){var r=[],i=Array.isArray(n)?"array":typeof n;Dn.required(t,n,s,r,o,i),a(r)},rg=function(t,n,a,s,o){var r=t.type,i=[],c=t.required||!t.required&&s.hasOwnProperty(t.field);if(c){if(as(n,r)&&!t.required)return a();Dn.required(t,n,s,i,o,r),as(n,r)||Dn.type(t,n,s,i,o)}a(i)},hX=function(t,n,a,s,o){var r=[],i=t.required||!t.required&&s.hasOwnProperty(t.field);if(i){if(as(n)&&!t.required)return a();Dn.required(t,n,s,r,o)}a(r)},If={string:tX,method:nX,number:aX,boolean:sX,regexp:oX,integer:rX,float:lX,array:iX,object:cX,enum:dX,pattern:fX,date:pX,url:rg,hex:rg,email:rg,required:vX,any:hX};function N_(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var R_=N_(),Op=function(){function e(n){this.rules=null,this._messages=R_,this.define(n)}var t=e.prototype;return t.define=function(a){var s=this;if(!a)throw new Error("Cannot configure a schema with no rules");if(typeof a!="object"||Array.isArray(a))throw new Error("Rules must be an object");this.rules={},Object.keys(a).forEach(function(o){var r=a[o];s.rules[o]=Array.isArray(r)?r:[r]})},t.messages=function(a){return a&&(this._messages=sS(N_(),a)),this._messages},t.validate=function(a,s,o){var r=this;s===void 0&&(s={}),o===void 0&&(o=function(){});var i=a,c=s,u=o;if(typeof c=="function"&&(u=c,c={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,i),Promise.resolve(i);function d(g){var y=[],b={};function C(S){if(Array.isArray(S)){var $;y=($=y).concat.apply($,S)}else y.push(S)}for(var k=0;k");const s=Le("form"),o=T(),r=T(0),i=()=>{var d;if((d=o.value)!=null&&d.firstElementChild){const p=window.getComputedStyle(o.value.firstElementChild).width;return Math.ceil(Number.parseFloat(p))}else return 0},c=(d="update")=>{it(()=>{t.default&&e.isAutoWidth&&(d==="update"?r.value=i():d==="remove"&&(n==null||n.deregisterLabelWidth(r.value)))})},u=()=>c("update");return ft(()=>{u()}),on(()=>{c("remove")}),$r(()=>u()),Te(r,(d,p)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,p))}),Xn(x(()=>{var d,p;return(p=(d=o.value)==null?void 0:d.firstElementChild)!=null?p:null}),u),()=>{var d,p;if(!t)return null;const{isAutoWidth:v}=e;if(v){const h=n==null?void 0:n.autoLabelWidth,m=a==null?void 0:a.hasLabel,g={};if(m&&h&&h!=="auto"){const y=Math.max(0,Number.parseInt(h,10)-r.value),C=(a.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";y&&(g[C]=`${y}px`)}return z("div",{ref:o,class:[s.be("item","label-wrap")],style:g},[(d=t.default)==null?void 0:d.call(t)])}else return z(_e,{ref:o},[(p=t.default)==null?void 0:p.call(t)])}}});const yX=le({name:"ElFormItem"}),bX=le({...yX,props:gX,setup(e,{expose:t}){const n=e,a=Ta(),s=Ze(Xc,void 0),o=Ze(tl,void 0),r=xa(void 0,{formItem:!1}),i=Le("form-item"),c=vs().value,u=T([]),d=T(""),p=y7(d,100),v=T(""),h=T();let m,g=!1;const y=x(()=>n.labelPosition||(s==null?void 0:s.labelPosition)),b=x(()=>{if(y.value==="top")return{};const H=sa(n.labelWidth||(s==null?void 0:s.labelWidth)||"");return H?{width:H}:{}}),C=x(()=>{if(y.value==="top"||s!=null&&s.inline)return{};if(!n.label&&!n.labelWidth&&P)return{};const H=sa(n.labelWidth||(s==null?void 0:s.labelWidth)||"");return!n.label&&!a.label?{marginLeft:H}:{}}),k=x(()=>[i.b(),i.m(r.value),i.is("error",d.value==="error"),i.is("validating",d.value==="validating"),i.is("success",d.value==="success"),i.is("required",q.value||n.required),i.is("no-asterisk",s==null?void 0:s.hideRequiredAsterisk),(s==null?void 0:s.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[i.m("feedback")]:s==null?void 0:s.statusIcon,[i.m(`label-${y.value}`)]:y.value}]),S=x(()=>En(n.inlineMessage)?n.inlineMessage:(s==null?void 0:s.inlineMessage)||!1),$=x(()=>[i.e("error"),{[i.em("error","inline")]:S.value}]),E=x(()=>n.prop?Ve(n.prop)?n.prop.join("."):n.prop:""),R=x(()=>!!(n.label||a.label)),A=x(()=>{var H;return(H=n.for)!=null?H:u.value.length===1?u.value[0]:void 0}),N=x(()=>!A.value&&R.value),P=!!o,B=x(()=>{const H=s==null?void 0:s.model;if(!(!H||!n.prop))return $f(H,n.prop).value}),M=x(()=>{const{required:H}=n,X=[];n.rules&&X.push(...es(n.rules));const he=s==null?void 0:s.rules;if(he&&n.prop){const D=$f(he,n.prop).value;D&&X.push(...es(D))}if(H!==void 0){const D=X.map((Y,ne)=>[Y,ne]).filter(([Y])=>Object.keys(Y).includes("required"));if(D.length>0)for(const[Y,ne]of D)Y.required!==H&&(X[ne]={...Y,required:H});else X.push({required:H})}return X}),j=x(()=>M.value.length>0),F=H=>M.value.filter(he=>!he.trigger||!H?!0:Ve(he.trigger)?he.trigger.includes(H):he.trigger===H).map(({trigger:he,...D})=>D),q=x(()=>M.value.some(H=>H.required)),L=x(()=>{var H;return p.value==="error"&&n.showMessage&&((H=s==null?void 0:s.showMessage)!=null?H:!0)}),U=x(()=>`${n.label||""}${(s==null?void 0:s.labelSuffix)||""}`),O=H=>{d.value=H},G=H=>{var X,he;const{errors:D,fields:Y}=H;(!D||!Y)&&console.error(H),O("error"),v.value=D?(he=(X=D==null?void 0:D[0])==null?void 0:X.message)!=null?he:`${n.prop} is required`:"",s==null||s.emit("validate",n.prop,!1,v.value)},ae=()=>{O("success"),s==null||s.emit("validate",n.prop,!0,"")},Z=async H=>{const X=E.value;return new Op({[X]:H}).validate({[X]:B.value},{firstFields:!0}).then(()=>(ae(),!0)).catch(D=>(G(D),Promise.reject(D)))},te=async(H,X)=>{if(g||!n.prop)return!1;const he=vt(X);if(!j.value)return X==null||X(!1),!1;const D=F(H);return D.length===0?(X==null||X(!0),!0):(O("validating"),Z(D).then(()=>(X==null||X(!0),!0)).catch(Y=>{const{fields:ne}=Y;return X==null||X(!1,ne),he?!1:Promise.reject(ne)}))},ie=()=>{O(""),v.value="",g=!1},oe=async()=>{const H=s==null?void 0:s.model;if(!H||!n.prop)return;const X=$f(H,n.prop);g=!0,X.value=VC(m),await it(),ie(),g=!1},J=H=>{u.value.includes(H)||u.value.push(H)},ee=H=>{u.value=u.value.filter(X=>X!==H)};Te(()=>n.error,H=>{v.value=H||"",O(H?"error":"")},{immediate:!0}),Te(()=>n.validateStatus,H=>O(H||""));const Q=At({...Pa(n),$el:h,size:r,validateMessage:v,validateState:d,labelId:c,inputIds:u,isGroup:N,hasLabel:R,fieldValue:B,addInputId:J,removeInputId:ee,resetField:oe,clearValidate:ie,validate:te,propString:E});return Gt(tl,Q),ft(()=>{n.prop&&(s==null||s.addField(Q),m=VC(B.value))}),on(()=>{s==null||s.removeField(Q)}),t({size:r,validateMessage:v,validateState:d,validate:te,clearValidate:ie,resetField:oe}),(H,X)=>{var he;return _(),w("div",{ref_key:"formItemRef",ref:h,class:V(f(k)),role:f(N)?"group":void 0,"aria-labelledby":f(N)?f(c):void 0},[z(f(_X),{"is-auto-width":f(b).width==="auto","update-all":((he=f(s))==null?void 0:he.labelWidth)==="auto"},{default:W(()=>[f(R)?(_(),ue(Ft(f(A)?"label":"div"),{key:0,id:f(c),for:f(A),class:V(f(i).e("label")),style:Je(f(b))},{default:W(()=>[be(H.$slots,"label",{label:f(U)},()=>[Ce(I(f(U)),1)])]),_:3},8,["id","for","class","style"])):K("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),l("div",{class:V(f(i).e("content")),style:Je(f(C))},[be(H.$slots,"default"),z(qx,{name:`${f(i).namespace.value}-zoom-in-top`},{default:W(()=>[f(L)?be(H.$slots,"error",{key:0,error:v.value},()=>[l("div",{class:V(f($))},I(v.value),3)]):K("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var w8=ze(bX,[["__file","form-item.vue"]]);const wX=Rt(OY,{FormItem:w8}),CX=ea(w8),kX=Ue({urlList:{type:ge(Array),default:()=>Zn([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:ge(String)}}),SX={close:()=>!0,switch:e=>gt(e),rotate:e=>gt(e)},EX=le({name:"ElImageViewer"}),$X=le({...EX,props:kX,emits:SX,setup(e,{expose:t,emit:n}){var a;const s=e,o={CONTAIN:{name:"contain",icon:Yo(B9)},ORIGINAL:{name:"original",icon:Yo(eV)}};let r,i="";const{t:c}=rn(),u=Le("image-viewer"),{nextZIndex:d}=kd(),p=T(),v=T([]),h=Q1(),m=T(!0),g=T(s.initialIndex),y=Fn(o.CONTAIN),b=T({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),C=T((a=s.zIndex)!=null?a:d()),k=x(()=>{const{urlList:ee}=s;return ee.length<=1}),S=x(()=>g.value===0),$=x(()=>g.value===s.urlList.length-1),E=x(()=>s.urlList[g.value]),R=x(()=>[u.e("btn"),u.e("prev"),u.is("disabled",!s.infinite&&S.value)]),A=x(()=>[u.e("btn"),u.e("next"),u.is("disabled",!s.infinite&&$.value)]),N=x(()=>{const{scale:ee,deg:Q,offsetX:H,offsetY:X,enableTransition:he}=b.value;let D=H/ee,Y=X/ee;const ne=Q*Math.PI/180,re=Math.cos(ne),se=Math.sin(ne);D=D*re+Y*se,Y=Y*re-H/ee*se;const ke={transform:`scale(${ee}) rotate(${Q}deg) translate(${D}px, ${Y}px)`,transition:he?"transform .3s":""};return y.value.name===o.CONTAIN.name&&(ke.maxWidth=ke.maxHeight="100%"),ke}),P=x(()=>`${g.value+1} / ${s.urlList.length}`);function B(){j(),r==null||r(),document.body.style.overflow=i,n("close")}function M(){const ee=Ec(H=>{switch(H.code){case tt.esc:s.closeOnPressEscape&&B();break;case tt.space:O();break;case tt.left:ae();break;case tt.up:te("zoomIn");break;case tt.right:Z();break;case tt.down:te("zoomOut");break}}),Q=Ec(H=>{const X=H.deltaY||H.deltaX;te(X<0?"zoomIn":"zoomOut",{zoomRate:s.zoomRate,enableTransition:!1})});h.run(()=>{Rn(document,"keydown",ee),Rn(document,"wheel",Q)})}function j(){h.stop()}function F(){m.value=!1}function q(ee){m.value=!1,ee.target.alt=c("el.image.error")}function L(ee){if(m.value||ee.button!==0||!p.value)return;b.value.enableTransition=!1;const{offsetX:Q,offsetY:H}=b.value,X=ee.pageX,he=ee.pageY,D=Ec(ne=>{b.value={...b.value,offsetX:Q+ne.pageX-X,offsetY:H+ne.pageY-he}}),Y=Rn(document,"mousemove",D);Rn(document,"mouseup",()=>{Y()}),ee.preventDefault()}function U(){b.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function O(){if(m.value)return;const ee=qu(o),Q=Object.values(o),H=y.value.name,he=(Q.findIndex(D=>D.name===H)+1)%ee.length;y.value=o[ee[he]],U()}function G(ee){const Q=s.urlList.length;g.value=(ee+Q)%Q}function ae(){S.value&&!s.infinite||G(g.value-1)}function Z(){$.value&&!s.infinite||G(g.value+1)}function te(ee,Q={}){if(m.value)return;const{minScale:H,maxScale:X}=s,{zoomRate:he,rotateDeg:D,enableTransition:Y}={zoomRate:s.zoomRate,rotateDeg:90,enableTransition:!0,...Q};switch(ee){case"zoomOut":b.value.scale>H&&(b.value.scale=Number.parseFloat((b.value.scale/he).toFixed(3)));break;case"zoomIn":b.value.scale0)return ee.preventDefault(),!1}}return Te(E,()=>{it(()=>{const ee=v.value[0];ee!=null&&ee.complete||(m.value=!0)})}),Te(g,ee=>{U(),n("switch",ee)}),ft(()=>{M(),r=Rn("wheel",J,{passive:!1}),i=document.body.style.overflow,document.body.style.overflow="hidden"}),t({setActiveItem:G}),(ee,Q)=>(_(),ue(f($d),{to:"body",disabled:!ee.teleported},{default:W(()=>[z(aa,{name:"viewer-fade",appear:""},{default:W(()=>[l("div",{ref_key:"wrapper",ref:p,tabindex:-1,class:V(f(u).e("wrapper")),style:Je({zIndex:C.value})},[z(f(Ed),{loop:"",trapped:"","focus-trap-el":p.value,"focus-start-el":"container",onFocusoutPrevented:ie,onReleaseRequested:oe},{default:W(()=>[l("div",{class:V(f(u).e("mask")),onClick:qe(H=>ee.hideOnClickModal&&B(),["self"])},null,10,["onClick"]),K(" CLOSE "),l("span",{class:V([f(u).e("btn"),f(u).e("close")]),onClick:B},[z(f(ct),null,{default:W(()=>[z(f(nr))]),_:1})],2),K(" ARROW "),f(k)?K("v-if",!0):(_(),w(_e,{key:0},[l("span",{class:V(f(R)),onClick:ae},[z(f(ct),null,{default:W(()=>[z(f(Bl))]),_:1})],2),l("span",{class:V(f(A)),onClick:Z},[z(f(ct),null,{default:W(()=>[z(f(Ds))]),_:1})],2)],64)),ee.$slots.progress||ee.showProgress?(_(),w("div",{key:1,class:V([f(u).e("btn"),f(u).e("progress")])},[be(ee.$slots,"progress",{activeIndex:g.value,total:ee.urlList.length},()=>[Ce(I(f(P)),1)])],2)):K("v-if",!0),K(" ACTIONS "),l("div",{class:V([f(u).e("btn"),f(u).e("actions")])},[l("div",{class:V(f(u).e("actions__inner"))},[be(ee.$slots,"toolbar",{actions:te,prev:ae,next:Z,reset:O,activeIndex:g.value,setActiveItem:G},()=>[z(f(ct),{onClick:H=>te("zoomOut")},{default:W(()=>[z(f(hV))]),_:1},8,["onClick"]),z(f(ct),{onClick:H=>te("zoomIn")},{default:W(()=>[z(f(pT))]),_:1},8,["onClick"]),l("i",{class:V(f(u).e("actions__divider"))},null,2),z(f(ct),{onClick:O},{default:W(()=>[(_(),ue(Ft(f(y).icon)))]),_:1}),l("i",{class:V(f(u).e("actions__divider"))},null,2),z(f(ct),{onClick:H=>te("anticlockwise")},{default:W(()=>[z(f(X9))]),_:1},8,["onClick"]),z(f(ct),{onClick:H=>te("clockwise")},{default:W(()=>[z(f(J9))]),_:1},8,["onClick"])])],2)],2),K(" CANVAS "),l("div",{class:V(f(u).e("canvas"))},[(_(!0),w(_e,null,Re(ee.urlList,(H,X)=>(_(),w(_e,{key:X},[X===g.value?(_(),w("img",{key:0,ref_for:!0,ref:he=>v.value[X]=he,src:H,style:Je(f(N)),class:V(f(u).e("img")),crossorigin:ee.crossorigin,onLoad:F,onError:q,onMousedown:L},null,46,["src","crossorigin"])):K("v-if",!0)],64))),128))],2),be(ee.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});var xX=ze($X,[["__file","image-viewer.vue"]]);const C8=Rt(xX),TX=Ue({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:ge([String,Object])},previewSrcList:{type:ge(Array),default:()=>Zn([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:ge(String)}}),IX={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>gt(e),close:()=>!0,show:()=>!0},AX=le({name:"ElImage",inheritAttrs:!1}),NX=le({...AX,props:TX,emits:IX,setup(e,{expose:t,emit:n}){const a=e,{t:s}=rn(),o=Le("image"),r=Fl(),i=x(()=>Jf(Object.entries(r).filter(([L])=>/^(data-|on[A-Z])/i.test(L)||["id","style"].includes(L)))),c=qm({excludeListeners:!0,excludeKeys:x(()=>Object.keys(i.value))}),u=T(),d=T(!1),p=T(!0),v=T(!1),h=T(),m=T(),g=cn&&"loading"in HTMLImageElement.prototype;let y;const b=x(()=>[o.e("inner"),k.value&&o.e("preview"),p.value&&o.is("loading")]),C=x(()=>{const{fit:L}=a;return cn&&L?{objectFit:L}:{}}),k=x(()=>{const{previewSrcList:L}=a;return Ve(L)&&L.length>0}),S=x(()=>{const{previewSrcList:L,initialIndex:U}=a;let O=U;return U>L.length-1&&(O=0),O}),$=x(()=>a.loading==="eager"?!1:!g&&a.loading==="lazy"||a.lazy),E=()=>{cn&&(p.value=!0,d.value=!1,u.value=a.src)};function R(L){p.value=!1,d.value=!1,n("load",L)}function A(L){p.value=!1,d.value=!0,n("error",L)}function N(L){L&&(E(),M())}const P=q4(N,200,!0);async function B(){var L;if(!cn)return;await it();const{scrollContainer:U}=a;if(no(U))m.value=U;else if(ut(U)&&U!=="")m.value=(L=document.querySelector(U))!=null?L:void 0;else if(h.value){const G=Oy(h.value);m.value=Ip(G)?void 0:G}const{stop:O}=I7(h,([G])=>{P(G.isIntersecting)},{root:m});y=O}function M(){!cn||!P||(y==null||y(),m.value=void 0,y=void 0)}function j(){k.value&&(v.value=!0,n("show"))}function F(){v.value=!1,n("close")}function q(L){n("switch",L)}return Te(()=>a.src,()=>{$.value?(p.value=!0,d.value=!1,M(),B()):E()}),ft(()=>{$.value?B():E()}),t({showPreview:j}),(L,U)=>(_(),w("div",Kt({ref_key:"container",ref:h},f(i),{class:[f(o).b(),L.$attrs.class]}),[d.value?be(L.$slots,"error",{key:0},()=>[l("div",{class:V(f(o).e("error"))},I(f(s)("el.image.error")),3)]):(_(),w(_e,{key:1},[u.value!==void 0?(_(),w("img",Kt({key:0},f(c),{src:u.value,loading:L.loading,style:f(C),class:f(b),crossorigin:L.crossorigin,onClick:j,onLoad:R,onError:A}),null,16,["src","loading","crossorigin"])):K("v-if",!0),p.value?(_(),w("div",{key:1,class:V(f(o).e("wrapper"))},[be(L.$slots,"placeholder",{},()=>[l("div",{class:V(f(o).e("placeholder"))},null,2)])],2)):K("v-if",!0)],64)),f(k)?(_(),w(_e,{key:2},[v.value?(_(),ue(f(C8),{key:0,"z-index":L.zIndex,"initial-index":f(S),infinite:L.infinite,"zoom-rate":L.zoomRate,"min-scale":L.minScale,"max-scale":L.maxScale,"show-progress":L.showProgress,"url-list":L.previewSrcList,crossorigin:L.crossorigin,"hide-on-click-modal":L.hideOnClickModal,teleported:L.previewTeleported,"close-on-press-escape":L.closeOnPressEscape,onClose:F,onSwitch:q},bo({toolbar:W(O=>[be(L.$slots,"toolbar",po(Jr(O)))]),default:W(()=>[L.$slots.viewer?(_(),w("div",{key:0},[be(L.$slots,"viewer")])):K("v-if",!0)]),_:2},[L.$slots.progress?{name:"progress",fn:W(O=>[be(L.$slots,"progress",po(Jr(O)))])}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):K("v-if",!0)],64)):K("v-if",!0)],16))}});var RX=ze(NX,[["__file","image.vue"]]);const PX=Rt(RX),MX=Ue({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:Boolean,size:Ma,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||gt(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...Ts(["ariaLabel"]),inputmode:{type:ge(String),default:void 0},align:{type:ge(String),default:"center"},disabledScientific:Boolean}),BX={[Xt]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Ra]:e=>gt(e)||ba(e),[Et]:e=>gt(e)||ba(e)},LX=le({name:"ElInputNumber"}),OX=le({...LX,props:MX,emits:BX,setup(e,{expose:t,emit:n}){const a=e,{t:s}=rn(),o=Le("input-number"),r=T(),i=At({currentValue:a.modelValue,userInput:null}),{formItem:c}=Is(),u=x(()=>gt(a.modelValue)&&a.modelValue<=a.min),d=x(()=>gt(a.modelValue)&&a.modelValue>=a.max),p=x(()=>{const L=b(a.step);return tn(a.precision)?Math.max(b(a.modelValue),L):(L>a.precision,a.precision)}),v=x(()=>a.controls&&a.controlsPosition==="right"),h=xa(),m=Xa(),g=x(()=>{if(i.userInput!==null)return i.userInput;let L=i.currentValue;if(ba(L))return"";if(gt(L)){if(Number.isNaN(L))return"";tn(a.precision)||(L=L.toFixed(a.precision))}return L}),y=(L,U)=>{if(tn(U)&&(U=p.value),U===0)return Math.round(L);let O=String(L);const G=O.indexOf(".");if(G===-1||!O.replace(".","").split("")[G+U])return L;const te=O.length;return O.charAt(te-1)==="5"&&(O=`${O.slice(0,Math.max(0,te-1))}6`),Number.parseFloat(Number(O).toFixed(U))},b=L=>{if(ba(L))return 0;const U=L.toString(),O=U.indexOf(".");let G=0;return O!==-1&&(G=U.length-O-1),G},C=(L,U=1)=>gt(L)?L>=Number.MAX_SAFE_INTEGER&&U===1||L<=Number.MIN_SAFE_INTEGER&&U===-1?L:y(L+a.step*U):i.currentValue,k=L=>{var U;const O=L;if(a.disabledScientific&&["e","E"].includes(O.key)){O.preventDefault();return}const G={[tt.up]:()=>{O.preventDefault(),S()},[tt.down]:()=>{O.preventDefault(),$()}};(U=G[O.key])==null||U.call(G)},S=()=>{if(a.readonly||m.value||d.value)return;const L=Number(g.value)||0,U=C(L);R(U),n(Ra,i.currentValue),F()},$=()=>{if(a.readonly||m.value||u.value)return;const L=Number(g.value)||0,U=C(L,-1);R(U),n(Ra,i.currentValue),F()},E=(L,U)=>{const{max:O,min:G,step:ae,precision:Z,stepStrictly:te,valueOnClear:ie}=a;OO||oeO?O:G,U&&n(Et,oe)),oe},R=(L,U=!0)=>{var O;const G=i.currentValue,ae=E(L);if(!U){n(Et,ae);return}G===ae&&L||(i.userInput=null,n(Et,ae),G!==ae&&n(Xt,ae,G),a.validateEvent&&((O=c==null?void 0:c.validate)==null||O.call(c,"change").catch(Z=>void 0)),i.currentValue=ae)},A=L=>{i.userInput=L;const U=L===""?null:Number(L);n(Ra,U),R(U,!1)},N=L=>{const U=L!==""?Number(L):"";(gt(U)&&!Number.isNaN(U)||L==="")&&R(U),F(),i.userInput=null},P=()=>{var L,U;(U=(L=r.value)==null?void 0:L.focus)==null||U.call(L)},B=()=>{var L,U;(U=(L=r.value)==null?void 0:L.blur)==null||U.call(L)},M=L=>{n("focus",L)},j=L=>{var U,O;i.userInput=null,i.currentValue===null&&((U=r.value)!=null&&U.input)&&(r.value.input.value=""),n("blur",L),a.validateEvent&&((O=c==null?void 0:c.validate)==null||O.call(c,"blur").catch(G=>void 0))},F=()=>{i.currentValue!==a.modelValue&&(i.currentValue=a.modelValue)},q=L=>{document.activeElement===L.target&&L.preventDefault()};return Te(()=>a.modelValue,(L,U)=>{const O=E(L,!0);i.userInput===null&&O!==U&&(i.currentValue=O)},{immediate:!0}),Te(()=>a.precision,()=>{i.currentValue=E(a.modelValue)}),ft(()=>{var L;const{min:U,max:O,modelValue:G}=a,ae=(L=r.value)==null?void 0:L.input;if(ae.setAttribute("role","spinbutton"),Number.isFinite(O)?ae.setAttribute("aria-valuemax",String(O)):ae.removeAttribute("aria-valuemax"),Number.isFinite(U)?ae.setAttribute("aria-valuemin",String(U)):ae.removeAttribute("aria-valuemin"),ae.setAttribute("aria-valuenow",i.currentValue||i.currentValue===0?String(i.currentValue):""),ae.setAttribute("aria-disabled",String(m.value)),!gt(G)&&G!=null){let Z=Number(G);Number.isNaN(Z)&&(Z=null),n(Et,Z)}ae.addEventListener("wheel",q,{passive:!1})}),$r(()=>{var L,U;const O=(L=r.value)==null?void 0:L.input;O==null||O.setAttribute("aria-valuenow",`${(U=i.currentValue)!=null?U:""}`)}),t({focus:P,blur:B}),(L,U)=>(_(),w("div",{class:V([f(o).b(),f(o).m(f(h)),f(o).is("disabled",f(m)),f(o).is("without-controls",!L.controls),f(o).is("controls-right",f(v)),f(o).is(L.align,!!L.align)]),onDragstart:qe(()=>{},["prevent"])},[L.controls?et((_(),w("span",{key:0,role:"button","aria-label":f(s)("el.inputNumber.decrease"),class:V([f(o).e("decrease"),f(o).is("disabled",f(u))]),onKeydown:yn($,["enter"])},[be(L.$slots,"decrease-icon",{},()=>[z(f(ct),null,{default:W(()=>[f(v)?(_(),ue(f(rl),{key:0})):(_(),ue(f(F9),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[f(Oh),$]]):K("v-if",!0),L.controls?et((_(),w("span",{key:1,role:"button","aria-label":f(s)("el.inputNumber.increase"),class:V([f(o).e("increase"),f(o).is("disabled",f(d))]),onKeydown:yn(S,["enter"])},[be(L.$slots,"increase-icon",{},()=>[z(f(ct),null,{default:W(()=>[f(v)?(_(),ue(f(Um),{key:0})):(_(),ue(f(dT),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[f(Oh),S]]):K("v-if",!0),z(f(Bs),{id:L.id,ref_key:"input",ref:r,type:"number",step:L.step,"model-value":f(g),placeholder:L.placeholder,readonly:L.readonly,disabled:f(m),size:f(h),max:L.max,min:L.min,name:L.name,"aria-label":L.ariaLabel,"validate-event":!1,inputmode:L.inputmode,onKeydown:k,onBlur:j,onFocus:M,onInput:A,onChange:N},bo({_:2},[L.$slots.prefix?{name:"prefix",fn:W(()=>[be(L.$slots,"prefix")])}:void 0,L.$slots.suffix?{name:"suffix",fn:W(()=>[be(L.$slots,"suffix")])}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],42,["onDragstart"]))}});var DX=ze(OX,[["__file","input-number.vue"]]);const k8=Rt(DX),VX=Ue({modelValue:{type:ge(Array)},max:Number,tagType:{...Ol.type,default:"info"},tagEffect:Ol.effect,trigger:{type:ge(String),default:tt.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:Ma,clearable:Boolean,clearIcon:{type:wn,default:Hl},disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:String,default:"off"},saveOnBlur:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},ariaLabel:String}),FX={[Et]:e=>Ve(e)||tn(e),[Xt]:e=>Ve(e)||tn(e),[Ra]:e=>ut(e),"add-tag":e=>ut(e)||Ve(e),"remove-tag":e=>ut(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function UX({props:e,emit:t,formItem:n}){const a=Xa(),s=xa(),o=Fn(),r=T(),i=T(),c=x(()=>["small"].includes(s.value)?"small":"default"),u=x(()=>{var F;return(F=e.modelValue)!=null&&F.length?void 0:e.placeholder}),d=x(()=>!(e.readonly||a.value)),p=x(()=>{var F,q;return tn(e.max)?!1:((q=(F=e.modelValue)==null?void 0:F.length)!=null?q:0)>=e.max}),v=x(()=>{var F;return e.collapseTags?(F=e.modelValue)==null?void 0:F.slice(0,e.maxCollapseTags):e.modelValue}),h=x(()=>{var F;return e.collapseTags?(F=e.modelValue)==null?void 0:F.slice(e.maxCollapseTags):[]}),m=F=>{var q;const L=[...(q=e.modelValue)!=null?q:[],...es(F)];t(Et,L),t(Xt,L),t("add-tag",F),r.value=void 0},g=F=>{var q,L;const U=F.split(e.delimiter).filter(O=>O&&O!==F);if(e.max){const O=e.max-((L=(q=e.modelValue)==null?void 0:q.length)!=null?L:0);U.splice(O)}return U.length===1?U[0]:U},y=F=>{if(p.value){r.value=void 0;return}if(!P.value){if(e.delimiter&&r.value){const q=g(r.value);q.length&&m(q)}t(Ra,F.target.value)}},b=F=>{var q;if(!P.value)switch(F.code){case e.trigger:F.preventDefault(),F.stopPropagation(),C();break;case tt.numpadEnter:e.trigger===tt.enter&&(F.preventDefault(),F.stopPropagation(),C());break;case tt.backspace:!r.value&&((q=e.modelValue)!=null&&q.length)&&(F.preventDefault(),F.stopPropagation(),k(e.modelValue.length-1));break}},C=()=>{var F;const q=(F=r.value)==null?void 0:F.trim();!q||p.value||m(q)},k=F=>{var q;const L=((q=e.modelValue)!=null?q:[]).slice(),[U]=L.splice(F,1);t(Et,L),t(Xt,L),t("remove-tag",U)},S=()=>{r.value=void 0,t(Et,void 0),t(Xt,void 0),t("clear")},$=(F,q,L)=>{var U;const O=((U=e.modelValue)!=null?U:[]).slice(),[G]=O.splice(F,1),ae=q>F&&L==="before"?-1:q{var F;(F=o.value)==null||F.focus()},R=()=>{var F;(F=o.value)==null||F.blur()},{wrapperRef:A,isFocused:N}=Kl(o,{disabled:a,beforeBlur(F){var q;return(q=i.value)==null?void 0:q.isFocusInsideContent(F)},afterBlur(){var F;e.saveOnBlur?C():r.value=void 0,e.validateEvent&&((F=n==null?void 0:n.validate)==null||F.call(n,"blur").catch(q=>void 0))}}),{isComposing:P,handleCompositionStart:B,handleCompositionUpdate:M,handleCompositionEnd:j}=Pp({afterComposition:y});return Te(()=>e.modelValue,()=>{var F;e.validateEvent&&((F=n==null?void 0:n.validate)==null||F.call(n,Xt).catch(q=>void 0))}),{inputRef:o,wrapperRef:A,tagTooltipRef:i,isFocused:N,isComposing:P,inputValue:r,size:s,tagSize:c,placeholder:u,closable:d,disabled:a,inputLimit:p,showTagList:v,collapseTagList:h,handleDragged:$,handleInput:y,handleKeydown:b,handleAddTag:C,handleRemoveTag:k,handleClear:S,handleCompositionStart:B,handleCompositionUpdate:M,handleCompositionEnd:j,focus:E,blur:R}}function zX(){const e=T(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}const Eb=11;function $b(){const e=Fn(),t=T(0),n=x(()=>({minWidth:`${Math.max(t.value,Eb)}px`}));return Xn(e,()=>{var s,o;t.value=(o=(s=e.value)==null?void 0:s.getBoundingClientRect().width)!=null?o:0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}function HX({wrapperRef:e,handleDragged:t,afterDragged:n}){const a=Le("input-tag"),s=Fn(),o=T(!1);let r,i,c,u;function d(m){return`.${a.e("inner")} .${a.namespace.value}-tag:nth-child(${m+1})`}function p(m,g){r=g,i=e.value.querySelector(d(g)),i&&(i.style.opacity="0.5"),m.dataTransfer.effectAllowed="move"}function v(m,g){if(c=g,m.preventDefault(),m.dataTransfer.dropEffect="move",tn(r)||r===g){o.value=!1;return}const y=e.value.querySelector(d(g)).getBoundingClientRect(),b=r+1!==g,C=r-1!==g,k=m.clientX-y.left,S=b?C?.5:1:-1,$=C?b?.5:0:1;k<=y.width*S?u="before":k>y.width*$?u="after":u=void 0;const E=e.value.querySelector(`.${a.e("inner")}`),R=E.getBoundingClientRect(),A=Number.parseFloat($l(E,"gap"))/2,N=y.top-R.top;let P=-9999;if(u==="before")P=Math.max(y.left-R.left-A,Math.floor(-A/2));else if(u==="after"){const B=y.right-R.left;P=B+(R.width===B?Math.floor(A/2):A)}aT(s.value,{top:`${N}px`,left:`${P}px`}),o.value=!!u}function h(m){m.preventDefault(),i&&(i.style.opacity=""),u&&!tn(r)&&!tn(c)&&r!==c&&t(r,c,u),o.value=!1,r=void 0,i=null,c=void 0,u=void 0,n==null||n()}return{dropIndicatorRef:s,showDropIndicator:o,handleDragStart:p,handleDragOver:v,handleDragEnd:h}}function KX({props:e,isFocused:t,hovering:n,disabled:a,inputValue:s,size:o,validateState:r,validateIcon:i,needStatusIcon:c}){const u=Fl(),d=Ta(),p=Le("input-tag"),v=Le("input"),h=x(()=>[p.b(),p.is("focused",t.value),p.is("hovering",n.value),p.is("disabled",a.value),p.m(o.value),p.e("wrapper"),u.class]),m=x(()=>[u.style]),g=x(()=>{var C,k;return[p.e("inner"),p.is("draggable",e.draggable),p.is("left-space",!((C=e.modelValue)!=null&&C.length)&&!d.prefix),p.is("right-space",!((k=e.modelValue)!=null&&k.length)&&!b.value)]}),y=x(()=>{var C;return e.clearable&&!a.value&&!e.readonly&&(((C=e.modelValue)==null?void 0:C.length)||s.value)&&(t.value||n.value)}),b=x(()=>d.suffix||y.value||r.value&&i.value&&c.value);return{ns:p,nsInput:v,containerKls:h,containerStyle:m,innerKls:g,showClear:y,showSuffix:b}}const qX=le({name:"ElInputTag",inheritAttrs:!1}),jX=le({...qX,props:VX,emits:FX,setup(e,{expose:t,emit:n}){const a=e,s=qm(),o=Ta(),{form:r,formItem:i}=Is(),{inputId:c}=rr(a,{formItemContext:i}),u=x(()=>{var se;return(se=r==null?void 0:r.statusIcon)!=null?se:!1}),d=x(()=>(i==null?void 0:i.validateState)||""),p=x(()=>d.value&&Km[d.value]),{inputRef:v,wrapperRef:h,tagTooltipRef:m,isFocused:g,inputValue:y,size:b,tagSize:C,placeholder:k,closable:S,disabled:$,showTagList:E,collapseTagList:R,handleDragged:A,handleInput:N,handleKeydown:P,handleRemoveTag:B,handleClear:M,handleCompositionStart:j,handleCompositionUpdate:F,handleCompositionEnd:q,focus:L,blur:U}=UX({props:a,emit:n,formItem:i}),{hovering:O,handleMouseEnter:G,handleMouseLeave:ae}=zX(),{calculatorRef:Z,inputStyle:te}=$b(),{dropIndicatorRef:ie,showDropIndicator:oe,handleDragStart:J,handleDragOver:ee,handleDragEnd:Q}=HX({wrapperRef:h,handleDragged:A,afterDragged:L}),{ns:H,nsInput:X,containerKls:he,containerStyle:D,innerKls:Y,showClear:ne,showSuffix:re}=KX({props:a,hovering:O,isFocused:g,inputValue:y,disabled:$,size:b,validateState:d,validateIcon:p,needStatusIcon:u});return t({focus:L,blur:U}),(se,ke)=>(_(),w("div",{ref_key:"wrapperRef",ref:h,class:V(f(he)),style:Je(f(D)),onMouseenter:f(G),onMouseleave:f(ae)},[f(o).prefix?(_(),w("div",{key:0,class:V(f(H).e("prefix"))},[be(se.$slots,"prefix")],2)):K("v-if",!0),l("div",{class:V(f(Y))},[(_(!0),w(_e,null,Re(f(E),(ye,Se)=>(_(),ue(f(Ti),{key:Se,size:f(C),closable:f(S),type:se.tagType,effect:se.tagEffect,draggable:f(S)&&se.draggable,"disable-transitions":"",onClose:ce=>f(B)(Se),onDragstart:ce=>f(J)(ce,Se),onDragover:ce=>f(ee)(ce,Se),onDragend:f(Q),onDrop:qe(()=>{},["stop"])},{default:W(()=>[be(se.$slots,"tag",{value:ye,index:Se},()=>[Ce(I(ye),1)])]),_:2},1032,["size","closable","type","effect","draggable","onClose","onDragstart","onDragover","onDragend","onDrop"]))),128)),se.collapseTags&&se.modelValue&&se.modelValue.length>se.maxCollapseTags?(_(),ue(f(hs),{key:0,ref_key:"tagTooltipRef",ref:m,disabled:!se.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:se.tagEffect,placement:"bottom"},{default:W(()=>[z(f(Ti),{closable:!1,size:f(C),type:se.tagType,effect:se.tagEffect,"disable-transitions":""},{default:W(()=>[Ce(" + "+I(se.modelValue.length-se.maxCollapseTags),1)]),_:1},8,["size","type","effect"])]),content:W(()=>[l("div",{class:V(f(H).e("input-tag-list"))},[(_(!0),w(_e,null,Re(f(R),(ye,Se)=>(_(),ue(f(Ti),{key:Se,size:f(C),closable:f(S),type:se.tagType,effect:se.tagEffect,"disable-transitions":"",onClose:ce=>f(B)(Se+se.maxCollapseTags)},{default:W(()=>[be(se.$slots,"tag",{value:ye,index:Se+se.maxCollapseTags},()=>[Ce(I(ye),1)])]),_:2},1032,["size","closable","type","effect","onClose"]))),128))],2)]),_:3},8,["disabled","effect"])):K("v-if",!0),l("div",{class:V(f(H).e("input-wrapper"))},[et(l("input",Kt({id:f(c),ref_key:"inputRef",ref:v,"onUpdate:modelValue":ye=>$n(y)?y.value=ye:null},f(s),{type:"text",minlength:se.minlength,maxlength:se.maxlength,disabled:f($),readonly:se.readonly,autocomplete:se.autocomplete,tabindex:se.tabindex,placeholder:f(k),autofocus:se.autofocus,ariaLabel:se.ariaLabel,class:f(H).e("input"),style:f(te),onCompositionstart:f(j),onCompositionupdate:f(F),onCompositionend:f(q),onInput:f(N),onKeydown:f(P)}),null,16,["id","onUpdate:modelValue","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onKeydown"]),[[hn,f(y)]]),l("span",{ref_key:"calculatorRef",ref:Z,"aria-hidden":"true",class:V(f(H).e("input-calculator")),textContent:I(f(y))},null,10,["textContent"])],2),et(l("div",{ref_key:"dropIndicatorRef",ref:ie,class:V(f(H).e("drop-indicator"))},null,2),[[fn,f(oe)]])],2),f(re)?(_(),w("div",{key:1,class:V(f(H).e("suffix"))},[be(se.$slots,"suffix"),f(ne)?(_(),ue(f(ct),{key:0,class:V([f(H).e("icon"),f(H).e("clear")]),onMousedown:qe(f(Cn),["prevent"]),onClick:f(M)},{default:W(()=>[(_(),ue(Ft(se.clearIcon)))]),_:1},8,["class","onMousedown","onClick"])):K("v-if",!0),f(d)&&f(p)&&f(u)?(_(),ue(f(ct),{key:1,class:V([f(X).e("icon"),f(X).e("validateIcon"),f(X).is("loading",f(d)==="validating")])},{default:W(()=>[(_(),ue(Ft(f(p))))]),_:1},8,["class"])):K("v-if",!0)],2)):K("v-if",!0)],46,["onMouseenter","onMouseleave"]))}});var WX=ze(jX,[["__file","input-tag.vue"]]);const GX=Rt(WX),YX=Ue({type:{type:String,values:["primary","success","warning","info","danger","default"],default:void 0},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:wn}}),XX={click:e=>e instanceof MouseEvent},QX=le({name:"ElLink"}),JX=le({...QX,props:YX,emits:XX,setup(e,{emit:t}){const n=e,a=Sd("link");Rl({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},x(()=>En(n.underline)));const s=Le("link"),o=x(()=>{var c,u,d;return[s.b(),s.m((d=(u=n.type)!=null?u:(c=a.value)==null?void 0:c.type)!=null?d:"default"),s.is("disabled",n.disabled),s.is("underline",r.value==="always"),s.is("hover-underline",r.value==="hover"&&!n.disabled)]}),r=x(()=>{var c,u,d;return En(n.underline)?n.underline?"hover":"never":(d=(u=n.underline)!=null?u:(c=a.value)==null?void 0:c.underline)!=null?d:"hover"});function i(c){n.disabled||t("click",c)}return(c,u)=>(_(),w("a",{class:V(f(o)),href:c.disabled||!c.href?void 0:c.href,target:c.disabled||!c.href?void 0:c.target,onClick:i},[c.icon?(_(),ue(f(ct),{key:0},{default:W(()=>[(_(),ue(Ft(c.icon)))]),_:1})):K("v-if",!0),c.$slots.default?(_(),w("span",{key:1,class:V(f(s).e("inner"))},[be(c.$slots,"default")],2)):K("v-if",!0),c.$slots.icon?be(c.$slots,"icon",{key:2}):K("v-if",!0)],10,["href","target"]))}});var ZX=ze(JX,[["__file","link.vue"]]);const eQ=Rt(ZX);let tQ=class{constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",a=>{let s=!1;switch(a.code){case tt.down:{this.gotoSubIndex(this.subIndex+1),s=!0;break}case tt.up:{this.gotoSubIndex(this.subIndex-1),s=!0;break}case tt.tab:{eh(t,"mouseleave");break}case tt.enter:case tt.numpadEnter:case tt.space:{s=!0,a.currentTarget.click();break}}return s&&(a.preventDefault(),a.stopPropagation()),!1})})}},nQ=class{constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new tQ(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case tt.down:{eh(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case tt.up:{eh(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case tt.tab:{eh(t.currentTarget,"mouseleave");break}case tt.enter:case tt.numpadEnter:case tt.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},aQ=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(a=>{a.nodeType===1&&new nQ(a,t)})}};const sQ=le({name:"ElMenuCollapseTransition"}),oQ=le({...sQ,setup(e){const t=Le("menu"),n={onBeforeEnter:a=>a.style.opacity="0.2",onEnter(a,s){Ho(a,`${t.namespace.value}-opacity-transition`),a.style.opacity="1",s()},onAfterEnter(a){Os(a,`${t.namespace.value}-opacity-transition`),a.style.opacity=""},onBeforeLeave(a){a.dataset||(a.dataset={}),vo(a,t.m("collapse"))?(Os(a,t.m("collapse")),a.dataset.oldOverflow=a.style.overflow,a.dataset.scrollWidth=a.clientWidth.toString(),Ho(a,t.m("collapse"))):(Ho(a,t.m("collapse")),a.dataset.oldOverflow=a.style.overflow,a.dataset.scrollWidth=a.clientWidth.toString(),Os(a,t.m("collapse"))),a.style.width=`${a.scrollWidth}px`,a.style.overflow="hidden"},onLeave(a){Ho(a,"horizontal-collapse-transition"),a.style.width=`${a.dataset.scrollWidth}px`}};return(a,s)=>(_(),ue(aa,Kt({mode:"out-in"},f(n)),{default:W(()=>[be(a.$slots,"default")]),_:3},16))}});var rQ=ze(oQ,[["__file","menu-collapse-transition.vue"]]);function S8(e,t){const n=x(()=>{let s=e.parent;const o=[t.value];for(;s.type.name!=="ElMenu";)s.props.index&&o.unshift(s.props.index),s=s.parent;return o});return{parentMenu:x(()=>{let s=e.parent;for(;s&&!["ElMenu","ElSubMenu"].includes(s.type.name);)s=s.parent;return s}),indexPath:n}}function lQ(e){return x(()=>{const n=e.backgroundColor;return n?new Cu(n).shade(20).toString():""})}const E8=(e,t)=>{const n=Le("menu");return x(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":lQ(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},xb="rootMenu",Uh="subMenu:",iQ=Ue({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:wn},expandOpenIcon:{type:wn},collapseCloseIcon:{type:wn},collapseOpenIcon:{type:wn}}),lg="ElSubMenu";var Tb=le({name:lg,props:iQ,setup(e,{slots:t,expose:n}){const a=qt(),{indexPath:s,parentMenu:o}=S8(a,x(()=>e.index)),r=Le("menu"),i=Le("sub-menu"),c=Ze(xb);c||Ca(lg,"can not inject root menu");const u=Ze(`${Uh}${o.value.uid}`);u||Ca(lg,"can not inject sub menu");const d=T({}),p=T({});let v;const h=T(!1),m=T(),g=T(),y=x(()=>A.value==="horizontal"&&C.value?"bottom-start":"right-start"),b=x(()=>A.value==="horizontal"&&C.value||A.value==="vertical"&&!c.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?E.value?e.expandOpenIcon:e.expandCloseIcon:rl:e.collapseCloseIcon&&e.collapseOpenIcon?E.value?e.collapseOpenIcon:e.collapseCloseIcon:Ds),C=x(()=>u.level===0),k=x(()=>{const Z=e.teleported;return tn(Z)?C.value:Z}),S=x(()=>c.props.collapse?`${r.namespace.value}-zoom-in-left`:`${r.namespace.value}-zoom-in-top`),$=x(()=>A.value==="horizontal"&&C.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),E=x(()=>c.openedMenus.includes(e.index)),R=x(()=>[...Object.values(d.value),...Object.values(p.value)].some(({active:Z})=>Z)),A=x(()=>c.props.mode),N=x(()=>c.props.persistent),P=At({index:e.index,indexPath:s,active:R}),B=E8(c.props,u.level+1),M=x(()=>{var Z;return(Z=e.popperOffset)!=null?Z:c.props.popperOffset}),j=x(()=>{var Z;return(Z=e.popperClass)!=null?Z:c.props.popperClass}),F=x(()=>{var Z;return(Z=e.showTimeout)!=null?Z:c.props.showTimeout}),q=x(()=>{var Z;return(Z=e.hideTimeout)!=null?Z:c.props.hideTimeout}),L=()=>{var Z,te,ie;return(ie=(te=(Z=g.value)==null?void 0:Z.popperRef)==null?void 0:te.popperInstanceRef)==null?void 0:ie.destroy()},U=Z=>{Z||L()},O=()=>{c.props.menuTrigger==="hover"&&c.props.mode==="horizontal"||c.props.collapse&&c.props.mode==="vertical"||e.disabled||c.handleSubMenuClick({index:e.index,indexPath:s.value,active:R.value})},G=(Z,te=F.value)=>{var ie;if(Z.type!=="focus"){if(c.props.menuTrigger==="click"&&c.props.mode==="horizontal"||!c.props.collapse&&c.props.mode==="vertical"||e.disabled){u.mouseInChild.value=!0;return}u.mouseInChild.value=!0,v==null||v(),{stop:v}=Lc(()=>{c.openMenu(e.index,s.value)},te),k.value&&((ie=o.value.vnode.el)==null||ie.dispatchEvent(new MouseEvent("mouseenter")))}},ae=(Z=!1)=>{var te;if(c.props.menuTrigger==="click"&&c.props.mode==="horizontal"||!c.props.collapse&&c.props.mode==="vertical"){u.mouseInChild.value=!1;return}v==null||v(),u.mouseInChild.value=!1,{stop:v}=Lc(()=>!h.value&&c.closeMenu(e.index,s.value),q.value),k.value&&Z&&((te=u.handleMouseleave)==null||te.call(u,!0))};Te(()=>c.props.collapse,Z=>U(!!Z));{const Z=ie=>{p.value[ie.index]=ie},te=ie=>{delete p.value[ie.index]};Gt(`${Uh}${a.uid}`,{addSubMenu:Z,removeSubMenu:te,handleMouseleave:ae,mouseInChild:h,level:u.level+1})}return n({opened:E}),ft(()=>{c.addSubMenu(P),u.addSubMenu(P)}),on(()=>{u.removeSubMenu(P),c.removeSubMenu(P)}),()=>{var Z;const te=[(Z=t.title)==null?void 0:Z.call(t),yt(ct,{class:i.e("icon-arrow"),style:{transform:E.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&c.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>ut(b.value)?yt(a.appContext.components[b.value]):yt(b.value)})],ie=c.isMenuPopup?yt(hs,{ref:g,visible:E.value,effect:"light",pure:!0,offset:M.value,showArrow:!1,persistent:N.value,popperClass:j.value,placement:y.value,teleported:k.value,fallbackPlacements:$.value,transition:S.value,gpuAcceleration:!1},{content:()=>{var oe;return yt("div",{class:[r.m(A.value),r.m("popup-container"),j.value],onMouseenter:J=>G(J,100),onMouseleave:()=>ae(!0),onFocus:J=>G(J,100)},[yt("ul",{class:[r.b(),r.m("popup"),r.m(`popup-${y.value}`)],style:B.value},[(oe=t.default)==null?void 0:oe.call(t)])])},default:()=>yt("div",{class:i.e("title"),onClick:O},te)}):yt(_e,{},[yt("div",{class:i.e("title"),ref:m,onClick:O},te),yt(Qm,{},{default:()=>{var oe;return et(yt("ul",{role:"menu",class:[r.b(),r.m("inline")],style:B.value},[(oe=t.default)==null?void 0:oe.call(t)]),[[fn,E.value]])}})]);return yt("li",{class:[i.b(),i.is("active",R.value),i.is("opened",E.value),i.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:E.value,onMouseenter:G,onMouseleave:()=>ae(),onFocus:G},[ie])}}});const cQ=Ue({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:ge(Array),default:()=>Zn([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:wn,default:()=>H9},popperEffect:{type:ge(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),ig=e=>Ve(e)&&e.every(t=>ut(t)),uQ={close:(e,t)=>ut(e)&&ig(t),open:(e,t)=>ut(e)&&ig(t),select:(e,t,n,a)=>ut(e)&&ig(t)&&Ot(n)&&(tn(a)||a instanceof Promise)};var dQ=le({name:"ElMenu",props:cQ,emits:uQ,setup(e,{emit:t,slots:n,expose:a}){const s=qt(),o=s.appContext.config.globalProperties.$router,r=T(),i=T(),c=Le("menu"),u=Le("sub-menu");let d=64;const p=T(-1),v=T(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),h=T(e.defaultActive),m=T({}),g=T({}),y=x(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),b=()=>{const U=h.value&&m.value[h.value];if(!U||e.mode==="horizontal"||e.collapse)return;U.indexPath.forEach(G=>{const ae=g.value[G];ae&&C(G,ae.indexPath)})},C=(U,O)=>{v.value.includes(U)||(e.uniqueOpened&&(v.value=v.value.filter(G=>O.includes(G))),v.value.push(U),t("open",U,O))},k=U=>{const O=v.value.indexOf(U);O!==-1&&v.value.splice(O,1)},S=(U,O)=>{k(U),t("close",U,O)},$=({index:U,indexPath:O})=>{v.value.includes(U)?S(U,O):C(U,O)},E=U=>{(e.mode==="horizontal"||e.collapse)&&(v.value=[]);const{index:O,indexPath:G}=U;if(!(ba(O)||ba(G)))if(e.router&&o){const ae=U.route||O,Z=o.push(ae).then(te=>(te||(h.value=O),te));t("select",O,G,{index:O,indexPath:G,route:ae},Z)}else h.value=O,t("select",O,G,{index:O,indexPath:G})},R=U=>{var O;const G=m.value,ae=G[U]||h.value&&G[h.value]||G[e.defaultActive];h.value=(O=ae==null?void 0:ae.index)!=null?O:U},A=U=>{const O=getComputedStyle(U),G=Number.parseInt(O.marginLeft,10),ae=Number.parseInt(O.marginRight,10);return U.offsetWidth+G+ae||0},N=()=>{var U,O;if(!r.value)return-1;const G=Array.from((O=(U=r.value)==null?void 0:U.childNodes)!=null?O:[]).filter(ee=>ee.nodeName!=="#comment"&&(ee.nodeName!=="#text"||ee.nodeValue)),ae=getComputedStyle(r.value),Z=Number.parseInt(ae.paddingLeft,10),te=Number.parseInt(ae.paddingRight,10),ie=r.value.clientWidth-Z-te;let oe=0,J=0;return G.forEach((ee,Q)=>{oe+=A(ee),oe<=ie-d&&(J=Q+1)}),J===G.length?-1:J},P=U=>g.value[U].indexPath,B=(U,O=33.34)=>{let G;return()=>{G&&clearTimeout(G),G=setTimeout(()=>{U()},O)}};let M=!0;const j=()=>{const U=Ha(i);if(U&&(d=A(U)||64),p.value===N())return;const O=()=>{p.value=-1,it(()=>{p.value=N()})};M?O():B(O)(),M=!1};Te(()=>e.defaultActive,U=>{m.value[U]||(h.value=""),R(U)}),Te(()=>e.collapse,U=>{U&&(v.value=[])}),Te(m.value,b);let F;Ls(()=>{e.mode==="horizontal"&&e.ellipsis?F=Xn(r,j).stop:F==null||F()});const q=T(!1);{const U=Z=>{g.value[Z.index]=Z},O=Z=>{delete g.value[Z.index]};Gt(xb,At({props:e,openedMenus:v,items:m,subMenus:g,activeIndex:h,isMenuPopup:y,addMenuItem:Z=>{m.value[Z.index]=Z},removeMenuItem:Z=>{delete m.value[Z.index]},addSubMenu:U,removeSubMenu:O,openMenu:C,closeMenu:S,handleMenuItemClick:E,handleSubMenuClick:$})),Gt(`${Uh}${s.uid}`,{addSubMenu:U,removeSubMenu:O,mouseInChild:q,level:0})}ft(()=>{e.mode==="horizontal"&&new aQ(s.vnode.el,c.namespace.value)}),a({open:O=>{const{indexPath:G}=g.value[O];G.forEach(ae=>C(ae,G))},close:k,updateActiveIndex:R,handleResize:j});const L=E8(e,0);return()=>{var U,O;let G=(O=(U=n.default)==null?void 0:U.call(n))!=null?O:[];const ae=[];if(e.mode==="horizontal"&&r.value){const ie=qr(G).filter(ee=>(ee==null?void 0:ee.shapeFlag)!==8),oe=p.value===-1?ie:ie.slice(0,p.value),J=p.value===-1?[]:ie.slice(p.value);J!=null&&J.length&&e.ellipsis&&(G=oe,ae.push(yt(Tb,{ref:i,index:"sub-menu-more",class:u.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>yt(ct,{class:u.e("icon-more")},{default:()=>yt(e.ellipsisIcon)}),default:()=>J})))}const Z=e.closeOnClickOutside?[[Dl,()=>{v.value.length&&(q.value||(v.value.forEach(ie=>t("close",ie,P(ie))),v.value=[]))}]]:[],te=et(yt("ul",{key:String(e.collapse),role:"menubar",ref:r,style:L.value,class:{[c.b()]:!0,[c.m(e.mode)]:!0,[c.m("collapse")]:e.collapse}},[...G,...ae]),Z);return e.collapseTransition&&e.mode==="vertical"?yt(rQ,()=>te):te}}});const fQ=Ue({index:{type:ge([String,null]),default:null},route:{type:ge([String,Object])},disabled:Boolean}),pQ={click:e=>ut(e.index)&&Ve(e.indexPath)},P_="ElMenuItem",vQ=le({name:P_}),hQ=le({...vQ,props:fQ,emits:pQ,setup(e,{expose:t,emit:n}){const a=e;mo(a.index)&&void 0;const s=qt(),o=Ze(xb),r=Le("menu"),i=Le("menu-item");o||Ca(P_,"can not inject root menu");const{parentMenu:c,indexPath:u}=S8(s,gn(a,"index")),d=Ze(`${Uh}${c.value.uid}`);d||Ca(P_,"can not inject sub menu");const p=x(()=>a.index===o.activeIndex),v=At({index:a.index,indexPath:u,active:p}),h=()=>{a.disabled||(o.handleMenuItemClick({index:a.index,indexPath:u.value,route:a.route}),n("click",v))};return ft(()=>{d.addSubMenu(v),o.addMenuItem(v)}),on(()=>{d.removeSubMenu(v),o.removeMenuItem(v)}),t({parentMenu:c,rootMenu:o,active:p,nsMenu:r,nsMenuItem:i,handleClick:h}),(m,g)=>(_(),w("li",{class:V([f(i).b(),f(i).is("active",f(p)),f(i).is("disabled",m.disabled)]),role:"menuitem",tabindex:"-1",onClick:h},[f(c).type.name==="ElMenu"&&f(o).props.collapse&&m.$slots.title?(_(),ue(f(hs),{key:0,effect:f(o).props.popperEffect,placement:"right","fallback-placements":["left"],persistent:f(o).props.persistent},{content:W(()=>[be(m.$slots,"title")]),default:W(()=>[l("div",{class:V(f(r).be("tooltip","trigger"))},[be(m.$slots,"default")],2)]),_:3},8,["effect","persistent"])):(_(),w(_e,{key:1},[be(m.$slots,"default"),be(m.$slots,"title")],64))],2))}});var $8=ze(hQ,[["__file","menu-item.vue"]]);const mQ={title:String},gQ=le({name:"ElMenuItemGroup"}),_Q=le({...gQ,props:mQ,setup(e){const t=Le("menu-item-group");return(n,a)=>(_(),w("li",{class:V(f(t).b())},[l("div",{class:V(f(t).e("title"))},[n.$slots.title?be(n.$slots,"title",{key:1}):(_(),w(_e,{key:0},[Ce(I(n.title),1)],64))],2),l("ul",null,[be(n.$slots,"default")])],2))}});var x8=ze(_Q,[["__file","menu-item-group.vue"]]);const yQ=Rt(dQ,{MenuItem:$8,MenuItemGroup:x8,SubMenu:Tb}),bQ=ea($8),wQ=ea(x8),CQ=ea(Tb),kQ=Ue({icon:{type:wn,default:()=>h9},title:String,content:{type:String,default:""}}),SQ={back:()=>!0},EQ=le({name:"ElPageHeader"}),$Q=le({...EQ,props:kQ,emits:SQ,setup(e,{emit:t}){const{t:n}=rn(),a=Le("page-header");function s(){t("back")}return(o,r)=>(_(),w("div",{class:V([f(a).b(),{[f(a).m("has-breadcrumb")]:!!o.$slots.breadcrumb,[f(a).m("has-extra")]:!!o.$slots.extra,[f(a).is("contentful")]:!!o.$slots.default}])},[o.$slots.breadcrumb?(_(),w("div",{key:0,class:V(f(a).e("breadcrumb"))},[be(o.$slots,"breadcrumb")],2)):K("v-if",!0),l("div",{class:V(f(a).e("header"))},[l("div",{class:V(f(a).e("left"))},[l("div",{class:V(f(a).e("back")),role:"button",tabindex:"0",onClick:s},[o.icon||o.$slots.icon?(_(),w("div",{key:0,"aria-label":o.title||f(n)("el.pageHeader.title"),class:V(f(a).e("icon"))},[be(o.$slots,"icon",{},()=>[o.icon?(_(),ue(f(ct),{key:0},{default:W(()=>[(_(),ue(Ft(o.icon)))]),_:1})):K("v-if",!0)])],10,["aria-label"])):K("v-if",!0),l("div",{class:V(f(a).e("title"))},[be(o.$slots,"title",{},()=>[Ce(I(o.title||f(n)("el.pageHeader.title")),1)])],2)],2),z(f(o8),{direction:"vertical"}),l("div",{class:V(f(a).e("content"))},[be(o.$slots,"content",{},()=>[Ce(I(o.content),1)])],2)],2),o.$slots.extra?(_(),w("div",{key:0,class:V(f(a).e("extra"))},[be(o.$slots,"extra")],2)):K("v-if",!0)],2),o.$slots.default?(_(),w("div",{key:1,class:V(f(a).e("main"))},[be(o.$slots,"default")],2)):K("v-if",!0)],2))}});var xQ=ze($Q,[["__file","page-header.vue"]]);const TQ=Rt(xQ),T8=Symbol("elPaginationKey"),IQ=Ue({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:wn}}),AQ={click:e=>e instanceof MouseEvent},NQ=le({name:"ElPaginationPrev"}),RQ=le({...NQ,props:IQ,emits:AQ,setup(e){const t=e,{t:n}=rn(),a=x(()=>t.disabled||t.currentPage<=1);return(s,o)=>(_(),w("button",{type:"button",class:"btn-prev",disabled:f(a),"aria-label":s.prevText||f(n)("el.pagination.prev"),"aria-disabled":f(a),onClick:r=>s.$emit("click",r)},[s.prevText?(_(),w("span",{key:0},I(s.prevText),1)):(_(),ue(f(ct),{key:1},{default:W(()=>[(_(),ue(Ft(s.prevIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var PQ=ze(RQ,[["__file","prev.vue"]]);const MQ=Ue({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:wn}}),BQ=le({name:"ElPaginationNext"}),LQ=le({...BQ,props:MQ,emits:["click"],setup(e){const t=e,{t:n}=rn(),a=x(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(s,o)=>(_(),w("button",{type:"button",class:"btn-next",disabled:f(a),"aria-label":s.nextText||f(n)("el.pagination.next"),"aria-disabled":f(a),onClick:r=>s.$emit("click",r)},[s.nextText?(_(),w("span",{key:0},I(s.nextText),1)):(_(),ue(f(ct),{key:1},{default:W(()=>[(_(),ue(Ft(s.nextIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var OQ=ze(LQ,[["__file","next.vue"]]);const Ib={label:"label",value:"value",disabled:"disabled",options:"options"};function Dp(e){const t=x(()=>({...Ib,...e.props}));return{aliasProps:t,getLabel:r=>ya(r,t.value.label),getValue:r=>ya(r,t.value.value),getDisabled:r=>ya(r,t.value.disabled),getOptions:r=>ya(r,t.value.options)}}const I8=Symbol("ElSelectGroup"),Td=Symbol("ElSelect"),M_="ElOption",DQ=Ue({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),Ab=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),vi=e=>Cp(e);function VQ(e,t){const n=Ze(Td);n||Ca(M_,"usage: ");const a=Ze(I8,{disabled:!1}),s=x(()=>d(es(n.props.modelValue),e.value)),o=x(()=>{var h;if(n.props.multiple){const m=es((h=n.props.modelValue)!=null?h:[]);return!s.value&&m.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),r=x(()=>{var h;return(h=e.label)!=null?h:Ot(e.value)?"":e.value}),i=x(()=>e.value||e.label||""),c=x(()=>e.disabled||t.groupDisabled||o.value),u=qt(),d=(h=[],m)=>{if(Ot(e.value)){const g=n.props.valueKey;return h&&h.some(y=>Tn(ya(y,g))===ya(m,g))}else return h&&h.includes(m)},p=()=>{!e.disabled&&!a.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},v=h=>{const m=new RegExp(Ab(h),"i");t.visible=m.test(String(r.value))||e.created};return Te(()=>r.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),Te(()=>e.value,(h,m)=>{const{remote:g,valueKey:y}=n.props;if((g?h!==m:!$a(h,m))&&(n.onOptionDestroy(m,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!g){if(y&&Ot(h)&&Ot(m)&&h[y]===m[y])return;n.setSelected()}}),Te(()=>a.disabled,()=>{t.groupDisabled=a.disabled},{immediate:!0}),{select:n,currentLabel:r,currentValue:i,itemSelected:s,isDisabled:c,hoverItem:p,updateOption:v}}const FQ=le({name:M_,componentName:M_,props:DQ,setup(e){const t=Le("select"),n=vs(),a=x(()=>[t.be("dropdown","item"),t.is("disabled",f(i)),t.is("selected",f(r)),t.is("hovering",f(v))]),s=At({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:o,itemSelected:r,isDisabled:i,select:c,hoverItem:u,updateOption:d}=VQ(e,s),{visible:p,hover:v}=Pa(s),h=qt().proxy;c.onOptionCreate(h),on(()=>{const g=h.value;it(()=>{const{selected:y}=c.states,b=y.some(C=>C.value===h.value);c.states.cachedOptions.get(g)===h&&!b&&c.states.cachedOptions.delete(g)}),c.onOptionDestroy(g,h)});function m(){i.value||c.handleOptionSelect(h)}return{ns:t,id:n,containerKls:a,currentLabel:o,itemSelected:r,isDisabled:i,select:c,visible:p,hover:v,states:s,hoverItem:u,updateOption:d,selectOptionClick:m}}});function UQ(e,t){return et((_(),w("li",{id:e.id,class:V(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:qe(e.selectOptionClick,["stop"])},[be(e.$slots,"default",{},()=>[l("span",null,I(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[fn,e.visible]])}var Nb=ze(FQ,[["render",UQ],["__file","option.vue"]]);const zQ=le({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Ze(Td),t=Le("select"),n=x(()=>e.props.popperClass),a=x(()=>e.props.multiple),s=x(()=>e.props.fitInputWidth),o=T("");function r(){var i;o.value=`${(i=e.selectRef)==null?void 0:i.offsetWidth}px`}return ft(()=>{r(),Xn(e.selectRef,r)}),{ns:t,minWidth:o,popperClass:n,isMultiple:a,isFitInputWidth:s}}});function HQ(e,t,n,a,s,o){return _(),w("div",{class:V([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Je({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(_(),w("div",{key:0,class:V(e.ns.be("dropdown","header"))},[be(e.$slots,"header")],2)):K("v-if",!0),be(e.$slots,"default"),e.$slots.footer?(_(),w("div",{key:1,class:V(e.ns.be("dropdown","footer"))},[be(e.$slots,"footer")],2)):K("v-if",!0)],6)}var KQ=ze(zQ,[["render",HQ],["__file","select-dropdown.vue"]]);const qQ=(e,t)=>{const{t:n}=rn(),a=vs(),s=Le("select"),o=Le("input"),r=At({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),i=T(),c=T(),u=T(),d=T(),p=T(),v=T(),h=T(),m=T(),g=T(),y=T(),b=T(),C=T(!1),k=T(),{form:S,formItem:$}=Is(),{inputId:E}=rr(e,{formItemContext:$}),{valueOnClear:R,isEmptyValue:A}=Ap(e),{isComposing:N,handleCompositionStart:P,handleCompositionUpdate:B,handleCompositionEnd:M}=Pp({afterComposition:Ye=>It(Ye)}),j=x(()=>e.disabled||!!(S!=null&&S.disabled)),{wrapperRef:F,isFocused:q,handleBlur:L}=Kl(p,{disabled:j,afterFocus(){e.automaticDropdown&&!C.value&&(C.value=!0,r.menuVisibleOnFocus=!0)},beforeBlur(Ye){var ht,un;return((ht=u.value)==null?void 0:ht.isFocusInsideContent(Ye))||((un=d.value)==null?void 0:un.isFocusInsideContent(Ye))},afterBlur(){var Ye;C.value=!1,r.menuVisibleOnFocus=!1,e.validateEvent&&((Ye=$==null?void 0:$.validate)==null||Ye.call($,"blur").catch(ht=>void 0))}}),U=x(()=>Ve(e.modelValue)?e.modelValue.length>0:!A(e.modelValue)),O=x(()=>{var Ye;return(Ye=S==null?void 0:S.statusIcon)!=null?Ye:!1}),G=x(()=>e.clearable&&!j.value&&U.value&&(q.value||r.inputHovering)),ae=x(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Z=x(()=>s.is("reverse",!!(ae.value&&C.value))),te=x(()=>($==null?void 0:$.validateState)||""),ie=x(()=>te.value&&Km[te.value]),oe=x(()=>e.remote?300:0),J=x(()=>e.remote&&!r.inputValue&&r.options.size===0),ee=x(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&r.inputValue&&r.options.size>0&&Q.value===0?e.noMatchText||n("el.select.noMatch"):r.options.size===0?e.noDataText||n("el.select.noData"):null),Q=x(()=>H.value.filter(Ye=>Ye.visible).length),H=x(()=>{const Ye=Array.from(r.options.values()),ht=[];return r.optionValues.forEach(un=>{const ra=Ye.findIndex(Ua=>Ua.value===un);ra>-1&&ht.push(Ye[ra])}),ht.length>=Ye.length?ht:Ye}),X=x(()=>Array.from(r.cachedOptions.values())),he=x(()=>{const Ye=H.value.filter(ht=>!ht.created).some(ht=>ht.currentLabel===r.inputValue);return e.filterable&&e.allowCreate&&r.inputValue!==""&&!Ye}),D=()=>{e.filterable&&vt(e.filterMethod)||e.filterable&&e.remote&&vt(e.remoteMethod)||H.value.forEach(Ye=>{var ht;(ht=Ye.updateOption)==null||ht.call(Ye,r.inputValue)})},Y=xa(),ne=x(()=>["small"].includes(Y.value)?"small":"default"),re=x({get(){return C.value&&!J.value},set(Ye){C.value=Ye}}),se=x(()=>{if(e.multiple&&!tn(e.modelValue))return es(e.modelValue).length===0&&!r.inputValue;const Ye=Ve(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||tn(Ye)?!r.inputValue:!0}),ke=x(()=>{var Ye;const ht=(Ye=e.placeholder)!=null?Ye:n("el.select.placeholder");return e.multiple||!U.value?ht:r.selectedLabel}),ye=x(()=>Ph?null:"mouseenter");Te(()=>e.modelValue,(Ye,ht)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(r.inputValue="",Se("")),we(),!$a(Ye,ht)&&e.validateEvent&&($==null||$.validate("change").catch(un=>void 0))},{flush:"post",deep:!0}),Te(()=>C.value,Ye=>{Ye?Se(r.inputValue):(r.inputValue="",r.previousQuery=null,r.isBeforeHide=!0),t("visible-change",Ye)}),Te(()=>r.options.entries(),()=>{cn&&(we(),e.defaultFirstOption&&(e.filterable||e.remote)&&Q.value&&ce())},{flush:"post"}),Te([()=>r.hoveringIndex,H],([Ye])=>{gt(Ye)&&Ye>-1?k.value=H.value[Ye]||{}:k.value={},H.value.forEach(ht=>{ht.hover=k.value===ht})}),Ls(()=>{r.isBeforeHide||D()});const Se=Ye=>{r.previousQuery===Ye||N.value||(r.previousQuery=Ye,e.filterable&&vt(e.filterMethod)?e.filterMethod(Ye):e.filterable&&e.remote&&vt(e.remoteMethod)&&e.remoteMethod(Ye),e.defaultFirstOption&&(e.filterable||e.remote)&&Q.value?it(ce):it(Fe))},ce=()=>{const Ye=H.value.filter(Ua=>Ua.visible&&!Ua.disabled&&!Ua.states.groupDisabled),ht=Ye.find(Ua=>Ua.created),un=Ye[0],ra=H.value.map(Ua=>Ua.value);r.hoveringIndex=pe(ra,ht||un)},we=()=>{if(e.multiple)r.selectedLabel="";else{const ht=Ve(e.modelValue)?e.modelValue[0]:e.modelValue,un=Ae(ht);r.selectedLabel=un.currentLabel,r.selected=[un];return}const Ye=[];tn(e.modelValue)||es(e.modelValue).forEach(ht=>{Ye.push(Ae(ht))}),r.selected=Ye},Ae=Ye=>{let ht;const un=Df(Ye);for(let qs=r.cachedOptions.size-1;qs>=0;qs--){const js=X.value[qs];if(un?ya(js.value,e.valueKey)===ya(Ye,e.valueKey):js.value===Ye){ht={value:Ye,currentLabel:js.currentLabel,get isDisabled(){return js.isDisabled}};break}}if(ht)return ht;const ra=un?Ye.label:Ye??"";return{value:Ye,currentLabel:ra}},Fe=()=>{r.hoveringIndex=H.value.findIndex(Ye=>r.selected.some(ht=>Ut(ht)===Ut(Ye)))},xe=()=>{r.selectionWidth=Number.parseFloat(window.getComputedStyle(c.value).width)},me=()=>{r.collapseItemWidth=y.value.getBoundingClientRect().width},Me=()=>{var Ye,ht;(ht=(Ye=u.value)==null?void 0:Ye.updatePopper)==null||ht.call(Ye)},at=()=>{var Ye,ht;(ht=(Ye=d.value)==null?void 0:Ye.updatePopper)==null||ht.call(Ye)},Qe=()=>{r.inputValue.length>0&&!C.value&&(C.value=!0),Se(r.inputValue)},It=Ye=>{if(r.inputValue=Ye.target.value,e.remote)je();else return Qe()},je=wo(()=>{Qe()},oe.value),Vt=Ye=>{$a(e.modelValue,Ye)||t(Xt,Ye)},kt=Ye=>V4(Ye,ht=>{const un=r.cachedOptions.get(ht);return un&&!un.disabled&&!un.states.groupDisabled}),Mt=Ye=>{if(e.multiple&&Ye.code!==tt.delete&&Ye.target.value.length<=0){const ht=es(e.modelValue).slice(),un=kt(ht);if(un<0)return;const ra=ht[un];ht.splice(un,1),t(Et,ht),Vt(ht),t("remove-tag",ra)}},Ht=(Ye,ht)=>{const un=r.selected.indexOf(ht);if(un>-1&&!j.value){const ra=es(e.modelValue).slice();ra.splice(un,1),t(Et,ra),Vt(ra),t("remove-tag",ht.value)}Ye.stopPropagation(),Ln()},Ee=Ye=>{Ye.stopPropagation();const ht=e.multiple?[]:R.value;if(e.multiple)for(const un of r.selected)un.isDisabled&&ht.push(un.value);t(Et,ht),Vt(ht),r.hoveringIndex=-1,C.value=!1,t("clear"),Ln()},We=Ye=>{var ht;if(e.multiple){const un=es((ht=e.modelValue)!=null?ht:[]).slice(),ra=pe(un,Ye);ra>-1?un.splice(ra,1):(e.multipleLimit<=0||un.length{Oe(Ye)})},pe=(Ye,ht)=>tn(ht)?-1:Ot(ht.value)?Ye.findIndex(un=>$a(ya(un,e.valueKey),Ut(ht))):Ye.indexOf(ht.value),Oe=Ye=>{var ht,un,ra,Ua,qs;const js=Ve(Ye)?Ye[0]:Ye;let Lo=null;if(js!=null&&js.value){const lo=H.value.filter(Yl=>Yl.value===js.value);lo.length>0&&(Lo=lo[0].$el)}if(u.value&&Lo){const lo=(Ua=(ra=(un=(ht=u.value)==null?void 0:ht.popperRef)==null?void 0:un.contentRef)==null?void 0:ra.querySelector)==null?void 0:Ua.call(ra,`.${s.be("dropdown","wrap")}`);lo&&Dy(lo,Lo)}(qs=b.value)==null||qs.handleScroll()},ot=Ye=>{r.options.set(Ye.value,Ye),r.cachedOptions.set(Ye.value,Ye)},St=(Ye,ht)=>{r.options.get(Ye)===ht&&r.options.delete(Ye)},vn=x(()=>{var Ye,ht;return(ht=(Ye=u.value)==null?void 0:Ye.popperRef)==null?void 0:ht.contentRef}),_n=()=>{r.isBeforeHide=!1,it(()=>{var Ye;(Ye=b.value)==null||Ye.update(),Oe(r.selected)})},Ln=()=>{var Ye;(Ye=p.value)==null||Ye.focus()},oo=()=>{var Ye;if(C.value){C.value=!1,it(()=>{var ht;return(ht=p.value)==null?void 0:ht.blur()});return}(Ye=p.value)==null||Ye.blur()},_s=Ye=>{Ee(Ye)},qa=Ye=>{if(C.value=!1,q.value){const ht=new FocusEvent("blur",Ye);it(()=>L(ht))}},en=()=>{r.inputValue.length>0?r.inputValue="":C.value=!1},st=()=>{j.value||(Ph&&(r.inputHovering=!0),r.menuVisibleOnFocus?r.menuVisibleOnFocus=!1:C.value=!C.value)},nn=()=>{if(!C.value)st();else{const Ye=H.value[r.hoveringIndex];Ye&&!Ye.isDisabled&&We(Ye)}},Ut=Ye=>Ot(Ye.value)?ya(Ye.value,e.valueKey):Ye.value,Ja=x(()=>H.value.filter(Ye=>Ye.visible).every(Ye=>Ye.isDisabled)),Hs=x(()=>e.multiple?e.collapseTags?r.selected.slice(0,e.maxCollapseTags):r.selected:[]),Ks=x(()=>e.multiple?e.collapseTags?r.selected.slice(e.maxCollapseTags):[]:[]),cr=Ye=>{if(!C.value){C.value=!0;return}if(!(r.options.size===0||Q.value===0||N.value)&&!Ja.value){Ye==="next"?(r.hoveringIndex++,r.hoveringIndex===r.options.size&&(r.hoveringIndex=0)):Ye==="prev"&&(r.hoveringIndex--,r.hoveringIndex<0&&(r.hoveringIndex=r.options.size-1));const ht=H.value[r.hoveringIndex];(ht.isDisabled||!ht.visible)&&cr(Ye),it(()=>Oe(k.value))}},As=()=>{if(!c.value)return 0;const Ye=window.getComputedStyle(c.value);return Number.parseFloat(Ye.gap||"6px")},Rr=x(()=>{const Ye=As(),ht=e.filterable?Ye+Eb:0;return{maxWidth:`${y.value&&e.maxCollapseTags===1?r.selectionWidth-r.collapseItemWidth-Ye-ht:r.selectionWidth-ht}px`}}),Wi=x(()=>({maxWidth:`${r.selectionWidth}px`})),ro=Ye=>{t("popup-scroll",Ye)};Xn(c,xe),Xn(F,Me),Xn(g,at),Xn(y,me);let ur;return Te(()=>re.value,Ye=>{Ye?ur=Xn(m,Me).stop:(ur==null||ur(),ur=void 0)}),ft(()=>{we()}),{inputId:E,contentId:a,nsSelect:s,nsInput:o,states:r,isFocused:q,expanded:C,optionsArray:H,hoverOption:k,selectSize:Y,filteredOptionsCount:Q,updateTooltip:Me,updateTagTooltip:at,debouncedOnInputChange:je,onInput:It,deletePrevTag:Mt,deleteTag:Ht,deleteSelected:Ee,handleOptionSelect:We,scrollToOption:Oe,hasModelValue:U,shouldShowPlaceholder:se,currentPlaceholder:ke,mouseEnterEventName:ye,needStatusIcon:O,showClearBtn:G,iconComponent:ae,iconReverse:Z,validateState:te,validateIcon:ie,showNewOption:he,updateOptions:D,collapseTagSize:ne,setSelected:we,selectDisabled:j,emptyText:ee,handleCompositionStart:P,handleCompositionUpdate:B,handleCompositionEnd:M,onOptionCreate:ot,onOptionDestroy:St,handleMenuEnter:_n,focus:Ln,blur:oo,handleClearClick:_s,handleClickOutside:qa,handleEsc:en,toggleMenu:st,selectOption:nn,getValueKey:Ut,navigateOptions:cr,dropdownMenuVisible:re,showTagList:Hs,collapseTagList:Ks,popupScroll:ro,tagStyle:Rr,collapseTagStyle:Wi,popperRef:vn,inputRef:p,tooltipRef:u,tagTooltipRef:d,prefixRef:v,suffixRef:h,selectRef:i,wrapperRef:F,selectionRef:c,scrollbarRef:b,menuRef:m,tagMenuRef:g,collapseItemRef:y}};var jQ=le({name:"ElOptions",setup(e,{slots:t}){const n=Ze(Td);let a=[];return()=>{var s,o;const r=(s=t.default)==null?void 0:s.call(t),i=[];function c(u){Ve(u)&&u.forEach(d=>{var p,v,h,m;const g=(p=(d==null?void 0:d.type)||{})==null?void 0:p.name;g==="ElOptionGroup"?c(!ut(d.children)&&!Ve(d.children)&&vt((v=d.children)==null?void 0:v.default)?(h=d.children)==null?void 0:h.default():d.children):g==="ElOption"?i.push((m=d.props)==null?void 0:m.value):Ve(d.children)&&c(d.children)})}return r.length&&c((o=r[0])==null?void 0:o.children),$a(i,a)||(a=i,n&&(n.states.optionValues=i)),r}}});const WQ=Ue({name:String,id:String,modelValue:{type:ge([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Ma,effect:{type:ge(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:ge([String,Object])},popperOptions:{type:ge(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:ge(Function)},filterMethod:{type:ge(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Yn.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:wn,default:Hl},fitInputWidth:Boolean,suffixIcon:{type:wn,default:rl},tagType:{...Ol.type,default:"info"},tagEffect:{...Ol.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:ge(String),values:ql,default:"bottom-start"},fallbackPlacements:{type:ge(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:Yn.appendTo,options:{type:ge(Array)},props:{type:ge(Object),default:()=>Ib},...Yc,...Ts(["ariaLabel"])});yT.scroll;const GQ=le({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Le("select"),n=T(),a=qt(),s=T([]);Gt(I8,At({...Pa(e)}));const o=x(()=>s.value.some(u=>u.visible===!0)),r=u=>{var d;return u.type.name==="ElOption"&&!!((d=u.component)!=null&&d.proxy)},i=u=>{const d=es(u),p=[];return d.forEach(v=>{var h;Un(v)&&(r(v)?p.push(v.component.proxy):Ve(v.children)&&v.children.length?p.push(...i(v.children)):(h=v.component)!=null&&h.subTree&&p.push(...i(v.component.subTree)))}),p},c=()=>{s.value=i(a.subTree)};return ft(()=>{c()}),j4(n,c,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:o,ns:t}}});function YQ(e,t,n,a,s,o){return et((_(),w("ul",{ref:"groupRef",class:V(e.ns.be("group","wrap"))},[l("li",{class:V(e.ns.be("group","title"))},I(e.label),3),l("li",null,[l("ul",{class:V(e.ns.b("group"))},[be(e.$slots,"default")],2)])],2)),[[fn,e.visible]])}var Rb=ze(GQ,[["render",YQ],["__file","option-group.vue"]]);const lS="ElSelect",XQ=le({name:lS,componentName:lS,components:{ElSelectMenu:KQ,ElOption:Nb,ElOptions:jQ,ElOptionGroup:Rb,ElTag:Ti,ElScrollbar:wr,ElTooltip:hs,ElIcon:ct},directives:{ClickOutside:Dl},props:WQ,emits:[Et,Xt,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:t,slots:n}){const a=qt();a.appContext.config.warnHandler=(...b)=>{!b[0]||b[0].includes('Slot "default" invoked outside of the render function')||console.warn(...b)};const s=x(()=>{const{modelValue:b,multiple:C}=e,k=C?[]:void 0;return Ve(b)?C?b:k:C?k:b}),o=At({...Pa(e),modelValue:s}),r=qQ(o,t),{calculatorRef:i,inputStyle:c}=$b(),{getLabel:u,getValue:d,getOptions:p,getDisabled:v}=Dp(e),h=b=>({label:u(b),value:d(b),disabled:v(b)}),m=b=>b.reduce((C,k)=>(C.push(k),k.children&&k.children.length>0&&C.push(...m(k.children)),C),[]),g=b=>{qr(b||[]).forEach(k=>{var S;if(Ot(k)&&(k.type.name==="ElOption"||k.type.name==="ElTree")){const $=k.type.name;if($==="ElTree"){const E=((S=k.props)==null?void 0:S.data)||[];m(E).forEach(A=>{A.currentLabel=A.label||(Ot(A.value)?"":A.value),r.onOptionCreate(A)})}else if($==="ElOption"){const E={...k.props};E.currentLabel=E.label||(Ot(E.value)?"":E.value),r.onOptionCreate(E)}}})};Te(()=>{var b;return(b=n.default)==null?void 0:b.call(n)},b=>{e.persistent||g(b)},{immediate:!0}),Gt(Td,At({props:o,states:r.states,selectRef:r.selectRef,optionsArray:r.optionsArray,setSelected:r.setSelected,handleOptionSelect:r.handleOptionSelect,onOptionCreate:r.onOptionCreate,onOptionDestroy:r.onOptionDestroy}));const y=x(()=>e.multiple?r.states.selected.map(b=>b.currentLabel):r.states.selectedLabel);return on(()=>{a.appContext.config.warnHandler=void 0}),{...r,modelValue:s,selectedLabel:y,calculatorRef:i,inputStyle:c,getLabel:u,getValue:d,getOptions:p,getDisabled:v,getOptionProps:h}}});function QQ(e,t){const n=Ne("el-tag"),a=Ne("el-tooltip"),s=Ne("el-icon"),o=Ne("el-option"),r=Ne("el-option-group"),i=Ne("el-options"),c=Ne("el-scrollbar"),u=Ne("el-select-menu"),d=gd("click-outside");return et((_(),w("div",{ref:"selectRef",class:V([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[_f(e.mouseEnterEventName)]:p=>e.states.inputHovering=!0,onMouseleave:p=>e.states.inputHovering=!1},[z(a,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:p=>e.states.isBeforeHide=!1},{default:W(()=>{var p;return[l("div",{ref:"wrapperRef",class:V([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:qe(e.toggleMenu,["prevent"])},[e.$slots.prefix?(_(),w("div",{key:0,ref:"prefixRef",class:V(e.nsSelect.e("prefix"))},[be(e.$slots,"prefix")],2)):K("v-if",!0),l("div",{ref:"selectionRef",class:V([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?be(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(_(!0),w(_e,null,Re(e.showTagList,v=>(_(),w("div",{key:e.getValueKey(v),class:V(e.nsSelect.e("selected-item"))},[z(n,{closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Je(e.tagStyle),onClose:h=>e.deleteTag(h,v)},{default:W(()=>[l("span",{class:V(e.nsSelect.e("tags-text"))},[be(e.$slots,"label",{label:v.currentLabel,value:v.value},()=>[Ce(I(v.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(_(),ue(a,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,teleported:e.teleported},{default:W(()=>[l("div",{ref:"collapseItemRef",class:V(e.nsSelect.e("selected-item"))},[z(n,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Je(e.collapseTagStyle)},{default:W(()=>[l("span",{class:V(e.nsSelect.e("tags-text"))}," + "+I(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:W(()=>[l("div",{ref:"tagMenuRef",class:V(e.nsSelect.e("selection"))},[(_(!0),w(_e,null,Re(e.collapseTagList,v=>(_(),w("div",{key:e.getValueKey(v),class:V(e.nsSelect.e("selected-item"))},[z(n,{class:"in-tooltip",closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:h=>e.deleteTag(h,v)},{default:W(()=>[l("span",{class:V(e.nsSelect.e("tags-text"))},[be(e.$slots,"label",{label:v.currentLabel,value:v.value},()=>[Ce(I(v.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported"])):K("v-if",!0)]):K("v-if",!0),l("div",{class:V([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[et(l("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":v=>e.states.inputValue=v,type:"text",name:e.name,class:V([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Je(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((p=e.hoverOption)==null?void 0:p.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[yn(qe(v=>e.navigateOptions("next"),["stop","prevent"]),["down"]),yn(qe(v=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),yn(qe(e.handleEsc,["stop","prevent"]),["esc"]),yn(qe(e.selectOption,["stop","prevent"]),["enter"]),yn(qe(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:qe(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[hn,e.states.inputValue]]),e.filterable?(_(),w("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:V(e.nsSelect.e("input-calculator")),textContent:I(e.states.inputValue)},null,10,["textContent"])):K("v-if",!0)],2),e.shouldShowPlaceholder?(_(),w("div",{key:1,class:V([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?be(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[l("span",null,I(e.currentPlaceholder),1)]):(_(),w("span",{key:1},I(e.currentPlaceholder),1))],2)):K("v-if",!0)],2),l("div",{ref:"suffixRef",class:V(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(_(),ue(s,{key:0,class:V([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:W(()=>[(_(),ue(Ft(e.iconComponent)))]),_:1},8,["class"])):K("v-if",!0),e.showClearBtn&&e.clearIcon?(_(),ue(s,{key:1,class:V([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:W(()=>[(_(),ue(Ft(e.clearIcon)))]),_:1},8,["class","onClick"])):K("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(_(),ue(s,{key:2,class:V([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:W(()=>[(_(),ue(Ft(e.validateIcon)))]),_:1},8,["class"])):K("v-if",!0)],2)],10,["onClick"])]}),content:W(()=>[z(u,{ref:"menuRef"},{default:W(()=>[e.$slots.header?(_(),w("div",{key:0,class:V(e.nsSelect.be("dropdown","header")),onClick:qe(()=>{},["stop"])},[be(e.$slots,"header")],10,["onClick"])):K("v-if",!0),et(z(c,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:V([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:W(()=>[e.showNewOption?(_(),ue(o,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):K("v-if",!0),z(i,null,{default:W(()=>[be(e.$slots,"default",{},()=>[(_(!0),w(_e,null,Re(e.options,(p,v)=>{var h;return _(),w(_e,{key:v},[(h=e.getOptions(p))!=null&&h.length?(_(),ue(r,{key:0,label:e.getLabel(p),disabled:e.getDisabled(p)},{default:W(()=>[(_(!0),w(_e,null,Re(e.getOptions(p),m=>(_(),ue(o,Kt({key:e.getValue(m)},e.getOptionProps(m)),null,16))),128))]),_:2},1032,["label","disabled"])):(_(),ue(o,po(Kt({key:1},e.getOptionProps(p))),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[fn,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(_(),w("div",{key:1,class:V(e.nsSelect.be("dropdown","loading"))},[be(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(_(),w("div",{key:2,class:V(e.nsSelect.be("dropdown","empty"))},[be(e.$slots,"empty",{},()=>[l("span",null,I(e.emptyText),1)])],2)):K("v-if",!0),e.$slots.footer?(_(),w("div",{key:3,class:V(e.nsSelect.be("dropdown","footer")),onClick:qe(()=>{},["stop"])},[be(e.$slots,"footer")],10,["onClick"])):K("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[d,e.handleClickOutside,e.popperRef]])}var JQ=ze(XQ,[["render",QQ],["__file","select.vue"]]);const Vc=Rt(JQ,{Option:Nb,OptionGroup:Rb}),zh=ea(Nb),ZQ=ea(Rb),Pb=()=>Ze(T8,{}),eJ=Ue({pageSize:{type:Number,required:!0},pageSizes:{type:ge(Array),default:()=>Zn([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:ol},appendSizeTo:String}),tJ=le({name:"ElPaginationSizes"}),nJ=le({...tJ,props:eJ,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:a}=rn(),s=Le("pagination"),o=Pb(),r=T(n.pageSize);Te(()=>n.pageSizes,(u,d)=>{if(!$a(u,d)&&Ve(u)){const p=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",p)}}),Te(()=>n.pageSize,u=>{r.value=u});const i=x(()=>n.pageSizes);function c(u){var d;u!==r.value&&(r.value=u,(d=o.handleSizeChange)==null||d.call(o,Number(u)))}return(u,d)=>(_(),w("span",{class:V(f(s).e("sizes"))},[z(f(Vc),{"model-value":r.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,"append-to":u.appendSizeTo,onChange:c},{default:W(()=>[(_(!0),w(_e,null,Re(f(i),p=>(_(),ue(f(zh),{key:p,value:p,label:p+f(a)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported","append-to"])],2))}});var aJ=ze(nJ,[["__file","sizes.vue"]]);const sJ=Ue({size:{type:String,values:ol}}),oJ=le({name:"ElPaginationJumper"}),rJ=le({...oJ,props:sJ,setup(e){const{t}=rn(),n=Le("pagination"),{pageCount:a,disabled:s,currentPage:o,changeEvent:r}=Pb(),i=T(),c=x(()=>{var p;return(p=i.value)!=null?p:o==null?void 0:o.value});function u(p){i.value=p?+p:""}function d(p){p=Math.trunc(+p),r==null||r(p),i.value=void 0}return(p,v)=>(_(),w("span",{class:V(f(n).e("jump")),disabled:f(s)},[l("span",{class:V([f(n).e("goto")])},I(f(t)("el.pagination.goto")),3),z(f(Bs),{size:p.size,class:V([f(n).e("editor"),f(n).is("in-pagination")]),min:1,max:f(a),disabled:f(s),"model-value":f(c),"validate-event":!1,"aria-label":f(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:d},null,8,["size","class","max","disabled","model-value","aria-label"]),l("span",{class:V([f(n).e("classifier")])},I(f(t)("el.pagination.pageClassifier")),3)],10,["disabled"]))}});var lJ=ze(rJ,[["__file","jumper.vue"]]);const iJ=Ue({total:{type:Number,default:1e3}}),cJ=le({name:"ElPaginationTotal"}),uJ=le({...cJ,props:iJ,setup(e){const{t}=rn(),n=Le("pagination"),{disabled:a}=Pb();return(s,o)=>(_(),w("span",{class:V(f(n).e("total")),disabled:f(a)},I(f(t)("el.pagination.total",{total:s.total})),11,["disabled"]))}});var dJ=ze(uJ,[["__file","total.vue"]]);const fJ=Ue({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),pJ=le({name:"ElPaginationPager"}),vJ=le({...pJ,props:fJ,emits:[Xt],setup(e,{emit:t}){const n=e,a=Le("pager"),s=Le("icon"),{t:o}=rn(),r=T(!1),i=T(!1),c=T(!1),u=T(!1),d=T(!1),p=T(!1),v=x(()=>{const S=n.pagerCount,$=(S-1)/2,E=Number(n.currentPage),R=Number(n.pageCount);let A=!1,N=!1;R>S&&(E>S-$&&(A=!0),E["more","btn-quickprev",s.b(),a.is("disabled",n.disabled)]),m=x(()=>["more","btn-quicknext",s.b(),a.is("disabled",n.disabled)]),g=x(()=>n.disabled?-1:0);Te(()=>[n.pageCount,n.pagerCount,n.currentPage],([S,$,E])=>{const R=($-1)/2;let A=!1,N=!1;S>$&&(A=E>$-R,N=ER&&(E=R)),E!==A&&t(Xt,E)}return(S,$)=>(_(),w("ul",{class:V(f(a).b()),onClick:k,onKeyup:yn(C,["enter"])},[S.pageCount>0?(_(),w("li",{key:0,class:V([[f(a).is("active",S.currentPage===1),f(a).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===1,"aria-label":f(o)("el.pagination.currentPage",{pager:1}),tabindex:f(g)}," 1 ",10,["aria-current","aria-label","tabindex"])):K("v-if",!0),r.value?(_(),w("li",{key:1,class:V(f(h)),tabindex:f(g),"aria-label":f(o)("el.pagination.prevPages",{pager:S.pagerCount-2}),onMouseenter:E=>y(!0),onMouseleave:E=>c.value=!1,onFocus:E=>b(!0),onBlur:E=>d.value=!1},[(c.value||d.value)&&!S.disabled?(_(),ue(f(Di),{key:0})):(_(),ue(f(ik),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):K("v-if",!0),(_(!0),w(_e,null,Re(f(v),E=>(_(),w("li",{key:E,class:V([[f(a).is("active",S.currentPage===E),f(a).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===E,"aria-label":f(o)("el.pagination.currentPage",{pager:E}),tabindex:f(g)},I(E),11,["aria-current","aria-label","tabindex"]))),128)),i.value?(_(),w("li",{key:2,class:V(f(m)),tabindex:f(g),"aria-label":f(o)("el.pagination.nextPages",{pager:S.pagerCount-2}),onMouseenter:E=>y(),onMouseleave:E=>u.value=!1,onFocus:E=>b(),onBlur:E=>p.value=!1},[(u.value||p.value)&&!S.disabled?(_(),ue(f(Vi),{key:0})):(_(),ue(f(ik),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):K("v-if",!0),S.pageCount>1?(_(),w("li",{key:3,class:V([[f(a).is("active",S.currentPage===S.pageCount),f(a).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===S.pageCount,"aria-label":f(o)("el.pagination.currentPage",{pager:S.pageCount}),tabindex:f(g)},I(S.pageCount),11,["aria-current","aria-label","tabindex"])):K("v-if",!0)],42,["onKeyup"]))}});var hJ=ze(vJ,[["__file","pager.vue"]]);const Gs=e=>typeof e!="number",mJ=Ue({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>gt(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:ge(Array),default:()=>Zn([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:wn,default:()=>Bl},nextText:{type:String,default:""},nextIcon:{type:wn,default:()=>Ds},teleported:{type:Boolean,default:!0},small:Boolean,size:Ma,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),gJ={"update:current-page":e=>gt(e),"update:page-size":e=>gt(e),"size-change":e=>gt(e),change:(e,t)=>gt(e)&>(t),"current-change":e=>gt(e),"prev-click":e=>gt(e),"next-click":e=>gt(e)},iS="ElPagination";var _J=le({name:iS,props:mJ,emits:gJ,setup(e,{emit:t,slots:n}){const{t:a}=rn(),s=Le("pagination"),o=qt().vnode.props||{},r=Z4(),i=x(()=>{var $;return e.small?"small":($=e.size)!=null?$:r.value});Rl({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},x(()=>!!e.small));const c="onUpdate:currentPage"in o||"onUpdate:current-page"in o||"onCurrentChange"in o,u="onUpdate:pageSize"in o||"onUpdate:page-size"in o||"onSizeChange"in o,d=x(()=>{if(Gs(e.total)&&Gs(e.pageCount)||!Gs(e.currentPage)&&!c)return!1;if(e.layout.includes("sizes")){if(Gs(e.pageCount)){if(!Gs(e.total)&&!Gs(e.pageSize)&&!u)return!1}else if(!u)return!1}return!0}),p=T(Gs(e.defaultPageSize)?10:e.defaultPageSize),v=T(Gs(e.defaultCurrentPage)?1:e.defaultCurrentPage),h=x({get(){return Gs(e.pageSize)?p.value:e.pageSize},set($){Gs(e.pageSize)&&(p.value=$),u&&(t("update:page-size",$),t("size-change",$))}}),m=x(()=>{let $=0;return Gs(e.pageCount)?Gs(e.total)||($=Math.max(1,Math.ceil(e.total/h.value))):$=e.pageCount,$}),g=x({get(){return Gs(e.currentPage)?v.value:e.currentPage},set($){let E=$;$<1?E=1:$>m.value&&(E=m.value),Gs(e.currentPage)&&(v.value=E),c&&(t("update:current-page",E),t("current-change",E))}});Te(m,$=>{g.value>$&&(g.value=$)}),Te([g,h],$=>{t(Xt,...$)},{flush:"post"});function y($){g.value=$}function b($){h.value=$;const E=m.value;g.value>E&&(g.value=E)}function C(){e.disabled||(g.value-=1,t("prev-click",g.value))}function k(){e.disabled||(g.value+=1,t("next-click",g.value))}function S($,E){$&&($.props||($.props={}),$.props.class=[$.props.class,E].join(" "))}return Gt(T8,{pageCount:m,disabled:x(()=>e.disabled),currentPage:g,changeEvent:y,handleSizeChange:b}),()=>{var $,E;if(!d.value)return a("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&m.value<=1)return null;const R=[],A=[],N=yt("div",{class:s.e("rightwrapper")},A),P={prev:yt(PQ,{disabled:e.disabled,currentPage:g.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:C}),jumper:yt(lJ,{size:i.value}),pager:yt(hJ,{currentPage:g.value,pageCount:m.value,pagerCount:e.pagerCount,onChange:y,disabled:e.disabled}),next:yt(OQ,{disabled:e.disabled,currentPage:g.value,pageCount:m.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:k}),sizes:yt(aJ,{pageSize:h.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:i.value,appendSizeTo:e.appendSizeTo}),slot:(E=($=n==null?void 0:n.default)==null?void 0:$.call(n))!=null?E:null,total:yt(dJ,{total:Gs(e.total)?0:e.total})},B=e.layout.split(",").map(j=>j.trim());let M=!1;return B.forEach(j=>{if(j==="->"){M=!0;return}M?A.push(P[j]):R.push(P[j])}),S(R[0],s.is("first")),S(R[R.length-1],s.is("last")),M&&A.length>0&&(S(A[0],s.is("first")),S(A[A.length-1],s.is("last")),R.push(N)),yt("div",{class:[s.b(),s.is("background",e.background),s.m(i.value)]},R)}}});const yJ=Rt(_J),bJ=Ue({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:m_,default:"primary"},cancelButtonType:{type:String,values:m_,default:"text"},icon:{type:wn,default:()=>G9},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},teleported:Yn.teleported,persistent:Yn.persistent,width:{type:[String,Number],default:150}}),wJ={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},CJ=le({name:"ElPopconfirm"}),kJ=le({...CJ,props:bJ,emits:wJ,setup(e,{expose:t,emit:n}){const a=e,{t:s}=rn(),o=Le("popconfirm"),r=T(),i=x(()=>{var m;return(m=f(r))==null?void 0:m.popperRef}),c=()=>{var m,g;(g=(m=r.value)==null?void 0:m.onClose)==null||g.call(m)},u=x(()=>({width:sa(a.width)})),d=m=>{n("confirm",m),c()},p=m=>{n("cancel",m),c()},v=x(()=>a.confirmButtonText||s("el.popconfirm.confirmButtonText")),h=x(()=>a.cancelButtonText||s("el.popconfirm.cancelButtonText"));return t({popperRef:i,hide:c}),(m,g)=>(_(),ue(f(hs),Kt({ref_key:"tooltipRef",ref:r,trigger:"click",effect:"light"},m.$attrs,{"popper-class":`${f(o).namespace.value}-popover`,"popper-style":f(u),teleported:m.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":m.hideAfter,persistent:m.persistent}),{content:W(()=>[l("div",{class:V(f(o).b())},[l("div",{class:V(f(o).e("main"))},[!m.hideIcon&&m.icon?(_(),ue(f(ct),{key:0,class:V(f(o).e("icon")),style:Je({color:m.iconColor})},{default:W(()=>[(_(),ue(Ft(m.icon)))]),_:1},8,["class","style"])):K("v-if",!0),Ce(" "+I(m.title),1)],2),l("div",{class:V(f(o).e("action"))},[be(m.$slots,"actions",{confirm:d,cancel:p},()=>[z(f(ns),{size:"small",type:m.cancelButtonType==="text"?"":m.cancelButtonType,text:m.cancelButtonType==="text",onClick:p},{default:W(()=>[Ce(I(f(h)),1)]),_:1},8,["type","text"]),z(f(ns),{size:"small",type:m.confirmButtonType==="text"?"":m.confirmButtonType,text:m.confirmButtonType==="text",onClick:d},{default:W(()=>[Ce(I(f(v)),1)]),_:1},8,["type","text"])])],2)],2)]),default:W(()=>[m.$slots.reference?be(m.$slots,"reference",{key:0}):K("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var SJ=ze(kJ,[["__file","popconfirm.vue"]]);const EJ=Rt(SJ),$J=Ue({trigger:Pu.trigger,triggerKeys:Pu.triggerKeys,placement:oh.placement,disabled:Pu.disabled,visible:Yn.visible,transition:Yn.transition,popperOptions:oh.popperOptions,tabindex:oh.tabindex,content:Yn.content,popperStyle:Yn.popperStyle,popperClass:Yn.popperClass,enterable:{...Yn.enterable,default:!0},effect:{...Yn.effect,default:"light"},teleported:Yn.teleported,appendTo:Yn.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),xJ={"update:visible":e=>En(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},TJ="onUpdate:visible",IJ=le({name:"ElPopover"}),AJ=le({...IJ,props:$J,emits:xJ,setup(e,{expose:t,emit:n}){const a=e,s=x(()=>a[TJ]),o=Le("popover"),r=T(),i=x(()=>{var y;return(y=f(r))==null?void 0:y.popperRef}),c=x(()=>[{width:sa(a.width)},a.popperStyle]),u=x(()=>[o.b(),a.popperClass,{[o.m("plain")]:!!a.content}]),d=x(()=>a.transition===`${o.namespace.value}-fade-in-linear`),p=()=>{var y;(y=r.value)==null||y.hide()},v=()=>{n("before-enter")},h=()=>{n("before-leave")},m=()=>{n("after-enter")},g=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:i,hide:p}),(y,b)=>(_(),ue(f(hs),Kt({ref_key:"tooltipRef",ref:r},y.$attrs,{trigger:y.trigger,"trigger-keys":y.triggerKeys,placement:y.placement,disabled:y.disabled,visible:y.visible,transition:y.transition,"popper-options":y.popperOptions,tabindex:y.tabindex,content:y.content,offset:y.offset,"show-after":y.showAfter,"hide-after":y.hideAfter,"auto-close":y.autoClose,"show-arrow":y.showArrow,"aria-label":y.title,effect:y.effect,enterable:y.enterable,"popper-class":f(u),"popper-style":f(c),teleported:y.teleported,"append-to":y.appendTo,persistent:y.persistent,"gpu-acceleration":f(d),"onUpdate:visible":f(s),onBeforeShow:v,onBeforeHide:h,onShow:m,onHide:g}),{content:W(()=>[y.title?(_(),w("div",{key:0,class:V(f(o).e("title")),role:"title"},I(y.title),3)):K("v-if",!0),be(y.$slots,"default",{},()=>[Ce(I(y.content),1)])]),default:W(()=>[y.$slots.reference?be(y.$slots,"reference",{key:0}):K("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}});var NJ=ze(AJ,[["__file","popover.vue"]]);const cS=(e,t)=>{const n=t.arg||t.value,a=n==null?void 0:n.popperRef;a&&(a.triggerRef=e)};var RJ={mounted(e,t){cS(e,t)},updated(e,t){cS(e,t)}};const PJ="popover",A8=s9(RJ,PJ),MJ=Rt(NJ,{directive:A8}),BJ=Ue({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:ge(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:ge([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:ge(Function),default:e=>`${e}%`}}),LJ=le({name:"ElProgress"}),OJ=le({...LJ,props:BJ,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},a=Le("progress"),s=x(()=>{const k={width:`${t.percentage}%`,animationDuration:`${t.duration}s`},S=C(t.percentage);return S.includes("gradient")?k.background=S:k.backgroundColor=S,k}),o=x(()=>(t.strokeWidth/t.width*100).toFixed(1)),r=x(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(o.value)/2}`,10):0),i=x(()=>{const k=r.value,S=t.type==="dashboard";return` M 50 50 m 0 ${S?"":"-"}${k} a ${k} ${k} 0 1 1 0 ${S?"-":""}${k*2} a ${k} ${k} 0 1 1 0 ${S?"":"-"}${k*2} `}),c=x(()=>2*Math.PI*r.value),u=x(()=>t.type==="dashboard"?.75:1),d=x(()=>`${-1*c.value*(1-u.value)/2}px`),p=x(()=>({strokeDasharray:`${c.value*u.value}px, ${c.value}px`,strokeDashoffset:d.value})),v=x(()=>({strokeDasharray:`${c.value*u.value*(t.percentage/100)}px, ${c.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=x(()=>{let k;return t.color?k=C(t.percentage):k=n[t.status]||n.default,k}),m=x(()=>t.status==="warning"?Hm:t.type==="line"?t.status==="success"?Vy:Hl:t.status==="success"?Np:nr),g=x(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),y=x(()=>t.format(t.percentage));function b(k){const S=100/k.length;return k.map((E,R)=>ut(E)?{color:E,percentage:(R+1)*S}:E).sort((E,R)=>E.percentage-R.percentage)}const C=k=>{var S;const{color:$}=t;if(vt($))return $(k);if(ut($))return $;{const E=b($);for(const R of E)if(R.percentage>k)return R.color;return(S=E[E.length-1])==null?void 0:S.color}};return(k,S)=>(_(),w("div",{class:V([f(a).b(),f(a).m(k.type),f(a).is(k.status),{[f(a).m("without-text")]:!k.showText,[f(a).m("text-inside")]:k.textInside}]),role:"progressbar","aria-valuenow":k.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[k.type==="line"?(_(),w("div",{key:0,class:V(f(a).b("bar"))},[l("div",{class:V(f(a).be("bar","outer")),style:Je({height:`${k.strokeWidth}px`})},[l("div",{class:V([f(a).be("bar","inner"),{[f(a).bem("bar","inner","indeterminate")]:k.indeterminate},{[f(a).bem("bar","inner","striped")]:k.striped},{[f(a).bem("bar","inner","striped-flow")]:k.stripedFlow}]),style:Je(f(s))},[(k.showText||k.$slots.default)&&k.textInside?(_(),w("div",{key:0,class:V(f(a).be("bar","innerText"))},[be(k.$slots,"default",{percentage:k.percentage},()=>[l("span",null,I(f(y)),1)])],2)):K("v-if",!0)],6)],6)],2)):(_(),w("div",{key:1,class:V(f(a).b("circle")),style:Je({height:`${k.width}px`,width:`${k.width}px`})},[(_(),w("svg",{viewBox:"0 0 100 100"},[l("path",{class:V(f(a).be("circle","track")),d:f(i),stroke:`var(${f(a).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":k.strokeLinecap,"stroke-width":f(o),fill:"none",style:Je(f(p))},null,14,["d","stroke","stroke-linecap","stroke-width"]),l("path",{class:V(f(a).be("circle","path")),d:f(i),stroke:f(h),fill:"none",opacity:k.percentage?1:0,"stroke-linecap":k.strokeLinecap,"stroke-width":f(o),style:Je(f(v))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(k.showText||k.$slots.default)&&!k.textInside?(_(),w("div",{key:2,class:V(f(a).e("text")),style:Je({fontSize:`${f(g)}px`})},[be(k.$slots,"default",{percentage:k.percentage},()=>[k.status?(_(),ue(f(ct),{key:1},{default:W(()=>[(_(),ue(Ft(f(m))))]),_:1})):(_(),w("span",{key:0},I(f(y)),1))])],6)):K("v-if",!0)],10,["aria-valuenow"]))}});var DJ=ze(OJ,[["__file","progress.vue"]]);const N8=Rt(DJ),VJ=Ue({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:ge([Array,Object]),default:()=>Zn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:ge([Array,Object]),default:()=>[yv,yv,yv]},voidIcon:{type:wn,default:()=>cV},disabledVoidIcon:{type:wn,default:()=>yv},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:ge(Array),default:()=>Zn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Ma,clearable:Boolean,...Ts(["ariaLabel"])}),FJ={[Xt]:e=>gt(e),[Et]:e=>gt(e)},UJ=le({name:"ElRate"}),zJ=le({...UJ,props:VJ,emits:FJ,setup(e,{expose:t,emit:n}){const a=e;function s(L,U){const O=Z=>Ot(Z),G=Object.keys(U).map(Z=>+Z).filter(Z=>{const te=U[Z];return(O(te)?te.excluded:!1)?LZ-te),ae=U[G[0]];return O(ae)&&ae.value||ae}const o=Ze(Xc,void 0),r=Ze(tl,void 0),i=xa(),c=Le("rate"),{inputId:u,isLabeledByFormItem:d}=rr(a,{formItemContext:r}),p=T(a.modelValue),v=T(-1),h=T(!0),m=x(()=>[c.b(),c.m(i.value)]),g=x(()=>a.disabled||(o==null?void 0:o.disabled)),y=x(()=>c.cssVarBlock({"void-color":a.voidColor,"disabled-void-color":a.disabledVoidColor,"fill-color":S.value})),b=x(()=>{let L="";return a.showScore?L=a.scoreTemplate.replace(/\{\s*value\s*\}/,g.value?`${a.modelValue}`:`${p.value}`):a.showText&&(L=a.texts[Math.ceil(p.value)-1]),L}),C=x(()=>a.modelValue*100-Math.floor(a.modelValue)*100),k=x(()=>Ve(a.colors)?{[a.lowThreshold]:a.colors[0],[a.highThreshold]:{value:a.colors[1],excluded:!0},[a.max]:a.colors[2]}:a.colors),S=x(()=>{const L=s(p.value,k.value);return Ot(L)?"":L}),$=x(()=>{let L="";return g.value?L=`${C.value}%`:a.allowHalf&&(L="50%"),{color:S.value,width:L}}),E=x(()=>{let L=Ve(a.icons)?[...a.icons]:{...a.icons};return L=Yo(L),Ve(L)?{[a.lowThreshold]:L[0],[a.highThreshold]:{value:L[1],excluded:!0},[a.max]:L[2]}:L}),R=x(()=>s(a.modelValue,E.value)),A=x(()=>g.value?ut(a.disabledVoidIcon)?a.disabledVoidIcon:Yo(a.disabledVoidIcon):ut(a.voidIcon)?a.voidIcon:Yo(a.voidIcon)),N=x(()=>s(p.value,E.value));function P(L){const U=g.value&&C.value>0&&L-1a.modelValue,O=a.allowHalf&&h.value&&L-.5<=p.value&&L>p.value;return U||O}function B(L){a.clearable&&L===a.modelValue&&(L=0),n(Et,L),a.modelValue!==L&&n(Xt,L)}function M(L){g.value||(a.allowHalf&&h.value?B(p.value):B(L))}function j(L){if(g.value)return;let U=p.value;const O=L.code;return O===tt.up||O===tt.right?(a.allowHalf?U+=.5:U+=1,L.stopPropagation(),L.preventDefault()):(O===tt.left||O===tt.down)&&(a.allowHalf?U-=.5:U-=1,L.stopPropagation(),L.preventDefault()),U=U<0?0:U,U=U>a.max?a.max:U,n(Et,U),n(Xt,U),U}function F(L,U){if(!g.value){if(a.allowHalf&&U){let O=U.target;vo(O,c.e("item"))&&(O=O.querySelector(`.${c.e("icon")}`)),(O.clientWidth===0||vo(O,c.e("decimal")))&&(O=O.parentNode),h.value=U.offsetX*2<=O.clientWidth,p.value=h.value?L-.5:L}else p.value=L;v.value=L}}function q(){g.value||(a.allowHalf&&(h.value=a.modelValue!==Math.floor(a.modelValue)),p.value=a.modelValue,v.value=-1)}return Te(()=>a.modelValue,L=>{p.value=L,h.value=a.modelValue!==Math.floor(a.modelValue)}),a.modelValue||n(Et,0),t({setCurrentValue:F,resetCurrentValue:q}),(L,U)=>{var O;return _(),w("div",{id:f(u),class:V([f(m),f(c).is("disabled",f(g))]),role:"slider","aria-label":f(d)?void 0:L.ariaLabel||"rating","aria-labelledby":f(d)?(O=f(r))==null?void 0:O.labelId:void 0,"aria-valuenow":p.value,"aria-valuetext":f(b)||void 0,"aria-valuemin":"0","aria-valuemax":L.max,tabindex:"0",style:Je(f(y)),onKeydown:j},[(_(!0),w(_e,null,Re(L.max,(G,ae)=>(_(),w("span",{key:ae,class:V(f(c).e("item")),onMousemove:Z=>F(G,Z),onMouseleave:q,onClick:Z=>M(G)},[z(f(ct),{class:V([f(c).e("icon"),{hover:v.value===G},f(c).is("active",G<=p.value)])},{default:W(()=>[P(G)?K("v-if",!0):(_(),w(_e,{key:0},[et((_(),ue(Ft(f(N)),null,null,512)),[[fn,G<=p.value]]),et((_(),ue(Ft(f(A)),null,null,512)),[[fn,!(G<=p.value)]])],64)),P(G)?(_(),w(_e,{key:1},[(_(),ue(Ft(f(A)),{class:V([f(c).em("decimal","box")])},null,8,["class"])),z(f(ct),{style:Je(f($)),class:V([f(c).e("icon"),f(c).e("decimal")])},{default:W(()=>[(_(),ue(Ft(f(R))))]),_:1},8,["style","class"])],64)):K("v-if",!0)]),_:2},1032,["class"])],42,["onMousemove","onClick"]))),128)),L.showText||L.showScore?(_(),w("span",{key:0,class:V(f(c).e("text")),style:Je({color:L.textColor})},I(f(b)),7)):K("v-if",!0)],46,["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"])}}});var HJ=ze(zJ,[["__file","rate.vue"]]);const KJ=Rt(HJ),ic={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},uS={[ic.primary]:Zf,[ic.success]:k9,[ic.warning]:Hm,[ic.error]:zm,[ic.info]:Zf},qJ=Ue({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}}),jJ=le({name:"ElResult"}),WJ=le({...jJ,props:qJ,setup(e){const t=e,n=Le("result"),a=x(()=>{const s=t.icon,o=s&&ic[s]?ic[s]:"icon-info",r=uS[o]||uS["icon-info"];return{class:o,component:r}});return(s,o)=>(_(),w("div",{class:V(f(n).b())},[l("div",{class:V(f(n).e("icon"))},[be(s.$slots,"icon",{},()=>[f(a).component?(_(),ue(Ft(f(a).component),{key:0,class:V(f(a).class)},null,8,["class"])):K("v-if",!0)])],2),s.title||s.$slots.title?(_(),w("div",{key:0,class:V(f(n).e("title"))},[be(s.$slots,"title",{},()=>[l("p",null,I(s.title),1)])],2)):K("v-if",!0),s.subTitle||s.$slots["sub-title"]?(_(),w("div",{key:1,class:V(f(n).e("subtitle"))},[be(s.$slots,"sub-title",{},()=>[l("p",null,I(s.subTitle),1)])],2)):K("v-if",!0),s.$slots.extra?(_(),w("div",{key:2,class:V(f(n).e("extra"))},[be(s.$slots,"extra")],2)):K("v-if",!0)],2))}});var GJ=ze(WJ,[["__file","result.vue"]]);const YJ=Rt(GJ),XJ=["start","center","end","space-around","space-between","space-evenly"],QJ=["top","middle","bottom"],JJ=Ue({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:XJ,default:"start"},align:{type:String,values:QJ}}),ZJ=le({name:"ElRow"}),eZ=le({...ZJ,props:JJ,setup(e){const t=e,n=Le("row"),a=x(()=>t.gutter);Gt(C3,{gutter:a});const s=x(()=>{const r={};return t.gutter&&(r.marginRight=r.marginLeft=`-${t.gutter/2}px`),r}),o=x(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(r,i)=>(_(),ue(Ft(r.tag),{class:V(f(o)),style:Je(f(s))},{default:W(()=>[be(r.$slots,"default")]),_:3},8,["class","style"]))}});var tZ=ze(eZ,[["__file","row.vue"]]);const nZ=Rt(tZ),aZ=le({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:Le("select")}}});function sZ(e,t,n,a,s,o){return _(),w("div",{class:V(e.ns.be("group","title")),style:Je({...e.style,lineHeight:`${e.height}px`})},I(e.item.label),7)}var oZ=ze(aZ,[["render",sZ],["__file","group-item.vue"]]);function rZ(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const lZ=Ue({allowCreate:Boolean,autocomplete:{type:ge(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:wn,default:Hl},effect:{type:ge(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:ge(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:ge([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:ge(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:ge(Array),required:!0},placeholder:{type:String},teleported:Yn.teleported,persistent:{type:Boolean,default:!0},popperClass:Yn.popperClass,popperStyle:Yn.popperStyle,popperOptions:{type:ge(Object),default:()=>({})},remote:Boolean,size:Ma,props:{type:ge(Object),default:()=>Ib},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},showArrow:{type:Boolean,default:!0},placement:{type:ge(String),values:ql,default:"bottom-start"},fallbackPlacements:{type:ge(Array),default:["bottom-start","top-start","right","left"]},tagType:{...Ol.type,default:"info"},tagEffect:{...Ol.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:Yn.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return En(e)||gt(e)}},suffixIcon:{type:wn,default:rl},...Yc,...Ts(["ariaLabel"])}),iZ=Ue({data:Array,disabled:Boolean,hovering:Boolean,item:{type:ge(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),cZ={[Et]:e=>!0,[Xt]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},uZ={hover:e=>gt(e),select:(e,t)=>!0},Mb=Symbol("ElSelectV2Injection"),dZ=le({props:iZ,emits:uZ,setup(e,{emit:t}){const n=Ze(Mb),a=Le("select"),{hoverItem:s,selectOptionClick:o}=rZ(e,{emit:t}),{getLabel:r}=Dp(n.props);return{ns:a,hoverItem:s,selectOptionClick:o,getLabel:r}}});function fZ(e,t,n,a,s,o){return _(),w("li",{"aria-selected":e.selected,style:Je(e.style),class:V([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:e.hoverItem,onClick:qe(e.selectOptionClick,["stop"])},[be(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[l("span",null,I(e.getLabel(e.item)),1)])],46,["aria-selected","onMousemove","onClick"])}var pZ=ze(dZ,[["render",fZ],["__file","option-item.vue"]]),dS=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function vZ(e,t){return!!(e===t||dS(e)&&dS(t))}function hZ(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const t=qt().proxy.$props;return x(()=>{const n=(a,s,o)=>({});return t.perfMode?Om(n):mZ(n)})},B_=50,Hh="itemRendered",Kh="scroll",ku="forward",qh="backward",Ko="auto",t0="smart",ip="start",jr="center",cp="end",Zu="horizontal",Bb="vertical",gZ="ltr",Mu="rtl",up="negative",Lb="positive-ascending",Ob="positive-descending",_Z={[Zu]:"left",[Bb]:"top"},yZ=20,bZ={[Zu]:"deltaX",[Bb]:"deltaY"},wZ=({atEndEdge:e,atStartEdge:t,layout:n},a)=>{let s,o=0;const r=c=>c<0&&t.value||c>0&&e.value;return{hasReachedEdge:r,onWheel:c=>{Oc(s);const u=c[bZ[n.value]];r(o)&&r(o+u)||(o+=u,Uy()||c.preventDefault(),s=Oi(()=>{a(o),o=0}))}}},L_=Tr({type:ge([Number,Function]),required:!0}),O_=Tr({type:Number}),D_=Tr({type:Number,default:2}),CZ=Tr({type:String,values:["ltr","rtl"],default:"ltr"}),V_=Tr({type:Number,default:0}),jh=Tr({type:Number,required:!0}),P8=Tr({type:String,values:["horizontal","vertical"],default:Bb}),M8=Ue({className:{type:String,default:""},containerElement:{type:ge([String,Object]),default:"div"},data:{type:ge(Array),default:()=>Zn([])},direction:CZ,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:ge([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),B8=Ue({cache:D_,estimatedItemSize:O_,layout:P8,initScrollOffset:V_,total:jh,itemSize:L_,...M8}),F_={type:Number,default:6},L8={type:Number,default:0},O8={type:Number,default:2},xc=Ue({columnCache:D_,columnWidth:L_,estimatedColumnWidth:O_,estimatedRowHeight:O_,initScrollLeft:V_,initScrollTop:V_,itemKey:{type:ge(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:D_,rowHeight:L_,totalColumn:jh,totalRow:jh,hScrollbarSize:F_,vScrollbarSize:F_,scrollbarStartGap:L8,scrollbarEndGap:O8,role:String,...M8}),D8=Ue({alwaysOn:Boolean,class:String,layout:P8,total:jh,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:F_,startGap:L8,endGap:O8,visible:Boolean}),gc=(e,t)=>ee===gZ||e===Mu||e===Zu,fS=e=>e===Mu;let cu=null;function Wh(e=!1){if(cu===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const a=document.createElement("div"),s=a.style;return s.width="100px",s.height="100px",t.appendChild(a),document.body.appendChild(t),t.scrollLeft>0?cu=Ob:(t.scrollLeft=1,t.scrollLeft===0?cu=up:cu=Lb),document.body.removeChild(t),cu}return cu}function kZ({move:e,size:t,bar:n},a){const s={},o=`translate${n.axis}(${e}px)`;return s[n.size]=t,s.transform=o,a==="horizontal"?s.height="100%":s.width="100%",s}const U_=le({name:"ElVirtualScrollBar",props:D8,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=x(()=>e.startGap+e.endGap),a=Le("virtual-scrollbar"),s=Le("scrollbar"),o=T(),r=T();let i=null,c=null;const u=At({isDragging:!1,traveled:0}),d=x(()=>_T[e.layout]),p=x(()=>e.clientSize-f(n)),v=x(()=>({position:"absolute",width:`${Zu===e.layout?p.value:e.scrollbarSize}px`,height:`${Zu===e.layout?e.scrollbarSize:p.value}px`,[_Z[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=x(()=>{const E=e.ratio;if(E>=100)return Number.POSITIVE_INFINITY;if(E>=50)return E*p.value/100;const R=p.value/3;return Math.floor(Math.min(Math.max(E*p.value/100,yZ),R))}),m=x(()=>{if(!Number.isFinite(h.value))return{display:"none"};const E=`${h.value}px`;return kZ({bar:d.value,size:E,move:u.traveled},e.layout)}),g=x(()=>Math.ceil(e.clientSize-h.value-f(n))),y=()=>{window.addEventListener("mousemove",S),window.addEventListener("mouseup",k);const E=f(r);E&&(c=document.onselectstart,document.onselectstart=()=>!1,E.addEventListener("touchmove",S,{passive:!0}),E.addEventListener("touchend",k))},b=()=>{window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",k),document.onselectstart=c,c=null;const E=f(r);E&&(E.removeEventListener("touchmove",S),E.removeEventListener("touchend",k))},C=E=>{E.stopImmediatePropagation(),!(E.ctrlKey||[1,2].includes(E.button))&&(u.isDragging=!0,u[d.value.axis]=E.currentTarget[d.value.offset]-(E[d.value.client]-E.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),y())},k=()=>{u.isDragging=!1,u[d.value.axis]=0,t("stop-move"),b()},S=E=>{const{isDragging:R}=u;if(!R||!r.value||!o.value)return;const A=u[d.value.axis];if(!A)return;Oc(i);const N=(o.value.getBoundingClientRect()[d.value.direction]-E[d.value.client])*-1,P=r.value[d.value.offset]-A,B=N-P;i=Oi(()=>{u.traveled=Math.max(0,Math.min(B,g.value)),t("scroll",B,g.value)})},$=E=>{const R=Math.abs(E.target.getBoundingClientRect()[d.value.direction]-E[d.value.client]),A=r.value[d.value.offset]/2,N=R-A;u.traveled=Math.max(0,Math.min(N,g.value)),t("scroll",N,g.value)};return Te(()=>e.scrollFrom,E=>{u.isDragging||(u.traveled=Math.ceil(E*g.value))}),on(()=>{b()}),()=>yt("div",{role:"presentation",ref:o,class:[a.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:v.value,onMousedown:qe($,["stop","prevent"]),onTouchstartPrevent:C},yt("div",{ref:r,class:s.e("thumb"),style:m.value,onMousedown:C},[]))}}),V8=({name:e,getOffset:t,getItemSize:n,getItemOffset:a,getEstimatedTotalSize:s,getStartIndexForOffset:o,getStopIndexForStartIndex:r,initCache:i,clearCache:c,validateProps:u})=>le({name:e??"ElVirtualList",props:B8,emits:[Hh,Kh],setup(d,{emit:p,expose:v}){u(d);const h=qt(),m=Le("vl"),g=T(i(d,h)),y=R8(),b=T(),C=T(),k=T(),S=T({isScrolling:!1,scrollDir:"forward",scrollOffset:gt(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),$=x(()=>{const{total:ie,cache:oe}=d,{isScrolling:J,scrollDir:ee,scrollOffset:Q}=f(S);if(ie===0)return[0,0,0,0];const H=o(d,Q,f(g)),X=r(d,H,Q,f(g)),he=!J||ee===qh?Math.max(1,oe):1,D=!J||ee===ku?Math.max(1,oe):1;return[Math.max(0,H-he),Math.max(0,Math.min(ie-1,X+D)),H,X]}),E=x(()=>s(d,f(g))),R=x(()=>dp(d.layout)),A=x(()=>[{position:"relative",[`overflow-${R.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:gt(d.height)?`${d.height}px`:d.height,width:gt(d.width)?`${d.width}px`:d.width},d.style]),N=x(()=>{const ie=f(E),oe=f(R);return{height:oe?"100%":`${ie}px`,pointerEvents:f(S).isScrolling?"none":void 0,width:oe?`${ie}px`:"100%"}}),P=x(()=>R.value?d.width:d.height),{onWheel:B}=wZ({atStartEdge:x(()=>S.value.scrollOffset<=0),atEndEdge:x(()=>S.value.scrollOffset>=E.value),layout:x(()=>d.layout)},ie=>{var oe,J;(J=(oe=k.value).onMouseUp)==null||J.call(oe),U(Math.min(S.value.scrollOffset+ie,E.value-P.value))});Rn(b,"wheel",B,{passive:!1});const M=()=>{const{total:ie}=d;if(ie>0){const[Q,H,X,he]=f($);p(Hh,Q,H,X,he)}const{scrollDir:oe,scrollOffset:J,updateRequested:ee}=f(S);p(Kh,oe,J,ee)},j=ie=>{const{clientHeight:oe,scrollHeight:J,scrollTop:ee}=ie.currentTarget,Q=f(S);if(Q.scrollOffset===ee)return;const H=Math.max(0,Math.min(ee,J-oe));S.value={...Q,isScrolling:!0,scrollDir:gc(Q.scrollOffset,H),scrollOffset:H,updateRequested:!1},it(ae)},F=ie=>{const{clientWidth:oe,scrollLeft:J,scrollWidth:ee}=ie.currentTarget,Q=f(S);if(Q.scrollOffset===J)return;const{direction:H}=d;let X=J;if(H===Mu)switch(Wh()){case up:{X=-J;break}case Ob:{X=ee-oe-J;break}}X=Math.max(0,Math.min(X,ee-oe)),S.value={...Q,isScrolling:!0,scrollDir:gc(Q.scrollOffset,X),scrollOffset:X,updateRequested:!1},it(ae)},q=ie=>{f(R)?F(ie):j(ie),M()},L=(ie,oe)=>{const J=(E.value-P.value)/oe*ie;U(Math.min(E.value-P.value,J))},U=ie=>{ie=Math.max(ie,0),ie!==f(S).scrollOffset&&(S.value={...f(S),scrollOffset:ie,scrollDir:gc(f(S).scrollOffset,ie),updateRequested:!0},it(ae))},O=(ie,oe=Ko)=>{const{scrollOffset:J}=f(S);ie=Math.max(0,Math.min(ie,d.total-1)),U(t(d,ie,oe,J,f(g)))},G=ie=>{const{direction:oe,itemSize:J,layout:ee}=d,Q=y.value(c&&J,c&&ee,c&&oe);let H;if(ln(Q,String(ie)))H=Q[ie];else{const X=a(d,ie,f(g)),he=n(d,ie,f(g)),D=f(R),Y=oe===Mu,ne=D?X:0;Q[ie]=H={position:"absolute",left:Y?void 0:`${ne}px`,right:Y?`${ne}px`:void 0,top:D?0:`${X}px`,height:D?"100%":`${he}px`,width:D?`${he}px`:"100%"}}return H},ae=()=>{S.value.isScrolling=!1,it(()=>{y.value(-1,null,null)})},Z=()=>{const ie=b.value;ie&&(ie.scrollTop=0)};ft(()=>{if(!cn)return;const{initScrollOffset:ie}=d,oe=f(b);gt(ie)&&oe&&(f(R)?oe.scrollLeft=ie:oe.scrollTop=ie),M()}),$r(()=>{const{direction:ie,layout:oe}=d,{scrollOffset:J,updateRequested:ee}=f(S),Q=f(b);if(ee&&Q)if(oe===Zu)if(ie===Mu)switch(Wh()){case up:{Q.scrollLeft=-J;break}case Lb:{Q.scrollLeft=J;break}default:{const{clientWidth:H,scrollWidth:X}=Q;Q.scrollLeft=X-H-J;break}}else Q.scrollLeft=J;else Q.scrollTop=J}),Sm(()=>{f(b).scrollTop=f(S).scrollOffset});const te={ns:m,clientSize:P,estimatedTotalSize:E,windowStyle:A,windowRef:b,innerRef:C,innerStyle:N,itemsToRender:$,scrollbarRef:k,states:S,getItemStyle:G,onScroll:q,onScrollbarScroll:L,onWheel:B,scrollTo:U,scrollToItem:O,resetScrollTop:Z};return v({windowRef:b,innerRef:C,getItemStyleCache:y,scrollTo:U,scrollToItem:O,resetScrollTop:Z,states:S}),te},render(d){var p;const{$slots:v,className:h,clientSize:m,containerElement:g,data:y,getItemStyle:b,innerElement:C,itemsToRender:k,innerStyle:S,layout:$,total:E,onScroll:R,onScrollbarScroll:A,states:N,useIsScrolling:P,windowStyle:B,ns:M}=d,[j,F]=k,q=Ft(g),L=Ft(C),U=[];if(E>0)for(let Z=j;Z<=F;Z++)U.push(yt(_e,{key:Z},(p=v.default)==null?void 0:p.call(v,{data:y,index:Z,isScrolling:P?N.isScrolling:void 0,style:b(Z)})));const O=[yt(L,{style:S,ref:"innerRef"},ut(L)?U:{default:()=>U})],G=yt(U_,{ref:"scrollbarRef",clientSize:m,layout:$,onScroll:A,ratio:m*100/this.estimatedTotalSize,scrollFrom:N.scrollOffset/(this.estimatedTotalSize-m),total:E,alwaysOn:N.scrollbarAlwaysOn}),ae=yt(q,{class:[M.e("window"),h],style:B,onScroll:R,ref:"windowRef",key:0},ut(q)?[O]:{default:()=>[O]});return yt("div",{key:0,class:[M.e("wrapper"),N.scrollbarAlwaysOn?"always-on":""]},[ae,G])}}),F8=V8({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:a,width:s},o,r,i)=>{const c=dp(a)?s:e,u=Math.max(0,t*n-c),d=Math.min(u,o*n),p=Math.max(0,(o+1)*n-c);switch(r===t0&&(i>=p-c&&i<=d+c?r=Ko:r=jr),r){case ip:return d;case cp:return p;case jr:{const v=Math.round(p+(d-p)/2);return vu+Math.floor(c/2)?u:v}case Ko:default:return i>=p&&i<=d?i:iMath.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:a,width:s},o,r)=>{const i=o*n,c=dp(a)?s:e,u=Math.ceil((c+r-i)/n);return Math.max(0,Math.min(t-1,o+u-1))},initCache(){},clearCache:!0,validateProps(){}}),Su=(e,t,n)=>{const{itemSize:a}=e,{items:s,lastVisitedIndex:o}=n;if(t>o){let r=0;if(o>=0){const i=s[o];r=i.offset+i.size}for(let i=o+1;i<=t;i++){const c=a(i);s[i]={offset:r,size:c},r+=c}n.lastVisitedIndex=t}return s[t]},SZ=(e,t,n)=>{const{items:a,lastVisitedIndex:s}=t;return(s>0?a[s].offset:0)>=n?U8(e,t,0,s,n):EZ(e,t,Math.max(0,s),n)},U8=(e,t,n,a,s)=>{for(;n<=a;){const o=n+Math.floor((a-n)/2),r=Su(e,o,t).offset;if(r===s)return o;rs&&(a=o-1)}return Math.max(0,n-1)},EZ=(e,t,n,a)=>{const{total:s}=e;let o=1;for(;n{let s=0;if(a>=e&&(a=e-1),a>=0){const i=t[a];s=i.offset+i.size}const r=(e-a-1)*n;return s+r},$Z=V8({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Su(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:pS,getOffset:(e,t,n,a,s)=>{const{height:o,layout:r,width:i}=e,c=dp(r)?i:o,u=Su(e,t,s),d=pS(e,s),p=Math.max(0,Math.min(d-c,u.offset)),v=Math.max(0,u.offset-c+u.size);switch(n===t0&&(a>=v-c&&a<=p+c?n=Ko:n=jr),n){case ip:return p;case cp:return v;case jr:return Math.round(v+(p-v)/2);case Ko:default:return a>=v&&a<=p?a:aSZ(e,n,t),getStopIndexForStartIndex:(e,t,n,a)=>{const{height:s,total:o,layout:r,width:i}=e,c=dp(r)?i:s,u=Su(e,t,a),d=n+c;let p=u.offset+u.size,v=t;for(;v{var o,r;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,a-1),(o=t.exposed)==null||o.getItemStyleCache(-1),s&&((r=t.proxy)==null||r.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),xZ={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number};var TZ=le({name:"ElSelectDropdown",props:xZ,setup(e,{slots:t,expose:n}){const a=Ze(Mb),s=Le("select"),{getLabel:o,getValue:r,getDisabled:i}=Dp(a.props),c=T([]),u=T(),d=x(()=>e.data.length);Te(()=>d.value,()=>{var B,M;(M=(B=a.tooltipRef.value)==null?void 0:B.updatePopper)==null||M.call(B)});const p=x(()=>tn(a.props.estimatedOptionHeight)),v=x(()=>p.value?{itemSize:a.props.itemHeight}:{estimatedSize:a.props.estimatedOptionHeight,itemSize:B=>c.value[B]}),h=(B=[],M)=>{const{props:{valueKey:j}}=a;return Ot(M)?B&&B.some(F=>Tn(ya(F,j))===ya(M,j)):B.includes(M)},m=(B,M)=>{if(Ot(M)){const{valueKey:j}=a.props;return ya(B,j)===ya(M,j)}else return B===M},g=(B,M)=>a.props.multiple?h(B,r(M)):m(B,r(M)),y=(B,M)=>{const{disabled:j,multiple:F,multipleLimit:q}=a.props;return j||!M&&(F?q>0&&B.length>=q:!1)},b=B=>e.hoveringIndex===B;n({listRef:u,isSized:p,isItemDisabled:y,isItemHovering:b,isItemSelected:g,scrollToItem:B=>{const M=u.value;M&&M.scrollToItem(B)},resetScrollTop:()=>{const B=u.value;B&&B.resetScrollTop()}});const $=B=>{const{index:M,data:j,style:F}=B,q=f(p),{itemSize:L,estimatedSize:U}=f(v),{modelValue:O}=a.props,{onSelect:G,onHover:ae}=a,Z=j[M];if(Z.type==="Group")return z(oZ,{item:Z,style:F,height:q?L:U},null);const te=g(O,Z),ie=y(O,te),oe=b(M);return z(pZ,Kt(B,{selected:te,disabled:i(Z)||ie,created:!!Z.created,hovering:oe,item:Z,onSelect:G,onHover:ae}),{default:J=>{var ee;return((ee=t.default)==null?void 0:ee.call(t,J))||z("span",null,[o(Z)])}})},{onKeyboardNavigate:E,onKeyboardSelect:R}=a,A=()=>{E("forward")},N=()=>{E("backward")},P=B=>{const{code:M}=B,{tab:j,esc:F,down:q,up:L,enter:U,numpadEnter:O}=tt;switch([F,q,L,U,O].includes(M)&&(B.preventDefault(),B.stopPropagation()),M){case j:case F:break;case q:A();break;case L:N();break;case U:case O:R();break}};return()=>{var B,M,j,F;const{data:q,width:L}=e,{height:U,multiple:O,scrollbarAlwaysOn:G}=a.props,ae=x(()=>Ph?!0:G),Z=f(p)?F8:$Z;return z("div",{class:[s.b("dropdown"),s.is("multiple",O)],style:{width:`${L}px`}},[(B=t.header)==null?void 0:B.call(t),((M=t.loading)==null?void 0:M.call(t))||((j=t.empty)==null?void 0:j.call(t))||z(Z,Kt({ref:u},f(v),{className:s.be("dropdown","list"),scrollbarAlwaysOn:ae.value,data:q,height:U,width:L,total:q.length,onKeydown:P}),{default:te=>z($,te,null)}),(F=t.footer)==null?void 0:F.call(t)])}}});function IZ(e,t){const{aliasProps:n,getLabel:a,getValue:s}=Dp(e),o=T(0),r=T(),i=x(()=>e.allowCreate&&e.filterable);Te(()=>e.options,h=>{const m=new Set(h.map(g=>a(g)));t.createdOptions=t.createdOptions.filter(g=>!m.has(a(g)))});function c(h){const m=g=>a(g)===h;return e.options&&e.options.some(m)||t.createdOptions.some(m)}function u(h){i.value&&(e.multiple&&h.created?o.value++:r.value=h)}function d(h){if(i.value)if(h&&h.length>0){if(c(h)){t.createdOptions=t.createdOptions.filter(g=>a(g)!==t.previousQuery);return}const m={[n.value.value]:h,[n.value.label]:h,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=o.value?t.createdOptions[o.value]=m:t.createdOptions.push(m)}else if(e.multiple)t.createdOptions.length=o.value;else{const m=r.value;t.createdOptions.length=0,m&&m.created&&t.createdOptions.push(m)}}function p(h){if(!i.value||!h||!h.created||h.created&&e.reserveKeyword&&t.inputValue===a(h))return;const m=t.createdOptions.findIndex(g=>s(g)===s(h));~m&&(t.createdOptions.splice(m,1),o.value--)}function v(){i.value&&(t.createdOptions.length=0,o.value=0)}return{createNewOption:d,removeNewOption:p,selectNewOption:u,clearAllNewOption:v}}const AZ=(e,t)=>{const{t:n}=rn(),a=Le("select"),s=Le("input"),{form:o,formItem:r}=Is(),{inputId:i}=rr(e,{formItemContext:r}),{aliasProps:c,getLabel:u,getValue:d,getDisabled:p,getOptions:v}=Dp(e),{valueOnClear:h,isEmptyValue:m}=Ap(e),g=At({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),y=T(-1),b=T(),C=T(),k=T(),S=T(),$=T(),E=T(),R=T(),A=T(),N=T(),P=T(),{isComposing:B,handleCompositionStart:M,handleCompositionEnd:j,handleCompositionUpdate:F}=Pp({afterComposition:Xe=>qs(Xe)}),q=x(()=>e.disabled||!!(o!=null&&o.disabled)),{wrapperRef:L,isFocused:U,handleBlur:O}=Kl($,{disabled:q,afterFocus(){e.automaticDropdown&&!te.value&&(te.value=!0,g.menuVisibleOnFocus=!0)},beforeBlur(Xe){var wt,Yt;return((wt=k.value)==null?void 0:wt.isFocusInsideContent(Xe))||((Yt=S.value)==null?void 0:Yt.isFocusInsideContent(Xe))},afterBlur(){var Xe;te.value=!1,g.menuVisibleOnFocus=!1,e.validateEvent&&((Xe=r==null?void 0:r.validate)==null||Xe.call(r,"blur").catch(wt=>void 0))}}),G=x(()=>se("")),ae=x(()=>e.loading?!1:e.options.length>0||g.createdOptions.length>0),Z=T([]),te=T(!1),ie=x(()=>{var Xe;return(Xe=o==null?void 0:o.statusIcon)!=null?Xe:!1}),oe=x(()=>{const Xe=Z.value.length*e.itemHeight;return Xe>e.height?e.height:Xe}),J=x(()=>e.multiple?Ve(e.modelValue)&&e.modelValue.length>0:!m(e.modelValue)),ee=x(()=>e.clearable&&!q.value&&J.value&&(U.value||g.inputHovering)),Q=x(()=>e.remote&&e.filterable?"":e.suffixIcon),H=x(()=>Q.value&&a.is("reverse",te.value)),X=x(()=>(r==null?void 0:r.validateState)||""),he=x(()=>{if(X.value)return Km[X.value]}),D=x(()=>e.remote?300:0),Y=x(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!g.inputValue&&!ae.value?!1:e.filterable&&g.inputValue&&ae.value&&Z.value.length===0?e.noMatchText||n("el.select.noMatch"):ae.value?null:e.noDataText||n("el.select.noData")),ne=x(()=>e.filterable&&vt(e.filterMethod)),re=x(()=>e.filterable&&e.remote&&vt(e.remoteMethod)),se=Xe=>{const wt=new RegExp(Ab(Xe),"i"),Yt=Qt=>ne.value||re.value?!0:Xe?wt.test(u(Qt)||""):!0;return e.loading?[]:[...g.createdOptions,...e.options].reduce((Qt,Ea)=>{const io=v(Ea);if(Ve(io)){const dr=io.filter(Yt);dr.length>0&&Qt.push({label:u(Ea),type:"Group"},...dr)}else(e.remote||Yt(Ea))&&Qt.push(Ea);return Qt},[])},ke=()=>{Z.value=se(g.inputValue)},ye=x(()=>{const Xe=new Map;return G.value.forEach((wt,Yt)=>{Xe.set(en(d(wt)),{option:wt,index:Yt})}),Xe}),Se=x(()=>{const Xe=new Map;return Z.value.forEach((wt,Yt)=>{Xe.set(en(d(wt)),{option:wt,index:Yt})}),Xe}),ce=x(()=>Z.value.every(Xe=>p(Xe))),we=xa(),Ae=x(()=>we.value==="small"?"small":"default"),Fe=()=>{var Xe;if(gt(e.fitInputWidth)){y.value=e.fitInputWidth;return}const wt=((Xe=b.value)==null?void 0:Xe.offsetWidth)||200;!e.fitInputWidth&&ae.value?it(()=>{y.value=Math.max(wt,xe())}):y.value=wt},xe=()=>{var Xe,wt;const Qt=document.createElement("canvas").getContext("2d"),Ea=a.be("dropdown","item"),dr=(((wt=(Xe=A.value)==null?void 0:Xe.listRef)==null?void 0:wt.innerRef)||document).querySelector(`.${Ea}`);if(dr===null||Qt===null)return 0;const De=getComputedStyle(dr),Ke=Number.parseFloat(De.paddingLeft)+Number.parseFloat(De.paddingRight);return Qt.font=`bold ${De.font.replace(new RegExp(`\\b${De.fontWeight}\\b`),"")}`,Z.value.reduce((kn,nt)=>{const xn=Qt.measureText(u(nt));return Math.max(xn.width,kn)},0)+Ke},me=()=>{if(!C.value)return 0;const Xe=window.getComputedStyle(C.value);return Number.parseFloat(Xe.gap||"6px")},Me=x(()=>{const Xe=me(),wt=e.filterable?Xe+Eb:0;return{maxWidth:`${P.value&&e.maxCollapseTags===1?g.selectionWidth-g.collapseItemWidth-Xe-wt:g.selectionWidth-wt}px`}}),at=x(()=>({maxWidth:`${g.selectionWidth}px`})),Qe=x(()=>Ve(e.modelValue)?e.modelValue.length===0&&!g.inputValue:e.filterable?!g.inputValue:!0),It=x(()=>{var Xe;const wt=(Xe=e.placeholder)!=null?Xe:n("el.select.placeholder");return e.multiple||!J.value?wt:g.selectedLabel}),je=x(()=>{var Xe,wt;return(wt=(Xe=k.value)==null?void 0:Xe.popperRef)==null?void 0:wt.contentRef}),Vt=x(()=>{if(e.multiple){const Xe=e.modelValue.length;if(e.modelValue.length>0&&Se.value.has(e.modelValue[Xe-1])){const{index:wt}=Se.value.get(e.modelValue[Xe-1]);return wt}}else if(!m(e.modelValue)&&Se.value.has(e.modelValue)){const{index:Xe}=Se.value.get(e.modelValue);return Xe}return-1}),kt=x({get(){return te.value&&Y.value!==!1},set(Xe){te.value=Xe}}),Mt=x(()=>e.multiple?e.collapseTags?g.cachedOptions.slice(0,e.maxCollapseTags):g.cachedOptions:[]),Ht=x(()=>e.multiple?e.collapseTags?g.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:Ee,removeNewOption:We,selectNewOption:pe,clearAllNewOption:Oe}=IZ(e,g),ot=()=>{q.value||(g.menuVisibleOnFocus?g.menuVisibleOnFocus=!1:te.value=!te.value)},St=()=>{g.inputValue.length>0&&!te.value&&(te.value=!0),Ee(g.inputValue),it(()=>{_n(g.inputValue)})},vn=wo(St,D.value),_n=Xe=>{g.previousQuery===Xe||B.value||(g.previousQuery=Xe,e.filterable&&vt(e.filterMethod)?e.filterMethod(Xe):e.filterable&&e.remote&&vt(e.remoteMethod)&&e.remoteMethod(Xe),e.defaultFirstOption&&(e.filterable||e.remote)&&Z.value.length?it(Ln):it(Ua))},Ln=()=>{const Xe=Z.value.filter(Qt=>!Qt.disabled&&Qt.type!=="Group"),wt=Xe.find(Qt=>Qt.created),Yt=Xe[0];g.hoveringIndex=qa(Z.value,wt||Yt)},oo=Xe=>{$a(e.modelValue,Xe)||t(Xt,Xe)},_s=Xe=>{t(Et,Xe),oo(Xe),g.previousValue=e.multiple?String(Xe):Xe,it(()=>{if(e.multiple&&Ve(e.modelValue)){const wt=g.cachedOptions.slice(),Yt=e.modelValue.map(Qt=>Yl(Qt,wt));$a(g.cachedOptions,Yt)||(g.cachedOptions=Yt)}else Xl(!0)})},qa=(Xe=[],wt)=>{if(!Ot(wt))return Xe.indexOf(wt);const Yt=e.valueKey;let Qt=-1;return Xe.some((Ea,io)=>ya(Ea,Yt)===ya(wt,Yt)?(Qt=io,!0):!1),Qt},en=Xe=>Ot(Xe)?ya(Xe,e.valueKey):Xe,st=()=>{Fe()},nn=()=>{g.selectionWidth=Number.parseFloat(window.getComputedStyle(C.value).width)},Ut=()=>{g.collapseItemWidth=P.value.getBoundingClientRect().width},Ja=()=>{var Xe,wt;(wt=(Xe=k.value)==null?void 0:Xe.updatePopper)==null||wt.call(Xe)},Hs=()=>{var Xe,wt;(wt=(Xe=S.value)==null?void 0:Xe.updatePopper)==null||wt.call(Xe)},Ks=Xe=>{if(e.multiple){let wt=e.modelValue.slice();const Yt=qa(wt,d(Xe));Yt>-1?(wt=[...wt.slice(0,Yt),...wt.slice(Yt+1)],g.cachedOptions.splice(Yt,1),We(Xe)):(e.multipleLimit<=0||wt.length{let Yt=e.modelValue.slice();const Qt=qa(Yt,d(wt));Qt>-1&&!q.value&&(Yt=[...e.modelValue.slice(0,Qt),...e.modelValue.slice(Qt+1)],g.cachedOptions.splice(Qt,1),_s(Yt),t("remove-tag",d(wt)),We(wt)),Xe.stopPropagation(),As()},As=()=>{var Xe;(Xe=$.value)==null||Xe.focus()},Rr=()=>{var Xe;if(te.value){te.value=!1,it(()=>{var wt;return(wt=$.value)==null?void 0:wt.blur()});return}(Xe=$.value)==null||Xe.blur()},Wi=()=>{g.inputValue.length>0?g.inputValue="":te.value=!1},ro=Xe=>V4(Xe,wt=>!g.cachedOptions.some(Yt=>d(Yt)===wt&&p(Yt))),ur=Xe=>{if(e.multiple&&Xe.code!==tt.delete&&g.inputValue.length===0){Xe.preventDefault();const wt=e.modelValue.slice(),Yt=ro(wt);if(Yt<0)return;const Qt=wt[Yt];wt.splice(Yt,1);const Ea=g.cachedOptions[Yt];g.cachedOptions.splice(Yt,1),We(Ea),_s(wt),t("remove-tag",Qt)}},Ye=()=>{let Xe;Ve(e.modelValue)?Xe=[]:Xe=h.value,g.selectedLabel="",te.value=!1,_s(Xe),t("clear"),Oe(),As()},ht=(Xe,wt=void 0)=>{const Yt=Z.value;if(!["forward","backward"].includes(Xe)||q.value||Yt.length<=0||ce.value||B.value)return;if(!te.value)return ot();tn(wt)&&(wt=g.hoveringIndex);let Qt=-1;Xe==="forward"?(Qt=wt+1,Qt>=Yt.length&&(Qt=0)):Xe==="backward"&&(Qt=wt-1,(Qt<0||Qt>=Yt.length)&&(Qt=Yt.length-1));const Ea=Yt[Qt];if(p(Ea)||Ea.type==="Group")return ht(Xe,Qt);g.hoveringIndex=Qt,lo(Qt)},un=()=>{if(te.value)~g.hoveringIndex&&Z.value[g.hoveringIndex]&&Ks(Z.value[g.hoveringIndex]);else return ot()},ra=Xe=>{g.hoveringIndex=Xe??-1},Ua=()=>{e.multiple?g.hoveringIndex=Z.value.findIndex(Xe=>e.modelValue.some(wt=>en(wt)===en(d(Xe)))):g.hoveringIndex=Z.value.findIndex(Xe=>en(d(Xe))===en(e.modelValue))},qs=Xe=>{if(g.inputValue=Xe.target.value,e.remote)vn();else return St()},js=Xe=>{if(te.value=!1,U.value){const wt=new FocusEvent("blur",Xe);O(wt)}},Lo=()=>(g.isBeforeHide=!1,it(()=>{~Vt.value&&lo(g.hoveringIndex)})),lo=Xe=>{A.value.scrollToItem(Xe)},Yl=(Xe,wt)=>{const Yt=en(Xe);if(ye.value.has(Yt)){const{option:Qt}=ye.value.get(Yt);return Qt}if(wt&&wt.length){const Qt=wt.find(Ea=>en(d(Ea))===Yt);if(Qt)return Qt}return{[c.value.value]:Xe,[c.value.label]:Xe}},Xl=(Xe=!1)=>{if(e.multiple)if(e.modelValue.length>0){const wt=g.cachedOptions.slice();g.cachedOptions.length=0,g.previousValue=e.modelValue.toString();for(const Yt of e.modelValue){const Qt=Yl(Yt,wt);g.cachedOptions.push(Qt)}}else g.cachedOptions=[],g.previousValue=void 0;else if(J.value){g.previousValue=e.modelValue;const wt=Z.value,Yt=wt.findIndex(Qt=>en(d(Qt))===en(e.modelValue));~Yt?g.selectedLabel=u(wt[Yt]):(!g.selectedLabel||Xe)&&(g.selectedLabel=en(e.modelValue))}else g.selectedLabel="",g.previousValue=void 0;Oe(),Fe()};return Te(()=>e.fitInputWidth,()=>{Fe()}),Te(te,Xe=>{Xe?(e.persistent||Fe(),_n("")):(g.inputValue="",g.previousQuery=null,g.isBeforeHide=!0,Ee("")),t("visible-change",Xe)}),Te(()=>e.modelValue,(Xe,wt)=>{var Yt;(!Xe||Ve(Xe)&&Xe.length===0||e.multiple&&!$a(Xe.toString(),g.previousValue)||!e.multiple&&en(Xe)!==en(g.previousValue))&&Xl(!0),!$a(Xe,wt)&&e.validateEvent&&((Yt=r==null?void 0:r.validate)==null||Yt.call(r,"change").catch(Ea=>void 0))},{deep:!0}),Te(()=>e.options,()=>{const Xe=$.value;(!Xe||Xe&&document.activeElement!==Xe)&&Xl()},{deep:!0,flush:"post"}),Te(()=>Z.value,()=>(Fe(),A.value&&it(A.value.resetScrollTop))),Ls(()=>{g.isBeforeHide||ke()}),Ls(()=>{const{valueKey:Xe,options:wt}=e,Yt=new Map;for(const Qt of wt){const Ea=d(Qt);let io=Ea;if(Ot(io)&&(io=ya(Ea,Xe)),Yt.get(io))break;Yt.set(io,!0)}}),ft(()=>{Xl()}),Xn(b,st),Xn(C,nn),Xn(A,Ja),Xn(L,Ja),Xn(N,Hs),Xn(P,Ut),{inputId:i,collapseTagSize:Ae,currentPlaceholder:It,expanded:te,emptyText:Y,popupHeight:oe,debounce:D,allOptions:G,filteredOptions:Z,iconComponent:Q,iconReverse:H,tagStyle:Me,collapseTagStyle:at,popperSize:y,dropdownMenuVisible:kt,hasModelValue:J,shouldShowPlaceholder:Qe,selectDisabled:q,selectSize:we,needStatusIcon:ie,showClearBtn:ee,states:g,isFocused:U,nsSelect:a,nsInput:s,inputRef:$,menuRef:A,tagMenuRef:N,tooltipRef:k,tagTooltipRef:S,selectRef:b,wrapperRef:L,selectionRef:C,prefixRef:E,suffixRef:R,collapseItemRef:P,popperRef:je,validateState:X,validateIcon:he,showTagList:Mt,collapseTagList:Ht,debouncedOnInputChange:vn,deleteTag:cr,getLabel:u,getValue:d,getDisabled:p,getValueKey:en,handleClear:Ye,handleClickOutside:js,handleDel:ur,handleEsc:Wi,focus:As,blur:Rr,handleMenuEnter:Lo,handleResize:st,resetSelectionWidth:nn,updateTooltip:Ja,updateTagTooltip:Hs,updateOptions:ke,toggleMenu:ot,scrollTo:lo,onInput:qs,onKeyboardNavigate:ht,onKeyboardSelect:un,onSelect:Ks,onHover:ra,handleCompositionStart:M,handleCompositionEnd:j,handleCompositionUpdate:F}},NZ=le({name:"ElSelectV2",components:{ElSelectMenu:TZ,ElTag:Ti,ElTooltip:hs,ElIcon:ct},directives:{ClickOutside:Dl},props:lZ,emits:cZ,setup(e,{emit:t}){const n=x(()=>{const{modelValue:i,multiple:c}=e,u=c?[]:void 0;return Ve(i)?c?i:u:c?u:i}),a=AZ(At({...Pa(e),modelValue:n}),t),{calculatorRef:s,inputStyle:o}=$b();Gt(Mb,{props:At({...Pa(e),height:a.popupHeight,modelValue:n}),expanded:a.expanded,tooltipRef:a.tooltipRef,onSelect:a.onSelect,onHover:a.onHover,onKeyboardNavigate:a.onKeyboardNavigate,onKeyboardSelect:a.onKeyboardSelect});const r=x(()=>e.multiple?a.states.cachedOptions.map(i=>i.label):a.states.selectedLabel);return{...a,modelValue:n,selectedLabel:r,calculatorRef:s,inputStyle:o}}});function RZ(e,t,n,a,s,o){const r=Ne("el-tag"),i=Ne("el-tooltip"),c=Ne("el-icon"),u=Ne("el-select-menu"),d=gd("click-outside");return et((_(),w("div",{ref:"selectRef",class:V([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:p=>e.states.inputHovering=!0,onMouseleave:p=>e.states.inputHovering=!1},[z(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:p=>e.states.isBeforeHide=!1},{default:W(()=>[l("div",{ref:"wrapperRef",class:V([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:qe(e.toggleMenu,["prevent"])},[e.$slots.prefix?(_(),w("div",{key:0,ref:"prefixRef",class:V(e.nsSelect.e("prefix"))},[be(e.$slots,"prefix")],2)):K("v-if",!0),l("div",{ref:"selectionRef",class:V([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?be(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(_(!0),w(_e,null,Re(e.showTagList,p=>(_(),w("div",{key:e.getValueKey(e.getValue(p)),class:V(e.nsSelect.e("selected-item"))},[z(r,{closable:!e.selectDisabled&&!e.getDisabled(p),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Je(e.tagStyle),onClose:v=>e.deleteTag(v,p)},{default:W(()=>[l("span",{class:V(e.nsSelect.e("tags-text"))},[be(e.$slots,"label",{label:e.getLabel(p),value:e.getValue(p)},()=>[Ce(I(e.getLabel(p)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?(_(),ue(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,teleported:e.teleported},{default:W(()=>[l("div",{ref:"collapseItemRef",class:V(e.nsSelect.e("selected-item"))},[z(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:Je(e.collapseTagStyle),"disable-transitions":""},{default:W(()=>[l("span",{class:V(e.nsSelect.e("tags-text"))}," + "+I(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:W(()=>[l("div",{ref:"tagMenuRef",class:V(e.nsSelect.e("selection"))},[(_(!0),w(_e,null,Re(e.collapseTagList,p=>(_(),w("div",{key:e.getValueKey(e.getValue(p)),class:V(e.nsSelect.e("selected-item"))},[z(r,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(p),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:v=>e.deleteTag(v,p)},{default:W(()=>[l("span",{class:V(e.nsSelect.e("tags-text"))},[be(e.$slots,"label",{label:e.getLabel(p),value:e.getValue(p)},()=>[Ce(I(e.getLabel(p)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported"])):K("v-if",!0)]):K("v-if",!0),l("div",{class:V([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[et(l("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":p=>e.states.inputValue=p,style:Je(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:V([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:e.onInput,onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onKeydown:[yn(qe(p=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"]),yn(qe(p=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"]),yn(qe(e.onKeyboardSelect,["stop","prevent"]),["enter"]),yn(qe(e.handleEsc,["stop","prevent"]),["esc"]),yn(qe(e.handleDel,["stop"]),["delete"])],onClick:qe(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","autocomplete","tabindex","aria-expanded","aria-label","disabled","readonly","name","onInput","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown","onClick"]),[[hn,e.states.inputValue]]),e.filterable?(_(),w("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:V(e.nsSelect.e("input-calculator")),textContent:I(e.states.inputValue)},null,10,["textContent"])):K("v-if",!0)],2),e.shouldShowPlaceholder?(_(),w("div",{key:1,class:V([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?be(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[l("span",null,I(e.currentPlaceholder),1)]):(_(),w("span",{key:1},I(e.currentPlaceholder),1))],2)):K("v-if",!0)],2),l("div",{ref:"suffixRef",class:V(e.nsSelect.e("suffix"))},[e.iconComponent?et((_(),ue(c,{key:0,class:V([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:W(()=>[(_(),ue(Ft(e.iconComponent)))]),_:1},8,["class"])),[[fn,!e.showClearBtn]]):K("v-if",!0),e.showClearBtn&&e.clearIcon?(_(),ue(c,{key:1,class:V([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:qe(e.handleClear,["prevent","stop"])},{default:W(()=>[(_(),ue(Ft(e.clearIcon)))]),_:1},8,["class","onClick"])):K("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(_(),ue(c,{key:2,class:V([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:W(()=>[(_(),ue(Ft(e.validateIcon)))]),_:1},8,["class"])):K("v-if",!0)],2)],10,["onClick"])]),content:W(()=>[z(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},bo({default:W(p=>[be(e.$slots,"default",po(Jr(p)))]),_:2},[e.$slots.header?{name:"header",fn:W(()=>[l("div",{class:V(e.nsSelect.be("dropdown","header")),onClick:qe(()=>{},["stop"])},[be(e.$slots,"header")],10,["onClick"])])}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:W(()=>[l("div",{class:V(e.nsSelect.be("dropdown","loading"))},[be(e.$slots,"loading")],2)])}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:W(()=>[l("div",{class:V(e.nsSelect.be("dropdown","empty"))},[be(e.$slots,"empty",{},()=>[l("span",null,I(e.emptyText),1)])],2)])}:void 0,e.$slots.footer?{name:"footer",fn:W(()=>[l("div",{class:V(e.nsSelect.be("dropdown","footer")),onClick:qe(()=>{},["stop"])},[be(e.$slots,"footer")],10,["onClick"])])}:void 0]),1032,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],42,["onMouseenter","onMouseleave"])),[[d,e.handleClickOutside,e.popperRef]])}var PZ=ze(NZ,[["render",RZ],["__file","select.vue"]]);const MZ=Rt(PZ),BZ=Ue({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:ge([Number,Object])}}),LZ=Ue({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),OZ=le({name:"ElSkeletonItem"}),DZ=le({...OZ,props:LZ,setup(e){const t=Le("skeleton");return(n,a)=>(_(),w("div",{class:V([f(t).e("item"),f(t).e(n.variant)])},[n.variant==="image"?(_(),ue(f(q9),{key:0})):K("v-if",!0)],2))}});var Gh=ze(DZ,[["__file","skeleton-item.vue"]]);const VZ=(e,t=0)=>{if(t===0)return e;const n=Ot(t)&&!!t.initVal,a=T(n);let s=null;const o=i=>{if(tn(i)){a.value=e.value;return}s&&clearTimeout(s),s=setTimeout(()=>{a.value=e.value},i)},r=i=>{i==="leading"?gt(t)?o(t):o(t.leading):Ot(t)?o(t.trailing):a.value=!1};return ft(()=>r("leading")),Te(()=>e.value,i=>{r(i?"leading":"trailing")}),a},FZ=le({name:"ElSkeleton"}),UZ=le({...FZ,props:BZ,setup(e,{expose:t}){const n=e,a=Le("skeleton"),s=VZ(gn(n,"loading"),n.throttle);return t({uiLoading:s}),(o,r)=>f(s)?(_(),w("div",Kt({key:0,class:[f(a).b(),f(a).is("animated",o.animated)]},o.$attrs),[(_(!0),w(_e,null,Re(o.count,i=>(_(),w(_e,{key:i},[f(s)?be(o.$slots,"template",{key:i},()=>[z(Gh,{class:V(f(a).is("first")),variant:"p"},null,8,["class"]),(_(!0),w(_e,null,Re(o.rows,c=>(_(),ue(Gh,{key:c,class:V([f(a).e("paragraph"),f(a).is("last",c===o.rows&&o.rows>1)]),variant:"p"},null,8,["class"]))),128))]):K("v-if",!0)],64))),128))],16)):be(o.$slots,"default",po(Kt({key:1},o.$attrs)))}});var zZ=ze(UZ,[["__file","skeleton.vue"]]);const HZ=Rt(zZ,{SkeletonItem:Gh}),KZ=ea(Gh),z8=Symbol("sliderContextKey"),qZ=Ue({modelValue:{type:ge([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Ma,inputSize:Ma,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:ge(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:ge(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:ql,default:"top"},marks:{type:ge(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Ts(["ariaLabel"])}),cg=e=>gt(e)||Ve(e)&&e.every(gt),jZ={[Et]:cg,[Ra]:cg,[Xt]:cg},WZ=Ue({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:ql,default:"top"}}),GZ={[Et]:e=>gt(e)},YZ=(e,t,n)=>{const a=T(),s=T(!1),o=x(()=>t.value instanceof Function),r=x(()=>o.value&&t.value(e.modelValue)||e.modelValue),i=wo(()=>{n.value&&(s.value=!0)},50),c=wo(()=>{n.value&&(s.value=!1)},50);return{tooltip:a,tooltipVisible:s,formatValue:r,displayTooltip:i,hideTooltip:c}},XZ=(e,t,n)=>{const{disabled:a,min:s,max:o,step:r,showTooltip:i,persistent:c,precision:u,sliderSize:d,formatTooltip:p,emitChange:v,resetSize:h,updateDragging:m}=Ze(z8),{tooltip:g,tooltipVisible:y,formatValue:b,displayTooltip:C,hideTooltip:k}=YZ(e,p,i),S=T(),$=x(()=>`${(e.modelValue-s.value)/(o.value-s.value)*100}%`),E=x(()=>e.vertical?{bottom:$.value}:{left:$.value}),R=()=>{t.hovering=!0,C()},A=()=>{t.hovering=!1,t.dragging||k()},N=ie=>{a.value||(ie.preventDefault(),G(ie),window.addEventListener("mousemove",ae),window.addEventListener("touchmove",ae),window.addEventListener("mouseup",Z),window.addEventListener("touchend",Z),window.addEventListener("contextmenu",Z),S.value.focus())},P=ie=>{a.value||(t.newPosition=Number.parseFloat($.value)+ie/(o.value-s.value)*100,te(t.newPosition),v())},B=()=>{P(-r.value)},M=()=>{P(r.value)},j=()=>{P(-r.value*4)},F=()=>{P(r.value*4)},q=()=>{a.value||(te(0),v())},L=()=>{a.value||(te(100),v())},U=ie=>{let oe=!0;switch(ie.code){case tt.left:case tt.down:B();break;case tt.right:case tt.up:M();break;case tt.home:q();break;case tt.end:L();break;case tt.pageDown:j();break;case tt.pageUp:F();break;default:oe=!1;break}oe&&ie.preventDefault()},O=ie=>{let oe,J;return ie.type.startsWith("touch")?(J=ie.touches[0].clientY,oe=ie.touches[0].clientX):(J=ie.clientY,oe=ie.clientX),{clientX:oe,clientY:J}},G=ie=>{t.dragging=!0,t.isClick=!0;const{clientX:oe,clientY:J}=O(ie);e.vertical?t.startY=J:t.startX=oe,t.startPosition=Number.parseFloat($.value),t.newPosition=t.startPosition},ae=ie=>{if(t.dragging){t.isClick=!1,C(),h();let oe;const{clientX:J,clientY:ee}=O(ie);e.vertical?(t.currentY=ee,oe=(t.startY-t.currentY)/d.value*100):(t.currentX=J,oe=(t.currentX-t.startX)/d.value*100),t.newPosition=t.startPosition+oe,te(t.newPosition)}},Z=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||k(),t.isClick||te(t.newPosition),v()},0),window.removeEventListener("mousemove",ae),window.removeEventListener("touchmove",ae),window.removeEventListener("mouseup",Z),window.removeEventListener("touchend",Z),window.removeEventListener("contextmenu",Z))},te=async ie=>{if(ie===null||Number.isNaN(+ie))return;ie<0?ie=0:ie>100&&(ie=100);const oe=100/((o.value-s.value)/r.value);let ee=Math.round(ie/oe)*oe*(o.value-s.value)*.01+s.value;ee=Number.parseFloat(ee.toFixed(u.value)),ee!==e.modelValue&&n(Et,ee),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await it(),t.dragging&&C(),g.value.updatePopper()};return Te(()=>t.dragging,ie=>{m(ie)}),Rn(S,"touchstart",N,{passive:!1}),{disabled:a,button:S,tooltip:g,tooltipVisible:y,showTooltip:i,persistent:c,wrapperStyle:E,formatValue:b,handleMouseEnter:R,handleMouseLeave:A,onButtonDown:N,onKeyDown:U,setPosition:te}},QZ=le({name:"ElSliderButton"}),JZ=le({...QZ,props:WZ,emits:GZ,setup(e,{expose:t,emit:n}){const a=e,s=Le("slider"),o=At({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:a.modelValue}),r=x(()=>d.value?p.value:!1),{disabled:i,button:c,tooltip:u,showTooltip:d,persistent:p,tooltipVisible:v,wrapperStyle:h,formatValue:m,handleMouseEnter:g,handleMouseLeave:y,onButtonDown:b,onKeyDown:C,setPosition:k}=XZ(a,o,n),{hovering:S,dragging:$}=Pa(o);return t({onButtonDown:b,onKeyDown:C,setPosition:k,hovering:S,dragging:$}),(E,R)=>(_(),w("div",{ref_key:"button",ref:c,class:V([f(s).e("button-wrapper"),{hover:f(S),dragging:f($)}]),style:Je(f(h)),tabindex:f(i)?-1:0,onMouseenter:f(g),onMouseleave:f(y),onMousedown:f(b),onFocus:f(g),onBlur:f(y),onKeydown:f(C)},[z(f(hs),{ref_key:"tooltip",ref:u,visible:f(v),placement:E.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":E.tooltipClass,disabled:!f(d),persistent:f(r)},{content:W(()=>[l("span",null,I(f(m)),1)]),default:W(()=>[l("div",{class:V([f(s).e("button"),{hover:f(S),dragging:f($)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,["tabindex","onMouseenter","onMouseleave","onMousedown","onFocus","onBlur","onKeydown"]))}});var vS=ze(JZ,[["__file","button.vue"]]);const ZZ=Ue({mark:{type:ge([String,Object]),default:void 0}});var eee=le({name:"ElSliderMarker",props:ZZ,setup(e){const t=Le("slider"),n=x(()=>ut(e.mark)?e.mark:e.mark.label),a=x(()=>ut(e.mark)?void 0:e.mark.style);return()=>yt("div",{class:t.e("marks-text"),style:a.value},n.value)}});const tee=(e,t,n)=>{const{form:a,formItem:s}=Is(),o=Fn(),r=T(),i=T(),c={firstButton:r,secondButton:i},u=x(()=>e.disabled||(a==null?void 0:a.disabled)||!1),d=x(()=>Math.min(t.firstValue,t.secondValue)),p=x(()=>Math.max(t.firstValue,t.secondValue)),v=x(()=>e.range?`${100*(p.value-d.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=x(()=>e.range?`${100*(d.value-e.min)/(e.max-e.min)}%`:"0%"),m=x(()=>e.vertical?{height:e.height}:{}),g=x(()=>e.vertical?{height:v.value,bottom:h.value}:{width:v.value,left:h.value}),y=()=>{if(o.value){const M=o.value.getBoundingClientRect();t.sliderSize=M[e.vertical?"height":"width"]}},b=M=>{const j=e.min+M*(e.max-e.min)/100;if(!e.range)return r;let F;return Math.abs(d.value-j)t.secondValue?"firstButton":"secondButton",c[F]},C=M=>{const j=b(M);return j.value.setPosition(M),j},k=M=>{t.firstValue=M??e.min,$(e.range?[d.value,p.value]:M??e.min)},S=M=>{t.secondValue=M,e.range&&$([d.value,p.value])},$=M=>{n(Et,M),n(Ra,M)},E=async()=>{await it(),n(Xt,e.range?[d.value,p.value]:e.modelValue)},R=M=>{var j,F,q,L,U,O;if(u.value||t.dragging)return;y();let G=0;if(e.vertical){const ae=(q=(F=(j=M.touches)==null?void 0:j.item(0))==null?void 0:F.clientY)!=null?q:M.clientY;G=(o.value.getBoundingClientRect().bottom-ae)/t.sliderSize*100}else{const ae=(O=(U=(L=M.touches)==null?void 0:L.item(0))==null?void 0:U.clientX)!=null?O:M.clientX,Z=o.value.getBoundingClientRect().left;G=(ae-Z)/t.sliderSize*100}if(!(G<0||G>100))return C(G)};return{elFormItem:s,slider:o,firstButton:r,secondButton:i,sliderDisabled:u,minValue:d,maxValue:p,runwayStyle:m,barStyle:g,resetSize:y,setPosition:C,emitChange:E,onSliderWrapperPrevent:M=>{var j,F;((j=c.firstButton.value)!=null&&j.dragging||(F=c.secondButton.value)!=null&&F.dragging)&&M.preventDefault()},onSliderClick:M=>{R(M)&&E()},onSliderDown:async M=>{const j=R(M);j&&(await it(),j.value.onButtonDown(M))},onSliderMarkerDown:M=>{if(u.value||t.dragging)return;C(M)&&E()},setFirstValue:k,setSecondValue:S}},nee=(e,t,n,a)=>({stops:x(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const r=(e.max-e.min)/e.step,i=100*e.step/(e.max-e.min),c=Array.from({length:r-1}).map((u,d)=>(d+1)*i);return e.range?c.filter(u=>u<100*(n.value-e.min)/(e.max-e.min)||u>100*(a.value-e.min)/(e.max-e.min)):c.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:r=>e.vertical?{bottom:`${r}%`}:{left:`${r}%`}}),aee=e=>x(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,a)=>n-a).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),see=(e,t,n,a,s,o)=>{const r=u=>{s(Et,u),s(Ra,u)},i=()=>e.range?![n.value,a.value].every((u,d)=>u===t.oldValue[d]):e.modelValue!==t.oldValue,c=()=>{var u,d;e.min>e.max&&Ca("Slider","min should not be greater than max.");const p=e.modelValue;e.range&&Ve(p)?p[1]e.max?r([e.max,e.max]):p[0]e.max?r([p[0],e.max]):(t.firstValue=p[0],t.secondValue=p[1],i()&&(e.validateEvent&&((u=o==null?void 0:o.validate)==null||u.call(o,"change").catch(v=>void 0)),t.oldValue=p.slice())):!e.range&>(p)&&!Number.isNaN(p)&&(pe.max?r(e.max):(t.firstValue=p,i()&&(e.validateEvent&&((d=o==null?void 0:o.validate)==null||d.call(o,"change").catch(v=>void 0)),t.oldValue=p)))};c(),Te(()=>t.dragging,u=>{u||c()}),Te(()=>e.modelValue,(u,d)=>{t.dragging||Ve(u)&&Ve(d)&&u.every((p,v)=>p===d[v])&&t.firstValue===u[0]&&t.secondValue===u[1]||c()},{deep:!0}),Te(()=>[e.min,e.max],()=>{c()})},oee=(e,t,n)=>{const a=T();return ft(async()=>{e.range?(Ve(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!gt(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Rn(window,"resize",n),await it(),n()}),{sliderWrapper:a}},ree=le({name:"ElSlider"}),lee=le({...ree,props:qZ,emits:jZ,setup(e,{expose:t,emit:n}){const a=e,s=Le("slider"),{t:o}=rn(),r=At({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:i,slider:c,firstButton:u,secondButton:d,sliderDisabled:p,minValue:v,maxValue:h,runwayStyle:m,barStyle:g,resetSize:y,emitChange:b,onSliderWrapperPrevent:C,onSliderClick:k,onSliderDown:S,onSliderMarkerDown:$,setFirstValue:E,setSecondValue:R}=tee(a,r,n),{stops:A,getStopStyle:N}=nee(a,r,v,h),{inputId:P,isLabeledByFormItem:B}=rr(a,{formItemContext:i}),M=xa(),j=x(()=>a.inputSize||M.value),F=x(()=>a.ariaLabel||o("el.slider.defaultLabel",{min:a.min,max:a.max})),q=x(()=>a.range?a.rangeStartLabel||o("el.slider.defaultRangeStartLabel"):F.value),L=x(()=>a.formatValueText?a.formatValueText(ie.value):`${ie.value}`),U=x(()=>a.rangeEndLabel||o("el.slider.defaultRangeEndLabel")),O=x(()=>a.formatValueText?a.formatValueText(oe.value):`${oe.value}`),G=x(()=>[s.b(),s.m(M.value),s.is("vertical",a.vertical),{[s.m("with-input")]:a.showInput}]),ae=aee(a);see(a,r,v,h,n,i);const Z=x(()=>{const Q=[a.min,a.max,a.step].map(H=>{const X=`${H}`.split(".")[1];return X?X.length:0});return Math.max.apply(null,Q)}),{sliderWrapper:te}=oee(a,r,y),{firstValue:ie,secondValue:oe,sliderSize:J}=Pa(r),ee=Q=>{r.dragging=Q};return Rn(te,"touchstart",C,{passive:!1}),Rn(te,"touchmove",C,{passive:!1}),Gt(z8,{...Pa(a),sliderSize:J,disabled:p,precision:Z,emitChange:b,resetSize:y,updateDragging:ee}),t({onSliderClick:k}),(Q,H)=>{var X,he;return _(),w("div",{id:Q.range?f(P):void 0,ref_key:"sliderWrapper",ref:te,class:V(f(G)),role:Q.range?"group":void 0,"aria-label":Q.range&&!f(B)?f(F):void 0,"aria-labelledby":Q.range&&f(B)?(X=f(i))==null?void 0:X.labelId:void 0},[l("div",{ref_key:"slider",ref:c,class:V([f(s).e("runway"),{"show-input":Q.showInput&&!Q.range},f(s).is("disabled",f(p))]),style:Je(f(m)),onMousedown:f(S),onTouchstartPassive:f(S)},[l("div",{class:V(f(s).e("bar")),style:Je(f(g))},null,6),z(vS,{id:Q.range?void 0:f(P),ref_key:"firstButton",ref:u,"model-value":f(ie),vertical:Q.vertical,"tooltip-class":Q.tooltipClass,placement:Q.placement,role:"slider","aria-label":Q.range||!f(B)?f(q):void 0,"aria-labelledby":!Q.range&&f(B)?(he=f(i))==null?void 0:he.labelId:void 0,"aria-valuemin":Q.min,"aria-valuemax":Q.range?f(oe):Q.max,"aria-valuenow":f(ie),"aria-valuetext":f(L),"aria-orientation":Q.vertical?"vertical":"horizontal","aria-disabled":f(p),"onUpdate:modelValue":f(E)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),Q.range?(_(),ue(vS,{key:0,ref_key:"secondButton",ref:d,"model-value":f(oe),vertical:Q.vertical,"tooltip-class":Q.tooltipClass,placement:Q.placement,role:"slider","aria-label":f(U),"aria-valuemin":f(ie),"aria-valuemax":Q.max,"aria-valuenow":f(oe),"aria-valuetext":f(O),"aria-orientation":Q.vertical?"vertical":"horizontal","aria-disabled":f(p),"onUpdate:modelValue":f(R)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):K("v-if",!0),Q.showStops?(_(),w("div",{key:1},[(_(!0),w(_e,null,Re(f(A),(D,Y)=>(_(),w("div",{key:Y,class:V(f(s).e("stop")),style:Je(f(N)(D))},null,6))),128))])):K("v-if",!0),f(ae).length>0?(_(),w(_e,{key:2},[l("div",null,[(_(!0),w(_e,null,Re(f(ae),(D,Y)=>(_(),w("div",{key:Y,style:Je(f(N)(D.position)),class:V([f(s).e("stop"),f(s).e("marks-stop")])},null,6))),128))]),l("div",{class:V(f(s).e("marks"))},[(_(!0),w(_e,null,Re(f(ae),(D,Y)=>(_(),ue(f(eee),{key:Y,mark:D.mark,style:Je(f(N)(D.position)),onMousedown:qe(ne=>f($)(D.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):K("v-if",!0)],46,["onMousedown","onTouchstartPassive"]),Q.showInput&&!Q.range?(_(),ue(f(k8),{key:0,ref:"input","model-value":f(ie),class:V(f(s).e("input")),step:Q.step,disabled:f(p),controls:Q.showInputControls,min:Q.min,max:Q.max,precision:f(Z),debounce:Q.debounce,size:f(j),"onUpdate:modelValue":f(E),onChange:f(b)},null,8,["model-value","class","step","disabled","controls","min","max","precision","debounce","size","onUpdate:modelValue","onChange"])):K("v-if",!0)],10,["id","role","aria-label","aria-labelledby"])}}});var iee=ze(lee,[["__file","slider.vue"]]);const cee=Rt(iee),uee=Ue({prefixCls:{type:String}}),hS=le({name:"ElSpaceItem",props:uee,setup(e,{slots:t}){const n=Le("space"),a=x(()=>`${e.prefixCls||n.b()}__item`);return()=>yt("div",{class:a.value},be(t,"default"))}}),mS={small:8,default:12,large:16};function dee(e){const t=Le("space"),n=x(()=>[t.b(),t.m(e.direction),e.class]),a=T(0),s=T(0),o=x(()=>{const i=e.wrap||e.fill?{flexWrap:"wrap"}:{},c={alignItems:e.alignment},u={rowGap:`${s.value}px`,columnGap:`${a.value}px`};return[i,c,u,e.style]}),r=x(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return Ls(()=>{const{size:i="small",wrap:c,direction:u,fill:d}=e;if(Ve(i)){const[p=0,v=0]=i;a.value=p,s.value=v}else{let p;gt(i)?p=i:p=mS[i||"small"]||mS.small,(c||d)&&u==="horizontal"?a.value=s.value=p:u==="horizontal"?(a.value=p,s.value=0):(s.value=p,a.value=0)}}),{classes:n,containerStyle:o,itemStyle:r}}const fee=Ue({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:ge([String,Object,Array]),default:""},style:{type:ge([String,Array,Object]),default:""},alignment:{type:ge(String),default:"center"},prefixCls:{type:String},spacer:{type:ge([Object,String,Number,Array]),default:null,validator:e=>Un(e)||gt(e)||ut(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:ol,validator:e=>gt(e)||Ve(e)&&e.length===2&&e.every(gt)}}),pee=le({name:"ElSpace",props:fee,setup(e,{slots:t}){const{classes:n,containerStyle:a,itemStyle:s}=dee(e);function o(r,i="",c=[]){const{prefixCls:u}=e;return r.forEach((d,p)=>{b_(d)?Ve(d.children)&&d.children.forEach((v,h)=>{b_(v)&&Ve(v.children)?o(v.children,`${i+h}-`,c):Un(v)&&(v==null?void 0:v.type)===ts?c.push(v):c.push(z(hS,{style:s.value,prefixCls:u,key:`nested-${i+h}`},{default:()=>[v]},Fo.PROPS|Fo.STYLE,["style","prefixCls"]))}):DH(d)&&c.push(z(hS,{style:s.value,prefixCls:u,key:`LoopKey${i+p}`},{default:()=>[d]},Fo.PROPS|Fo.STYLE,["style","prefixCls"]))}),c}return()=>{var r;const{spacer:i,direction:c}=e,u=be(t,"default",{key:0},()=>[]);if(((r=u.children)!=null?r:[]).length===0)return null;if(Ve(u.children)){let d=o(u.children);if(i){const p=d.length-1;d=d.reduce((v,h,m)=>{const g=[...v,h];return m!==p&&g.push(z("span",{style:[s.value,c==="vertical"?"width: 100%":null],key:m},[Un(i)?i:Ce(i,Fo.TEXT)],Fo.STYLE)),g},[])}return z("div",{class:n.value,style:a.value},d,Fo.STYLE|Fo.CLASS)}return u.children}}}),vee=Rt(pee),hee=Ue({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:ge([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:ge([String,Object,Array])}}),mee=le({name:"ElStatistic"}),gee=le({...mee,props:hee,setup(e,{expose:t}){const n=e,a=Le("statistic"),s=x(()=>{const{value:o,formatter:r,precision:i,decimalSeparator:c,groupSeparator:u}=n;if(vt(r))return r(o);if(!gt(o)||Number.isNaN(o))return o;let[d,p=""]=String(o).split(".");return p=p.padEnd(i,"0").slice(0,i>0?i:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,u),[d,p].join(p?c:"")});return t({displayValue:s}),(o,r)=>(_(),w("div",{class:V(f(a).b())},[o.$slots.title||o.title?(_(),w("div",{key:0,class:V(f(a).e("head"))},[be(o.$slots,"title",{},()=>[Ce(I(o.title),1)])],2)):K("v-if",!0),l("div",{class:V(f(a).e("content"))},[o.$slots.prefix||o.prefix?(_(),w("div",{key:0,class:V(f(a).e("prefix"))},[be(o.$slots,"prefix",{},()=>[l("span",null,I(o.prefix),1)])],2)):K("v-if",!0),l("span",{class:V(f(a).e("number")),style:Je(o.valueStyle)},I(f(s)),7),o.$slots.suffix||o.suffix?(_(),w("div",{key:1,class:V(f(a).e("suffix"))},[be(o.$slots,"suffix",{},()=>[l("span",null,I(o.suffix),1)])],2)):K("v-if",!0)],2)],2))}});var _ee=ze(gee,[["__file","statistic.vue"]]);const H8=Rt(_ee),yee=Ue({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:ge([Number,Object]),default:0},valueStyle:{type:ge([String,Object,Array])}}),bee={finish:()=>!0,[Xt]:e=>gt(e)},wee=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],gS=e=>gt(e)?new Date(e).getTime():e.valueOf(),_S=(e,t)=>{let n=e;const a=/\[([^\]]*)]/g;return wee.reduce((o,[r,i])=>{const c=new RegExp(`${r}+(?![^\\[\\]]*\\])`,"g");if(c.test(o)){const u=Math.floor(n/i);return n-=u*i,o.replace(c,d=>String(u).padStart(d.length,"0"))}return o},t).replace(a,"$1")},Cee=le({name:"ElCountdown"}),kee=le({...Cee,props:yee,emits:bee,setup(e,{expose:t,emit:n}){const a=e;let s;const o=T(0),r=x(()=>_S(o.value,a.format)),i=d=>_S(d,a.format),c=()=>{s&&(Oc(s),s=void 0)},u=()=>{const d=gS(a.value),p=()=>{let v=d-Date.now();n(Xt,v),v<=0?(v=0,c(),n("finish")):s=Oi(p),o.value=v};s=Oi(p)};return ft(()=>{o.value=gS(a.value)-Date.now(),Te(()=>[a.value,a.format],()=>{c(),u()},{immediate:!0})}),on(()=>{c()}),t({displayValue:r}),(d,p)=>(_(),ue(f(H8),{value:o.value,title:d.title,prefix:d.prefix,suffix:d.suffix,"value-style":d.valueStyle,formatter:i},bo({_:2},[Re(d.$slots,(v,h)=>({name:h,fn:W(()=>[be(d.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var See=ze(kee,[["__file","countdown.vue"]]);const Eee=Rt(See),$ee=Ue({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),xee={[Xt]:(e,t)=>[e,t].every(gt)},K8="ElSteps",Tee=le({name:"ElSteps"}),Iee=le({...Tee,props:$ee,emits:xee,setup(e,{emit:t}){const n=e,a=Le("steps"),{children:s,addChild:o,removeChild:r,ChildrenSorter:i}=Ym(qt(),"ElStep");return Te(s,()=>{s.value.forEach((c,u)=>{c.setIndex(u)})}),Gt(K8,{props:n,steps:s,addStep:o,removeStep:r}),Te(()=>n.active,(c,u)=>{t(Xt,c,u)}),(c,u)=>(_(),w("div",{class:V([f(a).b(),f(a).m(c.simple?"simple":c.direction)])},[be(c.$slots,"default"),z(f(i))],2))}});var Aee=ze(Iee,[["__file","steps.vue"]]);const Nee=Ue({title:{type:String,default:""},icon:{type:wn},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),Ree=le({name:"ElStep"}),Pee=le({...Ree,props:Nee,setup(e){const t=e,n=Le("step"),a=T(-1),s=T({}),o=T(""),r=Ze(K8),i=qt();ft(()=>{Te([()=>r.props.active,()=>r.props.processStatus,()=>r.props.finishStatus],([E])=>{S(E)},{immediate:!0})});const c=x(()=>t.status||o.value),u=x(()=>{const E=r.steps.value[a.value-1];return E?E.internalStatus.value:"wait"}),d=x(()=>r.props.alignCenter),p=x(()=>r.props.direction==="vertical"),v=x(()=>r.props.simple),h=x(()=>r.steps.value.length),m=x(()=>{var E;return((E=r.steps.value[h.value-1])==null?void 0:E.uid)===i.uid}),g=x(()=>v.value?"":r.props.space),y=x(()=>[n.b(),n.is(v.value?"simple":r.props.direction),n.is("flex",m.value&&!g.value&&!d.value),n.is("center",d.value&&!p.value&&!v.value)]),b=x(()=>{const E={flexBasis:gt(g.value)?`${g.value}px`:g.value?g.value:`${100/(h.value-(d.value?0:1))}%`};return p.value||m.value&&(E.maxWidth=`${100/h.value}%`),E}),C=E=>{a.value=E},k=E=>{const R=E==="wait",A={transitionDelay:`${R?"-":""}${150*a.value}ms`},N=E===r.props.processStatus||R?0:100;A.borderWidth=N&&!v.value?"1px":0,A[r.props.direction==="vertical"?"height":"width"]=`${N}%`,s.value=A},S=E=>{E>a.value?o.value=r.props.finishStatus:E===a.value&&u.value!=="error"?o.value=r.props.processStatus:o.value="wait";const R=r.steps.value[a.value-1];R&&R.calcProgress(o.value)},$={uid:i.uid,getVnode:()=>i.vnode,currentStatus:c,internalStatus:o,setIndex:C,calcProgress:k};return r.addStep($),on(()=>{r.removeStep($)}),(E,R)=>(_(),w("div",{style:Je(f(b)),class:V(f(y))},[K(" icon & line "),l("div",{class:V([f(n).e("head"),f(n).is(f(c))])},[f(v)?K("v-if",!0):(_(),w("div",{key:0,class:V(f(n).e("line"))},[l("i",{class:V(f(n).e("line-inner")),style:Je(s.value)},null,6)],2)),l("div",{class:V([f(n).e("icon"),f(n).is(E.icon||E.$slots.icon?"icon":"text")])},[be(E.$slots,"icon",{},()=>[E.icon?(_(),ue(f(ct),{key:0,class:V(f(n).e("icon-inner"))},{default:W(()=>[(_(),ue(Ft(E.icon)))]),_:1},8,["class"])):f(c)==="success"?(_(),ue(f(ct),{key:1,class:V([f(n).e("icon-inner"),f(n).is("status")])},{default:W(()=>[z(f(Np))]),_:1},8,["class"])):f(c)==="error"?(_(),ue(f(ct),{key:2,class:V([f(n).e("icon-inner"),f(n).is("status")])},{default:W(()=>[z(f(nr))]),_:1},8,["class"])):f(v)?K("v-if",!0):(_(),w("div",{key:3,class:V(f(n).e("icon-inner"))},I(a.value+1),3))])],2)],2),K(" title & description "),l("div",{class:V(f(n).e("main"))},[l("div",{class:V([f(n).e("title"),f(n).is(f(c))])},[be(E.$slots,"title",{},()=>[Ce(I(E.title),1)])],2),f(v)?(_(),w("div",{key:0,class:V(f(n).e("arrow"))},null,2)):(_(),w("div",{key:1,class:V([f(n).e("description"),f(n).is(f(c))])},[be(E.$slots,"description",{},()=>[Ce(I(E.description),1)])],2))],2)],6))}});var q8=ze(Pee,[["__file","item.vue"]]);const Mee=Rt(Aee,{Step:q8}),Bee=ea(q8),j8=e=>["",...ol].includes(e),Lee=Ue({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:j8},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:wn},activeActionIcon:{type:wn},activeIcon:{type:wn},inactiveIcon:{type:wn},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:ge(Function)},id:String,tabindex:{type:[String,Number]},...Ts(["ariaLabel"])}),Oee={[Et]:e=>En(e)||ut(e)||gt(e),[Xt]:e=>En(e)||ut(e)||gt(e),[Ra]:e=>En(e)||ut(e)||gt(e)},W8="ElSwitch",Dee=le({name:W8}),Vee=le({...Dee,props:Lee,emits:Oee,setup(e,{expose:t,emit:n}){const a=e,{formItem:s}=Is(),o=xa(),r=Le("switch"),{inputId:i}=rr(a,{formItemContext:s}),c=Xa(x(()=>a.loading)),u=T(a.modelValue!==!1),d=T(),p=T(),v=x(()=>[r.b(),r.m(o.value),r.is("disabled",c.value),r.is("checked",b.value)]),h=x(()=>[r.e("label"),r.em("label","left"),r.is("active",!b.value)]),m=x(()=>[r.e("label"),r.em("label","right"),r.is("active",b.value)]),g=x(()=>({width:sa(a.width)}));Te(()=>a.modelValue,()=>{u.value=!0});const y=x(()=>u.value?a.modelValue:!1),b=x(()=>y.value===a.activeValue);[a.activeValue,a.inactiveValue].includes(y.value)||(n(Et,a.inactiveValue),n(Xt,a.inactiveValue),n(Ra,a.inactiveValue)),Te(b,$=>{var E;d.value.checked=$,a.validateEvent&&((E=s==null?void 0:s.validate)==null||E.call(s,"change").catch(R=>void 0))});const C=()=>{const $=b.value?a.inactiveValue:a.activeValue;n(Et,$),n(Xt,$),n(Ra,$),it(()=>{d.value.checked=b.value})},k=()=>{if(c.value)return;const{beforeChange:$}=a;if(!$){C();return}const E=$();[Nc(E),En(E)].includes(!0)||Ca(W8,"beforeChange must return type `Promise` or `boolean`"),Nc(E)?E.then(A=>{A&&C()}).catch(A=>{}):E&&C()},S=()=>{var $,E;(E=($=d.value)==null?void 0:$.focus)==null||E.call($)};return ft(()=>{d.value.checked=b.value}),t({focus:S,checked:b}),($,E)=>(_(),w("div",{class:V(f(v)),onClick:qe(k,["prevent"])},[l("input",{id:f(i),ref_key:"input",ref:d,class:V(f(r).e("input")),type:"checkbox",role:"switch","aria-checked":f(b),"aria-disabled":f(c),"aria-label":$.ariaLabel,name:$.name,"true-value":$.activeValue,"false-value":$.inactiveValue,disabled:f(c),tabindex:$.tabindex,onChange:C,onKeydown:yn(k,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),!$.inlinePrompt&&($.inactiveIcon||$.inactiveText)?(_(),w("span",{key:0,class:V(f(h))},[$.inactiveIcon?(_(),ue(f(ct),{key:0},{default:W(()=>[(_(),ue(Ft($.inactiveIcon)))]),_:1})):K("v-if",!0),!$.inactiveIcon&&$.inactiveText?(_(),w("span",{key:1,"aria-hidden":f(b)},I($.inactiveText),9,["aria-hidden"])):K("v-if",!0)],2)):K("v-if",!0),l("span",{ref_key:"core",ref:p,class:V(f(r).e("core")),style:Je(f(g))},[$.inlinePrompt?(_(),w("div",{key:0,class:V(f(r).e("inner"))},[$.activeIcon||$.inactiveIcon?(_(),ue(f(ct),{key:0,class:V(f(r).is("icon"))},{default:W(()=>[(_(),ue(Ft(f(b)?$.activeIcon:$.inactiveIcon)))]),_:1},8,["class"])):$.activeText||$.inactiveText?(_(),w("span",{key:1,class:V(f(r).is("text")),"aria-hidden":!f(b)},I(f(b)?$.activeText:$.inactiveText),11,["aria-hidden"])):K("v-if",!0)],2)):K("v-if",!0),l("div",{class:V(f(r).e("action"))},[$.loading?(_(),ue(f(ct),{key:0,class:V(f(r).is("loading"))},{default:W(()=>[z(f(el))]),_:1},8,["class"])):f(b)?be($.$slots,"active-action",{key:1},()=>[$.activeActionIcon?(_(),ue(f(ct),{key:0},{default:W(()=>[(_(),ue(Ft($.activeActionIcon)))]),_:1})):K("v-if",!0)]):f(b)?K("v-if",!0):be($.$slots,"inactive-action",{key:2},()=>[$.inactiveActionIcon?(_(),ue(f(ct),{key:0},{default:W(()=>[(_(),ue(Ft($.inactiveActionIcon)))]),_:1})):K("v-if",!0)])],2)],6),!$.inlinePrompt&&($.activeIcon||$.activeText)?(_(),w("span",{key:1,class:V(f(m))},[$.activeIcon?(_(),ue(f(ct),{key:0},{default:W(()=>[(_(),ue(Ft($.activeIcon)))]),_:1})):K("v-if",!0),!$.activeIcon&&$.activeText?(_(),w("span",{key:1,"aria-hidden":!f(b)},I($.activeText),9,["aria-hidden"])):K("v-if",!0)],2)):K("v-if",!0)],10,["onClick"]))}});var Fee=ze(Vee,[["__file","switch.vue"]]);const Uee=Rt(Fee),ug=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},zee=function(e,t,n,a,s){if(!t&&!a&&(!s||Ve(s)&&!s.length))return e;ut(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const o=a?null:function(i,c){return s?F4(es(s),u=>ut(u)?ya(i,u):u(i,c,e)):(t!=="$key"&&Ot(i)&&"$value"in i&&(i=i.$value),[Ot(i)?t?ya(i,t):null:i])},r=function(i,c){var u,d,p,v,h,m;if(a)return a(i.value,c.value);for(let g=0,y=(d=(u=i.key)==null?void 0:u.length)!=null?d:0;g((m=c.key)==null?void 0:m[g]))return 1}return 0};return e.map((i,c)=>({value:i,index:c,key:o?o(i,c):null})).sort((i,c)=>{let u=r(i,c);return u||(u=i.index-c.index),u*+n}).map(i=>i.value)},G8=function(e,t){let n=null;return e.columns.forEach(a=>{a.id===t&&(n=a)}),n},Hee=function(e,t){let n=null;for(let a=0;a{if(!e)throw new Error("Row is required when get row identity");if(ut(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let a=e;for(const s of n)a=a[s];return`${a}`}else if(vt(t))return t.call(null,e);return""},Bu=function(e,t,n=!1,a="children"){const s=e||[],o={};return s.forEach((r,i)=>{if(o[Cs(r,t)]={row:r,index:i},n){const c=r[a];Ve(c)&&Object.assign(o,Bu(c,t,!0,a))}}),o};function Kee(e,t){const n={};let a;for(a in e)n[a]=e[a];for(a in t)if(ln(t,a)){const s=t[a];tn(s)||(n[a]=s)}return n}function Db(e){return e===""||tn(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function Y8(e){return e===""||tn(e)||(e=Db(e),Number.isNaN(e)&&(e=80)),e}function qee(e){return gt(e)?e:ut(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function jee(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...a)=>t(n(...a)))}function Yh(e,t,n,a,s,o,r){let i=o??0,c=!1;const d=(()=>{if(!r)return e.indexOf(t);const g=Cs(t,r);return e.findIndex(y=>Cs(y,r)===g)})(),p=d!==-1,v=s==null?void 0:s.call(null,t,i),h=g=>{g==="add"?e.push(t):e.splice(d,1),c=!0},m=g=>{let y=0;const b=(a==null?void 0:a.children)&&g[a.children];return b&&Ve(b)&&(y+=b.length,b.forEach(C=>{y+=m(C)})),y};return(!s||v)&&(En(n)?n&&!p?h("add"):!n&&p&&h("remove"):h(p?"remove":"add")),!(a!=null&&a.checkStrictly)&&(a!=null&&a.children)&&Ve(t[a.children])&&t[a.children].forEach(g=>{const y=Yh(e,g,n??!p,a,s,i+1,r);i+=m(g)+1,y&&(c=y)}),c}function Wee(e,t,n="children",a="hasChildren",s=!1){const o=i=>!(Ve(i)&&i.length);function r(i,c,u){t(i,c,u),c.forEach(d=>{if(d[a]&&s){t(d,null,u+1);return}const p=d[n];o(p)||r(d,p,u+1)})}e.forEach(i=>{if(i[a]&&s){t(i,null,0);return}const c=i[n];o(c)||r(i,c,0)})}const Gee=(e,t,n,a)=>{const s={strategy:"fixed",...e.popperOptions},o=vt(a==null?void 0:a.tooltipFormatter)?a.tooltipFormatter({row:n,column:a,cellValue:$f(n,a.property).value}):void 0;return Un(o)?{slotContent:o,content:null,...e,popperOptions:s}:{slotContent:null,content:o??t,...e,popperOptions:s}};let Rs=null;function Yee(e,t,n,a,s,o){var r;const i=Gee(e,t,n,a),c={...i,slotContent:void 0};if((Rs==null?void 0:Rs.trigger)===s){const m=(r=Rs.vm)==null?void 0:r.component;U4(m==null?void 0:m.props,c),m&&i.slotContent&&(m.slots.content=()=>[i.slotContent]);return}Rs==null||Rs();const u=o==null?void 0:o.refs.tableWrapper,d=u==null?void 0:u.dataset.prefix,p=z(hs,{virtualTriggering:!0,virtualRef:s,appendTo:u,placement:"top",transition:"none",offset:0,hideAfter:0,...c},i.slotContent?{content:()=>i.slotContent}:void 0);p.appContext={...o.appContext,...o};const v=document.createElement("div");Bi(p,v),p.component.exposed.onOpen();const h=u==null?void 0:u.querySelector(`.${d}-scrollbar__wrap`);Rs=()=>{var m,g;(g=(m=p.component)==null?void 0:m.exposed)!=null&&g.onClose&&p.component.exposed.onClose(),Bi(null,v);const y=Rs;h==null||h.removeEventListener("scroll",y),y.trigger=void 0,y.vm=void 0,Rs=null},Rs.trigger=s??void 0,Rs.vm=p,h==null||h.addEventListener("scroll",Rs)}function X8(e){return e.children?F4(e.children,X8):[e]}function bS(e,t){return e+t.colSpan}const Q8=(e,t,n,a)=>{let s=0,o=e;const r=n.states.columns.value;if(a){const c=X8(a[e]);s=r.slice(0,r.indexOf(c[0])).reduce(bS,0),o=s+c.reduce(bS,0)-1}else s=e;let i;switch(t){case"left":o=r.length-n.states.rightFixedLeafColumnsLength.value&&(i="right");break;default:o=r.length-n.states.rightFixedLeafColumnsLength.value&&(i="right")}return i?{direction:i,start:s,after:o}:{}},Vb=(e,t,n,a,s,o=0)=>{const r=[],{direction:i,start:c,after:u}=Q8(t,n,a,s);if(i){const d=i==="left";r.push(`${e}-fixed-column--${i}`),d&&u+o===a.states.fixedLeafColumnsLength.value-1?r.push("is-last-column"):!d&&c-o===a.states.columns.value.length-a.states.rightFixedLeafColumnsLength.value&&r.push("is-first-column")}return r};function wS(e,t){return e+(Tp(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Fb=(e,t,n,a)=>{const{direction:s,start:o=0,after:r=0}=Q8(e,t,n,a);if(!s)return;const i={},c=s==="left",u=n.states.columns.value;return c?i.left=u.slice(0,o).reduce(wS,0):i.right=u.slice(r+1).reverse().reduce(wS,0),i},ed=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function Xee(e){const t=qt(),n=T(!1),a=T([]);return{updateExpandRows:()=>{const c=e.data.value||[],u=e.rowKey.value;if(n.value)a.value=c.slice();else if(u){const d=Bu(a.value,u);a.value=c.reduce((p,v)=>{const h=Cs(v,u);return d[h]&&p.push(v),p},[])}else a.value=[]},toggleRowExpansion:(c,u)=>{Yh(a.value,c,u,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",c,a.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const u=e.data.value||[],d=e.rowKey.value,p=Bu(u,d);a.value=c.reduce((v,h)=>{const m=p[h];return m&&v.push(m.row),v},[])},isRowExpanded:c=>{const u=e.rowKey.value;return u?!!Bu(a.value,u)[Cs(c,u)]:a.value.includes(c)},states:{expandRows:a,defaultExpandAll:n}}}function Qee(e){const t=qt(),n=T(null),a=T(null),s=u=>{t.store.assertRowKey(),n.value=u,r(u)},o=()=>{n.value=null},r=u=>{var d;const{data:p,rowKey:v}=e;let h=null;v.value&&(h=(d=(f(p)||[]).find(m=>Cs(m,v.value)===u))!=null?d:null),a.value=h??null,t.emit("current-change",a.value,null)};return{setCurrentRowKey:s,restoreCurrentRowKey:o,setCurrentRowByKey:r,updateCurrentRow:u=>{const d=a.value;if(u&&u!==d){a.value=u,t.emit("current-change",a.value,d);return}!u&&d&&(a.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const u=e.rowKey.value,d=e.data.value||[],p=a.value;if(p&&!d.includes(p)){if(u){const v=Cs(p,u);r(v)}else a.value=null;Tp(a.value)&&t.emit("current-change",null,p)}else n.value&&(r(n.value),o())},states:{_currentRowKey:n,currentRow:a}}}function Jee(e){const t=T([]),n=T({}),a=T(16),s=T(!1),o=T({}),r=T("hasChildren"),i=T("children"),c=T(!1),u=qt(),d=x(()=>{if(!e.rowKey.value)return{};const S=e.data.value||[];return v(S)}),p=x(()=>{const S=e.rowKey.value,$=Object.keys(o.value),E={};return $.length&&$.forEach(R=>{if(o.value[R].length){const A={children:[]};o.value[R].forEach(N=>{const P=Cs(N,S);A.children.push(P),N[r.value]&&!E[P]&&(E[P]={children:[]})}),E[R]=A}}),E}),v=S=>{const $=e.rowKey.value,E={};return Wee(S,(R,A,N)=>{const P=Cs(R,$);Ve(A)?E[P]={children:A.map(B=>Cs(B,$)),level:N}:s.value&&(E[P]={children:[],lazy:!0,level:N})},i.value,r.value,s.value),E},h=(S=!1,$)=>{var E,R;$||($=(E=u.store)==null?void 0:E.states.defaultExpandAll.value);const A=d.value,N=p.value,P=Object.keys(A),B={};if(P.length){const M=f(n),j=[],F=(L,U)=>{if(S)return t.value?$||t.value.includes(U):!!($||L!=null&&L.expanded);{const O=$||t.value&&t.value.includes(U);return!!(L!=null&&L.expanded||O)}};P.forEach(L=>{const U=M[L],O={...A[L]};if(O.expanded=F(U,L),O.lazy){const{loaded:G=!1,loading:ae=!1}=U||{};O.loaded=!!G,O.loading=!!ae,j.push(L)}B[L]=O});const q=Object.keys(N);s.value&&q.length&&j.length&&q.forEach(L=>{var U;const O=M[L],G=N[L].children;if(j.includes(L)){if(((U=B[L].children)==null?void 0:U.length)!==0)throw new Error("[ElTable]children must be an empty array.");B[L].children=G}else{const{loaded:ae=!1,loading:Z=!1}=O||{};B[L]={lazy:!0,loaded:!!ae,loading:!!Z,expanded:F(O,L),children:G,level:void 0}}})}n.value=B,(R=u.store)==null||R.updateTableScrollY()};Te(()=>t.value,()=>{h(!0)}),Te(()=>d.value,()=>{h()}),Te(()=>p.value,()=>{h()});const m=S=>{t.value=S,h()},g=S=>s.value&&S&&"loaded"in S&&!S.loaded,y=(S,$)=>{u.store.assertRowKey();const E=e.rowKey.value,R=Cs(S,E),A=R&&n.value[R];if(R&&A&&"expanded"in A){const N=A.expanded;$=tn($)?!A.expanded:$,n.value[R].expanded=$,N!==$&&u.emit("expand-change",S,$),g(A)&&C(S,R,A),u.store.updateTableScrollY()}},b=S=>{u.store.assertRowKey();const $=e.rowKey.value,E=Cs(S,$),R=n.value[E];g(R)?C(S,E,R):y(S,void 0)},C=(S,$,E)=>{const{load:R}=u.props;R&&!n.value[$].loaded&&(n.value[$].loading=!0,R(S,E,A=>{if(!Ve(A))throw new TypeError("[ElTable] data must be an array");n.value[$].loading=!1,n.value[$].loaded=!0,n.value[$].expanded=!0,A.length&&(o.value[$]=A),u.emit("expand-change",S,!0)}))};return{loadData:C,loadOrToggle:b,toggleTreeExpansion:y,updateTreeExpandKeys:m,updateTreeData:h,updateKeyChildren:(S,$)=>{const{lazy:E,rowKey:R}=u.props;if(E){if(!R)throw new Error("[Table] rowKey is required in updateKeyChild");o.value[S]&&(o.value[S]=$)}},normalize:v,states:{expandRowKeys:t,treeData:n,indent:a,lazy:s,lazyTreeNodeMap:o,lazyColumnIdentifier:r,childrenColumnName:i,checkStrictly:c}}}const Zee=(e,t)=>{const n=t.sortingColumn;return!n||ut(n.sortable)?e:zee(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},lh=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,lh(n.children)):t.push(n)}),t};function ete(){var e;const t=qt(),{size:n}=Pa((e=t.proxy)==null?void 0:e.$props),a=T(null),s=T([]),o=T([]),r=T(!1),i=T([]),c=T([]),u=T([]),d=T([]),p=T([]),v=T([]),h=T([]),m=T([]),g=[],y=T(0),b=T(0),C=T(0),k=T(!1),S=T([]),$=T(!1),E=T(!1),R=T(null),A=T({}),N=T(null),P=T(null),B=T(null),M=T(null),j=T(null),F=x(()=>a.value?Bu(S.value,a.value):void 0);Te(s,()=>{var kt;t.state&&(O(!1),t.props.tableLayout==="auto"&&((kt=t.refs.tableHeaderRef)==null||kt.updateFixedColumnStyle()))},{deep:!0});const q=()=>{if(!a.value)throw new Error("[ElTable] prop row-key is required")},L=kt=>{var Mt;(Mt=kt.children)==null||Mt.forEach(Ht=>{Ht.fixed=kt.fixed,L(Ht)})},U=()=>{i.value.forEach(Oe=>{L(Oe)}),d.value=i.value.filter(Oe=>[!0,"left"].includes(Oe.fixed));const kt=i.value.find(Oe=>Oe.type==="selection");let Mt;kt&&kt.fixed!=="right"&&!d.value.includes(kt)&&i.value.indexOf(kt)===0&&d.value.length&&(d.value.unshift(kt),Mt=!0),p.value=i.value.filter(Oe=>Oe.fixed==="right");const Ht=i.value.filter(Oe=>(Mt?Oe.type!=="selection":!0)&&!Oe.fixed);c.value=Array.from(d.value).concat(Ht).concat(p.value);const Ee=lh(Ht),We=lh(d.value),pe=lh(p.value);y.value=Ee.length,b.value=We.length,C.value=pe.length,u.value=Array.from(We).concat(Ee).concat(pe),r.value=d.value.length>0||p.value.length>0},O=(kt,Mt=!1)=>{kt&&U(),Mt?t.state.doLayout():t.state.debouncedUpdateLayout()},G=kt=>F.value?!!F.value[Cs(kt,a.value)]:S.value.includes(kt),ae=()=>{k.value=!1;const kt=S.value;S.value=[],kt.length&&t.emit("selection-change",[])},Z=()=>{var kt,Mt;let Ht;if(a.value){Ht=[];const Ee=(Mt=(kt=t==null?void 0:t.store)==null?void 0:kt.states)==null?void 0:Mt.childrenColumnName.value,We=Bu(s.value,a.value,!0,Ee);for(const pe in F.value)ln(F.value,pe)&&!We[pe]&&Ht.push(F.value[pe].row)}else Ht=S.value.filter(Ee=>!s.value.includes(Ee));if(Ht.length){const Ee=S.value.filter(We=>!Ht.includes(We));S.value=Ee,t.emit("selection-change",Ee.slice())}},te=()=>(S.value||[]).slice(),ie=(kt,Mt,Ht=!0,Ee=!1)=>{var We,pe,Oe,ot;const St={children:(pe=(We=t==null?void 0:t.store)==null?void 0:We.states)==null?void 0:pe.childrenColumnName.value,checkStrictly:(ot=(Oe=t==null?void 0:t.store)==null?void 0:Oe.states)==null?void 0:ot.checkStrictly.value};if(Yh(S.value,kt,Mt,St,Ee?void 0:R.value,s.value.indexOf(kt),a.value)){const _n=(S.value||[]).slice();Ht&&t.emit("select",_n,kt),t.emit("selection-change",_n)}},oe=()=>{var kt,Mt;const Ht=E.value?!k.value:!(k.value||S.value.length);k.value=Ht;let Ee=!1,We=0;const pe=(Mt=(kt=t==null?void 0:t.store)==null?void 0:kt.states)==null?void 0:Mt.rowKey.value,{childrenColumnName:Oe}=t.store.states,ot={children:Oe.value,checkStrictly:!1};s.value.forEach((St,vn)=>{const _n=vn+We;Yh(S.value,St,Ht,ot,R.value,_n,pe)&&(Ee=!0),We+=ee(Cs(St,pe))}),Ee&&t.emit("selection-change",S.value?S.value.slice():[]),t.emit("select-all",(S.value||[]).slice())},J=()=>{var kt;if(((kt=s.value)==null?void 0:kt.length)===0){k.value=!1;return}const{childrenColumnName:Mt}=t.store.states;let Ht=0,Ee=0;const We=Oe=>{var ot;for(const St of Oe){const vn=R.value&&R.value.call(null,St,Ht);if(G(St))Ee++;else if(!R.value||vn)return!1;if(Ht++,(ot=St[Mt.value])!=null&&ot.length&&!We(St[Mt.value]))return!1}return!0},pe=We(s.value||[]);k.value=Ee===0?!1:pe},ee=kt=>{var Mt;if(!t||!t.store)return 0;const{treeData:Ht}=t.store.states;let Ee=0;const We=(Mt=Ht.value[kt])==null?void 0:Mt.children;return We&&(Ee+=We.length,We.forEach(pe=>{Ee+=ee(pe)})),Ee},Q=(kt,Mt)=>{const Ht={};return es(kt).forEach(Ee=>{A.value[Ee.id]=Mt,Ht[Ee.columnKey||Ee.id]=Mt}),Ht},H=(kt,Mt,Ht)=>{P.value&&P.value!==kt&&(P.value.order=null),P.value=kt,B.value=Mt,M.value=Ht},X=()=>{let kt=f(o);Object.keys(A.value).forEach(Mt=>{const Ht=A.value[Mt];if(!Ht||Ht.length===0)return;const Ee=G8({columns:u.value},Mt);Ee&&Ee.filterMethod&&(kt=kt.filter(We=>Ht.some(pe=>Ee.filterMethod.call(null,pe,We,Ee))))}),N.value=kt},he=()=>{var kt;s.value=Zee((kt=N.value)!=null?kt:[],{sortingColumn:P.value,sortProp:B.value,sortOrder:M.value})},D=(kt=void 0)=>{kt!=null&&kt.filter||X(),he()},Y=kt=>{const{tableHeaderRef:Mt}=t.refs;if(!Mt)return;const Ht=Object.assign({},Mt.filterPanels),Ee=Object.keys(Ht);if(Ee.length)if(ut(kt)&&(kt=[kt]),Ve(kt)){const We=kt.map(pe=>Hee({columns:u.value},pe));Ee.forEach(pe=>{const Oe=We.find(ot=>ot.id===pe);Oe&&(Oe.filteredValue=[])}),t.store.commit("filterChange",{column:We,values:[],silent:!0,multi:!0})}else Ee.forEach(We=>{const pe=u.value.find(Oe=>Oe.id===We);pe&&(pe.filteredValue=[])}),A.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},ne=()=>{P.value&&(H(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:re,toggleRowExpansion:se,updateExpandRows:ke,states:ye,isRowExpanded:Se}=Xee({data:s,rowKey:a}),{updateTreeExpandKeys:ce,toggleTreeExpansion:we,updateTreeData:Ae,updateKeyChildren:Fe,loadOrToggle:xe,states:me}=Jee({data:s,rowKey:a}),{updateCurrentRowData:Me,updateCurrentRow:at,setCurrentRowKey:Qe,states:It}=Qee({data:s,rowKey:a});return{assertRowKey:q,updateColumns:U,scheduleLayout:O,isSelected:G,clearSelection:ae,cleanSelection:Z,getSelectionRows:te,toggleRowSelection:ie,_toggleAllSelection:oe,toggleAllSelection:null,updateAllSelected:J,updateFilters:Q,updateCurrentRow:at,updateSort:H,execFilter:X,execSort:he,execQuery:D,clearFilter:Y,clearSort:ne,toggleRowExpansion:se,setExpandRowKeysAdapter:kt=>{re(kt),ce(kt)},setCurrentRowKey:Qe,toggleRowExpansionAdapter:(kt,Mt)=>{u.value.some(({type:Ee})=>Ee==="expand")?se(kt,Mt):we(kt,Mt)},isRowExpanded:Se,updateExpandRows:ke,updateCurrentRowData:Me,loadOrToggle:xe,updateTreeData:Ae,updateKeyChildren:Fe,states:{tableSize:n,rowKey:a,data:s,_data:o,isComplex:r,_columns:i,originColumns:c,columns:u,fixedColumns:d,rightFixedColumns:p,leafColumns:v,fixedLeafColumns:h,rightFixedLeafColumns:m,updateOrderFns:g,leafColumnsLength:y,fixedLeafColumnsLength:b,rightFixedLeafColumnsLength:C,isAllSelected:k,selection:S,reserveSelection:$,selectOnIndeterminate:E,selectable:R,filters:A,filteredData:N,sortingColumn:P,sortProp:B,sortOrder:M,hoverRow:j,...ye,...me,...It}}}function z_(e,t){return e.map(n=>{var a;return n.id===t.id?t:((a=n.children)!=null&&a.length&&(n.children=z_(n.children,t)),n)})}function H_(e){e.forEach(t=>{var n,a;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(a=t.children)!=null&&a.length&&H_(t.children)}),e.sort((t,n)=>t.no-n.no)}function tte(){const e=qt(),t=ete();return{ns:Le("table"),...t,mutations:{setData(r,i){const c=f(r._data)!==i;r.data.value=i,r._data.value=i,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),f(r.reserveSelection)?e.store.assertRowKey():c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(r,i,c,u){var d;const p=f(r._columns);let v=[];c?(c&&!c.children&&(c.children=[]),(d=c.children)==null||d.push(i),v=z_(p,c)):(p.push(i),v=p),H_(v),r._columns.value=v,r.updateOrderFns.push(u),i.type==="selection"&&(r.selectable.value=i.selectable,r.reserveSelection.value=i.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(r,i){var c;((c=i.getColumnIndex)==null?void 0:c.call(i))!==i.no&&(H_(r._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(r,i,c,u){var d;const p=f(r._columns)||[];if(c)(d=c.children)==null||d.splice(c.children.findIndex(h=>h.id===i.id),1),it(()=>{var h;((h=c.children)==null?void 0:h.length)===0&&delete c.children}),r._columns.value=z_(p,c);else{const h=p.indexOf(i);h>-1&&(p.splice(h,1),r._columns.value=p)}const v=r.updateOrderFns.indexOf(u);v>-1&&r.updateOrderFns.splice(v,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(r,i){const{prop:c,order:u,init:d}=i;if(c){const p=f(r.columns).find(v=>v.property===c);p&&(p.order=u,e.store.updateSort(p,c,u),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(r,i){const{sortingColumn:c,sortProp:u,sortOrder:d}=r,p=f(c),v=f(u),h=f(d);Tp(h)&&(r.sortingColumn.value=null,r.sortProp.value=null);const m={filter:!0};e.store.execQuery(m),(!i||!(i.silent||i.init))&&e.emit("sort-change",{column:p,prop:v,order:h}),e.store.updateTableScrollY()},filterChange(r,i){const{column:c,values:u,silent:d}=i,p=e.store.updateFilters(c,u);e.store.execQuery(),d||e.emit("filter-change",p),e.store.updateTableScrollY()},toggleAllSelection(){var r,i;(i=(r=e.store).toggleAllSelection)==null||i.call(r)},rowSelectedChanged(r,i){e.store.toggleRowSelection(i),e.store.updateAllSelected()},setHoverRow(r,i){r.hoverRow.value=i},setCurrentRow(r,i){e.store.updateCurrentRow(i)}},commit:function(r,...i){const c=e.store.mutations;if(c[r])c[r].apply(e,[e.store.states,...i]);else throw new Error(`Action not found: ${r}`)},updateTableScrollY:function(){it(()=>e.layout.updateScrollY.apply(e.layout))}}}const Ub={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function nte(e,t){if(!e)throw new Error("Table is required.");const n=tte();return n.toggleAllSelection=wo(n._toggleAllSelection,10),Object.keys(Ub).forEach(a=>{J8(Z8(t,a),a,n)}),ate(n,t),n}function ate(e,t){Object.keys(Ub).forEach(n=>{Te(()=>Z8(t,n),a=>{J8(a,n,e)})})}function J8(e,t,n){let a=e,s=Ub[t];Ot(s)&&(a=a||s.default,s=s.key),n.states[s].value=a}function Z8(e,t){if(t.includes(".")){const n=t.split(".");let a=e;return n.forEach(s=>{a=a[s]}),a}else return e[t]}class ste{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=T(null),this.scrollX=T(!1),this.scrollY=T(!1),this.bodyWidth=T(null),this.fixedWidth=T(null),this.rightFixedWidth=T(null),this.gutterWidth=0;for(const n in t)ln(t,n)&&($n(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const t=this.height.value;if(Tp(t))return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let a=!0;const s=this.scrollY.value;return a=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=a,s!==a}return!1}setHeight(t,n="height"){if(!cn)return;const a=this.table.vnode.el;if(t=qee(t),this.height.value=Number(t),!a&&(t||t===0)){it(()=>this.setHeight(t,n));return}a&>(t)?(a.style[n]=`${t}px`,this.updateElsHeight()):a&&ut(t)&&(a.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(a=>{a.isColumnGroup?t.push.apply(t,a.columns):t.push(a)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){var t;if(!cn)return;const n=this.fit,a=(t=this.table.vnode.el)==null?void 0:t.clientWidth;let s=0;const o=this.getFlattenColumns(),r=o.filter(u=>!gt(u.width));if(o.forEach(u=>{gt(u.width)&&u.realWidth&&(u.realWidth=null)}),r.length>0&&n){if(o.forEach(u=>{s+=Number(u.width||u.minWidth||80)}),s<=a){this.scrollX.value=!1;const u=a-s;if(r.length===1)r[0].realWidth=Number(r[0].minWidth||80)+u;else{const d=r.reduce((h,m)=>h+Number(m.minWidth||80),0),p=u/d;let v=0;r.forEach((h,m)=>{if(m===0)return;const g=Math.floor(Number(h.minWidth||80)*p);v+=g,h.realWidth=Number(h.minWidth||80)+g}),r[0].realWidth=Number(r[0].minWidth||80)+u-v}}else this.scrollX.value=!0,r.forEach(u=>{u.realWidth=Number(u.minWidth)});this.bodyWidth.value=Math.max(s,a),this.table.state.resizeState.value.width=this.bodyWidth.value}else o.forEach(u=>{!u.width&&!u.minWidth?u.realWidth=80:u.realWidth=Number(u.width||u.minWidth),s+=u.realWidth}),this.scrollX.value=s>a,this.bodyWidth.value=s;const i=this.store.states.fixedColumns.value;if(i.length>0){let u=0;i.forEach(d=>{u+=Number(d.realWidth||d.width)}),this.fixedWidth.value=u}const c=this.store.states.rightFixedColumns.value;if(c.length>0){let u=0;c.forEach(d=>{u+=Number(d.realWidth||d.width)}),this.rightFixedWidth.value=u}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(a=>{var s,o;switch(t){case"columns":(s=a.state)==null||s.onColumnsChange(this);break;case"scrollable":(o=a.state)==null||o.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:ote}=or,rte=le({name:"ElTableFilterPanel",components:{ElCheckbox:or,ElCheckboxGroup:ote,ElScrollbar:wr,ElTooltip:hs,ElIcon:ct,ArrowDown:rl,ArrowUp:Um},directives:{ClickOutside:Dl},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:Yn.appendTo},setup(e){const t=qt(),{t:n}=rn(),a=Le("table-filter"),s=t==null?void 0:t.parent;e.column&&!s.filterPanels.value[e.column.id]&&(s.filterPanels.value[e.column.id]=t);const o=T(!1),r=T(null),i=x(()=>e.column&&e.column.filters),c=x(()=>e.column&&e.column.filterClassName?`${a.b()} ${e.column.filterClassName}`:a.b()),u=x({get:()=>{var $;return((($=e.column)==null?void 0:$.filteredValue)||[])[0]},set:$=>{d.value&&(mo($)?d.value.splice(0,1):d.value.splice(0,1,$))}}),d=x({get(){return e.column?e.column.filteredValue||[]:[]},set($){var E;e.column&&((E=e.upDataColumn)==null||E.call(e,"filteredValue",$))}}),p=x(()=>e.column?e.column.filterMultiple:!0),v=$=>$.value===u.value,h=()=>{o.value=!1},m=$=>{$.stopPropagation(),o.value=!o.value},g=()=>{o.value=!1},y=()=>{k(d.value),h()},b=()=>{d.value=[],k(d.value),h()},C=$=>{u.value=$,mo($)?k([]):k(d.value),h()},k=$=>{var E,R;(E=e.store)==null||E.commit("filterChange",{column:e.column,values:$}),(R=e.store)==null||R.updateAllSelected()};Te(o,$=>{var E;e.column&&((E=e.upDataColumn)==null||E.call(e,"filterOpened",$))},{immediate:!0});const S=x(()=>{var $,E;return(E=($=r.value)==null?void 0:$.popperRef)==null?void 0:E.contentRef});return{tooltipVisible:o,multiple:p,filterClassName:c,filteredValue:d,filterValue:u,filters:i,handleConfirm:y,handleReset:b,handleSelect:C,isPropAbsent:mo,isActive:v,t:n,ns:a,showFilterPanel:m,hideFilterPanel:g,popperPaneRef:S,tooltip:r}}});function lte(e,t,n,a,s,o){const r=Ne("el-checkbox"),i=Ne("el-checkbox-group"),c=Ne("el-scrollbar"),u=Ne("arrow-up"),d=Ne("arrow-down"),p=Ne("el-icon"),v=Ne("el-tooltip"),h=gd("click-outside");return _(),ue(v,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo},{content:W(()=>[e.multiple?(_(),w("div",{key:0},[l("div",{class:V(e.ns.e("content"))},[z(c,{"wrap-class":e.ns.e("wrap")},{default:W(()=>[z(i,{modelValue:e.filteredValue,"onUpdate:modelValue":m=>e.filteredValue=m,class:V(e.ns.e("checkbox-group"))},{default:W(()=>[(_(!0),w(_e,null,Re(e.filters,m=>(_(),ue(r,{key:m.value,value:m.value},{default:W(()=>[Ce(I(m.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),l("div",{class:V(e.ns.e("bottom"))},[l("button",{class:V({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:e.handleConfirm},I(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),l("button",{type:"button",onClick:e.handleReset},I(e.t("el.table.resetFilter")),9,["onClick"])],2)])):(_(),w("ul",{key:1,class:V(e.ns.e("list"))},[l("li",{class:V([e.ns.e("list-item"),{[e.ns.is("active")]:e.isPropAbsent(e.filterValue)}]),onClick:m=>e.handleSelect(null)},I(e.t("el.table.clearFilter")),11,["onClick"]),(_(!0),w(_e,null,Re(e.filters,m=>(_(),w("li",{key:m.value,class:V([e.ns.e("list-item"),e.ns.is("active",e.isActive(m))]),label:m.value,onClick:g=>e.handleSelect(m.value)},I(m.text),11,["label","onClick"]))),128))],2))]),default:W(()=>[et((_(),w("span",{class:V([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[z(p,null,{default:W(()=>[be(e.$slots,"filter-icon",{},()=>{var m;return[(m=e.column)!=null&&m.filterOpened?(_(),ue(u,{key:0})):(_(),ue(d,{key:1}))]})]),_:3})],10,["onClick"])),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:3},8,["visible","placement","popper-class","append-to"])}var ite=ze(rte,[["render",lte],["__file","filter-panel.vue"]]);function zb(e){const t=qt();$m(()=>{n.value.addObserver(t)}),ft(()=>{a(n.value),s(n.value)}),$r(()=>{a(n.value),s(n.value)}),al(()=>{n.value.removeObserver(t)});const n=x(()=>{const o=e.layout;if(!o)throw new Error("Can not find table layout.");return o}),a=o=>{var r;const i=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col"))||[];if(!i.length)return;const c=o.getFlattenColumns(),u={};c.forEach(d=>{u[d.id]=d});for(let d=0,p=i.length;d{var r,i;const c=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,p=c.length;d{g.stopPropagation()},o=(g,y)=>{!y.filters&&y.sortable?m(g,y,!1):y.filterable&&!y.sortable&&s(g),a==null||a.emit("header-click",y,g)},r=(g,y)=>{a==null||a.emit("header-contextmenu",y,g)},i=T(null),c=T(!1),u=T(),d=(g,y)=>{var b,C;if(cn&&!(y.children&&y.children.length>0)&&i.value&&e.border){c.value=!0;const k=a;t("set-drag-visible",!0);const S=k==null?void 0:k.vnode.el,$=S==null?void 0:S.getBoundingClientRect().left,E=(C=(b=n==null?void 0:n.vnode)==null?void 0:b.el)==null?void 0:C.querySelector(`th.${y.id}`),R=E.getBoundingClientRect(),A=R.left-$+30;Ho(E,"noclick"),u.value={startMouseLeft:g.clientX,startLeft:R.right-$,startColumnLeft:R.left-$,tableLeft:$};const N=k==null?void 0:k.refs.resizeProxy;N.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const P=M=>{const j=M.clientX-u.value.startMouseLeft,F=u.value.startLeft+j;N.style.left=`${Math.max(A,F)}px`},B=()=>{if(c.value){const{startColumnLeft:M,startLeft:j}=u.value,q=Number.parseInt(N.style.left,10)-M;y.width=y.realWidth=q,k==null||k.emit("header-dragend",y.width,j-M,y,g),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",c.value=!1,i.value=null,u.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",B),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Os(E,"noclick")},0)};document.addEventListener("mousemove",P),document.addEventListener("mouseup",B)}},p=(g,y)=>{var b;if(y.children&&y.children.length>0)return;const C=g.target;if(!no(C))return;const k=C==null?void 0:C.closest("th");if(!(!y||!y.resizable||!k)&&!c.value&&e.border){const S=k.getBoundingClientRect(),$=document.body.style,E=((b=k.parentNode)==null?void 0:b.lastElementChild)===k,R=e.allowDragLastColumn||!E;S.width>12&&S.right-g.clientX<8&&R?($.cursor="col-resize",vo(k,"is-sortable")&&(k.style.cursor="col-resize"),i.value=y):c.value||($.cursor="",vo(k,"is-sortable")&&(k.style.cursor="pointer"),i.value=null)}},v=()=>{cn&&(document.body.style.cursor="")},h=({order:g,sortOrders:y})=>{if(g==="")return y[0];const b=y.indexOf(g||null);return y[b>y.length-2?0:b+1]},m=(g,y,b)=>{var C;g.stopPropagation();const k=y.order===b?null:b||h(y),S=(C=g.target)==null?void 0:C.closest("th");if(S&&vo(S,"noclick")){Os(S,"noclick");return}if(!y.sortable)return;const $=g.currentTarget;if(["ascending","descending"].some(P=>vo($,P)&&!y.sortOrders.includes(P)))return;const E=e.store.states;let R=E.sortProp.value,A;const N=E.sortingColumn.value;(N!==y||N===y&&Tp(N.order))&&(N&&(N.order=null),E.sortingColumn.value=y,R=y.property),k?A=y.order=k:A=y.order=null,E.sortProp.value=R,E.sortOrder.value=A,a==null||a.store.commit("changeSortCondition")};return{handleHeaderClick:o,handleHeaderContextMenu:r,handleMouseDown:d,handleMouseMove:p,handleMouseOut:v,handleSortClick:m,handleFilterClick:s}}function ute(e){const t=Ze(Ir),n=Le("table");return{getHeaderRowStyle:i=>{const c=t==null?void 0:t.props.headerRowStyle;return vt(c)?c.call(null,{rowIndex:i}):c},getHeaderRowClass:i=>{const c=[],u=t==null?void 0:t.props.headerRowClassName;return ut(u)?c.push(u):vt(u)&&c.push(u.call(null,{rowIndex:i})),c.join(" ")},getHeaderCellStyle:(i,c,u,d)=>{var p;let v=(p=t==null?void 0:t.props.headerCellStyle)!=null?p:{};vt(v)&&(v=v.call(null,{rowIndex:i,columnIndex:c,row:u,column:d}));const h=Fb(c,d.fixed,e.store,u);return ed(h,"left"),ed(h,"right"),Object.assign({},v,h)},getHeaderCellClass:(i,c,u,d)=>{const p=Vb(n.b(),c,d.fixed,e.store,u),v=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...p];d.children||v.push("is-leaf"),d.sortable&&v.push("is-sortable");const h=t==null?void 0:t.props.headerCellClassName;return ut(h)?v.push(h):vt(h)&&v.push(h.call(null,{rowIndex:i,columnIndex:c,row:u,column:d})),v.push(n.e("cell")),v.filter(m=>!!m).join(" ")}}}const eI=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,eI(n.children))):t.push(n)}),t},tI=e=>{let t=1;const n=(o,r)=>{if(r&&(o.level=r.level+1,t{n(c,o),i+=c.colSpan}),o.colSpan=i}else o.colSpan=1};e.forEach(o=>{o.level=1,n(o,void 0)});const a=[];for(let o=0;o{o.children?(o.rowSpan=1,o.children.forEach(r=>r.isSubColumn=!0)):o.rowSpan=t-o.level+1,a[o.level-1].push(o)}),a};function dte(e){const t=Ze(Ir),n=x(()=>tI(e.store.states.originColumns.value));return{isGroup:x(()=>{const o=n.value.length>1;return o&&t&&(t.state.isGroup.value=!0),o}),toggleAllSelection:o=>{o.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var fte=le({name:"ElTableHeader",components:{ElCheckbox:or},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=qt(),a=Ze(Ir),s=Le("table"),o=T({}),{onColumnsChange:r,onScrollableChange:i}=zb(a),c=(a==null?void 0:a.props.tableLayout)==="auto",u=At(new Map),d=T();let p;const v=()=>{p=setTimeout(()=>{u.size>0&&(u.forEach((B,M)=>{const j=d.value.querySelector(`.${M.replace(/\s/g,".")}`);if(j){const F=j.getBoundingClientRect().width;B.width=F||B.width}}),u.clear())})};Te(u,v),on(()=>{p&&(clearTimeout(p),p=void 0)}),ft(async()=>{await it(),await it();const{prop:B,order:M}=e.defaultSort;a==null||a.store.commit("sort",{prop:B,order:M,init:!0}),v()});const{handleHeaderClick:h,handleHeaderContextMenu:m,handleMouseDown:g,handleMouseMove:y,handleMouseOut:b,handleSortClick:C,handleFilterClick:k}=cte(e,t),{getHeaderRowStyle:S,getHeaderRowClass:$,getHeaderCellStyle:E,getHeaderCellClass:R}=ute(e),{isGroup:A,toggleAllSelection:N,columnRows:P}=dte(e);return n.state={onColumnsChange:r,onScrollableChange:i},n.filterPanels=o,{ns:s,filterPanels:o,onColumnsChange:r,onScrollableChange:i,columnRows:P,getHeaderRowClass:$,getHeaderRowStyle:S,getHeaderCellClass:R,getHeaderCellStyle:E,handleHeaderClick:h,handleHeaderContextMenu:m,handleMouseDown:g,handleMouseMove:y,handleMouseOut:b,handleSortClick:C,handleFilterClick:k,isGroup:A,toggleAllSelection:N,saveIndexSelection:u,isTableLayoutAuto:c,theadRef:d,updateFixedColumnStyle:v}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:a,getHeaderCellClass:s,getHeaderRowClass:o,getHeaderRowStyle:r,handleHeaderClick:i,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:d,handleSortClick:p,handleMouseOut:v,store:h,$parent:m,saveIndexSelection:g,isTableLayoutAuto:y}=this;let b=1;return yt("thead",{ref:"theadRef",class:{[e.is("group")]:t}},n.map((C,k)=>yt("tr",{class:o(k),key:k,style:r(k)},C.map((S,$)=>{S.rowSpan>b&&(b=S.rowSpan);const E=s(k,$,C,S);return y&&S.fixed&&g.set(E,S),yt("th",{class:E,colspan:S.colSpan,key:`${S.id}-thead`,rowspan:S.rowSpan,style:a(k,$,C,S),onClick:R=>{var A;(A=R.currentTarget)!=null&&A.classList.contains("noclick")||i(R,S)},onContextmenu:R=>c(R,S),onMousedown:R=>u(R,S),onMousemove:R=>d(R,S),onMouseout:v},[yt("div",{class:["cell",S.filteredValue&&S.filteredValue.length>0?"highlight":""]},[S.renderHeader?S.renderHeader({column:S,$index:$,store:h,_self:m}):S.label,S.sortable&&yt("span",{onClick:R=>p(R,S),class:"caret-wrapper"},[yt("i",{onClick:R=>p(R,S,"ascending"),class:"sort-caret ascending"}),yt("i",{onClick:R=>p(R,S,"descending"),class:"sort-caret descending"})]),S.filterable&&yt(ite,{store:h,placement:S.filterPlacement||"bottom-start",appendTo:m==null?void 0:m.appendFilterPanelTo,column:S,upDataColumn:(R,A)=>{S[R]=A}},{"filter-icon":()=>S.renderFilterIcon?S.renderFilterIcon({filterOpened:S.filterOpened}):null})])])}))))}});function dg(e,t,n=.03){return e-t>n}function pte(e){const t=Ze(Ir),n=T(""),a=T(yt("div")),s=(m,g,y)=>{var b,C,k;const S=t,$=ug(m);let E=null;const R=(b=S==null?void 0:S.vnode.el)==null?void 0:b.dataset.prefix;$&&(E=yS({columns:(k=(C=e.store)==null?void 0:C.states.columns.value)!=null?k:[]},$,R),E&&(S==null||S.emit(`cell-${y}`,g,E,$,m))),S==null||S.emit(`row-${y}`,g,E,m)},o=(m,g)=>{s(m,g,"dblclick")},r=(m,g)=>{var y;(y=e.store)==null||y.commit("setCurrentRow",g),s(m,g,"click")},i=(m,g)=>{s(m,g,"contextmenu")},c=wo(m=>{var g;(g=e.store)==null||g.commit("setHoverRow",m)},30),u=wo(()=>{var m;(m=e.store)==null||m.commit("setHoverRow",null)},30),d=m=>{const g=window.getComputedStyle(m,null),y=Number.parseInt(g.paddingLeft,10)||0,b=Number.parseInt(g.paddingRight,10)||0,C=Number.parseInt(g.paddingTop,10)||0,k=Number.parseInt(g.paddingBottom,10)||0;return{left:y,right:b,top:C,bottom:k}},p=(m,g,y)=>{var b;let C=(b=g==null?void 0:g.target)==null?void 0:b.parentNode;for(;m>1&&(C=C==null?void 0:C.nextSibling,!(!C||C.nodeName!=="TR"));)y(C,"hover-row hover-fixed-row"),m--};return{handleDoubleClick:o,handleClick:r,handleContextMenu:i,handleMouseEnter:c,handleMouseLeave:u,handleCellMouseEnter:(m,g,y)=>{var b,C,k,S,$,E,R,A;if(!t)return;const N=t,P=ug(m),B=(b=N==null?void 0:N.vnode.el)==null?void 0:b.dataset.prefix;let M=null;if(P){if(M=yS({columns:(k=(C=e.store)==null?void 0:C.states.columns.value)!=null?k:[]},P,B),!M)return;P.rowSpan>1&&p(P.rowSpan,m,Ho);const J=N.hoverState={cell:P,column:M,row:g};N==null||N.emit("cell-mouse-enter",J.row,J.column,J.cell,m)}if(!y){((S=Rs)==null?void 0:S.trigger)===P&&(($=Rs)==null||$());return}const j=m.target.querySelector(".cell");if(!(vo(j,`${B}-tooltip`)&&j.childNodes.length))return;const F=document.createRange();F.setStart(j,0),F.setEnd(j,j.childNodes.length);const{width:q,height:L}=F.getBoundingClientRect(),{width:U,height:O}=j.getBoundingClientRect(),{top:G,left:ae,right:Z,bottom:te}=d(j),ie=ae+Z,oe=G+te;dg(q+ie,U)||dg(L+oe,O)||dg(j.scrollWidth,U)?Yee(y,(E=(P==null?void 0:P.innerText)||(P==null?void 0:P.textContent))!=null?E:"",g,M,P,N):((R=Rs)==null?void 0:R.trigger)===P&&((A=Rs)==null||A())},handleCellMouseLeave:m=>{const g=ug(m);if(!g)return;g.rowSpan>1&&p(g.rowSpan,m,Os);const y=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",y==null?void 0:y.row,y==null?void 0:y.column,y==null?void 0:y.cell,m)},tooltipContent:n,tooltipTrigger:a}}function vte(e){const t=Ze(Ir),n=Le("table");return{getRowStyle:(u,d)=>{const p=t==null?void 0:t.props.rowStyle;return vt(p)?p.call(null,{row:u,rowIndex:d}):p||null},getRowClass:(u,d)=>{var p;const v=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&u===((p=e.store)==null?void 0:p.states.currentRow.value)&&v.push("current-row"),e.stripe&&d%2===1&&v.push(n.em("row","striped"));const h=t==null?void 0:t.props.rowClassName;return ut(h)?v.push(h):vt(h)&&v.push(h.call(null,{row:u,rowIndex:d})),v},getCellStyle:(u,d,p,v)=>{const h=t==null?void 0:t.props.cellStyle;let m=h??{};vt(h)&&(m=h.call(null,{rowIndex:u,columnIndex:d,row:p,column:v}));const g=Fb(d,e==null?void 0:e.fixed,e.store);return ed(g,"left"),ed(g,"right"),Object.assign({},m,g)},getCellClass:(u,d,p,v,h)=>{const m=Vb(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,h),g=[v.id,v.align,v.className,...m],y=t==null?void 0:t.props.cellClassName;return ut(y)?g.push(y):vt(y)&&g.push(y.call(null,{rowIndex:u,columnIndex:d,row:p,column:v})),g.push(n.e("cell")),g.filter(b=>!!b).join(" ")},getSpan:(u,d,p,v)=>{let h=1,m=1;const g=t==null?void 0:t.props.spanMethod;if(vt(g)){const y=g({row:u,column:d,rowIndex:p,columnIndex:v});Ve(y)?(h=y[0],m=y[1]):Ot(y)&&(h=y.rowspan,m=y.colspan)}return{rowspan:h,colspan:m}},getColspanRealWidth:(u,d,p)=>{if(d<1)return u[p].realWidth;const v=u.map(({realWidth:h,width:m})=>h||m).slice(p,p+d);return Number(v.reduce((h,m)=>Number(h)+Number(m),-1))}}}const hte=le({name:"TableTdWrapper"}),mte=le({...hte,props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(_(),w("td",{colspan:e.colspan,rowspan:e.rowspan},[be(t.$slots,"default")],8,["colspan","rowspan"]))}});var gte=ze(mte,[["__file","td-wrapper.vue"]]);function _te(e){const t=Ze(Ir),n=Le("table"),{handleDoubleClick:a,handleClick:s,handleContextMenu:o,handleMouseEnter:r,handleMouseLeave:i,handleCellMouseEnter:c,handleCellMouseLeave:u,tooltipContent:d,tooltipTrigger:p}=pte(e),{getRowStyle:v,getRowClass:h,getCellStyle:m,getCellClass:g,getSpan:y,getColspanRealWidth:b}=vte(e),C=x(()=>{var R;return(R=e.store)==null?void 0:R.states.columns.value.findIndex(({type:A})=>A==="default")}),k=(R,A)=>{var N;const P=(N=t==null?void 0:t.props)==null?void 0:N.rowKey;return P?Cs(R,P):A},S=(R,A,N,P=!1)=>{const{tooltipEffect:B,tooltipOptions:M,store:j}=e,{indent:F,columns:q}=j.states,L=h(R,A);let U=!0;return N&&(L.push(n.em("row",`level-${N.level}`)),U=!!N.display),yt("tr",{style:[U?null:{display:"none"},v(R,A)],class:L,key:k(R,A),onDblclick:G=>a(G,R),onClick:G=>s(G,R),onContextmenu:G=>o(G,R),onMouseenter:()=>r(A),onMouseleave:i},q.value.map((G,ae)=>{const{rowspan:Z,colspan:te}=y(R,G,A,ae);if(!Z||!te)return null;const ie=Object.assign({},G);ie.realWidth=b(q.value,te,ae);const oe={store:j,_self:e.context||t,column:ie,row:R,$index:A,cellIndex:ae,expanded:P};ae===C.value&&N&&(oe.treeNode={indent:N.level&&N.level*F.value,level:N.level},En(N.expanded)&&(oe.treeNode.expanded=N.expanded,"loading"in N&&(oe.treeNode.loading=N.loading),"noLazyChildren"in N&&(oe.treeNode.noLazyChildren=N.noLazyChildren)));const J=`${k(R,A)},${ae}`,ee=ie.columnKey||ie.rawColumnKey||"",Q=G.showOverflowTooltip&&U4({effect:B},M,G.showOverflowTooltip);return yt(gte,{style:m(A,ae,R,G),class:g(A,ae,R,G,te-1),key:`${ee}${J}`,rowspan:Z,colspan:te,onMouseenter:H=>c(H,R,Q),onMouseleave:u},{default:()=>$(ae,G,oe)})}))},$=(R,A,N)=>A.renderCell(N);return{wrappedRowRender:(R,A)=>{const N=e.store,{isRowExpanded:P,assertRowKey:B}=N,{treeData:M,lazyTreeNodeMap:j,childrenColumnName:F,rowKey:q}=N.states,L=N.states.columns.value;if(L.some(({type:O})=>O==="expand")){const O=P(R),G=S(R,A,void 0,O),ae=t==null?void 0:t.renderExpanded;if(!ae)return console.error("[Element Error]renderExpanded is required."),G;const Z=[[G]];return(t.props.preserveExpandedContent||O)&&Z[0].push(yt("tr",{key:`expanded-row__${G.key}`,style:{display:O?"":"none"}},[yt("td",{colspan:L.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[ae({row:R,$index:A,store:N,expanded:O})])])),Z}else if(Object.keys(M.value).length){B();const O=Cs(R,q.value);let G=M.value[O],ae=null;G&&(ae={expanded:G.expanded,level:G.level,display:!0,noLazyChildren:void 0,loading:void 0},En(G.lazy)&&(ae&&En(G.loaded)&&G.loaded&&(ae.noLazyChildren=!(G.children&&G.children.length)),ae.loading=G.loading));const Z=[S(R,A,ae??void 0)];if(G){let te=0;const ie=(J,ee)=>{J&&J.length&&ee&&J.forEach(Q=>{const H={display:ee.display&&ee.expanded,level:ee.level+1,expanded:!1,noLazyChildren:!1,loading:!1},X=Cs(Q,q.value);if(mo(X))throw new Error("For nested data item, row-key is required.");if(G={...M.value[X]},G&&(H.expanded=G.expanded,G.level=G.level||H.level,G.display=!!(G.expanded&&H.display),En(G.lazy)&&(En(G.loaded)&&G.loaded&&(H.noLazyChildren=!(G.children&&G.children.length)),H.loading=G.loading)),te++,Z.push(S(Q,A+te,H)),G){const he=j.value[X]||Q[F.value];ie(he,G)}})};G.display=!0;const oe=j.value[O]||R[F.value];ie(oe,G)}return Z}else return S(R,A,void 0)},tooltipContent:d,tooltipTrigger:p}}const yte={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var bte=le({name:"ElTableBody",props:yte,setup(e){var t;const n=qt(),a=Ze(Ir),s=Le("table"),{wrappedRowRender:o,tooltipContent:r,tooltipTrigger:i}=_te(e),{onColumnsChange:c,onScrollableChange:u}=zb(a),d=[];return Te((t=e.store)==null?void 0:t.states.hoverRow,(p,v)=>{var h,m;const g=n==null?void 0:n.vnode.el,y=Array.from((g==null?void 0:g.children)||[]).filter(k=>k==null?void 0:k.classList.contains(`${s.e("row")}`));let b=p;const C=(h=y[b])==null?void 0:h.childNodes;if(C!=null&&C.length){let k=0;Array.from(C).reduce(($,E,R)=>{var A,N;return((A=C[R])==null?void 0:A.colSpan)>1&&(k=(N=C[R])==null?void 0:N.colSpan),E.nodeName!=="TD"&&k===0&&$.push(R),k>0&&k--,$},[]).forEach($=>{var E;for(b=p;b>0;){const R=(E=y[b-1])==null?void 0:E.childNodes;if(R[$]&&R[$].nodeName==="TD"&&R[$].rowSpan>1){Ho(R[$],"hover-cell"),d.push(R[$]);break}b--}})}else d.forEach(k=>Os(k,"hover-cell")),d.length=0;!((m=e.store)!=null&&m.states.isComplex.value)||!cn||Oi(()=>{const k=y[v],S=y[p];k&&!k.classList.contains("hover-fixed-row")&&Os(k,"hover-row"),S&&Ho(S,"hover-row")})}),al(()=>{var p;(p=Rs)==null||p()}),{ns:s,onColumnsChange:c,onScrollableChange:u,wrappedRowRender:o,tooltipContent:r,tooltipTrigger:i}},render(){const{wrappedRowRender:e,store:t}=this,n=(t==null?void 0:t.states.data.value)||[];return yt("tbody",{tabIndex:-1},[n.reduce((a,s)=>a.concat(e(s,a.length)),[])])}});function wte(){const e=Ze(Ir),t=e==null?void 0:e.store,n=x(()=>{var i;return(i=t==null?void 0:t.states.fixedLeafColumnsLength.value)!=null?i:0}),a=x(()=>{var i;return(i=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?i:0}),s=x(()=>{var i;return(i=t==null?void 0:t.states.columns.value.length)!=null?i:0}),o=x(()=>{var i;return(i=t==null?void 0:t.states.fixedColumns.value.length)!=null?i:0}),r=x(()=>{var i;return(i=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?i:0});return{leftFixedLeafCount:n,rightFixedLeafCount:a,columnsCount:s,leftFixedCount:o,rightFixedCount:r,columns:x(()=>{var i;return(i=t==null?void 0:t.states.columns.value)!=null?i:[]})}}function Cte(e){const{columns:t}=wte(),n=Le("table");return{getCellClasses:(o,r)=>{const i=o[r],c=[n.e("cell"),i.id,i.align,i.labelClassName,...Vb(n.b(),r,i.fixed,e.store)];return i.className&&c.push(i.className),i.children||c.push(n.is("leaf")),c},getCellStyles:(o,r)=>{const i=Fb(r,o.fixed,e.store);return ed(i,"left"),ed(i,"right"),i},columns:t}}var kte=le({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=Ze(Ir),n=Le("table"),{getCellClasses:a,getCellStyles:s,columns:o}=Cte(e),{onScrollableChange:r,onColumnsChange:i}=zb(t);return{ns:n,onScrollableChange:r,onColumnsChange:i,getCellClasses:a,getCellStyles:s,columns:o}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:a,sumText:s}=this,o=this.store.states.data.value;let r=[];return a?r=a({columns:e,data:o}):e.forEach((i,c)=>{if(c===0){r[c]=s;return}const u=o.map(h=>Number(h[i.property])),d=[];let p=!0;u.forEach(h=>{if(!Number.isNaN(+h)){p=!1;const m=`${h}`.split(".")[1];d.push(m?m.length:0)}});const v=Math.max.apply(null,d);p?r[c]="":r[c]=u.reduce((h,m)=>{const g=Number(m);return Number.isNaN(+g)?h:Number.parseFloat((h+m).toFixed(Math.min(v,20)))},0)}),yt(yt("tfoot",[yt("tr",{},[...e.map((i,c)=>yt("td",{key:c,colspan:i.colSpan,rowspan:i.rowSpan,class:n(e,c),style:t(i,c)},[yt("div",{class:["cell",i.labelClassName]},[r[c]])]))])]))}});function Ste(e){return{setCurrentRow:p=>{e.commit("setCurrentRow",p)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(p,v,h=!0)=>{e.toggleRowSelection(p,v,!1,h),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:p=>{e.clearFilter(p)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(p,v)=>{e.toggleRowExpansionAdapter(p,v)},clearSort:()=>{e.clearSort()},sort:(p,v)=>{e.commit("sort",{prop:p,order:v})},updateKeyChildren:(p,v)=>{e.updateKeyChildren(p,v)}}}function Ete(e,t,n,a){const s=T(!1),o=T(null),r=T(!1),i=U=>{r.value=U},c=T({width:null,height:null,headerHeight:null}),u=T(!1),d={display:"inline-block",verticalAlign:"middle"},p=T(),v=T(0),h=T(0),m=T(0),g=T(0),y=T(0);Ls(()=>{var U;t.setHeight((U=e.height)!=null?U:null)}),Ls(()=>{var U;t.setMaxHeight((U=e.maxHeight)!=null?U:null)}),Te(()=>[e.currentRowKey,n.states.rowKey],([U,O])=>{!f(O)||!f(U)||n.setCurrentRowKey(`${U}`)},{immediate:!0}),Te(()=>e.data,U=>{a.store.commit("setData",U)},{immediate:!0,deep:!0}),Ls(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const b=()=>{a.store.commit("setHoverRow",null),a.hoverState&&(a.hoverState=null)},C=(U,O)=>{const{pixelX:G,pixelY:ae}=O;Math.abs(G)>=Math.abs(ae)&&(a.refs.bodyWrapper.scrollLeft+=O.pixelX/5)},k=x(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),S=x(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),$=()=>{k.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(N)};ft(async()=>{await it(),n.updateColumns(),P(),requestAnimationFrame($);const U=a.vnode.el,O=a.refs.headerWrapper;e.flexible&&U&&U.parentElement&&(U.parentElement.style.minWidth="0"),c.value={width:p.value=U.offsetWidth,height:U.offsetHeight,headerHeight:e.showHeader&&O?O.offsetHeight:null},n.states.columns.value.forEach(G=>{G.filteredValue&&G.filteredValue.length&&a.store.commit("filterChange",{column:G,values:G.filteredValue,silent:!0})}),a.$ready=!0});const E=(U,O)=>{if(!U)return;const G=Array.from(U.classList).filter(ae=>!ae.startsWith("is-scrolling-"));G.push(t.scrollX.value?O:"is-scrolling-none"),U.className=G.join(" ")},R=U=>{const{tableWrapper:O}=a.refs;E(O,U)},A=U=>{const{tableWrapper:O}=a.refs;return!!(O&&O.classList.contains(U))},N=function(){if(!a.refs.scrollBarRef)return;if(!t.scrollX.value){const oe="is-scrolling-none";A(oe)||R(oe);return}const U=a.refs.scrollBarRef.wrapRef;if(!U)return;const{scrollLeft:O,offsetWidth:G,scrollWidth:ae}=U,{headerWrapper:Z,footerWrapper:te}=a.refs;Z&&(Z.scrollLeft=O),te&&(te.scrollLeft=O);const ie=ae-G-1;O>=ie?R("is-scrolling-right"):R(O===0?"is-scrolling-left":"is-scrolling-middle")},P=()=>{a.refs.scrollBarRef&&(a.refs.scrollBarRef.wrapRef&&Rn(a.refs.scrollBarRef.wrapRef,"scroll",N,{passive:!0}),e.fit?Xn(a.vnode.el,B):Rn(window,"resize",B),Xn(a.refs.bodyWrapper,()=>{var U,O;B(),(O=(U=a.refs)==null?void 0:U.scrollBarRef)==null||O.update()}))},B=()=>{var U,O,G,ae;const Z=a.vnode.el;if(!a.$ready||!Z)return;let te=!1;const{width:ie,height:oe,headerHeight:J}=c.value,ee=p.value=Z.offsetWidth;ie!==ee&&(te=!0);const Q=Z.offsetHeight;(e.height||k.value)&&oe!==Q&&(te=!0);const H=e.tableLayout==="fixed"?a.refs.headerWrapper:(U=a.refs.tableHeaderRef)==null?void 0:U.$el;e.showHeader&&(H==null?void 0:H.offsetHeight)!==J&&(te=!0),v.value=((O=a.refs.tableWrapper)==null?void 0:O.scrollHeight)||0,m.value=(H==null?void 0:H.scrollHeight)||0,g.value=((G=a.refs.footerWrapper)==null?void 0:G.offsetHeight)||0,y.value=((ae=a.refs.appendWrapper)==null?void 0:ae.offsetHeight)||0,h.value=v.value-m.value-g.value-y.value,te&&(c.value={width:ee,height:Q,headerHeight:e.showHeader&&(H==null?void 0:H.offsetHeight)||0},$())},M=xa(),j=x(()=>{const{bodyWidth:U,scrollY:O,gutterWidth:G}=t;return U.value?`${U.value-(O.value?G:0)}px`:""}),F=x(()=>e.maxHeight?"fixed":e.tableLayout),q=x(()=>{if(e.data&&e.data.length)return;let U="100%";e.height&&h.value&&(U=`${h.value}px`);const O=p.value;return{width:O?`${O}px`:"",height:U}}),L=x(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${m.value+g.value}px)`}:{maxHeight:`${+e.maxHeight-m.value-g.value}px`}:{});return{isHidden:s,renderExpanded:o,setDragVisible:i,isGroup:u,handleMouseLeave:b,handleHeaderFooterMousewheel:C,tableSize:M,emptyBlockStyle:q,resizeProxyVisible:r,bodyWidth:j,resizeState:c,doLayout:$,tableBodyStyles:S,tableLayout:F,scrollbarViewStyle:d,scrollbarStyle:L}}function $te(e){const t=T(),n=()=>{const s=e.vnode.el.querySelector(".hidden-columns"),o={childList:!0,subtree:!0},r=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{r.forEach(i=>i())}),t.value.observe(s,o)};ft(()=>{n()}),al(()=>{var a;(a=t.value)==null||a.disconnect()})}var xte={data:{type:Array,default:()=>[]},size:Ma,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function nI(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:s})=>tn(s))&&(n=[]);const a=s=>{const o={key:`${e.tableLayout}_${s.id}`,style:{},name:void 0};return t?o.style={width:`${s.width}px`}:o.name=s.id,o};return yt("colgroup",{},n.map(s=>yt("col",a(s))))}nI.props=["columns","tableLayout"];const Tte=()=>{const e=T(),t=(o,r)=>{const i=e.value;i&&i.scrollTo(o,r)},n=(o,r)=>{const i=e.value;i&>(r)&&["Top","Left"].includes(o)&&i[`setScroll${o}`](r)};return{scrollBarRef:e,scrollTo:t,setScrollTop:o=>n("Top",o),setScrollLeft:o=>n("Left",o)}};var CS=!1,cc,K_,q_,ih,ch,aI,uh,j_,W_,G_,sI,Y_,X_,oI,rI;function uo(){if(!CS){CS=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Y_=/\b(iPhone|iP[ao]d)/.exec(e),X_=/\b(iP[ao]d)/.exec(e),G_=/Android/i.exec(e),oI=/FBAN\/\w+;/i.exec(e),rI=/Mobile/i.exec(e),sI=!!/Win64/.exec(e),t){cc=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,cc&&document&&document.documentMode&&(cc=document.documentMode);var a=/(?:Trident\/(\d+.\d+))/.exec(e);aI=a?parseFloat(a[1])+4:cc,K_=t[2]?parseFloat(t[2]):NaN,q_=t[3]?parseFloat(t[3]):NaN,ih=t[4]?parseFloat(t[4]):NaN,ih?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),ch=t&&t[1]?parseFloat(t[1]):NaN):ch=NaN}else cc=K_=q_=ch=ih=NaN;if(n){if(n[1]){var s=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);uh=s?parseFloat(s[1].replace("_",".")):!0}else uh=!1;j_=!!n[2],W_=!!n[3]}else uh=j_=W_=!1}}var Q_={ie:function(){return uo()||cc},ieCompatibilityMode:function(){return uo()||aI>cc},ie64:function(){return Q_.ie()&&sI},firefox:function(){return uo()||K_},opera:function(){return uo()||q_},webkit:function(){return uo()||ih},safari:function(){return Q_.webkit()},chrome:function(){return uo()||ch},windows:function(){return uo()||j_},osx:function(){return uo()||uh},linux:function(){return uo()||W_},iphone:function(){return uo()||Y_},mobile:function(){return uo()||Y_||X_||G_||rI},nativeApp:function(){return uo()||oI},android:function(){return uo()||G_},ipad:function(){return uo()||X_}},Ite=Q_,Ate=!!(typeof window<"u"&&window.document&&window.document.createElement),Nte={canUseDOM:Ate},lI=Nte,iI;lI.canUseDOM&&(iI=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Rte(e,t){if(!lI.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var s=document.createElement("div");s.setAttribute(n,"return;"),a=typeof s[n]=="function"}return!a&&iI&&e==="wheel"&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}var Pte=Rte,kS=10,SS=40,ES=800;function cI(e){var t=0,n=0,a=0,s=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),a=t*kS,s=n*kS,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(a=e.deltaX),(a||s)&&e.deltaMode&&(e.deltaMode==1?(a*=SS,s*=SS):(a*=ES,s*=ES)),a&&!t&&(t=a<1?-1:1),s&&!n&&(n=s<1?-1:1),{spinX:t,spinY:n,pixelX:a,pixelY:s}}cI.getEventType=function(){return Ite.firefox()?"DOMMouseScroll":Pte("wheel")?"wheel":"mousewheel"};var Mte=cI;/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * Borrows from Modernizr. * * @param {string} eventNameSuffix Event name, e.g. "click". * @param {?boolean} capture Check if the capture phase is supported. * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */const Bte=function(e,t){if(e&&e.addEventListener){const n=function(a){const s=Mte(a);t&&Reflect.apply(t,this,[a,s])};e.addEventListener("wheel",n,{passive:!0})}},Lte={beforeMount(e,t){Bte(e,t.value)}};let Ote=1;const Dte=le({name:"ElTable",directives:{Mousewheel:Lte},components:{TableHeader:fte,TableBody:bte,TableFooter:kte,ElScrollbar:wr,hColgroup:nI},props:xte,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=rn(),n=Le("table"),a=qt();Gt(Ir,a);const s=nte(a,e);a.store=s;const o=new ste({store:a.store,table:a,fit:e.fit,showHeader:e.showHeader});a.layout=o;const r=x(()=>(s.states.data.value||[]).length===0),{setCurrentRow:i,getSelectionRows:c,toggleRowSelection:u,clearSelection:d,clearFilter:p,toggleAllSelection:v,toggleRowExpansion:h,clearSort:m,sort:g,updateKeyChildren:y}=Ste(s),{isHidden:b,renderExpanded:C,setDragVisible:k,isGroup:S,handleMouseLeave:$,handleHeaderFooterMousewheel:E,tableSize:R,emptyBlockStyle:A,resizeProxyVisible:N,bodyWidth:P,resizeState:B,doLayout:M,tableBodyStyles:j,tableLayout:F,scrollbarViewStyle:q,scrollbarStyle:L}=Ete(e,o,s,a),{scrollBarRef:U,scrollTo:O,setScrollLeft:G,setScrollTop:ae}=Tte(),Z=wo(M,50),te=`${n.namespace.value}-table_${Ote++}`;a.tableId=te,a.state={isGroup:S,resizeState:B,doLayout:M,debouncedUpdateLayout:Z};const ie=x(()=>{var ee;return(ee=e.sumText)!=null?ee:t("el.table.sumText")}),oe=x(()=>{var ee;return(ee=e.emptyText)!=null?ee:t("el.table.emptyText")}),J=x(()=>tI(s.states.originColumns.value)[0]);return $te(a),on(()=>{Z.cancel()}),{ns:n,layout:o,store:s,columns:J,handleHeaderFooterMousewheel:E,handleMouseLeave:$,tableId:te,tableSize:R,isHidden:b,isEmpty:r,renderExpanded:C,resizeProxyVisible:N,resizeState:B,isGroup:S,bodyWidth:P,tableBodyStyles:j,emptyBlockStyle:A,debouncedUpdateLayout:Z,setCurrentRow:i,getSelectionRows:c,toggleRowSelection:u,clearSelection:d,clearFilter:p,toggleAllSelection:v,toggleRowExpansion:h,clearSort:m,doLayout:M,sort:g,updateKeyChildren:y,t,setDragVisible:k,context:a,computedSumText:ie,computedEmptyText:oe,tableLayout:F,scrollbarViewStyle:q,scrollbarStyle:L,scrollBarRef:U,scrollTo:O,setScrollLeft:G,setScrollTop:ae,allowDragLastColumn:e.allowDragLastColumn}}});function Vte(e,t,n,a,s,o){const r=Ne("hColgroup"),i=Ne("table-header"),c=Ne("table-body"),u=Ne("table-footer"),d=Ne("el-scrollbar"),p=gd("mousewheel");return _(),w("div",{ref:"tableWrapper",class:V([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Je(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[l("div",{class:V(e.ns.e("inner-wrapper"))},[l("div",{ref:"hiddenColumns",class:"hidden-columns"},[be(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?et((_(),w("div",{key:0,ref:"headerWrapper",class:V(e.ns.e("header-wrapper"))},[l("table",{ref:"tableHeader",class:V(e.ns.e("header")),style:Je(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[z(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),z(i,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[p,e.handleHeaderFooterMousewheel]]):K("v-if",!0),l("div",{ref:"bodyWrapper",class:V(e.ns.e("body-wrapper"))},[z(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:v=>e.$emit("scroll",v)},{default:W(()=>[l("table",{ref:"tableBody",class:V(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Je({width:e.bodyWidth,tableLayout:e.tableLayout})},[z(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(_(),ue(i,{key:0,ref:"tableHeaderRef",class:V(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):K("v-if",!0),z(c,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(_(),ue(u,{key:1,class:V(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):K("v-if",!0)],6),e.isEmpty?(_(),w("div",{key:0,ref:"emptyBlock",style:Je(e.emptyBlockStyle),class:V(e.ns.e("empty-block"))},[l("span",{class:V(e.ns.e("empty-text"))},[be(e.$slots,"empty",{},()=>[Ce(I(e.computedEmptyText),1)])],2)],6)):K("v-if",!0),e.$slots.append?(_(),w("div",{key:1,ref:"appendWrapper",class:V(e.ns.e("append-wrapper"))},[be(e.$slots,"append")],2)):K("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native","onScroll"])],2),e.showSummary&&e.tableLayout==="fixed"?et((_(),w("div",{key:1,ref:"footerWrapper",class:V(e.ns.e("footer-wrapper"))},[l("table",{class:V(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Je(e.tableBodyStyles)},[z(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),z(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[fn,!e.isEmpty],[p,e.handleHeaderFooterMousewheel]]):K("v-if",!0),e.border||e.isGroup?(_(),w("div",{key:2,class:V(e.ns.e("border-left-patch"))},null,2)):K("v-if",!0)],2),et(l("div",{ref:"resizeProxy",class:V(e.ns.e("column-resize-proxy"))},null,2),[[fn,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var Fte=ze(Dte,[["render",Vte],["__file","table.vue"]]);const Ute={selection:"table-column--selection",expand:"table__expand-column"},zte={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Hte=e=>Ute[e]||"",Kte={selection:{renderHeader({store:e,column:t}){var n;function a(){return e.states.data.value&&e.states.data.value.length===0}return yt(or,{disabled:a(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":(n=e.toggleAllSelection)!=null?n:void 0,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:a}){return yt(or,{disabled:t.selectable?!t.selectable.call(null,e,a):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:s=>s.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const a=e.index;return gt(a)?n=t+a:vt(a)&&(n=a(t)),yt("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:a}){const{ns:s}=n,o=[s.e("expand-icon")];return!e.renderExpand&&a&&o.push(s.em("expand-icon","expanded")),yt("div",{class:o,onClick:function(i){i.stopPropagation(),n.toggleRowExpansion(t)}},{default:()=>e.renderExpand?[e.renderExpand({expanded:a})]:[yt(ct,null,{default:()=>[yt(Ds)]})]})},sortable:!1,resizable:!1}};function qte({row:e,column:t,$index:n}){var a;const s=t.property,o=s&&$f(e,s).value;return t&&t.formatter?t.formatter(e,t,o,n):((a=o==null?void 0:o.toString)==null?void 0:a.call(o))||""}function jte({row:e,treeNode:t,store:n},a=!1){const{ns:s}=n;if(!t)return a?[yt("span",{class:s.e("placeholder")})]:null;const o=[],r=function(i){i.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&o.push(yt("span",{class:s.e("indent"),style:{"padding-left":`${t.indent}px`}})),En(t.expanded)&&!t.noLazyChildren){const i=[s.e("expand-icon"),t.expanded?s.em("expand-icon","expanded"):""];let c=Ds;t.loading&&(c=el),o.push(yt("div",{class:i,onClick:r},{default:()=>[yt(ct,{class:{[s.is("loading")]:t.loading}},{default:()=>[yt(c)]})]}))}else o.push(yt("span",{class:s.e("placeholder")}));return o}function $S(e,t){return e.reduce((n,a)=>(n[a]=a,n),t)}function Wte(e,t){const n=qt();return{registerComplexWatchers:()=>{const o=["fixed"],r={realWidth:"width",realMinWidth:"minWidth"},i=$S(o,r);Object.keys(i).forEach(c=>{const u=r[c];ln(t,u)&&Te(()=>t[u],d=>{let p=d;u==="width"&&c==="realWidth"&&(p=Db(d)),u==="minWidth"&&c==="realMinWidth"&&(p=Y8(d)),n.columnConfig.value[u]=p,n.columnConfig.value[c]=p;const v=u==="fixed";e.value.store.scheduleLayout(v)})})},registerNormalWatchers:()=>{const o=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter"],r=["showOverflowTooltip"],i={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},c=$S(o,i);Object.keys(c).forEach(u=>{const d=i[u];ln(t,d)&&Te(()=>t[d],p=>{n.columnConfig.value[u]=p})}),r.forEach(u=>{ln(e.value.props,u)&&Te(()=>e.value.props[u],d=>{n.columnConfig.value[u]=d})})}}}function Gte(e,t,n){const a=qt(),s=T(""),o=T(!1),r=T(),i=T(),c=Le("table");Ls(()=>{r.value=e.align?`is-${e.align}`:null,r.value}),Ls(()=>{i.value=e.headerAlign?`is-${e.headerAlign}`:r.value,i.value});const u=x(()=>{let S=a.vnode.vParent||a.parent;for(;S&&!S.tableId&&!S.columnId;)S=S.vnode.vParent||S.parent;return S}),d=x(()=>{const{store:S}=a.parent;if(!S)return!1;const{treeData:$}=S.states,E=$.value;return E&&Object.keys(E).length>0}),p=T(Db(e.width)),v=T(Y8(e.minWidth)),h=S=>(p.value&&(S.width=p.value),v.value&&(S.minWidth=v.value),!p.value&&v.value&&(S.width=void 0),S.minWidth||(S.minWidth=80),S.realWidth=Number(tn(S.width)?S.minWidth:S.width),S),m=S=>{const $=S.type,E=Kte[$]||{};Object.keys(E).forEach(A=>{const N=E[A];A!=="className"&&!tn(N)&&(S[A]=N)});const R=Hte($);if(R){const A=`${f(c.namespace)}-${R}`;S.className=S.className?`${S.className} ${A}`:A}return S},g=S=>{Ve(S)?S.forEach(E=>$(E)):$(S);function $(E){var R;((R=E==null?void 0:E.type)==null?void 0:R.name)==="ElTableColumn"&&(E.vParent=a)}};return{columnId:s,realAlign:r,isSubColumn:o,realHeaderAlign:i,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:m,setColumnRenders:S=>{e.renderHeader||S.type!=="selection"&&(S.renderHeader=E=>(a.columnConfig.value.label,be(t,"header",E,()=>[S.label]))),t["filter-icon"]&&(S.renderFilterIcon=E=>be(t,"filter-icon",E)),t.expand&&(S.renderExpand=E=>be(t,"expand",E));let $=S.renderCell;return S.type==="expand"?(S.renderCell=E=>yt("div",{class:"cell"},[$(E)]),n.value.renderExpanded=E=>t.default?t.default(E):t.default):($=$||qte,S.renderCell=E=>{let R=null;if(t.default){const j=t.default(E);R=j.some(F=>F.type!==ts)?j:$(E)}else R=$(E);const{columns:A}=n.value.store.states,N=A.value.findIndex(j=>j.type==="default"),P=d.value&&E.cellIndex===N,B=jte(E,P),M={class:"cell",style:{}};return S.showOverflowTooltip&&(M.class=`${M.class} ${f(c.namespace)}-tooltip`,M.style={width:`${(E.column.realWidth||Number(E.column.width))-1}px`}),g(R),yt("div",M,[B,R])}),S},getPropsData:(...S)=>S.reduce(($,E)=>(Ve(E)&&E.forEach(R=>{$[R]=e[R]}),$),{}),getColumnElIndex:(S,$)=>Array.prototype.indexOf.call(S,$),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",a.columnConfig.value)}}}var Yte={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let Xte=1;var uI=le({name:"ElTableColumn",components:{ElCheckbox:or},props:Yte,setup(e,{slots:t}){const n=qt(),a=T({}),s=x(()=>{let k=n.parent;for(;k&&!k.tableId;)k=k.parent;return k}),{registerNormalWatchers:o,registerComplexWatchers:r}=Wte(s,e),{columnId:i,isSubColumn:c,realHeaderAlign:u,columnOrTableParent:d,setColumnWidth:p,setColumnForcedProps:v,setColumnRenders:h,getPropsData:m,getColumnElIndex:g,realAlign:y,updateColumnOrder:b}=Gte(e,t,s),C=d.value;i.value=`${"tableId"in C&&C.tableId||"columnId"in C&&C.columnId}_column_${Xte++}`,$m(()=>{c.value=s.value!==C;const k=e.type||"default",S=e.sortable===""?!0:e.sortable,$=k==="selection"?!1:tn(e.showOverflowTooltip)?C.props.showOverflowTooltip:e.showOverflowTooltip,E=tn(e.tooltipFormatter)?C.props.tooltipFormatter:e.tooltipFormatter,R={...zte[k],id:i.value,type:k,property:e.prop||e.property,align:y,headerAlign:u,showOverflowTooltip:$,tooltipFormatter:E,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:S,index:e.index,rawColumnKey:n.vnode.key};let M=m(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);M=Kee(R,M),M=jee(h,p,v)(M),a.value=M,o(),r()}),ft(()=>{var k,S;const $=d.value,E=c.value?(k=$.vnode.el)==null?void 0:k.children:(S=$.refs.hiddenColumns)==null?void 0:S.children,R=()=>g(E||[],n.vnode.el);a.value.getColumnIndex=R,R()>-1&&s.value.store.commit("insertColumn",a.value,c.value?"columnConfig"in $&&$.columnConfig.value:null,b)}),on(()=>{const k=a.value.getColumnIndex;(k?k():-1)>-1&&s.value.store.commit("removeColumn",a.value,c.value?"columnConfig"in C&&C.columnConfig.value:null,b)}),n.columnId=i.value,n.columnConfig=a},render(){var e,t,n;try{const a=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),s=[];if(Ve(a))for(const r of a)((n=r.type)==null?void 0:n.name)==="ElTableColumn"||r.shapeFlag&2?s.push(r):r.type===_e&&Ve(r.children)&&r.children.forEach(i=>{(i==null?void 0:i.patchFlag)!==1024&&!ut(i==null?void 0:i.children)&&s.push(i)});return yt("div",s)}catch{return yt("div",[])}}});const Qte=Rt(Fte,{TableColumn:uI}),Jte=ea(uI);var fp=(e=>(e.ASC="asc",e.DESC="desc",e))(fp||{}),pp=(e=>(e.CENTER="center",e.RIGHT="right",e))(pp||{}),dI=(e=>(e.LEFT="left",e.RIGHT="right",e))(dI||{});const J_={asc:"desc",desc:"asc"},vp=Symbol("placeholder"),Zte=(e,t,n)=>{var a;const s={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(s.flexShrink=1);const o={...(a=e.style)!=null?a:{},...s,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(o.maxWidth=e.maxWidth),e.minWidth&&(o.minWidth=e.minWidth)),o};function ene(e,t,n){const a=x(()=>f(t).map((y,b)=>{var C,k;return{...y,key:(k=(C=y.key)!=null?C:y.dataKey)!=null?k:b}})),s=x(()=>f(a).filter(y=>!y.hidden)),o=x(()=>f(s).filter(y=>y.fixed==="left"||y.fixed===!0)),r=x(()=>f(s).filter(y=>y.fixed==="right")),i=x(()=>f(s).filter(y=>!y.fixed)),c=x(()=>{const y=[];return f(o).forEach(b=>{y.push({...b,placeholderSign:vp})}),f(i).forEach(b=>{y.push(b)}),f(r).forEach(b=>{y.push({...b,placeholderSign:vp})}),y}),u=x(()=>f(o).length||f(r).length),d=x(()=>f(a).reduce((y,b)=>(y[b.key]=Zte(b,f(n),e.fixed),y),{})),p=x(()=>f(s).reduce((y,b)=>y+b.width,0)),v=y=>f(a).find(b=>b.key===y),h=y=>f(d)[y],m=(y,b)=>{y.width=b};function g(y){var b;const{key:C}=y.currentTarget.dataset;if(!C)return;const{sortState:k,sortBy:S}=e;let $=fp.ASC;Ot(k)?$=J_[k[C]]:$=J_[S.order],(b=e.onColumnSort)==null||b.call(e,{column:v(C),key:C,order:$})}return{columns:a,columnsStyles:d,columnsTotalWidth:p,fixedColumnsOnLeft:o,fixedColumnsOnRight:r,hasFixedColumns:u,mainColumns:c,normalColumns:i,visibleColumns:s,getColumn:v,getColumnStyle:h,updateColumnWidth:m,onColumnSorted:g}}const tne=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:s})=>{const o=T({scrollLeft:0,scrollTop:0});function r(h){var m,g,y;const{scrollTop:b}=h;(m=t.value)==null||m.scrollTo(h),(g=n.value)==null||g.scrollToTop(b),(y=a.value)==null||y.scrollToTop(b)}function i(h){o.value=h,r(h)}function c(h){o.value.scrollTop=h,r(f(o))}function u(h){var m,g;o.value.scrollLeft=h,(g=(m=t.value)==null?void 0:m.scrollTo)==null||g.call(m,f(o))}function d(h){var m;i(h),(m=e.onScroll)==null||m.call(e,h)}function p({scrollTop:h}){const{scrollTop:m}=f(o);h!==m&&c(h)}function v(h,m="auto"){var g;(g=t.value)==null||g.scrollToRow(h,m)}return Te(()=>f(o).scrollTop,(h,m)=>{h>m&&s()}),{scrollPos:o,scrollTo:i,scrollToLeft:u,scrollToTop:c,scrollToRow:v,onScroll:d,onVerticalScroll:p}},nne=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:s,ns:o,isScrolling:r})=>{const i=qt(),{emit:c}=i,u=Fn(!1),d=T(e.defaultExpandedRowKeys||[]),p=T(-1),v=Fn(null),h=T({}),m=T({}),g=Fn({}),y=Fn({}),b=Fn({}),C=x(()=>gt(e.estimatedRowHeight));function k(P){var B;(B=e.onRowsRendered)==null||B.call(e,P),P.rowCacheEnd>f(p)&&(p.value=P.rowCacheEnd)}function S({hovered:P,rowKey:B}){if(r.value)return;s.vnode.el.querySelectorAll(`[rowkey="${String(B)}"]`).forEach(F=>{P?F.classList.add(o.is("hovered")):F.classList.remove(o.is("hovered"))})}function $({expanded:P,rowData:B,rowIndex:M,rowKey:j}){var F,q;const L=[...f(d)],U=L.indexOf(j);P?U===-1&&L.push(j):U>-1&&L.splice(U,1),d.value=L,c("update:expandedRowKeys",L),(F=e.onRowExpand)==null||F.call(e,{expanded:P,rowData:B,rowIndex:M,rowKey:j}),(q=e.onExpandedRowsChange)==null||q.call(e,L),s.vnode.el.querySelector(`.${o.is("hovered")}[rowkey="${String(j)}"]`)&&it(()=>S({hovered:!0,rowKey:j}))}const E=wo(()=>{var P,B,M,j;u.value=!0,h.value={...f(h),...f(m)},R(f(v),!1),m.value={},v.value=null,(P=t.value)==null||P.forceUpdate(),(B=n.value)==null||B.forceUpdate(),(M=a.value)==null||M.forceUpdate(),(j=i.proxy)==null||j.$forceUpdate(),u.value=!1},0);function R(P,B=!1){f(C)&&[t,n,a].forEach(M=>{const j=f(M);j&&j.resetAfterRowIndex(P,B)})}function A(P,B,M){const j=f(v);(j===null||j>M)&&(v.value=M),m.value[P]=B}function N({rowKey:P,height:B,rowIndex:M},j){j?j===dI.RIGHT?b.value[P]=B:g.value[P]=B:y.value[P]=B;const F=Math.max(...[g,b,y].map(q=>q.value[P]||0));f(h)[P]!==F&&(A(P,F,M),E())}return{expandedRowKeys:d,lastRenderedRowIndex:p,isDynamic:C,isResetting:u,rowHeights:h,resetAfterIndex:R,onRowExpanded:$,onRowHovered:S,onRowsRendered:k,onRowHeightChange:N}},ane=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:a})=>{const s=T({}),o=x(()=>{const i={},{data:c,rowKey:u}=e,d=f(t);if(!d||!d.length)return c;const p=[],v=new Set;d.forEach(m=>v.add(m));let h=c.slice();for(h.forEach(m=>i[m[u]]=0);h.length>0;){const m=h.shift();p.push(m),v.has(m[u])&&Ve(m.children)&&m.children.length>0&&(h=[...m.children,...h],m.children.forEach(g=>i[g[u]]=i[m[u]]+1))}return s.value=i,p}),r=x(()=>{const{data:i,expandColumnKey:c}=e;return c?f(o):i});return Te(r,(i,c)=>{i!==c&&(n.value=-1,a(0,!0))}),{data:r,depthMap:s}},sne=(e,t)=>e+t,dh=e=>Ve(e)?e.reduce(sne,0):e,Fc=(e,t,n={})=>vt(e)?e(t):e??n,gi=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=sa(e[t])}),e),fI=e=>Un(e)?t=>yt(e,t):e,one=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:a,fixedColumnsOnRight:s})=>{const o=x(()=>{const{fixed:b,width:C,vScrollbarSize:k}=e,S=C-k;return b?Math.max(Math.round(f(t)),S):S}),r=x(()=>{const{height:b=0,maxHeight:C=0,footerHeight:k,hScrollbarSize:S}=e;if(C>0){const $=f(v),E=f(n),A=f(p)+$+E+S;return Math.min(A,C-k)}return b-k}),i=x(()=>{const{maxHeight:b}=e,C=f(r);if(gt(b)&&b>0)return C;const k=f(n)+f(p)+f(v);return Math.min(C,k)}),c=b=>b.width,u=x(()=>dh(f(a).map(c))),d=x(()=>dh(f(s).map(c))),p=x(()=>dh(e.headerHeight)),v=x(()=>{var b;return(((b=e.fixedData)==null?void 0:b.length)||0)*e.rowHeight}),h=x(()=>f(r)-f(p)-f(v)),m=x(()=>{const{style:b={},height:C,width:k}=e;return gi({...b,height:C,width:k})}),g=x(()=>gi({height:e.footerHeight})),y=x(()=>({top:sa(f(p)),bottom:sa(e.footerHeight),width:sa(e.width)}));return{bodyWidth:o,fixedTableHeight:i,mainTableHeight:r,leftTableWidth:u,rightTableWidth:d,windowHeight:h,footerHeight:g,emptyStyle:y,rootStyle:m,headerHeight:p}};function rne(e){const t=T(),n=T(),a=T(),{columns:s,columnsStyles:o,columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:c,hasFixedColumns:u,mainColumns:d,onColumnSorted:p}=ene(e,gn(e,"columns"),gn(e,"fixed")),{scrollTo:v,scrollToLeft:h,scrollToTop:m,scrollToRow:g,onScroll:y,onVerticalScroll:b,scrollPos:C}=tne(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:ne}),k=Le("table-v2"),S=qt(),$=Fn(!1),{expandedRowKeys:E,lastRenderedRowIndex:R,isDynamic:A,isResetting:N,rowHeights:P,resetAfterIndex:B,onRowExpanded:M,onRowHeightChange:j,onRowHovered:F,onRowsRendered:q}=nne(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:S,ns:k,isScrolling:$}),{data:L,depthMap:U}=ane(e,{expandedRowKeys:E,lastRenderedRowIndex:R,resetAfterIndex:B}),O=x(()=>{const{estimatedRowHeight:re,rowHeight:se}=e,ke=f(L);return gt(re)?Object.values(f(P)).reduce((ye,Se)=>ye+Se,0):ke.length*se}),{bodyWidth:G,fixedTableHeight:ae,mainTableHeight:Z,leftTableWidth:te,rightTableWidth:ie,windowHeight:oe,footerHeight:J,emptyStyle:ee,rootStyle:Q,headerHeight:H}=one(e,{columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:c,rowsHeight:O}),X=T(),he=x(()=>{const re=f(L).length===0;return Ve(e.fixedData)?e.fixedData.length===0&&re:re});function D(re){const{estimatedRowHeight:se,rowHeight:ke,rowKey:ye}=e;return se?f(P)[f(L)[re][ye]]||se:ke}const Y=T(!1);function ne(){const{onEndReached:re}=e;if(!re)return;const{scrollTop:se}=f(C),ke=f(O),ye=f(oe),Se=ke-(se+ye)+e.hScrollbarSize;!Y.value&&f(R)>=0&&ke<=se+f(Z)-f(H)?(Y.value=!0,re(Se)):Y.value=!1}return Te(()=>f(O),()=>Y.value=!1),Te(()=>e.expandedRowKeys,re=>E.value=re,{deep:!0}),{columns:s,containerRef:X,mainTableRef:t,leftTableRef:n,rightTableRef:a,isDynamic:A,isResetting:N,isScrolling:$,hasFixedColumns:u,columnsStyles:o,columnsTotalWidth:r,data:L,expandedRowKeys:E,depthMap:U,fixedColumnsOnLeft:i,fixedColumnsOnRight:c,mainColumns:d,bodyWidth:G,emptyStyle:ee,rootStyle:Q,footerHeight:J,mainTableHeight:Z,fixedTableHeight:ae,leftTableWidth:te,rightTableWidth:ie,showEmpty:he,getRowHeight:D,onColumnSorted:p,onRowHovered:F,onRowExpanded:M,onRowsRendered:q,onRowHeightChange:j,scrollTo:v,scrollToLeft:h,scrollToTop:m,scrollToRow:g,onScroll:y,onVerticalScroll:b}}const Hb=Symbol("tableV2"),pI="tableV2GridScrollLeft",vI=String,Vp={type:ge(Array),required:!0},Kb={type:ge(Array)},hI={...Kb,required:!0},lne=String,xS={type:ge(Array),default:()=>Zn([])},uc={type:Number,required:!0},mI={type:ge([String,Number,Symbol]),default:"id"},TS={type:ge(Object)},_c=Ue({class:String,columns:Vp,columnsStyles:{type:ge(Object),required:!0},depth:Number,expandColumnKey:lne,estimatedRowHeight:{...xc.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:ge(Function)},onRowHover:{type:ge(Function)},onRowHeightChange:{type:ge(Function)},rowData:{type:ge(Object),required:!0},rowEventHandlers:{type:ge(Object)},rowIndex:{type:Number,required:!0},rowKey:mI,style:{type:ge(Object)}}),fg={type:Number,required:!0},qb=Ue({class:String,columns:Vp,fixedHeaderData:{type:ge(Array)},headerData:{type:ge(Array),required:!0},headerHeight:{type:ge([Number,Array]),default:50},rowWidth:fg,rowHeight:{type:Number,default:50},height:fg,width:fg}),fh=Ue({columns:Vp,data:hI,fixedData:Kb,estimatedRowHeight:_c.estimatedRowHeight,width:uc,height:uc,headerWidth:uc,headerHeight:qb.headerHeight,bodyWidth:uc,rowHeight:uc,cache:B8.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:xc.scrollbarAlwaysOn,scrollbarStartGap:xc.scrollbarStartGap,scrollbarEndGap:xc.scrollbarEndGap,class:vI,style:TS,containerStyle:TS,getRowHeight:{type:ge(Function),required:!0},rowKey:_c.rowKey,onRowsRendered:{type:ge(Function)},onScroll:{type:ge(Function)}}),ine=Ue({cache:fh.cache,estimatedRowHeight:_c.estimatedRowHeight,rowKey:mI,headerClass:{type:ge([String,Function])},headerProps:{type:ge([Object,Function])},headerCellProps:{type:ge([Object,Function])},headerHeight:qb.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:ge([String,Function])},rowProps:{type:ge([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:ge([Object,Function])},columns:Vp,data:hI,dataGetter:{type:ge(Function)},fixedData:Kb,expandColumnKey:_c.expandColumnKey,expandedRowKeys:xS,defaultExpandedRowKeys:xS,class:vI,fixed:Boolean,style:{type:ge(Object)},width:uc,height:uc,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:xc.hScrollbarSize,vScrollbarSize:xc.vScrollbarSize,scrollbarAlwaysOn:D8.alwaysOn,sortBy:{type:ge(Object),default:()=>({})},sortState:{type:ge(Object),default:void 0},onColumnSort:{type:ge(Function)},onExpandedRowsChange:{type:ge(Function)},onEndReached:{type:ge(Function)},onRowExpand:_c.onRowExpand,onScroll:fh.onScroll,onRowsRendered:fh.onRowsRendered,rowEventHandlers:_c.rowEventHandlers}),cne="ElTableV2Header",une=le({name:cne,props:qb,setup(e,{slots:t,expose:n}){const a=Le("table-v2"),s=Ze(pI),o=T(),r=x(()=>gi({width:e.width,height:e.height})),i=x(()=>gi({width:e.rowWidth,height:e.height})),c=x(()=>es(f(e.headerHeight))),u=v=>{const h=f(o);it(()=>{h!=null&&h.scroll&&h.scroll({left:v})})},d=()=>{const v=a.e("fixed-header-row"),{columns:h,fixedHeaderData:m,rowHeight:g}=e;return m==null?void 0:m.map((y,b)=>{var C;const k=gi({height:g,width:"100%"});return(C=t.fixed)==null?void 0:C.call(t,{class:v,columns:h,rowData:y,rowIndex:-(b+1),style:k})})},p=()=>{const v=a.e("dynamic-header-row"),{columns:h}=e;return f(c).map((m,g)=>{var y;const b=gi({width:"100%",height:m});return(y=t.dynamic)==null?void 0:y.call(t,{class:v,columns:h,headerIndex:g,style:b})})};return $r(()=>{s!=null&&s.value&&u(s.value)}),n({scrollToLeft:u}),()=>{if(!(e.height<=0))return z("div",{ref:o,class:e.class,style:f(r),role:"rowgroup"},[z("div",{style:f(i),class:a.e("header")},[p(),d()])])}}});var dne=une;const fne=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},s)=>{let o=null,r=0,i=0;const c=(d,p)=>{const v=d<=0&&t.value||d>=0&&e.value,h=p<=0&&a.value||p>=0&&n.value;return v&&h};return{hasReachedEdge:c,onWheel:d=>{Oc(o);let p=d.deltaX,v=d.deltaY;Math.abs(p)>Math.abs(v)?v=0:p=0,d.shiftKey&&v!==0&&(p=v,v=0),!(c(r,i)&&c(r+p,i+v))&&(r+=p,i+=v,d.preventDefault(),o=Oi(()=>{s(r,i),r=0,i=0}))}}},gI=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:s,getEstimatedTotalHeight:o,getEstimatedTotalWidth:r,getColumnOffset:i,getRowOffset:c,getRowPosition:u,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:p,initCache:v,injectToInstance:h,validateProps:m})=>le({name:e??"ElVirtualList",props:xc,emits:[Hh,Kh],setup(g,{emit:y,expose:b,slots:C}){const k=Le("vl");m(g);const S=qt(),$=T(v(g,S));h==null||h(S,$);const E=T(),R=T(),A=T(),N=T(null),P=T({isScrolling:!1,scrollLeft:gt(g.initScrollLeft)?g.initScrollLeft:0,scrollTop:gt(g.initScrollTop)?g.initScrollTop:0,updateRequested:!1,xAxisScrollDir:ku,yAxisScrollDir:ku}),B=R8(),M=x(()=>Number.parseInt(`${g.height}`,10)),j=x(()=>Number.parseInt(`${g.width}`,10)),F=x(()=>{const{totalColumn:ye,totalRow:Se,columnCache:ce}=g,{isScrolling:we,xAxisScrollDir:Ae,scrollLeft:Fe}=f(P);if(ye===0||Se===0)return[0,0,0,0];const xe=a(g,Fe,f($)),me=s(g,xe,Fe,f($)),Me=!we||Ae===qh?Math.max(1,ce):1,at=!we||Ae===ku?Math.max(1,ce):1;return[Math.max(0,xe-Me),Math.max(0,Math.min(ye-1,me+at)),xe,me]}),q=x(()=>{const{totalColumn:ye,totalRow:Se,rowCache:ce}=g,{isScrolling:we,yAxisScrollDir:Ae,scrollTop:Fe}=f(P);if(ye===0||Se===0)return[0,0,0,0];const xe=d(g,Fe,f($)),me=p(g,xe,Fe,f($)),Me=!we||Ae===qh?Math.max(1,ce):1,at=!we||Ae===ku?Math.max(1,ce):1;return[Math.max(0,xe-Me),Math.max(0,Math.min(Se-1,me+at)),xe,me]}),L=x(()=>o(g,f($))),U=x(()=>r(g,f($))),O=x(()=>{var ye;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:g.direction,height:gt(g.height)?`${g.height}px`:g.height,width:gt(g.width)?`${g.width}px`:g.width},(ye=g.style)!=null?ye:{}]}),G=x(()=>{const ye=`${f(U)}px`;return{height:`${f(L)}px`,pointerEvents:f(P).isScrolling?"none":void 0,width:ye}}),ae=()=>{const{totalColumn:ye,totalRow:Se}=g;if(ye>0&&Se>0){const[me,Me,at,Qe]=f(F),[It,je,Vt,kt]=f(q);y(Hh,{columnCacheStart:me,columnCacheEnd:Me,rowCacheStart:It,rowCacheEnd:je,columnVisibleStart:at,columnVisibleEnd:Qe,rowVisibleStart:Vt,rowVisibleEnd:kt})}const{scrollLeft:ce,scrollTop:we,updateRequested:Ae,xAxisScrollDir:Fe,yAxisScrollDir:xe}=f(P);y(Kh,{xAxisScrollDir:Fe,scrollLeft:ce,yAxisScrollDir:xe,scrollTop:we,updateRequested:Ae})},Z=ye=>{const{clientHeight:Se,clientWidth:ce,scrollHeight:we,scrollLeft:Ae,scrollTop:Fe,scrollWidth:xe}=ye.currentTarget,me=f(P);if(me.scrollTop===Fe&&me.scrollLeft===Ae)return;let Me=Ae;if(fS(g.direction))switch(Wh()){case up:Me=-Ae;break;case Ob:Me=xe-ce-Ae;break}P.value={...me,isScrolling:!0,scrollLeft:Me,scrollTop:Math.max(0,Math.min(Fe,we-Se)),updateRequested:!0,xAxisScrollDir:gc(me.scrollLeft,Me),yAxisScrollDir:gc(me.scrollTop,Fe)},it(()=>H()),X(),ae()},te=(ye,Se)=>{const ce=f(M),we=(L.value-ce)/Se*ye;J({scrollTop:Math.min(L.value-ce,we)})},ie=(ye,Se)=>{const ce=f(j),we=(U.value-ce)/Se*ye;J({scrollLeft:Math.min(U.value-ce,we)})},{onWheel:oe}=fne({atXStartEdge:x(()=>P.value.scrollLeft<=0),atXEndEdge:x(()=>P.value.scrollLeft>=U.value-f(j)),atYStartEdge:x(()=>P.value.scrollTop<=0),atYEndEdge:x(()=>P.value.scrollTop>=L.value-f(M))},(ye,Se)=>{var ce,we,Ae,Fe;(we=(ce=R.value)==null?void 0:ce.onMouseUp)==null||we.call(ce),(Fe=(Ae=A.value)==null?void 0:Ae.onMouseUp)==null||Fe.call(Ae);const xe=f(j),me=f(M);J({scrollLeft:Math.min(P.value.scrollLeft+ye,U.value-xe),scrollTop:Math.min(P.value.scrollTop+Se,L.value-me)})});Rn(E,"wheel",oe,{passive:!1});const J=({scrollLeft:ye=P.value.scrollLeft,scrollTop:Se=P.value.scrollTop})=>{ye=Math.max(ye,0),Se=Math.max(Se,0);const ce=f(P);Se===ce.scrollTop&&ye===ce.scrollLeft||(P.value={...ce,xAxisScrollDir:gc(ce.scrollLeft,ye),yAxisScrollDir:gc(ce.scrollTop,Se),scrollLeft:ye,scrollTop:Se,updateRequested:!0},it(()=>H()),X(),ae())},ee=(ye=0,Se=0,ce=Ko)=>{const we=f(P);Se=Math.max(0,Math.min(Se,g.totalColumn-1)),ye=Math.max(0,Math.min(ye,g.totalRow-1));const Ae=sT(k.namespace.value),Fe=f($),xe=o(g,Fe),me=r(g,Fe);J({scrollLeft:i(g,Se,ce,we.scrollLeft,Fe,me>g.width?Ae:0),scrollTop:c(g,ye,ce,we.scrollTop,Fe,xe>g.height?Ae:0)})},Q=(ye,Se)=>{const{columnWidth:ce,direction:we,rowHeight:Ae}=g,Fe=B.value(t&&ce,t&&Ae,t&&we),xe=`${ye},${Se}`;if(ln(Fe,xe))return Fe[xe];{const[,me]=n(g,Se,f($)),Me=f($),at=fS(we),[Qe,It]=u(g,ye,Me),[je]=n(g,Se,Me);return Fe[xe]={position:"absolute",left:at?void 0:`${me}px`,right:at?`${me}px`:void 0,top:`${It}px`,height:`${Qe}px`,width:`${je}px`},Fe[xe]}},H=()=>{P.value.isScrolling=!1,it(()=>{B.value(-1,null,null)})};ft(()=>{if(!cn)return;const{initScrollLeft:ye,initScrollTop:Se}=g,ce=f(E);ce&&(gt(ye)&&(ce.scrollLeft=ye),gt(Se)&&(ce.scrollTop=Se)),ae()});const X=()=>{const{direction:ye}=g,{scrollLeft:Se,scrollTop:ce,updateRequested:we}=f(P),Ae=f(E);if(we&&Ae){if(ye===Mu)switch(Wh()){case up:{Ae.scrollLeft=-Se;break}case Lb:{Ae.scrollLeft=Se;break}default:{const{clientWidth:Fe,scrollWidth:xe}=Ae;Ae.scrollLeft=xe-Fe-Se;break}}else Ae.scrollLeft=Math.max(0,Se);Ae.scrollTop=Math.max(0,ce)}},{resetAfterColumnIndex:he,resetAfterRowIndex:D,resetAfter:Y}=S.proxy;b({windowRef:E,innerRef:N,getItemStyleCache:B,scrollTo:J,scrollToItem:ee,states:P,resetAfterColumnIndex:he,resetAfterRowIndex:D,resetAfter:Y});const ne=()=>{const{scrollbarAlwaysOn:ye,scrollbarStartGap:Se,scrollbarEndGap:ce,totalColumn:we,totalRow:Ae}=g,Fe=f(j),xe=f(M),me=f(U),Me=f(L),{scrollLeft:at,scrollTop:Qe}=f(P),It=yt(U_,{ref:R,alwaysOn:ye,startGap:Se,endGap:ce,class:k.e("horizontal"),clientSize:Fe,layout:"horizontal",onScroll:ie,ratio:Fe*100/me,scrollFrom:at/(me-Fe),total:Ae,visible:!0}),je=yt(U_,{ref:A,alwaysOn:ye,startGap:Se,endGap:ce,class:k.e("vertical"),clientSize:xe,layout:"vertical",onScroll:te,ratio:xe*100/Me,scrollFrom:Qe/(Me-xe),total:we,visible:!0});return{horizontalScrollbar:It,verticalScrollbar:je}},re=()=>{var ye;const[Se,ce]=f(F),[we,Ae]=f(q),{data:Fe,totalColumn:xe,totalRow:me,useIsScrolling:Me,itemKey:at}=g,Qe=[];if(me>0&&xe>0)for(let It=we;It<=Ae;It++)for(let je=Se;je<=ce;je++){const Vt=at({columnIndex:je,data:Fe,rowIndex:It});Qe.push(yt(_e,{key:Vt},(ye=C.default)==null?void 0:ye.call(C,{columnIndex:je,data:Fe,isScrolling:Me?f(P).isScrolling:void 0,style:Q(It,je),rowIndex:It})))}return Qe},se=()=>{const ye=Ft(g.innerElement),Se=re();return[yt(ye,{style:f(G),ref:N},ut(ye)?Se:{default:()=>Se})]};return()=>{const ye=Ft(g.containerElement),{horizontalScrollbar:Se,verticalScrollbar:ce}=ne(),we=se();return yt("div",{key:0,class:k.e("wrapper"),role:g.role},[yt(ye,{class:g.className,style:f(O),onScroll:Z,ref:E},ut(ye)?we:{default:()=>we}),Se,ce])}}}),{max:Xh,min:_I,floor:yI}=Math,pne={column:"columnWidth",row:"rowHeight"},Z_={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},kl=(e,t,n,a)=>{const[s,o,r]=[n[a],e[pne[a]],n[Z_[a]]];if(t>r){let i=0;if(r>=0){const c=s[r];i=c.offset+c.size}for(let c=r+1;c<=t;c++){const u=o(c);s[c]={offset:i,size:u},i+=u}n[Z_[a]]=t}return s[t]},bI=(e,t,n,a,s,o)=>{for(;n<=a;){const r=n+yI((a-n)/2),i=kl(e,r,t,o).offset;if(i===s)return r;i{const o=s==="column"?e.totalColumn:e.totalRow;let r=1;for(;n{const[s,o]=[t[a],t[Z_[a]]];return(o>0?s[o].offset:0)>=n?bI(e,t,0,o,n,a):vne(e,t,Xh(0,o),n,a)},wI=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:a})=>{let s=0;if(n>=e&&(n=e-1),n>=0){const i=a[n];s=i.offset+i.size}const r=(e-n-1)*t;return s+r},CI=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let s=0;if(a>e&&(a=e-1),a>=0){const i=t[a];s=i.offset+i.size}const r=(e-a-1)*n;return s+r},hne={column:CI,row:wI},AS=(e,t,n,a,s,o,r)=>{const[i,c]=[o==="row"?e.height:e.width,hne[o]],u=kl(e,t,s,o),d=c(e,s),p=Xh(0,_I(d-i,u.offset)),v=Xh(0,u.offset-i+r+u.size);switch(n===t0&&(a>=v-i&&a<=p+i?n=Ko:n=jr),n){case ip:return p;case cp:return v;case jr:return Math.round(v+(p-v)/2);case Ko:default:return a>=v&&a<=p?a:v>p||a{const a=kl(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=kl(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,s,o)=>AS(e,t,n,a,s,"column",o),getRowOffset:(e,t,n,a,s,o)=>AS(e,t,n,a,s,"row",o),getColumnStartIndexForOffset:(e,t,n)=>IS(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const s=kl(e,t,a,"column"),o=n+e.width;let r=s.offset+s.size,i=t;for(;iIS(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:s,height:o}=e,r=kl(e,t,a,"row"),i=n+o;let c=r.size+r.offset,u=t;for(;u{const n=({columnIndex:o,rowIndex:r},i)=>{var c,u;i=tn(i)?!0:i,gt(o)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,o-1)),gt(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),(c=e.exposed)==null||c.getItemStyleCache.value(-1,null,null),i&&((u=e.proxy)==null||u.$forceUpdate())},a=(o,r)=>{n({columnIndex:o},r)},s=(o,r)=>{n({rowIndex:o},r)};Object.assign(e.proxy,{resetAfterColumnIndex:a,resetAfterRowIndex:s,resetAfter:n})},initCache:({estimatedColumnWidth:e=B_,estimatedRowHeight:t=B_})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),gne=gI({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},a,s,o,r,i)=>{n=Number(n);const c=Math.max(0,e*t-n),u=Math.min(c,a*t),d=Math.max(0,a*t-n+i+t);switch(s==="smart"&&(o>=d-n&&o<=u+n?s=Ko:s=jr),s){case ip:return u;case cp:return d;case jr:{const p=Math.round(d+(u-d)/2);return pc+Math.floor(n/2)?c:p}case Ko:default:return o>=d&&o<=u?o:d>u||o{t=Number(t);const c=Math.max(0,n*e-t),u=Math.min(c,a*e),d=Math.max(0,a*e-t+i+e);switch(s===t0&&(o>=d-t&&o<=u+t?s=Ko:s=jr),s){case ip:return u;case cp:return d;case jr:{const p=Math.round(d+(u-d)/2);return pc+Math.floor(t/2)?c:p}case Ko:default:return o>=d&&o<=u?o:d>u||oMath.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},a,s)=>{const o=a*e,r=Math.ceil((n+s-o)/e);return Math.max(0,Math.min(t-1,a+r-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},a,s)=>{const o=a*e,r=Math.ceil((n+s-o)/e);return Math.max(0,Math.min(t-1,a+r-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),_ne="ElTableV2Grid",yne=e=>{const t=T(),n=T(),a=T(0),s=x(()=>{const{data:y,rowHeight:b,estimatedRowHeight:C}=e;if(!C)return y.length*b}),o=x(()=>{const{fixedData:y,rowHeight:b}=e;return((y==null?void 0:y.length)||0)*b}),r=x(()=>dh(e.headerHeight)),i=x(()=>{const{height:y}=e;return Math.max(0,y-f(r)-f(o))}),c=x(()=>f(r)+f(o)>0),u=({data:y,rowIndex:b})=>y[b][e.rowKey];function d({rowCacheStart:y,rowCacheEnd:b,rowVisibleStart:C,rowVisibleEnd:k}){var S;(S=e.onRowsRendered)==null||S.call(e,{rowCacheStart:y,rowCacheEnd:b,rowVisibleStart:C,rowVisibleEnd:k})}function p(y,b){var C;(C=n.value)==null||C.resetAfterRowIndex(y,b)}function v(y,b){const C=f(t),k=f(n);Ot(y)?(C==null||C.scrollToLeft(y.scrollLeft),a.value=y.scrollLeft,k==null||k.scrollTo(y)):(C==null||C.scrollToLeft(y),a.value=y,k==null||k.scrollTo({scrollLeft:y,scrollTop:b}))}function h(y){var b;(b=f(n))==null||b.scrollTo({scrollTop:y})}function m(y,b){var C;(C=f(n))==null||C.scrollToItem(y,1,b)}function g(){var y,b;(y=f(n))==null||y.$forceUpdate(),(b=f(t))==null||b.$forceUpdate()}return Te(()=>e.bodyWidth,()=>{var y;gt(e.estimatedRowHeight)&&((y=n.value)==null||y.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:g,fixedRowHeight:o,gridHeight:i,hasHeader:c,headerHeight:r,headerRef:t,totalHeight:s,itemKey:u,onItemRendered:d,resetAfterRowIndex:p,scrollTo:v,scrollToTop:h,scrollToRow:m,scrollLeft:a}},bne=le({name:_ne,props:fh,setup(e,{slots:t,expose:n}){const{ns:a}=Ze(Hb),{bodyRef:s,fixedRowHeight:o,gridHeight:r,hasHeader:i,headerRef:c,headerHeight:u,totalHeight:d,forceUpdate:p,itemKey:v,onItemRendered:h,resetAfterRowIndex:m,scrollTo:g,scrollToTop:y,scrollToRow:b,scrollLeft:C}=yne(e);Gt(pI,C),Sm(async()=>{var S;await it();const $=(S=s.value)==null?void 0:S.states.scrollTop;$&&y(Math.round($)+1)}),n({forceUpdate:p,totalHeight:d,scrollTo:g,scrollToTop:y,scrollToRow:b,resetAfterRowIndex:m});const k=()=>e.bodyWidth;return()=>{const{cache:S,columns:$,data:E,fixedData:R,useIsScrolling:A,scrollbarAlwaysOn:N,scrollbarEndGap:P,scrollbarStartGap:B,style:M,rowHeight:j,bodyWidth:F,estimatedRowHeight:q,headerWidth:L,height:U,width:O,getRowHeight:G,onScroll:ae}=e,Z=gt(q),te=Z?mne:gne,ie=f(u);return z("div",{role:"table",class:[a.e("table"),e.class],style:M},[z(te,{ref:s,data:E,useIsScrolling:A,itemKey:v,columnCache:0,columnWidth:Z?k:F,totalColumn:1,totalRow:E.length,rowCache:S,rowHeight:Z?G:j,width:O,height:f(r),class:a.e("body"),role:"rowgroup",scrollbarStartGap:B,scrollbarEndGap:P,scrollbarAlwaysOn:N,onScroll:ae,onItemRendered:h,perfMode:!1},{default:oe=>{var J;const ee=E[oe.rowIndex];return(J=t.row)==null?void 0:J.call(t,{...oe,columns:$,rowData:ee})}}),f(i)&&z(dne,{ref:c,class:a.e("header-wrapper"),columns:$,headerData:E,headerHeight:e.headerHeight,fixedHeaderData:R,rowWidth:L,rowHeight:j,width:O,height:Math.min(ie+f(o),U)},{dynamic:t.header,fixed:t.row})])}}});var jb=bne;function wne(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Un(e)}const Cne=(e,{slots:t})=>{const{mainTableRef:n,...a}=e;return z(jb,Kt({ref:n},a),wne(t)?t:{default:()=>[t]})};var kne=Cne;function Sne(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Un(e)}const Ene=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...a}=e;return z(jb,Kt({ref:n},a),Sne(t)?t:{default:()=>[t]})};var $ne=Ene;function xne(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Un(e)}const Tne=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...a}=e;return z(jb,Kt({ref:n},a),xne(t)?t:{default:()=>[t]})};var Ine=Tne;const Ane=e=>{const{isScrolling:t}=Ze(Hb),n=T(!1),a=T(),s=x(()=>gt(e.estimatedRowHeight)&&e.rowIndex>=0),o=(c=!1)=>{const u=f(a);if(!u)return;const{columns:d,onRowHeightChange:p,rowKey:v,rowIndex:h,style:m}=e,{height:g}=u.getBoundingClientRect();n.value=!0,it(()=>{if(c||g!==Number.parseInt(m.height)){const y=d[0],b=(y==null?void 0:y.placeholderSign)===vp;p==null||p({rowKey:v,height:g,rowIndex:h},y&&!b&&y.fixed)}})},r=x(()=>{const{rowData:c,rowIndex:u,rowKey:d,onRowHover:p}=e,v=e.rowEventHandlers||{},h={};return Object.entries(v).forEach(([m,g])=>{vt(g)&&(h[m]=y=>{g({event:y,rowData:c,rowIndex:u,rowKey:d})})}),p&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:m,hovered:g})=>{const y=h[m];h[m]=b=>{p({event:b,hovered:g,rowData:c,rowIndex:u,rowKey:d}),y==null||y(b)}}),h}),i=c=>{const{onRowExpand:u,rowData:d,rowIndex:p,rowKey:v}=e;u==null||u({expanded:c,rowData:d,rowIndex:p,rowKey:v})};return ft(()=>{f(s)&&o(!0)}),{isScrolling:t,measurable:s,measured:n,rowRef:a,eventHandlers:r,onExpand:i}},Nne="ElTableV2TableRow",Rne=le({name:Nne,props:_c,setup(e,{expose:t,slots:n,attrs:a}){const{eventHandlers:s,isScrolling:o,measurable:r,measured:i,rowRef:c,onExpand:u}=Ane(e);return t({onExpand:u}),()=>{const{columns:d,columnsStyles:p,expandColumnKey:v,depth:h,rowData:m,rowIndex:g,style:y}=e;let b=d.map((C,k)=>{const S=Ve(m.children)&&m.children.length>0&&C.key===v;return n.cell({column:C,columns:d,columnIndex:k,depth:h,style:p[C.key],rowData:m,rowIndex:g,isScrolling:f(o),expandIconProps:S?{rowData:m,rowIndex:g,onExpand:u}:void 0})});if(n.row&&(b=n.row({cells:b.map(C=>Ve(C)&&C.length===1?C[0]:C),style:y,columns:d,depth:h,rowData:m,rowIndex:g,isScrolling:f(o)})),f(r)){const{height:C,...k}=y||{},S=f(i);return z("div",Kt({ref:c,class:e.class,style:S?y:k,role:"row"},a,f(s)),[b])}return z("div",Kt(a,{ref:c,class:e.class,style:y,role:"row"},f(s)),[b])}}});var Pne=Rne;function Mne(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Un(e)}const Bne=(e,{slots:t})=>{const{columns:n,columnsStyles:a,depthMap:s,expandColumnKey:o,expandedRowKeys:r,estimatedRowHeight:i,hasFixedColumns:c,rowData:u,rowIndex:d,style:p,isScrolling:v,rowProps:h,rowClass:m,rowKey:g,rowEventHandlers:y,ns:b,onRowHovered:C,onRowExpanded:k}=e,S=Fc(m,{columns:n,rowData:u,rowIndex:d},""),$=Fc(h,{columns:n,rowData:u,rowIndex:d}),E=u[g],R=s[E]||0,A=!!o,N=d<0,P=[b.e("row"),S,{[b.e(`row-depth-${R}`)]:A&&d>=0,[b.is("expanded")]:A&&r.includes(E),[b.is("fixed")]:!R&&N,[b.is("customized")]:!!t.row}],B=c?C:void 0,M={...$,columns:n,columnsStyles:a,class:P,depth:R,expandColumnKey:o,estimatedRowHeight:N?void 0:i,isScrolling:v,rowIndex:d,rowData:u,rowKey:E,rowEventHandlers:y,style:p};return z(Pne,Kt(M,{onRowExpand:k,onMouseenter:q=>{B==null||B({hovered:!0,rowKey:E,event:q,rowData:u,rowIndex:d})},onMouseleave:q=>{B==null||B({hovered:!1,rowKey:E,event:q,rowData:u,rowIndex:d})},rowkey:E}),Mne(t)?t:{default:()=>[t]})};var Lne=Bne;const Wb=(e,{slots:t})=>{var n;const{cellData:a,style:s}=e,o=((n=a==null?void 0:a.toString)==null?void 0:n.call(a))||"",r=be(t,"default",e,()=>[o]);return z("div",{class:e.class,title:o,style:s},[r])};Wb.displayName="ElTableV2Cell";Wb.inheritAttrs=!1;var One=Wb;const Dne=e=>{const{expanded:t,expandable:n,onExpand:a,style:s,size:o}=e,r={onClick:n?()=>a(!t):void 0,class:e.class};return z(ct,Kt(r,{size:o,style:s}),{default:()=>[z(Ds,null,null)]})};var Vne=Dne;const kI=({columns:e,column:t,columnIndex:n,depth:a,expandIconProps:s,isScrolling:o,rowData:r,rowIndex:i,style:c,expandedRowKeys:u,ns:d,cellProps:p,expandColumnKey:v,indentSize:h,iconSize:m,rowKey:g},{slots:y})=>{const b=gi(c);if(t.placeholderSign===vp)return z("div",{class:d.em("row-cell","placeholder"),style:b},null);const{cellRenderer:C,dataKey:k,dataGetter:S}=t,$=vt(S)?S({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i}):ya(r,k??""),E=Fc(p,{cellData:$,columns:e,column:t,columnIndex:n,rowIndex:i,rowData:r}),R={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:$,isScrolling:o,rowData:r,rowIndex:i},A=fI(C),N=A?A(R):be(y,"default",R,()=>[z(One,R,null)]),P=[d.e("row-cell"),t.class,t.align===pp.CENTER&&d.is("align-center"),t.align===pp.RIGHT&&d.is("align-right")],B=i>=0&&v&&t.key===v,M=i>=0&&u.includes(r[g]);let j;const F=`margin-inline-start: ${a*h}px;`;return B&&(Ot(s)?j=z(Vne,Kt(s,{class:[d.e("expand-icon"),d.is("expanded",M)],size:m,expanded:M,style:F,expandable:!0}),null):j=z("div",{style:[F,`width: ${m}px; height: ${m}px;`].join(" ")},null)),z("div",Kt({class:P,style:b},E,{role:"cell"}),[j,N])};kI.inheritAttrs=!1;var NS=kI;const Fne=Ue({class:String,columns:Vp,columnsStyles:{type:ge(Object),required:!0},headerIndex:Number,style:{type:ge(Object)}}),Une=le({name:"ElTableV2HeaderRow",props:Fne,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:a,headerIndex:s,style:o}=e;let r=n.map((i,c)=>t.cell({columns:n,column:i,columnIndex:c,headerIndex:s,style:a[i.key]}));return t.header&&(r=t.header({cells:r.map(i=>Ve(i)&&i.length===1?i[0]:i),columns:n,headerIndex:s})),z("div",{class:e.class,style:o,role:"row"},[r])}}});var zne=Une;function Hne(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Un(e)}const Kne=({columns:e,columnsStyles:t,headerIndex:n,style:a,headerClass:s,headerProps:o,ns:r},{slots:i})=>{const c={columns:e,headerIndex:n},u=[r.e("header-row"),Fc(s,c,""),{[r.is("customized")]:!!i.header}],d={...Fc(o,c),columnsStyles:t,class:u,columns:e,headerIndex:n,style:a};return z(zne,d,Hne(i)?i:{default:()=>[i]})};var qne=Kne;const Gb=(e,{slots:t})=>be(t,"default",e,()=>{var n,a;return[z("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(a=e.column)==null?void 0:a.title])]});Gb.displayName="ElTableV2HeaderCell";Gb.inheritAttrs=!1;var jne=Gb;const Wne=e=>{const{sortOrder:t}=e;return z(ct,{size:14,class:e.class},{default:()=>[t===fp.ASC?z(rV,null,null):z(sV,null,null)]})};var Gne=Wne;const Yne=(e,{slots:t})=>{const{column:n,ns:a,style:s,onColumnSorted:o}=e,r=gi(s);if(n.placeholderSign===vp)return z("div",{class:a.em("header-row-cell","placeholder"),style:r},null);const{headerCellRenderer:i,headerClass:c,sortable:u}=n,d={...e,class:a.e("header-cell-text")},p=fI(i),v=p?p(d):be(t,"default",d,()=>[z(jne,d,null)]),{sortBy:h,sortState:m,headerCellProps:g}=e;let y,b;if(m){const S=m[n.key];y=!!J_[S],b=y?S:fp.ASC}else y=n.key===h.key,b=y?h.order:fp.ASC;const C=[a.e("header-cell"),Fc(c,e,""),n.align===pp.CENTER&&a.is("align-center"),n.align===pp.RIGHT&&a.is("align-right"),u&&a.is("sortable")],k={...Fc(g,e),onClick:n.sortable?o:void 0,class:C,style:r,"data-key":n.key};return z("div",Kt(k,{role:"columnheader"}),[v,u&&z(Gne,{class:[a.e("sort-icon"),y&&a.is("sorting")],sortOrder:b},null)])};var RS=Yne;const SI=(e,{slots:t})=>{var n;return z("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};SI.displayName="ElTableV2Footer";var Xne=SI;const EI=(e,{slots:t})=>{const n=be(t,"default",{},()=>[z(y8,null,null)]);return z("div",{class:e.class,style:e.style},[n])};EI.displayName="ElTableV2Empty";var Qne=EI;const $I=(e,{slots:t})=>{var n;return z("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};$I.displayName="ElTableV2Overlay";var Jne=$I;function Xd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Un(e)}const Zne="ElTableV2",eae=le({name:Zne,props:ine,setup(e,{slots:t,expose:n}){const a=Le("table-v2"),{columnsStyles:s,fixedColumnsOnLeft:o,fixedColumnsOnRight:r,mainColumns:i,mainTableHeight:c,fixedTableHeight:u,leftTableWidth:d,rightTableWidth:p,data:v,depthMap:h,expandedRowKeys:m,hasFixedColumns:g,mainTableRef:y,leftTableRef:b,rightTableRef:C,isDynamic:k,isResetting:S,isScrolling:$,bodyWidth:E,emptyStyle:R,rootStyle:A,footerHeight:N,showEmpty:P,scrollTo:B,scrollToLeft:M,scrollToTop:j,scrollToRow:F,getRowHeight:q,onColumnSorted:L,onRowHeightChange:U,onRowHovered:O,onRowExpanded:G,onRowsRendered:ae,onScroll:Z,onVerticalScroll:te}=rne(e);return n({scrollTo:B,scrollToLeft:M,scrollToTop:j,scrollToRow:F}),Gt(Hb,{ns:a,isResetting:S,isScrolling:$}),()=>{const{cache:ie,cellProps:oe,estimatedRowHeight:J,expandColumnKey:ee,fixedData:Q,headerHeight:H,headerClass:X,headerProps:he,headerCellProps:D,sortBy:Y,sortState:ne,rowHeight:re,rowClass:se,rowEventHandlers:ke,rowKey:ye,rowProps:Se,scrollbarAlwaysOn:ce,indentSize:we,iconSize:Ae,useIsScrolling:Fe,vScrollbarSize:xe,width:me}=e,Me=f(v),at={cache:ie,class:a.e("main"),columns:f(i),data:Me,fixedData:Q,estimatedRowHeight:J,bodyWidth:f(E),headerHeight:H,headerWidth:f(E),height:f(c),mainTableRef:y,rowKey:ye,rowHeight:re,scrollbarAlwaysOn:ce,scrollbarStartGap:2,scrollbarEndGap:xe,useIsScrolling:Fe,width:me,getRowHeight:q,onRowsRendered:ae,onScroll:Z},Qe=f(d),It=f(u),je={cache:ie,class:a.e("left"),columns:f(o),data:Me,fixedData:Q,estimatedRowHeight:J,leftTableRef:b,rowHeight:re,bodyWidth:Qe,headerWidth:Qe,headerHeight:H,height:It,rowKey:ye,scrollbarAlwaysOn:ce,scrollbarStartGap:2,scrollbarEndGap:xe,useIsScrolling:Fe,width:Qe,getRowHeight:q,onScroll:te},Vt=f(p),kt={cache:ie,class:a.e("right"),columns:f(r),data:Me,fixedData:Q,estimatedRowHeight:J,rightTableRef:C,rowHeight:re,bodyWidth:Vt,headerWidth:Vt,headerHeight:H,height:It,rowKey:ye,scrollbarAlwaysOn:ce,scrollbarStartGap:2,scrollbarEndGap:xe,width:Vt,style:`--${f(a.namespace)}-table-scrollbar-size: ${xe}px`,useIsScrolling:Fe,getRowHeight:q,onScroll:te},Mt=f(s),Ht={ns:a,depthMap:f(h),columnsStyles:Mt,expandColumnKey:ee,expandedRowKeys:f(m),estimatedRowHeight:J,hasFixedColumns:f(g),rowProps:Se,rowClass:se,rowKey:ye,rowEventHandlers:ke,onRowHovered:O,onRowExpanded:G,onRowHeightChange:U},Ee={cellProps:oe,expandColumnKey:ee,indentSize:we,iconSize:Ae,rowKey:ye,expandedRowKeys:f(m),ns:a},We={ns:a,headerClass:X,headerProps:he,columnsStyles:Mt},pe={ns:a,sortBy:Y,sortState:ne,headerCellProps:D,onColumnSorted:L},Oe={row:vn=>z(Lne,Kt(vn,Ht),{row:t.row,cell:_n=>{let Ln;return t.cell?z(NS,Kt(_n,Ee,{style:Mt[_n.column.key]}),Xd(Ln=t.cell(_n))?Ln:{default:()=>[Ln]}):z(NS,Kt(_n,Ee,{style:Mt[_n.column.key]}),null)}}),header:vn=>z(qne,Kt(vn,We),{header:t.header,cell:_n=>{let Ln;return t["header-cell"]?z(RS,Kt(_n,pe,{style:Mt[_n.column.key]}),Xd(Ln=t["header-cell"](_n))?Ln:{default:()=>[Ln]}):z(RS,Kt(_n,pe,{style:Mt[_n.column.key]}),null)}})},ot=[e.class,a.b(),a.e("root"),{[a.is("dynamic")]:f(k)}],St={class:a.e("footer"),style:f(N)};return z("div",{class:ot,style:f(A)},[z(kne,at,Xd(Oe)?Oe:{default:()=>[Oe]}),z($ne,je,Xd(Oe)?Oe:{default:()=>[Oe]}),z(Ine,kt,Xd(Oe)?Oe:{default:()=>[Oe]}),t.footer&&z(Xne,St,{default:t.footer}),f(P)&&z(Qne,{class:a.e("empty"),style:f(R)},{default:t.empty}),t.overlay&&z(Jne,{class:a.e("overlay")},{default:t.overlay})])}}});var tae=eae;const nae=Ue({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:ge(Function)}}),aae=e=>{const t=T(),n=T(0),a=T(0);let s;return ft(()=>{s=Xn(t,([o])=>{const{width:r,height:i}=o.contentRect,{paddingLeft:c,paddingRight:u,paddingTop:d,paddingBottom:p}=getComputedStyle(o.target),v=Number.parseInt(c)||0,h=Number.parseInt(u)||0,m=Number.parseInt(d)||0,g=Number.parseInt(p)||0;n.value=r-v-h,a.value=i-m-g}).stop}),on(()=>{s==null||s()}),Te([n,a],([o,r])=>{var i;(i=e.onResize)==null||i.call(e,{width:o,height:r})}),{sizer:t,width:n,height:a}},sae=le({name:"ElAutoResizer",props:nae,setup(e,{slots:t}){const n=Le("auto-resizer"),{height:a,width:s,sizer:o}=aae(e),r={width:"100%",height:"100%"};return()=>{var i;return z("div",{ref:o,class:n.b(),style:r},[(i=t.default)==null?void 0:i.call(t,{height:a.value,width:s.value})])}}});var oae=sae;const rae=Rt(tae),lae=Rt(oae),n0=Symbol("tabsRootContextKey"),iae=Ue({tabs:{type:ge(Array),default:()=>Zn([])},tabRefs:{type:ge(Object),default:()=>Zn({})}}),xI="ElTabBar",cae=le({name:xI}),uae=le({...cae,props:iae,setup(e,{expose:t}){const n=e,a=Ze(n0);a||Ca(xI,"");const s=Le("tabs"),o=T(),r=T(),i=()=>{let v=0,h=0;const m=["top","bottom"].includes(a.props.tabPosition)?"width":"height",g=m==="width"?"x":"y",y=g==="x"?"left":"top";return n.tabs.every(b=>{if(tn(b.paneName))return!1;const C=n.tabRefs[b.paneName];if(!C)return!1;if(!b.active)return!0;v=C[`offset${vi(y)}`],h=C[`client${vi(m)}`];const k=window.getComputedStyle(C);return m==="width"&&(h-=Number.parseFloat(k.paddingLeft)+Number.parseFloat(k.paddingRight),v+=Number.parseFloat(k.paddingLeft)),!1}),{[m]:`${h}px`,transform:`translate${vi(g)}(${v}px)`}},c=()=>r.value=i(),u=[],d=()=>{u.forEach(v=>v.stop()),u.length=0,Object.values(n.tabRefs).forEach(v=>{u.push(Xn(v,c))})};Te(()=>n.tabs,async()=>{await it(),c(),d()},{immediate:!0});const p=Xn(o,()=>c());return on(()=>{u.forEach(v=>v.stop()),u.length=0,p.stop()}),t({ref:o,update:c}),(v,h)=>(_(),w("div",{ref_key:"barRef",ref:o,class:V([f(s).e("active-bar"),f(s).is(f(a).props.tabPosition)]),style:Je(r.value)},null,6))}});var dae=ze(uae,[["__file","tab-bar.vue"]]);const fae=Ue({panes:{type:ge(Array),default:()=>Zn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),pae={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},PS="ElTabNav",vae=le({name:PS,props:fae,emits:pae,setup(e,{expose:t,emit:n}){const a=Ze(n0);a||Ca(PS,"");const s=Le("tabs"),o=S7(),r=D7(),i=T(),c=T(),u=T(),d=T({}),p=T(),v=T(!1),h=T(0),m=T(!1),g=T(!0),y=Fn(),b=x(()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height"),C=x(()=>({transform:`translate${b.value==="width"?"X":"Y"}(-${h.value}px)`})),k=()=>{if(!i.value)return;const M=i.value[`offset${vi(b.value)}`],j=h.value;if(!j)return;const F=j>M?j-M:0;h.value=F},S=()=>{if(!i.value||!c.value)return;const M=c.value[`offset${vi(b.value)}`],j=i.value[`offset${vi(b.value)}`],F=h.value;if(M-F<=j)return;const q=M-F>j*2?F+j:M-j;h.value=q},$=async()=>{const M=c.value;if(!v.value||!u.value||!i.value||!M)return;await it();const j=d.value[e.currentName];if(!j)return;const F=i.value,q=["top","bottom"].includes(a.props.tabPosition),L=j.getBoundingClientRect(),U=F.getBoundingClientRect(),O=q?M.offsetWidth-U.width:M.offsetHeight-U.height,G=h.value;let ae=G;q?(L.leftU.right&&(ae=G+L.right-U.right)):(L.topU.bottom&&(ae=G+(L.bottom-U.bottom))),ae=Math.max(ae,0),h.value=Math.min(ae,O)},E=()=>{var M;if(!c.value||!i.value)return;e.stretch&&((M=p.value)==null||M.update());const j=c.value[`offset${vi(b.value)}`],F=i.value[`offset${vi(b.value)}`],q=h.value;F0&&(h.value=0))},R=M=>{let j=0;switch(M.code){case tt.left:case tt.up:j=-1;break;case tt.right:case tt.down:j=1;break;default:return}const F=Array.from(M.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let L=F.indexOf(M.target)+j;L<0?L=F.length-1:L>=F.length&&(L=0),F[L].focus({preventScroll:!0}),F[L].click(),A()},A=()=>{g.value&&(m.value=!0)},N=()=>m.value=!1,P=(M,j)=>{d.value[j]=M},B=async()=>{await it();const M=d.value[e.currentName];M==null||M.focus({preventScroll:!0})};return Te(o,M=>{M==="hidden"?g.value=!1:M==="visible"&&setTimeout(()=>g.value=!0,50)}),Te(r,M=>{M?setTimeout(()=>g.value=!0,50):g.value=!1}),Xn(u,E),ft(()=>setTimeout(()=>$(),0)),$r(()=>E()),t({scrollToActiveTab:$,removeFocus:N,focusActiveTab:B,tabListRef:c,tabBarRef:p,scheduleRender:()=>Xv(y)}),()=>{const M=v.value?[z("span",{class:[s.e("nav-prev"),s.is("disabled",!v.value.prev)],onClick:k},[z(ct,null,{default:()=>[z(Bl,null,null)]})]),z("span",{class:[s.e("nav-next"),s.is("disabled",!v.value.next)],onClick:S},[z(ct,null,{default:()=>[z(Ds,null,null)]})])]:null,j=e.panes.map((F,q)=>{var L,U,O,G;const ae=F.uid,Z=F.props.disabled,te=(U=(L=F.props.name)!=null?L:F.index)!=null?U:`${q}`,ie=!Z&&(F.isClosable||e.editable);F.index=`${q}`;const oe=ie?z(ct,{class:"is-icon-close",onClick:Q=>n("tabRemove",F,Q)},{default:()=>[z(nr,null,null)]}):null,J=((G=(O=F.slots).label)==null?void 0:G.call(O))||F.props.label,ee=!Z&&F.active?0:-1;return z("div",{ref:Q=>P(Q,te),class:[s.e("item"),s.is(a.props.tabPosition),s.is("active",F.active),s.is("disabled",Z),s.is("closable",ie),s.is("focus",m.value)],id:`tab-${te}`,key:`tab-${ae}`,"aria-controls":`pane-${te}`,role:"tab","aria-selected":F.active,tabindex:ee,onFocus:()=>A(),onBlur:()=>N(),onClick:Q=>{N(),n("tabClick",F,te,Q)},onKeydown:Q=>{ie&&(Q.code===tt.delete||Q.code===tt.backspace)&&n("tabRemove",F,Q)}},[J,oe])});return y.value,z("div",{ref:u,class:[s.e("nav-wrap"),s.is("scrollable",!!v.value),s.is(a.props.tabPosition)]},[M,z("div",{class:s.e("nav-scroll"),ref:i},[e.panes.length>0?z("div",{class:[s.e("nav"),s.is(a.props.tabPosition),s.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:c,style:C.value,role:"tablist",onKeydown:R},[e.type?null:z(dae,{ref:p,tabs:[...e.panes],tabRefs:d.value},null),j]):null])])}}}),hae=Ue({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:ge(Function),default:()=>!0},stretch:Boolean}),pg=e=>ut(e)||gt(e),mae={[Et]:e=>pg(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>pg(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>pg(e),tabAdd:()=>!0},gae=le({name:"ElTabs",props:hae,emits:mae,setup(e,{emit:t,slots:n,expose:a}){var s;const o=Le("tabs"),r=x(()=>["left","right"].includes(e.tabPosition)),{children:i,addChild:c,removeChild:u,ChildrenSorter:d}=Ym(qt(),"ElTabPane"),p=T(),v=T((s=e.modelValue)!=null?s:"0"),h=async(C,k=!1)=>{var S,$,E,R;if(!(v.value===C||tn(C)))try{let A;if(e.beforeLeave){const N=e.beforeLeave(C,v.value);A=N instanceof Promise?await N:N}else A=!0;if(A!==!1){const N=(S=i.value.find(P=>P.paneName===v.value))==null?void 0:S.isFocusInsidePane();v.value=C,k&&(t(Et,C),t("tabChange",C)),(E=($=p.value)==null?void 0:$.removeFocus)==null||E.call($),N&&((R=p.value)==null||R.focusActiveTab())}}catch{}},m=(C,k,S)=>{C.props.disabled||(t("tabClick",C,S),h(k,!0))},g=(C,k)=>{C.props.disabled||tn(C.props.name)||(k.stopPropagation(),t("edit",C.props.name,"remove"),t("tabRemove",C.props.name))},y=()=>{t("edit",void 0,"add"),t("tabAdd")},b=C=>{const k=C.el.firstChild,S=["bottom","right"].includes(e.tabPosition)?C.children[0].el:C.children[1].el;k!==S&&k.before(S)};return Te(()=>e.modelValue,C=>h(C)),Te(v,async()=>{var C;await it(),(C=p.value)==null||C.scrollToActiveTab()}),Gt(n0,{props:e,currentName:v,registerPane:c,unregisterPane:u,nav$:p}),a({currentName:v,get tabNavRef(){return z4(p.value,["scheduleRender"])}}),()=>{const C=n["add-icon"],k=e.editable||e.addable?z("div",{class:[o.e("new-tab"),r.value&&o.e("new-tab-vertical")],tabindex:"0",onClick:y,onKeydown:R=>{[tt.enter,tt.numpadEnter].includes(R.code)&&y()}},[C?be(n,"add-icon"):z(ct,{class:o.is("icon-plus")},{default:()=>[z(dT,null,null)]})]):null,S=()=>z(vae,{ref:p,currentName:v.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:m,onTabRemove:g},null),$=z("div",{class:[o.e("header"),r.value&&o.e("header-vertical"),o.is(e.tabPosition)]},[z(d,null,{default:S,$stable:!0}),k]),E=z("div",{class:o.e("content")},[be(n,"default")]);return z("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}],onVnodeMounted:b,onVnodeUpdated:b},[E,$])}}});var _ae=gae;const yae=Ue({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),TI="ElTabPane",bae=le({name:TI}),wae=le({...bae,props:yae,setup(e){const t=e,n=qt(),a=Ta(),s=Ze(n0);s||Ca(TI,"usage: ");const o=Le("tab-pane"),r=T(),i=T(),c=x(()=>t.closable||s.props.closable),u=Rh(()=>{var g;return s.currentName.value===((g=t.name)!=null?g:i.value)}),d=T(u.value),p=x(()=>{var g;return(g=t.name)!=null?g:i.value}),v=Rh(()=>!t.lazy||d.value||u.value),h=()=>{var g;return(g=r.value)==null?void 0:g.contains(document.activeElement)};Te(u,g=>{g&&(d.value=!0)});const m=At({uid:n.uid,getVnode:()=>n.vnode,slots:a,props:t,paneName:p,active:u,index:i,isClosable:c,isFocusInsidePane:h});return s.registerPane(m),on(()=>{s.unregisterPane(m)}),fy(()=>{var g;a.label&&((g=s.nav$.value)==null||g.scheduleRender())}),(g,y)=>f(v)?et((_(),w("div",{key:0,id:`pane-${f(p)}`,ref_key:"paneRef",ref:r,class:V(f(o).b()),role:"tabpanel","aria-hidden":!f(u),"aria-labelledby":`tab-${f(p)}`},[be(g.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[fn,f(u)]]):K("v-if",!0)}});var II=ze(wae,[["__file","tab-pane.vue"]]);const Cae=Rt(_ae,{TabPane:II}),kae=ea(II),Sae=Ue({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:ol,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),Eae=le({name:"ElText"}),$ae=le({...Eae,props:Sae,setup(e){const t=e,n=T(),a=xa(),s=Le("text"),o=x(()=>[s.b(),s.m(t.type),s.m(a.value),s.is("truncated",t.truncated),s.is("line-clamp",!tn(t.lineClamp))]),r=()=>{var i,c,u,d,p,v,h;if(Fl().title)return;let g=!1;const y=((i=n.value)==null?void 0:i.textContent)||"";if(t.truncated){const b=(c=n.value)==null?void 0:c.offsetWidth,C=(u=n.value)==null?void 0:u.scrollWidth;b&&C&&C>b&&(g=!0)}else if(!tn(t.lineClamp)){const b=(d=n.value)==null?void 0:d.offsetHeight,C=(p=n.value)==null?void 0:p.scrollHeight;b&&C&&C>b&&(g=!0)}g?(v=n.value)==null||v.setAttribute("title",y):(h=n.value)==null||h.removeAttribute("title")};return ft(r),$r(r),(i,c)=>(_(),ue(Ft(i.tag),{ref_key:"textRef",ref:n,class:V(f(o)),style:Je({"-webkit-line-clamp":i.lineClamp})},{default:W(()=>[be(i.$slots,"default")]),_:3},8,["class","style"]))}});var xae=ze($ae,[["__file","text.vue"]]);const Yb=Rt(xae),Tae=Ue({format:{type:String,default:"HH:mm"},modelValue:{type:ge(String)},disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:ge(String),default:"light"},clearable:{type:Boolean,default:!0},size:Ma,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:{type:ge(String)},maxTime:{type:ge(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:ge([String,Object]),default:()=>uT},clearIcon:{type:ge([String,Object]),default:()=>Hl},...Yc}),xl=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const a=Number.parseInt(t[1],10),s=e.toUpperCase();return s.includes("AM")&&n===12?n=0:s.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:a}}return null},vg=(e,t)=>{const n=xl(e);if(!n)return-1;const a=xl(t);if(!a)return-1;const s=n.minutes+n.hours*60,o=a.minutes+a.hours*60;return s===o?0:s>o?1:-1},MS=e=>`${e}`.padStart(2,"0"),gu=e=>`${MS(e.hours)}:${MS(e.minutes)}`,Iae=(e,t)=>{const n=xl(e);if(!n)return"";const a=xl(t);if(!a)return"";const s={hours:n.hours,minutes:n.minutes};return s.minutes+=a.minutes,s.hours+=a.hours,s.hours+=Math.floor(s.minutes/60),s.minutes=s.minutes%60,gu(s)},Aae=le({name:"ElTimeSelect"}),Nae=le({...Aae,props:Tae,emits:[Xt,"blur","focus","clear",Et],setup(e,{expose:t}){const n=e;Bt.extend(sb);const{Option:a}=Vc,s=Le("input"),o=T(),r=Xa(),{lang:i}=rn(),c=x(()=>n.modelValue),u=x(()=>{const b=xl(n.start);return b?gu(b):null}),d=x(()=>{const b=xl(n.end);return b?gu(b):null}),p=x(()=>{const b=xl(n.step);return b?gu(b):null}),v=x(()=>{const b=xl(n.minTime||"");return b?gu(b):null}),h=x(()=>{const b=xl(n.maxTime||"");return b?gu(b):null}),m=x(()=>{var b;const C=[],k=(S,$)=>{C.push({value:S,disabled:vg($,v.value||"-1:-1")<=0||vg($,h.value||"100:100")>=0})};if(n.start&&n.end&&n.step){let S=u.value,$;for(;S&&d.value&&vg(S,d.value)<=0;)$=Bt(S,"HH:mm").locale(i.value).format(n.format),k($,S),S=Iae(S,p.value);if(n.includeEndTime&&d.value&&((b=C[C.length-1])==null?void 0:b.value)!==d.value){const E=Bt(d.value,"HH:mm").locale(i.value).format(n.format);k(E,d.value)}}return C});return t({blur:()=>{var b,C;(C=(b=o.value)==null?void 0:b.blur)==null||C.call(b)},focus:()=>{var b,C;(C=(b=o.value)==null?void 0:b.focus)==null||C.call(b)}}),(b,C)=>(_(),ue(f(Vc),{ref_key:"select",ref:o,"model-value":f(c),disabled:f(r),clearable:b.clearable,"clear-icon":b.clearIcon,size:b.size,effect:b.effect,placeholder:b.placeholder,"default-first-option":"",filterable:b.editable,"empty-values":b.emptyValues,"value-on-clear":b.valueOnClear,"onUpdate:modelValue":k=>b.$emit(f(Et),k),onChange:k=>b.$emit(f(Xt),k),onBlur:k=>b.$emit("blur",k),onFocus:k=>b.$emit("focus",k),onClear:()=>b.$emit("clear")},{prefix:W(()=>[b.prefixIcon?(_(),ue(f(ct),{key:0,class:V(f(s).e("prefix-icon"))},{default:W(()=>[(_(),ue(Ft(b.prefixIcon)))]),_:1},8,["class"])):K("v-if",!0)]),default:W(()=>[(_(!0),w(_e,null,Re(f(m),k=>(_(),ue(f(a),{key:k.value,label:k.value,value:k.value,disabled:k.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","onUpdate:modelValue","onChange","onBlur","onFocus","onClear"]))}});var Rae=ze(Nae,[["__file","time-select.vue"]]);const Pae=Rt(Rae),Mae="timeline",Bae=le({name:"ElTimeline",setup(e,{slots:t}){const n=Le("timeline");return Gt(Mae,t),()=>yt("ul",{class:[n.b()]},[be(t,"default")])}}),Lae=Ue({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:wn},hollow:Boolean}),Oae=le({name:"ElTimelineItem"}),Dae=le({...Oae,props:Lae,setup(e){const t=e,n=Le("timeline-item"),a=x(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(s,o)=>(_(),w("li",{class:V([f(n).b(),{[f(n).e("center")]:s.center}])},[l("div",{class:V(f(n).e("tail"))},null,2),s.$slots.dot?K("v-if",!0):(_(),w("div",{key:0,class:V(f(a)),style:Je({backgroundColor:s.color})},[s.icon?(_(),ue(f(ct),{key:0,class:V(f(n).e("icon"))},{default:W(()=>[(_(),ue(Ft(s.icon)))]),_:1},8,["class"])):K("v-if",!0)],6)),s.$slots.dot?(_(),w("div",{key:1,class:V(f(n).e("dot"))},[be(s.$slots,"dot")],2)):K("v-if",!0),l("div",{class:V(f(n).e("wrapper"))},[!s.hideTimestamp&&s.placement==="top"?(_(),w("div",{key:0,class:V([f(n).e("timestamp"),f(n).is("top")])},I(s.timestamp),3)):K("v-if",!0),l("div",{class:V(f(n).e("content"))},[be(s.$slots,"default")],2),!s.hideTimestamp&&s.placement==="bottom"?(_(),w("div",{key:1,class:V([f(n).e("timestamp"),f(n).is("bottom")])},I(s.timestamp),3)):K("v-if",!0)],2)],2))}});var AI=ze(Dae,[["__file","timeline-item.vue"]]);const Vae=Rt(Bae,{TimelineItem:AI}),Fae=ea(AI),NI=Ue({nowrap:Boolean});var RI=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(RI||{});const Uae=Object.values(RI),Xb=Ue({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:ge(Object),default:null}}),zae=Ue({side:{type:ge(String),values:Uae,required:!0}}),Hae=["absolute","fixed"],Kae=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],Qb=Ue({arrowPadding:{type:ge(Number),default:5},effect:{type:ge(String),default:"light"},contentClass:String,placement:{type:ge(String),values:Kae,default:"bottom"},reference:{type:ge(Object),default:null},offset:{type:Number,default:8},strategy:{type:ge(String),values:Hae,default:"absolute"},showArrow:Boolean,...Ts(["ariaLabel"])}),Jb=Ue({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:ge(Function)},"onUpdate:open":{type:ge(Function)}}),uu={type:ge(Function)},Zb=Ue({onBlur:uu,onClick:uu,onFocus:uu,onMouseDown:uu,onMouseEnter:uu,onMouseLeave:uu}),qae=Ue({...Jb,...Xb,...Zb,...Qb,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:ge(Object),default:null},teleported:Boolean,to:{type:ge([String,Object]),default:"body"}}),a0=Symbol("tooltipV2"),PI=Symbol("tooltipV2Content"),hg="tooltip_v2.open",jae=le({name:"ElTooltipV2Root"}),Wae=le({...jae,props:Jb,setup(e,{expose:t}){const n=e,a=T(n.defaultOpen),s=T(null),o=x({get:()=>mo(n.open)?a.value:n.open,set:y=>{var b;a.value=y,(b=n["onUpdate:open"])==null||b.call(n,y)}}),r=x(()=>gt(n.delayDuration)&&n.delayDuration>0),{start:i,stop:c}=Lc(()=>{o.value=!0},x(()=>n.delayDuration),{immediate:!1}),u=Le("tooltip-v2"),d=vs(),p=()=>{c(),o.value=!0},v=()=>{f(r)?i():p()},h=p,m=()=>{c(),o.value=!1};return Te(o,y=>{var b;y&&(document.dispatchEvent(new CustomEvent(hg)),h()),(b=n.onOpenChange)==null||b.call(n,y)}),ft(()=>{document.addEventListener(hg,m)}),on(()=>{c(),document.removeEventListener(hg,m)}),Gt(a0,{contentId:d,triggerRef:s,ns:u,onClose:m,onDelayOpen:v,onOpen:h}),t({onOpen:h,onClose:m}),(y,b)=>be(y.$slots,"default",{open:f(o)})}});var Gae=ze(Wae,[["__file","root.vue"]]);const Yae=le({name:"ElTooltipV2Arrow"}),Xae=le({...Yae,props:{...Xb,...zae},setup(e){const t=e,{ns:n}=Ze(a0),{arrowRef:a}=Ze(PI),s=x(()=>{const{style:o,width:r,height:i}=t,c=n.namespace.value;return{[`--${c}-tooltip-v2-arrow-width`]:`${r}px`,[`--${c}-tooltip-v2-arrow-height`]:`${i}px`,[`--${c}-tooltip-v2-arrow-border-width`]:`${r/2}px`,[`--${c}-tooltip-v2-arrow-cover-width`]:r/2-1,...o||{}}});return(o,r)=>(_(),w("span",{ref_key:"arrowRef",ref:a,style:Je(f(s)),class:V(f(n).e("arrow"))},null,6))}});var BS=ze(Xae,[["__file","arrow.vue"]]);const td=Math.min,Tc=Math.max,Qh=Math.round,Av=Math.floor,Qr=e=>({x:e,y:e}),Qae={left:"right",right:"left",bottom:"top",top:"bottom"};function e1(e,t,n){return Tc(e,td(t,n))}function Fp(e,t){return typeof e=="function"?e(t):e}function Uc(e){return e.split("-")[0]}function Up(e){return e.split("-")[1]}function MI(e){return e==="x"?"y":"x"}function e2(e){return e==="y"?"height":"width"}function _i(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function t2(e){return MI(_i(e))}function Jae(e,t,n){n===void 0&&(n=!1);const a=Up(e),s=t2(e),o=e2(s);let r=s==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(r=Jh(r)),[r,Jh(r)]}function Zae(e){const t=Jh(e);return[t1(e),t,t1(t)]}function t1(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const LS=["left","right"],OS=["right","left"],ese=["top","bottom"],tse=["bottom","top"];function nse(e,t,n){switch(e){case"top":case"bottom":return n?t?OS:LS:t?LS:OS;case"left":case"right":return t?ese:tse;default:return[]}}function ase(e,t,n,a){const s=Up(e);let o=nse(Uc(e),n==="start",a);return s&&(o=o.map(r=>r+"-"+s),t&&(o=o.concat(o.map(t1)))),o}function Jh(e){const t=Uc(e);return Qae[t]+e.slice(t.length)}function sse(e){return{top:0,right:0,bottom:0,left:0,...e}}function BI(e){return typeof e!="number"?sse(e):{top:e,right:e,bottom:e,left:e}}function Zh(e){const{x:t,y:n,width:a,height:s}=e;return{width:a,height:s,top:n,left:t,right:t+a,bottom:n+s,x:t,y:n}}function DS(e,t,n){let{reference:a,floating:s}=e;const o=_i(t),r=t2(t),i=e2(r),c=Uc(t),u=o==="y",d=a.x+a.width/2-s.width/2,p=a.y+a.height/2-s.height/2,v=a[i]/2-s[i]/2;let h;switch(c){case"top":h={x:d,y:a.y-s.height};break;case"bottom":h={x:d,y:a.y+a.height};break;case"right":h={x:a.x+a.width,y:p};break;case"left":h={x:a.x-s.width,y:p};break;default:h={x:a.x,y:a.y}}switch(Up(t)){case"start":h[r]-=v*(n&&u?-1:1);break;case"end":h[r]+=v*(n&&u?-1:1);break}return h}async function LI(e,t){var n;t===void 0&&(t={});const{x:a,y:s,platform:o,rects:r,elements:i,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:v=!1,padding:h=0}=Fp(t,e),m=BI(h),y=i[v?p==="floating"?"reference":"floating":p],b=Zh(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(i.floating)),boundary:u,rootBoundary:d,strategy:c})),C=p==="floating"?{x:a,y:s,width:r.floating.width,height:r.floating.height}:r.reference,k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(i.floating)),S=await(o.isElement==null?void 0:o.isElement(k))?await(o.getScale==null?void 0:o.getScale(k))||{x:1,y:1}:{x:1,y:1},$=Zh(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:C,offsetParent:k,strategy:c}):C);return{top:(b.top-$.top+m.top)/S.y,bottom:($.bottom-b.bottom+m.bottom)/S.y,left:(b.left-$.left+m.left)/S.x,right:($.right-b.right+m.right)/S.x}}const ose=50,rse=async(e,t,n)=>{const{placement:a="bottom",strategy:s="absolute",middleware:o=[],platform:r}=n,i=r.detectOverflow?r:{...r,detectOverflow:LI},c=await(r.isRTL==null?void 0:r.isRTL(t));let u=await r.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:p}=DS(u,a,c),v=a,h=0;const m={};for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:s,rects:o,platform:r,elements:i,middlewareData:c}=t,{element:u,padding:d=0}=Fp(e,t)||{};if(u==null)return{};const p=BI(d),v={x:n,y:a},h=t2(s),m=e2(h),g=await r.getDimensions(u),y=h==="y",b=y?"top":"left",C=y?"bottom":"right",k=y?"clientHeight":"clientWidth",S=o.reference[m]+o.reference[h]-v[h]-o.floating[m],$=v[h]-o.reference[h],E=await(r.getOffsetParent==null?void 0:r.getOffsetParent(u));let R=E?E[k]:0;(!R||!await(r.isElement==null?void 0:r.isElement(E)))&&(R=i.floating[k]||o.floating[m]);const A=S/2-$/2,N=R/2-g[m]/2-1,P=td(p[b],N),B=td(p[C],N),M=P,j=R-g[m]-B,F=R/2-g[m]/2+A,q=e1(M,F,j),L=!c.arrow&&Up(s)!=null&&F!==q&&o.reference[m]/2-(FF<=0)){var B,M;const F=(((B=o.flip)==null?void 0:B.index)||0)+1,q=R[F];if(q&&(!(p==="alignment"?C!==_i(q):!1)||P.every(O=>_i(O.placement)===C?O.overflows[0]>0:!0)))return{data:{index:F,overflows:P},reset:{placement:q}};let L=(M=P.filter(U=>U.overflows[0]<=0).sort((U,O)=>U.overflows[1]-O.overflows[1])[0])==null?void 0:M.placement;if(!L)switch(h){case"bestFit":{var j;const U=(j=P.filter(O=>{if(E){const G=_i(O.placement);return G===C||G==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(G=>G>0).reduce((G,ae)=>G+ae,0)]).sort((O,G)=>O[1]-G[1])[0])==null?void 0:j[0];U&&(L=U);break}case"initialPlacement":L=i;break}if(s!==L)return{reset:{placement:L}}}return{}}}},cse=new Set(["left","top"]);async function use(e,t){const{placement:n,platform:a,elements:s}=e,o=await(a.isRTL==null?void 0:a.isRTL(s.floating)),r=Uc(n),i=Up(n),c=_i(n)==="y",u=cse.has(r)?-1:1,d=o&&c?-1:1,p=Fp(t,e);let{mainAxis:v,crossAxis:h,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof m=="number"&&(h=i==="end"?m*-1:m),c?{x:h*d,y:v*u}:{x:v*u,y:h*d}}const dse=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:s,y:o,placement:r,middlewareData:i}=t,c=await use(t,e);return r===((n=i.offset)==null?void 0:n.placement)&&(a=i.arrow)!=null&&a.alignmentOffset?{}:{x:s+c.x,y:o+c.y,data:{...c,placement:r}}}}},fse=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:s,platform:o}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:c={fn:b=>{let{x:C,y:k}=b;return{x:C,y:k}}},...u}=Fp(e,t),d={x:n,y:a},p=await o.detectOverflow(t,u),v=_i(Uc(s)),h=MI(v);let m=d[h],g=d[v];if(r){const b=h==="y"?"top":"left",C=h==="y"?"bottom":"right",k=m+p[b],S=m-p[C];m=e1(k,m,S)}if(i){const b=v==="y"?"top":"left",C=v==="y"?"bottom":"right",k=g+p[b],S=g-p[C];g=e1(k,g,S)}const y=c.fn({...t,[h]:m,[v]:g});return{...y,data:{x:y.x-n,y:y.y-a,enabled:{[h]:r,[v]:i}}}}}};function s0(){return typeof window<"u"}function Id(e){return OI(e)?(e.nodeName||"").toLowerCase():"#document"}function Ro(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function cl(e){var t;return(t=(OI(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function OI(e){return s0()?e instanceof Node||e instanceof Ro(e).Node:!1}function kr(e){return s0()?e instanceof Element||e instanceof Ro(e).Element:!1}function jl(e){return s0()?e instanceof HTMLElement||e instanceof Ro(e).HTMLElement:!1}function VS(e){return!s0()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ro(e).ShadowRoot}function zp(e){const{overflow:t,overflowX:n,overflowY:a,display:s}=Sr(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&s!=="inline"&&s!=="contents"}function pse(e){return/^(table|td|th)$/.test(Id(e))}function o0(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const vse=/transform|translate|scale|rotate|perspective|filter/,hse=/paint|layout|strict|content/,Ji=e=>!!e&&e!=="none";let mg;function n2(e){const t=kr(e)?Sr(e):e;return Ji(t.transform)||Ji(t.translate)||Ji(t.scale)||Ji(t.rotate)||Ji(t.perspective)||!a2()&&(Ji(t.backdropFilter)||Ji(t.filter))||vse.test(t.willChange||"")||hse.test(t.contain||"")}function mse(e){let t=Ui(e);for(;jl(t)&&!nd(t);){if(n2(t))return t;if(o0(t))return null;t=Ui(t)}return null}function a2(){return mg==null&&(mg=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),mg}function nd(e){return/^(html|body|#document)$/.test(Id(e))}function Sr(e){return Ro(e).getComputedStyle(e)}function r0(e){return kr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ui(e){if(Id(e)==="html")return e;const t=e.assignedSlot||e.parentNode||VS(e)&&e.host||cl(e);return VS(t)?t.host:t}function DI(e){const t=Ui(e);return nd(t)?e.ownerDocument?e.ownerDocument.body:e.body:jl(t)&&zp(t)?t:DI(t)}function hp(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=DI(e),o=s===((a=e.ownerDocument)==null?void 0:a.body),r=Ro(s);if(o){const i=n1(r);return t.concat(r,r.visualViewport||[],zp(s)?s:[],i&&n?hp(i):[])}else return t.concat(s,hp(s,[],n))}function n1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function VI(e){const t=Sr(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const s=jl(e),o=s?e.offsetWidth:n,r=s?e.offsetHeight:a,i=Qh(n)!==o||Qh(a)!==r;return i&&(n=o,a=r),{width:n,height:a,$:i}}function s2(e){return kr(e)?e:e.contextElement}function Lu(e){const t=s2(e);if(!jl(t))return Qr(1);const n=t.getBoundingClientRect(),{width:a,height:s,$:o}=VI(t);let r=(o?Qh(n.width):n.width)/a,i=(o?Qh(n.height):n.height)/s;return(!r||!Number.isFinite(r))&&(r=1),(!i||!Number.isFinite(i))&&(i=1),{x:r,y:i}}const gse=Qr(0);function FI(e){const t=Ro(e);return!a2()||!t.visualViewport?gse:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _se(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ro(e)?!1:t}function zc(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=s2(e);let r=Qr(1);t&&(a?kr(a)&&(r=Lu(a)):r=Lu(e));const i=_se(o,n,a)?FI(o):Qr(0);let c=(s.left+i.x)/r.x,u=(s.top+i.y)/r.y,d=s.width/r.x,p=s.height/r.y;if(o){const v=Ro(o),h=a&&kr(a)?Ro(a):a;let m=v,g=n1(m);for(;g&&a&&h!==m;){const y=Lu(g),b=g.getBoundingClientRect(),C=Sr(g),k=b.left+(g.clientLeft+parseFloat(C.paddingLeft))*y.x,S=b.top+(g.clientTop+parseFloat(C.paddingTop))*y.y;c*=y.x,u*=y.y,d*=y.x,p*=y.y,c+=k,u+=S,m=Ro(g),g=n1(m)}}return Zh({width:d,height:p,x:c,y:u})}function l0(e,t){const n=r0(e).scrollLeft;return t?t.left+n:zc(cl(e)).left+n}function UI(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-l0(e,n),s=n.top+t.scrollTop;return{x:a,y:s}}function yse(e){let{elements:t,rect:n,offsetParent:a,strategy:s}=e;const o=s==="fixed",r=cl(a),i=t?o0(t.floating):!1;if(a===r||i&&o)return n;let c={scrollLeft:0,scrollTop:0},u=Qr(1);const d=Qr(0),p=jl(a);if((p||!p&&!o)&&((Id(a)!=="body"||zp(r))&&(c=r0(a)),p)){const h=zc(a);u=Lu(a),d.x=h.x+a.clientLeft,d.y=h.y+a.clientTop}const v=r&&!p&&!o?UI(r,c):Qr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+v.x,y:n.y*u.y-c.scrollTop*u.y+d.y+v.y}}function bse(e){return Array.from(e.getClientRects())}function wse(e){const t=cl(e),n=r0(e),a=e.ownerDocument.body,s=Tc(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),o=Tc(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let r=-n.scrollLeft+l0(e);const i=-n.scrollTop;return Sr(a).direction==="rtl"&&(r+=Tc(t.clientWidth,a.clientWidth)-s),{width:s,height:o,x:r,y:i}}const FS=25;function Cse(e,t){const n=Ro(e),a=cl(e),s=n.visualViewport;let o=a.clientWidth,r=a.clientHeight,i=0,c=0;if(s){o=s.width,r=s.height;const d=a2();(!d||d&&t==="fixed")&&(i=s.offsetLeft,c=s.offsetTop)}const u=l0(a);if(u<=0){const d=a.ownerDocument,p=d.body,v=getComputedStyle(p),h=d.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,m=Math.abs(a.clientWidth-p.clientWidth-h);m<=FS&&(o-=m)}else u<=FS&&(o+=u);return{width:o,height:r,x:i,y:c}}function kse(e,t){const n=zc(e,!0,t==="fixed"),a=n.top+e.clientTop,s=n.left+e.clientLeft,o=jl(e)?Lu(e):Qr(1),r=e.clientWidth*o.x,i=e.clientHeight*o.y,c=s*o.x,u=a*o.y;return{width:r,height:i,x:c,y:u}}function US(e,t,n){let a;if(t==="viewport")a=Cse(e,n);else if(t==="document")a=wse(cl(e));else if(kr(t))a=kse(t,n);else{const s=FI(e);a={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Zh(a)}function zI(e,t){const n=Ui(e);return n===t||!kr(n)||nd(n)?!1:Sr(n).position==="fixed"||zI(n,t)}function Sse(e,t){const n=t.get(e);if(n)return n;let a=hp(e,[],!1).filter(i=>kr(i)&&Id(i)!=="body"),s=null;const o=Sr(e).position==="fixed";let r=o?Ui(e):e;for(;kr(r)&&!nd(r);){const i=Sr(r),c=n2(r);!c&&i.position==="fixed"&&(s=null),(o?!c&&!s:!c&&i.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||zp(r)&&!c&&zI(e,r))?a=a.filter(d=>d!==r):s=i,r=Ui(r)}return t.set(e,a),a}function Ese(e){let{element:t,boundary:n,rootBoundary:a,strategy:s}=e;const r=[...n==="clippingAncestors"?o0(t)?[]:Sse(t,this._c):[].concat(n),a],i=US(t,r[0],s);let c=i.top,u=i.right,d=i.bottom,p=i.left;for(let v=1;v{r(!1,1e-7)},1e3)}R===1&&!KI(u,e.getBoundingClientRect())&&r(),S=!1}try{n=new IntersectionObserver($,{...k,root:s.ownerDocument})}catch{n=new IntersectionObserver($,k)}n.observe(e)}return r(!0),o}function Rse(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=a,u=s2(e),d=s||o?[...u?hp(u):[],...t?hp(t):[]]:[];d.forEach(b=>{s&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const p=u&&i?Nse(u,n):null;let v=-1,h=null;r&&(h=new ResizeObserver(b=>{let[C]=b;C&&C.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var k;(k=h)==null||k.observe(t)})),n()}),u&&!c&&h.observe(u),t&&h.observe(t));let m,g=c?zc(e):null;c&&y();function y(){const b=zc(e);g&&!KI(g,b)&&n(),g=b,m=requestAnimationFrame(y)}return n(),()=>{var b;d.forEach(C=>{s&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),p==null||p(),(b=h)==null||b.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const Pse=LI,qI=dse,Mse=fse,Bse=ise,jI=lse,WI=(e,t,n)=>{const a=new Map,s={platform:Ase,...n},o={...s.platform,_c:a};return rse(e,t,{...s,platform:o})},Lse=Ue({style:{type:ge([String,Object,Array]),default:()=>({})}}),Ose=le({name:"ElVisuallyHidden"}),Dse=le({...Ose,props:Lse,setup(e){const t=e,n=x(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(a,s)=>(_(),w("span",Kt(a.$attrs,{style:f(n)}),[be(a.$slots,"default")],16))}});var Vse=ze(Dse,[["__file","visual-hidden.vue"]]);Ue({});const Fse=e=>{if(!cn)return;if(!e)return e;const t=Ha(e);return t||($n(e)?t:e)},Use=({middleware:e,placement:t,strategy:n})=>{const a=T(),s=T(),o=T(),r=T(),i=T({}),c={x:o,y:r,placement:t,strategy:n,middlewareData:i},u=async()=>{if(!cn)return;const d=Fse(a),p=Ha(s);if(!d||!p)return;const v=await WI(d,p,{placement:f(t),strategy:f(n),middleware:f(e)});qu(c).forEach(h=>{c[h].value=v[h]})};return ft(()=>{Ls(()=>{u()})}),{...c,update:u,referenceRef:a,contentRef:s}},zse=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const a=f(e);return a?jI({element:a,padding:t}).fn(n):{}}}),Hse=le({name:"ElTooltipV2Content"}),Kse=le({...Hse,props:{...Qb,...NI},setup(e){const t=e,{triggerRef:n,contentId:a}=Ze(a0),s=T(t.placement),o=T(t.strategy),r=T(null),{referenceRef:i,contentRef:c,middlewareData:u,x:d,y:p,update:v}=Use({placement:s,strategy:o,middleware:x(()=>{const k=[qI(t.offset)];return t.showArrow&&k.push(zse({arrowRef:r})),k})}),h=kd().nextZIndex(),m=Le("tooltip-v2"),g=x(()=>s.value.split("-")[0]),y=x(()=>({position:f(o),top:`${f(p)||0}px`,left:`${f(d)||0}px`,zIndex:h})),b=x(()=>{if(!t.showArrow)return{};const{arrow:k}=f(u);return{[`--${m.namespace.value}-tooltip-v2-arrow-x`]:`${k==null?void 0:k.x}px`||"",[`--${m.namespace.value}-tooltip-v2-arrow-y`]:`${k==null?void 0:k.y}px`||""}}),C=x(()=>[m.e("content"),m.is("dark",t.effect==="dark"),m.is(f(o)),t.contentClass]);return Te(r,()=>v()),Te(()=>t.placement,k=>s.value=k),ft(()=>{Te(()=>t.reference||n.value,k=>{i.value=k||void 0},{immediate:!0})}),Gt(PI,{arrowRef:r}),(k,S)=>(_(),w("div",{ref_key:"contentRef",ref:c,style:Je(f(y)),"data-tooltip-v2-root":""},[k.nowrap?K("v-if",!0):(_(),w("div",{key:0,"data-side":f(g),class:V(f(C))},[be(k.$slots,"default",{contentStyle:f(y),contentClass:f(C)}),z(f(Vse),{id:f(a),role:"tooltip"},{default:W(()=>[k.ariaLabel?(_(),w(_e,{key:0},[Ce(I(k.ariaLabel),1)],64)):be(k.$slots,"default",{key:1})]),_:3},8,["id"]),be(k.$slots,"arrow",{style:Je(f(b)),side:f(g)})],10,["data-side"]))],4))}});var HS=ze(Kse,[["__file","content.vue"]]);const qse=Ue({setRef:{type:ge(Function),required:!0},onlyChild:Boolean});var jse=le({props:qse,setup(e,{slots:t}){const n=T(),a=Zm(n,s=>{s?e.setRef(s.nextElementSibling):e.setRef(null)});return()=>{var s;const[o]=((s=t.default)==null?void 0:s.call(t))||[],r=e.onlyChild?FH(o.children):o.children;return z(_e,{ref:a},[r])}}});const Wse=le({name:"ElTooltipV2Trigger"}),Gse=le({...Wse,props:{...NI,...Zb},setup(e){const t=e,{onClose:n,onOpen:a,onDelayOpen:s,triggerRef:o,contentId:r}=Ze(a0);let i=!1;const c=C=>{o.value=C},u=()=>{i=!1},d=ca(t.onMouseEnter,s),p=ca(t.onMouseLeave,n),v=ca(t.onMouseDown,()=>{n(),i=!0,document.addEventListener("mouseup",u,{once:!0})}),h=ca(t.onFocus,()=>{i||a()}),m=ca(t.onBlur,n),g=ca(t.onClick,C=>{C.detail===0&&n()}),y={blur:m,click:g,focus:h,mousedown:v,mouseenter:d,mouseleave:p},b=(C,k,S)=>{C&&Object.entries(k).forEach(([$,E])=>{C[S]($,E)})};return Te(o,(C,k)=>{b(C,y,"addEventListener"),b(k,y,"removeEventListener"),C&&C.setAttribute("aria-describedby",r.value)}),on(()=>{b(o.value,y,"removeEventListener"),document.removeEventListener("mouseup",u)}),(C,k)=>C.nowrap?(_(),ue(f(jse),{key:0,"set-ref":c,"only-child":""},{default:W(()=>[be(C.$slots,"default")]),_:3})):(_(),w("button",Kt({key:1,ref_key:"triggerRef",ref:o},C.$attrs),[be(C.$slots,"default")],16))}});var Yse=ze(Gse,[["__file","trigger.vue"]]);const Xse=le({name:"ElTooltipV2"}),Qse=le({...Xse,props:qae,setup(e){const n=Pa(e),a=At(To(n,Object.keys(Xb))),s=At(To(n,Object.keys(Qb))),o=At(To(n,Object.keys(Jb))),r=At(To(n,Object.keys(Zb)));return(i,c)=>(_(),ue(Gae,po(Jr(o)),{default:W(({open:u})=>[z(Yse,Kt(r,{nowrap:""}),{default:W(()=>[be(i.$slots,"trigger")]),_:3},16),z(f($d),{to:i.to,disabled:!i.teleported},{default:W(()=>[i.fullTransition?(_(),ue(aa,po(Kt({key:0},i.transitionProps)),{default:W(()=>[i.alwaysOn||u?(_(),ue(HS,po(Kt({key:0},s)),{arrow:W(({style:d,side:p})=>[i.showArrow?(_(),ue(BS,Kt({key:0},a,{style:d,side:p}),null,16,["style","side"])):K("v-if",!0)]),default:W(()=>[be(i.$slots,"default")]),_:3},16)):K("v-if",!0)]),_:2},1040)):(_(),w(_e,{key:1},[i.alwaysOn||u?(_(),ue(HS,po(Kt({key:0},s)),{arrow:W(({style:d,side:p})=>[i.showArrow?(_(),ue(BS,Kt({key:0},a,{style:d,side:p}),null,16,["style","side"])):K("v-if",!0)]),default:W(()=>[be(i.$slots,"default")]),_:3},16)):K("v-if",!0)],64))]),_:2},1032,["to","disabled"])]),_:3},16))}});var Jse=ze(Qse,[["__file","tooltip.vue"]]);const Zse=Rt(Jse),GI="left-check-change",YI="right-check-change",_u=Ue({data:{type:ge(Array),default:()=>[]},titles:{type:ge(Array),default:()=>[]},buttonTexts:{type:ge(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:ge(Function)},leftDefaultChecked:{type:ge(Array),default:()=>[]},rightDefaultChecked:{type:ge(Array),default:()=>[]},renderContent:{type:ge(Function)},modelValue:{type:ge(Array),default:()=>[]},format:{type:ge(Object),default:()=>({})},filterable:Boolean,props:{type:ge(Object),default:()=>Zn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),a1=(e,t)=>[e,t].every(Ve)||Ve(e)&&ba(t),eoe={[Xt]:(e,t,n)=>[e,n].every(Ve)&&["left","right"].includes(t),[Et]:e=>Ve(e),[GI]:a1,[YI]:a1},s1="checked-change",toe=Ue({data:_u.data,optionRender:{type:ge(Function)},placeholder:String,title:String,filterable:Boolean,format:_u.format,filterMethod:_u.filterMethod,defaultChecked:_u.leftDefaultChecked,props:_u.props}),noe={[s1]:a1},Hp=e=>{const t={label:"label",key:"key",disabled:"disabled"};return x(()=>({...t,...e.props}))},aoe=(e,t,n)=>{const a=Hp(e),s=x(()=>e.data.filter(d=>vt(e.filterMethod)?e.filterMethod(t.query,d):String(d[a.value.label]||d[a.value.key]).toLowerCase().includes(t.query.toLowerCase()))),o=x(()=>s.value.filter(d=>!d[a.value.disabled])),r=x(()=>{const d=t.checked.length,p=e.data.length,{noChecked:v,hasChecked:h}=e.format;return v&&h?d>0?h.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,p.toString()):v.replace(/\${total}/g,p.toString()):`${d}/${p}`}),i=x(()=>{const d=t.checked.length;return d>0&&d{const d=o.value.map(p=>p[a.value.key]);t.allChecked=d.length>0&&d.every(p=>t.checked.includes(p))},u=d=>{t.checked=d?o.value.map(p=>p[a.value.key]):[]};return Te(()=>t.checked,(d,p)=>{if(c(),t.checkChangeByUser){const v=d.concat(p).filter(h=>!d.includes(h)||!p.includes(h));n(s1,d,v)}else n(s1,d),t.checkChangeByUser=!0}),Te(o,()=>{c()}),Te(()=>e.data,()=>{const d=[],p=s.value.map(v=>v[a.value.key]);t.checked.forEach(v=>{p.includes(v)&&d.push(v)}),t.checkChangeByUser=!1,t.checked=d}),Te(()=>e.defaultChecked,(d,p)=>{if(p&&d.length===p.length&&d.every(m=>p.includes(m)))return;const v=[],h=o.value.map(m=>m[a.value.key]);d.forEach(m=>{h.includes(m)&&v.push(m)}),t.checkChangeByUser=!1,t.checked=v},{immediate:!0}),{filteredData:s,checkableData:o,checkedSummary:r,isIndeterminate:i,updateAllChecked:c,handleAllCheckedChange:u}},soe=le({name:"ElTransferPanel"}),ooe=le({...soe,props:toe,emits:noe,setup(e,{expose:t,emit:n}){const a=e,s=Ta(),o=({option:k})=>k,{t:r}=rn(),i=Le("transfer"),c=At({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=Hp(a),{filteredData:d,checkedSummary:p,isIndeterminate:v,handleAllCheckedChange:h}=aoe(a,c,n),m=x(()=>!$o(c.query)&&$o(d.value)),g=x(()=>!$o(s.default()[0].children)),{checked:y,allChecked:b,query:C}=Pa(c);return t({query:C}),(k,S)=>(_(),w("div",{class:V(f(i).b("panel"))},[l("p",{class:V(f(i).be("panel","header"))},[z(f(or),{modelValue:f(b),"onUpdate:modelValue":$=>$n(b)?b.value=$:null,indeterminate:f(v),"validate-event":!1,onChange:f(h)},{default:W(()=>[Ce(I(k.title)+" ",1),l("span",null,I(f(p)),1)]),_:1},8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])],2),l("div",{class:V([f(i).be("panel","body"),f(i).is("with-footer",f(g))])},[k.filterable?(_(),ue(f(Bs),{key:0,modelValue:f(C),"onUpdate:modelValue":$=>$n(C)?C.value=$:null,class:V(f(i).be("panel","filter")),size:"default",placeholder:k.placeholder,"prefix-icon":f(nV),clearable:"","validate-event":!1},null,8,["modelValue","onUpdate:modelValue","class","placeholder","prefix-icon"])):K("v-if",!0),et(z(f(f3),{modelValue:f(y),"onUpdate:modelValue":$=>$n(y)?y.value=$:null,"validate-event":!1,class:V([f(i).is("filterable",k.filterable),f(i).be("panel","list")])},{default:W(()=>[(_(!0),w(_e,null,Re(f(d),$=>(_(),ue(f(or),{key:$[f(u).key],class:V(f(i).be("panel","item")),value:$[f(u).key],disabled:$[f(u).disabled],"validate-event":!1},{default:W(()=>{var E;return[z(o,{option:(E=k.optionRender)==null?void 0:E.call(k,$)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"]),[[fn,!f(m)&&!f($o)(k.data)]]),et(l("div",{class:V(f(i).be("panel","empty"))},[be(k.$slots,"empty",{},()=>[Ce(I(f(m)?f(r)("el.transfer.noMatch"):f(r)("el.transfer.noData")),1)])],2),[[fn,f(m)||f($o)(k.data)]])],2),f(g)?(_(),w("p",{key:0,class:V(f(i).be("panel","footer"))},[be(k.$slots,"default")],2)):K("v-if",!0)],2))}});var KS=ze(ooe,[["__file","transfer-panel.vue"]]);const roe=e=>{const t=Hp(e),n=x(()=>e.data.reduce((o,r)=>(o[r[t.value.key]]=r)&&o,{})),a=x(()=>e.data.filter(o=>!e.modelValue.includes(o[t.value.key]))),s=x(()=>e.targetOrder==="original"?e.data.filter(o=>e.modelValue.includes(o[t.value.key])):e.modelValue.reduce((o,r)=>{const i=n.value[r];return i&&o.push(i),o},[]));return{sourceData:a,targetData:s}},loe=(e,t,n)=>{const a=Hp(e),s=(i,c,u)=>{n(Et,i),n(Xt,i,c,u)};return{addToLeft:()=>{const i=e.modelValue.slice();t.rightChecked.forEach(c=>{const u=i.indexOf(c);u>-1&&i.splice(u,1)}),s(i,"left",t.rightChecked)},addToRight:()=>{let i=e.modelValue.slice();const c=e.data.filter(u=>{const d=u[a.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(u=>u[a.value.key]);i=e.targetOrder==="unshift"?c.concat(i):i.concat(c),e.targetOrder==="original"&&(i=e.data.filter(u=>i.includes(u[a.value.key])).map(u=>u[a.value.key])),s(i,"right",t.leftChecked)}}},ioe=(e,t)=>({onSourceCheckedChange:(s,o)=>{e.leftChecked=s,o&&t(GI,s,o)},onTargetCheckedChange:(s,o)=>{e.rightChecked=s,o&&t(YI,s,o)}}),coe=le({name:"ElTransfer"}),uoe=le({...coe,props:_u,emits:eoe,setup(e,{expose:t,emit:n}){const a=e,s=Ta(),{t:o}=rn(),r=Le("transfer"),{formItem:i}=Is(),c=At({leftChecked:[],rightChecked:[]}),u=Hp(a),{sourceData:d,targetData:p}=roe(a),{onSourceCheckedChange:v,onTargetCheckedChange:h}=ioe(c,n),{addToLeft:m,addToRight:g}=loe(a,c,n),y=T(),b=T(),C=A=>{switch(A){case"left":y.value.query="";break;case"right":b.value.query="";break}},k=x(()=>a.buttonTexts.length===2),S=x(()=>a.titles[0]||o("el.transfer.titles.0")),$=x(()=>a.titles[1]||o("el.transfer.titles.1")),E=x(()=>a.filterPlaceholder||o("el.transfer.filterPlaceholder"));Te(()=>a.modelValue,()=>{var A;a.validateEvent&&((A=i==null?void 0:i.validate)==null||A.call(i,"change").catch(N=>void 0))});const R=x(()=>A=>{var N;if(a.renderContent)return a.renderContent(yt,A);const P=(((N=s.default)==null?void 0:N.call(s,{option:A}))||[]).filter(B=>B.type!==ts);return P.length?P:yt("span",A[u.value.label]||A[u.value.key])});return t({clearQuery:C,leftPanel:y,rightPanel:b}),(A,N)=>(_(),w("div",{class:V(f(r).b())},[z(KS,{ref_key:"leftPanel",ref:y,data:f(d),"option-render":f(R),placeholder:f(E),title:f(S),filterable:A.filterable,format:A.format,"filter-method":A.filterMethod,"default-checked":A.leftDefaultChecked,props:a.props,onCheckedChange:f(v)},{empty:W(()=>[be(A.$slots,"left-empty")]),default:W(()=>[be(A.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),l("div",{class:V(f(r).e("buttons"))},[z(f(ns),{type:"primary",class:V([f(r).e("button"),f(r).is("with-texts",f(k))]),disabled:f($o)(c.rightChecked),onClick:f(m)},{default:W(()=>[z(f(ct),null,{default:W(()=>[z(f(Bl))]),_:1}),f(tn)(A.buttonTexts[0])?K("v-if",!0):(_(),w("span",{key:0},I(A.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),z(f(ns),{type:"primary",class:V([f(r).e("button"),f(r).is("with-texts",f(k))]),disabled:f($o)(c.leftChecked),onClick:f(g)},{default:W(()=>[f(tn)(A.buttonTexts[1])?K("v-if",!0):(_(),w("span",{key:0},I(A.buttonTexts[1]),1)),z(f(ct),null,{default:W(()=>[z(f(Ds))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),z(KS,{ref_key:"rightPanel",ref:b,data:f(p),"option-render":f(R),placeholder:f(E),filterable:A.filterable,format:A.format,"filter-method":A.filterMethod,title:f($),"default-checked":A.rightDefaultChecked,props:a.props,onCheckedChange:f(h)},{empty:W(()=>[be(A.$slots,"right-empty")]),default:W(()=>[be(A.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var doe=ze(uoe,[["__file","transfer.vue"]]);const foe=Rt(doe),Ou="$treeNodeId",qS=function(e,t){!t||t[Ou]||Object.defineProperty(t,Ou,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},o2=(e,t)=>t==null?void 0:t[e||Ou],o1=(e,t,n)=>{const a=e.value.currentNode;n();const s=e.value.currentNode;a!==s&&t("current-change",s?s.data:null,s)},r1=e=>{let t=!0,n=!0,a=!0;for(let s=0,o=e.length;s{n.canFocus=t,l1(n.childNodes,t)})};let poe=0,i1=class ph{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.id=poe++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)ln(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var t;const n=this.store;if(!n)throw new Error("[Node]store is required!");n.registerNode(this);const a=n.props;if(a&&typeof a.isLeaf<"u"){const r=Nv(this,"isLeaf");En(r)&&(this.isLeafByUser=r)}if(n.lazy!==!0&&this.data?(this.setData(this.data),n.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&n.lazy&&n.defaultExpandAll&&!this.isLeafByUser&&this.expand(),Ve(this.data)||qS(this,this.data),!this.data)return;const s=n.defaultExpandedKeys,o=n.key;o&&!ba(this.key)&&s&&s.includes(this.key)&&this.expand(null,n.autoExpandParent),o&&n.currentNodeKey!==void 0&&this.key===n.currentNodeKey&&(n.currentNode=this,n.currentNode.isCurrent=!0),n.lazy&&n._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||((t=this.parent)==null?void 0:t.expanded)===!0)&&(this.canFocus=!0)}setData(t){Ve(t)||qS(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Ve(this.data)?n=this.data:n=Nv(this,"children")||[];for(let a=0,s=n.length;a-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(a=>a===t||n&&a.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,a){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof ph)){if(!a){const s=this.getChildren(!0);s!=null&&s.includes(t.data)||(tn(n)||n<0?s==null||s.push(t.data):s==null||s.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=At(new ph(t)),t instanceof ph&&t.initialize()}t.level=this.level+1,tn(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let a;n&&(a=this.childNodes.indexOf(n)),this.insertChild(t,a)}insertAfter(t,n){let a;n&&(a=this.childNodes.indexOf(n),a!==-1&&(a+=1)),this.insertChild(t,a)}removeChild(t){const n=this.getChildren()||[],a=n.indexOf(t.data);a>-1&&n.splice(a,1);const s=this.childNodes.indexOf(t);s>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(s,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let a=0;a{if(n){let s=this.parent;for(;s&&s.level>0;)s.expanded=!0,s=s.parent}this.expanded=!0,t&&t(),l1(this.childNodes,!0)};this.shouldLoadData()?this.loadData(s=>{Ve(s)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||uf(this),a())}):a()}doCreateChildren(t,n={}){t.forEach(a=>{this.insertChild(Object.assign({data:a},n),void 0,!0)})}collapse(){this.expanded=!1,l1(this.childNodes,!1)}shouldLoadData(){return!!(this.store.lazy===!0&&this.store.load&&!this.loaded)}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,a,s){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:r,allWithoutDisable:i}=r1(this.childNodes);!this.isLeaf&&!r&&i&&(this.checked=!1,t=!1);const c=()=>{if(n){const u=this.childNodes;for(let v=0,h=u.length;v{c(),uf(this)},{checked:t!==!1});return}else c()}const o=this.parent;!o||o.level===0||a||uf(o)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const a=this.store.props;let s="children";return a&&(s=a.children||"children"),tn(n[s])&&(n[s]=null),t&&!n[s]&&(n[s]=[]),n[s]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(o=>o.data),a={},s=[];t.forEach((o,r)=>{const i=o[Ou];!!i&&n.findIndex(u=>(u==null?void 0:u[Ou])===i)>=0?a[i]={index:r,data:o}:s.push({index:r,data:o})}),this.store.lazy||n.forEach(o=>{a[o==null?void 0:o[Ou]]||this.removeChildByData(o)}),s.forEach(({index:o,data:r})=>{this.insertChild({data:r},o)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const a=o=>{this.childNodes=[],this.doCreateChildren(o,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,o)},s=()=>{this.loading=!1};this.store.load(this,a,s)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const a=n.shift();n.unshift(...a.childNodes),t(a)}}reInitChecked(){this.store.checkStrictly||uf(this)}};class voe{constructor(t){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const n in t)ln(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new i1({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()},Cn)}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,a=this.lazy,s=async function(o){const r=o.root?o.root.childNodes:o.childNodes;for(const[i,c]of r.entries())c.visible=!!(n!=null&&n.call(c,t,c.data,c)),i%80===0&&i>0&&await it(),await s(c);if(!o.visible&&r.length){let i=!0;i=!r.some(c=>c.visible),o.root?o.root.visible=i===!1:o.visible=i===!1}t&&o.visible&&!o.isLeaf&&(!a||o.loaded)&&o.expand()};s(this)}setData(t){t!==this.root.data?(this.nodesMap={},this.root.setData(t),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(t){if(t instanceof i1)return t;const n=Ot(t)?o2(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){var a;const s=this.getNode(n);(a=s.parent)==null||a.insertBefore({data:t},s)}insertAfter(t,n){var a;const s=this.getNode(n);(a=s.parent)==null||a.insertAfter({data:t},s)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const a=mo(n)?this.root:this.getNode(n);a&&a.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(a=>{const s=n[a];s&&s.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){const n=this.defaultCheckedKeys||[];!ba(t.key)&&n.includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;if(!(!t||!t.data))if(!n)this.nodesMap[t.id]=t;else{const a=t.key;ba(a)||(this.nodesMap[a]=t)}}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(a=>{this.deregisterNode(a)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const a=[],s=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(i=>{(i.checked||n&&i.indeterminate)&&(!t||t&&i.isLeaf)&&a.push(i.data),s(i)})};return s(this),a}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(a){(a.root?a.root.childNodes:a.childNodes).forEach(o=>{o.indeterminate&&t.push(o.data),n(o)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const a in n)ln(n,a)&&t.push(n[a]);return t}updateChildren(t,n){const a=this.nodesMap[t];if(!a)return;const s=a.childNodes;for(let o=s.length-1;o>=0;o--){const r=s[o];this.remove(r.data)}for(let o=0,r=n.length;oc.level-u.level),o=Object.create(null),r=Object.keys(a);s.forEach(c=>c.setChecked(!1,!1));const i=c=>{c.childNodes.forEach(u=>{var d;o[u.data[t]]=!0,(d=u.childNodes)!=null&&d.length&&i(u)})};for(let c=0,u=s.length;c{y.isLeaf||y.setChecked(!1,!1),h(y)})};h(d)}}}setCheckedNodes(t,n=!1){const a=this.key,s={};t.forEach(o=>{s[(o||{})[a]]=!0}),this._setCheckedKeys(a,n,s)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const a=this.key,s={};t.forEach(o=>{s[o]=!0}),this._setCheckedKeys(a,n,s)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const a=this.getNode(n);a&&a.expand(null,this.autoExpandParent)})}setChecked(t,n,a){const s=this.getNode(t);s&&s.setChecked(!!n,a)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){var a;const s=t[this.key],o=this.nodesMap[s];this.setCurrentNode(o),n&&this.currentNode&&this.currentNode.level>1&&((a=this.currentNode.parent)==null||a.expand(null,!0))}setCurrentNodeKey(t,n=!0){var a;if(this.currentNodeKey=t,mo(t)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const s=this.getNode(t);s&&(this.setCurrentNode(s),n&&this.currentNode&&this.currentNode.level>1&&((a=this.currentNode.parent)==null||a.expand(null,!0)))}}const r2="RootTree",XI="NodeInstance",jS="TreeNodeMap",hoe=le({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Le("tree"),n=Ze(XI),a=Ze(r2);return()=>{const s=e.node,{data:o,store:r}=s;return e.renderContent?e.renderContent(yt,{_self:n,node:s,data:o,store:r}):be(a.ctx.slots,"default",{node:s,data:o},()=>[yt(Yb,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[s.label])])}}});var moe=ze(hoe,[["__file","tree-node-content.vue"]]);function QI(e){const t=Ze(jS,null),n={treeNodeExpand:a=>{var s;e.node!==a&&((s=e.node)==null||s.collapse())},children:[]};return t&&t.children.push(n),Gt(jS,n),{broadcastExpanded:a=>{if(e.accordion)for(const s of n.children)s.treeNodeExpand(a)}}}const JI=Symbol("dragEvents");function goe({props:e,ctx:t,el$:n,dropIndicator$:a,store:s}){const o=Le("tree"),r=T({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Gt(JI,{treeNodeDragStart:({event:d,treeNode:p})=>{if(d.dataTransfer){if(vt(e.allowDrag)&&!e.allowDrag(p.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}r.value.draggingNode=p,t.emit("node-drag-start",p.node,d)}},treeNodeDragOver:({event:d,treeNode:p})=>{if(!d.dataTransfer)return;const v=p,h=r.value.dropNode;h&&h.node.id!==v.node.id&&Os(h.$el,o.is("drop-inner"));const m=r.value.draggingNode;if(!m||!v)return;let g=!0,y=!0,b=!0,C=!0;vt(e.allowDrop)&&(g=e.allowDrop(m.node,v.node,"prev"),C=y=e.allowDrop(m.node,v.node,"inner"),b=e.allowDrop(m.node,v.node,"next")),d.dataTransfer.dropEffect=y||g||b?"move":"none",(g||y||b)&&(h==null?void 0:h.node.id)!==v.node.id&&(h&&t.emit("node-drag-leave",m.node,h.node,d),t.emit("node-drag-enter",m.node,v.node,d)),g||y||b?r.value.dropNode=v:r.value.dropNode=null,v.node.nextSibling===m.node&&(b=!1),v.node.previousSibling===m.node&&(g=!1),v.node.contains(m.node,!1)&&(y=!1),(m.node===v.node||m.node.contains(v.node))&&(g=!1,y=!1,b=!1);const k=v.$el,S=k.querySelector(`.${o.be("node","content")}`).getBoundingClientRect(),$=n.value.getBoundingClientRect();let E;const R=g?y?.25:b?.45:1:-1,A=b?y?.75:g?.55:0:1;let N=-9999;const P=d.clientY-S.top;PS.height*A?E="after":y?E="inner":E="none";const B=k.querySelector(`.${o.be("node","expand-icon")}`).getBoundingClientRect(),M=a.value;E==="before"?N=B.top-$.top:E==="after"&&(N=B.bottom-$.top),M.style.top=`${N}px`,M.style.left=`${B.right-$.left}px`,E==="inner"?Ho(k,o.is("drop-inner")):Os(k,o.is("drop-inner")),r.value.showDropIndicator=E==="before"||E==="after",r.value.allowDrop=r.value.showDropIndicator||C,r.value.dropType=E,t.emit("node-drag-over",m.node,v.node,d)},treeNodeDragEnd:d=>{var p,v;const{draggingNode:h,dropType:m,dropNode:g}=r.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),h!=null&&h.node.data&&g){const y={data:h.node.data};m!=="none"&&h.node.remove(),m==="before"?(p=g.node.parent)==null||p.insertBefore(y,g.node):m==="after"?(v=g.node.parent)==null||v.insertAfter(y,g.node):m==="inner"&&g.node.insertChild(y),m!=="none"&&(s.value.registerNode(y),s.value.key&&h.node.eachNode(b=>{var C;(C=s.value.nodesMap[b.data[s.value.key]])==null||C.setChecked(b.checked,!s.value.checkStrictly)})),Os(g.$el,o.is("drop-inner")),t.emit("node-drag-end",h.node,g.node,m,d),m!=="none"&&t.emit("node-drop",h.node,g.node,m,d)}h&&!g&&t.emit("node-drag-end",h.node,null,m,d),r.value.showDropIndicator=!1,r.value.draggingNode=null,r.value.dropNode=null,r.value.allowDrop=!0}}),{dragState:r}}const _oe=le({name:"ElTreeNode",components:{ElCollapseTransition:Qm,ElCheckbox:or,NodeContent:moe,ElIcon:ct,Loading:el},props:{node:{type:i1,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=Le("tree"),{broadcastExpanded:a}=QI(e),s=Ze(r2),o=T(!1),r=T(!1),i=T(),c=T(),u=T(),d=Ze(JI),p=qt();Gt(XI,p),e.node.expanded&&(o.value=!0,r.value=!0);const v=s.props.props.children||"children";Te(()=>{var N;const P=(N=e.node.data)==null?void 0:N[v];return P&&[...P]},()=>{e.node.updateChildren()}),Te(()=>e.node.indeterminate,N=>{g(e.node.checked,N)}),Te(()=>e.node.checked,N=>{g(N,e.node.indeterminate)}),Te(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),Te(()=>e.node.expanded,N=>{it(()=>o.value=N),N&&(r.value=!0)});const h=N=>o2(s.props.nodeKey,N.data),m=N=>{const P=e.props.class;if(!P)return{};let B;if(vt(P)){const{data:M}=N;B=P(M,N)}else B=P;return ut(B)?{[B]:!0}:B},g=(N,P)=>{(i.value!==N||c.value!==P)&&s.ctx.emit("check-change",e.node.data,N,P),i.value=N,c.value=P},y=N=>{o1(s.store,s.ctx.emit,()=>{var P;if((P=s==null?void 0:s.props)==null?void 0:P.nodeKey){const M=h(e.node);s.store.value.setCurrentNodeKey(M)}else s.store.value.setCurrentNode(e.node)}),s.currentNode.value=e.node,s.props.expandOnClickNode&&C(),(s.props.checkOnClickNode||e.node.isLeaf&&s.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&k(!e.node.checked),s.ctx.emit("node-click",e.node.data,e.node,p,N)},b=N=>{var P;(P=s.instance.vnode.props)!=null&&P.onNodeContextmenu&&(N.stopPropagation(),N.preventDefault()),s.ctx.emit("node-contextmenu",N,e.node.data,e.node,p)},C=()=>{e.node.isLeaf||(o.value?(s.ctx.emit("node-collapse",e.node.data,e.node,p),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,p)}))},k=N=>{e.node.setChecked(N,!(s!=null&&s.props.checkStrictly)),it(()=>{const P=s.store.value;s.ctx.emit("check",e.node.data,{checkedNodes:P.getCheckedNodes(),checkedKeys:P.getCheckedKeys(),halfCheckedNodes:P.getHalfCheckedNodes(),halfCheckedKeys:P.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:s,expanded:o,childNodeRendered:r,oldChecked:i,oldIndeterminate:c,getNodeKey:h,getNodeClass:m,handleSelectChange:g,handleClick:y,handleContextMenu:b,handleExpandIconClick:C,handleCheckChange:k,handleChildNodeExpand:(N,P,B)=>{a(P),s.ctx.emit("node-expand",N,P,B)},handleDragStart:N=>{s.props.draggable&&d.treeNodeDragStart({event:N,treeNode:e})},handleDragOver:N=>{N.preventDefault(),s.props.draggable&&d.treeNodeDragOver({event:N,treeNode:{$el:u.value,node:e.node}})},handleDrop:N=>{N.preventDefault()},handleDragEnd:N=>{s.props.draggable&&d.treeNodeDragEnd(N)},CaretRight:cT}}});function yoe(e,t,n,a,s,o){const r=Ne("el-icon"),i=Ne("el-checkbox"),c=Ne("loading"),u=Ne("node-content"),d=Ne("el-tree-node"),p=Ne("el-collapse-transition");return et((_(),w("div",{ref:"node$",class:V([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:qe(e.handleClick,["stop"]),onContextmenu:e.handleContextMenu,onDragstart:qe(e.handleDragStart,["stop"]),onDragover:qe(e.handleDragOver,["stop"]),onDragend:qe(e.handleDragEnd,["stop"]),onDrop:qe(e.handleDrop,["stop"])},[l("div",{class:V(e.ns.be("node","content")),style:Je({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(_(),ue(r,{key:0,class:V([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:qe(e.handleExpandIconClick,["stop"])},{default:W(()=>[(_(),ue(Ft(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):K("v-if",!0),e.showCheckbox?(_(),ue(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:qe(()=>{},["stop"]),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):K("v-if",!0),e.node.loading?(_(),ue(r,{key:2,class:V([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:W(()=>[z(c)]),_:1},8,["class"])):K("v-if",!0),z(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),z(p,null,{default:W(()=>[!e.renderAfterExpand||e.childNodeRendered?et((_(),w("div",{key:0,class:V(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:qe(()=>{},["stop"])},[(_(!0),w(_e,null,Re(e.node.childNodes,v=>(_(),ue(d,{key:e.getNodeKey(v),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:v,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,["aria-expanded","onClick"])),[[fn,e.expanded]]):K("v-if",!0)]),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[fn,e.node.visible]])}var boe=ze(_oe,[["render",yoe],["__file","tree-node.vue"]]);function woe({el$:e},t){const n=Le("tree");ft(()=>{o()}),$r(()=>{Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(i=>{i.setAttribute("tabindex","-1")})});function a(r,i){var c,u;const d=t.value.getNode(r[i].dataset.key);return d.canFocus&&d.visible&&(((c=d.parent)==null?void 0:c.expanded)||((u=d.parent)==null?void 0:u.level)===0)}Rn(e,"keydown",r=>{const i=r.target;if(!i.className.includes(n.b("node")))return;const c=r.code,u=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),d=u.indexOf(i);let p;if([tt.up,tt.down].includes(c)){if(r.preventDefault(),c===tt.up){p=d===-1?0:d!==0?d-1:u.length-1;const h=p;for(;!a(u,p);){if(p--,p===h){p=-1;break}p<0&&(p=u.length-1)}}else{p=d===-1?0:d=u.length&&(p=0)}}p!==-1&&u[p].focus()}[tt.left,tt.right].includes(c)&&(r.preventDefault(),i.click());const v=i.querySelector('[type="checkbox"]');[tt.enter,tt.numpadEnter,tt.space].includes(c)&&v&&(r.preventDefault(),v.click())});const o=()=>{var r;if(!e.value)return;const i=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(d=>{d.setAttribute("tabindex","-1")});const u=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(u.length){u[0].setAttribute("tabindex","0");return}(r=i[0])==null||r.setAttribute("tabindex","0")}}const Coe=le({name:"ElTree",components:{ElTreeNode:boe},props:{data:{type:ge(Array),default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:{type:ge(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:ge(Function)},allowDrop:{type:ge(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:wn}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=rn(),a=Le("tree"),s=Ze(Td,null),o=T(new voe({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));o.value.initialize();const r=T(o.value.root),i=T(null),c=T(null),u=T(null),{broadcastExpanded:d}=QI(e),{dragState:p}=goe({props:e,ctx:t,el$:c,dropIndicator$:u,store:o});woe({el$:c},o);const v=x(()=>{const{childNodes:O}=r.value,G=s?s.hasFilteredOptions!==0:!1;return(!O||O.length===0||O.every(({visible:ae})=>!ae))&&!G});Te(()=>e.currentNodeKey,O=>{o.value.setCurrentNodeKey(O??null)}),Te(()=>e.defaultCheckedKeys,(O,G)=>{$a(O,G)||o.value.setDefaultCheckedKey(O??[])}),Te(()=>e.defaultExpandedKeys,O=>{o.value.setDefaultExpandedKeys(O??[])}),Te(()=>e.data,O=>{o.value.setData(O)},{deep:!0}),Te(()=>e.checkStrictly,O=>{o.value.checkStrictly=O});const h=O=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(O)},m=O=>o2(e.nodeKey,O.data),g=O=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const G=o.value.getNode(O);if(!G)return[];const ae=[G.data];let Z=G.parent;for(;Z&&Z!==r.value;)ae.push(Z.data),Z=Z.parent;return ae.reverse()},y=(O,G)=>o.value.getCheckedNodes(O,G),b=O=>o.value.getCheckedKeys(O),C=()=>{const O=o.value.getCurrentNode();return O?O.data:null},k=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const O=C();return O?O[e.nodeKey]:null},S=(O,G)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");o.value.setCheckedNodes(O,G)},$=(O,G)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");o.value.setCheckedKeys(O,G)},E=(O,G,ae)=>{o.value.setChecked(O,G,ae)},R=()=>o.value.getHalfCheckedNodes(),A=()=>o.value.getHalfCheckedKeys(),N=(O,G=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");o1(o,t.emit,()=>{d(O),o.value.setUserCurrentNode(O,G)})},P=(O,G=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");o1(o,t.emit,()=>{d(),o.value.setCurrentNodeKey(O??null,G)})},B=O=>o.value.getNode(O),M=O=>{o.value.remove(O)},j=(O,G)=>{o.value.append(O,G)},F=(O,G)=>{o.value.insertBefore(O,G)},q=(O,G)=>{o.value.insertAfter(O,G)},L=(O,G,ae)=>{d(G),t.emit("node-expand",O,G,ae)},U=(O,G)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");o.value.updateChildren(O,G)};return Gt(r2,{ctx:t,props:e,store:o,root:r,currentNode:i,instance:qt()}),Gt(tl,void 0),{ns:a,store:o,root:r,currentNode:i,dragState:p,el$:c,dropIndicator$:u,isEmpty:v,filter:h,getNodeKey:m,getNodePath:g,getCheckedNodes:y,getCheckedKeys:b,getCurrentNode:C,getCurrentKey:k,setCheckedNodes:S,setCheckedKeys:$,setChecked:E,getHalfCheckedNodes:R,getHalfCheckedKeys:A,setCurrentNode:N,setCurrentKey:P,t:n,getNode:B,remove:M,append:j,insertBefore:F,insertAfter:q,handleNodeExpand:L,updateKeyChildren:U}}});function koe(e,t,n,a,s,o){const r=Ne("el-tree-node");return _(),w("div",{ref:"el$",class:V([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(_(!0),w(_e,null,Re(e.root.childNodes,i=>(_(),ue(r,{key:e.getNodeKey(i),node:i,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(_(),w("div",{key:0,class:V(e.ns.e("empty-block"))},[be(e.$slots,"empty",{},()=>{var i;return[l("span",{class:V(e.ns.e("empty-text"))},I((i=e.emptyText)!=null?i:e.t("el.tree.emptyText")),3)]})],2)):K("v-if",!0),et(l("div",{ref:"dropIndicator$",class:V(e.ns.e("drop-indicator"))},null,2),[[fn,e.dragState.showDropIndicator]])],2)}var Soe=ze(Coe,[["render",koe],["__file","tree.vue"]]);const em=Rt(Soe),Eoe=(e,{attrs:t,emit:n},{select:a,tree:s,key:o})=>{const r=Le("tree-select");return Te(()=>e.data,()=>{e.filterable&&it(()=>{var c,u;(u=s.value)==null||u.filter((c=a.value)==null?void 0:c.states.inputValue)})},{flush:"post"}),{...To(Pa(e),Object.keys(Vc.props)),...t,class:x(()=>t.class),style:x(()=>t.style),"onUpdate:modelValue":c=>n(Et,c),valueKey:o,popperClass:x(()=>{const c=[r.e("popper")];return e.popperClass&&c.push(e.popperClass),c.join(" ")}),filterMethod:(c="")=>{var u;e.filterMethod?e.filterMethod(c):e.remoteMethod?e.remoteMethod(c):(u=s.value)==null||u.filter(c)}}},$oe=le({extends:zh,setup(e,t){const n=zh.setup(e,t);delete n.selectOptionClick;const a=qt().proxy;return it(()=>{n.select.states.cachedOptions.get(a.value)||n.select.onOptionCreate(a)}),Te(()=>t.attrs.visible,s=>{it(()=>{n.states.visible=s})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function c1(e){return e||e===0}function l2(e){return Ve(e)&&e.length}function du(e){return Ve(e)?e:c1(e)?[e]:[]}function vh(e,t,n,a,s){for(let o=0;o{Te([()=>e.modelValue,o],()=>{e.showCheckbox&&it(()=>{const v=o.value;v&&!$a(v.getCheckedKeys(),du(e.modelValue))&&v.setCheckedKeys(du(e.modelValue))})},{immediate:!0,deep:!0});const i=x(()=>({value:r.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),c=(v,h)=>{var m;const g=i.value[v];return vt(g)?g(h,(m=o.value)==null?void 0:m.getNode(c("value",h))):h[g]},u=du(e.modelValue).map(v=>vh(e.data||[],h=>c("value",h)===v,h=>c("children",h),(h,m,g,y)=>y&&c("value",y))).filter(v=>c1(v)),d=x(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const v=[];return hh(e.data.concat(e.cacheData),h=>{const m=c("value",h);v.push({value:m,currentLabel:c("label",h),isDisabled:c("disabled",h)})},h=>c("children",h)),v}),p=()=>{var v;return(v=o.value)==null?void 0:v.getCheckedKeys().filter(h=>{var m;const g=(m=o.value)==null?void 0:m.getNode(h);return!ba(g)&&$o(g.childNodes)})};return{...To(Pa(e),Object.keys(em.props)),...t,nodeKey:r,expandOnClickNode:x(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:x(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(v,{node:h,data:m,store:g})=>v($oe,{value:c("value",m),label:c("label",m),disabled:c("disabled",m),visible:h.visible},e.renderContent?()=>e.renderContent(v,{node:h,data:m,store:g}):n.default?()=>n.default({node:h,data:m,store:g}):void 0),filterNodeMethod:(v,h,m)=>e.filterNodeMethod?e.filterNodeMethod(v,h,m):v?new RegExp(Ab(v),"i").test(c("label",h)||""):!0,onNodeClick:(v,h,m)=>{var g,y,b,C;if((g=t.onNodeClick)==null||g.call(t,v,h,m),!(e.showCheckbox&&e.checkOnClickNode)){if(!e.showCheckbox&&(e.checkStrictly||h.isLeaf)){if(!c("disabled",v)){const k=(y=s.value)==null?void 0:y.states.options.get(c("value",v));(b=s.value)==null||b.handleOptionSelect(k)}}else e.expandOnClickNode&&m.proxy.handleExpandIconClick();(C=s.value)==null||C.focus()}},onCheck:(v,h)=>{var m;if(!e.showCheckbox)return;const g=c("value",v),y={};hh([o.value.store.root],S=>y[S.key]=S,S=>S.childNodes);const b=h.checkedKeys,C=e.multiple?du(e.modelValue).filter(S=>!(S in y)&&!b.includes(S)):[],k=C.concat(b);if(e.checkStrictly)a(Et,e.multiple?k:k.includes(g)?g:void 0);else if(e.multiple){const S=p();a(Et,C.concat(S))}else{const S=vh([v],R=>!l2(c("children",R))&&!c("disabled",R),R=>c("children",R)),$=S?c("value",S):void 0,E=c1(e.modelValue)&&!!vh([v],R=>c("value",R)===e.modelValue,R=>c("children",R));a(Et,$===e.modelValue||E?void 0:$)}it(()=>{var S;const $=du(e.modelValue);o.value.setCheckedKeys($),(S=t.onCheck)==null||S.call(t,v,{checkedKeys:o.value.getCheckedKeys(),checkedNodes:o.value.getCheckedNodes(),halfCheckedKeys:o.value.getHalfCheckedKeys(),halfCheckedNodes:o.value.getHalfCheckedNodes()})}),(m=s.value)==null||m.focus()},onNodeExpand:(v,h,m)=>{var g;(g=t.onNodeExpand)==null||g.call(t,v,h,m),it(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&h.checked){const y={},b=o.value.getCheckedKeys();hh([o.value.store.root],S=>y[S.key]=S,S=>S.childNodes);const C=du(e.modelValue).filter(S=>!(S in y)&&!b.includes(S)),k=p();a(Et,C.concat(k))}})},cacheOptions:d}};var Toe=le({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Ze(Td);return Te(()=>e.data,()=>{var n;e.data.forEach(s=>{t.states.cachedOptions.has(s.value)||t.states.cachedOptions.set(s.value,s)});const a=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];cn&&!Array.from(a).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const Ioe=le({name:"ElTreeSelect",inheritAttrs:!1,props:{...Vc.props,...em.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:a}=t,s=T(),o=T(),r=x(()=>e.nodeKey||e.valueKey||"value"),i=Eoe(e,t,{select:s,tree:o,key:r}),{cacheOptions:c,...u}=xoe(e,t,{select:s,tree:o,key:r}),d=At({});return a(d),ft(()=>{Object.assign(d,{...To(o.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...To(s.value,["focus","blur","selectedLabel"])})}),()=>yt(Vc,At({...i,ref:p=>s.value=p}),{...n,default:()=>[yt(Toe,{data:c.value}),yt(em,At({...u,ref:p=>o.value=p}))]})}});var Aoe=ze(Ioe,[["__file","tree-select.vue"]]);const Noe=Rt(Aoe),i2=Symbol(),Roe={key:-1,level:-1,data:{}};var df=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(df||{}),u1=(e=>(e.ADD="add",e.DELETE="delete",e))(u1||{});const ZI={type:Number,default:26},Poe=Ue({data:{type:ge(Array),default:()=>Zn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:ge(Object),default:()=>Zn({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:ge(Array),default:()=>Zn([])},checkStrictly:Boolean,defaultExpandedKeys:{type:ge(Array),default:()=>Zn([])},indent:{type:Number,default:16},itemSize:ZI,icon:{type:wn},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:ge([String,Number])},accordion:Boolean,filterMethod:{type:ge(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),Moe=Ue({node:{type:ge(Object),default:()=>Zn(Roe)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:ZI}),Boe=Ue({node:{type:ge(Object),required:!0}}),e5="node-click",t5="node-drop",n5="node-expand",a5="node-collapse",s5="current-change",o5="check",r5="check-change",l5="node-contextmenu",Loe={[e5]:(e,t,n)=>e&&t&&n,[t5]:(e,t,n)=>e&&t&&n,[n5]:(e,t)=>e&&t,[a5]:(e,t)=>e&&t,[s5]:(e,t)=>e&&t,[o5]:(e,t)=>e&&t,[r5]:(e,t)=>e&&En(t),[l5]:(e,t,n)=>e&&t&&n},Ooe={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&En(t)};function Doe(e,t){const n=T(new Set),a=T(new Set),{emit:s}=qt();Te([()=>t.value,()=>e.defaultCheckedKeys],()=>it(()=>{C(e.defaultCheckedKeys)}),{immediate:!0});const o=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:k,maxLevel:S}=t.value,$=n.value,E=new Set;for(let R=S-1;R>=1;--R){const A=k.get(R);A&&A.forEach(N=>{const P=N.children;if(P){let B=!0,M=!1;for(const j of P){const F=j.key;if($.has(F))M=!0;else if(E.has(F)){B=!1,M=!0;break}else B=!1}B?$.add(N.key):M?(E.add(N.key),$.delete(N.key)):($.delete(N.key),E.delete(N.key))}})}a.value=E},r=k=>n.value.has(k.key),i=k=>a.value.has(k.key),c=(k,S,$=!0,E=!0)=>{const R=n.value,A=(N,P)=>{R[P?u1.ADD:u1.DELETE](N.key);const B=N.children;!e.checkStrictly&&B&&B.forEach(M=>{M.disabled||A(M,P)})};A(k,S),E&&o(),$&&u(k,S)},u=(k,S)=>{const{checkedNodes:$,checkedKeys:E}=m(),{halfCheckedNodes:R,halfCheckedKeys:A}=g();s(o5,k.data,{checkedKeys:E,checkedNodes:$,halfCheckedKeys:A,halfCheckedNodes:R}),s(r5,k.data,S)};function d(k=!1){return m(k).checkedKeys}function p(k=!1){return m(k).checkedNodes}function v(){return g().halfCheckedKeys}function h(){return g().halfCheckedNodes}function m(k=!1){const S=[],$=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:E}=t.value;n.value.forEach(R=>{const A=E.get(R);A&&(!k||k&&A.isLeaf)&&($.push(R),S.push(A.data))})}return{checkedKeys:$,checkedNodes:S}}function g(){const k=[],S=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:$}=t.value;a.value.forEach(E=>{const R=$.get(E);R&&(S.push(E),k.push(R.data))})}return{halfCheckedNodes:k,halfCheckedKeys:S}}function y(k){n.value.clear(),a.value.clear(),it(()=>{C(k)})}function b(k,S){if(t!=null&&t.value&&e.showCheckbox){const $=t.value.treeNodeMap.get(k);$&&c($,S,!1)}}function C(k){if(t!=null&&t.value){const{treeNodeMap:S}=t.value;if(e.showCheckbox&&S&&(k==null?void 0:k.length)>0){for(const $ of k){const E=S.get($);E&&!r(E)&&c(E,!0,!1,!1)}o()}}}return{updateCheckedKeys:o,toggleCheckbox:c,isChecked:r,isIndeterminate:i,getCheckedKeys:d,getCheckedNodes:p,getHalfCheckedKeys:v,getHalfCheckedNodes:h,setChecked:b,setCheckedKeys:y}}function Voe(e,t){const n=T(new Set([])),a=T(new Set([])),s=x(()=>vt(e.filterMethod));function o(i){var c;if(!s.value)return;const u=new Set,d=a.value,p=n.value,v=[],h=((c=t.value)==null?void 0:c.treeNodes)||[],m=e.filterMethod;p.clear();function g(y){y.forEach(b=>{v.push(b),m!=null&&m(i,b.data,b)?v.forEach(k=>{u.add(k.key)}):b.isLeaf&&p.add(b.key);const C=b.children;if(C&&g(C),!b.isLeaf){if(!u.has(b.key))p.add(b.key);else if(C){let k=!0;for(const S of C)if(!p.has(S.key)){k=!1;break}k?d.add(b.key):d.delete(b.key)}}v.pop()})}return g(h),u}function r(i){return a.value.has(i.key)}return{hiddenExpandIconKeySet:a,hiddenNodeKeySet:n,doFilter:o,isForceHiddenExpandIcon:r}}function Foe(e,t){const n=T(new Set),a=T(),s=Fn(),o=T(),{isIndeterminate:r,isChecked:i,toggleCheckbox:c,getCheckedKeys:u,getCheckedNodes:d,getHalfCheckedKeys:p,getHalfCheckedNodes:v,setChecked:h,setCheckedKeys:m}=Doe(e,s),{doFilter:g,hiddenNodeKeySet:y,isForceHiddenExpandIcon:b}=Voe(e,s),C=x(()=>{var D;return((D=e.props)==null?void 0:D.value)||df.KEY}),k=x(()=>{var D;return((D=e.props)==null?void 0:D.children)||df.CHILDREN}),S=x(()=>{var D;return((D=e.props)==null?void 0:D.disabled)||df.DISABLED}),$=x(()=>{var D;return((D=e.props)==null?void 0:D.label)||df.LABEL}),E=x(()=>{var D;const Y=n.value,ne=y.value,re=[],se=((D=s.value)==null?void 0:D.treeNodes)||[],ke=[];for(let ye=se.length-1;ye>=0;--ye)ke.push(se[ye]);for(;ke.length;){const ye=ke.pop();if(!ne.has(ye.key)&&(re.push(ye),ye.children&&Y.has(ye.key)))for(let Se=ye.children.length-1;Se>=0;--Se)ke.push(ye.children[Se])}return re}),R=x(()=>E.value.length>0);function A(D){const Y=new Map,ne=new Map;let re=1;function se(ye,Se=1,ce=void 0){var we;const Ae=[];for(const Fe of ye){const xe=B(Fe),me={level:Se,key:xe,data:Fe};me.label=j(Fe),me.parent=ce;const Me=P(Fe);me.disabled=M(Fe),me.isLeaf=!Me||Me.length===0,me.expanded=n.value.has(xe),Me&&Me.length&&(me.children=se(Me,Se+1,me)),Ae.push(me),Y.set(xe,me),ne.has(Se)||ne.set(Se,[]),(we=ne.get(Se))==null||we.push(me)}return Se>re&&(re=Se),Ae}const ke=se(D);return{treeNodeMap:Y,levelTreeNodeMap:ne,maxLevel:re,treeNodes:ke}}function N(D){const Y=g(D);Y&&(n.value=Y)}function P(D){return D[k.value]}function B(D){return D?D[C.value]:""}function M(D){return D[S.value]}function j(D){return D[$.value]}function F(D){n.value.has(D.key)?Z(D):ae(D)}function q(D){const Y=new Set,ne=s.value.treeNodeMap;D.forEach(re=>{let se=ne.get(re);for(;se&&!Y.has(se.key);)Y.add(se.key),se.expanded=!0,se=se.parent}),n.value=Y}function L(D,Y){t(e5,D.data,D,Y),O(D),e.expandOnClickNode&&F(D),e.showCheckbox&&(e.checkOnClickNode||D.isLeaf&&e.checkOnClickLeaf)&&!D.disabled&&c(D,!i(D),!0)}function U(D,Y){t(t5,D.data,D,Y)}function O(D){ie(D)||(a.value=D.key,t(s5,D.data,D))}function G(D,Y){c(D,Y)}function ae(D){const Y=n.value;if(s.value&&e.accordion){const{treeNodeMap:ne}=s.value;Y.forEach(re=>{const se=ne.get(re);D&&D.level===(se==null?void 0:se.level)&&(Y.delete(re),se.expanded=!1)})}Y.add(D.key),D.expanded=!0,t(n5,D.data,D)}function Z(D){n.value.delete(D.key),D.expanded=!1,t(a5,D.data,D)}function te(D){return!!D.disabled}function ie(D){const Y=a.value;return Y!==void 0&&Y===D.key}function oe(){var D,Y;if(a.value)return(Y=(D=s.value)==null?void 0:D.treeNodeMap.get(a.value))==null?void 0:Y.data}function J(){return a.value}function ee(D){a.value=D}function Q(D){s.value=A(D)}function H(D){var Y;const ne=Ot(D)?B(D):D;return(Y=s.value)==null?void 0:Y.treeNodeMap.get(ne)}function X(D,Y="auto"){const ne=H(D);ne&&o.value&&o.value.scrollToItem(E.value.indexOf(ne),Y)}function he(D){var Y;(Y=o.value)==null||Y.scrollTo(D)}return Te(()=>e.currentNodeKey,D=>{a.value=D},{immediate:!0}),Te(()=>e.defaultExpandedKeys,D=>{n.value=new Set(D)},{immediate:!0}),Te(()=>e.data,D=>{Q(D)},{immediate:!0}),{tree:s,flattenTree:E,isNotEmpty:R,listRef:o,getKey:B,getChildren:P,toggleExpand:F,toggleCheckbox:c,isChecked:i,isIndeterminate:r,isDisabled:te,isCurrent:ie,isForceHiddenExpandIcon:b,handleNodeClick:L,handleNodeDrop:U,handleNodeCheck:G,getCurrentNode:oe,getCurrentKey:J,setCurrentKey:ee,getCheckedKeys:u,getCheckedNodes:d,getHalfCheckedKeys:p,getHalfCheckedNodes:v,setChecked:h,setCheckedKeys:m,filter:N,setData:Q,getNode:H,expandNode:ae,collapseNode:Z,setExpandedKeys:q,scrollToNode:X,scrollTo:he}}var Uoe=le({name:"ElTreeNodeContent",props:Boe,setup(e){const t=Ze(i2),n=Le("tree");return()=>{const a=e.node,{data:s}=a;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:a,data:s}):yt(Yb,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[a==null?void 0:a.label])}}});const zoe=le({name:"ElTreeNode"}),Hoe=le({...zoe,props:Moe,emits:Ooe,setup(e,{emit:t}){const n=e,a=Ze(i2),s=Le("tree"),o=x(()=>{var h;return(h=a==null?void 0:a.props.indent)!=null?h:16}),r=x(()=>{var h;return(h=a==null?void 0:a.props.icon)!=null?h:cT}),i=h=>{const m=a==null?void 0:a.props.props.class;if(!m)return{};let g;if(vt(m)){const{data:y}=h;g=m(y,h)}else g=m;return ut(g)?{[g]:!0}:g},c=h=>{t("click",n.node,h)},u=h=>{t("drop",n.node,h)},d=()=>{t("toggle",n.node)},p=h=>{t("check",n.node,h)},v=h=>{var m,g,y,b;(y=(g=(m=a==null?void 0:a.instance)==null?void 0:m.vnode)==null?void 0:g.props)!=null&&y.onNodeContextmenu&&(h.stopPropagation(),h.preventDefault()),a==null||a.ctx.emit(l5,h,(b=n.node)==null?void 0:b.data,n.node)};return(h,m)=>{var g,y,b;return _(),w("div",{ref:"node$",class:V([f(s).b("node"),f(s).is("expanded",h.expanded),f(s).is("current",h.current),f(s).is("focusable",!h.disabled),f(s).is("checked",!h.disabled&&h.checked),i(h.node)]),role:"treeitem",tabindex:"-1","aria-expanded":h.expanded,"aria-disabled":h.disabled,"aria-checked":h.checked,"data-key":(g=h.node)==null?void 0:g.key,onClick:qe(c,["stop"]),onContextmenu:v,onDragover:qe(()=>{},["prevent"]),onDragenter:qe(()=>{},["prevent"]),onDrop:qe(u,["stop"])},[l("div",{class:V(f(s).be("node","content")),style:Je({paddingLeft:`${(h.node.level-1)*f(o)}px`,height:h.itemSize+"px"})},[f(r)?(_(),ue(f(ct),{key:0,class:V([f(s).is("leaf",!!((y=h.node)!=null&&y.isLeaf)),f(s).is("hidden",h.hiddenExpandIcon),{expanded:!((b=h.node)!=null&&b.isLeaf)&&h.expanded},f(s).be("node","expand-icon")]),onClick:qe(d,["stop"])},{default:W(()=>[(_(),ue(Ft(f(r))))]),_:1},8,["class","onClick"])):K("v-if",!0),h.showCheckbox?(_(),ue(f(or),{key:1,"model-value":h.checked,indeterminate:h.indeterminate,disabled:h.disabled,onChange:p,onClick:qe(()=>{},["stop"])},null,8,["model-value","indeterminate","disabled","onClick"])):K("v-if",!0),z(f(Uoe),{node:{...h.node,expanded:h.expanded}},null,8,["node"])],6)],42,["aria-expanded","aria-disabled","aria-checked","data-key","onClick","onDragover","onDragenter","onDrop"])}}});var Koe=ze(Hoe,[["__file","tree-node.vue"]]);const qoe=le({name:"ElTreeV2"}),joe=le({...qoe,props:Poe,emits:Loe,setup(e,{expose:t,emit:n}){const a=e,s=Ta(),o=x(()=>a.itemSize);Gt(i2,{ctx:{emit:n,slots:s},props:a,instance:qt()}),Gt(tl,void 0);const{t:r}=rn(),i=Le("tree"),{flattenTree:c,isNotEmpty:u,listRef:d,toggleExpand:p,isIndeterminate:v,isChecked:h,isDisabled:m,isCurrent:g,isForceHiddenExpandIcon:y,handleNodeClick:b,handleNodeDrop:C,handleNodeCheck:k,toggleCheckbox:S,getCurrentNode:$,getCurrentKey:E,setCurrentKey:R,getCheckedKeys:A,getCheckedNodes:N,getHalfCheckedKeys:P,getHalfCheckedNodes:B,setChecked:M,setCheckedKeys:j,filter:F,setData:q,getNode:L,expandNode:U,collapseNode:O,setExpandedKeys:G,scrollToNode:ae,scrollTo:Z}=Foe(a,n);return t({toggleCheckbox:S,getCurrentNode:$,getCurrentKey:E,setCurrentKey:R,getCheckedKeys:A,getCheckedNodes:N,getHalfCheckedKeys:P,getHalfCheckedNodes:B,setChecked:M,setCheckedKeys:j,filter:F,setData:q,getNode:L,expandNode:U,collapseNode:O,setExpandedKeys:G,scrollToNode:ae,scrollTo:Z}),(te,ie)=>(_(),w("div",{class:V([f(i).b(),{[f(i).m("highlight-current")]:te.highlightCurrent}]),role:"tree"},[f(u)?(_(),ue(f(F8),{key:0,ref_key:"listRef",ref:d,"class-name":f(i).b("virtual-list"),data:f(c),total:f(c).length,height:te.height,"item-size":f(o),"perf-mode":te.perfMode,"scrollbar-always-on":te.scrollbarAlwaysOn},{default:W(({data:oe,index:J,style:ee})=>[(_(),ue(Koe,{key:oe[J].key,style:Je(ee),node:oe[J],expanded:oe[J].expanded,"show-checkbox":te.showCheckbox,checked:f(h)(oe[J]),indeterminate:f(v)(oe[J]),"item-size":f(o),disabled:f(m)(oe[J]),current:f(g)(oe[J]),"hidden-expand-icon":f(y)(oe[J]),onClick:f(b),onToggle:f(p),onCheck:f(k),onDrop:f(C)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode","scrollbar-always-on"])):(_(),w("div",{key:1,class:V(f(i).e("empty-block"))},[be(te.$slots,"empty",{},()=>{var oe;return[l("span",{class:V(f(i).e("empty-text"))},I((oe=te.emptyText)!=null?oe:f(r)("el.tree.emptyText")),3)]})],2))],2))}});var Woe=ze(joe,[["__file","tree.vue"]]);const Goe=Rt(Woe),i5=Symbol("uploadContextKey"),Yoe="ElUpload";class Xoe extends Error{constructor(t,n,a,s){super(t),this.name="UploadAjaxError",this.status=n,this.method=a,this.url=s}}function WS(e,t,n){let a;return n.response?a=`${n.response.error||n.response}`:n.responseText?a=`${n.responseText}`:a=`fail to ${t.method} ${e} ${n.status}`,new Xoe(a,n.status,t.method,e)}function Qoe(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Joe=e=>{typeof XMLHttpRequest>"u"&&Ca(Yoe,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",o=>{const r=o;r.percent=o.total>0?o.loaded/o.total*100:0,e.onProgress(r)});const a=new FormData;if(e.data)for(const[o,r]of Object.entries(e.data))Ve(r)&&r.length?a.append(o,...r):a.append(o,r);a.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(WS(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(WS(n,e,t));e.onSuccess(Qoe(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const s=e.headers||{};if(s instanceof Headers)s.forEach((o,r)=>t.setRequestHeader(r,o));else for(const[o,r]of Object.entries(s))ba(r)||t.setRequestHeader(o,String(r));return t.send(a),t},c5=["text","picture","picture-card"];let Zoe=1;const d1=()=>Date.now()+Zoe++,u5=Ue({action:{type:String,default:"#"},headers:{type:ge(Object)},method:{type:String,default:"post"},data:{type:ge([Object,Function,Promise]),default:()=>Zn({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:ge(Array),default:()=>Zn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:c5,default:"text"},httpRequest:{type:ge(Function),default:Joe},disabled:Boolean,limit:Number}),ere=Ue({...u5,beforeUpload:{type:ge(Function),default:Cn},beforeRemove:{type:ge(Function)},onRemove:{type:ge(Function),default:Cn},onChange:{type:ge(Function),default:Cn},onPreview:{type:ge(Function),default:Cn},onSuccess:{type:ge(Function),default:Cn},onProgress:{type:ge(Function),default:Cn},onError:{type:ge(Function),default:Cn},onExceed:{type:ge(Function),default:Cn},crossorigin:{type:ge(String)}}),tre=Ue({files:{type:ge(Array),default:()=>Zn([])},disabled:Boolean,handlePreview:{type:ge(Function),default:Cn},listType:{type:String,values:c5,default:"text"},crossorigin:{type:ge(String)}}),nre={remove:e=>!!e},are=le({name:"ElUploadList"}),sre=le({...are,props:tre,emits:nre,setup(e,{emit:t}){const n=e,{t:a}=rn(),s=Le("upload"),o=Le("icon"),r=Le("list"),i=Xa(),c=T(!1),u=x(()=>[s.b("list"),s.bm("list",n.listType),s.is("disabled",n.disabled)]),d=p=>{t("remove",p)};return(p,v)=>(_(),ue(qx,{tag:"ul",class:V(f(u)),name:f(r).b()},{default:W(()=>[(_(!0),w(_e,null,Re(p.files,(h,m)=>(_(),w("li",{key:h.uid||h.name,class:V([f(s).be("list","item"),f(s).is(h.status),{focusing:c.value}]),tabindex:"0",onKeydown:yn(g=>!f(i)&&d(h),["delete"]),onFocus:g=>c.value=!0,onBlur:g=>c.value=!1,onClick:g=>c.value=!1},[be(p.$slots,"default",{file:h,index:m},()=>[p.listType==="picture"||h.status!=="uploading"&&p.listType==="picture-card"?(_(),w("img",{key:0,class:V(f(s).be("list","item-thumbnail")),src:h.url,crossorigin:p.crossorigin,alt:""},null,10,["src","crossorigin"])):K("v-if",!0),h.status==="uploading"||p.listType!=="picture-card"?(_(),w("div",{key:1,class:V(f(s).be("list","item-info"))},[l("a",{class:V(f(s).be("list","item-name")),onClick:qe(g=>p.handlePreview(h),["prevent"])},[z(f(ct),{class:V(f(o).m("document"))},{default:W(()=>[z(f(P9))]),_:1},8,["class"]),l("span",{class:V(f(s).be("list","item-file-name")),title:h.name},I(h.name),11,["title"])],10,["onClick"]),h.status==="uploading"?(_(),ue(f(N8),{key:0,type:p.listType==="picture-card"?"circle":"line","stroke-width":p.listType==="picture-card"?6:2,percentage:Number(h.percentage),style:Je(p.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):K("v-if",!0)],2)):K("v-if",!0),l("label",{class:V(f(s).be("list","item-status-label"))},[p.listType==="text"?(_(),ue(f(ct),{key:0,class:V([f(o).m("upload-success"),f(o).m("circle-check")])},{default:W(()=>[z(f(Vy))]),_:1},8,["class"])):["picture-card","picture"].includes(p.listType)?(_(),ue(f(ct),{key:1,class:V([f(o).m("upload-success"),f(o).m("check")])},{default:W(()=>[z(f(Np))]),_:1},8,["class"])):K("v-if",!0)],2),f(i)?K("v-if",!0):(_(),ue(f(ct),{key:2,class:V(f(o).m("close")),onClick:g=>d(h)},{default:W(()=>[z(f(nr))]),_:2},1032,["class","onClick"])),K(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),K(" This is a bug which needs to be fixed "),K(" TODO: Fix the incorrect navigation interaction "),f(i)?K("v-if",!0):(_(),w("i",{key:3,class:V(f(o).m("close-tip"))},I(f(a)("el.upload.deleteTip")),3)),p.listType==="picture-card"?(_(),w("span",{key:4,class:V(f(s).be("list","item-actions"))},[l("span",{class:V(f(s).be("list","item-preview")),onClick:g=>p.handlePreview(h)},[z(f(ct),{class:V(f(o).m("zoom-in"))},{default:W(()=>[z(f(pT))]),_:1},8,["class"])],10,["onClick"]),f(i)?K("v-if",!0):(_(),w("span",{key:0,class:V(f(s).be("list","item-delete")),onClick:g=>d(h)},[z(f(ct),{class:V(f(o).m("delete"))},{default:W(()=>[z(f(ac))]),_:1},8,["class"])],10,["onClick"]))],2)):K("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),be(p.$slots,"append")]),_:3},8,["class","name"]))}});var GS=ze(sre,[["__file","upload-list.vue"]]);const ore=Ue({disabled:Boolean}),rre={file:e=>Ve(e)},d5="ElUploadDrag",lre=le({name:d5}),ire=le({...lre,props:ore,emits:rre,setup(e,{emit:t}){Ze(i5)||Ca(d5,"usage: ");const a=Le("upload"),s=T(!1),o=Xa(),r=u=>{if(o.value)return;s.value=!1,u.stopPropagation();const d=Array.from(u.dataTransfer.files),p=u.dataTransfer.items||[];d.forEach((v,h)=>{var m;const g=p[h],y=(m=g==null?void 0:g.webkitGetAsEntry)==null?void 0:m.call(g);y&&(v.isDirectory=y.isDirectory)}),t("file",d)},i=()=>{o.value||(s.value=!0)},c=u=>{u.currentTarget.contains(u.relatedTarget)||(s.value=!1)};return(u,d)=>(_(),w("div",{class:V([f(a).b("dragger"),f(a).is("dragover",s.value)]),onDrop:qe(r,["prevent"]),onDragover:qe(i,["prevent"]),onDragleave:qe(c,["prevent"])},[be(u.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var cre=ze(ire,[["__file","upload-dragger.vue"]]);const ure=Ue({...u5,beforeUpload:{type:ge(Function),default:Cn},onRemove:{type:ge(Function),default:Cn},onStart:{type:ge(Function),default:Cn},onSuccess:{type:ge(Function),default:Cn},onProgress:{type:ge(Function),default:Cn},onError:{type:ge(Function),default:Cn},onExceed:{type:ge(Function),default:Cn}}),dre=le({name:"ElUploadContent",inheritAttrs:!1}),fre=le({...dre,props:ure,setup(e,{expose:t}){const n=e,a=Le("upload"),s=Xa(),o=Fn({}),r=Fn(),i=g=>{if(g.length===0)return;const{autoUpload:y,limit:b,fileList:C,multiple:k,onStart:S,onExceed:$}=n;if(b&&C.length+g.length>b){$(g,C);return}k||(g=g.slice(0,1));for(const E of g){const R=E;R.uid=d1(),S(R),y&&c(R)}},c=async g=>{if(r.value.value="",!n.beforeUpload)return d(g);let y,b={};try{const k=n.data,S=n.beforeUpload(g);b=Df(n.data)?Nh(n.data):n.data,y=await S,Df(n.data)&&$a(k,b)&&(b=Nh(n.data))}catch{y=!1}if(y===!1){n.onRemove(g);return}let C=g;y instanceof Blob&&(y instanceof File?C=y:C=new File([y],g.name,{type:g.type})),d(Object.assign(C,{uid:g.uid}),b)},u=async(g,y)=>vt(g)?g(y):g,d=async(g,y)=>{const{headers:b,data:C,method:k,withCredentials:S,name:$,action:E,onProgress:R,onSuccess:A,onError:N,httpRequest:P}=n;try{y=await u(y??C,g)}catch{n.onRemove(g);return}const{uid:B}=g,M={headers:b||{},withCredentials:S,file:g,data:y,method:k,filename:$,action:E,onProgress:F=>{R(F,g)},onSuccess:F=>{A(F,g),delete o.value[B]},onError:F=>{N(F,g),delete o.value[B]}},j=P(M);o.value[B]=j,j instanceof Promise&&j.then(M.onSuccess,M.onError)},p=g=>{const y=g.target.files;y&&i(Array.from(y))},v=()=>{s.value||(r.value.value="",r.value.click())},h=()=>{v()};return t({abort:g=>{tT(o.value).filter(g?([b])=>String(g.uid)===b:()=>!0).forEach(([b,C])=>{C instanceof XMLHttpRequest&&C.abort(),delete o.value[b]})},upload:c}),(g,y)=>(_(),w("div",{class:V([f(a).b(),f(a).m(g.listType),f(a).is("drag",g.drag),f(a).is("disabled",f(s))]),tabindex:f(s)?"-1":"0",onClick:v,onKeydown:yn(qe(h,["self"]),["enter","space"])},[g.drag?(_(),ue(cre,{key:0,disabled:f(s),onFile:i},{default:W(()=>[be(g.$slots,"default")]),_:3},8,["disabled"])):be(g.$slots,"default",{key:1}),l("input",{ref_key:"inputRef",ref:r,class:V(f(a).e("input")),name:g.name,disabled:f(s),multiple:g.multiple,accept:g.accept,type:"file",onChange:p,onClick:qe(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var YS=ze(fre,[["__file","upload-content.vue"]]);const XS="ElUpload",QS=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},pre=(e,t)=>{const n=W4(e,"fileList",void 0,{passive:!0}),a=h=>n.value.find(m=>m.uid===h.uid);function s(h){var m;(m=t.value)==null||m.abort(h)}function o(h=["ready","uploading","success","fail"]){n.value=n.value.filter(m=>!h.includes(m.status))}function r(h){n.value=n.value.filter(m=>m.uid!==h.uid)}const i=(h,m)=>{const g=a(m);g&&(console.error(h),g.status="fail",r(g),e.onError(h,g,n.value),e.onChange(g,n.value))},c=(h,m)=>{const g=a(m);g&&(e.onProgress(h,g,n.value),g.status="uploading",g.percentage=Math.round(h.percent))},u=(h,m)=>{const g=a(m);g&&(g.status="success",g.response=h,e.onSuccess(h,g,n.value),e.onChange(g,n.value))},d=h=>{ba(h.uid)&&(h.uid=d1());const m={name:h.name,percentage:0,status:"ready",size:h.size,raw:h,uid:h.uid};if(e.listType==="picture-card"||e.listType==="picture")try{m.url=URL.createObjectURL(h)}catch(g){g.message,e.onError(g,m,n.value)}n.value=[...n.value,m],e.onChange(m,n.value)},p=async h=>{const m=h instanceof File?a(h):h;m||Ca(XS,"file to be removed not found");const g=y=>{s(y),r(y),e.onRemove(y,n.value),QS(y)};e.beforeRemove?await e.beforeRemove(m,n.value)!==!1&&g(m):g(m)};function v(){n.value.filter(({status:h})=>h==="ready").forEach(({raw:h})=>{var m;return h&&((m=t.value)==null?void 0:m.upload(h))})}return Te(()=>e.listType,h=>{h!=="picture-card"&&h!=="picture"||(n.value=n.value.map(m=>{const{raw:g,url:y}=m;if(!y&&g)try{m.url=URL.createObjectURL(g)}catch(b){e.onError(b,m,n.value)}return m}))}),Te(n,h=>{for(const m of h)m.uid||(m.uid=d1()),m.status||(m.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:s,clearFiles:o,handleError:i,handleProgress:c,handleStart:d,handleSuccess:u,handleRemove:p,submit:v,revokeFileObjectURL:QS}},vre=le({name:"ElUpload"}),hre=le({...vre,props:ere,setup(e,{expose:t}){const n=e,a=Xa(),s=Fn(),{abort:o,submit:r,clearFiles:i,uploadFiles:c,handleStart:u,handleError:d,handleRemove:p,handleSuccess:v,handleProgress:h,revokeFileObjectURL:m}=pre(n,s),g=x(()=>n.listType==="picture-card"),y=x(()=>({...n,fileList:c.value,onStart:u,onProgress:h,onSuccess:v,onError:d,onRemove:p}));return on(()=>{c.value.forEach(m)}),Gt(i5,{accept:gn(n,"accept")}),t({abort:o,submit:r,clearFiles:i,handleStart:u,handleRemove:p}),(b,C)=>(_(),w("div",null,[f(g)&&b.showFileList?(_(),ue(GS,{key:0,disabled:f(a),"list-type":b.listType,files:f(c),crossorigin:b.crossorigin,"handle-preview":b.onPreview,onRemove:f(p)},bo({append:W(()=>[z(YS,Kt({ref_key:"uploadRef",ref:s},f(y)),{default:W(()=>[b.$slots.trigger?be(b.$slots,"trigger",{key:0}):K("v-if",!0),!b.$slots.trigger&&b.$slots.default?be(b.$slots,"default",{key:1}):K("v-if",!0)]),_:3},16)]),_:2},[b.$slots.file?{name:"default",fn:W(({file:k,index:S})=>[be(b.$slots,"file",{file:k,index:S})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):K("v-if",!0),!f(g)||f(g)&&!b.showFileList?(_(),ue(YS,Kt({key:1,ref_key:"uploadRef",ref:s},f(y)),{default:W(()=>[b.$slots.trigger?be(b.$slots,"trigger",{key:0}):K("v-if",!0),!b.$slots.trigger&&b.$slots.default?be(b.$slots,"default",{key:1}):K("v-if",!0)]),_:3},16)):K("v-if",!0),b.$slots.trigger?be(b.$slots,"default",{key:2}):K("v-if",!0),be(b.$slots,"tip"),!f(g)&&b.showFileList?(_(),ue(GS,{key:3,disabled:f(a),"list-type":b.listType,files:f(c),crossorigin:b.crossorigin,"handle-preview":b.onPreview,onRemove:f(p)},bo({_:2},[b.$slots.file?{name:"default",fn:W(({file:k,index:S})=>[be(b.$slots,"file",{file:k,index:S})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):K("v-if",!0)]))}});var mre=ze(hre,[["__file","upload.vue"]]);const gre=Rt(mre),_re=Ue({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:ge([String,Array]),default:"Element Plus"},font:{type:ge(Object)},gap:{type:ge(Array),default:()=>[100,100]},offset:{type:ge(Array)}});function yre(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function bre(e){return Object.keys(e).map(t=>`${yre(t)}: ${e[t]};`).join(" ")}function wre(){return window.devicePixelRatio||1}const Cre=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},f5=3,kre={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function _g(e,t,n=1){const a=document.createElement("canvas"),s=a.getContext("2d"),o=e*n,r=t*n;return a.setAttribute("width",`${o}px`),a.setAttribute("height",`${r}px`),s.save(),[s,a,o,r]}function Sre(){function e(t,n,a,s,o,r,i,c,u){const[d,p,v,h]=_g(s,o,a);if(t instanceof HTMLImageElement)d.drawImage(t,0,0,v,h);else{const{color:te,fontSize:ie,fontStyle:oe,fontWeight:J,fontFamily:ee,textAlign:Q,textBaseline:H}=r,X=Number(ie)*a;d.font=`${oe} normal ${J} ${X}px/${o}px ${ee}`,d.fillStyle=te,d.textAlign=Q,d.textBaseline=H;const he=Ve(t)?t:[t];he==null||he.forEach((D,Y)=>{const[ne,re]=kre[Q];d.fillText(D??"",v*ne+u*re,Y*(X+f5*a))})}const m=Math.PI/180*Number(n),g=Math.max(s,o),[y,b,C]=_g(g,g,a);y.translate(C/2,C/2),y.rotate(m),v>0&&h>0&&y.drawImage(p,-v/2,-h/2);function k(te,ie){const oe=te*Math.cos(m)-ie*Math.sin(m),J=te*Math.sin(m)+ie*Math.cos(m);return[oe,J]}let S=0,$=0,E=0,R=0;const A=v/2,N=h/2;[[0-A,0-N],[0+A,0-N],[0+A,0+N],[0-A,0+N]].forEach(([te,ie])=>{const[oe,J]=k(te,ie);S=Math.min(S,oe),$=Math.max($,oe),E=Math.min(E,J),R=Math.max(R,J)});const B=S+C/2,M=E+C/2,j=$-S,F=R-E,q=i*a,L=c*a,U=(j+q)*2,O=F+L,[G,ae]=_g(U,O);function Z(te=0,ie=0){G.drawImage(b,B,M,j,F,te,ie,j,F)}return Z(),Z(j+q,-F/2-L/2),Z(j+q,+F/2+L/2),[ae.toDataURL(),U/a,O/a]}return e}const Ere=le({name:"ElWatermark"}),$re=le({...Ere,props:_re,setup(e){const t=e,n={position:"relative"},a=x(()=>{var P,B;return(B=(P=t.font)==null?void 0:P.color)!=null?B:"rgba(0,0,0,.15)"}),s=x(()=>{var P,B;return(B=(P=t.font)==null?void 0:P.fontSize)!=null?B:16}),o=x(()=>{var P,B;return(B=(P=t.font)==null?void 0:P.fontWeight)!=null?B:"normal"}),r=x(()=>{var P,B;return(B=(P=t.font)==null?void 0:P.fontStyle)!=null?B:"normal"}),i=x(()=>{var P,B;return(B=(P=t.font)==null?void 0:P.fontFamily)!=null?B:"sans-serif"}),c=x(()=>{var P,B;return(B=(P=t.font)==null?void 0:P.textAlign)!=null?B:"center"}),u=x(()=>{var P,B;return(B=(P=t.font)==null?void 0:P.textBaseline)!=null?B:"hanging"}),d=x(()=>t.gap[0]),p=x(()=>t.gap[1]),v=x(()=>d.value/2),h=x(()=>p.value/2),m=x(()=>{var P,B;return(B=(P=t.offset)==null?void 0:P[0])!=null?B:v.value}),g=x(()=>{var P,B;return(B=(P=t.offset)==null?void 0:P[1])!=null?B:h.value}),y=()=>{const P={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let B=m.value-v.value,M=g.value-h.value;return B>0&&(P.left=`${B}px`,P.width=`calc(100% - ${B}px)`,B=0),M>0&&(P.top=`${M}px`,P.height=`calc(100% - ${M}px)`,M=0),P.backgroundPosition=`${B}px ${M}px`,P},b=Fn(null),C=Fn(),k=T(!1),S=()=>{C.value&&(C.value.remove(),C.value=void 0)},$=(P,B)=>{var M;b.value&&C.value&&(k.value=!0,C.value.setAttribute("style",bre({...y(),backgroundImage:`url('${P}')`,backgroundSize:`${Math.floor(B)}px`})),(M=b.value)==null||M.append(C.value),setTimeout(()=>{k.value=!1}))},E=P=>{let B=120,M=64,j=0;const{image:F,content:q,width:L,height:U,rotate:O}=t;if(!F&&P.measureText){P.font=`${Number(s.value)}px ${i.value}`;const G=Ve(q)?q:[q];let ae=0,Z=0;G.forEach(ie=>{const{width:oe,fontBoundingBoxAscent:J,fontBoundingBoxDescent:ee,actualBoundingBoxAscent:Q,actualBoundingBoxDescent:H}=P.measureText(ie),X=tn(J)?Q+H:J+ee;oe>ae&&(ae=Math.ceil(oe)),X>Z&&(Z=Math.ceil(X))}),B=ae,M=Z*G.length+(G.length-1)*f5;const te=Math.PI/180*Number(O);j=Math.ceil(Math.abs(Math.sin(te)*M)/2),B+=j}return[L??B,U??M,j]},R=Sre(),A=()=>{const B=document.createElement("canvas").getContext("2d"),M=t.image,j=t.content,F=t.rotate;if(B){C.value||(C.value=document.createElement("div"));const q=wre(),[L,U,O]=E(B),G=ae=>{const[Z,te]=R(ae||"",F,q,L,U,{color:a.value,fontSize:s.value,fontStyle:r.value,fontWeight:o.value,fontFamily:i.value,textAlign:c.value,textBaseline:u.value},d.value,p.value,O);$(Z,te)};if(M){const ae=new Image;ae.onload=()=>{G(ae)},ae.onerror=()=>{G(j)},ae.crossOrigin="anonymous",ae.referrerPolicy="no-referrer",ae.src=M}else G(j)}};return ft(()=>{A()}),Te(()=>t,()=>{A()},{deep:!0,flush:"post"}),on(()=>{S()}),j4(b,P=>{k.value||P.forEach(B=>{Cre(B,C.value)&&(S(),A())})},{attributes:!0,subtree:!0,childList:!0}),(P,B)=>(_(),w("div",{ref_key:"containerRef",ref:b,style:Je([n])},[be(P.$slots,"default")],4))}});var xre=ze($re,[["__file","watermark.vue"]]);const Tre=Rt(xre),Ire=Ue({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:ge(Object)},targetAreaClickable:{type:Boolean,default:!0}}),Are=(e,t,n,a,s)=>{const o=T(null),r=()=>{let p;return ut(e.value)?p=document.querySelector(e.value):vt(e.value)?p=e.value():p=e.value,p},i=()=>{const p=r();if(!p||!t.value){o.value=null;return}Nre(p)||p.scrollIntoView(s.value);const{left:v,top:h,width:m,height:g}=p.getBoundingClientRect();o.value={left:v,top:h,width:m,height:g,radius:0}};ft(()=>{Te([t,e],()=>{i()},{immediate:!0}),window.addEventListener("resize",i)}),on(()=>{window.removeEventListener("resize",i)});const c=p=>{var v;return(v=Ve(n.value.offset)?n.value.offset[p]:n.value.offset)!=null?v:6},u=x(()=>{var p;if(!o.value)return o.value;const v=c(0),h=c(1),m=((p=n.value)==null?void 0:p.radius)||2;return{left:o.value.left-v,top:o.value.top-h,width:o.value.width+v*2,height:o.value.height+h*2,radius:m}}),d=x(()=>{const p=r();return!a.value||!p||!window.DOMRect?p||void 0:{getBoundingClientRect(){var v,h,m,g;return window.DOMRect.fromRect({width:((v=u.value)==null?void 0:v.width)||0,height:((h=u.value)==null?void 0:h.height)||0,x:((m=u.value)==null?void 0:m.left)||0,y:((g=u.value)==null?void 0:g.top)||0})}}});return{mergedPosInfo:u,triggerTarget:d}},i0=Symbol("ElTour");function Nre(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:a,right:s,bottom:o,left:r}=e.getBoundingClientRect();return a>=0&&r>=0&&s<=t&&o<=n}const Rre=(e,t,n,a,s,o,r,i)=>{const c=T(),u=T(),d=T({}),p={x:c,y:u,placement:a,strategy:s,middlewareData:d},v=x(()=>{const b=[qI(f(o)),Bse(),Mse(),Pre()];return f(i)&&f(n)&&b.push(jI({element:f(n)})),b}),h=async()=>{if(!cn)return;const b=f(e),C=f(t);if(!b||!C)return;const k=await WI(b,C,{placement:f(a),strategy:f(s),middleware:f(v)});qu(p).forEach(S=>{p[S].value=k[S]})},m=x(()=>{if(!f(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:f(r)};const{overflow:b}=f(d);return{position:f(s),zIndex:f(r),top:f(u)!=null?`${f(u)}px`:"",left:f(c)!=null?`${f(c)}px`:"",maxWidth:b!=null&&b.maxWidth?`${b==null?void 0:b.maxWidth}px`:""}}),g=x(()=>{if(!f(i))return{};const{arrow:b}=f(d);return{left:(b==null?void 0:b.x)!=null?`${b==null?void 0:b.x}px`:"",top:(b==null?void 0:b.y)!=null?`${b==null?void 0:b.y}px`:""}});let y;return ft(()=>{const b=f(e),C=f(t);b&&C&&(y=Rse(b,C,h)),Ls(()=>{h()})}),on(()=>{y&&y()}),{update:h,contentStyle:m,arrowStyle:g}},Pre=()=>({name:"overflow",async fn(e){const t=await Pse(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),Mre=le({name:"ElTourMask",inheritAttrs:!1}),Bre=le({...Mre,props:Ire,setup(e){const t=e,{ns:n}=Ze(i0),a=x(()=>{var c,u;return(u=(c=t.pos)==null?void 0:c.radius)!=null?u:2}),s=x(()=>{const c=a.value,u=`a${c},${c} 0 0 1`;return{topRight:`${u} ${c},${c}`,bottomRight:`${u} ${-c},${c}`,bottomLeft:`${u} ${-c},${-c}`,topLeft:`${u} ${c},${-c}`}}),o=x(()=>{const c=window.innerWidth,u=window.innerHeight,d=s.value,p=`M${c},0 L0,0 L0,${u} L${c},${u} L${c},0 Z`,v=a.value;return t.pos?`${p} M${t.pos.left+v},${t.pos.top} h${t.pos.width-v*2} ${d.topRight} v${t.pos.height-v*2} ${d.bottomRight} h${-t.pos.width+v*2} ${d.bottomLeft} v${-t.pos.height+v*2} ${d.topLeft} z`:p}),r=x(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),i=x(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return gb(gn(t,"visible"),{ns:n}),(c,u)=>c.visible?(_(),w("div",Kt({key:0,class:f(n).e("mask"),style:f(r)},c.$attrs),[(_(),w("svg",{style:{width:"100%",height:"100%"}},[l("path",{class:V(f(n).e("hollow")),style:Je(f(i)),d:f(o)},null,14,["d"])]))],16)):K("v-if",!0)}});var Lre=ze(Bre,[["__file","mask.vue"]]);const Ore=["absolute","fixed"],Dre=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],c2=Ue({placement:{type:ge(String),values:Dre,default:"bottom"},reference:{type:ge(Object),default:null},strategy:{type:ge(String),values:Ore,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),Vre={close:()=>!0},Fre=le({name:"ElTourContent"}),Ure=le({...Fre,props:c2,emits:Vre,setup(e,{emit:t}){const n=e,a=T(n.placement),s=T(n.strategy),o=T(null),r=T(null);Te(()=>n.placement,()=>{a.value=n.placement});const{contentStyle:i,arrowStyle:c}=Rre(gn(n,"reference"),o,r,a,s,gn(n,"offset"),gn(n,"zIndex"),gn(n,"showArrow")),u=x(()=>a.value.split("-")[0]),{ns:d}=Ze(i0),p=()=>{t("close")},v=h=>{h.detail.focusReason==="pointer"&&h.preventDefault()};return(h,m)=>(_(),w("div",{ref_key:"contentRef",ref:o,style:Je(f(i)),class:V(f(d).e("content")),"data-side":f(u),tabindex:"-1"},[z(f(Ed),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":o.value||void 0,onReleaseRequested:p,onFocusoutPrevented:v},{default:W(()=>[be(h.$slots,"default")]),_:3},8,["focus-trap-el"]),h.showArrow?(_(),w("span",{key:0,ref_key:"arrowRef",ref:r,style:Je(f(c)),class:V(f(d).e("arrow"))},null,6)):K("v-if",!0)],14,["data-side"]))}});var zre=ze(Ure,[["__file","content.vue"]]),Hre=le({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let a=0;return()=>{var s,o;const r=(s=t.default)==null?void 0:s.call(t),i=[];let c=0;function u(d){Ve(d)&&d.forEach(p=>{var v;((v=(p==null?void 0:p.type)||{})==null?void 0:v.name)==="ElTourStep"&&(i.push(p),c+=1)})}return r.length&&u(qr((o=r[0])==null?void 0:o.children)),a!==c&&(a=c,n("update-total",c)),i.length?i[e.current]:null}}});const Kre=Ue({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:wn},placement:c2.placement,contentStyle:{type:ge([Object])},mask:{type:ge([Boolean,Object]),default:!0},gap:{type:ge(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:ge([Boolean,Object]),default:()=>({block:"center"})},type:{type:ge(String)},appendTo:{type:Gm.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),qre={[Et]:e=>En(e),"update:current":e=>gt(e),close:e=>gt(e),finish:()=>!0,change:e=>gt(e)},jre=le({name:"ElTour"}),Wre=le({...jre,props:Kre,emits:qre,setup(e,{emit:t}){const n=e,a=Le("tour"),s=T(0),o=T(),r=W4(n,"current",t,{passive:!0}),i=x(()=>{var N;return(N=o.value)==null?void 0:N.target}),c=x(()=>[a.b(),y.value==="primary"?a.m("primary"):""]),u=x(()=>{var N;return((N=o.value)==null?void 0:N.placement)||n.placement}),d=x(()=>{var N,P;return(P=(N=o.value)==null?void 0:N.contentStyle)!=null?P:n.contentStyle}),p=x(()=>{var N,P;return(P=(N=o.value)==null?void 0:N.mask)!=null?P:n.mask}),v=x(()=>!!p.value&&n.modelValue),h=x(()=>En(p.value)?void 0:p.value),m=x(()=>{var N,P;return!!i.value&&((P=(N=o.value)==null?void 0:N.showArrow)!=null?P:n.showArrow)}),g=x(()=>{var N,P;return(P=(N=o.value)==null?void 0:N.scrollIntoViewOptions)!=null?P:n.scrollIntoViewOptions}),y=x(()=>{var N,P;return(P=(N=o.value)==null?void 0:N.type)!=null?P:n.type}),{nextZIndex:b}=kd(),C=b(),k=x(()=>{var N;return(N=n.zIndex)!=null?N:C}),{mergedPosInfo:S,triggerTarget:$}=Are(i,gn(n,"modelValue"),gn(n,"gap"),p,g);Te(()=>n.modelValue,N=>{N||(r.value=0)});const E=()=>{n.closeOnPressEscape&&(t(Et,!1),t("close",r.value))},R=N=>{s.value=N},A=Ta();return Gt(i0,{currentStep:o,current:r,total:s,showClose:gn(n,"showClose"),closeIcon:gn(n,"closeIcon"),mergedType:y,ns:a,slots:A,updateModelValue(N){t(Et,N)},onClose(){t("close",r.value)},onFinish(){t("finish")},onChange(){t(Xt,r.value)}}),(N,P)=>(_(),w(_e,null,[z(f($d),{to:N.appendTo},{default:W(()=>{var B,M;return[l("div",Kt({class:f(c)},N.$attrs),[z(Lre,{visible:f(v),fill:(B=f(h))==null?void 0:B.color,style:Je((M=f(h))==null?void 0:M.style),pos:f(S),"z-index":f(k),"target-area-clickable":N.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),N.modelValue?(_(),ue(zre,{key:f(r),reference:f($),placement:f(u),"show-arrow":f(m),"z-index":f(k),style:Je(f(d)),onClose:E},{default:W(()=>[z(f(Hre),{current:f(r),onUpdateTotal:R},{default:W(()=>[be(N.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):K("v-if",!0)],16)]}),_:3},8,["to"]),K(" just for IDE "),K("v-if",!0)],64))}});var Gre=ze(Wre,[["__file","tour.vue"]]);const Yre=Ue({target:{type:ge([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:wn},showArrow:{type:Boolean,default:void 0},placement:c2.placement,mask:{type:ge([Boolean,Object]),default:void 0},contentStyle:{type:ge([Object])},prevButtonProps:{type:ge(Object)},nextButtonProps:{type:ge(Object)},scrollIntoViewOptions:{type:ge([Boolean,Object]),default:void 0},type:{type:ge(String)}}),Xre={close:()=>!0},Qre=le({name:"ElTourStep"}),Jre=le({...Qre,props:Yre,emits:Xre,setup(e,{emit:t}){const n=e,{Close:a}=vT,{t:s}=rn(),{currentStep:o,current:r,total:i,showClose:c,closeIcon:u,mergedType:d,ns:p,slots:v,updateModelValue:h,onClose:m,onFinish:g,onChange:y}=Ze(i0);Te(n,N=>{o.value=N},{immediate:!0});const b=x(()=>{var N;return(N=n.showClose)!=null?N:c.value}),C=x(()=>{var N,P;return(P=(N=n.closeIcon)!=null?N:u.value)!=null?P:a}),k=N=>{if(N)return z4(N,["children","onClick"])},S=()=>{var N,P;r.value-=1,(N=n.prevButtonProps)!=null&&N.onClick&&((P=n.prevButtonProps)==null||P.onClick()),y()},$=()=>{var N;r.value>=i.value-1?E():r.value+=1,(N=n.nextButtonProps)!=null&&N.onClick&&n.nextButtonProps.onClick(),y()},E=()=>{R(),g()},R=()=>{h(!1),m(),t("close")},A=N=>{const P=N.target;if(P!=null&&P.isContentEditable)return;const M={[tt.left]:()=>r.value>0&&S(),[tt.right]:$}[N.code];M&&(N.preventDefault(),M())};return ft(()=>{window.addEventListener("keydown",A)}),on(()=>{window.removeEventListener("keydown",A)}),(N,P)=>(_(),w(_e,null,[f(b)?(_(),w("button",{key:0,"aria-label":"Close",class:V(f(p).e("closebtn")),type:"button",onClick:R},[z(f(ct),{class:V(f(p).e("close"))},{default:W(()=>[(_(),ue(Ft(f(C))))]),_:1},8,["class"])],2)):K("v-if",!0),l("header",{class:V([f(p).e("header"),{"show-close":f(c)}])},[be(N.$slots,"header",{},()=>[l("span",{role:"heading",class:V(f(p).e("title"))},I(N.title),3)])],2),l("div",{class:V(f(p).e("body"))},[be(N.$slots,"default",{},()=>[l("span",null,I(N.description),1)])],2),l("footer",{class:V(f(p).e("footer"))},[l("div",{class:V(f(p).b("indicators"))},[f(v).indicators?(_(),ue(Ft(f(v).indicators),{key:0,current:f(r),total:f(i)},null,8,["current","total"])):(_(!0),w(_e,{key:1},Re(f(i),(B,M)=>(_(),w("span",{key:B,class:V([f(p).b("indicator"),M===f(r)?"is-active":""])},null,2))),128))],2),l("div",{class:V(f(p).b("buttons"))},[f(r)>0?(_(),ue(f(ns),Kt({key:0,size:"small",type:f(d)},k(N.prevButtonProps),{onClick:S}),{default:W(()=>{var B,M;return[Ce(I((M=(B=N.prevButtonProps)==null?void 0:B.children)!=null?M:f(s)("el.tour.previous")),1)]}),_:1},16,["type"])):K("v-if",!0),f(r)<=f(i)-1?(_(),ue(f(ns),Kt({key:1,size:"small",type:f(d)==="primary"?"default":"primary"},k(N.nextButtonProps),{onClick:$}),{default:W(()=>{var B,M;return[Ce(I((M=(B=N.nextButtonProps)==null?void 0:B.children)!=null?M:f(r)===f(i)-1?f(s)("el.tour.finish"):f(s)("el.tour.next")),1)]}),_:1},16,["type"])):K("v-if",!0)],2)],2)],64))}});var p5=ze(Jre,[["__file","step.vue"]]);const Zre=Rt(Gre,{TourStep:p5}),ele=ea(p5),tle=Ue({container:{type:ge([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:ge(String),default:"default"},direction:{type:ge(String),default:"vertical"},selectScrollTop:Boolean}),nle={change:e=>ut(e),click:(e,t)=>e instanceof MouseEvent&&(ut(t)||tn(t))},v5=Symbol("anchor"),Rv=e=>{if(!cn||e==="")return null;if(ut(e))try{return document.querySelector(e)}catch{return null}return e};function ale(e){let t=0;const n=(...a)=>{t&&Oc(t),t=Oi(()=>{e(...a),t=0})};return n.cancel=()=>{Oc(t),t=0},n}const sle=le({name:"ElAnchor"}),ole=le({...sle,props:tle,emits:nle,setup(e,{expose:t,emit:n}){const a=e,s=Ta(),o=T(""),r=T({}),i=T(null),c=T(null),u=T(),d={};let p=!1,v=0;const h=Le("anchor"),m=x(()=>[h.b(),a.type==="underline"?h.m("underline"):"",h.m(a.direction)]),g=P=>{d[P.href]=P.el},y=P=>{delete d[P]},b=P=>{o.value!==P&&(o.value=P,n(Xt,P))};let C=null;const k=P=>{if(!u.value)return;const B=Rv(P);if(!B)return;C&&C(),p=!0;const M=ok(B,u.value),j=S_(B,M),F=M.scrollHeight-M.clientHeight,q=Math.min(j-a.offset,F);C=Z7(u.value,v,q,a.duration,()=>{setTimeout(()=>{p=!1},20)})},S=P=>{P&&(b(P),k(P))},$=(P,B)=>{n("click",P,B),S(B)},E=ale(()=>{u.value&&(v=rk(u.value));const P=R();p||tn(P)||b(P)}),R=()=>{if(!u.value)return;const P=rk(u.value),B=[];for(const M of Object.keys(d)){const j=Rv(M);if(!j)continue;const F=ok(j,u.value),q=S_(j,F);B.push({top:q-a.offset-a.bound,href:M})}B.sort((M,j)=>M.top-j.top);for(let M=0;MP))return j.href}},A=()=>{const P=Rv(a.container);!P||Ip(P)?u.value=window:u.value=P};Rn(u,"scroll",E);const N=()=>{it(()=>{if(!i.value||!c.value||!o.value){r.value={};return}const P=d[o.value];if(!P){r.value={};return}const B=i.value.getBoundingClientRect(),M=c.value.getBoundingClientRect(),j=P.getBoundingClientRect();if(a.direction==="horizontal"){const F=j.left-B.left;r.value={left:`${F}px`,width:`${j.width}px`,opacity:1}}else{const F=j.top-B.top+(j.height-M.height)/2;r.value={top:`${F}px`,opacity:1}}})};return Te(o,N),Te(()=>{var P;return(P=s.default)==null?void 0:P.call(s)},N),ft(()=>{A();const P=decodeURIComponent(window.location.hash);Rv(P)?S(P):E()}),Te(()=>a.container,()=>{A()}),Gt(v5,{ns:h,direction:a.direction,currentAnchor:o,addLink:g,removeLink:y,handleClick:$}),t({scrollTo:S}),(P,B)=>(_(),w("div",{ref_key:"anchorRef",ref:i,class:V(f(m))},[P.marker?(_(),w("div",{key:0,ref_key:"markerRef",ref:c,class:V(f(h).e("marker")),style:Je(r.value)},null,6)):K("v-if",!0),l("div",{class:V(f(h).e("list"))},[be(P.$slots,"default")],2)],2))}});var rle=ze(ole,[["__file","anchor.vue"]]);const lle=Ue({title:String,href:String}),ile=le({name:"ElAnchorLink"}),cle=le({...ile,props:lle,setup(e){const t=e,n=T(null),{ns:a,direction:s,currentAnchor:o,addLink:r,removeLink:i,handleClick:c}=Ze(v5),u=x(()=>[a.e("link"),a.is("active",o.value===t.href)]),d=p=>{c(p,t.href)};return Te(()=>t.href,(p,v)=>{it(()=>{v&&i(v),p&&r({href:p,el:n.value})})}),ft(()=>{const{href:p}=t;p&&r({href:p,el:n.value})}),on(()=>{const{href:p}=t;p&&i(p)}),(p,v)=>(_(),w("div",{class:V(f(a).e("item"))},[l("a",{ref_key:"linkRef",ref:n,class:V(f(u)),href:p.href,onClick:d},[be(p.$slots,"default",{},()=>[Ce(I(p.title),1)])],10,["href"]),p.$slots["sub-link"]&&f(s)==="vertical"?(_(),w("div",{key:0,class:V(f(a).e("list"))},[be(p.$slots,"sub-link")],2)):K("v-if",!0)],2))}});var h5=ze(cle,[["__file","anchor-link.vue"]]);const ule=Rt(rle,{AnchorLink:h5}),dle=ea(h5),m5={label:"label",value:"value",disabled:"disabled"},fle=Ue({direction:{type:ge(String),default:"horizontal"},options:{type:ge(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:ge(Object),default:()=>m5},block:Boolean,size:Ma,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...Ts(["ariaLabel"])}),ple={[Et]:e=>ut(e)||gt(e)||En(e),[Xt]:e=>ut(e)||gt(e)||En(e)},vle=le({name:"ElSegmented"}),hle=le({...vle,props:fle,emits:ple,setup(e,{emit:t}){const n=e,a=Le("segmented"),s=vs(),o=xa(),r=Xa(),{formItem:i}=Is(),{inputId:c,isLabeledByFormItem:u}=rr(n,{formItemContext:i}),d=T(null),p=w7(),v=At({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),h=B=>{const M=y(B);t(Et,M),t(Xt,M)},m=x(()=>({...m5,...n.props})),g=B=>B,y=B=>Ot(B)?B[m.value.value]:B,b=B=>Ot(B)?B[m.value.label]:B,C=B=>!!(r.value||Ot(B)&&B[m.value.disabled]),k=B=>n.modelValue===y(B),S=B=>n.options.find(M=>y(M)===B),$=B=>[a.e("item"),a.is("selected",k(B)),a.is("disabled",C(B))],E=()=>{if(!d.value)return;const B=d.value.querySelector(".is-selected"),M=d.value.querySelector(".is-selected input");if(!B||!M){v.width=0,v.height=0,v.translateX=0,v.translateY=0,v.focusVisible=!1;return}v.isInit=!0,n.direction==="vertical"?(v.height=B.offsetHeight,v.translateY=B.offsetTop):(v.width=B.offsetWidth,v.translateX=B.offsetLeft);try{v.focusVisible=M.matches(":focus-visible")}catch{}},R=x(()=>[a.b(),a.m(o.value),a.is("block",n.block)]),A=x(()=>({width:n.direction==="vertical"?"100%":`${v.width}px`,height:n.direction==="vertical"?`${v.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${v.translateY}px)`:`translateX(${v.translateX}px)`,display:v.isInit?"block":"none"})),N=x(()=>[a.e("item-selected"),a.is("disabled",C(S(n.modelValue))),a.is("focus-visible",v.focusVisible)]),P=x(()=>n.name||s.value);return Xn(d,E),Te(p,E),Te(()=>n.modelValue,()=>{var B;E(),n.validateEvent&&((B=i==null?void 0:i.validate)==null||B.call(i,"change").catch(M=>void 0))},{flush:"post"}),(B,M)=>B.options.length?(_(),w("div",{key:0,id:f(c),ref_key:"segmentedRef",ref:d,class:V(f(R)),role:"radiogroup","aria-label":f(u)?void 0:B.ariaLabel||"segmented","aria-labelledby":f(u)?f(i).labelId:void 0},[l("div",{class:V([f(a).e("group"),f(a).m(n.direction)])},[l("div",{style:Je(f(A)),class:V(f(N))},null,6),(_(!0),w(_e,null,Re(B.options,(j,F)=>(_(),w("label",{key:F,class:V($(j))},[l("input",{class:V(f(a).e("item-input")),type:"radio",name:f(P),disabled:C(j),checked:k(j),onChange:q=>h(j)},null,42,["name","disabled","checked","onChange"]),l("div",{class:V(f(a).e("item-label"))},[be(B.$slots,"default",{item:g(j)},()=>[Ce(I(b(j)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):K("v-if",!0)}});var mle=ze(hle,[["__file","segmented.vue"]]);const gle=Rt(mle),_le=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value).toLowerCase().includes(n)},yle=(e,t,n)=>{const{selectionEnd:a}=e;if(a===null)return;const s=e.value,o=es(t);let r=-1,i;for(let c=a-1;c>=0;--c){const u=s[c];if(u===n||u===` `||u==="\r"){r=c;continue}if(o.includes(u)){const d=r===-1?a:r;i={pattern:s.slice(c+1,d),start:c+1,end:d,prefix:u,prefixIndex:c,splitIndex:r,selectionEnd:a};break}}return i},ble=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,a=e.selectionEnd!==null?e.selectionEnd:0,s=t.useSelectionEnd?a:n,o=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const v=document.querySelector("#input-textarea-caret-position-mirror-div");v!=null&&v.parentNode&&v.parentNode.removeChild(v)}const r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);const i=r.style,c=window.getComputedStyle(e),u=e.nodeName==="INPUT";i.whiteSpace=u?"nowrap":"pre-wrap",u||(i.wordWrap="break-word"),i.position="absolute",t.debug||(i.visibility="hidden"),o.forEach(v=>{if(u&&v==="lineHeight")if(c.boxSizing==="border-box"){const h=Number.parseInt(c.height),m=Number.parseInt(c.paddingTop)+Number.parseInt(c.paddingBottom)+Number.parseInt(c.borderTopWidth)+Number.parseInt(c.borderBottomWidth),g=m+Number.parseInt(c.lineHeight);h>g?i.lineHeight=`${h-m}px`:h===g?i.lineHeight=c.lineHeight:i.lineHeight="0"}else i.lineHeight=c.height;else i[v]=c[v]}),Uy()?e.scrollHeight>Number.parseInt(c.height)&&(i.overflowY="scroll"):i.overflow="hidden",r.textContent=e.value.slice(0,Math.max(0,s)),u&&r.textContent&&(r.textContent=r.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,s))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,r.appendChild(d);const p={top:d.offsetTop+Number.parseInt(c.borderTopWidth),left:d.offsetLeft+Number.parseInt(c.borderLeftWidth),height:Number.parseInt(c.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(r),p.left>=e.clientWidth&&(p.left=e.clientWidth),p},wle=Ue({...Rp,options:{type:ge(Array),default:()=>[]},prefix:{type:ge([String,Array]),default:"@",validator:e=>ut(e)?e.length===1:e.every(t=>ut(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:ge([Boolean,Function]),default:()=>_le,validator:e=>e===!1?!0:vt(e)},placement:{type:ge(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:ge(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:ge(Object),default:()=>({})}}),Cle={[Et]:e=>ut(e),"whole-remove":(e,t)=>ut(e)&&ut(t),input:e=>ut(e),search:(e,t)=>ut(e)&&ut(t),select:(e,t)=>ut(e.value)&&ut(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},kle=Ue({options:{type:ge(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),Sle={select:e=>ut(e.value)},Ele=le({name:"ElMentionDropdown"}),$le=le({...Ele,props:kle,emits:Sle,setup(e,{expose:t,emit:n}){const a=e,s=Le("mention"),{t:o}=rn(),r=T(-1),i=T(),c=T(),u=T(),d=(k,S)=>[s.be("dropdown","item"),s.is("hovering",r.value===S),s.is("disabled",k.disabled||a.disabled)],p=k=>{k.disabled||a.disabled||n("select",k)},v=k=>{r.value=k},h=x(()=>a.disabled||a.options.every(k=>k.disabled)),m=x(()=>a.options[r.value]),g=()=>{m.value&&n("select",m.value)},y=k=>{const{options:S}=a;if(S.length===0||h.value)return;k==="next"?(r.value++,r.value===S.length&&(r.value=0)):k==="prev"&&(r.value--,r.value<0&&(r.value=S.length-1));const $=S[r.value];if($.disabled){y(k);return}it(()=>b($))},b=k=>{var S,$,E,R;const{options:A}=a,N=A.findIndex(B=>B.value===k.value),P=(S=c.value)==null?void 0:S[N];if(P){const B=(E=($=u.value)==null?void 0:$.querySelector)==null?void 0:E.call($,`.${s.be("dropdown","wrap")}`);B&&Dy(B,P)}(R=i.value)==null||R.handleScroll()};return Te(()=>a.options,()=>{h.value||a.options.length===0?r.value=-1:r.value=0},{immediate:!0}),t({hoveringIndex:r,navigateOptions:y,selectHoverOption:g,hoverOption:m}),(k,S)=>(_(),w("div",{ref_key:"dropdownRef",ref:u,class:V(f(s).b("dropdown"))},[k.$slots.header?(_(),w("div",{key:0,class:V(f(s).be("dropdown","header"))},[be(k.$slots,"header")],2)):K("v-if",!0),et(z(f(wr),{id:k.contentId,ref_key:"scrollbarRef",ref:i,tag:"ul","wrap-class":f(s).be("dropdown","wrap"),"view-class":f(s).be("dropdown","list"),role:"listbox","aria-label":k.ariaLabel,"aria-orientation":"vertical"},{default:W(()=>[(_(!0),w(_e,null,Re(k.options,($,E)=>(_(),w("li",{id:`${k.contentId}-${E}`,ref_for:!0,ref_key:"optionRefs",ref:c,key:E,class:V(d($,E)),role:"option","aria-disabled":$.disabled||k.disabled||void 0,"aria-selected":r.value===E,onMousemove:R=>v(E),onClick:qe(R=>p($),["stop"])},[be(k.$slots,"label",{item:$,index:E},()=>{var R;return[l("span",null,I((R=$.label)!=null?R:$.value),1)]})],42,["id","aria-disabled","aria-selected","onMousemove","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[fn,k.options.length>0&&!k.loading]]),k.loading?(_(),w("div",{key:1,class:V(f(s).be("dropdown","loading"))},[be(k.$slots,"loading",{},()=>[Ce(I(f(o)("el.mention.loading")),1)])],2)):K("v-if",!0),k.$slots.footer?(_(),w("div",{key:2,class:V(f(s).be("dropdown","footer"))},[be(k.$slots,"footer")],2)):K("v-if",!0)],2))}});var xle=ze($le,[["__file","mention-dropdown.vue"]]);const Tle=le({name:"ElMention",inheritAttrs:!1}),Ile=le({...Tle,props:wle,emits:Cle,setup(e,{expose:t,emit:n}){const a=e,s=x(()=>To(a,Object.keys(Rp))),o=Le("mention"),r=Xa(),i=vs(),c=T(),u=T(),d=T(),p=T(!1),v=T(),h=T(),m=x(()=>a.showArrow?a.placement:`${a.placement}-start`),g=x(()=>a.showArrow?["bottom","top"]:["bottom-start","top-start"]),y=x(()=>{const{filterOption:M,options:j}=a;return!h.value||!M?j:j.filter(F=>M(h.value.pattern,F))}),b=x(()=>p.value&&(!!y.value.length||a.loading)),C=x(()=>{var M;return`${i.value}-${(M=d.value)==null?void 0:M.hoveringIndex}`}),k=M=>{n(Et,M),n(Ra,M),N()},S=M=>{var j,F,q,L;if(!(!("code"in M)||(j=c.value)!=null&&j.isComposing))switch(M.code){case tt.left:case tt.right:N();break;case tt.up:case tt.down:if(!p.value)return;M.preventDefault(),(F=d.value)==null||F.navigateOptions(M.code===tt.up?"prev":"next");break;case tt.enter:case tt.numpadEnter:if(!p.value)return;M.preventDefault(),(q=d.value)!=null&&q.hoverOption?(L=d.value)==null||L.selectHoverOption():p.value=!1;break;case tt.esc:if(!p.value)return;M.preventDefault(),p.value=!1;break;case tt.backspace:if(a.whole&&h.value){const{splitIndex:U,selectionEnd:O,pattern:G,prefixIndex:ae,prefix:Z}=h.value,te=A();if(!te)return;const ie=te.value,oe=a.options.find(ee=>ee.value===G);if((vt(a.checkIsWhole)?a.checkIsWhole(G,Z):oe)&&U!==-1&&U+1===O){M.preventDefault();const ee=ie.slice(0,ae)+ie.slice(U+1);n(Et,ee),n(Ra,ee),n("whole-remove",G,Z);const Q=ae;it(()=>{te.selectionStart=Q,te.selectionEnd=Q,B()})}}}},{wrapperRef:$}=Kl(c,{disabled:r,afterFocus(){N()},beforeBlur(M){var j;return(j=u.value)==null?void 0:j.isFocusInsideContent(M)},afterBlur(){p.value=!1}}),E=()=>{N()},R=M=>{if(!h.value)return;const j=A();if(!j)return;const F=j.value,{split:q}=a,L=F.slice(h.value.end),U=L.startsWith(q),O=`${M.value}${U?"":q}`,G=F.slice(0,h.value.start)+O+L;n(Et,G),n(Ra,G),n("select",M,h.value.prefix);const ae=h.value.start+O.length+(U?1:0);it(()=>{j.selectionStart=ae,j.selectionEnd=ae,j.focus(),B()})},A=()=>{var M,j;return a.type==="textarea"?(M=c.value)==null?void 0:M.textarea:(j=c.value)==null?void 0:j.input},N=()=>{setTimeout(()=>{P(),B(),it(()=>{var M;return(M=u.value)==null?void 0:M.updatePopper()})},0)},P=()=>{const M=A();if(!M)return;const j=ble(M),F=M.getBoundingClientRect(),q=c.value.$el.getBoundingClientRect();v.value={position:"absolute",width:0,height:`${j.height}px`,left:`${j.left+F.left-q.left}px`,top:`${j.top+F.top-q.top}px`}},B=()=>{const M=A();if(document.activeElement!==M){p.value=!1;return}const{prefix:j,split:F}=a;if(h.value=yle(M,j,F),h.value&&h.value.splitIndex===-1){p.value=!0,n("search",h.value.pattern,h.value.prefix);return}p.value=!1};return t({input:c,tooltip:u,dropdownVisible:b}),(M,j)=>(_(),w("div",{ref_key:"wrapperRef",ref:$,class:V(f(o).b())},[z(f(Bs),Kt(Kt(f(s),M.$attrs),{ref_key:"elInputRef",ref:c,"model-value":M.modelValue,disabled:f(r),role:f(b)?"combobox":void 0,"aria-activedescendant":f(b)?f(C)||"":void 0,"aria-controls":f(b)?f(i):void 0,"aria-expanded":f(b)||void 0,"aria-label":M.ariaLabel,"aria-autocomplete":f(b)?"none":void 0,"aria-haspopup":f(b)?"listbox":void 0,onInput:k,onKeydown:S,onMousedown:E}),bo({_:2},[Re(M.$slots,(F,q)=>({name:q,fn:W(L=>[be(M.$slots,q,po(Jr(L)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),z(f(hs),{ref_key:"tooltipRef",ref:u,visible:f(b),"popper-class":[f(o).e("popper"),M.popperClass],"popper-options":M.popperOptions,placement:f(m),"fallback-placements":f(g),effect:"light",pure:"",offset:M.offset,"show-arrow":M.showArrow},{default:W(()=>[l("div",{style:Je(v.value)},null,4)]),content:W(()=>{var F;return[z(xle,{ref_key:"dropdownRef",ref:d,options:f(y),disabled:f(r),loading:M.loading,"content-id":f(i),"aria-label":M.ariaLabel,onSelect:R,onClick:qe((F=c.value)==null?void 0:F.focus,["stop"])},bo({_:2},[Re(M.$slots,(q,L)=>({name:L,fn:W(U=>[be(M.$slots,L,po(Jr(U)))])}))]),1032,["options","disabled","loading","content-id","aria-label","onClick"])]}),_:3},8,["visible","popper-class","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var Ale=ze(Ile,[["__file","mention.vue"]]);const Nle=Rt(Ale);var Rle=[o9,CV,fz,lae,_z,Ez,jT,Oz,Dz,ns,JT,IH,MH,QH,JH,tq,w3,lq,or,fK,f3,fq,Iq,Aq,Qm,I3,nj,oj,gj,_j,yj,bj,wj,DW,X3,GW,YW,lG,o8,NG,bY,wY,CY,y8,wX,CX,ct,PX,C8,Bs,k8,GX,eQ,yQ,bQ,wQ,CQ,TQ,yJ,EJ,MJ,zT,N8,y3,EK,SK,KJ,YJ,nZ,wr,Vc,zh,ZQ,MZ,HZ,KZ,cee,vee,H8,Eee,Mee,Bee,Uee,Qte,Jte,rae,Cae,kae,Ti,Yb,Fj,Pae,Vae,Fae,hs,Zse,foe,em,Noe,Goe,gre,Tre,Zre,ele,ule,dle,gle,Nle,c8,sh];const Uo="ElInfiniteScroll",Ple=50,Mle=200,Ble=0,Lle={delay:{type:Number,default:Mle},distance:{type:Number,default:Ble},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},u2=(e,t)=>Object.entries(Lle).reduce((n,[a,s])=>{var o,r;const{type:i,default:c}=s,u=e.getAttribute(`infinite-scroll-${a}`);let d=(r=(o=t[u])!=null?o:u)!=null?r:c;return d=d==="false"?!1:d,d=i(d),n[a]=Number.isNaN(d)?c:d,n},{}),g5=e=>{const{observer:t}=e[Uo];t&&(t.disconnect(),delete e[Uo].observer)},Ole=(e,t)=>{const{container:n,containerEl:a,instance:s,observer:o,lastScrollTop:r}=e[Uo],{disabled:i,distance:c}=u2(e,s),{clientHeight:u,scrollHeight:d,scrollTop:p}=a,v=p-r;if(e[Uo].lastScrollTop=p,o||i||v<0)return;let h=!1;if(n===e)h=d-(u+p)<=c;else{const{clientTop:m,scrollHeight:g}=e,y=S_(e,a);h=p+u>=y+m+g-c}h&&t.call(s)};function yg(e,t){const{containerEl:n,instance:a}=e[Uo],{disabled:s}=u2(e,a);s||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(a):g5(e))}const Dle={async mounted(e,t){const{instance:n,value:a}=t;vt(a)||Ca(Uo,"'v-infinite-scroll' binding value must be a function"),await it();const{delay:s,immediate:o}=u2(e,n),r=Oy(e,!0),i=r===window?document.documentElement:r,c=Ec(Ole.bind(null,e,a),s);if(r){if(e[Uo]={instance:n,container:r,containerEl:i,delay:s,cb:a,onScroll:c,lastScrollTop:i.scrollTop},o){const u=new MutationObserver(Ec(yg.bind(null,e,a),Ple));e[Uo].observer=u,u.observe(e,{childList:!0,subtree:!0}),yg(e,a)}r.addEventListener("scroll",c)}},unmounted(e){if(!e[Uo])return;const{container:t,onScroll:n}=e[Uo];t==null||t.removeEventListener("scroll",n),g5(e)},async updated(e){if(!e[Uo])await it();else{const{containerEl:t,cb:n,observer:a}=e[Uo];t.clientHeight&&a&&yg(e,n)}}},f1=Dle;f1.install=e=>{e.directive("InfiniteScroll",f1)};const Vle=f1;function Fle(e,t){let n;const a=T(!1),s=At({...e,originalPosition:"",originalOverflow:"",visible:!1});function o(h){s.text=h}function r(){const h=s.parent,m=v.ns;if(!h.vLoadingAddClassList){let g=h.getAttribute("loading-number");g=Number.parseInt(g)-1,g?h.setAttribute("loading-number",g.toString()):(Os(h,m.bm("parent","relative")),h.removeAttribute("loading-number")),Os(h,m.bm("parent","hidden"))}i(),p.unmount()}function i(){var h,m;(m=(h=v.$el)==null?void 0:h.parentNode)==null||m.removeChild(v.$el)}function c(){var h;e.beforeClose&&!e.beforeClose()||(a.value=!0,clearTimeout(n),n=setTimeout(u,400),s.visible=!1,(h=e.closed)==null||h.call(e))}function u(){if(!a.value)return;const h=s.parent;a.value=!1,h.vLoadingAddClassList=void 0,r()}const p=Gx(le({name:"ElLoading",setup(h,{expose:m}){const{ns:g,zIndex:y}=Fm("loading");return m({ns:g,zIndex:y}),()=>{const b=s.spinner||s.svg,C=yt("svg",{class:"circular",viewBox:s.svgViewBox?s.svgViewBox:"0 0 50 50",...b?{innerHTML:b}:{}},[yt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),k=s.text?yt("p",{class:g.b("text")},[s.text]):void 0;return yt(aa,{name:g.b("fade"),onAfterLeave:u},{default:W(()=>[et(z("div",{style:{backgroundColor:s.background||""},class:[g.b("mask"),s.customClass,s.fullscreen?"is-fullscreen":""]},[yt("div",{class:g.b("spinner")},[C,k])]),[[fn,s.visible]])])})}}}));Object.assign(p._context,t??{});const v=p.mount(document.createElement("div"));return{...Pa(s),setText:o,removeElLoadingChild:i,close:c,handleAfterLeave:u,vm:v,get $el(){return v.$el}}}let Pv;const Du=function(e={}){if(!cn)return;const t=Ule(e);if(t.fullscreen&&Pv)return Pv;const n=Fle({...t,closed:()=>{var s;(s=t.closed)==null||s.call(t),t.fullscreen&&(Pv=void 0)}},Du._context);zle(t,t.parent,n),JS(t,t.parent,n),t.parent.vLoadingAddClassList=()=>JS(t,t.parent,n);let a=t.parent.getAttribute("loading-number");return a?a=`${Number.parseInt(a)+1}`:a="1",t.parent.setAttribute("loading-number",a),t.parent.appendChild(n.$el),it(()=>n.visible.value=t.visible),t.fullscreen&&(Pv=n),n},Ule=e=>{var t,n,a,s;let o;return ut(e.target)?o=(t=document.querySelector(e.target))!=null?t:document.body:o=e.target||document.body,{parent:o===document.body||e.body?document.body:o,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:o===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(a=e.lock)!=null?a:!1,customClass:e.customClass||"",visible:(s=e.visible)!=null?s:!0,beforeClose:e.beforeClose,closed:e.closed,target:o}},zle=async(e,t,n)=>{const{nextZIndex:a}=n.vm.zIndex||n.vm._.exposed.zIndex,s={};if(e.fullscreen)n.originalPosition.value=$l(document.body,"position"),n.originalOverflow.value=$l(document.body,"overflow"),s.zIndex=a();else if(e.parent===document.body){n.originalPosition.value=$l(document.body,"position"),await it();for(const o of["top","left"]){const r=o==="top"?"scrollTop":"scrollLeft";s[o]=`${e.target.getBoundingClientRect()[o]+document.body[r]+document.documentElement[r]-Number.parseInt($l(document.body,`margin-${o}`),10)}px`}for(const o of["height","width"])s[o]=`${e.target.getBoundingClientRect()[o]}px`}else n.originalPosition.value=$l(t,"position");for(const[o,r]of Object.entries(s))n.$el.style[o]=r},JS=(e,t,n)=>{const a=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Os(t,a.bm("parent","relative")):Ho(t,a.bm("parent","relative")),e.fullscreen&&e.lock?Ho(t,a.bm("parent","hidden")):Os(t,a.bm("parent","hidden"))};Du._context=null;const ff=Symbol("ElLoading"),sc=e=>`element-loading-${qi(e)}`,ZS=(e,t)=>{var n,a,s,o;const r=t.instance,i=h=>Ot(t.value)?t.value[h]:void 0,c=h=>{const m=ut(h)&&(r==null?void 0:r[h])||h;return T(m)},u=h=>c(i(h)||e.getAttribute(sc(h))),d=(n=i("fullscreen"))!=null?n:t.modifiers.fullscreen,p={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:d,target:(a=i("target"))!=null?a:d?void 0:e,body:(s=i("body"))!=null?s:t.modifiers.body,lock:(o=i("lock"))!=null?o:t.modifiers.lock},v=Du(p);v._context=Af._context,e[ff]={options:p,instance:v}},Hle=(e,t)=>{for(const n of Object.keys(e))$n(e[n])&&(e[n].value=t[n])},Af={mounted(e,t){t.value&&ZS(e,t)},updated(e,t){const n=e[ff];if(!t.value){n==null||n.instance.close(),e[ff]=null;return}n?Hle(n.options,Ot(t.value)?t.value:{text:e.getAttribute(sc("text")),svg:e.getAttribute(sc("svg")),svgViewBox:e.getAttribute(sc("svgViewBox")),spinner:e.getAttribute(sc("spinner")),background:e.getAttribute(sc("background")),customClass:e.getAttribute(sc("customClass"))}):ZS(e,t)},unmounted(e){var t;(t=e[ff])==null||t.instance.close(),e[ff]=null}};Af._context=null;const Kle={install(e){Du._context=e._context,Af._context=e._context,e.directive("loading",Af),e.config.globalProperties.$loading=Du},directive:Af,service:Du},_5=["primary","success","info","warning","error"],y5=["top","top-left","top-right","bottom","bottom-left","bottom-right"],mp="top",Ns=Zn({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:cn?document.body:void 0}),qle=Ue({customClass:{type:String,default:Ns.customClass},dangerouslyUseHTMLString:{type:Boolean,default:Ns.dangerouslyUseHTMLString},duration:{type:Number,default:Ns.duration},icon:{type:wn,default:Ns.icon},id:{type:String,default:Ns.id},message:{type:ge([String,Object,Function]),default:Ns.message},onClose:{type:ge(Function),default:Ns.onClose},showClose:{type:Boolean,default:Ns.showClose},type:{type:String,values:_5,default:Ns.type},plain:{type:Boolean,default:Ns.plain},offset:{type:Number,default:Ns.offset},placement:{type:String,values:y5,default:Ns.placement},zIndex:{type:Number,default:Ns.zIndex},grouping:{type:Boolean,default:Ns.grouping},repeatNum:{type:Number,default:Ns.repeatNum}}),jle={destroy:()=>!0},br=_m({}),Wle=e=>(br[e]||(br[e]=_m([])),br[e]),Gle=(e,t)=>{const n=br[t]||[],a=n.findIndex(r=>r.id===e),s=n[a];let o;return a>0&&(o=n[a-1]),{current:s,prev:o}},Yle=(e,t)=>{const{prev:n}=Gle(e,t);return n?n.vm.exposed.bottom.value:0},Xle=(e,t,n)=>(br[n]||[]).findIndex(o=>o.id===e)>0?16:t,Qle=le({name:"ElMessage"}),Jle=le({...Qle,props:qle,emits:jle,setup(e,{expose:t,emit:n}){const a=e,{Close:s}=Fy,o=T(!1),{ns:r,zIndex:i}=Fm("message"),{currentZIndex:c,nextZIndex:u}=i,d=T(),p=T(!1),v=T(0);let h;const m=x(()=>a.type?a.type==="error"?"danger":a.type:"info"),g=x(()=>{const M=a.type;return{[r.bm("icon",M)]:M&&Fi[M]}}),y=x(()=>a.icon||Fi[a.type]||""),b=x(()=>a.placement||mp),C=x(()=>Yle(a.id,b.value)),k=x(()=>Xle(a.id,a.offset,b.value)+C.value),S=x(()=>v.value+k.value),$=x(()=>b.value.includes("left")?r.is("left"):b.value.includes("right")?r.is("right"):r.is("center")),E=x(()=>b.value.startsWith("top")?"top":"bottom"),R=x(()=>({[E.value]:`${k.value}px`,zIndex:c.value}));function A(){a.duration!==0&&({stop:h}=Lc(()=>{P()},a.duration))}function N(){h==null||h()}function P(){p.value=!1,it(()=>{var M;o.value||((M=a.onClose)==null||M.call(a),n("destroy"))})}function B({code:M}){M===tt.esc&&P()}return ft(()=>{A(),u(),p.value=!0}),Te(()=>a.repeatNum,()=>{N(),A()}),Rn(document,"keydown",B),Xn(d,()=>{v.value=d.value.getBoundingClientRect().height}),t({visible:p,bottom:S,close:P}),(M,j)=>(_(),ue(aa,{name:f(r).b("fade"),onBeforeEnter:F=>o.value=!0,onBeforeLeave:M.onClose,onAfterLeave:F=>M.$emit("destroy"),persisted:""},{default:W(()=>[et(l("div",{id:M.id,ref_key:"messageRef",ref:d,class:V([f(r).b(),{[f(r).m(M.type)]:M.type},f(r).is("closable",M.showClose),f(r).is("plain",M.plain),f(r).is("bottom",f(E)==="bottom"),f($),M.customClass]),style:Je(f(R)),role:"alert",onMouseenter:N,onMouseleave:A},[M.repeatNum>1?(_(),ue(f(jT),{key:0,value:M.repeatNum,type:f(m),class:V(f(r).e("badge"))},null,8,["value","type","class"])):K("v-if",!0),f(y)?(_(),ue(f(ct),{key:1,class:V([f(r).e("icon"),f(g)])},{default:W(()=>[(_(),ue(Ft(f(y))))]),_:1},8,["class"])):K("v-if",!0),be(M.$slots,"default",{},()=>[M.dangerouslyUseHTMLString?(_(),w(_e,{key:1},[K(" Caution here, message could've been compromised, never use user's input as message "),l("p",{class:V(f(r).e("content")),innerHTML:M.message},null,10,["innerHTML"])],2112)):(_(),w("p",{key:0,class:V(f(r).e("content"))},I(M.message),3))]),M.showClose?(_(),ue(f(ct),{key:2,class:V(f(r).e("closeBtn")),onClick:qe(P,["stop"])},{default:W(()=>[z(f(s))]),_:1},8,["class","onClick"])):K("v-if",!0)],46,["id"]),[[fn,p.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var Zle=ze(Jle,[["__file","message.vue"]]);let eie=1;const tie=e=>{if(!e.appendTo)e.appendTo=document.body;else if(ut(e.appendTo)){let n=document.querySelector(e.appendTo);no(n)||(n=document.body),e.appendTo=n}},nie=e=>{!e.placement&&ut(Ps.placement)&&Ps.placement&&(e.placement=Ps.placement),e.placement||(e.placement=mp),y5.includes(e.placement)||(e.placement=mp)},b5=e=>{const t=!e||ut(e)||Un(e)||vt(e)?{message:e}:e,n={...Ns,...t};return tie(n),nie(n),En(Ps.grouping)&&!n.grouping&&(n.grouping=Ps.grouping),gt(Ps.duration)&&n.duration===3e3&&(n.duration=Ps.duration),gt(Ps.offset)&&n.offset===16&&(n.offset=Ps.offset),En(Ps.showClose)&&!n.showClose&&(n.showClose=Ps.showClose),En(Ps.plain)&&!n.plain&&(n.plain=Ps.plain),n},aie=e=>{const t=e.props.placement||mp,n=br[t],a=n.indexOf(e);if(a===-1)return;n.splice(a,1);const{handler:s}=e;s.close()},sie=({appendTo:e,...t},n)=>{const a=`message_${eie++}`,s=t.onClose,o=document.createElement("div"),r={...t,id:a,onClose:()=>{s==null||s(),aie(d)},onDestroy:()=>{Bi(null,o)}},i=z(Zle,r,vt(r.message)||Un(r.message)?{default:vt(r.message)?r.message:()=>r.message}:null);i.appContext=n||Hc._context,Bi(i,o),e.appendChild(o.firstElementChild);const c=i.component,d={id:a,vnode:i,vm:c,handler:{close:()=>{c.exposed.close()}},props:i.component.props};return d},Hc=(e={},t)=>{if(!cn)return{close:()=>{}};const n=b5(e),a=Wle(n.placement||mp);if(n.grouping&&a.length){const o=a.find(({vnode:r})=>{var i;return((i=r.props)==null?void 0:i.message)===n.message});if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}if(gt(Ps.max)&&a.length>=Ps.max)return{close:()=>{}};const s=sie(n,t);return a.push(s),s.handler};_5.forEach(e=>{Hc[e]=(t={},n)=>{const a=b5(t);return Hc({...a,type:e},n)}});function oie(e){for(const t in br)if(ln(br,t)){const n=[...br[t]];for(const a of n)(!e||e===a.props.type)&&a.handler.close()}}function rie(e){if(!br[e])return;[...br[e]].forEach(n=>n.handler.close())}Hc.closeAll=oie;Hc.closeAllByPlacement=rie;Hc._context=null;const rt=rT(Hc,"$message"),p1="_trap-focus-children",yc=[],eE=e=>{if(yc.length===0)return;const t=yc[yc.length-1][p1];if(t.length>0&&e.code===tt.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,a=e.target===t[0],s=e.target===t[t.length-1];a&&n&&(e.preventDefault(),t[t.length-1].focus()),s&&!n&&(e.preventDefault(),t[0].focus())}},lie={beforeMount(e){e[p1]=dk(e),yc.push(e),yc.length<=1&&document.addEventListener("keydown",eE)},updated(e){it(()=>{e[p1]=dk(e)})},unmounted(){yc.shift(),yc.length===0&&document.removeEventListener("keydown",eE)}},iie=le({name:"ElMessageBox",directives:{TrapFocus:lie},components:{ElButton:ns,ElFocusTrap:Ed,ElInput:Bs,ElOverlay:mb,ElIcon:ct,...Fy},inheritAttrs:!1,props:{buttonSize:{type:String,validator:j8},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:a,ns:s,size:o}=Fm("message-box",x(()=>e.buttonSize)),{t:r}=n,{nextZIndex:i}=a,c=T(!1),u=At({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Yo(el),cancelButtonLoadingIcon:Yo(el),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),d=x(()=>{const U=u.type;return{[s.bm("icon",U)]:U&&Fi[U]}}),p=vs(),v=vs(),h=x(()=>{const U=u.type;return u.icon||U&&Fi[U]||""}),m=x(()=>!!u.message),g=T(),y=T(),b=T(),C=T(),k=T(),S=x(()=>u.confirmButtonClass);Te(()=>u.inputValue,async U=>{await it(),e.boxType==="prompt"&&U&&j()},{immediate:!0}),Te(()=>c.value,U=>{var O,G;U&&(e.boxType!=="prompt"&&(u.autofocus?b.value=(G=(O=k.value)==null?void 0:O.$el)!=null?G:g.value:b.value=g.value),u.zIndex=i()),e.boxType==="prompt"&&(U?it().then(()=>{var ae;C.value&&C.value.$el&&(u.autofocus?b.value=(ae=F())!=null?ae:g.value:b.value=g.value)}):(u.editorErrorMessage="",u.validateError=!1))});const $=x(()=>e.draggable),E=x(()=>e.overflow),{isDragging:R}=t8(g,y,$,E);ft(async()=>{await it(),e.closeOnHashChange&&window.addEventListener("hashchange",A)}),on(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",A)});function A(){c.value&&(c.value=!1,it(()=>{u.action&&t("action",u.action)}))}const N=()=>{e.closeOnClickModal&&M(u.distinguishCancelAndClose?"close":"cancel")},P=hb(N),B=U=>{if(u.inputType!=="textarea")return U.preventDefault(),M("confirm")},M=U=>{var O;e.boxType==="prompt"&&U==="confirm"&&!j()||(u.action=U,u.beforeClose?(O=u.beforeClose)==null||O.call(u,U,u,A):A())},j=()=>{if(e.boxType==="prompt"){const U=u.inputPattern;if(U&&!U.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||r("el.messagebox.error"),u.validateError=!0,!1;const O=u.inputValidator;if(vt(O)){const G=O(u.inputValue);if(G===!1)return u.editorErrorMessage=u.inputErrorMessage||r("el.messagebox.error"),u.validateError=!0,!1;if(ut(G))return u.editorErrorMessage=G,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},F=()=>{var U,O;const G=(U=C.value)==null?void 0:U.$refs;return(O=G==null?void 0:G.input)!=null?O:G==null?void 0:G.textarea},q=()=>{M("close")},L=()=>{e.closeOnPressEscape&&q()};return e.lockScroll&&gb(c),{...Pa(u),ns:s,overlayEvent:P,visible:c,hasMessage:m,typeClass:d,contentId:p,inputId:v,btnSize:o,iconComponent:h,confirmButtonClasses:S,rootRef:g,focusStartRef:b,headerRef:y,inputRef:C,isDragging:R,confirmRef:k,doClose:A,handleClose:q,onCloseRequested:L,handleWrapperClick:N,handleInputEnter:B,handleAction:M,t:r}}});function cie(e,t,n,a,s,o){const r=Ne("el-icon"),i=Ne("el-input"),c=Ne("el-button"),u=Ne("el-focus-trap"),d=Ne("el-overlay");return _(),ue(aa,{name:"fade-in-linear",onAfterLeave:p=>e.$emit("vanish"),persisted:""},{default:W(()=>[et(z(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:W(()=>[l("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:V(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[z(u,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:W(()=>[l("div",{ref:"rootRef",class:V([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:Je(e.customStyle),tabindex:"-1",onClick:qe(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(_(),w("div",{key:0,ref:"headerRef",class:V([e.ns.e("header"),{"show-close":e.showClose}])},[l("div",{class:V(e.ns.e("title"))},[e.iconComponent&&e.center?(_(),ue(r,{key:0,class:V([e.ns.e("status"),e.typeClass])},{default:W(()=>[(_(),ue(Ft(e.iconComponent)))]),_:1},8,["class"])):K("v-if",!0),l("span",null,I(e.title),1)],2),e.showClose?(_(),w("button",{key:0,type:"button",class:V(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:p=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:yn(qe(p=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[z(r,{class:V(e.ns.e("close"))},{default:W(()=>[(_(),ue(Ft(e.closeIcon||"close")))]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):K("v-if",!0)],2)):K("v-if",!0),l("div",{id:e.contentId,class:V(e.ns.e("content"))},[l("div",{class:V(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(_(),ue(r,{key:0,class:V([e.ns.e("status"),e.typeClass])},{default:W(()=>[(_(),ue(Ft(e.iconComponent)))]),_:1},8,["class"])):K("v-if",!0),e.hasMessage?(_(),w("div",{key:1,class:V(e.ns.e("message"))},[be(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(_(),ue(Ft(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(_(),ue(Ft(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:I(e.message)},null,8,["for","textContent"]))])],2)):K("v-if",!0)],2),et(l("div",{class:V(e.ns.e("input"))},[z(i,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":p=>e.inputValue=p,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:V({invalid:e.validateError}),onKeydown:yn(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),l("div",{class:V(e.ns.e("errormsg")),style:Je({visibility:e.editorErrorMessage?"visible":"hidden"})},I(e.editorErrorMessage),7)],2),[[fn,e.showInput]])],10,["id"]),l("div",{class:V(e.ns.e("btns"))},[e.showCancelButton?(_(),ue(c,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:V([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:p=>e.handleAction("cancel"),onKeydown:yn(qe(p=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:W(()=>[Ce(I(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):K("v-if",!0),et(z(c,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:V([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:p=>e.handleAction("confirm"),onKeydown:yn(qe(p=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:W(()=>[Ce(I(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[fn,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[fn,e.visible]])]),_:3},8,["onAfterLeave"])}var uie=ze(iie,[["render",cie],["__file","index.vue"]]);const gp=new Map,die=e=>{let t=document.body;return e.appendTo&&(ut(e.appendTo)&&(t=document.querySelector(e.appendTo)),no(e.appendTo)&&(t=e.appendTo),no(t)||(t=document.body)),t},fie=(e,t,n=null)=>{const a=z(uie,e,vt(e.message)||Un(e.message)?{default:vt(e.message)?e.message:()=>e.message}:null);return a.appContext=n,Bi(a,t),die(e).appendChild(t.firstElementChild),a.component},pie=()=>document.createElement("div"),vie=(e,t)=>{const n=pie();e.onVanish=()=>{Bi(null,n),gp.delete(s)},e.onAction=o=>{const r=gp.get(s);let i;e.showInput?i={value:s.inputValue,action:o}:i=o,e.callback?e.callback(i,a.proxy):o==="cancel"||o==="close"?e.distinguishCancelAndClose&&o!=="cancel"?r.reject("close"):r.reject("cancel"):r.resolve(i)};const a=fie(e,n,t),s=a.proxy;for(const o in e)ln(e,o)&&!ln(s.$props,o)&&(o==="closeIcon"&&Ot(e[o])?s[o]=Yo(e[o]):s[o]=e[o]);return s.visible=!0,s};function Ad(e,t=null){if(!cn)return Promise.reject();let n;return ut(e)||Un(e)?e={message:e}:n=e.callback,new Promise((a,s)=>{const o=vie(e,t??Ad._context);gp.set(o,{options:e,callback:n,resolve:a,reject:s})})}const hie=["alert","confirm","prompt"],mie={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};hie.forEach(e=>{Ad[e]=gie(e)});function gie(e){return(t,n,a,s)=>{let o="";return Ot(n)?(a=n,o=""):tn(n)?o="":o=n,Ad(Object.assign({title:o,message:t,type:"",...mie[e]},a,{boxType:e}),s)}}Ad.close=()=>{gp.forEach((e,t)=>{t.doClose()}),gp.clear()};Ad._context=null;const ci=Ad;ci.install=e=>{ci._context=e._context,e.config.globalProperties.$msgbox=ci,e.config.globalProperties.$messageBox=ci,e.config.globalProperties.$alert=ci.alert,e.config.globalProperties.$confirm=ci.confirm,e.config.globalProperties.$prompt=ci.prompt};const ua=ci,w5=["primary","success","info","warning","error"],_ie=Ue({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:wn},id:{type:String,default:""},message:{type:ge([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:ge(Function),default:()=>{}},onClose:{type:ge(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...w5,""],default:""},zIndex:Number,closeIcon:{type:wn,default:nr}}),yie={destroy:()=>!0},bie=le({name:"ElNotification"}),wie=le({...bie,props:_ie,emits:yie,setup(e,{expose:t}){const n=e,{ns:a,zIndex:s}=Fm("notification"),{nextZIndex:o,currentZIndex:r}=s,i=T(!1);let c;const u=x(()=>{const C=n.type;return C&&Fi[n.type]?a.m(C):""}),d=x(()=>n.type&&Fi[n.type]||n.icon),p=x(()=>n.position.endsWith("right")?"right":"left"),v=x(()=>n.position.startsWith("top")?"top":"bottom"),h=x(()=>{var C;return{[v.value]:`${n.offset}px`,zIndex:(C=n.zIndex)!=null?C:r.value}});function m(){n.duration>0&&({stop:c}=Lc(()=>{i.value&&y()},n.duration))}function g(){c==null||c()}function y(){i.value=!1}function b({code:C}){C===tt.delete||C===tt.backspace?g():C===tt.esc?i.value&&y():m()}return ft(()=>{m(),o(),i.value=!0}),Rn(document,"keydown",b),t({visible:i,close:y}),(C,k)=>(_(),ue(aa,{name:f(a).b("fade"),onBeforeLeave:C.onClose,onAfterLeave:S=>C.$emit("destroy"),persisted:""},{default:W(()=>[et(l("div",{id:C.id,class:V([f(a).b(),C.customClass,f(p)]),style:Je(f(h)),role:"alert",onMouseenter:g,onMouseleave:m,onClick:C.onClick},[f(d)?(_(),ue(f(ct),{key:0,class:V([f(a).e("icon"),f(u)])},{default:W(()=>[(_(),ue(Ft(f(d))))]),_:1},8,["class"])):K("v-if",!0),l("div",{class:V(f(a).e("group"))},[l("h2",{class:V(f(a).e("title")),textContent:I(C.title)},null,10,["textContent"]),et(l("div",{class:V(f(a).e("content")),style:Je(C.title?void 0:{margin:0})},[be(C.$slots,"default",{},()=>[C.dangerouslyUseHTMLString?(_(),w(_e,{key:1},[K(" Caution here, message could've been compromised, never use user's input as message "),l("p",{innerHTML:C.message},null,8,["innerHTML"])],2112)):(_(),w("p",{key:0},I(C.message),1))])],6),[[fn,C.message]]),C.showClose?(_(),ue(f(ct),{key:0,class:V(f(a).e("closeBtn")),onClick:qe(y,["stop"])},{default:W(()=>[(_(),ue(Ft(C.closeIcon)))]),_:1},8,["class","onClick"])):K("v-if",!0)],2)],46,["id","onClick"]),[[fn,i.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var Cie=ze(wie,[["__file","notification.vue"]]);const ad={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},tm=16;let kie=1;const Kc=function(e={},t){if(!cn)return{close:()=>{}};(ut(e)||Un(e))&&(e={message:e});const n=e.position||"top-right";let a=e.offset||0;ad[n].forEach(({vm:d})=>{var p;a+=(((p=d.el)==null?void 0:p.offsetHeight)||0)+tm}),a+=tm;const s=`notification_${kie++}`,o=e.onClose,r={...e,offset:a,id:s,onClose:()=>{Sie(s,n,o)}};let i=document.body;no(e.appendTo)?i=e.appendTo:ut(e.appendTo)&&(i=document.querySelector(e.appendTo)),no(i)||(i=document.body);const c=document.createElement("div"),u=z(Cie,r,vt(r.message)?r.message:Un(r.message)?()=>r.message:null);return u.appContext=tn(t)?Kc._context:t,u.props.onDestroy=()=>{Bi(null,c)},Bi(u,c),ad[n].push({vm:u}),i.appendChild(c.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};w5.forEach(e=>{Kc[e]=(t={},n)=>((ut(t)||Un(t))&&(t={message:t}),Kc({...t,type:e},n))});function Sie(e,t,n){const a=ad[t],s=a.findIndex(({vm:u})=>{var d;return((d=u.component)==null?void 0:d.props.id)===e});if(s===-1)return;const{vm:o}=a[s];if(!o)return;n==null||n(o);const r=o.el.offsetHeight,i=t.split("-")[0];a.splice(s,1);const c=a.length;if(!(c<1))for(let u=s;u{t.component.exposed.visible.value=!1})}function $ie(e="top-right"){var t,n,a;let s=((n=(t=ad[e][0])==null?void 0:t.vm.props)==null?void 0:n.offset)||0;for(const{vm:o}of ad[e])o.component.props.offset=s,s+=(((a=o.el)==null?void 0:a.offsetHeight)||0)+tm}Kc.closeAll=Eie;Kc.updateOffsets=$ie;Kc._context=null;const xie=rT(Kc,"$notify");var Tie=[Vle,Kle,rt,ua,xie,A8],Iie=G7([...Rle,...Tie]),Aie={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT */const yu=typeof window<"u";function Nie(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Jn=Object.assign;function bg(e,t){const n={};for(const a in t){const s=t[a];n[a]=Er(s)?s.map(e):e(s)}return n}const Nf=()=>{},Er=Array.isArray,Rie=/\/$/,Pie=e=>e.replace(Rie,"");function wg(e,t,n="/"){let a,s={},o="",r="";const i=t.indexOf("#");let c=t.indexOf("?");return i=0&&(c=-1),c>-1&&(a=t.slice(0,c),o=t.slice(c+1,i>-1?i:t.length),s=e(o)),i>-1&&(a=a||t.slice(0,i),r=t.slice(i,t.length)),a=Oie(a??t,n),{fullPath:a+(o&&"?")+o+r,path:a,query:s,hash:r}}function Mie(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function tE(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Bie(e,t,n){const a=t.matched.length-1,s=n.matched.length-1;return a>-1&&a===s&&sd(t.matched[a],n.matched[s])&&C5(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function sd(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function C5(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Lie(e[n],t[n]))return!1;return!0}function Lie(e,t){return Er(e)?nE(e,t):Er(t)?nE(t,e):e===t}function nE(e,t){return Er(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function Oie(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),s=a[a.length-1];(s===".."||s===".")&&a.push("");let o=n.length-1,r,i;for(r=0;r1&&o--;else break;return n.slice(0,o).join("/")+"/"+a.slice(r-(r===a.length?1:0)).join("/")}var _p;(function(e){e.pop="pop",e.push="push"})(_p||(_p={}));var Rf;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Rf||(Rf={}));function Die(e){if(!e)if(yu){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Pie(e)}const Vie=/^[^#]+#/;function Fie(e,t){return e.replace(Vie,"#")+t}function Uie(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const c0=()=>({left:window.pageXOffset,top:window.pageYOffset});function zie(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Uie(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function aE(e,t){return(history.state?history.state.position-t:-1)+e}const v1=new Map;function Hie(e,t){v1.set(e,t)}function Kie(e){const t=v1.get(e);return v1.delete(e),t}let qie=()=>location.protocol+"//"+location.host;function k5(e,t){const{pathname:n,search:a,hash:s}=t,o=e.indexOf("#");if(o>-1){let i=s.includes(e.slice(o))?e.slice(o).length:1,c=s.slice(i);return c[0]!=="/"&&(c="/"+c),tE(c,"")}return tE(n,e)+a+s}function jie(e,t,n,a){let s=[],o=[],r=null;const i=({state:v})=>{const h=k5(e,location),m=n.value,g=t.value;let y=0;if(v){if(n.value=h,t.value=v,r&&r===m){r=null;return}y=g?v.position-g.position:0}else a(h);s.forEach(b=>{b(n.value,m,{delta:y,type:_p.pop,direction:y?y>0?Rf.forward:Rf.back:Rf.unknown})})};function c(){r=n.value}function u(v){s.push(v);const h=()=>{const m=s.indexOf(v);m>-1&&s.splice(m,1)};return o.push(h),h}function d(){const{history:v}=window;v.state&&v.replaceState(Jn({},v.state,{scroll:c0()}),"")}function p(){for(const v of o)v();o=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:c,listen:u,destroy:p}}function sE(e,t,n,a=!1,s=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:s?c0():null}}function Wie(e){const{history:t,location:n}=window,a={value:k5(e,n)},s={value:t.state};s.value||o(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,u,d){const p=e.indexOf("#"),v=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+c:qie()+e+c;try{t[d?"replaceState":"pushState"](u,"",v),s.value=u}catch(h){console.error(h),n[d?"replace":"assign"](v)}}function r(c,u){const d=Jn({},t.state,sE(s.value.back,c,s.value.forward,!0),u,{position:s.value.position});o(c,d,!0),a.value=c}function i(c,u){const d=Jn({},s.value,t.state,{forward:c,scroll:c0()});o(d.current,d,!0);const p=Jn({},sE(a.value,c,null),{position:d.position+1},u);o(c,p,!1),a.value=c}return{location:a,state:s,push:i,replace:r}}function Gie(e){e=Die(e);const t=Wie(e),n=jie(e,t.state,t.location,t.replace);function a(o,r=!0){r||n.pauseListeners(),history.go(o)}const s=Jn({location:"",base:e,go:a,createHref:Fie.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Yie(e){return typeof e=="string"||e&&typeof e=="object"}function S5(e){return typeof e=="string"||typeof e=="symbol"}const ti={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},E5=Symbol("");var oE;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(oE||(oE={}));function od(e,t){return Jn(new Error,{type:e,[E5]:!0},t)}function ml(e,t){return e instanceof Error&&E5 in e&&(t==null||!!(e.type&t))}const rE="[^/]+?",Xie={sensitive:!1,strict:!1,start:!0,end:!0},Qie=/[.+*?^${}()[\]/\\]/g;function Jie(e,t){const n=Jn({},Xie,t),a=[];let s=n.start?"^":"";const o=[];for(const u of e){const d=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let p=0;pt.length?t.length===1&&t[0]===80?1:-1:0}function ece(e,t){let n=0;const a=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const tce={type:0,value:""},nce=/[a-zA-Z0-9_]/;function ace(e){if(!e)return[[]];if(e==="/")return[[tce]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,a=n;const s=[];let o;function r(){o&&s.push(o),o=[]}let i=0,c,u="",d="";function p(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function v(){u+=c}for(;i{r(C)}:Nf}function r(d){if(S5(d)){const p=a.get(d);p&&(a.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(r),p.alias.forEach(r))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&a.delete(d.record.name),d.children.forEach(r),d.alias.forEach(r))}}function i(){return n}function c(d){let p=0;for(;p=0&&(d.record.path!==n[p].record.path||!$5(d,n[p]));)p++;n.splice(p,0,d),d.record.name&&!cE(d)&&a.set(d.record.name,d)}function u(d,p){let v,h={},m,g;if("name"in d&&d.name){if(v=a.get(d.name),!v)throw od(1,{location:d});g=v.record.name,h=Jn(iE(p.params,v.keys.filter(C=>!C.optional).map(C=>C.name)),d.params&&iE(d.params,v.keys.map(C=>C.name))),m=v.stringify(h)}else if("path"in d)m=d.path,v=n.find(C=>C.re.test(m)),v&&(h=v.parse(m),g=v.record.name);else{if(v=p.name?a.get(p.name):n.find(C=>C.re.test(p.path)),!v)throw od(1,{location:d,currentLocation:p});g=v.record.name,h=Jn({},p.params,d.params),m=v.stringify(h)}const y=[];let b=v;for(;b;)y.unshift(b.record),b=b.parent;return{name:g,path:m,params:h,matched:y,meta:ice(y)}}return e.forEach(d=>o(d)),{addRoute:o,resolve:u,removeRoute:r,getRoutes:i,getRecordMatcher:s}}function iE(e,t){const n={};for(const a of t)a in e&&(n[a]=e[a]);return n}function rce(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:lce(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function lce(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const a in e.components)t[a]=typeof n=="object"?n[a]:n;return t}function cE(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ice(e){return e.reduce((t,n)=>Jn(t,n.meta),{})}function uE(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}function $5(e,t){return t.children.some(n=>n===e||$5(e,n))}const x5=/#/g,cce=/&/g,uce=/\//g,dce=/=/g,fce=/\?/g,T5=/\+/g,pce=/%5B/g,vce=/%5D/g,I5=/%5E/g,hce=/%60/g,A5=/%7B/g,mce=/%7C/g,N5=/%7D/g,gce=/%20/g;function d2(e){return encodeURI(""+e).replace(mce,"|").replace(pce,"[").replace(vce,"]")}function _ce(e){return d2(e).replace(A5,"{").replace(N5,"}").replace(I5,"^")}function h1(e){return d2(e).replace(T5,"%2B").replace(gce,"+").replace(x5,"%23").replace(cce,"%26").replace(hce,"`").replace(A5,"{").replace(N5,"}").replace(I5,"^")}function yce(e){return h1(e).replace(dce,"%3D")}function bce(e){return d2(e).replace(x5,"%23").replace(fce,"%3F")}function wce(e){return e==null?"":bce(e).replace(uce,"%2F")}function nm(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Cce(e){const t={};if(e===""||e==="?")return t;const a=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&h1(o)):[a&&h1(a)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function kce(e){const t={};for(const n in e){const a=e[n];a!==void 0&&(t[n]=Er(a)?a.map(s=>s==null?null:""+s):a==null?a:""+a)}return t}const Sce=Symbol(""),fE=Symbol(""),u0=Symbol(""),f2=Symbol(""),m1=Symbol("");function Qd(){let e=[];function t(a){return e.push(a),()=>{const s=e.indexOf(a);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function fi(e,t,n,a,s){const o=a&&(a.enterCallbacks[s]=a.enterCallbacks[s]||[]);return()=>new Promise((r,i)=>{const c=p=>{p===!1?i(od(4,{from:n,to:t})):p instanceof Error?i(p):Yie(p)?i(od(2,{from:t,to:p})):(o&&a.enterCallbacks[s]===o&&typeof p=="function"&&o.push(p),r())},u=e.call(a&&a.instances[s],t,n,c);let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(p=>i(p))})}function Cg(e,t,n,a){const s=[];for(const o of e)for(const r in o.components){let i=o.components[r];if(!(t!=="beforeRouteEnter"&&!o.instances[r]))if(Ece(i)){const u=(i.__vccOpts||i)[t];u&&s.push(fi(u,n,a,o,r))}else{let c=i();s.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${o.path}"`));const d=Nie(u)?u.default:u;o.components[r]=d;const v=(d.__vccOpts||d)[t];return v&&fi(v,n,a,o,r)()}))}}return s}function Ece(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function pE(e){const t=Ze(u0),n=Ze(f2),a=x(()=>t.resolve(f(e.to))),s=x(()=>{const{matched:c}=a.value,{length:u}=c,d=c[u-1],p=n.matched;if(!d||!p.length)return-1;const v=p.findIndex(sd.bind(null,d));if(v>-1)return v;const h=vE(c[u-2]);return u>1&&vE(d)===h&&p[p.length-1].path!==h?p.findIndex(sd.bind(null,c[u-2])):v}),o=x(()=>s.value>-1&&Tce(n.params,a.value.params)),r=x(()=>s.value>-1&&s.value===n.matched.length-1&&C5(n.params,a.value.params));function i(c={}){return xce(c)?t[f(e.replace)?"replace":"push"](f(e.to)).catch(Nf):Promise.resolve()}return{route:a,href:x(()=>a.value.href),isActive:o,isExactActive:r,navigate:i}}const $ce=le({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:pE,setup(e,{slots:t}){const n=At(pE(e)),{options:a}=Ze(u0),s=x(()=>({[hE(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[hE(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:yt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),An=$ce;function xce(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 Tce(e,t){for(const n in t){const a=t[n],s=e[n];if(typeof a=="string"){if(a!==s)return!1}else if(!Er(s)||s.length!==a.length||a.some((o,r)=>o!==s[r]))return!1}return!0}function vE(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const hE=(e,t,n)=>e??t??n,Ice=le({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const a=Ze(m1),s=x(()=>e.route||a.value),o=Ze(fE,0),r=x(()=>{let u=f(o);const{matched:d}=s.value;let p;for(;(p=d[u])&&!p.components;)u++;return u}),i=x(()=>s.value.matched[r.value]);Gt(fE,x(()=>r.value+1)),Gt(Sce,i),Gt(m1,s);const c=T();return Te(()=>[c.value,i.value,e.name],([u,d,p],[v,h,m])=>{d&&(d.instances[p]=u,h&&h!==d&&u&&u===v&&(d.leaveGuards.size||(d.leaveGuards=h.leaveGuards),d.updateGuards.size||(d.updateGuards=h.updateGuards))),u&&d&&(!h||!sd(d,h)||!v)&&(d.enterCallbacks[p]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=s.value,d=e.name,p=i.value,v=p&&p.components[d];if(!v)return mE(n.default,{Component:v,route:u});const h=p.props[d],m=h?h===!0?u.params:typeof h=="function"?h(u):h:null,y=yt(v,Jn({},m,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(p.instances[d]=null)},ref:c}));return mE(n.default,{Component:y,route:u})||y}}});function mE(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const R5=Ice;function Ace(e){const t=oce(e.routes,e),n=e.parseQuery||Cce,a=e.stringifyQuery||dE,s=e.history,o=Qd(),r=Qd(),i=Qd(),c=Fn(ti);let u=ti;yu&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=bg.bind(null,Q=>""+Q),p=bg.bind(null,wce),v=bg.bind(null,nm);function h(Q,H){let X,he;return S5(Q)?(X=t.getRecordMatcher(Q),he=H):he=Q,t.addRoute(he,X)}function m(Q){const H=t.getRecordMatcher(Q);H&&t.removeRoute(H)}function g(){return t.getRoutes().map(Q=>Q.record)}function y(Q){return!!t.getRecordMatcher(Q)}function b(Q,H){if(H=Jn({},H||c.value),typeof Q=="string"){const re=wg(n,Q,H.path),se=t.resolve({path:re.path},H),ke=s.createHref(re.fullPath);return Jn(re,se,{params:v(se.params),hash:nm(re.hash),redirectedFrom:void 0,href:ke})}let X;if("path"in Q)X=Jn({},Q,{path:wg(n,Q.path,H.path).path});else{const re=Jn({},Q.params);for(const se in re)re[se]==null&&delete re[se];X=Jn({},Q,{params:p(re)}),H.params=p(H.params)}const he=t.resolve(X,H),D=Q.hash||"";he.params=d(v(he.params));const Y=Mie(a,Jn({},Q,{hash:_ce(D),path:he.path})),ne=s.createHref(Y);return Jn({fullPath:Y,hash:D,query:a===dE?kce(Q.query):Q.query||{}},he,{redirectedFrom:void 0,href:ne})}function C(Q){return typeof Q=="string"?wg(n,Q,c.value.path):Jn({},Q)}function k(Q,H){if(u!==Q)return od(8,{from:H,to:Q})}function S(Q){return R(Q)}function $(Q){return S(Jn(C(Q),{replace:!0}))}function E(Q){const H=Q.matched[Q.matched.length-1];if(H&&H.redirect){const{redirect:X}=H;let he=typeof X=="function"?X(Q):X;return typeof he=="string"&&(he=he.includes("?")||he.includes("#")?he=C(he):{path:he},he.params={}),Jn({query:Q.query,hash:Q.hash,params:"path"in he?{}:Q.params},he)}}function R(Q,H){const X=u=b(Q),he=c.value,D=Q.state,Y=Q.force,ne=Q.replace===!0,re=E(X);if(re)return R(Jn(C(re),{state:typeof re=="object"?Jn({},D,re.state):D,force:Y,replace:ne}),H||X);const se=X;se.redirectedFrom=H;let ke;return!Y&&Bie(a,he,X)&&(ke=od(16,{to:se,from:he}),Z(he,he,!0,!1)),(ke?Promise.resolve(ke):P(se,he)).catch(ye=>ml(ye)?ml(ye,2)?ye:ae(ye):O(ye,se,he)).then(ye=>{if(ye){if(ml(ye,2))return R(Jn({replace:ne},C(ye.to),{state:typeof ye.to=="object"?Jn({},D,ye.to.state):D,force:Y}),H||se)}else ye=M(se,he,!0,ne,D);return B(se,he,ye),ye})}function A(Q,H){const X=k(Q,H);return X?Promise.reject(X):Promise.resolve()}function N(Q){const H=oe.values().next().value;return H&&typeof H.runWithContext=="function"?H.runWithContext(Q):Q()}function P(Q,H){let X;const[he,D,Y]=Nce(Q,H);X=Cg(he.reverse(),"beforeRouteLeave",Q,H);for(const re of he)re.leaveGuards.forEach(se=>{X.push(fi(se,Q,H))});const ne=A.bind(null,Q,H);return X.push(ne),ee(X).then(()=>{X=[];for(const re of o.list())X.push(fi(re,Q,H));return X.push(ne),ee(X)}).then(()=>{X=Cg(D,"beforeRouteUpdate",Q,H);for(const re of D)re.updateGuards.forEach(se=>{X.push(fi(se,Q,H))});return X.push(ne),ee(X)}).then(()=>{X=[];for(const re of Y)if(re.beforeEnter)if(Er(re.beforeEnter))for(const se of re.beforeEnter)X.push(fi(se,Q,H));else X.push(fi(re.beforeEnter,Q,H));return X.push(ne),ee(X)}).then(()=>(Q.matched.forEach(re=>re.enterCallbacks={}),X=Cg(Y,"beforeRouteEnter",Q,H),X.push(ne),ee(X))).then(()=>{X=[];for(const re of r.list())X.push(fi(re,Q,H));return X.push(ne),ee(X)}).catch(re=>ml(re,8)?re:Promise.reject(re))}function B(Q,H,X){i.list().forEach(he=>N(()=>he(Q,H,X)))}function M(Q,H,X,he,D){const Y=k(Q,H);if(Y)return Y;const ne=H===ti,re=yu?history.state:{};X&&(he||ne?s.replace(Q.fullPath,Jn({scroll:ne&&re&&re.scroll},D)):s.push(Q.fullPath,D)),c.value=Q,Z(Q,H,X,ne),ae()}let j;function F(){j||(j=s.listen((Q,H,X)=>{if(!J.listening)return;const he=b(Q),D=E(he);if(D){R(Jn(D,{replace:!0}),he).catch(Nf);return}u=he;const Y=c.value;yu&&Hie(aE(Y.fullPath,X.delta),c0()),P(he,Y).catch(ne=>ml(ne,12)?ne:ml(ne,2)?(R(ne.to,he).then(re=>{ml(re,20)&&!X.delta&&X.type===_p.pop&&s.go(-1,!1)}).catch(Nf),Promise.reject()):(X.delta&&s.go(-X.delta,!1),O(ne,he,Y))).then(ne=>{ne=ne||M(he,Y,!1),ne&&(X.delta&&!ml(ne,8)?s.go(-X.delta,!1):X.type===_p.pop&&ml(ne,20)&&s.go(-1,!1)),B(he,Y,ne)}).catch(Nf)}))}let q=Qd(),L=Qd(),U;function O(Q,H,X){ae(Q);const he=L.list();return he.length?he.forEach(D=>D(Q,H,X)):console.error(Q),Promise.reject(Q)}function G(){return U&&c.value!==ti?Promise.resolve():new Promise((Q,H)=>{q.add([Q,H])})}function ae(Q){return U||(U=!Q,F(),q.list().forEach(([H,X])=>Q?X(Q):H()),q.reset()),Q}function Z(Q,H,X,he){const{scrollBehavior:D}=e;if(!yu||!D)return Promise.resolve();const Y=!X&&Kie(aE(Q.fullPath,0))||(he||!X)&&history.state&&history.state.scroll||null;return it().then(()=>D(Q,H,Y)).then(ne=>ne&&zie(ne)).catch(ne=>O(ne,Q,H))}const te=Q=>s.go(Q);let ie;const oe=new Set,J={currentRoute:c,listening:!0,addRoute:h,removeRoute:m,hasRoute:y,getRoutes:g,resolve:b,options:e,push:S,replace:$,go:te,back:()=>te(-1),forward:()=>te(1),beforeEach:o.add,beforeResolve:r.add,afterEach:i.add,onError:L.add,isReady:G,install(Q){const H=this;Q.component("RouterLink",An),Q.component("RouterView",R5),Q.config.globalProperties.$router=H,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>f(c)}),yu&&!ie&&c.value===ti&&(ie=!0,S(s.location).catch(D=>{}));const X={};for(const D in ti)Object.defineProperty(X,D,{get:()=>c.value[D],enumerable:!0});Q.provide(u0,H),Q.provide(f2,_m(X)),Q.provide(m1,c);const he=Q.unmount;oe.add(Q),Q.unmount=function(){oe.delete(Q),oe.size<1&&(u=ti,j&&j(),j=null,c.value=ti,ie=!1,U=!1),he()}}};function ee(Q){return Q.reduce((H,X)=>H.then(()=>N(X)),Promise.resolve())}return J}function Nce(e,t){const n=[],a=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let r=0;rsd(u,i))?a.push(i):n.push(i));const c=e.matched[r];c&&(t.matched.find(u=>sd(u,c))||s.push(c))}return[n,a,s]}function pn(){return Ze(u0)}function fa(){return Ze(f2)}const Rce="modulepreload",Pce=function(e){return"/"+e},gE={},am=function(t,n,a){let s=Promise.resolve();return n&&n.length>0&&(document.getElementsByTagName("link"),s=Promise.all(n.map(o=>{if(o=Pce(o),o in gE)return;gE[o]=!0;const r=o.endsWith(".css"),i=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${i}`))return;const c=document.createElement("link");if(c.rel=r?"stylesheet":Rce,r||(c.as="script",c.crossOrigin=""),c.href=o,document.head.appendChild(c),r)return new Promise((u,d)=>{c.addEventListener("load",u),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${o}`)))})}))),s.then(()=>t()).catch(o=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=o,window.dispatchEvent(r),!r.defaultPrevented)throw o})};function P5(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mce}=Object.prototype,{getPrototypeOf:p2}=Object,d0=(e=>t=>{const n=Mce.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ul=e=>(e=e.toLowerCase(),t=>d0(t)===e),f0=e=>t=>typeof t===e,{isArray:Nd}=Array,yp=f0("undefined");function Bce(e){return e!==null&&!yp(e)&&e.constructor!==null&&!yp(e.constructor)&&Zo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const M5=ul("ArrayBuffer");function Lce(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&M5(e.buffer),t}const Oce=f0("string"),Zo=f0("function"),B5=f0("number"),p0=e=>e!==null&&typeof e=="object",Dce=e=>e===!0||e===!1,mh=e=>{if(d0(e)!=="object")return!1;const t=p2(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Vce=ul("Date"),Fce=ul("File"),Uce=ul("Blob"),zce=ul("FileList"),Hce=e=>p0(e)&&Zo(e.pipe),Kce=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Zo(e.append)&&((t=d0(e))==="formdata"||t==="object"&&Zo(e.toString)&&e.toString()==="[object FormData]"))},qce=ul("URLSearchParams"),jce=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kp(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,s;if(typeof e!="object"&&(e=[e]),Nd(e))for(a=0,s=e.length;a0;)if(s=n[a],t===s.toLowerCase())return s;return null}const O5=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,D5=e=>!yp(e)&&e!==O5;function g1(){const{caseless:e}=D5(this)&&this||{},t={},n=(a,s)=>{const o=e&&L5(t,s)||s;mh(t[o])&&mh(a)?t[o]=g1(t[o],a):mh(a)?t[o]=g1({},a):Nd(a)?t[o]=a.slice():t[o]=a};for(let a=0,s=arguments.length;a(Kp(t,(s,o)=>{n&&Zo(s)?e[o]=P5(s,n):e[o]=s},{allOwnKeys:a}),e),Gce=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Yce=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Xce=(e,t,n,a)=>{let s,o,r;const i={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)r=s[o],(!a||a(r,e,t))&&!i[r]&&(t[r]=e[r],i[r]=!0);e=n!==!1&&p2(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Qce=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},Jce=e=>{if(!e)return null;if(Nd(e))return e;let t=e.length;if(!B5(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Zce=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&p2(Uint8Array)),eue=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=a.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},tue=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},nue=ul("HTMLFormElement"),aue=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,s){return a.toUpperCase()+s}),_E=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sue=ul("RegExp"),V5=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};Kp(n,(s,o)=>{let r;(r=t(s,o,e))!==!1&&(a[o]=r||s)}),Object.defineProperties(e,a)},oue=e=>{V5(e,(t,n)=>{if(Zo(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=e[n];if(Zo(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},rue=(e,t)=>{const n={},a=s=>{s.forEach(o=>{n[o]=!0})};return Nd(e)?a(e):a(String(e).split(t)),n},lue=()=>{},iue=(e,t)=>(e=+e,Number.isFinite(e)?e:t),kg="abcdefghijklmnopqrstuvwxyz",yE="0123456789",F5={DIGIT:yE,ALPHA:kg,ALPHA_DIGIT:kg+kg.toUpperCase()+yE},cue=(e=16,t=F5.ALPHA_DIGIT)=>{let n="";const{length:a}=t;for(;e--;)n+=t[Math.random()*a|0];return n};function uue(e){return!!(e&&Zo(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const due=e=>{const t=new Array(10),n=(a,s)=>{if(p0(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[s]=a;const o=Nd(a)?[]:{};return Kp(a,(r,i)=>{const c=n(r,s+1);!yp(c)&&(o[i]=c)}),t[s]=void 0,o}}return a};return n(e,0)},fue=ul("AsyncFunction"),pue=e=>e&&(p0(e)||Zo(e))&&Zo(e.then)&&Zo(e.catch),pt={isArray:Nd,isArrayBuffer:M5,isBuffer:Bce,isFormData:Kce,isArrayBufferView:Lce,isString:Oce,isNumber:B5,isBoolean:Dce,isObject:p0,isPlainObject:mh,isUndefined:yp,isDate:Vce,isFile:Fce,isBlob:Uce,isRegExp:sue,isFunction:Zo,isStream:Hce,isURLSearchParams:qce,isTypedArray:Zce,isFileList:zce,forEach:Kp,merge:g1,extend:Wce,trim:jce,stripBOM:Gce,inherits:Yce,toFlatObject:Xce,kindOf:d0,kindOfTest:ul,endsWith:Qce,toArray:Jce,forEachEntry:eue,matchAll:tue,isHTMLForm:nue,hasOwnProperty:_E,hasOwnProp:_E,reduceDescriptors:V5,freezeMethods:oue,toObjectSet:rue,toCamelCase:aue,noop:lue,toFiniteNumber:iue,findKey:L5,global:O5,isContextDefined:D5,ALPHABET:F5,generateString:cue,isSpecCompliantForm:uue,toJSONObject:due,isAsyncFn:fue,isThenable:pue};function Hn(e,t,n,a,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),s&&(this.response=s)}pt.inherits(Hn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:pt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const U5=Hn.prototype,z5={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{z5[e]={value:e}});Object.defineProperties(Hn,z5);Object.defineProperty(U5,"isAxiosError",{value:!0});Hn.from=(e,t,n,a,s,o)=>{const r=Object.create(U5);return pt.toFlatObject(e,r,function(c){return c!==Error.prototype},i=>i!=="isAxiosError"),Hn.call(r,e.message,t,n,a,s),r.cause=e,r.name=e.name,o&&Object.assign(r,o),r};const vue=null;function _1(e){return pt.isPlainObject(e)||pt.isArray(e)}function H5(e){return pt.endsWith(e,"[]")?e.slice(0,-2):e}function bE(e,t,n){return e?e.concat(t).map(function(s,o){return s=H5(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function hue(e){return pt.isArray(e)&&!e.some(_1)}const mue=pt.toFlatObject(pt,{},null,function(t){return/^is[A-Z]/.test(t)});function v0(e,t,n){if(!pt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=pt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!pt.isUndefined(y[g])});const a=n.metaTokens,s=n.visitor||d,o=n.dots,r=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&pt.isSpecCompliantForm(t);if(!pt.isFunction(s))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(pt.isDate(m))return m.toISOString();if(!c&&pt.isBlob(m))throw new Hn("Blob is not supported. Use a Buffer instead.");return pt.isArrayBuffer(m)||pt.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,g,y){let b=m;if(m&&!y&&typeof m=="object"){if(pt.endsWith(g,"{}"))g=a?g:g.slice(0,-2),m=JSON.stringify(m);else if(pt.isArray(m)&&hue(m)||(pt.isFileList(m)||pt.endsWith(g,"[]"))&&(b=pt.toArray(m)))return g=H5(g),b.forEach(function(k,S){!(pt.isUndefined(k)||k===null)&&t.append(r===!0?bE([g],S,o):r===null?g:g+"[]",u(k))}),!1}return _1(m)?!0:(t.append(bE(y,g,o),u(m)),!1)}const p=[],v=Object.assign(mue,{defaultVisitor:d,convertValue:u,isVisitable:_1});function h(m,g){if(!pt.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));p.push(m),pt.forEach(m,function(b,C){(!(pt.isUndefined(b)||b===null)&&s.call(t,b,pt.isString(C)?C.trim():C,g,v))===!0&&h(b,g?g.concat(C):[C])}),p.pop()}}if(!pt.isObject(e))throw new TypeError("data must be an object");return h(e),t}function wE(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function v2(e,t){this._pairs=[],e&&v0(e,this,t)}const K5=v2.prototype;K5.append=function(t,n){this._pairs.push([t,n])};K5.toString=function(t){const n=t?function(a){return t.call(this,a,wE)}:wE;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function gue(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function q5(e,t,n){if(!t)return e;const a=n&&n.encode||gue,s=n&&n.serialize;let o;if(s?o=s(t,n):o=pt.isURLSearchParams(t)?t.toString():new v2(t,n).toString(a),o){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class CE{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){pt.forEach(this.handlers,function(a){a!==null&&t(a)})}}const j5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_ue=typeof URLSearchParams<"u"?URLSearchParams:v2,yue=typeof FormData<"u"?FormData:null,bue=typeof Blob<"u"?Blob:null,wue={isBrowser:!0,classes:{URLSearchParams:_ue,FormData:yue,Blob:bue},protocols:["http","https","file","blob","url","data"]},W5=typeof window<"u"&&typeof document<"u",Cue=(e=>W5&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),kue=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Sue=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:W5,hasStandardBrowserEnv:Cue,hasStandardBrowserWebWorkerEnv:kue},Symbol.toStringTag,{value:"Module"})),Wr={...Sue,...wue};function Eue(e,t){return v0(e,new Wr.classes.URLSearchParams,Object.assign({visitor:function(n,a,s,o){return Wr.isNode&&pt.isBuffer(n)?(this.append(a,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function $ue(e){return pt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function xue(e){const t={},n=Object.keys(e);let a;const s=n.length;let o;for(a=0;a=n.length;return r=!r&&pt.isArray(s)?s.length:r,c?(pt.hasOwnProp(s,r)?s[r]=[s[r],a]:s[r]=a,!i):((!s[r]||!pt.isObject(s[r]))&&(s[r]=[]),t(n,a,s[r],o)&&pt.isArray(s[r])&&(s[r]=xue(s[r])),!i)}if(pt.isFormData(e)&&pt.isFunction(e.entries)){const n={};return pt.forEachEntry(e,(a,s)=>{t($ue(a),s,n,0)}),n}return null}function Tue(e,t,n){if(pt.isString(e))try{return(t||JSON.parse)(e),pt.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(n||JSON.stringify)(e)}const qp={transitional:j5,adapter:["xhr","http"],transformRequest:[function(t,n){const a=n.getContentType()||"",s=a.indexOf("application/json")>-1,o=pt.isObject(t);if(o&&pt.isHTMLForm(t)&&(t=new FormData(t)),pt.isFormData(t))return s?JSON.stringify(G5(t)):t;if(pt.isArrayBuffer(t)||pt.isBuffer(t)||pt.isStream(t)||pt.isFile(t)||pt.isBlob(t))return t;if(pt.isArrayBufferView(t))return t.buffer;if(pt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(a.indexOf("application/x-www-form-urlencoded")>-1)return Eue(t,this.formSerializer).toString();if((i=pt.isFileList(t))||a.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return v0(i?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Tue(t)):t}],transformResponse:[function(t){const n=this.transitional||qp.transitional,a=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&pt.isString(t)&&(a&&!this.responseType||s)){const r=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(i){if(r)throw i.name==="SyntaxError"?Hn.from(i,Hn.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wr.classes.FormData,Blob:Wr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pt.forEach(["delete","get","head","post","put","patch"],e=>{qp.headers[e]={}});const Iue=pt.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"]),Aue=e=>{const t={};let n,a,s;return e&&e.split(` `).forEach(function(r){s=r.indexOf(":"),n=r.substring(0,s).trim().toLowerCase(),a=r.substring(s+1).trim(),!(!n||t[n]&&Iue[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t},kE=Symbol("internals");function Jd(e){return e&&String(e).trim().toLowerCase()}function gh(e){return e===!1||e==null?e:pt.isArray(e)?e.map(gh):String(e)}function Nue(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}const Rue=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Sg(e,t,n,a,s){if(pt.isFunction(a))return a.call(this,t,n);if(s&&(t=n),!!pt.isString(t)){if(pt.isString(a))return t.indexOf(a)!==-1;if(pt.isRegExp(a))return a.test(t)}}function Pue(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function Mue(e,t){const n=pt.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(s,o,r){return this[a].call(this,t,s,o,r)},configurable:!0})})}let er=class{constructor(t){t&&this.set(t)}set(t,n,a){const s=this;function o(i,c,u){const d=Jd(c);if(!d)throw new Error("header name must be a non-empty string");const p=pt.findKey(s,d);(!p||s[p]===void 0||u===!0||u===void 0&&s[p]!==!1)&&(s[p||c]=gh(i))}const r=(i,c)=>pt.forEach(i,(u,d)=>o(u,d,c));return pt.isPlainObject(t)||t instanceof this.constructor?r(t,n):pt.isString(t)&&(t=t.trim())&&!Rue(t)?r(Aue(t),n):t!=null&&o(n,t,a),this}get(t,n){if(t=Jd(t),t){const a=pt.findKey(this,t);if(a){const s=this[a];if(!n)return s;if(n===!0)return Nue(s);if(pt.isFunction(n))return n.call(this,s,a);if(pt.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Jd(t),t){const a=pt.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||Sg(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let s=!1;function o(r){if(r=Jd(r),r){const i=pt.findKey(a,r);i&&(!n||Sg(a,a[i],i,n))&&(delete a[i],s=!0)}}return pt.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let a=n.length,s=!1;for(;a--;){const o=n[a];(!t||Sg(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,a={};return pt.forEach(this,(s,o)=>{const r=pt.findKey(a,o);if(r){n[r]=gh(s),delete n[o];return}const i=t?Pue(o):String(o).trim();i!==o&&delete n[o],n[i]=gh(s),a[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return pt.forEach(this,(a,s)=>{a!=null&&a!==!1&&(n[s]=t&&pt.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(s=>a.set(s)),a}static accessor(t){const a=(this[kE]=this[kE]={accessors:{}}).accessors,s=this.prototype;function o(r){const i=Jd(r);a[i]||(Mue(s,r),a[i]=!0)}return pt.isArray(t)?t.forEach(o):o(t),this}};er.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);pt.reduceDescriptors(er.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[n]=a}}});pt.freezeMethods(er);function Eg(e,t){const n=this||qp,a=t||n,s=er.from(a.headers);let o=a.data;return pt.forEach(e,function(i){o=i.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Y5(e){return!!(e&&e.__CANCEL__)}function jp(e,t,n){Hn.call(this,e??"canceled",Hn.ERR_CANCELED,t,n),this.name="CanceledError"}pt.inherits(jp,Hn,{__CANCEL__:!0});function Bue(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new Hn("Request failed with status code "+n.status,[Hn.ERR_BAD_REQUEST,Hn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Lue=Wr.hasStandardBrowserEnv?{write(e,t,n,a,s,o){const r=[e+"="+encodeURIComponent(t)];pt.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),pt.isString(a)&&r.push("path="+a),pt.isString(s)&&r.push("domain="+s),o===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Oue(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Due(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function X5(e,t){return e&&!Oue(t)?Due(e,t):t}const Vue=Wr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let a;function s(o){let r=o;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return a=s(window.location.href),function(r){const i=pt.isString(r)?s(r):r;return i.protocol===a.protocol&&i.host===a.host}}():function(){return function(){return!0}}();function Fue(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Uue(e,t){e=e||10;const n=new Array(e),a=new Array(e);let s=0,o=0,r;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=a[o];r||(r=u),n[s]=c,a[s]=u;let p=o,v=0;for(;p!==s;)v+=n[p++],p=p%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-r{const o=s.loaded,r=s.lengthComputable?s.total:void 0,i=o-n,c=a(i),u=o<=r;n=o;const d={loaded:o,total:r,progress:r?o/r:void 0,bytes:i,rate:c||void 0,estimated:c&&r&&u?(r-o)/c:void 0,event:s};d[t?"download":"upload"]=!0,e(d)}}const zue=typeof XMLHttpRequest<"u",Hue=zue&&function(e){return new Promise(function(n,a){let s=e.data;const o=er.from(e.headers).normalize();let{responseType:r,withXSRFToken:i}=e,c;function u(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let d;if(pt.isFormData(s)){if(Wr.hasStandardBrowserEnv||Wr.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((d=o.getContentType())!==!1){const[g,...y]=d?d.split(";").map(b=>b.trim()).filter(Boolean):[];o.setContentType([g||"multipart/form-data",...y].join("; "))}}let p=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(g+":"+y))}const v=X5(e.baseURL,e.url);p.open(e.method.toUpperCase(),q5(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout;function h(){if(!p)return;const g=er.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),b={data:!r||r==="text"||r==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:g,config:e,request:p};Bue(function(k){n(k),u()},function(k){a(k),u()},b),p=null}if("onloadend"in p?p.onloadend=h:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(h)},p.onabort=function(){p&&(a(new Hn("Request aborted",Hn.ECONNABORTED,e,p)),p=null)},p.onerror=function(){a(new Hn("Network Error",Hn.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||j5;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),a(new Hn(y,b.clarifyTimeoutError?Hn.ETIMEDOUT:Hn.ECONNABORTED,e,p)),p=null},Wr.hasStandardBrowserEnv&&(i&&pt.isFunction(i)&&(i=i(e)),i||i!==!1&&Vue(v))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&Lue.read(e.xsrfCookieName);g&&o.set(e.xsrfHeaderName,g)}s===void 0&&o.setContentType(null),"setRequestHeader"in p&&pt.forEach(o.toJSON(),function(y,b){p.setRequestHeader(b,y)}),pt.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),r&&r!=="json"&&(p.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&p.addEventListener("progress",SE(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",SE(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=g=>{p&&(a(!g||g.type?new jp(null,e,p):g),p.abort(),p=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const m=Fue(v);if(m&&Wr.protocols.indexOf(m)===-1){a(new Hn("Unsupported protocol "+m+":",Hn.ERR_BAD_REQUEST,e));return}p.send(s||null)})},y1={http:vue,xhr:Hue};pt.forEach(y1,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const EE=e=>`- ${e}`,Kue=e=>pt.isFunction(e)||e===null||e===!1,Q5={getAdapter:e=>{e=pt.isArray(e)?e:[e];const{length:t}=e;let n,a;const s={};for(let o=0;o`adapter ${i} `+(c===!1?"is not supported by the environment":"is not available in the build"));let r=t?o.length>1?`since : `+o.map(EE).join(` `):" "+EE(o[0]):"as no adapter specified";throw new Hn("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return a},adapters:y1};function $g(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new jp(null,e)}function $E(e){return $g(e),e.headers=er.from(e.headers),e.data=Eg.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Q5.getAdapter(e.adapter||qp.adapter)(e).then(function(a){return $g(e),a.data=Eg.call(e,e.transformResponse,a),a.headers=er.from(a.headers),a},function(a){return Y5(a)||($g(e),a&&a.response&&(a.response.data=Eg.call(e,e.transformResponse,a.response),a.response.headers=er.from(a.response.headers))),Promise.reject(a)})}const xE=e=>e instanceof er?{...e}:e;function rd(e,t){t=t||{};const n={};function a(u,d,p){return pt.isPlainObject(u)&&pt.isPlainObject(d)?pt.merge.call({caseless:p},u,d):pt.isPlainObject(d)?pt.merge({},d):pt.isArray(d)?d.slice():d}function s(u,d,p){if(pt.isUndefined(d)){if(!pt.isUndefined(u))return a(void 0,u,p)}else return a(u,d,p)}function o(u,d){if(!pt.isUndefined(d))return a(void 0,d)}function r(u,d){if(pt.isUndefined(d)){if(!pt.isUndefined(u))return a(void 0,u)}else return a(void 0,d)}function i(u,d,p){if(p in t)return a(u,d);if(p in e)return a(void 0,u)}const c={url:o,method:o,data:o,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,responseEncoding:r,validateStatus:i,headers:(u,d)=>s(xE(u),xE(d),!0)};return pt.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=c[d]||s,v=p(e[d],t[d],d);pt.isUndefined(v)&&p!==i||(n[d]=v)}),n}const J5="1.6.8",h2={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{h2[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const TE={};h2.transitional=function(t,n,a){function s(o,r){return"[Axios v"+J5+"] Transitional option '"+o+"'"+r+(a?". "+a:"")}return(o,r,i)=>{if(t===!1)throw new Hn(s(r," has been removed"+(n?" in "+n:"")),Hn.ERR_DEPRECATED);return n&&!TE[r]&&(TE[r]=!0,console.warn(s(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,r,i):!0}};function que(e,t,n){if(typeof e!="object")throw new Hn("options must be an object",Hn.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let s=a.length;for(;s-- >0;){const o=a[s],r=t[o];if(r){const i=e[o],c=i===void 0||r(i,o,e);if(c!==!0)throw new Hn("option "+o+" must be "+c,Hn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Hn("Unknown option "+o,Hn.ERR_BAD_OPTION)}}const b1={assertOptions:que,validators:h2},ni=b1.validators;let Ic=class{constructor(t){this.defaults=t,this.interceptors={request:new CE,response:new CE}}async request(t,n){try{return await this._request(t,n)}catch(a){if(a instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";a.stack?o&&!String(a.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(a.stack+=` `+o):a.stack=o}throw a}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=rd(this.defaults,n);const{transitional:a,paramsSerializer:s,headers:o}=n;a!==void 0&&b1.assertOptions(a,{silentJSONParsing:ni.transitional(ni.boolean),forcedJSONParsing:ni.transitional(ni.boolean),clarifyTimeoutError:ni.transitional(ni.boolean)},!1),s!=null&&(pt.isFunction(s)?n.paramsSerializer={serialize:s}:b1.assertOptions(s,{encode:ni.function,serialize:ni.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=o&&pt.merge(o.common,o[n.method]);o&&pt.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=er.concat(r,o);const i=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(c=c&&g.synchronous,i.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let d,p=0,v;if(!c){const m=[$E.bind(this),void 0];for(m.unshift.apply(m,i),m.push.apply(m,u),v=m.length,d=Promise.resolve(n);p{if(!a._listeners)return;let o=a._listeners.length;for(;o-- >0;)a._listeners[o](s);a._listeners=null}),this.promise.then=s=>{let o;const r=new Promise(i=>{a.subscribe(i),o=i}).then(s);return r.cancel=function(){a.unsubscribe(o)},r},t(function(o,r,i){a.reason||(a.reason=new jp(o,r,i),n(a.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)}static source(){let t;return{token:new Z5(function(s){t=s}),cancel:t}}};function Wue(e){return function(n){return e.apply(null,n)}}function Gue(e){return pt.isObject(e)&&e.isAxiosError===!0}const w1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(w1).forEach(([e,t])=>{w1[t]=e});function e6(e){const t=new Ic(e),n=P5(Ic.prototype.request,t);return pt.extend(n,Ic.prototype,t,{allOwnKeys:!0}),pt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return e6(rd(e,s))},n}const Ba=e6(qp);Ba.Axios=Ic;Ba.CanceledError=jp;Ba.CancelToken=jue;Ba.isCancel=Y5;Ba.VERSION=J5;Ba.toFormData=v0;Ba.AxiosError=Hn;Ba.Cancel=Ba.CanceledError;Ba.all=function(t){return Promise.all(t)};Ba.spread=Wue;Ba.isAxiosError=Gue;Ba.mergeConfig=rd;Ba.AxiosHeaders=er;Ba.formToJSON=e=>G5(pt.isHTMLForm(e)?new FormData(e):e);Ba.getAdapter=Q5.getAdapter;Ba.HttpStatusCode=w1;Ba.default=Ba;const{Axios:bpt,AxiosError:wpt,CanceledError:Cpt,isCancel:kpt,CancelToken:Spt,VERSION:Ept,all:$pt,Cancel:xpt,isAxiosError:Tpt,spread:Ipt,toFormData:Apt,AxiosHeaders:Npt,HttpStatusCode:Rpt,formToJSON:Ppt,getAdapter:Mpt,mergeConfig:Bpt}=Ba,Yue=()=>"AiStore 商城",h0=()=>"/",Pf=T(!1);let pf,vf;const m2=async()=>{var n;if((await Q6()).verifyStatus==="verified")return!0;const{useUserStore:t}=await am(()=>Promise.resolve().then(()=>J6),void 0);if(((n=t().userInfo)==null?void 0:n.userType)==="enterprise"){try{await ua.confirm("当前企业尚未完成企业认证,完成认证后即可使用模型调用、下单等受限功能。","请先完成企业认证",{confirmButtonText:"前往企业认证",cancelButtonText:"暂不认证",type:"warning"});const{default:a}=await am(()=>Promise.resolve().then(()=>GA),void 0);await a.push({name:"enterprise-verification"})}catch{}return!1}return vf||(Pf.value=!0,vf=new Promise(a=>{pf=a}),vf)},xg=e=>{Pf.value=!1,pf==null||pf(e),pf=void 0,vf=void 0},Wp="aistore_mall_token",Xue="aistore-mall-session-v1",g2="session-invalidated";let Zi,IE=!1;const C1=new Set,Que=e=>!e||typeof e!="object"||!("type"in e)?!1:e.type===g2,Jue=()=>{if(Zi!==void 0)return Zi;if(typeof BroadcastChannel>"u")return Zi=null,Zi;try{Zi=new BroadcastChannel(Xue)}catch{Zi=null}return Zi},Zue=e=>{const t=e.data;Que(t)&&t.type===g2&&C1.forEach(n=>n())},t6=()=>{const e=Jue();return!e||IE||(e.addEventListener("message",Zue),IE=!0),e},_2=()=>{localStorage.removeItem(Wp)},y2=()=>(_2(),sessionStorage.getItem(Wp)||""),ede=e=>{_2(),sessionStorage.setItem(Wp,e)},n6=()=>{sessionStorage.removeItem(Wp),_2()},tde=e=>(t6(),C1.add(e),()=>C1.delete(e)),nde=()=>{var e;(e=t6())==null||e.postMessage({type:g2})},Gr={SUCCESS:200,UNAUTHORIZED:401,FORBIDDEN:403,IDENTITY_VERIFICATION_REQUIRED:1024},ade=200,_h="操作未完成,请稍后重试",sde=new Set([500,1023,5001,5002,5003,5004,5005]);let Mv=null;const bc=e=>!!(e&&typeof e=="object"&&"code"in e&&"message"in e),ode=(e,t,n,a)=>{const s=new Error(e);return s.code=t,s.status=n,s.traceId=a,s},rde=(e,t)=>bc(t)&&t.message||e,lde=(e,t,n,a=!1)=>t===Gr.UNAUTHORIZED||n===Gr.UNAUTHORIZED||n===4002?"登录状态已失效,请重新登录":t===Gr.FORBIDDEN||n===Gr.FORBIDDEN||n===4003?"当前账号暂无此操作权限":t===404?"请求的内容不存在或已被移除":t&&t>=500||n!==void 0&&sde.has(n)?"服务暂时不可用,请稍后重试":!t&&/timeout/i.test(e)?"请求超时,请检查网络后重试":!t&&/network error/i.test(e)?"网络连接异常,请检查网络后重试":a&&e?e:t===400?"请求参数有误,请检查提交内容":_h,a6=e=>{rt.error({message:e,showClose:!0,grouping:!0,duration:4200})},s6=(e,t)=>e===Gr.UNAUTHORIZED||t===Gr.UNAUTHORIZED,ide=e=>e===Gr.IDENTITY_VERIFICATION_REQUIRED,cde=(e,t,n)=>!!(e!=null&&e.silentAuthError&&s6(t,n)),ude=async()=>{if(Mv)return!1;const e=(async()=>{const[{useUserStore:t},{default:n}]=await Promise.all([am(()=>Promise.resolve().then(()=>J6),void 0),am(()=>Promise.resolve().then(()=>GA),void 0)]);t().clearSession({revokeRemembered:!1});const a=n.currentRoute.value,s=a.name!=="login"&&a.fullPath.startsWith("/")&&!a.fullPath.startsWith("//")?a.fullPath:void 0;return await n.replace(s?{name:"login",query:{redirect:s}}:{name:"login"}),!0})();Mv=e;try{return await e}finally{Mv===e&&(Mv=null)}},o6=async e=>s6(e==null?void 0:e.status,e==null?void 0:e.code)?(n6(),e!=null&&e.silent||await ude()&&a6("登录状态已失效,请重新登录"),!0):!1,dde=e=>{m2().catch(()=>{})},Tg=async(e,t,n,a,s)=>{const o=bc(t)&&t.code!==Gr.SUCCESS,r=lde(e,n,s,o),i=cde(a,n,s),c=await o6({status:n,code:s,silent:i});throw!i&&ide(s)?dde():!i&&!c&&!(a!=null&&a.silentErrorMessage)&&a6(r),ode(r,s,n,bc(t)?t.traceId:void 0)},dt=Ba.create({baseURL:h0(),timeout:1e4});dt.interceptors.request.use(e=>{const t=y2();return t&&(e.headers.Authorization=`Bearer ${t}`),e});dt.interceptors.response.use(async e=>{const t=e.data;if(e.status!==ade){const n=bc(t)?t.code:void 0,a=bc(t)&&t.code!==Gr.SUCCESS?t.message:_h;return Tg(a,t,e.status,e.config,n)}if(!bc(t))return t;if(t.code!==Gr.SUCCESS){const n=t.message||_h;return Tg(n,t,e.status,e.config,t.code)}return t.data},async e=>{var r,i,c;const t=(r=e==null?void 0:e.response)==null?void 0:r.data,n=bc(t)?t.code:void 0,a=(i=e==null?void 0:e.response)==null?void 0:i.status,s=(e==null?void 0:e.config)||((c=e==null?void 0:e.response)==null?void 0:c.config),o=rde((e==null?void 0:e.message)||_h,t);return Tg(o,t,a,s,n)});var Nn={options:{usePureJavaScript:!1}},b2={},fde=b2,AE={};b2.encode=function(e,t,n){if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');if(n!==void 0&&typeof n!="number")throw new TypeError('"maxline" must be a number.');var a="";if(!(e instanceof Uint8Array))a=pde(e,t);else{var s=0,o=t.length,r=t.charAt(0),i=[0];for(s=0;s0;)i.push(u%o),u=u/o|0}for(s=0;e[s]===0&&s=0;--s)a+=t[i[s]]}if(n){var d=new RegExp(".{1,"+n+"}","g");a=a.match(d).join(`\r `)}return a};b2.decode=function(e,t){if(typeof e!="string")throw new TypeError('"input" must be a string.');if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');var n=AE[t];if(!n){n=AE[t]=[];for(var a=0;a>=8;for(;u>0;)r.push(u&255),u>>=8}for(var d=0;e[d]===o&&d0;)o.push(i%a),i=i/a|0}var c="";for(n=0;e.at(n)===0&&n=0;--n)c+=t[o[n]];return c}var NE=Nn,RE=fde,Be=NE.util=NE.util||{};(function(){if(typeof process<"u"&&process.nextTick&&!process.browser){Be.nextTick=process.nextTick,typeof setImmediate=="function"?Be.setImmediate=setImmediate:Be.setImmediate=Be.nextTick;return}if(typeof setImmediate=="function"){Be.setImmediate=function(){return setImmediate.apply(void 0,arguments)},Be.nextTick=function(i){return setImmediate(i)};return}if(Be.setImmediate=function(i){setTimeout(i,0)},typeof window<"u"&&typeof window.postMessage=="function"){let i=function(c){if(c.source===window&&c.data===e){c.stopPropagation();var u=t.slice();t.length=0,u.forEach(function(d){d()})}};var r=i,e="forge.setImmediate",t=[];Be.setImmediate=function(c){t.push(c),t.length===1&&window.postMessage(e,"*")},window.addEventListener("message",i,!0)}if(typeof MutationObserver<"u"){var n=Date.now(),a=!0,s=document.createElement("div"),t=[];new MutationObserver(function(){var c=t.slice();t.length=0,c.forEach(function(u){u()})}).observe(s,{attributes:!0});var o=Be.setImmediate;Be.setImmediate=function(c){Date.now()-n>15?(n=Date.now(),o(c)):(t.push(c),t.length===1&&s.setAttribute("a",a=!a))}}Be.nextTick=Be.setImmediate})();Be.isNodejs=typeof process<"u"&&process.versions&&process.versions.node;Be.globalScope=function(){return Be.isNodejs?ll:typeof self>"u"?window:self}();Be.isArray=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};Be.isArrayBuffer=function(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer};Be.isArrayBufferView=function(e){return e&&Be.isArrayBuffer(e.buffer)&&e.byteLength!==void 0};function Gp(e){if(!(e===8||e===16||e===24||e===32))throw new Error("Only 8, 16, 24, or 32 bits supported: "+e)}Be.ByteBuffer=w2;function w2(e){if(this.data="",this.read=0,typeof e=="string")this.data=e;else if(Be.isArrayBuffer(e)||Be.isArrayBufferView(e))if(typeof Buffer<"u"&&e instanceof Buffer)this.data=e.toString("binary");else{var t=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,t)}catch{for(var n=0;nvde&&(this.data.substr(0,1),this._constructedStringLength=0)};Be.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read};Be.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0};Be.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))};Be.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);for(var n=this.data;t>0;)t&1&&(n+=e),t>>>=1,t>0&&(e+=e);return this.data=n,this._optimizeConstructedString(t),this};Be.ByteStringBuffer.prototype.putBytes=function(e){return this.data+=e,this._optimizeConstructedString(e.length),this};Be.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(Be.encodeUtf8(e))};Be.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))};Be.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))};Be.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))};Be.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255))};Be.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))};Be.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))};Be.ByteStringBuffer.prototype.putInt=function(e,t){Gp(t);var n="";do t-=8,n+=String.fromCharCode(e>>t&255);while(t>0);return this.putBytes(n)};Be.ByteStringBuffer.prototype.putSignedInt=function(e,t){return e<0&&(e+=2<0);return t};Be.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),n=2<=n&&(t-=n<<1),t};Be.ByteStringBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t};Be.ByteStringBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)};Be.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)};Be.ByteStringBuffer.prototype.setAt=function(e,t){return this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1),this};Be.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)};Be.ByteStringBuffer.prototype.copy=function(){var e=Be.createBuffer(this.data);return e.read=this.read,e};Be.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this};Be.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this};Be.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);return this.data=this.data.substr(this.read,t),this.read=0,this};Be.ByteStringBuffer.prototype.toHex=function(){for(var e="",t=this.read;t=e)return this;t=Math.max(t||this.growSize,e);var n=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),a=new Uint8Array(this.length()+t);return a.set(n),this.data=new DataView(a.buffer),this};Be.DataBuffer.prototype.putByte=function(e){return this.accommodate(1),this.data.setUint8(this.write++,e),this};Be.DataBuffer.prototype.fillWithByte=function(e,t){this.accommodate(t);for(var n=0;n>8&65535),this.data.setInt8(this.write,e>>16&255),this.write+=3,this};Be.DataBuffer.prototype.putInt32=function(e){return this.accommodate(4),this.data.setInt32(this.write,e),this.write+=4,this};Be.DataBuffer.prototype.putInt16Le=function(e){return this.accommodate(2),this.data.setInt16(this.write,e,!0),this.write+=2,this};Be.DataBuffer.prototype.putInt24Le=function(e){return this.accommodate(3),this.data.setInt8(this.write,e>>16&255),this.data.setInt16(this.write,e>>8&65535,!0),this.write+=3,this};Be.DataBuffer.prototype.putInt32Le=function(e){return this.accommodate(4),this.data.setInt32(this.write,e,!0),this.write+=4,this};Be.DataBuffer.prototype.putInt=function(e,t){Gp(t),this.accommodate(t/8);do t-=8,this.data.setInt8(this.write++,e>>t&255);while(t>0);return this};Be.DataBuffer.prototype.putSignedInt=function(e,t){return Gp(t),this.accommodate(t/8),e<0&&(e+=2<0);return t};Be.DataBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),n=2<=n&&(t-=n<<1),t};Be.DataBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t};Be.DataBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)};Be.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)};Be.DataBuffer.prototype.setAt=function(e,t){return this.data.setUint8(e,t),this};Be.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)};Be.DataBuffer.prototype.copy=function(){return new Be.DataBuffer(this)};Be.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read),t=new Uint8Array(e.byteLength);t.set(e),this.data=new DataView(t),this.write-=this.read,this.read=0}return this};Be.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this};Be.DataBuffer.prototype.truncate=function(e){return this.write=Math.max(0,this.length()-e),this.read=Math.min(this.read,this.write),this};Be.DataBuffer.prototype.toHex=function(){for(var e="",t=this.read;t0;)t&1&&(n+=e),t>>>=1,t>0&&(e+=e);return n};Be.xorBytes=function(e,t,n){for(var a="",s="",o="",r=0,i=0;n>0;--n,++r)s=e.charCodeAt(r)^t.charCodeAt(r),i>=10&&(a+=o,o="",i=0),o+=String.fromCharCode(s),++i;return a+=o,a};Be.hexToBytes=function(e){var t="",n=0;for(e.length&!0&&(n=1,t+=String.fromCharCode(parseInt(e[0],16)));n>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255)};var yi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bi=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],r6="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";Be.encode64=function(e,t){for(var n="",a="",s,o,r,i=0;i>2),n+=yi.charAt((s&3)<<4|o>>4),isNaN(o)?n+="==":(n+=yi.charAt((o&15)<<2|r>>6),n+=isNaN(r)?"=":yi.charAt(r&63)),t&&n.length>t&&(a+=n.substr(0,t)+`\r `,n=n.substr(t));return a+=n,a};Be.decode64=function(e){e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var t="",n,a,s,o,r=0;r>4),s!==64&&(t+=String.fromCharCode((a&15)<<4|s>>2),o!==64&&(t+=String.fromCharCode((s&3)<<6|o)));return t};Be.encodeUtf8=function(e){return unescape(encodeURIComponent(e))};Be.decodeUtf8=function(e){return decodeURIComponent(escape(e))};Be.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:RE.encode,decode:RE.decode}};Be.binary.raw.encode=function(e){return String.fromCharCode.apply(null,e)};Be.binary.raw.decode=function(e,t,n){var a=t;a||(a=new Uint8Array(e.length)),n=n||0;for(var s=n,o=0;o>2),n+=yi.charAt((s&3)<<4|o>>4),isNaN(o)?n+="==":(n+=yi.charAt((o&15)<<2|r>>6),n+=isNaN(r)?"=":yi.charAt(r&63)),t&&n.length>t&&(a+=n.substr(0,t)+`\r `,n=n.substr(t));return a+=n,a};Be.binary.base64.decode=function(e,t,n){var a=t;a||(a=new Uint8Array(Math.ceil(e.length/4)*3)),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,""),n=n||0;for(var s,o,r,i,c=0,u=n;c>4,r!==64&&(a[u++]=(o&15)<<4|r>>2,i!==64&&(a[u++]=(r&3)<<6|i));return t?u-n:a.subarray(0,u)};Be.binary.base58.encode=function(e,t){return Be.binary.baseN.encode(e,r6,t)};Be.binary.base58.decode=function(e,t){return Be.binary.baseN.decode(e,r6,t)};Be.text={utf8:{},utf16:{}};Be.text.utf8.encode=function(e,t,n){e=Be.encodeUtf8(e);var a=t;a||(a=new Uint8Array(e.length)),n=n||0;for(var s=n,o=0;o"u"&&(n=["web","flash"]);var s,o=!1,r=null;for(var i in n){s=n[i];try{if(s==="flash"||s==="both"){if(t[0]===null)throw new Error("Flash local storage not available.");a=e.apply(this,t),o=s==="flash"}(s==="web"||s==="both")&&(t[0]=localStorage,a=e.apply(this,t),o=!0)}catch(c){r=c}if(o)break}if(!o)throw r;return a};Be.setItem=function(e,t,n,a,s){m0(mde,arguments,s)};Be.getItem=function(e,t,n,a){return m0(gde,arguments,a)};Be.removeItem=function(e,t,n,a){m0(_de,arguments,a)};Be.clearItems=function(e,t,n){m0(yde,arguments,n)};Be.isEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0};Be.format=function(e){for(var t=/%./g,n,a,s=0,o=[],r=0;n=t.exec(e);){a=e.substring(r,t.lastIndex-2),a.length>0&&o.push(a),r=t.lastIndex;var i=n[0][1];switch(i){case"s":case"o":s");break;case"%":o.push("%");break;default:o.push("<%"+i+"?>")}}return o.push(e.substring(r)),o.join("")};Be.formatNumber=function(e,t,n,a){var s=e,o=isNaN(t=Math.abs(t))?2:t,r=n===void 0?",":n,i=a===void 0?".":a,c=s<0?"-":"",u=parseInt(s=Math.abs(+s||0).toFixed(o),10)+"",d=u.length>3?u.length%3:0;return c+(d?u.substr(0,d)+i:"")+u.substr(d).replace(/(\d{3})(?=\d)/g,"$1"+i)+(o?r+Math.abs(s-u).toFixed(o).slice(2):"")};Be.formatSize=function(e){return e>=1073741824?e=Be.formatNumber(e/1073741824,2,".","")+" GiB":e>=1048576?e=Be.formatNumber(e/1048576,2,".","")+" MiB":e>=1024?e=Be.formatNumber(e/1024,0)+" KiB":e=Be.formatNumber(e,0)+" bytes",e};Be.bytesFromIP=function(e){return e.indexOf(".")!==-1?Be.bytesFromIPv4(e):e.indexOf(":")!==-1?Be.bytesFromIPv6(e):null};Be.bytesFromIPv4=function(e){if(e=e.split("."),e.length!==4)return null;for(var t=Be.createBuffer(),n=0;nn[a].end-n[a].start&&(a=n.length-1))}t.push(o)}if(n.length>0){var c=n[a];c.end-c.start>0&&(t.splice(c.start,c.end-c.start+1,""),c.start===0&&t.unshift(""),c.end===7&&t.push(""))}return t.join(":")};Be.estimateCores=function(e,t){if(typeof e=="function"&&(t=e,e={}),e=e||{},"cores"in Be&&!e.update)return t(null,Be.cores);if(typeof navigator<"u"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return Be.cores=navigator.hardwareConcurrency,t(null,Be.cores);if(typeof Worker>"u")return Be.cores=1,t(null,Be.cores);if(typeof Blob>"u")return Be.cores=2,t(null,Be.cores);var n=URL.createObjectURL(new Blob(["(",(function(){self.addEventListener("message",function(r){var i=Date.now(),c=i+4;self.postMessage({st:i,et:c})})}).toString(),")()"],{type:"application/javascript"}));a([],5,16);function a(r,i,c){if(i===0){var u=Math.floor(r.reduce(function(d,p){return d+p},0)/r.length);return Be.cores=Math.max(1,u),URL.revokeObjectURL(n),t(null,Be.cores)}s(c,function(d,p){r.push(o(c,p)),a(r,i-1,c)})}function s(r,i){for(var c=[],u=[],d=0;dh.st&&d.std.st&&h.st0))return!0;for(var a=0;a0))return!0;for(var a=0;a0)return!1;var n=e.length(),a=e.at(n-1);return a>this.blockSize<<2?!1:(e.truncate(a),!0)};Bn.cbc=function(e){e=e||{},this.name="CBC",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)};Bn.cbc.prototype.start=function(e){if(e.iv===null){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else if("iv"in e)this._iv=g0(e.iv,this.blockSize),this._prev=this._iv.slice(0);else throw new Error("Invalid IV parameter.")};Bn.cbc.prototype.encrypt=function(e,t,n){if(e.length()0))return!0;for(var a=0;a0))return!0;for(var a=0;a0)return!1;var n=e.length(),a=e.at(n-1);return a>this.blockSize<<2?!1:(e.truncate(a),!0)};Bn.cfb=function(e){e=e||{},this.name="CFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=us.util.createBuffer(),this._partialBytes=0};Bn.cfb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=g0(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};Bn.cfb.prototype.encrypt=function(e,t,n){var a=e.length();if(a===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize){for(var s=0;s0&&(o=this.blockSize-o),this._partialOutput.clear();for(var s=0;s0)e.read-=this.blockSize;else for(var s=0;s0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!n)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0};Bn.cfb.prototype.decrypt=function(e,t,n){var a=e.length();if(a===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize){for(var s=0;s0&&(o=this.blockSize-o),this._partialOutput.clear();for(var s=0;s0)e.read-=this.blockSize;else for(var s=0;s0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!n)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0};Bn.ofb=function(e){e=e||{},this.name="OFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=us.util.createBuffer(),this._partialBytes=0};Bn.ofb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=g0(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};Bn.ofb.prototype.encrypt=function(e,t,n){var a=e.length();if(e.length()===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize){for(var s=0;s0&&(o=this.blockSize-o),this._partialOutput.clear();for(var s=0;s0)e.read-=this.blockSize;else for(var s=0;s0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!n)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0};Bn.ofb.prototype.decrypt=Bn.ofb.prototype.encrypt;Bn.ctr=function(e){e=e||{},this.name="CTR",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=us.util.createBuffer(),this._partialBytes=0};Bn.ctr.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=g0(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};Bn.ctr.prototype.encrypt=function(e,t,n){var a=e.length();if(a===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize)for(var s=0;s0&&(o=this.blockSize-o),this._partialOutput.clear();for(var s=0;s0&&(e.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!n)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0}_0(this._inBlock)};Bn.ctr.prototype.decrypt=Bn.ctr.prototype.encrypt;Bn.gcm=function(e){e=e||{},this.name="GCM",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=us.util.createBuffer(),this._partialBytes=0,this._R=3774873600};Bn.gcm.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");var t=us.util.createBuffer(e.iv);this._cipherLength=0;var n;if("additionalData"in e?n=us.util.createBuffer(e.additionalData):n=us.util.createBuffer(),"tagLength"in e?this._tagLength=e.tagLength:this._tagLength=128,this._tag=null,e.decrypt&&(this._tag=us.util.createBuffer(e.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var a=t.length();if(a===12)this._j0=[t.getInt32(),t.getInt32(),t.getInt32(),1];else{for(this._j0=[0,0,0,0];t.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[t.getInt32(),t.getInt32(),t.getInt32(),t.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(k1(a*8)))}this._inBlock=this._j0.slice(0),_0(this._inBlock),this._partialBytes=0,n=us.util.createBuffer(n),this._aDataLength=k1(n.length()*8);var s=n.length()%this.blockSize;for(s&&n.fillWithByte(0,this.blockSize-s),this._s=[0,0,0,0];n.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[n.getInt32(),n.getInt32(),n.getInt32(),n.getInt32()])};Bn.gcm.prototype.encrypt=function(e,t,n){var a=e.length();if(a===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize){for(var s=0;s0&&(o=this.blockSize-o),this._partialOutput.clear();for(var s=0;s0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!n)return e.read-=this.blockSize,t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),_0(this._inBlock)};Bn.gcm.prototype.decrypt=function(e,t,n){var a=e.length();if(a0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),_0(this._inBlock),this._hashBlock[0]=e.getInt32(),this._hashBlock[1]=e.getInt32(),this._hashBlock[2]=e.getInt32(),this._hashBlock[3]=e.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var s=0;s0;--a)t[a]=e[a]>>>1|(e[a-1]&1)<<31;t[0]=e[0]>>>1,n&&(t[0]^=this._R)};Bn.gcm.prototype.tableMultiply=function(e){for(var t=[0,0,0,0],n=0;n<32;++n){var a=n/8|0,s=e[a]>>>(7-n%8)*4&15,o=this._m[n][s];t[0]^=o[0],t[1]^=o[1],t[2]^=o[2],t[3]^=o[3]}return t};Bn.gcm.prototype.ghash=function(e,t,n){return t[0]^=n[0],t[1]^=n[1],t[2]^=n[2],t[3]^=n[3],this.tableMultiply(t)};Bn.gcm.prototype.generateHashTable=function(e,t){for(var n=8/t,a=4*n,s=16*n,o=new Array(s),r=0;r>>1,s=new Array(n);s[a]=e.slice(0);for(var o=a>>>1;o>0;)this.pow(s[2*o],s[o]=[]),o>>=1;for(o=2;o4){var n=e;e=us.util.createBuffer();for(var a=0;a>>2;for(var a=0;a>8^i&255^99,Qs[n]=i,S1[i]=n,c=e[i],s=e[n],o=e[s],r=e[o],u=c<<24^i<<16^i<<8^(i^c),d=(s^o^r)<<24^(n^r)<<16^(n^o^r)<<8^(n^s^r);for(var p=0;p<4;++p)wc[p][n]=u,_r[p][i]=d,u=u<<24|u>>>8,d=d<<24|d>>>8;n===0?n=a=1:(n=s^e[e[e[s^r]]],a^=e[e[a]])}}function c6(e,t){for(var n=e.slice(0),a,s=1,o=n.length,r=o+6+1,i=fu*r,c=o;c>>16&255]<<24^Qs[a>>>8&255]<<16^Qs[a&255]<<8^Qs[a>>>24]^l6[s]<<24,s++):o>6&&c%o===4&&(a=Qs[a>>>24]<<24^Qs[a>>>16&255]<<16^Qs[a>>>8&255]<<8^Qs[a&255]),n[c]=n[c-o]^a;if(t){var u,d=_r[0],p=_r[1],v=_r[2],h=_r[3],m=n.slice(0);i=n.length;for(var c=0,g=i-fu;c>>24]]^p[Qs[u>>>16&255]]^v[Qs[u>>>8&255]]^h[Qs[u&255]];n=m}return n}function E1(e,t,n,a){var s=e.length/4-1,o,r,i,c,u;a?(o=_r[0],r=_r[1],i=_r[2],c=_r[3],u=S1):(o=wc[0],r=wc[1],i=wc[2],c=wc[3],u=Qs);var d,p,v,h,m,g,y;d=t[0]^e[0],p=t[a?3:1]^e[1],v=t[2]^e[2],h=t[a?1:3]^e[3];for(var b=3,C=1;C>>24]^r[p>>>16&255]^i[v>>>8&255]^c[h&255]^e[++b],g=o[p>>>24]^r[v>>>16&255]^i[h>>>8&255]^c[d&255]^e[++b],y=o[v>>>24]^r[h>>>16&255]^i[d>>>8&255]^c[p&255]^e[++b],h=o[h>>>24]^r[d>>>16&255]^i[p>>>8&255]^c[v&255]^e[++b],d=m,p=g,v=y;n[0]=u[d>>>24]<<24^u[p>>>16&255]<<16^u[v>>>8&255]<<8^u[h&255]^e[++b],n[a?3:1]=u[p>>>24]<<24^u[v>>>16&255]<<16^u[h>>>8&255]<<8^u[d&255]^e[++b],n[2]=u[v>>>24]<<24^u[h>>>16&255]<<16^u[d>>>8&255]<<8^u[p&255]^e[++b],n[a?1:3]=u[h>>>24]<<24^u[d>>>16&255]<<16^u[p>>>8&255]<<8^u[v&255]^e[++b]}function y0(e){e=e||{};var t=(e.mode||"CBC").toUpperCase(),n="AES-"+t,a;e.decrypt?a=da.cipher.createDecipher(n,e.key):a=da.cipher.createCipher(n,e.key);var s=a.start;return a.start=function(o,r){var i=null;r instanceof da.util.ByteBuffer&&(i=r,r={}),r=r||{},r.output=i,r.iv=o,s.call(a,r)},a}var Mf=Nn;Mf.pki=Mf.pki||{};var $1=Mf.pki.oids=Mf.oids=Mf.oids||{};function bt(e,t){$1[e]=t,$1[t]=e}function Qn(e,t){$1[e]=t}bt("1.2.840.113549.1.1.1","rsaEncryption");bt("1.2.840.113549.1.1.4","md5WithRSAEncryption");bt("1.2.840.113549.1.1.5","sha1WithRSAEncryption");bt("1.2.840.113549.1.1.7","RSAES-OAEP");bt("1.2.840.113549.1.1.8","mgf1");bt("1.2.840.113549.1.1.9","pSpecified");bt("1.2.840.113549.1.1.10","RSASSA-PSS");bt("1.2.840.113549.1.1.11","sha256WithRSAEncryption");bt("1.2.840.113549.1.1.12","sha384WithRSAEncryption");bt("1.2.840.113549.1.1.13","sha512WithRSAEncryption");bt("1.3.101.112","EdDSA25519");bt("1.2.840.10040.4.3","dsa-with-sha1");bt("1.3.14.3.2.7","desCBC");bt("1.3.14.3.2.26","sha1");bt("1.3.14.3.2.29","sha1WithRSASignature");bt("2.16.840.1.101.3.4.2.1","sha256");bt("2.16.840.1.101.3.4.2.2","sha384");bt("2.16.840.1.101.3.4.2.3","sha512");bt("2.16.840.1.101.3.4.2.4","sha224");bt("2.16.840.1.101.3.4.2.5","sha512-224");bt("2.16.840.1.101.3.4.2.6","sha512-256");bt("1.2.840.113549.2.2","md2");bt("1.2.840.113549.2.5","md5");bt("1.2.840.113549.1.7.1","data");bt("1.2.840.113549.1.7.2","signedData");bt("1.2.840.113549.1.7.3","envelopedData");bt("1.2.840.113549.1.7.4","signedAndEnvelopedData");bt("1.2.840.113549.1.7.5","digestedData");bt("1.2.840.113549.1.7.6","encryptedData");bt("1.2.840.113549.1.9.1","emailAddress");bt("1.2.840.113549.1.9.2","unstructuredName");bt("1.2.840.113549.1.9.3","contentType");bt("1.2.840.113549.1.9.4","messageDigest");bt("1.2.840.113549.1.9.5","signingTime");bt("1.2.840.113549.1.9.6","counterSignature");bt("1.2.840.113549.1.9.7","challengePassword");bt("1.2.840.113549.1.9.8","unstructuredAddress");bt("1.2.840.113549.1.9.14","extensionRequest");bt("1.2.840.113549.1.9.20","friendlyName");bt("1.2.840.113549.1.9.21","localKeyId");bt("1.2.840.113549.1.9.22.1","x509Certificate");bt("1.2.840.113549.1.12.10.1.1","keyBag");bt("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag");bt("1.2.840.113549.1.12.10.1.3","certBag");bt("1.2.840.113549.1.12.10.1.4","crlBag");bt("1.2.840.113549.1.12.10.1.5","secretBag");bt("1.2.840.113549.1.12.10.1.6","safeContentsBag");bt("1.2.840.113549.1.5.13","pkcs5PBES2");bt("1.2.840.113549.1.5.12","pkcs5PBKDF2");bt("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4");bt("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4");bt("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC");bt("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC");bt("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC");bt("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC");bt("1.2.840.113549.2.7","hmacWithSHA1");bt("1.2.840.113549.2.8","hmacWithSHA224");bt("1.2.840.113549.2.9","hmacWithSHA256");bt("1.2.840.113549.2.10","hmacWithSHA384");bt("1.2.840.113549.2.11","hmacWithSHA512");bt("1.2.840.113549.3.7","des-EDE3-CBC");bt("2.16.840.1.101.3.4.1.2","aes128-CBC");bt("2.16.840.1.101.3.4.1.22","aes192-CBC");bt("2.16.840.1.101.3.4.1.42","aes256-CBC");bt("2.5.4.3","commonName");bt("2.5.4.4","surname");bt("2.5.4.5","serialNumber");bt("2.5.4.6","countryName");bt("2.5.4.7","localityName");bt("2.5.4.8","stateOrProvinceName");bt("2.5.4.9","streetAddress");bt("2.5.4.10","organizationName");bt("2.5.4.11","organizationalUnitName");bt("2.5.4.12","title");bt("2.5.4.13","description");bt("2.5.4.15","businessCategory");bt("2.5.4.17","postalCode");bt("2.5.4.42","givenName");bt("2.5.4.65","pseudonym");bt("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName");bt("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName");bt("2.16.840.1.113730.1.1","nsCertType");bt("2.16.840.1.113730.1.13","nsComment");Qn("2.5.29.1","authorityKeyIdentifier");Qn("2.5.29.2","keyAttributes");Qn("2.5.29.3","certificatePolicies");Qn("2.5.29.4","keyUsageRestriction");Qn("2.5.29.5","policyMapping");Qn("2.5.29.6","subtreesConstraint");Qn("2.5.29.7","subjectAltName");Qn("2.5.29.8","issuerAltName");Qn("2.5.29.9","subjectDirectoryAttributes");Qn("2.5.29.10","basicConstraints");Qn("2.5.29.11","nameConstraints");Qn("2.5.29.12","policyConstraints");Qn("2.5.29.13","basicConstraints");bt("2.5.29.14","subjectKeyIdentifier");bt("2.5.29.15","keyUsage");Qn("2.5.29.16","privateKeyUsagePeriod");bt("2.5.29.17","subjectAltName");bt("2.5.29.18","issuerAltName");bt("2.5.29.19","basicConstraints");Qn("2.5.29.20","cRLNumber");Qn("2.5.29.21","cRLReason");Qn("2.5.29.22","expirationDate");Qn("2.5.29.23","instructionCode");Qn("2.5.29.24","invalidityDate");Qn("2.5.29.25","cRLDistributionPoints");Qn("2.5.29.26","issuingDistributionPoint");Qn("2.5.29.27","deltaCRLIndicator");Qn("2.5.29.28","issuingDistributionPoint");Qn("2.5.29.29","certificateIssuer");Qn("2.5.29.30","nameConstraints");bt("2.5.29.31","cRLDistributionPoints");bt("2.5.29.32","certificatePolicies");Qn("2.5.29.33","policyMappings");Qn("2.5.29.34","policyConstraints");bt("2.5.29.35","authorityKeyIdentifier");Qn("2.5.29.36","policyConstraints");bt("2.5.29.37","extKeyUsage");Qn("2.5.29.46","freshestCRL");Qn("2.5.29.54","inhibitAnyPolicy");bt("1.3.6.1.4.1.11129.2.4.2","timestampList");bt("1.3.6.1.5.5.7.1.1","authorityInfoAccess");bt("1.3.6.1.5.5.7.3.1","serverAuth");bt("1.3.6.1.5.5.7.3.2","clientAuth");bt("1.3.6.1.5.5.7.3.3","codeSigning");bt("1.3.6.1.5.5.7.3.4","emailProtection");bt("1.3.6.1.5.5.7.3.8","timeStamping");var ha=Nn,Dt=ha.asn1=ha.asn1||{};Dt.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192};Dt.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30};Dt.maxDepth=256;Dt.create=function(e,t,n,a,s){if(ha.util.isArray(a)){for(var o=[],r=0;rt){var a=new Error("Too few bytes to parse DER.");throw a.available=e.length(),a.remaining=t,a.requested=n,a}}var bde=function(e,t){var n=e.getByte();if(t--,n!==128){var a,s=n&128;if(!s)a=n;else{var o=n&127;hf(e,t,o),a=e.getInt(o<<3)}if(a<0)throw new Error("Negative length: "+a);return a}};Dt.fromDer=function(e,t){t===void 0&&(t={strict:!0,parseAllBytes:!0,decodeBitStrings:!0}),typeof t=="boolean"&&(t={strict:t,parseAllBytes:!0,decodeBitStrings:!0}),"strict"in t||(t.strict=!0),"parseAllBytes"in t||(t.parseAllBytes=!0),"decodeBitStrings"in t||(t.decodeBitStrings=!0),"maxDepth"in t||(t.maxDepth=Dt.maxDepth),typeof e=="string"&&(e=ha.util.createBuffer(e));var n=e.length(),a=yh(e,e.length(),0,t);if(t.parseAllBytes&&e.length()!==0){var s=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw s.byteCount=n,s.remaining=e.length(),s}return a};function yh(e,t,n,a){if(n>=a.maxDepth)throw new Error("ASN.1 parsing error: Max depth exceeded.");var s;hf(e,t,2);var o=e.getByte();t--;var r=o&192,i=o&31;s=e.length();var c=bde(e,t);if(t-=s-e.length(),c!==void 0&&c>t){if(a.strict){var u=new Error("Too few bytes to read ASN.1 value.");throw u.available=e.length(),u.remaining=t,u.requested=c,u}c=t}var d,p,v=(o&32)===32;if(v)if(d=[],c===void 0)for(;;){if(hf(e,t,2),e.bytes(2)==="\0\0"){e.getBytes(2),t-=2;break}s=e.length(),d.push(yh(e,t,n+1,a)),t-=s-e.length()}else for(;c>0;)s=e.length(),d.push(yh(e,c,n+1,a)),t-=s-e.length(),c-=s-e.length();if(d===void 0&&r===Dt.Class.UNIVERSAL&&i===Dt.Type.BITSTRING&&(p=e.bytes(c)),d===void 0&&a.decodeBitStrings&&r===Dt.Class.UNIVERSAL&&i===Dt.Type.BITSTRING&&c>1){var h=e.read,m=t,g=0;if(i===Dt.Type.BITSTRING&&(hf(e,t,1),g=e.getByte(),t--),g===0)try{s=e.length();var y={strict:!0,decodeBitStrings:!0},b=yh(e,t,n+1,y),C=s-e.length();t-=C,i==Dt.Type.BITSTRING&&C++;var k=b.tagClass;C===c&&(k===Dt.Class.UNIVERSAL||k===Dt.Class.CONTEXT_SPECIFIC)&&(d=[b])}catch{}d===void 0&&(e.read=h,t=m)}if(d===void 0){if(c===void 0){if(a.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");c=t}if(i===Dt.Type.BMPSTRING)for(d="";c>0;c-=2)hf(e,t,2),d+=String.fromCharCode(e.getInt16()),t-=2;else d=e.getBytes(c),t-=c}var S=p===void 0?null:{bitStringContents:p};return Dt.create(r,i,v,d,S)}Dt.toDer=function(e){var t=ha.util.createBuffer(),n=e.tagClass|e.type,a=ha.util.createBuffer(),s=!1;if("bitStringContents"in e&&(s=!0,e.original&&(s=Dt.equals(e,e.original))),s)a.putBytes(e.bitStringContents);else if(e.composed){e.constructed?n|=32:a.putByte(0);for(var o=0;o1&&(e.value.charCodeAt(0)===0&&!(e.value.charCodeAt(1)&128)||e.value.charCodeAt(0)===255&&(e.value.charCodeAt(1)&128)===128)?a.putBytes(e.value.substr(1)):a.putBytes(e.value);if(t.putByte(n),a.length()<=127)t.putByte(a.length()&127);else{var r=a.length(),i="";do i+=String.fromCharCode(r&255),r=r>>>8;while(r>0);t.putByte(i.length|128);for(var o=i.length-1;o>=0;--o)t.putByte(i.charCodeAt(o))}return t.putBuffer(a),t};Dt.oidToDer=function(e){var t=e.split("."),n=ha.util.createBuffer();n.putByte(40*parseInt(t[0],10)+parseInt(t[1],10));for(var a,s,o,r,i=2;i4294967295)throw new Error("OID value too large; max is 32-bits.");do r=o&127,o=o>>>7,a||(r|=128),s.push(r),a=!1;while(o>0);for(var c=s.length-1;c>=0;--c)n.putByte(s[c])}return n};Dt.derToOid=function(e){var t;typeof e=="string"&&(e=ha.util.createBuffer(e));var n=e.getByte();t=Math.floor(n/40)+"."+n%40;for(var a=0;e.length()>0;){if(a>70368744177663)throw new Error("OID value too large; max is 53-bits.");n=e.getByte(),a=a*128,n&128?a+=n&127:(t+="."+(a+n),a=0)}return t};Dt.utcTimeToDate=function(e){var t=new Date,n=parseInt(e.substr(0,2),10);n=n>=50?1900+n:2e3+n;var a=parseInt(e.substr(2,2),10)-1,s=parseInt(e.substr(4,2),10),o=parseInt(e.substr(6,2),10),r=parseInt(e.substr(8,2),10),i=0;if(e.length>11){var c=e.charAt(10),u=10;c!=="+"&&c!=="-"&&(i=parseInt(e.substr(10,2),10),u+=2)}if(t.setUTCFullYear(n,a,s),t.setUTCHours(o,r,i,0),u&&(c=e.charAt(u),c==="+"||c==="-")){var d=parseInt(e.substr(u+1,2),10),p=parseInt(e.substr(u+4,2),10),v=d*60+p;v*=6e4,c==="+"?t.setTime(+t-v):t.setTime(+t+v)}return t};Dt.generalizedTimeToDate=function(e){var t=new Date,n=parseInt(e.substr(0,4),10),a=parseInt(e.substr(4,2),10)-1,s=parseInt(e.substr(6,2),10),o=parseInt(e.substr(8,2),10),r=parseInt(e.substr(10,2),10),i=parseInt(e.substr(12,2),10),c=0,u=0,d=!1;e.charAt(e.length-1)==="Z"&&(d=!0);var p=e.length-5,v=e.charAt(p);if(v==="+"||v==="-"){var h=parseInt(e.substr(p+1,2),10),m=parseInt(e.substr(p+4,2),10);u=h*60+m,u*=6e4,v==="+"&&(u*=-1),d=!0}return e.charAt(14)==="."&&(c=parseFloat(e.substr(14),10)*1e3),d?(t.setUTCFullYear(n,a,s),t.setUTCHours(o,r,i,c),t.setTime(+t+u)):(t.setFullYear(n,a,s),t.setHours(o,r,i,c)),t};Dt.dateToUtcTime=function(e){if(typeof e=="string")return e;var t="",n=[];n.push((""+e.getUTCFullYear()).substr(2)),n.push(""+(e.getUTCMonth()+1)),n.push(""+e.getUTCDate()),n.push(""+e.getUTCHours()),n.push(""+e.getUTCMinutes()),n.push(""+e.getUTCSeconds());for(var a=0;a=-128&&e<128)return t.putSignedInt(e,8);if(e>=-32768&&e<32768)return t.putSignedInt(e,16);if(e>=-8388608&&e<8388608)return t.putSignedInt(e,24);if(e>=-2147483648&&e<2147483648)return t.putSignedInt(e,32);var n=new Error("Integer too large; max is 32-bits.");throw n.integer=e,n};Dt.derToInteger=function(e){typeof e=="string"&&(e=ha.util.createBuffer(e));var t=e.length()*8;if(t>32)throw new Error("Integer too large; max is 32-bits.");return e.getSignedInt(t)};Dt.validate=function(e,t,n,a){var s=!1;if((e.tagClass===t.tagClass||typeof t.tagClass>"u")&&(e.type===t.type||typeof t.type>"u"))if(e.constructed===t.constructed||typeof t.constructed>"u"){if(s=!0,t.value&&ha.util.isArray(t.value))for(var o=0,r=0;s&&r0&&(a+=` `);for(var s="",o=0;o1?a+="0x"+ha.util.bytesToHex(e.value.slice(1)):a+="(none)",e.value.length>0){var u=e.value.charCodeAt(0);u==1?a+=" (1 unused bit shown)":u>1&&(a+=" ("+u+" unused bits shown)")}}else if(e.type===Dt.Type.OCTETSTRING)PE.test(e.value)||(a+="("+e.value+") "),a+="0x"+ha.util.bytesToHex(e.value);else if(e.type===Dt.Type.UTF8)try{a+=ha.util.decodeUtf8(e.value)}catch(d){if(d.message==="URI malformed")a+="0x"+ha.util.bytesToHex(e.value)+" (malformed UTF8)";else throw d}else e.type===Dt.Type.PRINTABLESTRING||e.type===Dt.Type.IA5String?a+=e.value:PE.test(e.value)?a+="0x"+ha.util.bytesToHex(e.value):e.value.length===0?a+="[null]":a+=e.value}return a};var sm=Nn;sm.md=sm.md||{};sm.md.algorithms=sm.md.algorithms||{};var Cl=Nn,wde=Cl.hmac=Cl.hmac||{};wde.create=function(){var e=null,t=null,n=null,a=null,s={};return s.start=function(o,r){if(o!==null)if(typeof o=="string")if(o=o.toLowerCase(),o in Cl.md.algorithms)t=Cl.md.algorithms[o].create();else throw new Error('Unknown hash algorithm "'+o+'"');else t=o;if(r===null)r=e;else{if(typeof r=="string")r=Cl.util.createBuffer(r);else if(Cl.util.isArray(r)){var i=r;r=Cl.util.createBuffer();for(var c=0;ct.blockLength&&(t.start(),t.update(r.bytes()),r=t.digest()),n=Cl.util.createBuffer(),a=Cl.util.createBuffer(),u=r.length();for(var c=0;c>>0,r>>>0];for(var i=a.fullMessageLength.length-1;i>=0;--i)a.fullMessageLength[i]+=r[1],r[1]=r[0]+(a.fullMessageLength[i]/4294967296>>>0),a.fullMessageLength[i]=a.fullMessageLength[i]>>>0,r[0]=r[1]/4294967296>>>0;return t.putBytes(s),ME(e,n,t),(t.read>2048||t.length()===0)&&t.compact(),a},a.digest=function(){var s=zr.util.createBuffer();s.putBytes(t.bytes());var o=a.fullMessageLength[a.fullMessageLength.length-1]+a.messageLengthSize,r=o&a.blockLength-1;s.putBytes(x1.substr(0,a.blockLength-r));for(var i,c=0,u=a.fullMessageLength.length-1;u>=0;--u)i=a.fullMessageLength[u]*8+c,c=i/4294967296>>>0,s.putInt32Le(i>>>0);var d={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3};ME(d,n,s);var p=zr.util.createBuffer();return p.putInt32Le(d.h0),p.putInt32Le(d.h1),p.putInt32Le(d.h2),p.putInt32Le(d.h3),p},a};var x1=null,bh=null,mf=null,Eu=null,d6=!1;function Cde(){x1="€",x1+=zr.util.fillString("\0",64),bh=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9],mf=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],Eu=new Array(64);for(var e=0;e<64;++e)Eu[e]=Math.floor(Math.abs(Math.sin(e+1))*4294967296);d6=!0}function ME(e,t,n){for(var a,s,o,r,i,c,u,d,p=n.length();p>=64;){for(s=e.h0,o=e.h1,r=e.h2,i=e.h3,d=0;d<16;++d)t[d]=n.getInt32Le(),c=i^o&(r^i),a=s+c+Eu[d]+t[d],u=mf[d],s=i,i=r,r=o,o+=a<>>32-u;for(;d<32;++d)c=r^i&(o^r),a=s+c+Eu[d]+t[bh[d]],u=mf[d],s=i,i=r,r=o,o+=a<>>32-u;for(;d<48;++d)c=o^r^i,a=s+c+Eu[d]+t[bh[d]],u=mf[d],s=i,i=r,r=o,o+=a<>>32-u;for(;d<64;++d)c=r^(o|~i),a=s+c+Eu[d]+t[bh[d]],u=mf[d],s=i,i=r,r=o,o+=a<>>32-u;e.h0=e.h0+s|0,e.h1=e.h1+o|0,e.h2=e.h2+r|0,e.h3=e.h3+i|0,p-=64}}var om=Nn,f6=om.pem=om.pem||{};f6.encode=function(e,t){t=t||{};var n="-----BEGIN "+e.type+`-----\r `,a;if(e.procType&&(a={name:"Proc-Type",values:[String(e.procType.version),e.procType.type]},n+=Bv(a)),e.contentDomain&&(a={name:"Content-Domain",values:[e.contentDomain]},n+=Bv(a)),e.dekInfo&&(a={name:"DEK-Info",values:[e.dekInfo.algorithm]},e.dekInfo.parameters&&a.values.push(e.dekInfo.parameters),n+=Bv(a)),e.headers)for(var s=0;s65&&r!==-1){var i=t[r];i===","?(++r,t=t.substr(0,r)+`\r `+t.substr(r)):t=t.substr(0,r)+`\r `+i+t.substr(r+1),o=s-r-1,r=-1,++s}else(t[s]===" "||t[s]===" "||t[s]===",")&&(r=s);return t}function kde(e){return e.replace(/^\s+/,"")}var wa=Nn;wa.des=wa.des||{};wa.des.startEncrypting=function(e,t,n,a){var s=b0({key:e,output:n,decrypt:!1,mode:a||(t===null?"ECB":"CBC")});return s.start(t),s};wa.des.createEncryptionCipher=function(e,t){return b0({key:e,output:null,decrypt:!1,mode:t})};wa.des.startDecrypting=function(e,t,n,a){var s=b0({key:e,output:n,decrypt:!0,mode:a||(t===null?"ECB":"CBC")});return s.start(t),s};wa.des.createDecryptionCipher=function(e,t){return b0({key:e,output:null,decrypt:!0,mode:t})};wa.des.Algorithm=function(e,t){var n=this;n.name=e,n.mode=new t({blockSize:8,cipher:{encrypt:function(a,s){return BE(n._keys,a,s,!1)},decrypt:function(a,s){return BE(n._keys,a,s,!0)}}}),n._init=!1};wa.des.Algorithm.prototype.initialize=function(e){if(!this._init){var t=wa.util.createBuffer(e.key);if(this.name.indexOf("3DES")===0&&t.length()!==24)throw new Error("Invalid Triple-DES key size: "+t.length()*8);this._keys=Rde(t),this._init=!0}};dl("DES-ECB",wa.cipher.modes.ecb);dl("DES-CBC",wa.cipher.modes.cbc);dl("DES-CFB",wa.cipher.modes.cfb);dl("DES-OFB",wa.cipher.modes.ofb);dl("DES-CTR",wa.cipher.modes.ctr);dl("3DES-ECB",wa.cipher.modes.ecb);dl("3DES-CBC",wa.cipher.modes.cbc);dl("3DES-CFB",wa.cipher.modes.cfb);dl("3DES-OFB",wa.cipher.modes.ofb);dl("3DES-CTR",wa.cipher.modes.ctr);function dl(e,t){var n=function(){return new wa.des.Algorithm(e,t)};wa.cipher.registerAlgorithm(e,n)}var Sde=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],Ede=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],$de=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],xde=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],Tde=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],Ide=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],Ade=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],Nde=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function Rde(e){for(var t=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],n=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],a=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],s=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],o=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],r=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],i=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],c=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],u=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],d=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],p=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],v=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],h=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],m=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],g=e.length()>8?3:1,y=[],b=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],C=0,k,S=0;S>>4^E)&252645135,E^=k,$^=k<<4,k=(E>>>-16^$)&65535,$^=k,E^=k<<-16,k=($>>>2^E)&858993459,E^=k,$^=k<<2,k=(E>>>-16^$)&65535,$^=k,E^=k<<-16,k=($>>>1^E)&1431655765,E^=k,$^=k<<1,k=(E>>>8^$)&16711935,$^=k,E^=k<<8,k=($>>>1^E)&1431655765,E^=k,$^=k<<1,k=$<<8|E>>>20&240,$=E<<24|E<<8&16711680|E>>>8&65280|E>>>24&240,E=k;for(var R=0;R>>26,E=E<<2|E>>>26):($=$<<1|$>>>27,E=E<<1|E>>>27),$&=-15,E&=-15;var A=t[$>>>28]|n[$>>>24&15]|a[$>>>20&15]|s[$>>>16&15]|o[$>>>12&15]|r[$>>>8&15]|i[$>>>4&15],N=c[E>>>28]|u[E>>>24&15]|d[E>>>20&15]|p[E>>>16&15]|v[E>>>12&15]|h[E>>>8&15]|m[E>>>4&15];k=(N>>>16^A)&65535,y[C++]=A^k,y[C++]=N^k<<16}}return y}function BE(e,t,n,a){var s=e.length===32?3:9,o;s===3?o=a?[30,-2,-2]:[0,32,2]:o=a?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var r,i=t[0],c=t[1];r=(i>>>4^c)&252645135,c^=r,i^=r<<4,r=(i>>>16^c)&65535,c^=r,i^=r<<16,r=(c>>>2^i)&858993459,i^=r,c^=r<<2,r=(c>>>8^i)&16711935,i^=r,c^=r<<8,r=(i>>>1^c)&1431655765,c^=r,i^=r<<1,i=i<<1|i>>>31,c=c<<1|c>>>31;for(var u=0;u>>4|c<<28)^e[v+1];r=i,i=c,c=r^(Ede[h>>>24&63]|xde[h>>>16&63]|Ide[h>>>8&63]|Nde[h&63]|Sde[m>>>24&63]|$de[m>>>16&63]|Tde[m>>>8&63]|Ade[m&63])}r=i,i=c,c=r}i=i>>>1|i<<31,c=c>>>1|c<<31,r=(i>>>1^c)&1431655765,c^=r,i^=r<<1,r=(c>>>8^i)&16711935,i^=r,c^=r<<8,r=(c>>>2^i)&858993459,i^=r,c^=r<<2,r=(i>>>16^c)&65535,c^=r,i^=r<<16,r=(i>>>4^c)&252645135,c^=r,i^=r<<4,n[0]=i,n[1]=c}function b0(e){e=e||{};var t=(e.mode||"CBC").toUpperCase(),n="DES-"+t,a;e.decrypt?a=wa.cipher.createDecipher(n,e.key):a=wa.cipher.createCipher(n,e.key);var s=a.start;return a.start=function(o,r){var i=null;r instanceof wa.util.ByteBuffer&&(i=r,r={}),r=r||{},r.output=i,r.iv=o,s.call(a,r)},a}const Pde={},Mde=Object.freeze(Object.defineProperty({__proto__:null,default:Pde},Symbol.toStringTag,{value:"Module"})),$2=lH(Mde);var Js=Nn,Bde=Js.pkcs5=Js.pkcs5||{},yl;Js.util.isNodejs&&!Js.options.usePureJavaScript&&(yl=$2);Js.pbkdf2=Bde.pbkdf2=function(e,t,n,a,s,o){if(typeof s=="function"&&(o=s,s=null),Js.util.isNodejs&&!Js.options.usePureJavaScript&&yl.pbkdf2&&(s===null||typeof s!="object")&&(yl.pbkdf2Sync.length>4||!s||s==="sha1"))return typeof s!="string"&&(s="sha1"),e=Buffer.from(e,"binary"),t=Buffer.from(t,"binary"),o?yl.pbkdf2Sync.length===4?yl.pbkdf2(e,t,n,a,function(k,S){if(k)return o(k);o(null,S.toString("binary"))}):yl.pbkdf2(e,t,n,a,s,function(k,S){if(k)return o(k);o(null,S.toString("binary"))}):yl.pbkdf2Sync.length===4?yl.pbkdf2Sync(e,t,n,a).toString("binary"):yl.pbkdf2Sync(e,t,n,a,s).toString("binary");if((typeof s>"u"||s===null)&&(s="sha1"),typeof s=="string"){if(!(s in Js.md.algorithms))throw new Error("Unknown hash algorithm: "+s);s=Js.md[s].create()}var r=s.digestLength;if(a>4294967295*r){var i=new Error("Derived key is too long.");if(o)return o(i);throw i}var c=Math.ceil(a/r),u=a-(c-1)*r,d=Js.hmac.create();d.start(s,e);var p="",v,h,m;if(!o){for(var g=1;g<=c;++g){d.start(null,null),d.update(t),d.update(Js.util.int32ToBytes(g)),v=m=d.digest().getBytes();for(var y=2;y<=n;++y)d.start(null,null),d.update(m),h=d.digest().getBytes(),v=Js.util.xorBytes(v,h,r),m=h;p+=gc)return o(null,p);d.start(null,null),d.update(t),d.update(Js.util.int32ToBytes(g)),v=m=d.digest().getBytes(),y=2,C()}function C(){if(y<=n)return d.start(null,null),d.update(m),h=d.digest().getBytes(),v=Js.util.xorBytes(v,h,r),m=h,++y,Js.util.setImmediate(C);p+=g>>0,r>>>0];for(var i=a.fullMessageLength.length-1;i>=0;--i)a.fullMessageLength[i]+=r[1],r[1]=r[0]+(a.fullMessageLength[i]/4294967296>>>0),a.fullMessageLength[i]=a.fullMessageLength[i]>>>0,r[0]=r[1]/4294967296>>>0;return t.putBytes(s),LE(e,n,t),(t.read>2048||t.length()===0)&&t.compact(),a},a.digest=function(){var s=Hr.util.createBuffer();s.putBytes(t.bytes());var o=a.fullMessageLength[a.fullMessageLength.length-1]+a.messageLengthSize,r=o&a.blockLength-1;s.putBytes(T1.substr(0,a.blockLength-r));for(var i,c,u=a.fullMessageLength[0]*8,d=0;d>>0,u+=c,s.putInt32(u>>>0),u=i>>>0;s.putInt32(u);var p={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4,h5:e.h5,h6:e.h6,h7:e.h7};LE(p,n,s);var v=Hr.util.createBuffer();return v.putInt32(p.h0),v.putInt32(p.h1),v.putInt32(p.h2),v.putInt32(p.h3),v.putInt32(p.h4),v.putInt32(p.h5),v.putInt32(p.h6),v.putInt32(p.h7),v},a};var T1=null,v6=!1,h6=null;function Lde(){T1="€",T1+=Hr.util.fillString("\0",64),h6=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],v6=!0}function LE(e,t,n){for(var a,s,o,r,i,c,u,d,p,v,h,m,g,y,b,C=n.length();C>=64;){for(u=0;u<16;++u)t[u]=n.getInt32();for(;u<64;++u)a=t[u-2],a=(a>>>17|a<<15)^(a>>>19|a<<13)^a>>>10,s=t[u-15],s=(s>>>7|s<<25)^(s>>>18|s<<14)^s>>>3,t[u]=a+t[u-7]+s+t[u-16]|0;for(d=e.h0,p=e.h1,v=e.h2,h=e.h3,m=e.h4,g=e.h5,y=e.h6,b=e.h7,u=0;u<64;++u)r=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7),i=y^m&(g^y),o=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),c=d&p|v&(d^p),a=b+r+i+h6[u]+t[u],s=o+c,b=y,y=g,g=m,m=h+a>>>0,h=v,v=p,p=d,d=a+s>>>0;e.h0=e.h0+d|0,e.h1=e.h1+p|0,e.h2=e.h2+v|0,e.h3=e.h3+h|0,e.h4=e.h4+m|0,e.h5=e.h5+g|0,e.h6=e.h6+y|0,e.h7=e.h7+b|0,C-=64}}var Vr=Nn,wh=null;Vr.util.isNodejs&&!Vr.options.usePureJavaScript&&!process.versions["node-webkit"]&&(wh=$2);var Ode=Vr.prng=Vr.prng||{};Ode.create=function(e){for(var t={plugin:e,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},n=e.md,a=new Array(32),s=0;s<32;++s)a[s]=n.create();t.pools=a,t.pool=0,t.generate=function(u,d){if(!d)return t.generateSync(u);var p=t.plugin.cipher,v=t.plugin.increment,h=t.plugin.formatKey,m=t.plugin.formatSeed,g=Vr.util.createBuffer();t.key=null,y();function y(b){if(b)return d(b);if(g.length()>=u)return d(null,g.getBytes(u));if(t.generated>1048575&&(t.key=null),t.key===null)return Vr.util.nextTick(function(){o(y)});var C=p(t.key,t.seed);t.generated+=C.length,g.putBytes(C),t.key=h(p(t.key,v(t.seed))),t.seed=m(p(t.key,t.seed)),Vr.util.setImmediate(y)}},t.generateSync=function(u){var d=t.plugin.cipher,p=t.plugin.increment,v=t.plugin.formatKey,h=t.plugin.formatSeed;t.key=null;for(var m=Vr.util.createBuffer();m.length()1048575&&(t.key=null),t.key===null&&r();var g=d(t.key,t.seed);t.generated+=g.length,m.putBytes(g),t.key=v(d(t.key,p(t.seed))),t.seed=h(d(t.key,t.seed))}return m.getBytes(u)};function o(u){if(t.pools[0].messageLength>=32)return i(),u();var d=32-t.pools[0].messageLength<<5;t.seedFile(d,function(p,v){if(p)return u(p);t.collect(v),i(),u()})}function r(){if(t.pools[0].messageLength>=32)return i();var u=32-t.pools[0].messageLength<<5;t.collect(t.seedFileSync(u)),i()}function i(){t.reseeds=t.reseeds===4294967295?0:t.reseeds+1;var u=t.plugin.md.create();u.update(t.keyBytes);for(var d=1,p=0;p<32;++p)t.reseeds%d===0&&(u.update(t.pools[p].digest().getBytes()),t.pools[p].start()),d=d<<1;t.keyBytes=u.digest().getBytes(),u.start(),u.update(t.keyBytes);var v=u.digest().getBytes();t.key=t.plugin.formatKey(t.keyBytes),t.seed=t.plugin.formatSeed(v),t.generated=0}function c(u){var d=null,p=Vr.util.globalScope,v=p.crypto||p.msCrypto;v&&v.getRandomValues&&(d=function($){return v.getRandomValues($)});var h=Vr.util.createBuffer();if(d)for(;h.length()>16),C+=(b&32767)<<16,C+=b>>15,C=(C&2147483647)+(C>>31),S=C&4294967295;for(var y=0;y<3;++y)k=S>>>(y<<3),k^=Math.floor(Math.random()*256),h.putByte(k&255)}return h.getBytes(u)}return wh?(t.seedFile=function(u,d){wh.randomBytes(u,function(p,v){if(p)return d(p);d(null,v.toString())})},t.seedFileSync=function(u){return wh.randomBytes(u).toString()}):(t.seedFile=function(u,d){try{d(null,c(u))}catch(p){d(p)}},t.seedFileSync=c),t.collect=function(u){for(var d=u.length,p=0;p>v&255);t.collect(p)},t.registerWorker=function(u){if(u===self)t.seedFile=function(p,v){function h(m){var g=m.data;g.forge&&g.forge.prng&&(self.removeEventListener("message",h),v(g.forge.prng.err,g.forge.prng.bytes))}self.addEventListener("message",h),self.postMessage({forge:{prng:{needed:p}}})};else{var d=function(p){var v=p.data;v.forge&&v.forge.prng&&t.seedFile(v.forge.prng.needed,function(h,m){u.postMessage({forge:{prng:{err:h,bytes:m}}})})};u.addEventListener("message",d)}},t};var ls=Nn;(function(){if(ls.random&&ls.random.getBytes){ls.random;return}(function(e){var t={},n=new Array(4),a=ls.util.createBuffer();t.formatKey=function(p){var v=ls.util.createBuffer(p);return p=new Array(4),p[0]=v.getInt32(),p[1]=v.getInt32(),p[2]=v.getInt32(),p[3]=v.getInt32(),ls.aes._expandKey(p,!1)},t.formatSeed=function(p){var v=ls.util.createBuffer(p);return p=new Array(4),p[0]=v.getInt32(),p[1]=v.getInt32(),p[2]=v.getInt32(),p[3]=v.getInt32(),p},t.cipher=function(p,v){return ls.aes._updateBlock(p,v,n,!1),a.putInt32(n[0]),a.putInt32(n[1]),a.putInt32(n[2]),a.putInt32(n[3]),a.getBytes()},t.increment=function(p){return++p[3],p},t.md=ls.md.sha256;function s(){var p=ls.prng.create(t);return p.getBytes=function(v,h){return p.generate(v,h)},p.getBytesSync=function(v){return p.generate(v)},p}var o=s(),r=null,i=ls.util.globalScope,c=i.crypto||i.msCrypto;if(c&&c.getRandomValues&&(r=function(p){return c.getRandomValues(p)}),ls.options.usePureJavaScript||!ls.util.isNodejs&&!r){if(o.collectInt(+new Date,32),typeof navigator<"u"){var u="";for(var d in navigator)try{typeof navigator[d]=="string"&&(u+=navigator[d])}catch{}o.collect(u),u=null}e&&(e().mousemove(function(p){o.collectInt(p.clientX,16),o.collectInt(p.clientY,16)}),e().keypress(function(p){o.collectInt(p.charCode,8)}))}if(!ls.random)ls.random=o;else for(var d in o)ls.random[d]=o[d];ls.random.createInstance=s,ls.random})(typeof jQuery<"u"?jQuery:null)})();var ho=Nn,Ig=[217,120,249,196,25,221,181,237,40,233,253,121,74,160,216,157,198,126,55,131,43,118,83,142,98,76,100,136,68,139,251,162,23,154,89,245,135,179,79,19,97,69,109,141,9,129,125,50,189,143,64,235,134,183,123,11,240,149,33,34,92,107,78,130,84,214,101,147,206,96,178,28,115,86,192,20,167,140,241,220,18,117,202,31,59,190,228,209,66,61,212,48,163,60,182,38,111,191,14,218,70,105,7,87,39,242,29,155,188,148,67,3,248,17,199,246,144,239,62,231,6,195,213,47,200,102,30,215,8,232,234,222,128,82,238,247,132,170,114,172,53,77,106,42,150,26,210,113,90,21,73,116,75,159,208,94,4,24,164,236,194,224,65,110,15,81,203,204,36,145,175,80,161,244,112,57,153,124,58,133,35,184,180,122,252,2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173],OE=[1,2,3,5],Dde=function(e,t){return e<>16-t},Vde=function(e,t){return(e&65535)>>t|e<<16-t&65535};ho.rc2=ho.rc2||{};ho.rc2.expandKey=function(e,t){typeof e=="string"&&(e=ho.util.createBuffer(e)),t=t||128;var n=e,a=e.length(),s=t,o=Math.ceil(s/8),r=255>>(s&7),i;for(i=a;i<128;i++)n.putByte(Ig[n.at(i-1)+n.at(i-a)&255]);for(n.setAt(128-o,Ig[n.at(128-o)&r]),i=127-o;i>=0;i--)n.setAt(i,Ig[n.at(i+1)^n.at(i+o)]);return n};var m6=function(e,t,n){var a=!1,s=null,o=null,r=null,i,c,u,d,p=[];for(e=ho.rc2.expandKey(e,t),u=0;u<64;u++)p.push(e.getInt16Le());n?(i=function(m){for(u=0;u<4;u++)m[u]+=p[d]+(m[(u+3)%4]&m[(u+2)%4])+(~m[(u+3)%4]&m[(u+1)%4]),m[u]=Dde(m[u],OE[u]),d++},c=function(m){for(u=0;u<4;u++)m[u]+=p[m[(u+3)%4]&63]}):(i=function(m){for(u=3;u>=0;u--)m[u]=Vde(m[u],OE[u]),m[u]-=p[d]+(m[(u+3)%4]&m[(u+2)%4])+(~m[(u+3)%4]&m[(u+1)%4]),d--},c=function(m){for(u=3;u>=0;u--)m[u]-=p[m[(u+3)%4]&63]});var v=function(m){var g=[];for(u=0;u<4;u++){var y=s.getInt16Le();r!==null&&(n?y^=r.getInt16Le():r.putInt16Le(y)),g.push(y&65535)}d=n?0:63;for(var b=0;b=8;)v([[5,i],[1,c],[6,i],[1,c],[5,i]])},finish:function(m){var g=!0;if(n)if(m)g=m(8,s,!n);else{var y=s.length()===8?8:8-s.length();s.fillWithByte(y,y)}if(g&&(a=!0,h.update()),!n&&(g=s.length()===0,g))if(m)g=m(8,o,!n);else{var b=o.length(),C=o.at(b-1);C>b?g=!1:o.truncate(C)}return g}},h};ho.rc2.startEncrypting=function(e,t,n){var a=ho.rc2.createEncryptionCipher(e,128);return a.start(t,n),a};ho.rc2.createEncryptionCipher=function(e,t){return m6(e,t,!0)};ho.rc2.startDecrypting=function(e,t,n){var a=ho.rc2.createDecryptionCipher(e,128);return a.start(t,n),a};ho.rc2.createDecryptionCipher=function(e,t){return m6(e,t,!1)};var I1=Nn;I1.jsbn=I1.jsbn||{};var Tl;function mt(e,t,n){this.data=[],e!=null&&(typeof e=="number"?this.fromNumber(e,t,n):t==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,t))}I1.jsbn.BigInteger=mt;function qn(){return new mt(null)}function Fde(e,t,n,a,s,o){for(;--o>=0;){var r=t*this.data[e++]+n.data[a]+s;s=Math.floor(r/67108864),n.data[a++]=r&67108863}return s}function Ude(e,t,n,a,s,o){for(var r=t&32767,i=t>>15;--o>=0;){var c=this.data[e]&32767,u=this.data[e++]>>15,d=i*c+u*r;c=r*c+((d&32767)<<15)+n.data[a]+(s&1073741823),s=(c>>>30)+(d>>>15)+i*u+(s>>>30),n.data[a++]=c&1073741823}return s}function DE(e,t,n,a,s,o){for(var r=t&16383,i=t>>14;--o>=0;){var c=this.data[e]&16383,u=this.data[e++]>>14,d=i*c+u*r;c=r*c+((d&16383)<<14)+n.data[a]+s,s=(c>>28)+(d>>14)+i*u,n.data[a++]=c&268435455}return s}typeof navigator>"u"?(mt.prototype.am=DE,Tl=28):navigator.appName=="Microsoft Internet Explorer"?(mt.prototype.am=Ude,Tl=30):navigator.appName!="Netscape"?(mt.prototype.am=Fde,Tl=26):(mt.prototype.am=DE,Tl=28);mt.prototype.DB=Tl;mt.prototype.DM=(1<=0;--t)e.data[t]=this.data[t];e.t=this.t,e.s=this.s}function Kde(e){this.t=1,this.s=e<0?-1:0,e>0?this.data[0]=e:e<-1?this.data[0]=e+this.DV:this.t=0}function wi(e){var t=qn();return t.fromInt(e),t}function qde(e,t){var n;if(t==16)n=4;else if(t==8)n=3;else if(t==256)n=8;else if(t==2)n=1;else if(t==32)n=5;else if(t==4)n=2;else{this.fromRadix(e,t);return}this.t=0,this.s=0;for(var a=e.length,s=!1,o=0;--a>=0;){var r=n==8?e[a]&255:g6(e,a);if(r<0){e.charAt(a)=="-"&&(s=!0);continue}s=!1,o==0?this.data[this.t++]=r:o+n>this.DB?(this.data[this.t-1]|=(r&(1<>this.DB-o):this.data[this.t-1]|=r<=this.DB&&(o-=this.DB)}n==8&&e[0]&128&&(this.s=-1,o>0&&(this.data[this.t-1]|=(1<0&&this.data[this.t-1]==e;)--this.t}function Wde(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var n=(1<0)for(i>i)>0&&(s=!0,o=VE(a));r>=0;)i>(i+=this.DB-t)):(a=this.data[r]>>(i-=t)&n,i<=0&&(i+=this.DB,--r)),a>0&&(s=!0),s&&(o+=VE(a));return s?o:"0"}function Gde(){var e=qn();return mt.ZERO.subTo(this,e),e}function Yde(){return this.s<0?this.negate():this}function Xde(e){var t=this.s-e.s;if(t!=0)return t;var n=this.t;if(t=n-e.t,t!=0)return this.s<0?-t:t;for(;--n>=0;)if((t=this.data[n]-e.data[n])!=0)return t;return 0}function C0(e){var t=1,n;return(n=e>>>16)!=0&&(e=n,t+=16),(n=e>>8)!=0&&(e=n,t+=8),(n=e>>4)!=0&&(e=n,t+=4),(n=e>>2)!=0&&(e=n,t+=2),(n=e>>1)!=0&&(e=n,t+=1),t}function Qde(){return this.t<=0?0:this.DB*(this.t-1)+C0(this.data[this.t-1]^this.s&this.DM)}function Jde(e,t){var n;for(n=this.t-1;n>=0;--n)t.data[n+e]=this.data[n];for(n=e-1;n>=0;--n)t.data[n]=0;t.t=this.t+e,t.s=this.s}function Zde(e,t){for(var n=e;n=0;--i)t.data[i+o+1]=this.data[i]>>a|r,r=(this.data[i]&s)<=0;--i)t.data[i]=0;t.data[o]=r,t.t=this.t+o+1,t.s=this.s,t.clamp()}function tfe(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t){t.t=0;return}var a=e%this.DB,s=this.DB-a,o=(1<>a;for(var r=n+1;r>a;a>0&&(t.data[this.t-n-1]|=(this.s&o)<>=this.DB;if(e.t>=this.DB;a+=this.s}else{for(a+=this.s;n>=this.DB;a-=e.s}t.s=a<0?-1:0,a<-1?t.data[n++]=this.DV+a:a>0&&(t.data[n++]=a),t.t=n,t.clamp()}function afe(e,t){var n=this.abs(),a=e.abs(),s=n.t;for(t.t=s+a.t;--s>=0;)t.data[s]=0;for(s=0;s=0;)e.data[n]=0;for(n=0;n=t.DV&&(e.data[n+t.t]-=t.DV,e.data[n+t.t+1]=1)}e.t>0&&(e.data[e.t-1]+=t.am(n,t.data[n],e,2*n,0,1)),e.s=0,e.clamp()}function ofe(e,t,n){var a=e.abs();if(!(a.t<=0)){var s=this.abs();if(s.t0?(a.lShiftTo(c,o),s.lShiftTo(c,n)):(a.copyTo(o),s.copyTo(n));var u=o.t,d=o.data[u-1];if(d!=0){var p=d*(1<1?o.data[u-2]>>this.F2:0),v=this.FV/p,h=(1<=0&&(n.data[n.t++]=1,n.subTo(b,n)),mt.ONE.dlShiftTo(u,b),b.subTo(o,o);o.t=0;){var C=n.data[--g]==d?this.DM:Math.floor(n.data[g]*v+(n.data[g-1]+m)*h);if((n.data[g]+=o.am(0,C,n,y,0,u))0&&n.rShiftTo(c,n),r<0&&mt.ZERO.subTo(n,n)}}}function rfe(e){var t=qn();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(mt.ZERO)>0&&e.subTo(t,t),t}function Qc(e){this.m=e}function lfe(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e}function ife(e){return e}function cfe(e){e.divRemTo(this.m,null,e)}function ufe(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function dfe(e,t){e.squareTo(t),this.reduce(t)}Qc.prototype.convert=lfe;Qc.prototype.revert=ife;Qc.prototype.reduce=cfe;Qc.prototype.mulTo=ufe;Qc.prototype.sqrTo=dfe;function ffe(){if(this.t<1)return 0;var e=this.data[0];if(!(e&1))return 0;var t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function Jc(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t}function vfe(e){var t=qn();return e.copyTo(t),this.reduce(t),t}function hfe(e){for(;e.t<=this.mt2;)e.data[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(n=t+this.m.t,e.data[n]+=this.m.am(0,a,e,t,0,this.m.t);e.data[n]>=e.DV;)e.data[n]-=e.DV,e.data[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function mfe(e,t){e.squareTo(t),this.reduce(t)}function gfe(e,t,n){e.multiplyTo(t,n),this.reduce(n)}Jc.prototype.convert=pfe;Jc.prototype.revert=vfe;Jc.prototype.reduce=hfe;Jc.prototype.mulTo=gfe;Jc.prototype.sqrTo=mfe;function _fe(){return(this.t>0?this.data[0]&1:this.s)==0}function yfe(e,t){if(e>4294967295||e<1)return mt.ONE;var n=qn(),a=qn(),s=t.convert(this),o=C0(e)-1;for(s.copyTo(n);--o>=0;)if(t.sqrTo(n,a),(e&1<0)t.mulTo(a,s,n);else{var r=n;n=a,a=r}return t.revert(n)}function bfe(e,t){var n;return e<256||t.isEven()?n=new Qc(t):n=new Jc(t),this.exp(e,n)}mt.prototype.copyTo=Hde;mt.prototype.fromInt=Kde;mt.prototype.fromString=qde;mt.prototype.clamp=jde;mt.prototype.dlShiftTo=Jde;mt.prototype.drShiftTo=Zde;mt.prototype.lShiftTo=efe;mt.prototype.rShiftTo=tfe;mt.prototype.subTo=nfe;mt.prototype.multiplyTo=afe;mt.prototype.squareTo=sfe;mt.prototype.divRemTo=ofe;mt.prototype.invDigit=ffe;mt.prototype.isEven=_fe;mt.prototype.exp=yfe;mt.prototype.toString=Wde;mt.prototype.negate=Gde;mt.prototype.abs=Yde;mt.prototype.compareTo=Xde;mt.prototype.bitLength=Qde;mt.prototype.mod=rfe;mt.prototype.modPowInt=bfe;mt.ZERO=wi(0);mt.ONE=wi(1);function wfe(){var e=qn();return this.copyTo(e),e}function Cfe(){if(this.s<0){if(this.t==1)return this.data[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this.data[0];if(this.t==0)return 0}return(this.data[1]&(1<<32-this.DB)-1)<>24}function Sfe(){return this.t==0?this.s:this.data[0]<<16>>16}function Efe(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function $fe(){return this.s<0?-1:this.t<=0||this.t==1&&this.data[0]<=0?0:1}function xfe(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),a=wi(n),s=qn(),o=qn(),r="";for(this.divRemTo(a,s,o);s.signum()>0;)r=(n+o.intValue()).toString(e).substr(1)+r,s.divRemTo(a,s,o);return o.intValue().toString(e)+r}function Tfe(e,t){this.fromInt(0),t==null&&(t=10);for(var n=this.chunkSize(t),a=Math.pow(t,n),s=!1,o=0,r=0,i=0;i=n&&(this.dMultiply(a),this.dAddOffset(r,0),o=0,r=0)}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(r,0)),s&&mt.ZERO.subTo(this,this)}function Ife(e,t,n){if(typeof t=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(mt.ONE.shiftLeft(e-1),T2,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(mt.ONE.shiftLeft(e-1),this);else{var a=new Array,s=e&7;a.length=(e>>3)+1,t.nextBytes(a),s>0?a[0]&=(1<0)for(n>n)!=(this.s&this.DM)>>n&&(t[s++]=a|this.s<=0;)n<8?(a=(this.data[e]&(1<>(n+=this.DB-8)):(a=this.data[e]>>(n-=8)&255,n<=0&&(n+=this.DB,--e)),a&128&&(a|=-256),s==0&&(this.s&128)!=(a&128)&&++s,(s>0||a!=this.s)&&(t[s++]=a);return t}function Nfe(e){return this.compareTo(e)==0}function Rfe(e){return this.compareTo(e)<0?this:e}function Pfe(e){return this.compareTo(e)>0?this:e}function Mfe(e,t,n){var a,s,o=Math.min(e.t,this.t);for(a=0;a>=16,t+=16),e&255||(e>>=8,t+=8),e&15||(e>>=4,t+=4),e&3||(e>>=2,t+=2),e&1||++t,t}function Kfe(){for(var e=0;e=this.t?this.s!=0:(this.data[t]&1<>=this.DB;if(e.t>=this.DB;a+=this.s}else{for(a+=this.s;n>=this.DB;a+=e.s}t.s=a<0?-1:0,a>0?t.data[n++]=a:a<-1&&(t.data[n++]=this.DV+a),t.t=n,t.clamp()}function Zfe(e){var t=qn();return this.addTo(e,t),t}function epe(e){var t=qn();return this.subTo(e,t),t}function tpe(e){var t=qn();return this.multiplyTo(e,t),t}function npe(){var e=qn();return this.squareTo(e),e}function ape(e){var t=qn();return this.divRemTo(e,t,null),t}function spe(e){var t=qn();return this.divRemTo(e,null,t),t}function ope(e){var t=qn(),n=qn();return this.divRemTo(e,t,n),new Array(t,n)}function rpe(e){this.data[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}function lpe(e,t){if(e!=0){for(;this.t<=t;)this.data[this.t++]=0;for(this.data[t]+=e;this.data[t]>=this.DV;)this.data[t]-=this.DV,++t>=this.t&&(this.data[this.t++]=0),++this.data[t]}}function Yp(){}function b6(e){return e}function ipe(e,t,n){e.multiplyTo(t,n)}function cpe(e,t){e.squareTo(t)}Yp.prototype.convert=b6;Yp.prototype.revert=b6;Yp.prototype.mulTo=ipe;Yp.prototype.sqrTo=cpe;function upe(e){return this.exp(e,new Yp)}function dpe(e,t,n){var a=Math.min(this.t+e.t,t);for(n.s=0,n.t=a;a>0;)n.data[--a]=0;var s;for(s=n.t-this.t;a=0;)n.data[a]=0;for(a=Math.max(t-this.t,0);a2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=qn();return e.copyTo(t),this.reduce(t),t}function vpe(e){return e}function hpe(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)}function mpe(e,t){e.squareTo(t),this.reduce(t)}function gpe(e,t,n){e.multiplyTo(t,n),this.reduce(n)}Md.prototype.convert=ppe;Md.prototype.revert=vpe;Md.prototype.reduce=hpe;Md.prototype.mulTo=gpe;Md.prototype.sqrTo=mpe;function _pe(e,t){var n=e.bitLength(),a,s=wi(1),o;if(n<=0)return s;n<18?a=1:n<48?a=3:n<144?a=4:n<768?a=5:a=6,n<8?o=new Qc(t):t.isEven()?o=new Md(t):o=new Jc(t);var r=new Array,i=3,c=a-1,u=(1<1){var d=qn();for(o.sqrTo(r[1],d);i<=u;)r[i]=qn(),o.mulTo(d,r[i-2],r[i]),i+=2}var p=e.t-1,v,h=!0,m=qn(),g;for(n=C0(e.data[p])-1;p>=0;){for(n>=c?v=e.data[p]>>n-c&u:(v=(e.data[p]&(1<0&&(v|=e.data[p-1]>>this.DB+n-c)),i=a;!(v&1);)v>>=1,--i;if((n-=i)<0&&(n+=this.DB,--p),h)r[v].copyTo(s),h=!1;else{for(;i>1;)o.sqrTo(s,m),o.sqrTo(m,s),i-=2;i>0?o.sqrTo(s,m):(g=s,s=m,m=g),o.mulTo(m,r[v],s)}for(;p>=0&&!(e.data[p]&1<0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));t.signum()>0;)(s=t.getLowestSetBit())>0&&t.rShiftTo(s,t),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n}function bpe(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(t==0)n=this.data[0]%e;else for(var a=this.t-1;a>=0;--a)n=(t*n+this.data[a])%e;return n}function wpe(e){if(this.signum()==0)return mt.ZERO;var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return mt.ZERO;for(var n=e.clone(),a=this.clone(),s=wi(1),o=wi(0),r=wi(0),i=wi(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),t?((!s.isEven()||!o.isEven())&&(s.addTo(this,s),o.subTo(e,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;a.isEven();)a.rShiftTo(1,a),t?((!r.isEven()||!i.isEven())&&(r.addTo(this,r),i.subTo(e,i)),r.rShiftTo(1,r)):i.isEven()||i.subTo(e,i),i.rShiftTo(1,i);n.compareTo(a)>=0?(n.subTo(a,n),t&&s.subTo(r,s),o.subTo(i,o)):(a.subTo(n,a),t&&r.subTo(s,r),i.subTo(o,i))}if(a.compareTo(mt.ONE)!=0)return mt.ZERO;if(i.compareTo(e)>=0)return i.subtract(e);if(i.signum()<0)i.addTo(e,i);else return i;return i.signum()<0?i.add(e):i}var vr=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Cpe=(1<<26)/vr[vr.length-1];function kpe(e){var t,n=this.abs();if(n.t==1&&n.data[0]<=vr[vr.length-1]){for(t=0;t=0);var i=o.modPow(a,this);if(i.compareTo(mt.ONE)!=0&&i.compareTo(t)!=0){for(var c=1;c++>>0,r>>>0];for(var i=a.fullMessageLength.length-1;i>=0;--i)a.fullMessageLength[i]+=r[1],r[1]=r[0]+(a.fullMessageLength[i]/4294967296>>>0),a.fullMessageLength[i]=a.fullMessageLength[i]>>>0,r[0]=r[1]/4294967296>>>0;return t.putBytes(s),FE(e,n,t),(t.read>2048||t.length()===0)&&t.compact(),a},a.digest=function(){var s=Kr.util.createBuffer();s.putBytes(t.bytes());var o=a.fullMessageLength[a.fullMessageLength.length-1]+a.messageLengthSize,r=o&a.blockLength-1;s.putBytes(A1.substr(0,a.blockLength-r));for(var i,c,u=a.fullMessageLength[0]*8,d=0;d>>0,u+=c,s.putInt32(u>>>0),u=i>>>0;s.putInt32(u);var p={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4};FE(p,n,s);var v=Kr.util.createBuffer();return v.putInt32(p.h0),v.putInt32(p.h1),v.putInt32(p.h2),v.putInt32(p.h3),v.putInt32(p.h4),v},a};var A1=null,C6=!1;function $pe(){A1="€",A1+=Kr.util.fillString("\0",64),C6=!0}function FE(e,t,n){for(var a,s,o,r,i,c,u,d,p=n.length();p>=64;){for(s=e.h0,o=e.h1,r=e.h2,i=e.h3,c=e.h4,d=0;d<16;++d)a=n.getInt32(),t[d]=a,u=i^o&(r^i),a=(s<<5|s>>>27)+u+c+1518500249+a,c=i,i=r,r=(o<<30|o>>>2)>>>0,o=s,s=a;for(;d<20;++d)a=t[d-3]^t[d-8]^t[d-14]^t[d-16],a=a<<1|a>>>31,t[d]=a,u=i^o&(r^i),a=(s<<5|s>>>27)+u+c+1518500249+a,c=i,i=r,r=(o<<30|o>>>2)>>>0,o=s,s=a;for(;d<32;++d)a=t[d-3]^t[d-8]^t[d-14]^t[d-16],a=a<<1|a>>>31,t[d]=a,u=o^r^i,a=(s<<5|s>>>27)+u+c+1859775393+a,c=i,i=r,r=(o<<30|o>>>2)>>>0,o=s,s=a;for(;d<40;++d)a=t[d-6]^t[d-16]^t[d-28]^t[d-32],a=a<<2|a>>>30,t[d]=a,u=o^r^i,a=(s<<5|s>>>27)+u+c+1859775393+a,c=i,i=r,r=(o<<30|o>>>2)>>>0,o=s,s=a;for(;d<60;++d)a=t[d-6]^t[d-16]^t[d-28]^t[d-32],a=a<<2|a>>>30,t[d]=a,u=o&r|i&(o^r),a=(s<<5|s>>>27)+u+c+2400959708+a,c=i,i=r,r=(o<<30|o>>>2)>>>0,o=s,s=a;for(;d<80;++d)a=t[d-6]^t[d-16]^t[d-28]^t[d-32],a=a<<2|a>>>30,t[d]=a,u=o^r^i,a=(s<<5|s>>>27)+u+c+3395469782+a,c=i,i=r,r=(o<<30|o>>>2)>>>0,o=s,s=a;e.h0=e.h0+s|0,e.h1=e.h1+o|0,e.h2=e.h2+r|0,e.h3=e.h3+i|0,e.h4=e.h4+c|0,p-=64}}var Yr=Nn,k6=Yr.pkcs1=Yr.pkcs1||{};k6.encode_rsa_oaep=function(e,t,n){var a,s,o,r;typeof n=="string"?(a=n,s=arguments[3]||void 0,o=arguments[4]||void 0):n&&(a=n.label||void 0,s=n.seed||void 0,o=n.md||void 0,n.mgf1&&n.mgf1.md&&(r=n.mgf1.md)),o?o.start():o=Yr.md.sha1.create(),r||(r=o);var i=Math.ceil(e.n.bitLength()/8),c=i-2*o.digestLength-2;if(t.length>c){var u=new Error("RSAES-OAEP input message length is too long.");throw u.length=t.length,u.maxLength=c,u}a||(a=""),o.update(a,"raw");for(var d=o.digest(),p="",v=c-t.length,h=0;h>24&255,o>>16&255,o>>8&255,o&255);n.start(),n.update(e+r),a+=n.digest().getBytes()}return a.substring(0,t)}var ai=Nn;(function(){if(ai.prime){ai.prime;return}var e=ai.prime=ai.prime||{},t=ai.jsbn.BigInteger,n=[6,4,2,4,2,4,6,2],a=new t(null);a.fromInt(30);var s=function(p,v){return p|v};e.generateProbablePrime=function(p,v,h){typeof v=="function"&&(h=v,v={}),v=v||{};var m=v.algorithm||"PRIMEINC";typeof m=="string"&&(m={name:m}),m.options=m.options||{};var g=v.prng||ai.random,y={nextBytes:function(b){for(var C=g.getBytesSync(b.length),k=0;kv&&(p=u(v,h)),p.isProbablePrime(g))return b(null,p);p.dAddOffset(n[m++%8],0)}while(y<0||+new Date-C"u")return r(p,v,h,m);var g=u(p,v),y=h.workers,b=h.workLoad||100,C=b*30/8,k=h.workerScript||"forge/prime.worker.js";if(y===-1)return ai.util.estimateCores(function($,E){$&&(E=2),y=E-1,S()});S();function S(){y=Math.max(1,y);for(var $=[],E=0;Ep&&(g=u(p,v));var M=g.toString(16);N.target.postMessage({hex:M,workLoad:b}),g.dAddOffset(C,0)}}}}function u(p,v){var h=new t(p,v),m=p-1;return h.testBit(m)||h.bitwiseTo(t.ONE.shiftLeft(m),s,h),h.dAddOffset(31-h.mod(a).byteValue(),0),h}function d(p){return p<=100?27:p<=150?18:p<=200?15:p<=250?12:p<=300?9:p<=350?8:p<=400?7:p<=500?6:p<=600?5:p<=800?4:p<=1250?3:2}})();var an=Nn;if(typeof Wn>"u")var Wn=an.jsbn.BigInteger;var N1=an.util.isNodejs?$2:null,He=an.asn1,jo=an.util;an.pki=an.pki||{};an.pki.rsa=an.rsa=an.rsa||{};var bn=an.pki,xpe=[6,4,2,4,2,4,6,2],Tpe={name:"PrivateKeyInfo",tagClass:He.Class.UNIVERSAL,type:He.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:He.Class.UNIVERSAL,type:He.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:He.Class.UNIVERSAL,type:He.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:He.Class.UNIVERSAL,type:He.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:He.Class.UNIVERSAL,type:He.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},Ipe={name:"RSAPrivateKey",tagClass:He.Class.UNIVERSAL,type:He.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:He.Class.UNIVERSAL,type:He.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:He.Class.UNIVERSAL,type:He.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:He.Class.UNIVERSAL,type:He.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:He.Class.UNIVERSAL,type:He.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:He.Class.UNIVERSAL,type:He.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:He.Class.UNIVERSAL,type:He.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:He.Class.UNIVERSAL,type:He.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:He.Class.UNIVERSAL,type:He.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:He.Class.UNIVERSAL,type:He.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},Ape={name:"RSAPublicKey",tagClass:He.Class.UNIVERSAL,type:He.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:He.Class.UNIVERSAL,type:He.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:He.Class.UNIVERSAL,type:He.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},Npe=an.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:He.Class.UNIVERSAL,type:He.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:He.Class.UNIVERSAL,type:He.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:He.Class.UNIVERSAL,type:He.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:He.Class.UNIVERSAL,type:He.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:He.Class.UNIVERSAL,type:He.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},Rpe={name:"DigestInfo",tagClass:He.Class.UNIVERSAL,type:He.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:He.Class.UNIVERSAL,type:He.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:He.Class.UNIVERSAL,type:He.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:He.Class.UNIVERSAL,type:He.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:He.Class.UNIVERSAL,type:He.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},Ppe=function(e){var t;if(e.algorithm in bn.oids)t=bn.oids[e.algorithm];else{var n=new Error("Unknown message digest algorithm.");throw n.algorithm=e.algorithm,n}var a=He.oidToDer(t).getBytes(),s=He.create(He.Class.UNIVERSAL,He.Type.SEQUENCE,!0,[]),o=He.create(He.Class.UNIVERSAL,He.Type.SEQUENCE,!0,[]);o.value.push(He.create(He.Class.UNIVERSAL,He.Type.OID,!1,a)),o.value.push(He.create(He.Class.UNIVERSAL,He.Type.NULL,!1,""));var r=He.create(He.Class.UNIVERSAL,He.Type.OCTETSTRING,!1,e.digest().getBytes());return s.value.push(o),s.value.push(r),He.toDer(s).getBytes()},S6=function(e,t,n){if(n)return e.modPow(t.e,t.n);if(!t.p||!t.q)return e.modPow(t.d,t.n);t.dP||(t.dP=t.d.mod(t.p.subtract(Wn.ONE))),t.dQ||(t.dQ=t.d.mod(t.q.subtract(Wn.ONE))),t.qInv||(t.qInv=t.q.modInverse(t.p));var a;do a=new Wn(an.util.bytesToHex(an.random.getBytes(t.n.bitLength()/8)),16);while(a.compareTo(t.n)>=0||!a.gcd(t.n).equals(Wn.ONE));e=e.multiply(a.modPow(t.e,t.n)).mod(t.n);for(var s=e.mod(t.p).modPow(t.dP,t.p),o=e.mod(t.q).modPow(t.dQ,t.q);s.compareTo(o)<0;)s=s.add(t.p);var r=s.subtract(o).multiply(t.qInv).mod(t.p).multiply(t.q).add(o);return r=r.multiply(a.modInverse(t.n)).mod(t.n),r};bn.rsa.encrypt=function(e,t,n){var a=n,s,o=Math.ceil(t.n.bitLength()/8);n!==!1&&n!==!0?(a=n===2,s=E6(e,t,n)):(s=an.util.createBuffer(),s.putBytes(e));for(var r=new Wn(s.toHex(),16),i=S6(r,t,a),c=i.toString(16),u=an.util.createBuffer(),d=o-Math.ceil(c.length/2);d>0;)u.putByte(0),--d;return u.putBytes(an.util.hexToBytes(c)),u.getBytes()};bn.rsa.decrypt=function(e,t,n,a){var s=Math.ceil(t.n.bitLength()/8);if(e.length!==s){var o=new Error("Encrypted message length is invalid.");throw o.length=e.length,o.expected=s,o}var r=new Wn(an.util.createBuffer(e).toHex(),16);if(r.compareTo(t.n)>=0)throw new Error("Encrypted message is invalid.");for(var i=S6(r,t,n),c=i.toString(16),u=an.util.createBuffer(),d=s-Math.ceil(c.length/2);d>0;)u.putByte(0),--d;return u.putBytes(an.util.hexToBytes(c)),a!==!1?lm(u.getBytes(),t,n):u.getBytes()};bn.rsa.createKeyPairGenerationState=function(e,t,n){typeof e=="string"&&(e=parseInt(e,10)),e=e||2048,n=n||{};var a=n.prng||an.random,s={nextBytes:function(i){for(var c=a.getBytesSync(i.length),u=0;u>1,pBits:e-(e>>1),pqState:0,num:null,keys:null},r.e.fromInt(r.eInt);else throw new Error("Invalid key generation algorithm: "+o);return r};bn.rsa.stepKeyPairGenerationState=function(e,t){"algorithm"in e||(e.algorithm="PRIMEINC");var n=new Wn(null);n.fromInt(30);for(var a=0,s=function(p,v){return p|v},o=+new Date,r,i=0;e.keys===null&&(t<=0||ic?e.pqState=0:e.num.isProbablePrime(Bpe(e.num.bitLength()))?++e.pqState:e.num.dAddOffset(xpe[a++%8],0):e.pqState===2?e.pqState=e.num.subtract(Wn.ONE).gcd(e.e).compareTo(Wn.ONE)===0?3:0:e.pqState===3&&(e.pqState=0,e.p===null?e.p=e.num:e.q=e.num,e.p!==null&&e.q!==null&&++e.state,e.num=null)}else if(e.state===1)e.p.compareTo(e.q)<0&&(e.num=e.p,e.p=e.q,e.q=e.num),++e.state;else if(e.state===2)e.p1=e.p.subtract(Wn.ONE),e.q1=e.q.subtract(Wn.ONE),e.phi=e.p1.multiply(e.q1),++e.state;else if(e.state===3)e.phi.gcd(e.e).compareTo(Wn.ONE)===0?++e.state:(e.p=null,e.q=null,e.state=0);else if(e.state===4)e.n=e.p.multiply(e.q),e.n.bitLength()===e.bits?++e.state:(e.q=null,e.state=0);else if(e.state===5){var d=e.e.modInverse(e.phi);e.keys={privateKey:bn.rsa.setPrivateKey(e.n,e.e,d,e.p,e.q,d.mod(e.p1),d.mod(e.q1),e.q.modInverse(e.p)),publicKey:bn.rsa.setPublicKey(e.n,e.e)}}r=+new Date,i+=r-o,o=r}return e.keys!==null};bn.rsa.generateKeyPair=function(e,t,n,a){if(arguments.length===1?typeof e=="object"?(n=e,e=void 0):typeof e=="function"&&(a=e,e=void 0):arguments.length===2?typeof e=="number"?typeof t=="function"?(a=t,t=void 0):typeof t!="number"&&(n=t,t=void 0):(n=e,a=t,e=void 0,t=void 0):arguments.length===3&&(typeof t=="number"?typeof n=="function"&&(a=n,n=void 0):(a=n,n=t,t=void 0)),n=n||{},e===void 0&&(e=n.bits||2048),t===void 0&&(t=n.e||65537),!an.options.usePureJavaScript&&!n.prng&&e>=256&&e<=16384&&(t===65537||t===3)){if(a){if(UE("generateKeyPair"))return N1.generateKeyPair("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function(i,c,u){if(i)return a(i);a(null,{privateKey:bn.privateKeyFromPem(u),publicKey:bn.publicKeyFromPem(c)})});if(zE("generateKey")&&zE("exportKey"))return jo.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:KE(t),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(i){return jo.globalScope.crypto.subtle.exportKey("pkcs8",i.privateKey)}).then(void 0,function(i){a(i)}).then(function(i){if(i){var c=bn.privateKeyFromAsn1(He.fromDer(an.util.createBuffer(i)));a(null,{privateKey:c,publicKey:bn.setRsaPublicKey(c.n,c.e)})}});if(HE("generateKey")&&HE("exportKey")){var s=jo.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:KE(t),hash:{name:"SHA-256"}},!0,["sign","verify"]);s.oncomplete=function(i){var c=i.target.result,u=jo.globalScope.msCrypto.subtle.exportKey("pkcs8",c.privateKey);u.oncomplete=function(d){var p=d.target.result,v=bn.privateKeyFromAsn1(He.fromDer(an.util.createBuffer(p)));a(null,{privateKey:v,publicKey:bn.setRsaPublicKey(v.n,v.e)})},u.onerror=function(d){a(d)}},s.onerror=function(i){a(i)};return}}else if(UE("generateKeyPairSync")){var o=N1.generateKeyPairSync("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:bn.privateKeyFromPem(o.privateKey),publicKey:bn.publicKeyFromPem(o.publicKey)}}}var r=bn.rsa.createKeyPairGenerationState(e,t,n);if(!a)return bn.rsa.stepKeyPairGenerationState(r,0),r.keys;Mpe(r,n,a)};bn.setRsaPublicKey=bn.rsa.setPublicKey=function(e,t){var n={n:e,e:t};return n.encrypt=function(a,s,o){if(typeof s=="string"?s=s.toUpperCase():s===void 0&&(s="RSAES-PKCS1-V1_5"),s==="RSAES-PKCS1-V1_5")s={encode:function(i,c,u){return E6(i,c,2).getBytes()}};else if(s==="RSA-OAEP"||s==="RSAES-OAEP")s={encode:function(i,c){return an.pkcs1.encode_rsa_oaep(c,i,o)}};else if(["RAW","NONE","NULL",null].indexOf(s)!==-1)s={encode:function(i){return i}};else if(typeof s=="string")throw new Error('Unsupported encryption scheme: "'+s+'".');var r=s.encode(a,n,!0);return bn.rsa.encrypt(r,n,!0)},n.verify=function(a,s,o,r){typeof o=="string"?o=o.toUpperCase():o===void 0&&(o="RSASSA-PKCS1-V1_5"),r===void 0&&(r={_parseAllDigestBytes:!0,_skipPaddingChecks:!1}),"_parseAllDigestBytes"in r||(r._parseAllDigestBytes=!0),"_skipPaddingChecks"in r||(r._skipPaddingChecks=!1),o==="RSASSA-PKCS1-V1_5"?o={verify:function(c,u){u=lm(u,n,!0,void 0,r);var d=He.fromDer(u,{parseAllBytes:r._parseAllDigestBytes}),p={},v=[];if(!He.validate(d,Rpe,p,v)||d.value.length!==2){var h=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.");throw h.errors=v,h}var m=He.derToOid(p.algorithmIdentifier);if(!(m===an.oids.md2||m===an.oids.md5||m===an.oids.sha1||m===an.oids.sha224||m===an.oids.sha256||m===an.oids.sha384||m===an.oids.sha512||m===an.oids["sha512-224"]||m===an.oids["sha512-256"])){var h=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.");throw h.oid=m,h}if((m===an.oids.md2||m===an.oids.md5)&&!("parameters"in p))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifier NULL parameters.");return c===p.digest}}:(o==="NONE"||o==="NULL"||o===null)&&(o={verify:function(c,u){return u=lm(u,n,!0,void 0,r),c===u}});var i=bn.rsa.decrypt(s,n,!0,!1);return o.verify(a,i,n.n.bitLength())},n};bn.setRsaPrivateKey=bn.rsa.setPrivateKey=function(e,t,n,a,s,o,r,i){var c={n:e,e:t,d:n,p:a,q:s,dP:o,dQ:r,qInv:i};return c.decrypt=function(u,d,p){typeof d=="string"?d=d.toUpperCase():d===void 0&&(d="RSAES-PKCS1-V1_5");var v=bn.rsa.decrypt(u,c,!1,!1);if(d==="RSAES-PKCS1-V1_5")d={decode:lm};else if(d==="RSA-OAEP"||d==="RSAES-OAEP")d={decode:function(h,m){return an.pkcs1.decode_rsa_oaep(m,h,p)}};else if(["RAW","NONE","NULL",null].indexOf(d)!==-1)d={decode:function(h){return h}};else throw new Error('Unsupported encryption scheme: "'+d+'".');return d.decode(v,c,!1)},c.sign=function(u,d){var p=!1;typeof d=="string"&&(d=d.toUpperCase()),d===void 0||d==="RSASSA-PKCS1-V1_5"?(d={encode:Ppe},p=1):(d==="NONE"||d==="NULL"||d===null)&&(d={encode:function(){return u}},p=1);var v=d.encode(u,c.n.bitLength());return bn.rsa.encrypt(v,c,p)},c};bn.wrapRsaPrivateKey=function(e){return He.create(He.Class.UNIVERSAL,He.Type.SEQUENCE,!0,[He.create(He.Class.UNIVERSAL,He.Type.INTEGER,!1,He.integerToDer(0).getBytes()),He.create(He.Class.UNIVERSAL,He.Type.SEQUENCE,!0,[He.create(He.Class.UNIVERSAL,He.Type.OID,!1,He.oidToDer(bn.oids.rsaEncryption).getBytes()),He.create(He.Class.UNIVERSAL,He.Type.NULL,!1,"")]),He.create(He.Class.UNIVERSAL,He.Type.OCTETSTRING,!1,He.toDer(e).getBytes())])};bn.privateKeyFromAsn1=function(e){var t={},n=[];if(He.validate(e,Tpe,t,n)&&(e=He.fromDer(an.util.createBuffer(t.privateKey))),t={},n=[],!He.validate(e,Ipe,t,n)){var a=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw a.errors=n,a}var s,o,r,i,c,u,d,p;return s=an.util.createBuffer(t.privateKeyModulus).toHex(),o=an.util.createBuffer(t.privateKeyPublicExponent).toHex(),r=an.util.createBuffer(t.privateKeyPrivateExponent).toHex(),i=an.util.createBuffer(t.privateKeyPrime1).toHex(),c=an.util.createBuffer(t.privateKeyPrime2).toHex(),u=an.util.createBuffer(t.privateKeyExponent1).toHex(),d=an.util.createBuffer(t.privateKeyExponent2).toHex(),p=an.util.createBuffer(t.privateKeyCoefficient).toHex(),bn.setRsaPrivateKey(new Wn(s,16),new Wn(o,16),new Wn(r,16),new Wn(i,16),new Wn(c,16),new Wn(u,16),new Wn(d,16),new Wn(p,16))};bn.privateKeyToAsn1=bn.privateKeyToRSAPrivateKey=function(e){return He.create(He.Class.UNIVERSAL,He.Type.SEQUENCE,!0,[He.create(He.Class.UNIVERSAL,He.Type.INTEGER,!1,He.integerToDer(0).getBytes()),He.create(He.Class.UNIVERSAL,He.Type.INTEGER,!1,Lr(e.n)),He.create(He.Class.UNIVERSAL,He.Type.INTEGER,!1,Lr(e.e)),He.create(He.Class.UNIVERSAL,He.Type.INTEGER,!1,Lr(e.d)),He.create(He.Class.UNIVERSAL,He.Type.INTEGER,!1,Lr(e.p)),He.create(He.Class.UNIVERSAL,He.Type.INTEGER,!1,Lr(e.q)),He.create(He.Class.UNIVERSAL,He.Type.INTEGER,!1,Lr(e.dP)),He.create(He.Class.UNIVERSAL,He.Type.INTEGER,!1,Lr(e.dQ)),He.create(He.Class.UNIVERSAL,He.Type.INTEGER,!1,Lr(e.qInv))])};bn.publicKeyFromAsn1=function(e){var t={},n=[];if(He.validate(e,Npe,t,n)){var a=He.derToOid(t.publicKeyOid);if(a!==bn.oids.rsaEncryption){var s=new Error("Cannot read public key. Unknown OID.");throw s.oid=a,s}e=t.rsaPublicKey}if(n=[],!He.validate(e,Ape,t,n)){var s=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.");throw s.errors=n,s}var o=an.util.createBuffer(t.publicKeyModulus).toHex(),r=an.util.createBuffer(t.publicKeyExponent).toHex();return bn.setRsaPublicKey(new Wn(o,16),new Wn(r,16))};bn.publicKeyToAsn1=bn.publicKeyToSubjectPublicKeyInfo=function(e){return He.create(He.Class.UNIVERSAL,He.Type.SEQUENCE,!0,[He.create(He.Class.UNIVERSAL,He.Type.SEQUENCE,!0,[He.create(He.Class.UNIVERSAL,He.Type.OID,!1,He.oidToDer(bn.oids.rsaEncryption).getBytes()),He.create(He.Class.UNIVERSAL,He.Type.NULL,!1,"")]),He.create(He.Class.UNIVERSAL,He.Type.BITSTRING,!1,[bn.publicKeyToRSAPublicKey(e)])])};bn.publicKeyToRSAPublicKey=function(e){return He.create(He.Class.UNIVERSAL,He.Type.SEQUENCE,!0,[He.create(He.Class.UNIVERSAL,He.Type.INTEGER,!1,Lr(e.n)),He.create(He.Class.UNIVERSAL,He.Type.INTEGER,!1,Lr(e.e))])};function E6(e,t,n){var a=an.util.createBuffer(),s=Math.ceil(t.n.bitLength()/8);if(e.length>s-11){var o=new Error("Message is too long for PKCS#1 v1.5 padding.");throw o.length=e.length,o.max=s-11,o}a.putByte(0),a.putByte(n);var r=s-3-e.length,i;if(n===0||n===1){i=n===0?0:255;for(var c=0;c0;){for(var u=0,d=an.random.getBytes(r),c=0;c"u")throw new Error("Encryption block is invalid.");var u=0;if(c===0){u=o-3-a;for(var d=0;d1;){if(r.getByte()!==255){--r.read;break}++u}if(u<8&&!(s&&s._skipPaddingChecks))throw new Error("Encryption block is invalid.")}else if(c===2){for(u=0;r.length()>1;){if(r.getByte()===0){--r.read;break}++u}if(u<8&&!(s&&s._skipPaddingChecks))throw new Error("Encryption block is invalid.")}var p=r.getByte();if(p!==0||u!==o-3-r.length())throw new Error("Encryption block is invalid.");return r.getBytes()}function Mpe(e,t,n){typeof t=="function"&&(n=t,t={}),t=t||{};var a={algorithm:{name:t.algorithm||"PRIMEINC",options:{workers:t.workers||2,workLoad:t.workLoad||100,workerScript:t.workerScript}}};"prng"in t&&(a.prng=t.prng),s();function s(){o(e.pBits,function(i,c){if(i)return n(i);if(e.p=c,e.q!==null)return r(i,e.q);o(e.qBits,r)})}function o(i,c){an.prime.generateProbablePrime(i,a,c)}function r(i,c){if(i)return n(i);if(e.q=c,e.p.compareTo(e.q)<0){var u=e.p;e.p=e.q,e.q=u}if(e.p.subtract(Wn.ONE).gcd(e.e).compareTo(Wn.ONE)!==0){e.p=null,s();return}if(e.q.subtract(Wn.ONE).gcd(e.e).compareTo(Wn.ONE)!==0){e.q=null,o(e.qBits,r);return}if(e.p1=e.p.subtract(Wn.ONE),e.q1=e.q.subtract(Wn.ONE),e.phi=e.p1.multiply(e.q1),e.phi.gcd(e.e).compareTo(Wn.ONE)!==0){e.p=e.q=null,s();return}if(e.n=e.p.multiply(e.q),e.n.bitLength()!==e.bits){e.q=null,o(e.qBits,r);return}var d=e.e.modInverse(e.phi);e.keys={privateKey:bn.rsa.setPrivateKey(e.n,e.e,d,e.p,e.q,d.mod(e.p1),d.mod(e.q1),e.q.modInverse(e.p)),publicKey:bn.rsa.setPublicKey(e.n,e.e)},n(null,e.keys)}}function Lr(e){var t=e.toString(16);t[0]>="8"&&(t="00"+t);var n=an.util.hexToBytes(t);return n.length>1&&(n.charCodeAt(0)===0&&!(n.charCodeAt(1)&128)||n.charCodeAt(0)===255&&(n.charCodeAt(1)&128)===128)?n.substr(1):n}function Bpe(e){return e<=100?27:e<=150?18:e<=200?15:e<=250?12:e<=300?9:e<=350?8:e<=400?7:e<=500?6:e<=600?5:e<=800?4:e<=1250?3:2}function UE(e){return an.util.isNodejs&&typeof N1[e]=="function"}function zE(e){return typeof jo.globalScope<"u"&&typeof jo.globalScope.crypto=="object"&&typeof jo.globalScope.crypto.subtle=="object"&&typeof jo.globalScope.crypto.subtle[e]=="function"}function HE(e){return typeof jo.globalScope<"u"&&typeof jo.globalScope.msCrypto=="object"&&typeof jo.globalScope.msCrypto.subtle=="object"&&typeof jo.globalScope.msCrypto.subtle[e]=="function"}function KE(e){for(var t=an.util.hexToBytes(e.toString(16)),n=new Uint8Array(t.length),a=0;a"u")var Lpe=jt.jsbn.BigInteger;var lt=jt.asn1,Sn=jt.pki=jt.pki||{};Sn.pbe=jt.pbe=jt.pbe||{};var ec=Sn.oids,Ope={name:"EncryptedPrivateKeyInfo",tagClass:lt.Class.UNIVERSAL,type:lt.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:lt.Class.UNIVERSAL,type:lt.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:lt.Class.UNIVERSAL,type:lt.Type.OID,constructed:!1,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:lt.Class.UNIVERSAL,type:lt.Type.SEQUENCE,constructed:!0,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:lt.Class.UNIVERSAL,type:lt.Type.OCTETSTRING,constructed:!1,capture:"encryptedData"}]},Dpe={name:"PBES2Algorithms",tagClass:lt.Class.UNIVERSAL,type:lt.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:lt.Class.UNIVERSAL,type:lt.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:lt.Class.UNIVERSAL,type:lt.Type.OID,constructed:!1,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:lt.Class.UNIVERSAL,type:lt.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.params.salt",tagClass:lt.Class.UNIVERSAL,type:lt.Type.OCTETSTRING,constructed:!1,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:lt.Class.UNIVERSAL,type:lt.Type.INTEGER,constructed:!1,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:lt.Class.UNIVERSAL,type:lt.Type.INTEGER,constructed:!1,optional:!0,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:lt.Class.UNIVERSAL,type:lt.Type.SEQUENCE,constructed:!0,optional:!0,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:lt.Class.UNIVERSAL,type:lt.Type.OID,constructed:!1,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:lt.Class.UNIVERSAL,type:lt.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:lt.Class.UNIVERSAL,type:lt.Type.OID,constructed:!1,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:lt.Class.UNIVERSAL,type:lt.Type.OCTETSTRING,constructed:!1,capture:"encIv"}]}]},Vpe={name:"pkcs-12PbeParams",tagClass:lt.Class.UNIVERSAL,type:lt.Type.SEQUENCE,constructed:!0,value:[{name:"pkcs-12PbeParams.salt",tagClass:lt.Class.UNIVERSAL,type:lt.Type.OCTETSTRING,constructed:!1,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:lt.Class.UNIVERSAL,type:lt.Type.INTEGER,constructed:!1,capture:"iterations"}]};Sn.encryptPrivateKeyInfo=function(e,t,n){n=n||{},n.saltSize=n.saltSize||8,n.count=n.count||2048,n.algorithm=n.algorithm||"aes128",n.prfAlgorithm=n.prfAlgorithm||"sha1";var a=jt.random.getBytesSync(n.saltSize),s=n.count,o=lt.integerToDer(s),r,i,c;if(n.algorithm.indexOf("aes")===0||n.algorithm==="des"){var u,d,p;switch(n.algorithm){case"aes128":r=16,u=16,d=ec["aes128-CBC"],p=jt.aes.createEncryptionCipher;break;case"aes192":r=24,u=16,d=ec["aes192-CBC"],p=jt.aes.createEncryptionCipher;break;case"aes256":r=32,u=16,d=ec["aes256-CBC"],p=jt.aes.createEncryptionCipher;break;case"des":r=8,u=8,d=ec.desCBC,p=jt.des.createEncryptionCipher;break;default:var v=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw v.algorithm=n.algorithm,v}var h="hmacWith"+n.prfAlgorithm.toUpperCase(),m=x6(h),g=jt.pkcs5.pbkdf2(t,a,s,r,m),y=jt.random.getBytesSync(u),b=p(g);b.start(y),b.update(lt.toDer(e)),b.finish(),c=b.output.getBytes();var C=Fpe(a,o,r,h);i=lt.create(lt.Class.UNIVERSAL,lt.Type.SEQUENCE,!0,[lt.create(lt.Class.UNIVERSAL,lt.Type.OID,!1,lt.oidToDer(ec.pkcs5PBES2).getBytes()),lt.create(lt.Class.UNIVERSAL,lt.Type.SEQUENCE,!0,[lt.create(lt.Class.UNIVERSAL,lt.Type.SEQUENCE,!0,[lt.create(lt.Class.UNIVERSAL,lt.Type.OID,!1,lt.oidToDer(ec.pkcs5PBKDF2).getBytes()),C]),lt.create(lt.Class.UNIVERSAL,lt.Type.SEQUENCE,!0,[lt.create(lt.Class.UNIVERSAL,lt.Type.OID,!1,lt.oidToDer(d).getBytes()),lt.create(lt.Class.UNIVERSAL,lt.Type.OCTETSTRING,!1,y)])])])}else if(n.algorithm==="3des"){r=24;var k=new jt.util.ByteBuffer(a),g=Sn.pbe.generatePkcs12Key(t,k,1,s,r),y=Sn.pbe.generatePkcs12Key(t,k,2,s,r),b=jt.des.createEncryptionCipher(g);b.start(y),b.update(lt.toDer(e)),b.finish(),c=b.output.getBytes(),i=lt.create(lt.Class.UNIVERSAL,lt.Type.SEQUENCE,!0,[lt.create(lt.Class.UNIVERSAL,lt.Type.OID,!1,lt.oidToDer(ec["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),lt.create(lt.Class.UNIVERSAL,lt.Type.SEQUENCE,!0,[lt.create(lt.Class.UNIVERSAL,lt.Type.OCTETSTRING,!1,a),lt.create(lt.Class.UNIVERSAL,lt.Type.INTEGER,!1,o.getBytes())])])}else{var v=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw v.algorithm=n.algorithm,v}var S=lt.create(lt.Class.UNIVERSAL,lt.Type.SEQUENCE,!0,[i,lt.create(lt.Class.UNIVERSAL,lt.Type.OCTETSTRING,!1,c)]);return S};Sn.decryptPrivateKeyInfo=function(e,t){var n=null,a={},s=[];if(!lt.validate(e,Ope,a,s)){var o=new Error("Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw o.errors=s,o}var r=lt.derToOid(a.encryptionOid),i=Sn.pbe.getCipher(r,a.encryptionParams,t),c=jt.util.createBuffer(a.encryptedData);return i.update(c),i.finish()&&(n=lt.fromDer(i.output)),n};Sn.encryptedPrivateKeyToPem=function(e,t){var n={type:"ENCRYPTED PRIVATE KEY",body:lt.toDer(e).getBytes()};return jt.pem.encode(n,{maxline:t})};Sn.encryptedPrivateKeyFromPem=function(e){var t=jt.pem.decode(e)[0];if(t.type!=="ENCRYPTED PRIVATE KEY"){var n=new Error('Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".');throw n.headerType=t.type,n}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert encrypted private key from PEM; PEM is encrypted.");return lt.fromDer(t.body)};Sn.encryptRsaPrivateKey=function(e,t,n){if(n=n||{},!n.legacy){var a=Sn.wrapRsaPrivateKey(Sn.privateKeyToAsn1(e));return a=Sn.encryptPrivateKeyInfo(a,t,n),Sn.encryptedPrivateKeyToPem(a)}var s,o,r,i;switch(n.algorithm){case"aes128":s="AES-128-CBC",r=16,o=jt.random.getBytesSync(16),i=jt.aes.createEncryptionCipher;break;case"aes192":s="AES-192-CBC",r=24,o=jt.random.getBytesSync(16),i=jt.aes.createEncryptionCipher;break;case"aes256":s="AES-256-CBC",r=32,o=jt.random.getBytesSync(16),i=jt.aes.createEncryptionCipher;break;case"3des":s="DES-EDE3-CBC",r=24,o=jt.random.getBytesSync(8),i=jt.des.createEncryptionCipher;break;case"des":s="DES-CBC",r=8,o=jt.random.getBytesSync(8),i=jt.des.createEncryptionCipher;break;default:var c=new Error('Could not encrypt RSA private key; unsupported encryption algorithm "'+n.algorithm+'".');throw c.algorithm=n.algorithm,c}var u=jt.pbe.opensslDeriveBytes(t,o.substr(0,8),r),d=i(u);d.start(o),d.update(lt.toDer(Sn.privateKeyToAsn1(e))),d.finish();var p={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:s,parameters:jt.util.bytesToHex(o).toUpperCase()},body:d.output.getBytes()};return jt.pem.encode(p)};Sn.decryptRsaPrivateKey=function(e,t){var n=null,a=jt.pem.decode(e)[0];if(a.type!=="ENCRYPTED PRIVATE KEY"&&a.type!=="PRIVATE KEY"&&a.type!=="RSA PRIVATE KEY"){var s=new Error('Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".');throw s.headerType=s,s}if(a.procType&&a.procType.type==="ENCRYPTED"){var o,r;switch(a.dekInfo.algorithm){case"DES-CBC":o=8,r=jt.des.createDecryptionCipher;break;case"DES-EDE3-CBC":o=24,r=jt.des.createDecryptionCipher;break;case"AES-128-CBC":o=16,r=jt.aes.createDecryptionCipher;break;case"AES-192-CBC":o=24,r=jt.aes.createDecryptionCipher;break;case"AES-256-CBC":o=32,r=jt.aes.createDecryptionCipher;break;case"RC2-40-CBC":o=5,r=function(p){return jt.rc2.createDecryptionCipher(p,40)};break;case"RC2-64-CBC":o=8,r=function(p){return jt.rc2.createDecryptionCipher(p,64)};break;case"RC2-128-CBC":o=16,r=function(p){return jt.rc2.createDecryptionCipher(p,128)};break;default:var s=new Error('Could not decrypt private key; unsupported encryption algorithm "'+a.dekInfo.algorithm+'".');throw s.algorithm=a.dekInfo.algorithm,s}var i=jt.util.hexToBytes(a.dekInfo.parameters),c=jt.pbe.opensslDeriveBytes(t,i.substr(0,8),o),u=r(c);if(u.start(i),u.update(jt.util.createBuffer(a.body)),u.finish())n=u.output.getBytes();else return n}else n=a.body;return a.type==="ENCRYPTED PRIVATE KEY"?n=Sn.decryptPrivateKeyInfo(lt.fromDer(n),t):n=lt.fromDer(n),n!==null&&(n=Sn.privateKeyFromAsn1(n)),n};Sn.pbe.generatePkcs12Key=function(e,t,n,a,s,o){var r,i;if(typeof o>"u"||o===null){if(!("sha1"in jt.md))throw new Error('"sha1" hash algorithm unavailable.');o=jt.md.sha1.create()}var c=o.digestLength,u=o.blockLength,d=new jt.util.ByteBuffer,p=new jt.util.ByteBuffer;if(e!=null){for(i=0;i=0;i--)M=M>>8,M+=A.at(i)+B.at(i),B.setAt(i,M&255);P.putBuffer(B)}k=P,d.putBuffer(E)}return d.truncate(d.length()-s),d};Sn.pbe.getCipher=function(e,t,n){switch(e){case Sn.oids.pkcs5PBES2:return Sn.pbe.getCipherForPBES2(e,t,n);case Sn.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case Sn.oids["pbewithSHAAnd40BitRC2-CBC"]:return Sn.pbe.getCipherForPKCS12PBE(e,t,n);default:var a=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw a.oid=e,a.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],a}};Sn.pbe.getCipherForPBES2=function(e,t,n){var a={},s=[];if(!lt.validate(t,Dpe,a,s)){var o=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw o.errors=s,o}if(e=lt.derToOid(a.kdfOid),e!==Sn.oids.pkcs5PBKDF2){var o=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.");throw o.oid=e,o.supportedOids=["pkcs5PBKDF2"],o}if(e=lt.derToOid(a.encOid),e!==Sn.oids["aes128-CBC"]&&e!==Sn.oids["aes192-CBC"]&&e!==Sn.oids["aes256-CBC"]&&e!==Sn.oids["des-EDE3-CBC"]&&e!==Sn.oids.desCBC){var o=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.");throw o.oid=e,o.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],o}var r=a.kdfSalt,i=jt.util.createBuffer(a.kdfIterationCount);i=i.getInt(i.length()<<3);var c,u;switch(Sn.oids[e]){case"aes128-CBC":c=16,u=jt.aes.createDecryptionCipher;break;case"aes192-CBC":c=24,u=jt.aes.createDecryptionCipher;break;case"aes256-CBC":c=32,u=jt.aes.createDecryptionCipher;break;case"des-EDE3-CBC":c=24,u=jt.des.createDecryptionCipher;break;case"desCBC":c=8,u=jt.des.createDecryptionCipher;break}var d=$6(a.prfOid),p=jt.pkcs5.pbkdf2(n,r,i,c,d),v=a.encIv,h=u(p);return h.start(v),h};Sn.pbe.getCipherForPKCS12PBE=function(e,t,n){var a={},s=[];if(!lt.validate(t,Vpe,a,s)){var o=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw o.errors=s,o}var r=jt.util.createBuffer(a.salt),i=jt.util.createBuffer(a.iterations);i=i.getInt(i.length()<<3);var c,u,d;switch(e){case Sn.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:c=24,u=8,d=jt.des.startDecrypting;break;case Sn.oids["pbewithSHAAnd40BitRC2-CBC"]:c=5,u=8,d=function(g,y){var b=jt.rc2.createDecryptionCipher(g,40);return b.start(y,null),b};break;default:var o=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.");throw o.oid=e,o}var p=$6(a.prfOid),v=Sn.pbe.generatePkcs12Key(n,r,1,i,c,p);p.start();var h=Sn.pbe.generatePkcs12Key(n,r,2,i,u,p);return d(v,h)};Sn.pbe.opensslDeriveBytes=function(e,t,n,a){if(typeof a>"u"||a===null){if(!("md5"in jt.md))throw new Error('"md5" hash algorithm unavailable.');a=jt.md.md5.create()}t===null&&(t="");for(var s=[qE(a,e+t)],o=16,r=1;o>8*v-p&255;return $=String.fromCharCode($.charCodeAt(0)&~E)+$.substr(1),$+y+"¼"},i.verify=function(c,u,d){var p,v=d-1,h=Math.ceil(v/8);if(u=u.substr(-h),h>8*h-v&255;if(g.charCodeAt(0)&b)throw new Error("Bits beyond keysize not zero as expected.");var C=n.generate(y,m),k="";for(p=0;p2)throw new Error("Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate.");if(c.length<2)throw new Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime.");if(r.validity.notBefore=c[0],r.validity.notAfter=c[1],r.tbsCertificate=n.tbsCertificate,t){r.md=k0({signatureOid:r.signatureOid,type:"certificate"});var u=de.toDer(r.tbsCertificate);r.md.update(u.getBytes())}var d=sn.md.sha1.create(),p=de.toDer(n.certIssuer);d.update(p.getBytes()),r.issuer.getField=function(m){return zi(r.issuer,m)},r.issuer.addField=function(m){Wo([m]),r.issuer.attributes.push(m)},r.issuer.attributes=$t.RDNAttributesAsArray(n.certIssuer),n.certIssuerUniqueId&&(r.issuer.uniqueId=n.certIssuerUniqueId),r.issuer.hash=d.digest().toHex();var v=sn.md.sha1.create(),h=de.toDer(n.certSubject);return v.update(h.getBytes()),r.subject.getField=function(m){return zi(r.subject,m)},r.subject.addField=function(m){Wo([m]),r.subject.attributes.push(m)},r.subject.attributes=$t.RDNAttributesAsArray(n.certSubject),n.certSubjectUniqueId&&(r.subject.uniqueId=n.certSubjectUniqueId),r.subject.hash=v.digest().toHex(),n.certExtensions?r.extensions=$t.certificateExtensionsFromAsn1(n.certExtensions):r.extensions=[],r.publicKey=$t.publicKeyFromAsn1(n.subjectPublicKeyInfo),r};$t.certificateExtensionsFromAsn1=function(e){for(var t=[],n=0;n1&&(a=n.value.charCodeAt(1),s=n.value.length>2?n.value.charCodeAt(2):0),t.digitalSignature=(a&128)===128,t.nonRepudiation=(a&64)===64,t.keyEncipherment=(a&32)===32,t.dataEncipherment=(a&16)===16,t.keyAgreement=(a&8)===8,t.keyCertSign=(a&4)===4,t.cRLSign=(a&2)===2,t.encipherOnly=(a&1)===1,t.decipherOnly=(s&128)===128}else if(t.name==="basicConstraints"){var n=de.fromDer(t.value);n.value.length>0&&n.value[0].type===de.Type.BOOLEAN?t.cA=n.value[0].value.charCodeAt(0)!==0:t.cA=!1;var o=null;n.value.length>0&&n.value[0].type===de.Type.INTEGER?o=n.value[0].value:n.value.length>1&&(o=n.value[1].value),o!==null&&(t.pathLenConstraint=de.derToInteger(o))}else if(t.name==="extKeyUsage")for(var n=de.fromDer(t.value),r=0;r1&&(a=n.value.charCodeAt(1)),t.client=(a&128)===128,t.server=(a&64)===64,t.email=(a&32)===32,t.objsign=(a&16)===16,t.reserved=(a&8)===8,t.sslCA=(a&4)===4,t.emailCA=(a&2)===2,t.objCA=(a&1)===1}else if(t.name==="subjectAltName"||t.name==="issuerAltName"){t.altNames=[];for(var c,n=de.fromDer(t.value),u=0;u"u"&&(t.type&&t.type in $t.oids?t.name=$t.oids[t.type]:t.shortName&&t.shortName in Na&&(t.name=$t.oids[Na[t.shortName]])),typeof t.type>"u")if(t.name&&t.name in $t.oids)t.type=$t.oids[t.name];else{var a=new Error("Attribute type not specified.");throw a.attribute=t,a}if(typeof t.shortName>"u"&&t.name&&t.name in Na&&(t.shortName=Na[t.name]),t.type===Kn.extensionRequest&&(t.valueConstructed=!0,t.valueTagClass=de.Type.SEQUENCE,!t.value&&t.extensions)){t.value=[];for(var s=0;s"u"){var a=new Error("Attribute value not specified.");throw a.attribute=t,a}}}function R6(e,t){if(t=t||{},typeof e.name>"u"&&e.id&&e.id in $t.oids&&(e.name=$t.oids[e.id]),typeof e.id>"u")if(e.name&&e.name in $t.oids)e.id=$t.oids[e.name];else{var n=new Error("Extension ID not specified.");throw n.extension=e,n}if(typeof e.value<"u")return e;if(e.name==="keyUsage"){var a=0,s=0,o=0;e.digitalSignature&&(s|=128,a=7),e.nonRepudiation&&(s|=64,a=6),e.keyEncipherment&&(s|=32,a=5),e.dataEncipherment&&(s|=16,a=4),e.keyAgreement&&(s|=8,a=3),e.keyCertSign&&(s|=4,a=2),e.cRLSign&&(s|=2,a=1),e.encipherOnly&&(s|=1,a=0),e.decipherOnly&&(o|=128,a=7);var r=String.fromCharCode(a);o!==0?r+=String.fromCharCode(s)+String.fromCharCode(o):s!==0&&(r+=String.fromCharCode(s)),e.value=de.create(de.Class.UNIVERSAL,de.Type.BITSTRING,!1,r)}else if(e.name==="basicConstraints")e.value=de.create(de.Class.UNIVERSAL,de.Type.SEQUENCE,!0,[]),e.cA&&e.value.value.push(de.create(de.Class.UNIVERSAL,de.Type.BOOLEAN,!1,"ÿ")),"pathLenConstraint"in e&&e.value.value.push(de.create(de.Class.UNIVERSAL,de.Type.INTEGER,!1,de.integerToDer(e.pathLenConstraint).getBytes()));else if(e.name==="extKeyUsage"){e.value=de.create(de.Class.UNIVERSAL,de.Type.SEQUENCE,!0,[]);var i=e.value.value;for(var c in e)e[c]===!0&&(c in Kn?i.push(de.create(de.Class.UNIVERSAL,de.Type.OID,!1,de.oidToDer(Kn[c]).getBytes())):c.indexOf(".")!==-1&&i.push(de.create(de.Class.UNIVERSAL,de.Type.OID,!1,de.oidToDer(c).getBytes())))}else if(e.name==="nsCertType"){var a=0,s=0;e.client&&(s|=128,a=7),e.server&&(s|=64,a=6),e.email&&(s|=32,a=5),e.objsign&&(s|=16,a=4),e.reserved&&(s|=8,a=3),e.sslCA&&(s|=4,a=2),e.emailCA&&(s|=2,a=1),e.objCA&&(s|=1,a=0);var r=String.fromCharCode(a);s!==0&&(r+=String.fromCharCode(s)),e.value=de.create(de.Class.UNIVERSAL,de.Type.BITSTRING,!1,r)}else if(e.name==="subjectAltName"||e.name==="issuerAltName"){e.value=de.create(de.Class.UNIVERSAL,de.Type.SEQUENCE,!0,[]);for(var u,d=0;d128)throw new Error('Invalid "nsComment" content.');e.value=de.create(de.Class.UNIVERSAL,de.Type.IA5STRING,!1,e.comment)}else if(e.name==="subjectKeyIdentifier"&&t.cert){var p=t.cert.generateSubjectKeyIdentifier();e.subjectKeyIdentifier=p.toHex(),e.value=de.create(de.Class.UNIVERSAL,de.Type.OCTETSTRING,!1,p.getBytes())}else if(e.name==="authorityKeyIdentifier"&&t.cert){e.value=de.create(de.Class.UNIVERSAL,de.Type.SEQUENCE,!0,[]);var i=e.value.value;if(e.keyIdentifier){var v=e.keyIdentifier===!0?t.cert.generateSubjectKeyIdentifier().getBytes():e.keyIdentifier;i.push(de.create(de.Class.CONTEXT_SPECIFIC,0,!1,v))}if(e.authorityCertIssuer){var h=[de.create(de.Class.CONTEXT_SPECIFIC,4,!0,[id(e.authorityCertIssuer===!0?t.cert.issuer:e.authorityCertIssuer)])];i.push(de.create(de.Class.CONTEXT_SPECIFIC,1,!0,h))}if(e.serialNumber){var m=sn.util.hexToBytes(e.serialNumber===!0?t.cert.serialNumber:e.serialNumber);i.push(de.create(de.Class.CONTEXT_SPECIFIC,2,!1,m))}}else if(e.name==="cRLDistributionPoints"){e.value=de.create(de.Class.UNIVERSAL,de.Type.SEQUENCE,!0,[]);for(var i=e.value.value,g=de.create(de.Class.UNIVERSAL,de.Type.SEQUENCE,!0,[]),y=de.create(de.Class.CONTEXT_SPECIFIC,0,!0,[]),u,d=0;d"u"){var n=new Error("Extension value not specified.");throw n.extension=e,n}return e}function I2(e,t){switch(e){case Kn["RSASSA-PSS"]:var n=[];return t.hash.algorithmOid!==void 0&&n.push(de.create(de.Class.CONTEXT_SPECIFIC,0,!0,[de.create(de.Class.UNIVERSAL,de.Type.SEQUENCE,!0,[de.create(de.Class.UNIVERSAL,de.Type.OID,!1,de.oidToDer(t.hash.algorithmOid).getBytes()),de.create(de.Class.UNIVERSAL,de.Type.NULL,!1,"")])])),t.mgf.algorithmOid!==void 0&&n.push(de.create(de.Class.CONTEXT_SPECIFIC,1,!0,[de.create(de.Class.UNIVERSAL,de.Type.SEQUENCE,!0,[de.create(de.Class.UNIVERSAL,de.Type.OID,!1,de.oidToDer(t.mgf.algorithmOid).getBytes()),de.create(de.Class.UNIVERSAL,de.Type.SEQUENCE,!0,[de.create(de.Class.UNIVERSAL,de.Type.OID,!1,de.oidToDer(t.mgf.hash.algorithmOid).getBytes()),de.create(de.Class.UNIVERSAL,de.Type.NULL,!1,"")])])])),t.saltLength!==void 0&&n.push(de.create(de.Class.CONTEXT_SPECIFIC,2,!0,[de.create(de.Class.UNIVERSAL,de.Type.INTEGER,!1,de.integerToDer(t.saltLength).getBytes())])),de.create(de.Class.UNIVERSAL,de.Type.SEQUENCE,!0,n);default:return de.create(de.Class.UNIVERSAL,de.Type.NULL,!1,"")}}function Gpe(e){var t=de.create(de.Class.CONTEXT_SPECIFIC,0,!0,[]);if(e.attributes.length===0)return t;for(var n=e.attributes,a=0;a=Ype&&e0&&a.value.push($t.certificateExtensionsToAsn1(e.extensions)),a};$t.getCertificationRequestInfo=function(e){var t=de.create(de.Class.UNIVERSAL,de.Type.SEQUENCE,!0,[de.create(de.Class.UNIVERSAL,de.Type.INTEGER,!1,de.integerToDer(e.version).getBytes()),id(e.subject),$t.publicKeyToAsn1(e.publicKey),Gpe(e)]);return t};$t.distinguishedNameToAsn1=function(e){return id(e)};$t.certificateToAsn1=function(e){var t=e.tbsCertificate||$t.getTBSCertificate(e);return de.create(de.Class.UNIVERSAL,de.Type.SEQUENCE,!0,[t,de.create(de.Class.UNIVERSAL,de.Type.SEQUENCE,!0,[de.create(de.Class.UNIVERSAL,de.Type.OID,!1,de.oidToDer(e.signatureOid).getBytes()),I2(e.signatureOid,e.signatureParameters)]),de.create(de.Class.UNIVERSAL,de.Type.BITSTRING,!1,"\0"+e.signature)])};$t.certificateExtensionsToAsn1=function(e){var t=de.create(de.Class.CONTEXT_SPECIFIC,3,!0,[]),n=de.create(de.Class.UNIVERSAL,de.Type.SEQUENCE,!0,[]);t.value.push(n);for(var a=0;a"u"&&(s=new Date);var o=!0,r=null,i=0;do{var c=t.shift(),u=null,d=!1;if(s&&(sc.validity.notAfter)&&(r={message:"Certificate is not valid yet or has expired.",error:$t.certificateError.certificate_expired,notBefore:c.validity.notBefore,notAfter:c.validity.notAfter,now:s}),r===null){if(u=t[0]||e.getIssuer(c),u===null&&c.isIssuer(c)&&(d=!0,u=c),u){var p=u;sn.util.isArray(p)||(p=[p]);for(var v=!1;!v&&p.length>0;){u=p.shift();try{v=u.verify(c)}catch{}}v||(r={message:"Certificate signature is invalid.",error:$t.certificateError.bad_certificate})}r===null&&(!u||d)&&!e.hasCertificate(c)&&(r={message:"Certificate is not trusted.",error:$t.certificateError.unknown_ca})}if(r===null&&u&&!c.isIssuer(u)&&(r={message:"Certificate issuer is invalid.",error:$t.certificateError.bad_certificate}),r===null)for(var h={keyUsage:!0,basicConstraints:!0},m=0;r===null&&my.pathLenConstraint&&(r={message:"Certificate basicConstraints pathLenConstraint violated.",error:$t.certificateError.bad_certificate})}}var k=r===null?!0:r.error,S=n.verify?n.verify(k,i,a):k;if(S===!0)r=null;else throw k===!0&&(r={message:"The application rejected the certificate.",error:$t.certificateError.bad_certificate}),(S||S===0)&&(typeof S=="object"&&!sn.util.isArray(S)?(S.message&&(r.message=S.message),S.error&&(r.error=S.error)):typeof S=="string"&&(r.error=S)),r;o=!1,++i}while(t.length>0);return!0};var ia=Nn,Ie=ia.asn1,Pn=ia.pki,bp=ia.pkcs12=ia.pkcs12||{},P6={name:"ContentInfo",tagClass:Ie.Class.UNIVERSAL,type:Ie.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:Ie.Class.UNIVERSAL,type:Ie.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:Ie.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},Qpe={name:"PFX",tagClass:Ie.Class.UNIVERSAL,type:Ie.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:Ie.Class.UNIVERSAL,type:Ie.Type.INTEGER,constructed:!1,capture:"version"},P6,{name:"PFX.macData",tagClass:Ie.Class.UNIVERSAL,type:Ie.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:Ie.Class.UNIVERSAL,type:Ie.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:Ie.Class.UNIVERSAL,type:Ie.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:Ie.Class.UNIVERSAL,type:Ie.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",optional:!0,tagClass:Ie.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:Ie.Class.UNIVERSAL,type:Ie.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:Ie.Class.UNIVERSAL,type:Ie.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:Ie.Class.UNIVERSAL,type:Ie.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},Jpe={name:"SafeBag",tagClass:Ie.Class.UNIVERSAL,type:Ie.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:Ie.Class.UNIVERSAL,type:Ie.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:Ie.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:Ie.Class.UNIVERSAL,type:Ie.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},Zpe={name:"Attribute",tagClass:Ie.Class.UNIVERSAL,type:Ie.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:Ie.Class.UNIVERSAL,type:Ie.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:Ie.Class.UNIVERSAL,type:Ie.Type.SET,constructed:!0,capture:"values"}]},eve={name:"CertBag",tagClass:Ie.Class.UNIVERSAL,type:Ie.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:Ie.Class.UNIVERSAL,type:Ie.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:Ie.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:Ie.Class.UNIVERSAL,type:Ie.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function Zd(e,t,n,a){for(var s=[],o=0;o=0&&s.push(i)}}return s}bp.pkcs12FromAsn1=function(e,t,n){typeof t=="string"?(n=t,t=!0):t===void 0&&(t=!0);var a={},s=[];if(!Ie.validate(e,Qpe,a,s)){var o=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.");throw o.errors=o,o}var r={version:a.version.charCodeAt(0),safeContents:[],getBags:function(y){var b={},C;return"localKeyId"in y?C=y.localKeyId:"localKeyIdHex"in y&&(C=ia.util.hexToBytes(y.localKeyIdHex)),C===void 0&&!("friendlyName"in y)&&"bagType"in y&&(b[y.bagType]=Zd(r.safeContents,null,null,y.bagType)),C!==void 0&&(b.localKeyId=Zd(r.safeContents,"localKeyId",C,y.bagType)),"friendlyName"in y&&(b.friendlyName=Zd(r.safeContents,"friendlyName",y.friendlyName,y.bagType)),b},getBagsByFriendlyName:function(y,b){return Zd(r.safeContents,"friendlyName",y,b)},getBagsByLocalKeyId:function(y,b){return Zd(r.safeContents,"localKeyId",y,b)}};if(a.version.charCodeAt(0)!==3){var o=new Error("PKCS#12 PFX of version other than 3 not supported.");throw o.version=a.version.charCodeAt(0),o}if(Ie.derToOid(a.contentType)!==Pn.oids.data){var o=new Error("Only PKCS#12 PFX in password integrity mode supported.");throw o.oid=Ie.derToOid(a.contentType),o}var i=a.content.value[0];if(i.tagClass!==Ie.Class.UNIVERSAL||i.type!==Ie.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(i=A2(i),a.mac){var c=null,u=0,d=Ie.derToOid(a.macAlgorithm);switch(d){case Pn.oids.sha1:c=ia.md.sha1.create(),u=20;break;case Pn.oids.sha256:c=ia.md.sha256.create(),u=32;break;case Pn.oids.sha384:c=ia.md.sha384.create(),u=48;break;case Pn.oids.sha512:c=ia.md.sha512.create(),u=64;break;case Pn.oids.md5:c=ia.md.md5.create(),u=16;break}if(c===null)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+d);var p=new ia.util.ByteBuffer(a.macSalt),v="macIterations"in a?parseInt(ia.util.bytesToHex(a.macIterations),16):1,h=bp.generateKey(n,p,3,v,u,c),m=ia.hmac.create();m.start(c,h),m.update(i.value);var g=m.getMac();if(g.getBytes()!==a.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}else if(Array.isArray(e.value)&&e.value.length>2)throw new Error("Invalid PKCS#12. macData field present but MAC was not validated.");return tve(r,i.value,t,n),r};function A2(e){if(e.composed||e.constructed){for(var t=ia.util.createBuffer(),n=0;n0&&(o=Ie.create(Ie.Class.UNIVERSAL,Ie.Type.SET,!0,c));var u=[],d=[];t!==null&&(ia.util.isArray(t)?d=t:d=[t]);for(var p=[],v=0;v0){var y=Ie.create(Ie.Class.UNIVERSAL,Ie.Type.SEQUENCE,!0,p),b=Ie.create(Ie.Class.UNIVERSAL,Ie.Type.SEQUENCE,!0,[Ie.create(Ie.Class.UNIVERSAL,Ie.Type.OID,!1,Ie.oidToDer(Pn.oids.data).getBytes()),Ie.create(Ie.Class.CONTEXT_SPECIFIC,0,!0,[Ie.create(Ie.Class.UNIVERSAL,Ie.Type.OCTETSTRING,!1,Ie.toDer(y).getBytes())])]);u.push(b)}var C=null;if(e!==null){var k=Pn.wrapRsaPrivateKey(Pn.privateKeyToAsn1(e));n===null?C=Ie.create(Ie.Class.UNIVERSAL,Ie.Type.SEQUENCE,!0,[Ie.create(Ie.Class.UNIVERSAL,Ie.Type.OID,!1,Ie.oidToDer(Pn.oids.keyBag).getBytes()),Ie.create(Ie.Class.CONTEXT_SPECIFIC,0,!0,[k]),o]):C=Ie.create(Ie.Class.UNIVERSAL,Ie.Type.SEQUENCE,!0,[Ie.create(Ie.Class.UNIVERSAL,Ie.Type.OID,!1,Ie.oidToDer(Pn.oids.pkcs8ShroudedKeyBag).getBytes()),Ie.create(Ie.Class.CONTEXT_SPECIFIC,0,!0,[Pn.encryptPrivateKeyInfo(k,n,a)]),o]);var S=Ie.create(Ie.Class.UNIVERSAL,Ie.Type.SEQUENCE,!0,[C]),$=Ie.create(Ie.Class.UNIVERSAL,Ie.Type.SEQUENCE,!0,[Ie.create(Ie.Class.UNIVERSAL,Ie.Type.OID,!1,Ie.oidToDer(Pn.oids.data).getBytes()),Ie.create(Ie.Class.CONTEXT_SPECIFIC,0,!0,[Ie.create(Ie.Class.UNIVERSAL,Ie.Type.OCTETSTRING,!1,Ie.toDer(S).getBytes())])]);u.push($)}var E=Ie.create(Ie.Class.UNIVERSAL,Ie.Type.SEQUENCE,!0,u),R;if(a.useMac){var i=ia.md.sha1.create(),A=new ia.util.ByteBuffer(ia.random.getBytes(a.saltSize)),N=a.count,e=bp.generateKey(n,A,3,N,20),P=ia.hmac.create();P.start(i,e),P.update(Ie.toDer(E).getBytes());var B=P.getMac();R=Ie.create(Ie.Class.UNIVERSAL,Ie.Type.SEQUENCE,!0,[Ie.create(Ie.Class.UNIVERSAL,Ie.Type.SEQUENCE,!0,[Ie.create(Ie.Class.UNIVERSAL,Ie.Type.SEQUENCE,!0,[Ie.create(Ie.Class.UNIVERSAL,Ie.Type.OID,!1,Ie.oidToDer(Pn.oids.sha1).getBytes()),Ie.create(Ie.Class.UNIVERSAL,Ie.Type.NULL,!1,"")]),Ie.create(Ie.Class.UNIVERSAL,Ie.Type.OCTETSTRING,!1,B.getBytes())]),Ie.create(Ie.Class.UNIVERSAL,Ie.Type.OCTETSTRING,!1,A.getBytes()),Ie.create(Ie.Class.UNIVERSAL,Ie.Type.INTEGER,!1,Ie.integerToDer(N).getBytes())])}return Ie.create(Ie.Class.UNIVERSAL,Ie.Type.SEQUENCE,!0,[Ie.create(Ie.Class.UNIVERSAL,Ie.Type.INTEGER,!1,Ie.integerToDer(3).getBytes()),Ie.create(Ie.Class.UNIVERSAL,Ie.Type.SEQUENCE,!0,[Ie.create(Ie.Class.UNIVERSAL,Ie.Type.OID,!1,Ie.oidToDer(Pn.oids.data).getBytes()),Ie.create(Ie.Class.CONTEXT_SPECIFIC,0,!0,[Ie.create(Ie.Class.UNIVERSAL,Ie.Type.OCTETSTRING,!1,Ie.toDer(E).getBytes())])]),R])};bp.generateKey=ia.pbe.generatePkcs12Key;var Hi=Nn,N2=Hi.asn1,cd=Hi.pki=Hi.pki||{};cd.pemToDer=function(e){var t=Hi.pem.decode(e)[0];if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert PEM to DER; PEM is encrypted.");return Hi.util.createBuffer(t.body)};cd.privateKeyFromPem=function(e){var t=Hi.pem.decode(e)[0];if(t.type!=="PRIVATE KEY"&&t.type!=="RSA PRIVATE KEY"){var n=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw n.headerType=t.type,n}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert private key from PEM; PEM is encrypted.");var a=N2.fromDer(t.body);return cd.privateKeyFromAsn1(a)};cd.privateKeyToPem=function(e,t){var n={type:"RSA PRIVATE KEY",body:N2.toDer(cd.privateKeyToAsn1(e)).getBytes()};return Hi.pem.encode(n,{maxline:t})};cd.privateKeyInfoToPem=function(e,t){var n={type:"PRIVATE KEY",body:N2.toDer(e).getBytes()};return Hi.pem.encode(n,{maxline:t})};var _t=Nn,S0=function(e,t,n,a){var s=_t.util.createBuffer(),o=e.length>>1,r=o+(e.length&1),i=e.substr(0,r),c=e.substr(o,r),u=_t.util.createBuffer(),d=_t.hmac.create();n=t+n;var p=Math.ceil(a/16),v=Math.ceil(a/20);d.start("MD5",i);var h=_t.util.createBuffer();u.putBytes(n);for(var m=0;m0&&(ve.queue(e,ve.createAlert(e,{level:ve.Alert.Level.warning,description:ve.Alert.Description.no_renegotiation})),ve.flush(e)),e.process()};ve.parseHelloMessage=function(e,t,n){var a=null,s=e.entity===ve.ConnectionEnd.client;if(n<38)e.error(e,{message:s?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.illegal_parameter}});else{var o=t.fragment,r=o.length();if(a={version:{major:o.getByte(),minor:o.getByte()},random:_t.util.createBuffer(o.getBytes(32)),session_id:Eo(o,1),extensions:[]},s?(a.cipher_suite=o.getBytes(2),a.compression_method=o.getByte()):(a.cipher_suites=Eo(o,2),a.compression_methods=Eo(o,1)),r=n-(r-o.length()),r>0){for(var i=Eo(o,2);i.length()>0;)a.extensions.push({type:[i.getByte(),i.getByte()],data:Eo(i,2)});if(!s)for(var c=0;c0;){var p=d.getByte();if(p!==0)break;e.session.extensions.server_name.serverNameList.push(Eo(d,2).getBytes())}}}if(e.session.version&&(a.version.major!==e.session.version.major||a.version.minor!==e.session.version.minor))return e.error(e,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.protocol_version}});if(s)e.session.cipherSuite=ve.getCipherSuite(a.cipher_suite);else for(var v=_t.util.createBuffer(a.cipher_suites.bytes());v.length()>0&&(e.session.cipherSuite=ve.getCipherSuite(v.getBytes(2)),e.session.cipherSuite===null););if(e.session.cipherSuite===null)return e.error(e,{message:"No cipher suites in common.",send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.handshake_failure},cipherSuite:_t.util.bytesToHex(a.cipher_suite)});s?e.session.compressionMethod=a.compression_method:e.session.compressionMethod=ve.CompressionMethod.none}return a};ve.createSecurityParameters=function(e,t){var n=e.entity===ve.ConnectionEnd.client,a=t.random.bytes(),s=n?e.session.sp.client_random:a,o=n?a:ve.createRandom().getBytes();e.session.sp={entity:e.entity,prf_algorithm:ve.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:e.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:s,server_random:o}};ve.handleServerHello=function(e,t,n){var a=ve.parseHelloMessage(e,t,n);if(!e.fail){if(a.version.minor<=e.version.minor)e.version.minor=a.version.minor;else return e.error(e,{message:"Incompatible TLS version.",send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.protocol_version}});e.session.version=e.version;var s=a.session_id.bytes();s.length>0&&s===e.session.id?(e.expect=M6,e.session.resuming=!0,e.session.sp.server_random=a.random.bytes()):(e.expect=cve,e.session.resuming=!1,ve.createSecurityParameters(e,a)),e.session.id=s,e.process()}};ve.handleClientHello=function(e,t,n){var a=ve.parseHelloMessage(e,t,n);if(!e.fail){var s=a.session_id.bytes(),o=null;if(e.sessionCache&&(o=e.sessionCache.getSession(s),o===null?s="":(o.version.major!==a.version.major||o.version.minor>a.version.minor)&&(o=null,s="")),s.length===0&&(s=_t.random.getBytes(32)),e.session.id=s,e.session.clientHelloVersion=a.version,e.session.sp={},o)e.version=e.session.version=o.version,e.session.sp=o.sp;else{for(var r,i=1;i0;)o=Eo(s.certificate_list,3),r=_t.asn1.fromDer(o),o=_t.pki.certificateFromAsn1(r,!0),i.push(o)}catch(u){return e.error(e,{message:"Could not parse certificate list.",cause:u,send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.bad_certificate}})}var c=e.entity===ve.ConnectionEnd.client;(c||e.verifyClient===!0)&&i.length===0?e.error(e,{message:c?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.illegal_parameter}}):i.length===0?e.expect=c?WE:R1:(c?e.session.serverCertificate=i[0]:e.session.clientCertificate=i[0],ve.verifyCertificateChain(e,i)&&(e.expect=c?WE:R1)),e.process()};ve.handleServerKeyExchange=function(e,t,n){if(n>0)return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.unsupported_certificate}});e.expect=uve,e.process()};ve.handleClientKeyExchange=function(e,t,n){if(n<48)return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.unsupported_certificate}});var a=t.fragment,s={enc_pre_master_secret:Eo(a,2).getBytes()},o=null;if(e.getPrivateKey)try{o=e.getPrivateKey(e,e.session.serverCertificate),o=_t.pki.privateKeyFromPem(o)}catch(c){e.error(e,{message:"Could not get private key.",cause:c,send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.internal_error}})}if(o===null)return e.error(e,{message:"No private key set.",send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.internal_error}});try{var r=e.session.sp;r.pre_master_secret=o.decrypt(s.enc_pre_master_secret);var i=e.session.clientHelloVersion;if(i.major!==r.pre_master_secret.charCodeAt(0)||i.minor!==r.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch{r.pre_master_secret=_t.random.getBytes(48)}e.expect=R2,e.session.clientCertificate!==null&&(e.expect=gve),e.process()};ve.handleCertificateRequest=function(e,t,n){if(n<3)return e.error(e,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.illegal_parameter}});var a=t.fragment,s={certificate_types:Eo(a,1),certificate_authorities:Eo(a,2)};e.session.certificateRequest=s,e.expect=dve,e.process()};ve.handleCertificateVerify=function(e,t,n){if(n<2)return e.error(e,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.illegal_parameter}});var a=t.fragment;a.read-=4;var s=a.bytes();a.read+=4;var o={signature:Eo(a,2).getBytes()},r=_t.util.createBuffer();r.putBuffer(e.session.md5.digest()),r.putBuffer(e.session.sha1.digest()),r=r.getBytes();try{var i=e.session.clientCertificate;if(!i.publicKey.verify(r,o.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");e.session.md5.update(s),e.session.sha1.update(s)}catch{return e.error(e,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.handshake_failure}})}e.expect=R2,e.process()};ve.handleServerHelloDone=function(e,t,n){if(n>0)return e.error(e,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.record_overflow}});if(e.serverCertificate===null){var a={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.insufficient_security}},s=0,o=e.verify(e,a.alert.description,s,[]);if(o!==!0)return(o||o===0)&&(typeof o=="object"&&!_t.util.isArray(o)?(o.message&&(a.message=o.message),o.alert&&(a.alert.description=o.alert)):typeof o=="number"&&(a.alert.description=o)),e.error(e,a)}e.session.certificateRequest!==null&&(t=ve.createRecord(e,{type:ve.ContentType.handshake,data:ve.createCertificate(e)}),ve.queue(e,t)),t=ve.createRecord(e,{type:ve.ContentType.handshake,data:ve.createClientKeyExchange(e)}),ve.queue(e,t),e.expect=vve;var r=function(i,c){i.session.certificateRequest!==null&&i.session.clientCertificate!==null&&ve.queue(i,ve.createRecord(i,{type:ve.ContentType.handshake,data:ve.createCertificateVerify(i,c)})),ve.queue(i,ve.createRecord(i,{type:ve.ContentType.change_cipher_spec,data:ve.createChangeCipherSpec()})),i.state.pending=ve.createConnectionState(i),i.state.current.write=i.state.pending.write,ve.queue(i,ve.createRecord(i,{type:ve.ContentType.handshake,data:ve.createFinished(i)})),i.expect=M6,ve.flush(i),i.process()};if(e.session.certificateRequest===null||e.session.clientCertificate===null)return r(e,null);ve.getClientSignature(e,r)};ve.handleChangeCipherSpec=function(e,t){if(t.fragment.getByte()!==1)return e.error(e,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.illegal_parameter}});var n=e.entity===ve.ConnectionEnd.client;(e.session.resuming&&n||!e.session.resuming&&!n)&&(e.state.pending=ve.createConnectionState(e)),e.state.current.read=e.state.pending.read,(!e.session.resuming&&n||e.session.resuming&&!n)&&(e.state.pending=null),e.expect=n?fve:_ve,e.process()};ve.handleFinished=function(e,t,n){var a=t.fragment;a.read-=4;var s=a.bytes();a.read+=4;var o=t.fragment.getBytes();a=_t.util.createBuffer(),a.putBuffer(e.session.md5.digest()),a.putBuffer(e.session.sha1.digest());var r=e.entity===ve.ConnectionEnd.client,i=r?"server finished":"client finished",c=e.session.sp,u=12,d=S0;if(a=d(c.master_secret,i,a.getBytes(),u),a.getBytes()!==o)return e.error(e,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.decrypt_error}});e.session.md5.update(s),e.session.sha1.update(s),(e.session.resuming&&r||!e.session.resuming&&!r)&&(ve.queue(e,ve.createRecord(e,{type:ve.ContentType.change_cipher_spec,data:ve.createChangeCipherSpec()})),e.state.current.write=e.state.pending.write,e.state.pending=null,ve.queue(e,ve.createRecord(e,{type:ve.ContentType.handshake,data:ve.createFinished(e)}))),e.expect=r?pve:yve,e.handshaking=!1,++e.handshakes,e.peerCertificate=r?e.session.serverCertificate:e.session.clientCertificate,ve.flush(e),e.isConnected=!0,e.connected(e),e.process()};ve.handleAlert=function(e,t){var n=t.fragment,a={level:n.getByte(),description:n.getByte()},s;switch(a.description){case ve.Alert.Description.close_notify:s="Connection closed.";break;case ve.Alert.Description.unexpected_message:s="Unexpected message.";break;case ve.Alert.Description.bad_record_mac:s="Bad record MAC.";break;case ve.Alert.Description.decryption_failed:s="Decryption failed.";break;case ve.Alert.Description.record_overflow:s="Record overflow.";break;case ve.Alert.Description.decompression_failure:s="Decompression failed.";break;case ve.Alert.Description.handshake_failure:s="Handshake failure.";break;case ve.Alert.Description.bad_certificate:s="Bad certificate.";break;case ve.Alert.Description.unsupported_certificate:s="Unsupported certificate.";break;case ve.Alert.Description.certificate_revoked:s="Certificate revoked.";break;case ve.Alert.Description.certificate_expired:s="Certificate expired.";break;case ve.Alert.Description.certificate_unknown:s="Certificate unknown.";break;case ve.Alert.Description.illegal_parameter:s="Illegal parameter.";break;case ve.Alert.Description.unknown_ca:s="Unknown certificate authority.";break;case ve.Alert.Description.access_denied:s="Access denied.";break;case ve.Alert.Description.decode_error:s="Decode error.";break;case ve.Alert.Description.decrypt_error:s="Decrypt error.";break;case ve.Alert.Description.export_restriction:s="Export restriction.";break;case ve.Alert.Description.protocol_version:s="Unsupported protocol version.";break;case ve.Alert.Description.insufficient_security:s="Insufficient security.";break;case ve.Alert.Description.internal_error:s="Internal error.";break;case ve.Alert.Description.user_canceled:s="User canceled.";break;case ve.Alert.Description.no_renegotiation:s="Renegotiation not supported.";break;default:s="Unknown error.";break}if(a.description===ve.Alert.Description.close_notify)return e.close();e.error(e,{message:s,send:!1,origin:e.entity===ve.ConnectionEnd.client?"server":"client",alert:a}),e.process()};ve.handleHandshake=function(e,t){var n=t.fragment,a=n.getByte(),s=n.getInt24();if(s>n.length())return e.fragmented=t,t.fragment=_t.util.createBuffer(),n.read-=4,e.process();e.fragmented=null,n.read-=4;var o=n.bytes(s+4);n.read+=4,a in um[e.entity][e.expect]?(e.entity===ve.ConnectionEnd.server&&!e.open&&!e.fail&&(e.handshaking=!0,e.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:_t.md.md5.create(),sha1:_t.md.sha1.create()}),a!==ve.HandshakeType.hello_request&&a!==ve.HandshakeType.certificate_verify&&a!==ve.HandshakeType.finished&&(e.session.md5.update(o),e.session.sha1.update(o)),um[e.entity][e.expect][a](e,t,s)):ve.handleUnexpected(e,t)};ve.handleApplicationData=function(e,t){e.data.putBuffer(t.fragment),e.dataReady(e),e.process()};ve.handleHeartbeat=function(e,t){var n=t.fragment,a=n.getByte(),s=n.getInt16(),o=n.getBytes(s);if(a===ve.HeartbeatMessageType.heartbeat_request){if(e.handshaking||s>o.length)return e.process();ve.queue(e,ve.createRecord(e,{type:ve.ContentType.heartbeat,data:ve.createHeartbeat(ve.HeartbeatMessageType.heartbeat_response,o)})),ve.flush(e)}else if(a===ve.HeartbeatMessageType.heartbeat_response){if(o!==e.expectedHeartbeatPayload)return e.process();e.heartbeatReceived&&e.heartbeatReceived(e,_t.util.createBuffer(o))}e.process()};var ive=0,cve=1,WE=2,uve=3,dve=4,M6=5,fve=6,pve=7,vve=8,hve=0,mve=1,R1=2,gve=3,R2=4,_ve=5,yve=6,fe=ve.handleUnexpected,B6=ve.handleChangeCipherSpec,bs=ve.handleAlert,Zs=ve.handleHandshake,L6=ve.handleApplicationData,ws=ve.handleHeartbeat,P2=[];P2[ve.ConnectionEnd.client]=[[fe,bs,Zs,fe,ws],[fe,bs,Zs,fe,ws],[fe,bs,Zs,fe,ws],[fe,bs,Zs,fe,ws],[fe,bs,Zs,fe,ws],[B6,bs,fe,fe,ws],[fe,bs,Zs,fe,ws],[fe,bs,Zs,L6,ws],[fe,bs,Zs,fe,ws]];P2[ve.ConnectionEnd.server]=[[fe,bs,Zs,fe,ws],[fe,bs,Zs,fe,ws],[fe,bs,Zs,fe,ws],[fe,bs,Zs,fe,ws],[B6,bs,fe,fe,ws],[fe,bs,Zs,fe,ws],[fe,bs,Zs,L6,ws],[fe,bs,Zs,fe,ws]];var si=ve.handleHelloRequest,bve=ve.handleServerHello,O6=ve.handleCertificate,GE=ve.handleServerKeyExchange,Ag=ve.handleCertificateRequest,Lv=ve.handleServerHelloDone,D6=ve.handleFinished,um=[];um[ve.ConnectionEnd.client]=[[fe,fe,bve,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe],[si,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,O6,GE,Ag,Lv,fe,fe,fe,fe,fe,fe],[si,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,GE,Ag,Lv,fe,fe,fe,fe,fe,fe],[si,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,Ag,Lv,fe,fe,fe,fe,fe,fe],[si,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,Lv,fe,fe,fe,fe,fe,fe],[si,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe],[si,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,D6],[si,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe],[si,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe]];var wve=ve.handleClientHello,Cve=ve.handleClientKeyExchange,kve=ve.handleCertificateVerify;um[ve.ConnectionEnd.server]=[[fe,wve,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe],[fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,O6,fe,fe,fe,fe,fe,fe,fe,fe,fe],[fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,Cve,fe,fe,fe,fe],[fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,kve,fe,fe,fe,fe,fe],[fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe],[fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,D6],[fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe],[fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe]];ve.generateKeys=function(e,t){var n=S0,a=t.client_random+t.server_random;e.session.resuming||(t.master_secret=n(t.pre_master_secret,"master secret",a,48).bytes(),t.pre_master_secret=null),a=t.server_random+t.client_random;var s=2*t.mac_key_length+2*t.enc_key_length,o=e.version.major===ve.Versions.TLS_1_0.major&&e.version.minor===ve.Versions.TLS_1_0.minor;o&&(s+=2*t.fixed_iv_length);var r=n(t.master_secret,"key expansion",a,s),i={client_write_MAC_key:r.getBytes(t.mac_key_length),server_write_MAC_key:r.getBytes(t.mac_key_length),client_write_key:r.getBytes(t.enc_key_length),server_write_key:r.getBytes(t.enc_key_length)};return o&&(i.client_write_IV=r.getBytes(t.fixed_iv_length),i.server_write_IV=r.getBytes(t.fixed_iv_length)),i};ve.createConnectionState=function(e){var t=e.entity===ve.ConnectionEnd.client,n=function(){var o={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(r){return!0},compressionState:null,compressFunction:function(r){return!0},updateSequenceNumber:function(){o.sequenceNumber[1]===4294967295?(o.sequenceNumber[1]=0,++o.sequenceNumber[0]):++o.sequenceNumber[1]}};return o},a={read:n(),write:n()};if(a.read.update=function(o,r){return a.read.cipherFunction(r,a.read)?a.read.compressFunction(o,r,a.read)||o.error(o,{message:"Could not decompress record.",send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.decompression_failure}}):o.error(o,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.bad_record_mac}}),!o.fail},a.write.update=function(o,r){return a.write.compressFunction(o,r,a.write)?a.write.cipherFunction(r,a.write)||o.error(o,{message:"Could not encrypt record.",send:!1,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.internal_error}}):o.error(o,{message:"Could not compress record.",send:!1,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.internal_error}}),!o.fail},e.session){var s=e.session.sp;switch(e.session.cipherSuite.initSecurityParameters(s),s.keys=ve.generateKeys(e,s),a.read.macKey=t?s.keys.server_write_MAC_key:s.keys.client_write_MAC_key,a.write.macKey=t?s.keys.client_write_MAC_key:s.keys.server_write_MAC_key,e.session.cipherSuite.initConnectionState(a,e,s),s.compression_algorithm){case ve.CompressionMethod.none:break;case ve.CompressionMethod.deflate:a.read.compressFunction=lve,a.write.compressFunction=rve;break;default:throw new Error("Unsupported compression algorithm.")}}return a};ve.createRandom=function(){var e=new Date,t=+e+e.getTimezoneOffset()*6e4,n=_t.util.createBuffer();return n.putInt32(t),n.putBytes(_t.random.getBytes(28)),n};ve.createRecord=function(e,t){if(!t.data)return null;var n={type:t.type,version:{major:e.version.major,minor:e.version.minor},length:t.data.length(),fragment:t.data};return n};ve.createAlert=function(e,t){var n=_t.util.createBuffer();return n.putByte(t.level),n.putByte(t.description),ve.createRecord(e,{type:ve.ContentType.alert,data:n})};ve.createClientHello=function(e){e.session.clientHelloVersion={major:e.version.major,minor:e.version.minor};for(var t=_t.util.createBuffer(),n=0;n0&&(p+=2);var v=e.session.id,h=v.length+1+2+4+28+2+s+1+r+p,m=_t.util.createBuffer();return m.putByte(ve.HandshakeType.client_hello),m.putInt24(h),m.putByte(e.version.major),m.putByte(e.version.minor),m.putBytes(e.session.sp.client_random),zo(m,1,_t.util.createBuffer(v)),zo(m,2,t),zo(m,1,o),p>0&&zo(m,2,i),m};ve.createServerHello=function(e){var t=e.session.id,n=t.length+1+2+4+28+2+1,a=_t.util.createBuffer();return a.putByte(ve.HandshakeType.server_hello),a.putInt24(n),a.putByte(e.version.major),a.putByte(e.version.minor),a.putBytes(e.session.sp.server_random),zo(a,1,_t.util.createBuffer(t)),a.putByte(e.session.cipherSuite.id[0]),a.putByte(e.session.cipherSuite.id[1]),a.putByte(e.session.compressionMethod),a};ve.createCertificate=function(e){var t=e.entity===ve.ConnectionEnd.client,n=null;if(e.getCertificate){var a;t?a=e.session.certificateRequest:a=e.session.extensions.server_name.serverNameList,n=e.getCertificate(e,a)}var s=_t.util.createBuffer();if(n!==null)try{_t.util.isArray(n)||(n=[n]);for(var o=null,r=0;r"u"&&(n=t.length);var a=_t.util.createBuffer();a.putByte(e),a.putInt16(n),a.putBytes(t);var s=a.length(),o=Math.max(16,s-n-3);return a.putBytes(_t.random.getBytes(o)),a};ve.queue=function(e,t){if(t&&!(t.fragment.length()===0&&(t.type===ve.ContentType.handshake||t.type===ve.ContentType.alert||t.type===ve.ContentType.change_cipher_spec))){if(t.type===ve.ContentType.handshake){var n=t.fragment.bytes();e.session.md5.update(n),e.session.sha1.update(n),n=null}var a;if(t.fragment.length()<=ve.MaxFragment)a=[t];else{a=[];for(var s=t.fragment.bytes();s.length>ve.MaxFragment;)a.push(ve.createRecord(e,{type:t.type,data:_t.util.createBuffer(s.slice(0,ve.MaxFragment))})),s=s.slice(ve.MaxFragment);s.length>0&&a.push(ve.createRecord(e,{type:t.type,data:_t.util.createBuffer(s)}))}for(var o=0;o0&&(r=n.order[0]),r!==null&&r in n.cache){o=n.cache[r],delete n.cache[r];for(var i in n.order)if(n.order[i]===r){n.order.splice(i,1);break}}return o},n.setSession=function(s,o){if(n.order.length===n.capacity){var r=n.order.shift();delete n.cache[r]}var r=_t.util.bytesToHex(s);n.order.push(r),n.cache[r]=o}}return n};ve.createConnection=function(e){var t=null;e.caStore?_t.util.isArray(e.caStore)?t=_t.pki.createCaStore(e.caStore):t=e.caStore:t=_t.pki.createCaStore();var n=e.cipherSuites||null;if(n===null){n=[];for(var a in ve.CipherSuites)n.push(ve.CipherSuites[a])}var s=e.server?ve.ConnectionEnd.server:ve.ConnectionEnd.client,o=e.sessionCache?ve.createSessionCache(e.sessionCache):null,r={version:{major:ve.Version.major,minor:ve.Version.minor},entity:s,sessionId:e.sessionId,caStore:t,sessionCache:o,cipherSuites:n,connected:e.connected,virtualHost:e.virtualHost||null,verifyClient:e.verifyClient||!1,verify:e.verify||function(d,p,v,h){return p},verifyOptions:e.verifyOptions||{},getCertificate:e.getCertificate||null,getPrivateKey:e.getPrivateKey||null,getSignature:e.getSignature||null,input:_t.util.createBuffer(),tlsData:_t.util.createBuffer(),data:_t.util.createBuffer(),tlsDataReady:e.tlsDataReady,dataReady:e.dataReady,heartbeatReceived:e.heartbeatReceived,closed:e.closed,error:function(d,p){p.origin=p.origin||(d.entity===ve.ConnectionEnd.client?"client":"server"),p.send&&(ve.queue(d,ve.createAlert(d,p.alert)),ve.flush(d));var v=p.fatal!==!1;v&&(d.fail=!0),e.error(d,p),v&&d.close(!1)},deflate:e.deflate||null,inflate:e.inflate||null};r.reset=function(d){r.version={major:ve.Version.major,minor:ve.Version.minor},r.record=null,r.session=null,r.peerCertificate=null,r.state={pending:null,current:null},r.expect=r.entity===ve.ConnectionEnd.client?ive:hve,r.fragmented=null,r.records=[],r.open=!1,r.handshakes=0,r.handshaking=!1,r.isConnected=!1,r.fail=!(d||typeof d>"u"),r.input.clear(),r.tlsData.clear(),r.data.clear(),r.state.current=ve.createConnectionState(r)},r.reset();var i=function(d,p){var v=p.type-ve.ContentType.change_cipher_spec,h=P2[d.entity][d.expect];v in h?h[v](d,p):ve.handleUnexpected(d,p)},c=function(d){var p=0,v=d.input,h=v.length();if(h<5)p=5-h;else{d.record={type:v.getByte(),version:{major:v.getByte(),minor:v.getByte()},length:v.getInt16(),fragment:_t.util.createBuffer(),ready:!1};var m=d.record.version.major===d.version.major;m&&d.session&&d.session.version&&(m=d.record.version.minor===d.version.minor),m||d.error(d,{message:"Incompatible TLS version.",send:!0,alert:{level:ve.Alert.Level.fatal,description:ve.Alert.Description.protocol_version}})}return p},u=function(d){var p=0,v=d.input,h=v.length();if(h0&&(r.sessionCache&&(p=r.sessionCache.getSession(d)),p===null&&(d="")),d.length===0&&r.sessionCache&&(p=r.sessionCache.getSession(),p!==null&&(d=p.id)),r.session={id:d,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:_t.md.md5.create(),sha1:_t.md.sha1.create()},p&&(r.version=p.version,r.session.sp=p.sp),r.session.sp.client_random=ve.createRandom().getBytes(),r.open=!0,ve.queue(r,ve.createRecord(r,{type:ve.ContentType.handshake,data:ve.createClientHello(r)})),ve.flush(r)}},r.process=function(d){var p=0;return d&&r.input.putBytes(d),r.fail||(r.record!==null&&r.record.ready&&r.record.fragment.isEmpty()&&(r.record=null),r.record===null&&(p=c(r)),!r.fail&&r.record!==null&&!r.record.ready&&(p=u(r)),!r.fail&&r.record!==null&&r.record.ready&&i(r,r.record)),p},r.prepare=function(d){return ve.queue(r,ve.createRecord(r,{type:ve.ContentType.application_data,data:_t.util.createBuffer(d)})),ve.flush(r)},r.prepareHeartbeatRequest=function(d,p){return d instanceof _t.util.ByteBuffer&&(d=d.bytes()),typeof p>"u"&&(p=d.length),r.expectedHeartbeatPayload=d,ve.queue(r,ve.createRecord(r,{type:ve.ContentType.heartbeat,data:ve.createHeartbeat(ve.HeartbeatMessageType.heartbeat_request,d,p)})),ve.flush(r)},r.close=function(d){if(!r.fail&&r.sessionCache&&r.session){var p={id:r.session.id,version:r.session.version,sp:r.session.sp};p.sp.keys=null,r.sessionCache.setSession(p.id,p)}r.open&&(r.open=!1,r.input.clear(),(r.isConnected||r.handshaking)&&(r.isConnected=r.handshaking=!1,ve.queue(r,ve.createAlert(r,{level:ve.Alert.Level.warning,description:ve.Alert.Description.close_notify})),ve.flush(r)),r.closed(r)),r.reset(d)},r};_t.tls=_t.tls||{};for(var Rg in ve)typeof ve[Rg]!="function"&&(_t.tls[Rg]=ve[Rg]);_t.tls.prf_tls1=S0;_t.tls.hmac_sha1=ove;_t.tls.createSessionCache=ve.createSessionCache;_t.tls.createConnection=ve.createConnection;var Ii=Nn,Go=Ii.tls;Go.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=Go.BulkCipherAlgorithm.aes,e.cipher_type=Go.CipherType.block,e.enc_key_length=16,e.block_length=16,e.fixed_iv_length=16,e.record_iv_length=16,e.mac_algorithm=Go.MACAlgorithm.hmac_sha1,e.mac_length=20,e.mac_key_length=20},initConnectionState:V6};Go.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=Go.BulkCipherAlgorithm.aes,e.cipher_type=Go.CipherType.block,e.enc_key_length=32,e.block_length=16,e.fixed_iv_length=16,e.record_iv_length=16,e.mac_algorithm=Go.MACAlgorithm.hmac_sha1,e.mac_length=20,e.mac_key_length=20},initConnectionState:V6};function V6(e,t,n){var a=t.entity===Ii.tls.ConnectionEnd.client;e.read.cipherState={init:!1,cipher:Ii.cipher.createDecipher("AES-CBC",a?n.keys.server_write_key:n.keys.client_write_key),iv:a?n.keys.server_write_IV:n.keys.client_write_IV},e.write.cipherState={init:!1,cipher:Ii.cipher.createCipher("AES-CBC",a?n.keys.client_write_key:n.keys.server_write_key),iv:a?n.keys.client_write_IV:n.keys.server_write_IV},e.read.cipherFunction=Tve,e.write.cipherFunction=Eve,e.read.macLength=e.write.macLength=n.mac_length,e.read.macFunction=e.write.macFunction=Go.hmac_sha1}function Eve(e,t){var n=!1,a=t.macFunction(t.macKey,t.sequenceNumber,e);e.fragment.putBytes(a),t.updateSequenceNumber();var s;e.version.minor===Go.Versions.TLS_1_0.minor?s=t.cipherState.init?null:t.cipherState.iv:s=Ii.random.getBytesSync(16),t.cipherState.init=!0;var o=t.cipherState.cipher;return o.start({iv:s}),e.version.minor>=Go.Versions.TLS_1_1.minor&&o.output.putBytes(s),o.update(e.fragment),o.finish($ve)&&(e.fragment=o.output,e.length=e.fragment.length(),n=!0),n}function $ve(e,t,n){if(!n){var a=e-t.length()%e;t.fillWithByte(a-1,a)}return!0}function xve(e,t,n){var a=!0;if(n){for(var s=t.length(),o=t.last(),r=s-1-o;r=o?(e.fragment=s.output.getBytes(i-o),r=s.output.getBytes(o)):e.fragment=s.output.getBytes(),e.fragment=Ii.util.createBuffer(e.fragment),e.length=e.fragment.length();var c=t.macFunction(t.macKey,t.sequenceNumber,e);return t.updateSequenceNumber(),n=Ive(t.macKey,r,c)&&n,n}function Ive(e,t,n){var a=Ii.hmac.create();return a.start("SHA1",e),a.update(t),t=a.digest().getBytes(),a.start(null,null),a.update(n),n=a.digest().getBytes(),t===n}var ga=Nn,Xp=ga.sha512=ga.sha512||{};ga.md.sha512=ga.md.algorithms.sha512=Xp;var F6=ga.sha384=ga.sha512.sha384=ga.sha512.sha384||{};F6.create=function(){return Xp.create("SHA-384")};ga.md.sha384=ga.md.algorithms.sha384=F6;ga.sha512.sha256=ga.sha512.sha256||{create:function(){return Xp.create("SHA-512/256")}};ga.md["sha512/256"]=ga.md.algorithms["sha512/256"]=ga.sha512.sha256;ga.sha512.sha224=ga.sha512.sha224||{create:function(){return Xp.create("SHA-512/224")}};ga.md["sha512/224"]=ga.md.algorithms["sha512/224"]=ga.sha512.sha224;Xp.create=function(e){if(U6||Ave(),typeof e>"u"&&(e="SHA-512"),!(e in fc))throw new Error("Invalid SHA-512 algorithm: "+e);for(var t=fc[e],n=null,a=ga.util.createBuffer(),s=new Array(80),o=0;o<80;++o)s[o]=new Array(2);var r=64;switch(e){case"SHA-384":r=48;break;case"SHA-512/256":r=32;break;case"SHA-512/224":r=28;break}var i={algorithm:e.replace("-","").toLowerCase(),blockLength:128,digestLength:r,messageLength:0,fullMessageLength:null,messageLengthSize:16};return i.start=function(){i.messageLength=0,i.fullMessageLength=i.messageLength128=[];for(var c=i.messageLengthSize/4,u=0;u>>0,d>>>0];for(var p=i.fullMessageLength.length-1;p>=0;--p)i.fullMessageLength[p]+=d[1],d[1]=d[0]+(i.fullMessageLength[p]/4294967296>>>0),i.fullMessageLength[p]=i.fullMessageLength[p]>>>0,d[0]=d[1]/4294967296>>>0;return a.putBytes(c),YE(n,s,a),(a.read>2048||a.length()===0)&&a.compact(),i},i.digest=function(){var c=ga.util.createBuffer();c.putBytes(a.bytes());var u=i.fullMessageLength[i.fullMessageLength.length-1]+i.messageLengthSize,d=u&i.blockLength-1;c.putBytes(P1.substr(0,i.blockLength-d));for(var p,v,h=i.fullMessageLength[0]*8,m=0;m>>0,h+=v,c.putInt32(h>>>0),h=p>>>0;c.putInt32(h);for(var g=new Array(n.length),m=0;m=128;){for(q=0;q<16;++q)t[q][0]=n.getInt32()>>>0,t[q][1]=n.getInt32()>>>0;for(;q<80;++q)O=t[q-2],L=O[0],U=O[1],a=((L>>>19|U<<13)^(U>>>29|L<<3)^L>>>6)>>>0,s=((L<<13|U>>>19)^(U<<3|L>>>29)^(L<<26|U>>>6))>>>0,ae=t[q-15],L=ae[0],U=ae[1],o=((L>>>1|U<<31)^(L>>>8|U<<24)^L>>>7)>>>0,r=((L<<31|U>>>1)^(L<<24|U>>>8)^(L<<25|U>>>7))>>>0,G=t[q-7],Z=t[q-16],U=s+G[1]+r+Z[1],t[q][0]=a+G[0]+o+Z[0]+(U/4294967296>>>0)>>>0,t[q][1]=U>>>0;for(g=e[0][0],y=e[0][1],b=e[1][0],C=e[1][1],k=e[2][0],S=e[2][1],$=e[3][0],E=e[3][1],R=e[4][0],A=e[4][1],N=e[5][0],P=e[5][1],B=e[6][0],M=e[6][1],j=e[7][0],F=e[7][1],q=0;q<80;++q)u=((R>>>14|A<<18)^(R>>>18|A<<14)^(A>>>9|R<<23))>>>0,d=((R<<18|A>>>14)^(R<<14|A>>>18)^(A<<23|R>>>9))>>>0,p=(B^R&(N^B))>>>0,v=(M^A&(P^M))>>>0,i=((g>>>28|y<<4)^(y>>>2|g<<30)^(y>>>7|g<<25))>>>0,c=((g<<4|y>>>28)^(y<<30|g>>>2)^(y<<25|g>>>7))>>>0,h=(g&b|k&(g^b))>>>0,m=(y&C|S&(y^C))>>>0,U=F+d+v+M1[q][1]+t[q][1],a=j+u+p+M1[q][0]+t[q][0]+(U/4294967296>>>0)>>>0,s=U>>>0,U=c+m,o=i+h+(U/4294967296>>>0)>>>0,r=U>>>0,j=B,F=M,B=N,M=P,N=R,P=A,U=E+s,R=$+a+(U/4294967296>>>0)>>>0,A=U>>>0,$=k,E=S,k=b,S=C,b=g,C=y,U=s+r,g=a+o+(U/4294967296>>>0)>>>0,y=U>>>0;U=e[0][1]+y,e[0][0]=e[0][0]+g+(U/4294967296>>>0)>>>0,e[0][1]=U>>>0,U=e[1][1]+C,e[1][0]=e[1][0]+b+(U/4294967296>>>0)>>>0,e[1][1]=U>>>0,U=e[2][1]+S,e[2][0]=e[2][0]+k+(U/4294967296>>>0)>>>0,e[2][1]=U>>>0,U=e[3][1]+E,e[3][0]=e[3][0]+$+(U/4294967296>>>0)>>>0,e[3][1]=U>>>0,U=e[4][1]+A,e[4][0]=e[4][0]+R+(U/4294967296>>>0)>>>0,e[4][1]=U>>>0,U=e[5][1]+P,e[5][0]=e[5][0]+N+(U/4294967296>>>0)>>>0,e[5][1]=U>>>0,U=e[6][1]+M,e[6][0]=e[6][0]+B+(U/4294967296>>>0)>>>0,e[6][1]=U>>>0,U=e[7][1]+F,e[7][0]=e[7][0]+j+(U/4294967296>>>0)>>>0,e[7][1]=U>>>0,te-=128}}var M2={},Nve=Nn,cs=Nve.asn1;M2.privateKeyValidator={name:"PrivateKeyInfo",tagClass:cs.Class.UNIVERSAL,type:cs.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:cs.Class.UNIVERSAL,type:cs.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:cs.Class.UNIVERSAL,type:cs.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:cs.Class.UNIVERSAL,type:cs.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:cs.Class.UNIVERSAL,type:cs.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]};M2.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:cs.Class.UNIVERSAL,type:cs.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:cs.Class.UNIVERSAL,type:cs.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:cs.Class.UNIVERSAL,type:cs.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:cs.Class.UNIVERSAL,type:cs.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]};var ks=Nn,z6=M2,Rve=z6.publicKeyValidator,Pve=z6.privateKeyValidator;if(typeof Mve>"u")var Mve=ks.jsbn.BigInteger;var B1=ks.util.ByteBuffer,Co=typeof Buffer>"u"?Uint8Array:Buffer;ks.pki=ks.pki||{};ks.pki.ed25519=ks.ed25519=ks.ed25519||{};var Mn=ks.ed25519;Mn.constants={};Mn.constants.PUBLIC_KEY_BYTE_LENGTH=32;Mn.constants.PRIVATE_KEY_BYTE_LENGTH=64;Mn.constants.SEED_BYTE_LENGTH=32;Mn.constants.SIGN_BYTE_LENGTH=64;Mn.constants.HASH_BYTE_LENGTH=64;Mn.generateKeyPair=function(e){e=e||{};var t=e.seed;if(t===void 0)t=ks.random.getBytesSync(Mn.constants.SEED_BYTE_LENGTH);else if(typeof t=="string"){if(t.length!==Mn.constants.SEED_BYTE_LENGTH)throw new TypeError('"seed" must be '+Mn.constants.SEED_BYTE_LENGTH+" bytes in length.")}else if(!(t instanceof Uint8Array))throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.');t=Pl({message:t,encoding:"binary"});for(var n=new Co(Mn.constants.PUBLIC_KEY_BYTE_LENGTH),a=new Co(Mn.constants.PRIVATE_KEY_BYTE_LENGTH),s=0;s<32;++s)a[s]=t[s];return Dve(n,a),{publicKey:n,privateKey:a}};Mn.privateKeyFromAsn1=function(e){var t={},n=[],a=ks.asn1.validate(e,Pve,t,n);if(!a){var s=new Error("Invalid Key.");throw s.errors=n,s}var o=ks.asn1.derToOid(t.privateKeyOid),r=ks.oids.EdDSA25519;if(o!==r)throw new Error('Invalid OID "'+o+'"; OID must be "'+r+'".');var i=t.privateKey,c=Pl({message:ks.asn1.fromDer(i).value,encoding:"binary"});return{privateKeyBytes:c}};Mn.publicKeyFromAsn1=function(e){var t={},n=[],a=ks.asn1.validate(e,Rve,t,n);if(!a){var s=new Error("Invalid Key.");throw s.errors=n,s}var o=ks.asn1.derToOid(t.publicKeyOid),r=ks.oids.EdDSA25519;if(o!==r)throw new Error('Invalid OID "'+o+'"; OID must be "'+r+'".');var i=t.ed25519PublicKey;if(i.length!==Mn.constants.PUBLIC_KEY_BYTE_LENGTH)throw new Error("Key length is invalid.");return Pl({message:i,encoding:"binary"})};Mn.publicKeyFromPrivateKey=function(e){e=e||{};var t=Pl({message:e.privateKey,encoding:"binary"});if(t.length!==Mn.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+Mn.constants.PRIVATE_KEY_BYTE_LENGTH);for(var n=new Co(Mn.constants.PUBLIC_KEY_BYTE_LENGTH),a=0;a=0};function Pl(e){var t=e.message;if(t instanceof Uint8Array||t instanceof Co)return t;var n=e.encoding;if(t===void 0)if(e.md)t=e.md.digest().getBytes(),n="binary";else throw new TypeError('"options.message" or "options.md" not specified.');if(typeof t=="string"&&!n)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if(typeof t=="string"){if(typeof Buffer<"u")return Buffer.from(t,n);t=new B1(t,n)}else if(!(t instanceof B1))throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a string with "options.encoding" specifying its encoding.');for(var a=new Co(t.length()),s=0;s=0;--n){if(e[t+n]Bf[n])return!1}return!1}function H6(e,t){var n,a,s,o;for(a=63;a>=32;--a){for(n=0,s=a-32,o=a-12;s>8,t[s]-=n*256;t[s]+=n,t[a]=0}for(n=0,s=0;s<32;++s)t[s]+=n-(t[31]>>4)*Bf[s],n=t[s]>>8,t[s]&=255;for(s=0;s<32;++s)t[s]-=n*Bf[s];for(a=0;a<32;++a)t[a+1]+=t[a]>>8,e[a]=t[a]&255}function O1(e){for(var t=new Float64Array(64),n=0;n<64;++n)t[n]=e[n],e[n]=0;H6(e,t)}function D1(e,t){var n=dn(),a=dn(),s=dn(),o=dn(),r=dn(),i=dn(),c=dn(),u=dn(),d=dn();$u(n,e[1],e[0]),$u(d,t[1],t[0]),na(n,n,d),bu(a,e[0],e[1]),bu(d,t[0],t[1]),na(a,a,d),na(s,e[3],t[3]),na(s,s,Lve),na(o,e[2],t[2]),bu(o,o,o),$u(r,a,n),$u(i,o,s),bu(c,o,s),bu(u,a,n),na(e[0],r,i),na(e[1],u,c),na(e[2],c,i),na(e[3],r,u)}function JE(e,t,n){for(var a=0;a<4;++a)W6(e[a],t[a],n)}function B2(e,t){var n=dn(),a=dn(),s=dn();jve(s,t[2]),na(n,t[0],s),na(a,t[1],s),fm(e,a),e[31]^=q6(n)<<7}function fm(e,t){var n,a,s,o=dn(),r=dn();for(n=0;n<16;++n)r[n]=t[n];for(Pg(r),Pg(r),Pg(r),a=0;a<2;++a){for(o[0]=r[0]-65517,n=1;n<15;++n)o[n]=r[n]-65535-(o[n-1]>>16&1),o[n-1]&=65535;o[15]=r[15]-32767-(o[14]>>16&1),s=o[15]>>16&1,o[14]&=65535,W6(r,o,1-s)}for(n=0;n<16;n++)e[2*n]=r[n]&255,e[2*n+1]=r[n]>>8}function zve(e,t){var n=dn(),a=dn(),s=dn(),o=dn(),r=dn(),i=dn(),c=dn();return Ci(e[2],dm),Hve(e[1],t),pc(s,e[1]),na(o,s,Bve),$u(s,s,e[2]),bu(o,e[2],o),pc(r,o),pc(i,r),na(c,i,r),na(n,c,s),na(n,n,o),Kve(n,n),na(n,n,s),na(n,n,o),na(n,n,o),na(e[0],n,o),pc(a,e[0]),na(a,a,o),ZE(a,s)&&na(e[0],e[0],Ove),pc(a,e[0]),na(a,a,o),ZE(a,s)?-1:(q6(e[0])===t[31]>>7&&$u(e[0],L1,e[0]),na(e[3],e[0],e[1]),0)}function Hve(e,t){var n;for(n=0;n<16;++n)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function Kve(e,t){var n=dn(),a;for(a=0;a<16;++a)n[a]=t[a];for(a=250;a>=0;--a)pc(n,n),a!==1&&na(n,n,t);for(a=0;a<16;++a)e[a]=n[a]}function ZE(e,t){var n=new Co(32),a=new Co(32);return fm(n,e),fm(a,t),K6(n,0,a,0)}function K6(e,t,n,a){return qve(e,t,n,a,32)}function qve(e,t,n,a,s){var o,r=0;for(o=0;o>>8)-1}function q6(e){var t=new Co(32);return fm(t,e),t[0]&1}function j6(e,t,n){var a,s;for(Ci(e[0],L1),Ci(e[1],dm),Ci(e[2],dm),Ci(e[3],L1),s=255;s>=0;--s)a=n[s/8|0]>>(s&7)&1,JE(e,t,a),D1(t,e),D1(e,e),JE(e,t,a)}function L2(e,t){var n=[dn(),dn(),dn(),dn()];Ci(n[0],XE),Ci(n[1],QE),Ci(n[2],dm),na(n[3],XE,QE),j6(e,n,t)}function Ci(e,t){var n;for(n=0;n<16;n++)e[n]=t[n]|0}function jve(e,t){var n=dn(),a;for(a=0;a<16;++a)n[a]=t[a];for(a=253;a>=0;--a)pc(n,n),a!==2&&a!==4&&na(n,n,t);for(a=0;a<16;++a)e[a]=n[a]}function Pg(e){var t,n,a=1;for(t=0;t<16;++t)n=e[t]+a+65535,a=Math.floor(n/65536),e[t]=n-a*65536;e[0]+=a-1+37*(a-1)}function W6(e,t,n){for(var a,s=~(n-1),o=0;o<16;++o)a=s&(e[o]^t[o]),e[o]^=a,t[o]^=a}function dn(e){var t,n=new Float64Array(16);if(e)for(t=0;t0&&(i=xo.util.fillString("\0",c)+i);var u=s.encrypt(i,"NONE"),d=e.generate(i,o);return{encapsulation:u,key:d}},a.decrypt=function(s,o,r){var i=s.decrypt(o,"NONE");return e.generate(i,r)},a};xo.kem.kdf1=function(e,t){G6(this,e,0,t||e.digestLength)};xo.kem.kdf2=function(e,t){G6(this,e,1,t||e.digestLength)};function G6(e,t,n,a){e.generate=function(s,o){for(var r=new xo.util.ByteBuffer,i=Math.ceil(o/a)+n,c=new xo.util.ByteBuffer,u=n;u"u"||t?e.flags|=On.log.LEVEL_LOCKED:e.flags&=~On.log.LEVEL_LOCKED};On.log.addLogger=function(e){V1.push(e)};if(typeof console<"u"&&"log"in console){var ef;if(console.error&&console.warn&&console.info&&console.debug){var Wve={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},O2=function(e,t){On.log.prepareStandard(t);var n=Wve[t.level],a=[t.standard];a=a.concat(t.arguments.slice()),n.apply(console,a)};ef=On.log.makeLogger(O2)}else{var O2=function(t,n){On.log.prepareStandardFull(n),console.log(n.standardFull)};ef=On.log.makeLogger(O2)}On.log.setLevel(ef,"debug"),On.log.addLogger(ef),Of=ef}else console={log:function(){}};if(Of!==null&&typeof window<"u"&&window.location){var Ov=new URL(window.location.href).searchParams;if(Ov.has("console.level")&&On.log.setLevel(Of,Ov.get("console.level").slice(-1)[0]),Ov.has("console.lock")){var Gve=Ov.get("console.lock").slice(-1)[0];Gve=="true"&&On.log.lock(Of)}}On.log.consoleLogger=Of;var Lt=Nn,Pe=Lt.asn1,to=Lt.pkcs7=Lt.pkcs7||{};to.messageFromPem=function(e){var t=Lt.pem.decode(e)[0];if(t.type!=="PKCS7"){var n=new Error('Could not convert PKCS#7 message from PEM; PEM header type is not "PKCS#7".');throw n.headerType=t.type,n}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.");var a=Pe.fromDer(t.body);return to.messageFromAsn1(a)};to.messageToPem=function(e,t){var n={type:"PKCS7",body:Pe.toDer(e.toAsn1()).getBytes()};return Lt.pem.encode(n,{maxline:t})};to.messageFromAsn1=function(e){var t={},n=[];if(!Pe.validate(e,to.asn1.contentInfoValidator,t,n)){var a=new Error("Cannot read PKCS#7 message. ASN.1 object is not an PKCS#7 ContentInfo.");throw a.errors=n,a}var s=Pe.derToOid(t.contentType),o;switch(s){case Lt.pki.oids.envelopedData:o=to.createEnvelopedData();break;case Lt.pki.oids.encryptedData:o=to.createEncryptedData();break;case Lt.pki.oids.signedData:o=to.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+s+" is not (yet) supported.")}return o.fromAsn1(t.content.value[0]),o};to.createSignedData=function(){var e=null;return e={type:Lt.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:function(a){if(D2(e,a,to.asn1.signedDataValidator),e.certificates=[],e.crls=[],e.digestAlgorithmIdentifiers=[],e.contentInfo=null,e.signerInfos=[],e.rawCapture.certificates)for(var s=e.rawCapture.certificates.value,o=0;o0&&r.value[0].value.push(Pe.create(Pe.Class.CONTEXT_SPECIFIC,0,!0,a)),o.length>0&&r.value[0].value.push(Pe.create(Pe.Class.CONTEXT_SPECIFIC,1,!0,o)),r.value[0].value.push(Pe.create(Pe.Class.UNIVERSAL,Pe.Type.SET,!0,e.signerInfos)),Pe.create(Pe.Class.UNIVERSAL,Pe.Type.SEQUENCE,!0,[Pe.create(Pe.Class.UNIVERSAL,Pe.Type.OID,!1,Pe.oidToDer(e.type).getBytes()),r])},addSigner:function(a){var s=a.issuer,o=a.serialNumber;if(a.certificate){var r=a.certificate;typeof r=="string"&&(r=Lt.pki.certificateFromPem(r)),s=r.issuer.attributes,o=r.serialNumber}var i=a.key;if(!i)throw new Error("Could not add PKCS#7 signer; no private key specified.");typeof i=="string"&&(i=Lt.pki.privateKeyFromPem(i));var c=a.digestAlgorithm||Lt.pki.oids.sha1;switch(c){case Lt.pki.oids.sha1:case Lt.pki.oids.sha256:case Lt.pki.oids.sha384:case Lt.pki.oids.sha512:case Lt.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+c)}var u=a.authenticatedAttributes||[];if(u.length>0){for(var d=!1,p=!1,v=0;v0){for(var n=Pe.create(Pe.Class.CONTEXT_SPECIFIC,1,!0,[]),a=0;a=n&&s="8"&&(n="00"+n);var a=Ga.util.hexToBytes(n);e.putInt32(a.length),e.putBytes(a)}function xu(e,t){e.putInt32(t.length),e.putString(t)}function Dv(){for(var e=Ga.md.sha1.create(),t=arguments.length,n=0;ndt.get("/api/v1/auth/password-transfer/public-key"),she=(e,t)=>{const n=tc.asn1.fromDer(tc.util.decode64(e)),s=tc.pki.publicKeyFromAsn1(n).encrypt(tc.util.encodeUtf8(t),"RSA-OAEP",{md:tc.md.sha256.create(),mgf1:{md:tc.md.sha256.create()}});return tc.util.encode64(s)},Ld=async(e,t)=>{const n=await ahe();if(n.algorithm!=="RSA-OAEP-256")throw new Error("后端密码传输算法不受支持");const a={...e},s=a;for(const o of t){const r=e[o];if(typeof r!="string")throw new Error("密码字段格式无效");s[o]=n.keyId+"."+she(n.publicKey,r)}return a},X6=()=>dt.get("/api/v1/public/dictionaries/user_industry/items"),a$=async e=>dt.post("/api/v1/user/login/password",await Ld(e,["password"]),{withCredentials:!0,silentAuthError:!0,silentErrorMessage:!0}),ohe=e=>dt.post("/api/v1/user/login/sms",e,{withCredentials:!0,silentAuthError:!0,silentErrorMessage:!0}),V2=e=>dt.post("/api/v1/user/sms/send",e),rhe=async e=>dt.post("/api/v1/user/register",await Ld(e,["password","confirmPassword"]),{withCredentials:!0}),lhe=async e=>dt.post("/api/v1/user/enterprise-register",await Ld(e,["password","confirmPassword"])),ihe=async e=>dt.put("/api/v1/user/password/reset",await Ld(e,["newPassword","confirmPassword"])),che=e=>dt.post("/api/v1/user/password/reset/verify-code",e),uhe=()=>dt.post("/api/v1/user/logout",void 0,{withCredentials:!0}),U1=e=>dt.get("/api/v1/user/info",{silentAuthError:e==null?void 0:e.silentAuthError}),dhe=()=>dt.post("/api/v1/user/token/refresh"),s$=()=>dt.post("/api/v1/user/session/restore",void 0,{silentAuthError:!0,silentErrorMessage:!0,withCredentials:!0}),fhe=()=>dt.post("/api/v1/user/session/clear",void 0,{silentAuthError:!0,silentErrorMessage:!0,withCredentials:!0}),phe=async e=>dt.put("/api/v1/user/password",await Ld(e,["oldPassword","newPassword","confirmPassword"])),vhe=async e=>dt.put("/api/v1/user/password/first-login",await Ld(e,["newPassword","confirmPassword"])),hhe=e=>dt.put("/api/v1/user/info",e),mhe=e=>dt.put("/api/v1/user/phone",e),ghe=e=>dt.post("/api/v1/user/phone/change/send-old-code",e),_he=e=>dt.post("/api/v1/user/phone/change/send-new-code",e),o$=(e,t)=>dt.post("/api/v1/user/phone/change/human-verification/prepare",void 0,{params:t?{target:e,phone:t}:{target:e}}),r$=e=>`/api/v1/user/phone/change/human-verification/challenge?${new URLSearchParams({ticket:e}).toString()}`,yhe=()=>dt.get("/api/v1/user/devices"),bhe=e=>dt.delete(`/api/v1/user/devices/${e}`),Q6=()=>dt.get("/api/v1/user/identity"),whe=e=>dt.post("/api/v1/user/identity/verify",e),Che=Wp,_a=Nm("user",()=>{const e=T(y2()),t=T(null),n=T(!1);let a=null,s=null;const o=x(()=>!!e.value),r=y=>{e.value=y,ede(y),g(y)},i=()=>{e.value="",n6(),s&&(window.clearTimeout(s),s=null)},c=y=>{t.value=y},u=async()=>{const y=await U1();return c(y),y},d=y=>{i(),c(null),(y==null?void 0:y.revokeRemembered)!==!1&&fhe().catch(()=>{}),(y==null?void 0:y.notifyPeers)!==!1&&nde()},p=tde(()=>{d({notifyPeers:!1,revokeRemembered:!1})});kp(p);const v=async()=>{if(!n.value){if(a){await a;return}a=(async()=>{try{if(e.value)g(e.value);else{const b=await s$();r(b.token)}const y=await U1({silentAuthError:!0});c(y)}catch{d({notifyPeers:!1,revokeRemembered:!1})}finally{n.value=!0}})();try{await a}finally{a=null}}},h=y=>{try{const b=y.split(".")[1];if(!b)return null;const C=b.replace(/-/g,"+").replace(/_/g,"/"),k=JSON.parse(window.atob(C));return typeof k.exp=="number"?k.exp*1e3:null}catch{return null}},m=async()=>{try{const y=await s$();r(y.token)}catch{d({notifyPeers:!1,revokeRemembered:!1})}},g=y=>{s&&(window.clearTimeout(s),s=null);const b=h(y);if(!b)return;const C=Math.max(0,b-Date.now()-25*60*1e3);s=window.setTimeout(()=>{dhe().then(k=>r(k.token)).catch(()=>m())},C)};return{token:e,userInfo:t,sessionReady:n,isLoggedIn:o,setToken:r,clearToken:i,setUserInfo:c,refreshUserInfo:u,clearSession:d,initializeSession:v}}),J6=Object.freeze(Object.defineProperty({__proto__:null,TOKEN_KEY:Che,useUserStore:_a},Symbol.toStringTag,{value:"Module"})),F2=e=>(xt("data-v-3f6e5c9f"),e=e(),Tt(),e),khe={class:"identity-verification-dialog__field"},She=F2(()=>l("span",null,"真实姓名",-1)),Ehe=["disabled"],$he={class:"identity-verification-dialog__field"},xhe=F2(()=>l("span",null,"身份证号",-1)),The=["disabled"],Ihe=F2(()=>l("p",{class:"identity-verification-dialog__hint"},"身份证号仅用于本次核验,平台仅保存脱敏值与不可逆哈希。",-1)),Ahe={class:"identity-verification-dialog__actions"},Nhe=["disabled"],Rhe=["disabled"],Phe=le({__name:"IdentityVerificationDialog",setup(e){const t=_a(),n=T(!1),a=At({realName:"",idCardNo:""}),s=()=>{n.value||xg(!1)},o=i=>{n.value||(xg(!1),i())},r=async()=>{n.value=!0;try{if((await whe({realName:a.realName.trim(),idCardNo:a.idCardNo.trim()})).verifyStatus!=="verified"){rt.error("实名认证未通过,请核对姓名和身份证号后重试");return}await t.refreshUserInfo(),rt.success("实名认证已通过"),a.realName="",a.idCardNo="",xg(!0)}finally{n.value=!1}};return(i,c)=>{const u=Ne("el-dialog");return _(),ue(u,{modelValue:f(Pf),"onUpdate:modelValue":c[2]||(c[2]=d=>$n(Pf)?Pf.value=d:null),class:"identity-verification-dialog",title:"实名认证",width:"480px","close-on-click-modal":!n.value,"before-close":o},{default:W(()=>[l("form",{class:"identity-verification-dialog__form",onSubmit:qe(r,["prevent"])},[l("label",khe,[She,et(l("input",{"onUpdate:modelValue":c[0]||(c[0]=d=>a.realName=d),"data-testid":"identity-real-name",autocomplete:"name",maxlength:"30",placeholder:"请输入本人真实姓名",disabled:n.value},null,8,Ehe),[[hn,a.realName]])]),l("label",$he,[xhe,et(l("input",{"onUpdate:modelValue":c[1]||(c[1]=d=>a.idCardNo=d),"data-testid":"identity-id-card",autocomplete:"off",maxlength:"18",placeholder:"请输入中国大陆居民身份证号",disabled:n.value},null,8,The),[[hn,a.idCardNo]])]),Ihe,l("div",Ahe,[l("button",{type:"button",class:"identity-verification-dialog__secondary",disabled:n.value,onClick:s},"取消",8,Nhe),l("button",{type:"submit","data-testid":"submit-identity",class:"identity-verification-dialog__primary",disabled:n.value},I(n.value?"提交中":"提交认证"),9,Rhe)])],32)]),_:1},8,["modelValue","close-on-click-modal"])}}}),Ct=(e,t)=>{const n=e.__vccOpts||e;for(const[a,s]of t)n[a]=s;return n},Mhe=Ct(Phe,[["__scopeId","data-v-3f6e5c9f"]]),U2=e=>dt.get("/api/v1/user/notices",{params:e}),Bhe=()=>dt.get("/api/v1/user/notices/unread-count"),Lhe=e=>dt.get(`/api/v1/user/notices/${e}`),Z6=()=>dt.put("/api/v1/user/notices/read-all"),Ohe=e=>dt.put(`/api/v1/user/notices/${e}/read`),$0=Nm("notification",()=>{const e=T(0);return{unreadCount:e,refreshUnreadCount:async()=>{const s=await Bhe();e.value=s.unreadCount},markOneAsRead:()=>{e.value=Math.max(0,e.value-1)},clearUnreadCount:()=>{e.value=0}}}),Dhe=6e4,Vhe=()=>{const e=_a(),t=$0();let n=null;const a=()=>{n&&(clearInterval(n),n=null)},s=async()=>{if(!e.isLoggedIn){a(),t.clearUnreadCount();return}try{await t.refreshUnreadCount()}catch{}},o=async()=>{if(a(),!e.isLoggedIn){t.clearUnreadCount();return}await s(),n=setInterval(s,Dhe)};Te(()=>e.isLoggedIn,()=>{o()},{immediate:!0}),kp(a)},Fhe=le({__name:"App",setup(e){return Vhe(),(t,n)=>(_(),w(_e,null,[z(f(R5)),z(Mhe)],64))}}),Vv={siteName:"AiStore",siteLogoUrl:"",siteLogoIncludesName:!1,siteBrowserTitle:"AiStore 智算服务平台",siteSubtitle:"新疆本地 AI 智算服务平台",siteFooterCopyright:"© 2026 AiStore 智算服务平台",mallThemePrimary:"#c41e3a",mallThemeAccent:"#d4a84b",version:"1"},l$=()=>dt.get("/api/v1/public/site-info"),Fv="#c41e3a",Uv="#d4a84b";function z2(e){const t=e.replace("#","");return{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16)}}function Vu(e){return Math.max(0,Math.min(255,Math.round(e)))}function Mg(e,t){const{r:n,g:a,b:s}=z2(e),o=1-t;return`#${Vu(n*o).toString(16).padStart(2,"0")}${Vu(a*o).toString(16).padStart(2,"0")}${Vu(s*o).toString(16).padStart(2,"0")}`}function i$(e,t){const{r:n,g:a,b:s}=z2(e);return`#${Vu(n+(255-n)*t).toString(16).padStart(2,"0")}${Vu(a+(255-a)*t).toString(16).padStart(2,"0")}${Vu(s+(255-s)*t).toString(16).padStart(2,"0")}`}function gl(e,t){const{r:n,g:a,b:s}=z2(e);return`rgba(${n}, ${a}, ${s}, ${t})`}function c$(e,t){return e&&/^#[0-9a-fA-F]{6}$/.test(e)?e.toLowerCase():t}function u$(e,t){const n=document.documentElement.style;n.setProperty("--mall-primary",e),n.setProperty("--mall-primary-deep",Mg(e,.12)),n.setProperty("--mall-primary-light",i$(e,.3)),n.setProperty("--mall-accent",t),n.setProperty("--mall-accent-light",i$(t,.3)),n.setProperty("--mall-accent-deep",Mg(t,.18));const a=[.015,.025,.02,.03,.04,.05,.06,.07,.08,.1,.12,.14,.15,.16,.18,.2,.22,.24,.25,.26,.28,.3,.32,.34,.35,.38,.4,.42,.45,.5];for(const o of a){const r=o*100,i=Number.isInteger(r)?String(r).padStart(2,"0"):String(Math.round(r*10)).padStart(3,"0");n.setProperty(`--mall-primary-${i}`,gl(e,o))}const s=[.02,.03,.04,.05,.06,.07,.08,.1,.12,.15,.16,.18,.2,.24,.25,.35,.48,.8];for(const o of s){const r=o*100,i=Number.isInteger(r)?String(r).padStart(2,"0"):String(Math.round(r*10)).padStart(3,"0");n.setProperty(`--mall-accent-${i}`,gl(t,o))}n.setProperty("--mall-shadow",`0 12px 36px ${gl(e,.08)}`),n.setProperty("--mall-shadow-hover",gl(e,.12)),n.setProperty("--el-color-primary",e),n.setProperty("--el-color-primary-dark-2",Mg(e,.12)),n.setProperty("--el-color-primary-light-3",gl(e,.7)),n.setProperty("--el-color-primary-light-5",gl(e,.5)),n.setProperty("--el-color-primary-light-7",gl(e,.3)),n.setProperty("--el-color-primary-light-8",gl(e,.2)),n.setProperty("--el-color-primary-light-9",gl(e,.1))}const zv=Nm("mallTheme",()=>{const e=T(Fv),t=T(Uv);function n(s){e.value=c$(s.mallThemePrimary,Fv),t.value=c$(s.mallThemeAccent,Uv),u$(e.value,t.value)}function a(){e.value=Fv,t.value=Uv,u$(Fv,Uv)}return{primary:e,accent:t,applyFromSiteInfo:n,resetToDefaults:a}}),Hv="aistore_mall_site_info",Qp=Nm("siteInfo",()=>{const e=T({...Vv}),t=T(!1),n=()=>{try{const c=sessionStorage.getItem(Hv);if(c){const u=JSON.parse(c);return!u||u.mallThemePrimary===void 0||u.mallThemeAccent===void 0?(sessionStorage.removeItem(Hv),!1):(e.value=u,zv().applyFromSiteInfo(u),!0)}}catch{}return!1},a=c=>{e.value=c,t.value=!0,zv().applyFromSiteInfo(c);try{sessionStorage.setItem(Hv,JSON.stringify(c))}catch{}},s=async()=>{try{a(await l$())}catch{e.value={...Vv},t.value=!0,zv().applyFromSiteInfo(Vv)}},o=async()=>{try{const c=await l$();c.version!==e.value.version&&a(c)}catch{}};return{siteInfo:e,loaded:t,loadSiteInfo:s,ensureLoaded:async()=>{if(!t.value){if(n()){t.value=!0,await o();return}await s()}},clear:()=>{e.value={...Vv},t.value=!1,zv().resetToDefaults();try{sessionStorage.removeItem(Hv)}catch{}}}}),Uhe={},zhe={class:"auth-layout"},Hhe={class:"auth-layout__panel"};function Khe(e,t){const n=Ne("RouterView");return _(),w("div",zhe,[l("div",Hhe,[z(n)])])}const qhe=Ct(Uhe,[["render",Khe],["__scopeId","data-v-1782f1a3"]]),Cc="/api/oos/files/preview/",jhe="/api/oos/files/delete/",Whe="/admin-api/oos/files/preview/",Ghe="/api/oos/files/",d$="/admin-api/oos/files/",H2=/^[a-z0-9-]+\/\d{4}\/\d{2}\/\d{2}\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(\.[a-z0-9]+)?$/i,Yhe=/^\/(?:api\/v1\/files|api\/oos\/files|admin-api\/oos\/files)\/(?:preview|download)(?:\/|$)/i,Xhe=/^data:image\/(?:png|jpeg|gif|webp|avif);base64,[a-z\d+/=\s]+$/i,ud=e=>{try{const t=new URL(e);return(t.protocol==="http:"||t.protocol==="https:")&&!!t.hostname}catch{return!1}},eA=e=>e.startsWith(d$)?`${Ghe}${e.slice(d$.length)}`:e,Qhe=e=>{const t=Cc+e,n=h0();return ud(n)?new URL(t,n).toString():t},Jhe=e=>{const t=(e==null?void 0:e.trim())||"";return ud(t)||H2.test(t)||t.startsWith(Cc)||t.startsWith(Whe)},tA=e=>{const t=e.trim();if(H2.test(t))return`${Cc}${t.split("/").map(encodeURIComponent).join("/")}`;const n=eA(t),a=n.startsWith(Cc)?Cc:"";if(!a)throw new Error("不是平台 OOS 文件地址");const s=decodeURIComponent(n.slice(a.length).split("?")[0].split("#")[0]);return`${Cc}${s.split("/").map(encodeURIComponent).join("/")}`},Zhe=async e=>{const t=e.trim();if(ud(t))return t;const n=await dt.get(tA(t),{responseType:"blob"});return URL.createObjectURL(n)},nA=e=>{const t=tA(e);return dt.delete(t.replace(Cc,jhe))},$s=e=>{const t=(e==null?void 0:e.trim())||"";if(!t||t.startsWith("//"))return"";if(ud(t))return t;if(H2.test(t))return Qhe(t);const n=eA(t);if(!Yhe.test(n))return"";const a=h0();return ud(a)?new URL(n,a).toString():n},eme=e=>{const t=(e==null?void 0:e.trim())||"";return t&&!t.startsWith("//")&&ud(t)?t:""},tme=e=>{const t=(e==null?void 0:e.trim())||"";return/^blob:/i.test(t)||Xhe.test(t)?t:$s(t)},nme=e=>dt.post("/api/v1/files/presign",e),ame=async(e,t)=>{const n=eme(e.uploadUrl);if(!n)throw new Error("上传地址无效");return await Ba.put(n,t,{headers:{"Content-Type":t.type,...e.headers}}),{objectKey:e.objectKey,fileUrl:e.fileUrl}},sme=12e4,aA=(e,t)=>{const n=new FormData;return n.append("bizType",e),n.append("file",t),dt.post("/api/oos/files/upload",n,{timeout:sme})},Od=e=>(xt("data-v-ac6d9af3"),e=e(),Tt(),e),ome={class:"mall-footer desktop-only"},rme={class:"page-container mall-footer__content"},lme={class:"mall-footer__brand"},ime=["src","alt"],cme=Od(()=>l("span",null,"AI",-1)),ume={key:2},dme=Od(()=>l("p",null,"汇聚优质 AI 模型资源,为新疆本地政务、文旅、农业、工业等领域提供智能化解决方案。",-1)),fme={class:"mall-footer__section"},pme=Od(()=>l("h2",null,"产品服务",-1)),vme={class:"mall-footer__section"},hme=Od(()=>l("h2",null,"帮助支持",-1)),mme={class:"mall-footer__section"},gme=Od(()=>l("h2",null,"关于我们",-1)),_me={class:"page-container mall-footer__bottom"},yme=Od(()=>l("div",{class:"mall-footer__licenses"},[l("a",{href:"https://beian.miit.gov.cn",target:"_blank",rel:"noopener noreferrer"},"京ICP备12007914号-2"),l("a",{href:"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11040102700160",target:"_blank",rel:"noopener noreferrer"},"京公网安备 11040102700160号"),l("span",null,"增值电信业务经营许可证:A2.B1.B2-20090001")],-1)),bme={class:"mobile-footer mobile-only"},wme={class:"mobile-footer__nav","aria-label":"移动端底部导航"},Cme=le({__name:"AppFooter",setup(e){const t=_a(),n=Qp(),a=x(()=>t.isLoggedIn?[{label:"首页",to:"/"},{label:"模型",to:"/models"},{label:"订单",to:"/orders"},{label:"我的",to:"/user/profile"}]:[{label:"首页",to:"/"},{label:"模型",to:"/models"},{label:"活动",to:"/activities"},{label:"帮助",to:"/support"}]);return(s,o)=>{const r=Ne("RouterLink");return _(),w(_e,null,[l("footer",ome,[l("div",rme,[l("div",lme,[z(r,{class:"mall-footer__logo",to:"/"},{default:W(()=>[f(n).siteInfo.siteLogoUrl?(_(),w("img",{key:0,src:f($s)(f(n).siteInfo.siteLogoUrl),alt:f(n).siteInfo.siteName,class:V(["mall-footer__brand-logo",{"mall-footer__brand-logo--includes-name":f(n).siteInfo.siteLogoIncludesName}]),onLoad:o[0]||(o[0]=i=>i.target.classList.add("loaded"))},null,42,ime)):K("",!0),f(n).siteInfo.siteLogoUrl?K("",!0):(_(),w(_e,{key:1},[cme,l("strong",null,I(f(n).siteInfo.siteName),1)],64)),f(n).siteInfo.siteLogoUrl&&!f(n).siteInfo.siteLogoIncludesName?(_(),w("strong",ume,I(f(n).siteInfo.siteName),1)):K("",!0)]),_:1}),dme]),l("section",fme,[pme,z(r,{to:"/models"},{default:W(()=>[Ce("模型市场")]),_:1}),z(r,{to:"/models"},{default:W(()=>[Ce("在线体验")]),_:1}),z(r,{to:"/support"},{default:W(()=>[Ce("API 文档")]),_:1}),z(r,{to:"/credits/purchase"},{default:W(()=>[Ce("算力购买")]),_:1})]),l("section",vme,[hme,z(r,{to:"/support"},{default:W(()=>[Ce("帮助中心")]),_:1}),z(r,{to:"/support"},{default:W(()=>[Ce("使用指南")]),_:1}),z(r,{to:"/support"},{default:W(()=>[Ce("常见问题")]),_:1}),z(r,{to:"/support?article=legal-statement"},{default:W(()=>[Ce("法律声明")]),_:1}),z(r,{to:"/feedbacks/create"},{default:W(()=>[Ce("联系客服")]),_:1})]),l("section",mme,[gme,z(r,{to:"/support"},{default:W(()=>[Ce("平台介绍")]),_:1}),z(r,{to:"/activities"},{default:W(()=>[Ce("新闻动态")]),_:1}),z(r,{to:"/support"},{default:W(()=>[Ce("合作伙伴")]),_:1}),z(r,{to:"/support"},{default:W(()=>[Ce("加入我们")]),_:1})])]),l("div",_me,[l("span",null,I(f(n).siteInfo.siteFooterCopyright),1),yme])]),l("footer",bme,[l("nav",wme,[(_(!0),w(_e,null,Re(a.value,i=>(_(),ue(r,{key:i.to,to:i.to},{default:W(()=>[Ce(I(i.label),1)]),_:2},1032,["to"]))),128))])])],64)}}}),kme=Ct(Cme,[["__scopeId","data-v-ac6d9af3"]]),Jp=e=>(xt("data-v-62debe90"),e=e(),Tt(),e),Sme=["aria-label"],Eme=Jp(()=>l("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[l("path",{d:"M7 10a5 5 0 0 1 10 0v4l2 3H5l2-3v-4M10 20h4"})],-1)),$me={key:0,class:"notification-bell__badge"},xme={class:"bell-panel"},Tme={class:"bell-panel__header"},Ime=Jp(()=>l("span",{class:"bell-panel__title"},"未读消息",-1)),Ame=["disabled"],Nme={key:0,class:"bell-panel__loading"},Rme={class:"bell-panel__list"},Pme=["onClick","onKeydown"],Mme=Jp(()=>l("span",{class:"bell-item__dot","aria-hidden":"true"},null,-1)),Bme={class:"bell-item__main"},Lme={class:"bell-item__title-row"},Ome={class:"bell-item__title"},Dme={class:"bell-item__summary"},Vme={class:"bell-item__time"},Fme={class:"bell-panel__footer"},Ume={key:2,class:"bell-panel__empty"},zme=Jp(()=>l("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[l("path",{d:"M7 10a5 5 0 0 1 10 0v4l2 3H5l2-3v-4M10 20h4"})],-1)),Hme=Jp(()=>l("p",null,"暂无未读消息",-1)),Kme=le({__name:"AppNotificationBell",setup(e){const t=pn(),n=_a(),a=$0(),{unreadCount:s}=Zx(a),o=T([]),r=T(!1),i=T(!1),c=T(!1),u={announcement:"公告",system_notice:"系统通知",feedback_notice:"反馈通知"},d=C=>C==="announcement"?"":C==="feedback_notice"?"warning":"info",p=x(()=>s.value>0),v=async()=>{r.value=!0;try{const C=await U2({readStatus:"unread",pageSize:5});o.value=C.list}catch{o.value=[]}finally{r.value=!1}},h=()=>{i.value=!0,v()},m=async C=>{i.value=!1,await t.push({name:"user-notifications",query:{id:String(C.id)}})},g=async()=>{if(!(!p.value||c.value)){c.value=!0;try{await Z6(),a.clearUnreadCount(),o.value=[]}catch{}finally{c.value=!1}}},y=()=>{i.value=!1,t.push({name:"user-notifications"})},b=C=>{if(!C)return"";const k=new Date(C).getTime();if(Number.isNaN(k))return C;const S=Date.now()-k,$=60*1e3,E=60*$,R=24*E;return S<$?"刚刚":S{const S=Ne("el-tag"),$=Ne("el-popover");return f(n).isLoggedIn?(_(),ue($,{key:0,visible:i.value,"onUpdate:visible":k[0]||(k[0]=E=>i.value=E),placement:"bottom-end",width:360,trigger:"click","popper-class":"notification-bell-popover","hide-after":0,onShow:h},{reference:W(()=>[l("button",{class:"notification-bell",type:"button","aria-label":p.value?`消息中心,${f(s)} 条未读`:"消息中心"},[Eme,p.value?(_(),w("span",$me,I(f(s)>99?"99+":f(s)),1)):K("",!0)],8,Sme)]),default:W(()=>[l("div",xme,[l("header",Tme,[Ime,p.value?(_(),w("button",{key:0,class:"bell-panel__mark-all",type:"button",disabled:c.value,onClick:g},I(c.value?"处理中…":"全部已读"),9,Ame)):K("",!0)]),r.value?(_(),w("div",Nme,"加载中…")):o.value.length>0?(_(),w(_e,{key:1},[l("ul",Rme,[(_(!0),w(_e,null,Re(o.value,E=>(_(),w("li",{key:E.id,class:"bell-item",tabindex:"0",onClick:R=>m(E),onKeydown:yn(qe(R=>m(E),["prevent"]),["enter"])},[Mme,l("div",Bme,[l("div",Lme,[l("span",Ome,I(E.title),1),z(S,{size:"small",type:d(E.notifyType),class:V(["bell-item__tag",`bell-item__tag--${E.notifyType}`])},{default:W(()=>[Ce(I(u[E.notifyType]),1)]),_:2},1032,["type","class"])]),l("p",Dme,I(E.summary),1),l("span",Vme,I(b(E.sendTime)),1)])],40,Pme))),128))]),l("footer",Fme,[l("button",{class:"bell-panel__view-all",type:"button",onClick:y}," 查看全部消息("+I(f(s)>99?"99+":f(s))+") ",1)])],64)):(_(),w("div",Ume,[zme,Hme,l("button",{class:"bell-panel__view-all",type:"button",onClick:y},"查看消息中心")]))])]),_:1},8,["visible"])):K("",!0)}}}),f$=Ct(Kme,[["__scopeId","data-v-62debe90"]]),Zp=e=>(xt("data-v-e9912cf8"),e=e(),Tt(),e),qme={class:"mall-header desktop-only"},jme={class:"page-container mall-header__inner"},Wme=["src","alt"],Gme={key:1,class:"mall-header__brand-mark"},Yme={key:2},Xme={class:"mall-header__nav","aria-label":"商城主导航"},Qme=["onMouseenter"],Jme=Zp(()=>l("svg",{class:"mall-header__nav-arrow",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M3 5L6 8L9 5"})],-1)),Zme={class:"nav-dropdown"},e0e=Zp(()=>l("div",{class:"nav-dropdown__bar"},null,-1)),t0e=["onMouseenter"],n0e={key:0,class:"nav-dropdown__icon"},a0e={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},s0e=["d"],o0e={class:"nav-dropdown__label"},r0e=Zp(()=>l("svg",{class:"nav-dropdown__arrow",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M3 2l3 3-3 3"})],-1)),l0e={class:"nav-dropdown__sub"},i0e={key:0,class:"nav-dropdown__icon"},c0e={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},u0e=["d"],d0e={class:"mall-header__actions","aria-label":"商城用户操作区"},f0e={class:"mobile-header mobile-only"},p0e={class:"mobile-header__top"},v0e=["src","alt"],h0e=Zp(()=>l("span",null,"AI",-1)),m0e={key:2},g0e={class:"mobile-header__actions","aria-label":"移动端用户操作区"},_0e=Zp(()=>l("label",{class:"mobile-header__search"},[l("span",null,"搜"),l("input",{type:"text",placeholder:"例如:搜索模型名称"})],-1)),y0e=le({__name:"AppHeader",setup(e){const t=fa(),n=_a(),a=Qp(),s=x(()=>{var b;const y=((b=n.userInfo)==null?void 0:b.userType)==="enterprise"?{label:"企业成员",path:"/enterprise-seats",icon:"group",requiresAuth:!0,children:[{label:"批量新增成员",path:"/enterprise-seats/create"},{label:"我的成员",path:"/enterprise-seats"}]}:{label:"服务组管理",path:"/service-groups",icon:"group",requiresAuth:!0,children:[{label:"服务组接入",path:"/service-groups/create"},{label:"我的服务组",path:"/service-groups"}]};return[{label:"首页",path:"/"},{label:"模型市场",path:"/models",children:[{label:"模型列表",path:"/models",icon:"list"},y,{label:"模型体验记录",path:"/models/experiences",icon:"clock",requiresAuth:!0}]},{label:"算力市场",path:"/compute"},{label:"应用市场",path:"/apps"},{label:"服务市场",path:"/services"},{label:"订单中心",path:"/orders",requiresAuth:!0,children:[{label:"我的订单",path:"/orders",icon:"order"},{label:"积分明细",path:"/credits/logs",icon:"credit"},{label:"我的意向单",path:"/intentions",icon:"intention"}]},{label:"活动中心",path:"/activities",children:[{label:"活动列表",path:"/activities",icon:"calendar"},{label:"我的券码",path:"/coupons",icon:"ticket",requiresAuth:!0},{label:"兑换码兑换",path:"/coupons/redeem",icon:"redeem",requiresAuth:!0}]},{label:"帮助中心",path:"/support"}]}),o=x(()=>s.value.filter(g=>!g.requiresAuth||n.isLoggedIn)),r=x(()=>t.path),i=T(null),c=T(null),u=()=>{i.value=null,c.value=null},d=g=>g.filter(y=>!y.requiresAuth||n.isLoggedIn),p=g=>g.filter(y=>!y.requiresAuth||n.isLoggedIn),v=g=>g.children?d(g.children).length>0:!1,h=g=>g.children?p(g.children).length>0:!1,m={chat:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",image:"M4 16l4.586-4.586a2 2 0 0 1 2.828 0L16 16m-2-2l1.586-1.586a2 2 0 0 1 2.828 0L20 14m-6-6h.01M6 20h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2z",list:"M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01",clock:"M12 8v4l3 3m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0z",bolt:"M13 2L3 14h9l-1 8 10-12h-9l1-8z",server:"M4 4h16v4H4zM4 12h16v4H4zM6 8h.01M6 16h.01M14 8h4M14 16h4",cloud:"M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z",calendar:"M8 2v4M16 2v4M3 10h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z",ticket:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2z",redeem:"M15 5v2m0 4v2m0 4v2M5 5a2 2 0 0 0-2 2v3a2 2 0 1 1 0 4v3a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-3a2 2 0 1 1 0-4V7a2 2 0 0 0-2-2H5z",order:"M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2m-6 9l2 2 4-4",credit:"M12 8c-2 0-4 1.5-4 3s2 3 4 3 4 1.5 4 3-2 3-4 3M12 4v2m0 12v2M8 12h.01M16 12h.01M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20z",group:"M17 20h5v-2a3 3 0 0 0-5.356-1.857M2 20h5v-2a3 3 0 0 0-5.356 1.857M7 20v2m5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6m6 4v2m-6-2v2M2 7a3 3 0 1 0 0-6 3 3 0 0 0 0 6m6 4v2m-6-2v2",intention:"M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2"};return(g,y)=>(_(),w(_e,null,[l("header",qme,[l("div",jme,[z(f(An),{class:"mall-header__brand",to:"/"},{default:W(()=>[f(a).siteInfo.siteLogoUrl?(_(),w("img",{key:0,src:f($s)(f(a).siteInfo.siteLogoUrl),alt:f(a).siteInfo.siteName,class:V(["mall-header__brand-logo",{"mall-header__brand-logo--includes-name":f(a).siteInfo.siteLogoIncludesName}]),onLoad:y[0]||(y[0]=b=>b.target.classList.add("loaded"))},null,42,Wme)):K("",!0),f(a).siteInfo.siteLogoUrl?K("",!0):(_(),w("span",Gme,"AI")),!f(a).siteInfo.siteLogoUrl||!f(a).siteInfo.siteLogoIncludesName?(_(),w("span",Yme,I(f(a).siteInfo.siteName),1)):K("",!0)]),_:1}),l("nav",Xme,[(_(!0),w(_e,null,Re(o.value,b=>(_(),w(_e,{key:b.path},[v(b)?(_(),w("div",{key:0,class:V(["mall-header__nav-item",{"is-active":r.value===b.path,"is-open":i.value===b.path}]),onMouseenter:C=>i.value=b.path,onMouseleave:y[1]||(y[1]=C=>{i.value=null,c.value=null})},[z(f(An),{to:b.path,class:"mall-header__nav-link",onClick:u},{default:W(()=>[Ce(I(b.label)+" ",1),Jme]),_:2},1032,["to"]),l("div",Zme,[e0e,(_(!0),w(_e,null,Re(d(b.children),C=>(_(),w(_e,{key:C.path},[h(C)?(_(),w("div",{key:0,class:V(["nav-dropdown__group",{"is-expanded":c.value===C.path}]),onMouseenter:k=>c.value=C.path},[z(f(An),{to:C.path,class:"nav-dropdown__parent",onClick:u},{default:W(()=>[C.icon?(_(),w("span",n0e,[(_(),w("svg",a0e,[l("path",{d:m[C.icon]},null,8,s0e)]))])):K("",!0),l("span",o0e,I(C.label),1),C.tag?(_(),w("span",{key:1,class:V(["nav-dropdown__tag",`nav-dropdown__tag--${C.tag.type}`])},I(C.tag.text),3)):K("",!0),r0e]),_:2},1032,["to"]),l("div",l0e,[(_(!0),w(_e,null,Re(p(C.children),k=>(_(),ue(f(An),{key:k.path,to:k.path,class:V([{"is-active":f(t).path===k.path},"nav-dropdown__sub-item"]),onClick:u},{default:W(()=>[Ce(I(k.label)+" ",1),k.tag?(_(),w("span",{key:0,class:V(["nav-dropdown__tag",`nav-dropdown__tag--${k.tag.type}`])},I(k.tag.text),3)):K("",!0)]),_:2},1032,["to","class"]))),128))])],42,t0e)):(_(),ue(f(An),{key:1,to:C.path,class:V([{"is-active":f(t).path===C.path},"nav-dropdown__child"]),onClick:u},{default:W(()=>[C.icon?(_(),w("span",i0e,[(_(),w("svg",c0e,[l("path",{d:m[C.icon]},null,8,u0e)]))])):K("",!0),l("span",null,I(C.label),1),C.tag?(_(),w("span",{key:1,class:V(["nav-dropdown__tag",`nav-dropdown__tag--${C.tag.type}`])},I(C.tag.text),3)):K("",!0)]),_:2},1032,["to","class"]))],64))),128))])],42,Qme)):(_(),ue(f(An),{key:1,class:V([{"is-active":r.value===b.path},"mall-header__nav-link"]),to:b.path},{default:W(()=>[Ce(I(b.label),1)]),_:2},1032,["class","to"]))],64))),128))]),l("div",d0e,[f(n).isLoggedIn?(_(),w(_e,{key:0},[z(f$),z(f(An),{class:"mall-header__secondary",to:"/credits/purchase"},{default:W(()=>[Ce("购买")]),_:1}),z(f(An),{class:"mall-header__secondary",to:"/user/usage"},{default:W(()=>[Ce("使用记录")]),_:1}),z(f(An),{class:"mall-header__primary",to:"/user/profile"},{default:W(()=>[Ce("个人中心")]),_:1})],64)):(_(),w(_e,{key:1},[z(f(An),{class:"mall-header__secondary",to:"/auth/login"},{default:W(()=>[Ce("登录")]),_:1}),z(f(An),{class:"mall-header__primary",to:"/auth/register"},{default:W(()=>[Ce("注册")]),_:1})],64))])])]),l("header",f0e,[l("div",p0e,[z(f(An),{class:"mobile-header__brand",to:"/"},{default:W(()=>[f(a).siteInfo.siteLogoUrl?(_(),w("img",{key:0,src:f($s)(f(a).siteInfo.siteLogoUrl),alt:f(a).siteInfo.siteName,class:V(["mobile-header__brand-logo",{"mobile-header__brand-logo--includes-name":f(a).siteInfo.siteLogoIncludesName}]),onLoad:y[2]||(y[2]=b=>b.target.classList.add("loaded"))},null,42,v0e)):K("",!0),f(a).siteInfo.siteLogoUrl?K("",!0):(_(),w(_e,{key:1},[h0e,l("strong",null,I(f(a).siteInfo.siteName),1)],64)),f(a).siteInfo.siteLogoUrl&&!f(a).siteInfo.siteLogoIncludesName?(_(),w("strong",m0e,I(f(a).siteInfo.siteName),1)):K("",!0)]),_:1}),l("div",g0e,[f(n).isLoggedIn?(_(),w(_e,{key:0},[z(f$),z(f(An),{class:"mobile-header__secondary",to:"/credits/purchase"},{default:W(()=>[Ce("购买")]),_:1}),z(f(An),{class:"mobile-header__secondary",to:"/user/usage"},{default:W(()=>[Ce("使用记录")]),_:1}),z(f(An),{class:"mall-header__primary",to:"/user/profile"},{default:W(()=>[Ce("个人中心")]),_:1})],64)):(_(),w(_e,{key:1},[z(f(An),{class:"mobile-header__secondary",to:"/auth/login"},{default:W(()=>[Ce("登录")]),_:1}),z(f(An),{class:"mobile-header__primary",to:"/auth/register"},{default:W(()=>[Ce("注册")]),_:1})],64))])]),_0e])],64))}}),b0e=Ct(y0e,[["__scopeId","data-v-e9912cf8"]]),w0e=e=>(xt("data-v-5bde8a48"),e=e(),Tt(),e),C0e={class:"page-container user-center-layout"},k0e={class:"user-center-layout__sidebar"},S0e={class:"user-center-layout__user-card"},E0e={class:"user-center-layout__avatar","aria-hidden":"true"},$0e={class:"user-center-layout__user-info"},x0e={class:"user-center-layout__nav","aria-label":"个人中心导航"},T0e=["innerHTML"],I0e=w0e(()=>l("div",{class:"user-center-layout__divider"},null,-1)),A0e={class:"user-center-layout__content"},N0e=le({__name:"UserCenterLayout",setup(e){const t=pn(),n=_a(),a=x(()=>{var u;return((u=n.userInfo)==null?void 0:u.name)||"未命名用户"}),s=x(()=>{var u;return((u=n.userInfo)==null?void 0:u.phone)||"--"}),o=x(()=>{var u;return((u=n.userInfo)==null?void 0:u.email)||"未设置邮箱"}),r=x(()=>{var u;return[{label:"个人中心首页",to:"/user/profile",icon:"user"},{label:"我的意向单",to:"/user/intentions",icon:"intention"},{label:"我的发票",to:"/user/invoice-applies",icon:"order"},{label:"开票信息",to:"/user/invoice-info",icon:"invoice"},{label:"我的反馈",to:"/user/feedbacks",icon:"feedback"},{label:"账户安全",to:"/user/security",icon:"shield"},{label:"登录设备管理",to:"/user/devices",icon:"device"},...((u=n.userInfo)==null?void 0:u.userType)==="enterprise"?[{label:"企业认证",to:"/user/enterprise-verification",icon:"enterprise"}]:[]]}),i={user:'',intention:'',order:'',invoice:'',feedback:'',shield:'',device:'',enterprise:''},c=async()=>{try{await ua.confirm("确认退出当前账号吗?","退出登录",{type:"warning",confirmButtonText:"确认退出",cancelButtonText:"取消"})}catch{return}try{await uhe()}finally{n.clearSession(),await t.push({name:"login"})}};return(u,d)=>(_(),w("section",C0e,[l("aside",k0e,[l("div",S0e,[l("div",E0e,I(a.value.slice(0,1)),1),l("div",$0e,[l("strong",null,I(a.value),1),l("span",null,I(s.value),1),l("span",null,I(o.value),1)])]),z(f(An),{class:"user-center-layout__edit",to:{name:"user-profile",query:{edit:"1"}}},{default:W(()=>[Ce("编辑资料")]),_:1}),l("nav",x0e,[(_(!0),w(_e,null,Re(r.value,p=>(_(),ue(f(An),{key:p.to,to:p.to,class:"user-center-layout__link"},{default:W(()=>[l("span",{class:"user-center-layout__icon",innerHTML:i[p.icon]},null,8,T0e),l("span",null,I(p.label),1)]),_:2},1032,["to"]))),128)),I0e,l("button",{type:"button",class:"user-center-layout__logout",onClick:c},"退出登录")])]),l("div",A0e,[be(u.$slots,"default",{},void 0,!0)])]))}}),R0e=Ct(N0e,[["__scopeId","data-v-5bde8a48"]]),Dd=e=>(xt("data-v-352f1b30"),e=e(),Tt(),e),P0e={class:"app-shell"},M0e=Dd(()=>l("p",{class:"mall-fab-guide__text"},"遇到问题或有采购意向?点这里联系我们",-1)),B0e=Dd(()=>l("span",{class:"mall-fab-group__item-label"},"意见反馈",-1)),L0e=Dd(()=>l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"}),l("line",{x1:"8",y1:"10",x2:"16",y2:"10"}),l("line",{x1:"8",y1:"14",x2:"12",y2:"14"})],-1)),O0e=Dd(()=>l("span",{class:"mall-fab-group__item-label"},"提交意向单",-1)),D0e=Dd(()=>l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M9 11l3 3L22 4"}),l("path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"})],-1)),V0e=["aria-expanded"],F0e=Dd(()=>l("svg",{class:"mall-fab-group__trigger-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.2","stroke-linecap":"round","stroke-linejoin":"round"},[l("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),l("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1)),U0e=[F0e],Bg="mall_fab_guide_dismissed",z0e=le({__name:"MallLayout",setup(e){const t=fa(),n=_a(),a=x(()=>n.isLoggedIn),s=x(()=>!!t.meta.hideFooter),o=T("right"),r=T(null),i=T(null),c=T(!1),u=T(!1);let d=!1,p=null,v=null;const h=T(!1),m=T(!1);let g=null;const y=x(()=>!m.value),b=()=>{if(!a.value||h.value)return;let M=!1;try{M=localStorage.getItem(Bg)==="1"}catch{M=!0}M||(g=setTimeout(()=>{h.value=!0,g=setTimeout(()=>C(),6e3)},800))},C=()=>{h.value=!1,m.value=!0;try{localStorage.setItem(Bg,"1")}catch{}g&&(clearTimeout(g),g=null)};Te(a,M=>{M?b():(h.value=!1,m.value=!1,g&&(clearTimeout(g),g=null))},{immediate:!0}),on(()=>{g&&(clearTimeout(g),g=null)});const k=()=>window.matchMedia("(max-width: 768px)").matches,S=()=>k()?16:24,$=()=>k()?76:120,E=x(()=>{if(r.value===null)return{};const M=`${S()}px`;return c.value&&i.value!==null?{left:`${i.value}px`,right:"auto",top:`${r.value}px`,bottom:"auto"}:{left:o.value==="left"?M:"auto",right:o.value==="right"?M:"auto",top:`${r.value}px`,bottom:"auto"}}),R=M=>{if(!p)return;const j=p.getBoundingClientRect();if(!v)return;const F=Math.hypot(M.clientX-v.x,M.clientY-v.y);if(!d&&F<5)return;const q=16,L=Math.max(q,window.innerHeight-j.height-$()),U=S(),O=Math.max(U,window.innerWidth-j.width-S());i.value=Math.min(O,Math.max(U,M.clientX-j.width/2)),r.value=Math.min(L,Math.max(q,M.clientY-j.height/2)),d=!0},A=M=>{var j;p&&(o.value=M.clientX{var F;p=M.currentTarget,d=!1,c.value=!0,v={x:M.clientX,y:M.clientY},(F=p.setPointerCapture)==null||F.call(p,M.pointerId)},P=M=>{d?(M.preventDefault(),M.stopImmediatePropagation(),d=!1):u.value=!1},B=()=>{if(d){d=!1;return}if(u.value=!u.value,u.value&&!m.value&&(m.value=!0,h.value&&C(),a.value))try{localStorage.setItem(Bg,"1")}catch{}};return(M,j)=>{const F=Ne("RouterView"),q=Ne("RouterLink");return _(),w("div",P0e,[z(b0e),l("main",{class:V(["mall-main",{"mall-main--no-footer":s.value}])},[z(F,null,{default:W(({Component:L})=>[f(t).meta.userCenter?(_(),ue(R0e,{key:0},{default:W(()=>[(_(),ue(Ft(L),{key:f(t).name}))]),_:2},1024)):(_(),ue(Ft(L),{key:1}))]),_:1})],2),s.value?K("",!0):(_(),ue(kme,{key:0})),l("div",{class:V(["mall-fab-group",{"is-dragging":c.value,"is-expanded":u.value,"is-pulsing":y.value,"is-left":o.value==="left"}]),style:Je(E.value)},[z(aa,{name:"fab-guide"},{default:W(()=>[h.value?(_(),w("div",{key:0,class:V(["mall-fab-guide",{"mall-fab-guide--left":o.value==="left"}]),role:"status"},[M0e,l("button",{type:"button",class:"mall-fab-guide__close",onClick:C},"知道了")],2)):K("",!0)]),_:1}),z(q,{class:"mall-fab-group__item",to:"/feedbacks/create","aria-label":"意见反馈",title:"意见反馈",onPointerdown:j[0]||(j[0]=qe(L=>N(L),["stop"])),onPointermove:R,onPointerup:A,onPointercancel:A,onDragstart:j[1]||(j[1]=qe(()=>{},["prevent"])),onClickCapture:P},{default:W(()=>[B0e,L0e]),_:1}),z(q,{class:"mall-fab-group__item",to:"/intentions/create","aria-label":"提交意向单",title:"提交意向单",onPointerdown:j[2]||(j[2]=qe(L=>N(L),["stop"])),onPointermove:R,onPointerup:A,onPointercancel:A,onDragstart:j[3]||(j[3]=qe(()=>{},["prevent"])),onClickCapture:P},{default:W(()=>[O0e,D0e]),_:1}),l("button",{type:"button",class:"mall-fab-group__trigger","aria-label":"快捷入口","aria-expanded":u.value,onPointerdown:j[4]||(j[4]=L=>N(L)),onPointermove:R,onPointerup:A,onPointercancel:A,onDragstart:j[5]||(j[5]=qe(()=>{},["prevent"])),onClick:B},U0e,40,V0e)],6)])}}}),H0e=Ct(z0e,[["__scopeId","data-v-352f1b30"]]),K2=e=>dt.get("/mall-api/models",{params:e}),K0e=()=>dt.get("/mall-api/models/types"),sA=e=>dt.get(`/mall-api/models/${e}`),q0e=e=>dt.get("/mall-api/models/experiences",{params:e}),j0e=e=>dt.get(`/mall-api/models/${e}/conversations`),W0e=e=>dt.get(`/mall-api/models/conversations/${e}/messages`),G0e=e=>dt.post(`/mall-api/models/experiences/${e}/cancel`),Y0e=(e,t,n)=>dt.post(`/mall-api/models/${e}/experience/invoke`,t,{timeout:19e4,...n}),X0e=e=>{const t=h0().replace(/\/$/,"");return`${/^https?:\/\//i.test(t)?t:t||""}/mall-api/models/${e}/experience/stream`},oA=e=>!!(e&&typeof e=="object"&&"code"in e&&"message"in e),Q0e=async e=>{if(!(e.headers.get("content-type")||"").includes("application/json"))return null;try{return await e.clone().json()}catch{return null}},J0e=(e,t)=>oA(t)&&t.message?t.message:`体验流请求失败:${e.status}`,rA=(e,t,n)=>{const a=y2(),s={"Content-Type":"application/json"};return a&&(s.Authorization=`Bearer ${a}`),fetch(X0e(e),{method:"POST",headers:s,body:JSON.stringify(t),signal:n}).then(async o=>{if(o.ok)return o;const r=await Q0e(o),i=oA(r)?r.code:void 0,c=J0e(o,r);await o6({status:o.status,code:i});const u=new Error(c);throw u.code=i,u.status=o.status,u})},Z0e=e=>{var s;const t=e.split(/\r?\n/).map(o=>o.trim()),n=(s=t.find(o=>o.startsWith("event:")))==null?void 0:s.replace(/^event:\s?/,""),a=t.filter(o=>o.startsWith("data:")).map(o=>o.replace(/^data:\s?/,"")).join(` `);return a==="[DONE]"?{event:"done",data:{status:"success"}}:!n||!a?null:{event:n,data:JSON.parse(a)}},ege=e=>(xt("data-v-61b00e16"),e=e(),Tt(),e),tge=ege(()=>l("div",{class:"ha-popup__header"},[l("span",{class:"ha-popup__badge"},"平台公告")],-1)),nge={class:"ha-popup__body"},age={class:"ha-popup__title"},sge={class:"ha-popup__time"},oge={class:"ha-popup__summary"},rge={class:"ha-popup__footer"},lge=["disabled"],ige=le({__name:"HomeAnnouncementPopup",setup(e){const t=_a(),n=$0(),a=pn(),s=T(!1),o=T(null),r=T(!1),i=T(!1);ft(async()=>{if(t.isLoggedIn)try{const h=await U2({notifyType:"announcement",readStatus:"unread",pageSize:1});h.list&&h.list.length>0&&(o.value=h.list[0],s.value=!0)}catch{}});const c=async()=>{if(!(i.value||!o.value)){i.value=!0;try{await Ohe(o.value.id),n.markOneAsRead()}catch{}}},u=async()=>{if(!r.value){r.value=!0;try{await c()}finally{r.value=!1}s.value=!1}},d=()=>{c()},p=()=>{if(!o.value)return;i.value=!0;const h=o.value.id;s.value=!1,a.push({name:"user-notifications",query:{id:String(h)}})},v=h=>{const m=new Date(h);if(Number.isNaN(m.getTime()))return h;const g=y=>String(y).padStart(2,"0");return`${m.getFullYear()}-${g(m.getMonth()+1)}-${g(m.getDate())} ${g(m.getHours())}:${g(m.getMinutes())}`};return(h,m)=>{const g=Ne("el-dialog");return o.value?(_(),ue(g,{key:0,modelValue:s.value,"onUpdate:modelValue":m[0]||(m[0]=y=>s.value=y),width:"480px","align-center":"",teleported:!1,"close-on-click-modal":!1,class:"home-announcement-popup",onClose:d},{header:W(()=>[tge]),footer:W(()=>[l("div",rge,[l("button",{class:"ha-popup__btn ha-popup__btn--ghost",onClick:p},"查看详情"),l("button",{class:"ha-popup__btn ha-popup__btn--primary",disabled:r.value,onClick:u},I(r.value?"处理中…":"我知道了"),9,lge)])]),default:W(()=>[l("div",nge,[l("h2",age,I(o.value.title),1),l("p",sge,I(v(o.value.sendTime)),1),l("p",oge,I(o.value.summary),1)])]),_:1},8,["modelValue"])):K("",!0)}}}),cge=Ct(ige,[["__scopeId","data-v-61b00e16"]]),lA=e=>(xt("data-v-bb8881d9"),e=e(),Tt(),e),uge=["aria-hidden"],dge={class:"home-banner__slot"},fge=lA(()=>l("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"15 18 9 12 15 6"})],-1)),pge=[fge],vge=lA(()=>l("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"9 18 15 12 9 6"})],-1)),hge=[vge],mge={class:"home-banner__indicators",role:"tablist","aria-label":"轮播导航"},gge=["aria-label","aria-selected","onClick"],_ge=500,yge=le({__name:"HomeBannerCarousel",props:{slides:{default:()=>[]},interval:{default:5e3}},setup(e){const t=e,n=t.interval,a=x(()=>t.slides.length),s=x(()=>{const J=a.value;if(J===0)return[];const ee=[];ee.push({slide:t.slides[J-1],isClone:!0});for(const Q of t.slides)ee.push({slide:Q,isClone:!1});return ee.push({slide:t.slides[0],isClone:!0}),ee}),o=T(1),r=T(!1),i=x(()=>{const J=a.value;return J===0?0:o.value===0?J-1:o.value===J+1?0:o.value-1}),c=T("440px"),u=()=>{if(typeof window>"u"){c.value="440px";return}const J=window.innerWidth;J<=768?c.value="280px":J<=1024?c.value="380px":c.value="440px"},d=(J,ee)=>{a.value!==0&&(r.value=ee,o.value=J)},p=()=>{r.value||a.value===0||d(o.value+1,!0)},v=()=>{r.value||a.value===0||d(o.value-1,!0)},h=J=>{r.value||a.value===0||J!==i.value&&d(J+1,!0)},m=()=>{r.value=!1;const J=a.value;o.value===0?o.value=J:o.value===J+1&&(o.value=1)};let g=null;const y=T(!1),b=()=>{C(),g=setInterval(()=>{y.value||p()},n)},C=()=>{g!==null&&(clearInterval(g),g=null)};let k=0,S=0,$=0,E=0,R=null,A=!1;const N=T(!1),P=T(!1),B=["a[href]","button","input","select","textarea","label","summary",'[role="button"]','[role="link"]','[role="menuitem"]','[role="tab"]','[contenteditable="true"]',"[data-banner-drag-ignore]"].join(","),M=J=>{k=J.touches[0].clientX,S=J.touches[0].clientY},j=J=>{const ee=J.changedTouches[0].clientX-k,Q=J.changedTouches[0].clientY-S;Math.abs(ee)<40||Math.abs(ee)0?v():p())},F=()=>{N.value=!1,R=null,A=!1},q=J=>J instanceof Element?J.closest(B)!==null:!1,L=J=>{var ee,Q;J.pointerType!=="mouse"||J.button!==0||a.value<=1||q(J.target)||($=J.clientX,E=J.clientY,R=J.pointerId,A=!1,N.value=!0,y.value=!0,(Q=(ee=J.currentTarget)==null?void 0:ee.setPointerCapture)==null||Q.call(ee,J.pointerId))},U=J=>{if(!N.value||J.pointerId!==R)return;const ee=J.clientX-$,Q=J.clientY-E;Math.abs(ee)>8&&Math.abs(ee)>Math.abs(Q)&&(A=!0,J.preventDefault())},O=J=>{var X,he;if(!N.value||J.pointerId!==R)return;const ee=J.clientX-$,Q=J.clientY-E,H=Math.abs(ee)>=40&&Math.abs(ee)>Math.abs(Q);(he=(X=J.currentTarget)==null?void 0:X.releasePointerCapture)==null||he.call(X,J.pointerId),(A||H)&&(P.value=!0,window.setTimeout(()=>{P.value=!1},0)),F(),H&&(ee>0?v():p())},G=J=>{var ee,Q;J.pointerId===R&&((Q=(ee=J.currentTarget)==null?void 0:ee.releasePointerCapture)==null||Q.call(ee,J.pointerId),F())},ae=J=>{P.value&&(J.preventDefault(),J.stopPropagation(),P.value=!1)},Z=J=>{J.key==="ArrowLeft"&&(v(),J.preventDefault()),J.key==="ArrowRight"&&(p(),J.preventDefault())};ft(()=>{u(),window.addEventListener("resize",u),b()}),on(()=>{window.removeEventListener("resize",u),C()});const te=x(()=>{const J=a.value;return J>0?(J+2)*100:100}),ie=x(()=>{const J=a.value;return J>0?100/(J+2):100}),oe=x(()=>`translateX(${-o.value*ie.value}%)`);return(J,ee)=>a.value>0?(_(),w("section",{key:0,class:"home-banner","aria-label":"首页推广轮播","aria-roledescription":"carousel",tabindex:"0",onMouseenter:ee[2]||(ee[2]=Q=>y.value=!0),onMouseleave:ee[3]||(ee[3]=Q=>y.value=!1),onKeydown:Z},[l("div",{class:V(["home-banner__viewport",{"home-banner__viewport--dragging":N.value}]),style:Je({height:c.value}),onTouchstartPassive:M,onTouchendPassive:j,onPointerdown:L,onPointermove:U,onPointerup:O,onPointercancel:G,onClickCapture:ae},[l("div",{class:V(["home-banner__track",{"home-banner__track--animating":r.value}]),style:Je({width:`${te.value}%`,transform:oe.value,transitionDuration:r.value?`${_ge}ms`:"0ms"}),onTransitionend:m},[(_(!0),w(_e,null,Re(s.value,(Q,H)=>(_(),w("div",{key:`${Q.slide.key}-${H}`,class:V("home-banner__slide"),style:Je({width:`${ie.value}%`}),"aria-hidden":H!==o.value,role:"group","aria-roledescription":"slide"},[l("div",dge,[be(J.$slots,"slide",{slide:Q.slide,index:Q.isClone?H===0?a.value-1:0:H-1},void 0,!0)])],12,uge))),128))],38),l("button",{class:"home-banner__arrow home-banner__arrow--left","aria-label":"上一张",onPointerdown:ee[0]||(ee[0]=qe(()=>{},["stop"])),onClick:qe(v,["stop"])},pge,32),l("button",{class:"home-banner__arrow home-banner__arrow--right","aria-label":"下一张",onPointerdown:ee[1]||(ee[1]=qe(()=>{},["stop"])),onClick:qe(p,["stop"])},hge,32)],38),l("div",mge,[(_(!0),w(_e,null,Re(J.slides,(Q,H)=>(_(),w("button",{key:Q.key,"aria-label":`第 ${H+1} 张`,"aria-selected":H===i.value,role:"tab",class:V(["home-banner__dot",{"home-banner__dot--active":H===i.value}]),onClick:X=>h(H)},null,10,gge))),128))])],32)):K("",!0)}}),bge=Ct(yge,[["__scopeId","data-v-bb8881d9"]]),wge={},ev=e=>(xt("data-v-104fff11"),e=e(),Tt(),e),Cge={class:"banner-slide"},kge=ev(()=>l("div",{class:"banner-slide__bg","aria-hidden":"true"},null,-1)),Sge=ev(()=>l("div",{class:"banner-slide__overlay","aria-hidden":"true"},null,-1)),Ege={class:"banner-slide__content"},$ge=ev(()=>l("span",{class:"banner-slide__tag"},"平台已上线",-1)),xge=ev(()=>l("h2",null,[Ce("AI Store"),l("br"),Ce("智云新疆")],-1)),Tge=ev(()=>l("p",null,"汇聚集团优质模型资源,提供文本对话、嵌入模型、文生图等多种 AI 能力。",-1)),Ige={class:"banner-slide__btns"};function Age(e,t){const n=Ne("RouterLink");return _(),w("div",Cge,[kge,Sge,l("div",Ege,[$ge,xge,Tge,l("div",Ige,[z(n,{to:"/models",class:"banner-slide__btn banner-slide__btn--fill"},{default:W(()=>[Ce("立即体验")]),_:1}),z(n,{to:"/support",class:"banner-slide__btn banner-slide__btn--ghost"},{default:W(()=>[Ce("查看文档")]),_:1})])])])}const Nge=Ct(wge,[["render",Age],["__scopeId","data-v-104fff11"]]),tv=e=>(xt("data-v-ede66e93"),e=e(),Tt(),e),Rge={class:"cyber","aria-label":"AI应用市场"},Pge=mn('',1),Mge={class:"cyber__main"},Bge=mn('

SYS//MARKETPLACE > INIT

AI应用市场

高效工作::智能助手

',3),Lge={class:"cyber__modules"},Oge={class:"cyber__mod-id"},Dge={class:"cyber__mod-name"},Vge={class:"cyber__mod-status"},Fge=tv(()=>l("span",{class:"cyber__status-dot","aria-hidden":"true"},null,-1)),Uge=tv(()=>l("span",{class:"cyber__mod-arrow","aria-hidden":"true"},"→",-1)),zge={class:"cyber__actions"},Hge=tv(()=>l("span",{class:"cyber__cta-prompt"},">",-1)),Kge=tv(()=>l("span",null,"立即体验",-1)),qge=tv(()=>l("span",{class:"cyber__cta-bar","aria-hidden":"true"},null,-1)),jge=mn(``,5),Wge=le({__name:"BannerSlide2",setup(e){const t=[{id:"M01",name:"数字员工",status:"ACTIVE"},{id:"M02",name:"智能办公",status:"ACTIVE"},{id:"M03",name:"数据分析",status:"ACTIVE"},{id:"M04",name:"自动化流程",status:"ACTIVE"}];return(n,a)=>{const s=Ne("RouterLink");return _(),w("section",Rge,[Pge,l("div",Mge,[Bge,l("ol",Lge,[(_(),w(_e,null,Re(t,o=>l("li",{key:o.id},[z(s,{to:"/apps",class:"cyber__mod"},{default:W(()=>[l("span",Oge,I(o.id),1),l("span",Dge,I(o.name),1),l("span",Vge,[Fge,Ce(I(o.status),1)]),Uge]),_:2},1024)])),64))]),l("div",zge,[z(s,{to:"/apps",class:"cyber__cta"},{default:W(()=>[Hge,Kge,qge]),_:1})])]),jge])}}}),Gge=Ct(Wge,[["__scopeId","data-v-ede66e93"]]),Vd=e=>(xt("data-v-0d11e12d"),e=e(),Tt(),e),Yge={class:"stella","aria-label":"星辰超级智能体 TeleAgent"},Xge=Vd(()=>l("div",{class:"stella__atmos","aria-hidden":"true"},[l("div",{class:"stella__nebula"}),l("div",{class:"stella__vignette"}),l("div",{class:"stella__grain"})],-1)),Qge=Vd(()=>l("svg",{class:"stella__chart",viewBox:"0 0 560 480",preserveAspectRatio:"xMidYMid meet","aria-hidden":"true",focusable:"false"},[l("defs",null,[l("radialGradient",{id:"stella-star",cx:"50%",cy:"50%",r:"50%"},[l("stop",{offset:"0%","stop-color":"#fff7e0"}),l("stop",{offset:"35%","stop-color":"#f0c674"}),l("stop",{offset:"100%","stop-color":"#f0c674","stop-opacity":"0"})]),l("filter",{id:"stella-glow",x:"-80%",y:"-80%",width:"260%",height:"260%"},[l("feGaussianBlur",{stdDeviation:"2.4",result:"b"}),l("feMerge",null,[l("feMergeNode",{in:"b"}),l("feMergeNode",{in:"SourceGraphic"})])])]),l("circle",{cx:"300",cy:"240",r:"210",class:"ring ring--outer"}),l("circle",{cx:"300",cy:"240",r:"150",class:"ring ring--inner"}),l("g",{class:"lines",filter:"url(#stella-glow)"},[l("polyline",{points:"150,120 244,178 120,250 330,236 470,196 380,330 286,398 498,372"}),l("line",{x1:"244",y1:"178",x2:"330",y2:"236"})]),l("g",{class:"stars"},[l("circle",{cx:"150",cy:"120",r:"3",class:"node node--d1"}),l("circle",{cx:"244",cy:"178",r:"2.4",class:"node node--d2"}),l("circle",{cx:"120",cy:"250",r:"2",class:"node node--d3"}),l("circle",{cx:"330",cy:"236",r:"4",class:"node node--main"}),l("circle",{cx:"470",cy:"196",r:"2.6",class:"node node--d1"}),l("circle",{cx:"380",cy:"330",r:"2.2",class:"node node--d2"}),l("circle",{cx:"286",cy:"398",r:"2.6",class:"node node--d3"}),l("circle",{cx:"498",cy:"372",r:"2",class:"node node--d1"})]),l("circle",{cx:"330",cy:"236",r:"9",fill:"url(#stella-star)",class:"halo"})],-1)),Jge=mn('

◈ STELLAR AGENT / 星图档案 №03

星辰超级智能体TeleAgent

一键安装本地的 Agent 助理产品,能干可靠的 AI 办公搭子

',3),Zge=Vd(()=>l("span",null,"立即体验",-1)),e_e=Vd(()=>l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},[l("path",{d:"M3 8h9M8.5 4l4 4-4 4",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),t_e=[Zge,e_e],n_e=Vd(()=>l("p",{class:"stella__foot"},[l("span",{class:"stella__dot","aria-hidden":"true"}),Ce("体验通道开放至 "),l("time",{datetime:"2026-09-30"},"2026.09.30")],-1)),a_e=Vd(()=>l("dl",{class:"stella__coords","aria-hidden":"true"},[l("div",null,[l("dt",null,"RA"),l("dd",null,"14ʰ 29ᵐ 43ˢ")]),l("div",null,[l("dt",null,"DEC"),l("dd",null,"−62° 40′ 12″")]),l("div",null,[l("dt",null,"MAG"),l("dd",null,"+0.01")])],-1)),s_e="https://www.teleai.com.cn/doc/bKrLmQNepNQpUHjWEfqX/pUxSKj00HB5artzpBdgZ",o_e="https://www.teleai.com.cn/product/teleagent",r_e=le({__name:"BannerSlide3",setup(e){return(t,n)=>(_(),w("section",Yge,[Xge,Qge,l("div",{class:"stella__content"},[Jge,l("div",{class:"stella__actions"},[l("a",{href:o_e,class:"stella__btn stella__btn--primary",target:"_blank",rel:"noopener noreferrer"},t_e),l("a",{href:s_e,class:"stella__btn stella__btn--ghost",target:"_blank",rel:"noopener noreferrer"}," 产品文档 ")]),n_e]),a_e]))}}),l_e=Ct(r_e,[["__scopeId","data-v-0d11e12d"]]),q2=e=>(xt("data-v-033175d5"),e=e(),Tt(),e),i_e={class:"demo","aria-label":"GLM-5.2 大语言模型"},c_e=q2(()=>l("div",{class:"demo__atmos","aria-hidden":"true"},[l("div",{class:"demo__glow"}),l("div",{class:"demo__grid"})],-1)),u_e={class:"demo__copy"},d_e=mn('

FRONTIER MODEL · 智源旗舰

通用认知大模型GLM-5.2

一个模型,全栈能力 —— 深度推理、多模态生成、智能体编程、长上下文对话。

',3),f_e={class:"demo__actions"},p_e=q2(()=>l("span",null,"立即体验",-1)),v_e=q2(()=>l("svg",{width:"15",height:"15",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},[l("path",{d:"M3 8h9M8.5 4l4 4-4 4",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),h_e=mn(`
GGLM-5.2在线

用 Python 写一个快速排序

def qsort(a):
    if len(a) < 2: return a
    p = a[0]
    lo = [x for x in a[1:] if x < p]
    hi = [x for x in a[1:] if x >= p]
    return qsort(lo) + [p] + qsort(hi)

分治思想,平均时间复杂度 O(n log n)

`,1),m_e=le({__name:"BannerSlide4",setup(e){return(t,n)=>{const a=Ne("RouterLink");return _(),w("section",i_e,[c_e,l("div",u_e,[d_e,l("div",f_e,[z(a,{to:"/models",class:"demo__btn demo__btn--primary"},{default:W(()=>[p_e,v_e]),_:1}),z(a,{to:"/support",class:"demo__btn demo__btn--ghost"},{default:W(()=>[Ce("技术文档")]),_:1})])]),h_e])}}}),g_e=Ct(m_e,[["__scopeId","data-v-033175d5"]]),j2=e=>(xt("data-v-a6e22bd9"),e=e(),Tt(),e),__e={class:"tp","aria-label":"星辰超级智能体 TeleAgent"},y_e=j2(()=>l("div",{class:"tp__atmos","aria-hidden":"true"},[l("div",{class:"tp__glow tp__glow--a"}),l("div",{class:"tp__glow tp__glow--b"}),l("div",{class:"tp__grid"})],-1)),b_e=mn('

中国电信自研 · 桌面 AI 助手

TeleAgent星辰超级智能体

本地驻留 · 数据主权
跨应用打通 · 终结复制粘贴
思维透明 · 随时介入修正
',3),w_e=j2(()=>l("span",null,"立即体验",-1)),C_e=j2(()=>l("svg",{width:"15",height:"15",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},[l("path",{d:"M3 8h9M8.5 4l4 4-4 4",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),k_e=[w_e,C_e],S_e=mn('
TeleAgent.app

整理本月销售数据,生成周报

10:42
TTeleAgent正在执行
  • ✓读取「销售数据_06月.xlsx」
  • ✓按区域汇总 + 环比分析
  • ▸生成 Word 报告…
',1),E_e="https://www.teleai.com.cn/doc/bKrLmQNepNQpUHjWEfqX/pUxSKj00HB5artzpBdgZ",$_e="https://www.teleai.com.cn/product/teleagent",x_e=le({__name:"BannerSlide5",setup(e){return(t,n)=>(_(),w("section",__e,[y_e,l("div",{class:"tp__left"},[b_e,l("div",{class:"tp__actions"},[l("a",{href:$_e,class:"tp__btn tp__btn--primary",target:"_blank",rel:"noopener noreferrer"},k_e),l("a",{href:E_e,class:"tp__btn tp__btn--ghost",target:"_blank",rel:"noopener noreferrer"}," 产品文档 ")])]),S_e]))}}),T_e=Ct(x_e,[["__scopeId","data-v-a6e22bd9"]]),La=e=>(xt("data-v-c301a289"),e=e(),Tt(),e),I_e={class:"mall-home"},A_e={class:"home-quick desktop-only"},N_e={class:"home-quick__icon"},R_e={class:"home-quick__content"},P_e={key:0,class:"home-quick__badge"},M_e={key:0,class:"home-quick__arrow"},B_e={class:"home-section home-models desktop-only"},L_e=La(()=>l("div",{class:"home-section__header home-models__header"},[l("h2",null,"热门模型推荐")],-1)),O_e={key:0,class:"home-models__loading"},D_e={key:1,class:"home-models__error"},V_e={key:2,class:"home-models__content"},F_e={class:"home-models__top"},U_e=La(()=>l("span",{class:"home-models__card-bg","aria-hidden":"true"},null,-1)),z_e={class:"home-models__card-content"},H_e={class:"home-models__tag"},K_e={class:"home-models__name"},q_e={class:"home-models__summary"},j_e=La(()=>l("span",{class:"home-models__action"},[Ce("立即查看 "),l("b",{"aria-hidden":"true"},"→")],-1)),W_e={class:"home-models__others"},G_e={class:"home-models__tag"},Y_e={class:"home-models__name"},X_e={class:"home-models__summary"},Q_e=La(()=>l("span",{class:"home-models__action"},[Ce("立即查看 "),l("b",{"aria-hidden":"true"},"→")],-1)),J_e=La(()=>l("span",null,"查看全部模型",-1)),Z_e=La(()=>l("b",{"aria-hidden":"true"},"→",-1)),e1e={class:"home-section home-promos desktop-only"},t1e=La(()=>l("div",{class:"home-section__header"},[l("h2",null,"优惠活动")],-1)),n1e={class:"home-promos__band"},a1e={class:"home-promos__icon"},s1e={class:"mobile-home mobile-only"},o1e={class:"mobile-quick"},r1e={class:"mobile-quick__icon"},l1e={key:0,class:"mobile-quick__badge"},i1e={class:"mobile-section mobile-models"},c1e={class:"mobile-section__header"},u1e=La(()=>l("h2",null,"热门模型",-1)),d1e={key:0,class:"mobile-models__loading"},f1e={key:1,class:"mobile-models__error"},p1e={key:2,class:"mobile-models__list"},v1e={class:"mobile-models__icon"},h1e=["src"],m1e={class:"mobile-models__content"},g1e={class:"mobile-models__head"},_1e={class:"mobile-models__desc"},y1e={class:"mobile-models__footer"},b1e=La(()=>l("span",{class:"mobile-models__button"},"体验",-1)),w1e={key:0,class:"mobile-section mobile-intention"},C1e={class:"mobile-section__header"},k1e=La(()=>l("h2",null,"意向单服务",-1)),S1e={class:"mobile-intention__grid"},E1e=La(()=>l("span",{class:"mobile-intention__icon"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"}),l("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),l("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),l("line",{x1:"8",y1:"23",x2:"16",y2:"23"})])],-1)),$1e=La(()=>l("strong",null,"积分批量采购",-1)),x1e=La(()=>l("span",null,"企业大规模 API 调用",-1)),T1e=La(()=>l("span",{class:"mobile-intention__icon"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M12 20h9"}),l("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})])],-1)),I1e=La(()=>l("strong",null,"定制化需求",-1)),A1e=La(()=>l("span",null,"私有化部署、技术咨询",-1)),N1e={class:"mobile-section mobile-promos"},R1e=La(()=>l("div",{class:"mobile-section__header"},[l("h2",null,"优惠活动")],-1)),P1e={class:"mobile-bottom-nav mobile-only","aria-label":"移动端底部导航"},M1e={class:"mobile-bottom-nav__inner"},B1e={key:0,class:"home-section home-intention desktop-only"},L1e={class:"home-section__header"},O1e=La(()=>l("h2",null,"意向单服务",-1)),D1e={class:"home-intention__grid"},V1e=La(()=>l("div",{class:"home-intention__card-visual"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"}),l("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),l("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),l("line",{x1:"8",y1:"23",x2:"16",y2:"23"})])],-1)),F1e=La(()=>l("div",{class:"home-intention__card-body"},[l("h3",null,"积分批量采购"),l("p",null,"按需批量采购积分,适用于企业大规模 API 调用场景。"),l("span",{class:"home-intention__card-action"},[Ce(" 立即提交 "),l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"9 18 15 12 9 6"})])])],-1)),U1e=La(()=>l("div",{class:"home-intention__card-visual"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M12 20h9"}),l("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})])],-1)),z1e=La(()=>l("div",{class:"home-intention__card-body"},[l("h3",null,"定制化需求"),l("p",null,"私有化部署、数据定制、技术咨询,提交后运营人员专人跟进。"),l("span",{class:"home-intention__card-action"},[Ce(" 立即提交 "),l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"9 18 15 12 9 6"})])])],-1)),H1e=le({__name:"HomeView",setup(e){const t=_a(),n=[{key:"s1"},{key:"s2"},{key:"s3"},{key:"s4"},{key:"s5"}],a=x(()=>{var p;return[{title:"模型在线体验",description:"免费体验平台热门模型,支持文本对话、文生图等多种能力。",icon:"火",to:"/models",mobileTitle:"在线体验",mobileDescription:"免费体验热门模型",featured:!1},{title:"算力市场",description:"GPU算力资源一键订购,主流显卡卡时计费即开即用。",icon:"算",to:"/compute",mobileTitle:"算力市场",mobileDescription:"GPU算力资源订购",featured:!1},{title:"服务接入",description:"创建服务组并管理 API Key,快速接入企业 API 调用链路。",icon:"服",to:((p=t.userInfo)==null?void 0:p.userType)==="enterprise"?"/enterprise-seats":"/service-groups",mobileTitle:"服务接入",mobileDescription:"创建服务组接入 API",featured:!0},{title:"提交意向订单",description:"批量采购或定制化需求,提交后由运营人员跟进。",icon:"单",to:"/intentions/create",mobileTitle:"意向订单",mobileDescription:"批量采购或定制",featured:!1},{title:"活动中心",description:"查看进行中活动,领取免费积分与购买折扣券。",icon:"礼",to:"/activities",mobileTitle:"活动中心",mobileDescription:"领取优惠福利",featured:!1},{title:"我的优惠券",description:"查看已领取的购买折扣券,兑换码兑换入口。",icon:"券",to:"/coupons",mobileTitle:"我的优惠券",mobileDescription:"查看已领取优惠券",featured:!1}]}),s=T([]),o=T(!1),r=T(!1);ft(async()=>{o.value=!0;try{const p=await K2({pageSize:6});s.value=p.list||[]}catch(p){console.error("Failed to load models",p),r.value=!0}finally{o.value=!1}});const i=[{title:"新用户专享",description:"注册即送免费积分,立即查看活动详情。",icon:"礼",to:"/activities"},{title:"购买优惠",description:"购买折扣券限时发放,先到先得。",icon:"惠",to:"/activities"}],c=[{title:"首页",icon:"首",to:"/"},{title:"模型",icon:"模",to:"/models"},{title:"活动",icon:"活",to:"/activities"},{title:"帮助",icon:"助",to:"/support"}],u=[{title:"首页",icon:"首",to:"/"},{title:"模型",icon:"模",to:"/models"},{title:"订单",icon:"单",to:"/orders"},{title:"我的",icon:"我",to:"/user/profile"}],d=x(()=>t.isLoggedIn?u:c);return(p,v)=>{const h=Ne("RouterLink");return _(),w("div",I_e,[z(cge),z(f(bge),{slides:n},{slide:W(({index:m})=>[m===0?(_(),ue(f(Nge),{key:0})):K("",!0),m===1?(_(),ue(f(Gge),{key:1})):K("",!0),m===2?(_(),ue(f(l_e),{key:2})):K("",!0),m===3?(_(),ue(f(g_e),{key:3})):K("",!0),m===4?(_(),ue(f(T_e),{key:4})):K("",!0)]),_:1}),l("section",A_e,[(_(!0),w(_e,null,Re(a.value,m=>(_(),ue(h,{key:m.title,class:V(["home-quick__item",{"home-quick__item--featured":m.featured}]),to:m.to},{default:W(()=>[l("span",N_e,I(m.icon),1),l("span",R_e,[m.featured?(_(),w("span",P_e,"服务接入")):K("",!0),l("strong",null,I(m.title),1),l("span",null,I(m.description),1)]),m.featured?(_(),w("span",M_e,"→")):K("",!0)]),_:2},1032,["class","to"]))),128))]),l("section",B_e,[L_e,o.value?(_(),w("div",O_e,"加载中…")):r.value?(_(),w("div",D_e,"模型加载失败,请稍后重试")):(_(),w("div",V_e,[l("div",F_e,[(_(!0),w(_e,null,Re(s.value.slice(0,2),(m,g)=>(_(),ue(h,{key:m.modelId,to:"/models/"+m.modelId,class:V(["home-models__card","home-models__card--primary",{"home-models__card--dark":g===0}])},{default:W(()=>[U_e,l("span",z_e,[l("span",null,[l("span",H_e,I(m.typeName||"旗舰模型"),1),l("strong",K_e,I(m.modelName),1),l("span",q_e,I(m.summary),1)]),j_e])]),_:2},1032,["to","class"]))),128))]),l("div",W_e,[(_(!0),w(_e,null,Re(s.value.slice(2,6),m=>(_(),ue(h,{key:m.modelId,to:"/models/"+m.modelId,class:"home-models__card home-models__card--other"},{default:W(()=>[l("span",null,[l("span",G_e,I(m.typeName||"模型能力"),1),l("strong",Y_e,I(m.modelName),1),l("span",X_e,I(m.summary),1)]),Q_e]),_:2},1032,["to"]))),128))]),z(h,{class:"home-models__all",to:"/models"},{default:W(()=>[J_e,Z_e]),_:1})]))]),l("section",e1e,[t1e,l("div",n1e,[(_(),w(_e,null,Re(i,m=>z(h,{key:m.title,to:m.to,class:"home-promos__item"},{default:W(()=>[l("span",a1e,I(m.icon),1),l("div",null,[l("h3",null,I(m.title),1),l("p",null,I(m.description),1)])]),_:2},1032,["to"])),64))])]),l("main",s1e,[l("div",o1e,[(_(!0),w(_e,null,Re(a.value,m=>(_(),ue(h,{key:m.title,class:V(["mobile-quick__item",{"mobile-quick__item--featured":m.featured}]),to:m.to},{default:W(()=>[l("span",r1e,I(m.icon),1),m.featured?(_(),w("span",l1e,"企业 API")):K("",!0),l("strong",null,I(m.mobileTitle),1),l("span",null,I(m.mobileDescription),1)]),_:2},1032,["class","to"]))),128))]),l("section",i1e,[l("div",c1e,[u1e,z(h,{to:"/models"},{default:W(()=>[Ce("更多 >")]),_:1})]),o.value?(_(),w("div",d1e,"加载中…")):r.value?(_(),w("div",f1e,"模型加载失败,请稍后重试")):(_(),w("div",p1e,[(_(!0),w(_e,null,Re(s.value,m=>(_(),ue(h,{key:m.modelId,class:"mobile-models__item",to:"/models/"+m.modelId},{default:W(()=>[l("span",v1e,[f($s)(m.iconUrl)?(_(),w("img",{key:0,src:f($s)(m.iconUrl),alt:""},null,8,h1e)):K("",!0)]),l("span",m1e,[l("span",g1e,[l("strong",null,I(m.modelName),1)]),l("span",_1e,I(m.summary),1),l("span",y1e,[l("b",null,I(m.priceSummary),1),b1e])])]),_:2},1032,["to"]))),128))]))]),f(t).isLoggedIn?(_(),w("section",w1e,[l("div",C1e,[k1e,z(h,{to:"/intentions"},{default:W(()=>[Ce("我的意向单 >")]),_:1})]),l("div",S1e,[z(h,{class:"mobile-intention__card",to:"/intentions/create?type=credit_bulk"},{default:W(()=>[E1e,$1e,x1e]),_:1}),z(h,{class:"mobile-intention__card mobile-intention__card--alt",to:"/intentions/create?type=custom"},{default:W(()=>[T1e,I1e,A1e]),_:1})])])):K("",!0),l("section",N1e,[R1e,(_(),w(_e,null,Re(i,m=>l("article",{key:m.title,class:"mobile-promos__item"},[l("span",null,I(m.icon),1),l("div",null,[l("h3",null,I(m.title),1),l("p",null,I(m.description),1)])])),64))])]),z(h,{class:"mobile-fab mobile-only",to:"/support","aria-label":"联系平台客服"},{default:W(()=>[Ce("服")]),_:1}),l("nav",P1e,[l("div",M1e,[(_(!0),w(_e,null,Re(d.value,m=>(_(),ue(h,{key:m.title,class:"mobile-bottom-nav__item",to:m.to},{default:W(()=>[l("span",null,I(m.icon),1),l("strong",null,I(m.title),1)]),_:2},1032,["to"]))),128))])]),f(t).isLoggedIn?(_(),w("section",B1e,[l("div",L1e,[O1e,z(h,{class:"home-section__more",to:"/intentions"},{default:W(()=>[Ce("我的意向单 →")]),_:1})]),l("div",D1e,[z(h,{class:"home-intention__card",to:"/intentions/create?type=credit_bulk"},{default:W(()=>[V1e,F1e]),_:1}),z(h,{class:"home-intention__card home-intention__card--alt",to:"/intentions/create?type=custom"},{default:W(()=>[U1e,z1e]),_:1})])])):K("",!0)])}}}),K1e=Ct(H1e,[["__scopeId","data-v-c301a289"]]),q1e=e=>dt.get("/api/v1/activities",{params:e||void 0}),j1e=e=>dt.get(`/api/v1/activities/${e}`),W1e=e=>dt.post(`/api/v1/activities/${e}/receive`),iA=()=>dt.get("/api/v1/coupons/summary"),cA=async e=>{const t=await dt.get("/api/v1/coupons",{params:e||void 0});return{...t,list:(t.list||[]).map(n=>({...n,expireTime:n.validEndTime}))}},G1e=e=>dt.post("/api/v1/coupons/redeem",e,{silentErrorMessage:!0}),Y1e=e=>dt.post(`/api/v1/coupons/${e}/exchange`),uA=e=>(xt("data-v-6a9a8b81"),e=e(),Tt(),e),X1e={class:"activity-card"},Q1e={class:"card-cover"},J1e=["src","alt"],Z1e={key:1,class:"cover-fallback"},eye={class:"card-body"},tye={class:"type-line"},nye={class:"card-title"},aye={class:"card-desc"},sye={class:"meta-row"},oye=uA(()=>l("span",{class:"meta-label"},"活动有效期",-1)),rye={class:"meta-value"},lye={class:"meta-row benefit-row"},iye=uA(()=>l("span",{class:"meta-label"},"权益内容",-1)),cye={class:"meta-value accent"},uye={key:0,class:"receive-hint"},dye={class:"card-actions"},fye={key:1,class:"btn-disabled",disabled:""},pye=le({__name:"ActivityCard",props:{activity:{},isLoggedIn:{type:Boolean}},emits:["detail","receive","login"],setup(e){const t=a=>({active:"status-active",pending:"status-pending",ended:"status-ended",disabled:"status-disabled"})[a]||"status-ended",n=a=>a.couponType==="credit_coupon"?`${a.creditAmount??0} 积分券`:a.discountType==="percent"?`积分购买 ${a.discountDesc??""}券`:`积分购买减 ${a.discountValue??0} 元券`;return(a,s)=>(_(),w("article",X1e,[l("div",Q1e,[a.activity.activityImageUrl?(_(),w("img",{key:0,src:a.activity.activityImageUrl,alt:a.activity.activityName},null,8,J1e)):(_(),w("div",Z1e,I(a.activity.couponTypeName),1)),l("span",{class:V(["status-tag",t(a.activity.status)])},I(a.activity.statusName),3)]),l("div",eye,[l("div",tye,I(a.activity.activityTypeName),1),l("h3",nye,I(a.activity.activityName),1),l("p",aye,I(a.activity.description||"登录后领取,进入券包后再按券类型使用。"),1),l("div",sye,[oye,l("span",rye,I(a.activity.claimStartTime)+" 至 "+I(a.activity.claimEndTime),1)]),l("div",lye,[iye,l("span",cye,I(n(a.activity)),1)]),a.activity.receiveStatusHint?(_(),w("p",uye,I(a.activity.receiveStatusHint),1)):K("",!0),l("div",dye,[l("button",{class:"btn-secondary",onClick:s[0]||(s[0]=o=>a.$emit("detail",a.activity.id))},"查看详情"),a.activity.canReceive?(_(),w("button",{key:0,class:"btn-primary",onClick:s[1]||(s[1]=o=>a.isLoggedIn?a.$emit("receive",a.activity.id):a.$emit("login"))},I(a.activity.receiveButtonText),1)):(_(),w("button",fye,I(a.activity.receiveButtonText),1))])])]))}}),vye=Ct(pye,[["__scopeId","data-v-6a9a8b81"]]),W2=e=>e==="recharge_discount",G2=e=>(xt("data-v-25cb9fe4"),e=e(),Tt(),e),hye={class:"drawer-panel"},mye={key:0,class:"state-box"},gye={key:1,class:"state-box error"},_ye={class:"drawer-head"},yye={class:"drawer-type"},bye={class:"drawer-title"},wye={class:"drawer-desc"},Cye={class:"drawer-section"},kye=G2(()=>l("h4",null,"权益内容",-1)),Sye={key:0},Eye={class:"drawer-section"},$ye=G2(()=>l("h4",null,"活动信息",-1)),xye={key:0},Tye={key:0,class:"drawer-section success-box"},Iye=G2(()=>l("h4",null,"领取成功",-1)),Aye={key:0},Nye={key:1},Rye={key:1,class:"error-msg"},Pye={key:2,class:"receive-hint"},Mye={class:"drawer-actions"},Bye=["disabled"],Lye={key:1,class:"btn-disabled",disabled:""},Oye=le({__name:"ActivityDetailDrawer",props:{activityId:{},isLoggedIn:{type:Boolean}},emits:["close","login","refresh"],setup(e,{emit:t}){const n=e,a=t,s=T(null),o=T(!1),r=T(null),i=T(!1),c=T(""),u=async()=>{o.value=!0,c.value="";try{s.value=await j1e(n.activityId)}catch(h){s.value=null,c.value=h instanceof Error?h.message:"活动详情加载失败。"}finally{o.value=!1}},d=async()=>{if(!n.isLoggedIn){a("login");return}i.value=!0,c.value="";try{r.value=await W1e(n.activityId),a("refresh")}catch(h){c.value=h instanceof Error?h.message:"领取失败,请稍后重试。"}finally{i.value=!1}},p=h=>h.couponType==="credit_coupon"?`${h.creditAmount??0} 积分券`:h.discountDesc||"购买折扣券",v=h=>{var m;return h.applyScope==="all_package"?"全部充值套餐可用":h.applyScope==="specified_package"&&((m=h.scopePackages)!=null&&m.length)?h.scopePackages.map(g=>g.packageName).join("、"):"不限最低消费"};return ft(()=>{u()}),(h,m)=>(_(),w("div",{class:"drawer-overlay",onClick:m[2]||(m[2]=qe(g=>a("close"),["self"]))},[l("div",hye,[l("button",{type:"button",class:"drawer-close","aria-label":"关闭",onClick:m[0]||(m[0]=g=>a("close"))},"×"),o.value?(_(),w("div",mye,"详情加载中...")):s.value?(_(),w(_e,{key:2},[l("div",_ye,[l("p",yye,I(s.value.activityTypeName),1),l("h2",bye,I(s.value.activityName),1),l("p",wye,I(s.value.description||"登录后领券,积分券去兑换,购买折扣券去积分购买页使用。"),1)]),l("section",Cye,[kye,l("p",null,I(p(s.value)),1),l("p",null,"券类型:"+I(s.value.couponTypeName),1),f(W2)(s.value.couponType)?(_(),w("p",Sye,"适用范围:"+I(v(s.value)),1)):K("",!0)]),l("section",Eye,[$ye,l("p",null,"领取时间:"+I(s.value.claimStartTime)+" 至 "+I(s.value.claimEndTime),1),l("p",null,"总发放量:"+I(s.value.totalQuota),1),l("p",null,"已领取量:"+I(s.value.claimedQuota),1),l("p",null,"每人限领:"+I(s.value.receiveLimit)+" 次",1),s.value.validEndTime?(_(),w("p",xye,"券有效期至:"+I(s.value.validEndTime),1)):K("",!0)]),r.value?(_(),w("section",Tye,[Iye,l("p",null,I(r.value.couponName)+" 已进入券包。",1),r.value.couponType==="credit_coupon"?(_(),w("p",Aye," 后续请前往“我的券码”点击立即兑换后入账。 ")):(_(),w("p",Nye,"后续请前往积分购买页使用该券。"))])):K("",!0),c.value?(_(),w("div",Rye,I(c.value),1)):K("",!0),s.value.receiveStatusHint&&!r.value?(_(),w("div",Pye,I(s.value.receiveStatusHint),1)):K("",!0),l("div",Mye,[s.value.canReceive&&!r.value?(_(),w("button",{key:0,class:"btn-primary",disabled:i.value,onClick:d},I(i.value?"领取中...":s.value.receiveButtonText),9,Bye)):(_(),w("button",Lye,I(s.value.receiveButtonText),1)),l("button",{class:"btn-secondary",onClick:m[1]||(m[1]=g=>a("close"))},"关闭")])],64)):(_(),w("div",gye,I(c.value||"活动不存在"),1))])]))}}),Dye=Ct(Oye,[["__scopeId","data-v-25cb9fe4"]]),Vye={class:"state-panel page-card"},Fye={key:0,class:"state-panel__icon"},Uye={class:"state-panel__title"},zye={key:1,class:"state-panel__description"},Hye={key:2,class:"state-panel__content"},Kye=le({__name:"StatePanel",props:{title:{},description:{default:""},actionText:{default:""},showIcon:{type:Boolean,default:!0}},emits:["retry"],setup(e){return(t,n)=>(_(),w("section",Vye,[t.showIcon?(_(),w("div",Fye,[be(t.$slots,"icon",{},void 0,!0)])):K("",!0),l("h2",Uye,I(t.title),1),t.description?(_(),w("p",zye,I(t.description),1)):K("",!0),t.$slots.default?(_(),w("div",Hye,[be(t.$slots,"default",{},void 0,!0)])):K("",!0),t.actionText?(_(),w("button",{key:3,type:"button",class:"state-panel__action",onClick:n[0]||(n[0]=a=>t.$emit("retry"))},I(t.actionText),1)):K("",!0)]))}}),Y2=Ct(Kye,[["__scopeId","data-v-0aae89a6"]]),x0=le({__name:"EmptyState",props:{title:{default:"暂无数据"},description:{default:"当前没有可展示内容,请稍后再试。"}},setup(e){return(t,n)=>(_(),ue(Y2,{title:t.title,description:t.description,"show-icon":!1},null,8,["title","description"]))}}),fl=le({__name:"ErrorState",props:{title:{default:"加载失败"},description:{default:"请求未成功完成,请稍后重试。"},actionText:{default:"重新加载"}},emits:["retry"],setup(e){return(t,n)=>(_(),ue(Y2,{title:t.title,description:t.description,"action-text":t.actionText,onRetry:n[0]||(n[0]=a=>t.$emit("retry"))},{icon:W(()=>[Ce("!")]),_:1},8,["title","description","action-text"]))}}),pl=le({__name:"LoadingState",props:{title:{default:"正在加载"},description:{default:"数据正在准备中,请稍候。"}},setup(e){return(t,n)=>(_(),ue(Y2,{title:t.title,description:t.description},{icon:W(()=>[Ce("...")]),_:1},8,["title","description"]))}});/*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE */function p$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n2?a-2:0),o=2;o1?n-1:0),s=1;s"u"?null:Ya(BigInt.prototype.toString),y$=typeof Symbol>"u"?null:Ya(Symbol.prototype.toString),is=Ya(Object.prototype.hasOwnProperty),af=Ya(Object.prototype.toString),ys=Ya(RegExp.prototype.test),nc=sbe(TypeError);function Ya(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,a=new Array(n>1?n-1:0),s=1;s2&&arguments[2]!==void 0?arguments[2]:gf;if(v$&&v$(e,null),!hi(t))return e;let a=t.length;for(;a--;){let s=t[a];if(typeof s=="string"){const o=n(s);o!==s&&(Xye(t)||(t[a]=o),s=o)}e[s]=!0}return e}function obe(e){for(let t=0;t/g),fbe=xs(/\${[\w\W]*/g),pbe=xs(/^data-[\-\w.\u00B7-\uFFFF]+$/),vbe=xs(/^aria-[\-\w]+$/),S$=xs(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hbe=xs(/^(?:\w+script|data):/i),mbe=xs(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gbe=xs(/^html$/i),_be=xs(/^[a-z][.\w]*(-[.\w]+)+$/i),E$=xs(/<[/\w!]/g),ybe=xs(/<[/\w]/g),bbe=xs(/<\/no(script|embed|frames)/i),wbe=xs(/\/>/i),Mr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Cbe=function(){return typeof window>"u"?null:window},kbe=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let a=null;const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(a=n.getAttribute(s));const o="dompurify"+(a?"#"+a:"");try{return t.createPolicy(o,{createHTML(r){return r},createScriptURL(r){return r}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},$$=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},oi=function(t,n,a,s){return is(t,n)&&hi(t[n])?zn(s.base?Xs(s.base):{},t[n],s.transform):a};function pA(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cbe();const t=Pt=>pA(Pt);if(t.version="3.4.11",t.removed=[],!e||!e.document||e.document.nodeType!==Mr.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const a=n,s=a.currentScript;e.DocumentFragment;const o=e.HTMLTemplateElement,r=e.Node,i=e.Element,c=e.NodeFilter,u=e.NamedNodeMap;u===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const d=e.DOMParser,p=e.trustedTypes,v=i.prototype,h=Br(v,"cloneNode"),m=Br(v,"remove"),g=Br(v,"nextSibling"),y=Br(v,"childNodes"),b=Br(v,"parentNode"),C=Br(v,"shadowRoot"),k=Br(v,"attributes"),S=r&&r.prototype?Br(r.prototype,"nodeType"):null,$=r&&r.prototype?Br(r.prototype,"nodeName"):null;if(typeof o=="function"){const Pt=n.createElement("template");Pt.content&&Pt.content.ownerDocument&&(n=Pt.content.ownerDocument)}let E,R="",A,N=!1,P=0;const B=function(){if(P>0)throw nc('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},M=function($e){B(),P++;try{return E.createHTML($e)}finally{P--}},j=function($e){B(),P++;try{return E.createScriptURL($e)}finally{P--}},F=function(){return N||(A=kbe(p,s),N=!0),A},q=n,L=q.implementation,U=q.createNodeIterator,O=q.createDocumentFragment,G=q.getElementsByTagName,ae=a.importNode;let Z=$$();t.isSupported=typeof dA=="function"&&typeof b=="function"&&L&&L.createHTMLDocument!==void 0;const te=ube,ie=dbe,oe=fbe,J=pbe,ee=vbe,Q=hbe,H=mbe,X=_be;let he=S$,D=null;const Y=zn({},[...b$,...Og,...Dg,...Vg,...w$]);let ne=null;const re=zn({},[...C$,...Fg,...k$,...Kv]);let se=Object.seal(wu(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ke=null,ye=null;const Se=Object.seal(wu(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ce=!0,we=!0,Ae=!1,Fe=!0,xe=!1,me=!0,Me=!1,at=!1,Qe=null,It=null,je=!1,Vt=!1,kt=!1,Mt=!1,Ht=!0,Ee=!1;const We="user-content-";let pe=!0,Oe=!1,ot={},St=null;const vn=zn({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let _n=null;const Ln=zn({},["audio","video","img","source","image","track"]);let oo=null;const _s=zn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qa="http://www.w3.org/1998/Math/MathML",en="http://www.w3.org/2000/svg",st="http://www.w3.org/1999/xhtml";let nn=st,Ut=!1,Ja=null;const Hs=zn({},[qa,en,st],Lg),Ks=Ss(["mi","mo","mn","ms","mtext"]);let cr=zn({},Ks);const As=Ss(["annotation-xml"]);let Rr=zn({},As);const Wi=zn({},["title","style","font","a","script"]);let ro=null;const ur=["application/xhtml+xml","text/html"],Ye="text/html";let ht=null,un=null;const ra=n.createElement("form"),Ua=function($e){return $e instanceof RegExp||$e instanceof Function},qs=function(){let $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(un&&un===$e)return;(!$e||typeof $e!="object")&&($e={}),$e=Xs($e),ro=ur.indexOf($e.PARSER_MEDIA_TYPE)===-1?Ye:$e.PARSER_MEDIA_TYPE,ht=ro==="application/xhtml+xml"?Lg:gf,D=oi($e,"ALLOWED_TAGS",Y,{transform:ht}),ne=oi($e,"ALLOWED_ATTR",re,{transform:ht}),Ja=oi($e,"ALLOWED_NAMESPACES",Hs,{transform:Lg}),oo=oi($e,"ADD_URI_SAFE_ATTR",_s,{transform:ht,base:_s}),_n=oi($e,"ADD_DATA_URI_TAGS",Ln,{transform:ht,base:Ln}),St=oi($e,"FORBID_CONTENTS",vn,{transform:ht}),ke=oi($e,"FORBID_TAGS",Xs({}),{transform:ht}),ye=oi($e,"FORBID_ATTR",Xs({}),{transform:ht}),ot=is($e,"USE_PROFILES")?$e.USE_PROFILES&&typeof $e.USE_PROFILES=="object"?Xs($e.USE_PROFILES):$e.USE_PROFILES:!1,ce=$e.ALLOW_ARIA_ATTR!==!1,we=$e.ALLOW_DATA_ATTR!==!1,Ae=$e.ALLOW_UNKNOWN_PROTOCOLS||!1,Fe=$e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,xe=$e.SAFE_FOR_TEMPLATES||!1,me=$e.SAFE_FOR_XML!==!1,Me=$e.WHOLE_DOCUMENT||!1,Vt=$e.RETURN_DOM||!1,kt=$e.RETURN_DOM_FRAGMENT||!1,Mt=$e.RETURN_TRUSTED_TYPE||!1,je=$e.FORCE_BODY||!1,Ht=$e.SANITIZE_DOM!==!1,Ee=$e.SANITIZE_NAMED_PROPS||!1,pe=$e.KEEP_CONTENT!==!1,Oe=$e.IN_PLACE||!1,he=lbe($e.ALLOWED_URI_REGEXP)?$e.ALLOWED_URI_REGEXP:S$,nn=typeof $e.NAMESPACE=="string"?$e.NAMESPACE:st,cr=is($e,"MATHML_TEXT_INTEGRATION_POINTS")&&$e.MATHML_TEXT_INTEGRATION_POINTS&&typeof $e.MATHML_TEXT_INTEGRATION_POINTS=="object"?Xs($e.MATHML_TEXT_INTEGRATION_POINTS):zn({},Ks),Rr=is($e,"HTML_INTEGRATION_POINTS")&&$e.HTML_INTEGRATION_POINTS&&typeof $e.HTML_INTEGRATION_POINTS=="object"?Xs($e.HTML_INTEGRATION_POINTS):zn({},As);const Ge=is($e,"CUSTOM_ELEMENT_HANDLING")&&$e.CUSTOM_ELEMENT_HANDLING&&typeof $e.CUSTOM_ELEMENT_HANDLING=="object"?Xs($e.CUSTOM_ELEMENT_HANDLING):wu(null);if(se=wu(null),is(Ge,"tagNameCheck")&&Ua(Ge.tagNameCheck)&&(se.tagNameCheck=Ge.tagNameCheck),is(Ge,"attributeNameCheck")&&Ua(Ge.attributeNameCheck)&&(se.attributeNameCheck=Ge.attributeNameCheck),is(Ge,"allowCustomizedBuiltInElements")&&typeof Ge.allowCustomizedBuiltInElements=="boolean"&&(se.allowCustomizedBuiltInElements=Ge.allowCustomizedBuiltInElements),xs(se),xe&&(we=!1),kt&&(Vt=!0),ot&&(D=zn({},w$),ne=wu(null),ot.html===!0&&(zn(D,b$),zn(ne,C$)),ot.svg===!0&&(zn(D,Og),zn(ne,Fg),zn(ne,Kv)),ot.svgFilters===!0&&(zn(D,Dg),zn(ne,Fg),zn(ne,Kv)),ot.mathMl===!0&&(zn(D,Vg),zn(ne,k$),zn(ne,Kv))),Se.tagCheck=null,Se.attributeCheck=null,is($e,"ADD_TAGS")&&(typeof $e.ADD_TAGS=="function"?Se.tagCheck=$e.ADD_TAGS:hi($e.ADD_TAGS)&&(D===Y&&(D=Xs(D)),zn(D,$e.ADD_TAGS,ht))),is($e,"ADD_ATTR")&&(typeof $e.ADD_ATTR=="function"?Se.attributeCheck=$e.ADD_ATTR:hi($e.ADD_ATTR)&&(ne===re&&(ne=Xs(ne)),zn(ne,$e.ADD_ATTR,ht))),is($e,"ADD_URI_SAFE_ATTR")&&hi($e.ADD_URI_SAFE_ATTR)&&zn(oo,$e.ADD_URI_SAFE_ATTR,ht),is($e,"FORBID_CONTENTS")&&hi($e.FORBID_CONTENTS)&&(St===vn&&(St=Xs(St)),zn(St,$e.FORBID_CONTENTS,ht)),is($e,"ADD_FORBID_CONTENTS")&&hi($e.ADD_FORBID_CONTENTS)&&(St===vn&&(St=Xs(St)),zn(St,$e.ADD_FORBID_CONTENTS,ht)),pe&&(D["#text"]=!0),Me&&zn(D,["html","head","body"]),D.table&&(zn(D,["tbody"]),delete ke.tbody),$e.TRUSTED_TYPES_POLICY){if(typeof $e.TRUSTED_TYPES_POLICY.createHTML!="function")throw nc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof $e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw nc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Nt=E;E=$e.TRUSTED_TYPES_POLICY;try{R=M("")}catch(Jt){throw E=Nt,Jt}}else $e.TRUSTED_TYPES_POLICY===null?(E=void 0,R=""):(E===void 0&&(E=F()),E&&typeof R=="string"&&(R=M("")));Ss&&Ss($e),un=$e},js=zn({},[...Og,...Dg,...ibe]),Lo=zn({},[...Vg,...cbe]),lo=function($e,Ge,Nt){return Ge.namespaceURI===st?$e==="svg":Ge.namespaceURI===qa?$e==="svg"&&(Nt==="annotation-xml"||cr[Nt]):!!js[$e]},Yl=function($e,Ge,Nt){return Ge.namespaceURI===st?$e==="math":Ge.namespaceURI===en?$e==="math"&&Rr[Nt]:!!Lo[$e]},Xl=function($e,Ge,Nt){return Ge.namespaceURI===en&&!Rr[Nt]||Ge.namespaceURI===qa&&!cr[Nt]?!1:!Lo[$e]&&(Wi[$e]||!js[$e])},Xe=function($e){let Ge=b($e);(!Ge||!Ge.tagName)&&(Ge={namespaceURI:nn,tagName:"template"});const Nt=gf($e.tagName),Jt=gf(Ge.tagName);return Ja[$e.namespaceURI]?$e.namespaceURI===en?lo(Nt,Ge,Jt):$e.namespaceURI===qa?Yl(Nt,Ge,Jt):$e.namespaceURI===st?Xl(Nt,Ge,Jt):!!(ro==="application/xhtml+xml"&&Ja[$e.namespaceURI]):!1},wt=function($e){pu(t.removed,{element:$e});try{b($e).removeChild($e)}catch{if(m($e),!b($e))throw nc("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Yt=function($e){const Ge=y($e);if(Ge){const Jt=[];tf(Ge,In=>{pu(Jt,In)}),tf(Jt,In=>{try{m(In)}catch{}})}const Nt=k($e);if(Nt)for(let Jt=Nt.length-1;Jt>=0;--Jt){const In=Nt[Jt],jn=In&&In.name;if(typeof jn=="string")try{$e.removeAttribute(jn)}catch{}}},Qt=function($e,Ge){try{pu(t.removed,{attribute:Ge.getAttributeNode($e),from:Ge})}catch{pu(t.removed,{attribute:null,from:Ge})}if(Ge.removeAttribute($e),$e==="is")if(Vt||kt)try{wt(Ge)}catch{}else try{Ge.setAttribute($e,"")}catch{}},Ea=function($e){const Ge=k($e);if(Ge)for(let Nt=Ge.length-1;Nt>=0;--Nt){const Jt=Ge[Nt],In=Jt&&Jt.name;if(!(typeof In!="string"||ne[ht(In)]))try{$e.removeAttribute(In)}catch{}}},io=function($e){const Ge=[$e];for(;Ge.length>0;){const Nt=Ge.pop();(S?S(Nt):Nt.nodeType)===Mr.element&&Ea(Nt);const In=y(Nt);if(In)for(let jn=In.length-1;jn>=0;--jn)Ge.push(In[jn])}},dr=function($e){let Ge=null,Nt=null;if(je)$e=""+$e;else{const jn=m$($e,/^[\r\n\t ]+/);Nt=jn&&jn[0]}ro==="application/xhtml+xml"&&nn===st&&($e=''+$e+"");const Jt=E?M($e):$e;if(nn===st)try{Ge=new d().parseFromString(Jt,ro)}catch{}if(!Ge||!Ge.documentElement){Ge=L.createDocument(nn,"template",null);try{Ge.documentElement.innerHTML=Ut?R:Jt}catch{}}const In=Ge.body||Ge.documentElement;return $e&&Nt&&In.insertBefore(n.createTextNode(Nt),In.childNodes[0]||null),nn===st?G.call(Ge,Me?"html":"body")[0]:Me?Ge.documentElement:In},De=function($e){return U.call($e.ownerDocument||$e,$e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ke=function($e){return $e=nf($e,te," "),$e=nf($e,ie," "),$e=nf($e,oe," "),$e},Wt=function($e){var Ge;$e.normalize();const Nt=U.call($e.ownerDocument||$e,$e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let Jt=Nt.nextNode();for(;Jt;)Jt.data=Ke(Jt.data),Jt=Nt.nextNode();const In=(Ge=$e.querySelectorAll)===null||Ge===void 0?void 0:Ge.call($e,"template");In&&tf(In,jn=>{nt(jn.content)&&Wt(jn.content)})},kn=function($e){const Ge=$?$($e):null;return typeof Ge!="string"||ht(Ge)!=="form"?!1:typeof $e.nodeName!="string"||typeof $e.textContent!="string"||typeof $e.removeChild!="function"||$e.attributes!==k($e)||typeof $e.removeAttribute!="function"||typeof $e.setAttribute!="function"||typeof $e.namespaceURI!="string"||typeof $e.insertBefore!="function"||typeof $e.hasChildNodes!="function"||$e.nodeType!==S($e)||$e.childNodes!==y($e)},nt=function($e){if(!S||typeof $e!="object"||$e===null)return!1;try{return S($e)===Mr.documentFragment}catch{return!1}},xn=function($e){if(!S||typeof $e!="object"||$e===null)return!1;try{return typeof S($e)=="number"}catch{return!1}};function ja(Pt,$e,Ge){Pt.length!==0&&tf(Pt,Nt=>{Nt.call(t,$e,Ge,un)})}const za=function($e,Ge){return!!(me&&$e.hasChildNodes()&&!xn($e.firstElementChild)&&ys(E$,$e.textContent)&&ys(E$,$e.innerHTML)||me&&$e.namespaceURI===st&&Ge==="style"&&xn($e.firstElementChild)||$e.nodeType===Mr.processingInstruction||me&&$e.nodeType===Mr.comment&&ys(ybe,$e.data))},Ql=function($e,Ge){if(!ke[Ge]&&bw(Ge)&&(se.tagNameCheck instanceof RegExp&&ys(se.tagNameCheck,Ge)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Ge)))return!1;if(pe&&!St[Ge]){const Nt=b($e),Jt=y($e);if(Jt&&Nt){const In=Jt.length;for(let jn=In-1;jn>=0;--jn){const rs=Oe?Jt[jn]:h(Jt[jn],!0);Nt.insertBefore(rs,g($e))}}}return wt($e),!0},Oo=function($e){if(ja(Z.beforeSanitizeElements,$e,null),kn($e))return wt($e),!0;const Ge=ht($?$($e):$e.nodeName);if(ja(Z.uponSanitizeElement,$e,{tagName:Ge,allowedTags:D}),za($e,Ge))return wt($e),!0;if(ke[Ge]||!(Se.tagCheck instanceof Function&&Se.tagCheck(Ge))&&!D[Ge])return Ql($e,Ge);if((S?S($e):$e.nodeType)===Mr.element&&!Xe($e)||(Ge==="noscript"||Ge==="noembed"||Ge==="noframes")&&ys(bbe,$e.innerHTML))return wt($e),!0;if(xe&&$e.nodeType===Mr.text){const Jt=Ke($e.textContent);$e.textContent!==Jt&&(pu(t.removed,{element:$e.cloneNode()}),$e.textContent=Jt)}return ja(Z.afterSanitizeElements,$e,null),!1},yw=function($e,Ge,Nt){if(ye[Ge]||Ht&&(Ge==="id"||Ge==="name")&&(Nt in n||Nt in ra))return!1;const Jt=ne[Ge]||Se.attributeCheck instanceof Function&&Se.attributeCheck(Ge,$e);if(!(we&&ys(J,Ge))){if(!(ce&&ys(ee,Ge))){if(Jt){if(!oo[Ge]){if(!ys(he,nf(Nt,H,""))){if(!((Ge==="src"||Ge==="xlink:href"||Ge==="href")&&$e!=="script"&&g$(Nt,"data:")===0&&_n[$e])){if(!(Ae&&!ys(Q,nf(Nt,H,"")))){if(Nt)return!1}}}}}else if(!(bw($e)&&(se.tagNameCheck instanceof RegExp&&ys(se.tagNameCheck,$e)||se.tagNameCheck instanceof Function&&se.tagNameCheck($e))&&(se.attributeNameCheck instanceof RegExp&&ys(se.attributeNameCheck,Ge)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(Ge,$e))||Ge==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&ys(se.tagNameCheck,Nt)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Nt))))return!1}}return!0},YA=zn({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),bw=function($e){return!YA[gf($e)]&&ys(X,$e)},XA=function($e,Ge,Nt,Jt){if(E&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Nt)switch(p.getAttributeType($e,Ge)){case"TrustedHTML":return M(Jt);case"TrustedScriptURL":return j(Jt)}return Jt},QA=function($e,Ge,Nt,Jt){try{Nt?$e.setAttributeNS(Nt,Ge,Jt):$e.setAttribute(Ge,Jt),kn($e)?wt($e):h$(t.removed)}catch{Qt(Ge,$e)}},ww=function($e){ja(Z.beforeSanitizeAttributes,$e,null);const Ge=$e.attributes;if(!Ge||kn($e))return;const Nt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let Jt=Ge.length;const In=ht($e.nodeName);for(;Jt--;){const jn=Ge[Jt],rs=jn.name,Wa=jn.namespaceURI,Do=jn.value,fr=ht(rs),D0=Do;let Ws=rs==="value"?D0:tbe(D0);if(Nt.attrName=fr,Nt.attrValue=Ws,Nt.keepAttr=!0,Nt.forceKeepAttr=void 0,ja(Z.uponSanitizeAttribute,$e,Nt),Ws=Nt.attrValue,Ee&&(fr==="id"||fr==="name")&&g$(Ws,We)!==0&&(Qt(rs,$e),Ws=We+Ws),me&&ys(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ws)){Qt(rs,$e);continue}if(fr==="attributename"&&m$(Ws,"href")){Qt(rs,$e);continue}if(!Nt.forceKeepAttr){if(!Nt.keepAttr){Qt(rs,$e);continue}if(!Fe&&ys(wbe,Ws)){Qt(rs,$e);continue}if(xe&&(Ws=Ke(Ws)),!yw(In,fr,Ws)){Qt(rs,$e);continue}Ws=XA(In,fr,Wa,Ws),Ws!==D0&&QA($e,rs,Wa,Ws)}}ja(Z.afterSanitizeAttributes,$e,null)},lv=function($e){let Ge=null;const Nt=De($e);for(ja(Z.beforeSanitizeShadowDOM,$e,null);Ge=Nt.nextNode();)if(ja(Z.uponSanitizeShadowNode,Ge,null),Oo(Ge),ww(Ge),nt(Ge.content)&&lv(Ge.content),(S?S(Ge):Ge.nodeType)===Mr.element){const In=C(Ge);nt(In)&&(O0(In),lv(In))}ja(Z.afterSanitizeShadowDOM,$e,null)},O0=function($e){const Ge=[{node:$e,shadow:null}];for(;Ge.length>0;){const Nt=Ge.pop();if(Nt.shadow){lv(Nt.shadow);continue}const Jt=Nt.node,jn=(S?S(Jt):Jt.nodeType)===Mr.element,rs=y(Jt);if(rs)for(let Wa=rs.length-1;Wa>=0;--Wa)Ge.push({node:rs[Wa],shadow:null});if(jn){const Wa=$?$(Jt):null;if(typeof Wa=="string"&&ht(Wa)==="template"){const Do=Jt.content;nt(Do)&&Ge.push({node:Do,shadow:null})}}if(jn){const Wa=C(Jt);nt(Wa)&&Ge.push({node:null,shadow:Wa},{node:Wa,shadow:null})}}};return t.sanitize=function(Pt){let $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ge=null,Nt=null,Jt=null,In=null;if(Ut=!Pt,Ut&&(Pt=""),typeof Pt!="string"&&!xn(Pt)&&(Pt=rbe(Pt),typeof Pt!="string"))throw nc("dirty is not a string, aborting");if(!t.isSupported)return Pt;at?(D=Qe,ne=It):qs($e),(Z.uponSanitizeElement.length>0||Z.uponSanitizeAttribute.length>0)&&(D=Xs(D)),Z.uponSanitizeAttribute.length>0&&(ne=Xs(ne)),t.removed=[];const jn=Oe&&typeof Pt!="string"&&xn(Pt);if(jn){const Do=$?$(Pt):Pt.nodeName;if(typeof Do=="string"){const fr=ht(Do);if(!D[fr]||ke[fr])throw nc("root node is forbidden and cannot be sanitized in-place")}if(kn(Pt))throw nc("root node is clobbered and cannot be sanitized in-place");try{O0(Pt)}catch(fr){throw Yt(Pt),fr}}else if(xn(Pt))Ge=dr(""),Nt=Ge.ownerDocument.importNode(Pt,!0),Nt.nodeType===Mr.element&&Nt.nodeName==="BODY"||Nt.nodeName==="HTML"?Ge=Nt:Ge.appendChild(Nt),O0(Nt);else{if(!Vt&&!xe&&!Me&&Pt.indexOf("<")===-1)return E&&Mt?M(Pt):Pt;if(Ge=dr(Pt),!Ge)return Vt?null:Mt?R:""}Ge&&je&&wt(Ge.firstChild);const rs=De(jn?Pt:Ge);try{for(;Jt=rs.nextNode();)Oo(Jt),ww(Jt),nt(Jt.content)&&lv(Jt.content)}catch(Do){throw jn&&Yt(Pt),Do}if(jn)return tf(t.removed,Do=>{Do.element&&io(Do.element)}),xe&&Wt(Pt),Pt;if(Vt){if(xe&&Wt(Ge),kt)for(In=O.call(Ge.ownerDocument);Ge.firstChild;)In.appendChild(Ge.firstChild);else In=Ge;return(ne.shadowroot||ne.shadowrootmode)&&(In=ae.call(a,In,!0)),In}let Wa=Me?Ge.outerHTML:Ge.innerHTML;return Me&&D["!doctype"]&&Ge.ownerDocument&&Ge.ownerDocument.doctype&&Ge.ownerDocument.doctype.name&&ys(gbe,Ge.ownerDocument.doctype.name)&&(Wa=" `+Wa),xe&&(Wa=Ke(Wa)),E&&Mt?M(Wa):Wa},t.setConfig=function(){let Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};qs(Pt),at=!0,Qe=D,It=ne},t.clearConfig=function(){un=null,at=!1,Qe=null,It=null,E=A,R=""},t.isValidAttribute=function(Pt,$e,Ge){un||qs({});const Nt=ht(Pt),Jt=ht($e);return yw(Nt,Jt,Ge)},t.addHook=function(Pt,$e){typeof $e=="function"&&is(Z,Pt)&&pu(Z[Pt],$e)},t.removeHook=function(Pt,$e){if(is(Z,Pt)){if($e!==void 0){const Ge=Zye(Z[Pt],$e);return Ge===-1?void 0:ebe(Z[Pt],Ge,1)[0]}return h$(Z[Pt])}},t.removeHooks=function(Pt){is(Z,Pt)&&(Z[Pt]=[])},t.removeAllHooks=function(){Z=$$()},t}var Sbe=pA();const Ebe={ALLOWED_TAGS:["a","b","blockquote","br","code","em","h1","h2","h3","h4","i","img","li","ol","p","pre","strong","table","tbody","td","th","thead","tr","u","ul"],ALLOWED_ATTR:["href","target","rel","src","alt"],ADD_ATTR:["target"],ALLOWED_URI_REGEXP:/^(?:(?:https?):|\/(?!\/)|#|_blank$)/i,ALLOW_ARIA_ATTR:!1,ALLOW_DATA_ATTR:!1},qc=(e,t="")=>{var o;const n=(e||"").trim()||t.trim();if(!n)return"";const a=Sbe.sanitize(n,Ebe);if(typeof DOMParser>"u")return a;const s=new DOMParser().parseFromString(`
${a}
`,"text/html");return s.querySelectorAll("a").forEach(r=>r.setAttribute("rel","noopener noreferrer")),s.querySelectorAll("img:not([src])").forEach(r=>r.remove()),((o=s.body.firstElementChild)==null?void 0:o.innerHTML.trim())||""},vA={running:{label:"运行中",tone:"info"},success:{label:"成功",tone:"success"},failed:{label:"失败",tone:"danger"},canceled:{label:"已取消",tone:"muted"},timeout:{label:"超时",tone:"danger"},rejected:{label:"已拒绝",tone:"danger"}},$be=(e,t="--")=>e==null||e===""?t:typeof e=="number"?e.toFixed(6):e,Sl=e=>e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),hA=e=>/^(https?:\/\/|\/(?!\/)|#)/i.test(e),xbe=e=>$s(e)||(hA(e)?e:""),Tbe=/<\/?(?:a|b|blockquote|br|code|em|h[1-4]|i|img|li|ol|p|pre|strong|table|tbody|td|th|thead|tr|u|ul)(?:\s|>|\/)/i,Ibe=/(^|\n)\s{0,3}(#{1,6}\s|[-*+]\s|\d+\.\s|>\s|```|~~~|\|.*\|)/,Abe=/(`[^`]+`|\*\*[^*]+\*\*|\[[^\]]+\]\([^)]+\))/,Nbe=e=>Tbe.test(e),Rbe=e=>Ibe.test(e)||Abe.test(e),Pbe=new Set(["a","b","blockquote","br","code","em","h1","h2","h3","h4","i","img","li","ol","p","pre","strong","table","tbody","td","th","thead","tr","u","ul"]),Mbe=e=>e.replace(/<\/?([a-z][\w-]*)(?:\s[^>]*)?>/gi,(t,n)=>Pbe.has(n.toLowerCase())?t:Sl(t)),Bbe=/^\s*<(?:a|b|blockquote|br|code|em|h[1-4]|i|img|li|ol|p|pre|strong|table|tbody|td|th|thead|tr|u|ul)(?:\s|>|\/)/i,vu=e=>{const t=n=>{n=n.replace(/@@AISTORE_MARKDOWN_/g,"@@AISTORE_MARKDOWN_ESCAPED_");const a=[],s=c=>{const u=`@@AISTORE_MARKDOWN_${a.length}@@`;return a.push(c),u};let o=n;const r=/!\[([^\]]*)\]\(((?:[^()\\]|\\.|\([^()]*\))+)\)/g,i=/\[([^\]]+)\]\(((?:[^()\\]|\\.|\([^()]*\))+)\)/g;return o=o.replace(r,(c,u,d)=>{const p=Sl(u.trim()),v=xbe(d.trim());return s(v?`${p}`:p)}),o=o.replace(i,(c,u,d)=>{const p=Sl(u.trim()),v=d.trim();return hA(v)?s(`${p}`):s(p)}),o=Sl(o),o=o.replace(/\*\*([^*]+)\*\*/g,"$1"),o=o.replace(/\*([^*]+)\*/g,"$1"),o.replace(/@@AISTORE_MARKDOWN_(\d+)@@/g,(c,u)=>a[Number(u)]||"")};return e.split(/(`[^`]+`)/g).map(n=>n.startsWith("`")&&n.endsWith("`")?`${Sl(n.slice(1,-1))}`:t(n)).join("")},K1=e=>e.trim().replace(/^\|/,"").replace(/\|$/,"").split("|").map(t=>t.trim()),Lbe=e=>e?K1(e).every(t=>/^:?-{3,}:?$/.test(t)):!1,mA=e=>{const t=(e||"").trim();if(!t)return"";if(Nbe(t)&&!Rbe(t))return qc(t);const n=[],a=[],s=[];let o="ul";const r=[],i=[];let c=!1;const u=()=>{a.length!==0&&(n.push(`

${vu(a.join(" "))}

`),a.length=0)},d=()=>{s.length!==0&&(n.push(`<${o}>${s.map(m=>`
  • ${vu(m)}
  • `).join("")}`),s.length=0)},p=(m,g)=>{s.length>0&&o!==m&&d(),o=m,s.push(g)},v=()=>{r.length!==0&&(n.push(`
    ${r.map(m=>`

    ${vu(m)}

    `).join("")}
    `),r.length=0)},h=t.split(/\r?\n/);for(let m=0;m${Sl(i.join(` `))}`),i.length=0,c=!1;continue}u(),d(),v(),c=!0;continue}if(c){i.push(g);continue}const y=g.trim();if(!y){u(),d(),v();continue}const b=/^(#{1,4})\s+(.+)$/.exec(y);if(b){u(),d(),v(),n.push(`${vu(b[2])}`);continue}const C=/^>\s+(.+)$/.exec(y);if(C){u(),d(),r.push(C[1]);continue}if(y.startsWith("|")&&Lbe(h[m+1])){u(),d();const $=K1(y),E=[];for(m+=2;m${$.map(N=>`${vu(N)}`).join("")}`,A=E.length?`${E.map(N=>`${N.map(P=>`${vu(P)}`).join("")}`).join("")}`:"";n.push(`${R}${A}
    `);continue}const k=/^[-*]\s+(.+)$/.exec(y);if(k){u(),p("ul",k[1]);continue}const S=/^\d+\.\s+(.+)$/.exec(y);if(S){u(),p("ol",S[1]);continue}a.push(y)}return c&&n.push(`
    ${Sl(i.join(`
    `))}
    `),u(),d(),v(),qc(n.join(""))},Obe=e=>(()=>{const t=Mbe((e||"").trim());return t?Bbe.test(t)?qc(t):mA(t):""})(),Dbe={key:3,class:"experience-record-list"},Vbe={class:"experience-record-list__actions"},Fbe=["onClick"],Ube=["onClick"],zbe=le({__name:"ExperienceRecordList",props:{records:{},loading:{type:Boolean,default:!1},emptyText:{default:"暂无体验记录"},errorText:{}},emits:["detail","continue"],setup(e,{emit:t}){const n=t,a=o=>o==="success"?"success":o==="running"?"warning":o==="failed"||o==="timeout"||o==="rejected"?"danger":"info",s=o=>vA[o.status].label;return(o,r)=>{const i=Ne("el-table-column"),c=Ne("el-tag"),u=Ne("el-table");return o.loading?(_(),ue(pl,{key:0,title:"体验记录加载中",description:"正在整理体验调用状态、错误信息与积分消耗。"})):o.errorText?(_(),ue(fl,{key:1,title:"体验记录暂不可用",description:o.errorText,"action-text":""},null,8,["description"])):o.records.length===0?(_(),ue(x0,{key:2,title:"暂无体验记录",description:o.emptyText},null,8,["description"])):(_(),w("section",Dbe,[z(u,{data:o.records,class:"experience-record-list__table","row-key":"experienceNo",stripe:"",border:""},{default:W(()=>[z(i,{prop:"createTime",label:"体验时间","min-width":"170"}),z(i,{label:"模型名称","min-width":"180"},{default:W(({row:d})=>[Ce(I(d.modelName||d.modelId),1)]),_:1}),z(i,{label:"消耗积分",width:"120"},{default:W(({row:d})=>[Ce(I(f($be)(d.chargePoints)),1)]),_:1}),z(i,{label:"状态",width:"110"},{default:W(({row:d})=>[z(c,{class:"experience-record-list__status-tag",type:a(d.status),effect:"light",size:"small"},{default:W(()=>[Ce(I(s(d)),1)]),_:2},1032,["type"])]),_:1}),z(i,{label:"操作",width:"180",fixed:"right"},{default:W(({row:d})=>[l("div",Vbe,[l("button",{"data-testid":"experience-detail-button",type:"button",onClick:p=>n("detail",d)}," 查看详情 ",8,Fbe),l("button",{"data-testid":"experience-continue-button",type:"button",onClick:p=>n("continue",d)}," 继续体验 ",8,Ube)])]),_:1})]),_:1},8,["data"])]))}}}),gA=Ct(zbe,[["__scopeId","data-v-7d5a1f91"]]),Hbe={class:"page-card mall-hero-banner"},Kbe={class:"mall-hero-banner__copy"},qbe={key:0,class:"mall-hero-banner__eyebrow"},jbe={class:"mall-hero-banner__title"},Wbe={key:1},Gbe={key:0,class:"mall-hero-banner__actions"},Ybe=le({__name:"MallHeroBanner",props:{eyebrow:{},title:{},description:{default:""}},setup(e){return(t,n)=>(_(),w("header",Hbe,[l("div",Kbe,[t.eyebrow?(_(),w("span",qbe,I(t.eyebrow),1)):K("",!0),l("h1",jbe,I(t.title),1),t.description?(_(),w("p",Wbe,I(t.description),1)):K("",!0)]),t.$slots.actions?(_(),w("div",Gbe,[be(t.$slots,"actions",{},void 0,!0)])):K("",!0)]))}}),Wl=Ct(Ybe,[["__scopeId","data-v-0b4aebb1"]]),_A=e=>(xt("data-v-4b362fc6"),e=e(),Tt(),e),Xbe={class:"model-card page-card"},Qbe={class:"model-card__head"},Jbe={class:"model-card__mark","aria-hidden":"true"},Zbe=["src"],e2e={key:1,class:"model-card__cube"},t2e={class:"model-card__title-block"},n2e={class:"model-card__title-row"},a2e={class:"model-card__name"},s2e={key:0,class:"model-card__beta-badge"},o2e={class:"model-card__top"},r2e={class:"model-card__chip"},l2e={key:0,class:"model-card__chip"},i2e={class:"model-card__summary"},c2e={class:"model-card__footer"},u2e={class:"model-card__links"},d2e=_A(()=>l("span",null,"立即体验",-1)),f2e=_A(()=>l("span",{class:"model-card__link-arrow","aria-hidden":"true"},"→",-1)),p2e={key:1,type:"button",class:"model-card__link model-card__link--disabled",disabled:"","aria-label":"该模型暂不支持体验"},v2e=le({__name:"ModelCard",props:{model:{},showDefaultAction:{type:Boolean,default:!0}},setup(e){const t=e,n=x(()=>`/models/${t.model.modelId}?tab=api`),a=x(()=>`/models/${t.model.modelId}/experience`),s=x(()=>$s(t.model.iconUrl||""));return(o,r)=>{const i=Ne("RouterLink");return _(),w("article",Xbe,[l("div",Qbe,[l("span",Jbe,[s.value?(_(),w("img",{key:0,class:"model-card__icon",src:s.value,alt:""},null,8,Zbe)):(_(),w("span",e2e))]),l("div",t2e,[l("div",n2e,[l("h3",a2e,[z(i,{class:"model-card__name-link",to:n.value},{default:W(()=>[Ce(I(o.model.modelName),1)]),_:1},8,["to"])]),o.model.status==="trial_published"?(_(),w("span",s2e,"Beta")):K("",!0)])])]),l("div",o2e,[l("span",r2e,I(o.model.typeName),1),o.model.supportsVision===!0?(_(),w("span",l2e,"图像理解")):K("",!0)]),l("p",i2e,I(o.model.summary||"后续补充模型简介。"),1),l("div",c2e,[l("div",u2e,[z(i,{class:"model-card__aux-link",to:n.value},{default:W(()=>[Ce("API 文档")]),_:1},8,["to"])]),be(o.$slots,"footer",{},()=>[o.showDefaultAction&&o.model.supportExperience?(_(),ue(i,{key:0,class:"model-card__link",to:a.value},{default:W(()=>[d2e,f2e]),_:1},8,["to"])):o.showDefaultAction?(_(),w("button",p2e," 暂不可体验 ")):K("",!0)],!0)])])}}}),h2e=Ct(v2e,[["__scopeId","data-v-4b362fc6"]]),m2e={key:3,class:"model-card-grid"},g2e=le({__name:"ModelCardGrid",props:{items:{},loading:{type:Boolean,default:!1},emptyText:{default:"暂无模型"},errorText:{}},setup(e){return(t,n)=>t.loading?(_(),ue(pl,{key:0,title:"模型列表加载中",description:"正在准备模型目录、分类与服务信息。"})):t.errorText?(_(),ue(fl,{key:1,title:"模型列表暂不可用",description:t.errorText,"action-text":""},null,8,["description"])):t.items.length===0?(_(),ue(x0,{key:2,title:"暂无可展示模型",description:t.emptyText},null,8,["description"])):(_(),w("section",m2e,[(_(!0),w(_e,null,Re(t.items,a=>(_(),ue(h2e,{key:a.modelId,model:a},null,8,["model"]))),128))]))}}),yA=Ct(g2e,[["__scopeId","data-v-e06d8c35"]]),nv=e=>(xt("data-v-4ae0fb11"),e=e(),Tt(),e),_2e={class:"model-detail-panel"},y2e={class:"model-detail-panel__panel"},b2e={class:"model-detail-panel__title-row"},w2e={class:"model-detail-panel__title-group"},C2e={key:0,class:"model-detail-panel__beta-badge"},k2e={class:"model-detail-panel__type-badges"},S2e={class:"model-detail-panel__type-badge"},E2e={key:0,class:"model-detail-panel__type-badge"},$2e={class:"model-detail-panel__identity","aria-label":"模型标识信息"},x2e={class:"model-detail-panel__identity-row"},T2e={class:"model-detail-panel__identity-item"},I2e=nv(()=>l("span",null,"模型ID(modelCode):",-1)),A2e={class:"model-detail-panel__identity-item"},N2e=nv(()=>l("span",null,"模型名称:",-1)),R2e=nv(()=>l("p",{class:"model-detail-panel__identity-tip"},[l("span",{class:"model-detail-panel__identity-icon","aria-hidden":"true"},"i"),Ce(" 第三方工具调用时,model 参数请填写上方「模型名称」(统一小写字母、数字、点、下划线和横线,须严格区分大小写) ")],-1)),P2e={class:"model-detail-panel__muted"},M2e={class:"model-detail-panel__panel"},B2e={class:"model-detail-panel__tab-row",role:"tablist","aria-label":"模型详情内容"},L2e=["aria-selected"],O2e=["aria-selected"],D2e={class:"model-detail-panel__tab-content"},V2e={key:0,class:"model-detail-panel__placeholder",role:"tabpanel"},F2e=nv(()=>l("h3",null,"模型介绍",-1)),U2e=["innerHTML"],z2e={key:1,class:"model-detail-panel__placeholder",role:"tabpanel"},H2e=nv(()=>l("h3",null,"API 文档",-1)),K2e=["innerHTML"],q2e={key:1},j2e=le({__name:"ModelDetailPanel",props:{model:{},initialTab:{}},setup(e){const t=e,n=T(t.initialTab||"intro");x(()=>{const o=[...t.model.tags||[]];return t.model.supportsVision&&o.push("支持图像理解"),t.model.supportExperience&&o.push("支持在线体验"),t.model.supportApi&&o.push("支持 API 接入"),t.model.supportStream&&o.push("支持流式输出"),o});const a=x(()=>qc(t.model.detailHtml,t.model.summary||"详细介绍待补充。")),s=x(()=>Obe(t.model.apiDocHtml));return(o,r)=>(_(),w("section",_2e,[l("article",y2e,[l("div",b2e,[l("div",w2e,[l("h1",null,I(o.model.modelName),1),o.model.status==="trial_published"?(_(),w("span",C2e,"Beta")):K("",!0)]),l("div",k2e,[l("span",S2e,I(o.model.typeName),1),o.model.supportsVision===!0?(_(),w("span",E2e,"图像理解")):K("",!0)])]),l("section",$2e,[l("div",x2e,[l("p",T2e,[I2e,Ce(I(o.model.modelId),1)]),l("p",A2e,[N2e,Ce(I(o.model.modelName),1)])]),R2e]),K("",!0),l("p",P2e,I(o.model.summary),1)]),l("article",M2e,[l("div",B2e,[l("button",{type:"button",class:V(["model-detail-panel__tab",{"is-active":n.value==="intro"}]),role:"tab","aria-selected":n.value==="intro",onClick:r[0]||(r[0]=i=>n.value="intro")}," 模型介绍 ",10,L2e),l("button",{type:"button",class:V(["model-detail-panel__tab",{"is-active":n.value==="api"}]),role:"tab","aria-selected":n.value==="api",onClick:r[1]||(r[1]=i=>n.value="api")}," API 文档 ",10,O2e)]),l("div",D2e,[n.value==="intro"?(_(),w("div",V2e,[F2e,l("div",{class:"model-detail-panel__rich-text",innerHTML:a.value},null,8,U2e)])):(_(),w("div",z2e,[H2e,s.value?(_(),w("div",{key:0,class:"model-detail-panel__rich-text",innerHTML:s.value},null,8,K2e)):(_(),w("p",q2e,"文档内容待补充"))]))]),be(o.$slots,"doc-extra",{model:o.model},void 0,!0)])]))}}),bA=Ct(j2e,[["__scopeId","data-v-4ae0fb11"]]),lr=e=>(xt("data-v-90047f77"),e=e(),Tt(),e),W2e={class:"page-card model-price-card"},G2e={class:"model-price-card__header"},Y2e={class:"model-price-card__headline"},X2e=lr(()=>l("h2",{class:"model-price-card__title"},"价格",-1)),Q2e={class:"model-price-card__unit"},J2e={key:0,class:"model-price-card__type"},Z2e={class:"model-price-card__simple"},ewe={class:"model-price-card__price-cell"},twe=lr(()=>l("span",{class:"model-price-card__price-label"},"输入",-1)),nwe={class:"model-price-card__price-value"},awe={class:"model-price-card__price-cell"},swe=lr(()=>l("span",{class:"model-price-card__price-label"},"输出",-1)),owe={class:"model-price-card__price-value"},rwe={key:0,class:"model-price-card__simple model-price-card__simple--single"},lwe={class:"model-price-card__price-cell"},iwe=lr(()=>l("span",{class:"model-price-card__price-label"},"缓存命中",-1)),cwe={class:"model-price-card__price-value"},uwe={key:1,class:"model-price-card__simple model-price-card__simple--single"},dwe={class:"model-price-card__price-cell"},fwe=lr(()=>l("span",{class:"model-price-card__price-label"},"单价",-1)),pwe={class:"model-price-card__price-value"},vwe={class:"model-price-card__tabs model-price-card__tabs--tiered","aria-label":"阶梯计费区间"},hwe=["onClick"],mwe={class:"model-price-card__simple model-price-card__simple--tiered"},gwe={class:"model-price-card__price-cell model-price-card__price-cell--tiered"},_we=lr(()=>l("span",{class:"model-price-card__price-label"},"输入",-1)),ywe={class:"model-price-card__price-value"},bwe={class:"model-price-card__price-cell model-price-card__price-cell--tiered"},wwe=lr(()=>l("span",{class:"model-price-card__price-label"},"输出",-1)),Cwe={class:"model-price-card__price-value"},kwe={key:0,class:"model-price-card__simple model-price-card__simple--single"},Swe={class:"model-price-card__price-cell"},Ewe=lr(()=>l("span",{class:"model-price-card__price-label"},"缓存命中",-1)),$we={class:"model-price-card__price-value"},xwe={key:3,class:"model-price-card__kv"},Twe=lr(()=>l("dt",null,"价格摘要",-1)),Iwe=lr(()=>l("dt",null,"积分规则",-1)),Awe={key:4,class:"model-price-card__rates"},Nwe=lr(()=>l("p",{class:"model-price-card__rates-label"},"时段倍率",-1)),Rwe={class:"model-price-card__time-axis",role:"img","aria-label":"24小时时段倍率分布"},Pwe={class:"model-price-card__rates-chips"},Mwe={key:5,class:"model-price-card__global-rate"},Bwe=lr(()=>l("span",{class:"model-price-card__global-rate-label"},"全局倍率",-1)),Lwe={class:"model-price-card__global-rate-value"},Owe={class:"model-price-card__actions"},Dwe=["disabled"],Vwe=le({__name:"ModelPriceCard",props:{model:{},canExperience:{type:Boolean}},emits:["experience","purchase","create-service-group"],setup(e,{emit:t}){const n=e,a=t,s=x(()=>!n.canExperience||!n.model.supportExperience),o=T(-1),r=x(()=>n.model.billingRule),i=x(()=>{var F;return((F=r.value)==null?void 0:F.billingType)==="tiered"?r.value.priceConfig:null}),c=x(()=>{var q;if(((q=r.value)==null?void 0:q.billingType)!=="basic")return null;const F=r.value.priceConfig;return"basePrice"in F?F:null}),u=x(()=>{var q;if(((q=r.value)==null?void 0:q.billingType)!=="basic")return null;const F=r.value.priceConfig;return"unitPrice"in F?F:null}),d=x(()=>c.value?c.value.timeRates??[]:u.value?u.value.timeRates??[]:i.value?i.value.timeRates??[]:[]),p=x(()=>d.value.length>0),v=x(()=>c.value?c.value.globalRate??null:u.value?u.value.globalRate??null:i.value?i.value.globalRate??null:null),h=x(()=>{const F=v.value;if(!F)return!1;const q=Number(F);return Number.isFinite(q)&&Math.abs(q-1)>1e-4}),m=x(()=>{var q;const F=((q=r.value)==null?void 0:q.priceUnit)||n.model.billing.priceUnit;return F==="PER_1M_TOKEN"?"积分/百万Token":F==="PER_REQUEST"?"积分/每次请求":F==="PER_IMAGE"?"积分/每张图片":F||"--"}),g=x(()=>{var F;return((F=r.value)==null?void 0:F.billingType)==="tiered"?"阶梯计费":"基础计费"}),y=x(()=>{var q;const F=((q=i.value)==null?void 0:q.tiers)||[];return[{index:-1,label:"全部"},...F.map((L,U)=>({index:U,label:R(L)}))]}),b=x(()=>{var F;return A(((F=i.value)==null?void 0:F.tiers)||[],"inputPrice",o.value)}),C=x(()=>{var F;return A(((F=i.value)==null?void 0:F.tiers)||[],"outputPrice",o.value)}),k=F=>F?F.split("-").map(q=>{const L=q.trim();if(!L)return"--";const U=Number(L);return Number.isFinite(U)?`${U}`:L}).join("-"):"--",S=F=>k(F),$=(F,q)=>`${F||"--"}-${q||"--"}`;function E(F){return F>=1e6&&F%1e6===0?`${F/1e6}M`:F>=1e3&&F%1e3===0?`${F/1e3}K`:String(F)}function R(F){return F.from<=0?`输入 ≤ ${E(F.to)}`:`${E(F.from)} < 输入 ≤ ${E(F.to)}`}function A(F,q,L){var Z;if(L>=0)return S((Z=F[L])==null?void 0:Z[q]);const U=F.map(te=>te[q]).filter(Boolean);if(U.length===0)return S();const O=U.map(Number).filter(Number.isFinite);if(O.length!==U.length)return S(U.join("-"));const G=Math.min(...O),ae=Math.max(...O);return S(G===ae?U[0]:`${G}-${ae}`)}function N(F){const q=Number(F);return Number.isFinite(q)?String(q):F}function P(F){const q=F.split(":"),L=Number(q[0])||0,U=Number(q[1])||0;return L*60+U}function B(F){const q=Number(F);return Number.isFinite(q)?q<.9999?"discount":q>1.0001?"premium":"normal":"normal"}const M=x(()=>{const F=d.value;if(F.length===0)return-1;const q=new Date,L=q.getHours()*60+q.getMinutes();for(let U=0;U=O&&L{const F=d.value;if(F.length===0)return[];const q=24*60,L=[...F].sort((G,ae)=>P(G.startTime)-P(ae.startTime)),U=[];let O=0;for(const G of L){const ae=P(G.startTime),Z=P(G.endTime);ae>O&&U.push({startPct:O/q*100,widthPct:(ae-O)/q*100,category:"normal"}),U.push({startPct:ae/q*100,widthPct:(Z-ae)/q*100,category:B(G.rate)}),O=Z}return O(_(),w("aside",W2e,[l("header",G2e,[l("div",Y2e,[X2e,l("p",Q2e,"单位:"+I(m.value),1)]),g.value?(_(),w("p",J2e,"计费类型:"+I(g.value),1)):K("",!0)]),c.value?(_(),w(_e,{key:0},[l("div",Z2e,[l("div",ewe,[twe,l("strong",nwe,I(S(c.value.basePrice.inputPrice)),1)]),l("div",awe,[swe,l("strong",owe,I(S(c.value.basePrice.outputPrice)),1)])]),c.value.basePrice.cacheInputPrice?(_(),w("div",rwe,[l("div",lwe,[iwe,l("strong",cwe,I(S(c.value.basePrice.cacheInputPrice)),1)])])):K("",!0)],64)):u.value?(_(),w("div",uwe,[l("div",dwe,[fwe,l("strong",pwe,I(S(u.value.unitPrice)),1)])])):i.value?(_(),w(_e,{key:2},[l("div",vwe,[(_(!0),w(_e,null,Re(y.value,L=>(_(),w("button",{key:L.index,"data-testid":"tier-tab",type:"button",class:V({"is-active":o.value===L.index}),onClick:U=>o.value=L.index},I(L.label),11,hwe))),128))]),l("div",mwe,[l("div",gwe,[_we,l("strong",ywe,I(b.value),1)]),l("div",bwe,[wwe,l("strong",Cwe,I(C.value),1)])]),i.value.cacheInputPrice?(_(),w("div",kwe,[l("div",Swe,[Ewe,l("strong",$we,I(S(i.value.cacheInputPrice)),1)])])):K("",!0)],64)):(_(),w("dl",xwe,[l("div",null,[Twe,l("dd",null,I(F.model.billing.priceSummary),1)]),l("div",null,[Iwe,l("dd",null,I(F.model.billing.pointRule||"--"),1)])])),p.value?(_(),w("div",Awe,[Nwe,l("div",Rwe,[(_(!0),w(_e,null,Re(j.value,(L,U)=>(_(),w("div",{key:"axis-"+U,class:V(["model-price-card__time-axis-seg","model-price-card__time-axis-seg--"+L.category]),style:Je({left:L.startPct+"%",width:L.widthPct+"%"})},null,6))),128))]),l("div",Pwe,[(_(!0),w(_e,null,Re(d.value,(L,U)=>(_(),w("span",{key:U,class:V(["model-price-card__rate-chip",["model-price-card__rate-chip--"+B(L.rate),{"model-price-card__rate-chip--current":U===M.value}]])},I($(L.startTime,L.endTime))+" ×"+I(N(L.rate)),3))),128))])])):K("",!0),h.value?(_(),w("div",Mwe,[Bwe,l("strong",Lwe,"×"+I(N(v.value)),1)])):K("",!0),l("div",Owe,[l("button",{"data-testid":"experience-button",type:"button",class:"model-price-card__primary",disabled:s.value,onClick:q[0]||(q[0]=L=>a("experience",F.model))}," 立即体验 ",8,Dwe),l("button",{"data-testid":"purchase-button",type:"button",class:"model-price-card__secondary",onClick:q[1]||(q[1]=L=>a("purchase",F.model))}," 购买积分 "),l("button",{"data-testid":"service-group-button",type:"button",class:"model-price-card__ghost",onClick:q[2]||(q[2]=L=>a("create-service-group",F.model))}," 创建服务组 ")])]))}}),wA=Ct(Vwe,[["__scopeId","data-v-90047f77"]]),Zc=e=>(xt("data-v-80d8bcce"),e=e(),Tt(),e),Fwe={class:"page-container activity-center"},Uwe=Zc(()=>l("div",{class:"hero-highlight"},[l("div",{class:"highlight-title"},"热门权益"),l("div",{class:"highlight-value"},"积分券 + 购买折扣券"),l("div",{class:"highlight-subtitle"},"统一先领券,后使用")],-1)),zwe=Zc(()=>l("section",{class:"section-head section-head--summary","data-testid":"coupon-summary-section-head"},[l("h3",null,"我的券码")],-1)),Hwe={class:"summary-grid","data-testid":"coupon-summary-grid"},Kwe={class:"summary-stat-card__icon","aria-hidden":"true"},qwe={key:0,class:"summary-stat-card__coins"},jwe=Zc(()=>l("i",null,null,-1)),Wwe=Zc(()=>l("i",null,null,-1)),Gwe=Zc(()=>l("i",null,null,-1)),Ywe=[jwe,Wwe,Gwe],Xwe={key:1,class:"summary-stat-card__wallet"},Qwe=Zc(()=>l("i",null,null,-1)),Jwe=[Qwe],Zwe={class:"summary-stat-card__content"},eCe={class:"summary-stat-card__title"},tCe={class:"summary-stat-card__value-row"},nCe={class:"summary-stat-card__desc"},aCe=mn('
    查看更多
    前往我的券码
    查看全部积分券与购买折扣券详情
    ',3),sCe=[aCe],oCe={class:"section-head"},rCe=Zc(()=>l("h3",null,"热门活动",-1)),lCe={class:"type-tabs"},iCe=["onClick"],cCe={key:0,class:"state-box"},uCe={key:1,class:"state-box error"},dCe={key:2,class:"state-box"},fCe={key:3,class:"activity-grid"},pCe=le({__name:"ActivityCenterView",setup(e){const t=pn(),n=_a(),a=T([]),s=T(!1),o=T(""),r=T(""),i=T(null),c=T(!1),u=T(""),d=T(!1),p=T(null),v=[{label:"全部活动",value:""},{label:"新用户活动",value:"new_user_claim"},{label:"场景活动",value:"scene_claim"},{label:"购买活动",value:"recharge_claim"}],h=x(()=>a.value),m=x(()=>{var $,E;return[{key:"credit",title:"积分券",value:(($=i.value)==null?void 0:$.creditCouponCount)??0,suffix:"张",description:"可兑换积分"},{key:"recharge",title:"购买折扣券",value:((E=i.value)==null?void 0:E.rechargeCouponCount)??0,suffix:"张",description:"购买积分时抵扣"}]}),g=async()=>{s.value=!0,o.value="";try{const $=r.value?{activityType:r.value}:void 0,E=await q1e($);a.value=E.list||[]}catch($){a.value=[],o.value=$ instanceof Error?$.message:"活动加载失败,请稍后重试。"}finally{s.value=!1}},y=async()=>{if(!n.isLoggedIn){i.value=null,u.value="";return}c.value=!0,u.value="";try{i.value=await iA()}catch($){i.value=null,u.value=$ instanceof Error?$.message:"券码摘要加载失败。"}finally{c.value=!1}},b=$=>{r.value=$,g()},C=$=>{p.value=$,d.value=!0},k=()=>{t.push({name:"login",query:{redirect:t.currentRoute.value.fullPath}})},S=()=>{if(!n.isLoggedIn){k();return}t.push("/coupons")};return Te(()=>n.isLoggedIn,()=>{y()}),ft(()=>{g(),y()}),($,E)=>(_(),w("div",Fwe,[z(f(Wl),{eyebrow:"Promotional Events",title:"活动中心",description:"游客可先浏览活动,登录后即可领取积分券或购买折扣券;积分券进入券包后再兑换,购买折扣券在积分购买流程中使用。"},{actions:W(()=>[Uwe]),_:1}),zwe,l("section",Hwe,[(_(!0),w(_e,null,Re(m.value,R=>(_(),w("article",{key:R.key,class:V(["summary-stat-card",`is-${R.key}`])},[l("div",Kwe,[R.key==="credit"?(_(),w("span",qwe,Ywe)):(_(),w("span",Xwe,Jwe))]),l("div",Zwe,[l("div",eCe,I(R.title),1),l("div",tCe,[l("strong",null,I(R.value),1),l("span",null,I(R.suffix),1)]),l("div",nCe,I(R.description),1)])],2))),128)),l("button",{type:"button",class:"summary-latest-card","data-testid":"coupon-summary-view-more",onClick:S},sCe)]),l("section",oCe,[rCe,l("div",lCe,[(_(),w(_e,null,Re(v,R=>l("button",{key:R.value,class:V(["type-tab",{active:r.value===R.value}]),onClick:A=>b(R.value)},I(R.label),11,iCe)),64))])]),s.value?(_(),w("div",cCe,"活动加载中...")):o.value?(_(),w("div",uCe,I(o.value),1)):h.value.length===0?(_(),w("div",dCe,"当前暂无活动")):(_(),w("div",fCe,[(_(!0),w(_e,null,Re(h.value,R=>(_(),ue(vye,{key:R.id,activity:R,"is-logged-in":f(n).isLoggedIn,onDetail:A=>C(R.id),onReceive:A=>C(R.id),onLogin:k},null,8,["activity","is-logged-in","onDetail","onReceive"]))),128))])),d.value&&p.value?(_(),ue(Dye,{key:4,"activity-id":p.value,"is-logged-in":f(n).isLoggedIn,onClose:E[0]||(E[0]=R=>d.value=!1),onLogin:k,onRefresh:E[1]||(E[1]=R=>{g(),y()})},null,8,["activity-id","is-logged-in"])):K("",!0)]))}}),vCe=Ct(pCe,[["__scopeId","data-v-80d8bcce"]]),dd=()=>m2(),av=e=>(xt("data-v-2a7ce8f9"),e=e(),Tt(),e),hCe={class:"coupon-exchange"},mCe={class:"exchange-card"},gCe=av(()=>l("span",{class:"exchange-label"},"积分券兑换",-1)),_Ce=av(()=>l("p",null,"积分券不会在领取时直接入账,确认兑换后会把积分写入积分账户,并跳转到积分明细页。",-1)),yCe={class:"exchange-meta"},bCe=av(()=>l("dt",null,"券编号",-1)),wCe=av(()=>l("dt",null,"积分面额",-1)),CCe=av(()=>l("dt",null,"有效期",-1)),kCe={key:0,class:"exchange-success"},SCe={class:"exchange-actions"},ECe=["disabled"],$Ce=le({__name:"CouponExchangeView",setup(e){const t=fa(),n=pn(),a=x(()=>Number(t.params.id)),s=x(()=>String(t.query.couponName||"积分券")),o=x(()=>String(t.query.couponNo||"")),r=x(()=>Number(t.query.creditAmount||0)),i=x(()=>String(t.query.validEndTime||"")),c=T(!1),u=T(""),d=()=>{n.push("/coupons")},p=async()=>{if(!Number.isFinite(a.value)||a.value<=0){rt.error("积分券信息缺失,请返回券包重新进入");return}if(await dd()){c.value=!0;try{const v=await Y1e(a.value);u.value=`兑换成功,已入账 ${v.creditAmount} 积分`,rt.success(u.value),await n.push(v.redirectUrl)}catch{}finally{c.value=!1}}};return(v,h)=>(_(),w("div",hCe,[l("section",mCe,[gCe,l("h2",null,I(s.value),1),_Ce,l("dl",yCe,[l("div",null,[bCe,l("dd",null,I(o.value||"未携带"),1)]),l("div",null,[wCe,l("dd",null,I(r.value)+" 积分",1)]),l("div",null,[CCe,l("dd",null,I(i.value||"长期有效"),1)])]),u.value?(_(),w("div",kCe,I(u.value),1)):K("",!0),l("div",SCe,[l("button",{class:"btn-secondary",onClick:d},"返回券包"),l("button",{class:"btn-primary",disabled:c.value,onClick:p},I(c.value?"兑换中...":"确认兑换"),9,ECe)])])]))}}),xCe=Ct($Ce,[["__scopeId","data-v-2a7ce8f9"]]),TCe={class:"coupon-left"},ICe={class:"coupon-value"},ACe={class:"coupon-type"},NCe={class:"coupon-right"},RCe={class:"coupon-name"},PCe={class:"coupon-no"},MCe={key:0,class:"coupon-scope"},BCe={key:1,class:"coupon-start"},LCe={key:2,class:"coupon-expire"},OCe={key:3,class:"coupon-cancelled-desc"},DCe={class:"coupon-actions"},VCe={class:"status-group"},FCe={key:0,class:"status-badge status-pending"},UCe=["disabled"],zCe=le({__name:"CouponCard",props:{coupon:{}},emits:["use"],setup(e){const t=e,n=u=>({available:"status-available",used:"status-used",expired:"status-expired",cancelled:"status-cancelled"})[u]||"",a=u=>({available:"未使用",used:"已使用",expired:"已过期",cancelled:"已作废"})[u]||u,s=u=>u.displayStatus==="available_pending",o=u=>u.status==="cancelled"?u.statusDesc:null,r=u=>u.couponType==="credit_coupon"?"积分券":"购买折扣券",i=u=>u.couponType==="credit_coupon"?`${u.creditAmount??0} 积分`:u.discountType==="percent"?u.discountDesc??"":`减 ${u.discountValue??0} 元`,c=u=>{var d;return u.applyScope==="specified_package"&&((d=u.scopePackages)!=null&&d.length)?u.scopePackages.map(p=>p.packageName).join("、"):u.minSpendAmount&&u.minSpendAmount>0?`满 ¥${u.minSpendAmount} 可用`:"不限最低消费"};return(u,d)=>(_(),w("div",{class:V(["coupon-card",n(u.coupon.status)])},[l("div",TCe,[l("div",ICe,I(i(u.coupon)),1),l("div",ACe,I(r(u.coupon)),1)]),l("div",NCe,[l("div",RCe,I(u.coupon.couponName),1),l("div",PCe,"编号:"+I(u.coupon.couponNo),1),f(W2)(u.coupon.couponType)?(_(),w("div",MCe," 适用范围:"+I(c(u.coupon)),1)):K("",!0),s(u.coupon)&&u.coupon.validStartTime?(_(),w("div",BCe," 生效时间 "+I(u.coupon.validStartTime),1)):K("",!0),u.coupon.validEndTime?(_(),w("div",LCe," 有效期至 "+I(u.coupon.validEndTime),1)):K("",!0),o(u.coupon)?(_(),w("div",OCe,I(o(u.coupon)),1)):K("",!0),l("div",DCe,[l("div",VCe,[l("span",{class:V(["status-badge",n(u.coupon.status)])},I(a(u.coupon.status)),3),s(u.coupon)?(_(),w("span",FCe,"待生效")):K("",!0)]),u.coupon.useAction?(_(),w("button",{key:0,class:"btn-use",disabled:!u.coupon.actionEnabled,onClick:d[0]||(d[0]=p=>u.$emit("use"))},I(t.coupon.actionText||t.coupon.useActionText||"立即处理"),9,UCe)):K("",!0)])])],2))}}),HCe=Ct(zCe,[["__scopeId","data-v-7d1591ba"]]),KCe=e=>(xt("data-v-7d81d07a"),e=e(),Tt(),e),qCe={class:"page-container my-coupons"},jCe=KCe(()=>l("div",{class:"redeem-banner__content"},[l("span",{class:"redeem-banner__label"},"券码入口"),l("h3",null,"有券码?立即领券"),l("p",null,"兑换码可能兑换出积分券或购买折扣券,成功后统一进入券包管理。")],-1)),WCe={class:"status-tabs"},GCe=["onClick"],YCe={key:0,class:"state-box"},XCe={key:1,class:"state-box error"},QCe={key:2,class:"state-box"},JCe={key:3,class:"coupon-list"},ZCe={key:4,class:"my-coupons__pagination"},eke=le({__name:"MyCouponsView",setup(e){const t=pn(),n=T([]),a=T(""),s=T(!1),o=T(""),r=T(0),i=T(1),c=T(10),u=[10,20,50],d=x(()=>!0),p=[{label:"全部",value:""},{label:"未使用",value:"available"},{label:"已使用",value:"used"},{label:"已过期",value:"expired"}],v=async()=>{s.value=!0,o.value="";try{const C=await cA({status:a.value||void 0,pageNo:i.value,pageSize:c.value});n.value=C.list||[],r.value=C.total}catch(C){n.value=[],r.value=0,o.value=C instanceof Error?C.message:"加载失败"}finally{s.value=!1}},h=C=>{a.value=C,i.value=1,v()},m=C=>{C===i.value||C<1||(i.value=C,v())},g=C=>{c.value=C,i.value=1,v()},y=C=>{if(!C.actionEnabled){rt.warning(C.actionText||"当前券尚未生效");return}if(C.useAction==="exchange_credit"){t.push({path:`/coupons/exchange/${C.id}`,query:{couponName:C.couponName,couponNo:C.couponNo,couponType:C.couponType,creditAmount:String(C.creditAmount??""),validStartTime:C.validStartTime??"",validEndTime:C.validEndTime??""}});return}if(C.useAction==="go_recharge"){t.push({path:"/credits/purchase",query:{couponId:String(C.id),couponNo:C.couponNo}});return}rt.warning("当前券状态不可使用")},b=()=>{t.push("/coupons/redeem")};return ft(()=>{v()}),(C,k)=>{const S=Ne("el-pagination");return _(),w("div",qCe,[z(f(Wl),{eyebrow:"Coupon Wallet",title:"我的券码",description:"管理已领取的积分券和购买折扣券,积分券需要手动兑换后入账。"},{actions:W(()=>[l("button",{class:"btn-redeem",onClick:b},"兑换码兑换")]),_:1}),l("section",{class:"redeem-banner"},[jCe,l("button",{class:"redeem-banner__button",onClick:b},"去兑换")]),l("div",WCe,[(_(),w(_e,null,Re(p,$=>l("button",{key:$.value,class:V(["status-tab",{active:a.value===$.value}]),onClick:E=>h($.value)},I($.label),11,GCe)),64))]),s.value?(_(),w("div",YCe,"加载中...")):o.value?(_(),w("div",XCe,I(o.value),1)):n.value.length===0?(_(),w("div",QCe,"当前筛选下暂无券码")):(_(),w("div",JCe,[(_(!0),w(_e,null,Re(n.value,$=>(_(),ue(HCe,{key:$.couponNo,coupon:$,onUse:E=>y($)},null,8,["coupon","onUse"]))),128))])),!s.value&&!o.value&&d.value?(_(),w("footer",ZCe,[z(S,{"current-page":i.value,"onUpdate:currentPage":k[0]||(k[0]=$=>i.value=$),"page-size":c.value,"onUpdate:pageSize":k[1]||(k[1]=$=>c.value=$),background:"","page-sizes":u,"popper-class":"my-coupons-pagination-size-dropdown",total:r.value,layout:"total, sizes, prev, pager, next",onCurrentChange:m,onSizeChange:g},null,8,["current-page","page-size","total"])])):K("",!0)])}}}),tke=Ct(eke,[["__scopeId","data-v-7d81d07a"]]),Fd=e=>(xt("data-v-81232abd"),e=e(),Tt(),e),nke={class:"coupon-redeem"},ake=Fd(()=>l("header",{class:"page-header"},[l("h2",{class:"page-title"},"输入兑换码,兑换后即可使用"),l("p",{class:"page-subtitle"},"兑换码会兑换一张预发放库存券。积分券进入券包后再兑换,购买折扣券进入券包后在积分购买流程中使用。")],-1)),ske={class:"redeem-form"},oke=["disabled"],rke=["disabled"],lke={key:0,class:"error-msg"},ike={key:1,class:"result-box"},cke=Fd(()=>l("h3",null,"兑换成功",-1)),uke={class:"result-item"},dke=Fd(()=>l("span",{class:"result-label"},"券名称",-1)),fke={class:"result-value"},pke={class:"result-item"},vke=Fd(()=>l("span",{class:"result-label"},"权益内容",-1)),hke={class:"result-value"},mke={key:0,class:"result-item"},gke=Fd(()=>l("span",{class:"result-label"},"适用范围",-1)),_ke={class:"result-value"},yke={key:1,class:"result-item"},bke=Fd(()=>l("span",{class:"result-label"},"有效期至",-1)),wke={class:"result-value"},Cke={class:"result-actions"},kke=le({__name:"CouponRedeemView",setup(e){const t=pn(),n=T(""),a=T(null),s=T(!1),o=T(""),r=async()=>{if(n.value.trim()){s.value=!0,o.value="",a.value=null;try{a.value=await G1e({claimCode:n.value.trim()})}catch(d){o.value=d instanceof Error?d.message:"兑换失败"}finally{s.value=!1}}},i=()=>{t.push("/coupons")},c=d=>d.couponType==="credit_coupon"?`${d.creditAmount??0} 积分券`:d.discountType==="percent"?`积分购买 ${d.discountDesc??""}券`:`积分购买减 ${d.discountValue??0} 元券`,u=d=>d.minSpendAmount&&d.minSpendAmount>0?`满 ¥${d.minSpendAmount} 可用`:"不限最低消费";return(d,p)=>(_(),w("div",nke,[ake,l("div",ske,[et(l("input",{"onUpdate:modelValue":p[0]||(p[0]=v=>n.value=v),class:"redeem-input",placeholder:"请输入兑换码",disabled:s.value,onKeyup:yn(r,["enter"])},null,40,oke),[[hn,n.value]]),l("button",{class:"btn-redeem",disabled:s.value||!n.value.trim(),onClick:r},I(s.value?"兑换中...":"兑换"),9,rke)]),o.value?(_(),w("div",lke,I(o.value),1)):K("",!0),a.value?(_(),w("div",ike,[cke,l("div",uke,[dke,l("span",fke,I(a.value.couponName),1)]),l("div",pke,[vke,l("span",hke,I(c(a.value)),1)]),f(W2)(a.value.couponType)?(_(),w("div",mke,[gke,l("span",_ke,I(u(a.value)),1)])):K("",!0),a.value.validEndTime?(_(),w("div",yke,[bke,l("span",wke,I(a.value.validEndTime),1)])):K("",!0),l("div",Cke,[l("button",{class:"btn-primary",onClick:i},"查看我的券码"),l("button",{class:"btn-again",onClick:p[1]||(p[1]=v=>{a.value=null,n.value="",o.value=""})},"继续兑换")])])):K("",!0)]))}}),Ske=Ct(kke,[["__scopeId","data-v-81232abd"]]),T0=e=>(xt("data-v-4db9880f"),e=e(),Tt(),e),Eke={class:"page-container experience-records-view"},$ke={class:"experience-records-view__hero page-card"},xke=T0(()=>l("div",null,[l("p",null,"商城 / 模型服务 / 体验记录"),l("h1",null,"体验记录")],-1)),Tke={class:"experience-records-view__filter page-card"},Ike=T0(()=>l("span",{"aria-hidden":"true"}," ",-1)),Ake=T0(()=>l("button",{type:"submit",class:"experience-records-view__btn experience-records-view__btn--primary"},"查询",-1)),Nke={class:"experience-records-view__records page-card"},Rke=T0(()=>l("h2",null,"记录列表",-1)),Pke={key:0,class:"experience-records-view__footer"},Mke=le({__name:"ExperienceRecordsView",setup(e){const t=fa(),n=pn(),a=[10,20,50],s=x(()=>{const oe=Number.parseInt(String(t.query.pageSize||"10"),10);return a.includes(oe)?oe:10}),o=T(!1),r=T(""),i=T([]),c=T(0),u=T([]),d=T(null),p=x({get:()=>d.value!==null,set:oe=>{oe||(d.value=null)}}),v=At({modelId:"",status:"",startDate:"",endDate:""}),h=[{label:"全部",value:""},{label:"成功",value:"success"},{label:"失败",value:"failed"},{label:"已取消",value:"canceled"}],m=oe=>String(oe).padStart(2,"0"),g=oe=>`${oe.getFullYear()}-${m(oe.getMonth()+1)}-${m(oe.getDate())}`,y=()=>{const oe=new Date,J=new Date;return J.setDate(oe.getDate()-6),{startDate:g(J),endDate:g(oe)}},b=oe=>oe?`${oe} 00:00:00`:void 0,C=oe=>oe?`${oe} 23:59:59`:void 0,k=oe=>typeof oe=="string"&&oe.length>=10?oe.slice(0,10):"",S=x({get:()=>v.startDate&&v.endDate?[v.startDate,v.endDate]:null,set:oe=>{oe&&oe.length===2?(v.startDate=oe[0]||"",v.endDate=oe[1]||""):(v.startDate="",v.endDate="")}}),$=x(()=>{const oe=Number.parseInt(String(t.query.page||"1"),10);return Number.isFinite(oe)&&oe>0?oe:1}),E=x(()=>String(t.query.fromModelId||"")),R=oe=>oe==="success"?"success":oe==="running"?"warning":oe==="failed"||oe==="timeout"||oe==="rejected"?"danger":"info",A=oe=>vA[oe].label;x(()=>Math.max(1,Math.ceil(c.value/s.value)));const N=oe=>Object.fromEntries(Object.entries(oe).filter(([,J])=>J!==void 0&&J!=="")),P=()=>{const oe=y(),J=String(t.query.status||"");v.modelId=String(t.query.modelId||""),v.status=h.some(ee=>ee.value===J)?J:"",v.startDate=k(t.query.startTime)||oe.startDate,v.endDate=k(t.query.endTime)||oe.endDate},B=()=>({pageNo:$.value,pageSize:s.value,...v.modelId?{modelId:v.modelId}:{},...v.status?{status:v.status}:{},...b(v.startDate)?{startTime:b(v.startDate)}:{},...C(v.endDate)?{endTime:C(v.endDate)}:{}}),M=async()=>{try{const oe=await K2({pageNo:1,pageSize:10});u.value=oe.list||[]}catch{u.value=[]}},j=async()=>{o.value=!0,r.value="";try{const oe=await q0e(B());i.value=oe.list||[],c.value=oe.total||0}catch(oe){i.value=[],c.value=0,r.value=oe instanceof Error?oe.message:"体验记录加载失败,请稍后重试。"}finally{o.value=!1}},F=async(oe=1,J=s.value)=>{await n.replace({query:N({page:String(oe),pageSize:String(J),modelId:v.modelId,status:v.status,startTime:b(v.startDate),endTime:C(v.endDate),fromModelId:E.value})})},q=async()=>{const oe=y();v.modelId="",v.status="",v.startDate=oe.startDate,v.endDate=oe.endDate,await F(1)},L=async oe=>{await F(oe)},U=async oe=>{!a.includes(oe)||oe===s.value||await F(1,oe)},O=oe=>oe==="tiered"?"阶梯计费":oe==="basic"?"基础计费":oe||"-",G=oe=>oe==="PER_1M_TOKEN"?"按百万 Tokens":oe==="PER_IMAGE"?"按张":oe==="PER_REQUEST"?"按次":oe||"-",ae=oe=>oe.priceUnit==="PER_1M_TOKEN",Z=oe=>{d.value=oe},te=async oe=>{const J=oe.conversationNo?{conversationNo:oe.conversationNo}:{prompt:oe.prompt};await n.push({name:"model-experience",params:{id:oe.modelId},query:J})},ie=async()=>{if(E.value){await n.push({name:"model-experience",params:{id:E.value}});return}await n.push({name:"models"})};return Te(()=>t.query,()=>{P(),j()},{deep:!0}),ft(()=>{P(),Promise.all([M(),j()])}),(oe,J)=>{const ee=Ne("el-option"),Q=Ne("el-select"),H=Ne("el-form-item"),X=Ne("el-date-picker"),he=Ne("el-form"),D=Ne("el-pagination"),Y=Ne("el-descriptions-item"),ne=Ne("el-tag"),re=Ne("el-descriptions"),se=Ne("el-dialog");return _(),w("section",Eke,[l("header",$ke,[xke,l("button",{class:"experience-records-view__back-button","data-testid":"experience-records-back-button",type:"button",onClick:ie},I(E.value?"返回模型体验":"返回模型列表"),1)]),l("section",Tke,[z(he,{class:"experience-records-view__filter-form","label-position":"top",onSubmit:J[3]||(J[3]=qe(ke=>F(1),["prevent"]))},{default:W(()=>[z(H,{class:"experience-records-view__field",label:"模型"},{default:W(()=>[z(Q,{modelValue:v.modelId,"onUpdate:modelValue":J[0]||(J[0]=ke=>v.modelId=ke),class:"experience-records-view__control mall-select-red-theme","popper-class":"experience-records-view__select-dropdown mall-select-red-dropdown"},{default:W(()=>[z(ee,{label:"全部",value:""}),(_(!0),w(_e,null,Re(u.value,ke=>(_(),ue(ee,{key:ke.modelId,label:ke.modelName,value:ke.modelId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),z(H,{class:"experience-records-view__field",label:"状态"},{default:W(()=>[z(Q,{modelValue:v.status,"onUpdate:modelValue":J[1]||(J[1]=ke=>v.status=ke),class:"experience-records-view__control mall-select-red-theme","popper-class":"experience-records-view__select-dropdown mall-select-red-dropdown"},{default:W(()=>[(_(),w(_e,null,Re(h,ke=>z(ee,{key:ke.value||"all",label:ke.label,value:ke.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),z(H,{class:"experience-records-view__field",label:"时间范围"},{default:W(()=>[z(X,{modelValue:S.value,"onUpdate:modelValue":J[2]||(J[2]=ke=>S.value=ke),class:"experience-records-view__control","popper-class":"experience-records-view__date-dropdown",type:"daterange","value-format":"YYYY-MM-DD","start-placeholder":"开始日期","end-placeholder":"结束日期","range-separator":"至",clearable:""},null,8,["modelValue"])]),_:1}),z(H,{class:"experience-records-view__field experience-records-view__field--actions"},{label:W(()=>[Ike]),default:W(()=>[l("div",null,[Ake,l("button",{type:"button",class:"experience-records-view__btn",onClick:q},"重置")])]),_:1})]),_:1})]),l("section",Nke,[Rke,z(f(gA),{records:i.value,loading:o.value,"error-text":r.value,"empty-text":"暂无体验记录,可先进入模型体验页发起在线体验。",onDetail:Z,onContinue:te},null,8,["records","loading","error-text"]),!o.value&&!r.value&&i.value.length>0?(_(),w("footer",Pke,[z(D,{background:"",layout:"total, sizes, prev, pager, next","current-page":$.value,"page-size":s.value,"page-sizes":a,total:c.value,"popper-class":"experience-records-view__pagination-dropdown mall-select-red-dropdown",onCurrentChange:L,onSizeChange:U},null,8,["current-page","page-size","total"])])):K("",!0)]),z(se,{modelValue:p.value,"onUpdate:modelValue":J[4]||(J[4]=ke=>p.value=ke),class:"experience-records-view__detail-dialog",title:"体验详情",width:"680px","destroy-on-close":""},{default:W(()=>[d.value?(_(),ue(re,{key:0,column:2,border:""},{default:W(()=>[z(Y,{label:"体验单号"},{default:W(()=>[Ce(I(d.value.experienceNo),1)]),_:1}),z(Y,{label:"调用编号"},{default:W(()=>[Ce(I(d.value.callNo),1)]),_:1}),z(Y,{label:"会话编号"},{default:W(()=>[Ce(I(d.value.conversationNo||"-"),1)]),_:1}),z(Y,{label:"模型"},{default:W(()=>[Ce(I(d.value.modelName||d.value.modelId),1)]),_:1}),z(Y,{label:"状态"},{default:W(()=>[z(ne,{type:R(d.value.status),effect:"light",size:"small"},{default:W(()=>[Ce(I(A(d.value.status)),1)]),_:1},8,["type"])]),_:1}),z(Y,{label:"计费类型"},{default:W(()=>[Ce(I(O(d.value.billingType)),1)]),_:1}),z(Y,{label:"计费单位"},{default:W(()=>[Ce(I(G(d.value.priceUnit)),1)]),_:1}),z(Y,{label:"消耗积分"},{default:W(()=>[Ce(I(d.value.chargePoints),1)]),_:1}),ae(d.value)?(_(),ue(Y,{key:0,label:"输入 Token"},{default:W(()=>[Ce(I(d.value.inputTokens),1)]),_:1})):K("",!0),ae(d.value)?(_(),ue(Y,{key:1,label:"输出 Token"},{default:W(()=>[Ce(I(d.value.outputTokens),1)]),_:1})):K("",!0),ae(d.value)?(_(),ue(Y,{key:2,label:"缓存 Token"},{default:W(()=>[Ce(I(d.value.cachedTokens),1)]),_:1})):d.value.priceUnit==="PER_IMAGE"?(_(),ue(Y,{key:3,label:"生成数量"},{default:W(()=>[Ce("1 张")]),_:1})):d.value.priceUnit==="PER_REQUEST"?(_(),ue(Y,{key:4,label:"调用次数"},{default:W(()=>[Ce("1 次")]),_:1})):K("",!0),z(Y,{label:"错误信息"},{default:W(()=>[Ce(I(d.value.errorCode||d.value.errorMessage||"-"),1)]),_:1}),z(Y,{label:"输入内容",span:2},{default:W(()=>[Ce(I(d.value.prompt),1)]),_:1})]),_:1})):K("",!0)]),_:1},8,["modelValue"])])}}}),Bke=Ct(Mke,[["__scopeId","data-v-4db9880f"]]),Lke={class:"page-container model-detail-view"},Oke={key:2,class:"model-detail-view__layout"},Dke=le({__name:"ModelDetailView",setup(e){const t=fa(),n=pn(),a=T(!1),s=T(""),o=T(null),r=x(()=>String(t.params.id||"")),i=x(()=>{var v;return((v=t.query)==null?void 0:v.tab)==="api"?"api":"intro"}),c=async()=>{if(!r.value){s.value="模型 ID 缺失";return}a.value=!0,s.value="";try{const v=await sA(r.value);o.value=v}catch(v){o.value=null,s.value=v instanceof Error?v.message:"模型详情加载失败,请稍后重试。"}finally{a.value=!1}},u=async()=>{o.value&&await n.push({name:"model-experience",params:{id:o.value.modelId}})},d=async()=>{await n.push({name:"credit-purchase"})},p=async()=>{await n.push({name:"service-group-create"})};return ft(()=>{c()}),(v,h)=>(_(),w("section",Lke,[a.value?(_(),ue(pl,{key:0,title:"模型详情加载中",description:"正在加载模型基础信息、价格规则与 API 文档。"})):s.value?(_(),ue(fl,{key:1,title:"模型详情加载失败",description:s.value},null,8,["description"])):o.value?(_(),w("section",Oke,[z(f(bA),{model:o.value,"initial-tab":i.value},null,8,["model","initial-tab"]),z(f(wA),{model:o.value,"can-experience":o.value.supportExperience,onExperience:u,onPurchase:d,onCreateServiceGroup:p},null,8,["model","can-experience"])])):K("",!0)]))}}),Vke=Ct(Dke,[["__scopeId","data-v-13cf9ef5"]]),Zt=e=>(xt("data-v-3da84163"),e=e(),Tt(),e),Fke={class:"page-container model-experience-view"},Uke={class:"exp-toolbar","data-testid":"experience-layout"},zke={class:"exp-toolbar__left"},Hke={class:"exp-toolbar__model"},Kke={class:"exp-toolbar__title"},qke={class:"exp-toolbar__tag"},jke={key:0,class:"exp-toolbar__tag"},Wke={class:"exp-toolbar__right"},Gke=Zt(()=>l("svg",{class:"exp-toolbar__icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[l("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),l("circle",{cx:"12",cy:"12",r:"3"})],-1)),Yke=Zt(()=>l("span",null,"设置",-1)),Xke=[Gke,Yke],Qke=["disabled"],Jke=Zt(()=>l("svg",{class:"exp-toolbar__icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[l("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})],-1)),Zke=Zt(()=>l("span",null,"会话",-1)),eSe=[Jke,Zke],tSe=["disabled"],nSe=Zt(()=>l("svg",{class:"exp-toolbar__icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[l("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),l("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1)),aSe=Zt(()=>l("span",null,"新对话",-1)),sSe=[nSe,aSe],oSe=mn('记录',2),rSe=[oSe],lSe={class:"exp-body"},iSe={class:"exp-body__main"},cSe={class:"exp-chat"},uSe={class:"exp-chat__wrap"},dSe={key:0,class:"exp-welcome"},fSe={class:"exp-welcome__icon"},pSe={class:"exp-welcome__avatar"},vSe={class:"exp-welcome__title"},hSe={class:"exp-welcome__desc"},mSe={key:0,class:"exp-welcome__hints"},gSe={key:1,class:"exp-welcome__hints"},_Se=Zt(()=>l("div",{class:"exp-msg__avatar"},"ME",-1)),ySe={class:"exp-msg__user-body"},bSe=["onClick"],wSe=["src"],CSe={key:1,class:"exp-msg__bubble"},kSe={class:"exp-msg__avatar"},SSe=["src","alt"],ESe={key:1,class:"exp-gallery__logo-fallback"},$Se={class:"exp-gallery__body"},xSe={key:0,class:"exp-gallery__skeleton"},TSe=Zt(()=>l("div",{class:"exp-gallery__skeleton-item"},[l("div",{class:"exp-gallery__skeleton-img"})],-1)),ISe=[TSe],ASe={key:1,class:"exp-gallery__images","data-testid":"generated-images"},NSe=["onClick"],RSe=["src","alt"],PSe={key:3,"data-testid":"assistant-call-summary",class:"exp-gallery__summary"},MSe=Zt(()=>l("div",{class:"exp-msg__avatar"},"AI",-1)),BSe={class:"exp-msg__bubble"},LSe={key:0,class:"exp-msg__pending"},OSe=Zt(()=>l("span",{class:"exp-msg__dots","aria-hidden":"true"},null,-1)),DSe={key:0},VSe={key:2},FSe={key:2,class:"exp-msg__time"},USe={key:3,"data-testid":"assistant-call-summary",class:"exp-msg__summary"},zSe={key:1,"data-testid":"retry-hint",class:"exp-msg exp-msg--assistant"},HSe=Zt(()=>l("div",{class:"exp-msg__avatar"},"AI",-1)),KSe={class:"exp-msg__bubble"},qSe={class:"exp-msg__retry"},jSe=Zt(()=>l("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",width:"14",height:"14"},[l("polyline",{points:"6 9 12 15 18 9"})],-1)),WSe={class:"exp-composer"},GSe=Zt(()=>l("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"14",height:"14"},[l("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})],-1)),YSe=["disabled","title"],XSe=mn('',1),QSe=[XSe],JSe=["disabled"],ZSe={key:0,class:"exp-composer__vision-upload-card"},eEe=["disabled"],tEe={key:1,class:"exp-composer__preview"},nEe=Zt(()=>l("div",{class:"exp-composer__preview-item exp-composer__preview-item--uploading"},[l("div",{class:"exp-composer__preview-spinner"}),l("span",null,"图片处理中")],-1)),aEe=[nEe],sEe={key:2,class:"exp-composer__preview exp-composer__preview--vision"},oEe={class:"exp-composer__vision-gallery"},rEe={class:"exp-composer__preview-item exp-composer__preview-item--vision"},lEe=["src"],iEe={key:3,"data-testid":"vision-upload-error",class:"exp-composer__preview-error"},cEe=["rows","placeholder","disabled"],uEe={class:"exp-composer__toolbar"},dEe={class:"exp-composer__toolbar-right"},fEe={key:0,"data-testid":"send-hint",class:"exp-composer__hint",role:"tooltip"},pEe=["disabled","aria-label","title"],vEe=Zt(()=>l("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",width:"16",height:"16"},[l("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),l("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})],-1)),hEe=[vEe],mEe={key:0,class:"exp-settings"},gEe={class:"exp-settings__head"},_Ee=Zt(()=>l("h3",null,"高级设置",-1)),yEe={class:"exp-settings__inner"},bEe={key:0,class:"exp-settings__item"},wEe={class:"exp-settings__header"},CEe={class:"exp-settings__name"},kEe=Zt(()=>l("div",{class:"exp-settings__tip"},"控制生成文本的多样性。较高的温度值会使生成的文本更加随机和多样化,而较低的温度值会使生成的文本更加确定和一致。",-1)),SEe=Zt(()=>l("span",{class:"exp-settings__question"},"?",-1)),EEe=["disabled"],$Ee={key:1,class:"exp-settings__item"},xEe={class:"exp-settings__header"},TEe={class:"exp-settings__name"},IEe=Zt(()=>l("div",{class:"exp-settings__tip"},"影响输出文本的多样性,取值越大,生成文本的多样性越强。",-1)),AEe=Zt(()=>l("span",{class:"exp-settings__question"},"?",-1)),NEe=["disabled"],REe={key:2,class:"exp-settings__item"},PEe={class:"exp-settings__header"},MEe={class:"exp-settings__name"},BEe=Zt(()=>l("div",{class:"exp-settings__tip"},"在模型的输出中选择概率最高的前K个结果。有助于加快生成过程,并且能够提高生成文本的质量。",-1)),LEe=Zt(()=>l("span",{class:"exp-settings__question"},"?",-1)),OEe=["disabled"],DEe={key:3,class:"exp-settings__item"},VEe={class:"exp-settings__header"},FEe={class:"exp-settings__name"},UEe=Zt(()=>l("div",{class:"exp-settings__tip"},"影响模型生成重复词汇的倾向。通过增加重复词汇的惩罚权重,降低模型逐字重复的可能性。",-1)),zEe=Zt(()=>l("span",{class:"exp-settings__question"},"?",-1)),HEe=["disabled"],KEe={key:4,class:"exp-settings__item"},qEe=Zt(()=>l("span",{class:"exp-settings__label"},"系统人设",-1)),jEe=["disabled"],WEe={key:0,class:"exp-settings__item"},GEe=Zt(()=>l("span",{class:"exp-settings__label"},"图片尺寸",-1)),YEe={class:"exp-settings__card-grid"},XEe=["disabled","onClick"],QEe={class:"exp-settings__card-label"},JEe={key:1,class:"exp-settings__item"},ZEe=Zt(()=>l("span",{class:"exp-settings__label"},"生成风格",-1)),e$e={class:"exp-settings__card-grid"},t$e=["disabled","onClick"],n$e={class:"exp-settings__card-icon"},a$e={key:0,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",width:"18",height:"18"},s$e=Zt(()=>l("circle",{cx:"12",cy:"12",r:"10"},null,-1)),o$e=Zt(()=>l("path",{d:"M12 8v8M8 12h8"},null,-1)),r$e=[s$e,o$e],l$e={key:1,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",width:"18",height:"18"},i$e=Zt(()=>l("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"},null,-1)),c$e=Zt(()=>l("circle",{cx:"12",cy:"7",r:"4"},null,-1)),u$e=[i$e,c$e],d$e={key:2,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",width:"18",height:"18"},f$e=Zt(()=>l("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"},null,-1)),p$e=Zt(()=>l("circle",{cx:"8.5",cy:"8.5",r:"1.5"},null,-1)),v$e=Zt(()=>l("path",{d:"M21 15l-5-5L5 21"},null,-1)),h$e=[f$e,p$e,v$e],m$e={key:3,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",width:"18",height:"18"},g$e=Zt(()=>l("circle",{cx:"12",cy:"12",r:"10"},null,-1)),_$e=Zt(()=>l("circle",{cx:"8",cy:"10",r:"1"},null,-1)),y$e=Zt(()=>l("circle",{cx:"16",cy:"10",r:"1"},null,-1)),b$e=Zt(()=>l("path",{d:"M8 15c2 2 6 2 8 0"},null,-1)),w$e=[g$e,_$e,y$e,b$e],C$e={key:4,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",width:"18",height:"18"},k$e=Zt(()=>l("polyline",{points:"16 18 22 12 16 6"},null,-1)),S$e=Zt(()=>l("polyline",{points:"8 6 2 12 8 18"},null,-1)),E$e=[k$e,S$e],$$e={key:5,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",width:"18",height:"18"},x$e=Zt(()=>l("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"},null,-1)),T$e=Zt(()=>l("circle",{cx:"12",cy:"13",r:"4"},null,-1)),I$e=[x$e,T$e],A$e={key:6,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",width:"18",height:"18"},N$e=Zt(()=>l("circle",{cx:"12",cy:"12",r:"10"},null,-1)),R$e=Zt(()=>l("line",{x1:"12",y1:"16",x2:"12",y2:"12"},null,-1)),P$e=Zt(()=>l("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"},null,-1)),M$e=[N$e,R$e,P$e],B$e={class:"exp-settings__card-label"},L$e={key:2,class:"exp-settings__item"},O$e={class:"exp-settings__header"},D$e={class:"exp-settings__name"},V$e=Zt(()=>l("div",{class:"exp-settings__tip"},"去噪步骤的数量。去噪步骤越多,通常可以得到更高质量的图像,但推理速度会变慢。",-1)),F$e=Zt(()=>l("span",{class:"exp-settings__question"},"?",-1)),U$e=["disabled"],z$e={key:3,class:"exp-settings__item"},H$e=Zt(()=>l("span",{class:"exp-settings__label"},[Ce("负面提示词 "),l("small",null,"可选")],-1)),K$e=["disabled"],q$e={key:0,class:"exp-settings exp-history"},j$e={class:"exp-settings__head"},W$e=Zt(()=>l("h3",null,"会话历史",-1)),G$e={class:"exp-settings__inner"},Y$e={key:0,class:"exp-drawer__empty"},X$e={key:1,class:"exp-drawer__empty"},Q$e={key:2,class:"exp-drawer__empty"},J$e={key:3,class:"exp-drawer__list","data-testid":"history-list"},Z$e=["disabled","onClick"],exe={class:"exp-drawer__item-meta"},txe={key:0,class:"exp-drawer__empty"},nxe={class:"exp-preview__header"},axe={class:"exp-preview__info"},sxe={class:"exp-preview__scale"},oxe=Zt(()=>l("span",{class:"exp-preview__divider"},null,-1)),rxe=Zt(()=>l("span",{class:"exp-preview__hint"},"滚轮缩放 · R 旋转 · Esc 关闭",-1)),lxe={class:"exp-preview__actions"},ixe=["title"],cxe=Zt(()=>l("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",width:"18",height:"18"},[l("polyline",{points:"1 4 1 10 7 10"}),l("path",{d:"M3.51 15a9 9 0 1 0 2.13-9.36L1 10"})],-1)),uxe=[cxe],dxe=Zt(()=>l("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",width:"18",height:"18"},[l("circle",{cx:"11",cy:"11",r:"8"}),l("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),l("line",{x1:"8",y1:"11",x2:"14",y2:"11"})],-1)),fxe=[dxe],pxe=Zt(()=>l("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",width:"18",height:"18"},[l("circle",{cx:"11",cy:"11",r:"8"}),l("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),l("line",{x1:"11",y1:"8",x2:"11",y2:"14"}),l("line",{x1:"8",y1:"11",x2:"14",y2:"11"})],-1)),vxe=[pxe],hxe=Zt(()=>l("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",width:"18",height:"18"},[l("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),l("path",{d:"M3 3v5h5"})],-1)),mxe=[hxe],gxe=Zt(()=>l("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",width:"20",height:"20"},[l("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),l("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)),_xe=[gxe],yxe=["src","alt"],bxe={key:0,class:"exp-preview__caption"},wxe="image/png,image/jpeg,image/webp",Cxe=2.5*1024*1024,kxe=5*1024*1024,Sxe="model-experience",Exe=24,x$="模型体验暂时失败,请稍后重试。",$xe=le({__name:"ModelExperienceView",setup(e){var dr;const t=new Set(["image/png","image/jpeg","image/webp"]),n=fa(),a=pn(),s=T(null),o=T(!1),r=T(""),i=T(typeof((dr=n.query)==null?void 0:dr.prompt)=="string"?n.query.prompt:""),c=T([]),u=T(null),d=T(null),p=T(!1),v=T(null),h=T(null),m=T(""),g=T(""),y=T(.7),b=T(.9),C=T(20),k=T(0),S=T(""),$=T(""),E=T(""),R=T(""),A=T(!1),N=T("2048x2048"),P=T("standard"),B=T(""),M=T(30),j=T(!0),F=T(!1),q=T(!1),L=T(null),U=T(1),O=T(0),G=(De,Ke)=>{L.value={src:De,revisedPrompt:Ke},U.value=1,O.value=0,document.body.style.overflow="hidden"},ae=()=>{L.value=null,document.body.style.overflow=""},Z=De=>{U.value=Math.max(.25,Math.min(6,U.value+De))},te=De=>{O.value+=De},ie=De=>{L.value&&(De.key==="Escape"?ae():De.key==="+"||De.key==="="?Z(.25):De.key==="-"?Z(-.25):(De.key==="r"||De.key==="R")&&te(90))},oe=T(!1),J=T(""),ee=T([]),Q=T(""),H=T(""),X=T(null),he=T(null),D=T(!0),Y=T(!1);let ne=null,re=0,se=!1;const ke=x(()=>String(n.params.id||"")),ye=x(()=>{var De;return!!((De=s.value)!=null&&De.supportsVision)}),Se=x(()=>!!S.value.trim()),ce=x(()=>{var De;return((De=s.value)==null?void 0:De.typeCode)==="text_to_image"}),we=x(()=>!ce.value),Ae=x(()=>ye.value),Fe=x(()=>{var De;return((De=s.value)==null?void 0:De.imageTransportMode)||"base64"}),xe=x(()=>{var De;return((De=s.value)==null?void 0:De.typeDefaultParams)||{}}),me=x(()=>{var De;return Vt.value||!((De=s.value)!=null&&De.supportExperience)?!1:!!i.value.trim()||Se.value}),Me=x(()=>Vt.value?A.value?"图片处理中":"正在生成":s.value?s.value.supportExperience?!i.value.trim()&&!Se.value?ye.value?"请输入文字或上传图片后再发送":"输入消息,点击发送以开始使用":"发送":"当前模型暂未开放在线体验":"模型加载中"),at=T(!1),Qe=x(()=>{var De;return!i.value.trim()&&!Se.value&&!Vt.value&&!!((De=s.value)!=null&&De.supportExperience)}),It=x(()=>ye.value?"请输入文字或上传图片后再发送":"输入消息,点击发送以开始使用"),je=x(()=>!!(c.value.length||p.value)),Vt=x(()=>p.value||A.value),kt=x(()=>{var De;return typeof((De=n.query)==null?void 0:De.conversationNo)=="string"?n.query.conversationNo:""}),Mt=x(()=>tme(S.value));x(()=>Fe.value==="temporary_url"?"临时链接模式":"Base64 模式");const Ht=x(()=>[{value:"2048x2048",label:"2048 × 2048",thumbStyle:{aspectRatio:"1/1"}},{value:"2304x1728",label:"2304 × 1728",thumbStyle:{aspectRatio:"4/3"}},{value:"1728x2304",label:"1728 × 2304",thumbStyle:{aspectRatio:"3/4"}},{value:"2848x1600",label:"2848 × 1600",thumbStyle:{aspectRatio:"16/9"}},{value:"1600x2848",label:"1600 × 2848",thumbStyle:{aspectRatio:"9/16"}},{value:"2496x1664",label:"2496 × 1664",thumbStyle:{aspectRatio:"3/2"}},{value:"1664x2496",label:"1664 × 2496",thumbStyle:{aspectRatio:"2/3"}},{value:"3136x1344",label:"3136 × 1344",thumbStyle:{aspectRatio:"21/9"}}]),Ee=x(()=>[{value:"standard",label:"标准",icon:"standard"},{value:"portrait",label:"人像",icon:"portrait"},{value:"landscape",label:"风景",icon:"landscape"},{value:"cartoon",label:"卡通",icon:"cartoon"},{value:"technology",label:"科技",icon:"technology"},{value:"photography",label:"摄影",icon:"photography"},{value:"concept",label:"概念",icon:"concept"}]),We=De=>Object.prototype.hasOwnProperty.call(xe.value,De),pe=(De,Ke)=>{const Wt=xe.value[De];return typeof Wt=="number"?Wt:Ke},Oe=(De,Ke)=>{const Wt=xe.value[De];return typeof Wt=="string"?Wt:Ke},ot=(De,Ke=24)=>De.length<=Ke?De:`${De.slice(0,Ke)}...`,St=De=>De<1024*1024?`${(De/1024).toFixed(1)} KB`:`${(De/(1024*1024)).toFixed(1)} MB`,vn=()=>{S.value="",$.value="",E.value="",R.value="",he.value&&(he.value.value="")},_n=()=>{var De;Vt.value||(De=he.value)==null||De.click()},Ln=De=>{let Wt="";for(let kn=0;kn{const Ke=await De.arrayBuffer();return`data:${De.type||"image/png"};base64,${Ln(new Uint8Array(Ke))}`},_s=async De=>{if(!t.has(De.type))throw new Error("当前仅支持 PNG、JPG/JPEG、WebP 图片");const Ke=Fe.value==="base64";if(De.size>(Ke?Cxe:kxe))throw new Error(`图片大小不能超过 ${Ke?"2.5":"5"} MB`);if(Fe.value==="base64")return{imageUrl:await oo(De),imageObjectKey:""};const Wt=await nme({bizType:Sxe,fileName:De.name,contentType:De.type,contentLength:De.size}),kn=await ame(Wt,De);return{imageUrl:kn.fileUrl,imageObjectKey:kn.objectKey}},qa=async De=>{var kn;const Ke=De.target,Wt=(kn=Ke.files)==null?void 0:kn[0];if(Wt){A.value=!0,R.value="";try{const nt=await _s(Wt);S.value=nt.imageUrl,$.value=nt.imageObjectKey,E.value=`${Wt.name} (${St(Wt.size)})`}catch(nt){vn(),R.value=nt instanceof Error?nt.message:"图片处理失败,请稍后重试"}finally{A.value=!1,Ke.value=""}}},en=()=>{u.value=null,v.value=null,h.value=null,m.value=""},st=()=>{const De=X.value;if(!De){D.value=!0,Y.value=!1;return}const Ke=Math.max(De.scrollHeight-De.clientHeight-De.scrollTop,0);D.value=Ke<=Exe,Y.value=Ke>De.clientHeight},nn=async(De=!1)=>{await it();const Ke=X.value;if(Ke){if(!De&&!D.value){st();return}Ke.scrollTop=Ke.scrollHeight,st()}},Ut=()=>{st()},Ja=()=>{D.value=!0,nn(!0)},Hs=()=>{g.value=Oe("systemPrompt",""),y.value=pe("temperature",.7),b.value=pe("top_p",.9),C.value=pe("top_k",20),k.value=pe("frequency_penalty",0);const De=Oe("size","2048x2048");N.value=Ht.value.some(Wt=>Wt.value===De)?De:"2048x2048";const Ke=Oe("style","standard");P.value=Ee.value.some(Wt=>Wt.value===Ke)?Ke:"standard",B.value=Oe("negative_prompt",""),M.value=pe("num_inference_steps",30)},Ks=De=>({id:De.messageNo,role:De.role==="assistant"?"assistant":"user",content:De.content,roundNo:De.roundNo,callSummary:De.callSummary??void 0,createTime:De.createTime}),cr=(De,Ke="",Wt,kn=!1,nt)=>{const xn={id:`local-${De}-${Date.now()}-${c.value.length}`,role:De,content:Ke,images:Wt,pending:kn,visionImageUrl:nt};return c.value=[...c.value,xn],xn},As=()=>{const De=c.value[c.value.length-1];return(De==null?void 0:De.role)==="assistant"&&!De.createTime?De:cr("assistant")},Rr=De=>{const Ke=As();return Ke.content=De,Ke.images=void 0,Ke.pending=!0,Ke.terminalMessage=void 0,Ke.terminalTone=void 0,Ke.callSummary=void 0,Ke},Wi=()=>{const De=re>0?Date.now()-re:0;return`${(Math.max(0,De)/1e3).toFixed(1)} 秒`},ro=(De,Ke)=>{const Wt=As();Wt.pending&&(Wt.content=""),Wt.pending=!1,Wt.terminalMessage=De,Wt.terminalTone=Ke},ur=()=>{ro(`已在 ${Wi()}时停止生成`,"stopped")},Ye={MODEL_NOT_FOUND:"模型不存在或已下架,请返回模型列表重新选择。",MODEL_NOT_PUBLISHED:"模型已下架,请返回模型列表重新选择。",MODEL_EXPERIENCE_DISABLED:"当前模型暂未开放在线体验。",MODEL_API_DISABLED:"当前模型暂未开放 API 调用。",MODEL_CAPABILITY_NOT_SUPPORTED:"当前模型不支持图片输入,请选择支持图像理解的模型。",MODEL_UPSTREAM_QUOTA_EXHAUSTED:"模型服务暂不可用,请稍后再试。",MODEL_UPSTREAM_BAD_REQUEST:"模型请求无效,可能因模型配置变更,请稍后重试或联系管理员。",MODEL_INVALID_REQUEST:"请求参数有误,请调整后重试。",MODEL_INPUT_TOO_LONG:"输入内容超出模型长度限制,请精简后重试。",IDENTITY_VERIFICATION_REQUIRED:"请先完成实名认证。",MODEL_BILLING_FAILED:"模型计费配置异常,暂时无法体验,请稍后重试或联系管理员。",MODEL_SETTLEMENT_FAILED:"本次调用结果结算失败,请稍后重试或联系管理员。",MODEL_INTERNAL_ERROR:"模型服务暂时异常,请稍后重试。",MODEL_USAGE_MISSING:"模型未返回完整用量信息,本次结果未计费,请稍后重试。",MODEL_UPSTREAM_FAILED:"模型服务暂时异常,请稍后重试。",MODEL_RATE_LIMITED:"当前请求较多,请稍后重试。",MODEL_UPSTREAM_RATE_LIMITED:"模型当前请求较多或额度不足,请稍后重试。",MODEL_UPSTREAM_AUTH_FAILED:"模型服务认证异常,请联系管理员。",MODEL_CONTENT_AUDIT_FAILED:"输入或回复内容未通过安全审核,请调整后重试。",MODEL_BALANCE_INSUFFICIENT:"积分余额不足,请先购买积分后重试。",MODEL_QUEUE_FULL:"当前排队人数较多,请稍后重试。",MODEL_QUEUE_TIMEOUT:"排队等待超时,请稍后重试。",MODEL_TEMPORARILY_UNAVAILABLE:"模型服务暂时不可用,请稍后重试。",MODEL_UPSTREAM_OVERLOADED:"模型服务当前负载过高,请稍后或更换时段重试。"},ht=new Set(["模型连接意外中断,请稍后重试。"]),un=new Set(["MODEL_CAPABILITY_NOT_SUPPORTED"]),ra=(De,Ke)=>{const Wt=Ke==null?void 0:Ke.trim();return De&&un.has(De)&&Wt&&Wt!==De?Wt:De?Ye[De]||x$:Wt&&ht.has(Wt)?Wt:x$},Ua=(De,Ke,Wt,kn)=>{if(!Ke)return null;const nt=String(kn??(Wt==null?void 0:Wt.chargePoints)??"0.000000");return De==="PER_IMAGE"?{headline:"本次生成:1 张",chargePoints:nt,callNo:Ke}:De==="PER_REQUEST"?{headline:"本次调用:1 次",chargePoints:nt,callNo:Ke}:Wt?{headline:`本次对话总Tokens:${Wt.inputTokens+Wt.outputTokens}`,chargePoints:nt,callNo:Ke}:null},qs=De=>{var kn,nt;const Ke=Ua((kn=s.value)==null?void 0:kn.billing.priceUnit,(nt=v.value)==null?void 0:nt.callNo,h.value,De);if(!Ke)return;const Wt=As();Wt.callSummary=Ke},js=async()=>{if(!ke.value){r.value="模型 ID 缺失";return}o.value=!0,r.value="";try{const De=await sA(ke.value);s.value=De,Hs(),vn()}catch(De){s.value=null,r.value=De instanceof Error?De.message:"模型体验页加载失败,请稍后重试。"}finally{o.value=!1}},Lo=async()=>{if(se||ce.value||!ke.value){ee.value=[],J.value="";return}oe.value=!0,J.value="";try{const De=await j0e(ke.value);ee.value=De.list||[]}catch(De){ee.value=[],J.value=De instanceof Error?De.message:"会话列表加载失败,请稍后重试。"}finally{oe.value=!1}},lo=async(De,Ke="")=>{if(!(p.value||ce.value)){en(),D.value=!0,Y.value=!1,Q.value=De,H.value=Ke,J.value="";try{const Wt=await W0e(De);c.value=(Wt.list||[]).map(Ks),H.value=Wt.title||Ke,nn(!0)}catch(Wt){c.value=[],J.value=Wt instanceof Error?Wt.message:"会话消息加载失败,请稍后重试。"}}},Yl=async De=>{await lo(De.conversationNo,De.title)},Xl=()=>{p.value||(Q.value="",H.value="",c.value=[],D.value=!0,Y.value=!1,en())},Xe=De=>{if(De.event==="meta")return v.value=De.data,De.data.conversationNo&&(Q.value=De.data.conversationNo,!H.value&&i.value.trim()&&(H.value=ot(i.value.trim()))),!1;if(De.event==="delta"){u.value=null;const Ke=As();return Ke.pending?(Ke.content=De.data.content||"",Ke.pending=!1):Ke.content+=De.data.content||"",Ke.terminalMessage=void 0,Ke.terminalTone=void 0,!1}if(De.event==="usage"){h.value=De.data,qs();const Ke=As();return Ke.pending&&(Ke.content="",Ke.pending=!1,Ke.terminalMessage="模型未返回可展示内容。",Ke.terminalTone="error"),m.value||(m.value="success"),!0}if(De.event==="done"){if(m.value=De.data.status,De.data.status==="canceled")ur();else{const Ke=As();Ke.pending&&(Ke.content="",Ke.pending=!1,Ke.terminalMessage="模型未返回可展示内容。",Ke.terminalTone="error")}return!0}return De.event==="retry"?(u.value={message:De.data.message||"正在自动重试…",retryCount:De.data.retryCount},!1):(u.value=null,De.data.code==="IDENTITY_VERIFICATION_REQUIRED"&&dd(),d.value={code:De.data.code,message:ra(De.data.code,De.data.message||De.data.code||"体验流返回异常")},ro(d.value.message,"error"),!0)},wt=async De=>{if(!De.ok)throw new Error(`体验流请求失败:${De.status}`);if(!De.body)throw new Error("模型连接意外中断,请稍后重试。");const Ke=De.body.getReader(),Wt=new TextDecoder;let kn="",nt=!1;const xn=ja=>{const za=Z0e(ja);return za?Xe(za):!1};for(;;){const{value:ja,done:za}=await Ke.read();if(za)break;kn+=Wt.decode(ja,{stream:!0});const Ql=kn.split(` `);kn=Ql.pop()||"";for(const Oo of Ql)if(xn(Oo)){nt=!0;break}if(nt){await Ke.cancel();break}}if(!nt&&kn.trim()&&(nt=xn(kn)),!nt)throw new Error("模型连接意外中断,请稍后重试。")},Yt=async()=>{var nt;if(!me.value||!await dd())return;const De=i.value.trim(),Ke=S.value.trim(),Wt=$.value.trim(),kn=Se.value?Mt.value:void 0;ne==null||ne.abort(),ne=new AbortController,re=Date.now(),p.value=!0,en(),D.value=!0,Y.value=!1,cr("user",De,void 0,!1,kn),i.value="",vn();try{if(ce.value){const za=Rr("图片生成中,预计耗时 20-90 秒"),Ql={prompt:De,negative_prompt:ce&&B.value.trim()?B.value.trim():void 0,n:1,num_inference_steps:ce?M.value:void 0,size:We("size")?N.value:void 0,style:We("style")?P.value:void 0},Oo=await Y0e(ke.value,Ql,{silentErrorMessage:!0});za.content="",za.images=Oo.images||[],za.pending=!1,v.value={callNo:Oo.callNo,experienceNo:Oo.experienceNo},h.value={inputTokens:0,outputTokens:0,cachedTokens:0,chargePoints:String(Oo.chargePoints||"0.000000")},za.callSummary=Ua((nt=s.value)==null?void 0:nt.billing.priceUnit,Oo.callNo,h.value,String(Oo.chargePoints||"0.000000"))||void 0,m.value="success";return}Rr(Ke?"图片分析中...":"模型思考中...");const xn={prompt:De,conversationNo:Q.value||void 0};Ae.value&&Ke&&(xn.imageUrl=Ke,xn.imageObjectKey=Wt||void 0),We("systemPrompt")&&(xn.systemPrompt=g.value.trim()||void 0),We("temperature")&&(xn.temperature=Number(y.value.toFixed(1))),We("top_p")&&(xn.top_p=Number(b.value.toFixed(1))),We("top_k")&&(xn.top_k=C.value),We("frequency_penalty")&&(xn.frequency_penalty=k.value);const ja=await rA(ke.value,xn,ne.signal);await wt(ja)}catch(xn){if(xn instanceof DOMException&&xn.name==="AbortError"){ur(),i.value.trim()||(i.value=De),Ke&&!S.value.trim()&&(S.value=Ke,$.value=Wt);return}i.value.trim()||(i.value=De),Ke&&!S.value.trim()&&(S.value=Ke,$.value=Wt);const ja=xn;if(ce.value){ro(ja.message||"模型体验暂时失败,请稍后重试。","error");return}ro(ra(void 0,xn instanceof Error?xn.message:"体验流调用失败"),"error")}finally{p.value=!1,ne=null,re=0,!se&&!ce.value&&await Lo()}},Qt=()=>{var Ke;const De=(Ke=v.value)==null?void 0:Ke.experienceNo;ne==null||ne.abort(),De&&G0e(De).catch(()=>{})},Ea=De=>{De.key!=="Enter"||De.shiftKey||(De.preventDefault(),Yt())},io=async De=>{var Wt;if(Vt.value)return;const Ke=(Wt=De.clipboardData)==null?void 0:Wt.items;if(Ke)for(const kn of Ke){if(!kn.type.startsWith("image/"))continue;if(!Ae.value){rt.info("当前模型不支持图片理解");return}const nt=kn.getAsFile();if(nt){De.preventDefault(),A.value=!0,R.value="";try{const xn=await _s(nt);S.value=xn.imageUrl,$.value=xn.imageObjectKey,E.value=`${nt.name||"clipboard-image"} (${St(nt.size)})`}catch(xn){vn(),R.value=xn instanceof Error?xn.message:"图片处理失败,请稍后重试"}finally{A.value=!1}return}}};return ft(()=>{(async()=>{if(await js(),await Lo(),kt.value&&!ce.value){const De=ee.value.find(Ke=>Ke.conversationNo===kt.value);await lo(kt.value,(De==null?void 0:De.title)||"")}st()})()}),Te(c,()=>{nn()},{deep:!0,flush:"post"}),Te(u,()=>{u.value&&nn()},{flush:"post"}),Te(L,De=>{De?window.addEventListener("keydown",ie):window.removeEventListener("keydown",ie)}),on(()=>{se=!0,ne==null||ne.abort(),window.removeEventListener("keydown",ie),document.body.style.overflow=""}),(De,Ke)=>{const Wt=Ne("el-icon"),kn=Ne("el-tooltip");return _(),w(_e,null,[l("section",Fke,[o.value?(_(),ue(pl,{key:0,title:"体验工作台加载中",description:"正在加载模型体验配置。"})):r.value?(_(),ue(fl,{key:1,title:"体验页加载失败",description:r.value},null,8,["description"])):s.value?(_(),w(_e,{key:2},[l("header",Uke,[l("div",zke,[l("div",Hke,[l("h1",Kke,I(s.value.modelName),1),l("span",qke,I(s.value.typeName),1),s.value.supportsVision===!0?(_(),w("span",jke,"图像理解")):K("",!0)])]),l("div",Wke,[l("button",{type:"button",class:V(["exp-toolbar__action",{"is-active":j.value}]),onClick:Ke[0]||(Ke[0]=nt=>{j.value=!j.value,j.value&&(F.value=!1)})},Xke,2),we.value?(_(),w("button",{key:0,type:"button",class:V(["exp-toolbar__action",{"is-active":F.value}]),onClick:Ke[1]||(Ke[1]=nt=>{F.value=!F.value,F.value&&(j.value=!1)}),disabled:p.value},eSe,10,Qke)):K("",!0),we.value?(_(),w("button",{key:1,type:"button",class:"exp-toolbar__action",disabled:Vt.value,onClick:Xl},sSe,8,tSe)):K("",!0),l("button",{type:"button",class:"exp-toolbar__action",onClick:Ke[2]||(Ke[2]=nt=>f(a).push({name:"experience-records",query:{fromModelId:ke.value}}))},rSe),l("button",{type:"button",class:"exp-toolbar__purchase",onClick:Ke[3]||(Ke[3]=nt=>f(a).push({name:"credit-purchase"}))}," 购买积分 ")])]),l("div",lSe,[l("div",iSe,[l("main",cSe,[l("div",uSe,[l("section",{ref_key:"messagesRef",ref:X,"data-testid":"messages-list",class:"exp-chat__messages",onScroll:Ut},[je.value?K("",!0):(_(),w("article",dSe,[l("div",fSe,[l("div",pSe,I(ce.value?"✨":"AI"),1)]),l("h2",vSe,I(s.value.modelName),1),l("p",hSe,I(ce.value?"输入描述文字,AI 将为您生成对应的图片":s.value.summary||"您好,请告诉我您需要什么帮助?"),1),ce.value?ce.value?(_(),w("div",gSe,[l("button",{type:"button",class:"exp-welcome__hint",onClick:Ke[7]||(Ke[7]=nt=>i.value="一只可爱的柴犬在樱花树下打盹,阳光透过花瓣洒落,写实风格")}," 🐕 可爱柴犬 "),l("button",{type:"button",class:"exp-welcome__hint",onClick:Ke[8]||(Ke[8]=nt=>i.value="赛博朋克风格的未来城市夜景,霓虹灯光,雨夜倒影,超高清")}," 🌃 赛博朋克 "),l("button",{type:"button",class:"exp-welcome__hint",onClick:Ke[9]||(Ke[9]=nt=>i.value="水彩画风格的山间小屋,晨雾缭绕,鲜花盛开,宁静温馨")}," 🏡 山间小屋 ")])):K("",!0):(_(),w("div",mSe,[l("button",{type:"button",class:"exp-welcome__hint",onClick:Ke[4]||(Ke[4]=nt=>i.value="请介绍一下你的能力")}," 请介绍一下你的能力 "),l("button",{type:"button",class:"exp-welcome__hint",onClick:Ke[5]||(Ke[5]=nt=>i.value="帮我写一首诗")}," 帮我写一首诗 "),l("button",{type:"button",class:"exp-welcome__hint",onClick:Ke[6]||(Ke[6]=nt=>i.value="解释量子计算的基本原理")}," 解释量子计算的基本原理 ")]))])),(_(!0),w(_e,null,Re(c.value,nt=>{var xn,ja;return _(),w("article",{key:nt.id,class:V(nt.role==="user"?"exp-msg exp-msg--user":ce.value?"exp-gallery":"exp-msg exp-msg--assistant")},[nt.role==="user"?(_(),w(_e,{key:0},[_Se,l("div",ySe,[nt.visionImageUrl?(_(),w("div",{key:0,class:"exp-msg__vision-thumb",onClick:za=>G(nt.visionImageUrl)},[l("img",{src:nt.visionImageUrl,alt:"上传的图片"},null,8,wSe)],8,bSe)):K("",!0),nt.content?(_(),w("div",CSe,[l("p",null,I(nt.content),1)])):K("",!0)])],64)):ce.value?(_(),w(_e,{key:1},[l("div",kSe,[(xn=s.value)!=null&&xn.iconUrl&&f($s)(s.value.iconUrl)?(_(),w("img",{key:0,src:f($s)(s.value.iconUrl),alt:s.value.modelName,class:"exp-gallery__logo"},null,8,SSe)):(_(),w("span",ESe,"AI"))]),l("div",$Se,[nt.pending?(_(),w("div",xSe,ISe)):(ja=nt.images)!=null&&ja.length?(_(),w("div",ASe,[(_(!0),w(_e,null,Re(nt.images,(za,Ql)=>(_(),w("figure",{key:`${nt.id}-${Ql}`,onClick:Oo=>{G(za.url||`data:image/png;base64,${za.b64Json}`,za.revisedPrompt)}},[za.url||za.b64Json?(_(),w("img",{key:0,src:za.url||`data:image/png;base64,${za.b64Json}`,alt:za.revisedPrompt||i.value,loading:"lazy"},null,8,RSe)):K("",!0)],8,NSe))),128))])):K("",!0),nt.terminalMessage?(_(),w("p",{key:2,"data-testid":"assistant-terminal-message",class:V(["exp-msg__terminal",`is-${nt.terminalTone||"error"}`])},I(nt.terminalMessage),3)):K("",!0),nt.callSummary?(_(),w("div",PSe,[l("span",null,I(nt.callSummary.headline),1),l("span",null,"消耗:"+I(nt.callSummary.chargePoints)+" 积分",1),l("span",null,"调用编号:"+I(nt.callSummary.callNo),1)])):K("",!0)])],64)):(_(),w(_e,{key:2},[MSe,l("div",BSe,[nt.pending?(_(),w("div",LSe,[OSe,l("span",null,I(nt.content),1)])):(_(),w(_e,{key:1},[nt.content?(_(),w("p",DSe,I(nt.content),1)):K("",!0),nt.terminalMessage?(_(),w("p",{key:1,"data-testid":"assistant-terminal-message",class:V(["exp-msg__terminal",`is-${nt.terminalTone||"error"}`])},I(nt.terminalMessage),3)):K("",!0),!nt.content&&!nt.terminalMessage?(_(),w("p",VSe,"模型未返回可展示内容。")):K("",!0)],64)),nt.createTime?(_(),w("time",FSe,I(nt.createTime),1)):K("",!0),nt.callSummary?(_(),w("div",USe,[l("span",null,I(nt.callSummary.headline),1),l("span",null,"消耗:"+I(nt.callSummary.chargePoints)+" 积分",1),l("span",null,"调用编号:"+I(nt.callSummary.callNo),1)])):K("",!0)])],64))],2)}),128)),u.value?(_(),w("article",zSe,[HSe,l("div",KSe,[l("p",qSe,I(u.value.message),1)])])):K("",!0)],544),Y.value?(_(),w("button",{key:0,"data-testid":"scroll-bottom-button",type:"button",class:"exp-chat__scroll-btn",onClick:Ja},[jSe,Ce(" 回到最新 ")])):K("",!0)])]),l("footer",WSe,[p.value?(_(),w("button",{key:0,type:"button",class:"exp-composer__stop",onClick:Qt},[GSe,Ce(" 停止生成 ")])):K("",!0),l("div",{class:V(["exp-composer__box",{"exp-composer__box--vision":ye.value}])},[l("div",{class:V(["exp-composer__input-wrap",{"exp-composer__input-wrap--vision":ye.value}])},[l("button",{type:"button",class:V(["exp-composer__expand",{"is-expanded":q.value}]),disabled:Vt.value,onClick:Ke[10]||(Ke[10]=nt=>q.value=!q.value),title:q.value?"收起输入框":"展开输入框"},QSe,10,YSe),l("input",{ref_key:"visionFileInputRef",ref:he,"data-testid":"vision-file-input",type:"file",accept:wxe,class:"model-experience-view__file-input",disabled:Vt.value,onChange:qa},null,40,JSe),ye.value&&!Se.value&&!A.value?(_(),w("div",ZSe,[l("button",{type:"button",class:"exp-composer__vision-upload-plus","aria-label":"上传图片",title:"上传图片",disabled:Vt.value,onClick:_n},"+",8,eEe)])):K("",!0),A.value?(_(),w("div",tEe,aEe)):Se.value?(_(),w("div",sEe,[l("div",oEe,[l("div",rEe,[l("img",{"data-testid":"vision-image-preview",src:Mt.value,alt:"待识别图片",width:"84",height:"110"},null,8,lEe),l("button",{"data-testid":"vision-clear-button",type:"button",class:"exp-composer__preview-remove","aria-label":"移除图片",onClick:vn},[z(Wt,{size:18},{default:W(()=>[z(f(zm))]),_:1})])])])])):K("",!0),R.value?(_(),w("p",iEe,I(R.value),1)):K("",!0),et(l("textarea",{"onUpdate:modelValue":Ke[11]||(Ke[11]=nt=>i.value=nt),"data-testid":"chat-input",rows:q.value?8:1,placeholder:ye.value?"上传参考图、输入文字或描述你想识别的内容":ce.value?"描述要生成的图片...":"输入您的问题...",disabled:Vt.value,onKeydown:Ea,onPaste:io},null,40,cEe),[[hn,i.value]]),l("div",uEe,[l("div",dEe,[l("span",{class:"exp-composer__send-trigger",onMouseenter:Ke[12]||(Ke[12]=nt=>at.value=Qe.value),onMouseleave:Ke[13]||(Ke[13]=nt=>at.value=!1),onClick:Ke[14]||(Ke[14]=nt=>at.value=Qe.value)},[at.value&&Qe.value?(_(),w("span",fEe,I(It.value),1)):K("",!0),l("button",{"data-testid":"send-button",type:"button",disabled:!me.value,"aria-label":me.value?"发送":Me.value,title:me.value?"发送":Me.value,class:"exp-composer__send",onClick:Yt},hEe,8,pEe)],32)])])],2)],2)])]),z(aa,{name:"exp-settings"},{default:W(()=>[j.value?(_(),w("aside",mEe,[l("header",gEe,[_Ee,l("button",{type:"button",class:"exp-settings__toggle",onClick:Ke[15]||(Ke[15]=nt=>j.value=!1)},"✕")]),l("div",yEe,[we.value?(_(),w(_e,{key:0},[We("temperature")?(_(),w("label",bEe,[l("div",wEe,[l("span",CEe,[Ce(" 温度 (Temperature) "),z(kn,{effect:"dark",placement:"top","show-after":300},{content:W(()=>[kEe]),default:W(()=>[SEe]),_:1})]),l("strong",null,I(y.value.toFixed(1)),1)]),et(l("input",{"onUpdate:modelValue":Ke[16]||(Ke[16]=nt=>y.value=nt),"data-testid":"temperature-slider",type:"range",min:"0",max:"1",step:"0.1",disabled:Vt.value,style:Je({"--fill":(y.value-0)/1*100+"%"})},null,12,EEe),[[hn,y.value,void 0,{number:!0}]])])):K("",!0),We("top_p")?(_(),w("label",$Ee,[l("div",xEe,[l("span",TEe,[Ce(" 多样性 (Top P) "),z(kn,{effect:"dark",placement:"top","show-after":300},{content:W(()=>[IEe]),default:W(()=>[AEe]),_:1})]),l("strong",null,I(b.value.toFixed(1)),1)]),et(l("input",{"onUpdate:modelValue":Ke[17]||(Ke[17]=nt=>b.value=nt),"data-testid":"top-p-slider",type:"range",min:"0",max:"1",step:"0.1",disabled:Vt.value},null,8,NEe),[[hn,b.value,void 0,{number:!0}]])])):K("",!0),We("top_k")?(_(),w("label",REe,[l("div",PEe,[l("span",MEe,[Ce(" TopK "),z(kn,{effect:"dark",placement:"top","show-after":300},{content:W(()=>[BEe]),default:W(()=>[LEe]),_:1})]),l("strong",null,I(C.value),1)]),et(l("input",{"onUpdate:modelValue":Ke[18]||(Ke[18]=nt=>C.value=nt),"data-testid":"top-k-input",type:"range",min:"1",max:"100",disabled:Vt.value},null,8,OEe),[[hn,C.value,void 0,{number:!0}]])])):K("",!0),We("frequency_penalty")?(_(),w("label",DEe,[l("div",VEe,[l("span",FEe,[Ce(" 重复惩罚 (Frequency Penalty) "),z(kn,{effect:"dark",placement:"top","show-after":300},{content:W(()=>[UEe]),default:W(()=>[zEe]),_:1})]),l("strong",null,I(k.value.toFixed(1)),1)]),et(l("input",{"onUpdate:modelValue":Ke[19]||(Ke[19]=nt=>k.value=nt),"data-testid":"frequency-penalty",type:"range",min:"-2",max:"2",step:"0.1",disabled:Vt.value},null,8,HEe),[[hn,k.value,void 0,{number:!0}]])])):K("",!0),We("systemPrompt")?(_(),w("label",KEe,[qEe,et(l("textarea",{"onUpdate:modelValue":Ke[20]||(Ke[20]=nt=>g.value=nt),"data-testid":"system-prompt",rows:"3",placeholder:"设定模型的行为与背景,告知模型需要扮演的角色。例如:假如你是一个AI助手",disabled:Vt.value,class:"exp-settings__textarea"},null,8,jEe),[[hn,g.value]])])):K("",!0)],64)):(_(),w(_e,{key:1},[We("size")?(_(),w("div",WEe,[GEe,l("div",YEe,[(_(!0),w(_e,null,Re(Ht.value,nt=>(_(),w("button",{key:nt.value,type:"button",class:V(["exp-settings__card",{"is-selected":N.value===nt.value}]),disabled:Vt.value,onClick:xn=>N.value=nt.value},[l("div",{class:"exp-settings__card-thumb",style:Je(nt.thumbStyle)},null,4),l("span",QEe,I(nt.label),1)],10,XEe))),128))])])):K("",!0),We("style")?(_(),w("div",JEe,[ZEe,l("div",e$e,[(_(!0),w(_e,null,Re(Ee.value,nt=>(_(),w("button",{key:nt.value,type:"button",class:V(["exp-settings__card",{"is-selected":P.value===nt.value}]),disabled:Vt.value,onClick:xn=>P.value=nt.value},[l("div",n$e,[nt.icon==="standard"?(_(),w("svg",a$e,r$e)):nt.icon==="portrait"?(_(),w("svg",l$e,u$e)):nt.icon==="landscape"?(_(),w("svg",d$e,h$e)):nt.icon==="cartoon"?(_(),w("svg",m$e,w$e)):nt.icon==="technology"?(_(),w("svg",C$e,E$e)):nt.icon==="photography"?(_(),w("svg",$$e,I$e)):(_(),w("svg",A$e,M$e))]),l("span",B$e,I(nt.label),1)],10,t$e))),128))])])):K("",!0),ce.value?(_(),w("label",L$e,[l("div",O$e,[l("span",D$e,[Ce(" 去噪步骤 "),z(kn,{effect:"dark",placement:"top","show-after":300},{content:W(()=>[V$e]),default:W(()=>[F$e]),_:1})]),l("strong",null,I(M.value),1)]),et(l("input",{"onUpdate:modelValue":Ke[21]||(Ke[21]=nt=>M.value=nt),"data-testid":"num-inference-steps",type:"range",min:"1",max:"50",disabled:Vt.value},null,8,U$e),[[hn,M.value,void 0,{number:!0}]])])):K("",!0),ce.value?(_(),w("label",z$e,[H$e,et(l("textarea",{"onUpdate:modelValue":Ke[22]||(Ke[22]=nt=>B.value=nt),"data-testid":"negative-prompt",rows:"2",placeholder:"避免生成的内容,如:模糊、低质量、畸形",disabled:Vt.value,class:"exp-settings__textarea"},null,8,K$e),[[hn,B.value]])])):K("",!0)],64))])])):K("",!0)]),_:1}),z(aa,{name:"exp-settings"},{default:W(()=>[F.value&&we.value?(_(),w("aside",q$e,[l("header",j$e,[W$e,l("button",{type:"button",class:"exp-settings__toggle",onClick:Ke[23]||(Ke[23]=nt=>F.value=!1)},"✕")]),l("div",G$e,[ce.value?(_(),w("p",Y$e,"当前模型为文生图体验,不支持会话切换。")):oe.value?(_(),w("p",X$e,"加载中...")):J.value?(_(),w("p",Q$e,I(J.value),1)):(_(),w("div",J$e,[(_(!0),w(_e,null,Re(ee.value,nt=>(_(),w("button",{key:nt.conversationNo,"data-testid":"history-item",type:"button",class:V(["exp-drawer__item",{"is-active":Q.value===nt.conversationNo}]),disabled:p.value,onClick:xn=>{Yl(nt),F.value=!1}},[l("h3",null,I(nt.title),1),l("div",exe,[l("span",null,I(nt.messageCount)+" 条消息",1),l("time",null,I(nt.lastMessageAt),1)])],10,Z$e))),128)),ee.value.length===0?(_(),w("p",txe,"暂无历史会话")):K("",!0)]))])])):K("",!0)]),_:1})])],64)):K("",!0)]),(_(),ue(Nx,{to:"body"},[z(aa,{name:"exp-preview"},{default:W(()=>[L.value?(_(),w("div",{key:0,class:"exp-preview",onClick:qe(ae,["self"])},[l("header",nxe,[l("div",axe,[l("div",sxe,I(Math.round(U.value*100))+"%",1),oxe,rxe]),l("div",lxe,[l("button",{type:"button",class:"exp-preview__btn",title:O.value!==0?"重置旋转":"旋转 90°",onClick:Ke[24]||(Ke[24]=nt=>te(90))},uxe,8,ixe),l("button",{type:"button",class:"exp-preview__btn",title:"缩小",onClick:Ke[25]||(Ke[25]=nt=>Z(-.25))},fxe),l("button",{type:"button",class:"exp-preview__btn",title:"放大",onClick:Ke[26]||(Ke[26]=nt=>Z(.25))},vxe),l("button",{type:"button",class:"exp-preview__btn",title:"重置",onClick:Ke[27]||(Ke[27]=nt=>{U.value=1,O.value=0})},mxe),l("button",{type:"button",class:"exp-preview__btn exp-preview__btn--close",title:"关闭 (Esc)",onClick:ae},_xe)])]),l("div",{class:"exp-preview__body",style:Je({cursor:U.value>1?"grab":"zoom-in"})},[l("div",{class:"exp-preview__image-wrap",style:Je({transform:`scale(${U.value}) rotate(${O.value}deg)`})},[l("img",{src:L.value.src,alt:L.value.revisedPrompt||"",draggable:"false",onWheel:Ke[28]||(Ke[28]=qe(nt=>Z(nt.deltaY>0?-.15:.15),["prevent"]))},null,40,yxe)],4)],4),L.value.revisedPrompt?(_(),w("p",bxe,I(L.value.revisedPrompt),1)):K("",!0)])):K("",!0)]),_:1})]))],64)}}}),xxe=Ct($xe,[["__scopeId","data-v-3da84163"]]),Txe=(e,t)=>({page:I$(e.page,t.page),pageSize:I$(e.pageSize,t.pageSize),keyword:Ug(e.keyword),typeName:Ug(e.typeName),typeCode:Ug(e.typeCode)}),T$=(e,t)=>{const n={};return e.page!==t.page&&(n.page=String(e.page)),e.pageSize!==t.pageSize&&(n.pageSize=String(e.pageSize)),e.keyword&&(n.keyword=e.keyword),e.typeName&&(n.typeName=e.typeName),e.typeCode&&(n.typeCode=e.typeCode),n};function I$(e,t){const n=Number.parseInt(String(e??""),10);return Number.isFinite(n)&&n>0?n:t}function Ug(e){const t=String(e??"").trim();return t||void 0}const X2=e=>(xt("data-v-d7a09e90"),e=e(),Tt(),e),Ixe={class:"page-container model-list-page"},Axe={class:"model-list-page__button-row"},Nxe={class:"model-list-page__panel"},Rxe={class:"model-list-page__field"},Pxe=X2(()=>l("strong",null,"模型类型",-1)),Mxe={class:"model-list-page__field"},Bxe=X2(()=>l("strong",null,"关键词",-1)),Lxe=X2(()=>l("button",{type:"submit",class:"model-list-page__btn model-list-page__btn--primary"},"搜索",-1)),Oxe={key:0,class:"model-list-page__pagination-panel"},Dxe=le({__name:"ModelListView",setup(e){const t={page:1,pageSize:9},n=[9,18,45],a=fa(),s=pn(),o=_a(),r=T(!1),i=T(""),c=T([]),u=T([]),d=T(0),p=x(()=>{const E=Txe(a.query,t);return{...E,pageSize:n.includes(E.pageSize)?E.pageSize:t.pageSize}}),v=x(()=>Math.max(1,Math.ceil(d.value/p.value.pageSize))),h=T(p.value.keyword||""),m=T(p.value.typeName||""),g=async()=>{r.value=!0,i.value="";try{const E=await K2({pageNo:p.value.page,pageSize:p.value.pageSize,keyword:p.value.keyword,typeName:p.value.typeName,typeCode:p.value.typeCode});c.value=E.list||[],d.value=E.total||0}catch(E){c.value=[],d.value=0,i.value=E instanceof Error?E.message:"模型列表加载失败,请稍后重试。"}finally{r.value=!1}},y=async E=>{const R=T$({...p.value,...E},t),A=T$(p.value,t);if(JSON.stringify(R)===JSON.stringify(A)){await g();return}await s.replace({query:R})},b=async()=>{try{const E=await K0e(),R=new Set;u.value=(E.list||[]).filter(A=>R.has(A.typeName)?!1:(R.add(A.typeName),!0))}catch{u.value=[]}},C=async()=>{await y({page:1,keyword:h.value.trim()||void 0,typeName:m.value||void 0,typeCode:void 0})},k=async()=>{h.value="",m.value="",await y({page:1,keyword:void 0,typeName:void 0,typeCode:void 0})},S=async E=>{E===p.value.page||E<1||E>v.value||await y({page:E})},$=async E=>{!n.includes(E)||E===p.value.pageSize||await y({page:1,pageSize:E})};return Te(()=>a.query,()=>{h.value=p.value.keyword||"",m.value=p.value.typeName||"",g()},{deep:!0}),ft(()=>{b(),g()}),(E,R)=>{const A=Ne("el-option"),N=Ne("el-select"),P=Ne("el-input"),B=Ne("el-pagination");return _(),w("section",Ixe,[z(f(Wl),{eyebrow:"AI Model Store",title:"模型服务",description:"展示已上架模型,支持模型类型筛选、关键词搜索、分页浏览。"},{actions:W(()=>[l("div",Axe,[l("button",{type:"button",class:"model-list-page__btn",onClick:R[0]||(R[0]=M=>{var j;return f(s).push({name:((j=f(o).userInfo)==null?void 0:j.userType)==="enterprise"?"enterprise-seats":"service-groups"})})}," 服务接入 "),l("button",{type:"button",class:"model-list-page__btn model-list-page__btn--primary",onClick:R[1]||(R[1]=M=>f(s).push({name:"credit-purchase"}))}," 购买积分 ")])]),_:1}),l("section",Nxe,[l("form",{"data-testid":"model-filter-form",class:"model-list-page__filter-row model-list-page__filter-row--compact",onSubmit:qe(C,["prevent"])},[l("label",Rxe,[Pxe,z(N,{modelValue:m.value,"onUpdate:modelValue":R[2]||(R[2]=M=>m.value=M),"data-testid":"model-type",class:"model-list-page__select mall-select-red-theme","popper-class":"model-list-page__select-dropdown mall-select-red-dropdown"},{default:W(()=>[z(A,{label:"全部",value:""}),(_(!0),w(_e,null,Re(u.value,M=>(_(),ue(A,{key:M.typeName,label:M.typeName,value:M.typeName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),l("label",Mxe,[Bxe,z(P,{modelValue:h.value,"onUpdate:modelValue":R[3]||(R[3]=M=>h.value=M),"data-testid":"model-keyword",class:"model-list-page__input",placeholder:"例如:DeepSeek",clearable:""},null,8,["modelValue"])]),l("div",{class:"model-list-page__field model-list-page__field--actions"},[l("div",{class:"model-list-page__button-row"},[Lxe,l("button",{type:"button",class:"model-list-page__btn",onClick:k},"重置")])])],32)]),z(f(yA),{items:c.value,loading:r.value,"error-text":i.value,"empty-text":"当前筛选条件下没有匹配结果,后续可继续扩展搜索和分类筛选。"},null,8,["items","loading","error-text"]),!r.value&&!i.value&&c.value.length>0?(_(),w("footer",Oxe,[z(B,{background:"",layout:"total, sizes, prev, pager, next","current-page":p.value.page,"page-size":p.value.pageSize,"page-sizes":n,"popper-class":"model-list-page__pagination-dropdown mall-select-red-dropdown",total:d.value,onCurrentChange:S,onSizeChange:$},null,8,["current-page","page-size","total"])])):K("",!0)])}}}),Vxe=Ct(Dxe,[["__scopeId","data-v-d7a09e90"]]),I0=e=>(xt("data-v-ae04cd06"),e=e(),Tt(),e),Fxe={class:"not-found-page"},Uxe={class:"not-found-card","aria-labelledby":"not-found-title"},zxe=I0(()=>l("div",{class:"not-found-illustration","aria-hidden":"true"},[l("span",{class:"not-found-code"},"404"),l("span",{class:"not-found-orbit not-found-orbit--one"}),l("span",{class:"not-found-orbit not-found-orbit--two"})],-1)),Hxe={class:"not-found-content"},Kxe=I0(()=>l("p",{class:"not-found-eyebrow"},"页面走丢了",-1)),qxe=I0(()=>l("h1",{id:"not-found-title"},"抱歉,未找到该页面",-1)),jxe=I0(()=>l("p",{class:"not-found-description"},"您访问的页面可能已被移动、删除,或链接地址有误。",-1)),Wxe={class:"not-found-actions"},Gxe=le({__name:"NotFoundView",setup(e){const t=pn(),n=()=>t.push({name:"home"}),a=()=>{if(window.history.length>1){t.back();return}n()};return(s,o)=>{const r=Ne("el-button");return _(),w("main",Fxe,[l("section",Uxe,[zxe,l("div",Hxe,[Kxe,qxe,jxe,l("div",Wxe,[z(r,{type:"primary",size:"large",onClick:n},{default:W(()=>[Ce("返回首页")]),_:1}),z(r,{size:"large",onClick:a},{default:W(()=>[Ce("返回上一页")]),_:1})])])])])}}}),Yxe=Ct(Gxe,[["__scopeId","data-v-ae04cd06"]]),Xxe=()=>dt.get("/api/v1/doc/categories"),Qxe=e=>dt.get(`/api/v1/doc/articles/${e}`),Jxe={class:"help-center-tree"},Zxe=["onClick"],e4e={key:0,class:"help-center-tree__chevron"},t4e={key:0,class:"help-center-tree__children"},n4e=["onClick"],a4e=le({name:"HelpCenterNavTree",__name:"HelpCenterNavTree",props:{nodes:{},activeSlug:{},collapsedGroups:{},level:{default:0}},emits:["select","toggle"],setup(e,{emit:t}){const n=t,a=r=>({paddingLeft:`${12+r*14}px`});function s(r){(r.children.length>0||r.articles.length>0)&&n("toggle",r.id)}const o=r=>r.children.length>0||r.articles.length>0;return(r,i)=>{const c=Ne("HelpCenterNavTree",!0);return _(),w("div",Jxe,[(_(!0),w(_e,null,Re(r.nodes,u=>(_(),w("div",{key:u.id,class:"help-center-tree__group"},[l("button",{type:"button",class:V(["help-center-tree__node",{"is-branch":o(u),"is-collapsed":r.collapsedGroups.has(u.id)}]),style:Je(a(r.level)),onClick:d=>s(u)},[l("span",null,I(u.name),1),o(u)?(_(),w("span",e4e,"›")):K("",!0)],14,Zxe),o(u)&&!r.collapsedGroups.has(u.id)?(_(),w("div",t4e,[z(c,{nodes:u.children,"active-slug":r.activeSlug,"collapsed-groups":r.collapsedGroups,level:r.level+1,onSelect:i[0]||(i[0]=d=>n("select",d)),onToggle:i[1]||(i[1]=d=>n("toggle",d))},null,8,["nodes","active-slug","collapsed-groups","level"]),(_(!0),w(_e,null,Re(u.articles,d=>(_(),w("button",{key:d.id,type:"button",class:V(["help-center-tree__article",{"is-active":r.activeSlug===d.slug}]),style:Je(a(r.level+1)),onClick:p=>n("select",d.slug)},I(d.title),15,n4e))),128))])):K("",!0)]))),128))])}}}),s4e=Ct(a4e,[["__scopeId","data-v-7e666927"]]),o4e=e=>(xt("data-v-7f881f1c"),e=e(),Tt(),e),r4e={class:"help-center page-container"},l4e={class:"help-center__body"},i4e={class:"help-center__aside page-card"},c4e={class:"help-center__aside-header"},u4e=o4e(()=>l("h3",null,"文档目录",-1)),d4e={class:"help-center__search-box"},f4e={key:1,class:"help-center__nav-empty"},p4e={class:"help-center__content page-card"},v4e={key:0,class:"help-center__skeleton","aria-live":"polite"},h4e=mn('
    ',5),m4e=[h4e],g4e={key:1,class:"help-center__error"},_4e={key:2,class:"help-center__article"},y4e=["innerHTML"],b4e=le({__name:"HelpCenterView",setup(e){const t=pn(),n=fa(),a=T([]),s=T(""),o=T(null),r=T(!1),i=T(""),c=T(""),u=T(!1),d=T(new Set),p=A=>{var M;const N=new Map,P=[];for(const j of A)N.set(j.id,{...j,articles:j.articles||[],children:[]});for(const j of A){const F=N.get(j.id);j.parentId===0?P.push(F):(M=N.get(j.parentId))==null||M.children.push(F)}const B=j=>{j.sort((F,q)=>F.sortOrder===q.sortOrder?F.id-q.id:F.sortOrder-q.sortOrder),j.forEach(F=>B(F.children))};return B(P),P},v=x(()=>p(a.value)),h=(A,N)=>N?A.map(P=>{const B=h(P.children,N),M=P.articles.filter(F=>F.title.toLowerCase().includes(N)),j=P.name.toLowerCase().includes(N);return!j&&B.length===0&&M.length===0?null:{...P,children:j?P.children:B,articles:j?P.articles:M}}).filter(P=>!!P):A,m=A=>{for(const N of A){if(N.articles.length>0)return N.articles[0];const P=m(N.children);if(P)return P}return null},g=(A,N)=>{for(const P of A){const B=P.articles.find(j=>j.slug===N);if(B)return B;const M=g(P.children,N);if(M)return M}return null},y=()=>{const A=n.query.article;return typeof A=="string"?A.trim():""},b=x(()=>{const A=c.value.trim().toLowerCase();return h(v.value,A)}),C=x(()=>{var A;return(A=o.value)!=null&&A.content?mA(o.value.content):""});async function k(){r.value=!0,i.value="";try{if(a.value=await Xxe(),a.value.length&&!s.value){const A=y(),N=A?g(v.value,A):null,P=m(v.value),B=(N==null?void 0:N.slug)??(P==null?void 0:P.slug)??"";s.value=B,B&&await S(B)}}catch(A){i.value=A instanceof Error?A.message:"加载失败"}finally{r.value=!1}}async function S(A){if(A){r.value=!0,i.value="";try{o.value=await Qxe(A)}catch(N){o.value=null,i.value=N instanceof Error?N.message:"文档加载失败"}finally{r.value=!1}}}function $(A){s.value=A,S(A),u.value=!1,t.replace({path:"/support",query:{...n.query,article:A}})}function E(A){const N=new Set(d.value);N.has(A)?N.delete(A):N.add(A),d.value=N}function R(A){var B;const N=(B=A.target)==null?void 0:B.closest("a");if(!N)return;const P=N.getAttribute("href")||"";!P.startsWith("/")||P.startsWith("//")||(A.preventDefault(),t.push(P))}return Te(()=>n.query.article,()=>{const A=y();if(!A||A===s.value||a.value.length===0)return;const N=g(v.value,A);N&&(s.value=N.slug,S(N.slug))}),ft(()=>{k()}),(A,N)=>(_(),w("div",r4e,[l("div",l4e,[l("aside",i4e,[l("div",c4e,[u4e,l("button",{type:"button",class:V(["help-center__mobile-toggle",{"is-open":u.value}]),onClick:N[0]||(N[0]=P=>u.value=!u.value)},I(u.value?"收起":"展开目录"),3)]),l("div",d4e,[et(l("input",{"onUpdate:modelValue":N[1]||(N[1]=P=>c.value=P),type:"search",placeholder:"例如:搜索文档...",class:"help-center__search-input"},null,512),[[hn,c.value,void 0,{trim:!0}]])]),l("nav",{class:V(["help-center__nav",{"is-open":u.value}])},[b.value.length?(_(),ue(s4e,{key:0,nodes:b.value,"active-slug":s.value,"collapsed-groups":d.value,onSelect:$,onToggle:E},null,8,["nodes","active-slug","collapsed-groups"])):r.value?K("",!0):(_(),w("div",f4e,I(c.value?"未找到匹配文档":"暂无文档目录"),1))],2)]),l("main",p4e,[r.value&&!o.value?(_(),w("div",v4e,m4e)):i.value?(_(),w("div",g4e,[l("p",null,I(i.value),1),l("button",{type:"button",class:"help-center__error-retry",onClick:k},"重新加载")])):o.value?(_(),w("article",_4e,[l("div",{class:"help-center__markdown prose",innerHTML:C.value,onClick:R},null,8,y4e)])):(_(),ue(x0,{key:3,title:"请从左侧选择一篇文档",description:"浏览左侧目录,点击需要查看的文档标题。"}))])])]))}}),w4e=Ct(b4e,[["__scopeId","data-v-7f881f1c"]]),q1=[["#C41E3A","#5A0E1F"],["#1A1814","#3D3530"],["#B8923C","#5E4515"],["#2D4A3E","#162A22"],["#6B4226","#2E1B0E"],["#3A4A5E","#1A2330"]],C4e=q1[1],k4e=e=>{let t=0;for(const n of e)t=Math.imul(t,31)+(n.codePointAt(0)??0)>>>0;return t},A0=e=>{const t=x(()=>{const a=(Aw(e)||"").trim(),[s,o]=a?q1[k4e(a)%q1.length]:C4e;return`linear-gradient(135deg, ${s} 0%, ${o} 100%)`}),n=x(()=>(Aw(e)||"").charAt(0).toUpperCase());return{placeholderGradient:t,initial:n}},Q2=e=>(xt("data-v-28ad4d63"),e=e(),Tt(),e),S4e=["onKeydown"],E4e={class:"app-card__media"},$4e=["src","alt"],x4e={class:"app-card__placeholder-initial"},T4e=Q2(()=>l("span",{class:"app-card__placeholder-mark","aria-hidden":"true"},null,-1)),I4e={class:"app-card__body"},A4e={class:"app-card__name"},N4e={key:0,class:"app-card__tags"},R4e={key:0,class:"app-card__tag"},P4e={key:1,class:"app-card__tag"},M4e={class:"app-card__desc"},B4e={class:"app-card__footer"},L4e=Q2(()=>l("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"square"},[l("path",{d:"M5 12h14M13 5l7 7-7 7"})],-1)),O4e=Q2(()=>l("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),l("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"})],-1)),D4e=le({__name:"AppCard",props:{app:{}},setup(e){const t=e,n=pn(),a=x(()=>$s(t.app.icon)||""),{placeholderGradient:s,initial:o}=A0(()=>t.app.name),r=x(()=>t.app.isExternal===1),i=x(()=>!!t.app.helpDocUrl),c=()=>{n.push({name:"app-detail",params:{id:t.app.id}})},u=()=>{t.app.helpDocUrl&&window.open(t.app.helpDocUrl,"_blank","noopener,noreferrer")},d=()=>{if(r.value&&t.app.experienceUrl){const p=n.resolve({name:"external-link",query:{appId:t.app.id}}).href;window.open(p,"_blank","noopener,noreferrer")}else c()};return(p,v)=>(_(),w("article",{class:"app-card",tabindex:"0",role:"button",onClick:d,onKeydown:yn(qe(d,["prevent"]),["enter"])},[l("div",E4e,[a.value?(_(),w("img",{key:0,src:a.value,alt:p.app.name,class:"app-card__image",loading:"lazy"},null,8,$4e)):(_(),w("div",{key:1,class:"app-card__placeholder",style:Je({background:f(s)})},[l("span",x4e,I(f(o)),1),T4e],4))]),l("div",I4e,[l("h3",A4e,I(p.app.name),1),p.app.developer||p.app.categoryName?(_(),w("div",N4e,[p.app.categoryName?(_(),w("span",R4e,I(p.app.categoryName),1)):K("",!0),p.app.developer?(_(),w("span",P4e,I(p.app.developer),1)):K("",!0)])):K("",!0),l("p",M4e,I(p.app.description||"—"),1),l("footer",B4e,[l("span",{class:"app-card__cta",onClick:qe(d,["stop"])},[Ce(" 查看详情 "),L4e]),i.value?(_(),w("span",{key:0,class:"app-card__doc",onClick:qe(u,["stop"])},[Ce(" 查看文档 "),O4e])):K("",!0)])])],40,S4e))}}),V4e=Ct(D4e,[["__scopeId","data-v-28ad4d63"]]),F4e=()=>dt.get("/api/v1/apps/categories"),U4e=e=>dt.get("/api/v1/apps/list",{params:e}),J2=e=>dt.get(`/api/v1/apps/${e}`),z4e=e=>(xt("data-v-67faffe3"),e=e(),Tt(),e),H4e={class:"app-store-page"},K4e={class:"page-container"},q4e={class:"app-store-layout"},j4e={key:0,class:"app-store-sidebar"},W4e={class:"category-sidebar"},G4e=["onClick"],Y4e={class:"app-store-content"},X4e={class:"app-grid"},Q4e={key:0,class:"app-pagination"},J4e={key:3,class:"app-empty"},Z4e=z4e(()=>l("p",null,"暂无应用",-1)),eTe=[Z4e],tTe=le({__name:"AppStoreView",setup(e){const t=fa(),n=pn(),a=T(!1),s=T(""),o=T([]),r=T(0),i=T(1),c=T(10),u=[10,20,50],d=x(()=>!0),p=T([]),v=T(),h=async()=>{try{p.value=await F4e()}catch{p.value=[]}},m=async()=>{a.value=!0,s.value="";try{const k=await U4e({categoryId:v.value,pageNum:i.value,pageSize:c.value});o.value=k.list,r.value=k.total}catch(k){s.value=(k==null?void 0:k.message)||"加载应用列表失败",o.value=[],r.value=0}finally{a.value=!1}},g=k=>{n.replace({query:k?{categoryId:String(k)}:{}})},y=()=>{const k=t.query.categoryId;v.value=k?Number(k):void 0,i.value=1};Te(()=>t.query,()=>{y(),m()},{immediate:!0});const b=k=>{i.value=k,m()},C=k=>{c.value=k,i.value=1,m()};return ft(()=>{h()}),(k,S)=>{const $=Ne("el-pagination");return _(),w("div",H4e,[l("div",K4e,[z(f(Wl),{eyebrow:"Apps",title:"应用市场",description:"精选 AI 应用,赋能业务增长"}),l("div",q4e,[p.value.length>0?(_(),w("aside",j4e,[l("nav",W4e,[l("button",{class:V(["category-sidebar__item",{"category-sidebar__item--active":!v.value}]),onClick:S[0]||(S[0]=E=>g(void 0))}," 全部应用 ",2),(_(!0),w(_e,null,Re(p.value,E=>(_(),w("button",{key:E.id,class:V(["category-sidebar__item",{"category-sidebar__item--active":v.value===E.id}]),onClick:R=>g(E.id)},I(E.name),11,G4e))),128))])])):K("",!0),l("main",Y4e,[a.value&&o.value.length===0?(_(),ue(pl,{key:0,title:"加载中..."})):s.value?(_(),ue(fl,{key:1,title:s.value,onRetry:m},null,8,["title"])):o.value.length>0?(_(),w(_e,{key:2},[l("div",X4e,[(_(!0),w(_e,null,Re(o.value,(E,R)=>(_(),ue(V4e,{key:E.id,app:E,style:Je({"--stagger":R})},null,8,["app","style"]))),128))]),d.value?(_(),w("div",Q4e,[z($,{"current-page":i.value,"onUpdate:currentPage":S[1]||(S[1]=E=>i.value=E),"page-size":c.value,"onUpdate:pageSize":S[2]||(S[2]=E=>c.value=E),background:"","page-sizes":u,"popper-class":"app-pagination-size-dropdown",total:r.value,layout:"total, sizes, prev, pager, next",onCurrentChange:b,onSizeChange:C},null,8,["current-page","page-size","total"])])):K("",!0)],64)):(_(),w("div",J4e,eTe))])])])])}}}),nTe=Ct(tTe,[["__scopeId","data-v-67faffe3"]]),ka=e=>(xt("data-v-a267ec6f"),e=e(),Tt(),e),aTe={class:"page-container app-detail-page"},sTe=ka(()=>l("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M19 12H5M12 19l-7-7 7-7"})],-1)),oTe={class:"back-row","aria-label":"返回"},rTe=ka(()=>l("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M19 12H5M12 19l-7-7 7-7"})],-1)),lTe={class:"back-row__serial"},iTe={class:"detail-layout"},cTe={class:"hero"},uTe=ka(()=>l("span",{class:"hero__accent","aria-hidden":"true"},null,-1)),dTe={key:0,class:"hero__ghost","aria-hidden":"true"},fTe={class:"hero__identity"},pTe={class:"hero__eyebrow"},vTe=ka(()=>l("span",{class:"hero__cat-dot","aria-hidden":"true"},null,-1)),hTe={key:0,class:"hero__cat"},mTe={key:1,class:"hero__ext"},gTe={class:"hero__masthead"},_Te={class:"hero__titleblock"},yTe={class:"hero__title"},bTe={key:0,class:"hero__developer"},wTe=ka(()=>l("span",{class:"hero__developer-label"},"DEVELOPER",-1)),CTe={key:0,class:"hero__desc"},kTe={key:1,class:"hero__tags"},STe={class:"hero__actions"},ETe=ka(()=>l("span",null,"去体验",-1)),$Te=ka(()=>l("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"square"},[l("path",{d:"M7 17L17 7M9 7h8v8"})],-1)),xTe=[ETe,$Te],TTe=ka(()=>l("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),l("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"})],-1)),ITe={class:"hero__spec"},ATe={key:0,class:"hero__spec-item"},NTe=ka(()=>l("dt",null,"开发者",-1)),RTe={key:1,class:"hero__spec-item"},PTe=ka(()=>l("dt",null,"分类",-1)),MTe={class:"hero__spec-item"},BTe=ka(()=>l("dt",null,"类型",-1)),LTe=["aria-label"],OTe={class:"gallery__viewport"},DTe=ka(()=>l("span",{class:"gallery__frame gallery__frame--tl","aria-hidden":"true"},null,-1)),VTe=ka(()=>l("span",{class:"gallery__frame gallery__frame--br","aria-hidden":"true"},null,-1)),FTe={key:1,class:"gallery__shimmer"},UTe=["src","onError"],zTe=["src","alt","onError"],HTe={key:0,class:"gallery__counter"},KTe=ka(()=>l("i",null,"/",-1)),qTe=ka(()=>l("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M15 18l-6-6 6-6"})],-1)),jTe=[qTe],WTe=ka(()=>l("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M9 18l6-6-6-6"})],-1)),GTe=[WTe],YTe={key:3,class:"gallery__dots"},XTe=["onClick","aria-label"],QTe={class:"bento"},JTe={key:0,class:"tile"},ZTe=ka(()=>l("span",{class:"tile__tick","aria-hidden":"true"},null,-1)),e3e={class:"tile__head"},t3e={class:"tile__no","aria-hidden":"true"},n3e={class:"tile__heading"},a3e=ka(()=>l("h2",{class:"tile__title"},"核心优势",-1)),s3e={class:"tile__sub"},o3e={class:"advantages"},r3e={class:"advantages__index","aria-hidden":"true"},l3e={class:"advantages__text"},i3e={key:1,class:"tile"},c3e=ka(()=>l("span",{class:"tile__tick","aria-hidden":"true"},null,-1)),u3e={class:"tile__head"},d3e={class:"tile__no","aria-hidden":"true"},f3e=ka(()=>l("div",{class:"tile__heading"},[l("h2",{class:"tile__title"},"套餐方案"),l("p",{class:"tile__sub"},"选择适合您的方案")],-1)),p3e={class:"plans"},v3e={key:0,class:"plan__badge"},h3e={class:"plan__name"},m3e={class:"plan__price-row"},g3e={key:0,class:"plan__price"},_3e=ka(()=>l("span",{class:"plan__price-sym"},"积分",-1)),y3e={key:1,class:"plan__price plan__price--custom"},b3e={key:2,class:"plan__unit"},w3e={key:1,class:"plan__features"},C3e=ka(()=>l("svg",{class:"plan__check",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M20 6L9 17l-5-5"})],-1)),k3e={key:2,class:"tile"},S3e=ka(()=>l("span",{class:"tile__tick","aria-hidden":"true"},null,-1)),E3e={class:"tile__head"},$3e={class:"tile__no","aria-hidden":"true"},x3e=ka(()=>l("div",{class:"tile__heading"},[l("h2",{class:"tile__title"},"详细介绍")],-1)),T3e=["innerHTML"],I3e={class:"action-bar"},A3e={class:"action-bar__inner"},N3e={class:"action-bar__info"},R3e={class:"action-bar__name"},P3e={class:"action-bar__cat"},M3e={class:"action-bar__btns"},B3e=le({__name:"AppDetailView",setup(e){const t=fa(),n=pn(),a=Number(t.params.id),s=T(!0),o=T(""),r=T(null),i=x(()=>{var D;return(D=r.value)!=null&&D.detailContent?qc(r.value.detailContent,'

    暂无详细介绍

    '):""});x(()=>{var D;return(D=r.value)!=null&&D.icon?$s(r.value.icon):""});const{placeholderGradient:c,initial:u}=A0(()=>{var D;return(D=r.value)==null?void 0:D.name}),d=x(()=>{var D;return((D=r.value)==null?void 0:D.isExternal)===1}),p=x(()=>{var D;return!!((D=r.value)!=null&&D.experienceUrl)}),v=x(()=>{var D,Y;return(((Y=(D=r.value)==null?void 0:D.advantages)==null?void 0:Y.length)??0)>0}),h=x(()=>{var D,Y;return(((Y=(D=r.value)==null?void 0:D.plans)==null?void 0:Y.length)??0)>0}),m=x(()=>{var D,Y;return(((Y=(D=r.value)==null?void 0:D.banners)==null?void 0:Y.length)??0)>0}),g=x(()=>{var D;return!!((D=r.value)!=null&&D.helpDocUrl)}),y=x(()=>{var Y;return(((Y=r.value)==null?void 0:Y.detailContent)||"").replace(/<[^>]*>/g,"").replace(/ /gi,"").trim().length>0}),b=D=>$s(D.mediaUrl)||"",C=T(0);let k=null;const S=T(null),$=T(!1),E=T(!1),R=T(new Set),A=x(()=>{var D;return!!((D=r.value)!=null&&D.banners)&&r.value.banners.length>1&&!$.value&&!E.value}),N=()=>{if(P(),!A.value)return;const D=r.value.banners.length;k=setInterval(()=>{C.value=(C.value+1)%D},4e3)},P=()=>{k&&(clearInterval(k),k=null)},B=()=>{$.value=!0,P()},M=()=>{$.value=!1,N()},j=()=>{E.value=!0,P()},F=()=>{E.value=!1,N()},q=D=>{R.value.has(D)||(R.value=new Set(R.value).add(D))},L=D=>R.value.has(D),U=D=>{C.value=D,N()},O=()=>{var D;(D=r.value)!=null&&D.banners&&(C.value=(C.value-1+r.value.banners.length)%r.value.banners.length,N())},G=()=>{var D;(D=r.value)!=null&&D.banners&&(C.value=(C.value+1)%r.value.banners.length,N())};Te(C,()=>{it(()=>{var Y;const D=(Y=S.value)==null?void 0:Y.querySelectorAll(".gallery__slide");D==null||D.forEach((ne,re)=>{re!==C.value&&ne.querySelectorAll("video").forEach(se=>se.pause())})})});const ae=async()=>{if(Number.isNaN(a)||a<=0){o.value="应用不存在",s.value=!1;return}s.value=!0,o.value="";try{r.value=await J2(a),N()}catch(D){o.value=(D==null?void 0:D.message)||"加载应用详情失败"}finally{s.value=!1}},Z=()=>{n.push({name:"apps"})},te=()=>{var D;if((D=r.value)!=null&&D.experienceUrl){const Y=n.resolve({name:"external-link",query:{appId:r.value.id}}).href;window.open(Y,"_blank","noopener,noreferrer")}},ie=()=>{var D;(D=r.value)!=null&&D.helpDocUrl&&window.open(r.value.helpDocUrl,"_blank","noopener,noreferrer")},oe=()=>{r.value&&n.push({name:"intention-create",query:{type:"product_inquiry",sourceType:"app_product",sourceProductKey:String(r.value.id),productType:"app"}})},J=x(()=>{var D;return`ID · ${String(((D=r.value)==null?void 0:D.id)??0).padStart(4,"0")}`}),ee=D=>String(D).padStart(2,"0"),Q=x(()=>{let D=1;return{advantages:v.value?ee(D++):"",plans:h.value?ee(D++):"",detail:y.value?ee(D++):""}}),H=x(()=>{var D,Y;return((Y=(D=r.value)==null?void 0:D.banners)==null?void 0:Y.length)??0}),X=x(()=>ee(C.value+1)),he=x(()=>ee(H.value));return ft(()=>ae()),al(()=>P()),(D,Y)=>{var ne;return _(),w("div",aTe,[s.value?(_(),ue(pl,{key:0,title:"加载应用详情..."})):o.value?(_(),ue(fl,{key:1,title:o.value,onRetry:ae},{default:W(()=>[l("button",{class:"back-link",onClick:Z},[sTe,Ce(" 返回应用市场 ")])]),_:1},8,["title"])):r.value?(_(),w(_e,{key:2},[l("nav",oTe,[l("button",{class:"back-link",onClick:Z},[rTe,Ce(" 返回应用市场 ")]),l("span",lTe,I(J.value),1)]),l("div",iTe,[l("header",cTe,[uTe,f(u)?(_(),w("span",dTe,I(f(u)),1)):K("",!0),l("div",fTe,[l("div",pTe,[vTe,r.value.categoryName?(_(),w("span",hTe,I(r.value.categoryName),1)):K("",!0),d.value?(_(),w("span",mTe,"外部产品")):K("",!0)]),l("div",gTe,[l("div",_Te,[l("h1",yTe,I(r.value.name),1),r.value.developer?(_(),w("p",bTe,[wTe,l("strong",null,I(r.value.developer),1)])):K("",!0)])]),r.value.description?(_(),w("p",CTe,I(r.value.description),1)):K("",!0),(ne=r.value.tags)!=null&&ne.length?(_(),w("ul",kTe,[(_(!0),w(_e,null,Re(r.value.tags,(re,se)=>(_(),w("li",{key:se,class:"chip"},I(re),1))),128))])):K("",!0),l("div",STe,[p.value?(_(),w("button",{key:0,class:"btn btn--primary",onClick:te},xTe)):K("",!0),g.value?(_(),w("button",{key:1,class:"btn btn--ghost",onClick:ie},[TTe,Ce(" 产品文档 ")])):K("",!0),l("button",{class:V(["btn",d.value?"btn--ghost":"btn--primary"]),onClick:oe}," 咨询产品 ",2)])]),l("dl",ITe,[r.value.developer?(_(),w("div",ATe,[NTe,l("dd",null,I(r.value.developer),1)])):K("",!0),r.value.categoryName?(_(),w("div",RTe,[PTe,l("dd",null,I(r.value.categoryName),1)])):K("",!0),l("div",MTe,[BTe,l("dd",null,I(d.value?"外部产品":"平台内置"),1)])])]),m.value?(_(),w("section",{key:0,ref_key:"galleryRef",ref:S,class:"gallery gallery--card",onMouseenter:B,onMouseleave:M,"aria-label":`${r.value.name} 界面预览`},[l("div",OTe,[DTe,VTe,(_(!0),w(_e,null,Re(r.value.banners,(re,se)=>(_(),w("div",{key:re.id,class:V(["gallery__slide",{"gallery__slide--active":se===C.value}])},[L(re.id)?(_(),w("div",{key:0,class:"gallery__fallback",style:Je({background:f(c)})},[l("span",null,I(f(u)),1)],4)):b(re)?re.mediaType==="video"&&b(re)?(_(),w("video",{key:2,src:b(re),class:"gallery__media",controls:"",preload:"metadata",onPlay:j,onPause:F,onEnded:F,onError:ke=>q(re.id)},null,40,UTe)):b(re)?(_(),w("img",{key:3,src:b(re),alt:`${r.value.name} 预览 ${se+1}`,class:"gallery__media",onError:ke=>q(re.id)},null,40,zTe)):K("",!0):(_(),w("div",FTe))],2))),128)),H.value>1?(_(),w("span",HTe,[Ce(I(X.value),1),KTe,Ce(I(he.value),1)])):K("",!0),H.value>1?(_(),w("button",{key:1,class:"gallery__arrow gallery__arrow--prev",onClick:O,"aria-label":"上一张"},jTe)):K("",!0),H.value>1?(_(),w("button",{key:2,class:"gallery__arrow gallery__arrow--next",onClick:G,"aria-label":"下一张"},GTe)):K("",!0),H.value>1?(_(),w("div",YTe,[(_(!0),w(_e,null,Re(r.value.banners,(re,se)=>(_(),w("button",{key:se,class:V(["gallery__dot",{"gallery__dot--active":se===C.value}]),onClick:ke=>U(se),"aria-label":`第 ${se+1} 张`},null,10,XTe))),128))])):K("",!0)])],40,LTe)):K("",!0),l("div",QTe,[v.value?(_(),w("section",JTe,[ZTe,l("header",e3e,[l("span",t3e,I(Q.value.advantages),1),l("div",n3e,[a3e,l("p",s3e,"为什么选择 "+I(r.value.name),1)])]),l("ul",o3e,[(_(!0),w(_e,null,Re(r.value.advantages,(re,se)=>(_(),w("li",{key:se,class:"advantages__item",style:Je({"--i":se})},[l("span",r3e,I(ee(se+1)),1),l("span",l3e,I(re),1)],4))),128))])])):K("",!0),h.value?(_(),w("section",i3e,[c3e,l("header",u3e,[l("span",d3e,I(Q.value.plans),1),f3e]),l("div",p3e,[(_(!0),w(_e,null,Re(r.value.plans,re=>{var se;return _(),w("article",{key:re.id,class:V(["plan",{"plan--rec":re.isRecommended===1}])},[re.isRecommended===1?(_(),w("span",v3e,"推荐")):K("",!0),l("h3",h3e,I(re.planName),1),l("div",m3e,[re.price!==null?(_(),w("span",g3e,[_3e,Ce(I(re.price),1)])):(_(),w("span",y3e,"定制报价")),re.priceUnit&&re.price!==null?(_(),w("span",b3e,I(re.priceUnit),1)):K("",!0)]),(se=re.features)!=null&&se.length?(_(),w("ul",w3e,[(_(!0),w(_e,null,Re(re.features,(ke,ye)=>(_(),w("li",{key:ye},[C3e,l("span",null,I(ke),1)]))),128))])):K("",!0)],2)}),128))])])):K("",!0),y.value?(_(),w("section",k3e,[S3e,l("header",E3e,[l("span",$3e,I(Q.value.detail),1),x3e]),l("div",{class:"prose",innerHTML:i.value},null,8,T3e)])):K("",!0)])]),l("div",I3e,[l("div",A3e,[l("div",N3e,[l("span",R3e,I(r.value.name),1),l("span",P3e,I(r.value.categoryName||(d.value?"外部产品":"平台内置")),1)]),l("div",M3e,[g.value?(_(),w("button",{key:0,class:"btn btn--ghost btn--sm",onClick:ie},"文档")):K("",!0),p.value?(_(),w("button",{key:1,class:"btn btn--primary btn--sm",onClick:te},"去体验")):K("",!0),l("button",{class:"btn btn--ghost btn--sm",onClick:oe},"咨询产品")])])])],64)):K("",!0)])}}}),L3e=Ct(B3e,[["__scopeId","data-v-a267ec6f"]]),Z2=e=>(xt("data-v-7f18e9ea"),e=e(),Tt(),e),O3e=["onKeydown"],D3e={class:"app-card__media"},V3e=["src","alt"],F3e={class:"app-card__placeholder-initial"},U3e=Z2(()=>l("span",{class:"app-card__placeholder-mark","aria-hidden":"true"},null,-1)),z3e={class:"app-card__body"},H3e={class:"app-card__name"},K3e={key:0,class:"app-card__tags"},q3e={class:"app-card__tag"},j3e={class:"app-card__desc"},W3e={class:"app-card__footer"},G3e=Z2(()=>l("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"square"},[l("path",{d:"M5 12h14M13 5l7 7-7 7"})],-1)),Y3e=Z2(()=>l("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),l("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"})],-1)),X3e=le({__name:"ServiceCard",props:{app:{}},setup(e){const t=e,n=pn(),a=x(()=>$s(t.app.icon)||""),{placeholderGradient:s,initial:o}=A0(()=>t.app.name),r=x(()=>t.app.isExternal===1),i=x(()=>!!t.app.helpDocUrl),c=()=>{n.push({name:"service-detail",params:{id:t.app.id}})},u=()=>{t.app.helpDocUrl&&window.open(t.app.helpDocUrl,"_blank","noopener,noreferrer")},d=()=>{if(r.value&&t.app.experienceUrl){const p=n.resolve({name:"external-link",query:{appId:t.app.id}}).href;window.open(p,"_blank","noopener,noreferrer")}else c()};return(p,v)=>(_(),w("article",{class:"app-card",tabindex:"0",role:"button",onClick:d,onKeydown:yn(qe(d,["prevent"]),["enter"])},[l("div",D3e,[a.value?(_(),w("img",{key:0,src:a.value,alt:p.app.name,class:"app-card__image",loading:"lazy"},null,8,V3e)):(_(),w("div",{key:1,class:"app-card__placeholder",style:Je({background:f(s)})},[l("span",F3e,I(f(o)),1),U3e],4))]),l("div",z3e,[l("h3",H3e,I(p.app.name),1),p.app.developer?(_(),w("div",K3e,[l("span",q3e,I(p.app.developer),1)])):K("",!0),l("p",j3e,I(p.app.description||"—"),1),l("footer",W3e,[l("span",{class:"app-card__cta",onClick:qe(d,["stop"])},[Ce(" 查看详情 "),G3e]),i.value?(_(),w("span",{key:0,class:"app-card__doc",onClick:qe(u,["stop"])},[Ce(" 查看文档 "),Y3e])):K("",!0)])])],40,O3e))}}),Q3e=Ct(X3e,[["__scopeId","data-v-7f18e9ea"]]),J3e=e=>dt.get("/api/v1/services/list",{params:e}),CA=e=>dt.get(`/api/v1/services/${e}`),Z3e=e=>(xt("data-v-e9971404"),e=e(),Tt(),e),e8e={class:"app-store-page"},t8e={class:"page-container"},n8e={class:"app-store-content"},a8e={class:"app-grid"},s8e={key:0,class:"app-pagination"},o8e={key:3,class:"app-empty"},r8e=Z3e(()=>l("p",null,"暂无服务",-1)),l8e=[r8e],i8e=le({__name:"ServiceStoreView",setup(e){const t=T(!1),n=T(""),a=T([]),s=T(0),o=T(1),r=T(10),i=[10,20,50],c=x(()=>!0),u=async()=>{t.value=!0,n.value="";try{const v=await J3e({pageNum:o.value,pageSize:r.value});a.value=v.list,s.value=v.total}catch(v){n.value=(v==null?void 0:v.message)||"加载服务列表失败",a.value=[],s.value=0}finally{t.value=!1}};ft(()=>{u()});const d=v=>{o.value=v,u()},p=v=>{r.value=v,o.value=1,u()};return(v,h)=>{const m=Ne("el-pagination");return _(),w("div",e8e,[l("div",t8e,[z(f(Wl),{eyebrow:"Services",title:"服务市场",description:"精选 AI 服务,赋能业务增长"}),l("main",n8e,[t.value&&a.value.length===0?(_(),ue(pl,{key:0,title:"加载中..."})):n.value?(_(),ue(fl,{key:1,title:n.value,onRetry:u},null,8,["title"])):a.value.length>0?(_(),w(_e,{key:2},[l("div",a8e,[(_(!0),w(_e,null,Re(a.value,(g,y)=>(_(),ue(Q3e,{key:g.id,app:g,style:Je({"--stagger":y})},null,8,["app","style"]))),128))]),c.value?(_(),w("div",s8e,[z(m,{"current-page":o.value,"onUpdate:currentPage":h[0]||(h[0]=g=>o.value=g),"page-size":r.value,"onUpdate:pageSize":h[1]||(h[1]=g=>r.value=g),background:"","page-sizes":i,"popper-class":"app-pagination-size-dropdown",total:s.value,layout:"total, sizes, prev, pager, next",onCurrentChange:d,onSizeChange:p},null,8,["current-page","page-size","total"])])):K("",!0)],64)):(_(),w("div",o8e,l8e))])])])}}}),c8e=Ct(i8e,[["__scopeId","data-v-e9971404"]]),Oa=e=>(xt("data-v-fcf640b5"),e=e(),Tt(),e),u8e={class:"page-container app-detail-page"},d8e=Oa(()=>l("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M19 12H5M12 19l-7-7 7-7"})],-1)),f8e={class:"back-row","aria-label":"返回"},p8e=Oa(()=>l("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M19 12H5M12 19l-7-7 7-7"})],-1)),v8e={class:"back-row__serial"},h8e={class:"detail-layout"},m8e={class:"hero"},g8e=Oa(()=>l("span",{class:"hero__accent","aria-hidden":"true"},null,-1)),_8e={key:0,class:"hero__ghost","aria-hidden":"true"},y8e={class:"hero__identity"},b8e={class:"hero__eyebrow"},w8e={key:0,class:"hero__ext"},C8e={class:"hero__masthead"},k8e={class:"hero__titleblock"},S8e={class:"hero__title"},E8e={key:0,class:"hero__developer"},$8e=Oa(()=>l("span",{class:"hero__developer-label"},"DEVELOPER",-1)),x8e={key:0,class:"hero__desc"},T8e={key:1,class:"hero__tags"},I8e={class:"hero__actions"},A8e=Oa(()=>l("span",null,"去体验",-1)),N8e=Oa(()=>l("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"square"},[l("path",{d:"M7 17L17 7M9 7h8v8"})],-1)),R8e=[A8e,N8e],P8e=Oa(()=>l("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),l("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"})],-1)),M8e={class:"hero__spec"},B8e={key:0,class:"hero__spec-item"},L8e=Oa(()=>l("dt",null,"开发者",-1)),O8e={class:"hero__spec-item"},D8e=Oa(()=>l("dt",null,"类型",-1)),V8e=["aria-label"],F8e={class:"gallery__viewport"},U8e=Oa(()=>l("span",{class:"gallery__frame gallery__frame--tl","aria-hidden":"true"},null,-1)),z8e=Oa(()=>l("span",{class:"gallery__frame gallery__frame--br","aria-hidden":"true"},null,-1)),H8e={key:1,class:"gallery__shimmer"},K8e=["src","onError"],q8e=["src","alt","onError"],j8e={key:0,class:"gallery__counter"},W8e=Oa(()=>l("i",null,"/",-1)),G8e=Oa(()=>l("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M15 18l-6-6 6-6"})],-1)),Y8e=[G8e],X8e=Oa(()=>l("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M9 18l6-6-6-6"})],-1)),Q8e=[X8e],J8e={key:3,class:"gallery__dots"},Z8e=["onClick","aria-label"],eIe={class:"bento"},tIe={key:0,class:"tile"},nIe=Oa(()=>l("span",{class:"tile__tick","aria-hidden":"true"},null,-1)),aIe={class:"tile__head"},sIe={class:"tile__no","aria-hidden":"true"},oIe={class:"tile__heading"},rIe=Oa(()=>l("h2",{class:"tile__title"},"核心优势",-1)),lIe={class:"tile__sub"},iIe={class:"advantages"},cIe={class:"advantages__index","aria-hidden":"true"},uIe={class:"advantages__text"},dIe={key:1,class:"tile"},fIe=Oa(()=>l("span",{class:"tile__tick","aria-hidden":"true"},null,-1)),pIe={class:"tile__head"},vIe={class:"tile__no","aria-hidden":"true"},hIe=Oa(()=>l("div",{class:"tile__heading"},[l("h2",{class:"tile__title"},"套餐方案"),l("p",{class:"tile__sub"},"选择适合您的方案")],-1)),mIe={class:"plans"},gIe={key:0,class:"plan__badge"},_Ie={class:"plan__name"},yIe={class:"plan__price-row"},bIe={key:0,class:"plan__price"},wIe=Oa(()=>l("span",{class:"plan__price-sym"},"积分",-1)),CIe={key:1,class:"plan__price plan__price--custom"},kIe={key:2,class:"plan__unit"},SIe={key:1,class:"plan__features"},EIe=Oa(()=>l("svg",{class:"plan__check",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M20 6L9 17l-5-5"})],-1)),$Ie={key:2,class:"tile"},xIe=Oa(()=>l("span",{class:"tile__tick","aria-hidden":"true"},null,-1)),TIe={class:"tile__head"},IIe={class:"tile__no","aria-hidden":"true"},AIe=Oa(()=>l("div",{class:"tile__heading"},[l("h2",{class:"tile__title"},"详细介绍")],-1)),NIe=["innerHTML"],RIe={class:"action-bar"},PIe={class:"action-bar__inner"},MIe={class:"action-bar__info"},BIe={class:"action-bar__name"},LIe={class:"action-bar__cat"},OIe={class:"action-bar__btns"},DIe=le({__name:"ServiceDetailView",setup(e){const t=fa(),n=pn(),a=Number(t.params.id),s=T(!0),o=T(""),r=T(null),i=x(()=>{var D;return(D=r.value)!=null&&D.detailContent?qc(r.value.detailContent,'

    暂无详细介绍

    '):""});x(()=>{var D;return(D=r.value)!=null&&D.icon?$s(r.value.icon):""});const{placeholderGradient:c,initial:u}=A0(()=>{var D;return(D=r.value)==null?void 0:D.name}),d=x(()=>{var D;return((D=r.value)==null?void 0:D.isExternal)===1}),p=x(()=>{var D;return!!((D=r.value)!=null&&D.experienceUrl)}),v=x(()=>{var D,Y;return(((Y=(D=r.value)==null?void 0:D.advantages)==null?void 0:Y.length)??0)>0}),h=x(()=>{var D,Y;return(((Y=(D=r.value)==null?void 0:D.plans)==null?void 0:Y.length)??0)>0}),m=x(()=>{var D,Y;return(((Y=(D=r.value)==null?void 0:D.banners)==null?void 0:Y.length)??0)>0}),g=x(()=>{var D;return!!((D=r.value)!=null&&D.helpDocUrl)}),y=x(()=>{var Y;return(((Y=r.value)==null?void 0:Y.detailContent)||"").replace(/<[^>]*>/g,"").replace(/ /gi,"").trim().length>0}),b=D=>$s(D.mediaUrl)||"",C=T(0);let k=null;const S=T(null),$=T(!1),E=T(!1),R=T(new Set),A=x(()=>{var D;return!!((D=r.value)!=null&&D.banners)&&r.value.banners.length>1&&!$.value&&!E.value}),N=()=>{if(P(),!A.value)return;const D=r.value.banners.length;k=setInterval(()=>{C.value=(C.value+1)%D},4e3)},P=()=>{k&&(clearInterval(k),k=null)},B=()=>{$.value=!0,P()},M=()=>{$.value=!1,N()},j=()=>{E.value=!0,P()},F=()=>{E.value=!1,N()},q=D=>{R.value.has(D)||(R.value=new Set(R.value).add(D))},L=D=>R.value.has(D),U=D=>{C.value=D,N()},O=()=>{var D;(D=r.value)!=null&&D.banners&&(C.value=(C.value-1+r.value.banners.length)%r.value.banners.length,N())},G=()=>{var D;(D=r.value)!=null&&D.banners&&(C.value=(C.value+1)%r.value.banners.length,N())};Te(C,()=>{it(()=>{var Y;const D=(Y=S.value)==null?void 0:Y.querySelectorAll(".gallery__slide");D==null||D.forEach((ne,re)=>{re!==C.value&&ne.querySelectorAll("video").forEach(se=>se.pause())})})});const ae=async()=>{if(Number.isNaN(a)||a<=0){o.value="服务不存在",s.value=!1;return}s.value=!0,o.value="";try{r.value=await CA(a),N()}catch(D){o.value=(D==null?void 0:D.message)||"加载服务详情失败"}finally{s.value=!1}},Z=()=>{n.push({name:"services"})},te=()=>{var D;if((D=r.value)!=null&&D.experienceUrl){const Y=n.resolve({name:"external-link",query:{appId:r.value.id}}).href;window.open(Y,"_blank","noopener,noreferrer")}},ie=()=>{var D;(D=r.value)!=null&&D.helpDocUrl&&window.open(r.value.helpDocUrl,"_blank","noopener,noreferrer")},oe=()=>{r.value&&n.push({name:"intention-create",query:{type:"product_inquiry",sourceType:"app_product",sourceProductKey:String(r.value.id),productType:"service"}})},J=x(()=>{var D;return`ID · ${String(((D=r.value)==null?void 0:D.id)??0).padStart(4,"0")}`}),ee=D=>String(D).padStart(2,"0"),Q=x(()=>{let D=1;return{advantages:v.value?ee(D++):"",plans:h.value?ee(D++):"",detail:y.value?ee(D++):""}}),H=x(()=>{var D,Y;return((Y=(D=r.value)==null?void 0:D.banners)==null?void 0:Y.length)??0}),X=x(()=>ee(C.value+1)),he=x(()=>ee(H.value));return ft(()=>ae()),al(()=>P()),(D,Y)=>{var ne;return _(),w("div",u8e,[s.value?(_(),ue(pl,{key:0,title:"加载服务详情..."})):o.value?(_(),ue(fl,{key:1,title:o.value,onRetry:ae},{default:W(()=>[l("button",{class:"back-link",onClick:Z},[d8e,Ce(" 返回服务市场 ")])]),_:1},8,["title"])):r.value?(_(),w(_e,{key:2},[l("nav",f8e,[l("button",{class:"back-link",onClick:Z},[p8e,Ce(" 返回服务市场 ")]),l("span",v8e,I(J.value),1)]),l("div",h8e,[l("header",m8e,[g8e,f(u)?(_(),w("span",_8e,I(f(u)),1)):K("",!0),l("div",y8e,[l("div",b8e,[d.value?(_(),w("span",w8e,"外部产品")):K("",!0)]),l("div",C8e,[l("div",k8e,[l("h1",S8e,I(r.value.name),1),r.value.developer?(_(),w("p",E8e,[$8e,l("strong",null,I(r.value.developer),1)])):K("",!0)])]),r.value.description?(_(),w("p",x8e,I(r.value.description),1)):K("",!0),(ne=r.value.tags)!=null&&ne.length?(_(),w("ul",T8e,[(_(!0),w(_e,null,Re(r.value.tags,(re,se)=>(_(),w("li",{key:se,class:"chip"},I(re),1))),128))])):K("",!0),l("div",I8e,[p.value?(_(),w("button",{key:0,class:"btn btn--primary",onClick:te},R8e)):K("",!0),g.value?(_(),w("button",{key:1,class:"btn btn--ghost",onClick:ie},[P8e,Ce(" 产品文档 ")])):K("",!0),l("button",{class:V(["btn",d.value?"btn--ghost":"btn--primary"]),onClick:oe}," 咨询产品 ",2)])]),l("dl",M8e,[r.value.developer?(_(),w("div",B8e,[L8e,l("dd",null,I(r.value.developer),1)])):K("",!0),l("div",O8e,[D8e,l("dd",null,I(d.value?"外部产品":"平台内置"),1)])])]),m.value?(_(),w("section",{key:0,ref_key:"galleryRef",ref:S,class:"gallery gallery--card",onMouseenter:B,onMouseleave:M,"aria-label":`${r.value.name} 界面预览`},[l("div",F8e,[U8e,z8e,(_(!0),w(_e,null,Re(r.value.banners,(re,se)=>(_(),w("div",{key:re.id,class:V(["gallery__slide",{"gallery__slide--active":se===C.value}])},[L(re.id)?(_(),w("div",{key:0,class:"gallery__fallback",style:Je({background:f(c)})},[l("span",null,I(f(u)),1)],4)):b(re)?re.mediaType==="video"&&b(re)?(_(),w("video",{key:2,src:b(re),class:"gallery__media",controls:"",preload:"metadata",onPlay:j,onPause:F,onEnded:F,onError:ke=>q(re.id)},null,40,K8e)):b(re)?(_(),w("img",{key:3,src:b(re),alt:`${r.value.name} 预览 ${se+1}`,class:"gallery__media",onError:ke=>q(re.id)},null,40,q8e)):K("",!0):(_(),w("div",H8e))],2))),128)),H.value>1?(_(),w("span",j8e,[Ce(I(X.value),1),W8e,Ce(I(he.value),1)])):K("",!0),H.value>1?(_(),w("button",{key:1,class:"gallery__arrow gallery__arrow--prev",onClick:O,"aria-label":"上一张"},Y8e)):K("",!0),H.value>1?(_(),w("button",{key:2,class:"gallery__arrow gallery__arrow--next",onClick:G,"aria-label":"下一张"},Q8e)):K("",!0),H.value>1?(_(),w("div",J8e,[(_(!0),w(_e,null,Re(r.value.banners,(re,se)=>(_(),w("button",{key:se,class:V(["gallery__dot",{"gallery__dot--active":se===C.value}]),onClick:ke=>U(se),"aria-label":`第 ${se+1} 张`},null,10,Z8e))),128))])):K("",!0)])],40,V8e)):K("",!0),l("div",eIe,[v.value?(_(),w("section",tIe,[nIe,l("header",aIe,[l("span",sIe,I(Q.value.advantages),1),l("div",oIe,[rIe,l("p",lIe,"为什么选择 "+I(r.value.name),1)])]),l("ul",iIe,[(_(!0),w(_e,null,Re(r.value.advantages,(re,se)=>(_(),w("li",{key:se,class:"advantages__item",style:Je({"--i":se})},[l("span",cIe,I(ee(se+1)),1),l("span",uIe,I(re),1)],4))),128))])])):K("",!0),h.value?(_(),w("section",dIe,[fIe,l("header",pIe,[l("span",vIe,I(Q.value.plans),1),hIe]),l("div",mIe,[(_(!0),w(_e,null,Re(r.value.plans,re=>{var se;return _(),w("article",{key:re.id,class:V(["plan",{"plan--rec":re.isRecommended===1}])},[re.isRecommended===1?(_(),w("span",gIe,"推荐")):K("",!0),l("h3",_Ie,I(re.planName),1),l("div",yIe,[re.price!==null?(_(),w("span",bIe,[wIe,Ce(I(re.price),1)])):(_(),w("span",CIe,"定制报价")),re.priceUnit&&re.price!==null?(_(),w("span",kIe,I(re.priceUnit),1)):K("",!0)]),(se=re.features)!=null&&se.length?(_(),w("ul",SIe,[(_(!0),w(_e,null,Re(re.features,(ke,ye)=>(_(),w("li",{key:ye},[EIe,l("span",null,I(ke),1)]))),128))])):K("",!0)],2)}),128))])])):K("",!0),y.value?(_(),w("section",$Ie,[xIe,l("header",TIe,[l("span",IIe,I(Q.value.detail),1),AIe]),l("div",{class:"prose",innerHTML:i.value},null,8,NIe)])):K("",!0)])]),l("div",RIe,[l("div",PIe,[l("div",MIe,[l("span",BIe,I(r.value.name),1),l("span",LIe,I(d.value?"外部产品":"平台内置"),1)]),l("div",OIe,[g.value?(_(),w("button",{key:0,class:"btn btn--ghost btn--sm",onClick:ie},"文档")):K("",!0),p.value?(_(),w("button",{key:1,class:"btn btn--primary btn--sm",onClick:te},"去体验")):K("",!0),l("button",{class:"btn btn--ghost btn--sm",onClick:oe},"咨询产品")])])])],64)):K("",!0)])}}}),VIe=Ct(DIe,[["__scopeId","data-v-fcf640b5"]]),Ud=e=>(xt("data-v-3cf0e5dc"),e=e(),Tt(),e),FIe={class:"notice-page"},UIe={class:"notice-card","aria-labelledby":"notice-title"},zIe=mn('

    安全提示

    即将离开本平台

    您即将访问第三方网站,请注意账号财产安全

    ',4),HIe={key:0,class:"notice-url-box"},KIe=Ud(()=>l("svg",{class:"notice-url-icon",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[l("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),l("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})],-1)),qIe=["title"],jIe={key:1,class:"notice-error"},WIe=Ud(()=>l("div",{class:"notice-tip"},[l("svg",{class:"notice-tip-icon",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[l("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})]),l("p",{class:"notice-tip-text"},"第三方网站的内容及安全性由其自行负责,请注意保护账号、密码等个人信息。")],-1)),GIe={class:"notice-actions"},YIe=["disabled"],XIe=Ud(()=>l("span",null,"继续访问",-1)),QIe=Ud(()=>l("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),l("polyline",{points:"15 3 21 3 21 9"}),l("line",{x1:"10",y1:"14",x2:"21",y2:"3"})],-1)),JIe=[XIe,QIe],ZIe=Ud(()=>l("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("line",{x1:"19",y1:"12",x2:"5",y2:"12"}),l("polyline",{points:"12 19 5 12 12 5"})],-1)),e5e=Ud(()=>l("span",null,"返回上一页",-1)),t5e=[ZIe,e5e],n5e=le({__name:"ExternalLinkNoticeView",setup(e){const t=fa(),n=pn(),a=T(""),s=T(!0),o=d=>{try{const p=new URL(d);return p.protocol==="https:"||p.protocol==="http:"?p.href:""}catch{return""}};ft(async()=>{const d=Number(t.query.appId);if(!Number.isInteger(d)||d<=0){s.value=!1;return}try{const p=await J2(d);a.value=o(p.experienceUrl)}catch{a.value=""}finally{s.value=!1}});const i=x(()=>!!a.value),c=()=>{a.value&&(window.location.href=a.value)},u=()=>{if(window.close(),window.history.length>1){n.back();return}n.push({name:"home"})};return(d,p)=>(_(),w("main",FIe,[l("section",UIe,[zIe,a.value?(_(),w("div",HIe,[KIe,l("span",{class:"notice-url-text",title:a.value},I(a.value),9,qIe)])):s.value?K("",!0):(_(),w("p",jIe,"外链地址不可用,请返回应用列表后重试。")),WIe,l("div",GIe,[l("button",{class:"notice-btn notice-btn--primary",disabled:!i.value,onClick:c},JIe,8,YIe),l("button",{class:"notice-btn notice-btn--ghost",onClick:u},t5e)])])]))}}),a5e=Ct(n5e,[["__scopeId","data-v-3cf0e5dc"]]),ms=e=>(xt("data-v-11228d90"),e=e(),Tt(),e),s5e={class:"model-service-sandbox"},o5e=ms(()=>l("header",{class:"model-service-sandbox__hero page-card"},[l("div",null,[l("p",{class:"model-service-sandbox__eyebrow"},"模型服务 Sandbox"),l("h1",null,"模型服务模块空白验证页"),l("p",null," 这里不接正式路由与页面壳层,只用于验证商城模型组件、价格规则展示和 SSE 流式体验链路。 ")])],-1)),r5e={class:"model-service-sandbox__section"},l5e=ms(()=>l("h2",null,"模型卡片区",-1)),i5e={class:"model-service-sandbox__layout"},c5e={class:"model-service-sandbox__main"},u5e=ms(()=>l("h2",null,"模型详情区",-1)),d5e={class:"model-service-sandbox__aside"},f5e=ms(()=>l("h2",null,"计费与操作区",-1)),p5e={class:"model-service-sandbox__section"},v5e=ms(()=>l("h2",null,"极简聊天 Demo",-1)),h5e={class:"model-service-sandbox__chat page-card"},m5e={class:"model-service-sandbox__field"},g5e=ms(()=>l("span",null,"Prompt Cache Key",-1)),_5e={class:"model-service-sandbox__field"},y5e=ms(()=>l("span",null,"提问内容",-1)),b5e={class:"model-service-sandbox__chat-actions"},w5e=["disabled"],C5e=["disabled"],k5e={class:"model-service-sandbox__chat-output"},S5e=ms(()=>l("h3",null,"流式输出",-1)),E5e={key:0,class:"model-service-sandbox__done"},$5e=ms(()=>l("h3",null,"最终 usage",-1)),x5e=ms(()=>l("dt",null,"输入 Tokens",-1)),T5e=ms(()=>l("dt",null,"缓存命中 Tokens",-1)),I5e=ms(()=>l("dt",null,"未命中 Tokens",-1)),A5e=ms(()=>l("dt",null,"输出 Tokens",-1)),N5e=ms(()=>l("dt",null,"分时规则",-1)),R5e=ms(()=>l("dt",null,"积分消耗",-1)),P5e=ms(()=>l("dt",null,"本次免费积分",-1)),M5e=ms(()=>l("dt",null,"本次真实积分",-1)),B5e={key:1,class:"model-service-sandbox__error"},L5e={class:"model-service-sandbox__section"},O5e=ms(()=>l("h2",null,"体验记录区",-1)),D5e=le({__name:"ModelServiceSandboxView",setup(e){const t={modelId:"deepseek-v32-pro",modelName:"deepseek-v3.2",typeCode:"text_generation",typeName:"对话模型",summary:"面向企业问答、客服、代码辅助与通用文本生成的旗舰级模型。",detailHtml:"

    该测试页仅用于模型服务模块验证,不接正式页面壳层。通过这里可以检查冻结详情字段、文档预览和流式体验链路。

    ",apiDocHtml:"

    POST /mall-api/models/deepseek-v32-pro/experience/stream

    ",contextWindow:64e3,supportStream:!0,supportExperience:!0,supportApi:!0,imageTransportMode:"base64",tags:["文本生成","多轮对话"],billing:{currency:"CNY",priceUnit:"PER_1M_TOKEN",pointRule:"按积分计费",priceSummary:"输入、输出、缓存命中按当前模型计费配置计费"}},n=x(()=>[{...t,priceSummary:t.billing.priceSummary}]),a=x(()=>t),s={freeCreditBalance:"0.000050"},o=T([{experienceNo:"EXP-SANDBOX-0001",callNo:"CALL-SANDBOX-0001",conversationNo:"CN-SANDBOX-0001",modelId:t.modelId,modelName:t.modelName,prompt:"请用一句话介绍 AiStore。",billingType:"basic",priceUnit:"PER_1M_TOKEN",inputTokens:16,outputTokens:62,cachedTokens:8,chargePoints:"0.000078",status:"success",errorCode:null,errorMessage:null,createTime:"2026-04-15 17:30:00"}]),r=T("请介绍一下天翼云模型服务的计费规则。"),i=T("sandbox-deepseek-v32-pro"),c=T(""),u=T(""),d=T(!1),p=T(null),v=x(()=>{var A;if(!((A=p.value)!=null&&A.creditCost))return{freeCreditUsed:"--",paidCreditUsed:"--"};const S=Number(p.value.creditCost),$=Number(s.freeCreditBalance),E=Math.min($,S),R=Math.max(S-E,0);return{freeCreditUsed:E.toFixed(6),paidCreditUsed:R.toFixed(6)}});let h=null;const m=x(()=>r.value.trim().length>0&&!d.value),g=S=>{const $={experienceNo:`EXP-SANDBOX-${Date.now()}`,callNo:`CALL-SANDBOX-${Date.now()}`,conversationNo:`CN-SANDBOX-${Date.now()}`,modelId:t.modelId,modelName:t.modelName,prompt:r.value,billingType:"basic",priceUnit:"PER_1M_TOKEN",inputTokens:S.inputTokens,outputTokens:S.outputTokens,cachedTokens:S.cachedInputTokens,chargePoints:S.creditCost||"0.000000",status:"success",errorCode:null,errorMessage:null,createTime:new Date().toLocaleString("zh-CN",{hour12:!1})};o.value=[$,...o.value].slice(0,5)},y=S=>{const $=S.split(/\r?\n/).map(A=>A.trim()).filter(Boolean);if(!$.length)return null;const E=$.filter(A=>A.startsWith("data:")).map(A=>A.slice(5).trim());if(!E.length)return null;const R=E.join(` `);return R==="[DONE]"?null:JSON.parse(R)},b=async S=>{if(!S.ok)throw new Error(`体验流请求失败:${S.status}`);if(!S.body)throw new Error("体验流没有返回可读数据流");const $=S.body.getReader(),E=new TextDecoder;let R="";for(;;){const{value:A,done:N}=await $.read();if(N)break;R+=E.decode(A,{stream:!0});const P=R.split(` `);R=P.pop()||"";for(const B of P){const M=y(B);if(M){if(M.type==="chunk"){c.value+=M.content||"";continue}if(M.type==="done"){p.value=M,g(M);continue}M.type==="error"&&(u.value=M.message||M.code||"体验流返回异常")}}}},C=async()=>{if(m.value){h==null||h.abort(),h=new AbortController,d.value=!0,u.value="",c.value="",p.value=null;try{const S=await rA(t.modelId,{prompt:r.value},h.signal);await b(S)}catch(S){S instanceof DOMException&&S.name==="AbortError"?u.value="体验流已取消":u.value=S instanceof Error?S.message:"体验流调用失败"}finally{d.value=!1,h=null}}},k=()=>{h==null||h.abort()};return(S,$)=>(_(),w("section",s5e,[o5e,l("section",r5e,[l5e,z(f(yA),{items:n.value},null,8,["items"])]),l("section",i5e,[l("div",c5e,[u5e,z(f(bA),{model:t})]),l("div",d5e,[f5e,z(f(wA),{model:a.value,"can-experience":!0},null,8,["model"])])]),l("section",p5e,[v5e,l("article",h5e,[l("label",m5e,[g5e,et(l("input",{"onUpdate:modelValue":$[0]||($[0]=E=>i.value=E),type:"text",placeholder:"请输入缓存键"},null,512),[[hn,i.value]])]),l("label",_5e,[y5e,et(l("textarea",{"onUpdate:modelValue":$[1]||($[1]=E=>r.value=E),rows:"4",placeholder:"请输入提问内容"},null,512),[[hn,r.value]])]),l("div",b5e,[l("button",{type:"button",disabled:!m.value,onClick:C},"开始体验",8,w5e),l("button",{type:"button",class:"ghost",disabled:!d.value,onClick:k},"取消流式",8,C5e)]),l("div",k5e,[S5e,l("p",null,I(c.value||"等待返回内容…"),1)]),p.value?(_(),w("div",E5e,[$5e,l("dl",null,[l("div",null,[x5e,l("dd",null,I(p.value.inputTokens),1)]),l("div",null,[T5e,l("dd",null,I(p.value.cachedInputTokens),1)]),l("div",null,[I5e,l("dd",null,I(p.value.uncachedInputTokens),1)]),l("div",null,[A5e,l("dd",null,I(p.value.outputTokens),1)]),l("div",null,[N5e,l("dd",null,I(p.value.billingPeriod||"--"),1)]),l("div",null,[R5e,l("dd",null,I(p.value.creditCost||"--"),1)]),l("div",null,[P5e,l("dd",null,I(v.value.freeCreditUsed),1)]),l("div",null,[M5e,l("dd",null,I(v.value.paidCreditUsed),1)])])])):K("",!0),u.value?(_(),w("p",B5e,I(u.value),1)):K("",!0)])]),l("section",L5e,[O5e,z(f(gA),{records:o.value},null,8,["records"])])]))}}),V5e=Ct(D5e,[["__scopeId","data-v-11228d90"]]),kA=e=>(xt("data-v-3e6f7c3c"),e=e(),Tt(),e),F5e={class:"particle-network","aria-hidden":"true"},U5e=kA(()=>l("div",{class:"particle-network__red-depth"},null,-1)),z5e=kA(()=>l("div",{class:"particle-network__mask"},null,-1)),H5e=le({__name:"ParticleNetwork",setup(e){const t=T();let n=0,a=0,s=null,o,r;const i=p=>{try{return p.getContext("2d")}catch{return null}},c=Array.from({length:28},()=>({x:Math.random(),y:Math.random(),vx:(Math.random()-.5)*12e-5,vy:(Math.random()-.5)*12e-5,r:Math.random()*2+1.2,pulse:Math.random()*Math.PI*2})),u=()=>{const p=t.value;if(!p)return;const v=window.devicePixelRatio||1;p.width=p.offsetWidth*v,p.height=p.offsetHeight*v,s=i(p),s&&(s.setTransform(1,0,0,1,0,0),s.scale(v,v))},d=()=>{const p=t.value,v=s;if(!p||!v)return;const h=p.offsetWidth,m=p.offsetHeight;v.clearRect(0,0,h,m),c.forEach(g=>{g.x+=g.vx,g.y+=g.vy,(g.x<0||g.x>1)&&(g.vx*=-1),(g.y<0||g.y>1)&&(g.vy*=-1)});for(let g=0;g{const y=Math.sin(a*.025+g.pulse)*.5+.5,b=g.x*h,C=g.y*m,k=v.createRadialGradient(b,C,0,b,C,g.r*6);k.addColorStop(0,`rgba(232,21,58,${.5+y*.4})`),k.addColorStop(1,"rgba(232,21,58,0)"),v.beginPath(),v.arc(b,C,g.r*6,0,Math.PI*2),v.fillStyle=k,v.fill(),v.beginPath(),v.arc(b,C,g.r,0,Math.PI*2),v.fillStyle=`rgba(255,255,255,${.4+y*.4})`,v.fill()}),a+=1,n=requestAnimationFrame(d)};return ft(()=>{const p=t.value;p&&(u(),r=u,window.addEventListener("resize",r),typeof ResizeObserver<"u"&&(o=new ResizeObserver(u),o.observe(p)),n=requestAnimationFrame(d))}),al(()=>{cancelAnimationFrame(n),r&&window.removeEventListener("resize",r),o==null||o.disconnect()}),(p,v)=>(_(),w("div",F5e,[l("canvas",{ref_key:"canvasRef",ref:t,class:"particle-network__canvas"},null,512),U5e,z5e]))}}),K5e=Ct(H5e,[["__scopeId","data-v-3e6f7c3c"]]),q5e=e=>(xt("data-v-01c16055"),e=e(),Tt(),e),j5e={class:"particle-network-sandbox"},W5e=q5e(()=>l("section",{class:"particle-network-sandbox__content"},[l("p",{class:"particle-network-sandbox__eyebrow"},"CANVAS PARTICLE NETWORK"),l("h1",null,"粒子网络测试页"),l("p",null,"白色微粒、暗红连线与双层渐变叠加效果。")],-1)),G5e=le({__name:"ParticleNetworkSandboxView",setup(e){return(t,n)=>(_(),w("main",j5e,[z(K5e),W5e]))}}),Y5e=Ct(G5e,[["__scopeId","data-v-01c16055"]]),eu=e=>(xt("data-v-54b15864"),e=e(),Tt(),e),X5e={class:"page-card auth-panel"},Q5e=eu(()=>l("div",{class:"auth-panel__intro"},[l("p",{class:"auth-panel__eyebrow"},"用户认证"),l("h2",{class:"auth-panel__title"},"登录 AiStore"),l("p",{class:"auth-panel__description"},"支持验证码登录与密码登录,登录后按 redirect 回跳原页面。")],-1)),J5e={class:"auth-panel__tabs",role:"tablist","aria-label":"登录方式切换"},Z5e={class:"auth-field"},e6e=eu(()=>l("span",{class:"auth-field__label"},"手机号",-1)),t6e={class:"auth-panel__mode-fields"},n6e={class:"auth-field auth-field--code"},a6e={class:"auth-field__group"},s6e=eu(()=>l("span",{class:"auth-field__label"},"验证码",-1)),o6e=["disabled"],r6e={class:"auth-field"},l6e=eu(()=>l("span",{class:"auth-field__label"},"密码",-1)),i6e={class:"auth-field__password-wrapper"},c6e=["type"],u6e=["aria-label"],d6e={viewBox:"0 0 24 24","aria-hidden":"true"},f6e=eu(()=>l("path",{d:"M2.2 12c2.1-3.7 5.7-6 9.8-6s7.7 2.3 9.8 6c-2.1 3.7-5.7 6-9.8 6s-7.7-2.3-9.8-6Z"},null,-1)),p6e=eu(()=>l("circle",{cx:"12",cy:"12",r:"3.2"},null,-1)),v6e={key:0,d:"M4 4l16 16"},h6e={class:"auth-panel__remember"},m6e=["disabled"],g6e=eu(()=>l("span",null,"7 天内免登录",-1)),_6e={class:"auth-agreement"},y6e={class:"auth-agreement__text"},b6e={key:0,class:"auth-panel__error",role:"alert","aria-live":"polite"},w6e=["disabled"],C6e=le({__name:"AuthLoginPanel",props:{mode:{default:"sms"},redirect:{default:""},submitting:{type:Boolean,default:!1},smsSending:{type:Boolean,default:!1},smsCountdown:{default:0},errorMessage:{default:""}},emits:["update:mode","switch-mode","submit-sms","submit-password","send-code","forgot-password"],setup(e,{expose:t,emit:n}){const a=e,s=n,o=At({phone:"",verifyCode:"",password:"",rememberMe:!1,agreeProtocol:!1}),r=T(a.mode),i=T(""),c=T(!1);Te(()=>a.mode,C=>{r.value=C});const u=x(()=>i.value||a.errorMessage),d=x(()=>a.smsCountdown>0?`${a.smsCountdown}s 后重试`:a.smsSending?"发送中...":"获取验证码"),p=C=>/^1\d{10}$/.test(C),v=C=>/^\d{6}$/.test(C),h=C=>/^(?=.*[A-Za-z])(?=.*\d)[!-~]{8,20}$/.test(C),m=C=>{r.value!==C&&(r.value=C,i.value="",s("update:mode",C),s("switch-mode",C))},g=()=>{if(!p(o.phone)){i.value="请输入正确的手机号";return}i.value="",s("send-code",{phone:o.phone,scene:"login"})},y=()=>{if(!a.submitting){if(!p(o.phone)){i.value="请输入正确的手机号";return}if(!o.agreeProtocol){i.value="请先勾选用户使用协议和隐私政策";return}if(r.value==="sms"){if(!v(o.verifyCode)){i.value="请输入6位验证码";return}i.value="",s("submit-sms",{phone:o.phone,verifyCode:o.verifyCode,deviceId:void 0,deviceName:void 0,rememberMe:o.rememberMe,redirect:a.redirect||void 0,agreeProtocol:o.agreeProtocol});return}if(!h(o.password)){i.value="请输入8-20位且必须包含字母和数字的密码,可包含常见特殊字符";return}i.value="",s("submit-password",{phone:o.phone,password:o.password,deviceId:void 0,deviceName:void 0,rememberMe:o.rememberMe,redirect:a.redirect||void 0,agreeProtocol:o.agreeProtocol})}};return t({getPasswordLoginSnapshot:()=>({mode:r.value,phone:o.phone,password:o.password})}),(C,k)=>(_(),w("section",X5e,[be(C.$slots,"header",{},()=>[Q5e],!0),l("div",J5e,[l("button",{type:"button","data-testid":"login-mode-sms",class:V(["auth-panel__tab",{"is-active":r.value==="sms"}]),onClick:k[0]||(k[0]=S=>m("sms"))}," 验证码登录 ",2),l("button",{type:"button","data-testid":"login-mode-password",class:V(["auth-panel__tab",{"is-active":r.value==="password"}]),onClick:k[1]||(k[1]=S=>m("password"))}," 密码登录 ",2)]),l("form",{"data-testid":"submit-login",class:"auth-panel__form",autocomplete:"on",onSubmit:qe(y,["prevent"])},[l("label",Z5e,[e6e,et(l("input",{id:"mall-login-phone","data-testid":"login-phone","onUpdate:modelValue":k[2]||(k[2]=S=>o.phone=S),class:"auth-field__input",type:"tel",name:"username",inputmode:"numeric",autocomplete:"username",maxlength:"11",placeholder:"请输入11位手机号"},null,512),[[hn,o.phone,void 0,{trim:!0}]])]),l("div",t6e,[l("div",{class:V(["auth-panel__mode",{"is-inactive":r.value!=="sms"}])},[l("div",n6e,[l("label",a6e,[s6e,et(l("input",{id:"mall-login-code","data-testid":"login-code","onUpdate:modelValue":k[3]||(k[3]=S=>o.verifyCode=S),class:"auth-field__input",type:"text",name:"verifyCode",inputmode:"numeric",autocomplete:"one-time-code",maxlength:"6",placeholder:"请输入验证码"},null,512),[[hn,o.verifyCode,void 0,{trim:!0}]])]),l("button",{type:"button","data-testid":"send-login-code",class:"auth-secondary-button",disabled:C.smsSending||C.smsCountdown>0,onClick:g},I(d.value),9,o6e)]),be(C.$slots,"human-verification",{phone:o.phone},void 0,!0)],2),l("div",{class:V(["auth-panel__mode",{"is-inactive":r.value!=="password"}])},[l("label",r6e,[l6e,l("div",i6e,[et(l("input",{id:"mall-login-password","data-testid":"login-password","onUpdate:modelValue":k[4]||(k[4]=S=>o.password=S),class:"auth-field__input auth-field__input--with-toggle",type:c.value?"text":"password",name:"password",autocomplete:"current-password",maxlength:"20",placeholder:"请输入密码"},null,8,c6e),[[$i,o.password,void 0,{trim:!0}]]),l("button",{type:"button","data-testid":"toggle-login-password-visibility",class:"auth-field__toggle","aria-label":c.value?"隐藏密码":"显示密码",onClick:k[5]||(k[5]=S=>c.value=!c.value)},[(_(),w("svg",d6e,[f6e,p6e,c.value?(_(),w("path",v6e)):K("",!0)]))],8,u6e)])]),l("button",{type:"button","data-testid":"forgot-password",class:"auth-link",onClick:k[6]||(k[6]=S=>C.$emit("forgot-password"))}," 忘记密码 ")],2)]),l("label",h6e,[et(l("input",{"onUpdate:modelValue":k[7]||(k[7]=S=>o.rememberMe=S),"data-testid":"remember-login",type:"checkbox",disabled:C.submitting},null,8,m6e),[[Mo,o.rememberMe]]),g6e]),l("label",_6e,[et(l("input",{"data-testid":"login-agreement","onUpdate:modelValue":k[8]||(k[8]=S=>o.agreeProtocol=S),type:"checkbox"},null,512),[[Mo,o.agreeProtocol]]),l("span",y6e,[be(C.$slots,"protocol",{},()=>[Ce("我已阅读并同意《智云新疆AI STORE用户使用协议》、《智云新疆AI STORE隐私政策》")],!0)])]),u.value?(_(),w("p",b6e,I(u.value),1)):K("",!0),l("button",{class:"auth-primary-button",type:"submit",disabled:C.submitting},I(C.submitting?"提交中...":"立即登录"),9,w6e)],32),be(C.$slots,"footer",{},void 0,!0)]))}}),k6e=Ct(C6e,[["__scopeId","data-v-54b15864"]]),SA="密码需为 8-20 位,必须包含大写字母、小写字母、数字和特殊字符(! # $ % & ' ( ) * + , - . / : ; < = > ? @ [ ] ^ _ ` { | } ~);不得含键盘横向连续 3 个及以上相邻字符、逻辑连续字符、连续 3 个及以上重复字符或账号手机号任意连续 3 位数字,不包含常见弱口令",EA=/^[A-Za-z0-9!#$%&'()*+,\-./:;<=>?@\[\]^_`{|}~]{8,20}$/,$A=/[A-Z]/,xA=/[a-z]/,TA=/\d/,IA=/[!#$%&'()*+,\-./:;<=>?@\[\]^_`{|}~]/,S6e=/[!#$%&'()*+,\-./:;<=>?@\[\]^_`{|}~]/g,E6e=["password","qwerty","admin","welcome","letmein","iloveyou","abc123","123456","111111"],zg=e=>/^[a-z]$/i.test(e),Hg=e=>/^\d$/.test(e),AA=e=>{const t=e.toLowerCase();for(let n=0;n<=t.length-3;n+=1){const a=t[n],s=t[n+1],o=t[n+2];if(!(zg(a)&&zg(s)&&zg(o)||Hg(a)&&Hg(s)&&Hg(o)))continue;const i=a.charCodeAt(0),c=s.charCodeAt(0),u=o.charCodeAt(0);if(c-i===1&&u-c===1||c-i===-1&&u-c===-1)return!0}return!1},NA=e=>{for(let t=0;t<=e.length-3;t+=1)if(e[t]===e[t+1]&&e[t]===e[t+2])return!0;return!1},RA=e=>{const t=["`1234567890-=","qwertyuiop[]\\","asdfghjkl;'","zxcvbnm,./"],n='~!@#$%^&*()_+{}|:"<>?',a="`1234567890-=[]\\;',./",s=r=>{const i=n.includes(r)?a[n.indexOf(r)]:r.toLowerCase(),c=t.findIndex(u=>u.includes(i));return c<0?void 0:[c,t[c].indexOf(i)]},o=(r,i)=>r[0]===i[0]&&Math.abs(r[1]-i[1])===1;for(let r=0;r<=e.length-3;r+=1){const i=s(e[r]),c=s(e[r+1]),u=s(e[r+2]);if(i&&c&&u&&o(i,c)&&o(c,u))return!0}return!1},PA=(e,t)=>!!(t&&Array.from({length:t.length-2},(n,a)=>t.slice(a,a+3)).some(n=>e.toLowerCase().includes(n.toLowerCase()))),MA=e=>{const t=e.replace(S6e,"").toLowerCase();return E6e.some(n=>t.includes(n))},ew=(e,t)=>[{key:"composition",label:"8-20 位,含大写字母、小写字母、数字和特殊字符",passed:EA.test(e)&&$A.test(e)&&xA.test(e)&&TA.test(e)&&IA.test(e)},{key:"keyboard",label:"不含键盘横向连续 3 个及以上相邻字符",passed:!RA(e)},{key:"sequence",label:"不含逻辑连续的字母或数字",passed:!AA(e)},{key:"repeat",label:"不含连续 3 个及以上相同字符",passed:!NA(e)},t?{key:"account",label:"不含账号手机号任意连续 3 位数字",passed:!PA(e,t)}:{key:"account",label:"不含账号手机号任意连续 3 位数字(提交时由系统校验)",passed:!0,indeterminate:!0},{key:"weak",label:"不包含常见弱口令",passed:!MA(e)}],Ai=(e,t)=>!EA.test(e)||!$A.test(e)||!xA.test(e)||!TA.test(e)||!IA.test(e)||AA(e)||RA(e)||NA(e)||MA(e)?!1:!PA(e,t),qv=new Map,$6e=e=>e??"__root__",BA=e=>{const t=$6e(e),n=qv.get(t);if(n)return n;const a=dt.get("/api/v1/regions",{params:e?{parentCode:e}:void 0});return qv.set(t,a),a.catch(()=>{qv.get(t)===a&&qv.delete(t)}),a},x6e=e=>(xt("data-v-5d2b2210"),e=e(),Tt(),e),T6e={key:0,class:"password-rule-popover","aria-live":"polite"},I6e=x6e(()=>l("p",{class:"password-rule-popover__title"},"密码规则",-1)),A6e={class:"password-rule-popover__list"},N6e={"aria-hidden":"true"},R6e=le({__name:"PasswordRulePopover",props:{visible:{type:Boolean},checks:{}},setup(e){return(t,n)=>t.visible?(_(),w("aside",T6e,[I6e,l("ul",A6e,[(_(!0),w(_e,null,Re(t.checks,a=>(_(),w("li",{key:a.key,class:V(a.indeterminate?"is-indeterminate":a.passed?"is-passed":"is-failed")},[l("span",N6e,I(a.indeterminate?"—":a.passed?"✓":"×"),1),Ce(" "+I(a.label),1)],2))),128))])])):K("",!0)}}),tw=Ct(R6e,[["__scopeId","data-v-5d2b2210"]]),Vs=e=>(xt("data-v-63b0cadd"),e=e(),Tt(),e),P6e={class:"page-card auth-panel"},M6e=Vs(()=>l("div",{class:"auth-panel__intro"},[l("h2",{class:"auth-panel__title"},"注册 AiStore 账号")],-1)),B6e={class:"auth-field"},L6e=Vs(()=>l("span",{class:"auth-field__label"},"注册类型",-1)),O6e={class:"auth-field auth-field--code"},D6e={class:"auth-field__group"},V6e=Vs(()=>l("span",{class:"auth-field__label"},"手机号",-1)),F6e=["disabled"],U6e={class:"auth-field"},z6e=Vs(()=>l("span",{class:"auth-field__label"},"验证码",-1)),H6e={class:"auth-field"},K6e=Vs(()=>l("span",{class:"auth-field__label"},"密码",-1)),q6e={class:"auth-field__password-wrapper"},j6e=["type"],W6e=["aria-label"],G6e={viewBox:"0 0 24 24","aria-hidden":"true"},Y6e=Vs(()=>l("path",{d:"M2.2 12c2.1-3.7 5.7-6 9.8-6s7.7 2.3 9.8 6c-2.1 3.7-5.7 6-9.8 6s-7.7-2.3-9.8-6Z"},null,-1)),X6e=Vs(()=>l("circle",{cx:"12",cy:"12",r:"3.2"},null,-1)),Q6e={key:0,d:"M4 4l16 16"},J6e={class:"auth-field"},Z6e=Vs(()=>l("span",{class:"auth-field__label"},"确认密码",-1)),eAe={class:"auth-field__password-wrapper"},tAe=["type"],nAe=["aria-label"],aAe={viewBox:"0 0 24 24","aria-hidden":"true"},sAe=Vs(()=>l("path",{d:"M2.2 12c2.1-3.7 5.7-6 9.8-6s7.7 2.3 9.8 6c-2.1 3.7-5.7 6-9.8 6s-7.7-2.3-9.8-6Z"},null,-1)),oAe=Vs(()=>l("circle",{cx:"12",cy:"12",r:"3.2"},null,-1)),rAe={key:0,d:"M4 4l16 16"},lAe={key:0,class:"auth-grid auth-grid--double"},iAe={class:"auth-field"},cAe=Vs(()=>l("span",{class:"auth-field__label"},"姓名",-1)),uAe={class:"auth-field"},dAe=Vs(()=>l("span",{class:"auth-field__label"},"邮箱",-1)),fAe={key:1,class:"auth-grid auth-grid--double"},pAe={class:"auth-field"},vAe=Vs(()=>l("span",{class:"auth-field__label"},"企业名称",-1)),hAe={class:"auth-field"},mAe=Vs(()=>l("span",{class:"auth-field__label"},"联系人",-1)),gAe={class:"auth-grid auth-grid--double auth-grid--profile"},_Ae={class:"auth-field auth-field--region"},yAe=Vs(()=>l("span",{class:"auth-field__label"},"地区(选填)",-1)),bAe={key:0,class:"auth-field__hint auth-field__hint--error"},wAe={class:"auth-field"},CAe=Vs(()=>l("span",{class:"auth-field__label"},"所属行业(选填)",-1)),kAe={key:0,class:"auth-field__hint auth-field__hint--error"},SAe={class:"auth-agreement"},EAe={class:"auth-agreement__text"},$Ae={key:2,class:"auth-panel__error"},xAe=["disabled"],TAe=le({__name:"AuthRegisterForm",props:{submitting:{type:Boolean,default:!1},smsSending:{type:Boolean,default:!1},smsCountdown:{default:0},errorMessage:{default:""}},emits:["submit","send-code","go-login"],setup(e,{emit:t}){const n=e,a=t,s=At({userType:"individual",phone:"",verifyCode:"",password:"",confirmPassword:"",name:"",email:"",regionCode:null,industryCode:null,enterpriseName:"",enterpriseContact:"",agreeProtocol:!1}),o=T([]),r=T([]),i=T("");(async()=>{try{r.value=await X6()}catch(M){i.value=M instanceof Error?M.message:"行业加载失败,请稍后重试"}})();const u=T(""),d={value:"code",label:"name",emitPath:!1,leaf:M=>M.level===3,lazy:!0},p=async M=>(await BA(M)).map(F=>({...F})),v=async(M,j,F)=>{u.value="";try{j(await p(M.level===0?void 0:M.value))}catch(q){u.value=q instanceof Error?q.message:"地区加载失败,请稍后重试",F==null||F()}},h=T(""),m=T(!1),g=T(!1),y=x(()=>h.value||n.errorMessage),b=x(()=>n.smsCountdown>0?`${n.smsCountdown}s 后重试`:n.smsSending?"发送中...":"获取验证码"),C=M=>/^1\d{10}$/.test(M),k=M=>/^\d{6}$/.test(M),S=M=>!M||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(M),$=x(()=>!!s.phone&&!!s.verifyCode&&!!s.password&&!!s.confirmPassword&&(s.userType!=="enterprise"||!!s.enterpriseName&&!!s.enterpriseContact)&&s.agreeProtocol),E=x(()=>s.password?Ai(s.password,s.phone)?{valid:!0,text:"密码强度:强,符合安全要求。"}:{valid:!1,text:"密码暂不符合规则,请查看侧边规则提示。"}:null),R=x(()=>ew(s.password,s.phone)),A=x(()=>!!s.password&&!Ai(s.password,s.phone)),N=x(()=>s.confirmPassword?s.password===s.confirmPassword?{valid:!0,text:"两次密码输入一致。"}:{valid:!1,text:"两次密码输入不一致。"}:null),P=()=>{if(!C(s.phone)){h.value="请输入正确的手机号";return}h.value="",a("send-code",{phone:s.phone,scene:"register"})},B=()=>{if(!C(s.phone)){h.value="请输入正确的手机号";return}if(!k(s.verifyCode)){h.value="请输入6位验证码";return}if(!Ai(s.password,s.phone)){h.value="密码不符合规则,请查看侧边规则提示";return}if(s.password!==s.confirmPassword){h.value="两次密码输入不一致";return}if(!S(s.email)){h.value="请输入正确的邮箱地址";return}if(s.userType==="enterprise"&&(!s.enterpriseName.trim()||!s.enterpriseContact.trim())){h.value="请填写企业名称和联系人";return}if(!s.agreeProtocol){h.value="请先勾选用户协议";return}h.value="",a("submit",{userType:s.userType,phone:s.phone,verifyCode:s.verifyCode,password:s.password,confirmPassword:s.confirmPassword,agreeProtocol:s.agreeProtocol,name:s.name||void 0,email:s.email||void 0,...s.regionCode?{regionCode:s.regionCode}:{},...s.industryCode?{industryCode:s.industryCode}:{},...s.userType==="enterprise"?{enterpriseName:s.enterpriseName.trim(),enterpriseContact:s.enterpriseContact.trim()}:{}})};return(M,j)=>{const F=Ne("el-radio"),q=Ne("el-radio-group"),L=Ne("el-cascader"),U=Ne("el-option"),O=Ne("el-select");return _(),w("section",P6e,[M6e,l("form",{"data-testid":"submit-register",class:"auth-panel__form",autocomplete:"on",onSubmit:qe(B,["prevent"])},[l("div",B6e,[L6e,z(q,{modelValue:s.userType,"onUpdate:modelValue":j[0]||(j[0]=G=>s.userType=G)},{default:W(()=>[z(F,{value:"individual"},{default:W(()=>[Ce("个人")]),_:1}),z(F,{value:"enterprise"},{default:W(()=>[Ce("企业")]),_:1})]),_:1},8,["modelValue"])]),l("div",O6e,[l("label",D6e,[V6e,et(l("input",{"data-testid":"register-phone","onUpdate:modelValue":j[1]||(j[1]=G=>s.phone=G),class:"auth-field__input",type:"tel",name:"phone",autocomplete:"tel",maxlength:"11",placeholder:"请输入11位手机号"},null,512),[[hn,s.phone,void 0,{trim:!0}]])]),l("button",{type:"button","data-testid":"send-register-code",class:"auth-secondary-button",disabled:M.smsSending||M.smsCountdown>0,onClick:P},I(b.value),9,F6e)]),be(M.$slots,"human-verification",{phone:s.phone},void 0,!0),l("label",U6e,[z6e,et(l("input",{"data-testid":"register-code","onUpdate:modelValue":j[2]||(j[2]=G=>s.verifyCode=G),class:"auth-field__input",type:"text",name:"verifyCode",autocomplete:"one-time-code",inputmode:"numeric",maxlength:"6",placeholder:"请输入验证码"},null,512),[[hn,s.verifyCode,void 0,{trim:!0}]])]),l("label",H6e,[K6e,l("div",q6e,[et(l("input",{"data-testid":"register-password","onUpdate:modelValue":j[3]||(j[3]=G=>s.password=G),class:"auth-field__input auth-field__input--with-toggle",type:m.value?"text":"password",name:"password",autocomplete:"new-password",maxlength:"20",placeholder:"8-20位,含大小写字母、数字和符号"},null,8,j6e),[[$i,s.password,void 0,{trim:!0}]]),l("button",{type:"button","data-testid":"toggle-register-password-visibility",class:"auth-field__toggle","aria-label":m.value?"隐藏密码":"显示密码",onClick:j[4]||(j[4]=G=>m.value=!m.value)},[(_(),w("svg",G6e,[Y6e,X6e,m.value?(_(),w("path",Q6e)):K("",!0)]))],8,W6e),z(tw,{visible:A.value,checks:R.value},null,8,["visible","checks"])]),E.value?(_(),w("p",{key:0,id:"register-password-feedback",class:V(["auth-field__feedback",E.value.valid?"is-success":"is-error"]),"aria-live":"polite"},I(E.value.text),3)):K("",!0)]),l("label",J6e,[Z6e,l("div",eAe,[et(l("input",{"data-testid":"register-confirm-password","onUpdate:modelValue":j[5]||(j[5]=G=>s.confirmPassword=G),class:"auth-field__input auth-field__input--with-toggle",type:g.value?"text":"password",name:"confirmPassword",autocomplete:"new-password",maxlength:"20",placeholder:"请再次输入密码"},null,8,tAe),[[$i,s.confirmPassword,void 0,{trim:!0}]]),l("button",{type:"button","data-testid":"toggle-register-confirm-password-visibility",class:"auth-field__toggle","aria-label":g.value?"隐藏确认密码":"显示确认密码",onClick:j[6]||(j[6]=G=>g.value=!g.value)},[(_(),w("svg",aAe,[sAe,oAe,g.value?(_(),w("path",rAe)):K("",!0)]))],8,nAe)]),N.value?(_(),w("p",{key:0,class:V(["auth-field__feedback",N.value.valid?"is-success":"is-error"]),"aria-live":"polite"},I(N.value.text),3)):K("",!0)]),s.userType==="individual"?(_(),w("div",lAe,[l("label",iAe,[cAe,et(l("input",{"data-testid":"register-name","onUpdate:modelValue":j[7]||(j[7]=G=>s.name=G),class:"auth-field__input",type:"text",maxlength:"20",placeholder:"选填"},null,512),[[hn,s.name,void 0,{trim:!0}]])]),l("label",uAe,[dAe,et(l("input",{"data-testid":"register-email","onUpdate:modelValue":j[8]||(j[8]=G=>s.email=G),class:"auth-field__input",type:"email",maxlength:"100",placeholder:"选填"},null,512),[[hn,s.email,void 0,{trim:!0}]])])])):K("",!0),s.userType==="enterprise"?(_(),w("div",fAe,[l("label",pAe,[vAe,et(l("input",{"onUpdate:modelValue":j[9]||(j[9]=G=>s.enterpriseName=G),class:"auth-field__input",type:"text",maxlength:"100",placeholder:"请输入企业名称"},null,512),[[hn,s.enterpriseName,void 0,{trim:!0}]])]),l("label",hAe,[mAe,et(l("input",{"onUpdate:modelValue":j[10]||(j[10]=G=>s.enterpriseContact=G),class:"auth-field__input",type:"text",maxlength:"50",placeholder:"请输入联系人姓名"},null,512),[[hn,s.enterpriseContact,void 0,{trim:!0}]])])])):K("",!0),l("div",gAe,[l("div",_Ae,[yAe,z(L,{modelValue:s.regionCode,"onUpdate:modelValue":j[11]||(j[11]=G=>s.regionCode=G),"data-testid":"register-region",options:o.value,props:{...d,lazyLoad:v},clearable:"",placeholder:"请选择省 / 市 / 区县"},null,8,["modelValue","options","props"]),u.value?(_(),w("small",bAe,I(u.value)+",请重新选择或稍后重试 ",1)):K("",!0)]),l("div",wAe,[CAe,z(O,{modelValue:s.industryCode,"onUpdate:modelValue":j[12]||(j[12]=G=>s.industryCode=G),"data-testid":"register-industry",clearable:"",filterable:"",placeholder:"请选择所属行业"},{default:W(()=>[(_(!0),w(_e,null,Re(r.value,G=>(_(),ue(U,{key:G.itemCode,label:G.itemName,value:G.itemCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i.value?(_(),w("small",kAe,I(i.value),1)):K("",!0)])]),l("label",SAe,[et(l("input",{"data-testid":"register-agreement","onUpdate:modelValue":j[13]||(j[13]=G=>s.agreeProtocol=G),type:"checkbox"},null,512),[[Mo,s.agreeProtocol]]),l("span",EAe,[Ce("我已阅读并同意"),be(M.$slots,"protocol",{},()=>[Ce("《用户服务协议》与《隐私政策》")],!0)])]),y.value?(_(),w("p",$Ae,I(y.value),1)):K("",!0),l("button",{"data-testid":"register-submit-button",class:"auth-primary-button",type:"submit",disabled:M.submitting||!$.value},I(M.submitting?"提交中...":"立即注册"),9,xAe)],32),l("button",{type:"button","data-testid":"go-login",class:"auth-link",onClick:j[14]||(j[14]=G=>M.$emit("go-login"))}," 已有账号?立即登录 ")])}}}),IAe=Ct(TAe,[["__scopeId","data-v-63b0cadd"]]),A$="/vendor/tianai-captcha",N$="tianai-captcha-official-loader",AAe=le({__name:"HumanVerificationWidget",props:{interaction:{default:"programmatic"},phoneRequired:{type:Boolean,default:!0},challengeUrl:{},challengeUrlFactory:{},phone:{},action:{},scene:{}},emits:["verified","invalidated","closed"],setup(e,{expose:t,emit:n}){var M;const a=`${A$}/load.min.js`,s=`${A$}/tac`;let o;const r=()=>{if(window.initTAC)return Promise.resolve();if(o)return o;let j=!1;const F=new Promise((q,L)=>{const U=document.getElementById(N$),O=U??document.createElement("script"),G=()=>{j=!0,o=void 0,O.remove(),L(new Error("Tianai 官方前端加载失败"))},ae=()=>window.initTAC?q():G(),Z=()=>G();O.addEventListener("load",ae,{once:!0}),O.addEventListener("error",Z,{once:!0}),U||(O.id=N$,O.src=a,O.async=!0,document.head.appendChild(O))});return j||(o=F),F},i=e,c=n,u=`tianai-captcha-host-${((M=qt())==null?void 0:M.uid)??crypto.randomUUID()}`,d=T("idle"),p=T(""),v=T("");let h=0,m,g;const y=x(()=>!i.phoneRequired||/^1\d{10}$/.test(i.phone)),b=x(()=>i.interaction==="visible"),C=x(()=>d.value==="unverified"),k=()=>{p.value="",g==null||g.reject(new Error("人机验证已失效,请重新验证")),g=void 0,c("invalidated")},S=()=>{m==null||m.destroyWindow(),m=void 0},$=j=>{i.challengeUrlFactory?A():(d.value="unverified",j.reloadCaptcha())},E=()=>i.challengeUrl?i.challengeUrl:`/api/v1/auth/human-verification/challenge?${new URLSearchParams({action:i.action,phone:i.phone,scene:i.scene}).toString()}`,R=(j,F,q,L)=>{var O;const U=(O=j.data)==null?void 0:O.token;if(!U||q!==h||L!==i.phone||v.value!==L){F.destroyWindow(),k(),d.value="error",c("closed");return}p.value=U,d.value="verified",F.destroyWindow(),m=void 0,g==null||g.resolve(U),g=void 0,c("verified",U,L)},A=async()=>{const j=i.phone,F=++h;if(S(),k(),v.value="",!y.value){d.value="idle";return}d.value="loading";try{const q=i.challengeUrlFactory?await i.challengeUrlFactory():i.challengeUrl;if(await r(),F!==h||j!==i.phone||!window.initTAC)return;const L=await window.initTAC(s,{requestCaptchaDataUrl:q||E(),validCaptchaUrl:"/api/v1/auth/human-verification/verify",bindEl:`#${u}`,validSuccess:(U,O,G)=>R(U,G,F,j),validFail:(U,O,G)=>{F===h&&(k(),b.value?$(G):(G.destroyWindow(),m=void 0,d.value="error",c("closed")))},btnRefreshFun:(U,O)=>{k(),$(O)},btnCloseFun:(U,O)=>{O.destroyWindow(),m=void 0,k(),d.value="error",c("closed")}});if(F!==h||j!==i.phone){L.destroyWindow();return}m=L,v.value=j,d.value="unverified",L.init()}catch{F===h&&(S(),k(),d.value="error",c("closed"))}};return t({verify:async()=>{if(p.value)return p.value;if(!y.value)throw new Error("请输入正确的手机号");if(!m&&(await A(),!m))throw new Error("人机验证加载失败,请重试");return new Promise((j,F)=>{g={resolve:j,reject:F}})},reset:async()=>{await A()},clear:()=>{h+=1,S(),v.value="",k(),d.value="idle"}}),Te(()=>i.phone,()=>{b.value&&A()},{immediate:!0,flush:"post"}),on(()=>{h+=1,S(),k()}),(j,F)=>et((_(),w("div",{"data-testid":"human-verification",class:V(["human-verification-widget",{"human-verification-widget--visible":b.value}])},[l("div",{id:u,"data-testid":"tianai-captcha-host",class:V(["human-verification-widget__host tianai-captcha-host",{"human-verification-widget__host--active":C.value}])},null,2)],2)),[[fn,!b.value||y.value]])}}),fd=Ct(AAe,[["__scopeId","data-v-9bb8e48a"]]),NAe=e=>(xt("data-v-2b834d78"),e=e(),Tt(),e),RAe={class:"auth-hero-shell","data-testid":"auth-hero-shell"},PAe={class:"auth-hero-shell__showcase","data-testid":"auth-hero-showcase","aria-label":"平台说明"},MAe={class:"auth-hero-shell__identity"},BAe=["src","alt"],LAe=NAe(()=>l("div",{class:"auth-hero-shell__mark","aria-hidden":"true"},"AI",-1)),OAe={class:"auth-hero-shell__eyebrow"},DAe={key:2},VAe={class:"auth-hero-shell__eyebrow"},FAe=mn('
    AI智云新疆
    本地算力安全会话可信交易企业接入
    ',1),UAe={class:"auth-hero-shell__panel"},zAe=le({__name:"AuthShowcaseShell",setup(e){const t=Qp();return(n,a)=>(_(),w("section",RAe,[l("aside",PAe,[l("div",MAe,[f(t).siteInfo.siteLogoUrl?(_(),w("img",{key:0,src:f($s)(f(t).siteInfo.siteLogoUrl),alt:f(t).siteInfo.siteName,class:V(["auth-hero-shell__logo",{"auth-hero-shell__logo--includes-name":f(t).siteInfo.siteLogoIncludesName}]),onLoad:a[0]||(a[0]=s=>s.target.classList.add("loaded"))},null,42,BAe)):K("",!0),f(t).siteInfo.siteLogoUrl?K("",!0):(_(),w(_e,{key:1},[LAe,l("div",null,[l("p",OAe,I(f(t).siteInfo.siteName),1),l("h1",null,I(f(t).siteInfo.siteName),1)])],64)),f(t).siteInfo.siteLogoUrl&&!f(t).siteInfo.siteLogoIncludesName?(_(),w("div",DAe,[l("p",VAe,I(f(t).siteInfo.siteName),1),l("h1",null,I(f(t).siteInfo.siteName),1)])):K("",!0)]),FAe]),l("div",UAe,[be(n.$slots,"default",{},void 0,!0)])]))}}),LA=Ct(zAe,[["__scopeId","data-v-2b834d78"]]),Gl=e=>(xt("data-v-91867304"),e=e(),Tt(),e),HAe={class:"page-card forgot-panel"},KAe=Gl(()=>l("div",{class:"forgot-panel__intro"},[l("p",{class:"forgot-panel__eyebrow"},"用户认证"),l("h2",{class:"forgot-panel__title"},"重置密码"),l("p",{class:"forgot-panel__description"},"验证手机号后即可设置新密码。")],-1)),qAe={class:"forgot-panel__steps"},jAe={class:"forgot-field forgot-field--code"},WAe={class:"forgot-field__group"},GAe=Gl(()=>l("span",{class:"forgot-field__label"},"手机号",-1)),YAe=["disabled"],XAe={class:"forgot-field"},QAe=Gl(()=>l("span",{class:"forgot-field__label"},"验证码",-1)),JAe={class:"forgot-field"},ZAe=Gl(()=>l("span",{class:"forgot-field__label"},"新密码",-1)),eNe={class:"forgot-field__password-wrapper"},tNe=["type"],nNe=["aria-label"],aNe={viewBox:"0 0 24 24","aria-hidden":"true"},sNe=Gl(()=>l("path",{d:"M2.2 12c2.1-3.7 5.7-6 9.8-6s7.7 2.3 9.8 6c-2.1 3.7-5.7 6-9.8 6s-7.7-2.3-9.8-6Z"},null,-1)),oNe=Gl(()=>l("circle",{cx:"12",cy:"12",r:"3.2"},null,-1)),rNe={key:0,d:"M4 4l16 16"},lNe={class:"forgot-field"},iNe=Gl(()=>l("span",{class:"forgot-field__label"},"确认新密码",-1)),cNe={class:"forgot-field__password-wrapper"},uNe=["type"],dNe=["aria-label"],fNe={viewBox:"0 0 24 24","aria-hidden":"true"},pNe=Gl(()=>l("path",{d:"M2.2 12c2.1-3.7 5.7-6 9.8-6s7.7 2.3 9.8 6c-2.1 3.7-5.7 6-9.8 6s-7.7-2.3-9.8-6Z"},null,-1)),vNe=Gl(()=>l("circle",{cx:"12",cy:"12",r:"3.2"},null,-1)),hNe={key:0,d:"M4 4l16 16"},mNe={key:2,class:"forgot-panel__error"},gNe=["disabled"],_Ne=le({__name:"ForgotPasswordSteps",props:{step:{default:1},phone:{default:""},submitting:{type:Boolean,default:!1},smsSending:{type:Boolean,default:!1},smsCountdown:{default:0},errorMessage:{default:""}},emits:["verify","reset-password","send-code","go-login"],setup(e,{emit:t}){const n=e,a=t,s=At({phone:n.phone,verifyCode:"",password:"",confirmPassword:""}),o=T(""),r=T(!1),i=T(!1);Te(()=>n.phone,m=>{s.phone=m});const c=x(()=>o.value||n.errorMessage),u=x(()=>n.smsCountdown>0?`${n.smsCountdown}s 后重试`:n.smsSending?"发送中...":"获取验证码"),d=m=>/^1\d{10}$/.test(m),p=m=>/^\d{6}$/.test(m),v=()=>{if(!d(s.phone)){o.value="请输入正确的手机号";return}o.value="",a("send-code",{phone:s.phone,scene:"reset_password"})},h=()=>{if(n.step===1){if(!d(s.phone)){o.value="请输入正确的手机号";return}if(!p(s.verifyCode)){o.value="请输入6位验证码";return}o.value="",a("verify",{phone:s.phone,verifyCode:s.verifyCode});return}if(!Ai(s.password,n.phone||s.phone)){o.value=SA;return}if(s.password!==s.confirmPassword){o.value="两次密码输入不一致";return}o.value="",a("reset-password",{phone:n.phone||s.phone,password:s.password,confirmPassword:s.confirmPassword})};return(m,g)=>(_(),w("section",HAe,[KAe,l("ol",qAe,[l("li",{class:V(["forgot-panel__step",{"is-active":m.step===1}])},"1. 验证手机号",2),l("li",{class:V(["forgot-panel__step",{"is-active":m.step===2}])},"2. 设置新密码",2)]),l("form",{"data-testid":"submit-forgot",class:"forgot-panel__form",onSubmit:qe(h,["prevent"])},[m.step===1?(_(),w(_e,{key:0},[l("div",jAe,[l("label",WAe,[GAe,et(l("input",{"data-testid":"forgot-phone","onUpdate:modelValue":g[0]||(g[0]=y=>s.phone=y),class:"forgot-field__input",type:"tel",maxlength:"11",placeholder:"请输入11位手机号"},null,512),[[hn,s.phone,void 0,{trim:!0}]])]),l("button",{type:"button","data-testid":"send-forgot-code",class:"forgot-secondary-button",disabled:m.smsSending||m.smsCountdown>0,onClick:v},I(u.value),9,YAe)]),be(m.$slots,"human-verification",{phone:s.phone},void 0,!0),l("label",XAe,[QAe,et(l("input",{"data-testid":"forgot-code","onUpdate:modelValue":g[1]||(g[1]=y=>s.verifyCode=y),class:"forgot-field__input",type:"text",maxlength:"6",placeholder:"请输入验证码"},null,512),[[hn,s.verifyCode,void 0,{trim:!0}]])])],64)):(_(),w(_e,{key:1},[l("label",JAe,[ZAe,l("div",eNe,[et(l("input",{"data-testid":"forgot-password","onUpdate:modelValue":g[2]||(g[2]=y=>s.password=y),class:"forgot-field__input forgot-field__input--with-toggle",type:r.value?"text":"password",maxlength:"20",placeholder:"8-20位,含大小写字母、数字和符号"},null,8,tNe),[[$i,s.password,void 0,{trim:!0}]]),l("button",{type:"button","data-testid":"toggle-forgot-password-visibility",class:"forgot-field__toggle","aria-label":r.value?"隐藏新密码":"显示新密码",onClick:g[3]||(g[3]=y=>r.value=!r.value)},[(_(),w("svg",aNe,[sNe,oNe,r.value?(_(),w("path",rNe)):K("",!0)]))],8,nNe)])]),l("label",lNe,[iNe,l("div",cNe,[et(l("input",{"data-testid":"forgot-confirm-password","onUpdate:modelValue":g[4]||(g[4]=y=>s.confirmPassword=y),class:"forgot-field__input forgot-field__input--with-toggle",type:i.value?"text":"password",maxlength:"20",placeholder:"请再次输入新密码"},null,8,uNe),[[$i,s.confirmPassword,void 0,{trim:!0}]]),l("button",{type:"button","data-testid":"toggle-forgot-confirm-password-visibility",class:"forgot-field__toggle","aria-label":i.value?"隐藏确认新密码":"显示确认新密码",onClick:g[5]||(g[5]=y=>i.value=!i.value)},[(_(),w("svg",fNe,[pNe,vNe,i.value?(_(),w("path",hNe)):K("",!0)]))],8,dNe)])])],64)),c.value?(_(),w("p",mNe,I(c.value),1)):K("",!0),l("button",{class:"forgot-primary-button",type:"submit",disabled:m.submitting},I(m.submitting?"提交中...":m.step===1?"下一步":"完成重置"),9,gNe)],32),l("button",{type:"button","data-testid":"forgot-go-login",class:"forgot-link",onClick:g[6]||(g[6]=y=>m.$emit("go-login"))}," 返回登录 ")]))}}),yNe=Ct(_Ne,[["__scopeId","data-v-91867304"]]),N0=e=>(xt("data-v-0ec11da2"),e=e(),Tt(),e),bNe={class:"page-card security-list"},wNe={class:"security-list__items"},CNe={class:"security-item"},kNe=N0(()=>l("h3",null,"修改密码",-1)),SNe={class:"security-item"},ENe=N0(()=>l("h3",null,"更换手机号",-1)),$Ne={key:0,class:"security-item"},xNe={class:"security-item__title-row"},TNe=N0(()=>l("h3",null,"实名认证",-1)),INe=["disabled"],ANe={class:"security-item"},NNe=N0(()=>l("h3",null,"登录设备管理",-1)),RNe=le({__name:"AccountSecurityList",props:{phone:{},passwordStatusText:{default:"已设置"},phoneStatusText:{default:""},deviceStatusText:{default:"查看已登录设备"},identityStatus:{default:"unverified"},identityStatusText:{default:"未实名"},showIdentity:{type:Boolean,default:!0}},emits:["change-password","change-phone","manage-devices","verify-identity"],setup(e){return(t,n)=>(_(),w("section",bNe,[l("div",wNe,[l("article",CNe,[l("div",null,[kNe,l("p",null,I(t.passwordStatusText),1)]),l("button",{type:"button","data-testid":"change-password",class:"security-item__action",onClick:n[0]||(n[0]=a=>t.$emit("change-password"))}," 立即修改 ")]),l("article",SNe,[l("div",null,[ENe,l("p",null,I(t.phoneStatusText||t.phone),1)]),l("button",{type:"button","data-testid":"change-phone",class:"security-item__action",onClick:n[1]||(n[1]=a=>t.$emit("change-phone"))}," 去更换 ")]),t.showIdentity?(_(),w("article",$Ne,[l("div",null,[l("div",xNe,[TNe,l("span",{class:V(["security-item__badge",`security-item__badge--${t.identityStatus}`])},I(t.identityStatusText),3)]),l("p",null,I(t.identityStatus==="verified"?"已完成身份证二要素核验":"完成实名后可用于后续实名主体校验"),1)]),l("button",{type:"button","data-testid":"verify-identity",class:"security-item__action",disabled:t.identityStatus==="verified",onClick:n[2]||(n[2]=a=>t.$emit("verify-identity"))},I(t.identityStatus==="verified"?"已实名":"去实名"),9,INe)])):K("",!0),l("article",ANe,[l("div",null,[NNe,l("p",null,I(t.deviceStatusText),1)]),l("button",{type:"button","data-testid":"manage-devices",class:"security-item__action",onClick:n[3]||(n[3]=a=>t.$emit("manage-devices"))}," 查看设备 ")])])]))}}),PNe=Ct(RNe,[["__scopeId","data-v-0ec11da2"]]),MNe=e=>(xt("data-v-29caf46d"),e=e(),Tt(),e),BNe={class:"device-list page-card"},LNe=MNe(()=>l("div",{class:"device-list__intro"},[l("p",{class:"device-list__eyebrow"},"用户认证"),l("h2",{class:"device-list__title"},"登录设备管理"),l("p",{class:"device-list__description"},"当前设备不可移除;如需退出其他设备,请点击对应设备并确认。")],-1)),ONe={key:3,class:"device-list__items"},DNe={class:"device-item__meta"},VNe={class:"device-item__header"},FNe={key:0,class:"device-item__tag"},UNe={key:0},zNe=["data-testid","disabled","onClick"],HNe=le({__name:"DeviceListCard",props:{devices:{},loading:{type:Boolean,default:!1},errorMessage:{default:""},removingDeviceId:{default:null}},emits:["remove-device","retry"],setup(e,{emit:t}){const n=t,a=s=>{s.isCurrent||n("remove-device",s)};return(s,o)=>(_(),w("section",BNe,[LNe,s.loading?(_(),ue(pl,{key:0,title:"设备列表加载中",description:"正在获取当前登录设备,请稍候。"})):s.errorMessage&&!s.devices.length?(_(),ue(fl,{key:1,title:"设备列表加载失败",description:s.errorMessage,onRetry:o[0]||(o[0]=r=>s.$emit("retry"))},null,8,["description"])):s.devices.length?(_(),w("div",ONe,[(_(!0),w(_e,null,Re(s.devices,r=>(_(),w("article",{key:r.id,class:"device-item"},[l("div",DNe,[l("div",VNe,[l("h3",null,I(r.deviceName),1),r.isCurrent?(_(),w("span",FNe,"当前设备")):K("",!0)]),l("p",null,"设备类型:"+I(r.deviceType),1),l("p",null,"最近登录:"+I(r.lastLoginTime),1),r.lastLoginIp?(_(),w("p",UNe,"登录 IP:"+I(r.lastLoginIp),1)):K("",!0)]),l("button",{type:"button","data-testid":`remove-device-${r.id}`,class:"device-item__action",disabled:r.isCurrent||s.removingDeviceId===r.id,onClick:i=>a(r)},I(s.removingDeviceId===r.id?"处理中...":r.isCurrent?"当前设备":"退出登录"),9,zNe)]))),128))])):(_(),ue(x0,{key:2,title:"暂无登录设备",description:"当前没有可管理的历史登录设备。"}))]))}}),KNe=Ct(HNe,[["__scopeId","data-v-29caf46d"]]),sv=e=>(xt("data-v-685a9c5f"),e=e(),Tt(),e),qNe=sv(()=>l("div",{class:"mall-first-login-dialog__header"},[l("span",{class:"mall-first-login-dialog__eyebrow"},"首次登录强制改密"),l("h2",null,"首次登录,请修改密码")],-1)),jNe=sv(()=>l("p",{class:"mall-first-login-dialog__desc"}," 账号密码已被后台重置。为保证账号安全,请先完成密码修改,再继续进入商城。 ",-1)),WNe={key:0,class:"mall-first-login-dialog__error"},GNe={class:"mall-first-login-dialog__field"},YNe=sv(()=>l("label",{class:"mall-first-login-dialog__label",for:"mall-first-login-new-password"}," 新密码 ",-1)),XNe={class:"mall-first-login-dialog__password-wrapper"},QNe=sv(()=>l("small",{class:"mall-first-login-dialog__tip"},"输入后查看侧边规则提示",-1)),JNe={class:"mall-first-login-dialog__field"},ZNe=sv(()=>l("label",{class:"mall-first-login-dialog__label",for:"mall-first-login-confirm-password"}," 确认密码 ",-1)),eRe=["disabled"],tRe=le({__name:"MallFirstLoginPasswordDialog",props:{modelValue:{type:Boolean},submitting:{type:Boolean,default:!1},submitPassword:{type:Function,default:void 0}},emits:["update:modelValue","success","submit"],setup(e,{emit:t}){const n=e,a=t,s=At({newPassword:"",confirmPassword:""}),o=T(!1),r=T(""),i=x(()=>ew(s.newPassword)),c=x(()=>!!s.newPassword&&!Ai(s.newPassword)),u=x(()=>n.submitting||o.value||!s.newPassword||!s.confirmPassword),d=v=>v instanceof Error&&v.message?v.message:"操作失败,请稍后重试",p=async()=>{if(u.value)return;if(r.value="",!Ai(s.newPassword)){r.value=SA;return}if(s.newPassword!==s.confirmPassword){r.value="两次输入的密码不一致";return}const v={...s};if(a("submit",v),!!n.submitPassword){o.value=!0;try{await n.submitPassword(v),a("success",v),a("update:modelValue",!1)}catch(h){r.value=d(h)}finally{o.value=!1}}};return(v,h)=>{const m=Ne("el-input"),g=Ne("el-dialog");return _(),ue(g,{"model-value":v.modelValue,width:"520px",teleported:!1,"show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":""},{header:W(()=>[qNe]),default:W(()=>[l("form",{"data-testid":"mall-first-login-form",class:"mall-first-login-dialog__form",onSubmit:qe(p,["prevent"])},[jNe,r.value?(_(),w("p",WNe,I(r.value),1)):K("",!0),l("div",GNe,[YNe,l("div",XNe,[z(m,{id:"mall-first-login-new-password",modelValue:s.newPassword,"onUpdate:modelValue":h[0]||(h[0]=y=>s.newPassword=y),type:"password","show-password":"",placeholder:"请输入新密码"},null,8,["modelValue"]),z(tw,{visible:c.value,checks:i.value},null,8,["visible","checks"])]),QNe]),l("div",JNe,[ZNe,z(m,{id:"mall-first-login-confirm-password",modelValue:s.confirmPassword,"onUpdate:modelValue":h[1]||(h[1]=y=>s.confirmPassword=y),type:"password","show-password":"",placeholder:"请再次输入新密码"},null,8,["modelValue"])]),l("button",{class:"mall-first-login-dialog__submit",type:"submit",disabled:u.value},I(n.submitting||o.value?"提交中...":"确认修改"),9,eRe)],32)]),_:1},8,["model-value"])}}}),nRe=Ct(tRe,[["__scopeId","data-v-685a9c5f"]]),aRe={class:"forgot-password-view"},sRe=le({__name:"ForgotPasswordView",setup(e){const t=pn(),n=T(1),a=T(""),s=T(""),o=T(!1),r=T(!1),i=T(0),c=T(""),u=T(),d=T(!1),p=T();let v;const h=()=>{window.clearInterval(v),i.value=60,v=window.setInterval(()=>{if(i.value<=1){window.clearInterval(v),i.value=0;return}i.value-=1},1e3)},m=E=>E instanceof Error&&E.message?E.message:"密码重置失败,请稍后重试",g=async(E,R)=>{var A;if(!(r.value||i.value>0)){r.value=!0,c.value="";try{await V2({...E,humanVerificationToken:R}),rt.success("如该手机号符合条件,验证码将在稍后发送,请注意查收;若未收到,可确认手机号是否已注册或前往注册页创建账号"),h(),p.value=void 0,d.value=!1}catch(N){c.value=m(N),await((A=u.value)==null?void 0:A.reset())}finally{r.value=!1}}},y=E=>{r.value||i.value>0||d.value||(c.value="",p.value=E,d.value=!0)},b=async(E,R)=>{const A=p.value;if(!A||A.phone!==R){p.value=void 0,d.value=!1,c.value="手机号已变更,请重新点击获取验证码";return}await g(A,E)},C=()=>{d.value=!1},k=async E=>{if(!o.value){o.value=!0,c.value="";try{await che(E),a.value=E.phone,s.value=E.verifyCode,n.value=2}catch(R){c.value=m(R)}finally{o.value=!1}}},S=async E=>{if(!o.value){o.value=!0,c.value="";try{await ihe({phone:a.value||E.phone,verifyCode:s.value,newPassword:E.password,confirmPassword:E.confirmPassword}),await t.push({name:"login"})}catch(R){c.value=m(R)}finally{o.value=!1}}},$=async()=>{await t.push({name:"login"})};return on(()=>{window.clearInterval(v)}),(E,R)=>(_(),w("section",aRe,[z(f(yNe),{step:n.value,phone:a.value,submitting:o.value,"sms-sending":r.value,"sms-countdown":i.value,"error-message":c.value,onVerify:k,onResetPassword:S,onSendCode:y,onGoLogin:$},{"human-verification":W(({phone:A})=>[d.value&&i.value===0?(_(),ue(f(fd),{key:0,ref_key:"humanVerificationRef",ref:u,phone:A,action:"sms_reset_password",scene:"reset_password",interaction:"visible",onVerified:b,onClosed:C},null,8,["phone"])):K("",!0)]),_:1},8,["step","phone","submitting","sms-sending","sms-countdown","error-message"])]))}}),oRe=Ct(sRe,[["__scopeId","data-v-89e8df87"]]),R$="aistore_mall_device_id",rRe=()=>{const e=Math.random().toString(16).slice(2);return`web-${Date.now().toString(16)}-${e}`},P$=()=>{const e=localStorage.getItem(R$);if(e)return e;const t=typeof crypto<"u"&&typeof crypto.randomUUID=="function"?`web-${crypto.randomUUID()}`:rRe();return localStorage.setItem(R$,t),t},lRe=e=>{const t=e.toLowerCase();return t.includes("iphone")?"iPhone":t.includes("ipad")?"iPad":t.includes("android")?"Android":t.includes("windows")?"Windows":t.includes("mac os x")||t.includes("macintosh")?"macOS":t.includes("linux")?"Linux":"Unknown OS"},iRe=e=>{const t=e.toLowerCase();return t.includes("edg/")?"Edge":t.includes("opr/")||t.includes("opera")?"Opera":t.includes("firefox/")?"Firefox":t.includes("chrome/")&&!t.includes("chromium")?"Chrome":t.includes("safari/")&&t.includes("version/")?"Safari":"Browser"},M$=()=>{if(typeof navigator>"u")return"Browser";const e=navigator.userAgent||"";return`${iRe(e)} on ${lRe(e)}`},OA=e=>(xt("data-v-ef87673f"),e=e(),Tt(),e),cRe=OA(()=>l("div",{class:"login-view__header"},[l("h2",null,"欢迎回来")],-1)),uRe={class:"login-view__agreement-text"},dRe=OA(()=>l("span",null,"还没有账号?",-1)),fRe=le({__name:"LoginView",setup(e){const t=pn(),n=fa(),a=_a(),s=T("sms"),o=T(!1),r=T(!1),i=T(0),c=T(""),u=T(),d=T(!1),p=T(),v=T(""),h=T(),m=T();let g;const y=()=>{window.clearInterval(g),i.value=60,g=window.setInterval(()=>{if(i.value<=1){window.clearInterval(g),i.value=0;return}i.value-=1},1e3)},b=()=>{const O=typeof n.query.redirect=="string"?n.query.redirect:"/";return O.startsWith("/")&&!O.startsWith("//")?O:"/"},C=T(!1),k=T(!1),S=T("/"),$=async(O,G)=>{a.setToken(O);try{const ae=await a.refreshUserInfo();if(a.sessionReady=!0,S.value=b(),G||ae.firstLogin){C.value=!0;return}await t.replace(S.value)}catch(ae){throw a.clearSession({revokeRemembered:!1}),ae}},E=async()=>{var O;a.isLoggedIn&&(a.sessionReady||await a.initializeSession(),(O=a.userInfo)!=null&&O.firstLogin&&(S.value=b(),C.value=!0))},R=O=>O instanceof Error&&O.message?O.message:"登录失败,请稍后重试",A=async O=>{var G,ae,Z;if(!o.value){o.value=!0,c.value="";try{const te=P$(),ie=M$(),oe={phone:O.phone,password:O.password,deviceId:te,deviceName:ie,rememberMe:!!O.rememberMe,agreeProtocol:O.agreeProtocol};let J;try{J=await a$(oe)}catch(ee){if(ee.code!==1017)throw ee;v.value=O.phone,await it();const Q=await((G=m.value)==null?void 0:G.verify());if(!Q)throw new Error("请完成人机验证");try{const H=(ae=h.value)==null?void 0:ae.getPasswordLoginSnapshot();if(!H||H.mode!=="password"||H.phone!==O.phone)throw new Error("登录手机号已变更,请重新提交");J=await a$({...oe,password:H.password,humanVerificationToken:Q})}finally{(Z=m.value)==null||Z.clear()}}await $(J.token,J.firstLogin)}catch(te){c.value=R(te)}finally{o.value=!1}}},N=async O=>{if(!o.value){o.value=!0,c.value="";try{const G=P$(),ae=M$(),Z=await ohe({phone:O.phone,verifyCode:O.verifyCode,deviceId:G,deviceName:ae,rememberMe:!!O.rememberMe,agreeProtocol:O.agreeProtocol});await $(Z.token,Z.firstLogin)}catch(G){c.value=R(G)}finally{o.value=!1}}},P=async(O,G)=>{var ae;if(!(r.value||i.value>0)){r.value=!0,c.value="";try{await V2({...O,humanVerificationToken:G}),rt.success("如该手机号符合条件,验证码将在稍后发送,请注意查收;若未收到,可确认手机号是否已注册或前往注册页创建账号"),y(),p.value=void 0,d.value=!1}catch(Z){c.value=R(Z),await((ae=u.value)==null?void 0:ae.reset())}finally{r.value=!1}}},B=O=>{r.value||i.value>0||d.value||(c.value="",p.value=O,d.value=!0)},M=async(O,G)=>{const ae=p.value;if(!ae||ae.phone!==G){p.value=void 0,d.value=!1,c.value="手机号已变更,请重新点击获取验证码";return}await P(ae,O)},j=()=>{d.value=!1},F=O=>{O!=="sms"&&(p.value=void 0,d.value=!1,c.value="")},q=async()=>{await t.push({name:"forgot-password"})},L=async()=>{await t.push({name:"register"})},U=async O=>{k.value=!0;try{await vhe(O);const G=await a.refreshUserInfo();if(a.sessionReady=!0,G.firstLogin)throw new Error("密码未完成更新,请重新设置");await t.replace(S.value)}finally{k.value=!1}};return on(()=>{window.clearInterval(g)}),ft(()=>{E()}),(O,G)=>(_(),ue(f(LA),{class:"login-view"},{default:W(()=>[z(f(fd),{ref_key:"passwordVerificationRef",ref:m,phone:v.value,action:"mall_password_login",scene:"password"},null,8,["phone"]),z(f(k6e),{ref_key:"loginPanelRef",ref:h,mode:s.value,"onUpdate:mode":G[0]||(G[0]=ae=>s.value=ae),submitting:o.value,"sms-sending":r.value,"sms-countdown":i.value,"error-message":c.value,onSubmitPassword:A,onSubmitSms:N,onSendCode:B,onSwitchMode:F,onForgotPassword:q},{"human-verification":W(({phone:ae})=>[d.value&&i.value===0?(_(),ue(f(fd),{key:0,ref_key:"smsHumanVerificationRef",ref:u,phone:ae,action:"sms_login",scene:"login",interaction:"visible",onVerified:M,onClosed:j},null,8,["phone"])):K("",!0)]),header:W(()=>[cRe]),protocol:W(()=>[l("span",uRe,[Ce(" 我已阅读并同意 "),z(f(An),{class:"login-view__agreement-link",to:"/support?article=legal-service",target:"_blank",rel:"noopener noreferrer"},{default:W(()=>[Ce("《智云新疆AI STORE用户使用协议》")]),_:1}),Ce("、 "),z(f(An),{class:"login-view__agreement-link",to:"/support?article=legal-privacy",target:"_blank",rel:"noopener noreferrer"},{default:W(()=>[Ce("《智云新疆AI STORE隐私政策》")]),_:1})])]),footer:W(()=>[l("div",{class:"login-view__footer"},[dRe,l("button",{type:"button","data-testid":"go-register",class:"login-view__register",onClick:L}," 立即注册 ")])]),_:1},8,["mode","submitting","sms-sending","sms-countdown","error-message"]),z(f(nRe),{modelValue:C.value,"onUpdate:modelValue":G[1]||(G[1]=ae=>C.value=ae),submitting:k.value,"submit-password":U},null,8,["modelValue","submitting"])]),_:1}))}}),pRe=Ct(fRe,[["__scopeId","data-v-ef87673f"]]),vRe={class:"register-view__agreement-text"},hRe=le({__name:"RegisterView",setup(e){const t=pn(),n=fa(),a=_a(),s=T(!1),o=T(!1),r=T(0),i=T(""),c=T(),u=T(""),d=T(!1),p=T();let v;const h=()=>{window.clearInterval(v),r.value=60,v=window.setInterval(()=>{if(r.value<=1){window.clearInterval(v),r.value=0;return}r.value-=1},1e3)},m=()=>typeof n.query.redirect=="string"?n.query.redirect:"/",g=A=>A instanceof Error&&A.message?A.message:"注册失败,请稍后重试",y=async A=>{a.setToken(A);try{await a.refreshUserInfo(),a.sessionReady=!0,await t.push(m())}catch(N){throw a.clearSession({revokeRemembered:!1}),N}},b=async A=>{if(!s.value){s.value=!0,i.value="";try{if(A.userType==="enterprise"){await lhe({userType:"enterprise",phone:A.phone,password:A.password,confirmPassword:A.confirmPassword,verifyCode:A.verifyCode,enterpriseName:A.enterpriseName??"",enterpriseContact:A.enterpriseContact??"",regionCode:A.regionCode,industryCode:A.industryCode,agreementAccepted:A.agreeProtocol}),rt.success("企业注册成功,请使用账号登录"),await t.push({name:"login"});return}const N=await rhe({phone:A.phone,password:A.password,confirmPassword:A.confirmPassword,verifyCode:A.verifyCode,agreeProtocol:A.agreeProtocol,name:A.name,email:A.email,regionCode:A.regionCode,industryCode:A.industryCode});await y(N.token)}catch(N){i.value=g(N)}finally{s.value=!1}}},C=async(A,N)=>{var P;if(!(o.value||r.value>0)){o.value=!0,i.value="";try{await V2({...A,humanVerificationToken:N}),h(),u.value="",p.value=void 0,d.value=!1,rt.success("如该手机号符合条件,验证码将在稍后发送,请注意查收")}catch(B){i.value=g(B),u.value="",await((P=c.value)==null?void 0:P.reset())}finally{o.value=!1}}},k=async A=>{o.value||r.value>0||d.value||(i.value="",p.value=A,u.value="",d.value=!0)},S=async(A,N)=>{const P=p.value;if(!P||P.phone!==N){u.value="",p.value=void 0,d.value=!1,i.value="手机号已变更,请重新点击获取验证码";return}u.value=A,await C(P,A)},$=()=>{u.value=""},E=()=>{u.value="",d.value=!1},R=async()=>{await t.push({name:"login"})};return on(()=>{window.clearInterval(v)}),(A,N)=>(_(),ue(f(LA),{class:"register-view"},{default:W(()=>[z(f(IAe),{submitting:s.value,"sms-sending":o.value,"sms-countdown":r.value,"error-message":i.value,onSubmit:b,onSendCode:k,onGoLogin:R},{"human-verification":W(({phone:P})=>[d.value&&r.value===0?(_(),ue(f(fd),{key:0,ref_key:"humanVerificationRef",ref:c,phone:P,action:"sms_register",scene:"register",interaction:"visible",onVerified:S,onInvalidated:$,onClosed:E},null,8,["phone"])):K("",!0)]),protocol:W(()=>[l("span",vRe,[z(f(An),{class:"register-view__agreement-link",to:"/support?article=legal-service",target:"_blank",rel:"noopener noreferrer"},{default:W(()=>[Ce(" 《智云新疆AI STORE用户使用协议》 ")]),_:1}),Ce(" 、 "),z(f(An),{class:"register-view__agreement-link",to:"/support?article=legal-privacy",target:"_blank",rel:"noopener noreferrer"},{default:W(()=>[Ce(" 《智云新疆AI STORE隐私政策》 ")]),_:1})])]),_:1},8,["submitting","sms-sending","sms-countdown","error-message"])]),_:1}))}}),mRe=Ct(hRe,[["__scopeId","data-v-f2cbd69f"]]),gRe={class:"page-container user-devices-page"},_Re=le({__name:"UserDevicesView",setup(e){const t=T(!0),n=T(null),a=T(""),s=T([]),o=async()=>{t.value=!0,a.value="";try{const i=await yhe();s.value=i.list}catch(i){a.value=i instanceof Error?i.message:"设备列表加载失败,请稍后重试"}finally{t.value=!1}},r=async i=>{await ua.confirm(`确认让设备“${i.deviceName}”退出登录吗?`,"退出设备",{type:"warning",confirmButtonText:"确认退出",cancelButtonText:"取消"}),n.value=i.id;try{await bhe(i.id),rt.success("设备已退出登录"),await o()}finally{n.value=null}};return ft(()=>{o()}),(i,c)=>(_(),w("section",gRe,[z(KNe,{devices:s.value,loading:t.value,"error-message":a.value,"removing-device-id":n.value,onRemoveDevice:r,onRetry:o},null,8,["devices","loading","error-message","removing-device-id"])]))}}),yRe=Ct(_Re,[["__scopeId","data-v-04d77382"]]),ov=e=>(xt("data-v-845a6507"),e=e(),Tt(),e),bRe={class:"page-container user-phone-page"},wRe={class:"user-phone-page__header"},CRe=ov(()=>l("div",null,[l("h1",null,"更换手机号")],-1)),kRe={class:"user-phone-page__panel"},SRe={class:"user-phone-page__steps","aria-label":"更换手机号步骤"},ERe={key:0,class:"user-phone-page__form"},$Re={class:"user-phone-page__field"},xRe=ov(()=>l("span",null,"当前绑定手机号",-1)),TRe=["value"],IRe={class:"user-phone-page__field user-phone-page__field--code"},ARe=ov(()=>l("span",null,"旧手机号验证码",-1)),NRe=["disabled"],RRe={key:1,class:"user-phone-page__form"},PRe={class:"user-phone-page__field"},MRe=ov(()=>l("span",null,"新手机号",-1)),BRe={class:"user-phone-page__field user-phone-page__field--code"},LRe=ov(()=>l("span",null,"新手机号验证码",-1)),ORe=["disabled"],DRe={class:"user-phone-page__actions"},VRe=["disabled"],FRe={key:2,class:"user-phone-page__error"},URe=le({__name:"UserPhoneView",setup(e){const t=/^1\d{10}$/,n=pn(),a=_a(),s=T(1),o=T(!1),r=T(""),i=T(!1),c=T(!1),u=T(!1),d=T(!1),p=T(""),v=T(""),h=T(0),m=T(0),g=At({oldVerifyCode:"",newPhone:"",newVerifyCode:""});let y,b;const C=x(()=>{var q;return((q=a.userInfo)==null?void 0:q.phone)||"--"}),k=async()=>{const q=await o$("old"),L=r$(q.challengeTicket);return p.value=L,L},S=async()=>{const q=await o$("new",g.newPhone),L=r$(q.challengeTicket);return v.value=L,L};Te(()=>g.newPhone,()=>{d.value&&(d.value=!1,v.value="")});const $=q=>{const L=q==="old"?h:m,U=q==="old"?"oldTimer":"newTimer";window.clearInterval(q==="old"?y:b),L.value=60;const O=window.setInterval(()=>{if(L.value<=1){window.clearInterval(O),L.value=0;return}L.value-=1},1e3);U==="oldTimer"?y=O:b=O},E=(q,L)=>q instanceof Error&&q.message?q.message:L,R=async()=>{i.value||h.value>0||u.value||(r.value="",u.value=!0)},A=async q=>{i.value=!0;try{await ghe({humanVerificationToken:q}),u.value=!1,$("old"),rt.success("旧手机号验证码已发送")}catch(L){u.value=!1,r.value=E(L,"旧手机号验证码发送失败")}finally{i.value=!1}},N=()=>{u.value=!1,p.value=""},P=()=>{if(!/^\d{6}$/.test(g.oldVerifyCode)){r.value="请输入 6 位旧手机号验证码";return}r.value="",s.value=2},B=async()=>{if(!(c.value||m.value>0||d.value)){if(!t.test(g.newPhone)){r.value="请输入正确的新手机号";return}r.value="",d.value=!0}},M=async q=>{c.value=!0;try{await _he({phone:g.newPhone,humanVerificationToken:q}),d.value=!1,$("new"),rt.success("新手机号验证码已发送")}catch(L){d.value=!1,r.value=E(L,"新手机号验证码发送失败")}finally{c.value=!1}},j=()=>{d.value=!1,v.value=""},F=async()=>{if(!o.value){if(!t.test(g.newPhone)){r.value="请输入正确的新手机号";return}if(!/^\d{6}$/.test(g.newVerifyCode)){r.value="请输入 6 位新手机号验证码";return}o.value=!0,r.value="";try{await mhe({oldVerifyCode:g.oldVerifyCode,newPhone:g.newPhone,newVerifyCode:g.newVerifyCode});const q=await U1();a.setUserInfo(q),rt.success("手机号更换成功"),await n.push({name:"user-security"})}catch(q){r.value=E(q,"手机号更换失败,请稍后重试")}finally{o.value=!1}}};return(q,L)=>(_(),w("section",bRe,[l("div",wRe,[CRe,z(f(An),{class:"user-phone-page__back",to:"/user/security"},{default:W(()=>[Ce("返回账号安全")]),_:1})]),l("section",kRe,[l("div",SRe,[l("span",{class:V(["user-phone-page__step",{"is-active":s.value===1}])},"1. 验证旧手机号",2),l("span",{class:V(["user-phone-page__step",{"is-active":s.value===2}])},"2. 绑定新手机号",2)]),s.value===1?(_(),w("div",ERe,[l("label",$Re,[xRe,l("input",{value:C.value,type:"text",readonly:""},null,8,TRe)]),l("div",IRe,[l("label",null,[ARe,et(l("input",{"onUpdate:modelValue":L[0]||(L[0]=U=>g.oldVerifyCode=U),"data-testid":"old-phone-code",maxlength:"6",placeholder:"请输入验证码"},null,512),[[hn,g.oldVerifyCode,void 0,{trim:!0}]])]),l("button",{type:"button","data-testid":"send-old-phone-code",disabled:i.value||h.value>0,onClick:R},I(h.value>0?`${h.value}s 后重试`:i.value?"发送中...":"获取验证码"),9,NRe)]),u.value?(_(),ue(fd,{key:0,phone:C.value,"phone-required":!1,action:"sms_change_phone",scene:"change_phone","challenge-url":p.value,"challenge-url-factory":k,interaction:"visible",onVerified:A,onClosed:N},null,8,["phone","challenge-url"])):K("",!0),l("button",{type:"button","data-testid":"go-phone-step-2",class:"user-phone-page__primary",onClick:P}," 下一步 ")])):(_(),w("div",RRe,[l("label",PRe,[MRe,et(l("input",{"onUpdate:modelValue":L[1]||(L[1]=U=>g.newPhone=U),"data-testid":"new-phone",maxlength:"11",placeholder:"请输入新手机号"},null,512),[[hn,g.newPhone,void 0,{trim:!0}]])]),l("div",BRe,[l("label",null,[LRe,et(l("input",{"onUpdate:modelValue":L[2]||(L[2]=U=>g.newVerifyCode=U),"data-testid":"new-phone-code",maxlength:"6",placeholder:"请输入验证码"},null,512),[[hn,g.newVerifyCode,void 0,{trim:!0}]])]),l("button",{type:"button","data-testid":"send-new-phone-code",disabled:c.value||m.value>0,onClick:B},I(m.value>0?`${m.value}s 后重试`:c.value?"发送中...":"获取验证码"),9,ORe)]),d.value?(_(),ue(fd,{key:0,phone:g.newPhone,action:"sms_change_phone",scene:"change_phone","challenge-url":v.value,"challenge-url-factory":S,interaction:"visible",onVerified:M,onClosed:j},null,8,["phone","challenge-url"])):K("",!0),l("div",DRe,[l("button",{type:"button",class:"user-phone-page__secondary",onClick:L[3]||(L[3]=U=>s.value=1)},"返回上一步"),l("button",{type:"button","data-testid":"submit-change-phone",class:"user-phone-page__primary",disabled:o.value,onClick:F},I(o.value?"提交中...":"完成更换"),9,VRe)])])),r.value?(_(),w("p",FRe,I(r.value),1)):K("",!0)])]))}}),zRe=Ct(URe,[["__scopeId","data-v-845a6507"]]),HRe=e=>{if(!e)return;const t=e.orderStatus??e.status;return{...e,orderStatus:t,status:void 0}},nw=19e4,KRe=e=>dt.post("/api/v1/orders",e,{timeout:nw}),aw=e=>dt.get("/api/v1/orders",{params:HRe(e)}),sw=e=>dt.get(`/api/v1/orders/${e}`),DA=e=>dt.put(`/api/v1/orders/${e}/cancel`,void 0,{timeout:nw}),ow=(e,t)=>dt.post(`/api/v1/orders/${e}/pay`,t,{timeout:nw}),R0=()=>dt.get("/api/v1/mall/enterprise/quota-overview"),qRe=(e={})=>dt.get("/api/v1/mall/enterprise/quota-logs",{params:e}),jRe=e=>dt.put("/api/v1/mall/enterprise/seat-limit",{seatLimit:e},{silentErrorMessage:!0}),P0=(e,t)=>dt.put(`/mall-api/service-groups/${e}/quota`,t,{silentErrorMessage:!0}),rw=e=>dt.get("/mall-api/service-groups",{params:e}),WRe=e=>dt.post("/mall-api/service-groups",e,{silentErrorMessage:!0}),GRe=e=>dt.post("/mall-api/service-groups/batch",e,{silentErrorMessage:!0}),YRe=(e,t)=>dt.put(`/mall-api/service-groups/${e}`,t),XRe=(e,t)=>dt.put(`/mall-api/service-groups/${e}/models`,t),lw=(e,t)=>dt.patch(`/mall-api/service-groups/${e}/status`,t),iw=e=>dt.delete(`/mall-api/service-groups/${e}`),cw=e=>dt.post(`/mall-api/service-groups/${e}/api-key/reset`),uw=e=>dt.get(`/mall-api/service-groups/${e}/api-key/plain`),dw=e=>dt.get(`/mall-api/service-groups/${e}`),B$=(e,t={})=>dt.get(`/mall-api/service-groups/${e}/operation-logs`,{params:t}),L$=100,vm=async()=>{const e=await dt.get("/mall-api/models",{params:{pageNo:1,pageSize:L$}}),t=[...e.list];for(let n=2;t.lengthn.supportApi).map(n=>({modelId:n.modelId,modelName:n.modelName,modelStatus:n.status,typeName:n.typeName,summary:n.summary}))},Fs=e=>(xt("data-v-33bc14cf"),e=e(),Tt(),e),QRe={class:"profile-page"},JRe={class:"profile-main"},ZRe=Fs(()=>l("div",{class:"profile-skeleton profile-skeleton--hero"},[l("div",{class:"skeleton-bar skeleton-bar--lg"}),l("div",{class:"skeleton-bar skeleton-bar--md"})],-1)),ePe={class:"profile-skeleton profile-skeleton--cards"},tPe=Fs(()=>l("div",{class:"skeleton-bar skeleton-bar--icon"},null,-1)),nPe=Fs(()=>l("div",{class:"skeleton-bar skeleton-bar--sm"},null,-1)),aPe=Fs(()=>l("div",{class:"skeleton-bar skeleton-bar--md"},null,-1)),sPe=[tPe,nPe,aPe],oPe={class:"profile-card profile-hero"},rPe={class:"profile-hero__header"},lPe=Fs(()=>l("h2",null,"账户概览",-1)),iPe=Fs(()=>l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z"})],-1)),cPe={class:"profile-hero__stats"},uPe={class:"profile-hero__stat-label"},dPe={class:"profile-hero__stat-value"},fPe={class:"profile-card"},pPe={class:"profile-card__header"},vPe=Fs(()=>l("h2",null,"最近订单",-1)),hPe={key:0,class:"profile-orders"},mPe={class:"profile-order__info"},gPe={class:"profile-order__name"},_Pe={class:"profile-order__meta"},yPe={class:"profile-order__meta"},bPe={class:"profile-order__right"},wPe={class:"profile-order__amount"},CPe={key:1,class:"profile-empty"},kPe=Fs(()=>l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",class:"profile-empty__icon"},[l("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),l("polyline",{points:"14 2 14 8 20 8"})],-1)),SPe=Fs(()=>l("strong",null,"暂无订单记录",-1)),EPe=Fs(()=>l("p",null,"前往积分购买页创建首笔订单,开始使用平台服务",-1)),$Pe={class:"profile-card"},xPe=Fs(()=>l("div",{class:"profile-card__header"},[l("h2",null,"业务概览")],-1)),TPe={class:"profile-modules"},IPe=["innerHTML"],APe={class:"profile-module__title"},NPe={class:"profile-module__desc"},RPe=Fs(()=>l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"profile-module__arrow"},[l("polyline",{points:"9 18 15 12 9 6"})],-1)),PPe={class:"profile-dialog__field"},MPe=Fs(()=>l("span",null,"用户名",-1)),BPe={class:"profile-dialog__field"},LPe=Fs(()=>l("span",null,"地区",-1)),OPe={key:0,class:"profile-dialog__hint profile-dialog__hint--warning"},DPe={class:"profile-dialog__field"},VPe=Fs(()=>l("span",null,"所属行业",-1)),FPe={class:"profile-dialog__field"},UPe=Fs(()=>l("span",null,"邮箱",-1)),zPe={key:0,class:"profile-dialog__error"},HPe={class:"profile-dialog__actions"},KPe=["disabled"],qPe=["disabled"],jPe=le({__name:"UserProfileView",setup(e){const t=fa(),n=pn(),a=_a(),s=T(!0),o=T(null),r=T([]),i=T([]),c=T(!1),u=T(!1),d=T(""),p=T(""),v=T(!1),h=T([]),m=T(null),g=T(null),y=T([]),b=At({name:"",email:"",regionCode:null,industryCode:null}),C=x(()=>"编辑资料"),k=te=>!te||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(te),S=()=>{var te,ie,oe,J;b.name=((te=a.userInfo)==null?void 0:te.name)||"",b.email=((ie=a.userInfo)==null?void 0:ie.email)||"",m.value=((oe=a.userInfo)==null?void 0:oe.regionCode)||null,b.regionCode=m.value,g.value=((J=a.userInfo)==null?void 0:J.industryCode)||null,b.industryCode=g.value,X6().then(ee=>{y.value=ee}).catch(()=>{d.value="行业加载失败,请稍后重试"}),d.value="",p.value="",v.value=!1,N(),c.value=!0},$=te=>te.map(ie=>({...ie})),E=async te=>{const ie=await BA(te);return $(ie)},R=(te,ie)=>{for(const oe of te){if(oe.code===ie)return oe;const J=oe.children&&R(oe.children,ie);if(J)return J}},A=(te,ie,oe=[])=>{for(const J of te){const ee=[...oe,J.name];if(J.code===ie)return ee.join("/");if(J.children){const Q=A(J.children,ie,ee);if(Q)return Q}}return null},N=async()=>{try{if(h.value=await E(),!b.regionCode)return;const te=[b.regionCode.slice(0,2),b.regionCode.slice(0,4),b.regionCode];let ie=h.value;for(const oe of te.slice(0,-1)){const J=R(ie,oe);if(!J)throw new Error("地区已失效,请重新选择");J.children=await E(J.code),ie=J.children}if(!R(h.value,b.regionCode))throw new Error("地区已失效,请重新选择")}catch(te){v.value=!!b.regionCode,p.value=te instanceof Error?te.message:"地区加载失败,请稍后重试",b.regionCode=null}},P={lazy:!0,value:"code",label:"name",leaf:te=>te.level===3,emitPath:!1,checkStrictly:!1,lazyLoad:async(te,ie,oe)=>{try{ie(await E(te.level===0?void 0:te.value))}catch(J){p.value=J instanceof Error?J.message:"地区加载失败,请稍后重试",oe()}}},B=()=>{p.value="",N()},M=async()=>{if(!u.value){if(!b.name.trim()){d.value="请输入用户名";return}if(!k(b.email.trim())){d.value="请输入正确的邮箱地址";return}u.value=!0,d.value="";try{const te={name:b.name.trim(),email:b.email.trim()||void 0};b.regionCode!==m.value&&(te.regionCode=b.regionCode),b.industryCode!==g.value&&(te.industryCode=b.industryCode),await hhe(te),a.userInfo&&a.setUserInfo({...a.userInfo,name:b.name.trim(),email:b.email.trim(),...Object.prototype.hasOwnProperty.call(te,"regionCode")?{regionCode:te.regionCode??null,regionName:te.regionCode?A(h.value,te.regionCode):null}:{},...Object.prototype.hasOwnProperty.call(te,"industryCode")?{industryCode:te.industryCode??null}:{}}),m.value=b.regionCode,g.value=b.industryCode,c.value=!1,rt.success("资料已更新")}catch(te){d.value=te instanceof Error?te.message:"资料更新失败,请稍后重试"}finally{u.value=!1}}},j=x(()=>{var te,ie,oe;return[{label:"总积分余额",value:((te=a.userInfo)==null?void 0:te.totalCreditBalance)??"--",accent:!0},{label:"真实积分",value:((ie=a.userInfo)==null?void 0:ie.paidCreditBalance)??"--",accent:!1},{label:"免费积分",value:((oe=a.userInfo)==null?void 0:oe.freeCreditBalance)??"--",accent:!1}]}),F=x(()=>i.value.filter(te=>te.status==="enabled").length),q={charge:'',order:'',coupon:'',service:'',intention:'',feedback:'',usage:''},L=x(()=>{var J,ee,Q,H;const te=(ee=(J=o.value)==null?void 0:J.latestCoupon)==null?void 0:ee.couponName,ie=r.value[0],oe=i.value.length;return[{title:"积分明细",description:`总积分 ${((Q=a.userInfo)==null?void 0:Q.totalCreditBalance)??"--"},查看收支明细`,to:"/credits/logs",iconSvg:q.charge},{title:"订单中心",description:ie?`最近 ${ie.orderNo},共 ${r.value.length} 条`:"暂无订单,前往积分购买页创建首笔订单",to:"/orders",iconSvg:q.order},{title:"我的意向单",description:"查看已提交的批量采购与定制化需求意向单,跟踪跟进状态",to:"/intentions",iconSvg:q.intention},{title:"我的反馈",description:"查看已提交的反馈及处理进度,可在详情中追问",to:"/user/feedbacks",iconSvg:q.feedback},{title:"我的优惠券",description:o.value?`可用 ${o.value.availableCount} 张,最新 ${te||"暂无"}`:"暂无优惠券,前往活动中心领取",to:"/coupons",iconSvg:q.coupon},{title:"服务接入",description:oe?`已接入 ${oe} 组,启用 ${F.value} 组`:"暂未创建服务组,前往创建 API 使用组",to:((H=a.userInfo)==null?void 0:H.userType)==="enterprise"?"/enterprise-seats":"/service-groups",iconSvg:q.service},{title:"使用记录",description:"查看分析您近几天的AI API使用记录",to:"/user/usage",iconSvg:q.usage}]}),U={paid:"status-chip--paid",pending:"status-chip--pending",cancelled:"status-chip--muted",expired:"status-chip--muted"},O=te=>U[te]||"status-chip--muted",G=te=>te.orderStatusName||te.orderStatus,ae=async()=>{s.value=!0;const[,te,ie,oe]=await Promise.allSettled([a.refreshUserInfo(),iA(),aw({pageNum:1,pageSize:3}),rw({pageNum:1,pageSize:10})]);te.status==="fulfilled"&&(o.value=te.value),ie.status==="fulfilled"&&(r.value=ie.value.list),oe.status==="fulfilled"&&(i.value=oe.value.list),s.value=!1};return Te(()=>t.query.edit,()=>{if(t.query.edit==="1"){S();const te={...t.query};delete te.edit,n.replace({query:te})}},{immediate:!0}),ft(()=>{ae()}),(te,ie)=>{const oe=Ne("el-cascader"),J=Ne("el-option"),ee=Ne("el-select"),Q=Ne("el-dialog");return _(),w("section",QRe,[l("div",JRe,[s.value?(_(),w(_e,{key:0},[ZRe,l("div",ePe,[(_(),w(_e,null,Re(5,H=>l("div",{key:H,class:"skeleton-card"},sPe)),64))])],64)):(_(),w(_e,{key:1},[l("section",oPe,[l("div",rPe,[lPe,z(f(An),{class:"profile-action-link",to:"/credits/purchase"},{default:W(()=>[iPe,Ce(" 购买 ")]),_:1})]),l("div",cPe,[(_(!0),w(_e,null,Re(j.value,H=>(_(),w("article",{key:H.label,class:V(["profile-hero__stat",{"profile-hero__stat--accent":H.accent}])},[l("span",uPe,I(H.label),1),l("strong",dPe,I(H.value),1)],2))),128))])]),l("section",fPe,[l("div",pPe,[vPe,z(f(An),{class:"profile-action-link",to:"/orders"},{default:W(()=>[Ce("查看全部")]),_:1})]),r.value.length?(_(),w("div",hPe,[(_(!0),w(_e,null,Re(r.value,H=>(_(),ue(f(An),{key:H.id,to:"/orders",class:"profile-order"},{default:W(()=>[l("div",mPe,[l("strong",gPe,I(H.packageName),1),l("span",_Pe,"订单号 "+I(H.orderNo),1),l("span",yPe,I(H.createTime),1)]),l("div",bPe,[l("span",{class:V(["status-chip",O(H.orderStatus)])},I(G(H)),3),l("strong",wPe,"¥"+I(H.payAmount),1)])]),_:2},1024))),128))])):(_(),w("div",CPe,[kPe,SPe,EPe,z(f(An),{class:"profile-empty__action",to:"/credits/purchase"},{default:W(()=>[Ce("去购买")]),_:1})]))]),l("section",$Pe,[xPe,l("div",TPe,[(_(!0),w(_e,null,Re(L.value,H=>(_(),ue(f(An),{key:H.to,to:H.to,class:"profile-module"},{default:W(()=>[l("span",{class:"profile-module__icon","aria-hidden":"true",innerHTML:H.iconSvg},null,8,IPe),l("strong",APe,I(H.title),1),l("span",NPe,I(H.description),1),RPe]),_:2},1032,["to"]))),128))])])],64))]),z(Q,{modelValue:c.value,"onUpdate:modelValue":ie[5]||(ie[5]=H=>c.value=H),title:C.value,width:"440px","append-to-body":"","destroy-on-close":""},{default:W(()=>[l("form",{class:"profile-dialog",onSubmit:qe(M,["prevent"])},[l("label",PPe,[MPe,et(l("input",{"onUpdate:modelValue":ie[0]||(ie[0]=H=>b.name=H),"data-testid":"profile-name",type:"text",maxlength:"20",placeholder:"请输入用户名"},null,512),[[hn,b.name,void 0,{trim:!0}]])]),l("label",BPe,[LPe,z(oe,{modelValue:b.regionCode,"onUpdate:modelValue":ie[1]||(ie[1]=H=>b.regionCode=H),"data-testid":"profile-region",options:h.value,props:P,clearable:"",filterable:"",disabled:u.value,placeholder:"请选择省 / 市 / 区县"},null,8,["modelValue","options","disabled"]),v.value?(_(),w("small",OPe," 地区已失效,请重新选择;若不操作地区,保存其他资料不会清空原记录。 ")):K("",!0),p.value?(_(),w("button",{key:1,type:"button",class:"profile-dialog__retry",onClick:B},I(p.value)+",重新加载 ",1)):K("",!0)]),l("label",DPe,[VPe,z(ee,{modelValue:b.industryCode,"onUpdate:modelValue":ie[2]||(ie[2]=H=>b.industryCode=H),"data-testid":"profile-industry",clearable:"",disabled:u.value,placeholder:"请选择所属行业"},{default:W(()=>[(_(!0),w(_e,null,Re(y.value,H=>(_(),ue(J,{key:H.itemCode,label:H.itemName,value:H.itemCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled"])]),l("label",FPe,[UPe,et(l("input",{"onUpdate:modelValue":ie[3]||(ie[3]=H=>b.email=H),"data-testid":"profile-email",type:"email",maxlength:"100",placeholder:"请输入邮箱"},null,512),[[hn,b.email,void 0,{trim:!0}]])]),d.value?(_(),w("p",zPe,I(d.value),1)):K("",!0),l("div",HPe,[l("button",{type:"button",class:"profile-dialog__secondary",disabled:u.value,onClick:ie[4]||(ie[4]=H=>c.value=!1)}," 取消 ",8,KPe),l("button",{type:"submit","data-testid":"save-profile",class:"profile-dialog__primary",disabled:u.value},I(u.value?"保存中...":"保存"),9,qPe)])],32)]),_:1},8,["modelValue","title"])])}}}),WPe=Ct(jPe,[["__scopeId","data-v-33bc14cf"]]),GPe=e=>dt.get("/api/v1/user/enterprise-verification/applications",{params:e}),YPe=(e,t)=>{const n=new FormData;return n.append("documentType",e),n.append("file",t),dt.post("/api/v1/user/enterprise-verification/uploads",n)},XPe=e=>dt.delete(`/api/v1/user/enterprise-verification/uploads/${e}`),QPe=e=>dt.post("/api/v1/user/enterprise-verification/applications",e),JPe=e=>dt.get(`/api/v1/user/enterprise-verification/applications/${e}/resubmission-draft`),ZPe=(e,t)=>dt.put(`/api/v1/user/enterprise-verification/applications/${e}/resubmit`,t),eMe=e=>dt.get(`/api/v1/user/enterprise-verification/applications/${e}/review-records`),O$=(e,t)=>dt.get(`/api/v1/user/enterprise-verification/applications/${e}/documents/${t}`,{responseType:"blob"}),oa=e=>(xt("data-v-816afdcd"),e=e(),Tt(),e),tMe={class:"enterprise-verification__header"},nMe=oa(()=>l("div",null,[l("p",{class:"enterprise-verification__eyebrow"},"企业账户服务"),l("h1",null,"企业认证"),l("p",null,"提交真实、清晰的认证材料。审核通过后即可使用企业受限功能。")],-1)),aMe={class:"enterprise-verification__header-actions"},sMe={class:"enterprise-verification__profile-status"},oMe={class:"enterprise-verification__history"},rMe=oa(()=>l("div",{class:"enterprise-verification__section-heading"},[l("div",null,[l("h2",null,"认证申请记录"),l("p",null,"可查看本人每次提交的时间、申请人身份、状态和最近审批时间;审批记录与认证材料请在详情中查看。")])],-1)),lMe={class:"enterprise-verification__history-actions"},iMe={class:"enterprise-verification__dialog-hint"},cMe={class:"enterprise-verification__upload-section"},uMe=oa(()=>l("p",null,"企业法人营业执照",-1)),dMe=oa(()=>l("small",null,"支持 JPG、JPEG、PNG,文件不超过 5MB",-1)),fMe=["src"],pMe={class:"enterprise-verification__upload-actions"},vMe=oa(()=>l("span",{class:"enterprise-verification__upload-plus"},"+",-1)),hMe=oa(()=>l("strong",null,"点击上传",-1)),mMe=oa(()=>l("em",null,"营业执照",-1)),gMe={class:"enterprise-verification__upload-row"},_Me=["src"],yMe={class:"enterprise-verification__upload-actions"},bMe=oa(()=>l("span",{class:"enterprise-verification__upload-plus"},"+",-1)),wMe=oa(()=>l("strong",null,"点击上传",-1)),CMe=oa(()=>l("em",null,"上传人像面",-1)),kMe=["src"],SMe={class:"enterprise-verification__upload-actions"},EMe=oa(()=>l("span",{class:"enterprise-verification__upload-plus"},"+",-1)),$Me=oa(()=>l("strong",null,"点击上传",-1)),xMe=oa(()=>l("em",null,"上传国徽面",-1)),TMe=oa(()=>l("small",null,"支持 JPG、JPEG、PNG,每张不超过 2MB",-1)),IMe=["src"],AMe={class:"enterprise-verification__upload-actions"},NMe=oa(()=>l("span",{class:"enterprise-verification__upload-plus"},"+",-1)),RMe=oa(()=>l("strong",null,"点击上传",-1)),PMe=oa(()=>l("em",null,"盖章授权书",-1)),MMe={class:"enterprise-verification__upload-row"},BMe=["src"],LMe={class:"enterprise-verification__upload-actions"},OMe=oa(()=>l("span",{class:"enterprise-verification__upload-plus"},"+",-1)),DMe=oa(()=>l("strong",null,"点击上传",-1)),VMe=oa(()=>l("em",null,"上传人像面",-1)),FMe=["src"],UMe={class:"enterprise-verification__upload-actions"},zMe=oa(()=>l("span",{class:"enterprise-verification__upload-plus"},"+",-1)),HMe=oa(()=>l("strong",null,"点击上传",-1)),KMe=oa(()=>l("em",null,"上传国徽面",-1)),qMe={class:"enterprise-verification__detail-company"},jMe={class:"enterprise-verification__detail-company-item"},WMe=oa(()=>l("span",null,"企业名称",-1)),GMe={class:"enterprise-verification__detail-company-item"},YMe=oa(()=>l("span",null,"统一社会信用代码",-1)),XMe=oa(()=>l("h3",{class:"enterprise-verification__detail-review-title"},[Ce("审批记录"),l("small",null,"每次提交认证申请都会保留一条审批记录。")],-1)),QMe=oa(()=>l("h3",{class:"enterprise-verification__detail-documents-title"},[Ce("认证材料"),l("small",null,"点击图片可放大查看,材料仅本人和审批人员可见。")],-1)),JMe={key:3,class:"enterprise-verification__detail-documents-empty"},ZMe={key:4,class:"enterprise-verification__detail-documents"},eBe=["onClick"],tBe=["src","alt"],nBe={key:1,class:"enterprise-verification__detail-document-fallback"},aBe=le({__name:"EnterpriseVerificationView",setup(e){const t=T({verificationStatus:"unverified",canSubmit:!1,pageNum:1,pageSize:20,total:0,list:[]}),n=T(!1),a=T(!1),s=T(!1),o=T(!1),r=T(null),i=T([]),c=At({}),u=T([]),d=T(),p=T(""),v=At({unifiedSocialCreditCode:"",applicantType:"legal_representative",legalRepresentativeName:"",legalRepresentativeIdCardNo:"",authorizedPersonName:"",authorizedPersonIdCardNo:"",businessLicenseUploadId:0,legalIdCardFrontUploadId:0,legalIdCardBackUploadId:0,authorizationUploadId:0,authorizedIdCardFrontUploadId:0,authorizedIdCardBackUploadId:0,commitmentAccepted:!1}),h=At({}),m=T(!1),g=T(!1),y=T(null),b=At({}),C=T([]),k=T(!1),S={pending:"审核中",approved:"已通过",rejected:"已驳回"},$={submitted:"提交申请",resubmitted:"重新提交",approved:"审批通过",rejected:"审批驳回"},E={legal_representative:"法定代表人",authorized_person:"被授权人"},R={business_license:"营业执照",legal_id_card_front:"法定代表人身份证(人像面)",legal_id_card_back:"法定代表人身份证(国徽面)",authorization_document:"授权书",authorized_id_card_front:"被授权人身份证(人像面)",authorized_id_card_back:"被授权人身份证(国徽面)"},A={business_license:"businessLicenseUploadId",legal_id_card_front:"legalIdCardFrontUploadId",legal_id_card_back:"legalIdCardBackUploadId",authorization_document:"authorizationUploadId",authorized_id_card_front:"authorizedIdCardFrontUploadId",authorized_id_card_back:"authorizedIdCardBackUploadId"},N=x(()=>({unverified:"尚未提交认证申请",pending:"认证申请审核中",verified:"企业认证已通过",failed:"最近申请未通过,可重新提交"})[t.value.verificationStatus]),P=x(()=>o.value?"编辑并重新提交认证申请":"新建企业认证申请"),B=x(()=>({unifiedSocialCreditCode:[{required:!0,message:"请输入统一社会信用代码",trigger:"blur"}],legalRepresentativeName:[{required:!0,message:"请输入法定代表人姓名",trigger:"blur"}],legalRepresentativeIdCardNo:[{required:!0,message:"请输入法定代表人身份证号",trigger:"blur"}],...o.value?{}:{businessLicenseUploadId:[{required:!0,message:"请上传营业执照",trigger:"change"}],legalIdCardFrontUploadId:[{required:!0,message:"请上传法定代表人身份证人像面",trigger:"change"}],legalIdCardBackUploadId:[{required:!0,message:"请上传法定代表人身份证国徽面",trigger:"change"}]}})),M=()=>{p.value="",new Set([...Object.values(h),...Object.values(c)]).forEach(H=>URL.revokeObjectURL(H)),Object.keys(h).forEach(H=>delete h[H]),Object.keys(c).forEach(H=>delete c[H])},j=()=>{M(),o.value=!1,r.value=null,i.value=[],u.value=[],Object.assign(v,{unifiedSocialCreditCode:t.value.unifiedSocialCreditCode||"",applicantType:"legal_representative",legalRepresentativeName:"",legalRepresentativeIdCardNo:"",authorizedPersonName:"",authorizedPersonIdCardNo:"",businessLicenseUploadId:0,legalIdCardFrontUploadId:0,legalIdCardBackUploadId:0,authorizationUploadId:0,authorizedIdCardFrontUploadId:0,authorizedIdCardBackUploadId:0,commitmentAccepted:!1}),s.value=!0},F=async H=>{try{const X=await JPe(H.applicationId);M(),o.value=!0,r.value=X.applicationId,i.value=X.documents,u.value=[],Object.assign(v,{unifiedSocialCreditCode:X.unifiedSocialCreditCode||"",applicantType:X.applicantType,legalRepresentativeName:X.legalRepresentativeName,legalRepresentativeIdCardNo:"",authorizedPersonName:X.authorizedPersonName||"",authorizedPersonIdCardNo:"",businessLicenseUploadId:0,legalIdCardFrontUploadId:0,legalIdCardBackUploadId:0,authorizationUploadId:0,authorizedIdCardFrontUploadId:0,authorizedIdCardBackUploadId:0,commitmentAccepted:!1});const he=await Promise.all(X.documents.map(async D=>{try{const Y=await O$(X.applicationId,D.fileId);return[D.documentType,URL.createObjectURL(Y)]}catch{return[D.documentType,""]}}));Object.assign(h,Object.fromEntries(he.filter(([,D])=>D))),s.value=!0}catch{}},q=()=>{M(),o.value=!1,r.value=null,i.value=[],u.value=[]},L=async()=>{n.value=!0;try{t.value=await GPe({pageNum:t.value.pageNum,pageSize:t.value.pageSize})}finally{n.value=!1}},U=async(H,X)=>{var Y,ne;const he=X.target,D=(Y=he.files)==null?void 0:Y[0];if(D)try{const{uploadId:re}=await YPe(H,D),se=A[H];se&&(v[se]=re,se in B.value&&((ne=d.value)==null||ne.validateField(se).catch(()=>{}))),h[H]&&(o.value&&i.value.some(ke=>ke.documentType===H)&&!c[H]?c[H]=h[H]:URL.revokeObjectURL(h[H])),h[H]=URL.createObjectURL(D),rt.success("材料上传成功")}catch{}finally{he.value=""}},O=H=>{p.value=h[H]||""},G=async H=>{var D;const X=A[H],he=X?Number(v[X]):0;if(he){try{await XPe(he),h[H]&&URL.revokeObjectURL(h[H]),delete h[H],X&&(v[X]=0,X in B.value&&((D=d.value)==null||D.validateField(X).catch(()=>{}))),c[H]&&(h[H]=c[H],delete c[H]),rt.success("材料已删除")}catch{}return}!o.value||!i.value.some(Y=>Y.documentType===H)||(h[H]&&URL.revokeObjectURL(h[H]),c[H]&&URL.revokeObjectURL(c[H]),delete h[H],delete c[H],i.value=i.value.filter(Y=>Y.documentType!==H),u.value=[...new Set([...u.value,H])],rt.success("材料将在重新提交后删除"))},ae=H=>{const X=A[H];return(X?Number(v[X]):0)>0||i.value.some(he=>he.documentType===H)},Z=async()=>{var X;if(await((X=d.value)==null?void 0:X.validate().catch(()=>!1))){if(!o.value&&(!v.businessLicenseUploadId||!v.legalIdCardFrontUploadId||!v.legalIdCardBackUploadId)||o.value&&(!ae("business_license")||!ae("legal_id_card_front")||!ae("legal_id_card_back"))){rt.warning("请上传营业执照和法定代表人身份证正反面");return}if(v.applicantType==="authorized_person"&&(!v.authorizedPersonName.trim()||!v.authorizedPersonIdCardNo.trim()||!o.value&&(!v.authorizationUploadId||!v.authorizedIdCardFrontUploadId||!v.authorizedIdCardBackUploadId)||o.value&&(!ae("authorization_document")||!ae("authorized_id_card_front")||!ae("authorized_id_card_back")))){rt.warning("请完整填写并上传被授权人相关材料");return}if(!v.commitmentAccepted)return rt.warning("请确认信息真实有效");a.value=!0;try{o.value&&r.value?(await ZPe(r.value,{unifiedSocialCreditCode:v.unifiedSocialCreditCode,legalRepresentativeName:v.legalRepresentativeName,legalRepresentativeIdCardNo:v.legalRepresentativeIdCardNo,authorizedPersonName:v.applicantType==="authorized_person"?v.authorizedPersonName:void 0,authorizedPersonIdCardNo:v.applicantType==="authorized_person"?v.authorizedPersonIdCardNo:void 0,businessLicenseUploadId:v.businessLicenseUploadId||void 0,legalIdCardFrontUploadId:v.legalIdCardFrontUploadId||void 0,legalIdCardBackUploadId:v.legalIdCardBackUploadId||void 0,authorizationUploadId:v.applicantType==="authorized_person"&&v.authorizationUploadId||void 0,authorizedIdCardFrontUploadId:v.applicantType==="authorized_person"&&v.authorizedIdCardFrontUploadId||void 0,authorizedIdCardBackUploadId:v.applicantType==="authorized_person"&&v.authorizedIdCardBackUploadId||void 0,removedDocumentTypes:u.value,commitmentAccepted:v.commitmentAccepted}),rt.success("企业认证申请已重新提交")):(await QPe({...v,authorizationUploadId:v.applicantType==="authorized_person"?v.authorizationUploadId:void 0,authorizedPersonName:v.applicantType==="authorized_person"?v.authorizedPersonName:void 0,authorizedPersonIdCardNo:v.applicantType==="authorized_person"?v.authorizedPersonIdCardNo:void 0,authorizedIdCardFrontUploadId:v.applicantType==="authorized_person"?v.authorizedIdCardFrontUploadId:void 0,authorizedIdCardBackUploadId:v.applicantType==="authorized_person"?v.authorizedIdCardBackUploadId:void 0}),rt.success("企业认证申请已提交")),M(),s.value=!1,await L()}finally{a.value=!1}}},te=async H=>{t.value.pageNum=H,await L()},ie=async H=>{k.value=!0;try{C.value=await eMe(H)}finally{k.value=!1}},oe=()=>{p.value=""},J=async H=>{y.value=H,m.value=!0,g.value=!0;try{const[X]=await Promise.all([Promise.all(H.documents.map(async he=>{try{const D=await O$(H.applicationId,he.fileId);return[he.fileId,URL.createObjectURL(D)]}catch{return[he.fileId,""]}})),ie(H.applicationId)]);if(!m.value){X.forEach(([,he])=>{he&&URL.revokeObjectURL(he)});return}Object.assign(b,Object.fromEntries(X))}finally{g.value=!1}},ee=()=>{Object.values(b).forEach(H=>{H&&URL.revokeObjectURL(H)}),Object.keys(b).forEach(H=>delete b[Number(H)]),y.value=null,C.value=[]},Q=H=>{p.value=b[H]||""};return ft(()=>void L()),on(()=>{M(),oe(),ee()}),(H,X)=>{const he=Ne("el-button"),D=Ne("el-skeleton"),Y=Ne("el-empty"),ne=Ne("el-table-column"),re=Ne("el-tag"),se=Ne("el-table"),ke=Ne("el-pagination"),ye=Ne("el-alert"),Se=Ne("el-input"),ce=Ne("el-form-item"),we=Ne("el-icon"),Ae=Ne("el-radio"),Fe=Ne("el-radio-group"),xe=Ne("el-checkbox"),me=Ne("el-form"),Me=Ne("el-dialog"),at=Ne("el-descriptions-item"),Qe=Ne("el-descriptions"),It=Ne("el-image-viewer");return _(),w("section",{class:V(["enterprise-verification page-container",{"enterprise-verification--resubmitting":o.value}])},[l("header",tMe,[nMe,l("div",aMe,[l("span",sMe,I(N.value),1),t.value.canSubmit?(_(),ue(he,{key:0,type:"primary",onClick:j},{default:W(()=>[Ce("新建认证申请")]),_:1})):K("",!0)])]),l("section",oMe,[rMe,n.value?(_(),ue(D,{key:0,rows:4,animated:""})):t.value.list.length===0?(_(),ue(Y,{key:1,description:"暂无认证申请记录"})):(_(),ue(se,{key:2,data:t.value.list},{default:W(()=>[z(ne,{prop:"submittedAt",label:"提交时间","min-width":"170"}),z(ne,{label:"申请人身份","min-width":"130"},{default:W(({row:je})=>[Ce(I(E[je.applicantType]||je.applicantType),1)]),_:1}),z(ne,{label:"状态","min-width":"110"},{default:W(({row:je})=>[z(re,{type:je.status==="approved"?"success":je.status==="rejected"?"danger":"warning"},{default:W(()=>[Ce(I(S[je.status]||je.status),1)]),_:2},1032,["type"])]),_:1}),z(ne,{label:"最近审批时间","min-width":"170"},{default:W(({row:je})=>[Ce(I(je.reviewedAt||"—"),1)]),_:1}),z(ne,{label:"操作",width:"240",fixed:"right"},{default:W(({row:je})=>[l("div",lMe,[z(he,{link:"",type:"primary",onClick:Vt=>J(je)},{default:W(()=>[Ce("查看详情")]),_:2},1032,["onClick"]),je.resubmittable?(_(),ue(he,{key:0,link:"",type:"primary",onClick:Vt=>F(je)},{default:W(()=>[Ce("编辑并重新提交")]),_:2},1032,["onClick"])):K("",!0)])]),_:1})]),_:1},8,["data"])),t.value.total>t.value.pageSize?(_(),ue(ke,{key:3,class:"enterprise-verification__pagination","current-page":t.value.pageNum,"page-size":t.value.pageSize,total:t.value.total,layout:"total, prev, pager, next",onCurrentChange:te},null,8,["current-page","page-size","total"])):K("",!0)]),t.value.lockedUntil?(_(),ue(ye,{key:0,type:"error",closable:!1,title:`身份信息校验已锁定,请于 ${t.value.lockedUntil} 后重试`},null,8,["title"])):K("",!0),z(Me,{modelValue:s.value,"onUpdate:modelValue":X[32]||(X[32]=je=>s.value=je),title:P.value,width:"920px","destroy-on-close":"","close-on-click-modal":!1,class:"enterprise-verification__dialog",onClosed:q},{footer:W(()=>[z(he,{onClick:X[31]||(X[31]=je=>s.value=!1)},{default:W(()=>[Ce("取消")]),_:1}),z(he,{type:"primary",loading:a.value,onClick:Z},{default:W(()=>[Ce(I(o.value?"重新提交认证":"提交认证"),1)]),_:1},8,["loading"])]),default:W(()=>[l("p",iMe,I(o.value?"原申请材料已加载,可预览、删除或替换;为保障身份信息安全,请重新输入并校验身份证号。":"请按证件类型上传真实、清晰的图片。企业资料仅用于认证审批,不会在商城公开展示。"),1),z(me,{ref_key:"formRef",ref:d,model:v,rules:B.value,"label-width":"170px",class:"enterprise-verification__form"},{default:W(()=>[z(ce,{label:"企业名称"},{default:W(()=>[z(Se,{"model-value":t.value.enterpriseName,disabled:""},null,8,["model-value"])]),_:1}),z(ce,{label:"统一社会信用代码",prop:"unifiedSocialCreditCode",required:""},{default:W(()=>[z(Se,{modelValue:v.unifiedSocialCreditCode,"onUpdate:modelValue":X[0]||(X[0]=je=>v.unifiedSocialCreditCode=je),maxlength:"32",placeholder:"请输入统一社会信用代码"},null,8,["modelValue"])]),_:1}),z(ce,{label:"上传企业证件",prop:"businessLicenseUploadId",required:""},{default:W(()=>[l("div",cMe,[uMe,dMe,l("label",{class:V(["enterprise-verification__upload-card",{"enterprise-verification__upload-card--preview":h.business_license}]),onClick:X[4]||(X[4]=je=>h.business_license&&je.preventDefault())},[l("input",{type:"file",accept:"image/png,image/jpeg",onChange:X[1]||(X[1]=je=>U("business_license",je))},null,32),h.business_license?(_(),w(_e,{key:0},[l("img",{src:h.business_license,alt:"营业执照预览"},null,8,fMe),l("span",pMe,[l("button",{type:"button","aria-label":"预览营业执照",onClick:X[2]||(X[2]=qe(je=>O("business_license"),["stop"]))},[z(we,null,{default:W(()=>[z(f(Dr))]),_:1})]),l("button",{type:"button","aria-label":"删除营业执照",onClick:X[3]||(X[3]=qe(je=>G("business_license"),["stop"]))},[z(we,null,{default:W(()=>[z(f(ac))]),_:1})])])],64)):(_(),w(_e,{key:1},[vMe,hMe,mMe],64))],2)])]),_:1}),z(ce,{label:"申请人身份",required:""},{default:W(()=>[z(Fe,{modelValue:v.applicantType,"onUpdate:modelValue":X[5]||(X[5]=je=>v.applicantType=je),disabled:o.value},{default:W(()=>[z(Ae,{value:"legal_representative"},{default:W(()=>[Ce("法定代表人")]),_:1}),z(Ae,{value:"authorized_person"},{default:W(()=>[Ce("被授权人")]),_:1})]),_:1},8,["modelValue","disabled"])]),_:1}),z(ce,{label:"法定代表人姓名",prop:"legalRepresentativeName",required:""},{default:W(()=>[z(Se,{modelValue:v.legalRepresentativeName,"onUpdate:modelValue":X[6]||(X[6]=je=>v.legalRepresentativeName=je)},null,8,["modelValue"])]),_:1}),z(ce,{label:"法定代表人身份证号",prop:"legalRepresentativeIdCardNo",required:""},{default:W(()=>[z(Se,{modelValue:v.legalRepresentativeIdCardNo,"onUpdate:modelValue":X[7]||(X[7]=je=>v.legalRepresentativeIdCardNo=je),placeholder:o.value?"请重新输入身份证号进行核验":""},null,8,["modelValue","placeholder"])]),_:1}),z(ce,{label:"法定代表人证件照片",required:""},{default:W(()=>[l("div",gMe,[l("label",{class:V(["enterprise-verification__upload-card enterprise-verification__upload-card--small",{"enterprise-verification__upload-card--preview":h.legal_id_card_front}]),onClick:X[11]||(X[11]=je=>h.legal_id_card_front&&je.preventDefault())},[l("input",{type:"file",accept:"image/png,image/jpeg",onChange:X[8]||(X[8]=je=>U("legal_id_card_front",je))},null,32),h.legal_id_card_front?(_(),w(_e,{key:0},[l("img",{src:h.legal_id_card_front,alt:"法定代表人身份证人像面预览"},null,8,_Me),l("span",yMe,[l("button",{type:"button","aria-label":"预览法定代表人身份证人像面",onClick:X[9]||(X[9]=qe(je=>O("legal_id_card_front"),["stop"]))},[z(we,null,{default:W(()=>[z(f(Dr))]),_:1})]),l("button",{type:"button","aria-label":"删除法定代表人身份证人像面",onClick:X[10]||(X[10]=qe(je=>G("legal_id_card_front"),["stop"]))},[z(we,null,{default:W(()=>[z(f(ac))]),_:1})])])],64)):(_(),w(_e,{key:1},[bMe,wMe,CMe],64))],2),l("label",{class:V(["enterprise-verification__upload-card enterprise-verification__upload-card--small",{"enterprise-verification__upload-card--preview":h.legal_id_card_back}]),onClick:X[15]||(X[15]=je=>h.legal_id_card_back&&je.preventDefault())},[l("input",{type:"file",accept:"image/png,image/jpeg",onChange:X[12]||(X[12]=je=>U("legal_id_card_back",je))},null,32),h.legal_id_card_back?(_(),w(_e,{key:0},[l("img",{src:h.legal_id_card_back,alt:"法定代表人身份证国徽面预览"},null,8,kMe),l("span",SMe,[l("button",{type:"button","aria-label":"预览法定代表人身份证国徽面",onClick:X[13]||(X[13]=qe(je=>O("legal_id_card_back"),["stop"]))},[z(we,null,{default:W(()=>[z(f(Dr))]),_:1})]),l("button",{type:"button","aria-label":"删除法定代表人身份证国徽面",onClick:X[14]||(X[14]=qe(je=>G("legal_id_card_back"),["stop"]))},[z(we,null,{default:W(()=>[z(f(ac))]),_:1})])])],64)):(_(),w(_e,{key:1},[EMe,$Me,xMe],64))],2)]),TMe]),_:1}),v.applicantType==="authorized_person"?(_(),w(_e,{key:0},[z(ce,{label:"被授权人姓名",required:""},{default:W(()=>[z(Se,{modelValue:v.authorizedPersonName,"onUpdate:modelValue":X[16]||(X[16]=je=>v.authorizedPersonName=je)},null,8,["modelValue"])]),_:1}),z(ce,{label:"被授权人身份证号",required:""},{default:W(()=>[z(Se,{modelValue:v.authorizedPersonIdCardNo,"onUpdate:modelValue":X[17]||(X[17]=je=>v.authorizedPersonIdCardNo=je)},null,8,["modelValue"])]),_:1}),z(ce,{label:"上传授权书",required:""},{default:W(()=>[l("label",{class:V(["enterprise-verification__upload-card enterprise-verification__upload-card--small",{"enterprise-verification__upload-card--preview":h.authorization_document}]),onClick:X[21]||(X[21]=je=>h.authorization_document&&je.preventDefault())},[l("input",{type:"file",accept:"image/png,image/jpeg",onChange:X[18]||(X[18]=je=>U("authorization_document",je))},null,32),h.authorization_document?(_(),w(_e,{key:0},[l("img",{src:h.authorization_document,alt:"授权书预览"},null,8,IMe),l("span",AMe,[l("button",{type:"button","aria-label":"预览授权书",onClick:X[19]||(X[19]=qe(je=>O("authorization_document"),["stop"]))},[z(we,null,{default:W(()=>[z(f(Dr))]),_:1})]),l("button",{type:"button","aria-label":"删除授权书",onClick:X[20]||(X[20]=qe(je=>G("authorization_document"),["stop"]))},[z(we,null,{default:W(()=>[z(f(ac))]),_:1})])])],64)):(_(),w(_e,{key:1},[NMe,RMe,PMe],64))],2)]),_:1}),z(ce,{label:"被授权人证件照片",required:""},{default:W(()=>[l("div",MMe,[l("label",{class:V(["enterprise-verification__upload-card enterprise-verification__upload-card--small",{"enterprise-verification__upload-card--preview":h.authorized_id_card_front}]),onClick:X[25]||(X[25]=je=>h.authorized_id_card_front&&je.preventDefault())},[l("input",{type:"file",accept:"image/png,image/jpeg",onChange:X[22]||(X[22]=je=>U("authorized_id_card_front",je))},null,32),h.authorized_id_card_front?(_(),w(_e,{key:0},[l("img",{src:h.authorized_id_card_front,alt:"被授权人身份证人像面预览"},null,8,BMe),l("span",LMe,[l("button",{type:"button","aria-label":"预览被授权人身份证人像面",onClick:X[23]||(X[23]=qe(je=>O("authorized_id_card_front"),["stop"]))},[z(we,null,{default:W(()=>[z(f(Dr))]),_:1})]),l("button",{type:"button","aria-label":"删除被授权人身份证人像面",onClick:X[24]||(X[24]=qe(je=>G("authorized_id_card_front"),["stop"]))},[z(we,null,{default:W(()=>[z(f(ac))]),_:1})])])],64)):(_(),w(_e,{key:1},[OMe,DMe,VMe],64))],2),l("label",{class:V(["enterprise-verification__upload-card enterprise-verification__upload-card--small",{"enterprise-verification__upload-card--preview":h.authorized_id_card_back}]),onClick:X[29]||(X[29]=je=>h.authorized_id_card_back&&je.preventDefault())},[l("input",{type:"file",accept:"image/png,image/jpeg",onChange:X[26]||(X[26]=je=>U("authorized_id_card_back",je))},null,32),h.authorized_id_card_back?(_(),w(_e,{key:0},[l("img",{src:h.authorized_id_card_back,alt:"被授权人身份证国徽面预览"},null,8,FMe),l("span",UMe,[l("button",{type:"button","aria-label":"预览被授权人身份证国徽面",onClick:X[27]||(X[27]=qe(je=>O("authorized_id_card_back"),["stop"]))},[z(we,null,{default:W(()=>[z(f(Dr))]),_:1})]),l("button",{type:"button","aria-label":"删除被授权人身份证国徽面",onClick:X[28]||(X[28]=qe(je=>G("authorized_id_card_back"),["stop"]))},[z(we,null,{default:W(()=>[z(f(ac))]),_:1})])])],64)):(_(),w(_e,{key:1},[zMe,HMe,KMe],64))],2)])]),_:1})],64)):K("",!0),z(ce,null,{default:W(()=>[z(xe,{modelValue:v.commitmentAccepted,"onUpdate:modelValue":X[30]||(X[30]=je=>v.commitmentAccepted=je)},{default:W(()=>[Ce("请确保提供的信息真实有效,若提供虚假信息,由此带来的全部结果由您承担。")]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue","title"]),z(Me,{modelValue:m.value,"onUpdate:modelValue":X[34]||(X[34]=je=>m.value=je),title:"认证申请详情",width:"760px","destroy-on-close":"",class:"enterprise-verification__dialog",onClosed:ee},{footer:W(()=>[z(he,{onClick:X[33]||(X[33]=je=>m.value=!1)},{default:W(()=>[Ce("关闭")]),_:1})]),default:W(()=>[y.value?(_(),w(_e,{key:0},[l("div",qMe,[l("div",jMe,[WMe,l("strong",null,I(t.value.enterpriseName||"-"),1)]),l("div",GMe,[YMe,l("strong",null,I(t.value.unifiedSocialCreditCode||"-"),1)])]),z(Qe,{column:2,border:"",class:"enterprise-verification__detail-descriptions"},{default:W(()=>[z(at,{label:"申请人身份"},{default:W(()=>[Ce(I(E[y.value.applicantType]||y.value.applicantType),1)]),_:1}),z(at,{label:"审批状态"},{default:W(()=>[z(re,{type:y.value.status==="approved"?"success":y.value.status==="rejected"?"danger":"warning"},{default:W(()=>[Ce(I(S[y.value.status]),1)]),_:1},8,["type"])]),_:1}),z(at,{label:"提交时间"},{default:W(()=>[Ce(I(y.value.submittedAt),1)]),_:1})]),_:1}),XMe,k.value?(_(),ue(D,{key:0,rows:3,animated:""})):(_(),ue(se,{key:1,data:C.value,border:"",class:"enterprise-verification__detail-review-table"},{default:W(()=>[z(ne,{prop:"createdAt",label:"操作时间","min-width":"160"}),z(ne,{label:"操作","min-width":"110"},{default:W(({row:je})=>[z(re,{type:je.action==="approved"?"success":je.action==="rejected"?"danger":"warning"},{default:W(()=>[Ce(I($[je.action]),1)]),_:2},1032,["type"])]),_:1}),z(ne,{prop:"opinion",label:"审批意见","min-width":"180","show-overflow-tooltip":""},{default:W(({row:je})=>[Ce(I(je.opinion||"-"),1)]),_:1})]),_:1},8,["data"])),QMe,g.value?(_(),ue(D,{key:2,rows:2,animated:""})):y.value.documents.length===0?(_(),w("div",JMe,"本条申请未随附认证材料")):(_(),w("div",ZMe,[(_(!0),w(_e,null,Re(y.value.documents,je=>(_(),w("figure",{key:je.fileId,class:"enterprise-verification__detail-document",onClick:Vt=>Q(je.fileId)},[b[je.fileId]?(_(),w("img",{key:0,src:b[je.fileId],alt:R[je.documentType]||je.documentType},null,8,tBe)):(_(),w("span",nBe,"图片加载失败")),l("figcaption",null,I(R[je.documentType]||je.documentType),1)],8,eBe))),128))]))],64)):K("",!0)]),_:1},8,["modelValue"]),p.value?(_(),ue(It,{key:1,"url-list":[p.value],onClose:oe},null,8,["url-list"])):K("",!0)],2)}}}),sBe=Ct(aBe,[["__scopeId","data-v-816afdcd"]]);function oBe(e,t){return dt.get("/mall-api/statistics/usage/overview",{params:{startTime:e,endTime:t}})}function D$(e,t,n){return dt.get("/mall-api/statistics/usage/model-distribution",{params:{startTime:e,endTime:t,metric:n}})}function V$(e,t,n){return dt.get("/mall-api/statistics/usage/group-distribution",{params:{startTime:e,endTime:t,metric:n}})}function rBe(e,t){return dt.get("/mall-api/statistics/usage/trend",{params:{startTime:e,endTime:t}})}function lBe(e,t,n){return dt.get("/mall-api/statistics/usage/group/overview",{params:{serviceGroupId:e,startTime:t,endTime:n}})}function iBe(e,t,n){return dt.get("/mall-api/statistics/usage/group/trend",{params:{serviceGroupId:e,startTime:t,endTime:n}})}const Da=e=>(xt("data-v-b71b81d6"),e=e(),Tt(),e),cBe={class:"usage-dashboard"},uBe={class:"usage-dashboard__header"},dBe={class:"usage-dashboard__title-bar"},fBe={class:"usage-dashboard__title"},pBe={class:"usage-dashboard__subtitle"},vBe=mn('

    统计数据约每 5 分钟更新一次,最新调用记录可能尚未计入

    ',1),hBe={class:"usage-dashboard__controls"},mBe={class:"usage-dashboard__range-row"},gBe=Da(()=>l("span",{class:"usage-dashboard__range-label"},"时间范围",-1)),_Be={class:"usage-dashboard__dropdown"},yBe=Da(()=>l("polyline",{points:"6 9 12 15 18 9"},null,-1)),bBe=[yBe],wBe={class:"usage-dashboard__dropdown-list"},CBe=["onClick"],kBe={key:0,class:"usage-dashboard__custom-inline"},SBe=Da(()=>l("span",{class:"usage-dashboard__custom-sep"},"至",-1)),EBe=["disabled","aria-busy"],$Be=Da(()=>l("polyline",{points:"23 4 23 10 17 10"},null,-1)),xBe=Da(()=>l("polyline",{points:"1 20 1 14 7 14"},null,-1)),TBe=Da(()=>l("path",{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"},null,-1)),IBe=[$Be,xBe,TBe],ABe=Da(()=>l("span",null,"刷新",-1)),NBe={key:0,class:"usage-dashboard__loading"},RBe={class:"usage-dashboard__metrics"},PBe={class:"usage-dashboard__metric-card"},MBe=Da(()=>l("span",{class:"usage-dashboard__metric-label"},"总请求数",-1)),BBe={class:"usage-dashboard__metric-value"},LBe={class:"usage-dashboard__metric-card"},OBe=Da(()=>l("span",{class:"usage-dashboard__metric-label"},"总 Token",-1)),DBe={class:"usage-dashboard__metric-value"},VBe={class:"usage-dashboard__metric-card"},FBe=Da(()=>l("span",{class:"usage-dashboard__metric-label"},"总积分",-1)),UBe={class:"usage-dashboard__metric-value"},zBe={class:"usage-dashboard__metric-card"},HBe=Da(()=>l("span",{class:"usage-dashboard__metric-label"},"平均耗时",-1)),KBe={class:"usage-dashboard__metric-value"},qBe={class:"usage-dashboard__section usage-dashboard__section--half"},jBe={class:"usage-dashboard__section-header"},WBe=Da(()=>l("h2",{class:"usage-dashboard__section-title"},"模型分布",-1)),GBe={class:"usage-dashboard__metric-toggle"},YBe={class:"usage-dashboard__dist-content"},XBe={class:"usage-dashboard__donut"},QBe={key:0,viewBox:"0 0 160 160",width:"160",height:"160"},JBe=Da(()=>l("circle",{cx:"80",cy:"80",r:"60",fill:"none",stroke:"#e5e7eb","stroke-width":"20"},null,-1)),ZBe=["stroke","stroke-dasharray","stroke-dashoffset","onMouseenter"],eLe={key:0,x:"80",y:"74","text-anchor":"middle","font-size":"10",fill:"#6b7280",style:{"pointer-events":"none"}},tLe={key:1,x:"80",y:"94","text-anchor":"middle","font-size":"18","font-weight":"700",fill:"#1f2937",style:{"pointer-events":"none"}},nLe={key:1,class:"usage-dashboard__empty-chart"},aLe={class:"usage-dashboard__dist-table"},sLe=Da(()=>l("div",{class:"usage-dashboard__dist-table-header"},[l("span",null,"模型"),l("span",null,"请求"),l("span",null,"Token"),l("span",null,"积分")],-1)),oLe={class:"usage-dashboard__dist-table-name"},rLe={key:0,class:"usage-dashboard__empty-list"},lLe={class:"usage-dashboard__section usage-dashboard__section--half"},iLe={class:"usage-dashboard__section-header"},cLe={class:"usage-dashboard__section-title"},uLe={class:"usage-dashboard__metric-toggle"},dLe={class:"usage-dashboard__dist-content"},fLe={class:"usage-dashboard__donut"},pLe={key:0,viewBox:"0 0 160 160",width:"160",height:"160"},vLe=Da(()=>l("circle",{cx:"80",cy:"80",r:"60",fill:"none",stroke:"#e5e7eb","stroke-width":"20"},null,-1)),hLe=["stroke","stroke-dasharray","stroke-dashoffset","onMouseenter"],mLe={key:0,x:"80",y:"74","text-anchor":"middle","font-size":"10",fill:"#6b7280",style:{"pointer-events":"none"}},gLe={key:1,x:"80",y:"94","text-anchor":"middle","font-size":"18","font-weight":"700",fill:"#1f2937",style:{"pointer-events":"none"}},_Le={key:1,class:"usage-dashboard__empty-chart"},yLe={class:"usage-dashboard__dist-table-header"},bLe=Da(()=>l("span",null,"请求",-1)),wLe=Da(()=>l("span",null,"Token",-1)),CLe=Da(()=>l("span",null,"积分",-1)),kLe={key:0},SLe=["title"],ELe={key:0},$Le={key:0,class:"usage-dashboard__empty-list"},xLe={class:"usage-dashboard__section"},TLe={class:"usage-dashboard__section-header"},ILe=Da(()=>l("h2",{class:"usage-dashboard__section-title"},"Token 使用趋势",-1)),ALe={key:0,class:"usage-dashboard__trend-granularity"},NLe={class:"usage-dashboard__trend-chart-container"},RLe=["viewBox","width"],PLe=["x1","y1","x2","y2"],MLe=["x","y"],BLe=["x1","y1","x2","y2"],LLe=["x1","y1","x2","y2"],OLe=["x","y"],DLe=["x1","y1","x2","y2"],VLe=["points"],FLe=["points"],ULe=["points"],zLe=["cx","cy"],HLe=["cx","cy"],KLe=["cx","cy"],qLe={key:1,class:"usage-dashboard__empty-chart"},jLe={class:"usage-dashboard__trend-tooltip-time"},WLe={class:"usage-dashboard__trend-tooltip-row"},GLe=Da(()=>l("span",{class:"usage-dashboard__legend-dot",style:{background:"#3b82f6"}},null,-1)),YLe={class:"usage-dashboard__trend-tooltip-row"},XLe=Da(()=>l("span",{class:"usage-dashboard__legend-dot",style:{background:"#10b981"}},null,-1)),QLe={class:"usage-dashboard__trend-tooltip-row"},JLe=Da(()=>l("span",{class:"usage-dashboard__legend-dot",style:{background:"#f59e0b"}},null,-1)),ZLe=mn('
    输入 Token输出 Token缓存 Token
    ',1),sf=280,F$=800,eOe=le({__name:"UsageDashboardView",setup(e){const t=[{key:"today",label:"今日"},{key:"24h",label:"近 24 小时"},{key:"yesterday",label:"昨日"},{key:"7d",label:"近 7 天"},{key:"14d",label:"近 14 天"},{key:"30d",label:"近 30 天"},{key:"thisMonth",label:"本月"},{key:"lastMonth",label:"上月"}],n=T("7d"),a=T(!1),s=T(""),o=T(""),r=T("tokens"),i=T("tokens"),c=_a(),u=x(()=>{var xe;return((xe=c.userInfo)==null?void 0:xe.userType)==="enterprise"}),d=[...t,{key:"custom",label:"自定义"}],p=x(()=>{var xe;return((xe=d.find(me=>me.key===n.value))==null?void 0:xe.label)??"近 7 天"});function v(xe){n.value=xe,xe!=="custom"&&(a.value=!1)}const h=T(!1),m=T(null),g=T(null),y=T(null),b=T(null),C=T(null),k=x(()=>{const xe=new Date,me=Me=>{const at=Qe=>String(Qe).padStart(2,"0");return`${Me.getFullYear()}-${at(Me.getMonth()+1)}-${at(Me.getDate())} ${at(Me.getHours())}:${at(Me.getMinutes())}:${at(Me.getSeconds())}`};switch(n.value){case"today":{const Me=new Date(xe.getFullYear(),xe.getMonth(),xe.getDate());return{start:me(Me),end:me(xe)}}case"24h":{const Me=new Date(xe.getTime()-864e5);return{start:me(Me),end:me(xe)}}case"yesterday":{const Me=new Date(xe.getFullYear(),xe.getMonth(),xe.getDate()-1),at=new Date(xe.getFullYear(),xe.getMonth(),xe.getDate());return{start:me(Me),end:me(at)}}case"7d":{const Me=new Date(xe.getTime()-6048e5);return{start:me(Me),end:me(xe)}}case"14d":{const Me=new Date(xe.getTime()-12096e5);return{start:me(Me),end:me(xe)}}case"30d":{const Me=new Date(xe.getTime()-2592e6);return{start:me(Me),end:me(xe)}}case"thisMonth":{const Me=new Date(xe.getFullYear(),xe.getMonth(),1);return{start:me(Me),end:me(xe)}}case"lastMonth":{const Me=new Date(xe.getFullYear(),xe.getMonth()-1,1),at=new Date(xe.getFullYear(),xe.getMonth(),1);return{start:me(Me),end:me(at)}}case"custom":{const Me=at=>at?at.replace("T"," ")+":00":"";return{start:Me(s.value),end:Me(o.value)}}}return{start:"",end:""}});async function S(){if(!(!k.value.start||!k.value.end)){h.value=!0;try{const[xe,me,Me,at,Qe]=await Promise.all([oBe(k.value.start,k.value.end),D$(k.value.start,k.value.end,r.value),V$(k.value.start,k.value.end,i.value),rBe(k.value.start,k.value.end),u.value?R0().catch(()=>null):Promise.resolve(null)]);m.value=xe,g.value=me,y.value=Me,b.value=at,C.value=Qe}catch{m.value=null,g.value=null,y.value=null,b.value=null,C.value=null}finally{h.value=!1}}}async function $(){if(!(!k.value.start||!k.value.end))try{g.value=await D$(k.value.start,k.value.end,r.value)}catch{g.value=null}}async function E(){if(!(!k.value.start||!k.value.end))try{y.value=await V$(k.value.start,k.value.end,i.value)}catch{y.value=null}}Te(n,()=>{n.value!=="custom"&&S()}),Te(r,()=>$()),Te(i,()=>E()),Te(u,(xe,me)=>{xe&&!me&&S(),xe||(C.value=null)});let R=null;Te([s,o],()=>{n.value==="custom"&&s.value&&o.value&&(R&&clearTimeout(R),R=setTimeout(()=>S(),400))}),ft(()=>S()),al(()=>{R&&clearTimeout(R)});function A(xe){return xe==null?"--":xe>=1e9?(xe/1e9).toFixed(2)+"B":xe>=1e6?(xe/1e6).toFixed(2)+"M":(xe>=1e3,(xe/1e3).toFixed(2)+"K")}function N(xe){return xe==null?"--":xe.toFixed(2)}const P=["#3b82f6","#10b981","#f59e0b","#ef4444","#8b5cf6","#ec4899","#14b8a6","#f97316","#6366f1","#84cc16","#9ca3af"];function B(xe){if(!xe||xe.length===0)return[];let me=0;const at=2*Math.PI*60;return xe.map((Qe,It)=>{const je=Qe.percentage/100*at,Vt=-me;return me+=je,{dash:je,offset:Vt,color:P[It%P.length],name:Qe.name,percentage:Qe.percentage}})}const M=x(()=>{var xe;return B(((xe=g.value)==null?void 0:xe.items)??[])}),j=x(()=>{var xe;return B(((xe=y.value)==null?void 0:xe.items)??[])}),F=x(()=>{var Me;const xe=((Me=y.value)==null?void 0:Me.items)??[],me=new Map;for(const at of xe)me.set(at.name,(me.get(at.name)??0)+1);return new Set(xe.filter(at=>(me.get(at.name)??0)>1).map(at=>at.name))}),q=x(()=>{var xe;return new Map((((xe=C.value)==null?void 0:xe.serviceGroups)??[]).map(me=>[me.id,me]))}),L=x(()=>{var me;const xe=((me=y.value)==null?void 0:me.items)??[];return u.value?xe.slice(0,10).map(Me=>{const at=Number(Me.code),Qe=Number.isInteger(at)&&at>0?q.value.get(at):void 0;return{...Me,remainingQuota:Qe==null?void 0:Qe.remainingQuota,monitorId:Qe?at:void 0}}):xe.slice(0,3)}),U=x(()=>u.value?"企业使用记录":"使用记录"),O=x(()=>u.value?"查看企业成员近几天的 AI API 使用与当前额度情况":"查看分析您近几天的AI API使用记录"),G=x(()=>u.value?"成员用量分布":"分组使用分布"),ae=x(()=>u.value?"成员":"分组"),Z=T(null),te=T(null),ie=x(()=>{var xe;return((xe=b.value)==null?void 0:xe.points)??[]}),oe=x(()=>{var Oe;const xe=ie.value;if(xe.length===0)return[];if((((Oe=b.value)==null?void 0:Oe.granularity)??"day")==="hour")return xe;const Me=[],at=xe[0],Qe=xe[xe.length-1],[It,je,Vt]=at.timestamp.substring(0,10).split("-").map(Number),[kt,Mt,Ht]=Qe.timestamp.substring(0,10).split("-").map(Number),Ee=new Map(xe.map(ot=>[ot.timestamp.substring(0,10),ot])),We=new Date(It,je-1,Vt),pe=new Date(kt,Mt-1,Ht);for(;We<=pe;){const ot=We.getFullYear(),St=String(We.getMonth()+1).padStart(2,"0"),vn=String(We.getDate()).padStart(2,"0"),_n=`${ot}-${St}-${vn}`,Ln=Ee.get(_n);Ln?Me.push(Ln):Me.push({timestamp:_n,inputTokens:0,outputTokens:0,cachedTokens:0,consumePoints:0}),We.setDate(We.getDate()+1)}return Me}),J=x(()=>Math.max(...oe.value.map(me=>Math.max(me.inputTokens,me.outputTokens,me.cachedTokens)),1)),ee={left:60,right:20,top:20,bottom:40},Q=sf-ee.top-ee.bottom,H=x(()=>{const xe=oe.value.length;return xe<=1?F$:Math.max(xe*40,F$)}),X=x(()=>H.value-ee.left-ee.right);function he(xe){const me=oe.value.length;return me<=1?ee.left+X.value/2:ee.left+xe/(me-1)*X.value}function D(xe){return ee.top+Q-xe/J.value*Q}const Y=x(()=>oe.value.map((xe,me)=>`${he(me)},${D(xe.inputTokens)}`).join(" ")),ne=x(()=>oe.value.map((xe,me)=>`${he(me)},${D(xe.outputTokens)}`).join(" ")),re=x(()=>oe.value.map((xe,me)=>`${he(me)},${D(xe.cachedTokens)}`).join(" ")),se=x(()=>{const xe=J.value;return[0,.25,.5,.75,1].map(me=>({label:A(me*xe),y:ee.top+Q-me*Q}))});function ke(xe){if(xe.includes(" ")){const[me,Me]=xe.split(" ");return`${me.slice(5)} ${Me.slice(0,5)}`}return xe.slice(5)}const ye=x(()=>{const xe=oe.value.length;if(xe===0)return[];const me=Math.max(1,Math.ceil(xe/10)),Me=[];for(let at=0;at1&&Me.length>0&&Me[Me.length-1].x!==he(xe-1)&&Me.push({x:he(xe-1),label:ke(oe.value[xe-1].timestamp)}),Me}),Se=T(null),ce=T(null);function we(xe){const me=ce.value;if(!me||oe.value.length===0)return;const Me=me.getBoundingClientRect(),at=Math.min(Me.width/H.value,Me.height/sf),Qe=H.value*at,It=(Me.width-Qe)/2,Vt=(xe.clientX-Me.left-It)/at,kt=oe.value.length;let Mt=0,Ht=Math.abs(Vt-he(0));for(let Ee=1;Ee{if(Se.value===null)return null;const xe=oe.value[Se.value];if(!xe)return null;const me=ce.value,Me=me==null?void 0:me.getBoundingClientRect();if(!Me)return null;const at=Math.min(Me.width/H.value,Me.height/sf),je=((Me.width-H.value*at)/2+he(Se.value)*at)/Me.width*100;return{leftPct:Math.max(15,Math.min(85,je)),timestamp:xe.timestamp,inputTokens:A(xe.inputTokens),outputTokens:A(xe.outputTokens),cachedTokens:A(xe.cachedTokens)}});return(xe,me)=>{var at,Qe,It,je,Vt,kt,Mt,Ht;const Me=Ne("RouterLink");return _(),w("div",cBe,[l("div",uBe,[l("div",dBe,[l("h1",fBe,I(U.value),1),l("p",pBe,I(O.value),1)]),vBe]),l("div",hBe,[l("div",mBe,[gBe,l("div",_Be,[l("button",{class:"usage-dashboard__dropdown-trigger",onClick:me[0]||(me[0]=Ee=>a.value=!a.value)},[l("span",null,I(p.value),1),(_(),w("svg",{class:V(["usage-dashboard__dropdown-arrow",{open:a.value}]),width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},bBe,2))]),a.value?(_(),w("div",{key:0,class:"usage-dashboard__dropdown-menu",onClick:me[3]||(me[3]=qe(()=>{},["stop"]))},[l("div",wBe,[(_(),w(_e,null,Re(d,Ee=>l("button",{key:Ee.key,class:V(["usage-dashboard__dropdown-item",{active:n.value===Ee.key}]),onClick:We=>v(Ee.key)},I(Ee.label),11,CBe)),64))]),n.value==="custom"?(_(),w("div",kBe,[et(l("input",{"onUpdate:modelValue":me[1]||(me[1]=Ee=>s.value=Ee),type:"datetime-local"},null,512),[[hn,s.value]]),SBe,et(l("input",{"onUpdate:modelValue":me[2]||(me[2]=Ee=>o.value=Ee),type:"datetime-local"},null,512),[[hn,o.value]])])):K("",!0)])):K("",!0)]),l("button",{class:"usage-dashboard__refresh",disabled:h.value,"aria-busy":h.value,onClick:me[4]||(me[4]=Ee=>S())},[(_(),w("svg",{class:V(["usage-dashboard__refresh-icon",{spinning:h.value}]),width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},IBe,2)),ABe],8,EBe),a.value?(_(),w("div",{key:0,class:"usage-dashboard__dropdown-overlay",onClick:me[5]||(me[5]=Ee=>a.value=!1)})):K("",!0)])]),h.value?(_(),w("div",NBe,"加载中...")):(_(),w(_e,{key:1},[l("div",RBe,[l("div",PBe,[MBe,l("span",BBe,I(((at=m.value)==null?void 0:at.totalRequests)??"--"),1)]),l("div",LBe,[OBe,l("span",DBe,I(A((((Qe=m.value)==null?void 0:Qe.totalInputTokens)??0)+(((It=m.value)==null?void 0:It.totalOutputTokens)??0))),1)]),l("div",VBe,[FBe,l("span",UBe,I(N((je=m.value)==null?void 0:je.totalConsumePoints)),1)]),l("div",zBe,[HBe,l("span",KBe,I((Vt=m.value)!=null&&Vt.avgLatencyMs?m.value.avgLatencyMs+"ms":"--"),1)])]),l("div",{class:V(["usage-dashboard__dist-row",{"usage-dashboard__dist-row--enterprise":u.value}])},[l("div",qBe,[l("div",jBe,[WBe,l("div",GBe,[l("button",{class:V({active:r.value==="tokens"}),onClick:me[6]||(me[6]=Ee=>r.value="tokens")},"按Token",2),l("button",{class:V({active:r.value==="points"}),onClick:me[7]||(me[7]=Ee=>r.value="points")},"按积分",2)])]),l("div",YBe,[l("div",XBe,[M.value.length>0?(_(),w("svg",QBe,[JBe,(_(!0),w(_e,null,Re(M.value,(Ee,We)=>(_(),w("circle",{key:We,cx:"80",cy:"80",r:"60",fill:"none",stroke:Ee.color,"stroke-width":"20","stroke-dasharray":`${Ee.dash} ${2*Math.PI*60-Ee.dash}`,"stroke-dashoffset":Ee.offset,transform:"rotate(-90 80 80)",style:Je([{cursor:"pointer",transition:"stroke-width 0.15s"},{strokeWidth:Z.value===We?26:20}]),onMouseenter:pe=>Z.value=We,onMouseleave:me[8]||(me[8]=pe=>Z.value=null)},null,44,ZBe))),128)),Z.value!==null&&M.value[Z.value]?(_(),w("text",eLe,I(M.value[Z.value].name.length>8?M.value[Z.value].name.slice(0,7)+"…":M.value[Z.value].name),1)):K("",!0),Z.value!==null&&M.value[Z.value]?(_(),w("text",tLe,I(M.value[Z.value].percentage)+"%",1)):K("",!0)])):(_(),w("span",nLe,"暂无数据"))]),l("div",aLe,[sLe,(_(!0),w(_e,null,Re((((kt=g.value)==null?void 0:kt.items)??[]).slice(0,3),(Ee,We)=>(_(),w("div",{key:Ee.code,class:"usage-dashboard__dist-table-row"},[l("span",oLe,[l("span",{class:"usage-dashboard__dist-dot",style:Je({background:P[We%P.length]})},null,4),Ce(" "+I(Ee.name),1)]),l("span",null,I(Ee.requestCount),1),l("span",null,I(A(Ee.tokenCount)),1),l("span",null,I(N(Ee.consumePoints)),1)]))),128)),(Ht=(Mt=g.value)==null?void 0:Mt.items)!=null&&Ht.length?K("",!0):(_(),w("span",rLe,"暂无数据"))])])]),l("div",lLe,[l("div",iLe,[l("h2",cLe,I(G.value),1),l("div",uLe,[l("button",{class:V({active:i.value==="tokens"}),onClick:me[9]||(me[9]=Ee=>i.value="tokens")},"按Token",2),l("button",{class:V({active:i.value==="points"}),onClick:me[10]||(me[10]=Ee=>i.value="points")},"按积分",2)])]),l("div",dLe,[l("div",fLe,[j.value.length>0?(_(),w("svg",pLe,[vLe,(_(!0),w(_e,null,Re(j.value,(Ee,We)=>(_(),w("circle",{key:We,cx:"80",cy:"80",r:"60",fill:"none",stroke:Ee.color,"stroke-width":"20","stroke-dasharray":`${Ee.dash} ${2*Math.PI*60-Ee.dash}`,"stroke-dashoffset":Ee.offset,transform:"rotate(-90 80 80)",style:Je([{cursor:"pointer",transition:"stroke-width 0.15s"},{strokeWidth:te.value===We?26:20}]),onMouseenter:pe=>te.value=We,onMouseleave:me[11]||(me[11]=pe=>te.value=null)},null,44,hLe))),128)),te.value!==null&&j.value[te.value]?(_(),w("text",mLe,I(j.value[te.value].name.length>8?j.value[te.value].name.slice(0,7)+"…":j.value[te.value].name),1)):K("",!0),te.value!==null&&j.value[te.value]?(_(),w("text",gLe,I(j.value[te.value].percentage)+"%",1)):K("",!0)])):(_(),w("span",_Le,"暂无数据"))]),l("div",{class:V(["usage-dashboard__dist-table",{"usage-dashboard__dist-table--enterprise":u.value}])},[l("div",yLe,[l("span",null,I(ae.value),1),bLe,wLe,CLe,u.value?(_(),w("span",kLe,"当前额度余量")):K("",!0)]),(_(!0),w(_e,null,Re(L.value,(Ee,We)=>(_(),w("div",{key:Ee.code,class:"usage-dashboard__dist-table-row"},[l("span",{class:"usage-dashboard__dist-table-name",title:F.value.has(Ee.name)&&Ee.code!=="null"?`${Ee.name} (ID: ${Ee.code})`:void 0},[l("span",{class:"usage-dashboard__dist-dot",style:Je({background:P[We%P.length]})},null,4),u.value&&Ee.monitorId?(_(),ue(Me,{key:0,class:"usage-dashboard__member-link",to:{name:"enterprise-seat-monitor",params:{id:Ee.monitorId}}},{default:W(()=>[Ce(I(Ee.name),1)]),_:2},1032,["to"])):(_(),w(_e,{key:1},[Ce(I(Ee.name),1)],64))],8,SLe),l("span",null,I(Ee.requestCount),1),l("span",null,I(A(Ee.tokenCount)),1),l("span",null,I(N(Ee.consumePoints)),1),u.value?(_(),w("span",ELe,I(Ee.remainingQuota===void 0?"--":N(Number(Ee.remainingQuota))),1)):K("",!0)]))),128)),L.value.length?K("",!0):(_(),w("span",$Le,"暂无数据"))],2)])])],2),l("div",xLe,[l("div",TLe,[ILe,b.value?(_(),w("span",ALe,I(b.value.granularity==="hour"?"按小时":"按天"),1)):K("",!0)]),l("div",NLe,[oe.value.length>0?(_(),w("svg",{key:0,ref_key:"trendSvgRef",ref:ce,viewBox:`0 0 ${H.value} ${sf}`,width:H.value,height:sf,preserveAspectRatio:"xMidYMid meet",onMousemove:we,onMouseleave:Ae},[(_(!0),w(_e,null,Re(se.value,Ee=>(_(),w("g",{key:Ee.y},[l("line",{x1:ee.left,y1:Ee.y,x2:H.value-ee.right,y2:Ee.y,stroke:"#f0f0f0","stroke-width":"1"},null,8,PLe),l("text",{x:ee.left-8,y:Ee.y+4,"text-anchor":"end","font-size":"11",fill:"#9ca3af"},I(Ee.label),9,MLe)]))),128)),l("line",{x1:ee.left,y1:ee.top+Q,x2:H.value-ee.right,y2:ee.top+Q,stroke:"#e5e7eb","stroke-width":"1"},null,8,BLe),l("line",{x1:ee.left,y1:ee.top,x2:ee.left,y2:ee.top+Q,stroke:"#e5e7eb","stroke-width":"1"},null,8,LLe),(_(!0),w(_e,null,Re(ye.value,Ee=>(_(),w("g",{key:Ee.x},[l("text",{x:Ee.x,y:ee.top+Q+20,"text-anchor":"middle","font-size":"11",fill:"#9ca3af"},I(Ee.label),9,OLe)]))),128)),Se.value!==null?(_(),w("line",{key:0,x1:he(Se.value),y1:ee.top,x2:he(Se.value),y2:ee.top+Q,stroke:"#d1d5db","stroke-width":"1","stroke-dasharray":"4 2"},null,8,DLe)):K("",!0),l("polyline",{fill:"none",stroke:"#3b82f6","stroke-width":"2",points:Y.value},null,8,VLe),l("polyline",{fill:"none",stroke:"#10b981","stroke-width":"2",points:ne.value},null,8,FLe),l("polyline",{fill:"none",stroke:"#f59e0b","stroke-width":"2",points:re.value},null,8,ULe),(_(!0),w(_e,null,Re(oe.value,(Ee,We)=>(_(),w("g",{key:We},[l("circle",{cx:he(We),cy:D(Ee.inputTokens),r:"3",fill:"#3b82f6"},null,8,zLe),l("circle",{cx:he(We),cy:D(Ee.outputTokens),r:"3",fill:"#10b981"},null,8,HLe),l("circle",{cx:he(We),cy:D(Ee.cachedTokens),r:"3",fill:"#f59e0b"},null,8,KLe)]))),128))],40,RLe)):(_(),w("div",qLe,"暂无数据")),Fe.value?(_(),w("div",{key:2,class:"usage-dashboard__trend-tooltip",style:Je({left:Fe.value.leftPct+"%"})},[l("div",jLe,I(ke(Fe.value.timestamp)),1),l("div",WLe,[GLe,Ce("输入 "+I(Fe.value.inputTokens),1)]),l("div",YLe,[XLe,Ce("输出 "+I(Fe.value.outputTokens),1)]),l("div",QLe,[JLe,Ce("缓存 "+I(Fe.value.cachedTokens),1)])],4)):K("",!0)]),ZLe])],64))])}}}),tOe=Ct(eOe,[["__scopeId","data-v-b71b81d6"]]),vl=e=>(xt("data-v-7e6da92c"),e=e(),Tt(),e),nOe={class:"page-container user-security-page"},aOe={key:0,class:"user-security-page__skeleton"},sOe=vl(()=>l("div",{class:"user-security-page__skeleton-bar user-security-page__skeleton-bar--lg"},null,-1)),oOe=vl(()=>l("div",{class:"user-security-page__skeleton-bar"},null,-1)),rOe=vl(()=>l("div",{class:"user-security-page__skeleton-card"},null,-1)),lOe=vl(()=>l("div",{class:"user-security-page__skeleton-card"},null,-1)),iOe=[sOe,oOe,rOe,lOe],cOe={key:0,class:"user-security-page__summary"},uOe=vl(()=>l("h2",null,"实名认证",-1)),dOe=vl(()=>l("dt",null,"实名主体",-1)),fOe=vl(()=>l("dt",null,"证件号码",-1)),pOe={class:"identity-form__field"},vOe=vl(()=>l("span",null,"原密码",-1)),hOe={class:"password-form__input-wrapper"},mOe=["type","disabled"],gOe=["disabled"],_Oe={class:"identity-form__field"},yOe=vl(()=>l("span",null,"新密码",-1)),bOe={class:"password-form__input-wrapper"},wOe=["type","disabled"],COe=["disabled"],kOe={class:"identity-form__field"},SOe=vl(()=>l("span",null,"确认新密码",-1)),EOe={class:"password-form__input-wrapper"},$Oe=["type","disabled"],xOe=["disabled"],TOe={class:"identity-form__actions"},IOe=["disabled"],AOe=["disabled"],NOe=le({__name:"UserSecurityView",setup(e){var B,M,j;const t=pn(),n=_a(),a=x(()=>{var F;return((F=n.userInfo)==null?void 0:F.userType)==="enterprise"}),s=T(!0),o=T(!1),r=T(!1),i=T(""),c=At({oldPassword:!1,newPassword:!1,confirmPassword:!1}),u=T({verifyStatus:((B=n.userInfo)==null?void 0:B.identityVerifyStatus)||"unverified",realName:(M=n.userInfo)==null?void 0:M.identityRealName,idCardMask:(j=n.userInfo)==null?void 0:j.identityIdCardMask}),d=At({oldPassword:"",newPassword:"",confirmPassword:""}),p=x(()=>!!(d.oldPassword&&d.newPassword&&d.confirmPassword)),v=x(()=>ew(d.newPassword)),h=x(()=>!!d.newPassword&&!Ai(d.newPassword)),m=x(()=>!d.confirmPassword||d.newPassword===d.confirmPassword),g={unverified:"未实名",verified:"已实名",failed:"核验未通过"},y={unverified:"请提交本人姓名和身份证号完成二要素核验。",verified:"已完成身份证二要素核验,实名信息仅展示脱敏结果。",failed:"上次实名核验未通过,请核对姓名和身份证号后重新提交。"},b=x(()=>g[u.value.verifyStatus]),C=x(()=>y[u.value.verifyStatus]),k=async()=>{s.value=!0;try{u.value=await Q6()}finally{s.value=!1}},S=async()=>{await m2()&&await k()},$=()=>{d.oldPassword="",d.newPassword="",d.confirmPassword="",c.oldPassword=!1,c.newPassword=!1,c.confirmPassword=!1,i.value=""},E=()=>{$(),rt.warning("修改完成后需重新登录"),r.value=!0},R=()=>(i.value="",!d.oldPassword||!d.newPassword||!d.confirmPassword?!1:Ai(d.newPassword)?d.newPassword!==d.confirmPassword?(i.value="两次输入的新密码不一致",!1):d.oldPassword===d.newPassword?(i.value="新密码不能与原密码相同",!1):!0:(i.value="密码暂不符合规则,请查看侧边规则提示。",!1)),A=async()=>{if(R()){o.value=!0;try{await phe({oldPassword:d.oldPassword,newPassword:d.newPassword,confirmPassword:d.confirmPassword}),r.value=!1,$(),n.clearSession(),rt.success("密码修改成功,请重新登录"),t.replace({name:"login"})}finally{o.value=!1}}},N=()=>{t.push({name:"user-phone"})},P=()=>{t.push({name:"user-devices"})};return ft(()=>{if(a.value){s.value=!1;return}k()}),(F,q)=>{var G,ae;const L=Ne("el-icon"),U=Ne("el-alert"),O=Ne("el-dialog");return _(),w("section",nOe,[s.value?(_(),w("div",aOe,iOe)):(_(),w(_e,{key:1},[a.value?K("",!0):(_(),w("section",cOe,[l("div",null,[l("span",{class:V(["user-security-page__status",`user-security-page__status--${u.value.verifyStatus}`])},I(b.value),3),uOe,l("p",null,I(C.value),1)]),l("dl",null,[l("div",null,[dOe,l("dd",null,I(u.value.realName||"--"),1)]),l("div",null,[fOe,l("dd",null,I(u.value.idCardMask||"--"),1)])])])),z(PNe,{phone:((G=f(n).userInfo)==null?void 0:G.phone)||"--","show-identity":!a.value,"identity-status":u.value.verifyStatus,"identity-status-text":b.value,"device-status-text":"查看已登录设备与当前会话","phone-status-text":((ae=f(n).userInfo)==null?void 0:ae.phone)||"--",onVerifyIdentity:S,onChangePassword:E,onChangePhone:N,onManageDevices:P},null,8,["phone","show-identity","identity-status","identity-status-text","phone-status-text"])],64)),z(O,{modelValue:r.value,"onUpdate:modelValue":q[7]||(q[7]=Z=>r.value=Z),class:"user-security-page__dialog",title:"修改密码",width:"480px","close-on-click-modal":!o.value},{default:W(()=>[l("form",{class:"identity-form password-form",onSubmit:qe(A,["prevent"])},[l("label",pOe,[vOe,l("div",hOe,[et(l("input",{"onUpdate:modelValue":q[0]||(q[0]=Z=>d.oldPassword=Z),"data-testid":"password-old",type:c.oldPassword?"text":"password",autocomplete:"current-password",placeholder:"请输入当前登录密码",disabled:o.value},null,8,mOe),[[$i,d.oldPassword,void 0,{trim:!0}]]),l("button",{type:"button",class:"password-form__visibility-toggle","aria-label":"切换原密码可见性",disabled:o.value,onClick:q[1]||(q[1]=Z=>c.oldPassword=!c.oldPassword)},[z(L,null,{default:W(()=>[c.oldPassword?(_(),ue(f(Zv),{key:1})):(_(),ue(f(Dr),{key:0}))]),_:1})],8,gOe)])]),l("label",_Oe,[yOe,l("div",bOe,[et(l("input",{"onUpdate:modelValue":q[2]||(q[2]=Z=>d.newPassword=Z),"data-testid":"password-new",type:c.newPassword?"text":"password",autocomplete:"new-password",maxlength:"20",placeholder:"8-20位,含大小写字母、数字和符号",disabled:o.value},null,8,wOe),[[$i,d.newPassword,void 0,{trim:!0}]]),l("button",{type:"button",class:"password-form__visibility-toggle","aria-label":"切换新密码可见性",disabled:o.value,onClick:q[3]||(q[3]=Z=>c.newPassword=!c.newPassword)},[z(L,null,{default:W(()=>[c.newPassword?(_(),ue(f(Zv),{key:1})):(_(),ue(f(Dr),{key:0}))]),_:1})],8,COe),z(tw,{visible:h.value,checks:v.value},null,8,["visible","checks"])])]),l("label",kOe,[SOe,l("div",EOe,[et(l("input",{"onUpdate:modelValue":q[4]||(q[4]=Z=>d.confirmPassword=Z),"data-testid":"password-confirm",type:c.confirmPassword?"text":"password",autocomplete:"new-password",maxlength:"20",placeholder:"请再次输入新密码",disabled:o.value},null,8,$Oe),[[$i,d.confirmPassword,void 0,{trim:!0}]]),l("button",{type:"button",class:"password-form__visibility-toggle","aria-label":"切换确认密码可见性",disabled:o.value,onClick:q[5]||(q[5]=Z=>c.confirmPassword=!c.confirmPassword)},[z(L,null,{default:W(()=>[c.confirmPassword?(_(),ue(f(Zv),{key:1})):(_(),ue(f(Dr),{key:0}))]),_:1})],8,xOe)]),m.value?K("",!0):(_(),ue(U,{key:0,title:"两次输入的新密码不一致",type:"error",closable:!1,"show-icon":""}))]),i.value?(_(),ue(U,{key:0,"data-testid":"change-password-error",title:i.value,type:"warning",closable:!1,"show-icon":""},null,8,["title"])):K("",!0),l("div",TOe,[l("button",{type:"button",class:"identity-form__secondary",disabled:o.value,onClick:q[6]||(q[6]=Z=>r.value=!1)}," 取消 ",8,IOe),l("button",{type:"submit","data-testid":"submit-password",class:"identity-form__primary",disabled:o.value||!p.value},I(o.value?"提交中":"确认修改"),9,AOe)])],32)]),_:1},8,["modelValue","close-on-click-modal"])])}}}),ROe=Ct(NOe,[["__scopeId","data-v-7e6da92c"]]),VA=()=>dt.get("/api/v1/credit/balance"),FA=()=>dt.get("/api/v1/credit/packages"),POe=e=>dt.get("/api/v1/credit/logs",{params:e}),MOe=()=>dt.get("/api/v1/credit/grants"),M0=e=>(xt("data-v-7df1694c"),e=e(),Tt(),e),BOe={class:"page-container credit-logs-view"},LOe={class:"credit-logs-view__balance-hero"},OOe={class:"credit-logs-view__balance-main"},DOe=M0(()=>l("span",null,"当前积分余额",-1)),VOe={key:0},FOe={key:1},UOe={key:2},zOe={key:3,class:"credit-logs-view__expiring-hint"},HOe={key:4,"aria-live":"polite",class:"credit-logs-view__expiring-hint"},KOe={class:"credit-logs-view__balance-metrics"},qOe={class:"page-card credit-logs-view__card"},jOe=M0(()=>l("header",{class:"credit-logs-view__header"},[l("h2",null,"积分批次"),l("p",{class:"credit-logs-view__grants-sub"},"按先到期先使用排序,仅展示可用中的批次")],-1)),WOe={key:0,"aria-live":"polite",class:"credit-logs-view__state credit-logs-view__state--error"},GOe={key:1,class:"credit-logs-view__state"},YOe={key:2,class:"credit-logs-view__state"},XOe={key:3,class:"credit-logs-view__grants-list"},QOe={class:"credit-logs-view__grant-head"},JOe={class:"credit-logs-view__grant-name"},ZOe={class:"credit-logs-view__grant-expire"},eDe={class:"credit-logs-view__grant-usage"},tDe={class:"credit-logs-view__grant-bar"},nDe={class:"credit-logs-view__grant-amount"},aDe={class:"credit-logs-view__grant-remaining"},sDe={class:"page-card credit-logs-view__card"},oDe=M0(()=>l("header",{class:"credit-logs-view__header"},[l("h2",null,"积分流水")],-1)),rDe={key:0,"aria-live":"polite",class:"credit-logs-view__state credit-logs-view__state--error"},lDe={key:1,class:"credit-logs-view__state"},iDe={key:2,class:"credit-logs-view__state"},cDe={key:3,class:"credit-logs-view__table-wrap"},uDe={class:"credit-logs-view__table"},dDe=M0(()=>l("thead",null,[l("tr",null,[l("th",null,"时间"),l("th",null,"类型"),l("th",null,"说明"),l("th",null,"数量"),l("th",null,"余额"),l("th",null,"到期时间")])],-1)),fDe={class:"credit-logs-view__type"},pDe={key:4,class:"credit-logs-view__footer"},vDe=le({__name:"CreditLogsView",setup(e){const t=T(null),n=T(!1),a=T(""),s=At({transType:"",pageNum:1,pageSize:10}),o=T([]),r=T(0),i=[10,20,50],c=T(!1),u=T(""),d=T([]),p=T(!1),v=T(""),h=x(()=>{var B,M,j,F;return[{label:"免费积分",value:((B=t.value)==null?void 0:B.freeCreditBalance)??"—"},{label:"真实积分",value:((M=t.value)==null?void 0:M.paidCreditBalance)??"—"},{label:"累计购买积分",value:((j=t.value)==null?void 0:j.totalRecharge)??"—"},{label:"累计消耗",value:((F=t.value)==null?void 0:F.totalConsume)??"—"}]}),m=x(()=>!0),g=async()=>{n.value=!0,a.value="";try{t.value=await VA()}catch(B){t.value=null,a.value=B instanceof Error?B.message:"余额加载失败,请稍后重试。"}finally{n.value=!1}},y=async()=>{c.value=!0,u.value="";try{const B=await POe({transType:s.transType||void 0,pageNum:s.pageNum,pageSize:s.pageSize});o.value=B.list,r.value=B.total}catch(B){o.value=[],r.value=0,u.value=B instanceof Error?B.message:"流水加载失败,请稍后重试。"}finally{c.value=!1}},b=()=>{s.pageNum=1,Promise.all([g(),y()])},C=async()=>{p.value=!0,v.value="";try{const B=await MOe();d.value=B.list}catch(B){d.value=[],v.value=B instanceof Error?B.message:"积分批次加载失败,请稍后重试。"}finally{p.value=!1}},k=B=>B.expireTime||"永久有效",S=B=>{const M=Number(B.grantAmount);if(!Number.isFinite(M)||M<=0)return 0;const j=Number(B.usedAmount)/M;return!Number.isFinite(j)||j<=0?0:Math.min(1,Math.max(0,j))},$=()=>{s.transType="",s.pageNum=1,b()},E=B=>{s.pageNum=B,y()},R=B=>{s.pageSize=B,s.pageNum=1,y()},A=B=>B.transTypeName||B.transType,N=B=>B.remark?B.remark:B.bizId?B.bizType?`${B.bizType}:${B.bizId}`:B.bizId:B.changeSource||"—",P=B=>Number(B)>=0?"is-positive":"is-negative";return ft(()=>{g(),C(),y()}),(B,M)=>{var O,G,ae;const j=Ne("RouterLink"),F=Ne("el-option"),q=Ne("el-select"),L=Ne("el-button"),U=Ne("el-pagination");return _(),w("section",BOe,[l("section",LOe,[l("div",OOe,[DOe,n.value?(_(),w("strong",VOe,"加载中…")):a.value?(_(),w("strong",FOe,"—")):(_(),w("strong",UOe,I(((O=t.value)==null?void 0:O.totalCreditBalance)??"—"),1)),!n.value&&!a.value&&Number(((G=t.value)==null?void 0:G.expiringSoonCredit)||0)>0?(_(),w("p",zOe," 含即将过期积分 "+I((ae=t.value)==null?void 0:ae.expiringSoonCredit),1)):K("",!0),a.value?(_(),w("p",HOe,I(a.value),1)):K("",!0)]),l("ul",KOe,[(_(!0),w(_e,null,Re(h.value,Z=>(_(),w("li",{key:Z.label},[l("span",null,I(Z.label),1),l("strong",null,I(Z.value),1)]))),128))]),z(j,{to:"/credits/purchase",class:"credit-logs-view__purchase-btn"},{default:W(()=>[Ce("购买积分")]),_:1})]),l("section",qOe,[jOe,v.value?(_(),w("div",WOe,I(v.value),1)):p.value?(_(),w("div",GOe,"积分批次加载中…")):d.value.length===0?(_(),w("div",YOe,"暂无可用积分批次")):(_(),w("ul",XOe,[(_(!0),w(_e,null,Re(d.value,Z=>(_(),w("li",{key:Z.id,class:"credit-logs-view__grant"},[l("div",QOe,[l("span",JOe,I(Z.creditTypeName),1),l("span",ZOe,"有效期:"+I(k(Z)),1)]),l("div",eDe,[l("div",tDe,[l("i",{"aria-hidden":"true",style:Je({"--usage":String(S(Z))})},null,4)]),l("span",nDe,"已用 "+I(Z.usedAmount)+" / "+I(Z.grantAmount),1),l("span",aDe,"剩余 "+I(Z.remainingAmount),1)])]))),128))]))]),l("section",sDe,[oDe,l("form",{class:"credit-logs-view__filters",onSubmit:qe(b,["prevent"])},[z(q,{modelValue:s.transType,"onUpdate:modelValue":M[0]||(M[0]=Z=>s.transType=Z),class:"credit-logs-view__filter-select mall-select-red-theme","popper-class":"credit-logs-view__select-dropdown mall-select-red-dropdown",placeholder:"流水类型…","aria-label":"流水类型",clearable:""},{default:W(()=>[z(F,{label:"购买",value:"recharge"}),z(F,{label:"消耗",value:"consume"}),z(F,{label:"赠送",value:"gift"}),z(F,{label:"积分券赠送",value:"coupon"}),z(F,{label:"管理员调整",value:"adjust"})]),_:1},8,["modelValue"]),z(L,{type:"primary","native-type":"submit",class:"credit-logs-view__filter-btn credit-logs-view__filter-btn--primary",loading:c.value},{default:W(()=>[Ce(" 查询 ")]),_:1},8,["loading"]),z(L,{class:"credit-logs-view__filter-btn",onClick:$},{default:W(()=>[Ce("重置")]),_:1})],32),u.value?(_(),w("div",rDe,I(u.value),1)):c.value?(_(),w("div",lDe,"积分流水加载中…")):o.value.length===0?(_(),w("div",iDe,"暂无积分流水")):(_(),w("div",cDe,[l("table",uDe,[dDe,l("tbody",null,[(_(!0),w(_e,null,Re(o.value,Z=>(_(),w("tr",{key:Z.transNo},[l("td",null,I(Z.createdAt),1),l("td",null,[l("span",fDe,I(A(Z)),1)]),l("td",null,I(N(Z)),1),l("td",{class:V(P(Z.amount))},I(Z.amount),3),l("td",null,I(Z.balanceAfter),1),l("td",null,[l("span",{class:V(["credit-logs-view__expire-cell",{"credit-logs-view__expire-cell--permanent":!Z.expireTime}])},I(Z.expireTime||"永久有效"),3)])]))),128))])])])),m.value?(_(),w("footer",pDe,[z(U,{"current-page":s.pageNum,"onUpdate:currentPage":M[1]||(M[1]=Z=>s.pageNum=Z),"page-size":s.pageSize,"onUpdate:pageSize":M[2]||(M[2]=Z=>s.pageSize=Z),background:"","page-sizes":i,"popper-class":"credit-logs-pagination-size-dropdown",total:r.value,layout:"total, sizes, prev, pager, next",onCurrentChange:E,onSizeChange:R},null,8,["current-page","page-size","total"])])):K("",!0)])])}}}),hDe=Ct(vDe,[["__scopeId","data-v-7df1694c"]]),zd=e=>(xt("data-v-6defb904"),e=e(),Tt(),e),mDe={class:"page-card credit-balance-panel"},gDe={class:"credit-balance-panel__header"},_De=zd(()=>l("div",null,[l("h2",null,"账户余额"),l("p",null,"免费积分优先扣减,真实积分其次扣减。")],-1)),yDe={key:0,class:"credit-balance-panel__state"},bDe={key:1,class:"credit-balance-panel__state credit-balance-panel__state--error"},wDe={key:2,class:"credit-balance-panel__state"},CDe={key:3,class:"credit-balance-panel__grid"},kDe={class:"credit-balance-panel__item credit-balance-panel__item--free"},SDe=zd(()=>l("span",null,"免费积分",-1)),EDe={class:"credit-balance-panel__item credit-balance-panel__item--paid"},$De=zd(()=>l("span",null,"真实积分",-1)),xDe={class:"credit-balance-panel__item credit-balance-panel__item--total"},TDe=zd(()=>l("span",null,"总积分",-1)),IDe={class:"credit-balance-panel__item"},ADe=zd(()=>l("span",null,"累计购买积分",-1)),NDe={class:"credit-balance-panel__item"},RDe=zd(()=>l("span",null,"累计消耗",-1)),PDe={key:4,class:"credit-balance-panel__expiring"},MDe={key:5,class:"credit-balance-panel__debt"},BDe=le({__name:"CreditBalancePanel",props:{balance:{},loading:{type:Boolean},errorMessage:{}},setup(e){return(t,n)=>{const a=Ne("RouterLink");return _(),w("section",mDe,[l("header",gDe,[_De,z(a,{to:"/credits/logs",class:"credit-balance-panel__logs-link"},{default:W(()=>[Ce("积分明细")]),_:1})]),t.loading?(_(),w("div",yDe,"余额加载中...")):t.errorMessage?(_(),w("div",bDe,I(t.errorMessage),1)):t.balance?(_(),w("ul",CDe,[l("li",kDe,[SDe,l("strong",null,I(t.balance.freeCreditBalance),1)]),l("li",EDe,[$De,l("strong",null,I(t.balance.paidCreditBalance),1)]),l("li",xDe,[TDe,l("strong",null,I(t.balance.totalCreditBalance),1)]),l("li",IDe,[ADe,l("strong",null,I(t.balance.totalRecharge),1)]),l("li",NDe,[RDe,l("strong",null,I(t.balance.totalConsume),1)])])):(_(),w("div",wDe,"暂无余额数据")),t.balance&&Number(t.balance.expiringSoonCredit||0)>0?(_(),w("p",PDe," 含即将过期积分 "+I(t.balance.expiringSoonCredit),1)):K("",!0),t.balance&&Number(t.balance.paidCreditDebt||0)>0?(_(),w("p",MDe," 真实积分欠款 "+I(t.balance.paidCreditDebt),1)):K("",!0)])}}}),LDe=Ct(BDe,[["__scopeId","data-v-6defb904"]]),ODe=e=>(xt("data-v-558ddf9e"),e=e(),Tt(),e),DDe={class:"page-container credit-purchase-view"},VDe={class:"page-card credit-purchase-view__packages"},FDe=ODe(()=>l("header",{class:"credit-purchase-view__section-header"},[l("div",null,[l("h2",null,"积分套餐"),l("p",null,"选择适合的积分套餐,确认订单后完成支付即可到账。")])],-1)),UDe={key:0,class:"credit-purchase-view__state"},zDe={key:1,class:"credit-purchase-view__state credit-purchase-view__state--error"},HDe={key:2,class:"credit-purchase-view__state"},KDe={key:3,class:"credit-purchase-view__package-grid"},qDe={class:"credit-purchase-view__package-main"},jDe={class:"credit-purchase-view__package-side"},WDe={key:0},GDe={key:1},YDe=["onClick"],XDe=mn('
    购买须知
    • 使用规则积分仅限模型市场使用
    • 有效期积分长期有效
    • 退订规则虚拟商品订购后未使用且未开票7天内可退订,退订会扣除订单产生的积分(包括订购活动赠送的积分),如积分余量不足则无法退订
    购买权益提示订单按套餐售价结算。仅"可叠加券"套餐可用购买折扣券,支持固定金额减免或比例折扣。
    ',2),QDe=le({__name:"CreditPurchaseView",setup(e){const t=pn(),n=T(null),a=T(!1),s=T(""),o=T(!1),r=T(""),i=T([]),c=async()=>{a.value=!0,s.value="";try{n.value=await VA()}catch(p){n.value=null,s.value=p instanceof Error?p.message:"余额加载失败,请稍后重试。"}finally{a.value=!1}},u=async()=>{o.value=!0,r.value="";try{const p=await FA();i.value=p.list||[]}catch(p){i.value=[],r.value=p instanceof Error?p.message:"套餐加载失败,请稍后重试。"}finally{o.value=!1}},d=async p=>{await dd()&&await t.push({name:"order-confirm",query:{packageId:String(p.id)}})};return ft(()=>{c(),u()}),(p,v)=>(_(),w("section",DDe,[z(LDe,{balance:n.value,loading:a.value,"error-message":s.value},null,8,["balance","loading","error-message"]),l("section",VDe,[FDe,o.value?(_(),w("div",UDe,"套餐加载中...")):r.value?(_(),w("div",zDe,I(r.value),1)):i.value.length===0?(_(),w("div",HDe,"暂无可购买套餐")):(_(),w("ul",KDe,[(_(!0),w(_e,null,Re(i.value,h=>(_(),w("li",{key:h.id,class:"credit-purchase-view__package-card"},[l("div",qDe,[l("span",null,I(h.packageName),1),l("strong",null,I(h.creditAmount)+" 积分",1)]),l("div",jDe,[l("span",null,"¥ "+I(h.bestPayPrice??h.price),1),h.bestPayPrice&&h.bestPayPrice!==h.price?(_(),w("small",WDe,"原价 ¥ "+I(h.price),1)):!h.bestPayPrice&&h.originalPrice&&h.originalPrice!==h.price?(_(),w("small",GDe,"原价 ¥ "+I(h.originalPrice),1)):K("",!0),l("button",{type:"button",onClick:m=>d(h)},"去确认订单",8,YDe)])]))),128))])),XDe])]))}}),JDe=Ct(QDe,[["__scopeId","data-v-558ddf9e"]]),ZDe=e=>dt.post("/api/v1/intentions",e),e7e=e=>dt.get("/api/v1/intentions",{params:e}),t7e=e=>dt.get(`/api/v1/intentions/${e}`),UA=()=>dt.get("/api/v1/public/dictionaries/intention_demand_type/items"),ta=e=>(xt("data-v-6c9b7953"),e=e(),Tt(),e),n7e=ta(()=>l("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"15,18 9,12 15,6"})],-1)),a7e=[n7e],s7e=ta(()=>l("h2",{class:"id-drawer__title"},"意向单详情",-1)),o7e={key:0,class:"id-drawer__state"},r7e=ta(()=>l("div",{class:"id-drawer__spinner"},null,-1)),l7e=ta(()=>l("span",null,"加载中...",-1)),i7e=[r7e,l7e],c7e={key:1,class:"id-drawer__state id-drawer__state--error"},u7e=ta(()=>l("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("circle",{cx:"12",cy:"12",r:"10"}),l("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),l("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})],-1)),d7e={key:2,class:"id-drawer__body"},f7e=ta(()=>l("div",{class:"id-drawer__banner-bg"},null,-1)),p7e={class:"id-drawer__banner-inner"},v7e={class:"id-drawer__banner-badge"},h7e=["innerHTML"],m7e={class:"id-drawer__banner-no"},g7e={class:"id-drawer__banner-desc"},_7e={class:"id-drawer__card"},y7e=ta(()=>l("div",{class:"id-drawer__card-icon"},[l("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("circle",{cx:"12",cy:"12",r:"10"}),l("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),l("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})])],-1)),b7e=ta(()=>l("div",{class:"id-drawer__card-title"},"基本信息",-1)),w7e={class:"id-drawer__grid"},C7e={class:"id-drawer__field"},k7e=ta(()=>l("span",{class:"id-drawer__field-label"},"意向类型",-1)),S7e={class:"id-drawer__field-value"},E7e={key:0,class:"id-drawer__field"},$7e=ta(()=>l("span",{class:"id-drawer__field-label"},"积分数量",-1)),x7e={class:"id-drawer__field-value"},T7e={key:1,class:"id-drawer__field id-drawer__field--full"},I7e=ta(()=>l("span",{class:"id-drawer__field-label"},"来源产品",-1)),A7e={class:"id-drawer__field-value"},N7e={class:"id-drawer__field-note"},R7e={key:2,class:"id-drawer__field"},P7e=ta(()=>l("span",{class:"id-drawer__field-label"},"需求类型",-1)),M7e={class:"id-drawer__field-value"},B7e={key:3,class:"id-drawer__field"},L7e=ta(()=>l("span",{class:"id-drawer__field-label"},"处理人",-1)),O7e={class:"id-drawer__field-value"},D7e=ta(()=>l("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),l("circle",{cx:"12",cy:"7",r:"4"})],-1)),V7e={class:"id-drawer__field id-drawer__field--full"},F7e=ta(()=>l("span",{class:"id-drawer__field-label"},"需求描述",-1)),U7e={class:"id-drawer__field-value id-drawer__field-value--desc"},z7e={key:4,class:"id-drawer__field id-drawer__field--full"},H7e=ta(()=>l("span",{class:"id-drawer__field-label"},"完成说明",-1)),K7e={class:"id-drawer__field-value"},q7e={key:5,class:"id-drawer__field id-drawer__field--full"},j7e=ta(()=>l("span",{class:"id-drawer__field-label"},"关闭原因",-1)),W7e={class:"id-drawer__field-value"},G7e={class:"id-drawer__field"},Y7e=ta(()=>l("span",{class:"id-drawer__field-label"},"提交时间",-1)),X7e={class:"id-drawer__field-value id-drawer__field-value--time"},Q7e={class:"id-drawer__field"},J7e=ta(()=>l("span",{class:"id-drawer__field-label"},"更新时间",-1)),Z7e={class:"id-drawer__field-value id-drawer__field-value--time"},e9e={class:"id-drawer__card"},t9e=ta(()=>l("div",{class:"id-drawer__card-icon"},[l("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),l("polyline",{points:"22,6 12,13 2,6"})])],-1)),n9e=ta(()=>l("div",{class:"id-drawer__card-title"},"联系信息",-1)),a9e={class:"id-drawer__grid"},s9e={class:"id-drawer__field"},o9e=ta(()=>l("span",{class:"id-drawer__field-label"},"联系人",-1)),r9e={class:"id-drawer__field-value"},l9e={class:"id-drawer__field"},i9e=ta(()=>l("span",{class:"id-drawer__field-label"},"联系电话",-1)),c9e={class:"id-drawer__field-value"},u9e=["href"],d9e={key:1},f9e={class:"id-drawer__field"},p9e=ta(()=>l("span",{class:"id-drawer__field-label"},"联系邮箱",-1)),v9e={class:"id-drawer__field-value"},h9e={class:"id-drawer__card"},m9e=ta(()=>l("div",{class:"id-drawer__card-icon"},[l("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),l("polyline",{points:"14 2 14 8 20 8"})])],-1)),g9e={class:"id-drawer__card-title"},_9e={key:0,class:"id-drawer__badge"},y9e={key:0,class:"id-drawer__empty"},b9e=ta(()=>l("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})],-1)),w9e=ta(()=>l("span",null,"暂无跟进记录",-1)),C9e=[b9e,w9e],k9e={key:1,class:"id-drawer__timeline"},S9e={class:"id-drawer__tl-node"},E9e=ta(()=>l("div",{class:"id-drawer__tl-dot"},null,-1)),$9e={key:0,class:"id-drawer__tl-line"},x9e={class:"id-drawer__tl-card"},T9e={class:"id-drawer__tl-header"},I9e={class:"id-drawer__tl-operator"},A9e={class:"id-drawer__tl-time"},N9e={class:"id-drawer__tl-content"},R9e=le({__name:"IntentionDetailDrawer",props:{visible:{type:Boolean},intentionId:{},demandTypeDict:{}},emits:["close"],setup(e,{emit:t}){const n=e,a=t,s={credit_bulk:"积分批量采购",custom:"定制化需求",product_inquiry:"产品咨询"},o={general:"通用意向",compute_product:"算力产品",app_product:"应用产品"},r=x(()=>{if(!u.value)return"通用意向";const g=o[u.value.sourceType]??"通用意向";return u.value.sourceType==="app_product"&&u.value.productType==="service"?"服务产品":g}),i={pending:"待跟进",in_progress:"跟进中",completed:"已完成",closed:"已关闭"},c={pending:{icon:'',desc:"您的意向单已提交,等待顾问跟进中"},in_progress:{icon:'',desc:"专属顾问正在为您积极跟进处理"},completed:{icon:'',desc:"您的意向单已完成处理"},closed:{icon:'',desc:"此意向单已关闭"}},u=T(null),d=T(!1),p=T(""),v=g=>{if(!g)return"--";const y=n.demandTypeDict.find(b=>b.itemCode===g);return y?y.itemName:g},h=async()=>{d.value=!0,p.value="",u.value=null;try{u.value=await t7e(n.intentionId)}catch(g){p.value=g instanceof Error?g.message:"详情加载失败,请稍后重试。"}finally{d.value=!1}},m=()=>{a("close")};return Te(()=>n.visible,g=>{g&&n.intentionId&&h()},{immediate:!0}),(g,y)=>{const b=Ne("el-drawer");return _(),ue(b,{"model-value":g.visible,"with-header":!1,direction:"rtl",size:"540px","destroy-on-close":!0,onClose:m},{default:W(()=>{var C,k;return[l("div",{class:V(["id-drawer",{"id-drawer--loading":d.value}])},[l("header",{class:"id-drawer__header"},[l("div",{class:"id-drawer__header-top"},[l("button",{type:"button",class:"id-drawer__back",onClick:m},a7e),s7e])]),d.value?(_(),w("div",o7e,i7e)):p.value?(_(),w("div",c7e,[u7e,l("span",null,I(p.value),1),l("button",{type:"button",class:"id-drawer__retry",onClick:h},"重试")])):u.value?(_(),w("div",d7e,[l("div",{class:V(["id-drawer__banner",`id-drawer__banner--${u.value.status}`])},[f7e,l("div",p7e,[l("div",v7e,[(_(),w("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:(C=c[u.value.status])==null?void 0:C.icon},null,8,h7e)),Ce(" "+I(i[u.value.status]??u.value.status),1)]),l("div",m7e,I(u.value.intentionNo),1),l("div",g7e,I((k=c[u.value.status])==null?void 0:k.desc),1)])],2),l("section",_7e,[y7e,b7e,l("div",w7e,[l("div",C7e,[k7e,l("span",S7e,I(s[u.value.intentionType]??u.value.intentionType),1)]),u.value.creditAmount!=null?(_(),w("div",E7e,[$7e,l("span",x7e,I(u.value.creditAmount.toLocaleString()),1)])):K("",!0),u.value.sourceProductName?(_(),w("div",T7e,[I7e,l("span",A7e,I(u.value.sourceProductName),1),l("small",N7e,I(r.value),1)])):K("",!0),u.value.demandType?(_(),w("div",R7e,[P7e,l("span",M7e,I(v(u.value.demandType)),1)])):K("",!0),u.value.handlerName?(_(),w("div",B7e,[L7e,l("span",O7e,[D7e,Ce(" "+I(u.value.handlerName),1)])])):K("",!0),l("div",V7e,[F7e,l("span",U7e,I(u.value.demandDesc||"--"),1)]),u.value.completeRemark?(_(),w("div",z7e,[H7e,l("span",K7e,I(u.value.completeRemark),1)])):K("",!0),u.value.closeReason?(_(),w("div",q7e,[j7e,l("span",W7e,I(u.value.closeReason),1)])):K("",!0),l("div",G7e,[Y7e,l("span",X7e,I(u.value.createTime),1)]),l("div",Q7e,[J7e,l("span",Z7e,I(u.value.updateTime),1)])])]),l("section",e9e,[t9e,n9e,l("div",a9e,[l("div",s9e,[o9e,l("span",r9e,I(u.value.contactName||"--"),1)]),l("div",l9e,[i9e,l("span",c9e,[u.value.contactPhone?(_(),w("a",{key:0,href:`tel:${u.value.contactPhone}`,class:"id-drawer__phone-link"},I(u.value.contactPhone),9,u9e)):(_(),w("span",d9e,"--"))])]),l("div",f9e,[p9e,l("span",v9e,I(u.value.contactEmail||"--"),1)])])]),l("section",h9e,[m9e,l("div",g9e,[Ce(" 跟进记录 "),u.value.followUps.length>0?(_(),w("span",_9e,I(u.value.followUps.length),1)):K("",!0)]),u.value.followUps.length===0?(_(),w("div",y9e,C9e)):(_(),w("div",k9e,[(_(!0),w(_e,null,Re(u.value.followUps,(S,$)=>(_(),w("div",{key:S.id,class:V(["id-drawer__tl-entry",{"id-drawer__tl-entry--last":$===u.value.followUps.length-1}])},[l("div",S9e,[E9e,$(xt("data-v-cd7275f8"),e=e(),Tt(),e),M9e={class:"page-container intention-list-view"},B9e={class:"page-card intention-list-view__card"},L9e=zA(()=>l("div",null,[l("h2",null,"我的意向单"),l("p",null,"查看已提交的意向单及跟进状态。")],-1)),O9e={key:0,class:"intention-list-view__state intention-list-view__state--error"},D9e={key:1,class:"intention-list-view__state"},V9e={key:2,class:"intention-list-view__state"},F9e={key:3,class:"intention-list-view__table-wrap"},U9e={class:"intention-list-view__table"},z9e=zA(()=>l("thead",null,[l("tr",null,[l("th",null,"意向单编号"),l("th",null,"意向类型"),l("th",null,"来源产品"),l("th",null,"状态"),l("th",null,"积分数量"),l("th",null,"需求类型"),l("th",null,"提交时间"),l("th",null,"操作")])],-1)),H9e={class:"intention-list-view__product-name"},K9e={class:"intention-list-view__product-source"},q9e={key:1},j9e=["onClick"],W9e={key:4,class:"intention-list-view__footer"},G9e=le({__name:"IntentionListView",setup(e){const t=pn(),n={credit_bulk:"积分批量采购",custom:"定制化需求",product_inquiry:"产品咨询"},a={general:"通用意向",compute_product:"算力产品",app_product:"应用产品"},s=P=>{const B=a[P.sourceType]??"通用意向";return P.sourceType==="app_product"&&P.productType==="service"?"服务产品":B},o=[{value:"",label:"全部"},{value:"pending",label:"待跟进"},{value:"in_progress",label:"跟进中"},{value:"completed",label:"已完成"},{value:"closed",label:"已关闭"}],r={pending:"warning",in_progress:"primary",completed:"success",closed:"info"},i={pending:"待跟进",in_progress:"跟进中",completed:"已完成",closed:"已关闭"},c=T([]),u=T(!1),d=At({status:"",pageNum:1,pageSize:10}),p=[10,20,50],v=T({list:[],total:0,pageNum:1,pageSize:10}),h=T(!1),m=T(""),g=T(!1),y=T(null),b=P=>{if(!P)return"--";const B=c.value.find(M=>M.itemCode===P);return B?B.itemName:P},C=async()=>{u.value=!0;try{c.value=await UA()}catch{c.value=[]}finally{u.value=!1}},k=async()=>{h.value=!0,m.value="";try{v.value=await e7e({status:d.status||void 0,pageNum:d.pageNum,pageSize:d.pageSize})}catch(P){v.value={list:[],total:0,pageNum:d.pageNum,pageSize:d.pageSize},m.value=P instanceof Error?P.message:"意向单列表加载失败,请稍后重试。"}finally{h.value=!1}},S=async()=>{d.pageNum=1,await k()},$=async P=>{P===d.pageNum||P<1||(d.pageNum=P,await k())},E=async P=>{!p.includes(P)||P===d.pageSize||(d.pageNum=1,d.pageSize=P,await k())},R=P=>{y.value=P.intentionId,g.value=!0},A=()=>{g.value=!1,y.value=null},N=async()=>{await t.push({name:"intention-create"})};return ft(()=>{C(),k()}),(P,B)=>{const M=Ne("el-option"),j=Ne("el-select"),F=Ne("el-button"),q=Ne("el-tag"),L=Ne("el-pagination");return _(),w("section",M9e,[l("section",B9e,[l("header",{class:"intention-list-view__header"},[L9e,l("button",{type:"button",class:"intention-list-view__create-btn",onClick:N}," 提交意向单 ")]),l("form",{class:"intention-list-view__filters",onSubmit:qe(S,["prevent"])},[z(j,{modelValue:d.status,"onUpdate:modelValue":B[0]||(B[0]=U=>d.status=U),class:"intention-list-view__filter-select mall-select-red-theme","popper-class":"intention-list-view__select-dropdown mall-select-red-dropdown",placeholder:"意向单状态",clearable:""},{default:W(()=>[(_(),w(_e,null,Re(o,U=>z(M,{key:U.value,label:U.label,value:U.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),z(F,{type:"primary","native-type":"submit",class:"intention-list-view__filter-btn intention-list-view__filter-btn--primary",loading:h.value},{default:W(()=>[Ce(" 查询 ")]),_:1},8,["loading"])],32),m.value?(_(),w("div",O9e,I(m.value),1)):h.value?(_(),w("div",D9e,"意向单加载中...")):v.value.list.length===0?(_(),w("div",V9e,"暂无意向单")):(_(),w("div",F9e,[l("table",U9e,[z9e,l("tbody",null,[(_(!0),w(_e,null,Re(v.value.list,U=>(_(),w("tr",{key:U.intentionId},[l("td",null,I(U.intentionNo),1),l("td",null,I(n[U.intentionType]??U.intentionType),1),l("td",null,[U.sourceProductName?(_(),w(_e,{key:0},[l("strong",H9e,I(U.sourceProductName),1),l("small",K9e,I(s(U)),1)],64)):(_(),w("span",q9e,"--"))]),l("td",null,[z(q,{type:r[U.status],size:"small",effect:"light"},{default:W(()=>[Ce(I(i[U.status]??U.status),1)]),_:2},1032,["type"])]),l("td",null,I(U.creditAmount??"--"),1),l("td",null,I(b(U.demandType)),1),l("td",null,I(U.createTime),1),l("td",null,[l("button",{type:"button",class:"intention-list-view__detail-btn",onClick:O=>R(U)}," 查看详情 ",8,j9e)])]))),128))])])])),v.value.list.length>0?(_(),w("footer",W9e,[z(L,{background:"",layout:"total, sizes, prev, pager, next","current-page":d.pageNum,"page-size":d.pageSize,"page-sizes":p,total:v.value.total,"popper-class":"intention-list-view__pagination-dropdown mall-select-red-dropdown",onCurrentChange:$,onSizeChange:E},null,8,["current-page","page-size","total"])])):K("",!0)]),y.value!==null?(_(),ue(P9e,{key:0,visible:g.value,"intention-id":y.value,"demand-type-dict":c.value,onClose:A},null,8,["visible","intention-id","demand-type-dict"])):K("",!0)])}}}),U$=Ct(G9e,[["__scopeId","data-v-cd7275f8"]]),HA=()=>dt.get("/api/v1/compute/products"),Vn=e=>(xt("data-v-a0bed4f3"),e=e(),Tt(),e),Y9e={class:"intention-submit-view__hero"},X9e={class:"intention-submit-view__hero-copy"},Q9e=Vn(()=>l("span",{class:"intention-submit-view__eyebrow"},"企业采购咨询入口",-1)),J9e={key:0},Z9e=Vn(()=>l("span",null,"专属对接方案",-1)),eVe={key:1},tVe=Vn(()=>l("span",null,"专属采购/定制方案",-1)),nVe=Vn(()=>l("p",{class:"intention-submit-view__hero-subtitle"}," 专业顾问对接 · 方案评估匹配 · 快速响应反馈 · 高效促成合作 ",-1)),aVe={class:"intention-submit-view__hero-promises"},sVe={key:0,xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},oVe=Vn(()=>l("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"},null,-1)),rVe=Vn(()=>l("path",{d:"m9 12 2 2 4-4"},null,-1)),lVe=[oVe,rVe],iVe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},cVe=Vn(()=>l("path",{d:"M13 2 3 14h7l-1 8 10-12h-7l1-8z"},null,-1)),uVe=[cVe],dVe={key:2,xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},fVe=Vn(()=>l("rect",{x:"4",y:"11",width:"16",height:"10",rx:"2"},null,-1)),pVe=Vn(()=>l("path",{d:"M8 11V7a4 4 0 1 1 8 0v4"},null,-1)),vVe=[fVe,pVe],hVe={class:"intention-submit-view__hero-preview","aria-hidden":"true"},mVe=Vn(()=>l("div",{class:"intention-submit-view__hero-preview-layer is-back"},null,-1)),gVe=Vn(()=>l("div",{class:"intention-submit-view__hero-preview-layer is-middle"},null,-1)),_Ve={class:"intention-submit-view__hero-preview-card"},yVe={key:0,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},bVe=mn('',5),wVe=[bVe],CVe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},kVe=Vn(()=>l("path",{d:"m21 16-9 5-9-5V8l9-5 9 5z"},null,-1)),SVe=Vn(()=>l("path",{d:"m3.3 7 8.7 5 8.7-5"},null,-1)),EVe=Vn(()=>l("path",{d:"M12 22V12"},null,-1)),$Ve=[kVe,SVe,EVe],xVe={key:2,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},TVe=Vn(()=>l("path",{d:"M20 21a8 8 0 1 0-16 0"},null,-1)),IVe=Vn(()=>l("circle",{cx:"12",cy:"7",r:"4"},null,-1)),AVe=[TVe,IVe],NVe={class:"intention-submit-view__main-card"},RVe={key:0,class:"intention-submit-view__service-grid"},PVe=["onClick"],MVe={class:"intention-submit-view__service-head"},BVe={key:0,xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},LVe=Vn(()=>l("ellipse",{cx:"12",cy:"5",rx:"7",ry:"3"},null,-1)),OVe=Vn(()=>l("path",{d:"M5 5v6c0 1.7 3.1 3 7 3s7-1.3 7-3V5"},null,-1)),DVe=Vn(()=>l("path",{d:"M5 11v6c0 1.7 3.1 3 7 3s7-1.3 7-3v-6"},null,-1)),VVe=[LVe,OVe,DVe],FVe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},UVe=Vn(()=>l("path",{d:"M12 20h9"},null,-1)),zVe=Vn(()=>l("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"},null,-1)),HVe=Vn(()=>l("path",{d:"m15 5 4 4"},null,-1)),KVe=[UVe,zVe,HVe],qVe={class:"intention-submit-view__service-copy"},jVe={class:"intention-submit-view__service-title-row"},WVe={class:"intention-submit-view__service-recommend"},GVe={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},YVe=Vn(()=>l("polyline",{points:"20 6 9 17 4 12"},null,-1)),XVe=[YVe],QVe={class:"intention-submit-view__service-output"},JVe=Vn(()=>l("span",{class:"intention-submit-view__service-output-label"},"输出成果",-1)),ZVe={key:1,class:"intention-submit-view__product-context","aria-live":"polite"},eFe=Vn(()=>l("div",{class:"intention-submit-view__product-context-label"},"本次咨询对象",-1)),tFe={class:"intention-submit-view__product-context-head"},nFe={key:0},aFe={class:"intention-submit-view__form-layout"},sFe={class:"intention-submit-view__form-panel is-request"},oFe={class:"intention-submit-view__panel-head"},rFe=Vn(()=>l("span",null,null,-1)),lFe={class:"intention-submit-view__detail-fields"},iFe={key:0,class:"intention-submit-view__readonly-product"},cFe=Vn(()=>l("span",null,"已锁定咨询对象",-1)),uFe={class:"intention-submit-view__form-panel is-contact"},dFe=Vn(()=>l("div",{class:"intention-submit-view__panel-head"},[l("span"),l("strong",null,"联系方式")],-1)),fFe={class:"intention-submit-view__contact-fields"},pFe={class:"intention-submit-view__tips-card"},vFe=Vn(()=>l("div",{class:"intention-submit-view__tips-head"},[l("span",{class:"intention-submit-view__tips-icon"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M12 3a6 6 0 0 0-6 6c0 2.5 1.3 3.8 2.4 5 .8.8 1.6 1.5 1.9 2.5h3.4c.3-1 1.1-1.7 1.9-2.5 1.1-1.2 2.4-2.5 2.4-5a6 6 0 0 0-6-6z"}),l("path",{d:"M10 21h4"}),l("path",{d:"M9 18h6"})])]),l("strong",null,"推荐填写小贴士")],-1)),hFe={class:"intention-submit-view__submit-bar"},mFe={class:"intention-submit-view__submit-copy"},gFe=Vn(()=>l("span",{class:"intention-submit-view__submit-icon"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"}),l("path",{d:"m9 12 2 2 4-4"})])],-1)),_Fe=Vn(()=>l("strong",null,"我们承诺:您的信息仅用于商务沟通,严格保密,绝不外泄",-1)),yFe={class:"intention-submit-view__trust-bar"},bFe={key:0,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},wFe=Vn(()=>l("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"},null,-1)),CFe=Vn(()=>l("path",{d:"m9 12 2 2 4-4"},null,-1)),kFe=[wFe,CFe],SFe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},EFe=Vn(()=>l("path",{d:"m12 17.3-6.2 3.3 1.2-6.9L2 8.9l7-1 3-6.3 3 6.3 7 1-5 4.8 1.2 6.9z"},null,-1)),$Fe=[EFe],xFe={key:2,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},TFe=Vn(()=>l("rect",{x:"4",y:"11",width:"16",height:"10",rx:"2"},null,-1)),IFe=Vn(()=>l("path",{d:"M8 11V7a4 4 0 1 1 8 0v4"},null,-1)),AFe=[TFe,IFe],NFe=le({__name:"IntentionSubmitView",setup(e){const t=fa(),n=pn(),a=ee=>ee==="credit_bulk"||ee==="custom"||ee==="product_inquiry",s=ee=>Array.isArray(ee)?ee[0]:ee,o=ee=>ee==="compute_product"||ee==="app_product",r=T(a(s(t.query.type))?s(t.query.type):"custom"),i=s(t.query.sourceType),c=T(o(i)?i:"general"),u=T(String(s(t.query.sourceProductKey)??"").trim()),d=s(t.query.productType),p=T(typeof d=="string"&&(d==="app"||d==="service")?d:""),v=T(!1),h=T([]),m=T(!1),g=T(!1),y=T(""),b=T(""),C=T("");let k=0;const S=x(()=>r.value==="product_inquiry"),$=x(()=>c.value==="compute_product"?"算力产品":p.value==="service"?"服务产品":"应用产品"),E=At({creditAmount:void 0,demandDesc:"",demandType:"",contactName:"",contactPhone:"",contactEmail:""}),R=T(),A=[{icon:"shield",title:"专业顾问团队",description:"行业经验丰富,深度理解业务"},{icon:"flash",title:"高效响应机制",description:"快速评估需求,及时反馈方案"},{icon:"lock",title:"信息安全保障",description:"仅用于商务沟通,严格保密"}],N=[{icon:"document",title:"采购方案建议",description:"基于需求匹配最优采购方案"},{icon:"cube",title:"定制范围初步评估",description:"明确需求范围,提供可行建议"},{icon:"user",title:"1 对 1 顾问跟进",description:"专属顾问全程跟进,确保落地"}],P=[{type:"credit_bulk",badge:"批量采购",title:"积分批量采购",recommend:"批量更优",description:"适合已有明确预算或通用场景的企业采购",outputs:["采购方案建议","价格与交付说明","合作流程指引"]},{type:"custom",badge:"方案咨询",title:"定制化需求",recommend:"专属定制",description:"适合私有化部署、数据接入、行业解决方案等定制需求",outputs:["需求范围评估","初步解决方案建议","实施与交付建议"]}],B=[{icon:"shield",title:"企业采购支持",description:"灵活的采购方式与结算支持,满足不同规模企业需求"},{icon:"star",title:"定制方案评估",description:"专业顾问评估可行性,提供贴合业务的解决方案建议"},{icon:"lock",title:"信息仅用于商务沟通",description:"严格的数据安全管理,保障企业信息安全"}],M=(ee,Q,H)=>{Q?!/^1[3-9]\d{9}$/.test(Q)&&!/^0\d{2,3}-?\d{7,8}$/.test(Q)?H(new Error("请填写有效联系电话,便于顾问尽快与您联系")):H():H(new Error("请填写有效联系电话,便于顾问尽快与您联系"))},j=(ee,Q,H)=>{Q&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(Q)?H(new Error("请填写有效联系邮箱,便于同步方案资料")):H()},F={creditAmount:[{required:!0,message:"请填写采购数量,便于顾问判断采购规模",trigger:"blur"}],contactPhone:[{required:!0,validator:M,trigger:"blur"}],contactEmail:[{validator:j,trigger:"blur"}]},q={demandType:[{required:!0,message:"请选择需求类型,便于顾问快速匹配沟通方向",trigger:"change"}],demandDesc:[{required:!0,message:"请补充需求描述,便于顾问快速评估方案边界",trigger:"blur"}],contactPhone:[{required:!0,validator:M,trigger:"blur"}],contactEmail:[{validator:j,trigger:"blur"}]},L={contactName:[{required:!0,message:"请填写联系人姓名,便于顾问尽快与您联系",trigger:"blur"}],contactPhone:[{required:!0,validator:M,trigger:"blur"}],contactEmail:[{validator:j,trigger:"blur"}]},U=T(r.value==="product_inquiry"?L:r.value==="custom"?q:F),O=x(()=>S.value?{demandPlaceholder:"可补充数量、交付时间、使用场景或其他要求(选填)",suggestions:["预计使用规模或采购数量","期望交付时间或服务周期","使用场景与其他特殊要求"],amountLabel:"",amountPlaceholder:"",submitDescription:"提交后可在“我的意向单”中查看产品咨询和后续跟进。"}:r.value==="credit_bulk"?{demandPlaceholder:"可补充采购用途、预计规模、预算范围或交付节奏(选填)",suggestions:["预计采购规模或预算区间","计划上线时间或交付周期","对结算方式或服务方式的偏好"],amountLabel:"采购数量",amountPlaceholder:"请输入采购积分数量",submitDescription:"通常在 1 至 2 个工作日内完成首次联系,信息仅用于本次商务沟通。"}:{demandPlaceholder:"请详细描述业务场景、系统环境、功能诉求或时间要求",suggestions:["当前业务场景与核心问题","系统环境、数据来源或接口约束","期望效果、时间要求或实施边界"],amountLabel:"",amountPlaceholder:"",submitDescription:"通常在 1 至 2 个工作日内完成首次联系,信息仅用于本次商务沟通。"}),G=x(()=>r.value==="credit_bulk"),ae=x({get:()=>E.creditAmount==null?"":String(E.creditAmount),set:ee=>{const Q=ee.replace(/[^\d]/g,"").replace(/^0+(?=\d)/,"");E.creditAmount=Q?Number(Q):void 0}}),Z=ee=>{ee!=="product_inquiry"&&(r.value=ee,c.value="general",u.value="",U.value=ee==="credit_bulk"?F:q,it(()=>{var Q;(Q=R.value)==null||Q.clearValidate()}))},te=async()=>{const ee=++k;g.value=!0,y.value="",b.value="",C.value="";try{if(!o(c.value)||!u.value)throw new Error("产品咨询入口参数不完整,请返回产品页面重新发起。");if(c.value==="compute_product"){const he=await HA();if(ee!==k)return;const D=[...he.personalProducts,...he.enterpriseProducts].find(Y=>Y.productKey===u.value);if(!D)throw new Error("产品不存在或暂不可咨询");b.value=D.name,C.value=D.subtitle;return}const Q=Number(u.value);if(!Number.isSafeInteger(Q)||Q<=0)throw new Error("产品不存在或暂不可咨询");const X=await(p.value==="service"?CA:J2)(Q);if(ee!==k)return;b.value=X.name,C.value=X.description||""}catch(Q){if(ee!==k)return;y.value=Q instanceof Error?Q.message:"产品信息加载失败,请返回产品页面重新发起。"}finally{ee===k&&(g.value=!1)}},ie=async()=>{m.value=!0;try{h.value=await UA()}catch{h.value=[]}finally{m.value=!1}},oe=async()=>{var ee;if(S.value&&(g.value||y.value||!b.value)){rt.error(y.value||"产品信息尚未加载完成");return}try{await((ee=R.value)==null?void 0:ee.validate())}catch{return}v.value=!0;try{const Q={intentionType:r.value,sourceType:S.value?c.value:"general",sourceProductKey:S.value?u.value:void 0,productType:S.value&&p.value||void 0,contactPhone:E.contactPhone,contactName:E.contactName||void 0,contactEmail:E.contactEmail||void 0,...S.value?{demandDesc:E.demandDesc||void 0}:r.value==="credit_bulk"?{creditAmount:E.creditAmount,demandDesc:E.demandDesc||void 0}:{demandType:E.demandType,demandDesc:E.demandDesc}};await ZDe(Q),rt.success("需求已提交,顾问将尽快与您联系。"),await n.push({name:"intentions"})}catch{}finally{v.value=!1}};return Te(()=>t.fullPath,()=>{k+=1;const ee=s(t.query.type),Q=a(ee)?ee:"custom",H=s(t.query.sourceType),X=s(t.query.productType);r.value=Q,c.value=o(H)?H:"general",u.value=String(s(t.query.sourceProductKey)??"").trim(),p.value=typeof X=="string"&&(X==="app"||X==="service")?X:"",U.value=Q==="product_inquiry"?L:Q==="custom"?q:F,b.value="",C.value="",y.value="",Q==="product_inquiry"?te():ie()},{immediate:!0}),(ee,Q)=>{const H=Ne("el-alert"),X=Ne("el-input"),he=Ne("el-form-item"),D=Ne("el-option"),Y=Ne("el-select"),ne=Ne("el-button"),re=Ne("el-form");return _(),w("section",{class:V(["page-container intention-submit-view",{"is-product-inquiry":S.value}])},[l("section",Y9e,[l("div",X9e,[Q9e,S.value?(_(),w("h1",J9e,[Ce("咨询产品,获取"),Z9e])):(_(),w("h1",eVe,[Ce("提交需求,获取"),tVe])),nVe,l("div",aVe,[(_(),w(_e,null,Re(A,se=>l("article",{key:se.title,class:"intention-submit-view__hero-promise"},[l("span",{class:V(["intention-submit-view__mini-icon",`is-${se.icon}`])},[se.icon==="shield"?(_(),w("svg",sVe,lVe)):se.icon==="flash"?(_(),w("svg",iVe,uVe)):(_(),w("svg",dVe,vVe))],2),l("div",null,[l("strong",null,I(se.title),1),l("p",null,I(se.description),1)])])),64))])]),l("div",hVe,[mVe,gVe,l("div",_Ve,[(_(),w(_e,null,Re(N,se=>l("article",{key:se.title,class:"intention-submit-view__hero-preview-item"},[l("span",{class:V(["intention-submit-view__preview-icon",`is-${se.icon}`])},[se.icon==="document"?(_(),w("svg",yVe,wVe)):se.icon==="cube"?(_(),w("svg",CVe,$Ve)):(_(),w("svg",xVe,AVe))],2),l("div",null,[l("strong",null,I(se.title),1),l("p",null,I(se.description),1)])])),64))])])]),l("section",NVe,[S.value?(_(),w("section",ZVe,[eFe,l("div",tFe,[l("span",null,I($.value),1),l("strong",null,I(g.value?"正在确认产品...":b.value||"产品信息不可用"),1)]),C.value?(_(),w("p",nFe,I(C.value),1)):K("",!0),y.value?(_(),ue(H,{key:1,title:y.value,type:"error",closable:!1,"show-icon":""},null,8,["title"])):K("",!0)])):(_(),w("div",RVe,[(_(),w(_e,null,Re(P,se=>l("button",{key:se.type,type:"button",class:V(["intention-submit-view__service-card",{"is-active":r.value===se.type}]),onClick:ke=>Z(se.type)},[l("div",MVe,[l("span",{class:V(["intention-submit-view__service-icon",{"is-gold":se.type==="custom"}])},[se.type==="credit_bulk"?(_(),w("svg",BVe,VVe)):(_(),w("svg",FVe,KVe))],2),l("div",qVe,[l("div",jVe,[l("strong",null,I(se.title),1),l("span",WVe,I(se.recommend),1)]),l("p",null,I(se.description),1)]),l("span",{class:V(["intention-submit-view__service-selector",{"is-active":r.value===se.type}])},[r.value===se.type?(_(),w("svg",GVe,XVe)):K("",!0)],2)]),l("div",QVe,[JVe,(_(!0),w(_e,null,Re(se.outputs,ke=>(_(),w("span",{key:ke,class:"intention-submit-view__service-output-item"},I(ke),1))),128))])],10,PVe)),64))])),z(re,{ref_key:"formRef",ref:R,model:E,rules:U.value,"label-position":"top","validate-on-rule-change":!1,class:"intention-submit-view__form",onSubmit:qe(oe,["prevent"])},{default:W(()=>[l("div",aFe,[l("section",sFe,[l("div",oFe,[rFe,l("strong",null,I(S.value?"咨询信息":"需求信息"),1)]),l("div",lFe,[S.value?(_(),w("div",iFe,[cFe,l("div",null,[l("strong",null,I(b.value||"正在确认产品"),1),l("small",null,"来自"+I($.value),1)])])):G.value?(_(),ue(he,{key:1,label:O.value.amountLabel,prop:"creditAmount"},{default:W(()=>[z(X,{modelValue:ae.value,"onUpdate:modelValue":Q[0]||(Q[0]=se=>ae.value=se),placeholder:O.value.amountPlaceholder,class:"intention-submit-view__control intention-submit-view__credit-input",inputmode:"numeric"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):(_(),ue(he,{key:2,label:"需求场景类型",prop:"demandType"},{default:W(()=>[z(Y,{modelValue:E.demandType,"onUpdate:modelValue":Q[1]||(Q[1]=se=>E.demandType=se),placeholder:"请选择需求场景类型",loading:m.value,class:"intention-submit-view__control mall-select-red-theme","popper-class":"intention-submit-view__select-dropdown mall-select-red-dropdown"},{default:W(()=>[(_(!0),w(_e,null,Re(h.value,se=>(_(),ue(D,{key:se.itemCode,label:se.itemName,value:se.itemCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1})),z(he,{label:S.value?"补充说明(选填)":"需求描述",prop:"demandDesc"},{default:W(()=>[z(X,{modelValue:E.demandDesc,"onUpdate:modelValue":Q[2]||(Q[2]=se=>E.demandDesc=se),type:"textarea",rows:6,placeholder:O.value.demandPlaceholder,class:"intention-submit-view__control",maxlength:"500","show-word-limit":""},null,8,["modelValue","placeholder"])]),_:1},8,["label"])])]),l("section",uFe,[dFe,l("div",fFe,[z(he,{label:"联系人",prop:"contactName"},{default:W(()=>[z(X,{modelValue:E.contactName,"onUpdate:modelValue":Q[3]||(Q[3]=se=>E.contactName=se),placeholder:"请输入联系人姓名",class:"intention-submit-view__control"},null,8,["modelValue"])]),_:1}),z(he,{label:"手机号",prop:"contactPhone"},{default:W(()=>[z(X,{modelValue:E.contactPhone,"onUpdate:modelValue":Q[4]||(Q[4]=se=>E.contactPhone=se),placeholder:"请输入手机号",class:"intention-submit-view__control"},null,8,["modelValue"])]),_:1}),z(he,{label:"联系邮箱",prop:"contactEmail"},{default:W(()=>[z(X,{modelValue:E.contactEmail,"onUpdate:modelValue":Q[5]||(Q[5]=se=>E.contactEmail=se),placeholder:"请输入邮箱(可选)",class:"intention-submit-view__control"},null,8,["modelValue"])]),_:1})])]),l("aside",pFe,[vFe,l("ul",null,[(_(!0),w(_e,null,Re(O.value.suggestions,se=>(_(),w("li",{key:se},I(se),1))),128))]),l("p",null,I(S.value?"补充数量、时间和使用场景,有助于顾问更快准备对接方案。":G.value?"信息越完整,采购方案与交付说明反馈会越快。":"信息越完整,方案范围梳理与实施建议会越清晰。"),1)])]),l("div",hFe,[l("div",mFe,[gFe,l("div",null,[_Fe,l("p",null,I(O.value.submitDescription),1)])]),z(he,{class:"intention-submit-view__submit-field"},{default:W(()=>[z(ne,{type:"primary","native-type":"submit",loading:v.value,disabled:S.value&&(g.value||!!y.value||!b.value),class:"intention-submit-view__submit-btn"},{default:W(()=>[Ce(I(v.value?"正在提交需求...":"发起顾问对接"),1)]),_:1},8,["loading","disabled"])]),_:1})])]),_:1},8,["model","rules"])]),l("section",yFe,[(_(),w(_e,null,Re(B,se=>l("article",{key:se.title,class:"intention-submit-view__trust-item"},[l("span",{class:V(["intention-submit-view__trust-icon",`is-${se.icon}`])},[se.icon==="shield"?(_(),w("svg",bFe,kFe)):se.icon==="star"?(_(),w("svg",SFe,$Fe)):(_(),w("svg",xFe,AFe))],2),l("div",null,[l("strong",null,I(se.title),1),l("p",null,I(se.description),1)])])),64))])],2)}}}),RFe=Ct(NFe,[["__scopeId","data-v-a0bed4f3"]]),PFe=e=>dt.get("/api/v1/feedbacks/mine",{params:e}),MFe=e=>dt.get(`/api/v1/feedbacks/mine/${e}`),BFe=(e,t)=>dt.post(`/api/v1/feedbacks/mine/${e}/messages`,t),LFe=e=>{if(typeof document>"u"||!document.body||typeof document.execCommand!="function")return!1;const t=document.createElement("textarea"),n=document.activeElement instanceof HTMLElement?document.activeElement:null;t.value=e,t.setAttribute("readonly","readonly"),t.setAttribute("aria-hidden","true"),t.style.position="fixed",t.style.top="0",t.style.left="-9999px",t.style.width="1px",t.style.height="1px",t.style.opacity="0",t.style.pointerEvents="none",document.body.appendChild(t),t.focus(),t.select(),t.setSelectionRange(0,t.value.length);try{return document.execCommand("copy")}catch{return!1}finally{document.body.removeChild(t),n==null||n.focus()}},Ki=async e=>{if(!e)return!1;const t=typeof navigator>"u"?void 0:navigator.clipboard;if(t!=null&&t.writeText)try{return await t.writeText(e),!0}catch{}return LFe(e)},KA=(e,t)=>{var a;const n=(a=e.clipboardData)==null?void 0:a.items;if(!n)return null;for(const s of n){if(!s.type.startsWith("image/")||t&&!t.includes(s.type))continue;const o=s.getAsFile();if(o)return o}return null},OFe=e=>(xt("data-v-6318867d"),e=e(),Tt(),e),DFe=OFe(()=>l("p",{class:"crop-tip"},"拖拽框选需要上传的区域。",-1)),VFe=["src"],FFe=le({__name:"MediaImageCropDialog",props:{imageUrl:{},visible:{type:Boolean}},emits:["confirm","cancel"],setup(e,{emit:t}){const n=e,a=t,s=T(null),o=T(null),r=T({x:0,y:0,width:0,height:0}),i=T(!1),c=x(()=>r.value.width>4&&r.value.height>4);Te(()=>n.visible,m=>{m&&(r.value={x:0,y:0,width:0,height:0})});const u=m=>{var y;const g=(y=s.value)==null?void 0:y.getBoundingClientRect();return g?{x:Math.max(0,Math.min(m.clientX-g.left,g.width)),y:Math.max(0,Math.min(m.clientY-g.top,g.height))}:null},d=m=>{const g=u(m);g&&(o.value=g,i.value=!0,r.value={x:g.x,y:g.y,width:0,height:0})},p=m=>{if(!i.value||!o.value)return;const g=u(m);g&&(r.value={x:Math.min(o.value.x,g.x),y:Math.min(o.value.y,g.y),width:Math.abs(g.x-o.value.x),height:Math.abs(g.y-o.value.y)})},v=()=>{i.value=!1},h=async()=>{var C;const m=s.value;if(!m||!c.value)return;const g=m.naturalWidth/m.clientWidth,y=m.naturalHeight/m.clientHeight,b=document.createElement("canvas");b.width=Math.round(r.value.width*g),b.height=Math.round(r.value.height*y),(C=b.getContext("2d"))==null||C.drawImage(m,r.value.x*g,r.value.y*y,b.width,b.height,0,0,b.width,b.height),b.toBlob(k=>{k&&a("confirm",new File([k],`screenshot-${Date.now()}.png`,{type:"image/png"}))},"image/png")};return(m,g)=>{const y=Ne("el-button"),b=Ne("el-dialog");return _(),ue(b,{"model-value":m.visible,title:"裁剪截图",width:"min(1080px, 96vw)",top:"3vh","close-on-click-modal":!1,onClose:g[1]||(g[1]=C=>a("cancel"))},{footer:W(()=>[z(y,{onClick:g[0]||(g[0]=C=>a("cancel"))},{default:W(()=>[Ce("取消")]),_:1}),z(y,{type:"primary",disabled:!c.value,onClick:h},{default:W(()=>[Ce("确认上传")]),_:1},8,["disabled"])]),default:W(()=>[DFe,l("div",{class:"crop-stage",onMousedown:d,onMousemove:p,onMouseup:v,onMouseleave:v},[l("img",{ref_key:"imageRef",ref:s,src:m.imageUrl,alt:"待裁剪截图",draggable:"false"},null,8,VFe),c.value?(_(),w("span",{key:0,class:"crop-selection",style:Je({left:`${r.value.x}px`,top:`${r.value.y}px`,width:`${r.value.width}px`,height:`${r.value.height}px`})},null,4)):K("",!0)],32)]),_:1},8,["model-value"])}}}),UFe=Ct(FFe,[["__scopeId","data-v-6318867d"]]),tu=e=>(xt("data-v-12043762"),e=e(),Tt(),e),zFe={class:"media-image-upload"},HFe=tu(()=>l("span",null,null,-1)),KFe={class:"media-image-upload__tip"},qFe={key:0,class:"media-image-upload__list","aria-label":"已上传图片"},jFe=["src","alt","onClick"],WFe={key:1},GFe={key:2},YFe=["aria-label","onClick"],XFe={class:"media-image-upload__methods"},QFe={class:"media-image-upload__method"},JFe=tu(()=>l("strong",null,"本地上传",-1)),ZFe=tu(()=>l("span",null,"从电脑中选择已有图片文件。",-1)),eUe={class:"media-image-upload__method"},tUe=tu(()=>l("strong",null,"上传截图",-1)),nUe=tu(()=>l("span",null,"先使用系统或第三方截图工具截取画面,再读取剪贴板中的图片。",-1)),aUe={key:0,class:"media-image-upload__method"},sUe=tu(()=>l("strong",null,"屏幕截图",-1)),oUe=tu(()=>l("span",null,"选择屏幕、窗口或标签页后,可裁剪需要的区域。",-1)),rUe=["src"],lUe=le({__name:"MediaImageUpload",props:{files:{},upload:{},remove:{},limit:{default:3},accept:{default:"image/png,image/jpeg,image/webp"},maxSize:{default:5},enableScreenCapture:{type:Boolean,default:!0}},emits:["update:files"],setup(e,{expose:t,emit:n}){const a=e,s=n,o=T(!1),r=T(!1),i=T(""),c=T(!1),u=T(""),d=T(null),p=x(()=>a.files.lengths("update:files",E),h=E=>a.accept.split(",").map(A=>A.trim()).includes(E.type)?E.size>a.maxSize*1024*1024?(rt.warning(`单张图片不能超过 ${a.maxSize}MB`),!1):p.value?!0:(rt.warning(`最多上传 ${a.limit} 张图片`),!1):(rt.warning("仅支持 PNG、JPEG、WebP 格式图片"),!1),m=async E=>{if(!h(E))return;const R=`local-${Date.now()}-${Math.random()}`,A={id:R,name:E.name,status:"uploading"},N=[...a.files,A];v(N);try{const P=await a.upload(E);v(N.map(B=>B.id===R?{...B,id:P.id,url:P.url,previewUrl:P.previewUrl||URL.createObjectURL(E),status:"ready"}:B))}catch(P){v(N.map(B=>B.id===R?{...B,status:"failed",errorMessage:P instanceof Error?P.message:"图片上传失败,请稍后重试"}:B))}},g=E=>{E.raw&&m(E.raw)},y=()=>{var E,R;return(R=(E=d.value)==null?void 0:E.$el.querySelector("input[type=file]"))==null?void 0:R.click()},b=()=>{o.value=!1,y()},C=async()=>{var E;if(!((E=navigator.clipboard)!=null&&E.read)){rt.warning("当前浏览器不支持读取剪贴板,请先粘贴或选择本地图片");return}try{const R=await navigator.clipboard.read();for(const A of R){const N=A.types.find(B=>["image/png","image/jpeg","image/webp"].includes(B));if(!N)continue;const P=await A.getType(N);o.value=!1,await m(new File([P],`clipboard-${Date.now()}.${N.split("/")[1]}`,{type:N}));return}rt.info("未检测到截图,请先使用系统或第三方截图工具截取画面后重试")}catch(R){if(R instanceof DOMException&&R.name==="NotAllowedError"){rt.warning("未获得剪贴板读取权限,请先粘贴或选择本地图片");return}rt.warning("读取剪贴板失败,请先粘贴或选择本地图片")}},k=async()=>{var E,R;if(o.value=!1,!((E=navigator.mediaDevices)!=null&&E.getDisplayMedia)||!window.isSecureContext){rt.warning("当前环境无法截图上传,请选择本地上传");return}try{const A=await navigator.mediaDevices.getDisplayMedia({video:!0,audio:!1}),N=document.createElement("video");N.srcObject=A,N.muted=!0,N.playsInline=!0,await new Promise((B,M)=>{const j=()=>{q(),B()},F=()=>{q(),M(new Error("屏幕画面读取失败"))},q=()=>{N.removeEventListener("loadeddata",j),N.removeEventListener("error",F)};N.addEventListener("loadeddata",j,{once:!0}),N.addEventListener("error",F,{once:!0}),N.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA&&j(),N.play().catch(F)}),await new Promise(B=>requestAnimationFrame(()=>B()));const P=document.createElement("canvas");if(P.width=N.videoWidth,P.height=N.videoHeight,!P.width||!P.height)throw new Error("屏幕画面尺寸读取失败");(R=P.getContext("2d"))==null||R.drawImage(N,0,0),A.getTracks().forEach(B=>B.stop()),i.value=P.toDataURL("image/png"),r.value=!0}catch(A){if(A instanceof DOMException&&A.name==="NotAllowedError")return;rt.warning("当前环境无法截图上传,请选择本地上传")}},S=async E=>{var R,A;try{await((R=a.remove)==null?void 0:R.call(a,E)),v(a.files.filter(N=>N.id!==E.id)),(A=E.previewUrl)!=null&&A.startsWith("blob:")&&URL.revokeObjectURL(E.previewUrl)}catch(N){rt.error(N instanceof Error?N.message:"图片删除失败,请稍后重试")}},$=E=>{const R=E.previewUrl||E.url;R&&(u.value=R,c.value=!0)};return t({addFile:m}),(E,R)=>{const A=Ne("el-upload"),N=Ne("el-button"),P=Ne("el-dialog");return _(),w("div",zFe,[z(A,{ref_key:"nativeUpload",ref:d,"data-media-native-upload":"",class:"media-image-upload__native","auto-upload":!1,"show-file-list":!1,accept:E.accept,"on-change":g},{trigger:W(()=>[HFe]),_:1},8,["accept"]),be(E.$slots,"trigger",{open:()=>o.value=!0,disabled:!p.value},()=>[z(N,{class:"media-image-upload__trigger",type:"primary",disabled:!p.value,onClick:R[0]||(R[0]=B=>o.value=!0)},{default:W(()=>[Ce("上传图片")]),_:1},8,["disabled"])],!0),be(E.$slots,"tip",{},()=>[l("p",KFe,"支持 PNG、JPEG、WebP,单张不超过 "+I(E.maxSize)+"MB,最多 "+I(E.limit)+" 张",1)],!0),E.files.length?(_(),w("ul",qFe,[(_(!0),w(_e,null,Re(E.files,B=>(_(),w("li",{key:B.id,class:V(["media-image-upload__item",`is-${B.status}`])},[be(E.$slots,"file",{file:B,remove:()=>S(B),preview:()=>$(B)},()=>[B.status==="ready"&&(B.previewUrl||B.url)?(_(),w("img",{key:0,src:B.previewUrl||B.url,alt:B.name,onClick:M=>$(B)},null,8,jFe)):B.status==="uploading"?(_(),w("span",WFe,"上传中...")):(_(),w("span",GFe,I(B.errorMessage||"上传失败"),1)),l("button",{type:"button","aria-label":`删除 ${B.name}`,onClick:M=>S(B)},"删除",8,YFe)],!0)],2))),128))])):K("",!0),z(P,{modelValue:o.value,"onUpdate:modelValue":R[1]||(R[1]=B=>o.value=B),title:"上传图片",width:"360px"},{default:W(()=>[l("div",XFe,[l("div",QFe,[JFe,ZFe,z(N,{onClick:b},{default:W(()=>[Ce("本地上传")]),_:1})]),l("div",eUe,[tUe,nUe,z(N,{type:"primary",onClick:C},{default:W(()=>[Ce("上传截图")]),_:1})]),E.enableScreenCapture?(_(),w("div",aUe,[sUe,oUe,z(N,{onClick:k},{default:W(()=>[Ce("屏幕截图")]),_:1})])):K("",!0)])]),_:1},8,["modelValue"]),z(UFe,{visible:r.value,"image-url":i.value,onCancel:R[2]||(R[2]=B=>r.value=!1),onConfirm:R[3]||(R[3]=B=>{r.value=!1,m(B)})},null,8,["visible","image-url"]),z(P,{modelValue:c.value,"onUpdate:modelValue":R[4]||(R[4]=B=>c.value=B),title:"图片预览",width:"min(960px, 94vw)",top:"5vh",class:"media-image-upload__preview-dialog"},{default:W(()=>[u.value?(_(),w("img",{key:0,class:"media-image-upload__preview-image",src:u.value,alt:"图片预览"},null,8,rUe)):K("",!0)]),_:1},8,["modelValue"])])}}}),qA=Ct(lUe,[["__scopeId","data-v-12043762"]]),Va=e=>(xt("data-v-803c027a"),e=e(),Tt(),e),iUe={class:"fd-page"},cUe={class:"fd-toolbar"},uUe=Va(()=>l("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[l("polyline",{points:"15,18 9,12 15,6"})],-1)),dUe=Va(()=>l("span",{class:"fd-toolbar__back-text"},"返回",-1)),fUe=[uUe,dUe],pUe={key:0,class:"fd-toolbar__center"},vUe={class:"fd-toolbar__no"},hUe=Va(()=>l("span",{class:"fd-toolbar__status-dot","aria-hidden":"true"},null,-1)),mUe=["aria-label","aria-expanded"],gUe=mn('详情',2),_Ue=[gUe],yUe={key:0,class:"fd-loading","aria-busy":"true","aria-live":"polite"},bUe=Va(()=>l("div",{class:"fd-loading__skeleton"},[l("div",{class:"fd-loading__row fd-loading__row--left"}),l("div",{class:"fd-loading__row fd-loading__row--right"}),l("div",{class:"fd-loading__row fd-loading__row--left"})],-1)),wUe=[bUe],CUe={key:1,class:"fd-error",role:"alert"},kUe=mn('',1),SUe={class:"fd-error__text"},EUe={key:2,class:"fd-body"},$Ue={class:"fd-chat"},xUe=["aria-label"],TUe={key:0,class:"fd-chat__system",role:"status"},IUe={class:"fd-chat__system-time"},AUe={key:0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},NUe=Va(()=>l("path",{d:"M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2"},null,-1)),RUe=Va(()=>l("circle",{cx:"12",cy:"7",r:"4"},null,-1)),PUe=[NUe,RUe],MUe={key:1,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},BUe=Va(()=>l("path",{d:"M18 8h1a4 4 0 010 8h-1M2 8h16v9a4 4 0 01-4 4H6a4 4 0 01-4-4V8zM6 1v3M10 1v3M14 1v3"},null,-1)),LUe=[BUe],OUe={class:"fd-chat__bubble-wrap"},DUe={class:"fd-chat__meta"},VUe={class:"fd-chat__sender"},FUe={class:"fd-chat__time"},UUe={class:"fd-chat__bubble"},zUe={class:"fd-chat__bubble-text"},HUe={key:0,class:"fd-chat__images"},KUe={key:0,class:"fd-images-loading"},qUe=Va(()=>l("span",{class:"fd-spinner","aria-hidden":"true"},null,-1)),jUe=Va(()=>l("span",{class:"fd-images-loading__text"},"图片加载中",-1)),WUe=[qUe,jUe],GUe={key:0,class:"fd-chat__empty"},YUe=mn('

    暂无会话记录

    在下方发送消息,客服将在此回复

    ',3),XUe=[YUe],QUe=Va(()=>l("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[l("polyline",{points:"6 9 12 15 18 9"})],-1)),JUe=[QUe],ZUe={key:0,class:"fd-chat__closed"},eze={key:1,class:"fd-chat__composer"},tze={class:"fd-chat__input-wrap"},nze=["disabled"],aze={key:0,class:"fd-chat__send-spinner","aria-hidden":"true"},sze={key:1,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},oze=Va(()=>l("line",{x1:"22",y1:"2",x2:"11",y2:"13"},null,-1)),rze=Va(()=>l("polygon",{points:"22 2 15 22 11 13 2 9 22 2"},null,-1)),lze=[oze,rze],ize={class:"fd-chat__composer-footer"},cze={key:0,class:"fd-chat__field-error",role:"alert"},uze=["aria-hidden"],dze={class:"fd-aside__inner"},fze=Va(()=>l("h2",{class:"fd-aside__title"},"反馈详情",-1)),pze=Va(()=>l("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[l("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),l("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)),vze=[pze],hze={class:"fd-aside__body"},mze={class:"fd-aside__section"},gze=Va(()=>l("h3",{class:"fd-aside__section-title"},"处理进度",-1)),_ze={class:"fd-progress",role:"list","aria-label":"反馈处理进度"},yze={class:"fd-progress__dot"},bze={key:0,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},wze=Va(()=>l("polyline",{points:"20 6 9 17 4 12"},null,-1)),Cze=[wze],kze={key:1,class:"fd-progress__pulse","aria-hidden":"true"},Sze={key:2},Eze={class:"fd-progress__label"},$ze={class:"fd-aside__section"},xze={class:"fd-aside__section-title"},Tze={class:"fd-aside__feedback-title"},Ize={class:"fd-aside__feedback-content"},Aze={key:0,class:"fd-aside__images"},Nze={key:0,class:"fd-images-loading"},Rze=Va(()=>l("span",{class:"fd-spinner","aria-hidden":"true"},null,-1)),Pze=Va(()=>l("span",{class:"fd-images-loading__text"},"图片加载中",-1)),Mze=[Rze,Pze],Bze={class:"fd-aside__section"},Lze=Va(()=>l("h3",{class:"fd-aside__section-title"},"信息",-1)),Oze={class:"fd-aside__meta"},Dze={class:"fd-aside__meta-row"},Vze=Va(()=>l("dt",null,"反馈单号",-1)),Fze={class:"fd-aside__meta-row"},Uze=Va(()=>l("dt",null,"提交时间",-1)),zze={class:"fd-aside__meta-row"},Hze=Va(()=>l("dt",null,"当前状态",-1)),jv=3,hu=2e3,Kze=5*1024*1024,Kg="feedback_draft_",qze=le({__name:"FeedbackDetailView",setup(e){const t=fa(),n=pn(),a={bug:"问题反馈",suggest:"建议",consult:"咨询",other:"其他"},s={new:"待处理",processing:"处理中",resolved:"已解决",closed:"已关闭"},o={new:0,processing:1,resolved:2,closed:3},r=[{key:"new",label:"待处理"},{key:"processing",label:"处理中"},{key:"resolved",label:"已解决"},{key:"closed",label:"已关闭"}],i=["image/png","image/jpeg","image/webp"],c=x(()=>String(t.params.id??"")),u=T(null),d=T(!1),p=T(""),v=T({}),h=T(!1),m=T(""),g=T([]),y=T(!1),b=T(!1),C=T(null),k=T(!1),S=T(!1),$=x(()=>{var Y;return((Y=u.value)==null?void 0:Y.status)==="closed"}),E=x(()=>m.value.trim().length),R=x(()=>E.value>hu),A=x(()=>!$.value&&!b.value&&!y.value&&E.value>0&&!R.value),N=x(()=>u.value?o[u.value.status]:0),P=x(()=>{var re;if(!((re=u.value)!=null&&re.messages.length))return[];const Y=[];let ne="";for(const se of u.value.messages){const ke=se.createTime.slice(0,10);ke!==ne?(ne=ke,Y.push({dateLabel:B(ke),items:[se]})):Y[Y.length-1].items.push(se)}return Y});function B(Y){const ne=new Date,re=ne.toISOString().slice(0,10),se=new Date(ne);se.setDate(se.getDate()-1);const ke=se.toISOString().slice(0,10);return Y===re?"今天":Y===ke?"昨天":Y}const M=async()=>{if(c.value){d.value=!0,p.value="",u.value=null;try{u.value=await MFe(c.value),await F(u.value),await it(()=>q(!0))}catch(Y){p.value=Y instanceof Error?Y.message:"详情加载失败,请稍后重试。"}finally{d.value=!1}}},j=()=>{Object.values(v.value).filter(Y=>Y.startsWith("blob:")).forEach(Y=>URL.revokeObjectURL(Y)),v.value={}},F=async Y=>{j();const ne=[...Y.images||[],...Y.messages.flatMap(re=>re.images||[])].filter(Jhe);if(ne.length===0){v.value={};return}h.value=!0;try{const se=(await Promise.allSettled(ne.map(async ye=>[ye,await Zhe(ye)]))).filter(ye=>ye.status==="fulfilled");v.value=Object.fromEntries(se.map(ye=>ye.value));const ke=ne.length-se.length;ke>0&&rt.warning(`${ke} 张图片加载失败,请稍后重试或联系客服`)}finally{h.value=!1}},q=(Y=!1)=>{const ne=C.value;ne&&ne.scrollTo({top:ne.scrollHeight,behavior:Y?"auto":"smooth"})},L=()=>{const Y=C.value;if(!Y)return;const ne=Y.scrollHeight-Y.scrollTop-Y.clientHeight;k.value=ne>120},U=async Y=>{if(!Y)throw new Error("未选择图片");if(g.value.length>=jv)throw new Error(`最多上传 ${jv} 张图片`);if(!Y.type||!i.includes(Y.type))throw new Error("仅支持 PNG、JPG、WebP 格式图片");if(Y.size>Kze)throw new Error("单张图片大小不能超过 5MB");y.value=!0;try{const ne=await aA("feedback",Y);return g.value=[...g.value,ne.fileUrl],v.value={...v.value,[ne.fileUrl]:URL.createObjectURL(Y)},ne.fileUrl}finally{y.value=!1}},O=x(()=>g.value.map((Y,ne)=>({id:Y,name:`反馈截图 ${ne+1}`,url:Y,previewUrl:v.value[Y],status:"ready"}))),G=async Y=>{const ne=await U(Y);return{id:ne,url:ne,previewUrl:v.value[ne]}},ae=async Y=>{const ne=g.value.indexOf(Y.url||"");ne>=0&&await te(ne)},Z=async Y=>{const ne=KA(Y,i);if(!(!ne||g.value.length>=jv||y.value)){Y.preventDefault();try{await U(ne)}catch{}}},te=async Y=>{const ne=g.value[Y];if(!ne)return;try{await nA(ne)}catch{return}const re=v.value[ne];if(re!=null&&re.startsWith("blob:")){URL.revokeObjectURL(re);const{[ne]:se,...ke}=v.value;v.value=ke}g.value=g.value.filter((se,ke)=>ke!==Y),ee()},ie=Y=>{(Y.ctrlKey||Y.metaKey)&&Y.key==="Enter"&&(Y.preventDefault(),A.value&&oe())},oe=async()=>{const Y=m.value.trim();if(Y){if(Y.length>hu){rt.warning(`追问内容不能超过 ${hu} 字`);return}b.value=!0;try{await BFe(c.value,{content:Y,images:g.value.length>0?g.value:void 0}),m.value="",g.value=[],H(),await M(),rt.success("追问已发送")}catch{}finally{b.value=!1}}},J=Y=>Y.senderType==="user"?"我":Y.senderType==="admin"?`客服 ${Y.senderName||""}`.trim():"",ee=()=>{if($.value)return;if(!(m.value.trim()||g.value.length>0)){H();return}try{localStorage.setItem(Kg+c.value,JSON.stringify({content:m.value,images:g.value}))}catch{}},Q=()=>{if(!$.value)try{const Y=localStorage.getItem(Kg+c.value);if(!Y)return;const ne=JSON.parse(Y);ne.content&&(m.value=ne.content),Array.isArray(ne.images)&&(g.value=ne.images)}catch{}},H=()=>{try{localStorage.removeItem(Kg+c.value)}catch{}},X=()=>{window.history.length>1?n.back():n.push("/user/feedbacks")},he=()=>{S.value=!S.value},D=()=>{S.value=!1};return ft(async()=>{await M(),Q()}),on(j),(Y,ne)=>{const re=Ne("el-image"),se=Ne("el-input");return _(),w("section",iUe,[l("header",cUe,[l("button",{type:"button",class:"fd-toolbar__back","aria-label":"返回反馈列表",onClick:X},fUe),u.value?(_(),w("div",pUe,[l("span",vUe,I(u.value.feedbackNo),1),l("span",{class:V(["fd-toolbar__status",`fd-toolbar__status--${u.value.status}`])},[hUe,Ce(" "+I(s[u.value.status]),1)],2)])):K("",!0),u.value?(_(),w("button",{key:1,type:"button",class:"fd-toolbar__info-btn","aria-label":S.value?"关闭详情面板":"打开详情面板","aria-expanded":S.value,onClick:he},_Ue,8,mUe)):K("",!0)]),d.value?(_(),w("div",yUe,wUe)):p.value?(_(),w("div",CUe,[kUe,l("p",SUe,I(p.value),1),l("button",{type:"button",class:"fd-error__retry",onClick:M},"重试")])):u.value?(_(),w("div",EUe,[l("main",$Ue,[l("section",{ref_key:"timelineRef",ref:C,class:"fd-chat__stream","aria-label":"会话时间线","aria-live":"polite",onScroll:L},[(_(!0),w(_e,null,Re(P.value,ke=>(_(),w(_e,{key:ke.dateLabel},[l("div",{class:"fd-chat__date",role:"separator","aria-label":ke.dateLabel},[l("span",null,I(ke.dateLabel),1)],8,xUe),(_(!0),w(_e,null,Re(ke.items,ye=>(_(),w("div",{key:ye.id,class:V(["fd-chat__msg",{"fd-chat__msg--user":ye.senderType==="user","fd-chat__msg--admin":ye.senderType==="admin","fd-chat__msg--system":ye.messageType==="system_event"}])},[ye.messageType==="system_event"?(_(),w("div",TUe,[l("span",null,I(ye.content),1),l("span",IUe,I(ye.createTime.slice(11)),1)])):(_(),w(_e,{key:1},[l("div",{class:V(["fd-chat__avatar",ye.senderType==="user"?"fd-chat__avatar--user":"fd-chat__avatar--admin"]),"aria-hidden":"true"},[ye.senderType==="user"?(_(),w("svg",AUe,PUe)):(_(),w("svg",MUe,LUe))],2),l("div",OUe,[l("div",DUe,[l("span",VUe,I(J(ye)),1),l("span",FUe,I(ye.createTime.slice(11)),1)]),l("div",UUe,[l("div",zUe,I(ye.content),1),ye.images&&ye.images.length>0?(_(),w("div",HUe,[(_(!0),w(_e,null,Re(ye.images,(Se,ce)=>(_(),ue(re,{key:ce,class:"fd-chat__image",src:v.value[Se]||"","preview-src-list":ye.images.map(we=>v.value[we]).filter(Boolean),"initial-index":ce,fit:"cover","preview-teleported":"","hide-on-click-modal":"",alt:`追问截图 ${ce+1}`},null,8,["src","preview-src-list","initial-index","alt"]))),128)),h.value?(_(),w("div",KUe,WUe)):K("",!0)])):K("",!0)])])],64))],2))),128))],64))),128)),u.value.messages.length===0?(_(),w("div",GUe,XUe)):K("",!0),z(aa,{name:"fd-fade"},{default:W(()=>[k.value?(_(),w("button",{key:0,type:"button",class:"fd-chat__scroll-btn","aria-label":"滚动到最新消息",onClick:ne[0]||(ne[0]=ke=>q())},JUe)):K("",!0)]),_:1})],544),$.value?(_(),w("section",ZUe," 该反馈已关闭,如需帮助请重新提交。 ")):(_(),w("section",eze,[l("form",{class:"fd-chat__form",onSubmit:qe(oe,["prevent"])},[z(f(qA),{files:O.value,limit:jv,upload:G,remove:ae,"onUpdate:files":ne[1]||(ne[1]=ke=>g.value=ke.map(ye=>ye.url).filter(ye=>!!ye))},null,8,["files"]),l("div",tze,[z(se,{modelValue:m.value,"onUpdate:modelValue":ne[2]||(ne[2]=ke=>m.value=ke),type:"textarea",rows:1,maxlength:hu,autosize:{minRows:1,maxRows:4},placeholder:"输入追问内容…(可直接粘贴截图,Ctrl+Enter 发送)",resize:"none","aria-label":"追问内容",onInput:ee,onKeydown:ie,onPaste:Z},null,8,["modelValue"])]),l("button",{type:"submit",class:"fd-chat__send",disabled:!A.value,"aria-label":"发送追问"},[b.value?(_(),w("span",aze)):(_(),w("svg",sze,lze))],8,nze)],32),l("div",ize,[l("span",{class:V(["fd-chat__count",{"is-over":R.value}])},I(E.value)+"/"+I(hu),3),R.value?(_(),w("p",cze," 内容超出 "+I(hu)+" 字上限 ")):K("",!0)])]))]),l("aside",{class:V(["fd-aside",{"is-open":S.value}]),"aria-hidden":!S.value},[l("div",dze,[l("div",{class:"fd-aside__head"},[fze,l("button",{type:"button",class:"fd-aside__close","aria-label":"关闭详情面板",onClick:D},vze)]),l("div",hze,[l("section",mze,[gze,l("div",_ze,[(_(),w(_e,null,Re(r,(ke,ye)=>l("div",{key:ke.key,class:V(["fd-progress__step",{"is-done":ye0?(_(),w("div",Aze,[(_(!0),w(_e,null,Re(u.value.images,(ke,ye)=>(_(),ue(re,{key:ye,class:"fd-aside__image",src:v.value[ke]||"","preview-src-list":u.value.images.map(Se=>v.value[Se]).filter(Boolean),"initial-index":ye,fit:"cover","preview-teleported":"","hide-on-click-modal":"",alt:`反馈截图 ${ye+1}`},null,8,["src","preview-src-list","initial-index","alt"]))),128)),h.value?(_(),w("div",Nze,Mze)):K("",!0)])):K("",!0)]),l("section",Bze,[Lze,l("dl",Oze,[l("div",Dze,[Vze,l("dd",null,I(u.value.feedbackNo),1)]),l("div",Fze,[Uze,l("dd",null,I(u.value.createTime),1)]),l("div",zze,[Hze,l("dd",null,I(s[u.value.status]),1)])])])])])],10,uze),S.value?(_(),w("div",{key:0,class:"fd-overlay",onClick:D})):K("",!0)])):K("",!0)])}}}),jze=Ct(qze,[["__scopeId","data-v-803c027a"]]),B0=e=>(xt("data-v-6e4fc8e3"),e=e(),Tt(),e),Wze={class:"page-container feedback-list-view"},Gze={class:"page-card feedback-list-view__card"},Yze=B0(()=>l("header",{class:"feedback-list-view__header"},[l("div",null,[l("h2",null,"我的反馈"),l("p",null,"查看已提交的反馈及处理进度,可在详情中追问。")])],-1)),Xze={key:0,class:"feedback-list-view__state feedback-list-view__state--error",role:"alert"},Qze={key:1,class:"feedback-list-view__skeleton","aria-busy":"true","aria-live":"polite"},Jze=mn('',6),Zze=[Jze],eHe={key:2,class:"feedback-list-view__state feedback-list-view__state--empty"},tHe=B0(()=>l("div",{class:"feedback-list-view__empty-icon","aria-hidden":"true"},[l("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})])],-1)),nHe=B0(()=>l("p",{class:"feedback-list-view__empty-text"},"暂无反馈记录",-1)),aHe={key:3,class:"feedback-list-view__table-wrap"},sHe={class:"feedback-list-view__table"},oHe=B0(()=>l("thead",null,[l("tr",null,[l("th",{scope:"col"},"反馈单号"),l("th",{scope:"col"},"类型"),l("th",{scope:"col"},"标题"),l("th",{scope:"col"},"状态"),l("th",{scope:"col"},"最新动态"),l("th",{scope:"col"},"提交时间"),l("th",{scope:"col",class:"feedback-list-view__action-col"},"操作")])],-1)),rHe=["onClick","onKeydown"],lHe={class:"feedback-list-view__no-cell"},iHe={class:"feedback-list-view__title-cell"},cHe={class:"feedback-list-view__summary-cell"},uHe={class:"feedback-list-view__time-cell"},dHe={class:"feedback-list-view__action-col"},fHe=["onClick"],pHe={key:4,class:"feedback-list-view__footer"},vHe=le({__name:"FeedbackListView",setup(e){const t=pn(),n={bug:"问题反馈",suggest:"建议",consult:"咨询",other:"其他"},a=[{value:"",label:"全部"},{value:"new",label:"待处理"},{value:"processing",label:"处理中"},{value:"resolved",label:"已解决"},{value:"closed",label:"已关闭"}],s={new:"待处理",processing:"处理中",resolved:"已解决",closed:"已关闭"},o={new:"#d97706",processing:"#2563eb",resolved:"#16a34a",closed:"#6b7280"},r=At({status:"",pageNum:1,pageSize:10}),i=[10,20,50],c=T({list:[],total:0,pageNum:1,pageSize:10}),u=T(!1),d=T(""),p=async()=>{u.value=!0,d.value="";try{c.value=await PFe({status:r.status||void 0,pageNum:r.pageNum,pageSize:r.pageSize})}catch(b){c.value={list:[],total:0,pageNum:r.pageNum,pageSize:r.pageSize},d.value=b instanceof Error?b.message:"反馈列表加载失败,请稍后重试。"}finally{u.value=!1}},v=async()=>{r.pageNum=1,await p()},h=async b=>{b===r.pageNum||b<1||(r.pageNum=b,await p())},m=async b=>{!i.includes(b)||b===r.pageSize||(r.pageNum=1,r.pageSize=b,await p())},g=b=>{t.push(`/feedbacks/${b.id}`)},y=()=>{t.push("/support")};return ft(()=>{p()}),(b,C)=>{const k=Ne("el-option"),S=Ne("el-select"),$=Ne("el-button"),E=Ne("el-tag"),R=Ne("el-pagination");return _(),w("section",Wze,[l("section",Gze,[Yze,l("form",{class:"feedback-list-view__filters",onSubmit:qe(v,["prevent"])},[z(S,{modelValue:r.status,"onUpdate:modelValue":C[0]||(C[0]=A=>r.status=A),class:"feedback-list-view__filter-select mall-select-red-theme","popper-class":"feedback-list-view__select-dropdown mall-select-red-dropdown",placeholder:"反馈状态",clearable:"","aria-label":"按反馈状态筛选"},{default:W(()=>[(_(),w(_e,null,Re(a,A=>z(k,{key:A.value,label:A.label,value:A.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),z($,{type:"primary","native-type":"submit",class:"feedback-list-view__filter-btn feedback-list-view__filter-btn--primary",loading:u.value,"aria-label":"查询反馈列表"},{default:W(()=>[Ce(" 查询 ")]),_:1},8,["loading"])],32),d.value?(_(),w("div",Xze,[l("span",null,I(d.value),1),l("button",{type:"button",class:"feedback-list-view__retry",onClick:p},"重试")])):u.value?(_(),w("div",Qze,[(_(),w(_e,null,Re(5,A=>l("div",{key:A,class:"feedback-list-view__skeleton-row"},Zze)),64))])):c.value.list.length===0?(_(),w("div",eHe,[tHe,nHe,l("button",{type:"button",class:"feedback-list-view__empty-cta",onClick:y},"去提交反馈")])):(_(),w("div",aHe,[l("table",sHe,[oHe,l("tbody",null,[(_(!0),w(_e,null,Re(c.value.list,A=>(_(),w("tr",{key:A.id,class:"feedback-list-view__row",tabindex:0,onClick:N=>g(A),onKeydown:yn(N=>g(A),["enter"])},[l("td",lHe,I(A.feedbackNo),1),l("td",null,[z(E,{size:"small",effect:"light",type:"info"},{default:W(()=>[Ce(I(n[A.feedbackType]??A.feedbackType),1)]),_:2},1024)]),l("td",iHe,I(A.title),1),l("td",null,[l("span",{class:V(["feedback-list-view__status",`feedback-list-view__status--${A.status}`])},[l("span",{class:"feedback-list-view__status-dot",style:Je({backgroundColor:o[A.status]}),"aria-hidden":"true"},null,4),Ce(" "+I(s[A.status]??A.status),1)],2)]),l("td",cHe,I(A.lastMessageSummary||"--"),1),l("td",uHe,I(A.createTime),1),l("td",dHe,[l("button",{type:"button",class:"feedback-list-view__detail-btn","aria-label":"查看反馈 {{ row.feedbackNo }} 详情",onClick:qe(N=>g(A),["stop"])}," 查看详情 ",8,fHe)])],40,rHe))),128))])])])),c.value.list.length>0?(_(),w("footer",pHe,[z(R,{background:"",layout:"total, sizes, prev, pager, next","current-page":r.pageNum,"page-size":r.pageSize,"page-sizes":i,total:c.value.total,"popper-class":"feedback-list-view__pagination-dropdown mall-select-red-dropdown",onCurrentChange:h,onSizeChange:m},null,8,["current-page","page-size","total"])])):K("",!0)])])}}}),hHe=Ct(vHe,[["__scopeId","data-v-6e4fc8e3"]]),mHe=e=>dt.post("/api/v1/feedbacks",e),gHe=[{label:"问题反馈",value:"bug",description:"提交异常、报错或体验故障。"},{label:"建议",value:"suggest",description:"反馈功能建议、产品优化想法。"},{label:"咨询",value:"consult",description:"咨询调用、接入或服务规则。"},{label:"其他",value:"other",description:"补充暂不归类的问题与说明。"}],rv=e=>(xt("data-v-594b5615"),e=e(),Tt(),e),_He={class:"fbf"},yHe={class:"fbf__field"},bHe={class:"fbf__label-row"},wHe=rv(()=>l("label",{class:"fbf__label is-required",for:"fbf-title"},"标题",-1)),CHe={class:"fbf__count"},kHe=["maxlength"],SHe={class:"fbf__field"},EHe={class:"fbf__label-row"},$He=rv(()=>l("label",{class:"fbf__label is-required",for:"fbf-content"},"内容",-1)),xHe={class:"fbf__count"},THe=["maxlength"],IHe={class:"fbf__contact"},AHe={class:"fbf__field"},NHe=rv(()=>l("label",{class:"fbf__label",for:"fbf-phone"},"联系电话",-1)),RHe={class:"fbf__field"},PHe=rv(()=>l("label",{class:"fbf__label",for:"fbf-email"},"联系邮箱",-1)),MHe={class:"fbf__upload"},BHe=rv(()=>l("div",{class:"fbf__label-row"},[l("span",{class:"fbf__label"},"上传截图")],-1)),LHe={key:0,class:"fbf__error",role:"alert"},OHe=["disabled"],DHe={key:0,class:"fbf__submit-spinner","aria-hidden":"true"},VHe=le({__name:"SupportFeedbackForm",props:{submitting:{type:Boolean,default:!1},uploadLimit:{default:3},files:{default:()=>[]},feedbackTypes:{default:void 0},errorMessage:{default:""},loginRequired:{type:Boolean,default:!0},titleMaxLength:{default:50},contentMaxLength:{default:2e3},defaultType:{default:"bug"},upload:{},remove:{}},emits:["submit","update:files"],setup(e,{emit:t}){const n=e,a=t,s=At({feedbackType:n.defaultType,title:"",content:"",contactPhone:"",contactEmail:""}),o=T(""),r=T(null),i=["image/png","image/jpeg","image/webp"],c=x(()=>{var $;return($=n.feedbackTypes)!=null&&$.length?n.feedbackTypes:gHe}),u=x(()=>n.files.slice(0,n.uploadLimit)),d=x(()=>s.title.trim().length),p=x(()=>s.content.trim().length),v=x(()=>o.value||n.errorMessage),h=x(()=>u.value.some($=>$.status==="uploading")),m=x(()=>u.value.filter($=>$.status!=="failed"&&$.url).map($=>$.url)),g=$=>a("update:files",$),y=/^1\d{10}$/,b=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,C=()=>{o.value=""},k=$=>{var R;const E=KA($,i);!E||u.value.length>=n.uploadLimit||($.preventDefault(),C(),(R=r.value)==null||R.addFile(E))},S=()=>{const $=s.title.trim(),E=s.content.trim(),R=s.contactPhone.trim(),A=s.contactEmail.trim();if(!$){o.value="请输入反馈标题";return}if($.length>n.titleMaxLength){o.value=`反馈标题最多 ${n.titleMaxLength} 字`;return}if(!E){o.value="请详细描述问题或建议";return}if(E.length>n.contentMaxLength){o.value=`反馈内容最多 ${n.contentMaxLength} 字`;return}if(R&&!y.test(R)){o.value="请输入正确的联系电话";return}if(A&&!b.test(A)){o.value="请输入正确的联系邮箱";return}if(h.value){o.value="图片上传中,请稍后再提交反馈";return}C(),a("submit",{feedbackType:s.feedbackType,title:$,content:E,contactPhone:R||void 0,contactEmail:A||void 0,images:m.value})};return($,E)=>{const R=Ne("el-radio-button"),A=Ne("el-radio-group");return _(),w("div",_He,[z(A,{modelValue:s.feedbackType,"onUpdate:modelValue":E[0]||(E[0]=N=>s.feedbackType=N),class:"fbf__types","aria-label":"反馈类型",onChange:C},{default:W(()=>[(_(!0),w(_e,null,Re(c.value,N=>(_(),ue(R,{key:N.value,"data-testid":`support-feedback-type-${N.value}`,label:N.value},{default:W(()=>[Ce(I(N.label),1)]),_:2},1032,["data-testid","label"]))),128))]),_:1},8,["modelValue"]),l("form",{class:"fbf__form","data-testid":"support-feedback-submit",onSubmit:qe(S,["prevent"])},[l("div",yHe,[l("div",bHe,[wHe,l("span",CHe,I(d.value)+"/"+I($.titleMaxLength),1)]),et(l("input",{id:"fbf-title","onUpdate:modelValue":E[1]||(E[1]=N=>s.title=N),"data-testid":"support-feedback-title",class:"fbf__input",type:"text",maxlength:$.titleMaxLength,placeholder:"请输入反馈标题",autocomplete:"off",onInput:C},null,40,kHe),[[hn,s.title,void 0,{trim:!0}]])]),l("div",SHe,[l("div",EHe,[$He,l("span",xHe,I(p.value)+"/"+I($.contentMaxLength),1)]),et(l("textarea",{id:"fbf-content","onUpdate:modelValue":E[2]||(E[2]=N=>s.content=N),"data-testid":"support-feedback-content",class:"fbf__textarea",maxlength:$.contentMaxLength,placeholder:"请详细描述您的问题或建议,包含触发步骤、报错信息和预期结果。",onInput:C,onPaste:k},null,40,THe),[[hn,s.content,void 0,{trim:!0}]])]),l("div",IHe,[l("div",AHe,[NHe,et(l("input",{id:"fbf-phone","onUpdate:modelValue":E[3]||(E[3]=N=>s.contactPhone=N),"data-testid":"support-feedback-phone",class:"fbf__input",type:"tel",maxlength:"11",placeholder:"选填,便于快速联系",autocomplete:"tel",onInput:C},null,544),[[hn,s.contactPhone,void 0,{trim:!0}]])]),l("div",RHe,[PHe,et(l("input",{id:"fbf-email","onUpdate:modelValue":E[4]||(E[4]=N=>s.contactEmail=N),"data-testid":"support-feedback-email",class:"fbf__input",type:"email",maxlength:"100",placeholder:"选填,便于邮件回复",autocomplete:"email",onInput:C},null,544),[[hn,s.contactEmail,void 0,{trim:!0}]])])]),l("div",MHe,[BHe,z(f(qA),{ref_key:"mediaUploadRef",ref:r,files:u.value,limit:$.uploadLimit,upload:$.upload,remove:$.remove,"onUpdate:files":g},null,8,["files","limit","upload","remove"])]),v.value?(_(),w("p",LHe,I(v.value),1)):K("",!0),l("button",{type:"submit",class:"fbf__submit",disabled:$.submitting},[$.submitting?(_(),w("span",DHe)):K("",!0),Ce(" "+I($.submitting?"提交中...":"提交反馈"),1)],8,OHe)],32)])}}}),FHe=Ct(VHe,[["__scopeId","data-v-594b5615"]]),UHe=e=>(xt("data-v-55de683a"),e=e(),Tt(),e),zHe={class:"page-container feedback-submit-view"},HHe=mn('',1),KHe={class:"feedback-submit-view__body"},qHe={class:"feedback-submit-view__main-card"},jHe=UHe(()=>l("div",{class:"feedback-submit-view__panel-head"},[l("span"),l("strong",null,"反馈表单")],-1)),WHe={class:"feedback-submit-view__tips-card"},GHe=mn('',1),YHe=le({__name:"FeedbackSubmitView",setup(e){const t=pn(),n=T(!1),a=T(""),s=T([]),o=d=>{var p;(p=d==null?void 0:d.previewUrl)!=null&&p.startsWith("blob:")&&URL.revokeObjectURL(d.previewUrl)},r=["请尽量描述触发步骤、报错信息和预期结果,便于快速定位问题。","可选择图片、上传截图或在内容框粘贴截图;支持 PNG、JPEG、WebP,单张不超过 5MB,最多 3 张。","联系电话和邮箱为选填项,填写后便于客服快速与您沟通。"];async function i(d){a.value="";const p=await aA("feedback",d);return{id:p.objectKey,url:p.fileUrl}}async function c(d){d.url&&await nA(d.url).catch(()=>{})}on(()=>{s.value.forEach(o)});async function u(d){n.value=!0,a.value="";try{await mHe(d),rt.success("反馈提交成功,感谢您的反馈!"),await t.push({name:"user-feedbacks"})}catch(p){a.value=p instanceof Error?p.message:"反馈提交失败,请稍后重试"}finally{n.value=!1}}return(d,p)=>(_(),w("section",zHe,[HHe,l("div",KHe,[l("section",qHe,[jHe,z(f(FHe),{files:s.value,upload:i,remove:c,submitting:n.value,"error-message":a.value,"onUpdate:files":p[0]||(p[0]=v=>s.value=v),onSubmit:u},null,8,["files","submitting","error-message"])]),l("aside",WHe,[GHe,l("ul",null,[(_(),w(_e,null,Re(r,v=>l("li",{key:v},I(v),1)),64))])])])]))}}),XHe=Ct(YHe,[["__scopeId","data-v-55de683a"]]),Fa=e=>(xt("data-v-211001ad"),e=e(),Tt(),e),QHe={class:"page-container confirm-page"},JHe={key:0,class:"page-state"},ZHe=Fa(()=>l("span",{class:"page-state__ring","aria-hidden":"true"},null,-1)),eKe={key:1,class:"page-state page-state--error"},tKe=Fa(()=>l("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},[l("circle",{cx:"9",cy:"9",r:"8",stroke:"currentColor","stroke-width":"1.8"}),l("line",{x1:"9",y1:"5.5",x2:"9",y2:"9",stroke:"currentColor","stroke-width":"1.8"}),l("line",{x1:"9",y1:"12.5",x2:"9.01",y2:"12.5",stroke:"currentColor","stroke-width":"1.8"})],-1)),nKe={key:2,class:"confirm-flow"},aKe={class:"card"},sKe=mn('
    壹

    套餐信息

    Package Information

    ',1),oKe={class:"card__body"},rKe={class:"hero"},lKe={class:"hero__emblem"},iKe={class:"hero__num"},cKe=Fa(()=>l("span",{class:"hero__denom"},"积分",-1)),uKe={class:"hero__detail"},dKe={class:"hero__name"},fKe={class:"hero__stats"},pKe={class:"hero__stat"},vKe=Fa(()=>l("span",{class:"hero__stat-label"},"数量",-1)),hKe={class:"hero__stat-value"},mKe=Fa(()=>l("span",{class:"hero__divider"},null,-1)),gKe={class:"hero__stat"},_Ke=Fa(()=>l("span",{class:"hero__stat-label"},"金额",-1)),yKe={class:"hero__stat-price"},bKe={class:"card"},wKe=mn('
    贰

    优惠甄选

    点击选择,再次点击取消

    ',1),CKe={class:"card__body"},kKe={class:"vgroup"},SKe={key:0,class:"vcard-empty"},EKe=Fa(()=>l("span",{class:"vcard-empty__dot"},null,-1)),$Ke={key:1,class:"vcard-empty vcard-empty--err"},xKe={key:2,class:"vcard-empty"},TKe=["data-testid"],IKe={class:"vcars__track"},AKe=["data-testid","onClick"],NKe=["checked","disabled","onChange"],RKe={class:"vcard__stub"},PKe={class:"vcard__stub-value"},MKe=Fa(()=>l("span",{class:"vcard__stub-label"},"DISCOUNT",-1)),BKe={class:"vcard__body"},LKe={class:"vcard__top"},OKe={class:"vcard__name vcard__name--brand"},DKe=Fa(()=>l("span",{class:"vcard__check"},[l("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},[l("path",{d:"M2 7L5.5 10.5L12 3.5",stroke:"#fff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),VKe={class:"vcard__desc"},FKe={class:"vcard__foot"},UKe={key:0},zKe={key:1},HKe={key:0,class:"vcars__pager"},KKe=["disabled"],qKe=Fa(()=>l("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},[l("path",{d:"M9 11L5 7L9 3",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)),jKe={class:"vcars__dots"},WKe=["disabled"],GKe=Fa(()=>l("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},[l("path",{d:"M5 11L9 7L5 3",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)),YKe={class:"card","data-testid":"order-confirm-checkout-card"},XKe=mn('
    叁

    结算确认

    Checkout Confirmation

    ',1),QKe={class:"card__body"},JKe={class:"checkout"},ZKe={class:"checkout__ledger"},eqe={class:"checkout__rows"},tqe={class:"checkout__row"},nqe=Fa(()=>l("span",{class:"checkout__label"},"套餐",-1)),aqe={class:"checkout__value"},sqe={class:"checkout__row"},oqe=Fa(()=>l("span",{class:"checkout__label"},"积分",-1)),rqe={class:"checkout__value"},lqe={class:"checkout__row"},iqe=Fa(()=>l("span",{class:"checkout__label"},"原价",-1)),cqe={class:"checkout__value"},uqe={class:"checkout__row checkout__row--rebate"},dqe=Fa(()=>l("span",{class:"checkout__label"},"抵扣",-1)),fqe={class:"checkout__value"},pqe={class:"checkout__total"},vqe=Fa(()=>l("span",null,"实付金额",-1)),hqe={class:"checkout__price"},mqe={class:"checkout__agreement"},gqe=["disabled"],_qe={key:0,class:"checkout__hint"},yqe={class:"checkout__action"},bqe=["disabled"],wqe={key:0,class:"btn__spin"},Cqe={class:"checkout__trust"},kqe={key:0,width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Sqe=Fa(()=>l("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"},null,-1)),Eqe=Fa(()=>l("line",{x1:"8",y1:"8",x2:"16",y2:"8"},null,-1)),$qe=Fa(()=>l("line",{x1:"8",y1:"12",x2:"16",y2:"12"},null,-1)),xqe=Fa(()=>l("line",{x1:"8",y1:"16",x2:"12",y2:"16"},null,-1)),Tqe=[Sqe,Eqe,$qe,xqe],Iqe={key:1,width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Aqe=Fa(()=>l("polyline",{points:"22,12 18,12 15,21 9,3 6,12 2,12"},null,-1)),Nqe=[Aqe],Rqe={key:2,width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Pqe=Fa(()=>l("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"},null,-1)),Mqe=[Pqe],Wv=2,Bqe=le({__name:"OrderConfirmView",setup(e){const t=fa(),n=pn(),a=[{key:"invoice",title:"正规发票",desc:"可申请电子发票"},{key:"instant",title:"即时到账",desc:"支付成功即生效"},{key:"secure",title:"安全可靠",desc:"多重安全保障"}],s=x(()=>{const H=t.query.packageId;if(typeof H!="string")return null;const X=Number(H);return Number.isFinite(X)&&X>0?X:null}),o=T(!1),r=T(""),i=T(null),c=T(!1),u=T(null),d=T([]),p=T(!1),v=T(""),h=T(null),m=T(!1),g=x(()=>{var H;return((H=i.value)==null?void 0:H.allowCoupon)??!1}),y=x(()=>g.value&&h.value!==null),b=x(()=>d.value.find(H=>H.id===h.value)??null),C=T(0),k=x(()=>d.value.length>0),S=x(()=>Math.max(1,Math.ceil(d.value.length/Wv))),$=x(()=>d.value.length>Wv),E=x(()=>{const H=C.value*Wv;return d.value.slice(H,H+Wv)}),R=x(()=>{var H,X;return((H=u.value)==null?void 0:H.packageName)??((X=i.value)==null?void 0:X.packageName)??"--"}),A=x(()=>{var H,X;return((H=u.value)==null?void 0:H.creditAmount)??((X=i.value)==null?void 0:X.creditAmount)??"--"}),N=x(()=>{var H,X;return((H=u.value)==null?void 0:H.orderAmount)??((X=i.value)==null?void 0:X.price)??"--"}),P=x(()=>u.value?u.value.couponDeductAmount:!i.value||!b.value?"0.00":O(b.value,i.value.price)),B=x(()=>u.value?F(u.value.payAmount)<=0?"0.01":u.value.payAmount:i.value?G(i.value.price,P.value):"--"),M=x(()=>F(B.value)===.01),j=H=>H?`¥ ${H}`:"--",F=H=>{const X=Number(H);return Number.isFinite(X)?X:0},q=H=>Math.max(H,0).toFixed(2),L=H=>{const X=Number(H);return!Number.isFinite(X)||X<=0?{multiplier:1,displayFold:"0"}:X>=10?{multiplier:X/100,displayFold:String(X/10)}:X>=1?{multiplier:X/10,displayFold:String(X)}:{multiplier:X,displayFold:String(X*10)}},U=H=>H.discountType==="percent"?`${L(H.discountValue).displayFold} 折`:`减 ${H.discountValue??0} 元`,O=(H,X)=>{const he=F(X);if(he<=0)return"0.00";if(H.discountType==="percent"){const{multiplier:D}=L(H.discountValue);return q(he-he*D)}return H.discountType==="fixed"||H.discountType==="amount"?q(Math.min(he,Number(H.discountValue??0))):"0.00"},G=(H,X)=>{const he=F(H),D=F(X),Y=he-D;return q(Y<=0?.01:Y)},ae=(H,X)=>{if(H.length===0)return null;let he=H[0],D=F(O(he,X));for(let Y=1;YD&&(he=H[Y],D=ne)}return he},Z=async H=>{var X;p.value=!0,v.value="",d.value=[],h.value=null,C.value=0;try{const he=await cA({status:"available",pageNo:1,pageSize:20,packageId:H});d.value=he.list||[];const D=ae(d.value,((X=i.value)==null?void 0:X.price)??"0");D&&(h.value=D.id)}catch(he){d.value=[],v.value=he instanceof Error?he.message:"可用优惠券加载失败,将按原价创建订单。"}finally{p.value=!1}},te=()=>{C.value<=0||(C.value-=1)},ie=()=>{C.value>=S.value-1||(C.value+=1)},oe=H=>{c.value||(h.value=h.value===H?null:H)},J=async()=>{if(!s.value){i.value=null,r.value="缺少有效套餐参数,请从积分购买页重新进入。";return}o.value=!0,r.value="",u.value=null,d.value=[],v.value="",h.value=null;try{const X=(await FA()).list.find(he=>he.id===s.value)??null;if(i.value=X,!X){r.value="当前套餐不存在或已下架,请返回积分购买页重新选择。";return}X.allowCoupon&&await Z(X.id)}catch(H){i.value=null,r.value=H instanceof Error?H.message:"套餐加载失败,请稍后重试。"}finally{o.value=!1}},ee=async()=>{var H;if(!i.value){rt.error("套餐尚未加载完成,暂时不能创建订单。");return}if(await dd()){if(!m.value){rt.error("请先勾选模型服务协议");return}c.value=!0;try{u.value=await KRe({packageId:i.value.id,useCoupon:y.value,couponId:y.value?h.value:null,payChannel:"WEBCASHIER",agreeModelServiceProtocol:m.value});const X=(H=u.value.payParams)==null?void 0:H.payUrl;X?window.location.href=X:await Q()}catch{u.value=null}finally{c.value=!1}}},Q=async()=>{u.value&&await n.push({name:"order-result",query:{id:String(u.value.orderId),orderNo:u.value.orderNo}})};return Te(()=>t.query.packageId,()=>{J()},{immediate:!0}),Te(h,(H,X)=>{!u.value||H===X||(u.value=null)}),(H,X)=>{var he,D;return _(),w("section",QHe,[o.value?(_(),w("div",JHe,[ZHe,Ce(" 加载中... ")])):r.value?(_(),w("div",eKe,[tKe,Ce(" "+I(r.value),1)])):i.value?(_(),w("div",nKe,[l("section",aKe,[sKe,l("div",oKe,[l("div",rKe,[l("div",lKe,[l("span",iKe,I(((he=i.value)==null?void 0:he.creditAmount)??"--"),1),cKe]),l("div",uKe,[l("h3",dKe,I(R.value),1),l("div",fKe,[l("span",pKe,[vKe,l("span",hKe,I(((D=i.value)==null?void 0:D.creditAmount)??"--")+" 积分",1)]),mKe,l("span",gKe,[_Ke,l("span",yKe,I(j(N.value)),1)])])])])])]),l("section",bKe,[wKe,l("div",CKe,[l("div",kKe,[p.value?(_(),w("div",SKe,[EKe,Ce(" 加载可用优惠券... ")])):v.value?(_(),w("div",$Ke,I(v.value),1)):k.value?(_(),w("div",{key:3,class:"vcars","data-testid":$.value?"order-confirm-coupon-pager":null},[l("div",IKe,[(_(!0),w(_e,null,Re(E.value,Y=>(_(),w("label",{key:Y.id,class:V(["vcard",{"vcard--sel":h.value===Y.id}]),"data-testid":`order-confirm-coupon-option-${Y.id}`,onClick:qe(ne=>oe(Y.id),["prevent"])},[l("input",{type:"radio",checked:h.value===Y.id,disabled:c.value,class:"vcard__input",onChange:ne=>oe(Y.id)},null,40,NKe),l("div",RKe,[l("span",PKe,I(U(Y)),1),MKe]),l("div",BKe,[l("div",LKe,[l("span",OKe,I(Y.couponName),1),DKe]),l("span",VKe,I(Y.couponName)+"优惠",1),l("div",FKe,[Y.minSpendAmount&&Y.minSpendAmount>0?(_(),w("span",UKe,"满 ¥"+I(Y.minSpendAmount)+" 可用",1)):(_(),w("span",zKe,"不限最低消费")),l("span",null,"有效期:"+I(Y.validStartTime||"--")+" ~ "+I(Y.validEndTime||"以后端为准"),1)])])],10,AKe))),128))]),$.value?(_(),w("div",HKe,[l("button",{type:"button",class:"vcars__arrow","aria-label":"上一组","data-testid":"order-confirm-coupon-prev",disabled:C.value===0,onClick:te},[qKe,Ce(" 上一组 ")],8,KKe),l("div",jKe,[(_(!0),w(_e,null,Re(S.value,Y=>(_(),w("span",{key:Y,class:V(["vcars__dot",{"vcars__dot--active":C.value===Y-1}])},null,2))),128))]),l("button",{type:"button",class:"vcars__arrow","aria-label":"下一组","data-testid":"order-confirm-coupon-next",disabled:C.value>=S.value-1,onClick:ie},[Ce(" 下一组 "),GKe],8,WKe)])):K("",!0)],8,TKe)):(_(),w("div",xKe,"当前套餐暂无可用优惠券"))])])]),l("section",YKe,[XKe,l("div",QKe,[l("div",JKe,[l("div",ZKe,[l("div",eqe,[l("div",tqe,[nqe,l("span",aqe,I(R.value),1)]),l("div",sqe,[oqe,l("span",rqe,I(A.value),1)]),l("div",lqe,[iqe,l("span",cqe,I(j(N.value)),1)]),l("div",uqe,[dqe,l("span",fqe,"- "+I(j(P.value)),1)])]),l("div",pqe,[vqe,l("strong",hqe,I(j(B.value)),1)]),l("label",mqe,[et(l("input",{"onUpdate:modelValue":X[0]||(X[0]=Y=>m.value=Y),type:"checkbox","data-testid":"order-confirm-agreement",disabled:c.value},null,8,gqe),[[Mo,m.value]]),l("span",null,[Ce("我已阅读并同意"),z(f(An),{class:"checkout__agreement-link",to:"/support?article=legal-model-service-agreement",target:"_blank",rel:"noopener noreferrer"},{default:W(()=>[Ce("《模型服务协议》")]),_:1}),Ce("、"),z(f(An),{class:"checkout__agreement-link",to:"/support?article=legal-model-service-information-processing-rules",target:"_blank",rel:"noopener noreferrer"},{default:W(()=>[Ce("《模型服务用户信息处理规则》")]),_:1}),Ce("、"),z(f(An),{class:"checkout__agreement-link",to:"/support?article=legal-model-service-level-agreement",target:"_blank",rel:"noopener noreferrer"},{default:W(()=>[Ce("《模型服务等级协议》")]),_:1})])]),M.value?(_(),w("p",_qe,"最低支付金额 0.01 元")):K("",!0)]),l("div",yqe,[l("button",{type:"button","data-testid":"order-confirm-submit",class:"btn",disabled:c.value||!i.value,onClick:ee},[c.value?(_(),w("span",wqe)):K("",!0),Ce(" "+I(c.value?"创建中...":"确认下单"),1)],8,bqe),l("div",Cqe,[(_(),w(_e,null,Re(a,Y=>l("span",{key:Y.key},[Y.key==="invoice"?(_(),w("svg",kqe,Tqe)):Y.key==="instant"?(_(),w("svg",Iqe,Nqe)):(_(),w("svg",Rqe,Mqe)),Ce(" "+I(Y.title),1)])),64))])])])])])])):K("",!0)])}}}),Lqe=Ct(Bqe,[["__scopeId","data-v-211001ad"]]),fw=()=>dt.get("/api/v1/invoice/info"),Oqe=e=>dt.put("/api/v1/invoice/info",e),Dqe=e=>dt.get("/api/v1/invoice/applies",{params:e}),Vqe=e=>dt.get(`/api/v1/invoice/applies/${e}`),jA=e=>dt.post("/api/v1/invoice/applies",e),Fqe=e=>dt.post(`/api/v1/invoice/applies/${e}/red-reversal`),pw=(e,t)=>{t.push({name:"order-confirm",query:{packageId:String(e)}})},vw=2005,Uqe=19e4,hw=e=>dt.post(`/api/v1/orders/${e}/refund`,void 0,{timeout:Uqe,silentErrorMessage:!0}),ss=e=>(xt("data-v-69473953"),e=e(),Tt(),e),zqe={class:"page-container order-detail-view"},Hqe={class:"page-card order-detail-view__hero"},Kqe=ss(()=>l("div",null,[l("p",{class:"order-detail-view__eyebrow"},"订单详情"),l("h1",null,"查看订单快照与状态操作"),l("p",null,"查看订单金额、支付进度和当前可执行的操作。")],-1)),qqe={class:"order-detail-view__summary"},jqe=ss(()=>l("span",null,"当前订单 ID",-1)),Wqe={key:0,class:"page-card order-detail-view__state"},Gqe={key:1,class:"page-card order-detail-view__state order-detail-view__state--error"},Yqe={key:2,class:"order-detail-view__layout"},Xqe={class:"page-card order-detail-view__panel"},Qqe=ss(()=>l("h2",null,"订单与金额信息",-1)),Jqe={class:"order-detail-view__grid"},Zqe={class:"order-detail-view__block"},eje=ss(()=>l("h3",null,"订单信息",-1)),tje={class:"order-detail-view__block"},nje=ss(()=>l("h3",null,"金额拆分",-1)),aje={class:"order-detail-view__block"},sje=ss(()=>l("h3",null,"支付信息",-1)),oje={class:"order-detail-view__block"},rje=ss(()=>l("h3",null,"券核销信息",-1)),lje={key:1},ije={class:"page-card order-detail-view__panel"},cje=ss(()=>l("h2",null,"状态操作区",-1)),uje={class:"order-detail-view__stack"},dje={class:"order-detail-view__action"},fje=ss(()=>l("h3",null,"当前可执行动作",-1)),pje={class:"order-detail-view__action-buttons"},vje=["disabled"],hje=["disabled"],mje=["disabled"],gje=["disabled"],_je={class:"invoice-apply-dialog__section"},yje=ss(()=>l("h4",{class:"invoice-apply-dialog__section-title"},"开票信息",-1)),bje=ss(()=>l("p",{class:"invoice-apply-dialog__hint"},'以下信息来自您已保存的开票信息,如需修改请前往"开票信息管理"页面。',-1)),wje={class:"invoice-apply-dialog__info"},Cje=ss(()=>l("dt",null,"发票类型",-1)),kje=ss(()=>l("dt",null,"发票抬头",-1)),Sje={key:0},Eje=ss(()=>l("dt",null,"纳税人识别号",-1)),$je={class:"invoice-apply-dialog__mono"},xje={key:0},Tje=ss(()=>l("dt",null,"注册地址",-1)),Ije={key:1},Aje=ss(()=>l("dt",null,"注册电话",-1)),Nje={key:2},Rje=ss(()=>l("dt",null,"开户银行",-1)),Pje={key:3},Mje=ss(()=>l("dt",null,"银行账号",-1)),Bje={class:"invoice-apply-dialog__section"},Lje=ss(()=>l("h4",{class:"invoice-apply-dialog__section-title"},"补充信息",-1)),Oje=le({__name:"OrderDetailView",setup(e){const t=fa(),n=pn(),a=x(()=>Number(t.params.id)),s=T(!1),o=T(!1),r=T(""),i=T(null),c=x(()=>{var N;return((N=i.value)==null?void 0:N.orderStatus)==="pending"}),u=x(()=>{var N;return((N=i.value)==null?void 0:N.orderStatus)==="pending"}),d=x(()=>i.value&&i.value.orderStatus!=="pending"),p=x(()=>{var P;const N=(P=i.value)==null?void 0:P.orderStatus;return N==="paid"||N==="refund_failed"}),v=x(()=>{var N;return((N=i.value)==null?void 0:N.orderStatus)==="refund_failed"?"重新申请退款":"申请退款"}),h=x(()=>{var N;switch((N=i.value)==null?void 0:N.orderStatus){case"pending":return'待支付订单支持"取消订单 / 继续支付"。';case"paid":return'已支付订单支持"复购"和"申请退款"。';case"refund_failed":return'退款失败,可重新申请退款;或选择"复购"按原订单套餐重新下单。';case"refunding":return"退款处理中,请等待退款结果。";case"refunded":return"订单已退款。";default:return'非待支付订单支持"复购",当前按原订单套餐跳转确认页。'}}),m=async()=>{if(!Number.isFinite(a.value)||a.value<=0){i.value=null,r.value="缺少有效订单参数,请从订单列表重新进入。";return}s.value=!0,r.value="";try{i.value=await sw(a.value)}catch(N){i.value=null,r.value=N instanceof Error?N.message:"订单详情加载失败,请稍后重试。"}finally{s.value=!1}},g=async()=>{if(i.value){o.value=!0;try{await DA(i.value.id),rt.success("订单已取消。"),await m()}catch{}finally{o.value=!1}}},y=async()=>{if(i.value){try{await ua.confirm("确认申请全额退款?退款将按原路返回,对应积分会同步扣减。","申请退款",{confirmButtonText:"确认退款",cancelButtonText:"取消",type:"warning"})}catch{return}o.value=!0;try{const N=await hw(i.value.orderNo);N.downscaled?rt.warning(`积分余额不足,实际退款 ¥${N.actualRefundAmount}`):rt.success("退款申请已提交,请等待退款到账。"),await m()}catch(N){N.code===vw?rt.warning("积分已使用,无法全额退款"):rt.error(N instanceof Error?N.message:"退款失败,请稍后重试")}finally{o.value=!1}}},b=async()=>{if(i.value){o.value=!0;try{const N=await ow(i.value.id,{payChannel:i.value.payChannel??"alipay"});window.location.href=N.payParams.payUrl}catch{}finally{o.value=!1}}},C=()=>{if(i.value){if(!i.value.packageId){rt.error("未找到原订单套餐,暂时无法复购。");return}pw(i.value.packageId,n)}},k=T(!1),S=T(!1),$=At({invoiceType:"regular",title:"",taxNo:"",address:"",phone:"",bankName:"",bankAccount:"",email:"",remark:""}),E=x(()=>$.invoiceType==="special"),R=async()=>{if(i.value){try{const N=await fw();if(!N||!N.title){try{await ua.confirm('您尚未完善开票信息,请先前往"开票信息管理"页面维护发票抬头等信息后再申请开票。',"尚未完善开票信息",{confirmButtonText:"前往维护",cancelButtonText:"暂不前往",type:"warning"})}catch{return}n.push({name:"user-invoice-info"});return}$.invoiceType=N.invoiceType,$.title=N.title,$.taxNo=N.taxNo||"",$.address=N.address||"",$.phone=N.phone||"",$.bankName=N.bankName||"",$.bankAccount=N.bankAccount||""}catch{return}$.email="",$.remark="",k.value=!0}},A=async()=>{if(!$.title.trim()){rt.warning("请填写发票抬头");return}if($.email&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test($.email)){rt.warning("请填写正确的邮箱格式");return}if(E.value&&(!$.taxNo||!$.address||!$.phone||!$.bankName||!$.bankAccount)){rt.warning("专票请补全税号/地址/电话/开户行/账号");return}if(i.value){S.value=!0;try{await jA({orderId:i.value.id,invoiceType:$.invoiceType,title:$.title.trim(),taxNo:$.taxNo||void 0,address:$.address||void 0,phone:$.phone||void 0,bankName:$.bankName||void 0,bankAccount:$.bankAccount||void 0,email:$.email||void 0,remark:$.remark||void 0}),rt.success("开票申请已提交"),k.value=!1,m()}catch{}finally{S.value=!1}}};return Te(()=>t.params.id,()=>{m()}),ft(()=>{m()}),(N,P)=>{const B=Ne("el-input"),M=Ne("el-form-item"),j=Ne("el-form"),F=Ne("el-button"),q=Ne("el-dialog");return _(),w("section",zqe,[l("header",Hqe,[Kqe,l("div",qqe,[jqe,l("strong",null,I(Number.isFinite(a.value)?a.value:"--"),1)])]),s.value?(_(),w("section",Wqe,"订单详情加载中...")):r.value?(_(),w("section",Gqe,I(r.value),1)):i.value?(_(),w("div",Yqe,[l("article",Xqe,[Qqe,l("div",Jqe,[l("section",Zqe,[eje,l("p",null,"订单号:"+I(i.value.orderNo),1),l("p",null,"状态:"+I(i.value.orderStatusName??i.value.orderStatus),1),l("p",null,"创建时间:"+I(i.value.createTime),1),l("p",null,"过期时间:"+I(i.value.expireTime),1)]),l("section",tje,[nje,l("p",null,"积分数量:"+I(i.value.creditAmount),1),l("p",null,"订单原价:¥ "+I(i.value.orderAmount),1),l("p",null,"优惠券抵扣:¥ "+I(i.value.couponDeductAmount),1),l("p",null,"实付金额:¥ "+I(i.value.payAmount),1)]),l("section",aje,[sje,l("p",null,"支付渠道:"+I(i.value.payChannelName??i.value.payChannel??"待选择"),1),l("p",null,"支付流水号:"+I(i.value.payNo??"待生成"),1),l("p",null,"第三方交易号:"+I(i.value.tradeNo??"待回调"),1),l("p",null,"支付时间:"+I(i.value.payTime??"未支付"),1)]),l("section",oje,[rje,i.value.couponInfo?(_(),w(_e,{key:0},[l("p",null,"券名称:"+I(i.value.couponInfo.couponName),1),l("p",null,"券编号:"+I(i.value.couponInfo.couponNo),1),l("p",null,"折扣说明:"+I(i.value.couponInfo.discountDesc??"以订单返回为准"),1),l("p",null,"核销时间:"+I(i.value.couponInfo.useTime??"待回调补齐"),1)],64)):(_(),w("p",lje,"当前订单未使用购买折扣券。"))])])]),l("aside",ije,[cje,l("div",uje,[l("section",dje,[fje,l("p",null,I(h.value),1)]),l("div",pje,[u.value?(_(),w("button",{key:0,type:"button",class:"order-detail-view__button order-detail-view__button--primary",disabled:o.value,onClick:b},I(o.value?"处理中...":"继续支付"),9,vje)):K("",!0),c.value?(_(),w("button",{key:1,type:"button",class:"order-detail-view__button order-detail-view__button--secondary",disabled:o.value,onClick:g}," 取消订单 ",8,hje)):K("",!0),d.value?(_(),w("button",{key:2,type:"button",class:"order-detail-view__button order-detail-view__button--primary",disabled:o.value,onClick:C},I(o.value?"处理中...":"复购"),9,mje)):K("",!0),p.value?(_(),w("button",{key:3,type:"button",class:"order-detail-view__button order-detail-view__button--refund",disabled:o.value,onClick:y},I(o.value?"处理中...":v.value),9,gje)):K("",!0)])]),i.value.invoiceStatus==="available"?(_(),w("button",{key:0,type:"button",class:"order-detail-view__button--invoice",onClick:R}," 申请开票 ")):K("",!0)])])):K("",!0),z(q,{modelValue:k.value,"onUpdate:modelValue":P[3]||(P[3]=L=>k.value=L),title:"申请开票",width:"520px","close-on-click-modal":!1,class:"invoice-apply-dialog"},{footer:W(()=>[z(F,{onClick:P[2]||(P[2]=L=>k.value=!1)},{default:W(()=>[Ce("取消")]),_:1}),z(F,{type:"primary",loading:S.value,onClick:A},{default:W(()=>[Ce("提交申请")]),_:1},8,["loading"])]),default:W(()=>[l("div",_je,[yje,bje,l("dl",wje,[l("div",null,[Cje,l("dd",null,I($.invoiceType==="special"?"增值税专用发票":"普通发票"),1)]),l("div",null,[kje,l("dd",null,I($.title),1)]),$.taxNo?(_(),w("div",Sje,[Eje,l("dd",$je,I($.taxNo),1)])):K("",!0),E.value?(_(),w(_e,{key:1},[$.address?(_(),w("div",xje,[Tje,l("dd",null,I($.address),1)])):K("",!0),$.phone?(_(),w("div",Ije,[Aje,l("dd",null,I($.phone),1)])):K("",!0),$.bankName?(_(),w("div",Nje,[Rje,l("dd",null,I($.bankName),1)])):K("",!0),$.bankAccount?(_(),w("div",Pje,[Mje,l("dd",null,I($.bankAccount),1)])):K("",!0)],64)):K("",!0)])]),l("div",Bje,[Lje,z(j,{"label-position":"top"},{default:W(()=>[z(M,{label:"接收邮箱"},{default:W(()=>[z(B,{modelValue:$.email,"onUpdate:modelValue":P[0]||(P[0]=L=>$.email=L),placeholder:"用于接收电子发票(选填)"},null,8,["modelValue"])]),_:1}),z(M,{label:"备注"},{default:W(()=>[z(B,{modelValue:$.remark,"onUpdate:modelValue":P[1]||(P[1]=L=>$.remark=L),type:"textarea",rows:2,placeholder:"备注信息(选填)"},null,8,["modelValue"])]),_:1})]),_:1})])]),_:1},8,["modelValue"])])}}}),Dje=Ct(Oje,[["__scopeId","data-v-69473953"]]),os=e=>(xt("data-v-95414b3e"),e=e(),Tt(),e),Vje={class:"page-container order-list-view"},Fje={class:"page-card order-list-view__filters"},Uje=os(()=>l("span",{"aria-hidden":"true"}," ",-1)),zje=os(()=>l("button",{type:"submit",class:"order-list-view__btn order-list-view__btn--primary"}," 应用筛选 ",-1)),Hje={key:0,class:"page-card order-list-view__state"},Kje={key:1,class:"page-card order-list-view__state order-list-view__state--error"},qje={key:2,class:"page-card order-list-view__state"},jje={key:3,class:"order-list-view__list"},Wje={class:"order-list-view__item-main"},Gje={class:"order-list-view__item-head"},Yje={class:"order-list-view__item-summary"},Xje={class:"order-list-view__item-title"},Qje={class:"order-list-view__item-order-no"},Jje=os(()=>l("div",{class:"order-list-view__ticket-divider"},null,-1)),Zje={class:"order-list-view__item-grid"},eWe={class:"order-list-view__metric"},tWe=os(()=>l("span",null,"积分数量",-1)),nWe={class:"order-list-view__metric-value"},aWe={class:"order-list-view__metric"},sWe=os(()=>l("span",null,"订单原价",-1)),oWe={class:"order-list-view__metric-value"},rWe={class:"order-list-view__metric order-list-view__metric--primary"},lWe=os(()=>l("span",null,"实付金额",-1)),iWe={class:"order-list-view__metric-value"},cWe={class:"order-list-view__receipt"},uWe={class:"order-list-view__receipt-item order-list-view__receipt-item--channel"},dWe=os(()=>l("span",null,"支付渠道",-1)),fWe={class:"order-list-view__receipt-item order-list-view__receipt-item--create"},pWe=os(()=>l("span",null,"创建时间",-1)),vWe={class:"order-list-view__receipt-item order-list-view__receipt-item--expire"},hWe=os(()=>l("span",null,"过期时间",-1)),mWe={class:"order-list-view__item-actions"},gWe=["disabled","onClick"],_We=["disabled","onClick"],yWe=["disabled","onClick"],bWe=["disabled","onClick"],wWe=["onClick"],CWe={class:"order-list-view__pager"},kWe={class:"invoice-apply-dialog__section"},SWe=os(()=>l("h4",{class:"invoice-apply-dialog__section-title"},"开票信息",-1)),EWe=os(()=>l("p",{class:"invoice-apply-dialog__hint"},'以下信息来自您已保存的开票信息,如需修改请前往"开票信息管理"页面。',-1)),$We={class:"invoice-apply-dialog__info"},xWe=os(()=>l("dt",null,"发票类型",-1)),TWe=os(()=>l("dt",null,"发票抬头",-1)),IWe={key:0},AWe=os(()=>l("dt",null,"纳税人识别号",-1)),NWe={class:"invoice-apply-dialog__mono"},RWe={key:0},PWe=os(()=>l("dt",null,"注册地址",-1)),MWe={key:1},BWe=os(()=>l("dt",null,"注册电话",-1)),LWe={key:2},OWe=os(()=>l("dt",null,"开户银行",-1)),DWe={key:3},VWe=os(()=>l("dt",null,"银行账号",-1)),FWe={class:"invoice-apply-dialog__section"},UWe=os(()=>l("h4",{class:"invoice-apply-dialog__section-title"},"补充信息",-1)),zWe=le({__name:"OrderListView",setup(e){const t=pn(),n=[{value:"all",label:"全部"},{value:"pending",label:"待支付"},{value:"paid",label:"已支付"},{value:"cancelled",label:"已取消"},{value:"expired",label:"已过期"},{value:"refunding",label:"退款中"},{value:"refunded",label:"已退款"},{value:"refund_failed",label:"退款失败"}],a=T("all"),s=T(""),o=T(""),r=T(""),i=T(1),c=[10,20,50],u=T(!1),d=T(null),p=T(""),v=T({list:[],total:0,pageNum:1,pageSize:10}),h=F=>`order-list-view__status--${F}`,m=async()=>{u.value=!0,p.value="";try{v.value=await aw({pageNum:i.value,pageSize:v.value.pageSize,orderStatus:a.value==="all"?void 0:a.value,orderNo:s.value.trim()||void 0,startTime:o.value||void 0,endTime:r.value||void 0})}catch(F){v.value={list:[],total:0,pageNum:i.value,pageSize:v.value.pageSize},p.value=F instanceof Error?F.message:"订单列表加载失败,请稍后重试。"}finally{u.value=!1}},g=async()=>{i.value=1,await m()},y=async()=>{a.value="all",s.value="",o.value="",r.value="",i.value=1,await m()},b=async F=>{F===i.value||F<1||(i.value=F,await m())},C=async F=>{!c.includes(F)||F===v.value.pageSize||(i.value=1,v.value.pageSize=F,await m())},k=async F=>{d.value=F.id;try{await DA(F.id),rt.success("订单已取消。"),await m()}catch{}finally{d.value=null}},S=async F=>{try{await ua.confirm("确认申请全额退款?退款将按原路返回,对应积分会同步扣减。","申请退款",{confirmButtonText:"确认退款",cancelButtonText:"取消",type:"warning"})}catch{return}d.value=F.id;try{const q=await hw(F.orderNo);q.downscaled?rt.warning(`积分余额不足,实际退款 ¥${q.actualRefundAmount}`):rt.success("退款申请已提交,请等待退款到账。"),await m()}catch(q){q.code===vw?rt.warning("积分已使用,无法全额退款"):rt.error(q instanceof Error?q.message:"退款失败,请稍后重试")}finally{d.value=null}},$=async F=>{d.value=F.id;try{const q=await ow(F.id,{payChannel:F.payChannel??"alipay"});window.location.href=q.payParams.payUrl}catch{}finally{d.value=null}},E=async F=>{d.value=F.id;try{const q=await sw(F.id);if(!q.packageId){rt.error("未找到原订单套餐,暂时无法复购。");return}pw(q.packageId,t)}catch{}finally{d.value=null}},R=T(!1),A=T(!1),N=T(null),P=At({invoiceType:"regular",title:"",taxNo:"",address:"",phone:"",bankName:"",bankAccount:"",email:"",remark:""}),B=x(()=>P.invoiceType==="special"),M=async F=>{N.value=F.id;try{const q=await fw();if(!q||!q.title){try{await ua.confirm('您尚未完善开票信息,请先前往"开票信息管理"页面维护发票抬头等信息后再申请开票。',"尚未完善开票信息",{confirmButtonText:"前往维护",cancelButtonText:"暂不前往",type:"warning"})}catch{return}t.push({name:"user-invoice-info"});return}P.invoiceType=q.invoiceType,P.title=q.title,P.taxNo=q.taxNo||"",P.address=q.address||"",P.phone=q.phone||"",P.bankName=q.bankName||"",P.bankAccount=q.bankAccount||""}catch{return}P.email="",P.remark="",R.value=!0},j=async()=>{if(!P.title.trim()){rt.warning("请填写发票抬头");return}if(P.email&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(P.email)){rt.warning("请填写正确的邮箱格式");return}if(B.value&&(!P.taxNo||!P.address||!P.phone||!P.bankName||!P.bankAccount)){rt.warning("专票请补全税号/地址/电话/开户行/账号");return}if(N.value){A.value=!0;try{await jA({orderId:N.value,invoiceType:P.invoiceType,title:P.title.trim(),taxNo:P.taxNo||void 0,address:P.address||void 0,phone:P.phone||void 0,bankName:P.bankName||void 0,bankAccount:P.bankAccount||void 0,email:P.email||void 0,remark:P.remark||void 0}),rt.success("开票申请已提交"),R.value=!1,m()}catch{}finally{A.value=!1}}};return ft(()=>{m()}),(F,q)=>{const L=Ne("el-option"),U=Ne("el-select"),O=Ne("el-form-item"),G=Ne("el-date-picker"),ae=Ne("el-input"),Z=Ne("el-form"),te=Ne("el-pagination"),ie=Ne("el-button"),oe=Ne("el-dialog");return _(),w("section",Vje,[z(f(Wl),{eyebrow:"订单中心",title:"查看订单记录",description:"订单中心仅展示订单记录,支持按状态、日期和订单号筛选,并可查看订单详情与后续操作。"}),l("section",Fje,[z(Z,{class:"order-list-view__filters-body","label-position":"top",onSubmit:qe(g,["prevent"])},{default:W(()=>[z(O,{class:"order-list-view__field",label:"订单状态"},{default:W(()=>[z(U,{modelValue:a.value,"onUpdate:modelValue":q[0]||(q[0]=J=>a.value=J),class:"order-list-view__control mall-select-red-theme","popper-class":"order-list-view__select-dropdown mall-select-red-dropdown"},{default:W(()=>[(_(),w(_e,null,Re(n,J=>z(L,{key:J.value,label:J.label,value:J.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),z(O,{class:"order-list-view__field",label:"开始日期"},{default:W(()=>[z(G,{modelValue:o.value,"onUpdate:modelValue":q[1]||(q[1]=J=>o.value=J),class:"order-list-view__control","popper-class":"order-list-view__date-dropdown",type:"date","value-format":"YYYY-MM-DD",placeholder:"年 / 月 / 日",clearable:""},null,8,["modelValue"])]),_:1}),z(O,{class:"order-list-view__field",label:"结束日期"},{default:W(()=>[z(G,{modelValue:r.value,"onUpdate:modelValue":q[2]||(q[2]=J=>r.value=J),class:"order-list-view__control","popper-class":"order-list-view__date-dropdown",type:"date","value-format":"YYYY-MM-DD",placeholder:"年 / 月 / 日",clearable:""},null,8,["modelValue"])]),_:1}),z(O,{class:"order-list-view__field order-list-view__field--keyword",label:"订单号搜索"},{default:W(()=>[z(ae,{modelValue:s.value,"onUpdate:modelValue":q[3]||(q[3]=J=>s.value=J),class:"order-list-view__control",placeholder:"例如:输入订单号关键字",clearable:""},null,8,["modelValue"])]),_:1}),z(O,{class:"order-list-view__field order-list-view__field--actions"},{label:W(()=>[Uje]),default:W(()=>[l("div",{class:"order-list-view__button-row"},[zje,l("button",{type:"button",class:"order-list-view__btn","data-testid":"order-filter-reset",onClick:y}," 重置 ")])]),_:1})]),_:1})]),u.value?(_(),w("section",Hje,"订单列表加载中...")):p.value?(_(),w("section",Kje,I(p.value),1)):v.value.list.length===0?(_(),w("section",qje," 当前筛选条件下暂无订单。 ")):(_(),w("section",jje,[(_(!0),w(_e,null,Re(v.value.list,J=>(_(),w("article",{key:J.id,class:"order-list-view__item"},[l("div",Wje,[l("div",Gje,[l("div",Yje,[l("strong",Xje,I(J.packageName),1),l("p",Qje,I(J.orderNo),1)]),l("span",{class:V(["order-list-view__status",h(J.orderStatus)])},I(J.orderStatusName??J.orderStatus),3)]),Jje,l("div",Zje,[l("div",eWe,[tWe,l("strong",nWe,I(J.creditAmount),1)]),l("div",aWe,[sWe,l("strong",oWe,"¥ "+I(J.orderAmount),1)]),l("div",rWe,[lWe,l("strong",iWe,"¥ "+I(J.payAmount),1)])]),l("div",cWe,[l("div",uWe,[dWe,l("strong",null,I(J.payChannel??"待选择"),1)]),l("div",fWe,[pWe,l("strong",null,I(J.createTime),1)]),l("div",vWe,[hWe,l("strong",null,I(J.expireTime??"无"),1)])])]),l("div",mWe,[J.orderStatus==="pending"?(_(),w("button",{key:0,type:"button",class:"order-list-view__action-button order-list-view__action-button--primary",disabled:d.value===J.id,onClick:ee=>$(J)},I(d.value===J.id?"处理中...":"继续支付"),9,gWe)):K("",!0),J.orderStatus==="pending"?(_(),w("button",{key:1,type:"button",class:"order-list-view__action-button order-list-view__action-button--danger",disabled:d.value===J.id,onClick:ee=>k(J)}," 取消订单 ",8,_We)):K("",!0),J.orderStatus==="paid"&&(J.invoiceStatus==="none"||J.invoiceStatus==="available")?(_(),w("button",{key:2,type:"button",class:"order-list-view__action-button order-list-view__action-button--refund",disabled:d.value===J.id,onClick:ee=>S(J)},I(d.value===J.id?"处理中...":"退款"),9,yWe)):K("",!0),J.orderStatus!=="pending"?(_(),w("button",{key:3,type:"button",class:"order-list-view__action-button order-list-view__action-button--primary",disabled:d.value===J.id,onClick:ee=>E(J)},I(d.value===J.id?"处理中...":"复购"),9,bWe)):K("",!0),J.invoiceStatus==="available"?(_(),w("button",{key:4,type:"button",class:"order-list-view__action-button order-list-view__action-button--invoice",onClick:ee=>M(J)}," 申请开票 ",8,wWe)):K("",!0)])]))),128)),l("footer",CWe,[z(te,{background:"",layout:"total, sizes, prev, pager, next","current-page":i.value,"page-size":v.value.pageSize,"page-sizes":c,total:v.value.total,"popper-class":"order-list-view__pagination-dropdown mall-select-red-dropdown",onCurrentChange:b,onSizeChange:C},null,8,["current-page","page-size","total"])])])),z(oe,{modelValue:R.value,"onUpdate:modelValue":q[7]||(q[7]=J=>R.value=J),title:"申请开票",width:"520px","close-on-click-modal":!1,class:"invoice-apply-dialog"},{footer:W(()=>[z(ie,{onClick:q[6]||(q[6]=J=>R.value=!1)},{default:W(()=>[Ce("取消")]),_:1}),z(ie,{type:"primary",loading:A.value,onClick:j},{default:W(()=>[Ce("提交申请")]),_:1},8,["loading"])]),default:W(()=>[l("div",kWe,[SWe,EWe,l("dl",$We,[l("div",null,[xWe,l("dd",null,I(P.invoiceType==="special"?"增值税专用发票":"普通发票"),1)]),l("div",null,[TWe,l("dd",null,I(P.title),1)]),P.taxNo?(_(),w("div",IWe,[AWe,l("dd",NWe,I(P.taxNo),1)])):K("",!0),B.value?(_(),w(_e,{key:1},[P.address?(_(),w("div",RWe,[PWe,l("dd",null,I(P.address),1)])):K("",!0),P.phone?(_(),w("div",MWe,[BWe,l("dd",null,I(P.phone),1)])):K("",!0),P.bankName?(_(),w("div",LWe,[OWe,l("dd",null,I(P.bankName),1)])):K("",!0),P.bankAccount?(_(),w("div",DWe,[VWe,l("dd",null,I(P.bankAccount),1)])):K("",!0)],64)):K("",!0)])]),l("div",FWe,[UWe,z(Z,{"label-position":"top"},{default:W(()=>[z(O,{label:"接收邮箱"},{default:W(()=>[z(ae,{modelValue:P.email,"onUpdate:modelValue":q[4]||(q[4]=J=>P.email=J),placeholder:"用于接收电子发票(选填)"},null,8,["modelValue"])]),_:1}),z(O,{label:"备注"},{default:W(()=>[z(ae,{modelValue:P.remark,"onUpdate:modelValue":q[5]||(q[5]=J=>P.remark=J),type:"textarea",rows:2,placeholder:"备注信息(选填)"},null,8,["modelValue"])]),_:1})]),_:1})])]),_:1},8,["modelValue"])])}}}),HWe=Ct(zWe,[["__scopeId","data-v-95414b3e"]]),nu=e=>(xt("data-v-e8e499e0"),e=e(),Tt(),e),KWe={class:"page-container order-result-view"},qWe={class:"page-card order-result-view__hero"},jWe={class:"order-result-view__hero-copy"},WWe=nu(()=>l("p",{class:"order-result-view__eyebrow"},"支付结果",-1)),GWe={key:0,class:"page-card order-result-view__state"},YWe={key:1,class:"page-card order-result-view__state order-result-view__state--error"},XWe={key:2,class:"order-result-view__layout"},QWe={class:"page-card order-result-view__panel"},JWe=nu(()=>l("h2",null,"订单摘要",-1)),ZWe={class:"order-result-view__grid"},eGe={class:"order-result-view__block"},tGe=nu(()=>l("h3",null,"订单信息",-1)),nGe={class:"order-result-view__block"},aGe=nu(()=>l("h3",null,"到账摘要",-1)),sGe={class:"order-result-view__block"},oGe=nu(()=>l("h3",null,"支付信息",-1)),rGe={class:"order-result-view__block"},lGe=nu(()=>l("h3",null,"优惠券信息",-1)),iGe={key:1},cGe={key:2},uGe={class:"page-card order-result-view__panel"},dGe=nu(()=>l("h2",null,"后续操作",-1)),fGe={class:"order-result-view__actions"},pGe=["disabled"],vGe=["disabled"],hGe=["disabled"],mGe=["disabled"],gGe=["href"],_Ge=7*24*60*60*1e3,yGe=le({__name:"OrderResultView",setup(e){const t=fa(),n=pn(),a=T(!1),s=T(!1),o=T(""),r=T(null),i=T(""),c=x(()=>{const F=t.query.status;return typeof F=="string"?F:""}),u=x(()=>{const F=t.query.id;if(typeof F!="string"||!F.trim())return null;const q=Number(F);return Number.isInteger(q)&&q>0?q:null}),d=x(()=>{const F=t.query.orderNo;return typeof F=="string"&&F.trim()?F.trim():""}),p=x(()=>{var F;return((F=r.value)==null?void 0:F.orderStatus)==="pending"}),v=x(()=>r.value!==null&&r.value.orderStatus!=="pending"),h=x(()=>{const F=r.value;if(!F||F.orderStatus!=="paid"||!F.payTime)return!1;const q=Date.parse(F.payTime.replace(" ","T"));return Number.isFinite(q)?Date.now()-q<=_Ge:!1}),m=x(()=>{var F;return(F=r.value)!=null&&F.couponDeductAmount?Number(r.value.couponDeductAmount)>0:!1}),g=x(()=>{var F;return m.value?`当前订单已使用购买折扣券,已抵扣 ¥ ${((F=r.value)==null?void 0:F.couponDeductAmount)??"0.00"}`:""}),y=x(()=>{var F,q;return c.value==="failed"||c.value==="expired"||c.value==="success"?!1:((F=r.value)==null?void 0:F.orderStatus)==="pending"&&!j((q=r.value)==null?void 0:q.expireTime)}),b=x(()=>{var F,q,L;return c.value==="success"||c.value==="failed"||c.value==="expired"?c.value:((F=r.value)==null?void 0:F.orderStatus)==="paid"?"success":((q=r.value)==null?void 0:q.orderStatus)==="expired"||j((L=r.value)==null?void 0:L.expireTime)?"expired":"failed"}),C=x(()=>b.value==="success"?"支付成功":b.value==="expired"?"订单已超时":"支付未完成"),k=x(()=>b.value==="success"?"支付回调已落库,结果页复用订单详情字段展示到账摘要和支付信息。":b.value==="expired"?"订单已超过支付有效期,可按原订单套餐跳转确认页重新下单。":"当前订单尚未完成支付,你可以重新发起支付或返回订单详情继续处理。"),S=x(()=>b.value==="success"?"支付成功":b.value==="expired"?"订单超时":y.value?"支付未完成":"支付失败"),$=async()=>{var q;return u.value?u.value:d.value?((q=(await aw({orderNo:d.value,pageNum:1,pageSize:1})).list[0])==null?void 0:q.id)??null:null},E=async()=>{a.value=!0,o.value="",i.value="";try{const F=await $();if(!F){r.value=null,o.value="缺少有效订单参数,请从订单中心或支付回跳链路重新进入。";return}r.value=await sw(F)}catch(F){r.value=null,o.value=F instanceof Error?F.message:"支付结果加载失败,请稍后重试。"}finally{a.value=!1}},R=async()=>{r.value&&await n.push({name:"order-detail",params:{id:String(r.value.id)}})},A=async()=>{await n.push({name:"orders"})},N=async()=>{if(r.value){s.value=!0;try{const F=await ow(r.value.id,{payChannel:r.value.payChannel??"alipay"});i.value=F.payParams.payUrl,rt.success("支付链接已重新生成。"),await E()}catch{}finally{s.value=!1}}},P=()=>{if(r.value){if(!r.value.packageId){rt.error("未找到原订单套餐,暂时无法重新下单。");return}pw(r.value.packageId,n)}},B=F=>F==="cancel"||F==="close",M=async()=>{const F=r.value;if(F){try{await ua.confirm("确认申请全额退款?退款将按规则原路退回支付渠道。","申请退款",{confirmButtonText:"确认退款",cancelButtonText:"取消",type:"warning"})}catch(q){if(B(q))return;throw q}s.value=!0;try{const q=await hw(F.orderNo);q.downscaled?rt.warning(`积分不足,实际退款 ¥ ${q.actualRefundAmount}`):rt.success(`退款申请已受理,实际退款 ¥ ${q.actualRefundAmount}`),await E()}catch(q){q.code===vw?rt.warning("积分已使用,无法全额退款"):rt.error(q instanceof Error?q.message:"退款失败,请稍后重试")}finally{s.value=!1}}},j=F=>{if(!F)return!1;const q=F.replace(" ","T"),L=Date.parse(q);return Number.isFinite(L)&&L<=Date.now()};return Te(()=>[t.query.id,t.query.orderNo,t.query.status],()=>{E()}),ft(()=>{E()}),(F,q)=>{const L=Ne("el-button");return _(),w("section",KWe,[l("header",qWe,[l("div",jWe,[WWe,l("h1",null,I(C.value),1),l("p",null,I(k.value),1)]),l("div",{class:V(["order-result-view__badge",`order-result-view__badge--${b.value}`])},I(S.value),3)]),a.value?(_(),w("section",GWe,"支付结果加载中...")):o.value?(_(),w("section",YWe,I(o.value),1)):r.value?(_(),w("div",XWe,[l("article",QWe,[JWe,l("div",ZWe,[l("section",eGe,[tGe,l("p",null,"订单号:"+I(r.value.orderNo),1),l("p",null,"订单状态:"+I(r.value.orderStatusName??r.value.orderStatus),1),l("p",null,"创建时间:"+I(r.value.createTime),1),l("p",null,"过期时间:"+I(r.value.expireTime),1)]),l("section",nGe,[aGe,l("p",null,"套餐名称:"+I(r.value.packageName),1),l("p",null,"积分数量:"+I(r.value.creditAmount),1),l("p",null,"订单原价:¥ "+I(r.value.orderAmount),1),l("p",null,"实付金额:¥ "+I(r.value.payAmount),1)]),l("section",sGe,[oGe,l("p",null,"支付渠道:"+I(r.value.payChannelName??r.value.payChannel??"待选择"),1),l("p",null,"支付流水号:"+I(r.value.payNo??"待生成"),1),l("p",null,"第三方交易号:"+I(r.value.tradeNo??"待回调"),1),l("p",null,"支付时间:"+I(r.value.payTime??"未支付"),1)]),l("section",rGe,[lGe,r.value.couponInfo?(_(),w(_e,{key:0},[l("p",null,"券名称:"+I(r.value.couponInfo.couponName),1),l("p",null,"券编号:"+I(r.value.couponInfo.couponNo),1),l("p",null,"折扣说明:"+I(r.value.couponInfo.discountDesc??"以订单快照为准"),1)],64)):m.value?(_(),w("p",iGe,I(g.value),1)):(_(),w("p",cGe,"当前订单未使用购买折扣券。"))])])]),l("aside",uGe,[dGe,l("div",fGe,[l("button",{type:"button","data-testid":"result-view-order-detail",disabled:s.value,onClick:R}," 查看订单 ",8,pGe),l("button",{type:"button",class:"order-result-view__button--secondary",disabled:s.value,onClick:A}," 返回订单中心 ",8,vGe),h.value?(_(),ue(L,{key:0,class:"order-result-view__refund-btn","data-testid":"result-view-refund",disabled:s.value,onClick:M},{default:W(()=>[Ce(I(s.value?"处理中...":"申请退款"),1)]),_:1},8,["disabled"])):K("",!0),b.value==="failed"&&p.value?(_(),w("button",{key:1,type:"button",disabled:s.value,onClick:N},I(s.value?"处理中...":"重新支付"),9,hGe)):K("",!0),b.value==="expired"&&v.value?(_(),w("button",{key:2,type:"button",disabled:s.value,onClick:P},I(s.value?"处理中...":"重新下单"),9,mGe)):K("",!0)]),i.value?(_(),w("a",{key:0,class:"order-result-view__pay-link",href:i.value,target:"_blank",rel:"noopener"}," 打开最新支付链接 ",8,gGe)):K("",!0)])])):K("",!0)])}}}),bGe=Ct(yGe,[["__scopeId","data-v-e8e499e0"]]),Us=e=>(xt("data-v-444d9ad0"),e=e(),Tt(),e),wGe={class:"page-container sg-create"},CGe={key:0,class:"sg-create__alert"},kGe=Us(()=>l("strong",null,"当前操作未完成",-1)),SGe={class:"sg-create__workspace"},EGe={class:"sg-create__panel sg-create__panel--info"},$Ge={class:"sg-create__intro"},xGe=Us(()=>l("div",{class:"sg-create__section-title"},[l("strong",null,"基本信息")],-1)),TGe={class:"sg-create__form-grid"},IGe={class:"sg-create__row"},AGe={class:"sg-create__label sg-create__label--required"},NGe={class:"sg-create__control"},RGe=["placeholder"],PGe={class:"sg-create__row sg-create__row--textarea"},MGe={class:"sg-create__label"},BGe={class:"sg-create__control"},LGe=["placeholder"],OGe={key:0,class:"sg-create__row"},DGe=Us(()=>l("span",{class:"sg-create__label"},"额度上限",-1)),VGe={class:"sg-create__control"},FGe=["disabled"],UGe={class:"sg-create__actions"},zGe={class:"sg-create__agreement"},HGe=["disabled"],KGe=["disabled"],qGe={class:"sg-create__panel sg-create__panel--service"},jGe={class:"sg-create__service-heading"},WGe=Us(()=>l("strong",null,"服务配置",-1)),GGe={key:0,class:"sg-create__unavailable-notice","data-testid":"service-group-unavailable-notice"},YGe={class:"sg-create__service-tabs",role:"tablist","aria-label":"服务范围"},XGe={key:1,class:"sg-create__model-empty"},QGe={key:2,class:"sg-create__model-empty"},JGe={key:3,class:"sg-create__model-grid"},ZGe={class:"sg-create__model-card-head"},eYe=["value"],tYe={class:"sg-create__service-name"},nYe={key:0,class:"sg-create__beta-badge"},aYe={class:"sg-create__model-tags"},sYe=["title"],oYe={class:"sg-create__model-meta"},rYe={class:"sg-create__model-id-row"},lYe=Us(()=>l("strong",null,"模型 ID:",-1)),iYe=["title"],cYe=["onClick"],uYe={class:"sg-create__model-type"},dYe={key:4,class:"sg-create__pagination","data-testid":"service-group-create-pagination"},fYe=Us(()=>l("div",{class:"sg-create__dialog-header"},[l("div",{class:"sg-create__dialog-success-icon"},[l("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("circle",{cx:"24",cy:"24",r:"24",fill:"url(#success-gradient)"}),l("path",{d:"M15 24.5L21 30.5L33 18.5",stroke:"#fff","stroke-width":"3.5","stroke-linecap":"round","stroke-linejoin":"round"}),l("defs",null,[l("linearGradient",{id:"success-gradient",x1:"0",y1:"0",x2:"48",y2:"48",gradientUnits:"userSpaceOnUse"},[l("stop",{"stop-color":"#43A047"}),l("stop",{offset:"1","stop-color":"#2E7D32"})])])])]),l("h2",{class:"sg-create__dialog-title"},"服务组创建成功"),l("p",{class:"sg-create__dialog-desc"},"请立即保存以下凭证信息,API Key 仅在本次展示,关闭后将无法再次查看明文。"),l("span",{class:"sg-create__dialog-mark"},[l("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M12 9v4m0 4h.01M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z"})]),Ce(" 仅展示一次 ")])],-1)),pYe={key:0,class:"sg-create__dialog-body"},vYe={class:"sg-create__dialog-grid"},hYe={class:"sg-create__dialog-field"},mYe=Us(()=>l("dt",null,"服务组名称",-1)),gYe={class:"sg-create__dialog-field"},_Ye=Us(()=>l("dt",null,"App ID",-1)),yYe={class:"sg-create__dialog-copy-row"},bYe={key:0,width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},wYe=Us(()=>l("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"},null,-1)),CYe=Us(()=>l("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"},null,-1)),kYe=[wYe,CYe],SYe={key:1,width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},EYe=Us(()=>l("path",{d:"M20 6L9 17l-5-5"},null,-1)),$Ye=[EYe],xYe={class:"sg-create__dialog-field sg-create__dialog-field--full sg-create__dialog-field--api-key"},TYe=Us(()=>l("div",{class:"sg-create__dialog-field-label-row"},[l("dt",null,"API Key"),l("span",{class:"sg-create__dialog-field-badge"},"机密凭证")],-1)),IYe={class:"sg-create__dialog-copy-row"},AYe={class:"sg-create__dialog-api-key"},NYe={key:0,width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},RYe=Us(()=>l("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"},null,-1)),PYe=Us(()=>l("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"},null,-1)),MYe=[RYe,PYe],BYe={key:1,width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},LYe=Us(()=>l("path",{d:"M20 6L9 17l-5-5"},null,-1)),OYe=[LYe],DYe=Us(()=>l("p",{class:"sg-create__dialog-field-hint"},"请将 API Key 复制到安全位置,关闭此弹窗后无法再次查看",-1)),VYe={key:0,class:"sg-create__dialog-models"},FYe={class:"sg-create__dialog-model-tags"},UYe={class:"sg-create__dialog-footer"},zYe=le({__name:"ServiceGroupCreateView",setup(e){const t=D=>D?{draft:"待上架",published:"已上架",trial_published:"试运行上架",offline:"已下架",unavailable:"暂不可授权"}[D]||"未知状态":void 0,n=fa(),a=pn(),s=_a(),o=x(()=>n.name==="service-group-edit"),r=x(()=>{var D;return((D=s.userInfo)==null?void 0:D.userType)==="enterprise"}),i=x(()=>Number(n.params.id)),c=x(()=>r.value?o.value?"编辑成员":"创建成员":o.value?"编辑服务组":"创建服务组"),u=x(()=>r.value?o.value?"修改基础信息、授权模型配置和额度上限":"创建成员,填写基本信息并选择需要授权的服务模型":o.value?"修改基础信息和授权模型配置":"创建服务组,填写基本信息并选择需要授权的服务模型"),d=x(()=>v.value?"提交中...":r.value?o.value?"保存成员":"创建成员":o.value?"保存服务组":"创建服务组"),p=T(!1),v=T(!1),h=T(""),m=T(""),g=T(""),y=T("all"),b=T(1),C=T(10),k=[10,20,50],S=T([]),$=T([]),E=T(null),R=T(!1),A=T(""),N=At({groupName:"",description:"",modelIds:[],quotaLimit:""}),P=T(""),B=T(!1),M=x(()=>y.value==="selected"?[...S.value.filter(D=>N.modelIds.includes(D.modelName)),...$.value.filter(D=>N.modelIds.includes(D.modelName))]:S.value),j=x(()=>new Set($.value.filter(D=>N.modelIds.includes(D.modelName)).map(D=>D.modelName))),F=x(()=>j.value.size),q=x(()=>$.value.filter(D=>N.modelIds.includes(D.modelName)).map(D=>D.modelName)),L=x(()=>{const D=g.value.trim().toLowerCase();return M.value.filter(Y=>!D||Y.modelName.toLowerCase().includes(D)||Y.modelId.toLowerCase().includes(D))}),U=x(()=>{const D=(b.value-1)*C.value;return L.value.slice(D,D+C.value)}),O=x(()=>Math.max(1,Math.ceil(L.value.length/C.value))),G=x(()=>!0),ae=async()=>{p.value=!0,h.value="";try{if(o.value){const[D,Y]=await Promise.all([vm(),dw(i.value)]);S.value=D;const ne=new Set(D.map(re=>re.modelName));$.value=Y.authorizedModels.filter(re=>!ne.has(re.modelName)).map(re=>({modelId:re.modelName,modelName:re.modelName,modelStatus:re.modelStatus==="offline"?"offline":"unavailable",betaBadge:re.modelStatus==="trial_published"})),N.groupName=Y.groupName,N.description=Y.description||"",N.quotaLimit=Y.quotaLimit??"",P.value=Y.quotaLimit??"",N.modelIds=Y.authorizedModels.map(re=>re.modelName).filter(re=>typeof re=="string"&&re.length>0);return}S.value=await vm(),$.value=[]}catch(D){S.value=[],$.value=[],N.modelIds=[],h.value=D instanceof Error?D.message:"可授权模型加载失败,请稍后重试。"}finally{p.value=!1}},Z=()=>{const D=j.value;N.modelIds=N.modelIds.filter(Y=>!D.has(Y)),y.value="selected",b.value=1},te=async()=>{if(!o.value||j.value.size===0)return!0;try{return await ua.confirm("当前服务组存在暂不可用模型(已下架、通道失效或仅内测可用),建议移除,是否继续","提示",{confirmButtonText:"继续保存",cancelButtonText:"移除全部",type:"warning",distinguishCancelAndClose:!0,showClose:!1,closeOnClickModal:!1,closeOnPressEscape:!1}),!0}catch(D){return D==="cancel"&&Z(),!1}},ie=async()=>{if(!v.value){if(!N.groupName.trim()){rt.error("请输入服务组名称");return}if(N.modelIds.length===0){rt.error("请至少选择一个服务模型");return}if(!B.value){rt.error("请先勾选模型服务协议");return}if(r.value){const D=Number(N.quotaLimit);if(N.quotaLimit!==""&&N.quotaLimit!==null&&N.quotaLimit!==void 0&&(isNaN(D)||D<0)){rt.error("企业服务组额度上限不能为负数");return}}if(await te()&&!(!o.value&&!r.value&&!await dd())){v.value=!0,h.value="";try{if(o.value){if(await Promise.all([YRe(i.value,{groupName:N.groupName.trim(),description:N.description.trim()||void 0,agreeModelServiceProtocol:B.value}),XRe(i.value,{modelIds:N.modelIds,agreeModelServiceProtocol:B.value})]),r.value){const D=N.quotaLimit===""||N.quotaLimit===null||N.quotaLimit===void 0?0:Number(N.quotaLimit),Y=P.value===""||P.value===null||P.value===void 0?0:Number(P.value);D!==Y&&await P0(i.value,{quotaLimit:D,agreeModelServiceProtocol:B.value})}rt.success("服务组已更新"),a.push({name:"service-group-detail",params:{id:i.value}});return}E.value=await WRe({groupName:N.groupName.trim(),description:N.description.trim()||void 0,modelIds:N.modelIds,quotaLimit:r.value?N.quotaLimit===""||N.quotaLimit===null||N.quotaLimit===void 0?0:Number(N.quotaLimit):void 0,agreeModelServiceProtocol:B.value}),R.value=!0}catch(D){E.value=null,h.value=D instanceof Error?D.message:"服务组保存失败,请稍后重试。"}finally{v.value=!1}}}},oe=()=>{a.push({name:r.value?"enterprise-seats":"service-groups"})},J=D=>{a.push({name:"service-group-detail",params:{id:D}})},ee=()=>{R.value=!1,E.value=null,a.push({name:r.value?"enterprise-seats":"service-groups"})},Q=async(D,Y)=>{if(await Ki(D)){A.value=Y,window.setTimeout(()=>{A.value===Y&&(A.value="")},1500);return}rt.error("复制失败,请手动复制")},H=async D=>{if(await Ki(D)){m.value=D,window.setTimeout(()=>{m.value===D&&(m.value="")},1500);return}h.value="模型名称复制失败,请稍后重试。"},X=D=>{b.value=Math.min(Math.max(D,1),O.value)},he=D=>{!k.includes(D)||D===C.value||(b.value=1,C.value=D)};return ft(()=>{ae()}),Te([g,y],()=>{b.value=1}),Te(L,()=>{b.value>O.value&&(b.value=O.value)}),(D,Y)=>{const ne=Ne("el-input"),re=Ne("el-tag"),se=Ne("el-pagination"),ke=Ne("el-dialog");return _(),w("section",wGe,[h.value?(_(),w("section",CGe,[kGe,l("span",null,I(h.value),1)])):K("",!0),l("section",SGe,[l("aside",EGe,[l("header",$Ge,[l("h1",null,I(c.value),1),l("p",null,I(u.value),1),l("button",{type:"button",class:"sg-create__back-link",onClick:oe},"返回列表")]),xGe,l("div",TGe,[l("label",IGe,[l("span",AGe,I(r.value?"用户名":"服务组名称"),1),l("div",NGe,[et(l("input",{"onUpdate:modelValue":Y[0]||(Y[0]=ye=>N.groupName=ye),maxlength:"100",type:"text",placeholder:r.value?"请输入用户名":"请输入服务组名称"},null,8,RGe),[[hn,N.groupName]])])]),l("label",PGe,[l("span",MGe,I(r.value?"备注":"服务组描述"),1),l("div",BGe,[et(l("textarea",{"onUpdate:modelValue":Y[1]||(Y[1]=ye=>N.description=ye),maxlength:"500",rows:"5",placeholder:r.value?"请输入备注":"请输入服务组描述"},null,8,LGe),[[hn,N.description]])])]),r.value?(_(),w("label",OGe,[DGe,l("div",VGe,[et(l("input",{"onUpdate:modelValue":Y[2]||(Y[2]=ye=>N.quotaLimit=ye),type:"number",step:"0.000001",min:"0","data-testid":"service-group-quota-limit",placeholder:"选填,不填则不分配额度",disabled:v.value},null,8,FGe),[[hn,N.quotaLimit]])])])):K("",!0)]),l("div",UGe,[l("label",zGe,[et(l("input",{"onUpdate:modelValue":Y[3]||(Y[3]=ye=>B.value=ye),type:"checkbox","data-testid":"service-group-agreement",disabled:v.value},null,8,HGe),[[Mo,B.value]]),l("span",null,[Ce("我已阅读并同意"),z(f(An),{class:"sg-create__agreement-link",to:"/support?article=legal-model-service-agreement",target:"_blank",rel:"noopener noreferrer"},{default:W(()=>[Ce("《模型服务协议》")]),_:1}),Ce("、"),z(f(An),{class:"sg-create__agreement-link",to:"/support?article=legal-model-service-information-processing-rules",target:"_blank",rel:"noopener noreferrer"},{default:W(()=>[Ce("《模型服务用户信息处理规则》")]),_:1}),Ce("、"),z(f(An),{class:"sg-create__agreement-link",to:"/support?article=legal-model-service-level-agreement",target:"_blank",rel:"noopener noreferrer"},{default:W(()=>[Ce("《模型服务等级协议》")]),_:1})])]),l("button",{type:"button",class:"sg-create__btn sg-create__btn--primary",disabled:v.value,onClick:ie},I(d.value),9,KGe)])]),l("section",qGe,[l("div",jGe,[WGe,z(ne,{modelValue:g.value,"onUpdate:modelValue":Y[4]||(Y[4]=ye=>g.value=ye),"data-testid":"service-group-model-keyword",class:"sg-create__search",placeholder:"搜索服务名称或 ID",clearable:""},null,8,["modelValue"])]),F.value>0?(_(),w("div",GGe," 当前服务组包含 "+I(F.value)+" 个不可新增授权模型("+I(q.value.join("、"))+"),已在「已选服务」中以「已下架 / 暂不可授权」状态标识,保存前建议移除。 ",1)):K("",!0),l("div",YGe,[l("button",{type:"button",class:V(["sg-create__tab",{"is-active":y.value==="all"}]),onClick:Y[5]||(Y[5]=ye=>y.value="all")},[Ce("全部服务("),l("span",null,I(S.value.length),1),Ce(")")],2),l("button",{type:"button",class:V(["sg-create__tab",{"is-active":y.value==="selected"}]),onClick:Y[6]||(Y[6]=ye=>y.value="selected")},[Ce("已选服务("),l("span",null,I(N.modelIds.length),1),Ce(")")],2)]),p.value?(_(),w("div",XGe,"正在加载可授权服务...")):L.value.length===0?(_(),w("div",QGe,"当前筛选条件下没有可展示的服务。")):(_(),w("div",JGe,[(_(!0),w(_e,null,Re(U.value,ye=>(_(),w("label",{key:ye.modelName,class:V(["sg-create__model-card",{"is-selected":N.modelIds.includes(ye.modelName)}])},[l("span",ZGe,[et(l("input",{"onUpdate:modelValue":Y[7]||(Y[7]=Se=>N.modelIds=Se),type:"checkbox",value:ye.modelName},null,8,eYe),[[Mo,N.modelIds]]),l("span",tYe,[l("strong",null,I(ye.modelName),1),ye.modelStatus==="trial_published"||ye.betaBadge?(_(),w("span",nYe,"Beta")):K("",!0)]),l("span",{class:V(["sg-create__model-status",`is-${ye.modelStatus}`])},I(t(ye.modelStatus)),3)]),l("span",aYe,[z(re,{class:"sg-create__status-tag",effect:"light",size:"small"},{default:W(()=>[Ce(I(ye.typeName||"未分类"),1)]),_:2},1024)]),l("span",{class:"sg-create__model-summary",title:ye.summary||"暂无服务介绍。"},I(ye.summary||"暂无服务介绍。"),9,sYe),l("span",oYe,[l("small",rYe,[lYe,l("span",{title:ye.modelName},I(ye.modelName),9,iYe),l("button",{type:"button",class:"sg-create__copy-btn",onClick:qe(Se=>H(ye.modelName),["stop"])},I(m.value===ye.modelName?"已复制":"复制"),9,cYe)]),l("span",uYe,"服务类型:"+I(ye.typeName||"未分类"),1)])],2))),128))])),G.value?(_(),w("footer",dYe,[z(se,{background:"",layout:"total, sizes, prev, pager, next","current-page":b.value,"page-size":C.value,"page-sizes":k,total:L.value.length,"popper-class":"sg-create__pagination-dropdown mall-select-red-dropdown",onCurrentChange:X,onSizeChange:he},null,8,["current-page","page-size","total"])])):K("",!0)])]),z(ke,{"model-value":R.value,width:"580px",teleported:!1,"show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":"",class:"sg-create__dialog"},{header:W(()=>[fYe]),footer:W(()=>[l("div",UYe,[l("button",{type:"button",class:"sg-create__btn sg-create__btn--secondary",onClick:ee},"返回列表"),l("button",{type:"button",class:"sg-create__btn sg-create__btn--primary",onClick:Y[10]||(Y[10]=ye=>J(E.value.id))},"查看详情")])]),default:W(()=>[E.value?(_(),w("div",pYe,[l("dl",vYe,[l("div",hYe,[mYe,l("dd",null,I(E.value.groupName),1)]),l("div",gYe,[_Ye,l("dd",yYe,[l("code",null,I(E.value.groupCode),1),l("button",{type:"button",class:V(["sg-create__dialog-copy-btn",{"is-copied":A.value==="appId"}]),onClick:Y[8]||(Y[8]=ye=>Q(E.value.groupCode,"appId"))},[A.value!=="appId"?(_(),w("svg",bYe,kYe)):(_(),w("svg",SYe,$Ye)),Ce(" "+I(A.value==="appId"?"已复制":"复制"),1)],2)])]),l("div",xYe,[TYe,l("dd",IYe,[l("code",AYe,I(E.value.apiKeyPlain),1),l("button",{type:"button",class:V(["sg-create__dialog-copy-btn","sg-create__dialog-copy-btn--primary",{"is-copied":A.value==="apiKey"}]),onClick:Y[9]||(Y[9]=ye=>Q(E.value.apiKeyPlain,"apiKey"))},[A.value!=="apiKey"?(_(),w("svg",NYe,MYe)):(_(),w("svg",BYe,OYe)),Ce(" "+I(A.value==="apiKey"?"已复制":"复制"),1)],2)]),DYe])]),E.value.authorizedModels.length>0?(_(),w("div",VYe,[l("strong",null,"已授权模型("+I(E.value.authorizedModels.length)+")",1),l("div",FYe,[(_(!0),w(_e,null,Re(E.value.authorizedModels,ye=>(_(),w("span",{key:ye.modelId},I(ye.modelName),1))),128))])])):K("",!0)])):K("",!0)]),_:1},8,["model-value"])])}}}),z$=Ct(zYe,[["__scopeId","data-v-444d9ad0"]]),Sa=e=>(xt("data-v-dac8e572"),e=e(),Tt(),e),HYe={class:"page-container sg-detail"},KYe={key:0,class:"sg-detail__skeleton"},qYe=Sa(()=>l("div",{class:"sg-detail__skeleton-hero"},null,-1)),jYe=Sa(()=>l("div",{class:"sg-detail__skeleton-card"},null,-1)),WYe=Sa(()=>l("div",{class:"sg-detail__skeleton-card"},null,-1)),GYe=[qYe,jYe,WYe],YYe={key:1,class:"sg-detail__state sg-detail__state--error"},XYe=Sa(()=>l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("circle",{cx:"12",cy:"12",r:"10"}),l("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),l("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})],-1)),QYe=Sa(()=>l("strong",null,"加载失败",-1)),JYe=["disabled"],ZYe=["innerHTML"],eXe=["disabled"],tXe=["innerHTML"],nXe=["disabled"],aXe=["innerHTML"],sXe=["disabled"],oXe=["innerHTML"],rXe={class:"sg-detail__meta-bar page-card"},lXe={class:"sg-detail__meta"},iXe=Sa(()=>l("span",null,"永久有效",-1)),cXe=mn('
    操作说明
    1查看接入信息,确认 App ID 与 Key 预览
    2根据授权模型范围完成调用配置
    3结合操作记录复核变更历史
    ',1),uXe={class:"sg-detail__tabs"},dXe={class:"sg-detail__section"},fXe=Sa(()=>l("div",{class:"sg-detail__section-head"},[l("h2",null,"App Key")],-1)),pXe={class:"sg-detail__credential-card"},vXe=["innerHTML"],hXe={class:"sg-detail__credential-copy"},mXe={class:"sg-detail__credential-row"},gXe=Sa(()=>l("span",{class:"sg-detail__credential-label"},"App Key",-1)),_Xe={class:"sg-detail__key-actions"},yXe=["aria-label","disabled"],bXe=["innerHTML"],wXe=["disabled"],CXe=["innerHTML"],kXe=["disabled"],SXe=["innerHTML"],EXe={class:"sg-detail__credential-row"},$Xe=Sa(()=>l("span",{class:"sg-detail__credential-label"},"App ID",-1)),xXe={key:0,class:"sg-detail__section"},TXe=Sa(()=>l("div",null,[l("h2",null,"成员额度")],-1)),IXe={class:"sg-detail__quota-grid"},AXe={class:"sg-detail__quota-item"},NXe=Sa(()=>l("span",{class:"sg-detail__quota-label"},"额度上限",-1)),RXe={class:"sg-detail__quota-value"},PXe={class:"sg-detail__quota-item"},MXe=Sa(()=>l("span",{class:"sg-detail__quota-label"},"累计已消耗",-1)),BXe={class:"sg-detail__quota-value"},LXe={class:"sg-detail__quota-item"},OXe=Sa(()=>l("span",{class:"sg-detail__quota-label"},"剩余可用额度",-1)),DXe={class:"sg-detail__quota-value"},VXe={class:"sg-detail__section"},FXe={class:"sg-detail__section-head sg-detail__section-head--split"},UXe=Sa(()=>l("div",null,[l("h2",null,"服务模型")],-1)),zXe={class:"sg-detail__search"},HXe={class:"sg-detail__filters"},KXe={class:"sg-detail__table-wrap"},qXe={class:"sg-detail__table"},jXe=Sa(()=>l("colgroup",null,[l("col",{style:{width:"260px"}}),l("col",{style:{width:"160px"}}),l("col"),l("col",{style:{width:"120px"}}),l("col",{style:{width:"110px"}})],-1)),WXe=Sa(()=>l("thead",null,[l("tr",null,[l("th",null,"服务名称/ID"),l("th",null,"可用状态"),l("th",null,"服务介绍"),l("th",null,"服务类型"),l("th",null,"操作")])],-1)),GXe={key:0},YXe={class:"sg-detail__model-cell"},XXe={class:"sg-detail__model-name-row"},QXe=["title"],JXe=["onClick"],ZXe=["title"],eQe={class:"sg-detail__model-id-text"},tQe={class:"sg-detail__status-cell"},nQe={key:0,class:"sg-detail__beta-badge"},aQe={class:"sg-detail__intro"},sQe={class:"sg-detail__type-tag"},oQe=["onClick"],rQe={key:0,class:"sg-detail__empty"},lQe=Sa(()=>l("strong",null,"暂无匹配模型",-1)),iQe=Sa(()=>l("span",null,"可以切换筛选条件,或清空关键词后重新查看全部服务。",-1)),cQe=[lQe,iQe],uQe={class:"sg-detail__footnote"},dQe={key:1,class:"sg-detail__section"},fQe=Sa(()=>l("div",{class:"sg-detail__section-head"},[l("h2",null,"操作记录"),l("span",null,"按时间回看服务组创建、配置调整与状态变化")],-1)),pQe={key:0,class:"sg-detail__table-wrap sg-detail__log-table-wrap"},vQe={class:"sg-detail__table sg-detail__log-table"},hQe=Sa(()=>l("thead",null,[l("tr",null,[l("th",null,"操作"),l("th",null,"操作内容"),l("th",null,"备注"),l("th",null,"操作时间")])],-1)),mQe={class:"sg-detail__log-operation"},gQe={class:"sg-detail__log-time"},_Qe={key:1,class:"sg-detail__empty"},yQe=Sa(()=>l("strong",null,"当前暂无操作记录",-1)),bQe=Sa(()=>l("span",null,"服务组创建或变更后,会在这里展示最近的操作轨迹。",-1)),wQe=[yQe,bQe],CQe={key:2,class:"sg-detail__pagination"},kQe={key:3,class:"sg-detail__dialog-mask"},SQe={class:"sg-detail__dialog"},EQe={class:"sg-detail__dialog-head"},$Qe=Sa(()=>l("div",{class:"sg-detail__dialog-copy"},[l("strong",null,"调整额度上限"),l("p",null,"设置本成员可消耗的积分上限,0 表示无额度(成员不可用)")],-1)),xQe={class:"sg-detail__quota-field"},TQe=Sa(()=>l("span",null,"额度上限",-1)),IQe={class:"sg-detail__dialog-actions"},AQe=["disabled"],NQe=le({__name:"ServiceGroupDetailView",setup(e){const t={eye:'',eyeOff:'',copy:'',refresh:'',key:'',shield:'',clock:'',chevronRight:'',edit:'',trash:'',power:'',arrowLeft:''},n=fa(),a=pn(),s=_a(),o=T(!1),r=T(""),i=T(null),c=T([]),u=T(0),d=T(1),p=T(10),v=[10,20,50],h=T({}),m=T("access"),g=T(""),y=T("all"),b=T(new Set),C=T(""),k=T(!1),S=T(!1),$=x(()=>Number(n.params.id)),E=T(!1),R=T(!1),A=At({quotaLimit:0}),N=x(()=>{var ce;return((ce=s.userInfo)==null?void 0:ce.userType)==="enterprise"}),P=x(()=>{var we,Ae;return Number(((we=i.value)==null?void 0:we.quotaLimit)??0)===0?"无额度(不可用)":String((Ae=i.value)==null?void 0:Ae.quotaLimit)}),B=()=>{var ce;A.quotaLimit=Number(((ce=i.value)==null?void 0:ce.quotaLimit)??0),E.value=!0},M=async()=>{const ce=$.value;if(!Number.isSafeInteger(ce)||ce<1)return;const we=Number(A.quotaLimit);if(!Number.isFinite(we)||we<0){rt.error("请输入不小于 0 的额度上限");return}R.value=!0;try{await ua.confirm("调整服务组额度前,请确认已阅读并同意模型服务协议、模型服务用户信息处理规则和模型服务等级协议。","确认协议",{confirmButtonText:"同意并保存",cancelButtonText:"取消"}),await P0(ce,{quotaLimit:we,agreeModelServiceProtocol:!0}),rt.success("额度上限已更新"),E.value=!1,await J()}catch(Ae){rt.error(Ae instanceof Error?Ae.message:"额度调整失败,请稍后重试")}finally{R.value=!1}},j=x(()=>{var ce;return((ce=i.value)==null?void 0:ce.status)==="enabled"?"使用中":"已停用"}),F=ce=>ce.modelStatus==="offline"?"offline":b.value.has(ce.modelName)?"in_use":"unavailable",q={in_use:"使用中",unavailable:"暂不可授权",offline:"已下架"},L=ce=>({create:"创建",update:"更新",delete:"删除",regenerate:"重置密钥",add_model:"添加模型",remove_model:"移除模型",enable:"启用",disable:"停用"})[ce]||"未知操作",U=x(()=>{var ce;return C.value||((ce=i.value)==null?void 0:ce.apiKeyPreview)||""}),O=x(()=>!!C.value),G=x(()=>{var ce;return((ce=i.value)==null?void 0:ce.authorizedModels.length)??0}),ae=x(()=>{var we;const ce=((we=i.value)==null?void 0:we.authorizedModels)??[];return{all:ce.length,in_use:ce.filter(Ae=>F(Ae)==="in_use").length,unavailable:ce.filter(Ae=>F(Ae)==="unavailable").length,offline:ce.filter(Ae=>F(Ae)==="offline").length}}),Z=x(()=>{var Ae;const ce=g.value.trim().toLowerCase();return(((Ae=i.value)==null?void 0:Ae.authorizedModels)??[]).filter(Fe=>{if(!(y.value==="all"||F(Fe)===y.value))return!1;if(!ce)return!0;const me=h.value[Fe.modelId];return[Fe.modelName,Fe.modelId,Fe.modelStatus,me==null?void 0:me.summary,me==null?void 0:me.typeName].filter(Boolean).some(Me=>String(Me).toLowerCase().includes(ce))})}),te=async()=>{const ce=$.value;if(!Number.isSafeInteger(ce)||ce<1){c.value=[],u.value=0;return}const we=await B$(ce,{pageNum:d.value,pageSize:p.value});c.value=we.list||[],u.value=we.total||0},ie=ce=>{d.value=ce,te()},oe=ce=>{p.value=ce,d.value=1,te()},J=async()=>{o.value=!0,r.value="",C.value="";try{const ce=$.value;if(!Number.isSafeInteger(ce)||ce<1){i.value=null,c.value=[],u.value=0,b.value=new Set,h.value={},r.value="服务组不存在";return}const[we,Ae,Fe]=await Promise.all([dw(ce),B$(ce,{pageNum:d.value,pageSize:p.value}),vm()]);i.value=we,c.value=Ae.list||[],u.value=Ae.total||0,b.value=new Set(Fe.map(xe=>xe.modelName)),h.value=Fe.reduce((xe,me)=>(xe[me.modelId]={summary:me.summary,typeName:me.typeName},xe),{})}catch(ce){i.value=null,c.value=[],u.value=0,b.value=new Set,h.value={},r.value=ce instanceof Error?ce.message:"服务组详情加载失败,请稍后重试。"}finally{o.value=!1}},ee=()=>{a.push({name:N.value?"enterprise-seats":"service-groups"})},Q=()=>{i.value&&a.push({name:"service-group-edit",params:{id:i.value.id}})},H=async(ce,we)=>{let Ae=ce;if(we.includes("App Key")&&i.value&&!C.value&&(Ae=await ke()||ce),!Ae){rt.error("暂无可复制内容");return}if(await Ki(Ae)){rt.success(we);return}rt.error("复制失败,请稍后重试")},X=async ce=>{await H(ce.modelName,"模型名称已复制")},he=ce=>{var we;return((we=h.value[ce.modelId])==null?void 0:we.summary)||"暂无模型摘要"},D=ce=>{var we;return((we=h.value[ce.modelId])==null?void 0:we.typeName)||"未分类"},Y=ce=>{a.push({name:"model-detail",params:{id:ce.modelId}})},ne=ce=>ce==="cancel"||ce==="close",re=async()=>{if(!i.value)return;const ce=i.value.status==="enabled"?"disabled":"enabled",we=ce==="enabled"?"启用":"停用";try{await ua.confirm(`确认${we}"${i.value.groupName}"吗?`,`${we}服务组`,{confirmButtonText:we,cancelButtonText:"取消",type:ce==="enabled"?"success":"warning"})}catch(Ae){if(ne(Ae))return;throw Ae}S.value=!0;try{await lw(i.value.id,{status:ce}),rt.success(ce==="enabled"?"服务组已启用":"服务组已停用"),await J()}finally{S.value=!1}},se=async()=>{if(i.value){try{await ua.confirm(`删除后将无法继续使用"${i.value.groupName}"的 App Key,是否继续?`,"删除服务组",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"})}catch(ce){if(ne(ce))return;throw ce}S.value=!0;try{await iw(i.value.id),rt.success("服务组已删除"),a.push({name:"service-groups"})}finally{S.value=!1}}},ke=async()=>{if(!i.value)return"";if(C.value)return C.value;k.value=!0;try{const ce=await uw(i.value.id);return C.value=ce.apiKeyPlain,ce.apiKeyPlain}catch{return""}finally{k.value=!1}},ye=async()=>{if(C.value){C.value="";return}await ke()},Se=async()=>{if(i.value){try{await ua.confirm(`重置后旧 App Key 会立即失效,是否继续重置"${i.value.groupName}"?`,"重置 App Key",{confirmButtonText:"确认重置",cancelButtonText:"取消",type:"warning",customClass:"service-group-reset-message-box"})}catch(ce){if(ce==="cancel"||ce==="close")return;throw ce}k.value=!0;try{const ce=await cw(i.value.id);C.value="",i.value.apiKeyPreview=ce.apiKeyPrefix+"****",rt.success("App Key 已重置,请及时复制新密钥"),await J(),C.value=ce.apiKeyPlain}finally{k.value=!1}}};return ft(()=>{J()}),(ce,we)=>{const Ae=Ne("el-tooltip"),Fe=Ne("el-pagination"),xe=Ne("el-input-number");return _(),w("section",HYe,[o.value?(_(),w("div",KYe,GYe)):r.value?(_(),w("section",YYe,[XYe,QYe,l("span",null,I(r.value),1)])):i.value?(_(),w(_e,{key:2},[z(f(Wl),{eyebrow:"服务组接入",title:i.value.groupName,description:i.value.description||"未填写服务组描述"},{actions:W(()=>[l("button",{type:"button",class:"sg-detail__action-btn","data-testid":"detail-edit-service-group",disabled:S.value,onClick:Q},[l("span",{"aria-hidden":"true",innerHTML:t.edit},null,8,ZYe),Ce(" 编辑 ")],8,JYe),l("button",{type:"button",class:"sg-detail__action-btn","data-testid":"detail-toggle-service-group-status",disabled:S.value,onClick:re},[l("span",{"aria-hidden":"true",innerHTML:t.power},null,8,tXe),Ce(" "+I(i.value.status==="enabled"?"停用":"启用"),1)],8,eXe),l("button",{type:"button",class:"sg-detail__action-btn sg-detail__action-btn--danger","data-testid":"detail-delete-service-group",disabled:S.value,onClick:se},[l("span",{"aria-hidden":"true",innerHTML:t.trash},null,8,aXe),Ce(" 删除 ")],8,nXe),l("button",{type:"button",class:"sg-detail__action-btn",disabled:S.value,onClick:ee},[l("span",{"aria-hidden":"true",innerHTML:t.arrowLeft},null,8,oXe),Ce(" 返回列表 ")],8,sXe)]),_:1},8,["title","description"]),l("div",rXe,[l("span",{class:V(["sg-detail__status",`is-${i.value.status}`])},I(j.value),3),l("div",lXe,[l("span",null,"生效时间 "+I(i.value.createTime),1),iXe])]),cXe,l("div",uXe,[l("button",{type:"button",class:V(["sg-detail__tab",{"is-active":m.value==="access"}]),onClick:we[0]||(we[0]=me=>m.value="access")},"接入信息",2),l("button",{type:"button",class:V(["sg-detail__tab",{"is-active":m.value==="logs"}]),onClick:we[1]||(we[1]=me=>m.value="logs")},"操作记录",2)]),m.value==="access"?(_(),w(_e,{key:0},[l("section",dXe,[fXe,l("div",pXe,[l("span",{class:"sg-detail__credential-icon","aria-hidden":"true",innerHTML:t.key},null,8,vXe),l("div",hXe,[l("div",mXe,[gXe,l("strong",null,I(U.value),1),l("div",_Xe,[z(Ae,{content:O.value?"隐藏 App Key":"显示 App Key",placement:"top"},{default:W(()=>[l("button",{type:"button",class:"sg-detail__icon-btn","data-testid":"detail-toggle-service-group-api-key-visibility","aria-label":O.value?"隐藏 App Key":"显示 App Key",disabled:k.value,onClick:ye},[l("span",{innerHTML:O.value?t.eyeOff:t.eye},null,8,bXe)],8,yXe)]),_:1},8,["content"]),O.value?(_(),ue(Ae,{key:0,content:"复制 App Key",placement:"top"},{default:W(()=>[l("button",{type:"button",class:"sg-detail__icon-btn","data-testid":"detail-copy-service-group-api-key","aria-label":"复制 App Key",disabled:k.value,onClick:we[2]||(we[2]=me=>H(U.value,"App Key 已复制"))},[l("span",{innerHTML:t.copy},null,8,CXe)],8,wXe)]),_:1})):K("",!0),z(Ae,{content:"重置 App Key",placement:"top"},{default:W(()=>[l("button",{type:"button",class:"sg-detail__icon-btn sg-detail__icon-btn--warning","data-testid":"detail-reset-service-group-api-key","aria-label":"重置 App Key",disabled:k.value,onClick:Se},[l("span",{innerHTML:t.refresh},null,8,SXe)],8,kXe)]),_:1})])]),l("div",EXe,[$Xe,l("strong",null,I(i.value.groupCode),1),l("button",{type:"button",class:"sg-detail__text-btn","data-testid":"detail-copy-service-group-app-id",onClick:we[3]||(we[3]=me=>H(i.value.groupCode,"App ID 已复制"))}," 复制 ")])])])]),N.value?(_(),w("section",xXe,[l("div",{class:"sg-detail__section-head sg-detail__section-head--split"},[TXe,l("button",{type:"button",class:"sg-detail__quota-edit-btn","data-testid":"open-quota-dialog",onClick:B},"调整额度")]),l("div",IXe,[l("div",AXe,[NXe,l("strong",RXe,I(P.value),1)]),l("div",PXe,[MXe,l("strong",BXe,I(String(i.value.quotaLimit===void 0?"-":i.value.totalConsumed??0)),1)]),l("div",LXe,[OXe,l("strong",DXe,I(String(i.value.remaining??0)),1)])])])):K("",!0),l("section",VXe,[l("div",FXe,[UXe,l("label",zXe,[et(l("input",{"onUpdate:modelValue":we[4]||(we[4]=me=>g.value=me),type:"text",placeholder:"例如:请输入服务名称、模型 ID 搜索"},null,512),[[hn,g.value,void 0,{trim:!0}]])])]),l("div",HXe,[l("button",{type:"button",class:V(["sg-detail__filter",{"is-active":y.value==="all"}]),onClick:we[5]||(we[5]=me=>y.value="all")},"全部服务("+I(ae.value.all)+")",3),l("button",{type:"button",class:V(["sg-detail__filter",{"is-active":y.value==="in_use"}]),onClick:we[6]||(we[6]=me=>y.value="in_use")},"使用中("+I(ae.value.in_use)+")",3),l("button",{type:"button",class:V(["sg-detail__filter",{"is-active":y.value==="unavailable"}]),onClick:we[7]||(we[7]=me=>y.value="unavailable")},"暂不可授权("+I(ae.value.unavailable)+")",3),l("button",{type:"button",class:V(["sg-detail__filter",{"is-active":y.value==="offline"}]),onClick:we[8]||(we[8]=me=>y.value="offline")},"已下架("+I(ae.value.offline)+")",3)]),l("div",KXe,[l("table",qXe,[jXe,WXe,Z.value.length>0?(_(),w("tbody",GXe,[(_(!0),w(_e,null,Re(Z.value,me=>(_(),w("tr",{key:me.modelId},[l("td",null,[l("div",YXe,[l("div",XXe,[l("strong",{class:"sg-detail__model-name",title:me.modelName},I(me.modelName),9,QXe),l("button",{type:"button",class:"sg-detail__text-btn",onClick:Me=>X(me)},"复制",8,JXe)]),l("div",{class:"sg-detail__model-id-row",title:me.modelId},[l("span",eQe,I(me.modelId),1)],8,ZXe)])]),l("td",null,[l("div",tQe,[l("span",{class:V(["sg-detail__badge",`is-${F(me)}`])},I(q[F(me)]),3),me.modelStatus==="trial_published"?(_(),w("span",nQe,"Beta")):K("",!0)])]),l("td",null,[l("p",aQe,I(he(me)),1)]),l("td",null,[l("span",sQe,I(D(me)),1)]),l("td",null,[l("button",{type:"button",class:"sg-detail__link-btn",onClick:Me=>Y(me)},"查看详情",8,oQe)])]))),128))])):K("",!0)]),Z.value.length===0?(_(),w("div",rQe,cQe)):K("",!0)]),l("div",uQe,[l("span",null,"授权模型 "+I(G.value)+" 个",1),l("span",null,"最近更新时间 "+I(i.value.updateTime),1)])])],64)):(_(),w("section",dQe,[fQe,c.value.length>0?(_(),w("div",pQe,[l("table",vQe,[hQe,l("tbody",null,[(_(!0),w(_e,null,Re(c.value,me=>(_(),w("tr",{key:me.id},[l("td",null,[l("strong",mQe,I(L(me.operationType)),1)]),l("td",null,I(me.operationContent),1),l("td",null,I(me.remark||"无备注"),1),l("td",gQe,I(me.createTime),1)]))),128))])])])):(_(),w("div",_Qe,wQe)),u.value>0?(_(),w("footer",CQe,[z(Fe,{background:"",layout:"total, sizes, prev, pager, next","current-page":d.value,"page-size":p.value,"page-sizes":v,total:u.value,"popper-class":"sg-detail__pagination-dropdown mall-select-red-dropdown",onCurrentChange:ie,onSizeChange:oe},null,8,["current-page","page-size","total"])])):K("",!0)]))],64)):K("",!0),E.value?(_(),w("div",kQe,[l("section",SQe,[l("div",EQe,[$Qe,l("button",{type:"button",class:"sg-detail__dialog-close",onClick:we[9]||(we[9]=me=>E.value=!1)},"关闭")]),l("label",xQe,[TQe,z(xe,{modelValue:A.quotaLimit,"onUpdate:modelValue":we[10]||(we[10]=me=>A.quotaLimit=me),precision:6,controls:!1,style:{width:"100%"}},null,8,["modelValue"])]),l("div",IQe,[l("button",{type:"button",class:"sg-detail__btn",onClick:we[11]||(we[11]=me=>E.value=!1)},"取消"),l("button",{type:"button",class:"sg-detail__btn sg-detail__btn--primary",disabled:R.value,"data-testid":"save-quota",onClick:M},I(R.value?"保存中...":"保存"),9,AQe)])])])):K("",!0)])}}}),RQe=Ct(NQe,[["__scopeId","data-v-dac8e572"]]),Hd=e=>(xt("data-v-bd95916f"),e=e(),Tt(),e),PQe={class:"quota-overview-card","data-testid":"enterprise-quota-overview"},MQe=Hd(()=>l("div",{class:"quota-overview-head"},[l("strong",{class:"quota-overview-title"},"企业额度总览"),l("span",{class:"quota-overview-sub"},"已分配可用额度与已消耗额度相加,可核对服务组设置额度")],-1)),BQe={class:"quota-overview-metrics"},LQe={class:"quota-metric"},OQe=Hd(()=>l("span",{class:"quota-metric-label"},"账户余额",-1)),DQe={class:"quota-metric-value"},VQe={class:"quota-metric"},FQe=Hd(()=>l("span",{class:"quota-metric-label"},"已分配可用额度",-1)),UQe={class:"quota-metric-value"},zQe={class:"quota-metric"},HQe=Hd(()=>l("span",{class:"quota-metric-label"},"已消耗额度",-1)),KQe={class:"quota-metric-value"},qQe={class:"quota-metric"},jQe=Hd(()=>l("span",{class:"quota-metric-label"},"可分配额度",-1)),WQe={key:0,class:"quota-metric-overdraft"},GQe={class:"quota-metric"},YQe=Hd(()=>l("span",{class:"quota-metric-label"},"服务组数量",-1)),XQe={class:"quota-metric-value"},QQe={class:"quota-overview-actions"},JQe=le({__name:"EnterpriseQuotaOverview",props:{quota:{},loading:{type:Boolean}},emits:["update-seat-limit","view-quota-logs"],setup(e,{emit:t}){const n=e,a=t,s=x(()=>n.quota?String(n.quota.balance):"-"),o=x(()=>n.quota?String(n.quota.allocatedQuota):"-"),r=x(()=>n.quota?String(n.quota.totalConsumed):"-"),i=x(()=>n.quota?String(n.quota.availableQuota):"-"),c=x(()=>!n.quota||Number(n.quota.availableQuota)>=0?"":"已透支,请回收服务组额度或充值积分");return(u,d)=>{const p=gd("loading");return et((_(),w("div",PQe,[MQe,l("div",BQe,[l("div",LQe,[OQe,l("span",DQe,I(s.value),1)]),l("div",VQe,[FQe,l("span",UQe,I(o.value),1)]),l("div",zQe,[HQe,l("span",KQe,I(r.value),1)]),l("div",qQe,[jQe,l("span",{class:V(["quota-metric-value",{"quota-metric-value--negative":c.value}])},I(i.value),3),c.value?(_(),w("span",WQe,I(c.value),1)):K("",!0)]),l("div",GQe,[YQe,l("span",XQe,I(u.quota?`${u.quota.serviceGroupCount} / ${u.quota.seatLimit}`:"-"),1)])]),l("div",QQe,[l("button",{type:"button",class:"quota-overview-seat-limit",onClick:d[0]||(d[0]=v=>a("update-seat-limit"))},"调整服务组上限"),l("button",{type:"button",class:"quota-overview-log-button",onClick:d[1]||(d[1]=v=>a("view-quota-logs"))},"查看额度流水")])])),[[p,u.loading]])}}}),ZQe=Ct(JQe,[["__scopeId","data-v-bd95916f"]]),Qa=e=>(xt("data-v-447f7fe7"),e=e(),Tt(),e),eJe={class:"page-container sg-list"},tJe=["innerHTML"],nJe={class:"sg-list__filters"},aJe={class:"sg-list__field"},sJe=Qa(()=>l("span",null,"关键词",-1)),oJe={class:"sg-list__field"},rJe=Qa(()=>l("span",null,"状态",-1)),lJe=Qa(()=>l("button",{type:"submit",class:"sg-list__btn sg-list__btn--primary"},"查询",-1)),iJe={key:1,class:"sg-list__skeleton"},cJe={key:2,class:"sg-list__state sg-list__state--error"},uJe=Qa(()=>l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("circle",{cx:"12",cy:"12",r:"10"}),l("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),l("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})],-1)),dJe=Qa(()=>l("strong",null,"加载失败",-1)),fJe={key:3,class:"sg-list__state sg-list__state--empty"},pJe=Qa(()=>l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"})],-1)),vJe=Qa(()=>l("strong",null,"还没有可用的服务组",-1)),hJe=Qa(()=>l("span",null,"创建服务组后即可按模型维度发放 API Key,并在详情页查看授权范围与凭证预览。",-1)),mJe=[pJe,vJe,hJe],gJe={key:4,class:"sg-list__grid"},_Je={class:"sg-card__header"},yJe=["onClick"],bJe=Qa(()=>l("i",{class:"sg-card__status-dot"},null,-1)),wJe={class:"sg-card__key-row"},CJe=Qa(()=>l("span",{class:"sg-card__label"},"App Key",-1)),kJe={class:"sg-card__key-value"},SJe={class:"sg-card__key-actions"},EJe=["aria-label","disabled","onClick"],$Je=["innerHTML"],xJe=["disabled","onClick"],TJe=["innerHTML"],IJe=["disabled","onClick"],AJe=["innerHTML"],NJe=Qa(()=>l("div",{class:"sg-card__meta-row"},[l("span",{class:"sg-card__label"},"生效时间"),l("strong",{class:"sg-card__value"},"永久有效")],-1)),RJe={class:"sg-card__meta-grid"},PJe={class:"sg-card__meta-item sg-card__meta-item--full"},MJe=Qa(()=>l("span",null,"App ID",-1)),BJe={class:"sg-card__meta-item"},LJe=Qa(()=>l("span",null,"授权模型",-1)),OJe={class:"sg-card__meta-item"},DJe=Qa(()=>l("span",null,"创建时间",-1)),VJe={class:"sg-card__meta-item"},FJe=Qa(()=>l("span",null,"额度上限",-1)),UJe={class:"sg-card__quota-value"},zJe=["aria-label","disabled","onClick"],HJe=["innerHTML"],KJe={class:"sg-card__meta-item"},qJe=Qa(()=>l("span",null,"剩余额度",-1)),jJe={class:"sg-card__action-row"},WJe=["onClick"],GJe=["disabled","onClick"],YJe=["disabled","onClick"],XJe=["disabled","onClick"],QJe={key:5,class:"sg-list__pagination"},JJe={key:6,class:"sg-list__dialog-mask","data-testid":"service-group-reset-dialog"},ZJe={class:"sg-list__dialog"},eZe=Qa(()=>l("div",{class:"sg-list__dialog-copy"},[l("strong",null,"App Key 已重置"),l("p",null,"请立即复制并更新调用配置")],-1)),tZe={class:"sg-list__reset-summary"},nZe={class:"sg-list__reset-item","data-testid":"service-group-reset-summary-item"},aZe=Qa(()=>l("dt",null,"App ID",-1)),sZe={class:"sg-list__reset-item","data-testid":"service-group-reset-summary-item"},oZe=Qa(()=>l("dt",null,"重置时间",-1)),rZe={class:"sg-list__reset-key-card"},lZe={class:"sg-list__reset-key"},iZe=Qa(()=>l("dt",null,"新 App Key",-1)),cZe={"data-testid":"service-group-reset-key-value"},uZe=le({__name:"ServiceGroupListView",setup(e){const t={eye:'',eyeOff:'',copy:'',refresh:'',edit:'',key:'',plus:'',search:''},n=pn(),a=_a(),s=T(!1),o=T(""),r=T([]),i=T(0),c=T(null),u=T(!1),d=T(null),p=At({pageNum:1,pageSize:10,keyword:"",status:""}),v=At({}),h=At({}),m=T(null),g=T(!1),y=T(!1),b=T(null),C=x(()=>{var re;return((re=a.userInfo)==null?void 0:re.userType)==="enterprise"}),k=re=>Number(re??0)===0?"0":String(re),S=async()=>{if(C.value){g.value=!0;try{m.value=await R0()}catch{}finally{g.value=!1}}},$=()=>{n.push({name:"enterprise-quota-logs"})},E=async()=>{if(!(!m.value||y.value))try{const{value:re}=await ua.prompt("请输入可创建的服务组数量上限。","调整服务组上限",{inputValue:String(m.value.seatLimit),inputPattern:/^\d+$/,inputErrorMessage:"请输入不小于当前服务组数量的整数",confirmButtonText:"确认调整",cancelButtonText:"取消"});y.value=!0,await jRe(Number(re)),rt.success("服务组上限已更新"),await S()}catch(re){re!=="cancel"&&re!=="close"&&rt.error(re instanceof Error?re.message:"服务组上限更新失败")}finally{y.value=!1}},R=async re=>{if(b.value===null)try{const{value:se}=await ua.prompt("请输入新的额度上限;不得低于已消耗额度。","修改额度上限",{inputValue:String(re.quotaLimit??0),inputPattern:/^-?\d+(\.\d{1,6})?$/,inputErrorMessage:"请输入最多 6 位小数的数值",confirmButtonText:"保存",cancelButtonText:"取消"}),ke=Number(se);if(!Number.isFinite(ke)||ke<0){rt.error("请输入不小于 0 的额度上限");return}b.value=re.id,await ua.confirm("调整服务组额度前,请确认已阅读并同意模型服务协议、模型服务用户信息处理规则和模型服务等级协议。","确认协议",{confirmButtonText:"同意并保存",cancelButtonText:"取消"}),await P0(re.id,{quotaLimit:ke,agreeModelServiceProtocol:!0}),rt.success("额度上限已更新"),await Promise.all([te(),S()])}catch(se){se!=="cancel"&&se!=="close"&&rt.error(se instanceof Error?se.message:"额度上限更新失败")}finally{b.value=null}},A=x(()=>!s.value),N=[10,20,50],P=re=>`${re.apiKeyPrefix}************************`,B=re=>v[re.id]||P(re),M=re=>!!v[re],j=re=>!!h[re],F=re=>{delete v[re]},q=async re=>{if(v[re.id])return v[re.id];h[re.id]=!0;try{const se=await uw(re.id);return v[re.id]=se.apiKeyPlain,se.apiKeyPlain}catch{return""}finally{delete h[re.id]}},L=async re=>{if(v[re.id]){F(re.id);return}await q(re)},U=async re=>{const se=await q(re)||v[re.id];if(se){if(await Ki(se)){rt.success("App Key 已复制");return}rt.error("复制失败,请稍后重试")}},O=re=>re==="enabled"?"使用中":"已停用",G=re=>re==="enabled"?"停用":"启用",ae=re=>re==="cancel"||re==="close",Z=async()=>{var re;if(!((re=d.value)!=null&&re.apiKeyPlain)){rt.error("暂无可复制的 App Key");return}if(await Ki(d.value.apiKeyPlain)){rt.success("新 App Key 已复制"),he();return}rt.error("复制失败,请稍后重试")},te=async()=>{s.value=!0,o.value="";try{const re=await rw({pageNum:p.pageNum,pageSize:p.pageSize,keyword:p.keyword||void 0,status:p.status||void 0});r.value=re.list||[],i.value=re.total||0;const se=new Set(r.value.map(ke=>ke.id));Object.keys(v).forEach(ke=>{const ye=Number(ke);se.has(ye)||delete v[ye]})}catch(re){r.value=[],i.value=0,o.value=re instanceof Error?re.message:"服务组列表加载失败,请稍后重试。"}finally{s.value=!1}},ie=async()=>{p.pageNum=1,await te()},oe=async()=>{p.keyword="",p.status="",p.pageNum=1,await te()},J=async re=>{re!==p.pageNum&&(p.pageNum=re,await te())},ee=async re=>{!N.includes(re)||re===p.pageSize||(p.pageNum=1,p.pageSize=re,await te())},Q=()=>{n.push({name:"service-group-create"})},H=re=>{n.push({name:"service-group-detail",params:{id:re}})},X=re=>{n.push({name:"service-group-edit",params:{id:re}})},he=()=>{u.value=!1,d.value=null},D=async re=>{const se=re.status==="enabled"?"disabled":"enabled",ke=se==="enabled"?"启用":"停用";try{await ua.confirm(`确认${ke}"${re.groupName}"吗?`,`${ke}服务组`,{confirmButtonText:ke,cancelButtonText:"取消",type:se==="enabled"?"success":"warning"})}catch(ye){if(ae(ye))return;throw ye}c.value=re.id;try{await lw(re.id,{status:se}),rt.success(se==="enabled"?"服务组已启用":"服务组已停用"),await te()}finally{c.value=null}},Y=async re=>{try{await ua.confirm(`删除后将无法继续使用"${re.groupName}"的 API Key,是否继续?`,"删除服务组",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"})}catch(se){if(ae(se))return;throw se}c.value=re.id;try{await iw(re.id),r.value.length===1&&p.pageNum>1&&(p.pageNum-=1),rt.success("服务组已删除"),await te()}finally{c.value=null}},ne=async re=>{try{await ua.confirm(`重置后旧 App Key 会立即失效,是否继续重置"${re.groupName}"?`,"重置 App Key",{confirmButtonText:"确认重置",cancelButtonText:"取消",type:"warning",customClass:"service-group-reset-message-box"})}catch(se){if(ae(se))return;throw se}c.value=re.id;try{const se=await cw(re.id);v[re.id]=se.apiKeyPlain,d.value=se,u.value=!0,rt.success("App Key 已重置"),await te()}finally{c.value=null}};return ft(()=>{te(),S()}),(re,se)=>{const ke=Ne("el-input"),ye=Ne("el-option"),Se=Ne("el-select"),ce=Ne("el-tooltip"),we=Ne("el-pagination");return _(),w("section",eJe,[z(f(Wl),{eyebrow:"服务组接入",title:"服务组管理",description:"统一管理服务组、授权模型与 API Key,减少接入成本"},{actions:W(()=>[l("button",{type:"button",class:"sg-list__btn sg-list__btn--primary",onClick:Q},[l("span",{class:"sg-list__btn-icon","aria-hidden":"true",innerHTML:t.plus},null,8,tJe),Ce(" 创建服务组 ")])]),_:1}),l("section",nJe,[l("form",{class:"sg-list__filters-body",onSubmit:qe(ie,["prevent"])},[l("label",aJe,[sJe,z(ke,{modelValue:p.keyword,"onUpdate:modelValue":se[0]||(se[0]=Ae=>p.keyword=Ae),"data-testid":"service-group-keyword",class:"sg-list__keyword-input",placeholder:"例如:搜索服务组名称或 App ID",clearable:""},null,8,["modelValue"])]),l("label",oJe,[rJe,z(Se,{modelValue:p.status,"onUpdate:modelValue":se[1]||(se[1]=Ae=>p.status=Ae),class:"sg-list__status-select mall-select-red-theme","popper-class":"sg-list__select-dropdown mall-select-red-dropdown"},{default:W(()=>[z(ye,{label:"全部状态",value:""}),z(ye,{label:"使用中",value:"enabled"}),z(ye,{label:"已停用",value:"disabled"})]),_:1},8,["modelValue"])]),l("div",{class:"sg-list__filter-actions"},[lJe,l("button",{type:"button",class:"sg-list__btn",onClick:oe},"重置")])],32)]),C.value?(_(),ue(ZQe,{key:0,quota:m.value,loading:g.value,onUpdateSeatLimit:E,onViewQuotaLogs:$},null,8,["quota","loading"])):K("",!0),s.value?(_(),w("section",iJe,[(_(),w(_e,null,Re(3,Ae=>l("div",{key:Ae,class:"sg-list__skeleton-card"})),64))])):o.value?(_(),w("section",cJe,[uJe,dJe,l("span",null,I(o.value),1)])):r.value.length===0?(_(),w("section",fJe,mJe)):(_(),w("section",gJe,[(_(!0),w(_e,null,Re(r.value,Ae=>(_(),w("article",{key:Ae.id,class:V(["sg-card",{"sg-card--disabled":Ae.status==="disabled"}]),"data-testid":"service-group-access-card"},[l("div",_Je,[l("button",{type:"button",class:"sg-card__title",onClick:Fe=>H(Ae.id)},I(Ae.groupName),9,yJe),l("span",{class:V(["sg-card__status",`is-${Ae.status}`])},[bJe,Ce(" "+I(O(Ae.status)),1)],2)]),l("div",wJe,[CJe,l("strong",kJe,I(B(Ae)),1),l("div",SJe,[z(ce,{content:M(Ae.id)?"隐藏 App Key":"显示 App Key",placement:"top"},{default:W(()=>[l("button",{type:"button",class:"sg-card__icon-btn","data-testid":"toggle-service-group-api-key-visibility","aria-label":M(Ae.id)?"隐藏 App Key":"显示 App Key",disabled:j(Ae.id),onClick:Fe=>L(Ae)},[l("span",{innerHTML:M(Ae.id)?t.eyeOff:t.eye},null,8,$Je)],8,EJe)]),_:2},1032,["content"]),M(Ae.id)?(_(),ue(ce,{key:0,content:"复制 App Key",placement:"top"},{default:W(()=>[l("button",{type:"button",class:"sg-card__icon-btn","data-testid":"copy-service-group-api-key","aria-label":"复制 App Key",disabled:j(Ae.id),onClick:Fe=>U(Ae)},[l("span",{innerHTML:t.copy},null,8,TJe)],8,xJe)]),_:2},1024)):K("",!0),z(ce,{content:"重置 App Key",placement:"top"},{default:W(()=>[l("button",{type:"button",class:"sg-card__icon-btn sg-card__icon-btn--warning","data-testid":"reset-service-group-key","aria-label":"重置 App Key",disabled:c.value===Ae.id,onClick:Fe=>ne(Ae)},[l("span",{innerHTML:t.refresh},null,8,AJe)],8,IJe)]),_:2},1024)])]),NJe,l("div",RJe,[l("div",PJe,[MJe,l("strong",null,I(Ae.groupCode),1)]),l("div",BJe,[LJe,l("strong",null,I(Ae.authorizedModelCount)+" 个",1)]),l("div",OJe,[DJe,l("strong",null,I(Ae.createTime),1)]),C.value?(_(),w(_e,{key:0},[l("div",VJe,[FJe,l("strong",UJe,[Ce(I(k(Ae.quotaLimit))+" ",1),z(ce,{content:"修改额度上限",placement:"top"},{default:W(()=>[l("button",{type:"button",class:"sg-card__quota-edit","data-testid":"edit-service-group-quota","aria-label":`修改 ${Ae.groupName} 的额度上限`,disabled:b.value!==null,onClick:Fe=>R(Ae)},[l("span",{innerHTML:t.edit},null,8,HJe)],8,zJe)]),_:2},1024)])]),l("div",KJe,[qJe,l("strong",null,I(String(Ae.remaining??0)),1)])],64)):K("",!0)]),l("div",jJe,[l("button",{type:"button",class:"sg-card__action","data-testid":"open-service-group-detail",onClick:Fe=>H(Ae.id)},"查看详情",8,WJe),l("button",{type:"button",class:"sg-card__action","data-testid":"toggle-service-group-status",disabled:c.value===Ae.id,onClick:Fe=>D(Ae)},I(G(Ae.status)),9,GJe),l("button",{type:"button",class:"sg-card__action","data-testid":"open-service-group-edit",disabled:c.value===Ae.id,onClick:Fe=>X(Ae.id)},"编辑",8,YJe),l("button",{type:"button",class:"sg-card__action sg-card__action--muted","data-testid":"delete-service-group",disabled:c.value===Ae.id,onClick:Fe=>Y(Ae)},"删除",8,XJe)])],2))),128))])),A.value?(_(),w("footer",QJe,[z(we,{background:"",layout:"total, sizes, prev, pager, next","current-page":p.pageNum,"page-size":p.pageSize,"page-sizes":N,total:i.value,"popper-class":"sg-list__pagination-dropdown mall-select-red-dropdown",onCurrentChange:J,onSizeChange:ee},null,8,["current-page","page-size","total"])])):K("",!0),u.value&&d.value?(_(),w("div",JJe,[l("section",ZJe,[l("div",{class:"sg-list__dialog-head"},[eZe,l("button",{type:"button",class:"sg-list__dialog-close",onClick:he},"关闭")]),l("dl",tZe,[l("div",nZe,[aZe,l("dd",null,I(d.value.groupCode),1)]),l("div",sZe,[oZe,l("dd",null,I(d.value.resetTime),1)])]),l("dl",rZe,[l("div",lZe,[iZe,l("dd",cZe,I(d.value.apiKeyPlain),1)])]),l("div",{class:"sg-list__dialog-actions"},[l("button",{type:"button",class:"sg-list__btn sg-list__btn--primary","data-testid":"copy-reset-service-group-key",onClick:Z},"复制并关闭")])])])):K("",!0)])}}}),dZe=Ct(uZe,[["__scopeId","data-v-447f7fe7"]]),WA=e=>(xt("data-v-4028d5f1"),e=e(),Tt(),e),fZe={class:"page-container enterprise-quota-logs"},pZe=WA(()=>l("div",null,[l("span",null,"企业服务组"),l("h1",null,"额度流水"),l("p",null,"查看企业账户及各服务组的额度变动记录。")],-1)),vZe={class:"page-card enterprise-quota-logs__card"},hZe=["disabled"],mZe=["disabled"],gZe={key:0,class:"enterprise-quota-logs__state enterprise-quota-logs__state--error"},_Ze={key:1,class:"enterprise-quota-logs__state"},yZe={key:2,class:"enterprise-quota-logs__state"},bZe={key:3,class:"enterprise-quota-logs__table-wrap"},wZe={class:"enterprise-quota-logs__table"},CZe=WA(()=>l("thead",null,[l("tr",null,[l("th",null,"时间"),l("th",null,"事件"),l("th",null,"服务组"),l("th",null,"变动额度"),l("th",null,"变动后额度"),l("th",null,"说明")])],-1)),kZe={class:"enterprise-quota-logs__event"},SZe={key:4,class:"enterprise-quota-logs__footer"},EZe=le({__name:"EnterpriseQuotaLogsView",setup(e){const t=pn(),n=T(!1),a=T(""),s=T([]),o=T(0),r=[10,20,50],i=At({page:1,pageSize:10,eventType:""}),c=[{value:"allocate",label:"额度分配"},{value:"recycle",label:"额度回收"},{value:"consume",label:"服务组消耗"},{value:"gift",label:"赠送积分"},{value:"coupon",label:"积分券兑换"},{value:"recharge",label:"积分充值"},{value:"refund",label:"退款返还"},{value:"adjust",label:"后台调整"}],u=Object.fromEntries(c.map(S=>[S.value,S.label])),d=x(()=>o.value>0),p=S=>u[S]??"其他变动",v=S=>S.replace("T"," "),h=S=>Number(S)>=0?"is-positive":"is-negative",m=async()=>{n.value=!0,a.value="";try{const S=await qRe({page:i.page,pageSize:i.pageSize,eventType:i.eventType||void 0});s.value=S.list,o.value=S.total}catch(S){s.value=[],o.value=0,a.value=S instanceof Error?S.message:"额度流水加载失败,请稍后重试。"}finally{n.value=!1}},g=()=>{i.page=1,m()},y=()=>{i.eventType="",g()},b=S=>{i.page=S,m()},C=S=>{i.pageSize=S,i.page=1,m()},k=()=>{t.push({name:"enterprise-seats"})};return ft(()=>{m()}),(S,$)=>{const E=Ne("el-option"),R=Ne("el-select"),A=Ne("el-pagination");return _(),w("section",fZe,[l("header",{class:"enterprise-quota-logs__header"},[pZe,l("button",{type:"button",class:"enterprise-quota-logs__back",onClick:k},"返回成员")]),l("section",vZe,[l("form",{class:"enterprise-quota-logs__filters",onSubmit:qe(g,["prevent"])},[z(R,{modelValue:i.eventType,"onUpdate:modelValue":$[0]||($[0]=N=>i.eventType=N),class:"enterprise-quota-logs__event-select mall-select-red-theme",clearable:"",placeholder:"全部事件"},{default:W(()=>[(_(),w(_e,null,Re(c,N=>z(E,{key:N.value,label:N.label,value:N.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),l("button",{type:"submit",class:"enterprise-quota-logs__button enterprise-quota-logs__button--primary",disabled:n.value},"查询",8,hZe),l("button",{type:"button",class:"enterprise-quota-logs__button",disabled:n.value,onClick:y},"重置",8,mZe)],32),a.value?(_(),w("div",gZe,I(a.value),1)):n.value?(_(),w("div",_Ze,"额度流水加载中...")):s.value.length===0?(_(),w("div",yZe,"暂无额度流水")):(_(),w("div",bZe,[l("table",wZe,[CZe,l("tbody",null,[(_(!0),w(_e,null,Re(s.value,N=>(_(),w("tr",{key:N.id},[l("td",null,I(v(N.createdAt)),1),l("td",null,[l("span",kZe,I(p(N.eventType)),1)]),l("td",null,I(N.serviceGroupName||"企业账户"),1),l("td",{class:V(h(N.amount))},I(String(N.amount)),3),l("td",null,I(N.quotaAfter==null?"-":String(N.quotaAfter)),1),l("td",null,I(N.remark||"-"),1)]))),128))])])])),d.value?(_(),w("footer",SZe,[z(A,{"current-page":i.page,"onUpdate:currentPage":$[1]||($[1]=N=>i.page=N),"page-size":i.pageSize,"onUpdate:pageSize":$[2]||($[2]=N=>i.pageSize=N),background:"","page-sizes":r,total:o.value,layout:"total, sizes, prev, pager, next",onCurrentChange:b,onSizeChange:C},null,8,["current-page","page-size","total"])])):K("",!0)])])}}}),$Ze=Ct(EZe,[["__scopeId","data-v-4028d5f1"]]),Ia=e=>(xt("data-v-1d1a38fa"),e=e(),Tt(),e),xZe={class:"page-container es-list"},TZe=["innerHTML"],IZe={class:"es-quota","data-testid":"enterprise-quota-overview"},AZe=Ia(()=>l("div",{class:"es-quota__accent","aria-hidden":"true"},null,-1)),NZe=Ia(()=>l("div",{class:"es-quota__copy"},[l("h2",{class:"es-quota__title"},"企业额度总览"),l("p",{class:"es-quota__sub"},"已分配可用额度与已消耗额度相加,可核对服务组设置额度")],-1)),RZe={class:"es-quota__grid"},PZe={class:"es-quota__hero"},MZe=Ia(()=>l("span",{class:"es-quota__hero-label"},"可分配额度",-1)),BZe={key:0,class:"es-quota__hero-warn"},LZe={class:"es-quota__stats"},OZe={class:"es-quota__stat"},DZe=Ia(()=>l("span",{class:"es-quota__stat-label"},"账户余额",-1)),VZe={class:"es-quota__stat-value"},FZe={class:"es-quota__stat"},UZe=Ia(()=>l("span",{class:"es-quota__stat-label"},"已分配可用额度",-1)),zZe={class:"es-quota__stat-value"},HZe={class:"es-quota__stat"},KZe=Ia(()=>l("span",{class:"es-quota__stat-label"},"已消耗额度",-1)),qZe={class:"es-quota__stat-value"},jZe={class:"es-quota__seats"},WZe={class:"es-quota__seats-head"},GZe=Ia(()=>l("span",{class:"es-quota__seats-label"},"成员占用",-1)),YZe={class:"es-quota__seats-count"},XZe={class:"es-quota__seats-hint"},QZe={key:0,class:"es-table-card"},JZe=Ia(()=>l("div",{class:"es-table-card__meta"},[l("span",{class:"es-table-card__title"},"成员列表"),l("span",{class:"es-table-card__total"},"加载中…")],-1)),ZZe={class:"es-table-card__scroll"},eet={class:"es-table es-table--skeleton"},tet=Ia(()=>l("thead",null,[l("tr",null,[l("th",{class:"es-table__th es-table__th--index"},"#"),l("th",{class:"es-table__th es-table__th--seat"},"成员"),l("th",{class:"es-table__th es-table__th--key"},"App Key"),l("th",{class:"es-table__th es-table__th--model"},"授权模型"),l("th",{class:"es-table__th es-table__th--quota"},"额度"),l("th",{class:"es-table__th es-table__th--time"},"创建时间"),l("th",{class:"es-table__th es-table__th--actions"},"操作")])],-1)),net={key:1,class:"es-list__state es-list__state--error"},aet=Ia(()=>l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("circle",{cx:"12",cy:"12",r:"10"}),l("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),l("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})],-1)),set=Ia(()=>l("strong",null,"加载失败",-1)),oet={key:2,class:"es-table-card"},ret={class:"es-table-card__top"},iet={class:"es-table-card__meta"},cet=Ia(()=>l("span",{class:"es-table-card__title"},"成员列表",-1)),uet={class:"es-table-card__total"},det={class:"es-list__field"},fet={class:"es-list__field"},pet=Ia(()=>l("button",{type:"submit",class:"es-list__btn es-list__btn--primary"},"查询",-1)),vet={key:0,class:"es-list__state es-list__state--empty"},het=Ia(()=>l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"})],-1)),met=Ia(()=>l("strong",null,"还没有可用的成员",-1)),get=Ia(()=>l("span",null,"批量新增成员后即可按模型维度发放 API Key,并在详情页查看授权范围与凭证预览。",-1)),_et=[het,met,get],yet={key:1,class:"es-table-card__scroll"},bet={class:"es-table"},wet=Ia(()=>l("thead",null,[l("tr",null,[l("th",{class:"es-table__th es-table__th--index"},"#"),l("th",{class:"es-table__th es-table__th--seat"},"成员"),l("th",{class:"es-table__th es-table__th--key"},"App Key"),l("th",{class:"es-table__th es-table__th--model"},"授权模型"),l("th",{class:"es-table__th es-table__th--quota"},"额度"),l("th",{class:"es-table__th es-table__th--time"},"创建时间"),l("th",{class:"es-table__th es-table__th--actions"},"操作")])],-1)),Cet={class:"es-table__td es-table__td--index"},ket={class:"es-table__index"},Eet={class:"es-table__td es-table__td--seat"},$et={class:"es-table__seat"},xet=["onClick"],Tet=Ia(()=>l("i",{class:"es-table__status-dot"},null,-1)),Iet={class:"es-table__td es-table__td--key"},Aet={class:"es-table__key"},Net=["data-visible"],Ret={class:"es-table__key-actions"},Pet=["aria-label","disabled","onClick"],Met=["innerHTML"],Bet=["disabled","onClick"],Let=["innerHTML"],Oet=["disabled","onClick"],Det=["innerHTML"],Vet={class:"es-table__td es-table__td--model"},Fet={class:"es-table__model-count"},Uet=Ia(()=>l("em",null,"个",-1)),zet={class:"es-table__td es-table__td--quota"},Het={class:"es-table__quota"},Ket={class:"es-table__quota-top"},qet={class:"es-table__quota-limit"},jet={class:"es-table__quota-remain"},Wet={key:1,class:"es-table__quota-empty"},Get=["aria-label","disabled","onClick"],Yet=["innerHTML"],Xet={class:"es-table__td es-table__td--time"},Qet={class:"es-table__time"},Jet={class:"es-table__td es-table__td--actions"},Zet={class:"es-table__actions"},ett=["onClick"],ttt=["onClick"],ntt=["disabled","onClick"],att=["disabled","onClick"],stt=["disabled","onClick"],ott={key:3,class:"es-list__pagination"},rtt={key:4,class:"es-list__dialog-mask","data-testid":"enterprise-seat-reset-dialog"},ltt={class:"es-list__dialog"},itt=Ia(()=>l("div",{class:"es-list__dialog-copy"},[l("strong",null,"App Key 已重置"),l("p",null,"请立即复制并更新调用配置")],-1)),ctt={class:"es-list__reset-summary"},utt={class:"es-list__reset-item","data-testid":"enterprise-seat-reset-summary-item"},dtt=Ia(()=>l("dt",null,"App ID",-1)),ftt={class:"es-list__reset-item","data-testid":"enterprise-seat-reset-summary-item"},ptt=Ia(()=>l("dt",null,"重置时间",-1)),vtt={class:"es-list__reset-key-card"},htt={class:"es-list__reset-key"},mtt=Ia(()=>l("dt",null,"新 App Key",-1)),gtt={"data-testid":"enterprise-seat-reset-key-value"},_tt=le({__name:"EnterpriseSeatListView",setup(e){const t={eye:'',eyeOff:'',copy:'',refresh:'',edit:'',plus:''},n=pn(),a=T(!1),s=T(""),o=T([]),r=T(0),i=T(null),c=T(!1),u=T(null),d=At({pageNum:1,pageSize:10,keyword:"",status:""}),p=At({}),v=At({}),h=T(null),m=T(!1);T(!1);const g=T(null),y=ce=>{const we=(d.pageNum-1)*d.pageSize+ce+1;return String(we).padStart(2,"0")},b=ce=>Number(ce??0)===0?"0":String(ce),C=ce=>{const we=Number(ce.quotaLimit??0),Ae=Number(ce.totalConsumed??0);return we<=0?0:Math.min(100,Math.round(Ae/we*100))},k=async()=>{m.value=!0;try{h.value=await R0()}catch{}finally{m.value=!1}},S=x(()=>h.value?String(h.value.balance):"-"),$=x(()=>h.value?String(h.value.allocatedQuota):"-"),E=x(()=>h.value?String(h.value.totalConsumed):"-"),R=x(()=>h.value?String(h.value.availableQuota):"-"),A=x(()=>!h.value||Number(h.value.availableQuota)>=0?"":"已透支,请回收服务组额度或充值积分"),N=x(()=>{var Ae,Fe;const ce=Number(((Ae=h.value)==null?void 0:Ae.seatLimit)??0),we=Number(((Fe=h.value)==null?void 0:Fe.serviceGroupCount)??0);return ce<=0?0:Math.min(100,Math.round(we/ce*100))}),P=()=>{n.push({name:"enterprise-quota-logs"})},B=async ce=>{if(g.value===null)try{const{value:we}=await ua.prompt("请输入新的额度上限;不得低于已消耗额度。","修改额度上限",{inputValue:String(ce.quotaLimit??0),inputPattern:/^-?\d+(\.\d{1,6})?$/,inputErrorMessage:"请输入最多 6 位小数的数值",confirmButtonText:"保存",cancelButtonText:"取消"}),Ae=Number(we);if(!Number.isFinite(Ae)||Ae<0){rt.error("请输入不小于 0 的额度上限");return}g.value=ce.id,await ua.confirm("调整成员额度前,请确认已阅读并同意模型服务协议、模型服务用户信息处理规则和模型服务等级协议。","确认协议",{confirmButtonText:"同意并保存",cancelButtonText:"取消"}),await P0(ce.id,{quotaLimit:Ae,agreeModelServiceProtocol:!0}),rt.success("额度上限已更新"),await Promise.all([ee(),k()])}catch(we){we!=="cancel"&&we!=="close"&&rt.error(we instanceof Error?we.message:"额度上限更新失败")}finally{g.value=null}},M=T(!0),j=[10,20,50,100],F=ce=>`${ce.apiKeyPrefix}************************`,q=ce=>p[ce.id]||F(ce),L=ce=>!!p[ce],U=ce=>!!v[ce],O=ce=>{delete p[ce]},G=async ce=>{if(p[ce.id])return p[ce.id];v[ce.id]=!0;try{const we=await uw(ce.id);return p[ce.id]=we.apiKeyPlain,we.apiKeyPlain}catch{return""}finally{delete v[ce.id]}},ae=async ce=>{if(p[ce.id]){O(ce.id);return}await G(ce)},Z=async ce=>{const we=await G(ce)||p[ce.id];if(we){if(await Ki(we)){rt.success("App Key 已复制");return}rt.error("复制失败,请稍后重试")}},te=ce=>ce==="enabled"?"使用中":"已停用",ie=ce=>ce==="enabled"?"停用":"启用",oe=ce=>ce==="cancel"||ce==="close",J=async()=>{var ce;if(!((ce=u.value)!=null&&ce.apiKeyPlain)){rt.error("暂无可复制的 App Key");return}if(await Ki(u.value.apiKeyPlain)){rt.success("新 App Key 已复制"),se();return}rt.error("复制失败,请稍后重试")},ee=async()=>{a.value=!0,s.value="";try{const ce=await rw({pageNum:d.pageNum,pageSize:d.pageSize,keyword:d.keyword||void 0,status:d.status||void 0});o.value=ce.list||[],r.value=ce.total||0;const we=new Set(o.value.map(Ae=>Ae.id));Object.keys(p).forEach(Ae=>{const Fe=Number(Ae);we.has(Fe)||delete p[Fe]})}catch(ce){o.value=[],r.value=0,s.value=ce instanceof Error?ce.message:"成员列表加载失败,请稍后重试。"}finally{a.value=!1}},Q=async()=>{d.pageNum=1,await ee()},H=async()=>{d.keyword="",d.status="",d.pageNum=1,await ee()},X=async ce=>{ce!==d.pageNum&&(d.pageNum=ce,await ee())},he=async ce=>{!j.includes(ce)||ce===d.pageSize||(d.pageNum=1,d.pageSize=ce,await ee())},D=()=>{n.push({name:"enterprise-seat-create"})},Y=ce=>{n.push({name:"service-group-detail",params:{id:ce}})},ne=ce=>{n.push({name:"service-group-edit",params:{id:ce}})},re=ce=>{n.push({name:"enterprise-seat-monitor",params:{id:ce}})},se=()=>{c.value=!1,u.value=null},ke=async ce=>{const we=ce.status==="enabled"?"disabled":"enabled",Ae=we==="enabled"?"启用":"停用";try{await ua.confirm(`确认${Ae}"${ce.groupName}"吗?`,`${Ae}成员`,{confirmButtonText:Ae,cancelButtonText:"取消",type:we==="enabled"?"success":"warning"})}catch(Fe){if(oe(Fe))return;throw Fe}i.value=ce.id;try{await lw(ce.id,{status:we}),rt.success(we==="enabled"?"成员已启用":"成员已停用"),await ee()}finally{i.value=null}},ye=async ce=>{try{await ua.confirm(`删除后将无法继续使用"${ce.groupName}"的 API Key,是否继续?`,"删除成员",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"})}catch(we){if(oe(we))return;throw we}i.value=ce.id;try{await iw(ce.id),o.value.length===1&&d.pageNum>1&&(d.pageNum-=1),rt.success("成员已删除"),await ee()}finally{i.value=null}},Se=async ce=>{try{await ua.confirm(`重置后旧 App Key 会立即失效,是否继续重置"${ce.groupName}"?`,"重置 App Key",{confirmButtonText:"确认重置",cancelButtonText:"取消",type:"warning",customClass:"enterprise-seat-reset-message-box"})}catch(we){if(oe(we))return;throw we}i.value=ce.id;try{const we=await cw(ce.id);p[ce.id]=we.apiKeyPlain,u.value=we,c.value=!0,rt.success("App Key 已重置"),await ee()}finally{i.value=null}};return ft(()=>{ee(),k()}),(ce,we)=>{const Ae=Ne("el-input"),Fe=Ne("el-option"),xe=Ne("el-select"),me=Ne("el-tooltip"),Me=Ne("el-pagination"),at=gd("loading");return _(),w("section",xZe,[z(f(Wl),{eyebrow:"企业成员",title:"企业成员管理",description:"统一管理企业成员、授权模型与 API Key,减少接入成本"},{actions:W(()=>[l("button",{type:"button",class:"es-list__btn es-list__btn--primary","data-testid":"enterprise-seat-batch-create",onClick:D},[l("span",{class:"es-list__btn-icon","aria-hidden":"true",innerHTML:t.plus},null,8,TZe),Ce(" 批量新增成员 ")])]),_:1}),et((_(),w("section",IZe,[AZe,l("header",{class:"es-quota__head"},[NZe,l("div",{class:"es-quota__actions"},[l("button",{type:"button",class:"es-list__btn","data-testid":"view-enterprise-quota-logs",onClick:P},"查看额度流水")])]),l("div",RZe,[l("div",PZe,[MZe,l("strong",{class:V(["es-quota__hero-value",{"is-negative":A.value}])},I(R.value),3),A.value?(_(),w("span",BZe,I(A.value),1)):K("",!0)]),l("div",LZe,[l("div",OZe,[DZe,l("strong",VZe,I(S.value),1)]),l("div",FZe,[UZe,l("strong",zZe,I($.value),1)]),l("div",HZe,[KZe,l("strong",qZe,I(E.value),1)])]),l("div",jZe,[l("div",WZe,[GZe,l("strong",YZe,I(h.value?`${h.value.serviceGroupCount} / ${h.value.seatLimit}`:"-"),1)]),l("div",{class:V(["es-quota__seats-bar",{"is-full":N.value>=100}])},[l("i",{style:Je({width:N.value+"%"})},null,4)],2),l("span",XZe,I(h.value?`已创建 ${h.value.serviceGroupCount} 个,上限 ${h.value.seatLimit} 个`:"暂未加载"),1)])])])),[[at,m.value]]),a.value?(_(),w("section",QZe,[JZe,l("div",ZZe,[l("table",eet,[tet,l("tbody",null,[(_(),w(_e,null,Re(6,Qe=>l("tr",{key:Qe},[(_(),w(_e,null,Re(7,It=>l("td",{key:It,class:"es-table__td"},[l("span",{class:V(["es-table__skel",`es-table__skel--col-${It}`])},null,2)])),64))])),64))])])])])):s.value?(_(),w("section",net,[aet,set,l("span",null,I(s.value),1)])):(_(),w("section",oet,[l("div",ret,[l("div",iet,[cet,l("span",uet,"共 "+I(r.value)+" 个成员",1)]),l("form",{class:"es-table-card__filters",onSubmit:qe(Q,["prevent"])},[l("label",det,[z(Ae,{modelValue:d.keyword,"onUpdate:modelValue":we[0]||(we[0]=Qe=>d.keyword=Qe),"data-testid":"enterprise-seat-keyword",class:"es-list__keyword-input",placeholder:"例如:搜索成员名称或 App ID",clearable:""},null,8,["modelValue"])]),l("label",fet,[z(xe,{modelValue:d.status,"onUpdate:modelValue":we[1]||(we[1]=Qe=>d.status=Qe),class:"es-list__status-select mall-select-red-theme","popper-class":"es-list__select-dropdown mall-select-red-dropdown"},{default:W(()=>[z(Fe,{label:"全部状态",value:""}),z(Fe,{label:"使用中",value:"enabled"}),z(Fe,{label:"已停用",value:"disabled"})]),_:1},8,["modelValue"])]),l("div",{class:"es-list__filter-actions"},[pet,l("button",{type:"button",class:"es-list__btn",onClick:H},"重置")])],32)]),o.value.length===0?(_(),w("div",vet,_et)):(_(),w("div",yet,[l("table",bet,[wet,l("tbody",null,[(_(!0),w(_e,null,Re(o.value,(Qe,It)=>(_(),w("tr",{key:Qe.id,class:V(["es-table__row",{"es-table__row--disabled":Qe.status==="disabled"}]),style:Je({"--row-i":It}),"data-testid":"enterprise-seat-card"},[l("td",Cet,[l("span",ket,I(y(It)),1)]),l("td",Eet,[l("div",$et,[l("button",{type:"button",class:"es-table__name","data-testid":"enterprise-seat-name",onClick:je=>Y(Qe.id)},I(Qe.groupName),9,xet),l("span",{class:V(["es-table__status",`is-${Qe.status}`])},[Tet,Ce(" "+I(te(Qe.status)),1)],2)])]),l("td",Iet,[l("div",Aet,[l("code",{class:"es-table__code es-table__code--key","data-visible":L(Qe.id)},I(q(Qe)),9,Net),l("div",Ret,[z(me,{content:L(Qe.id)?"隐藏 App Key":"显示 App Key",placement:"top"},{default:W(()=>[l("button",{type:"button",class:"es-table__icon-btn","data-testid":"toggle-enterprise-seat-api-key-visibility","aria-label":L(Qe.id)?"隐藏 App Key":"显示 App Key",disabled:U(Qe.id),onClick:je=>ae(Qe)},[l("span",{innerHTML:L(Qe.id)?t.eyeOff:t.eye},null,8,Met)],8,Pet)]),_:2},1032,["content"]),L(Qe.id)?(_(),ue(me,{key:0,content:"复制 App Key",placement:"top"},{default:W(()=>[l("button",{type:"button",class:"es-table__icon-btn","data-testid":"copy-enterprise-seat-api-key","aria-label":"复制 App Key",disabled:U(Qe.id),onClick:je=>Z(Qe)},[l("span",{innerHTML:t.copy},null,8,Let)],8,Bet)]),_:2},1024)):K("",!0),z(me,{content:"重置 App Key",placement:"top"},{default:W(()=>[l("button",{type:"button",class:"es-table__icon-btn es-table__icon-btn--warning","data-testid":"reset-enterprise-seat-key","aria-label":"重置 App Key",disabled:i.value===Qe.id,onClick:je=>Se(Qe)},[l("span",{innerHTML:t.refresh},null,8,Det)],8,Oet)]),_:2},1024)])])]),l("td",Vet,[l("span",Fet,[Ce(I(Qe.authorizedModelCount)+" ",1),Uet])]),l("td",zet,[l("div",Het,[l("div",Ket,[Number(Qe.quotaLimit??0)>0?(_(),w(_e,{key:0},[l("strong",qet,I(b(Qe.quotaLimit)),1),l("span",jet,"剩 "+I(Qe.remaining??0),1)],64)):(_(),w("span",Wet,"未分配额度")),l("button",{type:"button",class:"es-table__quota-edit","data-testid":"edit-enterprise-seat-quota","aria-label":`修改 ${Qe.groupName} 的额度上限`,disabled:g.value!==null,onClick:je=>B(Qe)},[l("span",{innerHTML:t.edit},null,8,Yet)],8,Get)]),Number(Qe.quotaLimit??0)>0?(_(),w("div",{key:0,class:V(["es-table__quota-bar",{"is-full":C(Qe)>=100}])},[l("i",{style:Je({width:`${C(Qe)}%`})},null,4)],2)):K("",!0)])]),l("td",Xet,[l("span",Qet,I(Qe.createTime),1)]),l("td",Jet,[l("div",Zet,[l("button",{type:"button",class:"es-table__action","data-testid":"enterprise-seat-monitor",onClick:je=>re(Qe.id)},"使用监控",8,ett),l("button",{type:"button",class:"es-table__action","data-testid":"open-enterprise-seat-detail",onClick:je=>Y(Qe.id)},"查看详情",8,ttt),l("button",{type:"button",class:"es-table__action","data-testid":"toggle-enterprise-seat-status",disabled:i.value===Qe.id,onClick:je=>ke(Qe)},I(ie(Qe.status)),9,ntt),l("button",{type:"button",class:"es-table__action","data-testid":"open-enterprise-seat-edit",disabled:i.value===Qe.id,onClick:je=>ne(Qe.id)},"编辑",8,att),l("button",{type:"button",class:"es-table__action es-table__action--danger","data-testid":"delete-enterprise-seat",disabled:i.value===Qe.id,onClick:je=>ye(Qe)},"删除",8,stt)])])],6))),128))])])]))])),M.value?(_(),w("footer",ott,[z(Me,{background:"",layout:"total, sizes, prev, pager, next","current-page":d.pageNum,"page-size":d.pageSize,"page-sizes":j,total:r.value,"popper-class":"es-list__pagination-dropdown mall-select-red-dropdown",onCurrentChange:X,onSizeChange:he},null,8,["current-page","page-size","total"])])):K("",!0),c.value&&u.value?(_(),w("div",rtt,[l("section",ltt,[l("div",{class:"es-list__dialog-head"},[itt,l("button",{type:"button",class:"es-list__dialog-close",onClick:se},"关闭")]),l("dl",ctt,[l("div",utt,[dtt,l("dd",null,I(u.value.groupCode),1)]),l("div",ftt,[ptt,l("dd",null,I(u.value.resetTime),1)])]),l("dl",vtt,[l("div",htt,[mtt,l("dd",gtt,I(u.value.apiKeyPlain),1)])]),l("div",{class:"es-list__dialog-actions"},[l("button",{type:"button",class:"es-list__btn es-list__btn--primary","data-testid":"copy-reset-enterprise-seat-key",onClick:J},"复制并关闭")])])])):K("",!0)])}}}),ytt=Ct(_tt,[["__scopeId","data-v-1d1a38fa"]]),Aa=e=>(xt("data-v-a0af5e81"),e=e(),Tt(),e),btt={class:"page-container es-create"},wtt={key:0,class:"es-create__result"},Ctt={class:"es-create__result-hero"},ktt=mn('

    Batch Complete · 批量新增成功

    批量新增成功

    ',3),Stt={class:"es-create__result-desc"},Ett=mn('
    凭证为一次性展示,请逐条复制并按成员对应保存;关闭本页后系统仅保留 API Key 前缀。
    ',1),$tt={class:"es-create__result-grid"},xtt={class:"es-create__seat-card-head"},Ttt={class:"es-create__seat-card-badge"},Itt={class:"es-create__seat-quota"},Att={class:"es-create__seat-meta"},Ntt={class:"es-create__seat-meta-item"},Rtt=Aa(()=>l("dt",null,"App ID",-1)),Ptt={class:"es-create__seat-mono"},Mtt={class:"es-create__seat-meta-item"},Btt=Aa(()=>l("dt",null,"新 API Key",-1)),Ltt={class:"es-create__seat-key"},Ott={class:"es-create__seat-mono"},Dtt=["onClick"],Vtt={class:"es-create__result-actions"},Ftt={class:"es-create__result-hint"},Utt={class:"es-create__hero"},ztt=Aa(()=>l("span",{class:"es-create__eyebrow"},"Enterprise Members · 企业成员",-1)),Htt=Aa(()=>l("h1",{class:"es-create__hero-title"},"批量新增成员",-1)),Ktt=Aa(()=>l("p",{class:"es-create__hero-desc"},"选择服务模型并一次新增多个成员,每个成员独立 API Key 与额度上限,提交后整体生效。",-1)),qtt=Aa(()=>l("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[l("line",{x1:"19",y1:"12",x2:"5",y2:"12"}),l("polyline",{points:"12 19 5 12 12 5"})],-1)),jtt={class:"es-create__steps"},Wtt={class:"es-create__step-index"},Gtt={class:"es-create__step-body"},Ytt=Aa(()=>l("strong",null,"选择模型",-1)),Xtt={class:"es-create__step-index"},Qtt={class:"es-create__step-body"},Jtt=Aa(()=>l("strong",null,"填写成员",-1)),Ztt={key:0,class:"es-create__panel es-create__panel--models"},ent={class:"es-create__panel-head"},tnt={class:"es-create__panel-title"},nnt=Aa(()=>l("strong",null,"选择服务模型",-1)),ant={key:0,class:"es-create__count"},snt={key:0,class:"es-create__empty es-create__empty--loading"},ont=Aa(()=>l("span",{class:"es-create__spinner","aria-hidden":"true"},null,-1)),rnt=Aa(()=>l("span",null,"正在加载可授权服务...",-1)),lnt=[ont,rnt],int={key:1,class:"es-create__empty es-create__empty--error"},cnt=Aa(()=>l("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","aria-hidden":"true"},[l("circle",{cx:"12",cy:"12",r:"10"}),l("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),l("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})],-1)),unt={key:2,class:"es-create__empty"},dnt={key:3,class:"es-create__model-grid"},fnt=["value"],pnt=Aa(()=>l("span",{class:"es-create__model-check","aria-hidden":"true"},[l("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3.2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"20 6 9 17 4 12"})])],-1)),vnt={class:"es-create__model-main"},hnt={class:"es-create__model-head"},mnt={class:"es-create__service-name"},gnt=["title"],_nt={class:"es-create__model-meta"},ynt={key:0,class:"es-create__model-tick"},bnt={key:4,class:"es-create__pagination"},wnt=Aa(()=>l("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[l("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),l("polyline",{points:"12 5 19 12 12 19"})],-1)),Cnt={key:1,class:"es-create__panel es-create__panel--seats"},knt={class:"es-create__panel-head"},Snt={class:"es-create__panel-title"},Ent={key:0,class:"es-create__count es-create__count--capacity"},$nt={key:1,class:"es-create__count es-create__count--full"},xnt=Aa(()=>l("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.2","stroke-linecap":"round","aria-hidden":"true"},[l("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),l("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1)),Tnt={class:"es-create__seat-list"},Int={class:"es-create__seat-row-head"},Ant={class:"es-create__seat-row-index"},Nnt={class:"es-create__seat-row-num"},Rnt=["onClick"],Pnt=Aa(()=>l("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","aria-hidden":"true"},[l("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),l("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)),Mnt={class:"es-create__seat-row-fields"},Bnt={class:"es-create__row"},Lnt=Aa(()=>l("span",{class:"es-create__label es-create__label--required"},"成员名称",-1)),Ont=["onUpdate:modelValue","onInput"],Dnt={key:0,class:"es-create__field-error"},Vnt={class:"es-create__row"},Fnt=Aa(()=>l("span",{class:"es-create__label"},"描述",-1)),Unt=["onUpdate:modelValue"],znt={class:"es-create__row"},Hnt=Aa(()=>l("span",{class:"es-create__label es-create__label--required"},"额度上限",-1)),Knt=["onUpdate:modelValue","onInput"],qnt={key:0,class:"es-create__field-error"},jnt=Aa(()=>l("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[l("line",{x1:"12",y1:"1",x2:"12",y2:"23"}),l("path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"})],-1)),Wnt={key:0,class:"es-create__quota-bar-over"},Gnt={class:"es-create__agreement"},Ynt={class:"es-create__agreement-check"},Xnt=["disabled"],Qnt=Aa(()=>l("span",{class:"es-create__agreement-box","aria-hidden":"true"},[l("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3.2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"20 6 9 17 4 12"})])],-1)),Jnt={class:"es-create__agreement-text"},Znt={key:0,class:"es-create__agreement-error"},eat={class:"es-create__wizard-actions"},tat={class:"es-create__submit-feedback"},nat={key:0,class:"es-create__submit-error"},aat=Aa(()=>l("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","aria-hidden":"true"},[l("circle",{cx:"12",cy:"12",r:"10"}),l("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),l("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})],-1)),sat={key:1,class:"es-create__submit-tip"},oat=Aa(()=>l("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","aria-hidden":"true"},[l("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),l("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),l("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})],-1)),rat={class:"es-create__submit-buttons"},lat=["disabled"],qg=50,jg=50,H$=6,iat=le({__name:"EnterpriseSeatBatchCreateView",setup(e){const t=pn(),n=T(!1),a=T(!1),s=T(""),o=T(""),r=T(!1),i=T(1),c=T(""),u=T(1),d=T(10),p=[10,20,50],v=T([]),h=T([]),m=T([{name:"",description:"",quotaLimit:""}]),g=T(!1),y=T(null),b=T(""),C=T(null),k=x(()=>{const ne=C.value;return ne?Math.max(0,ne.seatLimit-ne.serviceGroupCount):qg}),S=x(()=>Math.min(qg,k.value)),$=x(()=>{const ne=C.value;if(!ne)return 0;const re=Number(ne.availableQuota);return Number.isFinite(re)?Math.round(re*1e6):0}),E=x(()=>{let ne=0;for(const re of m.value){const se=Number(re.quotaLimit);Number.isFinite(se)&&se>0&&(ne+=Math.round(se*1e6))}return ne}),R=x(()=>C.value?E.value>$.value:!1),A=ne=>(ne/1e6).toFixed(6).replace(/\.?0+$/,""),N=ne=>{const re=ne.trim();return re?re.length>jg?`成员名称不能超过 ${jg} 字`:"":"请填写成员名称"},P=ne=>{if(ne===""||ne===null||ne===void 0)return"请填写额度上限";const re=Number(ne);return Number.isFinite(re)?re<0?"额度不能小于 0":(String(ne).split(".")[1]??"").length>H$?`最多 ${H$} 位小数`:"":"请输入有效数字"},B=ne=>N(ne.name),M=ne=>P(ne.quotaLimit),j=ne=>!!ne.nameTouched&&!!B(ne),F=ne=>!!ne.quotaTouched&&!!M(ne),q=x(()=>m.value.filter(ne=>!B(ne)&&!M(ne)).length),L=x(()=>m.value.reduce((ne,re)=>ne+(B(re)?1:0)+(M(re)?1:0),0)),U=x(()=>{for(let ne=0;nev.value.filter(ne=>h.value.includes(ne.modelName)));const O=x(()=>{const ne=c.value.trim().toLowerCase();return v.value.filter(re=>!ne||re.modelName.toLowerCase().includes(ne)||re.modelId.toLowerCase().includes(ne))}),G=x(()=>{const ne=(u.value-1)*d.value;return O.value.slice(ne,ne+d.value)}),ae=x(()=>Math.max(1,Math.ceil(O.value.length/d.value)));x(()=>m.value.length===0?!1:m.value.every(ne=>!B(ne)&&!M(ne)));const Z=async()=>{n.value=!0,s.value="";try{v.value=await vm()}catch(ne){v.value=[],s.value=ne instanceof Error?ne.message:"可授权模型加载失败,请稍后重试。"}finally{n.value=!1}},te=async()=>{try{const ne=await R0();C.value={seatLimit:ne.seatLimit,serviceGroupCount:ne.serviceGroupCount,availableQuota:ne.availableQuota}}catch{C.value=null}},ie=()=>{i.value=1},oe=()=>{if(h.value.length===0){rt.error("请至少选择一个服务模型");return}i.value=2},J=()=>{if(m.value.length>=S.value){rt.error(S.value<=0?"企业成员已达上限,请先在成员列表调整上限":`本次最多新增 ${S.value} 个成员`);return}m.value.push({name:"",description:"",quotaLimit:""})},ee=ne=>{m.value.length<=1||m.value.splice(ne,1)},Q=()=>{const ne=document.querySelector(".es-create__seat-row input.is-invalid");ne==null||ne.focus()},H=async()=>{if(a.value)return;if(r.value=!0,h.value.length===0){rt.error("请至少选择一个服务模型");return}if(m.value.length===0){rt.error("请至少添加一个成员");return}if(m.value.length>S.value){rt.error(C.value?`成员数量已达企业上限 ${C.value.seatLimit},请先在成员列表调整上限`:`本次最多新增 ${S.value} 个成员`);return}let ne=0,re="";for(let se=0;se0){rt.error(re+(ne>1?`,共 ${ne} 处待完善`:"")),Q();return}if(R.value){rt.error(`可分配额度不足:本次新增需 ${A(E.value)},企业可分配 ${A($.value)}`);return}if(!g.value){rt.error("请先勾选模型服务协议");return}a.value=!0,o.value="";try{y.value=await GRe({modelIds:h.value,seats:m.value.map(se=>({name:se.name.trim(),description:se.description.trim()||void 0,quotaLimit:Number(se.quotaLimit)})),agreeModelServiceProtocol:g.value}),i.value=3}catch(se){y.value=null,o.value=se instanceof Error?se.message:"成员保存失败,请稍后重试。"}finally{a.value=!1}},X=async ne=>{if(await Ki(ne)){b.value=ne,window.setTimeout(()=>{b.value===ne&&(b.value="")},1500);return}rt.error("复制失败,请手动复制")},he=()=>{t.push({name:"enterprise-seats"})},D=ne=>{u.value=Math.min(Math.max(ne,1),ae.value)},Y=ne=>{!p.includes(ne)||ne===d.value||(u.value=1,d.value=ne)};return ft(()=>{Z(),te()}),(ne,re)=>{const se=Ne("el-input"),ke=Ne("el-tag"),ye=Ne("el-pagination");return _(),w("section",btt,[i.value===3&&y.value?(_(),w("section",wtt,[l("header",Ctt,[ktt,l("p",Stt,[Ce(" 本次共创建 "),l("strong",null,I(y.value.createdCount),1),Ce(" 个成员。API Key 仅在本次展示明文,请立即保存以下凭证,关闭后将无法再次查看。 ")])]),Ett,l("div",$tt,[(_(!0),w(_e,null,Re(y.value.seats,Se=>(_(),w("article",{key:Se.groupCode,class:"es-create__seat-card"},[l("header",xtt,[l("span",Ttt,I(y.value.seats.indexOf(Se)+1),1),l("strong",null,I(Se.name),1),l("span",Itt,"额度 "+I(String(Se.quotaLimit)),1)]),l("dl",Att,[l("div",Ntt,[Rtt,l("dd",Ptt,I(Se.groupCode),1)]),l("div",Mtt,[Btt,l("dd",Ltt,[l("span",Ott,I(Se.apiKeyPlain),1),l("button",{type:"button",class:V(["es-create__copy-btn",{"is-copied":b.value===Se.apiKeyPlain}]),"data-testid":"copy-enterprise-seat-result-key",onClick:ce=>X(Se.apiKeyPlain)},I(b.value===Se.apiKeyPlain?"已复制":"复制"),11,Dtt)])])])]))),128))]),l("footer",Vtt,[l("span",Ftt,"共 "+I(y.value.createdCount)+" 个凭证待保存",1),l("button",{type:"button",class:"es-create__btn es-create__btn--primary","data-testid":"enterprise-seat-result-finish",onClick:he}," 完成,前往成员列表 ")])])):(_(),w(_e,{key:1},[l("header",Utt,[l("div",{class:"es-create__hero-copy"},[ztt,Htt,Ktt,l("button",{type:"button",class:"es-create__back-link",onClick:he},[qtt,Ce(" 返回成员列表 ")])]),l("ol",jtt,[l("li",{class:V({"is-active":i.value===1,"is-done":i.value>1})},[l("span",Wtt,I(i.value>1?"✓":"1"),1),l("span",Gtt,[Ytt,l("small",null,"已选 "+I(h.value.length)+" 个",1)])],2),l("li",{class:V({"is-active":i.value===2})},[l("span",Xtt,I(i.value>2?"✓":"2"),1),l("span",Qtt,[Jtt,l("small",null,"有效 "+I(q.value)+" 条,本次可新增 "+I(S.value)+" 条",1)])],2)])]),i.value===1?(_(),w("section",Ztt,[l("div",ent,[l("div",tnt,[nnt,h.value.length?(_(),w("span",ant,"已选 "+I(h.value.length)+" 个",1)):K("",!0)]),z(se,{modelValue:c.value,"onUpdate:modelValue":re[0]||(re[0]=Se=>c.value=Se),"data-testid":"enterprise-seat-model-keyword",class:"es-create__search",placeholder:"搜索服务名称或 ID",clearable:""},null,8,["modelValue"])]),n.value?(_(),w("div",snt,lnt)):s.value?(_(),w("div",int,[cnt,l("span",null,I(s.value),1)])):O.value.length===0?(_(),w("div",unt,"当前筛选条件下没有可展示的服务。")):(_(),w("div",dnt,[(_(!0),w(_e,null,Re(G.value,Se=>(_(),w("label",{key:Se.modelName,class:V(["es-create__model-card",{"is-selected":h.value.includes(Se.modelName)}])},[et(l("input",{"onUpdate:modelValue":re[1]||(re[1]=ce=>h.value=ce),type:"checkbox",value:Se.modelName},null,8,fnt),[[Mo,h.value]]),pnt,l("span",vnt,[l("span",hnt,[l("strong",mnt,I(Se.modelName),1),z(ke,{class:"es-create__status-tag",effect:"light",size:"small"},{default:W(()=>[Ce(I(Se.typeName||"未分类"),1)]),_:2},1024)]),l("span",{class:"es-create__model-summary",title:Se.summary||"暂无服务介绍。"},I(Se.summary||"暂无服务介绍。"),9,gnt),l("span",_nt,[l("small",null,"模型 ID:"+I(Se.modelName),1)])]),h.value.includes(Se.modelName)?(_(),w("span",ynt,"已选")):K("",!0)],2))),128))])),O.value.length>0?(_(),w("footer",bnt,[z(ye,{background:"",layout:"total, sizes, prev, pager, next","current-page":u.value,"page-size":d.value,"page-sizes":p,total:O.value.length,"popper-class":"es-create__pagination-dropdown mall-select-red-dropdown",onCurrentChange:D,onSizeChange:Y},null,8,["current-page","page-size","total"])])):K("",!0),l("div",{class:"es-create__wizard-actions"},[l("button",{type:"button",class:"es-create__btn es-create__btn--primary es-create__btn--next","data-testid":"enterprise-seat-step-next",onClick:oe},[Ce(" 下一步:填写成员 "),wnt])])])):(_(),w("section",Cnt,[l("div",knt,[l("div",Snt,[l("strong",null,"填写成员("+I(m.value.length)+" / "+I(S.value)+")",1),C.value&&k.value(_(),w("div",{key:ce,class:"es-create__seat-row","data-testid":"enterprise-seat-row"},[l("div",Int,[l("span",Ant,[l("span",Nnt,I(ce+1),1),Ce(" 成员 "+I(ce+1),1)]),m.value.length>1?(_(),w("button",{key:0,type:"button",class:"es-create__seat-remove","data-testid":"enterprise-seat-remove-row",onClick:we=>ee(ce)},[Pnt,Ce(" 移除 ")],8,Rnt)):K("",!0)]),l("div",Mnt,[l("label",Bnt,[Lnt,et(l("input",{"onUpdate:modelValue":we=>Se.name=we,class:V({"is-invalid":j(Se)}),maxlength:jg,type:"text",placeholder:"请输入成员名称(≤50 字)","data-testid":"enterprise-seat-name",onInput:we=>Se.nameTouched=!0},null,42,Ont),[[hn,Se.name]]),j(Se)?(_(),w("span",Dnt,I(B(Se)),1)):K("",!0)]),l("label",Vnt,[Fnt,et(l("input",{"onUpdate:modelValue":we=>Se.description=we,maxlength:"500",type:"text",placeholder:"选填,成员用途说明"},null,8,Unt),[[hn,Se.description]])]),l("label",znt,[Hnt,et(l("input",{"onUpdate:modelValue":we=>Se.quotaLimit=we,class:V({"is-invalid":F(Se)}),type:"number",step:"0.000001",min:"0",placeholder:"必填,0 表示不分配额度","data-testid":"enterprise-seat-quota",onInput:we=>Se.quotaTouched=!0},null,42,Knt),[[hn,Se.quotaLimit]]),F(Se)?(_(),w("span",qnt,I(M(Se)),1)):K("",!0)])])]))),128))]),C.value?(_(),w("div",{key:0,class:V(["es-create__quota-bar",{"is-over":R.value}])},[jnt,l("span",null,[Ce("本次分配额度 "),l("strong",null,I(A(E.value)),1),Ce(",企业可分配 "),l("strong",null,I(A($.value)),1)]),R.value?(_(),w("span",Wnt,"超出可分配额度,请调整")):K("",!0)],2)):K("",!0),l("div",Gnt,[l("label",Ynt,[et(l("input",{"onUpdate:modelValue":re[2]||(re[2]=Se=>g.value=Se),type:"checkbox","data-testid":"enterprise-seat-agreement",disabled:a.value},null,8,Xnt),[[Mo,g.value]]),Qnt,l("span",Jnt,[Ce("我已阅读并同意"),z(f(An),{class:"es-create__agreement-link",to:"/support?article=legal-model-service-agreement",target:"_blank",rel:"noopener noreferrer"},{default:W(()=>[Ce("《模型服务协议》")]),_:1}),Ce("、"),z(f(An),{class:"es-create__agreement-link",to:"/support?article=legal-model-service-information-processing-rules",target:"_blank",rel:"noopener noreferrer"},{default:W(()=>[Ce("《模型服务用户信息处理规则》")]),_:1}),Ce("、"),z(f(An),{class:"es-create__agreement-link",to:"/support?article=legal-model-service-level-agreement",target:"_blank",rel:"noopener noreferrer"},{default:W(()=>[Ce("《模型服务等级协议》")]),_:1})])]),r.value&&!g.value?(_(),w("p",Znt,"请先勾选模型服务协议")):K("",!0)]),l("div",eat,[l("div",tat,[o.value?(_(),w("div",nat,[aat,l("span",null,"提交未完成:"+I(o.value),1)])):L.value>0&&m.value.length>0?(_(),w("div",sat,[oat,l("span",null,"还有 "+I(L.value)+" 处待完善:"+I(U.value),1)])):K("",!0)]),l("div",rat,[l("button",{type:"button",class:"es-create__btn",onClick:ie},"上一步"),l("button",{type:"button",class:"es-create__btn es-create__btn--primary es-create__btn--next","data-testid":"enterprise-seat-batch-submit",disabled:a.value,onClick:H},I(a.value?"提交中...":`提交 ${q.value} 个成员`),9,lat)])])]))],64))])}}}),cat=Ct(iat,[["__scopeId","data-v-a0af5e81"]]),pa=e=>(xt("data-v-b5e4743b"),e=e(),Tt(),e),uat={class:"seat-monitor page-container"},dat={class:"seat-monitor__header"},fat=pa(()=>l("div",{class:"seat-monitor__header-accent","aria-hidden":"true"},null,-1)),pat={class:"seat-monitor__title-bar"},vat=pa(()=>l("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"15 18 9 12 15 6"})],-1)),hat={class:"seat-monitor__heading"},mat=pa(()=>l("span",{class:"seat-monitor__eyebrow"},"企业成员 · Token 使用监控",-1)),gat={class:"seat-monitor__title"},_at={key:0,class:"seat-monitor__meta"},yat=mn(' App ID ',1),bat={class:"seat-monitor__code"},wat={class:"seat-monitor__controls"},Cat=pa(()=>l("span",{class:"seat-monitor__range-label"},"时间范围",-1)),kat={class:"seat-monitor__dropdown"},Sat=pa(()=>l("polyline",{points:"6 9 12 15 18 9"},null,-1)),Eat=[Sat],$at=["onClick"],xat={key:0,class:"seat-monitor__loading","data-testid":"seat-monitor-loading"},Tat={class:"seat-monitor__metrics"},Iat=pa(()=>l("span",{class:"seat-monitor__skel seat-monitor__skel--icon"},null,-1)),Aat=pa(()=>l("div",{class:"seat-monitor__metric-body"},[l("span",{class:"seat-monitor__skel seat-monitor__skel--label"}),l("span",{class:"seat-monitor__skel seat-monitor__skel--value"})],-1)),Nat=[Iat,Aat],Rat=pa(()=>l("div",{class:"seat-monitor__section seat-monitor__section--skeleton"},[l("span",{class:"seat-monitor__skel seat-monitor__skel--chart-title"}),l("span",{class:"seat-monitor__skel seat-monitor__skel--chart"})],-1)),Pat={key:1,class:"seat-monitor__error","data-testid":"seat-monitor-error"},Mat=pa(()=>l("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("circle",{cx:"12",cy:"12",r:"10"}),l("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),l("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})],-1)),Bat=pa(()=>l("strong",null,"监控数据加载失败",-1)),Lat={class:"seat-monitor__metrics"},Oat={class:"seat-monitor__metric-card",style:{"--i":0}},Dat=pa(()=>l("span",{class:"seat-monitor__metric-bar","aria-hidden":"true"},null,-1)),Vat=pa(()=>l("span",{class:"seat-monitor__metric-icon","aria-hidden":"true"},[l("svg",{width:"19",height:"19",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})])],-1)),Fat={class:"seat-monitor__metric-body"},Uat=pa(()=>l("span",{class:"seat-monitor__metric-label"},"总请求数",-1)),zat={class:"seat-monitor__metric-value"},Hat={class:"seat-monitor__metric-card",style:{"--i":1}},Kat=mn('',2),qat={class:"seat-monitor__metric-body"},jat=pa(()=>l("span",{class:"seat-monitor__metric-label"},"总 Token",-1)),Wat={class:"seat-monitor__metric-value"},Gat={class:"seat-monitor__metric-card",style:{"--i":2}},Yat=pa(()=>l("span",{class:"seat-monitor__metric-bar","aria-hidden":"true"},null,-1)),Xat=pa(()=>l("span",{class:"seat-monitor__metric-icon seat-monitor__metric-icon--deep","aria-hidden":"true"},[l("svg",{width:"19",height:"19",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})])],-1)),Qat={class:"seat-monitor__metric-body"},Jat=pa(()=>l("span",{class:"seat-monitor__metric-label"},"总积分",-1)),Zat={class:"seat-monitor__metric-value"},est={class:"seat-monitor__metric-card",style:{"--i":3}},tst=mn('',2),nst={class:"seat-monitor__metric-body"},ast=pa(()=>l("span",{class:"seat-monitor__metric-label"},"平均耗时",-1)),sst={class:"seat-monitor__metric-value"},ost={class:"seat-monitor__section",style:{"--i":4}},rst=pa(()=>l("div",{class:"seat-monitor__section-top","aria-hidden":"true"},null,-1)),lst={class:"seat-monitor__section-header"},ist={class:"seat-monitor__section-copy"},cst=pa(()=>l("h2",{class:"seat-monitor__section-title"},"Token 使用趋势",-1)),ust={key:0,class:"seat-monitor__trend-granularity"},dst=mn('
    输入 Token输出 Token缓存 Token
    ',1),fst={class:"seat-monitor__trend-chart-container"},pst=["viewBox","width"],vst=mn('',1),hst=["x1","y1","x2","y2"],mst=["x","y"],gst=["x1","y1","x2","y2"],_st=["x1","y1","x2","y2"],yst=["x","y"],bst=["x1","y1","x2","y2"],wst=["d"],Cst=["d"],kst=["d"],Sst=["points"],Est=["points"],$st=["points"],xst=["cx","cy","r","fill","stroke","stroke-width"],Tst=["cx","cy","r","fill","stroke","stroke-width"],Ist=["cx","cy","r","fill","stroke","stroke-width"],Ast={key:1,class:"seat-monitor__empty-chart"},Nst=pa(()=>l("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[l("line",{x1:"12",y1:"20",x2:"12",y2:"10"}),l("line",{x1:"18",y1:"20",x2:"18",y2:"4"}),l("line",{x1:"6",y1:"20",x2:"6",y2:"16"})],-1)),Rst=pa(()=>l("strong",null,"暂无数据",-1)),Pst=pa(()=>l("span",null,"该时间范围内没有 Token 使用记录,可切换时间范围查看。",-1)),Mst=[Nst,Rst,Pst],Bst={class:"seat-monitor__trend-tooltip-time"},Lst={class:"seat-monitor__trend-tooltip-row"},Ost=pa(()=>l("span",{class:"seat-monitor__legend-dot",style:{background:"var(--mall-primary)"}},null,-1)),Dst={class:"seat-monitor__trend-tooltip-row"},Vst=pa(()=>l("span",{class:"seat-monitor__legend-dot",style:{background:"var(--mall-accent)"}},null,-1)),Fst={class:"seat-monitor__trend-tooltip-row"},Ust=pa(()=>l("span",{class:"seat-monitor__legend-dot",style:{background:"var(--seat-cached)"}},null,-1)),of=280,K$=760,zst=le({__name:"EnterpriseSeatUsageMonitorView",setup(e){const t=[{key:"today",label:"今日"},{key:"24h",label:"近 24 小时"},{key:"yesterday",label:"昨日"},{key:"7d",label:"近 7 天"},{key:"14d",label:"近 14 天"},{key:"30d",label:"近 30 天"},{key:"thisMonth",label:"本月"},{key:"lastMonth",label:"上月"}],n=fa(),a=pn(),s=x(()=>Number(n.params.id)),o=T("7d"),r=T(!1),i=x(()=>{var H;return((H=t.find(X=>X.key===o.value))==null?void 0:H.label)??"近 7 天"}),c=T(!1),u=T(""),d=T(""),p=T(""),v=T(null),h=T(null),m=x(()=>{const H=new Date,X=he=>{const D=Y=>String(Y).padStart(2,"0");return`${he.getFullYear()}-${D(he.getMonth()+1)}-${D(he.getDate())} ${D(he.getHours())}:${D(he.getMinutes())}:${D(he.getSeconds())}`};switch(o.value){case"today":{const he=new Date(H.getFullYear(),H.getMonth(),H.getDate());return{start:X(he),end:X(H)}}case"24h":{const he=new Date(H.getTime()-864e5);return{start:X(he),end:X(H)}}case"yesterday":{const he=new Date(H.getFullYear(),H.getMonth(),H.getDate()-1),D=new Date(H.getFullYear(),H.getMonth(),H.getDate());return{start:X(he),end:X(D)}}case"7d":{const he=new Date(H.getTime()-6048e5);return{start:X(he),end:X(H)}}case"14d":{const he=new Date(H.getTime()-12096e5);return{start:X(he),end:X(H)}}case"30d":{const he=new Date(H.getTime()-2592e6);return{start:X(he),end:X(H)}}case"thisMonth":{const he=new Date(H.getFullYear(),H.getMonth(),1);return{start:X(he),end:X(H)}}case"lastMonth":{const he=new Date(H.getFullYear(),H.getMonth()-1,1),D=new Date(H.getFullYear(),H.getMonth(),1);return{start:X(he),end:X(D)}}}return{start:"",end:""}});async function g(){if(s.value){c.value=!0,u.value="";try{const[H,X,he]=await Promise.all([dw(s.value),lBe(s.value,m.value.start,m.value.end),iBe(s.value,m.value.start,m.value.end)]);d.value=H.groupName,p.value=H.groupCode,v.value=X,h.value=he}catch(H){v.value=null,h.value=null,u.value=H instanceof Error?H.message:"监控数据加载失败,请稍后重试"}finally{c.value=!1}}}function y(H){o.value=H,r.value=!1}function b(){a.push({name:"enterprise-seats"})}Te(o,()=>g()),ft(()=>g());function C(H){return H==null?"--":H>=1e9?(H/1e9).toFixed(2)+"B":H>=1e6?(H/1e6).toFixed(2)+"M":H>=1e3?(H/1e3).toFixed(2)+"K":String(H)}function k(H){return H==null?"--":Number(H).toFixed(2)}const S=x(()=>{var H;return((H=h.value)==null?void 0:H.points)??[]}),$=x(()=>{var Fe;const H=S.value;if(H.length===0)return[];if((((Fe=h.value)==null?void 0:Fe.granularity)??"day")==="hour")return H;const he=[],D=H[0],Y=H[H.length-1],[ne,re,se]=D.timestamp.substring(0,10).split("-").map(Number),[ke,ye,Se]=Y.timestamp.substring(0,10).split("-").map(Number),ce=new Map(H.map(xe=>[xe.timestamp.substring(0,10),xe])),we=new Date(ne,re-1,se),Ae=new Date(ke,ye-1,Se);for(;we<=Ae;){const xe=we.getFullYear(),me=String(we.getMonth()+1).padStart(2,"0"),Me=String(we.getDate()).padStart(2,"0"),at=`${xe}-${me}-${Me}`,Qe=ce.get(at);Qe?he.push(Qe):he.push({timestamp:at,inputTokens:0,outputTokens:0,cachedTokens:0,consumePoints:0}),we.setDate(we.getDate()+1)}return he}),E=x(()=>Math.max(...$.value.map(X=>Math.max(X.inputTokens,X.outputTokens,X.cachedTokens)),1)),R={left:56,right:16,top:20,bottom:38},A=of-R.top-R.bottom,N=x(()=>{const H=$.value.length;return H<=1?K$:Math.max(H*40,K$)}),P=x(()=>N.value-R.left-R.right);function B(H){const X=$.value.length;return X<=1?R.left+P.value/2:R.left+H/(X-1)*P.value}function M(H){return R.top+A-H/E.value*A}const j=x(()=>$.value.map((H,X)=>`${B(X)},${M(H.inputTokens)}`).join(" ")),F=x(()=>$.value.map((H,X)=>`${B(X)},${M(H.outputTokens)}`).join(" ")),q=x(()=>$.value.map((H,X)=>`${B(X)},${M(H.cachedTokens)}`).join(" ")),L=R.top+A,U=x(()=>{const H=$.value.length;return H===0?"":`${j.value} L ${B(H-1)},${L} L ${B(0)},${L} Z`}),O=x(()=>{const H=$.value.length;return H===0?"":`${F.value} L ${B(H-1)},${L} L ${B(0)},${L} Z`}),G=x(()=>{const H=$.value.length;return H===0?"":`${q.value} L ${B(H-1)},${L} L ${B(0)},${L} Z`}),ae=x(()=>{const H=E.value;return[0,.25,.5,.75,1].map(X=>({label:C(X*H),y:R.top+A-X*A}))});function Z(H){if(H.includes(" ")){const[X,he]=H.split(" ");return`${X.slice(5)} ${he.slice(0,5)}`}return H.slice(5)}const te=x(()=>{const H=$.value.length;if(H===0)return[];const X=Math.max(1,Math.ceil(H/10)),he=[];for(let D=0;D1&&he.length>0&&he[he.length-1].x!==B(H-1)&&he.push({x:B(H-1),label:Z($.value[H-1].timestamp)}),he}),ie=T(null),oe=T(null);function J(H){const X=oe.value;if(!X||$.value.length===0)return;const he=X.getBoundingClientRect(),D=Math.min(he.width/N.value,he.height/of),Y=N.value*D,ne=(he.width-Y)/2,se=(H.clientX-he.left-ne)/D,ke=$.value.length;let ye=0,Se=Math.abs(se-B(0));for(let ce=1;ce{if(ie.value===null)return null;const H=$.value[ie.value];if(!H)return null;const X=oe.value,he=X==null?void 0:X.getBoundingClientRect();if(!he)return null;const D=Math.min(he.width/N.value,he.height/of),re=((he.width-N.value*D)/2+B(ie.value)*D)/he.width*100;return{leftPct:Math.max(15,Math.min(85,re)),timestamp:H.timestamp,inputTokens:C(H.inputTokens),outputTokens:C(H.outputTokens),cachedTokens:C(H.cachedTokens)}});return(H,X)=>{var he,D,Y,ne,re;return _(),w("div",uat,[l("header",dat,[fat,l("div",pat,[l("button",{type:"button",class:"seat-monitor__back",onClick:b},[vat,Ce(" 返回成员列表 ")]),l("div",hat,[mat,l("h1",gat,I(d.value||"成员使用监控"),1),p.value?(_(),w("div",_at,[yat,l("code",bat,I(p.value),1)])):K("",!0)])])]),l("div",wat,[Cat,l("div",kat,[l("button",{class:"seat-monitor__dropdown-trigger",onClick:X[0]||(X[0]=se=>r.value=!r.value)},[l("span",null,I(i.value),1),(_(),w("svg",{class:V(["seat-monitor__dropdown-arrow",{open:r.value}]),width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Eat,2))]),r.value?(_(),w("div",{key:0,class:"seat-monitor__dropdown-menu",onClick:X[1]||(X[1]=qe(()=>{},["stop"]))},[(_(),w(_e,null,Re(t,se=>l("button",{key:se.key,class:V(["seat-monitor__dropdown-item",{active:o.value===se.key}]),onClick:ke=>y(se.key)},I(se.label),11,$at)),64))])):K("",!0)]),r.value?(_(),w("div",{key:0,class:"seat-monitor__dropdown-overlay",onClick:X[2]||(X[2]=se=>r.value=!1)})):K("",!0)]),c.value?(_(),w("div",xat,[l("div",Tat,[(_(),w(_e,null,Re(4,se=>l("div",{key:se,class:"seat-monitor__metric-card seat-monitor__metric-card--skeleton"},Nat)),64))]),Rat])):u.value?(_(),w("div",Pat,[Mat,Bat,l("span",null,I(u.value),1),l("button",{type:"button",class:"seat-monitor__retry",onClick:g},"重新加载")])):(_(),w(_e,{key:2},[l("div",Lat,[l("div",Oat,[Dat,Vat,l("div",Fat,[Uat,l("strong",zat,I(((he=v.value)==null?void 0:he.totalRequests)??"--"),1)])]),l("div",Hat,[Kat,l("div",qat,[jat,l("strong",Wat,I(C((((D=v.value)==null?void 0:D.totalInputTokens)??0)+(((Y=v.value)==null?void 0:Y.totalOutputTokens)??0))),1)])]),l("div",Gat,[Yat,Xat,l("div",Qat,[Jat,l("strong",Zat,I(k((ne=v.value)==null?void 0:ne.totalConsumePoints)),1)])]),l("div",est,[tst,l("div",nst,[ast,l("strong",sst,I((re=v.value)!=null&&re.avgLatencyMs?v.value.avgLatencyMs+"ms":"--"),1)])])]),l("section",ost,[rst,l("header",lst,[l("div",ist,[cst,h.value?(_(),w("span",ust,I(h.value.granularity==="hour"?"按小时":"按天"),1)):K("",!0)]),dst]),l("div",fst,[$.value.length>0?(_(),w("svg",{key:0,ref_key:"trendSvgRef",ref:oe,class:"seat-monitor__chart",viewBox:`0 0 ${N.value} ${of}`,width:N.value,height:of,preserveAspectRatio:"xMidYMid meet",onMousemove:J,onMouseleave:ee},[vst,(_(!0),w(_e,null,Re(ae.value,se=>(_(),w("g",{key:se.y},[l("line",{x1:R.left,y1:se.y,x2:N.value-R.right,y2:se.y,stroke:"#eef0f3","stroke-width":"1"},null,8,hst),l("text",{x:R.left-8,y:se.y+4,"text-anchor":"end","font-size":"11",fill:"#9ca3af"},I(se.label),9,mst)]))),128)),l("line",{x1:R.left,y1:R.top+A,x2:N.value-R.right,y2:R.top+A,stroke:"#e5e7eb","stroke-width":"1"},null,8,gst),l("line",{x1:R.left,y1:R.top,x2:R.left,y2:R.top+A,stroke:"#e5e7eb","stroke-width":"1"},null,8,_st),(_(!0),w(_e,null,Re(te.value,se=>(_(),w("g",{key:se.x},[l("text",{x:se.x,y:R.top+A+20,"text-anchor":"middle","font-size":"11",fill:"#9ca3af"},I(se.label),9,yst)]))),128)),ie.value!==null?(_(),w("line",{key:0,x1:B(ie.value),y1:R.top,x2:B(ie.value),y2:R.top+A,stroke:"var(--mall-primary-25)","stroke-width":"1","stroke-dasharray":"4 2"},null,8,bst)):K("",!0),l("path",{d:G.value,fill:"url(#seat-area-cached)"},null,8,wst),l("path",{d:O.value,fill:"url(#seat-area-output)"},null,8,Cst),l("path",{d:U.value,fill:"url(#seat-area-input)"},null,8,kst),l("polyline",{fill:"none",stroke:"var(--mall-primary)","stroke-width":"2",points:j.value},null,8,Sst),l("polyline",{fill:"none",stroke:"var(--mall-accent)","stroke-width":"2",points:F.value},null,8,Est),l("polyline",{fill:"none",stroke:"var(--seat-cached)","stroke-width":"2",points:q.value},null,8,$st),(_(!0),w(_e,null,Re($.value,(se,ke)=>(_(),w("g",{key:ke},[l("circle",{cx:B(ke),cy:M(se.inputTokens),r:ie.value===ke?4.5:2.5,fill:ie.value===ke?"#ffffff":"var(--mall-primary)",stroke:ie.value===ke?"var(--mall-primary)":"none","stroke-width":ie.value===ke?2:0,class:V({"seat-monitor__chart-dot--hover":ie.value===ke})},null,10,xst),l("circle",{cx:B(ke),cy:M(se.outputTokens),r:ie.value===ke?4.5:2.5,fill:ie.value===ke?"#ffffff":"var(--mall-accent)",stroke:ie.value===ke?"var(--mall-accent)":"none","stroke-width":ie.value===ke?2:0},null,8,Tst),l("circle",{cx:B(ke),cy:M(se.cachedTokens),r:ie.value===ke?4.5:2.5,fill:ie.value===ke?"#ffffff":"var(--seat-cached)",stroke:ie.value===ke?"var(--seat-cached)":"none","stroke-width":ie.value===ke?2:0},null,8,Ist)]))),128))],40,pst)):(_(),w("div",Ast,Mst)),Q.value?(_(),w("div",{key:2,class:"seat-monitor__trend-tooltip",style:Je({left:Q.value.leftPct+"%"})},[l("div",Bst,I(Z(Q.value.timestamp)),1),l("div",Lst,[Ost,Ce("输入 "),l("em",null,I(Q.value.inputTokens),1)]),l("div",Dst,[Vst,Ce("输出 "),l("em",null,I(Q.value.outputTokens),1)]),l("div",Fst,[Ust,Ce("缓存 "),l("em",null,I(Q.value.cachedTokens),1)])],4)):K("",!0)])])],64))])}}}),Hst=Ct(zst,[["__scopeId","data-v-b5e4743b"]]),Kst={class:"compute-features"},qst={class:"page-container"},jst={class:"compute-features__icon-wrap"},Wst={class:"compute-features__icon-ring"},Gst={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},Yst=["d"],Xst={class:"compute-features__text"},Qst=le({__name:"ComputeFeatures",props:{features:{default:()=>[{icon:"reliable",title:"安全可靠",description:"即开即用,稳定可靠"},{icon:"performance",title:"高性能算力",description:"主流显卡,算力充沛"},{icon:"elastic",title:"弹性扩展",description:"按需订购,灵活配置"},{icon:"service",title:"专属服务",description:"专人跟进,定制方案"}]}},setup(e){const t=e,n={reliable:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z",performance:"M13 2L3 14h9l-1 8 10-12h-9l1-8z",elastic:"M2 12h20 M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z",service:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2 M12 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8z"};return(a,s)=>(_(),w("section",Kst,[l("div",qst,[l("div",{class:"compute-features__inner",style:Je({gridTemplateColumns:`repeat(${t.features.length}, minmax(0, 1fr))`})},[(_(!0),w(_e,null,Re(a.features,(o,r)=>(_(),w("div",{key:o.title,class:V(["compute-features__item",`compute-features__item--${r+1}`])},[l("div",jst,[l("div",Wst,[(_(),w("svg",Gst,[l("path",{d:n[o.icon]},null,8,Yst)]))])]),l("div",Xst,[l("h3",null,I(o.title),1),l("p",null,I(o.description),1)])],2))),128))],4)])]))}}),mw=Ct(Qst,[["__scopeId","data-v-637be3ed"]]),gs=e=>(xt("data-v-3d11412b"),e=e(),Tt(),e),Jst={class:"compute-marketplace"},Zst=mn('
    71 TFLOPS165 TFLOPS313 TFLOPS24G HBM
    GPU COMPUTE
    PCIe 4.0 x16AI ACCELERATOR
    GPU Compute Marketplace

    算力市场

    弹性云主机、GPU云主机、对象存储按月订阅,智算一体机、智盒私有化交付,覆盖从开发调测到训练推理的全场景算力需求

    ',1),eot={class:"page-container compute-content"},tot=gs(()=>l("h2",{class:"section-title"},"算力产品",-1)),not={class:"spec-zone"},aot=gs(()=>l("div",{class:"spec-zone__sidebar spec-zone__sidebar--personal"},[l("span",{class:"spec-zone__label"},"弹性云算力")],-1)),sot={class:"spec-zone__cards"},oot=gs(()=>l("div",{class:"spec-card__ribbon"},null,-1)),rot={class:"spec-card__top"},lot={class:"spec-card__title"},iot={class:"spec-card__subtitle"},cot={class:"spec-card__specs"},uot={class:"spec-card__spec-icon"},dot={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},fot=["d"],pot={class:"spec-card__spec-label"},vot={class:"spec-card__spec-value"},hot={class:"spec-card__footer"},mot={class:"spec-card__price"},got=gs(()=>l("span",{class:"spec-card__price-symbol"},"¥",-1)),_ot={class:"spec-card__price-num"},yot={class:"spec-card__price-unit"},bot=["onClick"],wot=gs(()=>l("span",{class:"spec-card__btn-text"},"立即咨询",-1)),Cot=gs(()=>l("span",{class:"spec-card__btn-glow"},null,-1)),kot=[wot,Cot],Sot={class:"spec-zone"},Eot=gs(()=>l("div",{class:"spec-zone__sidebar spec-zone__sidebar--enterprise"},[l("span",{class:"spec-zone__label"},"私有化智算")],-1)),$ot={class:"spec-zone__cards spec-zone__cards--two-rows"},xot=gs(()=>l("div",{class:"spec-card__ribbon"},null,-1)),Tot={class:"spec-card__top"},Iot={class:"spec-card__title"},Aot={class:"spec-card__subtitle"},Not={class:"spec-card__specs"},Rot={class:"spec-card__spec-icon"},Pot={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},Mot=["d"],Bot={class:"spec-card__spec-label"},Lot={class:"spec-card__spec-value"},Oot={class:"spec-card__footer"},Dot={class:"spec-card__price"},Vot=gs(()=>l("span",{class:"spec-card__price-symbol"},"¥",-1)),Fot={class:"spec-card__price-num"},Uot={class:"spec-card__price-unit"},zot=["onClick"],Hot=gs(()=>l("span",{class:"spec-card__btn-text"},"立即咨询",-1)),Kot=gs(()=>l("span",{class:"spec-card__btn-glow"},null,-1)),qot=[Hot,Kot],jot=gs(()=>l("div",{class:"spec-card__ribbon"},null,-1)),Wot={class:"spec-card__top"},Got={class:"spec-card__title"},Yot={class:"spec-card__subtitle"},Xot={class:"spec-card__specs"},Qot={class:"spec-card__spec-icon"},Jot={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},Zot=["d"],ert={class:"spec-card__spec-label"},trt={class:"spec-card__spec-value"},nrt={class:"spec-card__footer"},art={class:"spec-card__price"},srt=gs(()=>l("span",{class:"spec-card__price-symbol"},"¥",-1)),ort={class:"spec-card__price-num"},rrt={class:"spec-card__price-unit"},lrt=["onClick"],irt=gs(()=>l("span",{class:"spec-card__btn-text"},"立即咨询",-1)),crt=gs(()=>l("span",{class:"spec-card__btn-glow"},null,-1)),urt=[irt,crt],drt={class:"compute-cta"},frt=gs(()=>l("div",{class:"compute-cta__glare"},null,-1)),prt=gs(()=>l("h2",null,"需要定制化算力方案?",-1)),vrt=gs(()=>l("p",null,"提交意向单,获取专属算力配置方案和报价",-1)),hrt={class:"compute-cta__actions"},mrt=le({__name:"ComputeMarketplaceView",setup(e){const t=pn(),n=[{icon:"performance",title:"弹性云算力即开即用",description:"弹性云主机、GPU云主机、对象存储按月订阅,随时获取、弹性可扩展,覆盖网站应用、图形渲染、模型推理、数据备份等场景"},{icon:"service",title:"私有化智算开箱即用",description:"智算一体机、智盒软硬一体交付,深度融合DeepSeek、Qwen系列大模型,全国产化、快速交付、零管理节点,助力政企快速建立AI应用"},{icon:"elastic",title:"多形态灵活适配",description:"从桌面级智盒到机柜级一体机,从通用ECS到GPU云主机,按需选择公有云订阅或私有化采购,匹配不同行业与预算"}],a=T([]),s=T([]),o=T(!0),r=T(""),i=(p,v)=>({...p,btnVariant:v}),c=async()=>{o.value=!0,r.value="";try{const p=await HA();a.value=p.personalProducts.map((v,h)=>i(v,h===2?"deep-red-gold":"red-gold")),s.value=p.enterpriseProducts.map(v=>i(v,"red-gold"))}catch(p){a.value=[],s.value=[],r.value=p instanceof Error?p.message:"算力产品加载失败,请稍后重试。"}finally{o.value=!1}},u={bolt:"M13 2L3 14h9l-1 8 10-12h-9l1-8z",memory:"M4 6h16v12H4z M9 6V4h6v2",chip:"M4 4h16v16H4z M9 9h6v6H9z M9 1v3 M15 1v3 M9 20v3 M15 20v3 M1 9h3 M1 14h3 M20 9h3 M20 14h3"},d=p=>{t.push({name:"intention-create",query:{type:"product_inquiry",sourceType:"compute_product",sourceProductKey:p.productKey}})};return ft(()=>{c()}),(p,v)=>{const h=Ne("RouterLink");return _(),w("div",Jst,[Zst,z(f(mw),{features:n}),l("div",eot,[tot,o.value?(_(),ue(pl,{key:0,title:"正在加载算力产品..."})):r.value?(_(),ue(fl,{key:1,title:r.value,onRetry:c},null,8,["title"])):(_(),w(_e,{key:2},[l("section",not,[aot,l("div",sot,[(_(!0),w(_e,null,Re(a.value,m=>(_(),w("article",{key:m.productKey,class:"spec-card spec-card--personal"},[oot,l("div",rot,[l("h3",lot,I(m.name),1),l("p",iot,I(m.subtitle),1)]),l("div",cot,[(_(!0),w(_e,null,Re(m.specs,g=>(_(),w("div",{key:g.label,class:"spec-card__spec"},[l("div",uot,[(_(),w("svg",dot,[l("path",{d:u[g.iconCode]},null,8,fot)]))]),l("span",pot,I(g.label),1),l("span",vot,I(g.value),1)]))),128))]),l("div",hot,[l("div",mot,[got,l("span",_ot,I(m.price),1),l("span",yot,"/"+I(m.priceUnit),1)]),l("button",{class:V(["spec-card__btn",`spec-card__btn--${m.btnVariant}`]),type:"button",onClick:g=>d(m)},kot,10,bot)])]))),128))])]),l("section",Sot,[Eot,l("div",$ot,[(_(!0),w(_e,null,Re(s.value.slice(0,3),m=>(_(),w("article",{key:m.productKey,class:"spec-card spec-card--enterprise"},[xot,l("div",Tot,[l("h3",Iot,I(m.name),1),l("p",Aot,I(m.subtitle),1)]),l("div",Not,[(_(!0),w(_e,null,Re(m.specs,g=>(_(),w("div",{key:g.label,class:"spec-card__spec"},[l("div",Rot,[(_(),w("svg",Pot,[l("path",{d:u[g.iconCode]},null,8,Mot)]))]),l("span",Bot,I(g.label),1),l("span",Lot,I(g.value),1)]))),128))]),l("div",Oot,[l("div",Dot,[Vot,l("span",Fot,I(m.price),1),l("span",Uot,"/"+I(m.priceUnit),1)]),l("button",{class:V(["spec-card__btn",`spec-card__btn--${m.btnVariant}`]),type:"button",onClick:g=>d(m)},qot,10,zot)])]))),128)),(_(!0),w(_e,null,Re(s.value.slice(3),m=>(_(),w("article",{key:m.productKey,class:"spec-card spec-card--enterprise"},[jot,l("div",Wot,[l("h3",Got,I(m.name),1),l("p",Yot,I(m.subtitle),1)]),l("div",Xot,[(_(!0),w(_e,null,Re(m.specs,g=>(_(),w("div",{key:g.label,class:"spec-card__spec"},[l("div",Qot,[(_(),w("svg",Jot,[l("path",{d:u[g.iconCode]},null,8,Zot)]))]),l("span",ert,I(g.label),1),l("span",trt,I(g.value),1)]))),128))]),l("div",nrt,[l("div",art,[srt,l("span",ort,I(m.price),1),l("span",rrt,"/"+I(m.priceUnit),1)]),l("button",{class:V(["spec-card__btn",`spec-card__btn--${m.btnVariant}`]),type:"button",onClick:g=>d(m)},urt,10,lrt)])]))),128))])])],64)),l("section",drt,[frt,prt,vrt,l("div",hrt,[z(h,{class:"compute-cta__btn compute-cta__btn--primary",to:"/intentions/create?type=custom"},{default:W(()=>[Ce(" 提交意向单 ")]),_:1}),z(h,{class:"compute-cta__btn",to:"/support"},{default:W(()=>[Ce(" 了解更多 ")]),_:1})])])])])}}}),grt=Ct(mrt,[["__scopeId","data-v-3d11412b"]]),zs=e=>(xt("data-v-fb2ff77d"),e=e(),Tt(),e),_rt={class:"page-container compute-order-view"},yrt={key:0,class:"page-card compute-order-view__state compute-order-view__state--error"},brt={key:1,class:"compute-order-view__layout"},wrt={class:"compute-order-view__workflow"},Crt={class:"page-card compute-order-view__surface"},krt=zs(()=>l("div",{class:"compute-order-view__section-head"},[l("span",{class:"compute-order-view__section-badge compute-order-view__section-badge--device"},"设"),l("h2",null,"设备信息")],-1)),Srt={class:"compute-order-view__device-card"},Ert={class:"compute-order-view__device-icon","aria-hidden":"true"},$rt={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},xrt=["d"],Trt={class:"compute-order-view__device-main"},Irt={class:"compute-order-view__device-subtitle"},Art={class:"compute-order-view__device-specs"},Nrt={class:"compute-order-view__spec-icon","aria-hidden":"true"},Rrt={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},Prt=["d"],Mrt={class:"compute-order-view__device-price"},Brt=zs(()=>l("dt",null,"单价",-1)),Lrt={key:0,class:"page-card compute-order-view__surface"},Ort=zs(()=>l("div",{class:"compute-order-view__section-head"},[l("span",{class:"compute-order-view__section-badge compute-order-view__section-badge--hour"},"介"),l("div",null,[l("h2",null,"产品介绍")])],-1)),Drt={class:"compute-order-view__device-description"},Vrt={class:"page-card compute-order-view__surface"},Frt=zs(()=>l("div",{class:"compute-order-view__section-head"},[l("span",{class:"compute-order-view__section-badge compute-order-view__section-badge--hour"},"时"),l("div",null,[l("h2",null,"计费周期"),l("p",{class:"compute-order-view__section-desc"},"该产品按固定计费周期或单位售卖,价格与算力市场保持一致")])],-1)),Urt={class:"compute-order-view__hour-grid"},zrt={class:"compute-order-view__hour-card compute-order-view__hour-card--active"},Hrt={class:"compute-order-view__hour-card-main"},Krt={class:"compute-order-view__hour-label"},qrt=zs(()=>l("p",{class:"compute-order-view__hour-desc"},"每份按此周期或单位计费",-1)),jrt={class:"compute-order-view__hour-price"},Wrt={class:"page-card compute-order-view__surface"},Grt=zs(()=>l("div",{class:"compute-order-view__section-head"},[l("span",{class:"compute-order-view__section-badge compute-order-view__section-badge--qty"},"量"),l("div",null,[l("h2",null,"购买数量"),l("p",{class:"compute-order-view__section-desc"},"选择购买份数,实付金额按产品固定计费单位累加")])],-1)),Yrt={class:"compute-order-view__qty-row"},Xrt={class:"compute-order-view__qty-hint"},Qrt={class:"page-card compute-order-view__surface"},Jrt=zs(()=>l("div",{class:"compute-order-view__section-head"},[l("span",{class:"compute-order-view__section-badge compute-order-view__section-badge--pay"},"付"),l("div",null,[l("h2",null,"支付方式"),l("p",{class:"compute-order-view__section-desc"},"请选择您的支付方式")])],-1)),Zrt={class:"compute-order-view__channel-list"},elt=["value"],tlt={class:"compute-order-view__channel-logo-text"},nlt={class:"compute-order-view__channel-copy"},alt={class:"compute-order-view__channel-desc"},slt=zs(()=>l("div",{class:"compute-order-view__service-row"},[l("span",{class:"compute-order-view__service-item"},"🔒 安全加密传输"),l("span",{class:"compute-order-view__service-item"},"🛡️ 资金安全保障"),l("span",{class:"compute-order-view__service-item"},"🕐 7×24 小时服务")],-1)),olt={class:"page-card compute-order-view__checkout-card"},rlt=zs(()=>l("h2",{class:"compute-order-view__checkout-title"},"订单结算",-1)),llt={class:"compute-order-view__checkout-list"},ilt=zs(()=>l("dt",null,"设备名称",-1)),clt=zs(()=>l("dt",null,"计费周期",-1)),ult=zs(()=>l("dt",null,"购买数量",-1)),dlt=zs(()=>l("dt",null,"单价",-1)),flt=zs(()=>l("dt",null,"总价",-1)),plt={class:"compute-order-view__checkout-subtotal"},vlt={class:"compute-order-view__checkout-total"},hlt=zs(()=>l("span",null,"实付金额",-1)),mlt=mn('
    订单有效期
    15分
    00秒
    00保留

    请在有效期内完成支付,超时订单将自动取消

    ',1),glt=["disabled"],_lt=zs(()=>l("p",{class:"compute-order-view__checkout-agreement"},[Ce(" 点击按钮即表示您已阅读并同意 "),l("span",null,"《用户服务协议》"),l("span",null,"《隐私政策》")],-1)),ylt={class:"compute-order-view__checkout-benefits"},blt=le({__name:"ComputeOrderConfirmView",setup(e){const t=fa(),n=pn(),a=[{key:"invoice",title:"正规发票",desc:"可申请电子发票"},{key:"instant",title:"即时开通",desc:"支付成功即生效"},{key:"secure",title:"安全可靠",desc:"多重安全保障"}],s=[{value:"alipay",label:"支付宝",desc:"适合网页跳转收银台场景"},{value:"wechat",label:"微信支付",desc:"适合扫码或微信内支付场景"},{value:"unionpay",label:"银联",desc:"适合银行卡统一收银台场景"}],o={bolt:"M13 2L3 14h9l-1 8 10-12h-9l1-8z",memory:"M4 6h16v12H4z M9 6V4h6v2",chip:"M4 4h16v16H4z M9 9h6v6H9z M9 1v3 M15 1v3 M9 20v3 M15 20v3 M1 9h3 M1 14h3 M20 9h3 M20 14h3"},r=x(()=>{const y=t.query.cardId,b=t.query.title,C=t.query.price;if(typeof y!="string"||typeof b!="string"||typeof C!="string")return null;let k=[];try{const S=t.query.specs;typeof S=="string"&&(k=JSON.parse(S))}catch{k=[]}return{id:y,title:b,subtitle:typeof t.query.subtitle=="string"?t.query.subtitle:"",description:typeof t.query.description=="string"?t.query.description:"",price:C,priceUnit:typeof t.query.priceUnit=="string"?t.query.priceUnit:"",specs:k}}),i=T(1),c=T("alipay"),u=T(!1),d=x(()=>{var b;const y=Number(((b=r.value)==null?void 0:b.price)??"0");return Number.isFinite(y)&&y>0?y:0}),p=x(()=>{var y;return(y=r.value)!=null&&y.priceUnit.startsWith("万/")?d.value*1e4:d.value}),v=x(()=>p.value*i.value),h=y=>`¥ ${new Intl.NumberFormat("zh-CN",{minimumFractionDigits:2,maximumFractionDigits:2}).format(y)}`,m=(y,b)=>{const C=h(y);return b?b==="起"||b.startsWith("万/")?`${C}${b}`:`${C}/${b}`:C},g=async()=>{if(!r.value){rt.error("设备信息尚未加载,请从算力市场重新进入。");return}u.value=!0;try{await new Promise(y=>setTimeout(y,1200)),rt.success("算力订单已创建,请在订单中心完成支付。"),await n.push({name:"orders"})}catch(y){rt.error(y instanceof Error?y.message:"订单创建失败,请稍后重试。")}finally{u.value=!1}};return(y,b)=>{const C=Ne("RouterLink"),k=Ne("el-input-number");return _(),w("section",_rt,[r.value?(_(),w("div",brt,[l("div",wrt,[l("article",Crt,[krt,l("div",Srt,[l("div",Ert,[(_(),w("svg",$rt,[l("path",{d:o.chip},null,8,xrt)]))]),l("div",Trt,[l("h3",null,I(r.value.title),1),l("p",Irt,I(r.value.subtitle),1),l("dl",Art,[(_(!0),w(_e,null,Re(r.value.specs,S=>(_(),w("div",{key:S.label,class:"compute-order-view__spec-item"},[l("dt",null,[l("span",Nrt,[(_(),w("svg",Rrt,[l("path",{d:o[S.icon]||o.chip},null,8,Prt)]))]),Ce(" "+I(S.label),1)]),l("dd",null,I(S.value),1)]))),128))])]),l("dl",Mrt,[l("div",null,[Brt,l("dd",null,I(m(d.value,r.value.priceUnit)),1)])])])]),r.value.description?(_(),w("article",Lrt,[Ort,l("p",Drt,I(r.value.description),1)])):K("",!0),l("article",Vrt,[Frt,l("div",Urt,[l("div",zrt,[l("div",Hrt,[l("strong",Krt,I(r.value.priceUnit||"固定价格"),1),qrt,l("span",jrt,I(m(d.value,r.value.priceUnit)),1)])])])]),l("article",Wrt,[Grt,l("div",Yrt,[z(k,{modelValue:i.value,"onUpdate:modelValue":b[0]||(b[0]=S=>i.value=S),min:1,max:99,disabled:u.value,size:"large"},null,8,["modelValue","disabled"]),l("span",Xrt,"份(每份 "+I(m(d.value,r.value.priceUnit))+")",1)])]),l("article",Qrt,[Jrt,l("div",Zrt,[(_(),w(_e,null,Re(s,S=>l("label",{key:S.value,class:V(["compute-order-view__channel-item",{"compute-order-view__channel-item--active":c.value===S.value}])},[et(l("input",{"onUpdate:modelValue":b[1]||(b[1]=$=>c.value=$),type:"radio",name:"payChannel",value:S.value},null,8,elt),[[Im,c.value]]),l("span",{class:V(["compute-order-view__channel-logo",`compute-order-view__channel-logo--${S.value}`])},[l("span",tlt,I(S.value==="alipay"?"支":S.value==="wechat"?"微":"银"),1)],2),l("div",nlt,[l("strong",null,I(S.label),1),l("span",alt,I(S.desc),1)])],2)),64))]),slt])]),l("aside",olt,[rlt,l("dl",llt,[l("div",null,[ilt,l("dd",null,I(r.value.title),1)]),l("div",null,[clt,l("dd",null,I(r.value.priceUnit||"固定价格"),1)]),l("div",null,[ult,l("dd",null,I(i.value)+" 份",1)]),l("div",null,[dlt,l("dd",null,I(m(d.value,r.value.priceUnit)),1)]),l("div",null,[flt,l("dd",plt,I(h(v.value)),1)])]),l("div",vlt,[hlt,l("strong",null,I(h(v.value)),1)]),mlt,l("button",{type:"button",class:"compute-order-view__submit-button",disabled:u.value||!r.value,onClick:g},I(u.value?"订单创建中...":"确认创建订单"),9,glt),_lt,l("div",ylt,[(_(),w(_e,null,Re(a,S=>l("div",{key:S.title,class:"compute-order-view__checkout-benefit"},[l("span",{class:V(["compute-order-view__checkout-benefit-dot",`compute-order-view__checkout-benefit-dot--${S.key}`]),"aria-hidden":"true"},null,2),l("div",null,[l("strong",null,I(S.title),1),l("small",null,I(S.desc),1)])])),64))])])])):(_(),w("div",yrt,[Ce(" 缺少有效的设备参数,请从算力市场重新选择。 "),z(C,{class:"compute-order-view__back-link",to:{name:"compute-marketplace"}},{default:W(()=>[Ce("返回算力市场")]),_:1})]))])}}}),wlt=Ct(blt,[["__scopeId","data-v-fb2ff77d"]]),Ar=e=>(xt("data-v-ba9ddad3"),e=e(),Tt(),e),Clt={class:"physical-machine"},klt=mn('
    Physical Server

    物理机专区

    独享物理服务器资源,物理隔离安全可控,适用于高安全性、高性能计算场景

    ',1),Slt={class:"page-container pm-content"},Elt=Ar(()=>l("h2",{class:"section-title"},"产品规格",-1)),$lt={class:"spec-zone"},xlt=Ar(()=>l("div",{class:"spec-zone__sidebar spec-zone__sidebar--physical"},[l("span",{class:"spec-zone__label"},"物理机")],-1)),Tlt={class:"spec-zone__cards spec-zone__cards--two-rows"},Ilt=Ar(()=>l("div",{class:"spec-card__ribbon"},null,-1)),Alt={class:"spec-card__top"},Nlt={class:"spec-card__title"},Rlt={class:"spec-card__subtitle"},Plt={class:"spec-card__specs"},Mlt={class:"spec-card__spec-icon"},Blt={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},Llt=["d"],Olt={class:"spec-card__spec-label"},Dlt={class:"spec-card__spec-value"},Vlt={class:"spec-card__footer"},Flt={class:"spec-card__price"},Ult=Ar(()=>l("span",{class:"spec-card__price-symbol"},"¥",-1)),zlt={class:"spec-card__price-num"},Hlt={class:"spec-card__price-unit"},Klt={key:1,class:"spec-card__price-num is-inquiry"},qlt=["onClick"],jlt={class:"spec-card__btn-text"},Wlt=Ar(()=>l("span",{class:"spec-card__btn-glow"},null,-1)),Glt=Ar(()=>l("div",{class:"spec-card__ribbon"},null,-1)),Ylt={class:"spec-card__top"},Xlt={class:"spec-card__title"},Qlt={class:"spec-card__subtitle"},Jlt={class:"spec-card__specs"},Zlt={class:"spec-card__spec-icon"},eit={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},tit=["d"],nit={class:"spec-card__spec-label"},ait={class:"spec-card__spec-value"},sit={class:"spec-card__footer"},oit={class:"spec-card__price"},rit=Ar(()=>l("span",{class:"spec-card__price-symbol"},"¥",-1)),lit={class:"spec-card__price-num"},iit={class:"spec-card__price-unit"},cit={key:1,class:"spec-card__price-num is-inquiry"},uit=["onClick"],dit={class:"spec-card__btn-text"},fit=Ar(()=>l("span",{class:"spec-card__btn-glow"},null,-1)),pit={class:"pm-cta"},vit=Ar(()=>l("div",{class:"pm-cta__glare"},null,-1)),hit=Ar(()=>l("h2",null,"需要定制化物理机方案?",-1)),mit=Ar(()=>l("p",null,"提交意向单,获取专属配置方案和报价",-1)),git={class:"pm-cta__actions"},_it=le({__name:"PhysicalMachineView",setup(e){const t=pn(),n=[{icon:"performance",title:"算力高性能",description:"稳定性能,充分满足对高性能、稳定性以及数据安全的诉求"},{icon:"reliable",title:"独享资源",description:"用户独享,性能优越,无虚拟化开销"},{icon:"elastic",title:"多种型号",description:"算力型号多样,满足各场景需求"}],a=[{id:"pm-hetero-313",title:"国产异构系列",subtitle:"超高性能,适用于训练推理",specs:[{icon:"bolt",label:"单卡算力",value:"313 TFlops"},{icon:"memory",label:"单卡显存",value:"64 G"},{icon:"chip",label:"规格",value:"448C 1536G 8卡"}],price:"--",priceUnit:"询价",btnText:"咨询报价"},{id:"pm-hetero-376",title:"国产异构系列",subtitle:"超高性能,适用于训练推理",specs:[{icon:"bolt",label:"单卡算力",value:"376 TFlops"},{icon:"memory",label:"单卡显存",value:"64 G"},{icon:"chip",label:"规格",value:"448C 1536G 8卡"}],price:"--",priceUnit:"询价",btnText:"咨询报价"},{id:"pm-inference",title:"高性价比推理款",subtitle:"适用于推理场景,兼顾算力与成本",specs:[{icon:"bolt",label:"单卡算力",value:"362 TFlops"},{icon:"memory",label:"单卡显存",value:"48 G"},{icon:"chip",label:"规格",value:"248C 768G 8卡"}],price:"--",priceUnit:"询价",btnText:"咨询报价"},{id:"pm-general",title:"通用高性能款",subtitle:"适配训练与推理场景的不同算力、显存及成本需求",specs:[{icon:"bolt",label:"单卡算力",value:"312 TFlops"},{icon:"memory",label:"单卡显存",value:"40 G"},{icon:"chip",label:"规格",value:"2×36C 1024G 8卡"}],price:"--",priceUnit:"询价",btnText:"咨询报价"}],s={bolt:"M13 2L3 14h9l-1 8 10-12h-9l1-8z",memory:"M4 6h16v12H4z M9 6V4h6v2",chip:"M4 4h16v16H4z M9 9h6v6H9z M9 1v3 M15 1v3 M9 20v3 M15 20v3 M1 9h3 M1 14h3 M20 9h3 M20 14h3"},o=r=>{t.push({path:"/intentions/create",query:{type:"physical_machine"}})};return(r,i)=>{const c=Ne("RouterLink");return _(),w("div",Clt,[klt,z(f(mw),{features:n}),l("div",Slt,[Elt,l("section",$lt,[xlt,l("div",Tlt,[(_(!0),w(_e,null,Re(a.slice(0,3),u=>(_(),w("article",{key:u.id,class:"spec-card spec-card--physical"},[Ilt,l("div",Alt,[l("h3",Nlt,I(u.title),1),l("p",Rlt,I(u.subtitle),1)]),l("div",Plt,[(_(!0),w(_e,null,Re(u.specs,d=>(_(),w("div",{key:d.label,class:"spec-card__spec"},[l("div",Mlt,[(_(),w("svg",Blt,[l("path",{d:s[d.icon]},null,8,Llt)]))]),l("span",Olt,I(d.label),1),l("span",Dlt,I(d.value),1)]))),128))]),l("div",Vlt,[l("div",Flt,[u.price!=="--"?(_(),w(_e,{key:0},[Ult,l("span",zlt,I(u.price),1),l("span",Hlt,"/"+I(u.priceUnit),1)],64)):(_(),w("span",Klt,I(u.priceUnit),1))]),l("button",{class:"spec-card__btn spec-card__btn--blue",type:"button",onClick:d=>o()},[l("span",jlt,I(u.btnText),1),Wlt],8,qlt)])]))),128)),(_(!0),w(_e,null,Re(a.slice(3),u=>(_(),w("article",{key:u.id,class:"spec-card spec-card--physical"},[Glt,l("div",Ylt,[l("h3",Xlt,I(u.title),1),l("p",Qlt,I(u.subtitle),1)]),l("div",Jlt,[(_(!0),w(_e,null,Re(u.specs,d=>(_(),w("div",{key:d.label,class:"spec-card__spec"},[l("div",Zlt,[(_(),w("svg",eit,[l("path",{d:s[d.icon]},null,8,tit)]))]),l("span",nit,I(d.label),1),l("span",ait,I(d.value),1)]))),128))]),l("div",sit,[l("div",oit,[u.price!=="--"?(_(),w(_e,{key:0},[rit,l("span",lit,I(u.price),1),l("span",iit,"/"+I(u.priceUnit),1)],64)):(_(),w("span",cit,I(u.priceUnit),1))]),l("button",{class:"spec-card__btn spec-card__btn--blue",type:"button",onClick:d=>o()},[l("span",dit,I(u.btnText),1),fit],8,uit)])]))),128))])]),l("section",pit,[vit,hit,mit,l("div",git,[z(c,{class:"pm-cta__btn pm-cta__btn--primary",to:"/intentions/create?type=physical_machine"},{default:W(()=>[Ce("提交意向单")]),_:1}),z(c,{class:"pm-cta__btn",to:"/support"},{default:W(()=>[Ce("了解更多")]),_:1})])])])])}}}),yit=Ct(_it,[["__scopeId","data-v-ba9ddad3"]]),Nr=e=>(xt("data-v-f8b81d6b"),e=e(),Tt(),e),bit={class:"cloud-server"},wit=mn('
    Cloud Server

    云主机专区

    弹性云主机,按需秒级开通,灵活升降配置,适用于业务快速上线与弹性伸缩场景

    ',1),Cit={class:"page-container cs-content"},kit=Nr(()=>l("h2",{class:"section-title"},"产品规格",-1)),Sit={class:"spec-zone"},Eit=Nr(()=>l("div",{class:"spec-zone__sidebar spec-zone__sidebar--cloud"},[l("span",{class:"spec-zone__label"},"云主机")],-1)),$it={class:"spec-zone__cards spec-zone__cards--two-rows"},xit=Nr(()=>l("div",{class:"spec-card__ribbon"},null,-1)),Tit={class:"spec-card__top"},Iit={class:"spec-card__title"},Ait={class:"spec-card__subtitle"},Nit={class:"spec-card__specs"},Rit={class:"spec-card__spec-icon"},Pit={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},Mit=["d"],Bit={class:"spec-card__spec-label"},Lit={class:"spec-card__spec-value"},Oit={class:"spec-card__footer"},Dit={class:"spec-card__price"},Vit=Nr(()=>l("span",{class:"spec-card__price-symbol"},"¥",-1)),Fit={class:"spec-card__price-num"},Uit={class:"spec-card__price-unit"},zit={key:1,class:"spec-card__price-num is-inquiry"},Hit=["onClick"],Kit={class:"spec-card__btn-text"},qit=Nr(()=>l("span",{class:"spec-card__btn-glow"},null,-1)),jit=Nr(()=>l("div",{class:"spec-card__ribbon"},null,-1)),Wit={class:"spec-card__top"},Git={class:"spec-card__title"},Yit={class:"spec-card__subtitle"},Xit={class:"spec-card__specs"},Qit={class:"spec-card__spec-icon"},Jit={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},Zit=["d"],ect={class:"spec-card__spec-label"},tct={class:"spec-card__spec-value"},nct={class:"spec-card__footer"},act={class:"spec-card__price"},sct=Nr(()=>l("span",{class:"spec-card__price-symbol"},"¥",-1)),oct={class:"spec-card__price-num"},rct={class:"spec-card__price-unit"},lct={key:1,class:"spec-card__price-num is-inquiry"},ict=["onClick"],cct={class:"spec-card__btn-text"},uct=Nr(()=>l("span",{class:"spec-card__btn-glow"},null,-1)),dct={class:"cs-cta"},fct=Nr(()=>l("div",{class:"cs-cta__glare"},null,-1)),pct=Nr(()=>l("h2",null,"需要定制化云主机方案?",-1)),vct=Nr(()=>l("p",null,"提交意向单,获取专属配置方案和报价",-1)),hct={class:"cs-cta__actions"},mct=le({__name:"CloudServerView",setup(e){const t=pn(),n=[{icon:"reliable",title:"即开即用",description:"云主机可在几分钟内通过官网、app等多种方式开通使用"},{icon:"elastic",title:"弹性伸缩",description:"提供弹性伸缩服务,可根据业务灵活调整云主机数量"},{icon:"performance",title:"多种实例规格",description:"提供多种规格,多种GPU算力,满足用户需求"}],a=[{id:"cs-65-1",title:"云主机",subtitle:"高性价比,适用于推理场景",specs:[{icon:"bolt",label:"单卡算力",value:"65 TFlops"},{icon:"memory",label:"单卡显存",value:"16 G"},{icon:"chip",label:"规格",value:"8C 32G 1卡"}],price:"--",priceUnit:"询价",btnText:"咨询报价"},{id:"cs-65-2",title:"云主机",subtitle:"高性价比,适用于推理场景",specs:[{icon:"bolt",label:"单卡算力",value:"65 TFlops"},{icon:"memory",label:"单卡显存",value:"16 G"},{icon:"chip",label:"规格",value:"16C 64G 2卡"}],price:"--",priceUnit:"询价",btnText:"咨询报价"},{id:"cs-65-4",title:"云主机",subtitle:"高性价比,适用于推理场景",specs:[{icon:"bolt",label:"单卡算力",value:"65 TFlops"},{icon:"memory",label:"单卡显存",value:"16 G"},{icon:"chip",label:"规格",value:"32C 128G 4卡"}],price:"--",priceUnit:"询价",btnText:"咨询报价"},{id:"cs-125-1",title:"云主机",subtitle:"适用于训练、推理场景",specs:[{icon:"bolt",label:"单卡算力",value:"125 TFlops"},{icon:"memory",label:"单卡显存",value:"24 G"},{icon:"chip",label:"规格",value:"16C 64G 1卡"}],price:"--",priceUnit:"询价",btnText:"咨询报价"}],s={bolt:"M13 2L3 14h9l-1 8 10-12h-9l1-8z",memory:"M4 6h16v12H4z M9 6V4h6v2",chip:"M4 4h16v16H4z M9 9h6v6H9z M9 1v3 M15 1v3 M9 20v3 M15 20v3 M1 9h3 M1 14h3 M20 9h3 M20 14h3"},o=r=>{t.push({path:"/intentions/create",query:{type:"cloud_server"}})};return(r,i)=>{const c=Ne("RouterLink");return _(),w("div",bit,[wit,z(f(mw),{features:n}),l("div",Cit,[kit,l("section",Sit,[Eit,l("div",$it,[(_(!0),w(_e,null,Re(a.slice(0,3),u=>(_(),w("article",{key:u.id,class:"spec-card spec-card--cloud"},[xit,l("div",Tit,[l("h3",Iit,I(u.title),1),l("p",Ait,I(u.subtitle),1)]),l("div",Nit,[(_(!0),w(_e,null,Re(u.specs,d=>(_(),w("div",{key:d.label,class:"spec-card__spec"},[l("div",Rit,[(_(),w("svg",Pit,[l("path",{d:s[d.icon]},null,8,Mit)]))]),l("span",Bit,I(d.label),1),l("span",Lit,I(d.value),1)]))),128))]),l("div",Oit,[l("div",Dit,[u.price!=="--"?(_(),w(_e,{key:0},[Vit,l("span",Fit,I(u.price),1),l("span",Uit,"/"+I(u.priceUnit),1)],64)):(_(),w("span",zit,I(u.priceUnit),1))]),l("button",{class:"spec-card__btn spec-card__btn--teal",type:"button",onClick:d=>o()},[l("span",Kit,I(u.btnText),1),qit],8,Hit)])]))),128)),(_(!0),w(_e,null,Re(a.slice(3),u=>(_(),w("article",{key:u.id,class:"spec-card spec-card--cloud"},[jit,l("div",Wit,[l("h3",Git,I(u.title),1),l("p",Yit,I(u.subtitle),1)]),l("div",Xit,[(_(!0),w(_e,null,Re(u.specs,d=>(_(),w("div",{key:d.label,class:"spec-card__spec"},[l("div",Qit,[(_(),w("svg",Jit,[l("path",{d:s[d.icon]},null,8,Zit)]))]),l("span",ect,I(d.label),1),l("span",tct,I(d.value),1)]))),128))]),l("div",nct,[l("div",act,[u.price!=="--"?(_(),w(_e,{key:0},[sct,l("span",oct,I(u.price),1),l("span",rct,"/"+I(u.priceUnit),1)],64)):(_(),w("span",lct,I(u.priceUnit),1))]),l("button",{class:"spec-card__btn spec-card__btn--teal",type:"button",onClick:d=>o()},[l("span",cct,I(u.btnText),1),uct],8,ict)])]))),128))])]),l("section",dct,[fct,pct,vct,l("div",hct,[z(c,{class:"cs-cta__btn cs-cta__btn--primary",to:"/intentions/create?type=cloud_server"},{default:W(()=>[Ce("提交意向单")]),_:1}),z(c,{class:"cs-cta__btn",to:"/support"},{default:W(()=>[Ce("了解更多")]),_:1})])])])])}}}),gct=Ct(mct,[["__scopeId","data-v-f8b81d6b"]]),Ka=e=>(xt("data-v-a0aca8fb"),e=e(),Tt(),e),_ct={class:"page-container info-page"},yct=mn('

    开票信息管理

    维护您的发票抬头、税号等信息,申请开票时可直接使用。

    ',1),bct={class:"info-layout"},wct={class:"info-layout__main"},Cct={key:0,class:"info-card info-skeleton"},kct=Ka(()=>l("div",{class:"info-skeleton__header"},[l("div",{class:"skeleton-bar skeleton-bar--title"})],-1)),Sct={class:"info-skeleton__body"},Ect=Ka(()=>l("div",{class:"skeleton-bar skeleton-bar--label"},null,-1)),$ct=Ka(()=>l("div",{class:"skeleton-bar skeleton-bar--input"},null,-1)),xct=[Ect,$ct],Tct={key:1,class:"info-card info-form-card"},Ict={class:"info-fieldset"},Act=Ka(()=>l("div",{class:"info-fieldset__head"},[l("span",{class:"info-fieldset__step"},"1"),l("legend",{class:"info-fieldset__legend"},"选择发票类型")],-1)),Nct={class:"info-type-cards"},Rct={class:"info-type-card__radio"},Pct={key:0,class:"info-type-card__radio-dot"},Mct=Ka(()=>l("span",{class:"info-type-card__content"},[l("span",{class:"info-type-card__label"},"普通发票"),l("span",{class:"info-type-card__desc"},"适用于个人或非一般纳税人")],-1)),Bct={class:"info-type-card__radio"},Lct={key:0,class:"info-type-card__radio-dot"},Oct=Ka(()=>l("span",{class:"info-type-card__content"},[l("span",{class:"info-type-card__label"},"增值税专用发票"),l("span",{class:"info-type-card__desc"},"适用于一般纳税人企业")],-1)),Dct={key:0,class:"info-field-hint info-field-hint--warn"},Vct=Ka(()=>l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[l("circle",{cx:"12",cy:"12",r:"10"}),l("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),l("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})],-1)),Fct={class:"info-fieldset"},Uct=Ka(()=>l("div",{class:"info-fieldset__head"},[l("span",{class:"info-fieldset__step"},"2"),l("legend",{class:"info-fieldset__legend"},"基本信息")],-1)),zct={class:"info-field"},Hct=Ka(()=>l("label",{class:"info-label"},[Ce(" 发票抬头 "),l("span",{class:"info-label__required","aria-label":"必填"},"*")],-1)),Kct={class:"info-field"},qct=Ka(()=>l("label",{class:"info-label"},"纳税人识别号",-1)),jct=Ka(()=>l("p",{class:"info-field-hint"},"个人用户或非企业单位可不填。",-1)),Wct={key:0,class:"info-fieldset info-fieldset--special"},Gct=Ka(()=>l("div",{class:"info-fieldset__head"},[l("span",{class:"info-fieldset__step"},"3"),l("legend",{class:"info-fieldset__legend"},"增值税专用发票信息")],-1)),Yct=Ka(()=>l("p",{class:"info-fieldset__desc"},"专票需补全以下信息用于税务抵扣。",-1)),Xct={class:"info-special-grid"},Qct={class:"info-field"},Jct=Ka(()=>l("label",{class:"info-label"},[Ce(" 注册地址 "),l("span",{class:"info-label__required","aria-label":"必填"},"*")],-1)),Zct={class:"info-field"},eut=Ka(()=>l("label",{class:"info-label"},[Ce(" 注册电话 "),l("span",{class:"info-label__required","aria-label":"必填"},"*")],-1)),tut={class:"info-field"},nut=Ka(()=>l("label",{class:"info-label"},[Ce(" 开户银行 "),l("span",{class:"info-label__required","aria-label":"必填"},"*")],-1)),aut={class:"info-field"},sut=Ka(()=>l("label",{class:"info-label"},[Ce(" 银行账号 "),l("span",{class:"info-label__required","aria-label":"必填"},"*")],-1)),out={class:"info-actions"},rut=["disabled"],lut={key:0,class:"info-submit-btn__spinner",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},iut=Ka(()=>l("circle",{cx:"12",cy:"12",r:"10","stroke-opacity":"0.25"},null,-1)),cut=Ka(()=>l("path",{d:"M12 2a10 10 0 0 1 10 10","stroke-linecap":"round"},null,-1)),uut=[iut,cut],dut=Ka(()=>l("p",{class:"info-actions__hint"},"保存后,申请开票时将自动填充以上信息。",-1)),fut=mn('',1),put=Ka(()=>l("div",{class:"info-success"},[l("div",{class:"info-success__check"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("circle",{cx:"12",cy:"12",r:"10"}),l("polyline",{points:"16 10 11 15 8 12"})])]),l("p",{class:"info-success__title"},"开票信息保存成功"),l("p",{class:"info-success__desc"},"您可在订单页面申请开票时直接使用。")],-1)),vut={class:"info-success__actions"},hut=le({__name:"InvoiceInfoView",setup(e){const t=_a(),n=pn(),a=x(()=>{var p;return((p=t.userInfo)==null?void 0:p.userType)==="enterprise"}),s=T(!1),o=T(!1),r=T(!1),i=At({invoiceType:"regular",title:"",taxNo:"",address:"",phone:"",bankName:"",bankAccount:""}),c=async()=>{s.value=!0;try{const p=await fw();p&&(Object.assign(i,p),!a.value&&i.invoiceType==="special"&&(i.invoiceType="regular"))}catch{}finally{s.value=!1}},u=async()=>{if(!i.invoiceType){rt.warning("请选择发票类型");return}if(!i.title){rt.warning("请填写发票抬头");return}if(i.invoiceType==="special"&&!a.value){rt.warning("仅企业用户可使用专票,已自动切换为普通发票"),i.invoiceType="regular";return}if(i.invoiceType==="special"&&(!i.taxNo||!i.address||!i.phone||!i.bankName||!i.bankAccount)){rt.warning("专票请补全税号/地址/电话/开户行/账号");return}o.value=!0;try{await Oqe(i),r.value=!0}catch{}finally{o.value=!1}},d=()=>{r.value=!1,n.push({name:"orders"})};return ft(()=>{c()}),(p,v)=>{const h=Ne("el-input"),m=Ne("el-button"),g=Ne("el-dialog");return _(),w("section",_ct,[yct,l("div",bct,[l("div",wct,[s.value?(_(),w("div",Cct,[kct,l("div",Sct,[(_(),w(_e,null,Re(3,y=>l("div",{class:"info-skeleton__field",key:y},xct)),64))])])):(_(),w("div",Tct,[l("fieldset",Ict,[Act,l("div",Nct,[l("label",{class:V(["info-type-card",{"info-type-card--active":i.invoiceType==="regular"}]),onClick:v[0]||(v[0]=y=>i.invoiceType="regular")},[l("span",Rct,[i.invoiceType==="regular"?(_(),w("span",Pct)):K("",!0)]),Mct],2),a.value?(_(),w("label",{key:0,class:V(["info-type-card",{"info-type-card--active":i.invoiceType==="special"}]),onClick:v[1]||(v[1]=y=>i.invoiceType="special")},[l("span",Bct,[i.invoiceType==="special"?(_(),w("span",Lct)):K("",!0)]),Oct],2)):K("",!0)]),a.value?K("",!0):(_(),w("p",Dct,[Vct,Ce(" 增值税专用发票仅限企业用户。如需升级,请联系客服。 ")]))]),l("fieldset",Fct,[Uct,l("div",zct,[Hct,z(h,{modelValue:i.title,"onUpdate:modelValue":v[2]||(v[2]=y=>i.title=y),placeholder:"公司名称或个人姓名",class:"info-input",maxlength:"200"},null,8,["modelValue"])]),l("div",Kct,[qct,z(h,{modelValue:i.taxNo,"onUpdate:modelValue":v[3]||(v[3]=y=>i.taxNo=y),placeholder:"企业税号(选填)",class:"info-input",maxlength:"30"},null,8,["modelValue"]),jct])]),z(aa,{name:"info-special-expand"},{default:W(()=>[i.invoiceType==="special"?(_(),w("fieldset",Wct,[Gct,Yct,l("div",Xct,[l("div",Qct,[Jct,z(h,{modelValue:i.address,"onUpdate:modelValue":v[4]||(v[4]=y=>i.address=y),placeholder:"企业注册地址",class:"info-input",maxlength:"200"},null,8,["modelValue"])]),l("div",Zct,[eut,z(h,{modelValue:i.phone,"onUpdate:modelValue":v[5]||(v[5]=y=>i.phone=y),placeholder:"企业注册电话",class:"info-input",maxlength:"20"},null,8,["modelValue"])]),l("div",tut,[nut,z(h,{modelValue:i.bankName,"onUpdate:modelValue":v[6]||(v[6]=y=>i.bankName=y),placeholder:"开户银行名称",class:"info-input",maxlength:"100"},null,8,["modelValue"])]),l("div",aut,[sut,z(h,{modelValue:i.bankAccount,"onUpdate:modelValue":v[7]||(v[7]=y=>i.bankAccount=y),placeholder:"银行账号",class:"info-input",maxlength:"30"},null,8,["modelValue"])])])])):K("",!0)]),_:1}),l("div",out,[l("button",{type:"button",class:"info-submit-btn",disabled:o.value,onClick:u},[o.value?(_(),w("svg",lut,uut)):K("",!0),Ce(" "+I(o.value?"保存中...":"保存开票信息"),1)],8,rut),dut])]))]),fut]),z(g,{modelValue:r.value,"onUpdate:modelValue":v[9]||(v[9]=y=>r.value=y),title:"",width:"420px","align-center":"",class:"info-success-dialog"},{footer:W(()=>[l("div",vut,[z(m,{class:"info-success__btn--secondary",onClick:v[8]||(v[8]=y=>r.value=!1)},{default:W(()=>[Ce("暂不去")]),_:1}),z(m,{type:"primary",class:"info-success__btn--primary",onClick:d},{default:W(()=>[Ce("去开票")]),_:1})])]),default:W(()=>[put]),_:1},8,["modelValue"])])}}}),mut=Ct(hut,[["__scopeId","data-v-a0aca8fb"]]),gut=e=>(xt("data-v-3374dabe"),e=e(),Tt(),e),_ut={class:"page-container invoice-list-page"},yut=mn('

    我的发票

    查看所有开票和红冲申请记录,跟踪发票审核与开具状态。

    ',1),but={class:"invoice-list-tabs"},wut=["onClick"],Cut={key:0,class:"invoice-list-card invoice-list-skeleton"},kut=mn('
    ',8),Sut=[kut],Eut={key:1,class:"invoice-list-card invoice-list-empty"},$ut=mn('

    暂无发票申请记录

    支付完成后可在订单页申请开票

    ',3),xut=[$ut],Tut={class:"invoice-list-card"},Iut={class:"invoice-list-table-wrap"},Aut={class:"invoice-list-table"},Nut=gut(()=>l("thead",null,[l("tr",null,[l("th",null,"申请单号"),l("th",null,"类型"),l("th",null,"订单号"),l("th",{class:"invoice-list-table__col--right"},"开票金额"),l("th",null,"发票类型"),l("th",null,"抬头"),l("th",null,"状态"),l("th",null,"申请时间"),l("th",null,"操作")])],-1)),Rut=["onClick"],Put={class:"invoice-list-table__cell--mono"},Mut={class:"invoice-list-table__type-badge"},But={class:"invoice-list-table__cell--mono"},Lut={class:"invoice-list-table__col--right invoice-list-table__cell--amount"},Out={class:"invoice-list-table__cell--title"},Dut={class:"invoice-list-table__cell--time"},Vut={class:"invoice-list-table__actions"},Fut=["onClick"],Uut=["onClick"],zut={class:"invoice-list-page__pagination"},Hut=le({__name:"InvoiceAppliesView",setup(e){const t=pn(),n=T(!1),a=T([]),s=T(0),o=T(""),r=At({pageNum:1,pageSize:10}),i=[10,20,50],c=[{label:"全部",value:""},{label:"待审核",value:"pending"},{label:"已通过",value:"approved"},{label:"已开票",value:"issued"},{label:"已驳回",value:"rejected"},{label:"已红冲",value:"reversed"}],u=async()=>{n.value=!0;try{const y={pageNum:r.pageNum,pageSize:r.pageSize};o.value&&(y.status=o.value);const b=await Dqe(y);a.value=b.list,s.value=b.total}catch{a.value=[]}finally{n.value=!1}},d=y=>{o.value=y,r.pageNum=1,u()},p=y=>{y!==r.pageNum&&(r.pageNum=y,u())},v=y=>{!i.includes(y)||y===r.pageSize||(r.pageNum=1,r.pageSize=y,u())},h=y=>t.push(`/user/invoice-applies/${y}`),m=async y=>{try{await ua.confirm(`确认对 ${y.applyNo} 提交红冲?`,"提示",{type:"warning"}),await Fqe(y.id),rt.success("红冲申请已提交"),u()}catch{}},g=y=>`invoice-list__status-dot--${y}`;return ft(()=>{u()}),(y,b)=>{const C=Ne("el-pagination");return _(),w("section",_ut,[yut,l("nav",but,[(_(),w(_e,null,Re(c,k=>l("button",{key:String(k.value),class:V(["invoice-list-tab",{"invoice-list-tab--active":o.value===k.value}]),onClick:S=>d(k.value)},I(k.label),11,wut)),64))]),n.value?(_(),w("div",Cut,[(_(),w(_e,null,Re(6,k=>l("div",{class:"invoice-list-skeleton__row",key:k},Sut)),64))])):!a.value.length&&!n.value?(_(),w("div",Eut,xut)):(_(),w(_e,{key:2},[l("div",Tut,[l("div",Iut,[l("table",Aut,[Nut,l("tbody",null,[(_(!0),w(_e,null,Re(a.value,k=>(_(),w("tr",{key:k.id,class:"invoice-list-table__row",onClick:S=>h(k.id)},[l("td",Put,I(k.applyNo),1),l("td",null,[l("span",Mut,I(k.applyTypeName),1)]),l("td",But,I(k.orderNo),1),l("td",Lut,"¥"+I(k.payAmount),1),l("td",null,I(k.invoiceTypeName),1),l("td",Out,I(k.title),1),l("td",null,[l("span",{class:V(["invoice-list__status-dot",g(k.status)])},null,2),Ce(" "+I(k.statusName),1)]),l("td",Dut,I(k.createTime),1),l("td",{onClick:b[0]||(b[0]=qe(()=>{},["stop"]))},[l("div",Vut,[l("button",{class:"invoice-list-table__action-btn",onClick:S=>h(k.id)},"查看",8,Fut),k.status==="issued"&&k.applyType==="invoice"?(_(),w("button",{key:0,class:"invoice-list-table__action-btn invoice-list-table__action-btn--warn",onClick:S=>m(k)},"申请红冲",8,Uut)):K("",!0)])])],8,Rut))),128))])])])]),l("footer",zut,[z(C,{background:"",layout:"total, sizes, prev, pager, next",total:s.value,"current-page":r.pageNum,"page-size":r.pageSize,"page-sizes":i,"popper-class":"invoice-list-page__pagination-dropdown mall-select-red-dropdown",onCurrentChange:p,onSizeChange:v},null,8,["total","current-page","page-size"])])],64))])}}}),Kut=Ct(Hut,[["__scopeId","data-v-3374dabe"]]),Gn=e=>(xt("data-v-0aa306a5"),e=e(),Tt(),e),qut={class:"page-container invoice-detail-page"},jut={class:"invoice-detail-header"},Wut=Gn(()=>l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"15 18 9 12 15 6"})],-1)),Gut=mn('

    发票申请详情

    查看发票申请的完整信息与处理进度。

    ',2),Yut={key:0,class:"invoice-detail-card invoice-detail-skeleton"},Xut={class:"invoice-detail-skeleton__grid"},Qut=Gn(()=>l("div",{class:"skeleton-bar skeleton-bar--label"},null,-1)),Jut=Gn(()=>l("div",{class:"skeleton-bar skeleton-bar--value"},null,-1)),Zut=[Qut,Jut],edt={key:1,class:"invoice-detail-card invoice-detail-error"},tdt=Gn(()=>l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",class:"invoice-detail-error__icon"},[l("circle",{cx:"12",cy:"12",r:"10"}),l("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),l("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})],-1)),ndt={key:2,class:"invoice-detail-grid"},adt={class:"invoice-detail-card invoice-detail-card--main"},sdt=Gn(()=>l("header",{class:"invoice-detail-card__title"},"申请信息",-1)),odt={class:"invoice-detail-fields"},rdt=Gn(()=>l("dt",null,"申请单号",-1)),ldt={class:"invoice-detail-fields__mono"},idt=Gn(()=>l("dt",null,"申请类型",-1)),cdt=Gn(()=>l("dt",null,"状态",-1)),udt=Gn(()=>l("dt",null,"申请时间",-1)),ddt=Gn(()=>l("dt",null,"审核时间",-1)),fdt=Gn(()=>l("dt",null,"审核意见",-1)),pdt={class:"invoice-detail-fields__wide"},vdt=Gn(()=>l("dt",null,"备注",-1)),hdt={class:"invoice-detail-card invoice-detail-card--wide"},mdt=Gn(()=>l("header",{class:"invoice-detail-card__title"},"订单信息",-1)),gdt={class:"invoice-detail-fields"},_dt=Gn(()=>l("dt",null,"订单号",-1)),ydt={class:"invoice-detail-fields__mono"},bdt=Gn(()=>l("dt",null,"开票金额",-1)),wdt={class:"invoice-detail-fields__amount"},Cdt={key:0},kdt=Gn(()=>l("dt",null,"套餐名称",-1)),Sdt={key:1},Edt=Gn(()=>l("dt",null,"积分数量",-1)),$dt={key:2},xdt=Gn(()=>l("dt",null,"订单原价",-1)),Tdt={key:3},Idt=Gn(()=>l("dt",null,"优惠券抵扣",-1)),Adt={key:4},Ndt=Gn(()=>l("dt",null,"支付时间",-1)),Rdt={key:5},Pdt=Gn(()=>l("dt",null,"下单时间",-1)),Mdt={class:"invoice-detail-card invoice-detail-card--wide"},Bdt=Gn(()=>l("header",{class:"invoice-detail-card__title"},"发票内容",-1)),Ldt={class:"invoice-detail-fields"},Odt=Gn(()=>l("dt",null,"发票类型",-1)),Ddt=Gn(()=>l("dt",null,"发票抬头",-1)),Vdt=Gn(()=>l("dt",null,"纳税人识别号",-1)),Fdt={class:"invoice-detail-fields__mono"},Udt={key:0},zdt=Gn(()=>l("dt",null,"注册地址",-1)),Hdt={key:1},Kdt=Gn(()=>l("dt",null,"注册电话",-1)),qdt={key:2},jdt=Gn(()=>l("dt",null,"开户银行",-1)),Wdt={key:3},Gdt=Gn(()=>l("dt",null,"银行账号",-1)),Ydt={key:4},Xdt=Gn(()=>l("dt",null,"接收邮箱",-1)),Qdt={key:0,class:"invoice-detail-card invoice-detail-card--wide"},Jdt=Gn(()=>l("header",{class:"invoice-detail-card__title"},"电子发票文件",-1)),Zdt={class:"invoice-detail-file"},eft=Gn(()=>l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),l("polyline",{points:"14 2 14 8 20 8"})],-1)),tft=le({__name:"InvoiceApplyDetailView",setup(e){const t=fa(),n=pn(),a=T(!1),s=T(""),o=T(null),r=d=>d||"--",i=async d=>{try{const p=d.replace("/preview/","/download/"),v=await dt.get(p,{responseType:"blob"}),h=URL.createObjectURL(v),m=document.createElement("a");m.href=h,m.download=d.split("/").pop()||"file",document.body.appendChild(m),m.click(),document.body.removeChild(m),URL.revokeObjectURL(h)}catch{}},c=async()=>{a.value=!0,s.value="";try{o.value=await Vqe(Number(t.params.id))}catch(d){o.value=null,s.value=d instanceof Error?d.message:"加载详情失败"}finally{a.value=!1}},u=d=>({pending:"invoice-detail__status--pending",approved:"invoice-detail__status--approved",issued:"invoice-detail__status--issued",rejected:"invoice-detail__status--rejected",reversed:"invoice-detail__status--reversed"})[d||""]||"invoice-detail__status--pending";return ft(()=>{c()}),(d,p)=>(_(),w("section",qut,[l("header",jut,[l("button",{class:"invoice-detail-header__back",onClick:p[0]||(p[0]=v=>f(n).back())},[Wut,Ce(" 返回 ")]),Gut,o.value?(_(),w("span",{key:0,class:V(["invoice-detail__status-badge",u(o.value.status)])},I(o.value.statusName||o.value.status),3)):K("",!0)]),a.value?(_(),w("div",Yut,[l("div",Xut,[(_(),w(_e,null,Re(8,v=>l("div",{key:v,class:"invoice-detail-skeleton__item"},Zut)),64))])])):s.value?(_(),w("div",edt,[tdt,l("p",null,I(s.value),1)])):o.value?(_(),w("div",ndt,[l("article",adt,[sdt,l("dl",odt,[l("div",null,[rdt,l("dd",ldt,I(o.value.applyNo),1)]),l("div",null,[idt,l("dd",null,I(o.value.applyTypeName),1)]),l("div",null,[cdt,l("dd",null,[l("span",{class:V(["invoice-detail__status-dot",`invoice-detail__status-dot--${o.value.status}`])},null,2),Ce(" "+I(o.value.statusName),1)])]),l("div",null,[udt,l("dd",null,I(o.value.createTime),1)]),l("div",null,[ddt,l("dd",null,I(r(o.value.reviewTime)),1)]),l("div",null,[fdt,l("dd",null,I(r(o.value.reviewComment)),1)]),l("div",pdt,[vdt,l("dd",null,I(r(o.value.remark)),1)])])]),l("article",hdt,[mdt,l("dl",gdt,[l("div",null,[_dt,l("dd",ydt,I(o.value.orderNo),1)]),l("div",null,[bdt,l("dd",wdt,"¥"+I(o.value.payAmount),1)]),o.value.packageName?(_(),w("div",Cdt,[kdt,l("dd",null,I(o.value.packageName),1)])):K("",!0),o.value.creditAmount?(_(),w("div",Sdt,[Edt,l("dd",null,I(o.value.creditAmount),1)])):K("",!0),o.value.orderAmount?(_(),w("div",$dt,[xdt,l("dd",null,"¥"+I(o.value.orderAmount),1)])):K("",!0),o.value.couponDeductAmount?(_(),w("div",Tdt,[Idt,l("dd",null,"¥"+I(o.value.couponDeductAmount),1)])):K("",!0),o.value.payTime?(_(),w("div",Adt,[Ndt,l("dd",null,I(o.value.payTime),1)])):K("",!0),o.value.orderCreateTime?(_(),w("div",Rdt,[Pdt,l("dd",null,I(o.value.orderCreateTime),1)])):K("",!0)])]),l("article",Mdt,[Bdt,l("dl",Ldt,[l("div",null,[Odt,l("dd",null,I(o.value.invoiceTypeName),1)]),l("div",null,[Ddt,l("dd",null,I(o.value.title),1)]),l("div",null,[Vdt,l("dd",Fdt,I(r(o.value.taxNo)),1)]),o.value.address?(_(),w("div",Udt,[zdt,l("dd",null,I(o.value.address),1)])):K("",!0),o.value.phone?(_(),w("div",Hdt,[Kdt,l("dd",null,I(o.value.phone),1)])):K("",!0),o.value.bankName?(_(),w("div",qdt,[jdt,l("dd",null,I(o.value.bankName),1)])):K("",!0),o.value.bankAccount?(_(),w("div",Wdt,[Gdt,l("dd",null,I(o.value.bankAccount),1)])):K("",!0),o.value.email?(_(),w("div",Ydt,[Xdt,l("dd",null,I(o.value.email),1)])):K("",!0)])]),o.value.fileUrl?(_(),w("article",Qdt,[Jdt,l("div",Zdt,[eft,l("a",{class:"invoice-detail-file__link",onClick:p[1]||(p[1]=qe(v=>i(o.value.fileUrl),["prevent"]))}," 下载发票文件 ")])])):K("",!0)])):K("",!0)]))}}),nft=Ct(tft,[["__scopeId","data-v-0aa306a5"]]),ir=e=>(xt("data-v-5189c675"),e=e(),Tt(),e),aft={class:"nc-page page-container"},sft={class:"nc-header"},oft={class:"nc-header__inner"},rft=mn('

    消息中心

    查看系统通知和平台公告

    ',1),lft=["disabled","aria-label"],ift=ir(()=>l("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[l("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8S1 12 1 12z"}),l("circle",{cx:"12",cy:"12",r:"3"})],-1)),cft={class:"nc-filters"},uft={class:"nc-filters__row"},dft=ir(()=>l("span",{class:"nc-filters__label"},"状态",-1)),fft={class:"nc-filters__tabs"},pft=["onClick"],vft={key:0,class:"nc-filter-pill__badge"},hft={class:"nc-filters__row"},mft=ir(()=>l("span",{class:"nc-filters__label"},"类型",-1)),gft={class:"nc-filters__tabs"},_ft=["onClick"],yft={key:0,class:"nc-list"},bft=mn('
    ',2),wft=[bft],Cft={key:1,class:"nc-state",role:"alert"},kft=mn('

    加载失败

    ',2),Sft={class:"nc-state__desc"},Eft={key:2,class:"nc-state"},$ft=ir(()=>l("div",{class:"nc-state__icon","aria-hidden":"true"},[l("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"},[l("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),l("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})])],-1)),xft={class:"nc-state__title"},Tft={key:0,class:"nc-state__desc"},Ift={class:"nc-state__actions"},Aft={class:"nc-list",role:"list"},Nft=["aria-label","onClick","onKeydown"],Rft={key:0,class:"nc-card__accent","aria-hidden":"true"},Pft={class:"nc-card__icon-wrap","aria-hidden":"true"},Mft={key:0,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"},Bft=ir(()=>l("path",{d:"M3 11v2a1 1 0 0 0 1 1h3l5 4V6L7 10H4a1 1 0 0 0-1 1z"},null,-1)),Lft=ir(()=>l("path",{d:"M16 8a5 5 0 0 1 0 8"},null,-1)),Oft=[Bft,Lft],Dft={key:1,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"},Vft=ir(()=>l("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"},null,-1)),Fft=[Vft],Uft={key:2,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"},zft=ir(()=>l("circle",{cx:"12",cy:"12",r:"3"},null,-1)),Hft=ir(()=>l("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09a1.65 1.65 0 0 0-1-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09a1.65 1.65 0 0 0 1.51-1 1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H10a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V10a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"},null,-1)),Kft=[zft,Hft],qft={class:"nc-card__body"},jft={class:"nc-card__headline"},Wft={key:0,class:"nc-card__summary"},Gft={class:"nc-card__bottom"},Yft=["datetime"],Xft={key:0,class:"nc-card__unread-dot","aria-hidden":"true"},Qft={class:"nc-list__footer"},Jft={class:"nc-detail-header"},Zft={key:1,class:"nc-detail-header__tag nc-detail-header__tag--skeleton","aria-hidden":"true"},ept={class:"nc-detail-header__title"},tpt={key:0,class:"nc-detail-loading"},npt={class:"nc-detail-meta"},apt={class:"nc-detail-meta__item"},spt=ir(()=>l("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[l("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),l("circle",{cx:"12",cy:"7",r:"4"})],-1)),opt=ir(()=>l("div",{class:"nc-detail-meta__divider","aria-hidden":"true"},null,-1)),rpt={class:"nc-detail-meta__item"},lpt=ir(()=>l("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[l("circle",{cx:"12",cy:"12",r:"10"}),l("polyline",{points:"12 6 12 12 16 14"})],-1)),ipt=["datetime"],cpt=["innerHTML"],upt=le({__name:"NotificationCenterView",setup(e){const t=[{value:"",label:"全部"},{value:"unread",label:"未读"},{value:"read",label:"已读"}],n=[{value:"",label:"全部类型"},{value:"announcement",label:"公告"},{value:"system_notice",label:"系统通知"},{value:"feedback_notice",label:"反馈通知"}],a={announcement:"公告",system_notice:"系统通知",feedback_notice:"反馈通知"},s=T(""),o=T(""),r=fa(),i=pn(),c=$0(),u=_a(),{unreadCount:d}=Zx(c),p=T(!1),v=T(""),h=T([]),m=T(0),g=T(1),y=T(10),b=[10,20,50],C=T(!1),k=T(!1),S=T(!1),$=T(!1),E=T(null),R=x(()=>{var J;return qc(((J=E.value)==null?void 0:J.content)||"")}),A=x(()=>{var J;return(J=E.value)!=null&&J.notifyType?a[E.value.notifyType]:""}),N=x(()=>{var J,ee;if(!((J=E.value)!=null&&J.bizType))return null;if(E.value.bizType==="feedback"&&E.value.bizId)return{label:"前往反馈详情",action:()=>i.push(`/feedbacks/${E.value.bizId}`)};if(E.value.bizType==="coupon")return{label:"前往我的券码",action:()=>i.push({name:"coupons"})};if(E.value.bizType==="service_group"){const Q=((ee=u.userInfo)==null?void 0:ee.userType)==="enterprise";return{label:Q?"前往企业成员":"前往服务组",action:()=>i.push({name:Q?"enterprise-seats":"service-groups"})}}return null}),P=async()=>{p.value=!0,v.value="";try{const J={pageNum:g.value,pageSize:y.value};s.value&&(J.readStatus=s.value),o.value&&(J.notifyType=o.value);const ee=await U2(J);h.value=ee.list,m.value=ee.total,C.value=ee.list.some(Q=>!Q.read)}catch{v.value="加载消息失败,请稍后重试"}finally{p.value=!1}},B=async J=>{$.value=!0,E.value=null;try{E.value=await Lhe(J),S.value=!0;const ee=h.value.find(Q=>Q.id===J);ee&&!ee.read&&(ee.read=!0,C.value=h.value.some(Q=>!Q.read),c.markOneAsRead())}catch{}finally{$.value=!1}},M=async()=>{try{await c.refreshUnreadCount()}catch{}},j=J=>{s.value=J,g.value=1,P()},F=J=>{o.value=J,g.value=1,P()},q=async()=>{if(!(!C.value||k.value)){k.value=!0;try{await Z6(),rt.success("已全部标记为已读"),h.value.forEach(J=>{J.read=!0}),C.value=!1,c.clearUnreadCount()}catch{}finally{k.value=!1}}},L=J=>{J!==g.value&&(g.value=J,P())},U=J=>{!b.includes(J)||J===y.value||(g.value=1,y.value=J,P())},O=async J=>{B(J.id)},G=()=>{S.value=!1,E.value=null,r.query.id&&i.replace({name:"user-notifications"})},ae=J=>{if(!J)return"";const ee=new Date(J).getTime();if(Number.isNaN(ee))return J;const Q=Date.now()-ee,H=60*1e3,X=60*H,he=24*X;return Qs.value==="unread"?"暂无未读消息":s.value==="read"?"暂无已读消息":o.value?"没有符合条件的消息":"暂无消息"),te=()=>i.push("/"),ie=x(()=>!!s.value||!!o.value),oe=()=>{s.value="",o.value="",g.value=1,P()};return ft(async()=>{await Promise.all([P(),M()]);const J=Number(r.query.id);!Number.isNaN(J)&&J>0&&B(J)}),(J,ee)=>{const Q=Ne("el-pagination"),H=Ne("el-drawer");return _(),w("div",aft,[l("header",sft,[l("div",oft,[rft,l("button",{class:"nc-mark-read",type:"button",disabled:!C.value||k.value,"aria-label":C.value?"全部标记为已读":"没有未读消息",onClick:q},[ift,l("span",null,I(k.value?"处理中…":"全部已读"),1)],8,lft)])]),l("div",cft,[l("div",uft,[dft,l("div",fft,[(_(),w(_e,null,Re(t,X=>l("button",{key:X.value,class:V(["nc-filter-pill",{"nc-filter-pill--active":s.value===X.value}]),onClick:he=>j(X.value)},[Ce(I(X.label)+" ",1),X.value==="unread"&&f(d)>0?(_(),w("span",vft,I(f(d)>99?"99+":f(d)),1)):K("",!0)],10,pft)),64))])]),l("div",hft,[mft,l("div",gft,[(_(),w(_e,null,Re(n,X=>l("button",{key:X.value,class:V(["nc-filter-pill nc-filter-pill--secondary",{"nc-filter-pill--active":o.value===X.value}]),onClick:he=>F(X.value)},I(X.label),11,_ft)),64))])])]),p.value?(_(),w("div",yft,[(_(),w(_e,null,Re(5,X=>l("div",{key:X,class:"nc-skeleton"},wft)),64))])):v.value?(_(),w("div",Cft,[kft,l("p",Sft,I(v.value),1),l("button",{type:"button",class:"nc-state__action",onClick:P},"重新加载")])):h.value.length===0?(_(),w("div",Eft,[$ft,l("h3",xft,I(Z.value),1),ie.value?(_(),w("p",Tft,"尝试调整筛选条件查看更多消息")):K("",!0),l("div",Ift,[ie.value?(_(),w("button",{key:0,type:"button",class:"nc-state__action",onClick:oe},"清除筛选")):(_(),w("button",{key:1,type:"button",class:"nc-state__action nc-state__action--secondary",onClick:te},"去首页看看"))])])):(_(),w(_e,{key:3},[l("div",Aft,[(_(!0),w(_e,null,Re(h.value,X=>(_(),w("article",{key:X.id,class:V(["nc-card",{"nc-card--unread":!X.read}]),role:"listitem",tabindex:"0","aria-label":X.title+(X.read?"":",未读"),onClick:he=>O(X),onKeydown:yn(qe(he=>O(X),["prevent"]),["enter"])},[X.read?K("",!0):(_(),w("div",Rft)),l("div",Pft,[X.notifyType==="announcement"?(_(),w("svg",Mft,Oft)):X.notifyType==="feedback_notice"?(_(),w("svg",Dft,Fft)):(_(),w("svg",Uft,Kft))]),l("div",qft,[l("div",jft,[l("h3",{class:V(["nc-card__title",{"is-unread":!X.read}])},I(X.title),3),l("span",{class:V(["nc-card__tag",{"nc-card__tag--announce":X.notifyType==="announcement","nc-card__tag--feedback":X.notifyType==="feedback_notice","nc-card__tag--system":X.notifyType==="system_notice"}])},I(a[X.notifyType]),3)]),X.summary?(_(),w("p",Wft,I(X.summary),1)):K("",!0),l("div",Gft,[l("time",{class:"nc-card__time",datetime:X.sendTime},I(ae(X.sendTime)),9,Yft),X.read?K("",!0):(_(),w("span",Xft))])])],42,Nft))),128))]),l("footer",Qft,[z(Q,{background:"",layout:"total, sizes, prev, pager, next","current-page":g.value,"page-size":y.value,"page-sizes":b,total:m.value,"popper-class":"nc-list__pagination-dropdown mall-select-red-dropdown",onCurrentChange:L,onSizeChange:U},null,8,["current-page","page-size","total"])])],64)),z(H,{modelValue:S.value,"onUpdate:modelValue":ee[1]||(ee[1]=X=>S.value=X),size:"520px",direction:"rtl","close-on-click-modal":!1,onClose:G},{title:W(()=>{var X;return[l("div",Jft,[E.value?(_(),w("span",{key:0,class:V(["nc-detail-header__tag",{"nc-detail-header__tag--announce":E.value.notifyType==="announcement","nc-detail-header__tag--feedback":E.value.notifyType==="feedback_notice","nc-detail-header__tag--system":E.value.notifyType==="system_notice"}])},I(A.value),3)):K("",!0),E.value?K("",!0):(_(),w("span",Zft)),l("h2",ept,I(((X=E.value)==null?void 0:X.title)||"加载中…"),1)])]}),default:W(()=>[$.value?(_(),w("div",tpt,"加载中…")):E.value?(_(),w(_e,{key:1},[l("div",npt,[l("div",apt,[spt,l("span",null,I(E.value.senderName),1)]),opt,l("div",rpt,[lpt,l("time",{datetime:E.value.sendTime},I(E.value.sendTime),9,ipt)])]),l("div",{class:"nc-detail-body",innerHTML:R.value},null,8,cpt),N.value?(_(),w("button",{key:0,class:"nc-detail-coupon-action",type:"button",onClick:ee[0]||(ee[0]=(...X)=>N.value.action&&N.value.action(...X))},I(N.value.label),1)):K("",!0)],64)):K("",!0)]),_:1},8,["modelValue"])])}}}),dpt=Ct(upt,[["__scopeId","data-v-5189c675"]]),fpt=[{path:"/",component:H0e,children:[{path:"",name:"home",component:K1e,meta:{title:"首页",module:"运营活动与导航"}},{path:"models",name:"models",component:Vxe,meta:{title:"模型列表",module:"模型服务",description:"支持游客浏览模型、筛选分类和查看模型简介。"}},{path:"__sandbox__/model-service",name:"model-service-sandbox",component:V5e,meta:{title:"模型服务 Sandbox",module:"模型服务",description:"独立空白页,用于验证模型服务组件与体验链路。"}},{path:"__sandbox__/particle-network",name:"particle-network-sandbox",component:Y5e,meta:{title:"粒子网络测试页",module:"开发测试",description:"Canvas 原生粒子网络视觉效果测试页面。"}},{path:"models/experiences",name:"experience-records",component:Bke,meta:{title:"体验记录",module:"模型服务",requiresAuth:!0,description:"展示模型体验历史记录与详情入口。"}},{path:"models/:id",name:"model-detail",component:Vke,meta:{title:"模型详情",module:"模型服务",description:"承接模型说明、定价、文档入口和体验入口。"}},{path:"models/:id/experience",name:"model-experience",component:xxe,meta:{title:"模型体验",module:"模型服务",requiresAuth:!0,hideFooter:!0,description:"接入流式体验和高级参数设置。"}},{path:"compute",name:"compute-marketplace",component:grt,meta:{title:"算力市场",module:"算力服务",requiresAuth:!1,description:"展示GPU算力资源卡,支持按卡时计费订购。"}},{path:"compute/physical",name:"compute-physical",component:yit,meta:{title:"物理机专区",module:"算力服务",requiresAuth:!1,description:"展示物理机规格与价格。"}},{path:"compute/cloud",name:"compute-cloud",component:gct,meta:{title:"云主机专区",module:"算力服务",requiresAuth:!1,description:"展示云主机规格与价格。"}},{path:"compute/confirm",name:"compute-order-confirm",component:wlt,meta:{title:"算力订单确认",module:"算力服务",requiresAuth:!0,description:"确认算力设备、卡时套餐和购买数量,选择支付方式后提交订单。"}},{path:"activities",name:"activities",component:vCe,meta:{title:"活动中心",module:"运营活动",requiresAuth:!1,description:"展示进行中活动、优惠信息和领取入口。"}},{path:"credits/purchase",name:"credit-purchase",component:JDe,meta:{title:"积分购买",module:"积分与计费",requiresAuth:!0,description:"展示积分套餐、自定义购买和充值折扣券入口。"}},{path:"credits/logs",name:"credit-logs",component:hDe,meta:{title:"积分明细",module:"积分与计费",requiresAuth:!0,description:"展示积分变动流水与筛选能力。"}},{path:"coupons",name:"coupons",component:tke,meta:{title:"我的券码",module:"运营活动",requiresAuth:!0,description:"展示积分券和充值折扣券列表、状态与使用入口。"}},{path:"coupons/redeem",name:"coupon-redeem",component:Ske,meta:{title:"兑换码兑换",module:"运营活动",requiresAuth:!0,description:"用于输入兑换码领取积分券或充值折扣券。"}},{path:"coupons/exchange/:id",name:"coupon-exchange",component:xCe,meta:{title:"积分券兑换",module:"运营活动",requiresAuth:!0,description:"用于确认兑换积分券并回流积分明细页。"}},{path:"orders/confirm",name:"order-confirm",component:Lqe,meta:{title:"订单确认/支付",module:"订单与交易",requiresAuth:!0,description:"用于确认积分购买订单与发起支付。"}},{path:"orders/result",name:"order-result",component:bGe,meta:{title:"支付结果",module:"订单与交易",requiresAuth:!1,description:"展示订单支付结果和到账状态。"}},{path:"orders",name:"orders",component:HWe,meta:{title:"订单中心",module:"订单与交易",requiresAuth:!0,description:"展示订单列表、筛选和继续支付入口。"}},{path:"orders/:id",name:"order-detail",component:Dje,meta:{title:"订单详情",module:"订单与交易",requiresAuth:!0,description:"展示订单快照、支付信息和状态流转。"}},{path:"service-groups",name:"service-groups",component:dZe,meta:{title:"服务组列表",module:"服务组管理",requiresAuth:!0,description:"展示服务组列表、状态和创建入口。"}},{path:"enterprise-seats",name:"enterprise-seats",component:ytt,meta:{title:"企业成员管理",module:"企业成员管理",requiresAuth:!0,description:"展示企业成员列表、额度与批量新增入口。"}},{path:"enterprise-seats/create",name:"enterprise-seat-create",component:cat,meta:{title:"批量新增成员",module:"企业成员管理",requiresAuth:!0,description:"选择模型并一次新增多个企业成员。"}},{path:"enterprise-seats/:id/monitor",name:"enterprise-seat-monitor",component:Hst,meta:{title:"成员 Token 使用监控",module:"企业成员管理",requiresAuth:!0,description:"查看单个企业成员在指定时间范围内的 Token 使用总览与趋势。"}},{path:"service-groups/create",name:"service-group-create",component:z$,meta:{title:"创建服务组",module:"服务组管理",requiresAuth:!0,description:"用于创建服务组并初始授权模型。"}},{path:"service-groups/:id/edit",name:"service-group-edit",component:z$,meta:{title:"编辑服务组",module:"服务组管理",requiresAuth:!0,description:"用于编辑服务组基础信息和授权模型。"}},{path:"service-groups/quota-logs",name:"enterprise-quota-logs",component:$Ze,meta:{title:"企业额度流水",module:"服务组管理",requiresAuth:!0,description:"查看企业账户及服务组的额度变动记录。"}},{path:"service-groups/:id",name:"service-group-detail",component:RQe,meta:{title:"服务组详情",module:"服务组管理",requiresAuth:!0,description:"用于查看 API Key、授权模型和操作记录。"}},{path:"team",name:"team-members",redirect:{name:"service-groups"},meta:{title:"服务组管理",module:"服务组管理",requiresAuth:!0,description:"兼容旧团队管理入口,重定向至服务组管理。"}},{path:"team/create",name:"team-member-create",redirect:{name:"service-group-create"},meta:{title:"创建服务组",module:"服务组管理",requiresAuth:!0,description:"兼容旧添加成员入口,重定向至服务组创建页。"}},{path:"intentions/create",name:"intention-create",component:RFe,meta:{title:"意向单提交",module:"意向单与客户运营",requiresAuth:!0,description:"用于提交采购或合作意向。"}},{path:"intentions",name:"intentions",component:U$,meta:{title:"我的意向单",module:"意向单与客户运营",requiresAuth:!0,description:"展示意向单列表、状态和跟进记录。"}},{path:"feedbacks/create",name:"feedback-create",component:XHe,meta:{title:"意见反馈提交",module:"帮助中心",requiresAuth:!0,description:"用于提交意见反馈工单。"}},{path:"feedbacks/:id",name:"feedback-detail",component:jze,meta:{title:"反馈详情",module:"帮助中心",requiresAuth:!0,description:"查看反馈会话时间线并追问。"}},{path:"user/intentions",name:"user-intentions",component:U$,meta:{userCenter:!0,title:"我的意向单",module:"用户信息管理",requiresAuth:!0,description:"个人中心内嵌的意向单列表。"}},{path:"user/feedbacks",name:"user-feedbacks",component:hHe,meta:{userCenter:!0,title:"我的反馈",module:"帮助中心",requiresAuth:!0,description:"个人中心内嵌的反馈列表,可进入详情追问。"}},{path:"support",name:"support",component:w4e,meta:{title:"帮助中心",module:"帮助中心",requiresAuth:!1,description:"帮助中心文档与反馈入口。"}},{path:"apps",name:"apps",component:nTe,meta:{title:"应用市场",module:"应用管理",requiresAuth:!1,description:"展示已上架应用列表,支持分类筛选和外链跳转。"}},{path:"apps/:id",name:"app-detail",component:L3e,meta:{title:"应用详情",module:"应用管理",requiresAuth:!1,description:"展示应用详情与体验入口。"}},{path:"services",name:"services",component:c8e,meta:{title:"服务市场",module:"应用管理",requiresAuth:!1,description:"展示已上架服务列表,支持分类筛选和外链跳转。"}},{path:"services/:id",name:"service-detail",component:VIe,meta:{title:"服务详情",module:"应用管理",requiresAuth:!1,description:"展示服务详情与体验入口。"}},{path:"external-link",name:"external-link",component:a5e,meta:{title:"外部链接",module:"应用管理",requiresAuth:!1,description:"外部链接跳转中转提示页。"}},{path:"user/profile",name:"user-profile",component:WPe,meta:{userCenter:!0,title:"个人中心",module:"用户信息管理",requiresAuth:!0,description:"展示账户概览、快捷入口和最新订单。"}},{path:"user/enterprise-verification",name:"enterprise-verification",component:sBe,meta:{userCenter:!0,title:"企业认证",module:"用户信息管理",requiresAuth:!0,description:"企业用户提交认证材料、查看审核状态与重新提交入口。"}},{path:"user/usage",name:"user-usage",component:tOe,meta:{userCenter:!0,title:"使用记录",module:"用户信息管理",requiresAuth:!0,description:"查看分析您近几天的AI API使用记录。"}},{path:"user/security",name:"user-security",component:ROe,meta:{userCenter:!0,title:"账号安全",module:"用户信息管理",requiresAuth:!0,description:"承接实名认证、密码修改、更换手机号、设备管理入口。"}},{path:"user/invoice-info",name:"user-invoice-info",component:mut,meta:{userCenter:!0,title:"开票信息",module:"用户信息管理",requiresAuth:!0,description:"维护发票抬头与税号等信息。"}},{path:"user/invoice-applies",name:"user-invoice-applies",component:Kut,meta:{userCenter:!0,title:"我的发票",module:"用户信息管理",requiresAuth:!0,description:"查看和管理发票申请记录。"}},{path:"user/invoice-applies/:id",name:"user-invoice-applies-detail",component:nft,meta:{userCenter:!0,title:"发票申请详情",module:"用户信息管理",requiresAuth:!0,description:"查看发票申请进度和发票文件。"}},{path:"notifications",name:"user-notifications",component:dpt,meta:{title:"消息中心",module:"用户信息管理",requiresAuth:!0,description:"查看系统通知和平台公告。"}},{path:"user/phone",name:"user-phone",component:zRe,meta:{userCenter:!0,title:"更换手机号",module:"用户信息管理",requiresAuth:!0,description:"两步完成原手机号验证和新手机号绑定。"}},{path:"user/devices",name:"user-devices",component:yRe,meta:{userCenter:!0,title:"登录设备管理",module:"用户信息管理",requiresAuth:!0,description:"展示已登录设备并支持远程退出。"}}]},{path:"/auth",component:qhe,children:[{path:"login",name:"login",component:pRe,meta:{title:"登录",module:"用户认证",description:"提供验证码登录和密码登录两种方式,并在成功后刷新当前用户信息。"}},{path:"register",name:"register",component:mRe,meta:{title:"注册",module:"用户认证",description:"用于新用户注册并自动登录。"}},{path:"forgot-password",name:"forgot-password",component:oRe,meta:{title:"忘记密码",module:"用户认证",description:"用于重置商城用户登录密码。"}}]},{path:"/:pathMatch(.*)*",name:"not-found",component:Yxe,meta:{title:"页面不存在",module:"系统路由"}}],gw=Ace({history:Gie(),routes:fpt,scrollBehavior(){return{top:0}}});gw.beforeEach(async e=>{var s,o,r;const n=Qp().siteInfo.siteBrowserTitle||Yue();document.title=e.meta.title?`${e.meta.title} - ${n}`:n;const a=_a();if(a.sessionReady||await a.initializeSession(),a.isLoggedIn&&((s=a.userInfo)!=null&&s.firstLogin)&&e.name!=="login")return{name:"login",query:{redirect:e.fullPath}};if(e.name==="login"&&a.isLoggedIn&&!((o=a.userInfo)!=null&&o.firstLogin))return{name:"home",replace:!0};if(!e.meta.requiresAuth)return!0;if(a.isLoggedIn){const i=((r=a.userInfo)==null?void 0:r.userType)==="enterprise";return i&&e.name==="service-groups"?{name:"enterprise-seats"}:i&&e.name==="service-group-create"?{name:"enterprise-seat-create"}:!i&&e.name==="enterprise-seats"?{name:"service-groups"}:!i&&e.name==="enterprise-seat-create"?{name:"service-group-create"}:!i&&e.name==="enterprise-seat-monitor"?{name:"service-groups"}:!0}return{name:"login",query:{redirect:e.fullPath}}});const GA=Object.freeze(Object.defineProperty({__proto__:null,default:gw},Symbol.toStringTag,{value:"Module"})),L0=Gx(Fhe),_w=SP();L0.use(_w);L0.use(gw);L0.use(Iie,{locale:Aie});_a(_w).initializeSession();Qp(_w).ensureLoaded();L0.mount("#app")});export default ppt(); function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = [] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) }