83 lines
1.5 MiB
Plaintext
83 lines
1.5 MiB
Plaintext
var n3e=Object.defineProperty;var cR=Rn=>{throw TypeError(Rn)};var s3e=(Rn,Ln,Qt)=>Ln in Rn?n3e(Rn,Ln,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Rn[Ln]=Qt;var Ut=(Rn,Ln,Qt)=>s3e(Rn,typeof Ln!="symbol"?Ln+"":Ln,Qt),Vw=(Rn,Ln,Qt)=>Ln.has(Rn)||cR("Cannot "+Qt);var y=(Rn,Ln,Qt)=>(Vw(Rn,Ln,"read from private field"),Qt?Qt.call(Rn):Ln.get(Rn)),ne=(Rn,Ln,Qt)=>Ln.has(Rn)?cR("Cannot add the same private member more than once"):Ln instanceof WeakSet?Ln.add(Rn):Ln.set(Rn,Qt),q=(Rn,Ln,Qt,sr)=>(Vw(Rn,Ln,"write to private field"),sr?sr.call(Rn,Qt):Ln.set(Rn,Qt),Qt),oe=(Rn,Ln,Qt)=>(Vw(Rn,Ln,"access private method"),Qt);var Ha=(Rn,Ln,Qt,sr)=>({set _(en){q(Rn,Ln,en,Qt)},get _(){return y(Rn,Ln,sr)}});(function(){"use strict";var pl,Hb,Hw,Nv,Ec,Xu,Tr,Ju,$v,Dv,Cb,uR,$a,dR,fR,Wb,hR,Ww,Fv,Zu,Qu,Ac,pR,vR,mR,Sb,gh,Bv,wa,bh,jb,bs,Tc,Vv,us,xb,gR,yh,wo,Ls,Zs,wh,ml,_h,qo,Mc,ed,Ch,td,mi,Mr,nd,zv,Hv,Sh,Wv,gi,Pc,xh,Rc,bi,Eb,Ic,jv,Oc,sd,Kv,Uv,Hs,Fn,gl,ad,qv,Gv,Lc,yi,bl,Yv,Go,St,Kb,jw,bR,yR,Ub,wR,_R,CR,Kw,SR,Uw,qw,xR,Wa,ql,kR,ER,Gw,AR,f2,Yw,Ws,wi,Pr,Eh,_i,_o,Ah,Ci,no,yl,od,Si,Nc,Rr,h2,qb,Xv,rd,Jv,Zv,Qv,em,tm,Th,wl,id,$c,_l,TR,MR,Xw,ld,Ir,es,Mh,Dc,nm,cd,Qs,ud,Cl,Fc,sm,dd,Co,am,fd,Sl,xi,Ph,Rh,Yo,hd,om,Ab,Kt,Jw,rm,Zw,Gb,PR,RR,Qw,Yb,e_,IR,OR,LR,t_,NR,n_,$R,DR,FR,s_,p2,pd,vd,js,Tb,BR,im,Ih,Oh,Xo,VR,zR,HR,Xb,lm,md,Lh,xl,kl,_a,gd,bd,Rt,ka,v2,E0,Jb,A0,WR,a_,T0,m2,g2,o_,b2,Or,r_,i_,l_,cm,um,yd,dm,fm,hm,pm,Nh,Bc,Bn,$h,Dh,vm,c_,lR,Vc,so,mm,gm,wd,El,bm,ym,_d,Fh,Bh,zc,Vh,wm,zh,Cd,_m,Cm,Sd,xd,Sm,Hc,Hh,Al,jR,KR,u_,So,Zb,d_,UR,qR,Pb,Wc,Tl,Jo,M0,Qb,Ml,Ib,Ob,kd,Ed,Wh,e4,jh,t4,Pl,ki,Kh,Uh,Rl,Ad,y2,xo,xm,f_,jc,Kc,Td,Pd,qh,Gh,km,h_,ko,af,GR,YR,Yh,Lb,Nb,Xh,Rd,ms,Il,Jh,Em,Am,Zh,Ol,Lr,Ll,Tm,Nl,Mm,Id,Od,Wn,n4,p_,XR,JR,ZR,QR,s4,a4,v_,Pm,Rm,Im,Om,Lm,Ld,Nm,m_,$m,Dm,g_,Fm,Nd,$d,Bm,Dd,eI,b_,Nr,Eo,Vm,Fd,Ao,As,tI,nI,sI,o4,$l,r4,i4,aI,y_,oI,To,$r,Qh,e0,Ei,gn,Bd,Vd,zm,Hm,t0,n0,Uc,Wm,$b,Db,$s,w2,rI,iI,lI,cI,uI,dI,s0,zd,Fl,jm,Mo,Km,ys,Fb,fI,Um,qm,qc,Dr,Fa,hI,l4,pI,vI,w_,Gm,a0,Fr,Hd,o0,Ds,Ym,r0,Xm,Jm,Gc,Br,i0,Zm,jn,__,C_,S_,of,mI,su,l0,Qm,Bl,Wd,c0,oo,e2,t2,jd,Zo,Po,ea,u0,Vl,Ca,d0,Qo,n2,cn,x_,c4,gI,bI,yI,k_,rf,er,P0,wI,u4,_2,_I,CI,SI,xI,kI,Kd,Ro,f0,Ks,Ud,qd,Yc,Xc,Jc,Gd,kn,E_,A_,T_,C2,EI,d4,S2,R0,Ai,Us,qs,Yd,h0,Ba,ta,tr,Xd,Jd,Zd,p0,f4,Va,s2,a2,Io,Ti,Mi,v0,m0,g0,na,Gl,AI,TI,MI,b0,Bb,PI,ds,sa,Zc,zl,Qc,w0,Pi,Ri,Oo,_0,Mn,x2,k2,h4,M_,p4,P_,v4,RI,Qd,C0,Ii,eu,Hl,nr,tu,S0,ef,Vr,Wl,Sa,jl,Vt,nu,rs,II,Li,R_,I_,m4,Hr,r2,za,tf,Vb,OI,Oi,O_,LI,L_;var Rn=typeof document<"u"?document.currentScript:null;/**
|
||
* @vue/shared v3.5.28
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function Ln(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Qt={},sr=[],en=()=>{},N_=()=>!1,E2=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),g4=e=>e.startsWith("onUpdate:"),ws=Object.assign,b4=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},NI=Object.prototype.hasOwnProperty,qt=(e,t)=>NI.call(e,t),Ae=Array.isArray,lf=e=>I0(e)==="[object Map]",A2=e=>I0(e)==="[object Set]",Yl=e=>I0(e)==="[object Date]",Qe=e=>typeof e=="function",Xe=e=>typeof e=="string",ar=e=>typeof e=="symbol",bt=e=>e!==null&&typeof e=="object",au=e=>(bt(e)||Qe(e))&&Qe(e.then)&&Qe(e.catch),$_=Object.prototype.toString,I0=e=>$_.call(e),$I=e=>I0(e).slice(8,-1),O0=e=>I0(e)==="[object Object]",T2=e=>Xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,L0=Ln(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),M2=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},DI=/-\w/g,Ea=M2(e=>e.replace(DI,t=>t.slice(1).toUpperCase())),FI=/\B([A-Z])/g,Ni=M2(e=>e.replace(FI,"-$1").toLowerCase()),N0=M2(e=>e.charAt(0).toUpperCase()+e.slice(1)),$0=M2(e=>e?`on${N0(e)}`:""),Xl=(e,t)=>!Object.is(e,t),P2=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},D_=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},y4=e=>{const t=parseFloat(e);return isNaN(t)?e:t},BI=e=>{const t=Xe(e)?Number(e):NaN;return isNaN(t)?e:t};let F_;const R2=()=>F_||(F_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function et(e){if(Ae(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],a=Xe(s)?WI(s):et(s);if(a)for(const o in a)t[o]=a[o]}return t}else if(Xe(e)||bt(e))return e}const VI=/;(?![^(]*\))/g,zI=/:([^]+)/,HI=/\/\*[^]*?\*\//g;function WI(e){const t={};return e.replace(HI,"").split(VI).forEach(n=>{if(n){const s=n.split(zI);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function D(e){let t="";if(Xe(e))t=e;else if(Ae(e))for(let n=0;n<e.length;n++){const s=D(e[n]);s&&(t+=s+" ")}else if(bt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function $i(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Xe(t)&&(e.class=D(t)),n&&(e.style=et(n)),e}const jI=Ln("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function B_(e){return!!e||e===""}function KI(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=ou(e[s],t[s]);return n}function ou(e,t){if(e===t)return!0;let n=Yl(e),s=Yl(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=ar(e),s=ar(t),n||s)return e===t;if(n=Ae(e),s=Ae(t),n||s)return n&&s?KI(e,t):!1;if(n=bt(e),s=bt(t),n||s){if(!n||!s)return!1;const a=Object.keys(e).length,o=Object.keys(t).length;if(a!==o)return!1;for(const r in e){const i=e.hasOwnProperty(r),l=t.hasOwnProperty(r);if(i&&!l||!i&&l||!ou(e[r],t[r]))return!1}}return String(e)===String(t)}function V_(e,t){return e.findIndex(n=>ou(n,t))}const z_=e=>!!(e&&e.__v_isRef===!0),ge=e=>Xe(e)?e:e==null?"":Ae(e)||bt(e)&&(e.toString===$_||!Qe(e.toString))?z_(e)?ge(e.value):JSON.stringify(e,H_,2):String(e),H_=(e,t)=>z_(t)?H_(e,t.value):lf(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,a],o)=>(n[w4(s,o)+" =>"]=a,n),{})}:A2(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>w4(n))}:ar(t)?w4(t):bt(t)&&!Ae(t)&&!O0(t)?String(t):t,w4=(e,t="")=>{var n;return ar(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
||
* @vue/reactivity v3.5.28
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let oa;class W_{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=oa,!t&&oa&&(this.index=(oa.scopes||(oa.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=oa;try{return oa=this,t()}finally{oa=n}}}on(){++this._on===1&&(this.prevScope=oa,oa=this)}off(){this._on>0&&--this._on===0&&(oa=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0}}}function UI(e){return new W_(e)}function j_(){return oa}function K_(e,t=!1){oa&&oa.cleanups.push(e)}let qn;const _4=new WeakSet;class U_{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,oa&&oa.active&&oa.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,_4.has(this)&&(_4.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||G_(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Q_(this),Y_(this);const t=qn,n=or;qn=this,or=!0;try{return this.fn()}finally{X_(this),qn=t,or=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)k4(t);this.deps=this.depsTail=void 0,Q_(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?_4.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){x4(this)&&this.run()}get dirty(){return x4(this)}}let q_=0,D0,F0;function G_(e,t=!1){if(e.flags|=8,t){e.next=F0,F0=e;return}e.next=D0,D0=e}function C4(){q_++}function S4(){if(--q_>0)return;if(F0){let t=F0;for(F0=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;D0;){let t=D0;for(D0=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Y_(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function X_(e){let t,n=e.depsTail,s=n;for(;s;){const a=s.prevDep;s.version===-1?(s===n&&(n=a),k4(s),qI(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=a}e.deps=t,e.depsTail=n}function x4(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(J_(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function J_(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===B0)||(e.globalVersion=B0,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!x4(e))))return;e.flags|=2;const t=e.dep,n=qn,s=or;qn=e,or=!0;try{Y_(e);const a=e.fn(e._value);(t.version===0||Xl(a,e._value))&&(e.flags|=128,e._value=a,t.version++)}catch(a){throw t.version++,a}finally{qn=n,or=s,X_(e),e.flags&=-3}}function k4(e,t=!1){const{dep:n,prevSub:s,nextSub:a}=e;if(s&&(s.nextSub=a,e.prevSub=void 0),a&&(a.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)k4(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function qI(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let or=!0;const Z_=[];function jr(){Z_.push(or),or=!1}function Kr(){const e=Z_.pop();or=e===void 0?!0:e}function Q_(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=qn;qn=void 0;try{t()}finally{qn=n}}}let B0=0;class GI{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class E4{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!qn||!or||qn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==qn)n=this.activeLink=new GI(qn,this),qn.deps?(n.prevDep=qn.depsTail,qn.depsTail.nextDep=n,qn.depsTail=n):qn.deps=qn.depsTail=n,eC(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=qn.depsTail,n.nextDep=void 0,qn.depsTail.nextDep=n,qn.depsTail=n,qn.deps===n&&(qn.deps=s)}return n}trigger(t){this.version++,B0++,this.notify(t)}notify(t){C4();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{S4()}}}function eC(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)eC(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const I2=new WeakMap,ru=Symbol(""),A4=Symbol(""),V0=Symbol("");function ra(e,t,n){if(or&&qn){let s=I2.get(e);s||I2.set(e,s=new Map);let a=s.get(n);a||(s.set(n,a=new E4),a.map=s,a.key=n),a.track()}}function Di(e,t,n,s,a,o){const r=I2.get(e);if(!r){B0++;return}const i=l=>{l&&l.trigger()};if(C4(),t==="clear")r.forEach(i);else{const l=Ae(e),c=l&&T2(n);if(l&&n==="length"){const u=Number(s);r.forEach((f,h)=>{(h==="length"||h===V0||!ar(h)&&h>=u)&&i(f)})}else switch((n!==void 0||r.has(void 0))&&i(r.get(n)),c&&i(r.get(V0)),t){case"add":l?c&&i(r.get("length")):(i(r.get(ru)),lf(e)&&i(r.get(A4)));break;case"delete":l||(i(r.get(ru)),lf(e)&&i(r.get(A4)));break;case"set":lf(e)&&i(r.get(ru));break}}S4()}function YI(e,t){const n=I2.get(e);return n&&n.get(t)}function cf(e){const t=pn(e);return t===e?t:(ra(t,"iterate",V0),io(e)?t:t.map(rr))}function O2(e){return ra(e=pn(e),"iterate",V0),e}function Jl(e,t){return Bi(e)?uf(lu(e)?rr(t):t):rr(t)}const XI={__proto__:null,[Symbol.iterator](){return T4(this,Symbol.iterator,e=>Jl(this,e))},concat(...e){return cf(this).concat(...e.map(t=>Ae(t)?cf(t):t))},entries(){return T4(this,"entries",e=>(e[1]=Jl(this,e[1]),e))},every(e,t){return Fi(this,"every",e,t,void 0,arguments)},filter(e,t){return Fi(this,"filter",e,t,n=>n.map(s=>Jl(this,s)),arguments)},find(e,t){return Fi(this,"find",e,t,n=>Jl(this,n),arguments)},findIndex(e,t){return Fi(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Fi(this,"findLast",e,t,n=>Jl(this,n),arguments)},findLastIndex(e,t){return Fi(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Fi(this,"forEach",e,t,void 0,arguments)},includes(...e){return M4(this,"includes",e)},indexOf(...e){return M4(this,"indexOf",e)},join(e){return cf(this).join(e)},lastIndexOf(...e){return M4(this,"lastIndexOf",e)},map(e,t){return Fi(this,"map",e,t,void 0,arguments)},pop(){return z0(this,"pop")},push(...e){return z0(this,"push",e)},reduce(e,...t){return tC(this,"reduce",e,t)},reduceRight(e,...t){return tC(this,"reduceRight",e,t)},shift(){return z0(this,"shift")},some(e,t){return Fi(this,"some",e,t,void 0,arguments)},splice(...e){return z0(this,"splice",e)},toReversed(){return cf(this).toReversed()},toSorted(e){return cf(this).toSorted(e)},toSpliced(...e){return cf(this).toSpliced(...e)},unshift(...e){return z0(this,"unshift",e)},values(){return T4(this,"values",e=>Jl(this,e))}};function T4(e,t,n){const s=O2(e),a=s[t]();return s!==e&&!io(e)&&(a._next=a.next,a.next=()=>{const o=a._next();return o.done||(o.value=n(o.value)),o}),a}const JI=Array.prototype;function Fi(e,t,n,s,a,o){const r=O2(e),i=r!==e&&!io(e),l=r[t];if(l!==JI[t]){const f=l.apply(e,o);return i?rr(f):f}let c=n;r!==e&&(i?c=function(f,h){return n.call(this,Jl(e,f),h,e)}:n.length>2&&(c=function(f,h){return n.call(this,f,h,e)}));const u=l.call(r,c,s);return i&&a?a(u):u}function tC(e,t,n,s){const a=O2(e);let o=n;return a!==e&&(io(e)?n.length>3&&(o=function(r,i,l){return n.call(this,r,i,l,e)}):o=function(r,i,l){return n.call(this,r,Jl(e,i),l,e)}),a[t](o,...s)}function M4(e,t,n){const s=pn(e);ra(s,"iterate",V0);const a=s[t](...n);return(a===-1||a===!1)&&B2(n[0])?(n[0]=pn(n[0]),s[t](...n)):a}function z0(e,t,n=[]){jr(),C4();const s=pn(e)[t].apply(e,n);return S4(),Kr(),s}const ZI=Ln("__proto__,__v_isRef,__isVue"),nC=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ar));function QI(e){ar(e)||(e=String(e));const t=pn(this);return ra(t,"has",e),t.hasOwnProperty(e)}class sC{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const a=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!a;if(n==="__v_isReadonly")return a;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(a?o?cC:lC:o?iC:rC).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=Ae(t);if(!a){let l;if(r&&(l=XI[n]))return l;if(n==="hasOwnProperty")return QI}const i=Reflect.get(t,n,yn(t)?t:s);if((ar(n)?nC.has(n):ZI(n))||(a||ra(t,"get",n),o))return i;if(yn(i)){const l=r&&T2(n)?i:i.value;return a&&bt(l)?iu(l):l}return bt(i)?a?iu(i):Gt(i):i}}class aC extends sC{constructor(t=!1){super(!1,t)}set(t,n,s,a){let o=t[n];const r=Ae(t)&&T2(n);if(!this._isShallow){const c=Bi(o);if(!io(s)&&!Bi(s)&&(o=pn(o),s=pn(s)),!r&&yn(o)&&!yn(s))return c||(o.value=s),!0}const i=r?Number(n)<t.length:qt(t,n),l=Reflect.set(t,n,s,yn(t)?t:a);return t===pn(a)&&(i?Xl(s,o)&&Di(t,"set",n,s):Di(t,"add",n,s)),l}deleteProperty(t,n){const s=qt(t,n);t[n];const a=Reflect.deleteProperty(t,n);return a&&s&&Di(t,"delete",n,void 0),a}has(t,n){const s=Reflect.has(t,n);return(!ar(n)||!nC.has(n))&&ra(t,"has",n),s}ownKeys(t){return ra(t,"iterate",Ae(t)?"length":ru),Reflect.ownKeys(t)}}class oC extends sC{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const eO=new aC,tO=new oC,nO=new aC(!0),sO=new oC(!0),P4=e=>e,L2=e=>Reflect.getPrototypeOf(e);function aO(e,t,n){return function(...s){const a=this.__v_raw,o=pn(a),r=lf(o),i=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,c=a[e](...s),u=n?P4:t?uf:rr;return!t&&ra(o,"iterate",l?A4:ru),ws(Object.create(c),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:i?[u(f[0]),u(f[1])]:u(f),done:h}}})}}function N2(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function oO(e,t){const n={get(a){const o=this.__v_raw,r=pn(o),i=pn(a);e||(Xl(a,i)&&ra(r,"get",a),ra(r,"get",i));const{has:l}=L2(r),c=t?P4:e?uf:rr;if(l.call(r,a))return c(o.get(a));if(l.call(r,i))return c(o.get(i));o!==r&&o.get(a)},get size(){const a=this.__v_raw;return!e&&ra(pn(a),"iterate",ru),a.size},has(a){const o=this.__v_raw,r=pn(o),i=pn(a);return e||(Xl(a,i)&&ra(r,"has",a),ra(r,"has",i)),a===i?o.has(a):o.has(a)||o.has(i)},forEach(a,o){const r=this,i=r.__v_raw,l=pn(i),c=t?P4:e?uf:rr;return!e&&ra(l,"iterate",ru),i.forEach((u,f)=>a.call(o,c(u),c(f),r))}};return ws(n,e?{add:N2("add"),set:N2("set"),delete:N2("delete"),clear:N2("clear")}:{add(a){!t&&!io(a)&&!Bi(a)&&(a=pn(a));const o=pn(this);return L2(o).has.call(o,a)||(o.add(a),Di(o,"add",a,a)),this},set(a,o){!t&&!io(o)&&!Bi(o)&&(o=pn(o));const r=pn(this),{has:i,get:l}=L2(r);let c=i.call(r,a);c||(a=pn(a),c=i.call(r,a));const u=l.call(r,a);return r.set(a,o),c?Xl(o,u)&&Di(r,"set",a,o):Di(r,"add",a,o),this},delete(a){const o=pn(this),{has:r,get:i}=L2(o);let l=r.call(o,a);l||(a=pn(a),l=r.call(o,a)),i&&i.call(o,a);const c=o.delete(a);return l&&Di(o,"delete",a,void 0),c},clear(){const a=pn(this),o=a.size!==0,r=a.clear();return o&&Di(a,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(a=>{n[a]=aO(a,e,t)}),n}function $2(e,t){const n=oO(e,t);return(s,a,o)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?s:Reflect.get(qt(n,a)&&a in s?n:s,a,o)}const rO={get:$2(!1,!1)},iO={get:$2(!1,!0)},lO={get:$2(!0,!1)},cO={get:$2(!0,!0)},rC=new WeakMap,iC=new WeakMap,lC=new WeakMap,cC=new WeakMap;function uO(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dO(e){return e.__v_skip||!Object.isExtensible(e)?0:uO($I(e))}function Gt(e){return Bi(e)?e:F2(e,!1,eO,rO,rC)}function D2(e){return F2(e,!1,nO,iO,iC)}function iu(e){return F2(e,!0,tO,lO,lC)}function o3e(e){return F2(e,!0,sO,cO,cC)}function F2(e,t,n,s,a){if(!bt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=dO(e);if(o===0)return e;const r=a.get(e);if(r)return r;const i=new Proxy(e,o===2?s:n);return a.set(e,i),i}function lu(e){return Bi(e)?lu(e.__v_raw):!!(e&&e.__v_isReactive)}function Bi(e){return!!(e&&e.__v_isReadonly)}function io(e){return!!(e&&e.__v_isShallow)}function B2(e){return e?!!e.__v_raw:!1}function pn(e){const t=e&&e.__v_raw;return t?pn(t):e}function Ur(e){return!qt(e,"__v_skip")&&Object.isExtensible(e)&&D_(e,"__v_skip",!0),e}const rr=e=>bt(e)?Gt(e):e,uf=e=>bt(e)?iu(e):e;function yn(e){return e?e.__v_isRef===!0:!1}function F(e){return uC(e,!1)}function bn(e){return uC(e,!0)}function uC(e,t){return yn(e)?e:new fO(e,t)}class fO{constructor(t,n){this.dep=new E4,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:pn(t),this._value=n?t:rr(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||io(t)||Bi(t);t=s?t:pn(t),Xl(t,n)&&(this._rawValue=t,this._value=s?t:rr(t),this.dep.trigger())}}function V2(e){e.dep&&e.dep.trigger()}function d(e){return yn(e)?e.value:e}const hO={get:(e,t,n)=>t==="__v_raw"?e:d(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const a=e[t];return yn(a)&&!yn(n)?(a.value=n,!0):Reflect.set(e,t,n,s)}};function dC(e){return lu(e)?e:new Proxy(e,hO)}function _s(e){const t=Ae(e)?new Array(e.length):{};for(const n in e)t[n]=fC(e,n);return t}class pO{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=pn(t);let a=!0,o=t;if(!Ae(t)||!T2(String(n)))do a=!B2(o)||io(o);while(a&&(o=o.__v_raw));this._shallow=a}get value(){let t=this._object[this._key];return this._shallow&&(t=d(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&yn(this._raw[this._key])){const n=this._object[this._key];if(yn(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return YI(this._raw,this._key)}}class vO{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function sn(e,t,n){return yn(e)?e:Qe(e)?new vO(e):bt(e)&&arguments.length>1?fC(e,t,n):F(e)}function fC(e,t,n){return new pO(e,t,n)}class mO{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new E4(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=B0-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&qn!==this)return G_(this,!0),!0}get value(){const t=this.dep.track();return J_(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function gO(e,t,n=!1){let s,a;return Qe(e)?s=e:(s=e.get,a=e.set),new mO(s,a,n)}const z2={},H2=new WeakMap;let cu;function bO(e,t=!1,n=cu){if(n){let s=H2.get(n);s||H2.set(n,s=[]),s.push(e)}}function yO(e,t,n=Qt){const{immediate:s,deep:a,once:o,scheduler:r,augmentJob:i,call:l}=n,c=_=>a?_:io(_)||a===!1||a===0?Vi(_,1):Vi(_);let u,f,h,p,v=!1,m=!1;if(yn(e)?(f=()=>e.value,v=io(e)):lu(e)?(f=()=>c(e),v=!0):Ae(e)?(m=!0,v=e.some(_=>lu(_)||io(_)),f=()=>e.map(_=>{if(yn(_))return _.value;if(lu(_))return c(_);if(Qe(_))return l?l(_,2):_()})):Qe(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){jr();try{h()}finally{Kr()}}const _=cu;cu=u;try{return l?l(e,3,[p]):e(p)}finally{cu=_}}:f=en,t&&a){const _=f,x=a===!0?1/0:a;f=()=>Vi(_(),x)}const g=j_(),b=()=>{u.stop(),g&&g.active&&b4(g.effects,u)};if(o&&t){const _=t;t=(...x)=>{_(...x),b()}}let C=m?new Array(e.length).fill(z2):z2;const w=_=>{if(!(!(u.flags&1)||!u.dirty&&!_))if(t){const x=u.run();if(a||v||(m?x.some((k,T)=>Xl(k,C[T])):Xl(x,C))){h&&h();const k=cu;cu=u;try{const T=[x,C===z2?void 0:m&&C[0]===z2?[]:C,p];C=x,l?l(t,3,T):t(...T)}finally{cu=k}}}else u.run()};return i&&i(w),u=new U_(f),u.scheduler=r?()=>r(w,!1):w,p=_=>bO(_,!1,u),h=u.onStop=()=>{const _=H2.get(u);if(_){if(l)l(_,4);else for(const x of _)x();H2.delete(u)}},t?s?w(!0):C=u.run():r?r(w.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function Vi(e,t=1/0,n){if(t<=0||!bt(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,yn(e))Vi(e.value,t,n);else if(Ae(e))for(let s=0;s<e.length;s++)Vi(e[s],t,n);else if(A2(e)||lf(e))e.forEach(s=>{Vi(s,t,n)});else if(O0(e)){for(const s in e)Vi(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Vi(e[s],t,n)}return e}/**
|
||
* @vue/runtime-core v3.5.28
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/const H0=[];let R4=!1;function r3e(e,...t){if(R4)return;R4=!0,jr();const n=H0.length?H0[H0.length-1].component:null,s=n&&n.appContext.config.warnHandler,a=wO();if(s)df(s,n,11,[e+t.map(o=>{var r,i;return(i=(r=o.toString)==null?void 0:r.call(o))!=null?i:JSON.stringify(o)}).join(""),n&&n.proxy,a.map(({vnode:o})=>`at <${yS(n,o.type)}>`).join(`
|
||
`),a]);else{const o=[`[Vue warn]: ${e}`,...t];a.length&&o.push(`
|
||
`,..._O(a)),console.warn(...o)}Kr(),R4=!1}function wO(){let e=H0[H0.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function _O(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
|
||
`],...CO(n))}),t}function CO({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,a=` at <${yS(e.component,e.type,s)}`,o=">"+n;return e.props?[a,...SO(e.props),o]:[a+o]}function SO(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...hC(s,e[s]))}),n.length>3&&t.push(" ..."),t}function hC(e,t,n){return Xe(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:yn(t)?(t=hC(e,pn(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Qe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=pn(t),n?t:[`${e}=`,t])}function df(e,t,n,s){try{return s?e(...s):e()}catch(a){W2(a,t,n)}}function ir(e,t,n,s){if(Qe(e)){const a=df(e,t,n,s);return a&&au(a)&&a.catch(o=>{W2(o,t,n)}),a}if(Ae(e)){const a=[];for(let o=0;o<e.length;o++)a.push(ir(e[o],t,n,s));return a}}function W2(e,t,n,s=!0){const a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||Qt;if(t){let i=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const u=i.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,l,c)===!1)return}i=i.parent}if(o){jr(),df(o,null,10,[e,l,c]),Kr();return}}xO(e,n,a,s,r)}function xO(e,t,n,s=!0,a=!1){if(a)throw e;console.error(e)}const Aa=[];let qr=-1;const ff=[];let Zl=null,hf=0;const pC=Promise.resolve();let j2=null;function ze(e){const t=j2||pC;return e?t.then(this?e.bind(this):e):t}function kO(e){let t=qr+1,n=Aa.length;for(;t<n;){const s=t+n>>>1,a=Aa[s],o=W0(a);o<e||o===e&&a.flags&2?t=s+1:n=s}return t}function I4(e){if(!(e.flags&1)){const t=W0(e),n=Aa[Aa.length-1];!n||!(e.flags&2)&&t>=W0(n)?Aa.push(e):Aa.splice(kO(t),0,e),e.flags|=1,vC()}}function vC(){j2||(j2=pC.then(bC))}function EO(e){Ae(e)?ff.push(...e):Zl&&e.id===-1?Zl.splice(hf+1,0,e):e.flags&1||(ff.push(e),e.flags|=1),vC()}function mC(e,t,n=qr+1){for(;n<Aa.length;n++){const s=Aa[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Aa.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function gC(e){if(ff.length){const t=[...new Set(ff)].sort((n,s)=>W0(n)-W0(s));if(ff.length=0,Zl){Zl.push(...t);return}for(Zl=t,hf=0;hf<Zl.length;hf++){const n=Zl[hf];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Zl=null,hf=0}}const W0=e=>e.id==null?e.flags&2?-1:1/0:e.id;function bC(e){try{for(qr=0;qr<Aa.length;qr++){const t=Aa[qr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),df(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;qr<Aa.length;qr++){const t=Aa[qr];t&&(t.flags&=-2)}qr=-1,Aa.length=0,gC(),j2=null,(Aa.length||ff.length)&&bC()}}let Gs=null,yC=null;function K2(e){const t=Gs;return Gs=e,yC=e&&e.type.__scopeId||null,t}function X(e,t=Gs,n){if(!t||e._n)return e;const s=(...a)=>{s._d&&eg(-1);const o=K2(t);let r;try{r=e(...a)}finally{K2(o),s._d&&eg(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function Ct(e,t){if(Gs===null)return e;const n=sg(Gs),s=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[o,r,i,l=Qt]=t[a];o&&(Qe(o)&&(o={mounted:o,updated:o}),o.deep&&Vi(r),s.push({dir:o,instance:n,value:r,oldValue:void 0,arg:i,modifiers:l}))}return e}function uu(e,t,n,s){const a=e.dirs,o=t&&t.dirs;for(let r=0;r<a.length;r++){const i=a[r];o&&(i.oldValue=o[r].value);let l=i.dir[s];l&&(jr(),ir(l,n,8,[e.el,i,e,t]),Kr())}}function Nt(e,t){if(la){let n=la.provides;const s=la.parent&&la.parent.provides;s===n&&(n=la.provides=Object.create(s)),n[e]=t}}function je(e,t,n=!1){const s=Tt();if(s||vf){let a=vf?vf._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return n&&Qe(t)?t.call(s&&s.proxy):t}}const AO=Symbol.for("v-scx"),TO=()=>je(AO);function ja(e,t){return O4(e,null,t)}function be(e,t,n){return O4(e,t,n)}function O4(e,t,n=Qt){const{immediate:s,deep:a,flush:o,once:r}=n,i=ws({},n),l=t&&s||!t&&o!=="post";let c;if(ep){if(o==="sync"){const p=TO();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=en,p.resume=en,p.pause=en,p}}const u=la;i.call=(p,v,m)=>ir(p,u,v,m);let f=!1;o==="post"?i.scheduler=p=>{ia(p,u&&u.suspense)}:o!=="sync"&&(f=!0,i.scheduler=(p,v)=>{v?p():I4(p)}),i.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const h=yO(e,t,i);return ep&&(c?c.push(h):l&&h()),h}function MO(e,t,n){const s=this.proxy,a=Xe(e)?e.includes(".")?wC(s,e):()=>s[e]:e.bind(s,s);let o;Qe(t)?o=t:(o=t.handler,n=t);const r=Q0(this),i=O4(a,o.bind(s),n);return r(),i}function wC(e,t){const n=t.split(".");return()=>{let s=e;for(let a=0;a<n.length&&s;a++)s=s[n[a]];return s}}const _C=Symbol("_vte"),CC=e=>e.__isTeleport,j0=e=>e&&(e.disabled||e.disabled===""),SC=e=>e&&(e.defer||e.defer===""),xC=e=>typeof SVGElement<"u"&&e instanceof SVGElement,kC=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,L4=(e,t)=>{const n=e&&e.to;return Xe(n)?t?t(n):null:n},EC={name:"Teleport",__isTeleport:!0,process(e,t,n,s,a,o,r,i,l,c){const{mc:u,pc:f,pbc:h,o:{insert:p,querySelector:v,createText:m,createComment:g}}=c,b=j0(t.props);let{shapeFlag:C,children:w,dynamicChildren:_}=t;if(e==null){const x=t.el=m(""),k=t.anchor=m("");p(x,n,s),p(k,n,s);const T=(I,P)=>{C&16&&u(w,I,P,a,o,r,i,l)},R=()=>{const I=t.target=L4(t.props,v),P=N4(I,t,m,p);I&&(r!=="svg"&&xC(I)?r="svg":r!=="mathml"&&kC(I)&&(r="mathml"),a&&a.isCE&&(a.ce._teleportTargets||(a.ce._teleportTargets=new Set)).add(I),b||(T(I,P),q2(t,!1)))};b&&(T(n,k),q2(t,!0)),SC(t.props)?(t.el.__isMounted=!1,ia(()=>{R(),delete t.el.__isMounted},o)):R()}else{if(SC(t.props)&&e.el.__isMounted===!1){ia(()=>{EC.process(e,t,n,s,a,o,r,i,l,c)},o);return}t.el=e.el,t.targetStart=e.targetStart;const x=t.anchor=e.anchor,k=t.target=e.target,T=t.targetAnchor=e.targetAnchor,R=j0(e.props),I=R?n:k,P=R?x:T;if(r==="svg"||xC(k)?r="svg":(r==="mathml"||kC(k))&&(r="mathml"),_?(h(e.dynamicChildren,_,I,a,o,r,i),J4(e,t,!0)):l||f(e,t,I,P,a,o,r,i,!1),b)R?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):U2(t,n,x,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const $=t.target=L4(t.props,v);$&&U2(t,$,null,c,0)}else R&&U2(t,k,T,c,1);q2(t,b)}},remove(e,t,n,{um:s,o:{remove:a}},o){const{shapeFlag:r,children:i,anchor:l,targetStart:c,targetAnchor:u,target:f,props:h}=e;if(f&&(a(c),a(u)),o&&a(l),r&16){const p=o||!j0(h);for(let v=0;v<i.length;v++){const m=i[v];s(m,t,n,p,!!m.dynamicChildren)}}},move:U2,hydrate:PO};function U2(e,t,n,{o:{insert:s},m:a},o=2){o===0&&s(e.targetAnchor,t,n);const{el:r,anchor:i,shapeFlag:l,children:c,props:u}=e,f=o===2;if(f&&s(r,t,n),(!f||j0(u))&&l&16)for(let h=0;h<c.length;h++)a(c[h],t,n,2);f&&s(i,t,n)}function PO(e,t,n,s,a,o,{o:{nextSibling:r,parentNode:i,querySelector:l,insert:c,createText:u}},f){function h(g,b){let C=b;for(;C;){if(C&&C.nodeType===8){if(C.data==="teleport start anchor")t.targetStart=C;else if(C.data==="teleport anchor"){t.targetAnchor=C,g._lpa=t.targetAnchor&&r(t.targetAnchor);break}}C=r(C)}}function p(g,b){b.anchor=f(r(g),b,i(g),n,s,a,o)}const v=t.target=L4(t.props,l),m=j0(t.props);if(v){const g=v._lpa||v.firstChild;t.shapeFlag&16&&(m?(p(e,t),h(v,g),t.targetAnchor||N4(v,t,u,c,i(e)===v?e:null)):(t.anchor=r(e),h(v,g),t.targetAnchor||N4(v,t,u,c),f(g&&r(g),t,v,n,s,a,o))),q2(t,m)}else m&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=r(e));return t.anchor&&r(t.anchor)}const RO=EC;function q2(e,t){const n=e.ctx;if(n&&n.ut){let s,a;for(t?(s=e.el,a=e.anchor):(s=e.targetStart,a=e.targetAnchor);s&&s!==a;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function N4(e,t,n,s,a=null){const o=t.targetStart=n(""),r=t.targetAnchor=n("");return o[_C]=r,e&&(s(o,e,a),s(r,e,a)),r}const Gr=Symbol("_leaveCb"),K0=Symbol("_enterCb");function AC(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mt(()=>{e.isMounted=!0}),tn(()=>{e.isUnmounting=!0}),e}const $o=[Function,Array],TC={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:$o,onEnter:$o,onAfterEnter:$o,onEnterCancelled:$o,onBeforeLeave:$o,onLeave:$o,onAfterLeave:$o,onLeaveCancelled:$o,onBeforeAppear:$o,onAppear:$o,onAfterAppear:$o,onAppearCancelled:$o},MC=e=>{const t=e.subTree;return t.component?MC(t.component):t},IO={name:"BaseTransition",props:TC,setup(e,{slots:t}){const n=Tt(),s=AC();return()=>{const a=t.default&&D4(t.default(),!0);if(!a||!a.length)return;const o=PC(a),r=pn(e),{mode:i}=r;if(s.isLeaving)return $4(o);const l=IC(o);if(!l)return $4(o);let c=U0(l,r,s,n,f=>c=f);l.type!==Jn&&du(l,c);let u=n.subTree&&IC(n.subTree);if(u&&u.type!==Jn&&!pu(u,l)&&MC(n).type!==Jn){let f=U0(u,r,s,n);if(du(u,f),i==="out-in"&&l.type!==Jn)return s.isLeaving=!0,f.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},$4(o);i==="in-out"&&l.type!==Jn?f.delayLeave=(h,p,v)=>{const m=RC(s,u);m[String(u.key)]=u,h[Gr]=()=>{p(),h[Gr]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{v(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function PC(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Jn){t=n;break}}return t}const OO=IO;function RC(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function U0(e,t,n,s,a){const{appear:o,mode:r,persisted:i=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:h,onLeave:p,onAfterLeave:v,onLeaveCancelled:m,onBeforeAppear:g,onAppear:b,onAfterAppear:C,onAppearCancelled:w}=t,_=String(e.key),x=RC(n,e),k=(I,P)=>{I&&ir(I,s,9,P)},T=(I,P)=>{const $=P[1];k(I,P),Ae(I)?I.every(O=>O.length<=1)&&$():I.length<=1&&$()},R={mode:r,persisted:i,beforeEnter(I){let P=l;if(!n.isMounted)if(o)P=g||l;else return;I[Gr]&&I[Gr](!0);const $=x[_];$&&pu(e,$)&&$.el[Gr]&&$.el[Gr](),k(P,[I])},enter(I){let P=c,$=u,O=f;if(!n.isMounted)if(o)P=b||c,$=C||u,O=w||f;else return;let B=!1;I[K0]=J=>{B||(B=!0,J?k(O,[I]):k($,[I]),R.delayedLeave&&R.delayedLeave(),I[K0]=void 0)};const H=I[K0].bind(null,!1);P?T(P,[I,H]):H()},leave(I,P){const $=String(e.key);if(I[K0]&&I[K0](!0),n.isUnmounting)return P();k(h,[I]);let O=!1;I[Gr]=H=>{O||(O=!0,P(),H?k(m,[I]):k(v,[I]),I[Gr]=void 0,x[$]===e&&delete x[$])};const B=I[Gr].bind(null,!1);x[$]=e,p?T(p,[I,B]):B()},clone(I){const P=U0(I,t,n,s,a);return a&&a(P),P}};return R}function $4(e){if(Y2(e))return e=Yr(e),e.children=null,e}function IC(e){if(!Y2(e))return CC(e.type)&&e.children?PC(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Qe(n.default))return n.default()}}function du(e,t){e.shapeFlag&6&&e.component?(e.transition=t,du(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 D4(e,t=!1,n){let s=[],a=0;for(let o=0;o<e.length;o++){let r=e[o];const i=n==null?r.key:String(n)+String(r.key!=null?r.key:o);r.type===He?(r.patchFlag&128&&a++,s=s.concat(D4(r.children,t,i))):(t||r.type!==Jn)&&s.push(i!=null?Yr(r,{key:i}):r)}if(a>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}function K(e,t){return Qe(e)?ws({name:e.name},t,{setup:e}):e}function OC(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function LC(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const G2=new WeakMap;function q0(e,t,n,s,a=!1){if(Ae(e)){e.forEach((m,g)=>q0(m,t&&(Ae(t)?t[g]:t),n,s,a));return}if(pf(s)&&!a){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&q0(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?sg(s.component):s.el,r=a?null:o,{i,r:l}=e,c=t&&t.r,u=i.refs===Qt?i.refs={}:i.refs,f=i.setupState,h=pn(f),p=f===Qt?N_:m=>LC(u,m)?!1:qt(h,m),v=(m,g)=>!(g&&LC(u,g));if(c!=null&&c!==l){if(NC(t),Xe(c))u[c]=null,p(c)&&(f[c]=null);else if(yn(c)){const m=t;v(c,m.k)&&(c.value=null),m.k&&(u[m.k]=null)}}if(Qe(l))df(l,i,12,[r,u]);else{const m=Xe(l),g=yn(l);if(m||g){const b=()=>{if(e.f){const C=m?p(l)?f[l]:u[l]:v()||!e.k?l.value:u[e.k];if(a)Ae(C)&&b4(C,o);else if(Ae(C))C.includes(o)||C.push(o);else if(m)u[l]=[o],p(l)&&(f[l]=u[l]);else{const w=[o];v(l,e.k)&&(l.value=w),e.k&&(u[e.k]=w)}}else m?(u[l]=r,p(l)&&(f[l]=r)):g&&(v(l,e.k)&&(l.value=r),e.k&&(u[e.k]=r))};if(r){const C=()=>{b(),G2.delete(e)};C.id=-1,G2.set(e,C),ia(C,n)}else NC(e),b()}}}function NC(e){const t=G2.get(e);t&&(t.flags|=8,G2.delete(e))}R2().requestIdleCallback,R2().cancelIdleCallback;const pf=e=>!!e.type.__asyncLoader,Y2=e=>e.type.__isKeepAlive;function G0(e,t){$C(e,"a",t)}function F4(e,t){$C(e,"da",t)}function $C(e,t,n=la){const s=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(X2(t,s,n),n){let a=n.parent;for(;a&&a.parent;)Y2(a.parent.vnode)&&LO(s,t,n,a),a=a.parent}}function LO(e,t,n,s){const a=X2(t,e,s,!0);fu(()=>{b4(s[t],a)},n)}function X2(e,t,n=la,s=!1){if(n){const a=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{jr();const i=Q0(n),l=ir(t,n,e,r);return i(),Kr(),l});return s?a.unshift(o):a.push(o),o}}const zi=e=>(t,n=la)=>{(!ep||e==="sp")&&X2(e,(...s)=>t(...s),n)},J2=zi("bm"),Mt=zi("m"),B4=zi("bu"),lr=zi("u"),tn=zi("bum"),fu=zi("um"),NO=zi("sp"),$O=zi("rtg"),DO=zi("rtc");function FO(e,t=la){X2("ec",e,t)}const V4="components",BO="directives";function Ge(e,t){return H4(V4,e,!0,t)||e}const DC=Symbol.for("v-ndc");function kt(e){return Xe(e)?H4(V4,e,!1)||e:e||DC}function z4(e){return H4(BO,e)}function H4(e,t,n=!0,s=!1){const a=Gs||la;if(a){const o=a.type;if(e===V4){const i=bS(o,!1);if(i&&(i===t||i===Ea(t)||i===N0(Ea(t))))return o}const r=FC(a[e]||o[e],t)||FC(a.appContext[e],t);return!r&&s?o:r}}function FC(e,t){return e&&(e[t]||e[Ea(t)]||e[N0(Ea(t))])}function Et(e,t,n,s){let a;const o=n,r=Ae(e);if(r||Xe(e)){const i=r&&lu(e);let l=!1,c=!1;i&&(l=!io(e),c=Bi(e),e=O2(e)),a=new Array(e.length);for(let u=0,f=e.length;u<f;u++)a[u]=t(l?c?uf(rr(e[u])):rr(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){a=new Array(e);for(let i=0;i<e;i++)a[i]=t(i+1,i,void 0,o)}else if(bt(e))if(e[Symbol.iterator])a=Array.from(e,(i,l)=>t(i,l,void 0,o));else{const i=Object.keys(e);a=new Array(i.length);for(let l=0,c=i.length;l<c;l++){const u=i[l];a[l]=t(e[u],u,l,o)}}else a=[];return a}function Ta(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(Ae(s))for(let a=0;a<s.length;a++)e[s[a].name]=s[a].fn;else s&&(e[s.name]=s.key?(...a)=>{const o=s.fn(...a);return o&&(o.key=s.key),o}:s.fn)}return e}function ue(e,t,n={},s,a){if(Gs.ce||Gs.parent&&pf(Gs.parent)&&Gs.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),S(),ce(He,null,[W("slot",n,s&&s())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),S();const r=o&&BC(o(n)),i=n.key||r&&r.key,l=ce(He,{key:(i&&!ar(i)?i:`_${t}`)+(!r&&s?"_fb":"")},r||(s?s():[]),r&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function BC(e){return e.some(t=>vn(t)?!(t.type===Jn||t.type===He&&!BC(t.children)):!0)?e:null}function VO(e,t){const n={};for(const s in e)n[$0(s)]=e[s];return n}const W4=e=>e?pS(e)?sg(e):W4(e.parent):null,Y0=ws(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=>W4(e.parent),$root:e=>W4(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>jC(e),$forceUpdate:e=>e.f||(e.f=()=>{I4(e.update)}),$nextTick:e=>e.n||(e.n=ze.bind(e.proxy)),$watch:e=>MO.bind(e)}),j4=(e,t)=>e!==Qt&&!e.__isScriptSetup&&qt(e,t),zO={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:a,props:o,accessCache:r,type:i,appContext:l}=e;if(t[0]!=="$"){const h=r[t];if(h!==void 0)switch(h){case 1:return s[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else{if(j4(s,t))return r[t]=1,s[t];if(a!==Qt&&qt(a,t))return r[t]=2,a[t];if(qt(o,t))return r[t]=3,o[t];if(n!==Qt&&qt(n,t))return r[t]=4,n[t];K4&&(r[t]=0)}}const c=Y0[t];let u,f;if(c)return t==="$attrs"&&ra(e.attrs,"get",""),c(e);if((u=i.__cssModules)&&(u=u[t]))return u;if(n!==Qt&&qt(n,t))return r[t]=4,n[t];if(f=l.config.globalProperties,qt(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:a,ctx:o}=e;return j4(a,t)?(a[t]=n,!0):s!==Qt&&qt(s,t)?(s[t]=n,!0):qt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:a,props:o,type:r}},i){let l;return!!(n[i]||e!==Qt&&i[0]!=="$"&&qt(e,i)||j4(t,i)||qt(o,i)||qt(s,i)||qt(Y0,i)||qt(a.config.globalProperties,i)||(l=r.__cssModules)&&l[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:qt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Gn(){return VC().slots}function Hi(){return VC().attrs}function VC(e){const t=Tt();return t.setupContext||(t.setupContext=gS(t))}function zC(e){return Ae(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let K4=!0;function HO(e){const t=jC(e),n=e.proxy,s=e.ctx;K4=!1,t.beforeCreate&&HC(t.beforeCreate,e,"bc");const{data:a,computed:o,methods:r,watch:i,provide:l,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:p,updated:v,activated:m,deactivated:g,beforeDestroy:b,beforeUnmount:C,destroyed:w,unmounted:_,render:x,renderTracked:k,renderTriggered:T,errorCaptured:R,serverPrefetch:I,expose:P,inheritAttrs:$,components:O,directives:B,filters:H}=t;if(c&&WO(c,s,null),r)for(const N in r){const L=r[N];Qe(L)&&(s[N]=L.bind(n))}if(a){const N=a.call(n,n);bt(N)&&(e.data=Gt(N))}if(K4=!0,o)for(const N in o){const L=o[N],V=Qe(L)?L.bind(n,n):Qe(L.get)?L.get.bind(n,n):en,z=!Qe(L)&&Qe(L.set)?L.set.bind(n):en,G=E({get:V,set:z});Object.defineProperty(s,N,{enumerable:!0,configurable:!0,get:()=>G.value,set:Q=>G.value=Q})}if(i)for(const N in i)WC(i[N],s,n,N);if(l){const N=Qe(l)?l.call(n):l;Reflect.ownKeys(N).forEach(L=>{Nt(L,N[L])})}u&&HC(u,e,"c");function Y(N,L){Ae(L)?L.forEach(V=>N(V.bind(n))):L&&N(L.bind(n))}if(Y(J2,f),Y(Mt,h),Y(B4,p),Y(lr,v),Y(G0,m),Y(F4,g),Y(FO,R),Y(DO,k),Y($O,T),Y(tn,C),Y(fu,_),Y(NO,I),Ae(P))if(P.length){const N=e.exposed||(e.exposed={});P.forEach(L=>{Object.defineProperty(N,L,{get:()=>n[L],set:V=>n[L]=V,enumerable:!0})})}else e.exposed||(e.exposed={});x&&e.render===en&&(e.render=x),$!=null&&(e.inheritAttrs=$),O&&(e.components=O),B&&(e.directives=B),I&&OC(e)}function WO(e,t,n=en){Ae(e)&&(e=U4(e));for(const s in e){const a=e[s];let o;bt(a)?"default"in a?o=je(a.from||s,a.default,!0):o=je(a.from||s):o=je(a),yn(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[s]=o}}function HC(e,t,n){ir(Ae(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function WC(e,t,n,s){let a=s.includes(".")?wC(n,s):()=>n[s];if(Xe(e)){const o=t[e];Qe(o)&&be(a,o)}else if(Qe(e))be(a,e.bind(n));else if(bt(e))if(Ae(e))e.forEach(o=>WC(o,t,n,s));else{const o=Qe(e.handler)?e.handler.bind(n):t[e.handler];Qe(o)&&be(a,o,e)}}function jC(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,i=o.get(t);let l;return i?l=i:!a.length&&!n&&!s?l=t:(l={},a.length&&a.forEach(c=>Z2(l,c,r,!0)),Z2(l,t,r)),bt(t)&&o.set(t,l),l}function Z2(e,t,n,s=!1){const{mixins:a,extends:o}=t;o&&Z2(e,o,n,!0),a&&a.forEach(r=>Z2(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const i=jO[r]||n&&n[r];e[r]=i?i(e[r],t[r]):t[r]}return e}const jO={data:KC,props:UC,emits:UC,methods:X0,computed:X0,beforeCreate:Ma,created:Ma,beforeMount:Ma,mounted:Ma,beforeUpdate:Ma,updated:Ma,beforeDestroy:Ma,beforeUnmount:Ma,destroyed:Ma,unmounted:Ma,activated:Ma,deactivated:Ma,errorCaptured:Ma,serverPrefetch:Ma,components:X0,directives:X0,watch:UO,provide:KC,inject:KO};function KC(e,t){return t?e?function(){return ws(Qe(e)?e.call(this,this):e,Qe(t)?t.call(this,this):t)}:t:e}function KO(e,t){return X0(U4(e),U4(t))}function U4(e){if(Ae(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ma(e,t){return e?[...new Set([].concat(e,t))]:t}function X0(e,t){return e?ws(Object.create(null),e,t):t}function UC(e,t){return e?Ae(e)&&Ae(t)?[...new Set([...e,...t])]:ws(Object.create(null),zC(e),zC(t??{})):t}function UO(e,t){if(!e)return t;if(!t)return e;const n=ws(Object.create(null),e);for(const s in t)n[s]=Ma(e[s],t[s]);return n}function qC(){return{app:null,config:{isNativeTag:N_,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let qO=0;function GO(e,t){return function(s,a=null){Qe(s)||(s=ws({},s)),a!=null&&!bt(a)&&(a=null);const o=qC(),r=new WeakSet,i=[];let l=!1;const c=o.app={_uid:qO++,_component:s,_props:a,_container:null,_context:o,_instance:null,version:xL,get config(){return o.config},set config(u){},use(u,...f){return r.has(u)||(u&&Qe(u.install)?(r.add(u),u.install(c,...f)):Qe(u)&&(r.add(u),u(c,...f))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,f){return f?(o.components[u]=f,c):o.components[u]},directive(u,f){return f?(o.directives[u]=f,c):o.directives[u]},mount(u,f,h){if(!l){const p=c._ceVNode||W(s,a);return p.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),e(p,u,h),l=!0,c._container=u,u.__vue_app__=c,sg(p.component)}},onUnmount(u){i.push(u)},unmount(){l&&(ir(i,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return o.provides[u]=f,c},runWithContext(u){const f=vf;vf=c;try{return u()}finally{vf=f}}};return c}}let vf=null;const YO=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ea(t)}Modifiers`]||e[`${Ni(t)}Modifiers`];function XO(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Qt;let a=n;const o=t.startsWith("update:"),r=o&&YO(s,t.slice(7));r&&(r.trim&&(a=n.map(u=>Xe(u)?u.trim():u)),r.number&&(a=n.map(y4)));let i,l=s[i=$0(t)]||s[i=$0(Ea(t))];!l&&o&&(l=s[i=$0(Ni(t))]),l&&ir(l,e,6,a);const c=s[i+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,ir(c,e,6,a)}}const JO=new WeakMap;function GC(e,t,n=!1){const s=n?JO:t.emitsCache,a=s.get(e);if(a!==void 0)return a;const o=e.emits;let r={},i=!1;if(!Qe(e)){const l=c=>{const u=GC(c,t,!0);u&&(i=!0,ws(r,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!i?(bt(e)&&s.set(e,null),null):(Ae(o)?o.forEach(l=>r[l]=null):ws(r,o),bt(e)&&s.set(e,r),r)}function Q2(e,t){return!e||!E2(t)?!1:(t=t.slice(2).replace(/Once$/,""),qt(e,t[0].toLowerCase()+t.slice(1))||qt(e,Ni(t))||qt(e,t))}function i3e(){}function YC(e){const{type:t,vnode:n,proxy:s,withProxy:a,propsOptions:[o],slots:r,attrs:i,emit:l,render:c,renderCache:u,props:f,data:h,setupState:p,ctx:v,inheritAttrs:m}=e,g=K2(e);let b,C;try{if(n.shapeFlag&4){const _=a||s,x=_;b=Xr(c.call(x,_,u,f,p,h,v)),C=i}else{const _=t;b=Xr(_.length>1?_(f,{attrs:i,slots:r,emit:l}):_(f,null)),C=t.props?i:ZO(i)}}catch(_){J0.length=0,W2(_,e,1),b=W(Jn)}let w=b;if(C&&m!==!1){const _=Object.keys(C),{shapeFlag:x}=w;_.length&&x&7&&(o&&_.some(g4)&&(C=QO(C,o)),w=Yr(w,C,!1,!0))}return n.dirs&&(w=Yr(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&du(w,n.transition),b=w,K2(g),b}const ZO=e=>{let t;for(const n in e)(n==="class"||n==="style"||E2(n))&&((t||(t={}))[n]=e[n]);return t},QO=(e,t)=>{const n={};for(const s in e)(!g4(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function eL(e,t,n){const{props:s,children:a,component:o}=e,{props:r,children:i,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?XC(s,r,c):!!r;if(l&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const h=u[f];if(JC(r,s,h)&&!Q2(c,h))return!0}}}else return(a||i)&&(!i||!i.$stable)?!0:s===r?!1:s?r?XC(s,r,c):!0:!!r;return!1}function XC(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let a=0;a<s.length;a++){const o=s[a];if(JC(t,e,o)&&!Q2(n,o))return!0}return!1}function JC(e,t,n){const s=e[n],a=t[n];return n==="style"&&bt(s)&&bt(a)?!ou(s,a):s!==a}function tL({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const ZC={},QC=()=>Object.create(ZC),eS=e=>Object.getPrototypeOf(e)===ZC;function nL(e,t,n,s=!1){const a={},o=QC();e.propsDefaults=Object.create(null),tS(e,t,a,o);for(const r in e.propsOptions[0])r in a||(a[r]=void 0);n?e.props=s?a:D2(a):e.type.props?e.props=a:e.props=o,e.attrs=o}function sL(e,t,n,s){const{props:a,attrs:o,vnode:{patchFlag:r}}=e,i=pn(a),[l]=e.propsOptions;let c=!1;if((s||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let h=u[f];if(Q2(e.emitsOptions,h))continue;const p=t[h];if(l)if(qt(o,h))p!==o[h]&&(o[h]=p,c=!0);else{const v=Ea(h);a[v]=q4(l,i,v,p,e,!1)}else p!==o[h]&&(o[h]=p,c=!0)}}}else{tS(e,t,a,o)&&(c=!0);let u;for(const f in i)(!t||!qt(t,f)&&((u=Ni(f))===f||!qt(t,u)))&&(l?n&&(n[f]!==void 0||n[u]!==void 0)&&(a[f]=q4(l,i,f,void 0,e,!0)):delete a[f]);if(o!==i)for(const f in o)(!t||!qt(t,f))&&(delete o[f],c=!0)}c&&Di(e.attrs,"set","")}function tS(e,t,n,s){const[a,o]=e.propsOptions;let r=!1,i;if(t)for(let l in t){if(L0(l))continue;const c=t[l];let u;a&&qt(a,u=Ea(l))?!o||!o.includes(u)?n[u]=c:(i||(i={}))[u]=c:Q2(e.emitsOptions,l)||(!(l in s)||c!==s[l])&&(s[l]=c,r=!0)}if(o){const l=pn(n),c=i||Qt;for(let u=0;u<o.length;u++){const f=o[u];n[f]=q4(a,l,f,c[f],e,!qt(c,f))}}return r}function q4(e,t,n,s,a,o){const r=e[n];if(r!=null){const i=qt(r,"default");if(i&&s===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&Qe(l)){const{propsDefaults:c}=a;if(n in c)s=c[n];else{const u=Q0(a);s=c[n]=l.call(null,t),u()}}else s=l;a.ce&&a.ce._setProp(n,s)}r[0]&&(o&&!i?s=!1:r[1]&&(s===""||s===Ni(n))&&(s=!0))}return s}const aL=new WeakMap;function nS(e,t,n=!1){const s=n?aL:t.propsCache,a=s.get(e);if(a)return a;const o=e.props,r={},i=[];let l=!1;if(!Qe(e)){const u=f=>{l=!0;const[h,p]=nS(f,t,!0);ws(r,h),p&&i.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return bt(e)&&s.set(e,sr),sr;if(Ae(o))for(let u=0;u<o.length;u++){const f=Ea(o[u]);sS(f)&&(r[f]=Qt)}else if(o)for(const u in o){const f=Ea(u);if(sS(f)){const h=o[u],p=r[f]=Ae(h)||Qe(h)?{type:h}:ws({},h),v=p.type;let m=!1,g=!0;if(Ae(v))for(let b=0;b<v.length;++b){const C=v[b],w=Qe(C)&&C.name;if(w==="Boolean"){m=!0;break}else w==="String"&&(g=!1)}else m=Qe(v)&&v.name==="Boolean";p[0]=m,p[1]=g,(m||qt(p,"default"))&&i.push(f)}}const c=[r,i];return bt(e)&&s.set(e,c),c}function sS(e){return e[0]!=="$"&&!L0(e)}const G4=e=>e==="_"||e==="_ctx"||e==="$stable",Y4=e=>Ae(e)?e.map(Xr):[Xr(e)],oL=(e,t,n)=>{if(t._n)return t;const s=X((...a)=>Y4(t(...a)),n);return s._c=!1,s},aS=(e,t,n)=>{const s=e._ctx;for(const a in e){if(G4(a))continue;const o=e[a];if(Qe(o))t[a]=oL(a,o,s);else if(o!=null){const r=Y4(o);t[a]=()=>r}}},oS=(e,t)=>{const n=Y4(t);e.slots.default=()=>n},rS=(e,t,n)=>{for(const s in t)(n||!G4(s))&&(e[s]=t[s])},rL=(e,t,n)=>{const s=e.slots=QC();if(e.vnode.shapeFlag&32){const a=t._;a?(rS(s,t,n),n&&D_(s,"_",a,!0)):aS(t,s)}else t&&oS(e,t)},iL=(e,t,n)=>{const{vnode:s,slots:a}=e;let o=!0,r=Qt;if(s.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:rS(a,t,n):(o=!t.$stable,aS(t,a)),r=t}else t&&(oS(e,t),r={default:1});if(o)for(const i in a)!G4(i)&&r[i]==null&&delete a[i]},ia=fL;function lL(e){return cL(e)}function cL(e,t){const n=R2();n.__VUE__=!0;const{insert:s,remove:a,patchProp:o,createElement:r,createText:i,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:h,setScopeId:p=en,insertStaticContent:v}=e,m=(j,ae,fe,we=null,Se=null,ke=null,Oe=void 0,Be=null,Le=!!ae.dynamicChildren)=>{if(j===ae)return;j&&!pu(j,ae)&&(we=te(j),Q(j,Se,ke,!0),j=null),ae.patchFlag===-2&&(Le=!1,ae.dynamicChildren=null);const{type:Ce,ref:Ie,shapeFlag:Re}=ae;switch(Ce){case mf:g(j,ae,fe,we);break;case Jn:b(j,ae,fe,we);break;case Z4:j==null&&C(ae,fe,we,Oe);break;case He:O(j,ae,fe,we,Se,ke,Oe,Be,Le);break;default:Re&1?x(j,ae,fe,we,Se,ke,Oe,Be,Le):Re&6?B(j,ae,fe,we,Se,ke,Oe,Be,Le):(Re&64||Re&128)&&Ce.process(j,ae,fe,we,Se,ke,Oe,Be,Le,le)}Ie!=null&&Se?q0(Ie,j&&j.ref,ke,ae||j,!ae):Ie==null&&j&&j.ref!=null&&q0(j.ref,null,ke,j,!0)},g=(j,ae,fe,we)=>{if(j==null)s(ae.el=i(ae.children),fe,we);else{const Se=ae.el=j.el;ae.children!==j.children&&c(Se,ae.children)}},b=(j,ae,fe,we)=>{j==null?s(ae.el=l(ae.children||""),fe,we):ae.el=j.el},C=(j,ae,fe,we)=>{[j.el,j.anchor]=v(j.children,ae,fe,we,j.el,j.anchor)},w=({el:j,anchor:ae},fe,we)=>{let Se;for(;j&&j!==ae;)Se=h(j),s(j,fe,we),j=Se;s(ae,fe,we)},_=({el:j,anchor:ae})=>{let fe;for(;j&&j!==ae;)fe=h(j),a(j),j=fe;a(ae)},x=(j,ae,fe,we,Se,ke,Oe,Be,Le)=>{if(ae.type==="svg"?Oe="svg":ae.type==="math"&&(Oe="mathml"),j==null)k(ae,fe,we,Se,ke,Oe,Be,Le);else{const Ce=j.el&&j.el._isVueCE?j.el:null;try{Ce&&Ce._beginPatch(),I(j,ae,Se,ke,Oe,Be,Le)}finally{Ce&&Ce._endPatch()}}},k=(j,ae,fe,we,Se,ke,Oe,Be)=>{let Le,Ce;const{props:Ie,shapeFlag:Re,transition:Ke,dirs:tt}=j;if(Le=j.el=r(j.type,ke,Ie&&Ie.is,Ie),Re&8?u(Le,j.children):Re&16&&R(j.children,Le,null,we,Se,X4(j,ke),Oe,Be),tt&&uu(j,null,we,"created"),T(Le,j,j.scopeId,Oe,we),Ie){for(const Fe in Ie)Fe!=="value"&&!L0(Fe)&&o(Le,Fe,null,Ie[Fe],ke,we);"value"in Ie&&o(Le,"value",null,Ie.value,ke),(Ce=Ie.onVnodeBeforeMount)&&Jr(Ce,we,j)}tt&&uu(j,null,we,"beforeMount");const ut=uL(Se,Ke);ut&&Ke.beforeEnter(Le),s(Le,ae,fe),((Ce=Ie&&Ie.onVnodeMounted)||ut||tt)&&ia(()=>{Ce&&Jr(Ce,we,j),ut&&Ke.enter(Le),tt&&uu(j,null,we,"mounted")},Se)},T=(j,ae,fe,we,Se)=>{if(fe&&p(j,fe),we)for(let ke=0;ke<we.length;ke++)p(j,we[ke]);if(Se){let ke=Se.subTree;if(ae===ke||uS(ke.type)&&(ke.ssContent===ae||ke.ssFallback===ae)){const Oe=Se.vnode;T(j,Oe,Oe.scopeId,Oe.slotScopeIds,Se.parent)}}},R=(j,ae,fe,we,Se,ke,Oe,Be,Le=0)=>{for(let Ce=Le;Ce<j.length;Ce++){const Ie=j[Ce]=Be?ji(j[Ce]):Xr(j[Ce]);m(null,Ie,ae,fe,we,Se,ke,Oe,Be)}},I=(j,ae,fe,we,Se,ke,Oe)=>{const Be=ae.el=j.el;let{patchFlag:Le,dynamicChildren:Ce,dirs:Ie}=ae;Le|=j.patchFlag&16;const Re=j.props||Qt,Ke=ae.props||Qt;let tt;if(fe&&hu(fe,!1),(tt=Ke.onVnodeBeforeUpdate)&&Jr(tt,fe,ae,j),Ie&&uu(ae,j,fe,"beforeUpdate"),fe&&hu(fe,!0),(Re.innerHTML&&Ke.innerHTML==null||Re.textContent&&Ke.textContent==null)&&u(Be,""),Ce?P(j.dynamicChildren,Ce,Be,fe,we,X4(ae,Se),ke):Oe||L(j,ae,Be,null,fe,we,X4(ae,Se),ke,!1),Le>0){if(Le&16)$(Be,Re,Ke,fe,Se);else if(Le&2&&Re.class!==Ke.class&&o(Be,"class",null,Ke.class,Se),Le&4&&o(Be,"style",Re.style,Ke.style,Se),Le&8){const ut=ae.dynamicProps;for(let Fe=0;Fe<ut.length;Fe++){const Ue=ut[Fe],Ze=Re[Ue],Ot=Ke[Ue];(Ot!==Ze||Ue==="value")&&o(Be,Ue,Ze,Ot,Se,fe)}}Le&1&&j.children!==ae.children&&u(Be,ae.children)}else!Oe&&Ce==null&&$(Be,Re,Ke,fe,Se);((tt=Ke.onVnodeUpdated)||Ie)&&ia(()=>{tt&&Jr(tt,fe,ae,j),Ie&&uu(ae,j,fe,"updated")},we)},P=(j,ae,fe,we,Se,ke,Oe)=>{for(let Be=0;Be<ae.length;Be++){const Le=j[Be],Ce=ae[Be],Ie=Le.el&&(Le.type===He||!pu(Le,Ce)||Le.shapeFlag&198)?f(Le.el):fe;m(Le,Ce,Ie,null,we,Se,ke,Oe,!0)}},$=(j,ae,fe,we,Se)=>{if(ae!==fe){if(ae!==Qt)for(const ke in ae)!L0(ke)&&!(ke in fe)&&o(j,ke,ae[ke],null,Se,we);for(const ke in fe){if(L0(ke))continue;const Oe=fe[ke],Be=ae[ke];Oe!==Be&&ke!=="value"&&o(j,ke,Be,Oe,Se,we)}"value"in fe&&o(j,"value",ae.value,fe.value,Se)}},O=(j,ae,fe,we,Se,ke,Oe,Be,Le)=>{const Ce=ae.el=j?j.el:i(""),Ie=ae.anchor=j?j.anchor:i("");let{patchFlag:Re,dynamicChildren:Ke,slotScopeIds:tt}=ae;tt&&(Be=Be?Be.concat(tt):tt),j==null?(s(Ce,fe,we),s(Ie,fe,we),R(ae.children||[],fe,Ie,Se,ke,Oe,Be,Le)):Re>0&&Re&64&&Ke&&j.dynamicChildren&&j.dynamicChildren.length===Ke.length?(P(j.dynamicChildren,Ke,fe,Se,ke,Oe,Be),(ae.key!=null||Se&&ae===Se.subTree)&&J4(j,ae,!0)):L(j,ae,fe,Ie,Se,ke,Oe,Be,Le)},B=(j,ae,fe,we,Se,ke,Oe,Be,Le)=>{ae.slotScopeIds=Be,j==null?ae.shapeFlag&512?Se.ctx.activate(ae,fe,we,Oe,Le):H(ae,fe,we,Se,ke,Oe,Le):J(j,ae,Le)},H=(j,ae,fe,we,Se,ke,Oe)=>{const Be=j.component=gL(j,we,Se);if(Y2(j)&&(Be.ctx.renderer=le),bL(Be,!1,Oe),Be.asyncDep){if(Se&&Se.registerDep(Be,Y,Oe),!j.el){const Le=Be.subTree=W(Jn);b(null,Le,ae,fe),j.placeholder=Le.el}}else Y(Be,j,ae,fe,Se,ke,Oe)},J=(j,ae,fe)=>{const we=ae.component=j.component;if(eL(j,ae,fe))if(we.asyncDep&&!we.asyncResolved){N(we,ae,fe);return}else we.next=ae,we.update();else ae.el=j.el,we.vnode=ae},Y=(j,ae,fe,we,Se,ke,Oe)=>{const Be=()=>{if(j.isMounted){let{next:Re,bu:Ke,u:tt,parent:ut,vnode:Fe}=j;{const it=iS(j);if(it){Re&&(Re.el=Fe.el,N(j,Re,Oe)),it.asyncDep.then(()=>{ia(()=>{j.isUnmounted||Ce()},Se)});return}}let Ue=Re,Ze;hu(j,!1),Re?(Re.el=Fe.el,N(j,Re,Oe)):Re=Fe,Ke&&P2(Ke),(Ze=Re.props&&Re.props.onVnodeBeforeUpdate)&&Jr(Ze,ut,Re,Fe),hu(j,!0);const Ot=YC(j),Xt=j.subTree;j.subTree=Ot,m(Xt,Ot,f(Xt.el),te(Xt),j,Se,ke),Re.el=Ot.el,Ue===null&&tL(j,Ot.el),tt&&ia(tt,Se),(Ze=Re.props&&Re.props.onVnodeUpdated)&&ia(()=>Jr(Ze,ut,Re,Fe),Se)}else{let Re;const{el:Ke,props:tt}=ae,{bm:ut,m:Fe,parent:Ue,root:Ze,type:Ot}=j,Xt=pf(ae);hu(j,!1),ut&&P2(ut),!Xt&&(Re=tt&&tt.onVnodeBeforeMount)&&Jr(Re,Ue,ae),hu(j,!0);{Ze.ce&&Ze.ce._hasShadowRoot()&&Ze.ce._injectChildStyle(Ot);const it=j.subTree=YC(j);m(null,it,fe,we,j,Se,ke),ae.el=it.el}if(Fe&&ia(Fe,Se),!Xt&&(Re=tt&&tt.onVnodeMounted)){const it=ae;ia(()=>Jr(Re,Ue,it),Se)}(ae.shapeFlag&256||Ue&&pf(Ue.vnode)&&Ue.vnode.shapeFlag&256)&&j.a&&ia(j.a,Se),j.isMounted=!0,ae=fe=we=null}};j.scope.on();const Le=j.effect=new U_(Be);j.scope.off();const Ce=j.update=Le.run.bind(Le),Ie=j.job=Le.runIfDirty.bind(Le);Ie.i=j,Ie.id=j.uid,Le.scheduler=()=>I4(Ie),hu(j,!0),Ce()},N=(j,ae,fe)=>{ae.component=j;const we=j.vnode.props;j.vnode=ae,j.next=null,sL(j,ae.props,we,fe),iL(j,ae.children,fe),jr(),mC(j),Kr()},L=(j,ae,fe,we,Se,ke,Oe,Be,Le=!1)=>{const Ce=j&&j.children,Ie=j?j.shapeFlag:0,Re=ae.children,{patchFlag:Ke,shapeFlag:tt}=ae;if(Ke>0){if(Ke&128){z(Ce,Re,fe,we,Se,ke,Oe,Be,Le);return}else if(Ke&256){V(Ce,Re,fe,we,Se,ke,Oe,Be,Le);return}}tt&8?(Ie&16&&de(Ce,Se,ke),Re!==Ce&&u(fe,Re)):Ie&16?tt&16?z(Ce,Re,fe,we,Se,ke,Oe,Be,Le):de(Ce,Se,ke,!0):(Ie&8&&u(fe,""),tt&16&&R(Re,fe,we,Se,ke,Oe,Be,Le))},V=(j,ae,fe,we,Se,ke,Oe,Be,Le)=>{j=j||sr,ae=ae||sr;const Ce=j.length,Ie=ae.length,Re=Math.min(Ce,Ie);let Ke;for(Ke=0;Ke<Re;Ke++){const tt=ae[Ke]=Le?ji(ae[Ke]):Xr(ae[Ke]);m(j[Ke],tt,fe,null,Se,ke,Oe,Be,Le)}Ce>Ie?de(j,Se,ke,!0,!1,Re):R(ae,fe,we,Se,ke,Oe,Be,Le,Re)},z=(j,ae,fe,we,Se,ke,Oe,Be,Le)=>{let Ce=0;const Ie=ae.length;let Re=j.length-1,Ke=Ie-1;for(;Ce<=Re&&Ce<=Ke;){const tt=j[Ce],ut=ae[Ce]=Le?ji(ae[Ce]):Xr(ae[Ce]);if(pu(tt,ut))m(tt,ut,fe,null,Se,ke,Oe,Be,Le);else break;Ce++}for(;Ce<=Re&&Ce<=Ke;){const tt=j[Re],ut=ae[Ke]=Le?ji(ae[Ke]):Xr(ae[Ke]);if(pu(tt,ut))m(tt,ut,fe,null,Se,ke,Oe,Be,Le);else break;Re--,Ke--}if(Ce>Re){if(Ce<=Ke){const tt=Ke+1,ut=tt<Ie?ae[tt].el:we;for(;Ce<=Ke;)m(null,ae[Ce]=Le?ji(ae[Ce]):Xr(ae[Ce]),fe,ut,Se,ke,Oe,Be,Le),Ce++}}else if(Ce>Ke)for(;Ce<=Re;)Q(j[Ce],Se,ke,!0),Ce++;else{const tt=Ce,ut=Ce,Fe=new Map;for(Ce=ut;Ce<=Ke;Ce++){const xe=ae[Ce]=Le?ji(ae[Ce]):Xr(ae[Ce]);xe.key!=null&&Fe.set(xe.key,Ce)}let Ue,Ze=0;const Ot=Ke-ut+1;let Xt=!1,it=0;const yt=new Array(Ot);for(Ce=0;Ce<Ot;Ce++)yt[Ce]=0;for(Ce=tt;Ce<=Re;Ce++){const xe=j[Ce];if(Ze>=Ot){Q(xe,Se,ke,!0);continue}let qe;if(xe.key!=null)qe=Fe.get(xe.key);else for(Ue=ut;Ue<=Ke;Ue++)if(yt[Ue-ut]===0&&pu(xe,ae[Ue])){qe=Ue;break}qe===void 0?Q(xe,Se,ke,!0):(yt[qe-ut]=Ce+1,qe>=it?it=qe:Xt=!0,m(xe,ae[qe],fe,null,Se,ke,Oe,Be,Le),Ze++)}const Lt=Xt?dL(yt):sr;for(Ue=Lt.length-1,Ce=Ot-1;Ce>=0;Ce--){const xe=ut+Ce,qe=ae[xe],_e=ae[xe+1],Ye=xe+1<Ie?_e.el||cS(_e):we;yt[Ce]===0?m(null,qe,fe,Ye,Se,ke,Oe,Be,Le):Xt&&(Ue<0||Ce!==Lt[Ue]?G(qe,fe,Ye,2):Ue--)}}},G=(j,ae,fe,we,Se=null)=>{const{el:ke,type:Oe,transition:Be,children:Le,shapeFlag:Ce}=j;if(Ce&6){G(j.component.subTree,ae,fe,we);return}if(Ce&128){j.suspense.move(ae,fe,we);return}if(Ce&64){Oe.move(j,ae,fe,le);return}if(Oe===He){s(ke,ae,fe);for(let Re=0;Re<Le.length;Re++)G(Le[Re],ae,fe,we);s(j.anchor,ae,fe);return}if(Oe===Z4){w(j,ae,fe);return}if(we!==2&&Ce&1&&Be)if(we===0)Be.beforeEnter(ke),s(ke,ae,fe),ia(()=>Be.enter(ke),Se);else{const{leave:Re,delayLeave:Ke,afterLeave:tt}=Be,ut=()=>{j.ctx.isUnmounted?a(ke):s(ke,ae,fe)},Fe=()=>{ke._isLeaving&&ke[Gr](!0),Re(ke,()=>{ut(),tt&&tt()})};Ke?Ke(ke,ut,Fe):Fe()}else s(ke,ae,fe)},Q=(j,ae,fe,we=!1,Se=!1)=>{const{type:ke,props:Oe,ref:Be,children:Le,dynamicChildren:Ce,shapeFlag:Ie,patchFlag:Re,dirs:Ke,cacheIndex:tt}=j;if(Re===-2&&(Se=!1),Be!=null&&(jr(),q0(Be,null,fe,j,!0),Kr()),tt!=null&&(ae.renderCache[tt]=void 0),Ie&256){ae.ctx.deactivate(j);return}const ut=Ie&1&&Ke,Fe=!pf(j);let Ue;if(Fe&&(Ue=Oe&&Oe.onVnodeBeforeUnmount)&&Jr(Ue,ae,j),Ie&6)se(j.component,fe,we);else{if(Ie&128){j.suspense.unmount(fe,we);return}ut&&uu(j,null,ae,"beforeUnmount"),Ie&64?j.type.remove(j,ae,fe,le,we):Ce&&!Ce.hasOnce&&(ke!==He||Re>0&&Re&64)?de(Ce,ae,fe,!1,!0):(ke===He&&Re&384||!Se&&Ie&16)&&de(Le,ae,fe),we&&U(j)}(Fe&&(Ue=Oe&&Oe.onVnodeUnmounted)||ut)&&ia(()=>{Ue&&Jr(Ue,ae,j),ut&&uu(j,null,ae,"unmounted")},fe)},U=j=>{const{type:ae,el:fe,anchor:we,transition:Se}=j;if(ae===He){ee(fe,we);return}if(ae===Z4){_(j);return}const ke=()=>{a(fe),Se&&!Se.persisted&&Se.afterLeave&&Se.afterLeave()};if(j.shapeFlag&1&&Se&&!Se.persisted){const{leave:Oe,delayLeave:Be}=Se,Le=()=>Oe(fe,ke);Be?Be(j.el,ke,Le):Le()}else ke()},ee=(j,ae)=>{let fe;for(;j!==ae;)fe=h(j),a(j),j=fe;a(ae)},se=(j,ae,fe)=>{const{bum:we,scope:Se,job:ke,subTree:Oe,um:Be,m:Le,a:Ce}=j;lS(Le),lS(Ce),we&&P2(we),Se.stop(),ke&&(ke.flags|=8,Q(Oe,j,ae,fe)),Be&&ia(Be,ae),ia(()=>{j.isUnmounted=!0},ae)},de=(j,ae,fe,we=!1,Se=!1,ke=0)=>{for(let Oe=ke;Oe<j.length;Oe++)Q(j[Oe],ae,fe,we,Se)},te=j=>{if(j.shapeFlag&6)return te(j.component.subTree);if(j.shapeFlag&128)return j.suspense.next();const ae=h(j.anchor||j.el),fe=ae&&ae[_C];return fe?h(fe):ae};let pe=!1;const he=(j,ae,fe)=>{let we;j==null?ae._vnode&&(Q(ae._vnode,null,null,!0),we=ae._vnode.component):m(ae._vnode||null,j,ae,null,null,null,fe),ae._vnode=j,pe||(pe=!0,mC(we),gC(),pe=!1)},le={p:m,um:Q,m:G,r:U,mt:H,mc:R,pc:L,pbc:P,n:te,o:e};return{render:he,hydrate:void 0,createApp:GO(he)}}function X4({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function hu({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function uL(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function J4(e,t,n=!1){const s=e.children,a=t.children;if(Ae(s)&&Ae(a))for(let o=0;o<s.length;o++){const r=s[o];let i=a[o];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=a[o]=ji(a[o]),i.el=r.el),!n&&i.patchFlag!==-2&&J4(r,i)),i.type===mf&&(i.patchFlag===-1&&(i=a[o]=ji(i)),i.el=r.el),i.type===Jn&&!i.el&&(i.el=r.el)}}function dL(e){const t=e.slice(),n=[0];let s,a,o,r,i;const l=e.length;for(s=0;s<l;s++){const c=e[s];if(c!==0){if(a=n[n.length-1],e[a]<c){t[s]=a,n.push(s);continue}for(o=0,r=n.length-1;o<r;)i=o+r>>1,e[n[i]]<c?o=i+1:r=i;c<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function iS(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:iS(t)}function lS(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function cS(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?cS(t.subTree):null}const uS=e=>e.__isSuspense;function fL(e,t){t&&t.pendingBranch?Ae(e)?t.effects.push(...e):t.effects.push(e):EO(e)}const He=Symbol.for("v-fgt"),mf=Symbol.for("v-txt"),Jn=Symbol.for("v-cmt"),Z4=Symbol.for("v-stc"),J0=[];let lo=null;function S(e=!1){J0.push(lo=e?null:[])}function hL(){J0.pop(),lo=J0[J0.length-1]||null}let Z0=1;function eg(e,t=!1){Z0+=e,e<0&&lo&&t&&(lo.hasOnce=!0)}function dS(e){return e.dynamicChildren=Z0>0?lo||sr:null,hL(),Z0>0&&lo&&lo.push(e),e}function M(e,t,n,s,a,o){return dS(A(e,t,n,s,a,o,!0))}function ce(e,t,n,s,a){return dS(W(e,t,n,s,a,!0))}function vn(e){return e?e.__v_isVNode===!0:!1}function pu(e,t){return e.type===t.type&&e.key===t.key}const fS=({key:e})=>e??null,tg=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Xe(e)||yn(e)||Qe(e)?{i:Gs,r:e,k:t,f:!!n}:e:null);function A(e,t=null,n=null,s=0,a=null,o=e===He?0:1,r=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fS(t),ref:t&&tg(t),scopeId:yC,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Gs};return i?(Q4(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Xe(n)?8:16),Z0>0&&!r&&lo&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&lo.push(l),l}const W=pL;function pL(e,t=null,n=null,s=0,a=null,o=!1){if((!e||e===DC)&&(e=Jn),vn(e)){const i=Yr(e,t,!0);return n&&Q4(i,n),Z0>0&&!o&&lo&&(i.shapeFlag&6?lo[lo.indexOf(e)]=i:lo.push(i)),i.patchFlag=-2,i}if(SL(e)&&(e=e.__vccOpts),t){t=Wi(t);let{class:i,style:l}=t;i&&!Xe(i)&&(t.class=D(i)),bt(l)&&(B2(l)&&!Ae(l)&&(l=ws({},l)),t.style=et(l))}const r=Xe(e)?1:uS(e)?128:CC(e)?64:bt(e)?4:Qe(e)?2:0;return A(e,t,n,s,a,r,o,!0)}function Wi(e){return e?B2(e)||eS(e)?ws({},e):e:null}function Yr(e,t,n=!1,s=!1){const{props:a,ref:o,patchFlag:r,children:i,transition:l}=e,c=t?At(a||{},t):a,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&fS(c),ref:t&&t.ref?n&&o?Ae(o)?o.concat(tg(t)):[o,tg(t)]:tg(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==He?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Yr(e.ssContent),ssFallback:e.ssFallback&&Yr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&du(u,l.clone(u)),u}function We(e=" ",t=0){return W(mf,null,e,t)}function ie(e="",t=!1){return t?(S(),ce(Jn,null,e)):W(Jn,null,e)}function Xr(e){return e==null||typeof e=="boolean"?W(Jn):Ae(e)?W(He,null,e.slice()):vn(e)?ji(e):W(mf,null,String(e))}function ji(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Yr(e)}function Q4(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(Ae(t))n=16;else if(typeof t=="object")if(s&65){const a=t.default;a&&(a._c&&(a._d=!1),Q4(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!eS(t)?t._ctx=Gs:a===3&&Gs&&(Gs.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Qe(t)?(t={default:t,_ctx:Gs},n=32):(t=String(t),s&64?(n=16,t=[We(t)]):n=8);e.children=t,e.shapeFlag|=n}function At(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const a in s)if(a==="class")t.class!==s.class&&(t.class=D([t.class,s.class]));else if(a==="style")t.style=et([t.style,s.style]);else if(E2(a)){const o=t[a],r=s[a];r&&o!==r&&!(Ae(o)&&o.includes(r))&&(t[a]=o?[].concat(o,r):r)}else a!==""&&(t[a]=s[a])}return t}function Jr(e,t,n,s=null){ir(e,t,7,[n,s])}const vL=qC();let mL=0;function gL(e,t,n){const s=e.type,a=(t?t.appContext:e.appContext)||vL,o={uid:mL++,vnode:e,type:s,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new W_(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:nS(s,a),emitsOptions:GC(s,a),emit:null,emitted:null,propsDefaults:Qt,inheritAttrs:s.inheritAttrs,ctx:Qt,data:Qt,props:Qt,attrs:Qt,slots:Qt,refs:Qt,setupState:Qt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=XO.bind(null,o),e.ce&&e.ce(o),o}let la=null;const Tt=()=>la||Gs;let ng,ey;{const e=R2(),t=(n,s)=>{let a;return(a=e[n])||(a=e[n]=[]),a.push(s),o=>{a.length>1?a.forEach(r=>r(o)):a[0](o)}};ng=t("__VUE_INSTANCE_SETTERS__",n=>la=n),ey=t("__VUE_SSR_SETTERS__",n=>ep=n)}const Q0=e=>{const t=la;return ng(e),e.scope.on(),()=>{e.scope.off(),ng(t)}},hS=()=>{la&&la.scope.off(),ng(null)};function pS(e){return e.vnode.shapeFlag&4}let ep=!1;function bL(e,t=!1,n=!1){t&&ey(t);const{props:s,children:a}=e.vnode,o=pS(e);nL(e,s,o,t),rL(e,a,n||t);const r=o?yL(e,t):void 0;return t&&ey(!1),r}function yL(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,zO);const{setup:s}=n;if(s){jr();const a=e.setupContext=s.length>1?gS(e):null,o=Q0(e),r=df(s,e,0,[e.props,a]),i=au(r);if(Kr(),o(),(i||e.sp)&&!pf(e)&&OC(e),i){if(r.then(hS,hS),t)return r.then(l=>{vS(e,l)}).catch(l=>{W2(l,e,0)});e.asyncDep=r}else vS(e,r)}else mS(e)}function vS(e,t,n){Qe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:bt(t)&&(e.setupState=dC(t)),mS(e)}function mS(e,t,n){const s=e.type;e.render||(e.render=s.render||en);{const a=Q0(e);jr();try{HO(e)}finally{Kr(),a()}}}const wL={get(e,t){return ra(e,"get",""),e[t]}};function gS(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,wL),slots:e.slots,emit:e.emit,expose:t}}function sg(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(dC(Ur(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Y0)return Y0[n](e)},has(t,n){return n in t||n in Y0}})):e.proxy}const _L=/(?:^|[-_])\w/g,CL=e=>e.replace(_L,t=>t.toUpperCase()).replace(/[-_]/g,"");function bS(e,t=!0){return Qe(e)?e.displayName||e.name:e.name||t&&e.__name}function yS(e,t,n=!1){let s=bS(t);if(!s&&t.__file){const a=t.__file.match(/([^/\\]+)\.\w+$/);a&&(s=a[1])}if(!s&&e){const a=o=>{for(const r in o)if(o[r]===t)return r};s=a(e.components)||e.parent&&a(e.parent.type.components)||a(e.appContext.components)}return s?CL(s):n?"App":"Anonymous"}function SL(e){return Qe(e)&&"__vccOpts"in e}const E=(e,t)=>gO(e,t,ep);function lt(e,t,n){try{eg(-1);const s=arguments.length;return s===2?bt(t)&&!Ae(t)?vn(t)?W(e,null,[t]):W(e,t):W(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&vn(n)&&(n=[n]),W(e,t,n))}finally{eg(1)}}const xL="3.5.28",kL=en;/**
|
||
* @vue/runtime-dom v3.5.28
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let ty;const wS=typeof window<"u"&&window.trustedTypes;if(wS)try{ty=wS.createPolicy("vue",{createHTML:e=>e})}catch{}const _S=ty?e=>ty.createHTML(e):e=>e,EL="http://www.w3.org/2000/svg",AL="http://www.w3.org/1998/Math/MathML",Ki=typeof document<"u"?document:null,CS=Ki&&Ki.createElement("template"),TL={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const a=t==="svg"?Ki.createElementNS(EL,e):t==="mathml"?Ki.createElementNS(AL,e):n?Ki.createElement(e,{is:n}):Ki.createElement(e);return e==="select"&&s&&s.multiple!=null&&a.setAttribute("multiple",s.multiple),a},createText:e=>Ki.createTextNode(e),createComment:e=>Ki.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ki.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,a,o){const r=n?n.previousSibling:t.lastChild;if(a&&(a===o||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),n),!(a===o||!(a=a.nextSibling)););else{CS.innerHTML=_S(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const i=CS.content;if(s==="svg"||s==="mathml"){const l=i.firstChild;for(;l.firstChild;)i.appendChild(l.firstChild);i.removeChild(l)}t.insertBefore(i,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ql="transition",tp="animation",gf=Symbol("_vtc"),SS={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},xS=ws({},TC,SS),Cs=(e=>(e.displayName="Transition",e.props=xS,e))((e,{slots:t})=>lt(OO,ES(e),t)),vu=(e,t=[])=>{Ae(e)?e.forEach(n=>n(...t)):e&&e(...t)},kS=e=>e?Ae(e)?e.some(t=>t.length>1):e.length>1:!1;function ES(e){const t={};for(const O in e)O in SS||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:s,duration:a,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=r,appearToClass:u=i,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,v=ML(a),m=v&&v[0],g=v&&v[1],{onBeforeEnter:b,onEnter:C,onEnterCancelled:w,onLeave:_,onLeaveCancelled:x,onBeforeAppear:k=b,onAppear:T=C,onAppearCancelled:R=w}=t,I=(O,B,H,J)=>{O._enterCancelled=J,ec(O,B?u:i),ec(O,B?c:r),H&&H()},P=(O,B)=>{O._isLeaving=!1,ec(O,f),ec(O,p),ec(O,h),B&&B()},$=O=>(B,H)=>{const J=O?T:C,Y=()=>I(B,O,H);vu(J,[B,Y]),AS(()=>{ec(B,O?l:o),Zr(B,O?u:i),kS(J)||TS(B,s,m,Y)})};return ws(t,{onBeforeEnter(O){vu(b,[O]),Zr(O,o),Zr(O,r)},onBeforeAppear(O){vu(k,[O]),Zr(O,l),Zr(O,c)},onEnter:$(!1),onAppear:$(!0),onLeave(O,B){O._isLeaving=!0;const H=()=>P(O,B);Zr(O,f),O._enterCancelled?(Zr(O,h),sy(O)):(sy(O),Zr(O,h)),AS(()=>{O._isLeaving&&(ec(O,f),Zr(O,p),kS(_)||TS(O,s,g,H))}),vu(_,[O,H])},onEnterCancelled(O){I(O,!1,void 0,!0),vu(w,[O])},onAppearCancelled(O){I(O,!0,void 0,!0),vu(R,[O])},onLeaveCancelled(O){P(O),vu(x,[O])}})}function ML(e){if(e==null)return null;if(bt(e))return[ny(e.enter),ny(e.leave)];{const t=ny(e);return[t,t]}}function ny(e){return BI(e)}function Zr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[gf]||(e[gf]=new Set)).add(t)}function ec(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[gf];n&&(n.delete(t),n.size||(e[gf]=void 0))}function AS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let PL=0;function TS(e,t,n,s){const a=e._endId=++PL,o=()=>{a===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:r,timeout:i,propCount:l}=MS(e,t);if(!r)return s();const c=r+"end";let u=0;const f=()=>{e.removeEventListener(c,h),o()},h=p=>{p.target===e&&++u>=l&&f()};setTimeout(()=>{u<l&&f()},i+1),e.addEventListener(c,h)}function MS(e,t){const n=window.getComputedStyle(e),s=v=>(n[v]||"").split(", "),a=s(`${Ql}Delay`),o=s(`${Ql}Duration`),r=PS(a,o),i=s(`${tp}Delay`),l=s(`${tp}Duration`),c=PS(i,l);let u=null,f=0,h=0;t===Ql?r>0&&(u=Ql,f=r,h=o.length):t===tp?c>0&&(u=tp,f=c,h=l.length):(f=Math.max(r,c),u=f>0?r>c?Ql:tp:null,h=u?u===Ql?o.length:l.length:0);const p=u===Ql&&/\b(?:transform|all)(?:,|$)/.test(s(`${Ql}Property`).toString());return{type:u,timeout:f,propCount:h,hasTransform:p}}function PS(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>RS(n)+RS(e[s])))}function RS(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function sy(e){return(e?e.ownerDocument:document).body.offsetHeight}function RL(e,t,n){const s=e[gf];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ag=Symbol("_vod"),IS=Symbol("_vsh"),jt={name:"show",beforeMount(e,{value:t},{transition:n}){e[ag]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):np(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),np(e,!0),s.enter(e)):s.leave(e,()=>{np(e,!1)}):np(e,t))},beforeUnmount(e,{value:t}){np(e,t)}};function np(e,t){e.style.display=t?e[ag]:"none",e[IS]=!t}const IL=Symbol(""),OL=/(?:^|;)\s*display\s*:/;function LL(e,t,n){const s=e.style,a=Xe(n);let o=!1;if(n&&!a){if(t)if(Xe(t))for(const r of t.split(";")){const i=r.slice(0,r.indexOf(":")).trim();n[i]==null&&og(s,i,"")}else for(const r in t)n[r]==null&&og(s,r,"");for(const r in n)r==="display"&&(o=!0),og(s,r,n[r])}else if(a){if(t!==n){const r=s[IL];r&&(n+=";"+r),s.cssText=n,o=OL.test(n)}}else t&&e.removeAttribute("style");ag in e&&(e[ag]=o?s.display:"",e[IS]&&(s.display="none"))}const OS=/\s*!important$/;function og(e,t,n){if(Ae(n))n.forEach(s=>og(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=NL(e,t);OS.test(n)?e.setProperty(Ni(s),n.replace(OS,""),"important"):e[s]=n}}const LS=["Webkit","Moz","ms"],ay={};function NL(e,t){const n=ay[t];if(n)return n;let s=Ea(t);if(s!=="filter"&&s in e)return ay[t]=s;s=N0(s);for(let a=0;a<LS.length;a++){const o=LS[a]+s;if(o in e)return ay[t]=o}return t}const NS="http://www.w3.org/1999/xlink";function $S(e,t,n,s,a,o=jI(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(NS,t.slice(6,t.length)):e.setAttributeNS(NS,t,n):n==null||o&&!B_(n)?e.removeAttribute(t):e.setAttribute(t,o?"":ar(n)?String(n):n)}function DS(e,t,n,s,a){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?_S(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(i!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let r=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=B_(n):n==null&&i==="string"?(n="",r=!0):i==="number"&&(n=0,r=!0)}try{e[t]=n}catch{}r&&e.removeAttribute(a||t)}function tc(e,t,n,s){e.addEventListener(t,n,s)}function $L(e,t,n,s){e.removeEventListener(t,n,s)}const FS=Symbol("_vei");function DL(e,t,n,s,a=null){const o=e[FS]||(e[FS]={}),r=o[t];if(s&&r)r.value=s;else{const[i,l]=FL(t);if(s){const c=o[t]=zL(s,a);tc(e,i,c,l)}else r&&($L(e,i,r,l),o[t]=void 0)}}const BS=/(?:Once|Passive|Capture)$/;function FL(e){let t;if(BS.test(e)){t={};let s;for(;s=e.match(BS);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ni(e.slice(2)),t]}let oy=0;const BL=Promise.resolve(),VL=()=>oy||(BL.then(()=>oy=0),oy=Date.now());function zL(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;ir(HL(s,n.value),t,5,[s])};return n.value=e,n.attached=VL(),n}function HL(e,t){if(Ae(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>a=>!a._stopped&&s&&s(a))}else return t}const VS=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,WL=(e,t,n,s,a,o)=>{const r=a==="svg";t==="class"?RL(e,s,r):t==="style"?LL(e,n,s):E2(t)?g4(t)||DL(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jL(e,t,s,r))?(DS(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&$S(e,t,s,r,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Xe(s))?DS(e,Ea(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),$S(e,t,s,r))};function jL(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&VS(t)&&Qe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return VS(t)&&Xe(n)?!1:t in e}const zS=new WeakMap,HS=new WeakMap,rg=Symbol("_moveCb"),WS=Symbol("_enterCb"),jS=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:ws({},xS,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Tt(),s=AC();let a,o;return lr(()=>{if(!a.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!GL(a[0].el,n.vnode.el,r)){a=[];return}a.forEach(KL),a.forEach(UL);const i=a.filter(qL);sy(n.vnode.el),i.forEach(l=>{const c=l.el,u=c.style;Zr(c,r),u.transform=u.webkitTransform=u.transitionDuration="";const f=c[rg]=h=>{h&&h.target!==c||(!h||h.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",f),c[rg]=null,ec(c,r))};c.addEventListener("transitionend",f)}),a=[]}),()=>{const r=pn(e),i=ES(r);let l=r.tag||He;if(a=[],o)for(let c=0;c<o.length;c++){const u=o[c];u.el&&u.el instanceof Element&&(a.push(u),du(u,U0(u,i,s,n)),zS.set(u,KS(u.el)))}o=t.default?D4(t.default()):[];for(let c=0;c<o.length;c++){const u=o[c];u.key!=null&&du(u,U0(u,i,s,n))}return W(l,null,o)}}});function KL(e){const t=e.el;t[rg]&&t[rg](),t[WS]&&t[WS]()}function UL(e){HS.set(e,KS(e.el))}function qL(e){const t=zS.get(e),n=HS.get(e),s=t.left-n.left,a=t.top-n.top;if(s||a){const o=e.el,r=o.style,i=o.getBoundingClientRect();let l=1,c=1;return o.offsetWidth&&(l=i.width/o.offsetWidth),o.offsetHeight&&(c=i.height/o.offsetHeight),(!Number.isFinite(l)||l===0)&&(l=1),(!Number.isFinite(c)||c===0)&&(c=1),Math.abs(l-1)<.01&&(l=1),Math.abs(c-1)<.01&&(c=1),r.transform=r.webkitTransform=`translate(${s/l}px,${a/c}px)`,r.transitionDuration="0s",e}}function KS(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function GL(e,t,n){const s=e.cloneNode(),a=e[gf];a&&a.forEach(i=>{i.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(i=>i&&s.classList.add(i)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:r}=MS(s);return o.removeChild(s),r}const bf=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ae(t)?n=>P2(t,n):t};function YL(e){e.target.composing=!0}function US(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ui=Symbol("_assign");function qS(e,t,n){return t&&(e=e.trim()),n&&(e=y4(e)),e}const ig={created(e,{modifiers:{lazy:t,trim:n,number:s}},a){e[Ui]=bf(a);const o=s||a.props&&a.props.type==="number";tc(e,t?"change":"input",r=>{r.target.composing||e[Ui](qS(e.value,n,o))}),(n||o)&&tc(e,"change",()=>{e.value=qS(e.value,n,o)}),t||(tc(e,"compositionstart",YL),tc(e,"compositionend",US),tc(e,"change",US))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:a,number:o}},r){if(e[Ui]=bf(r),e.composing)return;const i=(o||e.type==="number")&&!/^0\d/.test(e.value)?y4(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||a&&e.value.trim()===l)||(e.value=l))}},lg={deep:!0,created(e,t,n){e[Ui]=bf(n),tc(e,"change",()=>{const s=e._modelValue,a=XS(e),o=e.checked,r=e[Ui];if(Ae(s)){const i=V_(s,a),l=i!==-1;if(o&&!l)r(s.concat(a));else if(!o&&l){const c=[...s];c.splice(i,1),r(c)}}else if(A2(s)){const i=new Set(s);o?i.add(a):i.delete(a),r(i)}else r(JS(e,o))})},mounted:GS,beforeUpdate(e,t,n){e[Ui]=bf(n),GS(e,t,n)}};function GS(e,{value:t,oldValue:n},s){e._modelValue=t;let a;if(Ae(t))a=V_(t,s.props.value)>-1;else if(A2(t))a=t.has(s.props.value);else{if(t===n)return;a=ou(t,JS(e,!0))}e.checked!==a&&(e.checked=a)}const YS={created(e,{value:t},n){e.checked=ou(t,n.props.value),e[Ui]=bf(n),tc(e,"change",()=>{e[Ui](XS(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Ui]=bf(s),t!==n&&(e.checked=ou(t,s.props.value))}};function XS(e){return"_value"in e?e._value:e.value}function JS(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const XL=["ctrl","shift","alt","meta"],JL={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)=>XL.some(n=>e[`${n}Key`]&&!t.includes(n))},ht=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(a,...o)=>{for(let r=0;r<t.length;r++){const i=JL[t[r]];if(i&&i(a,t))return}return e(a,...o)})},ZL={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},zn=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=a=>{if(!("key"in a))return;const o=Ni(a.key);if(t.some(r=>r===o||ZL[r]===o))return e(a)})},QL=ws({patchProp:WL},TL);let ZS;function QS(){return ZS||(ZS=lL(QL))}const nc=(...e)=>{QS().render(...e)},e5=(...e)=>{const t=QS().createApp(...e),{mount:n}=t;return t.mount=s=>{const a=tN(s);if(!a)return;const o=t._component;!Qe(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const r=n(a,!1,eN(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),r},t};function eN(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function tN(e){return Xe(e)?document.querySelector(e):e}const nN="2.13.2",t5=Symbol("INSTALLED_KEY"),n5=Symbol();var s5=typeof global=="object"&&global&&global.Object===Object&&global,sN=typeof self=="object"&&self&&self.Object===Object&&self,cr=s5||sN||Function("return this")(),Do=cr.Symbol,a5=Object.prototype,aN=a5.hasOwnProperty,oN=a5.toString,sp=Do?Do.toStringTag:void 0;function rN(e){var t=aN.call(e,sp),n=e[sp];try{e[sp]=void 0;var s=!0}catch{}var a=oN.call(e);return s&&(t?e[sp]=n:delete e[sp]),a}var iN=Object.prototype,lN=iN.toString;function cN(e){return lN.call(e)}var uN="[object Null]",dN="[object Undefined]",o5=Do?Do.toStringTag:void 0;function mu(e){return e==null?e===void 0?dN:uN:o5&&o5 in Object(e)?rN(e):cN(e)}function Qr(e){return e!=null&&typeof e=="object"}var fN="[object Symbol]";function cg(e){return typeof e=="symbol"||Qr(e)&&mu(e)==fN}function ry(e,t){for(var n=-1,s=e==null?0:e.length,a=Array(s);++n<s;)a[n]=t(e[n],n,e);return a}var Pa=Array.isArray,r5=Do?Do.prototype:void 0,i5=r5?r5.toString:void 0;function l5(e){if(typeof e=="string")return e;if(Pa(e))return ry(e,l5)+"";if(cg(e))return i5?i5.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var hN=/\s/;function pN(e){for(var t=e.length;t--&&hN.test(e.charAt(t)););return t}var vN=/^\s+/;function mN(e){return e&&e.slice(0,pN(e)+1).replace(vN,"")}function Ra(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var c5=NaN,gN=/^[-+]0x[0-9a-f]+$/i,bN=/^0b[01]+$/i,yN=/^0o[0-7]+$/i,wN=parseInt;function ap(e){if(typeof e=="number")return e;if(cg(e))return c5;if(Ra(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ra(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=mN(e);var n=bN.test(e);return n||yN.test(e)?wN(e.slice(2),n?2:8):gN.test(e)?c5:+e}function iy(e){return e}var _N="[object AsyncFunction]",CN="[object Function]",SN="[object GeneratorFunction]",xN="[object Proxy]";function ly(e){if(!Ra(e))return!1;var t=mu(e);return t==CN||t==SN||t==_N||t==xN}var cy=cr["__core-js_shared__"],u5=function(){var e=/[^.]+$/.exec(cy&&cy.keys&&cy.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function kN(e){return!!u5&&u5 in e}var EN=Function.prototype,AN=EN.toString;function gu(e){if(e!=null){try{return AN.call(e)}catch{}try{return e+""}catch{}}return""}var TN=/[\\^$.*+?()[\]{}|]/g,MN=/^\[object .+?Constructor\]$/,PN=Function.prototype,RN=Object.prototype,IN=PN.toString,ON=RN.hasOwnProperty,LN=RegExp("^"+IN.call(ON).replace(TN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function NN(e){if(!Ra(e)||kN(e))return!1;var t=ly(e)?LN:MN;return t.test(gu(e))}function $N(e,t){return e==null?void 0:e[t]}function bu(e,t){var n=$N(e,t);return NN(n)?n:void 0}var uy=bu(cr,"WeakMap"),d5=Object.create,DN=function(){function e(){}return function(t){if(!Ra(t))return{};if(d5)return d5(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function FN(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function BN(){}function f5(e,t){var n=-1,s=e.length;for(t||(t=Array(s));++n<s;)t[n]=e[n];return t}var VN=800,zN=16,HN=Date.now;function WN(e){var t=0,n=0;return function(){var s=HN(),a=zN-(s-n);if(n=s,a>0){if(++t>=VN)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function jN(e){return function(){return e}}var ug=function(){try{var e=bu(Object,"defineProperty");return e({},"",{}),e}catch{}}(),KN=ug?function(e,t){return ug(e,"toString",{configurable:!0,enumerable:!1,value:jN(t),writable:!0})}:iy,h5=WN(KN);function UN(e,t){for(var n=-1,s=e==null?0:e.length;++n<s&&t(e[n],n,e)!==!1;);return e}function p5(e,t,n,s){for(var a=e.length,o=n+(s?1:-1);s?o--:++o<a;)if(t(e[o],o,e))return o;return-1}function qN(e){return e!==e}function GN(e,t,n){for(var s=n-1,a=e.length;++s<a;)if(e[s]===t)return s;return-1}function YN(e,t,n){return t===t?GN(e,t,n):p5(e,qN,n)}function XN(e,t){var n=e==null?0:e.length;return!!n&&YN(e,t,0)>-1}var JN=9007199254740991,ZN=/^(?:0|[1-9]\d*)$/;function dg(e,t){var n=typeof e;return t=t??JN,!!t&&(n=="number"||n!="symbol"&&ZN.test(e))&&e>-1&&e%1==0&&e<t}function dy(e,t,n){t=="__proto__"&&ug?ug(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function op(e,t){return e===t||e!==e&&t!==t}var QN=Object.prototype,e$=QN.hasOwnProperty;function fy(e,t,n){var s=e[t];(!(e$.call(e,t)&&op(s,n))||n===void 0&&!(t in e))&&dy(e,t,n)}function yf(e,t,n,s){var a=!n;n||(n={});for(var o=-1,r=t.length;++o<r;){var i=t[o],l=void 0;l===void 0&&(l=e[i]),a?dy(n,i,l):fy(n,i,l)}return n}var v5=Math.max;function m5(e,t,n){return t=v5(t===void 0?e.length-1:t,0),function(){for(var s=arguments,a=-1,o=v5(s.length-t,0),r=Array(o);++a<o;)r[a]=s[t+a];a=-1;for(var i=Array(t+1);++a<t;)i[a]=s[a];return i[t]=n(r),FN(e,this,i)}}function g5(e,t){return h5(m5(e,t,iy),e+"")}var t$=9007199254740991;function hy(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t$}function wf(e){return e!=null&&hy(e.length)&&!ly(e)}function n$(e,t,n){if(!Ra(n))return!1;var s=typeof t;return(s=="number"?wf(n)&&dg(t,n.length):s=="string"&&t in n)?op(n[t],e):!1}function s$(e){return g5(function(t,n){var s=-1,a=n.length,o=a>1?n[a-1]:void 0,r=a>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,r&&n$(n[0],n[1],r)&&(o=a<3?void 0:o,a=1),t=Object(t);++s<a;){var i=n[s];i&&e(t,i,s,o)}return t})}var a$=Object.prototype;function py(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||a$;return e===n}function o$(e,t){for(var n=-1,s=Array(e);++n<e;)s[n]=t(n);return s}var r$="[object Arguments]";function b5(e){return Qr(e)&&mu(e)==r$}var y5=Object.prototype,i$=y5.hasOwnProperty,l$=y5.propertyIsEnumerable,rp=b5(function(){return arguments}())?b5:function(e){return Qr(e)&&i$.call(e,"callee")&&!l$.call(e,"callee")};function c$(){return!1}var w5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_5=w5&&typeof module=="object"&&module&&!module.nodeType&&module,u$=_5&&_5.exports===w5,C5=u$?cr.Buffer:void 0,d$=C5?C5.isBuffer:void 0,ip=d$||c$,f$="[object Arguments]",h$="[object Array]",p$="[object Boolean]",v$="[object Date]",m$="[object Error]",g$="[object Function]",b$="[object Map]",y$="[object Number]",w$="[object Object]",_$="[object RegExp]",C$="[object Set]",S$="[object String]",x$="[object WeakMap]",k$="[object ArrayBuffer]",E$="[object DataView]",A$="[object Float32Array]",T$="[object Float64Array]",M$="[object Int8Array]",P$="[object Int16Array]",R$="[object Int32Array]",I$="[object Uint8Array]",O$="[object Uint8ClampedArray]",L$="[object Uint16Array]",N$="[object Uint32Array]",Zn={};Zn[A$]=Zn[T$]=Zn[M$]=Zn[P$]=Zn[R$]=Zn[I$]=Zn[O$]=Zn[L$]=Zn[N$]=!0,Zn[f$]=Zn[h$]=Zn[k$]=Zn[p$]=Zn[E$]=Zn[v$]=Zn[m$]=Zn[g$]=Zn[b$]=Zn[y$]=Zn[w$]=Zn[_$]=Zn[C$]=Zn[S$]=Zn[x$]=!1;function $$(e){return Qr(e)&&hy(e.length)&&!!Zn[mu(e)]}function vy(e){return function(t){return e(t)}}var S5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lp=S5&&typeof module=="object"&&module&&!module.nodeType&&module,D$=lp&&lp.exports===S5,my=D$&&s5.process,_f=function(){try{var e=lp&&lp.require&&lp.require("util").types;return e||my&&my.binding&&my.binding("util")}catch{}}(),x5=_f&&_f.isTypedArray,gy=x5?vy(x5):$$,F$=Object.prototype,B$=F$.hasOwnProperty;function k5(e,t){var n=Pa(e),s=!n&&rp(e),a=!n&&!s&&ip(e),o=!n&&!s&&!a&&gy(e),r=n||s||a||o,i=r?o$(e.length,String):[],l=i.length;for(var c in e)(t||B$.call(e,c))&&!(r&&(c=="length"||a&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||dg(c,l)))&&i.push(c);return i}function E5(e,t){return function(n){return e(t(n))}}var V$=E5(Object.keys,Object),z$=Object.prototype,H$=z$.hasOwnProperty;function W$(e){if(!py(e))return V$(e);var t=[];for(var n in Object(e))H$.call(e,n)&&n!="constructor"&&t.push(n);return t}function cp(e){return wf(e)?k5(e):W$(e)}function j$(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var K$=Object.prototype,U$=K$.hasOwnProperty;function q$(e){if(!Ra(e))return j$(e);var t=py(e),n=[];for(var s in e)s=="constructor"&&(t||!U$.call(e,s))||n.push(s);return n}function up(e){return wf(e)?k5(e,!0):q$(e)}var G$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y$=/^\w*$/;function by(e,t){if(Pa(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||cg(e)?!0:Y$.test(e)||!G$.test(e)||t!=null&&e in Object(t)}var dp=bu(Object,"create");function X$(){this.__data__=dp?dp(null):{},this.size=0}function J$(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Z$="__lodash_hash_undefined__",Q$=Object.prototype,eD=Q$.hasOwnProperty;function tD(e){var t=this.__data__;if(dp){var n=t[e];return n===Z$?void 0:n}return eD.call(t,e)?t[e]:void 0}var nD=Object.prototype,sD=nD.hasOwnProperty;function aD(e){var t=this.__data__;return dp?t[e]!==void 0:sD.call(t,e)}var oD="__lodash_hash_undefined__";function rD(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=dp&&t===void 0?oD:t,this}function yu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}yu.prototype.clear=X$,yu.prototype.delete=J$,yu.prototype.get=tD,yu.prototype.has=aD,yu.prototype.set=rD;function iD(){this.__data__=[],this.size=0}function fg(e,t){for(var n=e.length;n--;)if(op(e[n][0],t))return n;return-1}var lD=Array.prototype,cD=lD.splice;function uD(e){var t=this.__data__,n=fg(t,e);if(n<0)return!1;var s=t.length-1;return n==s?t.pop():cD.call(t,n,1),--this.size,!0}function dD(e){var t=this.__data__,n=fg(t,e);return n<0?void 0:t[n][1]}function fD(e){return fg(this.__data__,e)>-1}function hD(e,t){var n=this.__data__,s=fg(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}function qi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}qi.prototype.clear=iD,qi.prototype.delete=uD,qi.prototype.get=dD,qi.prototype.has=fD,qi.prototype.set=hD;var fp=bu(cr,"Map");function pD(){this.size=0,this.__data__={hash:new yu,map:new(fp||qi),string:new yu}}function vD(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function hg(e,t){var n=e.__data__;return vD(t)?n[typeof t=="string"?"string":"hash"]:n.map}function mD(e){var t=hg(this,e).delete(e);return this.size-=t?1:0,t}function gD(e){return hg(this,e).get(e)}function bD(e){return hg(this,e).has(e)}function yD(e,t){var n=hg(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}function Gi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}Gi.prototype.clear=pD,Gi.prototype.delete=mD,Gi.prototype.get=gD,Gi.prototype.has=bD,Gi.prototype.set=yD;var wD="Expected a function";function pg(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(wD);var n=function(){var s=arguments,a=t?t.apply(this,s):s[0],o=n.cache;if(o.has(a))return o.get(a);var r=e.apply(this,s);return n.cache=o.set(a,r)||o,r};return n.cache=new(pg.Cache||Gi),n}pg.Cache=Gi;var _D=500;function CD(e){var t=pg(e,function(s){return n.size===_D&&n.clear(),s}),n=t.cache;return t}var SD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xD=/\\(\\)?/g,kD=CD(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(SD,function(n,s,a,o){t.push(a?o.replace(xD,"$1"):s||n)}),t});function ED(e){return e==null?"":l5(e)}function Cf(e,t){return Pa(e)?e:by(e,t)?[e]:kD(ED(e))}function Sf(e){if(typeof e=="string"||cg(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function vg(e,t){t=Cf(t,e);for(var n=0,s=t.length;e!=null&&n<s;)e=e[Sf(t[n++])];return n&&n==s?e:void 0}function ts(e,t,n){var s=e==null?void 0:vg(e,t);return s===void 0?n:s}function yy(e,t){for(var n=-1,s=t.length,a=e.length;++n<s;)e[a+n]=t[n];return e}var A5=Do?Do.isConcatSpreadable:void 0;function AD(e){return Pa(e)||rp(e)||!!(A5&&e&&e[A5])}function hp(e,t,n,s,a){var o=-1,r=e.length;for(n||(n=AD),a||(a=[]);++o<r;){var i=e[o];t>0&&n(i)?t>1?hp(i,t-1,n,s,a):yy(a,i):s||(a[a.length]=i)}return a}function mg(e){var t=e==null?0:e.length;return t?hp(e,1):[]}function T5(e){return h5(m5(e,void 0,mg),e+"")}var wy=E5(Object.getPrototypeOf,Object),TD="[object Object]",MD=Function.prototype,PD=Object.prototype,M5=MD.toString,RD=PD.hasOwnProperty,ID=M5.call(Object);function P5(e){if(!Qr(e)||mu(e)!=TD)return!1;var t=wy(e);if(t===null)return!0;var n=RD.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&M5.call(n)==ID}function OD(e,t,n){var s=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(a);++s<a;)o[s]=e[s+t];return o}function Ts(){if(!arguments.length)return[];var e=arguments[0];return Pa(e)?e:[e]}function LD(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}function wu(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=ap(n),n=n===n?n:0),t!==void 0&&(t=ap(t),t=t===t?t:0),LD(ap(e),t,n)}function ND(){this.__data__=new qi,this.size=0}function $D(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function DD(e){return this.__data__.get(e)}function FD(e){return this.__data__.has(e)}var BD=200;function VD(e,t){var n=this.__data__;if(n instanceof qi){var s=n.__data__;if(!fp||s.length<BD-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gi(s)}return n.set(e,t),this.size=n.size,this}function ur(e){var t=this.__data__=new qi(e);this.size=t.size}ur.prototype.clear=ND,ur.prototype.delete=$D,ur.prototype.get=DD,ur.prototype.has=FD,ur.prototype.set=VD;function zD(e,t){return e&&yf(t,cp(t),e)}function HD(e,t){return e&&yf(t,up(t),e)}var R5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,I5=R5&&typeof module=="object"&&module&&!module.nodeType&&module,WD=I5&&I5.exports===R5,O5=WD?cr.Buffer:void 0,L5=O5?O5.allocUnsafe:void 0;function N5(e,t){if(t)return e.slice();var n=e.length,s=L5?L5(n):new e.constructor(n);return e.copy(s),s}function jD(e,t){for(var n=-1,s=e==null?0:e.length,a=0,o=[];++n<s;){var r=e[n];t(r,n,e)&&(o[a++]=r)}return o}function $5(){return[]}var KD=Object.prototype,UD=KD.propertyIsEnumerable,D5=Object.getOwnPropertySymbols,_y=D5?function(e){return e==null?[]:(e=Object(e),jD(D5(e),function(t){return UD.call(e,t)}))}:$5;function qD(e,t){return yf(e,_y(e),t)}var GD=Object.getOwnPropertySymbols,F5=GD?function(e){for(var t=[];e;)yy(t,_y(e)),e=wy(e);return t}:$5;function YD(e,t){return yf(e,F5(e),t)}function B5(e,t,n){var s=t(e);return Pa(e)?s:yy(s,n(e))}function Cy(e){return B5(e,cp,_y)}function V5(e){return B5(e,up,F5)}var Sy=bu(cr,"DataView"),xy=bu(cr,"Promise"),xf=bu(cr,"Set"),z5="[object Map]",XD="[object Object]",H5="[object Promise]",W5="[object Set]",j5="[object WeakMap]",K5="[object DataView]",JD=gu(Sy),ZD=gu(fp),QD=gu(xy),eF=gu(xf),tF=gu(uy),dr=mu;(Sy&&dr(new Sy(new ArrayBuffer(1)))!=K5||fp&&dr(new fp)!=z5||xy&&dr(xy.resolve())!=H5||xf&&dr(new xf)!=W5||uy&&dr(new uy)!=j5)&&(dr=function(e){var t=mu(e),n=t==XD?e.constructor:void 0,s=n?gu(n):"";if(s)switch(s){case JD:return K5;case ZD:return z5;case QD:return H5;case eF:return W5;case tF:return j5}return t});var nF=Object.prototype,sF=nF.hasOwnProperty;function aF(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&sF.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var gg=cr.Uint8Array;function ky(e){var t=new e.constructor(e.byteLength);return new gg(t).set(new gg(e)),t}function oF(e,t){var n=t?ky(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var rF=/\w*$/;function iF(e){var t=new e.constructor(e.source,rF.exec(e));return t.lastIndex=e.lastIndex,t}var U5=Do?Do.prototype:void 0,q5=U5?U5.valueOf:void 0;function lF(e){return q5?Object(q5.call(e)):{}}function G5(e,t){var n=t?ky(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var cF="[object Boolean]",uF="[object Date]",dF="[object Map]",fF="[object Number]",hF="[object RegExp]",pF="[object Set]",vF="[object String]",mF="[object Symbol]",gF="[object ArrayBuffer]",bF="[object DataView]",yF="[object Float32Array]",wF="[object Float64Array]",_F="[object Int8Array]",CF="[object Int16Array]",SF="[object Int32Array]",xF="[object Uint8Array]",kF="[object Uint8ClampedArray]",EF="[object Uint16Array]",AF="[object Uint32Array]";function TF(e,t,n){var s=e.constructor;switch(t){case gF:return ky(e);case cF:case uF:return new s(+e);case bF:return oF(e,n);case yF:case wF:case _F:case CF:case SF:case xF:case kF:case EF:case AF:return G5(e,n);case dF:return new s;case fF:case vF:return new s(e);case hF:return iF(e);case pF:return new s;case mF:return lF(e)}}function Y5(e){return typeof e.constructor=="function"&&!py(e)?DN(wy(e)):{}}var MF="[object Map]";function PF(e){return Qr(e)&&dr(e)==MF}var X5=_f&&_f.isMap,RF=X5?vy(X5):PF,IF="[object Set]";function OF(e){return Qr(e)&&dr(e)==IF}var J5=_f&&_f.isSet,LF=J5?vy(J5):OF,NF=1,$F=2,DF=4,Z5="[object Arguments]",FF="[object Array]",BF="[object Boolean]",VF="[object Date]",zF="[object Error]",Q5="[object Function]",HF="[object GeneratorFunction]",WF="[object Map]",jF="[object Number]",ex="[object Object]",KF="[object RegExp]",UF="[object Set]",qF="[object String]",GF="[object Symbol]",YF="[object WeakMap]",XF="[object ArrayBuffer]",JF="[object DataView]",ZF="[object Float32Array]",QF="[object Float64Array]",eB="[object Int8Array]",tB="[object Int16Array]",nB="[object Int32Array]",sB="[object Uint8Array]",aB="[object Uint8ClampedArray]",oB="[object Uint16Array]",rB="[object Uint32Array]",Yn={};Yn[Z5]=Yn[FF]=Yn[XF]=Yn[JF]=Yn[BF]=Yn[VF]=Yn[ZF]=Yn[QF]=Yn[eB]=Yn[tB]=Yn[nB]=Yn[WF]=Yn[jF]=Yn[ex]=Yn[KF]=Yn[UF]=Yn[qF]=Yn[GF]=Yn[sB]=Yn[aB]=Yn[oB]=Yn[rB]=!0,Yn[zF]=Yn[Q5]=Yn[YF]=!1;function kf(e,t,n,s,a,o){var r,i=t&NF,l=t&$F,c=t&DF;if(n&&(r=a?n(e,s,a,o):n(e)),r!==void 0)return r;if(!Ra(e))return e;var u=Pa(e);if(u){if(r=aF(e),!i)return f5(e,r)}else{var f=dr(e),h=f==Q5||f==HF;if(ip(e))return N5(e,i);if(f==ex||f==Z5||h&&!a){if(r=l||h?{}:Y5(e),!i)return l?YD(e,HD(r,e)):qD(e,zD(r,e))}else{if(!Yn[f])return a?e:{};r=TF(e,f,i)}}o||(o=new ur);var p=o.get(e);if(p)return p;o.set(e,r),LF(e)?e.forEach(function(g){r.add(kf(g,t,n,g,e,o))}):RF(e)&&e.forEach(function(g,b){r.set(b,kf(g,t,n,b,e,o))});var v=c?l?V5:Cy:l?up:cp,m=u?void 0:v(e);return UN(m||e,function(g,b){m&&(b=g,g=e[b]),fy(r,b,kf(g,t,n,b,e,o))}),r}var iB=4;function Ey(e){return kf(e,iB)}var lB=1,cB=4;function bg(e){return kf(e,lB|cB)}var uB="__lodash_hash_undefined__";function dB(e){return this.__data__.set(e,uB),this}function fB(e){return this.__data__.has(e)}function pp(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Gi;++t<n;)this.add(e[t])}pp.prototype.add=pp.prototype.push=dB,pp.prototype.has=fB;function hB(e,t){for(var n=-1,s=e==null?0:e.length;++n<s;)if(t(e[n],n,e))return!0;return!1}function tx(e,t){return e.has(t)}var pB=1,vB=2;function nx(e,t,n,s,a,o){var r=n&pB,i=e.length,l=t.length;if(i!=l&&!(r&&l>i))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var f=-1,h=!0,p=n&vB?new pp:void 0;for(o.set(e,t),o.set(t,e);++f<i;){var v=e[f],m=t[f];if(s)var g=r?s(m,v,f,t,e,o):s(v,m,f,e,t,o);if(g!==void 0){if(g)continue;h=!1;break}if(p){if(!hB(t,function(b,C){if(!tx(p,C)&&(v===b||a(v,b,n,s,o)))return p.push(C)})){h=!1;break}}else if(!(v===m||a(v,m,n,s,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function mB(e){var t=-1,n=Array(e.size);return e.forEach(function(s,a){n[++t]=[a,s]}),n}function Ay(e){var t=-1,n=Array(e.size);return e.forEach(function(s){n[++t]=s}),n}var gB=1,bB=2,yB="[object Boolean]",wB="[object Date]",_B="[object Error]",CB="[object Map]",SB="[object Number]",xB="[object RegExp]",kB="[object Set]",EB="[object String]",AB="[object Symbol]",TB="[object ArrayBuffer]",MB="[object DataView]",sx=Do?Do.prototype:void 0,Ty=sx?sx.valueOf:void 0;function PB(e,t,n,s,a,o,r){switch(n){case MB:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case TB:return!(e.byteLength!=t.byteLength||!o(new gg(e),new gg(t)));case yB:case wB:case SB:return op(+e,+t);case _B:return e.name==t.name&&e.message==t.message;case xB:case EB:return e==t+"";case CB:var i=mB;case kB:var l=s&gB;if(i||(i=Ay),e.size!=t.size&&!l)return!1;var c=r.get(e);if(c)return c==t;s|=bB,r.set(e,t);var u=nx(i(e),i(t),s,a,o,r);return r.delete(e),u;case AB:if(Ty)return Ty.call(e)==Ty.call(t)}return!1}var RB=1,IB=Object.prototype,OB=IB.hasOwnProperty;function LB(e,t,n,s,a,o){var r=n&RB,i=Cy(e),l=i.length,c=Cy(t),u=c.length;if(l!=u&&!r)return!1;for(var f=l;f--;){var h=i[f];if(!(r?h in t:OB.call(t,h)))return!1}var p=o.get(e),v=o.get(t);if(p&&v)return p==t&&v==e;var m=!0;o.set(e,t),o.set(t,e);for(var g=r;++f<l;){h=i[f];var b=e[h],C=t[h];if(s)var w=r?s(C,b,h,t,e,o):s(b,C,h,e,t,o);if(!(w===void 0?b===C||a(b,C,n,s,o):w)){m=!1;break}g||(g=h=="constructor")}if(m&&!g){var _=e.constructor,x=t.constructor;_!=x&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof x=="function"&&x instanceof x)&&(m=!1)}return o.delete(e),o.delete(t),m}var NB=1,ax="[object Arguments]",ox="[object Array]",yg="[object Object]",$B=Object.prototype,rx=$B.hasOwnProperty;function DB(e,t,n,s,a,o){var r=Pa(e),i=Pa(t),l=r?ox:dr(e),c=i?ox:dr(t);l=l==ax?yg:l,c=c==ax?yg:c;var u=l==yg,f=c==yg,h=l==c;if(h&&ip(e)){if(!ip(t))return!1;r=!0,u=!1}if(h&&!u)return o||(o=new ur),r||gy(e)?nx(e,t,n,s,a,o):PB(e,t,l,n,s,a,o);if(!(n&NB)){var p=u&&rx.call(e,"__wrapped__"),v=f&&rx.call(t,"__wrapped__");if(p||v){var m=p?e.value():e,g=v?t.value():t;return o||(o=new ur),a(m,g,n,s,o)}}return h?(o||(o=new ur),LB(e,t,n,s,a,o)):!1}function wg(e,t,n,s,a){return e===t?!0:e==null||t==null||!Qr(e)&&!Qr(t)?e!==e&&t!==t:DB(e,t,n,s,wg,a)}var FB=1,BB=2;function VB(e,t,n,s){var a=n.length,o=a;if(e==null)return!o;for(e=Object(e);a--;){var r=n[a];if(r[2]?r[1]!==e[r[0]]:!(r[0]in e))return!1}for(;++a<o;){r=n[a];var i=r[0],l=e[i],c=r[1];if(r[2]){if(l===void 0&&!(i in e))return!1}else{var u=new ur,f;if(!(f===void 0?wg(c,l,FB|BB,s,u):f))return!1}}return!0}function ix(e){return e===e&&!Ra(e)}function zB(e){for(var t=cp(e),n=t.length;n--;){var s=t[n],a=e[s];t[n]=[s,a,ix(a)]}return t}function lx(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function HB(e){var t=zB(e);return t.length==1&&t[0][2]?lx(t[0][0],t[0][1]):function(n){return n===e||VB(n,e,t)}}function WB(e,t){return e!=null&&t in Object(e)}function cx(e,t,n){t=Cf(t,e);for(var s=-1,a=t.length,o=!1;++s<a;){var r=Sf(t[s]);if(!(o=e!=null&&n(e,r)))break;e=e[r]}return o||++s!=a?o:(a=e==null?0:e.length,!!a&&hy(a)&&dg(r,a)&&(Pa(e)||rp(e)))}function ux(e,t){return e!=null&&cx(e,t,WB)}var jB=1,KB=2;function UB(e,t){return by(e)&&ix(t)?lx(Sf(e),t):function(n){var s=ts(n,e);return s===void 0&&s===t?ux(n,e):wg(t,s,jB|KB)}}function qB(e){return function(t){return t==null?void 0:t[e]}}function GB(e){return function(t){return vg(t,e)}}function YB(e){return by(e)?qB(Sf(e)):GB(e)}function dx(e){return typeof e=="function"?e:e==null?iy:typeof e=="object"?Pa(e)?UB(e[0],e[1]):HB(e):YB(e)}function XB(e){return function(t,n,s){for(var a=-1,o=Object(t),r=s(t),i=r.length;i--;){var l=r[++a];if(n(o[l],l,o)===!1)break}return t}}var fx=XB();function JB(e,t){return e&&fx(e,t,cp)}function ZB(e,t){return function(n,s){if(n==null)return n;if(!wf(n))return e(n,s);for(var a=n.length,o=-1,r=Object(n);++o<a&&s(r[o],o,r)!==!1;);return n}}var QB=ZB(JB),My=function(){return cr.Date.now()},eV="Expected a function",tV=Math.max,nV=Math.min;function ei(e,t,n){var s,a,o,r,i,l,c=0,u=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(eV);t=ap(t)||0,Ra(n)&&(u=!!n.leading,f="maxWait"in n,o=f?tV(ap(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function p(k){var T=s,R=a;return s=a=void 0,c=k,r=e.apply(R,T),r}function v(k){return c=k,i=setTimeout(b,t),u?p(k):r}function m(k){var T=k-l,R=k-c,I=t-T;return f?nV(I,o-R):I}function g(k){var T=k-l,R=k-c;return l===void 0||T>=t||T<0||f&&R>=o}function b(){var k=My();if(g(k))return C(k);i=setTimeout(b,m(k))}function C(k){return i=void 0,h&&s?p(k):(s=a=void 0,r)}function w(){i!==void 0&&clearTimeout(i),c=0,s=l=a=i=void 0}function _(){return i===void 0?r:C(My())}function x(){var k=My(),T=g(k);if(s=arguments,a=this,l=k,T){if(i===void 0)return v(l);if(f)return clearTimeout(i),i=setTimeout(b,t),p(l)}return i===void 0&&(i=setTimeout(b,t)),r}return x.cancel=w,x.flush=_,x}function Py(e,t,n){(n!==void 0&&!op(e[t],n)||n===void 0&&!(t in e))&&dy(e,t,n)}function hx(e){return Qr(e)&&wf(e)}function Ry(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function sV(e){return yf(e,up(e))}function aV(e,t,n,s,a,o,r){var i=Ry(e,n),l=Ry(t,n),c=r.get(l);if(c){Py(e,n,c);return}var u=o?o(i,l,n+"",e,t,r):void 0,f=u===void 0;if(f){var h=Pa(l),p=!h&&ip(l),v=!h&&!p&&gy(l);u=l,h||p||v?Pa(i)?u=i:hx(i)?u=f5(i):p?(f=!1,u=N5(l,!0)):v?(f=!1,u=G5(l,!0)):u=[]:P5(l)||rp(l)?(u=i,rp(i)?u=sV(i):(!Ra(i)||ly(i))&&(u=Y5(l))):f=!1}f&&(r.set(l,u),a(u,l,s,o,r),r.delete(l)),Py(e,n,u)}function px(e,t,n,s,a){e!==t&&fx(t,function(o,r){if(a||(a=new ur),Ra(o))aV(e,t,r,n,px,s,a);else{var i=s?s(Ry(e,r),o,r+"",e,t,a):void 0;i===void 0&&(i=o),Py(e,r,i)}},up)}function oV(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function vx(e,t,n){var s=e==null?0:e.length;if(!s)return-1;var a=s-1;return p5(e,dx(t),a,!0)}function rV(e,t){var n=-1,s=wf(e)?Array(e.length):[];return QB(e,function(a,o,r){s[++n]=t(a,o,r)}),s}function iV(e,t){var n=Pa(e)?ry:rV;return n(e,dx(t))}function mx(e,t){return hp(iV(e,t),1)}var lV=1/0;function cV(e){var t=e==null?0:e.length;return t?hp(e,lV):[]}function vp(e){for(var t=-1,n=e==null?0:e.length,s={};++t<n;){var a=e[t];s[a[0]]=a[1]}return s}var uV=Object.prototype,dV=uV.hasOwnProperty;function fV(e,t){return e!=null&&dV.call(e,t)}function hV(e,t){return e!=null&&cx(e,t,fV)}function pV(e,t){return t.length<2?e:vg(e,OD(t,0,-1))}function Hn(e,t){return wg(e,t)}function Qn(e){return e==null}function _g(e){return e===null}function vV(e){return e===void 0}var gx=s$(function(e,t,n){px(e,t,n)}),mV=Object.prototype,gV=mV.hasOwnProperty;function bV(e,t){t=Cf(t,e);var n=-1,s=t.length;if(!s)return!0;for(var a=e==null||typeof e!="object"&&typeof e!="function";++n<s;){var o=t[n];if(typeof o=="string"){if(o==="__proto__"&&!gV.call(e,"__proto__"))return!1;if(o==="constructor"&&n+1<s&&typeof t[n+1]=="string"&&t[n+1]==="prototype"){if(a&&n===0)continue;return!1}}}var r=pV(e,t);return r==null||delete r[Sf(oV(t))]}function yV(e){return P5(e)?void 0:e}var wV=1,_V=2,CV=4,mp=T5(function(e,t){var n={};if(e==null)return n;var s=!1;t=ry(t,function(o){return o=Cf(o,e),s||(s=o.length>1),o}),yf(e,V5(e),n),s&&(n=kf(n,wV|_V|CV,yV));for(var a=t.length;a--;)bV(n,t[a]);return n});function bx(e,t,n,s){if(!Ra(e))return e;t=Cf(t,e);for(var a=-1,o=t.length,r=o-1,i=e;i!=null&&++a<o;){var l=Sf(t[a]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(a!=r){var u=i[l];c=void 0,c===void 0&&(c=Ra(u)?u:dg(t[a+1])?[]:{})}fy(i,l,c),i=i[l]}return e}function SV(e,t,n){for(var s=-1,a=t.length,o={};++s<a;){var r=t[s],i=vg(e,r);n(i,r)&&bx(o,Cf(r,e),i)}return o}function xV(e,t){return SV(e,t,function(n,s){return ux(e,s)})}var Yi=T5(function(e,t){return e==null?{}:xV(e,t)});function kV(e,t,n){return e==null?e:bx(e,t,n)}var EV="Expected a function";function sc(e,t,n){var s=!0,a=!0;if(typeof e!="function")throw new TypeError(EV);return Ra(n)&&(s="leading"in n?!!n.leading:s,a="trailing"in n?!!n.trailing:a),ei(e,t,{leading:s,maxWait:t,trailing:a})}var AV=1/0,TV=xf&&1/Ay(new xf([,-0]))[1]==AV?function(e){return new xf(e)}:BN,MV=200;function PV(e,t,n){var s=-1,a=XN,o=e.length,r=!0,i=[],l=i;if(o>=MV){var c=TV(e);if(c)return Ay(c);r=!1,a=tx,l=new pp}else l=i;e:for(;++s<o;){var u=e[s],f=u;if(u=u!==0?u:0,r&&f===f){for(var h=l.length;h--;)if(l[h]===f)continue e;i.push(u)}else a(l,f,n)||(l!==i&&l.push(f),i.push(u))}return i}var Iy=g5(function(e){return PV(hp(e,1,hx,!0))}),RV={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",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},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",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",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},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 IV=e=>(t,n)=>OV(t,n,d(e)),OV=(e,t,n)=>ts(n,e,e).replace(/\{(\w+)\}/g,(s,a)=>{var o;return`${(o=t==null?void 0:t[a])!=null?o:`{${a}}`}`}),LV=e=>({lang:E(()=>d(e).name),locale:yn(e)?e:F(e),t:IV(e)}),yx=Symbol("localeContextKey"),Ft=e=>{const t=e||je(yx,F());return LV(E(()=>t.value||RV))},gp="el",NV="is-",_u=(e,t,n,s,a)=>{let o=`${e}-${t}`;return n&&(o+=`-${n}`),s&&(o+=`__${s}`),a&&(o+=`--${a}`),o},wx=Symbol("namespaceContextKey"),Oy=e=>{const t=e||(Tt()?je(wx,F(gp)):F(gp));return E(()=>d(t)||gp)},Ee=(e,t)=>{const n=Oy(t);return{namespace:n,b:(m="")=>_u(n.value,e,m,"",""),e:m=>m?_u(n.value,e,"",m,""):"",m:m=>m?_u(n.value,e,"","",m):"",be:(m,g)=>m&&g?_u(n.value,e,m,g,""):"",em:(m,g)=>m&&g?_u(n.value,e,"",m,g):"",bm:(m,g)=>m&&g?_u(n.value,e,m,"",g):"",bem:(m,g,b)=>m&&g&&b?_u(n.value,e,m,g,b):"",is:(m,...g)=>{const b=g.length>=1?g[0]:!0;return m&&b?`${NV}${m}`:""},cssVar:m=>{const g={};for(const b in m)m[b]&&(g[`--${n.value}-${b}`]=m[b]);return g},cssVarName:m=>`--${n.value}-${m}`,cssVarBlock:m=>{const g={};for(const b in m)m[b]&&(g[`--${n.value}-${e}-${b}`]=m[b]);return g},cssVarBlockName:m=>`--${n.value}-${e}-${m}`}},Wt=e=>e===void 0,on=e=>typeof e=="boolean",st=e=>typeof e=="number",Ia=e=>!e&&e!==0||Ae(e)&&e.length===0||bt(e)&&!Object.keys(e).length,Ka=e=>typeof Element>"u"?!1:e instanceof Element,Ua=e=>Qn(e),$V=e=>Xe(e)?!Number.isNaN(Number(e)):!1,bp=e=>e===window;function _x(e,t){var n;const s=bn();return ja(()=>{s.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),iu(s)}function Cu(e){return j_()?(K_(e),!0):!1}function co(e){return typeof e=="function"?e():d(e)}function DV(e){if(!yn(e))return Gt(e);const t=new Proxy({},{get(n,s,a){return d(Reflect.get(e.value,s,a))},set(n,s,a){return yn(e.value[s])&&!yn(a)?e.value[s].value=a:e.value[s]=a,!0},deleteProperty(n,s){return Reflect.deleteProperty(e.value,s)},has(n,s){return Reflect.has(e.value,s)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Gt(t)}function FV(e){return DV(E(e))}const Yt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const BV=e=>typeof e<"u",Cx=e=>e!=null,VV=Object.prototype.toString,zV=e=>VV.call(e)==="[object Object]",Sx=(e,t,n)=>Math.min(n,Math.max(t,e)),fr=()=>{},Cg=HV();function HV(){var e,t;return Yt&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function xx(e,t){function n(...s){return new Promise((a,o)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(a).catch(o)})}return n}function WV(e,t={}){let n,s,a=fr;const o=i=>{clearTimeout(i),a(),a=fr};return i=>{const l=co(e),c=co(t.maxWait);return n&&o(n),l<=0||c!==void 0&&c<=0?(s&&(o(s),s=null),Promise.resolve(i())):new Promise((u,f)=>{a=t.rejectOnCancel?f:u,c&&!s&&(s=setTimeout(()=>{n&&o(n),s=null,u(i())},c)),n=setTimeout(()=>{s&&o(s),s=null,u(i())},l)})}}function jV(...e){let t=0,n,s=!0,a=fr,o,r,i,l,c;!yn(e[0])&&typeof e[0]=="object"?{delay:r,trailing:i=!0,leading:l=!0,rejectOnCancel:c=!1}=e[0]:[r,i=!0,l=!0,c=!1]=e;const u=()=>{n&&(clearTimeout(n),n=void 0,a(),a=fr)};return h=>{const p=co(r),v=Date.now()-t,m=()=>o=h();return u(),p<=0?(t=Date.now(),m()):(v>p&&(l||!s)?(t=Date.now(),m()):i&&(o=new Promise((g,b)=>{a=c?b:g,n=setTimeout(()=>{t=Date.now(),s=!0,g(m()),u()},Math.max(0,p-v))})),!l&&!n&&(n=setTimeout(()=>s=!0,p)),s=!1,o)}}function KV(e){return Tt()}function yp(e,t=200,n={}){return xx(WV(t,n),e)}function UV(e,t=200,n={}){const s=F(e.value),a=yp(()=>{s.value=e.value},t,n);return be(e,()=>a()),s}function kx(e,t=200,n=!1,s=!0,a=!1){return xx(jV(t,n,s,a),e)}function Ly(e,t=!0,n){KV()?Mt(e,n):t?e():ze(e)}function Ef(e,t,n={}){const{immediate:s=!0}=n,a=F(!1);let o=null;function r(){o&&(clearTimeout(o),o=null)}function i(){a.value=!1,r()}function l(...c){r(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=null,e(...c)},co(t))}return s&&(a.value=!0,Yt&&l()),Cu(i),{isPending:iu(a),start:l,stop:i}}function fs(e){var t;const n=co(e);return(t=n==null?void 0:n.$el)!=null?t:n}const hr=Yt?window:void 0,qV=Yt?window.document:void 0;function an(...e){let t,n,s,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,a]=e,t=hr):[t,n,s,a]=e,!t)return fr;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const o=[],r=()=>{o.forEach(u=>u()),o.length=0},i=(u,f,h,p)=>(u.addEventListener(f,h,p),()=>u.removeEventListener(f,h,p)),l=be(()=>[fs(t),co(a)],([u,f])=>{if(r(),!u)return;const h=zV(f)?{...f}:f;o.push(...n.flatMap(p=>s.map(v=>i(u,p,v,h))))},{immediate:!0,flush:"post"}),c=()=>{l(),r()};return Cu(c),c}let Ex=!1;function Ny(e,t,n={}){const{window:s=hr,ignore:a=[],capture:o=!0,detectIframe:r=!1}=n;if(!s)return fr;Cg&&!Ex&&(Ex=!0,Array.from(s.document.body.children).forEach(h=>h.addEventListener("click",fr)),s.document.documentElement.addEventListener("click",fr));let i=!0;const l=h=>a.some(p=>{if(typeof p=="string")return Array.from(s.document.querySelectorAll(p)).some(v=>v===h.target||h.composedPath().includes(v));{const v=fs(p);return v&&(h.target===v||h.composedPath().includes(v))}}),u=[an(s,"click",h=>{const p=fs(e);if(!(!p||p===h.target||h.composedPath().includes(p))){if(h.detail===0&&(i=!l(h)),!i){i=!0;return}t(h)}},{passive:!0,capture:o}),an(s,"pointerdown",h=>{const p=fs(e);i=!l(h)&&!!(p&&!h.composedPath().includes(p))},{passive:!0}),r&&an(s,"blur",h=>{setTimeout(()=>{var p;const v=fs(e);((p=s.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(v!=null&&v.contains(s.document.activeElement))&&t(h)},0)})].filter(Boolean);return()=>u.forEach(h=>h())}function GV(){const e=F(!1),t=Tt();return t&&Mt(()=>{e.value=!0},t),e}function Sg(e){const t=GV();return E(()=>(t.value,!!e()))}function wp(e,t,n={}){const{window:s=hr,...a}=n;let o;const r=Sg(()=>s&&"MutationObserver"in s),i=()=>{o&&(o.disconnect(),o=void 0)},l=E(()=>{const h=co(e),p=(Array.isArray(h)?h:[h]).map(fs).filter(Cx);return new Set(p)}),c=be(()=>l.value,h=>{i(),r.value&&h.size&&(o=new MutationObserver(t),h.forEach(p=>o.observe(p,a)))},{immediate:!0,flush:"post"}),u=()=>o==null?void 0:o.takeRecords(),f=()=>{i(),c()};return Cu(f),{isSupported:r,stop:f,takeRecords:u}}function YV(e={}){var t;const{window:n=hr,deep:s=!0,triggerOnRemoval:a=!1}=e,o=(t=e.document)!=null?t:n==null?void 0:n.document,r=()=>{var c;let u=o==null?void 0:o.activeElement;if(s)for(;u!=null&&u.shadowRoot;)u=(c=u==null?void 0:u.shadowRoot)==null?void 0:c.activeElement;return u},i=F(),l=()=>{i.value=r()};return n&&(an(n,"blur",c=>{c.relatedTarget===null&&l()},!0),an(n,"focus",l,!0)),a&&wp(o,c=>{c.filter(u=>u.removedNodes.length).map(u=>Array.from(u.removedNodes)).flat().forEach(u=>{u===i.value&&l()})},{childList:!0,subtree:!0}),l(),i}function XV(e,t={}){const{window:n=hr}=t,s=Sg(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const o=F(!1),r=c=>{o.value=c.matches},i=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",r):a.removeListener(r))},l=ja(()=>{s.value&&(i(),a=n.matchMedia(co(e)),"addEventListener"in a?a.addEventListener("change",r):a.addListener(r),o.value=a.matches)});return Cu(()=>{l(),i(),a=void 0}),o}function JV(e){return JSON.parse(JSON.stringify(e))}function ZV(e,t,n={}){const{window:s=hr,initialValue:a="",observe:o=!1}=n,r=F(a),i=E(()=>{var c;return fs(t)||((c=s==null?void 0:s.document)==null?void 0:c.documentElement)});function l(){var c;const u=co(e),f=co(i);if(f&&s){const h=(c=s.getComputedStyle(f).getPropertyValue(u))==null?void 0:c.trim();r.value=h||a}}return o&&wp(i,l,{attributeFilter:["style","class"],window:s}),be([i,()=>co(e)],l,{immediate:!0}),be(r,c=>{var u;(u=i.value)!=null&&u.style&&i.value.style.setProperty(co(e),c)}),r}function QV(e={}){const{document:t=qV}=e;if(!t)return F("visible");const n=F(t.visibilityState);return an(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function Tn(e,t,n={}){const{window:s=hr,...a}=n;let o;const r=Sg(()=>s&&"ResizeObserver"in s),i=()=>{o&&(o.disconnect(),o=void 0)},l=E(()=>Array.isArray(e)?e.map(f=>fs(f)):[fs(e)]),c=be(l,f=>{if(i(),r.value&&s){o=new ResizeObserver(t);for(const h of f)h&&o.observe(h,a)}},{immediate:!0,flush:"post"}),u=()=>{i(),c()};return Cu(u),{isSupported:r,stop:u}}function Ax(e,t={}){const{reset:n=!0,windowResize:s=!0,windowScroll:a=!0,immediate:o=!0}=t,r=F(0),i=F(0),l=F(0),c=F(0),u=F(0),f=F(0),h=F(0),p=F(0);function v(){const m=fs(e);if(!m){n&&(r.value=0,i.value=0,l.value=0,c.value=0,u.value=0,f.value=0,h.value=0,p.value=0);return}const g=m.getBoundingClientRect();r.value=g.height,i.value=g.bottom,l.value=g.left,c.value=g.right,u.value=g.top,f.value=g.width,h.value=g.x,p.value=g.y}return Tn(e,v),be(()=>fs(e),m=>!m&&v()),wp(e,v,{attributeFilter:["style","class"]}),a&&an("scroll",v,{capture:!0,passive:!0}),s&&an("resize",v,{passive:!0}),Ly(()=>{o&&v()}),{height:r,bottom:i,left:l,right:c,top:u,width:f,x:h,y:p,update:v}}function $y(e,t={width:0,height:0},n={}){const{window:s=hr,box:a="content-box"}=n,o=E(()=>{var f,h;return(h=(f=fs(e))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),r=F(t.width),i=F(t.height),{stop:l}=Tn(e,([f])=>{const h=a==="border-box"?f.borderBoxSize:a==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(s&&o.value){const p=fs(e);if(p){const v=p.getBoundingClientRect();r.value=v.width,i.value=v.height}}else if(h){const p=Array.isArray(h)?h:[h];r.value=p.reduce((v,{inlineSize:m})=>v+m,0),i.value=p.reduce((v,{blockSize:m})=>v+m,0)}else r.value=f.contentRect.width,i.value=f.contentRect.height},n);Ly(()=>{const f=fs(e);f&&(r.value="offsetWidth"in f?f.offsetWidth:t.width,i.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=be(()=>fs(e),f=>{r.value=f?t.width:0,i.value=f?t.height:0});function u(){l(),c()}return{width:r,height:i,stop:u}}function ez(e,t,n={}){const{root:s,rootMargin:a="0px",threshold:o=.1,window:r=hr,immediate:i=!0}=n,l=Sg(()=>r&&"IntersectionObserver"in r),c=E(()=>{const v=co(e);return(Array.isArray(v)?v:[v]).map(fs).filter(Cx)});let u=fr;const f=F(i),h=l.value?be(()=>[c.value,fs(s),f.value],([v,m])=>{if(u(),!f.value||!v.length)return;const g=new IntersectionObserver(t,{root:fs(m),rootMargin:a,threshold:o});v.forEach(b=>b&&g.observe(b)),u=()=>{g.disconnect(),u=fr}},{immediate:i,flush:"post"}):fr,p=()=>{u(),h(),f.value=!1};return Cu(p),{isSupported:l,isActive:f,pause(){u(),f.value=!1},resume(){f.value=!0},stop:p}}function Tx(e,t,n,s={}){var a,o,r;const{clone:i=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:f,shouldEmit:h}=s,p=Tt(),v=n||(p==null?void 0:p.emit)||((a=p==null?void 0:p.$emit)==null?void 0:a.bind(p))||((r=(o=p==null?void 0:p.proxy)==null?void 0:o.$emit)==null?void 0:r.bind(p==null?void 0:p.proxy));let m=c;t||(t="modelValue"),m=m||`update:${t.toString()}`;const g=w=>i?typeof i=="function"?i(w):JV(w):w,b=()=>BV(e[t])?g(e[t]):f,C=w=>{h?h(w)&&v(m,w):v(m,w)};if(l){const w=b(),_=F(w);let x=!1;return be(()=>e[t],k=>{x||(x=!0,_.value=g(k),ze(()=>x=!1))}),be(_,k=>{!x&&(k!==e[t]||u)&&C(k)},{deep:u}),_}else return E({get(){return b()},set(w){C(w)}})}function tz(e={}){const{window:t=hr}=e;if(!t)return F(!1);const n=F(t.document.hasFocus());return an(t,"blur",()=>{n.value=!1}),an(t,"focus",()=>{n.value=!0}),n}function Dy(e={}){const{window:t=hr,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:s=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:o=!0}=e,r=F(n),i=F(s),l=()=>{t&&(o?(r.value=t.innerWidth,i.value=t.innerHeight):(r.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};if(l(),Ly(l),an("resize",l,{passive:!0}),a){const c=XV("(orientation: portrait)");be(c,()=>l())}return{width:r,height:i}}class nz extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function ns(e,t){throw new nz(`[${e}] ${t}`)}function d3e(e,t){}const Mx={current:0},Px=F(0),Rx=2e3,Ix=Symbol("elZIndexContextKey"),Ox=Symbol("zIndexContextKey"),_p=e=>{const t=Tt()?je(Ix,Mx):Mx,n=e||(Tt()?je(Ox,void 0):void 0),s=E(()=>{const r=d(n);return st(r)?r:Rx}),a=E(()=>s.value+Px.value),o=()=>(t.current++,Px.value=t.current,a.value);return!Yt&&je(Ix),{initialZIndex:s,currentZIndex:a,nextZIndex:o}},Lx="__epPropKey",re=e=>e,sz=e=>bt(e)&&!!e[Lx],pr=(e,t)=>{if(!bt(e)||sz(e))return e;const{values:n,required:s,default:a,type:o,validator:r}=e,l={type:o,required:!!s,validator:n||r?c=>{let u=!1,f=[];if(n&&(f=Array.from(n),qt(e,"default")&&f.push(a),u||(u=f.includes(c))),r&&(u||(u=r(c))),!u&&f.length>0){const h=[...new Set(f)].map(p=>JSON.stringify(p)).join(", ");kL(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[Lx]:!0};return qt(e,"default")&&(l.default=a),l},Me=e=>vp(Object.entries(e).map(([t,n])=>[t,pr(n,t)])),vr=["","default","small","large"],hs=pr({type:String,values:vr,required:!1}),Nx=Symbol("size"),$x=()=>{const e=je(Nx,{});return E(()=>d(e.size)||"")},Dx=Symbol("emptyValuesContextKey"),az=["",void 0,null],oz=void 0,Su=Me({emptyValues:Array,valueOnClear:{type:re([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=Qe(e)?e():e,Ae(e)?e.every(t=>!t):!e)}}),Cp=(e,t)=>{const n=Tt()?je(Dx,F({})):F({}),s=E(()=>e.emptyValues||n.value.emptyValues||az),a=E(()=>Qe(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Qe(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:oz),o=r=>{let i=!0;return Ae(r)?i=s.value.some(l=>Hn(r,l)):i=s.value.includes(r),i};return o(a.value),{emptyValues:s,valueOnClear:a,isEmptyValue:o}},Sp=e=>Object.keys(e),Fx=e=>Object.entries(e),Af=(e,t,n)=>({get value(){return ts(e,t,n)},set value(s){kV(e,t,s)}}),xg=F();function Tf(e,t=void 0){const n=Tt()?je(n5,xg):xg;return e?E(()=>{var s,a;return(a=(s=n.value)==null?void 0:s[e])!=null?a:t}):n}function kg(e,t){const n=Tf(),s=Ee(e,E(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||gp})),a=Ft(E(()=>{var i;return(i=n.value)==null?void 0:i.locale})),o=_p(E(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||Rx})),r=E(()=>{var i;return d(t)||((i=n.value)==null?void 0:i.size)||""});return Fy(E(()=>d(n)||{})),{ns:s,locale:a,zIndex:o,size:r}}const Fy=(e,t,n=!1)=>{var s;const a=!!Tt(),o=a?Tf():void 0,r=(s=t==null?void 0:t.provide)!=null?s:a?Nt:void 0;if(!r)return;const i=E(()=>{const l=d(e);return o!=null&&o.value?rz(o.value,l):l});return r(n5,i),r(yx,E(()=>i.value.locale)),r(wx,E(()=>i.value.namespace)),r(Ox,E(()=>i.value.zIndex)),r(Nx,{size:E(()=>i.value.size||"")}),r(Dx,E(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!xg.value)&&(xg.value=i.value),i},rz=(e,t)=>{const n=[...new Set([...Sp(e),...Sp(t)])],s={};for(const a of n)s[a]=t[a]!==void 0?t[a]:e[a];return s},iz=(e=[])=>({version:nN,install:(n,s)=>{n[t5]||(n[t5]=!0,e.forEach(a=>n.use(a)),s&&Fy(s,n,!0))}}),xp=Me({to:{type:re([String,Object]),required:!0},disabled:Boolean}),mt="update:modelValue",Dt="change",is="input",lz=Me({zIndex:{type:re([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"},teleported:Boolean,appendTo:{type:xp.to.type,default:"body"}}),cz={scroll:({scrollTop:e,fixed:t})=>st(e)&&on(t),[Dt]:e=>on(e)};var uz=K({__name:"teleport",props:xp,setup(e){return(t,n)=>t.disabled?ue(t.$slots,"default",{key:0}):(S(),ce(RO,{key:1,to:t.to},[ue(t.$slots,"default")],8,["to"]))}});const wt=(e,t)=>{if(e.install=n=>{for(const s of[e,...Object.values(t??{})])n.component(s.name,s)},t)for(const[n,s]of Object.entries(t))e[n]=s;return e},Bx=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),dz=(e,t)=>(e.install=n=>{n.directive(t,e)},e),In=e=>(e.install=en,e),Mf=wt(uz);function fz(e,t,n,s){const a=n-t;return e/=s/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}const ti=e=>Yt?window.requestAnimationFrame(e):setTimeout(e,16),Xi=e=>Yt?window.cancelAnimationFrame(e):clearTimeout(e),Vx=(e="")=>e.split(" ").filter(t=>!!t.trim()),ni=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Fo=(e,t)=>{!e||!t.trim()||e.classList.add(...Vx(t))},ca=(e,t)=>{!e||!t.trim()||e.classList.remove(...Vx(t))},Ji=(e,t)=>{var n;if(!Yt||!e||!t)return"";let s=Ea(t);s==="float"&&(s="cssFloat");try{const a=e.style[s];if(a)return a;const o=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return o?o[s]:""}catch{return e.style[s]}},zx=(e,t,n)=>{if(!(!e||!t))if(bt(t))Fx(t).forEach(([s,a])=>zx(e,s,a));else{const s=Ea(t);e.style[s]=n}};function Nn(e,t="px"){if(!e&&e!==0)return"";if(st(e)||$V(e))return`${e}${t}`;if(Xe(e))return e}const hz=(e,t)=>{if(!Yt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],s=Ji(e,n);return["scroll","auto","overlay"].some(a=>s.includes(a))},By=(e,t)=>{if(!Yt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(hz(n,t))return n;n=n.parentNode}return n};let Eg;const Hx=e=>{var t;if(!Yt)return 0;if(Eg!==void 0)return Eg;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 s=n.offsetWidth;n.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",n.appendChild(a);const o=a.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Eg=s-o,Eg};function Vy(e,t){if(!Yt)return;if(!t){e.scrollTop=0;return}const n=[];let s=t.offsetParent;for(;s!==null&&e!==s&&e.contains(s);)n.push(s),s=s.offsetParent;const a=t.offsetTop+n.reduce((l,c)=>l+c.offsetTop,0),o=a+t.offsetHeight,r=e.scrollTop,i=r+e.clientHeight;a<r?e.scrollTop=a:o>i&&(e.scrollTop=o-e.clientHeight)}function pz(e,t,n,s,a){const o=Date.now();let r;const i=()=>{const c=Date.now()-o,u=fz(c>s?s:c,t,n,s);bp(e)?e.scrollTo(window.pageXOffset,u):e.scrollTop=u,c<s?r=ti(i):Qe(a)&&a()};return i(),()=>{r&&Xi(r)}}const Wx=(e,t)=>bp(t)?e.ownerDocument.documentElement:t,jx=e=>bp(e)?window.scrollY:e.scrollTop,Kx="ElAffix";var vz=K({name:Kx,__name:"affix",props:lz,emits:cz,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("affix"),r=bn(),i=bn(),l=bn(),{height:c}=Dy(),{height:u,width:f,top:h,bottom:p,left:v,update:m}=Ax(i,{windowScroll:!1}),g=Ax(r),b=F(!1),C=F(0),w=F(0),_=E(()=>!s.teleported||!b.value),x=E(()=>({height:b.value?`${u.value}px`:"",width:b.value?`${f.value}px`:""})),k=E(()=>{if(!b.value)return{};const P=Nn(s.offset);return{height:`${u.value}px`,width:`${f.value}px`,top:s.position==="top"?P:"",bottom:s.position==="bottom"?P:"",left:s.teleported?`${v.value}px`:"",transform:w.value?`translateY(${w.value}px)`:"",zIndex:s.zIndex}}),T=()=>{if(!l.value)return;C.value=l.value instanceof Window?document.documentElement.scrollTop:l.value.scrollTop||0;const{position:P,target:$,offset:O}=s,B=O+u.value;if(P==="top")if($){const H=g.bottom.value-B;b.value=O>h.value&&g.bottom.value>0,w.value=H<0?H:0}else b.value=O>h.value;else if($){const H=c.value-g.top.value-B;b.value=c.value-O<p.value&&c.value>g.top.value,w.value=H<0?-H:0}else b.value=c.value-O<p.value},R=async()=>{if(!b.value){m();return}b.value=!1,await ze(),m(),b.value=!0},I=async()=>{m(),await ze(),a("scroll",{scrollTop:C.value,fixed:b.value})};return be(b,P=>a(Dt,P)),Mt(()=>{var P;s.target?(r.value=(P=document.querySelector(s.target))!=null?P:void 0,r.value||ns(Kx,`Target does not exist: ${s.target}`)):r.value=document.documentElement,l.value=By(i.value,!0),m()}),G0(()=>{ze(R)}),F4(()=>{b.value=!1}),an(l,"scroll",I),ja(T),t({update:T,updateRoot:R}),(P,$)=>(S(),M("div",{ref_key:"root",ref:i,class:D(d(o).b()),style:et(x.value)},[W(d(Mf),{disabled:_.value,to:e.appendTo},{default:X(()=>[A("div",{class:D({[d(o).m("fixed")]:b.value}),style:et(k.value)},[ue(P.$slots,"default")],6)]),_:3},8,["disabled","to"])],6))}});const mz=wt(vz);/*! Element Plus Icons Vue v2.3.2 */var gz=K({name:"AddLocation",__name:"add-location",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),A("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),A("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0z"})]))}}),bz=gz,yz=K({name:"Aim",__name:"aim",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),wz=yz,_z=K({name:"AlarmClock",__name:"alarm-clock",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),A("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}}),Cz=_z,Sz=K({name:"Apple",__name:"apple",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M599.872 203.776a189.4 189.4 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a427 427 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664m-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688s81.28 34.688 136.96 33.536c56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152"})]))}}),xz=Sz,kz=K({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496"})]))}}),Ez=kz,Az=K({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),mr=Az,Tz=K({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0"})]))}}),Mz=Tz,Pz=K({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Bo=Pz,Rz=K({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0"})]))}}),Iz=Rz,Oz=K({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Fs=Oz,Lz=K({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496"})]))}}),Nz=Lz,$z=K({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),kp=$z,Dz=K({name:"Avatar",__name:"avatar",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.87 415.87 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),Fz=Dz,Bz=K({name:"Back",__name:"back",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),A("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"})]))}}),Ux=Bz,Vz=K({name:"Baseball",__name:"baseball",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6m45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"}),A("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896M108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1737 1737 0 0 1-11.392-65.728"})]))}}),zz=Vz,Hz=K({name:"Basketball",__name:"basketball",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M778.752 788.224a382.46 382.46 0 0 0 116.032-245.632 256.51 256.51 0 0 0-241.728-13.952 762.9 762.9 0 0 1 125.696 259.584m-55.04 44.224a699.65 699.65 0 0 0-125.056-269.632 256.13 256.13 0 0 0-56.064 331.968 382.7 382.7 0 0 0 181.12-62.336m-254.08 61.248A320.13 320.13 0 0 1 557.76 513.6a716 716 0 0 0-48.192-48.128 320.13 320.13 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.13 256.13 0 0 0 331.072-56.448 699.65 699.65 0 0 0-268.8-124.352 382.66 382.66 0 0 0-62.272 180.8m106.56-235.84a762.9 762.9 0 0 1 258.688 125.056 256.51 256.51 0 0 0-13.44-241.088A382.46 382.46 0 0 0 235.84 245.248m318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a780 780 0 0 1 66.176 66.112 320.83 320.83 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6"})]))}}),Wz=Hz,jz=K({name:"BellFilled",__name:"bell-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.13 320.13 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),Kz=jz,Uz=K({name:"Bell",__name:"bell",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),A("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),A("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),qz=Uz,Gz=K({name:"Bicycle",__name:"bicycle",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),A("path",{fill:"currentColor",d:"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),A("path",{fill:"currentColor",d:"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),A("path",{fill:"currentColor",d:"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384z"}),A("path",{fill:"currentColor",d:"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"})]))}}),Yz=Gz,Xz=K({name:"BottomLeft",__name:"bottom-left",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"}),A("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312z"})]))}}),Jz=Xz,Zz=K({name:"BottomRight",__name:"bottom-right",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"}),A("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z"})]))}}),Qz=Zz,eH=K({name:"Bottom",__name:"bottom",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),tH=eH,nH=K({name:"Bowl",__name:"bowl",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M714.432 704a351.74 351.74 0 0 0 148.16-256H161.408a351.74 351.74 0 0 0 148.16 256zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424zM352 768v64h320v-64z"})]))}}),sH=nH,aH=K({name:"Box",__name:"box",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64"}),A("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),A("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),oH=aH,rH=K({name:"Briefcase",__name:"briefcase",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),iH=rH,lH=K({name:"BrushFilled",__name:"brush-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128zM192 512V128.064h640V512z"})]))}}),cH=lH,uH=K({name:"Brush",__name:"brush",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a664 664 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168"})]))}}),dH=uH,fH=K({name:"Burger",__name:"burger",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44M832 448a320 320 0 0 0-640 0zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704z"})]))}}),hH=fH,pH=K({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),qx=pH,vH=K({name:"CameraFilled",__name:"camera-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),mH=vH,gH=K({name:"Camera",__name:"camera",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}}),bH=gH,yH=K({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),wH=yH,_H=K({name:"CaretLeft",__name:"caret-left",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})]))}}),CH=_H,SH=K({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),zy=SH,xH=K({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),Gx=xH,kH=K({name:"Cellphone",__name:"cellphone",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),EH=kH,AH=K({name:"ChatDotRound",__name:"chat-dot-round",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),A("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),TH=AH,MH=K({name:"ChatDotSquare",__name:"chat-dot-square",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),A("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),PH=MH,RH=K({name:"ChatLineRound",__name:"chat-line-round",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),A("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),IH=RH,OH=K({name:"ChatLineSquare",__name:"chat-line-square",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),A("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),LH=OH,NH=K({name:"ChatRound",__name:"chat-round",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"})]))}}),$H=NH,DH=K({name:"ChatSquare",__name:"chat-square",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"})]))}}),FH=DH,BH=K({name:"Check",__name:"check",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Pf=BH,VH=K({name:"Checked",__name:"checked",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"})]))}}),zH=VH,HH=K({name:"Cherry",__name:"cherry",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6M288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320m448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320"})]))}}),WH=HH,jH=K({name:"Chicken",__name:"chicken",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.7 106.7 0 0 1-26.176-19.072 106.7 106.7 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112m57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84M244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52z"})]))}}),KH=jH,UH=K({name:"ChromeFilled",__name:"chrome-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.37 212.37 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67"}),A("path",{fill:"currentColor",d:"M576.79 401.63a127.9 127.9 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128 128 0 0 0-2.16 127.44l1.24 2.13a127.9 127.9 0 0 0 46.36 46.61 127.9 127.9 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.98 127.98 0 0 0 .29-127.46 127.96 127.96 0 0 0-46.36-46.91"}),A("path",{fill:"currentColor",d:"M394.45 333.96A213.34 213.34 0 0 1 512 298.67h369.58A426.5 426.5 0 0 0 512 85.34a425.6 425.6 0 0 0-171.74 35.98 425.6 425.6 0 0 0-142.62 102.22l118.14 204.63a213.4 213.4 0 0 1 78.67-94.21m117.56 604.72H512zm-97.25-236.73a213.3 213.3 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.3 213.3 0 0 1-122.77-21.91"})]))}}),qH=UH,GH=K({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Yx=GH,YH=K({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),Ep=YH,XH=K({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Ag=XH,JH=K({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),Vo=JH,ZH=K({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0z"})]))}}),QH=ZH,eW=K({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),A("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),A("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"})]))}}),tW=eW,nW=K({name:"Clock",__name:"clock",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),Hy=nW,sW=K({name:"CloseBold",__name:"close-bold",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496"})]))}}),aW=sW,oW=K({name:"Close",__name:"close",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),qa=oW,rW=K({name:"Cloudy",__name:"cloudy",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"})]))}}),iW=rW,lW=K({name:"CoffeeCup",__name:"coffee-cup",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.13 256.13 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"})]))}}),cW=lW,uW=K({name:"Coffee",__name:"coffee",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64zm68.736 64 36.544 512H708.16l36.544-512z"})]))}}),dW=uW,fW=K({name:"Coin",__name:"coin",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264"}),A("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264"}),A("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),hW=fW,pW=K({name:"ColdDrink",__name:"cold-drink",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.06 192.06 0 0 1 768 64M656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928z"})]))}}),vW=pW,mW=K({name:"CollectionTag",__name:"collection-tag",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}}),gW=mW,bW=K({name:"Collection",__name:"collection",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64"}),A("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.88l96-76.8 96 76.8V128zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44z"})]))}}),Xx=bW,yW=K({name:"Comment",__name:"comment",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),wW=yW,_W=K({name:"Compass",__name:"compass",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),CW=_W,SW=K({name:"Connection",__name:"connection",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),A("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.06 192.06 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),xW=SW,kW=K({name:"Coordinate",__name:"coordinate",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),A("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),EW=kW,AW=K({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),A("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),TW=AW,MW=K({name:"Cpu",__name:"cpu",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),A("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),PW=MW,RW=K({name:"CreditCard",__name:"credit-card",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.35 52.35 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.35 52.35 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.35 52.35 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.35 52.35 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448S852.928 864 795.968 864H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.3 116.3 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448s41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384s17.088 41.6 17.088 98.56z"}),A("path",{fill:"currentColor",d:"M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"})]))}}),IW=RW,OW=K({name:"Crop",__name:"crop",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),A("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),Tg=OW,LW=K({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Zi=LW,NW=K({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Qi=NW,$W=K({name:"DCaret",__name:"d-caret",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),DW=$W,FW=K({name:"DataAnalysis",__name:"data-analysis",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"})]))}}),BW=FW,VW=K({name:"DataBoard",__name:"data-board",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M32 128h960v64H32z"}),A("path",{fill:"currentColor",d:"M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),A("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"})]))}}),zW=VW,HW=K({name:"DataLine",__name:"data-line",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"})]))}}),WW=HW,jW=K({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),KW=jW,UW=K({name:"DeleteLocation",__name:"delete-location",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),A("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),A("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),qW=UW,GW=K({name:"Delete",__name:"delete",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Jx=GW,YW=K({name:"Dessert",__name:"dessert",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416m287.104-32.064h193.792a143.81 143.81 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.81 143.81 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736M384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64"})]))}}),XW=YW,JW=K({name:"Discount",__name:"discount",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),A("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),ZW=JW,QW=K({name:"DishDot",__name:"dish-dot",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.19 448.19 0 0 1 955.392 768H68.544A448.19 448.19 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-128h768a384 384 0 1 0-768 0m447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256z"})]))}}),ej=QW,tj=K({name:"Dish",__name:"dish",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152M128 704h768a384 384 0 1 0-768 0M96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64"})]))}}),nj=tj,sj=K({name:"DocumentAdd",__name:"document-add",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"})]))}}),Zx=sj,aj=K({name:"DocumentChecked",__name:"document-checked",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"})]))}}),oj=aj,rj=K({name:"DocumentCopy",__name:"document-copy",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),ij=rj,lj=K({name:"DocumentDelete",__name:"document-delete",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248z"})]))}}),cj=lj,uj=K({name:"DocumentRemove",__name:"document-remove",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m192 512h320v64H352z"})]))}}),dj=uj,fj=K({name:"Document",__name:"document",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Mg=fj,hj=K({name:"Download",__name:"download",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),el=hj,pj=K({name:"Drizzling",__name:"drizzling",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M288 800h64v64h-64zm192 0h64v64h-64zm-96 96h64v64h-64zm192 0h64v64h-64zm96-96h64v64h-64z"})]))}}),vj=pj,mj=K({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64z"})]))}}),gj=mj,bj=K({name:"Edit",__name:"edit",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),A("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),yj=bj,wj=K({name:"ElemeFilled",__name:"eleme-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112m150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.69 330.69 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.55 47.55 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.3 234.3 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.55 47.55 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"})]))}}),_j=wj,Cj=K({name:"Eleme",__name:"eleme",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24m526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.23 63.23 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8z"})]))}}),Sj=Cj,xj=K({name:"ElementPlus",__name:"element-plus",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6q19.2-7.65 38.4 0s279 161.3 309.8 179.2c17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64z"})]))}}),kj=xj,Ej=K({name:"Expand",__name:"expand",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),Aj=Ej,Tj=K({name:"Failed",__name:"failed",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384zm-320 0V96h256v96z"})]))}}),Mj=Tj,Pj=K({name:"Female",__name:"female",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),A("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"}),A("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),Rj=Pj,Ij=K({name:"Files",__name:"files",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),Wy=Ij,Oj=K({name:"Film",__name:"film",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),Lj=Oj,Nj=K({name:"Filter",__name:"filter",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),$j=Nj,Dj=K({name:"Finished",__name:"finished",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}}),Qx=Dj,Fj=K({name:"FirstAidKit",__name:"first-aid-kit",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),A("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),Bj=Fj,Vj=K({name:"Flag",__name:"flag",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),zj=Vj,Hj=K({name:"Fold",__name:"fold",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),Wj=Hj,jj=K({name:"FolderAdd",__name:"folder-add",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"})]))}}),Kj=jj,Uj=K({name:"FolderChecked",__name:"folder-checked",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"})]))}}),qj=Uj,Gj=K({name:"FolderDelete",__name:"folder-delete",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248z"})]))}}),Yj=Gj,Xj=K({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),Pg=Xj,Jj=K({name:"FolderRemove",__name:"folder-remove",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"})]))}}),Zj=Jj,Qj=K({name:"Folder",__name:"folder",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),eK=Qj,tK=K({name:"Food",__name:"food",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0m128 0h192a96 96 0 0 0-192 0m439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352M672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288"})]))}}),nK=tK,sK=K({name:"Football",__name:"football",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768"}),A("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a386 386 0 0 1-80.448-91.648m653.696-5.312a385.9 385.9 0 0 1-83.776 96.96l-32.512-56.384a322.9 322.9 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184M465.984 445.248l11.136-63.104a323.6 323.6 0 0 0 69.76 0l11.136 63.104a388 388 0 0 1-92.032 0m-62.72-12.8A381.8 381.8 0 0 1 320 396.544l32-55.424a320 320 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.8 381.8 0 0 1-83.328 35.84l-11.2-63.552A320 320 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.9 385.9 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072m657.536.128a1443 1443 0 0 1-49.024 43.072 321.4 321.4 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408M465.92 578.752a388 388 0 0 1 92.032 0l-11.136 63.104a323.6 323.6 0 0 0-69.76 0zm-62.72 12.8 11.2 63.552a320 320 0 0 0-62.464 27.712L320 627.392a381.8 381.8 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.3 318.3 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"})]))}}),aK=sK,oK=K({name:"ForkSpoon",__name:"fork-spoon",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56M672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192"})]))}}),rK=oK,iK=K({name:"Fries",__name:"fries",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.74 95.74 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128 128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132 132 0 0 1 672 510.464V512zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480zm-128 96V224a32 32 0 0 0-64 0v160zh-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704z"})]))}}),lK=iK,cK=K({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),jy=cK,uK=K({name:"GobletFull",__name:"goblet-full",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320m503.936 64H264.064a256.128 256.128 0 0 0 495.872 0M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4"})]))}}),dK=uK,fK=K({name:"GobletSquareFull",__name:"goblet-square-full",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952 952 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96z"})]))}}),hK=fK,pK=K({name:"GobletSquare",__name:"goblet-square",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912M256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256z"})]))}}),vK=pK,mK=K({name:"Goblet",__name:"goblet",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4M256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320"})]))}}),gK=mK,bK=K({name:"GoldMedal",__name:"gold-medal",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16M640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a360 360 0 0 0-32.36 4.79V128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98"}),A("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"})]))}}),yK=bK,wK=K({name:"GoodsFilled",__name:"goods-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M192 352h640l64 544H128zm128 224h64V448h-64zm320 0h64V448h-64zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0"})]))}}),_K=wK,CK=K({name:"Goods",__name:"goods",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"})]))}}),SK=CK,xK=K({name:"Grape",__name:"grape",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192m-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),kK=xK,EK=K({name:"Grid",__name:"grid",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),e9=EK,AK=K({name:"Guide",__name:"guide",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"}),A("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"})]))}}),TK=AK,MK=K({name:"Handbag",__name:"handbag",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01M421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5M832 896H192V320h128v128h64V320h256v128h64V320h128z"})]))}}),PK=MK,RK=K({name:"Headset",__name:"headset",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848M896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0"})]))}}),IK=RK,OK=K({name:"HelpFilled",__name:"help-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M926.784 480H701.312A192.51 192.51 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.51 192.51 0 0 0 701.312 544zM97.28 544h225.472A192.51 192.51 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.51 192.51 0 0 0 322.688 480H97.216z"})]))}}),LK=OK,NK=K({name:"Help",__name:"help",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.9 254.9 0 0 1 512 768a254.9 254.9 0 0 1-156.992-53.76l-90.944 91.008A382.46 382.46 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.46 382.46 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512s-20.096 113.6-53.76 156.992zm-45.312-541.184A382.46 382.46 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.9 254.9 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76zm-541.184 45.312A382.46 382.46 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.9 254.9 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.6 194.6 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.23 191.23 0 0 0-67.968-146.56A191.3 191.3 0 0 0 512 320a191.23 191.23 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.23 191.23 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),$K=NK,DK=K({name:"Hide",__name:"hide",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("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"})]))}}),t9=DK,FK=K({name:"Histogram",__name:"histogram",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),BK=FK,VK=K({name:"HomeFilled",__name:"home-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),zK=VK,HK=K({name:"HotWater",__name:"hot-water",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134M512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133M375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133m273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133M170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267"})]))}}),WK=HK,jK=K({name:"House",__name:"house",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576"})]))}}),KK=jK,UK=K({name:"IceCreamRound",__name:"ice-cream-round",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0"})]))}}),qK=UK,GK=K({name:"IceCreamSquare",__name:"ice-cream-square",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96zm-64 0h-64v160a32 32 0 1 0 64 0z"})]))}}),YK=GK,XK=K({name:"IceCream",__name:"ice-cream",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.13 208.13 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448zm64.256 0h286.208a144 144 0 0 0-286.208 0m351.36 0h286.272a144 144 0 0 0-286.272 0m-294.848 64 271.808 396.608L778.24 512zM511.68 352.64a207.87 207.87 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56"})]))}}),JK=XK,ZK=K({name:"IceDrink",__name:"ice-drink",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128zm-64 0H256.256l16.064 128H448zm64-255.36V384h247.744A256.13 256.13 0 0 0 512 192.64m-64 8.064A256.45 256.45 0 0 0 264.256 384H448zm64-72.064A320.13 320.13 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.38 320.38 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32zM743.68 640H280.32l32.128 256h399.104z"})]))}}),QK=ZK,eU=K({name:"IceTea",__name:"ice-tea",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352M264.064 256h495.872a256.128 256.128 0 0 0-495.872 0m495.424 256H264.512l48 384h398.976zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32m160 192h64v64h-64zm192 64h64v64h-64zm-128 64h64v64h-64zm64-192h64v64h-64z"})]))}}),tU=eU,nU=K({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Rf=nU,sU=K({name:"Iphone",__name:"iphone",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"})]))}}),aU=sU,oU=K({name:"Key",__name:"key",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),rU=oU,iU=K({name:"KnifeFork",__name:"knife-fork",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56m384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256s32 177.152 32 288z"})]))}}),lU=iU,cU=K({name:"Lightning",__name:"lightning",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M288 671.36v64.128A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),A("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),uU=cU,dU=K({name:"Link",__name:"link",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),fU=dU,hU=K({name:"List",__name:"list",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),n9=hU,pU=K({name:"Loading",__name:"loading",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Bs=pU,vU=K({name:"LocationFilled",__name:"location-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"})]))}}),mU=vU,gU=K({name:"LocationInformation",__name:"location-information",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),A("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),A("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),bU=gU,yU=K({name:"Location",__name:"location",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),A("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),wU=yU,_U=K({name:"Lock",__name:"lock",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),A("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),CU=_U,SU=K({name:"Lollipop",__name:"lollipop",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744m-54.464-36.032a322 322 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"})]))}}),xU=SU,kU=K({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),EU=kU,AU=K({name:"Magnet",__name:"magnet",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0"})]))}}),TU=AU,MU=K({name:"Male",__name:"male",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450m0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5m253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125"}),A("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125"}),A("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"})]))}}),PU=MU,RU=K({name:"Management",__name:"management",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"})]))}}),IU=RU,OU=K({name:"MapLocation",__name:"map-location",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),A("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),LU=OU,NU=K({name:"Medal",__name:"medal",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),A("path",{fill:"currentColor",d:"M576 128H448v200a286.7 286.7 0 0 1 64-8c19.52 0 40.832 2.688 64 8zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96s-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64"})]))}}),$U=NU,DU=K({name:"Memo",__name:"memo",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),A("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),A("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),FU=DU,BU=K({name:"Menu",__name:"menu",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),VU=BU,zU=K({name:"MessageBox",__name:"message-box",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M288 384h448v64H288zm96-128h256v64H384zM131.456 512H384v128h256V512h252.544L721.856 192H302.144zM896 576H704v128H320V576H128v256h768zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128"})]))}}),HU=zU,WU=K({name:"Message",__name:"message",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),A("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224z"})]))}}),jU=WU,KU=K({name:"Mic",__name:"mic",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z"})]))}}),UU=KU,qU=K({name:"Microphone",__name:"microphone",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128m0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64m-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64z"})]))}}),GU=qU,YU=K({name:"MilkTea",__name:"milk-tea",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64m493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12"})]))}}),XU=YU,JU=K({name:"Minus",__name:"minus",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),s9=JU,ZU=K({name:"Money",__name:"money",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"}),A("path",{fill:"currentColor",d:"M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.06 29.06 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"}),A("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),QU=ZU,eq=K({name:"Monitor",__name:"monitor",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),tq=eq,nq=K({name:"MoonNight",__name:"moon-night",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.3 448.3 0 0 1 384 512M171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"}),A("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"})]))}}),sq=nq,aq=K({name:"Moon",__name:"moon",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 391 391 0 0 0-17.408 16.384m181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),oq=aq,rq=K({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Ky=rq,iq=K({name:"More",__name:"more",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),a9=iq,lq=K({name:"MostlyCloudy",__name:"mostly-cloudy",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.81 207.81 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.81 271.81 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"})]))}}),cq=lq,uq=K({name:"Mouse",__name:"mouse",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112q-30.144 16.128-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76q16.128 30.144 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112q30.144-16.128 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.46 110.46 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.46 174.46 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.46 174.46 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.46 174.46 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"}),A("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z"})]))}}),dq=uq,fq=K({name:"Mug",__name:"mug",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z"})]))}}),hq=fq,pq=K({name:"MuteNotification",__name:"mute-notification",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.13 320.13 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.55 319.55 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"}),A("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),vq=pq,mq=K({name:"Mute",__name:"mute",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.23 191.23 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A223 223 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.98 286.98 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z"}),A("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),gq=mq,bq=K({name:"NoSmoking",__name:"no-smoking",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744zM768 576v128h128V576zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),yq=bq,wq=K({name:"Notebook",__name:"notebook",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),_q=wq,Cq=K({name:"Notification",__name:"notification",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),A("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})]))}}),Sq=Cq,xq=K({name:"Odometer",__name:"odometer",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0"}),A("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928"})]))}}),kq=xq,Eq=K({name:"OfficeBuilding",__name:"office-building",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),A("path",{fill:"currentColor",d:"M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"})]))}}),Aq=Eq,Tq=K({name:"Open",__name:"open",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),A("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),Mq=Tq,Pq=K({name:"Operation",__name:"operation",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),Rq=Pq,Iq=K({name:"Opportunity",__name:"opportunity",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M384 960v-64h192.064v64zm448-544a350.66 350.66 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.55 351.55 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"})]))}}),Oq=Iq,Lq=K({name:"Orange",__name:"orange",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M544 894.72a382.34 382.34 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.34 382.34 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024zM894.656 480a382.34 382.34 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024zm-134.72-261.248A382.34 382.34 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696zM480 129.344a382.34 382.34 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696zm-261.248 134.72A382.34 382.34 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024zM129.344 544a382.34 382.34 0 0 0 89.408 215.936l182.976-182.912A127.2 127.2 0 0 1 388.032 544zm134.72 261.248A382.34 382.34 0 0 0 480 894.656V635.968a127.2 127.2 0 0 1-33.024-13.696zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128"})]))}}),Nq=Lq,$q=K({name:"Paperclip",__name:"paperclip",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744z"})]))}}),Dq=$q,Fq=K({name:"PartlyCloudy",__name:"partly-cloudy",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"}),A("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6004 6004 0 0 0-49.28 41.408"})]))}}),Bq=Fq,Vq=K({name:"Pear",__name:"pear",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M542.336 258.816a443 443 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.69 162.69 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.69 162.69 0 0 0-130.112-133.12m-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a317 317 0 0 0-9.792 15.104 226.69 226.69 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"})]))}}),zq=Vq,Hq=K({name:"PhoneFilled",__name:"phone-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048"})]))}}),Wq=Hq,jq=K({name:"Phone",__name:"phone",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"})]))}}),Kq=jq,Uq=K({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),o9=Uq,qq=K({name:"PictureRounded",__name:"picture-rounded",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 128a384 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"}),A("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64-64-64 64-64M214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"})]))}}),Gq=qq,Yq=K({name:"Picture",__name:"picture",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),Xq=Yq,Jq=K({name:"PieChart",__name:"pie-chart",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.13 384.13 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.13 448.13 0 0 1 448 68.48"}),A("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28M512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),Zq=Jq,Qq=K({name:"Place",__name:"place",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"}),A("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912"})]))}}),eG=Qq,tG=K({name:"Platform",__name:"platform",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),nG=tG,sG=K({name:"Plus",__name:"plus",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Uy=sG,aG=K({name:"Pointer",__name:"pointer",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.27 94.27 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.27 158.27 0 0 1 185.984 8.32z"})]))}}),oG=aG,rG=K({name:"Position",__name:"position",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992z"})]))}}),iG=rG,lG=K({name:"Postcard",__name:"postcard",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"}),A("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),cG=lG,uG=K({name:"Pouring",__name:"pouring",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32"})]))}}),dG=uG,fG=K({name:"Present",__name:"present",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),A("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"}),A("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),A("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),hG=fG,pG=K({name:"PriceTag",__name:"price-tag",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),A("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),vG=pG,mG=K({name:"Printer",__name:"printer",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.3 23.3 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.3 23.3 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"})]))}}),gG=mG,bG=K({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),r9=bG,yG=K({name:"QuartzWatch",__name:"quartz-watch",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51q-13.005.48-22.5 10.02c-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5.51-22.15-7.49-31.49zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01m6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01s-3.66-16.16-10.02-22.5c-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01q5.025 17.985 22.5 22.5m242.94 0q17.505-4.545 22.02-22.02c3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5q-9.54 9.51-10.02 22.5c-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49M512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01"}),A("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5M416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768"}),A("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02"})]))}}),wG=yG,_G=K({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),i9=_G,CG=K({name:"Rank",__name:"rank",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544z"})]))}}),l9=CG,SG=K({name:"ReadingLamp",__name:"reading-lamp",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m-44.672-768-99.52 448h608.384l-99.52-448zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"}),A("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"})]))}}),xG=SG,kG=K({name:"Reading",__name:"reading",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36"}),A("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),EG=kG,AG=K({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Rg=AG,TG=K({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),c9=TG,MG=K({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),PG=MG,RG=K({name:"Refrigerator",__name:"refrigerator",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96m32 224h64v96h-64zm0 288h64v96h-64z"})]))}}),IG=RG,OG=K({name:"RemoveFilled",__name:"remove-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"})]))}}),LG=OG,NG=K({name:"Remove",__name:"remove",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),A("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"})]))}}),$G=NG,DG=K({name:"Right",__name:"right",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),FG=DG,BG=K({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),u9=BG,VG=K({name:"School",__name:"school",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M224 128v704h576V128zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"}),A("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192M320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"})]))}}),zG=VG,HG=K({name:"Scissor",__name:"scissor",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248"})]))}}),WG=HG,jG=K({name:"Search",__name:"search",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),d9=jG,KG=K({name:"Select",__name:"select",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496"})]))}}),UG=KG,qG=K({name:"Sell",__name:"sell",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248"})]))}}),GG=qG,YG=K({name:"SemiSelect",__name:"semi-select",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"})]))}}),XG=YG,JG=K({name:"Service",__name:"service",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.06 192.06 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193 193 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}}),ZG=JG,QG=K({name:"SetUp",__name:"set-up",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"}),A("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),A("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),A("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),eY=QG,tY=K({name:"Setting",__name:"setting",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),nY=tY,sY=K({name:"Share",__name:"share",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.8 127.8 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"})]))}}),aY=sY,oY=K({name:"Ship",__name:"ship",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2z"})]))}}),rY=oY,iY=K({name:"Shop",__name:"shop",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640z"})]))}}),lY=iY,cY=K({name:"ShoppingBag",__name:"shopping-bag",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"}),A("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}}),uY=cY,dY=K({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"}),A("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648z"})]))}}),fY=dY,hY=K({name:"ShoppingCart",__name:"shopping-cart",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"})]))}}),pY=hY,vY=K({name:"ShoppingTrolley",__name:"shopping-trolley",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833m439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64zM256 192h622l-96 384H256zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833"})]))}}),mY=vY,gY=K({name:"Smoking",__name:"smoking",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 576v128h640V576zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),bY=gY,yY=K({name:"Soccer",__name:"soccer",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24m72.32-18.176a573.06 573.06 0 0 0 224.832-137.216 573.1 573.1 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.7 567.7 0 0 0 170.432 532.48zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944s-497.92 226.112-610.944 113.152m452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248z"})]))}}),wY=yY,_Y=K({name:"SoldOut",__name:"sold-out",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"})]))}}),CY=_Y,SY=K({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),f9=SY,xY=K({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),h9=xY,kY=K({name:"Sort",__name:"sort",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0z"})]))}}),EY=kY,AY=K({name:"Stamp",__name:"stamp",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"})]))}}),TY=AY,MY=K({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Ap=MY,PY=K({name:"Star",__name:"star",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),p9=PY,RY=K({name:"Stopwatch",__name:"stopwatch",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"}),A("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"})]))}}),IY=RY,OY=K({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),qy=OY,LY=K({name:"Sugar",__name:"sugar",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16zm-548.8 198.72h447.168v2.24l60.8-60.8a63.8 63.8 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64 64 0 0 0-10.24 13.248zm0 64q4.128 7.104 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"})]))}}),NY=LY,$Y=K({name:"SuitcaseLine",__name:"suitcase-line",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5S64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5M384 128h256v64H384zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128zm448 0H320V448h384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320z"})]))}}),DY=$Y,FY=K({name:"Suitcase",__name:"suitcase",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),A("path",{fill:"currentColor",d:"M384 128v64h256v-64zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64"})]))}}),BY=FY,VY=K({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0m543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),zY=VY,HY=K({name:"Sunrise",__name:"sunrise",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64m129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32m407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0m-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248"})]))}}),WY=HY,jY=K({name:"Sunset",__name:"sunset",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),KY=jY,UY=K({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128"}),A("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),qY=UY,GY=K({name:"SwitchFilled",__name:"switch-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36"}),A("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.66 196.66 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.7 196.7 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42m-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.7 131.7 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57zm402.12-647.67a196.66 196.66 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.7 196.7 0 0 0 139.08-57.61A196.66 196.66 0 0 0 896 699.31V325.29a196.7 196.7 0 0 0-57.61-139.08m-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82"})]))}}),YY=GY,XY=K({name:"Switch",__name:"switch",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344M64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),JY=XY,ZY=K({name:"TakeawayBox",__name:"takeaway-box",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),QY=ZY,eX=K({name:"Ticket",__name:"ticket",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"})]))}}),tX=eX,nX=K({name:"Tickets",__name:"tickets",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),v9=nX,sX=K({name:"Timer",__name:"timer",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),A("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),aX=sX,oX=K({name:"ToiletPaper",__name:"toilet-paper",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224M736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224"}),A("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96"})]))}}),rX=oX,iX=K({name:"Tools",__name:"tools",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),lX=iX,cX=K({name:"TopLeft",__name:"top-left",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),A("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312z"})]))}}),uX=cX,dX=K({name:"TopRight",__name:"top-right",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z"}),A("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312z"})]))}}),fX=dX,hX=K({name:"Top",__name:"top",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),pX=hX,vX=K({name:"TrendCharts",__name:"trend-charts",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),mX=vX,gX=K({name:"TrophyBase",__name:"trophy-base",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4S745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6S256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6S96 217.6 96 224c3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6S352 790.4 352 800s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4M256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6S320 438.4 320 384V128h384v256q0 81.6-57.6 134.4m172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2M768 896H256c-9.6 0-16 3.2-22.4 9.6S224 918.4 224 928s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6"})]))}}),bX=gX,yX=K({name:"Trophy",__name:"trophy",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M480 896V702.08A256.26 256.26 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.26 256.26 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448z"})]))}}),wX=yX,_X=K({name:"TurnOff",__name:"turn-off",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),A("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),CX=_X,SX=K({name:"Umbrella",__name:"umbrella",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0m570.688-320a384.128 384.128 0 0 0-757.376 0z"})]))}}),xX=SX,kX=K({name:"Unlock",__name:"unlock",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),A("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),EX=kX,AX=K({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.81 239.81 0 0 1 512 192a239.87 239.87 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),TX=AX,MX=K({name:"Upload",__name:"upload",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),m9=MX,PX=K({name:"UserFilled",__name:"user-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),RX=PX,IX=K({name:"User",__name:"user",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),OX=IX,LX=K({name:"Van",__name:"van",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),NX=LX,$X=K({name:"VideoCameraFilled",__name:"video-camera-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zM192 768v64h384v-64zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0m64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288m-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320m64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0"})]))}}),DX=$X,FX=K({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),BX=FX,VX=K({name:"VideoPause",__name:"video-pause",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),zX=VX,HX=K({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),WX=HX,jX=K({name:"View",__name:"view",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Gy=jX,KX=K({name:"WalletFilled",__name:"wallet-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96m-80-544 128 160H384z"})]))}}),UX=KX,qX=K({name:"Wallet",__name:"wallet",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"}),A("path",{fill:"currentColor",d:"M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),GX=qX,YX=K({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49s12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"})]))}}),XX=YX,JX=K({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Tp=JX,ZX=K({name:"Warning",__name:"warning",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),QX=ZX,eJ=K({name:"Watch",__name:"watch",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),A("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"})]))}}),tJ=eJ,nJ=K({name:"Watermelon",__name:"watermelon",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248zm231.552 141.056a448 448 0 1 1-632-632z"})]))}}),sJ=nJ,aJ=K({name:"WindPower",__name:"wind-power",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32m416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96z"})]))}}),oJ=aJ,rJ=K({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Ig=rJ,iJ=K({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(S(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("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"})]))}}),Yy=iJ;const lJ=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:bz,Aim:wz,AlarmClock:Cz,Apple:xz,ArrowDown:mr,ArrowDownBold:Ez,ArrowLeft:Bo,ArrowLeftBold:Mz,ArrowRight:Fs,ArrowRightBold:Iz,ArrowUp:kp,ArrowUpBold:Nz,Avatar:Fz,Back:Ux,Baseball:zz,Basketball:Wz,Bell:qz,BellFilled:Kz,Bicycle:Yz,Bottom:tH,BottomLeft:Jz,BottomRight:Qz,Bowl:sH,Box:oH,Briefcase:iH,Brush:dH,BrushFilled:cH,Burger:hH,Calendar:qx,Camera:bH,CameraFilled:mH,CaretBottom:wH,CaretLeft:CH,CaretRight:zy,CaretTop:Gx,Cellphone:EH,ChatDotRound:TH,ChatDotSquare:PH,ChatLineRound:IH,ChatLineSquare:LH,ChatRound:$H,ChatSquare:FH,Check:Pf,Checked:zH,Cherry:WH,Chicken:KH,ChromeFilled:qH,CircleCheck:Ep,CircleCheckFilled:Yx,CircleClose:Vo,CircleCloseFilled:Ag,CirclePlus:tW,CirclePlusFilled:QH,Clock:Hy,Close:qa,CloseBold:aW,Cloudy:iW,Coffee:dW,CoffeeCup:cW,Coin:hW,ColdDrink:vW,Collection:Xx,CollectionTag:gW,Comment:wW,Compass:CW,Connection:xW,Coordinate:EW,CopyDocument:TW,Cpu:PW,CreditCard:IW,Crop:Tg,DArrowLeft:Zi,DArrowRight:Qi,DCaret:DW,DataAnalysis:BW,DataBoard:zW,DataLine:WW,Delete:Jx,DeleteFilled:KW,DeleteLocation:qW,Dessert:XW,Discount:ZW,Dish:nj,DishDot:ej,Document:Mg,DocumentAdd:Zx,DocumentChecked:oj,DocumentCopy:ij,DocumentDelete:cj,DocumentRemove:dj,Download:el,Drizzling:vj,Edit:yj,EditPen:gj,Eleme:Sj,ElemeFilled:_j,ElementPlus:kj,Expand:Aj,Failed:Mj,Female:Rj,Files:Wy,Film:Lj,Filter:$j,Finished:Qx,FirstAidKit:Bj,Flag:zj,Fold:Wj,Folder:eK,FolderAdd:Kj,FolderChecked:qj,FolderDelete:Yj,FolderOpened:Pg,FolderRemove:Zj,Food:nK,Football:aK,ForkSpoon:rK,Fries:lK,FullScreen:jy,Goblet:gK,GobletFull:dK,GobletSquare:vK,GobletSquareFull:hK,GoldMedal:yK,Goods:SK,GoodsFilled:_K,Grape:kK,Grid:e9,Guide:TK,Handbag:PK,Headset:IK,Help:$K,HelpFilled:LK,Hide:t9,Histogram:BK,HomeFilled:zK,HotWater:WK,House:KK,IceCream:JK,IceCreamRound:qK,IceCreamSquare:YK,IceDrink:QK,IceTea:tU,InfoFilled:Rf,Iphone:aU,Key:rU,KnifeFork:lU,Lightning:uU,Link:fU,List:n9,Loading:Bs,Location:wU,LocationFilled:mU,LocationInformation:bU,Lock:CU,Lollipop:xU,MagicStick:EU,Magnet:TU,Male:PU,Management:IU,MapLocation:LU,Medal:$U,Memo:FU,Menu:VU,Message:jU,MessageBox:HU,Mic:UU,Microphone:GU,MilkTea:XU,Minus:s9,Money:QU,Monitor:tq,Moon:oq,MoonNight:sq,More:a9,MoreFilled:Ky,MostlyCloudy:cq,Mouse:dq,Mug:hq,Mute:gq,MuteNotification:vq,NoSmoking:yq,Notebook:_q,Notification:Sq,Odometer:kq,OfficeBuilding:Aq,Open:Mq,Operation:Rq,Opportunity:Oq,Orange:Nq,Paperclip:Dq,PartlyCloudy:Bq,Pear:zq,Phone:Kq,PhoneFilled:Wq,Picture:Xq,PictureFilled:o9,PictureRounded:Gq,PieChart:Zq,Place:eG,Platform:nG,Plus:Uy,Pointer:oG,Position:iG,Postcard:cG,Pouring:dG,Present:hG,PriceTag:vG,Printer:gG,Promotion:r9,QuartzWatch:wG,QuestionFilled:i9,Rank:l9,Reading:EG,ReadingLamp:xG,Refresh:PG,RefreshLeft:Rg,RefreshRight:c9,Refrigerator:IG,Remove:$G,RemoveFilled:LG,Right:FG,ScaleToOriginal:u9,School:zG,Scissor:WG,Search:d9,Select:UG,Sell:GG,SemiSelect:XG,Service:ZG,SetUp:eY,Setting:nY,Share:aY,Ship:rY,Shop:lY,ShoppingBag:uY,ShoppingCart:pY,ShoppingCartFull:fY,ShoppingTrolley:mY,Smoking:bY,Soccer:wY,SoldOut:CY,Sort:EY,SortDown:f9,SortUp:h9,Stamp:TY,Star:p9,StarFilled:Ap,Stopwatch:IY,SuccessFilled:qy,Sugar:NY,Suitcase:BY,SuitcaseLine:DY,Sunny:zY,Sunrise:WY,Sunset:KY,Switch:JY,SwitchButton:qY,SwitchFilled:YY,TakeawayBox:QY,Ticket:tX,Tickets:v9,Timer:aX,ToiletPaper:rX,Tools:lX,Top:pX,TopLeft:uX,TopRight:fX,TrendCharts:mX,Trophy:wX,TrophyBase:bX,TurnOff:CX,Umbrella:xX,Unlock:EX,Upload:m9,UploadFilled:TX,User:OX,UserFilled:RX,Van:NX,VideoCamera:BX,VideoCameraFilled:DX,VideoPause:zX,VideoPlay:WX,View:Gy,Wallet:GX,WalletFilled:UX,WarnTriangleFilled:XX,Warning:QX,WarningFilled:Tp,Watch:tJ,Watermelon:sJ,WindPower:oJ,ZoomIn:Ig,ZoomOut:Yy},Symbol.toStringTag,{value:"Module"})),rn=re([String,Object,Function]),g9={Close:qa},Xy={Close:qa,SuccessFilled:qy,InfoFilled:Rf,WarningFilled:Tp,CircleCloseFilled:Ag},ac={primary:Rf,success:qy,warning:Tp,error:Ag,info:Rf},Og={validating:Bs,success:Ep,error:Vo},cJ=["light","dark"],uJ=Me({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Sp(ac),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:cJ,default:"light"}}),dJ={close:e=>e instanceof MouseEvent},fJ=Me({size:{type:re([Number,String])},color:{type:String}});var hJ=K({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:fJ,setup(e){const t=e,n=Ee("icon"),s=E(()=>{const{size:a,color:o}=t,r=Nn(a);return!r&&!o?{}:{fontSize:r,"--color":o}});return(a,o)=>(S(),M("i",At({class:d(n).b(),style:s.value},a.$attrs),[ue(a.$slots,"default")],16))}});const Je=wt(hJ);var zo=(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))(zo||{});function Jy(e){return vn(e)&&e.type===He}function b9(e){return vn(e)&&e.type===Jn}function pJ(e){return vn(e)&&!Jy(e)&&!b9(e)}const vJ=e=>{if(!vn(e))return{};const t=e.props||{},n=(vn(e.type)?e.type.props:void 0)||{},s={};return Object.keys(n).forEach(a=>{qt(n[a],"default")&&(s[a]=n[a].default)}),Object.keys(t).forEach(a=>{s[Ea(a)]=t[a]}),s},uo=e=>{const t=Ae(e)?e:[e],n=[];return t.forEach(s=>{var a;Ae(s)?n.push(...uo(s)):vn(s)&&((a=s.component)!=null&&a.subTree)?n.push(s,...uo(s.component.subTree)):vn(s)&&Ae(s.children)?n.push(...uo(s.children)):vn(s)&&s.shapeFlag===2?n.push(...uo(s.type())):n.push(s)}),n};var mJ=K({name:"ElAlert",__name:"alert",props:uJ,emits:dJ,setup(e,{emit:t}){const{Close:n}=Xy,s=e,a=t,o=Gn(),r=Ee("alert"),i=F(!0),l=E(()=>ac[s.type]),c=E(()=>{var f;if(s.description)return!0;const h=(f=o.default)==null?void 0:f.call(o);return h?uo(h).some(v=>!b9(v)):!1}),u=f=>{i.value=!1,a("close",f)};return(f,h)=>(S(),ce(Cs,{name:d(r).b("fade"),persisted:""},{default:X(()=>[Ct(A("div",{class:D([d(r).b(),d(r).m(e.type),d(r).is("center",e.center),d(r).is(e.effect)]),role:"alert"},[e.showIcon&&(f.$slots.icon||l.value)?(S(),ce(d(Je),{key:0,class:D([d(r).e("icon"),d(r).is("big",c.value)])},{default:X(()=>[ue(f.$slots,"icon",{},()=>[(S(),ce(kt(l.value)))])]),_:3},8,["class"])):ie("v-if",!0),A("div",{class:D(d(r).e("content"))},[e.title||f.$slots.title?(S(),M("span",{key:0,class:D([d(r).e("title"),{"with-description":c.value}])},[ue(f.$slots,"title",{},()=>[We(ge(e.title),1)])],2)):ie("v-if",!0),c.value?(S(),M("p",{key:1,class:D(d(r).e("description"))},[ue(f.$slots,"default",{},()=>[We(ge(e.description),1)])],2)):ie("v-if",!0),e.closable?(S(),M(He,{key:2},[e.closeText?(S(),M("div",{key:0,class:D([d(r).e("close-btn"),d(r).is("customed")]),onClick:u},ge(e.closeText),3)):(S(),ce(d(Je),{key:1,class:D(d(r).e("close-btn")),onClick:u},{default:X(()=>[W(d(n))]),_:1},8,["class"]))],64)):ie("v-if",!0)],2)],2),[[jt,i.value]])]),_:3},8,["name"]))}});const gJ=wt(mJ);var Ga="top",Ho="bottom",Wo="right",Ya="left",Zy="auto",Mp=[Ga,Ho,Wo,Ya],If="start",Pp="end",bJ="clippingParents",y9="viewport",Rp="popper",yJ="reference",w9=Mp.reduce(function(e,t){return e.concat([t+"-"+If,t+"-"+Pp])},[]),si=[].concat(Mp,[Zy]).reduce(function(e,t){return e.concat([t,t+"-"+If,t+"-"+Pp])},[]),wJ="beforeRead",_J="read",CJ="afterRead",SJ="beforeMain",xJ="main",kJ="afterMain",EJ="beforeWrite",AJ="write",TJ="afterWrite",MJ=[wJ,_J,CJ,SJ,xJ,kJ,EJ,AJ,TJ];function ai(e){return e?(e.nodeName||"").toLowerCase():null}function fo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xu(e){var t=fo(e).Element;return e instanceof t||e instanceof Element}function jo(e){var t=fo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Qy(e){if(typeof ShadowRoot>"u")return!1;var t=fo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function PJ(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var s=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!jo(o)||!ai(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(r){var i=a[r];i===!1?o.removeAttribute(r):o.setAttribute(r,i===!0?"":i)}))})}function RJ(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(s){var a=t.elements[s],o=t.attributes[s]||{},r=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:n[s]),i=r.reduce(function(l,c){return l[c]="",l},{});!jo(a)||!ai(a)||(Object.assign(a.style,i),Object.keys(o).forEach(function(l){a.removeAttribute(l)}))})}}var _9={name:"applyStyles",enabled:!0,phase:"write",fn:PJ,effect:RJ,requires:["computeStyles"]};function oi(e){return e.split("-")[0]}var ku=Math.max,Lg=Math.min,Of=Math.round;function e3(){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 C9(){return!/^((?!chrome|android).)*safari/i.test(e3())}function Lf(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var s=e.getBoundingClientRect(),a=1,o=1;t&&jo(e)&&(a=e.offsetWidth>0&&Of(s.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Of(s.height)/e.offsetHeight||1);var r=xu(e)?fo(e):window,i=r.visualViewport,l=!C9()&&n,c=(s.left+(l&&i?i.offsetLeft:0))/a,u=(s.top+(l&&i?i.offsetTop:0))/o,f=s.width/a,h=s.height/o;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function t3(e){var t=Lf(e),n=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:s}}function S9(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qy(n)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function tl(e){return fo(e).getComputedStyle(e)}function IJ(e){return["table","td","th"].indexOf(ai(e))>=0}function oc(e){return((xu(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ng(e){return ai(e)==="html"?e:e.assignedSlot||e.parentNode||(Qy(e)?e.host:null)||oc(e)}function x9(e){return!jo(e)||tl(e).position==="fixed"?null:e.offsetParent}function OJ(e){var t=/firefox/i.test(e3()),n=/Trident/i.test(e3());if(n&&jo(e)){var s=tl(e);if(s.position==="fixed")return null}var a=Ng(e);for(Qy(a)&&(a=a.host);jo(a)&&["html","body"].indexOf(ai(a))<0;){var o=tl(a);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 a;a=a.parentNode}return null}function Ip(e){for(var t=fo(e),n=x9(e);n&&IJ(n)&&tl(n).position==="static";)n=x9(n);return n&&(ai(n)==="html"||ai(n)==="body"&&tl(n).position==="static")?t:n||OJ(e)||t}function n3(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Op(e,t,n){return ku(e,Lg(t,n))}function LJ(e,t,n){var s=Op(e,t,n);return s>n?n:s}function k9(){return{top:0,right:0,bottom:0,left:0}}function E9(e){return Object.assign({},k9(),e)}function A9(e,t){return t.reduce(function(n,s){return n[s]=e,n},{})}var NJ=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,E9(typeof e!="number"?e:A9(e,Mp))};function $J(e){var t,n=e.state,s=e.name,a=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,i=oi(n.placement),l=n3(i),c=[Ya,Wo].indexOf(i)>=0,u=c?"height":"width";if(!(!o||!r)){var f=NJ(a.padding,n),h=t3(o),p=l==="y"?Ga:Ya,v=l==="y"?Ho:Wo,m=n.rects.reference[u]+n.rects.reference[l]-r[l]-n.rects.popper[u],g=r[l]-n.rects.reference[l],b=Ip(o),C=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,w=m/2-g/2,_=f[p],x=C-h[u]-f[v],k=C/2-h[u]/2+w,T=Op(_,k,x),R=l;n.modifiersData[s]=(t={},t[R]=T,t.centerOffset=T-k,t)}}function DJ(e){var t=e.state,n=e.options,s=n.element,a=s===void 0?"[data-popper-arrow]":s;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||S9(t.elements.popper,a)&&(t.elements.arrow=a))}var FJ={name:"arrow",enabled:!0,phase:"main",fn:$J,effect:DJ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nf(e){return e.split("-")[1]}var BJ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VJ(e,t){var n=e.x,s=e.y,a=t.devicePixelRatio||1;return{x:Of(n*a)/a||0,y:Of(s*a)/a||0}}function T9(e){var t,n=e.popper,s=e.popperRect,a=e.placement,o=e.variation,r=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=r.x,p=h===void 0?0:h,v=r.y,m=v===void 0?0:v,g=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var b=r.hasOwnProperty("x"),C=r.hasOwnProperty("y"),w=Ya,_=Ga,x=window;if(c){var k=Ip(n),T="clientHeight",R="clientWidth";if(k===fo(n)&&(k=oc(n),tl(k).position!=="static"&&i==="absolute"&&(T="scrollHeight",R="scrollWidth")),k=k,a===Ga||(a===Ya||a===Wo)&&o===Pp){_=Ho;var I=f&&k===x&&x.visualViewport?x.visualViewport.height:k[T];m-=I-s.height,m*=l?1:-1}if(a===Ya||(a===Ga||a===Ho)&&o===Pp){w=Wo;var P=f&&k===x&&x.visualViewport?x.visualViewport.width:k[R];p-=P-s.width,p*=l?1:-1}}var $=Object.assign({position:i},c&&BJ),O=u===!0?VJ({x:p,y:m},fo(n)):{x:p,y:m};if(p=O.x,m=O.y,l){var B;return Object.assign({},$,(B={},B[_]=C?"0":"",B[w]=b?"0":"",B.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",B))}return Object.assign({},$,(t={},t[_]=C?m+"px":"",t[w]=b?p+"px":"",t.transform="",t))}function zJ(e){var t=e.state,n=e.options,s=n.gpuAcceleration,a=s===void 0?!0:s,o=n.adaptive,r=o===void 0?!0:o,i=n.roundOffsets,l=i===void 0?!0:i,c={placement:oi(t.placement),variation:Nf(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,T9(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,T9(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var M9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zJ,data:{}},$g={passive:!0};function HJ(e){var t=e.state,n=e.instance,s=e.options,a=s.scroll,o=a===void 0?!0:a,r=s.resize,i=r===void 0?!0:r,l=fo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,$g)}),i&&l.addEventListener("resize",n.update,$g),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,$g)}),i&&l.removeEventListener("resize",n.update,$g)}}var P9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:HJ,data:{}},WJ={left:"right",right:"left",bottom:"top",top:"bottom"};function Dg(e){return e.replace(/left|right|bottom|top/g,function(t){return WJ[t]})}var jJ={start:"end",end:"start"};function R9(e){return e.replace(/start|end/g,function(t){return jJ[t]})}function s3(e){var t=fo(e),n=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:n,scrollTop:s}}function a3(e){return Lf(oc(e)).left+s3(e).scrollLeft}function KJ(e,t){var n=fo(e),s=oc(e),a=n.visualViewport,o=s.clientWidth,r=s.clientHeight,i=0,l=0;if(a){o=a.width,r=a.height;var c=C9();(c||!c&&t==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}return{width:o,height:r,x:i+a3(e),y:l}}function UJ(e){var t,n=oc(e),s=s3(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=ku(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),r=ku(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-s.scrollLeft+a3(e),l=-s.scrollTop;return tl(a||n).direction==="rtl"&&(i+=ku(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:r,x:i,y:l}}function o3(e){var t=tl(e),n=t.overflow,s=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+s)}function I9(e){return["html","body","#document"].indexOf(ai(e))>=0?e.ownerDocument.body:jo(e)&&o3(e)?e:I9(Ng(e))}function Lp(e,t){var n;t===void 0&&(t=[]);var s=I9(e),a=s===((n=e.ownerDocument)==null?void 0:n.body),o=fo(s),r=a?[o].concat(o.visualViewport||[],o3(s)?s:[]):s,i=t.concat(r);return a?i:i.concat(Lp(Ng(r)))}function r3(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qJ(e,t){var n=Lf(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 O9(e,t,n){return t===y9?r3(KJ(e,n)):xu(t)?qJ(t,n):r3(UJ(oc(e)))}function GJ(e){var t=Lp(Ng(e)),n=["absolute","fixed"].indexOf(tl(e).position)>=0,s=n&&jo(e)?Ip(e):e;return xu(s)?t.filter(function(a){return xu(a)&&S9(a,s)&&ai(a)!=="body"}):[]}function YJ(e,t,n,s){var a=t==="clippingParents"?GJ(e):[].concat(t),o=[].concat(a,[n]),r=o[0],i=o.reduce(function(l,c){var u=O9(e,c,s);return l.top=ku(u.top,l.top),l.right=Lg(u.right,l.right),l.bottom=Lg(u.bottom,l.bottom),l.left=ku(u.left,l.left),l},O9(e,r,s));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function L9(e){var t=e.reference,n=e.element,s=e.placement,a=s?oi(s):null,o=s?Nf(s):null,r=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(a){case Ga:l={x:r,y:t.y-n.height};break;case Ho:l={x:r,y:t.y+t.height};break;case Wo:l={x:t.x+t.width,y:i};break;case Ya:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var c=a?n3(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case If:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Pp:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Np(e,t){t===void 0&&(t={});var n=t,s=n.placement,a=s===void 0?e.placement:s,o=n.strategy,r=o===void 0?e.strategy:o,i=n.boundary,l=i===void 0?bJ:i,c=n.rootBoundary,u=c===void 0?y9:c,f=n.elementContext,h=f===void 0?Rp:f,p=n.altBoundary,v=p===void 0?!1:p,m=n.padding,g=m===void 0?0:m,b=E9(typeof g!="number"?g:A9(g,Mp)),C=h===Rp?yJ:Rp,w=e.rects.popper,_=e.elements[v?C:h],x=YJ(xu(_)?_:_.contextElement||oc(e.elements.popper),l,u,r),k=Lf(e.elements.reference),T=L9({reference:k,element:w,placement:a}),R=r3(Object.assign({},w,T)),I=h===Rp?R:k,P={top:x.top-I.top+b.top,bottom:I.bottom-x.bottom+b.bottom,left:x.left-I.left+b.left,right:I.right-x.right+b.right},$=e.modifiersData.offset;if(h===Rp&&$){var O=$[a];Object.keys(P).forEach(function(B){var H=[Wo,Ho].indexOf(B)>=0?1:-1,J=[Ga,Ho].indexOf(B)>=0?"y":"x";P[B]+=O[J]*H})}return P}function XJ(e,t){t===void 0&&(t={});var n=t,s=n.placement,a=n.boundary,o=n.rootBoundary,r=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?si:l,u=Nf(s),f=u?i?w9:w9.filter(function(v){return Nf(v)===u}):Mp,h=f.filter(function(v){return c.indexOf(v)>=0});h.length===0&&(h=f);var p=h.reduce(function(v,m){return v[m]=Np(e,{placement:m,boundary:a,rootBoundary:o,padding:r})[oi(m)],v},{});return Object.keys(p).sort(function(v,m){return p[v]-p[m]})}function JJ(e){if(oi(e)===Zy)return[];var t=Dg(e);return[R9(e),t,R9(t)]}function ZJ(e){var t=e.state,n=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,r=n.altAxis,i=r===void 0?!0:r,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,v=p===void 0?!0:p,m=n.allowedAutoPlacements,g=t.options.placement,b=oi(g),C=b===g,w=l||(C||!v?[Dg(g)]:JJ(g)),_=[g].concat(w).reduce(function(ee,se){return ee.concat(oi(se)===Zy?XJ(t,{placement:se,boundary:u,rootBoundary:f,padding:c,flipVariations:v,allowedAutoPlacements:m}):se)},[]),x=t.rects.reference,k=t.rects.popper,T=new Map,R=!0,I=_[0],P=0;P<_.length;P++){var $=_[P],O=oi($),B=Nf($)===If,H=[Ga,Ho].indexOf(O)>=0,J=H?"width":"height",Y=Np(t,{placement:$,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),N=H?B?Wo:Ya:B?Ho:Ga;x[J]>k[J]&&(N=Dg(N));var L=Dg(N),V=[];if(o&&V.push(Y[O]<=0),i&&V.push(Y[N]<=0,Y[L]<=0),V.every(function(ee){return ee})){I=$,R=!1;break}T.set($,V)}if(R)for(var z=v?3:1,G=function(ee){var se=_.find(function(de){var te=T.get(de);if(te)return te.slice(0,ee).every(function(pe){return pe})});if(se)return I=se,"break"},Q=z;Q>0;Q--){var U=G(Q);if(U==="break")break}t.placement!==I&&(t.modifiersData[s]._skip=!0,t.placement=I,t.reset=!0)}}var QJ={name:"flip",enabled:!0,phase:"main",fn:ZJ,requiresIfExists:["offset"],data:{_skip:!1}};function N9(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 $9(e){return[Ga,Wo,Ho,Ya].some(function(t){return e[t]>=0})}function eZ(e){var t=e.state,n=e.name,s=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,r=Np(t,{elementContext:"reference"}),i=Np(t,{altBoundary:!0}),l=N9(r,s),c=N9(i,a,o),u=$9(l),f=$9(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}var tZ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:eZ};function nZ(e,t,n){var s=oi(e),a=[Ya,Ga].indexOf(s)>=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)*a,[Ya,Wo].indexOf(s)>=0?{x:i,y:r}:{x:r,y:i}}function sZ(e){var t=e.state,n=e.options,s=e.name,a=n.offset,o=a===void 0?[0,0]:a,r=si.reduce(function(u,f){return u[f]=nZ(f,t.rects,o),u},{}),i=r[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[s]=r}var aZ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sZ};function oZ(e){var t=e.state,n=e.name;t.modifiersData[n]=L9({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var D9={name:"popperOffsets",enabled:!0,phase:"read",fn:oZ,data:{}};function rZ(e){return e==="x"?"y":"x"}function iZ(e){var t=e.state,n=e.options,s=e.name,a=n.mainAxis,o=a===void 0?!0:a,r=n.altAxis,i=r===void 0?!1:r,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,p=h===void 0?!0:h,v=n.tetherOffset,m=v===void 0?0:v,g=Np(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),b=oi(t.placement),C=Nf(t.placement),w=!C,_=n3(b),x=rZ(_),k=t.modifiersData.popperOffsets,T=t.rects.reference,R=t.rects.popper,I=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,P=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(k){if(o){var B,H=_==="y"?Ga:Ya,J=_==="y"?Ho:Wo,Y=_==="y"?"height":"width",N=k[_],L=N+g[H],V=N-g[J],z=p?-R[Y]/2:0,G=C===If?T[Y]:R[Y],Q=C===If?-R[Y]:-T[Y],U=t.elements.arrow,ee=p&&U?t3(U):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:k9(),de=se[H],te=se[J],pe=Op(0,T[Y],ee[Y]),he=w?T[Y]/2-z-pe-de-P.mainAxis:G-pe-de-P.mainAxis,le=w?-T[Y]/2+z+pe+te+P.mainAxis:Q+pe+te+P.mainAxis,Z=t.elements.arrow&&Ip(t.elements.arrow),j=Z?_==="y"?Z.clientTop||0:Z.clientLeft||0:0,ae=(B=$==null?void 0:$[_])!=null?B:0,fe=N+he-ae-j,we=N+le-ae,Se=Op(p?Lg(L,fe):L,N,p?ku(V,we):V);k[_]=Se,O[_]=Se-N}if(i){var ke,Oe=_==="x"?Ga:Ya,Be=_==="x"?Ho:Wo,Le=k[x],Ce=x==="y"?"height":"width",Ie=Le+g[Oe],Re=Le-g[Be],Ke=[Ga,Ya].indexOf(b)!==-1,tt=(ke=$==null?void 0:$[x])!=null?ke:0,ut=Ke?Ie:Le-T[Ce]-R[Ce]-tt+P.altAxis,Fe=Ke?Le+T[Ce]+R[Ce]-tt-P.altAxis:Re,Ue=p&&Ke?LJ(ut,Le,Fe):Op(p?ut:Ie,Le,p?Fe:Re);k[x]=Ue,O[x]=Ue-Le}t.modifiersData[s]=O}}var lZ={name:"preventOverflow",enabled:!0,phase:"main",fn:iZ,requiresIfExists:["offset"]};function cZ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function uZ(e){return e===fo(e)||!jo(e)?s3(e):cZ(e)}function dZ(e){var t=e.getBoundingClientRect(),n=Of(t.width)/e.offsetWidth||1,s=Of(t.height)/e.offsetHeight||1;return n!==1||s!==1}function fZ(e,t,n){n===void 0&&(n=!1);var s=jo(t),a=jo(t)&&dZ(t),o=oc(t),r=Lf(e,a,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&((ai(t)!=="body"||o3(o))&&(i=uZ(t)),jo(t)?(l=Lf(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=a3(o))),{x:r.left+i.scrollLeft-l.x,y:r.top+i.scrollTop-l.y,width:r.width,height:r.height}}function hZ(e){var t=new Map,n=new Set,s=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&a(l)}}),s.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),s}function pZ(e){var t=hZ(e);return MJ.reduce(function(n,s){return n.concat(t.filter(function(a){return a.phase===s}))},[])}function vZ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function mZ(e){var t=e.reduce(function(n,s){var a=n[s.name];return n[s.name]=a?Object.assign({},a,s,{options:Object.assign({},a.options,s.options),data:Object.assign({},a.data,s.data)}):s,n},{});return Object.keys(t).map(function(n){return t[n]})}var F9={placement:"bottom",modifiers:[],strategy:"absolute"};function B9(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(s){return!(s&&typeof s.getBoundingClientRect=="function")})}function i3(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,s=n===void 0?[]:n,a=t.defaultOptions,o=a===void 0?F9:a;return function(r,i,l){l===void 0&&(l=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},F9,o),modifiersData:{},elements:{reference:r,popper:i},attributes:{},styles:{}},u=[],f=!1,h={state:c,setOptions:function(m){var g=typeof m=="function"?m(c.options):m;v(),c.options=Object.assign({},o,c.options,g),c.scrollParents={reference:xu(r)?Lp(r):r.contextElement?Lp(r.contextElement):[],popper:Lp(i)};var b=pZ(mZ([].concat(s,c.options.modifiers)));return c.orderedModifiers=b.filter(function(C){return C.enabled}),p(),h.update()},forceUpdate:function(){if(!f){var m=c.elements,g=m.reference,b=m.popper;if(B9(g,b)){c.rects={reference:fZ(g,Ip(b),c.options.strategy==="fixed"),popper:t3(b)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(R){return c.modifiersData[R.name]=Object.assign({},R.data)});for(var C=0;C<c.orderedModifiers.length;C++){if(c.reset===!0){c.reset=!1,C=-1;continue}var w=c.orderedModifiers[C],_=w.fn,x=w.options,k=x===void 0?{}:x,T=w.name;typeof _=="function"&&(c=_({state:c,options:k,name:T,instance:h})||c)}}}},update:vZ(function(){return new Promise(function(m){h.forceUpdate(),m(c)})}),destroy:function(){v(),f=!0}};if(!B9(r,i))return h;h.setOptions(l).then(function(m){!f&&l.onFirstUpdate&&l.onFirstUpdate(m)});function p(){c.orderedModifiers.forEach(function(m){var g=m.name,b=m.options,C=b===void 0?{}:b,w=m.effect;if(typeof w=="function"){var _=w({state:c,name:g,instance:h,options:C}),x=function(){};u.push(_||x)}})}function v(){u.forEach(function(m){return m()}),u=[]}return h}}i3();var gZ=[P9,D9,M9,_9];i3({defaultModifiers:gZ});var bZ=[P9,D9,M9,_9,aZ,QJ,lZ,FJ,tZ],yZ=i3({defaultModifiers:bZ});const V9=Me({arrowOffset:{type:Number,default:5}}),wZ=Me({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ua=e=>Yi(wZ,e),_Z=["fixed","absolute"],CZ=Me({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:re(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:si,default:"bottom"},popperOptions:{type:re(Object),default:()=>({})},strategy:{type:String,values:_Z,default:"absolute"}}),z9=Me({...CZ,...V9,id:String,style:{type:re([String,Array,Object])},className:{type:re([String,Array,Object])},effect:{type:re(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:re([String,Array,Object])},popperStyle:{type:re([String,Array,Object])},referenceEl:{type:re(Object)},triggerTargetEl:{type:re(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...ua(["ariaLabel"]),loop:Boolean}),SZ={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0};function H9(){let e;const t=(s,a)=>{n(),e=window.setTimeout(s,a)},n=()=>window.clearTimeout(e);return Cu(()=>n()),{registerTimeout:t,cancelTimeout:n}}const xZ=Me({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),kZ=({showAfter:e,hideAfter:t,autoClose:n,open:s,close:a})=>{const{registerTimeout:o}=H9(),{registerTimeout:r,cancelTimeout:i}=H9();return{onOpen:(u,f=d(e))=>{o(()=>{s(u);const h=d(n);st(h)&&h>0&&r(()=>{a(u)},h)},f)},onClose:(u,f=d(t))=>{i(),o(()=>{a(u)},f)}}},ln=Me({...xZ,...z9,appendTo:{type:xp.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:re(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...ua(["ariaLabel"])}),$n=e=>e,$p=Me({id:{type:String,default:void 0},size:hs,disabled:{type:Boolean,default:void 0},modelValue:{type:re([String,Number,Object]),default:""},modelModifiers:{type:re(Object),default:()=>({})},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:re(String),default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:re([Boolean,Object]),default:!1},autocomplete:{type:re(String),default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:rn,default:Vo},showPassword:Boolean,showWordLimit:Boolean,wordLimitPosition:{type:String,values:["inside","outside"],default:"inside"},suffixIcon:{type:rn},prefixIcon:{type:rn},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:re([Object,Array,String]),default:()=>$n({})},autofocus:Boolean,rows:{type:Number,default:2},...ua(["ariaLabel"]),inputmode:{type:re(String),default:void 0},name:String}),EZ={[mt]:e=>Xe(e),input:e=>Xe(e),change:(e,t)=>Xe(e)&&(t instanceof Event||t===void 0),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};Ur(Vo);const AZ=Me({...$p,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:re(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:re([Function,Array]),default:en},popperClass:ln.popperClass,popperStyle:ln.popperStyle,triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:ln.teleported,appendTo:ln.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean,loopNavigation:{type:Boolean,default:!0}}),TZ={[mt]:e=>Xe(e)||st(e),[is]:e=>Xe(e)||st(e),[Dt]:e=>Xe(e)||st(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>bt(e)},l3=()=>Yt&&/firefox/i.test(window.navigator.userAgent),W9=()=>Yt&&/android/i.test(window.navigator.userAgent);let Xa;const MZ={height:"0",visibility:"hidden",overflow:l3()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},PZ=["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"],j9=e=>{const t=Number.parseFloat(e);return Number.isNaN(t)?e:t};function RZ(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),s=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:PZ.map(r=>[r,t.getPropertyValue(r)]),paddingSize:s,borderSize:a,boxSizing:n}}function K9(e,t=1,n){var s,a;Xa||(Xa=document.createElement("textarea"),((s=e.parentNode)!=null?s:document.body).appendChild(Xa));const{paddingSize:o,borderSize:r,boxSizing:i,contextStyle:l}=RZ(e);l.forEach(([h,p])=>Xa==null?void 0:Xa.style.setProperty(h,p)),Object.entries(MZ).forEach(([h,p])=>Xa==null?void 0:Xa.style.setProperty(h,p,"important")),Xa.value=e.value||e.placeholder||"";let c=Xa.scrollHeight;const u={};i==="border-box"?c=c+r:i==="content-box"&&(c=c-o),Xa.value="";const f=Xa.scrollHeight-o;if(st(t)){let h=f*t;i==="border-box"&&(h=h+o+r),c=Math.max(h,c),u.minHeight=`${h}px`}if(st(n)){let h=f*n;i==="border-box"&&(h=h+o+r),c=Math.min(h,c)}return u.height=`${c}px`,(a=Xa.parentNode)==null||a.removeChild(Xa),Xa=void 0,u}const IZ=["class","style"],OZ=/^on[A-Z]/,Fg=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,s=E(()=>((n==null?void 0:n.value)||[]).concat(IZ)),a=Tt();return E(a?()=>{var o;return vp(Object.entries((o=a.proxy)==null?void 0:o.$attrs).filter(([r])=>!s.value.includes(r)&&!(t&&OZ.test(r))))}:()=>({}))},U9=e=>{const t=Tt();return E(()=>{var n,s;return(s=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:s[e]})},Eu=Symbol("formContextKey"),ri=Symbol("formItemContextKey"),ls=(e,t={})=>{const n=F(void 0),s=t.prop?n:U9("size"),a=t.global?n:$x(),o=t.form?{size:void 0}:je(Eu,void 0),r=t.formItem?{size:void 0}:je(ri,void 0);return E(()=>s.value||d(e)||(r==null?void 0:r.size)||(o==null?void 0:o.size)||a.value||"")},Dn=e=>{const t=U9("disabled"),n=je(Eu,void 0);return E(()=>{var s,a,o;return(o=(a=(s=t.value)!=null?s:d(e))!=null?a:n==null?void 0:n.disabled)!=null?o:!1})},LZ='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',q9=e=>typeof Element>"u"?!1:e instanceof Element,NZ=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,G9=e=>Array.from(e.querySelectorAll(LZ)).filter(t=>Dp(t)&&NZ(t)),Dp=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}},Bg=function(e,t,...n){let s;t.includes("mouse")||t.includes("click")?s="MouseEvents":t.includes("key")?s="KeyboardEvent":s="HTMLEvents";const a=document.createEvent(s);return a.initEvent(t,...n),e.dispatchEvent(a),e},Y9=e=>!e.getAttribute("aria-owns"),X9=(e,t,n)=>{const{parentNode:s}=e;if(!s)return null;const a=s.querySelectorAll(n),o=Array.prototype.indexOf.call(a,e);return a[o+t]||null},Fp=(e,t)=>{if(!e||!e.focus)return;let n=!1;q9(e)&&!Dp(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),q9(e)&&n&&e.removeAttribute("tabindex")},Vg=e=>{e&&(Fp(e),!Y9(e)&&e.click())};function nl(e,{disabled:t,beforeFocus:n,afterFocus:s,beforeBlur:a,afterBlur:o}={}){const r=Tt(),{emit:i}=r,l=bn(),c=F(!1),u=p=>{const v=Qe(n)?n(p):!1;d(t)||c.value||v||(c.value=!0,i("focus",p),s==null||s())},f=p=>{var v;const m=Qe(a)?a(p):!1;d(t)||p.relatedTarget&&((v=l.value)!=null&&v.contains(p.relatedTarget))||m||(c.value=!1,i("blur",p),o==null||o())},h=p=>{var v,m;d(t)||Dp(p.target)||(v=l.value)!=null&&v.contains(document.activeElement)&&l.value!==document.activeElement||(m=e.value)==null||m.focus()};return be([l,()=>d(t)],([p,v])=>{p&&(v?p.removeAttribute("tabindex"):p.setAttribute("tabindex","-1"))}),an(l,"focus",u,!0),an(l,"blur",f,!0),an(l,"click",h,!0),{isFocused:c,wrapperRef:l,handleFocus:u,handleBlur:f}}const J9={prefix:Math.floor(Math.random()*1e4),current:0},$Z=Symbol("elIdInjection"),c3=()=>Tt()?je($Z,J9):J9,Vs=e=>{const t=c3(),n=Oy();return _x(()=>d(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},Ms=()=>{const e=je(Eu,void 0),t=je(ri,void 0);return{form:e,formItem:t}},ho=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:s})=>{n||(n=F(!1)),s||(s=F(!1));const a=Tt(),o=()=>{let c=a==null?void 0:a.parent;for(;c;){if(c.type.name==="ElFormItem")return!1;if(c.type.name==="ElLabelWrap")return!0;c=c.parent}return!1},r=F();let i;const l=E(()=>{var c;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((c=t.inputIds)==null?void 0:c.length)<=1)});return Mt(()=>{i=be([sn(e,"id"),n],([c,u])=>{const f=c??(u?void 0:Vs().value);f!==r.value&&(t!=null&&t.removeInputId&&!o()&&(r.value&&t.removeInputId(r.value),!(s!=null&&s.value)&&!u&&f&&t.addInputId(f)),r.value=f)},{immediate:!0})}),fu(()=>{i&&i(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:l,inputId:r}},DZ=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function Bp({afterComposition:e,emit:t}){const n=F(!1),s=i=>{t==null||t("compositionstart",i),n.value=!0},a=i=>{var l;t==null||t("compositionupdate",i);const c=(l=i.target)==null?void 0:l.value,u=c[c.length-1]||"";n.value=!DZ(u)},o=i=>{t==null||t("compositionend",i),n.value&&(n.value=!1,ze(()=>e(i)))};return{isComposing:n,handleComposition:i=>{i.type==="compositionend"?o(i):a(i)},handleCompositionStart:s,handleCompositionUpdate:a,handleCompositionEnd:o}}function FZ(e){let t;function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:o,value:r}=e.value;if(a==null||o==null)return;const i=r.slice(0,Math.max(0,a)),l=r.slice(Math.max(0,o));t={selectionStart:a,selectionEnd:o,value:r,beforeTxt:i,afterTxt:l}}function s(){if(e.value==null||t==null)return;const{value:a}=e.value,{beforeTxt:o,afterTxt:r,selectionStart:i}=t;if(o==null||r==null||i==null)return;let l=a.length;if(a.endsWith(r))l=a.length-r.length;else if(a.startsWith(o))l=o.length;else{const c=o[i-1],u=a.indexOf(c,i-1);u!==-1&&(l=u+1)}e.value.setSelectionRange(l,l)}return[n,s]}const BZ=["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode"],VZ=["id","name","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role"];var zZ=K({name:"ElInput",inheritAttrs:!1,__name:"input",props:$p,emits:EZ,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Hi(),r=Fg(),i=Gn(),l=E(()=>[s.type==="textarea"?g.b():m.b(),m.m(p.value),m.is("disabled",v.value),m.is("exceed",U.value),{[m.b("group")]:i.prepend||i.append,[m.m("prefix")]:i.prefix||s.prefixIcon,[m.m("suffix")]:i.suffix||s.suffixIcon||s.clearable||s.showPassword,[m.bm("suffix","password-clear")]:V.value&&z.value,[m.b("hidden")]:s.type==="hidden"},o.class]),c=E(()=>[m.e("wrapper"),m.is("focus",I.value)]),{form:u,formItem:f}=Ms(),{inputId:h}=ho(s,{formItemContext:f}),p=ls(),v=Dn(),m=Ee("input"),g=Ee("textarea"),b=bn(),C=bn(),w=F(!1),_=F(!1),x=F(),k=bn(s.inputStyle),T=E(()=>b.value||C.value),{wrapperRef:R,isFocused:I,handleFocus:P,handleBlur:$}=nl(T,{disabled:v,afterBlur(){var Fe;s.validateEvent&&((Fe=f==null?void 0:f.validate)==null||Fe.call(f,"blur").catch(Ue=>void 0))}}),O=E(()=>{var Fe;return(Fe=u==null?void 0:u.statusIcon)!=null?Fe:!1}),B=E(()=>(f==null?void 0:f.validateState)||""),H=E(()=>B.value&&Og[B.value]),J=E(()=>_.value?Gy:t9),Y=E(()=>[o.style]),N=E(()=>[s.inputStyle,k.value,{resize:s.resize}]),L=E(()=>Qn(s.modelValue)?"":String(s.modelValue)),V=E(()=>s.clearable&&!v.value&&!s.readonly&&!!L.value&&(I.value||w.value)),z=E(()=>s.showPassword&&!v.value&&!!L.value),G=E(()=>s.showWordLimit&&!!s.maxlength&&(s.type==="text"||s.type==="textarea")&&!v.value&&!s.readonly&&!s.showPassword),Q=E(()=>L.value.length),U=E(()=>!!G.value&&Q.value>Number(s.maxlength)),ee=E(()=>!!i.suffix||!!s.suffixIcon||V.value||s.showPassword||G.value||!!B.value&&O.value),se=E(()=>!!Object.keys(s.modelModifiers).length),[de,te]=FZ(b);Tn(C,Fe=>{if(le(),!G.value||s.resize!=="both"&&s.resize!=="horizontal")return;const Ue=Fe[0],{width:Ze}=Ue.contentRect;x.value={right:`calc(100% - ${Ze+22-10}px)`}});const pe=()=>{const{type:Fe,autosize:Ue}=s;if(!(!Yt||Fe!=="textarea"||!C.value))if(Ue){const Ze=bt(Ue)?Ue.minRows:void 0,Ot=bt(Ue)?Ue.maxRows:void 0,Xt=K9(C.value,Ze,Ot);k.value={overflowY:"hidden",...Xt},ze(()=>{C.value.offsetHeight,k.value=Xt})}else k.value={minHeight:K9(C.value).minHeight}},le=(Fe=>{let Ue=!1;return()=>{var Ze;if(Ue||!s.autosize)return;((Ze=C.value)==null?void 0:Ze.offsetParent)===null||(setTimeout(Fe),Ue=!0)}})(pe),Z=()=>{const Fe=T.value,Ue=s.formatter?s.formatter(L.value):L.value;!Fe||Fe.value===Ue||s.type==="file"||(Fe.value=Ue)},j=Fe=>{const{trim:Ue,number:Ze}=s.modelModifiers;return Ue&&(Fe=Fe.trim()),Ze&&(Fe=`${j9(Fe)}`),s.formatter&&s.parser&&(Fe=s.parser(Fe)),Fe},ae=async Fe=>{if(we.value)return;const{lazy:Ue}=s.modelModifiers;let{value:Ze}=Fe.target;if(Ue){a(is,Ze);return}if(Ze=j(Ze),String(Ze)===L.value){s.formatter&&Z();return}de(),a(mt,Ze),a(is,Ze),await ze(),(s.formatter&&s.parser||!se.value)&&Z(),te()},fe=async Fe=>{let{value:Ue}=Fe.target;Ue=j(Ue),s.modelModifiers.lazy&&a(mt,Ue),a(Dt,Ue,Fe),await ze(),Z()},{isComposing:we,handleCompositionStart:Se,handleCompositionUpdate:ke,handleCompositionEnd:Oe}=Bp({emit:a,afterComposition:ae}),Be=()=>{_.value=!_.value},Le=()=>{var Fe;return(Fe=T.value)==null?void 0:Fe.focus()},Ce=()=>{var Fe;return(Fe=T.value)==null?void 0:Fe.blur()},Ie=Fe=>{w.value=!1,a("mouseleave",Fe)},Re=Fe=>{w.value=!0,a("mouseenter",Fe)},Ke=Fe=>{a("keydown",Fe)},tt=()=>{var Fe;(Fe=T.value)==null||Fe.select()},ut=()=>{a(mt,""),a(Dt,""),a("clear"),a(is,"")};return be(()=>s.modelValue,()=>{var Fe;ze(()=>pe()),s.validateEvent&&((Fe=f==null?void 0:f.validate)==null||Fe.call(f,"change").catch(Ue=>void 0))}),be(L,Fe=>{if(!T.value)return;const{trim:Ue,number:Ze}=s.modelModifiers,Ot=T.value.value,Xt=(Ze||s.type==="number")&&!/^0\d/.test(Ot)?`${j9(Ot)}`:Ot;Xt!==Fe&&(document.activeElement===T.value&&T.value.type!=="range"&&Ue&&Xt.trim()===Fe||Z())}),be(()=>s.type,async()=>{await ze(),Z(),pe()}),Mt(()=>{!s.formatter&&s.parser,Z(),ze(pe)}),t({input:b,textarea:C,ref:T,textareaStyle:N,autosize:sn(s,"autosize"),isComposing:we,focus:Le,blur:Ce,select:tt,clear:ut,resizeTextarea:pe}),(Fe,Ue)=>(S(),M("div",{class:D([l.value,{[d(m).bm("group","append")]:Fe.$slots.append,[d(m).bm("group","prepend")]:Fe.$slots.prepend}]),style:et(Y.value),onMouseenter:Re,onMouseleave:Ie},[ie(" input "),e.type!=="textarea"?(S(),M(He,{key:0},[ie(" prepend slot "),Fe.$slots.prepend?(S(),M("div",{key:0,class:D(d(m).be("group","prepend"))},[ue(Fe.$slots,"prepend")],2)):ie("v-if",!0),A("div",{ref_key:"wrapperRef",ref:R,class:D(c.value)},[ie(" prefix slot "),Fe.$slots.prefix||e.prefixIcon?(S(),M("span",{key:0,class:D(d(m).e("prefix"))},[A("span",{class:D(d(m).e("prefix-inner"))},[ue(Fe.$slots,"prefix"),e.prefixIcon?(S(),ce(d(Je),{key:0,class:D(d(m).e("icon"))},{default:X(()=>[(S(),ce(kt(e.prefixIcon)))]),_:1},8,["class"])):ie("v-if",!0)],2)],2)):ie("v-if",!0),A("input",At({id:d(h),ref_key:"input",ref:b,class:d(m).e("inner")},d(r),{name:e.name,minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?_.value?"text":"password":e.type,disabled:d(v),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:Ue[0]||(Ue[0]=(...Ze)=>d(Se)&&d(Se)(...Ze)),onCompositionupdate:Ue[1]||(Ue[1]=(...Ze)=>d(ke)&&d(ke)(...Ze)),onCompositionend:Ue[2]||(Ue[2]=(...Ze)=>d(Oe)&&d(Oe)(...Ze)),onInput:ae,onChange:fe,onKeydown:Ke}),null,16,BZ),ie(" suffix slot "),ee.value?(S(),M("span",{key:1,class:D(d(m).e("suffix"))},[A("span",{class:D(d(m).e("suffix-inner"))},[!V.value||!z.value||!G.value?(S(),M(He,{key:0},[ue(Fe.$slots,"suffix"),e.suffixIcon?(S(),ce(d(Je),{key:0,class:D(d(m).e("icon"))},{default:X(()=>[(S(),ce(kt(e.suffixIcon)))]),_:1},8,["class"])):ie("v-if",!0)],64)):ie("v-if",!0),V.value?(S(),ce(d(Je),{key:1,class:D([d(m).e("icon"),d(m).e("clear")]),onMousedown:ht(d(en),["prevent"]),onClick:ut},{default:X(()=>[(S(),ce(kt(e.clearIcon)))]),_:1},8,["class","onMousedown"])):ie("v-if",!0),z.value?(S(),ce(d(Je),{key:2,class:D([d(m).e("icon"),d(m).e("password")]),onClick:Be,onMousedown:ht(d(en),["prevent"]),onMouseup:ht(d(en),["prevent"])},{default:X(()=>[(S(),ce(kt(J.value)))]),_:1},8,["class","onMousedown","onMouseup"])):ie("v-if",!0),G.value?(S(),M("span",{key:3,class:D([d(m).e("count"),d(m).is("outside",e.wordLimitPosition==="outside")])},[A("span",{class:D(d(m).e("count-inner"))},ge(Q.value)+" / "+ge(e.maxlength),3)],2)):ie("v-if",!0),B.value&&H.value&&O.value?(S(),ce(d(Je),{key:4,class:D([d(m).e("icon"),d(m).e("validateIcon"),d(m).is("loading",B.value==="validating")])},{default:X(()=>[(S(),ce(kt(H.value)))]),_:1},8,["class"])):ie("v-if",!0)],2)],2)):ie("v-if",!0)],2),ie(" append slot "),Fe.$slots.append?(S(),M("div",{key:1,class:D(d(m).be("group","append"))},[ue(Fe.$slots,"append")],2)):ie("v-if",!0)],64)):(S(),M(He,{key:1},[ie(" textarea "),A("textarea",At({id:d(h),ref_key:"textarea",ref:C,class:[d(g).e("inner"),d(m).is("focus",d(I))]},d(r),{name:e.name,minlength:e.minlength,maxlength:e.maxlength,tabindex:e.tabindex,disabled:d(v),readonly:e.readonly,autocomplete:e.autocomplete,style:N.value,"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,onCompositionstart:Ue[3]||(Ue[3]=(...Ze)=>d(Se)&&d(Se)(...Ze)),onCompositionupdate:Ue[4]||(Ue[4]=(...Ze)=>d(ke)&&d(ke)(...Ze)),onCompositionend:Ue[5]||(Ue[5]=(...Ze)=>d(Oe)&&d(Oe)(...Ze)),onInput:ae,onFocus:Ue[6]||(Ue[6]=(...Ze)=>d(P)&&d(P)(...Ze)),onBlur:Ue[7]||(Ue[7]=(...Ze)=>d($)&&d($)(...Ze)),onChange:fe,onKeydown:Ke}),null,16,VZ),G.value?(S(),M("span",{key:0,style:et(x.value),class:D([d(m).e("count"),d(m).is("outside",e.wordLimitPosition==="outside")])},ge(Q.value)+" / "+ge(e.maxlength),7)):ie("v-if",!0)],64))],38))}});const da=wt(zZ),HZ=Me({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:re([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,...ua(["ariaLabel","ariaOrientation"])}),Z9={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(st)},WZ=Me({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),$f=4,Q9={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"}},jZ=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),KZ=Me({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),u3=Symbol("scrollbarContextKey"),UZ="Thumb";var ek=K({__name:"thumb",props:KZ,setup(e){const t=e,n=je(u3),s=Ee("scrollbar");n||ns(UZ,"can not inject scrollbar context");const a=F(),o=F(),r=F({}),i=F(!1);let l=!1,c=!1,u=0,f=0,h=Yt?document.onselectstart:null;const p=E(()=>Q9[t.vertical?"vertical":"horizontal"]),v=E(()=>jZ({size:t.size,move:t.move,bar:p.value})),m=E(()=>a.value[p.value.offset]**2/n.wrapElement[p.value.scrollSize]/t.ratio/o.value[p.value.offset]),g=R=>{var I;if(R.stopPropagation(),R.ctrlKey||[1,2].includes(R.button))return;(I=window.getSelection())==null||I.removeAllRanges(),C(R);const P=R.currentTarget;P&&(r.value[p.value.axis]=P[p.value.offset]-(R[p.value.client]-P.getBoundingClientRect()[p.value.direction]))},b=R=>{if(!o.value||!a.value||!n.wrapElement)return;const I=Math.abs(R.target.getBoundingClientRect()[p.value.direction]-R[p.value.client]),P=o.value[p.value.offset]/2,$=(I-P)*100*m.value/a.value[p.value.offset];n.wrapElement[p.value.scroll]=$*n.wrapElement[p.value.scrollSize]/100},C=R=>{R.stopImmediatePropagation(),l=!0,u=n.wrapElement.scrollHeight,f=n.wrapElement.scrollWidth,document.addEventListener("mousemove",w),document.addEventListener("mouseup",_),h=document.onselectstart,document.onselectstart=()=>!1},w=R=>{if(!a.value||!o.value||l===!1)return;const I=r.value[p.value.axis];if(!I)return;const P=(a.value.getBoundingClientRect()[p.value.direction]-R[p.value.client])*-1,$=o.value[p.value.offset]-I,O=(P-$)*100*m.value/a.value[p.value.offset];p.value.scroll==="scrollLeft"?n.wrapElement[p.value.scroll]=O*f/100:n.wrapElement[p.value.scroll]=O*u/100},_=()=>{l=!1,r.value[p.value.axis]=0,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",_),T(),c&&(i.value=!1)},x=()=>{c=!1,i.value=!!t.size},k=()=>{c=!0,i.value=l};tn(()=>{T(),document.removeEventListener("mouseup",_)});const T=()=>{document.onselectstart!==h&&(document.onselectstart=h)};return an(sn(n,"scrollbarElement"),"mousemove",x),an(sn(n,"scrollbarElement"),"mouseleave",k),(R,I)=>(S(),ce(Cs,{name:d(s).b("fade"),persisted:""},{default:X(()=>[Ct(A("div",{ref_key:"instance",ref:a,class:D([d(s).e("bar"),d(s).is(p.value.key)]),onMousedown:b,onClick:I[0]||(I[0]=ht(()=>{},["stop"]))},[A("div",{ref_key:"thumb",ref:o,class:D(d(s).e("thumb")),style:et(v.value),onMousedown:g},null,38)],34),[[jt,e.always||i.value]])]),_:1},8,["name"]))}}),qZ=K({__name:"bar",props:WZ,setup(e,{expose:t}){const n=e,s=je(u3),a=F(0),o=F(0),r=F(""),i=F(""),l=F(1),c=F(1);return t({handleScroll:h=>{if(h){const p=h.offsetHeight-$f,v=h.offsetWidth-$f;o.value=h.scrollTop*100/p*l.value,a.value=h.scrollLeft*100/v*c.value}},update:()=>{const h=s==null?void 0:s.wrapElement;if(!h)return;const p=h.offsetHeight-$f,v=h.offsetWidth-$f,m=p**2/h.scrollHeight,g=v**2/h.scrollWidth,b=Math.max(m,n.minSize),C=Math.max(g,n.minSize);l.value=m/(p-m)/(b/(p-b)),c.value=g/(v-g)/(C/(v-C)),i.value=b+$f<p?`${b}px`:"",r.value=C+$f<v?`${C}px`:""}}),(h,p)=>(S(),M(He,null,[W(ek,{move:a.value,ratio:c.value,size:r.value,always:e.always},null,8,["move","ratio","size","always"]),W(ek,{move:o.value,ratio:l.value,size:i.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}});const GZ=["tabindex"];var YZ=K({name:"ElScrollbar",__name:"scrollbar",props:HZ,emits:Z9,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("scrollbar");let r,i,l,c=0,u=0,f="";const h={bottom:!1,top:!1,right:!1,left:!1},p=F(),v=F(),m=F(),g=F(),b=E(()=>{const O={},B=Nn(s.height),H=Nn(s.maxHeight);return B&&(O.height=B),H&&(O.maxHeight=H),[s.wrapStyle,O]}),C=E(()=>[s.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!s.native}]),w=E(()=>[o.e("view"),s.viewClass]),_=O=>{var B;return(B=h[O])!=null?B:!1},x={top:"bottom",bottom:"top",left:"right",right:"left"},k=O=>{const B=x[f];if(!B)return;const H=O[f],J=O[B];H&&!h[f]&&(h[f]=!0),!J&&h[B]&&(h[B]=!1)},T=()=>{var O;if(v.value){(O=g.value)==null||O.handleScroll(v.value);const B=c,H=u;c=v.value.scrollTop,u=v.value.scrollLeft;const J={bottom:c+v.value.clientHeight>=v.value.scrollHeight-s.distance,top:c<=s.distance&&B!==0,right:u+v.value.clientWidth>=v.value.scrollWidth-s.distance&&H!==u,left:u<=s.distance&&H!==0};if(a("scroll",{scrollTop:c,scrollLeft:u}),B!==c&&(f=c>B?"bottom":"top"),H!==u&&(f=u>H?"right":"left"),s.distance>0){if(_(f))return;k(J)}J[f]&&a("end-reached",f)}};function R(O,B){bt(O)?v.value.scrollTo(O):st(O)&&st(B)&&v.value.scrollTo(O,B)}const I=O=>{st(O)&&(v.value.scrollTop=O)},P=O=>{st(O)&&(v.value.scrollLeft=O)},$=()=>{var O;(O=g.value)==null||O.update(),h[f]=!1};return be(()=>s.noresize,O=>{O?(r==null||r(),i==null||i(),l==null||l()):({stop:r}=Tn(m,$),{stop:i}=Tn(v,$),l=an("resize",$))},{immediate:!0}),be(()=>[s.maxHeight,s.height],()=>{s.native||ze(()=>{var O;$(),v.value&&((O=g.value)==null||O.handleScroll(v.value))})}),Nt(u3,Gt({scrollbarElement:p,wrapElement:v})),G0(()=>{v.value&&(v.value.scrollTop=c,v.value.scrollLeft=u)}),Mt(()=>{s.native||ze(()=>{$()})}),lr(()=>$()),t({wrapRef:v,update:$,scrollTo:R,setScrollTop:I,setScrollLeft:P,handleScroll:T}),(O,B)=>(S(),M("div",{ref_key:"scrollbarRef",ref:p,class:D(d(o).b())},[A("div",{ref_key:"wrapRef",ref:v,class:D(C.value),style:et(b.value),tabindex:e.tabindex,onScroll:T},[(S(),ce(kt(e.tag),{id:e.id,ref_key:"resizeRef",ref:m,class:D(w.value),style:et(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:X(()=>[ue(O.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,GZ),e.native?ie("v-if",!0):(S(),ce(qZ,{key:0,ref_key:"barRef",ref:g,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}});const gr=wt(YZ),tk=Me({virtualRef:{type:re(Object)},virtualTriggering:Boolean,onMouseenter:{type:re(Function)},onMouseleave:{type:re(Function)},onClick:{type:re(Function)},onKeydown:{type:re(Function)},onFocus:{type:re(Function)},onBlur:{type:re(Function)},onContextmenu:{type:re(Function)},id:String,open:Boolean}),Te={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"},ii=Me({...tk,disabled:Boolean,trigger:{type:re([String,Array]),default:"hover"},triggerKeys:{type:re(Array),default:()=>[Te.enter,Te.numpadEnter,Te.space]},focusOnTarget:Boolean}),XZ=pr({type:re(Boolean),default:null}),JZ=pr({type:re(Function)}),ZZ=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,s=[t],a={[e]:XZ,[n]:JZ};return{useModelToggle:({indicator:r,toggleReason:i,shouldHideWhenRouteChanges:l,shouldProceed:c,onShow:u,onHide:f})=>{const h=Tt(),{emit:p}=h,v=h.props,m=E(()=>Qe(v[n])),g=E(()=>v[e]===null),b=T=>{r.value!==!0&&(r.value=!0,i&&(i.value=T),Qe(u)&&u(T))},C=T=>{r.value!==!1&&(r.value=!1,i&&(i.value=T),Qe(f)&&f(T))},w=T=>{if(v.disabled===!0||Qe(c)&&!c())return;const R=m.value&&Yt;R&&p(t,!0),(g.value||!R)&&b(T)},_=T=>{if(v.disabled===!0||!Yt)return;const R=m.value&&Yt;R&&p(t,!1),(g.value||!R)&&C(T)},x=T=>{on(T)&&(v.disabled&&T?m.value&&p(t,!1):r.value!==T&&(T?b():C()))},k=()=>{r.value?_():w()};return be(()=>v[e],x),l&&h.appContext.config.globalProperties.$route!==void 0&&be(()=>({...h.proxy.$route}),()=>{l.value&&r.value&&_()}),Mt(()=>{x(v[e])}),{hide:_,show:w,toggle:k,hasUpdateHandler:m}},useModelToggleProps:a,useModelToggleEmits:s}},nk=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],sk=Me({role:{type:String,values:nk,default:"tooltip"}}),{useModelToggleProps:QZ,useModelToggleEmits:eQ,useModelToggle:tQ}=ZZ("visible"),nQ=Me({...sk,...QZ,...ln,...ii,...V9,showArrow:{type:Boolean,default:!0}}),sQ=[...eQ,"before-show","before-hide","show","hide","open","close"],d3=Symbol("popper"),ak=Symbol("popperContent");var aQ=K({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:sk,setup(e,{expose:t}){const n=e,s=F(),a=F(),o=F(),r=F(),i=E(()=>n.role),l={triggerRef:s,popperInstanceRef:a,contentRef:o,referenceRef:r,role:i};return t(l),Nt(d3,l),(c,u)=>ue(c.$slots,"default")}}),oQ=K({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const n=Ee("popper"),{arrowRef:s,arrowStyle:a}=je(ak,void 0);return tn(()=>{s.value=void 0}),t({arrowRef:s}),(o,r)=>(S(),M("span",{ref_key:"arrowRef",ref:s,class:D(d(n).e("arrow")),style:et(d(a)),"data-popper-arrow":""},null,6))}});const ok=Symbol("elForwardRef"),rQ=e=>{Nt(ok,{setForwardRef:n=>{e.value=n}})},iQ=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),rk=K({name:"ElOnlyChild",setup(e,{slots:t,attrs:n}){var s;const a=je(ok),o=iQ((s=a==null?void 0:a.setForwardRef)!=null?s:en);return()=>{var r;const i=(r=t.default)==null?void 0:r.call(t,n);if(!i)return null;const[l,c]=ik(i);return l?Ct(Yr(l,n),[[o]]):null}}});function ik(e){if(!e)return[null,0];const t=e,n=t.filter(s=>s.type!==Jn).length;for(const s of t){if(bt(s))switch(s.type){case Jn:continue;case mf:case"svg":return[lk(s),n];case He:return ik(s.children);default:return[s,n]}return[lk(s),n]}return[null,0]}function lk(e){const t=Ee("only-child");return W("span",{class:t.e("content")},[e])}var lQ=K({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:tk,setup(e,{expose:t}){const n=e,{role:s,triggerRef:a}=je(d3,void 0);rQ(a);const o=E(()=>i.value?n.id:void 0),r=E(()=>{if(s&&s.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=E(()=>{if(s&&s.value!=="tooltip")return s.value}),l=E(()=>i.value?`${n.open}`:void 0);let c;const u=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return Mt(()=>{be(()=>n.virtualRef,f=>{f&&(a.value=fs(f))},{immediate:!0}),be(a,(f,h)=>{c==null||c(),c=void 0,Ka(h)&&u.forEach(p=>{const v=n[p];v&&h.removeEventListener(p.slice(2).toLowerCase(),v,["onFocus","onBlur"].includes(p))}),Ka(f)&&(u.forEach(p=>{const v=n[p];v&&f.addEventListener(p.slice(2).toLowerCase(),v,["onFocus","onBlur"].includes(p))}),Dp(f)&&(c=be([o,r,i,l],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((v,m)=>{Qn(p[m])?f.removeAttribute(v):f.setAttribute(v,p[m])})},{immediate:!0}))),Ka(h)&&Dp(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>h.removeAttribute(p))},{immediate:!0})}),tn(()=>{if(c==null||c(),c=void 0,a.value&&Ka(a.value)){const f=a.value;u.forEach(h=>{const p=n[h];p&&f.removeEventListener(h.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(h))}),a.value=void 0}}),t({triggerRef:a}),(f,h)=>e.virtualTriggering?ie("v-if",!0):(S(),ce(d(rk),At({key:0},f.$attrs,{"aria-controls":o.value,"aria-describedby":r.value,"aria-expanded":l.value,"aria-haspopup":i.value}),{default:X(()=>[ue(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});const f3="focus-trap.focus-after-trapped",h3="focus-trap.focus-after-released",cQ="focus-trap.focusout-prevented",ck={cancelable:!0,bubbles:!1},uQ={cancelable:!0,bubbles:!1},uk="focusAfterTrapped",dk="focusAfterReleased",fk=Symbol("elFocusTrap"),p3=F(),zg=F(0),v3=F(0);let Hg=0;const hk=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0||s===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},pk=(e,t)=>{for(const n of e)if(!dQ(n,t))return n},dQ=(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},fQ=e=>{const t=hk(e),n=pk(t,e),s=pk(t.reverse(),e);return[n,s]},hQ=e=>e instanceof HTMLInputElement&&"select"in e,rc=(e,t)=>{if(e){const n=document.activeElement;Fp(e,{preventScroll:!0}),v3.value=window.performance.now(),e!==n&&hQ(e)&&t&&e.select()}};function vk(e,t){const n=[...e],s=e.indexOf(t);return s!==-1&&n.splice(s,1),n}const pQ=()=>{let e=[];return{push:s=>{const a=e[0];a&&s!==a&&a.pause(),e=vk(e,s),e.unshift(s)},remove:s=>{var a,o;e=vk(e,s),(o=(a=e[0])==null?void 0:a.resume)==null||o.call(a)}}},vQ=(e,t=!1)=>{const n=document.activeElement;for(const s of e)if(rc(s,t),document.activeElement!==n)return},mk=pQ(),mQ=()=>zg.value>v3.value,Wg=()=>{p3.value="pointer",zg.value=window.performance.now()},gk=()=>{p3.value="keyboard",zg.value=window.performance.now()},gQ=()=>(Mt(()=>{Hg===0&&(document.addEventListener("mousedown",Wg),document.addEventListener("touchstart",Wg),document.addEventListener("keydown",gk)),Hg++}),tn(()=>{Hg--,Hg<=0&&(document.removeEventListener("mousedown",Wg),document.removeEventListener("touchstart",Wg),document.removeEventListener("keydown",gk))}),{focusReason:p3,lastUserFocusTimestamp:zg,lastAutomatedFocusTimestamp:v3}),jg=e=>new CustomEvent(cQ,{...uQ,detail:e}),Ss=(e,t,{checkForDefaultPrevented:n=!0}={})=>a=>{const o=e==null?void 0:e(a);if(n===!1||!o)return t==null?void 0:t(a)},bk=e=>t=>t.pointerType==="mouse"?e(t):void 0,un=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=yk(e);if(t){if(Object.values(Te).includes(t))return t;switch(t){case" ":return Te.space;default:return""}}return""},yk=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&W9()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t};let Df=[];const wk=e=>{un(e)===Te.esc&&Df.forEach(n=>n(e))},bQ=e=>{Mt(()=>{Df.length===0&&document.addEventListener("keydown",wk),Yt&&Df.push(e)}),tn(()=>{Df=Df.filter(t=>t!==e),Df.length===0&&Yt&&document.removeEventListener("keydown",wk)})};var yQ=K({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[uk,dk,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=F();let s,a;const{focusReason:o}=gQ();bQ(v=>{e.trapped&&!r.paused&&t("release-requested",v)});const r={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=v=>{if(!e.loop&&!e.trapped||r.paused)return;const{altKey:m,ctrlKey:g,metaKey:b,currentTarget:C,shiftKey:w}=v,{loop:_}=e,k=un(v)===Te.tab&&!m&&!g&&!b,T=document.activeElement;if(k&&T){const R=C,[I,P]=fQ(R);if(I&&P){if(!w&&T===P){const O=jg({focusReason:o.value});t("focusout-prevented",O),O.defaultPrevented||(v.preventDefault(),_&&rc(I,!0))}else if(w&&[I,R].includes(T)){const O=jg({focusReason:o.value});t("focusout-prevented",O),O.defaultPrevented||(v.preventDefault(),_&&rc(P,!0))}}else if(T===R){const O=jg({focusReason:o.value});t("focusout-prevented",O),O.defaultPrevented||v.preventDefault()}}};Nt(fk,{focusTrapRef:n,onKeydown:i}),be(()=>e.focusTrapEl,v=>{v&&(n.value=v)},{immediate:!0}),be([n],([v],[m])=>{v&&(v.addEventListener("keydown",i),v.addEventListener("focusin",u),v.addEventListener("focusout",f)),m&&(m.removeEventListener("keydown",i),m.removeEventListener("focusin",u),m.removeEventListener("focusout",f))});const l=v=>{t(uk,v)},c=v=>t(dk,v),u=v=>{const m=d(n);if(!m)return;const g=v.target,b=v.relatedTarget,C=g&&m.contains(g);e.trapped||b&&m.contains(b)||(s=b),C&&t("focusin",v),!r.paused&&e.trapped&&(C?a=g:rc(a,!0))},f=v=>{const m=d(n);if(!(r.paused||!m))if(e.trapped){const g=v.relatedTarget;!Qn(g)&&!m.contains(g)&&setTimeout(()=>{if(!r.paused&&e.trapped){const b=jg({focusReason:o.value});t("focusout-prevented",b),b.defaultPrevented||rc(a,!0)}},0)}else{const g=v.target;g&&m.contains(g)||t("focusout",v)}};async function h(){await ze();const v=d(n);if(v){mk.push(r);const m=v.contains(document.activeElement)?s:document.activeElement;if(s=m,!v.contains(m)){const b=new Event(f3,ck);v.addEventListener(f3,l),v.dispatchEvent(b),b.defaultPrevented||ze(()=>{let C=e.focusStartEl;Xe(C)||(rc(C),document.activeElement!==C&&(C="first")),C==="first"&&vQ(hk(v),!0),(document.activeElement===m||C==="container")&&rc(v)})}}}function p(){const v=d(n);if(v){v.removeEventListener(f3,l);const m=new CustomEvent(h3,{...ck,detail:{focusReason:o.value}});v.addEventListener(h3,c),v.dispatchEvent(m),!m.defaultPrevented&&(o.value=="keyboard"||!mQ()||v.contains(document.activeElement))&&rc(s??document.body),v.removeEventListener(h3,c),mk.remove(r),s=null,a=null}}return Mt(()=>{e.trapped&&h(),be(()=>e.trapped,v=>{v?h():p()})}),tn(()=>{e.trapped&&p(),n.value&&(n.value.removeEventListener("keydown",i),n.value.removeEventListener("focusin",u),n.value.removeEventListener("focusout",f),n.value=void 0),s=null,a=null}),{onKeydown:i}}}),ps=(e,t)=>{const n=e.__vccOpts||e;for(const[s,a]of t)n[s]=a;return n};function wQ(e,t,n,s,a,o){return ue(e.$slots,"default",{handleKeydown:e.onKeydown})}var Ff=ps(yQ,[["render",wQ]]);const _Q=(e,t)=>{const n=F(!1),s=F(),a=()=>{t("focus")},o=c=>{var u;((u=c.detail)==null?void 0:u.focusReason)!=="pointer"&&(s.value="first",t("blur"))},r=c=>{e.visible&&!n.value&&(c.target&&(s.value=c.target),n.value=!0)},i=c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},l=()=>{n.value=!1,t("close")};return tn(()=>{s.value=void 0}),{focusStartRef:s,trapped:n,onFocusAfterReleased:o,onFocusAfterTrapped:a,onFocusInTrap:r,onFocusoutPrevented:i,onReleaseRequested:l}},CQ=(e,t=[])=>{const{placement:n,strategy:s,popperOptions:a}=e,o={placement:n,strategy:s,...a,modifiers:[...xQ(e),...t]};return kQ(o,a==null?void 0:a.modifiers),o},SQ=e=>{if(Yt)return fs(e)};function xQ(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:s}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:s}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function kQ(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const EQ=(e,t,n={})=>{const s={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const c=AQ(l);Object.assign(r.value,c)},requires:["computeStyles"]},a=E(()=>{const{onFirstUpdate:l,placement:c,strategy:u,modifiers:f}=d(n);return{onFirstUpdate:l,placement:c||"bottom",strategy:u||"absolute",modifiers:[...f||[],s,{name:"applyStyles",enabled:!1}]}}),o=bn(),r=F({styles:{popper:{position:d(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return be(a,l=>{const c=d(o);c&&c.setOptions(l)},{deep:!0}),be([e,t],([l,c])=>{i(),!(!l||!c)&&(o.value=yZ(l,c,d(a)))}),tn(()=>{i()}),{state:E(()=>{var l;return{...((l=d(o))==null?void 0:l.state)||{}}}),styles:E(()=>d(r).styles),attributes:E(()=>d(r).attributes),update:()=>{var l;return(l=d(o))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=d(o))==null?void 0:l.forceUpdate()},instanceRef:E(()=>d(o))}};function AQ(e){const t=Object.keys(e.elements),n=vp(t.map(a=>[a,e.styles[a]||{}])),s=vp(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:s}}const TQ=0,MQ=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:s,role:a}=je(d3,void 0),o=F(),r=E(()=>e.arrowOffset),i=E(()=>({name:"eventListeners",enabled:!!e.visible})),l=E(()=>{var b;const C=d(o),w=(b=d(r))!=null?b:TQ;return{name:"arrow",enabled:!vV(C),options:{element:C,padding:w}}}),c=E(()=>({onFirstUpdate:()=>{v()},...CQ(e,[d(l),d(i)])})),u=E(()=>SQ(e.referenceEl)||d(s)),{attributes:f,state:h,styles:p,update:v,forceUpdate:m,instanceRef:g}=EQ(u,n,c);return be(g,b=>t.value=b,{flush:"sync"}),Mt(()=>{be(()=>{var b,C;return(C=(b=d(u))==null?void 0:b.getBoundingClientRect)==null?void 0:C.call(b)},()=>{v()})}),tn(()=>{t.value=void 0}),{attributes:f,arrowRef:o,contentRef:n,instanceRef:g,state:h,styles:p,role:a,forceUpdate:m,update:v}},PQ=(e,{attributes:t,styles:n,role:s})=>{const{nextZIndex:a}=_p(),o=Ee("popper"),r=E(()=>d(t).popper),i=F(st(e.zIndex)?e.zIndex:a()),l=E(()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass]),c=E(()=>[{zIndex:d(i)},d(n).popper,e.popperStyle||{}]),u=E(()=>s.value==="dialog"?"false":void 0),f=E(()=>d(n).arrow||{});return{ariaModal:u,arrowStyle:f,contentAttrs:r,contentClass:l,contentStyle:c,contentZIndex:i,updateZIndex:()=>{i.value=st(e.zIndex)?e.zIndex:a()}}};var RQ=K({name:"ElPopperContent",__name:"content",props:z9,emits:SZ,setup(e,{expose:t,emit:n}){const s=n,a=e,{focusStartRef:o,trapped:r,onFocusAfterReleased:i,onFocusAfterTrapped:l,onFocusInTrap:c,onFocusoutPrevented:u,onReleaseRequested:f}=_Q(a,s),{attributes:h,arrowRef:p,contentRef:v,styles:m,instanceRef:g,role:b,update:C}=MQ(a),{ariaModal:w,arrowStyle:_,contentAttrs:x,contentClass:k,contentStyle:T,updateZIndex:R}=PQ(a,{styles:m,attributes:h,role:b}),I=je(ri,void 0);Nt(ak,{arrowStyle:_,arrowRef:p}),I&&Nt(ri,{...I,addInputId:en,removeInputId:en});let P;const $=(B=!0)=>{C(),B&&R()},O=()=>{$(!1),a.visible&&a.focusOnShow?r.value=!0:a.visible===!1&&(r.value=!1)};return Mt(()=>{be(()=>a.triggerTargetEl,(B,H)=>{P==null||P(),P=void 0;const J=d(B||v.value),Y=d(H||v.value);Ka(J)&&(P=be([b,()=>a.ariaLabel,w,()=>a.id],N=>{["role","aria-label","aria-modal","id"].forEach((L,V)=>{Qn(N[V])?J.removeAttribute(L):J.setAttribute(L,N[V])})},{immediate:!0})),Y!==J&&Ka(Y)&&["role","aria-label","aria-modal","id"].forEach(N=>{Y.removeAttribute(N)})},{immediate:!0}),be(()=>a.visible,O,{immediate:!0})}),tn(()=>{P==null||P(),P=void 0,v.value=void 0}),t({popperContentRef:v,popperInstanceRef:g,updatePopper:$,contentStyle:T}),(B,H)=>(S(),M("div",At({ref_key:"contentRef",ref:v},d(x),{style:d(T),class:d(k),tabindex:"-1",onMouseenter:H[0]||(H[0]=J=>B.$emit("mouseenter",J)),onMouseleave:H[1]||(H[1]=J=>B.$emit("mouseleave",J))}),[W(d(Ff),{loop:e.loop,trapped:d(r),"trap-on-focus-in":!0,"focus-trap-el":d(v),"focus-start-el":d(o),onFocusAfterTrapped:d(l),onFocusAfterReleased:d(i),onFocusin:d(c),onFocusoutPrevented:d(u),onReleaseRequested:d(f)},{default:X(()=>[ue(B.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});const _k=wt(aQ),m3=Symbol("elTooltip"),g3=(e,t)=>Ae(e)?e.includes(t):e===t,Bf=(e,t,n)=>s=>{g3(d(e),t)&&n(s)};var IQ=K({name:"ElTooltipTrigger",__name:"trigger",props:ii,setup(e,{expose:t}){const n=e,s=Ee("tooltip"),{controlled:a,id:o,open:r,onOpen:i,onClose:l,onToggle:c}=je(m3,void 0),u=F(null),f=()=>{if(d(a)||n.disabled)return!0},h=sn(n,"trigger"),p=Ss(f,Bf(h,"hover",_=>{i(_),n.focusOnTarget&&_.target&&ze(()=>{Fp(_.target,{preventScroll:!0})})})),v=Ss(f,Bf(h,"hover",l)),m=Ss(f,Bf(h,"click",_=>{_.button===0&&c(_)})),g=Ss(f,Bf(h,"focus",i)),b=Ss(f,Bf(h,"focus",l)),C=Ss(f,Bf(h,"contextmenu",_=>{_.preventDefault(),c(_)})),w=Ss(f,_=>{const x=un(_);n.triggerKeys.includes(x)&&(_.preventDefault(),c(_))});return t({triggerRef:u}),(_,x)=>(S(),ce(d(lQ),{id:d(o),"virtual-ref":e.virtualRef,open:d(r),"virtual-triggering":e.virtualTriggering,class:D(d(s).e("trigger")),onBlur:d(b),onClick:d(m),onContextmenu:d(C),onFocus:d(g),onMouseenter:d(p),onMouseleave:d(v),onKeydown:d(w)},{default:X(()=>[ue(_.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});const Ck=()=>{const e=Oy(),t=c3(),n=E(()=>`${e.value}-popper-container-${t.prefix}`),s=E(()=>`#${n.value}`);return{id:n,selector:s}},OQ=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},LQ=()=>{const{id:e,selector:t}=Ck();return J2(()=>{Yt&&(document.body.querySelector(t.value)||OQ(e.value))}),{id:e,selector:t}},Sk=e=>[...new Set(e)],Vp=e=>Ae(e)?e[0]:e,fa=e=>!e&&e!==0?[]:Ae(e)?e:[e];var NQ=K({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:ln,setup(e,{expose:t}){const n=e,{selector:s}=Ck(),a=Ee("tooltip"),o=F(),r=_x(()=>{var L;return(L=o.value)==null?void 0:L.popperContentRef});let i;const{controlled:l,id:c,open:u,trigger:f,onClose:h,onOpen:p,onShow:v,onHide:m,onBeforeShow:g,onBeforeHide:b}=je(m3,void 0),C=E(()=>n.transition||`${a.namespace.value}-fade-in-linear`),w=E(()=>n.persistent);tn(()=>{i==null||i()});const _=E(()=>d(w)?!0:d(u)),x=E(()=>n.disabled?!1:d(u)),k=E(()=>n.appendTo||s.value),T=E(()=>{var L;return(L=n.style)!=null?L:{}}),R=F(!0),I=()=>{m(),N()&&Fp(document.body,{preventScroll:!0}),R.value=!0},P=()=>{if(d(l))return!0},$=Ss(P,()=>{n.enterable&&g3(d(f),"hover")&&p()}),O=Ss(P,()=>{g3(d(f),"hover")&&h()}),B=()=>{var L,V;(V=(L=o.value)==null?void 0:L.updatePopper)==null||V.call(L),g==null||g()},H=()=>{b==null||b()},J=()=>{v()},Y=()=>{n.virtualTriggering||h()},N=L=>{var V;const z=(V=o.value)==null?void 0:V.popperContentRef,G=(L==null?void 0:L.relatedTarget)||document.activeElement;return z==null?void 0:z.contains(G)};return be(()=>d(u),L=>{L?(R.value=!1,i=Ny(r,()=>{if(d(l))return;fa(d(f)).every(z=>z!=="hover"&&z!=="focus")&&h()},{detectIframe:!0})):i==null||i()},{flush:"post"}),be(()=>n.content,()=>{var L,V;(V=(L=o.value)==null?void 0:L.updatePopper)==null||V.call(L)}),t({contentRef:o,isFocusInsideContent:N}),(L,V)=>(S(),ce(d(Mf),{disabled:!e.teleported,to:k.value},{default:X(()=>[_.value||!R.value?(S(),ce(Cs,{key:0,name:C.value,appear:!w.value,onAfterLeave:I,onBeforeEnter:B,onAfterEnter:J,onBeforeLeave:H,persisted:""},{default:X(()=>[Ct(W(d(RQ),At({id:d(c),ref_key:"contentRef",ref:o},L.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":R.value,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,T.value],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:x.value,"z-index":e.zIndex,loop:e.loop,onMouseenter:d($),onMouseleave:d(O),onBlur:Y,onClose:d(h)}),{default:X(()=>[ue(L.$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","loop","onMouseenter","onMouseleave","onClose"]),[[jt,x.value]])]),_:3},8,["name","appear"])):ie("v-if",!0)]),_:3},8,["disabled","to"]))}});const $Q=["innerHTML"],DQ={key:1};var FQ=K({name:"ElTooltip",__name:"tooltip",props:nQ,emits:sQ,setup(e,{expose:t,emit:n}){const s=e,a=n;LQ();const o=Ee("tooltip"),r=Vs(),i=F(),l=F(),c=()=>{var _;const x=d(i);x&&((_=x.popperInstanceRef)==null||_.update())},u=F(!1),f=F(),{show:h,hide:p,hasUpdateHandler:v}=tQ({indicator:u,toggleReason:f}),{onOpen:m,onClose:g}=kZ({showAfter:sn(s,"showAfter"),hideAfter:sn(s,"hideAfter"),autoClose:sn(s,"autoClose"),open:h,close:p}),b=E(()=>on(s.visible)&&!v.value),C=E(()=>[o.b(),s.popperClass]);Nt(m3,{controlled:b,id:r,open:iu(u),trigger:sn(s,"trigger"),onOpen:m,onClose:g,onToggle:_=>{d(u)?g(_):m(_)},onShow:()=>{a("show",f.value)},onHide:()=>{a("hide",f.value)},onBeforeShow:()=>{a("before-show",f.value)},onBeforeHide:()=>{a("before-hide",f.value)},updatePopper:c}),be(()=>s.disabled,_=>{_&&u.value&&(u.value=!1)});const w=_=>{var x;return(x=l.value)==null?void 0:x.isFocusInsideContent(_)};return F4(()=>u.value&&p()),tn(()=>{f.value=void 0}),t({popperRef:i,contentRef:l,isFocusInsideContent:w,updatePopper:c,onOpen:m,onClose:g,hide:p}),(_,x)=>(S(),ce(d(_k),{ref_key:"popperRef",ref:i,role:e.role},{default:X(()=>[W(IQ,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering,"focus-on-target":e.focusOnTarget},{default:X(()=>[_.$slots.default?ue(_.$slots,"default",{key:0}):ie("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),W(NQ,{ref_key:"contentRef",ref:l,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":C.value,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo,loop:e.loop},{default:X(()=>[ue(_.$slots,"content",{},()=>[e.rawContent?(S(),M("span",{key:0,innerHTML:e.content},null,8,$Q)):(S(),M("span",DQ,ge(e.content),1))]),e.showArrow?(S(),ce(d(oQ),{key:0})):ie("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","loop"])]),_:3},8,["role"]))}});const Ps=wt(FQ),BQ=["aria-expanded","aria-owns"],VQ={key:0},zQ=["id","aria-selected","onClick"],xk="ElAutocomplete";var HQ=K({name:xk,inheritAttrs:!1,__name:"autocomplete",props:AZ,emits:TZ,setup(e,{expose:t,emit:n}){const s=e,a=n,o=E(()=>Yi(s,Object.keys($p))),r=Hi(),i=Dn(),l=Ee("autocomplete"),c=F(),u=F(),f=F(),h=F();let p=!1,v=!1;const m=F([]),g=F(-1),b=F(""),C=F(!1),w=F(!1),_=F(!1),x=Vs(),k=E(()=>r.style),T=E(()=>(m.value.length>0||_.value)&&C.value),R=E(()=>!s.hideLoading&&_.value),I=E(()=>c.value?Array.from(c.value.$el.querySelectorAll("input")):[]),P=()=>{T.value&&(b.value=`${c.value.$el.offsetWidth}px`)},$=()=>{g.value=-1},O=async Z=>{if(w.value)return;const j=ae=>{_.value=!1,!w.value&&(Ae(ae)?(m.value=ae,g.value=s.highlightFirstItem?0:-1):ns(xk,"autocomplete suggestions must be an array"))};if(_.value=!0,Ae(s.fetchSuggestions))j(s.fetchSuggestions);else{const ae=await s.fetchSuggestions(Z,j);Ae(ae)&&j(ae)}},B=E(()=>s.debounce),H=yp(O,B),J=Z=>{const j=!!Z;if(a(is,Z),a(mt,Z),w.value=!1,C.value||(C.value=j),!s.triggerOnFocus&&!Z){w.value=!0,m.value=[];return}H(Z)},Y=Z=>{var j;i.value||(((j=Z.target)==null?void 0:j.tagName)!=="INPUT"||I.value.includes(document.activeElement))&&(C.value=!0)},N=Z=>{a(Dt,Z)},L=Z=>{var j;if(v)v=!1;else{C.value=!0,a("focus",Z);const ae=(j=s.modelValue)!=null?j:"";s.triggerOnFocus&&!p&&H(String(ae))}},V=Z=>{setTimeout(()=>{var j;if((j=f.value)!=null&&j.isFocusInsideContent()){v=!0;return}C.value&&U(),a("blur",Z)})},z=()=>{C.value=!1,a(mt,""),a("clear")},G=async()=>{var Z;(Z=c.value)!=null&&Z.isComposing||(T.value&&g.value>=0&&g.value<m.value.length?de(m.value[g.value]):(s.selectWhenUnmatched&&(a("select",{value:s.modelValue}),m.value=[],g.value=-1),C.value=!0,H(String(s.modelValue))))},Q=Z=>{T.value&&(Z.preventDefault(),Z.stopPropagation(),U())},U=()=>{C.value=!1},ee=()=>{var Z;(Z=c.value)==null||Z.focus()},se=()=>{var Z;(Z=c.value)==null||Z.blur()},de=async Z=>{a(is,Z[s.valueKey]),a(mt,Z[s.valueKey]),a("select",Z),m.value=[],g.value=-1},te=Z=>{var j,ae;if(!T.value||_.value)return;if(Z<0){if(!s.loopNavigation){g.value=-1;return}Z=m.value.length-1}Z>=m.value.length&&(Z=s.loopNavigation?0:m.value.length-1);const[fe,we]=pe(),Se=we[Z],ke=fe.scrollTop,{offsetTop:Oe,scrollHeight:Be}=Se;Oe+Be>ke+fe.clientHeight&&(fe.scrollTop=Oe+Be-fe.clientHeight),Oe<ke&&(fe.scrollTop=Oe),g.value=Z,(ae=(j=c.value)==null?void 0:j.ref)==null||ae.setAttribute("aria-activedescendant",`${x.value}-item-${g.value}`)},pe=()=>{const Z=u.value.querySelector(`.${l.be("suggestion","wrap")}`),j=Z.querySelectorAll(`.${l.be("suggestion","list")} li`);return[Z,j]},he=Ny(h,()=>{var Z;(Z=f.value)!=null&&Z.isFocusInsideContent()||T.value&&U()}),le=Z=>{switch(un(Z)){case Te.up:Z.preventDefault(),te(g.value-1);break;case Te.down:Z.preventDefault(),te(g.value+1);break;case Te.enter:case Te.numpadEnter:Z.preventDefault(),G();break;case Te.tab:U();break;case Te.esc:Q(Z);break;case Te.home:Z.preventDefault(),te(0);break;case Te.end:Z.preventDefault(),te(m.value.length-1);break;case Te.pageUp:Z.preventDefault(),te(Math.max(0,g.value-10));break;case Te.pageDown:Z.preventDefault(),te(Math.min(m.value.length-1,g.value+10));break}};return tn(()=>{he==null||he()}),Mt(()=>{var Z;const j=(Z=c.value)==null?void 0:Z.ref;j&&([{key:"role",value:"textbox"},{key:"aria-autocomplete",value:"list"},{key:"aria-controls",value:x.value},{key:"aria-activedescendant",value:`${x.value}-item-${g.value}`}].forEach(({key:ae,value:fe})=>j.setAttribute(ae,fe)),p=j.hasAttribute("readonly"))}),t({highlightedIndex:g,activated:C,loading:_,inputRef:c,popperRef:f,suggestions:m,handleSelect:de,handleKeyEnter:G,focus:ee,blur:se,close:U,highlight:te,getData:O}),(Z,j)=>(S(),ce(d(Ps),{ref_key:"popperRef",ref:f,visible:T.value,placement:e.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[d(l).e("popper"),e.popperClass],"popper-style":e.popperStyle,teleported:e.teleported,"append-to":e.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${d(l).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:P,onHide:$},{content:X(()=>[A("div",{ref_key:"regionRef",ref:u,class:D([d(l).b("suggestion"),d(l).is("loading",R.value)]),style:et({[e.fitInputWidth?"width":"minWidth"]:b.value,outline:"none"}),role:"region"},[Z.$slots.header?(S(),M("div",{key:0,class:D(d(l).be("suggestion","header")),onClick:j[0]||(j[0]=ht(()=>{},["stop"]))},[ue(Z.$slots,"header")],2)):ie("v-if",!0),W(d(gr),{id:d(x),tag:"ul","wrap-class":d(l).be("suggestion","wrap"),"view-class":d(l).be("suggestion","list"),role:"listbox"},{default:X(()=>[R.value?(S(),M("li",VQ,[ue(Z.$slots,"loading",{},()=>[W(d(Je),{class:D(d(l).is("loading"))},{default:X(()=>[W(d(Bs))]),_:1},8,["class"])])])):(S(!0),M(He,{key:1},Et(m.value,(ae,fe)=>(S(),M("li",{id:`${d(x)}-item-${fe}`,key:fe,class:D({highlighted:g.value===fe}),role:"option","aria-selected":g.value===fe,onClick:we=>de(ae)},[ue(Z.$slots,"default",{item:ae},()=>[We(ge(ae[e.valueKey]),1)])],10,zQ))),128))]),_:3},8,["id","wrap-class","view-class"]),Z.$slots.footer?(S(),M("div",{key:1,class:D(d(l).be("suggestion","footer")),onClick:j[1]||(j[1]=ht(()=>{},["stop"]))},[ue(Z.$slots,"footer")],2)):ie("v-if",!0)],6)]),default:X(()=>[A("div",{ref_key:"listboxRef",ref:h,class:D([d(l).b(),Z.$attrs.class]),style:et(k.value),role:"combobox","aria-haspopup":"listbox","aria-expanded":T.value,"aria-owns":d(x)},[W(d(da),At({ref_key:"inputRef",ref:c},At(o.value,Z.$attrs),{"model-value":e.modelValue,disabled:d(i),onInput:J,onChange:N,onFocus:L,onBlur:V,onClear:z,onKeydown:le,onMousedown:Y}),Ta({_:2},[Z.$slots.prepend?{name:"prepend",fn:X(()=>[ue(Z.$slots,"prepend")]),key:"0"}:void 0,Z.$slots.append?{name:"append",fn:X(()=>[ue(Z.$slots,"append")]),key:"1"}:void 0,Z.$slots.prefix?{name:"prefix",fn:X(()=>[ue(Z.$slots,"prefix")]),key:"2"}:void 0,Z.$slots.suffix?{name:"suffix",fn:X(()=>[ue(Z.$slots,"suffix")]),key:"3"}:void 0]),1040,["model-value","disabled"])],14,BQ)]),_:3},8,["visible","placement","popper-class","popper-style","teleported","append-to","transition"]))}});const WQ=wt(HQ),jQ=Me({size:{type:[Number,String],values:vr,validator:e=>st(e)},shape:{type:String,values:["circle","square"]},icon:{type:rn},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:re(String),default:"cover"}}),KQ={error:e=>e instanceof Event},kk=Symbol("avatarGroupContextKey"),UQ=["src","alt","srcset"];var Ek=K({name:"ElAvatar",__name:"avatar",props:jQ,emits:KQ,setup(e,{emit:t}){const n=e,s=t,a=je(kk,void 0),o=Ee("avatar"),r=F(!1),i=E(()=>{var p;return(p=n.size)!=null?p:a==null?void 0:a.size}),l=E(()=>{var p,v;return(v=(p=n.shape)!=null?p:a==null?void 0:a.shape)!=null?v:"circle"}),c=E(()=>{const{icon:p}=n,v=[o.b()];return Xe(i.value)&&v.push(o.m(i.value)),p&&v.push(o.m("icon")),l.value&&v.push(o.m(l.value)),v}),u=E(()=>st(i.value)?o.cssVarBlock({size:Nn(i.value)}):void 0),f=E(()=>({objectFit:n.fit}));be(()=>[n.src,n.srcSet],()=>r.value=!1);function h(p){r.value=!0,s("error",p)}return(p,v)=>(S(),M("span",{class:D(c.value),style:et(u.value)},[(e.src||e.srcSet)&&!r.value?(S(),M("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:et(f.value),onError:h},null,44,UQ)):e.icon?(S(),ce(d(Je),{key:1},{default:X(()=>[(S(),ce(kt(e.icon)))]),_:1})):ue(p.$slots,"default",{key:2})],6))}});const qQ={size:{type:re([Number,String]),values:vr,validator:e=>st(e)},shape:{type:re(String),values:["circle","square"]},collapseAvatars:Boolean,collapseAvatarsTooltip:Boolean,maxCollapseAvatars:{type:Number,default:1},effect:{type:re(String),default:"light"},placement:{type:re(String),values:si,default:"top"},popperClass:ln.popperClass,popperStyle:ln.popperStyle,collapseClass:String,collapseStyle:{type:re([String,Array,Object])}};var Ak=K({name:"ElAvatarGroup",props:qQ,setup(e,{slots:t}){const n=Ee("avatar-group");return Nt(kk,Gt({size:sn(e,"size"),shape:sn(e,"shape")})),()=>{var s,a;const o=uo((a=(s=t.default)==null?void 0:s.call(t))!=null?a:[]);let r=o;if(e.collapseAvatars&&o.length>e.maxCollapseAvatars){r=o.slice(0,e.maxCollapseAvatars);const l=o.slice(e.maxCollapseAvatars);r.push(W(Ps,{popperClass:e.popperClass,popperStyle:e.popperStyle,placement:e.placement,effect:e.effect,disabled:!e.collapseAvatarsTooltip},{default:()=>W(Ek,{size:e.size,shape:e.shape,class:e.collapseClass,style:e.collapseStyle},{default:()=>[We("+ "),l.length]}),content:()=>W("div",{class:n.e("collapse-avatars")},[l.map((c,u)=>{var f;return vn(c)?Yr(c,{key:(f=c.key)!=null?f:u}):c})])}))}return W("div",{class:n.b()},[r])}}});const GQ=wt(Ek,{AvatarGroup:Ak}),YQ=In(Ak),XQ={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},JQ={click:e=>e instanceof MouseEvent},ZQ=(e,t,n)=>{const s=bn(),a=bn(),o=F(!1),r=()=>{s.value&&(o.value=s.value.scrollTop>=e.visibilityHeight)},i=c=>{var u;(u=s.value)==null||u.scrollTo({top:0,behavior:"smooth"}),t("click",c)},l=kx(r,300,!0);return an(a,"scroll",l),Mt(()=>{var c;a.value=document,s.value=document.documentElement,e.target&&(s.value=(c=document.querySelector(e.target))!=null?c:void 0,s.value||ns(n,`target does not exist: ${e.target}`),a.value=s.value),r()}),{visible:o,handleClick:i}},Tk="ElBacktop";var QQ=K({name:Tk,__name:"backtop",props:XQ,emits:JQ,setup(e,{emit:t}){const n=e,s=t,a=Ee("backtop"),{handleClick:o,visible:r}=ZQ(n,s,Tk),i=E(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(l,c)=>(S(),ce(Cs,{name:`${d(a).namespace.value}-fade-in`},{default:X(()=>[d(r)?(S(),M("div",{key:0,style:et(i.value),class:D(d(a).b()),onClick:c[0]||(c[0]=ht((...u)=>d(o)&&d(o)(...u),["stop"]))},[ue(l.$slots,"default",{},()=>[W(d(Je),{class:D(d(a).e("icon"))},{default:X(()=>[W(d(Gx))]),_:1},8,["class"])])],6)):ie("v-if",!0)]),_:3},8,["name"]))}});const eee=wt(QQ),tee=Me({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:re([String,Object,Array])},offset:{type:re(Array),default:()=>[0,0]},badgeClass:{type:String}});var nee=K({name:"ElBadge",__name:"badge",props:tee,setup(e,{expose:t}){const n=e,s=Ee("badge"),a=E(()=>n.isDot?"":st(n.value)&&st(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),o=E(()=>{var r;return[{backgroundColor:n.color,marginRight:Nn(-n.offset[0]),marginTop:Nn(n.offset[1])},(r=n.badgeStyle)!=null?r:{}]});return t({content:a}),(r,i)=>(S(),M("div",{class:D(d(s).b())},[ue(r.$slots,"default"),W(Cs,{name:`${d(s).namespace.value}-zoom-in-center`,persisted:""},{default:X(()=>[Ct(A("sup",{class:D([d(s).e("content"),d(s).em("content",e.type),d(s).is("fixed",!!r.$slots.default),d(s).is("dot",e.isDot),d(s).is("hide-zero",!e.showZero&&e.value===0),e.badgeClass]),style:et(o.value)},[ue(r.$slots,"content",{value:a.value},()=>[We(ge(a.value),1)])],6),[[jt,!e.hidden&&(a.value||e.isDot||r.$slots.content)]])]),_:3},8,["name"])],2))}});const Mk=wt(nee),see=Me({separator:{type:String,default:"/"},separatorIcon:{type:rn}}),Pk=Symbol("breadcrumbKey"),aee=["aria-label"];var oee=K({name:"ElBreadcrumb",__name:"breadcrumb",props:see,setup(e){const{t}=Ft(),n=e,s=Ee("breadcrumb"),a=F();return Nt(Pk,n),Mt(()=>{const o=a.value.querySelectorAll(`.${s.e("item")}`);o.length&&o[o.length-1].setAttribute("aria-current","page")}),(o,r)=>(S(),M("div",{ref_key:"breadcrumb",ref:a,class:D(d(s).b()),"aria-label":d(t)("el.breadcrumb.label"),role:"navigation"},[ue(o.$slots,"default")],10,aee))}});const ree=Me({to:{type:re([String,Object]),default:""},replace:Boolean});var Rk=K({name:"ElBreadcrumbItem",__name:"breadcrumb-item",props:ree,setup(e){const t=e,n=Tt(),s=je(Pk,void 0),a=Ee("breadcrumb"),o=n.appContext.config.globalProperties.$router,r=()=>{!t.to||!o||(t.replace?o.replace(t.to):o.push(t.to))};return(i,l)=>{var c,u;return S(),M("span",{class:D(d(a).e("item"))},[A("span",{class:D([d(a).e("inner"),d(a).is("link",!!e.to)]),role:"link",onClick:r},[ue(i.$slots,"default")],2),(c=d(s))!=null&&c.separatorIcon?(S(),ce(d(Je),{key:0,class:D(d(a).e("separator"))},{default:X(()=>[(S(),ce(kt(d(s).separatorIcon)))]),_:1},8,["class"])):(S(),M("span",{key:1,class:D(d(a).e("separator")),role:"presentation"},ge((u=d(s))==null?void 0:u.separator),3))],2)}}});const iee=wt(oee,{BreadcrumbItem:Rk}),lee=In(Rk),b3=["default","primary","success","warning","info","danger","text",""],y3=Me({size:hs,disabled:{type:Boolean,default:void 0},type:{type:String,values:b3,default:""},icon:{type:rn},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:rn,default:()=>Bs},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:re([String,Object]),default:"button"}}),cee={click:e=>e instanceof MouseEvent},Ik=Symbol("buttonGroupContextKey"),li=({from:e,replacement:t,scope:n,version:s,ref:a,type:o="API"},r)=>{be(()=>d(r),i=>{},{immediate:!0})},uee=(e,t)=>{li({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},E(()=>e.type==="text"));const n=je(Ik,void 0),s=Tf("button"),{form:a}=Ms(),o=ls(E(()=>n==null?void 0:n.size)),r=Dn(),i=F(),l=Gn(),c=E(()=>{var b;return e.type||(n==null?void 0:n.type)||((b=s.value)==null?void 0:b.type)||""}),u=E(()=>{var b,C,w;return(w=(C=e.autoInsertSpace)!=null?C:(b=s.value)==null?void 0:b.autoInsertSpace)!=null?w:!1}),f=E(()=>{var b,C,w;return(w=(C=e.plain)!=null?C:(b=s.value)==null?void 0:b.plain)!=null?w:!1}),h=E(()=>{var b,C,w;return(w=(C=e.round)!=null?C:(b=s.value)==null?void 0:b.round)!=null?w:!1}),p=E(()=>{var b,C,w;return(w=(C=e.text)!=null?C:(b=s.value)==null?void 0:b.text)!=null?w:!1}),v=E(()=>e.tag==="button"?{ariaDisabled:r.value||e.loading,disabled:r.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),m=E(()=>{var b;const C=(b=l.default)==null?void 0:b.call(l);if(u.value&&(C==null?void 0:C.length)===1){const w=C[0];if((w==null?void 0:w.type)===mf){const _=w.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(_.trim())}}return!1});return{_disabled:r,_size:o,_type:c,_ref:i,_props:v,_plain:f,_round:h,_text:p,shouldAddSpace:m,handleClick:b=>{if(r.value||e.loading){b.stopPropagation();return}e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",b)}}};function Ys(e,t){dee(e)&&(e="100%");var n=fee(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 Kg(e){return Math.min(1,Math.max(0,e))}function dee(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function fee(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Ok(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ug(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Au(e){return e.length===1?"0"+e:String(e)}function hee(e,t,n){return{r:Ys(e,255)*255,g:Ys(t,255)*255,b:Ys(n,255)*255}}function Lk(e,t,n){e=Ys(e,255),t=Ys(t,255),n=Ys(n,255);var s=Math.max(e,t,n),a=Math.min(e,t,n),o=0,r=0,i=(s+a)/2;if(s===a)r=0,o=0;else{var l=s-a;switch(r=i>.5?l/(2-s-a):l/(s+a),s){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:r,l:i}}function w3(e,t,n){return n<0&&(n+=1),n>1&&(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 pee(e,t,n){var s,a,o;if(e=Ys(e,360),t=Ys(t,100),n=Ys(n,100),t===0)a=n,o=n,s=n;else{var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;s=w3(i,r,e+1/3),a=w3(i,r,e),o=w3(i,r,e-1/3)}return{r:s*255,g:a*255,b:o*255}}function Nk(e,t,n){e=Ys(e,255),t=Ys(t,255),n=Ys(n,255);var s=Math.max(e,t,n),a=Math.min(e,t,n),o=0,r=s,i=s-a,l=s===0?0:i/s;if(s===a)o=0;else{switch(s){case e:o=(t-n)/i+(t<n?6:0);break;case t:o=(n-e)/i+2;break;case n:o=(e-t)/i+4;break}o/=6}return{h:o,s:l,v:r}}function vee(e,t,n){e=Ys(e,360)*6,t=Ys(t,100),n=Ys(n,100);var s=Math.floor(e),a=e-s,o=n*(1-t),r=n*(1-a*t),i=n*(1-(1-a)*t),l=s%6,c=[n,r,o,o,i,n][l],u=[i,n,n,r,o,o][l],f=[o,o,i,n,n,r][l];return{r:c*255,g:u*255,b:f*255}}function $k(e,t,n,s){var a=[Au(Math.round(e).toString(16)),Au(Math.round(t).toString(16)),Au(Math.round(n).toString(16))];return s&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function mee(e,t,n,s,a){var o=[Au(Math.round(e).toString(16)),Au(Math.round(t).toString(16)),Au(Math.round(n).toString(16)),Au(gee(s))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function gee(e){return Math.round(parseFloat(e)*255).toString(16)}function Dk(e){return po(e)/255}function po(e){return parseInt(e,16)}function bee(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var _3={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 yee(e){var t={r:0,g:0,b:0},n=1,s=null,a=null,o=null,r=!1,i=!1;return typeof e=="string"&&(e=Cee(e)),typeof e=="object"&&(sl(e.r)&&sl(e.g)&&sl(e.b)?(t=hee(e.r,e.g,e.b),r=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):sl(e.h)&&sl(e.s)&&sl(e.v)?(s=Ug(e.s),a=Ug(e.v),t=vee(e.h,s,a),r=!0,i="hsv"):sl(e.h)&&sl(e.s)&&sl(e.l)&&(s=Ug(e.s),o=Ug(e.l),t=pee(e.h,s,o),r=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Ok(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 wee="[-\\+]?\\d+%?",_ee="[-\\+]?\\d*\\.\\d+%?",ic="(?:".concat(_ee,")|(?:").concat(wee,")"),C3="[\\s|\\(]+(".concat(ic,")[,|\\s]+(").concat(ic,")[,|\\s]+(").concat(ic,")\\s*\\)?"),S3="[\\s|\\(]+(".concat(ic,")[,|\\s]+(").concat(ic,")[,|\\s]+(").concat(ic,")[,|\\s]+(").concat(ic,")\\s*\\)?"),br={CSS_UNIT:new RegExp(ic),rgb:new RegExp("rgb"+C3),rgba:new RegExp("rgba"+S3),hsl:new RegExp("hsl"+C3),hsla:new RegExp("hsla"+S3),hsv:new RegExp("hsv"+C3),hsva:new RegExp("hsva"+S3),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 Cee(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(_3[e])e=_3[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=br.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=br.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=br.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=br.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=br.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=br.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=br.hex8.exec(e),n?{r:po(n[1]),g:po(n[2]),b:po(n[3]),a:Dk(n[4]),format:t?"name":"hex8"}:(n=br.hex6.exec(e),n?{r:po(n[1]),g:po(n[2]),b:po(n[3]),format:t?"name":"hex"}:(n=br.hex4.exec(e),n?{r:po(n[1]+n[1]),g:po(n[2]+n[2]),b:po(n[3]+n[3]),a:Dk(n[4]+n[4]),format:t?"name":"hex8"}:(n=br.hex3.exec(e),n?{r:po(n[1]+n[1]),g:po(n[2]+n[2]),b:po(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function sl(e){return!!br.CSS_UNIT.exec(String(e))}var Vf=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var s;if(t instanceof e)return t;typeof t=="number"&&(t=bee(t)),this.originalInput=t;var a=yee(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(s=n.format)!==null&&s!==void 0?s:a.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=a.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,s,a,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?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),i<=.03928?a=i/12.92:a=Math.pow((i+.055)/1.055,2.4),.2126*n+.7152*s+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Ok(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=Nk(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=Nk(this.r,this.g,this.b),n=Math.round(t.h*360),s=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(s,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(s,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Lk(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=Lk(this.r,this.g,this.b),n=Math.round(t.h*360),s=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(s,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(s,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),$k(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),mee(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),s=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(s,")"):"rgba(".concat(t,", ").concat(n,", ").concat(s,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Ys(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(Ys(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="#"+$k(this.r,this.g,this.b,!1),n=0,s=Object.entries(_3);n<s.length;n++){var a=s[n],o=a[0],r=a[1];if(t===r)return o}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var s=!1,a=this.a<1&&this.a>=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(s=this.toRgbString()),t==="prgb"&&(s=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(s=this.toHexString()),t==="hex3"&&(s=this.toHexString(!0)),t==="hex4"&&(s=this.toHex8String(!0)),t==="hex8"&&(s=this.toHex8String()),t==="name"&&(s=this.toName()),t==="hsl"&&(s=this.toHslString()),t==="hsv"&&(s=this.toHsvString()),s||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=Kg(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=Kg(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=Kg(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=Kg(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),s=(n.h+t)%360;return n.h=s<0?360+s:s,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var s=this.toRgb(),a=new e(t).toRgb(),o=n/100,r={r:(a.r-s.r)*o+s.r,g:(a.g-s.g)*o+s.g,b:(a.b-s.b)*o+s.b,a:(a.a-s.a)*o+s.a};return new e(r)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var s=this.toHsl(),a=360/n,o=[this];for(s.h=(s.h-(a*t>>1)+720)%360;--t;)s.h=(s.h+a)%360,o.push(new e(s));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(),s=n.h,a=n.s,o=n.v,r=[],i=1/t;t--;)r.push(new e({h:s,s:a,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(),s=new e(t).toRgb(),a=n.a+s.a*(1-n.a);return new e({r:(n.r*n.a+s.r*s.a*(1-n.a))/a,g:(n.g*n.a+s.g*s.a*(1-n.a))/a,b:(n.b*n.a+s.b*s.a*(1-n.a))/a,a})},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(),s=n.h,a=[this],o=360/t,r=1;r<t;r++)a.push(new e({h:(s+r*o)%360,s:n.s,l:n.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function lc(e,t=20){return e.mix("#141414",t).toString()}function See(e){const t=Dn(),n=Ee("button");return E(()=>{let s={},a=e.color;if(a){const o=a.match(/var\((.*?)\)/);o&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(o[1]));const r=new Vf(a),i=e.dark?r.tint(20).toString():lc(r,20);if(e.plain)s=n.cssVarBlock({"bg-color":e.dark?lc(r,90):r.tint(90).toString(),"text-color":a,"border-color":e.dark?lc(r,50):r.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(s[n.cssVarBlockName("disabled-bg-color")]=e.dark?lc(r,90):r.tint(90).toString(),s[n.cssVarBlockName("disabled-text-color")]=e.dark?lc(r,50):r.tint(50).toString(),s[n.cssVarBlockName("disabled-border-color")]=e.dark?lc(r,80):r.tint(80).toString());else{const l=e.dark?lc(r,30):r.tint(30).toString(),c=r.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(s=n.cssVarBlock({"bg-color":a,"text-color":c,"border-color":a,"hover-bg-color":l,"hover-text-color":c,"hover-border-color":l,"active-bg-color":i,"active-border-color":i}),t.value){const u=e.dark?lc(r,50):r.tint(50).toString();s[n.cssVarBlockName("disabled-bg-color")]=u,s[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,s[n.cssVarBlockName("disabled-border-color")]=u}}}return s})}var xee=K({name:"ElButton",__name:"button",props:y3,emits:cee,setup(e,{expose:t,emit:n}){const s=e,a=n,o=See(s),r=Ee("button"),{_ref:i,_size:l,_type:c,_disabled:u,_props:f,_plain:h,_round:p,_text:v,shouldAddSpace:m,handleClick:g}=uee(s,a),b=E(()=>[r.b(),r.m(c.value),r.m(l.value),r.is("disabled",u.value),r.is("loading",s.loading),r.is("plain",h.value),r.is("round",p.value),r.is("circle",s.circle),r.is("text",v.value),r.is("link",s.link),r.is("has-bg",s.bg)]);return t({ref:i,size:l,type:c,disabled:u,shouldAddSpace:m}),(C,w)=>(S(),ce(kt(e.tag),At({ref_key:"_ref",ref:i},d(f),{class:b.value,style:d(o),onClick:d(g)}),{default:X(()=>[e.loading?(S(),M(He,{key:0},[C.$slots.loading?ue(C.$slots,"loading",{key:0}):(S(),ce(d(Je),{key:1,class:D(d(r).is("loading"))},{default:X(()=>[(S(),ce(kt(e.loadingIcon)))]),_:1},8,["class"]))],64)):e.icon||C.$slots.icon?(S(),ce(d(Je),{key:1},{default:X(()=>[e.icon?(S(),ce(kt(e.icon),{key:0})):ue(C.$slots,"icon",{key:1})]),_:3})):ie("v-if",!0),C.$slots.default?(S(),M("span",{key:2,class:D({[d(r).em("text","expand")]:d(m)})},[ue(C.$slots,"default")],2)):ie("v-if",!0)]),_:3},16,["class","style","onClick"]))}});const kee={size:y3.size,type:y3.type,direction:{type:re(String),values:["horizontal","vertical"],default:"horizontal"}};var Fk=K({name:"ElButtonGroup",__name:"button-group",props:kee,setup(e){const t=e;Nt(Ik,Gt({size:sn(t,"size"),type:sn(t,"type")}));const n=Ee("button");return(s,a)=>(S(),M("div",{class:D([d(n).b("group"),d(n).bm("group",t.direction)])},[ue(s.$slots,"default")],2))}});const xs=wt(xee,{ButtonGroup:Fk}),Bk=In(Fk),Eee=e=>Ae(e)&&e.length===2&&e.every(t=>Yl(t)),Aee=Me({modelValue:{type:Date},range:{type:re(Array),validator:Eee},controllerType:{type:String,values:["button","select"],default:"button"},formatter:{type:re(Function)}}),Tee={[mt]:e=>Yl(e),[is]:e=>Yl(e)};var al=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ol(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vk={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(al,function(){var n=1e3,s=6e4,a=36e5,o="millisecond",r="second",i="minute",l="hour",c="day",u="week",f="month",h="quarter",p="year",v="date",m="Invalid Date",g=/^(\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(H){var J=["th","st","nd","rd"],Y=H%100;return"["+H+(J[(Y-20)%10]||J[Y]||J[0])+"]"}},w=function(H,J,Y){var N=String(H);return!N||N.length>=J?H:""+Array(J+1-N.length).join(Y)+H},_={s:w,z:function(H){var J=-H.utcOffset(),Y=Math.abs(J),N=Math.floor(Y/60),L=Y%60;return(J<=0?"+":"-")+w(N,2,"0")+":"+w(L,2,"0")},m:function H(J,Y){if(J.date()<Y.date())return-H(Y,J);var N=12*(Y.year()-J.year())+(Y.month()-J.month()),L=J.clone().add(N,f),V=Y-L<0,z=J.clone().add(N+(V?-1:1),f);return+(-(N+(Y-L)/(V?L-z:z-L))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:f,y:p,w:u,d:c,D:v,h:l,m:i,s:r,ms:o,Q:h}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},x="en",k={};k[x]=C;var T="$isDayjsObject",R=function(H){return H instanceof O||!(!H||!H[T])},I=function H(J,Y,N){var L;if(!J)return x;if(typeof J=="string"){var V=J.toLowerCase();k[V]&&(L=V),Y&&(k[V]=Y,L=V);var z=J.split("-");if(!L&&z.length>1)return H(z[0])}else{var G=J.name;k[G]=J,L=G}return!N&&L&&(x=L),L||!N&&x},P=function(H,J){if(R(H))return H.clone();var Y=typeof J=="object"?J:{};return Y.date=H,Y.args=arguments,new O(Y)},$=_;$.l=I,$.i=R,$.w=function(H,J){return P(H,{locale:J.$L,utc:J.$u,x:J.$x,$offset:J.$offset})};var O=function(){function H(Y){this.$L=I(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[T]=!0}var J=H.prototype;return J.parse=function(Y){this.$d=function(N){var L=N.date,V=N.utc;if(L===null)return new Date(NaN);if($.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var z=L.match(g);if(z){var G=z[2]-1||0,Q=(z[7]||"0").substring(0,3);return V?new Date(Date.UTC(z[1],G,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Q)):new Date(z[1],G,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Q)}}return new Date(L)}(Y),this.init()},J.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},J.$utils=function(){return $},J.isValid=function(){return this.$d.toString()!==m},J.isSame=function(Y,N){var L=P(Y);return this.startOf(N)<=L&&L<=this.endOf(N)},J.isAfter=function(Y,N){return P(Y)<this.startOf(N)},J.isBefore=function(Y,N){return this.endOf(N)<P(Y)},J.$g=function(Y,N,L){return $.u(Y)?this[N]:this.set(L,Y)},J.unix=function(){return Math.floor(this.valueOf()/1e3)},J.valueOf=function(){return this.$d.getTime()},J.startOf=function(Y,N){var L=this,V=!!$.u(N)||N,z=$.p(Y),G=function(he,le){var Z=$.w(L.$u?Date.UTC(L.$y,le,he):new Date(L.$y,le,he),L);return V?Z:Z.endOf(c)},Q=function(he,le){return $.w(L.toDate()[he].apply(L.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(le)),L)},U=this.$W,ee=this.$M,se=this.$D,de="set"+(this.$u?"UTC":"");switch(z){case p:return V?G(1,0):G(31,11);case f:return V?G(1,ee):G(0,ee+1);case u:var te=this.$locale().weekStart||0,pe=(U<te?U+7:U)-te;return G(V?se-pe:se+(6-pe),ee);case c:case v:return Q(de+"Hours",0);case l:return Q(de+"Minutes",1);case i:return Q(de+"Seconds",2);case r:return Q(de+"Milliseconds",3);default:return this.clone()}},J.endOf=function(Y){return this.startOf(Y,!1)},J.$set=function(Y,N){var L,V=$.p(Y),z="set"+(this.$u?"UTC":""),G=(L={},L[c]=z+"Date",L[v]=z+"Date",L[f]=z+"Month",L[p]=z+"FullYear",L[l]=z+"Hours",L[i]=z+"Minutes",L[r]=z+"Seconds",L[o]=z+"Milliseconds",L)[V],Q=V===c?this.$D+(N-this.$W):N;if(V===f||V===p){var U=this.clone().set(v,1);U.$d[G](Q),U.init(),this.$d=U.set(v,Math.min(this.$D,U.daysInMonth())).$d}else G&&this.$d[G](Q);return this.init(),this},J.set=function(Y,N){return this.clone().$set(Y,N)},J.get=function(Y){return this[$.p(Y)]()},J.add=function(Y,N){var L,V=this;Y=Number(Y);var z=$.p(N),G=function(ee){var se=P(V);return $.w(se.date(se.date()+Math.round(ee*Y)),V)};if(z===f)return this.set(f,this.$M+Y);if(z===p)return this.set(p,this.$y+Y);if(z===c)return G(1);if(z===u)return G(7);var Q=(L={},L[i]=s,L[l]=a,L[r]=n,L)[z]||1,U=this.$d.getTime()+Y*Q;return $.w(U,this)},J.subtract=function(Y,N){return this.add(-1*Y,N)},J.format=function(Y){var N=this,L=this.$locale();if(!this.isValid())return L.invalidDate||m;var V=Y||"YYYY-MM-DDTHH:mm:ssZ",z=$.z(this),G=this.$H,Q=this.$m,U=this.$M,ee=L.weekdays,se=L.months,de=L.meridiem,te=function(le,Z,j,ae){return le&&(le[Z]||le(N,V))||j[Z].slice(0,ae)},pe=function(le){return $.s(G%12||12,le,"0")},he=de||function(le,Z,j){var ae=le<12?"AM":"PM";return j?ae.toLowerCase():ae};return V.replace(b,function(le,Z){return Z||function(j){switch(j){case"YY":return String(N.$y).slice(-2);case"YYYY":return $.s(N.$y,4,"0");case"M":return U+1;case"MM":return $.s(U+1,2,"0");case"MMM":return te(L.monthsShort,U,se,3);case"MMMM":return te(se,U);case"D":return N.$D;case"DD":return $.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return te(L.weekdaysMin,N.$W,ee,2);case"ddd":return te(L.weekdaysShort,N.$W,ee,3);case"dddd":return ee[N.$W];case"H":return String(G);case"HH":return $.s(G,2,"0");case"h":return pe(1);case"hh":return pe(2);case"a":return he(G,Q,!0);case"A":return he(G,Q,!1);case"m":return String(Q);case"mm":return $.s(Q,2,"0");case"s":return String(N.$s);case"ss":return $.s(N.$s,2,"0");case"SSS":return $.s(N.$ms,3,"0");case"Z":return z}return null}(le)||z.replace(":","")})},J.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},J.diff=function(Y,N,L){var V,z=this,G=$.p(N),Q=P(Y),U=(Q.utcOffset()-this.utcOffset())*s,ee=this-Q,se=function(){return $.m(z,Q)};switch(G){case p:V=se()/12;break;case f:V=se();break;case h:V=se()/3;break;case u:V=(ee-U)/6048e5;break;case c:V=(ee-U)/864e5;break;case l:V=ee/a;break;case i:V=ee/s;break;case r:V=ee/n;break;default:V=ee}return L?V:$.a(V)},J.daysInMonth=function(){return this.endOf(f).$D},J.$locale=function(){return k[this.$L]},J.locale=function(Y,N){if(!Y)return this.$L;var L=this.clone(),V=I(Y,N,!0);return V&&(L.$L=V),L},J.clone=function(){return $.w(this.$d,this)},J.toDate=function(){return new Date(this.valueOf())},J.toJSON=function(){return this.isValid()?this.toISOString():null},J.toISOString=function(){return this.$d.toISOString()},J.toString=function(){return this.$d.toUTCString()},H}(),B=O.prototype;return P.prototype=B,[["$ms",o],["$s",r],["$m",i],["$H",l],["$W",c],["$M",f],["$y",p],["$D",v]].forEach(function(H){B[H[1]]=function(J){return this.$g(J,H[0],H[1])}}),P.extend=function(H,J){return H.$i||(H(J,O,P),H.$i=!0),P},P.locale=I,P.isDayjs=R,P.unix=function(H){return P(1e3*H)},P.en=k[x],P.Ls=k,P.p={},P})})(Vk);var Mee=Vk.exports;const _t=ol(Mee),x3=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],cc=e=>Array.from(Array.from({length:e}).keys()),zk=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Hk=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),Wk=function(e,t){const n=Yl(e),s=Yl(t);return n&&s?e.getTime()===t.getTime():!n&&!s?e===t:!1},jk=function(e,t){const n=Ae(e),s=Ae(t);return n&&s?e.length!==t.length?!1:e.every((a,o)=>Wk(a,t[o])):!n&&!s?Wk(e,t):!1},Kk=function(e,t,n){const s=Ia(t)||t==="x"?_t(e).locale(n):_t(e,t).locale(n);return s.isValid()?s:void 0},Uk=function(e,t,n){return Ia(t)?e:t==="x"?+e:_t(e).locale(n).format(t)},k3=(e,t)=>{var n;const s=[],a=t==null?void 0:t();for(let o=0;o<e;o++)s.push((n=a==null?void 0:a.includes(o))!=null?n:!1);return s},qg=e=>Ae(e)?e.map(t=>t.toDate()):e.toDate(),Pee=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return cc(t).map((s,a)=>n-(t-a-1))},Ree=e=>{const t=e.daysInMonth();return cc(t).map((n,s)=>s+1)},Iee=e=>cc(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),Oee=Me({selectedDay:{type:re(Object)},range:{type:re(Array)},date:{type:re(Object),required:!0},hideHeader:{type:Boolean}}),Lee={pick:e=>bt(e)};var qk={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(al,function(){return function(n,s,a){var o=s.prototype,r=function(f){return f&&(f.indexOf?f:f.s)},i=function(f,h,p,v,m){var g=f.name?f:f.$locale(),b=r(g[h]),C=r(g[p]),w=b||C.map(function(x){return x.slice(0,v)});if(!m)return w;var _=g.weekStart;return w.map(function(x,k){return w[(k+(_||0))%7]})},l=function(){return a.Ls[a.locale()]},c=function(f,h){return f.formats[h]||function(p){return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,m,g){return m||g.slice(1)})}(f.formats[h.toUpperCase()])},u=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):i(f,"months")},monthsShort:function(h){return h?h.format("MMM"):i(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return c(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return u.bind(this)()},a.localeData=function(){var f=l();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(h){return c(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return i(l(),"months")},a.monthsShort=function(){return i(l(),"monthsShort","months",3)},a.weekdays=function(f){return i(l(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return i(l(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return i(l(),"weekdaysMin","weekdays",2,f)}}})})(qk);var Nee=qk.exports;const Gk=ol(Nee),$ee=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],E3=["sun","mon","tue","wed","thu","fri","sat"],Dee=(e,t)=>{_t.extend(Gk);const n=_t.localeData().firstDayOfWeek(),{t:s,lang:a}=Ft(),o=_t().locale(a.value),r=E(()=>!!e.range&&!!e.range.length),i=E(()=>{let h=[];if(r.value){const[p,v]=e.range,m=cc(v.date()-p.date()+1).map(C=>({text:p.date()+C,type:"current"}));let g=m.length%7;g=g===0?0:7-g;const b=cc(g).map((C,w)=>({text:w+1,type:"next"}));h=m.concat(b)}else{const p=e.date.startOf("month").day(),v=Pee(e.date,(p-n+7)%7).map(C=>({text:C,type:"prev"})),m=Ree(e.date).map(C=>({text:C,type:"current"}));h=[...v,...m];const g=7-(h.length%7||7),b=cc(g).map((C,w)=>({text:w+1,type:"next"}));h=h.concat(b)}return Iee(h)}),l=E(()=>{const h=n;return h===0?E3.map(p=>s(`el.datepicker.weeks.${p}`)):E3.slice(h).concat(E3.slice(0,h)).map(p=>s(`el.datepicker.weeks.${p}`))}),c=(h,p)=>{switch(p){case"prev":return e.date.startOf("month").subtract(1,"month").date(h);case"next":return e.date.startOf("month").add(1,"month").date(h);case"current":return e.date.date(h)}};return{now:o,isInRange:r,rows:i,weekDays:l,getFormattedDate:c,handlePickDay:({text:h,type:p})=>{const v=c(h,p);t("pick",v)},getSlotData:({text:h,type:p})=>{const v=c(h,p);return{isSelected:v.isSame(e.selectedDay),type:`${p}-month`,day:v.format("YYYY-MM-DD"),date:v.toDate()}}}},Fee={key:0},Bee=["onClick"];var Yk=K({name:"DateTable",__name:"date-table",props:Oee,emits:Lee,setup(e,{expose:t,emit:n}){const s=e,a=n,{isInRange:o,now:r,rows:i,weekDays:l,getFormattedDate:c,handlePickDay:u,getSlotData:f}=Dee(s,a),h=Ee("calendar-table"),p=Ee("calendar-day"),v=({text:m,type:g})=>{const b=[g];if(g==="current"){const C=c(m,g);C.isSame(s.selectedDay,"day")&&b.push(p.is("selected")),C.isSame(r,"day")&&b.push(p.is("today"))}return b};return t({getFormattedDate:c}),(m,g)=>(S(),M("table",{class:D([d(h).b(),d(h).is("range",d(o))]),cellspacing:"0",cellpadding:"0"},[e.hideHeader?ie("v-if",!0):(S(),M("thead",Fee,[A("tr",null,[(S(!0),M(He,null,Et(d(l),b=>(S(),M("th",{key:b,scope:"col"},ge(b),1))),128))])])),A("tbody",null,[(S(!0),M(He,null,Et(d(i),(b,C)=>(S(),M("tr",{key:C,class:D({[d(h).e("row")]:!0,[d(h).em("row","hide-border")]:C===0&&e.hideHeader})},[(S(!0),M(He,null,Et(b,(w,_)=>(S(),M("td",{key:_,class:D(v(w)),onClick:x=>d(u)(w)},[A("div",{class:D(d(p).b())},[ue(m.$slots,"date-cell",{data:d(f)(w)},()=>[A("span",null,ge(w.text),1)])],2)],10,Bee))),128))],2))),128))])],2))}});const Vee=(e,t)=>{const n=e.endOf("month"),s=t.startOf("month"),o=n.isSame(s,"week")?s.add(1,"week"):s;return[[e,n],[o.startOf("week"),t]]},zee=(e,t)=>{const n=e.endOf("month"),s=e.add(1,"month").startOf("month"),a=n.isSame(s,"week")?s.add(1,"week"):s,o=a.endOf("month"),r=t.startOf("month"),i=o.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[a.startOf("week"),o],[i.startOf("week"),t]]},Hee=(e,t,n)=>{const{lang:s}=Ft(),a=F(),o=_t().locale(s.value),r=E({get(){return e.modelValue?l.value:a.value},set(b){if(!b)return;a.value=b;const C=b.toDate();t(is,C),t(mt,C)}}),i=E(()=>{if(!e.range||!Ae(e.range)||e.range.length!==2||e.range.some(_=>!Yl(_)))return[];const b=e.range.map(_=>_t(_).locale(s.value)),[C,w]=b;return C.isAfter(w)?[]:C.isSame(w,"month")?p(C,w):C.add(1,"month").month()!==w.month()?[]:p(C,w)}),l=E(()=>e.modelValue?_t(e.modelValue).locale(s.value):r.value||(i.value.length?i.value[0][0]:o)),c=E(()=>l.value.subtract(1,"month").date(1)),u=E(()=>l.value.add(1,"month").date(1)),f=E(()=>l.value.subtract(1,"year").date(1)),h=E(()=>l.value.add(1,"year").date(1)),p=(b,C)=>{const w=b.startOf("week"),_=C.endOf("week"),x=w.get("month"),k=_.get("month");return x===k?[[w,_]]:(x+1)%12===k?Vee(w,_):x+2===k||(x+1)%11===k?zee(w,_):[]},v=b=>{r.value=b},m=b=>{const w={"prev-month":c.value,"next-month":u.value,"prev-year":f.value,"next-year":h.value,today:o}[b];w.isSame(l.value,"day")||v(w)};return{calculateValidatedDateRange:p,date:l,realSelectedDay:r,pickDay:v,selectDate:m,validatedRange:i,handleDateChange:b=>{b==="today"?m("today"):v(b)}}},Wee=Me({date:{type:re(Object),required:!0},formatter:{type:re(Function)}}),jee={"date-change":e=>bt(e)||Xe(e)},rl=Me({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:vr},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),Kee={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},Uee=["aria-label"],qee=["aria-label"];var Gee=K({name:"ElTag",__name:"tag",props:rl,emits:Kee,setup(e,{emit:t}){const n=e,s=t,a=ls(),{t:o}=Ft(),r=Ee("tag"),i=E(()=>{const{type:f,hit:h,effect:p,closable:v,round:m}=n;return[r.b(),r.is("closable",v),r.m(f||"primary"),r.m(a.value),r.m(p),r.is("hit",h),r.is("round",m)]}),l=f=>{s("close",f)},c=f=>{s("click",f)},u=f=>{var h,p,v;(v=(p=(h=f==null?void 0:f.component)==null?void 0:h.subTree)==null?void 0:p.component)!=null&&v.bum&&(f.component.subTree.component.bum=null)};return(f,h)=>e.disableTransitions?(S(),M("span",{key:0,class:D(i.value),style:et({backgroundColor:e.color}),onClick:c},[A("span",{class:D(d(r).e("content"))},[ue(f.$slots,"default")],2),e.closable?(S(),M("button",{key:0,"aria-label":d(o)("el.tag.close"),class:D(d(r).e("close")),type:"button",onClick:ht(l,["stop"])},[W(d(Je),null,{default:X(()=>[W(d(qa))]),_:1})],10,Uee)):ie("v-if",!0)],6)):(S(),ce(Cs,{key:1,name:`${d(r).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:u},{default:X(()=>[A("span",{class:D(i.value),style:et({backgroundColor:e.color}),onClick:c},[A("span",{class:D(d(r).e("content"))},[ue(f.$slots,"default")],2),e.closable?(S(),M("button",{key:0,"aria-label":d(o)("el.tag.close"),class:D(d(r).e("close")),type:"button",onClick:ht(l,["stop"])},[W(d(Je),null,{default:X(()=>[W(d(qa))]),_:1})],10,qee)):ie("v-if",!0)],6)]),_:3},8,["name"]))}});const il=wt(Gee),Gg={label:"label",value:"value",disabled:"disabled",options:"options"};function zp(e){const t=F({...Gg,...e.props});let n={...e.props};return be(()=>e.props,i=>{Hn(i,n)||(t.value={...Gg,...i},n={...i})},{deep:!0}),{aliasProps:t,getLabel:i=>ts(i,t.value.label),getValue:i=>ts(i,t.value.value),getDisabled:i=>ts(i,t.value.disabled),getOptions:i=>ts(i,t.value.options)}}const Xk=Symbol("ElSelectGroup"),Hp=Symbol("ElSelect"),A3="ElOption",Yee=Me({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),T3=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),uc=e=>N0(e);function Xee(e,t){const n=je(Hp);n||ns(A3,"usage: <el-select><el-option /></el-select/>");const s=je(Xk,{disabled:!1}),a=E(()=>u(Ts(n.props.modelValue),e.value)),o=E(()=>{var p;if(n.props.multiple){const v=Ts((p=n.props.modelValue)!=null?p:[]);return!a.value&&v.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),r=E(()=>{var p;return(p=e.label)!=null?p:bt(e.value)?"":e.value}),i=E(()=>e.value||e.label||""),l=E(()=>e.disabled||t.groupDisabled||o.value),c=Tt(),u=(p=[],v)=>{if(bt(e.value)){const m=n.props.valueKey;return p&&p.some(g=>pn(ts(g,m))===ts(v,m))}else return p&&p.includes(v)},f=()=>{l.value||(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},h=p=>{const v=new RegExp(T3(p),"i");t.visible=v.test(String(r.value))||e.created};return be(()=>r.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),be(()=>e.value,(p,v)=>{const{remote:m,valueKey:g}=n.props;if((m?p!==v:!Hn(p,v))&&(n.onOptionDestroy(v,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!m){if(g&&bt(p)&&bt(v)&&p[g]===v[g])return;n.setSelected()}}),be(()=>s.disabled,()=>{t.groupDisabled=s.disabled},{immediate:!0}),{select:n,currentLabel:r,currentValue:i,itemSelected:a,isDisabled:l,hoverItem:f,updateOption:h}}var Jee=K({name:A3,componentName:A3,props:Yee,setup(e){const t=Ee("select"),n=Vs(),s=E(()=>[t.be("dropdown","item"),t.is("disabled",d(i)),t.is("selected",d(r)),t.is("hovering",d(h))]),a=Gt({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:o,itemSelected:r,isDisabled:i,select:l,hoverItem:c,updateOption:u}=Xee(e,a),{visible:f,hover:h}=_s(a),p=Tt().proxy;l.onOptionCreate(p),tn(()=>{const m=p.value;ze(()=>{const{selected:g}=l.states,b=g.some(C=>C.value===p.value);l.states.cachedOptions.get(m)===p&&!b&&l.states.cachedOptions.delete(m)}),l.onOptionDestroy(m,p)});function v(){i.value||l.handleOptionSelect(p)}return{ns:t,id:n,containerKls:s,currentLabel:o,itemSelected:r,isDisabled:i,select:l,visible:f,hover:h,states:a,hoverItem:c,updateOption:u,selectOptionClick:v}}});const Zee=["id","aria-disabled","aria-selected"];function Qee(e,t,n,s,a,o){return Ct((S(),M("li",{id:e.id,class:D(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onClick:t[1]||(t[1]=ht((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[ue(e.$slots,"default",{},()=>[A("span",null,ge(e.currentLabel),1)])],42,Zee)),[[jt,e.visible]])}var M3=ps(Jee,[["render",Qee]]);const Yg=11,Jk=2;var ete=K({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=je(Hp),t=Ee("select"),n=E(()=>e.props.popperClass),s=E(()=>e.props.multiple),a=E(()=>e.props.fitInputWidth),o=F("");function r(){var i;const l=(i=e.selectRef)==null?void 0:i.offsetWidth;l?o.value=`${l-Jk}px`:o.value=""}return Mt(()=>{r(),Tn(e.selectRef,r)}),{ns:t,minWidth:o,popperClass:n,isMultiple:s,isFitInputWidth:a}}});function tte(e,t,n,s,a,o){return S(),M("div",{class:D([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:et({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(S(),M("div",{key:0,class:D(e.ns.be("dropdown","header"))},[ue(e.$slots,"header")],2)):ie("v-if",!0),ue(e.$slots,"default"),e.$slots.footer?(S(),M("div",{key:1,class:D(e.ns.be("dropdown","footer"))},[ue(e.$slots,"footer")],2)):ie("v-if",!0)],6)}var nte=ps(ete,[["render",tte]]);const ste=(e,t)=>{const{t:n}=Ft(),s=Gn(),a=Vs(),o=Ee("select"),r=Ee("input"),i=Gt({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=F(),c=F(),u=F(),f=F(),h=F(),p=F(),v=F(),m=F(),g=F(),b=F(),C=F(),w=F(!1),_=F(),x=F(!1),{form:k,formItem:T}=Ms(),{inputId:R}=ho(e,{formItemContext:T}),{valueOnClear:I,isEmptyValue:P}=Cp(e),{isComposing:$,handleCompositionStart:O,handleCompositionUpdate:B,handleCompositionEnd:H}=Bp({afterComposition:Pe=>Ot(Pe)}),J=Dn(),{wrapperRef:Y,isFocused:N,handleBlur:L}=nl(h,{disabled:J,afterFocus(){e.automaticDropdown&&!w.value&&(w.value=!0,i.menuVisibleOnFocus=!0)},beforeBlur(Pe){var vt,Ht;return((vt=u.value)==null?void 0:vt.isFocusInsideContent(Pe))||((Ht=f.value)==null?void 0:Ht.isFocusInsideContent(Pe))},afterBlur(){var Pe;w.value=!1,i.menuVisibleOnFocus=!1,e.validateEvent&&((Pe=T==null?void 0:T.validate)==null||Pe.call(T,"blur").catch(vt=>void 0))}}),V=E(()=>Ae(e.modelValue)?e.modelValue.length>0:!P(e.modelValue)),z=E(()=>{var Pe;return(Pe=k==null?void 0:k.statusIcon)!=null?Pe:!1}),G=E(()=>e.clearable&&!J.value&&V.value&&(N.value||i.inputHovering)),Q=E(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),U=E(()=>o.is("reverse",!!(Q.value&&w.value))),ee=E(()=>(T==null?void 0:T.validateState)||""),se=E(()=>ee.value&&Og[ee.value]),de=E(()=>e.remote?e.debounce:0),te=E(()=>e.remote&&!i.inputValue&&i.options.size===0),pe=E(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&i.inputValue&&i.options.size>0&&he.value===0?e.noMatchText||n("el.select.noMatch"):i.options.size===0?e.noDataText||n("el.select.noData"):null),he=E(()=>le.value.filter(Pe=>Pe.visible).length),le=E(()=>{const Pe=Array.from(i.options.values()),vt=[];return i.optionValues.forEach(Ht=>{const xn=Pe.findIndex(Kn=>Kn.value===Ht);xn>-1&&vt.push(Pe[xn])}),vt.length>=Pe.length?vt:Pe}),Z=E(()=>Array.from(i.cachedOptions.values())),j=E(()=>{const Pe=le.value.filter(vt=>!vt.created).some(vt=>vt.currentLabel===i.inputValue);return e.filterable&&e.allowCreate&&i.inputValue!==""&&!Pe}),ae=()=>{e.filterable&&Qe(e.filterMethod)||e.filterable&&e.remote&&Qe(e.remoteMethod)||le.value.forEach(Pe=>{var vt;(vt=Pe.updateOption)==null||vt.call(Pe,i.inputValue)})},fe=ls(),we=E(()=>["small"].includes(fe.value)?"small":"default"),Se=E({get(){return w.value&&(e.loading||!te.value||e.remote&&!!s.empty)&&(!x.value||!Ia(i.previousQuery))},set(Pe){w.value=Pe}}),ke=E(()=>{if(e.multiple&&!Wt(e.modelValue))return Ts(e.modelValue).length===0&&!i.inputValue;const Pe=Ae(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Wt(Pe)?!i.inputValue:!0}),Oe=E(()=>{var Pe;const vt=(Pe=e.placeholder)!=null?Pe:n("el.select.placeholder");return e.multiple||!V.value?vt:i.selectedLabel}),Be=E(()=>Cg?null:"mouseenter");be(()=>e.modelValue,(Pe,vt)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(i.inputValue="",Le("")),Ie(),!Hn(Pe,vt)&&e.validateEvent&&(T==null||T.validate("change").catch(Ht=>void 0))},{flush:"post",deep:!0}),be(()=>w.value,Pe=>{Pe?Le(i.inputValue):(i.inputValue="",i.previousQuery=null,i.isBeforeHide=!0,i.menuVisibleOnFocus=!1)}),be(()=>i.options.entries(),()=>{Yt&&(Ie(),e.defaultFirstOption&&(e.filterable||e.remote)&&he.value&&Ce())},{flush:"post"}),be([()=>i.hoveringIndex,le],([Pe])=>{st(Pe)&&Pe>-1?_.value=le.value[Pe]||{}:_.value={},le.value.forEach(vt=>{vt.hover=_.value===vt})}),ja(()=>{i.isBeforeHide||ae()});const Le=Pe=>{i.previousQuery===Pe||$.value||(i.previousQuery=Pe,e.filterable&&Qe(e.filterMethod)?e.filterMethod(Pe):e.filterable&&e.remote&&Qe(e.remoteMethod)&&e.remoteMethod(Pe),e.defaultFirstOption&&(e.filterable||e.remote)&&he.value?ze(Ce):ze(Ke))},Ce=()=>{const Pe=le.value.filter(Kn=>Kn.visible&&!Kn.disabled&&!Kn.states.groupDisabled),vt=Pe.find(Kn=>Kn.created),Ht=Pe[0],xn=le.value.map(Kn=>Kn.value);i.hoveringIndex=Ye(xn,vt||Ht)},Ie=()=>{if(e.multiple)i.selectedLabel="";else{const vt=Ae(e.modelValue)?e.modelValue[0]:e.modelValue,Ht=Re(vt);i.selectedLabel=Ht.currentLabel,i.selected=[Ht];return}const Pe=[];Wt(e.modelValue)||Ts(e.modelValue).forEach(vt=>{Pe.push(Re(vt))}),i.selected=Pe},Re=Pe=>{let vt;const Ht=O0(Pe);for(let ye=i.cachedOptions.size-1;ye>=0;ye--){const ve=Z.value[ye];if(Ht?ts(ve.value,e.valueKey)===ts(Pe,e.valueKey):ve.value===Pe){vt={index:le.value.filter(ft=>!ft.created).indexOf(ve),value:Pe,currentLabel:ve.currentLabel,get isDisabled(){return ve.isDisabled}};break}}if(vt)return vt;const xn=Ht?Pe.label:Pe??"";return{index:-1,value:Pe,currentLabel:xn}},Ke=()=>{const Pe=i.selected.length;if(Pe>0){const vt=i.selected[Pe-1];i.hoveringIndex=le.value.findIndex(Ht=>Vn(vt)===Vn(Ht))}else i.hoveringIndex=-1},tt=()=>{i.selectionWidth=Number.parseFloat(window.getComputedStyle(c.value).width)},ut=()=>{i.collapseItemWidth=b.value.getBoundingClientRect().width},Fe=()=>{var Pe,vt;(vt=(Pe=u.value)==null?void 0:Pe.updatePopper)==null||vt.call(Pe)},Ue=()=>{var Pe,vt;(vt=(Pe=f.value)==null?void 0:Pe.updatePopper)==null||vt.call(Pe)},Ze=()=>{i.inputValue.length>0&&!w.value&&(w.value=!0),Le(i.inputValue)},Ot=Pe=>{if(i.inputValue=Pe.target.value,e.remote)x.value=!0,Xt();else return Ze()},Xt=yp(()=>{Ze(),x.value=!1},de),it=Pe=>{Hn(e.modelValue,Pe)||t(Dt,Pe)},yt=Pe=>vx(Pe,vt=>{const Ht=i.cachedOptions.get(vt);return!(Ht!=null&&Ht.disabled)&&!(Ht!=null&&Ht.states.groupDisabled)}),Lt=Pe=>{const vt=un(Pe);if(e.multiple&&vt!==Te.delete&&Pe.target.value.length<=0){const Ht=Ts(e.modelValue).slice(),xn=yt(Ht);if(xn<0)return;const Kn=Ht[xn];Ht.splice(xn,1),t(mt,Ht),it(Ht),t("remove-tag",Kn)}},xe=(Pe,vt)=>{const Ht=i.selected.indexOf(vt);if(Ht>-1&&!J.value){const xn=Ts(e.modelValue).slice();xn.splice(Ht,1),t(mt,xn),it(xn),t("remove-tag",vt.value)}Pe.stopPropagation(),nt()},qe=Pe=>{Pe.stopPropagation();const vt=e.multiple?[]:I.value;if(e.multiple)for(const Ht of i.selected)Ht.isDisabled&&vt.push(Ht.value);t(mt,vt),it(vt),i.hoveringIndex=-1,w.value=!1,t("clear"),nt()},_e=Pe=>{var vt;if(e.multiple){const Ht=Ts((vt=e.modelValue)!=null?vt:[]).slice(),xn=Ye(Ht,Pe);xn>-1?Ht.splice(xn,1):(e.multipleLimit<=0||Ht.length<e.multipleLimit)&&Ht.push(Pe.value),t(mt,Ht),it(Ht),Pe.created&&Le(""),e.filterable&&!e.reserveKeyword&&(i.inputValue="")}else!Hn(e.modelValue,Pe.value)&&t(mt,Pe.value),it(Pe.value),w.value=!1;nt(),!w.value&&ze(()=>{xt(Pe)})},Ye=(Pe,vt)=>Wt(vt)?-1:bt(vt.value)?Pe.findIndex(Ht=>Hn(ts(Ht,e.valueKey),Vn(vt))):Pe.indexOf(vt.value),xt=Pe=>{var vt,Ht,xn,Kn,ye;const ve=Ae(Pe)?Pe[Pe.length-1]:Pe;let Ne=null;if(!Qn(ve==null?void 0:ve.value)){const ft=le.value.filter(ot=>ot.value===ve.value);ft.length>0&&(Ne=ft[0].$el)}if(u.value&&Ne){const ft=(Kn=(xn=(Ht=(vt=u.value)==null?void 0:vt.popperRef)==null?void 0:Ht.contentRef)==null?void 0:xn.querySelector)==null?void 0:Kn.call(xn,`.${o.be("dropdown","wrap")}`);ft&&Vy(ft,Ne)}(ye=C.value)==null||ye.handleScroll()},Jt=Pe=>{i.options.set(Pe.value,Pe),i.cachedOptions.set(Pe.value,Pe)},Sn=(Pe,vt)=>{i.options.get(Pe)===vt&&i.options.delete(Pe)},En=E(()=>{var Pe,vt;return(vt=(Pe=u.value)==null?void 0:Pe.popperRef)==null?void 0:vt.contentRef}),Ve=()=>{i.isBeforeHide=!1,ze(()=>{var Pe;(Pe=C.value)==null||Pe.update(),xt(i.selected)})},nt=()=>{var Pe;(Pe=h.value)==null||Pe.focus()},gt=()=>{var Pe;if(w.value){w.value=!1,ze(()=>{var vt;return(vt=h.value)==null?void 0:vt.blur()});return}(Pe=h.value)==null||Pe.blur()},An=Pe=>{qe(Pe)},Zt=Pe=>{if(w.value=!1,N.value){const vt=new FocusEvent("blur",Pe);ze(()=>L(vt))}},rt=()=>{i.inputValue.length>0?i.inputValue="":w.value=!1},dt=Pe=>{var vt;J.value||e.filterable&&w.value&&Pe&&!((vt=v.value)!=null&&vt.contains(Pe.target))||(Cg&&(i.inputHovering=!0),i.menuVisibleOnFocus?i.menuVisibleOnFocus=!1:w.value=!w.value)},Pt=()=>{if(!w.value)dt();else{const Pe=le.value[i.hoveringIndex];Pe&&!Pe.isDisabled&&_e(Pe)}},Vn=Pe=>bt(Pe.value)?ts(Pe.value,e.valueKey):Pe.value,aa=E(()=>le.value.filter(Pe=>Pe.visible).every(Pe=>Pe.isDisabled)),Lo=E(()=>e.multiple?e.collapseTags?i.selected.slice(0,e.maxCollapseTags):i.selected:[]),x0=E(()=>e.multiple?e.collapseTags?i.selected.slice(e.maxCollapseTags):[]:[]),Kl=Pe=>{if(!w.value){w.value=!0;return}if(!(i.options.size===0||he.value===0||$.value)&&!aa.value){Pe==="next"?(i.hoveringIndex++,i.hoveringIndex===i.options.size&&(i.hoveringIndex=0)):Pe==="prev"&&(i.hoveringIndex--,i.hoveringIndex<0&&(i.hoveringIndex=i.options.size-1));const vt=le.value[i.hoveringIndex];(vt.isDisabled||!vt.visible)&&Kl(Pe),ze(()=>xt(_.value))}},k0=(Pe,vt,Ht,xn)=>{for(let Kn=vt;Kn>=0&&Kn<xn;Kn+=Ht){const ye=Pe[Kn];if(!(ye!=null&&ye.isDisabled)&&(ye!=null&&ye.visible))return Kn}return null},Wr=(Pe,vt)=>{var Ht;const xn=i.options.size;if(xn===0)return;const Kn=wu(Pe,0,xn-1),ye=le.value,ve=vt==="up"?-1:1,Ne=(Ht=k0(ye,Kn,ve,xn))!=null?Ht:k0(ye,Kn-ve,-ve,xn);Ne!=null&&(i.hoveringIndex=Ne,ze(()=>xt(_.value)))},i2=Pe=>{const vt=un(Pe);let Ht=!0;switch(vt){case Te.up:Kl("prev");break;case Te.down:Kl("next");break;case Te.enter:case Te.numpadEnter:$.value||Pt();break;case Te.esc:rt();break;case Te.backspace:Ht=!1,Lt(Pe);return;case Te.home:if(!w.value)return;Wr(0,"down");break;case Te.end:if(!w.value)return;Wr(i.options.size-1,"up");break;case Te.pageUp:if(!w.value)return;Wr(i.hoveringIndex-10,"up");break;case Te.pageDown:if(!w.value)return;Wr(i.hoveringIndex+10,"down");break;default:Ht=!1;break}Ht&&(Pe.preventDefault(),Pe.stopPropagation())},l2=()=>{if(!c.value)return 0;const Pe=window.getComputedStyle(c.value);return Number.parseFloat(Pe.gap||"6px")},c2=E(()=>{const Pe=l2(),vt=e.filterable?Pe+Yg:0;return{maxWidth:`${b.value&&e.maxCollapseTags===1?i.selectionWidth-i.collapseItemWidth-Pe-vt:i.selectionWidth-vt}px`}}),u2=E(()=>({maxWidth:`${i.selectionWidth}px`})),nf=Pe=>{t("popup-scroll",Pe)};Tn(c,tt),Tn(Y,Fe),Tn(g,Ue),Tn(b,ut);let Ul;return be(()=>Se.value,Pe=>{Pe?Ul=Tn(m,Fe).stop:(Ul==null||Ul(),Ul=void 0),t("visible-change",Pe)}),Mt(()=>{Ie()}),{inputId:R,contentId:a,nsSelect:o,nsInput:r,states:i,isFocused:N,expanded:w,optionsArray:le,hoverOption:_,selectSize:fe,filteredOptionsCount:he,updateTooltip:Fe,updateTagTooltip:Ue,debouncedOnInputChange:Xt,onInput:Ot,deletePrevTag:Lt,deleteTag:xe,deleteSelected:qe,handleOptionSelect:_e,scrollToOption:xt,hasModelValue:V,shouldShowPlaceholder:ke,currentPlaceholder:Oe,mouseEnterEventName:Be,needStatusIcon:z,showClearBtn:G,iconComponent:Q,iconReverse:U,validateState:ee,validateIcon:se,showNewOption:j,updateOptions:ae,collapseTagSize:we,setSelected:Ie,selectDisabled:J,emptyText:pe,handleCompositionStart:O,handleCompositionUpdate:B,handleCompositionEnd:H,handleKeydown:i2,onOptionCreate:Jt,onOptionDestroy:Sn,handleMenuEnter:Ve,focus:nt,blur:gt,handleClearClick:An,handleClickOutside:Zt,handleEsc:rt,toggleMenu:dt,selectOption:Pt,getValueKey:Vn,navigateOptions:Kl,dropdownMenuVisible:Se,showTagList:Lo,collapseTagList:x0,popupScroll:nf,getOption:Re,tagStyle:c2,collapseTagStyle:u2,popperRef:En,inputRef:h,tooltipRef:u,tagTooltipRef:f,prefixRef:p,suffixRef:v,selectRef:l,wrapperRef:Y,selectionRef:c,scrollbarRef:C,menuRef:m,tagMenuRef:g,collapseItemRef:b}};var ate=K({name:"ElOptions",setup(e,{slots:t}){const n=je(Hp);let s=[];return()=>{var a,o;const r=(a=t.default)==null?void 0:a.call(t),i=[];function l(c){Ae(c)&&c.forEach(u=>{var f,h,p,v;const m=(f=(u==null?void 0:u.type)||{})==null?void 0:f.name;m==="ElOptionGroup"?l(!Xe(u.children)&&!Ae(u.children)&&Qe((h=u.children)==null?void 0:h.default)?(p=u.children)==null?void 0:p.default():u.children):m==="ElOption"?i.push((v=u.props)==null?void 0:v.value):Ae(u.children)&&l(u.children)})}return r.length&&l((o=r[0])==null?void 0:o.children),Hn(i,s)||(s=i,n&&(n.states.optionValues=i)),r}}});const Zk=Me({name:String,id:String,modelValue:{type:re([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:hs,effect:{type:re(String),default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:re([String,Object])},popperOptions:{type:re(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:re(Function)},filterMethod:{type:re(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:ln.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:rn,default:Vo},fitInputWidth:Boolean,suffixIcon:{type:rn,default:mr},tagType:{...rl.type,default:"info"},tagEffect:{...rl.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:re(String),values:si,default:"bottom-start"},fallbackPlacements:{type:re(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:ln.appendTo,options:{type:re(Array)},props:{type:re(Object),default:()=>Gg},...Su,...ua(["ariaLabel"])});Z9.scroll;var ote=K({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Ee("select"),n=F(),s=Tt(),a=F([]);Nt(Xk,Gt({..._s(e)}));const o=E(()=>a.value.some(c=>c.visible===!0)),r=c=>{var u;return c.type.name==="ElOption"&&!!((u=c.component)!=null&&u.proxy)},i=c=>{const u=Ts(c),f=[];return u.forEach(h=>{var p;vn(h)&&(r(h)?f.push(h.component.proxy):Ae(h.children)&&h.children.length?f.push(...i(h.children)):(p=h.component)!=null&&p.subTree&&f.push(...i(h.component.subTree)))}),f},l=()=>{a.value=i(s.subTree)};return Mt(()=>{l()}),wp(n,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:o,ns:t}}});function rte(e,t,n,s,a,o){return Ct((S(),M("ul",{ref:"groupRef",class:D(e.ns.be("group","wrap"))},[A("li",{class:D(e.ns.be("group","title"))},ge(e.label),3),A("li",null,[A("ul",{class:D(e.ns.b("group"))},[ue(e.$slots,"default")],2)])],2)),[[jt,e.visible]])}var P3=ps(ote,[["render",rte]]);const dc=new Map;if(Yt){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of dc.values())for(const{documentHandler:s}of n)s(t,e);e=void 0}})}function Qk(e,t){let n=[];return Ae(t.arg)?n=t.arg:Ka(t.arg)&&n.push(t.arg),function(s,a){const o=t.instance.popperRef,r=s.target,i=a==null?void 0:a.target,l=!t||!t.instance,c=!r||!i,u=e.contains(r)||e.contains(i),f=e===r,h=n.length&&n.some(v=>v==null?void 0:v.contains(r))||n.length&&n.includes(i),p=o&&(o.contains(r)||o.contains(i));l||c||u||f||h||p||t.value(s,a)}}const fc={beforeMount(e,t){dc.has(e)||dc.set(e,[]),dc.get(e).push({documentHandler:Qk(e,t),bindingFn:t.value})},updated(e,t){dc.has(e)||dc.set(e,[]);const n=dc.get(e),s=n.findIndex(o=>o.bindingFn===t.oldValue),a={documentHandler:Qk(e,t),bindingFn:t.value};s>=0?n.splice(s,1,a):n.push(a)},unmounted(e){dc.delete(e)}};function R3(){const e=bn(),t=F(0),n=E(()=>({minWidth:`${Math.max(t.value,Yg)}px`}));return Tn(e,()=>{var a,o;t.value=(o=(a=e.value)==null?void 0:a.getBoundingClientRect().width)!=null?o:0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}const eE="ElSelect",Wp=new WeakMap,ite=e=>(...t)=>{var n,s;const a=t[0];if(!a||a.includes('Slot "default" invoked outside of the render function')&&((n=t[2])!=null&&n.includes("ElTreeSelect")))return;const o=(s=Wp.get(e))==null?void 0:s.originalWarnHandler;if(o){o(...t);return}console.warn(...t)},lte=e=>{let t=Wp.get(e);return t||(t={originalWarnHandler:e.config.warnHandler,handler:ite(e),count:0},Wp.set(e,t)),t};var cte=K({name:eE,componentName:eE,components:{ElSelectMenu:nte,ElOption:M3,ElOptions:ate,ElOptionGroup:P3,ElTag:il,ElScrollbar:gr,ElTooltip:Ps,ElIcon:Je},directives:{ClickOutside:fc},props:Zk,emits:[mt,Dt,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:t,slots:n}){const s=Tt(),a=lte(s.appContext);a.count+=1,s.appContext.config.warnHandler=a.handler;const o=E(()=>{const{modelValue:C,multiple:w}=e,_=w?[]:void 0;return Ae(C)?w?C:_:w?_:C}),r=Gt({..._s(e),modelValue:o}),i=ste(r,t),{calculatorRef:l,inputStyle:c}=R3(),{getLabel:u,getValue:f,getOptions:h,getDisabled:p}=zp(e),v=C=>({label:u(C),value:f(C),disabled:p(C)}),m=C=>C.reduce((w,_)=>(w.push(_),_.children&&_.children.length>0&&w.push(...m(_.children)),w),[]),g=C=>{uo(C||[]).forEach(_=>{var x;if(bt(_)&&(_.type.name==="ElOption"||_.type.name==="ElTree")){const k=_.type.name;if(k==="ElTree"){const T=((x=_.props)==null?void 0:x.data)||[];m(T).forEach(I=>{I.currentLabel=I.label||(bt(I.value)?"":I.value),i.onOptionCreate(I)})}else if(k==="ElOption"){const T={..._.props};T.currentLabel=T.label||(bt(T.value)?"":T.value),i.onOptionCreate(T)}}})};be(()=>{var C;return[(C=n.default)==null?void 0:C.call(n),o.value]},()=>{var C;e.persistent||i.expanded.value||(i.states.options.clear(),g((C=n.default)==null?void 0:C.call(n)))},{immediate:!0}),Nt(Hp,Gt({props:r,states:i.states,selectRef:i.selectRef,optionsArray:i.optionsArray,setSelected:i.setSelected,handleOptionSelect:i.handleOptionSelect,onOptionCreate:i.onOptionCreate,onOptionDestroy:i.onOptionDestroy}));const b=E(()=>e.multiple?i.states.selected.map(C=>C.currentLabel):i.states.selectedLabel);return tn(()=>{const C=Wp.get(s.appContext);C&&(C.count-=1,C.count<=0&&(s.appContext.config.warnHandler=C.originalWarnHandler,Wp.delete(s.appContext)))}),{...i,modelValue:o,selectedLabel:b,calculatorRef:l,inputStyle:c,getLabel:u,getValue:f,getOptions:h,getDisabled:p,getOptionProps:v}}});const ute=["id","value","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],dte=["textContent"],fte={key:1};function hte(e,t,n,s,a,o){const r=Ge("el-tag"),i=Ge("el-tooltip"),l=Ge("el-icon"),c=Ge("el-option"),u=Ge("el-option-group"),f=Ge("el-options"),h=Ge("el-scrollbar"),p=Ge("el-select-menu"),v=z4("click-outside");return Ct((S(),M("div",At({ref:"selectRef",class:[e.nsSelect.b(),e.nsSelect.m(e.selectSize)]},{[$0(e.mouseEnterEventName)]:t[10]||(t[10]=m=>e.states.inputHovering=!0)},{onMouseleave:t[11]||(t[11]=m=>e.states.inputHovering=!1)}),[W(i,{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:t[9]||(t[9]=m=>e.states.isBeforeHide=!1)},{default:X(()=>{var m;return[A("div",{ref:"wrapperRef",class:D([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:t[6]||(t[6]=ht((...g)=>e.toggleMenu&&e.toggleMenu(...g),["prevent"]))},[e.$slots.prefix?(S(),M("div",{key:0,ref:"prefixRef",class:D(e.nsSelect.e("prefix"))},[ue(e.$slots,"prefix")],2)):ie("v-if",!0),A("div",{ref:"selectionRef",class:D([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?ue(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(S(!0),M(He,null,Et(e.showTagList,g=>(S(),M("div",{key:e.getValueKey(g),class:D(e.nsSelect.e("selected-item"))},[W(r,{closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:et(e.tagStyle),onClose:b=>e.deleteTag(b,g)},{default:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))},[ue(e.$slots,"label",{index:g.index,label:g.currentLabel,value:g.value},()=>[We(ge(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(S(),ce(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,"popper-options":e.popperOptions},{default:X(()=>[A("div",{ref:"collapseItemRef",class:D(e.nsSelect.e("selected-item"))},[W(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:et(e.collapseTagStyle)},{default:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))}," + "+ge(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:X(()=>[A("div",{ref:"tagMenuRef",class:D(e.nsSelect.e("selection"))},[(S(!0),M(He,null,Et(e.collapseTagList,g=>(S(),M("div",{key:e.getValueKey(g),class:D(e.nsSelect.e("selected-item"))},[W(r,{class:"in-tooltip",closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:b=>e.deleteTag(b,g)},{default:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))},[ue(e.$slots,"label",{index:g.index,label:g.currentLabel,value:g.value},()=>[We(ge(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported","popper-options"])):ie("v-if",!0)]):ie("v-if",!0),A("div",{class:D([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled)])},[A("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,type:"text",name:e.name,class:D([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:et(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((m=e.hoverOption)==null?void 0:m.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:t[0]||(t[0]=(...g)=>e.handleKeydown&&e.handleKeydown(...g)),onCompositionstart:t[1]||(t[1]=(...g)=>e.handleCompositionStart&&e.handleCompositionStart(...g)),onCompositionupdate:t[2]||(t[2]=(...g)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...g)),onCompositionend:t[3]||(t[3]=(...g)=>e.handleCompositionEnd&&e.handleCompositionEnd(...g)),onInput:t[4]||(t[4]=(...g)=>e.onInput&&e.onInput(...g)),onClick:t[5]||(t[5]=ht((...g)=>e.toggleMenu&&e.toggleMenu(...g),["stop"]))},null,46,ute),e.filterable?(S(),M("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:D(e.nsSelect.e("input-calculator")),textContent:ge(e.states.inputValue)},null,10,dte)):ie("v-if",!0)],2),e.shouldShowPlaceholder?(S(),M("div",{key:1,class:D([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?ue(e.$slots,"label",{key:0,index:e.getOption(e.modelValue).index,label:e.currentPlaceholder,value:e.modelValue},()=>[A("span",null,ge(e.currentPlaceholder),1)]):(S(),M("span",fte,ge(e.currentPlaceholder),1))],2)):ie("v-if",!0)],2),A("div",{ref:"suffixRef",class:D(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(S(),ce(l,{key:0,class:D([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:X(()=>[(S(),ce(kt(e.iconComponent)))]),_:1},8,["class"])):ie("v-if",!0),e.showClearBtn&&e.clearIcon?(S(),ce(l,{key:1,class:D([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:X(()=>[(S(),ce(kt(e.clearIcon)))]),_:1},8,["class","onClick"])):ie("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(S(),ce(l,{key:2,class:D([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:X(()=>[(S(),ce(kt(e.validateIcon)))]),_:1},8,["class"])):ie("v-if",!0)],2)],2)]}),content:X(()=>[W(p,{ref:"menuRef"},{default:X(()=>[e.$slots.header?(S(),M("div",{key:0,class:D(e.nsSelect.be("dropdown","header")),onClick:t[7]||(t[7]=ht(()=>{},["stop"]))},[ue(e.$slots,"header")],2)):ie("v-if",!0),Ct(W(h,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:D([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:X(()=>[e.showNewOption?(S(),ce(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):ie("v-if",!0),W(f,null,{default:X(()=>[ue(e.$slots,"default",{},()=>[(S(!0),M(He,null,Et(e.options,(m,g)=>{var b;return S(),M(He,{key:g},[(b=e.getOptions(m))!=null&&b.length?(S(),ce(u,{key:0,label:e.getLabel(m),disabled:e.getDisabled(m)},{default:X(()=>[(S(!0),M(He,null,Et(e.getOptions(m),C=>(S(),ce(c,At({key:e.getValue(C)},{ref_for:!0},e.getOptionProps(C)),null,16))),128))]),_:2},1032,["label","disabled"])):(S(),ce(c,At({key:1,ref_for:!0},e.getOptionProps(m)),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[jt,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(S(),M("div",{key:1,class:D(e.nsSelect.be("dropdown","loading"))},[ue(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(S(),M("div",{key:2,class:D(e.nsSelect.be("dropdown","empty"))},[ue(e.$slots,"empty",{},()=>[A("span",null,ge(e.emptyText),1)])],2)):ie("v-if",!0),e.$slots.footer?(S(),M("div",{key:3,class:D(e.nsSelect.be("dropdown","footer")),onClick:t[8]||(t[8]=ht(()=>{},["stop"]))},[ue(e.$slots,"footer")],2)):ie("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"])],16)),[[v,e.handleClickOutside,e.popperRef]])}var pte=ps(cte,[["render",hte]]);const hc=wt(pte,{Option:M3,OptionGroup:P3}),Xg=In(M3),vte=In(P3);var mte=K({name:"SelectController",__name:"select-controller",props:Wee,emits:jee,setup(e,{emit:t}){const n=e,s=t,a=Ee("calendar-select"),{t:o,lang:r}=Ft(),i=Array.from({length:12},(v,m)=>{const g=m+1,b=Qe(n.formatter)?n.formatter(g,"month"):g;return{value:g,label:b}}),l=E(()=>n.date.year()),c=E(()=>n.date.month()+1),u=E(()=>{const v=[];for(let m=-10;m<10;m++){const g=l.value+m;if(g>0){const b=Qe(n.formatter)?n.formatter(g,"year"):g;v.push({value:g,label:b})}}return v}),f=v=>{s("date-change",_t(new Date(v,c.value-1,1)).locale(r.value))},h=v=>{s("date-change",_t(new Date(l.value,v-1,1)).locale(r.value))},p=()=>{s("date-change","today")};return(v,m)=>(S(),M(He,null,[W(d(hc),{"model-value":l.value,size:"small",class:D(d(a).e("year")),"validate-event":!1,options:u.value,onChange:f},null,8,["model-value","class","options"]),W(d(hc),{"model-value":c.value,size:"small",class:D(d(a).e("month")),"validate-event":!1,options:d(i),onChange:h},null,8,["model-value","class","options"]),W(d(xs),{size:"small",onClick:p},{default:X(()=>[We(ge(d(o)("el.datepicker.today")),1)]),_:1})],64))}}),gte=K({name:"ElCalendar",__name:"calendar",props:Aee,emits:Tee,setup(e,{expose:t,emit:n}){const s=Ee("calendar"),a=e,o=n,{calculateValidatedDateRange:r,date:i,pickDay:l,realSelectedDay:c,selectDate:u,validatedRange:f,handleDateChange:h}=Hee(a,o),{t:p}=Ft(),v=E(()=>{const m=`el.datepicker.month${i.value.format("M")}`;return`${i.value.year()} ${p("el.datepicker.year")} ${p(m)}`});return t({selectedDay:c,pickDay:l,selectDate:u,calculateValidatedDateRange:r}),(m,g)=>(S(),M("div",{class:D(d(s).b())},[A("div",{class:D(d(s).e("header"))},[ue(m.$slots,"header",{date:v.value},()=>[A("div",{class:D(d(s).e("title"))},ge(v.value),3),d(f).length===0&&e.controllerType==="button"?(S(),M("div",{key:0,class:D(d(s).e("button-group"))},[W(d(Bk),null,{default:X(()=>[W(d(xs),{size:"small",onClick:g[0]||(g[0]=b=>d(u)("prev-month"))},{default:X(()=>[We(ge(d(p)("el.datepicker.prevMonth")),1)]),_:1}),W(d(xs),{size:"small",onClick:g[1]||(g[1]=b=>d(u)("today"))},{default:X(()=>[We(ge(d(p)("el.datepicker.today")),1)]),_:1}),W(d(xs),{size:"small",onClick:g[2]||(g[2]=b=>d(u)("next-month"))},{default:X(()=>[We(ge(d(p)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):d(f).length===0&&e.controllerType==="select"?(S(),M("div",{key:1,class:D(d(s).e("select-controller"))},[W(mte,{date:d(i),formatter:e.formatter,onDateChange:d(h)},null,8,["date","formatter","onDateChange"])],2)):ie("v-if",!0)])],2),d(f).length===0?(S(),M("div",{key:0,class:D(d(s).e("body"))},[W(Yk,{date:d(i),"selected-day":d(c),onPick:d(l)},Ta({_:2},[m.$slots["date-cell"]?{name:"date-cell",fn:X(b=>[ue(m.$slots,"date-cell",$i(Wi(b)))]),key:"0"}:void 0]),1032,["date","selected-day","onPick"])],2)):(S(),M("div",{key:1,class:D(d(s).e("body"))},[(S(!0),M(He,null,Et(d(f),(b,C)=>(S(),ce(Yk,{key:C,date:b[0],"selected-day":d(c),range:b,"hide-header":C!==0,onPick:d(l)},Ta({_:2},[m.$slots["date-cell"]?{name:"date-cell",fn:X(w=>[ue(m.$slots,"date-cell",At({ref_for:!0},w))]),key:"0"}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});const bte=wt(gte),yte=Me({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:re([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}});var wte=K({name:"ElCard",__name:"card",props:yte,setup(e){const t=Tf("card"),n=Ee("card");return(s,a)=>{var o;return S(),M("div",{class:D([d(n).b(),d(n).is(`${e.shadow||((o=d(t))==null?void 0:o.shadow)||"always"}-shadow`)])},[s.$slots.header||e.header?(S(),M("div",{key:0,class:D([d(n).e("header"),e.headerClass])},[ue(s.$slots,"header",{},()=>[We(ge(e.header),1)])],2)):ie("v-if",!0),A("div",{class:D([d(n).e("body"),e.bodyClass]),style:et(e.bodyStyle)},[ue(s.$slots,"default")],6),s.$slots.footer||e.footer?(S(),M("div",{key:1,class:D([d(n).e("footer"),e.footerClass])},[ue(s.$slots,"footer",{},()=>[We(ge(e.footer),1)])],2)):ie("v-if",!0)],2)}}});const _te=wt(wte),Cte=Me({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}),Ste={change:(e,t)=>[e,t].every(st)},tE=Symbol("carouselContextKey"),I3="ElCarouselItem",xte=(e,t,n)=>uo(e.subTree).filter(o=>{var r;return vn(o)&&((r=o.type)==null?void 0:r.name)===t&&!!o.component}).map(o=>o.component.uid).map(o=>n[o]).filter(o=>!!o),Jg=(e,t)=>{const n=bn({}),s=bn([]),a=new WeakMap,o=u=>{n.value[u.uid]=u,V2(n),Mt(()=>{const f=u.getVnode().el,h=f.parentNode;if(!a.has(h)){a.set(h,[]);const p=h.insertBefore.bind(h);h.insertBefore=(v,m)=>(a.get(h).some(b=>v===b||m===b)&&V2(n),p(v,m))}a.get(h).push(f)})},r=u=>{delete n.value[u.uid],V2(n);const f=u.getVnode().el,h=f.parentNode,p=a.get(h),v=p.indexOf(f);p.splice(v,1)},i=()=>{s.value=xte(e,t,n.value)},l=u=>u.render();return{children:s,addChild:o,removeChild:r,ChildrenSorter:K({setup(u,{slots:f}){return()=>(i(),f.default?lt(l,{render:f.default}):null)}})}},nE=300,kte=(e,t,n)=>{const{children:s,addChild:a,removeChild:o,ChildrenSorter:r}=Jg(Tt(),I3),i=Gn(),l=F(-1),c=F(null),u=F(!1),f=F(),h=F(0),p=F(!0),v=E(()=>e.arrow!=="never"&&!d(b)),m=E(()=>s.value.some(se=>se.props.label.toString().length>0)),g=E(()=>e.type==="card"),b=E(()=>e.direction==="vertical"),C=E(()=>e.height!=="auto"?{height:e.height}:{height:`${h.value}px`,overflow:"hidden"}),w=sc(se=>{I(se)},nE,{trailing:!0}),_=sc(se=>{N(se)},nE),x=se=>p.value?l.value<=1?se<=1:se>1:!0;function k(){c.value&&(clearInterval(c.value),c.value=null)}function T(){e.interval<=0||!e.autoplay||c.value||(c.value=setInterval(()=>R(),e.interval))}const R=()=>{l.value<s.value.length-1?l.value=l.value+1:e.loop&&(l.value=0)};function I(se){if(Xe(se)){const pe=s.value.filter(he=>he.props.name===se);pe.length>0&&(se=s.value.indexOf(pe[0]))}if(se=Number(se),Number.isNaN(se)||se!==Math.floor(se))return;const de=s.value.length,te=l.value;se<0?l.value=e.loop?de-1:0:se>=de?l.value=e.loop?0:de-1:l.value=se,te===l.value&&P(te),z()}function P(se){s.value.forEach((de,te)=>{de.translateItem(te,l.value,se)})}function $(se,de){var te,pe,he,le;const Z=d(s),j=Z.length;if(j===0||!se.states.inStage)return!1;const ae=de+1,fe=de-1,we=j-1,Se=Z[we].states.active,ke=Z[0].states.active,Oe=(pe=(te=Z[ae])==null?void 0:te.states)==null?void 0:pe.active,Be=(le=(he=Z[fe])==null?void 0:he.states)==null?void 0:le.active;return de===we&&ke||Oe?"left":de===0&&Se||Be?"right":!1}function O(){u.value=!0,e.pauseOnHover&&k()}function B(){u.value=!1,T()}function H(se){d(b)||s.value.forEach((de,te)=>{se===$(de,te)&&(de.states.hover=!0)})}function J(){d(b)||s.value.forEach(se=>{se.states.hover=!1})}function Y(se){l.value=se}function N(se){e.trigger==="hover"&&se!==l.value&&(l.value=se)}function L(){I(l.value-1)}function V(){I(l.value+1)}function z(){k(),e.pauseOnHover||T()}function G(se){e.height==="auto"&&(h.value=se)}function Q(){var se;const de=(se=i.default)==null?void 0:se.call(i);if(!de)return null;const pe=uo(de).filter(he=>vn(he)&&he.type.name===I3);return(pe==null?void 0:pe.length)===2&&e.loop&&!g.value?(p.value=!0,pe):(p.value=!1,null)}be(()=>l.value,(se,de)=>{P(de),p.value&&(se=se%2,de=de%2),de>-1&&t(Dt,se,de)});const U=E({get:()=>p.value?l.value%2:l.value,set:se=>l.value=se});be(()=>e.autoplay,se=>{se?T():k()}),be(()=>e.loop,()=>{I(l.value)}),be(()=>e.interval,()=>{z()});const ee=bn();return Mt(()=>{be(()=>s.value,()=>{s.value.length>0&&I(e.initialIndex)},{immediate:!0}),ee.value=Tn(f.value,()=>{P()}),T()}),tn(()=>{k(),f.value&&ee.value&&ee.value.stop()}),Nt(tE,{root:f,isCardType:g,isVertical:b,items:s,loop:e.loop,cardScale:e.cardScale,addItem:a,removeItem:o,setActiveItem:I,setContainerHeight:G}),{root:f,activeIndex:l,exposeActiveIndex:U,arrowDisplay:v,hasLabel:m,hover:u,isCardType:g,items:s,isVertical:b,containerStyle:C,isItemsTwoLength:p,handleButtonEnter:H,handleButtonLeave:J,handleIndicatorClick:Y,handleMouseEnter:O,handleMouseLeave:B,setActiveItem:I,prev:L,next:V,PlaceholderItem:Q,isTwoLengthShow:x,ItemsSorter:r,throttledArrowClick:w,throttledIndicatorHover:_}},Ete=["aria-label"],Ate=["aria-label"],Tte=["onMouseenter","onClick"],Mte=["aria-label"],Pte={key:0},Rte={key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}};var Ite=K({name:"ElCarousel",__name:"carousel",props:Cte,emits:Ste,setup(e,{expose:t,emit:n}){const s=e,a=n,{root:o,activeIndex:r,exposeActiveIndex:i,arrowDisplay:l,hasLabel:c,hover:u,isCardType:f,items:h,isVertical:p,containerStyle:v,handleButtonEnter:m,handleButtonLeave:g,handleIndicatorClick:b,handleMouseEnter:C,handleMouseLeave:w,setActiveItem:_,prev:x,next:k,PlaceholderItem:T,isTwoLengthShow:R,ItemsSorter:I,throttledArrowClick:P,throttledIndicatorHover:$}=kte(s,a),O=Ee("carousel"),{t:B}=Ft(),H=E(()=>{const L=[O.b(),O.m(s.direction)];return d(f)&&L.push(O.m("card")),L}),J=E(()=>{const L=[O.e("indicators"),O.em("indicators",s.direction)];return d(c)&&L.push(O.em("indicators","labels")),s.indicatorPosition==="outside"&&L.push(O.em("indicators","outside")),d(p)&&L.push(O.em("indicators","right")),L});function Y(L){if(!s.motionBlur)return;const V=d(p)?`${O.namespace.value}-transitioning-vertical`:`${O.namespace.value}-transitioning`;L.currentTarget.classList.add(V)}function N(L){if(!s.motionBlur)return;const V=d(p)?`${O.namespace.value}-transitioning-vertical`:`${O.namespace.value}-transitioning`;L.currentTarget.classList.remove(V)}return t({activeIndex:i,setActiveItem:_,prev:x,next:k}),(L,V)=>(S(),M("div",{ref_key:"root",ref:o,class:D(H.value),onMouseenter:V[6]||(V[6]=ht((...z)=>d(C)&&d(C)(...z),["stop"])),onMouseleave:V[7]||(V[7]=ht((...z)=>d(w)&&d(w)(...z),["stop"]))},[d(l)?(S(),ce(Cs,{key:0,name:"carousel-arrow-left",persisted:""},{default:X(()=>[Ct(A("button",{type:"button",class:D([d(O).e("arrow"),d(O).em("arrow","left")]),"aria-label":d(B)("el.carousel.leftArrow"),onMouseenter:V[0]||(V[0]=z=>d(m)("left")),onMouseleave:V[1]||(V[1]=(...z)=>d(g)&&d(g)(...z)),onClick:V[2]||(V[2]=ht(z=>d(P)(d(r)-1),["stop"]))},[W(d(Je),null,{default:X(()=>[W(d(Bo))]),_:1})],42,Ete),[[jt,(e.arrow==="always"||d(u))&&(e.loop||d(r)>0)]])]),_:1})):ie("v-if",!0),d(l)?(S(),ce(Cs,{key:1,name:"carousel-arrow-right",persisted:""},{default:X(()=>[Ct(A("button",{type:"button",class:D([d(O).e("arrow"),d(O).em("arrow","right")]),"aria-label":d(B)("el.carousel.rightArrow"),onMouseenter:V[3]||(V[3]=z=>d(m)("right")),onMouseleave:V[4]||(V[4]=(...z)=>d(g)&&d(g)(...z)),onClick:V[5]||(V[5]=ht(z=>d(P)(d(r)+1),["stop"]))},[W(d(Je),null,{default:X(()=>[W(d(Fs))]),_:1})],42,Ate),[[jt,(e.arrow==="always"||d(u))&&(e.loop||d(r)<d(h).length-1)]])]),_:1})):ie("v-if",!0),A("div",{class:D(d(O).e("container")),style:et(d(v)),onTransitionstart:Y,onTransitionend:N},[W(d(T)),ue(L.$slots,"default")],38),W(d(I),null,{default:X(()=>[e.indicatorPosition!=="none"?(S(),M("ul",{key:0,class:D(J.value)},[(S(!0),M(He,null,Et(d(h),(z,G)=>Ct((S(),M("li",{key:G,class:D([d(O).e("indicator"),d(O).em("indicator",e.direction),d(O).is("active",G===d(r))]),onMouseenter:Q=>d($)(G),onClick:ht(Q=>d(b)(G),["stop"])},[A("button",{class:D(d(O).e("button")),"aria-label":d(B)("el.carousel.indicator",{index:G+1})},[d(c)?(S(),M("span",Pte,ge(z.props.label),1)):ie("v-if",!0)],10,Mte)],42,Tte)),[[jt,d(R)(G)]])),128))],2)):ie("v-if",!0)]),_:1}),e.motionBlur?(S(),M("svg",Rte,[...V[8]||(V[8]=[A("defs",null,[A("filter",{id:"elCarouselHorizontal"},[A("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),A("filter",{id:"elCarouselVertical"},[A("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])],-1)])])):ie("v-if",!0)],34))}});const Ote=Me({name:{type:String,default:""},label:{type:[String,Number],default:""}}),Lte=e=>{const t=je(tE),n=Tt(),s=F(),a=F(!1),o=F(0),r=F(1),i=F(!1),l=F(!1),c=F(!1),u=F(!1),{isCardType:f,isVertical:h,cardScale:p}=t;function v(_,x,k){const T=k-1,R=x-1,I=x+1,P=k/2;return x===0&&_===T?-1:x===T&&_===0?k:_<R&&x-_>=P?k+1:_>I&&_-x>=P?-2:_}function m(_,x){var k,T;const R=d(h)?((k=t.root.value)==null?void 0:k.offsetHeight)||0:((T=t.root.value)==null?void 0:T.offsetWidth)||0;return c.value?R*((2-p)*(_-x)+1)/4:_<x?-(1+p)*R/4:(3+p)*R/4}function g(_,x,k){const T=t.root.value;return T?((k?T.offsetHeight:T.offsetWidth)||0)*(_-x):0}const b=(_,x,k)=>{var T;const R=d(f),I=(T=t.items.value.length)!=null?T:Number.NaN,P=_===x;!R&&!Wt(k)&&(u.value=P||_===k),!P&&I>2&&t.loop&&(_=v(_,x,I));const $=d(h);i.value=P,R?(c.value=Math.round(Math.abs(_-x))<=1,o.value=m(_,x),r.value=d(i)?1:p):o.value=g(_,x,$),l.value=!0,P&&s.value&&t.setContainerHeight(s.value.offsetHeight)};function C(){if(t&&d(f)){const _=t.items.value.findIndex(({uid:x})=>x===n.uid);t.setActiveItem(_)}}const w={props:e,states:Gt({hover:a,translate:o,scale:r,active:i,ready:l,inStage:c,animating:u}),uid:n.uid,getVnode:()=>n.vnode,translateItem:b};return t.addItem(w),tn(()=>{t.removeItem(w)}),{carouselItemRef:s,active:i,animating:u,hover:a,inStage:c,isVertical:h,translate:o,isCardType:f,scale:r,ready:l,handleItemClick:C}};var sE=K({name:I3,__name:"carousel-item",props:Ote,setup(e){const t=e,n=Ee("carousel"),{carouselItemRef:s,active:a,animating:o,hover:r,inStage:i,isVertical:l,translate:c,isCardType:u,scale:f,ready:h,handleItemClick:p}=Lte(t),v=E(()=>[n.e("item"),n.is("active",a.value),n.is("in-stage",i.value),n.is("hover",r.value),n.is("animating",o.value),{[n.em("item","card")]:u.value,[n.em("item","card-vertical")]:u.value&&l.value}]),m=E(()=>{const b=`${`translate${d(l)?"Y":"X"}`}(${d(c)}px)`,C=`scale(${d(f)})`;return{transform:[b,C].join(" ")}});return(g,b)=>Ct((S(),M("div",{ref_key:"carouselItemRef",ref:s,class:D(v.value),style:et(m.value),onClick:b[0]||(b[0]=(...C)=>d(p)&&d(p)(...C))},[d(u)?Ct((S(),M("div",{key:0,class:D(d(n).e("mask"))},null,2)),[[jt,!d(a)]]):ie("v-if",!0),ue(g.$slots,"default")],6)),[[jt,d(h)]])}});const Nte=wt(Ite,{CarouselItem:sE}),$te=In(sE),aE=Me({modelValue:{type:re([Number,String,Array,Object])},options:{type:re(Array),default:()=>[]},props:{type:re(Object),default:()=>({})}}),Dte={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:en,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},Fte=Me({...aE,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),oE=e=>!0,Bte={[mt]:oE,[Dt]:oE,close:()=>!0,"expand-change":e=>e},Vte=e=>E(()=>({...Dte,...e.props})),zte=Me({...aE,size:hs,placeholder:String,disabled:{type:Boolean,default:void 0},clearable:Boolean,clearIcon:{type:rn,default:Vo},filterable:Boolean,filterMethod:{type:re(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:re(Function),default:()=>!0},placement:{type:re(String),values:si,default:"bottom-start"},fallbackPlacements:{type:re(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:ln.popperClass,popperStyle:ln.popperStyle,teleported:ln.teleported,effect:{type:re(String),default:"light"},tagType:{...rl.type,default:"info"},tagEffect:{...rl.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},...Su}),rE=e=>!0,Hte={[mt]:rE,[Dt]:rE,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>on(e),expandChange:e=>!!e,removeTag:e=>!!e},iE={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:{type:Boolean,default:void 0},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:hs,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...ua(["ariaControls"])},lE={[mt]:e=>Xe(e)||st(e)||on(e),change:e=>Xe(e)||st(e)||on(e)},zf=Symbol("checkboxGroupContextKey"),Wte=({model:e,isChecked:t})=>{const n=je(zf,void 0),s=je(Eu,void 0),a=E(()=>{var r,i;const l=(r=n==null?void 0:n.max)==null?void 0:r.value,c=(i=n==null?void 0:n.min)==null?void 0:i.value;return!Wt(l)&&e.value.length>=l&&!t.value||!Wt(c)&&e.value.length<=c&&t.value});return{isDisabled:Dn(E(()=>{var r,i;return n===void 0?(r=s==null?void 0:s.disabled)!=null?r:a.value:((i=n.disabled)==null?void 0:i.value)||a.value})),isLimitDisabled:a}},jte=(e,{model:t,isLimitExceeded:n,hasOwnLabel:s,isDisabled:a,isLabeledByFormItem:o})=>{const r=je(zf,void 0),{formItem:i}=Ms(),{emit:l}=Tt();function c(v){var m,g,b,C;return[!0,e.trueValue,e.trueLabel].includes(v)?(g=(m=e.trueValue)!=null?m:e.trueLabel)!=null?g:!0:(C=(b=e.falseValue)!=null?b:e.falseLabel)!=null?C:!1}function u(v,m){l(Dt,c(v),m)}function f(v){if(n.value)return;const m=v.target;l(Dt,c(m.checked),v)}async function h(v){n.value||!s.value&&!a.value&&o.value&&(v.composedPath().some(b=>b.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await ze(),u(t.value,v)))}const p=E(()=>(r==null?void 0:r.validateEvent)||e.validateEvent);return be(()=>e.modelValue,()=>{p.value&&(i==null||i.validate("change").catch(v=>void 0))}),{handleChange:f,onClickRoot:h}},Kte=e=>{const t=F(!1),{emit:n}=Tt(),s=je(zf,void 0),a=E(()=>Wt(s)===!1),o=F(!1),r=E({get(){var i,l;return a.value?(i=s==null?void 0:s.modelValue)==null?void 0:i.value:(l=e.modelValue)!=null?l:t.value},set(i){var l,c;a.value&&Ae(i)?(o.value=((l=s==null?void 0:s.max)==null?void 0:l.value)!==void 0&&i.length>(s==null?void 0:s.max.value)&&i.length>r.value.length,o.value===!1&&((c=s==null?void 0:s.changeEvent)==null||c.call(s,i))):(n(mt,i),t.value=i)}});return{model:r,isGroup:a,isLimitExceeded:o}},Ute=(e,t,{model:n})=>{const s=je(zf,void 0),a=F(!1),o=E(()=>Ua(e.value)?e.label:e.value),r=E(()=>{const u=n.value;return on(u)?u:Ae(u)?bt(o.value)?u.map(pn).some(f=>Hn(f,o.value)):u.map(pn).includes(o.value):u!=null?u===e.trueValue||u===e.trueLabel:!!u}),i=ls(E(()=>{var u;return(u=s==null?void 0:s.size)==null?void 0:u.value}),{prop:!0}),l=ls(E(()=>{var u;return(u=s==null?void 0:s.size)==null?void 0:u.value})),c=E(()=>!!t.default||!Ua(o.value));return{checkboxButtonSize:i,isChecked:r,isFocused:a,checkboxSize:l,hasOwnLabel:c,actualValue:o}},cE=(e,t)=>{const{formItem:n}=Ms(),{model:s,isGroup:a,isLimitExceeded:o}=Kte(e),{isFocused:r,isChecked:i,checkboxButtonSize:l,checkboxSize:c,hasOwnLabel:u,actualValue:f}=Ute(e,t,{model:s}),{isDisabled:h}=Wte({model:s,isChecked:i}),{inputId:p,isLabeledByFormItem:v}=ho(e,{formItemContext:n,disableIdGeneration:u,disableIdManagement:a}),{handleChange:m,onClickRoot:g}=jte(e,{model:s,isLimitExceeded:o,hasOwnLabel:u,isDisabled:h,isLabeledByFormItem:v});return(()=>{function C(){var w,_;Ae(s.value)&&!s.value.includes(f.value)?s.value.push(f.value):s.value=(_=(w=e.trueValue)!=null?w:e.trueLabel)!=null?_:!0}e.checked&&C()})(),li({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},E(()=>a.value&&Ua(e.value))),li({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},E(()=>!!e.trueLabel)),li({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},E(()=>!!e.falseLabel)),{inputId:p,isLabeledByFormItem:v,isChecked:i,isDisabled:h,isFocused:r,checkboxButtonSize:l,checkboxSize:c,hasOwnLabel:u,model:s,actualValue:f,handleChange:m,onClickRoot:g}},qte=["id","indeterminate","name","tabindex","disabled"];var uE=K({name:"ElCheckbox",__name:"checkbox",props:iE,emits:lE,setup(e){const t=e,n=Gn(),{inputId:s,isLabeledByFormItem:a,isChecked:o,isDisabled:r,isFocused:i,checkboxSize:l,hasOwnLabel:c,model:u,actualValue:f,handleChange:h,onClickRoot:p}=cE(t,n),v=E(()=>{var C,w,_,x;return t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":(w=(C=t.trueValue)!=null?C:t.trueLabel)!=null?w:!0,"false-value":(x=(_=t.falseValue)!=null?_:t.falseLabel)!=null?x:!1}:{value:f.value}}),m=Ee("checkbox"),g=E(()=>[m.b(),m.m(l.value),m.is("disabled",r.value),m.is("bordered",t.border),m.is("checked",o.value)]),b=E(()=>[m.e("input"),m.is("disabled",r.value),m.is("checked",o.value),m.is("indeterminate",t.indeterminate),m.is("focus",i.value)]);return(C,w)=>(S(),ce(kt(!d(c)&&d(a)?"span":"label"),{for:!d(c)&&d(a)?null:d(s),class:D(g.value),"aria-controls":e.indeterminate?e.ariaControls:null,"aria-checked":e.indeterminate?"mixed":void 0,"aria-label":e.ariaLabel,onClick:d(p)},{default:X(()=>[A("span",{class:D(b.value)},[Ct(A("input",At({id:d(s),"onUpdate:modelValue":w[0]||(w[0]=_=>yn(u)?u.value=_:null),class:d(m).e("original"),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:d(r)},v.value,{onChange:w[1]||(w[1]=(..._)=>d(h)&&d(h)(..._)),onFocus:w[2]||(w[2]=_=>i.value=!0),onBlur:w[3]||(w[3]=_=>i.value=!1),onClick:w[4]||(w[4]=ht(()=>{},["stop"]))}),null,16,qte),[[lg,d(u)]]),A("span",{class:D(d(m).e("inner"))},null,2)],2),d(c)?(S(),M("span",{key:0,class:D(d(m).e("label"))},[ue(C.$slots,"default"),C.$slots.default?ie("v-if",!0):(S(),M(He,{key:0},[We(ge(e.label),1)],64))],2)):ie("v-if",!0)]),_:3},8,["for","class","aria-controls","aria-checked","aria-label","onClick"]))}});const Gte=["name","tabindex","disabled"];var O3=K({name:"ElCheckboxButton",__name:"checkbox-button",props:iE,emits:lE,setup(e){const t=e,n=Gn(),{isFocused:s,isChecked:a,isDisabled:o,checkboxButtonSize:r,model:i,actualValue:l,handleChange:c}=cE(t,n),u=E(()=>{var m,g,b,C;return t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":(g=(m=t.trueValue)!=null?m:t.trueLabel)!=null?g:!0,"false-value":(C=(b=t.falseValue)!=null?b:t.falseLabel)!=null?C:!1}:{value:l.value}}),f=je(zf,void 0),h=Ee("checkbox"),p=E(()=>{var m,g,b,C;const w=(g=(m=f==null?void 0:f.fill)==null?void 0:m.value)!=null?g:"";return{backgroundColor:w,borderColor:w,color:(C=(b=f==null?void 0:f.textColor)==null?void 0:b.value)!=null?C:"",boxShadow:w?`-1px 0 0 0 ${w}`:void 0}}),v=E(()=>[h.b("button"),h.bm("button",r.value),h.is("disabled",o.value),h.is("checked",a.value),h.is("focus",s.value)]);return(m,g)=>(S(),M("label",{class:D(v.value)},[Ct(A("input",At({"onUpdate:modelValue":g[0]||(g[0]=b=>yn(i)?i.value=b:null),class:d(h).be("button","original"),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:d(o)},u.value,{onChange:g[1]||(g[1]=(...b)=>d(c)&&d(c)(...b)),onFocus:g[2]||(g[2]=b=>s.value=!0),onBlur:g[3]||(g[3]=b=>s.value=!1),onClick:g[4]||(g[4]=ht(()=>{},["stop"]))}),null,16,Gte),[[lg,d(i)]]),m.$slots.default||e.label?(S(),M("span",{key:0,class:D(d(h).be("button","inner")),style:et(d(a)?p.value:void 0)},[ue(m.$slots,"default",{},()=>[We(ge(e.label),1)])],6)):ie("v-if",!0)],2))}});const Yte=Me({modelValue:{type:re(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:hs,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:re(Array)},props:{type:re(Object),default:()=>dE},type:{type:String,values:["checkbox","button"],default:"checkbox"},...ua(["ariaLabel"])}),Xte={[mt]:e=>Ae(e),change:e=>Ae(e)},dE={label:"label",value:"value",disabled:"disabled"};var fE=K({name:"ElCheckboxGroup",__name:"checkbox-group",props:Yte,emits:Xte,setup(e,{emit:t}){const n=e,s=t,a=Ee("checkbox"),o=Dn(),{formItem:r}=Ms(),{inputId:i,isLabeledByFormItem:l}=ho(n,{formItemContext:r}),c=async v=>{s(mt,v),await ze(),s(Dt,v)},u=E({get(){return n.modelValue},set(v){c(v)}}),f=E(()=>({...dE,...n.props})),h=v=>{const{label:m,value:g,disabled:b}=f.value,C={label:v[m],value:v[g],disabled:v[b]};return{...mp(v,[m,g,b]),...C}},p=E(()=>n.type==="button"?O3:uE);return Nt(zf,{...Yi(_s(n),["size","min","max","validateEvent","fill","textColor"]),disabled:o,modelValue:u,changeEvent:c}),be(()=>n.modelValue,(v,m)=>{n.validateEvent&&!Hn(v,m)&&(r==null||r.validate("change").catch(g=>void 0))}),(v,m)=>{var g;return S(),ce(kt(e.tag),{id:d(i),class:D(d(a).b("group")),role:"group","aria-label":d(l)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":d(l)?(g=d(r))==null?void 0:g.labelId:void 0},{default:X(()=>[ue(v.$slots,"default",{},()=>[(S(!0),M(He,null,Et(e.options,(b,C)=>(S(),ce(kt(p.value),At({key:C},{ref_for:!0},h(b)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});const yr=wt(uE,{CheckboxButton:O3,CheckboxGroup:fE}),Jte=In(O3),L3=In(fE),hE=Me({modelValue:{type:[String,Number,Boolean],default:void 0},size:hs,disabled:{type:Boolean,default:void 0},label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),Zte=Me({...hE,border:Boolean}),pE={[mt]:e=>Xe(e)||st(e)||on(e),[Dt]:e=>Xe(e)||st(e)||on(e)},vE=Symbol("radioGroupKey"),mE=(e,t)=>{const n=F(),s=je(vE,void 0),a=E(()=>!!s),o=E(()=>Ua(e.value)?e.label:e.value),r=E({get(){return a.value?s.modelValue:e.modelValue},set(f){a.value?s.changeEvent(f):t&&t(mt,f),n.value.checked=e.modelValue===o.value}}),i=ls(E(()=>s==null?void 0:s.size)),l=Dn(E(()=>s==null?void 0:s.disabled)),c=F(!1),u=E(()=>l.value||a.value&&r.value!==o.value?-1:0);return li({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},E(()=>a.value&&Ua(e.value))),{radioRef:n,isGroup:a,radioGroup:s,focus:c,size:i,disabled:l,tabIndex:u,modelValue:r,actualValue:o}},Qte=["value","name","disabled","checked"];var gE=K({name:"ElRadio",__name:"radio",props:Zte,emits:pE,setup(e,{emit:t}){const n=e,s=t,a=Ee("radio"),{radioRef:o,radioGroup:r,focus:i,size:l,disabled:c,modelValue:u,actualValue:f}=mE(n,s);function h(){ze(()=>s(Dt,u.value))}return(p,v)=>{var m;return S(),M("label",{class:D([d(a).b(),d(a).is("disabled",d(c)),d(a).is("focus",d(i)),d(a).is("bordered",e.border),d(a).is("checked",d(u)===d(f)),d(a).m(d(l))])},[A("span",{class:D([d(a).e("input"),d(a).is("disabled",d(c)),d(a).is("checked",d(u)===d(f))])},[Ct(A("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":v[0]||(v[0]=g=>yn(u)?u.value=g:null),class:D(d(a).e("original")),value:d(f),name:e.name||((m=d(r))==null?void 0:m.name),disabled:d(c),checked:d(u)===d(f),type:"radio",onFocus:v[1]||(v[1]=g=>i.value=!0),onBlur:v[2]||(v[2]=g=>i.value=!1),onChange:h,onClick:v[3]||(v[3]=ht(()=>{},["stop"]))},null,42,Qte),[[YS,d(u)]]),A("span",{class:D(d(a).e("inner"))},null,2)],2),A("span",{class:D(d(a).e("label")),onKeydown:v[4]||(v[4]=ht(()=>{},["stop"]))},[ue(p.$slots,"default",{},()=>[We(ge(e.label),1)])],34)],2)}}});const ene=Me({...hE}),tne=["value","name","disabled"];var N3=K({name:"ElRadioButton",__name:"radio-button",props:ene,setup(e){const t=e,n=Ee("radio"),{radioRef:s,focus:a,size:o,disabled:r,modelValue:i,radioGroup:l,actualValue:c}=mE(t),u=E(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(f,h)=>{var p;return S(),M("label",{class:D([d(n).b("button"),d(n).is("active",d(i)===d(c)),d(n).is("disabled",d(r)),d(n).is("focus",d(a)),d(n).bm("button",d(o))])},[Ct(A("input",{ref_key:"radioRef",ref:s,"onUpdate:modelValue":h[0]||(h[0]=v=>yn(i)?i.value=v:null),class:D(d(n).be("button","original-radio")),value:d(c),type:"radio",name:e.name||((p=d(l))==null?void 0:p.name),disabled:d(r),onFocus:h[1]||(h[1]=v=>a.value=!0),onBlur:h[2]||(h[2]=v=>a.value=!1),onClick:h[3]||(h[3]=ht(()=>{},["stop"]))},null,42,tne),[[YS,d(i)]]),A("span",{class:D(d(n).be("button","inner")),style:et(d(i)===d(c)?u.value:{}),onKeydown:h[4]||(h[4]=ht(()=>{},["stop"]))},[ue(f.$slots,"default",{},()=>[We(ge(e.label),1)])],38)],2)}}});const bE={label:"label",value:"value",disabled:"disabled"},nne=Me({id:{type:String,default:void 0},size:hs,disabled:{type:Boolean,default:void 0},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},options:{type:re(Array)},props:{type:re(Object),default:()=>bE},type:{type:String,values:["radio","button"],default:"radio"},...ua(["ariaLabel"])}),sne=pE,ane=["id","aria-label","aria-labelledby"];var yE=K({name:"ElRadioGroup",__name:"radio-group",props:nne,emits:sne,setup(e,{emit:t}){const n=e,s=t,a=Ee("radio"),o=Vs(),r=F(),{formItem:i}=Ms(),{inputId:l,isLabeledByFormItem:c}=ho(n,{formItemContext:i}),u=m=>{s(mt,m),ze(()=>s(Dt,m))};Mt(()=>{const m=r.value.querySelectorAll("[type=radio]"),g=m[0];!Array.from(m).some(b=>b.checked)&&g&&(g.tabIndex=0)});const f=E(()=>n.name||o.value),h=E(()=>({...bE,...n.props})),p=m=>{const{label:g,value:b,disabled:C}=h.value,w={label:m[g],value:m[b],disabled:m[C]};return{...mp(m,[g,b,C]),...w}},v=E(()=>n.type==="button"?N3:gE);return Nt(vE,Gt({..._s(n),changeEvent:u,name:f})),be(()=>n.modelValue,(m,g)=>{n.validateEvent&&!Hn(m,g)&&(i==null||i.validate("change").catch(b=>void 0))}),(m,g)=>(S(),M("div",{id:d(l),ref_key:"radioGroupRef",ref:r,class:D(d(a).b("group")),role:"radiogroup","aria-label":d(c)?void 0:e.ariaLabel||"radio-group","aria-labelledby":d(c)?d(i).labelId:void 0},[ue(m.$slots,"default",{},()=>[(S(!0),M(He,null,Et(e.options,(b,C)=>(S(),ce(kt(v.value),At({key:C},{ref_for:!0},p(b)),null,16))),128))])],10,ane))}});const wE=wt(gE,{RadioButton:N3,RadioGroup:yE}),one=In(yE),rne=In(N3),Zg=Symbol();function ine(e){return!!(Ae(e)?e.every(({type:t})=>t===Jn):(e==null?void 0:e.type)===Jn)}var lne=K({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const t=Ee("cascader-node"),{renderLabelFn:n}=je(Zg),{node:s}=e,{data:a,label:o}=s,r=()=>{const i=n==null?void 0:n({node:s,data:a});return ine(i)?o:i??o};return()=>W("span",{class:t.e("label")},[r()])}});const cne=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"];var une=K({name:"ElCascaderNode",__name:"node",props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=e,s=t,a=je(Zg),o=Ee("cascader-node"),r=E(()=>a.isHoverMenu),i=E(()=>a.config.multiple),l=E(()=>a.config.checkStrictly),c=E(()=>a.config.showPrefix),u=E(()=>{var I;return(I=a.checkedNodes[0])==null?void 0:I.uid}),f=E(()=>n.node.isDisabled),h=E(()=>n.node.isLeaf),p=E(()=>l.value&&!h.value||!f.value),v=E(()=>g(a.expandingNode)),m=E(()=>l.value&&a.checkedNodes.some(g)),g=I=>{var P;const{level:$,uid:O}=n.node;return((P=I==null?void 0:I.pathNodes[$-1])==null?void 0:P.uid)===O},b=()=>{v.value||a.expandNode(n.node)},C=I=>{const{node:P}=n;I!==P.checked&&a.handleCheckChange(P,I)},w=()=>{a.lazyLoad(n.node,()=>{h.value||b()})},_=I=>{r.value&&(x(),!h.value&&s("expand",I))},x=()=>{const{node:I}=n;!p.value||I.loading||(I.loaded?b():w())},k=()=>{h.value&&!f.value&&!l.value&&!i.value?R(!0):(a.config.checkOnClickNode&&(i.value||l.value)||h.value&&a.config.checkOnClickLeaf)&&!f.value?T(!n.node.checked):r.value||x()},T=I=>{l.value?(C(I),n.node.loaded&&b()):R(I)},R=I=>{n.node.loaded?(C(I),!l.value&&b()):w()};return(I,P)=>(S(),M("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!h.value,"aria-owns":h.value?void 0:e.menuId,"aria-expanded":v.value,tabindex:p.value?-1:void 0,class:D([d(o).b(),d(o).is("selectable",l.value),d(o).is("active",e.node.checked),d(o).is("disabled",!p.value),v.value&&"in-active-path",m.value&&"in-checked-path"]),onMouseenter:_,onFocus:_,onClick:k},[ie(" prefix "),i.value&&c.value?(S(),ce(d(yr),{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:f.value,onClick:P[0]||(P[0]=ht(()=>{},["stop"])),"onUpdate:modelValue":T},null,8,["model-value","indeterminate","disabled"])):l.value&&c.value?(S(),ce(d(wE),{key:1,"model-value":u.value,label:e.node.uid,disabled:f.value,"onUpdate:modelValue":T,onClick:P[1]||(P[1]=ht(()=>{},["stop"]))},{default:X(()=>[ie(`
|
||
Add an empty element to avoid render label,
|
||
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
|
||
`),P[2]||(P[2]=A("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):h.value&&e.node.checked?(S(),ce(d(Je),{key:2,class:D(d(o).e("prefix"))},{default:X(()=>[W(d(Pf))]),_:1},8,["class"])):ie("v-if",!0),ie(" content "),W(d(lne),{node:e.node},null,8,["node"]),ie(" postfix "),h.value?ie("v-if",!0):(S(),M(He,{key:3},[e.node.loading?(S(),ce(d(Je),{key:0,class:D([d(o).is("loading"),d(o).e("postfix")])},{default:X(()=>[W(d(Bs))]),_:1},8,["class"])):(S(),ce(d(Je),{key:1,class:D(["arrow-right",d(o).e("postfix")])},{default:X(()=>[W(d(Fs))]),_:1},8,["class"]))],64))],42,cne))}}),dne=K({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=e,n=Tt(),s=Ee("cascader-menu"),{t:a}=Ft(),o=Vs();let r,i;const l=je(Zg),c=F(),u=E(()=>!t.nodes.length),f=E(()=>!l.initialLoaded),h=E(()=>`${o.value}-${t.index}`),p=b=>{r=b.target},v=b=>{var C;if(!(!l.isHoverMenu||!r||!c.value))if(r.contains(b.target)){m();const w=n.vnode.el,{left:_}=w.getBoundingClientRect(),{offsetWidth:x,offsetHeight:k}=w,T=b.clientX-_,R=r.offsetTop,I=R+r.offsetHeight,P=((C=w.querySelector(`.${s.e("wrap")}`))==null?void 0:C.scrollTop)||0;c.value.innerHTML=`
|
||
<path style="pointer-events: auto;" fill="transparent" d="M${T} ${R} L${x} ${P} V${R} Z" />
|
||
<path style="pointer-events: auto;" fill="transparent" d="M${T} ${I} L${x} ${k+P} V${I} Z" />
|
||
`}else i||(i=window.setTimeout(g,l.config.hoverThreshold))},m=()=>{i&&(clearTimeout(i),i=void 0)},g=()=>{c.value&&(c.value.innerHTML="",m())};return(b,C)=>(S(),ce(d(gr),{key:h.value,tag:"ul",role:"menu",class:D(d(s).b()),"wrap-class":d(s).e("wrap"),"view-class":[d(s).e("list"),d(s).is("empty",u.value)],onMousemove:v,onMouseleave:g},{default:X(()=>{var w;return[(S(!0),M(He,null,Et(e.nodes,_=>(S(),ce(une,{key:_.uid,node:_,"menu-id":h.value,onExpand:p},null,8,["node","menu-id"]))),128)),f.value?(S(),M("div",{key:0,class:D(d(s).e("empty-text"))},[W(d(Je),{size:"14",class:D(d(s).is("loading"))},{default:X(()=>[W(d(Bs))]),_:1},8,["class"]),We(" "+ge(d(a)("el.cascader.loading")),1)],2)):u.value?(S(),M("div",{key:1,class:D(d(s).e("empty-text"))},[ue(b.$slots,"empty",{},()=>[We(ge(d(a)("el.cascader.noData")),1)])],2)):(w=d(l))!=null&&w.isHoverMenu?(S(),M(He,{key:2},[ie(" eslint-disable vue/html-self-closing "),(S(),M("svg",{ref_key:"hoverZone",ref:c,class:D(d(s).e("hover-zone"))},null,2))],2112)):ie("v-if",!0),ie(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}}),fne=Object.defineProperty,hne=(e,t,n)=>t in e?fne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ja=(e,t,n)=>hne(e,typeof t!="symbol"?t+"":t,n);let pne=0;const vne=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let $3=class zw{constructor(t,n,s,a=!1){this.data=t,this.config=n,this.parent=s,this.root=a,Ja(this,"uid",pne++),Ja(this,"level"),Ja(this,"value"),Ja(this,"label"),Ja(this,"pathNodes"),Ja(this,"pathValues"),Ja(this,"pathLabels"),Ja(this,"childrenData"),Ja(this,"children"),Ja(this,"text"),Ja(this,"loaded"),Ja(this,"checked",!1),Ja(this,"indeterminate",!1),Ja(this,"loading",!1);const{value:o,label:r,children:i}=n,l=t[i],c=vne(this);this.level=a?0:s?s.level+1:1,this.value=t[o],this.label=t[r],this.pathNodes=c,this.pathValues=c.map(u=>u.value),this.pathLabels=c.map(u=>u.label),this.childrenData=l,this.children=(l||[]).map(u=>new zw(u,n,this)),this.loaded=!n.lazy||this.isLeaf||!Ia(l),this.text=""}get isDisabled(){const{data:t,parent:n,config:s}=this,{disabled:a,checkStrictly:o}=s;return(Qe(a)?a(t,this):!!t[a])||!o&&!!(n!=null&&n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:s,loaded:a}=this,{lazy:o,leaf:r}=n,i=Qe(r)?r(t,this):t[r];return Wt(i)?o&&!a?!1:!(Ae(s)&&s.length):!!i}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:s}=this,a=new zw(t,this.config,this);return Ae(n)?n.push(t):this.childrenData=[t],s.push(a),a}calcText(t,n){const s=t?this.pathLabels.join(n):this.label;return this.text=s,s}broadcast(t){this.children.forEach(n=>{var s;n&&(n.broadcast(t),(s=n.onParentCheck)==null||s.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(a=>!a.isDisabled),s=n.length?n.every(a=>a.checked):!1;this.setCheckState(s)}setCheckState(t){const n=this.children.length,s=this.children.reduce((a,o)=>{const r=o.checked?1:o.indeterminate?.5:0;return a+r},0);this.checked=this.loaded&&this.children.filter(a=>!a.isDisabled).every(a=>a.loaded&&a.checked)&&t,this.indeterminate=this.loaded&&s!==n&&s>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:s}=this.config;n||!s?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};var mne=Object.defineProperty,gne=(e,t,n)=>t in e?mne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D3=(e,t,n)=>gne(e,typeof t!="symbol"?t+"":t,n);const F3=(e,t)=>e.reduce((n,s)=>(s.isLeaf?n.push(s):(!t&&n.push(s),n=n.concat(F3(s.children,t))),n),[]);class _E{constructor(t,n){this.config=n,D3(this,"nodes"),D3(this,"allNodes"),D3(this,"leafNodes");const s=(t||[]).map(a=>new $3(a,this.config));this.nodes=s,this.allNodes=F3(s,!1),this.leafNodes=F3(s,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const s=n?n.appendChild(t):new $3(t,this.config);n||this.nodes.push(s),this.appendAllNodesAndLeafNodes(s)}appendNodes(t,n){t.length>0?t.forEach(s=>this.appendNode(s,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 Ua(t)?null:this.getFlattedNodes(n).find(a=>Hn(a.value,t)||Hn(a.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:s,level:a})=>Hn(t.value,s)&&t.level===a)||null}}const CE=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},bne=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():Y9(e)&&e.click()},yne=(e,t)=>{const n=t.slice(0),s=n.map(o=>o.uid),a=e.reduce((o,r)=>{const i=s.indexOf(r.uid);return i>-1&&(o.push(r),n.splice(i,1),s.splice(i,1)),o},[]);return a.push(...n),a};var wne=K({name:"ElCascaderPanel",__name:"index",props:Fte,emits:Bte,setup(e,{expose:t,emit:n}){const s=e,a=n;let o=!1;const r=Ee("cascader"),i=Vte(s),l=Gn();let c;const u=F(!0),f=F(!1),h=F([]),p=F(),v=F([]),m=F(),g=F([]),b=E(()=>i.value.expandTrigger==="hover"),C=E(()=>s.renderLabel||l.default),w=()=>{const{options:N}=s,L=i.value;o=!1,c=new _E(N,L),v.value=[c.getNodes()],L.lazy&&Ia(s.options)?(u.value=!1,_(void 0,V=>{V&&(c=new _E(V,L),v.value=[c.getNodes()]),u.value=!0,O(!1,!0)})):O(!1,!0)},_=(N,L)=>{const V=i.value;N=N||new $3({},V,void 0,!0),N.loading=!0;const z=Q=>{const U=N,ee=U.root?null:U;U.loading=!1,U.loaded=!0,U.childrenData=U.childrenData||[],Q&&(c==null||c.appendNodes(Q,ee)),Q&&(L==null||L(Q)),N.level===0&&(f.value=!0)},G=()=>{N.loading=!1,N.loaded=!1,N.level===0&&(u.value=!0)};V.lazyLoad(N,z,G)},x=(N,L)=>{var V;const{level:z}=N,G=v.value.slice(0,z);let Q;N.isLeaf?Q=N.pathNodes[z-2]:(Q=N,G.push(N.children)),((V=m.value)==null?void 0:V.uid)!==(Q==null?void 0:Q.uid)&&(m.value=N,v.value=G,!L&&a("expand-change",(N==null?void 0:N.pathValues)||[]))},k=(N,L,V=!0)=>{const{checkStrictly:z,multiple:G}=i.value,Q=g.value[0];o=!0,!G&&(Q==null||Q.doCheck(!1)),N.doCheck(L),$(),V&&!G&&!z&&a("close"),!V&&!G&&T(N)},T=N=>{N&&(N=N.parent,T(N),N&&x(N))},R=N=>c==null?void 0:c.getFlattedNodes(N),I=N=>{var L;return(L=R(N))==null?void 0:L.filter(({checked:V})=>V!==!1)},P=()=>{g.value.forEach(N=>N.doCheck(!1)),$(),v.value=v.value.slice(0,1),m.value=void 0,a("expand-change",[])},$=()=>{var N;const{checkStrictly:L,multiple:V}=i.value,z=g.value,G=I(!L),Q=yne(z,G),U=Q.map(ee=>ee.valueByOption);g.value=Q,p.value=V?U:(N=U[0])!=null?N:null},O=(N=!1,L=!1)=>{const{modelValue:V}=s,{lazy:z,multiple:G,checkStrictly:Q}=i.value,U=!Q;if(!(!u.value||o||!L&&Hn(V,p.value)))if(z&&!N){const se=Sk(cV(fa(V))).map(de=>c==null?void 0:c.getNodeByValue(de)).filter(de=>!!de&&!de.loaded&&!de.loading);se.length?se.forEach(de=>{_(de,()=>O(!1,L))}):O(!0,L)}else{const ee=G?fa(V):[V],se=Sk(ee.map(de=>c==null?void 0:c.getNodeByValue(de,U)));B(se,L),p.value=bg(V??void 0)}},B=(N,L=!0)=>{const{checkStrictly:V}=i.value,z=g.value,G=N.filter(ee=>!!ee&&(V||ee.isLeaf)),Q=c==null?void 0:c.getSameNode(m.value),U=L&&Q||G[0];U?U.pathNodes.forEach(ee=>x(ee,!0)):m.value=void 0,z.forEach(ee=>ee.doCheck(!1)),Gt(G).forEach(ee=>ee.doCheck(!0)),g.value=G,ze(H)},H=()=>{Yt&&h.value.forEach(N=>{const L=N==null?void 0:N.$el;if(L){const V=L.querySelector(`.${r.namespace.value}-scrollbar__wrap`);let z=L.querySelector(`.${r.b("node")}.in-active-path`);if(!z){const G=L.querySelectorAll(`.${r.b("node")}.${r.is("active")}`);z=G[G.length-1]}Vy(V,z)}})},J=N=>{const L=N.target,V=un(N);switch(V){case Te.up:case Te.down:{N.preventDefault();const z=V===Te.up?-1:1;Vg(X9(L,z,`.${r.b("node")}[tabindex="-1"]`));break}case Te.left:{N.preventDefault();const z=h.value[CE(L)-1],G=z==null?void 0:z.$el.querySelector(`.${r.b("node")}[aria-expanded="true"]`);Vg(G);break}case Te.right:{N.preventDefault();const z=h.value[CE(L)+1],G=z==null?void 0:z.$el.querySelector(`.${r.b("node")}[tabindex="-1"]`);Vg(G);break}case Te.enter:case Te.numpadEnter:bne(L);break}};Nt(Zg,Gt({config:i,expandingNode:m,checkedNodes:g,isHoverMenu:b,initialLoaded:u,renderLabelFn:C,lazyLoad:_,expandNode:x,handleCheckChange:k})),be(i,(N,L)=>{Hn(N,L)||w()},{immediate:!0}),be(()=>s.options,w,{deep:!0}),be(()=>s.modelValue,()=>{o=!1,O()},{deep:!0}),be(()=>p.value,N=>{Hn(N,s.modelValue)||(a(mt,N),a(Dt,N))});const Y=()=>{f.value||w()};return B4(()=>h.value=[]),Mt(()=>!Ia(s.modelValue)&&O()),t({menuList:h,menus:v,checkedNodes:g,handleKeyDown:J,handleCheckChange:k,getFlattedNodes:R,getCheckedNodes:I,clearCheckedNodes:P,calculateCheckedValue:$,scrollToExpandingNode:H,loadLazyRootNodes:Y}),(N,L)=>(S(),M("div",{class:D([d(r).b("panel"),d(r).is("bordered",e.border)]),onKeydown:J},[(S(!0),M(He,null,Et(v.value,(V,z)=>(S(),ce(dne,{key:z,ref_for:!0,ref:G=>h.value[z]=G,index:z,nodes:[...V]},{empty:X(()=>[ue(N.$slots,"empty")]),_:3},8,["index","nodes"]))),128))],34))}});const SE=wt(wne),_ne=["placeholder"],Cne=["onClick"];var Sne=K({name:"ElCascader",__name:"cascader",props:zte,emits:Hte,setup(e,{expose:t,emit:n}){const s={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:Ve})=>{const{modifiersData:nt,placement:gt}=Ve;["right","left","bottom","top"].includes(gt)||nt.arrow&&(nt.arrow.x=35)},requires:["arrow"]}]},a=e,o=n,r=Hi(),i=Gn();let l=0,c=0;const u=Ee("cascader"),f=Ee("input"),h={small:7,default:11,large:15},{t:p}=Ft(),{formItem:v}=Ms(),m=Dn(),{valueOnClear:g}=Cp(a),{isComposing:b,handleComposition:C}=Bp({afterComposition(Ve){var nt;const gt=(nt=Ve.target)==null?void 0:nt.value;xt(gt)}}),w=F(),_=F(),x=F(),k=F(),T=F(),R=F(),I=F(!1),P=F(!1),$=F(!1),O=F(""),B=F(""),H=F([]),J=F([]),Y=E(()=>a.props.multiple?a.collapseTags?H.value.slice(0,a.maxCollapseTags):H.value:[]),N=E(()=>a.props.multiple?a.collapseTags?H.value.slice(a.maxCollapseTags):[]:[]),L=E(()=>r.style),V=E(()=>{var Ve;return(Ve=a.placeholder)!=null?Ve:p("el.cascader.placeholder")}),z=E(()=>B.value||H.value.length>0||b.value?"":V.value),G=ls(),Q=E(()=>G.value==="small"?"small":"default"),U=E(()=>!!a.props.multiple),ee=E(()=>!a.filterable||U.value),se=E(()=>U.value?B.value:O.value),de=E(()=>{var Ve;return((Ve=T.value)==null?void 0:Ve.checkedNodes)||[]}),{wrapperRef:te,isFocused:pe,handleBlur:he}=nl(x,{disabled:m,beforeBlur(Ve){var nt,gt;return((nt=w.value)==null?void 0:nt.isFocusInsideContent(Ve))||((gt=_.value)==null?void 0:gt.isFocusInsideContent(Ve))},afterBlur(){var Ve;a.validateEvent&&((Ve=v==null?void 0:v.validate)==null||Ve.call(v,"blur").catch(nt=>void 0))}}),le=E(()=>!a.clearable||m.value||$.value||!P.value&&!pe.value?!1:!!de.value.length),Z=E(()=>{const{showAllLevels:Ve,separator:nt}=a,gt=de.value;return gt.length?U.value?"":gt[0].calcText(Ve,nt):""}),j=E(()=>(v==null?void 0:v.validateState)||""),ae=E({get(){return bg(a.modelValue)},set(Ve){const nt=Ve??g.value;o(mt,nt),o(Dt,nt),a.validateEvent&&(v==null||v.validate("change").catch(gt=>void 0))}}),fe=E(()=>[u.b(),u.m(G.value),u.is("disabled",m.value),r.class]),we=E(()=>[f.e("icon"),"icon-arrow-down",u.is("reverse",I.value)]),Se=E(()=>u.is("focus",pe.value)),ke=E(()=>{var Ve,nt;return(nt=(Ve=w.value)==null?void 0:Ve.popperRef)==null?void 0:nt.contentRef}),Oe=Ve=>{if(pe.value){const nt=new FocusEvent("blur",Ve);he(nt)}Be(!1)},Be=Ve=>{var nt,gt;m.value||(Ve=Ve??!I.value,Ve!==I.value&&(I.value=Ve,(gt=(nt=x.value)==null?void 0:nt.input)==null||gt.setAttribute("aria-expanded",`${Ve}`),Ve?(Le(),T.value&&ze(T.value.scrollToExpandingNode)):a.filterable&&yt(),o("visibleChange",Ve)))},Le=()=>{ze(()=>{var Ve;(Ve=w.value)==null||Ve.updatePopper()})},Ce=()=>{$.value=!1},Ie=Ve=>{const{showAllLevels:nt,separator:gt}=a;return{node:Ve,key:Ve.uid,text:Ve.calcText(nt,gt),hitState:!1,closable:!m.value&&!Ve.isDisabled}},Re=Ve=>{var nt;const gt=Ve.node;gt.doCheck(!1),(nt=T.value)==null||nt.calculateCheckedValue(),o("removeTag",gt.valueByOption)},Ke=()=>{switch(a.showCheckedStrategy){case"child":return de.value;case"parent":{const Ve=Ze(!1),nt=Ve.map(An=>An.value);return Ve.filter(An=>!An.parent||!nt.includes(An.parent.value))}default:return[]}},tt=()=>{if(!U.value)return;const Ve=Ke(),nt=[];Ve.forEach(gt=>nt.push(Ie(gt))),H.value=nt},ut=()=>{var Ve,nt;const{filterMethod:gt,showAllLevels:An,separator:Zt}=a,rt=(nt=(Ve=T.value)==null?void 0:Ve.getFlattedNodes(!a.props.checkStrictly))==null?void 0:nt.filter(dt=>dt.isDisabled?!1:(dt.calcText(An,Zt),gt(dt,se.value)));U.value&&H.value.forEach(dt=>{dt.hitState=!1}),$.value=!0,J.value=rt,Le()},Fe=()=>{var Ve;let nt;$.value&&R.value?nt=R.value.$el.querySelector(`.${u.e("suggestion-item")}`):nt=(Ve=T.value)==null?void 0:Ve.$el.querySelector(`.${u.b("node")}[tabindex="-1"]`),nt&&(nt.focus(),!$.value&&nt.click())},Ue=()=>{var Ve,nt,gt;const An=(Ve=x.value)==null?void 0:Ve.input,Zt=k.value,rt=(nt=R.value)==null?void 0:nt.$el;if(!(!Yt||!An)){if(rt){const dt=rt.querySelector(`.${u.e("suggestion-list")}`);dt.style.minWidth=`${An.offsetWidth}px`}if(Zt){const{offsetHeight:dt}=Zt,Pt=H.value.length>0?`${Math.max(dt,l)-2}px`:`${l}px`;if(An.style.height=Pt,i.prefix){const Vn=(gt=x.value)==null?void 0:gt.$el.querySelector(`.${f.e("prefix")}`);let aa=0;Vn&&(aa=Vn.offsetWidth,aa>0&&(aa+=h[G.value||"default"])),Zt.style.left=`${aa}px`}else Zt.style.left="0";Le()}}},Ze=Ve=>{var nt;return(nt=T.value)==null?void 0:nt.getCheckedNodes(Ve)},Ot=Ve=>{Le(),o("expandChange",Ve)},Xt=Ve=>{if(b.value)return;switch(un(Ve)){case Te.enter:case Te.numpadEnter:Be();break;case Te.down:Be(!0),ze(Fe),Ve.preventDefault();break;case Te.esc:I.value===!0&&(Ve.preventDefault(),Ve.stopPropagation(),Be(!1));break;case Te.tab:Be(!1);break}},it=()=>{var Ve;(Ve=T.value)==null||Ve.clearCheckedNodes(),!I.value&&a.filterable&&yt(),Be(!1),o("clear")},yt=()=>{const{value:Ve}=Z;O.value=Ve,B.value=Ve},Lt=Ve=>{var nt,gt;const{checked:An}=Ve;U.value?(nt=T.value)==null||nt.handleCheckChange(Ve,!An,!1):(!An&&((gt=T.value)==null||gt.handleCheckChange(Ve,!0,!1)),Be(!1))},xe=Ve=>{const nt=Ve.target,gt=un(Ve);switch(gt){case Te.up:case Te.down:{Ve.preventDefault();const An=gt===Te.up?-1:1;Vg(X9(nt,An,`.${u.e("suggestion-item")}[tabindex="-1"]`));break}case Te.enter:case Te.numpadEnter:nt.click();break}},qe=()=>{const Ve=H.value[H.value.length-1];c=B.value?0:c+1,!(!Ve||!c||a.collapseTags&&H.value.length>1)&&(Ve.hitState?Re(Ve):Ve.hitState=!0)},_e=E(()=>a.debounce),Ye=yp(()=>{const{value:Ve}=se;if(!Ve)return;const nt=a.beforeFilter(Ve);au(nt)?nt.then(ut).catch(()=>{}):nt!==!1?ut():Ce()},_e),xt=(Ve,nt)=>{!I.value&&Be(!0),!(nt!=null&&nt.isComposing)&&(Ve?Ye():Ce())},Jt=Ve=>Number.parseFloat(ZV(f.cssVarName("input-height"),Ve).value)-2,Sn=()=>{var Ve;(Ve=x.value)==null||Ve.focus()},En=()=>{var Ve;(Ve=x.value)==null||Ve.blur()};return be($,Le),be([de,m,()=>a.collapseTags,()=>a.maxCollapseTags],tt),be(H,()=>{ze(()=>Ue())}),be(G,async()=>{await ze();const Ve=x.value.input;l=Jt(Ve)||l,Ue()}),be(Z,yt,{immediate:!0}),be(()=>I.value,Ve=>{var nt;Ve&&a.props.lazy&&a.props.lazyLoad&&((nt=T.value)==null||nt.loadLazyRootNodes())}),Mt(()=>{const Ve=x.value.input,nt=Jt(Ve);l=Ve.offsetHeight||nt,Tn(Ve,Ue)}),t({getCheckedNodes:Ze,cascaderPanelRef:T,togglePopperVisible:Be,contentRef:ke,presentText:Z,focus:Sn,blur:En}),(Ve,nt)=>(S(),ce(d(Ps),{ref_key:"tooltipRef",ref:w,visible:I.value,teleported:e.teleported,"popper-class":[d(u).e("dropdown"),e.popperClass],"popper-style":e.popperStyle,"popper-options":s,"fallback-placements":e.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:e.placement,transition:`${d(u).namespace.value}-zoom-in-top`,effect:e.effect,pure:"",persistent:e.persistent,onHide:Ce},{default:X(()=>[Ct((S(),M("div",{ref_key:"wrapperRef",ref:te,class:D(fe.value),style:et(L.value),onClick:nt[8]||(nt[8]=()=>Be(ee.value?void 0:!0)),onKeydown:Xt,onMouseenter:nt[9]||(nt[9]=gt=>P.value=!0),onMouseleave:nt[10]||(nt[10]=gt=>P.value=!1)},[W(d(da),{ref_key:"inputRef",ref:x,modelValue:O.value,"onUpdate:modelValue":nt[1]||(nt[1]=gt=>O.value=gt),placeholder:z.value,readonly:ee.value,disabled:d(m),"validate-event":!1,size:d(G),class:D(Se.value),tabindex:U.value&&e.filterable&&!d(m)?-1:void 0,onCompositionstart:d(C),onCompositionupdate:d(C),onCompositionend:d(C),onInput:xt},Ta({suffix:X(()=>[le.value?(S(),ce(d(Je),{key:"clear",class:D([d(f).e("icon"),"icon-circle-close"]),onClick:ht(it,["stop"])},{default:X(()=>[(S(),ce(kt(e.clearIcon)))]),_:1},8,["class"])):(S(),ce(d(Je),{key:"arrow-down",class:D(we.value),onClick:nt[0]||(nt[0]=ht(gt=>Be(),["stop"]))},{default:X(()=>[W(d(mr))]),_:1},8,["class"]))]),_:2},[Ve.$slots.prefix?{name:"prefix",fn:X(()=>[ue(Ve.$slots,"prefix")]),key:"0"}:void 0]),1032,["modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),U.value?(S(),M("div",{key:0,ref_key:"tagWrapper",ref:k,class:D([d(u).e("tags"),d(u).is("validate",!!j.value)])},[ue(Ve.$slots,"tag",{data:H.value,deleteTag:Re},()=>[(S(!0),M(He,null,Et(Y.value,gt=>(S(),ce(d(il),{key:gt.key,type:e.tagType,size:Q.value,effect:e.tagEffect,hit:gt.hitState,closable:gt.closable,"disable-transitions":"",onClose:An=>Re(gt)},{default:X(()=>[A("span",null,ge(gt.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128))]),e.collapseTags&&H.value.length>e.maxCollapseTags?(S(),ce(d(Ps),{key:0,ref_key:"tagTooltipRef",ref:_,disabled:I.value||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,effect:e.effect,persistent:e.persistent},{default:X(()=>[W(d(il),{closable:!1,size:Q.value,type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:X(()=>[A("span",{class:D(d(u).e("tags-text"))}," + "+ge(H.value.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect"])]),content:X(()=>[W(d(gr),{"max-height":e.maxCollapseTagsTooltipHeight},{default:X(()=>[A("div",{class:D(d(u).e("collapse-tags"))},[(S(!0),M(He,null,Et(N.value,(gt,An)=>(S(),M("div",{key:An,class:D(d(u).e("collapse-tag"))},[(S(),ce(d(il),{key:gt.key,class:"in-tooltip",type:e.tagType,size:Q.value,effect:e.tagEffect,hit:gt.hitState,closable:gt.closable,"disable-transitions":"",onClose:Zt=>Re(gt)},{default:X(()=>[A("span",null,ge(gt.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:1},8,["max-height"])]),_:1},8,["disabled","popper-class","popper-style","effect","persistent"])):ie("v-if",!0),e.filterable&&!d(m)?Ct((S(),M("input",{key:1,"onUpdate:modelValue":nt[2]||(nt[2]=gt=>B.value=gt),type:"text",class:D(d(u).e("search-input")),placeholder:Z.value?"":V.value,onInput:nt[3]||(nt[3]=gt=>xt(B.value,gt)),onClick:nt[4]||(nt[4]=ht(gt=>Be(!0),["stop"])),onKeydown:zn(qe,["delete"]),onCompositionstart:nt[5]||(nt[5]=(...gt)=>d(C)&&d(C)(...gt)),onCompositionupdate:nt[6]||(nt[6]=(...gt)=>d(C)&&d(C)(...gt)),onCompositionend:nt[7]||(nt[7]=(...gt)=>d(C)&&d(C)(...gt))},null,42,_ne)),[[ig,B.value]]):ie("v-if",!0)],2)):ie("v-if",!0)],38)),[[d(fc),Oe,ke.value]])]),content:X(()=>[Ve.$slots.header?(S(),M("div",{key:0,class:D(d(u).e("header")),onClick:nt[11]||(nt[11]=ht(()=>{},["stop"]))},[ue(Ve.$slots,"header")],2)):ie("v-if",!0),Ct(W(d(SE),{ref_key:"cascaderPanelRef",ref:T,modelValue:ae.value,"onUpdate:modelValue":nt[12]||(nt[12]=gt=>ae.value=gt),options:e.options,props:a.props,border:!1,"render-label":Ve.$slots.default,onExpandChange:Ot,onClose:nt[13]||(nt[13]=gt=>Ve.$nextTick(()=>Be(!1)))},{empty:X(()=>[ue(Ve.$slots,"empty")]),_:3},8,["modelValue","options","props","render-label"]),[[jt,!$.value]]),e.filterable?Ct((S(),ce(d(gr),{key:1,ref_key:"suggestionPanel",ref:R,tag:"ul",class:D(d(u).e("suggestion-panel")),"view-class":d(u).e("suggestion-list"),onKeydown:xe},{default:X(()=>[J.value.length?(S(!0),M(He,{key:0},Et(J.value,gt=>(S(),M("li",{key:gt.uid,class:D([d(u).e("suggestion-item"),d(u).is("checked",gt.checked)]),tabindex:-1,onClick:An=>Lt(gt)},[ue(Ve.$slots,"suggestion-item",{item:gt},()=>[A("span",null,ge(gt.text),1),gt.checked?(S(),ce(d(Je),{key:0},{default:X(()=>[W(d(Pf))]),_:1})):ie("v-if",!0)])],10,Cne))),128)):ue(Ve.$slots,"empty",{key:1},()=>[A("li",{class:D(d(u).e("empty-text"))},ge(d(p)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[jt,$.value]]):ie("v-if",!0),Ve.$slots.footer?(S(),M("div",{key:2,class:D(d(u).e("footer")),onClick:nt[14]||(nt[14]=ht(()=>{},["stop"]))},[ue(Ve.$slots,"footer")],2)):ie("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}});const xne=wt(Sne),kne=Me({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),Ene={"update:checked":e=>on(e),[Dt]:e=>on(e)};var Ane=K({name:"ElCheckTag",__name:"check-tag",props:kne,emits:Ene,setup(e,{emit:t}){const n=e,s=t,a=Ee("check-tag"),o=E(()=>[a.b(),a.is("checked",n.checked),a.is("disabled",n.disabled),a.m(n.type||"primary")]),r=()=>{if(n.disabled)return;const i=!n.checked;s(Dt,i),s("update:checked",i)};return(i,l)=>(S(),M("span",{class:D(o.value),onClick:r},[ue(i.$slots,"default")],2))}});const Tne=wt(Ane),Mne=Me({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:re([Number,Object]),default:()=>$n({})},sm:{type:re([Number,Object]),default:()=>$n({})},md:{type:re([Number,Object]),default:()=>$n({})},lg:{type:re([Number,Object]),default:()=>$n({})},xl:{type:re([Number,Object]),default:()=>$n({})}}),xE=Symbol("rowContextKey");var Pne=K({name:"ElCol",__name:"col",props:Mne,setup(e){const t=e,{gutter:n}=je(xE,{gutter:E(()=>0)}),s=Ee("col"),a=E(()=>{const r={};return n.value&&(r.paddingLeft=r.paddingRight=`${n.value/2}px`),r}),o=E(()=>{const r=[];return["span","offset","pull","push"].forEach(c=>{const u=t[c];st(u)&&(c==="span"?r.push(s.b(`${t[c]}`)):u>0&&r.push(s.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{st(t[c])?r.push(s.b(`${c}-${t[c]}`)):bt(t[c])&&Object.entries(t[c]).forEach(([u,f])=>{r.push(u!=="span"?s.b(`${c}-${u}-${f}`):s.b(`${c}-${f}`))})}),n.value&&r.push(s.is("guttered")),[s.b(),r]});return(r,i)=>(S(),ce(kt(e.tag),{class:D(o.value),style:et(a.value)},{default:X(()=>[ue(r.$slots,"default")]),_:3},8,["class","style"]))}});const Rne=wt(Pne),kE=e=>st(e)||Xe(e)||Ae(e),Ine=Me({accordion:Boolean,modelValue:{type:re([Array,String,Number]),default:()=>$n([])},expandIconPosition:{type:re([String]),default:"right"},beforeCollapse:{type:re(Function)}}),One={[mt]:kE,[Dt]:kE},EE=Symbol("collapseContextKey"),Lne="ElCollapse",Nne=(e,t)=>{const n=F(Ts(e.modelValue)),s=r=>{n.value=r;const i=e.accordion?n.value[0]:n.value;t(mt,i),t(Dt,i)},a=r=>{if(e.accordion)s([n.value[0]===r?"":r]);else{const i=[...n.value],l=i.indexOf(r);l>-1?i.splice(l,1):i.push(r),s(i)}},o=async r=>{const{beforeCollapse:i}=e;if(!i){a(r);return}const l=i(r);[au(l),on(l)].includes(!0)||ns(Lne,"beforeCollapse must return type `Promise<boolean>` or `boolean`"),au(l)?l.then(u=>{u!==!1&&a(r)}).catch(u=>{}):l&&a(r)};return be(()=>e.modelValue,()=>n.value=Ts(e.modelValue),{deep:!0}),Nt(EE,{activeNames:n,handleItemClick:o}),{activeNames:n,setActiveNames:s}},$ne=e=>{const t=Ee("collapse");return{rootKls:E(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}};var Dne=K({name:"ElCollapse",__name:"collapse",props:Ine,emits:One,setup(e,{expose:t,emit:n}){const s=e,a=n,{activeNames:o,setActiveNames:r}=Nne(s,a),{rootKls:i}=$ne(s);return t({activeNames:o,setActiveNames:r}),(l,c)=>(S(),M("div",{class:D(d(i))},[ue(l.$slots,"default")],2))}});const Fne=Me({title:{type:String,default:""},name:{type:re([String,Number]),default:void 0},icon:{type:rn,default:Fs},disabled:Boolean});var Bne=K({name:"ElCollapseTransition",__name:"collapse-transition",setup(e){const t=Ee("collapse-transition"),n=a=>{a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom},s={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.height&&(a.dataset.elExistsHeight=a.style.height),a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0},enter(a){requestAnimationFrame(()=>{a.dataset.oldOverflow=a.style.overflow,a.dataset.elExistsHeight?a.style.maxHeight=a.dataset.elExistsHeight:a.scrollHeight!==0?a.style.maxHeight=`${a.scrollHeight}px`:a.style.maxHeight=0,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom,a.style.overflow="hidden"})},afterEnter(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow},enterCancelled(a){n(a)},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.maxHeight=`${a.scrollHeight}px`,a.style.overflow="hidden"},leave(a){a.scrollHeight!==0&&(a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0)},afterLeave(a){n(a)},leaveCancelled(a){n(a)}};return(a,o)=>(S(),ce(Cs,At({name:d(t).b()},VO(s)),{default:X(()=>[ue(a.$slots,"default")]),_:3},16,["name"]))}});const Qg=wt(Bne),Vne=e=>{const t=je(EE),{namespace:n}=Ee("collapse"),s=F(!1),a=F(!1),o=c3(),r=E(()=>o.current++),i=E(()=>{var h;return(h=e.name)!=null?h:`${n.value}-id-${o.prefix}-${d(r)}`}),l=E(()=>t==null?void 0:t.activeNames.value.includes(d(i)));return{focusing:s,id:r,isActive:l,handleFocus:()=>{setTimeout(()=>{a.value?a.value=!1:s.value=!0},50)},handleHeaderClick:h=>{if(e.disabled)return;const p=h.target;p!=null&&p.closest("input, textarea, select")||(t==null||t.handleItemClick(d(i)),s.value=!1,a.value=!0)},handleEnterClick:h=>{const p=h.target;p!=null&&p.closest("input, textarea, select")||(h.preventDefault(),t==null||t.handleItemClick(d(i)))}}},zne=(e,{focusing:t,isActive:n,id:s})=>{const a=Ee("collapse"),o=E(()=>[a.b("item"),a.is("active",d(n)),a.is("disabled",e.disabled)]),r=E(()=>[a.be("item","header"),a.is("active",d(n)),{focusing:d(t)&&!e.disabled}]),i=E(()=>[a.be("item","arrow"),a.is("active",d(n))]),l=E(()=>[a.be("item","title")]),c=E(()=>a.be("item","wrap")),u=E(()=>a.be("item","content")),f=E(()=>a.b(`content-${d(s)}`)),h=E(()=>a.b(`head-${d(s)}`));return{itemTitleKls:l,arrowKls:i,headKls:r,rootKls:o,itemWrapperKls:c,itemContentKls:u,scopedContentId:f,scopedHeadId:h}},Hne=["id","aria-expanded","aria-controls","aria-describedby","tabindex","aria-disabled"],Wne=["id","aria-hidden","aria-labelledby"];var AE=K({name:"ElCollapseItem",__name:"collapse-item",props:Fne,setup(e,{expose:t}){const n=e,{focusing:s,id:a,isActive:o,handleFocus:r,handleHeaderClick:i,handleEnterClick:l}=Vne(n),{arrowKls:c,headKls:u,rootKls:f,itemTitleKls:h,itemWrapperKls:p,itemContentKls:v,scopedContentId:m,scopedHeadId:g}=zne(n,{focusing:s,isActive:o,id:a});return t({isActive:o}),(b,C)=>(S(),M("div",{class:D(d(f))},[A("div",{id:d(g),class:D(d(u)),"aria-expanded":d(o),"aria-controls":d(m),"aria-describedby":d(m),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"button",onClick:C[0]||(C[0]=(...w)=>d(i)&&d(i)(...w)),onKeydown:C[1]||(C[1]=zn(ht((...w)=>d(l)&&d(l)(...w),["stop"]),["space","enter"])),onFocus:C[2]||(C[2]=(...w)=>d(r)&&d(r)(...w)),onBlur:C[3]||(C[3]=w=>s.value=!1)},[A("span",{class:D(d(h))},[ue(b.$slots,"title",{isActive:d(o)},()=>[We(ge(e.title),1)])],2),ue(b.$slots,"icon",{isActive:d(o)},()=>[W(d(Je),{class:D(d(c))},{default:X(()=>[(S(),ce(kt(e.icon)))]),_:1},8,["class"])])],42,Hne),W(d(Qg),null,{default:X(()=>[Ct(A("div",{id:d(m),role:"region",class:D(d(p)),"aria-hidden":!d(o),"aria-labelledby":d(g)},[A("div",{class:D(d(v))},[ue(b.$slots,"default")],2)],10,Wne),[[jt,d(o)]])]),_:3})],2))}});const jne=wt(Dne,{CollapseItem:AE}),Kne=In(AE),TE=Me({modelValue:{type:re(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:String,disabled:Boolean,predefine:{type:re(Array)},validateEvent:{type:Boolean,default:!0}}),Une={[mt]:e=>Xe(e)||Qn(e)},ME=Symbol("colorCommonPickerKey"),PE=Symbol("colorPickerPanelContextKey"),RE=Me({color:{type:re(Object),required:!0},vertical:Boolean,disabled:Boolean}),qne=RE;let B3=!1;function V3(e,t){if(!Yt)return;const n=function(o){var r;(r=t.drag)==null||r.call(t,o)},s=function(o){var r;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",s),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",s),document.onselectstart=null,document.ondragstart=null,B3=!1,(r=t.end)==null||r.call(t,o)},a=function(o){var r;B3||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",s),document.addEventListener("touchmove",n),document.addEventListener("touchend",s),B3=!0,(r=t.start)==null||r.call(t,o))};e.addEventListener("mousedown",a),e.addEventListener("touchstart",a,{passive:!1})}const IE=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},z3=(e,t)=>Math.abs(IE(e)-IE(t)),OE=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}},LE=(e,{key:t,minValue:n,maxValue:s})=>{const a=Tt(),o=bn(),r=bn(),i=E(()=>e.color.get(t));function l(h){var p;if(e.disabled)return;h.target!==o.value&&c(h),(p=o.value)==null||p.focus()}function c(h){if(!r.value||!o.value||e.disabled)return;const v=a.vnode.el.getBoundingClientRect(),{clientX:m,clientY:g}=OE(h);let b;if(e.vertical){let C=g-v.top;C=Math.max(o.value.offsetHeight/2,C),C=Math.min(C,v.height-o.value.offsetHeight/2),b=Math.round((C-o.value.offsetHeight/2)/(v.height-o.value.offsetHeight)*s)}else{let C=m-v.left;C=Math.max(o.value.offsetWidth/2,C),C=Math.min(C,v.width-o.value.offsetWidth/2),b=Math.round((C-o.value.offsetWidth/2)/(v.width-o.value.offsetWidth)*s)}e.color.set(t,b)}function u(h){if(e.disabled)return;const{shiftKey:p}=h,v=un(h),m=p?10:1,g=t==="hue"?-1:1;let b=!0;switch(v){case Te.left:case Te.down:f(-m*g);break;case Te.right:case Te.up:f(m*g);break;case Te.home:e.color.set(t,t==="hue"?s:n);break;case Te.end:e.color.set(t,t==="hue"?n:s);break;case Te.pageDown:f(-4*g);break;case Te.pageUp:f(4*g);break;default:b=!1;break}b&&h.preventDefault()}function f(h){let p=i.value+h;p=p<n?n:p>s?s:p,e.color.set(t,p)}return{thumb:o,bar:r,currentValue:i,handleDrag:c,handleClick:l,handleKeydown:u}},NE=(e,{namespace:t,maxValue:n,bar:s,thumb:a,currentValue:o,handleDrag:r,getBackground:i})=>{const l=Tt(),c=Ee(t),u=F(0),f=F(0),h=F();function p(){if(!a.value||e.vertical)return 0;const x=l.vnode.el,k=o.value;return x?Math.round(k*(x.offsetWidth-a.value.offsetWidth/2)/n):0}function v(){if(!a.value)return 0;const x=l.vnode.el;if(!e.vertical)return 0;const k=o.value;return x?Math.round(k*(x.offsetHeight-a.value.offsetHeight/2)/n):0}function m(){u.value=p(),f.value=v(),h.value=i==null?void 0:i()}Mt(()=>{if(!s.value||!a.value)return;const x={drag:k=>{r(k)},end:k=>{r(k)}};V3(s.value,x),V3(a.value,x),m()}),be(o,()=>m()),be(()=>e.color.value,()=>m());const g=E(()=>[c.b(),c.is("vertical",e.vertical),c.is("disabled",e.disabled)]),b=E(()=>c.e("bar")),C=E(()=>c.e("thumb")),w=E(()=>({background:h.value})),_=E(()=>({left:Nn(u.value),top:Nn(f.value)}));return{rootKls:g,barKls:b,barStyle:w,thumbKls:C,thumbStyle:_,thumbLeft:u,thumbTop:f,update:m}},Gne=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],$E=0,H3=100;var Yne=K({name:"ElColorAlphaSlider",__name:"alpha-slider",props:RE,setup(e,{expose:t}){const n=e,{currentValue:s,bar:a,thumb:o,handleDrag:r,handleClick:i,handleKeydown:l}=LE(n,{key:"alpha",minValue:$E,maxValue:H3}),{rootKls:c,barKls:u,barStyle:f,thumbKls:h,thumbStyle:p,update:v}=NE(n,{namespace:"color-alpha-slider",maxValue:H3,currentValue:s,bar:a,thumb:o,handleDrag:r,getBackground:C}),{t:m}=Ft(),g=E(()=>m("el.colorpicker.alphaLabel")),b=E(()=>m("el.colorpicker.alphaDescription",{alpha:s.value,color:n.color.value}));function C(){if(n.color&&n.color.value){const{r:w,g:_,b:x}=n.color.toRgb();return`linear-gradient(to right, rgba(${w}, ${_}, ${x}, 0) 0%, rgba(${w}, ${_}, ${x}, 1) 100%)`}return""}return t({update:v,bar:a,thumb:o}),(w,_)=>(S(),M("div",{class:D(d(c))},[A("div",{ref_key:"bar",ref:a,class:D(d(u)),style:et(d(f)),onClick:_[0]||(_[0]=(...x)=>d(i)&&d(i)(...x))},null,6),A("div",{ref_key:"thumb",ref:o,class:D(d(h)),style:et(d(p)),"aria-label":g.value,"aria-valuenow":d(s),"aria-valuetext":b.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":$E,"aria-valuemax":H3,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:_[1]||(_[1]=(...x)=>d(l)&&d(l)(...x))},null,46,Gne)],2))}});const Xne=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],DE=0,W3=360;var Jne=K({name:"ElColorHueSlider",__name:"hue-slider",props:qne,setup(e,{expose:t}){const n=e,{currentValue:s,bar:a,thumb:o,handleDrag:r,handleClick:i,handleKeydown:l}=LE(n,{key:"hue",minValue:DE,maxValue:W3}),{rootKls:c,barKls:u,thumbKls:f,thumbStyle:h,thumbTop:p,update:v}=NE(n,{namespace:"color-hue-slider",maxValue:W3,currentValue:s,bar:a,thumb:o,handleDrag:r}),{t:m}=Ft(),g=E(()=>m("el.colorpicker.hueLabel")),b=E(()=>m("el.colorpicker.hueDescription",{hue:s.value,color:n.color.value}));return t({bar:a,thumb:o,thumbTop:p,update:v}),(C,w)=>(S(),M("div",{class:D(d(c))},[A("div",{ref_key:"bar",ref:a,class:D(d(u)),onClick:w[0]||(w[0]=(..._)=>d(i)&&d(i)(..._))},null,2),A("div",{ref_key:"thumb",ref:o,class:D(d(f)),style:et(d(h)),"aria-label":g.value,"aria-valuenow":d(s),"aria-valuetext":b.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":DE,"aria-valuemax":W3,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:w[1]||(w[1]=(..._)=>d(l)&&d(l)(..._))},null,46,Xne)],2))}});const Zne=Me({colors:{type:re(Array),required:!0},color:{type:re(Object),required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean});var Qne=Object.defineProperty,ese=(e,t,n)=>t in e?Qne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ci=(e,t,n)=>ese(e,typeof t!="symbol"?t+"":t,n);class e1{constructor(t={}){ci(this,"_hue",0),ci(this,"_saturation",100),ci(this,"_value",100),ci(this,"_alpha",100),ci(this,"_tiny",new Vf),ci(this,"_isValid",!1),ci(this,"enableAlpha",!1),ci(this,"format",""),ci(this,"value",""),ci(this,"selected");for(const n in t)qt(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 s in t)qt(t,s)&&this.set(s,t[s]);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 Vf(t);if(this._isValid=n.isValid,n.isValid){const{h:s,s:a,v:o,a:r}=n.toHsv();this._hue=s,this._saturation=a*100,this._value=o*100,this._alpha=r*100}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}clear(){this._isValid=!1,this.value="",this._hue=0,this._saturation=100,this._value=100,this._alpha=100}compare(t){const n=new Vf({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:s,_alpha:a,format:o,enableAlpha:r}=this;let i=o||(r?"rgb":"hex");o==="hex"&&r&&(i="hex8"),this._tiny=new Vf({h:t,s:n/100,v:s/100,a:a/100}),this.value=this._isValid?this._tiny.toString(i):""}}const tse=e=>{const{currentColor:t}=je(PE),n=F(a(e.colors,e.color));be(()=>t.value,o=>{const r=new e1({value:o,enableAlpha:e.enableAlpha});n.value.forEach(i=>{i.selected=r.compare(i)})}),ja(()=>{n.value=a(e.colors,e.color)});function s(o){e.color.fromString(e.colors[o])}function a(o,r){return o.map(i=>{const l=new e1({value:i,enableAlpha:e.enableAlpha});return l.selected=l.compare(r),l})}return{rgbaColors:n,handleSelect:s}},nse=e=>{const t=Ee("color-predefine"),n=E(()=>[t.b(),t.is("disabled",e.disabled)]),s=E(()=>t.e("colors"));function a(o){return[t.e("color-selector"),t.is("alpha",o.get("alpha")<100),{selected:o.selected}]}return{rootKls:n,colorsKls:s,colorSelectorKls:a}},sse=["disabled","aria-label","onClick"];var ase=K({name:"ElColorPredefine",__name:"predefine",props:Zne,setup(e){const t=e,{rgbaColors:n,handleSelect:s}=tse(t),{rootKls:a,colorsKls:o,colorSelectorKls:r}=nse(t),{t:i}=Ft(),l=c=>i("el.colorpicker.predefineDescription",{value:c});return(c,u)=>(S(),M("div",{class:D(d(a))},[A("div",{class:D(d(o))},[(S(!0),M(He,null,Et(d(n),(f,h)=>(S(),M("button",{key:e.colors[h],type:"button",disabled:e.disabled,"aria-label":l(f.value),class:D(d(r)(f)),onClick:p=>d(s)(h)},[A("div",{style:et({backgroundColor:f.value})},null,4)],10,sse))),128))],2)],2))}});const ose=Me({color:{type:re(Object),required:!0},disabled:Boolean}),rse=e=>{const t=Tt(),n=F(),s=F(0),a=F(0),o=F("hsl(0, 100%, 50%)"),r=E(()=>e.color.get("saturation")),i=E(()=>e.color.get("value")),l=E(()=>e.color.get("hue"));function c(v){var m;if(e.disabled)return;v.target!==n.value&&u(v),(m=n.value)==null||m.focus({preventScroll:!0})}function u(v){if(e.disabled)return;const g=t.vnode.el.getBoundingClientRect(),{clientX:b,clientY:C}=OE(v);let w=b-g.left,_=C-g.top;w=Math.max(0,w),w=Math.min(w,g.width),_=Math.max(0,_),_=Math.min(_,g.height),a.value=w,s.value=_,e.color.set({saturation:w/g.width*100,value:100-_/g.height*100})}function f(v){if(e.disabled)return;const{shiftKey:m}=v,g=un(v),b=m?10:1;let C=!0;switch(g){case Te.left:h(-b);break;case Te.right:h(b);break;case Te.up:p(b);break;case Te.down:p(-b);break;default:C=!1;break}C&&v.preventDefault()}function h(v){let m=r.value+v;m=m<0?0:m>100?100:m,e.color.set("saturation",m)}function p(v){let m=i.value+v;m=m<0?0:m>100?100:m,e.color.set("value",m)}return{cursorRef:n,cursorTop:s,cursorLeft:a,background:o,saturation:r,brightness:i,hue:l,handleClick:c,handleDrag:u,handleKeydown:f}},ise=(e,{cursorTop:t,cursorLeft:n,background:s,handleDrag:a})=>{const o=Tt(),r=Ee("color-svpanel");function i(){const h=e.color.get("saturation"),p=e.color.get("value"),v=o.vnode.el,{clientWidth:m,clientHeight:g}=v;n.value=h*m/100,t.value=(100-p)*g/100,s.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}Mt(()=>{V3(o.vnode.el,{drag:h=>{a(h)},end:h=>{a(h)}}),i()}),be([()=>e.color.get("hue"),()=>e.color.get("value"),()=>e.color.value],()=>i());const l=E(()=>r.b()),c=E(()=>r.e("cursor")),u=E(()=>({backgroundColor:s.value})),f=E(()=>({top:Nn(t.value),left:Nn(n.value)}));return{rootKls:l,cursorKls:c,rootStyle:u,cursorStyle:f,update:i}},lse=["tabindex","aria-disabled","aria-label","aria-valuenow","aria-valuetext"];var cse=K({name:"ElSvPanel",__name:"sv-panel",props:ose,setup(e,{expose:t}){const n=e,{cursorRef:s,cursorTop:a,cursorLeft:o,background:r,saturation:i,brightness:l,handleClick:c,handleDrag:u,handleKeydown:f}=rse(n),{rootKls:h,cursorKls:p,rootStyle:v,cursorStyle:m,update:g}=ise(n,{cursorTop:a,cursorLeft:o,background:r,handleDrag:u}),{t:b}=Ft(),C=E(()=>b("el.colorpicker.svLabel")),w=E(()=>b("el.colorpicker.svDescription",{saturation:i.value,brightness:l.value,color:n.color.value}));return t({update:g}),(_,x)=>(S(),M("div",{class:D(d(h)),style:et(d(v)),onClick:x[1]||(x[1]=(...k)=>d(c)&&d(c)(...k))},[A("div",{ref_key:"cursorRef",ref:s,class:D(d(p)),style:et(d(m)),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"slider","aria-valuemin":"0,0","aria-valuemax":"100,100","aria-label":C.value,"aria-valuenow":`${d(i)},${d(l)}`,"aria-valuetext":w.value,onKeydown:x[0]||(x[0]=(...k)=>d(f)&&d(f)(...k))},null,46,lse)],6))}});const FE=(e,t)=>{const n=Gt(new e1({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return be(()=>[e.colorFormat,e.showAlpha],()=>{n.enableAlpha=e.showAlpha,n.format=e.colorFormat||n.format,n.doOnChange(),t(mt,n.value)}),{color:n}};var use=K({name:"ElColorPickerPanel",__name:"color-picker-panel",props:TE,emits:Une,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("color-picker-panel"),{formItem:r}=Ms(),i=Dn(),l=F(),c=F(),u=F(),f=F(),h=F(""),{color:p}=je(ME,()=>FE(s,a),!0);function v(){p.fromString(h.value),p.value!==h.value&&(h.value=p.value)}function m(){var b;s.validateEvent&&((b=r==null?void 0:r.validate)==null||b.call(r,"blur").catch(C=>void 0))}function g(){var b,C,w;(b=l.value)==null||b.update(),(C=c.value)==null||C.update(),(w=u.value)==null||w.update()}return Mt(()=>{s.modelValue&&(h.value=p.value),ze(g)}),be(()=>s.modelValue,b=>{b!==p.value&&(b?p.fromString(b):p.clear())}),be(()=>p.value,b=>{a(mt,b),h.value=b,s.validateEvent&&(r==null||r.validate("change").catch(C=>void 0))}),Nt(PE,{currentColor:E(()=>p.value)}),t({color:p,inputRef:f,update:g}),(b,C)=>(S(),M("div",{class:D([d(o).b(),d(o).is("disabled",d(i)),d(o).is("border",e.border)]),onFocusout:m},[A("div",{class:D(d(o).e("wrapper"))},[W(Jne,{ref_key:"hueRef",ref:l,class:"hue-slider",color:d(p),vertical:"",disabled:d(i)},null,8,["color","disabled"]),W(cse,{ref_key:"svRef",ref:c,color:d(p),disabled:d(i)},null,8,["color","disabled"])],2),e.showAlpha?(S(),ce(Yne,{key:0,ref_key:"alphaRef",ref:u,color:d(p),disabled:d(i)},null,8,["color","disabled"])):ie("v-if",!0),e.predefine?(S(),ce(ase,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:d(p),colors:e.predefine,disabled:d(i)},null,8,["enable-alpha","color","colors","disabled"])):ie("v-if",!0),A("div",{class:D(d(o).e("footer"))},[W(d(da),{ref_key:"inputRef",ref:f,modelValue:h.value,"onUpdate:modelValue":C[0]||(C[0]=w=>h.value=w),"validate-event":!1,size:"small",disabled:d(i),onChange:v},null,8,["modelValue","disabled"]),ue(b.$slots,"footer")],2)],34))}});const BE=wt(use),dse=Me({persistent:{type:Boolean,default:!0},modelValue:{type:re(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:String,disabled:{type:Boolean,default:void 0},clearable:{type:Boolean,default:!0},size:hs,popperClass:ln.popperClass,popperStyle:ln.popperStyle,tabindex:{type:[String,Number],default:0},teleported:ln.teleported,appendTo:ln.appendTo,predefine:{type:re(Array)},validateEvent:{type:Boolean,default:!0},...Su,...ua(["ariaLabel"])}),fse={[mt]:e=>Xe(e)||Qn(e),[Dt]:e=>Xe(e)||Qn(e),activeChange:e=>Xe(e)||Qn(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},hse=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"];var pse=K({name:"ElColorPicker",__name:"color-picker",props:dse,emits:fse,setup(e,{expose:t,emit:n}){const s=e,a=n,{t:o}=Ft(),r=Ee("color"),{formItem:i}=Ms(),l=ls(),c=Dn(),{valueOnClear:u,isEmptyValue:f}=Cp(s,null),h=FE(s,a),{inputId:p,isLabeledByFormItem:v}=ho(s,{formItemContext:i}),m=F(),g=F(),b=F(),C=F(!1),w=F(!1);let _=!0;const{isFocused:x,handleFocus:k,handleBlur:T}=nl(g,{disabled:c,beforeBlur(le){var Z;return(Z=m.value)==null?void 0:Z.isFocusInsideContent(le)},afterBlur(){var le;Y(!1),z(),s.validateEvent&&((le=i==null?void 0:i.validate)==null||le.call(i,"blur").catch(Z=>void 0))}}),R=FV(()=>{var le,Z;return(Z=(le=b.value)==null?void 0:le.color)!=null?Z:h.color}),I=E(()=>Yi(s,Object.keys(TE))),P=E(()=>!s.modelValue&&!w.value?"transparent":J(R,s.showAlpha)),$=E(()=>!s.modelValue&&!w.value?"":R.value),O=E(()=>v.value?void 0:s.ariaLabel||o("el.colorpicker.defaultLabel")),B=E(()=>v.value?i==null?void 0:i.labelId:void 0),H=E(()=>[r.b("picker"),r.is("disabled",c.value),r.bm("picker",l.value),r.is("focused",x.value)]);function J(le,Z){const{r:j,g:ae,b:fe,a:we}=le.toRgb();return Z?`rgba(${j}, ${ae}, ${fe}, ${we})`:`rgb(${j}, ${ae}, ${fe})`}function Y(le){C.value=le}const N=ei(Y,100,{leading:!0});function L(){c.value||Y(!0)}function V(){N(!1),z()}function z(){ze(()=>{s.modelValue?R.fromString(s.modelValue):(R.value="",ze(()=>{w.value=!1}))})}function G(){c.value||(C.value&&z(),N(!C.value))}function Q(){const le=f(R.value)?u.value:R.value;a(mt,le),a(Dt,le),s.validateEvent&&(i==null||i.validate("change").catch(Z=>void 0)),N(!1),ze(()=>{const Z=new e1({enableAlpha:s.showAlpha,format:s.colorFormat||"",value:s.modelValue});R.compare(Z)||z()})}function U(){N(!1),a(mt,u.value),a(Dt,u.value),s.modelValue!==u.value&&s.validateEvent&&(i==null||i.validate("change").catch(le=>void 0)),z(),a("clear")}function ee(){var le,Z;(Z=(le=b==null?void 0:b.value)==null?void 0:le.inputRef)==null||Z.focus()}function se(){C.value&&(V(),x.value&&pe())}function de(le){le.preventDefault(),le.stopPropagation(),Y(!1),z()}function te(le){switch(un(le)){case Te.enter:case Te.numpadEnter:case Te.space:le.preventDefault(),le.stopPropagation(),L();break;case Te.esc:de(le);break}}function pe(){g.value.focus()}function he(){g.value.blur()}return be(()=>$.value,le=>{_&&a("activeChange",le),_=!0}),be(()=>R.value,()=>{!s.modelValue&&!w.value&&(w.value=!0)}),be(()=>s.modelValue,le=>{le?le&&le!==R.value&&(_=!1,R.fromString(le)):w.value=!1}),be(()=>C.value,()=>{b.value&&ze(b.value.update)}),Nt(ME,h),t({color:R,show:L,hide:V,focus:pe,blur:he}),(le,Z)=>(S(),ce(d(Ps),{ref_key:"popper",ref:m,visible:C.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[d(r).be("picker","panel"),e.popperClass],"popper-style":e.popperStyle,"stop-popper-mouse-event":!1,pure:"",loop:"",role:"dialog",effect:"light",trigger:"click",teleported:e.teleported,transition:`${d(r).namespace.value}-zoom-in-top`,persistent:e.persistent,"append-to":e.appendTo,onShow:ee,onHide:Z[2]||(Z[2]=j=>Y(!1))},{content:X(()=>[Ct((S(),ce(d(BE),At({ref_key:"pickerPanelRef",ref:b},I.value,{border:!1,"validate-event":!1,onKeydown:zn(de,["esc"])}),{footer:X(()=>[A("div",null,[e.clearable?(S(),ce(d(xs),{key:0,class:D(d(r).be("footer","link-btn")),text:"",size:"small",onClick:U},{default:X(()=>[We(ge(d(o)("el.colorpicker.clear")),1)]),_:1},8,["class"])):ie("v-if",!0),W(d(xs),{plain:"",size:"small",class:D(d(r).be("footer","btn")),onClick:Q},{default:X(()=>[We(ge(d(o)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16)),[[d(fc),se,g.value]])]),default:X(()=>[A("div",At({id:d(p),ref_key:"triggerRef",ref:g},le.$attrs,{class:H.value,role:"button","aria-label":O.value,"aria-labelledby":B.value,"aria-description":d(o)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":d(c),tabindex:d(c)?void 0:e.tabindex,onKeydown:te,onFocus:Z[0]||(Z[0]=(...j)=>d(k)&&d(k)(...j)),onBlur:Z[1]||(Z[1]=(...j)=>d(T)&&d(T)(...j))}),[A("div",{class:D(d(r).be("picker","trigger")),onClick:G},[A("span",{class:D([d(r).be("picker","color"),d(r).is("alpha",e.showAlpha)])},[A("span",{class:D(d(r).be("picker","color-inner")),style:et({backgroundColor:P.value})},[Ct(W(d(Je),{class:D([d(r).be("picker","icon"),d(r).is("icon-arrow-down")])},{default:X(()=>[W(d(mr))]),_:1},8,["class"]),[[jt,e.modelValue||w.value]]),Ct(W(d(Je),{class:D([d(r).be("picker","empty"),d(r).is("icon-close")])},{default:X(()=>[W(d(qa))]),_:1},8,["class"]),[[jt,!e.modelValue&&!w.value]])],6)],2)],2)],16,hse)]),_:1},8,["visible","popper-class","popper-style","teleported","transition","persistent","append-to"]))}});const vse=wt(pse),mse=Me({a11y:{type:Boolean,default:!0},locale:{type:re(Object)},size:hs,button:{type:re(Object)},card:{type:re(Object)},dialog:{type:re(Object)},link:{type:re(Object)},experimentalFeatures:{type:re(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:re(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Su}),ha={placement:"top"},gse=wt(K({name:"ElConfigProvider",props:mse,setup(e,{slots:t}){const n=Fy(e);return be(()=>e.message,s=>{var a,o;Object.assign(ha,(o=(a=n==null?void 0:n.value)==null?void 0:a.message)!=null?o:{},s??{})},{immediate:!0,deep:!0}),()=>ue(t,"default",{config:n==null?void 0:n.value})}}));var bse=K({name:"ElContainer",__name:"container",props:{direction:{type:String,required:!1}},setup(e){const t=e,n=Gn(),s=Ee("container"),a=E(()=>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)=>(S(),M("section",{class:D([d(s).b(),d(s).is("vertical",a.value)])},[ue(o.$slots,"default")],2))}}),VE=K({name:"ElAside",__name:"aside",props:{width:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=Ee("aside"),s=E(()=>t.width?n.cssVarBlock({width:t.width}):{});return(a,o)=>(S(),M("aside",{class:D(d(n).b()),style:et(s.value)},[ue(a.$slots,"default")],6))}}),zE=K({name:"ElFooter",__name:"footer",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=Ee("footer"),s=E(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,o)=>(S(),M("footer",{class:D(d(n).b()),style:et(s.value)},[ue(a.$slots,"default")],6))}}),HE=K({name:"ElHeader",__name:"header",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=Ee("header"),s=E(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,o)=>(S(),M("header",{class:D(d(n).b()),style:et(s.value)},[ue(a.$slots,"default")],6))}}),WE=K({name:"ElMain",__name:"main",setup(e){const t=Ee("main");return(n,s)=>(S(),M("main",{class:D(d(t).b())},[ue(n.$slots,"default")],2))}});const yse=wt(bse,{Aside:VE,Footer:zE,Header:HE,Main:WE}),wse=In(VE),_se=In(zE),Cse=In(HE),Sse=In(WE);var jE={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(al,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"},s=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,o=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,l={},c=function(g){return(g=+g)+(g>68?1900:2e3)},u=function(g){return function(b){this[g]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var C=b.match(/([+-]|\d\d)/g),w=60*C[1]+(+C[2]||0);return w===0?0:C[0]==="+"?-w:w}(g)}],h=function(g){var b=l[g];return b&&(b.indexOf?b:b.s.concat(b.f))},p=function(g,b){var C,w=l.meridiem;if(w){for(var _=1;_<=24;_+=1)if(g.indexOf(w(_,0,b))>-1){C=_>12;break}}else C=g===(b?"pm":"PM");return C},v={A:[i,function(g){this.afternoon=p(g,!1)}],a:[i,function(g){this.afternoon=p(g,!0)}],Q:[a,function(g){this.month=3*(g-1)+1}],S:[a,function(g){this.milliseconds=100*+g}],SS:[o,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[r,u("seconds")],ss:[r,u("seconds")],m:[r,u("minutes")],mm:[r,u("minutes")],H:[r,u("hours")],h:[r,u("hours")],HH:[r,u("hours")],hh:[r,u("hours")],D:[r,u("day")],DD:[o,u("day")],Do:[i,function(g){var b=l.ordinal,C=g.match(/\d+/);if(this.day=C[0],b)for(var w=1;w<=31;w+=1)b(w).replace(/\[|\]/g,"")===g&&(this.day=w)}],w:[r,u("week")],ww:[o,u("week")],M:[r,u("month")],MM:[o,u("month")],MMM:[i,function(g){var b=h("months"),C=(h("monthsShort")||b.map(function(w){return w.slice(0,3)})).indexOf(g)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[i,function(g){var b=h("months").indexOf(g)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(g){this.year=c(g)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function m(g){var b,C;b=g,C=l&&l.formats;for(var w=(g=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,$,O){var B=O&&O.toUpperCase();return $||C[O]||n[O]||C[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(H,J,Y){return J||Y.slice(1)})})).match(s),_=w.length,x=0;x<_;x+=1){var k=w[x],T=v[k],R=T&&T[0],I=T&&T[1];w[x]=I?{regex:R,parser:I}:k.replace(/^\[|\]$/g,"")}return function(P){for(var $={},O=0,B=0;O<_;O+=1){var H=w[O];if(typeof H=="string")B+=H.length;else{var J=H.regex,Y=H.parser,N=P.slice(B),L=J.exec(N)[0];Y.call($,L),P=P.replace(L,"")}}return function(V){var z=V.afternoon;if(z!==void 0){var G=V.hours;z?G<12&&(V.hours+=12):G===12&&(V.hours=0),delete V.afternoon}}($),$}}return function(g,b,C){C.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(c=g.parseTwoDigitYear);var w=b.prototype,_=w.parse;w.parse=function(x){var k=x.date,T=x.utc,R=x.args;this.$u=T;var I=R[1];if(typeof I=="string"){var P=R[2]===!0,$=R[3]===!0,O=P||$,B=R[2];$&&(B=R[2]),l=this.$locale(),!P&&B&&(l=C.Ls[B]),this.$d=function(N,L,V,z){try{if(["x","X"].indexOf(L)>-1)return new Date((L==="X"?1e3:1)*N);var G=m(L)(N),Q=G.year,U=G.month,ee=G.day,se=G.hours,de=G.minutes,te=G.seconds,pe=G.milliseconds,he=G.zone,le=G.week,Z=new Date,j=ee||(Q||U?1:Z.getDate()),ae=Q||Z.getFullYear(),fe=0;Q&&!U||(fe=U>0?U-1:Z.getMonth());var we,Se=se||0,ke=de||0,Oe=te||0,Be=pe||0;return he?new Date(Date.UTC(ae,fe,j,Se,ke,Oe,Be+60*he.offset*1e3)):V?new Date(Date.UTC(ae,fe,j,Se,ke,Oe,Be)):(we=new Date(ae,fe,j,Se,ke,Oe,Be),le&&(we=z(we).week(le).toDate()),we)}catch{return new Date("")}}(k,I,T,C),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),O&&k!=this.format(I)&&(this.$d=new Date("")),l={}}else if(I instanceof Array)for(var H=I.length,J=1;J<=H;J+=1){R[1]=I[J-1];var Y=C.apply(this,R);if(Y.isValid()){this.$d=Y.$d,this.$L=Y.$L,this.init();break}J===H&&(this.$d=new Date(""))}else _.call(this,x)}}})})(jE);var xse=jE.exports;const j3=ol(xse),KE=["hours","minutes","seconds"],wr="EP_PICKER_BASE",K3="ElPopperOptions",UE=Symbol("commonPickerContextKey"),Hf="HH:mm:ss",pc="YYYY-MM-DD",kse={date:pc,dates:pc,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${pc} ${Hf}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:pc,datetimerange:`${pc} ${Hf}`},qE=(e,t)=>{const{lang:n}=Ft(),s=F(!1),a=F(!1),o=F(null),r=E(()=>{const{modelValue:v}=e;return!v||Ae(v)&&!v.filter(Boolean).length}),i=v=>{if(!jk(e.modelValue,v)){let m;Ae(v)?m=v.map(b=>Uk(b,e.valueFormat,n.value)):v&&(m=Uk(v,e.valueFormat,n.value)),t(mt,v&&m,n.value)}},l=E(()=>{var v;let m;if(r.value?c.value.getDefaultValue&&(m=c.value.getDefaultValue()):Ae(e.modelValue)?m=e.modelValue.map(g=>Kk(g,e.valueFormat,n.value)):m=Kk((v=e.modelValue)!=null?v:"",e.valueFormat,n.value),c.value.getRangeAvailableTime){const g=c.value.getRangeAvailableTime(m);Hn(g,m)||(m=g,r.value||i(qg(m)))}return Ae(m)&&m.some(g=>!g)&&(m=[]),m}),c=F({});return{parsedValue:l,pickerActualVisible:a,pickerOptions:c,pickerVisible:s,userInput:o,valueIsEmpty:r,emitInput:i,onCalendarChange:v=>{t("calendar-change",v)},onPanelChange:(v,m,g)=>{t("panel-change",v,m,g)},onPick:(v="",m=!1)=>{s.value=m;let g;Ae(v)?g=v.map(b=>b.toDate()):g=v&&v.toDate(),o.value=null,i(g)},onSetPickerOption:v=>{c.value[v[0]]=v[1],c.value.panelReady=!0}}},U3=Me({disabledHours:{type:re(Function)},disabledMinutes:{type:re(Function)},disabledSeconds:{type:re(Function)}}),GE=Me({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),q3=Me({automaticDropdown:{type:Boolean,default:!0},id:{type:re([Array,String])},name:{type:re([Array,String])},popperClass:ln.popperClass,popperStyle:ln.popperStyle,format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:re([String,Object]),default:Vo},editable:{type:Boolean,default:!0},prefixIcon:{type:re([String,Object]),default:""},size:hs,readonly:Boolean,disabled:{type:Boolean,default:void 0},placeholder:{type:String,default:""},popperOptions:{type:re(Object),default:()=>({})},modelValue:{type:re([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:re([Date,Array])},defaultTime:{type:re([Date,Array])},isRange:Boolean,...U3,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:re([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:re(String),values:si,default:"bottom"},fallbackPlacements:{type:re(Array),default:["bottom","top","right","left"]},...Su,...ua(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),Ese=Me({id:{type:re(Array)},name:{type:re(Array)},modelValue:{type:re([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),Ase=["id","name","placeholder","value","disabled"],Tse=["id","name","placeholder","value","disabled"];var Mse=K({name:"PickerRangeTrigger",inheritAttrs:!1,__name:"picker-range-trigger",props:Ese,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const s=e,a=n,{formItem:o}=Ms(),{inputId:r}=ho(Gt({id:E(()=>{var R;return(R=s.id)==null?void 0:R[0]})}),{formItemContext:o}),i=Fg(),l=Ee("date"),c=Ee("range"),u=F(),f=F(),{wrapperRef:h,isFocused:p}=nl(u,{disabled:E(()=>s.disabled)}),v=R=>{a("click",R)},m=R=>{a("mouseenter",R)},g=R=>{a("mouseleave",R)},b=R=>{a("touchstart",R)},C=R=>{a("startInput",R)},w=R=>{a("endInput",R)},_=R=>{a("startChange",R)},x=R=>{a("endChange",R)};return t({focus:()=>{var R;(R=u.value)==null||R.focus()},blur:()=>{var R,I;(R=u.value)==null||R.blur(),(I=f.value)==null||I.blur()}}),(R,I)=>(S(),M("div",{ref_key:"wrapperRef",ref:h,class:D([d(l).is("active",d(p)),R.$attrs.class]),style:et(R.$attrs.style),onClick:v,onMouseenter:m,onMouseleave:g,onTouchstartPassive:b},[ue(R.$slots,"prefix"),A("input",At(d(i),{id:d(r),ref_key:"inputRef",ref:u,name:R.name&&R.name[0],placeholder:R.startPlaceholder,value:R.modelValue&&R.modelValue[0],class:d(c).b("input"),disabled:R.disabled,onInput:C,onChange:_}),null,16,Ase),ue(R.$slots,"range-separator"),A("input",At(d(i),{id:R.id&&R.id[1],ref_key:"endInputRef",ref:f,name:R.name&&R.name[1],placeholder:R.endPlaceholder,value:R.modelValue&&R.modelValue[1],class:d(c).b("input"),disabled:R.disabled,onInput:w,onChange:x}),null,16,Tse),ue(R.$slots,"suffix")],38))}}),YE=K({name:"Picker",__name:"picker",props:q3,emits:[mt,Dt,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const s=e,a=n,o=Hi(),r=Ee("date"),i=Ee("input"),l=Ee("range"),{formItem:c}=Ms(),u=je(K3,{}),f=Cp(s,null),h=F(),p=F(),v=F(null);let m=!1;const g=Dn(),b=qE(s,a),{parsedValue:C,pickerActualVisible:w,userInput:_,pickerVisible:x,pickerOptions:k,valueIsEmpty:T,emitInput:R,onPick:I,onSetPickerOption:P,onCalendarChange:$,onPanelChange:O}=b,{isFocused:B,handleFocus:H,handleBlur:J}=nl(p,{disabled:g,beforeFocus(){return s.readonly},afterFocus(){s.automaticDropdown&&(x.value=!0)},beforeBlur(_e){var Ye;return!m&&((Ye=h.value)==null?void 0:Ye.isFocusInsideContent(_e))},afterBlur(){tt(),x.value=!1,m=!1,s.validateEvent&&(c==null||c.validate("blur").catch(_e=>void 0))}}),Y=F(!1),N=E(()=>[r.b("editor"),r.bm("editor",s.type),i.e("wrapper"),r.is("disabled",g.value),r.is("active",x.value),l.b("editor"),Ie?l.bm("editor",Ie.value):"",o.class]),L=E(()=>[i.e("icon"),l.e("close-icon"),we.value?"":l.em("close-icon","hidden")]);be(x,_e=>{_e?ze(()=>{_e&&(v.value=s.modelValue)}):(_.value=null,ze(()=>{V(s.modelValue)}))});const V=(_e,Ye)=>{(Ye||!jk(_e,v.value))&&(a(Dt,_e),Ye&&(v.value=_e),s.validateEvent&&(c==null||c.validate("change").catch(xt=>void 0)))},z=_e=>{a("keydown",_e)},G=E(()=>p.value?Array.from(p.value.$el.querySelectorAll("input")):[]),Q=(_e,Ye,xt)=>{const Jt=G.value;Jt.length&&(!xt||xt==="min"?(Jt[0].setSelectionRange(_e,Ye),Jt[0].focus()):xt==="max"&&(Jt[1].setSelectionRange(_e,Ye),Jt[1].focus()))},U=()=>{w.value=!0},ee=()=>{a("visible-change",!0)},se=()=>{w.value=!1,x.value=!1,a("visible-change",!1)},de=()=>{x.value=!0},te=()=>{x.value=!1},pe=E(()=>{const _e=Fe(C.value);return Ae(_.value)?[_.value[0]||_e&&_e[0]||"",_.value[1]||_e&&_e[1]||""]:_.value!==null?_.value:!le.value&&T.value||!x.value&&T.value?"":_e?Z.value||j.value||ae.value?_e.join(", "):_e:""}),he=E(()=>s.type.includes("time")),le=E(()=>s.type.startsWith("time")),Z=E(()=>s.type==="dates"),j=E(()=>s.type==="months"),ae=E(()=>s.type==="years"),fe=E(()=>s.prefixIcon||(he.value?Hy:qx)),we=E(()=>s.clearable&&!g.value&&!s.readonly&&!T.value&&(Y.value||B.value)),Se=_e=>{s.readonly||g.value||(we.value&&(_e==null||_e.stopPropagation(),k.value.handleClear?k.value.handleClear():R(f.valueOnClear.value),V(f.valueOnClear.value,!0),se()),a("clear"))},ke=async _e=>{var Ye;s.readonly||g.value||(((Ye=_e.target)==null?void 0:Ye.tagName)!=="INPUT"||B.value||!s.automaticDropdown)&&(x.value=!0)},Oe=()=>{s.readonly||g.value||!T.value&&s.clearable&&(Y.value=!0)},Be=()=>{Y.value=!1},Le=_e=>{var Ye;s.readonly||g.value||(((Ye=_e.touches[0].target)==null?void 0:Ye.tagName)!=="INPUT"||B.value||!s.automaticDropdown)&&(x.value=!0)},Ce=E(()=>s.type.includes("range")),Ie=ls(),Re=E(()=>{var _e,Ye;return(Ye=(_e=d(h))==null?void 0:_e.popperRef)==null?void 0:Ye.contentRef}),Ke=Ny(p,_e=>{const Ye=d(Re),xt=fs(p);Ye&&(_e.target===Ye||_e.composedPath().includes(Ye))||_e.target===xt||xt&&_e.composedPath().includes(xt)||(x.value=!1)});tn(()=>{Ke==null||Ke()});const tt=()=>{if(_.value){const _e=ut(pe.value);_e&&(Ue(_e)&&R(qg(_e)),_.value=null)}_.value===""&&(R(f.valueOnClear.value),V(f.valueOnClear.value,!0),_.value=null)},ut=_e=>_e?k.value.parseUserInput(_e):null,Fe=_e=>_e?Ae(_e)?_e.map(xt=>xt.format(s.format)):_e.format(s.format):null,Ue=_e=>k.value.isValidValue(_e),Ze=async _e=>{if(s.readonly||g.value)return;const Ye=un(_e);if(z(_e),Ye===Te.esc){x.value===!0&&(x.value=!1,_e.preventDefault(),_e.stopPropagation());return}if(Ye===Te.down&&(k.value.handleFocusPicker&&(_e.preventDefault(),_e.stopPropagation()),x.value===!1&&(x.value=!0,await ze()),k.value.handleFocusPicker)){k.value.handleFocusPicker();return}if(Ye===Te.tab){m=!0;return}if(Ye===Te.enter||Ye===Te.numpadEnter){x.value?(_.value===null||_.value===""||Ue(ut(pe.value)))&&(tt(),x.value=!1):x.value=!0,_e.preventDefault(),_e.stopPropagation();return}if(_.value){_e.stopPropagation();return}k.value.handleKeydownInput&&k.value.handleKeydownInput(_e)},Ot=_e=>{_.value=_e,x.value||(x.value=!0)},Xt=_e=>{const Ye=_e.target;_.value?_.value=[Ye.value,_.value[1]]:_.value=[Ye.value,null]},it=_e=>{const Ye=_e.target;_.value?_.value=[_.value[0],Ye.value]:_.value=[null,Ye.value]},yt=()=>{var _e;const Ye=_.value,xt=ut(Ye&&Ye[0]),Jt=d(C);if(xt&&xt.isValid()){_.value=[Fe(xt),((_e=pe.value)==null?void 0:_e[1])||null];const Sn=[xt,Jt&&(Jt[1]||null)];Ue(Sn)&&(R(qg(Sn)),_.value=null)}},Lt=()=>{var _e;const Ye=d(_),xt=ut(Ye&&Ye[1]),Jt=d(C);if(xt&&xt.isValid()){_.value=[((_e=d(pe))==null?void 0:_e[0])||null,Fe(xt)];const Sn=[Jt&&Jt[0],xt];Ue(Sn)&&(R(qg(Sn)),_.value=null)}},xe=()=>{var _e;(_e=p.value)==null||_e.focus()},qe=()=>{var _e;(_e=p.value)==null||_e.blur()};return Nt(wr,{props:s,emptyValues:f}),Nt(UE,b),t({focus:xe,blur:qe,handleOpen:de,handleClose:te,onPick:I}),(_e,Ye)=>(S(),ce(d(Ps),At({ref_key:"refPopper",ref:h,visible:d(x),effect:"light",pure:"",trigger:"click"},_e.$attrs,{role:"dialog",teleported:"",transition:`${d(r).namespace.value}-zoom-in-top`,"popper-class":[`${d(r).namespace.value}-picker__popper`,_e.popperClass],"popper-style":_e.popperStyle,"popper-options":d(u),"fallback-placements":_e.fallbackPlacements,"gpu-acceleration":!1,placement:_e.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:U,onShow:ee,onHide:se}),{default:X(()=>[Ce.value?(S(),ce(Mse,{key:1,id:_e.id,ref_key:"inputRef",ref:p,"model-value":pe.value,name:_e.name,disabled:d(g),readonly:!_e.editable||_e.readonly,"start-placeholder":_e.startPlaceholder,"end-placeholder":_e.endPlaceholder,class:D(N.value),style:et(_e.$attrs.style),"aria-label":_e.ariaLabel,tabindex:_e.tabindex,autocomplete:"off",role:"combobox",onClick:ke,onFocus:d(H),onBlur:d(J),onStartInput:Xt,onStartChange:yt,onEndInput:it,onEndChange:Lt,onMousedown:ke,onMouseenter:Oe,onMouseleave:Be,onTouchstartPassive:Le,onKeydown:Ze},{prefix:X(()=>[fe.value?(S(),ce(d(Je),{key:0,class:D([d(i).e("icon"),d(l).e("icon")])},{default:X(()=>[(S(),ce(kt(fe.value)))]),_:1},8,["class"])):ie("v-if",!0)]),"range-separator":X(()=>[ue(_e.$slots,"range-separator",{},()=>[A("span",{class:D(d(l).b("separator"))},ge(_e.rangeSeparator),3)])]),suffix:X(()=>[_e.clearIcon?(S(),ce(d(Je),{key:0,class:D(L.value),onMousedown:ht(d(en),["prevent"]),onClick:Se},{default:X(()=>[(S(),ce(kt(_e.clearIcon)))]),_:1},8,["class","onMousedown"])):ie("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(S(),ce(d(da),{key:0,id:_e.id,ref_key:"inputRef",ref:p,"container-role":"combobox","model-value":pe.value,name:_e.name,size:d(Ie),disabled:d(g),placeholder:_e.placeholder,class:D([d(r).b("editor"),d(r).bm("editor",_e.type),d(r).is("focus",d(x)),_e.$attrs.class]),style:et(_e.$attrs.style),readonly:!_e.editable||_e.readonly||Z.value||j.value||ae.value||_e.type==="week","aria-label":_e.ariaLabel,tabindex:_e.tabindex,"validate-event":!1,onInput:Ot,onFocus:d(H),onBlur:d(J),onKeydown:Ze,onChange:tt,onMousedown:ke,onMouseenter:Oe,onMouseleave:Be,onTouchstartPassive:Le,onClick:Ye[0]||(Ye[0]=ht(()=>{},["stop"]))},{prefix:X(()=>[fe.value?(S(),ce(d(Je),{key:0,class:D(d(i).e("icon")),onMousedown:ht(ke,["prevent"]),onTouchstartPassive:Le},{default:X(()=>[(S(),ce(kt(fe.value)))]),_:1},8,["class"])):ie("v-if",!0)]),suffix:X(()=>[we.value&&_e.clearIcon?(S(),ce(d(Je),{key:0,class:D(`${d(i).e("icon")} clear-icon`),onMousedown:ht(d(en),["prevent"]),onClick:Se},{default:X(()=>[(S(),ce(kt(_e.clearIcon)))]),_:1},8,["class","onMousedown"])):ie("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur"]))]),content:X(()=>[ue(_e.$slots,"default",{visible:d(x),actualVisible:d(w),parsedValue:d(C),format:_e.format,dateFormat:_e.dateFormat,timeFormat:_e.timeFormat,unlinkPanels:_e.unlinkPanels,type:_e.type,defaultValue:_e.defaultValue,showNow:_e.showNow,showConfirm:_e.showConfirm,showFooter:_e.showFooter,showWeekNumber:_e.showWeekNumber,onPick:Ye[1]||(Ye[1]=(...xt)=>d(I)&&d(I)(...xt)),onSelectRange:Q,onSetPickerOption:Ye[2]||(Ye[2]=(...xt)=>d(P)&&d(P)(...xt)),onCalendarChange:Ye[3]||(Ye[3]=(...xt)=>d($)&&d($)(...xt)),onClear:Se,onPanelChange:Ye[4]||(Ye[4]=(...xt)=>d(O)&&d(O)(...xt)),onMousedown:Ye[5]||(Ye[5]=ht(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}});const Pse=Me({...GE,datetimeRole:String,parsedValue:{type:re(Object)}}),XE=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const s=(r,i,l,c)=>{const u={hour:e,minute:t,second:n};let f=r;return["hour","minute","second"].forEach(h=>{if(u[h]){let p;const v=u[h];switch(h){case"minute":{p=v(f.hour(),i,c);break}case"second":{p=v(f.hour(),f.minute(),i,c);break}default:{p=v(i,c);break}}if(p!=null&&p.length&&!p.includes(f[h]())){const m=l?0:p.length-1;f=f[h](p[m])}}}),f},a={};return{timePickerOptions:a,getAvailableTime:s,onSetOption:([r,i])=>{a[r]=i}}},G3=e=>{const t=(s,a)=>s||a,n=s=>s!==!0;return e.map(t).filter(n)},JE=(e,t,n)=>({getHoursList:(r,i)=>k3(24,e&&(()=>e==null?void 0:e(r,i))),getMinutesList:(r,i,l)=>k3(60,t&&(()=>t==null?void 0:t(r,i,l))),getSecondsList:(r,i,l,c)=>k3(60,n&&(()=>n==null?void 0:n(r,i,l,c)))}),ZE=(e,t,n)=>{const{getHoursList:s,getMinutesList:a,getSecondsList:o}=JE(e,t,n);return{getAvailableHours:(c,u)=>G3(s(c,u)),getAvailableMinutes:(c,u,f)=>G3(a(c,u,f)),getAvailableSeconds:(c,u,f,h)=>G3(o(c,u,f,h))}},QE=e=>{const t=F(e.parsedValue);return be(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},Rse=Me({role:{type:String,required:!0},spinnerDate:{type:re(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:re(String),default:""},...U3}),Ise=100,Ose=600,t1="_RepeatClick",n1={beforeMount(e,t){const n=t.value,{interval:s=Ise,delay:a=Ose}=Qe(n)?{}:n;let o,r;const i=()=>Qe(n)?n():n.handler(),l=()=>{r&&(clearTimeout(r),r=void 0),o&&(clearInterval(o),o=void 0)},c=u=>{u.button===0&&(l(),i(),document.addEventListener("mouseup",l,{once:!0}),r=setTimeout(()=>{o=setInterval(()=>{i()},s)},a))};e[t1]={start:c,clear:l},e.addEventListener("mousedown",c)},unmounted(e){if(!e[t1])return;const{start:t,clear:n}=e[t1];t&&e.removeEventListener("mousedown",t),n&&(n(),document.removeEventListener("mouseup",n)),e[t1]=null}},Lse=["onClick"],Nse=["onMouseenter"];var Y3=K({__name:"basic-time-spinner",props:Rse,emits:[Dt,"select-range","set-option"],setup(e,{emit:t}){const n=e,s=je(wr),{isRange:a,format:o}=s.props,r=t,i=Ee("time"),{getHoursList:l,getMinutesList:c,getSecondsList:u}=JE(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let f=!1;const h=F(),g={hours:F(),minutes:F(),seconds:F()},b=E(()=>n.showSeconds?KE:KE.slice(0,2)),C=E(()=>{const{spinnerDate:U}=n,ee=U.hour(),se=U.minute(),de=U.second();return{hours:ee,minutes:se,seconds:de}}),w=E(()=>{const{hours:U,minutes:ee}=d(C),{role:se,spinnerDate:de}=n,te=a?void 0:de;return{hours:l(se,te),minutes:c(U,se,te),seconds:u(U,ee,se,te)}}),_=E(()=>{const{hours:U,minutes:ee,seconds:se}=d(C);return{hours:x3(U,23),minutes:x3(ee,59),seconds:x3(se,59)}}),x=ei(U=>{f=!1,R(U)},200),k=U=>{if(!!!n.amPmMode)return"";const se=n.amPmMode==="A";let de=U<12?" am":" pm";return se&&(de=de.toUpperCase()),de},T=U=>{let ee=[0,0];const se=o||Hf,de=se.indexOf("HH"),te=se.indexOf("mm"),pe=se.indexOf("ss");switch(U){case"hours":de!==-1&&(ee=[de,de+2]);break;case"minutes":te!==-1&&(ee=[te,te+2]);break;case"seconds":pe!==-1&&(ee=[pe,pe+2]);break}const[he,le]=ee;r("select-range",he,le),h.value=U},R=U=>{$(U,d(C)[U])},I=()=>{R("hours"),R("minutes"),R("seconds")},P=U=>U.querySelector(`.${i.namespace.value}-scrollbar__wrap`),$=(U,ee)=>{if(n.arrowControl)return;const se=d(g[U]);se&&se.$el&&(P(se.$el).scrollTop=Math.max(0,ee*O(U)))},O=U=>{const ee=d(g[U]),se=ee==null?void 0:ee.$el.querySelector("li");return se&&Number.parseFloat(Ji(se,"height"))||0},B=()=>{J(1)},H=()=>{J(-1)},J=U=>{h.value||T("hours");const ee=h.value,se=d(C)[ee],de=h.value==="hours"?24:60,te=Y(ee,se,U,de);N(ee,te),$(ee,te),ze(()=>T(ee))},Y=(U,ee,se,de)=>{let te=(ee+se+de)%de;const pe=d(w)[U];for(;pe[te]&&te!==ee;)te=(te+se+de)%de;return te},N=(U,ee)=>{if(d(w)[U][ee])return;const{hours:te,minutes:pe,seconds:he}=d(C);let le;switch(U){case"hours":le=n.spinnerDate.hour(ee).minute(pe).second(he);break;case"minutes":le=n.spinnerDate.hour(te).minute(ee).second(he);break;case"seconds":le=n.spinnerDate.hour(te).minute(pe).second(ee);break}r(Dt,le)},L=(U,{value:ee,disabled:se})=>{se||(N(U,ee),T(U),$(U,ee))},V=U=>{const ee=d(g[U]);if(!ee)return;f=!0,x(U);const se=Math.min(Math.round((P(ee.$el).scrollTop-(z(U)*.5-10)/O(U)+3)/O(U)),U==="hours"?23:59);N(U,se)},z=U=>d(g[U]).$el.offsetHeight,G=()=>{const U=ee=>{const se=d(g[ee]);se&&se.$el&&(P(se.$el).onscroll=()=>{V(ee)})};U("hours"),U("minutes"),U("seconds")};Mt(()=>{ze(()=>{!n.arrowControl&&G(),I(),n.role==="start"&&T("hours")})});const Q=(U,ee)=>{g[ee].value=U??void 0};return r("set-option",[`${n.role}_scrollDown`,J]),r("set-option",[`${n.role}_emitSelectRange`,T]),be(()=>n.spinnerDate,()=>{f||I()}),(U,ee)=>(S(),M("div",{class:D([d(i).b("spinner"),{"has-seconds":U.showSeconds}])},[U.arrowControl?ie("v-if",!0):(S(!0),M(He,{key:0},Et(b.value,se=>(S(),ce(d(gr),{key:se,ref_for:!0,ref:de=>Q(de,se),class:D(d(i).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":d(i).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:de=>T(se),onMousemove:de=>R(se)},{default:X(()=>[(S(!0),M(He,null,Et(w.value[se],(de,te)=>(S(),M("li",{key:te,class:D([d(i).be("spinner","item"),d(i).is("active",te===C.value[se]),d(i).is("disabled",de)]),onClick:pe=>L(se,{value:te,disabled:de})},[se==="hours"?(S(),M(He,{key:0},[We(ge(("0"+(U.amPmMode?te%12||12:te)).slice(-2))+ge(k(te)),1)],64)):(S(),M(He,{key:1},[We(ge(("0"+te).slice(-2)),1)],64))],10,Lse))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),U.arrowControl?(S(!0),M(He,{key:1},Et(b.value,se=>(S(),M("div",{key:se,class:D([d(i).be("spinner","wrapper"),d(i).is("arrow")]),onMouseenter:de=>T(se)},[Ct((S(),ce(d(Je),{class:D(["arrow-up",d(i).be("spinner","arrow")])},{default:X(()=>[W(d(kp))]),_:1},8,["class"])),[[d(n1),H]]),Ct((S(),ce(d(Je),{class:D(["arrow-down",d(i).be("spinner","arrow")])},{default:X(()=>[W(d(mr))]),_:1},8,["class"])),[[d(n1),B]]),A("ul",{class:D(d(i).be("spinner","list"))},[(S(!0),M(He,null,Et(_.value[se],(de,te)=>(S(),M("li",{key:te,class:D([d(i).be("spinner","item"),d(i).is("active",de===C.value[se]),d(i).is("disabled",w.value[se][de])])},[d(st)(de)?(S(),M(He,{key:0},[se==="hours"?(S(),M(He,{key:0},[We(ge(("0"+(U.amPmMode?de%12||12:de)).slice(-2))+ge(k(de)),1)],64)):(S(),M(He,{key:1},[We(ge(("0"+de).slice(-2)),1)],64))],64)):ie("v-if",!0)],2))),128))],2)],42,Nse))),128)):ie("v-if",!0)],2))}}),s1=K({__name:"panel-time-pick",props:Pse,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,s=t,a=je(wr),{arrowControl:o,disabledHours:r,disabledMinutes:i,disabledSeconds:l,defaultValue:c}=a.props,{getAvailableHours:u,getAvailableMinutes:f,getAvailableSeconds:h}=ZE(r,i,l),p=Ee("time"),{t:v,lang:m}=Ft(),g=F([0,2]),b=QE(n),C=E(()=>Wt(n.actualVisible)?`${p.namespace.value}-zoom-in-top`:""),w=E(()=>n.format.includes("ss")),_=E(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),x=L=>{const V=_t(L).locale(m.value),z=J(V);return V.isSame(z)},k=()=>{const L=b.value;s("pick",L,!1),ze(()=>{b.value=L})},T=(L=!1,V=!1)=>{V||s("pick",n.parsedValue,L)},R=L=>{if(!n.visible)return;const V=J(L).millisecond(0);s("pick",V,!0)},I=(L,V)=>{s("select-range",L,V),g.value=[L,V]},P=L=>{const V=n.format,z=V.indexOf("HH"),G=V.indexOf("mm"),Q=V.indexOf("ss"),U=[],ee=[];z!==-1&&(U.push(z),ee.push("hours")),G!==-1&&(U.push(G),ee.push("minutes")),Q!==-1&&w.value&&(U.push(Q),ee.push("seconds"));const de=(U.indexOf(g.value[0])+L+U.length)%U.length;O.start_emitSelectRange(ee[de])},$=L=>{const V=un(L),{left:z,right:G,up:Q,down:U}=Te;if([z,G].includes(V)){P(V===z?-1:1),L.preventDefault();return}if([Q,U].includes(V)){const ee=V===Q?-1:1;O.start_scrollDown(ee),L.preventDefault();return}},{timePickerOptions:O,onSetOption:B,getAvailableTime:H}=XE({getAvailableHours:u,getAvailableMinutes:f,getAvailableSeconds:h}),J=L=>H(L,n.datetimeRole||"",!0),Y=L=>L?_t(L,n.format).locale(m.value):null,N=()=>_t(c).locale(m.value);return s("set-picker-option",["isValidValue",x]),s("set-picker-option",["parseUserInput",Y]),s("set-picker-option",["handleKeydownInput",$]),s("set-picker-option",["getRangeAvailableTime",J]),s("set-picker-option",["getDefaultValue",N]),(L,V)=>(S(),ce(Cs,{name:C.value},{default:X(()=>[L.actualVisible||L.visible?(S(),M("div",{key:0,class:D(d(p).b("panel"))},[A("div",{class:D([d(p).be("panel","content"),{"has-seconds":w.value}])},[W(Y3,{ref:"spinner",role:L.datetimeRole||"start","arrow-control":d(o),"show-seconds":w.value,"am-pm-mode":_.value,"spinner-date":L.parsedValue,"disabled-hours":d(r),"disabled-minutes":d(i),"disabled-seconds":d(l),onChange:R,onSetOption:d(B),onSelectRange:I},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),A("div",{class:D(d(p).be("panel","footer"))},[A("button",{type:"button",class:D([d(p).be("panel","btn"),"cancel"]),onClick:k},ge(d(v)("el.datepicker.cancel")),3),A("button",{type:"button",class:D([d(p).be("panel","btn"),"confirm"]),onClick:V[0]||(V[0]=z=>T())},ge(d(v)("el.datepicker.confirm")),3)],2)],2)):ie("v-if",!0)]),_:1},8,["name"]))}});const $se=Me({...GE,parsedValue:{type:re(Array)}}),Dse=["disabled"];var Fse=K({__name:"panel-time-range",props:$se,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,s=t,a=(Z,j)=>{const ae=[];for(let fe=Z;fe<=j;fe++)ae.push(fe);return ae},{t:o,lang:r}=Ft(),i=Ee("time"),l=Ee("picker"),c=je(wr),{arrowControl:u,disabledHours:f,disabledMinutes:h,disabledSeconds:p,defaultValue:v}=c.props,m=E(()=>[i.be("range-picker","body"),i.be("panel","content"),i.is("arrow",u),x.value?"has-seconds":""]),g=E(()=>[i.be("range-picker","body"),i.be("panel","content"),i.is("arrow",u),x.value?"has-seconds":""]),b=E(()=>n.parsedValue[0]),C=E(()=>n.parsedValue[1]),w=QE(n),_=()=>{const Z=w.value;s("pick",Z,!1),ze(()=>{w.value=Z})},x=E(()=>n.format.includes("ss")),k=E(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),T=(Z=!1)=>{s("pick",[b.value,C.value],Z)},R=Z=>{$(Z.millisecond(0),C.value)},I=Z=>{$(b.value,Z.millisecond(0))},P=Z=>{const j=Z.map(fe=>_t(fe).locale(r.value)),ae=Q(j);return j[0].isSame(ae[0])&&j[1].isSame(ae[1])},$=(Z,j)=>{n.visible&&s("pick",[Z,j],!0)},O=E(()=>b.value>C.value),B=F([0,2]),H=(Z,j)=>{s("select-range",Z,j,"min"),B.value=[Z,j]},J=E(()=>x.value?11:8),Y=(Z,j)=>{s("select-range",Z,j,"max");const ae=d(J);B.value=[Z+ae,j+ae]},N=Z=>{const j=x.value?[0,3,6,11,14,17]:[0,3,8,11],ae=["hours","minutes"].concat(x.value?["seconds"]:[]),we=(j.indexOf(B.value[0])+Z+j.length)%j.length,Se=j.length/2;we<Se?de.start_emitSelectRange(ae[we]):de.end_emitSelectRange(ae[we-Se])},L=Z=>{const j=un(Z),{left:ae,right:fe,up:we,down:Se}=Te;if([ae,fe].includes(j)){N(j===ae?-1:1),Z.preventDefault();return}if([we,Se].includes(j)){const ke=j===we?-1:1,Oe=B.value[0]<J.value?"start":"end";de[`${Oe}_scrollDown`](ke),Z.preventDefault();return}},V=(Z,j)=>{const ae=f?f(Z):[],fe=Z==="start",Se=(j||(fe?C.value:b.value)).hour(),ke=fe?a(Se+1,23):a(0,Se-1);return Iy(ae,ke)},z=(Z,j,ae)=>{const fe=h?h(Z,j):[],we=j==="start",Se=ae||(we?C.value:b.value),ke=Se.hour();if(Z!==ke)return fe;const Oe=Se.minute(),Be=we?a(Oe+1,59):a(0,Oe-1);return Iy(fe,Be)},G=(Z,j,ae,fe)=>{const we=p?p(Z,j,ae):[],Se=ae==="start",ke=fe||(Se?C.value:b.value),Oe=ke.hour(),Be=ke.minute();if(Z!==Oe||j!==Be)return we;const Le=ke.second(),Ce=Se?a(Le+1,59):a(0,Le-1);return Iy(we,Ce)},Q=([Z,j])=>[te(Z,"start",!0,j),te(j,"end",!1,Z)],{getAvailableHours:U,getAvailableMinutes:ee,getAvailableSeconds:se}=ZE(V,z,G),{timePickerOptions:de,getAvailableTime:te,onSetOption:pe}=XE({getAvailableHours:U,getAvailableMinutes:ee,getAvailableSeconds:se}),he=Z=>Z?Ae(Z)?Z.map(j=>_t(j,n.format).locale(r.value)):_t(Z,n.format).locale(r.value):null,le=()=>{if(Ae(v))return v.map(j=>_t(j).locale(r.value));const Z=_t(v).locale(r.value);return[Z,Z.add(60,"m")]};return s("set-picker-option",["parseUserInput",he]),s("set-picker-option",["isValidValue",P]),s("set-picker-option",["handleKeydownInput",L]),s("set-picker-option",["getDefaultValue",le]),s("set-picker-option",["getRangeAvailableTime",Q]),(Z,j)=>Z.actualVisible?(S(),M("div",{key:0,class:D([d(i).b("range-picker"),d(l).b("panel")])},[A("div",{class:D(d(i).be("range-picker","content"))},[A("div",{class:D(d(i).be("range-picker","cell"))},[A("div",{class:D(d(i).be("range-picker","header"))},ge(d(o)("el.datepicker.startTime")),3),A("div",{class:D(m.value)},[W(Y3,{ref:"minSpinner",role:"start","show-seconds":x.value,"am-pm-mode":k.value,"arrow-control":d(u),"spinner-date":b.value,"disabled-hours":V,"disabled-minutes":z,"disabled-seconds":G,onChange:R,onSetOption:d(pe),onSelectRange:H},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),A("div",{class:D(d(i).be("range-picker","cell"))},[A("div",{class:D(d(i).be("range-picker","header"))},ge(d(o)("el.datepicker.endTime")),3),A("div",{class:D(g.value)},[W(Y3,{ref:"maxSpinner",role:"end","show-seconds":x.value,"am-pm-mode":k.value,"arrow-control":d(u),"spinner-date":C.value,"disabled-hours":V,"disabled-minutes":z,"disabled-seconds":G,onChange:I,onSetOption:d(pe),onSelectRange:Y},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),A("div",{class:D(d(i).be("panel","footer"))},[A("button",{type:"button",class:D([d(i).be("panel","btn"),"cancel"]),onClick:j[0]||(j[0]=ae=>_())},ge(d(o)("el.datepicker.cancel")),3),A("button",{type:"button",class:D([d(i).be("panel","btn"),"confirm"]),disabled:O.value,onClick:j[1]||(j[1]=ae=>T())},ge(d(o)("el.datepicker.confirm")),11,Dse)],2)],2)):ie("v-if",!0)}});_t.extend(j3);var Bse=K({name:"ElTimePicker",install:null,props:{...q3,isRange:Boolean},emits:[mt],setup(e,t){const n=F(),[s,a]=e.isRange?["timerange",Fse]:["time",s1],o=r=>t.emit(mt,r);return Nt(K3,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:Hf;return W(YE,At(e,{ref:n,type:s,format:i,"onUpdate:modelValue":o}),{default:l=>W(a,l,null)})}}});const Vse=wt(Bse);var eA={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(al,function(){return function(n,s){var a=s.prototype,o=a.format;a.format=function(r){var i=this,l=this.$locale();if(!this.isValid())return o.bind(this)(r);var c=this.$utils(),u=(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(f){switch(f){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return l.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return l.ordinal(i.week(),"W");case"w":case"ww":return c.s(i.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(i.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(i.$H===0?24:i.$H),f==="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 f}});return o.bind(this)(u)}}})})(eA);var zse=eA.exports;const Hse=ol(zse);var tA={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(al,function(){var n="week",s="year";return function(a,o,r){var i=o.prototype;i.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=r(this).startOf(s).add(1,s).date(c),f=r(this).endOf(n);if(u.isBefore(f))return 1}var h=r(this).startOf(s).date(c).startOf(n).subtract(1,"millisecond"),p=this.diff(h,n,!0);return p<0?r(this).startOf("week").week():Math.ceil(p)},i.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(tA);var Wse=tA.exports;const jse=ol(Wse);var nA={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(al,function(){return function(n,s){s.prototype.weekYear=function(){var a=this.month(),o=this.week(),r=this.year();return o===1&&a===11?r+1:a===0&&o>=52?r-1:r}}})})(nA);var Kse=nA.exports;const Use=ol(Kse);var sA={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(al,function(){return function(n,s,a){s.prototype.dayOfYear=function(o){var r=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return o==null?r:this.add(o-r,"day")}}})})(sA);var qse=sA.exports;const Gse=ol(qse);var aA={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(al,function(){return function(n,s){s.prototype.isSameOrAfter=function(a,o){return this.isSame(a,o)||this.isAfter(a,o)}}})})(aA);var Yse=aA.exports;const Xse=ol(Yse);var oA={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(al,function(){return function(n,s){s.prototype.isSameOrBefore=function(a,o){return this.isSame(a,o)||this.isBefore(a,o)}}})})(oA);var Jse=oA.exports;const Zse=ol(Jse),Qse=Me({valueFormat:String,dateFormat:String,timeFormat:String,disabled:{type:Boolean,default:void 0},modelValue:{type:re([Date,Array,String,Number]),default:""},defaultValue:{type:re([Date,Array])},defaultTime:{type:re([Date,Array])},isRange:Boolean,...U3,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:re(String),default:"date"},clearable:{type:Boolean,default:!0},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0}}),X3=Symbol("rootPickerContextKey"),jp="ElIsDefaultFormat",eae=["date","dates","year","years","month","months","week","range"],J3=Me({cellClassName:{type:re(Function)},disabledDate:{type:re(Function)},date:{type:re(Object),required:!0},minDate:{type:re(Object)},maxDate:{type:re(Object)},parsedValue:{type:re([Object,Array])},rangeState:{type:re(Object),default:()=>({endDate:null,selecting:!1})},disabled:Boolean}),rA=Me({type:{type:re(String),required:!0,values:$ee},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean,border:Boolean,disabled:Boolean,editable:{type:Boolean,default:!0}}),Z3=Me({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:re(Array)}}),Q3=e=>({type:String,values:eae,default:e}),tae=Me({...rA,parsedValue:{type:re([Object,Array])},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),Kp=e=>{if(!Ae(e))return!1;const[t,n]=e;return _t.isDayjs(t)&&_t.isDayjs(n)&&_t(t).isValid()&&_t(n).isValid()&&t.isSameOrBefore(n)},a1=(e,{lang:t,step:n=1,unit:s,unlinkPanels:a})=>{let o;if(Ae(e)){let[r,i]=e.map(l=>_t(l).locale(t));return a||(i=r.add(n,s)),[r,i]}else e?o=_t(e):o=_t();return o=o.locale(t),[o,o.add(n,s)]},nae=(e,t,{columnIndexOffset:n,startDate:s,nextEndDate:a,now:o,unit:r,relativeDateGetter:i,setCellMetadata:l,setRowMetadata:c})=>{for(let u=0;u<e.row;u++){const f=t[u];for(let h=0;h<e.column;h++){let p=f[h+n];p||(p={row:u,column:h,type:"normal",inRange:!1,start:!1,end:!1});const v=u*e.column+h,m=i(v);p.dayjs=m,p.date=m.toDate(),p.timestamp=m.valueOf(),p.type="normal",p.inRange=!!(s&&m.isSameOrAfter(s,r)&&a&&m.isSameOrBefore(a,r))||!!(s&&m.isSameOrBefore(s,r)&&a&&m.isSameOrAfter(a,r)),s!=null&&s.isSameOrAfter(a)?(p.start=!!a&&m.isSame(a,r),p.end=s&&m.isSame(s,r)):(p.start=!!s&&m.isSame(s,r),p.end=!!a&&m.isSame(a,r)),m.isSame(o,r)&&(p.type="today"),l==null||l(p,{rowIndex:u,columnIndex:h}),f[h+n]=p}c==null||c(f)}},o1=(e,t,n,s)=>{const a=_t().locale(s).startOf("month").month(n).year(t).hour(e.hour()).minute(e.minute()).second(e.second()),o=a.daysInMonth();return cc(o).map(r=>a.add(r,"day").toDate())},Wf=(e,t,n,s,a)=>{const o=_t().year(t).month(n).startOf("month").hour(e.hour()).minute(e.minute()).second(e.second()),r=o1(e,t,n,s).find(i=>!(a!=null&&a(i)));return r?_t(r).locale(s):o.locale(s)},r1=(e,t,n)=>{const s=e.year();if(!(n!=null&&n(e.toDate())))return e.locale(t);const a=e.month();if(!o1(e,s,a,t).every(n))return Wf(e,s,a,t,n);for(let o=0;o<12;o++)if(!o1(e,s,o,t).every(n))return Wf(e,s,o,t,n);return e},jf=(e,t,n,s)=>{if(Ae(e))return e.map(a=>jf(a,t,n,s));if(Xe(e)){const a=s!=null&&s.value?_t(e):_t(e,t);if(!a.isValid())return a}return _t(e,t).locale(n)},sae=Me({...J3,showWeekNumber:Boolean,selectionMode:Q3("date")}),aae=["changerange","pick","select"],i1=(e="")=>["normal","today"].includes(e),oae=(e,t)=>{const{lang:n}=Ft(),s=F(),a=F(),o=F(),r=F(),i=F([[],[],[],[],[],[]]);let l=!1;const c=e.date.$locale().weekStart||7,u=e.date.locale("en").localeData().weekdaysShort().map(V=>V.toLowerCase()),f=E(()=>c>3?7-c:-c),h=E(()=>{const V=e.date.startOf("month");return V.subtract(V.day()||7,"day")}),p=E(()=>u.concat(u).slice(c,c+7)),v=E(()=>mg(d(_)).some(V=>V.isCurrent)),m=E(()=>{const V=e.date.startOf("month"),z=V.day()||7,G=V.daysInMonth(),Q=V.subtract(1,"month").daysInMonth();return{startOfMonthDay:z,dateCountOfMonth:G,dateCountOfLastMonth:Q}}),g=E(()=>e.selectionMode==="dates"?fa(e.parsedValue):[]),b=(V,{count:z,rowIndex:G,columnIndex:Q})=>{const{startOfMonthDay:U,dateCountOfMonth:ee,dateCountOfLastMonth:se}=d(m),de=d(f);if(G>=0&&G<=1){const te=U+de<0?7+U+de:U+de;if(Q+G*7>=te)return V.text=z,!0;V.text=se-(te-Q%7)+1+G*7,V.type="prev-month"}else return z<=ee?V.text=z:(V.text=z-ee,V.type="next-month"),!0;return!1},C=(V,{columnIndex:z,rowIndex:G},Q)=>{const{disabledDate:U,cellClassName:ee}=e,se=d(g),de=b(V,{count:Q,rowIndex:G,columnIndex:z}),te=V.dayjs.toDate();return V.selected=se.find(pe=>pe.isSame(V.dayjs,"day")),V.isSelected=!!V.selected,V.isCurrent=k(V),V.disabled=U==null?void 0:U(te),V.customClass=ee==null?void 0:ee(te),de},w=V=>{if(e.selectionMode==="week"){const[z,G]=e.showWeekNumber?[1,7]:[0,6],Q=L(V[z+1]);V[z].inRange=Q,V[z].start=Q,V[G].inRange=Q,V[G].end=Q}},_=E(()=>{const{minDate:V,maxDate:z,rangeState:G,showWeekNumber:Q}=e,U=d(f),ee=d(i),se="day";let de=1;if(nae({row:6,column:7},ee,{startDate:V,columnIndexOffset:Q?1:0,nextEndDate:G.endDate||z||G.selecting&&V||null,now:_t().locale(d(n)).startOf(se),unit:se,relativeDateGetter:te=>d(h).add(te-U,se),setCellMetadata:(...te)=>{C(...te,de)&&(de+=1)},setRowMetadata:w}),Q)for(let te=0;te<6;te++)ee[te][1].dayjs&&(ee[te][0]={type:"week",text:ee[te][1].dayjs.week()});return ee});be(()=>e.date,async()=>{var V;(V=d(s))!=null&&V.contains(document.activeElement)&&(await ze(),await x())});const x=async()=>{var V;return(V=d(a))==null?void 0:V.focus()},k=V=>e.selectionMode==="date"&&i1(V.type)&&T(V,e.parsedValue),T=(V,z)=>z?_t(z).locale(d(n)).isSame(e.date.date(Number(V.text)),"day"):!1,R=(V,z)=>{const G=d(m).startOfMonthDay,Q=d(f),U=G+Q<0?7+G+Q:G+Q,ee=V*7+(z-(e.showWeekNumber?1:0));return e.date.startOf("month").subtract(U,"day").add(ee,"day")},I=V=>{var z;if(!e.rangeState.selecting)return;let G=V.target;if(G.tagName==="SPAN"&&(G=(z=G.parentNode)==null?void 0:z.parentNode),G.tagName==="DIV"&&(G=G.parentNode),G.tagName!=="TD")return;const Q=G.parentNode.rowIndex-1,U=G.cellIndex;d(_)[Q][U].disabled||(Q!==d(o)||U!==d(r))&&(o.value=Q,r.value=U,t("changerange",{selecting:!0,endDate:R(Q,U)}))},P=V=>!d(v)&&(V==null?void 0:V.text)===1&&i1(V.type)||V.isCurrent,$=V=>{l||d(v)||e.selectionMode!=="date"||N(V,!0)},O=V=>{V.target.closest("td")&&(l=!0)},B=V=>{V.target.closest("td")&&(l=!1)},H=V=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:V,maxDate:null}),t("select",!0)):(V>=e.minDate?t("pick",{minDate:e.minDate,maxDate:V}):t("pick",{minDate:V,maxDate:e.minDate}),t("select",!1))},J=V=>{const z=V.week(),G=`${V.year()}w${z}`;t("pick",{year:V.year(),week:z,value:G,date:V.startOf("week")})},Y=(V,z)=>{const G=z?fa(e.parsedValue).filter(Q=>(Q==null?void 0:Q.valueOf())!==V.valueOf()):fa(e.parsedValue).concat([V]);t("pick",G)},N=(V,z=!1)=>{if(e.disabled)return;const G=V.target.closest("td");if(!G)return;const Q=G.parentNode.rowIndex-1,U=G.cellIndex,ee=d(_)[Q][U];if(ee.disabled||ee.type==="week")return;const se=R(Q,U);switch(e.selectionMode){case"range":{H(se);break}case"date":{t("pick",se,z);break}case"week":{J(se);break}case"dates":{Y(se,!!ee.selected);break}}},L=V=>{if(e.selectionMode!=="week")return!1;let z=e.date.startOf("day");if(V.type==="prev-month"&&(z=z.subtract(1,"month")),V.type==="next-month"&&(z=z.add(1,"month")),z=z.date(Number.parseInt(V.text,10)),e.parsedValue&&!Ae(e.parsedValue)){const G=(e.parsedValue.day()-c+7)%7-1;return e.parsedValue.subtract(G,"day").isSame(z,"day")}return!1};return{WEEKS:p,rows:_,tbodyRef:s,currentCellRef:a,focus:x,isCurrent:k,isWeekActive:L,isSelectedCell:P,handlePickDate:N,handleMouseUp:B,handleMouseDown:O,handleMouseMove:I,handleFocus:$}},rae=(e,{isCurrent:t,isWeekActive:n})=>{const s=Ee("date-table"),{t:a}=Ft(),o=E(()=>[s.b(),s.is("week-mode",e.selectionMode==="week"&&!e.disabled)]),r=E(()=>a("el.datepicker.dateTablePrompt")),i=c=>{const u=[];return i1(c.type)&&!c.disabled?(u.push("available"),c.type==="today"&&u.push("today")):u.push(c.type),t(c)&&u.push("current"),c.inRange&&(i1(c.type)||e.selectionMode==="week")&&(u.push("in-range"),c.start&&u.push("start-date"),c.end&&u.push("end-date")),(c.disabled||e.disabled)&&u.push("disabled"),c.selected&&u.push("selected"),c.customClass&&u.push(c.customClass),u.join(" ")},l=c=>[s.e("row"),{current:n(c)}];return{tableKls:o,tableLabel:r,weekHeaderClass:s.e("week-header"),getCellClasses:i,getRowKls:l,t:a}},iae=Me({cell:{type:re(Object)}});var e6=K({name:"ElDatePickerCell",props:iae,setup(e){const t=Ee("date-table-cell"),{slots:n}=je(X3);return()=>{const{cell:s}=e;return ue(n,"default",{...s},()=>{var a;return[W("div",{class:t.b()},[W("span",{class:t.e("text")},[(a=s==null?void 0:s.renderText)!=null?a:s==null?void 0:s.text])])]})}}});const lae=["aria-label"],cae=["aria-label"],uae=["aria-current","aria-selected","tabindex","aria-disabled"];var t6=K({__name:"basic-date-table",props:sae,emits:aae,setup(e,{expose:t,emit:n}){const s=e,a=n,{WEEKS:o,rows:r,tbodyRef:i,currentCellRef:l,focus:c,isCurrent:u,isWeekActive:f,isSelectedCell:h,handlePickDate:p,handleMouseUp:v,handleMouseDown:m,handleMouseMove:g,handleFocus:b}=oae(s,a),{tableLabel:C,tableKls:w,getCellClasses:_,getRowKls:x,weekHeaderClass:k,t:T}=rae(s,{isCurrent:u,isWeekActive:f});let R=!1;return tn(()=>{R=!0}),t({focus:c}),(I,P)=>(S(),M("table",{"aria-label":d(C),class:D(d(w)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:P[1]||(P[1]=(...$)=>d(p)&&d(p)(...$)),onMousemove:P[2]||(P[2]=(...$)=>d(g)&&d(g)(...$)),onMousedown:P[3]||(P[3]=(...$)=>d(m)&&d(m)(...$)),onMouseup:P[4]||(P[4]=(...$)=>d(v)&&d(v)(...$))},[A("tbody",{ref_key:"tbodyRef",ref:i},[A("tr",null,[I.showWeekNumber?(S(),M("th",{key:0,scope:"col",class:D(d(k))},null,2)):ie("v-if",!0),(S(!0),M(He,null,Et(d(o),($,O)=>(S(),M("th",{key:O,"aria-label":d(T)("el.datepicker.weeksFull."+$),scope:"col"},ge(d(T)("el.datepicker.weeks."+$)),9,cae))),128))]),(S(!0),M(He,null,Et(d(r),($,O)=>(S(),M("tr",{key:O,class:D(d(x)(I.showWeekNumber?$[2]:$[1]))},[(S(!0),M(He,null,Et($,(B,H)=>(S(),M("td",{key:`${O}.${H}`,ref_for:!0,ref:J=>!d(R)&&d(h)(B)&&(l.value=J),class:D(d(_)(B)),"aria-current":B.isCurrent?"date":void 0,"aria-selected":B.isCurrent,tabindex:I.disabled?void 0:d(h)(B)?0:-1,"aria-disabled":I.disabled,onFocus:P[0]||(P[0]=(...J)=>d(b)&&d(b)(...J))},[W(d(e6),{cell:B},null,8,["cell"])],42,uae))),128))],2))),128))],512)],42,lae))}});const dae=Me({...J3,selectionMode:Q3("month")}),fae=["aria-label"],hae=["aria-selected","aria-label","tabindex","onKeydown"];var Up=K({__name:"basic-month-table",props:dae,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("month-table"),{t:r,lang:i}=Ft(),l=F(),c=F(),u=F(s.date.locale("en").localeData().monthsShort().map(_=>_.toLowerCase())),f=F([[],[],[]]),h=F(),p=F(),v=E(()=>{var _,x,k;const T=f.value,R=_t().locale(i.value).startOf("month");for(let I=0;I<3;I++){const P=T[I];for(let $=0;$<4;$++){const O=P[$]||(P[$]={row:I,column:$,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});O.type="normal";const B=I*4+$,H=s.date.startOf("year").month(B),J=s.rangeState.endDate||s.maxDate||s.rangeState.selecting&&s.minDate||null;O.inRange=!!(s.minDate&&H.isSameOrAfter(s.minDate,"month")&&J&&H.isSameOrBefore(J,"month"))||!!(s.minDate&&H.isSameOrBefore(s.minDate,"month")&&J&&H.isSameOrAfter(J,"month")),(_=s.minDate)!=null&&_.isSameOrAfter(J)?(O.start=!!(J&&H.isSame(J,"month")),O.end=s.minDate&&H.isSame(s.minDate,"month")):(O.start=!!(s.minDate&&H.isSame(s.minDate,"month")),O.end=!!(J&&H.isSame(J,"month"))),R.isSame(H)&&(O.type="today");const N=H.toDate();O.text=B,O.disabled=((x=s.disabledDate)==null?void 0:x.call(s,N))||!1,O.date=N,O.customClass=(k=s.cellClassName)==null?void 0:k.call(s,N),O.dayjs=H,O.timestamp=H.valueOf(),O.isSelected=b(O)}}return T}),m=()=>{var _;(_=c.value)==null||_.focus()},g=_=>{const x={},k=s.date.year(),T=new Date,R=_.text;return x.disabled=s.disabled||(s.disabledDate?o1(s.date,k,R,i.value).every(s.disabledDate):!1),x.current=fa(s.parsedValue).some(I=>_t.isDayjs(I)&&I.year()===k&&I.month()===R),x.today=T.getFullYear()===k&&T.getMonth()===R,_.customClass&&(x[_.customClass]=!0),_.inRange&&(x["in-range"]=!0,_.start&&(x["start-date"]=!0),_.end&&(x["end-date"]=!0)),x},b=_=>{const x=s.date.year(),k=_.text;return fa(s.date).some(T=>T.year()===x&&T.month()===k)},C=_=>{var x;if(!s.rangeState.selecting)return;let k=_.target;if(k.tagName==="SPAN"&&(k=(x=k.parentNode)==null?void 0:x.parentNode),k.tagName==="DIV"&&(k=k.parentNode),k.tagName!=="TD")return;const T=k.parentNode.rowIndex,R=k.cellIndex;v.value[T][R].disabled||(T!==h.value||R!==p.value)&&(h.value=T,p.value=R,a("changerange",{selecting:!0,endDate:s.date.startOf("year").month(T*4+R)}))},w=_=>{var x;if(s.disabled)return;const k=(x=_.target)==null?void 0:x.closest("td");if((k==null?void 0:k.tagName)!=="TD"||ni(k,"disabled"))return;const T=k.cellIndex,I=k.parentNode.rowIndex*4+T,P=s.date.startOf("year").month(I);if(s.selectionMode==="months"){if(_.type==="keydown"){a("pick",fa(s.parsedValue),!1);return}const $=Wf(s.date,s.date.year(),I,i.value,s.disabledDate),O=ni(k,"current")?fa(s.parsedValue).filter(B=>(B==null?void 0:B.year())!==$.year()||(B==null?void 0:B.month())!==$.month()):fa(s.parsedValue).concat([_t($)]);a("pick",O)}else s.selectionMode==="range"?s.rangeState.selecting?(s.minDate&&P>=s.minDate?a("pick",{minDate:s.minDate,maxDate:P}):a("pick",{minDate:P,maxDate:s.minDate}),a("select",!1)):(a("pick",{minDate:P,maxDate:null}),a("select",!0)):a("pick",I)};return be(()=>s.date,async()=>{var _,x;(_=l.value)!=null&&_.contains(document.activeElement)&&(await ze(),(x=c.value)==null||x.focus())}),t({focus:m}),(_,x)=>(S(),M("table",{role:"grid","aria-label":d(r)("el.datepicker.monthTablePrompt"),class:D(d(o).b()),onClick:w,onMousemove:C},[A("tbody",{ref_key:"tbodyRef",ref:l},[(S(!0),M(He,null,Et(v.value,(k,T)=>(S(),M("tr",{key:T},[(S(!0),M(He,null,Et(k,(R,I)=>(S(),M("td",{key:I,ref_for:!0,ref:P=>R.isSelected&&(c.value=P),class:D(g(R)),"aria-selected":!!R.isSelected,"aria-label":d(r)(`el.datepicker.month${+R.text+1}`),tabindex:R.isSelected?0:-1,onKeydown:[zn(ht(w,["prevent","stop"]),["space"]),zn(ht(w,["prevent","stop"]),["enter"])]},[W(d(e6),{cell:{...R,renderText:d(r)("el.datepicker.months."+u.value[R.text])}},null,8,["cell"])],42,hae))),128))]))),128))],512)],42,fae))}});const pae=Me({...J3,selectionMode:Q3("year")}),vae=["aria-label"],mae=["aria-selected","aria-label","tabindex","onKeydown"];var qp=K({__name:"basic-year-table",props:pae,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const s=(x,k)=>{const T=_t(String(x)).locale(k).startOf("year"),I=T.endOf("year").dayOfYear();return cc(I).map(P=>T.add(P,"day").toDate())},a=e,o=n,r=Ee("year-table"),{t:i,lang:l}=Ft(),c=F(),u=F(),f=E(()=>Math.floor(a.date.year()/10)*10),h=F([[],[],[]]),p=F(),v=F(),m=E(()=>{var x,k,T;const R=h.value,I=_t().locale(l.value).startOf("year");for(let P=0;P<3;P++){const $=R[P];for(let O=0;O<4&&!(P*4+O>=10);O++){let B=$[O];B||(B={row:P,column:O,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 H=P*4+O+f.value,J=_t().year(H),Y=a.rangeState.endDate||a.maxDate||a.rangeState.selecting&&a.minDate||null;B.inRange=!!(a.minDate&&J.isSameOrAfter(a.minDate,"year")&&Y&&J.isSameOrBefore(Y,"year"))||!!(a.minDate&&J.isSameOrBefore(a.minDate,"year")&&Y&&J.isSameOrAfter(Y,"year")),(x=a.minDate)!=null&&x.isSameOrAfter(Y)?(B.start=!!(Y&&J.isSame(Y,"year")),B.end=!!(a.minDate&&J.isSame(a.minDate,"year"))):(B.start=!!(a.minDate&&J.isSame(a.minDate,"year")),B.end=!!(Y&&J.isSame(Y,"year"))),I.isSame(J)&&(B.type="today"),B.text=H;const L=J.toDate();B.disabled=((k=a.disabledDate)==null?void 0:k.call(a,L))||!1,B.date=L,B.customClass=(T=a.cellClassName)==null?void 0:T.call(a,L),B.dayjs=J,B.timestamp=J.valueOf(),B.isSelected=C(B),$[O]=B}}return R}),g=()=>{var x;(x=u.value)==null||x.focus()},b=x=>{const k={},T=_t().locale(l.value),R=x.text;return k.disabled=a.disabled||(a.disabledDate?s(R,l.value).every(a.disabledDate):!1),k.today=T.year()===R,k.current=fa(a.parsedValue).some(I=>I.year()===R),x.customClass&&(k[x.customClass]=!0),x.inRange&&(k["in-range"]=!0,x.start&&(k["start-date"]=!0),x.end&&(k["end-date"]=!0)),k},C=x=>{const k=x.text;return fa(a.date).some(T=>T.year()===k)},w=x=>{var k;if(a.disabled)return;const T=(k=x.target)==null?void 0:k.closest("td");if(!T||!T.textContent||ni(T,"disabled"))return;const R=T.cellIndex,P=T.parentNode.rowIndex*4+R+f.value,$=_t().year(P);if(a.selectionMode==="range")a.rangeState.selecting?(a.minDate&&$>=a.minDate?o("pick",{minDate:a.minDate,maxDate:$}):o("pick",{minDate:$,maxDate:a.minDate}),o("select",!1)):(o("pick",{minDate:$,maxDate:null}),o("select",!0));else if(a.selectionMode==="years"){if(x.type==="keydown"){o("pick",fa(a.parsedValue),!1);return}const O=r1($.startOf("year"),l.value,a.disabledDate),B=ni(T,"current")?fa(a.parsedValue).filter(H=>(H==null?void 0:H.year())!==P):fa(a.parsedValue).concat([O]);o("pick",B)}else o("pick",P)},_=x=>{var k;if(!a.rangeState.selecting)return;const T=(k=x.target)==null?void 0:k.closest("td");if(!T)return;const R=T.parentNode.rowIndex,I=T.cellIndex;m.value[R][I].disabled||(R!==p.value||I!==v.value)&&(p.value=R,v.value=I,o("changerange",{selecting:!0,endDate:_t().year(f.value).add(R*4+I,"year")}))};return be(()=>a.date,async()=>{var x,k;(x=c.value)!=null&&x.contains(document.activeElement)&&(await ze(),(k=u.value)==null||k.focus())}),t({focus:g}),(x,k)=>(S(),M("table",{role:"grid","aria-label":d(i)("el.datepicker.yearTablePrompt"),class:D(d(r).b()),onClick:w,onMousemove:_},[A("tbody",{ref_key:"tbodyRef",ref:c},[(S(!0),M(He,null,Et(m.value,(T,R)=>(S(),M("tr",{key:R},[(S(!0),M(He,null,Et(T,(I,P)=>(S(),M("td",{key:`${R}_${P}`,ref_for:!0,ref:$=>I.isSelected&&(u.value=$),class:D(["available",b(I)]),"aria-selected":I.isSelected,"aria-label":String(I.text),tabindex:I.isSelected?0:-1,onKeydown:[zn(ht(w,["prevent","stop"]),["space"]),zn(ht(w,["prevent","stop"]),["enter"])]},[W(d(e6),{cell:I},null,8,["cell"])],42,mae))),128))]))),128))],512)],42,vae))}});const gae=["disabled","onClick"],bae=["aria-label","disabled"],yae=["aria-label","disabled"],wae=["tabindex","aria-disabled"],_ae=["tabindex","aria-disabled"],Cae=["aria-label","disabled"],Sae=["aria-label","disabled"];var xae=K({__name:"panel-date-pick",props:tae,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=(xe,qe,_e)=>!0,s=e,a=t,o=Ee("picker-panel"),r=Ee("date-picker"),i=Hi(),l=Gn(),{t:c,lang:u}=Ft(),f=je(wr),h=je(jp,void 0),{shortcuts:p,disabledDate:v,cellClassName:m,defaultTime:g}=f.props,b=sn(f.props,"defaultValue"),C=F(),w=F(_t().locale(u.value)),_=F(!1);let x=!1;const k=E(()=>_t(g).locale(u.value)),T=E(()=>w.value.month()),R=E(()=>w.value.year()),I=F([]),P=F(null),$=F(null),O=xe=>I.value.length>0?n(xe,I.value,s.format||"HH:mm:ss"):!0,B=xe=>g&&!Oe.value&&!_.value&&!x?k.value.year(xe.year()).month(xe.month()).date(xe.date()):he.value?xe.millisecond(0):xe.startOf("day"),H=(xe,...qe)=>{if(!xe)a("pick",xe,...qe);else if(Ae(xe)){const _e=xe.map(B);a("pick",_e,...qe)}else a("pick",B(xe),...qe);P.value=null,$.value=null,_.value=!1,x=!1},J=async(xe,qe)=>{if(G.value==="date"&&_t.isDayjs(xe)){const _e=Vp(s.parsedValue);let Ye=_e?_e.year(xe.year()).month(xe.month()).date(xe.date()):xe;O(Ye),w.value=Ye,H(Ye,he.value||qe)}else G.value==="week"?H(xe.date):G.value==="dates"&&H(xe,!0)},Y=xe=>{const qe=xe?"add":"subtract";w.value=w.value[qe](1,"month"),Lt("month")},N=xe=>{const qe=w.value,_e=xe?"add":"subtract";w.value=L.value==="year"?qe[_e](10,"year"):qe[_e](1,"year"),Lt("year")},L=F("date"),V=E(()=>{const xe=c("el.datepicker.year");if(L.value==="year"){const qe=Math.floor(R.value/10)*10;return xe?`${qe} ${xe} - ${qe+9} ${xe}`:`${qe} - ${qe+9}`}return`${R.value} ${xe}`}),z=xe=>{const qe=Qe(xe.value)?xe.value():xe.value;if(qe){x=!0,H(_t(qe).locale(u.value));return}xe.onClick&&xe.onClick({attrs:i,slots:l,emit:a})},G=E(()=>{const{type:xe}=s;return["week","month","months","year","years","dates"].includes(xe)?xe:"date"}),Q=E(()=>G.value==="dates"||G.value==="months"||G.value==="years"),U=E(()=>G.value==="date"?L.value:G.value),ee=E(()=>!!p.length),se=async(xe,qe)=>{G.value==="month"?(w.value=Wf(w.value,w.value.year(),xe,u.value,v),H(w.value,!1)):G.value==="months"?H(xe,qe??!0):(w.value=Wf(w.value,w.value.year(),xe,u.value,v),L.value="date",["month","year","date","week"].includes(G.value)&&(H(w.value,!0),await ze(),Ot())),Lt("month")},de=async(xe,qe)=>{if(G.value==="year"){const _e=w.value.startOf("year").year(xe);w.value=r1(_e,u.value,v),H(w.value,!1)}else if(G.value==="years")H(xe,qe??!0);else{const _e=w.value.year(xe);w.value=r1(_e,u.value,v),L.value="month",["month","year","date","week"].includes(G.value)&&(H(w.value,!0),await ze(),Ot())}Lt("year")},te=Dn(),pe=async xe=>{te.value||(L.value=xe,await ze(),Ot())},he=E(()=>s.type==="datetime"||s.type==="datetimerange"),le=E(()=>{const xe=he.value||G.value==="dates",qe=G.value==="years",_e=G.value==="months",Ye=L.value==="date",xt=L.value==="year",Jt=L.value==="month";return xe&&Ye||qe&&xt||_e&&Jt}),Z=E(()=>!Q.value&&s.showNow||s.showConfirm),j=E(()=>v?s.parsedValue?Ae(s.parsedValue)?v(s.parsedValue[0].toDate()):v(s.parsedValue.toDate()):!0:!1),ae=()=>{if(Q.value)H(s.parsedValue);else{let xe=Vp(s.parsedValue);if(!xe){const qe=_t(g).locale(u.value),_e=Ze();xe=qe.year(_e.year()).month(_e.month()).date(_e.date())}w.value=xe,H(xe)}},fe=E(()=>v?v(_t().locale(u.value).toDate()):!1),we=()=>{const qe=_t().locale(u.value).toDate();_.value=!0,(!v||!v(qe))&&O(qe)&&(w.value=_t().locale(u.value),H(w.value))},Se=E(()=>s.timeFormat||Hk(s.format)||Hf),ke=E(()=>s.dateFormat||zk(s.format)||pc),Oe=E(()=>$.value?$.value:!s.parsedValue&&!b.value?void 0:(Vp(s.parsedValue)||w.value).format(Se.value)),Be=E(()=>P.value?P.value:!s.parsedValue&&!b.value?void 0:(Vp(s.parsedValue)||w.value).format(ke.value)),Le=F(!1),Ce=()=>{Le.value=!0},Ie=()=>{Le.value=!1},Re=xe=>({hour:xe.hour(),minute:xe.minute(),second:xe.second(),year:xe.year(),month:xe.month(),date:xe.date()}),Ke=(xe,qe,_e)=>{const{hour:Ye,minute:xt,second:Jt}=Re(xe),Sn=Vp(s.parsedValue),En=Sn?Sn.hour(Ye).minute(xt).second(Jt):xe;w.value=En,H(w.value,!0),_e||(Le.value=qe)},tt=xe=>{const qe=_t(xe,Se.value).locale(u.value);if(qe.isValid()&&O(qe)){const{year:_e,month:Ye,date:xt}=Re(w.value);w.value=qe.year(_e).month(Ye).date(xt),$.value=null,Le.value=!1,H(w.value,!0)}},ut=xe=>{const qe=jf(xe,ke.value,u.value,h);if(qe.isValid()){if(v&&v(qe.toDate()))return;const{hour:_e,minute:Ye,second:xt}=Re(w.value);w.value=qe.hour(_e).minute(Ye).second(xt),P.value=null,H(w.value,!0)}},Fe=xe=>_t.isDayjs(xe)&&xe.isValid()&&(v?!v(xe.toDate()):!0),Ue=xe=>jf(xe,s.format,u.value,h),Ze=()=>{const xe=_t(b.value).locale(u.value);if(!b.value){const qe=k.value;return _t().hour(qe.hour()).minute(qe.minute()).second(qe.second()).locale(u.value)}return xe},Ot=()=>{var xe;["week","month","year","date"].includes(G.value)&&((xe=C.value)==null||xe.focus())},Xt=()=>{Ot(),G.value==="week"&&yt(Te.down)},it=xe=>{const qe=un(xe);[Te.up,Te.down,Te.left,Te.right,Te.home,Te.end,Te.pageUp,Te.pageDown].includes(qe)&&(yt(qe),xe.stopPropagation(),xe.preventDefault()),[Te.enter,Te.space,Te.numpadEnter].includes(qe)&&P.value===null&&$.value===null&&(xe.preventDefault(),H(w.value,!1))},yt=xe=>{var qe;const{up:_e,down:Ye,left:xt,right:Jt,home:Sn,end:En,pageUp:Ve,pageDown:nt}=Te,gt={year:{[_e]:-4,[Ye]:4,[xt]:-1,[Jt]:1,offset:(Zt,rt)=>Zt.setFullYear(Zt.getFullYear()+rt)},month:{[_e]:-4,[Ye]:4,[xt]:-1,[Jt]:1,offset:(Zt,rt)=>Zt.setMonth(Zt.getMonth()+rt)},week:{[_e]:-1,[Ye]:1,[xt]:-1,[Jt]:1,offset:(Zt,rt)=>Zt.setDate(Zt.getDate()+rt*7)},date:{[_e]:-7,[Ye]:7,[xt]:-1,[Jt]:1,[Sn]:Zt=>-Zt.getDay(),[En]:Zt=>-Zt.getDay()+6,[Ve]:Zt=>-new Date(Zt.getFullYear(),Zt.getMonth(),0).getDate(),[nt]:Zt=>new Date(Zt.getFullYear(),Zt.getMonth()+1,0).getDate(),offset:(Zt,rt)=>Zt.setDate(Zt.getDate()+rt)}},An=w.value.toDate();for(;Math.abs(w.value.diff(An,"year",!0))<1;){const Zt=gt[U.value];if(!Zt)return;if(Zt.offset(An,Qe(Zt[xe])?Zt[xe](An):(qe=Zt[xe])!=null?qe:0),v&&v(An))break;const rt=_t(An).locale(u.value);w.value=rt,a("pick",rt,!0);break}},Lt=xe=>{a("panel-change",w.value.toDate(),xe,L.value)};return be(()=>G.value,xe=>{if(["month","year"].includes(xe)){L.value=xe;return}else if(xe==="years"){L.value="year";return}else if(xe==="months"){L.value="month";return}L.value="date"},{immediate:!0}),be(()=>b.value,xe=>{xe&&(w.value=Ze())},{immediate:!0}),be(()=>s.parsedValue,xe=>{if(xe){if(Q.value||Ae(xe))return;w.value=xe}else w.value=Ze()},{immediate:!0}),a("set-picker-option",["isValidValue",Fe]),a("set-picker-option",["parseUserInput",Ue]),a("set-picker-option",["handleFocusPicker",Xt]),(xe,qe)=>(S(),M("div",{class:D([d(o).b(),d(r).b(),d(o).is("border",xe.border),d(o).is("disabled",d(te)),{"has-sidebar":xe.$slots.sidebar||ee.value,"has-time":he.value}])},[A("div",{class:D(d(o).e("body-wrapper"))},[ue(xe.$slots,"sidebar",{class:D(d(o).e("sidebar"))}),ee.value?(S(),M("div",{key:0,class:D(d(o).e("sidebar"))},[(S(!0),M(He,null,Et(d(p),(_e,Ye)=>(S(),M("button",{key:Ye,type:"button",disabled:d(te),class:D(d(o).e("shortcut")),onClick:xt=>z(_e)},ge(_e.text),11,gae))),128))],2)):ie("v-if",!0),A("div",{class:D(d(o).e("body"))},[he.value?(S(),M("div",{key:0,class:D(d(r).e("time-header"))},[A("span",{class:D(d(r).e("editor-wrap"))},[W(d(da),{placeholder:d(c)("el.datepicker.selectDate"),"model-value":Be.value,size:"small","validate-event":!1,disabled:d(te),readonly:!xe.editable,onInput:qe[0]||(qe[0]=_e=>P.value=_e),onChange:ut},null,8,["placeholder","model-value","disabled","readonly"])],2),Ct((S(),M("span",{class:D(d(r).e("editor-wrap"))},[W(d(da),{placeholder:d(c)("el.datepicker.selectTime"),"model-value":Oe.value,size:"small","validate-event":!1,disabled:d(te),readonly:!xe.editable,onFocus:Ce,onInput:qe[1]||(qe[1]=_e=>$.value=_e),onChange:tt},null,8,["placeholder","model-value","disabled","readonly"]),W(d(s1),{visible:Le.value,format:Se.value,"parsed-value":w.value,onPick:Ke},null,8,["visible","format","parsed-value"])],2)),[[d(fc),Ie]])],2)):ie("v-if",!0),Ct(A("div",{class:D([d(r).e("header"),(L.value==="year"||L.value==="month")&&d(r).em("header","bordered")])},[A("span",{class:D(d(r).e("prev-btn"))},[A("button",{type:"button","aria-label":d(c)("el.datepicker.prevYear"),class:D(["d-arrow-left",d(o).e("icon-btn")]),disabled:d(te),onClick:qe[2]||(qe[2]=_e=>N(!1))},[ue(xe.$slots,"prev-year",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Zi))]),_:1})])],10,bae),Ct(A("button",{type:"button","aria-label":d(c)("el.datepicker.prevMonth"),class:D([d(o).e("icon-btn"),"arrow-left"]),disabled:d(te),onClick:qe[3]||(qe[3]=_e=>Y(!1))},[ue(xe.$slots,"prev-month",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Bo))]),_:1})])],10,yae),[[jt,L.value==="date"]])],2),A("span",{role:"button",class:D(d(r).e("header-label")),"aria-live":"polite",tabindex:xe.disabled?void 0:0,"aria-disabled":xe.disabled,onKeydown:qe[4]||(qe[4]=zn(_e=>pe("year"),["enter"])),onClick:qe[5]||(qe[5]=_e=>pe("year"))},ge(V.value),43,wae),Ct(A("span",{role:"button","aria-live":"polite",tabindex:xe.disabled?void 0:0,"aria-disabled":xe.disabled,class:D([d(r).e("header-label"),{active:L.value==="month"}]),onKeydown:qe[6]||(qe[6]=zn(_e=>pe("month"),["enter"])),onClick:qe[7]||(qe[7]=_e=>pe("month"))},ge(d(c)(`el.datepicker.month${T.value+1}`)),43,_ae),[[jt,L.value==="date"]]),A("span",{class:D(d(r).e("next-btn"))},[Ct(A("button",{type:"button","aria-label":d(c)("el.datepicker.nextMonth"),class:D([d(o).e("icon-btn"),"arrow-right"]),disabled:d(te),onClick:qe[8]||(qe[8]=_e=>Y(!0))},[ue(xe.$slots,"next-month",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Fs))]),_:1})])],10,Cae),[[jt,L.value==="date"]]),A("button",{type:"button","aria-label":d(c)("el.datepicker.nextYear"),class:D([d(o).e("icon-btn"),"d-arrow-right"]),disabled:d(te),onClick:qe[9]||(qe[9]=_e=>N(!0))},[ue(xe.$slots,"next-year",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Qi))]),_:1})])],10,Sae)],2)],2),[[jt,L.value!=="time"]]),A("div",{class:D(d(o).e("content")),onKeydown:it},[L.value==="date"?(S(),ce(t6,{key:0,ref_key:"currentViewRef",ref:C,"selection-mode":G.value,date:w.value,"parsed-value":xe.parsedValue,"disabled-date":d(v),disabled:d(te),"cell-class-name":d(m),"show-week-number":xe.showWeekNumber,onPick:J},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name","show-week-number"])):ie("v-if",!0),L.value==="year"?(S(),ce(qp,{key:1,ref_key:"currentViewRef",ref:C,"selection-mode":G.value,date:w.value,"disabled-date":d(v),disabled:d(te),"parsed-value":xe.parsedValue,"cell-class-name":d(m),onPick:de},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):ie("v-if",!0),L.value==="month"?(S(),ce(Up,{key:2,ref_key:"currentViewRef",ref:C,"selection-mode":G.value,date:w.value,"parsed-value":xe.parsedValue,"disabled-date":d(v),disabled:d(te),"cell-class-name":d(m),onPick:se},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):ie("v-if",!0)],34)],2)],2),xe.showFooter&&le.value&&Z.value?(S(),M("div",{key:0,class:D(d(o).e("footer"))},[Ct(W(d(xs),{text:"",size:"small",class:D(d(o).e("link-btn")),disabled:fe.value,onClick:we},{default:X(()=>[We(ge(d(c)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[jt,!Q.value&&xe.showNow]]),xe.showConfirm?(S(),ce(d(xs),{key:0,plain:"",size:"small",class:D(d(o).e("link-btn")),disabled:j.value,onClick:ae},{default:X(()=>[We(ge(d(c)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):ie("v-if",!0)],2)):ie("v-if",!0)],2))}});const kae=Me({...rA,...Z3}),Eae=e=>{const{emit:t}=Tt(),n=Hi(),s=Gn();return o=>{const r=Qe(o.value)?o.value():o.value;if(r){t("pick",[_t(r[0]).locale(e.value),_t(r[1]).locale(e.value)]);return}o.onClick&&o.onClick({attrs:n,slots:s,emit:t})}},n6=(e,{defaultValue:t,defaultTime:n,leftDate:s,rightDate:a,step:o,unit:r,sortDates:i})=>{const{emit:l}=Tt(),{pickerNs:c}=je(X3),u=Ee("date-range-picker"),{t:f,lang:h}=Ft(),p=Eae(h),v=F(),m=F(),g=F({endDate:null,selecting:!1}),b=k=>{g.value=k},C=(k=!1)=>{const T=d(v),R=d(m);Kp([T,R])&&l("pick",[T,R],k)},w=k=>{g.value.selecting=k,k||(g.value.endDate=null)},_=k=>{if(Ae(k)&&k.length===2){const[T,R]=k;v.value=T,s.value=T,m.value=R,i(d(v),d(m))}else x()},x=()=>{let[k,T]=a1(d(t),{lang:d(h),step:o,unit:r,unlinkPanels:e.unlinkPanels});const R=P=>P.diff(P.startOf("d"),"ms"),I=d(n);if(I){let P=0,$=0;if(Ae(I)){const[O,B]=I.map(_t);P=R(O),$=R(B)}else{const O=R(_t(I));P=O,$=O}k=k.startOf("d").add(P,"ms"),T=T.startOf("d").add($,"ms")}v.value=void 0,m.value=void 0,s.value=k,a.value=T};return be(t,k=>{k&&x()},{immediate:!0}),be(()=>e.parsedValue,k=>{(!(k!=null&&k.length)||!Hn(k,[v.value,m.value]))&&_(k)},{immediate:!0}),be(()=>e.visible,()=>{e.visible&&_(e.parsedValue)},{immediate:!0}),{minDate:v,maxDate:m,rangeState:g,lang:h,ppNs:c,drpNs:u,handleChangeRange:b,handleRangeConfirm:C,handleShortcutClick:p,onSelect:w,parseValue:_,t:f}},Aae=(e,t,n,s)=>{const a=F("date"),o=F(),r=F("date"),i=F(),l=je(wr),{disabledDate:c}=l.props,{t:u,lang:f}=Ft(),h=E(()=>n.value.year()),p=E(()=>n.value.month()),v=E(()=>s.value.year()),m=E(()=>s.value.month());function g(k,T){const R=u("el.datepicker.year");if(k.value==="year"){const I=Math.floor(T.value/10)*10;return R?`${I} ${R} - ${I+9} ${R}`:`${I} - ${I+9}`}return`${T.value} ${R}`}function b(k){k==null||k.focus()}async function C(k,T){if(e.disabled)return;const R=k==="left"?a:r,I=k==="left"?o:i;R.value=T,await ze(),b(I.value)}async function w(k,T,R){if(e.disabled)return;const I=T==="left",P=I?n:s,$=I?s:n,O=I?a:r,B=I?o:i;if(k==="year"){const H=P.value.year(R);P.value=r1(H,f.value,c)}k==="month"&&(P.value=Wf(P.value,P.value.year(),R,f.value,c)),e.unlinkPanels||($.value=T==="left"?P.value.add(1,"month"):P.value.subtract(1,"month")),O.value=k==="year"?"month":"date",await ze(),b(B.value),_(k)}function _(k){t("panel-change",[n.value.toDate(),s.value.toDate()],k)}function x(k,T,R){const I=R?"add":"subtract";return k==="year"?T[I](10,"year"):T[I](1,"year")}return{leftCurrentView:a,rightCurrentView:r,leftCurrentViewRef:o,rightCurrentViewRef:i,leftYear:h,rightYear:v,leftMonth:p,rightMonth:m,leftYearLabel:E(()=>g(a,h)),rightYearLabel:E(()=>g(r,v)),showLeftPicker:k=>C("left",k),showRightPicker:k=>C("right",k),handleLeftYearPick:k=>w("year","left",k),handleRightYearPick:k=>w("year","right",k),handleLeftMonthPick:k=>w("month","left",k),handleRightMonthPick:k=>w("month","right",k),handlePanelChange:_,adjustDateByView:x}},Tae=["disabled","onClick"],Mae=["aria-label","disabled"],Pae=["aria-label","disabled"],Rae=["disabled","aria-label"],Iae=["disabled","aria-label"],Oae=["tabindex","aria-disabled"],Lae=["tabindex","aria-disabled"],Nae=["disabled","aria-label"],$ae=["disabled","aria-label"],Dae=["aria-label","disabled"],Fae=["disabled","aria-label"],Bae=["tabindex","aria-disabled"],Vae=["tabindex","aria-disabled"],l1="month";var zae=K({__name:"panel-date-range",props:kae,emits:["pick","set-picker-option","calendar-change","panel-change","clear"],setup(e,{emit:t}){const n=e,s=t,a=je(wr),o=je(jp,void 0),{disabledDate:r,cellClassName:i,defaultTime:l,clearable:c}=a.props,u=sn(a.props,"format"),f=sn(a.props,"shortcuts"),h=sn(a.props,"defaultValue"),{lang:p}=Ft(),v=F(_t().locale(p.value)),m=F(_t().locale(p.value).add(1,l1)),{minDate:g,maxDate:b,rangeState:C,ppNs:w,drpNs:_,handleChangeRange:x,handleRangeConfirm:k,handleShortcutClick:T,onSelect:R,parseValue:I,t:P}=n6(n,{defaultValue:h,defaultTime:l,leftDate:v,rightDate:m,unit:l1,sortDates:Zt});be(()=>n.visible,rt=>{!rt&&C.value.selecting&&(I(n.parsedValue),R(!1))});const $=F({min:null,max:null}),O=F({min:null,max:null}),{leftCurrentView:B,rightCurrentView:H,leftCurrentViewRef:J,rightCurrentViewRef:Y,leftYear:N,rightYear:L,leftMonth:V,rightMonth:z,leftYearLabel:G,rightYearLabel:Q,showLeftPicker:U,showRightPicker:ee,handleLeftYearPick:se,handleRightYearPick:de,handleLeftMonthPick:te,handleRightMonthPick:pe,handlePanelChange:he,adjustDateByView:le}=Aae(n,s,v,m),Z=E(()=>!!f.value.length),j=E(()=>$.value.min!==null?$.value.min:g.value?g.value.format(ke.value):""),ae=E(()=>$.value.max!==null?$.value.max:b.value||g.value?(b.value||g.value).format(ke.value):""),fe=E(()=>O.value.min!==null?O.value.min:g.value?g.value.format(Se.value):""),we=E(()=>O.value.max!==null?O.value.max:b.value||g.value?(b.value||g.value).format(Se.value):""),Se=E(()=>n.timeFormat||Hk(u.value||"")||Hf),ke=E(()=>n.dateFormat||zk(u.value||"")||pc),Oe=rt=>Kp(rt)&&(r?!r(rt[0].toDate())&&!r(rt[1].toDate()):!0),Be=()=>{v.value=le(B.value,v.value,!1),n.unlinkPanels||(m.value=v.value.add(1,"month")),he("year")},Le=()=>{v.value=v.value.subtract(1,"month"),n.unlinkPanels||(m.value=v.value.add(1,"month")),he("month")},Ce=()=>{n.unlinkPanels?m.value=le(H.value,m.value,!0):(v.value=le(H.value,v.value,!0),m.value=v.value.add(1,"month")),he("year")},Ie=()=>{n.unlinkPanels?m.value=m.value.add(1,"month"):(v.value=v.value.add(1,"month"),m.value=v.value.add(1,"month")),he("month")},Re=()=>{v.value=le(B.value,v.value,!0),he("year")},Ke=()=>{v.value=v.value.add(1,"month"),he("month")},tt=()=>{m.value=le(H.value,m.value,!1),he("year")},ut=()=>{m.value=m.value.subtract(1,"month"),he("month")},Fe=E(()=>{const rt=(V.value+1)%12,dt=V.value+1>=12?1:0;return n.unlinkPanels&&new Date(N.value+dt,rt)<new Date(L.value,z.value)}),Ue=E(()=>n.unlinkPanels&&L.value*12+z.value-(N.value*12+V.value+1)>=12),Ze=Dn(),Ot=E(()=>!(g.value&&b.value&&!C.value.selecting&&Kp([g.value,b.value])&&!Ze.value)),Xt=E(()=>n.type==="datetime"||n.type==="datetimerange"),it=(rt,dt)=>{if(rt)return l?_t(l[dt]||l).locale(p.value).year(rt.year()).month(rt.month()).date(rt.date()):rt},yt=(rt,dt=!0)=>{const Pt=rt.minDate,Vn=rt.maxDate,aa=it(Pt,0),Lo=it(Vn,1);b.value===Lo&&g.value===aa||(s("calendar-change",[Pt.toDate(),Vn&&Vn.toDate()]),b.value=Lo,g.value=aa,!Xt.value&&dt&&(dt=!aa||!Lo),k(dt))},Lt=F(!1),xe=F(!1),qe=()=>{Lt.value=!1},_e=()=>{xe.value=!1},Ye=(rt,dt)=>{$.value[dt]=rt;const Pt=_t(rt,ke.value).locale(p.value);if(Pt.isValid()){if(r&&r(Pt.toDate()))return;dt==="min"?(v.value=Pt,g.value=(g.value||v.value).year(Pt.year()).month(Pt.month()).date(Pt.date()),!n.unlinkPanels&&(!b.value||b.value.isBefore(g.value))&&(m.value=Pt.add(1,"month"),b.value=g.value.add(1,"month"))):(m.value=Pt,b.value=(b.value||m.value).year(Pt.year()).month(Pt.month()).date(Pt.date()),!n.unlinkPanels&&(!g.value||g.value.isAfter(b.value))&&(v.value=Pt.subtract(1,"month"),g.value=b.value.subtract(1,"month"))),Zt(g.value,b.value),k(!0)}},xt=(rt,dt)=>{$.value[dt]=null},Jt=(rt,dt)=>{O.value[dt]=rt;const Pt=_t(rt,Se.value).locale(p.value);Pt.isValid()&&(dt==="min"?(Lt.value=!0,g.value=(g.value||v.value).hour(Pt.hour()).minute(Pt.minute()).second(Pt.second()),v.value=g.value):(xe.value=!0,b.value=(b.value||m.value).hour(Pt.hour()).minute(Pt.minute()).second(Pt.second()),m.value=b.value))},Sn=(rt,dt)=>{O.value[dt]=null,dt==="min"?(v.value=g.value,Lt.value=!1,(!b.value||b.value.isBefore(g.value))&&(b.value=g.value)):(m.value=b.value,xe.value=!1,b.value&&b.value.isBefore(g.value)&&(g.value=b.value)),k(!0)},En=(rt,dt,Pt)=>{O.value.min||(rt&&(g.value=(g.value||v.value).hour(rt.hour()).minute(rt.minute()).second(rt.second())),Pt||(Lt.value=dt),(!b.value||b.value.isBefore(g.value))&&(b.value=g.value,m.value=rt,ze(()=>{I(n.parsedValue)})),k(!0))},Ve=(rt,dt,Pt)=>{O.value.max||(rt&&(b.value=(b.value||m.value).hour(rt.hour()).minute(rt.minute()).second(rt.second())),Pt||(xe.value=dt),b.value&&b.value.isBefore(g.value)&&(g.value=b.value),k(!0))},nt=()=>{gt(),s("clear")},gt=()=>{let rt=null;a!=null&&a.emptyValues&&(rt=a.emptyValues.valueOnClear.value),v.value=a1(d(h),{lang:d(p),unit:"month",unlinkPanels:n.unlinkPanels})[0],m.value=v.value.add(1,"month"),b.value=void 0,g.value=void 0,k(!0),s("pick",rt)},An=rt=>jf(rt,u.value||"",p.value,o);function Zt(rt,dt){if(n.unlinkPanels&&dt){const Pt=(rt==null?void 0:rt.year())||0,Vn=(rt==null?void 0:rt.month())||0,aa=dt.year(),Lo=dt.month();m.value=Pt===aa&&Vn===Lo?dt.add(1,l1):dt}else m.value=v.value.add(1,l1),dt&&(m.value=m.value.hour(dt.hour()).minute(dt.minute()).second(dt.second()))}return s("set-picker-option",["isValidValue",Oe]),s("set-picker-option",["parseUserInput",An]),s("set-picker-option",["handleClear",gt]),(rt,dt)=>(S(),M("div",{class:D([d(w).b(),d(_).b(),d(w).is("border",rt.border),d(w).is("disabled",d(Ze)),{"has-sidebar":rt.$slots.sidebar||Z.value,"has-time":Xt.value}])},[A("div",{class:D(d(w).e("body-wrapper"))},[ue(rt.$slots,"sidebar",{class:D(d(w).e("sidebar"))}),Z.value?(S(),M("div",{key:0,class:D(d(w).e("sidebar"))},[(S(!0),M(He,null,Et(f.value,(Pt,Vn)=>(S(),M("button",{key:Vn,type:"button",disabled:d(Ze),class:D(d(w).e("shortcut")),onClick:aa=>d(T)(Pt)},ge(Pt.text),11,Tae))),128))],2)):ie("v-if",!0),A("div",{class:D(d(w).e("body"))},[Xt.value?(S(),M("div",{key:0,class:D(d(_).e("time-header"))},[A("span",{class:D(d(_).e("editors-wrap"))},[A("span",{class:D(d(_).e("time-picker-wrap"))},[W(d(da),{size:"small",disabled:d(C).selecting||d(Ze),placeholder:d(P)("el.datepicker.startDate"),class:D(d(_).e("editor")),"model-value":j.value,"validate-event":!1,readonly:!rt.editable,onInput:dt[0]||(dt[0]=Pt=>Ye(Pt,"min")),onChange:dt[1]||(dt[1]=Pt=>xt(Pt,"min"))},null,8,["disabled","placeholder","class","model-value","readonly"])],2),Ct((S(),M("span",{class:D(d(_).e("time-picker-wrap"))},[W(d(da),{size:"small",class:D(d(_).e("editor")),disabled:d(C).selecting||d(Ze),placeholder:d(P)("el.datepicker.startTime"),"model-value":fe.value,"validate-event":!1,readonly:!rt.editable,onFocus:dt[2]||(dt[2]=Pt=>Lt.value=!0),onInput:dt[3]||(dt[3]=Pt=>Jt(Pt,"min")),onChange:dt[4]||(dt[4]=Pt=>Sn(Pt,"min"))},null,8,["class","disabled","placeholder","model-value","readonly"]),W(d(s1),{visible:Lt.value,format:Se.value,"datetime-role":"start","parsed-value":d(g)||v.value,onPick:En},null,8,["visible","format","parsed-value"])],2)),[[d(fc),qe]])],2),A("span",null,[W(d(Je),null,{default:X(()=>[W(d(Fs))]),_:1})]),A("span",{class:D([d(_).e("editors-wrap"),"is-right"])},[A("span",{class:D(d(_).e("time-picker-wrap"))},[W(d(da),{size:"small",class:D(d(_).e("editor")),disabled:d(C).selecting||d(Ze),placeholder:d(P)("el.datepicker.endDate"),"model-value":ae.value,readonly:!d(g)||!rt.editable,"validate-event":!1,onInput:dt[5]||(dt[5]=Pt=>Ye(Pt,"max")),onChange:dt[6]||(dt[6]=Pt=>xt(Pt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),Ct((S(),M("span",{class:D(d(_).e("time-picker-wrap"))},[W(d(da),{size:"small",class:D(d(_).e("editor")),disabled:d(C).selecting||d(Ze),placeholder:d(P)("el.datepicker.endTime"),"model-value":we.value,readonly:!d(g)||!rt.editable,"validate-event":!1,onFocus:dt[7]||(dt[7]=Pt=>d(g)&&(xe.value=!0)),onInput:dt[8]||(dt[8]=Pt=>Jt(Pt,"max")),onChange:dt[9]||(dt[9]=Pt=>Sn(Pt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),W(d(s1),{"datetime-role":"end",visible:xe.value,format:Se.value,"parsed-value":d(b)||m.value,onPick:Ve},null,8,["visible","format","parsed-value"])],2)),[[d(fc),_e]])],2)],2)):ie("v-if",!0),A("div",{class:D([[d(w).e("content"),d(_).e("content")],"is-left"])},[A("div",{class:D(d(_).e("header"))},[A("button",{type:"button",class:D([d(w).e("icon-btn"),"d-arrow-left"]),"aria-label":d(P)("el.datepicker.prevYear"),disabled:d(Ze),onClick:Be},[ue(rt.$slots,"prev-year",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Zi))]),_:1})])],10,Mae),Ct(A("button",{type:"button",class:D([d(w).e("icon-btn"),"arrow-left"]),"aria-label":d(P)("el.datepicker.prevMonth"),disabled:d(Ze),onClick:Le},[ue(rt.$slots,"prev-month",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Bo))]),_:1})])],10,Pae),[[jt,d(B)==="date"]]),rt.unlinkPanels?(S(),M("button",{key:0,type:"button",disabled:!Ue.value||d(Ze),class:D([[d(w).e("icon-btn"),d(w).is("disabled",!Ue.value||d(Ze))],"d-arrow-right"]),"aria-label":d(P)("el.datepicker.nextYear"),onClick:Re},[ue(rt.$slots,"next-year",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Qi))]),_:1})])],10,Rae)):ie("v-if",!0),rt.unlinkPanels&&d(B)==="date"?(S(),M("button",{key:1,type:"button",disabled:!Fe.value||d(Ze),class:D([[d(w).e("icon-btn"),d(w).is("disabled",!Fe.value||d(Ze))],"arrow-right"]),"aria-label":d(P)("el.datepicker.nextMonth"),onClick:Ke},[ue(rt.$slots,"next-month",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Fs))]),_:1})])],10,Iae)):ie("v-if",!0),A("div",null,[A("span",{role:"button",class:D(d(_).e("header-label")),"aria-live":"polite",tabindex:rt.disabled?void 0:0,"aria-disabled":rt.disabled,onKeydown:dt[10]||(dt[10]=zn(Pt=>d(U)("year"),["enter"])),onClick:dt[11]||(dt[11]=Pt=>d(U)("year"))},ge(d(G)),43,Oae),Ct(A("span",{role:"button","aria-live":"polite",tabindex:rt.disabled?void 0:0,"aria-disabled":rt.disabled,class:D([d(_).e("header-label"),{active:d(B)==="month"}]),onKeydown:dt[12]||(dt[12]=zn(Pt=>d(U)("month"),["enter"])),onClick:dt[13]||(dt[13]=Pt=>d(U)("month"))},ge(d(P)(`el.datepicker.month${v.value.month()+1}`)),43,Lae),[[jt,d(B)==="date"]])])],2),d(B)==="date"?(S(),ce(t6,{key:0,ref_key:"leftCurrentViewRef",ref:J,"selection-mode":"range",date:v.value,"min-date":d(g),"max-date":d(b),"range-state":d(C),"disabled-date":d(r),"cell-class-name":d(i),"show-week-number":rt.showWeekNumber,disabled:d(Ze),onChangerange:d(x),onPick:yt,onSelect:d(R)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):ie("v-if",!0),d(B)==="year"?(S(),ce(qp,{key:1,ref_key:"leftCurrentViewRef",ref:J,"selection-mode":"year",date:v.value,"disabled-date":d(r),"parsed-value":rt.parsedValue,disabled:d(Ze),onPick:d(se)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):ie("v-if",!0),d(B)==="month"?(S(),ce(Up,{key:2,ref_key:"leftCurrentViewRef",ref:J,"selection-mode":"month",date:v.value,"parsed-value":rt.parsedValue,"disabled-date":d(r),disabled:d(Ze),onPick:d(te)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):ie("v-if",!0)],2),A("div",{class:D([[d(w).e("content"),d(_).e("content")],"is-right"])},[A("div",{class:D(d(_).e("header"))},[rt.unlinkPanels?(S(),M("button",{key:0,type:"button",disabled:!Ue.value||d(Ze),class:D([[d(w).e("icon-btn"),d(w).is("disabled",!Ue.value||d(Ze))],"d-arrow-left"]),"aria-label":d(P)("el.datepicker.prevYear"),onClick:tt},[ue(rt.$slots,"prev-year",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Zi))]),_:1})])],10,Nae)):ie("v-if",!0),rt.unlinkPanels&&d(H)==="date"?(S(),M("button",{key:1,type:"button",disabled:!Fe.value||d(Ze),class:D([[d(w).e("icon-btn"),d(w).is("disabled",!Fe.value||d(Ze))],"arrow-left"]),"aria-label":d(P)("el.datepicker.prevMonth"),onClick:ut},[ue(rt.$slots,"prev-month",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Bo))]),_:1})])],10,$ae)):ie("v-if",!0),A("button",{type:"button","aria-label":d(P)("el.datepicker.nextYear"),class:D([d(w).e("icon-btn"),"d-arrow-right"]),disabled:d(Ze),onClick:Ce},[ue(rt.$slots,"next-year",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Qi))]),_:1})])],10,Dae),Ct(A("button",{type:"button",class:D([d(w).e("icon-btn"),"arrow-right"]),disabled:d(Ze),"aria-label":d(P)("el.datepicker.nextMonth"),onClick:Ie},[ue(rt.$slots,"next-month",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Fs))]),_:1})])],10,Fae),[[jt,d(H)==="date"]]),A("div",null,[A("span",{role:"button",class:D(d(_).e("header-label")),"aria-live":"polite",tabindex:rt.disabled?void 0:0,"aria-disabled":rt.disabled,onKeydown:dt[14]||(dt[14]=zn(Pt=>d(ee)("year"),["enter"])),onClick:dt[15]||(dt[15]=Pt=>d(ee)("year"))},ge(d(Q)),43,Bae),Ct(A("span",{role:"button","aria-live":"polite",tabindex:rt.disabled?void 0:0,"aria-disabled":rt.disabled,class:D([d(_).e("header-label"),{active:d(H)==="month"}]),onKeydown:dt[16]||(dt[16]=zn(Pt=>d(ee)("month"),["enter"])),onClick:dt[17]||(dt[17]=Pt=>d(ee)("month"))},ge(d(P)(`el.datepicker.month${m.value.month()+1}`)),43,Vae),[[jt,d(H)==="date"]])])],2),d(H)==="date"?(S(),ce(t6,{key:0,ref_key:"rightCurrentViewRef",ref:Y,"selection-mode":"range",date:m.value,"min-date":d(g),"max-date":d(b),"range-state":d(C),"disabled-date":d(r),"cell-class-name":d(i),"show-week-number":rt.showWeekNumber,disabled:d(Ze),onChangerange:d(x),onPick:yt,onSelect:d(R)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):ie("v-if",!0),d(H)==="year"?(S(),ce(qp,{key:1,ref_key:"rightCurrentViewRef",ref:Y,"selection-mode":"year",date:m.value,"disabled-date":d(r),"parsed-value":rt.parsedValue,disabled:d(Ze),onPick:d(de)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):ie("v-if",!0),d(H)==="month"?(S(),ce(Up,{key:2,ref_key:"rightCurrentViewRef",ref:Y,"selection-mode":"month",date:m.value,"parsed-value":rt.parsedValue,"disabled-date":d(r),disabled:d(Ze),onPick:d(pe)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):ie("v-if",!0)],2)],2)],2),rt.showFooter&&Xt.value&&(rt.showConfirm||d(c))?(S(),M("div",{key:0,class:D(d(w).e("footer"))},[d(c)?(S(),ce(d(xs),{key:0,text:"",size:"small",class:D(d(w).e("link-btn")),onClick:nt},{default:X(()=>[We(ge(d(P)("el.datepicker.clear")),1)]),_:1},8,["class"])):ie("v-if",!0),rt.showConfirm?(S(),ce(d(xs),{key:1,plain:"",size:"small",class:D(d(w).e("link-btn")),disabled:Ot.value,onClick:dt[18]||(dt[18]=Pt=>d(k)(!1))},{default:X(()=>[We(ge(d(P)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):ie("v-if",!0)],2)):ie("v-if",!0)],2))}});const Hae=Me({...Z3}),Wae=["pick","set-picker-option","calendar-change"],jae=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:s}=Ft(),a=()=>{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")},l=E(()=>`${t.value.year()} ${s("el.datepicker.year")}`),c=E(()=>`${n.value.year()} ${s("el.datepicker.year")}`),u=E(()=>t.value.year()),f=E(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:a,rightNextYear:o,leftNextYear:r,rightPrevYear:i,leftLabel:l,rightLabel:c,leftYear:u,rightYear:f}},Kae=["disabled","onClick"],Uae=["disabled"],qae=["disabled"],Gae=["disabled"],Yae=["disabled"],c1="year";var Xae=K({name:"DatePickerMonthRange",__name:"panel-month-range",props:Hae,emits:Wae,setup(e,{emit:t}){const n=e,s=t,{lang:a}=Ft(),o=je(wr),r=je(jp,void 0),{shortcuts:i,disabledDate:l,cellClassName:c}=o.props,u=sn(o.props,"format"),f=sn(o.props,"defaultValue"),h=F(_t().locale(a.value)),p=F(_t().locale(a.value).add(1,c1)),{minDate:v,maxDate:m,rangeState:g,ppNs:b,drpNs:C,handleChangeRange:w,handleRangeConfirm:_,handleShortcutClick:x,onSelect:k,parseValue:T}=n6(n,{defaultValue:f,leftDate:h,rightDate:p,unit:c1,sortDates:G}),R=E(()=>!!i.length),{leftPrevYear:I,rightNextYear:P,leftNextYear:$,rightPrevYear:O,leftLabel:B,rightLabel:H,leftYear:J,rightYear:Y}=jae({unlinkPanels:sn(n,"unlinkPanels"),leftDate:h,rightDate:p}),N=E(()=>n.unlinkPanels&&Y.value>J.value+1),L=(U,ee=!0)=>{const se=U.minDate,de=U.maxDate;m.value===de&&v.value===se||(s("calendar-change",[se.toDate(),de&&de.toDate()]),m.value=de,v.value=se,ee&&_())},V=()=>{let U=null;o!=null&&o.emptyValues&&(U=o.emptyValues.valueOnClear.value),h.value=a1(d(f),{lang:d(a),unit:"year",unlinkPanels:n.unlinkPanels})[0],p.value=h.value.add(1,"year"),s("pick",U)},z=U=>jf(U,u.value,a.value,r);function G(U,ee){if(n.unlinkPanels&&ee){const se=(U==null?void 0:U.year())||0,de=ee.year();p.value=se===de?ee.add(1,c1):ee}else p.value=h.value.add(1,c1)}const Q=Dn();return be(()=>n.visible,U=>{!U&&g.value.selecting&&(T(n.parsedValue),k(!1))}),s("set-picker-option",["isValidValue",Kp]),s("set-picker-option",["parseUserInput",z]),s("set-picker-option",["handleClear",V]),(U,ee)=>(S(),M("div",{class:D([d(b).b(),d(C).b(),d(b).is("border",U.border),d(b).is("disabled",d(Q)),{"has-sidebar":!!U.$slots.sidebar||R.value}])},[A("div",{class:D(d(b).e("body-wrapper"))},[ue(U.$slots,"sidebar",{class:D(d(b).e("sidebar"))}),R.value?(S(),M("div",{key:0,class:D(d(b).e("sidebar"))},[(S(!0),M(He,null,Et(d(i),(se,de)=>(S(),M("button",{key:de,type:"button",class:D(d(b).e("shortcut")),disabled:d(Q),onClick:te=>d(x)(se)},ge(se.text),11,Kae))),128))],2)):ie("v-if",!0),A("div",{class:D(d(b).e("body"))},[A("div",{class:D([[d(b).e("content"),d(C).e("content")],"is-left"])},[A("div",{class:D(d(C).e("header"))},[A("button",{type:"button",class:D([d(b).e("icon-btn"),"d-arrow-left"]),disabled:d(Q),onClick:ee[0]||(ee[0]=(...se)=>d(I)&&d(I)(...se))},[ue(U.$slots,"prev-year",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Zi))]),_:1})])],10,Uae),U.unlinkPanels?(S(),M("button",{key:0,type:"button",disabled:!N.value||d(Q),class:D([[d(b).e("icon-btn"),d(b).is("disabled",!N.value||d(Q))],"d-arrow-right"]),onClick:ee[1]||(ee[1]=(...se)=>d($)&&d($)(...se))},[ue(U.$slots,"next-year",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Qi))]),_:1})])],10,qae)):ie("v-if",!0),A("div",null,ge(d(B)),1)],2),W(Up,{"selection-mode":"range",date:h.value,"min-date":d(v),"max-date":d(m),"range-state":d(g),"disabled-date":d(l),disabled:d(Q),"cell-class-name":d(c),onChangerange:d(w),onPick:L,onSelect:d(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),A("div",{class:D([[d(b).e("content"),d(C).e("content")],"is-right"])},[A("div",{class:D(d(C).e("header"))},[U.unlinkPanels?(S(),M("button",{key:0,type:"button",disabled:!N.value||d(Q),class:D([[d(b).e("icon-btn"),d(b).is("disabled",!N.value||d(Q))],"d-arrow-left"]),onClick:ee[2]||(ee[2]=(...se)=>d(O)&&d(O)(...se))},[ue(U.$slots,"prev-year",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Zi))]),_:1})])],10,Gae)):ie("v-if",!0),A("button",{type:"button",class:D([d(b).e("icon-btn"),"d-arrow-right"]),disabled:d(Q),onClick:ee[3]||(ee[3]=(...se)=>d(P)&&d(P)(...se))},[ue(U.$slots,"next-year",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Qi))]),_:1})])],10,Yae),A("div",null,ge(d(H)),1)],2),W(Up,{"selection-mode":"range",date:p.value,"min-date":d(v),"max-date":d(m),"range-state":d(g),"disabled-date":d(l),disabled:d(Q),"cell-class-name":d(c),onChangerange:d(w),onPick:L,onSelect:d(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});const Jae=Me({...Z3}),Zae=["pick","set-picker-option","calendar-change"],Qae=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const s=()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},a=()=>{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=E(()=>{const f=Math.floor(t.value.year()/10)*10;return`${f}-${f+9}`}),l=E(()=>{const f=Math.floor(n.value.year()/10)*10;return`${f}-${f+9}`}),c=E(()=>Math.floor(t.value.year()/10)*10+9),u=E(()=>Math.floor(n.value.year()/10)*10);return{leftPrevYear:s,rightNextYear:a,leftNextYear:o,rightPrevYear:r,leftLabel:i,rightLabel:l,leftYear:c,rightYear:u}},eoe=["disabled","onClick"],toe=["disabled"],noe=["disabled"],soe=["disabled"],aoe=["disabled"],Kf=10,Gp="year";var ooe=K({name:"DatePickerYearRange",__name:"panel-year-range",props:Jae,emits:Zae,setup(e,{emit:t}){const n=e,s=t,{lang:a}=Ft(),o=F(_t().locale(a.value)),r=F(_t().locale(a.value).add(Kf,Gp)),i=je(jp,void 0),l=je(wr),{shortcuts:c,disabledDate:u,cellClassName:f}=l.props,h=sn(l.props,"format"),p=sn(l.props,"defaultValue"),{minDate:v,maxDate:m,rangeState:g,ppNs:b,drpNs:C,handleChangeRange:w,handleRangeConfirm:_,handleShortcutClick:x,onSelect:k,parseValue:T}=n6(n,{defaultValue:p,leftDate:o,rightDate:r,step:Kf,unit:Gp,sortDates:de}),{leftPrevYear:R,rightNextYear:I,leftNextYear:P,rightPrevYear:$,leftLabel:O,rightLabel:B,leftYear:H,rightYear:J}=Qae({unlinkPanels:sn(n,"unlinkPanels"),leftDate:o,rightDate:r}),Y=Dn(),N=E(()=>!!c.length),L=E(()=>[b.b(),C.b(),b.is("border",n.border),b.is("disabled",Y.value),{"has-sidebar":!!Gn().sidebar||N.value}]),V=E(()=>({content:[b.e("content"),C.e("content"),"is-left"],arrowLeftBtn:[b.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[b.e("icon-btn"),b.is("disabled",!G.value||Y.value),"d-arrow-right"]})),z=E(()=>({content:[b.e("content"),C.e("content"),"is-right"],arrowLeftBtn:[b.e("icon-btn"),b.is("disabled",!G.value||Y.value),"d-arrow-left"],arrowRightBtn:[b.e("icon-btn"),"d-arrow-right"]})),G=E(()=>n.unlinkPanels&&J.value>H.value+1),Q=(te,pe=!0)=>{const he=te.minDate,le=te.maxDate;m.value===le&&v.value===he||(s("calendar-change",[he.toDate(),le&&le.toDate()]),m.value=le,v.value=he,pe&&_())},U=te=>jf(te,h.value,a.value,i),ee=te=>Kp(te)&&(u?!u(te[0].toDate())&&!u(te[1].toDate()):!0),se=()=>{let te=null;l!=null&&l.emptyValues&&(te=l.emptyValues.valueOnClear.value);const pe=a1(d(p),{lang:d(a),step:Kf,unit:Gp,unlinkPanels:n.unlinkPanels});o.value=pe[0],r.value=pe[1],s("pick",te)};function de(te,pe){if(n.unlinkPanels&&pe){const he=(te==null?void 0:te.year())||0,le=pe.year();r.value=he+Kf>le?pe.add(Kf,Gp):pe}else r.value=o.value.add(Kf,Gp)}return be(()=>n.visible,te=>{!te&&g.value.selecting&&(T(n.parsedValue),k(!1))}),s("set-picker-option",["isValidValue",ee]),s("set-picker-option",["parseUserInput",U]),s("set-picker-option",["handleClear",se]),(te,pe)=>(S(),M("div",{class:D(L.value)},[A("div",{class:D(d(b).e("body-wrapper"))},[ue(te.$slots,"sidebar",{class:D(d(b).e("sidebar"))}),N.value?(S(),M("div",{key:0,class:D(d(b).e("sidebar"))},[(S(!0),M(He,null,Et(d(c),(he,le)=>(S(),M("button",{key:le,type:"button",class:D(d(b).e("shortcut")),disabled:d(Y),onClick:Z=>d(x)(he)},ge(he.text),11,eoe))),128))],2)):ie("v-if",!0),A("div",{class:D(d(b).e("body"))},[A("div",{class:D(V.value.content)},[A("div",{class:D(d(C).e("header"))},[A("button",{type:"button",class:D(V.value.arrowLeftBtn),disabled:d(Y),onClick:pe[0]||(pe[0]=(...he)=>d(R)&&d(R)(...he))},[ue(te.$slots,"prev-year",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Zi))]),_:1})])],10,toe),te.unlinkPanels?(S(),M("button",{key:0,type:"button",disabled:!G.value||d(Y),class:D(V.value.arrowRightBtn),onClick:pe[1]||(pe[1]=(...he)=>d(P)&&d(P)(...he))},[ue(te.$slots,"next-year",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Qi))]),_:1})])],10,noe)):ie("v-if",!0),A("div",null,ge(d(O)),1)],2),W(qp,{"selection-mode":"range",date:o.value,"min-date":d(v),"max-date":d(m),"range-state":d(g),"disabled-date":d(u),disabled:d(Y),"cell-class-name":d(f),onChangerange:d(w),onPick:Q,onSelect:d(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),A("div",{class:D(z.value.content)},[A("div",{class:D(d(C).e("header"))},[te.unlinkPanels?(S(),M("button",{key:0,type:"button",disabled:!G.value||d(Y),class:D(z.value.arrowLeftBtn),onClick:pe[2]||(pe[2]=(...he)=>d($)&&d($)(...he))},[ue(te.$slots,"prev-year",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Zi))]),_:1})])],10,soe)):ie("v-if",!0),A("button",{type:"button",class:D(z.value.arrowRightBtn),disabled:d(Y),onClick:pe[3]||(pe[3]=(...he)=>d(I)&&d(I)(...he))},[ue(te.$slots,"next-year",{},()=>[W(d(Je),null,{default:X(()=>[W(d(Qi))]),_:1})])],10,aoe),A("div",null,ge(d(B)),1)],2),W(qp,{"selection-mode":"range",date:r.value,"min-date":d(v),"max-date":d(m),"range-state":d(g),"disabled-date":d(u),disabled:d(Y),"cell-class-name":d(f),onChangerange:d(w),onPick:Q,onSelect:d(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});const roe=function(e){switch(e){case"daterange":case"datetimerange":return zae;case"monthrange":return Xae;case"yearrange":return ooe;default:return xae}};function ioe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!vn(e)}_t.extend(Gk),_t.extend(Hse),_t.extend(j3),_t.extend(jse),_t.extend(Use),_t.extend(Gse),_t.extend(Xse),_t.extend(Zse);var loe=K({name:"ElDatePickerPanel",install:null,inheritAttrs:!1,props:Qse,emits:[mt,"calendar-change","panel-change","visible-change","clear"],setup(e,{slots:t,emit:n,attrs:s}){const a=Ee("picker-panel"),o=je(wr,void 0);if(Wt(o)){const f=Gt({..._s(e)});Nt(wr,{props:f})}Nt(X3,{slots:t,pickerNs:a});const{parsedValue:r,onCalendarChange:i,onPanelChange:l,onSetPickerOption:c,onPick:u}=je(UE,()=>qE(e,n),!0);return()=>{const f=roe(e.type);return W(f,At(mp(s,"onPick"),e,{parsedValue:r.value,"onSet-picker-option":c,"onCalendar-change":i,"onPanel-change":l,onClear:()=>n("clear"),onPick:u}),ioe(t)?t:{default:()=>[t]})}}});const iA=wt(loe),coe=Me({...q3,type:{type:re(String),default:"date"}});function uoe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!vn(e)}var doe=K({name:"ElDatePicker",install:null,props:coe,emits:[mt],setup(e,{expose:t,emit:n,slots:s}){const a=E(()=>!e.format);Nt(jp,a),Nt(K3,Gt(sn(e,"popperOptions")));const o=F();t({focus:()=>{var l;(l=o.value)==null||l.focus()},blur:()=>{var l;(l=o.value)==null||l.blur()},handleOpen:()=>{var l;(l=o.value)==null||l.handleOpen()},handleClose:()=>{var l;(l=o.value)==null||l.handleClose()}});const i=l=>{n(mt,l)};return()=>{var l;const c=(l=e.format)!=null?l:kse[e.type]||pc;return W(YE,At(e,{format:c,type:e.type,ref:o,"onUpdate:modelValue":i}),{default:u=>W(iA,At({disabled:e.disabled,editable:e.editable,border:!1},u),uoe(s)?s:{default:()=>[s]}),"range-separator":s["range-separator"]})}}});const foe=wt(doe),hoe=Me({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:hs,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number]}}),poe=Me({row:{type:re(Array),default:()=>[]}}),s6=Symbol("elDescriptions");var Yp=K({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:je(s6,{})}},render(){var e,t,n,s;const a=vJ(this.cell),o=(((e=this.cell)==null?void 0:e.dirs)||[]).map(_=>{const{dir:x,arg:k,modifiers:T,value:R}=_;return[x,R,k,T]}),{border:r,direction:i}=this.descriptions,l=i==="vertical",c=()=>{var _,x,k;return((k=(x=(_=this.cell)==null?void 0:_.children)==null?void 0:x.label)==null?void 0:k.call(x))||a.label},u=()=>{var _,x,k;return(k=(x=(_=this.cell)==null?void 0:_.children)==null?void 0:x.default)==null?void 0:k.call(x)},f=a.span,h=a.rowspan,p=a.align?`is-${a.align}`:"",v=a.labelAlign?`is-${a.labelAlign}`:p,m=a.className,g=a.labelClassName,b=this.type==="label"&&(n=(t=a.labelWidth)!=null?t:this.descriptions.labelWidth)!=null?n:a.width,C={width:Nn(b),minWidth:Nn(a.minWidth)},w=Ee("descriptions");switch(this.type){case"label":return Ct(lt(this.tag,{style:C,class:[w.e("cell"),w.e("label"),w.is("bordered-label",r),w.is("vertical-label",l),v,g],colSpan:l?f:1,rowspan:l?1:h},c()),o);case"content":return Ct(lt(this.tag,{style:C,class:[w.e("cell"),w.e("content"),w.is("bordered-content",r),w.is("vertical-content",l),p,m],colSpan:l?f:f*2-1,rowspan:l?h*2-1:h},u()),o);default:{const _=c(),x={},k=Nn((s=a.labelWidth)!=null?s:this.descriptions.labelWidth);return k&&(x.width=k,x.display="inline-block"),Ct(lt("td",{style:C,class:[w.e("cell"),p],colSpan:f,rowspan:h},[Qn(_)?void 0:lt("span",{style:x,class:[w.e("label"),g]},_),lt("span",{class:[w.e("content"),m]},u())]),o)}}}});const voe={key:1};var moe=K({name:"ElDescriptionsRow",__name:"descriptions-row",props:poe,setup(e){const t=je(s6,{});return(n,s)=>d(t).direction==="vertical"?(S(),M(He,{key:0},[A("tr",null,[(S(!0),M(He,null,Et(e.row,(a,o)=>(S(),ce(d(Yp),{key:`tr1-${o}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),A("tr",null,[(S(!0),M(He,null,Et(e.row,(a,o)=>(S(),ce(d(Yp),{key:`tr2-${o}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(S(),M("tr",voe,[(S(!0),M(He,null,Et(e.row,(a,o)=>(S(),M(He,{key:`tr3-${o}`},[d(t).border?(S(),M(He,{key:0},[W(d(Yp),{cell:a,tag:"td",type:"label"},null,8,["cell"]),W(d(Yp),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(S(),ce(d(Yp),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});const lA="ElDescriptionsItem";var goe=K({name:"ElDescriptions",__name:"description",props:hoe,setup(e){const t=e,n=Ee("descriptions"),s=ls(),a=Gn();Nt(s6,t);const o=E(()=>[n.b(),n.m(s.value)]),r=(l,c,u,f=!1)=>(l.props||(l.props={}),c>u&&(l.props.span=u),f&&(l.props.span=c),l),i=()=>{if(!a.default)return[];const l=uo(a.default()).filter(v=>{var m;return((m=v==null?void 0:v.type)==null?void 0:m.name)===lA}),c=[];let u=[],f=t.column,h=0;const p=[];return l.forEach((v,m)=>{var g,b,C;const w=((g=v.props)==null?void 0:g.span)||1,_=((b=v.props)==null?void 0:b.rowspan)||1,x=c.length;if(p[x]||(p[x]=0),_>1)for(let k=1;k<_;k++)p[C=x+k]||(p[C]=0),p[x+k]++,h++;if(p[x]>0&&(f-=p[x],p[x]=0),m<l.length-1&&(h+=w>f?f:w),m===l.length-1){const k=t.column-h%t.column;u.push(r(v,k,f,!0)),c.push(u);return}w<f?(f-=w,u.push(v)):(u.push(r(v,w,f)),c.push(u),f=t.column,u=[])}),c};return(l,c)=>(S(),M("div",{class:D(o.value)},[e.title||e.extra||l.$slots.title||l.$slots.extra?(S(),M("div",{key:0,class:D(d(n).e("header"))},[A("div",{class:D(d(n).e("title"))},[ue(l.$slots,"title",{},()=>[We(ge(e.title),1)])],2),A("div",{class:D(d(n).e("extra"))},[ue(l.$slots,"extra",{},()=>[We(ge(e.extra),1)])],2)],2)):ie("v-if",!0),A("div",{class:D(d(n).e("body"))},[A("table",{class:D([d(n).e("table"),d(n).is("bordered",e.border)])},[A("tbody",null,[(S(!0),M(He,null,Et(i(),(u,f)=>(S(),ce(moe,{key:f,row:u},null,8,["row"]))),128))])],2)],2)],2))}});const cA=["left","center","right"],boe=Me({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]},align:{type:String,values:cA,default:"left"},labelAlign:{type:String,values:cA},className:{type:String,default:""},labelClassName:{type:String,default:""}}),uA=K({name:lA,props:boe}),yoe=wt(goe,{DescriptionsItem:uA}),woe=In(uA),dA=Me({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:rn},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"}}),_oe={close:()=>!0},fA=Me({...dA,appendToBody:Boolean,appendTo:{type:xp.to.type,default:"body"},beforeClose:{type:re(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:re([String,Object]),default:void 0}}),hA={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[mt]:e=>on(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},a6=e=>{if(!e)return{onClick:en,onMousedown:en,onMouseup:en};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}}},Coe=Me({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:re([String,Array,Object])},zIndex:{type:re([String,Number])}}),Soe={click:e=>e instanceof MouseEvent},xoe="overlay";var koe=K({name:"ElOverlay",props:Coe,emits:Soe,setup(e,{slots:t,emit:n}){const s=Ee(xoe),a=l=>{n("click",l)},{onClick:o,onMousedown:r,onMouseup:i}=a6(e.customMaskEvent?void 0:a);return()=>e.mask?W("div",{class:[s.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:r,onMouseup:i},[ue(t,"default")],zo.STYLE|zo.CLASS|zo.PROPS,["onClick","onMouseup","onMousedown"]):lt("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[ue(t,"default")])}});const o6=koe,pA=Symbol("dialogInjectionKey"),vA="dialog-fade",r6=(...e)=>t=>{e.forEach(n=>{n.value=t})},mA=(e,t,n,s)=>{const a={offsetX:0,offsetY:0},o=F(!1),r=(h,p)=>{if(e.value){const{offsetX:v,offsetY:m}=a,g=e.value.getBoundingClientRect(),b=g.left,C=g.top,w=g.width,_=g.height,x=document.documentElement.clientWidth,k=document.documentElement.clientHeight,T=-b+v,R=-C+m,I=x-b-w+v,P=k-C-(_<k?_:0)+m;s!=null&&s.value||(h=Math.min(Math.max(h,T),I),p=Math.min(Math.max(p,R),P)),a.offsetX=h,a.offsetY=p,e.value.style.transform=`translate(${Nn(h)}, ${Nn(p)})`}},i=h=>{const p=h.clientX,v=h.clientY,{offsetX:m,offsetY:g}=a,b=w=>{o.value||(o.value=!0);const _=m+w.clientX-p,x=g+w.clientY-v;r(_,x)},C=()=>{o.value=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",C)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",C)},l=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",i),window.addEventListener("resize",f))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",i),window.removeEventListener("resize",f))},u=()=>{a.offsetX=0,a.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:h,offsetY:p}=a;r(h,p)};return Mt(()=>{ja(()=>{n.value?l():c()})}),tn(()=>{c()}),{isDragging:o,resetPosition:u,updatePosition:f}},Eoe=["aria-level"],Aoe=["aria-label"],Toe=["id"];var Moe=K({name:"ElDialogContent",__name:"dialog-content",props:dA,emits:_oe,setup(e,{expose:t}){const{t:n}=Ft(),{Close:s}=g9,a=e,{dialogRef:o,headerRef:r,bodyId:i,ns:l,style:c}=je(pA),{focusTrapRef:u}=je(fk),f=r6(u,o),h=E(()=>!!a.draggable),p=E(()=>!!a.overflow),{resetPosition:v,updatePosition:m,isDragging:g}=mA(o,r,h,p),b=E(()=>[l.b(),l.is("fullscreen",a.fullscreen),l.is("draggable",h.value),l.is("dragging",g.value),l.is("align-center",!!a.alignCenter),{[l.m("center")]:a.center}]);return t({resetPosition:v,updatePosition:m}),(C,w)=>(S(),M("div",{ref:d(f),class:D(b.value),style:et(d(c)),tabindex:"-1"},[A("header",{ref_key:"headerRef",ref:r,class:D([d(l).e("header"),e.headerClass,{"show-close":e.showClose}])},[ue(C.$slots,"header",{},()=>[A("span",{role:"heading","aria-level":e.ariaLevel,class:D(d(l).e("title"))},ge(e.title),11,Eoe)]),e.showClose?(S(),M("button",{key:0,"aria-label":d(n)("el.dialog.close"),class:D(d(l).e("headerbtn")),type:"button",onClick:w[0]||(w[0]=_=>C.$emit("close"))},[W(d(Je),{class:D(d(l).e("close"))},{default:X(()=>[(S(),ce(kt(e.closeIcon||d(s))))]),_:1},8,["class"])],10,Aoe)):ie("v-if",!0)],2),A("div",{id:d(i),class:D([d(l).e("body"),e.bodyClass])},[ue(C.$slots,"default")],10,Toe),C.$slots.footer?(S(),M("footer",{key:0,class:D([d(l).e("footer"),e.footerClass])},[ue(C.$slots,"footer")],2)):ie("v-if",!0)],6))}});const u1=(e,t={})=>{yn(e)||ns("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Ee("popup"),s=E(()=>n.bm("parent","hidden"));let a=0,o=!1,r="0",i=!1;const l=()=>{i||(i=!0,setTimeout(()=>{typeof document>"u"||o&&document&&(document.body.style.width=r,ca(document.body,s.value))},200))};be(e,c=>{if(!c){l();return}i=!1,o=!ni(document.body,s.value),o&&(r=document.body.style.width,Fo(document.body,s.value)),a=Hx(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,f=Ji(document.body,"overflowY");a>0&&(u||f==="scroll")&&o&&(document.body.style.width=`calc(100% - ${a}px)`)}),K_(()=>l())},gA=(e,t)=>{var n;const a=Tt().emit,{nextZIndex:o}=_p();let r="";const i=Vs(),l=Vs(),c=F(!1),u=F(!1),f=F(!1),h=F((n=e.zIndex)!=null?n:o()),p=F(!1);let v,m;const g=Tf(),b=E(()=>{var Q,U;return(U=(Q=g.value)==null?void 0:Q.namespace)!=null?U:gp}),C=E(()=>{var Q;return(Q=g.value)==null?void 0:Q.dialog}),w=E(()=>{const Q={},U=`--${b.value}-dialog`;if(!e.fullscreen){e.top&&(Q[`${U}-margin-top`]=e.top);const ee=Nn(e.width);ee&&(Q[`${U}-width`]=ee)}return Q}),_=E(()=>{var Q,U,ee;return((ee=(U=e.draggable)!=null?U:(Q=C.value)==null?void 0:Q.draggable)!=null?ee:!1)&&!e.fullscreen}),x=E(()=>{var Q,U,ee;return(ee=(U=e.alignCenter)!=null?U:(Q=C.value)==null?void 0:Q.alignCenter)!=null?ee:!1}),k=E(()=>{var Q,U,ee;return(ee=(U=e.overflow)!=null?U:(Q=C.value)==null?void 0:Q.overflow)!=null?ee:!1}),T=E(()=>x.value?{display:"flex"}:{}),R=E(()=>{var Q,U,ee;const se=(ee=(U=e.transition)!=null?U:(Q=C.value)==null?void 0:Q.transition)!=null?ee:vA,de={name:se,onAfterEnter:I,onBeforeLeave:$,onAfterLeave:P};if(bt(se)){const te={...se},pe=(he,le)=>Z=>{Ae(he)?he.forEach(j=>{Qe(j)&&j(Z)}):Qe(he)&&he(Z),le()};return te.onAfterEnter=pe(te.onAfterEnter,I),te.onBeforeLeave=pe(te.onBeforeLeave,$),te.onAfterLeave=pe(te.onAfterLeave,P),te.name||(te.name=vA),te}return de});function I(){a("opened")}function P(){a("closed"),a(mt,!1),e.destroyOnClose&&(f.value=!1),p.value=!1}function $(){p.value=!0,a("close")}function O(){m==null||m(),v==null||v(),e.openDelay&&e.openDelay>0?{stop:v}=Ef(()=>Y(),e.openDelay):Y()}function B(){v==null||v(),m==null||m(),e.closeDelay&&e.closeDelay>0?{stop:m}=Ef(()=>N(),e.closeDelay):N()}function H(){function Q(U){U||(u.value=!0,c.value=!1)}e.beforeClose?e.beforeClose(Q):B()}function J(){e.closeOnClickModal&&H()}function Y(){Yt&&(c.value=!0)}function N(){c.value=!1}function L(){a("openAutoFocus")}function V(){a("closeAutoFocus")}function z(Q){var U;((U=Q.detail)==null?void 0:U.focusReason)==="pointer"&&Q.preventDefault()}e.lockScroll&&u1(c);function G(){e.closeOnPressEscape&&H()}return be(()=>e.zIndex,()=>{var Q;h.value=(Q=e.zIndex)!=null?Q:o()}),be(()=>e.modelValue,Q=>{var U;Q?(u.value=!1,p.value=!1,O(),f.value=!0,h.value=(U=e.zIndex)!=null?U:o(),ze(()=>{a("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):c.value&&B()}),be(()=>e.fullscreen,Q=>{t.value&&(Q?(r=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=r)}),Mt(()=>{e.modelValue&&(c.value=!0,f.value=!0,O())}),{afterEnter:I,afterLeave:P,beforeLeave:$,handleClose:H,onModalClick:J,close:B,doClose:N,onOpenAutoFocus:L,onCloseAutoFocus:V,onCloseRequested:G,onFocusoutPrevented:z,titleId:i,bodyId:l,closed:u,style:w,overlayDialogStyle:T,rendered:f,visible:c,zIndex:h,transitionConfig:R,_draggable:_,_alignCenter:x,_overflow:k,closing:p}},Poe=["aria-label","aria-labelledby","aria-describedby"];var Roe=K({name:"ElDialog",inheritAttrs:!1,__name:"dialog",props:fA,emits:hA,setup(e,{expose:t}){const n=e,s=Gn();li({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"},E(()=>!!s.title));const a=Ee("dialog"),o=F(),r=F(),i=F(),{visible:l,titleId:c,bodyId:u,style:f,overlayDialogStyle:h,rendered:p,transitionConfig:v,zIndex:m,_draggable:g,_alignCenter:b,_overflow:C,handleClose:w,onModalClick:_,onOpenAutoFocus:x,onCloseAutoFocus:k,onCloseRequested:T,onFocusoutPrevented:R,closing:I}=gA(n,o);Nt(pA,{dialogRef:o,headerRef:r,bodyId:u,ns:a,rendered:p,style:f});const P=a6(_),$=E(()=>n.modalPenetrable&&!n.modal&&!n.fullscreen);return t({visible:l,dialogContentRef:i,resetPosition:()=>{var B;(B=i.value)==null||B.resetPosition()},handleClose:w}),(B,H)=>(S(),ce(d(Mf),{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},{default:X(()=>[W(Cs,At(d(v),{persisted:""}),{default:X(()=>{var J;return[Ct(W(d(o6),{"custom-mask-event":"",mask:e.modal,"overlay-class":[(J=e.modalClass)!=null?J:"",`${d(a).namespace.value}-modal-dialog`,d(a).is("penetrable",$.value)],"z-index":d(m)},{default:X(()=>[A("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:d(c),"aria-describedby":d(u),class:D([`${d(a).namespace.value}-overlay-dialog`,d(a).is("closing",d(I))]),style:et(d(h)),onClick:H[0]||(H[0]=(...Y)=>d(P).onClick&&d(P).onClick(...Y)),onMousedown:H[1]||(H[1]=(...Y)=>d(P).onMousedown&&d(P).onMousedown(...Y)),onMouseup:H[2]||(H[2]=(...Y)=>d(P).onMouseup&&d(P).onMouseup(...Y))},[W(d(Ff),{loop:"",trapped:d(l),"focus-start-el":"container",onFocusAfterTrapped:d(x),onFocusAfterReleased:d(k),onFocusoutPrevented:d(R),onReleaseRequested:d(T)},{default:X(()=>[d(p)?(S(),ce(Moe,At({key:0,ref_key:"dialogContentRef",ref:i},B.$attrs,{center:e.center,"align-center":d(b),"close-icon":e.closeIcon,draggable:d(g),overflow:d(C),fullscreen:e.fullscreen,"header-class":e.headerClass,"body-class":e.bodyClass,"footer-class":e.footerClass,"show-close":e.showClose,title:e.title,"aria-level":e.headerAriaLevel,onClose:d(w)}),Ta({header:X(()=>[B.$slots.title?ue(B.$slots,"title",{key:1}):ue(B.$slots,"header",{key:0,close:d(w),titleId:d(c),titleClass:d(a).e("title")})]),default:X(()=>[ue(B.$slots,"default")]),_:2},[B.$slots.footer?{name:"footer",fn:X(()=>[ue(B.$slots,"footer")]),key:"0"}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):ie("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,Poe)]),_:3},8,["mask","overlay-class","z-index"]),[[jt,d(l)]])]}),_:3},16)]),_:3},8,["to","disabled"]))}});const Ioe=wt(Roe),Ooe=Me({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:re(String),default:"solid"}});var Loe=K({name:"ElDivider",__name:"divider",props:Ooe,setup(e){const t=e,n=Ee("divider"),s=E(()=>n.cssVar({"border-style":t.borderStyle}));return(a,o)=>(S(),M("div",{class:D([d(n).b(),d(n).m(e.direction)]),style:et(s.value),role:"separator"},[a.$slots.default&&e.direction!=="vertical"?(S(),M("div",{key:0,class:D([d(n).e("text"),d(n).is(e.contentPosition)])},[ue(a.$slots,"default")],2)):ie("v-if",!0)],6))}});const bA=wt(Loe),Noe=Me({...fA,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"}}),$oe={...hA,"resize-start":(e,t)=>e instanceof MouseEvent&&typeof t=="number",resize:(e,t)=>e instanceof MouseEvent&&typeof t=="number","resize-end":(e,t)=>e instanceof MouseEvent&&typeof t=="number"};function Doe(e,t,n){const{width:s,height:a}=Dy(),o=E(()=>["ltr","rtl"].includes(e.direction)),r=E(()=>["ltr","ttb"].includes(e.direction)?1:-1),i=E(()=>o.value?s.value:a.value),l=E(()=>Sx(c.value+r.value*u.value,4,i.value)),c=F(0),u=F(0),f=F(!1),h=F(!1);let p=[],v=[];const m=()=>{var _;const x=(_=t.value)==null?void 0:_.closest('[aria-modal="true"]');return x?o.value?x.offsetWidth:x.offsetHeight:100};be(()=>[e.size,e.resizable],()=>{h.value=!1,c.value=0,u.value=0,C()});const g=_=>{e.resizable&&(h.value||(c.value=m(),h.value=!0),p=[_.pageX,_.pageY],f.value=!0,n("resize-start",_,c.value),v.push(an(window,"mouseup",C),an(window,"mousemove",b)))},b=_=>{const{pageX:x,pageY:k}=_,T=x-p[0],R=k-p[1];u.value=o.value?T:R,n("resize",_,l.value)},C=_=>{f.value&&(p=[],c.value=l.value,u.value=0,f.value=!1,v.forEach(x=>x==null?void 0:x()),v=[],_&&n("resize-end",_,c.value))},w=an(t,"mousedown",g);return tn(()=>{w(),C()}),{size:E(()=>h.value?`${l.value}px`:Nn(e.size)),isResizing:f,isHorizontal:o}}const Foe=["aria-label","aria-labelledby","aria-describedby"],Boe=["id","aria-level"],Voe=["aria-label"],zoe=["id"];var Hoe=K({name:"ElDrawer",inheritAttrs:!1,__name:"drawer",props:Noe,emits:$oe,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Gn();li({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"},E(()=>!!o.title));const r=F(),i=F(),l=F(),c=Ee("drawer"),{t:u}=Ft(),{afterEnter:f,afterLeave:h,beforeLeave:p,visible:v,rendered:m,titleId:g,bodyId:b,zIndex:C,onModalClick:w,onOpenAutoFocus:_,onCloseAutoFocus:x,onFocusoutPrevented:k,onCloseRequested:T,handleClose:R}=gA(s,r),{isHorizontal:I,size:P,isResizing:$}=Doe(s,l,a),O=E(()=>s.modalPenetrable&&!s.modal);return t({handleClose:R,afterEnter:f,afterLeave:h}),(B,H)=>(S(),ce(d(Mf),{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},{default:X(()=>[W(Cs,{name:d(c).b("fade"),onAfterEnter:d(f),onAfterLeave:d(h),onBeforeLeave:d(p),persisted:""},{default:X(()=>{var J;return[Ct(W(d(o6),{mask:e.modal,"overlay-class":[d(c).is("drawer"),(J=e.modalClass)!=null?J:"",`${d(c).namespace.value}-modal-drawer`,d(c).is("penetrable",O.value)],"z-index":d(C),onClick:d(w)},{default:X(()=>[W(d(Ff),{loop:"",trapped:d(v),"focus-trap-el":r.value,"focus-start-el":i.value,onFocusAfterTrapped:d(_),onFocusAfterReleased:d(x),onFocusoutPrevented:d(k),onReleaseRequested:d(T)},{default:X(()=>[A("div",At({ref_key:"drawerRef",ref:r,"aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:d(g),"aria-describedby":d(b)},B.$attrs,{class:[d(c).b(),e.direction,d(v)&&"open",d(c).is("dragging",d($))],style:{[d(I)?"width":"height"]:d(P)},role:"dialog",onClick:H[1]||(H[1]=ht(()=>{},["stop"]))}),[A("span",{ref_key:"focusStartRef",ref:i,class:D(d(c).e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(S(),M("header",{key:0,class:D([d(c).e("header"),e.headerClass])},[B.$slots.title?ue(B.$slots,"title",{key:1},()=>[ie(" DEPRECATED SLOT ")]):ue(B.$slots,"header",{key:0,close:d(R),titleId:d(g),titleClass:d(c).e("title")},()=>[A("span",{id:d(g),role:"heading","aria-level":e.headerAriaLevel,class:D(d(c).e("title"))},ge(e.title),11,Boe)]),e.showClose?(S(),M("button",{key:2,"aria-label":d(u)("el.drawer.close"),class:D(d(c).e("close-btn")),type:"button",onClick:H[0]||(H[0]=(...Y)=>d(R)&&d(R)(...Y))},[W(d(Je),{class:D(d(c).e("close"))},{default:X(()=>[W(d(qa))]),_:1},8,["class"])],10,Voe)):ie("v-if",!0)],2)):ie("v-if",!0),d(m)?(S(),M("div",{key:1,id:d(b),class:D([d(c).e("body"),e.bodyClass])},[ue(B.$slots,"default")],10,zoe)):ie("v-if",!0),B.$slots.footer?(S(),M("div",{key:2,class:D([d(c).e("footer"),e.footerClass])},[ue(B.$slots,"footer")],2)):ie("v-if",!0),e.resizable?(S(),M("div",{key:3,ref_key:"draggerRef",ref:l,style:et({zIndex:d(C)}),class:D(d(c).e("dragger"))},null,6)):ie("v-if",!0)],16,Foe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[jt,d(v)]])]}),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});const Woe=wt(Hoe);var joe=K({inheritAttrs:!1});function Koe(e,t,n,s,a,o){return ue(e.$slots,"default")}var Uoe=ps(joe,[["render",Koe]]),qoe=K({name:"ElCollectionItem",inheritAttrs:!1});function Goe(e,t,n,s,a,o){return ue(e.$slots,"default")}var Yoe=ps(qoe,[["render",Goe]]);const yA="data-el-collection-item",Xoe=e=>{const t=`El${e}Collection`,n=`${t}Item`,s=Symbol(t),a=Symbol(n),o=Object.assign({},Uoe,{name:t,setup(){const i=F(),l=new Map;Nt(s,{itemMap:l,getItems:()=>{const u=d(i);if(!u)return[];const f=Array.from(u.querySelectorAll(`[${yA}]`));return[...l.values()].sort((p,v)=>f.indexOf(p.ref)-f.indexOf(v.ref))},collectionRef:i})}}),r=Object.assign({},Yoe,{name:n,setup(i,{attrs:l}){const c=F(),u=je(s,void 0);Nt(a,{collectionItemRef:c}),Mt(()=>{const f=d(c);f&&u.itemMap.set(f,{ref:f,...l})}),tn(()=>{const f=d(c);u.itemMap.delete(f)})}});return{COLLECTION_INJECTION_KEY:s,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:o,ElCollectionItem:r}},Joe=Me({style:{type:re([String,Array,Object])},currentTabId:{type:re(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:re(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:Zoe,ElCollectionItem:Qoe,COLLECTION_INJECTION_KEY:wA,COLLECTION_ITEM_INJECTION_KEY:ere}=Xoe("RovingFocusGroup"),i6=Symbol("elRovingFocusGroup"),_A=Symbol("elRovingFocusGroupItem"),tre={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},nre=(e,t)=>e,sre=(e,t,n)=>{const s=un(e),a=nre(s);return tre[a]},are=(e,t)=>e.map((n,s)=>e[(s+t)%e.length]),CA=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},SA="currentTabIdChange",xA="rovingFocusGroup.entryFocus",ore={bubbles:!1,cancelable:!0};var rre=K({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:Joe,emits:[SA,"entryFocus"],setup(e,{emit:t}){var n;const s=F((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),a=F(!1),o=F(!1),r=F(),{getItems:i}=je(wA,void 0),l=E(()=>[{outline:"none"},e.style]),c=g=>{t(SA,g)},u=()=>{a.value=!0},f=Ss(g=>{var b;(b=e.onMousedown)==null||b.call(e,g)},()=>{o.value=!0}),h=Ss(g=>{var b;(b=e.onFocus)==null||b.call(e,g)},g=>{const b=!d(o),{target:C,currentTarget:w}=g;if(C===w&&b&&!d(a)){const _=new Event(xA,ore);if(w==null||w.dispatchEvent(_),!_.defaultPrevented){const x=i().filter(P=>P.focusable),k=x.find(P=>P.active),T=x.find(P=>P.id===d(s)),I=[k,T,...x].filter(Boolean).map(P=>P.ref);CA(I)}}o.value=!1}),p=Ss(g=>{var b;(b=e.onBlur)==null||b.call(e,g)},()=>{a.value=!1}),v=(...g)=>{t("entryFocus",...g)},m=g=>{const b=sre(g);if(b){g.preventDefault();let w=i().filter(_=>_.focusable).map(_=>_.ref);switch(b){case"last":{w.reverse();break}case"prev":case"next":{b==="prev"&&w.reverse();const _=w.indexOf(g.currentTarget);w=e.loop?are(w,_+1):w.slice(_+1);break}}ze(()=>{CA(w)})}};Nt(i6,{currentTabbedId:iu(s),loop:sn(e,"loop"),tabIndex:E(()=>d(a)?-1:0),rovingFocusGroupRef:r,rovingFocusGroupRootStyle:l,orientation:sn(e,"orientation"),dir:sn(e,"dir"),onItemFocus:c,onItemShiftTab:u,onBlur:p,onFocus:h,onMousedown:f,onKeydown:m}),be(()=>e.currentTabId,g=>{s.value=g??null}),an(r,xA,v)}});function ire(e,t,n,s,a,o){return ue(e.$slots,"default")}var lre=ps(rre,[["render",ire]]),cre=K({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:Zoe,ElRovingFocusGroupImpl:lre}});function ure(e,t,n,s,a,o){const r=Ge("el-roving-focus-group-impl"),i=Ge("el-focus-group-collection");return S(),ce(i,null,{default:X(()=>[W(r,$i(Wi(e.$attrs)),{default:X(()=>[ue(e.$slots,"default")]),_:3},16)]),_:3})}var dre=ps(cre,[["render",ure]]);const d1=Me({trigger:{...ii.trigger,type:re([String,Array])},triggerKeys:{type:re(Array),default:()=>[Te.enter,Te.numpadEnter,Te.space,Te.down]},virtualTriggering:ii.virtualTriggering,virtualRef:ii.virtualRef,effect:{...ln.effect,default:"light"},type:{type:re(String)},placement:{type:re(String),default:"bottom"},popperOptions:{type:re(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:re([Number,String]),default:0},maxHeight:{type:re([Number,String]),default:""},popperClass:ln.popperClass,popperStyle:ln.popperStyle,disabled:Boolean,role:{type:String,values:nk,default:"menu"},buttonProps:{type:re(Object)},teleported:ln.teleported,appendTo:ln.appendTo,persistent:{type:Boolean,default:!0}}),kA=Me({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:rn}}),fre=Me({onKeydown:{type:re(Function)}}),f1=Symbol("elDropdown"),EA="elDropdown",{ButtonGroup:hre}=xs;var pre=K({name:"ElDropdown",components:{ElButton:xs,ElButtonGroup:hre,ElScrollbar:gr,ElTooltip:Ps,ElRovingFocusGroup:dre,ElOnlyChild:rk,ElIcon:Je,ArrowDown:mr},props:d1,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=Tt(),s=Ee("dropdown"),{t:a}=Ft(),o=F(),r=F(),i=F(),l=F(),c=F(null),u=F(null),f=F(!1),h=E(()=>({maxHeight:Nn(e.maxHeight)})),p=E(()=>[s.m(_.value)]),v=E(()=>Ts(e.trigger)),m=Vs().value,g=E(()=>e.id||m);function b(){var B;(B=i.value)==null||B.onClose(void 0,0)}function C(){var B;(B=i.value)==null||B.onClose()}function w(){var B;(B=i.value)==null||B.onOpen()}const _=ls();function x(...B){t("command",...B)}function k(){}function T(){const B=d(l);v.value.includes("hover")&&(B==null||B.focus({preventScroll:!0})),u.value=null}function R(B){u.value=B}function I(){t("visible-change",!0)}function P(B){var H;f.value=(B==null?void 0:B.type)==="keydown",(H=l.value)==null||H.focus()}function $(){t("visible-change",!1)}return Nt(f1,{contentRef:l,role:E(()=>e.role),triggerId:g,isUsingKeyboard:f,onItemEnter:k,onItemLeave:T,handleClose:C}),Nt(EA,{instance:n,dropdownSize:_,handleClick:b,commandHandler:x,trigger:sn(e,"trigger"),hideOnClick:sn(e,"hideOnClick")}),{t:a,ns:s,scrollbar:c,wrapStyle:h,dropdownTriggerKls:p,dropdownSize:_,triggerId:g,currentTabId:u,handleCurrentTabIdChange:R,handlerMainButtonClick:B=>{t("click",B)},handleClose:C,handleOpen:w,handleBeforeShowTooltip:I,handleShowTooltip:P,handleBeforeHideTooltip:$,popperRef:i,contentRef:l,triggeringElementRef:o,referenceElementRef:r}}});function vre(e,t,n,s,a,o){var r;const i=Ge("el-roving-focus-group"),l=Ge("el-scrollbar"),c=Ge("el-only-child"),u=Ge("el-tooltip"),f=Ge("el-button"),h=Ge("arrow-down"),p=Ge("el-icon"),v=Ge("el-button-group");return S(),M("div",{class:D([e.ns.b(),e.ns.is("disabled",e.disabled)])},[W(u,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"popper-style":e.popperStyle,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-arrow":e.showArrow,"show-after":e.trigger==="hover"?e.showTimeout:0,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"virtual-ref":(r=e.virtualRef)!=null?r:e.triggeringElementRef,"virtual-triggering":e.virtualTriggering||e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,"append-to":e.appendTo,pure:"","focus-on-target":"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Ta({content:X(()=>[W(l,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:X(()=>[W(i,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange},{default:X(()=>[ue(e.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:X(()=>[W(c,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:X(()=>[ue(e.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","placement","popper-class","popper-style","trigger","trigger-keys","trigger-target-el","show-arrow","show-after","hide-after","virtual-ref","virtual-triggering","disabled","transition","teleported","append-to","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(S(),ce(v,{key:0},{default:X(()=>[W(f,At({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:X(()=>[ue(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),W(f,At({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:X(()=>[W(p,{class:D(e.ns.e("icon"))},{default:X(()=>[W(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):ie("v-if",!0)],2)}var mre=ps(pre,[["render",vre]]),gre=K({components:{ElRovingFocusCollectionItem:Qoe},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,onItemFocus:s,onItemShiftTab:a,onKeydown:o}=je(i6,void 0),r=Vs(),i=F(),l=Ss(h=>{t("mousedown",h)},h=>{e.focusable?s(d(r)):h.preventDefault()}),c=Ss(h=>{t("focus",h)},()=>{s(d(r))}),u=Ss(h=>{t("keydown",h)},h=>{const{shiftKey:p,target:v,currentTarget:m}=h;if(un(h)===Te.tab&&p){a();return}v===m&&o(h)}),f=E(()=>n.value===d(r));return Nt(_A,{rovingFocusGroupItemRef:i,tabIndex:E(()=>d(f)?0:-1),handleMousedown:l,handleFocus:c,handleKeydown:u}),{id:r,handleKeydown:u,handleFocus:c,handleMousedown:l}}});function bre(e,t,n,s,a,o){const r=Ge("el-roving-focus-collection-item");return S(),ce(r,{id:e.id,focusable:e.focusable,active:e.active},{default:X(()=>[ue(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var yre=ps(gre,[["render",bre]]),wre=K({name:"DropdownItemImpl",components:{ElIcon:Je},props:kA,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Ee("dropdown"),{role:s}=je(f1,void 0),{collectionItemRef:a}=je(ere,void 0),{rovingFocusGroupItemRef:o,tabIndex:r,handleFocus:i,handleKeydown:l,handleMousedown:c}=je(_A,void 0),u=r6(a,o),f=E(()=>s.value==="menu"?"menuitem":s.value==="navigation"?"link":"button"),h=Ss(p=>{const v=un(p);if([Te.enter,Te.numpadEnter,Te.space].includes(v))return p.preventDefault(),p.stopImmediatePropagation(),t("clickimpl",p),!0},l);return{ns:n,itemRef:u,dataset:{[yA]:""},role:f,tabIndex:r,handleFocus:i,handleKeydown:h,handleMousedown:c}}});const _re=["aria-disabled","tabindex","role"];function Cre(e,t,n,s,a,o){const r=Ge("el-icon");return S(),M(He,null,[e.divided?(S(),M("li",{key:0,role:"separator",class:D(e.ns.bem("menu","item","divided"))},null,2)):ie("v-if",!0),A("li",At({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:t[0]||(t[0]=i=>e.$emit("clickimpl",i)),onFocus:t[1]||(t[1]=(...i)=>e.handleFocus&&e.handleFocus(...i)),onKeydown:t[2]||(t[2]=ht((...i)=>e.handleKeydown&&e.handleKeydown(...i),["self"])),onMousedown:t[3]||(t[3]=(...i)=>e.handleMousedown&&e.handleMousedown(...i)),onPointermove:t[4]||(t[4]=i=>e.$emit("pointermove",i)),onPointerleave:t[5]||(t[5]=i=>e.$emit("pointerleave",i))}),[e.icon||e.$slots.icon?(S(),ce(r,{key:0},{default:X(()=>[ue(e.$slots,"icon",{},()=>[(S(),ce(kt(e.icon)))])]),_:3})):ie("v-if",!0),ue(e.$slots,"default")],16,_re)],64)}var Sre=ps(wre,[["render",Cre]]);const AA=()=>{const e=je(EA,{}),t=E(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}};var xre=K({name:"ElDropdownItem",components:{ElRovingFocusItem:yre,ElDropdownItemImpl:Sre},inheritAttrs:!1,props:kA,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:s}=AA(),a=Tt(),{onItemEnter:o,onItemLeave:r}=je(f1,void 0),i=Ss(f=>(t("pointermove",f),f.defaultPrevented),bk(f=>{if(e.disabled){r(f);return}const h=f.currentTarget;h===document.activeElement||h.contains(document.activeElement)||(o(f),f.defaultPrevented||h==null||h.focus({preventScroll:!0}))})),l=Ss(f=>(t("pointerleave",f),f.defaultPrevented),bk(r)),c=Ss(f=>{if(!e.disabled)return t("click",f),f.type!=="keydown"&&f.defaultPrevented},f=>{var h,p,v;if(e.disabled){f.stopImmediatePropagation();return}(h=s==null?void 0:s.hideOnClick)!=null&&h.value&&((p=s.handleClick)==null||p.call(s)),(v=s.commandHandler)==null||v.call(s,e.command,a,f)}),u=E(()=>({...e,...n}));return{handleClick:c,handlePointerMove:i,handlePointerLeave:l,propsAndAttrs:u}}});function kre(e,t,n,s,a,o){const r=Ge("el-dropdown-item-impl"),i=Ge("el-roving-focus-item");return S(),ce(i,{focusable:!e.disabled},{default:X(()=>[W(r,At(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),Ta({default:X(()=>[ue(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:X(()=>[ue(e.$slots,"icon")]),key:"0"}:void 0]),1040,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}var TA=ps(xre,[["render",kre]]),Ere=K({name:"ElDropdownMenu",props:fre,setup(e){const t=Ee("dropdown"),{_elDropdownSize:n}=AA(),s=n.value,{contentRef:a,role:o,triggerId:r,isUsingKeyboard:i,handleClose:l}=je(f1,void 0),{rovingFocusGroupRef:c,rovingFocusGroupRootStyle:u,onBlur:f,onFocus:h,onKeydown:p,onMousedown:v}=je(i6,void 0),{collectionRef:m}=je(wA,void 0),g=E(()=>[t.b("menu"),t.bm("menu",s==null?void 0:s.value)]),b=r6(a,c,m),C=Ss(_=>{var x;(x=e.onKeydown)==null||x.call(e,_)},_=>{const{currentTarget:x,target:k}=_,T=un(_);if(x.contains(k),Te.tab===T)return l();p(_)});function w(_){i.value&&h(_)}return{size:s,rovingFocusGroupRootStyle:u,dropdownKls:g,role:o,triggerId:r,dropdownListWrapperRef:b,handleKeydown:C,onBlur:f,handleFocus:w,onMousedown:v}}});const Are=["role","aria-labelledby"];function Tre(e,t,n,s,a,o){return S(),M("ul",{ref:e.dropdownListWrapperRef,class:D(e.dropdownKls),style:et(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onFocusin:t[0]||(t[0]=(...r)=>e.handleFocus&&e.handleFocus(...r)),onFocusout:t[1]||(t[1]=(...r)=>e.onBlur&&e.onBlur(...r)),onKeydown:t[2]||(t[2]=ht((...r)=>e.handleKeydown&&e.handleKeydown(...r),["self"])),onMousedown:t[3]||(t[3]=ht((...r)=>e.onMousedown&&e.onMousedown(...r),["self"]))},[ue(e.$slots,"default")],46,Are)}var MA=ps(Ere,[["render",Tre]]);const Mre=wt(mre,{DropdownItem:TA,DropdownMenu:MA}),Pre=In(TA),Rre=In(MA),Ire=Me({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),Ore={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Lre=["id"],Nre=["stop-color"],$re=["stop-color"],Dre=["id"],Fre=["stop-color"],Bre=["stop-color"],Vre=["id"],zre={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Hre={transform:"translate(-1268.000000, -535.000000)"},Wre={transform:"translate(1268.000000, 535.000000)"},jre=["fill"],Kre=["fill"],Ure={transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},qre=["fill"],Gre=["fill"],Yre=["fill"],Xre=["fill"],Jre=["fill"],Zre={transform:"translate(53.000000, 45.000000)"},Qre=["fill","xlink:href"],eie=["fill","mask"],tie=["fill"];var nie=K({name:"ImgEmpty",__name:"img-empty",setup(e){const t=Ee("empty"),n=Vs();return(s,a)=>(S(),M("svg",Ore,[A("defs",null,[A("linearGradient",{id:`linearGradient-1-${d(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[A("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Nre),A("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,$re)],8,Lre),A("linearGradient",{id:`linearGradient-2-${d(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[A("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Fre),A("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,Bre)],8,Dre),A("rect",{id:`path-3-${d(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,Vre)]),A("g",zre,[A("g",Hre,[A("g",Wre,[A("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(${d(t).cssVarBlockName("fill-color-3")})`},null,8,jre),A("polygon",{fill:`var(${d(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,Kre),A("g",Ure,[A("polygon",{fill:`var(${d(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,qre),A("polygon",{fill:`var(${d(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,Gre),A("rect",{fill:`url(#linearGradient-1-${d(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,Yre),A("polygon",{fill:`var(${d(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,Xre)]),A("rect",{fill:`url(#linearGradient-2-${d(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,Jre),A("g",Zre,[A("use",{fill:`var(${d(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${d(n)}`},null,8,Qre),A("polygon",{fill:`var(${d(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${d(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,eie)]),A("polygon",{fill:`var(${d(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,tie)])])])]))}});const sie=["src"],aie={key:1};var oie=K({name:"ElEmpty",__name:"empty",props:Ire,setup(e){const t=e,{t:n}=Ft(),s=Ee("empty"),a=E(()=>t.description||n("el.table.emptyText")),o=E(()=>({width:Nn(t.imageSize)}));return(r,i)=>(S(),M("div",{class:D(d(s).b())},[A("div",{class:D(d(s).e("image")),style:et(o.value)},[e.image?(S(),M("img",{key:0,src:e.image,ondragstart:"return false"},null,8,sie)):ue(r.$slots,"image",{key:1},()=>[W(nie)])],6),A("div",{class:D(d(s).e("description"))},[r.$slots.description?ue(r.$slots,"description",{key:0}):(S(),M("p",aie,ge(a.value),1))],2),r.$slots.default?(S(),M("div",{key:0,class:D(d(s).e("bottom"))},[ue(r.$slots,"default")],2)):ie("v-if",!0)],2))}});const PA=wt(oie),rie=Me({size:{type:String,values:vr},disabled:Boolean}),iie=Me({...rie,model:Object,rules:{type:re(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:re([Object,Boolean]),default:!0}}),lie={validate:(e,t,n)=>(Ae(e)||Xe(e))&&on(t)&&Xe(n)};function cie(){const e=F([]),t=E(()=>{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 s(o,r){if(o&&r){const i=n(r);e.value.splice(i,1,o)}else o&&e.value.push(o)}function a(o){const r=n(o);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:s,deregisterLabelWidth:a}}const h1=(e,t)=>{const n=Ts(t).map(s=>Ae(s)?s.join("."):s);return n.length>0?e.filter(s=>s.propString&&n.includes(s.propString)):e};var uie=K({name:"ElForm",__name:"form",props:iie,emits:lie,setup(e,{expose:t,emit:n}){const s=e,a=n,o=F(),r=Gt([]),i=ls(),l=Ee("form"),c=E(()=>{const{labelPosition:k,inline:T}=s;return[l.b(),l.m(i.value||"default"),{[l.m(`label-${k}`)]:k,[l.m("inline")]:T}]}),u=k=>h1(r,[k])[0],f=k=>{r.push(k)},h=k=>{k.prop&&r.splice(r.indexOf(k),1)},p=k=>{s.model&&k&&r.forEach(T=>{if(T.prop&&hV(k,T.prop)){const R=Af(k,T.prop).value;T.setInitialValue(R)}})},v=(k=[])=>{s.model&&h1(r,k).forEach(T=>T.resetField())},m=(k=[])=>{h1(r,k).forEach(T=>T.clearValidate())},g=E(()=>!!s.model),b=k=>{if(r.length===0)return[];const T=h1(r,k);return T.length?T:[]},C=async k=>_(void 0,k),w=async(k=[])=>{if(!g.value)return!1;const T=b(k);if(T.length===0)return!0;let R={};for(const I of T)try{await I.validate(""),I.validateState==="error"&&!I.error&&I.resetField()}catch(P){R={...R,...P}}return Object.keys(R).length===0?!0:Promise.reject(R)},_=async(k=[],T)=>{let R=!1;const I=!Qe(T);try{return R=await w(k),R===!0&&await(T==null?void 0:T(R)),R}catch(P){if(P instanceof Error)throw P;const $=P;if(s.scrollToError&&o.value){const O=o.value.querySelector(`.${l.b()}-item.is-error`);O==null||O.scrollIntoView(s.scrollIntoViewOptions)}return!R&&await(T==null?void 0:T(!1,$)),I&&Promise.reject($)}},x=k=>{var T;const R=u(k);R&&((T=R.$el)==null||T.scrollIntoView(s.scrollIntoViewOptions))};return be(()=>s.rules,()=>{s.validateOnRuleChange&&C().catch(k=>void 0)},{deep:!0,flush:"post"}),Nt(Eu,Gt({..._s(s),emit:a,resetFields:v,clearValidate:m,validateField:_,getField:u,addField:f,removeField:h,setInitialValues:p,...cie()})),t({validate:C,validateField:_,resetFields:v,clearValidate:m,scrollToField:x,getField:u,fields:r,setInitialValues:p}),(k,T)=>(S(),M("form",{ref_key:"formRef",ref:o,class:D(c.value)},[ue(k.$slots,"default")],2))}});const die=["","error","validating","success"],fie=Me({label:String,labelWidth:{type:[String,Number]},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:re([String,Array])},required:{type:Boolean,default:void 0},rules:{type:re([Object,Array])},error:String,validateStatus:{type:String,values:die},for:String,inlineMessage:{type:Boolean,default:void 0},showMessage:{type:Boolean,default:!0},size:{type:String,values:vr}});function Tu(){return Tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Tu.apply(this,arguments)}function hie(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xp(e,t)}function l6(e){return l6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},l6(e)}function Xp(e,t){return Xp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,a){return s.__proto__=a,s},Xp(e,t)}function pie(){if(typeof Reflect>"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 p1(e,t,n){return pie()?p1=Reflect.construct.bind():p1=function(a,o,r){var i=[null];i.push.apply(i,o);var l=Function.bind.apply(a,i),c=new l;return r&&Xp(c,r.prototype),c},p1.apply(null,arguments)}function vie(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function c6(e){var t=typeof Map=="function"?new Map:void 0;return c6=function(s){if(s===null||!vie(s))return s;if(typeof s!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(s))return t.get(s);t.set(s,a)}function a(){return p1(s,arguments,l6(this).constructor)}return a.prototype=Object.create(s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Xp(a,s)},c6(e)}var mie=/%[sdj%]/g,gie=function(){};function u6(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var s=n.field;t[s]=t[s]||[],t[s].push(n)}),t}function vo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];var a=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var r=e.replace(mie,function(i){if(i==="%%")return"%";if(a>=o)return i;switch(i){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return i}});return r}return e}function bie(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Rs(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||bie(t)&&typeof e=="string"&&!e)}function yie(e,t,n){var s=[],a=0,o=e.length;function r(i){s.push.apply(s,i||[]),a++,a===o&&n(s)}e.forEach(function(i){t(i,r)})}function RA(e,t,n){var s=0,a=e.length;function o(r){if(r&&r.length){n(r);return}var i=s;s=s+1,i<a?t(e[i],o):n([])}o([])}function wie(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var IA=function(e){hie(t,e);function t(n,s){var a;return a=e.call(this,"Async Validation Error")||this,a.errors=n,a.fields=s,a}return t}(c6(Error));function _ie(e,t,n,s,a){if(t.first){var o=new Promise(function(h,p){var v=function(b){return s(b),b.length?p(new IA(b,u6(b))):h(a)},m=wie(e);RA(m,n,v)});return o.catch(function(h){return h}),o}var r=t.firstFields===!0?Object.keys(e):t.firstFields||[],i=Object.keys(e),l=i.length,c=0,u=[],f=new Promise(function(h,p){var v=function(g){if(u.push.apply(u,g),c++,c===l)return s(u),u.length?p(new IA(u,u6(u))):h(a)};i.length||(s(u),h(a)),i.forEach(function(m){var g=e[m];r.indexOf(m)!==-1?RA(g,n,v):yie(g,n,v)})});return f.catch(function(h){return h}),f}function Cie(e){return!!(e&&e.message!==void 0)}function Sie(e,t){for(var n=e,s=0;s<t.length;s++){if(n==null)return n;n=n[t[s]]}return n}function OA(e,t){return function(n){var s;return e.fullFields?s=Sie(t,e.fullFields):s=t[n.field||e.fullField],Cie(n)?(n.field=n.field||e.fullField,n.fieldValue=s,n):{message:typeof n=="function"?n():n,fieldValue:s,field:n.field||e.fullField}}}function LA(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var s=t[n];typeof s=="object"&&typeof e[n]=="object"?e[n]=Tu({},e[n],s):e[n]=s}}return e}var NA=function(t,n,s,a,o,r){t.required&&(!s.hasOwnProperty(t.field)||Rs(n,r||t.type))&&a.push(vo(o.messages.required,t.fullField))},xie=function(t,n,s,a,o){(/^\s+$/.test(n)||n==="")&&a.push(vo(o.messages.whitespace,t.fullField))},v1,kie=function(){if(v1)return v1;var e="[a-fA-F\\d:]",t=function(_){return _&&_.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",s="[a-fA-F\\d]{1,4}",a=(`
|
||
(?:
|
||
(?:`+s+":){7}(?:"+s+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
||
(?:`+s+":){6}(?:"+n+"|:"+s+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
||
(?:`+s+":){5}(?::"+n+"|(?::"+s+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
||
(?:`+s+":){4}(?:(?::"+s+"){0,1}:"+n+"|(?::"+s+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
||
(?:`+s+":){3}(?:(?::"+s+"){0,2}:"+n+"|(?::"+s+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
||
(?:`+s+":){2}(?:(?::"+s+"){0,3}:"+n+"|(?::"+s+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
||
(?:`+s+":){1}(?:(?::"+s+"){0,4}:"+n+"|(?::"+s+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
||
(?::(?:(?::`+s+"){0,5}:"+n+"|(?::"+s+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
||
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
||
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),r=new RegExp("^"+n+"$"),i=new RegExp("^"+a+"$"),l=function(_){return _&&_.exact?o:new RegExp("(?:"+t(_)+n+t(_)+")|(?:"+t(_)+a+t(_)+")","g")};l.v4=function(w){return w&&w.exact?r:new RegExp(""+t(w)+n+t(w),"g")},l.v6=function(w){return w&&w.exact?i:new RegExp(""+t(w)+a+t(w),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,h=l.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',C="(?:"+c+"|www\\.)"+u+"(?:localhost|"+f+"|"+h+"|"+p+v+m+")"+g+b;return v1=new RegExp("(?:^"+C+"$)","i"),v1},$A={email:/^(([^<>()\[\]\\.,;:\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},Jp={integer:function(t){return Jp.number(t)&&parseInt(t,10)===t},float:function(t){return Jp.number(t)&&!Jp.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"&&!Jp.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match($A.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(kie())},hex:function(t){return typeof t=="string"&&!!t.match($A.hex)}},Eie=function(t,n,s,a,o){if(t.required&&n===void 0){NA(t,n,s,a,o);return}var r=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=t.type;r.indexOf(i)>-1?Jp[i](n)||a.push(vo(o.messages.types[i],t.fullField,t.type)):i&&typeof n!==t.type&&a.push(vo(o.messages.types[i],t.fullField,t.type))},Aie=function(t,n,s,a,o){var r=typeof t.len=="number",i=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,f=null,h=typeof n=="number",p=typeof n=="string",v=Array.isArray(n);if(h?f="number":p?f="string":v&&(f="array"),!f)return!1;v&&(u=n.length),p&&(u=n.replace(c,"_").length),r?u!==t.len&&a.push(vo(o.messages[f].len,t.fullField,t.len)):i&&!l&&u<t.min?a.push(vo(o.messages[f].min,t.fullField,t.min)):l&&!i&&u>t.max?a.push(vo(o.messages[f].max,t.fullField,t.max)):i&&l&&(u<t.min||u>t.max)&&a.push(vo(o.messages[f].range,t.fullField,t.min,t.max))},Uf="enum",Tie=function(t,n,s,a,o){t[Uf]=Array.isArray(t[Uf])?t[Uf]:[],t[Uf].indexOf(n)===-1&&a.push(vo(o.messages[Uf],t.fullField,t[Uf].join(", ")))},Mie=function(t,n,s,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(vo(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var r=new RegExp(t.pattern);r.test(n)||a.push(vo(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},wn={required:NA,whitespace:xie,type:Eie,range:Aie,enum:Tie,pattern:Mie},Pie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Rs(n,"string")&&!t.required)return s();wn.required(t,n,a,r,o,"string"),Rs(n,"string")||(wn.type(t,n,a,r,o),wn.range(t,n,a,r,o),wn.pattern(t,n,a,r,o),t.whitespace===!0&&wn.whitespace(t,n,a,r,o))}s(r)},Rie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Rs(n)&&!t.required)return s();wn.required(t,n,a,r,o),n!==void 0&&wn.type(t,n,a,r,o)}s(r)},Iie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(n===""&&(n=void 0),Rs(n)&&!t.required)return s();wn.required(t,n,a,r,o),n!==void 0&&(wn.type(t,n,a,r,o),wn.range(t,n,a,r,o))}s(r)},Oie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Rs(n)&&!t.required)return s();wn.required(t,n,a,r,o),n!==void 0&&wn.type(t,n,a,r,o)}s(r)},Lie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Rs(n)&&!t.required)return s();wn.required(t,n,a,r,o),Rs(n)||wn.type(t,n,a,r,o)}s(r)},Nie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Rs(n)&&!t.required)return s();wn.required(t,n,a,r,o),n!==void 0&&(wn.type(t,n,a,r,o),wn.range(t,n,a,r,o))}s(r)},$ie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Rs(n)&&!t.required)return s();wn.required(t,n,a,r,o),n!==void 0&&(wn.type(t,n,a,r,o),wn.range(t,n,a,r,o))}s(r)},Die=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(n==null&&!t.required)return s();wn.required(t,n,a,r,o,"array"),n!=null&&(wn.type(t,n,a,r,o),wn.range(t,n,a,r,o))}s(r)},Fie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Rs(n)&&!t.required)return s();wn.required(t,n,a,r,o),n!==void 0&&wn.type(t,n,a,r,o)}s(r)},Bie="enum",Vie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Rs(n)&&!t.required)return s();wn.required(t,n,a,r,o),n!==void 0&&wn[Bie](t,n,a,r,o)}s(r)},zie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Rs(n,"string")&&!t.required)return s();wn.required(t,n,a,r,o),Rs(n,"string")||wn.pattern(t,n,a,r,o)}s(r)},Hie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Rs(n,"date")&&!t.required)return s();if(wn.required(t,n,a,r,o),!Rs(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),wn.type(t,l,a,r,o),l&&wn.range(t,l.getTime(),a,r,o)}}s(r)},Wie=function(t,n,s,a,o){var r=[],i=Array.isArray(n)?"array":typeof n;wn.required(t,n,a,r,o,i),s(r)},d6=function(t,n,s,a,o){var r=t.type,i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Rs(n,r)&&!t.required)return s();wn.required(t,n,a,i,o,r),Rs(n,r)||wn.type(t,n,a,i,o)}s(i)},jie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Rs(n)&&!t.required)return s();wn.required(t,n,a,r,o)}s(r)},Zp={string:Pie,method:Rie,number:Iie,boolean:Oie,regexp:Lie,integer:Nie,float:$ie,array:Die,object:Fie,enum:Vie,pattern:zie,date:Hie,url:d6,hex:d6,email:d6,required:Wie,any:jie};function f6(){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 h6=f6(),Qp=function(){function e(n){this.rules=null,this._messages=h6,this.define(n)}var t=e.prototype;return t.define=function(s){var a=this;if(!s)throw new Error("Cannot configure a schema with no rules");if(typeof s!="object"||Array.isArray(s))throw new Error("Rules must be an object");this.rules={},Object.keys(s).forEach(function(o){var r=s[o];a.rules[o]=Array.isArray(r)?r:[r]})},t.messages=function(s){return s&&(this._messages=LA(f6(),s)),this._messages},t.validate=function(s,a,o){var r=this;a===void 0&&(a={}),o===void 0&&(o=function(){});var i=s,l=a,c=o;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function u(m){var g=[],b={};function C(_){if(Array.isArray(_)){var x;g=(x=g).concat.apply(x,_)}else g.push(_)}for(var w=0;w<m.length;w++)C(m[w]);g.length?(b=u6(g),c(g,b)):c(null,i)}if(l.messages){var f=this.messages();f===h6&&(f=f6()),LA(f,l.messages),l.messages=f}else l.messages=this.messages();var h={},p=l.keys||Object.keys(this.rules);p.forEach(function(m){var g=r.rules[m],b=i[m];g.forEach(function(C){var w=C;typeof w.transform=="function"&&(i===s&&(i=Tu({},i)),b=i[m]=w.transform(b)),typeof w=="function"?w={validator:w}:w=Tu({},w),w.validator=r.getValidationMethod(w),w.validator&&(w.field=m,w.fullField=w.fullField||m,w.type=r.getType(w),h[m]=h[m]||[],h[m].push({rule:w,value:b,source:i,field:m}))})});var v={};return _ie(h,l,function(m,g){var b=m.rule,C=(b.type==="object"||b.type==="array")&&(typeof b.fields=="object"||typeof b.defaultField=="object");C=C&&(b.required||!b.required&&m.value),b.field=m.field;function w(k,T){return Tu({},T,{fullField:b.fullField+"."+k,fullFields:b.fullFields?[].concat(b.fullFields,[k]):[k]})}function _(k){k===void 0&&(k=[]);var T=Array.isArray(k)?k:[k];!l.suppressWarning&&T.length&&e.warning("async-validator:",T),T.length&&b.message!==void 0&&(T=[].concat(b.message));var R=T.map(OA(b,i));if(l.first&&R.length)return v[b.field]=1,g(R);if(!C)g(R);else{if(b.required&&!m.value)return b.message!==void 0?R=[].concat(b.message).map(OA(b,i)):l.error&&(R=[l.error(b,vo(l.messages.required,b.field))]),g(R);var I={};b.defaultField&&Object.keys(m.value).map(function(O){I[O]=b.defaultField}),I=Tu({},I,m.rule.fields);var P={};Object.keys(I).forEach(function(O){var B=I[O],H=Array.isArray(B)?B:[B];P[O]=H.map(w.bind(null,O))});var $=new e(P);$.messages(l.messages),m.rule.options&&(m.rule.options.messages=l.messages,m.rule.options.error=l.error),$.validate(m.value,m.rule.options||l,function(O){var B=[];R&&R.length&&B.push.apply(B,R),O&&O.length&&B.push.apply(B,O),g(B.length?B:null)})}}var x;if(b.asyncValidator)x=b.asyncValidator(b,m.value,_,m.source,l);else if(b.validator){try{x=b.validator(b,m.value,_,m.source,l)}catch(k){console.error==null||console.error(k),l.suppressValidatorError||setTimeout(function(){throw k},0),_(k.message)}x===!0?_():x===!1?_(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):x instanceof Array?_(x):x instanceof Error&&_(x.message)}x&&x.then&&x.then(function(){return _()},function(k){return _(k)})},function(m){u(m)},i)},t.getType=function(s){if(s.type===void 0&&s.pattern instanceof RegExp&&(s.type="pattern"),typeof s.validator!="function"&&s.type&&!Zp.hasOwnProperty(s.type))throw new Error(vo("Unknown rule type %s",s.type));return s.type||"string"},t.getValidationMethod=function(s){if(typeof s.validator=="function")return s.validator;var a=Object.keys(s),o=a.indexOf("message");return o!==-1&&a.splice(o,1),a.length===1&&a[0]==="required"?Zp.required:Zp[this.getType(s)]||void 0},e}();Qp.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Zp[t]=n},Qp.warning=gie,Qp.messages=h6,Qp.validators=Zp;const DA="ElLabelWrap";var Kie=K({name:DA,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=je(Eu,void 0),s=je(ri);s||ns(DA,"usage: <el-form-item><label-wrap /></el-form-item>");const a=Ee("form"),o=F(),r=F(0),i=()=>{var u;if((u=o.value)!=null&&u.firstElementChild){const f=window.getComputedStyle(o.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},l=(u="update")=>{ze(()=>{t.default&&e.isAutoWidth&&(u==="update"?r.value=i():u==="remove"&&(n==null||n.deregisterLabelWidth(r.value)))})},c=()=>l("update");return Mt(()=>{c()}),tn(()=>{l("remove")}),lr(()=>c()),be(r,(u,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(u,f))}),Tn(E(()=>{var u,f;return(f=(u=o.value)==null?void 0:u.firstElementChild)!=null?f:null}),c),()=>{var u,f;if(!t)return null;const{isAutoWidth:h}=e;if(h){const p=n==null?void 0:n.autoLabelWidth,v=s==null?void 0:s.hasLabel,m={};if(v&&p&&p!=="auto"){const g=Math.max(0,Number.parseInt(p,10)-r.value),C=(s.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";g&&(m[C]=`${g}px`)}return W("div",{ref:o,class:[a.be("item","label-wrap")],style:m},[(u=t.default)==null?void 0:u.call(t)])}else return W(He,{ref:o},[(f=t.default)==null?void 0:f.call(t)])}}});const Uie=["role","aria-labelledby"];var FA=K({name:"ElFormItem",__name:"form-item",props:fie,setup(e,{expose:t}){const n=e,s=Gn(),a=je(Eu,void 0),o=je(ri,void 0),r=ls(void 0,{formItem:!1}),i=Ee("form-item"),l=Vs().value,c=F([]),u=F(""),f=UV(u,100),h=F(""),p=F();let v,m=!1;const g=E(()=>n.labelPosition||(a==null?void 0:a.labelPosition)),b=E(()=>{var he;return g.value==="top"?{}:{width:Nn((he=n.labelWidth)!=null?he:a==null?void 0:a.labelWidth)}}),C=E(()=>{var he;if(g.value==="top"||a!=null&&a.inline)return{};if(!n.label&&!n.labelWidth&&P)return{};const le=Nn((he=n.labelWidth)!=null?he:a==null?void 0:a.labelWidth);return!n.label&&!s.label?{marginLeft:le}:{}}),w=E(()=>[i.b(),i.m(r.value),i.is("error",u.value==="error"),i.is("validating",u.value==="validating"),i.is("success",u.value==="success"),i.is("required",J.value||n.required),i.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[i.m("feedback")]:a==null?void 0:a.statusIcon,[i.m(`label-${g.value}`)]:g.value}]),_=E(()=>on(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),x=E(()=>[i.e("error"),{[i.em("error","inline")]:_.value}]),k=E(()=>n.prop?Ae(n.prop)?n.prop.join("."):n.prop:""),T=E(()=>!!(n.label||s.label)),R=E(()=>{var he;return(he=n.for)!=null?he:c.value.length===1?c.value[0]:void 0}),I=E(()=>!R.value&&T.value),P=!!o,$=E(()=>{const he=a==null?void 0:a.model;if(!(!he||!n.prop))return Af(he,n.prop).value}),O=E(()=>{const{required:he}=n,le=[];n.rules&&le.push(...Ts(n.rules));const Z=a==null?void 0:a.rules;if(Z&&n.prop){const j=Af(Z,n.prop).value;j&&le.push(...Ts(j))}if(he!==void 0){const j=le.map((ae,fe)=>[ae,fe]).filter(([ae])=>"required"in ae);if(j.length>0)for(const[ae,fe]of j)ae.required!==he&&(le[fe]={...ae,required:he});else le.push({required:he})}return le}),B=E(()=>O.value.length>0),H=he=>O.value.filter(Z=>!Z.trigger||!he?!0:Ae(Z.trigger)?Z.trigger.includes(he):Z.trigger===he).map(({trigger:Z,...j})=>j),J=E(()=>O.value.some(he=>he.required)),Y=E(()=>{var he;return f.value==="error"&&n.showMessage&&((he=a==null?void 0:a.showMessage)!=null?he:!0)}),N=E(()=>`${n.label||""}${(a==null?void 0:a.labelSuffix)||""}`),L=he=>{u.value=he},V=he=>{var le,Z;const{errors:j,fields:ae}=he;(!j||!ae)&&console.error(he),L("error"),h.value=j?(Z=(le=j==null?void 0:j[0])==null?void 0:le.message)!=null?Z:`${n.prop} is required`:"",a==null||a.emit("validate",n.prop,!1,h.value)},z=()=>{L("success"),a==null||a.emit("validate",n.prop,!0,"")},G=async he=>{const le=k.value;return new Qp({[le]:he}).validate({[le]:$.value},{firstFields:!0}).then(()=>(z(),!0)).catch(j=>(V(j),Promise.reject(j)))},Q=async(he,le)=>{if(m||!n.prop)return!1;const Z=Qe(le);if(!B.value)return le==null||le(!1),!1;const j=H(he);return j.length===0?(le==null||le(!0),!0):(L("validating"),G(j).then(()=>(le==null||le(!0),!0)).catch(ae=>{const{fields:fe}=ae;return le==null||le(!1,fe),Z?!1:Promise.reject(fe)}))},U=()=>{L(""),h.value="",m=!1},ee=async()=>{const he=a==null?void 0:a.model;if(!he||!n.prop)return;const le=Af(he,n.prop);m=!0,le.value=Ey(v),await ze(),U(),m=!1},se=he=>{c.value.includes(he)||c.value.push(he)},de=he=>{c.value=c.value.filter(le=>le!==he)},te=he=>{v=Ey(he)};be(()=>n.error,he=>{h.value=he||"",L(he?"error":"")},{immediate:!0}),be(()=>n.validateStatus,he=>L(he||""));const pe=Gt({..._s(n),$el:p,size:r,validateMessage:h,validateState:u,labelId:l,inputIds:c,isGroup:I,hasLabel:T,fieldValue:$,addInputId:se,removeInputId:de,resetField:ee,clearValidate:U,validate:Q,propString:k,setInitialValue:te});return Nt(ri,pe),Mt(()=>{n.prop&&(a==null||a.addField(pe),v=Ey($.value))}),tn(()=>{a==null||a.removeField(pe)}),t({size:r,validateMessage:h,validateState:u,validate:Q,clearValidate:U,resetField:ee,setInitialValue:te}),(he,le)=>{var Z;return S(),M("div",{ref_key:"formItemRef",ref:p,class:D(w.value),role:I.value?"group":void 0,"aria-labelledby":I.value?d(l):void 0},[W(d(Kie),{"is-auto-width":b.value.width==="auto","update-all":((Z=d(a))==null?void 0:Z.labelWidth)==="auto"},{default:X(()=>[e.label||he.$slots.label?(S(),ce(kt(R.value?"label":"div"),{key:0,id:d(l),for:R.value,class:D(d(i).e("label")),style:et(b.value)},{default:X(()=>[ue(he.$slots,"label",{label:N.value},()=>[We(ge(N.value),1)])]),_:3},8,["id","for","class","style"])):ie("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),A("div",{class:D(d(i).e("content")),style:et(C.value)},[ue(he.$slots,"default"),W(jS,{name:`${d(i).namespace.value}-zoom-in-top`},{default:X(()=>[Y.value?ue(he.$slots,"error",{key:0,error:h.value},()=>[A("div",{class:D(x.value)},ge(h.value),3)]):ie("v-if",!0)]),_:3},8,["name"])],6)],10,Uie)}}});const qie=wt(uie,{FormItem:FA}),Gie=In(FA),Yie=Me({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:re([String,Object])},previewSrcList:{type:re(Array),default:()=>$n([])},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},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:re(String)}}),Xie={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>st(e),close:()=>!0,show:()=>!0},Jie=Me({urlList:{type:re(Array),default:()=>$n([])},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},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:re(String)}}),Zie={close:()=>!0,error:e=>e instanceof Event,switch:e=>st(e),rotate:e=>st(e)},Qie=["src","crossorigin"];var ele=K({name:"ElImageViewer",__name:"image-viewer",props:Jie,emits:Zie,setup(e,{expose:t,emit:n}){var s;const a={CONTAIN:{name:"contain",icon:Ur(jy)},ORIGINAL:{name:"original",icon:Ur(u9)}},o=e,r=n;let i;const{t:l}=Ft(),c=Ee("image-viewer"),{nextZIndex:u}=_p(),f=F(),h=F(),p=UI(),v=E(()=>{const{scale:le,minScale:Z,maxScale:j}=o;return Sx(le,Z,j)}),m=F(!0),g=F(!1),b=F(!1),C=F(o.initialIndex),w=bn(a.CONTAIN),_=F({scale:v.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),x=F((s=o.zIndex)!=null?s:u());u1(b,{ns:c});const k=E(()=>{const{urlList:le}=o;return le.length<=1}),T=E(()=>C.value===0),R=E(()=>C.value===o.urlList.length-1),I=E(()=>o.urlList[C.value]),P=E(()=>[c.e("btn"),c.e("prev"),c.is("disabled",!o.infinite&&T.value)]),$=E(()=>[c.e("btn"),c.e("next"),c.is("disabled",!o.infinite&&R.value)]),O=E(()=>{const{scale:le,deg:Z,offsetX:j,offsetY:ae,enableTransition:fe}=_.value;let we=j/le,Se=ae/le;const ke=Z*Math.PI/180,Oe=Math.cos(ke),Be=Math.sin(ke);we=we*Oe+Se*Be,Se=Se*Oe-j/le*Be;const Le={transform:`scale(${le}) rotate(${Z}deg) translate(${we}px, ${Se}px)`,transition:fe?"transform .3s":""};return w.value.name===a.CONTAIN.name&&(Le.maxWidth=Le.maxHeight="100%"),Le}),B=E(()=>`${C.value+1} / ${o.urlList.length}`);function H(){Y(),i==null||i(),b.value=!1,r("close")}function J(){const le=sc(j=>{switch(un(j)){case Te.esc:o.closeOnPressEscape&&H();break;case Te.space:Q();break;case Te.left:ee();break;case Te.up:de("zoomIn");break;case Te.right:se();break;case Te.down:de("zoomOut");break}}),Z=sc(j=>{const ae=j.deltaY||j.deltaX;de(ae<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});p.run(()=>{an(document,"keydown",le),an(f,"wheel",Z)})}function Y(){p.stop()}function N(){m.value=!1}function L(le){g.value=!0,m.value=!1,r("error",le),le.target.alt=l("el.image.error")}function V(le){if(m.value||le.button!==0||!f.value)return;_.value.enableTransition=!1;const{offsetX:Z,offsetY:j}=_.value,ae=le.pageX,fe=le.pageY,we=sc(Oe=>{_.value={..._.value,offsetX:Z+Oe.pageX-ae,offsetY:j+Oe.pageY-fe}}),Se=an(document,"mousemove",we),ke=an(document,"mouseup",()=>{Se(),ke()});le.preventDefault()}function z(le){if(m.value||!f.value||le.touches.length!==1)return;_.value.enableTransition=!1;const{offsetX:Z,offsetY:j}=_.value,{pageX:ae,pageY:fe}=le.touches[0],we=sc(Oe=>{const Be=Oe.touches[0];_.value={..._.value,offsetX:Z+Be.pageX-ae,offsetY:j+Be.pageY-fe}}),Se=an(document,"touchmove",we),ke=an(document,"touchend",()=>{Se(),ke()});le.preventDefault()}function G(){_.value={scale:v.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function Q(){if(m.value||g.value)return;const le=Sp(a),Z=Object.values(a),j=w.value.name,fe=(Z.findIndex(we=>we.name===j)+1)%le.length;w.value=a[le[fe]],G()}function U(le){g.value=!1;const Z=o.urlList.length;C.value=(le+Z)%Z}function ee(){T.value&&!o.infinite||U(C.value-1)}function se(){R.value&&!o.infinite||U(C.value+1)}function de(le,Z={}){if(m.value||g.value)return;const{minScale:j,maxScale:ae}=o,{zoomRate:fe,rotateDeg:we,enableTransition:Se}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...Z};switch(le){case"zoomOut":_.value.scale>j&&(_.value.scale=Number.parseFloat((_.value.scale/fe).toFixed(3)));break;case"zoomIn":_.value.scale<ae&&(_.value.scale=Number.parseFloat((_.value.scale*fe).toFixed(3)));break;case"clockwise":_.value.deg+=we,r("rotate",_.value.deg);break;case"anticlockwise":_.value.deg-=we,r("rotate",_.value.deg);break}_.value.enableTransition=Se}function te(le){var Z;((Z=le.detail)==null?void 0:Z.focusReason)==="pointer"&&le.preventDefault()}function pe(){o.closeOnPressEscape&&H()}function he(le){if(le.ctrlKey){if(le.deltaY<0)return le.preventDefault(),!1;if(le.deltaY>0)return le.preventDefault(),!1}}return be(()=>v.value,le=>{_.value.scale=le}),be(I,()=>{ze(()=>{const le=h.value;le!=null&&le.complete||(m.value=!0)})}),be(C,le=>{G(),r("switch",le)}),Mt(()=>{b.value=!0,J(),i=an("wheel",he,{passive:!1})}),t({setActiveItem:U}),(le,Z)=>(S(),ce(d(Mf),{to:"body",disabled:!e.teleported},{default:X(()=>[W(Cs,{name:"viewer-fade",appear:""},{default:X(()=>[A("div",{ref_key:"wrapper",ref:f,tabindex:-1,class:D(d(c).e("wrapper")),style:et({zIndex:x.value})},[W(d(Ff),{loop:"",trapped:"","focus-trap-el":f.value,"focus-start-el":"container",onFocusoutPrevented:te,onReleaseRequested:pe},{default:X(()=>[A("div",{class:D(d(c).e("mask")),onClick:Z[0]||(Z[0]=ht(j=>e.hideOnClickModal&&H(),["self"]))},null,2),ie(" CLOSE "),A("span",{class:D([d(c).e("btn"),d(c).e("close")]),onClick:H},[W(d(Je),null,{default:X(()=>[W(d(qa))]),_:1})],2),ie(" ARROW "),k.value?ie("v-if",!0):(S(),M(He,{key:0},[A("span",{class:D(P.value),onClick:ee},[W(d(Je),null,{default:X(()=>[W(d(Bo))]),_:1})],2),A("span",{class:D($.value),onClick:se},[W(d(Je),null,{default:X(()=>[W(d(Fs))]),_:1})],2)],64)),le.$slots.progress||e.showProgress?(S(),M("div",{key:1,class:D([d(c).e("btn"),d(c).e("progress")])},[ue(le.$slots,"progress",{activeIndex:C.value,total:e.urlList.length},()=>[We(ge(B.value),1)])],2)):ie("v-if",!0),ie(" ACTIONS "),A("div",{class:D([d(c).e("btn"),d(c).e("actions")])},[A("div",{class:D(d(c).e("actions__inner"))},[ue(le.$slots,"toolbar",{actions:de,prev:ee,next:se,reset:Q,activeIndex:C.value,setActiveItem:U},()=>[W(d(Je),{onClick:Z[1]||(Z[1]=j=>de("zoomOut"))},{default:X(()=>[W(d(Yy))]),_:1}),W(d(Je),{onClick:Z[2]||(Z[2]=j=>de("zoomIn"))},{default:X(()=>[W(d(Ig))]),_:1}),A("i",{class:D(d(c).e("actions__divider"))},null,2),W(d(Je),{onClick:Q},{default:X(()=>[(S(),ce(kt(w.value.icon)))]),_:1}),A("i",{class:D(d(c).e("actions__divider"))},null,2),W(d(Je),{onClick:Z[3]||(Z[3]=j=>de("anticlockwise"))},{default:X(()=>[W(d(Rg))]),_:1}),W(d(Je),{onClick:Z[4]||(Z[4]=j=>de("clockwise"))},{default:X(()=>[W(d(c9))]),_:1})])],2)],2),ie(" CANVAS "),A("div",{class:D(d(c).e("canvas"))},[g.value&&le.$slots["viewer-error"]?ue(le.$slots,"viewer-error",{key:0,activeIndex:C.value,src:I.value}):(S(),M("img",{ref_key:"imgRef",ref:h,key:I.value,src:I.value,style:et(O.value),class:D(d(c).e("img")),crossorigin:e.crossorigin,onLoad:N,onError:L,onMousedown:V,onTouchstart:z},null,46,Qie))],2),ue(le.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});const BA=wt(ele),tle=["src","loading","crossorigin"],nle={key:0};var sle=K({name:"ElImage",inheritAttrs:!1,__name:"image",props:Yie,emits:Xie,setup(e,{expose:t,emit:n}){const s=e,a=n,{t:o}=Ft(),r=Ee("image"),i=Hi(),l=E(()=>vp(Object.entries(i).filter(([N])=>/^(data-|on[A-Z])/i.test(N)||["id","style"].includes(N)))),c=Fg({excludeListeners:!0,excludeKeys:E(()=>Object.keys(l.value))}),u=F(),f=F(!1),h=F(!0),p=F(!1),v=F(),m=F(),g=Yt&&"loading"in HTMLImageElement.prototype;let b;const C=E(()=>[r.e("inner"),_.value&&r.e("preview"),h.value&&r.is("loading")]),w=E(()=>{const{fit:N}=s;return Yt&&N?{objectFit:N}:{}}),_=E(()=>{const{previewSrcList:N}=s;return Ae(N)&&N.length>0}),x=E(()=>{const{previewSrcList:N,initialIndex:L}=s;let V=L;return L>N.length-1&&(V=0),V}),k=E(()=>s.loading==="eager"?!1:!g&&s.loading==="lazy"||s.lazy),T=()=>{Yt&&(h.value=!0,f.value=!1,u.value=s.src)};function R(N){h.value=!1,f.value=!1,a("load",N)}function I(N){h.value=!1,f.value=!0,a("error",N)}function P(N){N&&(T(),B())}const $=kx(P,200,!0);async function O(){var N;if(!Yt)return;await ze();const{scrollContainer:L}=s;if(Ka(L))m.value=L;else if(Xe(L)&&L!=="")m.value=(N=document.querySelector(L))!=null?N:void 0;else if(v.value){const z=By(v.value);m.value=bp(z)?void 0:z}const{stop:V}=ez(v,([z])=>{$(z.isIntersecting)},{root:m});b=V}function B(){!Yt||!$||(b==null||b(),m.value=void 0,b=void 0)}function H(){_.value&&(p.value=!0,a("show"))}function J(){p.value=!1,a("close")}function Y(N){a("switch",N)}return be(()=>s.src,()=>{k.value?(h.value=!0,f.value=!1,B(),O()):T()}),Mt(()=>{k.value?O():T()}),t({showPreview:H}),(N,L)=>(S(),M("div",At({ref_key:"container",ref:v},l.value,{class:[d(r).b(),N.$attrs.class]}),[f.value?ue(N.$slots,"error",{key:0},()=>[A("div",{class:D(d(r).e("error"))},ge(d(o)("el.image.error")),3)]):(S(),M(He,{key:1},[u.value!==void 0?(S(),M("img",At({key:0},d(c),{src:u.value,loading:e.loading,style:w.value,class:C.value,crossorigin:e.crossorigin,onClick:H,onLoad:R,onError:I}),null,16,tle)):ie("v-if",!0),h.value?(S(),M("div",{key:1,class:D(d(r).e("wrapper"))},[ue(N.$slots,"placeholder",{},()=>[A("div",{class:D(d(r).e("placeholder"))},null,2)])],2)):ie("v-if",!0)],64)),_.value?(S(),M(He,{key:2},[p.value?(S(),ce(d(BA),{key:0,"z-index":e.zIndex,"initial-index":x.value,infinite:e.infinite,"zoom-rate":e.zoomRate,"min-scale":e.minScale,"max-scale":e.maxScale,"show-progress":e.showProgress,"url-list":e.previewSrcList,scale:e.scale,crossorigin:e.crossorigin,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:J,onSwitch:Y},Ta({toolbar:X(V=>[ue(N.$slots,"toolbar",$i(Wi(V)))]),default:X(()=>[N.$slots.viewer?(S(),M("div",nle,[ue(N.$slots,"viewer")])):ie("v-if",!0)]),_:2},[N.$slots.progress?{name:"progress",fn:X(V=>[ue(N.$slots,"progress",$i(Wi(V)))]),key:"0"}:void 0,N.$slots["viewer-error"]?{name:"viewer-error",fn:X(V=>[ue(N.$slots,"viewer-error",$i(Wi(V)))]),key:"1"}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","scale","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):ie("v-if",!0)],64)):ie("v-if",!0)],16))}});const ale=wt(sle),ole=Me({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:{type:Boolean,default:void 0},size:hs,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:re([String,Number,null]),validator:e=>e===null||st(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},...ua(["ariaLabel"]),inputmode:{type:re(String),default:void 0},align:{type:re(String),default:"center"},disabledScientific:Boolean}),rle={[Dt]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[is]:e=>st(e)||Qn(e),[mt]:e=>st(e)||Qn(e)},ile=["aria-label"],lle=["aria-label"];var cle=K({name:"ElInputNumber",__name:"input-number",props:ole,emits:rle,setup(e,{expose:t,emit:n}){const s=e,a=n,{t:o}=Ft(),r=Ee("input-number"),i=F(),l=Gt({currentValue:s.modelValue,userInput:null}),{formItem:c}=Ms(),u=E(()=>st(s.modelValue)&&s.modelValue<=s.min),f=E(()=>st(s.modelValue)&&s.modelValue>=s.max),h=E(()=>{const N=C(s.step);return Wt(s.precision)?Math.max(C(s.modelValue),N):(N>s.precision,s.precision)}),p=E(()=>s.controls&&s.controlsPosition==="right"),v=ls(),m=Dn(),g=E(()=>{if(l.userInput!==null)return l.userInput;let N=l.currentValue;if(Qn(N))return"";if(st(N)){if(Number.isNaN(N))return"";Wt(s.precision)||(N=N.toFixed(s.precision))}return N}),b=(N,L)=>{if(Wt(L)&&(L=h.value),L===0)return Math.round(N);let V=String(N);const z=V.indexOf(".");if(z===-1||!V.replace(".","").split("")[z+L])return N;const U=V.length;return V.charAt(U-1)==="5"&&(V=`${V.slice(0,Math.max(0,U-1))}6`),Number.parseFloat(Number(V).toFixed(L))},C=N=>{if(Qn(N))return 0;const L=N.toString(),V=L.indexOf(".");let z=0;return V!==-1&&(z=L.length-V-1),z},w=(N,L=1)=>st(N)?N>=Number.MAX_SAFE_INTEGER&&L===1||N<=Number.MIN_SAFE_INTEGER&&L===-1?N:b(N+s.step*L):l.currentValue,_=N=>{const L=un(N),V=yk(N);if(s.disabledScientific&&["e","E"].includes(V)){N.preventDefault();return}switch(L){case Te.up:{N.preventDefault(),x();break}case Te.down:{N.preventDefault(),k();break}}},x=()=>{if(s.readonly||m.value||f.value)return;const N=Number(g.value)||0,L=w(N);R(L),a(is,l.currentValue),J()},k=()=>{if(s.readonly||m.value||u.value)return;const N=Number(g.value)||0,L=w(N,-1);R(L),a(is,l.currentValue),J()},T=(N,L)=>{const{max:V,min:z,step:G,precision:Q,stepStrictly:U,valueOnClear:ee}=s;V<z&&ns("InputNumber","min should not be greater than max.");let se=Number(N);if(Qn(N)||Number.isNaN(se))return null;if(N===""){if(ee===null)return null;se=Xe(ee)?{min:z,max:V}[ee]:ee}return U&&(se=b(Math.round(b(se/G))*G,Q),se!==N&&L&&a(mt,se)),Wt(Q)||(se=b(se,Q)),(se>V||se<z)&&(se=se>V?V:z,L&&a(mt,se)),se},R=(N,L=!0)=>{var V;const z=l.currentValue,G=T(N);if(!L){a(mt,G);return}l.userInput=null,!(z===G&&N)&&(a(mt,G),z!==G&&a(Dt,G,z),s.validateEvent&&((V=c==null?void 0:c.validate)==null||V.call(c,"change").catch(Q=>void 0)),l.currentValue=G)},I=N=>{l.userInput=N;const L=N===""?null:Number(N);a(is,L),R(L,!1)},P=N=>{const L=N!==""?Number(N):"";(st(L)&&!Number.isNaN(L)||N==="")&&R(L),J(),l.userInput=null},$=()=>{var N,L;(L=(N=i.value)==null?void 0:N.focus)==null||L.call(N)},O=()=>{var N,L;(L=(N=i.value)==null?void 0:N.blur)==null||L.call(N)},B=N=>{a("focus",N)},H=N=>{var L,V;l.userInput=null,l.currentValue===null&&((L=i.value)!=null&&L.input)&&(i.value.input.value=""),a("blur",N),s.validateEvent&&((V=c==null?void 0:c.validate)==null||V.call(c,"blur").catch(z=>void 0))},J=()=>{l.currentValue!==s.modelValue&&(l.currentValue=s.modelValue)},Y=N=>{document.activeElement===N.target&&N.preventDefault()};return be(()=>s.modelValue,(N,L)=>{const V=T(N,!0);l.userInput===null&&V!==L&&(l.currentValue=V)},{immediate:!0}),be(()=>s.precision,()=>{l.currentValue=T(s.modelValue)}),Mt(()=>{var N;const{min:L,max:V,modelValue:z}=s,G=(N=i.value)==null?void 0:N.input;if(G.setAttribute("role","spinbutton"),Number.isFinite(V)?G.setAttribute("aria-valuemax",String(V)):G.removeAttribute("aria-valuemax"),Number.isFinite(L)?G.setAttribute("aria-valuemin",String(L)):G.removeAttribute("aria-valuemin"),G.setAttribute("aria-valuenow",l.currentValue||l.currentValue===0?String(l.currentValue):""),G.setAttribute("aria-disabled",String(m.value)),!st(z)&&z!=null){let Q=Number(z);Number.isNaN(Q)&&(Q=null),a(mt,Q)}G.addEventListener("wheel",Y,{passive:!1})}),lr(()=>{var N,L;const V=(N=i.value)==null?void 0:N.input;V==null||V.setAttribute("aria-valuenow",`${(L=l.currentValue)!=null?L:""}`)}),t({focus:$,blur:O}),(N,L)=>(S(),M("div",{class:D([d(r).b(),d(r).m(d(v)),d(r).is("disabled",d(m)),d(r).is("without-controls",!e.controls),d(r).is("controls-right",p.value),d(r).is(e.align,!!e.align)]),onDragstart:L[0]||(L[0]=ht(()=>{},["prevent"]))},[e.controls?Ct((S(),M("span",{key:0,role:"button","aria-label":d(o)("el.inputNumber.decrease"),class:D([d(r).e("decrease"),d(r).is("disabled",u.value)]),onKeydown:zn(k,["enter"])},[ue(N.$slots,"decrease-icon",{},()=>[W(d(Je),null,{default:X(()=>[p.value?(S(),ce(d(mr),{key:0})):(S(),ce(d(s9),{key:1}))]),_:1})])],42,ile)),[[d(n1),k]]):ie("v-if",!0),e.controls?Ct((S(),M("span",{key:1,role:"button","aria-label":d(o)("el.inputNumber.increase"),class:D([d(r).e("increase"),d(r).is("disabled",f.value)]),onKeydown:zn(x,["enter"])},[ue(N.$slots,"increase-icon",{},()=>[W(d(Je),null,{default:X(()=>[p.value?(S(),ce(d(kp),{key:0})):(S(),ce(d(Uy),{key:1}))]),_:1})])],42,lle)),[[d(n1),x]]):ie("v-if",!0),W(d(da),{id:e.id,ref_key:"input",ref:i,type:"number",step:e.step,"model-value":g.value,placeholder:e.placeholder,readonly:e.readonly,disabled:d(m),size:d(v),max:e.max,min:e.min,name:e.name,"aria-label":e.ariaLabel,"validate-event":!1,inputmode:e.inputmode,onKeydown:_,onBlur:H,onFocus:B,onInput:I,onChange:P},Ta({_:2},[N.$slots.prefix?{name:"prefix",fn:X(()=>[ue(N.$slots,"prefix")]),key:"0"}:void 0,N.$slots.suffix?{name:"suffix",fn:X(()=>[ue(N.$slots,"suffix")]),key:"1"}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],34))}});const VA=wt(cle),ule=Me({modelValue:{type:re(Array)},max:Number,tagType:{...rl.type,default:"info"},tagEffect:rl.effect,effect:{type:re(String),default:"light"},trigger:{type:re(String),default:Te.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:hs,clearable:Boolean,clearIcon:{type:rn,default:Vo},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:re(String),default:"off"},saveOnBlur:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},ariaLabel:String}),dle={[mt]:e=>Ae(e)||Wt(e),[Dt]:e=>Ae(e)||Wt(e),[is]:e=>Xe(e),"add-tag":e=>Xe(e)||Ae(e),"remove-tag":(e,t)=>Xe(e)&&st(t),"drag-tag":(e,t,n)=>st(e)&&st(t)&&Xe(n),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function fle({props:e,emit:t,formItem:n}){const s=Dn(),a=ls(),o=bn(),r=F(),i=F(),l=E(()=>["small"].includes(a.value)?"small":"default"),c=E(()=>{var J;return(J=e.modelValue)!=null&&J.length?void 0:e.placeholder}),u=E(()=>!(e.readonly||s.value)),f=E(()=>{var J,Y;return Wt(e.max)?!1:((Y=(J=e.modelValue)==null?void 0:J.length)!=null?Y:0)>=e.max}),h=E(()=>{var J;return e.collapseTags?(J=e.modelValue)==null?void 0:J.slice(0,e.maxCollapseTags):e.modelValue}),p=E(()=>{var J;return e.collapseTags?(J=e.modelValue)==null?void 0:J.slice(e.maxCollapseTags):[]}),v=J=>{var Y;const N=[...(Y=e.modelValue)!=null?Y:[],...Ts(J)];t(mt,N),t(Dt,N),t("add-tag",J),r.value=void 0},m=J=>{var Y,N;const L=J.split(e.delimiter).filter(V=>V&&V!==J);if(e.max){const V=e.max-((N=(Y=e.modelValue)==null?void 0:Y.length)!=null?N:0);L.splice(V)}return L.length===1?L[0]:L},g=J=>{if(f.value){r.value=void 0;return}if(!$.value){if(e.delimiter&&r.value){const Y=m(r.value);Y.length&&v(Y)}t(is,J.target.value)}},b=J=>{var Y;if($.value)return;switch(un(J)){case e.trigger:J.preventDefault(),J.stopPropagation(),w();break;case Te.numpadEnter:e.trigger===Te.enter&&(J.preventDefault(),J.stopPropagation(),w());break;case Te.backspace:!r.value&&((Y=e.modelValue)!=null&&Y.length)&&(J.preventDefault(),J.stopPropagation(),_(e.modelValue.length-1));break}},C=J=>{if($.value||!W9())return;switch(un(J)){case Te.space:e.trigger===Te.space&&(J.preventDefault(),J.stopPropagation(),w());break}},w=()=>{var J;const Y=(J=r.value)==null?void 0:J.trim();!Y||f.value||v(Y)},_=J=>{var Y;const N=((Y=e.modelValue)!=null?Y:[]).slice(),[L]=N.splice(J,1);t(mt,N),t(Dt,N),t("remove-tag",L,J)},x=()=>{r.value=void 0,t(mt,void 0),t(Dt,void 0),t("clear")},k=(J,Y,N)=>{var L;const V=((L=e.modelValue)!=null?L:[]).slice(),[z]=V.splice(J,1),G=Y>J&&N==="before"?-1:Y<J&&N==="after"?1:0;V.splice(Y+G,0,z),t(mt,V),t(Dt,V),t("drag-tag",J,Y+G,z)},T=()=>{var J;(J=o.value)==null||J.focus()},R=()=>{var J;(J=o.value)==null||J.blur()},{wrapperRef:I,isFocused:P}=nl(o,{disabled:s,beforeBlur(J){var Y;return(Y=i.value)==null?void 0:Y.isFocusInsideContent(J)},afterBlur(){var J;e.saveOnBlur?w():r.value=void 0,e.validateEvent&&((J=n==null?void 0:n.validate)==null||J.call(n,"blur").catch(Y=>void 0))}}),{isComposing:$,handleCompositionStart:O,handleCompositionUpdate:B,handleCompositionEnd:H}=Bp({afterComposition:g});return be(()=>e.modelValue,()=>{var J;e.validateEvent&&((J=n==null?void 0:n.validate)==null||J.call(n,Dt).catch(Y=>void 0))}),{inputRef:o,wrapperRef:I,tagTooltipRef:i,isFocused:P,isComposing:$,inputValue:r,size:a,tagSize:l,placeholder:c,closable:u,disabled:s,inputLimit:f,showTagList:h,collapseTagList:p,handleDragged:k,handleInput:g,handleKeydown:b,handleKeyup:C,handleAddTag:w,handleRemoveTag:_,handleClear:x,handleCompositionStart:O,handleCompositionUpdate:B,handleCompositionEnd:H,focus:T,blur:R}}function hle(){const e=F(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function ple({wrapperRef:e,handleDragged:t,afterDragged:n}){const s=Ee("input-tag"),a=bn(),o=F(!1);let r,i,l,c;function u(v){return`.${s.e("inner")} .${s.namespace.value}-tag:nth-child(${v+1})`}function f(v,m){r=m,i=e.value.querySelector(u(m)),i&&(i.style.opacity="0.5"),v.dataTransfer.effectAllowed="move"}function h(v,m){if(l=m,v.preventDefault(),v.dataTransfer.dropEffect="move",Wt(r)||r===m){o.value=!1;return}const g=e.value.querySelector(u(m)).getBoundingClientRect(),b=r+1!==m,C=r-1!==m,w=v.clientX-g.left,_=b?C?.5:1:-1,x=C?b?.5:0:1;w<=g.width*_?c="before":w>g.width*x?c="after":c=void 0;const k=e.value.querySelector(`.${s.e("inner")}`),T=k.getBoundingClientRect(),R=Number.parseFloat(Ji(k,"gap"))/2,I=g.top-T.top;let P=-9999;if(c==="before")P=Math.max(g.left-T.left-R,Math.floor(-R/2));else if(c==="after"){const $=g.right-T.left;P=$+(T.width===$?Math.floor(R/2):R)}zx(a.value,{top:`${I}px`,left:`${P}px`}),o.value=!!c}function p(v){v.preventDefault(),i&&(i.style.opacity=""),c&&!Wt(r)&&!Wt(l)&&r!==l&&t(r,l,c),o.value=!1,r=void 0,i=null,l=void 0,c=void 0,n==null||n()}return{dropIndicatorRef:a,showDropIndicator:o,handleDragStart:f,handleDragOver:h,handleDragEnd:p}}function vle({props:e,isFocused:t,hovering:n,disabled:s,inputValue:a,size:o,validateState:r,validateIcon:i,needStatusIcon:l}){const c=Hi(),u=Gn(),f=Ee("input-tag"),h=Ee("input"),p=F(),v=F(),m=E(()=>[f.b(),f.is("focused",t.value),f.is("hovering",n.value),f.is("disabled",s.value),f.m(o.value),f.e("wrapper"),c.class]),g=E(()=>[c.style]),b=E(()=>{var I,P;return[f.e("inner"),f.is("draggable",e.draggable),f.is("left-space",!((I=e.modelValue)!=null&&I.length)&&!u.prefix),f.is("right-space",!((P=e.modelValue)!=null&&P.length)&&!w.value)]}),C=E(()=>{var I;return e.clearable&&!s.value&&!e.readonly&&(((I=e.modelValue)==null?void 0:I.length)||a.value)&&(t.value||n.value)}),w=E(()=>u.suffix||C.value||r.value&&i.value&&l.value),_=Gt({innerWidth:0,collapseItemWidth:0}),x=()=>{if(!v.value)return 0;const I=window.getComputedStyle(v.value);return Number.parseFloat(I.gap||"6px")},k=()=>{_.innerWidth=Number.parseFloat(window.getComputedStyle(v.value).width)},T=()=>{_.collapseItemWidth=p.value.getBoundingClientRect().width},R=E(()=>{if(!e.collapseTags)return{};const I=x(),P=I+Yg,$=p.value&&e.maxCollapseTags===1?_.innerWidth-_.collapseItemWidth-I-P:_.innerWidth-P;return{maxWidth:`${Math.max($,0)}px`}});return Tn(v,k),Tn(p,T),{ns:f,nsInput:h,containerKls:m,containerStyle:g,innerKls:b,showClear:C,showSuffix:w,tagStyle:R,collapseItemRef:p,innerRef:v}}const mle=["id","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel"],gle=["textContent"];var ble=K({name:"ElInputTag",inheritAttrs:!1,__name:"input-tag",props:ule,emits:dle,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Fg(),r=Gn(),{form:i,formItem:l}=Ms(),{inputId:c}=ho(s,{formItemContext:l}),u=E(()=>{var Le;return(Le=i==null?void 0:i.statusIcon)!=null?Le:!1}),f=E(()=>(l==null?void 0:l.validateState)||""),h=E(()=>f.value&&Og[f.value]),{inputRef:p,wrapperRef:v,tagTooltipRef:m,isFocused:g,inputValue:b,size:C,tagSize:w,placeholder:_,closable:x,disabled:k,showTagList:T,collapseTagList:R,handleDragged:I,handleInput:P,handleKeydown:$,handleKeyup:O,handleRemoveTag:B,handleClear:H,handleCompositionStart:J,handleCompositionUpdate:Y,handleCompositionEnd:N,focus:L,blur:V}=fle({props:s,emit:a,formItem:l}),{hovering:z,handleMouseEnter:G,handleMouseLeave:Q}=hle(),{calculatorRef:U,inputStyle:ee}=R3(),{dropIndicatorRef:se,showDropIndicator:de,handleDragStart:te,handleDragOver:pe,handleDragEnd:he}=ple({wrapperRef:v,handleDragged:I,afterDragged:L}),{ns:le,nsInput:Z,containerKls:j,containerStyle:ae,innerKls:fe,showClear:we,showSuffix:Se,tagStyle:ke,collapseItemRef:Oe,innerRef:Be}=vle({props:s,hovering:z,isFocused:g,inputValue:b,disabled:k,size:C,validateState:f,validateIcon:h,needStatusIcon:u});return t({focus:L,blur:V}),(Le,Ce)=>(S(),M("div",{ref_key:"wrapperRef",ref:v,class:D(d(j)),style:et(d(ae)),onMouseenter:Ce[8]||(Ce[8]=(...Ie)=>d(G)&&d(G)(...Ie)),onMouseleave:Ce[9]||(Ce[9]=(...Ie)=>d(Q)&&d(Q)(...Ie))},[d(r).prefix?(S(),M("div",{key:0,class:D(d(le).e("prefix"))},[ue(Le.$slots,"prefix")],2)):ie("v-if",!0),A("div",{ref_key:"innerRef",ref:Be,class:D(d(fe))},[(S(!0),M(He,null,Et(d(T),(Ie,Re)=>(S(),ce(d(il),{key:Re,size:d(w),closable:d(x),type:e.tagType,effect:e.tagEffect,draggable:d(x)&&e.draggable,style:et(d(ke)),"disable-transitions":"",onClose:Ke=>d(B)(Re),onDragstart:Ke=>d(te)(Ke,Re),onDragover:Ke=>d(pe)(Ke,Re),onDragend:d(he),onDrop:Ce[0]||(Ce[0]=ht(()=>{},["stop"]))},{default:X(()=>[ue(Le.$slots,"tag",{value:Ie,index:Re},()=>[We(ge(Ie),1)])]),_:2},1032,["size","closable","type","effect","draggable","style","onClose","onDragstart","onDragover","onDragend"]))),128)),e.collapseTags&&e.modelValue&&e.modelValue.length>e.maxCollapseTags?(S(),ce(d(Ps),{key:0,ref_key:"tagTooltipRef",ref:m,disabled:!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom"},{default:X(()=>[A("div",{ref_key:"collapseItemRef",ref:Oe,class:D(d(le).e("collapse-tag"))},[W(d(il),{closable:!1,size:d(w),type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:X(()=>[We(" + "+ge(e.modelValue.length-e.maxCollapseTags),1)]),_:1},8,["size","type","effect"])],2)]),content:X(()=>[A("div",{class:D(d(le).e("input-tag-list"))},[(S(!0),M(He,null,Et(d(R),(Ie,Re)=>(S(),ce(d(il),{key:Re,size:d(w),closable:d(x),type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:Ke=>d(B)(Re+e.maxCollapseTags)},{default:X(()=>[ue(Le.$slots,"tag",{value:Ie,index:Re+e.maxCollapseTags},()=>[We(ge(Ie),1)])]),_:2},1032,["size","closable","type","effect","onClose"]))),128))],2)]),_:3},8,["disabled","effect"])):ie("v-if",!0),A("div",{class:D(d(le).e("input-wrapper"))},[Ct(A("input",At({id:d(c),ref_key:"inputRef",ref:p,"onUpdate:modelValue":Ce[1]||(Ce[1]=Ie=>yn(b)?b.value=Ie:null)},d(o),{type:"text",minlength:e.minlength,maxlength:e.maxlength,disabled:d(k),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,placeholder:d(_),autofocus:e.autofocus,ariaLabel:e.ariaLabel,class:d(le).e("input"),style:d(ee),onCompositionstart:Ce[2]||(Ce[2]=(...Ie)=>d(J)&&d(J)(...Ie)),onCompositionupdate:Ce[3]||(Ce[3]=(...Ie)=>d(Y)&&d(Y)(...Ie)),onCompositionend:Ce[4]||(Ce[4]=(...Ie)=>d(N)&&d(N)(...Ie)),onInput:Ce[5]||(Ce[5]=(...Ie)=>d(P)&&d(P)(...Ie)),onKeydown:Ce[6]||(Ce[6]=(...Ie)=>d($)&&d($)(...Ie)),onKeyup:Ce[7]||(Ce[7]=(...Ie)=>d(O)&&d(O)(...Ie))}),null,16,mle),[[ig,d(b)]]),A("span",{ref_key:"calculatorRef",ref:U,"aria-hidden":"true",class:D(d(le).e("input-calculator")),textContent:ge(d(b))},null,10,gle)],2),Ct(A("div",{ref_key:"dropIndicatorRef",ref:se,class:D(d(le).e("drop-indicator"))},null,2),[[jt,d(de)]])],2),d(Se)?(S(),M("div",{key:1,class:D(d(le).e("suffix"))},[ue(Le.$slots,"suffix"),d(we)?(S(),ce(d(Je),{key:0,class:D([d(le).e("icon"),d(le).e("clear")]),onMousedown:ht(d(en),["prevent"]),onClick:d(H)},{default:X(()=>[(S(),ce(kt(e.clearIcon)))]),_:1},8,["class","onMousedown","onClick"])):ie("v-if",!0),f.value&&h.value&&u.value?(S(),ce(d(Je),{key:1,class:D([d(Z).e("icon"),d(Z).e("validateIcon"),d(Z).is("loading",f.value==="validating")])},{default:X(()=>[(S(),ce(kt(h.value)))]),_:1},8,["class"])):ie("v-if",!0)],2)):ie("v-if",!0)],38))}});const yle=wt(ble),wle=Me({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:rn}}),_le={click:e=>e instanceof MouseEvent},Cle=["href","target"];var Sle=K({name:"ElLink",__name:"link",props:wle,emits:_le,setup(e,{emit:t}){const n=e,s=t,a=Tf("link");li({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"},E(()=>on(n.underline)));const o=Ee("link"),r=E(()=>{var c,u,f;return[o.b(),o.m((f=(u=n.type)!=null?u:(c=a.value)==null?void 0:c.type)!=null?f:"default"),o.is("disabled",n.disabled),o.is("underline",i.value==="always"),o.is("hover-underline",i.value==="hover"&&!n.disabled)]}),i=E(()=>{var c,u,f;return on(n.underline)?n.underline?"hover":"never":(f=(u=n.underline)!=null?u:(c=a.value)==null?void 0:c.underline)!=null?f:"hover"});function l(c){n.disabled||s("click",c)}return(c,u)=>(S(),M("a",{class:D(r.value),href:e.disabled||!e.href?void 0:e.href,target:e.disabled||!e.href?void 0:e.target,onClick:l},[e.icon?(S(),ce(d(Je),{key:0},{default:X(()=>[(S(),ce(kt(e.icon)))]),_:1})):ie("v-if",!0),c.$slots.default?(S(),M("span",{key:1,class:D(d(o).e("inner"))},[ue(c.$slots,"default")],2)):ie("v-if",!0),c.$slots.icon?ue(c.$slots,"icon",{key:2}):ie("v-if",!0)],10,Cle))}});const xle=wt(Sle);var kle=Object.defineProperty,Ele=(e,t,n)=>t in e?kle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zA=(e,t,n)=>Ele(e,typeof t!="symbol"?t+"":t,n);let Ale=class{constructor(t,n){this.parent=t,this.domNode=n,zA(this,"subMenuItems"),zA(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",s=>{const a=un(s);let o=!1;switch(a){case Te.down:{this.gotoSubIndex(this.subIndex+1),o=!0;break}case Te.up:{this.gotoSubIndex(this.subIndex-1),o=!0;break}case Te.tab:{Bg(t,"mouseleave");break}case Te.enter:case Te.numpadEnter:case Te.space:{o=!0,s.currentTarget.click();break}}return o&&(s.preventDefault(),s.stopPropagation()),!1})})}};var Tle=Object.defineProperty,Mle=(e,t,n)=>t in e?Tle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ple=(e,t,n)=>Mle(e,t+"",n);class Rle{constructor(t,n){this.domNode=t,Ple(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 Ale(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{const n=un(t);let s=!1;switch(n){case Te.down:{Bg(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),s=!0;break}case Te.up:{Bg(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),s=!0;break}case Te.tab:{Bg(t.currentTarget,"mouseleave");break}case Te.enter:case Te.numpadEnter:case Te.space:{s=!0,t.currentTarget.click();break}}s&&t.preventDefault()})}}let Ile=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(s=>{s.nodeType===1&&new Rle(s,t)})}};var Ole=K({name:"ElMenuCollapseTransition",__name:"menu-collapse-transition",setup(e){const t=Ee("menu"),n={onBeforeEnter:s=>s.style.opacity="0.2",onEnter(s,a){Fo(s,`${t.namespace.value}-opacity-transition`),s.style.opacity="1",a()},onAfterEnter(s){ca(s,`${t.namespace.value}-opacity-transition`),s.style.opacity=""},onBeforeLeave(s){s.dataset||(s.dataset={}),ni(s,t.m("collapse"))?(ca(s,t.m("collapse")),s.dataset.oldOverflow=s.style.overflow,s.dataset.scrollWidth=s.clientWidth.toString(),Fo(s,t.m("collapse"))):(Fo(s,t.m("collapse")),s.dataset.oldOverflow=s.style.overflow,s.dataset.scrollWidth=s.clientWidth.toString(),ca(s,t.m("collapse"))),s.style.width=`${s.scrollWidth}px`,s.style.overflow="hidden"},onLeave(s){Fo(s,"horizontal-collapse-transition"),s.style.width=`${s.dataset.scrollWidth}px`}};return(s,a)=>(S(),ce(Cs,At({mode:"out-in"},n),{default:X(()=>[ue(s.$slots,"default")]),_:3},16))}});function HA(e,t){const n=E(()=>{let a=e.parent;const o=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&o.unshift(a.props.index),a=a.parent;return o});return{parentMenu:E(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function Lle(e){return E(()=>{const n=e.backgroundColor;return n?new Vf(n).shade(20).toString():""})}const WA=(e,t)=>{const n=Ee("menu");return E(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":Lle(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},p6="rootMenu",m1="subMenu:",Nle=Me({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,popperStyle:{type:re([String,Object])},disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:rn},expandOpenIcon:{type:rn},collapseCloseIcon:{type:rn},collapseOpenIcon:{type:rn}}),v6="ElSubMenu";var m6=K({name:v6,props:Nle,setup(e,{slots:t,expose:n}){const s=Tt(),{indexPath:a,parentMenu:o}=HA(s,E(()=>e.index)),r=Ee("menu"),i=Ee("sub-menu"),l=je(p6);l||ns(v6,"can not inject root menu");const c=je(`${m1}${o.value.uid}`);c||ns(v6,"can not inject sub menu");const u=F({}),f=F({});let h;const p=F(!1),v=F(),m=F(),g=E(()=>c.level===0),b=E(()=>R.value==="horizontal"&&g.value?"bottom-start":"right-start"),C=E(()=>R.value==="horizontal"&&g.value||R.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?k.value?e.expandOpenIcon:e.expandCloseIcon:mr:e.collapseCloseIcon&&e.collapseOpenIcon?k.value?e.collapseOpenIcon:e.collapseCloseIcon:Fs),w=E(()=>{const Q=e.teleported;return Wt(Q)?g.value:Q}),_=E(()=>l.props.collapse?`${r.namespace.value}-zoom-in-left`:`${r.namespace.value}-zoom-in-top`),x=E(()=>R.value==="horizontal"&&g.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"]),k=E(()=>l.openedMenus.includes(e.index)),T=E(()=>[...Object.values(u.value),...Object.values(f.value)].some(({active:Q})=>Q)),R=E(()=>l.props.mode),I=E(()=>l.props.persistent),P=Gt({index:e.index,indexPath:a,active:T}),$=WA(l.props,c.level+1),O=E(()=>{var Q;return(Q=e.popperOffset)!=null?Q:l.props.popperOffset}),B=E(()=>{var Q;return(Q=e.popperClass)!=null?Q:l.props.popperClass}),H=E(()=>{var Q;return(Q=e.popperStyle)!=null?Q:l.props.popperStyle}),J=E(()=>{var Q;return(Q=e.showTimeout)!=null?Q:l.props.showTimeout}),Y=E(()=>{var Q;return(Q=e.hideTimeout)!=null?Q:l.props.hideTimeout}),N=()=>{var Q,U,ee;return(ee=(U=(Q=m.value)==null?void 0:Q.popperRef)==null?void 0:U.popperInstanceRef)==null?void 0:ee.destroy()},L=Q=>{Q||N()},V=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:a.value,active:T.value})},z=(Q,U=J.value)=>{var ee;if(Q.type!=="focus"){if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled){c.mouseInChild.value=!0;return}c.mouseInChild.value=!0,h==null||h(),{stop:h}=Ef(()=>{l.openMenu(e.index,a.value)},U),w.value&&((ee=o.value.vnode.el)==null||ee.dispatchEvent(new MouseEvent("mouseenter"))),Q.type==="mouseenter"&&Q.target&&ze(()=>{Fp(Q.target,{preventScroll:!0})})}},G=(Q=!1)=>{var U;if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"){c.mouseInChild.value=!1;return}h==null||h(),c.mouseInChild.value=!1,{stop:h}=Ef(()=>!p.value&&l.closeMenu(e.index,a.value),Y.value),w.value&&Q&&((U=c.handleMouseleave)==null||U.call(c,!0))};be(()=>l.props.collapse,Q=>L(!!Q));{const Q=ee=>{f.value[ee.index]=ee},U=ee=>{delete f.value[ee.index]};Nt(`${m1}${s.uid}`,{addSubMenu:Q,removeSubMenu:U,handleMouseleave:G,mouseInChild:p,level:c.level+1})}return n({opened:k}),Mt(()=>{l.addSubMenu(P),c.addSubMenu(P)}),tn(()=>{c.removeSubMenu(P),l.removeSubMenu(P)}),()=>{var Q;const U=[(Q=t.title)==null?void 0:Q.call(t),lt(Je,{class:i.e("icon-arrow"),style:{transform:k.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Xe(C.value)?lt(s.appContext.components[C.value]):lt(C.value)})],ee=l.isMenuPopup?lt(Ps,{ref:m,visible:k.value,effect:"light",pure:!0,offset:O.value,showArrow:!1,persistent:I.value,popperClass:B.value,popperStyle:H.value,placement:b.value,teleported:w.value,fallbackPlacements:x.value,transition:_.value,gpuAcceleration:!1},{content:()=>{var se;return lt("div",{class:[r.m(R.value),r.m("popup-container"),B.value],onMouseenter:de=>z(de,100),onMouseleave:()=>G(!0),onFocus:de=>z(de,100)},[lt("ul",{class:[r.b(),r.m("popup"),r.m(`popup-${b.value}`)],style:$.value},[(se=t.default)==null?void 0:se.call(t)])])},default:()=>lt("div",{class:i.e("title"),onClick:V},U)}):lt(He,{},[lt("div",{class:i.e("title"),ref:v,onClick:V},U),lt(Qg,{},{default:()=>{var se;return Ct(lt("ul",{role:"menu",class:[r.b(),r.m("inline")],style:$.value},[(se=t.default)==null?void 0:se.call(t)]),[[jt,k.value]])}})]);return lt("li",{class:[i.b(),i.is("active",T.value),i.is("opened",k.value),i.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:k.value,onMouseenter:z,onMouseleave:()=>G(),onFocus:z},[ee])}}});const $le=Me({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:re(Array),default:()=>$n([])},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:rn,default:()=>a9},popperEffect:{type:re(String),default:"dark"},popperClass:String,popperStyle:{type:re([String,Object])},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),g6=e=>Ae(e)&&e.every(t=>Xe(t)),Dle={close:(e,t)=>Xe(e)&&g6(t),open:(e,t)=>Xe(e)&&g6(t),select:(e,t,n,s)=>Xe(e)&&g6(t)&&bt(n)&&(Wt(s)||s instanceof Promise)},jA=64;var Fle=K({name:"ElMenu",props:$le,emits:Dle,setup(e,{emit:t,slots:n,expose:s}){const a=Tt(),o=a.appContext.config.globalProperties.$router,r=F(),i=F(),l=Ee("menu"),c=Ee("sub-menu");let u=jA;const f=F(-1),h=F(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),p=F(e.defaultActive),v=F({}),m=F({}),g=E(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),b=()=>{const N=p.value&&v.value[p.value];if(!N||e.mode==="horizontal"||e.collapse)return;N.indexPath.forEach(V=>{const z=m.value[V];z&&C(V,z.indexPath)})},C=(N,L)=>{h.value.includes(N)||(e.uniqueOpened&&(h.value=h.value.filter(V=>L.includes(V))),h.value.push(N),t("open",N,L))},w=N=>{const L=h.value.indexOf(N);L!==-1&&h.value.splice(L,1)},_=(N,L)=>{w(N),t("close",N,L)},x=({index:N,indexPath:L})=>{h.value.includes(N)?_(N,L):C(N,L)},k=N=>{(e.mode==="horizontal"||e.collapse)&&(h.value=[]);const{index:L,indexPath:V}=N;if(!(Qn(L)||Qn(V)))if(e.router&&o){const z=N.route||L,G=o.push(z).then(Q=>(Q||(p.value=L),Q));t("select",L,V,{index:L,indexPath:V,route:z},G)}else p.value=L,t("select",L,V,{index:L,indexPath:V})},T=N=>{var L;const V=v.value,z=V[N]||p.value&&V[p.value]||V[e.defaultActive];p.value=(L=z==null?void 0:z.index)!=null?L:N},R=N=>{const L=getComputedStyle(N),V=Number.parseInt(L.marginLeft,10),z=Number.parseInt(L.marginRight,10);return N.offsetWidth+V+z||0},I=()=>{if(!r.value)return-1;const N=Array.from(r.value.childNodes).filter(ee=>ee.nodeName!=="#comment"&&(ee.nodeName!=="#text"||ee.nodeValue)),L=getComputedStyle(r.value),V=Number.parseInt(L.paddingLeft,10),z=Number.parseInt(L.paddingRight,10),G=r.value.clientWidth-V-z;let Q=0,U=0;return N.forEach((ee,se)=>{Q+=R(ee),Q<=G-u&&(U=se+1)}),U===N.length?-1:U},P=N=>m.value[N].indexPath,$=(N,L=33.34)=>{let V;return()=>{V&&clearTimeout(V),V=setTimeout(()=>{N()},L)}};let O=!0;const B=()=>{const N=fs(i);if(N&&(u=R(N)||jA),f.value===I())return;const L=()=>{f.value=-1,ze(()=>{f.value=I()})};O?L():$(L)(),O=!1};be(()=>e.defaultActive,N=>{v.value[N]||(p.value=""),T(N)}),be(()=>e.collapse,N=>{N&&(h.value=[])}),be(v.value,b);let H;ja(()=>{e.mode==="horizontal"&&e.ellipsis?H=Tn(r,B).stop:H==null||H()});const J=F(!1);{const N=G=>{m.value[G.index]=G},L=G=>{delete m.value[G.index]};Nt(p6,Gt({props:e,openedMenus:h,items:v,subMenus:m,activeIndex:p,isMenuPopup:g,addMenuItem:G=>{v.value[G.index]=G},removeMenuItem:G=>{delete v.value[G.index]},addSubMenu:N,removeSubMenu:L,openMenu:C,closeMenu:_,handleMenuItemClick:k,handleSubMenuClick:x})),Nt(`${m1}${a.uid}`,{addSubMenu:N,removeSubMenu:L,mouseInChild:J,level:0})}Mt(()=>{e.mode==="horizontal"&&new Ile(a.vnode.el,l.namespace.value)}),s({open:L=>{const{indexPath:V}=m.value[L];V.forEach(z=>C(z,V))},close:w,updateActiveIndex:T,handleResize:B});const Y=WA(e,0);return()=>{var N,L;let V=(L=(N=n.default)==null?void 0:N.call(n))!=null?L:[];const z=[];if(e.mode==="horizontal"&&r.value){const U=uo(V).filter(de=>(de==null?void 0:de.shapeFlag)!==8),ee=f.value===-1?U:U.slice(0,f.value),se=f.value===-1?[]:U.slice(f.value);se!=null&&se.length&&e.ellipsis&&(V=ee,z.push(lt(m6,{ref:i,index:"sub-menu-more",class:c.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>lt(Je,{class:c.e("icon-more")},{default:()=>lt(e.ellipsisIcon)}),default:()=>se})))}const G=e.closeOnClickOutside?[[fc,()=>{h.value.length&&(J.value||(h.value.forEach(U=>t("close",U,P(U))),h.value=[]))}]]:[],Q=Ct(lt("ul",{key:String(e.collapse),role:"menubar",ref:r,style:Y.value,class:{[l.b()]:!0,[l.m(e.mode)]:!0,[l.m("collapse")]:e.collapse}},[...V,...z]),G);return e.collapseTransition&&e.mode==="vertical"?lt(Ole,()=>Q):Q}}});const Ble=Me({index:{type:re([String,null]),default:null},route:{type:re([String,Object])},disabled:Boolean}),Vle={click:e=>Xe(e.index)&&Ae(e.indexPath)},b6="ElMenuItem";var KA=K({name:b6,__name:"menu-item",props:Ble,emits:Vle,setup(e,{expose:t,emit:n}){const s=e,a=n;Ua(s.index)&&void 0;const o=Tt(),r=je(p6),i=Ee("menu"),l=Ee("menu-item");r||ns(b6,"can not inject root menu");const{parentMenu:c,indexPath:u}=HA(o,sn(s,"index")),f=je(`${m1}${c.value.uid}`);f||ns(b6,"can not inject sub menu");const h=E(()=>s.index===r.activeIndex),p=Gt({index:s.index,indexPath:u,active:h}),v=()=>{s.disabled||(r.handleMenuItemClick({index:s.index,indexPath:u.value,route:s.route}),a("click",p))};return Mt(()=>{f.addSubMenu(p),r.addMenuItem(p)}),tn(()=>{f.removeSubMenu(p),r.removeMenuItem(p)}),t({parentMenu:c,rootMenu:r,active:h,nsMenu:i,nsMenuItem:l,handleClick:v}),(m,g)=>(S(),M("li",{class:D([d(l).b(),d(l).is("active",h.value),d(l).is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:v},[d(c).type.name==="ElMenu"&&d(r).props.collapse&&m.$slots.title?(S(),ce(d(Ps),{key:0,effect:d(r).props.popperEffect,placement:"right","fallback-placements":["left"],"popper-class":d(r).props.popperClass,"popper-style":d(r).props.popperStyle,persistent:d(r).props.persistent,"focus-on-target":""},{content:X(()=>[ue(m.$slots,"title")]),default:X(()=>[A("div",{class:D(d(i).be("tooltip","trigger"))},[ue(m.$slots,"default")],2)]),_:3},8,["effect","popper-class","popper-style","persistent"])):(S(),M(He,{key:1},[ue(m.$slots,"default"),ue(m.$slots,"title")],64))],2))}}),UA=K({name:"ElMenuItemGroup",__name:"menu-item-group",props:{title:String},setup(e){const t=Ee("menu-item-group");return(n,s)=>(S(),M("li",{class:D(d(t).b())},[A("div",{class:D(d(t).e("title"))},[n.$slots.title?ue(n.$slots,"title",{key:1}):(S(),M(He,{key:0},[We(ge(e.title),1)],64))],2),A("ul",null,[ue(n.$slots,"default")])],2))}});const zle=wt(Fle,{MenuItem:KA,MenuItemGroup:UA,SubMenu:m6}),Hle=In(KA),Wle=In(UA),jle=In(m6),Kle=Me({icon:{type:rn,default:()=>Ux},title:String,content:{type:String,default:""}}),Ule={back:()=>!0},qle=["aria-label"];var Gle=K({name:"ElPageHeader",__name:"page-header",props:Kle,emits:Ule,setup(e,{emit:t}){const n=t,{t:s}=Ft(),a=Ee("page-header");function o(){n("back")}return(r,i)=>(S(),M("div",{class:D([d(a).b(),d(a).is("contentful",!!r.$slots.default),{[d(a).m("has-breadcrumb")]:!!r.$slots.breadcrumb,[d(a).m("has-extra")]:!!r.$slots.extra}])},[r.$slots.breadcrumb?(S(),M("div",{key:0,class:D(d(a).e("breadcrumb"))},[ue(r.$slots,"breadcrumb")],2)):ie("v-if",!0),A("div",{class:D(d(a).e("header"))},[A("div",{class:D(d(a).e("left"))},[A("div",{class:D(d(a).e("back")),role:"button",tabindex:"0",onClick:o},[e.icon||r.$slots.icon?(S(),M("div",{key:0,"aria-label":e.title||d(s)("el.pageHeader.title"),class:D(d(a).e("icon"))},[ue(r.$slots,"icon",{},()=>[e.icon?(S(),ce(d(Je),{key:0},{default:X(()=>[(S(),ce(kt(e.icon)))]),_:1})):ie("v-if",!0)])],10,qle)):ie("v-if",!0),A("div",{class:D(d(a).e("title"))},[ue(r.$slots,"title",{},()=>[We(ge(e.title||d(s)("el.pageHeader.title")),1)])],2)],2),W(d(bA),{direction:"vertical"}),A("div",{class:D(d(a).e("content"))},[ue(r.$slots,"content",{},()=>[We(ge(e.content),1)])],2)],2),r.$slots.extra?(S(),M("div",{key:0,class:D(d(a).e("extra"))},[ue(r.$slots,"extra")],2)):ie("v-if",!0)],2),r.$slots.default?(S(),M("div",{key:1,class:D(d(a).e("main"))},[ue(r.$slots,"default")],2)):ie("v-if",!0)],2))}});const Yle=wt(Gle),qA=Symbol("elPaginationKey"),Xle=Me({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:rn}}),Jle={click:e=>e instanceof MouseEvent},Zle=["disabled","aria-label","aria-disabled"],Qle={key:0};var ece=K({name:"ElPaginationPrev",__name:"prev",props:Xle,emits:Jle,setup(e){const t=e,{t:n}=Ft(),s=E(()=>t.disabled||t.currentPage<=1);return(a,o)=>(S(),M("button",{type:"button",class:"btn-prev",disabled:s.value,"aria-label":a.prevText||d(n)("el.pagination.prev"),"aria-disabled":s.value,onClick:o[0]||(o[0]=r=>a.$emit("click",r))},[a.prevText?(S(),M("span",Qle,ge(a.prevText),1)):(S(),ce(d(Je),{key:1},{default:X(()=>[(S(),ce(kt(a.prevIcon)))]),_:1}))],8,Zle))}});const tce=Me({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:rn}}),nce=["disabled","aria-label","aria-disabled"],sce={key:0};var ace=K({name:"ElPaginationNext",__name:"next",props:tce,emits:["click"],setup(e){const t=e,{t:n}=Ft(),s=E(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(a,o)=>(S(),M("button",{type:"button",class:"btn-next",disabled:s.value,"aria-label":a.nextText||d(n)("el.pagination.next"),"aria-disabled":s.value,onClick:o[0]||(o[0]=r=>a.$emit("click",r))},[a.nextText?(S(),M("span",sce,ge(a.nextText),1)):(S(),ce(d(Je),{key:1},{default:X(()=>[(S(),ce(kt(a.nextIcon)))]),_:1}))],8,nce))}});const y6=()=>je(qA,{}),oce=Me({pageSize:{type:Number,required:!0},pageSizes:{type:re(Array),default:()=>$n([10,20,30,40,50,100])},popperClass:{type:String},popperStyle:{type:re([String,Object])},disabled:Boolean,teleported:Boolean,size:{type:String,values:vr},appendSizeTo:String});var rce=K({name:"ElPaginationSizes",__name:"sizes",props:oce,emits:["page-size-change"],setup(e,{emit:t}){const n=e,s=t,{t:a}=Ft(),o=Ee("pagination"),r=y6(),i=F(n.pageSize);be(()=>n.pageSizes,(u,f)=>{if(!Hn(u,f)&&Ae(u)){const h=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];s("page-size-change",h)}}),be(()=>n.pageSize,u=>{i.value=u});const l=E(()=>n.pageSizes);function c(u){var f;u!==i.value&&(i.value=u,(f=r.handleSizeChange)==null||f.call(r,Number(u)))}return(u,f)=>(S(),M("span",{class:D(d(o).e("sizes"))},[W(d(hc),{"model-value":i.value,disabled:u.disabled,"popper-class":u.popperClass,"popper-style":u.popperStyle,size:u.size,teleported:u.teleported,"validate-event":!1,"append-to":u.appendSizeTo,onChange:c},{default:X(()=>[(S(!0),M(He,null,Et(l.value,h=>(S(),ce(d(Xg),{key:h,value:h,label:h+d(a)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","popper-style","size","teleported","append-to"])],2))}});const ice=Me({size:{type:String,values:vr}}),lce=["disabled"];var cce=K({name:"ElPaginationJumper",__name:"jumper",props:ice,setup(e){const{t}=Ft(),n=Ee("pagination"),{pageCount:s,disabled:a,currentPage:o,changeEvent:r}=y6(),i=F(),l=E(()=>{var f;return(f=i.value)!=null?f:o==null?void 0:o.value});function c(f){i.value=f?+f:""}function u(f){f=Math.trunc(+f),r==null||r(f),i.value=void 0}return(f,h)=>(S(),M("span",{class:D(d(n).e("jump")),disabled:d(a)},[A("span",{class:D([d(n).e("goto")])},ge(d(t)("el.pagination.goto")),3),W(d(da),{size:f.size,class:D([d(n).e("editor"),d(n).is("in-pagination")]),min:1,max:d(s),disabled:d(a),"model-value":l.value,"validate-event":!1,"aria-label":d(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:u},null,8,["size","class","max","disabled","model-value","aria-label"]),A("span",{class:D([d(n).e("classifier")])},ge(d(t)("el.pagination.pageClassifier")),3)],10,lce))}});const uce=Me({total:{type:Number,default:1e3}}),dce=["disabled"];var fce=K({name:"ElPaginationTotal",__name:"total",props:uce,setup(e){const{t}=Ft(),n=Ee("pagination"),{disabled:s}=y6();return(a,o)=>(S(),M("span",{class:D(d(n).e("total")),disabled:d(s)},ge(d(t)("el.pagination.total",{total:a.total})),11,dce))}});const hce=Me({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),pce=["aria-current","aria-label","tabindex"],vce=["tabindex","aria-label"],mce=["aria-current","aria-label","tabindex"],gce=["tabindex","aria-label"],bce=["aria-current","aria-label","tabindex"];var yce=K({name:"ElPaginationPager",__name:"pager",props:hce,emits:[Dt],setup(e,{emit:t}){const n=e,s=t,a=Ee("pager"),o=Ee("icon"),{t:r}=Ft(),i=F(!1),l=F(!1),c=F(!1),u=F(!1),f=F(!1),h=F(!1),p=E(()=>{const x=n.pagerCount,k=(x-1)/2,T=Number(n.currentPage),R=Number(n.pageCount);let I=!1,P=!1;R>x&&(T>x-k&&(I=!0),T<R-k&&(P=!0));const $=[];if(I&&!P){const O=R-(x-2);for(let B=O;B<R;B++)$.push(B)}else if(!I&&P)for(let O=2;O<x;O++)$.push(O);else if(I&&P){const O=Math.floor(x/2)-1;for(let B=T-O;B<=T+O;B++)$.push(B)}else for(let O=2;O<R;O++)$.push(O);return $}),v=E(()=>["more","btn-quickprev",o.b(),a.is("disabled",n.disabled)]),m=E(()=>["more","btn-quicknext",o.b(),a.is("disabled",n.disabled)]),g=E(()=>n.disabled?-1:0);be(()=>[n.pageCount,n.pagerCount,n.currentPage],([x,k,T])=>{const R=(k-1)/2;let I=!1,P=!1;x>k&&(I=T>k-R,P=T<x-R),c.value&&(c.value=I),u.value&&(u.value=P),i.value=I,l.value=P},{immediate:!0});function b(x=!1){n.disabled||(x?c.value=!0:u.value=!0)}function C(x=!1){x?f.value=!0:h.value=!0}function w(x){const k=x.target;if(k.tagName.toLowerCase()==="li"&&Array.from(k.classList).includes("number")){const T=Number(k.textContent);T!==n.currentPage&&s(Dt,T)}else k.tagName.toLowerCase()==="li"&&Array.from(k.classList).includes("more")&&_(x)}function _(x){const k=x.target;if(k.tagName.toLowerCase()==="ul"||n.disabled)return;let T=Number(k.textContent);const R=n.pageCount,I=n.currentPage,P=n.pagerCount-2;k.className.includes("more")&&(k.className.includes("quickprev")?T=I-P:k.className.includes("quicknext")&&(T=I+P)),Number.isNaN(+T)||(T<1&&(T=1),T>R&&(T=R)),T!==I&&s(Dt,T)}return(x,k)=>(S(),M("ul",{class:D(d(a).b()),onClick:_,onKeyup:zn(w,["enter"])},[x.pageCount>0?(S(),M("li",{key:0,class:D([[d(a).is("active",x.currentPage===1),d(a).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===1,"aria-label":d(r)("el.pagination.currentPage",{pager:1}),tabindex:g.value}," 1 ",10,pce)):ie("v-if",!0),i.value?(S(),M("li",{key:1,class:D(v.value),tabindex:g.value,"aria-label":d(r)("el.pagination.prevPages",{pager:x.pagerCount-2}),onMouseenter:k[0]||(k[0]=T=>b(!0)),onMouseleave:k[1]||(k[1]=T=>c.value=!1),onFocus:k[2]||(k[2]=T=>C(!0)),onBlur:k[3]||(k[3]=T=>f.value=!1)},[(c.value||f.value)&&!x.disabled?(S(),ce(d(Zi),{key:0})):(S(),ce(d(Ky),{key:1}))],42,vce)):ie("v-if",!0),(S(!0),M(He,null,Et(p.value,T=>(S(),M("li",{key:T,class:D([[d(a).is("active",x.currentPage===T),d(a).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===T,"aria-label":d(r)("el.pagination.currentPage",{pager:T}),tabindex:g.value},ge(T),11,mce))),128)),l.value?(S(),M("li",{key:2,class:D(m.value),tabindex:g.value,"aria-label":d(r)("el.pagination.nextPages",{pager:x.pagerCount-2}),onMouseenter:k[4]||(k[4]=T=>b()),onMouseleave:k[5]||(k[5]=T=>u.value=!1),onFocus:k[6]||(k[6]=T=>C()),onBlur:k[7]||(k[7]=T=>h.value=!1)},[(u.value||h.value)&&!x.disabled?(S(),ce(d(Qi),{key:0})):(S(),ce(d(Ky),{key:1}))],42,gce)):ie("v-if",!0),x.pageCount>1?(S(),M("li",{key:3,class:D([[d(a).is("active",x.currentPage===x.pageCount),d(a).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===x.pageCount,"aria-label":d(r)("el.pagination.currentPage",{pager:x.pageCount}),tabindex:g.value},ge(x.pageCount),11,bce)):ie("v-if",!0)],34))}});const Oa=e=>typeof e!="number",wce=Me({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>st(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:re(Array),default:()=>$n([10,20,30,40,50,100])},popperClass:{type:String,default:""},popperStyle:{type:re([String,Object])},prevText:{type:String,default:""},prevIcon:{type:rn,default:()=>Bo},nextText:{type:String,default:""},nextIcon:{type:rn,default:()=>Fs},teleported:{type:Boolean,default:!0},small:Boolean,size:hs,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),_ce={"update:current-page":e=>st(e),"update:page-size":e=>st(e),"size-change":e=>st(e),change:(e,t)=>st(e)&&st(t),"current-change":e=>st(e),"prev-click":e=>st(e),"next-click":e=>st(e)},GA="ElPagination";var Cce=K({name:GA,props:wce,emits:_ce,setup(e,{emit:t,slots:n}){const{t:s}=Ft(),a=Ee("pagination"),o=Tt().vnode.props||{},r=$x(),i=E(()=>{var x;return e.small?"small":(x=e.size)!=null?x:r.value});li({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},E(()=>!!e.small));const l="onUpdate:currentPage"in o||"onUpdate:current-page"in o||"onCurrentChange"in o,c="onUpdate:pageSize"in o||"onUpdate:page-size"in o||"onSizeChange"in o,u=E(()=>{if(Oa(e.total)&&Oa(e.pageCount)||!Oa(e.currentPage)&&!l)return!1;if(e.layout.includes("sizes")){if(Oa(e.pageCount)){if(!Oa(e.total)&&!Oa(e.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),f=F(Oa(e.defaultPageSize)?10:e.defaultPageSize),h=F(Oa(e.defaultCurrentPage)?1:e.defaultCurrentPage),p=E({get(){return Oa(e.pageSize)?f.value:e.pageSize},set(x){Oa(e.pageSize)&&(f.value=x),c&&(t("update:page-size",x),t("size-change",x))}}),v=E(()=>{let x=0;return Oa(e.pageCount)?Oa(e.total)||(x=Math.max(1,Math.ceil(e.total/p.value))):x=e.pageCount,x}),m=E({get(){return Oa(e.currentPage)?h.value:e.currentPage},set(x){let k=x;x<1?k=1:x>v.value&&(k=v.value),Oa(e.currentPage)&&(h.value=k),l&&(t("update:current-page",k),t("current-change",k))}});be(v,x=>{m.value>x&&(m.value=x)}),be([m,p],x=>{t(Dt,...x)},{flush:"post"});function g(x){m.value=x}function b(x){p.value=x;const k=v.value;m.value>k&&(m.value=k)}function C(){e.disabled||(m.value-=1,t("prev-click",m.value))}function w(){e.disabled||(m.value+=1,t("next-click",m.value))}function _(x,k){x&&(x.props||(x.props={}),x.props.class=[x.props.class,k].join(" "))}return Nt(qA,{pageCount:v,disabled:E(()=>e.disabled),currentPage:m,changeEvent:g,handleSizeChange:b}),()=>{var x,k;if(!u.value)return s("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&v.value<=1)return null;const T=[],R=[],I=lt("div",{class:a.e("rightwrapper")},R),P={prev:lt(ece,{disabled:e.disabled,currentPage:m.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:C}),jumper:lt(cce,{size:i.value}),pager:lt(yce,{currentPage:m.value,pageCount:v.value,pagerCount:e.pagerCount,onChange:g,disabled:e.disabled}),next:lt(ace,{disabled:e.disabled,currentPage:m.value,pageCount:v.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:w}),sizes:lt(rce,{pageSize:p.value,pageSizes:e.pageSizes,popperClass:e.popperClass,popperStyle:e.popperStyle,disabled:e.disabled,teleported:e.teleported,size:i.value,appendSizeTo:e.appendSizeTo}),slot:(k=(x=n==null?void 0:n.default)==null?void 0:x.call(n))!=null?k:null,total:lt(fce,{total:Oa(e.total)?0:e.total})},$=e.layout.split(",").map(B=>B.trim());let O=!1;return $.forEach(B=>{if(B==="->"){O=!0;return}O?R.push(P[B]):T.push(P[B])}),_(T[0],a.is("first")),_(T[T.length-1],a.is("last")),O&&R.length>0&&(_(R[0],a.is("first")),_(R[R.length-1],a.is("last")),T.push(I)),lt("div",{class:[a.b(),a.is("background",e.background),a.m(i.value)]},T)}}});const Sce=wt(Cce),xce=Me({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:b3,default:"primary"},cancelButtonType:{type:String,values:b3,default:"text"},icon:{type:rn,default:()=>i9},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},effect:{...ln.effect,default:"light"},teleported:ln.teleported,persistent:ln.persistent,width:{type:[String,Number],default:150},virtualTriggering:ii.virtualTriggering,virtualRef:ii.virtualRef});var kce=K({name:"ElPopconfirm",__name:"popconfirm",props:xce,emits:{confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},setup(e,{expose:t,emit:n}){const s=e,a=n,{t:o}=Ft(),r=Ee("popconfirm"),i=F(),l=F(),c=E(()=>{var b;return(b=d(i))==null?void 0:b.popperRef}),u=()=>{var b,C;(C=(b=l.value)==null?void 0:b.focus)==null||C.call(b)},f=()=>{var b,C;(C=(b=i.value)==null?void 0:b.onClose)==null||C.call(b)},h=E(()=>({width:Nn(s.width)})),p=b=>{a("confirm",b),f()},v=b=>{a("cancel",b),f()},m=E(()=>s.confirmButtonText||o("el.popconfirm.confirmButtonText")),g=E(()=>s.cancelButtonText||o("el.popconfirm.cancelButtonText"));return t({popperRef:c,hide:f}),(b,C)=>(S(),ce(d(Ps),At({ref_key:"tooltipRef",ref:i,trigger:"click",effect:e.effect},b.$attrs,{"virtual-triggering":e.virtualTriggering,"virtual-ref":e.virtualRef,"popper-class":`${d(r).namespace.value}-popover`,"popper-style":h.value,teleported:e.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":e.hideAfter,persistent:e.persistent,loop:"",onShow:u}),{content:X(()=>[A("div",{ref_key:"rootRef",ref:l,tabindex:"-1",class:D(d(r).b())},[A("div",{class:D(d(r).e("main"))},[!e.hideIcon&&e.icon?(S(),ce(d(Je),{key:0,class:D(d(r).e("icon")),style:et({color:e.iconColor})},{default:X(()=>[(S(),ce(kt(e.icon)))]),_:1},8,["class","style"])):ie("v-if",!0),We(" "+ge(e.title),1)],2),A("div",{class:D(d(r).e("action"))},[ue(b.$slots,"actions",{confirm:p,cancel:v},()=>[W(d(xs),{size:"small",type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",onClick:v},{default:X(()=>[We(ge(g.value),1)]),_:1},8,["type","text"]),W(d(xs),{size:"small",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",onClick:p},{default:X(()=>[We(ge(m.value),1)]),_:1},8,["type","text"])])],2)],2)]),default:X(()=>[b.$slots.reference?ue(b.$slots,"reference",{key:0}):ie("v-if",!0)]),_:3},16,["effect","virtual-triggering","virtual-ref","popper-class","popper-style","teleported","hide-after","persistent"]))}});const Ece=wt(kce),Ace=Me({trigger:ii.trigger,triggerKeys:ii.triggerKeys,placement:d1.placement,disabled:ii.disabled,visible:ln.visible,transition:ln.transition,popperOptions:d1.popperOptions,tabindex:d1.tabindex,content:ln.content,popperStyle:ln.popperStyle,popperClass:ln.popperClass,enterable:{...ln.enterable,default:!0},effect:{...ln.effect,default:"light"},teleported:ln.teleported,appendTo:ln.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}}),Tce={"update:visible":e=>on(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Mce="onUpdate:visible";var Pce=K({name:"ElPopover",__name:"popover",props:Ace,emits:Tce,setup(e,{expose:t,emit:n}){const s=e,a=n,o=E(()=>s[Mce]),r=Ee("popover"),i=F(),l=E(()=>{var b;return(b=d(i))==null?void 0:b.popperRef}),c=E(()=>[{width:Nn(s.width)},s.popperStyle]),u=E(()=>[r.b(),s.popperClass,{[r.m("plain")]:!!s.content}]),f=E(()=>s.transition===`${r.namespace.value}-fade-in-linear`),h=()=>{var b;(b=i.value)==null||b.hide()},p=()=>{a("before-enter")},v=()=>{a("before-leave")},m=()=>{a("after-enter")},g=()=>{a("update:visible",!1),a("after-leave")};return t({popperRef:l,hide:h}),(b,C)=>(S(),ce(d(Ps),At({ref_key:"tooltipRef",ref:i},b.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":u.value,"popper-style":c.value,teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":f.value,"onUpdate:visible":o.value,onBeforeShow:p,onBeforeHide:v,onShow:m,onHide:g}),{content:X(()=>[e.title?(S(),M("div",{key:0,class:D(d(r).e("title")),role:"title"},ge(e.title),3)):ie("v-if",!0),ue(b.$slots,"default",{},()=>[We(ge(e.content),1)])]),default:X(()=>[b.$slots.reference?ue(b.$slots,"reference",{key:0}):ie("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"]))}});const YA=(e,t)=>{const n=t.arg||t.value,s=n==null?void 0:n.popperRef;s&&(s.triggerRef=e)};var Rce={mounted(e,t){YA(e,t)},updated(e,t){YA(e,t)}};const XA=dz(Rce,"popover"),Ice=wt(Pce,{directive:XA}),Oce=Me({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:re(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:re([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:re(Function),default:e=>`${e}%`}}),Lce=["aria-valuenow"],Nce={viewBox:"0 0 100 100"},$ce=["d","stroke","stroke-linecap","stroke-width"],Dce=["d","stroke","opacity","stroke-linecap","stroke-width"],Fce={key:0};var Bce=K({name:"ElProgress",__name:"progress",props:Oce,setup(e){const t={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},n=e,s=Ee("progress"),a=E(()=>{const w={width:`${n.percentage}%`,animationDuration:`${n.duration}s`},_=C(n.percentage);return _.includes("gradient")?w.background=_:w.backgroundColor=_,w}),o=E(()=>(n.strokeWidth/n.width*100).toFixed(1)),r=E(()=>["circle","dashboard"].includes(n.type)?Number.parseInt(`${50-Number.parseFloat(o.value)/2}`,10):0),i=E(()=>{const w=r.value,_=n.type==="dashboard";return`
|
||
M 50 50
|
||
m 0 ${_?"":"-"}${w}
|
||
a ${w} ${w} 0 1 1 0 ${_?"-":""}${w*2}
|
||
a ${w} ${w} 0 1 1 0 ${_?"":"-"}${w*2}
|
||
`}),l=E(()=>2*Math.PI*r.value),c=E(()=>n.type==="dashboard"?.75:1),u=E(()=>`${-1*l.value*(1-c.value)/2}px`),f=E(()=>({strokeDasharray:`${l.value*c.value}px, ${l.value}px`,strokeDashoffset:u.value})),h=E(()=>({strokeDasharray:`${l.value*c.value*(n.percentage/100)}px, ${l.value}px`,strokeDashoffset:u.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),p=E(()=>{let w;return n.color?w=C(n.percentage):w=t[n.status]||t.default,w}),v=E(()=>n.status==="warning"?Tp:n.type==="line"?n.status==="success"?Ep:Vo:n.status==="success"?Pf:qa),m=E(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),g=E(()=>n.format(n.percentage));function b(w){const _=100/w.length;return w.map((k,T)=>Xe(k)?{color:k,percentage:(T+1)*_}:k).sort((k,T)=>k.percentage-T.percentage)}const C=w=>{var _;const{color:x}=n;if(Qe(x))return x(w);if(Xe(x))return x;{const k=b(x);for(const T of k)if(T.percentage>w)return T.color;return(_=k[k.length-1])==null?void 0:_.color}};return(w,_)=>(S(),M("div",{class:D([d(s).b(),d(s).m(e.type),d(s).is(e.status),{[d(s).m("without-text")]:!e.showText,[d(s).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(S(),M("div",{key:0,class:D(d(s).b("bar"))},[A("div",{class:D(d(s).be("bar","outer")),style:et({height:`${e.strokeWidth}px`})},[A("div",{class:D([d(s).be("bar","inner"),{[d(s).bem("bar","inner","indeterminate")]:e.indeterminate},{[d(s).bem("bar","inner","striped")]:e.striped},{[d(s).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:et(a.value)},[(e.showText||w.$slots.default)&&e.textInside?(S(),M("div",{key:0,class:D(d(s).be("bar","innerText"))},[ue(w.$slots,"default",{percentage:e.percentage},()=>[A("span",null,ge(g.value),1)])],2)):ie("v-if",!0)],6)],6)],2)):(S(),M("div",{key:1,class:D(d(s).b("circle")),style:et({height:`${e.width}px`,width:`${e.width}px`})},[(S(),M("svg",Nce,[A("path",{class:D(d(s).be("circle","track")),d:i.value,stroke:`var(${d(s).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":o.value,fill:"none",style:et(f.value)},null,14,$ce),A("path",{class:D(d(s).be("circle","path")),d:i.value,stroke:p.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":o.value,style:et(h.value)},null,14,Dce)]))],6)),(e.showText||w.$slots.default)&&!e.textInside?(S(),M("div",{key:2,class:D(d(s).e("text")),style:et({fontSize:`${m.value}px`})},[ue(w.$slots,"default",{percentage:e.percentage},()=>[e.status?(S(),ce(d(Je),{key:1},{default:X(()=>[(S(),ce(kt(v.value)))]),_:1})):(S(),M("span",Fce,ge(g.value),1))])],6)):ie("v-if",!0)],10,Lce))}});const JA=wt(Bce),Vce=Me({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:re([Array,Object]),default:()=>$n(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:re([Array,Object]),default:()=>[Ap,Ap,Ap]},voidIcon:{type:rn,default:()=>p9},disabledVoidIcon:{type:rn,default:()=>Ap},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:re(Array),default:()=>$n(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:hs,clearable:Boolean,...ua(["ariaLabel"])}),zce={[Dt]:e=>st(e),[mt]:e=>st(e)},Hce=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],Wce=["onMousemove","onClick"];var jce=K({name:"ElRate",__name:"rate",props:Vce,emits:zce,setup(e,{expose:t,emit:n}){function s(L,V){const z=U=>bt(U),G=Object.keys(V).map(U=>+U).filter(U=>{const ee=V[U];return(z(ee)?ee.excluded:!1)?L<U:L<=U}).sort((U,ee)=>U-ee),Q=V[G[0]];return z(Q)&&Q.value||Q}const a=e,o=n,r=je(ri,void 0),i=ls(),l=Ee("rate"),{inputId:c,isLabeledByFormItem:u}=ho(a,{formItemContext:r}),f=F(wu(a.modelValue,0,a.max)),h=F(-1),p=F(!0),v=F([]),m=E(()=>v.value.map(L=>L.$el.clientWidth)),g=E(()=>[l.b(),l.m(i.value)]),b=Dn(),C=E(()=>l.cssVarBlock({"void-color":a.voidColor,"disabled-void-color":a.disabledVoidColor,"fill-color":k.value})),w=E(()=>{let L="";return a.showScore?L=a.scoreTemplate.replace(/\{\s*value\s*\}/,b.value?`${a.modelValue}`:`${f.value}`):a.showText&&(L=a.texts[Math.ceil(f.value)-1]),L}),_=E(()=>a.modelValue*100-Math.floor(a.modelValue)*100),x=E(()=>Ae(a.colors)?{[a.lowThreshold]:a.colors[0],[a.highThreshold]:{value:a.colors[1],excluded:!0},[a.max]:a.colors[2]}:a.colors),k=E(()=>{const L=s(f.value,x.value);return bt(L)?"":L}),T=E(()=>{let L="";return b.value?L=`${_.value}%`:a.allowHalf&&(L="50%"),{color:k.value,width:L}}),R=E(()=>{let L=Ae(a.icons)?[...a.icons]:{...a.icons};return L=Ur(L),Ae(L)?{[a.lowThreshold]:L[0],[a.highThreshold]:{value:L[1],excluded:!0},[a.max]:L[2]}:L}),I=E(()=>s(a.modelValue,R.value)),P=E(()=>b.value?Xe(a.disabledVoidIcon)?a.disabledVoidIcon:Ur(a.disabledVoidIcon):Xe(a.voidIcon)?a.voidIcon:Ur(a.voidIcon)),$=E(()=>s(f.value,R.value));function O(L){const V=b.value&&_.value>0&&L-1<a.modelValue&&L>a.modelValue,z=a.allowHalf&&p.value&&L-.5<=f.value&&L>f.value;return V||z}function B(L){a.clearable&&L===a.modelValue&&(L=0),o(mt,L),a.modelValue!==L&&o(Dt,L)}function H(L){b.value||(a.allowHalf&&p.value?B(f.value):B(L))}function J(L){if(b.value)return;const V=un(L),z=a.allowHalf?.5:1;let G=f.value;switch(V){case Te.up:case Te.right:G+=z;break;case Te.left:case Te.down:G-=z;break}if(G=wu(G,0,a.max),G!==f.value)return L.stopPropagation(),L.preventDefault(),o(mt,G),o(Dt,G),G}function Y(L,V){b.value||(a.allowHalf&&V?(p.value=V.offsetX*2<=m.value[L-1],f.value=p.value?L-.5:L):f.value=L,h.value=L)}function N(){b.value||(a.allowHalf&&(p.value=a.modelValue!==Math.floor(a.modelValue)),f.value=wu(a.modelValue,0,a.max),h.value=-1)}return be(()=>a.modelValue,L=>{f.value=wu(L,0,a.max),p.value=a.modelValue!==Math.floor(a.modelValue)}),a.modelValue||o(mt,0),t({setCurrentValue:Y,resetCurrentValue:N}),(L,V)=>{var z;return S(),M("div",{id:d(c),class:D([g.value,d(l).is("disabled",d(b))]),role:"slider","aria-label":d(u)?void 0:e.ariaLabel||"rating","aria-labelledby":d(u)?(z=d(r))==null?void 0:z.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":w.value||void 0,"aria-valuemin":"0","aria-valuemax":e.max,tabindex:"0",style:et(C.value),onKeydown:J},[(S(!0),M(He,null,Et(e.max,(G,Q)=>(S(),M("span",{key:Q,class:D(d(l).e("item")),onMousemove:U=>Y(G,U),onMouseleave:N,onClick:U=>H(G)},[W(d(Je),{ref_for:!0,ref_key:"iconRefs",ref:v,class:D([d(l).e("icon"),{hover:h.value===G},d(l).is("active",G<=f.value),d(l).is("focus-visible",G===Math.ceil(f.value||1))])},{default:X(()=>[Ct((S(),ce(kt($.value),null,null,512)),[[jt,!O(G)&&G<=f.value]]),Ct((S(),ce(kt(P.value),null,null,512)),[[jt,!O(G)&&G>f.value]]),Ct((S(),ce(kt(P.value),{class:D([d(l).em("decimal","box")])},null,8,["class"])),[[jt,O(G)]]),Ct(W(d(Je),{style:et(T.value),class:D([d(l).e("icon"),d(l).e("decimal")])},{default:X(()=>[(S(),ce(kt(I.value)))]),_:1},8,["style","class"]),[[jt,O(G)]])]),_:2},1032,["class"])],42,Wce))),128)),e.showText||e.showScore?(S(),M("span",{key:0,class:D(d(l).e("text")),style:et({color:e.textColor})},ge(w.value),7)):ie("v-if",!0)],46,Hce)}}});const Kce=wt(jce),Mu={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},ZA={[Mu.primary]:Rf,[Mu.success]:Yx,[Mu.warning]:Tp,[Mu.error]:Ag,[Mu.info]:Rf},Uce=Me({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}});var qce=K({name:"ElResult",__name:"result",props:Uce,setup(e){const t=e,n=Ee("result"),s=E(()=>{const a=t.icon,o=a&&Mu[a]?Mu[a]:"icon-info",r=ZA[o]||ZA["icon-info"];return{class:o,component:r}});return(a,o)=>(S(),M("div",{class:D(d(n).b())},[A("div",{class:D(d(n).e("icon"))},[ue(a.$slots,"icon",{},()=>[s.value.component?(S(),ce(kt(s.value.component),{key:0,class:D(s.value.class)},null,8,["class"])):ie("v-if",!0)])],2),e.title||a.$slots.title?(S(),M("div",{key:0,class:D(d(n).e("title"))},[ue(a.$slots,"title",{},()=>[A("p",null,ge(e.title),1)])],2)):ie("v-if",!0),e.subTitle||a.$slots["sub-title"]?(S(),M("div",{key:1,class:D(d(n).e("subtitle"))},[ue(a.$slots,"sub-title",{},()=>[A("p",null,ge(e.subTitle),1)])],2)):ie("v-if",!0),a.$slots.extra?(S(),M("div",{key:2,class:D(d(n).e("extra"))},[ue(a.$slots,"extra")],2)):ie("v-if",!0)],2))}});const Gce=wt(qce),Yce=Me({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"]}});var Xce=K({name:"ElRow",__name:"row",props:Yce,setup(e){const t=e,n=Ee("row"),s=E(()=>t.gutter);Nt(xE,{gutter:s});const a=E(()=>{const r={};return t.gutter&&(r.marginRight=r.marginLeft=`-${t.gutter/2}px`),r}),o=E(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(r,i)=>(S(),ce(kt(e.tag),{class:D(o.value),style:et(a.value)},{default:X(()=>[ue(r.$slots,"default")]),_:3},8,["class","style"]))}});const Jce=wt(Xce);var Zce=K({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:Ee("select")}}});function Qce(e,t,n,s,a,o){return S(),M("div",{class:D(e.ns.be("group","title")),style:et({...e.style,lineHeight:`${e.height}px`})},ge(e.item.label),7)}var eue=ps(Zce,[["render",Qce]]);function tue(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const nue=Me({allowCreate:Boolean,autocomplete:{type:re(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:rn,default:Vo},effect:{type:re(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:{type:Boolean,default:void 0},estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:re(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:re([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:re(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:re(Array),required:!0},placeholder:{type:String},teleported:ln.teleported,persistent:{type:Boolean,default:!0},popperClass:ln.popperClass,popperStyle:ln.popperStyle,popperOptions:{type:re(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:hs,props:{type:re(Object),default:()=>Gg},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},placement:{type:re(String),values:si,default:"bottom-start"},fallbackPlacements:{type:re(Array),default:["bottom-start","top-start","right","left"]},tagType:{...rl.type,default:"info"},tagEffect:{...rl.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:ln.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return on(e)||st(e)}},suffixIcon:{type:rn,default:mr},...Su,...ua(["ariaLabel"])}),sue=Me({data:Array,disabled:Boolean,hovering:Boolean,item:{type:re(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),aue={[mt]:e=>!0,[Dt]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},oue={hover:e=>st(e),select:(e,t)=>!0},w6=Symbol("ElSelectV2Injection");var rue=K({props:sue,emits:oue,setup(e,{emit:t}){const n=je(w6),s=Ee("select"),{hoverItem:a,selectOptionClick:o}=tue(e,{emit:t}),{getLabel:r}=zp(n.props),i=n.contentId;return{ns:s,contentId:i,hoverItem:a,selectOptionClick:o,getLabel:r}}});const iue=["id","aria-selected","aria-disabled"];function lue(e,t,n,s,a,o){return S(),M("li",{id:`${e.contentId}-${e.index}`,role:"option","aria-selected":e.selected,"aria-disabled":e.disabled||void 0,style:et(e.style),class:D([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:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onClick:t[1]||(t[1]=ht((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[ue(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[A("span",null,ge(e.getLabel(e.item)),1)])],46,iue)}var cue=ps(rue,[["render",lue]]),QA=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function uue(e,t){return!!(e===t||QA(e)&&QA(t))}function due(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!uue(e[n],t[n]))return!1;return!0}function fue(e,t){t===void 0&&(t=due);var n=null;function s(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];if(n&&n.lastThis===this&&t(a,n.lastArgs))return n.lastResult;var r=e.apply(this,a);return n={lastResult:r,lastArgs:a,lastThis:this},r}return s.clear=function(){n=null},s}const eT=()=>{const t=Tt().proxy.$props;return E(()=>{const n=(s,a,o)=>({});return t.perfMode?pg(n):fue(n)})},_6=50,g1="itemRendered",b1="scroll",qf="forward",y1="backward",Ko="auto",w1="smart",ev="start",ui="center",tv="end",Gf="horizontal",tT="vertical",hue="ltr",Yf="rtl",nv="negative",C6="positive-ascending",S6="positive-descending",pue={[Gf]:"left",[tT]:"top"},vue=20,nT=({atEndEdge:e,atStartEdge:t,layout:n},s)=>{let a,o=0;const r=l=>l<0&&t.value||l>0&&e.value;return{hasReachedEdge:r,onWheel:l=>{Xi(a);let{deltaX:c,deltaY:u}=l;l.shiftKey&&u!==0&&(c=u,u=0);const f=n.value===Gf?c:u;r(f)||(o+=f,!l3()&&f!==0&&l.preventDefault(),a=ti(()=>{s(o),o=0}))}}},x6=pr({type:re([Number,Function]),required:!0}),k6=pr({type:Number}),E6=pr({type:Number,default:2}),mue=pr({type:String,values:["ltr","rtl"],default:"ltr"}),A6=pr({type:Number,default:0}),_1=pr({type:Number,required:!0}),sT=pr({type:String,values:["horizontal","vertical"],default:tT}),aT=Me({className:{type:String,default:""},containerElement:{type:re([String,Object]),default:"div"},data:{type:re(Array),default:()=>$n([])},direction:mue,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},innerProps:{type:re(Object),default:()=>({})},style:{type:re([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),oT=Me({cache:E6,estimatedItemSize:k6,layout:sT,initScrollOffset:A6,total:_1,itemSize:x6,...aT}),T6={type:Number,default:6},rT={type:Number,default:0},iT={type:Number,default:2},Pu=Me({columnCache:E6,columnWidth:x6,estimatedColumnWidth:k6,estimatedRowHeight:k6,initScrollLeft:A6,initScrollTop:A6,itemKey:{type:re(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:E6,rowHeight:x6,totalColumn:_1,totalRow:_1,hScrollbarSize:T6,vScrollbarSize:T6,scrollbarStartGap:rT,scrollbarEndGap:iT,role:String,...aT}),lT=Me({alwaysOn:Boolean,class:String,layout:sT,total:_1,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:T6,startGap:rT,endGap:iT,visible:Boolean}),Ru=(e,t)=>e<t?qf:y1,sv=e=>e===hue||e===Yf||e===Gf,cT=e=>e===Yf;let Xf=null;function C1(e=!1){if(Xf===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const s=document.createElement("div"),a=s.style;return a.width="100px",a.height="100px",t.appendChild(s),document.body.appendChild(t),t.scrollLeft>0?Xf=S6:(t.scrollLeft=1,t.scrollLeft===0?Xf=nv:Xf=C6),document.body.removeChild(t),Xf}return Xf}function gue({move:e,size:t,bar:n},s){const a={},o=`translate${n.axis}(${e}px)`;return a[n.size]=t,a.transform=o,s==="horizontal"?a.height="100%":a.width="100%",a}const M6=K({name:"ElVirtualScrollBar",props:lT,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=E(()=>e.startGap+e.endGap),s=Ee("virtual-scrollbar"),a=Ee("scrollbar"),o=F(),r=F();let i=null,l=null;const c=Gt({isDragging:!1,traveled:0}),u=E(()=>Q9[e.layout]),f=E(()=>e.clientSize-d(n)),h=E(()=>({position:"absolute",width:`${Gf===e.layout?f.value:e.scrollbarSize}px`,height:`${Gf===e.layout?e.scrollbarSize:f.value}px`,[pue[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),p=E(()=>{const k=e.ratio;if(k>=100)return Number.POSITIVE_INFINITY;if(k>=50)return k*f.value/100;const T=f.value/3;return Math.floor(Math.min(Math.max(k*f.value/100,vue),T))}),v=E(()=>{if(!Number.isFinite(p.value))return{display:"none"};const k=`${p.value}px`;return gue({bar:u.value,size:k,move:c.traveled},e.layout)}),m=E(()=>Math.ceil(e.clientSize-p.value-d(n))),g=()=>{window.addEventListener("mousemove",_),window.addEventListener("mouseup",w);const k=d(r);k&&(l=document.onselectstart,document.onselectstart=()=>!1,k.addEventListener("touchmove",_,{passive:!0}),k.addEventListener("touchend",w))},b=()=>{window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",w),document.onselectstart=l,l=null;const k=d(r);k&&(k.removeEventListener("touchmove",_),k.removeEventListener("touchend",w))},C=k=>{k.stopImmediatePropagation(),!(k.ctrlKey||[1,2].includes(k.button))&&(c.isDragging=!0,c[u.value.axis]=k.currentTarget[u.value.offset]-(k[u.value.client]-k.currentTarget.getBoundingClientRect()[u.value.direction]),t("start-move"),g())},w=()=>{c.isDragging=!1,c[u.value.axis]=0,t("stop-move"),b()},_=k=>{const{isDragging:T}=c;if(!T||!r.value||!o.value)return;const R=c[u.value.axis];if(!R)return;Xi(i);const I=(o.value.getBoundingClientRect()[u.value.direction]-k[u.value.client])*-1,P=r.value[u.value.offset]-R,$=I-P;i=ti(()=>{c.traveled=Math.max(0,Math.min($,m.value)),t("scroll",$,m.value)})},x=k=>{const T=Math.abs(k.target.getBoundingClientRect()[u.value.direction]-k[u.value.client]),R=r.value[u.value.offset]/2,I=T-R;c.traveled=Math.max(0,Math.min(I,m.value)),t("scroll",I,m.value)};return be(()=>e.scrollFrom,k=>{c.isDragging||(c.traveled=Math.ceil(k*m.value))}),tn(()=>{b()}),()=>lt("div",{role:"presentation",ref:o,class:[s.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:h.value,onMousedown:ht(x,["stop","prevent"]),onTouchstartPrevent:C},lt("div",{ref:r,class:a.e("thumb"),style:v.value,onMousedown:C},[]))}}),uT=({name:e,getOffset:t,getItemSize:n,getItemOffset:s,getEstimatedTotalSize:a,getStartIndexForOffset:o,getStopIndexForStartIndex:r,initCache:i,clearCache:l,validateProps:c})=>K({name:e??"ElVirtualList",props:oT,emits:[g1,b1],setup(u,{emit:f,expose:h}){c(u);const p=Tt(),v=Ee("vl"),m=F(i(u,p)),g=eT(),b=F(),C=F(),w=F(),_=F({isScrolling:!1,scrollDir:"forward",scrollOffset:st(u.initScrollOffset)?u.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:u.scrollbarAlwaysOn}),x=E(()=>{const{total:U,cache:ee}=u,{isScrolling:se,scrollDir:de,scrollOffset:te}=d(_);if(U===0)return[0,0,0,0];const pe=o(u,te,d(m)),he=r(u,pe,te,d(m)),le=!se||de===y1?Math.max(1,ee):1,Z=!se||de===qf?Math.max(1,ee):1;return[Math.max(0,pe-le),Math.max(0,Math.min(U-1,he+Z)),pe,he]}),k=E(()=>a(u,d(m))),T=E(()=>sv(u.layout)),R=E(()=>[{position:"relative",[`overflow-${T.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:u.direction,height:st(u.height)?`${u.height}px`:u.height,width:st(u.width)?`${u.width}px`:u.width},u.style]),I=E(()=>{const U=d(k),ee=d(T);return{height:ee?"100%":`${U}px`,pointerEvents:d(_).isScrolling?"none":void 0,width:ee?`${U}px`:"100%",margin:0,boxSizing:"border-box"}}),P=E(()=>T.value?u.width:u.height),{onWheel:$}=nT({atStartEdge:E(()=>_.value.scrollOffset<=0),atEndEdge:E(()=>_.value.scrollOffset>=k.value),layout:E(()=>u.layout)},U=>{var ee,se;(se=(ee=w.value).onMouseUp)==null||se.call(ee),N(Math.min(_.value.scrollOffset+U,k.value-P.value))});an(b,"wheel",$,{passive:!1});const O=()=>{const{total:U}=u;if(U>0){const[te,pe,he,le]=d(x);f(g1,te,pe,he,le)}const{scrollDir:ee,scrollOffset:se,updateRequested:de}=d(_);f(b1,ee,se,de)},B=U=>{const{clientHeight:ee,scrollHeight:se,scrollTop:de}=U.currentTarget,te=d(_);if(te.scrollOffset===de)return;const pe=Math.max(0,Math.min(de,se-ee));_.value={...te,isScrolling:!0,scrollDir:Ru(te.scrollOffset,pe),scrollOffset:pe,updateRequested:!1},ze(z)},H=U=>{const{clientWidth:ee,scrollLeft:se,scrollWidth:de}=U.currentTarget,te=d(_);if(te.scrollOffset===se)return;const{direction:pe}=u;let he=se;if(pe===Yf)switch(C1()){case nv:{he=-se;break}case S6:{he=de-ee-se;break}}he=Math.max(0,Math.min(he,de-ee)),_.value={...te,isScrolling:!0,scrollDir:Ru(te.scrollOffset,he),scrollOffset:he,updateRequested:!1},ze(z)},J=U=>{d(T)?H(U):B(U),O()},Y=(U,ee)=>{const se=(k.value-P.value)/ee*U;N(Math.min(k.value-P.value,se))},N=U=>{U=Math.max(U,0),U!==d(_).scrollOffset&&(_.value={...d(_),scrollOffset:U,scrollDir:Ru(d(_).scrollOffset,U),updateRequested:!0},ze(z))},L=(U,ee=Ko)=>{const{scrollOffset:se}=d(_);U=Math.max(0,Math.min(U,u.total-1)),N(t(u,U,ee,se,d(m)))},V=U=>{const{direction:ee,itemSize:se,layout:de}=u,te=g.value(l&&se,l&&de,l&&ee);let pe;if(qt(te,String(U)))pe=te[U];else{const he=s(u,U,d(m)),le=n(u,U,d(m)),Z=d(T),j=ee===Yf,ae=Z?he:0;te[U]=pe={position:"absolute",left:j?void 0:`${ae}px`,right:j?`${ae}px`:void 0,top:Z?0:`${he}px`,height:Z?"100%":`${le}px`,width:Z?`${le}px`:"100%"}}return pe},z=()=>{_.value.isScrolling=!1,ze(()=>{g.value(-1,null,null)})},G=()=>{const U=b.value;U&&(U.scrollTop=0)};Mt(()=>{if(!Yt)return;const{initScrollOffset:U}=u,ee=d(b);st(U)&&ee&&(d(T)?ee.scrollLeft=U:ee.scrollTop=U),O()}),lr(()=>{const{direction:U,layout:ee}=u,{scrollOffset:se,updateRequested:de}=d(_),te=d(b);if(de&&te)if(ee===Gf)if(U===Yf)switch(C1()){case nv:{te.scrollLeft=-se;break}case C6:{te.scrollLeft=se;break}default:{const{clientWidth:pe,scrollWidth:he}=te;te.scrollLeft=he-pe-se;break}}else te.scrollLeft=se;else te.scrollTop=se}),G0(()=>{d(b).scrollTop=d(_).scrollOffset});const Q={ns:v,clientSize:P,estimatedTotalSize:k,windowStyle:R,windowRef:b,innerRef:C,innerStyle:I,itemsToRender:x,scrollbarRef:w,states:_,getItemStyle:V,onScroll:J,onScrollbarScroll:Y,onWheel:$,scrollTo:N,scrollToItem:L,resetScrollTop:G};return h({windowRef:b,innerRef:C,getItemStyleCache:g,scrollTo:N,scrollToItem:L,resetScrollTop:G,states:_}),Q},render(u){var f;const{$slots:h,className:p,clientSize:v,containerElement:m,data:g,getItemStyle:b,innerElement:C,itemsToRender:w,innerStyle:_,layout:x,total:k,onScroll:T,onScrollbarScroll:R,states:I,useIsScrolling:P,windowStyle:$,ns:O}=u,[B,H]=w,J=kt(m),Y=kt(C),N=[];if(k>0)for(let G=B;G<=H;G++)N.push(lt(He,{key:G},(f=h.default)==null?void 0:f.call(h,{data:g,index:G,isScrolling:P?I.isScrolling:void 0,style:b(G)})));const L=[lt(Y,At(u.innerProps,{style:_,ref:"innerRef"}),Xe(Y)?N:{default:()=>N})],V=lt(M6,{ref:"scrollbarRef",clientSize:v,layout:x,onScroll:R,ratio:v*100/this.estimatedTotalSize,scrollFrom:I.scrollOffset/(this.estimatedTotalSize-v),total:k,alwaysOn:I.scrollbarAlwaysOn}),z=lt(J,{class:[O.e("window"),p],style:$,onScroll:T,ref:"windowRef",key:0},Xe(J)?[L]:{default:()=>[L]});return lt("div",{key:0,class:[O.e("wrapper"),I.scrollbarAlwaysOn?"always-on":""]},[z,V])}}),dT=uT({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:s,width:a},o,r,i)=>{const l=sv(s)?a:e,c=Math.max(0,t*n-l),u=Math.min(c,o*n),f=Math.max(0,(o+1)*n-l);switch(r===w1&&(i>=f-l&&i<=u+l?r=Ko:r=ui),r){case ev:return u;case tv:return f;case ui:{const h=Math.round(f+(u-f)/2);return h<Math.ceil(l/2)?0:h>c+Math.floor(l/2)?c:h}case Ko:default:return i>=f&&i<=u?i:i<f?f:u}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:s,width:a},o,r)=>{const i=o*n,l=sv(s)?a:e,c=Math.ceil((l+r-i)/n);return Math.max(0,Math.min(t-1,o+c-1))},initCache(){},clearCache:!0,validateProps(){}}),Jf=(e,t,n)=>{const{itemSize:s}=e,{items:a,lastVisitedIndex:o}=n;if(t>o){let r=0;if(o>=0){const i=a[o];r=i.offset+i.size}for(let i=o+1;i<=t;i++){const l=s(i);a[i]={offset:r,size:l},r+=l}n.lastVisitedIndex=t}return a[t]},bue=(e,t,n)=>{const{items:s,lastVisitedIndex:a}=t;return(a>0?s[a].offset:0)>=n?fT(e,t,0,a,n):yue(e,t,Math.max(0,a),n)},fT=(e,t,n,s,a)=>{for(;n<=s;){const o=n+Math.floor((s-n)/2),r=Jf(e,o,t).offset;if(r===a)return o;r<a?n=o+1:r>a&&(s=o-1)}return Math.max(0,n-1)},yue=(e,t,n,s)=>{const{total:a}=e;let o=1;for(;n<a&&Jf(e,n,t).offset<s;)n+=o,o*=2;return fT(e,t,Math.floor(n/2),Math.min(n,a-1),s)},hT=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:s})=>{let a=0;if(s>=e&&(s=e-1),s>=0){const i=t[s];a=i.offset+i.size}const r=(e-s-1)*n;return a+r},wue=uT({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Jf(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:hT,getOffset:(e,t,n,s,a)=>{const{height:o,layout:r,width:i}=e,l=sv(r)?i:o,c=Jf(e,t,a),u=hT(e,a),f=Math.max(0,Math.min(u-l,c.offset)),h=Math.max(0,c.offset-l+c.size);switch(n===w1&&(s>=h-l&&s<=f+l?n=Ko:n=ui),n){case ev:return f;case tv:return h;case ui:return Math.round(h+(f-h)/2);case Ko:default:return s>=h&&s<=f?s:s<h?h:f}},getStartIndexForOffset:(e,t,n)=>bue(e,n,t),getStopIndexForStartIndex:(e,t,n,s)=>{const{height:a,total:o,layout:r,width:i}=e,l=sv(r)?i:a,c=Jf(e,t,s),u=n+l;let f=c.offset+c.size,h=t;for(;h<o-1&&f<u;)h++,f+=Jf(e,h,s).size;return h},initCache({estimatedItemSize:e=_6},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(s,a=!0)=>{var o,r;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,s-1),(o=t.exposed)==null||o.getItemStyleCache(-1),a&&((r=t.proxy)==null||r.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}});var _ue=K({name:"ElSelectDropdown",props:{loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String},setup(e,{slots:t,expose:n}){const s=je(w6),a=Ee("select"),{getLabel:o,getValue:r,getDisabled:i}=zp(s.props),l=F([]),c=F(),u=E(()=>e.data.length);be(()=>u.value,()=>{var $,O;(O=($=s.tooltipRef.value)==null?void 0:$.updatePopper)==null||O.call($)});const f=E(()=>Wt(s.props.estimatedOptionHeight)),h=E(()=>f.value?{itemSize:s.props.itemHeight}:{estimatedSize:s.props.estimatedOptionHeight,itemSize:$=>l.value[$]}),p=($=[],O)=>{const{props:{valueKey:B}}=s;return bt(O)?$&&$.some(H=>pn(ts(H,B))===ts(O,B)):$.includes(O)},v=($,O)=>{if(bt(O)){const{valueKey:B}=s.props;return ts($,B)===ts(O,B)}else return $===O},m=($,O)=>s.props.multiple?p($,r(O)):v($,r(O)),g=($,O)=>{const{disabled:B,multiple:H,multipleLimit:J}=s.props;return B||!O&&(H?J>0&&$.length>=J:!1)},b=$=>e.hoveringIndex===$;n({listRef:c,isSized:f,isItemDisabled:g,isItemHovering:b,isItemSelected:m,scrollToItem:$=>{const O=c.value;O&&O.scrollToItem($)},resetScrollTop:()=>{const $=c.value;$&&$.resetScrollTop()}});const x=$=>{const{index:O,data:B,style:H}=$,J=d(f),{itemSize:Y,estimatedSize:N}=d(h),{modelValue:L}=s.props,{onSelect:V,onHover:z}=s,G=B[O];if(G.type==="Group")return W(eue,{item:G,style:H,height:J?Y:N},null);const Q=m(L,G),U=g(L,Q),ee=b(O);return W(cue,At($,{selected:Q,disabled:i(G)||U,created:!!G.created,hovering:ee,item:G,onSelect:V,onHover:z}),{default:se=>{var de;return((de=t.default)==null?void 0:de.call(t,se))||W("span",null,[o(G)])}})},{onKeyboardNavigate:k,onKeyboardSelect:T}=s,R=()=>{k("forward")},I=()=>{k("backward")},P=$=>{const O=un($),{tab:B,esc:H,down:J,up:Y,enter:N,numpadEnter:L}=Te;switch([H,J,Y,N,L].includes(O)&&($.preventDefault(),$.stopPropagation()),O){case B:case H:break;case J:R();break;case Y:I();break;case N:case L:T();break}};return()=>{var $,O,B,H;const{data:J,width:Y}=e,{height:N,multiple:L,scrollbarAlwaysOn:V}=s.props,z=E(()=>Cg?!0:V),G=d(f)?dT:wue;return W("div",{class:[a.b("dropdown"),a.is("multiple",L)],style:{width:`${Y}px`}},[($=t.header)==null?void 0:$.call(t),((O=t.loading)==null?void 0:O.call(t))||((B=t.empty)==null?void 0:B.call(t))||W(G,At({ref:c},d(h),{className:a.be("dropdown","list"),scrollbarAlwaysOn:z.value,data:J,height:N,width:Y,total:J.length,innerElement:"ul",innerProps:{id:e.id,role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},onKeydown:P}),{default:Q=>W(x,Q,null)}),(H=t.footer)==null?void 0:H.call(t)])}}});function Cue(e,t){const{aliasProps:n,getLabel:s,getValue:a}=zp(e),o=F(0),r=F(),i=E(()=>e.allowCreate&&e.filterable);be(()=>e.options,p=>{const v=new Set(p.map(m=>s(m)));t.createdOptions=t.createdOptions.filter(m=>!v.has(s(m)))});function l(p){const v=m=>s(m)===p;return e.options&&e.options.some(v)||t.createdOptions.some(v)}function c(p){i.value&&(e.multiple&&p.created?o.value++:r.value=p)}function u(p){if(i.value)if(p&&p.length>0){if(l(p)){t.createdOptions=t.createdOptions.filter(m=>s(m)!==t.previousQuery);return}const v={[n.value.value]:p,[n.value.label]:p,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=o.value?t.createdOptions[o.value]=v:t.createdOptions.push(v)}else if(e.multiple)t.createdOptions.length=o.value;else{const v=r.value;t.createdOptions.length=0,v&&v.created&&t.createdOptions.push(v)}}function f(p){if(!i.value||!p||!p.created||p.created&&e.reserveKeyword&&t.inputValue===s(p))return;const v=t.createdOptions.findIndex(m=>a(m)===a(p));~v&&(t.createdOptions.splice(v,1),o.value--)}function h(){i.value&&(t.createdOptions.length=0,o.value=0)}return{createNewOption:u,removeNewOption:f,selectNewOption:c,clearAllNewOption:h}}const Sue=(e,t)=>{const{t:n}=Ft(),s=Gn(),a=Ee("select"),o=Ee("input"),{form:r,formItem:i}=Ms(),{inputId:l}=ho(e,{formItemContext:i}),{aliasProps:c,getLabel:u,getValue:f,getDisabled:h,getOptions:p}=zp(e),{valueOnClear:v,isEmptyValue:m}=Cp(e),g=Gt({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),b=F(-1),C=F(!1),w=F(),_=F(),x=F(),k=F(),T=F(),R=F(),I=F(),P=F(),$=F(),O=F(),{isComposing:B,handleCompositionStart:H,handleCompositionEnd:J,handleCompositionUpdate:Y}=Bp({afterComposition:me=>xn(me)}),N=Dn(),{wrapperRef:L,isFocused:V,handleBlur:z}=nl(T,{disabled:N,afterFocus(){e.automaticDropdown&&!ee.value&&(ee.value=!0,g.menuVisibleOnFocus=!0)},beforeBlur(me){var De,$e;return((De=x.value)==null?void 0:De.isFocusInsideContent(me))||(($e=k.value)==null?void 0:$e.isFocusInsideContent(me))},afterBlur(){var me;ee.value=!1,g.menuVisibleOnFocus=!1,e.validateEvent&&((me=i==null?void 0:i.validate)==null||me.call(i,"blur").catch(De=>void 0))}}),G=E(()=>Oe("")),Q=E(()=>e.loading?!1:e.options.length>0||g.createdOptions.length>0),U=F([]),ee=F(!1),se=E(()=>{var me;return(me=r==null?void 0:r.statusIcon)!=null?me:!1}),de=E(()=>{const me=U.value.length*e.itemHeight;return me>e.height?e.height:me}),te=E(()=>e.multiple?Ae(e.modelValue)&&e.modelValue.length>0:!m(e.modelValue)),pe=E(()=>e.clearable&&!N.value&&te.value&&(V.value||g.inputHovering)),he=E(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),le=E(()=>he.value&&a.is("reverse",ee.value)),Z=E(()=>(i==null?void 0:i.validateState)||""),j=E(()=>{if(Z.value)return Og[Z.value]}),ae=E(()=>e.remote?e.debounce:0),fe=E(()=>e.remote&&!g.inputValue&&!Q.value),we=E(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&g.inputValue&&Q.value&&U.value.length===0?e.noMatchText||n("el.select.noMatch"):Q.value?null:e.noDataText||n("el.select.noData")),Se=E(()=>e.filterable&&Qe(e.filterMethod)),ke=E(()=>e.filterable&&e.remote&&Qe(e.remoteMethod)),Oe=me=>{const De=new RegExp(T3(me),"i"),$e=at=>Se.value||ke.value?!0:me?De.test(u(at)||""):!0;return e.loading?[]:[...g.createdOptions,...e.options].reduce((at,Bt)=>{const ct=p(Bt);if(Ae(ct)){const Cn=ct.filter($e);Cn.length>0&&at.push({label:u(Bt),type:"Group"},...Cn)}else(e.remote||$e(Bt))&&at.push(Bt);return at},[])},Be=()=>{U.value=Oe(g.inputValue)},Le=E(()=>{const me=new Map;return G.value.forEach((De,$e)=>{me.set(dt(f(De)),{option:De,index:$e})}),me}),Ce=E(()=>{const me=new Map;return U.value.forEach((De,$e)=>{me.set(dt(f(De)),{option:De,index:$e})}),me}),Ie=E(()=>U.value.every(me=>h(me))),Re=ls(),Ke=E(()=>Re.value==="small"?"small":"default"),tt=()=>{var me;if(st(e.fitInputWidth)){b.value=e.fitInputWidth;return}const De=((me=w.value)==null?void 0:me.offsetWidth)||200;!e.fitInputWidth&&Q.value?ze(()=>{b.value=Math.max(De,ut())}):b.value=De},ut=()=>{var me,De;const at=document.createElement("canvas").getContext("2d"),Bt=a.be("dropdown","item"),Cn=(((De=(me=P.value)==null?void 0:me.listRef)==null?void 0:De.innerRef)||document).querySelector(`.${Bt}`);if(Cn===null||at===null)return 0;const No=getComputedStyle(Cn),ro=Number.parseFloat(No.paddingLeft)+Number.parseFloat(No.paddingRight);return at.font=`bold ${No.font.replace(new RegExp(`\\b${No.fontWeight}\\b`),"")}`,U.value.reduce((sf,e3e)=>{const t3e=at.measureText(u(e3e));return Math.max(t3e.width,sf)},0)+ro},Fe=()=>{if(!_.value)return 0;const me=window.getComputedStyle(_.value);return Number.parseFloat(me.gap||"6px")},Ue=E(()=>{const me=Fe(),De=e.filterable?me+Yg:0;return{maxWidth:`${O.value&&e.maxCollapseTags===1?g.selectionWidth-g.collapseItemWidth-me-De:g.selectionWidth-De}px`}}),Ze=E(()=>({maxWidth:`${g.selectionWidth}px`})),Ot=E(()=>Ae(e.modelValue)?e.modelValue.length===0&&!g.inputValue:e.filterable?!g.inputValue:!0),Xt=E(()=>{var me;const De=(me=e.placeholder)!=null?me:n("el.select.placeholder");return e.multiple||!te.value?De:g.selectedLabel}),it=E(()=>{var me,De;return(De=(me=x.value)==null?void 0:me.popperRef)==null?void 0:De.contentRef}),yt=E(()=>{if(e.multiple){const me=e.modelValue.length;if(me>0&&Ce.value.has(e.modelValue[me-1])){const{index:De}=Ce.value.get(e.modelValue[me-1]);return De}}else if(!m(e.modelValue)&&Ce.value.has(e.modelValue)){const{index:me}=Ce.value.get(e.modelValue);return me}return-1}),Lt=E({get(){return ee.value&&(e.loading||!fe.value||e.remote&&!!s.empty)&&(!C.value||!Ia(g.previousQuery))},set(me){ee.value=me}}),xe=E(()=>e.multiple?e.collapseTags?g.cachedOptions.slice(0,e.maxCollapseTags):g.cachedOptions:[]),qe=E(()=>e.multiple?e.collapseTags?g.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:_e,removeNewOption:Ye,selectNewOption:xt,clearAllNewOption:Jt}=Cue(e,g),Sn=me=>{var De;N.value||e.filterable&&ee.value&&me&&!((De=I.value)!=null&&De.contains(me.target))||(g.menuVisibleOnFocus?g.menuVisibleOnFocus=!1:ee.value=!ee.value)},En=()=>{g.inputValue.length>0&&!ee.value&&(ee.value=!0),_e(g.inputValue),ze(()=>{nt(g.inputValue)})},Ve=yp(()=>{En(),C.value=!1},ae),nt=me=>{g.previousQuery===me||B.value||(g.previousQuery=me,e.filterable&&Qe(e.filterMethod)?e.filterMethod(me):e.filterable&&e.remote&&Qe(e.remoteMethod)&&e.remoteMethod(me),e.defaultFirstOption&&(e.filterable||e.remote)&&U.value.length?ze(gt):ze(Ht))},gt=()=>{const me=U.value.filter(at=>!at.disabled&&at.type!=="Group"),De=me.find(at=>at.created),$e=me[0];g.hoveringIndex=rt(U.value,De||$e)},An=me=>{Hn(e.modelValue,me)||t(Dt,me)},Zt=me=>{t(mt,me),An(me),g.previousValue=e.multiple?String(me):me,ze(()=>{if(e.multiple&&Ae(e.modelValue)){const De=g.cachedOptions.slice(),$e=e.modelValue.map(at=>Ne(at,De));Hn(g.cachedOptions,$e)||(g.cachedOptions=$e)}else ot(!0)})},rt=(me=[],De)=>{if(!bt(De))return me.indexOf(De);const $e=e.valueKey;let at=-1;return me.some((Bt,ct)=>ts(Bt,$e)===ts(De,$e)?(at=ct,!0):!1),at},dt=me=>bt(me)?ts(me,e.valueKey):me,Pt=()=>{tt()},Vn=()=>{g.selectionWidth=Number.parseFloat(window.getComputedStyle(_.value).width)},aa=()=>{g.collapseItemWidth=O.value.getBoundingClientRect().width},Lo=()=>{var me,De;(De=(me=x.value)==null?void 0:me.updatePopper)==null||De.call(me)},x0=()=>{var me,De;(De=(me=k.value)==null?void 0:me.updatePopper)==null||De.call(me)},Kl=me=>{const De=f(me);if(e.multiple){let $e=e.modelValue.slice();const at=rt($e,De);at>-1?($e=[...$e.slice(0,at),...$e.slice(at+1)],g.cachedOptions.splice(at,1),Ye(me)):(e.multipleLimit<=0||$e.length<e.multipleLimit)&&($e=[...$e,De],g.cachedOptions.push(me),xt(me)),Zt($e),me.created&&nt(""),e.filterable&&!e.reserveKeyword&&(g.inputValue="")}else g.selectedLabel=u(me),!Hn(e.modelValue,De)&&Zt(De),ee.value=!1,xt(me),me.created||Jt();Wr()},k0=(me,De)=>{let $e=e.modelValue.slice();const at=rt($e,f(De));at>-1&&!N.value&&($e=[...e.modelValue.slice(0,at),...e.modelValue.slice(at+1)],g.cachedOptions.splice(at,1),Zt($e),t("remove-tag",f(De)),Ye(De)),me.stopPropagation(),Wr()},Wr=()=>{var me;(me=T.value)==null||me.focus()},i2=()=>{var me;if(ee.value){ee.value=!1,ze(()=>{var De;return(De=T.value)==null?void 0:De.blur()});return}(me=T.value)==null||me.blur()},l2=()=>{g.inputValue.length>0?g.inputValue="":ee.value=!1},c2=me=>vx(me,De=>!g.cachedOptions.some($e=>f($e)===De&&h($e))),u2=me=>{const De=un(me);if(e.multiple&&De!==Te.delete&&g.inputValue.length===0){me.preventDefault();const $e=e.modelValue.slice(),at=c2($e);if(at<0)return;const Bt=$e[at];$e.splice(at,1);const ct=g.cachedOptions[at];g.cachedOptions.splice(at,1),Ye(ct),Zt($e),t("remove-tag",Bt)}},nf=()=>{let me;Ae(e.modelValue)?me=[]:me=v.value,g.selectedLabel="",ee.value=!1,Zt(me),t("clear"),Jt(),Wr()},Ul=(me,De=void 0)=>{const $e=U.value;if(!["forward","backward"].includes(me)||N.value||$e.length<=0||Ie.value||B.value)return;if(!ee.value)return Sn();Wt(De)&&(De=g.hoveringIndex);let at=-1;me==="forward"?(at=De+1,at>=$e.length&&(at=0)):me==="backward"&&(at=De-1,(at<0||at>=$e.length)&&(at=$e.length-1));const Bt=$e[at];if(h(Bt)||Bt.type==="Group")return Ul(me,at);g.hoveringIndex=at,ve(at)},Pe=()=>{if(ee.value)~g.hoveringIndex&&U.value[g.hoveringIndex]&&Kl(U.value[g.hoveringIndex]);else return Sn()},vt=me=>{g.hoveringIndex=me??-1},Ht=()=>{if(!e.multiple)g.hoveringIndex=U.value.findIndex(me=>dt(f(me))===dt(e.modelValue));else{const me=e.modelValue.length;if(me>0){const De=e.modelValue[me-1];g.hoveringIndex=U.value.findIndex($e=>dt(De)===dt(f($e)))}else g.hoveringIndex=-1}},xn=me=>{if(g.inputValue=me.target.value,e.remote)C.value=!0,Ve();else return En()},Kn=me=>{if(ee.value=!1,V.value){const De=new FocusEvent("blur",me);z(De)}},ye=()=>(g.isBeforeHide=!1,ze(()=>{~yt.value&&ve(yt.value)})),ve=me=>{P.value.scrollToItem(me)},Ne=(me,De)=>{const $e=dt(me);if(Le.value.has($e)){const{option:at}=Le.value.get($e);return at}if(De&&De.length){const at=De.find(Bt=>dt(f(Bt))===$e);if(at)return at}return{[c.value.value]:me,[c.value.label]:me}},ft=me=>{var De,$e;return($e=(De=Le.value.get(f(me)))==null?void 0:De.index)!=null?$e:-1},ot=(me=!1)=>{if(e.multiple)if(e.modelValue.length>0){const De=g.cachedOptions.slice();g.cachedOptions.length=0,g.previousValue=e.modelValue.toString();for(const $e of e.modelValue){const at=Ne($e,De);g.cachedOptions.push(at)}}else g.cachedOptions=[],g.previousValue=void 0;else if(te.value){g.previousValue=e.modelValue;const De=U.value,$e=De.findIndex(at=>dt(f(at))===dt(e.modelValue));~$e?g.selectedLabel=u(De[$e]):(!g.selectedLabel||me)&&(g.selectedLabel=dt(e.modelValue))}else g.selectedLabel="",g.previousValue=void 0;Jt(),tt()};be(()=>e.fitInputWidth,()=>{tt()}),be(ee,me=>{me?(e.persistent||tt(),nt("")):(g.inputValue="",g.previousQuery=null,g.isBeforeHide=!0,g.menuVisibleOnFocus=!1,_e(""))}),be(()=>e.modelValue,(me,De)=>{var $e;(!me||Ae(me)&&me.length===0||e.multiple&&!Hn(me.toString(),g.previousValue)||!e.multiple&&dt(me)!==dt(g.previousValue))&&ot(!0),!Hn(me,De)&&e.validateEvent&&(($e=i==null?void 0:i.validate)==null||$e.call(i,"change").catch(Bt=>void 0))},{deep:!0}),be(()=>e.options,()=>{const me=T.value;(!me||me&&document.activeElement!==me)&&ot()},{deep:!0,flush:"post"}),be(()=>U.value,()=>(tt(),P.value&&ze(P.value.resetScrollTop))),ja(()=>{g.isBeforeHide||Be()}),ja(()=>{const{valueKey:me,options:De}=e,$e=new Map;for(const at of De){const Bt=f(at);let ct=Bt;if(bt(ct)&&(ct=ts(Bt,me)),$e.get(ct))break;$e.set(ct,!0)}}),Mt(()=>{ot()}),Tn(w,Pt),Tn(_,Vn),Tn(L,Lo),Tn($,x0),Tn(O,aa);let pt;return be(()=>Lt.value,me=>{me?pt=Tn(P,Lo).stop:(pt==null||pt(),pt=void 0),t("visible-change",me)}),{inputId:l,collapseTagSize:Ke,currentPlaceholder:Xt,expanded:ee,emptyText:we,popupHeight:de,debounce:ae,allOptions:G,allOptionsValueMap:Le,filteredOptions:U,iconComponent:he,iconReverse:le,tagStyle:Ue,collapseTagStyle:Ze,popperSize:b,dropdownMenuVisible:Lt,hasModelValue:te,shouldShowPlaceholder:Ot,selectDisabled:N,selectSize:Re,needStatusIcon:se,showClearBtn:pe,states:g,isFocused:V,nsSelect:a,nsInput:o,inputRef:T,menuRef:P,tagMenuRef:$,tooltipRef:x,tagTooltipRef:k,selectRef:w,wrapperRef:L,selectionRef:_,prefixRef:R,suffixRef:I,collapseItemRef:O,popperRef:it,validateState:Z,validateIcon:j,showTagList:xe,collapseTagList:qe,debouncedOnInputChange:Ve,deleteTag:k0,getLabel:u,getValue:f,getDisabled:h,getValueKey:dt,getIndex:ft,handleClear:nf,handleClickOutside:Kn,handleDel:u2,handleEsc:l2,focus:Wr,blur:i2,handleMenuEnter:ye,handleResize:Pt,resetSelectionWidth:Vn,updateTooltip:Lo,updateTagTooltip:x0,updateOptions:Be,toggleMenu:Sn,scrollTo:ve,onInput:xn,onKeyboardNavigate:Ul,onKeyboardSelect:Pe,onSelect:Kl,onHover:vt,handleCompositionStart:H,handleCompositionEnd:J,handleCompositionUpdate:Y}};var xue=K({name:"ElSelectV2",components:{ElSelectMenu:_ue,ElTag:il,ElTooltip:Ps,ElIcon:Je},directives:{ClickOutside:fc},props:nue,emits:aue,setup(e,{emit:t}){const n=E(()=>{const{modelValue:l,multiple:c}=e,u=c?[]:void 0;return Ae(l)?c?l:u:c?u:l}),s=Sue(Gt({..._s(e),modelValue:n}),t),{calculatorRef:a,inputStyle:o}=R3(),r=Vs();Nt(w6,{props:Gt({..._s(e),height:s.popupHeight,modelValue:n}),expanded:s.expanded,tooltipRef:s.tooltipRef,contentId:r,onSelect:s.onSelect,onHover:s.onHover,onKeyboardNavigate:s.onKeyboardNavigate,onKeyboardSelect:s.onKeyboardSelect});const i=E(()=>e.multiple?s.states.cachedOptions.map(l=>s.getLabel(l)):s.states.selectedLabel);return{...s,modelValue:n,selectedLabel:i,calculatorRef:a,inputStyle:o,contentId:r,BORDER_HORIZONTAL_WIDTH:Jk}}});const kue=["id","value","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],Eue=["textContent"],Aue={key:1};function Tue(e,t,n,s,a,o){const r=Ge("el-tag"),i=Ge("el-tooltip"),l=Ge("el-icon"),c=Ge("el-select-menu"),u=z4("click-outside");return Ct((S(),M("div",{ref:"selectRef",class:D([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[14]||(t[14]=f=>e.states.inputHovering=!0),onMouseleave:t[15]||(t[15]=f=>e.states.inputHovering=!1)},[W(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:t[13]||(t[13]=f=>e.states.isBeforeHide=!1)},{default:X(()=>{var f,h;return[A("div",{ref:"wrapperRef",class:D([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:t[10]||(t[10]=ht((...p)=>e.toggleMenu&&e.toggleMenu(...p),["prevent"]))},[e.$slots.prefix?(S(),M("div",{key:0,ref:"prefixRef",class:D(e.nsSelect.e("prefix"))},[ue(e.$slots,"prefix")],2)):ie("v-if",!0),A("div",{ref:"selectionRef",class:D([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?ue(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(S(!0),M(He,null,Et(e.showTagList,p=>(S(),M("div",{key:e.getValueKey(e.getValue(p)),class:D(e.nsSelect.e("selected-item"))},[W(r,{closable:!e.selectDisabled&&!e.getDisabled(p),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:et(e.tagStyle),onClose:v=>e.deleteTag(v,p)},{default:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))},[ue(e.$slots,"label",{index:e.getIndex(p),label:e.getLabel(p),value:e.getValue(p)},()=>[We(ge(e.getLabel(p)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?(S(),ce(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,"popper-options":e.popperOptions},{default:X(()=>[A("div",{ref:"collapseItemRef",class:D(e.nsSelect.e("selected-item"))},[W(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:et(e.collapseTagStyle),"disable-transitions":""},{default:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))}," + "+ge(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:X(()=>[A("div",{ref:"tagMenuRef",class:D(e.nsSelect.e("selection"))},[(S(!0),M(He,null,Et(e.collapseTagList,p=>(S(),M("div",{key:e.getValueKey(e.getValue(p)),class:D(e.nsSelect.e("selected-item"))},[W(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:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))},[ue(e.$slots,"label",{index:e.getIndex(p),label:e.getLabel(p),value:e.getValue(p)},()=>[We(ge(e.getLabel(p)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported","popper-options"])):ie("v-if",!0)]):ie("v-if",!0),A("div",{class:D([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled)])},[A("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,style:et(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"none","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:D([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox","aria-controls":e.contentId,"aria-activedescendant":e.states.hoveringIndex>=0?`${e.contentId}-${e.states.hoveringIndex}`:"",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:t[0]||(t[0]=(...p)=>e.onInput&&e.onInput(...p)),onCompositionstart:t[1]||(t[1]=(...p)=>e.handleCompositionStart&&e.handleCompositionStart(...p)),onCompositionupdate:t[2]||(t[2]=(...p)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...p)),onCompositionend:t[3]||(t[3]=(...p)=>e.handleCompositionEnd&&e.handleCompositionEnd(...p)),onKeydown:[t[4]||(t[4]=zn(ht(p=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[5]||(t[5]=zn(ht(p=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[6]||(t[6]=zn(ht((...p)=>e.onKeyboardSelect&&e.onKeyboardSelect(...p),["stop","prevent"]),["enter"])),t[7]||(t[7]=zn(ht((...p)=>e.handleEsc&&e.handleEsc(...p),["stop","prevent"]),["esc"])),t[8]||(t[8]=zn(ht((...p)=>e.handleDel&&e.handleDel(...p),["stop"]),["delete"]))],onClick:t[9]||(t[9]=ht((...p)=>e.toggleMenu&&e.toggleMenu(...p),["stop"]))},null,46,kue),e.filterable?(S(),M("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:D(e.nsSelect.e("input-calculator")),textContent:ge(e.states.inputValue)},null,10,Eue)):ie("v-if",!0)],2),e.shouldShowPlaceholder?(S(),M("div",{key:1,class:D([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?ue(e.$slots,"label",{key:0,index:(h=(f=e.allOptionsValueMap.get(e.modelValue))==null?void 0:f.index)!=null?h:-1,label:e.currentPlaceholder,value:e.modelValue},()=>[A("span",null,ge(e.currentPlaceholder),1)]):(S(),M("span",Aue,ge(e.currentPlaceholder),1))],2)):ie("v-if",!0)],2),A("div",{ref:"suffixRef",class:D(e.nsSelect.e("suffix"))},[e.iconComponent?Ct((S(),ce(l,{key:0,class:D([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:X(()=>[(S(),ce(kt(e.iconComponent)))]),_:1},8,["class"])),[[jt,!e.showClearBtn]]):ie("v-if",!0),e.showClearBtn&&e.clearIcon?(S(),ce(l,{key:1,class:D([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:ht(e.handleClear,["prevent","stop"])},{default:X(()=>[(S(),ce(kt(e.clearIcon)))]),_:1},8,["class","onClick"])):ie("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(S(),ce(l,{key:2,class:D([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:X(()=>[(S(),ce(kt(e.validateIcon)))]),_:1},8,["class"])):ie("v-if",!0)],2)],2)]}),content:X(()=>[W(c,{id:e.contentId,ref:"menuRef",data:e.filteredOptions,width:e.popperSize-e.BORDER_HORIZONTAL_WIDTH,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn,"aria-label":e.ariaLabel},Ta({default:X(f=>[ue(e.$slots,"default",$i(Wi(f)))]),_:2},[e.$slots.header?{name:"header",fn:X(()=>[A("div",{class:D(e.nsSelect.be("dropdown","header")),onClick:t[11]||(t[11]=ht(()=>{},["stop"]))},[ue(e.$slots,"header")],2)]),key:"0"}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:X(()=>[A("div",{class:D(e.nsSelect.be("dropdown","loading"))},[ue(e.$slots,"loading")],2)]),key:"1"}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:X(()=>[A("div",{class:D(e.nsSelect.be("dropdown","empty"))},[ue(e.$slots,"empty",{},()=>[A("span",null,ge(e.emptyText),1)])],2)]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:X(()=>[A("div",{class:D(e.nsSelect.be("dropdown","footer")),onClick:t[12]||(t[12]=ht(()=>{},["stop"]))},[ue(e.$slots,"footer")],2)]),key:"3"}:void 0]),1032,["id","data","width","hovering-index","scrollbar-always-on","aria-label"])]),_:3},8,["visible","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],34)),[[u,e.handleClickOutside,e.popperRef]])}var Mue=ps(xue,[["render",Tue]]);const Pue=wt(Mue),Rue=Me({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:re([Number,Object])}}),Iue=Me({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}});var S1=K({name:"ElSkeletonItem",__name:"skeleton-item",props:Iue,setup(e){const t=Ee("skeleton");return(n,s)=>(S(),M("div",{class:D([d(t).e("item"),d(t).e(e.variant)])},[e.variant==="image"?(S(),ce(d(o9),{key:0})):ie("v-if",!0)],2))}});const Oue=(e,t=0)=>{if(t===0)return e;const n=bt(t)&&!!t.initVal,s=F(n);let a=null;const o=i=>{if(Wt(i)){s.value=e.value;return}a&&clearTimeout(a),a=setTimeout(()=>{s.value=e.value},i)},r=i=>{i==="leading"?st(t)?o(t):o(t.leading):bt(t)?o(t.trailing):s.value=!1};return Mt(()=>r("leading")),be(()=>e.value,i=>{r(i?"leading":"trailing")}),s};var Lue=K({name:"ElSkeleton",__name:"skeleton",props:Rue,setup(e,{expose:t}){const n=e,s=Ee("skeleton"),a=Oue(sn(n,"loading"),n.throttle);return t({uiLoading:a}),(o,r)=>d(a)?(S(),M("div",At({key:0,class:[d(s).b(),d(s).is("animated",e.animated)]},o.$attrs),[(S(!0),M(He,null,Et(e.count,i=>(S(),M(He,{key:i},[d(a)?ue(o.$slots,"template",{key:i},()=>[W(S1,{class:D(d(s).is("first")),variant:"p"},null,8,["class"]),(S(!0),M(He,null,Et(e.rows,l=>(S(),ce(S1,{key:l,class:D([d(s).e("paragraph"),d(s).is("last",l===e.rows&&e.rows>1)]),variant:"p"},null,8,["class"]))),128))]):ie("v-if",!0)],64))),128))],16)):ue(o.$slots,"default",$i(At({key:1},o.$attrs)))}});const Nue=wt(Lue,{SkeletonItem:S1}),$ue=In(S1),pT=Symbol("sliderContextKey"),Due=Me({modelValue:{type:re([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:hs,inputSize:hs,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:re(Function),default:void 0},disabled:{type:Boolean,default:void 0},range:Boolean,vertical:Boolean,height:String,rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:re(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:si,default:"top"},marks:{type:re(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...ua(["ariaLabel"])}),P6=e=>st(e)||Ae(e)&&e.every(st),Fue={[mt]:P6,[is]:P6,[Dt]:P6},Bue=Me({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:si,default:"top"}}),Vue={[mt]:e=>st(e)},zue=(e,t,n)=>{const s=F(),a=F(!1),o=E(()=>t.value instanceof Function),r=E(()=>o.value&&t.value(e.modelValue)||e.modelValue),i=ei(()=>{n.value&&(a.value=!0)},50),l=ei(()=>{n.value&&(a.value=!1)},50);return{tooltip:s,tooltipVisible:a,formatValue:r,displayTooltip:i,hideTooltip:l}},Hue=(e,t,n)=>{const{disabled:s,min:a,max:o,step:r,showTooltip:i,persistent:l,precision:c,sliderSize:u,formatTooltip:f,emitChange:h,resetSize:p,updateDragging:v}=je(pT),{tooltip:m,tooltipVisible:g,formatValue:b,displayTooltip:C,hideTooltip:w}=zue(e,f,i),_=F(),x=E(()=>`${(e.modelValue-a.value)/(o.value-a.value)*100}%`),k=E(()=>e.vertical?{bottom:x.value}:{left:x.value}),T=()=>{t.hovering=!0,C()},R=()=>{t.hovering=!1,t.dragging||w()},I=U=>{s.value||(U.preventDefault(),V(U),window.addEventListener("mousemove",z),window.addEventListener("touchmove",z),window.addEventListener("mouseup",G),window.addEventListener("touchend",G),window.addEventListener("contextmenu",G),_.value.focus())},P=U=>{s.value||(t.newPosition=Number.parseFloat(x.value)+U/(o.value-a.value)*100,Q(t.newPosition),h())},$=()=>{P(-r.value)},O=()=>{P(r.value)},B=()=>{P(-r.value*4)},H=()=>{P(r.value*4)},J=()=>{s.value||(Q(0),h())},Y=()=>{s.value||(Q(100),h())},N=U=>{const ee=un(U);let se=!0;switch(ee){case Te.left:case Te.down:$();break;case Te.right:case Te.up:O();break;case Te.home:J();break;case Te.end:Y();break;case Te.pageDown:B();break;case Te.pageUp:H();break;default:se=!1;break}se&&U.preventDefault()},L=U=>{let ee,se;return U.type.startsWith("touch")?(se=U.touches[0].clientY,ee=U.touches[0].clientX):(se=U.clientY,ee=U.clientX),{clientX:ee,clientY:se}},V=U=>{t.dragging=!0,t.isClick=!0;const{clientX:ee,clientY:se}=L(U);e.vertical?t.startY=se:t.startX=ee,t.startPosition=Number.parseFloat(x.value),t.newPosition=t.startPosition},z=U=>{if(t.dragging){t.isClick=!1,C(),p();let ee;const{clientX:se,clientY:de}=L(U);e.vertical?(t.currentY=de,ee=(t.startY-t.currentY)/u.value*100):(t.currentX=se,ee=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+ee,Q(t.newPosition)}},G=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||w(),t.isClick||Q(t.newPosition),h()},0),window.removeEventListener("mousemove",z),window.removeEventListener("touchmove",z),window.removeEventListener("mouseup",G),window.removeEventListener("touchend",G),window.removeEventListener("contextmenu",G))},Q=async U=>{if(U===null||Number.isNaN(+U))return;U=wu(U,0,100);const ee=Math.floor((o.value-a.value)/r.value),se=ee*r.value/(o.value-a.value)*100,de=se+(100-se)/2;let te;if(U<se){const pe=se/ee,he=Math.round(U/pe);te=a.value+he*r.value}else U<de?te=a.value+ee*r.value:te=o.value;te=Number.parseFloat(te.toFixed(c.value)),te!==e.modelValue&&n(mt,te),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await ze(),t.dragging&&C(),m.value.updatePopper()};return be(()=>t.dragging,U=>{v(U)}),an(_,"touchstart",I,{passive:!1}),{disabled:s,button:_,tooltip:m,tooltipVisible:g,showTooltip:i,persistent:l,wrapperStyle:k,formatValue:b,handleMouseEnter:T,handleMouseLeave:R,onButtonDown:I,onKeyDown:N,setPosition:Q}},Wue=["tabindex"];var vT=K({name:"ElSliderButton",__name:"button",props:Bue,emits:Vue,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("slider"),r=Gt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:s.modelValue}),i=E(()=>f.value?h.value:!1),{disabled:l,button:c,tooltip:u,showTooltip:f,persistent:h,tooltipVisible:p,wrapperStyle:v,formatValue:m,handleMouseEnter:g,handleMouseLeave:b,onButtonDown:C,onKeyDown:w,setPosition:_}=Hue(s,r,a),{hovering:x,dragging:k}=_s(r);return t({onButtonDown:C,onKeyDown:w,setPosition:_,hovering:x,dragging:k}),(T,R)=>(S(),M("div",{ref_key:"button",ref:c,class:D([d(o).e("button-wrapper"),{hover:d(x),dragging:d(k)}]),style:et(d(v)),tabindex:d(l)?void 0:0,onMouseenter:R[0]||(R[0]=(...I)=>d(g)&&d(g)(...I)),onMouseleave:R[1]||(R[1]=(...I)=>d(b)&&d(b)(...I)),onMousedown:R[2]||(R[2]=(...I)=>d(C)&&d(C)(...I)),onFocus:R[3]||(R[3]=(...I)=>d(g)&&d(g)(...I)),onBlur:R[4]||(R[4]=(...I)=>d(b)&&d(b)(...I)),onKeydown:R[5]||(R[5]=(...I)=>d(w)&&d(w)(...I))},[W(d(Ps),{ref_key:"tooltip",ref:u,visible:d(p),placement:T.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":T.tooltipClass,disabled:!d(f),persistent:i.value},{content:X(()=>[A("span",null,ge(d(m)),1)]),default:X(()=>[A("div",{class:D([d(o).e("button"),{hover:d(x),dragging:d(k)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,Wue))}});const jue=Me({mark:{type:re([String,Object]),default:void 0}});var Kue=K({name:"ElSliderMarker",props:jue,setup(e){const t=Ee("slider"),n=E(()=>Xe(e.mark)?e.mark:e.mark.label),s=E(()=>Xe(e.mark)?void 0:e.mark.style);return()=>lt("div",{class:t.e("marks-text"),style:s.value},n.value)}});const Uue=(e,t,n)=>{const{formItem:s}=Ms(),a=bn(),o=F(),r=F(),i={firstButton:o,secondButton:r},l=Dn(),c=E(()=>Math.min(t.firstValue,t.secondValue)),u=E(()=>Math.max(t.firstValue,t.secondValue)),f=E(()=>e.range?`${100*(u.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=E(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),p=E(()=>e.vertical?{height:e.height}:{}),v=E(()=>e.vertical?{height:f.value,bottom:h.value}:{width:f.value,left:h.value}),m=()=>{if(a.value){const $=a.value.getBoundingClientRect();t.sliderSize=$[e.vertical?"height":"width"]}},g=$=>{const O=e.min+$*(e.max-e.min)/100;if(!e.range)return o;let B;return Math.abs(c.value-O)<Math.abs(u.value-O)?B=t.firstValue<t.secondValue?"firstButton":"secondButton":B=t.firstValue>t.secondValue?"firstButton":"secondButton",i[B]},b=$=>{const O=g($);return O.value.setPosition($),O},C=$=>{t.firstValue=$??e.min,_(e.range?[c.value,u.value]:$??e.min)},w=$=>{t.secondValue=$,e.range&&_([c.value,u.value])},_=$=>{n(mt,$),n(is,$)},x=async()=>{await ze(),n(Dt,e.range?[c.value,u.value]:e.modelValue)},k=$=>{var O,B,H,J,Y,N;if(l.value||t.dragging)return;m();let L=0;if(e.vertical){const V=(H=(B=(O=$.touches)==null?void 0:O.item(0))==null?void 0:B.clientY)!=null?H:$.clientY;L=(a.value.getBoundingClientRect().bottom-V)/t.sliderSize*100}else{const V=(N=(Y=(J=$.touches)==null?void 0:J.item(0))==null?void 0:Y.clientX)!=null?N:$.clientX,z=a.value.getBoundingClientRect().left;L=(V-z)/t.sliderSize*100}if(!(L<0||L>100))return b(L)};return{elFormItem:s,slider:a,firstButton:o,secondButton:r,sliderDisabled:l,minValue:c,maxValue:u,runwayStyle:p,barStyle:v,resetSize:m,setPosition:b,emitChange:x,onSliderWrapperPrevent:$=>{var O,B;((O=i.firstButton.value)!=null&&O.dragging||(B=i.secondButton.value)!=null&&B.dragging)&&$.preventDefault()},onSliderClick:$=>{k($)&&x()},onSliderDown:async $=>{const O=k($);O&&(await ze(),O.value.onButtonDown($))},onSliderMarkerDown:$=>{if(l.value||t.dragging)return;b($)&&x()},setFirstValue:C,setSecondValue:w}},que=(e,t,n,s)=>({stops:E(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const r=Math.ceil((e.max-e.min)/e.step),i=100*e.step/(e.max-e.min),l=Array.from({length:r-1}).map((c,u)=>(u+1)*i);return e.range?l.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(s.value-e.min)/(e.max-e.min)):l.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:r=>e.vertical?{bottom:`${r}%`}:{left:`${r}%`}}),Gue=e=>E(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,s)=>n-s).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]})):[]),Yue=(e,t,n,s,a,o)=>{const r=c=>{a(mt,c),a(is,c)},i=()=>e.range?![n.value,s.value].every((c,u)=>c===t.oldValue[u]):e.modelValue!==t.oldValue,l=()=>{var c,u;e.min>e.max&&ns("Slider","min should not be greater than max.");const f=e.modelValue;e.range&&Ae(f)?f[1]<e.min?r([e.min,e.min]):f[0]>e.max?r([e.max,e.max]):f[0]<e.min?r([e.min,f[1]]):f[1]>e.max?r([f[0],e.max]):(t.firstValue=f[0],t.secondValue=f[1],i()&&(e.validateEvent&&((c=o==null?void 0:o.validate)==null||c.call(o,"change").catch(h=>void 0)),t.oldValue=f.slice())):!e.range&&st(f)&&!Number.isNaN(f)&&(f<e.min?r(e.min):f>e.max?r(e.max):(t.firstValue=f,i()&&(e.validateEvent&&((u=o==null?void 0:o.validate)==null||u.call(o,"change").catch(h=>void 0)),t.oldValue=f)))};l(),be(()=>t.dragging,c=>{c||l()}),be(()=>e.modelValue,(c,u)=>{t.dragging||Ae(c)&&Ae(u)&&c.every((f,h)=>f===u[h])&&t.firstValue===c[0]&&t.secondValue===c[1]||l()},{deep:!0}),be(()=>[e.min,e.max],()=>{l()})},Xue=(e,t,n)=>{const s=F();return Mt(async()=>{e.range?(Ae(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]):(!st(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),an(window,"resize",n),await ze(),n()}),{sliderWrapper:s}},Jue=["id","role","aria-label","aria-labelledby"],Zue={key:1};var Que=K({name:"ElSlider",__name:"slider",props:Due,emits:Fue,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("slider"),{t:r}=Ft(),i=Gt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:l,slider:c,firstButton:u,secondButton:f,sliderDisabled:h,minValue:p,maxValue:v,runwayStyle:m,barStyle:g,resetSize:b,emitChange:C,onSliderWrapperPrevent:w,onSliderClick:_,onSliderDown:x,onSliderMarkerDown:k,setFirstValue:T,setSecondValue:R}=Uue(s,i,a),{stops:I,getStopStyle:P}=que(s,i,p,v),{inputId:$,isLabeledByFormItem:O}=ho(s,{formItemContext:l}),B=ls(),H=E(()=>s.inputSize||B.value),J=E(()=>s.ariaLabel||r("el.slider.defaultLabel",{min:s.min,max:s.max})),Y=E(()=>s.range?s.rangeStartLabel||r("el.slider.defaultRangeStartLabel"):J.value),N=E(()=>s.formatValueText?s.formatValueText(ee.value):`${ee.value}`),L=E(()=>s.rangeEndLabel||r("el.slider.defaultRangeEndLabel")),V=E(()=>s.formatValueText?s.formatValueText(se.value):`${se.value}`),z=E(()=>[o.b(),o.m(B.value),o.is("vertical",s.vertical),{[o.m("with-input")]:s.showInput}]),G=Gue(s);Yue(s,i,p,v,a,l);const Q=E(()=>{const pe=[s.min,s.max,s.step].map(he=>{const le=`${he}`.split(".")[1];return le?le.length:0});return Math.max.apply(null,pe)}),{sliderWrapper:U}=Xue(s,i,b),{firstValue:ee,secondValue:se,sliderSize:de}=_s(i),te=pe=>{i.dragging=pe};return an(U,"touchstart",w,{passive:!1}),an(U,"touchmove",w,{passive:!1}),Nt(pT,{..._s(s),sliderSize:de,disabled:h,precision:Q,emitChange:C,resetSize:b,updateDragging:te}),t({onSliderClick:_}),(pe,he)=>{var le,Z;return S(),M("div",{id:pe.range?d($):void 0,ref_key:"sliderWrapper",ref:U,class:D(z.value),role:pe.range?"group":void 0,"aria-label":pe.range&&!d(O)?J.value:void 0,"aria-labelledby":pe.range&&d(O)?(le=d(l))==null?void 0:le.labelId:void 0},[A("div",{ref_key:"slider",ref:c,class:D([d(o).e("runway"),{"show-input":pe.showInput&&!pe.range},d(o).is("disabled",d(h))]),style:et(d(m)),onMousedown:he[0]||(he[0]=(...j)=>d(x)&&d(x)(...j)),onTouchstartPassive:he[1]||(he[1]=(...j)=>d(x)&&d(x)(...j))},[A("div",{class:D(d(o).e("bar")),style:et(d(g))},null,6),W(vT,{id:pe.range?void 0:d($),ref_key:"firstButton",ref:u,"model-value":d(ee),vertical:pe.vertical,"tooltip-class":pe.tooltipClass,placement:pe.placement,role:"slider","aria-label":pe.range||!d(O)?Y.value:void 0,"aria-labelledby":!pe.range&&d(O)?(Z=d(l))==null?void 0:Z.labelId:void 0,"aria-valuemin":pe.min,"aria-valuemax":pe.range?d(se):pe.max,"aria-valuenow":d(ee),"aria-valuetext":N.value,"aria-orientation":pe.vertical?"vertical":"horizontal","aria-disabled":d(h),"onUpdate:modelValue":d(T)},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"]),pe.range?(S(),ce(vT,{key:0,ref_key:"secondButton",ref:f,"model-value":d(se),vertical:pe.vertical,"tooltip-class":pe.tooltipClass,placement:pe.placement,role:"slider","aria-label":L.value,"aria-valuemin":d(ee),"aria-valuemax":pe.max,"aria-valuenow":d(se),"aria-valuetext":V.value,"aria-orientation":pe.vertical?"vertical":"horizontal","aria-disabled":d(h),"onUpdate:modelValue":d(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"])):ie("v-if",!0),pe.showStops?(S(),M("div",Zue,[(S(!0),M(He,null,Et(d(I),(j,ae)=>(S(),M("div",{key:ae,class:D(d(o).e("stop")),style:et(d(P)(j))},null,6))),128))])):ie("v-if",!0),d(G).length>0?(S(),M(He,{key:2},[A("div",null,[(S(!0),M(He,null,Et(d(G),(j,ae)=>(S(),M("div",{key:ae,style:et(d(P)(j.position)),class:D([d(o).e("stop"),d(o).e("marks-stop")])},null,6))),128))]),A("div",{class:D(d(o).e("marks"))},[(S(!0),M(He,null,Et(d(G),(j,ae)=>(S(),ce(d(Kue),{key:ae,mark:j.mark,style:et(d(P)(j.position)),onMousedown:ht(fe=>d(k)(j.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):ie("v-if",!0)],38),pe.showInput&&!pe.range?(S(),ce(d(VA),{key:0,ref:"input","model-value":d(ee),class:D(d(o).e("input")),step:pe.step,disabled:d(h),controls:pe.showInputControls,min:pe.min,max:pe.max,precision:Q.value,size:H.value,"onUpdate:modelValue":d(T),onChange:d(C)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):ie("v-if",!0)],10,Jue)}}});const ede=wt(Que),tde=Me({prefixCls:{type:String}}),mT=K({name:"ElSpaceItem",props:tde,setup(e,{slots:t}){const n=Ee("space"),s=E(()=>`${e.prefixCls||n.b()}__item`);return()=>lt("div",{class:s.value},ue(t,"default"))}}),gT={small:8,default:12,large:16};function nde(e){const t=Ee("space"),n=E(()=>[t.b(),t.m(e.direction),e.class]),s=F(0),a=F(0),o=E(()=>{const i=e.wrap||e.fill?{flexWrap:"wrap"}:{},l={alignItems:e.alignment},c={rowGap:`${a.value}px`,columnGap:`${s.value}px`};return[i,l,c,e.style]}),r=E(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return ja(()=>{const{size:i="small",wrap:l,direction:c,fill:u}=e;if(Ae(i)){const[f=0,h=0]=i;s.value=f,a.value=h}else{let f;st(i)?f=i:f=gT[i||"small"]||gT.small,(l||u)&&c==="horizontal"?s.value=a.value=f:c==="horizontal"?(s.value=f,a.value=0):(a.value=f,s.value=0)}}),{classes:n,containerStyle:o,itemStyle:r}}const sde=Me({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:re([String,Object,Array]),default:""},style:{type:re([String,Array,Object]),default:""},alignment:{type:re(String),default:"center"},prefixCls:{type:String},spacer:{type:re([Object,String,Number,Array]),default:null,validator:e=>vn(e)||st(e)||Xe(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:vr,validator:e=>st(e)||Ae(e)&&e.length===2&&e.every(st)}}),ade=wt(K({name:"ElSpace",props:sde,setup(e,{slots:t}){const{classes:n,containerStyle:s,itemStyle:a}=nde(e);function o(r,i="",l=[]){const{prefixCls:c}=e;return r.forEach((u,f)=>{Jy(u)?Ae(u.children)&&u.children.forEach((h,p)=>{Jy(h)&&Ae(h.children)?o(h.children,`${i+p}-`,l):vn(h)&&(h==null?void 0:h.type)===Jn?l.push(h):l.push(W(mT,{style:a.value,prefixCls:c,key:`nested-${i+p}`},{default:()=>[h]},zo.PROPS|zo.STYLE,["style","prefixCls"]))}):pJ(u)&&l.push(W(mT,{style:a.value,prefixCls:c,key:`LoopKey${i+f}`},{default:()=>[u]},zo.PROPS|zo.STYLE,["style","prefixCls"]))}),l}return()=>{var r;const{spacer:i,direction:l}=e,c=ue(t,"default",{key:0},()=>[]);if(((r=c.children)!=null?r:[]).length===0)return null;if(Ae(c.children)){let u=o(c.children);if(i){const f=u.length-1;u=u.reduce((h,p,v)=>{const m=[...h,p];return v!==f&&m.push(W("span",{style:[a.value,l==="vertical"?"width: 100%":null],key:v},[vn(i)?i:We(i,zo.TEXT)],zo.STYLE)),m},[])}return W("div",{class:n.value,style:s.value},u,zo.STYLE|zo.CLASS)}return c.children}}})),ode=Me({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:re([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:re([String,Object,Array])}});var rde=K({name:"ElStatistic",__name:"statistic",props:ode,setup(e,{expose:t}){const n=e,s=Ee("statistic"),a=E(()=>{const{value:o,formatter:r,precision:i,decimalSeparator:l,groupSeparator:c}=n;if(Qe(r))return r(o);if(!st(o)||Number.isNaN(o))return o;let[u,f=""]=String(o).split(".");return f=f.padEnd(i,"0").slice(0,i>0?i:0),u=u.replace(/\B(?=(\d{3})+(?!\d))/g,c),[u,f].join(f?l:"")});return t({displayValue:a}),(o,r)=>(S(),M("div",{class:D(d(s).b())},[o.$slots.title||e.title?(S(),M("div",{key:0,class:D(d(s).e("head"))},[ue(o.$slots,"title",{},()=>[We(ge(e.title),1)])],2)):ie("v-if",!0),A("div",{class:D(d(s).e("content"))},[o.$slots.prefix||e.prefix?(S(),M("div",{key:0,class:D(d(s).e("prefix"))},[ue(o.$slots,"prefix",{},()=>[A("span",null,ge(e.prefix),1)])],2)):ie("v-if",!0),A("span",{class:D(d(s).e("number")),style:et(e.valueStyle)},ge(a.value),7),o.$slots.suffix||e.suffix?(S(),M("div",{key:1,class:D(d(s).e("suffix"))},[ue(o.$slots,"suffix",{},()=>[A("span",null,ge(e.suffix),1)])],2)):ie("v-if",!0)],2)],2))}});const bT=wt(rde),ide=Me({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:re([Number,Object]),default:0},valueStyle:{type:re([String,Object,Array])}}),lde={finish:()=>!0,[Dt]:e=>st(e)},cde=[["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]],yT=e=>st(e)?new Date(e).getTime():e.valueOf(),wT=(e,t)=>{let n=e;const s=/\[([^\]]*)]/g;return cde.reduce((o,[r,i])=>{const l=new RegExp(`${r}+(?![^\\[\\]]*\\])`,"g");if(l.test(o)){const c=Math.floor(n/i);return n-=c*i,o.replace(l,u=>String(c).padStart(u.length,"0"))}return o},t).replace(s,"$1")};var ude=K({name:"ElCountdown",__name:"countdown",props:ide,emits:lde,setup(e,{expose:t,emit:n}){const s=e,a=n;let o;const r=F(0),i=E(()=>wT(r.value,s.format)),l=f=>wT(f,s.format),c=()=>{o&&(Xi(o),o=void 0)},u=()=>{const f=yT(s.value),h=()=>{let p=f-Date.now();a(Dt,p),p<=0?(p=0,c(),a("finish")):o=ti(h),r.value=p};o=ti(h)};return Mt(()=>{r.value=yT(s.value)-Date.now(),be(()=>[s.value,s.format],()=>{c(),u()},{immediate:!0})}),tn(()=>{c()}),t({displayValue:i}),(f,h)=>(S(),ce(d(bT),{value:r.value,title:e.title,prefix:e.prefix,suffix:e.suffix,"value-style":e.valueStyle,formatter:l},Ta({_:2},[Et(f.$slots,(p,v)=>({name:v,fn:X(()=>[ue(f.$slots,v)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});const dde=wt(ude),fde=Me({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"}}),hde={[Dt]:(e,t)=>[e,t].every(st)},_T="ElSteps";var pde=K({name:"ElSteps",__name:"steps",props:fde,emits:hde,setup(e,{emit:t}){const n=e,s=t,a=Ee("steps"),{children:o,addChild:r,removeChild:i,ChildrenSorter:l}=Jg(Tt(),"ElStep");return be(o,()=>{o.value.forEach((c,u)=>{c.setIndex(u)})}),Nt(_T,{props:n,steps:o,addStep:r,removeStep:i}),be(()=>n.active,(c,u)=>{s(Dt,c,u)}),(c,u)=>(S(),M("div",{class:D([d(a).b(),d(a).m(e.simple?"simple":e.direction)])},[ue(c.$slots,"default"),W(d(l))],2))}});const vde=Me({title:{type:String,default:""},icon:{type:rn},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}});var CT=K({name:"ElStep",__name:"item",props:vde,setup(e){const t=e,n=Ee("step"),s=F(-1),a=F({}),o=F(""),r=je(_T),i=Tt();let l=0,c=0;Mt(()=>{be([()=>r.props.active,()=>r.props.processStatus,()=>r.props.finishStatus],([R],[I])=>{c=I||0,l=R-c,k(R)},{immediate:!0})});const u=E(()=>t.status||o.value),f=E(()=>{const R=r.steps.value[s.value-1];return R?R.internalStatus.value:"wait"}),h=E(()=>r.props.alignCenter),p=E(()=>r.props.direction==="vertical"),v=E(()=>r.props.simple),m=E(()=>r.steps.value.length),g=E(()=>{var R;return((R=r.steps.value[m.value-1])==null?void 0:R.uid)===i.uid}),b=E(()=>v.value?"":r.props.space),C=E(()=>[n.b(),n.is(v.value?"simple":r.props.direction),n.is("flex",g.value&&!b.value&&!h.value),n.is("center",h.value&&!p.value&&!v.value)]),w=E(()=>{const R={flexBasis:st(b.value)?`${b.value}px`:b.value?b.value:`${100/(m.value-(h.value?0:1))}%`};return p.value||g.value&&(R.maxWidth=`${100/m.value}%`),R}),_=R=>{s.value=R},x=R=>{const I=R==="wait",$={transitionDelay:`${Math.abs(l)===1?0:l>0?(s.value+1-c)*150:-(s.value+1-r.props.active)*150}ms`},O=R===r.props.processStatus||I?0:100;$.borderWidth=O&&!v.value?"1px":0,$[r.props.direction==="vertical"?"height":"width"]=`${O}%`,a.value=$},k=R=>{R>s.value?o.value=r.props.finishStatus:R===s.value&&f.value!=="error"?o.value=r.props.processStatus:o.value="wait";const I=r.steps.value[s.value-1];I&&I.calcProgress(o.value)},T={uid:i.uid,getVnode:()=>i.vnode,currentStatus:u,internalStatus:o,setIndex:_,calcProgress:x};return r.addStep(T),tn(()=>{r.removeStep(T)}),(R,I)=>(S(),M("div",{style:et(w.value),class:D(C.value)},[ie(" icon & line "),A("div",{class:D([d(n).e("head"),d(n).is(u.value)])},[v.value?ie("v-if",!0):(S(),M("div",{key:0,class:D(d(n).e("line"))},[A("i",{class:D(d(n).e("line-inner")),style:et(a.value)},null,6)],2)),A("div",{class:D([d(n).e("icon"),d(n).is(e.icon||R.$slots.icon?"icon":"text")])},[ue(R.$slots,"icon",{},()=>[e.icon?(S(),ce(d(Je),{key:0,class:D(d(n).e("icon-inner"))},{default:X(()=>[(S(),ce(kt(e.icon)))]),_:1},8,["class"])):u.value==="success"?(S(),ce(d(Je),{key:1,class:D([d(n).e("icon-inner"),d(n).is("status")])},{default:X(()=>[W(d(Pf))]),_:1},8,["class"])):u.value==="error"?(S(),ce(d(Je),{key:2,class:D([d(n).e("icon-inner"),d(n).is("status")])},{default:X(()=>[W(d(qa))]),_:1},8,["class"])):v.value?ie("v-if",!0):(S(),M("div",{key:3,class:D(d(n).e("icon-inner"))},ge(s.value+1),3))])],2)],2),ie(" title & description "),A("div",{class:D(d(n).e("main"))},[A("div",{class:D([d(n).e("title"),d(n).is(u.value)])},[ue(R.$slots,"title",{},()=>[We(ge(e.title),1)])],2),v.value?(S(),M("div",{key:0,class:D(d(n).e("arrow"))},null,2)):(S(),M("div",{key:1,class:D([d(n).e("description"),d(n).is(u.value)])},[ue(R.$slots,"description",{},()=>[We(ge(e.description),1)])],2))],2)],6))}});const mde=wt(pde,{Step:CT}),gde=In(CT),ST=e=>["",...vr].includes(e),bde=Me({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:ST},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:rn},activeActionIcon:{type:rn},activeIcon:{type:rn},inactiveIcon:{type:rn},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:re(Function)},id:String,tabindex:{type:[String,Number]},...ua(["ariaLabel"])}),yde={[mt]:e=>on(e)||Xe(e)||st(e),[Dt]:e=>on(e)||Xe(e)||st(e),[is]:e=>on(e)||Xe(e)||st(e)},wde=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],_de=["aria-hidden"],Cde={key:1},Sde={key:1},xde=["aria-hidden"],xT="ElSwitch";var kde=K({name:xT,__name:"switch",props:bde,emits:yde,setup(e,{expose:t,emit:n}){const s=e,a=n,{formItem:o}=Ms(),r=ls(),i=Ee("switch"),{inputId:l}=ho(s,{formItemContext:o}),c=Dn(E(()=>{if(s.loading)return!0})),u=F(s.modelValue!==!1),f=bn(),h=E(()=>[i.b(),i.m(r.value),i.is("disabled",c.value),i.is("checked",b.value)]),p=E(()=>[i.e("label"),i.em("label","left"),i.is("active",!b.value)]),v=E(()=>[i.e("label"),i.em("label","right"),i.is("active",b.value)]),m=E(()=>({width:Nn(s.width)}));be(()=>s.modelValue,()=>{u.value=!0});const g=E(()=>u.value?s.modelValue:!1),b=E(()=>g.value===s.activeValue);[s.activeValue,s.inactiveValue].includes(g.value)||(a(mt,s.inactiveValue),a(Dt,s.inactiveValue),a(is,s.inactiveValue)),be(b,x=>{var k;f.value.checked=x,s.validateEvent&&((k=o==null?void 0:o.validate)==null||k.call(o,"change").catch(T=>void 0))});const C=()=>{const x=b.value?s.inactiveValue:s.activeValue;a(mt,x),a(Dt,x),a(is,x),ze(()=>{f.value.checked=b.value})},w=()=>{if(c.value)return;const{beforeChange:x}=s;if(!x){C();return}const k=x();[au(k),on(k)].includes(!0)||ns(xT,"beforeChange must return type `Promise<boolean>` or `boolean`"),au(k)?k.then(R=>{R&&C()}).catch(R=>{}):k&&C()},_=()=>{var x,k;(k=(x=f.value)==null?void 0:x.focus)==null||k.call(x)};return Mt(()=>{f.value.checked=b.value}),t({focus:_,checked:b}),(x,k)=>(S(),M("div",{class:D(h.value),onClick:ht(w,["prevent"])},[A("input",{id:d(l),ref_key:"input",ref:f,class:D(d(i).e("input")),type:"checkbox",role:"switch","aria-checked":b.value,"aria-disabled":d(c),"aria-label":e.ariaLabel,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:d(c),tabindex:e.tabindex,onChange:C,onKeydown:zn(w,["enter"])},null,42,wde),!e.inlinePrompt&&(e.inactiveIcon||e.inactiveText||x.$slots.inactive)?(S(),M("span",{key:0,class:D(p.value)},[ue(x.$slots,"inactive",{},()=>[e.inactiveIcon?(S(),ce(d(Je),{key:0},{default:X(()=>[(S(),ce(kt(e.inactiveIcon)))]),_:1})):ie("v-if",!0),!e.inactiveIcon&&e.inactiveText?(S(),M("span",{key:1,"aria-hidden":b.value},ge(e.inactiveText),9,_de)):ie("v-if",!0)])],2)):ie("v-if",!0),A("span",{class:D(d(i).e("core")),style:et(m.value)},[e.inlinePrompt?(S(),M("div",{key:0,class:D(d(i).e("inner"))},[b.value?(S(),M("div",{key:1,class:D(d(i).e("inner-wrapper"))},[ue(x.$slots,"active",{},()=>[e.activeIcon?(S(),ce(d(Je),{key:0},{default:X(()=>[(S(),ce(kt(e.activeIcon)))]),_:1})):ie("v-if",!0),!e.activeIcon&&e.activeText?(S(),M("span",Sde,ge(e.activeText),1)):ie("v-if",!0)])],2)):(S(),M("div",{key:0,class:D(d(i).e("inner-wrapper"))},[ue(x.$slots,"inactive",{},()=>[e.inactiveIcon?(S(),ce(d(Je),{key:0},{default:X(()=>[(S(),ce(kt(e.inactiveIcon)))]),_:1})):ie("v-if",!0),!e.inactiveIcon&&e.inactiveText?(S(),M("span",Cde,ge(e.inactiveText),1)):ie("v-if",!0)])],2))],2)):ie("v-if",!0),A("div",{class:D(d(i).e("action"))},[e.loading?(S(),ce(d(Je),{key:0,class:D(d(i).is("loading"))},{default:X(()=>[W(d(Bs))]),_:1},8,["class"])):b.value?ue(x.$slots,"active-action",{key:1},()=>[e.activeActionIcon?(S(),ce(d(Je),{key:0},{default:X(()=>[(S(),ce(kt(e.activeActionIcon)))]),_:1})):ie("v-if",!0)]):b.value?ie("v-if",!0):ue(x.$slots,"inactive-action",{key:2},()=>[e.inactiveActionIcon?(S(),ce(d(Je),{key:0},{default:X(()=>[(S(),ce(kt(e.inactiveActionIcon)))]),_:1})):ie("v-if",!0)])],2)],6),!e.inlinePrompt&&(e.activeIcon||e.activeText||x.$slots.active)?(S(),M("span",{key:1,class:D(v.value)},[ue(x.$slots,"active",{},()=>[e.activeIcon?(S(),ce(d(Je),{key:0},{default:X(()=>[(S(),ce(kt(e.activeIcon)))]),_:1})):ie("v-if",!0),!e.activeIcon&&e.activeText?(S(),M("span",{key:1,"aria-hidden":!b.value},ge(e.activeText),9,xde)):ie("v-if",!0)])],2)):ie("v-if",!0)],2))}});const Ede=wt(kde),R6=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Ade=function(e,t,n,s,a){if(!t&&!s&&(!a||Ae(a)&&!a.length))return e;Xe(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const o=s?null:function(i,l){return a?mx(Ts(a),c=>Xe(c)?ts(i,c):c(i,l,e)):(t!=="$key"&&bt(i)&&"$value"in i&&(i=i.$value),[bt(i)?t?ts(i,t):null:i])},r=function(i,l){var c,u,f,h,p,v;if(s)return s(i.value,l.value);for(let m=0,g=(u=(c=i.key)==null?void 0:c.length)!=null?u:0;m<g;m++){if(((f=i.key)==null?void 0:f[m])<((h=l.key)==null?void 0:h[m]))return-1;if(((p=i.key)==null?void 0:p[m])>((v=l.key)==null?void 0:v[m]))return 1}return 0};return e.map((i,l)=>({value:i,index:l,key:o?o(i,l):null})).sort((i,l)=>{let c=r(i,l);return c||(c=i.index-l.index),c*+n}).map(i=>i.value)},kT=function(e,t){let n=null;return e.columns.forEach(s=>{s.id===t&&(n=s)}),n},Tde=function(e,t){let n=null;for(let s=0;s<e.columns.length;s++){const a=e.columns[s];if(a.columnKey===t){n=a;break}}return n||ns("ElTable",`No column matching with column-key: ${t}`),n},ET=function(e,t,n){const s=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return s?kT(e,s[0]):null},Xs=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(Xe(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let s=e;for(const a of n)s=s[a];return`${s}`}else if(Qe(t))return t.call(null,e);return""},Zf=function(e,t,n=!1,s="children"){const a=e||[],o={};return a.forEach((r,i)=>{if(o[Xs(r,t)]={row:r,index:i},n){const l=r[s];Ae(l)&&Object.assign(o,Zf(l,t,!0,s))}}),o};function Mde(e,t){const n={};let s;for(s in e)n[s]=e[s];for(s in t)if(qt(t,s)){const a=t[s];Wt(a)||(n[s]=a)}return n}function I6(e){return e===""||Wt(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function AT(e){return e===""||Wt(e)||(e=I6(e),Number.isNaN(e)&&(e=80)),e}function Pde(e){return st(e)?e:Xe(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function Rde(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...s)=>t(n(...s)))}function x1(e,t,n,s,a,o,r){let i=o??0,l=!1;const u=(()=>{if(!r)return e.indexOf(t);const m=Xs(t,r);return e.findIndex(g=>Xs(g,r)===m)})(),f=u!==-1,h=a==null?void 0:a.call(null,t,i),p=m=>{m==="add"?e.push(t):e.splice(u,1),l=!0},v=m=>{let g=0;const b=(s==null?void 0:s.children)&&m[s.children];return b&&Ae(b)&&(g+=b.length,b.forEach(C=>{g+=v(C)})),g};return(!a||h)&&(on(n)?n&&!f?p("add"):!n&&f&&p("remove"):p(f?"remove":"add")),!(s!=null&&s.checkStrictly)&&(s!=null&&s.children)&&Ae(t[s.children])&&t[s.children].forEach(m=>{const g=x1(e,m,n??!f,s,a,i+1,r);i+=v(m)+1,g&&(l=g)}),l}function Ide(e,t,n="children",s="hasChildren",a=!1){const o=i=>!(Ae(i)&&i.length);function r(i,l,c){t(i,l,c),l.forEach(u=>{if(u[s]&&a){t(u,null,c+1);return}const f=u[n];o(f)||r(u,f,c+1)})}e.forEach(i=>{if(i[s]&&a){t(i,null,0);return}const l=i[n];o(l)||r(i,l,0)})}const Ode=(e,t,n,s)=>{const a={strategy:"fixed",...e.popperOptions},o=Qe(s==null?void 0:s.tooltipFormatter)?s.tooltipFormatter({row:n,column:s,cellValue:Af(n,s.property).value}):void 0;return vn(o)?{slotContent:o,content:null,...e,popperOptions:a}:{slotContent:null,content:o??t,...e,popperOptions:a}};let pa=null;function Lde(e,t,n,s,a,o){var r;const i=Ode(e,t,n,s),l={...i,slotContent:void 0};if((pa==null?void 0:pa.trigger)===a){const v=(r=pa.vm)==null?void 0:r.component;gx(v==null?void 0:v.props,l),v&&i.slotContent&&(v.slots.content=()=>[i.slotContent]);return}pa==null||pa();const c=o==null?void 0:o.refs.tableWrapper,u=c==null?void 0:c.dataset.prefix,f=W(Ps,{virtualTriggering:!0,virtualRef:a,appendTo:c,placement:"top",transition:"none",offset:0,hideAfter:0,...l},i.slotContent?{content:()=>i.slotContent}:void 0);f.appContext={...o.appContext,...o};const h=document.createElement("div");nc(f,h),f.component.exposed.onOpen();const p=c==null?void 0:c.querySelector(`.${u}-scrollbar__wrap`);pa=()=>{var v,m;(m=(v=f.component)==null?void 0:v.exposed)!=null&&m.onClose&&f.component.exposed.onClose(),nc(null,h);const g=pa;p==null||p.removeEventListener("scroll",g),g.trigger=void 0,g.vm=void 0,pa=null},pa.trigger=a??void 0,pa.vm=f,p==null||p.addEventListener("scroll",pa)}function TT(e){return e.children?mx(e.children,TT):[e]}function MT(e,t){return e+t.colSpan}const PT=(e,t,n,s)=>{let a=0,o=e;const r=n.states.columns.value;if(s){const l=TT(s[e]);a=r.slice(0,r.indexOf(l[0])).reduce(MT,0),o=a+l.reduce(MT,0)-1}else a=e;let i;switch(t){case"left":o<n.states.fixedLeafColumnsLength.value&&(i="left");break;case"right":a>=r.length-n.states.rightFixedLeafColumnsLength.value&&(i="right");break;default:o<n.states.fixedLeafColumnsLength.value?i="left":a>=r.length-n.states.rightFixedLeafColumnsLength.value&&(i="right")}return i?{direction:i,start:a,after:o}:{}},O6=(e,t,n,s,a,o=0)=>{const r=[],{direction:i,start:l,after:c}=PT(t,n,s,a);if(i){const u=i==="left";r.push(`${e}-fixed-column--${i}`),u&&c+o===s.states.fixedLeafColumnsLength.value-1?r.push("is-last-column"):!u&&l-o===s.states.columns.value.length-s.states.rightFixedLeafColumnsLength.value&&r.push("is-first-column")}return r};function RT(e,t){return e+(_g(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const L6=(e,t,n,s)=>{const{direction:a,start:o=0,after:r=0}=PT(e,t,n,s);if(!a)return;const i={},l=a==="left",c=n.states.columns.value;return l?i.left=c.slice(0,o).reduce(RT,0):i.right=c.slice(r+1).reverse().reduce(RT,0),i},Qf=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function IT(e){return e.some(t=>vn(t)?!(t.type===Jn||t.type===He&&!IT(t.children)):!0)?e:null}function Nde(e){const t=Tt(),n=F(!1),s=F([]),a=(c,u)=>{var f;const h=t.store.states.rowExpandable.value;return(f=h==null?void 0:h(c,u))!=null?f:!0};return{updateExpandRows:()=>{const c=e.data.value||[],u=e.rowKey.value;if(n.value)s.value=t.store.states.rowExpandable.value?c.filter(a):c.slice();else if(u){const f=Zf(s.value,u);s.value=c.filter((h,p)=>{const v=Xs(h,u);return!!f[v]&&a(h,p)})}else s.value=[]},toggleRowExpansion:(c,u)=>{const h=(e.data.value||[]).indexOf(c);if(h>-1&&!a(c,h))return;x1(s.value,c,u,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",c,s.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const u=e.data.value||[],f=e.rowKey.value,h=Zf(u,f);s.value=c.reduce((p,v)=>{const m=h[v];return m&&a(m.row,m.index)&&p.push(m.row),p},[])},isRowExpanded:c=>{const u=e.rowKey.value;return u?!!Zf(s.value,u)[Xs(c,u)]:s.value.includes(c)},states:{expandRows:s,defaultExpandAll:n}}}function $de(e){const t=Tt(),n=F(null),s=F(null),a=c=>{t.store.assertRowKey(),n.value=c,r(c)},o=()=>{n.value=null},r=c=>{var u;const{data:f,rowKey:h}=e,p=s.value;let v=null;h.value&&(v=(u=(d(f)||[]).find(m=>Xs(m,h.value)===c))!=null?u:null),s.value=v??null,t.emit("current-change",s.value,p)};return{setCurrentRowKey:a,restoreCurrentRowKey:o,setCurrentRowByKey:r,updateCurrentRow:c=>{const u=s.value;if(c&&c!==u){s.value=c,t.emit("current-change",s.value,u);return}!c&&u&&(s.value=null,t.emit("current-change",null,u))},updateCurrentRowData:()=>{const c=e.rowKey.value,u=e.data.value||[],f=s.value;if(f&&!u.includes(f))if(c){const h=Xs(f,c);r(h)}else s.value=null,t.emit("current-change",null,f);else n.value&&(r(n.value),o())},states:{_currentRowKey:n,currentRow:s}}}function Dde(e){const t=F([]),n=F({}),s=F(16),a=F(!1),o=F({}),r=F("hasChildren"),i=F("children"),l=F(!1),c=Tt(),u=E(()=>{if(!e.rowKey.value)return{};const _=e.data.value||[];return h(_)}),f=E(()=>{const _=e.rowKey.value,x=Object.keys(o.value),k={};return x.length&&x.forEach(T=>{if(o.value[T].length){const R={children:[]};o.value[T].forEach(I=>{const P=Xs(I,_);R.children.push(P),I[r.value]&&!k[P]&&(k[P]={children:[]})}),k[T]=R}}),k}),h=_=>{const x=e.rowKey.value,k={};return Ide(_,(T,R,I)=>{const P=Xs(T,x);Ae(R)?k[P]={children:R.map($=>Xs($,x)),level:I}:a.value&&(k[P]={children:[],lazy:!0,level:I})},i.value,r.value,a.value),k},p=(_=!1,x)=>{var k,T;x||(x=(k=c.store)==null?void 0:k.states.defaultExpandAll.value);const R=u.value,I=f.value,P=Object.keys(R),$={};if(P.length){const O=d(n),B=[],H=(Y,N)=>{if(_)return t.value?x||t.value.includes(N):!!(x||Y!=null&&Y.expanded);{const L=x||t.value&&t.value.includes(N);return!!(Y!=null&&Y.expanded||L)}};P.forEach(Y=>{const N=O[Y],L={...R[Y]};if(L.expanded=H(N,Y),L.lazy){const{loaded:V=!1,loading:z=!1}=N||{};L.loaded=!!V,L.loading=!!z,B.push(Y)}$[Y]=L});const J=Object.keys(I);a.value&&J.length&&B.length&&J.forEach(Y=>{var N;const L=O[Y],V=I[Y].children;if(B.includes(Y)){if(((N=$[Y].children)==null?void 0:N.length)!==0)throw new Error("[ElTable]children must be an empty array.");$[Y].children=V}else{const{loaded:z=!1,loading:G=!1}=L||{};$[Y]={lazy:!0,loaded:!!z,loading:!!G,expanded:H(L,Y),children:V,level:void 0}}})}n.value=$,(T=c.store)==null||T.updateTableScrollY()};be(()=>t.value,()=>{p(!0)}),be(()=>u.value,()=>{p()}),be(()=>f.value,()=>{p()});const v=_=>{t.value=_,p()},m=_=>a.value&&_&&"loaded"in _&&!_.loaded,g=(_,x)=>{c.store.assertRowKey();const k=e.rowKey.value,T=Xs(_,k),R=T&&n.value[T];if(T&&R&&"expanded"in R){const I=R.expanded;x=Wt(x)?!R.expanded:x,n.value[T].expanded=x,I!==x&&c.emit("expand-change",_,x),x&&m(R)&&C(_,T,R),c.store.updateTableScrollY()}},b=_=>{c.store.assertRowKey();const x=e.rowKey.value,k=Xs(_,x),T=n.value[k];m(T)?C(_,k,T):g(_,void 0)},C=(_,x,k)=>{const{load:T}=c.props;T&&!n.value[x].loaded&&(n.value[x].loading=!0,T(_,k,R=>{if(!Ae(R))throw new TypeError("[ElTable] data must be an array");n.value[x].loading=!1,n.value[x].loaded=!0,n.value[x].expanded=!0,R.length&&(o.value[x]=R),c.emit("expand-change",_,!0)}))};return{loadData:C,loadOrToggle:b,toggleTreeExpansion:g,updateTreeExpandKeys:v,updateTreeData:p,updateKeyChildren:(_,x)=>{const{lazy:k,rowKey:T}=c.props;if(k){if(!T)throw new Error("[Table] rowKey is required in updateKeyChild");o.value[_]&&(o.value[_]=x)}},normalize:h,states:{expandRowKeys:t,treeData:n,indent:s,lazy:a,lazyTreeNodeMap:o,lazyColumnIdentifier:r,childrenColumnName:i,checkStrictly:l}}}const Fde=(e,t)=>{const n=t.sortingColumn;return!n||Xe(n.sortable)?e:Ade(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},k1=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,k1(n.children)):t.push(n)}),t};function Bde(){var e;const t=Tt(),{size:n}=_s((e=t.proxy)==null?void 0:e.$props),s=F(null),a=F([]),o=F([]),r=F(!1),i=F([]),l=F([]),c=F([]),u=F([]),f=F([]),h=F([]),p=F([]),v=F([]),m=[],g=F(0),b=F(0),C=F(0),w=F(!1),_=F([]),x=F(!1),k=F(!1),T=F(null),R=F(null),I=F({}),P=F(null),$=F(null),O=F(null),B=F(null),H=F(null),J=E(()=>s.value?Zf(_.value,s.value):void 0);be(a,()=>{var it;t.state&&(V(!1),t.props.tableLayout==="auto"&&((it=t.refs.tableHeaderRef)==null||it.updateFixedColumnStyle()))},{deep:!0});const Y=()=>{if(!s.value)throw new Error("[ElTable] prop row-key is required")},N=it=>{var yt;(yt=it.children)==null||yt.forEach(Lt=>{Lt.fixed=it.fixed,N(Lt)})},L=()=>{i.value.forEach(Ye=>{N(Ye)}),u.value=i.value.filter(Ye=>[!0,"left"].includes(Ye.fixed));const it=i.value.find(Ye=>Ye.type==="selection");let yt;it&&it.fixed!=="right"&&!u.value.includes(it)&&i.value.indexOf(it)===0&&u.value.length&&(u.value.unshift(it),yt=!0),f.value=i.value.filter(Ye=>Ye.fixed==="right");const Lt=i.value.filter(Ye=>(yt?Ye.type!=="selection":!0)&&!Ye.fixed);l.value=Array.from(u.value).concat(Lt).concat(f.value);const xe=k1(Lt),qe=k1(u.value),_e=k1(f.value);g.value=xe.length,b.value=qe.length,C.value=_e.length,c.value=Array.from(qe).concat(xe).concat(_e),r.value=u.value.length>0||f.value.length>0},V=(it,yt=!1)=>{it&&L(),yt?t.state.doLayout():t.state.debouncedUpdateLayout()},z=it=>J.value?!!J.value[Xs(it,s.value)]:_.value.includes(it),G=()=>{w.value=!1;const it=_.value;_.value=[],it.length&&t.emit("selection-change",[])},Q=()=>{var it,yt;let Lt;if(s.value){Lt=[];const xe=(yt=(it=t==null?void 0:t.store)==null?void 0:it.states)==null?void 0:yt.childrenColumnName.value,qe=Zf(a.value,s.value,!0,xe);for(const _e in J.value)qt(J.value,_e)&&!qe[_e]&&Lt.push(J.value[_e].row)}else Lt=_.value.filter(xe=>!a.value.includes(xe));if(Lt.length){const xe=_.value.filter(qe=>!Lt.includes(qe));_.value=xe,t.emit("selection-change",xe.slice())}},U=()=>(_.value||[]).slice(),ee=(it,yt,Lt=!0,xe=!1)=>{var qe,_e,Ye,xt;const Jt={children:(_e=(qe=t==null?void 0:t.store)==null?void 0:qe.states)==null?void 0:_e.childrenColumnName.value,checkStrictly:(xt=(Ye=t==null?void 0:t.store)==null?void 0:Ye.states)==null?void 0:xt.checkStrictly.value};if(x1(_.value,it,yt,Jt,xe?void 0:T.value,a.value.indexOf(it),s.value)){const En=(_.value||[]).slice();Lt&&t.emit("select",En,it),t.emit("selection-change",En)}},se=()=>{var it,yt;const Lt=k.value?!w.value:!(w.value||_.value.length);w.value=Lt;let xe=!1,qe=0;const _e=(yt=(it=t==null?void 0:t.store)==null?void 0:it.states)==null?void 0:yt.rowKey.value,{childrenColumnName:Ye}=t.store.states,xt={children:Ye.value,checkStrictly:!1};a.value.forEach((Jt,Sn)=>{const En=Sn+qe;x1(_.value,Jt,Lt,xt,T.value,En,_e)&&(xe=!0),qe+=te(Xs(Jt,_e))}),xe&&t.emit("selection-change",_.value?_.value.slice():[]),t.emit("select-all",(_.value||[]).slice())},de=()=>{var it;if(((it=a.value)==null?void 0:it.length)===0){w.value=!1;return}const{childrenColumnName:yt}=t.store.states;let Lt=0,xe=0;const qe=Ye=>{var xt;for(const Jt of Ye){const Sn=T.value&&T.value.call(null,Jt,Lt);if(z(Jt))xe++;else if(!T.value||Sn)return!1;if(Lt++,(xt=Jt[yt.value])!=null&&xt.length&&!qe(Jt[yt.value]))return!1}return!0},_e=qe(a.value||[]);w.value=xe===0?!1:_e},te=it=>{var yt;if(!t||!t.store)return 0;const{treeData:Lt}=t.store.states;let xe=0;const qe=(yt=Lt.value[it])==null?void 0:yt.children;return qe&&(xe+=qe.length,qe.forEach(_e=>{xe+=te(_e)})),xe},pe=(it,yt)=>{const Lt={};return Ts(it).forEach(xe=>{I.value[xe.id]=yt,Lt[xe.columnKey||xe.id]=yt}),Lt},he=(it,yt,Lt)=>{$.value&&$.value!==it&&($.value.order=null),$.value=it,O.value=yt,B.value=Lt},le=()=>{let it=d(o);Object.keys(I.value).forEach(yt=>{const Lt=I.value[yt];if(!Lt||Lt.length===0)return;const xe=kT({columns:c.value},yt);xe&&xe.filterMethod&&(it=it.filter(qe=>Lt.some(_e=>xe.filterMethod.call(null,_e,qe,xe))))}),P.value=it},Z=()=>{var it;a.value=Fde((it=P.value)!=null?it:[],{sortingColumn:$.value,sortProp:O.value,sortOrder:B.value})},j=(it=void 0)=>{it!=null&&it.filter||le(),Z()},ae=it=>{const{tableHeaderRef:yt}=t.refs;if(!yt)return;const Lt=Object.assign({},yt.filterPanels),xe=Object.keys(Lt);if(xe.length)if(Xe(it)&&(it=[it]),Ae(it)){const qe=it.map(_e=>Tde({columns:c.value},_e));xe.forEach(_e=>{const Ye=qe.find(xt=>xt.id===_e);Ye&&(Ye.filteredValue=[])}),t.store.commit("filterChange",{column:qe,values:[],silent:!0,multi:!0})}else xe.forEach(qe=>{const _e=c.value.find(Ye=>Ye.id===qe);_e&&(_e.filteredValue=[])}),I.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},fe=()=>{$.value&&(he(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:we,toggleRowExpansion:Se,updateExpandRows:ke,states:Oe,isRowExpanded:Be}=Nde({data:a,rowKey:s}),{updateTreeExpandKeys:Le,toggleTreeExpansion:Ce,updateTreeData:Ie,updateKeyChildren:Re,loadOrToggle:Ke,states:tt}=Dde({data:a,rowKey:s}),{updateCurrentRowData:ut,updateCurrentRow:Fe,setCurrentRowKey:Ue,states:Ze}=$de({data:a,rowKey:s});return{assertRowKey:Y,updateColumns:L,scheduleLayout:V,isSelected:z,clearSelection:G,cleanSelection:Q,getSelectionRows:U,toggleRowSelection:ee,_toggleAllSelection:se,toggleAllSelection:null,updateAllSelected:de,updateFilters:pe,updateCurrentRow:Fe,updateSort:he,execFilter:le,execSort:Z,execQuery:j,clearFilter:ae,clearSort:fe,toggleRowExpansion:Se,setExpandRowKeysAdapter:it=>{we(it),Le(it)},setCurrentRowKey:Ue,toggleRowExpansionAdapter:(it,yt)=>{c.value.some(({type:xe})=>xe==="expand")?Se(it,yt):Ce(it,yt)},isRowExpanded:Be,updateExpandRows:ke,updateCurrentRowData:ut,loadOrToggle:Ke,updateTreeData:Ie,updateKeyChildren:Re,states:{tableSize:n,rowKey:s,data:a,_data:o,isComplex:r,_columns:i,originColumns:l,columns:c,fixedColumns:u,rightFixedColumns:f,leafColumns:h,fixedLeafColumns:p,rightFixedLeafColumns:v,updateOrderFns:m,leafColumnsLength:g,fixedLeafColumnsLength:b,rightFixedLeafColumnsLength:C,isAllSelected:w,selection:_,reserveSelection:x,selectOnIndeterminate:k,selectable:T,rowExpandable:R,filters:I,filteredData:P,sortingColumn:$,sortProp:O,sortOrder:B,hoverRow:H,...Oe,...tt,...Ze}}}function N6(e,t){return e.map(n=>{var s;return n.id===t.id?t:((s=n.children)!=null&&s.length&&(n.children=N6(n.children,t)),n)})}function $6(e){e.forEach(t=>{var n,s;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(s=t.children)!=null&&s.length&&$6(t.children)}),e.sort((t,n)=>t.no-n.no)}function Vde(){const e=Tt(),t=Bde(),n=Ee("table"),{t:s}=Ft();return{ns:n,t:s,...t,mutations:{setData(i,l){const c=d(i._data)!==l;i.data.value=l,i._data.value=l,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),d(i.reserveSelection)?e.store.assertRowKey():c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(i,l,c,u){var f;const h=d(i._columns);let p=[];c?(c&&!c.children&&(c.children=[]),(f=c.children)==null||f.push(l),p=N6(h,c)):(h.push(l),p=h),$6(p),i._columns.value=p,i.updateOrderFns.push(u),l.type==="selection"&&(i.selectable.value=l.selectable,i.reserveSelection.value=l.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(i,l){var c;((c=l.getColumnIndex)==null?void 0:c.call(l))!==l.no&&($6(i._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(i,l,c,u){var f;const h=d(i._columns)||[];if(c)(f=c.children)==null||f.splice(c.children.findIndex(v=>v.id===l.id),1),ze(()=>{var v;((v=c.children)==null?void 0:v.length)===0&&delete c.children}),i._columns.value=N6(h,c);else{const v=h.indexOf(l);v>-1&&(h.splice(v,1),i._columns.value=h)}const p=i.updateOrderFns.indexOf(u);p>-1&&i.updateOrderFns.splice(p,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(i,l){const{prop:c,order:u,init:f}=l;if(c){const h=d(i.columns).find(p=>p.property===c);h&&(h.order=u,e.store.updateSort(h,c,u),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(i,l){const{sortingColumn:c,sortProp:u,sortOrder:f}=i,h=d(c),p=d(u),v=d(f);_g(v)&&(i.sortingColumn.value=null,i.sortProp.value=null);const m={filter:!0};e.store.execQuery(m),(!l||!(l.silent||l.init))&&e.emit("sort-change",{column:h,prop:p,order:v}),e.store.updateTableScrollY()},filterChange(i,l){const{column:c,values:u,silent:f}=l,h=e.store.updateFilters(c,u);e.store.execQuery(),f||e.emit("filter-change",h),e.store.updateTableScrollY()},toggleAllSelection(){var i,l;(l=(i=e.store).toggleAllSelection)==null||l.call(i)},rowSelectedChanged(i,l){e.store.toggleRowSelection(l),e.store.updateAllSelected()},setHoverRow(i,l){i.hoverRow.value=l},setCurrentRow(i,l){e.store.updateCurrentRow(l)}},commit:function(i,...l){const c=e.store.mutations;if(c[i])c[i].apply(e,[e.store.states,...l]);else throw new Error(`Action not found: ${i}`)},updateTableScrollY:function(){ze(()=>e.layout.updateScrollY.apply(e.layout))}}}const D6={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",rowExpandable:"rowExpandable",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function zde(e,t){if(!e)throw new Error("Table is required.");const n=Vde();return n.toggleAllSelection=ei(n._toggleAllSelection,10),Object.keys(D6).forEach(s=>{OT(LT(t,s),s,n)}),Hde(n,t),n}function Hde(e,t){Object.keys(D6).forEach(n=>{be(()=>LT(t,n),s=>{OT(s,n,e)})})}function OT(e,t,n){let s=e,a=D6[t];bt(a)&&(s=s||a.default,a=a.key),n.states[a].value=s}function LT(e,t){if(t.includes(".")){const n=t.split(".");let s=e;return n.forEach(a=>{s=s[a]}),s}else return e[t]}var Wde=Object.defineProperty,jde=(e,t,n)=>t in e?Wde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Js=(e,t,n)=>jde(e,typeof t!="symbol"?t+"":t,n);class Kde{constructor(t){Js(this,"observers"),Js(this,"table"),Js(this,"store"),Js(this,"columns"),Js(this,"fit"),Js(this,"showHeader"),Js(this,"height"),Js(this,"scrollX"),Js(this,"scrollY"),Js(this,"bodyWidth"),Js(this,"fixedWidth"),Js(this,"rightFixedWidth"),Js(this,"tableHeight"),Js(this,"headerHeight"),Js(this,"appendHeight"),Js(this,"footerHeight"),Js(this,"gutterWidth"),this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=F(null),this.scrollX=F(!1),this.scrollY=F(!1),this.bodyWidth=F(null),this.fixedWidth=F(null),this.rightFixedWidth=F(null),this.gutterWidth=0;for(const n in t)qt(t,n)&&(yn(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(_g(t))return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let s=!0;const a=this.scrollY.value;return s=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=s,a!==s}return!1}setHeight(t,n="height"){if(!Yt)return;const s=this.table.vnode.el;if(t=Pde(t),this.height.value=Number(t),!s&&(t||t===0)){ze(()=>this.setHeight(t,n));return}s&&st(t)?(s.style[n]=`${t}px`,this.updateElsHeight()):s&&Xe(t)&&(s.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(s=>{s.isColumnGroup?t.push.apply(t,s.columns):t.push(s)}),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(!Yt)return;const n=this.fit,s=(t=this.table.vnode.el)==null?void 0:t.clientWidth;let a=0;const o=this.getFlattenColumns(),r=o.filter(c=>!st(c.width));if(o.forEach(c=>{st(c.width)&&c.realWidth&&(c.realWidth=null)}),r.length>0&&n){if(o.forEach(c=>{a+=Number(c.width||c.minWidth||80)}),a<=s){this.scrollX.value=!1;const c=s-a;if(r.length===1)r[0].realWidth=Number(r[0].minWidth||80)+c;else{const u=r.reduce((p,v)=>p+Number(v.minWidth||80),0),f=c/u;let h=0;r.forEach((p,v)=>{if(v===0)return;const m=Math.floor(Number(p.minWidth||80)*f);h+=m,p.realWidth=Number(p.minWidth||80)+m}),r[0].realWidth=Number(r[0].minWidth||80)+c-h}}else this.scrollX.value=!0,r.forEach(c=>{c.realWidth=Number(c.minWidth)});this.bodyWidth.value=Math.max(a,s),this.table.state.resizeState.value.width=this.bodyWidth.value}else o.forEach(c=>{!c.width&&!c.minWidth?c.realWidth=80:c.realWidth=Number(c.width||c.minWidth),a+=c.realWidth}),this.scrollX.value=a>s,this.bodyWidth.value=a;const i=this.store.states.fixedColumns.value;if(i.length>0){let c=0;i.forEach(u=>{c+=Number(u.realWidth||u.width)}),this.fixedWidth.value=c}const l=this.store.states.rightFixedColumns.value;if(l.length>0){let c=0;l.forEach(u=>{c+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=c}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(s=>{var a,o;switch(t){case"columns":(a=s.state)==null||a.onColumnsChange(this);break;case"scrollable":(o=s.state)==null||o.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}var Ude=K({name:"ElTableFilterPanel",components:{ElCheckbox:yr,ElCheckboxGroup:L3,ElScrollbar:gr,ElTooltip:Ps,ElIcon:Je,ArrowDown:mr,ArrowUp:kp},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:ln.appendTo},setup(e){const t=Tt(),{t:n}=Ft(),s=Ee("table-filter"),a=t==null?void 0:t.parent;e.column&&!a.filterPanels.value[e.column.id]&&(a.filterPanels.value[e.column.id]=t);const o=F(null),r=F(null),i=F(0),l=E(()=>e.column&&e.column.filters),c=E(()=>e.column&&e.column.filterClassName?`${s.b()} ${e.column.filterClassName}`:s.b()),u=E({get:()=>{var T;return(((T=e.column)==null?void 0:T.filteredValue)||[])[0]},set:T=>{f.value&&(Ua(T)?f.value.splice(0,1):f.value.splice(0,1,T))}}),f=E({get(){return e.column?e.column.filteredValue||[]:[]},set(T){var R;e.column&&((R=e.upDataColumn)==null||R.call(e,"filteredValue",T))}}),h=E(()=>e.column?e.column.filterMultiple:!0),p=T=>T.value===u.value,v=()=>{var T;(T=o.value)==null||T.onClose()},m=()=>{C(f.value),v()},g=()=>{f.value=[],C(f.value),v()},b=(T,R)=>{u.value=T,i.value=R,Ua(T)?C([]):C(f.value),v()},C=T=>{var R,I;(R=e.store)==null||R.commit("filterChange",{column:e.column,values:T}),(I=e.store)==null||I.updateAllSelected()},w=()=>{var T,R;(T=r.value)==null||T.focus(),!h.value&&x(),e.column&&((R=e.upDataColumn)==null||R.call(e,"filterOpened",!0))},_=()=>{var T;e.column&&((T=e.upDataColumn)==null||T.call(e,"filterOpened",!1))},x=()=>{if(Ua(u)){i.value=0;return}const T=(l.value||[]).findIndex(R=>R.value===u.value);i.value=T>=0?T+1:0};return{multiple:h,filterClassName:c,filteredValue:f,filterValue:u,filters:l,handleConfirm:m,handleReset:g,handleSelect:b,isPropAbsent:Ua,isActive:p,t:n,ns:s,tooltipRef:o,rootRef:r,checkedIndex:i,handleShowTooltip:w,handleHideTooltip:_,handleKeydown:T=>{var R,I;const P=un(T),$=(l.value?l.value.length:0)+1;let O=i.value,B=!0;switch(P){case Te.down:case Te.right:O=(O+1)%$;break;case Te.up:case Te.left:O=(O-1+$)%$;break;case Te.tab:v(),B=!1;break;case Te.enter:case Te.space:if(O===0)b(null,0);else{const H=(l.value||[])[O-1];H.value&&b(H.value,O)}break;default:B=!1;break}B&&T.preventDefault(),i.value=O,(I=(R=r.value)==null?void 0:R.querySelector(`.${s.e("list-item")}:nth-child(${O+1})`))==null||I.focus()}}}});const qde=["disabled"],Gde=["tabindex","aria-checked"],Yde=["tabindex","aria-checked","onClick"],Xde=["aria-label"];function Jde(e,t,n,s,a,o){const r=Ge("el-checkbox"),i=Ge("el-checkbox-group"),l=Ge("el-scrollbar"),c=Ge("arrow-up"),u=Ge("arrow-down"),f=Ge("el-icon"),h=Ge("el-tooltip");return S(),ce(h,{ref:"tooltipRef",offset:0,placement:e.placement,"show-arrow":!1,trigger:"click",role:"dialog",teleported:"",effect:"light",pure:"",loop:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo,onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},{content:X(()=>[e.multiple?(S(),M("div",{key:0,ref:"rootRef",tabindex:"-1",class:D(e.ns.e("multiple"))},[A("div",{class:D(e.ns.e("content"))},[W(l,{"wrap-class":e.ns.e("wrap")},{default:X(()=>[W(i,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=p=>e.filteredValue=p),class:D(e.ns.e("checkbox-group"))},{default:X(()=>[(S(!0),M(He,null,Et(e.filters,p=>(S(),ce(r,{key:p.value,value:p.value},{default:X(()=>[We(ge(p.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),A("div",{class:D(e.ns.e("bottom"))},[A("button",{class:D(e.ns.is("disabled",e.filteredValue.length===0)),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...p)=>e.handleConfirm&&e.handleConfirm(...p))},ge(e.t("el.table.confirmFilter")),11,qde),A("button",{type:"button",onClick:t[2]||(t[2]=(...p)=>e.handleReset&&e.handleReset(...p))},ge(e.t("el.table.resetFilter")),1)],2)],2)):(S(),M("ul",{key:1,ref:"rootRef",tabindex:"-1",role:"radiogroup",class:D(e.ns.e("list")),onKeydown:t[4]||(t[4]=(...p)=>e.handleKeydown&&e.handleKeydown(...p))},[A("li",{role:"radio",class:D([e.ns.e("list-item"),e.ns.is("active",e.isPropAbsent(e.filterValue))]),tabindex:e.checkedIndex===0?0:-1,"aria-checked":e.isPropAbsent(e.filterValue),onClick:t[3]||(t[3]=p=>e.handleSelect(null,0))},ge(e.t("el.table.clearFilter")),11,Gde),(S(!0),M(He,null,Et(e.filters,(p,v)=>(S(),M("li",{key:p.value,role:"radio",class:D([e.ns.e("list-item"),e.ns.is("active",e.isActive(p))]),tabindex:e.checkedIndex===v+1?0:-1,"aria-checked":e.isActive(p),onClick:m=>e.handleSelect(p.value,v+1)},ge(p.text),11,Yde))),128))],34))]),default:X(()=>{var p;return[A("button",{type:"button",class:D(`${e.ns.namespace.value}-table__column-filter-trigger`),"aria-label":e.t("el.table.filterLabel",{column:((p=e.column)==null?void 0:p.label)||""})},[W(f,null,{default:X(()=>[ue(e.$slots,"filter-icon",{},()=>{var v;return[(v=e.column)!=null&&v.filterOpened?(S(),ce(c,{key:0})):(S(),ce(u,{key:1}))]})]),_:3})],10,Xde)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var Zde=ps(Ude,[["render",Jde]]);function F6(e){const t=Tt();J2(()=>{n.value.addObserver(t)}),Mt(()=>{s(n.value),a(n.value)}),lr(()=>{s(n.value),a(n.value)}),fu(()=>{n.value.removeObserver(t)});const n=E(()=>{const o=e.layout;if(!o)throw new Error("Can not find table layout.");return o}),s=o=>{var r;const i=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col"))||[];if(!i.length)return;const l=o.getFlattenColumns(),c={};l.forEach(u=>{c[u.id]=u});for(let u=0,f=i.length;u<f;u++){const h=i[u],p=h.getAttribute("name"),v=c[p];v&&h.setAttribute("width",v.realWidth||v.width)}},a=o=>{var r,i;const l=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let u=0,f=l.length;u<f;u++)l[u].setAttribute("width",o.scrollY.value?o.gutterWidth:"0");const c=((i=e.vnode.el)==null?void 0:i.querySelectorAll("th.gutter"))||[];for(let u=0,f=c.length;u<f;u++){const h=c[u];h.style.width=o.scrollY.value?`${o.gutterWidth}px`:"0",h.style.display=o.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:s,onScrollableChange:a}}const _r=Symbol("ElTable");function Qde(e,t){const n=Tt(),s=je(_r),a=m=>{m.stopPropagation()},o=(m,g)=>{!g.filters&&g.sortable?v(m,g,!1):g.filterable&&!g.sortable&&a(m),s==null||s.emit("header-click",g,m)},r=(m,g)=>{s==null||s.emit("header-contextmenu",g,m)},i=F(null),l=F(!1),c=F(),u=(m,g)=>{var b,C;if(Yt&&!(g.children&&g.children.length>0)&&i.value&&e.border&&i.value.id===g.id){l.value=!0;const w=s;t("set-drag-visible",!0);const _=w==null?void 0:w.vnode.el,x=_==null?void 0:_.getBoundingClientRect().left,k=(C=(b=n==null?void 0:n.vnode)==null?void 0:b.el)==null?void 0:C.querySelector(`th.${g.id}`),T=k.getBoundingClientRect(),R=T.left-x+30;Fo(k,"noclick"),c.value={startMouseLeft:m.clientX,startLeft:T.right-x,startColumnLeft:T.left-x,tableLeft:x};const I=w==null?void 0:w.refs.resizeProxy;I.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const P=O=>{const B=O.clientX-c.value.startMouseLeft,H=c.value.startLeft+B;I.style.left=`${Math.max(R,H)}px`},$=()=>{if(l.value){const{startColumnLeft:O,startLeft:B}=c.value,J=Number.parseInt(I.style.left,10)-O;g.width=g.realWidth=J,w==null||w.emit("header-dragend",g.width,B-O,g,m),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,i.value=null,c.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",$),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{ca(k,"noclick")},0)};document.addEventListener("mousemove",P),document.addEventListener("mouseup",$)}},f=(m,g)=>{var b;if(!e.border||g.children&&g.children.length>0)return;const C=m.target,w=Ka(C)?C.closest("th"):null;if(!w)return;const _=ni(w,"is-sortable");if(_){const P=l.value?"col-resize":"";w.style.cursor=P;const $=w.querySelector(".caret-wrapper");$&&($.style.cursor=P)}if(!g.resizable||l.value){i.value=null;return}const x=w.getBoundingClientRect(),k=((b=w.parentNode)==null?void 0:b.lastElementChild)===w,T=e.allowDragLastColumn||!k,R=x.width>12&&x.right-m.clientX<8&&T,I=R?"col-resize":"";document.body.style.cursor=I,i.value=R?g:null,_&&(w.style.cursor=I)},h=()=>{!Yt||l.value||(document.body.style.cursor="")},p=({order:m,sortOrders:g})=>{if(m==="")return g[0];const b=g.indexOf(m||null);return g[b>g.length-2?0:b+1]},v=(m,g,b)=>{var C;m.stopPropagation();const w=g.order===b?null:b||p(g),_=(C=m.target)==null?void 0:C.closest("th");if(_&&ni(_,"noclick")){ca(_,"noclick");return}if(!g.sortable)return;const x=m.currentTarget;if(["ascending","descending"].some(P=>ni(x,P)&&!g.sortOrders.includes(P)))return;const k=e.store.states;let T=k.sortProp.value,R;const I=k.sortingColumn.value;(I!==g||I===g&&_g(I.order))&&(I&&(I.order=null),k.sortingColumn.value=g,T=g.property),w?R=g.order=w:R=g.order=null,k.sortProp.value=T,k.sortOrder.value=R,s==null||s.store.commit("changeSortCondition")};return{handleHeaderClick:o,handleHeaderContextMenu:r,handleMouseDown:u,handleMouseMove:f,handleMouseOut:h,handleSortClick:v,handleFilterClick:a}}function efe(e){const t=je(_r),n=Ee("table");return{getHeaderRowStyle:i=>{const l=t==null?void 0:t.props.headerRowStyle;return Qe(l)?l.call(null,{rowIndex:i}):l},getHeaderRowClass:i=>{const l=[],c=t==null?void 0:t.props.headerRowClassName;return Xe(c)?l.push(c):Qe(c)&&l.push(c.call(null,{rowIndex:i})),l.join(" ")},getHeaderCellStyle:(i,l,c,u)=>{var f;let h=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};Qe(h)&&(h=h.call(null,{rowIndex:i,columnIndex:l,row:c,column:u}));const p=L6(l,u.fixed,e.store,c);return Qf(p,"left"),Qf(p,"right"),Object.assign({},h,p)},getHeaderCellClass:(i,l,c,u)=>{const f=O6(n.b(),l,u.fixed,e.store,c),h=[u.id,u.order,u.headerAlign,u.className,u.labelClassName,...f];u.children||h.push("is-leaf"),u.sortable&&h.push("is-sortable");const p=t==null?void 0:t.props.headerCellClassName;return Xe(p)?h.push(p):Qe(p)&&h.push(p.call(null,{rowIndex:i,columnIndex:l,row:c,column:u})),h.push(n.e("cell")),h.filter(v=>!!v).join(" ")}}}const NT=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,NT(n.children))):t.push(n)}),t},$T=e=>{let t=1;const n=(o,r)=>{if(r&&(o.level=r.level+1,t<o.level&&(t=o.level)),o.children){let i=0;o.children.forEach(l=>{n(l,o),i+=l.colSpan}),o.colSpan=i}else o.colSpan=1};e.forEach(o=>{o.level=1,n(o,void 0)});const s=[];for(let o=0;o<t;o++)s.push([]);return NT(e).forEach(o=>{o.children?(o.rowSpan=1,o.children.forEach(r=>r.isSubColumn=!0)):o.rowSpan=t-o.level+1,s[o.level-1].push(o)}),s};function tfe(e){const t=je(_r),n=E(()=>$T(e.store.states.originColumns.value));return{isGroup:E(()=>{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 nfe=K({name:"ElTableHeader",components:{ElCheckbox:yr},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=Tt(),s=je(_r),a=Ee("table"),o=F({}),{onColumnsChange:r,onScrollableChange:i}=F6(s),l=(s==null?void 0:s.props.tableLayout)==="auto",c=Gt(new Map),u=F();let f;const h=()=>{f=setTimeout(()=>{c.size>0&&(c.forEach((O,B)=>{const H=u.value.querySelector(`.${B.replace(/\s/g,".")}`);if(H){const J=H.getBoundingClientRect().width;O.width=J||O.width}}),c.clear())})};be(c,h),tn(()=>{f&&(clearTimeout(f),f=void 0)}),Mt(async()=>{await ze(),await ze();const{prop:O,order:B}=e.defaultSort;s==null||s.store.commit("sort",{prop:O,order:B,init:!0}),h()});const{handleHeaderClick:p,handleHeaderContextMenu:v,handleMouseDown:m,handleMouseMove:g,handleMouseOut:b,handleSortClick:C,handleFilterClick:w}=Qde(e,t),{getHeaderRowStyle:_,getHeaderRowClass:x,getHeaderCellStyle:k,getHeaderCellClass:T}=efe(e),{isGroup:R,toggleAllSelection:I,columnRows:P}=tfe(e),{t:$}=Ft();return n.state={onColumnsChange:r,onScrollableChange:i},n.filterPanels=o,{ns:a,t:$,filterPanels:o,onColumnsChange:r,onScrollableChange:i,columnRows:P,getHeaderRowClass:x,getHeaderRowStyle:_,getHeaderCellClass:T,getHeaderCellStyle:k,handleHeaderClick:p,handleHeaderContextMenu:v,handleMouseDown:m,handleMouseMove:g,handleMouseOut:b,handleSortClick:C,handleFilterClick:w,isGroup:R,toggleAllSelection:I,saveIndexSelection:c,isTableLayoutAuto:l,theadRef:u,updateFixedColumnStyle:h}},render(){const{ns:e,t,isGroup:n,columnRows:s,getHeaderCellStyle:a,getHeaderCellClass:o,getHeaderRowClass:r,getHeaderRowStyle:i,handleHeaderClick:l,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:f,handleSortClick:h,handleMouseOut:p,store:v,$parent:m,saveIndexSelection:g,isTableLayoutAuto:b}=this;let C=1;return lt("thead",{ref:"theadRef",class:e.is("group",n)},s.map((w,_)=>lt("tr",{class:r(_),key:_,style:i(_)},w.map((x,k)=>{x.rowSpan>C&&(C=x.rowSpan);const T=o(_,k,w,x);return b&&x.fixed&&g.set(T,x),lt("th",{class:T,colspan:x.colSpan,key:`${x.id}-thead`,rowspan:x.rowSpan,scope:x.colSpan>1?"colgroup":"col",ariaSort:x.sortable?x.order:void 0,style:a(_,k,w,x),onClick:R=>{var I;(I=R.currentTarget)!=null&&I.classList.contains("noclick")||l(R,x)},onContextmenu:R=>c(R,x),onMousedown:R=>u(R,x),onMousemove:R=>f(R,x),onMouseout:p},[lt("div",{class:["cell",x.filteredValue&&x.filteredValue.length>0?"highlight":""]},[x.renderHeader?x.renderHeader({column:x,$index:k,store:v,_self:m}):x.label,x.sortable&<("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:x.label||""}),onClick:R=>h(R,x)},[lt("i",{onClick:R=>h(R,x,"ascending"),class:"sort-caret ascending"}),lt("i",{onClick:R=>h(R,x,"descending"),class:"sort-caret descending"})]),x.filterable&<(Zde,{store:v,placement:x.filterPlacement||"bottom-start",appendTo:m==null?void 0:m.appendFilterPanelTo,column:x,upDataColumn:(R,I)=>{x[R]=I}},{"filter-icon":()=>x.renderFilterIcon?x.renderFilterIcon({filterOpened:x.filterOpened}):null})])])}))))}});function B6(e,t,n=.03){return e-t>n}function sfe(e){const t=je(_r),n=F(""),s=F(lt("div")),a=(v,m,g)=>{var b,C,w;const _=t,x=R6(v);let k=null;const T=(b=_==null?void 0:_.vnode.el)==null?void 0:b.dataset.prefix;x&&(k=ET({columns:(w=(C=e.store)==null?void 0:C.states.columns.value)!=null?w:[]},x,T),k&&(_==null||_.emit(`cell-${g}`,m,k,x,v))),_==null||_.emit(`row-${g}`,m,k,v)},o=(v,m)=>{a(v,m,"dblclick")},r=(v,m)=>{var g;(g=e.store)==null||g.commit("setCurrentRow",m),a(v,m,"click")},i=(v,m)=>{a(v,m,"contextmenu")},l=ei(v=>{var m;(m=e.store)==null||m.commit("setHoverRow",v)},30),c=ei(()=>{var v;(v=e.store)==null||v.commit("setHoverRow",null)},30),u=v=>{const m=window.getComputedStyle(v,null),g=Number.parseInt(m.paddingLeft,10)||0,b=Number.parseInt(m.paddingRight,10)||0,C=Number.parseInt(m.paddingTop,10)||0,w=Number.parseInt(m.paddingBottom,10)||0;return{left:g,right:b,top:C,bottom:w}},f=(v,m,g)=>{var b;let C=(b=m==null?void 0:m.target)==null?void 0:b.parentNode;for(;v>1&&(C=C==null?void 0:C.nextSibling,!(!C||C.nodeName!=="TR"));)g(C,"hover-row hover-fixed-row"),v--};return{handleDoubleClick:o,handleClick:r,handleContextMenu:i,handleMouseEnter:l,handleMouseLeave:c,handleCellMouseEnter:(v,m,g)=>{var b,C,w,_,x,k,T,R,I;if(!t)return;const P=t,$=R6(v),O=(b=P==null?void 0:P.vnode.el)==null?void 0:b.dataset.prefix;let B=null;if($){if(B=ET({columns:(w=(C=e.store)==null?void 0:C.states.columns.value)!=null?w:[]},$,O),!B)return;$.rowSpan>1&&f($.rowSpan,v,Fo);const de=P.hoverState={cell:$,column:B,row:m};P==null||P.emit("cell-mouse-enter",de.row,de.column,de.cell,v)}if(!g){((_=pa)==null?void 0:_.trigger)===$&&((x=pa)==null||x());return}const H=v.target.querySelector(".cell");if(!(ni(H,`${O}-tooltip`)&&H.childNodes.length&&((k=H.textContent)!=null&&k.trim())))return;const J=document.createRange();J.setStart(H,0),J.setEnd(H,H.childNodes.length);const{width:Y,height:N}=J.getBoundingClientRect(),{width:L,height:V}=H.getBoundingClientRect(),{top:z,left:G,right:Q,bottom:U}=u(H),ee=G+Q,se=z+U;B6(Y+ee,L)||B6(N+se,V)||B6(H.scrollWidth,L)?Lde(g,(T=($==null?void 0:$.innerText)||($==null?void 0:$.textContent))!=null?T:"",m,B,$,P):((R=pa)==null?void 0:R.trigger)===$&&((I=pa)==null||I())},handleCellMouseLeave:v=>{const m=R6(v);if(!m)return;m.rowSpan>1&&f(m.rowSpan,v,ca);const g=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",g==null?void 0:g.row,g==null?void 0:g.column,g==null?void 0:g.cell,v)},tooltipContent:n,tooltipTrigger:s}}function afe(e){const t=je(_r),n=Ee("table");return{getRowStyle:(c,u)=>{const f=t==null?void 0:t.props.rowStyle;return Qe(f)?f.call(null,{row:c,rowIndex:u}):f||null},getRowClass:(c,u,f)=>{var h;const p=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&c===((h=e.store)==null?void 0:h.states.currentRow.value)&&p.push("current-row"),e.stripe&&f%2===1&&p.push(n.em("row","striped"));const v=t==null?void 0:t.props.rowClassName;return Xe(v)?p.push(v):Qe(v)&&p.push(v.call(null,{row:c,rowIndex:u})),p},getCellStyle:(c,u,f,h)=>{const p=t==null?void 0:t.props.cellStyle;let v=p??{};Qe(p)&&(v=p.call(null,{rowIndex:c,columnIndex:u,row:f,column:h}));const m=L6(u,e==null?void 0:e.fixed,e.store);return Qf(m,"left"),Qf(m,"right"),Object.assign({},v,m)},getCellClass:(c,u,f,h,p)=>{const v=O6(n.b(),u,e==null?void 0:e.fixed,e.store,void 0,p),m=[h.id,h.align,h.className,...v],g=t==null?void 0:t.props.cellClassName;return Xe(g)?m.push(g):Qe(g)&&m.push(g.call(null,{rowIndex:c,columnIndex:u,row:f,column:h})),m.push(n.e("cell")),m.filter(b=>!!b).join(" ")},getSpan:(c,u,f,h)=>{let p=1,v=1;const m=t==null?void 0:t.props.spanMethod;if(Qe(m)){const g=m({row:c,column:u,rowIndex:f,columnIndex:h});Ae(g)?(p=g[0],v=g[1]):bt(g)&&(p=g.rowspan,v=g.colspan)}return{rowspan:p,colspan:v}},getColspanRealWidth:(c,u,f)=>{if(u<1)return c[f].realWidth;const h=c.map(({realWidth:p,width:v})=>p||v).slice(f,f+u);return Number(h.reduce((p,v)=>Number(p)+Number(v),-1))}}}const ofe=["colspan","rowspan"];var rfe=K({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(S(),M("td",{colspan:e.colspan,rowspan:e.rowspan},[ue(t.$slots,"default")],8,ofe))}});function ife(e){const t=je(_r),n=Ee("table"),{handleDoubleClick:s,handleClick:a,handleContextMenu:o,handleMouseEnter:r,handleMouseLeave:i,handleCellMouseEnter:l,handleCellMouseLeave:c,tooltipContent:u,tooltipTrigger:f}=sfe(e),{getRowStyle:h,getRowClass:p,getCellStyle:v,getCellClass:m,getSpan:g,getColspanRealWidth:b}=afe(e);let C=-1;const w=E(()=>{var R;return(R=e.store)==null?void 0:R.states.columns.value.findIndex(({type:I})=>I==="default")}),_=(R,I)=>{var P;const $=(P=t==null?void 0:t.props)==null?void 0:P.rowKey;return $?Xs(R,$):I},x=(R,I,P,$=!1)=>{const{tooltipEffect:O,tooltipOptions:B,store:H}=e,{indent:J,columns:Y}=H.states,N=[];let L=!0;return P&&(N.push(n.em("row",`level-${P.level}`)),L=!!P.display),I===0&&(C=-1),e.stripe&&L&&C++,N.push(...p(R,I,C)),lt("tr",{style:[L?null:{display:"none"},h(R,I)],class:N,key:_(R,I),onDblclick:z=>s(z,R),onClick:z=>a(z,R),onContextmenu:z=>o(z,R),onMouseenter:()=>r(I),onMouseleave:i},Y.value.map((z,G)=>{const{rowspan:Q,colspan:U}=g(R,z,I,G);if(!Q||!U)return null;const ee=Object.assign({},z);ee.realWidth=b(Y.value,U,G);const se={store:H,_self:e.context||t,column:ee,row:R,$index:I,cellIndex:G,expanded:$};G===w.value&&P&&(se.treeNode={indent:P.level&&P.level*J.value,level:P.level},on(P.expanded)&&(se.treeNode.expanded=P.expanded,"loading"in P&&(se.treeNode.loading=P.loading),"noLazyChildren"in P&&(se.treeNode.noLazyChildren=P.noLazyChildren)));const de=`${_(R,I)},${G}`,te=ee.columnKey||ee.rawColumnKey||"",pe=z.showOverflowTooltip&&gx({effect:O},B,z.showOverflowTooltip);return lt(rfe,{style:v(I,G,R,z),class:m(I,G,R,z,U-1),key:`${te}${de}`,rowspan:Q,colspan:U,onMouseenter:he=>l(he,R,pe),onMouseleave:c},{default:()=>k(G,z,se)})}))},k=(R,I,P)=>I.renderCell(P);return{wrappedRowRender:(R,I)=>{const P=e.store,{isRowExpanded:$,assertRowKey:O}=P,{treeData:B,lazyTreeNodeMap:H,childrenColumnName:J,rowKey:Y}=P.states,N=P.states.columns.value;if(N.some(({type:V})=>V==="expand")){const V=$(R),z=x(R,I,void 0,V),G=t==null?void 0:t.renderExpanded;if(!G)return console.error("[Element Error]renderExpanded is required."),z;const Q=[[z]];return(t.props.preserveExpandedContent||V)&&Q[0].push(lt("tr",{key:`expanded-row__${z.key}`,style:{display:V?"":"none"}},[lt("td",{colspan:N.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[G({row:R,$index:I,store:P,expanded:V})])])),Q}else if(Object.keys(B.value).length){O();const V=Xs(R,Y.value);let z=B.value[V],G=null;z&&(G={expanded:z.expanded,level:z.level,display:!0,noLazyChildren:void 0,loading:void 0},on(z.lazy)&&(G&&on(z.loaded)&&z.loaded&&(G.noLazyChildren=!(z.children&&z.children.length)),G.loading=z.loading));const Q=[x(R,I,G??void 0)];if(z){let U=0;const ee=(de,te)=>{de&&de.length&&te&&de.forEach(pe=>{const he={display:te.display&&te.expanded,level:te.level+1,expanded:!1,noLazyChildren:!1,loading:!1},le=Xs(pe,Y.value);if(Ua(le))throw new Error("For nested data item, row-key is required.");if(z={...B.value[le]},z&&(he.expanded=z.expanded,z.level=z.level||he.level,z.display=!!(z.expanded&&he.display),on(z.lazy)&&(on(z.loaded)&&z.loaded&&(he.noLazyChildren=!(z.children&&z.children.length)),he.loading=z.loading)),U++,Q.push(x(pe,I+U,he)),z){const Z=H.value[le]||pe[J.value];ee(Z,z)}})};z.display=!0;const se=H.value[V]||R[J.value];ee(se,z)}return Q}else return x(R,I,void 0)},tooltipContent:u,tooltipTrigger:f}}var lfe=K({name:"ElTableBody",props:{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},setup(e){var t;const n=Tt(),s=je(_r),a=Ee("table"),{wrappedRowRender:o,tooltipContent:r,tooltipTrigger:i}=ife(e),{onColumnsChange:l,onScrollableChange:c}=F6(s),u=[];return be((t=e.store)==null?void 0:t.states.hoverRow,(f,h)=>{var p,v;const m=n==null?void 0:n.vnode.el,g=Array.from((m==null?void 0:m.children)||[]).filter(w=>w==null?void 0:w.classList.contains(`${a.e("row")}`));let b=f;const C=(p=g[b])==null?void 0:p.childNodes;if(C!=null&&C.length){let w=0;Array.from(C).reduce((x,k,T)=>{var R,I;return((R=C[T])==null?void 0:R.colSpan)>1&&(w=(I=C[T])==null?void 0:I.colSpan),k.nodeName!=="TD"&&w===0&&x.push(T),w>0&&w--,x},[]).forEach(x=>{var k;for(b=f;b>0;){const T=(k=g[b-1])==null?void 0:k.childNodes;if(T[x]&&T[x].nodeName==="TD"&&T[x].rowSpan>1){Fo(T[x],"hover-cell"),u.push(T[x]);break}b--}})}else u.forEach(w=>ca(w,"hover-cell")),u.length=0;!((v=e.store)!=null&&v.states.isComplex.value)||!Yt||ti(()=>{const w=g[h],_=g[f];w&&!w.classList.contains("hover-fixed-row")&&ca(w,"hover-row"),_&&Fo(_,"hover-row")})}),fu(()=>{var f;(f=pa)==null||f()}),{ns:a,onColumnsChange:l,onScrollableChange:c,wrappedRowRender:o,tooltipContent:r,tooltipTrigger:i}},render(){const{wrappedRowRender:e,store:t}=this,n=(t==null?void 0:t.states.data.value)||[];return lt("tbody",{tabIndex:-1},[n.reduce((s,a)=>s.concat(e(a,s.length)),[])])}});function cfe(){const e=je(_r),t=e==null?void 0:e.store,n=E(()=>{var i;return(i=t==null?void 0:t.states.fixedLeafColumnsLength.value)!=null?i:0}),s=E(()=>{var i;return(i=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?i:0}),a=E(()=>{var i;return(i=t==null?void 0:t.states.columns.value.length)!=null?i:0}),o=E(()=>{var i;return(i=t==null?void 0:t.states.fixedColumns.value.length)!=null?i:0}),r=E(()=>{var i;return(i=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?i:0});return{leftFixedLeafCount:n,rightFixedLeafCount:s,columnsCount:a,leftFixedCount:o,rightFixedCount:r,columns:E(()=>{var i;return(i=t==null?void 0:t.states.columns.value)!=null?i:[]})}}function ufe(e){const{columns:t}=cfe(),n=Ee("table");return{getCellClasses:(o,r)=>{const i=o[r],l=[n.e("cell"),i.id,i.align,i.labelClassName,...O6(n.b(),r,i.fixed,e.store)];return i.className&&l.push(i.className),i.children||l.push(n.is("leaf")),l},getCellStyles:(o,r)=>{const i=L6(r,o.fixed,e.store);return Qf(i,"left"),Qf(i,"right"),i},columns:t}}var dfe=K({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=je(_r),n=Ee("table"),{getCellClasses:s,getCellStyles:a,columns:o}=ufe(e),{onScrollableChange:r,onColumnsChange:i}=F6(t);return{ns:n,onScrollableChange:r,onColumnsChange:i,getCellClasses:s,getCellStyles:a,columns:o}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:s,sumText:a}=this,o=this.store.states.data.value;let r=[];return s?r=s({columns:e,data:o}):e.forEach((i,l)=>{if(l===0){r[l]=a;return}const c=o.map(p=>Number(p[i.property])),u=[];let f=!0;c.forEach(p=>{if(!Number.isNaN(+p)){f=!1;const v=`${p}`.split(".")[1];u.push(v?v.length:0)}});const h=Math.max.apply(null,u);f?r[l]="":r[l]=c.reduce((p,v)=>{const m=Number(v);return Number.isNaN(+m)?p:Number.parseFloat((p+v).toFixed(Math.min(h,20)))},0)}),lt(lt("tfoot",[lt("tr",{},[...e.map((i,l)=>lt("td",{key:l,colspan:i.colSpan,rowspan:i.rowSpan,class:n(e,l),style:t(i,l)},[lt("div",{class:["cell",i.labelClassName]},[r[l]])]))])]))}});function ffe(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,h,p=!0)=>{e.toggleRowSelection(f,h,!1,p),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,h)=>{e.toggleRowExpansionAdapter(f,h)},clearSort:()=>{e.clearSort()},sort:(f,h)=>{e.commit("sort",{prop:f,order:h})},updateKeyChildren:(f,h)=>{e.updateKeyChildren(f,h)}}}function hfe(e,t,n,s){const a=F(!1),o=F(null),r=F(!1),i=N=>{r.value=N},l=F({width:null,height:null,headerHeight:null}),c=F(!1),u={display:"inline-block",verticalAlign:"middle"},f=F(),h=F(0),p=F(0),v=F(0),m=F(0),g=F(0);be(()=>e.height,N=>{t.setHeight(N??null)},{immediate:!0}),be(()=>e.maxHeight,N=>{t.setMaxHeight(N??null)},{immediate:!0}),be(()=>[e.currentRowKey,n.states.rowKey],([N,L])=>{!d(L)||!d(N)||n.setCurrentRowKey(`${N}`)},{immediate:!0}),be(()=>e.data,N=>{s.store.commit("setData",N)},{immediate:!0,deep:!0}),ja(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const b=()=>{s.store.commit("setHoverRow",null),s.hoverState&&(s.hoverState=null)},C=(N,L)=>{const{pixelX:V,pixelY:z}=L;Math.abs(V)>=Math.abs(z)&&(s.refs.bodyWrapper.scrollLeft+=L.pixelX/5)},w=E(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),_=E(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),x=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(I)};Mt(async()=>{await ze(),n.updateColumns(),P(),requestAnimationFrame(x);const N=s.vnode.el,L=s.refs.headerWrapper;e.flexible&&N&&N.parentElement&&(N.parentElement.style.minWidth="0"),l.value={width:f.value=N.offsetWidth,height:N.offsetHeight,headerHeight:e.showHeader&&L?L.offsetHeight:null},n.states.columns.value.forEach(V=>{V.filteredValue&&V.filteredValue.length&&s.store.commit("filterChange",{column:V,values:V.filteredValue,silent:!0})}),s.$ready=!0});const k=(N,L)=>{if(!N)return;const V=Array.from(N.classList).filter(z=>!z.startsWith("is-scrolling-"));V.push(t.scrollX.value?L:"is-scrolling-none"),N.className=V.join(" ")},T=N=>{const{tableWrapper:L}=s.refs;k(L,N)},R=N=>{const{tableWrapper:L}=s.refs;return!!(L&&L.classList.contains(N))},I=function(){if(!s.refs.scrollBarRef)return;if(!t.scrollX.value){const ee="is-scrolling-none";R(ee)||T(ee);return}const N=s.refs.scrollBarRef.wrapRef;if(!N)return;const{scrollLeft:L,offsetWidth:V,scrollWidth:z}=N,{headerWrapper:G,footerWrapper:Q}=s.refs;G&&(G.scrollLeft=L),Q&&(Q.scrollLeft=L);const U=z-V-1;L>=U?T("is-scrolling-right"):T(L===0?"is-scrolling-left":"is-scrolling-middle")},P=()=>{s.refs.scrollBarRef&&(s.refs.scrollBarRef.wrapRef&&an(s.refs.scrollBarRef.wrapRef,"scroll",I,{passive:!0}),e.fit?Tn(s.vnode.el,$):an(window,"resize",$),Tn(s.refs.tableInnerWrapper,()=>{var N,L;$(),(L=(N=s.refs)==null?void 0:N.scrollBarRef)==null||L.update()}))},$=()=>{var N,L,V,z;const G=s.vnode.el;if(!s.$ready||!G)return;let Q=!1;const{width:U,height:ee,headerHeight:se}=l.value,de=f.value=G.offsetWidth;U!==de&&(Q=!0);const te=G.offsetHeight;(e.height||w.value)&&ee!==te&&(Q=!0);const pe=e.tableLayout==="fixed"?s.refs.headerWrapper:(N=s.refs.tableHeaderRef)==null?void 0:N.$el;e.showHeader&&(pe==null?void 0:pe.offsetHeight)!==se&&(Q=!0),h.value=((L=s.refs.tableWrapper)==null?void 0:L.scrollHeight)||0,v.value=(pe==null?void 0:pe.scrollHeight)||0,m.value=((V=s.refs.footerWrapper)==null?void 0:V.offsetHeight)||0,g.value=((z=s.refs.appendWrapper)==null?void 0:z.offsetHeight)||0,p.value=h.value-v.value-m.value-g.value,Q&&(l.value={width:de,height:te,headerHeight:e.showHeader&&(pe==null?void 0:pe.offsetHeight)||0},x())},O=ls(),B=E(()=>{const{bodyWidth:N,scrollY:L,gutterWidth:V}=t;return N.value?`${N.value-(L.value?V:0)}px`:""}),H=E(()=>e.maxHeight?"fixed":e.tableLayout),J=E(()=>{if(e.data&&e.data.length)return;let N="100%";e.height&&p.value&&(N=`${p.value}px`);const L=f.value;return{width:L?`${L}px`:"",height:N}}),Y=E(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+m.value}px)`}:{maxHeight:`${+e.maxHeight-v.value-m.value}px`}:{});return{isHidden:a,renderExpanded:o,setDragVisible:i,isGroup:c,handleMouseLeave:b,handleHeaderFooterMousewheel:C,tableSize:O,emptyBlockStyle:J,resizeProxyVisible:r,bodyWidth:B,resizeState:l,doLayout:x,tableBodyStyles:_,tableLayout:H,scrollbarViewStyle:u,scrollbarStyle:Y}}function pfe(e){let t;const n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),o={childList:!0,subtree:!0},r=e.store.states.updateOrderFns;t=new MutationObserver(()=>{r.forEach(i=>i())}),t.observe(a,o)};Mt(()=>{n()}),fu(()=>{t==null||t.disconnect()})}var vfe={data:{type:Array,default:()=>[]},size:hs,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,rowExpandable:{type:Function},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:[String,Object,Array],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 DT(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:a})=>Wt(a))&&(n=[]);const s=a=>{const o={key:`${e.tableLayout}_${a.id}`,style:{},name:void 0};return t?o.style={width:`${a.width}px`}:o.name=a.id,o};return lt("colgroup",{},n.map(a=>lt("col",s(a))))}DT.props=["columns","tableLayout"];const mfe=()=>{const e=F(),t=(o,r)=>{const i=e.value;i&&i.scrollTo(o,r)},n=(o,r)=>{const i=e.value;i&&st(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 FT=!1,Iu,V6,z6,E1,A1,BT,T1,H6,W6,j6,VT,K6,U6,zT,HT;function Za(){if(!FT){FT=!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(K6=/\b(iPhone|iP[ao]d)/.exec(e),U6=/\b(iP[ao]d)/.exec(e),j6=/Android/i.exec(e),zT=/FBAN\/\w+;/i.exec(e),HT=/Mobile/i.exec(e),VT=!!/Win64/.exec(e),t){Iu=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Iu&&document&&document.documentMode&&(Iu=document.documentMode);var s=/(?:Trident\/(\d+.\d+))/.exec(e);BT=s?parseFloat(s[1])+4:Iu,V6=t[2]?parseFloat(t[2]):NaN,z6=t[3]?parseFloat(t[3]):NaN,E1=t[4]?parseFloat(t[4]):NaN,E1?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),A1=t&&t[1]?parseFloat(t[1]):NaN):A1=NaN}else Iu=V6=z6=A1=E1=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);T1=a?parseFloat(a[1].replace("_",".")):!0}else T1=!1;H6=!!n[2],W6=!!n[3]}else T1=H6=W6=!1}}var q6={ie:function(){return Za()||Iu},ieCompatibilityMode:function(){return Za()||BT>Iu},ie64:function(){return q6.ie()&&VT},firefox:function(){return Za()||V6},opera:function(){return Za()||z6},webkit:function(){return Za()||E1},safari:function(){return q6.webkit()},chrome:function(){return Za()||A1},windows:function(){return Za()||H6},osx:function(){return Za()||T1},linux:function(){return Za()||W6},iphone:function(){return Za()||K6},mobile:function(){return Za()||K6||U6||j6||HT},nativeApp:function(){return Za()||zT},android:function(){return Za()||j6},ipad:function(){return Za()||U6}},gfe=q6,bfe=!!(typeof window<"u"&&window.document&&window.document.createElement),yfe={canUseDOM:bfe},WT=yfe,jT;WT.canUseDOM&&(jT=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function wfe(e,t){if(!WT.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,s=n in document;if(!s){var a=document.createElement("div");a.setAttribute(n,"return;"),s=typeof a[n]=="function"}return!s&&jT&&e==="wheel"&&(s=document.implementation.hasFeature("Events.wheel","3.0")),s}var _fe=wfe,KT=10,UT=40,qT=800;function GT(e){var t=0,n=0,s=0,a=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),s=t*KT,a=n*KT,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(s=e.deltaX),(s||a)&&e.deltaMode&&(e.deltaMode==1?(s*=UT,a*=UT):(s*=qT,a*=qT)),s&&!t&&(t=s<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:s,pixelY:a}}GT.getEventType=function(){return gfe.firefox()?"DOMMouseScroll":_fe("wheel")?"wheel":"mousewheel"};var Cfe=GT;/**
|
||
* 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 M1="_Mousewheel",YT=function(e,t){if(e&&e.addEventListener){XT(e);const n=function(s){const a=Cfe(s);t&&Reflect.apply(t,this,[s,a])};e[M1]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},XT=e=>{var t;(t=e[M1])!=null&&t.wheelHandler&&(e.removeEventListener("wheel",e[M1].wheelHandler),e[M1]=null)},Sfe={beforeMount(e,t){YT(e,t.value)},unmounted(e){XT(e)},updated(e,t){t.value!==t.oldValue&&YT(e,t.value)}};let xfe=1;var kfe=K({name:"ElTable",directives:{Mousewheel:Sfe},components:{TableHeader:nfe,TableBody:lfe,TableFooter:dfe,ElScrollbar:gr,hColgroup:DT},props:vfe,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}=Ft(),n=Ee("table"),s=Tt();Nt(_r,s);const a=zde(s,e);s.store=a;const o=new Kde({store:s.store,table:s,fit:e.fit,showHeader:e.showHeader});s.layout=o;const r=E(()=>(a.states.data.value||[]).length===0),{setCurrentRow:i,getSelectionRows:l,toggleRowSelection:c,clearSelection:u,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:p,clearSort:v,sort:m,updateKeyChildren:g}=ffe(a),{isHidden:b,renderExpanded:C,setDragVisible:w,isGroup:_,handleMouseLeave:x,handleHeaderFooterMousewheel:k,tableSize:T,emptyBlockStyle:R,resizeProxyVisible:I,bodyWidth:P,resizeState:$,doLayout:O,tableBodyStyles:B,tableLayout:H,scrollbarViewStyle:J,scrollbarStyle:Y}=hfe(e,o,a,s),{scrollBarRef:N,scrollTo:L,setScrollLeft:V,setScrollTop:z}=mfe(),G=ei(O,50),Q=`${n.namespace.value}-table_${xfe++}`;s.tableId=Q,s.state={isGroup:_,resizeState:$,doLayout:O,debouncedUpdateLayout:G};const U=E(()=>{var de;return(de=e.sumText)!=null?de:t("el.table.sumText")}),ee=E(()=>{var de;return(de=e.emptyText)!=null?de:t("el.table.emptyText")}),se=E(()=>$T(a.states.originColumns.value)[0]);return pfe(s),tn(()=>{G.cancel()}),{ns:n,layout:o,store:a,columns:se,handleHeaderFooterMousewheel:k,handleMouseLeave:x,tableId:Q,tableSize:T,isHidden:b,isEmpty:r,renderExpanded:C,resizeProxyVisible:I,resizeState:$,isGroup:_,bodyWidth:P,tableBodyStyles:B,emptyBlockStyle:R,debouncedUpdateLayout:G,setCurrentRow:i,getSelectionRows:l,toggleRowSelection:c,clearSelection:u,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:p,clearSort:v,doLayout:O,sort:m,updateKeyChildren:g,t,setDragVisible:w,context:s,computedSumText:U,computedEmptyText:ee,tableLayout:H,scrollbarViewStyle:J,scrollbarStyle:Y,scrollBarRef:N,scrollTo:L,setScrollLeft:V,setScrollTop:z,allowDragLastColumn:e.allowDragLastColumn}}});const Efe=["data-prefix"],Afe={ref:"hiddenColumns",class:"hidden-columns"};function Tfe(e,t,n,s,a,o){const r=Ge("hColgroup"),i=Ge("table-header"),l=Ge("table-body"),c=Ge("table-footer"),u=Ge("el-scrollbar"),f=z4("mousewheel");return S(),M("div",{ref:"tableWrapper",class:D([{[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:et(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[1]||(t[1]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h))},[A("div",{ref:"tableInnerWrapper",class:D(e.ns.e("inner-wrapper"))},[A("div",Afe,[ue(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?Ct((S(),M("div",{key:0,ref:"headerWrapper",class:D(e.ns.e("header-wrapper"))},[A("table",{ref:"tableHeader",class:D(e.ns.e("header")),style:et(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[W(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),W(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)),[[f,e.handleHeaderFooterMousewheel]]):ie("v-if",!0),A("div",{ref:"bodyWrapper",class:D(e.ns.e("body-wrapper"))},[W(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:t[0]||(t[0]=h=>e.$emit("scroll",h))},{default:X(()=>[A("table",{ref:"tableBody",class:D(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:et({width:e.bodyWidth,tableLayout:e.tableLayout})},[W(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(S(),ce(i,{key:0,ref:"tableHeaderRef",class:D(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"])):ie("v-if",!0),W(l,{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"?(S(),ce(c,{key:1,class:D(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"])):ie("v-if",!0)],6),e.isEmpty?(S(),M("div",{key:0,ref:"emptyBlock",style:et(e.emptyBlockStyle),class:D(e.ns.e("empty-block"))},[A("span",{class:D(e.ns.e("empty-text"))},[ue(e.$slots,"empty",{},()=>[We(ge(e.computedEmptyText),1)])],2)],6)):ie("v-if",!0),e.$slots.append?(S(),M("div",{key:1,ref:"appendWrapper",class:D(e.ns.e("append-wrapper"))},[ue(e.$slots,"append")],2)):ie("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native"])],2),e.showSummary&&e.tableLayout==="fixed"?Ct((S(),M("div",{key:1,ref:"footerWrapper",class:D(e.ns.e("footer-wrapper"))},[A("table",{class:D(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:et(e.tableBodyStyles)},[W(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),W(c,{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)),[[jt,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):ie("v-if",!0),e.border||e.isGroup?(S(),M("div",{key:2,class:D(e.ns.e("border-left-patch"))},null,2)):ie("v-if",!0)],2),Ct(A("div",{ref:"resizeProxy",class:D(e.ns.e("column-resize-proxy"))},null,2),[[jt,e.resizeProxyVisible]])],46,Efe)}var Mfe=ps(kfe,[["render",Tfe]]);const Pfe={selection:"table-column--selection",expand:"table__expand-column"},Rfe={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:""}},Ife=e=>Pfe[e]||"",Ofe={selection:{renderHeader({store:e}){var t;function n(){return e.states.data.value&&e.states.data.value.length===0}return lt(yr,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":(t=e.toggleAllSelection)!=null?t:void 0,modelValue:e.states.isAllSelected.value,ariaLabel:e.t("el.table.selectAllLabel")})},renderCell({row:e,column:t,store:n,$index:s}){return lt(yr,{disabled:t.selectable?!t.selectable.call(null,e,s):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:a=>a.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:n.t("el.table.selectRowLabel")})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const s=e.index;return st(s)?n=t+s:Qe(s)&&(n=s(t)),lt("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:s,$index:a}){var o,r,i;const{ns:l}=n,c=[l.e("expand-icon")];!e.renderExpand&&s&&c.push(l.em("expand-icon","expanded"));const u=function(h){h.stopPropagation(),n.toggleRowExpansion(t)},f=(i=(r=(o=n.states.rowExpandable).value)==null?void 0:r.call(o,t,a))!=null?i:!0;return f||c.push(l.is("disabled")),lt("button",{type:"button",disabled:!f,"aria-label":n.t(s?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":s,class:c,onClick:u},{default:()=>e.renderExpand?[e.renderExpand({expanded:s,expandable:f})]:[lt(Je,null,{default:()=>[lt(Fs)]})]})},sortable:!1,resizable:!1}};function Lfe({row:e,column:t,$index:n}){var s;const a=t.property,o=a&&Af(e,a).value;return t&&t.formatter?t.formatter(e,t,o,n):((s=o==null?void 0:o.toString)==null?void 0:s.call(o))||""}function Nfe({row:e,treeNode:t,store:n},s=!1){const{ns:a}=n;if(!t)return s?[lt("span",{class:a.e("placeholder")})]:null;const o=[],r=function(i){i.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&o.push(lt("span",{class:a.e("indent"),style:{"padding-left":`${t.indent}px`}})),on(t.expanded)&&!t.noLazyChildren){const i=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let l=Fs;t.loading&&(l=Bs),o.push(lt("button",{type:"button","aria-label":n.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:i,onClick:r},{default:()=>[lt(Je,{class:a.is("loading",t.loading)},{default:()=>[lt(l)]})]}))}else o.push(lt("span",{class:a.e("placeholder")}));return o}function JT(e,t){return e.reduce((n,s)=>(n[s]=s,n),t)}function $fe(e,t){const n=Tt();return{registerComplexWatchers:()=>{const o=["fixed"],r={realWidth:"width",realMinWidth:"minWidth"},i=JT(o,r);Object.keys(i).forEach(l=>{const c=r[l];qt(t,c)&&be(()=>t[c],u=>{let f=u;c==="width"&&l==="realWidth"&&(f=I6(u)),c==="minWidth"&&l==="realMinWidth"&&(f=AT(u)),n.columnConfig.value[c]=f,n.columnConfig.value[l]=f;const h=c==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const o=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],r=["showOverflowTooltip"],i={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},l=JT(o,i);Object.keys(l).forEach(c=>{const u=i[c];qt(t,u)&&be(()=>t[u],f=>{n.columnConfig.value[c]=f,(c==="filters"||c==="filterMethod")&&(n.columnConfig.value.filterable=!!(n.columnConfig.value.filters||n.columnConfig.value.filterMethod))})}),r.forEach(c=>{qt(e.value.props,c)&&be(()=>e.value.props[c],u=>{n.columnConfig.value.type!=="selection"&&Wt(t[c])&&(n.columnConfig.value[c]=u)})})}}}function Dfe(e,t,n){const s=Tt(),a=F(""),o=F(!1),r=F(),i=F(),l=Ee("table");ja(()=>{r.value=e.align?`is-${e.align}`:null,r.value}),ja(()=>{i.value=e.headerAlign?`is-${e.headerAlign}`:r.value,i.value});const c=E(()=>{let _=s.vnode.vParent||s.parent;for(;_&&!_.tableId&&!_.columnId;)_=_.vnode.vParent||_.parent;return _}),u=E(()=>{const{store:_}=s.parent;if(!_)return!1;const{treeData:x}=_.states,k=x.value;return k&&Object.keys(k).length>0}),f=F(I6(e.width)),h=F(AT(e.minWidth)),p=_=>(f.value&&(_.width=f.value),h.value&&(_.minWidth=h.value),!f.value&&h.value&&(_.width=void 0),_.minWidth||(_.minWidth=80),_.realWidth=Number(Wt(_.width)?_.minWidth:_.width),_),v=_=>{const x=_.type,k=Ofe[x]||{};Object.keys(k).forEach(R=>{const I=k[R];R!=="className"&&!Wt(I)&&(_[R]=I)});const T=Ife(x);if(T){const R=`${d(l.namespace)}-${T}`;_.className=_.className?`${_.className} ${R}`:R}return _},m=_=>{Ae(_)?_.forEach(k=>x(k)):x(_);function x(k){var T;((T=k==null?void 0:k.type)==null?void 0:T.name)==="ElTableColumn"&&(k.vParent=s)}};return{columnId:a,realAlign:r,isSubColumn:o,realHeaderAlign:i,columnOrTableParent:c,setColumnWidth:p,setColumnForcedProps:v,setColumnRenders:_=>{e.renderHeader||_.type!=="selection"&&(_.renderHeader=k=>{if(s.columnConfig.value.label,t.header){const T=t.header(k);if(IT(T))return lt(He,T)}return We(_.label)}),t["filter-icon"]&&(_.renderFilterIcon=k=>ue(t,"filter-icon",k)),t.expand&&(_.renderExpand=k=>ue(t,"expand",k));let x=_.renderCell;return _.type==="expand"?(_.renderCell=k=>lt("div",{class:"cell"},[x(k)]),n.value.renderExpanded=k=>t.default?t.default(k):t.default):(x=x||Lfe,_.renderCell=k=>{let T=null;if(t.default){const B=t.default(k);T=B.some(H=>H.type!==Jn)?B:x(k)}else T=x(k);const{columns:R}=n.value.store.states,I=R.value.findIndex(B=>B.type==="default"),P=u.value&&k.cellIndex===I,$=Nfe(k,P),O={class:"cell",style:{}};return _.showOverflowTooltip&&(O.class=`${O.class} ${d(l.namespace)}-tooltip`,O.style={width:`${(k.column.realWidth||Number(k.column.width))-1}px`}),m(T),lt("div",O,[$,T])}),_},getPropsData:(..._)=>_.reduce((x,k)=>(Ae(k)&&k.forEach(T=>{x[T]=e[T]}),x),{}),getColumnElIndex:(_,x)=>Array.prototype.indexOf.call(_,x),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",s.columnConfig.value)}}}var Ffe={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 Bfe=1;var ZT=K({name:"ElTableColumn",components:{ElCheckbox:yr},props:Ffe,setup(e,{slots:t}){const n=Tt(),s=F({}),a=E(()=>{let w=n.parent;for(;w&&!w.tableId;)w=w.parent;return w}),{registerNormalWatchers:o,registerComplexWatchers:r}=$fe(a,e),{columnId:i,isSubColumn:l,realHeaderAlign:c,columnOrTableParent:u,setColumnWidth:f,setColumnForcedProps:h,setColumnRenders:p,getPropsData:v,getColumnElIndex:m,realAlign:g,updateColumnOrder:b}=Dfe(e,t,a),C=u.value;i.value=`${"tableId"in C&&C.tableId||"columnId"in C&&C.columnId}_column_${Bfe++}`,J2(()=>{l.value=a.value!==C;const w=e.type||"default",_=e.sortable===""?!0:e.sortable,x=w==="selection"?!1:Wt(e.showOverflowTooltip)?C.props.showOverflowTooltip:e.showOverflowTooltip,k=Wt(e.tooltipFormatter)?C.props.tooltipFormatter:e.tooltipFormatter,T={...Rfe[w],id:i.value,type:w,property:e.prop||e.property,align:g,headerAlign:c,showOverflowTooltip:x,tooltipFormatter:k,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:_,index:e.index,rawColumnKey:n.vnode.key};let O=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);O=Mde(T,O),O=Rde(p,f,h)(O),s.value=O,o(),r()}),Mt(()=>{var w,_;const x=u.value,k=l.value?(w=x.vnode.el)==null?void 0:w.children:(_=x.refs.hiddenColumns)==null?void 0:_.children,T=()=>m(k||[],n.vnode.el);s.value.getColumnIndex=T,T()>-1&&a.value.store.commit("insertColumn",s.value,l.value?"columnConfig"in x&&x.columnConfig.value:null,b)}),tn(()=>{const w=s.value.getColumnIndex;(w?w():-1)>-1&&a.value.store.commit("removeColumn",s.value,l.value?"columnConfig"in C&&C.columnConfig.value:null,b)}),n.columnId=i.value,n.columnConfig=s},render(){var e,t,n;try{const s=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),a=[];if(Ae(s))for(const r of s)((n=r.type)==null?void 0:n.name)==="ElTableColumn"||r.shapeFlag&2?a.push(r):r.type===He&&Ae(r.children)&&r.children.forEach(i=>{(i==null?void 0:i.patchFlag)!==1024&&!Xe(i==null?void 0:i.children)&&a.push(i)});return lt("div",a)}catch{return lt("div",[])}}});const Vfe=wt(Mfe,{TableColumn:ZT}),zfe=In(ZT);var Ou=(e=>(e.ASC="asc",e.DESC="desc",e))(Ou||{}),av=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(av||{}),QT=(e=>(e.LEFT="left",e.RIGHT="right",e))(QT||{});const G6={asc:"desc",desc:"asc"},ov=Symbol("placeholder"),Hfe=(e,t,n)=>{var s,a,o;const r={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:(s=e.flexGrow)!=null?s:0,flexShrink:(a=e.flexShrink)!=null?a:1}},i={...(o=e.style)!=null?o:{},...r,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(i.maxWidth=e.maxWidth),e.minWidth&&(i.minWidth=e.minWidth)),i};function Wfe(e,t,n){const s=E(()=>d(t).map((g,b)=>{var C,w;return{...g,key:(w=(C=g.key)!=null?C:g.dataKey)!=null?w:b}})),a=E(()=>d(s).filter(g=>!g.hidden)),o=E(()=>d(a).filter(g=>g.fixed==="left"||g.fixed===!0)),r=E(()=>d(a).filter(g=>g.fixed==="right")),i=E(()=>d(a).filter(g=>!g.fixed)),l=E(()=>{const g=[];return d(o).forEach(b=>{g.push({...b,placeholderSign:ov})}),d(i).forEach(b=>{g.push(b)}),d(r).forEach(b=>{g.push({...b,placeholderSign:ov})}),g}),c=E(()=>d(o).length||d(r).length),u=E(()=>d(s).reduce((g,b)=>(g[b.key]=Hfe(b,d(n),e.fixed),g),{})),f=E(()=>d(a).reduce((g,b)=>g+b.width,0)),h=g=>d(s).find(b=>b.key===g),p=g=>d(u)[g],v=(g,b)=>{g.width=b};function m(g){var b;const{key:C}=g.currentTarget.dataset;if(!C)return;const{sortState:w,sortBy:_}=e;let x=Ou.ASC;bt(w)?x=G6[w[C]]:x=G6[_.order],(b=e.onColumnSort)==null||b.call(e,{column:h(C),key:C,order:x})}return{columns:s,columnsStyles:u,columnsTotalWidth:f,fixedColumnsOnLeft:o,fixedColumnsOnRight:r,hasFixedColumns:c,mainColumns:l,normalColumns:i,visibleColumns:a,getColumn:h,getColumnStyle:p,updateColumnWidth:v,onColumnSorted:m}}const jfe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,onMaybeEndReached:a})=>{const o=F({scrollLeft:0,scrollTop:0});function r(p){var v,m,g;const{scrollTop:b}=p;(v=t.value)==null||v.scrollTo(p),(m=n.value)==null||m.scrollToTop(b),(g=s.value)==null||g.scrollToTop(b)}function i(p){o.value=p,r(p)}function l(p){o.value.scrollTop=p,r(d(o))}function c(p){var v,m;o.value.scrollLeft=p,(m=(v=t.value)==null?void 0:v.scrollTo)==null||m.call(v,d(o))}function u(p){var v;i(p),(v=e.onScroll)==null||v.call(e,p)}function f({scrollTop:p}){const{scrollTop:v}=d(o);p!==v&&l(p)}function h(p,v="auto"){var m;(m=t.value)==null||m.scrollToRow(p,v)}return be(()=>d(o).scrollTop,(p,v)=>{p>v&&a()}),{scrollPos:o,scrollTo:i,scrollToLeft:c,scrollToTop:l,scrollToRow:h,onScroll:u,onVerticalScroll:f}},Kfe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,tableInstance:a,ns:o,isScrolling:r})=>{const i=Tt(),{emit:l}=i,c=bn(!1),u=F(e.defaultExpandedRowKeys||[]),f=F(-1),h=bn(null),p=F({}),v=F({}),m=bn({}),g=bn({}),b=bn({}),C=E(()=>st(e.estimatedRowHeight));function w(P){var $;($=e.onRowsRendered)==null||$.call(e,P),P.rowCacheEnd>d(f)&&(f.value=P.rowCacheEnd)}function _({hovered:P,rowKey:$}){if(r.value)return;a.vnode.el.querySelectorAll(`[rowkey="${String($)}"]`).forEach(H=>{P?H.classList.add(o.is("hovered")):H.classList.remove(o.is("hovered"))})}function x({expanded:P,rowData:$,rowIndex:O,rowKey:B}){var H,J;const Y=[...d(u)],N=Y.indexOf(B);P?N===-1&&Y.push(B):N>-1&&Y.splice(N,1),u.value=Y,l("update:expandedRowKeys",Y),(H=e.onRowExpand)==null||H.call(e,{expanded:P,rowData:$,rowIndex:O,rowKey:B}),(J=e.onExpandedRowsChange)==null||J.call(e,Y),a.vnode.el.querySelector(`.${o.is("hovered")}[rowkey="${String(B)}"]`)&&ze(()=>_({hovered:!0,rowKey:B}))}const k=ei(()=>{var P,$,O,B;c.value=!0,p.value={...d(p),...d(v)},T(d(h),!1),v.value={},h.value=null,(P=t.value)==null||P.forceUpdate(),($=n.value)==null||$.forceUpdate(),(O=s.value)==null||O.forceUpdate(),(B=i.proxy)==null||B.$forceUpdate(),c.value=!1},0);function T(P,$=!1){d(C)&&[t,n,s].forEach(O=>{const B=d(O);B&&B.resetAfterRowIndex(P,$)})}function R(P,$,O){const B=d(h);(B===null||B>O)&&(h.value=O),v.value[P]=$}function I({rowKey:P,height:$,rowIndex:O},B){B?B===QT.RIGHT?b.value[P]=$:m.value[P]=$:g.value[P]=$;const H=Math.max(...[m,b,g].map(J=>J.value[P]||0));d(p)[P]!==H&&(R(P,H,O),k())}return{expandedRowKeys:u,lastRenderedRowIndex:f,isDynamic:C,isResetting:c,rowHeights:p,resetAfterIndex:T,onRowExpanded:x,onRowHovered:_,onRowsRendered:w,onRowHeightChange:I}},Ufe=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:s})=>{const a=F({}),o=E(()=>{const i={},{data:l,rowKey:c}=e,u=d(t);if(!u||!u.length)return l;const f=[],h=new Set;u.forEach(v=>h.add(v));let p=l.slice();for(p.forEach(v=>i[v[c]]=0);p.length>0;){const v=p.shift();f.push(v),h.has(v[c])&&Ae(v.children)&&v.children.length>0&&(p=[...v.children,...p],v.children.forEach(m=>i[m[c]]=i[v[c]]+1))}return a.value=i,f}),r=E(()=>{const{data:i,expandColumnKey:l}=e;return l?d(o):i});return be(r,(i,l)=>{i!==l&&(n.value=-1,s(0,!0))}),{data:r,depthMap:a}},qfe=(e,t)=>e+t,P1=e=>Ae(e)?e.reduce(qfe,0):e,Lu=(e,t,n={})=>Qe(e)?e(t):e??n,vc=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Nn(e[t])}),e),eM=e=>vn(e)?t=>lt(e,t):e,Gfe=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:s,fixedColumnsOnRight:a})=>{const o=E(()=>{const{fixed:b,width:C,vScrollbarSize:w}=e,_=C-w;return b?Math.max(Math.round(d(t)),_):_}),r=E(()=>{const{height:b=0,maxHeight:C=0,footerHeight:w,hScrollbarSize:_}=e;if(C>0){const x=d(h),k=d(n),R=d(f)+x+k+_;return Math.min(R,C-w)}return b-w}),i=E(()=>{const{maxHeight:b}=e,C=d(r);if(st(b)&&b>0)return C;const w=d(n)+d(f)+d(h);return Math.min(C,w)}),l=b=>b.width,c=E(()=>P1(d(s).map(l))),u=E(()=>P1(d(a).map(l))),f=E(()=>P1(e.headerHeight)),h=E(()=>{var b;return(((b=e.fixedData)==null?void 0:b.length)||0)*e.rowHeight}),p=E(()=>d(r)-d(f)-d(h)),v=E(()=>{const{style:b={},height:C,width:w}=e;return vc({...b,height:C,width:w})}),m=E(()=>vc({height:e.footerHeight})),g=E(()=>({top:Nn(d(f)),bottom:Nn(e.footerHeight),width:Nn(e.width)}));return{bodyWidth:o,fixedTableHeight:i,mainTableHeight:r,leftTableWidth:c,rightTableWidth:u,windowHeight:p,footerHeight:m,emptyStyle:g,rootStyle:v,headerHeight:f}};function Yfe(e){const t=F(),n=F(),s=F(),{columns:a,columnsStyles:o,columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:l,hasFixedColumns:c,mainColumns:u,onColumnSorted:f}=Wfe(e,sn(e,"columns"),sn(e,"fixed")),{scrollTo:h,scrollToLeft:p,scrollToTop:v,scrollToRow:m,onScroll:g,onVerticalScroll:b,scrollPos:C}=jfe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,onMaybeEndReached:ae}),w=Ee("table-v2"),_=Tt(),x=bn(!1),{expandedRowKeys:k,lastRenderedRowIndex:T,isDynamic:R,isResetting:I,rowHeights:P,resetAfterIndex:$,onRowExpanded:O,onRowHeightChange:B,onRowHovered:H,onRowsRendered:J}=Kfe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,tableInstance:_,ns:w,isScrolling:x}),{data:Y,depthMap:N}=Ufe(e,{expandedRowKeys:k,lastRenderedRowIndex:T,resetAfterIndex:$}),L=E(()=>{const{estimatedRowHeight:fe,rowHeight:we}=e,Se=d(Y);return st(fe)?Object.values(d(P)).reduce((ke,Oe)=>ke+Oe,0):Se.length*we}),{bodyWidth:V,fixedTableHeight:z,mainTableHeight:G,leftTableWidth:Q,rightTableWidth:U,windowHeight:ee,footerHeight:se,emptyStyle:de,rootStyle:te,headerHeight:pe}=Gfe(e,{columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:l,rowsHeight:L}),he=F(),le=E(()=>{const fe=d(Y).length===0;return Ae(e.fixedData)?e.fixedData.length===0&&fe:fe});function Z(fe){const{estimatedRowHeight:we,rowHeight:Se,rowKey:ke}=e;return we?d(P)[d(Y)[fe][ke]]||we:Se}const j=F(!1);function ae(){const{onEndReached:fe}=e;if(!fe)return;const{scrollTop:we}=d(C),Se=d(L),ke=d(ee),Oe=Se-(we+ke)+e.hScrollbarSize;!j.value&&d(T)>=0&&Se<=we+d(G)-d(pe)?(j.value=!0,fe(Oe)):j.value=!1}return be(()=>d(L),()=>j.value=!1),be(()=>e.expandedRowKeys,fe=>k.value=fe,{deep:!0}),{columns:a,containerRef:he,mainTableRef:t,leftTableRef:n,rightTableRef:s,isDynamic:R,isResetting:I,isScrolling:x,hasFixedColumns:c,columnsStyles:o,columnsTotalWidth:r,data:Y,expandedRowKeys:k,depthMap:N,fixedColumnsOnLeft:i,fixedColumnsOnRight:l,mainColumns:u,bodyWidth:V,emptyStyle:de,rootStyle:te,footerHeight:se,mainTableHeight:G,fixedTableHeight:z,leftTableWidth:Q,rightTableWidth:U,showEmpty:le,getRowHeight:Z,onColumnSorted:f,onRowHovered:H,onRowExpanded:O,onRowsRendered:J,onRowHeightChange:B,scrollTo:h,scrollToLeft:p,scrollToTop:v,scrollToRow:m,onScroll:g,onVerticalScroll:b}}const Y6=Symbol("tableV2"),tM="tableV2GridScrollLeft",nM=String,rv={type:re(Array),required:!0},X6={type:re(Array)},sM={...X6,required:!0},Xfe=String,aM={type:re(Array),default:()=>$n([])},Nu={type:Number,required:!0},oM={type:re([String,Number,Symbol]),default:"id"},rM={type:re(Object)},$u=Me({class:String,columns:rv,columnsStyles:{type:re(Object),required:!0},depth:Number,expandColumnKey:Xfe,estimatedRowHeight:{...Pu.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:re(Function)},onRowHover:{type:re(Function)},onRowHeightChange:{type:re(Function)},rowData:{type:re(Object),required:!0},rowEventHandlers:{type:re(Object)},rowIndex:{type:Number,required:!0},rowKey:oM,style:{type:re(Object)}}),J6={type:Number,required:!0},Z6=Me({class:String,columns:rv,fixedHeaderData:{type:re(Array)},headerData:{type:re(Array),required:!0},headerHeight:{type:re([Number,Array]),default:50},rowWidth:J6,rowHeight:{type:Number,default:50},height:J6,width:J6}),R1=Me({columns:rv,data:sM,fixedData:X6,estimatedRowHeight:$u.estimatedRowHeight,width:Nu,height:Nu,headerWidth:Nu,headerHeight:Z6.headerHeight,bodyWidth:Nu,rowHeight:Nu,cache:oT.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Pu.scrollbarAlwaysOn,scrollbarStartGap:Pu.scrollbarStartGap,scrollbarEndGap:Pu.scrollbarEndGap,class:nM,style:rM,containerStyle:rM,getRowHeight:{type:re(Function),required:!0},rowKey:$u.rowKey,onRowsRendered:{type:re(Function)},onScroll:{type:re(Function)}}),Jfe=Me({cache:R1.cache,estimatedRowHeight:$u.estimatedRowHeight,rowKey:oM,headerClass:{type:re([String,Function])},headerProps:{type:re([Object,Function])},headerCellProps:{type:re([Object,Function])},headerHeight:Z6.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:re([String,Function])},rowProps:{type:re([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:re([Object,Function])},columns:rv,data:sM,dataGetter:{type:re(Function)},fixedData:X6,expandColumnKey:$u.expandColumnKey,expandedRowKeys:aM,defaultExpandedRowKeys:aM,class:nM,fixed:Boolean,style:{type:re(Object)},width:Nu,height:Nu,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Pu.hScrollbarSize,vScrollbarSize:Pu.vScrollbarSize,scrollbarAlwaysOn:lT.alwaysOn,sortBy:{type:re(Object),default:()=>({})},sortState:{type:re(Object),default:void 0},onColumnSort:{type:re(Function)},onExpandedRowsChange:{type:re(Function)},onEndReached:{type:re(Function)},onRowExpand:$u.onRowExpand,onScroll:R1.onScroll,onRowsRendered:R1.onRowsRendered,rowEventHandlers:$u.rowEventHandlers}),Zfe=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:s},a)=>{let o=null,r=0,i=0;const l=(u,f)=>{const h=u<0&&t.value||u>0&&e.value,p=f<0&&s.value||f>0&&n.value;return h||p};return{hasReachedEdge:l,onWheel:u=>{Xi(o);let f=u.deltaX,h=u.deltaY;Math.abs(f)>Math.abs(h)?h=0:f=0,u.shiftKey&&h!==0&&(f=h,h=0),!l(f,h)&&(r+=f,i+=h,u.preventDefault(),o=ti(()=>{a(r,i),r=0,i=0}))}}},Qfe=(e,t,n,s,a,o,r)=>{const i=F(0),l=F(0);let c,u=0,f=0;const h=v=>{Xi(c),i.value=v.touches[0].clientX,l.value=v.touches[0].clientY,u=0,f=0},p=v=>{v.preventDefault(),Xi(c),u+=i.value-v.touches[0].clientX,f+=l.value-v.touches[0].clientY,i.value=v.touches[0].clientX,l.value=v.touches[0].clientY,c=ti(()=>{const m=s.value-d(o),g=a.value-d(r),b=Math.min(t.value.scrollLeft+u,m),C=Math.min(t.value.scrollTop+f,g);n({scrollLeft:b,scrollTop:C}),u=0,f=0})};return an(e,"touchstart",h,{passive:!0}),an(e,"touchmove",p,{passive:!1}),{touchStartX:i,touchStartY:l,handleTouchStart:h,handleTouchMove:p}},iM=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:s,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:o,getEstimatedTotalWidth:r,getColumnOffset:i,getRowOffset:l,getRowPosition:c,getRowStartIndexForOffset:u,getRowStopIndexForStartIndex:f,initCache:h,injectToInstance:p,validateProps:v})=>K({name:e??"ElVirtualList",props:Pu,emits:[g1,b1],setup(m,{emit:g,expose:b,slots:C}){const w=Ee("vl");v(m);const _=Tt(),x=F(h(m,_));p==null||p(_,x);const k=F(),T=F(),R=F(),I=F(),P=F({isScrolling:!1,scrollLeft:st(m.initScrollLeft)?m.initScrollLeft:0,scrollTop:st(m.initScrollTop)?m.initScrollTop:0,updateRequested:!1,xAxisScrollDir:qf,yAxisScrollDir:qf}),$=eT(),O=E(()=>Number.parseInt(`${m.height}`,10)),B=E(()=>Number.parseInt(`${m.width}`,10)),H=E(()=>{const{totalColumn:Ce,totalRow:Ie,columnCache:Re}=m,{isScrolling:Ke,xAxisScrollDir:tt,scrollLeft:ut}=d(P);if(Ce===0||Ie===0)return[0,0,0,0];const Fe=s(m,ut,d(x)),Ue=a(m,Fe,ut,d(x)),Ze=!Ke||tt===y1?Math.max(1,Re):1,Ot=!Ke||tt===qf?Math.max(1,Re):1;return[Math.max(0,Fe-Ze),Math.max(0,Math.min(Ce-1,Ue+Ot)),Fe,Ue]}),J=E(()=>{const{totalColumn:Ce,totalRow:Ie,rowCache:Re}=m,{isScrolling:Ke,yAxisScrollDir:tt,scrollTop:ut}=d(P);if(Ce===0||Ie===0)return[0,0,0,0];const Fe=u(m,ut,d(x)),Ue=f(m,Fe,ut,d(x)),Ze=!Ke||tt===y1?Math.max(1,Re):1,Ot=!Ke||tt===qf?Math.max(1,Re):1;return[Math.max(0,Fe-Ze),Math.max(0,Math.min(Ie-1,Ue+Ot)),Fe,Ue]}),Y=E(()=>o(m,d(x))),N=E(()=>r(m,d(x))),L=E(()=>{var Ce;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:m.direction,height:st(m.height)?`${m.height}px`:m.height,width:st(m.width)?`${m.width}px`:m.width},(Ce=m.style)!=null?Ce:{}]}),V=E(()=>{const Ce=`${d(N)}px`;return{height:`${d(Y)}px`,pointerEvents:d(P).isScrolling?"none":void 0,width:Ce,margin:0,boxSizing:"border-box"}}),z=()=>{const{totalColumn:Ce,totalRow:Ie}=m;if(Ce>0&&Ie>0){const[Ue,Ze,Ot,Xt]=d(H),[it,yt,Lt,xe]=d(J);g(g1,{columnCacheStart:Ue,columnCacheEnd:Ze,rowCacheStart:it,rowCacheEnd:yt,columnVisibleStart:Ot,columnVisibleEnd:Xt,rowVisibleStart:Lt,rowVisibleEnd:xe})}const{scrollLeft:Re,scrollTop:Ke,updateRequested:tt,xAxisScrollDir:ut,yAxisScrollDir:Fe}=d(P);g(b1,{xAxisScrollDir:ut,scrollLeft:Re,yAxisScrollDir:Fe,scrollTop:Ke,updateRequested:tt})},G=Ce=>{const{clientHeight:Ie,clientWidth:Re,scrollHeight:Ke,scrollLeft:tt,scrollTop:ut,scrollWidth:Fe}=Ce.currentTarget,Ue=d(P);if(Ue.scrollTop===ut&&Ue.scrollLeft===tt)return;let Ze=tt;if(cT(m.direction))switch(C1()){case nv:Ze=-tt;break;case S6:Ze=Fe-Re-tt;break}P.value={...Ue,isScrolling:!0,scrollLeft:Ze,scrollTop:Math.max(0,Math.min(ut,Ke-Ie)),updateRequested:!0,xAxisScrollDir:Ru(Ue.scrollLeft,Ze),yAxisScrollDir:Ru(Ue.scrollTop,ut)},ze(()=>j()),ae(),z()},Q=(Ce,Ie)=>{const Re=d(O),Ke=(Y.value-Re)/Ie*Ce;se({scrollTop:Math.min(Y.value-Re,Ke)})},U=(Ce,Ie)=>{const Re=d(B),Ke=(N.value-Re)/Ie*Ce;se({scrollLeft:Math.min(N.value-Re,Ke)})},{onWheel:ee}=Zfe({atXStartEdge:E(()=>P.value.scrollLeft<=0),atXEndEdge:E(()=>P.value.scrollLeft>=N.value-d(B)),atYStartEdge:E(()=>P.value.scrollTop<=0),atYEndEdge:E(()=>P.value.scrollTop>=Y.value-d(O))},(Ce,Ie)=>{var Re,Ke,tt,ut;(Ke=(Re=T.value)==null?void 0:Re.onMouseUp)==null||Ke.call(Re),(ut=(tt=R.value)==null?void 0:tt.onMouseUp)==null||ut.call(tt);const Fe=d(B),Ue=d(O);se({scrollLeft:Math.min(P.value.scrollLeft+Ce,N.value-Fe),scrollTop:Math.min(P.value.scrollTop+Ie,Y.value-Ue)})});an(k,"wheel",ee,{passive:!1});const se=({scrollLeft:Ce=P.value.scrollLeft,scrollTop:Ie=P.value.scrollTop})=>{Ce=Math.max(Ce,0),Ie=Math.max(Ie,0);const Re=d(P);Ie===Re.scrollTop&&Ce===Re.scrollLeft||(P.value={...Re,xAxisScrollDir:Ru(Re.scrollLeft,Ce),yAxisScrollDir:Ru(Re.scrollTop,Ie),scrollLeft:Ce,scrollTop:Ie,updateRequested:!0},ze(()=>j()),ae(),z())},{touchStartX:de,touchStartY:te,handleTouchStart:pe,handleTouchMove:he}=Qfe(k,P,se,N,Y,B,O),le=(Ce=0,Ie=0,Re=Ko)=>{const Ke=d(P);Ie=Math.max(0,Math.min(Ie,m.totalColumn-1)),Ce=Math.max(0,Math.min(Ce,m.totalRow-1));const tt=Hx(w.namespace.value),ut=d(x),Fe=o(m,ut),Ue=r(m,ut);se({scrollLeft:i(m,Ie,Re,Ke.scrollLeft,ut,Ue>m.width?tt:0),scrollTop:l(m,Ce,Re,Ke.scrollTop,ut,Fe>m.height?tt:0)})},Z=(Ce,Ie)=>{const{columnWidth:Re,direction:Ke,rowHeight:tt}=m,ut=$.value(t&&Re,t&&tt,t&&Ke),Fe=`${Ce},${Ie}`;if(qt(ut,Fe))return ut[Fe];{const[,Ue]=n(m,Ie,d(x)),Ze=d(x),Ot=cT(Ke),[Xt,it]=c(m,Ce,Ze),[yt]=n(m,Ie,Ze);return ut[Fe]={position:"absolute",left:Ot?void 0:`${Ue}px`,right:Ot?`${Ue}px`:void 0,top:`${it}px`,height:`${Xt}px`,width:`${yt}px`},ut[Fe]}},j=()=>{P.value.isScrolling=!1,ze(()=>{$.value(-1,null,null)})};Mt(()=>{if(!Yt)return;const{initScrollLeft:Ce,initScrollTop:Ie}=m,Re=d(k);Re&&(st(Ce)&&(Re.scrollLeft=Ce),st(Ie)&&(Re.scrollTop=Ie)),z()});const ae=()=>{const{direction:Ce}=m,{scrollLeft:Ie,scrollTop:Re,updateRequested:Ke}=d(P),tt=d(k);if(Ke&&tt){if(Ce===Yf)switch(C1()){case nv:{tt.scrollLeft=-Ie;break}case C6:{tt.scrollLeft=Ie;break}default:{const{clientWidth:ut,scrollWidth:Fe}=tt;tt.scrollLeft=Fe-ut-Ie;break}}else tt.scrollLeft=Math.max(0,Ie);tt.scrollTop=Math.max(0,Re)}},{resetAfterColumnIndex:fe,resetAfterRowIndex:we,resetAfter:Se}=_.proxy;b({windowRef:k,innerRef:I,getItemStyleCache:$,touchStartX:de,touchStartY:te,handleTouchStart:pe,handleTouchMove:he,scrollTo:se,scrollToItem:le,states:P,resetAfterColumnIndex:fe,resetAfterRowIndex:we,resetAfter:Se});const ke=()=>{const{scrollbarAlwaysOn:Ce,scrollbarStartGap:Ie,scrollbarEndGap:Re,totalColumn:Ke,totalRow:tt}=m,ut=d(B),Fe=d(O),Ue=d(N),Ze=d(Y),{scrollLeft:Ot,scrollTop:Xt}=d(P),it=lt(M6,{ref:T,alwaysOn:Ce,startGap:Ie,endGap:Re,class:w.e("horizontal"),clientSize:ut,layout:"horizontal",onScroll:U,ratio:ut*100/Ue,scrollFrom:Ot/(Ue-ut),total:tt,visible:!0}),yt=lt(M6,{ref:R,alwaysOn:Ce,startGap:Ie,endGap:Re,class:w.e("vertical"),clientSize:Fe,layout:"vertical",onScroll:Q,ratio:Fe*100/Ze,scrollFrom:Xt/(Ze-Fe),total:Ke,visible:!0});return{horizontalScrollbar:it,verticalScrollbar:yt}},Oe=()=>{var Ce;const[Ie,Re]=d(H),[Ke,tt]=d(J),{data:ut,totalColumn:Fe,totalRow:Ue,useIsScrolling:Ze,itemKey:Ot}=m,Xt=[];if(Ue>0&&Fe>0)for(let it=Ke;it<=tt;it++)for(let yt=Ie;yt<=Re;yt++){const Lt=Ot({columnIndex:yt,data:ut,rowIndex:it});Xt.push(lt(He,{key:Lt},(Ce=C.default)==null?void 0:Ce.call(C,{columnIndex:yt,data:ut,isScrolling:Ze?d(P).isScrolling:void 0,style:Z(it,yt),rowIndex:it})))}return Xt},Be=()=>{const Ce=kt(m.innerElement),Ie=Oe();return[lt(Ce,At(m.innerProps,{style:d(V),ref:I}),Xe(Ce)?Ie:{default:()=>Ie})]};return()=>{const Ce=kt(m.containerElement),{horizontalScrollbar:Ie,verticalScrollbar:Re}=ke(),Ke=Be();return lt("div",{key:0,class:w.e("wrapper"),role:m.role},[lt(Ce,{class:m.className,style:d(L),onScroll:G,ref:k},Xe(Ce)?Ke:{default:()=>Ke}),Ie,Re])}}}),{max:I1,min:lM,floor:cM}=Math,ehe={column:"columnWidth",row:"rowHeight"},Q6={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},ll=(e,t,n,s)=>{const[a,o,r]=[n[s],e[ehe[s]],n[Q6[s]]];if(t>r){let i=0;if(r>=0){const l=a[r];i=l.offset+l.size}for(let l=r+1;l<=t;l++){const c=o(l);a[l]={offset:i,size:c},i+=c}n[Q6[s]]=t}return a[t]},uM=(e,t,n,s,a,o)=>{for(;n<=s;){const r=n+cM((s-n)/2),i=ll(e,r,t,o).offset;if(i===a)return r;i<a?n=r+1:s=r-1}return I1(0,n-1)},the=(e,t,n,s,a)=>{const o=a==="column"?e.totalColumn:e.totalRow;let r=1;for(;n<o&&ll(e,n,t,a).offset<s;)n+=r,r*=2;return uM(e,t,cM(n/2),lM(n,o-1),s,a)},dM=(e,t,n,s)=>{const[a,o]=[t[s],t[Q6[s]]];return(o>0?a[o].offset:0)>=n?uM(e,t,0,o,n,s):the(e,t,I1(0,o),n,s)},fM=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:s})=>{let a=0;if(n>=e&&(n=e-1),n>=0){const i=s[n];a=i.offset+i.size}const r=(e-n-1)*t;return a+r},hM=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:s})=>{let a=0;if(s>e&&(s=e-1),s>=0){const i=t[s];a=i.offset+i.size}const r=(e-s-1)*n;return a+r},nhe={column:hM,row:fM},pM=(e,t,n,s,a,o,r)=>{const[i,l]=[o==="row"?e.height:e.width,nhe[o]],c=ll(e,t,a,o),u=l(e,a),f=I1(0,lM(u-i,c.offset)),h=I1(0,c.offset-i+r+c.size);switch(n===w1&&(s>=h-i&&s<=f+i?n=Ko:n=ui),n){case ev:return f;case tv:return h;case ui:return Math.round(h+(f-h)/2);case Ko:default:return s>=h&&s<=f?s:h>f||s<h?h:f}},she=iM({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const s=ll(e,t,n,"column");return[s.size,s.offset]},getRowPosition:(e,t,n)=>{const s=ll(e,t,n,"row");return[s.size,s.offset]},getColumnOffset:(e,t,n,s,a,o)=>pM(e,t,n,s,a,"column",o),getRowOffset:(e,t,n,s,a,o)=>pM(e,t,n,s,a,"row",o),getColumnStartIndexForOffset:(e,t,n)=>dM(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,s)=>{const a=ll(e,t,s,"column"),o=n+e.width;let r=a.offset+a.size,i=t;for(;i<e.totalColumn-1&&r<o;)i++,r+=ll(e,t,s,"column").size;return i},getEstimatedTotalHeight:fM,getEstimatedTotalWidth:hM,getRowStartIndexForOffset:(e,t,n)=>dM(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,s)=>{const{totalRow:a,height:o}=e,r=ll(e,t,s,"row"),i=n+o;let l=r.size+r.offset,c=t;for(;c<a-1&&l<i;)c++,l+=ll(e,c,s,"row").size;return c},injectToInstance:(e,t)=>{const n=({columnIndex:o,rowIndex:r},i)=>{var l,c;i=Wt(i)?!0:i,st(o)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,o-1)),st(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),(l=e.exposed)==null||l.getItemStyleCache.value(-1,null,null),i&&((c=e.proxy)==null||c.$forceUpdate())},s=(o,r)=>{n({columnIndex:o},r)},a=(o,r)=>{n({rowIndex:o},r)};Object.assign(e.proxy,{resetAfterColumnIndex:s,resetAfterRowIndex:a,resetAfter:n})},initCache:({estimatedColumnWidth:e=_6,estimatedRowHeight:t=_6})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),ahe=iM({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},s,a,o,r,i)=>{n=Number(n);const l=Math.max(0,e*t-n),c=Math.min(l,s*t),u=Math.max(0,s*t-n+i+t);switch(a==="smart"&&(o>=u-n&&o<=c+n?a=Ko:a=ui),a){case ev:return c;case tv:return u;case ui:{const f=Math.round(u+(c-u)/2);return f<Math.ceil(n/2)?0:f>l+Math.floor(n/2)?l:f}case Ko:default:return o>=u&&o<=c?o:u>c||o<u?u:c}},getRowOffset:({rowHeight:e,height:t,totalRow:n},s,a,o,r,i)=>{t=Number(t);const l=Math.max(0,n*e-t),c=Math.min(l,s*e),u=Math.max(0,s*e-t+i+e);switch(a===w1&&(o>=u-t&&o<=c+t?a=Ko:a=ui),a){case ev:return c;case tv:return u;case ui:{const f=Math.round(u+(c-u)/2);return f<Math.ceil(t/2)?0:f>l+Math.floor(t/2)?l:f}case Ko:default:return o>=u&&o<=c?o:u>c||o<u?u:c}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},s,a)=>{const o=s*e,r=Math.ceil((n+a-o)/e);return Math.max(0,Math.min(t-1,s+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},s,a)=>{const o=s*e,r=Math.ceil((n+a-o)/e);return Math.max(0,Math.min(t-1,s+r-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),ohe=K({name:"ElTableV2Header",props:Z6,setup(e,{slots:t,expose:n}){const s=Ee("table-v2"),a=je(tM),o=F(),r=E(()=>vc({width:e.width,height:e.height})),i=E(()=>vc({width:e.rowWidth,height:e.height})),l=E(()=>Ts(d(e.headerHeight))),c=h=>{const p=d(o);ze(()=>{p!=null&&p.scroll&&p.scroll({left:h})})},u=()=>{const h=s.e("fixed-header-row"),{columns:p,fixedHeaderData:v,rowHeight:m}=e;return v==null?void 0:v.map((g,b)=>{var C;const w=vc({height:m,width:"100%"});return(C=t.fixed)==null?void 0:C.call(t,{class:h,columns:p,rowData:g,rowIndex:-(b+1),style:w})})},f=()=>{const h=s.e("dynamic-header-row"),{columns:p}=e;return d(l).map((v,m)=>{var g;const b=vc({width:"100%",height:v});return(g=t.dynamic)==null?void 0:g.call(t,{class:h,columns:p,headerIndex:m,style:b})})};return lr(()=>{a!=null&&a.value&&c(a.value)}),n({scrollToLeft:c}),()=>{if(!(e.height<=0))return W("div",{ref:o,class:e.class,style:d(r),role:"rowgroup"},[W("div",{style:d(i),class:s.e("header")},[f(),u()])])}}}),rhe="ElTableV2Grid",ihe=e=>{const t=F(),n=F(),s=F(0),a=E(()=>{const{data:g,rowHeight:b,estimatedRowHeight:C}=e;if(!C)return g.length*b}),o=E(()=>{const{fixedData:g,rowHeight:b}=e;return((g==null?void 0:g.length)||0)*b}),r=E(()=>P1(e.headerHeight)),i=E(()=>{const{height:g}=e;return Math.max(0,g-d(r)-d(o))}),l=E(()=>d(r)+d(o)>0),c=({data:g,rowIndex:b})=>g[b][e.rowKey];function u({rowCacheStart:g,rowCacheEnd:b,rowVisibleStart:C,rowVisibleEnd:w}){var _;(_=e.onRowsRendered)==null||_.call(e,{rowCacheStart:g,rowCacheEnd:b,rowVisibleStart:C,rowVisibleEnd:w})}function f(g,b){var C;(C=n.value)==null||C.resetAfterRowIndex(g,b)}function h(g,b){const C=d(t),w=d(n);bt(g)?(C==null||C.scrollToLeft(g.scrollLeft),s.value=g.scrollLeft,w==null||w.scrollTo(g)):(C==null||C.scrollToLeft(g),s.value=g,w==null||w.scrollTo({scrollLeft:g,scrollTop:b}))}function p(g){var b;(b=d(n))==null||b.scrollTo({scrollTop:g})}function v(g,b){const C=d(n);if(!C)return;const w=s.value;C.scrollToItem(g,0,b),w&&h({scrollLeft:w})}function m(){var g,b;(g=d(n))==null||g.$forceUpdate(),(b=d(t))==null||b.$forceUpdate()}return be(()=>e.bodyWidth,()=>{var g;st(e.estimatedRowHeight)&&((g=n.value)==null||g.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:m,fixedRowHeight:o,gridHeight:i,hasHeader:l,headerHeight:r,headerRef:t,totalHeight:a,itemKey:c,onItemRendered:u,resetAfterRowIndex:f,scrollTo:h,scrollToTop:p,scrollToRow:v,scrollLeft:s}},e8=K({name:rhe,props:R1,setup(e,{slots:t,expose:n}){const{ns:s}=je(Y6),{bodyRef:a,fixedRowHeight:o,gridHeight:r,hasHeader:i,headerRef:l,headerHeight:c,totalHeight:u,forceUpdate:f,itemKey:h,onItemRendered:p,resetAfterRowIndex:v,scrollTo:m,scrollToTop:g,scrollToRow:b,scrollLeft:C}=ihe(e);Nt(tM,C),G0(async()=>{var _;await ze();const x=(_=a.value)==null?void 0:_.states.scrollTop;x&&g(Math.round(x)+1)}),n({forceUpdate:f,totalHeight:u,scrollTo:m,scrollToTop:g,scrollToRow:b,resetAfterRowIndex:v});const w=()=>e.bodyWidth;return()=>{const{cache:_,columns:x,data:k,fixedData:T,useIsScrolling:R,scrollbarAlwaysOn:I,scrollbarEndGap:P,scrollbarStartGap:$,style:O,rowHeight:B,bodyWidth:H,estimatedRowHeight:J,headerWidth:Y,height:N,width:L,getRowHeight:V,onScroll:z}=e,G=st(J),Q=G?she:ahe,U=d(c);return W("div",{role:"table",class:[s.e("table"),e.class],style:O},[W(Q,{ref:a,data:k,useIsScrolling:R,itemKey:h,columnCache:0,columnWidth:G?w:H,totalColumn:1,totalRow:k.length,rowCache:_,rowHeight:G?V:B,width:L,height:d(r),class:s.e("body"),role:"rowgroup",scrollbarStartGap:$,scrollbarEndGap:P,scrollbarAlwaysOn:I,onScroll:z,onItemRendered:p,perfMode:!1},{default:ee=>{var se;const de=k[ee.rowIndex];return(se=t.row)==null?void 0:se.call(t,{...ee,columns:x,rowData:de})}}),d(i)&&W(ohe,{ref:l,class:s.e("header-wrapper"),columns:x,headerData:k,headerHeight:e.headerHeight,fixedHeaderData:T,rowWidth:Y,rowHeight:B,width:L,height:Math.min(U+d(o),N)},{dynamic:t.header,fixed:t.row})])}}});function lhe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!vn(e)}const che=(e,{slots:t})=>{const{mainTableRef:n,...s}=e;return W(e8,At({ref:n},s),lhe(t)?t:{default:()=>[t]})};function uhe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!vn(e)}const dhe=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...s}=e;return W(e8,At({ref:n},s),uhe(t)?t:{default:()=>[t]})};function fhe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!vn(e)}const hhe=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...s}=e;return W(e8,At({ref:n},s),fhe(t)?t:{default:()=>[t]})},phe=e=>{const{isScrolling:t}=je(Y6),n=F(!1),s=F(),a=E(()=>st(e.estimatedRowHeight)&&e.rowIndex>=0),o=(l=!1)=>{const c=d(s);if(!c)return;const{columns:u,onRowHeightChange:f,rowKey:h,rowIndex:p,style:v}=e,{height:m}=c.getBoundingClientRect();n.value=!0,ze(()=>{if(l||m!==Number.parseInt(v.height)){const g=u[0],b=(g==null?void 0:g.placeholderSign)===ov;f==null||f({rowKey:h,height:m,rowIndex:p},g&&!b&&g.fixed)}})},r=E(()=>{const{rowData:l,rowIndex:c,rowKey:u,onRowHover:f}=e,h=e.rowEventHandlers||{},p={};return Object.entries(h).forEach(([v,m])=>{Qe(m)&&(p[v]=g=>{m({event:g,rowData:l,rowIndex:c,rowKey:u})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:v,hovered:m})=>{const g=p[v];p[v]=b=>{f({event:b,hovered:m,rowData:l,rowIndex:c,rowKey:u}),g==null||g(b)}}),p}),i=l=>{const{onRowExpand:c,rowData:u,rowIndex:f,rowKey:h}=e;c==null||c({expanded:l,rowData:u,rowIndex:f,rowKey:h})};return Mt(()=>{d(a)&&o(!0)}),{isScrolling:t,measurable:a,measured:n,rowRef:s,eventHandlers:r,onExpand:i}},vhe=K({name:"ElTableV2TableRow",props:$u,setup(e,{expose:t,slots:n,attrs:s}){const{eventHandlers:a,isScrolling:o,measurable:r,measured:i,rowRef:l,onExpand:c}=phe(e);return t({onExpand:c}),()=>{const{columns:u,columnsStyles:f,expandColumnKey:h,depth:p,rowData:v,rowIndex:m,style:g}=e;let b=u.map((C,w)=>{const _=Ae(v.children)&&v.children.length>0&&C.key===h;return n.cell({column:C,columns:u,columnIndex:w,depth:p,style:f[C.key],rowData:v,rowIndex:m,isScrolling:d(o),expandIconProps:_?{rowData:v,rowIndex:m,onExpand:c}:void 0})});if(n.row&&(b=n.row({cells:b.map(C=>Ae(C)&&C.length===1?C[0]:C),style:g,columns:u,depth:p,rowData:v,rowIndex:m,isScrolling:d(o)})),d(r)){const{height:C,...w}=g||{},_=d(i);return W("div",At({ref:l,class:e.class,style:_?g:w,role:"row"},s,d(a)),[b])}return W("div",At(s,{ref:l,class:e.class,style:g,role:"row"},d(a)),[b])}}});function mhe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!vn(e)}const ghe=(e,{slots:t})=>{const{columns:n,columnsStyles:s,depthMap:a,expandColumnKey:o,expandedRowKeys:r,estimatedRowHeight:i,hasFixedColumns:l,rowData:c,rowIndex:u,style:f,isScrolling:h,rowProps:p,rowClass:v,rowKey:m,rowEventHandlers:g,ns:b,onRowHovered:C,onRowExpanded:w}=e,_=Lu(v,{columns:n,rowData:c,rowIndex:u},""),x=Lu(p,{columns:n,rowData:c,rowIndex:u}),k=c[m],T=a[k]||0,R=!!o,I=u<0,P=[b.e("row"),_,b.is("expanded",R&&r.includes(k)),b.is("fixed",!T&&I),b.is("customized",!!t.row),{[b.e(`row-depth-${T}`)]:R&&u>=0}],$=l?C:void 0,O={...x,columns:n,columnsStyles:s,class:P,depth:T,expandColumnKey:o,estimatedRowHeight:I?void 0:i,isScrolling:h,rowIndex:u,rowData:c,rowKey:k,rowEventHandlers:g,style:f};return W(vhe,At(O,{onRowExpand:w,onMouseenter:J=>{$==null||$({hovered:!0,rowKey:k,event:J,rowData:c,rowIndex:u})},onMouseleave:J=>{$==null||$({hovered:!1,rowKey:k,event:J,rowData:c,rowIndex:u})},rowkey:k}),mhe(t)?t:{default:()=>[t]})},t8=(e,{slots:t})=>{var n;const{cellData:s,style:a}=e,o=((n=s==null?void 0:s.toString)==null?void 0:n.call(s))||"",r=ue(t,"default",e,()=>[o]);return W("div",{class:e.class,title:o,style:a},[r])};t8.displayName="ElTableV2Cell",t8.inheritAttrs=!1;const vM=e=>{const{expanded:t,expandable:n,onExpand:s,style:a,size:o,ariaLabel:r}=e,i={onClick:n?()=>s(!t):void 0,ariaLabel:r,ariaExpanded:t,class:e.class};return W("button",At(i,{type:"button"}),[W(Je,{size:o,style:a},{default:()=>[W(Fs,null,null)]})])};vM.inheritAttrs=!1;const n8=({columns:e,column:t,columnIndex:n,depth:s,expandIconProps:a,isScrolling:o,rowData:r,rowIndex:i,style:l,expandedRowKeys:c,ns:u,t:f,cellProps:h,expandColumnKey:p,indentSize:v,iconSize:m,rowKey:g},{slots:b})=>{const C=vc(l);if(t.placeholderSign===ov)return W("div",{class:u.em("row-cell","placeholder"),style:C},null);const{cellRenderer:w,dataKey:_,dataGetter:x}=t,k=Qe(x)?x({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i}):ts(r,_??""),T=Lu(h,{cellData:k,columns:e,column:t,columnIndex:n,rowIndex:i,rowData:r}),R={class:u.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:k,isScrolling:o,rowData:r,rowIndex:i},I=eM(w),P=I?I(R):ue(b,"default",R,()=>[W(t8,R,null)]),$=[u.e("row-cell"),t.class,t.align===av.CENTER&&u.is("align-center"),t.align===av.RIGHT&&u.is("align-right")],O=i>=0&&p&&t.key===p,B=i>=0&&c.includes(r[g]);let H;const J=`margin-inline-start: ${s*v}px;`;return O&&(bt(a)?H=W(vM,At(a,{class:[u.e("expand-icon"),u.is("expanded",B)],size:m,expanded:B,ariaLabel:f(B?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:J,expandable:!0}),null):H=W("div",{style:[J,`width: ${m}px; height: ${m}px;`].join(" ")},null)),W("div",At({class:$,style:C},T,{role:"cell"}),[H,P])};n8.inheritAttrs=!1;const bhe=Me({class:String,columns:rv,columnsStyles:{type:re(Object),required:!0},headerIndex:Number,style:{type:re(Object)}}),yhe=K({name:"ElTableV2HeaderRow",props:bhe,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:s,headerIndex:a,style:o}=e;let r=n.map((i,l)=>t.cell({columns:n,column:i,columnIndex:l,headerIndex:a,style:s[i.key]}));return t.header&&(r=t.header({cells:r.map(i=>Ae(i)&&i.length===1?i[0]:i),columns:n,headerIndex:a})),W("div",{class:e.class,style:o,role:"row"},[r])}}});function whe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!vn(e)}const _he=({columns:e,columnsStyles:t,headerIndex:n,style:s,headerClass:a,headerProps:o,ns:r},{slots:i})=>{const l={columns:e,headerIndex:n},c=[r.e("header-row"),Lu(a,l,""),r.is("customized",!!i.header)],u={...Lu(o,l),columnsStyles:t,class:c,columns:e,headerIndex:n,style:s};return W(yhe,u,whe(i)?i:{default:()=>[i]})},s8=(e,{slots:t})=>ue(t,"default",e,()=>{var n,s;return[W("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(s=e.column)==null?void 0:s.title])]});s8.displayName="ElTableV2HeaderCell",s8.inheritAttrs=!1;const Che=e=>{const{sortOrder:t}=e;return W("button",{type:"button","aria-label":e.ariaLabel,class:e.class},[W(Je,{size:14},{default:()=>[t===Ou.ASC?W(h9,null,null):W(f9,null,null)]})])},mM=(e,{slots:t})=>{const{column:n,ns:s,t:a,style:o,onColumnSorted:r}=e,i=vc(o);if(n.placeholderSign===ov)return W("div",{class:s.em("header-row-cell","placeholder"),style:i},null);const{headerCellRenderer:l,headerClass:c,sortable:u}=n,f={...e,class:s.e("header-cell-text")},h=eM(l),p=h?h(f):ue(t,"default",f,()=>[W(s8,f,null)]),{sortBy:v,sortState:m,headerCellProps:g}=e;let b,C,w;if(m){const k=m[n.key];b=!!G6[k],C=b?k:Ou.ASC}else b=n.key===v.key,C=b?v.order:Ou.ASC;C===Ou.ASC?w="ascending":C===Ou.DESC?w="descending":w=void 0;const _=[s.e("header-cell"),Lu(c,e,""),n.align===av.CENTER&&s.is("align-center"),n.align===av.RIGHT&&s.is("align-right"),u&&s.is("sortable")],x={...Lu(g,e),onClick:n.sortable?r:void 0,ariaSort:u?w:void 0,class:_,style:i,"data-key":n.key};return W("div",At(x,{role:"columnheader"}),[p,u&&W(Che,{class:[s.e("sort-icon"),b&&s.is("sorting")],sortOrder:C,ariaLabel:a("el.table.sortLabel",{column:n.title||""})},null)])},gM=(e,{slots:t})=>{var n;return W("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};gM.displayName="ElTableV2Footer";const bM=(e,{slots:t})=>{const n=ue(t,"default",{},()=>[W(PA,null,null)]);return W("div",{class:e.class,style:e.style},[n])};bM.displayName="ElTableV2Empty";const yM=(e,{slots:t})=>{var n;return W("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};yM.displayName="ElTableV2Overlay";function iv(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!vn(e)}const She=K({name:"ElTableV2",props:Jfe,setup(e,{slots:t,expose:n}){const s=Ee("table-v2"),{t:a}=Ft(),{columnsStyles:o,fixedColumnsOnLeft:r,fixedColumnsOnRight:i,mainColumns:l,mainTableHeight:c,fixedTableHeight:u,leftTableWidth:f,rightTableWidth:h,data:p,depthMap:v,expandedRowKeys:m,hasFixedColumns:g,mainTableRef:b,leftTableRef:C,rightTableRef:w,isDynamic:_,isResetting:x,isScrolling:k,bodyWidth:T,emptyStyle:R,rootStyle:I,footerHeight:P,showEmpty:$,scrollTo:O,scrollToLeft:B,scrollToTop:H,scrollToRow:J,getRowHeight:Y,onColumnSorted:N,onRowHeightChange:L,onRowHovered:V,onRowExpanded:z,onRowsRendered:G,onScroll:Q,onVerticalScroll:U}=Yfe(e);return n({scrollTo:O,scrollToLeft:B,scrollToTop:H,scrollToRow:J}),Nt(Y6,{ns:s,isResetting:x,isScrolling:k}),()=>{const{cache:ee,cellProps:se,estimatedRowHeight:de,expandColumnKey:te,fixedData:pe,headerHeight:he,headerClass:le,headerProps:Z,headerCellProps:j,sortBy:ae,sortState:fe,rowHeight:we,rowClass:Se,rowEventHandlers:ke,rowKey:Oe,rowProps:Be,scrollbarAlwaysOn:Le,indentSize:Ce,iconSize:Ie,useIsScrolling:Re,vScrollbarSize:Ke,width:tt}=e,ut=d(p),Fe={cache:ee,class:s.e("main"),columns:d(l),data:ut,fixedData:pe,estimatedRowHeight:de,bodyWidth:d(T),headerHeight:he,headerWidth:d(T),height:d(c),mainTableRef:b,rowKey:Oe,rowHeight:we,scrollbarAlwaysOn:Le,scrollbarStartGap:2,scrollbarEndGap:Ke,useIsScrolling:Re,width:tt,getRowHeight:Y,onRowsRendered:G,onScroll:Q},Ue=d(f),Ze=d(u),Ot={cache:ee,class:s.e("left"),columns:d(r),data:ut,fixedData:pe,estimatedRowHeight:de,leftTableRef:C,rowHeight:we,bodyWidth:Ue,headerWidth:Ue,headerHeight:he,height:Ze,rowKey:Oe,scrollbarAlwaysOn:Le,scrollbarStartGap:2,scrollbarEndGap:Ke,useIsScrolling:Re,width:Ue,getRowHeight:Y,onScroll:U},Xt=d(h),it={cache:ee,class:s.e("right"),columns:d(i),data:ut,fixedData:pe,estimatedRowHeight:de,rightTableRef:w,rowHeight:we,bodyWidth:Xt,headerWidth:Xt,headerHeight:he,height:Ze,rowKey:Oe,scrollbarAlwaysOn:Le,scrollbarStartGap:2,scrollbarEndGap:Ke,width:Xt,style:`${s.cssVarName("table-scrollbar-size")}: ${Ke}px`,useIsScrolling:Re,getRowHeight:Y,onScroll:U},yt=d(o),Lt={ns:s,depthMap:d(v),columnsStyles:yt,expandColumnKey:te,expandedRowKeys:d(m),estimatedRowHeight:de,hasFixedColumns:d(g),rowProps:Be,rowClass:Se,rowKey:Oe,rowEventHandlers:ke,onRowHovered:V,onRowExpanded:z,onRowHeightChange:L},xe={cellProps:se,expandColumnKey:te,indentSize:Ce,iconSize:Ie,rowKey:Oe,expandedRowKeys:d(m),ns:s,t:a},qe={ns:s,headerClass:le,headerProps:Z,columnsStyles:yt},_e={ns:s,t:a,sortBy:ae,sortState:fe,headerCellProps:j,onColumnSorted:N},Ye={row:Sn=>W(ghe,At(Sn,Lt),{row:t.row,cell:En=>{let Ve;return t.cell?W(n8,At(En,xe,{style:yt[En.column.key]}),iv(Ve=t.cell(En))?Ve:{default:()=>[Ve]}):W(n8,At(En,xe,{style:yt[En.column.key]}),null)}}),header:Sn=>W(_he,At(Sn,qe),{header:t.header,cell:En=>{let Ve;return t["header-cell"]?W(mM,At(En,_e,{style:yt[En.column.key]}),iv(Ve=t["header-cell"](En))?Ve:{default:()=>[Ve]}):W(mM,At(En,_e,{style:yt[En.column.key]}),null)}})},xt=[e.class,s.b(),s.e("root"),s.is("dynamic",d(_))],Jt={class:s.e("footer"),style:d(P)};return W("div",{class:xt,style:d(I)},[W(che,Fe,iv(Ye)?Ye:{default:()=>[Ye]}),W(dhe,Ot,iv(Ye)?Ye:{default:()=>[Ye]}),W(hhe,it,iv(Ye)?Ye:{default:()=>[Ye]}),t.footer&&W(gM,Jt,{default:t.footer}),d($)&&W(bM,{class:s.e("empty"),style:d(R)},{default:t.empty}),t.overlay&&W(yM,{class:s.e("overlay")},{default:t.overlay})])}}}),xhe=Me({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:re(Function)}}),khe=e=>{const t=F(),n=F(0),s=F(0);let a;return Mt(()=>{a=Tn(t,([o])=>{const{width:r,height:i}=o.contentRect,{paddingLeft:l,paddingRight:c,paddingTop:u,paddingBottom:f}=getComputedStyle(o.target),h=Number.parseInt(l)||0,p=Number.parseInt(c)||0,v=Number.parseInt(u)||0,m=Number.parseInt(f)||0;n.value=r-h-p,s.value=i-v-m}).stop}),tn(()=>{a==null||a()}),be([n,s],([o,r])=>{var i;(i=e.onResize)==null||i.call(e,{width:o,height:r})}),{sizer:t,width:n,height:s}},Ehe=K({name:"ElAutoResizer",props:xhe,setup(e,{slots:t}){const n=Ee("auto-resizer"),{height:s,width:a,sizer:o}=khe(e),r={width:"100%",height:"100%"};return()=>{var i;return W("div",{ref:o,class:n.b(),style:r},[(i=t.default)==null?void 0:i.call(t,{height:s.value,width:a.value})])}}}),Ahe=wt(She),The=wt(Ehe),O1=Symbol("tabsRootContextKey"),Mhe=Me({tabs:{type:re(Array),default:()=>$n([])},tabRefs:{type:re(Object),default:()=>$n({})}}),wM="ElTabBar";var Phe=K({name:wM,__name:"tab-bar",props:Mhe,setup(e,{expose:t}){const n=e,s=je(O1);s||ns(wM,"<el-tabs><el-tab-bar /></el-tabs>");const a=Ee("tabs"),o=F(),r=F(),i=E(()=>{var p;return Wt(s.props.defaultValue)||!!((p=r.value)!=null&&p.transform)}),l=()=>{let p=0,v=0;const m=["top","bottom"].includes(s.props.tabPosition)?"width":"height",g=m==="width"?"x":"y",b=g==="x"?"left":"top";return n.tabs.every(C=>{if(Wt(C.paneName))return!1;const w=n.tabRefs[C.paneName];if(!w)return!1;if(!C.active)return!0;p=w[`offset${uc(b)}`],v=w[`client${uc(m)}`];const _=window.getComputedStyle(w);return m==="width"&&(v-=Number.parseFloat(_.paddingLeft)+Number.parseFloat(_.paddingRight),p+=Number.parseFloat(_.paddingLeft)),!1}),{[m]:`${v}px`,transform:`translate${uc(g)}(${p}px)`}},c=()=>r.value=l(),u=[],f=()=>{u.forEach(p=>p.stop()),u.length=0,Object.values(n.tabRefs).forEach(p=>{u.push(Tn(p,c))})};be(()=>n.tabs,async()=>{await ze(),c(),f()},{immediate:!0});const h=Tn(o,()=>c());return tn(()=>{u.forEach(p=>p.stop()),u.length=0,h.stop()}),t({ref:o,update:c}),(p,v)=>i.value?(S(),M("div",{key:0,ref_key:"barRef",ref:o,class:D([d(a).e("active-bar"),d(a).is(d(s).props.tabPosition)]),style:et(r.value)},null,6)):ie("v-if",!0)}});const Rhe=Me({panes:{type:re(Array),default:()=>$n([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),Ihe={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},_M="ElTabNav",Ohe=K({name:_M,props:Rhe,emits:Ihe,setup(e,{expose:t,emit:n}){const s=je(O1);s||ns(_M,"<el-tabs><tab-nav /></el-tabs>");const a=Ee("tabs"),o=QV(),r=tz(),i=F(),l=F(),c=F(),u=F({}),f=F(),h=F(!1),p=F(0),v=F(!1),m=F(!0),g=bn(),b=E(()=>["top","bottom"].includes(s.props.tabPosition)),C=E(()=>b.value?"width":"height"),w=E(()=>({transform:`translate${C.value==="width"?"X":"Y"}(-${p.value}px)`})),{width:_,height:x}=$y(i),{width:k,height:T}=$y(l,{width:0,height:0},{box:"border-box"}),R=E(()=>b.value?_.value:x.value),I=E(()=>b.value?k.value:T.value),{onWheel:P}=nT({atStartEdge:E(()=>p.value<=0),atEndEdge:E(()=>I.value-p.value<=R.value),layout:E(()=>b.value?"horizontal":"vertical")},z=>{p.value=wu(p.value+z,0,I.value-R.value)}),$=()=>{if(!i.value)return;const z=i.value[`offset${uc(C.value)}`],G=p.value;if(!G)return;const Q=G>z?G-z:0;p.value=Q},O=()=>{if(!i.value||!l.value)return;const z=l.value[`offset${uc(C.value)}`],G=i.value[`offset${uc(C.value)}`],Q=p.value;if(z-Q<=G)return;const U=z-Q>G*2?Q+G:z-G;p.value=U},B=async()=>{const z=l.value;if(!h.value||!c.value||!i.value||!z)return;await ze();const G=u.value[e.currentName];if(!G)return;const Q=i.value,U=G.getBoundingClientRect(),ee=Q.getBoundingClientRect(),se=b.value?z.offsetWidth-ee.width:z.offsetHeight-ee.height,de=p.value;let te=de;b.value?(U.left<ee.left&&(te=de-(ee.left-U.left)),U.right>ee.right&&(te=de+U.right-ee.right)):(U.top<ee.top&&(te=de-(ee.top-U.top)),U.bottom>ee.bottom&&(te=de+(U.bottom-ee.bottom))),te=Math.max(te,0),p.value=Math.min(te,se)},H=()=>{var z;if(!l.value||!i.value)return;e.stretch&&((z=f.value)==null||z.update());const G=l.value[`offset${uc(C.value)}`],Q=i.value[`offset${uc(C.value)}`],U=p.value;Q<G?(h.value=h.value||{},h.value.prev=U,h.value.next=U+Q<G,G-U<Q&&(p.value=G-Q)):(h.value=!1,U>0&&(p.value=0))},J=z=>{const G=un(z);let Q=0;switch(G){case Te.left:case Te.up:Q=-1;break;case Te.right:case Te.down:Q=1;break;default:return}const U=Array.from(z.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let se=U.indexOf(z.target)+Q;se<0?se=U.length-1:se>=U.length&&(se=0),U[se].focus({preventScroll:!0}),U[se].click(),Y()},Y=()=>{m.value&&(v.value=!0)},N=()=>v.value=!1,L=(z,G)=>{u.value[G]=z},V=async()=>{await ze();const z=u.value[e.currentName];z==null||z.focus({preventScroll:!0})};return be(o,z=>{z==="hidden"?m.value=!1:z==="visible"&&setTimeout(()=>m.value=!0,50)}),be(r,z=>{z?setTimeout(()=>m.value=!0,50):m.value=!1}),Tn(c,()=>{ti(H)}),Mt(()=>setTimeout(()=>B(),0)),lr(()=>H()),t({scrollToActiveTab:B,removeFocus:N,focusActiveTab:V,tabListRef:l,tabBarRef:f,scheduleRender:()=>V2(g)}),()=>{const z=h.value?[W("span",{class:[a.e("nav-prev"),a.is("disabled",!h.value.prev)],onClick:$},[W(Je,null,{default:()=>[W(Bo,null,null)]})]),W("span",{class:[a.e("nav-next"),a.is("disabled",!h.value.next)],onClick:O},[W(Je,null,{default:()=>[W(Fs,null,null)]})])]:null,G=e.panes.map((Q,U)=>{var ee,se,de,te,pe;const he=Q.uid,le=Q.props.disabled,Z=(se=(ee=Q.props.name)!=null?ee:Q.index)!=null?se:`${U}`,j=!le&&(Q.isClosable||Q.props.closable!==!1&&e.editable);Q.index=`${U}`;const ae=j?W(Je,{class:"is-icon-close",onClick:Se=>n("tabRemove",Q,Se)},{default:()=>[W(qa,null,null)]}):null,fe=((te=(de=Q.slots).label)==null?void 0:te.call(de))||Q.props.label,we=!le&&Q.active?(pe=e.tabindex)!=null?pe:s.props.tabindex:-1;return W("div",{ref:Se=>L(Se,Z),class:[a.e("item"),a.is(s.props.tabPosition),a.is("active",Q.active),a.is("disabled",le),a.is("closable",j),a.is("focus",v.value)],id:`tab-${Z}`,key:`tab-${he}`,"aria-controls":`pane-${Z}`,role:"tab","aria-selected":Q.active,tabindex:we,onFocus:()=>Y(),onBlur:()=>N(),onClick:Se=>{N(),n("tabClick",Q,Z,Se)},onKeydown:Se=>{const ke=un(Se);j&&(ke===Te.delete||ke===Te.backspace)&&n("tabRemove",Q,Se)}},[fe,ae])});return g.value,W("div",{ref:c,class:[a.e("nav-wrap"),a.is("scrollable",!!h.value),a.is(s.props.tabPosition)]},[z,W("div",{class:a.e("nav-scroll"),ref:i},[e.panes.length>0?W("div",{class:[a.e("nav"),a.is(s.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(s.props.tabPosition))],ref:l,style:w.value,role:"tablist",onKeydown:J,onWheel:P},[e.type?null:W(Phe,{ref:f,tabs:[...e.panes],tabRefs:u.value},null),G]):null])])}}}),Lhe=Me({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:re(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),a8=e=>Xe(e)||st(e),Nhe={[mt]:e=>a8(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>a8(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>a8(e),tabAdd:()=>!0},$he=K({name:"ElTabs",props:Lhe,emits:Nhe,setup(e,{emit:t,slots:n,expose:s}){var a;const o=Ee("tabs"),r=E(()=>["left","right"].includes(e.tabPosition)),{children:i,addChild:l,removeChild:c,ChildrenSorter:u}=Jg(Tt(),"ElTabPane"),f=F(),h=F((a=Wt(e.modelValue)?e.defaultValue:e.modelValue)!=null?a:"0"),p=async(w,_=!1)=>{var x,k,T,R;if(!(h.value===w||Wt(w)))try{let I;if(e.beforeLeave){const P=e.beforeLeave(w,h.value);I=P instanceof Promise?await P:P}else I=!0;if(I!==!1){const P=(x=i.value.find($=>$.paneName===h.value))==null?void 0:x.isFocusInsidePane();h.value=w,_&&(t(mt,w),t("tabChange",w)),(T=(k=f.value)==null?void 0:k.removeFocus)==null||T.call(k),P&&((R=f.value)==null||R.focusActiveTab())}}catch{}},v=(w,_,x)=>{w.props.disabled||(t("tabClick",w,x),p(_,!0))},m=(w,_)=>{w.props.disabled||Wt(w.props.name)||(_.stopPropagation(),t("edit",w.props.name,"remove"),t("tabRemove",w.props.name))},g=()=>{t("edit",void 0,"add"),t("tabAdd")},b=w=>{const _=un(w);[Te.enter,Te.numpadEnter].includes(_)&&g()},C=w=>{const _=w.el.firstChild,x=["bottom","right"].includes(e.tabPosition)?w.children[0].el:w.children[1].el;_!==x&&_.before(x)};return be(()=>e.modelValue,w=>p(w)),be(h,async()=>{var w;await ze(),(w=f.value)==null||w.scrollToActiveTab()}),Nt(O1,{props:e,currentName:h,registerPane:l,unregisterPane:c,nav$:f}),s({currentName:h,get tabNavRef(){return mp(f.value,["scheduleRender"])}}),()=>{const w=n["add-icon"],_=e.editable||e.addable?W("div",{class:[o.e("new-tab"),r.value&&o.e("new-tab-vertical")],tabindex:e.tabindex,onClick:g,onKeydown:b},[w?ue(n,"add-icon"):W(Je,{class:o.is("icon-plus")},{default:()=>[W(Uy,null,null)]})]):null,x=()=>W(Ohe,{ref:f,currentName:h.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:v,onTabRemove:m},null),k=W("div",{class:[o.e("header"),r.value&&o.e("header-vertical"),o.is(e.tabPosition)]},[W(u,null,{default:x,$stable:!0}),_]),T=W("div",{class:o.e("content")},[ue(n,"default")]);return W("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}],onVnodeMounted:C,onVnodeUpdated:C},[T,k])}}}),Dhe=Me({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),Fhe=["id","aria-hidden","aria-labelledby"],CM="ElTabPane";var SM=K({name:CM,__name:"tab-pane",props:Dhe,setup(e){const t=e,n=Tt(),s=Gn(),a=je(O1);a||ns(CM,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const o=Ee("tab-pane"),r=F(),i=F(),l=E(()=>{var m;return(m=t.closable)!=null?m:a.props.closable}),c=E(()=>{var m;return a.currentName.value===((m=t.name)!=null?m:i.value)}),u=F(c.value),f=E(()=>{var m;return(m=t.name)!=null?m:i.value}),h=E(()=>!t.lazy||u.value||c.value),p=()=>{var m;return(m=r.value)==null?void 0:m.contains(document.activeElement)};be(c,m=>{m&&(u.value=!0)});const v=Gt({uid:n.uid,getVnode:()=>n.vnode,slots:s,props:t,paneName:f,active:c,index:i,isClosable:l,isFocusInsidePane:p});return a.registerPane(v),tn(()=>{a.unregisterPane(v)}),B4(()=>{var m;s.label&&((m=a.nav$.value)==null||m.scheduleRender())}),(m,g)=>h.value?Ct((S(),M("div",{key:0,id:`pane-${f.value}`,ref_key:"paneRef",ref:r,class:D(d(o).b()),role:"tabpanel","aria-hidden":!c.value,"aria-labelledby":`tab-${f.value}`},[ue(m.$slots,"default")],10,Fhe)),[[jt,c.value]]):ie("v-if",!0)}});const Bhe=wt($he,{TabPane:SM}),Vhe=In(SM),zhe=Me({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:vr,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}});var Hhe=K({name:"ElText",__name:"text",props:zhe,setup(e){const t=e,n=F(),s=ls(),a=Ee("text"),o=E(()=>[a.b(),a.m(t.type),a.m(s.value),a.is("truncated",t.truncated),a.is("line-clamp",!Wt(t.lineClamp))]),r=()=>{var i,l,c,u,f,h,p;if(Hi().title)return;let m=!1;const g=((i=n.value)==null?void 0:i.textContent)||"";if(t.truncated){const b=(l=n.value)==null?void 0:l.offsetWidth,C=(c=n.value)==null?void 0:c.scrollWidth;b&&C&&C>b&&(m=!0)}else if(!Wt(t.lineClamp)){const b=(u=n.value)==null?void 0:u.offsetHeight,C=(f=n.value)==null?void 0:f.scrollHeight;b&&C&&C>b&&(m=!0)}m?(h=n.value)==null||h.setAttribute("title",g):(p=n.value)==null||p.removeAttribute("title")};return Mt(r),lr(r),(i,l)=>(S(),ce(kt(e.tag),{ref_key:"textRef",ref:n,class:D(o.value),style:et({"-webkit-line-clamp":e.lineClamp})},{default:X(()=>[ue(i.$slots,"default")]),_:3},8,["class","style"]))}});const o8=wt(Hhe),Whe=Me({format:{type:String,default:"HH:mm"},modelValue:{type:re(String)},disabled:{type:Boolean,default:void 0},editable:{type:Boolean,default:!0},effect:{type:re(String),default:"light"},clearable:{type:Boolean,default:!0},size:hs,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:{type:re(String)},maxTime:{type:re(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:re([String,Object]),default:()=>Hy},clearIcon:{type:re([String,Object]),default:()=>Vo},popperClass:{type:String,default:""},popperStyle:{type:re([String,Object])},...Su}),cl=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const s=Number.parseInt(t[1],10),a=e.toUpperCase();return a.includes("AM")&&n===12?n=0:a.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:s}}return null},r8=(e,t)=>{const n=cl(e);if(!n)return-1;const s=cl(t);if(!s)return-1;const a=n.minutes+n.hours*60,o=s.minutes+s.hours*60;return a===o?0:a>o?1:-1},xM=e=>`${e}`.padStart(2,"0"),eh=e=>`${xM(e.hours)}:${xM(e.minutes)}`,jhe=(e,t)=>{const n=cl(e);if(!n)return"";const s=cl(t);if(!s)return"";const a={hours:n.hours,minutes:n.minutes};return a.minutes+=s.minutes,a.hours+=s.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,eh(a)};var Khe=K({name:"ElTimeSelect",__name:"time-select",props:Whe,emits:[Dt,"blur","focus","clear",mt],setup(e,{expose:t}){_t.extend(j3);const{Option:n}=hc,s=e,a=Ee("input"),o=F(),r=Dn(),{lang:i}=Ft(),l=E(()=>s.modelValue),c=E(()=>{const b=cl(s.start);return b?eh(b):null}),u=E(()=>{const b=cl(s.end);return b?eh(b):null}),f=E(()=>{const b=cl(s.step);return b?eh(b):null}),h=E(()=>{const b=cl(s.minTime||"");return b?eh(b):null}),p=E(()=>{const b=cl(s.maxTime||"");return b?eh(b):null}),v=E(()=>{var b;const C=[],w=(_,x)=>{C.push({value:_,disabled:r8(x,h.value||"-1:-1")<=0||r8(x,p.value||"100:100")>=0})};if(s.start&&s.end&&s.step){let _=c.value,x;for(;_&&u.value&&r8(_,u.value)<=0;)x=_t(_,"HH:mm").locale(i.value).format(s.format),w(x,_),_=jhe(_,f.value);if(s.includeEndTime&&u.value&&((b=C[C.length-1])==null?void 0:b.value)!==u.value){const k=_t(u.value,"HH:mm").locale(i.value).format(s.format);w(k,u.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)=>(S(),ce(d(hc),{ref_key:"select",ref:o,"model-value":l.value,disabled:d(r),clearable:e.clearable,"clear-icon":e.clearIcon,size:e.size,effect:e.effect,placeholder:e.placeholder,"default-first-option":"",filterable:e.editable,"empty-values":e.emptyValues,"value-on-clear":e.valueOnClear,"popper-class":e.popperClass,"popper-style":e.popperStyle,"onUpdate:modelValue":C[0]||(C[0]=w=>b.$emit(d(mt),w)),onChange:C[1]||(C[1]=w=>b.$emit(d(Dt),w)),onBlur:C[2]||(C[2]=w=>b.$emit("blur",w)),onFocus:C[3]||(C[3]=w=>b.$emit("focus",w)),onClear:C[4]||(C[4]=()=>b.$emit("clear"))},{prefix:X(()=>[e.prefixIcon?(S(),ce(d(Je),{key:0,class:D(d(a).e("prefix-icon"))},{default:X(()=>[(S(),ce(kt(e.prefixIcon)))]),_:1},8,["class"])):ie("v-if",!0)]),default:X(()=>[(S(!0),M(He,null,Et(v.value,w=>(S(),ce(d(n),{key:w.value,label:w.value,value:w.value,disabled:w.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","popper-class","popper-style"]))}});const Uhe=wt(Khe),kM="timeline",qhe=Me({mode:{type:String,values:["start","alternate","alternate-reverse","end"],default:"start"},reverse:Boolean}),Ghe=K({name:"ElTimeline",props:qhe,setup(e,{slots:t}){const n=Ee("timeline");Nt(kM,{props:e,slots:t});const s=E(()=>[n.b(),n.is(e.mode)]);return()=>{var a,o;const r=uo((o=(a=t.default)==null?void 0:a.call(t))!=null?o:[]);return lt("ul",{class:s.value},e.reverse?r.reverse():r)}}}),Yhe=Me({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:rn},hollow:Boolean});var EM=K({name:"ElTimelineItem",__name:"timeline-item",props:Yhe,setup(e){const t=e,{props:n}=je(kM),s=Ee("timeline-item"),a=E(()=>[s.e("node"),s.em("node",t.size||""),s.em("node",t.type||""),s.is("hollow",t.hollow)]),o=E(()=>[s.b(),{[s.e("center")]:t.center},s.is(n.mode)]);return(r,i)=>(S(),M("li",{class:D(o.value)},[A("div",{class:D(d(s).e("tail"))},null,2),r.$slots.dot?ie("v-if",!0):(S(),M("div",{key:0,class:D(a.value),style:et({backgroundColor:e.color})},[e.icon?(S(),ce(d(Je),{key:0,class:D(d(s).e("icon"))},{default:X(()=>[(S(),ce(kt(e.icon)))]),_:1},8,["class"])):ie("v-if",!0)],6)),r.$slots.dot?(S(),M("div",{key:1,class:D(d(s).e("dot"))},[ue(r.$slots,"dot")],2)):ie("v-if",!0),A("div",{class:D(d(s).e("wrapper"))},[!e.hideTimestamp&&e.placement==="top"?(S(),M("div",{key:0,class:D([d(s).e("timestamp"),d(s).is("top")])},ge(e.timestamp),3)):ie("v-if",!0),A("div",{class:D(d(s).e("content"))},[ue(r.$slots,"default")],2),!e.hideTimestamp&&e.placement==="bottom"?(S(),M("div",{key:1,class:D([d(s).e("timestamp"),d(s).is("bottom")])},ge(e.timestamp),3)):ie("v-if",!0)],2)],2))}});const Xhe=wt(Ghe,{TimelineItem:EM}),Jhe=In(EM),AM="left-check-change",TM="right-check-change",th=Me({data:{type:re(Array),default:()=>[]},titles:{type:re(Array),default:()=>[]},buttonTexts:{type:re(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:re(Function)},leftDefaultChecked:{type:re(Array),default:()=>[]},rightDefaultChecked:{type:re(Array),default:()=>[]},renderContent:{type:re(Function)},modelValue:{type:re(Array),default:()=>[]},format:{type:re(Object),default:()=>({})},filterable:Boolean,props:{type:re(Object),default:()=>$n({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),i8=(e,t)=>[e,t].every(Ae)||Ae(e)&&Qn(t),Zhe={[Dt]:(e,t,n)=>[e,n].every(Ae)&&["left","right"].includes(t),[mt]:e=>Ae(e),[AM]:i8,[TM]:i8},l8="checked-change",Qhe=Me({data:th.data,optionRender:{type:re(Function)},placeholder:String,title:String,filterable:Boolean,format:th.format,filterMethod:th.filterMethod,defaultChecked:th.leftDefaultChecked,props:th.props}),e0e={[l8]:i8},lv=e=>{const t={label:"label",key:"key",disabled:"disabled"};return E(()=>({...t,...e.props}))},t0e=(e,t,n)=>{const s=lv(e),a=E(()=>e.data.filter(u=>Qe(e.filterMethod)?e.filterMethod(t.query,u):String(u[s.value.label]||u[s.value.key]).toLowerCase().includes(t.query.toLowerCase()))),o=E(()=>a.value.filter(u=>!u[s.value.disabled])),r=E(()=>{const u=t.checked.length,f=e.data.length,{noChecked:h,hasChecked:p}=e.format;return h&&p?u>0?p.replace(/\${checked}/g,u.toString()).replace(/\${total}/g,f.toString()):h.replace(/\${total}/g,f.toString()):`${u}/${f}`}),i=E(()=>{const u=t.checked.length;return u>0&&u<o.value.length}),l=()=>{const u=o.value.map(f=>f[s.value.key]);t.allChecked=u.length>0&&u.every(f=>t.checked.includes(f))},c=u=>{t.checked=u?o.value.map(f=>f[s.value.key]):[]};return be(()=>t.checked,(u,f)=>{if(l(),t.checkChangeByUser){const h=u.concat(f).filter(p=>!u.includes(p)||!f.includes(p));n(l8,u,h)}else n(l8,u),t.checkChangeByUser=!0}),be(o,()=>{l()}),be(()=>e.data,()=>{const u=[],f=a.value.map(h=>h[s.value.key]);t.checked.forEach(h=>{f.includes(h)&&u.push(h)}),t.checkChangeByUser=!1,t.checked=u}),be(()=>e.defaultChecked,(u,f)=>{if(f&&u.length===f.length&&u.every(v=>f.includes(v)))return;const h=[],p=o.value.map(v=>v[s.value.key]);u.forEach(v=>{p.includes(v)&&h.push(v)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:a,checkableData:o,checkedSummary:r,isIndeterminate:i,updateAllChecked:l,handleAllCheckedChange:c}};var MM=K({name:"ElTransferPanel",__name:"transfer-panel",props:Qhe,emits:e0e,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Gn(),r=({option:_})=>_,{t:i}=Ft(),l=Ee("transfer"),c=Gt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=lv(s),{filteredData:f,checkedSummary:h,isIndeterminate:p,handleAllCheckedChange:v}=t0e(s,c,a),m=E(()=>!Ia(c.query)&&Ia(f.value)),g=E(()=>!Ia(o.default()[0].children)),{checked:b,allChecked:C,query:w}=_s(c);return t({query:w}),(_,x)=>(S(),M("div",{class:D(d(l).b("panel"))},[A("p",{class:D(d(l).be("panel","header"))},[W(d(yr),{modelValue:d(C),"onUpdate:modelValue":x[0]||(x[0]=k=>yn(C)?C.value=k:null),indeterminate:d(p),"validate-event":!1,onChange:d(v)},{default:X(()=>[We(ge(e.title)+" ",1),A("span",null,ge(d(h)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),A("div",{class:D([d(l).be("panel","body"),d(l).is("with-footer",g.value)])},[e.filterable?(S(),ce(d(da),{key:0,modelValue:d(w),"onUpdate:modelValue":x[1]||(x[1]=k=>yn(w)?w.value=k:null),class:D(d(l).be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":d(d9),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):ie("v-if",!0),Ct(W(d(L3),{modelValue:d(b),"onUpdate:modelValue":x[2]||(x[2]=k=>yn(b)?b.value=k:null),"validate-event":!1,class:D([d(l).is("filterable",e.filterable),d(l).be("panel","list")])},{default:X(()=>[(S(!0),M(He,null,Et(d(f),k=>(S(),ce(d(yr),{key:k[d(u).key],class:D(d(l).be("panel","item")),value:k[d(u).key],disabled:k[d(u).disabled],"validate-event":!1},{default:X(()=>{var T;return[W(r,{option:(T=e.optionRender)==null?void 0:T.call(e,k)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[jt,!m.value&&!d(Ia)(e.data)]]),Ct(A("div",{class:D(d(l).be("panel","empty"))},[ue(_.$slots,"empty",{},()=>[We(ge(m.value?d(i)("el.transfer.noMatch"):d(i)("el.transfer.noData")),1)])],2),[[jt,m.value||d(Ia)(e.data)]])],2),g.value?(S(),M("p",{key:0,class:D(d(l).be("panel","footer"))},[ue(_.$slots,"default")],2)):ie("v-if",!0)],2))}});const n0e=e=>{const t=lv(e),n=E(()=>e.data.reduce((o,r)=>(o[r[t.value.key]]=r)&&o,{})),s=E(()=>e.data.filter(o=>!e.modelValue.includes(o[t.value.key]))),a=E(()=>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:s,targetData:a}},s0e=(e,t,n)=>{const s=lv(e),a=(i,l,c)=>{n(mt,i),n(Dt,i,l,c)};return{addToLeft:()=>{const i=e.modelValue.slice();t.rightChecked.forEach(l=>{const c=i.indexOf(l);c>-1&&i.splice(c,1)}),a(i,"left",t.rightChecked)},addToRight:()=>{let i=e.modelValue.slice();const l=e.data.filter(c=>{const u=c[s.value.key];return t.leftChecked.includes(u)&&!e.modelValue.includes(u)}).map(c=>c[s.value.key]);i=e.targetOrder==="unshift"?l.concat(i):i.concat(l),e.targetOrder==="original"&&(i=e.data.filter(c=>i.includes(c[s.value.key])).map(c=>c[s.value.key])),a(i,"right",t.leftChecked)}}},a0e=(e,t)=>({onSourceCheckedChange:(a,o)=>{e.leftChecked=a,o&&t(AM,a,o)},onTargetCheckedChange:(a,o)=>{e.rightChecked=a,o&&t(TM,a,o)}}),o0e={key:0},r0e={key:0};var i0e=K({name:"ElTransfer",__name:"transfer",props:th,emits:Zhe,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Gn(),{t:r}=Ft(),i=Ee("transfer"),{formItem:l}=Ms(),c=Gt({leftChecked:[],rightChecked:[]}),u=lv(s),{sourceData:f,targetData:h}=n0e(s),{onSourceCheckedChange:p,onTargetCheckedChange:v}=a0e(c,a),{addToLeft:m,addToRight:g}=s0e(s,c,a),b=F(),C=F(),w=I=>{switch(I){case"left":b.value.query="";break;case"right":C.value.query="";break}},_=E(()=>s.buttonTexts.length===2),x=E(()=>s.titles[0]||r("el.transfer.titles.0")),k=E(()=>s.titles[1]||r("el.transfer.titles.1")),T=E(()=>s.filterPlaceholder||r("el.transfer.filterPlaceholder"));be(()=>s.modelValue,()=>{var I;s.validateEvent&&((I=l==null?void 0:l.validate)==null||I.call(l,"change").catch(P=>void 0))});const R=E(()=>I=>{var P;if(s.renderContent)return s.renderContent(lt,I);const $=(((P=o.default)==null?void 0:P.call(o,{option:I}))||[]).filter(O=>O.type!==Jn);return $.length?$:lt("span",I[u.value.label]||I[u.value.key])});return t({clearQuery:w,leftPanel:b,rightPanel:C}),(I,P)=>(S(),M("div",{class:D(d(i).b())},[W(MM,{ref_key:"leftPanel",ref:b,data:d(f),"option-render":R.value,placeholder:T.value,title:x.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:s.props,onCheckedChange:d(p)},{empty:X(()=>[ue(I.$slots,"left-empty")]),default:X(()=>[ue(I.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),A("div",{class:D(d(i).e("buttons"))},[W(d(xs),{type:"primary",class:D([d(i).e("button"),d(i).is("with-texts",_.value)]),disabled:d(Ia)(c.rightChecked),onClick:d(m)},{default:X(()=>[W(d(Je),null,{default:X(()=>[W(d(Bo))]),_:1}),d(Wt)(e.buttonTexts[0])?ie("v-if",!0):(S(),M("span",o0e,ge(e.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),W(d(xs),{type:"primary",class:D([d(i).e("button"),d(i).is("with-texts",_.value)]),disabled:d(Ia)(c.leftChecked),onClick:d(g)},{default:X(()=>[d(Wt)(e.buttonTexts[1])?ie("v-if",!0):(S(),M("span",r0e,ge(e.buttonTexts[1]),1)),W(d(Je),null,{default:X(()=>[W(d(Fs))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),W(MM,{ref_key:"rightPanel",ref:C,data:d(h),"option-render":R.value,placeholder:T.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:k.value,"default-checked":e.rightDefaultChecked,props:s.props,onCheckedChange:d(v)},{empty:X(()=>[ue(I.$slots,"right-empty")]),default:X(()=>[ue(I.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});const l0e=wt(i0e),nh="$treeNodeId",PM=function(e,t){!t||t[nh]||Object.defineProperty(t,nh,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},c8=(e,t)=>t==null?void 0:t[e||nh],u8=(e,t,n)=>{const s=e.value.currentNode;n();const a=e.value.currentNode;s!==a&&t("current-change",a?a.data:null,a)};var c0e=Object.defineProperty,u0e=(e,t,n)=>t in e?c0e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zs=(e,t,n)=>u0e(e,typeof t!="symbol"?t+"":t,n);const RM=e=>{let t=!0,n=!0,s=!0,a=!0;for(let o=0,r=e.length;o<r;o++){const i=e[o];(i.checked!==!0||i.indeterminate)&&(t=!1,i.disabled||(s=!1)),(i.checked!==!1||i.indeterminate)&&(n=!1),i.isEffectivelyChecked||(a=!1)}return{all:t,none:n,allWithoutDisable:s,half:!t&&!n,isEffectivelyChecked:a}},cv=function(e){if(e.childNodes.length===0||e.loading){e.isEffectivelyChecked=e.disabled||e.checked;return}const{all:t,none:n,half:s,isEffectivelyChecked:a}=RM(e.childNodes);e.isEffectivelyChecked=a,t?(e.checked=!0,e.indeterminate=!1):s?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const o=e.parent;!o||o.level===0||e.store.checkStrictly||cv(o)},L1=function(e,t){const n=e.store.props,s=e.data||{},a=n[t];if(Qe(a))return a(s,e);if(Xe(a))return s[a];if(Wt(a)){const o=s[t];return Wt(o)?"":o}},d8=function(e,t){e.forEach(n=>{n.canFocus=t,d8(n.childNodes,t)})};let d0e=0,f8=class zb{constructor(t){zs(this,"id"),zs(this,"text"),zs(this,"checked"),zs(this,"indeterminate"),zs(this,"data"),zs(this,"expanded"),zs(this,"parent"),zs(this,"visible"),zs(this,"isCurrent"),zs(this,"store"),zs(this,"isLeafByUser"),zs(this,"isLeaf"),zs(this,"canFocus"),zs(this,"level"),zs(this,"loaded"),zs(this,"childNodes"),zs(this,"loading"),zs(this,"isEffectivelyChecked",!1),this.id=d0e++,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)qt(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 s=n.props;if(s&&typeof s.isLeaf<"u"){const r=L1(this,"isLeaf");on(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(),Ae(this.data)||PM(this,this.data),!this.data)return;const a=n.defaultExpandedKeys,o=n.key;o&&!Qn(this.key)&&a&&a.includes(this.key)&&this.expand(null,n.autoExpandParent),o&&n.currentNodeKey!==void 0&&this.key===n.currentNodeKey&&(n.currentNode&&(n.currentNode.isCurrent=!1),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){Ae(t)||PM(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Ae(this.data)?n=this.data:n=L1(this,"children")||[];for(let s=0,a=n.length;s<a;s++)this.insertChild({data:n[s]})}get label(){return L1(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return L1(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-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(s=>s===t||n&&s.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,s){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof zb)){if(!s){const a=this.getChildren(!0);a!=null&&a.includes(t.data)||(Wt(n)||n<0?a==null||a.push(t.data):a==null||a.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Gt(new zb(t)),t instanceof zb&&t.initialize()}t.level=this.level+1,Wt(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let s;n&&(s=this.childNodes.indexOf(n)),this.insertChild(t,s)}insertAfter(t,n){let s;n&&(s=this.childNodes.indexOf(n),s!==-1&&(s+=1)),this.insertChild(t,s)}removeChild(t){const n=this.getChildren()||[],s=n.indexOf(t.data);s>-1&&n.splice(s,1);const a=this.childNodes.indexOf(t);a>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(t){const n=this.childNodes.find(s=>s.data===t);n&&this.removeChild(n)}expand(t,n){const s=()=>{if(n){let a=this.parent;for(;a&&a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,t&&t(),d8(this.childNodes,!0)};this.shouldLoadData()?this.loadData(a=>{Ae(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||cv(this),s())}):s()}doCreateChildren(t,n={}){t.forEach(s=>{this.insertChild(Object.assign({data:s},n),void 0,!0)})}collapse(){this.expanded=!1,d8(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,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}this.isLeaf=!1}setChecked(t,n,s,a){if(this.indeterminate=t==="half",this.checked=t===!0,this.isEffectivelyChecked=!this.childNodes.length&&(this.disabled||this.checked),this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const r=()=>{if(n){const i=this.childNodes;for(let f=0,h=i.length;f<h;f++){const p=i[f];a=a||t!==!1;const v=p.disabled&&p.isLeaf?p.checked:a;p.setChecked(v,n,!0,a)}const{half:l,all:c,isEffectivelyChecked:u}=RM(i);c||(this.checked=c,this.indeterminate=l),this.isEffectivelyChecked=this.childNodes.length?u:this.disabled||this.checked}};if(this.shouldLoadData()){this.loadData(()=>{r(),cv(this)},{checked:t!==!1});return}else r()}const o=this.parent;!o||o.level===0||s||cv(o)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const s=this.store.props;let a="children";return s&&(a=s.children||"children"),Wt(n[a])&&(n[a]=null),t&&!n[a]&&(n[a]=[]),n[a]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(o=>o.data),s={},a=[];t.forEach((o,r)=>{const i=o[nh];!!i&&n.some(c=>(c==null?void 0:c[nh])===i)?s[i]={index:r,data:o}:a.push({index:r,data:o})}),this.store.lazy||n.forEach(o=>{s[o==null?void 0:o[nh]]||this.removeChildByData(o)}),a.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 s=o=>{this.childNodes=[],this.doCreateChildren(o,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,o)},a=()=>{this.loading=!1};this.store.load(this,s,a)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const s=n.shift();n.unshift(...s.childNodes),t(s)}}reInitChecked(){this.store.checkStrictly||cv(this)}};var f0e=Object.defineProperty,h0e=(e,t,n)=>t in e?f0e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,va=(e,t,n)=>h0e(e,typeof t!="symbol"?t+"":t,n);class p0e{constructor(t){va(this,"currentNode"),va(this,"currentNodeKey"),va(this,"nodesMap"),va(this,"root"),va(this,"data"),va(this,"lazy",!1),va(this,"load"),va(this,"filterNodeMethod"),va(this,"key"),va(this,"defaultCheckedKeys"),va(this,"checkStrictly",!1),va(this,"defaultExpandedKeys"),va(this,"autoExpandParent",!1),va(this,"defaultExpandAll",!1),va(this,"checkDescendants",!1),va(this,"props"),this.currentNode=null,this.currentNodeKey=null;for(const n in t)qt(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new f8({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()},en)}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,s=this.lazy,a=async function(o){const r=o.root?o.root.childNodes:o.childNodes;for(const[i,l]of r.entries())l.visible=!!(n!=null&&n.call(l,t,l.data,l)),i%80===0&&i>0&&await ze(),await a(l);if(!o.visible&&r.length){let i=!0;i=!r.some(l=>l.visible),o.root?o.root.visible=i===!1:o.visible=i===!1}t&&o.visible&&!o.isLeaf&&(!s||o.loaded)&&o.expand()};a(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 f8)return t;const n=bt(t)?c8(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){var s;const a=this.getNode(n);(s=a.parent)==null||s.insertBefore({data:t},a)}insertAfter(t,n){var s;const a=this.getNode(n);(s=a.parent)==null||s.insertAfter({data:t},a)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const s=Ua(n)?this.root:this.getNode(n);s&&s.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(s=>{const a=n[s];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){const n=this.defaultCheckedKeys||[];!Qn(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 s=t.key;Qn(s)||(this.nodesMap[s]=t)}}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(s=>{this.deregisterNode(s)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const s=[],a=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(i=>{(i.checked||n&&i.indeterminate)&&(!t||t&&i.isLeaf)&&s.push(i.data),a(i)})};return a(this),s}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(s){(s.root?s.root.childNodes:s.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 s in n)qt(n,s)&&t.push(n[s]);return t}updateChildren(t,n){const s=this.nodesMap[t];if(!s)return;const a=s.childNodes;for(let o=a.length-1;o>=0;o--){const r=a[o];this.remove(r.data)}for(let o=0,r=n.length;o<r;o++){const i=n[o];this.append(i,s.data)}}_setCheckedKeys(t,n=!1,s){const a=this._getAllNodes().sort((l,c)=>l.level-c.level),o=Object.create(null),r=Object.keys(s);a.forEach(l=>l.setChecked(!1,!1));const i=l=>{l.childNodes.forEach(c=>{var u;o[c.data[t]]=!0,(u=c.childNodes)!=null&&u.length&&i(c)})};for(let l=0,c=a.length;l<c;l++){const u=a[l],f=u.data[t].toString();if(!r.includes(f)){u.checked&&!o[f]&&u.setChecked(!1,!1);continue}if(u.childNodes.length&&i(u),u.isLeaf||this.checkStrictly){u.setChecked(!0,!1);continue}if(u.setChecked(!0,!0),n){u.setChecked(!1,!1);const p=function(v){v.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),p(g)})};p(u)}}}setCheckedNodes(t,n=!1){const s=this.key,a={};t.forEach(o=>{a[(o||{})[s]]=!0}),this._setCheckedKeys(s,n,a)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const s=this.key,a={};t.forEach(o=>{a[o]=!0}),this._setCheckedKeys(s,n,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const s=this.getNode(n);s&&s.expand(null,this.autoExpandParent)})}setChecked(t,n,s){const a=this.getNode(t);a&&a.setChecked(!!n,s)}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 s;const a=t[this.key],o=this.nodesMap[a];this.setCurrentNode(o),n&&this.currentNode&&this.currentNode.level>1&&((s=this.currentNode.parent)==null||s.expand(null,!0))}setCurrentNodeKey(t,n=!0){var s;if(this.currentNodeKey=t,Ua(t)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const a=this.getNode(t);a&&(this.setCurrentNode(a),n&&this.currentNode&&this.currentNode.level>1&&((s=this.currentNode.parent)==null||s.expand(null,!0)))}}const h8="RootTree",IM="NodeInstance",OM="TreeNodeMap";var v0e=K({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Ee("tree"),n=je(IM),s=je(h8);return()=>{const a=e.node,{data:o,store:r}=a;return e.renderContent?e.renderContent(lt,{_self:n,node:a,data:o,store:r}):ue(s.ctx.slots,"default",{node:a,data:o},()=>[lt(o8,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[a.label])])}}});function LM(e){const t=je(OM,null);let n={treeNodeExpand:s=>{var a;e.node!==s&&((a=e.node)==null||a.collapse())},children:new Set};return t&&t.children.add(n),tn(()=>{t&&t.children.delete(n),n=null}),Nt(OM,n),{broadcastExpanded:s=>{if(e.accordion)for(const a of n.children)a.treeNodeExpand(s)}}}const NM=Symbol("dragEvents");function m0e({props:e,ctx:t,el$:n,dropIndicator$:s,store:a}){const o=Ee("tree"),r=F({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Nt(NM,{treeNodeDragStart:({event:u,treeNode:f})=>{if(u.dataTransfer){if(Qe(e.allowDrag)&&!e.allowDrag(f.node))return u.preventDefault(),!1;u.dataTransfer.effectAllowed="move";try{u.dataTransfer.setData("text/plain","")}catch{}r.value.draggingNode=f,t.emit("node-drag-start",f.node,u)}},treeNodeDragOver:({event:u,treeNode:f})=>{if(!u.dataTransfer)return;const h=f,p=r.value.dropNode;p&&p.node.id!==h.node.id&&ca(p.$el,o.is("drop-inner"));const v=r.value.draggingNode;if(!v||!h)return;let m=!0,g=!0,b=!0,C=!0;Qe(e.allowDrop)&&(m=e.allowDrop(v.node,h.node,"prev"),C=g=e.allowDrop(v.node,h.node,"inner"),b=e.allowDrop(v.node,h.node,"next")),u.dataTransfer.dropEffect=g||m||b?"move":"none",(m||g||b)&&(p==null?void 0:p.node.id)!==h.node.id&&(p&&t.emit("node-drag-leave",v.node,p.node,u),t.emit("node-drag-enter",v.node,h.node,u)),m||g||b?r.value.dropNode=h:r.value.dropNode=null,h.node.nextSibling===v.node&&(b=!1),h.node.previousSibling===v.node&&(m=!1),h.node.contains(v.node,!1)&&(g=!1),(v.node===h.node||v.node.contains(h.node))&&(m=!1,g=!1,b=!1);const w=h.$el,_=w.querySelector(`.${o.be("node","content")}`).getBoundingClientRect(),x=n.value.getBoundingClientRect(),k=n.value.scrollTop;let T;const R=m?g?.25:b?.45:1:Number.NEGATIVE_INFINITY,I=b?g?.75:m?.55:0:Number.POSITIVE_INFINITY;let P=-9999;const $=u.clientY-_.top;$<_.height*R?T="before":$>_.height*I?T="after":g?T="inner":T="none";const O=w.querySelector(`.${o.be("node","expand-icon")}`).getBoundingClientRect(),B=s.value;T==="before"?P=O.top-x.top+k:T==="after"&&(P=O.bottom-x.top+k),B.style.top=`${P}px`,B.style.left=`${O.right-x.left}px`,T==="inner"?Fo(w,o.is("drop-inner")):ca(w,o.is("drop-inner")),r.value.showDropIndicator=T==="before"||T==="after",r.value.allowDrop=r.value.showDropIndicator||C,r.value.dropType=T,t.emit("node-drag-over",v.node,h.node,u)},treeNodeDragEnd:u=>{var f,h;const{draggingNode:p,dropType:v,dropNode:m}=r.value;if(u.preventDefault(),u.dataTransfer&&(u.dataTransfer.dropEffect="move"),p!=null&&p.node.data&&m){const g={data:p.node.data};v!=="none"&&p.node.remove(),v==="before"?(f=m.node.parent)==null||f.insertBefore(g,m.node):v==="after"?(h=m.node.parent)==null||h.insertAfter(g,m.node):v==="inner"&&m.node.insertChild(g),v!=="none"&&(a.value.registerNode(g),a.value.key&&p.node.eachNode(b=>{var C;(C=a.value.nodesMap[b.data[a.value.key]])==null||C.setChecked(b.checked,!a.value.checkStrictly)})),ca(m.$el,o.is("drop-inner")),t.emit("node-drag-end",p.node,m.node,v,u),v!=="none"&&t.emit("node-drop",p.node,m.node,v,u)}p&&!m&&t.emit("node-drag-end",p.node,null,v,u),r.value.showDropIndicator=!1,r.value.draggingNode=null,r.value.dropNode=null,r.value.allowDrop=!0}}),{dragState:r}}var g0e=K({name:"ElTreeNode",components:{ElCollapseTransition:Qg,ElCheckbox:yr,NodeContent:v0e,ElIcon:Je,Loading:Bs},props:{node:{type:f8,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=Ee("tree"),{broadcastExpanded:s}=LM(e),a=je(h8),o=F(!1),r=F(!1),i=F(),l=F(),c=F(),u=je(NM),f=Tt();Nt(IM,f),e.node.expanded&&(o.value=!0,r.value=!0);const h=a.props.props.children||"children";be(()=>{var I;const P=(I=e.node.data)==null?void 0:I[h];return P&&[...P]},()=>{e.node.updateChildren()}),be(()=>e.node.indeterminate,I=>{m(e.node.checked,I)}),be(()=>e.node.checked,I=>{m(I,e.node.indeterminate)}),be(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),be(()=>e.node.expanded,I=>{ze(()=>o.value=I),I&&(r.value=!0)});const p=I=>c8(a.props.nodeKey,I.data),v=I=>{const P=e.props.class;if(!P)return{};let $;if(Qe(P)){const{data:O}=I;$=P(O,I)}else $=P;return Xe($)?{[$]:!0}:$},m=(I,P)=>{(i.value!==I||l.value!==P)&&a.ctx.emit("check-change",e.node.data,I,P),i.value=I,l.value=P},g=I=>{u8(a.store,a.ctx.emit,()=>{var P;if((P=a==null?void 0:a.props)==null?void 0:P.nodeKey){const O=p(e.node);a.store.value.setCurrentNodeKey(O)}else a.store.value.setCurrentNode(e.node)}),a.currentNode.value=e.node,a.props.expandOnClickNode&&C(),(a.props.checkOnClickNode||e.node.isLeaf&&a.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&w(!e.node.checked),a.ctx.emit("node-click",e.node.data,e.node,f,I)},b=I=>{var P;(P=a.instance.vnode.props)!=null&&P.onNodeContextmenu&&(I.stopPropagation(),I.preventDefault()),a.ctx.emit("node-contextmenu",I,e.node.data,e.node,f)},C=()=>{e.node.isLeaf||(o.value?(a.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},w=I=>{const P=a==null?void 0:a.props.checkStrictly,$=e.node.childNodes;!P&&$.length&&(I=$.some(O=>!O.isEffectivelyChecked)),e.node.setChecked(I,!P),ze(()=>{const O=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:O.getCheckedNodes(),checkedKeys:O.getCheckedKeys(),halfCheckedNodes:O.getHalfCheckedNodes(),halfCheckedKeys:O.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:a,expanded:o,childNodeRendered:r,oldChecked:i,oldIndeterminate:l,getNodeKey:p,getNodeClass:v,handleSelectChange:m,handleClick:g,handleContextMenu:b,handleExpandIconClick:C,handleCheckChange:w,handleChildNodeExpand:(I,P,$)=>{s(P),a.ctx.emit("node-expand",I,P,$)},handleDragStart:I=>{a.props.draggable&&u.treeNodeDragStart({event:I,treeNode:e})},handleDragOver:I=>{I.preventDefault(),a.props.draggable&&u.treeNodeDragOver({event:I,treeNode:{$el:c.value,node:e.node}})},handleDrop:I=>{I.preventDefault()},handleDragEnd:I=>{a.props.draggable&&u.treeNodeDragEnd(I)},CaretRight:zy}}});const b0e=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],y0e=["aria-expanded"];function w0e(e,t,n,s,a,o){const r=Ge("el-icon"),i=Ge("el-checkbox"),l=Ge("loading"),c=Ge("node-content"),u=Ge("el-tree-node"),f=Ge("el-collapse-transition");return Ct((S(),M("div",{ref:"node$",class:D([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:t[2]||(t[2]=ht((...h)=>e.handleClick&&e.handleClick(...h),["stop"])),onContextmenu:t[3]||(t[3]=(...h)=>e.handleContextMenu&&e.handleContextMenu(...h)),onDragstart:t[4]||(t[4]=ht((...h)=>e.handleDragStart&&e.handleDragStart(...h),["stop"])),onDragover:t[5]||(t[5]=ht((...h)=>e.handleDragOver&&e.handleDragOver(...h),["stop"])),onDragend:t[6]||(t[6]=ht((...h)=>e.handleDragEnd&&e.handleDragEnd(...h),["stop"])),onDrop:t[7]||(t[7]=ht((...h)=>e.handleDrop&&e.handleDrop(...h),["stop"]))},[A("div",{class:D(e.ns.be("node","content")),style:et({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(S(),ce(r,{key:0,class:D([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:ht(e.handleExpandIconClick,["stop"])},{default:X(()=>[(S(),ce(kt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):ie("v-if",!0),e.showCheckbox?(S(),ce(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=ht(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):ie("v-if",!0),e.node.loading?(S(),ce(r,{key:2,class:D([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:X(()=>[W(l)]),_:1},8,["class"])):ie("v-if",!0),W(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),W(f,null,{default:X(()=>[!e.renderAfterExpand||e.childNodeRendered?Ct((S(),M("div",{key:0,class:D(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t[1]||(t[1]=ht(()=>{},["stop"]))},[(S(!0),M(He,null,Et(e.node.childNodes,h=>(S(),ce(u,{key:e.getNodeKey(h),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:h,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,y0e)),[[jt,e.expanded]]):ie("v-if",!0)]),_:1})],42,b0e)),[[jt,e.node.visible]])}var _0e=ps(g0e,[["render",w0e]]);function C0e({el$:e},t){const n=Ee("tree");Mt(()=>{o()}),lr(()=>{var r;(r=e.value)==null||r.querySelectorAll("input[type=checkbox]").forEach(i=>{i.setAttribute("tabindex","-1")})});function s(r,i){var l,c;const u=t.value.getNode(r[i].dataset.key);return u.canFocus&&u.visible&&(((l=u.parent)==null?void 0:l.expanded)||((c=u.parent)==null?void 0:c.level)===0)}an(e,"keydown",r=>{const i=r.target;if(!i.className.includes(n.b("node")))return;const l=un(r),c=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),u=c.indexOf(i);let f;if([Te.up,Te.down].includes(l)){if(r.preventDefault(),l===Te.up){f=u===-1?0:u!==0?u-1:c.length-1;const p=f;for(;!s(c,f);){if(f--,f===p){f=-1;break}f<0&&(f=c.length-1)}}else{f=u===-1?0:u<c.length-1?u+1:0;const p=f;for(;!s(c,f);){if(f++,f===p){f=-1;break}f>=c.length&&(f=0)}}f!==-1&&c[f].focus()}[Te.left,Te.right].includes(l)&&(r.preventDefault(),i.click());const h=i.querySelector('[type="checkbox"]');[Te.enter,Te.numpadEnter,Te.space].includes(l)&&h&&(r.preventDefault(),h.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(u=>{u.setAttribute("tabindex","-1")});const c=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(c.length){c[0].setAttribute("tabindex","0");return}(r=i[0])==null||r.setAttribute("tabindex","0")}}const $M=Me({data:{type:re(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:{type:Array},defaultExpandedKeys:{type:Array},currentNodeKey:{type:[String,Number]},renderContent:{type:re(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:re(Function)},allowDrop:{type:re(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:{type:Function},filterNodeMethod:{type:Function},accordion:Boolean,indent:{type:Number,default:18},icon:{type:rn}});var S0e=K({name:"ElTree",components:{ElTreeNode:_0e},props:$M,emits:{"check-change":(e,t,n)=>e&&on(t)&&on(n),"current-change":(e,t)=>!0,"node-click":(e,t,n,s)=>e&&t&&s instanceof Event,"node-contextmenu":(e,t,n,s)=>e instanceof Event&&t&&n,"node-collapse":(e,t,n)=>e&&t,"node-expand":(e,t,n)=>e&&t,check:(e,t)=>e&&t,"node-drag-start":(e,t)=>e&&t,"node-drag-end":(e,t,n,s)=>e&&s,"node-drop":(e,t,n,s)=>e&&t&&s,"node-drag-leave":(e,t,n)=>e&&t&&n,"node-drag-enter":(e,t,n)=>e&&t&&n,"node-drag-over":(e,t,n)=>e&&t&&n},setup(e,t){const{t:n}=Ft(),s=Ee("tree"),a=F(new p0e({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}));a.value.initialize();const o=F(a.value.root),r=F(null),i=F(null),l=F(null),{broadcastExpanded:c}=LM(e),{dragState:u}=m0e({props:e,ctx:t,el$:i,dropIndicator$:l,store:a});C0e({el$:i},a);const f=Tt(),h=E(()=>{let z=f==null?void 0:f.parent;for(;z;){if(z.type.name==="ElTreeSelect")return!0;z=z.parent}return!1}),p=E(()=>{const{childNodes:z}=o.value;return(!z||z.length===0||z.every(({visible:G})=>!G))&&!h.value});be(()=>e.currentNodeKey,z=>{a.value.setCurrentNodeKey(z??null)}),be(()=>e.defaultCheckedKeys,(z,G)=>{Hn(z,G)||a.value.setDefaultCheckedKey(z??[])}),be(()=>e.defaultExpandedKeys,z=>{a.value.setDefaultExpandedKeys(z??[])}),be(()=>e.data,z=>{a.value.setData(z)},{deep:!0}),be(()=>e.checkStrictly,z=>{a.value.checkStrictly=z});const v=z=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(z)},m=z=>c8(e.nodeKey,z.data),g=z=>{if(!e.nodeKey)throw new Error(`[Tree] nodeKey is required in ${z}`)},b=z=>{g("getNodePath");const G=a.value.getNode(z);if(!G)return[];const Q=[G.data];let U=G.parent;for(;U&&U!==o.value;)Q.push(U.data),U=U.parent;return Q.reverse()},C=(z,G)=>a.value.getCheckedNodes(z,G),w=z=>a.value.getCheckedKeys(z),_=()=>{const z=a.value.getCurrentNode();return z?z.data:null},x=()=>{g("getCurrentKey");const z=_();return z?z[e.nodeKey]:null},k=(z,G)=>{g("setCheckedNodes"),a.value.setCheckedNodes(z,G)},T=(z,G)=>{g("setCheckedKeys"),a.value.setCheckedKeys(z,G)},R=(z,G,Q)=>{a.value.setChecked(z,G,Q)},I=()=>a.value.getHalfCheckedNodes(),P=()=>a.value.getHalfCheckedKeys(),$=(z,G=!0)=>{g("setCurrentNode"),u8(a,t.emit,()=>{c(z),a.value.setUserCurrentNode(z,G)})},O=(z=null,G=!0)=>{g("setCurrentKey"),u8(a,t.emit,()=>{c(),a.value.setCurrentNodeKey(z,G)})},B=z=>a.value.getNode(z),H=z=>{a.value.remove(z)},J=(z,G)=>{a.value.append(z,G)},Y=(z,G)=>{a.value.insertBefore(z,G)},N=(z,G)=>{a.value.insertAfter(z,G)},L=(z,G,Q)=>{c(G),t.emit("node-expand",z,G,Q)},V=(z,G)=>{g("updateKeyChild"),a.value.updateChildren(z,G)};return Nt(h8,{ctx:t,props:e,store:a,root:o,currentNode:r,instance:f}),Nt(ri,void 0),{ns:s,store:a,root:o,currentNode:r,dragState:u,el$:i,dropIndicator$:l,isEmpty:p,filter:v,getNodeKey:m,getNodePath:b,getCheckedNodes:C,getCheckedKeys:w,getCurrentNode:_,getCurrentKey:x,setCheckedNodes:k,setCheckedKeys:T,setChecked:R,getHalfCheckedNodes:I,getHalfCheckedKeys:P,setCurrentNode:$,setCurrentKey:O,t:n,getNode:B,remove:H,append:J,insertBefore:Y,insertAfter:N,handleNodeExpand:L,updateKeyChildren:V}}});function x0e(e,t,n,s,a,o){const r=Ge("el-tree-node");return S(),M("div",{ref:"el$",class:D([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"},[(S(!0),M(He,null,Et(e.root.childNodes,i=>(S(),ce(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?(S(),M("div",{key:0,class:D(e.ns.e("empty-block"))},[ue(e.$slots,"empty",{},()=>{var i;return[A("span",{class:D(e.ns.e("empty-text"))},ge((i=e.emptyText)!=null?i:e.t("el.tree.emptyText")),3)]})],2)):ie("v-if",!0),Ct(A("div",{ref:"dropIndicator$",class:D(e.ns.e("drop-indicator"))},null,2),[[jt,e.dragState.showDropIndicator]])],2)}var k0e=ps(S0e,[["render",x0e]]);const p8=wt(k0e),E0e=(e,{attrs:t,emit:n},{select:s,tree:a,key:o})=>{const r=Ee("tree-select");be(()=>e.data,()=>{e.filterable&&ze(()=>{var c,u;(u=a.value)==null||u.filter((c=s.value)==null?void 0:c.states.inputValue)})},{flush:"post"});const i=c=>{var u;const f=c.at(-1);if(f.expanded&&f.childNodes.at(-1))i([f.childNodes.at(-1)]);else{const h=(u=a.value.el$)==null?void 0:u.querySelector(`[data-key="${c.at(-1).key}"]`);h==null||h.focus({preventScroll:!0});return}};return Mt(()=>{an(()=>{var c;return(c=s.value)==null?void 0:c.$el},"keydown",async c=>{const u=un(c),{dropdownMenuVisible:f}=s.value;[Te.down,Te.up].includes(u)&&f&&(await ze(),setTimeout(()=>{var h,p,v;if(Te.up===u){const m=a.value.store.root.childNodes;i(m);return}(v=(p=(h=s.value.optionsArray[s.value.states.hoveringIndex].$el)==null?void 0:h.parentNode)==null?void 0:p.parentNode)==null||v.focus({preventScroll:!0})}))},{capture:!0})}),{...Yi(_s(e),Object.keys(hc.props)),...t,class:E(()=>t.class),style:E(()=>t.style),"onUpdate:modelValue":c=>n(mt,c),valueKey:o,popperClass:E(()=>{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=a.value)==null||u.filter(c)}}},A0e=K({extends:Xg,setup(e,t){const n=Xg.setup(e,t);delete n.selectOptionClick;const s=Tt().proxy;return ze(()=>{n.select.states.cachedOptions.get(s.value)||n.select.onOptionCreate(s)}),be(()=>t.attrs.visible,a=>{ze(()=>{n.states.visible=a})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function v8(e){return e||e===0}function m8(e){return Ae(e)&&e.length}function sh(e){return Ae(e)?e:v8(e)?[e]:[]}function N1(e,t,n,s,a){for(let o=0;o<e.length;o++){const r=e[o];if(t(r,o,e,a))return s?s(r,o,e,a):r;{const i=n(r);if(m8(i)){const l=N1(i,t,n,s,r);if(l)return l}}}}function $1(e,t,n,s){for(let a=0;a<e.length;a++){const o=e[a];t(o,a,e,s);const r=n(o);m8(r)&&$1(r,t,n,o)}}const T0e=(e,{attrs:t,slots:n,emit:s},{select:a,tree:o,key:r})=>{be([()=>e.modelValue,o],()=>{e.showCheckbox&&ze(()=>{const h=o.value;h&&!Hn(h.getCheckedKeys(),sh(e.modelValue))&&h.setCheckedKeys(sh(e.modelValue))})},{immediate:!0,deep:!0});const i=E(()=>({value:r.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(h,p)=>{var v;const m=i.value[h];return Qe(m)?m(p,(v=o.value)==null?void 0:v.getNode(l("value",p))):p[m]},c=sh(e.modelValue).map(h=>N1(e.data||[],p=>l("value",p)===h,p=>l("children",p),(p,v,m,g)=>g&&l("value",g))).filter(h=>v8(h)),u=E(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const h=[];return $1(e.data.concat(e.cacheData),p=>{const v=l("value",p);h.push({value:v,currentLabel:l("label",p),isDisabled:l("disabled",p)})},p=>l("children",p)),h}),f=()=>{var h;return(h=o.value)==null?void 0:h.getCheckedKeys().filter(p=>{var v;const m=(v=o.value)==null?void 0:v.getNode(p);return!Qn(m)&&Ia(m.childNodes)})};return{...Yi(_s(e),Object.keys(p8.props)),...t,nodeKey:r,expandOnClickNode:E(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:E(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(h,{node:p,data:v,store:m})=>h(A0e,{value:l("value",v),label:l("label",v),disabled:l("disabled",v),visible:p.visible},e.renderContent?()=>e.renderContent(h,{node:p,data:v,store:m}):n.default?()=>n.default({node:p,data:v,store:m}):void 0),filterNodeMethod:(h,p,v)=>e.filterNodeMethod?e.filterNodeMethod(h,p,v):h?new RegExp(T3(h),"i").test(l("label",p)||""):!0,onNodeClick:(h,p,v)=>{var m,g,b;if((m=t.onNodeClick)==null||m.call(t,h,p,v),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||p.isLeaf)){if(!l("disabled",h)){const C=(g=a.value)==null?void 0:g.states.options.get(l("value",h));(b=a.value)==null||b.handleOptionSelect(C)}}else e.expandOnClickNode&&v.proxy.handleExpandIconClick()},onCheck:(h,p)=>{var v;if(!e.showCheckbox)return;const m=l("value",h),g={};$1([o.value.store.root],_=>g[_.key]=_,_=>_.childNodes);const b=p.checkedKeys,C=e.multiple?sh(e.modelValue).filter(_=>!(_ in g)&&!b.includes(_)):[],w=C.concat(b);if(e.checkStrictly)s(mt,e.multiple?w:w.includes(m)?m:void 0);else if(e.multiple){const _=f();s(mt,C.concat(_))}else{const _=N1([h],T=>!m8(l("children",T))&&!l("disabled",T),T=>l("children",T)),x=_?l("value",_):void 0,k=v8(e.modelValue)&&!!N1([h],T=>l("value",T)===e.modelValue,T=>l("children",T));s(mt,x===e.modelValue||k?void 0:x)}ze(()=>{var _;const x=sh(e.modelValue);o.value.setCheckedKeys(x),(_=t.onCheck)==null||_.call(t,h,{checkedKeys:o.value.getCheckedKeys(),checkedNodes:o.value.getCheckedNodes(),halfCheckedKeys:o.value.getHalfCheckedKeys(),halfCheckedNodes:o.value.getHalfCheckedNodes()})}),(v=a.value)==null||v.focus()},onNodeExpand:(h,p,v)=>{var m;(m=t.onNodeExpand)==null||m.call(t,h,p,v),ze(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&p.checked){const g={},b=o.value.getCheckedKeys();$1([o.value.store.root],_=>g[_.key]=_,_=>_.childNodes);const C=sh(e.modelValue).filter(_=>!(_ in g)&&!b.includes(_)),w=f();s(mt,C.concat(w))}})},cacheOptions:u}};var M0e=K({props:{data:{type:Array,default:()=>[]}},setup(e){const t=je(Hp);return be(()=>e.data,()=>{var n;e.data.forEach(a=>{t.states.cachedOptions.has(a.value)||t.states.cachedOptions.set(a.value,a)});const s=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];Yt&&!Array.from(s).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}}),P0e=K({name:"ElTreeSelect",inheritAttrs:!1,props:{...Zk,...$M,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:s}=t,a=F(),o=F(),r=E(()=>e.nodeKey||e.valueKey||"value"),i=E0e(e,t,{select:a,tree:o,key:r}),{cacheOptions:l,...c}=T0e(e,t,{select:a,tree:o,key:r}),u=Gt({});return s(u),Mt(()=>{Object.assign(u,{...Yi(o.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Yi(a.value,["focus","blur","selectedLabel"]),treeRef:o.value,selectRef:a.value})}),()=>lt(hc,Gt({...i,ref:f=>a.value=f}),{...n,default:()=>[lt(M0e,{data:l.value}),lt(p8,Gt({...c,ref:f=>o.value=f}))]})}});const R0e=wt(P0e),g8=Symbol(),I0e={key:-1,level:-1,data:{}};var uv=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(uv||{}),b8=(e=>(e.ADD="add",e.DELETE="delete",e))(b8||{});const DM={type:Number,default:26},O0e=Me({data:{type:re(Array),default:()=>$n([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:re(Object),default:()=>$n({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:re(Array),default:()=>$n([])},checkStrictly:Boolean,defaultExpandedKeys:{type:re(Array),default:()=>$n([])},indent:{type:Number,default:16},itemSize:DM,icon:{type:rn},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:re([String,Number])},accordion:Boolean,filterMethod:{type:re(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),L0e=Me({node:{type:re(Object),default:()=>$n(I0e)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:DM}),N0e=Me({node:{type:re(Object),required:!0}}),FM="node-click",BM="node-drop",VM="node-expand",zM="node-collapse",HM="current-change",WM="check",jM="check-change",KM="node-contextmenu",$0e={[FM]:(e,t,n)=>e&&t&&n,[BM]:(e,t,n)=>e&&t&&n,[VM]:(e,t)=>e&&t,[zM]:(e,t)=>e&&t,[HM]:(e,t)=>e&&t,[WM]:(e,t)=>e&&t,[jM]:(e,t)=>e&&on(t),[KM]:(e,t,n)=>e&&t&&n},D0e={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&on(t)};function F0e(e,t){const n=F(new Set),s=F(new Set),{emit:a}=Tt();be([()=>t.value,()=>e.defaultCheckedKeys],()=>ze(()=>{C(e.defaultCheckedKeys)}),{immediate:!0});const o=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:w,maxLevel:_}=t.value,x=n.value,k=new Set;for(let T=_;T>=1;--T){const R=w.get(T);R&&R.forEach(I=>{const P=I.children;let $=!I.isLeaf||I.disabled||x.has(I.key);if(P){let O=!0,B=!1;for(const H of P){const J=H.key;if(H.isEffectivelyChecked||($=!1),x.has(J))B=!0;else if(k.has(J)){O=!1,B=!0;break}else O=!1}O?x.add(I.key):B?(k.add(I.key),x.delete(I.key)):(x.delete(I.key),k.delete(I.key))}I.isEffectivelyChecked=$})}s.value=k},r=w=>n.value.has(w.key),i=w=>s.value.has(w.key),l=(w,_,x=!0,k=!0)=>{const T=n.value,R=w.children;!e.checkStrictly&&x&&(R!=null&&R.length)&&(_=R.some(P=>!P.isEffectivelyChecked));const I=(P,$)=>{T[$?b8.ADD:b8.DELETE](P.key);const O=P.children;!e.checkStrictly&&O&&O.forEach(B=>{(!B.disabled||B.children)&&I(B,$)})};I(w,_),k&&o(),x&&c(w,_)},c=(w,_)=>{const{checkedNodes:x,checkedKeys:k}=v(),{halfCheckedNodes:T,halfCheckedKeys:R}=m();a(WM,w.data,{checkedKeys:k,checkedNodes:x,halfCheckedKeys:R,halfCheckedNodes:T}),a(jM,w.data,_)};function u(w=!1){return v(w).checkedKeys}function f(w=!1){return v(w).checkedNodes}function h(){return m().halfCheckedKeys}function p(){return m().halfCheckedNodes}function v(w=!1){const _=[],x=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:k}=t.value;n.value.forEach(T=>{const R=k.get(T);R&&(!w||w&&R.isLeaf)&&(x.push(T),_.push(R.data))})}return{checkedKeys:x,checkedNodes:_}}function m(){const w=[],_=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:x}=t.value;s.value.forEach(k=>{const T=x.get(k);T&&(_.push(k),w.push(T.data))})}return{halfCheckedNodes:w,halfCheckedKeys:_}}function g(w){n.value.clear(),s.value.clear(),ze(()=>{C(w)})}function b(w,_){if(t!=null&&t.value&&e.showCheckbox){const x=t.value.treeNodeMap.get(w);x&&l(x,_,!1)}}function C(w){if(t!=null&&t.value){const{treeNodeMap:_}=t.value;if(e.showCheckbox&&_&&(w==null?void 0:w.length)>0){for(const x of w){const k=_.get(x);k&&!r(k)&&l(k,!0,!1,!1)}o()}}}return{updateCheckedKeys:o,toggleCheckbox:l,isChecked:r,isIndeterminate:i,getCheckedKeys:u,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:p,setChecked:b,setCheckedKeys:g}}function B0e(e,t){const n=F(new Set([])),s=F(new Set([])),a=E(()=>Qe(e.filterMethod));function o(i){var l;if(!a.value)return;const c=new Set,u=s.value,f=n.value,h=[],p=((l=t.value)==null?void 0:l.treeNodes)||[],v=e.filterMethod;f.clear();function m(g){g.forEach(b=>{h.push(b),v!=null&&v(i,b.data,b)?h.forEach(w=>{c.add(w.key),w.expanded=!0}):(b.expanded=!1,b.isLeaf&&f.add(b.key));const C=b.children;if(C&&m(C),!b.isLeaf){if(!c.has(b.key))f.add(b.key);else if(C){let w=!0;for(const _ of C)if(!f.has(_.key)){w=!1;break}w?u.add(b.key):u.delete(b.key)}}h.pop()})}return m(p),c}function r(i){return s.value.has(i.key)}return{hiddenExpandIconKeySet:s,hiddenNodeKeySet:n,doFilter:o,isForceHiddenExpandIcon:r}}function V0e(e,t){const n=F(new Set),s=F(),a=bn(),o=F(),{isIndeterminate:r,isChecked:i,toggleCheckbox:l,getCheckedKeys:c,getCheckedNodes:u,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:p,setCheckedKeys:v}=F0e(e,a),{doFilter:m,hiddenNodeKeySet:g,isForceHiddenExpandIcon:b}=B0e(e,a),C=E(()=>{var Z;return((Z=e.props)==null?void 0:Z.value)||uv.KEY}),w=E(()=>{var Z;return((Z=e.props)==null?void 0:Z.children)||uv.CHILDREN}),_=E(()=>{var Z;return((Z=e.props)==null?void 0:Z.disabled)||uv.DISABLED}),x=E(()=>{var Z;return((Z=e.props)==null?void 0:Z.label)||uv.LABEL}),k=E(()=>{var Z;const j=n.value,ae=g.value,fe=[],we=((Z=a.value)==null?void 0:Z.treeNodes)||[],Se=[];for(let ke=we.length-1;ke>=0;--ke)Se.push(we[ke]);for(;Se.length;){const ke=Se.pop();if(!ae.has(ke.key)&&(fe.push(ke),ke.children&&j.has(ke.key)))for(let Oe=ke.children.length-1;Oe>=0;--Oe)Se.push(ke.children[Oe])}return fe}),T=E(()=>k.value.length>0);function R(Z){const j=new Map,ae=new Map;let fe=1;function we(ke,Oe=1,Be=void 0){var Le;const Ce=[];for(const Ie of ke){const Re=$(Ie),Ke={level:Oe,key:Re,data:Ie};Ke.label=B(Ie),Ke.parent=Be;const tt=P(Ie);Ke.disabled=O(Ie),Ke.isLeaf=!tt||tt.length===0,Ke.expanded=n.value.has(Re),tt&&tt.length&&(Ke.children=we(tt,Oe+1,Ke)),Ce.push(Ke),j.set(Re,Ke),ae.has(Oe)||ae.set(Oe,[]),(Le=ae.get(Oe))==null||Le.push(Ke)}return Oe>fe&&(fe=Oe),Ce}const Se=we(Z);return{treeNodeMap:j,levelTreeNodeMap:ae,maxLevel:fe,treeNodes:Se}}function I(Z){const j=m(Z);j&&(n.value=j)}function P(Z){return Z[w.value]}function $(Z){return Z?Z[C.value]:""}function O(Z){return Z[_.value]}function B(Z){return Z[x.value]}function H(Z){n.value.has(Z.key)?G(Z):z(Z)}function J(Z){const j=new Set,ae=a.value.treeNodeMap;n.value.forEach(fe=>{const we=ae.get(fe);n.value.delete(we.key),we.expanded=!1}),Z.forEach(fe=>{let we=ae.get(fe);for(;we&&!j.has(we.key);)j.add(we.key),we.expanded=!0,we=we.parent}),n.value=j}function Y(Z,j){t(FM,Z.data,Z,j),L(Z),e.expandOnClickNode&&H(Z),e.showCheckbox&&(e.checkOnClickNode||Z.isLeaf&&e.checkOnClickLeaf)&&!Z.disabled&&l(Z,!i(Z),!0)}function N(Z,j){t(BM,Z.data,Z,j)}function L(Z){U(Z)||(s.value=Z.key,t(HM,Z.data,Z))}function V(Z,j){l(Z,j)}function z(Z){const j=n.value;if(a.value&&e.accordion){const{treeNodeMap:fe}=a.value;j.forEach(we=>{const Se=fe.get(we);Z&&Z.level===(Se==null?void 0:Se.level)&&(j.delete(we),Se.expanded=!1)})}j.add(Z.key);const ae=pe(Z.key);ae&&(ae.expanded=!0,t(VM,ae.data,ae))}function G(Z){n.value.delete(Z.key);const j=pe(Z.key);j&&(j.expanded=!1,t(zM,j.data,j))}function Q(Z){return!!Z.disabled}function U(Z){const j=s.value;return j!==void 0&&j===Z.key}function ee(){var Z,j;if(s.value)return(j=(Z=a.value)==null?void 0:Z.treeNodeMap.get(s.value))==null?void 0:j.data}function se(){return s.value}function de(Z){s.value=Z}function te(Z){a.value=R(Z)}function pe(Z){var j;const ae=bt(Z)?$(Z):Z;return(j=a.value)==null?void 0:j.treeNodeMap.get(ae)}function he(Z,j="auto"){const ae=pe(Z);ae&&o.value&&o.value.scrollToItem(k.value.indexOf(ae),j)}function le(Z){var j;(j=o.value)==null||j.scrollTo(Z)}return be(()=>e.currentNodeKey,Z=>{s.value=Z},{immediate:!0}),be(()=>e.defaultExpandedKeys,Z=>{n.value=new Set(Z)},{immediate:!0}),be(()=>e.data,Z=>{te(Z)},{immediate:!0}),{tree:a,flattenTree:k,isNotEmpty:T,listRef:o,getKey:$,getChildren:P,toggleExpand:H,toggleCheckbox:l,isChecked:i,isIndeterminate:r,isDisabled:Q,isCurrent:U,isForceHiddenExpandIcon:b,handleNodeClick:Y,handleNodeDrop:N,handleNodeCheck:V,getCurrentNode:ee,getCurrentKey:se,setCurrentKey:de,getCheckedKeys:c,getCheckedNodes:u,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:p,setCheckedKeys:v,filter:I,setData:te,getNode:pe,expandNode:z,collapseNode:G,setExpandedKeys:J,scrollToNode:he,scrollTo:le}}var z0e=K({name:"ElTreeNodeContent",props:N0e,setup(e){const t=je(g8),n=Ee("tree");return()=>{const s=e.node,{data:a}=s;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:s,data:a}):lt(o8,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[s==null?void 0:s.label])}}});const H0e=["aria-expanded","aria-disabled","aria-checked","data-key"];var W0e=K({name:"ElTreeNode",__name:"tree-node",props:L0e,emits:D0e,setup(e,{emit:t}){const n=e,s=t,a=je(g8),o=Ee("tree"),r=E(()=>{var v;return(v=a==null?void 0:a.props.indent)!=null?v:16}),i=E(()=>{var v;return(v=a==null?void 0:a.props.icon)!=null?v:zy}),l=v=>{var m;const g=(m=a==null?void 0:a.props.props)==null?void 0:m.class;if(!g)return{};let b;if(Qe(g)){const{data:C}=v;b=g(C,v)}else b=g;return Xe(b)?{[b]:!0}:b},c=v=>{s("click",n.node,v)},u=v=>{s("drop",n.node,v)},f=()=>{s("toggle",n.node)},h=v=>{s("check",n.node,v)},p=v=>{var m,g,b,C;(b=(g=(m=a==null?void 0:a.instance)==null?void 0:m.vnode)==null?void 0:g.props)!=null&&b.onNodeContextmenu&&(v.stopPropagation(),v.preventDefault()),a==null||a.ctx.emit(KM,v,(C=n.node)==null?void 0:C.data,n.node)};return(v,m)=>{var g,b,C;return S(),M("div",{ref:"node$",class:D([d(o).b("node"),d(o).is("expanded",e.expanded),d(o).is("current",e.current),d(o).is("focusable",!e.disabled),d(o).is("checked",!e.disabled&&e.checked),l(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":(g=e.node)==null?void 0:g.key,onClick:ht(c,["stop"]),onContextmenu:p,onDragover:m[1]||(m[1]=ht(()=>{},["prevent"])),onDragenter:m[2]||(m[2]=ht(()=>{},["prevent"])),onDrop:ht(u,["stop"])},[A("div",{class:D(d(o).be("node","content")),style:et({paddingLeft:`${(e.node.level-1)*r.value}px`,height:e.itemSize+"px"})},[i.value?(S(),ce(d(Je),{key:0,class:D([d(o).is("leaf",!!((b=e.node)!=null&&b.isLeaf)),d(o).is("hidden",e.hiddenExpandIcon),{expanded:!((C=e.node)!=null&&C.isLeaf)&&e.expanded},d(o).be("node","expand-icon")]),onClick:ht(f,["stop"])},{default:X(()=>[(S(),ce(kt(i.value)))]),_:1},8,["class"])):ie("v-if",!0),e.showCheckbox?(S(),ce(d(yr),{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:h,onClick:m[0]||(m[0]=ht(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):ie("v-if",!0),W(d(z0e),{node:{...e.node,expanded:e.expanded}},null,8,["node"])],6)],42,H0e)}}}),j0e=K({name:"ElTreeV2",__name:"tree",props:O0e,emits:$0e,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Gn(),r=E(()=>s.itemSize);Nt(g8,{ctx:{emit:a,slots:o},props:s,instance:Tt()}),Nt(ri,void 0);const{t:i}=Ft(),l=Ee("tree"),{flattenTree:c,isNotEmpty:u,listRef:f,toggleExpand:h,isIndeterminate:p,isChecked:v,isDisabled:m,isCurrent:g,isForceHiddenExpandIcon:b,handleNodeClick:C,handleNodeDrop:w,handleNodeCheck:_,toggleCheckbox:x,getCurrentNode:k,getCurrentKey:T,setCurrentKey:R,getCheckedKeys:I,getCheckedNodes:P,getHalfCheckedKeys:$,getHalfCheckedNodes:O,setChecked:B,setCheckedKeys:H,filter:J,setData:Y,getNode:N,expandNode:L,collapseNode:V,setExpandedKeys:z,scrollToNode:G,scrollTo:Q}=V0e(s,a);return t({toggleCheckbox:x,getCurrentNode:k,getCurrentKey:T,setCurrentKey:R,getCheckedKeys:I,getCheckedNodes:P,getHalfCheckedKeys:$,getHalfCheckedNodes:O,setChecked:B,setCheckedKeys:H,filter:J,setData:Y,getNode:N,expandNode:L,collapseNode:V,setExpandedKeys:z,scrollToNode:G,scrollTo:Q}),(U,ee)=>(S(),M("div",{class:D([d(l).b(),{[d(l).m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[d(u)?(S(),ce(d(dT),{key:0,ref_key:"listRef",ref:f,"class-name":d(l).b("virtual-list"),data:d(c),total:d(c).length,height:e.height,"item-size":r.value,"perf-mode":e.perfMode,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:X(({data:se,index:de,style:te})=>[(S(),ce(W0e,{key:se[de].key,style:et(te),node:se[de],expanded:se[de].expanded,"show-checkbox":e.showCheckbox,checked:d(v)(se[de]),indeterminate:d(p)(se[de]),"item-size":r.value,disabled:d(m)(se[de]),current:d(g)(se[de]),"hidden-expand-icon":d(b)(se[de]),onClick:d(C),onToggle:d(h),onCheck:d(_),onDrop:d(w)},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"])):(S(),M("div",{key:1,class:D(d(l).e("empty-block"))},[ue(U.$slots,"empty",{},()=>{var se;return[A("span",{class:D(d(l).e("empty-text"))},ge((se=e.emptyText)!=null?se:d(i)("el.tree.emptyText")),3)]})],2))],2))}});const K0e=wt(j0e);var U0e=Object.defineProperty,q0e=(e,t,n)=>t in e?U0e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D1=(e,t,n)=>q0e(e,typeof t!="symbol"?t+"":t,n);const G0e="ElUpload";class Y0e extends Error{constructor(t,n,s,a){super(t),D1(this,"name","UploadAjaxError"),D1(this,"status"),D1(this,"method"),D1(this,"url"),this.status=n,this.method=s,this.url=a}}function UM(e,t,n){let s;return n.response?s=`${n.response.error||n.response}`:n.responseText?s=`${n.responseText}`:s=`fail to ${t.method} ${e} ${n.status}`,new Y0e(s,n.status,t.method,e)}function X0e(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const J0e=e=>{typeof XMLHttpRequest>"u"&&ns(G0e,"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 s=new FormData;if(e.data)for(const[o,r]of Object.entries(e.data))Ae(r)&&r.length?s.append(o,...r):s.append(o,r);s.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(UM(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(UM(n,e,t));e.onSuccess(X0e(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach((o,r)=>t.setRequestHeader(r,o));else for(const[o,r]of Object.entries(a))Qn(r)||t.setRequestHeader(o,String(r));return t.send(s),t},qM=["text","picture","picture-card"];let Z0e=1;const y8=()=>Date.now()+Z0e++,GM=Me({action:{type:String,default:"#"},headers:{type:re(Object)},method:{type:String,default:"post"},data:{type:re([Object,Function,Promise]),default:()=>$n({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:re(Array),default:()=>$n([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:qM,default:"text"},httpRequest:{type:re(Function),default:J0e},disabled:{type:Boolean,default:void 0},limit:Number,directory:Boolean}),Q0e=Me({...GM,beforeUpload:{type:re(Function),default:en},beforeRemove:{type:re(Function)},onRemove:{type:re(Function),default:en},onChange:{type:re(Function),default:en},onPreview:{type:re(Function),default:en},onSuccess:{type:re(Function),default:en},onProgress:{type:re(Function),default:en},onError:{type:re(Function),default:en},onExceed:{type:re(Function),default:en},crossorigin:{type:re(String)}}),YM=Symbol("uploadContextKey"),epe=Me({files:{type:re(Array),default:()=>$n([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:re(Function),default:en},listType:{type:String,values:qM,default:"text"},crossorigin:{type:re(String)}}),tpe={remove:e=>!!e},npe=["tabindex","aria-disabled","onKeydown"],spe=["src","crossorigin"],ape=["onClick"],ope=["title"],rpe=["onClick"],ipe=["onClick"];var XM=K({name:"ElUploadList",__name:"upload-list",props:epe,emits:tpe,setup(e,{emit:t}){const n=e,s=t,{t:a}=Ft(),o=Ee("upload"),r=Ee("icon"),i=Ee("list"),l=Dn(),c=F(!1),u=E(()=>[o.b("list"),o.bm("list",n.listType),o.is("disabled",l.value)]),f=h=>{s("remove",h)};return(h,p)=>(S(),ce(jS,{tag:"ul",class:D(u.value),name:d(i).b()},{default:X(()=>[(S(!0),M(He,null,Et(e.files,(v,m)=>(S(),M("li",{key:v.uid||v.name,class:D([d(o).be("list","item"),d(o).is(v.status),{focusing:c.value}]),tabindex:d(l)?void 0:0,"aria-disabled":d(l),role:"button",onKeydown:zn(g=>!d(l)&&f(v),["delete"]),onFocus:p[0]||(p[0]=g=>c.value=!0),onBlur:p[1]||(p[1]=g=>c.value=!1),onClick:p[2]||(p[2]=g=>c.value=!1)},[ue(h.$slots,"default",{file:v,index:m},()=>[e.listType==="picture"||v.status!=="uploading"&&e.listType==="picture-card"?(S(),M("img",{key:0,class:D(d(o).be("list","item-thumbnail")),src:v.url,crossorigin:e.crossorigin,alt:""},null,10,spe)):ie("v-if",!0),v.status==="uploading"||e.listType!=="picture-card"?(S(),M("div",{key:1,class:D(d(o).be("list","item-info"))},[A("a",{class:D(d(o).be("list","item-name")),onClick:ht(g=>e.handlePreview(v),["prevent"])},[W(d(Je),{class:D(d(r).m("document"))},{default:X(()=>[W(d(Mg))]),_:1},8,["class"]),A("span",{class:D(d(o).be("list","item-file-name")),title:v.name},ge(v.name),11,ope)],10,ape),v.status==="uploading"?(S(),ce(d(JA),{key:0,type:e.listType==="picture-card"?"circle":"line","stroke-width":e.listType==="picture-card"?6:2,percentage:Number(v.percentage),style:et(e.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ie("v-if",!0)],2)):ie("v-if",!0),A("label",{class:D(d(o).be("list","item-status-label"))},[e.listType==="text"?(S(),ce(d(Je),{key:0,class:D([d(r).m("upload-success"),d(r).m("circle-check")])},{default:X(()=>[W(d(Ep))]),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(S(),ce(d(Je),{key:1,class:D([d(r).m("upload-success"),d(r).m("check")])},{default:X(()=>[W(d(Pf))]),_:1},8,["class"])):ie("v-if",!0)],2),d(l)?ie("v-if",!0):(S(),ce(d(Je),{key:2,class:D(d(r).m("close")),onClick:g=>f(v)},{default:X(()=>[W(d(qa))]),_:1},8,["class","onClick"])),ie(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),ie(" This is a bug which needs to be fixed "),ie(" TODO: Fix the incorrect navigation interaction "),d(l)?ie("v-if",!0):(S(),M("i",{key:3,class:D(d(r).m("close-tip"))},ge(d(a)("el.upload.deleteTip")),3)),e.listType==="picture-card"?(S(),M("span",{key:4,class:D(d(o).be("list","item-actions"))},[A("span",{class:D(d(o).be("list","item-preview")),onClick:g=>e.handlePreview(v)},[W(d(Je),{class:D(d(r).m("zoom-in"))},{default:X(()=>[W(d(Ig))]),_:1},8,["class"])],10,rpe),d(l)?ie("v-if",!0):(S(),M("span",{key:0,class:D(d(o).be("list","item-delete")),onClick:g=>f(v)},[W(d(Je),{class:D(d(r).m("delete"))},{default:X(()=>[W(d(Jx))]),_:1},8,["class"])],10,ipe))],2)):ie("v-if",!0)])],42,npe))),128)),ue(h.$slots,"append")]),_:3},8,["class","name"]))}});const lpe=Me({...GM,beforeUpload:{type:re(Function),default:en},onRemove:{type:re(Function),default:en},onStart:{type:re(Function),default:en},onSuccess:{type:re(Function),default:en},onProgress:{type:re(Function),default:en},onError:{type:re(Function),default:en},onExceed:{type:re(Function),default:en}}),cpe=Me({disabled:{type:Boolean,default:void 0},directory:Boolean}),upe={file:e=>Ae(e)},JM="ElUploadDrag";var dpe=K({name:JM,__name:"upload-dragger",props:cpe,emits:upe,setup(e,{emit:t}){const n=e,s=t;je(YM)||ns(JM,"usage: <el-upload><el-upload-dragger /></el-upload>");const o=Ee("upload"),r=F(!1),i=Dn(),l=p=>new Promise((v,m)=>p.file(v,m)),c=async p=>{try{if(p.isFile){const v=await l(p);return v.isDirectory=!1,[v]}if(p.isDirectory){const v=p.createReader(),m=()=>new Promise((_,x)=>v.readEntries(_,x)),g=[];let b=await m();for(;b.length>0;)g.push(...b),b=await m();const C=g.map(_=>c(_).catch(()=>[])),w=await Promise.all(C);return mg(w)}}catch{return[]}return[]},u=async p=>{if(i.value)return;r.value=!1,p.stopPropagation();const v=Array.from(p.dataTransfer.files),m=p.dataTransfer.items||[];if(n.directory){const g=Array.from(m).map(C=>{var w;return(w=C==null?void 0:C.webkitGetAsEntry)==null?void 0:w.call(C)}).filter(C=>C),b=await Promise.all(g.map(c));s("file",mg(b));return}v.forEach((g,b)=>{var C;const w=m[b],_=(C=w==null?void 0:w.webkitGetAsEntry)==null?void 0:C.call(w);_&&(g.isDirectory=_.isDirectory)}),s("file",v)},f=()=>{i.value||(r.value=!0)},h=p=>{p.currentTarget.contains(p.relatedTarget)||(r.value=!1)};return(p,v)=>(S(),M("div",{class:D([d(o).b("dragger"),d(o).is("dragover",r.value)]),onDrop:ht(u,["prevent"]),onDragover:ht(f,["prevent"]),onDragleave:ht(h,["prevent"])},[ue(p.$slots,"default")],34))}});const fpe=["tabindex","aria-disabled","onKeydown"],hpe=["name","disabled","multiple","accept","webkitdirectory"];var ZM=K({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:lpe,setup(e,{expose:t}){const n=e,s=Ee("upload"),a=Dn(),o=bn({}),r=bn(),i=m=>{if(m.length===0)return;const{autoUpload:g,limit:b,fileList:C,multiple:w,onStart:_,onExceed:x}=n;if(b&&C.length+m.length>b){x(m,C);return}w||(m=m.slice(0,1));for(const k of m){const T=k;T.uid=y8(),_(T),g&&l(T)}},l=async m=>{if(r.value.value="",!n.beforeUpload)return u(m);let g,b={};try{const w=n.data,_=n.beforeUpload(m);b=O0(n.data)?bg(n.data):n.data,g=await _,O0(n.data)&&Hn(w,b)&&(b=bg(n.data))}catch{g=!1}if(g===!1){n.onRemove(m);return}let C=m;g instanceof Blob&&(g instanceof File?C=g:C=new File([g],m.name,{type:m.type})),u(Object.assign(C,{uid:m.uid}),b)},c=async(m,g)=>Qe(m)?m(g):m,u=async(m,g)=>{const{headers:b,data:C,method:w,withCredentials:_,name:x,action:k,onProgress:T,onSuccess:R,onError:I,httpRequest:P}=n;try{g=await c(g??C,m)}catch{n.onRemove(m);return}const{uid:$}=m,O={headers:b||{},withCredentials:_,file:m,data:g,method:w,filename:x,action:k,onProgress:H=>{T(H,m)},onSuccess:H=>{R(H,m),delete o.value[$]},onError:H=>{I(H,m),delete o.value[$]}},B=P(O);o.value[$]=B,B instanceof Promise&&B.then(O.onSuccess,O.onError)},f=m=>{const g=m.target.files;g&&i(Array.from(g))},h=()=>{a.value||(r.value.value="",r.value.click())},p=()=>{h()};return t({abort:m=>{Fx(o.value).filter(m?([b])=>String(m.uid)===b:()=>!0).forEach(([b,C])=>{C instanceof XMLHttpRequest&&C.abort(),delete o.value[b]})},upload:l}),(m,g)=>(S(),M("div",{class:D([d(s).b(),d(s).m(e.listType),d(s).is("drag",e.drag),d(s).is("disabled",d(a))]),tabindex:d(a)?void 0:0,"aria-disabled":d(a),role:"button",onClick:h,onKeydown:zn(ht(p,["self"]),["enter","space"])},[e.drag?(S(),ce(dpe,{key:0,disabled:d(a),directory:e.directory,onFile:i},{default:X(()=>[ue(m.$slots,"default")]),_:3},8,["disabled","directory"])):ue(m.$slots,"default",{key:1}),A("input",{ref_key:"inputRef",ref:r,class:D(d(s).e("input")),name:e.name,disabled:d(a),multiple:e.multiple,accept:e.accept,webkitdirectory:e.directory||void 0,type:"file",onChange:f,onClick:g[0]||(g[0]=ht(()=>{},["stop"]))},null,42,hpe)],42,fpe))}});const QM="ElUpload",e7=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},ppe=(e,t)=>{const n=Tx(e,"fileList",void 0,{passive:!0}),s=v=>n.value.find(m=>m.uid===v.uid);function a(v){var m;(m=t.value)==null||m.abort(v)}function o(v=["ready","uploading","success","fail"]){n.value=n.value.filter(m=>!v.includes(m.status))}function r(v){n.value=n.value.filter(m=>m.uid!==v.uid)}const i=v=>{ze(()=>e.onChange(v,n.value))},l=(v,m)=>{const g=s(m);g&&(console.error(v),g.status="fail",r(g),e.onError(v,g,n.value),i(g))},c=(v,m)=>{const g=s(m);g&&(e.onProgress(v,g,n.value),g.status="uploading",g.percentage=Math.round(v.percent))},u=(v,m)=>{const g=s(m);g&&(g.status="success",g.response=v,e.onSuccess(v,g,n.value),i(g))},f=v=>{Qn(v.uid)&&(v.uid=y8());const m={name:v.name,percentage:0,status:"ready",size:v.size,raw:v,uid:v.uid};if(e.listType==="picture-card"||e.listType==="picture")try{m.url=URL.createObjectURL(v)}catch(g){g.message,e.onError(g,m,n.value)}n.value=[...n.value,m],i(m)},h=async v=>{const m=v instanceof File?s(v):v;m||ns(QM,"file to be removed not found");const g=b=>{a(b),r(b),e.onRemove(b,n.value),e7(b)};e.beforeRemove?await e.beforeRemove(m,n.value)!==!1&&g(m):g(m)};function p(){n.value.filter(({status:v})=>v==="ready").forEach(({raw:v})=>{var m;return v&&((m=t.value)==null?void 0:m.upload(v))})}return be(()=>e.listType,v=>{v!=="picture-card"&&v!=="picture"||(n.value=n.value.map(m=>{const{raw:g,url:b}=m;if(!b&&g)try{m.url=URL.createObjectURL(g)}catch(C){e.onError(C,m,n.value)}return m}))}),be(n,v=>{for(const m of v)m.uid||(m.uid=y8()),m.status||(m.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:a,clearFiles:o,handleError:l,handleProgress:c,handleStart:f,handleSuccess:u,handleRemove:h,submit:p,revokeFileObjectURL:e7}};var vpe=K({name:"ElUpload",__name:"upload",props:Q0e,setup(e,{expose:t}){const n=e,s=Dn(),a=bn(),{abort:o,submit:r,clearFiles:i,uploadFiles:l,handleStart:c,handleError:u,handleRemove:f,handleSuccess:h,handleProgress:p,revokeFileObjectURL:v}=ppe(n,a),m=E(()=>n.listType==="picture-card"),g=E(()=>({...n,fileList:l.value,onStart:c,onProgress:p,onSuccess:h,onError:u,onRemove:f}));return tn(()=>{l.value.forEach(v)}),Nt(YM,{accept:sn(n,"accept")}),t({abort:o,submit:r,clearFiles:i,handleStart:c,handleRemove:f}),(b,C)=>(S(),M("div",null,[m.value&&e.showFileList?(S(),ce(XM,{key:0,disabled:d(s),"list-type":e.listType,files:d(l),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:d(f)},Ta({append:X(()=>[W(ZM,At({ref_key:"uploadRef",ref:a},g.value),{default:X(()=>[b.$slots.trigger?ue(b.$slots,"trigger",{key:0}):ie("v-if",!0),!b.$slots.trigger&&b.$slots.default?ue(b.$slots,"default",{key:1}):ie("v-if",!0)]),_:3},16)]),_:2},[b.$slots.file?{name:"default",fn:X(({file:w,index:_})=>[ue(b.$slots,"file",{file:w,index:_})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ie("v-if",!0),!m.value||m.value&&!e.showFileList?(S(),ce(ZM,At({key:1,ref_key:"uploadRef",ref:a},g.value),{default:X(()=>[b.$slots.trigger?ue(b.$slots,"trigger",{key:0}):ie("v-if",!0),!b.$slots.trigger&&b.$slots.default?ue(b.$slots,"default",{key:1}):ie("v-if",!0)]),_:3},16)):ie("v-if",!0),b.$slots.trigger?ue(b.$slots,"default",{key:2}):ie("v-if",!0),ue(b.$slots,"tip"),!m.value&&e.showFileList?(S(),ce(XM,{key:3,disabled:d(s),"list-type":e.listType,files:d(l),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:d(f)},Ta({_:2},[b.$slots.file?{name:"default",fn:X(({file:w,index:_})=>[ue(b.$slots,"file",{file:w,index:_})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ie("v-if",!0)]))}});const mpe=wt(vpe),gpe=Me({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:re([String,Array]),default:"Element Plus"},font:{type:re(Object)},gap:{type:re(Array),default:()=>[100,100]},offset:{type:re(Array)}});function bpe(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function ype(e){return Object.keys(e).map(t=>`${bpe(t)}: ${e[t]};`).join(" ")}function wpe(){return window.devicePixelRatio||1}const _pe=(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},Cpe={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function w8(e,t,n=1){const s=document.createElement("canvas"),a=s.getContext("2d"),o=e*n,r=t*n;return s.setAttribute("width",`${o}px`),s.setAttribute("height",`${r}px`),a.save(),[a,s,o,r]}function Spe(){function e(t,n,s,a,o,r,i,l,c){const[u,f,h,p]=w8(a,o,s);let v=0;if(t instanceof HTMLImageElement)u.drawImage(t,0,0,h,p);else{const{color:U,fontSize:ee,fontStyle:se,fontWeight:de,fontFamily:te,textAlign:pe,textBaseline:he}=r,le=Number(ee)*s;u.font=`${se} normal ${de} ${le}px/${o}px ${te}`,u.fillStyle=U,u.textAlign=pe,u.textBaseline=he;const Z=Ae(t)?t:[t];if(he!=="top"&&Z[0]){const j=u.measureText(Z[0]);u.textBaseline="top";const ae=u.measureText(Z[0]);v=j.actualBoundingBoxAscent-ae.actualBoundingBoxAscent}Z==null||Z.forEach((j,ae)=>{const[fe,we]=Cpe[pe];u.fillText(j??"",h*fe+c*we,ae*(le+r.fontGap*s))})}const m=Math.PI/180*Number(n),g=Math.max(a,o),[b,C,w]=w8(g,g,s);b.translate(w/2,w/2),b.rotate(m),h>0&&p>0&&b.drawImage(f,-h/2,-p/2);function _(U,ee){const se=U*Math.cos(m)-ee*Math.sin(m),de=U*Math.sin(m)+ee*Math.cos(m);return[se,de]}let x=0,k=0,T=0,R=0;const I=h/2,P=p/2;[[0-I,0-P],[0+I,0-P],[0+I,0+P],[0-I,0+P]].forEach(([U,ee])=>{const[se,de]=_(U,ee);x=Math.min(x,se),k=Math.max(k,se),T=Math.min(T,de),R=Math.max(R,de)});const O=x+w/2,B=T+w/2,H=k-x,J=R-T,Y=i*s,N=l*s,L=(H+Y)*2,V=J+N,[z,G]=w8(L,V);function Q(U=0,ee=0){z.drawImage(C,O,B,H,J,U,ee+v,H,J)}return Q(),Q(H+Y,-J/2-N/2),Q(H+Y,+J/2+N/2),[G.toDataURL(),L/s,V/s]}return e}var xpe=K({name:"ElWatermark",__name:"watermark",props:gpe,setup(e){const t={position:"relative"},n=e,s=E(()=>{var $,O;return(O=($=n.font)==null?void 0:$.fontGap)!=null?O:3}),a=E(()=>{var $,O;return(O=($=n.font)==null?void 0:$.color)!=null?O:"rgba(0,0,0,.15)"}),o=E(()=>{var $,O;return(O=($=n.font)==null?void 0:$.fontSize)!=null?O:16}),r=E(()=>{var $,O;return(O=($=n.font)==null?void 0:$.fontWeight)!=null?O:"normal"}),i=E(()=>{var $,O;return(O=($=n.font)==null?void 0:$.fontStyle)!=null?O:"normal"}),l=E(()=>{var $,O;return(O=($=n.font)==null?void 0:$.fontFamily)!=null?O:"sans-serif"}),c=E(()=>{var $,O;return(O=($=n.font)==null?void 0:$.textAlign)!=null?O:"center"}),u=E(()=>{var $,O;return(O=($=n.font)==null?void 0:$.textBaseline)!=null?O:"hanging"}),f=E(()=>n.gap[0]),h=E(()=>n.gap[1]),p=E(()=>f.value/2),v=E(()=>h.value/2),m=E(()=>{var $,O;return(O=($=n.offset)==null?void 0:$[0])!=null?O:p.value}),g=E(()=>{var $,O;return(O=($=n.offset)==null?void 0:$[1])!=null?O:v.value}),b=()=>{const $={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let O=m.value-p.value,B=g.value-v.value;return O>0&&($.left=`${O}px`,$.width=`calc(100% - ${O}px)`,O=0),B>0&&($.top=`${B}px`,$.height=`calc(100% - ${B}px)`,B=0),$.backgroundPosition=`${O}px ${B}px`,$},C=bn(null),w=bn(),_=F(!1),x=()=>{w.value&&(w.value.remove(),w.value=void 0)},k=($,O)=>{var B;C.value&&w.value&&(_.value=!0,w.value.setAttribute("style",ype({...b(),backgroundImage:`url('${$}')`,backgroundSize:`${Math.floor(O)}px`})),(B=C.value)==null||B.append(w.value),setTimeout(()=>{_.value=!1}))},T=$=>{let O=120,B=64,H=0;const{image:J,content:Y,width:N,height:L,rotate:V}=n;if(!J&&$.measureText){$.font=`${Number(o.value)}px ${l.value}`;const z=Ae(Y)?Y:[Y];let G=0,Q=0;z.forEach(ee=>{const{width:se,fontBoundingBoxAscent:de,fontBoundingBoxDescent:te,actualBoundingBoxAscent:pe,actualBoundingBoxDescent:he}=$.measureText(ee),le=Wt(de)?pe+he:de+te;se>G&&(G=Math.ceil(se)),le>Q&&(Q=Math.ceil(le))}),O=G,B=Q*z.length+(z.length-1)*s.value;const U=Math.PI/180*Number(V);H=Math.ceil(Math.abs(Math.sin(U)*B)/2),O+=H}return[N??O,L??B,H]},R=Spe(),I=()=>{const O=document.createElement("canvas").getContext("2d"),B=n.image,H=n.content,J=n.rotate;if(O){w.value||(w.value=document.createElement("div"));const Y=wpe(),[N,L,V]=T(O),z=G=>{const[Q,U]=R(G||"",J,Y,N,L,{color:a.value,fontSize:o.value,fontStyle:i.value,fontWeight:r.value,fontFamily:l.value,fontGap:s.value,textAlign:c.value,textBaseline:u.value},f.value,h.value,V);k(Q,U)};if(B){const G=new Image;G.onload=()=>{z(G)},G.onerror=()=>{z(H)},G.crossOrigin="anonymous",G.referrerPolicy="no-referrer",G.src=B}else z(H)}};return Mt(()=>{I()}),be(()=>n,()=>{I()},{deep:!0,flush:"post"}),tn(()=>{x()}),wp(C,$=>{_.value||$.forEach(O=>{_pe(O,w.value)&&(x(),I())})},{attributes:!0,subtree:!0,childList:!0}),($,O)=>(S(),M("div",{ref_key:"containerRef",ref:C,style:et([t])},[ue($.$slots,"default")],4))}});const kpe=wt(xpe),Epe=["absolute","fixed"],Ape=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],_8=Me({placement:{type:re(String),values:Ape,default:"bottom"},reference:{type:re(Object),default:null},strategy:{type:re(String),values:Epe,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),Tpe={close:()=>!0},Mpe=Me({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:rn},placement:_8.placement,contentStyle:{type:re([Object])},mask:{type:re([Boolean,Object]),default:!0},gap:{type:re(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:re([Boolean,Object]),default:()=>({block:"center"})},type:{type:re(String)},appendTo:{type:xp.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),Ppe={[mt]:e=>on(e),"update:current":e=>st(e),close:e=>st(e),finish:()=>!0,change:e=>st(e)},Rpe=Me({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:re(Object)},targetAreaClickable:{type:Boolean,default:!0}}),ah=Math.min,Du=Math.max,F1=Math.round,B1=Math.floor,di=e=>({x:e,y:e}),Ipe={left:"right",right:"left",bottom:"top",top:"bottom"},Ope={start:"end",end:"start"};function C8(e,t,n){return Du(e,ah(t,n))}function dv(e,t){return typeof e=="function"?e(t):e}function Fu(e){return e.split("-")[0]}function fv(e){return e.split("-")[1]}function t7(e){return e==="x"?"y":"x"}function S8(e){return e==="y"?"height":"width"}const Lpe=new Set(["top","bottom"]);function mc(e){return Lpe.has(Fu(e))?"y":"x"}function x8(e){return t7(mc(e))}function Npe(e,t,n){n===void 0&&(n=!1);const s=fv(e),a=x8(e),o=S8(a);let r=a==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(r=V1(r)),[r,V1(r)]}function $pe(e){const t=V1(e);return[k8(e),t,k8(t)]}function k8(e){return e.replace(/start|end/g,t=>Ope[t])}const n7=["left","right"],s7=["right","left"],Dpe=["top","bottom"],Fpe=["bottom","top"];function Bpe(e,t,n){switch(e){case"top":case"bottom":return n?t?s7:n7:t?n7:s7;case"left":case"right":return t?Dpe:Fpe;default:return[]}}function Vpe(e,t,n,s){const a=fv(e);let o=Bpe(Fu(e),n==="start",s);return a&&(o=o.map(r=>r+"-"+a),t&&(o=o.concat(o.map(k8)))),o}function V1(e){return e.replace(/left|right|bottom|top/g,t=>Ipe[t])}function zpe(e){return{top:0,right:0,bottom:0,left:0,...e}}function a7(e){return typeof e!="number"?zpe(e):{top:e,right:e,bottom:e,left:e}}function z1(e){const{x:t,y:n,width:s,height:a}=e;return{width:s,height:a,top:n,left:t,right:t+s,bottom:n+a,x:t,y:n}}function o7(e,t,n){let{reference:s,floating:a}=e;const o=mc(t),r=x8(t),i=S8(r),l=Fu(t),c=o==="y",u=s.x+s.width/2-a.width/2,f=s.y+s.height/2-a.height/2,h=s[i]/2-a[i]/2;let p;switch(l){case"top":p={x:u,y:s.y-a.height};break;case"bottom":p={x:u,y:s.y+s.height};break;case"right":p={x:s.x+s.width,y:f};break;case"left":p={x:s.x-a.width,y:f};break;default:p={x:s.x,y:s.y}}switch(fv(t)){case"start":p[r]-=h*(n&&c?-1:1);break;case"end":p[r]+=h*(n&&c?-1:1);break}return p}async function r7(e,t){var n;t===void 0&&(t={});const{x:s,y:a,platform:o,rects:r,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=dv(t,e),v=a7(p),g=i[h?f==="floating"?"reference":"floating":f],b=z1(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(g)))==null||n?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(i.floating)),boundary:c,rootBoundary:u,strategy:l})),C=f==="floating"?{x:s,y:a,width:r.floating.width,height:r.floating.height}:r.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(i.floating)),_=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},x=z1(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:C,offsetParent:w,strategy:l}):C);return{top:(b.top-x.top+v.top)/_.y,bottom:(x.bottom-b.bottom+v.bottom)/_.y,left:(b.left-x.left+v.left)/_.x,right:(x.right-b.right+v.right)/_.x}}const Hpe=async(e,t,n)=>{const{placement:s="bottom",strategy:a="absolute",middleware:o=[],platform:r}=n,i=o.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:f}=o7(c,s,l),h=s,p={},v=0;for(let g=0;g<i.length;g++){var m;const{name:b,fn:C}=i[g],{x:w,y:_,data:x,reset:k}=await C({x:u,y:f,initialPlacement:s,placement:h,strategy:a,middlewareData:p,rects:c,platform:{...r,detectOverflow:(m=r.detectOverflow)!=null?m:r7},elements:{reference:e,floating:t}});u=w??u,f=_??f,p={...p,[b]:{...p[b],...x}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(h=k.placement),k.rects&&(c=k.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:a}):k.rects),{x:u,y:f}=o7(c,h,l)),g=-1)}return{x:u,y:f,placement:h,strategy:a,middlewareData:p}},Wpe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:a,rects:o,platform:r,elements:i,middlewareData:l}=t,{element:c,padding:u=0}=dv(e,t)||{};if(c==null)return{};const f=a7(u),h={x:n,y:s},p=x8(a),v=S8(p),m=await r.getDimensions(c),g=p==="y",b=g?"top":"left",C=g?"bottom":"right",w=g?"clientHeight":"clientWidth",_=o.reference[v]+o.reference[p]-h[p]-o.floating[v],x=h[p]-o.reference[p],k=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let T=k?k[w]:0;(!T||!await(r.isElement==null?void 0:r.isElement(k)))&&(T=i.floating[w]||o.floating[v]);const R=_/2-x/2,I=T/2-m[v]/2-1,P=ah(f[b],I),$=ah(f[C],I),O=P,B=T-m[v]-$,H=T/2-m[v]/2+R,J=C8(O,H,B),Y=!l.arrow&&fv(a)!=null&&H!==J&&o.reference[v]/2-(H<O?P:$)-m[v]/2<0,N=Y?H<O?H-O:H-B:0;return{[p]:h[p]+N,data:{[p]:J,centerOffset:H-J-N,...Y&&{alignmentOffset:N}},reset:Y}}}),jpe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:a,middlewareData:o,rects:r,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...g}=dv(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const b=Fu(a),C=mc(i),w=Fu(i)===i,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=h||(w||!m?[V1(i)]:$pe(i)),k=v!=="none";!h&&k&&x.push(...Vpe(i,m,v,_));const T=[i,...x],R=await l.detectOverflow(t,g),I=[];let P=((s=o.flip)==null?void 0:s.overflows)||[];if(u&&I.push(R[b]),f){const H=Npe(a,r,_);I.push(R[H[0]],R[H[1]])}if(P=[...P,{placement:a,overflows:I}],!I.every(H=>H<=0)){var $,O;const H=((($=o.flip)==null?void 0:$.index)||0)+1,J=T[H];if(J&&(!(f==="alignment"?C!==mc(J):!1)||P.every(L=>mc(L.placement)===C?L.overflows[0]>0:!0)))return{data:{index:H,overflows:P},reset:{placement:J}};let Y=(O=P.filter(N=>N.overflows[0]<=0).sort((N,L)=>N.overflows[1]-L.overflows[1])[0])==null?void 0:O.placement;if(!Y)switch(p){case"bestFit":{var B;const N=(B=P.filter(L=>{if(k){const V=mc(L.placement);return V===C||V==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(V=>V>0).reduce((V,z)=>V+z,0)]).sort((L,V)=>L[1]-V[1])[0])==null?void 0:B[0];N&&(Y=N);break}case"initialPlacement":Y=i;break}if(a!==Y)return{reset:{placement:Y}}}return{}}}},Kpe=new Set(["left","top"]);async function Upe(e,t){const{placement:n,platform:s,elements:a}=e,o=await(s.isRTL==null?void 0:s.isRTL(a.floating)),r=Fu(n),i=fv(n),l=mc(n)==="y",c=Kpe.has(r)?-1:1,u=o&&l?-1:1,f=dv(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof v=="number"&&(p=i==="end"?v*-1:v),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}const qpe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:a,y:o,placement:r,middlewareData:i}=t,l=await Upe(t,e);return r===((n=i.offset)==null?void 0:n.placement)&&(s=i.arrow)!=null&&s.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:r}}}}},Gpe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:a,platform:o}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:l={fn:b=>{let{x:C,y:w}=b;return{x:C,y:w}}},...c}=dv(e,t),u={x:n,y:s},f=await o.detectOverflow(t,c),h=mc(Fu(a)),p=t7(h);let v=u[p],m=u[h];if(r){const b=p==="y"?"top":"left",C=p==="y"?"bottom":"right",w=v+f[b],_=v-f[C];v=C8(w,v,_)}if(i){const b=h==="y"?"top":"left",C=h==="y"?"bottom":"right",w=m+f[b],_=m-f[C];m=C8(w,m,_)}const g=l.fn({...t,[p]:v,[h]:m});return{...g,data:{x:g.x-n,y:g.y-s,enabled:{[p]:r,[h]:i}}}}}};function H1(){return typeof window<"u"}function oh(e){return i7(e)?(e.nodeName||"").toLowerCase():"#document"}function mo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fi(e){var t;return(t=(i7(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function i7(e){return H1()?e instanceof Node||e instanceof mo(e).Node:!1}function Cr(e){return H1()?e instanceof Element||e instanceof mo(e).Element:!1}function hi(e){return H1()?e instanceof HTMLElement||e instanceof mo(e).HTMLElement:!1}function l7(e){return!H1()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof mo(e).ShadowRoot}const Ype=new Set(["inline","contents"]);function hv(e){const{overflow:t,overflowX:n,overflowY:s,display:a}=Sr(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!Ype.has(a)}const Xpe=new Set(["table","td","th"]);function Jpe(e){return Xpe.has(oh(e))}const Zpe=[":popover-open",":modal"];function W1(e){return Zpe.some(t=>{try{return e.matches(t)}catch{return!1}})}const Qpe=["transform","translate","scale","rotate","perspective"],eve=["transform","translate","scale","rotate","perspective","filter"],tve=["paint","layout","strict","content"];function E8(e){const t=A8(),n=Cr(e)?Sr(e):e;return Qpe.some(s=>n[s]?n[s]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||eve.some(s=>(n.willChange||"").includes(s))||tve.some(s=>(n.contain||"").includes(s))}function nve(e){let t=gc(e);for(;hi(t)&&!rh(t);){if(E8(t))return t;if(W1(t))return null;t=gc(t)}return null}function A8(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const sve=new Set(["html","body","#document"]);function rh(e){return sve.has(oh(e))}function Sr(e){return mo(e).getComputedStyle(e)}function j1(e){return Cr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gc(e){if(oh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||l7(e)&&e.host||fi(e);return l7(t)?t.host:t}function c7(e){const t=gc(e);return rh(t)?e.ownerDocument?e.ownerDocument.body:e.body:hi(t)&&hv(t)?t:c7(t)}function pv(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=c7(e),o=a===((s=e.ownerDocument)==null?void 0:s.body),r=mo(a);if(o){const i=T8(r);return t.concat(r,r.visualViewport||[],hv(a)?a:[],i&&n?pv(i):[])}return t.concat(a,pv(a,[],n))}function T8(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function u7(e){const t=Sr(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=hi(e),o=a?e.offsetWidth:n,r=a?e.offsetHeight:s,i=F1(n)!==o||F1(s)!==r;return i&&(n=o,s=r),{width:n,height:s,$:i}}function M8(e){return Cr(e)?e:e.contextElement}function ih(e){const t=M8(e);if(!hi(t))return di(1);const n=t.getBoundingClientRect(),{width:s,height:a,$:o}=u7(t);let r=(o?F1(n.width):n.width)/s,i=(o?F1(n.height):n.height)/a;return(!r||!Number.isFinite(r))&&(r=1),(!i||!Number.isFinite(i))&&(i=1),{x:r,y:i}}const ave=di(0);function d7(e){const t=mo(e);return!A8()||!t.visualViewport?ave:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ove(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==mo(e)?!1:t}function Bu(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=M8(e);let r=di(1);t&&(s?Cr(s)&&(r=ih(s)):r=ih(e));const i=ove(o,n,s)?d7(o):di(0);let l=(a.left+i.x)/r.x,c=(a.top+i.y)/r.y,u=a.width/r.x,f=a.height/r.y;if(o){const h=mo(o),p=s&&Cr(s)?mo(s):s;let v=h,m=T8(v);for(;m&&s&&p!==v;){const g=ih(m),b=m.getBoundingClientRect(),C=Sr(m),w=b.left+(m.clientLeft+parseFloat(C.paddingLeft))*g.x,_=b.top+(m.clientTop+parseFloat(C.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,f*=g.y,l+=w,c+=_,v=mo(m),m=T8(v)}}return z1({width:u,height:f,x:l,y:c})}function K1(e,t){const n=j1(e).scrollLeft;return t?t.left+n:Bu(fi(e)).left+n}function f7(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-K1(e,n),a=n.top+t.scrollTop;return{x:s,y:a}}function rve(e){let{elements:t,rect:n,offsetParent:s,strategy:a}=e;const o=a==="fixed",r=fi(s),i=t?W1(t.floating):!1;if(s===r||i&&o)return n;let l={scrollLeft:0,scrollTop:0},c=di(1);const u=di(0),f=hi(s);if((f||!f&&!o)&&((oh(s)!=="body"||hv(r))&&(l=j1(s)),hi(s))){const p=Bu(s);c=ih(s),u.x=p.x+s.clientLeft,u.y=p.y+s.clientTop}const h=r&&!f&&!o?f7(r,l):di(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function ive(e){return Array.from(e.getClientRects())}function lve(e){const t=fi(e),n=j1(e),s=e.ownerDocument.body,a=Du(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),o=Du(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let r=-n.scrollLeft+K1(e);const i=-n.scrollTop;return Sr(s).direction==="rtl"&&(r+=Du(t.clientWidth,s.clientWidth)-a),{width:a,height:o,x:r,y:i}}const h7=25;function cve(e,t){const n=mo(e),s=fi(e),a=n.visualViewport;let o=s.clientWidth,r=s.clientHeight,i=0,l=0;if(a){o=a.width,r=a.height;const u=A8();(!u||u&&t==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}const c=K1(s);if(c<=0){const u=s.ownerDocument,f=u.body,h=getComputedStyle(f),p=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(s.clientWidth-f.clientWidth-p);v<=h7&&(o-=v)}else c<=h7&&(o+=c);return{width:o,height:r,x:i,y:l}}const uve=new Set(["absolute","fixed"]);function dve(e,t){const n=Bu(e,!0,t==="fixed"),s=n.top+e.clientTop,a=n.left+e.clientLeft,o=hi(e)?ih(e):di(1),r=e.clientWidth*o.x,i=e.clientHeight*o.y,l=a*o.x,c=s*o.y;return{width:r,height:i,x:l,y:c}}function p7(e,t,n){let s;if(t==="viewport")s=cve(e,n);else if(t==="document")s=lve(fi(e));else if(Cr(t))s=dve(t,n);else{const a=d7(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return z1(s)}function v7(e,t){const n=gc(e);return n===t||!Cr(n)||rh(n)?!1:Sr(n).position==="fixed"||v7(n,t)}function fve(e,t){const n=t.get(e);if(n)return n;let s=pv(e,[],!1).filter(i=>Cr(i)&&oh(i)!=="body"),a=null;const o=Sr(e).position==="fixed";let r=o?gc(e):e;for(;Cr(r)&&!rh(r);){const i=Sr(r),l=E8(r);!l&&i.position==="fixed"&&(a=null),(o?!l&&!a:!l&&i.position==="static"&&!!a&&uve.has(a.position)||hv(r)&&!l&&v7(e,r))?s=s.filter(u=>u!==r):a=i,r=gc(r)}return t.set(e,s),s}function hve(e){let{element:t,boundary:n,rootBoundary:s,strategy:a}=e;const r=[...n==="clippingAncestors"?W1(t)?[]:fve(t,this._c):[].concat(n),s],i=r[0],l=r.reduce((c,u)=>{const f=p7(t,u,a);return c.top=Du(f.top,c.top),c.right=ah(f.right,c.right),c.bottom=ah(f.bottom,c.bottom),c.left=Du(f.left,c.left),c},p7(t,i,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function pve(e){const{width:t,height:n}=u7(e);return{width:t,height:n}}function vve(e,t,n){const s=hi(t),a=fi(t),o=n==="fixed",r=Bu(e,!0,o,t);let i={scrollLeft:0,scrollTop:0};const l=di(0);function c(){l.x=K1(a)}if(s||!s&&!o)if((oh(t)!=="body"||hv(a))&&(i=j1(t)),s){const p=Bu(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else a&&c();o&&!s&&a&&c();const u=a&&!s&&!o?f7(a,i):di(0),f=r.left+i.scrollLeft-l.x-u.x,h=r.top+i.scrollTop-l.y-u.y;return{x:f,y:h,width:r.width,height:r.height}}function P8(e){return Sr(e).position==="static"}function m7(e,t){if(!hi(e)||Sr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fi(e)===n&&(n=n.ownerDocument.body),n}function g7(e,t){const n=mo(e);if(W1(e))return n;if(!hi(e)){let a=gc(e);for(;a&&!rh(a);){if(Cr(a)&&!P8(a))return a;a=gc(a)}return n}let s=m7(e,t);for(;s&&Jpe(s)&&P8(s);)s=m7(s,t);return s&&rh(s)&&P8(s)&&!E8(s)?n:s||nve(e)||n}const mve=async function(e){const t=this.getOffsetParent||g7,n=this.getDimensions,s=await n(e.floating);return{reference:vve(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function gve(e){return Sr(e).direction==="rtl"}const bve={convertOffsetParentRelativeRectToViewportRelativeRect:rve,getDocumentElement:fi,getClippingRect:hve,getOffsetParent:g7,getElementRects:mve,getClientRects:ive,getDimensions:pve,getScale:ih,isElement:Cr,isRTL:gve};function b7(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yve(e,t){let n=null,s;const a=fi(e);function o(){var i;clearTimeout(s),(i=n)==null||i.disconnect(),n=null}function r(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:f,width:h,height:p}=c;if(i||t(),!h||!p)return;const v=B1(f),m=B1(a.clientWidth-(u+h)),g=B1(a.clientHeight-(f+p)),b=B1(u),w={rootMargin:-v+"px "+-m+"px "+-g+"px "+-b+"px",threshold:Du(0,ah(1,l))||1};let _=!0;function x(k){const T=k[0].intersectionRatio;if(T!==l){if(!_)return r();T?r(!1,T):s=setTimeout(()=>{r(!1,1e-7)},1e3)}T===1&&!b7(c,e.getBoundingClientRect())&&r(),_=!1}try{n=new IntersectionObserver(x,{...w,root:a.ownerDocument})}catch{n=new IntersectionObserver(x,w)}n.observe(e)}return r(!0),o}function wve(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=s,c=M8(e),u=a||o?[...c?pv(c):[],...pv(t)]:[];u.forEach(b=>{a&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const f=c&&i?yve(c,n):null;let h=-1,p=null;r&&(p=new ResizeObserver(b=>{let[C]=b;C&&C.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let v,m=l?Bu(e):null;l&&g();function g(){const b=Bu(e);m&&!b7(m,b)&&n(),m=b,v=requestAnimationFrame(g)}return n(),()=>{var b;u.forEach(C=>{a&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),f==null||f(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(v)}}const _ve=r7,Cve=qpe,Sve=Gpe,xve=jpe,kve=Wpe,Eve=(e,t,n)=>{const s=new Map,a={platform:bve,...n},o={...a.platform,_c:s};return Hpe(e,t,{...a,platform:o})},Ave=(e,t,n,s,a)=>{const o=F(null),r=()=>{let f;return Xe(e.value)?f=document.querySelector(e.value):Qe(e.value)?f=e.value():f=e.value,f},i=()=>{const f=r();if(!f||!t.value){o.value=null;return}Tve(f)||f.scrollIntoView(a.value);const{left:h,top:p,width:v,height:m}=f.getBoundingClientRect();o.value={left:h,top:p,width:v,height:m,radius:0}};Mt(()=>{be([t,e],()=>{i()},{immediate:!0}),window.addEventListener("resize",i)}),tn(()=>{window.removeEventListener("resize",i)});const l=f=>{var h;return(h=Ae(n.value.offset)?n.value.offset[f]:n.value.offset)!=null?h:6},c=E(()=>{var f;if(!o.value)return o.value;const h=l(0),p=l(1),v=((f=n.value)==null?void 0:f.radius)||2;return{left:o.value.left-h,top:o.value.top-p,width:o.value.width+h*2,height:o.value.height+p*2,radius:v}}),u=E(()=>{const f=r();return!s.value||!f||!window.DOMRect?f||void 0:{getBoundingClientRect(){var h,p,v,m;return window.DOMRect.fromRect({width:((h=c.value)==null?void 0:h.width)||0,height:((p=c.value)==null?void 0:p.height)||0,x:((v=c.value)==null?void 0:v.left)||0,y:((m=c.value)==null?void 0:m.top)||0})}}});return{mergedPosInfo:c,triggerTarget:u}},U1=Symbol("ElTour");function Tve(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:s,right:a,bottom:o,left:r}=e.getBoundingClientRect();return s>=0&&r>=0&&a<=t&&o<=n}const Mve=(e,t,n,s,a,o,r,i)=>{const l=F(),c=F(),u=F({}),f={x:l,y:c,placement:s,strategy:a,middlewareData:u},h=E(()=>{const b=[Cve(d(o)),xve(),Sve(),Pve()];return d(i)&&d(n)&&b.push(kve({element:d(n)})),b}),p=async()=>{if(!Yt)return;const b=d(e),C=d(t);if(!b||!C)return;const w=await Eve(b,C,{placement:d(s),strategy:d(a),middleware:d(h)});Sp(f).forEach(_=>{f[_].value=w[_]})},v=E(()=>{if(!d(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:d(r)};const{overflow:b}=d(u);return{position:d(a),zIndex:d(r),top:d(c)!=null?`${d(c)}px`:"",left:d(l)!=null?`${d(l)}px`:"",maxWidth:b!=null&&b.maxWidth?`${b==null?void 0:b.maxWidth}px`:""}}),m=E(()=>{if(!d(i))return{};const{arrow:b}=d(u);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 g;return Mt(()=>{const b=d(e),C=d(t);b&&C&&(g=wve(b,C,p)),ja(()=>{p()})}),tn(()=>{g&&g()}),{update:p,contentStyle:v,arrowStyle:m}},Pve=()=>({name:"overflow",async fn(e){const t=await _ve(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),Rve={style:{width:"100%",height:"100%"}},Ive=["d"];var Ove=K({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:Rpe,setup(e){const t=e,{ns:n}=je(U1),s=E(()=>{var u,f;return(f=(u=t.pos)==null?void 0:u.radius)!=null?f:2}),a=E(()=>{const u=s.value,f=`a${u},${u} 0 0 1`;return{topRight:`${f} ${u},${u}`,bottomRight:`${f} ${-u},${u}`,bottomLeft:`${f} ${-u},${-u}`,topLeft:`${f} ${u},${-u}`}}),{width:o,height:r}=Dy(),i=E(()=>{const u=o.value,f=r.value,h=a.value,p=`M${u},0 L0,0 L0,${f} L${u},${f} L${u},0 Z`,v=s.value;return t.pos?`${p} M${t.pos.left+v},${t.pos.top} h${t.pos.width-v*2} ${h.topRight} v${t.pos.height-v*2} ${h.bottomRight} h${-t.pos.width+v*2} ${h.bottomLeft} v${-t.pos.height+v*2} ${h.topLeft} z`:p}),l=E(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),c=E(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return u1(sn(t,"visible"),{ns:n}),(u,f)=>e.visible?(S(),M("div",At({key:0,class:d(n).e("mask"),style:l.value},u.$attrs),[(S(),M("svg",Rve,[A("path",{class:D(d(n).e("hollow")),style:et(c.value),d:i.value},null,14,Ive)]))],16)):ie("v-if",!0)}});const Lve=["data-side"];var Nve=K({name:"ElTourContent",__name:"content",props:_8,emits:Tpe,setup(e,{emit:t}){const n=e,s=t,a=F(n.placement),o=F(n.strategy),r=F(null),i=F(null);be(()=>n.placement,()=>{a.value=n.placement});const{contentStyle:l,arrowStyle:c}=Mve(sn(n,"reference"),r,i,a,o,sn(n,"offset"),sn(n,"zIndex"),sn(n,"showArrow")),u=E(()=>a.value.split("-")[0]),{ns:f}=je(U1),h=()=>{s("close")},p=v=>{v.detail.focusReason==="pointer"&&v.preventDefault()};return(v,m)=>(S(),M("div",{ref_key:"contentRef",ref:r,style:et(d(l)),class:D(d(f).e("content")),"data-side":u.value,tabindex:"-1"},[W(d(Ff),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":r.value||void 0,onReleaseRequested:h,onFocusoutPrevented:p},{default:X(()=>[ue(v.$slots,"default")]),_:3},8,["focus-trap-el"]),e.showArrow?(S(),M("span",{key:0,ref_key:"arrowRef",ref:i,style:et(d(c)),class:D(d(f).e("arrow"))},null,6)):ie("v-if",!0)],14,Lve))}}),$ve=K({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let s=0;return()=>{var a,o;const r=(a=t.default)==null?void 0:a.call(t),i=[];let l=0;function c(u){Ae(u)&&u.forEach(f=>{var h;((h=(f==null?void 0:f.type)||{})==null?void 0:h.name)==="ElTourStep"&&(i.push(f),l+=1)})}return r.length&&c(uo((o=r[0])==null?void 0:o.children)),s!==l&&(s=l,n("update-total",l)),i.length?i[e.current]:null}}}),Dve=K({name:"ElTour",inheritAttrs:!1,__name:"tour",props:Mpe,emits:Ppe,setup(e,{emit:t}){const n=e,s=t,a=Ee("tour"),o=F(0),r=F(),i=Tx(n,"current",s,{passive:!0}),l=E(()=>{var P;return(P=r.value)==null?void 0:P.target}),c=E(()=>[a.b(),b.value==="primary"?a.m("primary"):""]),u=E(()=>{var P;return((P=r.value)==null?void 0:P.placement)||n.placement}),f=E(()=>{var P,$;return($=(P=r.value)==null?void 0:P.contentStyle)!=null?$:n.contentStyle}),h=E(()=>{var P,$;return($=(P=r.value)==null?void 0:P.mask)!=null?$:n.mask}),p=E(()=>!!h.value&&n.modelValue),v=E(()=>on(h.value)?void 0:h.value),m=E(()=>{var P,$;return!!l.value&&(($=(P=r.value)==null?void 0:P.showArrow)!=null?$:n.showArrow)}),g=E(()=>{var P,$;return($=(P=r.value)==null?void 0:P.scrollIntoViewOptions)!=null?$:n.scrollIntoViewOptions}),b=E(()=>{var P,$;return($=(P=r.value)==null?void 0:P.type)!=null?$:n.type}),{nextZIndex:C}=_p(),w=C(),_=E(()=>{var P;return(P=n.zIndex)!=null?P:w}),{mergedPosInfo:x,triggerTarget:k}=Ave(l,sn(n,"modelValue"),sn(n,"gap"),h,g);be(()=>n.modelValue,P=>{P||(i.value=0)});const T=()=>{n.closeOnPressEscape&&(s(mt,!1),s("close",i.value))},R=P=>{o.value=P},I=Gn();return Nt(U1,{currentStep:r,current:i,total:o,showClose:sn(n,"showClose"),closeIcon:sn(n,"closeIcon"),mergedType:b,ns:a,slots:I,updateModelValue(P){s(mt,P)},onClose(){s("close",i.value)},onFinish(){s("finish")},onChange(){s(Dt,i.value)}}),(P,$)=>(S(),M(He,null,[W(d(Mf),{to:e.appendTo},{default:X(()=>{var O,B;return[A("div",At({class:c.value},P.$attrs),[W(Ove,{visible:p.value,fill:(O=v.value)==null?void 0:O.color,style:et((B=v.value)==null?void 0:B.style),pos:d(x),"z-index":_.value,"target-area-clickable":e.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),e.modelValue?(S(),ce(Nve,{key:d(i),reference:d(k),placement:u.value,"show-arrow":m.value,"z-index":_.value,style:et(f.value),onClose:T},{default:X(()=>[W(d($ve),{current:d(i),onUpdateTotal:R},{default:X(()=>[ue(P.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):ie("v-if",!0)],16)]}),_:3},8,["to"]),ie(" just for IDE "),ie("v-if",!0)],64))}});const Fve=Me({target:{type:re([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:rn},showArrow:{type:Boolean,default:void 0},placement:_8.placement,mask:{type:re([Boolean,Object]),default:void 0},contentStyle:{type:re([Object])},prevButtonProps:{type:re(Object)},nextButtonProps:{type:re(Object)},scrollIntoViewOptions:{type:re([Boolean,Object]),default:void 0},type:{type:re(String)}}),Bve={close:()=>!0},Vve=["aria-label"];var y7=K({name:"ElTourStep",__name:"step",props:Fve,emits:Bve,setup(e,{emit:t}){const n=e,s=t,{Close:a}=g9,{t:o}=Ft(),{currentStep:r,current:i,total:l,showClose:c,closeIcon:u,mergedType:f,ns:h,slots:p,updateModelValue:v,onClose:m,onFinish:g,onChange:b}=je(U1);be(n,P=>{r.value=P},{immediate:!0});const C=E(()=>{var P;return(P=n.showClose)!=null?P:c.value}),w=E(()=>{var P,$;return($=(P=n.closeIcon)!=null?P:u.value)!=null?$:a}),_=P=>{if(P)return mp(P,["children","onClick"])},x=()=>{var P,$;i.value-=1,(P=n.prevButtonProps)!=null&&P.onClick&&(($=n.prevButtonProps)==null||$.onClick()),b()},k=()=>{var P;i.value>=l.value-1?T():i.value+=1,(P=n.nextButtonProps)!=null&&P.onClick&&n.nextButtonProps.onClick(),b()},T=()=>{R(),g()},R=()=>{v(!1),m(),s("close")},I=P=>{const $=P.target;if($!=null&&$.isContentEditable)return;switch(un(P)){case Te.left:P.preventDefault(),i.value>0&&x();break;case Te.right:P.preventDefault(),k();break}};return Mt(()=>{window.addEventListener("keydown",I)}),tn(()=>{window.removeEventListener("keydown",I)}),(P,$)=>(S(),M(He,null,[C.value?(S(),M("button",{key:0,"aria-label":d(o)("el.tour.close"),class:D(d(h).e("closebtn")),type:"button",onClick:R},[W(d(Je),{class:D(d(h).e("close"))},{default:X(()=>[(S(),ce(kt(w.value)))]),_:1},8,["class"])],10,Vve)):ie("v-if",!0),A("header",{class:D([d(h).e("header"),{"show-close":d(c)}])},[ue(P.$slots,"header",{},()=>[A("span",{role:"heading",class:D(d(h).e("title"))},ge(e.title),3)])],2),A("div",{class:D(d(h).e("body"))},[ue(P.$slots,"default",{},()=>[A("span",null,ge(e.description),1)])],2),A("footer",{class:D(d(h).e("footer"))},[A("div",{class:D(d(h).b("indicators"))},[d(p).indicators?(S(),ce(kt(d(p).indicators),{key:0,current:d(i),total:d(l)},null,8,["current","total"])):(S(!0),M(He,{key:1},Et(d(l),(O,B)=>(S(),M("span",{key:O,class:D([d(h).b("indicator"),d(h).is("active",B===d(i))])},null,2))),128))],2),A("div",{class:D(d(h).b("buttons"))},[d(i)>0?(S(),ce(d(xs),At({key:0,size:"small",type:d(f)},_(e.prevButtonProps),{onClick:x}),{default:X(()=>{var O,B;return[We(ge((B=(O=e.prevButtonProps)==null?void 0:O.children)!=null?B:d(o)("el.tour.previous")),1)]}),_:1},16,["type"])):ie("v-if",!0),d(i)<=d(l)-1?(S(),ce(d(xs),At({key:1,size:"small",type:d(f)==="primary"?"default":"primary"},_(e.nextButtonProps),{onClick:k}),{default:X(()=>{var O,B;return[We(ge((B=(O=e.nextButtonProps)==null?void 0:O.children)!=null?B:d(i)===d(l)-1?d(o)("el.tour.finish"):d(o)("el.tour.next")),1)]}),_:1},16,["type"])):ie("v-if",!0)],2)],2)],64))}});const zve=wt(Dve,{TourStep:y7}),Hve=In(y7),Wve=Me({container:{type:re([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:re(String),default:"default"},direction:{type:re(String),default:"vertical"},selectScrollTop:Boolean}),jve={change:e=>Xe(e),click:(e,t)=>e instanceof MouseEvent&&(Xe(t)||Wt(t))},w7=Symbol("anchor");function Kve(e){let t=0;const n=(...s)=>{t&&Xi(t),t=ti(()=>{e(...s),t=0})};return n.cancel=()=>{Xi(t),t=0},n}const q1=e=>{if(!Yt||e==="")return null;if(Xe(e))try{return document.querySelector(e)}catch{return null}return e};var Uve=K({name:"ElAnchor",__name:"anchor",props:Wve,emits:jve,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Gn(),r=F(""),i=F({}),l=F(null),c=F(null),u=F(),f={};let h=!1,p=0;const v=Ee("anchor"),m=E(()=>[v.b(),s.type==="underline"?v.m("underline"):"",v.m(s.direction)]),g=O=>{f[O.href]=O.el},b=O=>{delete f[O]},C=O=>{r.value!==O&&(r.value=O,a(Dt,O))};let w=null,_="";const x=O=>{if(!u.value)return;const B=q1(O);if(!B)return;if(w){if(_===O)return;w()}_=O,h=!0;const H=Wx(B,u.value),J=z3(B,H),Y=H.scrollHeight-H.clientHeight,N=Math.min(J-s.offset,Y);w=pz(u.value,p,N,s.duration,()=>{setTimeout(()=>{h=!1,_=""},20)})},k=O=>{O&&(C(O),x(O))},T=(O,B)=>{a("click",O,B),k(B)},R=Kve(()=>{u.value&&(p=jx(u.value));const O=I();h||Wt(O)||C(O)}),I=()=>{if(!u.value)return;const O=jx(u.value),B=[];for(const H of Object.keys(f)){const J=q1(H);if(!J)continue;const Y=Wx(J,u.value),N=z3(J,Y);B.push({top:N-s.offset-s.bound,href:H})}B.sort((H,J)=>H.top-J.top);for(let H=0;H<B.length;H++){const J=B[H],Y=B[H+1];if(H===0&&O===0)return s.selectScrollTop?J.href:"";if(J.top<=O&&(!Y||Y.top>O))return J.href}},P=()=>{const O=q1(s.container);!O||bp(O)?u.value=window:u.value=O};an(u,"scroll",R);const $=()=>{ze(()=>{if(!l.value||!c.value||!r.value){i.value={};return}const O=f[r.value];if(!O){i.value={};return}const B=l.value.getBoundingClientRect(),H=c.value.getBoundingClientRect(),J=O.getBoundingClientRect();if(s.direction==="horizontal"){const Y=J.left-B.left;i.value={left:`${Y}px`,width:`${J.width}px`,opacity:1}}else{const Y=J.top-B.top+(J.height-H.height)/2;i.value={top:`${Y}px`,opacity:1}}})};return be(r,$),be(()=>{var O;return(O=o.default)==null?void 0:O.call(o)},$),Mt(()=>{P();const O=decodeURIComponent(window.location.hash);q1(O)?k(O):R()}),be(()=>s.container,()=>{P()}),Nt(w7,{ns:v,direction:s.direction,currentAnchor:r,addLink:g,removeLink:b,handleClick:T}),t({scrollTo:k}),(O,B)=>(S(),M("div",{ref_key:"anchorRef",ref:l,class:D(m.value)},[e.marker?(S(),M("div",{key:0,ref_key:"markerRef",ref:c,class:D(d(v).e("marker")),style:et(i.value)},null,6)):ie("v-if",!0),A("div",{class:D(d(v).e("list"))},[ue(O.$slots,"default")],2)],2))}});const qve=Me({title:String,href:String}),Gve=["href"];var _7=K({name:"ElAnchorLink",__name:"anchor-link",props:qve,setup(e){const t=e,n=F(null),{ns:s,direction:a,currentAnchor:o,addLink:r,removeLink:i,handleClick:l}=je(w7),c=E(()=>[s.e("link"),s.is("active",o.value===t.href)]),u=f=>{l(f,t.href)};return be(()=>t.href,(f,h)=>{ze(()=>{h&&i(h),f&&r({href:f,el:n.value})})}),Mt(()=>{const{href:f}=t;f&&r({href:f,el:n.value})}),tn(()=>{const{href:f}=t;f&&i(f)}),(f,h)=>(S(),M("div",{class:D(d(s).e("item"))},[A("a",{ref_key:"linkRef",ref:n,class:D(c.value),href:e.href,onClick:u},[ue(f.$slots,"default",{},()=>[We(ge(e.title),1)])],10,Gve),f.$slots["sub-link"]&&d(a)==="vertical"?(S(),M("div",{key:0,class:D(d(s).e("list"))},[ue(f.$slots,"sub-link")],2)):ie("v-if",!0)],2))}});const Yve=wt(Uve,{AnchorLink:_7}),Xve=In(_7),C7={label:"label",value:"value",disabled:"disabled"},Jve=Me({direction:{type:re(String),default:"horizontal"},options:{type:re(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:re(Object),default:()=>C7},block:Boolean,size:hs,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...ua(["ariaLabel"])}),Zve={[mt]:e=>Xe(e)||st(e)||on(e),[Dt]:e=>Xe(e)||st(e)||on(e)},Qve=["id","aria-label","aria-labelledby"],eme=["name","disabled","checked","onChange"];var tme=K({name:"ElSegmented",__name:"segmented",props:Jve,emits:Zve,setup(e,{emit:t}){const n=e,s=t,a=Ee("segmented"),o=Vs(),r=ls(),i=Dn(),{formItem:l}=Ms(),{inputId:c,isLabeledByFormItem:u}=ho(n,{formItemContext:l}),f=F(null),h=YV(),p=Gt({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),v=(O,B)=>{const H=b(B);s(mt,H),s(Dt,H),O.target.checked=H===n.modelValue},m=E(()=>({...C7,...n.props})),g=O=>O,b=O=>bt(O)?O[m.value.value]:O,C=O=>bt(O)?O[m.value.label]:O,w=O=>!!(i.value||bt(O)&&O[m.value.disabled]),_=O=>n.modelValue===b(O),x=O=>n.options.find(B=>b(B)===O),k=O=>[a.e("item"),a.is("selected",_(O)),a.is("disabled",w(O))],T=()=>{if(!f.value)return;const O=f.value.querySelector(".is-selected"),B=f.value.querySelector(".is-selected input");if(!O||!B){p.width=0,p.height=0,p.translateX=0,p.translateY=0,p.focusVisible=!1;return}p.isInit=!0,n.direction==="vertical"?(p.height=O.offsetHeight,p.translateY=O.offsetTop):(p.width=O.offsetWidth,p.translateX=O.offsetLeft);try{p.focusVisible=B.matches(":focus-visible")}catch{}},R=E(()=>[a.b(),a.m(r.value),a.is("block",n.block)]),I=E(()=>({width:n.direction==="vertical"?"100%":`${p.width}px`,height:n.direction==="vertical"?`${p.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${p.translateY}px)`:`translateX(${p.translateX}px)`,display:p.isInit?"block":"none"})),P=E(()=>[a.e("item-selected"),a.is("disabled",w(x(n.modelValue))),a.is("focus-visible",p.focusVisible)]),$=E(()=>n.name||o.value);return Tn(f,T),be(h,T),be(()=>n.modelValue,()=>{var O;T(),n.validateEvent&&((O=l==null?void 0:l.validate)==null||O.call(l,"change").catch(B=>void 0))},{flush:"post"}),(O,B)=>e.options.length?(S(),M("div",{key:0,id:d(c),ref_key:"segmentedRef",ref:f,class:D(R.value),role:"radiogroup","aria-label":d(u)?void 0:e.ariaLabel||"segmented","aria-labelledby":d(u)?d(l).labelId:void 0},[A("div",{class:D([d(a).e("group"),d(a).m(e.direction)])},[A("div",{style:et(I.value),class:D(P.value)},null,6),(S(!0),M(He,null,Et(e.options,(H,J)=>(S(),M("label",{key:J,class:D(k(H))},[A("input",{class:D(d(a).e("item-input")),type:"radio",name:$.value,disabled:w(H),checked:_(H),onChange:Y=>v(Y,H)},null,42,eme),A("div",{class:D(d(a).e("item-label"))},[ue(O.$slots,"default",{item:g(H)},()=>[We(ge(C(H)),1)])],2)],2))),128))],2)],10,Qve)):ie("v-if",!0)}});const nme=wt(tme),sme=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(n)},ame=(e,t,n)=>{const{selectionEnd:s}=e;if(s===null)return;const a=e.value,o=Ts(t);let r=-1,i;for(let l=s-1;l>=0;--l){const c=a[l];if(c===n||c===`
|
||
`||c==="\r"){r=l;continue}if(o.includes(c)){const u=r===-1?s:r;i={pattern:a.slice(l+1,u),start:l+1,end:u,prefix:c,prefixIndex:l,splitIndex:r,selectionEnd:s};break}}return i},ome=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,s=e.selectionEnd!==null?e.selectionEnd:0,a=t.useSelectionEnd?s: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 h=document.querySelector("#input-textarea-caret-position-mirror-div");h!=null&&h.parentNode&&h.parentNode.removeChild(h)}const r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);const i=r.style,l=window.getComputedStyle(e),c=e.nodeName==="INPUT";i.whiteSpace=c?"nowrap":"pre-wrap",c||(i.wordWrap="break-word"),i.position="absolute",t.debug||(i.visibility="hidden"),o.forEach(h=>{if(c&&h==="lineHeight")if(l.boxSizing==="border-box"){const p=Number.parseInt(l.height),v=Number.parseInt(l.paddingTop)+Number.parseInt(l.paddingBottom)+Number.parseInt(l.borderTopWidth)+Number.parseInt(l.borderBottomWidth),m=v+Number.parseInt(l.lineHeight);p>m?i.lineHeight=`${p-v}px`:p===m?i.lineHeight=l.lineHeight:i.lineHeight="0"}else i.lineHeight=l.height;else i[h]=l[h]}),l3()?e.scrollHeight>Number.parseInt(l.height)&&(i.overflowY="scroll"):i.overflow="hidden",r.textContent=e.value.slice(0,Math.max(0,a)),c&&r.textContent&&(r.textContent=r.textContent.replace(/\s/g," "));const u=document.createElement("span");u.textContent=e.value.slice(Math.max(0,a))||".",u.style.position="relative",u.style.left=`${-e.scrollLeft}px`,u.style.top=`${-e.scrollTop}px`,r.appendChild(u);const f={top:u.offsetTop+Number.parseInt(l.borderTopWidth),left:u.offsetLeft+Number.parseInt(l.borderLeftWidth),height:Number.parseInt(l.fontSize)*1.5};return t.debug?u.style.backgroundColor="#aaa":document.body.removeChild(r),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},rme=Me({...$p,options:{type:re(Array),default:()=>[]},prefix:{type:re([String,Array]),default:"@",validator:e=>Xe(e)?e.length===1:e.every(t=>Xe(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:re([Boolean,Function]),default:()=>sme,validator:e=>e===!1?!0:Qe(e)},placement:{type:re(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:re(Function)},modelValue:String,loading:Boolean,popperClass:ln.popperClass,popperStyle:ln.popperStyle,popperOptions:{type:re(Object),default:()=>({})},props:{type:re(Object),default:()=>S7}}),ime={[mt]:e=>Xe(e),"whole-remove":(e,t)=>Xe(e)&&Xe(t),input:e=>Xe(e),search:(e,t)=>Xe(e)&&Xe(t),select:(e,t)=>bt(e)&&Xe(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},S7={value:"value",label:"label",disabled:"disabled"},lme=Me({options:{type:re(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),cme={select:e=>Xe(e.value)},ume=["id","aria-disabled","aria-selected","onMousemove","onClick"];var dme=K({name:"ElMentionDropdown",__name:"mention-dropdown",props:lme,emits:cme,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("mention"),{t:r}=Ft(),i=F(-1),l=F(),c=F(),u=F(),f=(_,x)=>[o.be("dropdown","item"),o.is("hovering",i.value===x),o.is("disabled",_.disabled||s.disabled)],h=_=>{_.disabled||s.disabled||a("select",_)},p=_=>{i.value=_},v=E(()=>s.disabled||s.options.every(_=>_.disabled)),m=E(()=>s.options[i.value]),g=()=>{m.value&&a("select",m.value)},b=_=>{const{options:x}=s;if(x.length===0||v.value)return;_==="next"?(i.value++,i.value===x.length&&(i.value=0)):_==="prev"&&(i.value--,i.value<0&&(i.value=x.length-1));const k=x[i.value];if(k.disabled){b(_);return}ze(()=>C(k))},C=_=>{var x,k,T,R;const{options:I}=s,P=I.findIndex(O=>O.value===_.value),$=(x=c.value)==null?void 0:x[P];if($){const O=(T=(k=u.value)==null?void 0:k.querySelector)==null?void 0:T.call(k,`.${o.be("dropdown","wrap")}`);O&&Vy(O,$)}(R=l.value)==null||R.handleScroll()};return be(()=>s.options,()=>{v.value||s.options.length===0?i.value=-1:i.value=0},{immediate:!0}),t({hoveringIndex:i,navigateOptions:b,selectHoverOption:g,hoverOption:m}),(_,x)=>(S(),M("div",{ref_key:"dropdownRef",ref:u,class:D(d(o).b("dropdown"))},[_.$slots.header?(S(),M("div",{key:0,class:D(d(o).be("dropdown","header"))},[ue(_.$slots,"header")],2)):ie("v-if",!0),Ct(W(d(gr),{id:e.contentId,ref_key:"scrollbarRef",ref:l,tag:"ul","wrap-class":d(o).be("dropdown","wrap"),"view-class":d(o).be("dropdown","list"),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:X(()=>[(S(!0),M(He,null,Et(e.options,(k,T)=>(S(),M("li",{id:`${e.contentId}-${T}`,ref_for:!0,ref_key:"optionRefs",ref:c,key:T,class:D(f(k,T)),role:"option","aria-disabled":k.disabled||e.disabled||void 0,"aria-selected":i.value===T,onMousemove:R=>p(T),onClick:ht(R=>h(k),["stop"])},[ue(_.$slots,"label",{item:k,index:T},()=>{var R;return[A("span",null,ge((R=k.label)!=null?R:k.value),1)]})],42,ume))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[jt,e.options.length>0&&!e.loading]]),e.loading?(S(),M("div",{key:1,class:D(d(o).be("dropdown","loading"))},[ue(_.$slots,"loading",{},()=>[We(ge(d(r)("el.mention.loading")),1)])],2)):ie("v-if",!0),_.$slots.footer?(S(),M("div",{key:2,class:D(d(o).be("dropdown","footer"))},[ue(_.$slots,"footer")],2)):ie("v-if",!0)],2))}}),fme=K({name:"ElMention",inheritAttrs:!1,__name:"mention",props:rme,emits:ime,setup(e,{expose:t,emit:n}){const s=e,a=n,o=E(()=>Yi(s,Object.keys($p))),r=Ee("mention"),i=Dn(),l=Vs(),c=F(),u=F(),f=F(),h=F(!1),p=F(),v=F(),m=E(()=>s.showArrow?s.placement:`${s.placement}-start`),g=E(()=>s.showArrow?["bottom","top"]:["bottom-start","top-start"]),b=E(()=>({...S7,...s.props})),C=N=>{const L={label:N[b.value.label],value:N[b.value.value],disabled:N[b.value.disabled]};return{...N,...L}},w=E(()=>s.options.map(C)),_=E(()=>{const{filterOption:N}=s;return!v.value||!N?w.value:w.value.filter(L=>N(v.value.pattern,L))}),x=E(()=>h.value&&(!!_.value.length||s.loading)),k=E(()=>{var N;return`${l.value}-${(N=f.value)==null?void 0:N.hoveringIndex}`}),T=N=>{a(mt,N),a(is,N),H()},R=N=>{var L,V,z,G;if((L=c.value)!=null&&L.isComposing)return;const Q=un(N);switch(Q){case Te.left:case Te.right:H();break;case Te.up:case Te.down:if(!h.value)return;N.preventDefault(),(V=f.value)==null||V.navigateOptions(Q===Te.up?"prev":"next");break;case Te.enter:case Te.numpadEnter:if(!h.value){s.type!=="textarea"&&H();return}N.preventDefault(),(z=f.value)!=null&&z.hoverOption?(G=f.value)==null||G.selectHoverOption():h.value=!1;break;case Te.esc:if(!h.value)return;N.preventDefault(),h.value=!1;break;case Te.backspace:if(s.whole&&v.value){const{splitIndex:U,selectionEnd:ee,pattern:se,prefixIndex:de,prefix:te}=v.value,pe=B();if(!pe)return;const he=pe.value,le=w.value.find(j=>j.value===se);if((Qe(s.checkIsWhole)?s.checkIsWhole(se,te):le)&&U!==-1&&U+1===ee){N.preventDefault();const j=he.slice(0,de)+he.slice(U+1);a(mt,j),a(is,j),a("whole-remove",se,te);const ae=de;ze(()=>{pe.selectionStart=ae,pe.selectionEnd=ae,Y()})}}}},{wrapperRef:I}=nl(c,{disabled:i,afterFocus(){H()},beforeBlur(N){var L;return(L=u.value)==null?void 0:L.isFocusInsideContent(N)},afterBlur(){h.value=!1}}),P=()=>{H()},$=N=>s.options.find(L=>N.value===L[b.value.value]),O=N=>{if(!v.value)return;const L=B();if(!L)return;const V=L.value,{split:z}=s,G=V.slice(v.value.end),Q=G.startsWith(z),U=`${N.value}${Q?"":z}`,ee=V.slice(0,v.value.start)+U+G;a(mt,ee),a(is,ee),a("select",$(N),v.value.prefix);const se=v.value.start+U.length+(Q?1:0);ze(()=>{L.selectionStart=se,L.selectionEnd=se,L.focus(),Y()})},B=()=>{var N,L;return s.type==="textarea"?(N=c.value)==null?void 0:N.textarea:(L=c.value)==null?void 0:L.input},H=()=>{setTimeout(()=>{J(),Y(),ze(()=>{var N;return(N=u.value)==null?void 0:N.updatePopper()})},0)},J=()=>{const N=B();if(!N)return;const L=ome(N),V=N.getBoundingClientRect(),z=I.value.getBoundingClientRect();p.value={position:"absolute",width:0,height:`${L.height}px`,left:`${L.left+V.left-z.left}px`,top:`${L.top+V.top-z.top}px`}},Y=()=>{const N=B();if(document.activeElement!==N){h.value=!1;return}const{prefix:L,split:V}=s;if(v.value=ame(N,L,V),v.value&&v.value.splitIndex===-1){h.value=!0,a("search",v.value.pattern,v.value.prefix);return}h.value=!1};return t({input:c,tooltip:u,dropdownVisible:x}),(N,L)=>(S(),M("div",{ref_key:"wrapperRef",ref:I,class:D(d(r).b())},[W(d(da),At(At(o.value,N.$attrs),{ref_key:"elInputRef",ref:c,"model-value":e.modelValue,disabled:d(i),role:x.value?"combobox":void 0,"aria-activedescendant":x.value?k.value||"":void 0,"aria-controls":x.value?d(l):void 0,"aria-expanded":x.value||void 0,"aria-label":e.ariaLabel,"aria-autocomplete":x.value?"none":void 0,"aria-haspopup":x.value?"listbox":void 0,onInput:T,onKeydown:R,onMousedown:P}),Ta({_:2},[Et(N.$slots,(V,z)=>({name:z,fn:X(G=>[ue(N.$slots,z,$i(Wi(G)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),W(d(Ps),{ref_key:"tooltipRef",ref:u,visible:x.value,"popper-class":[d(r).e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,placement:m.value,"fallback-placements":g.value,effect:"light",pure:"",offset:e.offset,"show-arrow":e.showArrow},{default:X(()=>[A("div",{style:et(p.value)},null,4)]),content:X(()=>[W(dme,{ref_key:"dropdownRef",ref:f,options:_.value,disabled:d(i),loading:e.loading,"content-id":d(l),"aria-label":e.ariaLabel,onSelect:O,onClick:L[0]||(L[0]=ht(V=>{var z;return(z=c.value)==null?void 0:z.focus()},["stop"]))},Ta({_:2},[Et(N.$slots,(V,z)=>({name:z,fn:X(G=>[ue(N.$slots,z,$i(Wi(G)))])}))]),1032,["options","disabled","loading","content-id","aria-label"])]),_:3},8,["visible","popper-class","popper-style","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});const hme=wt(fme),pme=Me({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),vme={resizeStart:(e,t)=>!0,resize:(e,t)=>!0,resizeEnd:(e,t)=>!0,collapse:(e,t,n)=>!0},x7=Symbol("splitterRootContextKey");function mme(e){const t=F(),{width:n,height:s}=$y(t),a=E(()=>e.value==="horizontal"?n.value:s.value);return{containerEl:t,containerSize:a}}function R8(e){return Number(e.slice(0,-1))/100}function I8(e){return Number(e.slice(0,-2))}function O8(e){return Xe(e)&&e.endsWith("%")}function L8(e){return Xe(e)&&e.endsWith("px")}function gme(e,t){const n=E(()=>e.value.map(i=>i.size)),s=E(()=>e.value.length),a=F([]);be([n,s,t],()=>{var i;let l=[],c=0;for(let f=0;f<s.value;f+=1){const h=(i=e.value[f])==null?void 0:i.size;if(O8(h))l[f]=R8(h);else if(L8(h))l[f]=I8(h)/t.value;else if(h||h===0){const p=Number(h);Number.isNaN(p)||(l[f]=p/t.value)}else c+=1,l[f]=void 0}const u=l.reduce((f,h)=>f+(h||0),0);if(u>1||!c){const f=1/u;l=l.map(h=>h===void 0?0:h*f)}else{const f=(1-u)/c;l=l.map(h=>h===void 0?f:h)}a.value=l});const o=i=>i*t.value,r=E(()=>a.value.map(o));return{percentSizes:a,pxSizes:r}}function bme(e,t,n,s){const a=g=>g*t.value||0;function o(g,b){return O8(g)?a(R8(g)):L8(g)?I8(g):g??b}const r=F(0),i=F(null);let l=[],c=en;const u=E(()=>e.value.map(g=>[g.min,g.max]));be(s,()=>{if(r.value){const g=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(g)}});const f=g=>{r.value=0,i.value={index:g,confirmed:!1},l=n.value},h=(g,b)=>{var C,w;let _=null;if((!i.value||!i.value.confirmed)&&b!==0){if(b>0)_=g,i.value={index:g,confirmed:!0};else for(let B=g;B>=0;B-=1)if(l[B]>0){_=B,i.value={index:B,confirmed:!0};break}}const x=(w=_??((C=i.value)==null?void 0:C.index))!=null?w:g,k=[...l],T=x+1,R=o(u.value[x][0],0),I=o(u.value[T][0],0),P=o(u.value[x][1],t.value||0),$=o(u.value[T][1],t.value||0);let O=b;k[x]+O<R&&(O=R-k[x]),k[T]-O<I&&(O=k[T]-I),k[x]+O>P&&(O=P-k[x]),k[T]-O>$&&(O=k[T]-$),k[x]+=O,k[T]-=O,r.value=O,c=()=>{e.value.forEach((B,H)=>{B.size=k[H]}),c=en},s.value||c()},p=()=>{s.value&&c(),r.value=0,i.value=null,l=[]},v=[];return{lazyOffset:r,onMoveStart:f,onMoving:h,onMoveEnd:p,movingIndex:i,onCollapse:(g,b)=>{v.length||v.push(...n.value);const C=n.value,w=b==="start"?g:g+1,_=b==="start"?g+1:g,x=C[w],k=C[_];if(x!==0&&k!==0)C[w]=0,C[_]+=x,v[g]=x;else{const T=x+k,R=v[g],I=T-R;C[_]=R,C[w]=I}e.value.forEach((T,R)=>{T.size=C[R]})}}}var yme=K({name:"ElSplitter",__name:"splitter",props:pme,emits:vme,setup(e,{emit:t}){const n=Ee("splitter"),s=t,a=e,o=sn(a,"layout"),r=sn(a,"lazy"),{containerEl:i,containerSize:l}=mme(o),{removeChild:c,children:u,addChild:f,ChildrenSorter:h}=Jg(Tt(),"ElSplitterPanel");be(u,()=>{g.value=null,u.value.forEach((P,$)=>{P.setIndex($)})});const{percentSizes:p,pxSizes:v}=gme(u,l),{lazyOffset:m,movingIndex:g,onMoveStart:b,onMoving:C,onMoveEnd:w,onCollapse:_}=bme(u,l,v,r),x=E(()=>({[n.cssVarBlockName("bar-offset")]:r.value?`${m.value}px`:void 0}));return Nt(x7,Gt({panels:u,percentSizes:p,pxSizes:v,layout:o,lazy:r,movingIndex:g,containerSize:l,onMoveStart:P=>{b(P),s("resizeStart",P,v.value)},onMoving:(P,$)=>{C(P,$),r.value||s("resize",P,v.value)},onMoveEnd:async P=>{w(),await ze(),s("resizeEnd",P,v.value)},onCollapse:(P,$)=>{_(P,$),s("collapse",P,$,v.value)},registerPanel:f,unregisterPanel:c})),(P,$)=>(S(),M("div",{ref_key:"containerEl",ref:i,class:D([d(n).b(),d(n).e(o.value)]),style:et(x.value)},[ue(P.$slots,"default"),W(d(h)),ie(" Prevent iframe touch events from breaking "),d(g)?(S(),M("div",{key:0,class:D([d(n).e("mask"),d(n).e(`mask-${o.value}`)])},null,2)):ie("v-if",!0)],6))}});const wme=Me({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),_me={"update:size":e=>typeof e=="number"||typeof e=="string"};function Cme(e){return e&&bt(e)?e:{start:!!e,end:!!e}}function k7(e,t,n,s){return!!(e!=null&&e.collapsible.end&&t>0||n!=null&&n.collapsible.start&&s===0&&t>0)}var Sme=K({name:"ElSplitterBar",__name:"split-bar",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=Ee("splitter-bar"),s=e,a=t,o=E(()=>s.layout==="horizontal"),r=E(()=>o.value?{width:0}:{height:0}),i=E(()=>({width:o.value?"16px":"100%",height:o.value?"100%":"16px",cursor:s.resizable?o.value?"ew-resize":"ns-resize":"auto",touchAction:"none"})),l=E(()=>{const C=n.e("dragger");return{[`${C}-horizontal`]:o.value,[`${C}-vertical`]:!o.value,[`${C}-active`]:!!c.value}}),c=F(null),u=C=>{s.resizable&&(c.value=[C.pageX,C.pageY],a("moveStart",s.index),window.addEventListener("mouseup",v),window.addEventListener("mousemove",h))},f=C=>{if(s.resizable&&C.touches.length===1){C.preventDefault();const w=C.touches[0];c.value=[w.pageX,w.pageY],a("moveStart",s.index),window.addEventListener("touchend",m),window.addEventListener("touchmove",p)}},h=C=>{const{pageX:w,pageY:_}=C,x=w-c.value[0],k=_-c.value[1],T=o.value?x:k;a("moving",s.index,T)},p=C=>{if(C.touches.length===1){C.preventDefault();const w=C.touches[0],_=w.pageX-c.value[0],x=w.pageY-c.value[1],k=o.value?_:x;a("moving",s.index,k)}},v=()=>{c.value=null,window.removeEventListener("mouseup",v),window.removeEventListener("mousemove",h),a("moveEnd",s.index)},m=()=>{c.value=null,window.removeEventListener("touchend",m),window.removeEventListener("touchmove",p),a("moveEnd",s.index)},g=E(()=>o.value?Bo:kp),b=E(()=>o.value?Fs:mr);return(C,w)=>(S(),M("div",{class:D([d(n).b()]),style:et(r.value)},[e.startCollapsible?(S(),M("div",{key:0,class:D([d(n).e("collapse-icon"),d(n).e(`${e.layout}-collapse-icon-start`)]),onClick:w[0]||(w[0]=_=>a("collapse",e.index,"start"))},[ue(C.$slots,"start-collapsible",{},()=>[(S(),ce(kt(g.value),{style:{width:"12px",height:"12px"}}))])],2)):ie("v-if",!0),A("div",{class:D([d(n).e("dragger"),l.value,d(n).is("disabled",!e.resizable),d(n).is("lazy",e.resizable&&e.lazy)]),style:et(i.value),onMousedown:u,onTouchstart:f},null,38),e.endCollapsible?(S(),M("div",{key:1,class:D([d(n).e("collapse-icon"),d(n).e(`${e.layout}-collapse-icon-end`)]),onClick:w[1]||(w[1]=_=>a("collapse",e.index,"end"))},[ue(C.$slots,"end-collapsible",{},()=>[(S(),ce(kt(b.value),{style:{width:"12px",height:"12px"}}))])],2)):ie("v-if",!0)],6))}});const E7="ElSplitterPanel";var A7=K({name:E7,__name:"split-panel",props:wme,emits:_me,setup(e,{expose:t,emit:n}){const s=Ee("splitter-panel"),a=e,o=n,r=je(x7);r||ns(E7,"usage: <el-splitter><el-splitter-panel /></el-splitter/>");const{panels:i,layout:l,lazy:c,containerSize:u,pxSizes:f}=_s(r),{registerPanel:h,unregisterPanel:p,onCollapse:v,onMoveEnd:m,onMoveStart:g,onMoving:b}=r,C=F(),w=Tt(),_=w.uid,x=F(0),k=E(()=>i.value[x.value]),T=L=>{x.value=L},R=E(()=>{var L;return k.value&&(L=f.value[x.value])!=null?L:0}),I=E(()=>{var L;return k.value&&(L=f.value[x.value+1])!=null?L:0}),P=E(()=>k.value?i.value[x.value+1]:null),$=E(()=>{var L;return P.value?a.resizable&&((L=P.value)==null?void 0:L.resizable)&&(R.value!==0||!a.min)&&(I.value!==0||!P.value.min):!1}),O=E(()=>k.value?x.value!==i.value.length-1:!1),B=E(()=>k7(k.value,R.value,P.value,I.value)),H=E(()=>k7(P.value,I.value,k.value,R.value));function J(L){return O8(L)?R8(L)*u.value||0:L8(L)?I8(L):L??0}let Y=!1;be(()=>a.size,()=>{if(!Y&&k.value){if(!u.value){k.value.size=a.size;return}const L=J(a.size),V=J(a.max),z=J(a.min),G=Math.min(Math.max(L,z||0),V||L);G!==L&&o("update:size",G),k.value.size=G}}),be(()=>{var L;return(L=k.value)==null?void 0:L.size},L=>{L!==a.size&&(Y=!0,o("update:size",L),ze(()=>Y=!1))}),be(()=>a.resizable,L=>{k.value&&(k.value.resizable=L)});const N=Gt({uid:_,getVnode:()=>w.vnode,setIndex:T,...a,collapsible:E(()=>Cme(a.collapsible))});return h(N),tn(()=>p(N)),t({splitterPanelRef:C}),(L,V)=>(S(),M(He,null,[A("div",At({ref_key:"panelEl",ref:C,class:[d(s).b()],style:{flexBasis:`${R.value}px`}},L.$attrs),[ue(L.$slots,"default")],16),O.value?(S(),ce(Sme,{key:0,index:x.value,layout:d(l),lazy:d(c),resizable:$.value,"start-collapsible":B.value,"end-collapsible":H.value,onMoveStart:d(g),onMoving:d(b),onMoveEnd:d(m),onCollapse:d(v)},{"start-collapsible":X(()=>[ue(L.$slots,"start-collapsible")]),"end-collapsible":X(()=>[ue(L.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):ie("v-if",!0)],64))}});const xme=wt(yme,{SplitPanel:A7}),kme=In(A7);var Eme=[mz,gJ,WQ,The,GQ,YQ,eee,Mk,iee,lee,xs,Bk,bte,_te,Nte,$te,xne,SE,Tne,yr,Jte,L3,Rne,jne,Kne,Qg,BE,vse,gse,yse,wse,_se,Cse,Sse,foe,iA,yoe,woe,Ioe,bA,Woe,Mre,Pre,Rre,PA,qie,Gie,Je,ale,BA,da,VA,yle,xle,zle,Hle,Wle,jle,Yle,Sce,Ece,Ice,_k,JA,wE,rne,one,Kce,Gce,Jce,gr,hc,Xg,vte,Pue,Nue,$ue,ede,ade,bT,dde,mde,gde,Ede,Vfe,zfe,Ahe,Bhe,Vhe,il,o8,Vse,Uhe,Xhe,Jhe,Ps,l0e,p8,R0e,K0e,mpe,kpe,zve,Hve,Yve,Xve,nme,hme,xme,kme];const go="ElInfiniteScroll",Ame=50,Tme={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},N8=(e,t)=>Object.entries(Tme).reduce((n,[s,a])=>{var o,r;const{type:i,default:l}=a,c=e.getAttribute(`infinite-scroll-${s}`);let u=(r=(o=t[c])!=null?o:c)!=null?r:l;return u=u==="false"?!1:u,u=i(u),n[s]=Number.isNaN(u)?l:u,n},{}),T7=e=>{const{observer:t}=e[go];t&&(t.disconnect(),delete e[go].observer)},Mme=(e,t)=>{const{container:n,containerEl:s,instance:a,observer:o,lastScrollTop:r}=e[go],{disabled:i,distance:l}=N8(e,a),{clientHeight:c,scrollHeight:u,scrollTop:f}=s,h=f-r;if(e[go].lastScrollTop=f,o||i||h<0)return;let p=!1;if(n===e)p=u-(c+f)<=l;else{const{clientTop:v,scrollHeight:m}=e,g=z3(e,s);p=f+c>=g+v+m-l}p&&t.call(a)};function $8(e,t){const{containerEl:n,instance:s}=e[go],{disabled:a}=N8(e,s);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(s):T7(e))}const D8={async mounted(e,t){const{instance:n,value:s}=t;li({scope:go,from:"the directive v-infinite-scroll",replacement:"the el-scrollbar infinite scroll",version:"3.0.0",ref:"https://element-plus.org/en-US/component/scrollbar#infinite-scroll"},!0),Qe(s)||ns(go,"'v-infinite-scroll' binding value must be a function"),await ze();const{delay:a,immediate:o}=N8(e,n),r=By(e,!0),i=r===window?document.documentElement:r,l=sc(Mme.bind(null,e,s),a);if(r){if(e[go]={instance:n,container:r,containerEl:i,delay:a,cb:s,onScroll:l,lastScrollTop:i.scrollTop},o){const c=new MutationObserver(sc($8.bind(null,e,s),Ame));e[go].observer=c,c.observe(e,{childList:!0,subtree:!0}),$8(e,s)}r.addEventListener("scroll",l)}},unmounted(e){if(!e[go])return;const{container:t,onScroll:n}=e[go];t==null||t.removeEventListener("scroll",n),T7(e)},async updated(e){if(!e[go])await ze();else{const{containerEl:t,cb:n,observer:s}=e[go];t.clientHeight&&s&&$8(e,n)}}};D8.install=e=>{e.directive("InfiniteScroll",D8)};const Pme=D8;function Rme(e,t){let n;const s=F(!1),a=Gt({...e,originalPosition:"",originalOverflow:"",visible:!1});function o(p){a.text=p}function r(){const p=a.parent,v=h.ns;if(!p.vLoadingAddClassList){let m=p.getAttribute("loading-number");m=Number.parseInt(m)-1,m?p.setAttribute("loading-number",m.toString()):(ca(p,v.bm("parent","relative")),p.removeAttribute("loading-number")),ca(p,v.bm("parent","hidden"))}i(),f.unmount()}function i(){var p,v;(v=(p=h.$el)==null?void 0:p.parentNode)==null||v.removeChild(h.$el)}function l(){var p;e.beforeClose&&!e.beforeClose()||(s.value=!0,clearTimeout(n),n=setTimeout(c,400),a.visible=!1,(p=e.closed)==null||p.call(e))}function c(){if(!s.value)return;const p=a.parent;s.value=!1,p.vLoadingAddClassList=void 0,r()}const f=e5(K({name:"ElLoading",setup(p,{expose:v}){const{ns:m,zIndex:g}=kg("loading");return v({ns:m,zIndex:g}),()=>{const b=a.spinner||a.svg,C=lt("svg",{class:"circular",viewBox:a.svgViewBox?a.svgViewBox:"0 0 50 50",...b?{innerHTML:b}:{}},[lt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),w=a.text?lt("p",{class:m.b("text")},[a.text]):void 0;return lt(Cs,{name:m.b("fade"),onAfterLeave:c},{default:X(()=>[Ct(W("div",{style:{backgroundColor:a.background||""},class:[m.b("mask"),a.customClass,m.is("fullscreen",a.fullscreen)]},[lt("div",{class:m.b("spinner")},[C,w])]),[[jt,a.visible]])])})}}}));Object.assign(f._context,t??{});const h=f.mount(document.createElement("div"));return{..._s(a),setText:o,removeElLoadingChild:i,close:l,handleAfterLeave:c,vm:h,get $el(){return h.$el}}}let G1;const lh=function(e={},t){if(!Yt)return;const n=Ime(e);if(n.fullscreen&&G1)return G1;const s=Rme({...n,closed:()=>{var o;(o=n.closed)==null||o.call(n),n.fullscreen&&(G1=void 0)}},t??lh._context);Ome(n,n.parent,s),M7(n,n.parent,s),n.parent.vLoadingAddClassList=()=>M7(n,n.parent,s);let a=n.parent.getAttribute("loading-number");return a?a=`${Number.parseInt(a)+1}`:a="1",n.parent.setAttribute("loading-number",a),n.parent.appendChild(s.$el),ze(()=>s.visible.value=n.visible),n.fullscreen&&(G1=s),s},Ime=e=>{var t,n,s,a;let o;return Xe(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:(s=e.lock)!=null?s:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,beforeClose:e.beforeClose,closed:e.closed,target:o}},Ome=async(e,t,n)=>{const{nextZIndex:s}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(e.fullscreen)n.originalPosition.value=Ji(document.body,"position"),n.originalOverflow.value=Ji(document.body,"overflow"),a.zIndex=s();else if(e.parent===document.body){n.originalPosition.value=Ji(document.body,"position"),await ze();for(const o of["top","left"]){const r=o==="top"?"scrollTop":"scrollLeft";a[o]=`${e.target.getBoundingClientRect()[o]+document.body[r]+document.documentElement[r]-Number.parseInt(Ji(document.body,`margin-${o}`),10)}px`}for(const o of["height","width"])a[o]=`${e.target.getBoundingClientRect()[o]}px`}else n.originalPosition.value=Ji(t,"position");for(const[o,r]of Object.entries(a))n.$el.style[o]=r},M7=(e,t,n)=>{const s=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?ca(t,s.bm("parent","relative")):Fo(t,s.bm("parent","relative")),e.fullscreen&&e.lock?Fo(t,s.bm("parent","hidden")):ca(t,s.bm("parent","hidden"))};lh._context=null;const vv=Symbol("ElLoading"),Vu=e=>`element-loading-${Ni(e)}`,P7=(e,t)=>{var n,s,a,o;const r=t.instance,i=p=>bt(t.value)?t.value[p]:void 0,l=p=>{const v=Xe(p)&&(r==null?void 0:r[p])||p;return F(v)},c=p=>l(i(p)||e.getAttribute(Vu(p))),u=(n=i("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:u,target:(s=i("target"))!=null?s:u?void 0:e,body:(a=i("body"))!=null?a:t.modifiers.body,lock:(o=i("lock"))!=null?o:t.modifiers.lock},h=lh(f);h._context=mv._context,e[vv]={options:f,instance:h}},Lme=(e,t)=>{for(const n of Object.keys(e))yn(e[n])&&(e[n].value=t[n])},mv={mounted(e,t){t.value&&P7(e,t)},updated(e,t){const n=e[vv];if(!t.value){n==null||n.instance.close(),e[vv]=null;return}n?Lme(n.options,bt(t.value)?t.value:{text:e.getAttribute(Vu("text")),svg:e.getAttribute(Vu("svg")),svgViewBox:e.getAttribute(Vu("svgViewBox")),spinner:e.getAttribute(Vu("spinner")),background:e.getAttribute(Vu("background")),customClass:e.getAttribute(Vu("customClass"))}):P7(e,t)},unmounted(e){var t;(t=e[vv])==null||t.instance.close(),e[vv]=null}};mv._context=null;const Nme={install(e){lh._context=e._context,mv._context=e._context,e.directive("loading",mv),e.config.globalProperties.$loading=lh},directive:mv,service:lh},R7=["primary","success","info","warning","error"],I7=["top","top-left","top-right","bottom","bottom-left","bottom-right"],gv="top",ma=$n({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:Yt?document.body:void 0}),$me=Me({customClass:{type:String,default:ma.customClass},dangerouslyUseHTMLString:{type:Boolean,default:ma.dangerouslyUseHTMLString},duration:{type:Number,default:ma.duration},icon:{type:rn,default:ma.icon},id:{type:String,default:ma.id},message:{type:re([String,Object,Function]),default:ma.message},onClose:{type:re(Function),default:ma.onClose},showClose:{type:Boolean,default:ma.showClose},type:{type:String,values:R7,default:ma.type},plain:{type:Boolean,default:ma.plain},offset:{type:Number,default:ma.offset},placement:{type:String,values:I7,default:ma.placement},zIndex:{type:Number,default:ma.zIndex},grouping:{type:Boolean,default:ma.grouping},repeatNum:{type:Number,default:ma.repeatNum}}),Dme={destroy:()=>!0},xr=D2({}),Fme=e=>(xr[e]||(xr[e]=D2([])),xr[e]),Bme=(e,t)=>{const n=xr[t]||[],s=n.findIndex(r=>r.id===e),a=n[s];let o;return s>0&&(o=n[s-1]),{current:a,prev:o}},Vme=(e,t)=>{const{prev:n}=Bme(e,t);return n?n.vm.exposed.bottom.value:0},zme=(e,t,n)=>(xr[n]||[]).findIndex(o=>o.id===e)>0?16:t,Hme=["id"],Wme=["innerHTML"];var jme=K({name:"ElMessage",__name:"message",props:$me,emits:Dme,setup(e,{expose:t,emit:n}){const{Close:s}=Xy,a=e,o=n,r=F(!1),{ns:i,zIndex:l}=kg("message"),{currentZIndex:c,nextZIndex:u}=l,f=F(),h=F(!1),p=F(0);let v;const m=E(()=>a.type?a.type==="error"?"danger":a.type:"info"),g=E(()=>{const B=a.type;return{[i.bm("icon",B)]:B&&ac[B]}}),b=E(()=>a.icon||ac[a.type]||""),C=E(()=>a.placement||gv),w=E(()=>Vme(a.id,C.value)),_=E(()=>zme(a.id,a.offset,C.value)+w.value),x=E(()=>p.value+_.value),k=E(()=>C.value.includes("left")?i.is("left"):C.value.includes("right")?i.is("right"):i.is("center")),T=E(()=>C.value.startsWith("top")?"top":"bottom"),R=E(()=>({[T.value]:`${_.value}px`,zIndex:c.value}));function I(){a.duration!==0&&({stop:v}=Ef(()=>{$()},a.duration))}function P(){v==null||v()}function $(){h.value=!1,ze(()=>{var B;r.value||((B=a.onClose)==null||B.call(a),o("destroy"))})}function O(B){un(B)===Te.esc&&$()}return Mt(()=>{I(),u(),h.value=!0}),be(()=>a.repeatNum,()=>{P(),I()}),an(document,"keydown",O),Tn(f,()=>{p.value=f.value.getBoundingClientRect().height}),t({visible:h,bottom:x,close:$}),(B,H)=>(S(),ce(Cs,{name:d(i).b("fade"),onBeforeEnter:H[0]||(H[0]=J=>r.value=!0),onBeforeLeave:e.onClose,onAfterLeave:H[1]||(H[1]=J=>B.$emit("destroy")),persisted:""},{default:X(()=>[Ct(A("div",{id:e.id,ref_key:"messageRef",ref:f,class:D([d(i).b(),{[d(i).m(e.type)]:e.type},d(i).is("closable",e.showClose),d(i).is("plain",e.plain),d(i).is("bottom",T.value==="bottom"),k.value,e.customClass]),style:et(R.value),role:"alert",onMouseenter:P,onMouseleave:I},[e.repeatNum>1?(S(),ce(d(Mk),{key:0,value:e.repeatNum,type:m.value,class:D(d(i).e("badge"))},null,8,["value","type","class"])):ie("v-if",!0),b.value?(S(),ce(d(Je),{key:1,class:D([d(i).e("icon"),g.value])},{default:X(()=>[(S(),ce(kt(b.value)))]),_:1},8,["class"])):ie("v-if",!0),ue(B.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(S(),M(He,{key:1},[ie(" Caution here, message could've been compromised, never use user's input as message "),A("p",{class:D(d(i).e("content")),innerHTML:e.message},null,10,Wme)],2112)):(S(),M("p",{key:0,class:D(d(i).e("content"))},ge(e.message),3))]),e.showClose?(S(),ce(d(Je),{key:2,class:D(d(i).e("closeBtn")),onClick:ht($,["stop"])},{default:X(()=>[W(d(s))]),_:1},8,["class"])):ie("v-if",!0)],46,Hme),[[jt,h.value]])]),_:3},8,["name","onBeforeLeave"]))}});let Kme=1;const Ume=e=>{if(!e.appendTo)e.appendTo=document.body;else if(Xe(e.appendTo)){let n=document.querySelector(e.appendTo);Ka(n)||(n=document.body),e.appendTo=n}},qme=e=>{!e.placement&&Xe(ha.placement)&&ha.placement&&(e.placement=ha.placement),e.placement||(e.placement=gv),I7.includes(e.placement)||(e.placement=gv)},O7=e=>{const t=!e||Xe(e)||vn(e)||Qe(e)?{message:e}:e,n={...ma,...t};return Ume(n),qme(n),on(ha.grouping)&&!n.grouping&&(n.grouping=ha.grouping),st(ha.duration)&&n.duration===3e3&&(n.duration=ha.duration),st(ha.offset)&&n.offset===16&&(n.offset=ha.offset),on(ha.showClose)&&!n.showClose&&(n.showClose=ha.showClose),on(ha.plain)&&!n.plain&&(n.plain=ha.plain),n},Gme=e=>{const t=e.props.placement||gv,n=xr[t],s=n.indexOf(e);if(s===-1)return;n.splice(s,1);const{handler:a}=e;a.close()},Yme=({appendTo:e,...t},n)=>{const s=`message_${Kme++}`,a=t.onClose,o=document.createElement("div"),r={...t,id:s,onClose:()=>{a==null||a(),Gme(u)},onDestroy:()=>{nc(null,o)}},i=W(jme,r,Qe(r.message)||vn(r.message)?{default:Qe(r.message)?r.message:()=>r.message}:null);i.appContext=n||zu._context,nc(i,o),e.appendChild(o.firstElementChild);const l=i.component,u={id:s,vnode:i,vm:l,handler:{close:()=>{l.exposed.close()}},props:i.component.props};return u},zu=(e={},t)=>{if(!Yt)return{close:()=>{}};const n=O7(e),s=Fme(n.placement||gv);if(n.grouping&&s.length){const o=s.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(st(ha.max)&&s.length>=ha.max)return{close:()=>{}};const a=Yme(n,t);return s.push(a),a.handler};R7.forEach(e=>{zu[e]=(t={},n)=>{const s=O7(t);return zu({...s,type:e},n)}});function Xme(e){for(const t in xr)if(qt(xr,t)){const n=[...xr[t]];for(const s of n)(!e||e===s.props.type)&&s.handler.close()}}function Jme(e){if(!xr[e])return;[...xr[e]].forEach(n=>n.handler.close())}zu.closeAll=Xme,zu.closeAllByPlacement=Jme,zu._context=null;const ss=Bx(zu,"$message"),F8="_trap-focus-children",Hu=[],L7=e=>{if(Hu.length===0)return;const t=un(e),n=Hu[Hu.length-1][F8];if(n.length>0&&t===Te.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const s=e.shiftKey,a=e.target===n[0],o=e.target===n[n.length-1];a&&s&&(e.preventDefault(),n[n.length-1].focus()),o&&!s&&(e.preventDefault(),n[0].focus())}};var Zme=K({name:"ElMessageBox",directives:{TrapFocus:{beforeMount(e){e[F8]=G9(e),Hu.push(e),Hu.length<=1&&document.addEventListener("keydown",L7)},updated(e){ze(()=>{e[F8]=G9(e)})},unmounted(){Hu.shift(),Hu.length===0&&document.removeEventListener("keydown",L7)}}},components:{ElButton:xs,ElFocusTrap:Ff,ElInput:da,ElOverlay:o6,ElIcon:Je,...Xy},inheritAttrs:!1,props:{buttonSize:{type:String,validator:ST},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:s,ns:a,size:o}=kg("message-box",E(()=>e.buttonSize)),{t:r}=n,{nextZIndex:i}=s,l=F(!1),c=Gt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",cancelButtonType:"",confirmButtonType:"primary",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:Ur(Bs),cancelButtonLoadingIcon:Ur(Bs),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),u=E(()=>{const N=c.type;return{[a.bm("icon",N)]:N&&ac[N]}}),f=Vs(),h=Vs(),p=E(()=>{const N=c.type;return c.icon||N&&ac[N]||""}),v=E(()=>!!c.message),m=F(),g=F(),b=F(),C=F(),w=F(),_=E(()=>c.confirmButtonClass);be(()=>c.inputValue,async N=>{await ze(),e.boxType==="prompt"&&N&&B()},{immediate:!0}),be(()=>l.value,N=>{var L,V;N&&(e.boxType!=="prompt"&&(c.autofocus?b.value=(V=(L=w.value)==null?void 0:L.$el)!=null?V:m.value:b.value=m.value),c.zIndex=i()),e.boxType==="prompt"&&(N?ze().then(()=>{var z;C.value&&C.value.$el&&(c.autofocus?b.value=(z=H())!=null?z:m.value:b.value=m.value)}):(c.editorErrorMessage="",c.validateError=!1))});const x=E(()=>e.draggable),k=E(()=>e.overflow),{isDragging:T}=mA(m,g,x,k);Mt(async()=>{await ze(),e.closeOnHashChange&&window.addEventListener("hashchange",R)}),tn(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",R)});function R(){l.value&&(l.value=!1,ze(()=>{c.action&&t("action",c.action)}))}const I=()=>{e.closeOnClickModal&&O(c.distinguishCancelAndClose?"close":"cancel")},P=a6(I),$=N=>{var L;if(c.inputType!=="textarea"&&!((L=C.value)!=null&&L.isComposing))return N.preventDefault(),O("confirm")},O=N=>{var L;e.boxType==="prompt"&&N==="confirm"&&!B()||(c.action=N,c.beforeClose?(L=c.beforeClose)==null||L.call(c,N,c,R):R())},B=()=>{if(e.boxType==="prompt"){const N=c.inputPattern;if(N&&!N.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;const L=c.inputValidator;if(Qe(L)){const V=L(c.inputValue);if(V===!1)return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;if(Xe(V))return c.editorErrorMessage=V,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},H=()=>{var N,L;const V=(N=C.value)==null?void 0:N.$refs;return(L=V==null?void 0:V.input)!=null?L:V==null?void 0:V.textarea},J=()=>{O("close")},Y=()=>{e.closeOnPressEscape&&J()};return e.lockScroll&&u1(l,{ns:a}),{..._s(c),ns:a,overlayEvent:P,visible:l,hasMessage:v,typeClass:u,contentId:f,inputId:h,btnSize:o,iconComponent:p,confirmButtonClasses:_,rootRef:m,focusStartRef:b,headerRef:g,inputRef:C,isDragging:T,confirmRef:w,doClose:R,handleClose:J,onCloseRequested:Y,handleWrapperClick:I,handleInputEnter:$,handleAction:O,t:r}}});const Qme=["aria-label","aria-describedby"],e2e=["aria-label"],t2e=["id"];function n2e(e,t,n,s,a,o){const r=Ge("el-icon"),i=Ge("el-input"),l=Ge("el-button"),c=Ge("el-focus-trap"),u=Ge("el-overlay");return S(),ce(Cs,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:X(()=>[Ct(W(u,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:X(()=>[A("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:D(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[W(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:X(()=>[A("div",{ref:"rootRef",class:D([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:et(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=ht(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(S(),M("div",{key:0,ref:"headerRef",class:D([e.ns.e("header"),{"show-close":e.showClose}])},[A("div",{class:D(e.ns.e("title"))},[e.iconComponent&&e.center?(S(),ce(r,{key:0,class:D([e.ns.e("status"),e.typeClass])},{default:X(()=>[(S(),ce(kt(e.iconComponent)))]),_:1},8,["class"])):ie("v-if",!0),A("span",null,ge(e.title),1)],2),e.showClose?(S(),M("button",{key:0,type:"button",class:D(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=zn(ht(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[W(r,{class:D(e.ns.e("close"))},{default:X(()=>[(S(),ce(kt(e.closeIcon||"close")))]),_:1},8,["class"])],42,e2e)):ie("v-if",!0)],2)):ie("v-if",!0),A("div",{id:e.contentId,class:D(e.ns.e("content"))},[A("div",{class:D(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(S(),ce(r,{key:0,class:D([e.ns.e("status"),e.typeClass])},{default:X(()=>[(S(),ce(kt(e.iconComponent)))]),_:1},8,["class"])):ie("v-if",!0),e.hasMessage?(S(),M("div",{key:1,class:D(e.ns.e("message"))},[ue(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(S(),ce(kt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(S(),ce(kt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:ge(e.message)},null,8,["for","textContent"]))])],2)):ie("v-if",!0)],2),Ct(A("div",{class:D(e.ns.e("input"))},[W(i,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:D({invalid:e.validateError}),onKeydown:zn(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),A("div",{class:D(e.ns.e("errormsg")),style:et({visibility:e.editorErrorMessage?"visible":"hidden"})},ge(e.editorErrorMessage),7)],2),[[jt,e.showInput]])],10,t2e),A("div",{class:D(e.ns.e("btns"))},[e.showCancelButton?(S(),ce(l,{key:0,type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:D([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=zn(ht(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:X(()=>[We(ge(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):ie("v-if",!0),Ct(W(l,{ref:"confirmRef",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:D([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=zn(ht(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:X(()=>[We(ge(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[jt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Qme)]),_:3},8,["z-index","overlay-class","mask"]),[[jt,e.visible]])]),_:3})}var s2e=ps(Zme,[["render",n2e]]);const bv=new Map,a2e=e=>{let t=document.body;return e.appendTo&&(Xe(e.appendTo)&&(t=document.querySelector(e.appendTo)),Ka(e.appendTo)&&(t=e.appendTo),Ka(t)||(t=document.body)),t},o2e=(e,t,n=null)=>{const s=W(s2e,e,Qe(e.message)||vn(e.message)?{default:Qe(e.message)?e.message:()=>e.message}:null);return s.appContext=n,nc(s,t),a2e(e).appendChild(t.firstElementChild),s.component},r2e=()=>document.createElement("div"),i2e=(e,t)=>{const n=r2e();e.onVanish=()=>{nc(null,n),bv.delete(a)},e.onAction=o=>{const r=bv.get(a);let i;e.showInput?i={value:a.inputValue,action:o}:i=o,e.callback?e.callback(i,s.proxy):o==="cancel"||o==="close"?e.distinguishCancelAndClose&&o!=="cancel"?r.reject("close"):r.reject("cancel"):r.resolve(i)};const s=o2e(e,n,t),a=s.proxy;for(const o in e)qt(e,o)&&!qt(a.$props,o)&&(o==="closeIcon"&&bt(e[o])?a[o]=Ur(e[o]):a[o]=e[o]);return a.visible=!0,a};function ch(e,t=null){if(!Yt)return Promise.reject();let n;return Xe(e)||vn(e)?e={message:e}:n=e.callback,new Promise((s,a)=>{const o=i2e(e,t??ch._context);bv.set(o,{options:e,callback:n,resolve:s,reject:a})})}const l2e=["alert","confirm","prompt"],c2e={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};l2e.forEach(e=>{ch[e]=u2e(e)});function u2e(e){return(t,n,s,a)=>{let o="";return bt(n)?(s=n,o=""):Wt(n)?o="":o=n,ch(Object.assign({title:o,message:t,type:"",...c2e[e]},s,{boxType:e}),a)}}ch.close=()=>{bv.forEach((e,t)=>{t.doClose()}),bv.clear()},ch._context=null;const bc=ch;bc.install=e=>{bc._context=e._context,e.config.globalProperties.$msgbox=bc,e.config.globalProperties.$messageBox=bc,e.config.globalProperties.$alert=bc.alert,e.config.globalProperties.$confirm=bc.confirm,e.config.globalProperties.$prompt=bc.prompt};const d2e=bc,N7=["primary","success","info","warning","error"],f2e=Me({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:rn},id:{type:String,default:""},message:{type:re([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:re(Function),default:()=>{}},onClose:{type:re(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:[...N7,""],default:""},zIndex:Number,closeIcon:{type:rn,default:qa}}),h2e={destroy:()=>!0},p2e=["id"],v2e=["textContent"],m2e={key:0},g2e=["innerHTML"];var b2e=K({name:"ElNotification",__name:"notification",props:f2e,emits:h2e,setup(e,{expose:t}){const n=e,{ns:s,zIndex:a}=kg("notification"),{nextZIndex:o,currentZIndex:r}=a,i=F(!1);let l;const c=E(()=>{const C=n.type;return C&&ac[n.type]?s.m(C):""}),u=E(()=>n.type&&ac[n.type]||n.icon),f=E(()=>n.position.endsWith("right")?"right":"left"),h=E(()=>n.position.startsWith("top")?"top":"bottom"),p=E(()=>{var C;return{[h.value]:`${n.offset}px`,zIndex:(C=n.zIndex)!=null?C:r.value}});function v(){n.duration>0&&({stop:l}=Ef(()=>{i.value&&g()},n.duration))}function m(){l==null||l()}function g(){i.value=!1}function b(C){switch(un(C)){case Te.delete:case Te.backspace:m();break;case Te.esc:i.value&&g();break;default:v();break}}return Mt(()=>{v(),o(),i.value=!0}),an(document,"keydown",b),t({visible:i,close:g}),(C,w)=>(S(),ce(Cs,{name:d(s).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:w[1]||(w[1]=_=>C.$emit("destroy")),persisted:""},{default:X(()=>[Ct(A("div",{id:e.id,class:D([d(s).b(),e.customClass,f.value]),style:et(p.value),role:"alert",onMouseenter:m,onMouseleave:v,onClick:w[0]||(w[0]=(..._)=>e.onClick&&e.onClick(..._))},[u.value?(S(),ce(d(Je),{key:0,class:D([d(s).e("icon"),c.value])},{default:X(()=>[(S(),ce(kt(u.value)))]),_:1},8,["class"])):ie("v-if",!0),A("div",{class:D(d(s).e("group"))},[A("h2",{class:D(d(s).e("title")),textContent:ge(e.title)},null,10,v2e),Ct(A("div",{class:D(d(s).e("content")),style:et(e.title?void 0:{margin:0})},[ue(C.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(S(),M(He,{key:1},[ie(" Caution here, message could've been compromised, never use user's input as message "),A("p",{innerHTML:e.message},null,8,g2e)],2112)):(S(),M("p",m2e,ge(e.message),1))])],6),[[jt,e.message]]),e.showClose?(S(),ce(d(Je),{key:0,class:D(d(s).e("closeBtn")),onClick:ht(g,["stop"])},{default:X(()=>[(S(),ce(kt(e.closeIcon)))]),_:1},8,["class"])):ie("v-if",!0)],2)],46,p2e),[[jt,i.value]])]),_:3},8,["name","onBeforeLeave"]))}});const uh={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Y1=16;let y2e=1;const Wu=function(e={},t){if(!Yt)return{close:()=>{}};(Xe(e)||vn(e))&&(e={message:e});const n=e.position||"top-right";let s=e.offset||0;uh[n].forEach(({vm:u})=>{var f;s+=(((f=u.el)==null?void 0:f.offsetHeight)||0)+Y1}),s+=Y1;const a=`notification_${y2e++}`,o=e.onClose,r={...e,offset:s,id:a,onClose:()=>{w2e(a,n,o)}};let i=document.body;Ka(e.appendTo)?i=e.appendTo:Xe(e.appendTo)&&(i=document.querySelector(e.appendTo)),Ka(i)||(i=document.body);const l=document.createElement("div"),c=W(b2e,r,Qe(r.message)?r.message:vn(r.message)?()=>r.message:null);return c.appContext=Wt(t)?Wu._context:t,c.props.onDestroy=()=>{nc(null,l)},nc(c,l),uh[n].push({vm:c}),i.appendChild(l.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};N7.forEach(e=>{Wu[e]=(t={},n)=>((Xe(t)||vn(t))&&(t={message:t}),Wu({...t,type:e},n))});function w2e(e,t,n){const s=uh[t],a=s.findIndex(({vm:c})=>{var u;return((u=c.component)==null?void 0:u.props.id)===e});if(a===-1)return;const{vm:o}=s[a];if(!o)return;n==null||n(o);const r=o.el.offsetHeight,i=t.split("-")[0];s.splice(a,1);const l=s.length;if(!(l<1))for(let c=a;c<l;c++){const{el:u,component:f}=s[c].vm,h=Number.parseInt(u.style[i],10)-r-Y1;f.props.offset=h}}function _2e(){for(const e of Object.values(uh))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}function C2e(e="top-right"){var t,n,s,a;let o=((s=(n=(t=uh[e][0])==null?void 0:t.vm.component)==null?void 0:n.props)==null?void 0:s.offset)||0;for(const{vm:r}of uh[e])r.component.props.offset=o,o+=(((a=r.el)==null?void 0:a.offsetHeight)||0)+Y1}Wu.closeAll=_2e,Wu.updateOffsets=C2e,Wu._context=null;const S2e=Bx(Wu,"$notify");var x2e=[Pme,Nme,ss,d2e,S2e,XA],B8=iz([...Eme,...x2e]);B8.install,B8.version;const ul=(e,t)=>{const n=e.__vccOpts||e;for(const[s,a]of t)n[s]=a;return n},k2e={};function E2e(e,t){const n=Ge("RouterView");return S(),ce(n)}const A2e=ul(k2e,[["render",E2e]]);/*!
|
||
* vue-router v4.6.4
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const dh=typeof document<"u";function $7(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function T2e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&$7(e.default)}const On=Object.assign;function V8(e,t){const n={};for(const s in t){const a=t[s];n[s]=kr(a)?a.map(e):e(a)}return n}const yv=()=>{},kr=Array.isArray;function D7(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const F7=/#/g,M2e=/&/g,P2e=/\//g,R2e=/=/g,I2e=/\?/g,B7=/\+/g,O2e=/%5B/g,L2e=/%5D/g,V7=/%5E/g,N2e=/%60/g,z7=/%7B/g,$2e=/%7C/g,H7=/%7D/g,D2e=/%20/g;function z8(e){return e==null?"":encodeURI(""+e).replace($2e,"|").replace(O2e,"[").replace(L2e,"]")}function F2e(e){return z8(e).replace(z7,"{").replace(H7,"}").replace(V7,"^")}function H8(e){return z8(e).replace(B7,"%2B").replace(D2e,"+").replace(F7,"%23").replace(M2e,"%26").replace(N2e,"`").replace(z7,"{").replace(H7,"}").replace(V7,"^")}function B2e(e){return H8(e).replace(R2e,"%3D")}function V2e(e){return z8(e).replace(F7,"%23").replace(I2e,"%3F")}function z2e(e){return V2e(e).replace(P2e,"%2F")}function wv(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const H2e=/\/$/,W2e=e=>e.replace(H2e,"");function W8(e,t,n="/"){let s,a={},o="",r="";const i=t.indexOf("#");let l=t.indexOf("?");return l=i>=0&&l>i?-1:l,l>=0&&(s=t.slice(0,l),o=t.slice(l,i>0?i:t.length),a=e(o.slice(1))),i>=0&&(s=s||t.slice(0,i),r=t.slice(i,t.length)),s=q2e(s??t,n),{fullPath:s+o+r,path:s,query:a,hash:wv(r)}}function j2e(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function W7(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function K2e(e,t,n){const s=t.matched.length-1,a=n.matched.length-1;return s>-1&&s===a&&fh(t.matched[s],n.matched[a])&&j7(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function fh(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function j7(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!U2e(e[n],t[n]))return!1;return!0}function U2e(e,t){return kr(e)?K7(e,t):kr(t)?K7(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function K7(e,t){return kr(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function q2e(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),a=s[s.length-1];(a===".."||a===".")&&s.push("");let o=n.length-1,r,i;for(r=0;r<s.length;r++)if(i=s[r],i!==".")if(i==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(r).join("/")}const yc={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let j8=function(e){return e.pop="pop",e.push="push",e}({}),K8=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function G2e(e){if(!e)if(dh){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),W2e(e)}const Y2e=/^[^#]+#/;function X2e(e,t){return e.replace(Y2e,"#")+t}function J2e(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const X1=()=>({left:window.scrollX,top:window.scrollY});function Z2e(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;t=J2e(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function U7(e,t){return(history.state?history.state.position-t:-1)+e}const U8=new Map;function Q2e(e,t){U8.set(e,t)}function ege(e){const t=U8.get(e);return U8.delete(e),t}function tge(e){return typeof e=="string"||e&&typeof e=="object"}function q7(e){return typeof e=="string"||typeof e=="symbol"}let vs=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const G7=Symbol("");vs.MATCHER_NOT_FOUND+"",vs.NAVIGATION_GUARD_REDIRECT+"",vs.NAVIGATION_ABORTED+"",vs.NAVIGATION_CANCELLED+"",vs.NAVIGATION_DUPLICATED+"";function hh(e,t){return On(new Error,{type:e,[G7]:!0},t)}function dl(e,t){return e instanceof Error&&G7 in e&&(t==null||!!(e.type&t))}const nge=["params","query","hash"];function sge(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of nge)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function age(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const a=n[s].replace(B7," "),o=a.indexOf("="),r=wv(o<0?a:a.slice(0,o)),i=o<0?null:wv(a.slice(o+1));if(r in t){let l=t[r];kr(l)||(l=t[r]=[l]),l.push(i)}else t[r]=i}return t}function Y7(e){let t="";for(let n in e){const s=e[n];if(n=B2e(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(kr(s)?s.map(a=>a&&H8(a)):[s&&H8(s)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function oge(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=kr(s)?s.map(a=>a==null?null:""+a):s==null?s:""+s)}return t}const rge=Symbol(""),X7=Symbol(""),J1=Symbol(""),J7=Symbol(""),q8=Symbol("");function _v(){let e=[];function t(s){return e.push(s),()=>{const a=e.indexOf(s);a>-1&&e.splice(a,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function wc(e,t,n,s,a,o=r=>r()){const r=s&&(s.enterCallbacks[a]=s.enterCallbacks[a]||[]);return()=>new Promise((i,l)=>{const c=h=>{h===!1?l(hh(vs.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?l(h):tge(h)?l(hh(vs.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(r&&s.enterCallbacks[a]===r&&typeof h=="function"&&r.push(h),i())},u=o(()=>e.call(s&&s.instances[a],t,n,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(h=>l(h))})}function G8(e,t,n,s,a=o=>o()){const o=[];for(const r of e)for(const i in r.components){let l=r.components[i];if(!(t!=="beforeRouteEnter"&&!r.instances[i]))if($7(l)){const c=(l.__vccOpts||l)[t];c&&o.push(wc(c,n,s,r,i,a))}else{let c=l();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${i}" at "${r.path}"`);const f=T2e(u)?u.default:u;r.mods[i]=u,r.components[i]=f;const h=(f.__vccOpts||f)[t];return h&&wc(h,n,s,r,i,a)()}))}}return o}function ige(e,t){const n=[],s=[],a=[],o=Math.max(t.matched.length,e.matched.length);for(let r=0;r<o;r++){const i=t.matched[r];i&&(e.matched.find(c=>fh(c,i))?s.push(i):n.push(i));const l=e.matched[r];l&&(t.matched.find(c=>fh(c,l))||a.push(l))}return[n,s,a]}/*!
|
||
* vue-router v4.6.4
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/let lge=()=>location.protocol+"//"+location.host;function Z7(e,t){const{pathname:n,search:s,hash:a}=t,o=e.indexOf("#");if(o>-1){let r=a.includes(e.slice(o))?e.slice(o).length:1,i=a.slice(r);return i[0]!=="/"&&(i="/"+i),W7(i,"")}return W7(n,e)+s+a}function cge(e,t,n,s){let a=[],o=[],r=null;const i=({state:h})=>{const p=Z7(e,location),v=n.value,m=t.value;let g=0;if(h){if(n.value=p,t.value=h,r&&r===v){r=null;return}g=m?h.position-m.position:0}else s(p);a.forEach(b=>{b(n.value,v,{delta:g,type:j8.pop,direction:g?g>0?K8.forward:K8.back:K8.unknown})})};function l(){r=n.value}function c(h){a.push(h);const p=()=>{const v=a.indexOf(h);v>-1&&a.splice(v,1)};return o.push(p),p}function u(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(On({},h.state,{scroll:X1()}),"")}}function f(){for(const h of o)h();o=[],window.removeEventListener("popstate",i),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",i),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:l,listen:c,destroy:f}}function Q7(e,t,n,s=!1,a=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:a?X1():null}}function uge(e){const{history:t,location:n}=window,s={value:Z7(e,n)},a={value:t.state};a.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:lge()+e+l;try{t[u?"replaceState":"pushState"](c,"",h),a.value=c}catch(p){console.error(p),n[u?"replace":"assign"](h)}}function r(l,c){o(l,On({},t.state,Q7(a.value.back,l,a.value.forward,!0),c,{position:a.value.position}),!0),s.value=l}function i(l,c){const u=On({},a.value,t.state,{forward:l,scroll:X1()});o(u.current,u,!0),o(l,On({},Q7(s.value,l,null),{position:u.position+1},c),!1),s.value=l}return{location:s,state:a,push:i,replace:r}}function dge(e){e=G2e(e);const t=uge(e),n=cge(e,t.state,t.location,t.replace);function s(o,r=!0){r||n.pauseListeners(),history.go(o)}const a=On({location:"",base:e,go:s,createHref:X2e.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function fge(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),dge(e)}let ju=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Is=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Is||{});const hge={type:ju.Static,value:""},pge=/[a-zA-Z0-9_]/;function vge(e){if(!e)return[[]];if(e==="/")return[[hge]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=Is.Static,s=n;const a=[];let o;function r(){o&&a.push(o),o=[]}let i=0,l,c="",u="";function f(){c&&(n===Is.Static?o.push({type:ju.Static,value:c}):n===Is.Param||n===Is.ParamRegExp||n===Is.ParamRegExpEnd?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:ju.Param,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;i<e.length;){if(l=e[i++],l==="\\"&&n!==Is.ParamRegExp){s=n,n=Is.EscapeNext;continue}switch(n){case Is.Static:l==="/"?(c&&f(),r()):l===":"?(f(),n=Is.Param):h();break;case Is.EscapeNext:h(),n=s;break;case Is.Param:l==="("?n=Is.ParamRegExp:pge.test(l)?h():(f(),n=Is.Static,l!=="*"&&l!=="?"&&l!=="+"&&i--);break;case Is.ParamRegExp:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=Is.ParamRegExpEnd:u+=l;break;case Is.ParamRegExpEnd:f(),n=Is.Static,l!=="*"&&l!=="?"&&l!=="+"&&i--,u="";break;default:t("Unknown state");break}}return n===Is.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),f(),r(),a}const eP="[^/]+?",mge={sensitive:!1,strict:!1,start:!0,end:!0};var La=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(La||{});const gge=/[.+*?^${}()[\]/\\]/g;function bge(e,t){const n=On({},mge,t),s=[];let a=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[La.Root];n.strict&&!c.length&&(a+="/");for(let f=0;f<c.length;f++){const h=c[f];let p=La.Segment+(n.sensitive?La.BonusCaseSensitive:0);if(h.type===ju.Static)f||(a+="/"),a+=h.value.replace(gge,"\\$&"),p+=La.Static;else if(h.type===ju.Param){const{value:v,repeatable:m,optional:g,regexp:b}=h;o.push({name:v,repeatable:m,optional:g});const C=b||eP;if(C!==eP){p+=La.BonusCustomRegExp;try{`${C}`}catch(_){throw new Error(`Invalid custom RegExp for param "${v}" (${C}): `+_.message)}}let w=m?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;f||(w=g&&c.length<2?`(?:/${w})`:"/"+w),g&&(w+="?"),a+=w,p+=La.Dynamic,g&&(p+=La.BonusOptional),m&&(p+=La.BonusRepeatable),C===".*"&&(p+=La.BonusWildcard)}u.push(p)}s.push(u)}if(n.strict&&n.end){const c=s.length-1;s[c][s[c].length-1]+=La.BonusStrict}n.strict||(a+="/?"),n.end?a+="$":n.strict&&!a.endsWith("/")&&(a+="(?:/|$)");const r=new RegExp(a,n.sensitive?"":"i");function i(c){const u=c.match(r),f={};if(!u)return null;for(let h=1;h<u.length;h++){const p=u[h]||"",v=o[h-1];f[v.name]=p&&v.repeatable?p.split("/"):p}return f}function l(c){let u="",f=!1;for(const h of e){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const p of h)if(p.type===ju.Static)u+=p.value;else if(p.type===ju.Param){const{value:v,repeatable:m,optional:g}=p,b=v in c?c[v]:"";if(kr(b)&&!m)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const C=kr(b)?b.join("/"):b;if(!C)if(g)h.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);u+=C}}return u||"/"}return{re:r,score:s,keys:o,parse:i,stringify:l}}function yge(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===La.Static+La.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===La.Static+La.Segment?1:-1:0}function tP(e,t){let n=0;const s=e.score,a=t.score;for(;n<s.length&&n<a.length;){const o=yge(s[n],a[n]);if(o)return o;n++}if(Math.abs(a.length-s.length)===1){if(nP(s))return 1;if(nP(a))return-1}return a.length-s.length}function nP(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const wge={strict:!1,end:!0,sensitive:!1};function _ge(e,t,n){const s=bge(vge(e.path),n),a=On(s,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function Cge(e,t){const n=[],s=new Map;t=D7(wge,t);function a(f){return s.get(f)}function o(f,h,p){const v=!p,m=aP(f);m.aliasOf=p&&p.record;const g=D7(t,f),b=[m];if("alias"in f){const _=typeof f.alias=="string"?[f.alias]:f.alias;for(const x of _)b.push(aP(On({},m,{components:p?p.record.components:m.components,path:x,aliasOf:p?p.record:m})))}let C,w;for(const _ of b){const{path:x}=_;if(h&&x[0]!=="/"){const k=h.record.path,T=k[k.length-1]==="/"?"":"/";_.path=h.record.path+(x&&T+x)}if(C=_ge(_,h,g),p?p.alias.push(C):(w=w||C,w!==C&&w.alias.push(C),v&&f.name&&!oP(C)&&r(f.name)),rP(C)&&l(C),m.children){const k=m.children;for(let T=0;T<k.length;T++)o(k[T],C,p&&p.children[T])}p=p||C}return w?()=>{r(w)}:yv}function r(f){if(q7(f)){const h=s.get(f);h&&(s.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(r),h.alias.forEach(r))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&s.delete(f.record.name),f.children.forEach(r),f.alias.forEach(r))}}function i(){return n}function l(f){const h=kge(f,n);n.splice(h,0,f),f.record.name&&!oP(f)&&s.set(f.record.name,f)}function c(f,h){let p,v={},m,g;if("name"in f&&f.name){if(p=s.get(f.name),!p)throw hh(vs.MATCHER_NOT_FOUND,{location:f});g=p.record.name,v=On(sP(h.params,p.keys.filter(w=>!w.optional).concat(p.parent?p.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),f.params&&sP(f.params,p.keys.map(w=>w.name))),m=p.stringify(v)}else if(f.path!=null)m=f.path,p=n.find(w=>w.re.test(m)),p&&(v=p.parse(m),g=p.record.name);else{if(p=h.name?s.get(h.name):n.find(w=>w.re.test(h.path)),!p)throw hh(vs.MATCHER_NOT_FOUND,{location:f,currentLocation:h});g=p.record.name,v=On({},h.params,f.params),m=p.stringify(v)}const b=[];let C=p;for(;C;)b.unshift(C.record),C=C.parent;return{name:g,path:m,params:v,matched:b,meta:xge(b)}}e.forEach(f=>o(f));function u(){n.length=0,s.clear()}return{addRoute:o,resolve:c,removeRoute:r,clearRoutes:u,getRoutes:i,getRecordMatcher:a}}function sP(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function aP(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Sge(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Sge(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function oP(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function xge(e){return e.reduce((t,n)=>On(t,n.meta),{})}function kge(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;tP(e,t[o])<0?s=o:n=o+1}const a=Ege(e);return a&&(s=t.lastIndexOf(a,s-1)),s}function Ege(e){let t=e;for(;t=t.parent;)if(rP(t)&&tP(e,t)===0)return t}function rP({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function iP(e){const t=je(J1),n=je(J7),s=E(()=>{const l=d(e.to);return t.resolve(l)}),a=E(()=>{const{matched:l}=s.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const h=f.findIndex(fh.bind(null,u));if(h>-1)return h;const p=lP(l[c-2]);return c>1&&lP(u)===p&&f[f.length-1].path!==p?f.findIndex(fh.bind(null,l[c-2])):h}),o=E(()=>a.value>-1&&Pge(n.params,s.value.params)),r=E(()=>a.value>-1&&a.value===n.matched.length-1&&j7(n.params,s.value.params));function i(l={}){if(Mge(l)){const c=t[d(e.replace)?"replace":"push"](d(e.to)).catch(yv);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:s,href:E(()=>s.value.href),isActive:o,isExactActive:r,navigate:i}}function Age(e){return e.length===1?e[0]:e}const Tge=K({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:iP,setup(e,{slots:t}){const n=Gt(iP(e)),{options:s}=je(J1),a=E(()=>({[cP(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[cP(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Age(t.default(n));return e.custom?o:lt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},o)}}});function Mge(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 Pge(e,t){for(const n in t){const s=t[n],a=e[n];if(typeof s=="string"){if(s!==a)return!1}else if(!kr(a)||a.length!==s.length||s.some((o,r)=>o.valueOf()!==a[r].valueOf()))return!1}return!0}function lP(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const cP=(e,t,n)=>e??t??n,Rge=K({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=je(q8),a=E(()=>e.route||s.value),o=je(X7,0),r=E(()=>{let c=d(o);const{matched:u}=a.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),i=E(()=>a.value.matched[r.value]);Nt(X7,E(()=>r.value+1)),Nt(rge,i),Nt(q8,a);const l=F();return be(()=>[l.value,i.value,e.name],([c,u,f],[h,p,v])=>{u&&(u.instances[f]=c,p&&p!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!fh(u,p)||!h)&&(u.enterCallbacks[f]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=a.value,u=e.name,f=i.value,h=f&&f.components[u];if(!h)return uP(n.default,{Component:h,route:c});const p=f.props[u],v=p?p===!0?c.params:typeof p=="function"?p(c):p:null,g=lt(h,On({},v,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return uP(n.default,{Component:g,route:c})||g}}});function uP(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ige=Rge;function Oge(e){const t=Cge(e.routes,e),n=e.parseQuery||age,s=e.stringifyQuery||Y7,a=e.history,o=_v(),r=_v(),i=_v(),l=bn(yc);let c=yc;dh&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=V8.bind(null,te=>""+te),f=V8.bind(null,z2e),h=V8.bind(null,wv);function p(te,pe){let he,le;return q7(te)?(he=t.getRecordMatcher(te),le=pe):le=te,t.addRoute(le,he)}function v(te){const pe=t.getRecordMatcher(te);pe&&t.removeRoute(pe)}function m(){return t.getRoutes().map(te=>te.record)}function g(te){return!!t.getRecordMatcher(te)}function b(te,pe){if(pe=On({},pe||l.value),typeof te=="string"){const fe=W8(n,te,pe.path),we=t.resolve({path:fe.path},pe),Se=a.createHref(fe.fullPath);return On(fe,we,{params:h(we.params),hash:wv(fe.hash),redirectedFrom:void 0,href:Se})}let he;if(te.path!=null)he=On({},te,{path:W8(n,te.path,pe.path).path});else{const fe=On({},te.params);for(const we in fe)fe[we]==null&&delete fe[we];he=On({},te,{params:f(fe)}),pe.params=f(pe.params)}const le=t.resolve(he,pe),Z=te.hash||"";le.params=u(h(le.params));const j=j2e(s,On({},te,{hash:F2e(Z),path:le.path})),ae=a.createHref(j);return On({fullPath:j,hash:Z,query:s===Y7?oge(te.query):te.query||{}},le,{redirectedFrom:void 0,href:ae})}function C(te){return typeof te=="string"?W8(n,te,l.value.path):On({},te)}function w(te,pe){if(c!==te)return hh(vs.NAVIGATION_CANCELLED,{from:pe,to:te})}function _(te){return T(te)}function x(te){return _(On(C(te),{replace:!0}))}function k(te,pe){const he=te.matched[te.matched.length-1];if(he&&he.redirect){const{redirect:le}=he;let Z=typeof le=="function"?le(te,pe):le;return typeof Z=="string"&&(Z=Z.includes("?")||Z.includes("#")?Z=C(Z):{path:Z},Z.params={}),On({query:te.query,hash:te.hash,params:Z.path!=null?{}:te.params},Z)}}function T(te,pe){const he=c=b(te),le=l.value,Z=te.state,j=te.force,ae=te.replace===!0,fe=k(he,le);if(fe)return T(On(C(fe),{state:typeof fe=="object"?On({},Z,fe.state):Z,force:j,replace:ae}),pe||he);const we=he;we.redirectedFrom=pe;let Se;return!j&&K2e(s,le,he)&&(Se=hh(vs.NAVIGATION_DUPLICATED,{to:we,from:le}),G(le,le,!0,!1)),(Se?Promise.resolve(Se):P(we,le)).catch(ke=>dl(ke)?dl(ke,vs.NAVIGATION_GUARD_REDIRECT)?ke:z(ke):L(ke,we,le)).then(ke=>{if(ke){if(dl(ke,vs.NAVIGATION_GUARD_REDIRECT))return T(On({replace:ae},C(ke.to),{state:typeof ke.to=="object"?On({},Z,ke.to.state):Z,force:j}),pe||we)}else ke=O(we,le,!0,ae,Z);return $(we,le,ke),ke})}function R(te,pe){const he=w(te,pe);return he?Promise.reject(he):Promise.resolve()}function I(te){const pe=ee.values().next().value;return pe&&typeof pe.runWithContext=="function"?pe.runWithContext(te):te()}function P(te,pe){let he;const[le,Z,j]=ige(te,pe);he=G8(le.reverse(),"beforeRouteLeave",te,pe);for(const fe of le)fe.leaveGuards.forEach(we=>{he.push(wc(we,te,pe))});const ae=R.bind(null,te,pe);return he.push(ae),de(he).then(()=>{he=[];for(const fe of o.list())he.push(wc(fe,te,pe));return he.push(ae),de(he)}).then(()=>{he=G8(Z,"beforeRouteUpdate",te,pe);for(const fe of Z)fe.updateGuards.forEach(we=>{he.push(wc(we,te,pe))});return he.push(ae),de(he)}).then(()=>{he=[];for(const fe of j)if(fe.beforeEnter)if(kr(fe.beforeEnter))for(const we of fe.beforeEnter)he.push(wc(we,te,pe));else he.push(wc(fe.beforeEnter,te,pe));return he.push(ae),de(he)}).then(()=>(te.matched.forEach(fe=>fe.enterCallbacks={}),he=G8(j,"beforeRouteEnter",te,pe,I),he.push(ae),de(he))).then(()=>{he=[];for(const fe of r.list())he.push(wc(fe,te,pe));return he.push(ae),de(he)}).catch(fe=>dl(fe,vs.NAVIGATION_CANCELLED)?fe:Promise.reject(fe))}function $(te,pe,he){i.list().forEach(le=>I(()=>le(te,pe,he)))}function O(te,pe,he,le,Z){const j=w(te,pe);if(j)return j;const ae=pe===yc,fe=dh?history.state:{};he&&(le||ae?a.replace(te.fullPath,On({scroll:ae&&fe&&fe.scroll},Z)):a.push(te.fullPath,Z)),l.value=te,G(te,pe,he,ae),z()}let B;function H(){B||(B=a.listen((te,pe,he)=>{if(!se.listening)return;const le=b(te),Z=k(le,se.currentRoute.value);if(Z){T(On(Z,{replace:!0,force:!0}),le).catch(yv);return}c=le;const j=l.value;dh&&Q2e(U7(j.fullPath,he.delta),X1()),P(le,j).catch(ae=>dl(ae,vs.NAVIGATION_ABORTED|vs.NAVIGATION_CANCELLED)?ae:dl(ae,vs.NAVIGATION_GUARD_REDIRECT)?(T(On(C(ae.to),{force:!0}),le).then(fe=>{dl(fe,vs.NAVIGATION_ABORTED|vs.NAVIGATION_DUPLICATED)&&!he.delta&&he.type===j8.pop&&a.go(-1,!1)}).catch(yv),Promise.reject()):(he.delta&&a.go(-he.delta,!1),L(ae,le,j))).then(ae=>{ae=ae||O(le,j,!1),ae&&(he.delta&&!dl(ae,vs.NAVIGATION_CANCELLED)?a.go(-he.delta,!1):he.type===j8.pop&&dl(ae,vs.NAVIGATION_ABORTED|vs.NAVIGATION_DUPLICATED)&&a.go(-1,!1)),$(le,j,ae)}).catch(yv)}))}let J=_v(),Y=_v(),N;function L(te,pe,he){z(te);const le=Y.list();return le.length?le.forEach(Z=>Z(te,pe,he)):console.error(te),Promise.reject(te)}function V(){return N&&l.value!==yc?Promise.resolve():new Promise((te,pe)=>{J.add([te,pe])})}function z(te){return N||(N=!te,H(),J.list().forEach(([pe,he])=>te?he(te):pe()),J.reset()),te}function G(te,pe,he,le){const{scrollBehavior:Z}=e;if(!dh||!Z)return Promise.resolve();const j=!he&&ege(U7(te.fullPath,0))||(le||!he)&&history.state&&history.state.scroll||null;return ze().then(()=>Z(te,pe,j)).then(ae=>ae&&Z2e(ae)).catch(ae=>L(ae,te,pe))}const Q=te=>a.go(te);let U;const ee=new Set,se={currentRoute:l,listening:!0,addRoute:p,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:m,resolve:b,options:e,push:_,replace:x,go:Q,back:()=>Q(-1),forward:()=>Q(1),beforeEach:o.add,beforeResolve:r.add,afterEach:i.add,onError:Y.add,isReady:V,install(te){te.component("RouterLink",Tge),te.component("RouterView",Ige),te.config.globalProperties.$router=se,Object.defineProperty(te.config.globalProperties,"$route",{enumerable:!0,get:()=>d(l)}),dh&&!U&&l.value===yc&&(U=!0,_(a.location).catch(le=>{}));const pe={};for(const le in yc)Object.defineProperty(pe,le,{get:()=>l.value[le],enumerable:!0});te.provide(J1,se),te.provide(J7,D2(pe)),te.provide(q8,l);const he=te.unmount;ee.add(te),te.unmount=function(){ee.delete(te),ee.size<1&&(c=yc,B&&B(),B=null,l.value=yc,U=!1,N=!1),he()}}};function de(te){return te.reduce((pe,he)=>pe.then(()=>I(he)),Promise.resolve())}return se}function dP(){return je(J1)}const Lge={class:"card-title"},Nge={class:"batch-area"},$ge={class:"batch-input-row"},Dge={key:0,class:"batch-preview"},Fge={class:"batch-summary"},Bge={class:"batch-limit-row"},Vge={key:0,class:"batch-more-hint"},zge={key:1,class:"batch-empty"},Hge={class:"option-row"},Wge={class:"mode-hint"},jge={class:"option-row"},Kge={class:"option-row"},Uge={class:"submit-row"},qge=ul({__name:"FileUpload",emits:["submit"],setup(e,{emit:t}){const n=t,s=F("file"),a=F([]),o=F(null),r=F(""),i=F(["excel","json"]),l=F("drawing"),c=F(!0),u=F(null),f=F(null),h=F(null),p=F([]),v=F(200),m=E(()=>p.value.slice(0,v.value).map(I=>({name:I.webkitRelativePath||I.name,size:g(I.size),raw:I})));function g(I){return I<1024?`${I} B`:I<1024*1024?`${(I/1024).toFixed(1)} KB`:`${(I/(1024*1024)).toFixed(1)} MB`}function b(){var I;(I=f.value)==null||I.click()}function C(){var I;(I=h.value)==null||I.click()}function w(I){const P=Array.from(I.target.files||[]).filter($=>$.name.toLowerCase().endsWith(".pdf"));if(!P.length){ss.warning("未找到 PDF 文件");return}p.value=P,v.value=P.length,I.target.value=""}function _(){p.value=[],v.value=200}const x=E(()=>i.value.length===0?!1:s.value==="file"?!!o.value:s.value==="url"?r.value.trim().startsWith("http"):s.value==="batch"?p.value.length>0:!1);function k(I){o.value=I.raw,a.value=[I]}function T(){ss.warning("只能上传一个 PDF 文件,请先移除后再添加")}function R(){if(x.value){if(s.value==="batch"){const I=p.value.slice(0,v.value);n("submit",{file:null,url:null,files:I,formats:i.value,mode:l.value,autoCorrect:c.value,maxConcurrent:40,batch:!0});return}n("submit",{file:s.value==="file"?o.value:null,url:s.value==="url"?r.value.trim():null,files:null,formats:i.value,mode:l.value,autoCorrect:c.value,maxConcurrent:40,batch:!1})}}return(I,P)=>{const $=Ge("Upload"),O=Ge("el-icon"),B=Ge("UploadFilled"),H=Ge("el-upload"),J=Ge("el-tab-pane"),Y=Ge("Link"),N=Ge("el-input"),L=Ge("el-button"),V=Ge("el-tag"),z=Ge("el-input-number"),G=Ge("el-table-column"),Q=Ge("el-table"),U=Ge("el-tabs"),ee=Ge("el-radio-button"),se=Ge("el-radio-group"),de=Ge("el-switch"),te=Ge("Grid"),pe=Ge("el-checkbox"),he=Ge("DataLine"),le=Ge("el-checkbox-group"),Z=Ge("el-card");return S(),ce(Z,{class:"upload-card",shadow:"never"},{header:X(()=>[A("div",Lge,[W(O,null,{default:X(()=>[W($)]),_:1}),P[7]||(P[7]=A("span",null,"上传 PDF 文件",-1))])]),default:X(()=>[W(U,{modelValue:s.value,"onUpdate:modelValue":P[3]||(P[3]=j=>s.value=j),class:"upload-tabs"},{default:X(()=>[W(J,{label:"本地上传",name:"file"},{default:X(()=>[W(H,{ref_key:"uploadRef",ref:u,class:"drop-area",drag:"","auto-upload":!1,accept:".pdf",limit:1,"on-change":k,"on-exceed":T,"file-list":a.value},{tip:X(()=>[...P[8]||(P[8]=[A("div",{class:"upload-tip"},"支持单个 PDF 文件,最大 500MB",-1)])]),default:X(()=>[W(O,{class:"upload-icon"},{default:X(()=>[W(B)]),_:1}),P[9]||(P[9]=A("div",{class:"upload-text"},[We("拖拽 PDF 文件到此处,或 "),A("em",null,"点击选择")],-1))]),_:1},8,["file-list"])]),_:1}),W(J,{label:"网络 URL",name:"url"},{default:X(()=>[W(N,{modelValue:r.value,"onUpdate:modelValue":P[0]||(P[0]=j=>r.value=j),placeholder:"输入 PDF 文件的网络地址,例如 https://example.com/file.pdf",clearable:"",size:"large"},{prepend:X(()=>[W(O,null,{default:X(()=>[W(Y)]),_:1})]),_:1},8,["modelValue"])]),_:1}),W(J,{label:"批量解析",name:"batch"},{default:X(()=>[A("div",Nge,[A("div",$ge,[W(L,{icon:d(Pg),onClick:b},{default:X(()=>[...P[10]||(P[10]=[We(" 选择文件夹 ",-1)])]),_:1},8,["icon"]),W(L,{icon:d(Zx),onClick:C},{default:X(()=>[...P[11]||(P[11]=[We(" 选择多个文件 ",-1)])]),_:1},8,["icon"]),A("input",{ref_key:"folderInputRef",ref:f,type:"file",accept:".pdf",webkitdirectory:"",multiple:"",style:{display:"none"},onChange:w},null,544),A("input",{ref_key:"multiInputRef",ref:h,type:"file",accept:".pdf",multiple:"",style:{display:"none"},onChange:w},null,544)]),p.value.length?(S(),M("div",Dge,[A("div",Fge,[W(V,{type:"success"},{default:X(()=>[We(" 共检测到 "+ge(p.value.length)+" 个 PDF 文件 ",1)]),_:1}),p.value.length>v.value?(S(),ce(V,{key:0,type:"warning"},{default:X(()=>[We(" 当前限制解析前 "+ge(v.value)+" 个 ",1)]),_:1})):ie("",!0),A("div",Bge,[P[13]||(P[13]=A("span",{class:"option-label"},"解析数量:",-1)),W(z,{modelValue:v.value,"onUpdate:modelValue":P[1]||(P[1]=j=>v.value=j),min:1,max:p.value.length,size:"small",step:10,style:{width:"120px"}},null,8,["modelValue","max"]),W(L,{size:"small",text:"",onClick:P[2]||(P[2]=j=>v.value=p.value.length)},{default:X(()=>[...P[12]||(P[12]=[We("全部",-1)])]),_:1})])]),W(Q,{data:m.value,size:"small","max-height":"200",class:"batch-table","highlight-current-row":""},{default:X(()=>[W(G,{type:"index",width:"50",label:"#"}),W(G,{prop:"name",label:"文件名","show-overflow-tooltip":""}),W(G,{prop:"size",label:"大小",width:"90",align:"right"})]),_:1},8,["data"]),p.value.length>v.value?(S(),M("div",Vge," ... 还有 "+ge(p.value.length-v.value)+" 个文件未显示(超出解析数量限制) ",1)):ie("",!0),W(L,{size:"small",text:"",type:"danger",onClick:_,class:"batch-clear-btn"},{default:X(()=>[...P[14]||(P[14]=[We("清除",-1)])]),_:1})])):(S(),M("div",zge,[W(O,{size:"40",color:"#c0c4cc"},{default:X(()=>[W(d(Pg))]),_:1}),P[15]||(P[15]=A("p",null,"选择包含 PDF 的文件夹,或直接选择多个 PDF 文件",-1)),P[16]||(P[16]=A("p",{class:"batch-hint"},"支持 100+ 文件批量处理,逐文件顺序解析",-1))]))])]),_:1})]),_:1},8,["modelValue"]),A("div",Hge,[P[19]||(P[19]=A("span",{class:"option-label"},"识别模式:",-1)),W(se,{modelValue:l.value,"onUpdate:modelValue":P[4]||(P[4]=j=>l.value=j),size:"small"},{default:X(()=>[W(ee,{value:"drawing"},{default:X(()=>[...P[17]||(P[17]=[We("图纸模式",-1)])]),_:1}),W(ee,{value:"auto"},{default:X(()=>[...P[18]||(P[18]=[We("自动识别",-1)])]),_:1})]),_:1},8,["modelValue"]),A("span",Wge,ge(l.value==="drawing"?"管道轴测图:每页均为图纸,复用第1页区域配置,40并发高速识别":"VL 自动分类:图纸页专项裁剪,文字页通用识别,40并发"),1)]),A("div",jge,[P[20]||(P[20]=A("span",{class:"option-label"},"自动纠错:",-1)),W(de,{modelValue:c.value,"onUpdate:modelValue":P[5]||(P[5]=j=>c.value=j),"active-text":"启用","inactive-text":"关闭"},null,8,["modelValue"]),P[21]||(P[21]=A("span",{class:"mode-hint"},"识别完成后调用 LLM 对结果进行连续性校验与自动修正",-1))]),A("div",Kge,[P[24]||(P[24]=A("span",{class:"option-label"},"导出格式:",-1)),W(le,{modelValue:i.value,"onUpdate:modelValue":P[6]||(P[6]=j=>i.value=j)},{default:X(()=>[W(pe,{value:"excel",label:"excel"},{default:X(()=>[W(O,null,{default:X(()=>[W(te)]),_:1}),P[22]||(P[22]=We(" Excel ",-1))]),_:1}),W(pe,{value:"json",label:"json"},{default:X(()=>[W(O,null,{default:X(()=>[W(he)]),_:1}),P[23]||(P[23]=We(" JSON ",-1))]),_:1})]),_:1},8,["modelValue"])]),A("div",Uge,[W(L,{type:"primary",size:"large",disabled:!x.value,icon:s.value==="batch"?d(Wy):d(r9),onClick:R},{default:X(()=>[We(ge(s.value==="batch"?`批量解析 ${Math.min(v.value,p.value.length)} 个文件`:"开始识别"),1)]),_:1},8,["disabled","icon"])])]),_:1})}}},[["__scopeId","data-v-a0c75cf1"]]),Z1="http://localhost:8000/api/ocr";function Gge(e,t=["excel","json"],n,s="drawing",a=!0,o=null){const r=new FormData;r.append("file",e),r.append("export_formats",t.join(",")),r.append("pdf_mode",s),r.append("auto_correct",a?"true":"false"),o&&r.append("max_concurrent",String(o));const i=new AbortController;return fetch(`${Z1}/upload`,{method:"POST",body:r,signal:i.signal}).then(l=>{if(!l.ok)throw new Error(`HTTP ${l.status}`);return Y8(l,n)}).catch(l=>{l.name!=="AbortError"&&n({type:"error",data:{message:l.message}})}),()=>i.abort()}function Yge(e,t=["excel","json"],n,s="drawing",a=!0){const o=new AbortController;return fetch(`${Z1}/url`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e,export_formats:t,pdf_mode:s,auto_correct:a}),signal:o.signal}).then(r=>{if(!r.ok)throw new Error(`HTTP ${r.status}`);return Y8(r,n)}).catch(r=>{r.name!=="AbortError"&&n({type:"error",data:{message:r.message}})}),()=>o.abort()}async function Y8(e,t){const n=e.body.getReader(),s=new TextDecoder;let a="";for(;;){const{done:o,value:r}=await n.read();if(o)break;a+=s.decode(r,{stream:!0});const i=a.split(`
|
||
`);a=i.pop()??"";for(const l of i)if(l.startsWith("data: "))try{const c=JSON.parse(l.slice(6));t(c)}catch{}}}function Q1(e,t){return`${Z1}/download/${e}/${t}`}function Xge(e,t=["excel","json"],n,s="drawing",a=!0,o=null){const r=new FormData;for(const l of e)r.append("files",l);r.append("export_formats",t.join(",")),r.append("pdf_mode",s),r.append("auto_correct",a?"true":"false"),o&&r.append("max_concurrent",String(o));const i=new AbortController;return fetch(`${Z1}/batch`,{method:"POST",body:r,signal:i.signal}).then(l=>{if(!l.ok)throw new Error(`HTTP ${l.status}`);return Y8(l,n)}).catch(l=>{l.name!=="AbortError"&&n({type:"error",data:{message:l.message}})}),()=>i.abort()}const Jge={class:"panel-header"},Zge={class:"panel-title"},Qge={class:"panel-actions"},e1e={key:0,class:"overall-progress"},t1e={class:"progress-label"},n1e={key:0,class:"current-file"},s1e={key:0,class:"current-msg"},a1e={key:1,class:"summary-row"},o1e={key:1,class:"row-msg"},r1e={key:2,class:"text-danger"},i1e={key:3,class:"text-success"},l1e=ul({__name:"BatchResultPanel",props:{batchEvents:{type:Array,default:()=>[]},batchDone:{type:Boolean,default:!1},mergedSessionId:{type:String,default:""},outputFiles:{type:Object,default:()=>({})},totalFiles:{type:Number,default:0}},emits:["reset"],setup(e,{emit:t}){const n=e,s=t,a=F({});be(()=>n.batchEvents,w=>{for(const _ of w)o(_)},{deep:!0});function o(w){const{type:_,data:x}=w;if(_==="file_start")a.value[x.filename]={filename:x.filename,status:"processing",pages:0,message:"准备中...",percent:0,sessionId:null,error:null,success:!1};else if(_==="file_progress"){const k=a.value[x.filename];k&&(k.message=x.message||k.message,x.percent!=null&&(k.percent=x.percent))}else _==="file_done"?a.value[x.filename]={filename:x.filename,status:"done",pages:x.pages||0,message:"",percent:100,sessionId:x.session_id,error:null,success:!0}:_==="file_error"&&(a.value[x.filename]={filename:x.filename,status:"error",pages:0,message:"",percent:0,sessionId:null,error:x.error,success:!1})}const r=E(()=>Object.values(a.value)),i=E(()=>r.value.filter(w=>w.status==="done"||w.status==="error").length),l=E(()=>r.value.filter(w=>w.status==="done").length),c=E(()=>r.value.filter(w=>w.status==="error").length),u=E(()=>r.value.reduce((w,_)=>w+(_.pages||0),0)),f=E(()=>n.totalFiles?Math.round(i.value/n.totalFiles*100):0),h=E(()=>r.value.find(w=>w.status==="processing")),p=E(()=>{var w;return((w=h.value)==null?void 0:w.filename)||""}),v=E(()=>{var w;return((w=h.value)==null?void 0:w.message)||""}),m=E(()=>{var w;return!!((w=n.outputFiles)!=null&&w.excel)}),g=E(()=>{var w;return!!((w=n.outputFiles)!=null&&w.json)});function b(w){const _=Q1(n.mergedSessionId,w),x=document.createElement("a");x.href=_,x.download=w,document.body.appendChild(x),x.click(),document.body.removeChild(x)}function C(w,_,x){const k=Q1(w,_),T=_.endsWith(".xlsx")?".xlsx":".json",R=x?x.replace(/\.pdf$/i,"")+T:_,I=document.createElement("a");I.href=k,I.download=R,document.body.appendChild(I),I.click(),document.body.removeChild(I)}return(w,_)=>{const x=Ge("el-icon"),k=Ge("el-tag"),T=Ge("el-button"),R=Ge("el-progress"),I=Ge("el-statistic"),P=Ge("el-table-column"),$=Ge("el-table"),O=Ge("el-card");return S(),ce(O,{class:"batch-result-card",shadow:"never"},{header:X(()=>[A("div",Jge,[A("div",Zge,[W(x,null,{default:X(()=>[W(d(Wy))]),_:1}),_[3]||(_[3]=A("span",null,"批量解析结果",-1)),e.batchDone?(S(),ce(k,{key:0,type:"success",size:"small"},{default:X(()=>[We(" 完成 "+ge(l.value)+"/"+ge(e.totalFiles),1)]),_:1})):ie("",!0),c.value>0?(S(),ce(k,{key:1,type:"danger",size:"small"},{default:X(()=>[We(" 失败 "+ge(c.value),1)]),_:1})):ie("",!0)]),A("div",Qge,[e.mergedSessionId?(S(),M(He,{key:0},[m.value?(S(),ce(T,{key:0,type:"primary",size:"small",icon:d(el),onClick:_[0]||(_[0]=B=>b("result.xlsx"))},{default:X(()=>[..._[4]||(_[4]=[We("下载合并 Excel",-1)])]),_:1},8,["icon"])):ie("",!0),g.value?(S(),ce(T,{key:1,size:"small",icon:d(el),onClick:_[1]||(_[1]=B=>b("result.json"))},{default:X(()=>[..._[5]||(_[5]=[We("下载合并 JSON",-1)])]),_:1},8,["icon"])):ie("",!0)],64)):ie("",!0),W(T,{size:"small",plain:"",onClick:_[2]||(_[2]=B=>s("reset"))},{default:X(()=>[..._[6]||(_[6]=[We("重新开始",-1)])]),_:1})])])]),default:X(()=>[e.batchDone?ie("",!0):(S(),M("div",e1e,[A("div",t1e,[We(" 已完成 "+ge(i.value)+" / "+ge(e.totalFiles)+" 个文件 ",1),p.value?(S(),M("span",n1e," — 正在处理:"+ge(p.value),1)):ie("",!0)]),W(R,{percentage:f.value,"stroke-width":10,striped:"","striped-flow":"",duration:10,status:""},null,8,["percentage"]),v.value?(S(),M("div",s1e,ge(v.value),1)):ie("",!0)])),e.batchDone?(S(),M("div",a1e,[W(I,{title:"总文件数",value:e.totalFiles},null,8,["value"]),W(I,{title:"成功解析",value:l.value,"value-style":"color:#67c23a"},null,8,["value"]),W(I,{title:"失败文件",value:c.value,"value-style":"color:#f56c6c"},null,8,["value"]),W(I,{title:"合计页数",value:u.value},null,8,["value"])])):ie("",!0),W($,{data:r.value,size:"small",class:"file-table","max-height":"420",stripe:""},{default:X(()=>[W(P,{type:"index",width:"55",label:"#",align:"center"}),W(P,{label:"文件名","min-width":"220","show-overflow-tooltip":""},{default:X(({row:B})=>[A("span",{class:D(B.success?"":"text-danger")},ge(B.filename),3)]),_:1}),W(P,{label:"状态",width:"110",align:"center"},{default:X(({row:B})=>[B.status==="done"?(S(),ce(k,{key:0,type:"success",size:"small"},{default:X(()=>[W(x,null,{default:X(()=>[W(d(Ep))]),_:1}),_[7]||(_[7]=We(" 完成 ",-1))]),_:1})):B.status==="error"?(S(),ce(k,{key:1,type:"danger",size:"small"},{default:X(()=>[W(x,null,{default:X(()=>[W(d(Vo))]),_:1}),_[8]||(_[8]=We(" 失败 ",-1))]),_:1})):B.status==="processing"?(S(),ce(k,{key:2,type:"warning",size:"small"},{default:X(()=>[W(x,null,{default:X(()=>[W(d(Bs))]),_:1}),_[9]||(_[9]=We(" 处理中 ",-1))]),_:1})):(S(),ce(k,{key:3,type:"info",size:"small"},{default:X(()=>[..._[10]||(_[10]=[We("等待",-1)])]),_:1}))]),_:1}),W(P,{label:"页数",width:"70",align:"center",prop:"pages"}),W(P,{label:"进度/错误信息","min-width":"260","show-overflow-tooltip":""},{default:X(({row:B})=>[B.status==="processing"&&B.percent!=null?(S(),ce(R,{key:0,percentage:B.percent,"stroke-width":6,striped:"","striped-flow":"",duration:8,class:"row-progress"},null,8,["percentage"])):B.status==="processing"?(S(),M("span",o1e,ge(B.message),1)):B.status==="error"?(S(),M("span",r1e,ge(B.error),1)):B.status==="done"?(S(),M("span",i1e,"识别完成")):ie("",!0)]),_:1}),W(P,{label:"下载",width:"80",align:"center"},{default:X(({row:B})=>[B.sessionId?(S(),ce(T,{key:0,size:"small",text:"",type:"primary",icon:d(el),title:"下载 Excel",onClick:H=>C(B.sessionId,"result.xlsx",B.filename)},null,8,["icon","onClick"])):ie("",!0)]),_:1})]),_:1},8,["data"])]),_:1})}}},[["__scopeId","data-v-d95acc72"]]),c1e={class:"card-title"},u1e={key:0,class:"page-indicator"},d1e={class:"log-time"},f1e=ul({__name:"ProgressTracker",props:{logs:{type:Array,default:()=>[]},percent:{type:Number,default:0},totalPages:{type:Number,default:0},currentPage:{type:Number,default:0}},setup(e){const t=e,n=F(null),s=Date.now(),a=[{color:"#409EFF",percentage:40},{color:"#67C23A",percentage:80},{color:"#E6A23C",percentage:100}];function o(r){return`[${Math.round((Date.now()-s)/1e3)}s]`}return be(()=>t.logs.length,async()=>{await ze(),n.value&&(n.value.scrollTop=n.value.scrollHeight)}),(r,i)=>{const l=Ge("Loading"),c=Ge("el-icon"),u=Ge("el-progress"),f=Ge("el-card");return S(),ce(f,{class:"progress-card",shadow:"never"},{header:X(()=>[A("div",c1e,[W(c,{class:"spin"},{default:X(()=>[W(l)]),_:1}),i[0]||(i[0]=A("span",null,"正在处理中...",-1)),e.totalPages>0?(S(),M("span",u1e," 第 "+ge(e.currentPage)+" / "+ge(e.totalPages)+" 页 ",1)):ie("",!0)])]),default:X(()=>[W(u,{percentage:e.percent,"stroke-width":14,color:a,class:"main-progress"},null,8,["percentage"]),A("div",{class:"log-container",ref_key:"logContainer",ref:n},[(S(!0),M(He,null,Et(e.logs,(h,p)=>(S(),M("div",{key:p,class:D(["log-item",{"log-success":h.includes("✓")||h.includes("✅"),"log-error":h.includes("❌")}])},[A("span",d1e,ge(o(p)),1),We(" "+ge(h),1)],2))),128))],512)]),_:1})}}},[["__scopeId","data-v-673aebf7"]]),h1e={class:"flagged-cell"},p1e={key:1},v1e={class:"row-count"},m1e={key:1,class:"raw-text"},g1e=ul({__name:"Parts3Table",props:{data:{type:[Object,null],default:null}},setup(e){const t=e,n=new Set(["_flags","_corrections"]),s={seq_no:"序号",category:"类别",description:"材料描述",size:"SIZE",code:"材料代号",qty:"数量",pipe_no:"管道号",unit:"单位",material:"材质",remark:"备注",spec:"公称直径"},a={llm_suspicious:"LLM标记可疑,需人工复核",llm_corrected:"LLM已修正",rule_corrected:"规则已修正",seq_gap:"序号不连续",seq_dup:"序号重复",desc_overflow:"描述溢出到规格列",size_invalid:"规格字段异常",size_outlier:"规格偏离本页主导尺寸",qty_invalid:"数量字段异常",cell_overlap:"单元格数值重叠(叠印)",desc_num_tail:"描述末尾残留尺寸数字",size_num_prefix:"尺寸前缀数字粘连"},o=E(()=>{if(!t.data)return[];const f=t.data;return f.rows&&Array.isArray(f.rows)?f.rows:f.data&&Array.isArray(f.data)?f.data:f.items&&Array.isArray(f.items)?f.items:[]}),r=E(()=>{if(o.value.length===0)return[];const f=new Set;return o.value.slice(0,5).forEach(h=>Object.keys(h).forEach(p=>f.add(p))),Array.from(f).filter(h=>!n.has(h))}),i=E(()=>t.data&&t.data.raw_text||"");function l(f){return s[f]||f}function c(f,h){var g,b;const p=(g=f._flags)==null?void 0:g[h],v=a[p]||p||"",m=(b=f._corrections)==null?void 0:b[h];return m!=null?`[已修正] 原值:${m}
|
||
${v}`:`[${v}]`}function u({row:f,column:h}){if(!f._flags)return{};const p=h.property,v=f._flags[p];return v?new Set(["llm_corrected","rule_corrected"]).has(v)?{backgroundColor:"#FFB347",color:"#000",fontWeight:"bold"}:{backgroundColor:"#ADD8E6",color:"#000",fontWeight:"bold"}:{}}return(f,h)=>{const p=Ge("el-tooltip"),v=Ge("el-table-column"),m=Ge("el-table"),g=Ge("el-empty");return S(),M("div",null,[o.value.length>0?(S(),M(He,{key:0},[W(m,{data:o.value,border:"",stripe:"",size:"small",style:{width:"100%"},"max-height":500,"cell-style":u},{default:X(()=>[(S(!0),M(He,null,Et(r.value,b=>(S(),ce(v,{key:b,prop:b,label:l(b),"min-width":"100"},{default:X(({row:C})=>[C._flags&&C._flags[b]?(S(),ce(p,{key:0,content:c(C,b),placement:"top","show-after":300},{default:X(()=>[A("span",h1e,ge(C[b]),1)]),_:2},1032,["content"])):(S(),M("span",p1e,ge(C[b]),1))]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data"]),A("div",v1e,"共 "+ge(o.value.length)+" 行",1)],64)):i.value?(S(),M("pre",m1e,ge(i.value),1)):(S(),ce(g,{key:2,description:"暂无识别数据","image-size":60}))])}}},[["__scopeId","data-v-bfa225df"]]),b1e={key:1,class:"raw-text"},fP=ul({__name:"MetaInfo",props:{data:{type:[Object,null],default:null}},setup(e){const t=e,n=E(()=>!t.data||typeof t.data!="object"?[]:Object.entries(t.data).filter(([a])=>a!=="raw_text"&&a!=="parse_error"&&a!=="part").filter(([,a])=>a!=null).map(([a,o])=>({key:a,value:String(o)}))),s=E(()=>{var a;return((a=t.data)==null?void 0:a.raw_text)||""});return(a,o)=>{const r=Ge("el-descriptions-item"),i=Ge("el-descriptions"),l=Ge("el-empty");return S(),M("div",null,[n.value.length>0?(S(),ce(i,{key:0,column:1,border:"",size:"small"},{default:X(()=>[(S(!0),M(He,null,Et(n.value,({key:c,value:u})=>(S(),ce(r,{key:c,label:c},{default:X(()=>[We(ge(u),1)]),_:2},1032,["label"]))),128))]),_:1})):s.value?(S(),M("pre",b1e,ge(s.value),1)):(S(),ce(l,{key:2,description:"暂无数据","image-size":50}))])}}},[["__scopeId","data-v-9250db36"]]),y1e={class:"toolbar"},w1e={class:"result-summary"},_1e={key:0,class:"token-hint"},C1e={class:"btn-group"},S1e={key:0},x1e={key:1},k1e={key:0,style:{color:"#e6a23c"}},E1e={key:0,class:"reason-tags"},A1e={key:2,class:"page-detail"},hP=ul({__name:"ResultPanel",props:{pagesData:{type:Array,default:()=>[]},sessionId:{type:String,default:""},outputFiles:{type:Object,default:()=>({})},outputFilenames:{type:Object,default:()=>({})},tokenUsage:{type:Object,default:null},pdfName:{type:String,default:""},correctionSummary:{type:Object,default:null}},emits:["reset"],setup(e,{emit:t}){const n=e,s=t,a=F("1"),o=E(()=>{const c=parseInt(a.value);return n.pagesData.find(u=>u.page===c)||n.pagesData[0]});function r(c){const u=c==="excel"?".xlsx":".json",f=n.outputFilenames[c]||`result${u}`,h=Q1(n.sessionId,f),p=document.createElement("a");p.href=h,p.download=f,document.body.appendChild(p),p.click(),document.body.removeChild(p)}const i={llm_suspicious:"LLM标记可疑",llm_corrected:"LLM已修正",rule_corrected:"规则已修正",seq_gap:"序号不连续",seq_dup:"序号重复",desc_overflow:"描述溢出到规格列",size_invalid:"规格字段异常",size_outlier:"规格偏离主导尺寸",qty_invalid:"数量字段异常",cell_overlap:"数值重叠(两格合并)",desc_num_tail:"描述末尾残留尺寸数字",size_num_prefix:"尺寸前缀数字粘连",pressure_oob:"压力值超范围",cross_inconsist:"跨页参数不一致"};function l(c){return i[c]||c}return(c,u)=>{const f=Ge("CircleCheck"),h=Ge("el-icon"),p=Ge("el-button"),v=Ge("el-card"),m=Ge("el-tag"),g=Ge("el-alert"),b=Ge("el-tab-pane"),C=Ge("el-tabs"),w=Ge("el-col"),_=Ge("el-row");return S(),M("div",null,[W(v,{class:"toolbar-card",shadow:"never"},{default:X(()=>[A("div",y1e,[A("div",w1e,[W(h,{color:"#67C23A",size:"20"},{default:X(()=>[W(f)]),_:1}),A("span",null,[u[4]||(u[4]=We("识别完成,共处理 ",-1)),A("strong",null,ge(e.pagesData.length),1),u[5]||(u[5]=We(" 页",-1))]),e.tokenUsage?(S(),M("span",_1e," · "+ge(e.tokenUsage.total_tokens.toLocaleString())+" tokens ¥"+ge(e.tokenUsage.cost_cny),1)):ie("",!0)]),A("div",C1e,[e.sessionId?(S(),ce(p,{key:0,type:"success",icon:d(el),onClick:u[0]||(u[0]=x=>r("excel"))},{default:X(()=>[...u[6]||(u[6]=[We(" 下载 Excel ",-1)])]),_:1},8,["icon"])):ie("",!0),e.sessionId?(S(),ce(p,{key:1,type:"info",icon:d(el),onClick:u[1]||(u[1]=x=>r("json"))},{default:X(()=>[...u[7]||(u[7]=[We(" 下载 JSON ",-1)])]),_:1},8,["icon"])):ie("",!0),W(p,{icon:d(Rg),onClick:u[2]||(u[2]=x=>s("reset"))},{default:X(()=>[...u[8]||(u[8]=[We(" 重新识别 ",-1)])]),_:1},8,["icon"])])])]),_:1}),e.correctionSummary?(S(),ce(g,{key:0,class:"correction-alert",closable:!0,"show-icon":"",type:e.correctionSummary.flagged_rows>0?e.correctionSummary.corrected_rows>0?"warning":"error":"success"},{title:X(()=>[e.correctionSummary.flagged_rows===0?(S(),M("span",S1e,"OCR 校验通过,未发现异常")):(S(),M("span",x1e,[u[9]||(u[9]=We(" 发现 ",-1)),A("strong",null,ge(e.correctionSummary.flagged_rows),1),u[10]||(u[10]=We(" 行存疑内容,已自动修正 ",-1)),A("strong",null,ge(e.correctionSummary.corrected_rows),1),u[11]||(u[11]=We(" 行 ",-1)),e.correctionSummary.flagged_rows>e.correctionSummary.corrected_rows?(S(),M("span",k1e,"(剩余 "+ge(e.correctionSummary.flagged_rows-e.correctionSummary.corrected_rows)+" 行已在 Excel 中标红)",1)):ie("",!0)]))]),default:X(()=>[e.correctionSummary.reasons&&Object.keys(e.correctionSummary.reasons).length?(S(),M("div",E1e,[(S(!0),M(He,null,Et(e.correctionSummary.reasons,(x,k)=>(S(),ce(m,{key:k,size:"small",type:k==="llm_corrected"||k==="rule_corrected"?"success":k==="llm_suspicious"?"danger":"warning",class:"reason-tag"},{default:X(()=>[We(ge(l(k))+"×"+ge(x),1)]),_:2},1032,["type"]))),128))])):ie("",!0)]),_:1},8,["type"])):ie("",!0),e.pagesData.length>1?(S(),ce(C,{key:1,modelValue:a.value,"onUpdate:modelValue":u[3]||(u[3]=x=>a.value=x),class:"page-tabs"},{default:X(()=>[(S(!0),M(He,null,Et(e.pagesData,x=>(S(),ce(b,{key:x.page,label:`第 ${x.page} 页`,name:String(x.page)},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):ie("",!0),o.value?(S(),M("div",A1e,[W(v,{shadow:"never",class:"part-card parts3-card"},{header:X(()=>[...u[12]||(u[12]=[A("span",{class:"part-label parts3-label"},"⭐ 材料明细(Parts 3)",-1)])]),default:X(()=>[W(g1e,{data:o.value.parts3},null,8,["data"])]),_:1}),W(_,{gutter:16,class:"meta-row"},{default:X(()=>[W(w,{span:12},{default:X(()=>[W(v,{shadow:"never",class:"part-card"},{header:X(()=>[...u[13]||(u[13]=[A("span",{class:"part-label"},"标题栏(Parts 1)",-1)])]),default:X(()=>[W(fP,{data:o.value.parts1},null,8,["data"])]),_:1})]),_:1}),W(w,{span:12},{default:X(()=>[W(v,{shadow:"never",class:"part-card"},{header:X(()=>[...u[14]||(u[14]=[A("span",{class:"part-label"},"附属信息(Parts 2)",-1)])]),default:X(()=>[W(fP,{data:o.value.parts2},null,8,["data"])]),_:1})]),_:1})]),_:1})])):ie("",!0)])}}},[["__scopeId","data-v-7ae18195"]]),T1e={class:"toolbar"},M1e={class:"result-summary"},P1e={key:0,class:"token-hint"},R1e={class:"btn-group"},I1e={key:1,class:"page-content"},O1e={class:"table-header"},L1e={key:0,class:"table-title"},N1e={class:"para-label"},$1e={key:0,class:"para-title"},D1e={class:"para-text"},pP=ul({__name:"GeneralResultPanel",props:{pagesData:{type:Array,default:()=>[]},sessionId:{type:String,default:""},outputFiles:{type:Object,default:()=>({})},outputFilenames:{type:Object,default:()=>({})},tokenUsage:{type:Object,default:null},pdfName:{type:String,default:""}},emits:["reset"],setup(e,{emit:t}){const n=e,s=t,a=F("1"),o=E(()=>{const f=parseInt(a.value);return n.pagesData.find(h=>h.page===f)||n.pagesData[0]}),r=E(()=>n.pagesData.reduce((f,h)=>{var p;return f+(((p=h.tables)==null?void 0:p.length)||0)},0)),i=E(()=>n.pagesData.reduce((f,h)=>{var p;return f+(((p=h.paragraphs)==null?void 0:p.length)||0)},0));function l(f){return(f.rows||[]).map(h=>{const p={};return(h||[]).forEach((v,m)=>{p[String(m)]=v}),p})}function c(f){const h=f.headers||[];return h.length?h:((f.rows||[])[0]||[]).map((v,m)=>`列${m+1}`)}function u(f){const h=f==="excel"?".xlsx":".json",p=n.outputFilenames[f]||`result${h}`,v=Q1(n.sessionId,p),m=document.createElement("a");m.href=v,m.download=p,document.body.appendChild(m),m.click(),document.body.removeChild(m)}return(f,h)=>{var T,R,I,P;const p=Ge("CircleCheck"),v=Ge("el-icon"),m=Ge("el-button"),g=Ge("el-card"),b=Ge("el-tab-pane"),C=Ge("el-tabs"),w=Ge("el-empty"),_=Ge("el-tag"),x=Ge("el-table-column"),k=Ge("el-table");return S(),M("div",null,[W(g,{class:"toolbar-card",shadow:"never"},{default:X(()=>[A("div",T1e,[A("div",M1e,[W(v,{color:"#67C23A",size:"20"},{default:X(()=>[W(p)]),_:1}),A("span",null,[h[4]||(h[4]=We("通用识别完成,共 ",-1)),A("strong",null,ge(e.pagesData.length),1),h[5]||(h[5]=We(" 页 · ",-1)),A("strong",null,ge(r.value),1),h[6]||(h[6]=We(" 张表格 · ",-1)),A("strong",null,ge(i.value),1),h[7]||(h[7]=We(" 段文字",-1))]),e.tokenUsage?(S(),M("span",P1e," · "+ge(e.tokenUsage.total_tokens.toLocaleString())+" tokens ¥"+ge(e.tokenUsage.cost_cny),1)):ie("",!0)]),A("div",R1e,[e.sessionId?(S(),ce(m,{key:0,type:"success",icon:d(el),onClick:h[0]||(h[0]=$=>u("excel"))},{default:X(()=>[...h[8]||(h[8]=[We("下载 Excel",-1)])]),_:1},8,["icon"])):ie("",!0),e.sessionId?(S(),ce(m,{key:1,type:"info",icon:d(el),onClick:h[1]||(h[1]=$=>u("json"))},{default:X(()=>[...h[9]||(h[9]=[We("下载 JSON",-1)])]),_:1},8,["icon"])):ie("",!0),W(m,{icon:d(Rg),onClick:h[2]||(h[2]=$=>s("reset"))},{default:X(()=>[...h[10]||(h[10]=[We("重新识别",-1)])]),_:1},8,["icon"])])])]),_:1}),e.pagesData.length>1?(S(),ce(C,{key:0,modelValue:a.value,"onUpdate:modelValue":h[3]||(h[3]=$=>a.value=$),class:"page-tabs"},{default:X(()=>[(S(!0),M(He,null,Et(e.pagesData,$=>(S(),ce(b,{key:$.page,label:`第 ${$.page} 页`,name:String($.page)},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):ie("",!0),o.value?(S(),M("div",I1e,[!((T=o.value.tables)!=null&&T.length)&&!((R=o.value.paragraphs)!=null&&R.length)?(S(),ce(w,{key:0,description:"本页未识别到表格或文字","image-size":80})):ie("",!0),(I=o.value.tables)!=null&&I.length?(S(!0),M(He,{key:1},Et(o.value.tables,($,O)=>(S(),ce(g,{key:O,class:"table-card",shadow:"never"},{header:X(()=>[A("div",O1e,[W(_,{size:"small",type:"warning"},{default:X(()=>[We("表格 "+ge(O+1),1)]),_:2},1024),$.title?(S(),M("span",L1e,ge($.title),1)):ie("",!0)])]),default:X(()=>[W(k,{data:l($),size:"small",border:"",stripe:"",style:{width:"100%"},"max-height":"400"},{default:X(()=>[(S(!0),M(He,null,Et(c($),(B,H)=>(S(),ce(x,{key:H,label:B,prop:String(H),"min-width":"120","show-overflow-tooltip":""},null,8,["label","prop"]))),128))]),_:2},1032,["data"])]),_:2},1024))),128)):ie("",!0),(P=o.value.paragraphs)!=null&&P.length?(S(),ce(g,{key:2,class:"para-card",shadow:"never"},{header:X(()=>[A("span",N1e,"📝 段落文字("+ge(o.value.paragraphs.length)+" 段)",1)]),default:X(()=>[(S(!0),M(He,null,Et(o.value.paragraphs,($,O)=>(S(),M("div",{key:O,class:"para-item"},[$.title?(S(),M("div",$1e,ge($.title),1)):ie("",!0),A("pre",D1e,ge($.text),1)]))),128))]),_:1})):ie("",!0)])):ie("",!0)])}}},[["__scopeId","data-v-5cd76fd5"]]),F1e={class:"ocr-app"},B1e={class:"header-inner"},V1e={class:"header-actions"},z1e={class:"auto-section-title"},H1e={class:"auto-section-title"},W1e={__name:"App",setup(e){const t=dP();function n(){window.open("/docs","_blank")}const s=F(!1),a=F(!1),o=F(""),r=F([]),i=F(0),l=F(0),c=F(0),u=F([]),f=F(""),h=F({}),p=F(null),v=F("drawing"),m=F(""),g=F(null),b=F({}),C=F(!1),w=F(!1),_=F(!1),x=F([]),k=F(0),T=F(""),R=F({}),I=E(()=>u.value.filter(N=>N.page_type==="drawing")),P=E(()=>u.value.filter(N=>N.page_type==="table"||N.page_type==="text"));let $=null;function O({file:N,url:L,files:V,formats:z,mode:G,autoCorrect:Q,maxConcurrent:U,batch:ee}){Y(),v.value=G||"drawing";const se=U||null;if(ee&&V&&V.length){C.value=!0,w.value=!0,k.value=V.length,x.value=[],$=Xge(V,z,H,v.value,Q!==!1,se);return}s.value=!0,N&&(m.value=N.name.replace(/\.pdf$/i,""));const de=te=>{B(te)};N?$=Gge(N,z,de,v.value,Q!==!1,se):L&&($=Yge(L,z,de,v.value,Q!==!1))}function B(N){const{type:L,data:V}=N;L==="progress"&&(r.value.push(V.message),V.percent!=null&&(i.value=V.percent),V.total_pages&&(l.value=V.total_pages),V.current_page&&(c.value=V.current_page)),L==="page_done"&&(v.value==="drawing"&&u.value.push(V.result),c.value=V.page,r.value.push(`✓ 第 ${V.page} 页识别完成`)),L==="done"&&(i.value=100,f.value=V.session_id,h.value=V.output_files||{},p.value=V.token_usage||null,g.value=V.correction_summary?{flagged_rows:0,corrected_rows:0,reasons:{},...V.correction_summary}:{flagged_rows:0,corrected_rows:0,reasons:{}},b.value=V.output_filenames||{},v.value==="drawing"&&Array.isArray(V.pages_data)&&(u.value=V.pages_data),(V.pdf_mode==="general"||V.pdf_mode==="auto")&&Array.isArray(V.pages_data)&&(u.value=V.pages_data),p.value&&(p.value.total_tokens!=null&&p.value.drawing_ocr==null?r.value.push(`📊 Token: 输入 ${p.value.prompt_tokens} / 输出 ${p.value.completion_tokens},费用 ¥${p.value.cost_cny}`):p.value.total_tokens!=null&&r.value.push(`📊 Token 合计 ${p.value.total_tokens}(分类+检测+OCR)`)),r.value.push("✅ 全部处理完成!"),s.value=!1,a.value=!0),L==="error"&&(o.value=V.message,s.value=!1,r.value.push(`❌ 错误:${V.message}`))}function H(N){x.value=[...x.value,N];const{type:L,data:V}=N;L==="batch_done"&&(T.value=V.merged_session_id||"",R.value=V.output_files||{},w.value=!1,_.value=!0),L==="error"&&(o.value=V.message,w.value=!1)}function J(){Y()}function Y(){$&&($(),$=null),s.value=!1,a.value=!1,o.value="",r.value=[],i.value=0,l.value=0,c.value=0,u.value=[],f.value="",h.value={},p.value=null,g.value=null,b.value={},v.value="auto",m.value="",C.value=!1,w.value=!1,_.value=!1,x.value=[],k.value=0,T.value="",R.value={}}return(N,L)=>{const V=Ge("Document"),z=Ge("el-icon"),G=Ge("el-button"),Q=Ge("el-header"),U=Ge("el-alert"),ee=Ge("el-main");return S(),M("div",F1e,[W(Q,{class:"app-header"},{default:X(()=>[A("div",B1e,[W(z,{size:"28",class:"logo-icon"},{default:X(()=>[W(V)]),_:1}),L[2]||(L[2]=A("span",{class:"title"},"Ai辅助单线图自动提取材料表",-1)),L[3]||(L[3]=A("span",{class:"subtitle"},"单线图 PDF 智能识别与材料表生成",-1))]),A("div",V1e,[W(G,{size:"small",plain:"",class:"manual-btn",onClick:L[0]||(L[0]=se=>d(t).push("/Manual"))},{default:X(()=>[W(z,null,{default:X(()=>[W(d(Tg))]),_:1}),L[4]||(L[4]=We(" 手动模式 ",-1))]),_:1}),W(G,{size:"small",plain:"",class:"swagger-btn",onClick:n},{default:X(()=>[...L[5]||(L[5]=[We("API Docs",-1)])]),_:1})])]),_:1}),W(ee,{class:"app-main"},{default:X(()=>[!s.value&&!a.value&&!C.value?(S(),ce(qge,{key:0,onSubmit:O})):ie("",!0),C.value?(S(),ce(l1e,{key:1,"batch-events":x.value,"batch-done":_.value,"merged-session-id":T.value,"output-files":R.value,"total-files":k.value,onReset:J},null,8,["batch-events","batch-done","merged-session-id","output-files","total-files"])):ie("",!0),s.value?(S(),ce(f1e,{key:2,logs:r.value,percent:i.value,"total-pages":l.value,"current-page":c.value},null,8,["logs","percent","total-pages","current-page"])):ie("",!0),a.value&&v.value==="drawing"?(S(),ce(hP,{key:3,"pages-data":u.value,"session-id":f.value,"output-files":h.value,"output-filenames":b.value,"token-usage":p.value,"pdf-name":m.value,"correction-summary":g.value,onReset:J},null,8,["pages-data","session-id","output-files","output-filenames","token-usage","pdf-name","correction-summary"])):ie("",!0),a.value&&v.value==="general"?(S(),ce(pP,{key:4,"pages-data":u.value,"session-id":f.value,"output-files":h.value,"output-filenames":b.value,"token-usage":p.value,"pdf-name":m.value,onReset:J},null,8,["pages-data","session-id","output-files","output-filenames","token-usage","pdf-name"])):ie("",!0),a.value&&v.value==="auto"?(S(),M(He,{key:5},[I.value.length?(S(),M(He,{key:0},[A("div",z1e,"📐 图纸类页面("+ge(I.value.length)+" 页)",1),W(hP,{"pages-data":I.value,"session-id":f.value,"output-files":h.value,"output-filenames":b.value,"token-usage":null,"pdf-name":m.value,"correction-summary":g.value,onReset:J},null,8,["pages-data","session-id","output-files","output-filenames","pdf-name","correction-summary"])],64)):ie("",!0),P.value.length?(S(),M(He,{key:1},[A("div",H1e,"📄 文字/表格类页面("+ge(P.value.length)+" 页)",1),W(pP,{"pages-data":P.value,"session-id":f.value,"output-files":h.value,"output-filenames":b.value,"token-usage":p.value,"pdf-name":m.value,onReset:J},null,8,["pages-data","session-id","output-files","output-filenames","token-usage","pdf-name"])],64)):ie("",!0)],64)):ie("",!0),o.value?(S(),ce(U,{key:6,title:o.value,type:"error","show-icon":"",class:"mt-4",onClose:L[1]||(L[1]=se=>o.value="")},null,8,["title"])):ie("",!0)]),_:1}),L[6]||(L[6]=A("footer",{class:"app-footer"},"© 2025 合肥诺必达信息技术有限公司 · 版权所有",-1))])}}};var Cv={};Cv.d=(e,t)=>{for(var n in t)Cv.o(t,n)&&!Cv.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},Cv.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var nn=globalThis.pdfjsLib={};Cv.d(nn,{AbortException:()=>Sc,AnnotationEditorLayer:()=>Iw,AnnotationEditorParamsType:()=>_n,AnnotationEditorType:()=>dn,AnnotationEditorUIManager:()=>Uu,AnnotationLayer:()=>F4e,AnnotationMode:()=>_c,ColorPicker:()=>bb,DOMSVGFactory:()=>Cw,DrawLayer:()=>Ow,FeatureTest:()=>Na,GlobalWorkerOptions:()=>hl,ImageKind:()=>eb,InvalidPDFException:()=>Q8,MissingPDFException:()=>xv,OPS:()=>Er,OutputScale:()=>lw,PDFDataRangeTransport:()=>YP,PDFDateString:()=>rw,PDFWorker:()=>mh,PasswordResponses:()=>q1e,PermissionFlag:()=>U1e,PixelsPerInch:()=>xc,RenderingCancelledException:()=>aw,TextLayer:()=>Pv,TouchManager:()=>ub,UnexpectedResponseException:()=>ab,Util:()=>zt,VerbosityLevel:()=>tb,XfaLayer:()=>QP,build:()=>b4e,createValidAbsoluteUrl:()=>J1e,fetchData:()=>rb,getDocument:()=>c4e,getFilenameFromUrl:()=>rbe,getPdfFilenameFromUrl:()=>ibe,getXfaPageViewport:()=>lbe,isDataScheme:()=>ib,isPdfFile:()=>ow,noContextMenu:()=>Ar,normalizeUnicode:()=>sbe,setLayerDimensions:()=>Ku,shadow:()=>mn,stopEvent:()=>yo,version:()=>g4e});const ga=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),vP=[1,0,0,1,0,0],X8=[.001,0,0,.001,0,0],j1e=1e7,J8=1.35,bo={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},_c={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},K1e="pdfjs_internal_editor_",dn={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15},_n={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_DEFAULT_COLOR:32,HIGHLIGHT_THICKNESS:33,HIGHLIGHT_FREE:34,HIGHLIGHT_SHOW_ALL:35,DRAW_STEP:41},U1e={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},ba={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},eb={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},Os={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,WIDGET:20},Sv={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},tb={ERRORS:0,WARNINGS:1,INFOS:5},Er={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93},q1e={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let nb=tb.WARNINGS;function G1e(e){Number.isInteger(e)&&(nb=e)}function Y1e(){return nb}function sb(e){nb>=tb.INFOS&&console.log(`Info: ${e}`)}function fn(e){nb>=tb.WARNINGS&&console.log(`Warning: ${e}`)}function Un(e){throw new Error(e)}function ks(e,t){e||Un(t)}function X1e(e){switch(e==null?void 0:e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function J1e(e,t=null,n=null){if(!e)return null;try{if(n&&typeof e=="string"){if(n.addDefaultProtocol&&e.startsWith("www.")){const a=e.match(/\./g);(a==null?void 0:a.length)>=2&&(e=`http://${e}`)}if(n.tryConvertEncoding)try{e=nbe(e)}catch{}}const s=t?new URL(e,t):new URL(e);if(X1e(s))return s}catch{}return null}function mn(e,t,n,s=!1){return Object.defineProperty(e,t,{value:n,enumerable:!s,configurable:!0,writable:!1}),n}const Cc=function(){function t(n,s){this.message=n,this.name=s}return t.prototype=new Error,t.constructor=t,t}();class mP extends Cc{constructor(t,n){super(t,"PasswordException"),this.code=n}}class Z8 extends Cc{constructor(t,n){super(t,"UnknownErrorException"),this.details=n}}class Q8 extends Cc{constructor(t){super(t,"InvalidPDFException")}}class xv extends Cc{constructor(t){super(t,"MissingPDFException")}}class ab extends Cc{constructor(t,n){super(t,"UnexpectedResponseException"),this.status=n}}class Z1e extends Cc{constructor(t){super(t,"FormatError")}}class Sc extends Cc{constructor(t){super(t,"AbortException")}}function gP(e){(typeof e!="object"||(e==null?void 0:e.length)===void 0)&&Un("Invalid argument for bytesToString");const t=e.length,n=8192;if(t<n)return String.fromCharCode.apply(null,e);const s=[];for(let a=0;a<t;a+=n){const o=Math.min(a+n,t),r=e.subarray(a,o);s.push(String.fromCharCode.apply(null,r))}return s.join("")}function ob(e){typeof e!="string"&&Un("Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let s=0;s<t;++s)n[s]=e.charCodeAt(s)&255;return n}function Q1e(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,e&255)}function ew(e){const t=Object.create(null);for(const[n,s]of e)t[n]=s;return t}function ebe(){const e=new Uint8Array(4);return e[0]=1,new Uint32Array(e.buffer,0,1)[0]===1}function tbe(){try{return new Function(""),!0}catch{return!1}}class Na{static get isLittleEndian(){return mn(this,"isLittleEndian",ebe())}static get isEvalSupported(){return mn(this,"isEvalSupported",tbe())}static get isOffscreenCanvasSupported(){return mn(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get isImageDecoderSupported(){return mn(this,"isImageDecoderSupported",typeof ImageDecoder<"u")}static get platform(){return typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.platform)=="string"?mn(this,"platform",{isMac:navigator.platform.includes("Mac"),isWindows:navigator.platform.includes("Win"),isFirefox:typeof(navigator==null?void 0:navigator.userAgent)=="string"&&navigator.userAgent.includes("Firefox")}):mn(this,"platform",{isMac:!1,isWindows:!1,isFirefox:!1})}static get isCSSRoundSupported(){var t,n;return mn(this,"isCSSRoundSupported",(n=(t=globalThis.CSS)==null?void 0:t.supports)==null?void 0:n.call(t,"width: round(1.5px, 1px)"))}}const tw=Array.from(Array(256).keys(),e=>e.toString(16).padStart(2,"0"));class zt{static makeHexColor(t,n,s){return`#${tw[t]}${tw[n]}${tw[s]}`}static scaleMinMax(t,n){let s;t[0]?(t[0]<0&&(s=n[0],n[0]=n[2],n[2]=s),n[0]*=t[0],n[2]*=t[0],t[3]<0&&(s=n[1],n[1]=n[3],n[3]=s),n[1]*=t[3],n[3]*=t[3]):(s=n[0],n[0]=n[1],n[1]=s,s=n[2],n[2]=n[3],n[3]=s,t[1]<0&&(s=n[1],n[1]=n[3],n[3]=s),n[1]*=t[1],n[3]*=t[1],t[2]<0&&(s=n[0],n[0]=n[2],n[2]=s),n[0]*=t[2],n[2]*=t[2]),n[0]+=t[4],n[1]+=t[5],n[2]+=t[4],n[3]+=t[5]}static transform(t,n){return[t[0]*n[0]+t[2]*n[1],t[1]*n[0]+t[3]*n[1],t[0]*n[2]+t[2]*n[3],t[1]*n[2]+t[3]*n[3],t[0]*n[4]+t[2]*n[5]+t[4],t[1]*n[4]+t[3]*n[5]+t[5]]}static applyTransform(t,n){const s=t[0]*n[0]+t[1]*n[2]+n[4],a=t[0]*n[1]+t[1]*n[3]+n[5];return[s,a]}static applyInverseTransform(t,n){const s=n[0]*n[3]-n[1]*n[2],a=(t[0]*n[3]-t[1]*n[2]+n[2]*n[5]-n[4]*n[3])/s,o=(-t[0]*n[1]+t[1]*n[0]+n[4]*n[1]-n[5]*n[0])/s;return[a,o]}static getAxialAlignedBoundingBox(t,n){const s=this.applyTransform(t,n),a=this.applyTransform(t.slice(2,4),n),o=this.applyTransform([t[0],t[3]],n),r=this.applyTransform([t[2],t[1]],n);return[Math.min(s[0],a[0],o[0],r[0]),Math.min(s[1],a[1],o[1],r[1]),Math.max(s[0],a[0],o[0],r[0]),Math.max(s[1],a[1],o[1],r[1])]}static inverseTransform(t){const n=t[0]*t[3]-t[1]*t[2];return[t[3]/n,-t[1]/n,-t[2]/n,t[0]/n,(t[2]*t[5]-t[4]*t[3])/n,(t[4]*t[1]-t[5]*t[0])/n]}static singularValueDecompose2dScale(t){const n=[t[0],t[2],t[1],t[3]],s=t[0]*n[0]+t[1]*n[2],a=t[0]*n[1]+t[1]*n[3],o=t[2]*n[0]+t[3]*n[2],r=t[2]*n[1]+t[3]*n[3],i=(s+r)/2,l=Math.sqrt((s+r)**2-4*(s*r-o*a))/2,c=i+l||1,u=i-l||1;return[Math.sqrt(c),Math.sqrt(u)]}static normalizeRect(t){const n=t.slice(0);return t[0]>t[2]&&(n[0]=t[2],n[2]=t[0]),t[1]>t[3]&&(n[1]=t[3],n[3]=t[1]),n}static intersect(t,n){const s=Math.max(Math.min(t[0],t[2]),Math.min(n[0],n[2])),a=Math.min(Math.max(t[0],t[2]),Math.max(n[0],n[2]));if(s>a)return null;const o=Math.max(Math.min(t[1],t[3]),Math.min(n[1],n[3])),r=Math.min(Math.max(t[1],t[3]),Math.max(n[1],n[3]));return o>r?null:[s,o,a,r]}static bezierBoundingBox(t,n,s,a,o,r,i,l,c){return c?(c[0]=Math.min(c[0],t,i),c[1]=Math.min(c[1],n,l),c[2]=Math.max(c[2],t,i),c[3]=Math.max(c[3],n,l)):c=[Math.min(t,i),Math.min(n,l),Math.max(t,i),Math.max(n,l)],oe(this,pl,Hw).call(this,t,s,o,i,n,a,r,l,3*(-t+3*(s-o)+i),6*(t-2*s+o),3*(s-t),c),oe(this,pl,Hw).call(this,t,s,o,i,n,a,r,l,3*(-n+3*(a-r)+l),6*(n-2*a+r),3*(a-n),c),c}}pl=new WeakSet,Hb=function(t,n,s,a,o,r,i,l,c,u){if(c<=0||c>=1)return;const f=1-c,h=c*c,p=h*c,v=f*(f*(f*t+3*c*n)+3*h*s)+p*a,m=f*(f*(f*o+3*c*r)+3*h*i)+p*l;u[0]=Math.min(u[0],v),u[1]=Math.min(u[1],m),u[2]=Math.max(u[2],v),u[3]=Math.max(u[3],m)},Hw=function(t,n,s,a,o,r,i,l,c,u,f,h){if(Math.abs(c)<1e-12){Math.abs(u)>=1e-12&&oe(this,pl,Hb).call(this,t,n,s,a,o,r,i,l,-f/u,h);return}const p=u**2-4*f*c;if(p<0)return;const v=Math.sqrt(p),m=2*c;oe(this,pl,Hb).call(this,t,n,s,a,o,r,i,l,(-u+v)/m,h),oe(this,pl,Hb).call(this,t,n,s,a,o,r,i,l,(-u-v)/m,h)},ne(zt,pl);function nbe(e){return decodeURIComponent(escape(e))}let nw=null,bP=null;function sbe(e){return nw||(nw=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,bP=new Map([["ſt","ſt"]])),e.replaceAll(nw,(t,n,s)=>n?n.normalize("NFKC"):bP.get(s))}function abe(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();const e=new Uint8Array(32);return crypto.getRandomValues(e),gP(e)}const sw="pdfjs_internal_id_";function obe(e){return Uint8Array.prototype.toBase64?e.toBase64():btoa(gP(e))}typeof Promise.try!="function"&&(Promise.try=function(e,...t){return new Promise(n=>{n(e(...t))})});const fl="http://www.w3.org/2000/svg",Yu=class Yu{};Ut(Yu,"CSS",96),Ut(Yu,"PDF",72),Ut(Yu,"PDF_TO_CSS_UNITS",Yu.CSS/Yu.PDF);let xc=Yu;async function rb(e,t="text"){if(Ev(e,document.baseURI)){const n=await fetch(e);if(!n.ok)throw new Error(n.statusText);switch(t){case"arraybuffer":return n.arrayBuffer();case"blob":return n.blob();case"json":return n.json()}return n.text()}return new Promise((n,s)=>{const a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType=t,a.onreadystatechange=()=>{if(a.readyState===XMLHttpRequest.DONE){if(a.status===200||a.status===0){switch(t){case"arraybuffer":case"blob":case"json":n(a.response);return}n(a.responseText);return}s(new Error(a.statusText))}},a.send(null)})}class kv{constructor({viewBox:t,userUnit:n,scale:s,rotation:a,offsetX:o=0,offsetY:r=0,dontFlip:i=!1}){this.viewBox=t,this.userUnit=n,this.scale=s,this.rotation=a,this.offsetX=o,this.offsetY=r,s*=n;const l=(t[2]+t[0])/2,c=(t[3]+t[1])/2;let u,f,h,p;switch(a%=360,a<0&&(a+=360),a){case 180:u=-1,f=0,h=0,p=1;break;case 90:u=0,f=1,h=1,p=0;break;case 270:u=0,f=-1,h=-1,p=0;break;case 0:u=1,f=0,h=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}i&&(h=-h,p=-p);let v,m,g,b;u===0?(v=Math.abs(c-t[1])*s+o,m=Math.abs(l-t[0])*s+r,g=(t[3]-t[1])*s,b=(t[2]-t[0])*s):(v=Math.abs(l-t[0])*s+o,m=Math.abs(c-t[1])*s+r,g=(t[2]-t[0])*s,b=(t[3]-t[1])*s),this.transform=[u*s,f*s,h*s,p*s,v-u*s*l-h*s*c,m-f*s*l-p*s*c],this.width=g,this.height=b}get rawDims(){const{userUnit:t,viewBox:n}=this,s=n.map(a=>a*t);return mn(this,"rawDims",{pageWidth:s[2]-s[0],pageHeight:s[3]-s[1],pageX:s[0],pageY:s[1]})}clone({scale:t=this.scale,rotation:n=this.rotation,offsetX:s=this.offsetX,offsetY:a=this.offsetY,dontFlip:o=!1}={}){return new kv({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:t,rotation:n,offsetX:s,offsetY:a,dontFlip:o})}convertToViewportPoint(t,n){return zt.applyTransform([t,n],this.transform)}convertToViewportRectangle(t){const n=zt.applyTransform([t[0],t[1]],this.transform),s=zt.applyTransform([t[2],t[3]],this.transform);return[n[0],n[1],s[0],s[1]]}convertToPdfPoint(t,n){return zt.applyInverseTransform([t,n],this.transform)}}class aw extends Cc{constructor(t,n=0){super(t,"RenderingCancelledException"),this.extraDelay=n}}function ib(e){const t=e.length;let n=0;for(;n<t&&e[n].trim()==="";)n++;return e.substring(n,n+5).toLowerCase()==="data:"}function ow(e){return typeof e=="string"&&/\.pdf$/i.test(e)}function rbe(e){return[e]=e.split(/[#?]/,1),e.substring(e.lastIndexOf("/")+1)}function ibe(e,t="document.pdf"){if(typeof e!="string")return t;if(ib(e))return fn('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const n=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,s=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,a=n.exec(e);let o=s.exec(a[1])||s.exec(a[2])||s.exec(a[3]);if(o&&(o=o[0],o.includes("%")))try{o=s.exec(decodeURIComponent(o))[0]}catch{}return o||t}class yP{constructor(){Ut(this,"started",Object.create(null));Ut(this,"times",[])}time(t){t in this.started&&fn(`Timer is already running for ${t}`),this.started[t]=Date.now()}timeEnd(t){t in this.started||fn(`Timer has not been started for ${t}`),this.times.push({name:t,start:this.started[t],end:Date.now()}),delete this.started[t]}toString(){const t=[];let n=0;for(const{name:s}of this.times)n=Math.max(s.length,n);for(const{name:s,start:a,end:o}of this.times)t.push(`${s.padEnd(n)} ${o-a}ms
|
||
`);return t.join("")}}function Ev(e,t){try{const{protocol:n}=t?new URL(e,t):new URL(e);return n==="http:"||n==="https:"}catch{return!1}}function Ar(e){e.preventDefault()}function yo(e){e.preventDefault(),e.stopPropagation()}class rw{static toDateObject(t){if(!t||typeof t!="string")return null;y(this,Nv)||q(this,Nv,new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const n=y(this,Nv).exec(t);if(!n)return null;const s=parseInt(n[1],10);let a=parseInt(n[2],10);a=a>=1&&a<=12?a-1:0;let o=parseInt(n[3],10);o=o>=1&&o<=31?o:1;let r=parseInt(n[4],10);r=r>=0&&r<=23?r:0;let i=parseInt(n[5],10);i=i>=0&&i<=59?i:0;let l=parseInt(n[6],10);l=l>=0&&l<=59?l:0;const c=n[7]||"Z";let u=parseInt(n[8],10);u=u>=0&&u<=23?u:0;let f=parseInt(n[9],10)||0;return f=f>=0&&f<=59?f:0,c==="-"?(r+=u,i+=f):c==="+"&&(r-=u,i-=f),new Date(Date.UTC(s,a,o,r,i,l))}}Nv=new WeakMap,ne(rw,Nv);function lbe(e,{scale:t=1,rotation:n=0}){const{width:s,height:a}=e.attributes.style,o=[0,0,parseInt(s),parseInt(a)];return new kv({viewBox:o,userUnit:1,scale:t,rotation:n})}function iw(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16);return[(t&16711680)>>16,(t&65280)>>8,t&255]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map(t=>parseInt(t)):e.startsWith("rgba(")?e.slice(5,-1).split(",").map(t=>parseInt(t)).slice(0,3):(fn(`Not a valid color format: "${e}"`),[0,0,0])}function cbe(e){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const n of e.keys()){t.style.color=n;const s=window.getComputedStyle(t).color;e.set(n,iw(s))}t.remove()}function as(e){const{a:t,b:n,c:s,d:a,e:o,f:r}=e.getTransform();return[t,n,s,a,o,r]}function pi(e){const{a:t,b:n,c:s,d:a,e:o,f:r}=e.getTransform().invertSelf();return[t,n,s,a,o,r]}function Ku(e,t,n=!1,s=!0){if(t instanceof kv){const{pageWidth:a,pageHeight:o}=t.rawDims,{style:r}=e,i=Na.isCSSRoundSupported,l=`var(--scale-factor) * ${a}px`,c=`var(--scale-factor) * ${o}px`,u=i?`round(down, ${l}, var(--scale-round-x, 1px))`:`calc(${l})`,f=i?`round(down, ${c}, var(--scale-round-y, 1px))`:`calc(${c})`;!n||t.rotation%180===0?(r.width=u,r.height=f):(r.width=f,r.height=u)}s&&e.setAttribute("data-main-rotation",t.rotation)}class lw{constructor(){const t=window.devicePixelRatio||1;this.sx=t,this.sy=t}get scaled(){return this.sx!==1||this.sy!==1}get symmetric(){return this.sx===this.sy}}const vl=class vl{constructor(t){ne(this,$a);ne(this,Ec,null);ne(this,Xu,null);ne(this,Tr);ne(this,Ju,null);ne(this,$v,null);q(this,Tr,t),y(vl,Dv)||q(vl,Dv,Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button"}))}render(){const t=q(this,Ec,document.createElement("div"));t.classList.add("editToolbar","hidden"),t.setAttribute("role","toolbar");const n=y(this,Tr)._uiManager._signal;t.addEventListener("contextmenu",Ar,{signal:n}),t.addEventListener("pointerdown",oe(vl,Cb,uR),{signal:n});const s=q(this,Ju,document.createElement("div"));s.className="buttons",t.append(s);const a=y(this,Tr).toolbarPosition;if(a){const{style:o}=t,r=y(this,Tr)._uiManager.direction==="ltr"?1-a[0]:a[0];o.insetInlineEnd=`${100*r}%`,o.top=`calc(${100*a[1]}% + var(--editor-toolbar-vert-offset))`}return oe(this,$a,hR).call(this),t}get div(){return y(this,Ec)}hide(){var t;y(this,Ec).classList.add("hidden"),(t=y(this,Xu))==null||t.hideDropdown()}show(){var t;y(this,Ec).classList.remove("hidden"),(t=y(this,$v))==null||t.shown()}async addAltText(t){const n=await t.render();oe(this,$a,Wb).call(this,n),y(this,Ju).prepend(n,y(this,$a,Ww)),q(this,$v,t)}addColorPicker(t){q(this,Xu,t);const n=t.renderButton();oe(this,$a,Wb).call(this,n),y(this,Ju).prepend(n,y(this,$a,Ww))}remove(){var t;y(this,Ec).remove(),(t=y(this,Xu))==null||t.destroy(),q(this,Xu,null)}};Ec=new WeakMap,Xu=new WeakMap,Tr=new WeakMap,Ju=new WeakMap,$v=new WeakMap,Dv=new WeakMap,Cb=new WeakSet,uR=function(t){t.stopPropagation()},$a=new WeakSet,dR=function(t){y(this,Tr)._focusEventsAllowed=!1,yo(t)},fR=function(t){y(this,Tr)._focusEventsAllowed=!0,yo(t)},Wb=function(t){const n=y(this,Tr)._uiManager._signal;t.addEventListener("focusin",oe(this,$a,dR).bind(this),{capture:!0,signal:n}),t.addEventListener("focusout",oe(this,$a,fR).bind(this),{capture:!0,signal:n}),t.addEventListener("contextmenu",Ar,{signal:n})},hR=function(){const{editorType:t,_uiManager:n}=y(this,Tr),s=document.createElement("button");s.className="delete",s.tabIndex=0,s.setAttribute("data-l10n-id",y(vl,Dv)[t]),oe(this,$a,Wb).call(this,s),s.addEventListener("click",a=>{n.delete()},{signal:n._signal}),y(this,Ju).append(s)},Ww=function(){const t=document.createElement("div");return t.className="divider",t},ne(vl,Cb),ne(vl,Dv,null);let cw=vl;class ube{constructor(t){ne(this,Ac);ne(this,Fv,null);ne(this,Zu,null);ne(this,Qu);q(this,Qu,t)}show(t,n,s){const[a,o]=oe(this,Ac,vR).call(this,n,s),{style:r}=y(this,Zu)||q(this,Zu,oe(this,Ac,pR).call(this));t.append(y(this,Zu)),r.insetInlineEnd=`${100*a}%`,r.top=`calc(${100*o}% + var(--editor-toolbar-vert-offset))`}hide(){y(this,Zu).remove()}}Fv=new WeakMap,Zu=new WeakMap,Qu=new WeakMap,Ac=new WeakSet,pR=function(){const t=q(this,Zu,document.createElement("div"));t.className="editToolbar",t.setAttribute("role","toolbar"),t.addEventListener("contextmenu",Ar,{signal:y(this,Qu)._signal});const n=q(this,Fv,document.createElement("div"));return n.className="buttons",t.append(n),oe(this,Ac,mR).call(this),t},vR=function(t,n){let s=0,a=0;for(const o of t){const r=o.y+o.height;if(r<s)continue;const i=o.x+(n?o.width:0);if(r>s){a=i,s=r;continue}n?i>a&&(a=i):i<a&&(a=i)}return[n?1-a:a,s]},mR=function(){const t=document.createElement("button");t.className="highlightButton",t.tabIndex=0,t.setAttribute("data-l10n-id","pdfjs-highlight-floating-button1");const n=document.createElement("span");t.append(n),n.className="visuallyHidden",n.setAttribute("data-l10n-id","pdfjs-highlight-floating-button-label");const s=y(this,Qu)._signal;t.addEventListener("contextmenu",Ar,{signal:s}),t.addEventListener("click",()=>{y(this,Qu).highlightSelection("floating_button")},{signal:s}),y(this,Fv).append(t)};function lb(e,t,n){for(const s of n)t.addEventListener(s,e[s].bind(e))}class dbe{constructor(){ne(this,Sb,0)}get id(){return`${K1e}${Ha(this,Sb)._++}`}}Sb=new WeakMap;const Lw=class Lw{constructor(){ne(this,bh);ne(this,gh,abe());ne(this,Bv,0);ne(this,wa,null)}static get _isSVGFittingCanvas(){const t='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',s=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),a=new Image;a.src=t;const o=a.decode().then(()=>(s.drawImage(a,0,0,1,1,0,0,1,3),new Uint32Array(s.getImageData(0,0,1,1).data.buffer)[0]===0));return mn(this,"_isSVGFittingCanvas",o)}async getFromFile(t){const{lastModified:n,name:s,size:a,type:o}=t;return oe(this,bh,jb).call(this,`${n}_${s}_${a}_${o}`,t)}async getFromUrl(t){return oe(this,bh,jb).call(this,t,t)}async getFromBlob(t,n){const s=await n;return oe(this,bh,jb).call(this,t,s)}async getFromId(t){y(this,wa)||q(this,wa,new Map);const n=y(this,wa).get(t);if(!n)return null;if(n.bitmap)return n.refCounter+=1,n;if(n.file)return this.getFromFile(n.file);if(n.blobPromise){const{blobPromise:s}=n;return delete n.blobPromise,this.getFromBlob(n.id,s)}return this.getFromUrl(n.url)}getFromCanvas(t,n){y(this,wa)||q(this,wa,new Map);let s=y(this,wa).get(t);if(s!=null&&s.bitmap)return s.refCounter+=1,s;const a=new OffscreenCanvas(n.width,n.height);return a.getContext("2d").drawImage(n,0,0),s={bitmap:a.transferToImageBitmap(),id:`image_${y(this,gh)}_${Ha(this,Bv)._++}`,refCounter:1,isSvg:!1},y(this,wa).set(t,s),y(this,wa).set(s.id,s),s}getSvgUrl(t){const n=y(this,wa).get(t);return n!=null&&n.isSvg?n.svgUrl:null}deleteId(t){var a;y(this,wa)||q(this,wa,new Map);const n=y(this,wa).get(t);if(!n||(n.refCounter-=1,n.refCounter!==0))return;const{bitmap:s}=n;if(!n.url&&!n.file){const o=new OffscreenCanvas(s.width,s.height);o.getContext("bitmaprenderer").transferFromImageBitmap(s),n.blobPromise=o.convertToBlob()}(a=s.close)==null||a.call(s),n.bitmap=null}isValidId(t){return t.startsWith(`image_${y(this,gh)}_`)}};gh=new WeakMap,Bv=new WeakMap,wa=new WeakMap,bh=new WeakSet,jb=async function(t,n){y(this,wa)||q(this,wa,new Map);let s=y(this,wa).get(t);if(s===null)return null;if(s!=null&&s.bitmap)return s.refCounter+=1,s;try{s||(s={bitmap:null,id:`image_${y(this,gh)}_${Ha(this,Bv)._++}`,refCounter:0,isSvg:!1});let a;if(typeof n=="string"?(s.url=n,a=await rb(n,"blob")):n instanceof File?a=s.file=n:n instanceof Blob&&(a=n),a.type==="image/svg+xml"){const o=Lw._isSVGFittingCanvas,r=new FileReader,i=new Image,l=new Promise((c,u)=>{i.onload=()=>{s.bitmap=i,s.isSvg=!0,c()},r.onload=async()=>{const f=s.svgUrl=r.result;i.src=await o?`${f}#svgView(preserveAspectRatio(none))`:f},i.onerror=r.onerror=u});r.readAsDataURL(a),await l}else s.bitmap=await createImageBitmap(a);s.refCounter=1}catch(a){fn(a),s=null}return y(this,wa).set(t,s),s&&y(this,wa).set(s.id,s),s};let uw=Lw;class fbe{constructor(t=128){ne(this,bs,[]);ne(this,Tc,!1);ne(this,Vv);ne(this,us,-1);q(this,Vv,t)}add({cmd:t,undo:n,post:s,mustExec:a,type:o=NaN,overwriteIfSameType:r=!1,keepUndo:i=!1}){if(a&&t(),y(this,Tc))return;const l={cmd:t,undo:n,post:s,type:o};if(y(this,us)===-1){y(this,bs).length>0&&(y(this,bs).length=0),q(this,us,0),y(this,bs).push(l);return}if(r&&y(this,bs)[y(this,us)].type===o){i&&(l.undo=y(this,bs)[y(this,us)].undo),y(this,bs)[y(this,us)]=l;return}const c=y(this,us)+1;c===y(this,Vv)?y(this,bs).splice(0,1):(q(this,us,c),c<y(this,bs).length&&y(this,bs).splice(c)),y(this,bs).push(l)}undo(){if(y(this,us)===-1)return;q(this,Tc,!0);const{undo:t,post:n}=y(this,bs)[y(this,us)];t(),n==null||n(),q(this,Tc,!1),q(this,us,y(this,us)-1)}redo(){if(y(this,us)<y(this,bs).length-1){q(this,us,y(this,us)+1),q(this,Tc,!0);const{cmd:t,post:n}=y(this,bs)[y(this,us)];t(),n==null||n(),q(this,Tc,!1)}}hasSomethingToUndo(){return y(this,us)!==-1}hasSomethingToRedo(){return y(this,us)<y(this,bs).length-1}cleanType(t){if(y(this,us)!==-1){for(let n=y(this,us);n>=0;n--)if(y(this,bs)[n].type!==t){y(this,bs).splice(n+1,y(this,us)-n),q(this,us,n);return}y(this,bs).length=0,q(this,us,-1)}}destroy(){q(this,bs,null)}}bs=new WeakMap,Tc=new WeakMap,Vv=new WeakMap,us=new WeakMap;class Av{constructor(t){ne(this,xb);this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:n}=Na.platform;for(const[s,a,o={}]of t)for(const r of s){const i=r.startsWith("mac+");n&&i?(this.callbacks.set(r.slice(4),{callback:a,options:o}),this.allKeys.add(r.split("+").at(-1))):!n&&!i&&(this.callbacks.set(r,{callback:a,options:o}),this.allKeys.add(r.split("+").at(-1)))}}exec(t,n){if(!this.allKeys.has(n.key))return;const s=this.callbacks.get(oe(this,xb,gR).call(this,n));if(!s)return;const{callback:a,options:{bubbles:o=!1,args:r=[],checker:i=null}}=s;i&&!i(t,n)||(a.bind(t,...r,n)(),o||yo(n))}}xb=new WeakSet,gR=function(t){t.altKey&&this.buffer.push("alt"),t.ctrlKey&&this.buffer.push("ctrl"),t.metaKey&&this.buffer.push("meta"),t.shiftKey&&this.buffer.push("shift"),this.buffer.push(t.key);const n=this.buffer.join("+");return this.buffer.length=0,n};const kb=class kb{get _colors(){const t=new Map([["CanvasText",null],["Canvas",null]]);return cbe(t),mn(this,"_colors",t)}convert(t){const n=iw(t);if(!window.matchMedia("(forced-colors: active)").matches)return n;for(const[s,a]of this._colors)if(a.every((o,r)=>o===n[r]))return kb._colorsMapping.get(s);return n}getHexCode(t){const n=this._colors.get(t);return n?zt.makeHexColor(...n):t}};Ut(kb,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));let dw=kb;const kh=class kh{constructor(t,n,s,a,o,r,i,l,c,u,f,h,p){ne(this,St);ne(this,yh,new AbortController);ne(this,wo,null);ne(this,Ls,new Map);ne(this,Zs,new Map);ne(this,wh,null);ne(this,ml,null);ne(this,_h,null);ne(this,qo,new fbe);ne(this,Mc,null);ne(this,ed,null);ne(this,Ch,0);ne(this,td,new Set);ne(this,mi,null);ne(this,Mr,null);ne(this,nd,new Set);Ut(this,"_editorUndoBar",null);ne(this,zv,!1);ne(this,Hv,!1);ne(this,Sh,!1);ne(this,Wv,null);ne(this,gi,null);ne(this,Pc,null);ne(this,xh,null);ne(this,Rc,!1);ne(this,bi,null);ne(this,Eb,new dbe);ne(this,Ic,!1);ne(this,jv,!1);ne(this,Oc,null);ne(this,sd,null);ne(this,Kv,null);ne(this,Uv,null);ne(this,Hs,dn.NONE);ne(this,Fn,new Set);ne(this,gl,null);ne(this,ad,null);ne(this,qv,null);ne(this,Gv,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1});ne(this,Lc,[0,0]);ne(this,yi,null);ne(this,bl,null);ne(this,Yv,null);ne(this,Go,null);const v=this._signal=y(this,yh).signal;q(this,bl,t),q(this,Yv,n),q(this,wh,s),this._eventBus=a,a._on("editingaction",this.onEditingAction.bind(this),{signal:v}),a._on("pagechanging",this.onPageChanging.bind(this),{signal:v}),a._on("scalechanging",this.onScaleChanging.bind(this),{signal:v}),a._on("rotationchanging",this.onRotationChanging.bind(this),{signal:v}),a._on("setpreference",this.onSetPreference.bind(this),{signal:v}),a._on("switchannotationeditorparams",m=>this.updateParams(m.type,m.value),{signal:v}),oe(this,St,wR).call(this),oe(this,St,xR).call(this),oe(this,St,Kw).call(this),q(this,ml,o.annotationStorage),q(this,Wv,o.filterFactory),q(this,ad,r),q(this,xh,i||null),q(this,zv,l),q(this,Hv,c),q(this,Sh,u),q(this,Uv,f||null),this.viewParameters={realScale:xc.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1,this._editorUndoBar=h||null,this._supportsPinchToZoom=p!==!1}static get _keyboardManager(){const t=kh.prototype,n=r=>y(r,bl).contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&r.hasSomethingToControl(),s=(r,{target:i})=>{if(i instanceof HTMLInputElement){const{type:l}=i;return l!=="text"&&l!=="number"}return!0},a=this.TRANSLATE_SMALL,o=this.TRANSLATE_BIG;return mn(this,"_keyboardManager",new Av([[["ctrl+a","mac+meta+a"],t.selectAll,{checker:s}],[["ctrl+z","mac+meta+z"],t.undo,{checker:s}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],t.redo,{checker:s}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],t.delete,{checker:s}],[["Enter","mac+Enter"],t.addNewEditorFromKeyboard,{checker:(r,{target:i})=>!(i instanceof HTMLButtonElement)&&y(r,bl).contains(i)&&!r.isEnterHandled}],[[" ","mac+ "],t.addNewEditorFromKeyboard,{checker:(r,{target:i})=>!(i instanceof HTMLButtonElement)&&y(r,bl).contains(document.activeElement)}],[["Escape","mac+Escape"],t.unselectAll],[["ArrowLeft","mac+ArrowLeft"],t.translateSelectedEditors,{args:[-a,0],checker:n}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t.translateSelectedEditors,{args:[-o,0],checker:n}],[["ArrowRight","mac+ArrowRight"],t.translateSelectedEditors,{args:[a,0],checker:n}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t.translateSelectedEditors,{args:[o,0],checker:n}],[["ArrowUp","mac+ArrowUp"],t.translateSelectedEditors,{args:[0,-a],checker:n}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t.translateSelectedEditors,{args:[0,-o],checker:n}],[["ArrowDown","mac+ArrowDown"],t.translateSelectedEditors,{args:[0,a],checker:n}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t.translateSelectedEditors,{args:[0,o],checker:n}]]))}destroy(){var t,n,s,a,o;(t=y(this,Go))==null||t.resolve(),q(this,Go,null),(n=y(this,yh))==null||n.abort(),q(this,yh,null),this._signal=null;for(const r of y(this,Zs).values())r.destroy();y(this,Zs).clear(),y(this,Ls).clear(),y(this,nd).clear(),q(this,wo,null),y(this,Fn).clear(),y(this,qo).destroy(),(s=y(this,wh))==null||s.destroy(),(a=y(this,bi))==null||a.hide(),q(this,bi,null),y(this,gi)&&(clearTimeout(y(this,gi)),q(this,gi,null)),y(this,yi)&&(clearTimeout(y(this,yi)),q(this,yi,null)),(o=this._editorUndoBar)==null||o.destroy()}combinedSignal(t){return AbortSignal.any([this._signal,t.signal])}get mlManager(){return y(this,Uv)}get useNewAltTextFlow(){return y(this,Hv)}get useNewAltTextWhenAddingImage(){return y(this,Sh)}get hcmFilter(){return mn(this,"hcmFilter",y(this,ad)?y(this,Wv).addHCMFilter(y(this,ad).foreground,y(this,ad).background):"none")}get direction(){return mn(this,"direction",getComputedStyle(y(this,bl)).direction)}get highlightColors(){return mn(this,"highlightColors",y(this,xh)?new Map(y(this,xh).split(",").map(t=>t.split("=").map(n=>n.trim()))):null)}get highlightColorNames(){return mn(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,t=>t.reverse())):null)}setCurrentDrawingSession(t){t?(this.unselectAll(),this.disableUserSelect(!0)):this.disableUserSelect(!1),q(this,ed,t)}setMainHighlightColorPicker(t){q(this,Kv,t)}editAltText(t,n=!1){var s;(s=y(this,wh))==null||s.editAltText(this,t,n)}switchToMode(t,n){this._eventBus.on("annotationeditormodechanged",n,{once:!0,signal:this._signal}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:t})}setPreference(t,n){this._eventBus.dispatch("setpreference",{source:this,name:t,value:n})}onSetPreference({name:t,value:n}){switch(t){case"enableNewAltTextWhenAddingImage":q(this,Sh,n);break}}onPageChanging({pageNumber:t}){q(this,Ch,t-1)}focusMainContainer(){y(this,bl).focus()}findParent(t,n){for(const s of y(this,Zs).values()){const{x:a,y:o,width:r,height:i}=s.div.getBoundingClientRect();if(t>=a&&t<=a+r&&n>=o&&n<=o+i)return s}return null}disableUserSelect(t=!1){y(this,Yv).classList.toggle("noUserSelect",t)}addShouldRescale(t){y(this,nd).add(t)}removeShouldRescale(t){y(this,nd).delete(t)}onScaleChanging({scale:t}){var n;this.commitOrRemove(),this.viewParameters.realScale=t*xc.PDF_TO_CSS_UNITS;for(const s of y(this,nd))s.onScaleChanging();(n=y(this,ed))==null||n.onScaleChanging()}onRotationChanging({pagesRotation:t}){this.commitOrRemove(),this.viewParameters.rotation=t}highlightSelection(t=""){const n=document.getSelection();if(!n||n.isCollapsed)return;const{anchorNode:s,anchorOffset:a,focusNode:o,focusOffset:r}=n,i=n.toString(),c=oe(this,St,Kb).call(this,n).closest(".textLayer"),u=this.getSelectionBoxes(c);if(!u)return;n.empty();const f=oe(this,St,jw).call(this,c),h=y(this,Hs)===dn.NONE,p=()=>{f==null||f.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:t,boxes:u,anchorNode:s,anchorOffset:a,focusNode:o,focusOffset:r,text:i}),h&&this.showAllEditors("highlight",!0,!0)};if(h){this.switchToMode(dn.HIGHLIGHT,p);return}p()}addToAnnotationStorage(t){!t.isEmpty()&&y(this,ml)&&!y(this,ml).has(t.id)&&y(this,ml).setValue(t.id,t)}blur(){if(this.isShiftKeyDown=!1,y(this,Rc)&&(q(this,Rc,!1),oe(this,St,Ub).call(this,"main_toolbar")),!this.hasSelection)return;const{activeElement:t}=document;for(const n of y(this,Fn))if(n.div.contains(t)){q(this,sd,[n,t]),n._focusEventsAllowed=!1;break}}focus(){if(!y(this,sd))return;const[t,n]=y(this,sd);q(this,sd,null),n.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:this._signal}),n.focus()}addEditListeners(){oe(this,St,Kw).call(this),oe(this,St,Uw).call(this)}removeEditListeners(){oe(this,St,SR).call(this),oe(this,St,qw).call(this)}dragOver(t){for(const{type:n}of t.dataTransfer.items)for(const s of y(this,Mr))if(s.isHandlingMimeForPasting(n)){t.dataTransfer.dropEffect="copy",t.preventDefault();return}}drop(t){for(const n of t.dataTransfer.items)for(const s of y(this,Mr))if(s.isHandlingMimeForPasting(n.type)){s.paste(n,this.currentLayer),t.preventDefault();return}}copy(t){var s;if(t.preventDefault(),(s=y(this,wo))==null||s.commitOrRemove(),!this.hasSelection)return;const n=[];for(const a of y(this,Fn)){const o=a.serialize(!0);o&&n.push(o)}n.length!==0&&t.clipboardData.setData("application/pdfjs",JSON.stringify(n))}cut(t){this.copy(t),this.delete()}async paste(t){t.preventDefault();const{clipboardData:n}=t;for(const o of n.items)for(const r of y(this,Mr))if(r.isHandlingMimeForPasting(o.type)){r.paste(o,this.currentLayer);return}let s=n.getData("application/pdfjs");if(!s)return;try{s=JSON.parse(s)}catch(o){fn(`paste: "${o.message}".`);return}if(!Array.isArray(s))return;this.unselectAll();const a=this.currentLayer;try{const o=[];for(const l of s){const c=await a.deserialize(l);if(!c)return;o.push(c)}const r=()=>{for(const l of o)oe(this,St,Gw).call(this,l);oe(this,St,Yw).call(this,o)},i=()=>{for(const l of o)l.remove()};this.addCommands({cmd:r,undo:i,mustExec:!0})}catch(o){fn(`paste: "${o.message}".`)}}keydown(t){!this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!0),y(this,Hs)!==dn.NONE&&!this.isEditorHandlingKeyboard&&kh._keyboardManager.exec(this,t)}keyup(t){this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!1,y(this,Rc)&&(q(this,Rc,!1),oe(this,St,Ub).call(this,"main_toolbar")))}onEditingAction({name:t}){switch(t){case"undo":case"redo":case"delete":case"selectAll":this[t]();break;case"highlightSelection":this.highlightSelection("context_menu");break}}setEditingState(t){t?(oe(this,St,_R).call(this),oe(this,St,Uw).call(this),oe(this,St,Wa).call(this,{isEditing:y(this,Hs)!==dn.NONE,isEmpty:oe(this,St,f2).call(this),hasSomethingToUndo:y(this,qo).hasSomethingToUndo(),hasSomethingToRedo:y(this,qo).hasSomethingToRedo(),hasSelectedEditor:!1})):(oe(this,St,CR).call(this),oe(this,St,qw).call(this),oe(this,St,Wa).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(t){if(!y(this,Mr)){q(this,Mr,t);for(const n of y(this,Mr))oe(this,St,ql).call(this,n.defaultPropertiesToUpdate)}}getId(){return y(this,Eb).id}get currentLayer(){return y(this,Zs).get(y(this,Ch))}getLayer(t){return y(this,Zs).get(t)}get currentPageIndex(){return y(this,Ch)}addLayer(t){y(this,Zs).set(t.pageIndex,t),y(this,Ic)?t.enable():t.disable()}removeLayer(t){y(this,Zs).delete(t.pageIndex)}async updateMode(t,n=null,s=!1){var a;if(y(this,Hs)!==t&&!(y(this,Go)&&(await y(this,Go).promise,!y(this,Go)))){if(q(this,Go,Promise.withResolvers()),q(this,Hs,t),t===dn.NONE){this.setEditingState(!1),oe(this,St,ER).call(this),(a=this._editorUndoBar)==null||a.hide(),y(this,Go).resolve();return}this.setEditingState(!0),await oe(this,St,kR).call(this),this.unselectAll();for(const o of y(this,Zs).values())o.updateMode(t);if(!n){s&&this.addNewEditorFromKeyboard(),y(this,Go).resolve();return}for(const o of y(this,Ls).values())o.annotationElementId===n?(this.setSelected(o),o.enterInEditMode()):o.unselect();y(this,Go).resolve()}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(t){t!==y(this,Hs)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:t})}updateParams(t,n){var s;if(y(this,Mr)){switch(t){case _n.CREATE:this.currentLayer.addNewEditor();return;case _n.HIGHLIGHT_DEFAULT_COLOR:(s=y(this,Kv))==null||s.updateColor(n);break;case _n.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(y(this,qv)||q(this,qv,new Map)).set(t,n),this.showAllEditors("highlight",n);break}for(const a of y(this,Fn))a.updateParams(t,n);for(const a of y(this,Mr))a.updateDefaultParams(t,n)}}showAllEditors(t,n,s=!1){var o;for(const r of y(this,Ls).values())r.editorType===t&&r.show(n);(((o=y(this,qv))==null?void 0:o.get(_n.HIGHLIGHT_SHOW_ALL))??!0)!==n&&oe(this,St,ql).call(this,[[_n.HIGHLIGHT_SHOW_ALL,n]])}enableWaiting(t=!1){if(y(this,jv)!==t){q(this,jv,t);for(const n of y(this,Zs).values())t?n.disableClick():n.enableClick(),n.div.classList.toggle("waiting",t)}}getEditors(t){const n=[];for(const s of y(this,Ls).values())s.pageIndex===t&&n.push(s);return n}getEditor(t){return y(this,Ls).get(t)}addEditor(t){y(this,Ls).set(t.id,t)}removeEditor(t){var n;t.div.contains(document.activeElement)&&(y(this,gi)&&clearTimeout(y(this,gi)),q(this,gi,setTimeout(()=>{this.focusMainContainer(),q(this,gi,null)},0))),y(this,Ls).delete(t.id),this.unselect(t),(!t.annotationElementId||!y(this,td).has(t.annotationElementId))&&((n=y(this,ml))==null||n.remove(t.id))}addDeletedAnnotationElement(t){y(this,td).add(t.annotationElementId),this.addChangedExistingAnnotation(t),t.deleted=!0}isDeletedAnnotationElement(t){return y(this,td).has(t)}removeDeletedAnnotationElement(t){y(this,td).delete(t.annotationElementId),this.removeChangedExistingAnnotation(t),t.deleted=!1}setActiveEditor(t){y(this,wo)!==t&&(q(this,wo,t),t&&oe(this,St,ql).call(this,t.propertiesToUpdate))}updateUI(t){y(this,St,AR)===t&&oe(this,St,ql).call(this,t.propertiesToUpdate)}updateUIForDefaultProperties(t){oe(this,St,ql).call(this,t.defaultPropertiesToUpdate)}toggleSelected(t){if(y(this,Fn).has(t)){y(this,Fn).delete(t),t.unselect(),oe(this,St,Wa).call(this,{hasSelectedEditor:this.hasSelection});return}y(this,Fn).add(t),t.select(),oe(this,St,ql).call(this,t.propertiesToUpdate),oe(this,St,Wa).call(this,{hasSelectedEditor:!0})}setSelected(t){var n;(n=y(this,ed))==null||n.commitOrRemove();for(const s of y(this,Fn))s!==t&&s.unselect();y(this,Fn).clear(),y(this,Fn).add(t),t.select(),oe(this,St,ql).call(this,t.propertiesToUpdate),oe(this,St,Wa).call(this,{hasSelectedEditor:!0})}isSelected(t){return y(this,Fn).has(t)}get firstSelectedEditor(){return y(this,Fn).values().next().value}unselect(t){t.unselect(),y(this,Fn).delete(t),oe(this,St,Wa).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return y(this,Fn).size!==0}get isEnterHandled(){return y(this,Fn).size===1&&this.firstSelectedEditor.isEnterHandled}undo(){var t;y(this,qo).undo(),oe(this,St,Wa).call(this,{hasSomethingToUndo:y(this,qo).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:oe(this,St,f2).call(this)}),(t=this._editorUndoBar)==null||t.hide()}redo(){y(this,qo).redo(),oe(this,St,Wa).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:y(this,qo).hasSomethingToRedo(),isEmpty:oe(this,St,f2).call(this)})}addCommands(t){y(this,qo).add(t),oe(this,St,Wa).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:oe(this,St,f2).call(this)})}cleanUndoStack(t){y(this,qo).cleanType(t)}delete(){var o;this.commitOrRemove();const t=(o=this.currentLayer)==null?void 0:o.endDrawingSession(!0);if(!this.hasSelection&&!t)return;const n=t?[t]:[...y(this,Fn)],s=()=>{var r;(r=this._editorUndoBar)==null||r.show(a,n.length===1?n[0].editorType:n.length);for(const i of n)i.remove()},a=()=>{for(const r of n)oe(this,St,Gw).call(this,r)};this.addCommands({cmd:s,undo:a,mustExec:!0})}commitOrRemove(){var t;(t=y(this,wo))==null||t.commitOrRemove()}hasSomethingToControl(){return y(this,wo)||this.hasSelection}selectAll(){for(const t of y(this,Fn))t.commit();oe(this,St,Yw).call(this,y(this,Ls).values())}unselectAll(){var t;if(!(y(this,wo)&&(y(this,wo).commitOrRemove(),y(this,Hs)!==dn.NONE))&&!((t=y(this,ed))!=null&&t.commitOrRemove())&&this.hasSelection){for(const n of y(this,Fn))n.unselect();y(this,Fn).clear(),oe(this,St,Wa).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(t,n,s=!1){if(s||this.commitOrRemove(),!this.hasSelection)return;y(this,Lc)[0]+=t,y(this,Lc)[1]+=n;const[a,o]=y(this,Lc),r=[...y(this,Fn)],i=1e3;y(this,yi)&&clearTimeout(y(this,yi)),q(this,yi,setTimeout(()=>{q(this,yi,null),y(this,Lc)[0]=y(this,Lc)[1]=0,this.addCommands({cmd:()=>{for(const l of r)y(this,Ls).has(l.id)&&l.translateInPage(a,o)},undo:()=>{for(const l of r)y(this,Ls).has(l.id)&&l.translateInPage(-a,-o)},mustExec:!1})},i));for(const l of r)l.translateInPage(t,n)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),q(this,mi,new Map);for(const t of y(this,Fn))y(this,mi).set(t,{savedX:t.x,savedY:t.y,savedPageIndex:t.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!y(this,mi))return!1;this.disableUserSelect(!1);const t=y(this,mi);q(this,mi,null);let n=!1;for(const[{x:a,y:o,pageIndex:r},i]of t)i.newX=a,i.newY=o,i.newPageIndex=r,n||(n=a!==i.savedX||o!==i.savedY||r!==i.savedPageIndex);if(!n)return!1;const s=(a,o,r,i)=>{if(y(this,Ls).has(a.id)){const l=y(this,Zs).get(i);l?a._setParentAndPosition(l,o,r):(a.pageIndex=i,a.x=o,a.y=r)}};return this.addCommands({cmd:()=>{for(const[a,{newX:o,newY:r,newPageIndex:i}]of t)s(a,o,r,i)},undo:()=>{for(const[a,{savedX:o,savedY:r,savedPageIndex:i}]of t)s(a,o,r,i)},mustExec:!0}),!0}dragSelectedEditors(t,n){if(y(this,mi))for(const s of y(this,mi).keys())s.drag(t,n)}rebuild(t){if(t.parent===null){const n=this.getLayer(t.pageIndex);n?(n.changeParent(t),n.addOrRebuild(t)):(this.addEditor(t),this.addToAnnotationStorage(t),t.rebuild())}else t.parent.addOrRebuild(t)}get isEditorHandlingKeyboard(){var t;return((t=this.getActive())==null?void 0:t.shouldGetKeyboardEvents())||y(this,Fn).size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(t){return y(this,wo)===t}getActive(){return y(this,wo)}getMode(){return y(this,Hs)}get imageManager(){return mn(this,"imageManager",new uw)}getSelectionBoxes(t){if(!t)return null;const n=document.getSelection();for(let c=0,u=n.rangeCount;c<u;c++)if(!t.contains(n.getRangeAt(c).commonAncestorContainer))return null;const{x:s,y:a,width:o,height:r}=t.getBoundingClientRect();let i;switch(t.getAttribute("data-main-rotation")){case"90":i=(c,u,f,h)=>({x:(u-a)/r,y:1-(c+f-s)/o,width:h/r,height:f/o});break;case"180":i=(c,u,f,h)=>({x:1-(c+f-s)/o,y:1-(u+h-a)/r,width:f/o,height:h/r});break;case"270":i=(c,u,f,h)=>({x:1-(u+h-a)/r,y:(c-s)/o,width:h/r,height:f/o});break;default:i=(c,u,f,h)=>({x:(c-s)/o,y:(u-a)/r,width:f/o,height:h/r});break}const l=[];for(let c=0,u=n.rangeCount;c<u;c++){const f=n.getRangeAt(c);if(!f.collapsed)for(const{x:h,y:p,width:v,height:m}of f.getClientRects())v===0||m===0||l.push(i(h,p,v,m))}return l.length===0?null:l}addChangedExistingAnnotation({annotationElementId:t,id:n}){(y(this,_h)||q(this,_h,new Map)).set(t,n)}removeChangedExistingAnnotation({annotationElementId:t}){var n;(n=y(this,_h))==null||n.delete(t)}renderAnnotationElement(t){var a;const n=(a=y(this,_h))==null?void 0:a.get(t.data.id);if(!n)return;const s=y(this,ml).getRawValue(n);s&&(y(this,Hs)===dn.NONE&&!s.hasBeenModified||s.renderAnnotationElement(t))}};yh=new WeakMap,wo=new WeakMap,Ls=new WeakMap,Zs=new WeakMap,wh=new WeakMap,ml=new WeakMap,_h=new WeakMap,qo=new WeakMap,Mc=new WeakMap,ed=new WeakMap,Ch=new WeakMap,td=new WeakMap,mi=new WeakMap,Mr=new WeakMap,nd=new WeakMap,zv=new WeakMap,Hv=new WeakMap,Sh=new WeakMap,Wv=new WeakMap,gi=new WeakMap,Pc=new WeakMap,xh=new WeakMap,Rc=new WeakMap,bi=new WeakMap,Eb=new WeakMap,Ic=new WeakMap,jv=new WeakMap,Oc=new WeakMap,sd=new WeakMap,Kv=new WeakMap,Uv=new WeakMap,Hs=new WeakMap,Fn=new WeakMap,gl=new WeakMap,ad=new WeakMap,qv=new WeakMap,Gv=new WeakMap,Lc=new WeakMap,yi=new WeakMap,bl=new WeakMap,Yv=new WeakMap,Go=new WeakMap,St=new WeakSet,Kb=function({anchorNode:t}){return t.nodeType===Node.TEXT_NODE?t.parentElement:t},jw=function(t){const{currentLayer:n}=this;if(n.hasTextLayer(t))return n;for(const s of y(this,Zs).values())if(s.hasTextLayer(t))return s;return null},bR=function(){const t=document.getSelection();if(!t||t.isCollapsed)return;const s=oe(this,St,Kb).call(this,t).closest(".textLayer"),a=this.getSelectionBoxes(s);a&&(y(this,bi)||q(this,bi,new ube(this)),y(this,bi).show(s,a,this.direction==="ltr"))},yR=function(){var o,r,i;const t=document.getSelection();if(!t||t.isCollapsed){y(this,gl)&&((o=y(this,bi))==null||o.hide(),q(this,gl,null),oe(this,St,Wa).call(this,{hasSelectedText:!1}));return}const{anchorNode:n}=t;if(n===y(this,gl))return;const a=oe(this,St,Kb).call(this,t).closest(".textLayer");if(!a){y(this,gl)&&((r=y(this,bi))==null||r.hide(),q(this,gl,null),oe(this,St,Wa).call(this,{hasSelectedText:!1}));return}if((i=y(this,bi))==null||i.hide(),q(this,gl,n),oe(this,St,Wa).call(this,{hasSelectedText:!0}),!(y(this,Hs)!==dn.HIGHLIGHT&&y(this,Hs)!==dn.NONE)&&(y(this,Hs)===dn.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),q(this,Rc,this.isShiftKeyDown),!this.isShiftKeyDown)){const l=y(this,Hs)===dn.HIGHLIGHT?oe(this,St,jw).call(this,a):null;l==null||l.toggleDrawing();const c=new AbortController,u=this.combinedSignal(c),f=h=>{h.type==="pointerup"&&h.button!==0||(c.abort(),l==null||l.toggleDrawing(!0),h.type==="pointerup"&&oe(this,St,Ub).call(this,"main_toolbar"))};window.addEventListener("pointerup",f,{signal:u}),window.addEventListener("blur",f,{signal:u})}},Ub=function(t=""){y(this,Hs)===dn.HIGHLIGHT?this.highlightSelection(t):y(this,zv)&&oe(this,St,bR).call(this)},wR=function(){document.addEventListener("selectionchange",oe(this,St,yR).bind(this),{signal:this._signal})},_R=function(){if(y(this,Pc))return;q(this,Pc,new AbortController);const t=this.combinedSignal(y(this,Pc));window.addEventListener("focus",this.focus.bind(this),{signal:t}),window.addEventListener("blur",this.blur.bind(this),{signal:t})},CR=function(){var t;(t=y(this,Pc))==null||t.abort(),q(this,Pc,null)},Kw=function(){if(y(this,Oc))return;q(this,Oc,new AbortController);const t=this.combinedSignal(y(this,Oc));window.addEventListener("keydown",this.keydown.bind(this),{signal:t}),window.addEventListener("keyup",this.keyup.bind(this),{signal:t})},SR=function(){var t;(t=y(this,Oc))==null||t.abort(),q(this,Oc,null)},Uw=function(){if(y(this,Mc))return;q(this,Mc,new AbortController);const t=this.combinedSignal(y(this,Mc));document.addEventListener("copy",this.copy.bind(this),{signal:t}),document.addEventListener("cut",this.cut.bind(this),{signal:t}),document.addEventListener("paste",this.paste.bind(this),{signal:t})},qw=function(){var t;(t=y(this,Mc))==null||t.abort(),q(this,Mc,null)},xR=function(){const t=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:t}),document.addEventListener("drop",this.drop.bind(this),{signal:t})},Wa=function(t){Object.entries(t).some(([s,a])=>y(this,Gv)[s]!==a)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(y(this,Gv),t)}),y(this,Hs)===dn.HIGHLIGHT&&t.hasSelectedEditor===!1&&oe(this,St,ql).call(this,[[_n.HIGHLIGHT_FREE,!0]]))},ql=function(t){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:t})},kR=async function(){if(!y(this,Ic)){q(this,Ic,!0);const t=[];for(const n of y(this,Zs).values())t.push(n.enable());await Promise.all(t);for(const n of y(this,Ls).values())n.enable()}},ER=function(){if(this.unselectAll(),y(this,Ic)){q(this,Ic,!1);for(const t of y(this,Zs).values())t.disable();for(const t of y(this,Ls).values())t.disable()}},Gw=function(t){const n=y(this,Zs).get(t.pageIndex);n?n.addOrRebuild(t):(this.addEditor(t),this.addToAnnotationStorage(t))},AR=function(){let t=null;for(t of y(this,Fn));return t},f2=function(){if(y(this,Ls).size===0)return!0;if(y(this,Ls).size===1)for(const t of y(this,Ls).values())return t.isEmpty();return!1},Yw=function(t){for(const n of y(this,Fn))n.unselect();y(this,Fn).clear();for(const n of t)n.isEmpty()||(y(this,Fn).add(n),n.select());oe(this,St,Wa).call(this,{hasSelectedEditor:this.hasSelection})},Ut(kh,"TRANSLATE_SMALL",1),Ut(kh,"TRANSLATE_BIG",10);let Uu=kh;const Da=class Da{constructor(t){ne(this,Rr);ne(this,Ws,null);ne(this,wi,!1);ne(this,Pr,null);ne(this,Eh,null);ne(this,_i,null);ne(this,_o,null);ne(this,Ah,!1);ne(this,Ci,null);ne(this,no,null);ne(this,yl,null);ne(this,od,null);ne(this,Si,!1);q(this,no,t),q(this,Si,t._uiManager.useNewAltTextFlow),y(Da,Nc)||q(Da,Nc,Object.freeze({added:"pdfjs-editor-new-alt-text-added-button","added-label":"pdfjs-editor-new-alt-text-added-button-label",missing:"pdfjs-editor-new-alt-text-missing-button","missing-label":"pdfjs-editor-new-alt-text-missing-button-label",review:"pdfjs-editor-new-alt-text-to-review-button","review-label":"pdfjs-editor-new-alt-text-to-review-button-label"}))}static initialize(t){Da._l10n??(Da._l10n=t)}async render(){const t=q(this,Pr,document.createElement("button"));t.className="altText",t.tabIndex="0";const n=q(this,Eh,document.createElement("span"));t.append(n),y(this,Si)?(t.classList.add("new"),t.setAttribute("data-l10n-id",y(Da,Nc).missing),n.setAttribute("data-l10n-id",y(Da,Nc)["missing-label"])):(t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button"),n.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button-label"));const s=y(this,no)._uiManager._signal;t.addEventListener("contextmenu",Ar,{signal:s}),t.addEventListener("pointerdown",o=>o.stopPropagation(),{signal:s});const a=o=>{o.preventDefault(),y(this,no)._uiManager.editAltText(y(this,no)),y(this,Si)&&y(this,no)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:y(this,Rr,h2)}})};return t.addEventListener("click",a,{capture:!0,signal:s}),t.addEventListener("keydown",o=>{o.target===t&&o.key==="Enter"&&(q(this,Ah,!0),a(o))},{signal:s}),await oe(this,Rr,qb).call(this),t}finish(){y(this,Pr)&&(y(this,Pr).focus({focusVisible:y(this,Ah)}),q(this,Ah,!1))}isEmpty(){return y(this,Si)?y(this,Ws)===null:!y(this,Ws)&&!y(this,wi)}hasData(){return y(this,Si)?y(this,Ws)!==null||!!y(this,yl):this.isEmpty()}get guessedText(){return y(this,yl)}async setGuessedText(t){y(this,Ws)===null&&(q(this,yl,t),q(this,od,await Da._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer",{generatedAltText:t})),oe(this,Rr,qb).call(this))}toggleAltTextBadge(t=!1){var n;if(!y(this,Si)||y(this,Ws)){(n=y(this,Ci))==null||n.remove(),q(this,Ci,null);return}if(!y(this,Ci)){const s=q(this,Ci,document.createElement("div"));s.className="noAltTextBadge",y(this,no).div.append(s)}y(this,Ci).classList.toggle("hidden",!t)}serialize(t){let n=y(this,Ws);return!t&&y(this,yl)===n&&(n=y(this,od)),{altText:n,decorative:y(this,wi),guessedText:y(this,yl),textWithDisclaimer:y(this,od)}}get data(){return{altText:y(this,Ws),decorative:y(this,wi)}}set data({altText:t,decorative:n,guessedText:s,textWithDisclaimer:a,cancel:o=!1}){s&&(q(this,yl,s),q(this,od,a)),!(y(this,Ws)===t&&y(this,wi)===n)&&(o||(q(this,Ws,t),q(this,wi,n)),oe(this,Rr,qb).call(this))}toggle(t=!1){y(this,Pr)&&(!t&&y(this,_o)&&(clearTimeout(y(this,_o)),q(this,_o,null)),y(this,Pr).disabled=!t)}shown(){y(this,no)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:y(this,Rr,h2)}})}destroy(){var t,n;(t=y(this,Pr))==null||t.remove(),q(this,Pr,null),q(this,Eh,null),q(this,_i,null),(n=y(this,Ci))==null||n.remove(),q(this,Ci,null)}};Ws=new WeakMap,wi=new WeakMap,Pr=new WeakMap,Eh=new WeakMap,_i=new WeakMap,_o=new WeakMap,Ah=new WeakMap,Ci=new WeakMap,no=new WeakMap,yl=new WeakMap,od=new WeakMap,Si=new WeakMap,Nc=new WeakMap,Rr=new WeakSet,h2=function(){return y(this,Ws)&&"added"||y(this,Ws)===null&&this.guessedText&&"review"||"missing"},qb=async function(){var a,o,r;const t=y(this,Pr);if(!t)return;if(y(this,Si)){if(t.classList.toggle("done",!!y(this,Ws)),t.setAttribute("data-l10n-id",y(Da,Nc)[y(this,Rr,h2)]),(a=y(this,Eh))==null||a.setAttribute("data-l10n-id",y(Da,Nc)[`${y(this,Rr,h2)}-label`]),!y(this,Ws)){(o=y(this,_i))==null||o.remove();return}}else{if(!y(this,Ws)&&!y(this,wi)){t.classList.remove("done"),(r=y(this,_i))==null||r.remove();return}t.classList.add("done"),t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let n=y(this,_i);if(!n){q(this,_i,n=document.createElement("span")),n.className="tooltip",n.setAttribute("role","tooltip"),n.id=`alt-text-tooltip-${y(this,no).id}`;const i=100,l=y(this,no)._uiManager._signal;l.addEventListener("abort",()=>{clearTimeout(y(this,_o)),q(this,_o,null)},{once:!0}),t.addEventListener("mouseenter",()=>{q(this,_o,setTimeout(()=>{q(this,_o,null),y(this,_i).classList.add("show"),y(this,no)._reportTelemetry({action:"alt_text_tooltip"})},i))},{signal:l}),t.addEventListener("mouseleave",()=>{var c;y(this,_o)&&(clearTimeout(y(this,_o)),q(this,_o,null)),(c=y(this,_i))==null||c.classList.remove("show")},{signal:l})}y(this,wi)?n.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(n.removeAttribute("data-l10n-id"),n.textContent=y(this,Ws)),n.parentNode||t.append(n);const s=y(this,no).getImageForAltText();s==null||s.setAttribute("aria-describedby",n.id)},ne(Da,Nc,null),Ut(Da,"_l10n",null);let cb=Da;const Nw=class Nw{constructor({container:t,isPinchingDisabled:n=null,isPinchingStopped:s=null,onPinchStart:a=null,onPinching:o=null,onPinchEnd:r=null,signal:i}){ne(this,_l);ne(this,Xv);ne(this,rd,!1);ne(this,Jv,null);ne(this,Zv);ne(this,Qv);ne(this,em);ne(this,tm);ne(this,Th);ne(this,wl,null);ne(this,id);ne(this,$c,null);q(this,Xv,t),q(this,Jv,s),q(this,Zv,n),q(this,Qv,a),q(this,em,o),q(this,tm,r),q(this,id,new AbortController),q(this,Th,AbortSignal.any([i,y(this,id).signal])),t.addEventListener("touchstart",oe(this,_l,TR).bind(this),{passive:!1,signal:y(this,Th)})}get MIN_TOUCH_DISTANCE_TO_PINCH(){return mn(this,"MIN_TOUCH_DISTANCE_TO_PINCH",35/(window.devicePixelRatio||1))}destroy(){var t;(t=y(this,id))==null||t.abort(),q(this,id,null)}};Xv=new WeakMap,rd=new WeakMap,Jv=new WeakMap,Zv=new WeakMap,Qv=new WeakMap,em=new WeakMap,tm=new WeakMap,Th=new WeakMap,wl=new WeakMap,id=new WeakMap,$c=new WeakMap,_l=new WeakSet,TR=function(t){var a,o,r;if((a=y(this,Zv))!=null&&a.call(this)||t.touches.length<2)return;if(!y(this,$c)){q(this,$c,new AbortController);const i=AbortSignal.any([y(this,Th),y(this,$c).signal]),l=y(this,Xv),c={signal:i,passive:!1};l.addEventListener("touchmove",oe(this,_l,MR).bind(this),c),l.addEventListener("touchend",oe(this,_l,Xw).bind(this),c),l.addEventListener("touchcancel",oe(this,_l,Xw).bind(this),c),(o=y(this,Qv))==null||o.call(this)}if(yo(t),t.touches.length!==2||(r=y(this,Jv))!=null&&r.call(this)){q(this,wl,null);return}let[n,s]=t.touches;n.identifier>s.identifier&&([n,s]=[s,n]),q(this,wl,{touch0X:n.screenX,touch0Y:n.screenY,touch1X:s.screenX,touch1Y:s.screenY})},MR=function(t){var _;if(!y(this,wl)||t.touches.length!==2)return;let[n,s]=t.touches;n.identifier>s.identifier&&([n,s]=[s,n]);const{screenX:a,screenY:o}=n,{screenX:r,screenY:i}=s,l=y(this,wl),{touch0X:c,touch0Y:u,touch1X:f,touch1Y:h}=l,p=f-c,v=h-u,m=r-a,g=i-o,b=Math.hypot(m,g)||1,C=Math.hypot(p,v)||1;if(!y(this,rd)&&Math.abs(C-b)<=Nw.MIN_TOUCH_DISTANCE_TO_PINCH)return;if(l.touch0X=a,l.touch0Y=o,l.touch1X=r,l.touch1Y=i,t.preventDefault(),!y(this,rd)){q(this,rd,!0);return}const w=[(a+r)/2,(o+i)/2];(_=y(this,em))==null||_.call(this,w,C,b)},Xw=function(t){var n;y(this,$c).abort(),q(this,$c,null),(n=y(this,tm))==null||n.call(this),y(this,wl)&&(t.preventDefault(),q(this,wl,null),q(this,rd,!1))};let ub=Nw;const hn=class hn{constructor(t){ne(this,Kt);ne(this,ld,null);ne(this,Ir,null);ne(this,es,null);ne(this,Mh,!1);ne(this,Dc,null);ne(this,nm,"");ne(this,cd,!1);ne(this,Qs,null);ne(this,ud,null);ne(this,Cl,null);ne(this,Fc,null);ne(this,sm,"");ne(this,dd,!1);ne(this,Co,null);ne(this,am,!1);ne(this,fd,!1);ne(this,Sl,!1);ne(this,xi,null);ne(this,Ph,0);ne(this,Rh,0);ne(this,Yo,null);ne(this,hd,null);Ut(this,"_editToolbar",null);Ut(this,"_initialOptions",Object.create(null));Ut(this,"_initialData",null);Ut(this,"_isVisible",!0);Ut(this,"_uiManager",null);Ut(this,"_focusEventsAllowed",!0);ne(this,om,!1);ne(this,Ab,hn._zIndex++);this.parent=t.parent,this.id=t.id,this.width=this.height=null,this.pageIndex=t.parent.pageIndex,this.name=t.name,this.div=null,this._uiManager=t.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=t.isCentered,this._structTreeParentId=null;const{rotation:n,rawDims:{pageWidth:s,pageHeight:a,pageX:o,pageY:r}}=this.parent.viewport;this.rotation=n,this.pageRotation=(360+n-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[s,a],this.pageTranslation=[o,r];const[i,l]=this.parentDimensions;this.x=t.x/i,this.y=t.y/l,this.isAttachedToDOM=!1,this.deleted=!1}static get _resizerKeyboardManager(){const t=hn.prototype._resizeWithKeyboard,n=Uu.TRANSLATE_SMALL,s=Uu.TRANSLATE_BIG;return mn(this,"_resizerKeyboardManager",new Av([[["ArrowLeft","mac+ArrowLeft"],t,{args:[-n,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t,{args:[-s,0]}],[["ArrowRight","mac+ArrowRight"],t,{args:[n,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t,{args:[s,0]}],[["ArrowUp","mac+ArrowUp"],t,{args:[0,-n]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t,{args:[0,-s]}],[["ArrowDown","mac+ArrowDown"],t,{args:[0,n]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t,{args:[0,s]}],[["Escape","mac+Escape"],hn.prototype._stopResizingWithKeyboard]]))}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get isDrawer(){return!1}static get _defaultLineColor(){return mn(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(t){const n=new hbe({id:t.parent.getNextId(),parent:t.parent,uiManager:t._uiManager});n.annotationElementId=t.annotationElementId,n.deleted=!0,n._uiManager.addToAnnotationStorage(n)}static initialize(t,n){if(hn._l10n??(hn._l10n=t),hn._l10nResizer||(hn._l10nResizer=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"})),hn._borderLineWidth!==-1)return;const s=getComputedStyle(document.documentElement);hn._borderLineWidth=parseFloat(s.getPropertyValue("--outline-width"))||0}static updateDefaultParams(t,n){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(t){return!1}static paste(t,n){Un("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return y(this,om)}set _isDraggable(t){var n;q(this,om,t),(n=this.div)==null||n.classList.toggle("draggable",t)}get isEnterHandled(){return!0}center(){const[t,n]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*n/(t*2),this.y+=this.width*t/(n*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*n/(t*2),this.y-=this.width*t/(n*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(t){this._uiManager.addCommands(t)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=y(this,Ab)}setParent(t){t!==null?(this.pageIndex=t.pageIndex,this.pageDimensions=t.pageDimensions):oe(this,Kt,p2).call(this),this.parent=t}focusin(t){this._focusEventsAllowed&&(y(this,dd)?q(this,dd,!1):this.parent.setSelected(this))}focusout(t){var s;if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;const n=t.relatedTarget;n!=null&&n.closest(`#${this.id}`)||(t.preventDefault(),(s=this.parent)!=null&&s.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(t,n,s,a){const[o,r]=this.parentDimensions;[s,a]=this.screenToPageTranslation(s,a),this.x=(t+s)/o,this.y=(n+a)/r,this.fixAndSetPosition()}translate(t,n){oe(this,Kt,Jw).call(this,this.parentDimensions,t,n)}translateInPage(t,n){y(this,Co)||q(this,Co,[this.x,this.y,this.width,this.height]),oe(this,Kt,Jw).call(this,this.pageDimensions,t,n),this.div.scrollIntoView({block:"nearest"})}drag(t,n){y(this,Co)||q(this,Co,[this.x,this.y,this.width,this.height]);const{div:s,parentDimensions:[a,o]}=this;if(this.x+=t/a,this.y+=n/o,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:f,y:h}=this.div.getBoundingClientRect();this.parent.findNewParent(this,f,h)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:r,y:i}=this;const[l,c]=this.getBaseTranslation();r+=l,i+=c;const{style:u}=s;u.left=`${(100*r).toFixed(2)}%`,u.top=`${(100*i).toFixed(2)}%`,this._onTranslating(r,i),s.scrollIntoView({block:"nearest"})}_onTranslating(t,n){}_onTranslated(t,n){}get _hasBeenMoved(){return!!y(this,Co)&&(y(this,Co)[0]!==this.x||y(this,Co)[1]!==this.y)}get _hasBeenResized(){return!!y(this,Co)&&(y(this,Co)[2]!==this.width||y(this,Co)[3]!==this.height)}getBaseTranslation(){const[t,n]=this.parentDimensions,{_borderLineWidth:s}=hn,a=s/t,o=s/n;switch(this.rotation){case 90:return[-a,o];case 180:return[a,o];case 270:return[a,-o];default:return[-a,-o]}}get _mustFixPosition(){return!0}fixAndSetPosition(t=this.rotation){const{div:{style:n},pageDimensions:[s,a]}=this;let{x:o,y:r,width:i,height:l}=this;if(i*=s,l*=a,o*=s,r*=a,this._mustFixPosition)switch(t){case 0:o=Math.max(0,Math.min(s-i,o)),r=Math.max(0,Math.min(a-l,r));break;case 90:o=Math.max(0,Math.min(s-l,o)),r=Math.min(a,Math.max(i,r));break;case 180:o=Math.min(s,Math.max(i,o)),r=Math.min(a,Math.max(l,r));break;case 270:o=Math.min(s,Math.max(l,o)),r=Math.max(0,Math.min(a-i,r));break}this.x=o/=s,this.y=r/=a;const[c,u]=this.getBaseTranslation();o+=c,r+=u,n.left=`${(100*o).toFixed(2)}%`,n.top=`${(100*r).toFixed(2)}%`,this.moveInDOM()}screenToPageTranslation(t,n){var s;return oe(s=hn,rm,Zw).call(s,t,n,this.parentRotation)}pageTranslationToScreen(t,n){var s;return oe(s=hn,rm,Zw).call(s,t,n,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:t,pageDimensions:[n,s]}=this;return[n*t,s*t]}setDims(t,n){const[s,a]=this.parentDimensions,{style:o}=this.div;o.width=`${(100*t/s).toFixed(2)}%`,y(this,cd)||(o.height=`${(100*n/a).toFixed(2)}%`)}fixDims(){const{style:t}=this.div,{height:n,width:s}=t,a=s.endsWith("%"),o=!y(this,cd)&&n.endsWith("%");if(a&&o)return;const[r,i]=this.parentDimensions;a||(t.width=`${(100*parseFloat(s)/r).toFixed(2)}%`),!y(this,cd)&&!o&&(t.height=`${(100*parseFloat(n)/i).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}_onResized(){}static _round(t){return Math.round(t*1e4)/1e4}_onResizing(){}altTextFinish(){var t;(t=y(this,es))==null||t.finish()}async addEditToolbar(){return this._editToolbar||y(this,fd)?this._editToolbar:(this._editToolbar=new cw(this),this.div.append(this._editToolbar.render()),y(this,es)&&await this._editToolbar.addAltText(y(this,es)),this._editToolbar)}removeEditToolbar(){var t;this._editToolbar&&(this._editToolbar.remove(),this._editToolbar=null,(t=y(this,es))==null||t.destroy())}addContainer(t){var s;const n=(s=this._editToolbar)==null?void 0:s.div;n?n.before(t):this.div.append(t)}getClientDimensions(){return this.div.getBoundingClientRect()}async addAltTextButton(){y(this,es)||(cb.initialize(hn._l10n),q(this,es,new cb(this)),y(this,ld)&&(y(this,es).data=y(this,ld),q(this,ld,null)),await this.addEditToolbar())}get altTextData(){var t;return(t=y(this,es))==null?void 0:t.data}set altTextData(t){y(this,es)&&(y(this,es).data=t)}get guessedAltText(){var t;return(t=y(this,es))==null?void 0:t.guessedText}async setGuessedAltText(t){var n;await((n=y(this,es))==null?void 0:n.setGuessedText(t))}serializeAltText(t){var n;return(n=y(this,es))==null?void 0:n.serialize(t)}hasAltText(){return!!y(this,es)&&!y(this,es).isEmpty()}hasAltTextData(){var t;return((t=y(this,es))==null?void 0:t.hasData())??!1}render(){var o;this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.tabIndex=y(this,Mh)?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground(),oe(this,Kt,n_).call(this);const[t,n]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*n/t).toFixed(2)}%`,this.div.style.maxHeight=`${(100*t/n).toFixed(2)}%`);const[s,a]=this.getInitialTranslation();return this.translate(s,a),lb(this,this.div,["pointerdown"]),this.isResizable&&this._uiManager._supportsPinchToZoom&&(y(this,hd)||q(this,hd,new ub({container:this.div,isPinchingDisabled:()=>!this.isSelected,onPinchStart:oe(this,Kt,IR).bind(this),onPinching:oe(this,Kt,OR).bind(this),onPinchEnd:oe(this,Kt,LR).bind(this),signal:this._uiManager._signal}))),(o=this._uiManager._editorUndoBar)==null||o.hide(),this.div}pointerdown(t){const{isMac:n}=Na.platform;if(t.button!==0||t.ctrlKey&&n){t.preventDefault();return}if(q(this,dd,!0),this._isDraggable){oe(this,Kt,NR).call(this,t);return}oe(this,Kt,t_).call(this,t)}get isSelected(){return this._uiManager.isSelected(this)}_onStartDragging(){}_onStopDragging(){}moveInDOM(){y(this,xi)&&clearTimeout(y(this,xi)),q(this,xi,setTimeout(()=>{var t;q(this,xi,null),(t=this.parent)==null||t.moveEditorInDOM(this)},0))}_setParentAndPosition(t,n,s){t.changeParent(this),this.x=n,this.y=s,this.fixAndSetPosition(),this._onTranslated()}getRect(t,n,s=this.rotation){const a=this.parentScale,[o,r]=this.pageDimensions,[i,l]=this.pageTranslation,c=t/a,u=n/a,f=this.x*o,h=this.y*r,p=this.width*o,v=this.height*r;switch(s){case 0:return[f+c+i,r-h-u-v+l,f+c+p+i,r-h-u+l];case 90:return[f+u+i,r-h+c+l,f+u+v+i,r-h+c+p+l];case 180:return[f-c-p+i,r-h+u+l,f-c+i,r-h+u+v+l];case 270:return[f-u-v+i,r-h-c-p+l,f-u+i,r-h-c+l];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(t,n){const[s,a,o,r]=t,i=o-s,l=r-a;switch(this.rotation){case 0:return[s,n-r,i,l];case 90:return[s,n-a,l,i];case 180:return[o,n-a,i,l];case 270:return[o,n-r,l,i];default:throw new Error("Invalid rotation")}}onceAdded(t){}isEmpty(){return!1}enableEditMode(){q(this,fd,!0)}disableEditMode(){q(this,fd,!1)}isInEditMode(){return y(this,fd)}shouldGetKeyboardEvents(){return y(this,Sl)}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}get isOnScreen(){const{top:t,left:n,bottom:s,right:a}=this.getClientDimensions(),{innerHeight:o,innerWidth:r}=window;return n<r&&a>0&&t<o&&s>0}rebuild(){oe(this,Kt,n_).call(this)}rotate(t){}resize(){}serializeDeleted(){var t;return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:((t=this._initialData)==null?void 0:t.popupRef)||""}}serialize(t=!1,n=null){Un("An editor must be serializable")}static async deserialize(t,n,s){const a=new this.prototype.constructor({parent:n,id:n.getNextId(),uiManager:s});a.rotation=t.rotation,q(a,ld,t.accessibilityData);const[o,r]=a.pageDimensions,[i,l,c,u]=a.getRectInCurrentCoords(t.rect,r);return a.x=i/o,a.y=l/r,a.width=c/o,a.height=u/r,a}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){var t,n;if((t=y(this,Fc))==null||t.abort(),q(this,Fc,null),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),y(this,xi)&&(clearTimeout(y(this,xi)),q(this,xi,null)),oe(this,Kt,p2).call(this),this.removeEditToolbar(),y(this,Yo)){for(const s of y(this,Yo).values())clearTimeout(s);q(this,Yo,null)}this.parent=null,(n=y(this,hd))==null||n.destroy(),q(this,hd,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(oe(this,Kt,PR).call(this),y(this,Qs).classList.remove("hidden"),lb(this,this.div,["keydown"]))}get toolbarPosition(){return null}keydown(t){if(!this.isResizable||t.target!==this.div||t.key!=="Enter")return;this._uiManager.setSelected(this),q(this,Cl,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const n=y(this,Qs).children;if(!y(this,Ir)){q(this,Ir,Array.from(n));const r=oe(this,Kt,$R).bind(this),i=oe(this,Kt,DR).bind(this),l=this._uiManager._signal;for(const c of y(this,Ir)){const u=c.getAttribute("data-resizer-name");c.setAttribute("role","spinbutton"),c.addEventListener("keydown",r,{signal:l}),c.addEventListener("blur",i,{signal:l}),c.addEventListener("focus",oe(this,Kt,FR).bind(this,u),{signal:l}),c.setAttribute("data-l10n-id",hn._l10nResizer[u])}}const s=y(this,Ir)[0];let a=0;for(const r of n){if(r===s)break;a++}const o=(360-this.rotation+this.parentRotation)%360/90*(y(this,Ir).length/4);if(o!==a){if(o<a)for(let i=0;i<a-o;i++)y(this,Qs).append(y(this,Qs).firstChild);else if(o>a)for(let i=0;i<o-a;i++)y(this,Qs).firstChild.before(y(this,Qs).lastChild);let r=0;for(const i of n){const c=y(this,Ir)[r++].getAttribute("data-resizer-name");i.setAttribute("data-l10n-id",hn._l10nResizer[c])}}oe(this,Kt,s_).call(this,0),q(this,Sl,!0),y(this,Qs).firstChild.focus({focusVisible:!0}),t.preventDefault(),t.stopImmediatePropagation()}_resizeWithKeyboard(t,n){y(this,Sl)&&oe(this,Kt,e_).call(this,y(this,sm),{deltaX:t,deltaY:n,fromKeyboard:!0})}_stopResizingWithKeyboard(){oe(this,Kt,p2).call(this),this.div.focus()}select(){var t,n,s;if(this.makeResizable(),(t=this.div)==null||t.classList.add("selectedEditor"),!this._editToolbar){this.addEditToolbar().then(()=>{var a,o;(a=this.div)!=null&&a.classList.contains("selectedEditor")&&((o=this._editToolbar)==null||o.show())});return}(n=this._editToolbar)==null||n.show(),(s=y(this,es))==null||s.toggleAltTextBadge(!1)}unselect(){var t,n,s,a,o;(t=y(this,Qs))==null||t.classList.add("hidden"),(n=this.div)==null||n.classList.remove("selectedEditor"),(s=this.div)!=null&&s.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),(a=this._editToolbar)==null||a.hide(),(o=y(this,es))==null||o.toggleAltTextBadge(!0)}updateParams(t,n){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return y(this,am)}set isEditing(t){q(this,am,t),this.parent&&(t?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(t,n){q(this,cd,!0);const s=t/n,{style:a}=this.div;a.aspectRatio=s,a.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(t,n=!1){if(n){y(this,Yo)||q(this,Yo,new Map);const{action:s}=t;let a=y(this,Yo).get(s);a&&clearTimeout(a),a=setTimeout(()=>{this._reportTelemetry(t),y(this,Yo).delete(s),y(this,Yo).size===0&&q(this,Yo,null)},hn._telemetryTimeout),y(this,Yo).set(s,a);return}t.type||(t.type=this.editorType),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:t}})}show(t=this._isVisible){this.div.classList.toggle("hidden",!t),this._isVisible=t}enable(){this.div&&(this.div.tabIndex=0),q(this,Mh,!1)}disable(){this.div&&(this.div.tabIndex=-1),q(this,Mh,!0)}renderAnnotationElement(t){let n=t.container.querySelector(".annotationContent");if(!n)n=document.createElement("div"),n.classList.add("annotationContent",this.editorType),t.container.prepend(n);else if(n.nodeName==="CANVAS"){const s=n;n=document.createElement("div"),n.classList.add("annotationContent",this.editorType),s.before(n)}return n}resetAnnotationElement(t){const{firstChild:n}=t.container;(n==null?void 0:n.nodeName)==="DIV"&&n.classList.contains("annotationContent")&&n.remove()}};ld=new WeakMap,Ir=new WeakMap,es=new WeakMap,Mh=new WeakMap,Dc=new WeakMap,nm=new WeakMap,cd=new WeakMap,Qs=new WeakMap,ud=new WeakMap,Cl=new WeakMap,Fc=new WeakMap,sm=new WeakMap,dd=new WeakMap,Co=new WeakMap,am=new WeakMap,fd=new WeakMap,Sl=new WeakMap,xi=new WeakMap,Ph=new WeakMap,Rh=new WeakMap,Yo=new WeakMap,hd=new WeakMap,om=new WeakMap,Ab=new WeakMap,Kt=new WeakSet,Jw=function([t,n],s,a){[s,a]=this.screenToPageTranslation(s,a),this.x+=s/t,this.y+=a/n,this._onTranslating(this.x,this.y),this.fixAndSetPosition()},rm=new WeakSet,Zw=function(t,n,s){switch(s){case 90:return[n,-t];case 180:return[-t,-n];case 270:return[-n,t];default:return[t,n]}},Gb=function(t){switch(t){case 90:{const[n,s]=this.pageDimensions;return[0,-n/s,s/n,0]}case 180:return[-1,0,0,-1];case 270:{const[n,s]=this.pageDimensions;return[0,n/s,-s/n,0]}default:return[1,0,0,1]}},PR=function(){if(y(this,Qs))return;q(this,Qs,document.createElement("div")),y(this,Qs).classList.add("resizers");const t=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],n=this._uiManager._signal;for(const s of t){const a=document.createElement("div");y(this,Qs).append(a),a.classList.add("resizer",s),a.setAttribute("data-resizer-name",s),a.addEventListener("pointerdown",oe(this,Kt,RR).bind(this,s),{signal:n}),a.addEventListener("contextmenu",Ar,{signal:n}),a.tabIndex=-1}this.div.prepend(y(this,Qs))},RR=function(t,n){var u;n.preventDefault();const{isMac:s}=Na.platform;if(n.button!==0||n.ctrlKey&&s)return;(u=y(this,es))==null||u.toggle(!1);const a=this._isDraggable;this._isDraggable=!1,q(this,ud,[n.screenX,n.screenY]);const o=new AbortController,r=this._uiManager.combinedSignal(o);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",oe(this,Kt,e_).bind(this,t),{passive:!0,capture:!0,signal:r}),window.addEventListener("touchmove",yo,{passive:!1,signal:r}),window.addEventListener("contextmenu",Ar,{signal:r}),q(this,Cl,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const i=this.parent.div.style.cursor,l=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(n.target).cursor;const c=()=>{var f;o.abort(),this.parent.togglePointerEvents(!0),(f=y(this,es))==null||f.toggle(!0),this._isDraggable=a,this.parent.div.style.cursor=i,this.div.style.cursor=l,oe(this,Kt,Yb).call(this)};window.addEventListener("pointerup",c,{signal:r}),window.addEventListener("blur",c,{signal:r})},Qw=function(t,n,s,a){this.width=s,this.height=a,this.x=t,this.y=n;const[o,r]=this.parentDimensions;this.setDims(o*s,r*a),this.fixAndSetPosition(),this._onResized()},Yb=function(){if(!y(this,Cl))return;const{savedX:t,savedY:n,savedWidth:s,savedHeight:a}=y(this,Cl);q(this,Cl,null);const o=this.x,r=this.y,i=this.width,l=this.height;o===t&&r===n&&i===s&&l===a||this.addCommands({cmd:oe(this,Kt,Qw).bind(this,o,r,i,l),undo:oe(this,Kt,Qw).bind(this,t,n,s,a),mustExec:!0})},e_=function(t,n){const[s,a]=this.parentDimensions,o=this.x,r=this.y,i=this.width,l=this.height,c=hn.MIN_SIZE/s,u=hn.MIN_SIZE/a,f=oe(this,Kt,Gb).call(this,this.rotation),h=(Y,N)=>[f[0]*Y+f[2]*N,f[1]*Y+f[3]*N],p=oe(this,Kt,Gb).call(this,360-this.rotation),v=(Y,N)=>[p[0]*Y+p[2]*N,p[1]*Y+p[3]*N];let m,g,b=!1,C=!1;switch(t){case"topLeft":b=!0,m=(Y,N)=>[0,0],g=(Y,N)=>[Y,N];break;case"topMiddle":m=(Y,N)=>[Y/2,0],g=(Y,N)=>[Y/2,N];break;case"topRight":b=!0,m=(Y,N)=>[Y,0],g=(Y,N)=>[0,N];break;case"middleRight":C=!0,m=(Y,N)=>[Y,N/2],g=(Y,N)=>[0,N/2];break;case"bottomRight":b=!0,m=(Y,N)=>[Y,N],g=(Y,N)=>[0,0];break;case"bottomMiddle":m=(Y,N)=>[Y/2,N],g=(Y,N)=>[Y/2,0];break;case"bottomLeft":b=!0,m=(Y,N)=>[0,N],g=(Y,N)=>[Y,0];break;case"middleLeft":C=!0,m=(Y,N)=>[0,N/2],g=(Y,N)=>[Y,N/2];break}const w=m(i,l),_=g(i,l);let x=h(..._);const k=hn._round(o+x[0]),T=hn._round(r+x[1]);let R=1,I=1,P,$;if(n.fromKeyboard)({deltaX:P,deltaY:$}=n);else{const{screenX:Y,screenY:N}=n,[L,V]=y(this,ud);[P,$]=this.screenToPageTranslation(Y-L,N-V),y(this,ud)[0]=Y,y(this,ud)[1]=N}if([P,$]=v(P/s,$/a),b){const Y=Math.hypot(i,l);R=I=Math.max(Math.min(Math.hypot(_[0]-w[0]-P,_[1]-w[1]-$)/Y,1/i,1/l),c/i,u/l)}else C?R=Math.max(c,Math.min(1,Math.abs(_[0]-w[0]-P)))/i:I=Math.max(u,Math.min(1,Math.abs(_[1]-w[1]-$)))/l;const O=hn._round(i*R),B=hn._round(l*I);x=h(...g(O,B));const H=k-x[0],J=T-x[1];y(this,Co)||q(this,Co,[this.x,this.y,this.width,this.height]),this.width=O,this.height=B,this.x=H,this.y=J,this.setDims(s*O,a*B),this.fixAndSetPosition(),this._onResizing()},IR=function(){var t;q(this,Cl,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height}),(t=y(this,es))==null||t.toggle(!1),this.parent.togglePointerEvents(!1)},OR=function(t,n,s){let o=.7*(s/n)+1-.7;if(o===1)return;const r=oe(this,Kt,Gb).call(this,this.rotation),i=(k,T)=>[r[0]*k+r[2]*T,r[1]*k+r[3]*T],[l,c]=this.parentDimensions,u=this.x,f=this.y,h=this.width,p=this.height,v=hn.MIN_SIZE/l,m=hn.MIN_SIZE/c;o=Math.max(Math.min(o,1/h,1/p),v/h,m/p);const g=hn._round(h*o),b=hn._round(p*o);if(g===h&&b===p)return;y(this,Co)||q(this,Co,[u,f,h,p]);const C=i(h/2,p/2),w=hn._round(u+C[0]),_=hn._round(f+C[1]),x=i(g/2,b/2);this.x=w-x[0],this.y=_-x[1],this.width=g,this.height=b,this.setDims(l*g,c*b),this.fixAndSetPosition(),this._onResizing()},LR=function(){var t;(t=y(this,es))==null||t.toggle(!0),this.parent.togglePointerEvents(!0),oe(this,Kt,Yb).call(this)},t_=function(t){const{isMac:n}=Na.platform;t.ctrlKey&&!n||t.shiftKey||t.metaKey&&n?this.parent.toggleSelected(this):this.parent.setSelected(this)},NR=function(t){const{isSelected:n}=this;this._uiManager.setUpDragSession();let s=!1;const a=new AbortController,o=this._uiManager.combinedSignal(a),r={capture:!0,passive:!1,signal:o},i=c=>{a.abort(),q(this,Dc,null),q(this,dd,!1),this._uiManager.endDragSession()||oe(this,Kt,t_).call(this,c),s&&this._onStopDragging()};n&&(q(this,Ph,t.clientX),q(this,Rh,t.clientY),q(this,Dc,t.pointerId),q(this,nm,t.pointerType),window.addEventListener("pointermove",c=>{s||(s=!0,this._onStartDragging());const{clientX:u,clientY:f,pointerId:h}=c;if(h!==y(this,Dc)){yo(c);return}const[p,v]=this.screenToPageTranslation(u-y(this,Ph),f-y(this,Rh));q(this,Ph,u),q(this,Rh,f),this._uiManager.dragSelectedEditors(p,v)},r),window.addEventListener("touchmove",yo,r),window.addEventListener("pointerdown",c=>{c.pointerType===y(this,nm)&&(y(this,hd)||c.isPrimary)&&i(c),yo(c)},r));const l=c=>{if(!y(this,Dc)||y(this,Dc)===c.pointerId){i(c);return}yo(c)};window.addEventListener("pointerup",l,{signal:o}),window.addEventListener("blur",l,{signal:o})},n_=function(){if(y(this,Fc)||!this.div)return;q(this,Fc,new AbortController);const t=this._uiManager.combinedSignal(y(this,Fc));this.div.addEventListener("focusin",this.focusin.bind(this),{signal:t}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:t})},$R=function(t){hn._resizerKeyboardManager.exec(this,t)},DR=function(t){var n;y(this,Sl)&&((n=t.relatedTarget)==null?void 0:n.parentNode)!==y(this,Qs)&&oe(this,Kt,p2).call(this)},FR=function(t){q(this,sm,y(this,Sl)?t:"")},s_=function(t){if(y(this,Ir))for(const n of y(this,Ir))n.tabIndex=t},p2=function(){q(this,Sl,!1),oe(this,Kt,s_).call(this,-1),oe(this,Kt,Yb).call(this)},ne(hn,rm),Ut(hn,"_l10n",null),Ut(hn,"_l10nResizer",null),Ut(hn,"_borderLineWidth",-1),Ut(hn,"_colorManager",new dw),Ut(hn,"_zIndex",1),Ut(hn,"_telemetryTimeout",1e3);let cs=hn;class hbe extends cs{constructor(t){super(t),this.annotationElementId=t.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}}const wP=3285377520,Uo=4294901760,vi=65535;class _P{constructor(t){this.h1=t?t&4294967295:wP,this.h2=t?t&4294967295:wP}update(t){let n,s;if(typeof t=="string"){n=new Uint8Array(t.length*2),s=0;for(let m=0,g=t.length;m<g;m++){const b=t.charCodeAt(m);b<=255?n[s++]=b:(n[s++]=b>>>8,n[s++]=b&255)}}else if(ArrayBuffer.isView(t))n=t.slice(),s=n.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");const a=s>>2,o=s-a*4,r=new Uint32Array(n.buffer,0,a);let i=0,l=0,c=this.h1,u=this.h2;const f=3432918353,h=461845907,p=f&vi,v=h&vi;for(let m=0;m<a;m++)m&1?(i=r[m],i=i*f&Uo|i*p&vi,i=i<<15|i>>>17,i=i*h&Uo|i*v&vi,c^=i,c=c<<13|c>>>19,c=c*5+3864292196):(l=r[m],l=l*f&Uo|l*p&vi,l=l<<15|l>>>17,l=l*h&Uo|l*v&vi,u^=l,u=u<<13|u>>>19,u=u*5+3864292196);switch(i=0,o){case 3:i^=n[a*4+2]<<16;case 2:i^=n[a*4+1]<<8;case 1:i^=n[a*4],i=i*f&Uo|i*p&vi,i=i<<15|i>>>17,i=i*h&Uo|i*v&vi,a&1?c^=i:u^=i}this.h1=c,this.h2=u}hexdigest(){let t=this.h1,n=this.h2;return t^=n>>>1,t=t*3981806797&Uo|t*36045&vi,n=n*4283543511&Uo|((n<<16|t>>>16)*2950163797&Uo)>>>16,t^=n>>>1,t=t*444984403&Uo|t*60499&vi,n=n*3301882366&Uo|((n<<16|t>>>16)*3120437893&Uo)>>>16,t^=n>>>1,(t>>>0).toString(16).padStart(8,"0")+(n>>>0).toString(16).padStart(8,"0")}}const fw=Object.freeze({map:null,hash:"",transfer:void 0});class hw{constructor(){ne(this,Tb);ne(this,pd,!1);ne(this,vd,null);ne(this,js,new Map);this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(t,n){const s=y(this,js).get(t);return s===void 0?n:Object.assign(n,s)}getRawValue(t){return y(this,js).get(t)}remove(t){if(y(this,js).delete(t),y(this,js).size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const n of y(this,js).values())if(n instanceof cs)return;this.onAnnotationEditor(null)}}setValue(t,n){const s=y(this,js).get(t);let a=!1;if(s!==void 0)for(const[o,r]of Object.entries(n))s[o]!==r&&(a=!0,s[o]=r);else a=!0,y(this,js).set(t,n);a&&oe(this,Tb,BR).call(this),n instanceof cs&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(n.constructor._type)}has(t){return y(this,js).has(t)}getAll(){return y(this,js).size>0?ew(y(this,js)):null}setAll(t){for(const[n,s]of Object.entries(t))this.setValue(n,s)}get size(){return y(this,js).size}resetModified(){y(this,pd)&&(q(this,pd,!1),typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new CP(this)}get serializable(){if(y(this,js).size===0)return fw;const t=new Map,n=new _P,s=[],a=Object.create(null);let o=!1;for(const[r,i]of y(this,js)){const l=i instanceof cs?i.serialize(!1,a):i;l&&(t.set(r,l),n.update(`${r}:${JSON.stringify(l)}`),o||(o=!!l.bitmap))}if(o)for(const r of t.values())r.bitmap&&s.push(r.bitmap);return t.size>0?{map:t,hash:n.hexdigest(),transfer:s}:fw}get editorStats(){let t=null;const n=new Map;for(const s of y(this,js).values()){if(!(s instanceof cs))continue;const a=s.telemetryFinalData;if(!a)continue;const{type:o}=a;n.has(o)||n.set(o,Object.getPrototypeOf(s).constructor),t||(t=Object.create(null));const r=t[o]||(t[o]=new Map);for(const[i,l]of Object.entries(a)){if(i==="type")continue;let c=r.get(i);c||(c=new Map,r.set(i,c));const u=c.get(l)??0;c.set(l,u+1)}}for(const[s,a]of n)t[s]=a.computeTelemetryFinalData(t[s]);return t}resetModifiedIds(){q(this,vd,null)}get modifiedIds(){if(y(this,vd))return y(this,vd);const t=[];for(const n of y(this,js).values())!(n instanceof cs)||!n.annotationElementId||!n.serialize()||t.push(n.annotationElementId);return q(this,vd,{ids:new Set(t),hash:t.join(",")})}}pd=new WeakMap,vd=new WeakMap,js=new WeakMap,Tb=new WeakSet,BR=function(){y(this,pd)||(q(this,pd,!0),typeof this.onSetModified=="function"&&this.onSetModified())};class CP extends hw{constructor(n){super();ne(this,im);const{map:s,hash:a,transfer:o}=n.serializable,r=structuredClone(s,o?{transfer:o}:null);q(this,im,{map:r,hash:a,transfer:o})}get print(){Un("Should not call PrintAnnotationStorage.print")}get serializable(){return y(this,im)}get modifiedIds(){return mn(this,"modifiedIds",{ids:new Set,hash:""})}}im=new WeakMap;class pbe{constructor({ownerDocument:t=globalThis.document,styleElement:n=null}){ne(this,Ih,new Set);this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(t){this.nativeFontFaces.add(t),this._document.fonts.add(t)}removeNativeFontFace(t){this.nativeFontFaces.delete(t),this._document.fonts.delete(t)}insertRule(t){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const n=this.styleElement.sheet;n.insertRule(t,n.cssRules.length)}clear(){for(const t of this.nativeFontFaces)this._document.fonts.delete(t);this.nativeFontFaces.clear(),y(this,Ih).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:t,_inspectFont:n}){if(!(!t||y(this,Ih).has(t.loadedName))){if(ks(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:s,src:a,style:o}=t,r=new FontFace(s,a,o);this.addNativeFontFace(r);try{await r.load(),y(this,Ih).add(s),n==null||n(t)}catch{fn(`Cannot load system font: ${t.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(r)}return}Un("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(t){if(t.attached||t.missingFile&&!t.systemFontInfo)return;if(t.attached=!0,t.systemFontInfo){await this.loadSystemFont(t);return}if(this.isFontLoadingAPISupported){const s=t.createNativeFontFace();if(s){this.addNativeFontFace(s);try{await s.loaded}catch(a){throw fn(`Failed to load font '${s.family}': '${a}'.`),t.disableFontFace=!0,a}}return}const n=t.createFontFaceRule();if(n){if(this.insertRule(n),this.isSyncFontLoadingSupported)return;await new Promise(s=>{const a=this._queueLoadingCallback(s);this._prepareFontLoadEvent(t,a)})}}get isFontLoadingAPISupported(){var n;const t=!!((n=this._document)!=null&&n.fonts);return mn(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){let t=!1;return(ga||typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.userAgent)=="string"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(t=!0),mn(this,"isSyncFontLoadingSupported",t)}_queueLoadingCallback(t){function n(){for(ks(!a.done,"completeRequest() cannot be called twice."),a.done=!0;s.length>0&&s[0].done;){const o=s.shift();setTimeout(o.callback,0)}}const{loadingRequests:s}=this,a={done:!1,complete:n,callback:t};return s.push(a),a}get _loadTestFont(){const t=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return mn(this,"_loadTestFont",t)}_prepareFontLoadEvent(t,n){function s(_,x){return _.charCodeAt(x)<<24|_.charCodeAt(x+1)<<16|_.charCodeAt(x+2)<<8|_.charCodeAt(x+3)&255}function a(_,x,k,T){const R=_.substring(0,x),I=_.substring(x+k);return R+T+I}let o,r;const i=this._document.createElement("canvas");i.width=1,i.height=1;const l=i.getContext("2d");let c=0;function u(_,x){if(++c>30){fn("Load test font never loaded."),x();return}if(l.font="30px "+_,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0){x();return}setTimeout(u.bind(null,_,x))}const f=`lt${Date.now()}${this.loadTestFontId++}`;let h=this._loadTestFont;h=a(h,976,f.length,f);const v=16,m=1482184792;let g=s(h,v);for(o=0,r=f.length-3;o<r;o+=4)g=g-m+s(f,o)|0;o<f.length&&(g=g-m+s(f+"XXX",o)|0),h=a(h,v,4,Q1e(g));const b=`url(data:font/opentype;base64,${btoa(h)});`,C=`@font-face {font-family:"${f}";src:${b}}`;this.insertRule(C);const w=this._document.createElement("div");w.style.visibility="hidden",w.style.width=w.style.height="10px",w.style.position="absolute",w.style.top=w.style.left="0px";for(const _ of[t.loadedName,f]){const x=this._document.createElement("span");x.textContent="Hi",x.style.fontFamily=_,w.append(x)}this._document.body.append(w),u(f,()=>{w.remove(),n.complete()})}}Ih=new WeakMap;class vbe{constructor(t,{disableFontFace:n=!1,fontExtraProperties:s=!1,inspectFont:a=null}){this.compiledGlyphs=Object.create(null);for(const o in t)this[o]=t[o];this.disableFontFace=n===!0,this.fontExtraProperties=s===!0,this._inspectFont=a}createNativeFontFace(){var n;if(!this.data||this.disableFontFace)return null;let t;if(!this.cssFontInfo)t=new FontFace(this.loadedName,this.data,{});else{const s={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(s.style=`oblique ${this.cssFontInfo.italicAngle}deg`),t=new FontFace(this.cssFontInfo.fontFamily,this.data,s)}return(n=this._inspectFont)==null||n.call(this,this),t}createFontFaceRule(){var s;if(!this.data||this.disableFontFace)return null;const t=`url(data:${this.mimetype};base64,${obe(this.data)});`;let n;if(!this.cssFontInfo)n=`@font-face {font-family:"${this.loadedName}";src:${t}}`;else{let a=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(a+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),n=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${a}src:${t}}`}return(s=this._inspectFont)==null||s.call(this,this,t),n}getPathGenerator(t,n){if(this.compiledGlyphs[n]!==void 0)return this.compiledGlyphs[n];const s=this.loadedName+"_path_"+n;let a;try{a=t.get(s)}catch(r){fn(`getPathGenerator - ignoring character: "${r}".`)}const o=new Path2D(a||"");return this.fontExtraProperties||t.delete(s),this.compiledGlyphs[n]=o}}const db={DATA:1,ERROR:2},Es={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function SP(){}function Qa(e){if(e instanceof Sc||e instanceof Q8||e instanceof xv||e instanceof mP||e instanceof ab||e instanceof Z8)return e;switch(e instanceof Error||typeof e=="object"&&e!==null||Un('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new Sc(e.message);case"InvalidPDFException":return new Q8(e.message);case"MissingPDFException":return new xv(e.message);case"PasswordException":return new mP(e.message,e.code);case"UnexpectedResponseException":return new ab(e.message,e.status);case"UnknownErrorException":return new Z8(e.message,e.details)}return new Z8(e.message,e.toString())}class Tv{constructor(t,n,s){ne(this,Xo);ne(this,Oh,new AbortController);this.sourceName=t,this.targetName=n,this.comObj=s,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),s.addEventListener("message",oe(this,Xo,VR).bind(this),{signal:y(this,Oh).signal})}on(t,n){const s=this.actionHandler;if(s[t])throw new Error(`There is already an actionName called "${t}"`);s[t]=n}send(t,n,s){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:n},s)}sendWithPromise(t,n,s){const a=this.callbackId++,o=Promise.withResolvers();this.callbackCapabilities[a]=o;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:a,data:n},s)}catch(r){o.reject(r)}return o.promise}sendWithStream(t,n,s,a){const o=this.streamId++,r=this.sourceName,i=this.targetName,l=this.comObj;return new ReadableStream({start:c=>{const u=Promise.withResolvers();return this.streamControllers[o]={controller:c,startCall:u,pullCall:null,cancelCall:null,isClosed:!1},l.postMessage({sourceName:r,targetName:i,action:t,streamId:o,data:n,desiredSize:c.desiredSize},a),u.promise},pull:c=>{const u=Promise.withResolvers();return this.streamControllers[o].pullCall=u,l.postMessage({sourceName:r,targetName:i,stream:Es.PULL,streamId:o,desiredSize:c.desiredSize}),u.promise},cancel:c=>{ks(c instanceof Error,"cancel must have a valid reason");const u=Promise.withResolvers();return this.streamControllers[o].cancelCall=u,this.streamControllers[o].isClosed=!0,l.postMessage({sourceName:r,targetName:i,stream:Es.CANCEL,streamId:o,reason:Qa(c)}),u.promise}},s)}destroy(){var t;(t=y(this,Oh))==null||t.abort(),q(this,Oh,null)}}Oh=new WeakMap,Xo=new WeakSet,VR=function({data:t}){if(t.targetName!==this.sourceName)return;if(t.stream){oe(this,Xo,HR).call(this,t);return}if(t.callback){const s=t.callbackId,a=this.callbackCapabilities[s];if(!a)throw new Error(`Cannot resolve callback ${s}`);if(delete this.callbackCapabilities[s],t.callback===db.DATA)a.resolve(t.data);else if(t.callback===db.ERROR)a.reject(Qa(t.reason));else throw new Error("Unexpected callback case");return}const n=this.actionHandler[t.action];if(!n)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){const s=this.sourceName,a=t.sourceName,o=this.comObj;Promise.try(n,t.data).then(function(r){o.postMessage({sourceName:s,targetName:a,callback:db.DATA,callbackId:t.callbackId,data:r})},function(r){o.postMessage({sourceName:s,targetName:a,callback:db.ERROR,callbackId:t.callbackId,reason:Qa(r)})});return}if(t.streamId){oe(this,Xo,zR).call(this,t);return}n(t.data)},zR=function(t){const n=t.streamId,s=this.sourceName,a=t.sourceName,o=this.comObj,r=this,i=this.actionHandler[t.action],l={enqueue(c,u=1,f){if(this.isCancelled)return;const h=this.desiredSize;this.desiredSize-=u,h>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),o.postMessage({sourceName:s,targetName:a,stream:Es.ENQUEUE,streamId:n,chunk:c},f)},close(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:s,targetName:a,stream:Es.CLOSE,streamId:n}),delete r.streamSinks[n])},error(c){ks(c instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,o.postMessage({sourceName:s,targetName:a,stream:Es.ERROR,streamId:n,reason:Qa(c)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[n]=l,Promise.try(i,t.data,l).then(function(){o.postMessage({sourceName:s,targetName:a,stream:Es.START_COMPLETE,streamId:n,success:!0})},function(c){o.postMessage({sourceName:s,targetName:a,stream:Es.START_COMPLETE,streamId:n,reason:Qa(c)})})},HR=function(t){const n=t.streamId,s=this.sourceName,a=t.sourceName,o=this.comObj,r=this.streamControllers[n],i=this.streamSinks[n];switch(t.stream){case Es.START_COMPLETE:t.success?r.startCall.resolve():r.startCall.reject(Qa(t.reason));break;case Es.PULL_COMPLETE:t.success?r.pullCall.resolve():r.pullCall.reject(Qa(t.reason));break;case Es.PULL:if(!i){o.postMessage({sourceName:s,targetName:a,stream:Es.PULL_COMPLETE,streamId:n,success:!0});break}i.desiredSize<=0&&t.desiredSize>0&&i.sinkCapability.resolve(),i.desiredSize=t.desiredSize,Promise.try(i.onPull||SP).then(function(){o.postMessage({sourceName:s,targetName:a,stream:Es.PULL_COMPLETE,streamId:n,success:!0})},function(c){o.postMessage({sourceName:s,targetName:a,stream:Es.PULL_COMPLETE,streamId:n,reason:Qa(c)})});break;case Es.ENQUEUE:if(ks(r,"enqueue should have stream controller"),r.isClosed)break;r.controller.enqueue(t.chunk);break;case Es.CLOSE:if(ks(r,"close should have stream controller"),r.isClosed)break;r.isClosed=!0,r.controller.close(),oe(this,Xo,Xb).call(this,r,n);break;case Es.ERROR:ks(r,"error should have stream controller"),r.controller.error(Qa(t.reason)),oe(this,Xo,Xb).call(this,r,n);break;case Es.CANCEL_COMPLETE:t.success?r.cancelCall.resolve():r.cancelCall.reject(Qa(t.reason)),oe(this,Xo,Xb).call(this,r,n);break;case Es.CANCEL:if(!i)break;const l=Qa(t.reason);Promise.try(i.onCancel||SP,l).then(function(){o.postMessage({sourceName:s,targetName:a,stream:Es.CANCEL_COMPLETE,streamId:n,success:!0})},function(c){o.postMessage({sourceName:s,targetName:a,stream:Es.CANCEL_COMPLETE,streamId:n,reason:Qa(c)})}),i.sinkCapability.reject(l),i.isCancelled=!0,delete this.streamSinks[n];break;default:throw new Error("Unexpected stream case")}},Xb=async function(t,n){var s,a,o;await Promise.allSettled([(s=t.startCall)==null?void 0:s.promise,(a=t.pullCall)==null?void 0:a.promise,(o=t.cancelCall)==null?void 0:o.promise]),delete this.streamControllers[n]};class xP{constructor({enableHWA:t=!1}){ne(this,lm,!1);q(this,lm,t)}create(t,n){if(t<=0||n<=0)throw new Error("Invalid canvas size");const s=this._createCanvas(t,n);return{canvas:s,context:s.getContext("2d",{willReadFrequently:!y(this,lm)})}}reset(t,n,s){if(!t.canvas)throw new Error("Canvas is not specified");if(n<=0||s<=0)throw new Error("Invalid canvas size");t.canvas.width=n,t.canvas.height=s}destroy(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}_createCanvas(t,n){Un("Abstract method `_createCanvas` called.")}}lm=new WeakMap;class mbe extends xP{constructor({ownerDocument:t=globalThis.document,enableHWA:n=!1}){super({enableHWA:n}),this._document=t}_createCanvas(t,n){const s=this._document.createElement("canvas");return s.width=t,s.height=n,s}}class kP{constructor({baseUrl:t=null,isCompressed:n=!0}){this.baseUrl=t,this.isCompressed=n}async fetch({name:t}){if(!this.baseUrl)throw new Error("Ensure that the `cMapUrl` and `cMapPacked` API parameters are provided.");if(!t)throw new Error("CMap name must be specified.");const n=this.baseUrl+t+(this.isCompressed?".bcmap":"");return this._fetch(n).then(s=>({cMapData:s,isCompressed:this.isCompressed})).catch(s=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${n}`)})}async _fetch(t){Un("Abstract method `_fetch` called.")}}class EP extends kP{async _fetch(t){const n=await rb(t,this.isCompressed?"arraybuffer":"text");return n instanceof ArrayBuffer?new Uint8Array(n):ob(n)}}class AP{addFilter(t){return"none"}addHCMFilter(t,n){return"none"}addAlphaFilter(t){return"none"}addLuminosityFilter(t){return"none"}addHighlightHCMFilter(t,n,s,a,o){return"none"}destroy(t=!1){}}class gbe extends AP{constructor({docId:n,ownerDocument:s=globalThis.document}){super();ne(this,Rt);ne(this,md);ne(this,Lh);ne(this,xl);ne(this,kl);ne(this,_a);ne(this,gd);ne(this,bd,0);q(this,kl,n),q(this,_a,s)}addFilter(n){if(!n)return"none";let s=y(this,Rt,ka).get(n);if(s)return s;const[a,o,r]=oe(this,Rt,Jb).call(this,n),i=n.length===1?a:`${a}${o}${r}`;if(s=y(this,Rt,ka).get(i),s)return y(this,Rt,ka).set(n,s),s;const l=`g_${y(this,kl)}_transfer_map_${Ha(this,bd)._++}`,c=oe(this,Rt,A0).call(this,l);y(this,Rt,ka).set(n,c),y(this,Rt,ka).set(i,c);const u=oe(this,Rt,T0).call(this,l);return oe(this,Rt,g2).call(this,a,o,r,u),c}addHCMFilter(n,s){var v;const a=`${n}-${s}`,o="base";let r=y(this,Rt,v2).get(o);if((r==null?void 0:r.key)===a||(r?((v=r.filter)==null||v.remove(),r.key=a,r.url="none",r.filter=null):(r={key:a,url:"none",filter:null},y(this,Rt,v2).set(o,r)),!n||!s))return r.url;const i=oe(this,Rt,b2).call(this,n);n=zt.makeHexColor(...i);const l=oe(this,Rt,b2).call(this,s);if(s=zt.makeHexColor(...l),y(this,Rt,E0).style.color="",n==="#000000"&&s==="#ffffff"||n===s)return r.url;const c=new Array(256);for(let m=0;m<=255;m++){const g=m/255;c[m]=g<=.03928?g/12.92:((g+.055)/1.055)**2.4}const u=c.join(","),f=`g_${y(this,kl)}_hcm_filter`,h=r.filter=oe(this,Rt,T0).call(this,f);oe(this,Rt,g2).call(this,u,u,u,h),oe(this,Rt,a_).call(this,h);const p=(m,g)=>{const b=i[m]/255,C=l[m]/255,w=new Array(g+1);for(let _=0;_<=g;_++)w[_]=b+_/g*(C-b);return w.join(",")};return oe(this,Rt,g2).call(this,p(0,5),p(1,5),p(2,5),h),r.url=oe(this,Rt,A0).call(this,f),r.url}addAlphaFilter(n){let s=y(this,Rt,ka).get(n);if(s)return s;const[a]=oe(this,Rt,Jb).call(this,[n]),o=`alpha_${a}`;if(s=y(this,Rt,ka).get(o),s)return y(this,Rt,ka).set(n,s),s;const r=`g_${y(this,kl)}_alpha_map_${Ha(this,bd)._++}`,i=oe(this,Rt,A0).call(this,r);y(this,Rt,ka).set(n,i),y(this,Rt,ka).set(o,i);const l=oe(this,Rt,T0).call(this,r);return oe(this,Rt,o_).call(this,a,l),i}addLuminosityFilter(n){let s=y(this,Rt,ka).get(n||"luminosity");if(s)return s;let a,o;if(n?([a]=oe(this,Rt,Jb).call(this,[n]),o=`luminosity_${a}`):o="luminosity",s=y(this,Rt,ka).get(o),s)return y(this,Rt,ka).set(n,s),s;const r=`g_${y(this,kl)}_luminosity_map_${Ha(this,bd)._++}`,i=oe(this,Rt,A0).call(this,r);y(this,Rt,ka).set(n,i),y(this,Rt,ka).set(o,i);const l=oe(this,Rt,T0).call(this,r);return oe(this,Rt,WR).call(this,l),n&&oe(this,Rt,o_).call(this,a,l),i}addHighlightHCMFilter(n,s,a,o,r){var C;const i=`${s}-${a}-${o}-${r}`;let l=y(this,Rt,v2).get(n);if((l==null?void 0:l.key)===i||(l?((C=l.filter)==null||C.remove(),l.key=i,l.url="none",l.filter=null):(l={key:i,url:"none",filter:null},y(this,Rt,v2).set(n,l)),!s||!a))return l.url;const[c,u]=[s,a].map(oe(this,Rt,b2).bind(this));let f=Math.round(.2126*c[0]+.7152*c[1]+.0722*c[2]),h=Math.round(.2126*u[0]+.7152*u[1]+.0722*u[2]),[p,v]=[o,r].map(oe(this,Rt,b2).bind(this));h<f&&([f,h,p,v]=[h,f,v,p]),y(this,Rt,E0).style.color="";const m=(w,_,x)=>{const k=new Array(256),T=(h-f)/x,R=w/255,I=(_-w)/(255*x);let P=0;for(let $=0;$<=x;$++){const O=Math.round(f+$*T),B=R+$*I;for(let H=P;H<=O;H++)k[H]=B;P=O+1}for(let $=P;$<256;$++)k[$]=k[P-1];return k.join(",")},g=`g_${y(this,kl)}_hcm_${n}_filter`,b=l.filter=oe(this,Rt,T0).call(this,g);return oe(this,Rt,a_).call(this,b),oe(this,Rt,g2).call(this,m(p[0],v[0],5),m(p[1],v[1],5),m(p[2],v[2],5),b),l.url=oe(this,Rt,A0).call(this,g),l.url}destroy(n=!1){var s,a,o,r;n&&((s=y(this,gd))!=null&&s.size)||((a=y(this,xl))==null||a.parentNode.parentNode.remove(),q(this,xl,null),(o=y(this,Lh))==null||o.clear(),q(this,Lh,null),(r=y(this,gd))==null||r.clear(),q(this,gd,null),q(this,bd,0))}}md=new WeakMap,Lh=new WeakMap,xl=new WeakMap,kl=new WeakMap,_a=new WeakMap,gd=new WeakMap,bd=new WeakMap,Rt=new WeakSet,ka=function(){return y(this,Lh)||q(this,Lh,new Map)},v2=function(){return y(this,gd)||q(this,gd,new Map)},E0=function(){if(!y(this,xl)){const n=y(this,_a).createElement("div"),{style:s}=n;s.visibility="hidden",s.contain="strict",s.width=s.height=0,s.position="absolute",s.top=s.left=0,s.zIndex=-1;const a=y(this,_a).createElementNS(fl,"svg");a.setAttribute("width",0),a.setAttribute("height",0),q(this,xl,y(this,_a).createElementNS(fl,"defs")),n.append(a),a.append(y(this,xl)),y(this,_a).body.append(n)}return y(this,xl)},Jb=function(n){if(n.length===1){const c=n[0],u=new Array(256);for(let h=0;h<256;h++)u[h]=c[h]/255;const f=u.join(",");return[f,f,f]}const[s,a,o]=n,r=new Array(256),i=new Array(256),l=new Array(256);for(let c=0;c<256;c++)r[c]=s[c]/255,i[c]=a[c]/255,l[c]=o[c]/255;return[r.join(","),i.join(","),l.join(",")]},A0=function(n){if(y(this,md)===void 0){q(this,md,"");const s=y(this,_a).URL;s!==y(this,_a).baseURI&&(ib(s)?fn('#createUrl: ignore "data:"-URL for performance reasons.'):q(this,md,s.split("#",1)[0]))}return`url(${y(this,md)}#${n})`},WR=function(n){const s=y(this,_a).createElementNS(fl,"feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),n.append(s)},a_=function(n){const s=y(this,_a).createElementNS(fl,"feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),n.append(s)},T0=function(n){const s=y(this,_a).createElementNS(fl,"filter");return s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("id",n),y(this,Rt,E0).append(s),s},m2=function(n,s,a){const o=y(this,_a).createElementNS(fl,s);o.setAttribute("type","discrete"),o.setAttribute("tableValues",a),n.append(o)},g2=function(n,s,a,o){const r=y(this,_a).createElementNS(fl,"feComponentTransfer");o.append(r),oe(this,Rt,m2).call(this,r,"feFuncR",n),oe(this,Rt,m2).call(this,r,"feFuncG",s),oe(this,Rt,m2).call(this,r,"feFuncB",a)},o_=function(n,s){const a=y(this,_a).createElementNS(fl,"feComponentTransfer");s.append(a),oe(this,Rt,m2).call(this,a,"feFuncA",n)},b2=function(n){return y(this,Rt,E0).style.color=n,iw(getComputedStyle(y(this,Rt,E0)).getPropertyValue("color"))};class TP{constructor({baseUrl:t=null}){this.baseUrl=t}async fetch({filename:t}){if(!this.baseUrl)throw new Error("Ensure that the `standardFontDataUrl` API parameter is provided.");if(!t)throw new Error("Font filename must be specified.");const n=`${this.baseUrl}${t}`;return this._fetch(n).catch(s=>{throw new Error(`Unable to load font data at: ${n}`)})}async _fetch(t){Un("Abstract method `_fetch` called.")}}class MP extends TP{async _fetch(t){const n=await rb(t,"arraybuffer");return new Uint8Array(n)}}ga&&fn("Please use the `legacy` build in Node.js environments.");async function PP(e){const n=await process.getBuiltinModule("fs").promises.readFile(e);return new Uint8Array(n)}class bbe extends AP{}class ybe extends xP{_createCanvas(t,n){return process.getBuiltinModule("module").createRequire(Rn&&Rn.tagName.toUpperCase()==="SCRIPT"&&Rn.src||new URL("ocrz-app.js",document.baseURI).href)("@napi-rs/canvas").createCanvas(t,n)}}class wbe extends kP{async _fetch(t){return PP(t)}}class _be extends TP{async _fetch(t){return PP(t)}}const ya={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function pw(e,t){if(!t)return;const n=t[2]-t[0],s=t[3]-t[1],a=new Path2D;a.rect(t[0],t[1],n,s),e.clip(a)}class vw{getPattern(){Un("Abstract method `getPattern` called.")}}class Cbe extends vw{constructor(t){super(),this._type=t[1],this._bbox=t[2],this._colorStops=t[3],this._p0=t[4],this._p1=t[5],this._r0=t[6],this._r1=t[7],this.matrix=null}_createGradient(t){let n;this._type==="axial"?n=t.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(n=t.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const s of this._colorStops)n.addColorStop(s[0],s[1]);return n}getPattern(t,n,s,a){let o;if(a===ya.STROKE||a===ya.FILL){const r=n.current.getClippedPathBoundingBox(a,as(t))||[0,0,0,0],i=Math.ceil(r[2]-r[0])||1,l=Math.ceil(r[3]-r[1])||1,c=n.cachedCanvases.getCanvas("pattern",i,l),u=c.context;u.clearRect(0,0,u.canvas.width,u.canvas.height),u.beginPath(),u.rect(0,0,u.canvas.width,u.canvas.height),u.translate(-r[0],-r[1]),s=zt.transform(s,[1,0,0,1,r[0],r[1]]),u.transform(...n.baseTransform),this.matrix&&u.transform(...this.matrix),pw(u,this._bbox),u.fillStyle=this._createGradient(u),u.fill(),o=t.createPattern(c.canvas,"no-repeat");const f=new DOMMatrix(s);o.setTransform(f)}else pw(t,this._bbox),o=this._createGradient(t);return o}}function mw(e,t,n,s,a,o,r,i){const l=t.coords,c=t.colors,u=e.data,f=e.width*4;let h;l[n+1]>l[s+1]&&(h=n,n=s,s=h,h=o,o=r,r=h),l[s+1]>l[a+1]&&(h=s,s=a,a=h,h=r,r=i,i=h),l[n+1]>l[s+1]&&(h=n,n=s,s=h,h=o,o=r,r=h);const p=(l[n]+t.offsetX)*t.scaleX,v=(l[n+1]+t.offsetY)*t.scaleY,m=(l[s]+t.offsetX)*t.scaleX,g=(l[s+1]+t.offsetY)*t.scaleY,b=(l[a]+t.offsetX)*t.scaleX,C=(l[a+1]+t.offsetY)*t.scaleY;if(v>=C)return;const w=c[o],_=c[o+1],x=c[o+2],k=c[r],T=c[r+1],R=c[r+2],I=c[i],P=c[i+1],$=c[i+2],O=Math.round(v),B=Math.round(C);let H,J,Y,N,L,V,z,G;for(let Q=O;Q<=B;Q++){if(Q<g){const te=Q<v?0:(v-Q)/(v-g);H=p-(p-m)*te,J=w-(w-k)*te,Y=_-(_-T)*te,N=x-(x-R)*te}else{let te;Q>C?te=1:g===C?te=0:te=(g-Q)/(g-C),H=m-(m-b)*te,J=k-(k-I)*te,Y=T-(T-P)*te,N=R-(R-$)*te}let U;Q<v?U=0:Q>C?U=1:U=(v-Q)/(v-C),L=p-(p-b)*U,V=w-(w-I)*U,z=_-(_-P)*U,G=x-(x-$)*U;const ee=Math.round(Math.min(H,L)),se=Math.round(Math.max(H,L));let de=f*Q+ee*4;for(let te=ee;te<=se;te++)U=(H-te)/(H-L),U<0?U=0:U>1&&(U=1),u[de++]=J-(J-V)*U|0,u[de++]=Y-(Y-z)*U|0,u[de++]=N-(N-G)*U|0,u[de++]=255}}function Sbe(e,t,n){const s=t.coords,a=t.colors;let o,r;switch(t.type){case"lattice":const i=t.verticesPerRow,l=Math.floor(s.length/i)-1,c=i-1;for(o=0;o<l;o++){let u=o*i;for(let f=0;f<c;f++,u++)mw(e,n,s[u],s[u+1],s[u+i],a[u],a[u+1],a[u+i]),mw(e,n,s[u+i+1],s[u+1],s[u+i],a[u+i+1],a[u+1],a[u+i])}break;case"triangles":for(o=0,r=s.length;o<r;o+=3)mw(e,n,s[o],s[o+1],s[o+2],a[o],a[o+1],a[o+2]);break;default:throw new Error("illegal figure")}}class xbe extends vw{constructor(t){super(),this._coords=t[2],this._colors=t[3],this._figures=t[4],this._bounds=t[5],this._bbox=t[7],this._background=t[8],this.matrix=null}_createMeshCanvas(t,n,s){const i=Math.floor(this._bounds[0]),l=Math.floor(this._bounds[1]),c=Math.ceil(this._bounds[2])-i,u=Math.ceil(this._bounds[3])-l,f=Math.min(Math.ceil(Math.abs(c*t[0]*1.1)),3e3),h=Math.min(Math.ceil(Math.abs(u*t[1]*1.1)),3e3),p=c/f,v=u/h,m={coords:this._coords,colors:this._colors,offsetX:-i,offsetY:-l,scaleX:1/p,scaleY:1/v},g=f+2*2,b=h+2*2,C=s.getCanvas("mesh",g,b),w=C.context,_=w.createImageData(f,h);if(n){const k=_.data;for(let T=0,R=k.length;T<R;T+=4)k[T]=n[0],k[T+1]=n[1],k[T+2]=n[2],k[T+3]=255}for(const k of this._figures)Sbe(_,k,m);return w.putImageData(_,2,2),{canvas:C.canvas,offsetX:i-2*p,offsetY:l-2*v,scaleX:p,scaleY:v}}getPattern(t,n,s,a){pw(t,this._bbox);let o;if(a===ya.SHADING)o=zt.singularValueDecompose2dScale(as(t));else if(o=zt.singularValueDecompose2dScale(n.baseTransform),this.matrix){const i=zt.singularValueDecompose2dScale(this.matrix);o=[o[0]*i[0],o[1]*i[1]]}const r=this._createMeshCanvas(o,a===ya.SHADING?null:this._background,n.cachedCanvases);return a!==ya.SHADING&&(t.setTransform(...n.baseTransform),this.matrix&&t.transform(...this.matrix)),t.translate(r.offsetX,r.offsetY),t.scale(r.scaleX,r.scaleY),t.createPattern(r.canvas,"no-repeat")}}class kbe extends vw{getPattern(){return"hotpink"}}function Ebe(e){switch(e[0]){case"RadialAxial":return new Cbe(e);case"Mesh":return new xbe(e);case"Dummy":return new kbe}throw new Error(`Unknown IR type: ${e[0]}`)}const RP={COLORED:1,UNCOLORED:2},Mb=class Mb{constructor(t,n,s,a,o){this.operatorList=t[2],this.matrix=t[3],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=n,this.ctx=s,this.canvasGraphicsFactory=a,this.baseTransform=o}createPatternCanvas(t){const{bbox:n,operatorList:s,paintType:a,tilingType:o,color:r,canvasGraphicsFactory:i}=this;let{xstep:l,ystep:c}=this;l=Math.abs(l),c=Math.abs(c),sb("TilingType: "+o);const u=n[0],f=n[1],h=n[2],p=n[3],v=h-u,m=p-f,g=zt.singularValueDecompose2dScale(this.matrix),b=zt.singularValueDecompose2dScale(this.baseTransform),C=g[0]*b[0],w=g[1]*b[1];let _=v,x=m,k=!1,T=!1;const R=Math.ceil(l*C),I=Math.ceil(c*w),P=Math.ceil(v*C),$=Math.ceil(m*w);R>=P?_=l:k=!0,I>=$?x=c:T=!0;const O=this.getSizeAndScale(_,this.ctx.canvas.width,C),B=this.getSizeAndScale(x,this.ctx.canvas.height,w),H=t.cachedCanvases.getCanvas("pattern",O.size,B.size),J=H.context,Y=i.createCanvasGraphics(J);if(Y.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(Y,a,r),J.translate(-O.scale*u,-B.scale*f),Y.transform(O.scale,0,0,B.scale,0,0),J.save(),this.clipBbox(Y,u,f,h,p),Y.baseTransform=as(Y.ctx),Y.executeOperatorList(s),Y.endDrawing(),J.restore(),k||T){const N=H.canvas;k&&(_=l),T&&(x=c);const L=this.getSizeAndScale(_,this.ctx.canvas.width,C),V=this.getSizeAndScale(x,this.ctx.canvas.height,w),z=L.size,G=V.size,Q=t.cachedCanvases.getCanvas("pattern-workaround",z,G),U=Q.context,ee=k?Math.floor(v/l):0,se=T?Math.floor(m/c):0;for(let de=0;de<=ee;de++)for(let te=0;te<=se;te++)U.drawImage(N,z*de,G*te,z,G,0,0,z,G);return{canvas:Q.canvas,scaleX:L.scale,scaleY:V.scale,offsetX:u,offsetY:f}}return{canvas:H.canvas,scaleX:O.scale,scaleY:B.scale,offsetX:u,offsetY:f}}getSizeAndScale(t,n,s){const a=Math.max(Mb.MAX_PATTERN_SIZE,n);let o=Math.ceil(t*s);return o>=a?o=a:s=o/t,{scale:s,size:o}}clipBbox(t,n,s,a,o){const r=a-n,i=o-s;t.ctx.rect(n,s,r,i),t.current.updateRectMinMax(as(t.ctx),[n,s,a,o]),t.clip(),t.endPath()}setFillAndStrokeStyleToContext(t,n,s){const a=t.ctx,o=t.current;switch(n){case RP.COLORED:const r=this.ctx;a.fillStyle=r.fillStyle,a.strokeStyle=r.strokeStyle,o.fillColor=r.fillStyle,o.strokeColor=r.strokeStyle;break;case RP.UNCOLORED:const i=zt.makeHexColor(s[0],s[1],s[2]);a.fillStyle=i,a.strokeStyle=i,o.fillColor=i,o.strokeColor=i;break;default:throw new Z1e(`Unsupported paint type: ${n}`)}}getPattern(t,n,s,a){let o=s;a!==ya.SHADING&&(o=zt.transform(o,n.baseTransform),this.matrix&&(o=zt.transform(o,this.matrix)));const r=this.createPatternCanvas(n);let i=new DOMMatrix(o);i=i.translate(r.offsetX,r.offsetY),i=i.scale(1/r.scaleX,1/r.scaleY);const l=t.createPattern(r.canvas,"repeat");return l.setTransform(i),l}};Ut(Mb,"MAX_PATTERN_SIZE",3e3);let gw=Mb;function Abe({src:e,srcPos:t=0,dest:n,width:s,height:a,nonBlackColor:o=4294967295,inverseDecode:r=!1}){const i=Na.isLittleEndian?4278190080:255,[l,c]=r?[o,i]:[i,o],u=s>>3,f=s&7,h=e.length;n=new Uint32Array(n.buffer);let p=0;for(let v=0;v<a;v++){for(const g=t+u;t<g;t++){const b=t<h?e[t]:255;n[p++]=b&128?c:l,n[p++]=b&64?c:l,n[p++]=b&32?c:l,n[p++]=b&16?c:l,n[p++]=b&8?c:l,n[p++]=b&4?c:l,n[p++]=b&2?c:l,n[p++]=b&1?c:l}if(f===0)continue;const m=t<h?e[t++]:255;for(let g=0;g<f;g++)n[p++]=m&1<<7-g?c:l}return{srcPos:t,destPos:p}}const IP=16,OP=100,Tbe=15,LP=10,NP=1e3,eo=16;function Mbe(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(s,a){t.translate(s,a),this.__originalTranslate(s,a)},e.scale=function(s,a){t.scale(s,a),this.__originalScale(s,a)},e.transform=function(s,a,o,r,i,l){t.transform(s,a,o,r,i,l),this.__originalTransform(s,a,o,r,i,l)},e.setTransform=function(s,a,o,r,i,l){t.setTransform(s,a,o,r,i,l),this.__originalSetTransform(s,a,o,r,i,l)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(s){t.rotate(s),this.__originalRotate(s)},e.clip=function(s){t.clip(s),this.__originalClip(s)},e.moveTo=function(n,s){t.moveTo(n,s),this.__originalMoveTo(n,s)},e.lineTo=function(n,s){t.lineTo(n,s),this.__originalLineTo(n,s)},e.bezierCurveTo=function(n,s,a,o,r,i){t.bezierCurveTo(n,s,a,o,r,i),this.__originalBezierCurveTo(n,s,a,o,r,i)},e.rect=function(n,s,a,o){t.rect(n,s,a,o),this.__originalRect(n,s,a,o)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}class Pbe{constructor(t){this.canvasFactory=t,this.cache=Object.create(null)}getCanvas(t,n,s){let a;return this.cache[t]!==void 0?(a=this.cache[t],this.canvasFactory.reset(a,n,s)):(a=this.canvasFactory.create(n,s),this.cache[t]=a),a}delete(t){delete this.cache[t]}clear(){for(const t in this.cache){const n=this.cache[t];this.canvasFactory.destroy(n),delete this.cache[t]}}}function fb(e,t,n,s,a,o,r,i,l,c){const[u,f,h,p,v,m]=as(e);if(f===0&&h===0){const C=r*u+v,w=Math.round(C),_=i*p+m,x=Math.round(_),k=(r+l)*u+v,T=Math.abs(Math.round(k)-w)||1,R=(i+c)*p+m,I=Math.abs(Math.round(R)-x)||1;return e.setTransform(Math.sign(u),0,0,Math.sign(p),w,x),e.drawImage(t,n,s,a,o,0,0,T,I),e.setTransform(u,f,h,p,v,m),[T,I]}if(u===0&&p===0){const C=i*h+v,w=Math.round(C),_=r*f+m,x=Math.round(_),k=(i+c)*h+v,T=Math.abs(Math.round(k)-w)||1,R=(r+l)*f+m,I=Math.abs(Math.round(R)-x)||1;return e.setTransform(0,Math.sign(f),Math.sign(h),0,w,x),e.drawImage(t,n,s,a,o,0,0,I,T),e.setTransform(u,f,h,p,v,m),[I,T]}e.drawImage(t,n,s,a,o,r,i,l,c);const g=Math.hypot(u,f),b=Math.hypot(h,p);return[g*l,b*c]}function Rbe(e){const{width:t,height:n}=e;if(t>NP||n>NP)return null;const s=1e3,a=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),o=t+1;let r=new Uint8Array(o*(n+1)),i,l,c;const u=t+7&-8;let f=new Uint8Array(u*n),h=0;for(const b of e.data){let C=128;for(;C>0;)f[h++]=b&C?0:255,C>>=1}let p=0;for(h=0,f[h]!==0&&(r[0]=1,++p),l=1;l<t;l++)f[h]!==f[h+1]&&(r[l]=f[h]?2:1,++p),h++;for(f[h]!==0&&(r[l]=2,++p),i=1;i<n;i++){h=i*u,c=i*o,f[h-u]!==f[h]&&(r[c]=f[h]?1:8,++p);let b=(f[h]?4:0)+(f[h-u]?8:0);for(l=1;l<t;l++)b=(b>>2)+(f[h+1]?4:0)+(f[h-u+1]?8:0),a[b]&&(r[c+l]=a[b],++p),h++;if(f[h-u]!==f[h]&&(r[c+l]=f[h]?2:4,++p),p>s)return null}for(h=u*(n-1),c=i*o,f[h]!==0&&(r[c]=8,++p),l=1;l<t;l++)f[h]!==f[h+1]&&(r[c+l]=f[h]?4:8,++p),h++;if(f[h]!==0&&(r[c+l]=4,++p),p>s)return null;const v=new Int32Array([0,o,-1,0,-o,0,0,0,1]),m=new Path2D;for(i=0;p&&i<=n;i++){let b=i*o;const C=b+t;for(;b<C&&!r[b];)b++;if(b===C)continue;m.moveTo(b%o,i);const w=b;let _=r[b];do{const x=v[_];do b+=x;while(!r[b]);const k=r[b];k!==5&&k!==10?(_=k,r[b]=0):(_=k&51*_>>4,r[b]&=_>>2|_<<2),m.lineTo(b%o,b/o|0),r[b]||--p}while(w!==b);--i}return f=null,r=null,function(b){b.save(),b.scale(1/t,-1/n),b.translate(0,-n),b.fill(m),b.beginPath(),b.restore()}}class $P{constructor(t,n){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=vP,this.textMatrixScale=1,this.fontMatrix=X8,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=ba.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.patternStroke=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,t,n])}clone(){const t=Object.create(this);return t.clipBox=this.clipBox.slice(),t}setCurrentPoint(t,n){this.x=t,this.y=n}updatePathMinMax(t,n,s){[n,s]=zt.applyTransform([n,s],t),this.minX=Math.min(this.minX,n),this.minY=Math.min(this.minY,s),this.maxX=Math.max(this.maxX,n),this.maxY=Math.max(this.maxY,s)}updateRectMinMax(t,n){const s=zt.applyTransform(n,t),a=zt.applyTransform(n.slice(2),t),o=zt.applyTransform([n[0],n[3]],t),r=zt.applyTransform([n[2],n[1]],t);this.minX=Math.min(this.minX,s[0],a[0],o[0],r[0]),this.minY=Math.min(this.minY,s[1],a[1],o[1],r[1]),this.maxX=Math.max(this.maxX,s[0],a[0],o[0],r[0]),this.maxY=Math.max(this.maxY,s[1],a[1],o[1],r[1])}updateScalingPathMinMax(t,n){zt.scaleMinMax(t,n),this.minX=Math.min(this.minX,n[0]),this.minY=Math.min(this.minY,n[1]),this.maxX=Math.max(this.maxX,n[2]),this.maxY=Math.max(this.maxY,n[3])}updateCurvePathMinMax(t,n,s,a,o,r,i,l,c,u){const f=zt.bezierBoundingBox(n,s,a,o,r,i,l,c,u);u||this.updateRectMinMax(t,f)}getPathBoundingBox(t=ya.FILL,n=null){const s=[this.minX,this.minY,this.maxX,this.maxY];if(t===ya.STROKE){n||Un("Stroke bounding box must include transform.");const a=zt.singularValueDecompose2dScale(n),o=a[0]*this.lineWidth/2,r=a[1]*this.lineWidth/2;s[0]-=o,s[1]-=r,s[2]+=o,s[3]+=r}return s}updateClipFromPath(){const t=zt.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(t||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(t){this.clipBox=t,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(t=ya.FILL,n=null){return zt.intersect(this.clipBox,this.getPathBoundingBox(t,n))}}function DP(e,t){if(t instanceof ImageData){e.putImageData(t,0,0);return}const n=t.height,s=t.width,a=n%eo,o=(n-a)/eo,r=a===0?o:o+1,i=e.createImageData(s,eo);let l=0,c;const u=t.data,f=i.data;let h,p,v,m;if(t.kind===eb.GRAYSCALE_1BPP){const g=u.byteLength,b=new Uint32Array(f.buffer,0,f.byteLength>>2),C=b.length,w=s+7>>3,_=4294967295,x=Na.isLittleEndian?4278190080:255;for(h=0;h<r;h++){for(v=h<o?eo:a,c=0,p=0;p<v;p++){const k=g-l;let T=0;const R=k>w?s:k*8-7,I=R&-8;let P=0,$=0;for(;T<I;T+=8)$=u[l++],b[c++]=$&128?_:x,b[c++]=$&64?_:x,b[c++]=$&32?_:x,b[c++]=$&16?_:x,b[c++]=$&8?_:x,b[c++]=$&4?_:x,b[c++]=$&2?_:x,b[c++]=$&1?_:x;for(;T<R;T++)P===0&&($=u[l++],P=128),b[c++]=$&P?_:x,P>>=1}for(;c<C;)b[c++]=0;e.putImageData(i,0,h*eo)}}else if(t.kind===eb.RGBA_32BPP){for(p=0,m=s*eo*4,h=0;h<o;h++)f.set(u.subarray(l,l+m)),l+=m,e.putImageData(i,0,p),p+=eo;h<r&&(m=s*a*4,f.set(u.subarray(l,l+m)),e.putImageData(i,0,p))}else if(t.kind===eb.RGB_24BPP)for(v=eo,m=s*v,h=0;h<r;h++){for(h>=o&&(v=a,m=s*v),c=0,p=m;p--;)f[c++]=u[l++],f[c++]=u[l++],f[c++]=u[l++],f[c++]=255;e.putImageData(i,0,h*eo)}else throw new Error(`bad image kind: ${t.kind}`)}function FP(e,t){if(t.bitmap){e.drawImage(t.bitmap,0,0);return}const n=t.height,s=t.width,a=n%eo,o=(n-a)/eo,r=a===0?o:o+1,i=e.createImageData(s,eo);let l=0;const c=t.data,u=i.data;for(let f=0;f<r;f++){const h=f<o?eo:a;({srcPos:l}=Abe({src:c,srcPos:l,dest:u,width:s,height:h,nonBlackColor:0})),e.putImageData(i,0,f*eo)}}function Mv(e,t){const n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const s of n)e[s]!==void 0&&(t[s]=e[s]);e.setLineDash!==void 0&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function hb(e){if(e.strokeStyle=e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",e.setLineDash!==void 0&&(e.setLineDash([]),e.lineDashOffset=0),!ga){const{filter:t}=e;t!=="none"&&t!==""&&(e.filter="none")}}function BP(e,t){if(t)return!0;const n=zt.singularValueDecompose2dScale(e);n[0]=Math.fround(n[0]),n[1]=Math.fround(n[1]);const s=Math.fround((globalThis.devicePixelRatio||1)*xc.PDF_TO_CSS_UNITS);return n[0]<=s&&n[1]<=s}const Ibe=["butt","round","square"],Obe=["miter","round","bevel"],Lbe={},VP={},$w=class $w{constructor(t,n,s,a,o,{optionalContentConfig:r,markedContentStack:i=null},l,c){ne(this,Or);this.ctx=t,this.current=new $P(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=n,this.objs=s,this.canvasFactory=a,this.filterFactory=o,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=i||[],this.optionalContentConfig=r,this.cachedCanvases=new Pbe(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=l,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=c,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(t,n=null){return typeof t=="string"?t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t):n}beginDrawing({transform:t,viewport:n,transparency:s=!1,background:a=null}){const o=this.ctx.canvas.width,r=this.ctx.canvas.height,i=this.ctx.fillStyle;if(this.ctx.fillStyle=a||"#ffffff",this.ctx.fillRect(0,0,o,r),this.ctx.fillStyle=i,s){const l=this.cachedCanvases.getCanvas("transparent",o,r);this.compositeCtx=this.ctx,this.transparentCanvas=l.canvas,this.ctx=l.context,this.ctx.save(),this.ctx.transform(...as(this.compositeCtx))}this.ctx.save(),hb(this.ctx),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...n.transform),this.viewportScale=n.scale,this.baseTransform=as(this.ctx)}executeOperatorList(t,n,s,a){const o=t.argsArray,r=t.fnArray;let i=n||0;const l=o.length;if(l===i)return i;const c=l-i>LP&&typeof s=="function",u=c?Date.now()+Tbe:0;let f=0;const h=this.commonObjs,p=this.objs;let v;for(;;){if(a!==void 0&&i===a.nextBreakPoint)return a.breakIt(i,s),i;if(v=r[i],v!==Er.dependency)this[v].apply(this,o[i]);else for(const m of o[i]){const g=m.startsWith("g_")?h:p;if(!g.has(m))return g.get(m,s),i}if(i++,i===l)return i;if(c&&++f>LP){if(Date.now()>u)return s(),i;f=0}}}endDrawing(){oe(this,Or,r_).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const t of this._cachedBitmapsMap.values()){for(const n of t.values())typeof HTMLCanvasElement<"u"&&n instanceof HTMLCanvasElement&&(n.width=n.height=0);t.clear()}this._cachedBitmapsMap.clear(),oe(this,Or,i_).call(this)}_scaleImage(t,n){const s=t.width??t.displayWidth,a=t.height??t.displayHeight;let o=Math.max(Math.hypot(n[0],n[1]),1),r=Math.max(Math.hypot(n[2],n[3]),1),i=s,l=a,c="prescale1",u,f;for(;o>2&&i>1||r>2&&l>1;){let h=i,p=l;o>2&&i>1&&(h=i>=16384?Math.floor(i/2)-1||1:Math.ceil(i/2),o/=i/h),r>2&&l>1&&(p=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l)/2,r/=l/p),u=this.cachedCanvases.getCanvas(c,h,p),f=u.context,f.clearRect(0,0,h,p),f.drawImage(t,0,0,i,l,0,0,h,p),t=u.canvas,i=h,l=p,c=c==="prescale1"?"prescale2":"prescale1"}return{img:t,paintWidth:i,paintHeight:l}}_createMaskCanvas(t){const n=this.ctx,{width:s,height:a}=t,o=this.current.fillColor,r=this.current.patternFill,i=as(n);let l,c,u,f;if((t.bitmap||t.data)&&t.count>1){const R=t.bitmap||t.data.buffer;c=JSON.stringify(r?i:[i.slice(0,4),o]),l=this._cachedBitmapsMap.get(R),l||(l=new Map,this._cachedBitmapsMap.set(R,l));const I=l.get(c);if(I&&!r){const P=Math.round(Math.min(i[0],i[2])+i[4]),$=Math.round(Math.min(i[1],i[3])+i[5]);return{canvas:I,offsetX:P,offsetY:$}}u=I}u||(f=this.cachedCanvases.getCanvas("maskCanvas",s,a),FP(f.context,t));let h=zt.transform(i,[1/s,0,0,-1/a,0,0]);h=zt.transform(h,[1,0,0,1,0,-a]);const[p,v,m,g]=zt.getAxialAlignedBoundingBox([0,0,s,a],h),b=Math.round(m-p)||1,C=Math.round(g-v)||1,w=this.cachedCanvases.getCanvas("fillCanvas",b,C),_=w.context,x=p,k=v;_.translate(-x,-k),_.transform(...h),u||(u=this._scaleImage(f.canvas,pi(_)),u=u.img,l&&r&&l.set(c,u)),_.imageSmoothingEnabled=BP(as(_),t.interpolate),fb(_,u,0,0,u.width,u.height,0,0,s,a),_.globalCompositeOperation="source-in";const T=zt.transform(pi(_),[1,0,0,1,-x,-k]);return _.fillStyle=r?o.getPattern(n,this,T,ya.FILL):o,_.fillRect(0,0,s,a),l&&!r&&(this.cachedCanvases.delete("fillCanvas"),l.set(c,w.canvas)),{canvas:w.canvas,offsetX:Math.round(x),offsetY:Math.round(k)}}setLineWidth(t){t!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=t,this.ctx.lineWidth=t}setLineCap(t){this.ctx.lineCap=Ibe[t]}setLineJoin(t){this.ctx.lineJoin=Obe[t]}setMiterLimit(t){this.ctx.miterLimit=t}setDash(t,n){const s=this.ctx;s.setLineDash!==void 0&&(s.setLineDash(t),s.lineDashOffset=n)}setRenderingIntent(t){}setFlatness(t){}setGState(t){for(const[n,s]of t)switch(n){case"LW":this.setLineWidth(s);break;case"LC":this.setLineCap(s);break;case"LJ":this.setLineJoin(s);break;case"ML":this.setMiterLimit(s);break;case"D":this.setDash(s[0],s[1]);break;case"RI":this.setRenderingIntent(s);break;case"FL":this.setFlatness(s);break;case"Font":this.setFont(s[0],s[1]);break;case"CA":this.current.strokeAlpha=s;break;case"ca":this.current.fillAlpha=s,this.ctx.globalAlpha=s;break;case"BM":this.ctx.globalCompositeOperation=s;break;case"SMask":this.current.activeSMask=s?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(s);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const t=this.inSMaskMode;this.current.activeSMask&&!t?this.beginSMaskMode():!this.current.activeSMask&&t&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const t=this.ctx.canvas.width,n=this.ctx.canvas.height,s="smaskGroupAt"+this.groupLevel,a=this.cachedCanvases.getCanvas(s,t,n);this.suspendedCtx=this.ctx,this.ctx=a.context;const o=this.ctx;o.setTransform(...as(this.suspendedCtx)),Mv(this.suspendedCtx,o),Mbe(o,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),Mv(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(t){if(!this.current.activeSMask)return;t?(t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.ceil(t[2]),t[3]=Math.ceil(t[3])):t=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const n=this.current.activeSMask,s=this.suspendedCtx;this.composeSMask(s,n,this.ctx,t),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(t,n,s,a){const o=a[0],r=a[1],i=a[2]-o,l=a[3]-r;i===0||l===0||(this.genericComposeSMask(n.context,s,i,l,n.subtype,n.backdrop,n.transferMap,o,r,n.offsetX,n.offsetY),t.save(),t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),t.drawImage(s.canvas,0,0),t.restore())}genericComposeSMask(t,n,s,a,o,r,i,l,c,u,f){let h=t.canvas,p=l-u,v=c-f;if(r){const g=zt.makeHexColor(...r);if(p<0||v<0||p+s>h.width||v+a>h.height){const b=this.cachedCanvases.getCanvas("maskExtension",s,a),C=b.context;C.drawImage(h,-p,-v),C.globalCompositeOperation="destination-atop",C.fillStyle=g,C.fillRect(0,0,s,a),C.globalCompositeOperation="source-over",h=b.canvas,p=v=0}else{t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0);const b=new Path2D;b.rect(p,v,s,a),t.clip(b),t.globalCompositeOperation="destination-atop",t.fillStyle=g,t.fillRect(p,v,s,a),t.restore()}}n.save(),n.globalAlpha=1,n.setTransform(1,0,0,1,0,0),o==="Alpha"&&i?n.filter=this.filterFactory.addAlphaFilter(i):o==="Luminosity"&&(n.filter=this.filterFactory.addLuminosityFilter(i));const m=new Path2D;m.rect(l,c,s,a),n.clip(m),n.globalCompositeOperation="destination-in",n.drawImage(h,p,v,s,a,l,c,s,a),n.restore()}save(){this.inSMaskMode?(Mv(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const t=this.current;this.stateStack.push(t),this.current=t.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),Mv(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(t,n,s,a,o,r){this.ctx.transform(t,n,s,a,o,r),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(t,n,s){const a=this.ctx,o=this.current;let r=o.x,i=o.y,l,c;const u=as(a),f=u[0]===0&&u[3]===0||u[1]===0&&u[2]===0,h=f?s.slice(0):null;for(let p=0,v=0,m=t.length;p<m;p++)switch(t[p]|0){case Er.rectangle:r=n[v++],i=n[v++];const g=n[v++],b=n[v++],C=r+g,w=i+b;a.moveTo(r,i),g===0||b===0?a.lineTo(C,w):(a.lineTo(C,i),a.lineTo(C,w),a.lineTo(r,w)),f||o.updateRectMinMax(u,[r,i,C,w]),a.closePath();break;case Er.moveTo:r=n[v++],i=n[v++],a.moveTo(r,i),f||o.updatePathMinMax(u,r,i);break;case Er.lineTo:r=n[v++],i=n[v++],a.lineTo(r,i),f||o.updatePathMinMax(u,r,i);break;case Er.curveTo:l=r,c=i,r=n[v+4],i=n[v+5],a.bezierCurveTo(n[v],n[v+1],n[v+2],n[v+3],r,i),o.updateCurvePathMinMax(u,l,c,n[v],n[v+1],n[v+2],n[v+3],r,i,h),v+=6;break;case Er.curveTo2:l=r,c=i,a.bezierCurveTo(r,i,n[v],n[v+1],n[v+2],n[v+3]),o.updateCurvePathMinMax(u,l,c,r,i,n[v],n[v+1],n[v+2],n[v+3],h),r=n[v+2],i=n[v+3],v+=4;break;case Er.curveTo3:l=r,c=i,r=n[v+2],i=n[v+3],a.bezierCurveTo(n[v],n[v+1],r,i,r,i),o.updateCurvePathMinMax(u,l,c,n[v],n[v+1],r,i,r,i,h),v+=4;break;case Er.closePath:a.closePath();break}f&&o.updateScalingPathMinMax(u,h),o.setCurrentPoint(r,i)}closePath(){this.ctx.closePath()}stroke(t=!0){const n=this.ctx,s=this.current.strokeColor;n.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof s=="object"&&(s!=null&&s.getPattern)?(n.save(),n.strokeStyle=s.getPattern(n,this,pi(n),ya.STROKE),this.rescaleAndStroke(!1),n.restore()):this.rescaleAndStroke(!0)),t&&this.consumePath(this.current.getClippedPathBoundingBox()),n.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(t=!0){const n=this.ctx,s=this.current.fillColor,a=this.current.patternFill;let o=!1;a&&(n.save(),n.fillStyle=s.getPattern(n,this,pi(n),ya.FILL),o=!0);const r=this.current.getClippedPathBoundingBox();this.contentVisible&&r!==null&&(this.pendingEOFill?(n.fill("evenodd"),this.pendingEOFill=!1):n.fill()),o&&n.restore(),t&&this.consumePath(r)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=Lbe}eoClip(){this.pendingClip=VP}beginText(){this.current.textMatrix=vP,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const t=this.pendingTextPaths,n=this.ctx;if(t===void 0){n.beginPath();return}const s=new Path2D,a=n.getTransform().invertSelf();for(const{transform:o,x:r,y:i,fontSize:l,path:c}of t)s.addPath(c,new DOMMatrix(o).preMultiplySelf(a).translate(r,i).scale(l,-l));n.clip(s),n.beginPath(),delete this.pendingTextPaths}setCharSpacing(t){this.current.charSpacing=t}setWordSpacing(t){this.current.wordSpacing=t}setHScale(t){this.current.textHScale=t/100}setLeading(t){this.current.leading=-t}setFont(t,n){var u;const s=this.commonObjs.get(t),a=this.current;if(!s)throw new Error(`Can't find font for ${t}`);if(a.fontMatrix=s.fontMatrix||X8,(a.fontMatrix[0]===0||a.fontMatrix[3]===0)&&fn("Invalid font matrix for font "+t),n<0?(n=-n,a.fontDirection=-1):a.fontDirection=1,this.current.font=s,this.current.fontSize=n,s.isType3Font)return;const o=s.loadedName||"sans-serif",r=((u=s.systemFontInfo)==null?void 0:u.css)||`"${o}", ${s.fallbackName}`;let i="normal";s.black?i="900":s.bold&&(i="bold");const l=s.italic?"italic":"normal";let c=n;n<IP?c=IP:n>OP&&(c=OP),this.current.fontSizeScale=n/c,this.ctx.font=`${l} ${i} ${c}px ${r}`}setTextRenderingMode(t){this.current.textRenderingMode=t}setTextRise(t){this.current.textRise=t}moveText(t,n){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=n}setLeadingMoveText(t,n){this.setLeading(-n),this.moveText(t,n)}setTextMatrix(t,n,s,a,o,r){this.current.textMatrix=[t,n,s,a,o,r],this.current.textMatrixScale=Math.hypot(t,n),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(t,n,s,a,o){const r=this.ctx,i=this.current,l=i.font,c=i.textRenderingMode,u=i.fontSize/i.fontSizeScale,f=c&ba.FILL_STROKE_MASK,h=!!(c&ba.ADD_TO_PATH_FLAG),p=i.patternFill&&!l.missingFile,v=i.patternStroke&&!l.missingFile;let m;if((l.disableFontFace||h||p||v)&&(m=l.getPathGenerator(this.commonObjs,t)),l.disableFontFace||p||v){if(r.save(),r.translate(n,s),r.scale(u,-u),f===ba.FILL||f===ba.FILL_STROKE)if(a){const g=r.getTransform();r.setTransform(...a),r.fill(oe(this,Or,l_).call(this,m,g,a))}else r.fill(m);if(f===ba.STROKE||f===ba.FILL_STROKE)if(o){const g=r.getTransform();r.setTransform(...o),r.stroke(oe(this,Or,l_).call(this,m,g,o))}else r.lineWidth/=u,r.stroke(m);r.restore()}else(f===ba.FILL||f===ba.FILL_STROKE)&&r.fillText(t,n,s),(f===ba.STROKE||f===ba.FILL_STROKE)&&r.strokeText(t,n,s);h&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:as(r),x:n,y:s,fontSize:u,path:m})}get isFontSubpixelAAEnabled(){const{context:t}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);t.scale(1.5,1),t.fillText("I",0,10);const n=t.getImageData(0,0,10,10).data;let s=!1;for(let a=3;a<n.length;a+=4)if(n[a]>0&&n[a]<255){s=!0;break}return mn(this,"isFontSubpixelAAEnabled",s)}showText(t){const n=this.current,s=n.font;if(s.isType3Font)return this.showType3Text(t);const a=n.fontSize;if(a===0)return;const o=this.ctx,r=n.fontSizeScale,i=n.charSpacing,l=n.wordSpacing,c=n.fontDirection,u=n.textHScale*c,f=t.length,h=s.vertical,p=h?1:-1,v=s.defaultVMetrics,m=a*n.fontMatrix[0],g=n.textRenderingMode===ba.FILL&&!s.disableFontFace&&!n.patternFill;o.save(),o.transform(...n.textMatrix),o.translate(n.x,n.y+n.textRise),c>0?o.scale(u,-1):o.scale(u,1);let b,C;if(n.patternFill){o.save();const T=n.fillColor.getPattern(o,this,pi(o),ya.FILL);b=as(o),o.restore(),o.fillStyle=T}if(n.patternStroke){o.save();const T=n.strokeColor.getPattern(o,this,pi(o),ya.STROKE);C=as(o),o.restore(),o.strokeStyle=T}let w=n.lineWidth;const _=n.textMatrixScale;if(_===0||w===0){const T=n.textRenderingMode&ba.FILL_STROKE_MASK;(T===ba.STROKE||T===ba.FILL_STROKE)&&(w=this.getSinglePixelWidth())}else w/=_;if(r!==1&&(o.scale(r,r),w/=r),o.lineWidth=w,s.isInvalidPDFjsFont){const T=[];let R=0;for(const I of t)T.push(I.unicode),R+=I.width;o.fillText(T.join(""),0,0),n.x+=R*m*u,o.restore(),this.compose();return}let x=0,k;for(k=0;k<f;++k){const T=t[k];if(typeof T=="number"){x+=p*T*a/1e3;continue}let R=!1;const I=(T.isSpace?l:0)+i,P=T.fontChar,$=T.accent;let O,B,H=T.width;if(h){const Y=T.vmetric||v,N=-(T.vmetric?Y[1]:H*.5)*m,L=Y[2]*m;H=Y?-Y[0]:H,O=N/r,B=(x+L)/r}else O=x/r,B=0;if(s.remeasure&&H>0){const Y=o.measureText(P).width*1e3/a*r;if(H<Y&&this.isFontSubpixelAAEnabled){const N=H/Y;R=!0,o.save(),o.scale(N,1),O/=N}else H!==Y&&(O+=(H-Y)/2e3*a/r)}if(this.contentVisible&&(T.isInFont||s.missingFile)){if(g&&!$)o.fillText(P,O,B);else if(this.paintChar(P,O,B,b,C),$){const Y=O+a*$.offset.x/r,N=B-a*$.offset.y/r;this.paintChar($.fontChar,Y,N,b,C)}}const J=h?H*m-I*c:H*m+I*c;x+=J,R&&o.restore()}h?n.y-=x:n.x+=x*u,o.restore(),this.compose()}showType3Text(t){const n=this.ctx,s=this.current,a=s.font,o=s.fontSize,r=s.fontDirection,i=a.vertical?1:-1,l=s.charSpacing,c=s.wordSpacing,u=s.textHScale*r,f=s.fontMatrix||X8,h=t.length,p=s.textRenderingMode===ba.INVISIBLE;let v,m,g,b;if(!(p||o===0)){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,n.save(),n.transform(...s.textMatrix),n.translate(s.x,s.y),n.scale(u,r),v=0;v<h;++v){if(m=t[v],typeof m=="number"){b=i*m*o/1e3,this.ctx.translate(b,0),s.x+=b*u;continue}const C=(m.isSpace?c:0)+l,w=a.charProcOperatorList[m.operatorListId];if(!w){fn(`Type3 character "${m.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=m,this.save(),n.scale(o,o),n.transform(...f),this.executeOperatorList(w),this.restore()),g=zt.applyTransform([m.width,0],f)[0]*o+C,n.translate(g,0),s.x+=g*u}n.restore(),this.processingType3=null}}setCharWidth(t,n){}setCharWidthAndBounds(t,n,s,a,o,r){this.ctx.rect(s,a,o-s,r-a),this.ctx.clip(),this.endPath()}getColorN_Pattern(t){let n;if(t[0]==="TilingPattern"){const s=t[1],a=this.baseTransform||as(this.ctx),o={createCanvasGraphics:r=>new $w(r,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};n=new gw(t,s,this.ctx,o,a)}else n=this._getPattern(t[1],t[2]);return n}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments),this.current.patternStroke=!0}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(t,n,s){this.ctx.strokeStyle=this.current.strokeColor=zt.makeHexColor(t,n,s),this.current.patternStroke=!1}setStrokeTransparent(){this.ctx.strokeStyle=this.current.strokeColor="transparent",this.current.patternStroke=!1}setFillRGBColor(t,n,s){this.ctx.fillStyle=this.current.fillColor=zt.makeHexColor(t,n,s),this.current.patternFill=!1}setFillTransparent(){this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1}_getPattern(t,n=null){let s;return this.cachedPatterns.has(t)?s=this.cachedPatterns.get(t):(s=Ebe(this.getObject(t)),this.cachedPatterns.set(t,s)),n&&(s.matrix=n),s}shadingFill(t){if(!this.contentVisible)return;const n=this.ctx;this.save();const s=this._getPattern(t);n.fillStyle=s.getPattern(n,this,pi(n),ya.SHADING);const a=pi(n);if(a){const{width:o,height:r}=n.canvas,[i,l,c,u]=zt.getAxialAlignedBoundingBox([0,0,o,r],a);this.ctx.fillRect(i,l,c-i,u-l)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){Un("Should not call beginInlineImage")}beginImageData(){Un("Should not call beginImageData")}paintFormXObjectBegin(t,n){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),t&&this.transform(...t),this.baseTransform=as(this.ctx),n)){const s=n[2]-n[0],a=n[3]-n[1];this.ctx.rect(n[0],n[1],s,a),this.current.updateRectMinMax(as(this.ctx),n),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(t){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const n=this.ctx;t.isolated||sb("TODO: Support non-isolated groups."),t.knockout&&fn("Knockout groups not supported.");const s=as(n);if(t.matrix&&n.transform(...t.matrix),!t.bbox)throw new Error("Bounding box is required.");let a=zt.getAxialAlignedBoundingBox(t.bbox,as(n));const o=[0,0,n.canvas.width,n.canvas.height];a=zt.intersect(a,o)||[0,0,0,0];const r=Math.floor(a[0]),i=Math.floor(a[1]),l=Math.max(Math.ceil(a[2])-r,1),c=Math.max(Math.ceil(a[3])-i,1);this.current.startNewPathAndClipBox([0,0,l,c]);let u="groupAt"+this.groupLevel;t.smask&&(u+="_smask_"+this.smaskCounter++%2);const f=this.cachedCanvases.getCanvas(u,l,c),h=f.context;h.translate(-r,-i),h.transform(...s),t.smask?this.smaskStack.push({canvas:f.canvas,context:h,offsetX:r,offsetY:i,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(n.setTransform(1,0,0,1,0,0),n.translate(r,i),n.save()),Mv(n,h),this.ctx=h,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(n),this.groupLevel++}endGroup(t){if(!this.contentVisible)return;this.groupLevel--;const n=this.ctx,s=this.groupStack.pop();if(this.ctx=s,this.ctx.imageSmoothingEnabled=!1,t.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const a=as(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...a);const o=zt.getAxialAlignedBoundingBox([0,0,n.canvas.width,n.canvas.height],a);this.ctx.drawImage(n.canvas,0,0),this.ctx.restore(),this.compose(o)}}beginAnnotation(t,n,s,a,o){if(oe(this,Or,r_).call(this),hb(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),n){const r=n[2]-n[0],i=n[3]-n[1];if(o&&this.annotationCanvasMap){s=s.slice(),s[4]-=n[0],s[5]-=n[1],n=n.slice(),n[0]=n[1]=0,n[2]=r,n[3]=i;const[l,c]=zt.singularValueDecompose2dScale(as(this.ctx)),{viewportScale:u}=this,f=Math.ceil(r*this.outputScaleX*u),h=Math.ceil(i*this.outputScaleY*u);this.annotationCanvas=this.canvasFactory.create(f,h);const{canvas:p,context:v}=this.annotationCanvas;this.annotationCanvasMap.set(t,p),this.annotationCanvas.savedCtx=this.ctx,this.ctx=v,this.ctx.save(),this.ctx.setTransform(l,0,0,-c,0,i*c),hb(this.ctx)}else hb(this.ctx),this.endPath(),this.ctx.rect(n[0],n[1],r,i),this.ctx.clip(),this.ctx.beginPath()}this.current=new $P(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...s),this.transform(...a)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),oe(this,Or,i_).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(t){if(!this.contentVisible)return;const n=t.count;t=this.getObject(t.data,t),t.count=n;const s=this.ctx,a=this.processingType3;if(a&&(a.compiled===void 0&&(a.compiled=Rbe(t)),a.compiled)){a.compiled(s);return}const o=this._createMaskCanvas(t),r=o.canvas;s.save(),s.setTransform(1,0,0,1,0,0),s.drawImage(r,o.offsetX,o.offsetY),s.restore(),this.compose()}paintImageMaskXObjectRepeat(t,n,s=0,a=0,o,r){if(!this.contentVisible)return;t=this.getObject(t.data,t);const i=this.ctx;i.save();const l=as(i);i.transform(n,s,a,o,0,0);const c=this._createMaskCanvas(t);i.setTransform(1,0,0,1,c.offsetX-l[4],c.offsetY-l[5]);for(let u=0,f=r.length;u<f;u+=2){const h=zt.transform(l,[n,s,a,o,r[u],r[u+1]]),[p,v]=zt.applyTransform([0,0],h);i.drawImage(c.canvas,p,v)}i.restore(),this.compose()}paintImageMaskXObjectGroup(t){if(!this.contentVisible)return;const n=this.ctx,s=this.current.fillColor,a=this.current.patternFill;for(const o of t){const{data:r,width:i,height:l,transform:c}=o,u=this.cachedCanvases.getCanvas("maskCanvas",i,l),f=u.context;f.save();const h=this.getObject(r,o);FP(f,h),f.globalCompositeOperation="source-in",f.fillStyle=a?s.getPattern(f,this,pi(n),ya.FILL):s,f.fillRect(0,0,i,l),f.restore(),n.save(),n.transform(...c),n.scale(1,-1),fb(n,u.canvas,0,0,i,l,0,-1,1,1),n.restore()}this.compose()}paintImageXObject(t){if(!this.contentVisible)return;const n=this.getObject(t);if(!n){fn("Dependent image isn't ready yet");return}this.paintInlineImageXObject(n)}paintImageXObjectRepeat(t,n,s,a){if(!this.contentVisible)return;const o=this.getObject(t);if(!o){fn("Dependent image isn't ready yet");return}const r=o.width,i=o.height,l=[];for(let c=0,u=a.length;c<u;c+=2)l.push({transform:[n,0,0,s,a[c],a[c+1]],x:0,y:0,w:r,h:i});this.paintInlineImageXObjectGroup(o,l)}applyTransferMapsToCanvas(t){return this.current.transferMaps!=="none"&&(t.filter=this.current.transferMaps,t.drawImage(t.canvas,0,0),t.filter="none"),t.canvas}applyTransferMapsToBitmap(t){if(this.current.transferMaps==="none")return t.bitmap;const{bitmap:n,width:s,height:a}=t,o=this.cachedCanvases.getCanvas("inlineImage",s,a),r=o.context;return r.filter=this.current.transferMaps,r.drawImage(n,0,0),r.filter="none",o.canvas}paintInlineImageXObject(t){if(!this.contentVisible)return;const n=t.width,s=t.height,a=this.ctx;if(this.save(),!ga){const{filter:i}=a;i!=="none"&&i!==""&&(a.filter="none")}a.scale(1/n,-1/s);let o;if(t.bitmap)o=this.applyTransferMapsToBitmap(t);else if(typeof HTMLElement=="function"&&t instanceof HTMLElement||!t.data)o=t;else{const l=this.cachedCanvases.getCanvas("inlineImage",n,s).context;DP(l,t),o=this.applyTransferMapsToCanvas(l)}const r=this._scaleImage(o,pi(a));a.imageSmoothingEnabled=BP(as(a),t.interpolate),fb(a,r.img,0,0,r.paintWidth,r.paintHeight,0,-s,n,s),this.compose(),this.restore()}paintInlineImageXObjectGroup(t,n){if(!this.contentVisible)return;const s=this.ctx;let a;if(t.bitmap)a=t.bitmap;else{const o=t.width,r=t.height,l=this.cachedCanvases.getCanvas("inlineImage",o,r).context;DP(l,t),a=this.applyTransferMapsToCanvas(l)}for(const o of n)s.save(),s.transform(...o.transform),s.scale(1,-1),fb(s,a,o.x,o.y,o.w,o.h,0,-1,1,1),s.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(t){}markPointProps(t,n){}beginMarkedContent(t){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(t,n){t==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(n)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(t){const n=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(t);const s=this.ctx;this.pendingClip&&(n||(this.pendingClip===VP?s.clip("evenodd"):s.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),s.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const t=as(this.ctx);if(t[1]===0&&t[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(t[0]),Math.abs(t[3]));else{const n=Math.abs(t[0]*t[3]-t[2]*t[1]),s=Math.hypot(t[0],t[2]),a=Math.hypot(t[1],t[3]);this._cachedGetSinglePixelWidth=Math.max(s,a)/n}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:t}=this.current,{a:n,b:s,c:a,d:o}=this.ctx.getTransform();let r,i;if(s===0&&a===0){const l=Math.abs(n),c=Math.abs(o);if(l===c)if(t===0)r=i=1/l;else{const u=l*t;r=i=u<1?1/u:1}else if(t===0)r=1/l,i=1/c;else{const u=l*t,f=c*t;r=u<1?1/u:1,i=f<1?1/f:1}}else{const l=Math.abs(n*o-s*a),c=Math.hypot(n,s),u=Math.hypot(a,o);if(t===0)r=u/l,i=c/l;else{const f=t*l;r=u>f?u/f:1,i=c>f?c/f:1}}this._cachedScaleForStroking[0]=r,this._cachedScaleForStroking[1]=i}return this._cachedScaleForStroking}rescaleAndStroke(t){const{ctx:n}=this,{lineWidth:s}=this.current,[a,o]=this.getScaleForStroking();if(n.lineWidth=s||1,a===1&&o===1){n.stroke();return}const r=n.getLineDash();if(t&&n.save(),n.scale(a,o),r.length>0){const i=Math.max(a,o);n.setLineDash(r.map(l=>l/i)),n.lineDashOffset/=i}n.stroke(),t&&n.restore()}isContentVisible(){for(let t=this.markedContentStack.length-1;t>=0;t--)if(!this.markedContentStack[t].visible)return!1;return!0}};Or=new WeakSet,r_=function(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)},i_=function(){if(this.pageColors){const t=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(t!=="none"){const n=this.ctx.filter;this.ctx.filter=t,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=n}}},l_=function(t,n,s){const a=new Path2D;return a.addPath(t,new DOMMatrix(s).invertSelf().multiplySelf(n)),a};let ph=$w;for(const e in Er)ph.prototype[e]!==void 0&&(ph.prototype[Er[e]]=ph.prototype[e]);class hl{static get workerPort(){return y(this,cm)}static set workerPort(t){if(!(typeof Worker<"u"&&t instanceof Worker)&&t!==null)throw new Error("Invalid `workerPort` type.");q(this,cm,t)}static get workerSrc(){return y(this,um)}static set workerSrc(t){if(typeof t!="string")throw new Error("Invalid `workerSrc` type.");q(this,um,t)}}cm=new WeakMap,um=new WeakMap,ne(hl,cm,null),ne(hl,um,"");class Nbe{constructor({parsedData:t,rawData:n}){ne(this,yd);ne(this,dm);q(this,yd,t),q(this,dm,n)}getRaw(){return y(this,dm)}get(t){return y(this,yd).get(t)??null}getAll(){return ew(y(this,yd))}has(t){return y(this,yd).has(t)}}yd=new WeakMap,dm=new WeakMap;const vh=Symbol("INTERNAL");class $be{constructor(t,{name:n,intent:s,usage:a,rbGroups:o}){ne(this,fm,!1);ne(this,hm,!1);ne(this,pm,!1);ne(this,Nh,!0);q(this,fm,!!(t&bo.DISPLAY)),q(this,hm,!!(t&bo.PRINT)),this.name=n,this.intent=s,this.usage=a,this.rbGroups=o}get visible(){if(y(this,pm))return y(this,Nh);if(!y(this,Nh))return!1;const{print:t,view:n}=this.usage;return y(this,fm)?(n==null?void 0:n.viewState)!=="OFF":y(this,hm)?(t==null?void 0:t.printState)!=="OFF":!0}_setVisible(t,n,s=!1){t!==vh&&Un("Internal method `_setVisible` called."),q(this,pm,s),q(this,Nh,n)}}fm=new WeakMap,hm=new WeakMap,pm=new WeakMap,Nh=new WeakMap;class Dbe{constructor(t,n=bo.DISPLAY){ne(this,vm);ne(this,Bc,null);ne(this,Bn,new Map);ne(this,$h,null);ne(this,Dh,null);if(this.renderingIntent=n,this.name=null,this.creator=null,t!==null){this.name=t.name,this.creator=t.creator,q(this,Dh,t.order);for(const s of t.groups)y(this,Bn).set(s.id,new $be(n,s));if(t.baseState==="OFF")for(const s of y(this,Bn).values())s._setVisible(vh,!1);for(const s of t.on)y(this,Bn).get(s)._setVisible(vh,!0);for(const s of t.off)y(this,Bn).get(s)._setVisible(vh,!1);q(this,$h,this.getHash())}}isVisible(t){if(y(this,Bn).size===0)return!0;if(!t)return sb("Optional content group not defined."),!0;if(t.type==="OCG")return y(this,Bn).has(t.id)?y(this,Bn).get(t.id).visible:(fn(`Optional content group not found: ${t.id}`),!0);if(t.type==="OCMD"){if(t.expression)return oe(this,vm,c_).call(this,t.expression);if(!t.policy||t.policy==="AnyOn"){for(const n of t.ids){if(!y(this,Bn).has(n))return fn(`Optional content group not found: ${n}`),!0;if(y(this,Bn).get(n).visible)return!0}return!1}else if(t.policy==="AllOn"){for(const n of t.ids){if(!y(this,Bn).has(n))return fn(`Optional content group not found: ${n}`),!0;if(!y(this,Bn).get(n).visible)return!1}return!0}else if(t.policy==="AnyOff"){for(const n of t.ids){if(!y(this,Bn).has(n))return fn(`Optional content group not found: ${n}`),!0;if(!y(this,Bn).get(n).visible)return!0}return!1}else if(t.policy==="AllOff"){for(const n of t.ids){if(!y(this,Bn).has(n))return fn(`Optional content group not found: ${n}`),!0;if(y(this,Bn).get(n).visible)return!1}return!0}return fn(`Unknown optional content policy ${t.policy}.`),!0}return fn(`Unknown group type ${t.type}.`),!0}setVisibility(t,n=!0,s=!0){var o;const a=y(this,Bn).get(t);if(!a){fn(`Optional content group not found: ${t}`);return}if(s&&n&&a.rbGroups.length)for(const r of a.rbGroups)for(const i of r)i!==t&&((o=y(this,Bn).get(i))==null||o._setVisible(vh,!1,!0));a._setVisible(vh,!!n,!0),q(this,Bc,null)}setOCGState({state:t,preserveRB:n}){let s;for(const a of t){switch(a){case"ON":case"OFF":case"Toggle":s=a;continue}const o=y(this,Bn).get(a);if(o)switch(s){case"ON":this.setVisibility(a,!0,n);break;case"OFF":this.setVisibility(a,!1,n);break;case"Toggle":this.setVisibility(a,!o.visible,n);break}}q(this,Bc,null)}get hasInitialVisibility(){return y(this,$h)===null||this.getHash()===y(this,$h)}getOrder(){return y(this,Bn).size?y(this,Dh)?y(this,Dh).slice():[...y(this,Bn).keys()]:null}getGroups(){return y(this,Bn).size>0?ew(y(this,Bn)):null}getGroup(t){return y(this,Bn).get(t)||null}getHash(){if(y(this,Bc)!==null)return y(this,Bc);const t=new _P;for(const[n,s]of y(this,Bn))t.update(`${n}:${s.visible}`);return q(this,Bc,t.hexdigest())}}Bc=new WeakMap,Bn=new WeakMap,$h=new WeakMap,Dh=new WeakMap,vm=new WeakSet,c_=function(t){const n=t.length;if(n<2)return!0;const s=t[0];for(let a=1;a<n;a++){const o=t[a];let r;if(Array.isArray(o))r=oe(this,vm,c_).call(this,o);else if(y(this,Bn).has(o))r=y(this,Bn).get(o).visible;else return fn(`Optional content group not found: ${o}`),!0;switch(s){case"And":if(!r)return!1;break;case"Or":if(r)return!0;break;case"Not":return!r;default:return!0}}return s==="And"};class Fbe{constructor(t,{disableRange:n=!1,disableStream:s=!1}){ks(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:a,initialData:o,progressiveDone:r,contentDispositionFilename:i}=t;if(this._queuedChunks=[],this._progressiveDone=r,this._contentDispositionFilename=i,(o==null?void 0:o.length)>0){const l=o instanceof Uint8Array&&o.byteLength===o.buffer.byteLength?o.buffer:new Uint8Array(o).buffer;this._queuedChunks.push(l)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!s,this._isRangeSupported=!n,this._contentLength=a,this._fullRequestReader=null,this._rangeReaders=[],t.addRangeListener((l,c)=>{this._onReceiveData({begin:l,chunk:c})}),t.addProgressListener((l,c)=>{this._onProgress({loaded:l,total:c})}),t.addProgressiveReadListener(l=>{this._onReceiveData({chunk:l})}),t.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),t.transportReady()}_onReceiveData({begin:t,chunk:n}){const s=n instanceof Uint8Array&&n.byteLength===n.buffer.byteLength?n.buffer:new Uint8Array(n).buffer;if(t===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(s):this._queuedChunks.push(s);else{const a=this._rangeReaders.some(function(o){return o._begin!==t?!1:(o._enqueue(s),!0)});ks(a,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var t;return((t=this._fullRequestReader)==null?void 0:t._loaded)??0}_onProgress(t){var n,s,a,o;t.total===void 0?(s=(n=this._rangeReaders[0])==null?void 0:n.onProgress)==null||s.call(n,{loaded:t.loaded}):(o=(a=this._fullRequestReader)==null?void 0:a.onProgress)==null||o.call(a,{loaded:t.loaded,total:t.total})}_onProgressiveDone(){var t;(t=this._fullRequestReader)==null||t.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(t){const n=this._rangeReaders.indexOf(t);n>=0&&this._rangeReaders.splice(n,1)}getFullReader(){ks(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const t=this._queuedChunks;return this._queuedChunks=null,new Bbe(this,t,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(t,n){if(n<=this._progressiveDataLength)return null;const s=new Vbe(this,t,n);return this._pdfDataRangeTransport.requestDataRange(t,n),this._rangeReaders.push(s),s}cancelAllRequests(t){var n;(n=this._fullRequestReader)==null||n.cancel(t);for(const s of this._rangeReaders.slice(0))s.cancel(t);this._pdfDataRangeTransport.abort()}}class Bbe{constructor(t,n,s=!1,a=null){this._stream=t,this._done=s||!1,this._filename=ow(a)?a:null,this._queuedChunks=n||[],this._loaded=0;for(const o of this._queuedChunks)this._loaded+=o.byteLength;this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}_enqueue(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class Vbe{constructor(t,n,s){this._stream=t,this._begin=n,this._end=s,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(t){if(!this._done){if(this._requests.length===0)this._queuedChunk=t;else{this._requests.shift().resolve({value:t,done:!1});for(const s of this._requests)s.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const n=this._queuedChunk;return this._queuedChunk=null,{value:n,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function zbe(e){let t=!0,n=s("filename\\*","i").exec(e);if(n){n=n[1];let u=i(n);return u=unescape(u),u=l(u),u=c(u),o(u)}if(n=r(e),n){const u=c(n);return o(u)}if(n=s("filename","i").exec(e),n){n=n[1];let u=i(n);return u=c(u),o(u)}function s(u,f){return new RegExp("(?:^|;)\\s*"+u+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',f)}function a(u,f){if(u){if(!/^[\x00-\xFF]+$/.test(f))return f;try{const h=new TextDecoder(u,{fatal:!0}),p=ob(f);f=h.decode(p),t=!1}catch{}}return f}function o(u){return t&&/[\x80-\xff]/.test(u)&&(u=a("utf-8",u),t&&(u=a("iso-8859-1",u))),u}function r(u){const f=[];let h;const p=s("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(h=p.exec(u))!==null;){let[,m,g,b]=h;if(m=parseInt(m,10),m in f){if(m===0)break;continue}f[m]=[g,b]}const v=[];for(let m=0;m<f.length&&m in f;++m){let[g,b]=f[m];b=i(b),g&&(b=unescape(b),m===0&&(b=l(b))),v.push(b)}return v.join("")}function i(u){if(u.startsWith('"')){const f=u.slice(1).split('\\"');for(let h=0;h<f.length;++h){const p=f[h].indexOf('"');p!==-1&&(f[h]=f[h].slice(0,p),f.length=h+1),f[h]=f[h].replaceAll(/\\(.)/g,"$1")}u=f.join('"')}return u}function l(u){const f=u.indexOf("'");if(f===-1)return u;const h=u.slice(0,f),v=u.slice(f+1).replace(/^[^']*'/,"");return a(h,v)}function c(u){return!u.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(u)?u:u.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(f,h,p,v){if(p==="q"||p==="Q")return v=v.replaceAll("_"," "),v=v.replaceAll(/=([0-9a-fA-F]{2})/g,function(m,g){return String.fromCharCode(parseInt(g,16))}),a(h,v);try{v=atob(v)}catch{}return a(h,v)})}return""}function zP(e,t){const n=new Headers;if(!e||!t||typeof t!="object")return n;for(const s in t){const a=t[s];a!==void 0&&n.append(s,a)}return n}function pb(e){try{return new URL(e).origin}catch{}return null}function HP({responseHeaders:e,isHttp:t,rangeChunkSize:n,disableRange:s}){const a={allowRangeRequests:!1,suggestedLength:void 0},o=parseInt(e.get("Content-Length"),10);return!Number.isInteger(o)||(a.suggestedLength=o,o<=2*n)||s||!t||e.get("Accept-Ranges")!=="bytes"||(e.get("Content-Encoding")||"identity")!=="identity"||(a.allowRangeRequests=!0),a}function WP(e){const t=e.get("Content-Disposition");if(t){let n=zbe(t);if(n.includes("%"))try{n=decodeURIComponent(n)}catch{}if(ow(n))return n}return null}function vb(e,t){return e===404||e===0&&t.startsWith("file:")?new xv('Missing PDF "'+t+'".'):new ab(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)}function jP(e){return e===200||e===206}function KP(e,t,n){return{method:"GET",headers:e,signal:n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function UP(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:(fn(`getArrayBuffer - unexpected data format: ${e}`),new Uint8Array(e).buffer)}class qP{constructor(t){Ut(this,"_responseOrigin",null);this.source=t,this.isHttp=/^https?:/i.test(t.url),this.headers=zP(this.isHttp,t.httpHeaders),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var t;return((t=this._fullRequestReader)==null?void 0:t._loaded)??0}getFullReader(){return ks(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new Hbe(this),this._fullRequestReader}getRangeReader(t,n){if(n<=this._progressiveDataLength)return null;const s=new Wbe(this,t,n);return this._rangeRequestReaders.push(s),s}cancelAllRequests(t){var n;(n=this._fullRequestReader)==null||n.cancel(t);for(const s of this._rangeRequestReaders.slice(0))s.cancel(t)}}class Hbe{constructor(t){this._stream=t,this._reader=null,this._loaded=0,this._filename=null;const n=t.source;this._withCredentials=n.withCredentials||!1,this._contentLength=n.length,this._headersCapability=Promise.withResolvers(),this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange;const s=new Headers(t.headers),a=n.url;fetch(a,KP(s,this._withCredentials,this._abortController)).then(o=>{if(t._responseOrigin=pb(o.url),!jP(o.status))throw vb(o.status,a);this._reader=o.body.getReader(),this._headersCapability.resolve();const r=o.headers,{allowRangeRequests:i,suggestedLength:l}=HP({responseHeaders:r,isHttp:t.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=i,this._contentLength=l||this._contentLength,this._filename=WP(r),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new Sc("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var s;await this._headersCapability.promise;const{value:t,done:n}=await this._reader.read();return n?{value:t,done:n}:(this._loaded+=t.byteLength,(s=this.onProgress)==null||s.call(this,{loaded:this._loaded,total:this._contentLength}),{value:UP(t),done:!1})}cancel(t){var n;(n=this._reader)==null||n.cancel(t),this._abortController.abort()}}class Wbe{constructor(t,n,s){this._stream=t,this._reader=null,this._loaded=0;const a=t.source;this._withCredentials=a.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!a.disableStream,this._abortController=new AbortController;const o=new Headers(t.headers);o.append("Range",`bytes=${n}-${s-1}`);const r=a.url;fetch(r,KP(o,this._withCredentials,this._abortController)).then(i=>{const l=pb(i.url);if(l!==t._responseOrigin)throw new Error(`Expected range response-origin "${l}" to match "${t._responseOrigin}".`);if(!jP(i.status))throw vb(i.status,r);this._readCapability.resolve(),this._reader=i.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var s;await this._readCapability.promise;const{value:t,done:n}=await this._reader.read();return n?{value:t,done:n}:(this._loaded+=t.byteLength,(s=this.onProgress)==null||s.call(this,{loaded:this._loaded}),{value:UP(t),done:!1})}cancel(t){var n;(n=this._reader)==null||n.cancel(t),this._abortController.abort()}}const bw=200,yw=206;function jbe(e){const t=e.response;return typeof t!="string"?t:ob(t).buffer}class Kbe{constructor({url:t,httpHeaders:n,withCredentials:s}){Ut(this,"_responseOrigin",null);this.url=t,this.isHttp=/^https?:/i.test(t),this.headers=zP(this.isHttp,n),this.withCredentials=s||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}request(t){const n=new XMLHttpRequest,s=this.currXhrId++,a=this.pendingRequests[s]={xhr:n};n.open("GET",this.url),n.withCredentials=this.withCredentials;for(const[o,r]of this.headers)n.setRequestHeader(o,r);return this.isHttp&&"begin"in t&&"end"in t?(n.setRequestHeader("Range",`bytes=${t.begin}-${t.end-1}`),a.expectedStatus=yw):a.expectedStatus=bw,n.responseType="arraybuffer",ks(t.onError,"Expected `onError` callback to be provided."),n.onerror=()=>{t.onError(n.status)},n.onreadystatechange=this.onStateChange.bind(this,s),n.onprogress=this.onProgress.bind(this,s),a.onHeadersReceived=t.onHeadersReceived,a.onDone=t.onDone,a.onError=t.onError,a.onProgress=t.onProgress,n.send(null),s}onProgress(t,n){var a;const s=this.pendingRequests[t];s&&((a=s.onProgress)==null||a.call(s,n))}onStateChange(t,n){const s=this.pendingRequests[t];if(!s)return;const a=s.xhr;if(a.readyState>=2&&s.onHeadersReceived&&(s.onHeadersReceived(),delete s.onHeadersReceived),a.readyState!==4||!(t in this.pendingRequests))return;if(delete this.pendingRequests[t],a.status===0&&this.isHttp){s.onError(a.status);return}const o=a.status||bw;if(!(o===bw&&s.expectedStatus===yw)&&o!==s.expectedStatus){s.onError(a.status);return}const i=jbe(a);if(o===yw){const l=a.getResponseHeader("Content-Range"),c=/bytes (\d+)-(\d+)\/(\d+)/.exec(l);c?s.onDone({begin:parseInt(c[1],10),chunk:i}):(fn('Missing or invalid "Content-Range" header.'),s.onError(0))}else i?s.onDone({begin:0,chunk:i}):s.onError(a.status)}getRequestXhr(t){return this.pendingRequests[t].xhr}isPendingRequest(t){return t in this.pendingRequests}abortRequest(t){const n=this.pendingRequests[t].xhr;delete this.pendingRequests[t],n.abort()}}class Ube{constructor(t){this._source=t,this._manager=new Kbe(t),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(t){const n=this._rangeRequestReaders.indexOf(t);n>=0&&this._rangeRequestReaders.splice(n,1)}getFullReader(){return ks(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new qbe(this._manager,this._source),this._fullRequestReader}getRangeReader(t,n){const s=new Gbe(this._manager,t,n);return s.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(s),s}cancelAllRequests(t){var n;(n=this._fullRequestReader)==null||n.cancel(t);for(const s of this._rangeRequestReaders.slice(0))s.cancel(t)}}class qbe{constructor(t,n){this._manager=t,this._url=n.url,this._fullRequestId=t.request({onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._headersCapability=Promise.withResolvers(),this._disableRange=n.disableRange||!1,this._contentLength=n.length,this._rangeChunkSize=n.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const t=this._fullRequestId,n=this._manager.getRequestXhr(t);this._manager._responseOrigin=pb(n.responseURL);const s=n.getAllResponseHeaders(),a=new Headers(s?s.trimStart().replace(/[^\S ]+$/,"").split(/[\r\n]+/).map(i=>{const[l,...c]=i.split(": ");return[l,c.join(": ")]}):[]),{allowRangeRequests:o,suggestedLength:r}=HP({responseHeaders:a,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});o&&(this._isRangeSupported=!0),this._contentLength=r||this._contentLength,this._filename=WP(a),this._isRangeSupported&&this._manager.abortRequest(t),this._headersCapability.resolve()}_onDone(t){if(t&&(this._requests.length>0?this._requests.shift().resolve({value:t.chunk,done:!1}):this._cachedChunks.push(t.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(t){this._storedError=vb(t,this._url),this._headersCapability.reject(this._storedError);for(const n of this._requests)n.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(t){var n;(n=this.onProgress)==null||n.call(this,{loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersCapability.promise}async read(){if(await this._headersCapability.promise,this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this._headersCapability.reject(t);for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class Gbe{constructor(t,n,s){this._manager=t,this._url=t.url,this._requestId=t.request({begin:n,end:s,onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_onHeadersReceived(){var n;const t=pb((n=this._manager.getRequestXhr(this._requestId))==null?void 0:n.responseURL);t!==this._manager._responseOrigin&&(this._storedError=new Error(`Expected range response-origin "${t}" to match "${this._manager._responseOrigin}".`),this._onError(0))}_close(){var t;(t=this.onClosed)==null||t.call(this,this)}_onDone(t){const n=t.chunk;this._requests.length>0?this._requests.shift().resolve({value:n,done:!1}):this._queuedChunk=n,this._done=!0;for(const s of this._requests)s.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(t){this._storedError??(this._storedError=vb(t,this._url));for(const n of this._requests)n.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(t){var n;this.isStreamingSupported||(n=this.onProgress)==null||n.call(this,{loaded:t.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const n=this._queuedChunk;return this._queuedChunk=null,{value:n,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const Ybe=/^[a-z][a-z0-9\-+.]+:/i;function Xbe(e){if(Ybe.test(e))return new URL(e);const t=process.getBuiltinModule("url");return new URL(t.pathToFileURL(e))}class Jbe{constructor(t){this.source=t,this.url=Xbe(t.url),ks(this.url.protocol==="file:","PDFNodeStream only supports file:// URLs."),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var t;return((t=this._fullRequestReader)==null?void 0:t._loaded)??0}getFullReader(){return ks(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=new Zbe(this),this._fullRequestReader}getRangeReader(t,n){if(n<=this._progressiveDataLength)return null;const s=new Qbe(this,t,n);return this._rangeRequestReaders.push(s),s}cancelAllRequests(t){var n;(n=this._fullRequestReader)==null||n.cancel(t);for(const s of this._rangeRequestReaders.slice(0))s.cancel(t)}}class Zbe{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;const n=t.source;this._contentLength=n.length,this._loaded=0,this._filename=null,this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers();const s=process.getBuiltinModule("fs");s.promises.lstat(this._url).then(a=>{this._contentLength=a.size,this._setReadableStream(s.createReadStream(this._url)),this._headersCapability.resolve()},a=>{a.code==="ENOENT"&&(a=new xv(`Missing PDF "${this._url}".`)),this._storedError=a,this._headersCapability.reject(a)})}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var s;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,(s=this.onProgress)==null||s.call(this,{loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",n=>{this._error(n)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new Sc("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class Qbe{constructor(t,n,s){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const a=t.source;this._isStreamingSupported=!a.disableStream;const o=process.getBuiltinModule("fs");this._setReadableStream(o.createReadStream(this._url,{start:n,end:s-1}))}get isStreamingSupported(){return this._isStreamingSupported}async read(){var s;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,(s=this.onProgress)==null||s.call(this,{loaded:this._loaded}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",n=>{this._error(n)}),this._storedError&&this._readableStream.destroy(this._storedError)}}const e4e=1e5,to=30,t4e=.8,Ns=class Ns{constructor({textContentSource:t,container:n,viewport:s}){ne(this,Al);ne(this,Vc,Promise.withResolvers());ne(this,so,null);ne(this,mm,!1);ne(this,gm,!!((lR=globalThis.FontInspector)!=null&&lR.enabled));ne(this,wd,null);ne(this,El,null);ne(this,bm,0);ne(this,ym,0);ne(this,_d,null);ne(this,Fh,null);ne(this,Bh,0);ne(this,zc,0);ne(this,Vh,Object.create(null));ne(this,wm,[]);ne(this,zh,null);ne(this,Cd,[]);ne(this,_m,new WeakMap);ne(this,Cm,null);var l;if(t instanceof ReadableStream)q(this,zh,t);else if(typeof t=="object")q(this,zh,new ReadableStream({start(c){c.enqueue(t),c.close()}}));else throw new Error('No "textContentSource" parameter specified.');q(this,so,q(this,Fh,n)),q(this,zc,s.scale*(globalThis.devicePixelRatio||1)),q(this,Bh,s.rotation),q(this,El,{div:null,properties:null,ctx:null});const{pageWidth:a,pageHeight:o,pageX:r,pageY:i}=s.rawDims;q(this,Cm,[1,0,0,-1,-r,i+o]),q(this,ym,a),q(this,bm,o),oe(l=Ns,So,UR).call(l),Ku(n,s),y(this,Vc).promise.finally(()=>{y(Ns,Hh).delete(this),q(this,El,null),q(this,Vh,null)}).catch(()=>{})}static get fontFamilyMap(){const{isWindows:t,isFirefox:n}=Na.platform;return mn(this,"fontFamilyMap",new Map([["sans-serif",`${t&&n?"Calibri, ":""}sans-serif`],["monospace",`${t&&n?"Lucida Console, ":""}monospace`]]))}render(){const t=()=>{y(this,_d).read().then(({value:n,done:s})=>{if(s){y(this,Vc).resolve();return}y(this,wd)??q(this,wd,n.lang),Object.assign(y(this,Vh),n.styles),oe(this,Al,jR).call(this,n.items),t()},y(this,Vc).reject)};return q(this,_d,y(this,zh).getReader()),y(Ns,Hh).add(this),t(),y(this,Vc).promise}update({viewport:t,onBefore:n=null}){var o;const s=t.scale*(globalThis.devicePixelRatio||1),a=t.rotation;if(a!==y(this,Bh)&&(n==null||n(),q(this,Bh,a),Ku(y(this,Fh),{rotation:a})),s!==y(this,zc)){n==null||n(),q(this,zc,s);const r={div:null,properties:null,ctx:oe(o=Ns,So,Zb).call(o,y(this,wd))};for(const i of y(this,Cd))r.properties=y(this,_m).get(i),r.div=i,oe(this,Al,u_).call(this,r)}}cancel(){var n;const t=new Sc("TextLayer task cancelled.");(n=y(this,_d))==null||n.cancel(t).catch(()=>{}),q(this,_d,null),y(this,Vc).reject(t)}get textDivs(){return y(this,Cd)}get textContentItemsStr(){return y(this,wm)}static cleanup(){if(!(y(this,Hh).size>0)){y(this,Sd).clear();for(const{canvas:t}of y(this,xd).values())t.remove();y(this,xd).clear()}}};Vc=new WeakMap,so=new WeakMap,mm=new WeakMap,gm=new WeakMap,wd=new WeakMap,El=new WeakMap,bm=new WeakMap,ym=new WeakMap,_d=new WeakMap,Fh=new WeakMap,Bh=new WeakMap,zc=new WeakMap,Vh=new WeakMap,wm=new WeakMap,zh=new WeakMap,Cd=new WeakMap,_m=new WeakMap,Cm=new WeakMap,Sd=new WeakMap,xd=new WeakMap,Sm=new WeakMap,Hc=new WeakMap,Hh=new WeakMap,Al=new WeakSet,jR=function(t){var a,o;if(y(this,mm))return;(o=y(this,El)).ctx??(o.ctx=oe(a=Ns,So,Zb).call(a,y(this,wd)));const n=y(this,Cd),s=y(this,wm);for(const r of t){if(n.length>e4e){fn("Ignoring additional textDivs for performance reasons."),q(this,mm,!0);return}if(r.str===void 0){if(r.type==="beginMarkedContentProps"||r.type==="beginMarkedContent"){const i=y(this,so);q(this,so,document.createElement("span")),y(this,so).classList.add("markedContent"),r.id!==null&&y(this,so).setAttribute("id",`${r.id}`),i.append(y(this,so))}else r.type==="endMarkedContent"&&q(this,so,y(this,so).parentNode);continue}s.push(r.str),oe(this,Al,KR).call(this,r)}},KR=function(t){var m;const n=document.createElement("span"),s={angle:0,canvasWidth:0,hasText:t.str!=="",hasEOL:t.hasEOL,fontSize:0};y(this,Cd).push(n);const a=zt.transform(y(this,Cm),t.transform);let o=Math.atan2(a[1],a[0]);const r=y(this,Vh)[t.fontName];r.vertical&&(o+=Math.PI/2);let i=y(this,gm)&&r.fontSubstitution||r.fontFamily;i=Ns.fontFamilyMap.get(i)||i;const l=Math.hypot(a[2],a[3]),c=l*oe(m=Ns,So,qR).call(m,i,y(this,wd));let u,f;o===0?(u=a[4],f=a[5]-c):(u=a[4]+c*Math.sin(o),f=a[5]-c*Math.cos(o));const h="calc(var(--scale-factor)*",p=n.style;y(this,so)===y(this,Fh)?(p.left=`${(100*u/y(this,ym)).toFixed(2)}%`,p.top=`${(100*f/y(this,bm)).toFixed(2)}%`):(p.left=`${h}${u.toFixed(2)}px)`,p.top=`${h}${f.toFixed(2)}px)`),p.fontSize=`${h}${(y(Ns,Hc)*l).toFixed(2)}px)`,p.fontFamily=i,s.fontSize=l,n.setAttribute("role","presentation"),n.textContent=t.str,n.dir=t.dir,y(this,gm)&&(n.dataset.fontName=r.fontSubstitutionLoadedName||t.fontName),o!==0&&(s.angle=o*(180/Math.PI));let v=!1;if(t.str.length>1)v=!0;else if(t.str!==" "&&t.transform[0]!==t.transform[3]){const g=Math.abs(t.transform[0]),b=Math.abs(t.transform[3]);g!==b&&Math.max(g,b)/Math.min(g,b)>1.5&&(v=!0)}if(v&&(s.canvasWidth=r.vertical?t.height:t.width),y(this,_m).set(n,s),y(this,El).div=n,y(this,El).properties=s,oe(this,Al,u_).call(this,y(this,El)),s.hasText&&y(this,so).append(n),s.hasEOL){const g=document.createElement("br");g.setAttribute("role","presentation"),y(this,so).append(g)}},u_=function(t){var i;const{div:n,properties:s,ctx:a}=t,{style:o}=n;let r="";if(y(Ns,Hc)>1&&(r=`scale(${1/y(Ns,Hc)})`),s.canvasWidth!==0&&s.hasText){const{fontFamily:l}=o,{canvasWidth:c,fontSize:u}=s;oe(i=Ns,So,d_).call(i,a,u*y(this,zc),l);const{width:f}=a.measureText(n.textContent);f>0&&(r=`scaleX(${c*y(this,zc)/f}) ${r}`)}s.angle!==0&&(r=`rotate(${s.angle}deg) ${r}`),r.length>0&&(o.transform=r)},So=new WeakSet,Zb=function(t=null){let n=y(this,xd).get(t||(t=""));if(!n){const s=document.createElement("canvas");s.className="hiddenCanvasElement",s.lang=t,document.body.append(s),n=s.getContext("2d",{alpha:!1,willReadFrequently:!0}),y(this,xd).set(t,n),y(this,Sm).set(n,{size:0,family:""})}return n},d_=function(t,n,s){const a=y(this,Sm).get(t);n===a.size&&s===a.family||(t.font=`${n}px ${s}`,a.size=n,a.family=s)},UR=function(){if(y(this,Hc)!==null)return;const t=document.createElement("div");t.style.opacity=0,t.style.lineHeight=1,t.style.fontSize="1px",t.style.position="absolute",t.textContent="X",document.body.append(t),q(this,Hc,t.getBoundingClientRect().height),t.remove()},qR=function(t,n){const s=y(this,Sd).get(t);if(s)return s;const a=oe(this,So,Zb).call(this,n);a.canvas.width=a.canvas.height=to,oe(this,So,d_).call(this,a,to,t);const o=a.measureText("");let r=o.fontBoundingBoxAscent,i=Math.abs(o.fontBoundingBoxDescent);if(r){const u=r/(r+i);return y(this,Sd).set(t,u),a.canvas.width=a.canvas.height=0,u}a.strokeStyle="red",a.clearRect(0,0,to,to),a.strokeText("g",0,0);let l=a.getImageData(0,0,to,to).data;i=0;for(let u=l.length-1-3;u>=0;u-=4)if(l[u]>0){i=Math.ceil(u/4/to);break}a.clearRect(0,0,to,to),a.strokeText("A",0,to),l=a.getImageData(0,0,to,to).data,r=0;for(let u=0,f=l.length;u<f;u+=4)if(l[u]>0){r=to-Math.floor(u/4/to);break}a.canvas.width=a.canvas.height=0;const c=r?r/(r+i):t4e;return y(this,Sd).set(t,c),c},ne(Ns,So),ne(Ns,Sd,new Map),ne(Ns,xd,new Map),ne(Ns,Sm,new WeakMap),ne(Ns,Hc,null),ne(Ns,Hh,new Set);let Pv=Ns;class Rv{static textContent(t){const n=[],s={items:n,styles:Object.create(null)};function a(o){var l;if(!o)return;let r=null;const i=o.name;if(i==="#text")r=o.value;else if(Rv.shouldBuildText(i))(l=o==null?void 0:o.attributes)!=null&&l.textContent?r=o.attributes.textContent:o.value&&(r=o.value);else return;if(r!==null&&n.push({str:r}),!!o.children)for(const c of o.children)a(c)}return a(t),s}static shouldBuildText(t){return!(t==="textarea"||t==="input"||t==="option"||t==="select")}}const n4e=65536,s4e=100,a4e=5e3,o4e=ga?ybe:mbe,r4e=ga?wbe:EP,i4e=ga?bbe:gbe,l4e=ga?_be:MP;function c4e(e={}){typeof e=="string"||e instanceof URL?e={url:e}:(e instanceof ArrayBuffer||ArrayBuffer.isView(e))&&(e={data:e});const t=new ww,{docId:n}=t,s=e.url?u4e(e.url):null,a=e.data?d4e(e.data):null,o=e.httpHeaders||null,r=e.withCredentials===!0,i=e.password??null,l=e.range instanceof YP?e.range:null,c=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:n4e;let u=e.worker instanceof mh?e.worker:null;const f=e.verbosity,h=typeof e.docBaseUrl=="string"&&!ib(e.docBaseUrl)?e.docBaseUrl:null,p=typeof e.cMapUrl=="string"?e.cMapUrl:null,v=e.cMapPacked!==!1,m=e.CMapReaderFactory||r4e,g=typeof e.standardFontDataUrl=="string"?e.standardFontDataUrl:null,b=e.StandardFontDataFactory||l4e,C=e.stopAtErrors!==!0,w=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,_=e.isEvalSupported!==!1,x=typeof e.isOffscreenCanvasSupported=="boolean"?e.isOffscreenCanvasSupported:!ga,k=typeof e.isImageDecoderSupported=="boolean"?e.isImageDecoderSupported:!ga&&(Na.platform.isFirefox||!globalThis.chrome),T=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,R=typeof e.disableFontFace=="boolean"?e.disableFontFace:ga,I=e.fontExtraProperties===!0,P=e.enableXfa===!0,$=e.ownerDocument||globalThis.document,O=e.disableRange===!0,B=e.disableStream===!0,H=e.disableAutoFetch===!0,J=e.pdfBug===!0,Y=e.CanvasFactory||o4e,N=e.FilterFactory||i4e,L=e.enableHWA===!0,V=l?l.length:e.length??NaN,z=typeof e.useSystemFonts=="boolean"?e.useSystemFonts:!ga&&!R,G=typeof e.useWorkerFetch=="boolean"?e.useWorkerFetch:m===EP&&b===MP&&p&&g&&Ev(p,document.baseURI)&&Ev(g,document.baseURI),Q=null;G1e(f);const U={canvasFactory:new Y({ownerDocument:$,enableHWA:L}),filterFactory:new N({docId:n,ownerDocument:$}),cMapReaderFactory:G?null:new m({baseUrl:p,isCompressed:v}),standardFontDataFactory:G?null:new b({baseUrl:g})};if(!u){const de={verbosity:f,port:hl.workerPort};u=de.port?mh.fromPort(de):new mh(de),t._worker=u}const ee={docId:n,apiVersion:"4.10.38",data:a,password:i,disableAutoFetch:H,rangeChunkSize:c,length:V,docBaseUrl:h,enableXfa:P,evaluatorOptions:{maxImageSize:w,disableFontFace:R,ignoreErrors:C,isEvalSupported:_,isOffscreenCanvasSupported:x,isImageDecoderSupported:k,canvasMaxAreaInBytes:T,fontExtraProperties:I,useSystemFonts:z,cMapUrl:G?p:null,standardFontDataUrl:G?g:null}},se={disableFontFace:R,fontExtraProperties:I,ownerDocument:$,pdfBug:J,styleElement:Q,loadingParams:{disableAutoFetch:H,enableXfa:P}};return u.promise.then(function(){if(t.destroyed)throw new Error("Loading aborted");if(u.destroyed)throw new Error("Worker was destroyed");const de=u.messageHandler.sendWithPromise("GetDocRequest",ee,a?[a.buffer]:null);let te;if(l)te=new Fbe(l,{disableRange:O,disableStream:B});else if(!a){if(!s)throw new Error("getDocument - no `url` parameter provided.");let pe;if(ga)if(Ev(s)){if(typeof fetch>"u"||typeof Response>"u"||!("body"in Response.prototype))throw new Error("getDocument - the Fetch API was disabled in Node.js, see `--no-experimental-fetch`.");pe=qP}else pe=Jbe;else pe=Ev(s)?qP:Ube;te=new pe({url:s,length:V,httpHeaders:o,withCredentials:r,rangeChunkSize:c,disableRange:O,disableStream:B})}return de.then(pe=>{if(t.destroyed)throw new Error("Loading aborted");if(u.destroyed)throw new Error("Worker was destroyed");const he=new Tv(n,pe,u.port),le=new v4e(he,t,te,se,U);t._transport=le,he.send("Ready",null)})}).catch(t._capability.reject),t}function u4e(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch{if(ga&&typeof e=="string")return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function d4e(e){if(ga&&typeof Buffer<"u"&&e instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if(typeof e=="string")return ob(e);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)||typeof e=="object"&&!isNaN(e==null?void 0:e.length))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function GP(e){return typeof e=="object"&&Number.isInteger(e==null?void 0:e.num)&&e.num>=0&&Number.isInteger(e==null?void 0:e.gen)&&e.gen>=0}const Rb=class Rb{constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId=`d${Ha(Rb,Pb)._++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){var t,n,s,a;this.destroyed=!0;try{(t=this._worker)!=null&&t.port&&(this._worker._pendingDestroy=!0),await((n=this._transport)==null?void 0:n.destroy())}catch(o){throw(s=this._worker)!=null&&s.port&&delete this._worker._pendingDestroy,o}this._transport=null,(a=this._worker)==null||a.destroy(),this._worker=null}};Pb=new WeakMap,ne(Rb,Pb,0);let ww=Rb;class YP{constructor(t,n,s=!1,a=null){this.length=t,this.initialData=n,this.progressiveDone=s,this.contentDispositionFilename=a,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}addRangeListener(t){this._rangeListeners.push(t)}addProgressListener(t){this._progressListeners.push(t)}addProgressiveReadListener(t){this._progressiveReadListeners.push(t)}addProgressiveDoneListener(t){this._progressiveDoneListeners.push(t)}onDataRange(t,n){for(const s of this._rangeListeners)s(t,n)}onDataProgress(t,n){this._readyCapability.promise.then(()=>{for(const s of this._progressListeners)s(t,n)})}onDataProgressiveRead(t){this._readyCapability.promise.then(()=>{for(const n of this._progressiveReadListeners)n(t)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const t of this._progressiveDoneListeners)t()})}transportReady(){this._readyCapability.resolve()}requestDataRange(t,n){Un("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}class f4e{constructor(t,n){this._pdfInfo=t,this._transport=n}get annotationStorage(){return this._transport.annotationStorage}get canvasFactory(){return this._transport.canvasFactory}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return mn(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(t){return this._transport.getPage(t)}getPageIndex(t){return this._transport.getPageIndex(t)}getDestinations(){return this._transport.getDestinations()}getDestination(t){return this._transport.getDestination(t)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:t="display"}={}){const{renderingIntent:n}=this._transport.getRenderingIntent(t);return this._transport.getOptionalContentConfig(n)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(t=!1){return this._transport.startCleanup(t||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(t){return this._transport.cachedPageNumber(t)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}class h4e{constructor(t,n,s,a=!1){ne(this,Jo);ne(this,Wc,null);ne(this,Tl,!1);this._pageIndex=t,this._pageInfo=n,this._transport=s,this._stats=a?new yP:null,this._pdfBug=a,this.commonObjs=s.commonObjs,this.objs=new XP,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:t,rotation:n=this.rotate,offsetX:s=0,offsetY:a=0,dontFlip:o=!1}={}){return new kv({viewBox:this.view,userUnit:this.userUnit,scale:t,rotation:n,offsetX:s,offsetY:a,dontFlip:o})}getAnnotations({intent:t="display"}={}){const{renderingIntent:n}=this._transport.getRenderingIntent(t);return this._transport.getAnnotations(this._pageIndex,n)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return mn(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var t;return((t=this._transport._htmlForXfa)==null?void 0:t.children[this._pageIndex])||null}render({canvasContext:t,viewport:n,intent:s="display",annotationMode:a=_c.ENABLE,transform:o=null,background:r=null,optionalContentConfigPromise:i=null,annotationCanvasMap:l=null,pageColors:c=null,printAnnotationStorage:u=null,isEditing:f=!1}){var _,x;(_=this._stats)==null||_.time("Overall");const h=this._transport.getRenderingIntent(s,a,u,f),{renderingIntent:p,cacheKey:v}=h;q(this,Tl,!1),oe(this,Jo,Qb).call(this),i||(i=this._transport.getOptionalContentConfig(p));let m=this._intentStates.get(v);m||(m=Object.create(null),this._intentStates.set(v,m)),m.streamReaderCancelTimeout&&(clearTimeout(m.streamReaderCancelTimeout),m.streamReaderCancelTimeout=null);const g=!!(p&bo.PRINT);m.displayReadyCapability||(m.displayReadyCapability=Promise.withResolvers(),m.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(x=this._stats)==null||x.time("Page Request"),this._pumpOperatorList(h));const b=k=>{var T;m.renderTasks.delete(C),(this._maybeCleanupAfterRender||g)&&q(this,Tl,!0),oe(this,Jo,M0).call(this,!g),k?(C.capability.reject(k),this._abortOperatorList({intentState:m,reason:k instanceof Error?k:new Error(k)})):C.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),(T=globalThis.Stats)!=null&&T.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},C=new _w({callback:b,params:{canvasContext:t,viewport:n,transform:o,background:r},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:l,operatorList:m.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!g,pdfBug:this._pdfBug,pageColors:c});(m.renderTasks||(m.renderTasks=new Set)).add(C);const w=C.task;return Promise.all([m.displayReadyCapability.promise,i]).then(([k,T])=>{var R;if(this.destroyed){b();return}if((R=this._stats)==null||R.time("Rendering"),!(T.renderingIntent&p))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");C.initializeGraphics({transparency:k,optionalContentConfig:T}),C.operatorListChanged()}).catch(b),w}getOperatorList({intent:t="display",annotationMode:n=_c.ENABLE,printAnnotationStorage:s=null,isEditing:a=!1}={}){var c;function o(){i.operatorList.lastChunk&&(i.opListReadCapability.resolve(i.operatorList),i.renderTasks.delete(l))}const r=this._transport.getRenderingIntent(t,n,s,a,!0);let i=this._intentStates.get(r.cacheKey);i||(i=Object.create(null),this._intentStates.set(r.cacheKey,i));let l;return i.opListReadCapability||(l=Object.create(null),l.operatorListChanged=o,i.opListReadCapability=Promise.withResolvers(),(i.renderTasks||(i.renderTasks=new Set)).add(l),i.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(c=this._stats)==null||c.time("Page Request"),this._pumpOperatorList(r)),i.opListReadCapability.promise}streamTextContent({includeMarkedContent:t=!1,disableNormalization:n=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:t===!0,disableNormalization:n===!0},{highWaterMark:100,size(a){return a.items.length}})}getTextContent(t={}){if(this._transport._htmlForXfa)return this.getXfa().then(s=>Rv.textContent(s));const n=this.streamTextContent(t);return new Promise(function(s,a){function o(){r.read().then(function({value:l,done:c}){if(c){s(i);return}i.lang??(i.lang=l.lang),Object.assign(i.styles,l.styles),i.items.push(...l.items),o()},a)}const r=n.getReader(),i={items:[],styles:Object.create(null),lang:null};o()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const t=[];for(const n of this._intentStates.values())if(this._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),!n.opListReadCapability)for(const s of n.renderTasks)t.push(s.completed),s.cancel();return this.objs.clear(),q(this,Tl,!1),oe(this,Jo,Qb).call(this),Promise.all(t)}cleanup(t=!1){q(this,Tl,!0);const n=oe(this,Jo,M0).call(this,!1);return t&&n&&this._stats&&(this._stats=new yP),n}_startRenderPage(t,n){var a,o;const s=this._intentStates.get(n);s&&((a=this._stats)==null||a.timeEnd("Page Request"),(o=s.displayReadyCapability)==null||o.resolve(t))}_renderPageChunk(t,n){for(let s=0,a=t.length;s<a;s++)n.operatorList.fnArray.push(t.fnArray[s]),n.operatorList.argsArray.push(t.argsArray[s]);n.operatorList.lastChunk=t.lastChunk,n.operatorList.separateAnnots=t.separateAnnots;for(const s of n.renderTasks)s.operatorListChanged();t.lastChunk&&oe(this,Jo,M0).call(this,!0)}_pumpOperatorList({renderingIntent:t,cacheKey:n,annotationStorageSerializable:s,modifiedIds:a}){const{map:o,transfer:r}=s,l=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:t,cacheKey:n,annotationStorage:o,modifiedIds:a},r).getReader(),c=this._intentStates.get(n);c.streamReader=l;const u=()=>{l.read().then(({value:f,done:h})=>{if(h){c.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(f,c),u())},f=>{if(c.streamReader=null,!this._transport.destroyed){if(c.operatorList){c.operatorList.lastChunk=!0;for(const h of c.renderTasks)h.operatorListChanged();oe(this,Jo,M0).call(this,!0)}if(c.displayReadyCapability)c.displayReadyCapability.reject(f);else if(c.opListReadCapability)c.opListReadCapability.reject(f);else throw f}})};u()}_abortOperatorList({intentState:t,reason:n,force:s=!1}){if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!s){if(t.renderTasks.size>0)return;if(n instanceof aw){let a=s4e;n.extraDelay>0&&n.extraDelay<1e3&&(a+=n.extraDelay),t.streamReaderCancelTimeout=setTimeout(()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:n,force:!0})},a);return}}if(t.streamReader.cancel(new Sc(n.message)).catch(()=>{}),t.streamReader=null,!this._transport.destroyed){for(const[a,o]of this._intentStates)if(o===t){this._intentStates.delete(a);break}this.cleanup()}}}get stats(){return this._stats}}Wc=new WeakMap,Tl=new WeakMap,Jo=new WeakSet,M0=function(t=!1){if(oe(this,Jo,Qb).call(this),!y(this,Tl)||this.destroyed)return!1;if(t)return q(this,Wc,setTimeout(()=>{q(this,Wc,null),oe(this,Jo,M0).call(this,!1)},a4e)),!1;for(const{renderTasks:n,operatorList:s}of this._intentStates.values())if(n.size>0||!s.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),q(this,Tl,!1),!0},Qb=function(){y(this,Wc)&&(clearTimeout(y(this,Wc)),q(this,Wc,null))};class p4e{constructor(){ne(this,Ml,new Map);ne(this,Ib,Promise.resolve())}postMessage(t,n){const s={data:structuredClone(t,n?{transfer:n}:null)};y(this,Ib).then(()=>{for(const[a]of y(this,Ml))a.call(this,s)})}addEventListener(t,n,s=null){let a=null;if((s==null?void 0:s.signal)instanceof AbortSignal){const{signal:o}=s;if(o.aborted){fn("LoopbackPort - cannot use an `aborted` signal.");return}const r=()=>this.removeEventListener(t,n);a=()=>o.removeEventListener("abort",r),o.addEventListener("abort",r)}y(this,Ml).set(n,a)}removeEventListener(t,n){const s=y(this,Ml).get(n);s==null||s(),y(this,Ml).delete(n)}terminate(){for(const[,t]of y(this,Ml))t==null||t();y(this,Ml).clear()}}Ml=new WeakMap,Ib=new WeakMap;const os=class os{constructor({name:t=null,port:n=null,verbosity:s=Y1e()}={}){ne(this,Wh);var a;if(this.name=t,this.destroyed=!1,this.verbosity=s,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,n){if((a=y(os,Ed))!=null&&a.has(n))throw new Error("Cannot use more than one PDFWorker per port.");(y(os,Ed)||q(os,Ed,new WeakMap)).set(n,this),this._initializeFromPort(n);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(t){this._port=t,this._messageHandler=new Tv("main","worker",t),this._messageHandler.on("ready",function(){}),oe(this,Wh,e4).call(this)}_initialize(){if(y(os,kd)||y(os,jh,t4)){this._setupFakeWorker();return}let{workerSrc:t}=os;try{os._isSameOrigin(window.location.href,t)||(t=os._createCDNWrapper(new URL(t,window.location).href));const n=new Worker(t,{type:"module"}),s=new Tv("main","worker",n),a=()=>{o.abort(),s.destroy(),n.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},o=new AbortController;n.addEventListener("error",()=>{this._webWorker||a()},{signal:o.signal}),s.on("test",i=>{if(o.abort(),this.destroyed||!i){a();return}this._messageHandler=s,this._port=n,this._webWorker=n,oe(this,Wh,e4).call(this)}),s.on("ready",i=>{if(o.abort(),this.destroyed){a();return}try{r()}catch{this._setupFakeWorker()}});const r=()=>{const i=new Uint8Array;s.send("test",i,[i.buffer])};r();return}catch{sb("The worker has been disabled.")}this._setupFakeWorker()}_setupFakeWorker(){y(os,kd)||(fn("Setting up fake worker."),q(os,kd,!0)),os._setupFakeWorkerGlobal.then(t=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const n=new p4e;this._port=n;const s=`fake${Ha(os,Ob)._++}`,a=new Tv(s+"_worker",s,n);t.setup(a,n),this._messageHandler=new Tv(s,s+"_worker",n),oe(this,Wh,e4).call(this)}).catch(t=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${t.message}".`))})}destroy(){var t,n,s;this.destroyed=!0,(t=this._webWorker)==null||t.terminate(),this._webWorker=null,(n=y(os,Ed))==null||n.delete(this._port),this._port=null,(s=this._messageHandler)==null||s.destroy(),this._messageHandler=null}static fromPort(t){var s;if(!(t!=null&&t.port))throw new Error("PDFWorker.fromPort - invalid method signature.");const n=(s=y(this,Ed))==null?void 0:s.get(t.port);if(n){if(n._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return n}return new os(t)}static get workerSrc(){if(hl.workerSrc)return hl.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _setupFakeWorkerGlobal(){return mn(this,"_setupFakeWorkerGlobal",(async()=>y(this,jh,t4)?y(this,jh,t4):(await import(this.workerSrc)).WorkerMessageHandler)())}};Ob=new WeakMap,kd=new WeakMap,Ed=new WeakMap,Wh=new WeakSet,e4=function(){this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})},jh=new WeakSet,t4=function(){var t;try{return((t=globalThis.pdfjsWorker)==null?void 0:t.WorkerMessageHandler)||null}catch{return null}},ne(os,jh),ne(os,Ob,0),ne(os,kd,!1),ne(os,Ed),ga&&(q(os,kd,!0),hl.workerSrc||(hl.workerSrc="./pdf.worker.mjs")),os._isSameOrigin=(t,n)=>{let s;try{if(s=new URL(t),!s.origin||s.origin==="null")return!1}catch{return!1}const a=new URL(n,s);return s.origin===a.origin},os._createCDNWrapper=t=>{const n=`await import("${t}");`;return URL.createObjectURL(new Blob([n],{type:"text/javascript"}))};let mh=os;class v4e{constructor(t,n,s,a,o){ne(this,Ad);ne(this,Pl,new Map);ne(this,ki,new Map);ne(this,Kh,new Map);ne(this,Uh,new Map);ne(this,Rl,null);this.messageHandler=t,this.loadingTask=n,this.commonObjs=new XP,this.fontLoader=new pbe({ownerDocument:a.ownerDocument,styleElement:a.styleElement}),this.loadingParams=a.loadingParams,this._params=a,this.canvasFactory=o.canvasFactory,this.filterFactory=o.filterFactory,this.cMapReaderFactory=o.cMapReaderFactory,this.standardFontDataFactory=o.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=s,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}get annotationStorage(){return mn(this,"annotationStorage",new hw)}getRenderingIntent(t,n=_c.ENABLE,s=null,a=!1,o=!1){let r=bo.DISPLAY,i=fw;switch(t){case"any":r=bo.ANY;break;case"display":break;case"print":r=bo.PRINT;break;default:fn(`getRenderingIntent - invalid intent: ${t}`)}const l=r&bo.PRINT&&s instanceof CP?s:this.annotationStorage;switch(n){case _c.DISABLE:r+=bo.ANNOTATIONS_DISABLE;break;case _c.ENABLE:break;case _c.ENABLE_FORMS:r+=bo.ANNOTATIONS_FORMS;break;case _c.ENABLE_STORAGE:r+=bo.ANNOTATIONS_STORAGE,i=l.serializable;break;default:fn(`getRenderingIntent - invalid annotationMode: ${n}`)}a&&(r+=bo.IS_EDITING),o&&(r+=bo.OPLIST);const{ids:c,hash:u}=l.modifiedIds,f=[r,i.hash,u];return{renderingIntent:r,cacheKey:f.join("_"),annotationStorageSerializable:i,modifiedIds:c}}destroy(){var s;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),(s=y(this,Rl))==null||s.reject(new Error("Worker was destroyed during onPassword callback"));const t=[];for(const a of y(this,ki).values())t.push(a._destroy());y(this,ki).clear(),y(this,Kh).clear(),y(this,Uh).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const n=this.messageHandler.sendWithPromise("Terminate",null);return t.push(n),Promise.all(t).then(()=>{var a,o;this.commonObjs.clear(),this.fontLoader.clear(),y(this,Pl).clear(),this.filterFactory.destroy(),Pv.cleanup(),(a=this._networkStream)==null||a.cancelAllRequests(new Sc("Worker was terminated.")),(o=this.messageHandler)==null||o.destroy(),this.messageHandler=null,this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:t,loadingTask:n}=this;t.on("GetReader",(s,a)=>{ks(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=o=>{this._lastProgress={loaded:o.loaded,total:o.total}},a.onPull=()=>{this._fullReader.read().then(function({value:o,done:r}){if(r){a.close();return}ks(o instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),a.enqueue(new Uint8Array(o),1,[o])}).catch(o=>{a.error(o)})},a.onCancel=o=>{this._fullReader.cancel(o),a.ready.catch(r=>{if(!this.destroyed)throw r})}}),t.on("ReaderHeadersReady",async s=>{var i;await this._fullReader.headersReady;const{isStreamingSupported:a,isRangeSupported:o,contentLength:r}=this._fullReader;return(!a||!o)&&(this._lastProgress&&((i=n.onProgress)==null||i.call(n,this._lastProgress)),this._fullReader.onProgress=l=>{var c;(c=n.onProgress)==null||c.call(n,{loaded:l.loaded,total:l.total})}),{isStreamingSupported:a,isRangeSupported:o,contentLength:r}}),t.on("GetRangeReader",(s,a)=>{ks(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const o=this._networkStream.getRangeReader(s.begin,s.end);if(!o){a.close();return}a.onPull=()=>{o.read().then(function({value:r,done:i}){if(i){a.close();return}ks(r instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),a.enqueue(new Uint8Array(r),1,[r])}).catch(r=>{a.error(r)})},a.onCancel=r=>{o.cancel(r),a.ready.catch(i=>{if(!this.destroyed)throw i})}}),t.on("GetDoc",({pdfInfo:s})=>{this._numPages=s.numPages,this._htmlForXfa=s.htmlForXfa,delete s.htmlForXfa,n._capability.resolve(new f4e(s,this))}),t.on("DocException",s=>{n._capability.reject(Qa(s))}),t.on("PasswordRequest",s=>{q(this,Rl,Promise.withResolvers());try{if(!n.onPassword)throw Qa(s);const a=o=>{o instanceof Error?y(this,Rl).reject(o):y(this,Rl).resolve({password:o})};n.onPassword(a,s.code)}catch(a){y(this,Rl).reject(a)}return y(this,Rl).promise}),t.on("DataLoaded",s=>{var a;(a=n.onProgress)==null||a.call(n,{loaded:s.length,total:s.length}),this.downloadInfoCapability.resolve(s)}),t.on("StartRenderPage",s=>{if(this.destroyed)return;y(this,ki).get(s.pageIndex)._startRenderPage(s.transparency,s.cacheKey)}),t.on("commonobj",([s,a,o])=>{var r;if(this.destroyed||this.commonObjs.has(s))return null;switch(a){case"Font":const{disableFontFace:i,fontExtraProperties:l,pdfBug:c}=this._params;if("error"in o){const p=o.error;fn(`Error during font loading: ${p}`),this.commonObjs.resolve(s,p);break}const u=c&&((r=globalThis.FontInspector)!=null&&r.enabled)?(p,v)=>globalThis.FontInspector.fontAdded(p,v):null,f=new vbe(o,{disableFontFace:i,fontExtraProperties:l,inspectFont:u});this.fontLoader.bind(f).catch(()=>t.sendWithPromise("FontFallback",{id:s})).finally(()=>{!l&&f.data&&(f.data=null),this.commonObjs.resolve(s,f)});break;case"CopyLocalImage":const{imageRef:h}=o;ks(h,"The imageRef must be defined.");for(const p of y(this,ki).values())for(const[,v]of p.objs)if((v==null?void 0:v.ref)===h)return v.dataLen?(this.commonObjs.resolve(s,structuredClone(v)),v.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(s,o);break;default:throw new Error(`Got unknown common object type ${a}`)}return null}),t.on("obj",([s,a,o,r])=>{var l;if(this.destroyed)return;const i=y(this,ki).get(a);if(!i.objs.has(s)){if(i._intentStates.size===0){(l=r==null?void 0:r.bitmap)==null||l.close();return}switch(o){case"Image":i.objs.resolve(s,r),(r==null?void 0:r.dataLen)>j1e&&(i._maybeCleanupAfterRender=!0);break;case"Pattern":i.objs.resolve(s,r);break;default:throw new Error(`Got unknown object type ${o}`)}}}),t.on("DocProgress",s=>{var a;this.destroyed||(a=n.onProgress)==null||a.call(n,{loaded:s.loaded,total:s.total})}),t.on("FetchBuiltInCMap",async s=>{if(this.destroyed)throw new Error("Worker was destroyed.");if(!this.cMapReaderFactory)throw new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.");return this.cMapReaderFactory.fetch(s)}),t.on("FetchStandardFontData",async s=>{if(this.destroyed)throw new Error("Worker was destroyed.");if(!this.standardFontDataFactory)throw new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.");return this.standardFontDataFactory.fetch(s)})}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var s;this.annotationStorage.size<=0&&fn("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:t,transfer:n}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:t,filename:((s=this._fullReader)==null?void 0:s.filename)??null},n).finally(()=>{this.annotationStorage.resetModified()})}getPage(t){if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request."));const n=t-1,s=y(this,Kh).get(n);if(s)return s;const a=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then(o=>{if(this.destroyed)throw new Error("Transport destroyed");o.refStr&&y(this,Uh).set(o.refStr,t);const r=new h4e(n,o,this,this._params.pdfBug);return y(this,ki).set(n,r),r});return y(this,Kh).set(n,a),a}getPageIndex(t){return GP(t)?this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(t,n){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:n})}getFieldObjects(){return oe(this,Ad,y2).call(this,"GetFieldObjects")}hasJSActions(){return oe(this,Ad,y2).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return typeof t!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return oe(this,Ad,y2).call(this,"GetDocJSActions")}getPageJSActions(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:t})}getStructTree(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:t})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(t){return oe(this,Ad,y2).call(this,"GetOptionalContentConfig").then(n=>new Dbe(n,t))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const t="GetMetadata",n=y(this,Pl).get(t);if(n)return n;const s=this.messageHandler.sendWithPromise(t,null).then(a=>{var o,r;return{info:a[0],metadata:a[1]?new Nbe(a[1]):null,contentDispositionFilename:((o=this._fullReader)==null?void 0:o.filename)??null,contentLength:((r=this._fullReader)==null?void 0:r.contentLength)??null}});return y(this,Pl).set(t,s),s}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(t=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const n of y(this,ki).values())if(!n.cleanup())throw new Error(`startCleanup: Page ${n.pageNumber} is currently rendering.`);this.commonObjs.clear(),t||this.fontLoader.clear(),y(this,Pl).clear(),this.filterFactory.destroy(!0),Pv.cleanup()}}cachedPageNumber(t){if(!GP(t))return null;const n=t.gen===0?`${t.num}R`:`${t.num}R${t.gen}`;return y(this,Uh).get(n)??null}}Pl=new WeakMap,ki=new WeakMap,Kh=new WeakMap,Uh=new WeakMap,Rl=new WeakMap,Ad=new WeakSet,y2=function(t,n=null){const s=y(this,Pl).get(t);if(s)return s;const a=this.messageHandler.sendWithPromise(t,n);return y(this,Pl).set(t,a),a};const Iv=Symbol("INITIAL_DATA");class XP{constructor(){ne(this,xm);ne(this,xo,Object.create(null))}get(t,n=null){if(n){const a=oe(this,xm,f_).call(this,t);return a.promise.then(()=>n(a.data)),null}const s=y(this,xo)[t];if(!s||s.data===Iv)throw new Error(`Requesting object that isn't resolved yet ${t}.`);return s.data}has(t){const n=y(this,xo)[t];return!!n&&n.data!==Iv}delete(t){const n=y(this,xo)[t];return!n||n.data===Iv?!1:(delete y(this,xo)[t],!0)}resolve(t,n=null){const s=oe(this,xm,f_).call(this,t);s.data=n,s.resolve()}clear(){var t;for(const n in y(this,xo)){const{data:s}=y(this,xo)[n];(t=s==null?void 0:s.bitmap)==null||t.close()}q(this,xo,Object.create(null))}*[Symbol.iterator](){for(const t in y(this,xo)){const{data:n}=y(this,xo)[t];n!==Iv&&(yield[t,n])}}}xo=new WeakMap,xm=new WeakSet,f_=function(t){var n;return(n=y(this,xo))[t]||(n[t]={...Promise.withResolvers(),data:Iv})};class m4e{constructor(t){ne(this,jc,null);q(this,jc,t),this.onContinue=null}get promise(){return y(this,jc).capability.promise}cancel(t=0){y(this,jc).cancel(null,t)}get separateAnnots(){const{separateAnnots:t}=y(this,jc).operatorList;if(!t)return!1;const{annotationCanvasMap:n}=y(this,jc);return t.form||t.canvas&&(n==null?void 0:n.size)>0}}jc=new WeakMap;const Md=class Md{constructor({callback:t,params:n,objs:s,commonObjs:a,annotationCanvasMap:o,operatorList:r,pageIndex:i,canvasFactory:l,filterFactory:c,useRequestAnimationFrame:u=!1,pdfBug:f=!1,pageColors:h=null}){ne(this,Kc,null);this.callback=t,this.params=n,this.objs=s,this.commonObjs=a,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=r,this._pageIndex=i,this.canvasFactory=l,this.filterFactory=c,this._pdfBug=f,this.pageColors=h,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=u===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new m4e(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:t=!1,optionalContentConfig:n}){var i,l;if(this.cancelled)return;if(this._canvas){if(y(Md,Td).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");y(Md,Td).add(this._canvas)}this._pdfBug&&((i=globalThis.StepperManager)!=null&&i.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:s,viewport:a,transform:o,background:r}=this.params;this.gfx=new ph(s,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:n},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:o,viewport:a,transparency:t,background:r}),this.operatorListIdx=0,this.graphicsReady=!0,(l=this.graphicsReadyCallback)==null||l.call(this)}cancel(t=null,n=0){var s;this.running=!1,this.cancelled=!0,(s=this.gfx)==null||s.endDrawing(),y(this,Kc)&&(window.cancelAnimationFrame(y(this,Kc)),q(this,Kc,null)),y(Md,Td).delete(this._canvas),this.callback(t||new aw(`Rendering cancelled, page ${this._pageIndex+1}`,n))}operatorListChanged(){var t;if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}(t=this.stepper)==null||t.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?q(this,Kc,window.requestAnimationFrame(()=>{q(this,Kc,null),this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),y(Md,Td).delete(this._canvas),this.callback())))}};Kc=new WeakMap,Td=new WeakMap,ne(Md,Td,new WeakSet);let _w=Md;const g4e="4.10.38",b4e="f9bea397f";function JP(e){return Math.floor(Math.max(0,Math.min(1,e))*255).toString(16).padStart(2,"0")}function Ov(e){return Math.max(0,Math.min(255,255*e))}class ZP{static CMYK_G([t,n,s,a]){return["G",1-Math.min(1,.3*t+.59*s+.11*n+a)]}static G_CMYK([t]){return["CMYK",0,0,0,1-t]}static G_RGB([t]){return["RGB",t,t,t]}static G_rgb([t]){return t=Ov(t),[t,t,t]}static G_HTML([t]){const n=JP(t);return`#${n}${n}${n}`}static RGB_G([t,n,s]){return["G",.3*t+.59*n+.11*s]}static RGB_rgb(t){return t.map(Ov)}static RGB_HTML(t){return`#${t.map(JP).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([t,n,s,a]){return["RGB",1-Math.min(1,t+a),1-Math.min(1,s+a),1-Math.min(1,n+a)]}static CMYK_rgb([t,n,s,a]){return[Ov(1-Math.min(1,t+a)),Ov(1-Math.min(1,s+a)),Ov(1-Math.min(1,n+a))]}static CMYK_HTML(t){const n=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(n)}static RGB_CMYK([t,n,s]){const a=1-t,o=1-n,r=1-s,i=Math.min(a,o,r);return["CMYK",a,o,r,i]}}class y4e{create(t,n,s=!1){if(t<=0||n<=0)throw new Error("Invalid SVG dimensions");const a=this._createSVG("svg:svg");return a.setAttribute("version","1.1"),s||(a.setAttribute("width",`${t}px`),a.setAttribute("height",`${n}px`)),a.setAttribute("preserveAspectRatio","none"),a.setAttribute("viewBox",`0 0 ${t} ${n}`),a}createElement(t){if(typeof t!="string")throw new Error("Invalid SVG element type");return this._createSVG(t)}_createSVG(t){Un("Abstract method `_createSVG` called.")}}class Cw extends y4e{_createSVG(t){return document.createElementNS(fl,t)}}class QP{static setupStorage(t,n,s,a,o){const r=a.getValue(n,{value:null});switch(s.name){case"textarea":if(r.value!==null&&(t.textContent=r.value),o==="print")break;t.addEventListener("input",i=>{a.setValue(n,{value:i.target.value})});break;case"input":if(s.attributes.type==="radio"||s.attributes.type==="checkbox"){if(r.value===s.attributes.xfaOn?t.setAttribute("checked",!0):r.value===s.attributes.xfaOff&&t.removeAttribute("checked"),o==="print")break;t.addEventListener("change",i=>{a.setValue(n,{value:i.target.checked?i.target.getAttribute("xfaOn"):i.target.getAttribute("xfaOff")})})}else{if(r.value!==null&&t.setAttribute("value",r.value),o==="print")break;t.addEventListener("input",i=>{a.setValue(n,{value:i.target.value})})}break;case"select":if(r.value!==null){t.setAttribute("value",r.value);for(const i of s.children)i.attributes.value===r.value?i.attributes.selected=!0:i.attributes.hasOwnProperty("selected")&&delete i.attributes.selected}t.addEventListener("input",i=>{const l=i.target.options,c=l.selectedIndex===-1?"":l[l.selectedIndex].value;a.setValue(n,{value:c})});break}}static setAttributes({html:t,element:n,storage:s=null,intent:a,linkService:o}){const{attributes:r}=n,i=t instanceof HTMLAnchorElement;r.type==="radio"&&(r.name=`${r.name}-${a}`);for(const[l,c]of Object.entries(r))if(c!=null)switch(l){case"class":c.length&&t.setAttribute(l,c.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",c);break;case"style":Object.assign(t.style,c);break;case"textContent":t.textContent=c;break;default:(!i||l!=="href"&&l!=="newWindow")&&t.setAttribute(l,c)}i&&o.addLinkAttributes(t,r.href,r.newWindow),s&&r.dataId&&this.setupStorage(t,r.dataId,n,s)}static render(t){var f,h;const n=t.annotationStorage,s=t.linkService,a=t.xfaHtml,o=t.intent||"display",r=document.createElement(a.name);a.attributes&&this.setAttributes({html:r,element:a,intent:o,linkService:s});const i=o!=="richText",l=t.div;if(l.append(r),t.viewport){const p=`matrix(${t.viewport.transform.join(",")})`;l.style.transform=p}i&&l.setAttribute("class","xfaLayer xfaFont");const c=[];if(a.children.length===0){if(a.value){const p=document.createTextNode(a.value);r.append(p),i&&Rv.shouldBuildText(a.name)&&c.push(p)}return{textDivs:c}}const u=[[a,-1,r]];for(;u.length>0;){const[p,v,m]=u.at(-1);if(v+1===p.children.length){u.pop();continue}const g=p.children[++u.at(-1)[1]];if(g===null)continue;const{name:b}=g;if(b==="#text"){const w=document.createTextNode(g.value);c.push(w),m.append(w);continue}const C=(f=g==null?void 0:g.attributes)!=null&&f.xmlns?document.createElementNS(g.attributes.xmlns,b):document.createElement(b);if(m.append(C),g.attributes&&this.setAttributes({html:C,element:g,storage:n,intent:o,linkService:s}),((h=g.children)==null?void 0:h.length)>0)u.push([g,-1,C]);else if(g.value){const w=document.createTextNode(g.value);i&&Rv.shouldBuildText(b)&&c.push(w),C.append(w)}}for(const p of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))p.setAttribute("readOnly",!0);return{textDivs:c}}static update(t){const n=`matrix(${t.viewport.transform.join(",")})`;t.div.style.transform=n,t.div.hidden=!1}}const Lv=1e3,w4e=9,qu=new WeakSet;function kc(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class _4e{static create(t){switch(t.data.annotationType){case Os.LINK:return new eR(t);case Os.TEXT:return new C4e(t);case Os.WIDGET:switch(t.data.fieldType){case"Tx":return new S4e(t);case"Btn":return t.data.radioButton?new tR(t):t.data.checkBox?new k4e(t):new E4e(t);case"Ch":return new A4e(t);case"Sig":return new x4e(t)}return new Gu(t);case Os.POPUP:return new Sw(t);case Os.FREETEXT:return new nR(t);case Os.LINE:return new M4e(t);case Os.SQUARE:return new P4e(t);case Os.CIRCLE:return new R4e(t);case Os.POLYLINE:return new sR(t);case Os.CARET:return new O4e(t);case Os.INK:return new xw(t);case Os.POLYGON:return new I4e(t);case Os.HIGHLIGHT:return new aR(t);case Os.UNDERLINE:return new L4e(t);case Os.SQUIGGLY:return new N4e(t);case Os.STRIKEOUT:return new $4e(t);case Os.STAMP:return new oR(t);case Os.FILEATTACHMENT:return new D4e(t);default:return new gs(t)}}}const Dw=class Dw{constructor(t,{isRenderable:n=!1,ignoreBorder:s=!1,createQuadrilaterals:a=!1}={}){ne(this,km);ne(this,Pd,null);ne(this,qh,!1);ne(this,Gh,null);this.isRenderable=n,this.data=t.data,this.layer=t.layer,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderForms=t.renderForms,this.svgFactory=t.svgFactory,this.annotationStorage=t.annotationStorage,this.enableScripting=t.enableScripting,this.hasJSActions=t.hasJSActions,this._fieldObjects=t.fieldObjects,this.parent=t.parent,n&&(this.container=this._createContainer(s)),a&&this._createQuadrilaterals()}static _hasPopupData({titleObj:t,contentsObj:n,richText:s}){return!!(t!=null&&t.str||n!=null&&n.str||s!=null&&s.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return Dw._hasPopupData(this.data)}updateEdited(t){var s;if(!this.container)return;y(this,Pd)||q(this,Pd,{rect:this.data.rect.slice(0)});const{rect:n}=t;n&&oe(this,km,h_).call(this,n),(s=y(this,Gh))==null||s.popup.updateEdited(t)}resetEdited(){var t;y(this,Pd)&&(oe(this,km,h_).call(this,y(this,Pd).rect),(t=y(this,Gh))==null||t.popup.resetEdited(),q(this,Pd,null))}_createContainer(t){const{data:n,parent:{page:s,viewport:a}}=this,o=document.createElement("section");o.setAttribute("data-annotation-id",n.id),this instanceof Gu||(o.tabIndex=Lv);const{style:r}=o;if(r.zIndex=this.parent.zIndex++,n.alternativeText&&(o.title=n.alternativeText),n.noRotate&&o.classList.add("norotate"),!n.rect||this instanceof Sw){const{rotation:m}=n;return!n.hasOwnCanvas&&m!==0&&this.setRotation(m,o),o}const{width:i,height:l}=kc(n.rect);if(!t&&n.borderStyle.width>0){r.borderWidth=`${n.borderStyle.width}px`;const m=n.borderStyle.horizontalCornerRadius,g=n.borderStyle.verticalCornerRadius;if(m>0||g>0){const C=`calc(${m}px * var(--scale-factor)) / calc(${g}px * var(--scale-factor))`;r.borderRadius=C}else if(this instanceof tR){const C=`calc(${i}px * var(--scale-factor)) / calc(${l}px * var(--scale-factor))`;r.borderRadius=C}switch(n.borderStyle.style){case Sv.SOLID:r.borderStyle="solid";break;case Sv.DASHED:r.borderStyle="dashed";break;case Sv.BEVELED:fn("Unimplemented border style: beveled");break;case Sv.INSET:fn("Unimplemented border style: inset");break;case Sv.UNDERLINE:r.borderBottomStyle="solid";break}const b=n.borderColor||null;b?(q(this,qh,!0),r.borderColor=zt.makeHexColor(b[0]|0,b[1]|0,b[2]|0)):r.borderWidth=0}const c=zt.normalizeRect([n.rect[0],s.view[3]-n.rect[1]+s.view[1],n.rect[2],s.view[3]-n.rect[3]+s.view[1]]),{pageWidth:u,pageHeight:f,pageX:h,pageY:p}=a.rawDims;r.left=`${100*(c[0]-h)/u}%`,r.top=`${100*(c[1]-p)/f}%`;const{rotation:v}=n;return n.hasOwnCanvas||v===0?(r.width=`${100*i/u}%`,r.height=`${100*l/f}%`):this.setRotation(v,o),o}setRotation(t,n=this.container){if(!this.data.rect)return;const{pageWidth:s,pageHeight:a}=this.parent.viewport.rawDims,{width:o,height:r}=kc(this.data.rect);let i,l;t%180===0?(i=100*o/s,l=100*r/a):(i=100*r/s,l=100*o/a),n.style.width=`${i}%`,n.style.height=`${l}%`,n.setAttribute("data-main-rotation",(360-t)%360)}get _commonActions(){const t=(n,s,a)=>{const o=a.detail[n],r=o[0],i=o.slice(1);a.target.style[s]=ZP[`${r}_HTML`](i),this.annotationStorage.setValue(this.data.id,{[s]:ZP[`${r}_rgb`](i)})};return mn(this,"_commonActions",{display:n=>{const{display:s}=n.detail,a=s%2===1;this.container.style.visibility=a?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:a,noPrint:s===1||s===2})},print:n=>{this.annotationStorage.setValue(this.data.id,{noPrint:!n.detail.print})},hidden:n=>{const{hidden:s}=n.detail;this.container.style.visibility=s?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:s,noView:s})},focus:n=>{setTimeout(()=>n.target.focus({preventScroll:!1}),0)},userName:n=>{n.target.title=n.detail.userName},readonly:n=>{n.target.disabled=n.detail.readonly},required:n=>{this._setRequired(n.target,n.detail.required)},bgColor:n=>{t("bgColor","backgroundColor",n)},fillColor:n=>{t("fillColor","backgroundColor",n)},fgColor:n=>{t("fgColor","color",n)},textColor:n=>{t("textColor","color",n)},borderColor:n=>{t("borderColor","borderColor",n)},strokeColor:n=>{t("strokeColor","borderColor",n)},rotation:n=>{const s=n.detail.rotation;this.setRotation(s),this.annotationStorage.setValue(this.data.id,{rotation:s})}})}_dispatchEventFromSandbox(t,n){const s=this._commonActions;for(const a of Object.keys(n.detail)){const o=t[a]||s[a];o==null||o(n)}}_setDefaultPropertiesFromJS(t){if(!this.enableScripting)return;const n=this.annotationStorage.getRawValue(this.data.id);if(!n)return;const s=this._commonActions;for(const[a,o]of Object.entries(n)){const r=s[a];if(r){const i={detail:{[a]:o},target:t};r(i),delete n[a]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:t}=this.data;if(!t)return;const[n,s,a,o]=this.data.rect.map(m=>Math.fround(m));if(t.length===8){const[m,g,b,C]=t.subarray(2,6);if(a===m&&o===g&&n===b&&s===C)return}const{style:r}=this.container;let i;if(y(this,qh)){const{borderColor:m,borderWidth:g}=r;r.borderWidth=0,i=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${m}" stroke-width="${g}">`],this.container.classList.add("hasBorder")}const l=a-n,c=o-s,{svgFactory:u}=this,f=u.createElement("svg");f.classList.add("quadrilateralsContainer"),f.setAttribute("width",0),f.setAttribute("height",0);const h=u.createElement("defs");f.append(h);const p=u.createElement("clipPath"),v=`clippath_${this.data.id}`;p.setAttribute("id",v),p.setAttribute("clipPathUnits","objectBoundingBox"),h.append(p);for(let m=2,g=t.length;m<g;m+=8){const b=t[m],C=t[m+1],w=t[m+2],_=t[m+3],x=u.createElement("rect"),k=(w-n)/l,T=(o-C)/c,R=(b-w)/l,I=(C-_)/c;x.setAttribute("x",k),x.setAttribute("y",T),x.setAttribute("width",R),x.setAttribute("height",I),p.append(x),i==null||i.push(`<rect vector-effect="non-scaling-stroke" x="${k}" y="${T}" width="${R}" height="${I}"/>`)}y(this,qh)&&(i.push("</g></svg>')"),r.backgroundImage=i.join("")),this.container.append(f),this.container.style.clipPath=`url(#${v})`}_createPopup(){const{data:t}=this,n=q(this,Gh,new Sw({data:{color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,parentRect:t.rect,borderStyle:0,id:`popup_${t.id}`,rotation:t.rotation},parent:this.parent,elements:[this]}));this.parent.div.append(n.render())}render(){Un("Abstract method `AnnotationElement.render` called")}_getElementsByName(t,n=null){const s=[];if(this._fieldObjects){const a=this._fieldObjects[t];if(a)for(const{page:o,id:r,exportValues:i}of a){if(o===-1||r===n)continue;const l=typeof i=="string"?i:null,c=document.querySelector(`[data-element-id="${r}"]`);if(c&&!qu.has(c)){fn(`_getElementsByName - element not allowed: ${r}`);continue}s.push({id:r,exportValue:l,domElement:c})}return s}for(const a of document.getElementsByName(t)){const{exportValue:o}=a,r=a.getAttribute("data-element-id");r!==n&&qu.has(a)&&s.push({id:r,exportValue:o,domElement:a})}return s}show(){var t;this.container&&(this.container.hidden=!1),(t=this.popup)==null||t.maybeShow()}hide(){var t;this.container&&(this.container.hidden=!0),(t=this.popup)==null||t.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const t=this.getElementsToTriggerPopup();if(Array.isArray(t))for(const n of t)n.classList.add("highlightArea");else t.classList.add("highlightArea")}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:t,data:{id:n}}=this;this.container.addEventListener("dblclick",()=>{var s;(s=this.linkService.eventBus)==null||s.dispatch("switchannotationeditormode",{source:this,mode:t,editId:n})})}};Pd=new WeakMap,qh=new WeakMap,Gh=new WeakMap,km=new WeakSet,h_=function(t){const{container:{style:n},data:{rect:s,rotation:a},parent:{viewport:{rawDims:{pageWidth:o,pageHeight:r,pageX:i,pageY:l}}}}=this;s==null||s.splice(0,4,...t);const{width:c,height:u}=kc(t);n.left=`${100*(t[0]-i)/o}%`,n.top=`${100*(r-t[3]+l)/r}%`,a===0?(n.width=`${100*c/o}%`,n.height=`${100*u/r}%`):this.setRotation(a)};let gs=Dw;class eR extends gs{constructor(n,s=null){super(n,{isRenderable:!0,ignoreBorder:!!(s!=null&&s.ignoreBorder),createQuadrilaterals:!0});ne(this,ko);this.isTooltipOnly=n.data.isTooltipOnly}render(){const{data:n,linkService:s}=this,a=document.createElement("a");a.setAttribute("data-element-id",n.id);let o=!1;return n.url?(s.addLinkAttributes(a,n.url,n.newWindow),o=!0):n.action?(this._bindNamedAction(a,n.action),o=!0):n.attachment?(oe(this,ko,GR).call(this,a,n.attachment,n.attachmentDest),o=!0):n.setOCGState?(oe(this,ko,YR).call(this,a,n.setOCGState),o=!0):n.dest?(this._bindLink(a,n.dest),o=!0):(n.actions&&(n.actions.Action||n.actions["Mouse Up"]||n.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(a,n),o=!0),n.resetForm?(this._bindResetFormAction(a,n.resetForm),o=!0):this.isTooltipOnly&&!o&&(this._bindLink(a,""),o=!0)),this.container.classList.add("linkAnnotation"),o&&this.container.append(a),this.container}_bindLink(n,s){n.href=this.linkService.getDestinationHash(s),n.onclick=()=>(s&&this.linkService.goToDestination(s),!1),(s||s==="")&&oe(this,ko,af).call(this)}_bindNamedAction(n,s){n.href=this.linkService.getAnchorUrl(""),n.onclick=()=>(this.linkService.executeNamedAction(s),!1),oe(this,ko,af).call(this)}_bindJSAction(n,s){n.href=this.linkService.getAnchorUrl("");const a=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const o of Object.keys(s.actions)){const r=a.get(o);r&&(n[r]=()=>{var i;return(i=this.linkService.eventBus)==null||i.dispatch("dispatcheventinsandbox",{source:this,detail:{id:s.id,name:o}}),!1})}n.onclick||(n.onclick=()=>!1),oe(this,ko,af).call(this)}_bindResetFormAction(n,s){const a=n.onclick;if(a||(n.href=this.linkService.getAnchorUrl("")),oe(this,ko,af).call(this),!this._fieldObjects){fn('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),a||(n.onclick=()=>!1);return}n.onclick=()=>{var f;a==null||a();const{fields:o,refs:r,include:i}=s,l=[];if(o.length!==0||r.length!==0){const h=new Set(r);for(const p of o){const v=this._fieldObjects[p]||[];for(const{id:m}of v)h.add(m)}for(const p of Object.values(this._fieldObjects))for(const v of p)h.has(v.id)===i&&l.push(v)}else for(const h of Object.values(this._fieldObjects))l.push(...h);const c=this.annotationStorage,u=[];for(const h of l){const{id:p}=h;switch(u.push(p),h.type){case"text":{const m=h.defaultValue||"";c.setValue(p,{value:m});break}case"checkbox":case"radiobutton":{const m=h.defaultValue===h.exportValues;c.setValue(p,{value:m});break}case"combobox":case"listbox":{const m=h.defaultValue||"";c.setValue(p,{value:m});break}default:continue}const v=document.querySelector(`[data-element-id="${p}"]`);if(v){if(!qu.has(v)){fn(`_bindResetFormAction - element not allowed: ${p}`);continue}}else continue;v.dispatchEvent(new Event("resetform"))}return this.enableScripting&&((f=this.linkService.eventBus)==null||f.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:u,name:"ResetForm"}})),!1}}}ko=new WeakSet,af=function(){this.container.setAttribute("data-internal-link","")},GR=function(n,s,a=null){n.href=this.linkService.getAnchorUrl(""),s.description&&(n.title=s.description),n.onclick=()=>{var o;return(o=this.downloadManager)==null||o.openOrDownloadData(s.content,s.filename,a),!1},oe(this,ko,af).call(this)},YR=function(n,s){n.href=this.linkService.getAnchorUrl(""),n.onclick=()=>(this.linkService.executeSetOCGState(s),!1),oe(this,ko,af).call(this)};class C4e extends gs{constructor(t){super(t,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const t=document.createElement("img");return t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),t.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(t),this.container}}class Gu extends gs{render(){return this.container}showElementAndHideCanvas(t){var n;this.data.hasOwnCanvas&&(((n=t.previousSibling)==null?void 0:n.nodeName)==="CANVAS"&&(t.previousSibling.hidden=!0),t.hidden=!1)}_getKeyModifier(t){return Na.platform.isMac?t.metaKey:t.ctrlKey}_setEventListener(t,n,s,a,o){s.includes("mouse")?t.addEventListener(s,r=>{var i;(i=this.linkService.eventBus)==null||i.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:a,value:o(r),shift:r.shiftKey,modifier:this._getKeyModifier(r)}})}):t.addEventListener(s,r=>{var i;if(s==="blur"){if(!n.focused||!r.relatedTarget)return;n.focused=!1}else if(s==="focus"){if(n.focused)return;n.focused=!0}o&&((i=this.linkService.eventBus)==null||i.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:a,value:o(r)}}))})}_setEventListeners(t,n,s,a){var o,r,i;for(const[l,c]of s)(c==="Action"||(o=this.data.actions)!=null&&o[c])&&((c==="Focus"||c==="Blur")&&(n||(n={focused:!1})),this._setEventListener(t,n,l,c,a),c==="Focus"&&!((r=this.data.actions)!=null&&r.Blur)?this._setEventListener(t,n,"blur","Blur",null):c==="Blur"&&!((i=this.data.actions)!=null&&i.Focus)&&this._setEventListener(t,n,"focus","Focus",null))}_setBackgroundColor(t){const n=this.data.backgroundColor||null;t.style.backgroundColor=n===null?"transparent":zt.makeHexColor(n[0],n[1],n[2])}_setTextStyle(t){const n=["left","center","right"],{fontColor:s}=this.data.defaultAppearanceData,a=this.data.defaultAppearanceData.fontSize||w4e,o=t.style;let r;const i=2,l=c=>Math.round(10*c)/10;if(this.data.multiLine){const c=Math.abs(this.data.rect[3]-this.data.rect[1]-i),u=Math.round(c/(J8*a))||1,f=c/u;r=Math.min(a,l(f/J8))}else{const c=Math.abs(this.data.rect[3]-this.data.rect[1]-i);r=Math.min(a,l(c/J8))}o.fontSize=`calc(${r}px * var(--scale-factor))`,o.color=zt.makeHexColor(s[0],s[1],s[2]),this.data.textAlignment!==null&&(o.textAlign=n[this.data.textAlignment])}_setRequired(t,n){n?t.setAttribute("required",!0):t.removeAttribute("required"),t.setAttribute("aria-required",n)}}class S4e extends Gu{constructor(t){const n=t.renderForms||t.data.hasOwnCanvas||!t.data.hasAppearance&&!!t.data.fieldValue;super(t,{isRenderable:n})}setPropertyOnSiblings(t,n,s,a){const o=this.annotationStorage;for(const r of this._getElementsByName(t.name,t.id))r.domElement&&(r.domElement[n]=s),o.setValue(r.id,{[a]:s})}render(){var a,o;const t=this.annotationStorage,n=this.data.id;this.container.classList.add("textWidgetAnnotation");let s=null;if(this.renderForms){const r=t.getValue(n,{value:this.data.fieldValue});let i=r.value||"";const l=t.getValue(n,{charLimit:this.data.maxLen}).charLimit;l&&i.length>l&&(i=i.slice(0,l));let c=r.formattedValue||((a=this.data.textContent)==null?void 0:a.join(`
|
||
`))||null;c&&this.data.comb&&(c=c.replaceAll(/\s+/g,""));const u={userValue:i,formattedValue:c,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(s=document.createElement("textarea"),s.textContent=c??i,this.data.doNotScroll&&(s.style.overflowY="hidden")):(s=document.createElement("input"),s.type="text",s.setAttribute("value",c??i),this.data.doNotScroll&&(s.style.overflowX="hidden")),this.data.hasOwnCanvas&&(s.hidden=!0),qu.add(s),s.setAttribute("data-element-id",n),s.disabled=this.data.readOnly,s.name=this.data.fieldName,s.tabIndex=Lv,this._setRequired(s,this.data.required),l&&(s.maxLength=l),s.addEventListener("input",h=>{t.setValue(n,{value:h.target.value}),this.setPropertyOnSiblings(s,"value",h.target.value,"value"),u.formattedValue=null}),s.addEventListener("resetform",h=>{const p=this.data.defaultFieldValue??"";s.value=u.userValue=p,u.formattedValue=null});let f=h=>{const{formattedValue:p}=u;p!=null&&(h.target.value=p),h.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){s.addEventListener("focus",p=>{var m;if(u.focused)return;const{target:v}=p;u.userValue&&(v.value=u.userValue),u.lastCommittedValue=v.value,u.commitKey=1,(m=this.data.actions)!=null&&m.Focus||(u.focused=!0)}),s.addEventListener("updatefromsandbox",p=>{this.showElementAndHideCanvas(p.target);const v={value(m){u.userValue=m.detail.value??"",t.setValue(n,{value:u.userValue.toString()}),m.target.value=u.userValue},formattedValue(m){const{formattedValue:g}=m.detail;u.formattedValue=g,g!=null&&m.target!==document.activeElement&&(m.target.value=g),t.setValue(n,{formattedValue:g})},selRange(m){m.target.setSelectionRange(...m.detail.selRange)},charLimit:m=>{var w;const{charLimit:g}=m.detail,{target:b}=m;if(g===0){b.removeAttribute("maxLength");return}b.setAttribute("maxLength",g);let C=u.userValue;!C||C.length<=g||(C=C.slice(0,g),b.value=u.userValue=C,t.setValue(n,{value:C}),(w=this.linkService.eventBus)==null||w.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:C,willCommit:!0,commitKey:1,selStart:b.selectionStart,selEnd:b.selectionEnd}}))}};this._dispatchEventFromSandbox(v,p)}),s.addEventListener("keydown",p=>{var g;u.commitKey=1;let v=-1;if(p.key==="Escape"?v=0:p.key==="Enter"&&!this.data.multiLine?v=2:p.key==="Tab"&&(u.commitKey=3),v===-1)return;const{value:m}=p.target;u.lastCommittedValue!==m&&(u.lastCommittedValue=m,u.userValue=m,(g=this.linkService.eventBus)==null||g.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:m,willCommit:!0,commitKey:v,selStart:p.target.selectionStart,selEnd:p.target.selectionEnd}}))});const h=f;f=null,s.addEventListener("blur",p=>{var m,g;if(!u.focused||!p.relatedTarget)return;(m=this.data.actions)!=null&&m.Blur||(u.focused=!1);const{value:v}=p.target;u.userValue=v,u.lastCommittedValue!==v&&((g=this.linkService.eventBus)==null||g.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:v,willCommit:!0,commitKey:u.commitKey,selStart:p.target.selectionStart,selEnd:p.target.selectionEnd}})),h(p)}),(o=this.data.actions)!=null&&o.Keystroke&&s.addEventListener("beforeinput",p=>{var x;u.lastCommittedValue=null;const{data:v,target:m}=p,{value:g,selectionStart:b,selectionEnd:C}=m;let w=b,_=C;switch(p.inputType){case"deleteWordBackward":{const k=g.substring(0,b).match(/\w*[^\w]*$/);k&&(w-=k[0].length);break}case"deleteWordForward":{const k=g.substring(b).match(/^[^\w]*\w*/);k&&(_+=k[0].length);break}case"deleteContentBackward":b===C&&(w-=1);break;case"deleteContentForward":b===C&&(_+=1);break}p.preventDefault(),(x=this.linkService.eventBus)==null||x.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:g,change:v||"",willCommit:!1,selStart:w,selEnd:_}})}),this._setEventListeners(s,u,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],p=>p.target.value)}if(f&&s.addEventListener("blur",f),this.data.comb){const p=(this.data.rect[2]-this.data.rect[0])/l;s.classList.add("comb"),s.style.letterSpacing=`calc(${p}px * var(--scale-factor) - 1ch)`}}else s=document.createElement("div"),s.textContent=this.data.fieldValue,s.style.verticalAlign="middle",s.style.display="table-cell",this.data.hasOwnCanvas&&(s.hidden=!0);return this._setTextStyle(s),this._setBackgroundColor(s),this._setDefaultPropertiesFromJS(s),this.container.append(s),this.container}}class x4e extends Gu{constructor(t){super(t,{isRenderable:!!t.data.hasOwnCanvas})}}class k4e extends Gu{constructor(t){super(t,{isRenderable:t.renderForms})}render(){const t=this.annotationStorage,n=this.data,s=n.id;let a=t.getValue(s,{value:n.exportValue===n.fieldValue}).value;typeof a=="string"&&(a=a!=="Off",t.setValue(s,{value:a})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const o=document.createElement("input");return qu.add(o),o.setAttribute("data-element-id",s),o.disabled=n.readOnly,this._setRequired(o,this.data.required),o.type="checkbox",o.name=n.fieldName,a&&o.setAttribute("checked",!0),o.setAttribute("exportValue",n.exportValue),o.tabIndex=Lv,o.addEventListener("change",r=>{const{name:i,checked:l}=r.target;for(const c of this._getElementsByName(i,s)){const u=l&&c.exportValue===n.exportValue;c.domElement&&(c.domElement.checked=u),t.setValue(c.id,{value:u})}t.setValue(s,{value:l})}),o.addEventListener("resetform",r=>{const i=n.defaultFieldValue||"Off";r.target.checked=i===n.exportValue}),this.enableScripting&&this.hasJSActions&&(o.addEventListener("updatefromsandbox",r=>{const i={value(l){l.target.checked=l.detail.value!=="Off",t.setValue(s,{value:l.target.checked})}};this._dispatchEventFromSandbox(i,r)}),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],r=>r.target.checked)),this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class tR extends Gu{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const t=this.annotationStorage,n=this.data,s=n.id;let a=t.getValue(s,{value:n.fieldValue===n.buttonValue}).value;if(typeof a=="string"&&(a=a!==n.buttonValue,t.setValue(s,{value:a})),a)for(const r of this._getElementsByName(n.fieldName,s))t.setValue(r.id,{value:!1});const o=document.createElement("input");if(qu.add(o),o.setAttribute("data-element-id",s),o.disabled=n.readOnly,this._setRequired(o,this.data.required),o.type="radio",o.name=n.fieldName,a&&o.setAttribute("checked",!0),o.tabIndex=Lv,o.addEventListener("change",r=>{const{name:i,checked:l}=r.target;for(const c of this._getElementsByName(i,s))t.setValue(c.id,{value:!1});t.setValue(s,{value:l})}),o.addEventListener("resetform",r=>{const i=n.defaultFieldValue;r.target.checked=i!=null&&i===n.buttonValue}),this.enableScripting&&this.hasJSActions){const r=n.buttonValue;o.addEventListener("updatefromsandbox",i=>{const l={value:c=>{const u=r===c.detail.value;for(const f of this._getElementsByName(c.target.name)){const h=u&&f.id===s;f.domElement&&(f.domElement.checked=h),t.setValue(f.id,{value:h})}}};this._dispatchEventFromSandbox(l,i)}),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],i=>i.target.checked)}return this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class E4e extends eR{constructor(t){super(t,{ignoreBorder:t.data.hasAppearance})}render(){const t=super.render();t.classList.add("buttonWidgetAnnotation","pushButton");const n=t.lastChild;return this.enableScripting&&this.hasJSActions&&n&&(this._setDefaultPropertiesFromJS(n),n.addEventListener("updatefromsandbox",s=>{this._dispatchEventFromSandbox({},s)})),t}}class A4e extends Gu{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const t=this.annotationStorage,n=this.data.id,s=t.getValue(n,{value:this.data.fieldValue}),a=document.createElement("select");qu.add(a),a.setAttribute("data-element-id",n),a.disabled=this.data.readOnly,this._setRequired(a,this.data.required),a.name=this.data.fieldName,a.tabIndex=Lv;let o=this.data.combo&&this.data.options.length>0;this.data.combo||(a.size=this.data.options.length,this.data.multiSelect&&(a.multiple=!0)),a.addEventListener("resetform",u=>{const f=this.data.defaultFieldValue;for(const h of a.options)h.selected=h.value===f});for(const u of this.data.options){const f=document.createElement("option");f.textContent=u.displayValue,f.value=u.exportValue,s.value.includes(u.exportValue)&&(f.setAttribute("selected",!0),o=!1),a.append(f)}let r=null;if(o){const u=document.createElement("option");u.value=" ",u.setAttribute("hidden",!0),u.setAttribute("selected",!0),a.prepend(u),r=()=>{u.remove(),a.removeEventListener("input",r),r=null},a.addEventListener("input",r)}const i=u=>{const f=u?"value":"textContent",{options:h,multiple:p}=a;return p?Array.prototype.filter.call(h,v=>v.selected).map(v=>v[f]):h.selectedIndex===-1?null:h[h.selectedIndex][f]};let l=i(!1);const c=u=>{const f=u.target.options;return Array.prototype.map.call(f,h=>({displayValue:h.textContent,exportValue:h.value}))};return this.enableScripting&&this.hasJSActions?(a.addEventListener("updatefromsandbox",u=>{const f={value(h){r==null||r();const p=h.detail.value,v=new Set(Array.isArray(p)?p:[p]);for(const m of a.options)m.selected=v.has(m.value);t.setValue(n,{value:i(!0)}),l=i(!1)},multipleSelection(h){a.multiple=!0},remove(h){const p=a.options,v=h.detail.remove;p[v].selected=!1,a.remove(v),p.length>0&&Array.prototype.findIndex.call(p,g=>g.selected)===-1&&(p[0].selected=!0),t.setValue(n,{value:i(!0),items:c(h)}),l=i(!1)},clear(h){for(;a.length!==0;)a.remove(0);t.setValue(n,{value:null,items:[]}),l=i(!1)},insert(h){const{index:p,displayValue:v,exportValue:m}=h.detail.insert,g=a.children[p],b=document.createElement("option");b.textContent=v,b.value=m,g?g.before(b):a.append(b),t.setValue(n,{value:i(!0),items:c(h)}),l=i(!1)},items(h){const{items:p}=h.detail;for(;a.length!==0;)a.remove(0);for(const v of p){const{displayValue:m,exportValue:g}=v,b=document.createElement("option");b.textContent=m,b.value=g,a.append(b)}a.options.length>0&&(a.options[0].selected=!0),t.setValue(n,{value:i(!0),items:c(h)}),l=i(!1)},indices(h){const p=new Set(h.detail.indices);for(const v of h.target.options)v.selected=p.has(v.index);t.setValue(n,{value:i(!0)}),l=i(!1)},editable(h){h.target.disabled=!h.detail.editable}};this._dispatchEventFromSandbox(f,u)}),a.addEventListener("input",u=>{var p;const f=i(!0),h=i(!1);t.setValue(n,{value:f}),u.preventDefault(),(p=this.linkService.eventBus)==null||p.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:l,change:h,changeEx:f,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(a,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],u=>u.target.value)):a.addEventListener("input",function(u){t.setValue(n,{value:i(!0)})}),this.data.combo&&this._setTextStyle(a),this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}}class Sw extends gs{constructor(t){const{data:n,elements:s}=t;super(t,{isRenderable:gs._hasPopupData(n)}),this.elements=s,this.popup=null}render(){this.container.classList.add("popupAnnotation");const t=this.popup=new T4e({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),n=[];for(const s of this.elements)s.popup=t,s.container.ariaHasPopup="dialog",n.push(s.data.id),s.addHighlightArea();return this.container.setAttribute("aria-controls",n.map(s=>`${sw}${s}`).join(",")),this.container}}class T4e{constructor({container:t,color:n,elements:s,titleObj:a,modificationDate:o,contentsObj:r,richText:i,parent:l,rect:c,parentRect:u,open:f}){ne(this,Wn);ne(this,Yh,oe(this,Wn,ZR).bind(this));ne(this,Lb,oe(this,Wn,v_).bind(this));ne(this,Nb,oe(this,Wn,a4).bind(this));ne(this,Xh,oe(this,Wn,s4).bind(this));ne(this,Rd,null);ne(this,ms,null);ne(this,Il,null);ne(this,Jh,null);ne(this,Em,null);ne(this,Am,null);ne(this,Zh,null);ne(this,Ol,!1);ne(this,Lr,null);ne(this,Ll,null);ne(this,Tm,null);ne(this,Nl,null);ne(this,Mm,null);ne(this,Id,null);ne(this,Od,!1);var h;q(this,ms,t),q(this,Mm,a),q(this,Il,r),q(this,Nl,i),q(this,Am,l),q(this,Rd,n),q(this,Tm,c),q(this,Zh,u),q(this,Em,s),q(this,Jh,rw.toDateObject(o)),this.trigger=s.flatMap(p=>p.getElementsToTriggerPopup());for(const p of this.trigger)p.addEventListener("click",y(this,Xh)),p.addEventListener("mouseenter",y(this,Nb)),p.addEventListener("mouseleave",y(this,Lb)),p.classList.add("popupTriggerArea");for(const p of s)(h=p.container)==null||h.addEventListener("keydown",y(this,Yh));y(this,ms).hidden=!0,f&&oe(this,Wn,s4).call(this)}render(){if(y(this,Lr))return;const t=q(this,Lr,document.createElement("div"));if(t.className="popup",y(this,Rd)){const o=t.style.outlineColor=zt.makeHexColor(...y(this,Rd));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?t.style.backgroundColor=`color-mix(in srgb, ${o} 30%, white)`:t.style.backgroundColor=zt.makeHexColor(...y(this,Rd).map(i=>Math.floor(.7*(255-i)+i)))}const n=document.createElement("span");n.className="header";const s=document.createElement("h1");if(n.append(s),{dir:s.dir,str:s.textContent}=y(this,Mm),t.append(n),y(this,Jh)){const o=document.createElement("span");o.classList.add("popupDate"),o.setAttribute("data-l10n-id","pdfjs-annotation-date-time-string"),o.setAttribute("data-l10n-args",JSON.stringify({dateObj:y(this,Jh).valueOf()})),n.append(o)}const a=y(this,Wn,n4);if(a)QP.render({xfaHtml:a,intent:"richText",div:t}),t.lastChild.classList.add("richText","popupContent");else{const o=this._formatContents(y(this,Il));t.append(o)}y(this,ms).append(t)}_formatContents({str:t,dir:n}){const s=document.createElement("p");s.classList.add("popupContent"),s.dir=n;const a=t.split(/(?:\r\n?|\n)/);for(let o=0,r=a.length;o<r;++o){const i=a[o];s.append(document.createTextNode(i)),o<r-1&&s.append(document.createElement("br"))}return s}updateEdited({rect:t,popupContent:n}){var s;y(this,Id)||q(this,Id,{contentsObj:y(this,Il),richText:y(this,Nl)}),t&&q(this,Ll,null),n&&(q(this,Nl,oe(this,Wn,JR).call(this,n)),q(this,Il,null)),(s=y(this,Lr))==null||s.remove(),q(this,Lr,null)}resetEdited(){var t;y(this,Id)&&({contentsObj:Ha(this,Il)._,richText:Ha(this,Nl)._}=y(this,Id),q(this,Id,null),(t=y(this,Lr))==null||t.remove(),q(this,Lr,null),q(this,Ll,null))}forceHide(){q(this,Od,this.isVisible),y(this,Od)&&(y(this,ms).hidden=!0)}maybeShow(){y(this,Od)&&(y(this,Lr)||oe(this,Wn,a4).call(this),q(this,Od,!1),y(this,ms).hidden=!1)}get isVisible(){return y(this,ms).hidden===!1}}Yh=new WeakMap,Lb=new WeakMap,Nb=new WeakMap,Xh=new WeakMap,Rd=new WeakMap,ms=new WeakMap,Il=new WeakMap,Jh=new WeakMap,Em=new WeakMap,Am=new WeakMap,Zh=new WeakMap,Ol=new WeakMap,Lr=new WeakMap,Ll=new WeakMap,Tm=new WeakMap,Nl=new WeakMap,Mm=new WeakMap,Id=new WeakMap,Od=new WeakMap,Wn=new WeakSet,n4=function(){const t=y(this,Nl),n=y(this,Il);return t!=null&&t.str&&(!(n!=null&&n.str)||n.str===t.str)&&y(this,Nl).html||null},p_=function(){var t,n,s;return((s=(n=(t=y(this,Wn,n4))==null?void 0:t.attributes)==null?void 0:n.style)==null?void 0:s.fontSize)||0},XR=function(){var t,n,s;return((s=(n=(t=y(this,Wn,n4))==null?void 0:t.attributes)==null?void 0:n.style)==null?void 0:s.color)||null},JR=function(t){const n=[],s={str:t,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:n}]}},a={style:{color:y(this,Wn,XR),fontSize:y(this,Wn,p_)?`calc(${y(this,Wn,p_)}px * var(--scale-factor))`:""}};for(const o of t.split(`
|
||
`))n.push({name:"span",value:o,attributes:a});return s},ZR=function(t){t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||(t.key==="Enter"||t.key==="Escape"&&y(this,Ol))&&oe(this,Wn,s4).call(this)},QR=function(){if(y(this,Ll)!==null)return;const{page:{view:t},viewport:{rawDims:{pageWidth:n,pageHeight:s,pageX:a,pageY:o}}}=y(this,Am);let r=!!y(this,Zh),i=r?y(this,Zh):y(this,Tm);for(const v of y(this,Em))if(!i||zt.intersect(v.data.rect,i)!==null){i=v.data.rect,r=!0;break}const l=zt.normalizeRect([i[0],t[3]-i[1]+t[1],i[2],t[3]-i[3]+t[1]]),u=r?i[2]-i[0]+5:0,f=l[0]+u,h=l[1];q(this,Ll,[100*(f-a)/n,100*(h-o)/s]);const{style:p}=y(this,ms);p.left=`${y(this,Ll)[0]}%`,p.top=`${y(this,Ll)[1]}%`},s4=function(){q(this,Ol,!y(this,Ol)),y(this,Ol)?(oe(this,Wn,a4).call(this),y(this,ms).addEventListener("click",y(this,Xh)),y(this,ms).addEventListener("keydown",y(this,Yh))):(oe(this,Wn,v_).call(this),y(this,ms).removeEventListener("click",y(this,Xh)),y(this,ms).removeEventListener("keydown",y(this,Yh)))},a4=function(){y(this,Lr)||this.render(),this.isVisible?y(this,Ol)&&y(this,ms).classList.add("focused"):(oe(this,Wn,QR).call(this),y(this,ms).hidden=!1,y(this,ms).style.zIndex=parseInt(y(this,ms).style.zIndex)+1e3)},v_=function(){y(this,ms).classList.remove("focused"),!(y(this,Ol)||!this.isVisible)&&(y(this,ms).hidden=!0,y(this,ms).style.zIndex=parseInt(y(this,ms).style.zIndex)-1e3)};class nR extends gs{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.textContent=t.data.textContent,this.textPosition=t.data.textPosition,this.annotationEditorType=dn.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const t=document.createElement("div");t.classList.add("annotationTextContent"),t.setAttribute("role","comment");for(const n of this.textContent){const s=document.createElement("span");s.textContent=n,t.append(s)}this.container.append(t)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}class M4e extends gs{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});ne(this,Pm,null)}render(){this.container.classList.add("lineAnnotation");const n=this.data,{width:s,height:a}=kc(n.rect),o=this.svgFactory.create(s,a,!0),r=q(this,Pm,this.svgFactory.createElement("svg:line"));return r.setAttribute("x1",n.rect[2]-n.lineCoordinates[0]),r.setAttribute("y1",n.rect[3]-n.lineCoordinates[1]),r.setAttribute("x2",n.rect[2]-n.lineCoordinates[2]),r.setAttribute("y2",n.rect[3]-n.lineCoordinates[3]),r.setAttribute("stroke-width",n.borderStyle.width||1),r.setAttribute("stroke","transparent"),r.setAttribute("fill","transparent"),o.append(r),this.container.append(o),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return y(this,Pm)}addHighlightArea(){this.container.classList.add("highlightArea")}}Pm=new WeakMap;class P4e extends gs{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});ne(this,Rm,null)}render(){this.container.classList.add("squareAnnotation");const n=this.data,{width:s,height:a}=kc(n.rect),o=this.svgFactory.create(s,a,!0),r=n.borderStyle.width,i=q(this,Rm,this.svgFactory.createElement("svg:rect"));return i.setAttribute("x",r/2),i.setAttribute("y",r/2),i.setAttribute("width",s-r),i.setAttribute("height",a-r),i.setAttribute("stroke-width",r||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","transparent"),o.append(i),this.container.append(o),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return y(this,Rm)}addHighlightArea(){this.container.classList.add("highlightArea")}}Rm=new WeakMap;class R4e extends gs{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});ne(this,Im,null)}render(){this.container.classList.add("circleAnnotation");const n=this.data,{width:s,height:a}=kc(n.rect),o=this.svgFactory.create(s,a,!0),r=n.borderStyle.width,i=q(this,Im,this.svgFactory.createElement("svg:ellipse"));return i.setAttribute("cx",s/2),i.setAttribute("cy",a/2),i.setAttribute("rx",s/2-r/2),i.setAttribute("ry",a/2-r/2),i.setAttribute("stroke-width",r||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","transparent"),o.append(i),this.container.append(o),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return y(this,Im)}addHighlightArea(){this.container.classList.add("highlightArea")}}Im=new WeakMap;class sR extends gs{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});ne(this,Om,null);this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const{data:{rect:n,vertices:s,borderStyle:a,popupRef:o}}=this;if(!s)return this.container;const{width:r,height:i}=kc(n),l=this.svgFactory.create(r,i,!0);let c=[];for(let f=0,h=s.length;f<h;f+=2){const p=s[f]-n[0],v=n[3]-s[f+1];c.push(`${p},${v}`)}c=c.join(" ");const u=q(this,Om,this.svgFactory.createElement(this.svgElementName));return u.setAttribute("points",c),u.setAttribute("stroke-width",a.width||1),u.setAttribute("stroke","transparent"),u.setAttribute("fill","transparent"),l.append(u),this.container.append(l),!o&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return y(this,Om)}addHighlightArea(){this.container.classList.add("highlightArea")}}Om=new WeakMap;class I4e extends sR{constructor(t){super(t),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class O4e extends gs{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}class xw extends gs{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});ne(this,Nm);ne(this,Lm,null);ne(this,Ld,[]);this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=this.data.it==="InkHighlight"?dn.HIGHLIGHT:dn.INK}render(){this.container.classList.add(this.containerClassName);const{data:{rect:n,rotation:s,inkLists:a,borderStyle:o,popupRef:r}}=this,{transform:i,width:l,height:c}=oe(this,Nm,m_).call(this,s,n),u=this.svgFactory.create(l,c,!0),f=q(this,Lm,this.svgFactory.createElement("svg:g"));u.append(f),f.setAttribute("stroke-width",o.width||1),f.setAttribute("stroke-linecap","round"),f.setAttribute("stroke-linejoin","round"),f.setAttribute("stroke-miterlimit",10),f.setAttribute("stroke","transparent"),f.setAttribute("fill","transparent"),f.setAttribute("transform",i);for(let h=0,p=a.length;h<p;h++){const v=this.svgFactory.createElement(this.svgElementName);y(this,Ld).push(v),v.setAttribute("points",a[h].join(",")),f.append(v)}return!r&&this.hasPopupData&&this._createPopup(),this.container.append(u),this._editOnDoubleClick(),this.container}updateEdited(n){super.updateEdited(n);const{thickness:s,points:a,rect:o}=n,r=y(this,Lm);if(s>=0&&r.setAttribute("stroke-width",s||1),a)for(let i=0,l=y(this,Ld).length;i<l;i++)y(this,Ld)[i].setAttribute("points",a[i].join(","));if(o){const{transform:i,width:l,height:c}=oe(this,Nm,m_).call(this,this.data.rotation,o);r.parentElement.setAttribute("viewBox",`0 0 ${l} ${c}`),r.setAttribute("transform",i)}}getElementsToTriggerPopup(){return y(this,Ld)}addHighlightArea(){this.container.classList.add("highlightArea")}}Lm=new WeakMap,Ld=new WeakMap,Nm=new WeakSet,m_=function(n,s){switch(n){case 90:return{transform:`rotate(90) translate(${-s[0]},${s[1]}) scale(1,-1)`,width:s[3]-s[1],height:s[2]-s[0]};case 180:return{transform:`rotate(180) translate(${-s[2]},${s[1]}) scale(1,-1)`,width:s[2]-s[0],height:s[3]-s[1]};case 270:return{transform:`rotate(270) translate(${-s[2]},${s[3]}) scale(1,-1)`,width:s[3]-s[1],height:s[2]-s[0]};default:return{transform:`translate(${-s[0]},${s[3]}) scale(1,-1)`,width:s[2]-s[0],height:s[3]-s[1]}}};class aR extends gs{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}),this.annotationEditorType=dn.HIGHLIGHT}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this._editOnDoubleClick(),this.container}}class L4e extends gs{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),this.container}}class N4e extends gs{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),this.container}}class $4e extends gs{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),this.container}}class oR extends gs{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.annotationEditorType=dn.STAMP}render(){return this.container.classList.add("stampAnnotation"),this.container.setAttribute("role","img"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}class D4e extends gs{constructor(n){var a;super(n,{isRenderable:!0});ne(this,Dm);ne(this,$m,null);const{file:s}=this.data;this.filename=s.filename,this.content=s.content,(a=this.linkService.eventBus)==null||a.dispatch("fileattachmentannotation",{source:this,...s})}render(){this.container.classList.add("fileAttachmentAnnotation");const{container:n,data:s}=this;let a;s.hasAppearance||s.fillAlpha===0?a=document.createElement("div"):(a=document.createElement("img"),a.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(s.name)?"paperclip":"pushpin"}.svg`,s.fillAlpha&&s.fillAlpha<1&&(a.style=`filter: opacity(${Math.round(s.fillAlpha*100)}%);`)),a.addEventListener("dblclick",oe(this,Dm,g_).bind(this)),q(this,$m,a);const{isMac:o}=Na.platform;return n.addEventListener("keydown",r=>{r.key==="Enter"&&(o?r.metaKey:r.ctrlKey)&&oe(this,Dm,g_).call(this)}),!s.popupRef&&this.hasPopupData?this._createPopup():a.classList.add("popupTriggerArea"),n.append(a),n}getElementsToTriggerPopup(){return y(this,$m)}addHighlightArea(){this.container.classList.add("highlightArea")}}$m=new WeakMap,Dm=new WeakSet,g_=function(){var n;(n=this.downloadManager)==null||n.openOrDownloadData(this.content,this.filename)};class F4e{constructor({div:t,accessibilityManager:n,annotationCanvasMap:s,annotationEditorUIManager:a,page:o,viewport:r,structTreeLayer:i}){ne(this,Dd);ne(this,Fm,null);ne(this,Nd,null);ne(this,$d,new Map);ne(this,Bm,null);this.div=t,q(this,Fm,n),q(this,Nd,s),q(this,Bm,i||null),this.page=o,this.viewport=r,this.zIndex=0,this._annotationEditorUIManager=a}hasEditableAnnotations(){return y(this,$d).size>0}async render(t){var r;const{annotations:n}=t,s=this.div;Ku(s,this.viewport);const a=new Map,o={data:null,layer:s,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderForms:t.renderForms!==!1,svgFactory:new Cw,annotationStorage:t.annotationStorage||new hw,enableScripting:t.enableScripting===!0,hasJSActions:t.hasJSActions,fieldObjects:t.fieldObjects,parent:this,elements:null};for(const i of n){if(i.noHTML)continue;const l=i.annotationType===Os.POPUP;if(l){const f=a.get(i.id);if(!f)continue;o.elements=f}else{const{width:f,height:h}=kc(i.rect);if(f<=0||h<=0)continue}o.data=i;const c=_4e.create(o);if(!c.isRenderable)continue;if(!l&&i.popupRef){const f=a.get(i.popupRef);f?f.push(c):a.set(i.popupRef,[c])}const u=c.render();i.hidden&&(u.style.visibility="hidden"),await oe(this,Dd,eI).call(this,u,i.id),c._isEditable&&(y(this,$d).set(c.data.id,c),(r=this._annotationEditorUIManager)==null||r.renderAnnotationElement(c))}oe(this,Dd,b_).call(this)}update({viewport:t}){const n=this.div;this.viewport=t,Ku(n,{rotation:t.rotation}),oe(this,Dd,b_).call(this),n.hidden=!1}getEditableAnnotations(){return Array.from(y(this,$d).values())}getEditableAnnotation(t){return y(this,$d).get(t)}}Fm=new WeakMap,Nd=new WeakMap,$d=new WeakMap,Bm=new WeakMap,Dd=new WeakSet,eI=async function(t,n){var r,i;const s=t.firstChild||t,a=s.id=`${sw}${n}`,o=await((r=y(this,Bm))==null?void 0:r.getAriaAttributes(a));if(o)for(const[l,c]of o)s.setAttribute(l,c);this.div.append(t),(i=y(this,Fm))==null||i.moveElementInDOM(this.div,t,s,!1)},b_=function(){if(!y(this,Nd))return;const t=this.div;for(const[n,s]of y(this,Nd)){const a=t.querySelector(`[data-annotation-id="${n}"]`);if(!a)continue;s.className="annotationContent";const{firstChild:o}=a;o?o.nodeName==="CANVAS"?o.replaceWith(s):o.classList.contains("annotationContent")?o.after(s):o.before(s):a.append(s)}y(this,Nd).clear()};const mb=/\r\n?|\n/g,Xn=class Xn extends cs{constructor(n){super({...n,name:"freeTextEditor"});ne(this,As);ne(this,Nr);ne(this,Eo,"");ne(this,Vm,`${this.id}-editor`);ne(this,Fd,null);ne(this,Ao);q(this,Nr,n.color||Xn._defaultColor||cs._defaultLineColor),q(this,Ao,n.fontSize||Xn._defaultFontSize)}static get _keyboardManager(){const n=Xn.prototype,s=r=>r.isEmpty(),a=Uu.TRANSLATE_SMALL,o=Uu.TRANSLATE_BIG;return mn(this,"_keyboardManager",new Av([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],n.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],n.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],n._translateEmpty,{args:[-a,0],checker:s}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],n._translateEmpty,{args:[-o,0],checker:s}],[["ArrowRight","mac+ArrowRight"],n._translateEmpty,{args:[a,0],checker:s}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],n._translateEmpty,{args:[o,0],checker:s}],[["ArrowUp","mac+ArrowUp"],n._translateEmpty,{args:[0,-a],checker:s}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],n._translateEmpty,{args:[0,-o],checker:s}],[["ArrowDown","mac+ArrowDown"],n._translateEmpty,{args:[0,a],checker:s}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],n._translateEmpty,{args:[0,o],checker:s}]]))}static initialize(n,s){cs.initialize(n,s);const a=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(a.getPropertyValue("--freetext-padding"))}static updateDefaultParams(n,s){switch(n){case _n.FREETEXT_SIZE:Xn._defaultFontSize=s;break;case _n.FREETEXT_COLOR:Xn._defaultColor=s;break}}updateParams(n,s){switch(n){case _n.FREETEXT_SIZE:oe(this,As,tI).call(this,s);break;case _n.FREETEXT_COLOR:oe(this,As,nI).call(this,s);break}}static get defaultPropertiesToUpdate(){return[[_n.FREETEXT_SIZE,Xn._defaultFontSize],[_n.FREETEXT_COLOR,Xn._defaultColor||cs._defaultLineColor]]}get propertiesToUpdate(){return[[_n.FREETEXT_SIZE,y(this,Ao)],[_n.FREETEXT_COLOR,y(this,Nr)]]}_translateEmpty(n,s){this._uiManager.translateSelectedEditors(n,s,!0)}getInitialTranslation(){const n=this.parentScale;return[-Xn._internalPadding*n,-(Xn._internalPadding+y(this,Ao))*n]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(this.isInEditMode())return;this.parent.setEditingState(!1),this.parent.updateToolbar(dn.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),q(this,Fd,new AbortController);const n=this._uiManager.combinedSignal(y(this,Fd));this.editorDiv.addEventListener("keydown",this.editorDivKeydown.bind(this),{signal:n}),this.editorDiv.addEventListener("focus",this.editorDivFocus.bind(this),{signal:n}),this.editorDiv.addEventListener("blur",this.editorDivBlur.bind(this),{signal:n}),this.editorDiv.addEventListener("input",this.editorDivInput.bind(this),{signal:n}),this.editorDiv.addEventListener("paste",this.editorDivPaste.bind(this),{signal:n})}disableEditMode(){var n;this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",y(this,Vm)),this._isDraggable=!0,(n=y(this,Fd))==null||n.abort(),q(this,Fd,null),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"))}focusin(n){this._focusEventsAllowed&&(super.focusin(n),n.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(n){var s;this.width||(this.enableEditMode(),n&&this.editorDiv.focus(),(s=this._initialOptions)!=null&&s.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const n=y(this,Eo),s=q(this,Eo,oe(this,As,sI).call(this).trimEnd());if(n===s)return;const a=o=>{if(q(this,Eo,o),!o){this.remove();return}oe(this,As,i4).call(this),this._uiManager.rebuild(this),oe(this,As,o4).call(this)};this.addCommands({cmd:()=>{a(s)},undo:()=>{a(n)},mustExec:!1}),oe(this,As,o4).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(n){this.enterInEditMode()}keydown(n){n.target===this.div&&n.key==="Enter"&&(this.enterInEditMode(),n.preventDefault())}editorDivKeydown(n){Xn._keyboardManager.exec(this,n)}editorDivFocus(n){this.isEditing=!0}editorDivBlur(n){this.isEditing=!1}editorDivInput(n){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let n,s;this.width&&(n=this.x,s=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",y(this,Vm)),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text2"),this.editorDiv.setAttribute("data-l10n-attrs","default-content"),this.enableEditing(),this.editorDiv.contentEditable=!0;const{style:a}=this.editorDiv;if(a.fontSize=`calc(${y(this,Ao)}px * var(--scale-factor))`,a.color=y(this,Nr),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),lb(this,this.div,["dblclick","keydown"]),this.width){const[o,r]=this.parentDimensions;if(this.annotationElementId){const{position:i}=this._initialData;let[l,c]=this.getInitialTranslation();[l,c]=this.pageTranslationToScreen(l,c);const[u,f]=this.pageDimensions,[h,p]=this.pageTranslation;let v,m;switch(this.rotation){case 0:v=n+(i[0]-h)/u,m=s+this.height-(i[1]-p)/f;break;case 90:v=n+(i[0]-h)/u,m=s-(i[1]-p)/f,[l,c]=[c,-l];break;case 180:v=n-this.width+(i[0]-h)/u,m=s-(i[1]-p)/f,[l,c]=[-l,-c];break;case 270:v=n+(i[0]-h-this.height*f)/u,m=s+(i[1]-p-this.width*u)/f,[l,c]=[-c,l];break}this.setAt(v*o,m*r,l,c)}else this.setAt(n*o,s*r,this.width*o,this.height*r);oe(this,As,i4).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}editorDivPaste(n){var v,m,g;const s=n.clipboardData||window.clipboardData,{types:a}=s;if(a.length===1&&a[0]==="text/plain")return;n.preventDefault();const o=oe(v=Xn,$l,y_).call(v,s.getData("text")||"").replaceAll(mb,`
|
||
`);if(!o)return;const r=window.getSelection();if(!r.rangeCount)return;this.editorDiv.normalize(),r.deleteFromDocument();const i=r.getRangeAt(0);if(!o.includes(`
|
||
`)){i.insertNode(document.createTextNode(o)),this.editorDiv.normalize(),r.collapseToStart();return}const{startContainer:l,startOffset:c}=i,u=[],f=[];if(l.nodeType===Node.TEXT_NODE){const b=l.parentElement;if(f.push(l.nodeValue.slice(c).replaceAll(mb,"")),b!==this.editorDiv){let C=u;for(const w of this.editorDiv.childNodes){if(w===b){C=f;continue}C.push(oe(m=Xn,$l,r4).call(m,w))}}u.push(l.nodeValue.slice(0,c).replaceAll(mb,""))}else if(l===this.editorDiv){let b=u,C=0;for(const w of this.editorDiv.childNodes)C++===c&&(b=f),b.push(oe(g=Xn,$l,r4).call(g,w))}q(this,Eo,`${u.join(`
|
||
`)}${o}${f.join(`
|
||
`)}`),oe(this,As,i4).call(this);const h=new Range;let p=u.reduce((b,C)=>b+C.length,0);for(const{firstChild:b}of this.editorDiv.childNodes)if(b.nodeType===Node.TEXT_NODE){const C=b.nodeValue.length;if(p<=C){h.setStart(b,p),h.setEnd(b,p);break}p-=C}r.removeAllRanges(),r.addRange(h)}get contentDiv(){return this.editorDiv}static async deserialize(n,s,a){var i;let o=null;if(n instanceof nR){const{data:{defaultAppearanceData:{fontSize:l,fontColor:c},rect:u,rotation:f,id:h,popupRef:p},textContent:v,textPosition:m,parent:{page:{pageNumber:g}}}=n;if(!v||v.length===0)return null;o=n={annotationType:dn.FREETEXT,color:Array.from(c),fontSize:l,value:v.join(`
|
||
`),position:m,pageIndex:g-1,rect:u.slice(0),rotation:f,id:h,deleted:!1,popupRef:p}}const r=await super.deserialize(n,s,a);return q(r,Ao,n.fontSize),q(r,Nr,zt.makeHexColor(...n.color)),q(r,Eo,oe(i=Xn,$l,y_).call(i,n.value)),r.annotationElementId=n.id||null,r._initialData=o,r}serialize(n=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const s=Xn._internalPadding*this.parentScale,a=this.getRect(s,s),o=cs._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:y(this,Nr)),r={annotationType:dn.FREETEXT,color:o,fontSize:y(this,Ao),value:oe(this,As,aI).call(this),pageIndex:this.pageIndex,rect:a,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return n?r:this.annotationElementId&&!oe(this,As,oI).call(this,r)?null:(r.id=this.annotationElementId,r)}renderAnnotationElement(n){const s=super.renderAnnotationElement(n);if(this.deleted)return s;const{style:a}=s;a.fontSize=`calc(${y(this,Ao)}px * var(--scale-factor))`,a.color=y(this,Nr),s.replaceChildren();for(const r of y(this,Eo).split(`
|
||
`)){const i=document.createElement("div");i.append(r?document.createTextNode(r):document.createElement("br")),s.append(i)}const o=Xn._internalPadding*this.parentScale;return n.updateEdited({rect:this.getRect(o,o),popupContent:y(this,Eo)}),s}resetAnnotationElement(n){super.resetAnnotationElement(n),n.resetEdited()}};Nr=new WeakMap,Eo=new WeakMap,Vm=new WeakMap,Fd=new WeakMap,Ao=new WeakMap,As=new WeakSet,tI=function(n){const s=o=>{this.editorDiv.style.fontSize=`calc(${o}px * var(--scale-factor))`,this.translate(0,-(o-y(this,Ao))*this.parentScale),q(this,Ao,o),oe(this,As,o4).call(this)},a=y(this,Ao);this.addCommands({cmd:s.bind(this,n),undo:s.bind(this,a),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_n.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},nI=function(n){const s=o=>{q(this,Nr,this.editorDiv.style.color=o)},a=y(this,Nr);this.addCommands({cmd:s.bind(this,n),undo:s.bind(this,a),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_n.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},sI=function(){var a;const n=[];this.editorDiv.normalize();let s=null;for(const o of this.editorDiv.childNodes)(s==null?void 0:s.nodeType)===Node.TEXT_NODE&&o.nodeName==="BR"||(n.push(oe(a=Xn,$l,r4).call(a,o)),s=o);return n.join(`
|
||
`)},o4=function(){const[n,s]=this.parentDimensions;let a;if(this.isAttachedToDOM)a=this.div.getBoundingClientRect();else{const{currentLayer:o,div:r}=this,i=r.style.display,l=r.classList.contains("hidden");r.classList.remove("hidden"),r.style.display="hidden",o.div.append(this.div),a=r.getBoundingClientRect(),r.remove(),r.style.display=i,r.classList.toggle("hidden",l)}this.rotation%180===this.parentRotation%180?(this.width=a.width/n,this.height=a.height/s):(this.width=a.height/n,this.height=a.width/s),this.fixAndSetPosition()},$l=new WeakSet,r4=function(n){return(n.nodeType===Node.TEXT_NODE?n.nodeValue:n.innerText).replaceAll(mb,"")},i4=function(){if(this.editorDiv.replaceChildren(),!!y(this,Eo))for(const n of y(this,Eo).split(`
|
||
`)){const s=document.createElement("div");s.append(n?document.createTextNode(n):document.createElement("br")),this.editorDiv.append(s)}},aI=function(){return y(this,Eo).replaceAll(" "," ")},y_=function(n){return n.replaceAll(" "," ")},oI=function(n){const{value:s,fontSize:a,color:o,pageIndex:r}=this._initialData;return this._hasBeenMoved||n.value!==s||n.fontSize!==a||n.color.some((i,l)=>i!==o[l])||n.pageIndex!==r},ne(Xn,$l),Ut(Xn,"_freeTextDefaultContent",""),Ut(Xn,"_internalPadding",0),Ut(Xn,"_defaultColor",null),Ut(Xn,"_defaultFontSize",10),Ut(Xn,"_type","freetext"),Ut(Xn,"_editorType",dn.FREETEXT);let kw=Xn;class It{toSVGPath(){Un("Abstract method `toSVGPath` must be implemented.")}get box(){Un("Abstract getter `box` must be implemented.")}serialize(t,n){Un("Abstract method `serialize` must be implemented.")}static _rescale(t,n,s,a,o,r){r||(r=new Float32Array(t.length));for(let i=0,l=t.length;i<l;i+=2)r[i]=n+t[i]*a,r[i+1]=s+t[i+1]*o;return r}static _rescaleAndSwap(t,n,s,a,o,r){r||(r=new Float32Array(t.length));for(let i=0,l=t.length;i<l;i+=2)r[i]=n+t[i+1]*a,r[i+1]=s+t[i]*o;return r}static _translate(t,n,s,a){a||(a=new Float32Array(t.length));for(let o=0,r=t.length;o<r;o+=2)a[o]=n+t[o],a[o+1]=s+t[o+1];return a}static svgRound(t){return Math.round(t*1e4)}static _normalizePoint(t,n,s,a,o){switch(o){case 90:return[1-n/s,t/a];case 180:return[1-t/s,1-n/a];case 270:return[n/s,1-t/a];default:return[t/s,n/a]}}static _normalizePagePoint(t,n,s){switch(s){case 90:return[1-n,t];case 180:return[1-t,1-n];case 270:return[n,1-t];default:return[t,n]}}static createBezierPoints(t,n,s,a,o,r){return[(t+5*s)/6,(n+5*a)/6,(5*s+o)/6,(5*a+r)/6,(s+o)/2,(a+r)/2]}}Ut(It,"PRECISION",1e-4);const Dl=class Dl{constructor({x:t,y:n},s,a,o,r,i=0){ne(this,$s);ne(this,To);ne(this,$r,[]);ne(this,Qh);ne(this,e0);ne(this,Ei,[]);ne(this,gn,new Float32Array(18));ne(this,Bd);ne(this,Vd);ne(this,zm);ne(this,Hm);ne(this,t0);ne(this,n0);ne(this,Uc,[]);q(this,To,s),q(this,n0,o*a),q(this,e0,r),y(this,gn).set([NaN,NaN,NaN,NaN,t,n],6),q(this,Qh,i),q(this,Hm,y(Dl,Wm)*a),q(this,zm,y(Dl,Db)*a),q(this,t0,a),y(this,Uc).push(t,n)}isEmpty(){return isNaN(y(this,gn)[8])}add({x:t,y:n}){var I;q(this,Bd,t),q(this,Vd,n);const[s,a,o,r]=y(this,To);let[i,l,c,u]=y(this,gn).subarray(8,12);const f=t-c,h=n-u,p=Math.hypot(f,h);if(p<y(this,zm))return!1;const v=p-y(this,Hm),m=v/p,g=m*f,b=m*h;let C=i,w=l;i=c,l=u,c+=g,u+=b,(I=y(this,Uc))==null||I.push(t,n);const _=-b/v,x=g/v,k=_*y(this,n0),T=x*y(this,n0);return y(this,gn).set(y(this,gn).subarray(2,8),0),y(this,gn).set([c+k,u+T],4),y(this,gn).set(y(this,gn).subarray(14,18),12),y(this,gn).set([c-k,u-T],16),isNaN(y(this,gn)[6])?(y(this,Ei).length===0&&(y(this,gn).set([i+k,l+T],2),y(this,Ei).push(NaN,NaN,NaN,NaN,(i+k-s)/o,(l+T-a)/r),y(this,gn).set([i-k,l-T],14),y(this,$r).push(NaN,NaN,NaN,NaN,(i-k-s)/o,(l-T-a)/r)),y(this,gn).set([C,w,i,l,c,u],6),!this.isEmpty()):(y(this,gn).set([C,w,i,l,c,u],6),Math.abs(Math.atan2(w-l,C-i)-Math.atan2(b,g))<Math.PI/2?([i,l,c,u]=y(this,gn).subarray(2,6),y(this,Ei).push(NaN,NaN,NaN,NaN,((i+c)/2-s)/o,((l+u)/2-a)/r),[i,l,C,w]=y(this,gn).subarray(14,18),y(this,$r).push(NaN,NaN,NaN,NaN,((C+i)/2-s)/o,((w+l)/2-a)/r),!0):([C,w,i,l,c,u]=y(this,gn).subarray(0,6),y(this,Ei).push(((C+5*i)/6-s)/o,((w+5*l)/6-a)/r,((5*i+c)/6-s)/o,((5*l+u)/6-a)/r,((i+c)/2-s)/o,((l+u)/2-a)/r),[c,u,i,l,C,w]=y(this,gn).subarray(12,18),y(this,$r).push(((C+5*i)/6-s)/o,((w+5*l)/6-a)/r,((5*i+c)/6-s)/o,((5*l+u)/6-a)/r,((i+c)/2-s)/o,((l+u)/2-a)/r),!0))}toSVGPath(){if(this.isEmpty())return"";const t=y(this,Ei),n=y(this,$r);if(isNaN(y(this,gn)[6])&&!this.isEmpty())return oe(this,$s,rI).call(this);const s=[];s.push(`M${t[4]} ${t[5]}`);for(let a=6;a<t.length;a+=6)isNaN(t[a])?s.push(`L${t[a+4]} ${t[a+5]}`):s.push(`C${t[a]} ${t[a+1]} ${t[a+2]} ${t[a+3]} ${t[a+4]} ${t[a+5]}`);oe(this,$s,lI).call(this,s);for(let a=n.length-6;a>=6;a-=6)isNaN(n[a])?s.push(`L${n[a+4]} ${n[a+5]}`):s.push(`C${n[a]} ${n[a+1]} ${n[a+2]} ${n[a+3]} ${n[a+4]} ${n[a+5]}`);return oe(this,$s,iI).call(this,s),s.join(" ")}newFreeDrawOutline(t,n,s,a,o,r){return new rR(t,n,s,a,o,r)}getOutlines(){var f;const t=y(this,Ei),n=y(this,$r),s=y(this,gn),[a,o,r,i]=y(this,To),l=new Float32Array((((f=y(this,Uc))==null?void 0:f.length)??0)+2);for(let h=0,p=l.length-2;h<p;h+=2)l[h]=(y(this,Uc)[h]-a)/r,l[h+1]=(y(this,Uc)[h+1]-o)/i;if(l[l.length-2]=(y(this,Bd)-a)/r,l[l.length-1]=(y(this,Vd)-o)/i,isNaN(s[6])&&!this.isEmpty())return oe(this,$s,cI).call(this,l);const c=new Float32Array(y(this,Ei).length+24+y(this,$r).length);let u=t.length;for(let h=0;h<u;h+=2){if(isNaN(t[h])){c[h]=c[h+1]=NaN;continue}c[h]=t[h],c[h+1]=t[h+1]}u=oe(this,$s,dI).call(this,c,u);for(let h=n.length-6;h>=6;h-=6)for(let p=0;p<6;p+=2){if(isNaN(n[h+p])){c[u]=c[u+1]=NaN,u+=2;continue}c[u]=n[h+p],c[u+1]=n[h+p+1],u+=2}return oe(this,$s,uI).call(this,c,u),this.newFreeDrawOutline(c,l,y(this,To),y(this,t0),y(this,Qh),y(this,e0))}};To=new WeakMap,$r=new WeakMap,Qh=new WeakMap,e0=new WeakMap,Ei=new WeakMap,gn=new WeakMap,Bd=new WeakMap,Vd=new WeakMap,zm=new WeakMap,Hm=new WeakMap,t0=new WeakMap,n0=new WeakMap,Uc=new WeakMap,Wm=new WeakMap,$b=new WeakMap,Db=new WeakMap,$s=new WeakSet,w2=function(){const t=y(this,gn).subarray(4,6),n=y(this,gn).subarray(16,18),[s,a,o,r]=y(this,To);return[(y(this,Bd)+(t[0]-n[0])/2-s)/o,(y(this,Vd)+(t[1]-n[1])/2-a)/r,(y(this,Bd)+(n[0]-t[0])/2-s)/o,(y(this,Vd)+(n[1]-t[1])/2-a)/r]},rI=function(){const[t,n,s,a]=y(this,To),[o,r,i,l]=oe(this,$s,w2).call(this);return`M${(y(this,gn)[2]-t)/s} ${(y(this,gn)[3]-n)/a} L${(y(this,gn)[4]-t)/s} ${(y(this,gn)[5]-n)/a} L${o} ${r} L${i} ${l} L${(y(this,gn)[16]-t)/s} ${(y(this,gn)[17]-n)/a} L${(y(this,gn)[14]-t)/s} ${(y(this,gn)[15]-n)/a} Z`},iI=function(t){const n=y(this,$r);t.push(`L${n[4]} ${n[5]} Z`)},lI=function(t){const[n,s,a,o]=y(this,To),r=y(this,gn).subarray(4,6),i=y(this,gn).subarray(16,18),[l,c,u,f]=oe(this,$s,w2).call(this);t.push(`L${(r[0]-n)/a} ${(r[1]-s)/o} L${l} ${c} L${u} ${f} L${(i[0]-n)/a} ${(i[1]-s)/o}`)},cI=function(t){const n=y(this,gn),[s,a,o,r]=y(this,To),[i,l,c,u]=oe(this,$s,w2).call(this),f=new Float32Array(36);return f.set([NaN,NaN,NaN,NaN,(n[2]-s)/o,(n[3]-a)/r,NaN,NaN,NaN,NaN,(n[4]-s)/o,(n[5]-a)/r,NaN,NaN,NaN,NaN,i,l,NaN,NaN,NaN,NaN,c,u,NaN,NaN,NaN,NaN,(n[16]-s)/o,(n[17]-a)/r,NaN,NaN,NaN,NaN,(n[14]-s)/o,(n[15]-a)/r],0),this.newFreeDrawOutline(f,t,y(this,To),y(this,t0),y(this,Qh),y(this,e0))},uI=function(t,n){const s=y(this,$r);return t.set([NaN,NaN,NaN,NaN,s[4],s[5]],n),n+=6},dI=function(t,n){const s=y(this,gn).subarray(4,6),a=y(this,gn).subarray(16,18),[o,r,i,l]=y(this,To),[c,u,f,h]=oe(this,$s,w2).call(this);return t.set([NaN,NaN,NaN,NaN,(s[0]-o)/i,(s[1]-r)/l,NaN,NaN,NaN,NaN,c,u,NaN,NaN,NaN,NaN,f,h,NaN,NaN,NaN,NaN,(a[0]-o)/i,(a[1]-r)/l],n),n+=24},ne(Dl,Wm,8),ne(Dl,$b,2),ne(Dl,Db,y(Dl,Wm)+y(Dl,$b));let gb=Dl;class rR extends It{constructor(n,s,a,o,r,i){super();ne(this,Fb);ne(this,s0);ne(this,zd,new Float32Array(4));ne(this,Fl);ne(this,jm);ne(this,Mo);ne(this,Km);ne(this,ys);q(this,ys,n),q(this,Mo,s),q(this,s0,a),q(this,Km,o),q(this,Fl,r),q(this,jm,i),this.lastPoint=[NaN,NaN],oe(this,Fb,fI).call(this,i);const[l,c,u,f]=y(this,zd);for(let h=0,p=n.length;h<p;h+=2)n[h]=(n[h]-l)/u,n[h+1]=(n[h+1]-c)/f;for(let h=0,p=s.length;h<p;h+=2)s[h]=(s[h]-l)/u,s[h+1]=(s[h+1]-c)/f}toSVGPath(){const n=[`M${y(this,ys)[4]} ${y(this,ys)[5]}`];for(let s=6,a=y(this,ys).length;s<a;s+=6){if(isNaN(y(this,ys)[s])){n.push(`L${y(this,ys)[s+4]} ${y(this,ys)[s+5]}`);continue}n.push(`C${y(this,ys)[s]} ${y(this,ys)[s+1]} ${y(this,ys)[s+2]} ${y(this,ys)[s+3]} ${y(this,ys)[s+4]} ${y(this,ys)[s+5]}`)}return n.push("Z"),n.join(" ")}serialize([n,s,a,o],r){const i=a-n,l=o-s;let c,u;switch(r){case 0:c=It._rescale(y(this,ys),n,o,i,-l),u=It._rescale(y(this,Mo),n,o,i,-l);break;case 90:c=It._rescaleAndSwap(y(this,ys),n,s,i,l),u=It._rescaleAndSwap(y(this,Mo),n,s,i,l);break;case 180:c=It._rescale(y(this,ys),a,s,-i,l),u=It._rescale(y(this,Mo),a,s,-i,l);break;case 270:c=It._rescaleAndSwap(y(this,ys),a,o,-i,-l),u=It._rescaleAndSwap(y(this,Mo),a,o,-i,-l);break}return{outline:Array.from(c),points:[Array.from(u)]}}get box(){return y(this,zd)}newOutliner(n,s,a,o,r,i=0){return new gb(n,s,a,o,r,i)}getNewOutline(n,s){const[a,o,r,i]=y(this,zd),[l,c,u,f]=y(this,s0),h=r*u,p=i*f,v=a*u+l,m=o*f+c,g=this.newOutliner({x:y(this,Mo)[0]*h+v,y:y(this,Mo)[1]*p+m},y(this,s0),y(this,Km),n,y(this,jm),s??y(this,Fl));for(let b=2;b<y(this,Mo).length;b+=2)g.add({x:y(this,Mo)[b]*h+v,y:y(this,Mo)[b+1]*p+m});return g.getOutlines()}}s0=new WeakMap,zd=new WeakMap,Fl=new WeakMap,jm=new WeakMap,Mo=new WeakMap,Km=new WeakMap,ys=new WeakMap,Fb=new WeakSet,fI=function(n){const s=y(this,ys);let a=s[4],o=s[5],r=a,i=o,l=a,c=o,u=a,f=o;const h=n?Math.max:Math.min;for(let v=6,m=s.length;v<m;v+=6){if(isNaN(s[v]))r=Math.min(r,s[v+4]),i=Math.min(i,s[v+5]),l=Math.max(l,s[v+4]),c=Math.max(c,s[v+5]),f<s[v+5]?(u=s[v+4],f=s[v+5]):f===s[v+5]&&(u=h(u,s[v+4]));else{const g=zt.bezierBoundingBox(a,o,...s.slice(v,v+6));r=Math.min(r,g[0]),i=Math.min(i,g[1]),l=Math.max(l,g[2]),c=Math.max(c,g[3]),f<g[3]?(u=g[2],f=g[3]):f===g[3]&&(u=h(u,g[2]))}a=s[v+4],o=s[v+5]}const p=y(this,zd);p[0]=r-y(this,Fl),p[1]=i-y(this,Fl),p[2]=l-r+2*y(this,Fl),p[3]=c-i+2*y(this,Fl),this.lastPoint=[u,f]};class Ew{constructor(t,n=0,s=0,a=!0){ne(this,Fa);ne(this,Um);ne(this,qm);ne(this,qc,[]);ne(this,Dr,[]);let o=1/0,r=-1/0,i=1/0,l=-1/0;const c=10**-4;for(const{x:g,y:b,width:C,height:w}of t){const _=Math.floor((g-n)/c)*c,x=Math.ceil((g+C+n)/c)*c,k=Math.floor((b-n)/c)*c,T=Math.ceil((b+w+n)/c)*c,R=[_,k,T,!0],I=[x,k,T,!1];y(this,qc).push(R,I),o=Math.min(o,_),r=Math.max(r,x),i=Math.min(i,k),l=Math.max(l,T)}const u=r-o+2*s,f=l-i+2*s,h=o-s,p=i-s,v=y(this,qc).at(a?-1:-2),m=[v[0],v[2]];for(const g of y(this,qc)){const[b,C,w]=g;g[0]=(b-h)/u,g[1]=(C-p)/f,g[2]=(w-p)/f}q(this,Um,new Float32Array([h,p,u,f])),q(this,qm,m)}getOutlines(){y(this,qc).sort((n,s)=>n[0]-s[0]||n[1]-s[1]||n[2]-s[2]);const t=[];for(const n of y(this,qc))n[3]?(t.push(...oe(this,Fa,w_).call(this,n)),oe(this,Fa,pI).call(this,n)):(oe(this,Fa,vI).call(this,n),t.push(...oe(this,Fa,w_).call(this,n)));return oe(this,Fa,hI).call(this,t)}}Um=new WeakMap,qm=new WeakMap,qc=new WeakMap,Dr=new WeakMap,Fa=new WeakSet,hI=function(t){const n=[],s=new Set;for(const r of t){const[i,l,c]=r;n.push([i,l,r],[i,c,r])}n.sort((r,i)=>r[1]-i[1]||r[0]-i[0]);for(let r=0,i=n.length;r<i;r+=2){const l=n[r][2],c=n[r+1][2];l.push(c),c.push(l),s.add(l),s.add(c)}const a=[];let o;for(;s.size>0;){const r=s.values().next().value;let[i,l,c,u,f]=r;s.delete(r);let h=i,p=l;for(o=[i,c],a.push(o);;){let v;if(s.has(u))v=u;else if(s.has(f))v=f;else break;s.delete(v),[i,l,c,u,f]=v,h!==i&&(o.push(h,p,i,p===l?l:c),h=i),p=p===l?c:l}o.push(h,p)}return new B4e(a,y(this,Um),y(this,qm))},l4=function(t){const n=y(this,Dr);let s=0,a=n.length-1;for(;s<=a;){const o=s+a>>1,r=n[o][0];if(r===t)return o;r<t?s=o+1:a=o-1}return a+1},pI=function([,t,n]){const s=oe(this,Fa,l4).call(this,t);y(this,Dr).splice(s,0,[t,n])},vI=function([,t,n]){const s=oe(this,Fa,l4).call(this,t);for(let a=s;a<y(this,Dr).length;a++){const[o,r]=y(this,Dr)[a];if(o!==t)break;if(o===t&&r===n){y(this,Dr).splice(a,1);return}}for(let a=s-1;a>=0;a--){const[o,r]=y(this,Dr)[a];if(o!==t)break;if(o===t&&r===n){y(this,Dr).splice(a,1);return}}},w_=function(t){const[n,s,a]=t,o=[[n,s,a]],r=oe(this,Fa,l4).call(this,a);for(let i=0;i<r;i++){const[l,c]=y(this,Dr)[i];for(let u=0,f=o.length;u<f;u++){const[,h,p]=o[u];if(!(c<=h||p<=l)){if(h>=l){if(p>c)o[u][1]=c;else{if(f===1)return[];o.splice(u,1),u--,f--}continue}o[u][2]=l,p>c&&o.push([n,c,p])}}}return o};class B4e extends It{constructor(n,s,a){super();ne(this,Gm);ne(this,a0);q(this,a0,n),q(this,Gm,s),this.lastPoint=a}toSVGPath(){const n=[];for(const s of y(this,a0)){let[a,o]=s;n.push(`M${a} ${o}`);for(let r=2;r<s.length;r+=2){const i=s[r],l=s[r+1];i===a?(n.push(`V${l}`),o=l):l===o&&(n.push(`H${i}`),a=i)}n.push("Z")}return n.join(" ")}serialize([n,s,a,o],r){const i=[],l=a-n,c=o-s;for(const u of y(this,a0)){const f=new Array(u.length);for(let h=0;h<u.length;h+=2)f[h]=n+u[h]*l,f[h+1]=o-u[h+1]*c;i.push(f)}return i}get box(){return y(this,Gm)}get classNamesForOutlining(){return["highlightOutline"]}}Gm=new WeakMap,a0=new WeakMap;class Aw extends gb{newFreeDrawOutline(t,n,s,a,o,r){return new V4e(t,n,s,a,o,r)}}class V4e extends rR{newOutliner(t,n,s,a,o,r=0){return new Aw(t,n,s,a,o,r)}}const ao=class ao{constructor({editor:t=null,uiManager:n=null}){ne(this,jn);ne(this,Fr,null);ne(this,Hd,null);ne(this,o0);ne(this,Ds,null);ne(this,Ym,!1);ne(this,r0,!1);ne(this,Xm,null);ne(this,Jm);ne(this,Gc,null);ne(this,Br,null);ne(this,i0);var s;t?(q(this,r0,!1),q(this,i0,_n.HIGHLIGHT_COLOR),q(this,Xm,t)):(q(this,r0,!0),q(this,i0,_n.HIGHLIGHT_DEFAULT_COLOR)),q(this,Br,(t==null?void 0:t._uiManager)||n),q(this,Jm,y(this,Br)._eventBus),q(this,o0,(t==null?void 0:t.color)||((s=y(this,Br))==null?void 0:s.highlightColors.values().next().value)||"#FFFF98"),y(ao,Zm)||q(ao,Zm,Object.freeze({blue:"pdfjs-editor-colorpicker-blue",green:"pdfjs-editor-colorpicker-green",pink:"pdfjs-editor-colorpicker-pink",red:"pdfjs-editor-colorpicker-red",yellow:"pdfjs-editor-colorpicker-yellow"}))}static get _keyboardManager(){return mn(this,"_keyboardManager",new Av([[["Escape","mac+Escape"],ao.prototype._hideDropdownFromKeyboard],[[" ","mac+ "],ao.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight","mac+ArrowDown","mac+ArrowRight"],ao.prototype._moveToNext],[["ArrowUp","ArrowLeft","mac+ArrowUp","mac+ArrowLeft"],ao.prototype._moveToPrevious],[["Home","mac+Home"],ao.prototype._moveToBeginning],[["End","mac+End"],ao.prototype._moveToEnd]]))}renderButton(){const t=q(this,Fr,document.createElement("button"));t.className="colorPicker",t.tabIndex="0",t.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),t.setAttribute("aria-haspopup",!0);const n=y(this,Br)._signal;t.addEventListener("click",oe(this,jn,of).bind(this),{signal:n}),t.addEventListener("keydown",oe(this,jn,S_).bind(this),{signal:n});const s=q(this,Hd,document.createElement("span"));return s.className="swatch",s.setAttribute("aria-hidden",!0),s.style.backgroundColor=y(this,o0),t.append(s),t}renderMainDropdown(){const t=q(this,Ds,oe(this,jn,__).call(this));return t.setAttribute("aria-orientation","horizontal"),t.setAttribute("aria-labelledby","highlightColorPickerLabel"),t}_colorSelectFromKeyboard(t){if(t.target===y(this,Fr)){oe(this,jn,of).call(this,t);return}const n=t.target.getAttribute("data-color");n&&oe(this,jn,C_).call(this,n,t)}_moveToNext(t){var n,s;if(!y(this,jn,su)){oe(this,jn,of).call(this,t);return}if(t.target===y(this,Fr)){(n=y(this,Ds).firstChild)==null||n.focus();return}(s=t.target.nextSibling)==null||s.focus()}_moveToPrevious(t){var n,s;if(t.target===((n=y(this,Ds))==null?void 0:n.firstChild)||t.target===y(this,Fr)){y(this,jn,su)&&this._hideDropdownFromKeyboard();return}y(this,jn,su)||oe(this,jn,of).call(this,t),(s=t.target.previousSibling)==null||s.focus()}_moveToBeginning(t){var n;if(!y(this,jn,su)){oe(this,jn,of).call(this,t);return}(n=y(this,Ds).firstChild)==null||n.focus()}_moveToEnd(t){var n;if(!y(this,jn,su)){oe(this,jn,of).call(this,t);return}(n=y(this,Ds).lastChild)==null||n.focus()}hideDropdown(){var t,n;(t=y(this,Ds))==null||t.classList.add("hidden"),(n=y(this,Gc))==null||n.abort(),q(this,Gc,null)}_hideDropdownFromKeyboard(){var t;if(!y(this,r0)){if(!y(this,jn,su)){(t=y(this,Xm))==null||t.unselect();return}this.hideDropdown(),y(this,Fr).focus({preventScroll:!0,focusVisible:y(this,Ym)})}}updateColor(t){if(y(this,Hd)&&(y(this,Hd).style.backgroundColor=t),!y(this,Ds))return;const n=y(this,Br).highlightColors.values();for(const s of y(this,Ds).children)s.setAttribute("aria-selected",n.next().value===t)}destroy(){var t,n;(t=y(this,Fr))==null||t.remove(),q(this,Fr,null),q(this,Hd,null),(n=y(this,Ds))==null||n.remove(),q(this,Ds,null)}};Fr=new WeakMap,Hd=new WeakMap,o0=new WeakMap,Ds=new WeakMap,Ym=new WeakMap,r0=new WeakMap,Xm=new WeakMap,Jm=new WeakMap,Gc=new WeakMap,Br=new WeakMap,i0=new WeakMap,Zm=new WeakMap,jn=new WeakSet,__=function(){const t=document.createElement("div"),n=y(this,Br)._signal;t.addEventListener("contextmenu",Ar,{signal:n}),t.className="dropdown",t.role="listbox",t.setAttribute("aria-multiselectable",!1),t.setAttribute("aria-orientation","vertical"),t.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown");for(const[s,a]of y(this,Br).highlightColors){const o=document.createElement("button");o.tabIndex="0",o.role="option",o.setAttribute("data-color",a),o.title=s,o.setAttribute("data-l10n-id",y(ao,Zm)[s]);const r=document.createElement("span");o.append(r),r.className="swatch",r.style.backgroundColor=a,o.setAttribute("aria-selected",a===y(this,o0)),o.addEventListener("click",oe(this,jn,C_).bind(this,a),{signal:n}),t.append(o)}return t.addEventListener("keydown",oe(this,jn,S_).bind(this),{signal:n}),t},C_=function(t,n){n.stopPropagation(),y(this,Jm).dispatch("switchannotationeditorparams",{source:this,type:y(this,i0),value:t})},S_=function(t){ao._keyboardManager.exec(this,t)},of=function(t){if(y(this,jn,su)){this.hideDropdown();return}if(q(this,Ym,t.detail===0),y(this,Gc)||(q(this,Gc,new AbortController),window.addEventListener("pointerdown",oe(this,jn,mI).bind(this),{signal:y(this,Br).combinedSignal(y(this,Gc))})),y(this,Ds)){y(this,Ds).classList.remove("hidden");return}const n=q(this,Ds,oe(this,jn,__).call(this));y(this,Fr).append(n)},mI=function(t){var n;(n=y(this,Ds))!=null&&n.contains(t.target)||this.hideDropdown()},su=function(){return y(this,Ds)&&!y(this,Ds).classList.contains("hidden")},ne(ao,Zm,null);let bb=ao;const Pn=class Pn extends cs{constructor(n){super({...n,name:"highlightEditor"});ne(this,cn);ne(this,l0,null);ne(this,Qm,0);ne(this,Bl);ne(this,Wd,null);ne(this,c0,null);ne(this,oo,null);ne(this,e2,null);ne(this,t2,0);ne(this,jd,null);ne(this,Zo,null);ne(this,Po,null);ne(this,ea,!1);ne(this,u0,null);ne(this,Vl);ne(this,Ca,null);ne(this,d0,"");ne(this,Qo);ne(this,n2,"");this.color=n.color||Pn._defaultColor,q(this,Qo,n.thickness||Pn._defaultThickness),q(this,Vl,n.opacity||Pn._defaultOpacity),q(this,Bl,n.boxes||null),q(this,n2,n.methodOfCreation||""),q(this,d0,n.text||""),this._isDraggable=!1,n.highlightId>-1?(q(this,ea,!0),oe(this,cn,c4).call(this,n),oe(this,cn,rf).call(this)):y(this,Bl)&&(q(this,l0,n.anchorNode),q(this,Qm,n.anchorOffset),q(this,e2,n.focusNode),q(this,t2,n.focusOffset),oe(this,cn,x_).call(this),oe(this,cn,rf).call(this),this.rotate(this.rotation))}static get _keyboardManager(){const n=Pn.prototype;return mn(this,"_keyboardManager",new Av([[["ArrowLeft","mac+ArrowLeft"],n._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],n._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],n._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],n._moveCaret,{args:[3]}]]))}get telemetryInitialData(){return{action:"added",type:y(this,ea)?"free_highlight":"highlight",color:this._uiManager.highlightColorNames.get(this.color),thickness:y(this,Qo),methodOfCreation:y(this,n2)}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.highlightColorNames.get(this.color)}}static computeTelemetryFinalData(n){return{numberOfColors:n.get("color").size}}static initialize(n,s){var a;cs.initialize(n,s),Pn._defaultColor||(Pn._defaultColor=((a=s.highlightColors)==null?void 0:a.values().next().value)||"#fff066")}static updateDefaultParams(n,s){switch(n){case _n.HIGHLIGHT_DEFAULT_COLOR:Pn._defaultColor=s;break;case _n.HIGHLIGHT_THICKNESS:Pn._defaultThickness=s;break}}translateInPage(n,s){}get toolbarPosition(){return y(this,u0)}updateParams(n,s){switch(n){case _n.HIGHLIGHT_COLOR:oe(this,cn,gI).call(this,s);break;case _n.HIGHLIGHT_THICKNESS:oe(this,cn,bI).call(this,s);break}}static get defaultPropertiesToUpdate(){return[[_n.HIGHLIGHT_DEFAULT_COLOR,Pn._defaultColor],[_n.HIGHLIGHT_THICKNESS,Pn._defaultThickness]]}get propertiesToUpdate(){return[[_n.HIGHLIGHT_COLOR,this.color||Pn._defaultColor],[_n.HIGHLIGHT_THICKNESS,y(this,Qo)||Pn._defaultThickness],[_n.HIGHLIGHT_FREE,y(this,ea)]]}async addEditToolbar(){const n=await super.addEditToolbar();return n?(this._uiManager.highlightColors&&(q(this,c0,new bb({editor:this})),n.addColorPicker(y(this,c0))),n):null}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(oe(this,cn,_2).call(this))}getBaseTranslation(){return[0,0]}getRect(n,s){return super.getRect(n,s,oe(this,cn,_2).call(this))}onceAdded(n){this.annotationElementId||this.parent.addUndoableEditor(this),n&&this.div.focus()}remove(){oe(this,cn,k_).call(this),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(oe(this,cn,rf).call(this),this.isAttachedToDOM||this.parent.add(this)))}setParent(n){var a;let s=!1;this.parent&&!n?oe(this,cn,k_).call(this):n&&(oe(this,cn,rf).call(this,n),s=!this.parent&&((a=this.div)==null?void 0:a.classList.contains("selectedEditor"))),super.setParent(n),this.show(this._isVisible),s&&this.select()}rotate(n){var o,r,i;const{drawLayer:s}=this.parent;let a;y(this,ea)?(n=(n-this.rotation+360)%360,a=oe(o=Pn,er,P0).call(o,y(this,Zo).box,n)):a=oe(r=Pn,er,P0).call(r,[this.x,this.y,this.width,this.height],n),s.updateProperties(y(this,Po),{bbox:a,root:{"data-main-rotation":n}}),s.updateProperties(y(this,Ca),{bbox:oe(i=Pn,er,P0).call(i,y(this,oo).box,n),root:{"data-main-rotation":n}})}render(){if(this.div)return this.div;const n=super.render();y(this,d0)&&(n.setAttribute("aria-label",y(this,d0)),n.setAttribute("role","mark")),y(this,ea)?n.classList.add("free"):this.div.addEventListener("keydown",oe(this,cn,wI).bind(this),{signal:this._uiManager._signal});const s=q(this,jd,document.createElement("div"));n.append(s),s.setAttribute("aria-hidden","true"),s.className="internal",s.style.clipPath=y(this,Wd);const[a,o]=this.parentDimensions;return this.setDims(this.width*a,this.height*o),lb(this,y(this,jd),["pointerover","pointerleave"]),this.enableEditing(),n}pointerover(){var n;this.isSelected||(n=this.parent)==null||n.drawLayer.updateProperties(y(this,Ca),{rootClass:{hovered:!0}})}pointerleave(){var n;this.isSelected||(n=this.parent)==null||n.drawLayer.updateProperties(y(this,Ca),{rootClass:{hovered:!1}})}_moveCaret(n){switch(this.parent.unselect(this),n){case 0:case 2:oe(this,cn,u4).call(this,!0);break;case 1:case 3:oe(this,cn,u4).call(this,!1);break}}select(){var n;super.select(),y(this,Ca)&&((n=this.parent)==null||n.drawLayer.updateProperties(y(this,Ca),{rootClass:{hovered:!1,selected:!0}}))}unselect(){var n;super.unselect(),y(this,Ca)&&((n=this.parent)==null||n.drawLayer.updateProperties(y(this,Ca),{rootClass:{selected:!1}}),y(this,ea)||oe(this,cn,u4).call(this,!1))}get _mustFixPosition(){return!y(this,ea)}show(n=this._isVisible){super.show(n),this.parent&&(this.parent.drawLayer.updateProperties(y(this,Po),{rootClass:{hidden:!n}}),this.parent.drawLayer.updateProperties(y(this,Ca),{rootClass:{hidden:!n}}))}static startHighlighting(n,s,{target:a,x:o,y:r}){const{x:i,y:l,width:c,height:u}=a.getBoundingClientRect(),f=new AbortController,h=n.combinedSignal(f),p=v=>{f.abort(),oe(this,er,xI).call(this,n,v)};window.addEventListener("blur",p,{signal:h}),window.addEventListener("pointerup",p,{signal:h}),window.addEventListener("pointerdown",yo,{capture:!0,passive:!1,signal:h}),window.addEventListener("contextmenu",Ar,{signal:h}),a.addEventListener("pointermove",oe(this,er,SI).bind(this,n),{signal:h}),this._freeHighlight=new Aw({x:o,y:r},[i,l,c,u],n.scale,this._defaultThickness/2,s,.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=n.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:this._defaultColor,"fill-opacity":this._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:this._freeHighlight.toSVGPath()}},!0,!0)}static async deserialize(n,s,a){var m,g,b,C;let o=null;if(n instanceof aR){const{data:{quadPoints:w,rect:_,rotation:x,id:k,color:T,opacity:R,popupRef:I},parent:{page:{pageNumber:P}}}=n;o=n={annotationType:dn.HIGHLIGHT,color:Array.from(T),opacity:R,quadPoints:w,boxes:null,pageIndex:P-1,rect:_.slice(0),rotation:x,id:k,deleted:!1,popupRef:I}}else if(n instanceof xw){const{data:{inkLists:w,rect:_,rotation:x,id:k,color:T,borderStyle:{rawWidth:R},popupRef:I},parent:{page:{pageNumber:P}}}=n;o=n={annotationType:dn.HIGHLIGHT,color:Array.from(T),thickness:R,inkLists:w,boxes:null,pageIndex:P-1,rect:_.slice(0),rotation:x,id:k,deleted:!1,popupRef:I}}const{color:r,quadPoints:i,inkLists:l,opacity:c}=n,u=await super.deserialize(n,s,a);u.color=zt.makeHexColor(...r),q(u,Vl,c||1),l&&q(u,Qo,n.thickness),u.annotationElementId=n.id||null,u._initialData=o;const[f,h]=u.pageDimensions,[p,v]=u.pageTranslation;if(i){const w=q(u,Bl,[]);for(let _=0;_<i.length;_+=8)w.push({x:(i[_]-p)/f,y:1-(i[_+1]-v)/h,width:(i[_+2]-i[_])/f,height:(i[_+1]-i[_+5])/h});oe(m=u,cn,x_).call(m),oe(g=u,cn,rf).call(g),u.rotate(u.rotation)}else if(l){q(u,ea,!0);const w=l[0],_={x:w[0]-p,y:h-(w[1]-v)},x=new Aw(_,[0,0,f,h],1,y(u,Qo)/2,!0,.001);for(let R=0,I=w.length;R<I;R+=2)_.x=w[R]-p,_.y=h-(w[R+1]-v),x.add(_);const{id:k,clipPathId:T}=s.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:u.color,"fill-opacity":u._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:x.toSVGPath()}},!0,!0);oe(b=u,cn,c4).call(b,{highlightOutlines:x.getOutlines(),highlightId:k,clipPathId:T}),oe(C=u,cn,rf).call(C)}return u}serialize(n=!1){if(this.isEmpty()||n)return null;if(this.deleted)return this.serializeDeleted();const s=this.getRect(0,0),a=cs._colorManager.convert(this.color),o={annotationType:dn.HIGHLIGHT,color:a,opacity:y(this,Vl),thickness:y(this,Qo),quadPoints:oe(this,cn,_I).call(this),outlines:oe(this,cn,CI).call(this,s),pageIndex:this.pageIndex,rect:s,rotation:oe(this,cn,_2).call(this),structTreeParentId:this._structTreeParentId};return this.annotationElementId&&!oe(this,cn,kI).call(this,o)?null:(o.id=this.annotationElementId,o)}renderAnnotationElement(n){return n.updateEdited({rect:this.getRect(0,0)}),null}static canCreateNewEmptyEditor(){return!1}};l0=new WeakMap,Qm=new WeakMap,Bl=new WeakMap,Wd=new WeakMap,c0=new WeakMap,oo=new WeakMap,e2=new WeakMap,t2=new WeakMap,jd=new WeakMap,Zo=new WeakMap,Po=new WeakMap,ea=new WeakMap,u0=new WeakMap,Vl=new WeakMap,Ca=new WeakMap,d0=new WeakMap,Qo=new WeakMap,n2=new WeakMap,cn=new WeakSet,x_=function(){const n=new Ew(y(this,Bl),.001);q(this,Zo,n.getOutlines()),[this.x,this.y,this.width,this.height]=y(this,Zo).box;const s=new Ew(y(this,Bl),.0025,.001,this._uiManager.direction==="ltr");q(this,oo,s.getOutlines());const{lastPoint:a}=y(this,oo);q(this,u0,[(a[0]-this.x)/this.width,(a[1]-this.y)/this.height])},c4=function({highlightOutlines:n,highlightId:s,clipPathId:a}){var f,h;if(q(this,Zo,n),q(this,oo,n.getNewOutline(y(this,Qo)/2+1.5,.0025)),s>=0)q(this,Po,s),q(this,Wd,a),this.parent.drawLayer.finalizeDraw(s,{bbox:n.box,path:{d:n.toSVGPath()}}),q(this,Ca,this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:y(this,oo).box,path:{d:y(this,oo).toSVGPath()}},!0));else if(this.parent){const p=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(y(this,Po),{bbox:oe(f=Pn,er,P0).call(f,y(this,Zo).box,(p-this.rotation+360)%360),path:{d:n.toSVGPath()}}),this.parent.drawLayer.updateProperties(y(this,Ca),{bbox:oe(h=Pn,er,P0).call(h,y(this,oo).box,p),path:{d:y(this,oo).toSVGPath()}})}const[r,i,l,c]=n.box;switch(this.rotation){case 0:this.x=r,this.y=i,this.width=l,this.height=c;break;case 90:{const[p,v]=this.parentDimensions;this.x=i,this.y=1-r,this.width=l*v/p,this.height=c*p/v;break}case 180:this.x=1-r,this.y=1-i,this.width=l,this.height=c;break;case 270:{const[p,v]=this.parentDimensions;this.x=1-i,this.y=r,this.width=l*v/p,this.height=c*p/v;break}}const{lastPoint:u}=y(this,oo);q(this,u0,[(u[0]-r)/l,(u[1]-i)/c])},gI=function(n){const s=(r,i)=>{var l,c;this.color=r,q(this,Vl,i),(l=this.parent)==null||l.drawLayer.updateProperties(y(this,Po),{root:{fill:r,"fill-opacity":i}}),(c=y(this,c0))==null||c.updateColor(r)},a=this.color,o=y(this,Vl);this.addCommands({cmd:s.bind(this,n,Pn._defaultOpacity),undo:s.bind(this,a,o),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_n.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.highlightColorNames.get(n)},!0)},bI=function(n){const s=y(this,Qo),a=o=>{q(this,Qo,o),oe(this,cn,yI).call(this,o)};this.addCommands({cmd:a.bind(this,n),undo:a.bind(this,s),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_n.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:n},!0)},yI=function(n){if(!y(this,ea))return;oe(this,cn,c4).call(this,{highlightOutlines:y(this,Zo).getNewOutline(n/2)}),this.fixAndSetPosition();const[s,a]=this.parentDimensions;this.setDims(this.width*s,this.height*a)},k_=function(){y(this,Po)===null||!this.parent||(this.parent.drawLayer.remove(y(this,Po)),q(this,Po,null),this.parent.drawLayer.remove(y(this,Ca)),q(this,Ca,null))},rf=function(n=this.parent){y(this,Po)===null&&({id:Ha(this,Po)._,clipPathId:Ha(this,Wd)._}=n.drawLayer.draw({bbox:y(this,Zo).box,root:{viewBox:"0 0 1 1",fill:this.color,"fill-opacity":y(this,Vl)},rootClass:{highlight:!0,free:y(this,ea)},path:{d:y(this,Zo).toSVGPath()}},!1,!0),q(this,Ca,n.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:y(this,ea)},bbox:y(this,oo).box,path:{d:y(this,oo).toSVGPath()}},y(this,ea))),y(this,jd)&&(y(this,jd).style.clipPath=y(this,Wd)))},er=new WeakSet,P0=function([n,s,a,o],r){switch(r){case 90:return[1-s-o,n,o,a];case 180:return[1-n-a,1-s-o,a,o];case 270:return[s,1-n-a,o,a]}return[n,s,a,o]},wI=function(n){Pn._keyboardManager.exec(this,n)},u4=function(n){if(!y(this,l0))return;const s=window.getSelection();n?s.setPosition(y(this,l0),y(this,Qm)):s.setPosition(y(this,e2),y(this,t2))},_2=function(){return y(this,ea)?this.rotation:0},_I=function(){if(y(this,ea))return null;const[n,s]=this.pageDimensions,[a,o]=this.pageTranslation,r=y(this,Bl),i=new Float32Array(r.length*8);let l=0;for(const{x:c,y:u,width:f,height:h}of r){const p=c*n+a,v=(1-u)*s+o;i[l]=i[l+4]=p,i[l+1]=i[l+3]=v,i[l+2]=i[l+6]=p+f*n,i[l+5]=i[l+7]=v-h*s,l+=8}return i},CI=function(n){return y(this,Zo).serialize(n,oe(this,cn,_2).call(this))},SI=function(n,s){this._freeHighlight.add(s)&&n.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})},xI=function(n,s){this._freeHighlight.isEmpty()?n.drawLayer.remove(this._freeHighlightId):n.createAndAddNewEditor(s,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""},kI=function(n){const{color:s}=this._initialData;return n.color.some((a,o)=>a!==s[o])},ne(Pn,er),Ut(Pn,"_defaultColor",null),Ut(Pn,"_defaultOpacity",1),Ut(Pn,"_defaultThickness",12),Ut(Pn,"_type","highlight"),Ut(Pn,"_editorType",dn.HIGHLIGHT),Ut(Pn,"_freeHighlightId",-1),Ut(Pn,"_freeHighlight",null),Ut(Pn,"_freeHighlightClipId","");let yb=Pn;class z4e{constructor(){ne(this,Kd,Object.create(null))}updateProperty(t,n){this[t]=n,this.updateSVGProperty(t,n)}updateProperties(t){if(t)for(const[n,s]of Object.entries(t))this.updateProperty(n,s)}updateSVGProperty(t,n){y(this,Kd)[t]=n}toSVGProperties(){const t=y(this,Kd);return q(this,Kd,Object.create(null)),{root:t}}reset(){q(this,Kd,Object.create(null))}updateAll(t=this){this.updateProperties(t)}clone(){Un("Not implemented")}}Kd=new WeakMap;const $t=class $t extends cs{constructor(n){super(n);ne(this,kn);ne(this,Ro,null);ne(this,f0);Ut(this,"_drawId",null);q(this,f0,n.mustBeCommitted||!1),n.drawOutlines&&(oe(this,kn,E_).call(this,n),oe(this,kn,C2).call(this))}static _mergeSVGProperties(n,s){const a=new Set(Object.keys(n));for(const[o,r]of Object.entries(s))a.has(o)?Object.assign(n[o],r):n[o]=r;return n}static getDefaultDrawingOptions(n){Un("Not implemented")}static get typesMap(){Un("Not implemented")}static get isDrawer(){return!0}static get supportMultipleDrawings(){return!1}static updateDefaultParams(n,s){const a=this.typesMap.get(n);a&&this._defaultDrawingOptions.updateProperty(a,s),this._currentParent&&(y($t,Ks).updateProperty(a,s),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(n,s){const a=this.constructor.typesMap.get(n);a&&this._updateProperty(n,a,s)}static get defaultPropertiesToUpdate(){const n=[],s=this._defaultDrawingOptions;for(const[a,o]of this.typesMap)n.push([a,s[o]]);return n}get propertiesToUpdate(){const n=[],{_drawingOptions:s}=this;for(const[a,o]of this.constructor.typesMap)n.push([a,s[o]]);return n}_updateProperty(n,s,a){const o=this._drawingOptions,r=o[s],i=l=>{var u;o.updateProperty(s,l);const c=y(this,Ro).updateProperty(s,l);c&&oe(this,kn,S2).call(this,c),(u=this.parent)==null||u.drawLayer.updateProperties(this._drawId,o.toSVGProperties())};this.addCommands({cmd:i.bind(this,a),undo:i.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:n,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){var n;(n=this.parent)==null||n.drawLayer.updateProperties(this._drawId,$t._mergeSVGProperties(y(this,Ro).getPathResizingSVGProperties(oe(this,kn,d4).call(this)),{bbox:oe(this,kn,R0).call(this)}))}_onResized(){var n;(n=this.parent)==null||n.drawLayer.updateProperties(this._drawId,$t._mergeSVGProperties(y(this,Ro).getPathResizedSVGProperties(oe(this,kn,d4).call(this)),{bbox:oe(this,kn,R0).call(this)}))}_onTranslating(n,s){var a;(a=this.parent)==null||a.drawLayer.updateProperties(this._drawId,{bbox:oe(this,kn,R0).call(this,n,s)})}_onTranslated(){var n;(n=this.parent)==null||n.drawLayer.updateProperties(this._drawId,$t._mergeSVGProperties(y(this,Ro).getPathTranslatedSVGProperties(oe(this,kn,d4).call(this),this.parentDimensions),{bbox:oe(this,kn,R0).call(this)}))}_onStartDragging(){var n;(n=this.parent)==null||n.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){var n;(n=this.parent)==null||n.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}commit(){super.commit(),this.disableEditMode(),this.disableEditing()}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(n){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,y(this,f0)&&(q(this,f0,!1),this.commit(),this.parent.setSelected(this),n&&this.isOnScreen&&this.div.focus())}remove(){oe(this,kn,T_).call(this),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(oe(this,kn,C2).call(this),oe(this,kn,S2).call(this,y(this,Ro).box),this.isAttachedToDOM||this.parent.add(this)))}setParent(n){var a;let s=!1;this.parent&&!n?(this._uiManager.removeShouldRescale(this),oe(this,kn,T_).call(this)):n&&(this._uiManager.addShouldRescale(this),oe(this,kn,C2).call(this,n),s=!this.parent&&((a=this.div)==null?void 0:a.classList.contains("selectedEditor"))),super.setParent(n),s&&this.select()}rotate(){this.parent&&this.parent.drawLayer.updateProperties(this._drawId,$t._mergeSVGProperties({bbox:oe(this,kn,R0).call(this)},y(this,Ro).updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){this.parent&&oe(this,kn,S2).call(this,y(this,Ro).updateParentDimensions(this.parentDimensions,this.parent.scale))}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;const n=super.render();n.classList.add("draw");const s=document.createElement("div");n.append(s),s.setAttribute("aria-hidden","true"),s.className="internal";const[a,o]=this.parentDimensions;return this.setDims(this.width*a,this.height*o),this._uiManager.addShouldRescale(this),this.disableEditing(),n}static createDrawerInstance(n,s,a,o,r){Un("Not implemented")}static startDrawing(n,s,a,o){var g;const{target:r,offsetX:i,offsetY:l,pointerId:c,pointerType:u}=o;if(y($t,Xc)&&y($t,Xc)!==u)return;const{viewport:{rotation:f}}=n,{width:h,height:p}=r.getBoundingClientRect(),v=q($t,Ud,new AbortController),m=n.combinedSignal(v);if(y($t,Yc)||q($t,Yc,c),y($t,Xc)??q($t,Xc,u),window.addEventListener("pointerup",b=>{var C;y($t,Yc)===b.pointerId?this._endDraw(b):(C=y($t,Jc))==null||C.delete(b.pointerId)},{signal:m}),window.addEventListener("pointercancel",b=>{var C;y($t,Yc)===b.pointerId?this._currentParent.endDrawingSession():(C=y($t,Jc))==null||C.delete(b.pointerId)},{signal:m}),window.addEventListener("pointerdown",b=>{y($t,Xc)===b.pointerType&&((y($t,Jc)||q($t,Jc,new Set)).add(b.pointerId),y($t,Ks).isCancellable()&&(y($t,Ks).removeLastElement(),y($t,Ks).isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:m}),window.addEventListener("contextmenu",Ar,{signal:m}),r.addEventListener("pointermove",this._drawMove.bind(this),{signal:m}),r.addEventListener("touchmove",b=>{b.timeStamp===y($t,Gd)&&yo(b)},{signal:m}),n.toggleDrawing(),(g=s._editorUndoBar)==null||g.hide(),y($t,Ks)){n.drawLayer.updateProperties(this._currentDrawId,y($t,Ks).startNew(i,l,h,p,f));return}s.updateUIForDefaultProperties(this),q($t,Ks,this.createDrawerInstance(i,l,h,p,f)),q($t,qd,this.getDefaultDrawingOptions()),this._currentParent=n,{id:this._currentDrawId}=n.drawLayer.draw(this._mergeSVGProperties(y($t,qd).toSVGProperties(),y($t,Ks).defaultSVGProperties),!0,!1)}static _drawMove(n){var r;if(q($t,Gd,-1),!y($t,Ks))return;const{offsetX:s,offsetY:a,pointerId:o}=n;if(y($t,Yc)===o){if(((r=y($t,Jc))==null?void 0:r.size)>=1){this._endDraw(n);return}this._currentParent.drawLayer.updateProperties(this._currentDrawId,y($t,Ks).add(s,a)),q($t,Gd,n.timeStamp),yo(n)}}static _cleanup(n){n&&(this._currentDrawId=-1,this._currentParent=null,q($t,Ks,null),q($t,qd,null),q($t,Xc,null),q($t,Gd,NaN)),y($t,Ud)&&(y($t,Ud).abort(),q($t,Ud,null),q($t,Yc,NaN),q($t,Jc,null))}static _endDraw(n){const s=this._currentParent;if(s){if(s.toggleDrawing(!0),this._cleanup(!1),n&&s.drawLayer.updateProperties(this._currentDrawId,y($t,Ks).end(n.offsetX,n.offsetY)),this.supportMultipleDrawings){const a=y($t,Ks),o=this._currentDrawId,r=a.getLastElement();s.addCommands({cmd:()=>{s.drawLayer.updateProperties(o,a.setLastElement(r))},undo:()=>{s.drawLayer.updateProperties(o,a.removeLastElement())},mustExec:!1,type:_n.DRAW_STEP});return}this.endDrawing(!1)}}static endDrawing(n){const s=this._currentParent;if(!s)return null;if(s.toggleDrawing(!0),s.cleanUndoStack(_n.DRAW_STEP),!y($t,Ks).isEmpty()){const{pageDimensions:[a,o],scale:r}=s,i=s.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:y($t,Ks).getOutlines(a*r,o*r,r,this._INNER_MARGIN),drawingOptions:y($t,qd),mustBeCommitted:!n});return this._cleanup(!0),i}return s.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(n){}static deserializeDraw(n,s,a,o,r,i){Un("Not implemented")}static async deserialize(n,s,a){var f,h;const{rawDims:{pageWidth:o,pageHeight:r,pageX:i,pageY:l}}=s.viewport,c=this.deserializeDraw(i,l,o,r,this._INNER_MARGIN,n),u=await super.deserialize(n,s,a);return u.createDrawingOptions(n),oe(f=u,kn,E_).call(f,{drawOutlines:c}),oe(h=u,kn,C2).call(h),u.onScaleChanging(),u.rotate(),u}serializeDraw(n){const[s,a]=this.pageTranslation,[o,r]=this.pageDimensions;return y(this,Ro).serialize([s,a,o,r],n)}renderAnnotationElement(n){return n.updateEdited({rect:this.getRect(0,0)}),null}static canCreateNewEmptyEditor(){return!1}};Ro=new WeakMap,f0=new WeakMap,Ks=new WeakMap,Ud=new WeakMap,qd=new WeakMap,Yc=new WeakMap,Xc=new WeakMap,Jc=new WeakMap,Gd=new WeakMap,kn=new WeakSet,E_=function({drawOutlines:n,drawId:s,drawingOptions:a}){q(this,Ro,n),this._drawingOptions||(this._drawingOptions=a),s>=0?(this._drawId=s,this.parent.drawLayer.finalizeDraw(s,n.defaultProperties)):this._drawId=oe(this,kn,A_).call(this,n,this.parent),oe(this,kn,S2).call(this,n.box)},A_=function(n,s){const{id:a}=s.drawLayer.draw($t._mergeSVGProperties(this._drawingOptions.toSVGProperties(),n.defaultSVGProperties),!1,!1);return a},T_=function(){this._drawId===null||!this.parent||(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())},C2=function(n=this.parent){if(!(this._drawId!==null&&this.parent===n)){if(this._drawId!==null){this.parent.drawLayer.updateParent(this._drawId,n.drawLayer);return}this._drawingOptions.updateAll(),this._drawId=oe(this,kn,A_).call(this,y(this,Ro),n)}},EI=function([n,s,a,o]){const{parentDimensions:[r,i],rotation:l}=this;switch(l){case 90:return[s,1-n,a*(i/r),o*(r/i)];case 180:return[1-n,1-s,a,o];case 270:return[1-s,n,a*(i/r),o*(r/i)];default:return[n,s,a,o]}},d4=function(){const{x:n,y:s,width:a,height:o,parentDimensions:[r,i],rotation:l}=this;switch(l){case 90:return[1-s,n,a*(r/i),o*(i/r)];case 180:return[1-n,1-s,a,o];case 270:return[s,1-n,a*(r/i),o*(i/r)];default:return[n,s,a,o]}},S2=function(n){if([this.x,this.y,this.width,this.height]=oe(this,kn,EI).call(this,n),this.div){this.fixAndSetPosition();const[s,a]=this.parentDimensions;this.setDims(this.width*s,this.height*a)}this._onResized()},R0=function(){const{x:n,y:s,width:a,height:o,rotation:r,parentRotation:i,parentDimensions:[l,c]}=this;switch((r*4+i)/90){case 1:return[1-s-o,n,o,a];case 2:return[1-n-a,1-s-o,a,o];case 3:return[s,1-n-a,o,a];case 4:return[n,s-a*(l/c),o*(c/l),a*(l/c)];case 5:return[1-s,n,a*(l/c),o*(c/l)];case 6:return[1-n-o*(c/l),1-s,o*(c/l),a*(l/c)];case 7:return[s-a*(l/c),1-n-o*(c/l),a*(l/c),o*(c/l)];case 8:return[n-a,s-o,a,o];case 9:return[1-s,n-a,o,a];case 10:return[1-n,1-s,a,o];case 11:return[s-o,1-n,o,a];case 12:return[n-o*(c/l),s,o*(c/l),a*(l/c)];case 13:return[1-s-a*(l/c),n-o*(c/l),a*(l/c),o*(c/l)];case 14:return[1-n,1-s-a*(l/c),o*(c/l),a*(l/c)];case 15:return[s,1-n,a*(l/c),o*(c/l)];default:return[n,s,a,o]}},Ut($t,"_currentDrawId",-1),Ut($t,"_currentParent",null),ne($t,Ks,null),ne($t,Ud,null),ne($t,qd,null),ne($t,Yc,NaN),ne($t,Xc,null),ne($t,Jc,null),ne($t,Gd,NaN),Ut($t,"_INNER_MARGIN",3);let Tw=$t;class H4e{constructor(t,n,s,a,o,r){ne(this,p0);ne(this,Ai,new Float64Array(6));ne(this,Us);ne(this,qs);ne(this,Yd);ne(this,h0);ne(this,Ba);ne(this,ta,"");ne(this,tr,0);ne(this,Xd,new wb);ne(this,Jd);ne(this,Zd);q(this,Jd,s),q(this,Zd,a),q(this,Yd,o),q(this,h0,r),[t,n]=oe(this,p0,f4).call(this,t,n);const i=q(this,Us,[NaN,NaN,NaN,NaN,t,n]);q(this,Ba,[t,n]),q(this,qs,[{line:i,points:y(this,Ba)}]),y(this,Ai).set(i,0)}updateProperty(t,n){t==="stroke-width"&&q(this,h0,n)}isEmpty(){return!y(this,qs)||y(this,qs).length===0}isCancellable(){return y(this,Ba).length<=10}add(t,n){[t,n]=oe(this,p0,f4).call(this,t,n);const[s,a,o,r]=y(this,Ai).subarray(2,6),i=t-o,l=n-r;return Math.hypot(y(this,Jd)*i,y(this,Zd)*l)<=2?null:(y(this,Ba).push(t,n),isNaN(s)?(y(this,Ai).set([o,r,t,n],2),y(this,Us).push(NaN,NaN,NaN,NaN,t,n),{path:{d:this.toSVGPath()}}):(isNaN(y(this,Ai)[0])&&y(this,Us).splice(6,6),y(this,Ai).set([s,a,o,r,t,n],0),y(this,Us).push(...It.createBezierPoints(s,a,o,r,t,n)),{path:{d:this.toSVGPath()}}))}end(t,n){const s=this.add(t,n);return s||(y(this,Ba).length===2?{path:{d:this.toSVGPath()}}:null)}startNew(t,n,s,a,o){q(this,Jd,s),q(this,Zd,a),q(this,Yd,o),[t,n]=oe(this,p0,f4).call(this,t,n);const r=q(this,Us,[NaN,NaN,NaN,NaN,t,n]);q(this,Ba,[t,n]);const i=y(this,qs).at(-1);return i&&(i.line=new Float32Array(i.line),i.points=new Float32Array(i.points)),y(this,qs).push({line:r,points:y(this,Ba)}),y(this,Ai).set(r,0),q(this,tr,0),this.toSVGPath(),null}getLastElement(){return y(this,qs).at(-1)}setLastElement(t){return y(this,qs)?(y(this,qs).push(t),q(this,Us,t.line),q(this,Ba,t.points),q(this,tr,0),{path:{d:this.toSVGPath()}}):y(this,Xd).setLastElement(t)}removeLastElement(){if(!y(this,qs))return y(this,Xd).removeLastElement();y(this,qs).pop(),q(this,ta,"");for(let t=0,n=y(this,qs).length;t<n;t++){const{line:s,points:a}=y(this,qs)[t];q(this,Us,s),q(this,Ba,a),q(this,tr,0),this.toSVGPath()}return{path:{d:y(this,ta)}}}toSVGPath(){const t=It.svgRound(y(this,Us)[4]),n=It.svgRound(y(this,Us)[5]);if(y(this,Ba).length===2)return q(this,ta,`${y(this,ta)} M ${t} ${n} Z`),y(this,ta);if(y(this,Ba).length<=6){const a=y(this,ta).lastIndexOf("M");q(this,ta,`${y(this,ta).slice(0,a)} M ${t} ${n}`),q(this,tr,6)}if(y(this,Ba).length===4){const a=It.svgRound(y(this,Us)[10]),o=It.svgRound(y(this,Us)[11]);return q(this,ta,`${y(this,ta)} L ${a} ${o}`),q(this,tr,12),y(this,ta)}const s=[];y(this,tr)===0&&(s.push(`M ${t} ${n}`),q(this,tr,6));for(let a=y(this,tr),o=y(this,Us).length;a<o;a+=6){const[r,i,l,c,u,f]=y(this,Us).slice(a,a+6).map(It.svgRound);s.push(`C${r} ${i} ${l} ${c} ${u} ${f}`)}return q(this,ta,y(this,ta)+s.join(" ")),q(this,tr,y(this,Us).length),y(this,ta)}getOutlines(t,n,s,a){const o=y(this,qs).at(-1);return o.line=new Float32Array(o.line),o.points=new Float32Array(o.points),y(this,Xd).build(y(this,qs),t,n,s,y(this,Yd),y(this,h0),a),q(this,Ai,null),q(this,Us,null),q(this,qs,null),q(this,ta,null),y(this,Xd)}get defaultSVGProperties(){return{root:{viewBox:"0 0 10000 10000"},rootClass:{draw:!0},bbox:[0,0,1,1]}}}Ai=new WeakMap,Us=new WeakMap,qs=new WeakMap,Yd=new WeakMap,h0=new WeakMap,Ba=new WeakMap,ta=new WeakMap,tr=new WeakMap,Xd=new WeakMap,Jd=new WeakMap,Zd=new WeakMap,p0=new WeakSet,f4=function(t,n){return It._normalizePoint(t,n,y(this,Jd),y(this,Zd),y(this,Yd))};const Fw=class Fw extends It{constructor(){super(...arguments);ne(this,na);ne(this,Va);ne(this,s2,0);ne(this,a2);ne(this,Io);ne(this,Ti);ne(this,Mi);ne(this,v0);ne(this,m0);ne(this,g0)}build(n,s,a,o,r,i,l){q(this,Ti,s),q(this,Mi,a),q(this,v0,o),q(this,m0,r),q(this,g0,i),q(this,a2,l??0),q(this,Io,n),oe(this,na,TI).call(this)}setLastElement(n){return y(this,Io).push(n),{path:{d:this.toSVGPath()}}}removeLastElement(){return y(this,Io).pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){const n=[];for(const{line:s}of y(this,Io)){if(n.push(`M${It.svgRound(s[4])} ${It.svgRound(s[5])}`),s.length===6){n.push("Z");continue}if(s.length===12){n.push(`L${It.svgRound(s[10])} ${It.svgRound(s[11])}`);continue}for(let a=6,o=s.length;a<o;a+=6){const[r,i,l,c,u,f]=s.subarray(a,a+6).map(It.svgRound);n.push(`C${r} ${i} ${l} ${c} ${u} ${f}`)}}return n.join("")}serialize([n,s,a,o],r){const i=[],l=[],[c,u,f,h]=oe(this,na,AI).call(this);let p,v,m,g,b,C,w,_,x;switch(y(this,m0)){case 0:x=It._rescale,p=n,v=s+o,m=a,g=-o,b=n+c*a,C=s+(1-u-h)*o,w=n+(c+f)*a,_=s+(1-u)*o;break;case 90:x=It._rescaleAndSwap,p=n,v=s,m=a,g=o,b=n+u*a,C=s+c*o,w=n+(u+h)*a,_=s+(c+f)*o;break;case 180:x=It._rescale,p=n+a,v=s,m=-a,g=o,b=n+(1-c-f)*a,C=s+u*o,w=n+(1-c)*a,_=s+(u+h)*o;break;case 270:x=It._rescaleAndSwap,p=n+a,v=s+o,m=-a,g=-o,b=n+(1-u-h)*a,C=s+(1-c-f)*o,w=n+(1-u)*a,_=s+(1-c)*o;break}for(const{line:k,points:T}of y(this,Io))i.push(x(k,p,v,m,g,r?new Array(k.length):null)),l.push(x(T,p,v,m,g,r?new Array(T.length):null));return{lines:i,points:l,rect:[b,C,w,_]}}static deserialize(n,s,a,o,r,{paths:{lines:i,points:l},rotation:c,thickness:u}){const f=[];let h,p,v,m,g;switch(c){case 0:g=It._rescale,h=-n/a,p=s/o+1,v=1/a,m=-1/o;break;case 90:g=It._rescaleAndSwap,h=-s/o,p=-n/a,v=1/o,m=1/a;break;case 180:g=It._rescale,h=n/a+1,p=-s/o,v=-1/a,m=1/o;break;case 270:g=It._rescaleAndSwap,h=s/o+1,p=n/a+1,v=-1/o,m=-1/a;break}if(!i){i=[];for(const C of l){const w=C.length;if(w===2){i.push(new Float32Array([NaN,NaN,NaN,NaN,C[0],C[1]]));continue}if(w===4){i.push(new Float32Array([NaN,NaN,NaN,NaN,C[0],C[1],NaN,NaN,NaN,NaN,C[2],C[3]]));continue}const _=new Float32Array(3*(w-2));i.push(_);let[x,k,T,R]=C.subarray(0,4);_.set([NaN,NaN,NaN,NaN,x,k],0);for(let I=4;I<w;I+=2){const P=C[I],$=C[I+1];_.set(It.createBezierPoints(x,k,T,R,P,$),(I-2)*3),[x,k,T,R]=[T,R,P,$]}}}for(let C=0,w=i.length;C<w;C++)f.push({line:g(i[C].map(_=>_??NaN),h,p,v,m),points:g(l[C].map(_=>_??NaN),h,p,v,m)});const b=new Fw;return b.build(f,a,o,1,c,u,r),b}get box(){return y(this,Va)}updateProperty(n,s){return n==="stroke-width"?oe(this,na,MI).call(this,s):null}updateParentDimensions([n,s],a){const[o,r]=oe(this,na,Gl).call(this);q(this,Ti,n),q(this,Mi,s),q(this,v0,a);const[i,l]=oe(this,na,Gl).call(this),c=i-o,u=l-r,f=y(this,Va);return f[0]-=c,f[1]-=u,f[2]+=2*c,f[3]+=2*u,f}updateRotation(n){return q(this,s2,n),{path:{transform:this.rotationTransform}}}get viewBox(){return y(this,Va).map(It.svgRound).join(" ")}get defaultProperties(){const[n,s]=y(this,Va);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${It.svgRound(n)} ${It.svgRound(s)}`}}}get rotationTransform(){const[,,n,s]=y(this,Va);let a=0,o=0,r=0,i=0,l=0,c=0;switch(y(this,s2)){case 90:o=s/n,r=-n/s,l=n;break;case 180:a=-1,i=-1,l=n,c=s;break;case 270:o=-s/n,r=n/s,c=s;break;default:return""}return`matrix(${a} ${o} ${r} ${i} ${It.svgRound(l)} ${It.svgRound(c)})`}getPathResizingSVGProperties([n,s,a,o]){const[r,i]=oe(this,na,Gl).call(this),[l,c,u,f]=y(this,Va);if(Math.abs(u-r)<=It.PRECISION||Math.abs(f-i)<=It.PRECISION){const g=n+a/2-(l+u/2),b=s+o/2-(c+f/2);return{path:{"transform-origin":`${It.svgRound(n)} ${It.svgRound(s)}`,transform:`${this.rotationTransform} translate(${g} ${b})`}}}const h=(a-2*r)/(u-2*r),p=(o-2*i)/(f-2*i),v=u/a,m=f/o;return{path:{"transform-origin":`${It.svgRound(l)} ${It.svgRound(c)}`,transform:`${this.rotationTransform} scale(${v} ${m}) translate(${It.svgRound(r)} ${It.svgRound(i)}) scale(${h} ${p}) translate(${It.svgRound(-r)} ${It.svgRound(-i)})`}}}getPathResizedSVGProperties([n,s,a,o]){const[r,i]=oe(this,na,Gl).call(this),l=y(this,Va),[c,u,f,h]=l;if(l[0]=n,l[1]=s,l[2]=a,l[3]=o,Math.abs(f-r)<=It.PRECISION||Math.abs(h-i)<=It.PRECISION){const b=n+a/2-(c+f/2),C=s+o/2-(u+h/2);for(const{line:w,points:_}of y(this,Io))It._translate(w,b,C,w),It._translate(_,b,C,_);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${It.svgRound(n)} ${It.svgRound(s)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}const p=(a-2*r)/(f-2*r),v=(o-2*i)/(h-2*i),m=-p*(c+r)+n+r,g=-v*(u+i)+s+i;if(p!==1||v!==1||m!==0||g!==0)for(const{line:b,points:C}of y(this,Io))It._rescale(b,m,g,p,v,b),It._rescale(C,m,g,p,v,C);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${It.svgRound(n)} ${It.svgRound(s)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties([n,s],a){const[o,r]=a,i=y(this,Va),l=n-i[0],c=s-i[1];if(y(this,Ti)===o&&y(this,Mi)===r)for(const{line:u,points:f}of y(this,Io))It._translate(u,l,c,u),It._translate(f,l,c,f);else{const u=y(this,Ti)/o,f=y(this,Mi)/r;q(this,Ti,o),q(this,Mi,r);for(const{line:h,points:p}of y(this,Io))It._rescale(h,l,c,u,f,h),It._rescale(p,l,c,u,f,p);i[2]*=u,i[3]*=f}return i[0]=n,i[1]=s,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":`${It.svgRound(n)} ${It.svgRound(s)}`}}}get defaultSVGProperties(){const n=y(this,Va);return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":`${It.svgRound(n[0])} ${It.svgRound(n[1])}`,transform:this.rotationTransform||null},bbox:n}}};Va=new WeakMap,s2=new WeakMap,a2=new WeakMap,Io=new WeakMap,Ti=new WeakMap,Mi=new WeakMap,v0=new WeakMap,m0=new WeakMap,g0=new WeakMap,na=new WeakSet,Gl=function(n=y(this,g0)){const s=y(this,a2)+n/2*y(this,v0);return y(this,m0)%180===0?[s/y(this,Ti),s/y(this,Mi)]:[s/y(this,Mi),s/y(this,Ti)]},AI=function(){const[n,s,a,o]=y(this,Va),[r,i]=oe(this,na,Gl).call(this,0);return[n+r,s+i,a-2*r,o-2*i]},TI=function(){const n=q(this,Va,new Float32Array([1/0,1/0,-1/0,-1/0]));for(const{line:o}of y(this,Io)){if(o.length<=12){for(let l=4,c=o.length;l<c;l+=6){const[u,f]=o.subarray(l,l+2);n[0]=Math.min(n[0],u),n[1]=Math.min(n[1],f),n[2]=Math.max(n[2],u),n[3]=Math.max(n[3],f)}continue}let r=o[4],i=o[5];for(let l=6,c=o.length;l<c;l+=6){const[u,f,h,p,v,m]=o.subarray(l,l+6);zt.bezierBoundingBox(r,i,u,f,h,p,v,m,n),r=v,i=m}}const[s,a]=oe(this,na,Gl).call(this);n[0]=Math.min(1,Math.max(0,n[0]-s)),n[1]=Math.min(1,Math.max(0,n[1]-a)),n[2]=Math.min(1,Math.max(0,n[2]+s)),n[3]=Math.min(1,Math.max(0,n[3]+a)),n[2]-=n[0],n[3]-=n[1]},MI=function(n){const[s,a]=oe(this,na,Gl).call(this);q(this,g0,n);const[o,r]=oe(this,na,Gl).call(this),[i,l]=[o-s,r-a],c=y(this,Va);return c[0]-=i,c[1]-=l,c[2]+=2*i,c[3]+=2*l,c};let wb=Fw;const Bw=class Bw extends z4e{constructor(n){super();ne(this,b0);q(this,b0,n),super.updateProperties({fill:"none",stroke:cs._defaultLineColor,"stroke-opacity":1,"stroke-width":1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10})}updateSVGProperty(n,s){n==="stroke-width"&&(s??(s=this["stroke-width"]),s*=y(this,b0).realScale),super.updateSVGProperty(n,s)}clone(){const n=new Bw(y(this,b0));return n.updateAll(this),n}};b0=new WeakMap;let Mw=Bw;const y0=class y0 extends Tw{constructor(n){super({...n,name:"inkEditor"});ne(this,Bb);this._willKeepAspectRatio=!0}static initialize(n,s){cs.initialize(n,s),this._defaultDrawingOptions=new Mw(s.viewParameters)}static getDefaultDrawingOptions(n){const s=this._defaultDrawingOptions.clone();return s.updateProperties(n),s}static get supportMultipleDrawings(){return!0}static get typesMap(){return mn(this,"typesMap",new Map([[_n.INK_THICKNESS,"stroke-width"],[_n.INK_COLOR,"stroke"],[_n.INK_OPACITY,"stroke-opacity"]]))}static createDrawerInstance(n,s,a,o,r){return new H4e(n,s,a,o,r,this._defaultDrawingOptions["stroke-width"])}static deserializeDraw(n,s,a,o,r,i){return wb.deserialize(n,s,a,o,r,i)}static async deserialize(n,s,a){let o=null;if(n instanceof xw){const{data:{inkLists:i,rect:l,rotation:c,id:u,color:f,opacity:h,borderStyle:{rawWidth:p},popupRef:v},parent:{page:{pageNumber:m}}}=n;o=n={annotationType:dn.INK,color:Array.from(f),thickness:p,opacity:h,paths:{points:i},boxes:null,pageIndex:m-1,rect:l.slice(0),rotation:c,id:u,deleted:!1,popupRef:v}}const r=await super.deserialize(n,s,a);return r.annotationElementId=n.id||null,r._initialData=o,r}onScaleChanging(){if(!this.parent)return;super.onScaleChanging();const{_drawId:n,_drawingOptions:s,parent:a}=this;s.updateSVGProperty("stroke-width"),a.drawLayer.updateProperties(n,s.toSVGProperties())}static onScaleChangingWhenDrawing(){const n=this._currentParent;n&&(super.onScaleChangingWhenDrawing(),this._defaultDrawingOptions.updateSVGProperty("stroke-width"),n.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}createDrawingOptions({color:n,thickness:s,opacity:a}){this._drawingOptions=y0.getDefaultDrawingOptions({stroke:zt.makeHexColor(...n),"stroke-width":s,"stroke-opacity":a})}serialize(n=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const{lines:s,points:a,rect:o}=this.serializeDraw(n),{_drawingOptions:{stroke:r,"stroke-opacity":i,"stroke-width":l}}=this,c={annotationType:dn.INK,color:cs._colorManager.convert(r),opacity:i,thickness:l,paths:{lines:s,points:a},pageIndex:this.pageIndex,rect:o,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return n?c:this.annotationElementId&&!oe(this,Bb,PI).call(this,c)?null:(c.id=this.annotationElementId,c)}renderAnnotationElement(n){const{points:s,rect:a}=this.serializeDraw(!1);return n.updateEdited({rect:a,thickness:this._drawingOptions["stroke-width"],points:s}),null}};Bb=new WeakSet,PI=function(n){const{color:s,thickness:a,opacity:o,pageIndex:r}=this._initialData;return this._hasBeenMoved||this._hasBeenResized||n.color.some((i,l)=>i!==s[l])||n.thickness!==a||n.opacity!==o||n.pageIndex!==r},Ut(y0,"_type","ink"),Ut(y0,"_editorType",dn.INK),Ut(y0,"_defaultDrawingOptions",null);let Pw=y0;const o2=class o2 extends cs{constructor(n){super({...n,name:"stampEditor"});ne(this,Mn);ne(this,ds,null);ne(this,sa,null);ne(this,Zc,null);ne(this,zl,null);ne(this,Qc,null);ne(this,w0,"");ne(this,Pi,null);ne(this,Ri,null);ne(this,Oo,!1);ne(this,_0,!1);q(this,zl,n.bitmapUrl),q(this,Qc,n.bitmapFile)}static initialize(n,s){cs.initialize(n,s)}static get supportedTypes(){return mn(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map(s=>`image/${s}`))}static get supportedTypesStr(){return mn(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(n){return this.supportedTypes.includes(n)}static paste(n,s){s.pasteEditor(dn.STAMP,{bitmapFile:n.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){var n;return{type:"stamp",hasAltText:!!((n=this.altTextData)!=null&&n.altText)}}static computeTelemetryFinalData(n){const s=n.get("hasAltText");return{hasAltText:s.get(!0)??0,hasNoAltText:s.get(!1)??0}}async mlGuessAltText(n=null,s=!0){if(this.hasAltTextData())return null;const{mlManager:a}=this._uiManager;if(!a)throw new Error("No ML.");if(!await a.isEnabledFor("altText"))throw new Error("ML isn't enabled for alt text.");const{data:o,width:r,height:i}=n||this.copyCanvas(null,null,!0).imageData,l=await a.guess({name:"altText",request:{data:o,width:r,height:i,channels:o.length/(r*i)}});if(!l)throw new Error("No response from the AI service.");if(l.error)throw new Error("Error from the AI service.");if(l.cancel)return null;if(!l.output)throw new Error("No valid response from the AI service.");const c=l.output;return await this.setGuessedAltText(c),s&&!this.hasAltTextData()&&(this.altTextData={alt:c,decorative:!1}),c}remove(){var n;y(this,sa)&&(q(this,ds,null),this._uiManager.imageManager.deleteId(y(this,sa)),(n=y(this,Pi))==null||n.remove(),q(this,Pi,null),y(this,Ri)&&(clearTimeout(y(this,Ri)),q(this,Ri,null))),super.remove()}rebuild(){if(!this.parent){y(this,sa)&&oe(this,Mn,h4).call(this);return}super.rebuild(),this.div!==null&&(y(this,sa)&&y(this,Pi)===null&&oe(this,Mn,h4).call(this),this.isAttachedToDOM||this.parent.add(this))}onceAdded(n){this._isDraggable=!0,n&&this.div.focus()}isEmpty(){return!(y(this,Zc)||y(this,ds)||y(this,zl)||y(this,Qc)||y(this,sa))}get isResizable(){return!0}render(){if(this.div)return this.div;let n,s;if(this.width&&(n=this.x,s=this.y),super.render(),this.div.hidden=!0,this.div.setAttribute("role","figure"),this.addAltTextButton(),y(this,ds)?oe(this,Mn,M_).call(this):oe(this,Mn,h4).call(this),this.width&&!this.annotationElementId){const[a,o]=this.parentDimensions;this.setAt(n*a,s*o,this.width*a,this.height*o)}return this._uiManager.addShouldRescale(this),this.div}_onResized(){this.onScaleChanging()}onScaleChanging(){if(!this.parent)return;y(this,Ri)!==null&&clearTimeout(y(this,Ri)),q(this,Ri,setTimeout(()=>{q(this,Ri,null),oe(this,Mn,P_).call(this)},200))}copyCanvas(n,s,a=!1){var p;n||(n=224);const{width:o,height:r}=y(this,ds),i=new lw;let l=y(this,ds),c=o,u=r,f=null;if(s){if(o>s||r>s){const R=Math.min(s/o,s/r);c=Math.floor(o*R),u=Math.floor(r*R)}f=document.createElement("canvas");const v=f.width=Math.ceil(c*i.sx),m=f.height=Math.ceil(u*i.sy);y(this,Oo)||(l=oe(this,Mn,p4).call(this,v,m));const g=f.getContext("2d");g.filter=this._uiManager.hcmFilter;let b="white",C="#cfcfd8";this._uiManager.hcmFilter!=="none"?C="black":(p=window.matchMedia)!=null&&p.call(window,"(prefers-color-scheme: dark)").matches&&(b="#8f8f9d",C="#42414d");const w=15,_=w*i.sx,x=w*i.sy,k=new OffscreenCanvas(_*2,x*2),T=k.getContext("2d");T.fillStyle=b,T.fillRect(0,0,_*2,x*2),T.fillStyle=C,T.fillRect(0,0,_,x),T.fillRect(_,x,_,x),g.fillStyle=g.createPattern(k,"repeat"),g.fillRect(0,0,v,m),g.drawImage(l,0,0,l.width,l.height,0,0,v,m)}let h=null;if(a){let v,m;if(i.symmetric&&l.width<n&&l.height<n)v=l.width,m=l.height;else if(l=y(this,ds),o>n||r>n){const C=Math.min(n/o,n/r);v=Math.floor(o*C),m=Math.floor(r*C),y(this,Oo)||(l=oe(this,Mn,p4).call(this,v,m))}const b=new OffscreenCanvas(v,m).getContext("2d",{willReadFrequently:!0});b.drawImage(l,0,0,l.width,l.height,0,0,v,m),h={width:v,height:m,data:b.getImageData(0,0,v,m).data}}return{canvas:f,width:c,height:u,imageData:h}}getImageForAltText(){return y(this,Pi)}static async deserialize(n,s,a){var m;let o=null;if(n instanceof oR){const{data:{rect:g,rotation:b,id:C,structParent:w,popupRef:_},container:x,parent:{page:{pageNumber:k}}}=n,T=x.querySelector("canvas"),R=a.imageManager.getFromCanvas(x.id,T);T.remove();const I=((m=await s._structTree.getAriaAttributes(`${sw}${C}`))==null?void 0:m.get("aria-label"))||"";o=n={annotationType:dn.STAMP,bitmapId:R.id,bitmap:R.bitmap,pageIndex:k-1,rect:g.slice(0),rotation:b,id:C,deleted:!1,accessibilityData:{decorative:!1,altText:I},isSvg:!1,structParent:w,popupRef:_}}const r=await super.deserialize(n,s,a),{rect:i,bitmap:l,bitmapUrl:c,bitmapId:u,isSvg:f,accessibilityData:h}=n;u&&a.imageManager.isValidId(u)?(q(r,sa,u),l&&q(r,ds,l)):q(r,zl,c),q(r,Oo,f);const[p,v]=r.pageDimensions;return r.width=(i[2]-i[0])/p,r.height=(i[3]-i[1])/v,r.annotationElementId=n.id||null,h&&(r.altTextData=h),r._initialData=o,q(r,_0,!!o),r}serialize(n=!1,s=null){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const a={annotationType:dn.STAMP,bitmapId:y(this,sa),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:y(this,Oo),structTreeParentId:this._structTreeParentId};if(n)return a.bitmapUrl=oe(this,Mn,v4).call(this,!0),a.accessibilityData=this.serializeAltText(!0),a;const{decorative:o,altText:r}=this.serializeAltText(!1);if(!o&&r&&(a.accessibilityData={type:"Figure",alt:r}),this.annotationElementId){const l=oe(this,Mn,RI).call(this,a);if(l.isSame)return null;l.isSameAltText?delete a.accessibilityData:a.accessibilityData.structParent=this._initialData.structParent??-1}if(a.id=this.annotationElementId,s===null)return a;s.stamps||(s.stamps=new Map);const i=y(this,Oo)?(a.rect[2]-a.rect[0])*(a.rect[3]-a.rect[1]):null;if(!s.stamps.has(y(this,sa)))s.stamps.set(y(this,sa),{area:i,serialized:a}),a.bitmap=oe(this,Mn,v4).call(this,!1);else if(y(this,Oo)){const l=s.stamps.get(y(this,sa));i>l.area&&(l.area=i,l.serialized.bitmap.close(),l.serialized.bitmap=oe(this,Mn,v4).call(this,!1))}return a}renderAnnotationElement(n){return n.updateEdited({rect:this.getRect(0,0)}),null}};ds=new WeakMap,sa=new WeakMap,Zc=new WeakMap,zl=new WeakMap,Qc=new WeakMap,w0=new WeakMap,Pi=new WeakMap,Ri=new WeakMap,Oo=new WeakMap,_0=new WeakMap,Mn=new WeakSet,x2=function(n,s=!1){if(!n){this.remove();return}q(this,ds,n.bitmap),s||(q(this,sa,n.id),q(this,Oo,n.isSvg)),n.file&&q(this,w0,n.file.name),oe(this,Mn,M_).call(this)},k2=function(){if(q(this,Zc,null),this._uiManager.enableWaiting(!1),!!y(this,Pi)){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&y(this,ds)){this._editToolbar.hide(),this._uiManager.editAltText(this,!0);return}if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&y(this,ds)){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}},h4=function(){if(y(this,sa)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(y(this,sa)).then(a=>oe(this,Mn,x2).call(this,a,!0)).finally(()=>oe(this,Mn,k2).call(this));return}if(y(this,zl)){const a=y(this,zl);q(this,zl,null),this._uiManager.enableWaiting(!0),q(this,Zc,this._uiManager.imageManager.getFromUrl(a).then(o=>oe(this,Mn,x2).call(this,o)).finally(()=>oe(this,Mn,k2).call(this)));return}if(y(this,Qc)){const a=y(this,Qc);q(this,Qc,null),this._uiManager.enableWaiting(!0),q(this,Zc,this._uiManager.imageManager.getFromFile(a).then(o=>oe(this,Mn,x2).call(this,o)).finally(()=>oe(this,Mn,k2).call(this)));return}const n=document.createElement("input");n.type="file",n.accept=o2.supportedTypesStr;const s=this._uiManager._signal;q(this,Zc,new Promise(a=>{n.addEventListener("change",async()=>{if(!n.files||n.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const o=await this._uiManager.imageManager.getFromFile(n.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),oe(this,Mn,x2).call(this,o)}a()},{signal:s}),n.addEventListener("cancel",()=>{this.remove(),a()},{signal:s})}).finally(()=>oe(this,Mn,k2).call(this))),n.click()},M_=function(){var f;const{div:n}=this;let{width:s,height:a}=y(this,ds);const[o,r]=this.pageDimensions,i=.75;if(this.width)s=this.width*o,a=this.height*r;else if(s>i*o||a>i*r){const h=Math.min(i*o/s,i*r/a);s*=h,a*=h}const[l,c]=this.parentDimensions;this.setDims(s*l/o,a*c/r),this._uiManager.enableWaiting(!1);const u=q(this,Pi,document.createElement("canvas"));u.setAttribute("role","img"),this.addContainer(u),this.width=s/o,this.height=a/r,(f=this._initialOptions)!=null&&f.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow||this.annotationElementId)&&(n.hidden=!1),oe(this,Mn,P_).call(this),y(this,_0)||(this.parent.addUndoableEditor(this),q(this,_0,!0)),this._reportTelemetry({action:"inserted_image"}),y(this,w0)&&u.setAttribute("aria-label",y(this,w0))},p4=function(n,s){const{width:a,height:o}=y(this,ds);let r=a,i=o,l=y(this,ds);for(;r>2*n||i>2*s;){const c=r,u=i;r>2*n&&(r=r>=16384?Math.floor(r/2)-1:Math.ceil(r/2)),i>2*s&&(i=i>=16384?Math.floor(i/2)-1:Math.ceil(i/2));const f=new OffscreenCanvas(r,i);f.getContext("2d").drawImage(l,0,0,c,u,0,0,r,i),l=f.transferToImageBitmap()}return l},P_=function(){const[n,s]=this.parentDimensions,{width:a,height:o}=this,r=new lw,i=Math.ceil(a*n*r.sx),l=Math.ceil(o*s*r.sy),c=y(this,Pi);if(!c||c.width===i&&c.height===l)return;c.width=i,c.height=l;const u=y(this,Oo)?y(this,ds):oe(this,Mn,p4).call(this,i,l),f=c.getContext("2d");f.filter=this._uiManager.hcmFilter,f.drawImage(u,0,0,u.width,u.height,0,0,i,l)},v4=function(n){if(n){if(y(this,Oo)){const o=this._uiManager.imageManager.getSvgUrl(y(this,sa));if(o)return o}const s=document.createElement("canvas");return{width:s.width,height:s.height}=y(this,ds),s.getContext("2d").drawImage(y(this,ds),0,0),s.toDataURL()}if(y(this,Oo)){const[s,a]=this.pageDimensions,o=Math.round(this.width*s*xc.PDF_TO_CSS_UNITS),r=Math.round(this.height*a*xc.PDF_TO_CSS_UNITS),i=new OffscreenCanvas(o,r);return i.getContext("2d").drawImage(y(this,ds),0,0,y(this,ds).width,y(this,ds).height,0,0,o,r),i.transferToImageBitmap()}return structuredClone(y(this,ds))},RI=function(n){var i;const{pageIndex:s,accessibilityData:{altText:a}}=this._initialData,o=n.pageIndex===s,r=(((i=n.accessibilityData)==null?void 0:i.alt)||"")===a;return{isSame:!this._hasBeenMoved&&!this._hasBeenResized&&o&&r,isSameAltText:r}},Ut(o2,"_type","stamp"),Ut(o2,"_editorType",dn.STAMP);let Rw=o2;const zr=class zr{constructor({uiManager:t,pageIndex:n,div:s,structTreeLayer:a,accessibilityManager:o,annotationLayer:r,drawLayer:i,textLayer:l,viewport:c,l10n:u}){ne(this,rs);ne(this,Qd);ne(this,C0,!1);ne(this,Ii,null);ne(this,eu,null);ne(this,Hl,null);ne(this,nr,new Map);ne(this,tu,!1);ne(this,S0,!1);ne(this,ef,!1);ne(this,Vr,null);ne(this,Wl,null);ne(this,Sa,null);ne(this,jl,null);ne(this,Vt);const f=[...y(zr,nu).values()];if(!zr._initialized){zr._initialized=!0;for(const h of f)h.initialize(u,t)}t.registerEditorTypes(f),q(this,Vt,t),this.pageIndex=n,this.div=s,q(this,Qd,o),q(this,Ii,r),this.viewport=c,q(this,Sa,l),this.drawLayer=i,this._structTree=a,y(this,Vt).addLayer(this)}get isEmpty(){return y(this,nr).size===0}get isInvisible(){return this.isEmpty&&y(this,Vt).getMode()===dn.NONE}updateToolbar(t){y(this,Vt).updateToolbar(t)}updateMode(t=y(this,Vt).getMode()){switch(oe(this,rs,m4).call(this),t){case dn.NONE:this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case dn.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case dn.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:n}=this.div;for(const s of y(zr,nu).values())n.toggle(`${s._type}Editing`,t===s._editorType);this.div.hidden=!1}hasTextLayer(t){var n;return t===((n=y(this,Sa))==null?void 0:n.div)}setEditingState(t){y(this,Vt).setEditingState(t)}addCommands(t){y(this,Vt).addCommands(t)}cleanUndoStack(t){y(this,Vt).cleanUndoStack(t)}toggleDrawing(t=!1){this.div.classList.toggle("drawing",!t)}togglePointerEvents(t=!1){this.div.classList.toggle("disabled",!t)}toggleAnnotationLayerPointerEvents(t=!1){var n;(n=y(this,Ii))==null||n.div.classList.toggle("disabled",!t)}async enable(){q(this,ef,!0),this.div.tabIndex=0,this.togglePointerEvents(!0);const t=new Set;for(const s of y(this,nr).values())s.enableEditing(),s.show(!0),s.annotationElementId&&(y(this,Vt).removeChangedExistingAnnotation(s),t.add(s.annotationElementId));if(!y(this,Ii)){q(this,ef,!1);return}const n=y(this,Ii).getEditableAnnotations();for(const s of n){if(s.hide(),y(this,Vt).isDeletedAnnotationElement(s.data.id)||t.has(s.data.id))continue;const a=await this.deserialize(s);a&&(this.addOrRebuild(a),a.enableEditing())}q(this,ef,!1)}disable(){var a;q(this,S0,!0),this.div.tabIndex=-1,this.togglePointerEvents(!1);const t=new Map,n=new Map;for(const o of y(this,nr).values())if(o.disableEditing(),!!o.annotationElementId){if(o.serialize()!==null){t.set(o.annotationElementId,o);continue}else n.set(o.annotationElementId,o);(a=this.getEditableAnnotation(o.annotationElementId))==null||a.show(),o.remove()}if(y(this,Ii)){const o=y(this,Ii).getEditableAnnotations();for(const r of o){const{id:i}=r.data;if(y(this,Vt).isDeletedAnnotationElement(i))continue;let l=n.get(i);if(l){l.resetAnnotationElement(r),l.show(!1),r.show();continue}l=t.get(i),l&&(y(this,Vt).addChangedExistingAnnotation(l),l.renderAnnotationElement(r)&&l.show(!1)),r.show()}}oe(this,rs,m4).call(this),this.isEmpty&&(this.div.hidden=!0);const{classList:s}=this.div;for(const o of y(zr,nu).values())s.remove(`${o._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),q(this,S0,!1)}getEditableAnnotation(t){var n;return((n=y(this,Ii))==null?void 0:n.getEditableAnnotation(t))||null}setActiveEditor(t){y(this,Vt).getActive()!==t&&y(this,Vt).setActiveEditor(t)}enableTextSelection(){var t;if(this.div.tabIndex=-1,(t=y(this,Sa))!=null&&t.div&&!y(this,jl)){q(this,jl,new AbortController);const n=y(this,Vt).combinedSignal(y(this,jl));y(this,Sa).div.addEventListener("pointerdown",oe(this,rs,II).bind(this),{signal:n}),y(this,Sa).div.classList.add("highlighting")}}disableTextSelection(){var t;this.div.tabIndex=0,(t=y(this,Sa))!=null&&t.div&&y(this,jl)&&(y(this,jl).abort(),q(this,jl,null),y(this,Sa).div.classList.remove("highlighting"))}enableClick(){if(y(this,eu))return;q(this,eu,new AbortController);const t=y(this,Vt).combinedSignal(y(this,eu));this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:t});const n=this.pointerup.bind(this);this.div.addEventListener("pointerup",n,{signal:t}),this.div.addEventListener("pointercancel",n,{signal:t})}disableClick(){var t;(t=y(this,eu))==null||t.abort(),q(this,eu,null)}attach(t){y(this,nr).set(t.id,t);const{annotationElementId:n}=t;n&&y(this,Vt).isDeletedAnnotationElement(n)&&y(this,Vt).removeDeletedAnnotationElement(t)}detach(t){var n;y(this,nr).delete(t.id),(n=y(this,Qd))==null||n.removePointerInTextLayer(t.contentDiv),!y(this,S0)&&t.annotationElementId&&y(this,Vt).addDeletedAnnotationElement(t)}remove(t){this.detach(t),y(this,Vt).removeEditor(t),t.div.remove(),t.isAttachedToDOM=!1}changeParent(t){var n;t.parent!==this&&(t.parent&&t.annotationElementId&&(y(this,Vt).addDeletedAnnotationElement(t.annotationElementId),cs.deleteAnnotationElement(t),t.annotationElementId=null),this.attach(t),(n=t.parent)==null||n.detach(t),t.setParent(this),t.div&&t.isAttachedToDOM&&(t.div.remove(),this.div.append(t.div)))}add(t){if(!(t.parent===this&&t.isAttachedToDOM)){if(this.changeParent(t),y(this,Vt).addEditor(t),this.attach(t),!t.isAttachedToDOM){const n=t.render();this.div.append(n),t.isAttachedToDOM=!0}t.fixAndSetPosition(),t.onceAdded(!y(this,ef)),y(this,Vt).addToAnnotationStorage(t),t._reportTelemetry(t.telemetryInitialData)}}moveEditorInDOM(t){var s;if(!t.isAttachedToDOM)return;const{activeElement:n}=document;t.div.contains(n)&&!y(this,Hl)&&(t._focusEventsAllowed=!1,q(this,Hl,setTimeout(()=>{q(this,Hl,null),t.div.contains(document.activeElement)?t._focusEventsAllowed=!0:(t.div.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:y(this,Vt)._signal}),n.focus())},0))),t._structTreeParentId=(s=y(this,Qd))==null?void 0:s.moveElementInDOM(this.div,t.div,t.contentDiv,!0)}addOrRebuild(t){t.needsToBeRebuilt()?(t.parent||(t.parent=this),t.rebuild(),t.show()):this.add(t)}addUndoableEditor(t){const n=()=>t._uiManager.rebuild(t),s=()=>{t.remove()};this.addCommands({cmd:n,undo:s,mustExec:!1})}getNextId(){return y(this,Vt).getId()}combinedSignal(t){return y(this,Vt).combinedSignal(t)}canCreateNewEmptyEditor(){var t;return(t=y(this,rs,Li))==null?void 0:t.canCreateNewEmptyEditor()}pasteEditor(t,n){y(this,Vt).updateToolbar(t),y(this,Vt).updateMode(t);const{offsetX:s,offsetY:a}=oe(this,rs,I_).call(this),o=this.getNextId(),r=oe(this,rs,R_).call(this,{parent:this,id:o,x:s,y:a,uiManager:y(this,Vt),isCentered:!0,...n});r&&this.add(r)}async deserialize(t){var n;return await((n=y(zr,nu).get(t.annotationType??t.annotationEditorType))==null?void 0:n.deserialize(t,this,y(this,Vt)))||null}createAndAddNewEditor(t,n,s={}){const a=this.getNextId(),o=oe(this,rs,R_).call(this,{parent:this,id:a,x:t.offsetX,y:t.offsetY,uiManager:y(this,Vt),isCentered:n,...s});return o&&this.add(o),o}addNewEditor(){this.createAndAddNewEditor(oe(this,rs,I_).call(this),!0)}setSelected(t){y(this,Vt).setSelected(t)}toggleSelected(t){y(this,Vt).toggleSelected(t)}unselect(t){y(this,Vt).unselect(t)}pointerup(t){var s;const{isMac:n}=Na.platform;if(!(t.button!==0||t.ctrlKey&&n)&&t.target===this.div&&y(this,tu)&&(q(this,tu,!1),!((s=y(this,rs,Li))!=null&&s.isDrawer&&y(this,rs,Li).supportMultipleDrawings))){if(!y(this,C0)){q(this,C0,!0);return}if(y(this,Vt).getMode()===dn.STAMP){y(this,Vt).unselectAll();return}this.createAndAddNewEditor(t,!1)}}pointerdown(t){var a;if(y(this,Vt).getMode()===dn.HIGHLIGHT&&this.enableTextSelection(),y(this,tu)){q(this,tu,!1);return}const{isMac:n}=Na.platform;if(t.button!==0||t.ctrlKey&&n||t.target!==this.div)return;if(q(this,tu,!0),(a=y(this,rs,Li))!=null&&a.isDrawer){this.startDrawingSession(t);return}const s=y(this,Vt).getActive();q(this,C0,!s||s.isEmpty())}startDrawingSession(t){if(this.div.focus(),y(this,Vr)){y(this,rs,Li).startDrawing(this,y(this,Vt),!1,t);return}y(this,Vt).setCurrentDrawingSession(this),q(this,Vr,new AbortController);const n=y(this,Vt).combinedSignal(y(this,Vr));this.div.addEventListener("blur",({relatedTarget:s})=>{s&&!this.div.contains(s)&&(q(this,Wl,null),this.commitOrRemove())},{signal:n}),y(this,rs,Li).startDrawing(this,y(this,Vt),!1,t)}pause(t){if(t){const{activeElement:n}=document;this.div.contains(n)&&q(this,Wl,n);return}y(this,Wl)&&setTimeout(()=>{var n;(n=y(this,Wl))==null||n.focus(),q(this,Wl,null)},0)}endDrawingSession(t=!1){return y(this,Vr)?(y(this,Vt).setCurrentDrawingSession(null),y(this,Vr).abort(),q(this,Vr,null),q(this,Wl,null),y(this,rs,Li).endDrawing(t)):null}findNewParent(t,n,s){const a=y(this,Vt).findParent(n,s);return a===null||a===this?!1:(a.changeParent(t),!0)}commitOrRemove(){return y(this,Vr)?(this.endDrawingSession(),!0):!1}onScaleChanging(){y(this,Vr)&&y(this,rs,Li).onScaleChangingWhenDrawing(this)}destroy(){var t,n;this.commitOrRemove(),((t=y(this,Vt).getActive())==null?void 0:t.parent)===this&&(y(this,Vt).commitOrRemove(),y(this,Vt).setActiveEditor(null)),y(this,Hl)&&(clearTimeout(y(this,Hl)),q(this,Hl,null));for(const s of y(this,nr).values())(n=y(this,Qd))==null||n.removePointerInTextLayer(s.contentDiv),s.setParent(null),s.isAttachedToDOM=!1,s.div.remove();this.div=null,y(this,nr).clear(),y(this,Vt).removeLayer(this)}render({viewport:t}){this.viewport=t,Ku(this.div,t);for(const n of y(this,Vt).getEditors(this.pageIndex))this.add(n),n.rebuild();this.updateMode()}update({viewport:t}){y(this,Vt).commitOrRemove(),oe(this,rs,m4).call(this);const n=this.viewport.rotation,s=t.rotation;if(this.viewport=t,Ku(this.div,{rotation:s}),n!==s)for(const a of y(this,nr).values())a.rotate(s)}get pageDimensions(){const{pageWidth:t,pageHeight:n}=this.viewport.rawDims;return[t,n]}get scale(){return y(this,Vt).viewParameters.realScale}};Qd=new WeakMap,C0=new WeakMap,Ii=new WeakMap,eu=new WeakMap,Hl=new WeakMap,nr=new WeakMap,tu=new WeakMap,S0=new WeakMap,ef=new WeakMap,Vr=new WeakMap,Wl=new WeakMap,Sa=new WeakMap,jl=new WeakMap,Vt=new WeakMap,nu=new WeakMap,rs=new WeakSet,II=function(t){y(this,Vt).unselectAll();const{target:n}=t;if(n===y(this,Sa).div||(n.getAttribute("role")==="img"||n.classList.contains("endOfContent"))&&y(this,Sa).div.contains(n)){const{isMac:s}=Na.platform;if(t.button!==0||t.ctrlKey&&s)return;y(this,Vt).showAllEditors("highlight",!0,!0),y(this,Sa).div.classList.add("free"),this.toggleDrawing(),yb.startHighlighting(this,y(this,Vt).direction==="ltr",{target:y(this,Sa).div,x:t.x,y:t.y}),y(this,Sa).div.addEventListener("pointerup",()=>{y(this,Sa).div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:y(this,Vt)._signal}),t.preventDefault()}},Li=function(){return y(zr,nu).get(y(this,Vt).getMode())},R_=function(t){const n=y(this,rs,Li);return n?new n.prototype.constructor(t):null},I_=function(){const{x:t,y:n,width:s,height:a}=this.div.getBoundingClientRect(),o=Math.max(0,t),r=Math.max(0,n),i=Math.min(window.innerWidth,t+s),l=Math.min(window.innerHeight,n+a),c=(o+i)/2-t,u=(r+l)/2-n,[f,h]=this.viewport.rotation%180===0?[c,u]:[u,c];return{offsetX:f,offsetY:h}},m4=function(){for(const t of y(this,nr).values())t.isEmpty()&&t.remove()},Ut(zr,"_initialized",!1),ne(zr,nu,new Map([kw,Pw,Rw,yb].map(t=>[t._editorType,t])));let Iw=zr;const xa=class xa{constructor({pageIndex:t}){ne(this,Oi);ne(this,Hr,null);ne(this,r2,0);ne(this,za,new Map);ne(this,tf,new Map);this.pageIndex=t}setParent(t){if(!y(this,Hr)){q(this,Hr,t);return}if(y(this,Hr)!==t){if(y(this,za).size>0)for(const n of y(this,za).values())n.remove(),t.append(n);q(this,Hr,t)}}static get _svgFactory(){return mn(this,"_svgFactory",new Cw)}draw(t,n=!1,s=!1){const a=Ha(this,r2)._++,o=oe(this,Oi,O_).call(this),r=xa._svgFactory.createElement("defs");o.append(r);const i=xa._svgFactory.createElement("path");r.append(i);const l=`path_p${this.pageIndex}_${a}`;i.setAttribute("id",l),i.setAttribute("vector-effect","non-scaling-stroke"),n&&y(this,tf).set(a,i);const c=s?oe(this,Oi,LI).call(this,r,l):null,u=xa._svgFactory.createElement("use");return o.append(u),u.setAttribute("href",`#${l}`),this.updateProperties(o,t),y(this,za).set(a,o),{id:a,clipPathId:`url(#${c})`}}drawOutline(t,n){const s=Ha(this,r2)._++,a=oe(this,Oi,O_).call(this),o=xa._svgFactory.createElement("defs");a.append(o);const r=xa._svgFactory.createElement("path");o.append(r);const i=`path_p${this.pageIndex}_${s}`;r.setAttribute("id",i),r.setAttribute("vector-effect","non-scaling-stroke");let l;if(n){const f=xa._svgFactory.createElement("mask");o.append(f),l=`mask_p${this.pageIndex}_${s}`,f.setAttribute("id",l),f.setAttribute("maskUnits","objectBoundingBox");const h=xa._svgFactory.createElement("rect");f.append(h),h.setAttribute("width","1"),h.setAttribute("height","1"),h.setAttribute("fill","white");const p=xa._svgFactory.createElement("use");f.append(p),p.setAttribute("href",`#${i}`),p.setAttribute("stroke","none"),p.setAttribute("fill","black"),p.setAttribute("fill-rule","nonzero"),p.classList.add("mask")}const c=xa._svgFactory.createElement("use");a.append(c),c.setAttribute("href",`#${i}`),l&&c.setAttribute("mask",`url(#${l})`);const u=c.cloneNode();return a.append(u),c.classList.add("mainOutline"),u.classList.add("secondaryOutline"),this.updateProperties(a,t),y(this,za).set(s,a),s}finalizeDraw(t,n){y(this,tf).delete(t),this.updateProperties(t,n)}updateProperties(t,n){var l;if(!n)return;const{root:s,bbox:a,rootClass:o,path:r}=n,i=typeof t=="number"?y(this,za).get(t):t;if(i){if(s&&oe(this,Oi,L_).call(this,i,s),a&&oe(l=xa,Vb,OI).call(l,i,a),o){const{classList:c}=i;for(const[u,f]of Object.entries(o))c.toggle(u,f)}if(r){const u=i.firstChild.firstChild;oe(this,Oi,L_).call(this,u,r)}}}updateParent(t,n){if(n===this)return;const s=y(this,za).get(t);s&&(y(n,Hr).append(s),y(this,za).delete(t),y(n,za).set(t,s))}remove(t){y(this,tf).delete(t),y(this,Hr)!==null&&(y(this,za).get(t).remove(),y(this,za).delete(t))}destroy(){q(this,Hr,null);for(const t of y(this,za).values())t.remove();y(this,za).clear(),y(this,tf).clear()}};Hr=new WeakMap,r2=new WeakMap,za=new WeakMap,tf=new WeakMap,Vb=new WeakSet,OI=function(t,[n,s,a,o]){const{style:r}=t;r.top=`${100*s}%`,r.left=`${100*n}%`,r.width=`${100*a}%`,r.height=`${100*o}%`},Oi=new WeakSet,O_=function(){const t=xa._svgFactory.create(1,1,!0);return y(this,Hr).append(t),t.setAttribute("aria-hidden",!0),t},LI=function(t,n){const s=xa._svgFactory.createElement("clipPath");t.append(s);const a=`clip_${n}`;s.setAttribute("id",a),s.setAttribute("clipPathUnits","objectBoundingBox");const o=xa._svgFactory.createElement("use");return s.append(o),o.setAttribute("href",`#${n}`),o.classList.add("clip"),a},L_=function(t,n){for(const[s,a]of Object.entries(n))a===null?t.removeAttribute(s):t.setAttribute(s,a)},ne(xa,Vb);let Ow=xa;globalThis.pdfjsTestingUtils={HighlightOutliner:Ew},nn.AbortException,nn.AnnotationEditorLayer,nn.AnnotationEditorParamsType,nn.AnnotationEditorType,nn.AnnotationEditorUIManager,nn.AnnotationLayer,nn.AnnotationMode,nn.ColorPicker,nn.DOMSVGFactory,nn.DrawLayer,nn.FeatureTest;var W4e=nn.GlobalWorkerOptions;nn.ImageKind,nn.InvalidPDFException,nn.MissingPDFException,nn.OPS,nn.OutputScale,nn.PDFDataRangeTransport,nn.PDFDateString,nn.PDFWorker,nn.PasswordResponses,nn.PermissionFlag,nn.PixelsPerInch,nn.RenderingCancelledException,nn.TextLayer,nn.TouchManager,nn.UnexpectedResponseException,nn.Util,nn.VerbosityLevel,nn.XfaLayer,nn.build,nn.createValidAbsoluteUrl,nn.fetchData;var j4e=nn.getDocument;nn.getFilenameFromUrl,nn.getPdfFilenameFromUrl,nn.getXfaPageViewport,nn.isDataScheme,nn.isPdfFile,nn.noContextMenu,nn.normalizeUnicode,nn.setLayerDimensions,nn.shadow,nn.stopEvent,nn.version;const K4e=""+new URL("assets/pdf.worker.min-yatZIOMy.mjs",document.currentScript&&document.currentScript.tagName.toUpperCase()==="SCRIPT"&&document.currentScript.src||document.baseURI).href,U4e={class:"manual-wrap"},q4e={class:"sidebar"},G4e={class:"es-text",style:{display:"none"}},Y4e={class:"sb-section"},X4e={class:"sb-title"},J4e={key:0,class:"sb-section sb-range-row"},Z4e={class:"range-check"},Q4e={class:"range-inline"},eye=["max","disabled"],tye=["min","max"],nye={key:1,class:"sb-section"},sye={class:"sb-title"},aye={style:{display:"flex",gap:"6px"}},oye={key:2,class:"sb-section"},rye={class:"mode-inline-row"},iye={class:"sb-title mode-inline-title"},lye={class:"mode-inline-check"},cye={key:3,class:"sb-section"},uye={class:"sb-title"},dye={class:"region-type-btns"},fye=["onClick"],hye={class:"rt-badge"},pye={key:4,class:"sb-section sb-regions"},vye={class:"sb-title"},mye={class:"region-list"},gye=["onClick"],bye={class:"ri-top"},yye={class:"ri-badge"},wye={class:"ri-label"},_ye={class:"ri-page"},Cye={class:"ri-status"},Sye={key:0,class:"ri-tokens"},xye={key:0,class:"ri-preview"},kye={key:5,class:"sb-section sb-actions"},Eye={key:0,class:"vl-progress-wrap"},Aye={class:"vl-progress-label"},Tye={key:0},Mye={key:1,class:"vl-done"},Pye={key:6,class:"sb-section sb-export"},Rye={class:"sb-title"},Iye={style:{display:"flex",gap:"8px"}},Oye={class:"sb-footer"},Lye={class:"viewer"},Nye={key:0,class:"viewer-nav"},$ye={class:"el-button-group"},Dye={class:"nav-label"},Fye={class:"nav-type-indicator"},Bye={class:"el-button-group el-button-group--small"},Vye={class:"zoom-bar"},zye={class:"zoom-pct"},Hye={key:1,class:"viewer-empty"},Wye={class:"img-inner"},jye={key:0,class:"page-loading"},Kye=["data-mode"],Uye={key:0,class:"result-panel"},qye={class:"rp-header"},Gye={class:"rp-title"},Yye={key:0,class:"rp-tokens"},Xye={class:"rp-text"},iR="ocrz_region_presets",Jye=!1,Zye=[{path:"/",redirect:"/Manual"},{path:"/Auto",component:W1e},{path:"/Manual",component:ul({__name:"ManualOCR",setup(e){W4e.workerSrc=K4e;const t=dP(),n="http://localhost:8000";function s(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,ye=>{const ve=typeof crypto<"u"&&crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1)):null,Ne=ve?(ve[0]&255)%16:Math.random()*16|0;return(ye==="x"?Ne:Ne&3|8).toString(16)})}const a=[{name:"陕化建预设",hidden:!0,data:[{type:"A",page:0,xr:.6780016792611251,yr:.0344418052256532,wr:.3140218303946264,hr:.6033254156769596},{type:"B",page:0,xr:.28337531486146095,yr:.7838479809976246,wr:.26448362720403024,hr:.19596199524940616},{type:"C",page:0,xr:.9147774979009236,yr:.8931116389548693,wr:.022670025188916875,hr:.021377672209026127},{type:"C",page:0,xr:.9534005037783375,yr:.8978622327790974,wr:.026028547439126783,hr:.023752969121140142},{type:"C",page:0,xr:.7619647355163728,yr:.7921615201900237,wr:.16960537363560033,hr:.026128266033254157},{type:"D",page:0,xr:.6788413098236776,yr:.6520190023752969,wr:.3089840470193115,hr:.08432304038004751}]}];function o(){const ye=JSON.parse(localStorage.getItem(iR)||"[]"),ve=[...a];for(const Ne of ye){const ft=ve.findIndex(ot=>ot.name===Ne.name);ft>=0?ve[ft]=Ne:ve.push(Ne)}return ve}const r=F(o()),i=E(()=>r.value.filter(ye=>!ye.hidden)),l=F("");function c(){const ye=window.prompt("请输入预设名称:",l.value||"");if(!ye||!ye.trim())return;const ve=ye.trim(),Ne=H.value.map(ot=>({type:ot.type,page:ot.page,xr:ot.xr,yr:ot.yr,wr:ot.wr,hr:ot.hr,region_code:ot.region_code||""})),ft=r.value.findIndex(ot=>ot.name===ve);ft>=0?r.value[ft]={name:ve,data:Ne}:r.value.push({name:ve,data:Ne}),localStorage.setItem(iR,JSON.stringify(r.value)),l.value=ve,ss.success(`预设「${ve}」已保存(${Ne.length} 个区域)`)}function u(){const ye=r.value.find($e=>$e.name===l.value);if(!ye)return;const ve=Array.isArray(ye.data)?ye.data:[];if(!ve.length){ss.warning(`预设「${ye.name}」没有可用区域`);return}const Ne=[...new Set(ve.map($e=>Number.isFinite($e.page)?$e.page:0))].sort(($e,at)=>$e-at),ft=Ne.length?Ne[0]:0,ot=R.value-ft;let pt=[];if(I.value&&T.value>0&&Ne.length===1)for(let $e=R.value;$e<T.value;$e+=1)for(const at of ve)pt.push({...at,page:$e});else I.value&&T.value>0?pt=ve.map($e=>({...$e,page:(Number.isFinite($e.page)?$e.page:0)+ot})).filter($e=>$e.page>=0&&$e.page<T.value):pt=ve.map($e=>({...$e,page:Number.isFinite($e.page)?$e.page:0}));const me=new Map,De=$e=>{me.has($e)||me.set($e,new Set);const at=me.get($e);let Bt=1;for(;at.has(`C${Bt}`);)Bt+=1;const ct=`C${Bt}`;return at.add(ct),ct};H.value=pt.map($e=>{const at=Number.isFinite($e.page)?$e.page:0,Bt={...$e,page:at,id:s(),status:"pending",text:null,tokens:null};return Bt.type==="C"&&(Bt.region_code?(me.has(at)||me.set(at,new Set),me.get(at).add(Bt.region_code)):Bt.region_code=De(at)),Bt}),J.value=null,ze(()=>Vn()),ss.success(`已载入预设「${ye.name}」(${H.value.length} 个区域)`)}const f=[{key:"A",label:"材料区域",color:"#2563eb"},{key:"B",label:"图纸信息",color:"#d97706"},{key:"C",label:"其他",color:"#059669"},{key:"D",label:"管长表",color:"#7c3aed",hidden:!0}],h=E(()=>f.filter(ye=>!ye.hidden)),p=ye=>{var ve;return((ve=f.find(Ne=>Ne.key===ye))==null?void 0:ve.color)??"#6b7280"},v=ye=>{var ve;return((ve=f.find(Ne=>Ne.key===ye))==null?void 0:ve.label)??ye};function m(ye){if(!ye)return"";if(ye.type!=="C")return ye.type;if(ye.region_code)return ye.region_code;const Ne=H.value.filter(ft=>ft.type==="C").findIndex(ft=>ft.id===ye.id);return Ne>=0?`C${Ne+1}`:"C"}function g(ye){return ye?ye.type==="C"?`${m(ye)} ${v(ye.type)}`:v(ye.type):""}function b(ye){if(ye!=="C")return"";const ve=new Set(H.value.filter(ft=>ft.type==="C"&&ft.region_code).map(ft=>ft.region_code));let Ne=1;for(;ve.has(`C${Ne}`);)Ne+=1;return`C${Ne}`}const C=F("file"),w=F(null),_=F(""),x=F(!1),k=F(""),T=F(0),R=F(0),I=F(!1),P=bn(null),$=F(!1);let O=null;const B=F("A"),H=F([]),J=F(null),Y=F(!1),N=F(!1),L=F(""),V=F(!1),z=F(0),G=F(0),Q=F(!0),U=F(1),ee=F(1),se=F(null),de=F(null),te=F(null),pe=F(null),he=[.25,.5,.75,1,1.25,1.5,2,3],le=F(1);function Z(){const ye=he.find(ve=>ve>le.value+.01);ye&&(le.value=ye)}function j(){const ye=[...he].reverse().find(ve=>ve<le.value-.01);ye&&(le.value=ye)}function ae(){le.value=1}const fe=F("loading"),we=F(""),Se=F(!1),ke=F(0),Oe=F(0),Be=F(0),Le=F(0),Ce=F("draw"),Ie=F(!1),Re=F(0),Ke=F(0),tt=E(()=>C.value==="file"?!!w.value:_.value.startsWith("http")),ut=E(()=>H.value.filter(ye=>ye.status==="pending").length),Fe=E(()=>H.value.filter(ye=>ye.status==="recognizing").length),Ue=E(()=>H.value.filter(ye=>ye.type==="A"&&ye.status==="pending").length),Ze=E(()=>H.value.filter(ye=>ye.status==="done")),Ot=E(()=>H.value.find(ye=>ye.id===J.value)||null),Xt=E(()=>z.value>0?Math.round(G.value/z.value*100):0);be([Q,R],()=>{Q.value&&(U.value=R.value+1)}),be(T,ye=>{ye>0&&(ee.value=ye),Q.value&&(U.value=R.value+1)}),be(U,ye=>{const ve=ee.value;ye<1?U.value=1:ye>ve&&(U.value=ve)}),be(ee,ye=>{const ve=T.value||1;ye<U.value?ee.value=U.value:ye>ve&&(ee.value=ve)});function it(ye,ve){if(!Array.isArray(ye)||!ye.length)return[];const Ne=Math.max(0,(ve||1)-1);return ye.map(ft=>{const ot=Number.isFinite(ft.page)?Math.min(Math.max(ft.page,0),Ne):0;return{id:ft.id||s(),type:ft.type,page:ot,xr:ft.xr,yr:ft.yr,wr:ft.wr,hr:ft.hr,status:"pending",text:"",boxes:[],tokens:null,rows:[],parts1:{},b_table_rows:[],d_rows:[]}})}let yt=null;Mt(async()=>{try{const Ne=await(await fetch(`${n}/api/manual/engine-info`)).json();fe.value=Ne.status==="ready"?"ready":"error",we.value=Ne.error||Ne.engine||""}catch(ve){fe.value="error",we.value=ve.message}const ye=document.getElementById("hdpdfurl2");if(ye&&ye.value&&ye.value.trim()&&(_.value=ye.value.trim(),C.value="url",await xe()),ye){let ve=ye.value;yt=setInterval(async()=>{const Ne=ye.value?ye.value.trim():"";Ne&&Ne!==ve&&(ve=Ne,_.value=Ne,C.value="url",await xe())},2e3)}});async function Lt(ye){w.value=ye.raw,await xe(),pe.value&&pe.value.clearFiles()}async function xe(){x.value=!0;const ye=H.value.map(Ne=>({id:Ne.id,type:Ne.type,page:Ne.page,xr:Ne.xr,yr:Ne.yr,wr:Ne.wr,hr:Ne.hr})),ve=J.value;try{let Ne,ft=null;if(C.value==="file"){ft=await w.value.arrayBuffer();const pt=new FormData;pt.append("file",w.value),pt.append("is_shj",Y.value?"true":"false"),Ne=await fetch(`${n}/api/manual/upload`,{method:"POST",body:pt})}else Ne=await fetch(`${n}/api/manual/upload-url`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:_.value.trim(),is_shj:!!Y.value})});if(!Ne.ok){const pt=await Ne.json().catch(()=>({}));throw new Error(pt.detail||`HTTP ${Ne.status}`)}const ot=await Ne.json();if(k.value&&fetch(`${n}/api/manual/session/${k.value}`,{method:"DELETE"}).catch(()=>{}),k.value=ot.session_id,T.value=ot.total_pages,R.value=0,H.value=it(ye,ot.total_pages),J.value=H.value.some(pt=>pt.id===ve)?ve:null,I.value=!0,le.value=1,!ft){const pt=await fetch(`${n}/api/manual/pdf/${ot.session_id}`);if(!pt.ok)throw new Error(`获取 PDF 字节失败 HTTP ${pt.status}`);ft=await pt.arrayBuffer()}await _e(ft),ss.success(`PDF 加载成功,共 ${ot.total_pages} 页`)}catch(Ne){ss.error(`加载失败:${Ne.message}`)}finally{x.value=!1}}function qe(ye){ye<0||ye>=T.value||(R.value=ye)}be(R,ye=>{Pt(),Ye(ye)}),be([R,H],async()=>{I.value&&(await ze(),Vn())},{deep:!0}),be(Ce,ye=>{ye==="draw"&&de.value&&(de.value.style.cursor="")}),be(le,()=>{I.value&&P.value&&Ye(R.value)});async function _e(ye){try{const ve=j4e({data:ye,cMapUrl:"/pdfjs-cmaps/",cMapPacked:!0});P.value=await ve.promise,Ye(0)}catch(ve){ss.error(`PDF.js 加载失败:${ve.message}`)}}async function Ye(ye){if(P.value){O&&(O.cancel(),O=null),$.value=!0;try{const ve=await P.value.getPage(ye+1),Ne=window.devicePixelRatio||1,ft=ve.getViewport({scale:le.value*Ne}),ot=te.value;ot.width=ft.width,ot.height=ft.height,ot.style.width=ft.width/Ne+"px",ot.style.height=ft.height/Ne+"px";const pt=ot.getContext("2d");O=ve.render({canvasContext:pt,viewport:ft}),await O.promise,O=null,Jt()}catch(ve){(ve==null?void 0:ve.name)!=="RenderingCancelledException"&&ss.error(`页面渲染失败:${ve.message}`)}finally{$.value=!1}}}let xt=null;function Jt(){const ye=te.value,ve=de.value;if(!ye||!ve)return;const Ne=ye.offsetWidth,ft=ye.offsetHeight;Ne===0||ft===0||((ve.width!==Ne||ve.height!==ft)&&(ve.width=Ne,ve.height=ft),Vn(),xt||(xt=new ResizeObserver(()=>Jt())),xt.disconnect(),xt.observe(ye))}window.addEventListener("resize",()=>{I.value&&Jt()});function Sn(ye){const ve=de.value.getBoundingClientRect();return{x:ye.clientX-ve.left,y:ye.clientY-ve.top}}function En(ye){Ie.value&&(se.value.scrollLeft=Re.value-ye.clientX,se.value.scrollTop=Ke.value-ye.clientY)}function Ve(){Ie.value&&(Ie.value=!1,de.value&&(de.value.style.cursor=""),window.removeEventListener("mousemove",En),window.removeEventListener("mouseup",Ve))}function nt(ye){if(!Se.value)return;const{x:ve,y:Ne}=Sn(ye);Be.value=ve,Le.value=Ne,Vn()}function gt(ye){if(!Se.value)return;const{x:ve,y:Ne}=Sn(ye);Se.value=!1,window.removeEventListener("mousemove",nt),window.removeEventListener("mouseup",gt);const ft=de.value,ot=ft.width,pt=ft.height,me=sf=>Math.max(0,Math.min(ot,sf)),De=sf=>Math.max(0,Math.min(pt,sf)),$e=me(ve),at=De(Ne),Bt=me(ke.value),ct=De(Oe.value),Cn=Math.min(Bt,$e),No=Math.min(ct,at),ro=Math.abs($e-Bt),d2=Math.abs(at-ct);ro>8&&d2>8&&H.value.push({id:s(),type:B.value,region_code:b(B.value),page:R.value,xr:Cn/ot,yr:No/pt,wr:ro/ot,hr:d2/pt,cx:Cn,cy:No,cw:ro,ch:d2,status:"pending",text:"",boxes:[],tokens:null,rows:[],parts1:{},b_table_rows:[],d_rows:[]}),Pt(),Vn()}function An(ye){ye.preventDefault();const{x:ve,y:Ne}=Sn(ye);Ce.value==="draw"?(Se.value=!0,ke.value=ve,Oe.value=Ne,Be.value=ve,Le.value=Ne,window.addEventListener("mousemove",nt),window.addEventListener("mouseup",gt)):Ce.value==="pan"&&(Ie.value=!0,Re.value=ye.clientX+se.value.scrollLeft,Ke.value=ye.clientY+se.value.scrollTop,de.value.style.cursor="grabbing",window.addEventListener("mousemove",En),window.addEventListener("mouseup",Ve))}function Zt(ye){}function rt(ye){}function dt(){}function Pt(){Se.value=!1,ke.value=0,Oe.value=0,Be.value=0,Le.value=0}function Vn(){const ye=de.value;if(!ye)return;const ve=ye.getContext("2d");ve.clearRect(0,0,ye.width,ye.height);const Ne=ye.width,ft=ye.height;for(const ot of H.value){if(ot.page!==R.value)continue;const pt=ot.xr*Ne,me=ot.yr*ft,De=ot.wr*Ne,$e=ot.hr*ft,at=p(ot.type),Bt=ot.id===J.value;ve.strokeStyle=at,ve.lineWidth=Bt?3:2,ve.setLineDash(ot.status==="pending"?[5,3]:[]),ve.strokeRect(pt,me,De,$e),ve.fillStyle=at+"18",ve.fillRect(pt,me,De,$e);const ct=ot.type==="C"?`${m(ot)} ${v(ot.type)}`:`${ot.type} ${v(ot.type)}`;ve.font="bold 12px sans-serif";const Cn=ve.measureText(ct).width+10;ve.fillStyle=at,ve.fillRect(pt,me-18,Cn,18),ve.fillStyle="#fff",ve.fillText(ct,pt+5,me-4)}if(Se.value){const ot=Math.min(ke.value,Be.value),pt=Math.min(Oe.value,Le.value),me=Math.abs(Be.value-ke.value),De=Math.abs(Le.value-Oe.value),$e=p(B.value);ve.strokeStyle=$e,ve.lineWidth=2,ve.setLineDash([4,3]),ve.strokeRect(ot,pt,me,De),ve.fillStyle=$e+"15",ve.fillRect(ot,pt,me,De)}}function aa(ye){J.value=ye.id,ye.page!==R.value?qe(ye.page):Vn()}function Lo(ye){H.value=H.value.filter(ve=>ve.id!==ye),J.value===ye&&(J.value=null),Vn()}function x0(){H.value=[],J.value=null,Vn()}async function Kl(){var me;const ye=H.value.find(De=>De.type==="A");if(!ye)return;H.value.filter(De=>De.type==="A"&&De.status==="pending").forEach(De=>{De.status="recognizing"});const ve=U.value-1,Ne=ee.value-1,ft=Ne-ve+1;V.value=!0,z.value=ft,G.value=0;const ot=Math.max(800,Math.round(3500*Math.ceil(ft/10)/ft)),pt=setInterval(()=>{G.value<z.value-1&&G.value++},ot);try{const De=await fetch(`${n}/api/manual/ocr-all-pages-vl`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:k.value,x_ratio:ye.xr,y_ratio:ye.yr,w_ratio:ye.wr,h_ratio:ye.hr,concurrency:10,start_page:ve,end_page:Ne})});if(clearInterval(pt),!De.ok){const ct=await De.json().catch(()=>({}));throw new Error(ct.detail||`HTTP ${De.status}`)}const $e=await De.json();G.value=z.value;const at=(me=$e.usage)!=null&&me.total_tokens?Math.round($e.usage.total_tokens/($e.total_pages||1)):null;for(const ct of $e.results){let Cn=H.value.find(ro=>ro.type==="A"&&ro.page===ct.page_index);Cn||(Cn={id:s(),type:"A",page:ct.page_index,xr:ye.xr,yr:ye.yr,wr:ye.wr,hr:ye.hr,cx:ye.cx,cy:ye.cy,cw:ye.cw,ch:ye.ch,status:"pending",text:"",boxes:[],tokens:null,rows:[],b_table_rows:[]},H.value.push(Cn));const No=ct.rows||[];Cn.rows=No,Cn.tokens=at,Cn.text=No.length?No.map(ro=>[ro.seq_no??"",ro.category??"",ro.description??"",ro.nominal_dia_mm??"",ro.qty??""].filter(sf=>sf!=="").join(" | ")).join(`
|
||
`):"(该页无材料明细行)",Cn.status=ct._validation_failed?"error":"done"}const Bt=$e.results.filter(ct=>ct._validation_failed).length;Bt>0?ss.warning(`VL 识别完成,${$e.total_pages} 页中 ${Bt} 页校验未通过(内容可能为空)`):ss.success(`VL 识别完成,共 ${$e.total_pages} 页`)}catch(De){clearInterval(pt),H.value.filter($e=>$e.type==="A").forEach($e=>{$e.status==="recognizing"&&($e.status="error")}),ss.error(`VL 识别失败:${De.message}`)}finally{V.value=!1}}function k0(ye){return!ye||typeof ye!="object"?"":Object.entries({pipeline_id:"管段号",operation_pressure_mpa:"操作压力(MPa)",operation_temp_c:"操作温度(℃)",design_pressure_mpa:"设计压力(MPa)",design_temp_c:"设计温度(℃)",test_pressure_mpa:"试验压力(MPa)",hydraulic_test_pressure:"水压/气密",pipe_diameter_dn:"管径DN",pipe_spec_grade:"管道等级",heat_insulation:"隔热要求",insulation_thickness_mm:"保温厚度(mm)",post_weld_heat_treatment:"焊后热处理",radiographic_examination:"射线探伤"}).map(([Ne,ft])=>{const ot=ye[Ne];return ot!=null&&ot!==""?`${ft}: ${ot}`:null}).filter(Boolean).join(`
|
||
`)}function Wr(ye){return!Array.isArray(ye)||!ye.length?"":ye.map(ve=>{const Ne=String((ve==null?void 0:ve.name)||"").trim(),ft=String((ve==null?void 0:ve.value)||"").trim();return!Ne&&!ft?null:`${Ne}: ${ft}`}).filter(Boolean).join(`
|
||
`)}function i2(ye){if(!Array.isArray(ye))return"";const ve=ye.find(Ne=>{const ft=String((Ne==null?void 0:Ne.name)||"").toLowerCase();return ft.includes("pipeline")||ft.includes("line")||ft.includes("管段")||ft.includes("管线")});return String((ve==null?void 0:ve.value)||"").trim()}function l2(ye){return!Array.isArray(ye)||!ye.length?"":ye.map(ve=>{const Ne=(ve==null?void 0:ve.group_index)??"",ft=(ve==null?void 0:ve.pos_no)??"",ot=(ve==null?void 0:ve.length_mm)??"",pt=(ve==null?void 0:ve.dn)??"";return`组${Ne} | ${ft} | ${ot} | ${pt}`}).join(`
|
||
`)}async function c2(){var pt;const ye=H.value.find(me=>me.type==="B");if(!ye)return;const ve=!!Y.value,Ne=ve?"ocr-all-pages-vl-b-ru":"ocr-all-pages-vl-b";H.value.filter(me=>me.type==="B"&&me.status==="pending").forEach(me=>{me.status="recognizing"});const ft=U.value-1,ot=ee.value-1;try{const me=await fetch(`${n}/api/manual/${Ne}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:k.value,x_ratio:ye.xr,y_ratio:ye.yr,w_ratio:ye.wr,h_ratio:ye.hr,concurrency:5,start_page:ft,end_page:ot})});if(!me.ok){const at=await me.json().catch(()=>({}));throw new Error(at.detail||`HTTP ${me.status}`)}const De=await me.json(),$e=(pt=De.usage)!=null&&pt.total_tokens?Math.round(De.usage.total_tokens/(De.total_pages||1)):null;for(const at of De.results){let Bt=H.value.find(Cn=>Cn.type==="B"&&Cn.page===at.page_index);if(Bt||(Bt={id:s(),type:"B",page:at.page_index,xr:ye.xr,yr:ye.yr,wr:ye.wr,hr:ye.hr,cx:ye.cx,cy:ye.cy,cw:ye.cw,ch:ye.ch,status:"pending",text:"",boxes:[],tokens:null,parts1:{},b_table_rows:[]},H.value.push(Bt)),ve){const Cn=at.table_rows||[];Bt.b_table_rows=Array.isArray(Cn)?Cn:[],Bt.parts1={},Bt.text=Wr(Bt.b_table_rows)}else{const Cn=at.parts1&&typeof at.parts1=="object"?at.parts1:at;Bt.parts1=Object.fromEntries(Object.entries(Cn&&typeof Cn=="object"?Cn:{}).filter(([No])=>!["page_index","parse_error","error","_validation_failed"].includes(No))),Bt.b_table_rows=[],Bt.text=k0(Bt.parts1)}Bt.tokens=$e;const ct=!!(at.parse_error||at._validation_failed);Bt.status=ct||!Bt.text?"error":"done"}}catch(me){H.value.filter(De=>De.type==="B"&&De.status==="recognizing").forEach(De=>{De.status="error"}),ss.error(`管线号 VL 识别失败:${me.message}`)}}function u2(){var ye,ve,Ne,ft,ot;for(const pt of H.value.filter(me=>me.type==="B"&&me.status==="done")){const me=((ve=(ye=pt.parts1)==null?void 0:ye.pipeline_id)==null?void 0:ve.trim())||i2(pt.b_table_rows)||((ft=(Ne=pt.text)==null?void 0:Ne.split(`
|
||
`)[0])==null?void 0:ft.replace(/^管段号[::]\s*/,"").trim())||"";if(!me)continue;const De=H.value.find($e=>$e.type==="A"&&$e.page===pt.page);(ot=De==null?void 0:De.rows)!=null&&ot.length&&(De.rows=De.rows.map($e=>({...$e,pipe_no:me})))}}function nf(){var Ne;if(!Y.value)return 0;const ye=H.value.filter(ft=>ft.type==="C"&&String(m(ft)).toUpperCase()==="C3");if(!ye.length)return 0;let ve=0;for(const ft of ye){const ot=H.value.find(me=>me.type==="A"&&me.page===ft.page),pt=String((ft==null?void 0:ft.text)||"").trim();pt&&(Ne=ot==null?void 0:ot.rows)!=null&&Ne.length&&(ot.rows=ot.rows.map(me=>({...me,pipe_no:pt})),ve+=1)}return ve}async function Ul(){var ot;const ye=[],ve=new Set;for(const pt of H.value.filter(me=>me.type==="C")){const me=m(pt);ve.has(me)||(ve.add(me),ye.push({code:me,ref:pt}))}if(!ye.length)return;ye.sort((pt,me)=>{const De=Number.parseInt(String(pt.code).replace(/^C/i,""),10),$e=Number.parseInt(String(me.code).replace(/^C/i,""),10);return Number.isFinite(De)&&Number.isFinite($e)?De-$e:String(pt.code).localeCompare(String(me.code))}),H.value.filter(pt=>pt.type==="C"&&pt.status==="pending").forEach(pt=>{pt.status="recognizing"});const Ne=U.value-1,ft=ee.value-1;try{for(const pt of ye){const me=pt.ref,De=await fetch(`${n}/api/manual/ocr-all-pages-vl-c`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:k.value,x_ratio:me.xr,y_ratio:me.yr,w_ratio:me.wr,h_ratio:me.hr,concurrency:5,start_page:Ne,end_page:ft})});if(!De.ok){const Bt=await De.json().catch(()=>({}));throw new Error(Bt.detail||`HTTP ${De.status}`)}const $e=await De.json(),at=(ot=$e.usage)!=null&&ot.total_tokens?Math.round($e.usage.total_tokens/($e.total_pages||1)):null;for(const Bt of $e.results){let ct=H.value.find(Cn=>Cn.type==="C"&&Cn.page===Bt.page_index&&(Cn.region_code||"")===pt.code);ct||(ct={id:s(),type:"C",region_code:pt.code,page:Bt.page_index,xr:me.xr,yr:me.yr,wr:me.wr,hr:me.hr,cx:me.cx,cy:me.cy,cw:me.cw,ch:me.ch,status:"pending",text:"",boxes:[],tokens:null,rows:[],b_table_rows:[]},H.value.push(ct)),ct.region_code=pt.code,ct.status="done",ct.text=Bt.text||"",ct.tokens=at,ct.boxes=[],ct._validation_failed=Bt._validation_failed||!1}}Vn()}catch(pt){H.value.filter(me=>me.type==="C"&&me.status==="recognizing").forEach(me=>{me.status="error"}),ss.error(`C 区域全页识别失败:${pt.message}`)}}async function Pe(){var ft;const ye=H.value.find(ot=>ot.type==="D");if(!ye)return;H.value.filter(ot=>ot.type==="D"&&ot.status==="pending").forEach(ot=>{ot.status="recognizing"});const ve=U.value-1,Ne=ee.value-1;try{const ot=await fetch(`${n}/api/manual/ocr-all-pages-vl-d`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:k.value,x_ratio:ye.xr,y_ratio:ye.yr,w_ratio:ye.wr,h_ratio:ye.hr,concurrency:5,start_page:ve,end_page:Ne})});if(!ot.ok){const De=await ot.json().catch(()=>({}));throw new Error(De.detail||`HTTP ${ot.status}`)}const pt=await ot.json(),me=(ft=pt.usage)!=null&&ft.total_tokens?Math.round(pt.usage.total_tokens/(pt.total_pages||1)):null;for(const De of pt.results){let $e=H.value.find(at=>at.type==="D"&&at.page===De.page_index);$e||($e={id:s(),type:"D",page:De.page_index,xr:ye.xr,yr:ye.yr,wr:ye.wr,hr:ye.hr,cx:ye.cx,cy:ye.cy,cw:ye.cw,ch:ye.ch,status:"pending",text:"",boxes:[],tokens:null,rows:[],b_table_rows:[],d_rows:[]},H.value.push($e)),$e.status="done",$e.d_rows=De.rows||[],$e.text=l2($e.d_rows),$e.tokens=me,$e._validation_failed=De._validation_failed||!1}Vn()}catch(ot){H.value.filter(pt=>pt.type==="D"&&pt.status==="recognizing").forEach(pt=>{pt.status="error"}),ss.error(`D 区域全页识别失败:${ot.message}`)}}async function vt(){if(H.value.filter(ve=>ve.status==="pending").length){N.value=!0;try{const ve=Ue.value>0,Ne=H.value.some(at=>at.type==="B"),ft=H.value.some(at=>at.type==="C"),ot=H.value.some(at=>at.type==="D");ve||(V.value=!1,z.value=0,G.value=0);const pt=[];ve&&pt.push(Kl()),Ne&&pt.push(c2()),ft&&pt.push(Ul()),ot&&pt.push(Pe()),pt.length&&await Promise.all(pt),ve&&Ne&&u2(),nf();const me=Fe.value,De=ut.value,$e=H.value.filter(at=>at.status==="error").length;if(me>0){ss.warning(`仍有 ${me} 个区域识别中,暂不标记为全部完成`);return}if(De>0){ss.warning(`仍有 ${De} 个区域待识别,暂不标记为全部完成`);return}await ze(),await Ht(),$e>0?ss.warning(`识别流程已结束,但有 ${$e} 个区域失败`):ss.success("全部识别完成")}finally{N.value=!1}}}async function Ht(){nf();const ye=Ze.value;if(ye.length)try{const ve=await fetch(`${n}/api/manual/export`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({isSHJ:!!Y.value,regions:ye.map(ot=>({id:ot.id,region_type:ot.type,region_code:m(ot),page_index:ot.page,text:ot.text,boxes:ot.boxes||[],rows:ot.rows||[],parts1:ot.parts1||{},b_table_rows:ot.b_table_rows||[],d_rows:ot.d_rows||[]})),format:"json"})});if(!ve.ok)return;const Ne=await ve.text(),ft=document.getElementById("resultdata");ft&&(ft.value=Ne)}catch{}}async function xn(ye){nf();const ve=Ze.value;if(ve.length){L.value=ye;try{const Ne=await fetch(`${n}/api/manual/export`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({isSHJ:!!Y.value,regions:ve.map(me=>({id:me.id,region_type:me.type,region_code:m(me),page_index:me.page,text:me.text,boxes:me.boxes||[],rows:me.rows||[],parts1:me.parts1||{},b_table_rows:me.b_table_rows||[],d_rows:me.d_rows||[]})),format:ye})});if(!Ne.ok){const me=await Ne.json().catch(()=>({}));throw new Error(me.detail||`HTTP ${Ne.status}`)}const ft=await Ne.blob(),ot=URL.createObjectURL(ft),pt=document.createElement("a");pt.href=ot,pt.download=ye==="excel"?"manual_ocr_result.xlsx":"manual_ocr_result.json",pt.click(),URL.revokeObjectURL(ot),ss.success("导出成功")}catch(Ne){ss.error(`导出失败:${Ne.message}`)}finally{L.value=""}}}async function Kn(ye){try{await navigator.clipboard.writeText(ye),ss.success("已复制")}catch{ss.warning("请手动复制")}}return fu(()=>{yt&&clearInterval(yt),xt&&xt.disconnect(),window.removeEventListener("mousemove",nt),window.removeEventListener("mouseup",gt),window.removeEventListener("mousemove",En),window.removeEventListener("mouseup",Ve),k.value&&fetch(`${n}/api/manual/session/${k.value}`,{method:"DELETE"}).catch(()=>{})}),(ye,ve)=>{const Ne=Ge("el-icon"),ft=Ge("el-upload"),ot=Ge("el-tab-pane"),pt=Ge("el-input"),me=Ge("el-tabs"),De=Ge("el-option"),$e=Ge("el-select"),at=Ge("el-tag"),Bt=Ge("el-progress");return S(),M("div",U4e,[A("div",q4e,[A("div",{class:D(["engine-badge","es-"+fe.value])},[ve[25]||(ve[25]=A("span",{class:"es-dot"},null,-1)),A("span",G4e,[ve[24]||(ve[24]=We(" OCR ",-1)),fe.value==="loading"?(S(),M(He,{key:0},[We("引擎加载中…")],64)):fe.value==="ready"?(S(),M(He,{key:1},[We("引擎就绪")],64)):(S(),M(He,{key:2},[We("引擎异常")],64))])],2),A("div",Y4e,[A("div",X4e,[W(Ne,null,{default:X(()=>[W(d(Pg))]),_:1}),ve[26]||(ve[26]=We(" 加载 PDF ",-1))]),W(me,{modelValue:C.value,"onUpdate:modelValue":ve[2]||(ve[2]=ct=>C.value=ct),class:"src-tabs",size:"small"},{default:X(()=>[W(ot,{label:"本地文件",name:"file"},{default:X(()=>[W(ft,{ref_key:"uploadRef",ref:pe,"auto-upload":!1,accept:".pdf","show-file-list":!1,"on-change":Lt},{default:X(()=>[A("div",{class:D(["el-button el-button--small el-button--plain",{"is-loading":x.value&&C.value==="file"}]),style:{width:"100%",cursor:"pointer"}},[x.value&&C.value==="file"?(S(),ce(Ne,{key:0,class:"is-loading"},{default:X(()=>[W(d(Bs))]),_:1})):(S(),ce(Ne,{key:1},{default:X(()=>[W(d(m9))]),_:1})),We(" "+ge(w.value?w.value.name:"选择 PDF(自动加载)…"),1)],2)]),_:1},512)]),_:1}),W(ot,{label:"网络 URL",name:"url"},{default:X(()=>[W(pt,{modelValue:_.value,"onUpdate:modelValue":ve[0]||(ve[0]=ct=>_.value=ct),placeholder:"https://…/file.pdf",clearable:"",size:"small"},null,8,["modelValue"]),A("div",{class:D(["el-button el-button--primary el-button--small",{"is-loading":x.value,"is-disabled":!tt.value}]),style:{width:"100%","margin-top":"6px",cursor:"pointer"},onClick:ve[1]||(ve[1]=ct=>!x.value&&tt.value&&xe())},[x.value?(S(),ce(Ne,{key:0,class:"is-loading"},{default:X(()=>[W(d(Bs))]),_:1})):(S(),ce(Ne,{key:1},{default:X(()=>[W(d(Gy))]),_:1})),ve[27]||(ve[27]=We(" 加载 / 渲染 ",-1))],2)]),_:1})]),_:1},8,["modelValue"])]),I.value?(S(),M("div",J4e,[A("label",Z4e,[Ct(A("input",{type:"checkbox","onUpdate:modelValue":ve[3]||(ve[3]=ct=>Q.value=ct)},null,512),[[lg,Q.value]]),ve[28]||(ve[28]=We(" 从当前页开始识别 ",-1))]),A("div",Q4e,[Ct(A("input",{type:"number",class:"range-input",min:1,max:ee.value,disabled:Q.value,"onUpdate:modelValue":ve[4]||(ve[4]=ct=>U.value=ct)},null,8,eye),[[ig,U.value,void 0,{number:!0}]]),ve[29]||(ve[29]=A("span",{class:"range-sep"},"—",-1)),Ct(A("input",{type:"number",class:"range-input",min:U.value,max:T.value||1,"onUpdate:modelValue":ve[5]||(ve[5]=ct=>ee.value=ct)},null,8,tye),[[ig,ee.value,void 0,{number:!0}]]),ve[30]||(ve[30]=A("span",{style:{"font-size":"12px",color:"#6b7280"}},"页",-1))])])):ie("",!0),I.value?(S(),M("div",nye,[A("div",sye,[W(Ne,null,{default:X(()=>[W(d(Xx))]),_:1}),ve[31]||(ve[31]=We(" 预设区域 ",-1))]),W($e,{modelValue:l.value,"onUpdate:modelValue":ve[6]||(ve[6]=ct=>l.value=ct),placeholder:"选择预设…",size:"small",clearable:"",style:{width:"100%","margin-bottom":"6px"},onChange:ve[7]||(ve[7]=ct=>ct&&u())},{default:X(()=>[(S(!0),M(He,null,Et(i.value,ct=>(S(),ce(De,{key:ct.name,label:ct.name,value:ct.name},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),A("div",aye,[A("div",{class:D(["el-button el-button--small el-button--plain",{"is-disabled":!l.value}]),style:{flex:"1",cursor:"pointer"},onClick:ve[8]||(ve[8]=ct=>l.value&&u())}," 使用预设区域 ",2),A("div",{class:"el-button el-button--small",style:{flex:"1",cursor:"pointer"},onClick:ve[9]||(ve[9]=ct=>c())}," 保存设置区域 ")])])):ie("",!0),I.value&&Jye?(S(),M("div",oye,[A("div",rye,[A("div",iye,[W(Ne,null,{default:X(()=>[W(d(v9))]),_:1}),ve[32]||(ve[32]=We(" 图纸模式 ",-1))]),A("label",lye,[Ct(A("input",{type:"checkbox","onUpdate:modelValue":ve[10]||(ve[10]=ct=>Y.value=ct)},null,512),[[lg,Y.value]]),ve[33]||(ve[33]=A("span",null,"俄文图纸",-1))])])])):ie("",!0),I.value?(S(),M("div",cye,[A("div",uye,[W(Ne,null,{default:X(()=>[W(d(Tg))]),_:1}),ve[34]||(ve[34]=We(" 当前区域类型 ",-1)),ve[35]||(ve[35]=A("span",{class:"sb-hint"},"拖拽在右侧图像上框选",-1))]),A("div",dye,[(S(!0),M(He,null,Et(h.value,ct=>(S(),M("div",{key:ct.key,class:D(["rt-btn",{active:B.value===ct.key}]),style:et({"--rt-color":ct.color}),onClick:Cn=>B.value=ct.key},[A("span",hye,ge(ct.key),1),We(" "+ge(ct.label),1)],14,fye))),128))])])):ie("",!0),H.value.length?(S(),M("div",pye,[A("div",vye,[W(Ne,null,{default:X(()=>[W(d(n9))]),_:1}),We(" 已标注区域 ("+ge(H.value.length)+") ",1),A("div",{class:"el-button el-button--link el-button--danger el-button--small",style:{cursor:"pointer"},onClick:x0},"清空")]),A("div",mye,[(S(!0),M(He,null,Et(H.value,ct=>(S(),M("div",{key:ct.id,class:D(["region-item",{active:J.value===ct.id}]),style:et({"--rt-color":p(ct.type)}),onClick:Cn=>aa(ct)},[A("div",bye,[A("span",yye,ge(m(ct)),1),A("span",wye,ge(v(ct.type)),1),A("span",_ye,"P"+ge(ct.page+1),1),W(Ne,{class:"ri-del",onClick:ht(Cn=>Lo(ct.id),["stop"])},{default:X(()=>[W(d(qa))]),_:1},8,["onClick"])]),A("div",Cye,[ct.status==="pending"?(S(),ce(at,{key:0,size:"small",type:"info"},{default:X(()=>[...ve[36]||(ve[36]=[We("待识别",-1)])]),_:1})):ct.status==="recognizing"?(S(),ce(at,{key:1,size:"small",type:"warning"},{default:X(()=>[...ve[37]||(ve[37]=[We("识别中…",-1)])]),_:1})):ct.status==="done"?(S(),M(He,{key:2},[W(at,{size:"small",type:"success"},{default:X(()=>[...ve[38]||(ve[38]=[We("已完成",-1)])]),_:1}),ct.tokens?(S(),M("span",Sye,ge(ct.tokens)+"tk",1)):ie("",!0)],64)):ct.status==="error"?(S(),ce(at,{key:3,size:"small",type:"danger"},{default:X(()=>[...ve[39]||(ve[39]=[We("失败",-1)])]),_:1})):ie("",!0)]),ct.text?(S(),M("pre",xye,ge(ct.text.slice(0,120))+ge(ct.text.length>120?"…":""),1)):ie("",!0)],14,gye))),128))])])):ie("",!0),I.value&&H.value.length?(S(),M("div",kye,[A("div",{class:D(["el-button el-button--primary el-button--small",{"is-loading":N.value||V.value,"is-disabled":ut.value===0||V.value}]),style:{width:"100%",cursor:"pointer"},onClick:ve[11]||(ve[11]=ct=>!(N.value||V.value)&&ut.value>0&&vt())},[N.value||V.value?(S(),ce(Ne,{key:0,class:"is-loading"},{default:X(()=>[W(d(Bs))]),_:1})):(S(),ce(Ne,{key:1},{default:X(()=>[W(d(Qx))]),_:1})),We(" 识别所有未处理区域 ("+ge(ut.value)+") ",1)],2),W(Cs,{name:"vl-fade"},{default:X(()=>[V.value||G.value>0&&G.value===z.value?(S(),M("div",Eye,[A("div",Aye,[V.value?(S(),M("span",Tye,[ve[40]||(ve[40]=A("span",{class:"vl-spin"},"⟳",-1)),We(" VL 识别中… "+ge(G.value)+" / "+ge(z.value)+" 页 ",1)])):(S(),M("span",Mye,"✓ 完成 "+ge(z.value)+" 页",1))]),W(Bt,{percentage:Xt.value,striped:V.value,"striped-flow":V.value,duration:8,"stroke-width":6,"show-text":!1,status:V.value?"":"success",style:{"margin-top":"4px"}},null,8,["percentage","striped","striped-flow","status"])])):ie("",!0)]),_:1})])):ie("",!0),Ze.value.length?(S(),M("div",Pye,[A("div",Rye,[W(Ne,null,{default:X(()=>[W(d(el))]),_:1}),ve[41]||(ve[41]=We(" 导出结果 ",-1))]),A("div",Iye,[A("div",{class:D(["el-button el-button--small",{"is-loading":L.value==="excel"}]),style:{flex:"1",cursor:"pointer"},onClick:ve[12]||(ve[12]=ct=>xn("excel"))},[L.value==="excel"?(S(),ce(Ne,{key:0,class:"is-loading"},{default:X(()=>[W(d(Bs))]),_:1})):(S(),ce(Ne,{key:1},{default:X(()=>[W(d(e9))]),_:1})),ve[42]||(ve[42]=We(" Excel ",-1))],2),A("div",{class:D(["el-button el-button--small",{"is-loading":L.value==="json"}]),style:{flex:"1",cursor:"pointer"},onClick:ve[13]||(ve[13]=ct=>xn("json"))},[L.value==="json"?(S(),ce(Ne,{key:0,class:"is-loading"},{default:X(()=>[W(d(Bs))]),_:1})):(S(),ce(Ne,{key:1},{default:X(()=>[W(d(Mg))]),_:1})),ve[43]||(ve[43]=We(" JSON ",-1))],2)])])):ie("",!0),A("div",Oye,[A("div",{class:"el-button el-button--plain el-button--small",style:{width:"100%",cursor:"pointer"},onClick:ve[14]||(ve[14]=ct=>d(t).push("/"))},[W(Ne,null,{default:X(()=>[W(d(Bo))]),_:1}),ve[44]||(ve[44]=We(" 返回主页 ",-1))])])]),A("div",Lye,[I.value?(S(),M("div",Nye,[A("div",$ye,[A("div",{class:D(["el-button el-button--small",{"is-disabled":R.value===0}]),style:{cursor:"pointer"},onClick:ve[15]||(ve[15]=ct=>R.value!==0&&qe(R.value-1))},[W(Ne,null,{default:X(()=>[W(d(Bo))]),_:1})],2),A("div",{class:D(["el-button el-button--small",{"is-disabled":R.value===T.value-1}]),style:{cursor:"pointer"},onClick:ve[16]||(ve[16]=ct=>R.value!==T.value-1&&qe(R.value+1))},[W(Ne,null,{default:X(()=>[W(d(Fs))]),_:1})],2)]),A("span",Dye,"第 "+ge(R.value+1)+" / "+ge(T.value)+" 页",1),A("div",Fye,[A("span",{class:"nt-dot",style:et({background:p(B.value)})},null,4),We(" "+ge(B.value)+" — "+ge(v(B.value)),1)]),A("div",Bye,[A("div",{class:D(["el-button el-button--small",{"el-button--primary":Ce.value==="draw"}]),style:{cursor:"pointer"},onClick:ve[17]||(ve[17]=ct=>Ce.value="draw")},[W(Ne,null,{default:X(()=>[W(d(Tg))]),_:1}),ve[45]||(ve[45]=We(" 框选 ",-1))],2),A("div",{class:D(["el-button el-button--small",{"el-button--primary":Ce.value==="pan"}]),style:{cursor:"pointer"},onClick:ve[18]||(ve[18]=ct=>Ce.value="pan")},[W(Ne,null,{default:X(()=>[W(d(l9))]),_:1}),ve[46]||(ve[46]=We(" 拖动 ",-1))],2)]),A("div",Vye,[A("div",{class:D(["el-button el-button--small el-button--plain",{"is-disabled":le.value<=.25}]),style:{cursor:"pointer"},onClick:ve[19]||(ve[19]=ct=>le.value>.25&&j())},[W(Ne,null,{default:X(()=>[W(d(Yy))]),_:1})],2),A("span",zye,ge(Math.round(le.value*100))+"%",1),A("div",{class:D(["el-button el-button--small el-button--plain",{"is-disabled":le.value>=3}]),style:{cursor:"pointer"},onClick:ve[20]||(ve[20]=ct=>le.value<3&&Z())},[W(Ne,null,{default:X(()=>[W(d(Ig))]),_:1})],2),A("div",{class:"el-button el-button--small el-button--plain",title:"适应宽度",style:{cursor:"pointer"},onClick:ve[21]||(ve[21]=ct=>ae())},[W(Ne,null,{default:X(()=>[W(d(jy))]),_:1})])])])):ie("",!0),I.value?ie("",!0):(S(),M("div",Hye,[W(Ne,{size:"64",style:{color:"#d1d5db"}},{default:X(()=>[W(d(Mg))]),_:1}),ve[47]||(ve[47]=A("p",null,"请在左侧加载 PDF 文件",-1))])),Ct(A("div",{class:"img-wrap",ref_key:"wrapRef",ref:se},[A("div",Wye,[A("canvas",{ref_key:"pdfCanvasRef",ref:te,class:"pdf-canvas"},null,512),$.value?(S(),M("div",jye,[W(Ne,{class:"spin"},{default:X(()=>[W(d(Bs))]),_:1}),ve[48]||(ve[48]=We(" 渲染页面中… ",-1))])):ie("",!0),A("canvas",{ref_key:"canvasRef",ref:de,class:"overlay-canvas","data-mode":Ce.value,onMousedown:An,onMousemove:Zt,onMouseup:rt,onMouseleave:dt},null,40,Kye)])],512),[[jt,I.value]]),W(Cs,{name:"fade"},{default:X(()=>[Ot.value&&Ot.value.text?(S(),M("div",Uye,[A("div",qye,[A("span",{class:"rp-badge",style:et({background:p(Ot.value.type)})},ge(Ot.value.type==="C"?m(Ot.value):Ot.value.type),5),A("span",Gye,ge(g(Ot.value))+" — 第 "+ge(Ot.value.page+1)+" 页",1),Ot.value.tokens?(S(),M("span",Yye,ge(Ot.value.tokens)+" tokens",1)):ie("",!0),A("div",{class:"el-button el-button--link el-button--small",style:{cursor:"pointer"},onClick:ve[22]||(ve[22]=ct=>Kn(Ot.value.text))},"复制"),A("div",{class:"el-button el-button--link el-button--small",style:{cursor:"pointer"},onClick:ve[23]||(ve[23]=ct=>J.value=null)},"×")]),A("pre",Xye,ge(Ot.value.text),1)])):ie("",!0)]),_:1})])])}}},[["__scopeId","data-v-cc509bbb"]])}],Qye=Oge({history:fge(),routes:Zye}),_b=e5(A2e);_b.use(B8),_b.use(Qye);for(const[e,t]of Object.entries(lJ))_b.component(e,t);_b.mount("#app")})();
|